1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libevent 2.1.12-stable. 4# 5# 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7# Inc. 8# 9# 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## -------------------- ## 13## M4sh Initialization. ## 14## -------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18as_nop=: 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else $as_nop 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37 38# Reset variables that may have inherited troublesome values from 39# the environment. 40 41# IFS needs to be set, to space, tab, and newline, in precisely that order. 42# (If _AS_PATH_WALK were called with IFS unset, it would have the 43# side effect of setting IFS to empty, thus disabling word splitting.) 44# Quoting is to prevent editors from complaining about space-tab. 45as_nl=' 46' 47export as_nl 48IFS=" "" $as_nl" 49 50PS1='$ ' 51PS2='> ' 52PS4='+ ' 53 54# Ensure predictable behavior from utilities with locale-dependent output. 55LC_ALL=C 56export LC_ALL 57LANGUAGE=C 58export LANGUAGE 59 60# We cannot yet rely on "unset" to work, but we need these variables 61# to be unset--not just set to an empty or harmless value--now, to 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63# also avoids known problems related to "unset" and subshell syntax 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68done 69 70# Ensure that fds 0, 1, and 2 are open. 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75# The user is always right. 76if ${PATH_SEPARATOR+false} :; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# Find who we are. Look in the path if we contain no directory separator. 86as_myself= 87case $0 in #(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90for as_dir in $PATH 91do 92 IFS=$as_save_IFS 93 case $as_dir in #((( 94 '') as_dir=./ ;; 95 */) ;; 96 *) as_dir=$as_dir/ ;; 97 esac 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114 115# Use a proper internal environment variable to ensure we don't fall 116 # into an infinite loop, continuously re-executing ourselves. 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118 _as_can_reexec=no; export _as_can_reexec; 119 # We cannot yet assume a decent shell, so we have to provide a 120# neutralization value for shells without unset; and this also 121# works around shells that cannot unset nonexistent variables. 122# Preserve -v and -x to the replacement shell. 123BASH_ENV=/dev/null 124ENV=/dev/null 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126case $- in # (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131esac 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133# Admittedly, this is quite paranoid, since all the known shells bail 134# out after a failed `exec'. 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143then : 144 emulate sh 145 NULLCMD=: 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147 # is contrary to our usage. Disable this feature. 148 alias -g '\${1+\"\$@\"}'='\"\$@\"' 149 setopt NO_GLOB_SUBST 150else \$as_nop 151 case \`(set -o) 2>/dev/null\` in #( 152 *posix*) : 153 set -o posix ;; #( 154 *) : 155 ;; 156esac 157fi 158" 159 as_required="as_fn_return () { (exit \$1); } 160as_fn_success () { as_fn_return 0; } 161as_fn_failure () { as_fn_return 1; } 162as_fn_ret_success () { return 0; } 163as_fn_ret_failure () { return 1; } 164 165exitcode=0 166as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171then : 172 173else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175fi 176test x\$exitcode = x0 || exit 1 177blah=\$(echo \$(echo blah)) 178test x\"\$blah\" = xblah || exit 1 179test -x / || exit 1" 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184test \$(( 1 + 1 )) = 2 || exit 1 185 186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 PATH=/empty FPATH=/empty; export PATH FPATH 191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 193 if (eval "$as_required") 2>/dev/null 194then : 195 as_have_required=yes 196else $as_nop 197 as_have_required=no 198fi 199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 200then : 201 202else $as_nop 203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 204as_found=false 205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 206do 207 IFS=$as_save_IFS 208 case $as_dir in #((( 209 '') as_dir=./ ;; 210 */) ;; 211 *) as_dir=$as_dir/ ;; 212 esac 213 as_found=: 214 case $as_dir in #( 215 /*) 216 for as_base in sh bash ksh sh5; do 217 # Try only shells that exist, to save several forks. 218 as_shell=$as_dir$as_base 219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 221then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 224then : 225 break 2 226fi 227fi 228 done;; 229 esac 230 as_found=false 231done 232IFS=$as_save_IFS 233if $as_found 234then : 235 236else $as_nop 237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 239then : 240 CONFIG_SHELL=$SHELL as_have_required=yes 241fi 242fi 243 244 245 if test "x$CONFIG_SHELL" != x 246then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno 269then : 270 printf "%s\n" "$0: This script requires a shell more modern than all" 271 printf "%s\n" "$0: the shells that I found on your system." 272 if test ${ZSH_VERSION+y} ; then 273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 275 else 276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, 277$0: including any error possibly output before this 278$0: message. Then install a modern shell, or manually run 279$0: the script under such a shell if you do have one." 280 fi 281 exit 1 282fi 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321# as_fn_nop 322# --------- 323# Do nothing but, unlike ":", preserve the value of $?. 324as_fn_nop () 325{ 326 return $? 327} 328as_nop=as_fn_nop 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else $as_nop 398 as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } 402fi # as_fn_append 403 404# as_fn_arith ARG... 405# ------------------ 406# Perform arithmetic evaluation on the ARGs, and store the result in the 407# global $as_val. Take advantage of shells that can avoid forks. The arguments 408# must be portable across $(()) and expr. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else $as_nop 416 as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } 420fi # as_fn_arith 421 422# as_fn_nop 423# --------- 424# Do nothing but, unlike ":", preserve the value of $?. 425as_fn_nop () 426{ 427 return $? 428} 429as_nop=as_fn_nop 430 431# as_fn_error STATUS ERROR [LINENO LOG_FD] 432# ---------------------------------------- 433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 435# script with STATUS, using 1 if that was 0. 436as_fn_error () 437{ 438 as_status=$1; test $as_status -eq 0 && as_status=1 439 if test "$4"; then 440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 442 fi 443 printf "%s\n" "$as_me: error: $2" >&2 444 as_fn_exit $as_status 445} # as_fn_error 446 447if expr a : '\(a\)' >/dev/null 2>&1 && 448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 449 as_expr=expr 450else 451 as_expr=false 452fi 453 454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 455 as_basename=basename 456else 457 as_basename=false 458fi 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466as_me=`$as_basename -- "$0" || 467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 468 X"$0" : 'X\(//\)$' \| \ 469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 470printf "%s\n" X/"$0" | 471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\/\)$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\).*/{ 480 s//\1/ 481 q 482 } 483 s/.*/./; q'` 484 485# Avoid depending upon Character Ranges. 486as_cr_letters='abcdefghijklmnopqrstuvwxyz' 487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 488as_cr_Letters=$as_cr_letters$as_cr_LETTERS 489as_cr_digits='0123456789' 490as_cr_alnum=$as_cr_Letters$as_cr_digits 491 492 493 as_lineno_1=$LINENO as_lineno_1a=$LINENO 494 as_lineno_2=$LINENO as_lineno_2a=$LINENO 495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 498 sed -n ' 499 p 500 /[$]LINENO/= 501 ' <$as_myself | 502 sed ' 503 s/[$]LINENO.*/&-/ 504 t lineno 505 b 506 :lineno 507 N 508 :loop 509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 510 t loop 511 s/-\n.*// 512 ' >$as_me.lineno && 513 chmod +x "$as_me.lineno" || 514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 515 516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 517 # already done that, so ensure we don't try to do so again and fall 518 # in an infinite loop. This has already happened in practice. 519 _as_can_reexec=no; export _as_can_reexec 520 # Don't try to exec as it changes $[0], causing all sort of problems 521 # (the dirname of $[0] is not the place where we might find the 522 # original and so on. Autoconf is especially sensitive to this). 523 . "./$as_me.lineno" 524 # Exit status is that of the last command. 525 exit 526} 527 528 529# Determine whether it's possible to make 'echo' print without a newline. 530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 531# for compatibility with existing Makefiles. 532ECHO_C= ECHO_N= ECHO_T= 533case `echo -n x` in #((((( 534-n*) 535 case `echo 'xy\c'` in 536 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 537 xy) ECHO_C='\c';; 538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 539 ECHO_T=' ';; 540 esac;; 541*) 542 ECHO_N='-n';; 543esac 544 545# For backward compatibility with old third-party macros, we provide 546# the shell variables $as_echo and $as_echo_n. New code should use 547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 548as_echo='printf %s\n' 549as_echo_n='printf %s' 550 551 552rm -f conf$$ conf$$.exe conf$$.file 553if test -d conf$$.dir; then 554 rm -f conf$$.dir/conf$$.file 555else 556 rm -f conf$$.dir 557 mkdir conf$$.dir 2>/dev/null 558fi 559if (echo >conf$$.file) 2>/dev/null; then 560 if ln -s conf$$.file conf$$ 2>/dev/null; then 561 as_ln_s='ln -s' 562 # ... but there are two gotchas: 563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 565 # In both cases, we have to default to `cp -pR'. 566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 567 as_ln_s='cp -pR' 568 elif ln conf$$.file conf$$ 2>/dev/null; then 569 as_ln_s=ln 570 else 571 as_ln_s='cp -pR' 572 fi 573else 574 as_ln_s='cp -pR' 575fi 576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 577rmdir conf$$.dir 2>/dev/null 578 579if mkdir -p . 2>/dev/null; then 580 as_mkdir_p='mkdir -p "$as_dir"' 581else 582 test -d ./-p && rmdir ./-p 583 as_mkdir_p=false 584fi 585 586as_test_x='test -x' 587as_executable_p=as_fn_executable_p 588 589# Sed expression to map a string onto a valid CPP name. 590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 591 592# Sed expression to map a string onto a valid variable name. 593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 594 595SHELL=${CONFIG_SHELL-/bin/sh} 596 597 598test -n "$DJDIR" || exec 7<&0 </dev/null 599exec 6>&1 600 601# Name of the host. 602# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 603# so uname gets run too. 604ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 605 606# 607# Initializations. 608# 609ac_default_prefix=/usr/local 610ac_clean_files= 611ac_config_libobj_dir=. 612LIBOBJS= 613cross_compiling=no 614subdirs= 615MFLAGS= 616MAKEFLAGS= 617 618# Identity of this package. 619PACKAGE_NAME='libevent' 620PACKAGE_TARNAME='libevent' 621PACKAGE_VERSION='2.1.12-stable' 622PACKAGE_STRING='libevent 2.1.12-stable' 623PACKAGE_BUGREPORT='' 624PACKAGE_URL='' 625 626ac_unique_file="event.c" 627ac_default_prefix=/usr/local 628# Factoring default headers for most tests. 629ac_includes_default="\ 630#include <stddef.h> 631#ifdef HAVE_STDIO_H 632# include <stdio.h> 633#endif 634#ifdef HAVE_STDLIB_H 635# include <stdlib.h> 636#endif 637#ifdef HAVE_STRING_H 638# include <string.h> 639#endif 640#ifdef HAVE_INTTYPES_H 641# include <inttypes.h> 642#endif 643#ifdef HAVE_STDINT_H 644# include <stdint.h> 645#endif 646#ifdef HAVE_STRINGS_H 647# include <strings.h> 648#endif 649#ifdef HAVE_SYS_TYPES_H 650# include <sys/types.h> 651#endif 652#ifdef HAVE_SYS_STAT_H 653# include <sys/stat.h> 654#endif 655#ifdef HAVE_UNISTD_H 656# include <unistd.h> 657#endif" 658 659ac_header_c_list= 660ac_subst_vars='am__EXEEXT_FALSE 661am__EXEEXT_TRUE 662LTLIBOBJS 663ENABLE_DOXYGEN_MAN_FALSE 664ENABLE_DOXYGEN_MAN_TRUE 665ENABLE_DOXYGEN_FALSE 666ENABLE_DOXYGEN_TRUE 667DX_RULES 668PAPER_SIZE 669DOXYGEN_PAPER_SIZE 670GENERATE_LATEX 671DX_PDFLATEX 672DX_FLAG_pdf 673DX_EGREP 674DX_DVIPS 675DX_MAKEINDEX 676DX_LATEX 677DX_FLAG_ps 678DX_FLAG_html 679GENERATE_CHI 680DX_FLAG_chi 681GENERATE_HTMLHELP 682GENERATE_HTML 683HHC_PATH 684DX_HHC 685DX_FLAG_chm 686GENERATE_XML 687DX_FLAG_xml 688GENERATE_RTF 689DX_FLAG_rtf 690GENERATE_MAN 691DX_FLAG_man 692DOT_PATH 693HAVE_DOT 694DX_DOT 695DX_FLAG_dot 696PERL_PATH 697DX_PERL 698DX_DOXYGEN 699DX_FLAG_doc 700PROJECT 701SRCDIR 702DX_ENV 703DX_DOCDIR 704DX_CONFIG 705DX_PROJECT 706LIBEVENT_LDFLAGS 707LIBEVENT_CPPFLAGS 708LIBEVENT_CFLAGS 709INSTALL_LIBEVENT_FALSE 710INSTALL_LIBEVENT_TRUE 711LIBEVENT_GC_SECTIONS 712PTHREADS_FALSE 713PTHREADS_TRUE 714THREADS_FALSE 715THREADS_TRUE 716PTHREAD_CFLAGS 717PTHREAD_LIBS 718PTHREAD_CC 719acx_pthread_config 720SIGNAL_SUPPORT_FALSE 721SIGNAL_SUPPORT_TRUE 722EVPORT_BACKEND_FALSE 723EVPORT_BACKEND_TRUE 724EPOLL_BACKEND_FALSE 725EPOLL_BACKEND_TRUE 726LIBOBJS 727KQUEUE_BACKEND_FALSE 728KQUEUE_BACKEND_TRUE 729DEVPOLL_BACKEND_FALSE 730DEVPOLL_BACKEND_TRUE 731POLL_BACKEND_FALSE 732POLL_BACKEND_TRUE 733SELECT_BACKEND_FALSE 734SELECT_BACKEND_TRUE 735STRLCPY_IMPL_FALSE 736STRLCPY_IMPL_TRUE 737BUILD_WITH_NO_UNDEFINED_FALSE 738BUILD_WITH_NO_UNDEFINED_TRUE 739BUILD_MIDIPIX_FALSE 740BUILD_MIDIPIX_TRUE 741BUILD_CYGWIN_FALSE 742BUILD_CYGWIN_TRUE 743BUILD_WIN32_FALSE 744BUILD_WIN32_TRUE 745OPENSSL_FALSE 746OPENSSL_TRUE 747OPENSSL_LIBS 748OPENSSL_INCS 749PKG_CONFIG 750OPENSSL_LIBADD 751EV_LIB_GDI 752EV_LIB_WS32 753ZLIB_REGRESS_FALSE 754ZLIB_REGRESS_TRUE 755ZLIB_LIBS 756BUILD_REGRESS_FALSE 757BUILD_REGRESS_TRUE 758BUILD_SAMPLES_FALSE 759BUILD_SAMPLES_TRUE 760LIBTOOL_DEPS 761LT_SYS_LIBRARY_PATH 762OTOOL64 763OTOOL 764LIPO 765NMEDIT 766DSYMUTIL 767MANIFEST_TOOL 768RANLIB 769ac_ct_AR 770AR 771DLLTOOL 772OBJDUMP 773NM 774ac_ct_DUMPBIN 775DUMPBIN 776LD 777FGREP 778LIBTOOL 779EGREP 780GREP 781CPP 782SED 783LN_S 784host_os 785host_vendor 786host_cpu 787host 788build_os 789build_vendor 790build_cpu 791build 792am__fastdepCC_FALSE 793am__fastdepCC_TRUE 794CCDEPMODE 795am__nodep 796AMDEPBACKSLASH 797AMDEP_FALSE 798AMDEP_TRUE 799am__include 800DEPDIR 801OBJEXT 802EXEEXT 803ac_ct_CC 804CPPFLAGS 805LDFLAGS 806CFLAGS 807CC 808AM_BACKSLASH 809AM_DEFAULT_VERBOSITY 810AM_DEFAULT_V 811AM_V 812CSCOPE 813ETAGS 814CTAGS 815am__untar 816am__tar 817AMTAR 818am__leading_dot 819SET_MAKE 820AWK 821mkdir_p 822MKDIR_P 823INSTALL_STRIP_PROGRAM 824STRIP 825install_sh 826MAKEINFO 827AUTOHEADER 828AUTOMAKE 829AUTOCONF 830ACLOCAL 831VERSION 832PACKAGE 833CYGPATH_W 834am__isrc 835INSTALL_DATA 836INSTALL_SCRIPT 837INSTALL_PROGRAM 838target_alias 839host_alias 840build_alias 841LIBS 842ECHO_T 843ECHO_N 844ECHO_C 845DEFS 846mandir 847localedir 848libdir 849psdir 850pdfdir 851dvidir 852htmldir 853infodir 854docdir 855oldincludedir 856includedir 857runstatedir 858localstatedir 859sharedstatedir 860sysconfdir 861datadir 862datarootdir 863libexecdir 864sbindir 865bindir 866program_transform_name 867prefix 868exec_prefix 869PACKAGE_URL 870PACKAGE_BUGREPORT 871PACKAGE_STRING 872PACKAGE_VERSION 873PACKAGE_TARNAME 874PACKAGE_NAME 875PATH_SEPARATOR 876SHELL 877am__quote' 878ac_subst_files='' 879ac_user_opts=' 880enable_option_checking 881enable_silent_rules 882enable_dependency_tracking 883enable_gcc_warnings 884enable_gcc_hardening 885enable_thread_support 886enable_malloc_replacement 887enable_openssl 888enable_debug_mode 889enable_libevent_install 890enable_libevent_regress 891enable_samples 892enable_function_sections 893enable_verbose_debug 894enable_clock_gettime 895enable_shared 896enable_static 897with_pic 898enable_fast_install 899with_aix_soname 900with_gnu_ld 901with_sysroot 902enable_libtool_lock 903enable_largefile 904enable_doxygen_doc 905enable_doxygen_dot 906enable_doxygen_man 907enable_doxygen_rtf 908enable_doxygen_xml 909enable_doxygen_chm 910enable_doxygen_chi 911enable_doxygen_html 912enable_doxygen_ps 913enable_doxygen_pdf 914' 915 ac_precious_vars='build_alias 916host_alias 917target_alias 918CC 919CFLAGS 920LDFLAGS 921LIBS 922CPPFLAGS 923CPP 924LT_SYS_LIBRARY_PATH 925DOXYGEN_PAPER_SIZE' 926 927 928# Initialize some variables set by options. 929ac_init_help= 930ac_init_version=false 931ac_unrecognized_opts= 932ac_unrecognized_sep= 933# The variables have the same names as the options, with 934# dashes changed to underlines. 935cache_file=/dev/null 936exec_prefix=NONE 937no_create= 938no_recursion= 939prefix=NONE 940program_prefix=NONE 941program_suffix=NONE 942program_transform_name=s,x,x, 943silent= 944site= 945srcdir= 946verbose= 947x_includes=NONE 948x_libraries=NONE 949 950# Installation directory options. 951# These are left unexpanded so users can "make install exec_prefix=/foo" 952# and all the variables that are supposed to be based on exec_prefix 953# by default will actually change. 954# Use braces instead of parens because sh, perl, etc. also accept them. 955# (The list follows the same order as the GNU Coding Standards.) 956bindir='${exec_prefix}/bin' 957sbindir='${exec_prefix}/sbin' 958libexecdir='${exec_prefix}/libexec' 959datarootdir='${prefix}/share' 960datadir='${datarootdir}' 961sysconfdir='${prefix}/etc' 962sharedstatedir='${prefix}/com' 963localstatedir='${prefix}/var' 964runstatedir='${localstatedir}/run' 965includedir='${prefix}/include' 966oldincludedir='/usr/include' 967docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 968infodir='${datarootdir}/info' 969htmldir='${docdir}' 970dvidir='${docdir}' 971pdfdir='${docdir}' 972psdir='${docdir}' 973libdir='${exec_prefix}/lib' 974localedir='${datarootdir}/locale' 975mandir='${datarootdir}/man' 976 977ac_prev= 978ac_dashdash= 979for ac_option 980do 981 # If the previous option needs an argument, assign it. 982 if test -n "$ac_prev"; then 983 eval $ac_prev=\$ac_option 984 ac_prev= 985 continue 986 fi 987 988 case $ac_option in 989 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 990 *=) ac_optarg= ;; 991 *) ac_optarg=yes ;; 992 esac 993 994 case $ac_dashdash$ac_option in 995 --) 996 ac_dashdash=yes ;; 997 998 -bindir | --bindir | --bindi | --bind | --bin | --bi) 999 ac_prev=bindir ;; 1000 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1001 bindir=$ac_optarg ;; 1002 1003 -build | --build | --buil | --bui | --bu) 1004 ac_prev=build_alias ;; 1005 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1006 build_alias=$ac_optarg ;; 1007 1008 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1009 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1010 ac_prev=cache_file ;; 1011 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1012 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1013 cache_file=$ac_optarg ;; 1014 1015 --config-cache | -C) 1016 cache_file=config.cache ;; 1017 1018 -datadir | --datadir | --datadi | --datad) 1019 ac_prev=datadir ;; 1020 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1021 datadir=$ac_optarg ;; 1022 1023 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1024 | --dataroo | --dataro | --datar) 1025 ac_prev=datarootdir ;; 1026 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1027 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1028 datarootdir=$ac_optarg ;; 1029 1030 -disable-* | --disable-*) 1031 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1032 # Reject names that are not valid shell variable names. 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1034 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1035 ac_useropt_orig=$ac_useropt 1036 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1037 case $ac_user_opts in 1038 *" 1039"enable_$ac_useropt" 1040"*) ;; 1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1042 ac_unrecognized_sep=', ';; 1043 esac 1044 eval enable_$ac_useropt=no ;; 1045 1046 -docdir | --docdir | --docdi | --doc | --do) 1047 ac_prev=docdir ;; 1048 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1049 docdir=$ac_optarg ;; 1050 1051 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1052 ac_prev=dvidir ;; 1053 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1054 dvidir=$ac_optarg ;; 1055 1056 -enable-* | --enable-*) 1057 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1058 # Reject names that are not valid shell variable names. 1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1060 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1061 ac_useropt_orig=$ac_useropt 1062 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1063 case $ac_user_opts in 1064 *" 1065"enable_$ac_useropt" 1066"*) ;; 1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1068 ac_unrecognized_sep=', ';; 1069 esac 1070 eval enable_$ac_useropt=\$ac_optarg ;; 1071 1072 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1073 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1074 | --exec | --exe | --ex) 1075 ac_prev=exec_prefix ;; 1076 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1077 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1078 | --exec=* | --exe=* | --ex=*) 1079 exec_prefix=$ac_optarg ;; 1080 1081 -gas | --gas | --ga | --g) 1082 # Obsolete; use --with-gas. 1083 with_gas=yes ;; 1084 1085 -help | --help | --hel | --he | -h) 1086 ac_init_help=long ;; 1087 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1088 ac_init_help=recursive ;; 1089 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1090 ac_init_help=short ;; 1091 1092 -host | --host | --hos | --ho) 1093 ac_prev=host_alias ;; 1094 -host=* | --host=* | --hos=* | --ho=*) 1095 host_alias=$ac_optarg ;; 1096 1097 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1098 ac_prev=htmldir ;; 1099 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1100 | --ht=*) 1101 htmldir=$ac_optarg ;; 1102 1103 -includedir | --includedir | --includedi | --included | --include \ 1104 | --includ | --inclu | --incl | --inc) 1105 ac_prev=includedir ;; 1106 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1107 | --includ=* | --inclu=* | --incl=* | --inc=*) 1108 includedir=$ac_optarg ;; 1109 1110 -infodir | --infodir | --infodi | --infod | --info | --inf) 1111 ac_prev=infodir ;; 1112 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1113 infodir=$ac_optarg ;; 1114 1115 -libdir | --libdir | --libdi | --libd) 1116 ac_prev=libdir ;; 1117 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1118 libdir=$ac_optarg ;; 1119 1120 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1121 | --libexe | --libex | --libe) 1122 ac_prev=libexecdir ;; 1123 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1124 | --libexe=* | --libex=* | --libe=*) 1125 libexecdir=$ac_optarg ;; 1126 1127 -localedir | --localedir | --localedi | --localed | --locale) 1128 ac_prev=localedir ;; 1129 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1130 localedir=$ac_optarg ;; 1131 1132 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1133 | --localstate | --localstat | --localsta | --localst | --locals) 1134 ac_prev=localstatedir ;; 1135 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1136 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1137 localstatedir=$ac_optarg ;; 1138 1139 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1140 ac_prev=mandir ;; 1141 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1142 mandir=$ac_optarg ;; 1143 1144 -nfp | --nfp | --nf) 1145 # Obsolete; use --without-fp. 1146 with_fp=no ;; 1147 1148 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1149 | --no-cr | --no-c | -n) 1150 no_create=yes ;; 1151 1152 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1153 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1154 no_recursion=yes ;; 1155 1156 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1157 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1158 | --oldin | --oldi | --old | --ol | --o) 1159 ac_prev=oldincludedir ;; 1160 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1161 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1162 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1163 oldincludedir=$ac_optarg ;; 1164 1165 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1166 ac_prev=prefix ;; 1167 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1168 prefix=$ac_optarg ;; 1169 1170 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1171 | --program-pre | --program-pr | --program-p) 1172 ac_prev=program_prefix ;; 1173 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1174 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1175 program_prefix=$ac_optarg ;; 1176 1177 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1178 | --program-suf | --program-su | --program-s) 1179 ac_prev=program_suffix ;; 1180 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1181 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1182 program_suffix=$ac_optarg ;; 1183 1184 -program-transform-name | --program-transform-name \ 1185 | --program-transform-nam | --program-transform-na \ 1186 | --program-transform-n | --program-transform- \ 1187 | --program-transform | --program-transfor \ 1188 | --program-transfo | --program-transf \ 1189 | --program-trans | --program-tran \ 1190 | --progr-tra | --program-tr | --program-t) 1191 ac_prev=program_transform_name ;; 1192 -program-transform-name=* | --program-transform-name=* \ 1193 | --program-transform-nam=* | --program-transform-na=* \ 1194 | --program-transform-n=* | --program-transform-=* \ 1195 | --program-transform=* | --program-transfor=* \ 1196 | --program-transfo=* | --program-transf=* \ 1197 | --program-trans=* | --program-tran=* \ 1198 | --progr-tra=* | --program-tr=* | --program-t=*) 1199 program_transform_name=$ac_optarg ;; 1200 1201 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1202 ac_prev=pdfdir ;; 1203 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1204 pdfdir=$ac_optarg ;; 1205 1206 -psdir | --psdir | --psdi | --psd | --ps) 1207 ac_prev=psdir ;; 1208 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1209 psdir=$ac_optarg ;; 1210 1211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1212 | -silent | --silent | --silen | --sile | --sil) 1213 silent=yes ;; 1214 1215 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1216 | --runstate | --runstat | --runsta | --runst | --runs \ 1217 | --run | --ru | --r) 1218 ac_prev=runstatedir ;; 1219 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1220 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1221 | --run=* | --ru=* | --r=*) 1222 runstatedir=$ac_optarg ;; 1223 1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1225 ac_prev=sbindir ;; 1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1227 | --sbi=* | --sb=*) 1228 sbindir=$ac_optarg ;; 1229 1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1232 | --sharedst | --shareds | --shared | --share | --shar \ 1233 | --sha | --sh) 1234 ac_prev=sharedstatedir ;; 1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1238 | --sha=* | --sh=*) 1239 sharedstatedir=$ac_optarg ;; 1240 1241 -site | --site | --sit) 1242 ac_prev=site ;; 1243 -site=* | --site=* | --sit=*) 1244 site=$ac_optarg ;; 1245 1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1247 ac_prev=srcdir ;; 1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1249 srcdir=$ac_optarg ;; 1250 1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1252 | --syscon | --sysco | --sysc | --sys | --sy) 1253 ac_prev=sysconfdir ;; 1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1256 sysconfdir=$ac_optarg ;; 1257 1258 -target | --target | --targe | --targ | --tar | --ta | --t) 1259 ac_prev=target_alias ;; 1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1261 target_alias=$ac_optarg ;; 1262 1263 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1264 verbose=yes ;; 1265 1266 -version | --version | --versio | --versi | --vers | -V) 1267 ac_init_version=: ;; 1268 1269 -with-* | --with-*) 1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1271 # Reject names that are not valid shell variable names. 1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1273 as_fn_error $? "invalid package name: \`$ac_useropt'" 1274 ac_useropt_orig=$ac_useropt 1275 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1276 case $ac_user_opts in 1277 *" 1278"with_$ac_useropt" 1279"*) ;; 1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1281 ac_unrecognized_sep=', ';; 1282 esac 1283 eval with_$ac_useropt=\$ac_optarg ;; 1284 1285 -without-* | --without-*) 1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1289 as_fn_error $? "invalid package name: \`$ac_useropt'" 1290 ac_useropt_orig=$ac_useropt 1291 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1292 case $ac_user_opts in 1293 *" 1294"with_$ac_useropt" 1295"*) ;; 1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1297 ac_unrecognized_sep=', ';; 1298 esac 1299 eval with_$ac_useropt=no ;; 1300 1301 --x) 1302 # Obsolete; use --with-x. 1303 with_x=yes ;; 1304 1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1306 | --x-incl | --x-inc | --x-in | --x-i) 1307 ac_prev=x_includes ;; 1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1310 x_includes=$ac_optarg ;; 1311 1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1314 ac_prev=x_libraries ;; 1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1317 x_libraries=$ac_optarg ;; 1318 1319 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1320Try \`$0 --help' for more information" 1321 ;; 1322 1323 *=*) 1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1325 # Reject names that are not valid shell variable names. 1326 case $ac_envvar in #( 1327 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1328 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1329 esac 1330 eval $ac_envvar=\$ac_optarg 1331 export $ac_envvar ;; 1332 1333 *) 1334 # FIXME: should be removed in autoconf 3.0. 1335 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1337 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1338 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1339 ;; 1340 1341 esac 1342done 1343 1344if test -n "$ac_prev"; then 1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1346 as_fn_error $? "missing argument to $ac_option" 1347fi 1348 1349if test -n "$ac_unrecognized_opts"; then 1350 case $enable_option_checking in 1351 no) ;; 1352 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1353 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1354 esac 1355fi 1356 1357# Check all directory arguments for consistency. 1358for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1359 datadir sysconfdir sharedstatedir localstatedir includedir \ 1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1361 libdir localedir mandir runstatedir 1362do 1363 eval ac_val=\$$ac_var 1364 # Remove trailing slashes. 1365 case $ac_val in 1366 */ ) 1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1368 eval $ac_var=\$ac_val;; 1369 esac 1370 # Be sure to have absolute directory names. 1371 case $ac_val in 1372 [\\/$]* | ?:[\\/]* ) continue;; 1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1374 esac 1375 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1376done 1377 1378# There might be people who depend on the old broken behavior: `$host' 1379# used to hold the argument of --host etc. 1380# FIXME: To remove some day. 1381build=$build_alias 1382host=$host_alias 1383target=$target_alias 1384 1385# FIXME: To remove some day. 1386if test "x$host_alias" != x; then 1387 if test "x$build_alias" = x; then 1388 cross_compiling=maybe 1389 elif test "x$build_alias" != "x$host_alias"; then 1390 cross_compiling=yes 1391 fi 1392fi 1393 1394ac_tool_prefix= 1395test -n "$host_alias" && ac_tool_prefix=$host_alias- 1396 1397test "$silent" = yes && exec 6>/dev/null 1398 1399 1400ac_pwd=`pwd` && test -n "$ac_pwd" && 1401ac_ls_di=`ls -di .` && 1402ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1403 as_fn_error $? "working directory cannot be determined" 1404test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1405 as_fn_error $? "pwd does not report name of working directory" 1406 1407 1408# Find the source files, if location was not specified. 1409if test -z "$srcdir"; then 1410 ac_srcdir_defaulted=yes 1411 # Try the directory containing this script, then the parent directory. 1412 ac_confdir=`$as_dirname -- "$as_myself" || 1413$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1414 X"$as_myself" : 'X\(//\)[^/]' \| \ 1415 X"$as_myself" : 'X\(//\)$' \| \ 1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1417printf "%s\n" X"$as_myself" | 1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1419 s//\1/ 1420 q 1421 } 1422 /^X\(\/\/\)[^/].*/{ 1423 s//\1/ 1424 q 1425 } 1426 /^X\(\/\/\)$/{ 1427 s//\1/ 1428 q 1429 } 1430 /^X\(\/\).*/{ 1431 s//\1/ 1432 q 1433 } 1434 s/.*/./; q'` 1435 srcdir=$ac_confdir 1436 if test ! -r "$srcdir/$ac_unique_file"; then 1437 srcdir=.. 1438 fi 1439else 1440 ac_srcdir_defaulted=no 1441fi 1442if test ! -r "$srcdir/$ac_unique_file"; then 1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1444 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1445fi 1446ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1447ac_abs_confdir=`( 1448 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1449 pwd)` 1450# When building in place, set srcdir=. 1451if test "$ac_abs_confdir" = "$ac_pwd"; then 1452 srcdir=. 1453fi 1454# Remove unnecessary trailing slashes from srcdir. 1455# Double slashes in file names in object file debugging info 1456# mess up M-x gdb in Emacs. 1457case $srcdir in 1458*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1459esac 1460for ac_var in $ac_precious_vars; do 1461 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1462 eval ac_env_${ac_var}_value=\$${ac_var} 1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1464 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1465done 1466 1467# 1468# Report the --help message. 1469# 1470if test "$ac_init_help" = "long"; then 1471 # Omit some internal or obsolete options to make the list less imposing. 1472 # This message is too long to be a string in the A/UX 3.1 sh. 1473 cat <<_ACEOF 1474\`configure' configures libevent 2.1.12-stable to adapt to many kinds of systems. 1475 1476Usage: $0 [OPTION]... [VAR=VALUE]... 1477 1478To assign environment variables (e.g., CC, CFLAGS...), specify them as 1479VAR=VALUE. See below for descriptions of some of the useful variables. 1480 1481Defaults for the options are specified in brackets. 1482 1483Configuration: 1484 -h, --help display this help and exit 1485 --help=short display options specific to this package 1486 --help=recursive display the short help of all the included packages 1487 -V, --version display version information and exit 1488 -q, --quiet, --silent do not print \`checking ...' messages 1489 --cache-file=FILE cache test results in FILE [disabled] 1490 -C, --config-cache alias for \`--cache-file=config.cache' 1491 -n, --no-create do not create output files 1492 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1493 1494Installation directories: 1495 --prefix=PREFIX install architecture-independent files in PREFIX 1496 [$ac_default_prefix] 1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1498 [PREFIX] 1499 1500By default, \`make install' will install all the files in 1501\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1502an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1503for instance \`--prefix=\$HOME'. 1504 1505For better control, use the options below. 1506 1507Fine tuning of the installation directories: 1508 --bindir=DIR user executables [EPREFIX/bin] 1509 --sbindir=DIR system admin executables [EPREFIX/sbin] 1510 --libexecdir=DIR program executables [EPREFIX/libexec] 1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1514 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1515 --libdir=DIR object code libraries [EPREFIX/lib] 1516 --includedir=DIR C header files [PREFIX/include] 1517 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1520 --infodir=DIR info documentation [DATAROOTDIR/info] 1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1522 --mandir=DIR man documentation [DATAROOTDIR/man] 1523 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent] 1524 --htmldir=DIR html documentation [DOCDIR] 1525 --dvidir=DIR dvi documentation [DOCDIR] 1526 --pdfdir=DIR pdf documentation [DOCDIR] 1527 --psdir=DIR ps documentation [DOCDIR] 1528_ACEOF 1529 1530 cat <<\_ACEOF 1531 1532Program names: 1533 --program-prefix=PREFIX prepend PREFIX to installed program names 1534 --program-suffix=SUFFIX append SUFFIX to installed program names 1535 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1536 1537System types: 1538 --build=BUILD configure for building on BUILD [guessed] 1539 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1540_ACEOF 1541fi 1542 1543if test -n "$ac_init_help"; then 1544 case $ac_init_help in 1545 short | recursive ) echo "Configuration of libevent 2.1.12-stable:";; 1546 esac 1547 cat <<\_ACEOF 1548 1549Optional Features: 1550 --disable-option-checking ignore unrecognized --enable/--with options 1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1553 --enable-silent-rules less verbose build output (undo: "make V=1") 1554 --disable-silent-rules verbose build output (undo: "make V=0") 1555 --enable-dependency-tracking 1556 do not reject slow dependency extractors 1557 --disable-dependency-tracking 1558 speeds up one-time build 1559 --disable-gcc-warnings disable verbose warnings with GCC 1560 --enable-gcc-hardening enable compiler security checks 1561 --disable-thread-support 1562 disable support for threading 1563 --disable-malloc-replacement 1564 disable support for replacing the memory mgt 1565 functions 1566 --disable-openssl disable support for openssl encryption 1567 --disable-debug-mode disable support for running in debug mode 1568 --disable-libevent-install, disable installation of libevent 1569 1570 --disable-libevent-regress, skip regress in make check 1571 1572 --disable-samples, skip building of sample programs 1573 1574 --enable-function-sections, make static library allow smaller binaries with --gc-sections 1575 1576 --enable-verbose-debug, verbose debug logging 1577 1578 --disable-clock-gettime do not use clock_gettime even if it is available 1579 --enable-shared[=PKGS] build shared libraries [default=yes] 1580 --enable-static[=PKGS] build static libraries [default=yes] 1581 --enable-fast-install[=PKGS] 1582 optimize for fast installation [default=yes] 1583 --disable-libtool-lock avoid locking (might break parallel builds) 1584 --disable-largefile omit support for large files 1585 --enable-doxygen-doc generate any doxygen documentation 1586 --enable-doxygen-dot generate graphics for doxygen documentation 1587 --enable-doxygen-man generate doxygen manual pages 1588 --enable-doxygen-rtf generate doxygen RTF documentation 1589 --enable-doxygen-xml generate doxygen XML documentation 1590 --enable-doxygen-chm generate doxygen compressed HTML help documentation 1591 --enable-doxygen-chi generate doxygen separate compressed HTML help index 1592 file 1593 --disable-doxygen-html don't generate doxygen plain HTML documentation 1594 --enable-doxygen-ps generate doxygen PostScript documentation 1595 --enable-doxygen-pdf generate doxygen PDF documentation 1596 1597Optional Packages: 1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1600 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1601 both] 1602 --with-aix-soname=aix|svr4|both 1603 shared library versioning (aka "SONAME") variant to 1604 provide on AIX, [default=aix]. 1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1606 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1607 compiler's sysroot if not specified). 1608 1609Some influential environment variables: 1610 CC C compiler command 1611 CFLAGS C compiler flags 1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1613 nonstandard directory <lib dir> 1614 LIBS libraries to pass to the linker, e.g. -l<library> 1615 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1616 you have headers in a nonstandard directory <include dir> 1617 CPP C preprocessor 1618 LT_SYS_LIBRARY_PATH 1619 User-defined run-time library search path. 1620 DOXYGEN_PAPER_SIZE 1621 a4wide (default), a4, letter, legal or executive 1622 1623Use these variables to override the choices made by `configure' or to help 1624it to find libraries and programs with nonstandard names/locations. 1625 1626Report bugs to the package provider. 1627_ACEOF 1628ac_status=$? 1629fi 1630 1631if test "$ac_init_help" = "recursive"; then 1632 # If there are subdirs, report their specific --help. 1633 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1634 test -d "$ac_dir" || 1635 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1636 continue 1637 ac_builddir=. 1638 1639case "$ac_dir" in 1640.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1641*) 1642 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1643 # A ".." for each directory in $ac_dir_suffix. 1644 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1645 case $ac_top_builddir_sub in 1646 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1647 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1648 esac ;; 1649esac 1650ac_abs_top_builddir=$ac_pwd 1651ac_abs_builddir=$ac_pwd$ac_dir_suffix 1652# for backward compatibility: 1653ac_top_builddir=$ac_top_build_prefix 1654 1655case $srcdir in 1656 .) # We are building in place. 1657 ac_srcdir=. 1658 ac_top_srcdir=$ac_top_builddir_sub 1659 ac_abs_top_srcdir=$ac_pwd ;; 1660 [\\/]* | ?:[\\/]* ) # Absolute name. 1661 ac_srcdir=$srcdir$ac_dir_suffix; 1662 ac_top_srcdir=$srcdir 1663 ac_abs_top_srcdir=$srcdir ;; 1664 *) # Relative name. 1665 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1666 ac_top_srcdir=$ac_top_build_prefix$srcdir 1667 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1668esac 1669ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1670 1671 cd "$ac_dir" || { ac_status=$?; continue; } 1672 # Check for configure.gnu first; this name is used for a wrapper for 1673 # Metaconfig's "Configure" on case-insensitive file systems. 1674 if test -f "$ac_srcdir/configure.gnu"; then 1675 echo && 1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1677 elif test -f "$ac_srcdir/configure"; then 1678 echo && 1679 $SHELL "$ac_srcdir/configure" --help=recursive 1680 else 1681 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1682 fi || ac_status=$? 1683 cd "$ac_pwd" || { ac_status=$?; break; } 1684 done 1685fi 1686 1687test -n "$ac_init_help" && exit $ac_status 1688if $ac_init_version; then 1689 cat <<\_ACEOF 1690libevent configure 2.1.12-stable 1691generated by GNU Autoconf 2.71 1692 1693Copyright (C) 2021 Free Software Foundation, Inc. 1694This configure script is free software; the Free Software Foundation 1695gives unlimited permission to copy, distribute and modify it. 1696_ACEOF 1697 exit 1698fi 1699 1700## ------------------------ ## 1701## Autoconf initialization. ## 1702## ------------------------ ## 1703 1704# ac_fn_c_try_compile LINENO 1705# -------------------------- 1706# Try to compile conftest.$ac_ext, and return whether this succeeded. 1707ac_fn_c_try_compile () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 rm -f conftest.$ac_objext conftest.beam 1711 if { { ac_try="$ac_compile" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717printf "%s\n" "$ac_try_echo"; } >&5 1718 (eval "$ac_compile") 2>conftest.err 1719 ac_status=$? 1720 if test -s conftest.err; then 1721 grep -v '^ *+' conftest.err >conftest.er1 1722 cat conftest.er1 >&5 1723 mv -f conftest.er1 conftest.err 1724 fi 1725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { 1727 test -z "$ac_c_werror_flag" || 1728 test ! -s conftest.err 1729 } && test -s conftest.$ac_objext 1730then : 1731 ac_retval=0 1732else $as_nop 1733 printf "%s\n" "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_compile 1742 1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1744# ------------------------------------------------------- 1745# Tests whether HEADER exists and can be compiled using the include files in 1746# INCLUDES, setting the cache variable VAR accordingly. 1747ac_fn_c_check_header_compile () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1751printf %s "checking for $2... " >&6; } 1752if eval test \${$3+y} 1753then : 1754 printf %s "(cached) " >&6 1755else $as_nop 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758$4 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO" 1762then : 1763 eval "$3=yes" 1764else $as_nop 1765 eval "$3=no" 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1768fi 1769eval ac_res=\$$3 1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771printf "%s\n" "$ac_res" >&6; } 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 1774} # ac_fn_c_check_header_compile 1775 1776# ac_fn_c_try_cpp LINENO 1777# ---------------------- 1778# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1779ac_fn_c_try_cpp () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 if { { ac_try="$ac_cpp conftest.$ac_ext" 1783case "(($ac_try" in 1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1785 *) ac_try_echo=$ac_try;; 1786esac 1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1788printf "%s\n" "$ac_try_echo"; } >&5 1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1790 ac_status=$? 1791 if test -s conftest.err; then 1792 grep -v '^ *+' conftest.err >conftest.er1 1793 cat conftest.er1 >&5 1794 mv -f conftest.er1 conftest.err 1795 fi 1796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } > conftest.i && { 1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1799 test ! -s conftest.err 1800 } 1801then : 1802 ac_retval=0 1803else $as_nop 1804 printf "%s\n" "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=1 1808fi 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_c_try_cpp 1813 1814# ac_fn_c_try_link LINENO 1815# ----------------------- 1816# Try to link conftest.$ac_ext, and return whether this succeeded. 1817ac_fn_c_try_link () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1821 if { { ac_try="$ac_link" 1822case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825esac 1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827printf "%s\n" "$ac_try_echo"; } >&5 1828 (eval "$ac_link") 2>conftest.err 1829 ac_status=$? 1830 if test -s conftest.err; then 1831 grep -v '^ *+' conftest.err >conftest.er1 1832 cat conftest.er1 >&5 1833 mv -f conftest.er1 conftest.err 1834 fi 1835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } && { 1837 test -z "$ac_c_werror_flag" || 1838 test ! -s conftest.err 1839 } && test -s conftest$ac_exeext && { 1840 test "$cross_compiling" = yes || 1841 test -x conftest$ac_exeext 1842 } 1843then : 1844 ac_retval=0 1845else $as_nop 1846 printf "%s\n" "$as_me: failed program was:" >&5 1847sed 's/^/| /' conftest.$ac_ext >&5 1848 1849 ac_retval=1 1850fi 1851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1853 # interfere with the next link command; also delete a directory that is 1854 # left behind by Apple's compiler. We do this before executing the actions. 1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_c_try_link 1860 1861# ac_fn_c_check_func LINENO FUNC VAR 1862# ---------------------------------- 1863# Tests whether FUNC exists, setting the cache variable VAR accordingly 1864ac_fn_c_check_func () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1868printf %s "checking for $2... " >&6; } 1869if eval test \${$3+y} 1870then : 1871 printf %s "(cached) " >&6 1872else $as_nop 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1877#define $2 innocuous_$2 1878 1879/* System header to define __stub macros and hopefully few prototypes, 1880 which can conflict with char $2 (); below. */ 1881 1882#include <limits.h> 1883#undef $2 1884 1885/* Override any GCC internal prototype to avoid an error. 1886 Use char because int might match the return type of a GCC 1887 builtin and then its argument prototype would still apply. */ 1888#ifdef __cplusplus 1889extern "C" 1890#endif 1891char $2 (); 1892/* The GNU C library defines this for functions which it implements 1893 to always fail with ENOSYS. Some functions are actually named 1894 something starting with __ and the normal name is an alias. */ 1895#if defined __stub_$2 || defined __stub___$2 1896choke me 1897#endif 1898 1899int 1900main (void) 1901{ 1902return $2 (); 1903 ; 1904 return 0; 1905} 1906_ACEOF 1907if ac_fn_c_try_link "$LINENO" 1908then : 1909 eval "$3=yes" 1910else $as_nop 1911 eval "$3=no" 1912fi 1913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1914 conftest$ac_exeext conftest.$ac_ext 1915fi 1916eval ac_res=\$$3 1917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918printf "%s\n" "$ac_res" >&6; } 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 1921} # ac_fn_c_check_func 1922 1923# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1924# ------------------------------------------------------------------ 1925# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1926# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1927ac_fn_check_decl () 1928{ 1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1930 as_decl_name=`echo $2|sed 's/ *(.*//'` 1931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1932printf %s "checking whether $as_decl_name is declared... " >&6; } 1933if eval test \${$3+y} 1934then : 1935 printf %s "(cached) " >&6 1936else $as_nop 1937 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1938 eval ac_save_FLAGS=\$$6 1939 as_fn_append $6 " $5" 1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943int 1944main (void) 1945{ 1946#ifndef $as_decl_name 1947#ifdef __cplusplus 1948 (void) $as_decl_use; 1949#else 1950 (void) $as_decl_name; 1951#endif 1952#endif 1953 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958if ac_fn_c_try_compile "$LINENO" 1959then : 1960 eval "$3=yes" 1961else $as_nop 1962 eval "$3=no" 1963fi 1964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1965 eval $6=\$ac_save_FLAGS 1966 1967fi 1968eval ac_res=\$$3 1969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1970printf "%s\n" "$ac_res" >&6; } 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973} # ac_fn_check_decl 1974 1975# ac_fn_c_try_run LINENO 1976# ---------------------- 1977# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1978# executables *can* be run. 1979ac_fn_c_try_run () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 if { { ac_try="$ac_link" 1983case "(($ac_try" in 1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1985 *) ac_try_echo=$ac_try;; 1986esac 1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1988printf "%s\n" "$ac_try_echo"; } >&5 1989 (eval "$ac_link") 2>&5 1990 ac_status=$? 1991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1992 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1993 { { case "(($ac_try" in 1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1995 *) ac_try_echo=$ac_try;; 1996esac 1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1998printf "%s\n" "$ac_try_echo"; } >&5 1999 (eval "$ac_try") 2>&5 2000 ac_status=$? 2001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2002 test $ac_status = 0; }; } 2003then : 2004 ac_retval=0 2005else $as_nop 2006 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2007 printf "%s\n" "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=$ac_status 2011fi 2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 as_fn_set_status $ac_retval 2015 2016} # ac_fn_c_try_run 2017 2018# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2019# ------------------------------------------- 2020# Tests whether TYPE exists after having included INCLUDES, setting cache 2021# variable VAR accordingly. 2022ac_fn_c_check_type () 2023{ 2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2026printf %s "checking for $2... " >&6; } 2027if eval test \${$3+y} 2028then : 2029 printf %s "(cached) " >&6 2030else $as_nop 2031 eval "$3=no" 2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2033/* end confdefs.h. */ 2034$4 2035int 2036main (void) 2037{ 2038if (sizeof ($2)) 2039 return 0; 2040 ; 2041 return 0; 2042} 2043_ACEOF 2044if ac_fn_c_try_compile "$LINENO" 2045then : 2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2047/* end confdefs.h. */ 2048$4 2049int 2050main (void) 2051{ 2052if (sizeof (($2))) 2053 return 0; 2054 ; 2055 return 0; 2056} 2057_ACEOF 2058if ac_fn_c_try_compile "$LINENO" 2059then : 2060 2061else $as_nop 2062 eval "$3=yes" 2063fi 2064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2065fi 2066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2067fi 2068eval ac_res=\$$3 2069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2070printf "%s\n" "$ac_res" >&6; } 2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2072 2073} # ac_fn_c_check_type 2074 2075# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2076# -------------------------------------------- 2077# Tries to find the compile-time value of EXPR in a program that includes 2078# INCLUDES, setting VAR accordingly. Returns whether the value could be 2079# computed 2080ac_fn_c_compute_int () 2081{ 2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2083 if test "$cross_compiling" = yes; then 2084 # Depending upon the size, compute the lo and hi bounds. 2085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086/* end confdefs.h. */ 2087$4 2088int 2089main (void) 2090{ 2091static int test_array [1 - 2 * !(($2) >= 0)]; 2092test_array [0] = 0; 2093return test_array [0]; 2094 2095 ; 2096 return 0; 2097} 2098_ACEOF 2099if ac_fn_c_try_compile "$LINENO" 2100then : 2101 ac_lo=0 ac_mid=0 2102 while :; do 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2104/* end confdefs.h. */ 2105$4 2106int 2107main (void) 2108{ 2109static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2110test_array [0] = 0; 2111return test_array [0]; 2112 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117if ac_fn_c_try_compile "$LINENO" 2118then : 2119 ac_hi=$ac_mid; break 2120else $as_nop 2121 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2122 if test $ac_lo -le $ac_mid; then 2123 ac_lo= ac_hi= 2124 break 2125 fi 2126 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2127fi 2128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2129 done 2130else $as_nop 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132/* end confdefs.h. */ 2133$4 2134int 2135main (void) 2136{ 2137static int test_array [1 - 2 * !(($2) < 0)]; 2138test_array [0] = 0; 2139return test_array [0]; 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO" 2146then : 2147 ac_hi=-1 ac_mid=-1 2148 while :; do 2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2150/* end confdefs.h. */ 2151$4 2152int 2153main (void) 2154{ 2155static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2156test_array [0] = 0; 2157return test_array [0]; 2158 2159 ; 2160 return 0; 2161} 2162_ACEOF 2163if ac_fn_c_try_compile "$LINENO" 2164then : 2165 ac_lo=$ac_mid; break 2166else $as_nop 2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2168 if test $ac_mid -le $ac_hi; then 2169 ac_lo= ac_hi= 2170 break 2171 fi 2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2173fi 2174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2175 done 2176else $as_nop 2177 ac_lo= ac_hi= 2178fi 2179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2182# Binary search between lo and hi bounds. 2183while test "x$ac_lo" != "x$ac_hi"; do 2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187$4 2188int 2189main (void) 2190{ 2191static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2192test_array [0] = 0; 2193return test_array [0]; 2194 2195 ; 2196 return 0; 2197} 2198_ACEOF 2199if ac_fn_c_try_compile "$LINENO" 2200then : 2201 ac_hi=$ac_mid 2202else $as_nop 2203 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2204fi 2205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2206done 2207case $ac_lo in #(( 2208?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2209'') ac_retval=1 ;; 2210esac 2211 else 2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2213/* end confdefs.h. */ 2214$4 2215static long int longval (void) { return $2; } 2216static unsigned long int ulongval (void) { return $2; } 2217#include <stdio.h> 2218#include <stdlib.h> 2219int 2220main (void) 2221{ 2222 2223 FILE *f = fopen ("conftest.val", "w"); 2224 if (! f) 2225 return 1; 2226 if (($2) < 0) 2227 { 2228 long int i = longval (); 2229 if (i != ($2)) 2230 return 1; 2231 fprintf (f, "%ld", i); 2232 } 2233 else 2234 { 2235 unsigned long int i = ulongval (); 2236 if (i != ($2)) 2237 return 1; 2238 fprintf (f, "%lu", i); 2239 } 2240 /* Do not output a trailing newline, as this causes \r\n confusion 2241 on some platforms. */ 2242 return ferror (f) || fclose (f) != 0; 2243 2244 ; 2245 return 0; 2246} 2247_ACEOF 2248if ac_fn_c_try_run "$LINENO" 2249then : 2250 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2251else $as_nop 2252 ac_retval=1 2253fi 2254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2255 conftest.$ac_objext conftest.beam conftest.$ac_ext 2256rm -f conftest.val 2257 2258 fi 2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2260 as_fn_set_status $ac_retval 2261 2262} # ac_fn_c_compute_int 2263 2264# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2265# ---------------------------------------------------- 2266# Tries to find if the field MEMBER exists in type AGGR, after including 2267# INCLUDES, setting cache variable VAR accordingly. 2268ac_fn_c_check_member () 2269{ 2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2272printf %s "checking for $2.$3... " >&6; } 2273if eval test \${$4+y} 2274then : 2275 printf %s "(cached) " >&6 2276else $as_nop 2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2278/* end confdefs.h. */ 2279$5 2280int 2281main (void) 2282{ 2283static $2 ac_aggr; 2284if (ac_aggr.$3) 2285return 0; 2286 ; 2287 return 0; 2288} 2289_ACEOF 2290if ac_fn_c_try_compile "$LINENO" 2291then : 2292 eval "$4=yes" 2293else $as_nop 2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$5 2297int 2298main (void) 2299{ 2300static $2 ac_aggr; 2301if (sizeof ac_aggr.$3) 2302return 0; 2303 ; 2304 return 0; 2305} 2306_ACEOF 2307if ac_fn_c_try_compile "$LINENO" 2308then : 2309 eval "$4=yes" 2310else $as_nop 2311 eval "$4=no" 2312fi 2313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2314fi 2315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2316fi 2317eval ac_res=\$$4 2318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2319printf "%s\n" "$ac_res" >&6; } 2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2321 2322} # ac_fn_c_check_member 2323ac_configure_args_raw= 2324for ac_arg 2325do 2326 case $ac_arg in 2327 *\'*) 2328 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 esac 2330 as_fn_append ac_configure_args_raw " '$ac_arg'" 2331done 2332 2333case $ac_configure_args_raw in 2334 *$as_nl*) 2335 ac_safe_unquote= ;; 2336 *) 2337 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2338 ac_unsafe_a="$ac_unsafe_z#~" 2339 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2340 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2341esac 2342 2343cat >config.log <<_ACEOF 2344This file contains any messages produced by compilers while 2345running configure, to aid debugging if configure makes a mistake. 2346 2347It was created by libevent $as_me 2.1.12-stable, which was 2348generated by GNU Autoconf 2.71. Invocation command line was 2349 2350 $ $0$ac_configure_args_raw 2351 2352_ACEOF 2353exec 5>>config.log 2354{ 2355cat <<_ASUNAME 2356## --------- ## 2357## Platform. ## 2358## --------- ## 2359 2360hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2361uname -m = `(uname -m) 2>/dev/null || echo unknown` 2362uname -r = `(uname -r) 2>/dev/null || echo unknown` 2363uname -s = `(uname -s) 2>/dev/null || echo unknown` 2364uname -v = `(uname -v) 2>/dev/null || echo unknown` 2365 2366/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2367/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2368 2369/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2370/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2371/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2372/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2373/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2374/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2375/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2376 2377_ASUNAME 2378 2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380for as_dir in $PATH 2381do 2382 IFS=$as_save_IFS 2383 case $as_dir in #((( 2384 '') as_dir=./ ;; 2385 */) ;; 2386 *) as_dir=$as_dir/ ;; 2387 esac 2388 printf "%s\n" "PATH: $as_dir" 2389 done 2390IFS=$as_save_IFS 2391 2392} >&5 2393 2394cat >&5 <<_ACEOF 2395 2396 2397## ----------- ## 2398## Core tests. ## 2399## ----------- ## 2400 2401_ACEOF 2402 2403 2404# Keep a trace of the command line. 2405# Strip out --no-create and --no-recursion so they do not pile up. 2406# Strip out --silent because we don't want to record it for future runs. 2407# Also quote any args containing shell meta-characters. 2408# Make two passes to allow for proper duplicate-argument suppression. 2409ac_configure_args= 2410ac_configure_args0= 2411ac_configure_args1= 2412ac_must_keep_next=false 2413for ac_pass in 1 2 2414do 2415 for ac_arg 2416 do 2417 case $ac_arg in 2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2420 | -silent | --silent | --silen | --sile | --sil) 2421 continue ;; 2422 *\'*) 2423 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2424 esac 2425 case $ac_pass in 2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2427 2) 2428 as_fn_append ac_configure_args1 " '$ac_arg'" 2429 if test $ac_must_keep_next = true; then 2430 ac_must_keep_next=false # Got value, back to normal. 2431 else 2432 case $ac_arg in 2433 *=* | --config-cache | -C | -disable-* | --disable-* \ 2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2436 | -with-* | --with-* | -without-* | --without-* | --x) 2437 case "$ac_configure_args0 " in 2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2439 esac 2440 ;; 2441 -* ) ac_must_keep_next=true ;; 2442 esac 2443 fi 2444 as_fn_append ac_configure_args " '$ac_arg'" 2445 ;; 2446 esac 2447 done 2448done 2449{ ac_configure_args0=; unset ac_configure_args0;} 2450{ ac_configure_args1=; unset ac_configure_args1;} 2451 2452# When interrupted or exit'd, cleanup temporary files, and complete 2453# config.log. We remove comments because anyway the quotes in there 2454# would cause problems or look ugly. 2455# WARNING: Use '\'' to represent an apostrophe within the trap. 2456# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2457trap 'exit_status=$? 2458 # Sanitize IFS. 2459 IFS=" "" $as_nl" 2460 # Save into config.log some information that might help in debugging. 2461 { 2462 echo 2463 2464 printf "%s\n" "## ---------------- ## 2465## Cache variables. ## 2466## ---------------- ##" 2467 echo 2468 # The following way of writing the cache mishandles newlines in values, 2469( 2470 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2471 eval ac_val=\$$ac_var 2472 case $ac_val in #( 2473 *${as_nl}*) 2474 case $ac_var in #( 2475 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2476printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2477 esac 2478 case $ac_var in #( 2479 _ | IFS | as_nl) ;; #( 2480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2481 *) { eval $ac_var=; unset $ac_var;} ;; 2482 esac ;; 2483 esac 2484 done 2485 (set) 2>&1 | 2486 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2487 *${as_nl}ac_space=\ *) 2488 sed -n \ 2489 "s/'\''/'\''\\\\'\'''\''/g; 2490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2491 ;; #( 2492 *) 2493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2494 ;; 2495 esac | 2496 sort 2497) 2498 echo 2499 2500 printf "%s\n" "## ----------------- ## 2501## Output variables. ## 2502## ----------------- ##" 2503 echo 2504 for ac_var in $ac_subst_vars 2505 do 2506 eval ac_val=\$$ac_var 2507 case $ac_val in 2508 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2509 esac 2510 printf "%s\n" "$ac_var='\''$ac_val'\''" 2511 done | sort 2512 echo 2513 2514 if test -n "$ac_subst_files"; then 2515 printf "%s\n" "## ------------------- ## 2516## File substitutions. ## 2517## ------------------- ##" 2518 echo 2519 for ac_var in $ac_subst_files 2520 do 2521 eval ac_val=\$$ac_var 2522 case $ac_val in 2523 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2524 esac 2525 printf "%s\n" "$ac_var='\''$ac_val'\''" 2526 done | sort 2527 echo 2528 fi 2529 2530 if test -s confdefs.h; then 2531 printf "%s\n" "## ----------- ## 2532## confdefs.h. ## 2533## ----------- ##" 2534 echo 2535 cat confdefs.h 2536 echo 2537 fi 2538 test "$ac_signal" != 0 && 2539 printf "%s\n" "$as_me: caught signal $ac_signal" 2540 printf "%s\n" "$as_me: exit $exit_status" 2541 } >&5 2542 rm -f core *.core core.conftest.* && 2543 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2544 exit $exit_status 2545' 0 2546for ac_signal in 1 2 13 15; do 2547 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2548done 2549ac_signal=0 2550 2551# confdefs.h avoids OS command line length limits that DEFS can exceed. 2552rm -f -r conftest* confdefs.h 2553 2554printf "%s\n" "/* confdefs.h */" > confdefs.h 2555 2556# Predefined preprocessor variables. 2557 2558printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2559 2560printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2561 2562printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2563 2564printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2565 2566printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2567 2568printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2569 2570 2571# Let the site file select an alternate cache file if it wants to. 2572# Prefer an explicitly selected file to automatically selected ones. 2573if test -n "$CONFIG_SITE"; then 2574 ac_site_files="$CONFIG_SITE" 2575elif test "x$prefix" != xNONE; then 2576 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2577else 2578 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2579fi 2580 2581for ac_site_file in $ac_site_files 2582do 2583 case $ac_site_file in #( 2584 */*) : 2585 ;; #( 2586 *) : 2587 ac_site_file=./$ac_site_file ;; 2588esac 2589 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2591printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2592 sed 's/^/| /' "$ac_site_file" >&5 2593 . "$ac_site_file" \ 2594 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2595printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2596as_fn_error $? "failed to load site script $ac_site_file 2597See \`config.log' for more details" "$LINENO" 5; } 2598 fi 2599done 2600 2601if test -r "$cache_file"; then 2602 # Some versions of bash will fail to source /dev/null (special files 2603 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2604 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2606printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2607 case $cache_file in 2608 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2609 *) . "./$cache_file";; 2610 esac 2611 fi 2612else 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2614printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2615 >$cache_file 2616fi 2617 2618as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2619# Test code for whether the C compiler supports C89 (global declarations) 2620ac_c_conftest_c89_globals=' 2621/* Does the compiler advertise C89 conformance? 2622 Do not test the value of __STDC__, because some compilers set it to 0 2623 while being otherwise adequately conformant. */ 2624#if !defined __STDC__ 2625# error "Compiler does not advertise C89 conformance" 2626#endif 2627 2628#include <stddef.h> 2629#include <stdarg.h> 2630struct stat; 2631/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2632struct buf { int x; }; 2633struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2634static char *e (p, i) 2635 char **p; 2636 int i; 2637{ 2638 return p[i]; 2639} 2640static char *f (char * (*g) (char **, int), char **p, ...) 2641{ 2642 char *s; 2643 va_list v; 2644 va_start (v,p); 2645 s = g (p, va_arg (v,int)); 2646 va_end (v); 2647 return s; 2648} 2649 2650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2651 function prototypes and stuff, but not \xHH hex character constants. 2652 These do not provoke an error unfortunately, instead are silently treated 2653 as an "x". The following induces an error, until -std is added to get 2654 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2655 array size at least. It is necessary to write \x00 == 0 to get something 2656 that is true only with -std. */ 2657int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2658 2659/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2660 inside strings and character constants. */ 2661#define FOO(x) '\''x'\'' 2662int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2663 2664int test (int i, double x); 2665struct s1 {int (*f) (int a);}; 2666struct s2 {int (*f) (double a);}; 2667int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2668 int, int);' 2669 2670# Test code for whether the C compiler supports C89 (body of main). 2671ac_c_conftest_c89_main=' 2672ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2673' 2674 2675# Test code for whether the C compiler supports C99 (global declarations) 2676ac_c_conftest_c99_globals=' 2677// Does the compiler advertise C99 conformance? 2678#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2679# error "Compiler does not advertise C99 conformance" 2680#endif 2681 2682#include <stdbool.h> 2683extern int puts (const char *); 2684extern int printf (const char *, ...); 2685extern int dprintf (int, const char *, ...); 2686extern void *malloc (size_t); 2687 2688// Check varargs macros. These examples are taken from C99 6.10.3.5. 2689// dprintf is used instead of fprintf to avoid needing to declare 2690// FILE and stderr. 2691#define debug(...) dprintf (2, __VA_ARGS__) 2692#define showlist(...) puts (#__VA_ARGS__) 2693#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2694static void 2695test_varargs_macros (void) 2696{ 2697 int x = 1234; 2698 int y = 5678; 2699 debug ("Flag"); 2700 debug ("X = %d\n", x); 2701 showlist (The first, second, and third items.); 2702 report (x>y, "x is %d but y is %d", x, y); 2703} 2704 2705// Check long long types. 2706#define BIG64 18446744073709551615ull 2707#define BIG32 4294967295ul 2708#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2709#if !BIG_OK 2710 #error "your preprocessor is broken" 2711#endif 2712#if BIG_OK 2713#else 2714 #error "your preprocessor is broken" 2715#endif 2716static long long int bignum = -9223372036854775807LL; 2717static unsigned long long int ubignum = BIG64; 2718 2719struct incomplete_array 2720{ 2721 int datasize; 2722 double data[]; 2723}; 2724 2725struct named_init { 2726 int number; 2727 const wchar_t *name; 2728 double average; 2729}; 2730 2731typedef const char *ccp; 2732 2733static inline int 2734test_restrict (ccp restrict text) 2735{ 2736 // See if C++-style comments work. 2737 // Iterate through items via the restricted pointer. 2738 // Also check for declarations in for loops. 2739 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2740 continue; 2741 return 0; 2742} 2743 2744// Check varargs and va_copy. 2745static bool 2746test_varargs (const char *format, ...) 2747{ 2748 va_list args; 2749 va_start (args, format); 2750 va_list args_copy; 2751 va_copy (args_copy, args); 2752 2753 const char *str = ""; 2754 int number = 0; 2755 float fnumber = 0; 2756 2757 while (*format) 2758 { 2759 switch (*format++) 2760 { 2761 case '\''s'\'': // string 2762 str = va_arg (args_copy, const char *); 2763 break; 2764 case '\''d'\'': // int 2765 number = va_arg (args_copy, int); 2766 break; 2767 case '\''f'\'': // float 2768 fnumber = va_arg (args_copy, double); 2769 break; 2770 default: 2771 break; 2772 } 2773 } 2774 va_end (args_copy); 2775 va_end (args); 2776 2777 return *str && number && fnumber; 2778} 2779' 2780 2781# Test code for whether the C compiler supports C99 (body of main). 2782ac_c_conftest_c99_main=' 2783 // Check bool. 2784 _Bool success = false; 2785 success |= (argc != 0); 2786 2787 // Check restrict. 2788 if (test_restrict ("String literal") == 0) 2789 success = true; 2790 char *restrict newvar = "Another string"; 2791 2792 // Check varargs. 2793 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2794 test_varargs_macros (); 2795 2796 // Check flexible array members. 2797 struct incomplete_array *ia = 2798 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2799 ia->datasize = 10; 2800 for (int i = 0; i < ia->datasize; ++i) 2801 ia->data[i] = i * 1.234; 2802 2803 // Check named initializers. 2804 struct named_init ni = { 2805 .number = 34, 2806 .name = L"Test wide string", 2807 .average = 543.34343, 2808 }; 2809 2810 ni.number = 58; 2811 2812 int dynamic_array[ni.number]; 2813 dynamic_array[0] = argv[0][0]; 2814 dynamic_array[ni.number - 1] = 543; 2815 2816 // work around unused variable warnings 2817 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2818 || dynamic_array[ni.number - 1] != 543); 2819' 2820 2821# Test code for whether the C compiler supports C11 (global declarations) 2822ac_c_conftest_c11_globals=' 2823// Does the compiler advertise C11 conformance? 2824#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2825# error "Compiler does not advertise C11 conformance" 2826#endif 2827 2828// Check _Alignas. 2829char _Alignas (double) aligned_as_double; 2830char _Alignas (0) no_special_alignment; 2831extern char aligned_as_int; 2832char _Alignas (0) _Alignas (int) aligned_as_int; 2833 2834// Check _Alignof. 2835enum 2836{ 2837 int_alignment = _Alignof (int), 2838 int_array_alignment = _Alignof (int[100]), 2839 char_alignment = _Alignof (char) 2840}; 2841_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2842 2843// Check _Noreturn. 2844int _Noreturn does_not_return (void) { for (;;) continue; } 2845 2846// Check _Static_assert. 2847struct test_static_assert 2848{ 2849 int x; 2850 _Static_assert (sizeof (int) <= sizeof (long int), 2851 "_Static_assert does not work in struct"); 2852 long int y; 2853}; 2854 2855// Check UTF-8 literals. 2856#define u8 syntax error! 2857char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2858 2859// Check duplicate typedefs. 2860typedef long *long_ptr; 2861typedef long int *long_ptr; 2862typedef long_ptr long_ptr; 2863 2864// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2865struct anonymous 2866{ 2867 union { 2868 struct { int i; int j; }; 2869 struct { int k; long int l; } w; 2870 }; 2871 int m; 2872} v1; 2873' 2874 2875# Test code for whether the C compiler supports C11 (body of main). 2876ac_c_conftest_c11_main=' 2877 _Static_assert ((offsetof (struct anonymous, i) 2878 == offsetof (struct anonymous, w.k)), 2879 "Anonymous union alignment botch"); 2880 v1.i = 2; 2881 v1.w.k = 5; 2882 ok |= v1.i != 5; 2883' 2884 2885# Test code for whether the C compiler supports C11 (complete). 2886ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2887${ac_c_conftest_c99_globals} 2888${ac_c_conftest_c11_globals} 2889 2890int 2891main (int argc, char **argv) 2892{ 2893 int ok = 0; 2894 ${ac_c_conftest_c89_main} 2895 ${ac_c_conftest_c99_main} 2896 ${ac_c_conftest_c11_main} 2897 return ok; 2898} 2899" 2900 2901# Test code for whether the C compiler supports C99 (complete). 2902ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2903${ac_c_conftest_c99_globals} 2904 2905int 2906main (int argc, char **argv) 2907{ 2908 int ok = 0; 2909 ${ac_c_conftest_c89_main} 2910 ${ac_c_conftest_c99_main} 2911 return ok; 2912} 2913" 2914 2915# Test code for whether the C compiler supports C89 (complete). 2916ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2917 2918int 2919main (int argc, char **argv) 2920{ 2921 int ok = 0; 2922 ${ac_c_conftest_c89_main} 2923 return ok; 2924} 2925" 2926 2927as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2928as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2929as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2930as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2931as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2932as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2933as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2934as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2935as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2936as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2937as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 2938 2939# Auxiliary files required by this configure script. 2940ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2941 2942# Locations in which to look for auxiliary files. 2943ac_aux_dir_candidates="${srcdir}/build-aux" 2944 2945# Search for a directory containing all of the required auxiliary files, 2946# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2947# If we don't find one directory that contains all the files we need, 2948# we report the set of missing files from the *first* directory in 2949# $ac_aux_dir_candidates and give up. 2950ac_missing_aux_files="" 2951ac_first_candidate=: 2952printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954as_found=false 2955for as_dir in $ac_aux_dir_candidates 2956do 2957 IFS=$as_save_IFS 2958 case $as_dir in #((( 2959 '') as_dir=./ ;; 2960 */) ;; 2961 *) as_dir=$as_dir/ ;; 2962 esac 2963 as_found=: 2964 2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2966 ac_aux_dir_found=yes 2967 ac_install_sh= 2968 for ac_aux in $ac_aux_files 2969 do 2970 # As a special case, if "install-sh" is required, that requirement 2971 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2972 # and $ac_install_sh is set appropriately for whichever one is found. 2973 if test x"$ac_aux" = x"install-sh" 2974 then 2975 if test -f "${as_dir}install-sh"; then 2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2977 ac_install_sh="${as_dir}install-sh -c" 2978 elif test -f "${as_dir}install.sh"; then 2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2980 ac_install_sh="${as_dir}install.sh -c" 2981 elif test -f "${as_dir}shtool"; then 2982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2983 ac_install_sh="${as_dir}shtool install -c" 2984 else 2985 ac_aux_dir_found=no 2986 if $ac_first_candidate; then 2987 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2988 else 2989 break 2990 fi 2991 fi 2992 else 2993 if test -f "${as_dir}${ac_aux}"; then 2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2995 else 2996 ac_aux_dir_found=no 2997 if $ac_first_candidate; then 2998 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2999 else 3000 break 3001 fi 3002 fi 3003 fi 3004 done 3005 if test "$ac_aux_dir_found" = yes; then 3006 ac_aux_dir="$as_dir" 3007 break 3008 fi 3009 ac_first_candidate=false 3010 3011 as_found=false 3012done 3013IFS=$as_save_IFS 3014if $as_found 3015then : 3016 3017else $as_nop 3018 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3019fi 3020 3021 3022# These three variables are undocumented and unsupported, 3023# and are intended to be withdrawn in a future Autoconf release. 3024# They can cause serious problems if a builder's source tree is in a directory 3025# whose full name contains unusual characters. 3026if test -f "${ac_aux_dir}config.guess"; then 3027 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3028fi 3029if test -f "${ac_aux_dir}config.sub"; then 3030 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3031fi 3032if test -f "$ac_aux_dir/configure"; then 3033 ac_configure="$SHELL ${ac_aux_dir}configure" 3034fi 3035 3036# Check that the precious variables saved in the cache have kept the same 3037# value. 3038ac_cache_corrupted=false 3039for ac_var in $ac_precious_vars; do 3040 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3041 eval ac_new_set=\$ac_env_${ac_var}_set 3042 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3043 eval ac_new_val=\$ac_env_${ac_var}_value 3044 case $ac_old_set,$ac_new_set in 3045 set,) 3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3047printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3048 ac_cache_corrupted=: ;; 3049 ,set) 3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3051printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3052 ac_cache_corrupted=: ;; 3053 ,);; 3054 *) 3055 if test "x$ac_old_val" != "x$ac_new_val"; then 3056 # differences in whitespace do not lead to failure. 3057 ac_old_val_w=`echo x $ac_old_val` 3058 ac_new_val_w=`echo x $ac_new_val` 3059 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3061printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3062 ac_cache_corrupted=: 3063 else 3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3065printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3066 eval $ac_var=\$ac_old_val 3067 fi 3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3069printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3071printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3072 fi;; 3073 esac 3074 # Pass precious variables to config.status. 3075 if test "$ac_new_set" = set; then 3076 case $ac_new_val in 3077 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3078 *) ac_arg=$ac_var=$ac_new_val ;; 3079 esac 3080 case " $ac_configure_args " in 3081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3082 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3083 esac 3084 fi 3085done 3086if $ac_cache_corrupted; then 3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3088printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3090printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3091 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3092 and start over" "$LINENO" 5 3093fi 3094## -------------------- ## 3095## Main body of script. ## 3096## -------------------- ## 3097 3098ac_ext=c 3099ac_cpp='$CPP $CPPFLAGS' 3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3102ac_compiler_gnu=$ac_cv_c_compiler_gnu 3103 3104 3105 3106 3107 3108 3109 3110am__api_version='1.16' 3111 3112 3113 3114 # Find a good install program. We prefer a C program (faster), 3115# so one script is as good as another. But avoid the broken or 3116# incompatible versions: 3117# SysV /etc/install, /usr/sbin/install 3118# SunOS /usr/etc/install 3119# IRIX /sbin/install 3120# AIX /bin/install 3121# AmigaOS /C/install, which installs bootblocks on floppy discs 3122# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3123# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3124# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3125# OS/2's system install, which has a completely different semantic 3126# ./install, which can be erroneously created by make from ./install.sh. 3127# Reject install programs that cannot install multiple files. 3128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3129printf %s "checking for a BSD-compatible install... " >&6; } 3130if test -z "$INSTALL"; then 3131if test ${ac_cv_path_install+y} 3132then : 3133 printf %s "(cached) " >&6 3134else $as_nop 3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136for as_dir in $PATH 3137do 3138 IFS=$as_save_IFS 3139 case $as_dir in #((( 3140 '') as_dir=./ ;; 3141 */) ;; 3142 *) as_dir=$as_dir/ ;; 3143 esac 3144 # Account for fact that we put trailing slashes in our PATH walk. 3145case $as_dir in #(( 3146 ./ | /[cC]/* | \ 3147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3149 /usr/ucb/* ) ;; 3150 *) 3151 # OSF1 and SCO ODT 3.0 have their own names for install. 3152 # Don't use installbsd from OSF since it installs stuff as root 3153 # by default. 3154 for ac_prog in ginstall scoinst install; do 3155 for ac_exec_ext in '' $ac_executable_extensions; do 3156 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3157 if test $ac_prog = install && 3158 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3159 # AIX install. It has an incompatible calling convention. 3160 : 3161 elif test $ac_prog = install && 3162 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3163 # program-specific install script used by HP pwplus--don't use. 3164 : 3165 else 3166 rm -rf conftest.one conftest.two conftest.dir 3167 echo one > conftest.one 3168 echo two > conftest.two 3169 mkdir conftest.dir 3170 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3171 test -s conftest.one && test -s conftest.two && 3172 test -s conftest.dir/conftest.one && 3173 test -s conftest.dir/conftest.two 3174 then 3175 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3176 break 3 3177 fi 3178 fi 3179 fi 3180 done 3181 done 3182 ;; 3183esac 3184 3185 done 3186IFS=$as_save_IFS 3187 3188rm -rf conftest.one conftest.two conftest.dir 3189 3190fi 3191 if test ${ac_cv_path_install+y}; then 3192 INSTALL=$ac_cv_path_install 3193 else 3194 # As a last resort, use the slow shell script. Don't cache a 3195 # value for INSTALL within a source directory, because that will 3196 # break other packages using the cache if that directory is 3197 # removed, or if the value is a relative name. 3198 INSTALL=$ac_install_sh 3199 fi 3200fi 3201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3202printf "%s\n" "$INSTALL" >&6; } 3203 3204# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3205# It thinks the first close brace ends the variable substitution. 3206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3207 3208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3209 3210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3211 3212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3213printf %s "checking whether build environment is sane... " >&6; } 3214# Reject unsafe characters in $srcdir or the absolute working directory 3215# name. Accept space and tab only in the latter. 3216am_lf=' 3217' 3218case `pwd` in 3219 *[\\\"\#\$\&\'\`$am_lf]*) 3220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3221esac 3222case $srcdir in 3223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3225esac 3226 3227# Do 'set' in a subshell so we don't clobber the current shell's 3228# arguments. Must try -L first in case configure is actually a 3229# symlink; some systems play weird games with the mod time of symlinks 3230# (eg FreeBSD returns the mod time of the symlink's containing 3231# directory). 3232if ( 3233 am_has_slept=no 3234 for am_try in 1 2; do 3235 echo "timestamp, slept: $am_has_slept" > conftest.file 3236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3237 if test "$*" = "X"; then 3238 # -L didn't work. 3239 set X `ls -t "$srcdir/configure" conftest.file` 3240 fi 3241 if test "$*" != "X $srcdir/configure conftest.file" \ 3242 && test "$*" != "X conftest.file $srcdir/configure"; then 3243 3244 # If neither matched, then we have a broken ls. This can happen 3245 # if, for instance, CONFIG_SHELL is bash and it inherits a 3246 # broken ls alias from the environment. This has actually 3247 # happened. Such a system could not be considered "sane". 3248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3249 alias in your environment" "$LINENO" 5 3250 fi 3251 if test "$2" = conftest.file || test $am_try -eq 2; then 3252 break 3253 fi 3254 # Just in case. 3255 sleep 1 3256 am_has_slept=yes 3257 done 3258 test "$2" = conftest.file 3259 ) 3260then 3261 # Ok. 3262 : 3263else 3264 as_fn_error $? "newly created file is older than distributed files! 3265Check your system clock" "$LINENO" 5 3266fi 3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3268printf "%s\n" "yes" >&6; } 3269# If we didn't sleep, we still need to ensure time stamps of config.status and 3270# generated files are strictly newer. 3271am_sleep_pid= 3272if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3273 ( sleep 1 ) & 3274 am_sleep_pid=$! 3275fi 3276 3277rm -f conftest.file 3278 3279test "$program_prefix" != NONE && 3280 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3281# Use a double $ so make ignores it. 3282test "$program_suffix" != NONE && 3283 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3284# Double any \ or $. 3285# By default was `s,x,x', remove it if useless. 3286ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3287program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3288 3289 3290# Expand $ac_aux_dir to an absolute path. 3291am_aux_dir=`cd "$ac_aux_dir" && pwd` 3292 3293 3294 if test x"${MISSING+set}" != xset; then 3295 MISSING="\${SHELL} '$am_aux_dir/missing'" 3296fi 3297# Use eval to expand $SHELL 3298if eval "$MISSING --is-lightweight"; then 3299 am_missing_run="$MISSING " 3300else 3301 am_missing_run= 3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3303printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3304fi 3305 3306if test x"${install_sh+set}" != xset; then 3307 case $am_aux_dir in 3308 *\ * | *\ *) 3309 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3310 *) 3311 install_sh="\${SHELL} $am_aux_dir/install-sh" 3312 esac 3313fi 3314 3315# Installed binaries are usually stripped using 'strip' when the user 3316# run "make install-strip". However 'strip' might not be the right 3317# tool to use in cross-compilation environments, therefore Automake 3318# will honor the 'STRIP' environment variable to overrule this program. 3319if test "$cross_compiling" != no; then 3320 if test -n "$ac_tool_prefix"; then 3321 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3322set dummy ${ac_tool_prefix}strip; ac_word=$2 3323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324printf %s "checking for $ac_word... " >&6; } 3325if test ${ac_cv_prog_STRIP+y} 3326then : 3327 printf %s "(cached) " >&6 3328else $as_nop 3329 if test -n "$STRIP"; then 3330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3331else 3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3333for as_dir in $PATH 3334do 3335 IFS=$as_save_IFS 3336 case $as_dir in #((( 3337 '') as_dir=./ ;; 3338 */) ;; 3339 *) as_dir=$as_dir/ ;; 3340 esac 3341 for ac_exec_ext in '' $ac_executable_extensions; do 3342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3343 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3345 break 2 3346 fi 3347done 3348 done 3349IFS=$as_save_IFS 3350 3351fi 3352fi 3353STRIP=$ac_cv_prog_STRIP 3354if test -n "$STRIP"; then 3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3356printf "%s\n" "$STRIP" >&6; } 3357else 3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3359printf "%s\n" "no" >&6; } 3360fi 3361 3362 3363fi 3364if test -z "$ac_cv_prog_STRIP"; then 3365 ac_ct_STRIP=$STRIP 3366 # Extract the first word of "strip", so it can be a program name with args. 3367set dummy strip; ac_word=$2 3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3369printf %s "checking for $ac_word... " >&6; } 3370if test ${ac_cv_prog_ac_ct_STRIP+y} 3371then : 3372 printf %s "(cached) " >&6 3373else $as_nop 3374 if test -n "$ac_ct_STRIP"; then 3375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3376else 3377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3378for as_dir in $PATH 3379do 3380 IFS=$as_save_IFS 3381 case $as_dir in #((( 3382 '') as_dir=./ ;; 3383 */) ;; 3384 *) as_dir=$as_dir/ ;; 3385 esac 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3388 ac_cv_prog_ac_ct_STRIP="strip" 3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392done 3393 done 3394IFS=$as_save_IFS 3395 3396fi 3397fi 3398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3399if test -n "$ac_ct_STRIP"; then 3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3401printf "%s\n" "$ac_ct_STRIP" >&6; } 3402else 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404printf "%s\n" "no" >&6; } 3405fi 3406 3407 if test "x$ac_ct_STRIP" = x; then 3408 STRIP=":" 3409 else 3410 case $cross_compiling:$ac_tool_warned in 3411yes:) 3412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3413printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3414ac_tool_warned=yes ;; 3415esac 3416 STRIP=$ac_ct_STRIP 3417 fi 3418else 3419 STRIP="$ac_cv_prog_STRIP" 3420fi 3421 3422fi 3423INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3424 3425 3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3427printf %s "checking for a race-free mkdir -p... " >&6; } 3428if test -z "$MKDIR_P"; then 3429 if test ${ac_cv_path_mkdir+y} 3430then : 3431 printf %s "(cached) " >&6 3432else $as_nop 3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3434for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3435do 3436 IFS=$as_save_IFS 3437 case $as_dir in #((( 3438 '') as_dir=./ ;; 3439 */) ;; 3440 *) as_dir=$as_dir/ ;; 3441 esac 3442 for ac_prog in mkdir gmkdir; do 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3445 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3446 'mkdir ('*'coreutils) '* | \ 3447 'BusyBox '* | \ 3448 'mkdir (fileutils) '4.1*) 3449 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3450 break 3;; 3451 esac 3452 done 3453 done 3454 done 3455IFS=$as_save_IFS 3456 3457fi 3458 3459 test -d ./--version && rmdir ./--version 3460 if test ${ac_cv_path_mkdir+y}; then 3461 MKDIR_P="$ac_cv_path_mkdir -p" 3462 else 3463 # As a last resort, use the slow shell script. Don't cache a 3464 # value for MKDIR_P within a source directory, because that will 3465 # break other packages using the cache if that directory is 3466 # removed, or if the value is a relative name. 3467 MKDIR_P="$ac_install_sh -d" 3468 fi 3469fi 3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3471printf "%s\n" "$MKDIR_P" >&6; } 3472 3473for ac_prog in gawk mawk nawk awk 3474do 3475 # Extract the first word of "$ac_prog", so it can be a program name with args. 3476set dummy $ac_prog; ac_word=$2 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478printf %s "checking for $ac_word... " >&6; } 3479if test ${ac_cv_prog_AWK+y} 3480then : 3481 printf %s "(cached) " >&6 3482else $as_nop 3483 if test -n "$AWK"; then 3484 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3485else 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 case $as_dir in #((( 3491 '') as_dir=./ ;; 3492 */) ;; 3493 *) as_dir=$as_dir/ ;; 3494 esac 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_AWK="$ac_prog" 3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505fi 3506fi 3507AWK=$ac_cv_prog_AWK 3508if test -n "$AWK"; then 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3510printf "%s\n" "$AWK" >&6; } 3511else 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513printf "%s\n" "no" >&6; } 3514fi 3515 3516 3517 test -n "$AWK" && break 3518done 3519 3520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3521printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3522set x ${MAKE-make} 3523ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3524if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3525then : 3526 printf %s "(cached) " >&6 3527else $as_nop 3528 cat >conftest.make <<\_ACEOF 3529SHELL = /bin/sh 3530all: 3531 @echo '@@@%%%=$(MAKE)=@@@%%%' 3532_ACEOF 3533# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3534case `${MAKE-make} -f conftest.make 2>/dev/null` in 3535 *@@@%%%=?*=@@@%%%*) 3536 eval ac_cv_prog_make_${ac_make}_set=yes;; 3537 *) 3538 eval ac_cv_prog_make_${ac_make}_set=no;; 3539esac 3540rm -f conftest.make 3541fi 3542if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3544printf "%s\n" "yes" >&6; } 3545 SET_MAKE= 3546else 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3548printf "%s\n" "no" >&6; } 3549 SET_MAKE="MAKE=${MAKE-make}" 3550fi 3551 3552rm -rf .tst 2>/dev/null 3553mkdir .tst 2>/dev/null 3554if test -d .tst; then 3555 am__leading_dot=. 3556else 3557 am__leading_dot=_ 3558fi 3559rmdir .tst 2>/dev/null 3560 3561# Check whether --enable-silent-rules was given. 3562if test ${enable_silent_rules+y} 3563then : 3564 enableval=$enable_silent_rules; 3565fi 3566 3567case $enable_silent_rules in # ((( 3568 yes) AM_DEFAULT_VERBOSITY=0;; 3569 no) AM_DEFAULT_VERBOSITY=1;; 3570 *) AM_DEFAULT_VERBOSITY=1;; 3571esac 3572am_make=${MAKE-make} 3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3574printf %s "checking whether $am_make supports nested variables... " >&6; } 3575if test ${am_cv_make_support_nested_variables+y} 3576then : 3577 printf %s "(cached) " >&6 3578else $as_nop 3579 if printf "%s\n" 'TRUE=$(BAR$(V)) 3580BAR0=false 3581BAR1=true 3582V=1 3583am__doit: 3584 @$(TRUE) 3585.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3586 am_cv_make_support_nested_variables=yes 3587else 3588 am_cv_make_support_nested_variables=no 3589fi 3590fi 3591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3592printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3593if test $am_cv_make_support_nested_variables = yes; then 3594 AM_V='$(V)' 3595 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3596else 3597 AM_V=$AM_DEFAULT_VERBOSITY 3598 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3599fi 3600AM_BACKSLASH='\' 3601 3602if test "`cd $srcdir && pwd`" != "`pwd`"; then 3603 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3604 # is not polluted with repeated "-I." 3605 am__isrc=' -I$(srcdir)' 3606 # test to see if srcdir already configured 3607 if test -f $srcdir/config.status; then 3608 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3609 fi 3610fi 3611 3612# test whether we have cygpath 3613if test -z "$CYGPATH_W"; then 3614 if (cygpath --version) >/dev/null 2>/dev/null; then 3615 CYGPATH_W='cygpath -w' 3616 else 3617 CYGPATH_W=echo 3618 fi 3619fi 3620 3621 3622# Define the identity of the package. 3623 PACKAGE='libevent' 3624 VERSION='2.1.12-stable' 3625 3626 3627printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3628 3629 3630printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3631 3632# Some tools Automake needs. 3633 3634ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3635 3636 3637AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3638 3639 3640AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3641 3642 3643AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3644 3645 3646MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3647 3648# For better backward compatibility. To be removed once Automake 1.9.x 3649# dies out for good. For more background, see: 3650# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3651# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3652mkdir_p='$(MKDIR_P)' 3653 3654# We need awk for the "check" target (and possibly the TAP driver). The 3655# system "awk" is bad on some platforms. 3656# Always define AMTAR for backward compatibility. Yes, it's still used 3657# in the wild :-( We should find a proper way to deprecate it ... 3658AMTAR='$${TAR-tar}' 3659 3660 3661# We'll loop over all known methods to create a tar archive until one works. 3662_am_tools='gnutar pax cpio none' 3663 3664am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3665 3666 3667 3668 3669 3670# Variables for tags utilities; see am/tags.am 3671if test -z "$CTAGS"; then 3672 CTAGS=ctags 3673fi 3674 3675if test -z "$ETAGS"; then 3676 ETAGS=etags 3677fi 3678 3679if test -z "$CSCOPE"; then 3680 CSCOPE=cscope 3681fi 3682 3683 3684 3685# POSIX will say in a future version that running "rm -f" with no argument 3686# is OK; and we want to be able to make that assumption in our Makefile 3687# recipes. So use an aggressive probe to check that the usage we want is 3688# actually supported "in the wild" to an acceptable degree. 3689# See automake bug#10828. 3690# To make any issue more visible, cause the running configure to be aborted 3691# by default if the 'rm' program in use doesn't match our expectations; the 3692# user can still override this though. 3693if rm -f && rm -fr && rm -rf; then : OK; else 3694 cat >&2 <<'END' 3695Oops! 3696 3697Your 'rm' program seems unable to run without file operands specified 3698on the command line, even when the '-f' option is present. This is contrary 3699to the behaviour of most rm programs out there, and not conforming with 3700the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3701 3702Please tell bug-automake@gnu.org about your system, including the value 3703of your $PATH and any error possibly output before this message. This 3704can help us improve future automake versions. 3705 3706END 3707 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3708 echo 'Configuration will proceed anyway, since you have set the' >&2 3709 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3710 echo >&2 3711 else 3712 cat >&2 <<'END' 3713Aborting the configuration process, to ensure you take notice of the issue. 3714 3715You can download and install GNU coreutils to get an 'rm' implementation 3716that behaves properly: <https://www.gnu.org/software/coreutils/>. 3717 3718If you want to complete the configuration process using your problematic 3719'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3720to "yes", and re-run configure. 3721 3722END 3723 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3724 fi 3725fi 3726 3727# Check whether --enable-silent-rules was given. 3728if test ${enable_silent_rules+y} 3729then : 3730 enableval=$enable_silent_rules; 3731fi 3732 3733case $enable_silent_rules in # ((( 3734 yes) AM_DEFAULT_VERBOSITY=0;; 3735 no) AM_DEFAULT_VERBOSITY=1;; 3736 *) AM_DEFAULT_VERBOSITY=0;; 3737esac 3738am_make=${MAKE-make} 3739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3740printf %s "checking whether $am_make supports nested variables... " >&6; } 3741if test ${am_cv_make_support_nested_variables+y} 3742then : 3743 printf %s "(cached) " >&6 3744else $as_nop 3745 if printf "%s\n" 'TRUE=$(BAR$(V)) 3746BAR0=false 3747BAR1=true 3748V=1 3749am__doit: 3750 @$(TRUE) 3751.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3752 am_cv_make_support_nested_variables=yes 3753else 3754 am_cv_make_support_nested_variables=no 3755fi 3756fi 3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3758printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3759if test $am_cv_make_support_nested_variables = yes; then 3760 AM_V='$(V)' 3761 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3762else 3763 AM_V=$AM_DEFAULT_VERBOSITY 3764 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3765fi 3766AM_BACKSLASH='\' 3767 3768ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in" 3769 3770 3771printf "%s\n" "#define NUMERIC_VERSION 0x02010c00" >>confdefs.h 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785DEPDIR="${am__leading_dot}deps" 3786 3787ac_config_commands="$ac_config_commands depfiles" 3788 3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3790printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3791cat > confinc.mk << 'END' 3792am__doit: 3793 @echo this is the am__doit target >confinc.out 3794.PHONY: am__doit 3795END 3796am__include="#" 3797am__quote= 3798# BSD make does it like this. 3799echo '.include "confinc.mk" # ignored' > confmf.BSD 3800# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3801echo 'include confinc.mk # ignored' > confmf.GNU 3802_am_result=no 3803for s in GNU BSD; do 3804 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3805 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3806 ac_status=$? 3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3808 (exit $ac_status); } 3809 case $?:`cat confinc.out 2>/dev/null` in #( 3810 '0:this is the am__doit target') : 3811 case $s in #( 3812 BSD) : 3813 am__include='.include' am__quote='"' ;; #( 3814 *) : 3815 am__include='include' am__quote='' ;; 3816esac ;; #( 3817 *) : 3818 ;; 3819esac 3820 if test "$am__include" != "#"; then 3821 _am_result="yes ($s style)" 3822 break 3823 fi 3824done 3825rm -f confinc.* confmf.* 3826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3827printf "%s\n" "${_am_result}" >&6; } 3828 3829# Check whether --enable-dependency-tracking was given. 3830if test ${enable_dependency_tracking+y} 3831then : 3832 enableval=$enable_dependency_tracking; 3833fi 3834 3835if test "x$enable_dependency_tracking" != xno; then 3836 am_depcomp="$ac_aux_dir/depcomp" 3837 AMDEPBACKSLASH='\' 3838 am__nodep='_no' 3839fi 3840 if test "x$enable_dependency_tracking" != xno; then 3841 AMDEP_TRUE= 3842 AMDEP_FALSE='#' 3843else 3844 AMDEP_TRUE='#' 3845 AMDEP_FALSE= 3846fi 3847 3848 3849ac_ext=c 3850ac_cpp='$CPP $CPPFLAGS' 3851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3853ac_compiler_gnu=$ac_cv_c_compiler_gnu 3854if test -n "$ac_tool_prefix"; then 3855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3856set dummy ${ac_tool_prefix}gcc; ac_word=$2 3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3858printf %s "checking for $ac_word... " >&6; } 3859if test ${ac_cv_prog_CC+y} 3860then : 3861 printf %s "(cached) " >&6 3862else $as_nop 3863 if test -n "$CC"; then 3864 ac_cv_prog_CC="$CC" # Let the user override the test. 3865else 3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3867for as_dir in $PATH 3868do 3869 IFS=$as_save_IFS 3870 case $as_dir in #((( 3871 '') as_dir=./ ;; 3872 */) ;; 3873 *) as_dir=$as_dir/ ;; 3874 esac 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3877 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3879 break 2 3880 fi 3881done 3882 done 3883IFS=$as_save_IFS 3884 3885fi 3886fi 3887CC=$ac_cv_prog_CC 3888if test -n "$CC"; then 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3890printf "%s\n" "$CC" >&6; } 3891else 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3893printf "%s\n" "no" >&6; } 3894fi 3895 3896 3897fi 3898if test -z "$ac_cv_prog_CC"; then 3899 ac_ct_CC=$CC 3900 # Extract the first word of "gcc", so it can be a program name with args. 3901set dummy gcc; ac_word=$2 3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3903printf %s "checking for $ac_word... " >&6; } 3904if test ${ac_cv_prog_ac_ct_CC+y} 3905then : 3906 printf %s "(cached) " >&6 3907else $as_nop 3908 if test -n "$ac_ct_CC"; then 3909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3910else 3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3912for as_dir in $PATH 3913do 3914 IFS=$as_save_IFS 3915 case $as_dir in #((( 3916 '') as_dir=./ ;; 3917 */) ;; 3918 *) as_dir=$as_dir/ ;; 3919 esac 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3922 ac_cv_prog_ac_ct_CC="gcc" 3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3924 break 2 3925 fi 3926done 3927 done 3928IFS=$as_save_IFS 3929 3930fi 3931fi 3932ac_ct_CC=$ac_cv_prog_ac_ct_CC 3933if test -n "$ac_ct_CC"; then 3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3935printf "%s\n" "$ac_ct_CC" >&6; } 3936else 3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3938printf "%s\n" "no" >&6; } 3939fi 3940 3941 if test "x$ac_ct_CC" = x; then 3942 CC="" 3943 else 3944 case $cross_compiling:$ac_tool_warned in 3945yes:) 3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3947printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3948ac_tool_warned=yes ;; 3949esac 3950 CC=$ac_ct_CC 3951 fi 3952else 3953 CC="$ac_cv_prog_CC" 3954fi 3955 3956if test -z "$CC"; then 3957 if test -n "$ac_tool_prefix"; then 3958 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3959set dummy ${ac_tool_prefix}cc; ac_word=$2 3960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3961printf %s "checking for $ac_word... " >&6; } 3962if test ${ac_cv_prog_CC+y} 3963then : 3964 printf %s "(cached) " >&6 3965else $as_nop 3966 if test -n "$CC"; then 3967 ac_cv_prog_CC="$CC" # Let the user override the test. 3968else 3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH 3971do 3972 IFS=$as_save_IFS 3973 case $as_dir in #((( 3974 '') as_dir=./ ;; 3975 */) ;; 3976 *) as_dir=$as_dir/ ;; 3977 esac 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3980 ac_cv_prog_CC="${ac_tool_prefix}cc" 3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3982 break 2 3983 fi 3984done 3985 done 3986IFS=$as_save_IFS 3987 3988fi 3989fi 3990CC=$ac_cv_prog_CC 3991if test -n "$CC"; then 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3993printf "%s\n" "$CC" >&6; } 3994else 3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3996printf "%s\n" "no" >&6; } 3997fi 3998 3999 4000 fi 4001fi 4002if test -z "$CC"; then 4003 # Extract the first word of "cc", so it can be a program name with args. 4004set dummy cc; ac_word=$2 4005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4006printf %s "checking for $ac_word... " >&6; } 4007if test ${ac_cv_prog_CC+y} 4008then : 4009 printf %s "(cached) " >&6 4010else $as_nop 4011 if test -n "$CC"; then 4012 ac_cv_prog_CC="$CC" # Let the user override the test. 4013else 4014 ac_prog_rejected=no 4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH 4017do 4018 IFS=$as_save_IFS 4019 case $as_dir in #((( 4020 '') as_dir=./ ;; 4021 */) ;; 4022 *) as_dir=$as_dir/ ;; 4023 esac 4024 for ac_exec_ext in '' $ac_executable_extensions; do 4025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4026 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4027 ac_prog_rejected=yes 4028 continue 4029 fi 4030 ac_cv_prog_CC="cc" 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4032 break 2 4033 fi 4034done 4035 done 4036IFS=$as_save_IFS 4037 4038if test $ac_prog_rejected = yes; then 4039 # We found a bogon in the path, so make sure we never use it. 4040 set dummy $ac_cv_prog_CC 4041 shift 4042 if test $# != 0; then 4043 # We chose a different compiler from the bogus one. 4044 # However, it has the same basename, so the bogon will be chosen 4045 # first if we set CC to just the basename; use the full file name. 4046 shift 4047 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4048 fi 4049fi 4050fi 4051fi 4052CC=$ac_cv_prog_CC 4053if test -n "$CC"; then 4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4055printf "%s\n" "$CC" >&6; } 4056else 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4058printf "%s\n" "no" >&6; } 4059fi 4060 4061 4062fi 4063if test -z "$CC"; then 4064 if test -n "$ac_tool_prefix"; then 4065 for ac_prog in cl.exe 4066 do 4067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4068set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4070printf %s "checking for $ac_word... " >&6; } 4071if test ${ac_cv_prog_CC+y} 4072then : 4073 printf %s "(cached) " >&6 4074else $as_nop 4075 if test -n "$CC"; then 4076 ac_cv_prog_CC="$CC" # Let the user override the test. 4077else 4078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4079for as_dir in $PATH 4080do 4081 IFS=$as_save_IFS 4082 case $as_dir in #((( 4083 '') as_dir=./ ;; 4084 */) ;; 4085 *) as_dir=$as_dir/ ;; 4086 esac 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4091 break 2 4092 fi 4093done 4094 done 4095IFS=$as_save_IFS 4096 4097fi 4098fi 4099CC=$ac_cv_prog_CC 4100if test -n "$CC"; then 4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4102printf "%s\n" "$CC" >&6; } 4103else 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4105printf "%s\n" "no" >&6; } 4106fi 4107 4108 4109 test -n "$CC" && break 4110 done 4111fi 4112if test -z "$CC"; then 4113 ac_ct_CC=$CC 4114 for ac_prog in cl.exe 4115do 4116 # Extract the first word of "$ac_prog", so it can be a program name with args. 4117set dummy $ac_prog; ac_word=$2 4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4119printf %s "checking for $ac_word... " >&6; } 4120if test ${ac_cv_prog_ac_ct_CC+y} 4121then : 4122 printf %s "(cached) " >&6 4123else $as_nop 4124 if test -n "$ac_ct_CC"; then 4125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4126else 4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4128for as_dir in $PATH 4129do 4130 IFS=$as_save_IFS 4131 case $as_dir in #((( 4132 '') as_dir=./ ;; 4133 */) ;; 4134 *) as_dir=$as_dir/ ;; 4135 esac 4136 for ac_exec_ext in '' $ac_executable_extensions; do 4137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4138 ac_cv_prog_ac_ct_CC="$ac_prog" 4139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4140 break 2 4141 fi 4142done 4143 done 4144IFS=$as_save_IFS 4145 4146fi 4147fi 4148ac_ct_CC=$ac_cv_prog_ac_ct_CC 4149if test -n "$ac_ct_CC"; then 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4151printf "%s\n" "$ac_ct_CC" >&6; } 4152else 4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4154printf "%s\n" "no" >&6; } 4155fi 4156 4157 4158 test -n "$ac_ct_CC" && break 4159done 4160 4161 if test "x$ac_ct_CC" = x; then 4162 CC="" 4163 else 4164 case $cross_compiling:$ac_tool_warned in 4165yes:) 4166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4167printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4168ac_tool_warned=yes ;; 4169esac 4170 CC=$ac_ct_CC 4171 fi 4172fi 4173 4174fi 4175if test -z "$CC"; then 4176 if test -n "$ac_tool_prefix"; then 4177 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4178set dummy ${ac_tool_prefix}clang; ac_word=$2 4179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4180printf %s "checking for $ac_word... " >&6; } 4181if test ${ac_cv_prog_CC+y} 4182then : 4183 printf %s "(cached) " >&6 4184else $as_nop 4185 if test -n "$CC"; then 4186 ac_cv_prog_CC="$CC" # Let the user override the test. 4187else 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 case $as_dir in #((( 4193 '') as_dir=./ ;; 4194 */) ;; 4195 *) as_dir=$as_dir/ ;; 4196 esac 4197 for ac_exec_ext in '' $ac_executable_extensions; do 4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4199 ac_cv_prog_CC="${ac_tool_prefix}clang" 4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4201 break 2 4202 fi 4203done 4204 done 4205IFS=$as_save_IFS 4206 4207fi 4208fi 4209CC=$ac_cv_prog_CC 4210if test -n "$CC"; then 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4212printf "%s\n" "$CC" >&6; } 4213else 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4215printf "%s\n" "no" >&6; } 4216fi 4217 4218 4219fi 4220if test -z "$ac_cv_prog_CC"; then 4221 ac_ct_CC=$CC 4222 # Extract the first word of "clang", so it can be a program name with args. 4223set dummy clang; ac_word=$2 4224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4225printf %s "checking for $ac_word... " >&6; } 4226if test ${ac_cv_prog_ac_ct_CC+y} 4227then : 4228 printf %s "(cached) " >&6 4229else $as_nop 4230 if test -n "$ac_ct_CC"; then 4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4232else 4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4234for as_dir in $PATH 4235do 4236 IFS=$as_save_IFS 4237 case $as_dir in #((( 4238 '') as_dir=./ ;; 4239 */) ;; 4240 *) as_dir=$as_dir/ ;; 4241 esac 4242 for ac_exec_ext in '' $ac_executable_extensions; do 4243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4244 ac_cv_prog_ac_ct_CC="clang" 4245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4246 break 2 4247 fi 4248done 4249 done 4250IFS=$as_save_IFS 4251 4252fi 4253fi 4254ac_ct_CC=$ac_cv_prog_ac_ct_CC 4255if test -n "$ac_ct_CC"; then 4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4257printf "%s\n" "$ac_ct_CC" >&6; } 4258else 4259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4260printf "%s\n" "no" >&6; } 4261fi 4262 4263 if test "x$ac_ct_CC" = x; then 4264 CC="" 4265 else 4266 case $cross_compiling:$ac_tool_warned in 4267yes:) 4268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4269printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4270ac_tool_warned=yes ;; 4271esac 4272 CC=$ac_ct_CC 4273 fi 4274else 4275 CC="$ac_cv_prog_CC" 4276fi 4277 4278fi 4279 4280 4281test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4282printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4283as_fn_error $? "no acceptable C compiler found in \$PATH 4284See \`config.log' for more details" "$LINENO" 5; } 4285 4286# Provide some information about the compiler. 4287printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4288set X $ac_compile 4289ac_compiler=$2 4290for ac_option in --version -v -V -qversion -version; do 4291 { { ac_try="$ac_compiler $ac_option >&5" 4292case "(($ac_try" in 4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4294 *) ac_try_echo=$ac_try;; 4295esac 4296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4297printf "%s\n" "$ac_try_echo"; } >&5 4298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4299 ac_status=$? 4300 if test -s conftest.err; then 4301 sed '10a\ 4302... rest of stderr output deleted ... 4303 10q' conftest.err >conftest.er1 4304 cat conftest.er1 >&5 4305 fi 4306 rm -f conftest.er1 conftest.err 4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4308 test $ac_status = 0; } 4309done 4310 4311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313 4314int 4315main (void) 4316{ 4317 4318 ; 4319 return 0; 4320} 4321_ACEOF 4322ac_clean_files_save=$ac_clean_files 4323ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4324# Try to create an executable without -o first, disregard a.out. 4325# It will help us diagnose broken compilers, and finding out an intuition 4326# of exeext. 4327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4328printf %s "checking whether the C compiler works... " >&6; } 4329ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4330 4331# The possible output files: 4332ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4333 4334ac_rmfiles= 4335for ac_file in $ac_files 4336do 4337 case $ac_file in 4338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4339 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4340 esac 4341done 4342rm -f $ac_rmfiles 4343 4344if { { ac_try="$ac_link_default" 4345case "(($ac_try" in 4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4347 *) ac_try_echo=$ac_try;; 4348esac 4349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4350printf "%s\n" "$ac_try_echo"; } >&5 4351 (eval "$ac_link_default") 2>&5 4352 ac_status=$? 4353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4354 test $ac_status = 0; } 4355then : 4356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4357# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4358# in a Makefile. We should not override ac_cv_exeext if it was cached, 4359# so that the user can short-circuit this test for compilers unknown to 4360# Autoconf. 4361for ac_file in $ac_files '' 4362do 4363 test -f "$ac_file" || continue 4364 case $ac_file in 4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4366 ;; 4367 [ab].out ) 4368 # We found the default executable, but exeext='' is most 4369 # certainly right. 4370 break;; 4371 *.* ) 4372 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4373 then :; else 4374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4375 fi 4376 # We set ac_cv_exeext here because the later test for it is not 4377 # safe: cross compilers may not add the suffix if given an `-o' 4378 # argument, so we may need to know it at that point already. 4379 # Even if this section looks crufty: it has the advantage of 4380 # actually working. 4381 break;; 4382 * ) 4383 break;; 4384 esac 4385done 4386test "$ac_cv_exeext" = no && ac_cv_exeext= 4387 4388else $as_nop 4389 ac_file='' 4390fi 4391if test -z "$ac_file" 4392then : 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4394printf "%s\n" "no" >&6; } 4395printf "%s\n" "$as_me: failed program was:" >&5 4396sed 's/^/| /' conftest.$ac_ext >&5 4397 4398{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4399printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4400as_fn_error 77 "C compiler cannot create executables 4401See \`config.log' for more details" "$LINENO" 5; } 4402else $as_nop 4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4404printf "%s\n" "yes" >&6; } 4405fi 4406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4407printf %s "checking for C compiler default output file name... " >&6; } 4408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4409printf "%s\n" "$ac_file" >&6; } 4410ac_exeext=$ac_cv_exeext 4411 4412rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4413ac_clean_files=$ac_clean_files_save 4414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4415printf %s "checking for suffix of executables... " >&6; } 4416if { { ac_try="$ac_link" 4417case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420esac 4421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4422printf "%s\n" "$ac_try_echo"; } >&5 4423 (eval "$ac_link") 2>&5 4424 ac_status=$? 4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4426 test $ac_status = 0; } 4427then : 4428 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4429# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4430# work properly (i.e., refer to `conftest.exe'), while it won't with 4431# `rm'. 4432for ac_file in conftest.exe conftest conftest.*; do 4433 test -f "$ac_file" || continue 4434 case $ac_file in 4435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4436 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4437 break;; 4438 * ) break;; 4439 esac 4440done 4441else $as_nop 4442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4443printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4444as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4445See \`config.log' for more details" "$LINENO" 5; } 4446fi 4447rm -f conftest conftest$ac_cv_exeext 4448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4449printf "%s\n" "$ac_cv_exeext" >&6; } 4450 4451rm -f conftest.$ac_ext 4452EXEEXT=$ac_cv_exeext 4453ac_exeext=$EXEEXT 4454cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456#include <stdio.h> 4457int 4458main (void) 4459{ 4460FILE *f = fopen ("conftest.out", "w"); 4461 return ferror (f) || fclose (f) != 0; 4462 4463 ; 4464 return 0; 4465} 4466_ACEOF 4467ac_clean_files="$ac_clean_files conftest.out" 4468# Check that the compiler produces executables we can run. If not, either 4469# the compiler is broken, or we cross compile. 4470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4471printf %s "checking whether we are cross compiling... " >&6; } 4472if test "$cross_compiling" != yes; then 4473 { { ac_try="$ac_link" 4474case "(($ac_try" in 4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4476 *) ac_try_echo=$ac_try;; 4477esac 4478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4479printf "%s\n" "$ac_try_echo"; } >&5 4480 (eval "$ac_link") 2>&5 4481 ac_status=$? 4482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4483 test $ac_status = 0; } 4484 if { ac_try='./conftest$ac_cv_exeext' 4485 { { case "(($ac_try" in 4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4487 *) ac_try_echo=$ac_try;; 4488esac 4489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4490printf "%s\n" "$ac_try_echo"; } >&5 4491 (eval "$ac_try") 2>&5 4492 ac_status=$? 4493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4494 test $ac_status = 0; }; }; then 4495 cross_compiling=no 4496 else 4497 if test "$cross_compiling" = maybe; then 4498 cross_compiling=yes 4499 else 4500 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4501printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4502as_fn_error 77 "cannot run C compiled programs. 4503If you meant to cross compile, use \`--host'. 4504See \`config.log' for more details" "$LINENO" 5; } 4505 fi 4506 fi 4507fi 4508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4509printf "%s\n" "$cross_compiling" >&6; } 4510 4511rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4512ac_clean_files=$ac_clean_files_save 4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4514printf %s "checking for suffix of object files... " >&6; } 4515if test ${ac_cv_objext+y} 4516then : 4517 printf %s "(cached) " >&6 4518else $as_nop 4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4520/* end confdefs.h. */ 4521 4522int 4523main (void) 4524{ 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530rm -f conftest.o conftest.obj 4531if { { ac_try="$ac_compile" 4532case "(($ac_try" in 4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4534 *) ac_try_echo=$ac_try;; 4535esac 4536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4537printf "%s\n" "$ac_try_echo"; } >&5 4538 (eval "$ac_compile") 2>&5 4539 ac_status=$? 4540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4541 test $ac_status = 0; } 4542then : 4543 for ac_file in conftest.o conftest.obj conftest.*; do 4544 test -f "$ac_file" || continue; 4545 case $ac_file in 4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4547 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4548 break;; 4549 esac 4550done 4551else $as_nop 4552 printf "%s\n" "$as_me: failed program was:" >&5 4553sed 's/^/| /' conftest.$ac_ext >&5 4554 4555{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4556printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4557as_fn_error $? "cannot compute suffix of object files: cannot compile 4558See \`config.log' for more details" "$LINENO" 5; } 4559fi 4560rm -f conftest.$ac_cv_objext conftest.$ac_ext 4561fi 4562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4563printf "%s\n" "$ac_cv_objext" >&6; } 4564OBJEXT=$ac_cv_objext 4565ac_objext=$OBJEXT 4566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4567printf %s "checking whether the compiler supports GNU C... " >&6; } 4568if test ${ac_cv_c_compiler_gnu+y} 4569then : 4570 printf %s "(cached) " >&6 4571else $as_nop 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574 4575int 4576main (void) 4577{ 4578#ifndef __GNUC__ 4579 choke me 4580#endif 4581 4582 ; 4583 return 0; 4584} 4585_ACEOF 4586if ac_fn_c_try_compile "$LINENO" 4587then : 4588 ac_compiler_gnu=yes 4589else $as_nop 4590 ac_compiler_gnu=no 4591fi 4592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4593ac_cv_c_compiler_gnu=$ac_compiler_gnu 4594 4595fi 4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4597printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4598ac_compiler_gnu=$ac_cv_c_compiler_gnu 4599 4600if test $ac_compiler_gnu = yes; then 4601 GCC=yes 4602else 4603 GCC= 4604fi 4605ac_test_CFLAGS=${CFLAGS+y} 4606ac_save_CFLAGS=$CFLAGS 4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4608printf %s "checking whether $CC accepts -g... " >&6; } 4609if test ${ac_cv_prog_cc_g+y} 4610then : 4611 printf %s "(cached) " >&6 4612else $as_nop 4613 ac_save_c_werror_flag=$ac_c_werror_flag 4614 ac_c_werror_flag=yes 4615 ac_cv_prog_cc_g=no 4616 CFLAGS="-g" 4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4618/* end confdefs.h. */ 4619 4620int 4621main (void) 4622{ 4623 4624 ; 4625 return 0; 4626} 4627_ACEOF 4628if ac_fn_c_try_compile "$LINENO" 4629then : 4630 ac_cv_prog_cc_g=yes 4631else $as_nop 4632 CFLAGS="" 4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4634/* end confdefs.h. */ 4635 4636int 4637main (void) 4638{ 4639 4640 ; 4641 return 0; 4642} 4643_ACEOF 4644if ac_fn_c_try_compile "$LINENO" 4645then : 4646 4647else $as_nop 4648 ac_c_werror_flag=$ac_save_c_werror_flag 4649 CFLAGS="-g" 4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4651/* end confdefs.h. */ 4652 4653int 4654main (void) 4655{ 4656 4657 ; 4658 return 0; 4659} 4660_ACEOF 4661if ac_fn_c_try_compile "$LINENO" 4662then : 4663 ac_cv_prog_cc_g=yes 4664fi 4665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4666fi 4667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4668fi 4669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4670 ac_c_werror_flag=$ac_save_c_werror_flag 4671fi 4672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4673printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4674if test $ac_test_CFLAGS; then 4675 CFLAGS=$ac_save_CFLAGS 4676elif test $ac_cv_prog_cc_g = yes; then 4677 if test "$GCC" = yes; then 4678 CFLAGS="-g -O2" 4679 else 4680 CFLAGS="-g" 4681 fi 4682else 4683 if test "$GCC" = yes; then 4684 CFLAGS="-O2" 4685 else 4686 CFLAGS= 4687 fi 4688fi 4689ac_prog_cc_stdc=no 4690if test x$ac_prog_cc_stdc = xno 4691then : 4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4693printf %s "checking for $CC option to enable C11 features... " >&6; } 4694if test ${ac_cv_prog_cc_c11+y} 4695then : 4696 printf %s "(cached) " >&6 4697else $as_nop 4698 ac_cv_prog_cc_c11=no 4699ac_save_CC=$CC 4700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702$ac_c_conftest_c11_program 4703_ACEOF 4704for ac_arg in '' -std=gnu11 4705do 4706 CC="$ac_save_CC $ac_arg" 4707 if ac_fn_c_try_compile "$LINENO" 4708then : 4709 ac_cv_prog_cc_c11=$ac_arg 4710fi 4711rm -f core conftest.err conftest.$ac_objext conftest.beam 4712 test "x$ac_cv_prog_cc_c11" != "xno" && break 4713done 4714rm -f conftest.$ac_ext 4715CC=$ac_save_CC 4716fi 4717 4718if test "x$ac_cv_prog_cc_c11" = xno 4719then : 4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4721printf "%s\n" "unsupported" >&6; } 4722else $as_nop 4723 if test "x$ac_cv_prog_cc_c11" = x 4724then : 4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4726printf "%s\n" "none needed" >&6; } 4727else $as_nop 4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4729printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4730 CC="$CC $ac_cv_prog_cc_c11" 4731fi 4732 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4733 ac_prog_cc_stdc=c11 4734fi 4735fi 4736if test x$ac_prog_cc_stdc = xno 4737then : 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4739printf %s "checking for $CC option to enable C99 features... " >&6; } 4740if test ${ac_cv_prog_cc_c99+y} 4741then : 4742 printf %s "(cached) " >&6 4743else $as_nop 4744 ac_cv_prog_cc_c99=no 4745ac_save_CC=$CC 4746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748$ac_c_conftest_c99_program 4749_ACEOF 4750for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4751do 4752 CC="$ac_save_CC $ac_arg" 4753 if ac_fn_c_try_compile "$LINENO" 4754then : 4755 ac_cv_prog_cc_c99=$ac_arg 4756fi 4757rm -f core conftest.err conftest.$ac_objext conftest.beam 4758 test "x$ac_cv_prog_cc_c99" != "xno" && break 4759done 4760rm -f conftest.$ac_ext 4761CC=$ac_save_CC 4762fi 4763 4764if test "x$ac_cv_prog_cc_c99" = xno 4765then : 4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4767printf "%s\n" "unsupported" >&6; } 4768else $as_nop 4769 if test "x$ac_cv_prog_cc_c99" = x 4770then : 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4772printf "%s\n" "none needed" >&6; } 4773else $as_nop 4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4775printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4776 CC="$CC $ac_cv_prog_cc_c99" 4777fi 4778 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4779 ac_prog_cc_stdc=c99 4780fi 4781fi 4782if test x$ac_prog_cc_stdc = xno 4783then : 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4785printf %s "checking for $CC option to enable C89 features... " >&6; } 4786if test ${ac_cv_prog_cc_c89+y} 4787then : 4788 printf %s "(cached) " >&6 4789else $as_nop 4790 ac_cv_prog_cc_c89=no 4791ac_save_CC=$CC 4792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793/* end confdefs.h. */ 4794$ac_c_conftest_c89_program 4795_ACEOF 4796for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4797do 4798 CC="$ac_save_CC $ac_arg" 4799 if ac_fn_c_try_compile "$LINENO" 4800then : 4801 ac_cv_prog_cc_c89=$ac_arg 4802fi 4803rm -f core conftest.err conftest.$ac_objext conftest.beam 4804 test "x$ac_cv_prog_cc_c89" != "xno" && break 4805done 4806rm -f conftest.$ac_ext 4807CC=$ac_save_CC 4808fi 4809 4810if test "x$ac_cv_prog_cc_c89" = xno 4811then : 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4813printf "%s\n" "unsupported" >&6; } 4814else $as_nop 4815 if test "x$ac_cv_prog_cc_c89" = x 4816then : 4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4818printf "%s\n" "none needed" >&6; } 4819else $as_nop 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4821printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4822 CC="$CC $ac_cv_prog_cc_c89" 4823fi 4824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4825 ac_prog_cc_stdc=c89 4826fi 4827fi 4828 4829ac_ext=c 4830ac_cpp='$CPP $CPPFLAGS' 4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4833ac_compiler_gnu=$ac_cv_c_compiler_gnu 4834 4835 4836 ac_ext=c 4837ac_cpp='$CPP $CPPFLAGS' 4838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4840ac_compiler_gnu=$ac_cv_c_compiler_gnu 4841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4842printf %s "checking whether $CC understands -c and -o together... " >&6; } 4843if test ${am_cv_prog_cc_c_o+y} 4844then : 4845 printf %s "(cached) " >&6 4846else $as_nop 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849 4850int 4851main (void) 4852{ 4853 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858 # Make sure it works both with $CC and with simple cc. 4859 # Following AC_PROG_CC_C_O, we do the test twice because some 4860 # compilers refuse to overwrite an existing .o file with -o, 4861 # though they will create one. 4862 am_cv_prog_cc_c_o=yes 4863 for am_i in 1 2; do 4864 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4865 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4866 ac_status=$? 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); } \ 4869 && test -f conftest2.$ac_objext; then 4870 : OK 4871 else 4872 am_cv_prog_cc_c_o=no 4873 break 4874 fi 4875 done 4876 rm -f core conftest* 4877 unset am_i 4878fi 4879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4880printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4881if test "$am_cv_prog_cc_c_o" != yes; then 4882 # Losing compiler, so override with the script. 4883 # FIXME: It is wrong to rewrite CC. 4884 # But if we don't then we get into trouble of one sort or another. 4885 # A longer-term fix would be to have automake use am__CC in this case, 4886 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4887 CC="$am_aux_dir/compile $CC" 4888fi 4889ac_ext=c 4890ac_cpp='$CPP $CPPFLAGS' 4891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4893ac_compiler_gnu=$ac_cv_c_compiler_gnu 4894 4895 4896depcc="$CC" am_compiler_list= 4897 4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4899printf %s "checking dependency style of $depcc... " >&6; } 4900if test ${am_cv_CC_dependencies_compiler_type+y} 4901then : 4902 printf %s "(cached) " >&6 4903else $as_nop 4904 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4905 # We make a subdir and do the tests there. Otherwise we can end up 4906 # making bogus files that we don't know about and never remove. For 4907 # instance it was reported that on HP-UX the gcc test will end up 4908 # making a dummy file named 'D' -- because '-MD' means "put the output 4909 # in D". 4910 rm -rf conftest.dir 4911 mkdir conftest.dir 4912 # Copy depcomp to subdir because otherwise we won't find it if we're 4913 # using a relative directory. 4914 cp "$am_depcomp" conftest.dir 4915 cd conftest.dir 4916 # We will build objects and dependencies in a subdirectory because 4917 # it helps to detect inapplicable dependency modes. For instance 4918 # both Tru64's cc and ICC support -MD to output dependencies as a 4919 # side effect of compilation, but ICC will put the dependencies in 4920 # the current directory while Tru64 will put them in the object 4921 # directory. 4922 mkdir sub 4923 4924 am_cv_CC_dependencies_compiler_type=none 4925 if test "$am_compiler_list" = ""; then 4926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4927 fi 4928 am__universal=false 4929 case " $depcc " in #( 4930 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4931 esac 4932 4933 for depmode in $am_compiler_list; do 4934 # Setup a source with many dependencies, because some compilers 4935 # like to wrap large dependency lists on column 80 (with \), and 4936 # we should not choose a depcomp mode which is confused by this. 4937 # 4938 # We need to recreate these files for each test, as the compiler may 4939 # overwrite some of them when testing with obscure command lines. 4940 # This happens at least with the AIX C compiler. 4941 : > sub/conftest.c 4942 for i in 1 2 3 4 5 6; do 4943 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4944 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4945 # Solaris 10 /bin/sh. 4946 echo '/* dummy */' > sub/conftst$i.h 4947 done 4948 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4949 4950 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4951 # mode. It turns out that the SunPro C++ compiler does not properly 4952 # handle '-M -o', and we need to detect this. Also, some Intel 4953 # versions had trouble with output in subdirs. 4954 am__obj=sub/conftest.${OBJEXT-o} 4955 am__minus_obj="-o $am__obj" 4956 case $depmode in 4957 gcc) 4958 # This depmode causes a compiler race in universal mode. 4959 test "$am__universal" = false || continue 4960 ;; 4961 nosideeffect) 4962 # After this tag, mechanisms are not by side-effect, so they'll 4963 # only be used when explicitly requested. 4964 if test "x$enable_dependency_tracking" = xyes; then 4965 continue 4966 else 4967 break 4968 fi 4969 ;; 4970 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4971 # This compiler won't grok '-c -o', but also, the minuso test has 4972 # not run yet. These depmodes are late enough in the game, and 4973 # so weak that their functioning should not be impacted. 4974 am__obj=conftest.${OBJEXT-o} 4975 am__minus_obj= 4976 ;; 4977 none) break ;; 4978 esac 4979 if depmode=$depmode \ 4980 source=sub/conftest.c object=$am__obj \ 4981 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4982 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4983 >/dev/null 2>conftest.err && 4984 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4985 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4986 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4987 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4988 # icc doesn't choke on unknown options, it will just issue warnings 4989 # or remarks (even with -Werror). So we grep stderr for any message 4990 # that says an option was ignored or not supported. 4991 # When given -MP, icc 7.0 and 7.1 complain thusly: 4992 # icc: Command line warning: ignoring option '-M'; no argument required 4993 # The diagnosis changed in icc 8.0: 4994 # icc: Command line remark: option '-MP' not supported 4995 if (grep 'ignoring option' conftest.err || 4996 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4997 am_cv_CC_dependencies_compiler_type=$depmode 4998 break 4999 fi 5000 fi 5001 done 5002 5003 cd .. 5004 rm -rf conftest.dir 5005else 5006 am_cv_CC_dependencies_compiler_type=none 5007fi 5008 5009fi 5010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5011printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5012CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5013 5014 if 5015 test "x$enable_dependency_tracking" != xno \ 5016 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5017 am__fastdepCC_TRUE= 5018 am__fastdepCC_FALSE='#' 5019else 5020 am__fastdepCC_TRUE='#' 5021 am__fastdepCC_FALSE= 5022fi 5023 5024 5025 5026ac_header= ac_cache= 5027for ac_item in $ac_header_c_list 5028do 5029 if test $ac_cache; then 5030 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5031 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5032 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5033 fi 5034 ac_header= ac_cache= 5035 elif test $ac_header; then 5036 ac_cache=$ac_item 5037 else 5038 ac_header=$ac_item 5039 fi 5040done 5041 5042 5043 5044 5045 5046 5047 5048 5049if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5050then : 5051 5052printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5053 5054fi 5055 5056 5057 5058 5059 5060 5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5062printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5063if test ${ac_cv_safe_to_define___extensions__+y} 5064then : 5065 printf %s "(cached) " >&6 5066else $as_nop 5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5068/* end confdefs.h. */ 5069 5070# define __EXTENSIONS__ 1 5071 $ac_includes_default 5072int 5073main (void) 5074{ 5075 5076 ; 5077 return 0; 5078} 5079_ACEOF 5080if ac_fn_c_try_compile "$LINENO" 5081then : 5082 ac_cv_safe_to_define___extensions__=yes 5083else $as_nop 5084 ac_cv_safe_to_define___extensions__=no 5085fi 5086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5087fi 5088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5089printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5090 5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5092printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5093if test ${ac_cv_should_define__xopen_source+y} 5094then : 5095 printf %s "(cached) " >&6 5096else $as_nop 5097 ac_cv_should_define__xopen_source=no 5098 if test $ac_cv_header_wchar_h = yes 5099then : 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102 5103 #include <wchar.h> 5104 mbstate_t x; 5105int 5106main (void) 5107{ 5108 5109 ; 5110 return 0; 5111} 5112_ACEOF 5113if ac_fn_c_try_compile "$LINENO" 5114then : 5115 5116else $as_nop 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118/* end confdefs.h. */ 5119 5120 #define _XOPEN_SOURCE 500 5121 #include <wchar.h> 5122 mbstate_t x; 5123int 5124main (void) 5125{ 5126 5127 ; 5128 return 0; 5129} 5130_ACEOF 5131if ac_fn_c_try_compile "$LINENO" 5132then : 5133 ac_cv_should_define__xopen_source=yes 5134fi 5135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5136fi 5137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5138fi 5139fi 5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5141printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5142 5143 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5144 5145 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5146 5147 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5148 5149 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5150 5151 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5152 5153 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5154 5155 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5156 5157 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5158 5159 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5160 5161 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5162 5163 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5164 5165 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5166 5167 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5168 5169 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5170 5171 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5172 5173 if test $ac_cv_header_minix_config_h = yes 5174then : 5175 MINIX=yes 5176 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5177 5178 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5179 5180 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5181 5182else $as_nop 5183 MINIX= 5184fi 5185 if test $ac_cv_safe_to_define___extensions__ = yes 5186then : 5187 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5188 5189fi 5190 if test $ac_cv_should_define__xopen_source = yes 5191then : 5192 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5193 5194fi 5195 5196 5197 5198 5199 # Make sure we can run config.sub. 5200$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5201 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5202 5203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5204printf %s "checking build system type... " >&6; } 5205if test ${ac_cv_build+y} 5206then : 5207 printf %s "(cached) " >&6 5208else $as_nop 5209 ac_build_alias=$build_alias 5210test "x$ac_build_alias" = x && 5211 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5212test "x$ac_build_alias" = x && 5213 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5214ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5215 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5216 5217fi 5218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5219printf "%s\n" "$ac_cv_build" >&6; } 5220case $ac_cv_build in 5221*-*-*) ;; 5222*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5223esac 5224build=$ac_cv_build 5225ac_save_IFS=$IFS; IFS='-' 5226set x $ac_cv_build 5227shift 5228build_cpu=$1 5229build_vendor=$2 5230shift; shift 5231# Remember, the first character of IFS is used to create $*, 5232# except with old shells: 5233build_os=$* 5234IFS=$ac_save_IFS 5235case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5236 5237 5238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5239printf %s "checking host system type... " >&6; } 5240if test ${ac_cv_host+y} 5241then : 5242 printf %s "(cached) " >&6 5243else $as_nop 5244 if test "x$host_alias" = x; then 5245 ac_cv_host=$ac_cv_build 5246else 5247 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5248 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5249fi 5250 5251fi 5252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5253printf "%s\n" "$ac_cv_host" >&6; } 5254case $ac_cv_host in 5255*-*-*) ;; 5256*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5257esac 5258host=$ac_cv_host 5259ac_save_IFS=$IFS; IFS='-' 5260set x $ac_cv_host 5261shift 5262host_cpu=$1 5263host_vendor=$2 5264shift; shift 5265# Remember, the first character of IFS is used to create $*, 5266# except with old shells: 5267host_os=$* 5268IFS=$ac_save_IFS 5269case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5270 5271 5272 5273#case "$host_os" in 5274# 5275# osf5*) 5276# CFLAGS="$CFLAGS -D_OSF_SOURCE" 5277# ;; 5278#esac 5279 5280 5281 5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5283printf %s "checking whether ln -s works... " >&6; } 5284LN_S=$as_ln_s 5285if test "$LN_S" = "ln -s"; then 5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5287printf "%s\n" "yes" >&6; } 5288else 5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5290printf "%s\n" "no, using $LN_S" >&6; } 5291fi 5292 5293# AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE 5294 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5296printf %s "checking for a sed that does not truncate output... " >&6; } 5297if test ${ac_cv_path_SED+y} 5298then : 5299 printf %s "(cached) " >&6 5300else $as_nop 5301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5302 for ac_i in 1 2 3 4 5 6 7; do 5303 ac_script="$ac_script$as_nl$ac_script" 5304 done 5305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5306 { ac_script=; unset ac_script;} 5307 if test -z "$SED"; then 5308 ac_path_SED_found=false 5309 # Loop through the user's path and test for each of PROGNAME-LIST 5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311for as_dir in $PATH 5312do 5313 IFS=$as_save_IFS 5314 case $as_dir in #((( 5315 '') as_dir=./ ;; 5316 */) ;; 5317 *) as_dir=$as_dir/ ;; 5318 esac 5319 for ac_prog in sed gsed 5320 do 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5323 as_fn_executable_p "$ac_path_SED" || continue 5324# Check for GNU ac_path_SED and select it if it is found. 5325 # Check for GNU $ac_path_SED 5326case `"$ac_path_SED" --version 2>&1` in 5327*GNU*) 5328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5329*) 5330 ac_count=0 5331 printf %s 0123456789 >"conftest.in" 5332 while : 5333 do 5334 cat "conftest.in" "conftest.in" >"conftest.tmp" 5335 mv "conftest.tmp" "conftest.in" 5336 cp "conftest.in" "conftest.nl" 5337 printf "%s\n" '' >> "conftest.nl" 5338 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5340 as_fn_arith $ac_count + 1 && ac_count=$as_val 5341 if test $ac_count -gt ${ac_path_SED_max-0}; then 5342 # Best one so far, save it but keep looking for a better one 5343 ac_cv_path_SED="$ac_path_SED" 5344 ac_path_SED_max=$ac_count 5345 fi 5346 # 10*(2^10) chars as input seems more than enough 5347 test $ac_count -gt 10 && break 5348 done 5349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5350esac 5351 5352 $ac_path_SED_found && break 3 5353 done 5354 done 5355 done 5356IFS=$as_save_IFS 5357 if test -z "$ac_cv_path_SED"; then 5358 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5359 fi 5360else 5361 ac_cv_path_SED=$SED 5362fi 5363 5364fi 5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5366printf "%s\n" "$ac_cv_path_SED" >&6; } 5367 SED="$ac_cv_path_SED" 5368 rm -f conftest.sed 5369 5370 5371ac_ext=c 5372ac_cpp='$CPP $CPPFLAGS' 5373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5375ac_compiler_gnu=$ac_cv_c_compiler_gnu 5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5377printf %s "checking how to run the C preprocessor... " >&6; } 5378# On Suns, sometimes $CPP names a directory. 5379if test -n "$CPP" && test -d "$CPP"; then 5380 CPP= 5381fi 5382if test -z "$CPP"; then 5383 if test ${ac_cv_prog_CPP+y} 5384then : 5385 printf %s "(cached) " >&6 5386else $as_nop 5387 # Double quotes because $CC needs to be expanded 5388 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5389 do 5390 ac_preproc_ok=false 5391for ac_c_preproc_warn_flag in '' yes 5392do 5393 # Use a header file that comes with gcc, so configuring glibc 5394 # with a fresh cross-compiler works. 5395 # On the NeXT, cc -E runs the code through the compiler's parser, 5396 # not just through cpp. "Syntax error" is here to catch this case. 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398/* end confdefs.h. */ 5399#include <limits.h> 5400 Syntax error 5401_ACEOF 5402if ac_fn_c_try_cpp "$LINENO" 5403then : 5404 5405else $as_nop 5406 # Broken: fails on valid input. 5407continue 5408fi 5409rm -f conftest.err conftest.i conftest.$ac_ext 5410 5411 # OK, works on sane cases. Now check whether nonexistent headers 5412 # can be detected and how. 5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414/* end confdefs.h. */ 5415#include <ac_nonexistent.h> 5416_ACEOF 5417if ac_fn_c_try_cpp "$LINENO" 5418then : 5419 # Broken: success on invalid input. 5420continue 5421else $as_nop 5422 # Passes both tests. 5423ac_preproc_ok=: 5424break 5425fi 5426rm -f conftest.err conftest.i conftest.$ac_ext 5427 5428done 5429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5430rm -f conftest.i conftest.err conftest.$ac_ext 5431if $ac_preproc_ok 5432then : 5433 break 5434fi 5435 5436 done 5437 ac_cv_prog_CPP=$CPP 5438 5439fi 5440 CPP=$ac_cv_prog_CPP 5441else 5442 ac_cv_prog_CPP=$CPP 5443fi 5444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5445printf "%s\n" "$CPP" >&6; } 5446ac_preproc_ok=false 5447for ac_c_preproc_warn_flag in '' yes 5448do 5449 # Use a header file that comes with gcc, so configuring glibc 5450 # with a fresh cross-compiler works. 5451 # On the NeXT, cc -E runs the code through the compiler's parser, 5452 # not just through cpp. "Syntax error" is here to catch this case. 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454/* end confdefs.h. */ 5455#include <limits.h> 5456 Syntax error 5457_ACEOF 5458if ac_fn_c_try_cpp "$LINENO" 5459then : 5460 5461else $as_nop 5462 # Broken: fails on valid input. 5463continue 5464fi 5465rm -f conftest.err conftest.i conftest.$ac_ext 5466 5467 # OK, works on sane cases. Now check whether nonexistent headers 5468 # can be detected and how. 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470/* end confdefs.h. */ 5471#include <ac_nonexistent.h> 5472_ACEOF 5473if ac_fn_c_try_cpp "$LINENO" 5474then : 5475 # Broken: success on invalid input. 5476continue 5477else $as_nop 5478 # Passes both tests. 5479ac_preproc_ok=: 5480break 5481fi 5482rm -f conftest.err conftest.i conftest.$ac_ext 5483 5484done 5485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5486rm -f conftest.i conftest.err conftest.$ac_ext 5487if $ac_preproc_ok 5488then : 5489 5490else $as_nop 5491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5492printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5493as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5494See \`config.log' for more details" "$LINENO" 5; } 5495fi 5496 5497ac_ext=c 5498ac_cpp='$CPP $CPPFLAGS' 5499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5501ac_compiler_gnu=$ac_cv_c_compiler_gnu 5502 5503 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5505printf %s "checking for grep that handles long lines and -e... " >&6; } 5506if test ${ac_cv_path_GREP+y} 5507then : 5508 printf %s "(cached) " >&6 5509else $as_nop 5510 if test -z "$GREP"; then 5511 ac_path_GREP_found=false 5512 # Loop through the user's path and test for each of PROGNAME-LIST 5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5515do 5516 IFS=$as_save_IFS 5517 case $as_dir in #((( 5518 '') as_dir=./ ;; 5519 */) ;; 5520 *) as_dir=$as_dir/ ;; 5521 esac 5522 for ac_prog in grep ggrep 5523 do 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5526 as_fn_executable_p "$ac_path_GREP" || continue 5527# Check for GNU ac_path_GREP and select it if it is found. 5528 # Check for GNU $ac_path_GREP 5529case `"$ac_path_GREP" --version 2>&1` in 5530*GNU*) 5531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5532*) 5533 ac_count=0 5534 printf %s 0123456789 >"conftest.in" 5535 while : 5536 do 5537 cat "conftest.in" "conftest.in" >"conftest.tmp" 5538 mv "conftest.tmp" "conftest.in" 5539 cp "conftest.in" "conftest.nl" 5540 printf "%s\n" 'GREP' >> "conftest.nl" 5541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5543 as_fn_arith $ac_count + 1 && ac_count=$as_val 5544 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5545 # Best one so far, save it but keep looking for a better one 5546 ac_cv_path_GREP="$ac_path_GREP" 5547 ac_path_GREP_max=$ac_count 5548 fi 5549 # 10*(2^10) chars as input seems more than enough 5550 test $ac_count -gt 10 && break 5551 done 5552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5553esac 5554 5555 $ac_path_GREP_found && break 3 5556 done 5557 done 5558 done 5559IFS=$as_save_IFS 5560 if test -z "$ac_cv_path_GREP"; then 5561 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5562 fi 5563else 5564 ac_cv_path_GREP=$GREP 5565fi 5566 5567fi 5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5569printf "%s\n" "$ac_cv_path_GREP" >&6; } 5570 GREP="$ac_cv_path_GREP" 5571 5572 5573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5574printf %s "checking for egrep... " >&6; } 5575if test ${ac_cv_path_EGREP+y} 5576then : 5577 printf %s "(cached) " >&6 5578else $as_nop 5579 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5580 then ac_cv_path_EGREP="$GREP -E" 5581 else 5582 if test -z "$EGREP"; then 5583 ac_path_EGREP_found=false 5584 # Loop through the user's path and test for each of PROGNAME-LIST 5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5586for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5587do 5588 IFS=$as_save_IFS 5589 case $as_dir in #((( 5590 '') as_dir=./ ;; 5591 */) ;; 5592 *) as_dir=$as_dir/ ;; 5593 esac 5594 for ac_prog in egrep 5595 do 5596 for ac_exec_ext in '' $ac_executable_extensions; do 5597 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5598 as_fn_executable_p "$ac_path_EGREP" || continue 5599# Check for GNU ac_path_EGREP and select it if it is found. 5600 # Check for GNU $ac_path_EGREP 5601case `"$ac_path_EGREP" --version 2>&1` in 5602*GNU*) 5603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5604*) 5605 ac_count=0 5606 printf %s 0123456789 >"conftest.in" 5607 while : 5608 do 5609 cat "conftest.in" "conftest.in" >"conftest.tmp" 5610 mv "conftest.tmp" "conftest.in" 5611 cp "conftest.in" "conftest.nl" 5612 printf "%s\n" 'EGREP' >> "conftest.nl" 5613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5615 as_fn_arith $ac_count + 1 && ac_count=$as_val 5616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5617 # Best one so far, save it but keep looking for a better one 5618 ac_cv_path_EGREP="$ac_path_EGREP" 5619 ac_path_EGREP_max=$ac_count 5620 fi 5621 # 10*(2^10) chars as input seems more than enough 5622 test $ac_count -gt 10 && break 5623 done 5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5625esac 5626 5627 $ac_path_EGREP_found && break 3 5628 done 5629 done 5630 done 5631IFS=$as_save_IFS 5632 if test -z "$ac_cv_path_EGREP"; then 5633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5634 fi 5635else 5636 ac_cv_path_EGREP=$EGREP 5637fi 5638 5639 fi 5640fi 5641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5642printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5643 EGREP="$ac_cv_path_EGREP" 5644 5645 5646if test $ac_cv_c_compiler_gnu = yes; then 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5648printf %s "checking whether $CC needs -traditional... " >&6; } 5649if test ${ac_cv_prog_gcc_traditional+y} 5650then : 5651 printf %s "(cached) " >&6 5652else $as_nop 5653 ac_pattern="Autoconf.*'x'" 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656#include <sgtty.h> 5657Autoconf TIOCGETP 5658_ACEOF 5659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5660 $EGREP "$ac_pattern" >/dev/null 2>&1 5661then : 5662 ac_cv_prog_gcc_traditional=yes 5663else $as_nop 5664 ac_cv_prog_gcc_traditional=no 5665fi 5666rm -rf conftest* 5667 5668 5669 if test $ac_cv_prog_gcc_traditional = no; then 5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5671/* end confdefs.h. */ 5672#include <termio.h> 5673Autoconf TCGETA 5674_ACEOF 5675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5676 $EGREP "$ac_pattern" >/dev/null 2>&1 5677then : 5678 ac_cv_prog_gcc_traditional=yes 5679fi 5680rm -rf conftest* 5681 5682 fi 5683fi 5684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5685printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; } 5686 if test $ac_cv_prog_gcc_traditional = yes; then 5687 CC="$CC -traditional" 5688 fi 5689fi 5690 5691 5692# We need to test for at least gcc 2.95 here, because older versions don't 5693# have -fno-strict-aliasing 5694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696 5697int 5698main (void) 5699{ 5700 5701#if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) 5702#error 5703#endif 5704 ; 5705 return 0; 5706} 5707_ACEOF 5708if ac_fn_c_try_compile "$LINENO" 5709then : 5710 have_gcc295=yes 5711else $as_nop 5712 have_gcc295=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5715 5716if test "$GCC" = "yes" ; then 5717 # Enable many gcc warnings by default... 5718 CFLAGS="$CFLAGS -Wall" 5719 # And disable the strict-aliasing optimization, since it breaks 5720 # our sockaddr-handling code in strange ways. 5721 if test x$have_gcc295 = xyes; then 5722 CFLAGS="$CFLAGS -fno-strict-aliasing" 5723 fi 5724fi 5725 5726# OS X Lion started deprecating the system openssl. Let's just disable 5727# all deprecation warnings on OS X; but do so only for gcc... 5728if test "$GCC" = "yes" ; then 5729 case "$host_os" in 5730 darwin*) 5731 CFLAGS="$CFLAGS -Wno-deprecated-declarations" 5732 ;; 5733 esac 5734fi 5735 5736# Check whether --enable-gcc-warnings was given. 5737if test ${enable_gcc_warnings+y} 5738then : 5739 enableval=$enable_gcc_warnings; 5740fi 5741 5742 5743# Check whether --enable-gcc-hardening was given. 5744if test ${enable_gcc_hardening+y} 5745then : 5746 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then 5747 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" 5748 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector" 5749 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 5750fi 5751fi 5752 5753 5754# Check whether --enable-thread-support was given. 5755if test ${enable_thread_support+y} 5756then : 5757 enableval=$enable_thread_support; 5758else $as_nop 5759 enable_thread_support=yes 5760fi 5761 5762# Check whether --enable-malloc-replacement was given. 5763if test ${enable_malloc_replacement+y} 5764then : 5765 enableval=$enable_malloc_replacement; 5766else $as_nop 5767 enable_malloc_replacement=yes 5768fi 5769 5770# Check whether --enable-openssl was given. 5771if test ${enable_openssl+y} 5772then : 5773 enableval=$enable_openssl; 5774else $as_nop 5775 enable_openssl=yes 5776fi 5777 5778# Check whether --enable-debug-mode was given. 5779if test ${enable_debug_mode+y} 5780then : 5781 enableval=$enable_debug_mode; 5782else $as_nop 5783 enable_debug_mode=yes 5784fi 5785 5786# Check whether --enable-libevent-install was given. 5787if test ${enable_libevent_install+y} 5788then : 5789 enableval=$enable_libevent_install; 5790else $as_nop 5791 enable_libevent_install=yes 5792fi 5793 5794# Check whether --enable-libevent-regress was given. 5795if test ${enable_libevent_regress+y} 5796then : 5797 enableval=$enable_libevent_regress; 5798else $as_nop 5799 enable_libevent_regress=yes 5800fi 5801 5802# Check whether --enable-samples was given. 5803if test ${enable_samples+y} 5804then : 5805 enableval=$enable_samples; 5806else $as_nop 5807 enable_samples=yes 5808fi 5809 5810# Check whether --enable-function-sections was given. 5811if test ${enable_function_sections+y} 5812then : 5813 enableval=$enable_function_sections; 5814else $as_nop 5815 enable_function_sections=no 5816fi 5817 5818# Check whether --enable-verbose-debug was given. 5819if test ${enable_verbose_debug+y} 5820then : 5821 enableval=$enable_verbose_debug; 5822else $as_nop 5823 enable_verbose_debug=no 5824fi 5825 5826# Check whether --enable-clock-gettime was given. 5827if test ${enable_clock_gettime+y} 5828then : 5829 enableval=$enable_clock_gettime; 5830else $as_nop 5831 enable_clock_gettime=yes 5832fi 5833 5834 5835 5836 5837case `pwd` in 5838 *\ * | *\ *) 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5840printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5841esac 5842 5843 5844 5845macro_version='2.4.6' 5846macro_revision='2.4.6' 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861ltmain=$ac_aux_dir/ltmain.sh 5862 5863# Backslashify metacharacters that are still active within 5864# double-quoted strings. 5865sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5866 5867# Same as above, but do not quote variable references. 5868double_quote_subst='s/\(["`\\]\)/\\\1/g' 5869 5870# Sed substitution to delay expansion of an escaped shell variable in a 5871# double_quote_subst'ed string. 5872delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5873 5874# Sed substitution to delay expansion of an escaped single quote. 5875delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5876 5877# Sed substitution to avoid accidental globbing in evaled expressions 5878no_glob_subst='s/\*/\\\*/g' 5879 5880ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5881ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5882ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5883 5884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5885printf %s "checking how to print strings... " >&6; } 5886# Test print first, because it will be a builtin if present. 5887if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5888 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5889 ECHO='print -r --' 5890elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5891 ECHO='printf %s\n' 5892else 5893 # Use this function as a fallback that always works. 5894 func_fallback_echo () 5895 { 5896 eval 'cat <<_LTECHO_EOF 5897$1 5898_LTECHO_EOF' 5899 } 5900 ECHO='func_fallback_echo' 5901fi 5902 5903# func_echo_all arg... 5904# Invoke $ECHO with all args, space-separated. 5905func_echo_all () 5906{ 5907 $ECHO "" 5908} 5909 5910case $ECHO in 5911 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5912printf "%s\n" "printf" >&6; } ;; 5913 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5914printf "%s\n" "print -r" >&6; } ;; 5915 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5916printf "%s\n" "cat" >&6; } ;; 5917esac 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5933printf %s "checking for a sed that does not truncate output... " >&6; } 5934if test ${ac_cv_path_SED+y} 5935then : 5936 printf %s "(cached) " >&6 5937else $as_nop 5938 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5939 for ac_i in 1 2 3 4 5 6 7; do 5940 ac_script="$ac_script$as_nl$ac_script" 5941 done 5942 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5943 { ac_script=; unset ac_script;} 5944 if test -z "$SED"; then 5945 ac_path_SED_found=false 5946 # Loop through the user's path and test for each of PROGNAME-LIST 5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5948for as_dir in $PATH 5949do 5950 IFS=$as_save_IFS 5951 case $as_dir in #((( 5952 '') as_dir=./ ;; 5953 */) ;; 5954 *) as_dir=$as_dir/ ;; 5955 esac 5956 for ac_prog in sed gsed 5957 do 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5960 as_fn_executable_p "$ac_path_SED" || continue 5961# Check for GNU ac_path_SED and select it if it is found. 5962 # Check for GNU $ac_path_SED 5963case `"$ac_path_SED" --version 2>&1` in 5964*GNU*) 5965 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5966*) 5967 ac_count=0 5968 printf %s 0123456789 >"conftest.in" 5969 while : 5970 do 5971 cat "conftest.in" "conftest.in" >"conftest.tmp" 5972 mv "conftest.tmp" "conftest.in" 5973 cp "conftest.in" "conftest.nl" 5974 printf "%s\n" '' >> "conftest.nl" 5975 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5977 as_fn_arith $ac_count + 1 && ac_count=$as_val 5978 if test $ac_count -gt ${ac_path_SED_max-0}; then 5979 # Best one so far, save it but keep looking for a better one 5980 ac_cv_path_SED="$ac_path_SED" 5981 ac_path_SED_max=$ac_count 5982 fi 5983 # 10*(2^10) chars as input seems more than enough 5984 test $ac_count -gt 10 && break 5985 done 5986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5987esac 5988 5989 $ac_path_SED_found && break 3 5990 done 5991 done 5992 done 5993IFS=$as_save_IFS 5994 if test -z "$ac_cv_path_SED"; then 5995 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5996 fi 5997else 5998 ac_cv_path_SED=$SED 5999fi 6000 6001fi 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6003printf "%s\n" "$ac_cv_path_SED" >&6; } 6004 SED="$ac_cv_path_SED" 6005 rm -f conftest.sed 6006 6007test -z "$SED" && SED=sed 6008Xsed="$SED -e 1s/^X//" 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6021printf %s "checking for fgrep... " >&6; } 6022if test ${ac_cv_path_FGREP+y} 6023then : 6024 printf %s "(cached) " >&6 6025else $as_nop 6026 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6027 then ac_cv_path_FGREP="$GREP -F" 6028 else 6029 if test -z "$FGREP"; then 6030 ac_path_FGREP_found=false 6031 # Loop through the user's path and test for each of PROGNAME-LIST 6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6034do 6035 IFS=$as_save_IFS 6036 case $as_dir in #((( 6037 '') as_dir=./ ;; 6038 */) ;; 6039 *) as_dir=$as_dir/ ;; 6040 esac 6041 for ac_prog in fgrep 6042 do 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6045 as_fn_executable_p "$ac_path_FGREP" || continue 6046# Check for GNU ac_path_FGREP and select it if it is found. 6047 # Check for GNU $ac_path_FGREP 6048case `"$ac_path_FGREP" --version 2>&1` in 6049*GNU*) 6050 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6051*) 6052 ac_count=0 6053 printf %s 0123456789 >"conftest.in" 6054 while : 6055 do 6056 cat "conftest.in" "conftest.in" >"conftest.tmp" 6057 mv "conftest.tmp" "conftest.in" 6058 cp "conftest.in" "conftest.nl" 6059 printf "%s\n" 'FGREP' >> "conftest.nl" 6060 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6062 as_fn_arith $ac_count + 1 && ac_count=$as_val 6063 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6064 # Best one so far, save it but keep looking for a better one 6065 ac_cv_path_FGREP="$ac_path_FGREP" 6066 ac_path_FGREP_max=$ac_count 6067 fi 6068 # 10*(2^10) chars as input seems more than enough 6069 test $ac_count -gt 10 && break 6070 done 6071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6072esac 6073 6074 $ac_path_FGREP_found && break 3 6075 done 6076 done 6077 done 6078IFS=$as_save_IFS 6079 if test -z "$ac_cv_path_FGREP"; then 6080 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6081 fi 6082else 6083 ac_cv_path_FGREP=$FGREP 6084fi 6085 6086 fi 6087fi 6088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6089printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6090 FGREP="$ac_cv_path_FGREP" 6091 6092 6093test -z "$GREP" && GREP=grep 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113# Check whether --with-gnu-ld was given. 6114if test ${with_gnu_ld+y} 6115then : 6116 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6117else $as_nop 6118 with_gnu_ld=no 6119fi 6120 6121ac_prog=ld 6122if test yes = "$GCC"; then 6123 # Check if gcc -print-prog-name=ld gives a path. 6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6125printf %s "checking for ld used by $CC... " >&6; } 6126 case $host in 6127 *-*-mingw*) 6128 # gcc leaves a trailing carriage return, which upsets mingw 6129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6130 *) 6131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6132 esac 6133 case $ac_prog in 6134 # Accept absolute paths. 6135 [\\/]* | ?:[\\/]*) 6136 re_direlt='/[^/][^/]*/\.\./' 6137 # Canonicalize the pathname of ld 6138 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6139 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6140 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6141 done 6142 test -z "$LD" && LD=$ac_prog 6143 ;; 6144 "") 6145 # If it fails, then pretend we aren't using GCC. 6146 ac_prog=ld 6147 ;; 6148 *) 6149 # If it is relative, then search for the first ld in PATH. 6150 with_gnu_ld=unknown 6151 ;; 6152 esac 6153elif test yes = "$with_gnu_ld"; then 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6155printf %s "checking for GNU ld... " >&6; } 6156else 6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6158printf %s "checking for non-GNU ld... " >&6; } 6159fi 6160if test ${lt_cv_path_LD+y} 6161then : 6162 printf %s "(cached) " >&6 6163else $as_nop 6164 if test -z "$LD"; then 6165 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6166 for ac_dir in $PATH; do 6167 IFS=$lt_save_ifs 6168 test -z "$ac_dir" && ac_dir=. 6169 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6170 lt_cv_path_LD=$ac_dir/$ac_prog 6171 # Check to see if the program is GNU ld. I'd rather use --version, 6172 # but apparently some variants of GNU ld only accept -v. 6173 # Break only if it was the GNU/non-GNU ld that we prefer. 6174 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6175 *GNU* | *'with BFD'*) 6176 test no != "$with_gnu_ld" && break 6177 ;; 6178 *) 6179 test yes != "$with_gnu_ld" && break 6180 ;; 6181 esac 6182 fi 6183 done 6184 IFS=$lt_save_ifs 6185else 6186 lt_cv_path_LD=$LD # Let the user override the test with a path. 6187fi 6188fi 6189 6190LD=$lt_cv_path_LD 6191if test -n "$LD"; then 6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6193printf "%s\n" "$LD" >&6; } 6194else 6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6196printf "%s\n" "no" >&6; } 6197fi 6198test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6200printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6201if test ${lt_cv_prog_gnu_ld+y} 6202then : 6203 printf %s "(cached) " >&6 6204else $as_nop 6205 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6206case `$LD -v 2>&1 </dev/null` in 6207*GNU* | *'with BFD'*) 6208 lt_cv_prog_gnu_ld=yes 6209 ;; 6210*) 6211 lt_cv_prog_gnu_ld=no 6212 ;; 6213esac 6214fi 6215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6216printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6217with_gnu_ld=$lt_cv_prog_gnu_ld 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6228printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6229if test ${lt_cv_path_NM+y} 6230then : 6231 printf %s "(cached) " >&6 6232else $as_nop 6233 if test -n "$NM"; then 6234 # Let the user override the test. 6235 lt_cv_path_NM=$NM 6236else 6237 lt_nm_to_check=${ac_tool_prefix}nm 6238 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6239 lt_nm_to_check="$lt_nm_to_check nm" 6240 fi 6241 for lt_tmp_nm in $lt_nm_to_check; do 6242 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6243 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6244 IFS=$lt_save_ifs 6245 test -z "$ac_dir" && ac_dir=. 6246 tmp_nm=$ac_dir/$lt_tmp_nm 6247 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6248 # Check to see if the nm accepts a BSD-compat flag. 6249 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6250 # nm: unknown option "B" ignored 6251 # Tru64's nm complains that /dev/null is an invalid object file 6252 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6253 case $build_os in 6254 mingw*) lt_bad_file=conftest.nm/nofile ;; 6255 *) lt_bad_file=/dev/null ;; 6256 esac 6257 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6258 *$lt_bad_file* | *'Invalid file or object type'*) 6259 lt_cv_path_NM="$tmp_nm -B" 6260 break 2 6261 ;; 6262 *) 6263 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6264 */dev/null*) 6265 lt_cv_path_NM="$tmp_nm -p" 6266 break 2 6267 ;; 6268 *) 6269 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6270 continue # so that we can try to find one that supports BSD flags 6271 ;; 6272 esac 6273 ;; 6274 esac 6275 fi 6276 done 6277 IFS=$lt_save_ifs 6278 done 6279 : ${lt_cv_path_NM=no} 6280fi 6281fi 6282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6283printf "%s\n" "$lt_cv_path_NM" >&6; } 6284if test no != "$lt_cv_path_NM"; then 6285 NM=$lt_cv_path_NM 6286else 6287 # Didn't find any BSD compatible name lister, look for dumpbin. 6288 if test -n "$DUMPBIN"; then : 6289 # Let the user override the test. 6290 else 6291 if test -n "$ac_tool_prefix"; then 6292 for ac_prog in dumpbin "link -dump" 6293 do 6294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6295set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297printf %s "checking for $ac_word... " >&6; } 6298if test ${ac_cv_prog_DUMPBIN+y} 6299then : 6300 printf %s "(cached) " >&6 6301else $as_nop 6302 if test -n "$DUMPBIN"; then 6303 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6304else 6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6306for as_dir in $PATH 6307do 6308 IFS=$as_save_IFS 6309 case $as_dir in #((( 6310 '') as_dir=./ ;; 6311 */) ;; 6312 *) as_dir=$as_dir/ ;; 6313 esac 6314 for ac_exec_ext in '' $ac_executable_extensions; do 6315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6316 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6318 break 2 6319 fi 6320done 6321 done 6322IFS=$as_save_IFS 6323 6324fi 6325fi 6326DUMPBIN=$ac_cv_prog_DUMPBIN 6327if test -n "$DUMPBIN"; then 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6329printf "%s\n" "$DUMPBIN" >&6; } 6330else 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6332printf "%s\n" "no" >&6; } 6333fi 6334 6335 6336 test -n "$DUMPBIN" && break 6337 done 6338fi 6339if test -z "$DUMPBIN"; then 6340 ac_ct_DUMPBIN=$DUMPBIN 6341 for ac_prog in dumpbin "link -dump" 6342do 6343 # Extract the first word of "$ac_prog", so it can be a program name with args. 6344set dummy $ac_prog; ac_word=$2 6345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6346printf %s "checking for $ac_word... " >&6; } 6347if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6348then : 6349 printf %s "(cached) " >&6 6350else $as_nop 6351 if test -n "$ac_ct_DUMPBIN"; then 6352 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6353else 6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6355for as_dir in $PATH 6356do 6357 IFS=$as_save_IFS 6358 case $as_dir in #((( 6359 '') as_dir=./ ;; 6360 */) ;; 6361 *) as_dir=$as_dir/ ;; 6362 esac 6363 for ac_exec_ext in '' $ac_executable_extensions; do 6364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6365 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6367 break 2 6368 fi 6369done 6370 done 6371IFS=$as_save_IFS 6372 6373fi 6374fi 6375ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6376if test -n "$ac_ct_DUMPBIN"; then 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6378printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6379else 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6381printf "%s\n" "no" >&6; } 6382fi 6383 6384 6385 test -n "$ac_ct_DUMPBIN" && break 6386done 6387 6388 if test "x$ac_ct_DUMPBIN" = x; then 6389 DUMPBIN=":" 6390 else 6391 case $cross_compiling:$ac_tool_warned in 6392yes:) 6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6394printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6395ac_tool_warned=yes ;; 6396esac 6397 DUMPBIN=$ac_ct_DUMPBIN 6398 fi 6399fi 6400 6401 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6402 *COFF*) 6403 DUMPBIN="$DUMPBIN -symbols -headers" 6404 ;; 6405 *) 6406 DUMPBIN=: 6407 ;; 6408 esac 6409 fi 6410 6411 if test : != "$DUMPBIN"; then 6412 NM=$DUMPBIN 6413 fi 6414fi 6415test -z "$NM" && NM=nm 6416 6417 6418 6419 6420 6421 6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6423printf %s "checking the name lister ($NM) interface... " >&6; } 6424if test ${lt_cv_nm_interface+y} 6425then : 6426 printf %s "(cached) " >&6 6427else $as_nop 6428 lt_cv_nm_interface="BSD nm" 6429 echo "int some_variable = 0;" > conftest.$ac_ext 6430 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6431 (eval "$ac_compile" 2>conftest.err) 6432 cat conftest.err >&5 6433 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6434 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6435 cat conftest.err >&5 6436 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6437 cat conftest.out >&5 6438 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6439 lt_cv_nm_interface="MS dumpbin" 6440 fi 6441 rm -f conftest* 6442fi 6443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6444printf "%s\n" "$lt_cv_nm_interface" >&6; } 6445 6446# find the maximum length of command line arguments 6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6448printf %s "checking the maximum length of command line arguments... " >&6; } 6449if test ${lt_cv_sys_max_cmd_len+y} 6450then : 6451 printf %s "(cached) " >&6 6452else $as_nop 6453 i=0 6454 teststring=ABCD 6455 6456 case $build_os in 6457 msdosdjgpp*) 6458 # On DJGPP, this test can blow up pretty badly due to problems in libc 6459 # (any single argument exceeding 2000 bytes causes a buffer overrun 6460 # during glob expansion). Even if it were fixed, the result of this 6461 # check would be larger than it should be. 6462 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6463 ;; 6464 6465 gnu*) 6466 # Under GNU Hurd, this test is not required because there is 6467 # no limit to the length of command line arguments. 6468 # Libtool will interpret -1 as no limit whatsoever 6469 lt_cv_sys_max_cmd_len=-1; 6470 ;; 6471 6472 cygwin* | mingw* | cegcc*) 6473 # On Win9x/ME, this test blows up -- it succeeds, but takes 6474 # about 5 minutes as the teststring grows exponentially. 6475 # Worse, since 9x/ME are not pre-emptively multitasking, 6476 # you end up with a "frozen" computer, even though with patience 6477 # the test eventually succeeds (with a max line length of 256k). 6478 # Instead, let's just punt: use the minimum linelength reported by 6479 # all of the supported platforms: 8192 (on NT/2K/XP). 6480 lt_cv_sys_max_cmd_len=8192; 6481 ;; 6482 6483 mint*) 6484 # On MiNT this can take a long time and run out of memory. 6485 lt_cv_sys_max_cmd_len=8192; 6486 ;; 6487 6488 amigaos*) 6489 # On AmigaOS with pdksh, this test takes hours, literally. 6490 # So we just punt and use a minimum line length of 8192. 6491 lt_cv_sys_max_cmd_len=8192; 6492 ;; 6493 6494 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6495 # This has been around since 386BSD, at least. Likely further. 6496 if test -x /sbin/sysctl; then 6497 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6498 elif test -x /usr/sbin/sysctl; then 6499 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6500 else 6501 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6502 fi 6503 # And add a safety zone 6504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6506 ;; 6507 6508 interix*) 6509 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6510 lt_cv_sys_max_cmd_len=196608 6511 ;; 6512 6513 os2*) 6514 # The test takes a long time on OS/2. 6515 lt_cv_sys_max_cmd_len=8192 6516 ;; 6517 6518 osf*) 6519 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6520 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6521 # nice to cause kernel panics so lets avoid the loop below. 6522 # First set a reasonable default. 6523 lt_cv_sys_max_cmd_len=16384 6524 # 6525 if test -x /sbin/sysconfig; then 6526 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6527 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6528 esac 6529 fi 6530 ;; 6531 sco3.2v5*) 6532 lt_cv_sys_max_cmd_len=102400 6533 ;; 6534 sysv5* | sco5v6* | sysv4.2uw2*) 6535 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6536 if test -n "$kargmax"; then 6537 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6538 else 6539 lt_cv_sys_max_cmd_len=32768 6540 fi 6541 ;; 6542 *) 6543 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6544 if test -n "$lt_cv_sys_max_cmd_len" && \ 6545 test undefined != "$lt_cv_sys_max_cmd_len"; then 6546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6548 else 6549 # Make teststring a little bigger before we do anything with it. 6550 # a 1K string should be a reasonable start. 6551 for i in 1 2 3 4 5 6 7 8; do 6552 teststring=$teststring$teststring 6553 done 6554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6555 # If test is not a shell built-in, we'll probably end up computing a 6556 # maximum length that is only half of the actual maximum length, but 6557 # we can't tell. 6558 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6559 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6560 test 17 != "$i" # 1/2 MB should be enough 6561 do 6562 i=`expr $i + 1` 6563 teststring=$teststring$teststring 6564 done 6565 # Only check the string length outside the loop. 6566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6567 teststring= 6568 # Add a significant safety factor because C++ compilers can tack on 6569 # massive amounts of additional arguments before passing them to the 6570 # linker. It appears as though 1/2 is a usable value. 6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6572 fi 6573 ;; 6574 esac 6575 6576fi 6577 6578if test -n "$lt_cv_sys_max_cmd_len"; then 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6580printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6581else 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6583printf "%s\n" "none" >&6; } 6584fi 6585max_cmd_len=$lt_cv_sys_max_cmd_len 6586 6587 6588 6589 6590 6591 6592: ${CP="cp -f"} 6593: ${MV="mv -f"} 6594: ${RM="rm -f"} 6595 6596if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6597 lt_unset=unset 6598else 6599 lt_unset=false 6600fi 6601 6602 6603 6604 6605 6606# test EBCDIC or ASCII 6607case `echo X|tr X '\101'` in 6608 A) # ASCII based system 6609 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6610 lt_SP2NL='tr \040 \012' 6611 lt_NL2SP='tr \015\012 \040\040' 6612 ;; 6613 *) # EBCDIC based system 6614 lt_SP2NL='tr \100 \n' 6615 lt_NL2SP='tr \r\n \100\100' 6616 ;; 6617esac 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6628printf %s "checking how to convert $build file names to $host format... " >&6; } 6629if test ${lt_cv_to_host_file_cmd+y} 6630then : 6631 printf %s "(cached) " >&6 6632else $as_nop 6633 case $host in 6634 *-*-mingw* ) 6635 case $build in 6636 *-*-mingw* ) # actually msys 6637 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6638 ;; 6639 *-*-cygwin* ) 6640 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6641 ;; 6642 * ) # otherwise, assume *nix 6643 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6644 ;; 6645 esac 6646 ;; 6647 *-*-cygwin* ) 6648 case $build in 6649 *-*-mingw* ) # actually msys 6650 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6651 ;; 6652 *-*-cygwin* ) 6653 lt_cv_to_host_file_cmd=func_convert_file_noop 6654 ;; 6655 * ) # otherwise, assume *nix 6656 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6657 ;; 6658 esac 6659 ;; 6660 * ) # unhandled hosts (and "normal" native builds) 6661 lt_cv_to_host_file_cmd=func_convert_file_noop 6662 ;; 6663esac 6664 6665fi 6666 6667to_host_file_cmd=$lt_cv_to_host_file_cmd 6668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6669printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6670 6671 6672 6673 6674 6675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6676printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6677if test ${lt_cv_to_tool_file_cmd+y} 6678then : 6679 printf %s "(cached) " >&6 6680else $as_nop 6681 #assume ordinary cross tools, or native build. 6682lt_cv_to_tool_file_cmd=func_convert_file_noop 6683case $host in 6684 *-*-mingw* ) 6685 case $build in 6686 *-*-mingw* ) # actually msys 6687 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6688 ;; 6689 esac 6690 ;; 6691esac 6692 6693fi 6694 6695to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6697printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6698 6699 6700 6701 6702 6703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6704printf %s "checking for $LD option to reload object files... " >&6; } 6705if test ${lt_cv_ld_reload_flag+y} 6706then : 6707 printf %s "(cached) " >&6 6708else $as_nop 6709 lt_cv_ld_reload_flag='-r' 6710fi 6711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6712printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6713reload_flag=$lt_cv_ld_reload_flag 6714case $reload_flag in 6715"" | " "*) ;; 6716*) reload_flag=" $reload_flag" ;; 6717esac 6718reload_cmds='$LD$reload_flag -o $output$reload_objs' 6719case $host_os in 6720 cygwin* | mingw* | pw32* | cegcc*) 6721 if test yes != "$GCC"; then 6722 reload_cmds=false 6723 fi 6724 ;; 6725 darwin*) 6726 if test yes = "$GCC"; then 6727 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6728 else 6729 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6730 fi 6731 ;; 6732esac 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742if test -n "$ac_tool_prefix"; then 6743 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6744set dummy ${ac_tool_prefix}objdump; ac_word=$2 6745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6746printf %s "checking for $ac_word... " >&6; } 6747if test ${ac_cv_prog_OBJDUMP+y} 6748then : 6749 printf %s "(cached) " >&6 6750else $as_nop 6751 if test -n "$OBJDUMP"; then 6752 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6753else 6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755for as_dir in $PATH 6756do 6757 IFS=$as_save_IFS 6758 case $as_dir in #((( 6759 '') as_dir=./ ;; 6760 */) ;; 6761 *) as_dir=$as_dir/ ;; 6762 esac 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6765 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770 done 6771IFS=$as_save_IFS 6772 6773fi 6774fi 6775OBJDUMP=$ac_cv_prog_OBJDUMP 6776if test -n "$OBJDUMP"; then 6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6778printf "%s\n" "$OBJDUMP" >&6; } 6779else 6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781printf "%s\n" "no" >&6; } 6782fi 6783 6784 6785fi 6786if test -z "$ac_cv_prog_OBJDUMP"; then 6787 ac_ct_OBJDUMP=$OBJDUMP 6788 # Extract the first word of "objdump", so it can be a program name with args. 6789set dummy objdump; ac_word=$2 6790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6791printf %s "checking for $ac_word... " >&6; } 6792if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6793then : 6794 printf %s "(cached) " >&6 6795else $as_nop 6796 if test -n "$ac_ct_OBJDUMP"; then 6797 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6798else 6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6800for as_dir in $PATH 6801do 6802 IFS=$as_save_IFS 6803 case $as_dir in #((( 6804 '') as_dir=./ ;; 6805 */) ;; 6806 *) as_dir=$as_dir/ ;; 6807 esac 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6810 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814done 6815 done 6816IFS=$as_save_IFS 6817 6818fi 6819fi 6820ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6821if test -n "$ac_ct_OBJDUMP"; then 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6823printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6824else 6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6826printf "%s\n" "no" >&6; } 6827fi 6828 6829 if test "x$ac_ct_OBJDUMP" = x; then 6830 OBJDUMP="false" 6831 else 6832 case $cross_compiling:$ac_tool_warned in 6833yes:) 6834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6835printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6836ac_tool_warned=yes ;; 6837esac 6838 OBJDUMP=$ac_ct_OBJDUMP 6839 fi 6840else 6841 OBJDUMP="$ac_cv_prog_OBJDUMP" 6842fi 6843 6844test -z "$OBJDUMP" && OBJDUMP=objdump 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6855printf %s "checking how to recognize dependent libraries... " >&6; } 6856if test ${lt_cv_deplibs_check_method+y} 6857then : 6858 printf %s "(cached) " >&6 6859else $as_nop 6860 lt_cv_file_magic_cmd='$MAGIC_CMD' 6861lt_cv_file_magic_test_file= 6862lt_cv_deplibs_check_method='unknown' 6863# Need to set the preceding variable on all platforms that support 6864# interlibrary dependencies. 6865# 'none' -- dependencies not supported. 6866# 'unknown' -- same as none, but documents that we really don't know. 6867# 'pass_all' -- all dependencies passed with no checks. 6868# 'test_compile' -- check by making test program. 6869# 'file_magic [[regex]]' -- check by looking for files in library path 6870# that responds to the $file_magic_cmd with a given extended regex. 6871# If you have 'file' or equivalent on your system and you're not sure 6872# whether 'pass_all' will *always* work, you probably want this one. 6873 6874case $host_os in 6875aix[4-9]*) 6876 lt_cv_deplibs_check_method=pass_all 6877 ;; 6878 6879beos*) 6880 lt_cv_deplibs_check_method=pass_all 6881 ;; 6882 6883bsdi[45]*) 6884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6885 lt_cv_file_magic_cmd='/usr/bin/file -L' 6886 lt_cv_file_magic_test_file=/shlib/libc.so 6887 ;; 6888 6889cygwin*) 6890 # func_win32_libid is a shell function defined in ltmain.sh 6891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6892 lt_cv_file_magic_cmd='func_win32_libid' 6893 ;; 6894 6895mingw* | pw32*) 6896 # Base MSYS/MinGW do not provide the 'file' command needed by 6897 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6898 # unless we find 'file', for example because we are cross-compiling. 6899 if ( file / ) >/dev/null 2>&1; then 6900 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6901 lt_cv_file_magic_cmd='func_win32_libid' 6902 else 6903 # Keep this pattern in sync with the one in func_win32_libid. 6904 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6905 lt_cv_file_magic_cmd='$OBJDUMP -f' 6906 fi 6907 ;; 6908 6909cegcc*) 6910 # use the weaker test based on 'objdump'. See mingw*. 6911 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6912 lt_cv_file_magic_cmd='$OBJDUMP -f' 6913 ;; 6914 6915darwin* | rhapsody*) 6916 lt_cv_deplibs_check_method=pass_all 6917 ;; 6918 6919freebsd* | dragonfly*) 6920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6921 case $host_cpu in 6922 i*86 ) 6923 # Not sure whether the presence of OpenBSD here was a mistake. 6924 # Let's accept both of them until this is cleared up. 6925 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6926 lt_cv_file_magic_cmd=/usr/bin/file 6927 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6928 ;; 6929 esac 6930 else 6931 lt_cv_deplibs_check_method=pass_all 6932 fi 6933 ;; 6934 6935haiku*) 6936 lt_cv_deplibs_check_method=pass_all 6937 ;; 6938 6939hpux10.20* | hpux11*) 6940 lt_cv_file_magic_cmd=/usr/bin/file 6941 case $host_cpu in 6942 ia64*) 6943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6944 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6945 ;; 6946 hppa*64*) 6947 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]' 6948 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6949 ;; 6950 *) 6951 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6952 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6953 ;; 6954 esac 6955 ;; 6956 6957interix[3-9]*) 6958 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6960 ;; 6961 6962irix5* | irix6* | nonstopux*) 6963 case $LD in 6964 *-32|*"-32 ") libmagic=32-bit;; 6965 *-n32|*"-n32 ") libmagic=N32;; 6966 *-64|*"-64 ") libmagic=64-bit;; 6967 *) libmagic=never-match;; 6968 esac 6969 lt_cv_deplibs_check_method=pass_all 6970 ;; 6971 6972# This must be glibc/ELF. 6973linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6974 lt_cv_deplibs_check_method=pass_all 6975 ;; 6976 6977netbsd*) 6978 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6980 else 6981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6982 fi 6983 ;; 6984 6985newos6*) 6986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6987 lt_cv_file_magic_cmd=/usr/bin/file 6988 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6989 ;; 6990 6991*nto* | *qnx*) 6992 lt_cv_deplibs_check_method=pass_all 6993 ;; 6994 6995openbsd* | bitrig*) 6996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6998 else 6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7000 fi 7001 ;; 7002 7003osf3* | osf4* | osf5*) 7004 lt_cv_deplibs_check_method=pass_all 7005 ;; 7006 7007rdos*) 7008 lt_cv_deplibs_check_method=pass_all 7009 ;; 7010 7011solaris*) 7012 lt_cv_deplibs_check_method=pass_all 7013 ;; 7014 7015sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7016 lt_cv_deplibs_check_method=pass_all 7017 ;; 7018 7019sysv4 | sysv4.3*) 7020 case $host_vendor in 7021 motorola) 7022 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]' 7023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7024 ;; 7025 ncr) 7026 lt_cv_deplibs_check_method=pass_all 7027 ;; 7028 sequent) 7029 lt_cv_file_magic_cmd='/bin/file' 7030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7031 ;; 7032 sni) 7033 lt_cv_file_magic_cmd='/bin/file' 7034 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7035 lt_cv_file_magic_test_file=/lib/libc.so 7036 ;; 7037 siemens) 7038 lt_cv_deplibs_check_method=pass_all 7039 ;; 7040 pc) 7041 lt_cv_deplibs_check_method=pass_all 7042 ;; 7043 esac 7044 ;; 7045 7046tpf*) 7047 lt_cv_deplibs_check_method=pass_all 7048 ;; 7049os2*) 7050 lt_cv_deplibs_check_method=pass_all 7051 ;; 7052esac 7053 7054fi 7055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7056printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7057 7058file_magic_glob= 7059want_nocaseglob=no 7060if test "$build" = "$host"; then 7061 case $host_os in 7062 mingw* | pw32*) 7063 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7064 want_nocaseglob=yes 7065 else 7066 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7067 fi 7068 ;; 7069 esac 7070fi 7071 7072file_magic_cmd=$lt_cv_file_magic_cmd 7073deplibs_check_method=$lt_cv_deplibs_check_method 7074test -z "$deplibs_check_method" && deplibs_check_method=unknown 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097if test -n "$ac_tool_prefix"; then 7098 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7099set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7101printf %s "checking for $ac_word... " >&6; } 7102if test ${ac_cv_prog_DLLTOOL+y} 7103then : 7104 printf %s "(cached) " >&6 7105else $as_nop 7106 if test -n "$DLLTOOL"; then 7107 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7108else 7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7110for as_dir in $PATH 7111do 7112 IFS=$as_save_IFS 7113 case $as_dir in #((( 7114 '') as_dir=./ ;; 7115 */) ;; 7116 *) as_dir=$as_dir/ ;; 7117 esac 7118 for ac_exec_ext in '' $ac_executable_extensions; do 7119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7120 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7122 break 2 7123 fi 7124done 7125 done 7126IFS=$as_save_IFS 7127 7128fi 7129fi 7130DLLTOOL=$ac_cv_prog_DLLTOOL 7131if test -n "$DLLTOOL"; then 7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7133printf "%s\n" "$DLLTOOL" >&6; } 7134else 7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7136printf "%s\n" "no" >&6; } 7137fi 7138 7139 7140fi 7141if test -z "$ac_cv_prog_DLLTOOL"; then 7142 ac_ct_DLLTOOL=$DLLTOOL 7143 # Extract the first word of "dlltool", so it can be a program name with args. 7144set dummy dlltool; ac_word=$2 7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7146printf %s "checking for $ac_word... " >&6; } 7147if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7148then : 7149 printf %s "(cached) " >&6 7150else $as_nop 7151 if test -n "$ac_ct_DLLTOOL"; then 7152 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7153else 7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7155for as_dir in $PATH 7156do 7157 IFS=$as_save_IFS 7158 case $as_dir in #((( 7159 '') as_dir=./ ;; 7160 */) ;; 7161 *) as_dir=$as_dir/ ;; 7162 esac 7163 for ac_exec_ext in '' $ac_executable_extensions; do 7164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7165 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7167 break 2 7168 fi 7169done 7170 done 7171IFS=$as_save_IFS 7172 7173fi 7174fi 7175ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7176if test -n "$ac_ct_DLLTOOL"; then 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7178printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7179else 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7181printf "%s\n" "no" >&6; } 7182fi 7183 7184 if test "x$ac_ct_DLLTOOL" = x; then 7185 DLLTOOL="false" 7186 else 7187 case $cross_compiling:$ac_tool_warned in 7188yes:) 7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7191ac_tool_warned=yes ;; 7192esac 7193 DLLTOOL=$ac_ct_DLLTOOL 7194 fi 7195else 7196 DLLTOOL="$ac_cv_prog_DLLTOOL" 7197fi 7198 7199test -z "$DLLTOOL" && DLLTOOL=dlltool 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7211printf %s "checking how to associate runtime and link libraries... " >&6; } 7212if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7213then : 7214 printf %s "(cached) " >&6 7215else $as_nop 7216 lt_cv_sharedlib_from_linklib_cmd='unknown' 7217 7218case $host_os in 7219cygwin* | mingw* | pw32* | cegcc*) 7220 # two different shell functions defined in ltmain.sh; 7221 # decide which one to use based on capabilities of $DLLTOOL 7222 case `$DLLTOOL --help 2>&1` in 7223 *--identify-strict*) 7224 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7225 ;; 7226 *) 7227 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7228 ;; 7229 esac 7230 ;; 7231*) 7232 # fallback: assume linklib IS sharedlib 7233 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7234 ;; 7235esac 7236 7237fi 7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7239printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7240sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7241test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7242 7243 7244 7245 7246 7247 7248 7249if test -n "$ac_tool_prefix"; then 7250 for ac_prog in ar 7251 do 7252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7253set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7255printf %s "checking for $ac_word... " >&6; } 7256if test ${ac_cv_prog_AR+y} 7257then : 7258 printf %s "(cached) " >&6 7259else $as_nop 7260 if test -n "$AR"; then 7261 ac_cv_prog_AR="$AR" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 case $as_dir in #((( 7268 '') as_dir=./ ;; 7269 */) ;; 7270 *) as_dir=$as_dir/ ;; 7271 esac 7272 for ac_exec_ext in '' $ac_executable_extensions; do 7273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7274 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7276 break 2 7277 fi 7278done 7279 done 7280IFS=$as_save_IFS 7281 7282fi 7283fi 7284AR=$ac_cv_prog_AR 7285if test -n "$AR"; then 7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7287printf "%s\n" "$AR" >&6; } 7288else 7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7290printf "%s\n" "no" >&6; } 7291fi 7292 7293 7294 test -n "$AR" && break 7295 done 7296fi 7297if test -z "$AR"; then 7298 ac_ct_AR=$AR 7299 for ac_prog in ar 7300do 7301 # Extract the first word of "$ac_prog", so it can be a program name with args. 7302set dummy $ac_prog; ac_word=$2 7303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7304printf %s "checking for $ac_word... " >&6; } 7305if test ${ac_cv_prog_ac_ct_AR+y} 7306then : 7307 printf %s "(cached) " >&6 7308else $as_nop 7309 if test -n "$ac_ct_AR"; then 7310 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7311else 7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7313for as_dir in $PATH 7314do 7315 IFS=$as_save_IFS 7316 case $as_dir in #((( 7317 '') as_dir=./ ;; 7318 */) ;; 7319 *) as_dir=$as_dir/ ;; 7320 esac 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7323 ac_cv_prog_ac_ct_AR="$ac_prog" 7324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7325 break 2 7326 fi 7327done 7328 done 7329IFS=$as_save_IFS 7330 7331fi 7332fi 7333ac_ct_AR=$ac_cv_prog_ac_ct_AR 7334if test -n "$ac_ct_AR"; then 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7336printf "%s\n" "$ac_ct_AR" >&6; } 7337else 7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7339printf "%s\n" "no" >&6; } 7340fi 7341 7342 7343 test -n "$ac_ct_AR" && break 7344done 7345 7346 if test "x$ac_ct_AR" = x; then 7347 AR="false" 7348 else 7349 case $cross_compiling:$ac_tool_warned in 7350yes:) 7351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7352printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7353ac_tool_warned=yes ;; 7354esac 7355 AR=$ac_ct_AR 7356 fi 7357fi 7358 7359: ${AR=ar} 7360: ${AR_FLAGS=cru} 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7373printf %s "checking for archiver @FILE support... " >&6; } 7374if test ${lt_cv_ar_at_file+y} 7375then : 7376 printf %s "(cached) " >&6 7377else $as_nop 7378 lt_cv_ar_at_file=no 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381 7382int 7383main (void) 7384{ 7385 7386 ; 7387 return 0; 7388} 7389_ACEOF 7390if ac_fn_c_try_compile "$LINENO" 7391then : 7392 echo conftest.$ac_objext > conftest.lst 7393 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7395 (eval $lt_ar_try) 2>&5 7396 ac_status=$? 7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7398 test $ac_status = 0; } 7399 if test 0 -eq "$ac_status"; then 7400 # Ensure the archiver fails upon bogus file names. 7401 rm -f conftest.$ac_objext libconftest.a 7402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7403 (eval $lt_ar_try) 2>&5 7404 ac_status=$? 7405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406 test $ac_status = 0; } 7407 if test 0 -ne "$ac_status"; then 7408 lt_cv_ar_at_file=@ 7409 fi 7410 fi 7411 rm -f conftest.* libconftest.a 7412 7413fi 7414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7415 7416fi 7417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7418printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7419 7420if test no = "$lt_cv_ar_at_file"; then 7421 archiver_list_spec= 7422else 7423 archiver_list_spec=$lt_cv_ar_at_file 7424fi 7425 7426 7427 7428 7429 7430 7431 7432if test -n "$ac_tool_prefix"; then 7433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7434set dummy ${ac_tool_prefix}strip; ac_word=$2 7435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7436printf %s "checking for $ac_word... " >&6; } 7437if test ${ac_cv_prog_STRIP+y} 7438then : 7439 printf %s "(cached) " >&6 7440else $as_nop 7441 if test -n "$STRIP"; then 7442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7443else 7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445for as_dir in $PATH 7446do 7447 IFS=$as_save_IFS 7448 case $as_dir in #((( 7449 '') as_dir=./ ;; 7450 */) ;; 7451 *) as_dir=$as_dir/ ;; 7452 esac 7453 for ac_exec_ext in '' $ac_executable_extensions; do 7454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7457 break 2 7458 fi 7459done 7460 done 7461IFS=$as_save_IFS 7462 7463fi 7464fi 7465STRIP=$ac_cv_prog_STRIP 7466if test -n "$STRIP"; then 7467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7468printf "%s\n" "$STRIP" >&6; } 7469else 7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7471printf "%s\n" "no" >&6; } 7472fi 7473 7474 7475fi 7476if test -z "$ac_cv_prog_STRIP"; then 7477 ac_ct_STRIP=$STRIP 7478 # Extract the first word of "strip", so it can be a program name with args. 7479set dummy strip; ac_word=$2 7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481printf %s "checking for $ac_word... " >&6; } 7482if test ${ac_cv_prog_ac_ct_STRIP+y} 7483then : 7484 printf %s "(cached) " >&6 7485else $as_nop 7486 if test -n "$ac_ct_STRIP"; then 7487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7488else 7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490for as_dir in $PATH 7491do 7492 IFS=$as_save_IFS 7493 case $as_dir in #((( 7494 '') as_dir=./ ;; 7495 */) ;; 7496 *) as_dir=$as_dir/ ;; 7497 esac 7498 for ac_exec_ext in '' $ac_executable_extensions; do 7499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7500 ac_cv_prog_ac_ct_STRIP="strip" 7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7502 break 2 7503 fi 7504done 7505 done 7506IFS=$as_save_IFS 7507 7508fi 7509fi 7510ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7511if test -n "$ac_ct_STRIP"; then 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7513printf "%s\n" "$ac_ct_STRIP" >&6; } 7514else 7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7516printf "%s\n" "no" >&6; } 7517fi 7518 7519 if test "x$ac_ct_STRIP" = x; then 7520 STRIP=":" 7521 else 7522 case $cross_compiling:$ac_tool_warned in 7523yes:) 7524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7525printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7526ac_tool_warned=yes ;; 7527esac 7528 STRIP=$ac_ct_STRIP 7529 fi 7530else 7531 STRIP="$ac_cv_prog_STRIP" 7532fi 7533 7534test -z "$STRIP" && STRIP=: 7535 7536 7537 7538 7539 7540 7541if test -n "$ac_tool_prefix"; then 7542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7543set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7545printf %s "checking for $ac_word... " >&6; } 7546if test ${ac_cv_prog_RANLIB+y} 7547then : 7548 printf %s "(cached) " >&6 7549else $as_nop 7550 if test -n "$RANLIB"; then 7551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7552else 7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7554for as_dir in $PATH 7555do 7556 IFS=$as_save_IFS 7557 case $as_dir in #((( 7558 '') as_dir=./ ;; 7559 */) ;; 7560 *) as_dir=$as_dir/ ;; 7561 esac 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574RANLIB=$ac_cv_prog_RANLIB 7575if test -n "$RANLIB"; then 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7577printf "%s\n" "$RANLIB" >&6; } 7578else 7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580printf "%s\n" "no" >&6; } 7581fi 7582 7583 7584fi 7585if test -z "$ac_cv_prog_RANLIB"; then 7586 ac_ct_RANLIB=$RANLIB 7587 # Extract the first word of "ranlib", so it can be a program name with args. 7588set dummy ranlib; ac_word=$2 7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7590printf %s "checking for $ac_word... " >&6; } 7591if test ${ac_cv_prog_ac_ct_RANLIB+y} 7592then : 7593 printf %s "(cached) " >&6 7594else $as_nop 7595 if test -n "$ac_ct_RANLIB"; then 7596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7597else 7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7599for as_dir in $PATH 7600do 7601 IFS=$as_save_IFS 7602 case $as_dir in #((( 7603 '') as_dir=./ ;; 7604 */) ;; 7605 *) as_dir=$as_dir/ ;; 7606 esac 7607 for ac_exec_ext in '' $ac_executable_extensions; do 7608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7609 ac_cv_prog_ac_ct_RANLIB="ranlib" 7610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7611 break 2 7612 fi 7613done 7614 done 7615IFS=$as_save_IFS 7616 7617fi 7618fi 7619ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7620if test -n "$ac_ct_RANLIB"; then 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7622printf "%s\n" "$ac_ct_RANLIB" >&6; } 7623else 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625printf "%s\n" "no" >&6; } 7626fi 7627 7628 if test "x$ac_ct_RANLIB" = x; then 7629 RANLIB=":" 7630 else 7631 case $cross_compiling:$ac_tool_warned in 7632yes:) 7633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7634printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7635ac_tool_warned=yes ;; 7636esac 7637 RANLIB=$ac_ct_RANLIB 7638 fi 7639else 7640 RANLIB="$ac_cv_prog_RANLIB" 7641fi 7642 7643test -z "$RANLIB" && RANLIB=: 7644 7645 7646 7647 7648 7649 7650# Determine commands to create old-style static archives. 7651old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7652old_postinstall_cmds='chmod 644 $oldlib' 7653old_postuninstall_cmds= 7654 7655if test -n "$RANLIB"; then 7656 case $host_os in 7657 bitrig* | openbsd*) 7658 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7659 ;; 7660 *) 7661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7662 ;; 7663 esac 7664 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7665fi 7666 7667case $host_os in 7668 darwin*) 7669 lock_old_archive_extraction=yes ;; 7670 *) 7671 lock_old_archive_extraction=no ;; 7672esac 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712# If no C compiler was specified, use CC. 7713LTCC=${LTCC-"$CC"} 7714 7715# If no C compiler flags were specified, use CFLAGS. 7716LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7717 7718# Allow CC to be a program name with arguments. 7719compiler=$CC 7720 7721 7722# Check for command to grab the raw symbol name followed by C symbol from nm. 7723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7724printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7725if test ${lt_cv_sys_global_symbol_pipe+y} 7726then : 7727 printf %s "(cached) " >&6 7728else $as_nop 7729 7730# These are sane defaults that work on at least a few old systems. 7731# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7732 7733# Character class describing NM global symbol codes. 7734symcode='[BCDEGRST]' 7735 7736# Regexp to match symbols that can be accessed directly from C. 7737sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7738 7739# Define system-specific variables. 7740case $host_os in 7741aix*) 7742 symcode='[BCDT]' 7743 ;; 7744cygwin* | mingw* | pw32* | cegcc*) 7745 symcode='[ABCDGISTW]' 7746 ;; 7747hpux*) 7748 if test ia64 = "$host_cpu"; then 7749 symcode='[ABCDEGRST]' 7750 fi 7751 ;; 7752irix* | nonstopux*) 7753 symcode='[BCDEGRST]' 7754 ;; 7755osf*) 7756 symcode='[BCDEGQRST]' 7757 ;; 7758solaris*) 7759 symcode='[BDRT]' 7760 ;; 7761sco3.2v5*) 7762 symcode='[DT]' 7763 ;; 7764sysv4.2uw2*) 7765 symcode='[DT]' 7766 ;; 7767sysv5* | sco5v6* | unixware* | OpenUNIX*) 7768 symcode='[ABDT]' 7769 ;; 7770sysv4) 7771 symcode='[DFNSTU]' 7772 ;; 7773esac 7774 7775# If we're using GNU nm, then use its standard symbol codes. 7776case `$NM -V 2>&1` in 7777*GNU* | *'with BFD'*) 7778 symcode='[ABCDGIRSTW]' ;; 7779esac 7780 7781if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7782 # Gets list of data symbols to import. 7783 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7784 # Adjust the below global symbol transforms to fixup imported variables. 7785 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7786 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7787 lt_c_name_lib_hook="\ 7788 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7789 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7790else 7791 # Disable hooks by default. 7792 lt_cv_sys_global_symbol_to_import= 7793 lt_cdecl_hook= 7794 lt_c_name_hook= 7795 lt_c_name_lib_hook= 7796fi 7797 7798# Transform an extracted symbol line into a proper C declaration. 7799# Some systems (esp. on ia64) link data and code symbols differently, 7800# so use this general approach. 7801lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7802$lt_cdecl_hook\ 7803" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7804" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7805 7806# Transform an extracted symbol line into symbol name and symbol address 7807lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7808$lt_c_name_hook\ 7809" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7810" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7811 7812# Transform an extracted symbol line into symbol name with lib prefix and 7813# symbol address. 7814lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7815$lt_c_name_lib_hook\ 7816" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7817" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7818" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7819 7820# Handle CRLF in mingw tool chain 7821opt_cr= 7822case $build_os in 7823mingw*) 7824 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7825 ;; 7826esac 7827 7828# Try without a prefix underscore, then with it. 7829for ac_symprfx in "" "_"; do 7830 7831 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7832 symxfrm="\\1 $ac_symprfx\\2 \\2" 7833 7834 # Write the raw and C identifiers. 7835 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7836 # Fake it for dumpbin and say T for any non-static function, 7837 # D for any global variable and I for any imported variable. 7838 # Also find C++ and __fastcall symbols from MSVC++, 7839 # which start with @ or ?. 7840 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7841" {last_section=section; section=\$ 3};"\ 7842" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7843" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7844" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7845" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7846" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7847" \$ 0!~/External *\|/{next};"\ 7848" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7849" {if(hide[section]) next};"\ 7850" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7851" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7852" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7853" s[1]~prfx {split(s[1],t,\"@\"); print f,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 printf "%s\n" "$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 printf "%s\n" "$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 can'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* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$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 printf "%s\n" "$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 yes = "$pipe_works"; 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7992printf "%s\n" "failed" >&6; } 7993else 7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7995printf "%s\n" "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 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8042printf %s "checking for sysroot... " >&6; } 8043 8044# Check whether --with-sysroot was given. 8045if test ${with_sysroot+y} 8046then : 8047 withval=$with_sysroot; 8048else $as_nop 8049 with_sysroot=no 8050fi 8051 8052 8053lt_sysroot= 8054case $with_sysroot in #( 8055 yes) 8056 if test yes = "$GCC"; then 8057 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8058 fi 8059 ;; #( 8060 /*) 8061 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8062 ;; #( 8063 no|'') 8064 ;; #( 8065 *) 8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8067printf "%s\n" "$with_sysroot" >&6; } 8068 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8069 ;; 8070esac 8071 8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8073printf "%s\n" "${lt_sysroot:-no}" >&6; } 8074 8075 8076 8077 8078 8079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8080printf %s "checking for a working dd... " >&6; } 8081if test ${ac_cv_path_lt_DD+y} 8082then : 8083 printf %s "(cached) " >&6 8084else $as_nop 8085 printf 0123456789abcdef0123456789abcdef >conftest.i 8086cat conftest.i conftest.i >conftest2.i 8087: ${lt_DD:=$DD} 8088if test -z "$lt_DD"; then 8089 ac_path_lt_DD_found=false 8090 # Loop through the user's path and test for each of PROGNAME-LIST 8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092for as_dir in $PATH 8093do 8094 IFS=$as_save_IFS 8095 case $as_dir in #((( 8096 '') as_dir=./ ;; 8097 */) ;; 8098 *) as_dir=$as_dir/ ;; 8099 esac 8100 for ac_prog in dd 8101 do 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8104 as_fn_executable_p "$ac_path_lt_DD" || continue 8105if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8106 cmp -s conftest.i conftest.out \ 8107 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8108fi 8109 $ac_path_lt_DD_found && break 3 8110 done 8111 done 8112 done 8113IFS=$as_save_IFS 8114 if test -z "$ac_cv_path_lt_DD"; then 8115 : 8116 fi 8117else 8118 ac_cv_path_lt_DD=$lt_DD 8119fi 8120 8121rm -f conftest.i conftest2.i conftest.out 8122fi 8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8124printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8125 8126 8127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8128printf %s "checking how to truncate binary pipes... " >&6; } 8129if test ${lt_cv_truncate_bin+y} 8130then : 8131 printf %s "(cached) " >&6 8132else $as_nop 8133 printf 0123456789abcdef0123456789abcdef >conftest.i 8134cat conftest.i conftest.i >conftest2.i 8135lt_cv_truncate_bin= 8136if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8137 cmp -s conftest.i conftest.out \ 8138 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8139fi 8140rm -f conftest.i conftest2.i conftest.out 8141test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8142fi 8143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8144printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8145 8146 8147 8148 8149 8150 8151 8152# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8153func_cc_basename () 8154{ 8155 for cc_temp in $*""; do 8156 case $cc_temp in 8157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8159 \-*) ;; 8160 *) break;; 8161 esac 8162 done 8163 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8164} 8165 8166# Check whether --enable-libtool-lock was given. 8167if test ${enable_libtool_lock+y} 8168then : 8169 enableval=$enable_libtool_lock; 8170fi 8171 8172test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8173 8174# Some flags need to be propagated to the compiler or linker for good 8175# libtool support. 8176case $host in 8177ia64-*-hpux*) 8178 # Find out what ABI is being produced by ac_compile, and set mode 8179 # options accordingly. 8180 echo 'int i;' > conftest.$ac_ext 8181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8182 (eval $ac_compile) 2>&5 8183 ac_status=$? 8184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8185 test $ac_status = 0; }; then 8186 case `/usr/bin/file conftest.$ac_objext` in 8187 *ELF-32*) 8188 HPUX_IA64_MODE=32 8189 ;; 8190 *ELF-64*) 8191 HPUX_IA64_MODE=64 8192 ;; 8193 esac 8194 fi 8195 rm -rf conftest* 8196 ;; 8197*-*-irix6*) 8198 # Find out what ABI is being produced by ac_compile, and set linker 8199 # options accordingly. 8200 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8202 (eval $ac_compile) 2>&5 8203 ac_status=$? 8204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8205 test $ac_status = 0; }; then 8206 if test yes = "$lt_cv_prog_gnu_ld"; then 8207 case `/usr/bin/file conftest.$ac_objext` in 8208 *32-bit*) 8209 LD="${LD-ld} -melf32bsmip" 8210 ;; 8211 *N32*) 8212 LD="${LD-ld} -melf32bmipn32" 8213 ;; 8214 *64-bit*) 8215 LD="${LD-ld} -melf64bmip" 8216 ;; 8217 esac 8218 else 8219 case `/usr/bin/file conftest.$ac_objext` in 8220 *32-bit*) 8221 LD="${LD-ld} -32" 8222 ;; 8223 *N32*) 8224 LD="${LD-ld} -n32" 8225 ;; 8226 *64-bit*) 8227 LD="${LD-ld} -64" 8228 ;; 8229 esac 8230 fi 8231 fi 8232 rm -rf conftest* 8233 ;; 8234 8235mips64*-*linux*) 8236 # Find out what ABI is being produced by ac_compile, and set linker 8237 # options accordingly. 8238 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8240 (eval $ac_compile) 2>&5 8241 ac_status=$? 8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8243 test $ac_status = 0; }; then 8244 emul=elf 8245 case `/usr/bin/file conftest.$ac_objext` in 8246 *32-bit*) 8247 emul="${emul}32" 8248 ;; 8249 *64-bit*) 8250 emul="${emul}64" 8251 ;; 8252 esac 8253 case `/usr/bin/file conftest.$ac_objext` in 8254 *MSB*) 8255 emul="${emul}btsmip" 8256 ;; 8257 *LSB*) 8258 emul="${emul}ltsmip" 8259 ;; 8260 esac 8261 case `/usr/bin/file conftest.$ac_objext` in 8262 *N32*) 8263 emul="${emul}n32" 8264 ;; 8265 esac 8266 LD="${LD-ld} -m $emul" 8267 fi 8268 rm -rf conftest* 8269 ;; 8270 8271x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8272s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8273 # Find out what ABI is being produced by ac_compile, and set linker 8274 # options accordingly. Note that the listed cases only cover the 8275 # situations where additional linker options are needed (such as when 8276 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8277 # vice versa); the common cases where no linker options are needed do 8278 # not appear in the list. 8279 echo 'int i;' > conftest.$ac_ext 8280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8281 (eval $ac_compile) 2>&5 8282 ac_status=$? 8283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8284 test $ac_status = 0; }; then 8285 case `/usr/bin/file conftest.o` in 8286 *32-bit*) 8287 case $host in 8288 x86_64-*kfreebsd*-gnu) 8289 LD="${LD-ld} -m elf_i386_fbsd" 8290 ;; 8291 x86_64-*linux*) 8292 case `/usr/bin/file conftest.o` in 8293 *x86-64*) 8294 LD="${LD-ld} -m elf32_x86_64" 8295 ;; 8296 *) 8297 LD="${LD-ld} -m elf_i386" 8298 ;; 8299 esac 8300 ;; 8301 powerpc64le-*linux*) 8302 LD="${LD-ld} -m elf32lppclinux" 8303 ;; 8304 powerpc64-*linux*) 8305 LD="${LD-ld} -m elf32ppclinux" 8306 ;; 8307 s390x-*linux*) 8308 LD="${LD-ld} -m elf_s390" 8309 ;; 8310 sparc64-*linux*) 8311 LD="${LD-ld} -m elf32_sparc" 8312 ;; 8313 esac 8314 ;; 8315 *64-bit*) 8316 case $host in 8317 x86_64-*kfreebsd*-gnu) 8318 LD="${LD-ld} -m elf_x86_64_fbsd" 8319 ;; 8320 x86_64-*linux*) 8321 LD="${LD-ld} -m elf_x86_64" 8322 ;; 8323 powerpcle-*linux*) 8324 LD="${LD-ld} -m elf64lppc" 8325 ;; 8326 powerpc-*linux*) 8327 LD="${LD-ld} -m elf64ppc" 8328 ;; 8329 s390*-*linux*|s390*-*tpf*) 8330 LD="${LD-ld} -m elf64_s390" 8331 ;; 8332 sparc*-*linux*) 8333 LD="${LD-ld} -m elf64_sparc" 8334 ;; 8335 esac 8336 ;; 8337 esac 8338 fi 8339 rm -rf conftest* 8340 ;; 8341 8342*-*-sco3.2v5*) 8343 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8344 SAVE_CFLAGS=$CFLAGS 8345 CFLAGS="$CFLAGS -belf" 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8347printf %s "checking whether the C compiler needs -belf... " >&6; } 8348if test ${lt_cv_cc_needs_belf+y} 8349then : 8350 printf %s "(cached) " >&6 8351else $as_nop 8352 ac_ext=c 8353ac_cpp='$CPP $CPPFLAGS' 8354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8356ac_compiler_gnu=$ac_cv_c_compiler_gnu 8357 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359/* end confdefs.h. */ 8360 8361int 8362main (void) 8363{ 8364 8365 ; 8366 return 0; 8367} 8368_ACEOF 8369if ac_fn_c_try_link "$LINENO" 8370then : 8371 lt_cv_cc_needs_belf=yes 8372else $as_nop 8373 lt_cv_cc_needs_belf=no 8374fi 8375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8376 conftest$ac_exeext conftest.$ac_ext 8377 ac_ext=c 8378ac_cpp='$CPP $CPPFLAGS' 8379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8381ac_compiler_gnu=$ac_cv_c_compiler_gnu 8382 8383fi 8384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8385printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8386 if test yes != "$lt_cv_cc_needs_belf"; then 8387 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8388 CFLAGS=$SAVE_CFLAGS 8389 fi 8390 ;; 8391*-*solaris*) 8392 # Find out what ABI is being produced by ac_compile, and set linker 8393 # options accordingly. 8394 echo 'int i;' > conftest.$ac_ext 8395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8396 (eval $ac_compile) 2>&5 8397 ac_status=$? 8398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8399 test $ac_status = 0; }; then 8400 case `/usr/bin/file conftest.o` in 8401 *64-bit*) 8402 case $lt_cv_prog_gnu_ld in 8403 yes*) 8404 case $host in 8405 i?86-*-solaris*|x86_64-*-solaris*) 8406 LD="${LD-ld} -m elf_x86_64" 8407 ;; 8408 sparc*-*-solaris*) 8409 LD="${LD-ld} -m elf64_sparc" 8410 ;; 8411 esac 8412 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8413 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8414 LD=${LD-ld}_sol2 8415 fi 8416 ;; 8417 *) 8418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8419 LD="${LD-ld} -64" 8420 fi 8421 ;; 8422 esac 8423 ;; 8424 esac 8425 fi 8426 rm -rf conftest* 8427 ;; 8428esac 8429 8430need_locks=$enable_libtool_lock 8431 8432if test -n "$ac_tool_prefix"; then 8433 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8434set dummy ${ac_tool_prefix}mt; ac_word=$2 8435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8436printf %s "checking for $ac_word... " >&6; } 8437if test ${ac_cv_prog_MANIFEST_TOOL+y} 8438then : 8439 printf %s "(cached) " >&6 8440else $as_nop 8441 if test -n "$MANIFEST_TOOL"; then 8442 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8443else 8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8445for as_dir in $PATH 8446do 8447 IFS=$as_save_IFS 8448 case $as_dir in #((( 8449 '') as_dir=./ ;; 8450 */) ;; 8451 *) as_dir=$as_dir/ ;; 8452 esac 8453 for ac_exec_ext in '' $ac_executable_extensions; do 8454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8455 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8457 break 2 8458 fi 8459done 8460 done 8461IFS=$as_save_IFS 8462 8463fi 8464fi 8465MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8466if test -n "$MANIFEST_TOOL"; then 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8468printf "%s\n" "$MANIFEST_TOOL" >&6; } 8469else 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8471printf "%s\n" "no" >&6; } 8472fi 8473 8474 8475fi 8476if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8477 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8478 # Extract the first word of "mt", so it can be a program name with args. 8479set dummy mt; ac_word=$2 8480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8481printf %s "checking for $ac_word... " >&6; } 8482if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8483then : 8484 printf %s "(cached) " >&6 8485else $as_nop 8486 if test -n "$ac_ct_MANIFEST_TOOL"; then 8487 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8488else 8489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8490for as_dir in $PATH 8491do 8492 IFS=$as_save_IFS 8493 case $as_dir in #((( 8494 '') as_dir=./ ;; 8495 */) ;; 8496 *) as_dir=$as_dir/ ;; 8497 esac 8498 for ac_exec_ext in '' $ac_executable_extensions; do 8499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8500 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8502 break 2 8503 fi 8504done 8505 done 8506IFS=$as_save_IFS 8507 8508fi 8509fi 8510ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8511if test -n "$ac_ct_MANIFEST_TOOL"; then 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8513printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8514else 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8516printf "%s\n" "no" >&6; } 8517fi 8518 8519 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8520 MANIFEST_TOOL=":" 8521 else 8522 case $cross_compiling:$ac_tool_warned in 8523yes:) 8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8525printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8526ac_tool_warned=yes ;; 8527esac 8528 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8529 fi 8530else 8531 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8532fi 8533 8534test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8536printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8537if test ${lt_cv_path_mainfest_tool+y} 8538then : 8539 printf %s "(cached) " >&6 8540else $as_nop 8541 lt_cv_path_mainfest_tool=no 8542 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8543 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8544 cat conftest.err >&5 8545 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8546 lt_cv_path_mainfest_tool=yes 8547 fi 8548 rm -f conftest* 8549fi 8550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8551printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8552if test yes != "$lt_cv_path_mainfest_tool"; then 8553 MANIFEST_TOOL=: 8554fi 8555 8556 8557 8558 8559 8560 8561 case $host_os in 8562 rhapsody* | darwin*) 8563 if test -n "$ac_tool_prefix"; then 8564 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8565set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8567printf %s "checking for $ac_word... " >&6; } 8568if test ${ac_cv_prog_DSYMUTIL+y} 8569then : 8570 printf %s "(cached) " >&6 8571else $as_nop 8572 if test -n "$DSYMUTIL"; then 8573 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8574else 8575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8576for as_dir in $PATH 8577do 8578 IFS=$as_save_IFS 8579 case $as_dir in #((( 8580 '') as_dir=./ ;; 8581 */) ;; 8582 *) as_dir=$as_dir/ ;; 8583 esac 8584 for ac_exec_ext in '' $ac_executable_extensions; do 8585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8586 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8588 break 2 8589 fi 8590done 8591 done 8592IFS=$as_save_IFS 8593 8594fi 8595fi 8596DSYMUTIL=$ac_cv_prog_DSYMUTIL 8597if test -n "$DSYMUTIL"; then 8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8599printf "%s\n" "$DSYMUTIL" >&6; } 8600else 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8602printf "%s\n" "no" >&6; } 8603fi 8604 8605 8606fi 8607if test -z "$ac_cv_prog_DSYMUTIL"; then 8608 ac_ct_DSYMUTIL=$DSYMUTIL 8609 # Extract the first word of "dsymutil", so it can be a program name with args. 8610set dummy dsymutil; ac_word=$2 8611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8612printf %s "checking for $ac_word... " >&6; } 8613if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8614then : 8615 printf %s "(cached) " >&6 8616else $as_nop 8617 if test -n "$ac_ct_DSYMUTIL"; then 8618 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8619else 8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8621for as_dir in $PATH 8622do 8623 IFS=$as_save_IFS 8624 case $as_dir in #((( 8625 '') as_dir=./ ;; 8626 */) ;; 8627 *) as_dir=$as_dir/ ;; 8628 esac 8629 for ac_exec_ext in '' $ac_executable_extensions; do 8630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8631 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8633 break 2 8634 fi 8635done 8636 done 8637IFS=$as_save_IFS 8638 8639fi 8640fi 8641ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8642if test -n "$ac_ct_DSYMUTIL"; then 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8644printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8645else 8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8647printf "%s\n" "no" >&6; } 8648fi 8649 8650 if test "x$ac_ct_DSYMUTIL" = x; then 8651 DSYMUTIL=":" 8652 else 8653 case $cross_compiling:$ac_tool_warned in 8654yes:) 8655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8656printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8657ac_tool_warned=yes ;; 8658esac 8659 DSYMUTIL=$ac_ct_DSYMUTIL 8660 fi 8661else 8662 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8663fi 8664 8665 if test -n "$ac_tool_prefix"; then 8666 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8667set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8669printf %s "checking for $ac_word... " >&6; } 8670if test ${ac_cv_prog_NMEDIT+y} 8671then : 8672 printf %s "(cached) " >&6 8673else $as_nop 8674 if test -n "$NMEDIT"; then 8675 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8676else 8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8678for as_dir in $PATH 8679do 8680 IFS=$as_save_IFS 8681 case $as_dir in #((( 8682 '') as_dir=./ ;; 8683 */) ;; 8684 *) as_dir=$as_dir/ ;; 8685 esac 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_NMEDIT="${ac_tool_prefix}nmedit" 8689 printf "%s\n" "$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 8698NMEDIT=$ac_cv_prog_NMEDIT 8699if test -n "$NMEDIT"; then 8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8701printf "%s\n" "$NMEDIT" >&6; } 8702else 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8704printf "%s\n" "no" >&6; } 8705fi 8706 8707 8708fi 8709if test -z "$ac_cv_prog_NMEDIT"; then 8710 ac_ct_NMEDIT=$NMEDIT 8711 # Extract the first word of "nmedit", so it can be a program name with args. 8712set dummy nmedit; ac_word=$2 8713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8714printf %s "checking for $ac_word... " >&6; } 8715if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8716then : 8717 printf %s "(cached) " >&6 8718else $as_nop 8719 if test -n "$ac_ct_NMEDIT"; then 8720 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8721else 8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8723for as_dir in $PATH 8724do 8725 IFS=$as_save_IFS 8726 case $as_dir in #((( 8727 '') as_dir=./ ;; 8728 */) ;; 8729 *) as_dir=$as_dir/ ;; 8730 esac 8731 for ac_exec_ext in '' $ac_executable_extensions; do 8732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8733 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8735 break 2 8736 fi 8737done 8738 done 8739IFS=$as_save_IFS 8740 8741fi 8742fi 8743ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8744if test -n "$ac_ct_NMEDIT"; then 8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8746printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8747else 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8749printf "%s\n" "no" >&6; } 8750fi 8751 8752 if test "x$ac_ct_NMEDIT" = x; then 8753 NMEDIT=":" 8754 else 8755 case $cross_compiling:$ac_tool_warned in 8756yes:) 8757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8758printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8759ac_tool_warned=yes ;; 8760esac 8761 NMEDIT=$ac_ct_NMEDIT 8762 fi 8763else 8764 NMEDIT="$ac_cv_prog_NMEDIT" 8765fi 8766 8767 if test -n "$ac_tool_prefix"; then 8768 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8769set dummy ${ac_tool_prefix}lipo; ac_word=$2 8770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8771printf %s "checking for $ac_word... " >&6; } 8772if test ${ac_cv_prog_LIPO+y} 8773then : 8774 printf %s "(cached) " >&6 8775else $as_nop 8776 if test -n "$LIPO"; then 8777 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8778else 8779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8780for as_dir in $PATH 8781do 8782 IFS=$as_save_IFS 8783 case $as_dir in #((( 8784 '') as_dir=./ ;; 8785 */) ;; 8786 *) as_dir=$as_dir/ ;; 8787 esac 8788 for ac_exec_ext in '' $ac_executable_extensions; do 8789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8790 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8792 break 2 8793 fi 8794done 8795 done 8796IFS=$as_save_IFS 8797 8798fi 8799fi 8800LIPO=$ac_cv_prog_LIPO 8801if test -n "$LIPO"; then 8802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8803printf "%s\n" "$LIPO" >&6; } 8804else 8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8806printf "%s\n" "no" >&6; } 8807fi 8808 8809 8810fi 8811if test -z "$ac_cv_prog_LIPO"; then 8812 ac_ct_LIPO=$LIPO 8813 # Extract the first word of "lipo", so it can be a program name with args. 8814set dummy lipo; ac_word=$2 8815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8816printf %s "checking for $ac_word... " >&6; } 8817if test ${ac_cv_prog_ac_ct_LIPO+y} 8818then : 8819 printf %s "(cached) " >&6 8820else $as_nop 8821 if test -n "$ac_ct_LIPO"; then 8822 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8823else 8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8825for as_dir in $PATH 8826do 8827 IFS=$as_save_IFS 8828 case $as_dir in #((( 8829 '') as_dir=./ ;; 8830 */) ;; 8831 *) as_dir=$as_dir/ ;; 8832 esac 8833 for ac_exec_ext in '' $ac_executable_extensions; do 8834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8835 ac_cv_prog_ac_ct_LIPO="lipo" 8836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8837 break 2 8838 fi 8839done 8840 done 8841IFS=$as_save_IFS 8842 8843fi 8844fi 8845ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8846if test -n "$ac_ct_LIPO"; then 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8848printf "%s\n" "$ac_ct_LIPO" >&6; } 8849else 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851printf "%s\n" "no" >&6; } 8852fi 8853 8854 if test "x$ac_ct_LIPO" = x; then 8855 LIPO=":" 8856 else 8857 case $cross_compiling:$ac_tool_warned in 8858yes:) 8859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8860printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8861ac_tool_warned=yes ;; 8862esac 8863 LIPO=$ac_ct_LIPO 8864 fi 8865else 8866 LIPO="$ac_cv_prog_LIPO" 8867fi 8868 8869 if test -n "$ac_tool_prefix"; then 8870 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8871set dummy ${ac_tool_prefix}otool; ac_word=$2 8872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8873printf %s "checking for $ac_word... " >&6; } 8874if test ${ac_cv_prog_OTOOL+y} 8875then : 8876 printf %s "(cached) " >&6 8877else $as_nop 8878 if test -n "$OTOOL"; then 8879 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8880else 8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8882for as_dir in $PATH 8883do 8884 IFS=$as_save_IFS 8885 case $as_dir in #((( 8886 '') as_dir=./ ;; 8887 */) ;; 8888 *) as_dir=$as_dir/ ;; 8889 esac 8890 for ac_exec_ext in '' $ac_executable_extensions; do 8891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8892 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8894 break 2 8895 fi 8896done 8897 done 8898IFS=$as_save_IFS 8899 8900fi 8901fi 8902OTOOL=$ac_cv_prog_OTOOL 8903if test -n "$OTOOL"; then 8904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8905printf "%s\n" "$OTOOL" >&6; } 8906else 8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8908printf "%s\n" "no" >&6; } 8909fi 8910 8911 8912fi 8913if test -z "$ac_cv_prog_OTOOL"; then 8914 ac_ct_OTOOL=$OTOOL 8915 # Extract the first word of "otool", so it can be a program name with args. 8916set dummy otool; ac_word=$2 8917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8918printf %s "checking for $ac_word... " >&6; } 8919if test ${ac_cv_prog_ac_ct_OTOOL+y} 8920then : 8921 printf %s "(cached) " >&6 8922else $as_nop 8923 if test -n "$ac_ct_OTOOL"; then 8924 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8925else 8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8927for as_dir in $PATH 8928do 8929 IFS=$as_save_IFS 8930 case $as_dir in #((( 8931 '') as_dir=./ ;; 8932 */) ;; 8933 *) as_dir=$as_dir/ ;; 8934 esac 8935 for ac_exec_ext in '' $ac_executable_extensions; do 8936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8937 ac_cv_prog_ac_ct_OTOOL="otool" 8938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8939 break 2 8940 fi 8941done 8942 done 8943IFS=$as_save_IFS 8944 8945fi 8946fi 8947ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8948if test -n "$ac_ct_OTOOL"; then 8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8950printf "%s\n" "$ac_ct_OTOOL" >&6; } 8951else 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8953printf "%s\n" "no" >&6; } 8954fi 8955 8956 if test "x$ac_ct_OTOOL" = x; then 8957 OTOOL=":" 8958 else 8959 case $cross_compiling:$ac_tool_warned in 8960yes:) 8961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8962printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8963ac_tool_warned=yes ;; 8964esac 8965 OTOOL=$ac_ct_OTOOL 8966 fi 8967else 8968 OTOOL="$ac_cv_prog_OTOOL" 8969fi 8970 8971 if test -n "$ac_tool_prefix"; then 8972 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8973set dummy ${ac_tool_prefix}otool64; ac_word=$2 8974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8975printf %s "checking for $ac_word... " >&6; } 8976if test ${ac_cv_prog_OTOOL64+y} 8977then : 8978 printf %s "(cached) " >&6 8979else $as_nop 8980 if test -n "$OTOOL64"; then 8981 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8982else 8983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8984for as_dir in $PATH 8985do 8986 IFS=$as_save_IFS 8987 case $as_dir in #((( 8988 '') as_dir=./ ;; 8989 */) ;; 8990 *) as_dir=$as_dir/ ;; 8991 esac 8992 for ac_exec_ext in '' $ac_executable_extensions; do 8993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8994 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8996 break 2 8997 fi 8998done 8999 done 9000IFS=$as_save_IFS 9001 9002fi 9003fi 9004OTOOL64=$ac_cv_prog_OTOOL64 9005if test -n "$OTOOL64"; then 9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9007printf "%s\n" "$OTOOL64" >&6; } 9008else 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9010printf "%s\n" "no" >&6; } 9011fi 9012 9013 9014fi 9015if test -z "$ac_cv_prog_OTOOL64"; then 9016 ac_ct_OTOOL64=$OTOOL64 9017 # Extract the first word of "otool64", so it can be a program name with args. 9018set dummy otool64; ac_word=$2 9019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9020printf %s "checking for $ac_word... " >&6; } 9021if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9022then : 9023 printf %s "(cached) " >&6 9024else $as_nop 9025 if test -n "$ac_ct_OTOOL64"; then 9026 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9027else 9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9029for as_dir in $PATH 9030do 9031 IFS=$as_save_IFS 9032 case $as_dir in #((( 9033 '') as_dir=./ ;; 9034 */) ;; 9035 *) as_dir=$as_dir/ ;; 9036 esac 9037 for ac_exec_ext in '' $ac_executable_extensions; do 9038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9039 ac_cv_prog_ac_ct_OTOOL64="otool64" 9040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9041 break 2 9042 fi 9043done 9044 done 9045IFS=$as_save_IFS 9046 9047fi 9048fi 9049ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9050if test -n "$ac_ct_OTOOL64"; then 9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9052printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9053else 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9055printf "%s\n" "no" >&6; } 9056fi 9057 9058 if test "x$ac_ct_OTOOL64" = x; then 9059 OTOOL64=":" 9060 else 9061 case $cross_compiling:$ac_tool_warned in 9062yes:) 9063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9064printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9065ac_tool_warned=yes ;; 9066esac 9067 OTOOL64=$ac_ct_OTOOL64 9068 fi 9069else 9070 OTOOL64="$ac_cv_prog_OTOOL64" 9071fi 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9100printf %s "checking for -single_module linker flag... " >&6; } 9101if test ${lt_cv_apple_cc_single_mod+y} 9102then : 9103 printf %s "(cached) " >&6 9104else $as_nop 9105 lt_cv_apple_cc_single_mod=no 9106 if test -z "$LT_MULTI_MODULE"; then 9107 # By default we will add the -single_module flag. You can override 9108 # by either setting the environment variable LT_MULTI_MODULE 9109 # non-empty at configure time, or by adding -multi_module to the 9110 # link flags. 9111 rm -rf libconftest.dylib* 9112 echo "int foo(void){return 1;}" > conftest.c 9113 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9114-dynamiclib -Wl,-single_module conftest.c" >&5 9115 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9116 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9117 _lt_result=$? 9118 # If there is a non-empty error log, and "single_module" 9119 # appears in it, assume the flag caused a linker warning 9120 if test -s conftest.err && $GREP single_module conftest.err; then 9121 cat conftest.err >&5 9122 # Otherwise, if the output was created with a 0 exit code from 9123 # the compiler, it worked. 9124 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9125 lt_cv_apple_cc_single_mod=yes 9126 else 9127 cat conftest.err >&5 9128 fi 9129 rm -rf libconftest.dylib* 9130 rm -f conftest.* 9131 fi 9132fi 9133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9134printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9135 9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9137printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9138if test ${lt_cv_ld_exported_symbols_list+y} 9139then : 9140 printf %s "(cached) " >&6 9141else $as_nop 9142 lt_cv_ld_exported_symbols_list=no 9143 save_LDFLAGS=$LDFLAGS 9144 echo "_main" > conftest.sym 9145 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9147/* end confdefs.h. */ 9148 9149int 9150main (void) 9151{ 9152 9153 ; 9154 return 0; 9155} 9156_ACEOF 9157if ac_fn_c_try_link "$LINENO" 9158then : 9159 lt_cv_ld_exported_symbols_list=yes 9160else $as_nop 9161 lt_cv_ld_exported_symbols_list=no 9162fi 9163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9164 conftest$ac_exeext conftest.$ac_ext 9165 LDFLAGS=$save_LDFLAGS 9166 9167fi 9168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9169printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9170 9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9172printf %s "checking for -force_load linker flag... " >&6; } 9173if test ${lt_cv_ld_force_load+y} 9174then : 9175 printf %s "(cached) " >&6 9176else $as_nop 9177 lt_cv_ld_force_load=no 9178 cat > conftest.c << _LT_EOF 9179int forced_loaded() { return 2;} 9180_LT_EOF 9181 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9182 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9183 echo "$AR cru libconftest.a conftest.o" >&5 9184 $AR cru libconftest.a conftest.o 2>&5 9185 echo "$RANLIB libconftest.a" >&5 9186 $RANLIB libconftest.a 2>&5 9187 cat > conftest.c << _LT_EOF 9188int main() { return 0;} 9189_LT_EOF 9190 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9191 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9192 _lt_result=$? 9193 if test -s conftest.err && $GREP force_load conftest.err; then 9194 cat conftest.err >&5 9195 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9196 lt_cv_ld_force_load=yes 9197 else 9198 cat conftest.err >&5 9199 fi 9200 rm -f conftest.err libconftest.a conftest conftest.c 9201 rm -rf conftest.dSYM 9202 9203fi 9204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9205printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9206 case $host_os in 9207 rhapsody* | darwin1.[012]) 9208 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9209 darwin1.*) 9210 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9211 darwin*) # darwin 5.x on 9212 # if running on 10.5 or later, the deployment target defaults 9213 # to the OS version, if on x86, and 10.4, the deployment 9214 # target defaults to 10.4. Don't you love it? 9215 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9216 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9217 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9218 10.[012][,.]*) 9219 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9220 10.*) 9221 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9222 esac 9223 ;; 9224 esac 9225 if test yes = "$lt_cv_apple_cc_single_mod"; then 9226 _lt_dar_single_mod='$single_module' 9227 fi 9228 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9229 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9230 else 9231 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9232 fi 9233 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9234 _lt_dsymutil='~$DSYMUTIL $lib || :' 9235 else 9236 _lt_dsymutil= 9237 fi 9238 ;; 9239 esac 9240 9241# func_munge_path_list VARIABLE PATH 9242# ----------------------------------- 9243# VARIABLE is name of variable containing _space_ separated list of 9244# directories to be munged by the contents of PATH, which is string 9245# having a format: 9246# "DIR[:DIR]:" 9247# string "DIR[ DIR]" will be prepended to VARIABLE 9248# ":DIR[:DIR]" 9249# string "DIR[ DIR]" will be appended to VARIABLE 9250# "DIRP[:DIRP]::[DIRA:]DIRA" 9251# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9252# "DIRA[ DIRA]" will be appended to VARIABLE 9253# "DIR[:DIR]" 9254# VARIABLE will be replaced by "DIR[ DIR]" 9255func_munge_path_list () 9256{ 9257 case x$2 in 9258 x) 9259 ;; 9260 *:) 9261 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9262 ;; 9263 x:*) 9264 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9265 ;; 9266 *::*) 9267 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9268 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9269 ;; 9270 *) 9271 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9272 ;; 9273 esac 9274} 9275 9276ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9277" 9278if test "x$ac_cv_header_dlfcn_h" = xyes 9279then : 9280 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9281 9282fi 9283 9284 9285 9286 9287 9288# Set options 9289 9290 9291 9292 enable_dlopen=no 9293 9294 9295 enable_win32_dll=no 9296 9297 9298 # Check whether --enable-shared was given. 9299if test ${enable_shared+y} 9300then : 9301 enableval=$enable_shared; p=${PACKAGE-default} 9302 case $enableval in 9303 yes) enable_shared=yes ;; 9304 no) enable_shared=no ;; 9305 *) 9306 enable_shared=no 9307 # Look at the argument we got. We use all the common list separators. 9308 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9309 for pkg in $enableval; do 9310 IFS=$lt_save_ifs 9311 if test "X$pkg" = "X$p"; then 9312 enable_shared=yes 9313 fi 9314 done 9315 IFS=$lt_save_ifs 9316 ;; 9317 esac 9318else $as_nop 9319 enable_shared=yes 9320fi 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 # Check whether --enable-static was given. 9331if test ${enable_static+y} 9332then : 9333 enableval=$enable_static; p=${PACKAGE-default} 9334 case $enableval in 9335 yes) enable_static=yes ;; 9336 no) enable_static=no ;; 9337 *) 9338 enable_static=no 9339 # Look at the argument we got. We use all the common list separators. 9340 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9341 for pkg in $enableval; do 9342 IFS=$lt_save_ifs 9343 if test "X$pkg" = "X$p"; then 9344 enable_static=yes 9345 fi 9346 done 9347 IFS=$lt_save_ifs 9348 ;; 9349 esac 9350else $as_nop 9351 enable_static=yes 9352fi 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363# Check whether --with-pic was given. 9364if test ${with_pic+y} 9365then : 9366 withval=$with_pic; lt_p=${PACKAGE-default} 9367 case $withval in 9368 yes|no) pic_mode=$withval ;; 9369 *) 9370 pic_mode=default 9371 # Look at the argument we got. We use all the common list separators. 9372 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9373 for lt_pkg in $withval; do 9374 IFS=$lt_save_ifs 9375 if test "X$lt_pkg" = "X$lt_p"; then 9376 pic_mode=yes 9377 fi 9378 done 9379 IFS=$lt_save_ifs 9380 ;; 9381 esac 9382else $as_nop 9383 pic_mode=default 9384fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 # Check whether --enable-fast-install was given. 9394if test ${enable_fast_install+y} 9395then : 9396 enableval=$enable_fast_install; p=${PACKAGE-default} 9397 case $enableval in 9398 yes) enable_fast_install=yes ;; 9399 no) enable_fast_install=no ;; 9400 *) 9401 enable_fast_install=no 9402 # Look at the argument we got. We use all the common list separators. 9403 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9404 for pkg in $enableval; do 9405 IFS=$lt_save_ifs 9406 if test "X$pkg" = "X$p"; then 9407 enable_fast_install=yes 9408 fi 9409 done 9410 IFS=$lt_save_ifs 9411 ;; 9412 esac 9413else $as_nop 9414 enable_fast_install=yes 9415fi 9416 9417 9418 9419 9420 9421 9422 9423 9424 shared_archive_member_spec= 9425case $host,$enable_shared in 9426power*-*-aix[5-9]*,yes) 9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9428printf %s "checking which variant of shared library versioning to provide... " >&6; } 9429 9430# Check whether --with-aix-soname was given. 9431if test ${with_aix_soname+y} 9432then : 9433 withval=$with_aix_soname; case $withval in 9434 aix|svr4|both) 9435 ;; 9436 *) 9437 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9438 ;; 9439 esac 9440 lt_cv_with_aix_soname=$with_aix_soname 9441else $as_nop 9442 if test ${lt_cv_with_aix_soname+y} 9443then : 9444 printf %s "(cached) " >&6 9445else $as_nop 9446 lt_cv_with_aix_soname=aix 9447fi 9448 9449 with_aix_soname=$lt_cv_with_aix_soname 9450fi 9451 9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9453printf "%s\n" "$with_aix_soname" >&6; } 9454 if test aix != "$with_aix_soname"; then 9455 # For the AIX way of multilib, we name the shared archive member 9456 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9457 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9458 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9459 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9460 if test 64 = "${OBJECT_MODE-32}"; then 9461 shared_archive_member_spec=shr_64 9462 else 9463 shared_archive_member_spec=shr 9464 fi 9465 fi 9466 ;; 9467*) 9468 with_aix_soname=aix 9469 ;; 9470esac 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481# This can be used to rebuild libtool when needed 9482LIBTOOL_DEPS=$ltmain 9483 9484# Always use our own libtool. 9485LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516test -z "$LN_S" && LN_S="ln -s" 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531if test -n "${ZSH_VERSION+set}"; then 9532 setopt NO_GLOB_SUBST 9533fi 9534 9535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9536printf %s "checking for objdir... " >&6; } 9537if test ${lt_cv_objdir+y} 9538then : 9539 printf %s "(cached) " >&6 9540else $as_nop 9541 rm -f .libs 2>/dev/null 9542mkdir .libs 2>/dev/null 9543if test -d .libs; then 9544 lt_cv_objdir=.libs 9545else 9546 # MS-DOS does not allow filenames that begin with a dot. 9547 lt_cv_objdir=_libs 9548fi 9549rmdir .libs 2>/dev/null 9550fi 9551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9552printf "%s\n" "$lt_cv_objdir" >&6; } 9553objdir=$lt_cv_objdir 9554 9555 9556 9557 9558 9559printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9560 9561 9562 9563 9564case $host_os in 9565aix3*) 9566 # AIX sometimes has problems with the GCC collect2 program. For some 9567 # reason, if we set the COLLECT_NAMES environment variable, the problems 9568 # vanish in a puff of smoke. 9569 if test set != "${COLLECT_NAMES+set}"; then 9570 COLLECT_NAMES= 9571 export COLLECT_NAMES 9572 fi 9573 ;; 9574esac 9575 9576# Global variables: 9577ofile=libtool 9578can_build_shared=yes 9579 9580# All known linkers require a '.a' archive for static linking (except MSVC, 9581# which needs '.lib'). 9582libext=a 9583 9584with_gnu_ld=$lt_cv_prog_gnu_ld 9585 9586old_CC=$CC 9587old_CFLAGS=$CFLAGS 9588 9589# Set sane defaults for various variables 9590test -z "$CC" && CC=cc 9591test -z "$LTCC" && LTCC=$CC 9592test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9593test -z "$LD" && LD=ld 9594test -z "$ac_objext" && ac_objext=o 9595 9596func_cc_basename $compiler 9597cc_basename=$func_cc_basename_result 9598 9599 9600# Only perform the check for file, if the check method requires it 9601test -z "$MAGIC_CMD" && MAGIC_CMD=file 9602case $deplibs_check_method in 9603file_magic*) 9604 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9606printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9607if test ${lt_cv_path_MAGIC_CMD+y} 9608then : 9609 printf %s "(cached) " >&6 9610else $as_nop 9611 case $MAGIC_CMD in 9612[\\/*] | ?:[\\/]*) 9613 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9614 ;; 9615*) 9616 lt_save_MAGIC_CMD=$MAGIC_CMD 9617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9618 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9619 for ac_dir in $ac_dummy; do 9620 IFS=$lt_save_ifs 9621 test -z "$ac_dir" && ac_dir=. 9622 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9623 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9624 if test -n "$file_magic_test_file"; then 9625 case $deplibs_check_method in 9626 "file_magic "*) 9627 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9628 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9629 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9630 $EGREP "$file_magic_regex" > /dev/null; then 9631 : 9632 else 9633 cat <<_LT_EOF 1>&2 9634 9635*** Warning: the command libtool uses to detect shared libraries, 9636*** $file_magic_cmd, produces output that libtool cannot recognize. 9637*** The result is that libtool may fail to recognize shared libraries 9638*** as such. This will affect the creation of libtool libraries that 9639*** depend on shared libraries, but programs linked with such libtool 9640*** libraries will work regardless of this problem. Nevertheless, you 9641*** may want to report the problem to your system manager and/or to 9642*** bug-libtool@gnu.org 9643 9644_LT_EOF 9645 fi ;; 9646 esac 9647 fi 9648 break 9649 fi 9650 done 9651 IFS=$lt_save_ifs 9652 MAGIC_CMD=$lt_save_MAGIC_CMD 9653 ;; 9654esac 9655fi 9656 9657MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9658if test -n "$MAGIC_CMD"; then 9659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9660printf "%s\n" "$MAGIC_CMD" >&6; } 9661else 9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9663printf "%s\n" "no" >&6; } 9664fi 9665 9666 9667 9668 9669 9670if test -z "$lt_cv_path_MAGIC_CMD"; then 9671 if test -n "$ac_tool_prefix"; then 9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9673printf %s "checking for file... " >&6; } 9674if test ${lt_cv_path_MAGIC_CMD+y} 9675then : 9676 printf %s "(cached) " >&6 9677else $as_nop 9678 case $MAGIC_CMD in 9679[\\/*] | ?:[\\/]*) 9680 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9681 ;; 9682*) 9683 lt_save_MAGIC_CMD=$MAGIC_CMD 9684 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9685 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9686 for ac_dir in $ac_dummy; do 9687 IFS=$lt_save_ifs 9688 test -z "$ac_dir" && ac_dir=. 9689 if test -f "$ac_dir/file"; then 9690 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9691 if test -n "$file_magic_test_file"; then 9692 case $deplibs_check_method in 9693 "file_magic "*) 9694 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9695 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9696 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9697 $EGREP "$file_magic_regex" > /dev/null; then 9698 : 9699 else 9700 cat <<_LT_EOF 1>&2 9701 9702*** Warning: the command libtool uses to detect shared libraries, 9703*** $file_magic_cmd, produces output that libtool cannot recognize. 9704*** The result is that libtool may fail to recognize shared libraries 9705*** as such. This will affect the creation of libtool libraries that 9706*** depend on shared libraries, but programs linked with such libtool 9707*** libraries will work regardless of this problem. Nevertheless, you 9708*** may want to report the problem to your system manager and/or to 9709*** bug-libtool@gnu.org 9710 9711_LT_EOF 9712 fi ;; 9713 esac 9714 fi 9715 break 9716 fi 9717 done 9718 IFS=$lt_save_ifs 9719 MAGIC_CMD=$lt_save_MAGIC_CMD 9720 ;; 9721esac 9722fi 9723 9724MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9725if test -n "$MAGIC_CMD"; then 9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9727printf "%s\n" "$MAGIC_CMD" >&6; } 9728else 9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9730printf "%s\n" "no" >&6; } 9731fi 9732 9733 9734 else 9735 MAGIC_CMD=: 9736 fi 9737fi 9738 9739 fi 9740 ;; 9741esac 9742 9743# Use C for the default configuration in the libtool script 9744 9745lt_save_CC=$CC 9746ac_ext=c 9747ac_cpp='$CPP $CPPFLAGS' 9748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9750ac_compiler_gnu=$ac_cv_c_compiler_gnu 9751 9752 9753# Source file extension for C test sources. 9754ac_ext=c 9755 9756# Object file extension for compiled C test sources. 9757objext=o 9758objext=$objext 9759 9760# Code to be used in simple compile tests 9761lt_simple_compile_test_code="int some_variable = 0;" 9762 9763# Code to be used in simple link tests 9764lt_simple_link_test_code='int main(){return(0);}' 9765 9766 9767 9768 9769 9770 9771 9772# If no C compiler was specified, use CC. 9773LTCC=${LTCC-"$CC"} 9774 9775# If no C compiler flags were specified, use CFLAGS. 9776LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9777 9778# Allow CC to be a program name with arguments. 9779compiler=$CC 9780 9781# Save the default compiler, since it gets overwritten when the other 9782# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9783compiler_DEFAULT=$CC 9784 9785# save warnings/boilerplate of simple test code 9786ac_outfile=conftest.$ac_objext 9787echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9788eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9789_lt_compiler_boilerplate=`cat conftest.err` 9790$RM conftest* 9791 9792ac_outfile=conftest.$ac_objext 9793echo "$lt_simple_link_test_code" >conftest.$ac_ext 9794eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9795_lt_linker_boilerplate=`cat conftest.err` 9796$RM -r conftest* 9797 9798 9799## CAVEAT EMPTOR: 9800## There is no encapsulation within the following macros, do not change 9801## the running order or otherwise move them around unless you know exactly 9802## what you are doing... 9803if test -n "$compiler"; then 9804 9805lt_prog_compiler_no_builtin_flag= 9806 9807if test yes = "$GCC"; then 9808 case $cc_basename in 9809 nvcc*) 9810 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9811 *) 9812 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9813 esac 9814 9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9816printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9817if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9818then : 9819 printf %s "(cached) " >&6 9820else $as_nop 9821 lt_cv_prog_compiler_rtti_exceptions=no 9822 ac_outfile=conftest.$ac_objext 9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9824 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9825 # Insert the option either (1) after the last *FLAGS variable, or 9826 # (2) before a word containing "conftest.", or (3) at the end. 9827 # Note that $ac_compile itself does not contain backslashes and begins 9828 # with a dollar sign (not a hyphen), so the echo should work correctly. 9829 # The option is referenced via a variable to avoid confusing sed. 9830 lt_compile=`echo "$ac_compile" | $SED \ 9831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9833 -e 's:$: $lt_compiler_flag:'` 9834 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9835 (eval "$lt_compile" 2>conftest.err) 9836 ac_status=$? 9837 cat conftest.err >&5 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 if (exit $ac_status) && test -s "$ac_outfile"; then 9840 # The compiler can only warn and ignore the option if not recognized 9841 # So say no if there are warnings other than the usual output. 9842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9845 lt_cv_prog_compiler_rtti_exceptions=yes 9846 fi 9847 fi 9848 $RM conftest* 9849 9850fi 9851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9852printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9853 9854if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9856else 9857 : 9858fi 9859 9860fi 9861 9862 9863 9864 9865 9866 9867 lt_prog_compiler_wl= 9868lt_prog_compiler_pic= 9869lt_prog_compiler_static= 9870 9871 9872 if test yes = "$GCC"; then 9873 lt_prog_compiler_wl='-Wl,' 9874 lt_prog_compiler_static='-static' 9875 9876 case $host_os in 9877 aix*) 9878 # All AIX code is PIC. 9879 if test ia64 = "$host_cpu"; then 9880 # AIX 5 now supports IA64 processor 9881 lt_prog_compiler_static='-Bstatic' 9882 fi 9883 lt_prog_compiler_pic='-fPIC' 9884 ;; 9885 9886 amigaos*) 9887 case $host_cpu in 9888 powerpc) 9889 # see comment about AmigaOS4 .so support 9890 lt_prog_compiler_pic='-fPIC' 9891 ;; 9892 m68k) 9893 # FIXME: we need at least 68020 code to build shared libraries, but 9894 # adding the '-m68020' flag to GCC prevents building anything better, 9895 # like '-m68040'. 9896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9897 ;; 9898 esac 9899 ;; 9900 9901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9902 # PIC is the default for these OSes. 9903 ;; 9904 9905 mingw* | cygwin* | pw32* | os2* | cegcc*) 9906 # This hack is so that the source file can tell whether it is being 9907 # built for inclusion in a dll (and should export symbols for example). 9908 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9909 # (--disable-auto-import) libraries 9910 lt_prog_compiler_pic='-DDLL_EXPORT' 9911 case $host_os in 9912 os2*) 9913 lt_prog_compiler_static='$wl-static' 9914 ;; 9915 esac 9916 ;; 9917 9918 darwin* | rhapsody*) 9919 # PIC is the default on this platform 9920 # Common symbols not allowed in MH_DYLIB files 9921 lt_prog_compiler_pic='-fno-common' 9922 ;; 9923 9924 haiku*) 9925 # PIC is the default for Haiku. 9926 # The "-static" flag exists, but is broken. 9927 lt_prog_compiler_static= 9928 ;; 9929 9930 hpux*) 9931 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9932 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9933 # sets the default TLS model and affects inlining. 9934 case $host_cpu in 9935 hppa*64*) 9936 # +Z the default 9937 ;; 9938 *) 9939 lt_prog_compiler_pic='-fPIC' 9940 ;; 9941 esac 9942 ;; 9943 9944 interix[3-9]*) 9945 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9946 # Instead, we relocate shared libraries at runtime. 9947 ;; 9948 9949 msdosdjgpp*) 9950 # Just because we use GCC doesn't mean we suddenly get shared libraries 9951 # on systems that don't support them. 9952 lt_prog_compiler_can_build_shared=no 9953 enable_shared=no 9954 ;; 9955 9956 *nto* | *qnx*) 9957 # QNX uses GNU C++, but need to define -shared option too, otherwise 9958 # it will coredump. 9959 lt_prog_compiler_pic='-fPIC -shared' 9960 ;; 9961 9962 sysv4*MP*) 9963 if test -d /usr/nec; then 9964 lt_prog_compiler_pic=-Kconform_pic 9965 fi 9966 ;; 9967 9968 *) 9969 lt_prog_compiler_pic='-fPIC' 9970 ;; 9971 esac 9972 9973 case $cc_basename in 9974 nvcc*) # Cuda Compiler Driver 2.2 9975 lt_prog_compiler_wl='-Xlinker ' 9976 if test -n "$lt_prog_compiler_pic"; then 9977 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9978 fi 9979 ;; 9980 esac 9981 else 9982 # PORTME Check for flag to pass linker flags through the system compiler. 9983 case $host_os in 9984 aix*) 9985 lt_prog_compiler_wl='-Wl,' 9986 if test ia64 = "$host_cpu"; then 9987 # AIX 5 now supports IA64 processor 9988 lt_prog_compiler_static='-Bstatic' 9989 else 9990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9991 fi 9992 ;; 9993 9994 darwin* | rhapsody*) 9995 # PIC is the default on this platform 9996 # Common symbols not allowed in MH_DYLIB files 9997 lt_prog_compiler_pic='-fno-common' 9998 case $cc_basename in 9999 nagfor*) 10000 # NAG Fortran compiler 10001 lt_prog_compiler_wl='-Wl,-Wl,,' 10002 lt_prog_compiler_pic='-PIC' 10003 lt_prog_compiler_static='-Bstatic' 10004 ;; 10005 esac 10006 ;; 10007 10008 mingw* | cygwin* | pw32* | os2* | cegcc*) 10009 # This hack is so that the source file can tell whether it is being 10010 # built for inclusion in a dll (and should export symbols for example). 10011 lt_prog_compiler_pic='-DDLL_EXPORT' 10012 case $host_os in 10013 os2*) 10014 lt_prog_compiler_static='$wl-static' 10015 ;; 10016 esac 10017 ;; 10018 10019 hpux9* | hpux10* | hpux11*) 10020 lt_prog_compiler_wl='-Wl,' 10021 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10022 # not for PA HP-UX. 10023 case $host_cpu in 10024 hppa*64*|ia64*) 10025 # +Z the default 10026 ;; 10027 *) 10028 lt_prog_compiler_pic='+Z' 10029 ;; 10030 esac 10031 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10032 lt_prog_compiler_static='$wl-a ${wl}archive' 10033 ;; 10034 10035 irix5* | irix6* | nonstopux*) 10036 lt_prog_compiler_wl='-Wl,' 10037 # PIC (with -KPIC) is the default. 10038 lt_prog_compiler_static='-non_shared' 10039 ;; 10040 10041 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10042 case $cc_basename in 10043 # old Intel for x86_64, which still supported -KPIC. 10044 ecc*) 10045 lt_prog_compiler_wl='-Wl,' 10046 lt_prog_compiler_pic='-KPIC' 10047 lt_prog_compiler_static='-static' 10048 ;; 10049 # icc used to be incompatible with GCC. 10050 # ICC 10 doesn't accept -KPIC any more. 10051 icc* | ifort*) 10052 lt_prog_compiler_wl='-Wl,' 10053 lt_prog_compiler_pic='-fPIC' 10054 lt_prog_compiler_static='-static' 10055 ;; 10056 # Lahey Fortran 8.1. 10057 lf95*) 10058 lt_prog_compiler_wl='-Wl,' 10059 lt_prog_compiler_pic='--shared' 10060 lt_prog_compiler_static='--static' 10061 ;; 10062 nagfor*) 10063 # NAG Fortran compiler 10064 lt_prog_compiler_wl='-Wl,-Wl,,' 10065 lt_prog_compiler_pic='-PIC' 10066 lt_prog_compiler_static='-Bstatic' 10067 ;; 10068 tcc*) 10069 # Fabrice Bellard et al's Tiny C Compiler 10070 lt_prog_compiler_wl='-Wl,' 10071 lt_prog_compiler_pic='-fPIC' 10072 lt_prog_compiler_static='-static' 10073 ;; 10074 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10075 # Portland Group compilers (*not* the Pentium gcc compiler, 10076 # which looks to be a dead project) 10077 lt_prog_compiler_wl='-Wl,' 10078 lt_prog_compiler_pic='-fpic' 10079 lt_prog_compiler_static='-Bstatic' 10080 ;; 10081 ccc*) 10082 lt_prog_compiler_wl='-Wl,' 10083 # All Alpha code is PIC. 10084 lt_prog_compiler_static='-non_shared' 10085 ;; 10086 xl* | bgxl* | bgf* | mpixl*) 10087 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10088 lt_prog_compiler_wl='-Wl,' 10089 lt_prog_compiler_pic='-qpic' 10090 lt_prog_compiler_static='-qstaticlink' 10091 ;; 10092 *) 10093 case `$CC -V 2>&1 | sed 5q` in 10094 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10095 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10096 lt_prog_compiler_pic='-KPIC' 10097 lt_prog_compiler_static='-Bstatic' 10098 lt_prog_compiler_wl='' 10099 ;; 10100 *Sun\ F* | *Sun*Fortran*) 10101 lt_prog_compiler_pic='-KPIC' 10102 lt_prog_compiler_static='-Bstatic' 10103 lt_prog_compiler_wl='-Qoption ld ' 10104 ;; 10105 *Sun\ C*) 10106 # Sun C 5.9 10107 lt_prog_compiler_pic='-KPIC' 10108 lt_prog_compiler_static='-Bstatic' 10109 lt_prog_compiler_wl='-Wl,' 10110 ;; 10111 *Intel*\ [CF]*Compiler*) 10112 lt_prog_compiler_wl='-Wl,' 10113 lt_prog_compiler_pic='-fPIC' 10114 lt_prog_compiler_static='-static' 10115 ;; 10116 *Portland\ Group*) 10117 lt_prog_compiler_wl='-Wl,' 10118 lt_prog_compiler_pic='-fpic' 10119 lt_prog_compiler_static='-Bstatic' 10120 ;; 10121 esac 10122 ;; 10123 esac 10124 ;; 10125 10126 newsos6) 10127 lt_prog_compiler_pic='-KPIC' 10128 lt_prog_compiler_static='-Bstatic' 10129 ;; 10130 10131 *nto* | *qnx*) 10132 # QNX uses GNU C++, but need to define -shared option too, otherwise 10133 # it will coredump. 10134 lt_prog_compiler_pic='-fPIC -shared' 10135 ;; 10136 10137 osf3* | osf4* | osf5*) 10138 lt_prog_compiler_wl='-Wl,' 10139 # All OSF/1 code is PIC. 10140 lt_prog_compiler_static='-non_shared' 10141 ;; 10142 10143 rdos*) 10144 lt_prog_compiler_static='-non_shared' 10145 ;; 10146 10147 solaris*) 10148 lt_prog_compiler_pic='-KPIC' 10149 lt_prog_compiler_static='-Bstatic' 10150 case $cc_basename in 10151 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10152 lt_prog_compiler_wl='-Qoption ld ';; 10153 *) 10154 lt_prog_compiler_wl='-Wl,';; 10155 esac 10156 ;; 10157 10158 sunos4*) 10159 lt_prog_compiler_wl='-Qoption ld ' 10160 lt_prog_compiler_pic='-PIC' 10161 lt_prog_compiler_static='-Bstatic' 10162 ;; 10163 10164 sysv4 | sysv4.2uw2* | sysv4.3*) 10165 lt_prog_compiler_wl='-Wl,' 10166 lt_prog_compiler_pic='-KPIC' 10167 lt_prog_compiler_static='-Bstatic' 10168 ;; 10169 10170 sysv4*MP*) 10171 if test -d /usr/nec; then 10172 lt_prog_compiler_pic='-Kconform_pic' 10173 lt_prog_compiler_static='-Bstatic' 10174 fi 10175 ;; 10176 10177 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10178 lt_prog_compiler_wl='-Wl,' 10179 lt_prog_compiler_pic='-KPIC' 10180 lt_prog_compiler_static='-Bstatic' 10181 ;; 10182 10183 unicos*) 10184 lt_prog_compiler_wl='-Wl,' 10185 lt_prog_compiler_can_build_shared=no 10186 ;; 10187 10188 uts4*) 10189 lt_prog_compiler_pic='-pic' 10190 lt_prog_compiler_static='-Bstatic' 10191 ;; 10192 10193 *) 10194 lt_prog_compiler_can_build_shared=no 10195 ;; 10196 esac 10197 fi 10198 10199case $host_os in 10200 # For platforms that do not support PIC, -DPIC is meaningless: 10201 *djgpp*) 10202 lt_prog_compiler_pic= 10203 ;; 10204 *) 10205 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10206 ;; 10207esac 10208 10209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10210printf %s "checking for $compiler option to produce PIC... " >&6; } 10211if test ${lt_cv_prog_compiler_pic+y} 10212then : 10213 printf %s "(cached) " >&6 10214else $as_nop 10215 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10216fi 10217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10218printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10219lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10220 10221# 10222# Check to make sure the PIC flag actually works. 10223# 10224if test -n "$lt_prog_compiler_pic"; then 10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10226printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10227if test ${lt_cv_prog_compiler_pic_works+y} 10228then : 10229 printf %s "(cached) " >&6 10230else $as_nop 10231 lt_cv_prog_compiler_pic_works=no 10232 ac_outfile=conftest.$ac_objext 10233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10234 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10235 # Insert the option either (1) after the last *FLAGS variable, or 10236 # (2) before a word containing "conftest.", or (3) at the end. 10237 # Note that $ac_compile itself does not contain backslashes and begins 10238 # with a dollar sign (not a hyphen), so the echo should work correctly. 10239 # The option is referenced via a variable to avoid confusing sed. 10240 lt_compile=`echo "$ac_compile" | $SED \ 10241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10243 -e 's:$: $lt_compiler_flag:'` 10244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10245 (eval "$lt_compile" 2>conftest.err) 10246 ac_status=$? 10247 cat conftest.err >&5 10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10249 if (exit $ac_status) && test -s "$ac_outfile"; then 10250 # The compiler can only warn and ignore the option if not recognized 10251 # So say no if there are warnings other than the usual output. 10252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10255 lt_cv_prog_compiler_pic_works=yes 10256 fi 10257 fi 10258 $RM conftest* 10259 10260fi 10261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10262printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10263 10264if test yes = "$lt_cv_prog_compiler_pic_works"; then 10265 case $lt_prog_compiler_pic in 10266 "" | " "*) ;; 10267 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10268 esac 10269else 10270 lt_prog_compiler_pic= 10271 lt_prog_compiler_can_build_shared=no 10272fi 10273 10274fi 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286# 10287# Check to make sure the static flag actually works. 10288# 10289wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10291printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10292if test ${lt_cv_prog_compiler_static_works+y} 10293then : 10294 printf %s "(cached) " >&6 10295else $as_nop 10296 lt_cv_prog_compiler_static_works=no 10297 save_LDFLAGS=$LDFLAGS 10298 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10299 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10301 # The linker can only warn and ignore the option if not recognized 10302 # So say no if there are warnings 10303 if test -s conftest.err; then 10304 # Append any errors to the config.log. 10305 cat conftest.err 1>&5 10306 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10308 if diff conftest.exp conftest.er2 >/dev/null; then 10309 lt_cv_prog_compiler_static_works=yes 10310 fi 10311 else 10312 lt_cv_prog_compiler_static_works=yes 10313 fi 10314 fi 10315 $RM -r conftest* 10316 LDFLAGS=$save_LDFLAGS 10317 10318fi 10319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10320printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10321 10322if test yes = "$lt_cv_prog_compiler_static_works"; then 10323 : 10324else 10325 lt_prog_compiler_static= 10326fi 10327 10328 10329 10330 10331 10332 10333 10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10335printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10336if test ${lt_cv_prog_compiler_c_o+y} 10337then : 10338 printf %s "(cached) " >&6 10339else $as_nop 10340 lt_cv_prog_compiler_c_o=no 10341 $RM -r conftest 2>/dev/null 10342 mkdir conftest 10343 cd conftest 10344 mkdir out 10345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10346 10347 lt_compiler_flag="-o out/conftest2.$ac_objext" 10348 # Insert the option either (1) after the last *FLAGS variable, or 10349 # (2) before a word containing "conftest.", or (3) at the end. 10350 # Note that $ac_compile itself does not contain backslashes and begins 10351 # with a dollar sign (not a hyphen), so the echo should work correctly. 10352 lt_compile=`echo "$ac_compile" | $SED \ 10353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10355 -e 's:$: $lt_compiler_flag:'` 10356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10357 (eval "$lt_compile" 2>out/conftest.err) 10358 ac_status=$? 10359 cat out/conftest.err >&5 10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10361 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10362 then 10363 # The compiler can only warn and ignore the option if not recognized 10364 # So say no if there are warnings 10365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10368 lt_cv_prog_compiler_c_o=yes 10369 fi 10370 fi 10371 chmod u+w . 2>&5 10372 $RM conftest* 10373 # SGI C++ compiler will create directory out/ii_files/ for 10374 # template instantiation 10375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10376 $RM out/* && rmdir out 10377 cd .. 10378 $RM -r conftest 10379 $RM conftest* 10380 10381fi 10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10383printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10384 10385 10386 10387 10388 10389 10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10391printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10392if test ${lt_cv_prog_compiler_c_o+y} 10393then : 10394 printf %s "(cached) " >&6 10395else $as_nop 10396 lt_cv_prog_compiler_c_o=no 10397 $RM -r conftest 2>/dev/null 10398 mkdir conftest 10399 cd conftest 10400 mkdir out 10401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10402 10403 lt_compiler_flag="-o out/conftest2.$ac_objext" 10404 # Insert the option either (1) after the last *FLAGS variable, or 10405 # (2) before a word containing "conftest.", or (3) at the end. 10406 # Note that $ac_compile itself does not contain backslashes and begins 10407 # with a dollar sign (not a hyphen), so the echo should work correctly. 10408 lt_compile=`echo "$ac_compile" | $SED \ 10409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10411 -e 's:$: $lt_compiler_flag:'` 10412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10413 (eval "$lt_compile" 2>out/conftest.err) 10414 ac_status=$? 10415 cat out/conftest.err >&5 10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10417 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10418 then 10419 # The compiler can only warn and ignore the option if not recognized 10420 # So say no if there are warnings 10421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10424 lt_cv_prog_compiler_c_o=yes 10425 fi 10426 fi 10427 chmod u+w . 2>&5 10428 $RM conftest* 10429 # SGI C++ compiler will create directory out/ii_files/ for 10430 # template instantiation 10431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10432 $RM out/* && rmdir out 10433 cd .. 10434 $RM -r conftest 10435 $RM conftest* 10436 10437fi 10438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10439printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10440 10441 10442 10443 10444hard_links=nottested 10445if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10446 # do not overwrite the value of need_locks provided by the user 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10448printf %s "checking if we can lock with hard links... " >&6; } 10449 hard_links=yes 10450 $RM conftest* 10451 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10452 touch conftest.a 10453 ln conftest.a conftest.b 2>&5 || hard_links=no 10454 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10456printf "%s\n" "$hard_links" >&6; } 10457 if test no = "$hard_links"; then 10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10459printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10460 need_locks=warn 10461 fi 10462else 10463 need_locks=no 10464fi 10465 10466 10467 10468 10469 10470 10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10472printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10473 10474 runpath_var= 10475 allow_undefined_flag= 10476 always_export_symbols=no 10477 archive_cmds= 10478 archive_expsym_cmds= 10479 compiler_needs_object=no 10480 enable_shared_with_static_runtimes=no 10481 export_dynamic_flag_spec= 10482 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10483 hardcode_automatic=no 10484 hardcode_direct=no 10485 hardcode_direct_absolute=no 10486 hardcode_libdir_flag_spec= 10487 hardcode_libdir_separator= 10488 hardcode_minus_L=no 10489 hardcode_shlibpath_var=unsupported 10490 inherit_rpath=no 10491 link_all_deplibs=unknown 10492 module_cmds= 10493 module_expsym_cmds= 10494 old_archive_from_new_cmds= 10495 old_archive_from_expsyms_cmds= 10496 thread_safe_flag_spec= 10497 whole_archive_flag_spec= 10498 # include_expsyms should be a list of space-separated symbols to be *always* 10499 # included in the symbol list 10500 include_expsyms= 10501 # exclude_expsyms can be an extended regexp of symbols to exclude 10502 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10503 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10504 # as well as any symbol that contains 'd'. 10505 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10507 # platforms (ab)use it in PIC code, but their linkers get confused if 10508 # the symbol is explicitly referenced. Since portable code cannot 10509 # rely on this symbol name, it's probably fine to never include it in 10510 # preloaded symbol tables. 10511 # Exclude shared library initialization/finalization symbols. 10512 extract_expsyms_cmds= 10513 10514 case $host_os in 10515 cygwin* | mingw* | pw32* | cegcc*) 10516 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10517 # When not using gcc, we currently assume that we are using 10518 # Microsoft Visual C++. 10519 if test yes != "$GCC"; then 10520 with_gnu_ld=no 10521 fi 10522 ;; 10523 interix*) 10524 # we just hope/assume this is gcc and not c89 (= MSVC++) 10525 with_gnu_ld=yes 10526 ;; 10527 openbsd* | bitrig*) 10528 with_gnu_ld=no 10529 ;; 10530 esac 10531 10532 ld_shlibs=yes 10533 10534 # On some targets, GNU ld is compatible enough with the native linker 10535 # that we're better off using the native interface for both. 10536 lt_use_gnu_ld_interface=no 10537 if test yes = "$with_gnu_ld"; then 10538 case $host_os in 10539 aix*) 10540 # The AIX port of GNU ld has always aspired to compatibility 10541 # with the native linker. However, as the warning in the GNU ld 10542 # block says, versions before 2.19.5* couldn't really create working 10543 # shared libraries, regardless of the interface used. 10544 case `$LD -v 2>&1` in 10545 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10546 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10547 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10548 *) 10549 lt_use_gnu_ld_interface=yes 10550 ;; 10551 esac 10552 ;; 10553 *) 10554 lt_use_gnu_ld_interface=yes 10555 ;; 10556 esac 10557 fi 10558 10559 if test yes = "$lt_use_gnu_ld_interface"; then 10560 # If archive_cmds runs LD, not CC, wlarc should be empty 10561 wlarc='$wl' 10562 10563 # Set some defaults for GNU ld with shared library support. These 10564 # are reset later if shared libraries are not supported. Putting them 10565 # here allows them to be overridden if necessary. 10566 runpath_var=LD_RUN_PATH 10567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10568 export_dynamic_flag_spec='$wl--export-dynamic' 10569 # ancient GNU ld didn't support --whole-archive et. al. 10570 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10571 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10572 else 10573 whole_archive_flag_spec= 10574 fi 10575 supports_anon_versioning=no 10576 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10577 *GNU\ gold*) supports_anon_versioning=yes ;; 10578 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10579 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10580 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10581 *\ 2.11.*) ;; # other 2.11 versions 10582 *) supports_anon_versioning=yes ;; 10583 esac 10584 10585 # See if GNU ld supports shared libraries. 10586 case $host_os in 10587 aix[3-9]*) 10588 # On AIX/PPC, the GNU linker is very broken 10589 if test ia64 != "$host_cpu"; then 10590 ld_shlibs=no 10591 cat <<_LT_EOF 1>&2 10592 10593*** Warning: the GNU linker, at least up to release 2.19, is reported 10594*** to be unable to reliably create shared libraries on AIX. 10595*** Therefore, libtool is disabling shared libraries support. If you 10596*** really care for shared libraries, you may want to install binutils 10597*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10598*** You will then need to restart the configuration process. 10599 10600_LT_EOF 10601 fi 10602 ;; 10603 10604 amigaos*) 10605 case $host_cpu in 10606 powerpc) 10607 # see comment about AmigaOS4 .so support 10608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10609 archive_expsym_cmds='' 10610 ;; 10611 m68k) 10612 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)' 10613 hardcode_libdir_flag_spec='-L$libdir' 10614 hardcode_minus_L=yes 10615 ;; 10616 esac 10617 ;; 10618 10619 beos*) 10620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10621 allow_undefined_flag=unsupported 10622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10623 # support --undefined. This deserves some investigation. FIXME 10624 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10625 else 10626 ld_shlibs=no 10627 fi 10628 ;; 10629 10630 cygwin* | mingw* | pw32* | cegcc*) 10631 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10632 # as there is no search path for DLLs. 10633 hardcode_libdir_flag_spec='-L$libdir' 10634 export_dynamic_flag_spec='$wl--export-all-symbols' 10635 allow_undefined_flag=unsupported 10636 always_export_symbols=no 10637 enable_shared_with_static_runtimes=yes 10638 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' 10639 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10640 10641 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10643 # If the export-symbols file already is a .def file, use it as 10644 # is; otherwise, prepend EXPORTS... 10645 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10646 cp $export_symbols $output_objdir/$soname.def; 10647 else 10648 echo EXPORTS > $output_objdir/$soname.def; 10649 cat $export_symbols >> $output_objdir/$soname.def; 10650 fi~ 10651 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10652 else 10653 ld_shlibs=no 10654 fi 10655 ;; 10656 10657 haiku*) 10658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10659 link_all_deplibs=yes 10660 ;; 10661 10662 os2*) 10663 hardcode_libdir_flag_spec='-L$libdir' 10664 hardcode_minus_L=yes 10665 allow_undefined_flag=unsupported 10666 shrext_cmds=.dll 10667 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10670 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10671 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10673 emximp -o $lib $output_objdir/$libname.def' 10674 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10677 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10678 prefix_cmds="$SED"~ 10679 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10680 prefix_cmds="$prefix_cmds -e 1d"; 10681 fi~ 10682 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10683 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10684 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10685 emximp -o $lib $output_objdir/$libname.def' 10686 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10687 enable_shared_with_static_runtimes=yes 10688 ;; 10689 10690 interix[3-9]*) 10691 hardcode_direct=no 10692 hardcode_shlibpath_var=no 10693 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10694 export_dynamic_flag_spec='$wl-E' 10695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10696 # Instead, shared libraries are loaded at an image base (0x10000000 by 10697 # default) and relocated if they conflict, which is a slow very memory 10698 # consuming and fragmenting process. To avoid this, we pick a random, 10699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10700 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10702 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' 10703 ;; 10704 10705 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10706 tmp_diet=no 10707 if test linux-dietlibc = "$host_os"; then 10708 case $cc_basename in 10709 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10710 esac 10711 fi 10712 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10713 && test no = "$tmp_diet" 10714 then 10715 tmp_addflag=' $pic_flag' 10716 tmp_sharedflag='-shared' 10717 case $cc_basename,$host_cpu in 10718 pgcc*) # Portland Group C compiler 10719 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' 10720 tmp_addflag=' $pic_flag' 10721 ;; 10722 pgf77* | pgf90* | pgf95* | pgfortran*) 10723 # Portland Group f77 and f90 compilers 10724 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' 10725 tmp_addflag=' $pic_flag -Mnomain' ;; 10726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10727 tmp_addflag=' -i_dynamic' ;; 10728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10729 tmp_addflag=' -i_dynamic -nofor_main' ;; 10730 ifc* | ifort*) # Intel Fortran compiler 10731 tmp_addflag=' -nofor_main' ;; 10732 lf95*) # Lahey Fortran 8.1 10733 whole_archive_flag_spec= 10734 tmp_sharedflag='--shared' ;; 10735 nagfor*) # NAGFOR 5.3 10736 tmp_sharedflag='-Wl,-shared' ;; 10737 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10738 tmp_sharedflag='-qmkshrobj' 10739 tmp_addflag= ;; 10740 nvcc*) # Cuda Compiler Driver 2.2 10741 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' 10742 compiler_needs_object=yes 10743 ;; 10744 esac 10745 case `$CC -V 2>&1 | sed 5q` in 10746 *Sun\ C*) # Sun C 5.9 10747 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' 10748 compiler_needs_object=yes 10749 tmp_sharedflag='-G' ;; 10750 *Sun\ F*) # Sun Fortran 8.3 10751 tmp_sharedflag='-G' ;; 10752 esac 10753 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10754 10755 if test yes = "$supports_anon_versioning"; then 10756 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10757 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10758 echo "local: *; };" >> $output_objdir/$libname.ver~ 10759 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10760 fi 10761 10762 case $cc_basename in 10763 tcc*) 10764 export_dynamic_flag_spec='-rdynamic' 10765 ;; 10766 xlf* | bgf* | bgxlf* | mpixlf*) 10767 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10768 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10769 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10770 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10771 if test yes = "$supports_anon_versioning"; then 10772 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10774 echo "local: *; };" >> $output_objdir/$libname.ver~ 10775 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10776 fi 10777 ;; 10778 esac 10779 else 10780 ld_shlibs=no 10781 fi 10782 ;; 10783 10784 netbsd*) 10785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10786 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10787 wlarc= 10788 else 10789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10791 fi 10792 ;; 10793 10794 solaris*) 10795 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10796 ld_shlibs=no 10797 cat <<_LT_EOF 1>&2 10798 10799*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10800*** create shared libraries on Solaris systems. Therefore, libtool 10801*** is disabling shared libraries support. We urge you to upgrade GNU 10802*** binutils to release 2.9.1 or newer. Another option is to modify 10803*** your PATH or compiler configuration so that the native linker is 10804*** used, and then restart. 10805 10806_LT_EOF 10807 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10810 else 10811 ld_shlibs=no 10812 fi 10813 ;; 10814 10815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10816 case `$LD -v 2>&1` in 10817 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10818 ld_shlibs=no 10819 cat <<_LT_EOF 1>&2 10820 10821*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10822*** reliably create shared libraries on SCO systems. Therefore, libtool 10823*** is disabling shared libraries support. We urge you to upgrade GNU 10824*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10825*** your PATH or compiler configuration so that the native linker is 10826*** used, and then restart. 10827 10828_LT_EOF 10829 ;; 10830 *) 10831 # For security reasons, it is highly recommended that you always 10832 # use absolute paths for naming shared libraries, and exclude the 10833 # DT_RUNPATH tag from executables and libraries. But doing so 10834 # requires that you compile everything twice, which is a pain. 10835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10839 else 10840 ld_shlibs=no 10841 fi 10842 ;; 10843 esac 10844 ;; 10845 10846 sunos4*) 10847 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10848 wlarc= 10849 hardcode_direct=yes 10850 hardcode_shlibpath_var=no 10851 ;; 10852 10853 *) 10854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10856 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10857 else 10858 ld_shlibs=no 10859 fi 10860 ;; 10861 esac 10862 10863 if test no = "$ld_shlibs"; then 10864 runpath_var= 10865 hardcode_libdir_flag_spec= 10866 export_dynamic_flag_spec= 10867 whole_archive_flag_spec= 10868 fi 10869 else 10870 # PORTME fill in a description of your system's linker (not GNU ld) 10871 case $host_os in 10872 aix3*) 10873 allow_undefined_flag=unsupported 10874 always_export_symbols=yes 10875 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' 10876 # Note: this linker hardcodes the directories in LIBPATH if there 10877 # are no directories specified by -L. 10878 hardcode_minus_L=yes 10879 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10880 # Neither direct hardcoding nor static linking is supported with a 10881 # broken collect2. 10882 hardcode_direct=unsupported 10883 fi 10884 ;; 10885 10886 aix[4-9]*) 10887 if test ia64 = "$host_cpu"; then 10888 # On IA64, the linker does run time linking by default, so we don't 10889 # have to do anything special. 10890 aix_use_runtimelinking=no 10891 exp_sym_flag='-Bexport' 10892 no_entry_flag= 10893 else 10894 # If we're using GNU nm, then we don't want the "-C" option. 10895 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10896 # Without the "-l" option, or with the "-B" option, AIX nm treats 10897 # weak defined symbols like other global defined symbols, whereas 10898 # GNU nm marks them as "W". 10899 # While the 'weak' keyword is ignored in the Export File, we need 10900 # it in the Import File for the 'aix-soname' feature, so we have 10901 # to replace the "-B" option with "-P" for AIX nm. 10902 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10903 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10904 else 10905 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10906 fi 10907 aix_use_runtimelinking=no 10908 10909 # Test if we are trying to use run time linking or normal 10910 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10911 # have runtime linking enabled, and use it for executables. 10912 # For shared libraries, we enable/disable runtime linking 10913 # depending on the kind of the shared library created - 10914 # when "with_aix_soname,aix_use_runtimelinking" is: 10915 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10916 # "aix,yes" lib.so shared, rtl:yes, for executables 10917 # lib.a static archive 10918 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10919 # lib.a(lib.so.V) shared, rtl:no, for executables 10920 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10921 # lib.a(lib.so.V) shared, rtl:no 10922 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10923 # lib.a static archive 10924 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10925 for ld_flag in $LDFLAGS; do 10926 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10927 aix_use_runtimelinking=yes 10928 break 10929 fi 10930 done 10931 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10932 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10933 # so we don't have lib.a shared libs to link our executables. 10934 # We have to force runtime linking in this case. 10935 aix_use_runtimelinking=yes 10936 LDFLAGS="$LDFLAGS -Wl,-brtl" 10937 fi 10938 ;; 10939 esac 10940 10941 exp_sym_flag='-bexport' 10942 no_entry_flag='-bnoentry' 10943 fi 10944 10945 # When large executables or shared objects are built, AIX ld can 10946 # have problems creating the table of contents. If linking a library 10947 # or program results in "error TOC overflow" add -mminimal-toc to 10948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10950 10951 archive_cmds='' 10952 hardcode_direct=yes 10953 hardcode_direct_absolute=yes 10954 hardcode_libdir_separator=':' 10955 link_all_deplibs=yes 10956 file_list_spec='$wl-f,' 10957 case $with_aix_soname,$aix_use_runtimelinking in 10958 aix,*) ;; # traditional, no import file 10959 svr4,* | *,yes) # use import file 10960 # The Import File defines what to hardcode. 10961 hardcode_direct=no 10962 hardcode_direct_absolute=no 10963 ;; 10964 esac 10965 10966 if test yes = "$GCC"; then 10967 case $host_os in aix4.[012]|aix4.[012].*) 10968 # We only want to do this on AIX 4.2 and lower, the check 10969 # below for broken collect2 doesn't work under 4.3+ 10970 collect2name=`$CC -print-prog-name=collect2` 10971 if test -f "$collect2name" && 10972 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10973 then 10974 # We have reworked collect2 10975 : 10976 else 10977 # We have old collect2 10978 hardcode_direct=unsupported 10979 # It fails to find uninstalled libraries when the uninstalled 10980 # path is not listed in the libpath. Setting hardcode_minus_L 10981 # to unsupported forces relinking 10982 hardcode_minus_L=yes 10983 hardcode_libdir_flag_spec='-L$libdir' 10984 hardcode_libdir_separator= 10985 fi 10986 ;; 10987 esac 10988 shared_flag='-shared' 10989 if test yes = "$aix_use_runtimelinking"; then 10990 shared_flag="$shared_flag "'$wl-G' 10991 fi 10992 # Need to ensure runtime linking is disabled for the traditional 10993 # shared library, or the linker may eventually find shared libraries 10994 # /with/ Import File - we do not want to mix them. 10995 shared_flag_aix='-shared' 10996 shared_flag_svr4='-shared $wl-G' 10997 else 10998 # not using gcc 10999 if test ia64 = "$host_cpu"; then 11000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11001 # chokes on -Wl,-G. The following line is correct: 11002 shared_flag='-G' 11003 else 11004 if test yes = "$aix_use_runtimelinking"; then 11005 shared_flag='$wl-G' 11006 else 11007 shared_flag='$wl-bM:SRE' 11008 fi 11009 shared_flag_aix='$wl-bM:SRE' 11010 shared_flag_svr4='$wl-G' 11011 fi 11012 fi 11013 11014 export_dynamic_flag_spec='$wl-bexpall' 11015 # It seems that -bexpall does not export symbols beginning with 11016 # underscore (_), so it is better to generate a list of symbols to export. 11017 always_export_symbols=yes 11018 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11019 # Warning - without using the other runtime loading flags (-brtl), 11020 # -berok will link without error, but may produce a broken library. 11021 allow_undefined_flag='-berok' 11022 # Determine the default libpath from the value encoded in an 11023 # empty executable. 11024 if test set = "${lt_cv_aix_libpath+set}"; then 11025 aix_libpath=$lt_cv_aix_libpath 11026else 11027 if test ${lt_cv_aix_libpath_+y} 11028then : 11029 printf %s "(cached) " >&6 11030else $as_nop 11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11032/* end confdefs.h. */ 11033 11034int 11035main (void) 11036{ 11037 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042if ac_fn_c_try_link "$LINENO" 11043then : 11044 11045 lt_aix_libpath_sed=' 11046 /Import File Strings/,/^$/ { 11047 /^0/ { 11048 s/^0 *\([^ ]*\) *$/\1/ 11049 p 11050 } 11051 }' 11052 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11053 # Check for a 64-bit object if we didn't find anything. 11054 if test -z "$lt_cv_aix_libpath_"; then 11055 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11056 fi 11057fi 11058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11059 conftest$ac_exeext conftest.$ac_ext 11060 if test -z "$lt_cv_aix_libpath_"; then 11061 lt_cv_aix_libpath_=/usr/lib:/lib 11062 fi 11063 11064fi 11065 11066 aix_libpath=$lt_cv_aix_libpath_ 11067fi 11068 11069 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11070 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11071 else 11072 if test ia64 = "$host_cpu"; then 11073 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11074 allow_undefined_flag="-z nodefs" 11075 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" 11076 else 11077 # Determine the default libpath from the value encoded in an 11078 # empty executable. 11079 if test set = "${lt_cv_aix_libpath+set}"; then 11080 aix_libpath=$lt_cv_aix_libpath 11081else 11082 if test ${lt_cv_aix_libpath_+y} 11083then : 11084 printf %s "(cached) " >&6 11085else $as_nop 11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11087/* end confdefs.h. */ 11088 11089int 11090main (void) 11091{ 11092 11093 ; 11094 return 0; 11095} 11096_ACEOF 11097if ac_fn_c_try_link "$LINENO" 11098then : 11099 11100 lt_aix_libpath_sed=' 11101 /Import File Strings/,/^$/ { 11102 /^0/ { 11103 s/^0 *\([^ ]*\) *$/\1/ 11104 p 11105 } 11106 }' 11107 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11108 # Check for a 64-bit object if we didn't find anything. 11109 if test -z "$lt_cv_aix_libpath_"; then 11110 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11111 fi 11112fi 11113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11114 conftest$ac_exeext conftest.$ac_ext 11115 if test -z "$lt_cv_aix_libpath_"; then 11116 lt_cv_aix_libpath_=/usr/lib:/lib 11117 fi 11118 11119fi 11120 11121 aix_libpath=$lt_cv_aix_libpath_ 11122fi 11123 11124 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11125 # Warning - without using the other run time loading flags, 11126 # -berok will link without error, but may produce a broken library. 11127 no_undefined_flag=' $wl-bernotok' 11128 allow_undefined_flag=' $wl-berok' 11129 if test yes = "$with_gnu_ld"; then 11130 # We only use this code for GNU lds that support --whole-archive. 11131 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11132 else 11133 # Exported symbols can be pulled into shared objects from archives 11134 whole_archive_flag_spec='$convenience' 11135 fi 11136 archive_cmds_need_lc=yes 11137 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11138 # -brtl affects multiple linker settings, -berok does not and is overridden later 11139 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11140 if test svr4 != "$with_aix_soname"; then 11141 # This is similar to how AIX traditionally builds its shared libraries. 11142 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11143 fi 11144 if test aix != "$with_aix_soname"; then 11145 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11146 else 11147 # used by -dlpreopen to get the symbols 11148 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11149 fi 11150 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11151 fi 11152 fi 11153 ;; 11154 11155 amigaos*) 11156 case $host_cpu in 11157 powerpc) 11158 # see comment about AmigaOS4 .so support 11159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11160 archive_expsym_cmds='' 11161 ;; 11162 m68k) 11163 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)' 11164 hardcode_libdir_flag_spec='-L$libdir' 11165 hardcode_minus_L=yes 11166 ;; 11167 esac 11168 ;; 11169 11170 bsdi[45]*) 11171 export_dynamic_flag_spec=-rdynamic 11172 ;; 11173 11174 cygwin* | mingw* | pw32* | cegcc*) 11175 # When not using gcc, we currently assume that we are using 11176 # Microsoft Visual C++. 11177 # hardcode_libdir_flag_spec is actually meaningless, as there is 11178 # no search path for DLLs. 11179 case $cc_basename in 11180 cl*) 11181 # Native MSVC 11182 hardcode_libdir_flag_spec=' ' 11183 allow_undefined_flag=unsupported 11184 always_export_symbols=yes 11185 file_list_spec='@' 11186 # Tell ltmain to make .lib files, not .a files. 11187 libext=lib 11188 # Tell ltmain to make .dll files, not .so files. 11189 shrext_cmds=.dll 11190 # FIXME: Setting linknames here is a bad hack. 11191 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11192 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11193 cp "$export_symbols" "$output_objdir/$soname.def"; 11194 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11195 else 11196 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11197 fi~ 11198 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11199 linknames=' 11200 # The linker will not automatically build a static lib if we build a DLL. 11201 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11202 enable_shared_with_static_runtimes=yes 11203 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11205 # Don't use ranlib 11206 old_postinstall_cmds='chmod 644 $oldlib' 11207 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11208 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11209 case $lt_outputfile in 11210 *.exe|*.EXE) ;; 11211 *) 11212 lt_outputfile=$lt_outputfile.exe 11213 lt_tool_outputfile=$lt_tool_outputfile.exe 11214 ;; 11215 esac~ 11216 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11217 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11218 $RM "$lt_outputfile.manifest"; 11219 fi' 11220 ;; 11221 *) 11222 # Assume MSVC wrapper 11223 hardcode_libdir_flag_spec=' ' 11224 allow_undefined_flag=unsupported 11225 # Tell ltmain to make .lib files, not .a files. 11226 libext=lib 11227 # Tell ltmain to make .dll files, not .so files. 11228 shrext_cmds=.dll 11229 # FIXME: Setting linknames here is a bad hack. 11230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11231 # The linker will automatically build a .lib file if we build a DLL. 11232 old_archive_from_new_cmds='true' 11233 # FIXME: Should let the user specify the lib program. 11234 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11235 enable_shared_with_static_runtimes=yes 11236 ;; 11237 esac 11238 ;; 11239 11240 darwin* | rhapsody*) 11241 11242 11243 archive_cmds_need_lc=no 11244 hardcode_direct=no 11245 hardcode_automatic=yes 11246 hardcode_shlibpath_var=unsupported 11247 if test yes = "$lt_cv_ld_force_load"; then 11248 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\"`' 11249 11250 else 11251 whole_archive_flag_spec='' 11252 fi 11253 link_all_deplibs=yes 11254 allow_undefined_flag=$_lt_dar_allow_undefined 11255 case $cc_basename in 11256 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11257 *) _lt_dar_can_shared=$GCC ;; 11258 esac 11259 if test yes = "$_lt_dar_can_shared"; then 11260 output_verbose_link_cmd=func_echo_all 11261 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11262 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11263 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" 11264 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" 11265 11266 else 11267 ld_shlibs=no 11268 fi 11269 11270 ;; 11271 11272 dgux*) 11273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11274 hardcode_libdir_flag_spec='-L$libdir' 11275 hardcode_shlibpath_var=no 11276 ;; 11277 11278 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11279 # support. Future versions do this automatically, but an explicit c++rt0.o 11280 # does not break anything, and helps significantly (at the cost of a little 11281 # extra space). 11282 freebsd2.2*) 11283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11284 hardcode_libdir_flag_spec='-R$libdir' 11285 hardcode_direct=yes 11286 hardcode_shlibpath_var=no 11287 ;; 11288 11289 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11290 freebsd2.*) 11291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11292 hardcode_direct=yes 11293 hardcode_minus_L=yes 11294 hardcode_shlibpath_var=no 11295 ;; 11296 11297 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11298 freebsd* | dragonfly*) 11299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11300 hardcode_libdir_flag_spec='-R$libdir' 11301 hardcode_direct=yes 11302 hardcode_shlibpath_var=no 11303 ;; 11304 11305 hpux9*) 11306 if test yes = "$GCC"; then 11307 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11308 else 11309 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11310 fi 11311 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11312 hardcode_libdir_separator=: 11313 hardcode_direct=yes 11314 11315 # hardcode_minus_L: Not really in the search PATH, 11316 # but as the default location of the library. 11317 hardcode_minus_L=yes 11318 export_dynamic_flag_spec='$wl-E' 11319 ;; 11320 11321 hpux10*) 11322 if test yes,no = "$GCC,$with_gnu_ld"; then 11323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11324 else 11325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11326 fi 11327 if test no = "$with_gnu_ld"; then 11328 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11329 hardcode_libdir_separator=: 11330 hardcode_direct=yes 11331 hardcode_direct_absolute=yes 11332 export_dynamic_flag_spec='$wl-E' 11333 # hardcode_minus_L: Not really in the search PATH, 11334 # but as the default location of the library. 11335 hardcode_minus_L=yes 11336 fi 11337 ;; 11338 11339 hpux11*) 11340 if test yes,no = "$GCC,$with_gnu_ld"; then 11341 case $host_cpu in 11342 hppa*64*) 11343 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11344 ;; 11345 ia64*) 11346 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11347 ;; 11348 *) 11349 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11350 ;; 11351 esac 11352 else 11353 case $host_cpu in 11354 hppa*64*) 11355 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11356 ;; 11357 ia64*) 11358 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11359 ;; 11360 *) 11361 11362 # Older versions of the 11.00 compiler do not understand -b yet 11363 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11365printf %s "checking if $CC understands -b... " >&6; } 11366if test ${lt_cv_prog_compiler__b+y} 11367then : 11368 printf %s "(cached) " >&6 11369else $as_nop 11370 lt_cv_prog_compiler__b=no 11371 save_LDFLAGS=$LDFLAGS 11372 LDFLAGS="$LDFLAGS -b" 11373 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11374 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11375 # The linker can only warn and ignore the option if not recognized 11376 # So say no if there are warnings 11377 if test -s conftest.err; then 11378 # Append any errors to the config.log. 11379 cat conftest.err 1>&5 11380 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11382 if diff conftest.exp conftest.er2 >/dev/null; then 11383 lt_cv_prog_compiler__b=yes 11384 fi 11385 else 11386 lt_cv_prog_compiler__b=yes 11387 fi 11388 fi 11389 $RM -r conftest* 11390 LDFLAGS=$save_LDFLAGS 11391 11392fi 11393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11394printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11395 11396if test yes = "$lt_cv_prog_compiler__b"; then 11397 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11398else 11399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11400fi 11401 11402 ;; 11403 esac 11404 fi 11405 if test no = "$with_gnu_ld"; then 11406 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11407 hardcode_libdir_separator=: 11408 11409 case $host_cpu in 11410 hppa*64*|ia64*) 11411 hardcode_direct=no 11412 hardcode_shlibpath_var=no 11413 ;; 11414 *) 11415 hardcode_direct=yes 11416 hardcode_direct_absolute=yes 11417 export_dynamic_flag_spec='$wl-E' 11418 11419 # hardcode_minus_L: Not really in the search PATH, 11420 # but as the default location of the library. 11421 hardcode_minus_L=yes 11422 ;; 11423 esac 11424 fi 11425 ;; 11426 11427 irix5* | irix6* | nonstopux*) 11428 if test yes = "$GCC"; then 11429 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' 11430 # Try to use the -exported_symbol ld option, if it does not 11431 # work, assume that -exports_file does not work either and 11432 # implicitly export all symbols. 11433 # This should be the same for all languages, so no per-tag cache variable. 11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11435printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11436if test ${lt_cv_irix_exported_symbol+y} 11437then : 11438 printf %s "(cached) " >&6 11439else $as_nop 11440 save_LDFLAGS=$LDFLAGS 11441 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11443/* end confdefs.h. */ 11444int foo (void) { return 0; } 11445_ACEOF 11446if ac_fn_c_try_link "$LINENO" 11447then : 11448 lt_cv_irix_exported_symbol=yes 11449else $as_nop 11450 lt_cv_irix_exported_symbol=no 11451fi 11452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11453 conftest$ac_exeext conftest.$ac_ext 11454 LDFLAGS=$save_LDFLAGS 11455fi 11456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11457printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11458 if test yes = "$lt_cv_irix_exported_symbol"; then 11459 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' 11460 fi 11461 else 11462 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' 11463 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' 11464 fi 11465 archive_cmds_need_lc='no' 11466 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11467 hardcode_libdir_separator=: 11468 inherit_rpath=yes 11469 link_all_deplibs=yes 11470 ;; 11471 11472 linux*) 11473 case $cc_basename in 11474 tcc*) 11475 # Fabrice Bellard et al's Tiny C Compiler 11476 ld_shlibs=yes 11477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11478 ;; 11479 esac 11480 ;; 11481 11482 netbsd*) 11483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11485 else 11486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11487 fi 11488 hardcode_libdir_flag_spec='-R$libdir' 11489 hardcode_direct=yes 11490 hardcode_shlibpath_var=no 11491 ;; 11492 11493 newsos6) 11494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11495 hardcode_direct=yes 11496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11497 hardcode_libdir_separator=: 11498 hardcode_shlibpath_var=no 11499 ;; 11500 11501 *nto* | *qnx*) 11502 ;; 11503 11504 openbsd* | bitrig*) 11505 if test -f /usr/libexec/ld.so; then 11506 hardcode_direct=yes 11507 hardcode_shlibpath_var=no 11508 hardcode_direct_absolute=yes 11509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11512 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11513 export_dynamic_flag_spec='$wl-E' 11514 else 11515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11516 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11517 fi 11518 else 11519 ld_shlibs=no 11520 fi 11521 ;; 11522 11523 os2*) 11524 hardcode_libdir_flag_spec='-L$libdir' 11525 hardcode_minus_L=yes 11526 allow_undefined_flag=unsupported 11527 shrext_cmds=.dll 11528 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11529 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11530 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11531 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11532 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11534 emximp -o $lib $output_objdir/$libname.def' 11535 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11536 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11537 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11538 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11539 prefix_cmds="$SED"~ 11540 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11541 prefix_cmds="$prefix_cmds -e 1d"; 11542 fi~ 11543 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11544 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11545 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11546 emximp -o $lib $output_objdir/$libname.def' 11547 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11548 enable_shared_with_static_runtimes=yes 11549 ;; 11550 11551 osf3*) 11552 if test yes = "$GCC"; then 11553 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11554 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' 11555 else 11556 allow_undefined_flag=' -expect_unresolved \*' 11557 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' 11558 fi 11559 archive_cmds_need_lc='no' 11560 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11561 hardcode_libdir_separator=: 11562 ;; 11563 11564 osf4* | osf5*) # as osf3* with the addition of -msym flag 11565 if test yes = "$GCC"; then 11566 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11567 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' 11568 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11569 else 11570 allow_undefined_flag=' -expect_unresolved \*' 11571 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' 11572 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~ 11573 $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' 11574 11575 # Both c and cxx compiler support -rpath directly 11576 hardcode_libdir_flag_spec='-rpath $libdir' 11577 fi 11578 archive_cmds_need_lc='no' 11579 hardcode_libdir_separator=: 11580 ;; 11581 11582 solaris*) 11583 no_undefined_flag=' -z defs' 11584 if test yes = "$GCC"; then 11585 wlarc='$wl' 11586 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11588 $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' 11589 else 11590 case `$CC -V 2>&1` in 11591 *"Compilers 5.0"*) 11592 wlarc='' 11593 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11595 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11596 ;; 11597 *) 11598 wlarc='$wl' 11599 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11601 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11602 ;; 11603 esac 11604 fi 11605 hardcode_libdir_flag_spec='-R$libdir' 11606 hardcode_shlibpath_var=no 11607 case $host_os in 11608 solaris2.[0-5] | solaris2.[0-5].*) ;; 11609 *) 11610 # The compiler driver will combine and reorder linker options, 11611 # but understands '-z linker_flag'. GCC discards it without '$wl', 11612 # but is careful enough not to reorder. 11613 # Supported since Solaris 2.6 (maybe 2.5.1?) 11614 if test yes = "$GCC"; then 11615 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11616 else 11617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11618 fi 11619 ;; 11620 esac 11621 link_all_deplibs=yes 11622 ;; 11623 11624 sunos4*) 11625 if test sequent = "$host_vendor"; then 11626 # Use $CC to link under sequent, because it throws in some extra .o 11627 # files that make .init and .fini sections work. 11628 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11629 else 11630 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11631 fi 11632 hardcode_libdir_flag_spec='-L$libdir' 11633 hardcode_direct=yes 11634 hardcode_minus_L=yes 11635 hardcode_shlibpath_var=no 11636 ;; 11637 11638 sysv4) 11639 case $host_vendor in 11640 sni) 11641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11642 hardcode_direct=yes # is this really true??? 11643 ;; 11644 siemens) 11645 ## LD is ld it makes a PLAMLIB 11646 ## CC just makes a GrossModule. 11647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11648 reload_cmds='$CC -r -o $output$reload_objs' 11649 hardcode_direct=no 11650 ;; 11651 motorola) 11652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11653 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11654 ;; 11655 esac 11656 runpath_var='LD_RUN_PATH' 11657 hardcode_shlibpath_var=no 11658 ;; 11659 11660 sysv4.3*) 11661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11662 hardcode_shlibpath_var=no 11663 export_dynamic_flag_spec='-Bexport' 11664 ;; 11665 11666 sysv4*MP*) 11667 if test -d /usr/nec; then 11668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11669 hardcode_shlibpath_var=no 11670 runpath_var=LD_RUN_PATH 11671 hardcode_runpath_var=yes 11672 ld_shlibs=yes 11673 fi 11674 ;; 11675 11676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11677 no_undefined_flag='$wl-z,text' 11678 archive_cmds_need_lc=no 11679 hardcode_shlibpath_var=no 11680 runpath_var='LD_RUN_PATH' 11681 11682 if test yes = "$GCC"; then 11683 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11684 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11685 else 11686 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11687 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11688 fi 11689 ;; 11690 11691 sysv5* | sco3.2v5* | sco5v6*) 11692 # Note: We CANNOT use -z defs as we might desire, because we do not 11693 # link with -lc, and that would cause any symbols used from libc to 11694 # always be unresolved, which means just about no library would 11695 # ever link correctly. If we're not using GNU ld we use -z text 11696 # though, which does catch some bad symbols but isn't as heavy-handed 11697 # as -z defs. 11698 no_undefined_flag='$wl-z,text' 11699 allow_undefined_flag='$wl-z,nodefs' 11700 archive_cmds_need_lc=no 11701 hardcode_shlibpath_var=no 11702 hardcode_libdir_flag_spec='$wl-R,$libdir' 11703 hardcode_libdir_separator=':' 11704 link_all_deplibs=yes 11705 export_dynamic_flag_spec='$wl-Bexport' 11706 runpath_var='LD_RUN_PATH' 11707 11708 if test yes = "$GCC"; then 11709 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11710 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11711 else 11712 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11713 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11714 fi 11715 ;; 11716 11717 uts4*) 11718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11719 hardcode_libdir_flag_spec='-L$libdir' 11720 hardcode_shlibpath_var=no 11721 ;; 11722 11723 *) 11724 ld_shlibs=no 11725 ;; 11726 esac 11727 11728 if test sni = "$host_vendor"; then 11729 case $host in 11730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11731 export_dynamic_flag_spec='$wl-Blargedynsym' 11732 ;; 11733 esac 11734 fi 11735 fi 11736 11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11738printf "%s\n" "$ld_shlibs" >&6; } 11739test no = "$ld_shlibs" && can_build_shared=no 11740 11741with_gnu_ld=$with_gnu_ld 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757# 11758# Do we need to explicitly link libc? 11759# 11760case "x$archive_cmds_need_lc" in 11761x|xyes) 11762 # Assume -lc should be added 11763 archive_cmds_need_lc=yes 11764 11765 if test yes,yes = "$GCC,$enable_shared"; then 11766 case $archive_cmds in 11767 *'~'*) 11768 # FIXME: we may have to deal with multi-command sequences. 11769 ;; 11770 '$CC '*) 11771 # Test whether the compiler implicitly links with -lc since on some 11772 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11773 # to ld, don't add -lc before -lgcc. 11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11775printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11776if test ${lt_cv_archive_cmds_need_lc+y} 11777then : 11778 printf %s "(cached) " >&6 11779else $as_nop 11780 $RM conftest* 11781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11782 11783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11784 (eval $ac_compile) 2>&5 11785 ac_status=$? 11786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11787 test $ac_status = 0; } 2>conftest.err; then 11788 soname=conftest 11789 lib=conftest 11790 libobjs=conftest.$ac_objext 11791 deplibs= 11792 wl=$lt_prog_compiler_wl 11793 pic_flag=$lt_prog_compiler_pic 11794 compiler_flags=-v 11795 linker_flags=-v 11796 verstring= 11797 output_objdir=. 11798 libname=conftest 11799 lt_save_allow_undefined_flag=$allow_undefined_flag 11800 allow_undefined_flag= 11801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11802 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11803 ac_status=$? 11804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11805 test $ac_status = 0; } 11806 then 11807 lt_cv_archive_cmds_need_lc=no 11808 else 11809 lt_cv_archive_cmds_need_lc=yes 11810 fi 11811 allow_undefined_flag=$lt_save_allow_undefined_flag 11812 else 11813 cat conftest.err 1>&5 11814 fi 11815 $RM conftest* 11816 11817fi 11818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11819printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11820 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11821 ;; 11822 esac 11823 fi 11824 ;; 11825esac 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11979printf %s "checking dynamic linker characteristics... " >&6; } 11980 11981if test yes = "$GCC"; then 11982 case $host_os in 11983 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11984 *) lt_awk_arg='/^libraries:/' ;; 11985 esac 11986 case $host_os in 11987 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11988 *) lt_sed_strip_eq='s|=/|/|g' ;; 11989 esac 11990 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11991 case $lt_search_path_spec in 11992 *\;*) 11993 # if the path contains ";" then we assume it to be the separator 11994 # otherwise default to the standard path separator (i.e. ":") - it is 11995 # assumed that no part of a normal pathname contains ";" but that should 11996 # okay in the real world where ";" in dirpaths is itself problematic. 11997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11998 ;; 11999 *) 12000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12001 ;; 12002 esac 12003 # Ok, now we have the path, separated by spaces, we can step through it 12004 # and add multilib dir if necessary... 12005 lt_tmp_lt_search_path_spec= 12006 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12007 # ...but if some path component already ends with the multilib dir we assume 12008 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12009 case "$lt_multi_os_dir; $lt_search_path_spec " in 12010 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12011 lt_multi_os_dir= 12012 ;; 12013 esac 12014 for lt_sys_path in $lt_search_path_spec; do 12015 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12016 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12017 elif test -n "$lt_multi_os_dir"; then 12018 test -d "$lt_sys_path" && \ 12019 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12020 fi 12021 done 12022 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12023BEGIN {RS = " "; FS = "/|\n";} { 12024 lt_foo = ""; 12025 lt_count = 0; 12026 for (lt_i = NF; lt_i > 0; lt_i--) { 12027 if ($lt_i != "" && $lt_i != ".") { 12028 if ($lt_i == "..") { 12029 lt_count++; 12030 } else { 12031 if (lt_count == 0) { 12032 lt_foo = "/" $lt_i lt_foo; 12033 } else { 12034 lt_count--; 12035 } 12036 } 12037 } 12038 } 12039 if (lt_foo != "") { lt_freq[lt_foo]++; } 12040 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12041}'` 12042 # AWK program above erroneously prepends '/' to C:/dos/paths 12043 # for these hosts. 12044 case $host_os in 12045 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12046 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12047 esac 12048 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12049else 12050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12051fi 12052library_names_spec= 12053libname_spec='lib$name' 12054soname_spec= 12055shrext_cmds=.so 12056postinstall_cmds= 12057postuninstall_cmds= 12058finish_cmds= 12059finish_eval= 12060shlibpath_var= 12061shlibpath_overrides_runpath=unknown 12062version_type=none 12063dynamic_linker="$host_os ld.so" 12064sys_lib_dlsearch_path_spec="/lib /usr/lib" 12065need_lib_prefix=unknown 12066hardcode_into_libs=no 12067 12068# when you set need_version to no, make sure it does not cause -set_version 12069# flags to be left without arguments 12070need_version=unknown 12071 12072 12073 12074case $host_os in 12075aix3*) 12076 version_type=linux # correct to gnu/linux during the next big refactor 12077 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12078 shlibpath_var=LIBPATH 12079 12080 # AIX 3 has no versioning support, so we append a major version to the name. 12081 soname_spec='$libname$release$shared_ext$major' 12082 ;; 12083 12084aix[4-9]*) 12085 version_type=linux # correct to gnu/linux during the next big refactor 12086 need_lib_prefix=no 12087 need_version=no 12088 hardcode_into_libs=yes 12089 if test ia64 = "$host_cpu"; then 12090 # AIX 5 supports IA64 12091 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12092 shlibpath_var=LD_LIBRARY_PATH 12093 else 12094 # With GCC up to 2.95.x, collect2 would create an import file 12095 # for dependence libraries. The import file would start with 12096 # the line '#! .'. This would cause the generated library to 12097 # depend on '.', always an invalid library. This was fixed in 12098 # development snapshots of GCC prior to 3.0. 12099 case $host_os in 12100 aix4 | aix4.[01] | aix4.[01].*) 12101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12102 echo ' yes ' 12103 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12104 : 12105 else 12106 can_build_shared=no 12107 fi 12108 ;; 12109 esac 12110 # Using Import Files as archive members, it is possible to support 12111 # filename-based versioning of shared library archives on AIX. While 12112 # this would work for both with and without runtime linking, it will 12113 # prevent static linking of such archives. So we do filename-based 12114 # shared library versioning with .so extension only, which is used 12115 # when both runtime linking and shared linking is enabled. 12116 # Unfortunately, runtime linking may impact performance, so we do 12117 # not want this to be the default eventually. Also, we use the 12118 # versioned .so libs for executables only if there is the -brtl 12119 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12120 # To allow for filename-based versioning support, we need to create 12121 # libNAME.so.V as an archive file, containing: 12122 # *) an Import File, referring to the versioned filename of the 12123 # archive as well as the shared archive member, telling the 12124 # bitwidth (32 or 64) of that shared object, and providing the 12125 # list of exported symbols of that shared object, eventually 12126 # decorated with the 'weak' keyword 12127 # *) the shared object with the F_LOADONLY flag set, to really avoid 12128 # it being seen by the linker. 12129 # At run time we better use the real file rather than another symlink, 12130 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12131 12132 case $with_aix_soname,$aix_use_runtimelinking in 12133 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12134 # soname into executable. Probably we can add versioning support to 12135 # collect2, so additional links can be useful in future. 12136 aix,yes) # traditional libtool 12137 dynamic_linker='AIX unversionable lib.so' 12138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12139 # instead of lib<name>.a to let people know that these are not 12140 # typical AIX shared libraries. 12141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12142 ;; 12143 aix,no) # traditional AIX only 12144 dynamic_linker='AIX lib.a(lib.so.V)' 12145 # We preserve .a as extension for shared libraries through AIX4.2 12146 # and later when we are not doing run time linking. 12147 library_names_spec='$libname$release.a $libname.a' 12148 soname_spec='$libname$release$shared_ext$major' 12149 ;; 12150 svr4,*) # full svr4 only 12151 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12152 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12153 # We do not specify a path in Import Files, so LIBPATH fires. 12154 shlibpath_overrides_runpath=yes 12155 ;; 12156 *,yes) # both, prefer svr4 12157 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12158 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12159 # unpreferred sharedlib libNAME.a needs extra handling 12160 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12161 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12162 # We do not specify a path in Import Files, so LIBPATH fires. 12163 shlibpath_overrides_runpath=yes 12164 ;; 12165 *,no) # both, prefer aix 12166 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12167 library_names_spec='$libname$release.a $libname.a' 12168 soname_spec='$libname$release$shared_ext$major' 12169 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12170 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12171 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12172 ;; 12173 esac 12174 shlibpath_var=LIBPATH 12175 fi 12176 ;; 12177 12178amigaos*) 12179 case $host_cpu in 12180 powerpc) 12181 # Since July 2007 AmigaOS4 officially supports .so libraries. 12182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12184 ;; 12185 m68k) 12186 library_names_spec='$libname.ixlibrary $libname.a' 12187 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12188 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12189 ;; 12190 esac 12191 ;; 12192 12193beos*) 12194 library_names_spec='$libname$shared_ext' 12195 dynamic_linker="$host_os ld.so" 12196 shlibpath_var=LIBRARY_PATH 12197 ;; 12198 12199bsdi[45]*) 12200 version_type=linux # correct to gnu/linux during the next big refactor 12201 need_version=no 12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12203 soname_spec='$libname$release$shared_ext$major' 12204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12205 shlibpath_var=LD_LIBRARY_PATH 12206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12208 # the default ld.so.conf also contains /usr/contrib/lib and 12209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12210 # libtool to hard-code these into programs 12211 ;; 12212 12213cygwin* | mingw* | pw32* | cegcc*) 12214 version_type=windows 12215 shrext_cmds=.dll 12216 need_version=no 12217 need_lib_prefix=no 12218 12219 case $GCC,$cc_basename in 12220 yes,*) 12221 # gcc 12222 library_names_spec='$libname.dll.a' 12223 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12224 postinstall_cmds='base_file=`basename \$file`~ 12225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12226 dldir=$destdir/`dirname \$dlpath`~ 12227 test -d \$dldir || mkdir -p \$dldir~ 12228 $install_prog $dir/$dlname \$dldir/$dlname~ 12229 chmod a+x \$dldir/$dlname~ 12230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12232 fi' 12233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12234 dlpath=$dir/\$dldll~ 12235 $RM \$dlpath' 12236 shlibpath_overrides_runpath=yes 12237 12238 case $host_os in 12239 cygwin*) 12240 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12241 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12242 12243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12244 ;; 12245 mingw* | cegcc*) 12246 # MinGW DLLs use traditional 'lib' prefix 12247 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12248 ;; 12249 pw32*) 12250 # pw32 DLLs use 'pw' prefix rather than 'lib' 12251 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12252 ;; 12253 esac 12254 dynamic_linker='Win32 ld.exe' 12255 ;; 12256 12257 *,cl*) 12258 # Native MSVC 12259 libname_spec='$name' 12260 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12261 library_names_spec='$libname.dll.lib' 12262 12263 case $build_os in 12264 mingw*) 12265 sys_lib_search_path_spec= 12266 lt_save_ifs=$IFS 12267 IFS=';' 12268 for lt_path in $LIB 12269 do 12270 IFS=$lt_save_ifs 12271 # Let DOS variable expansion print the short 8.3 style file name. 12272 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12273 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12274 done 12275 IFS=$lt_save_ifs 12276 # Convert to MSYS style. 12277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12278 ;; 12279 cygwin*) 12280 # Convert to unix form, then to dos form, then back to unix form 12281 # but this time dos style (no spaces!) so that the unix form looks 12282 # like /cygdrive/c/PROGRA~1:/cygdr... 12283 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12284 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12285 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12286 ;; 12287 *) 12288 sys_lib_search_path_spec=$LIB 12289 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12290 # It is most probably a Windows format PATH. 12291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12292 else 12293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12294 fi 12295 # FIXME: find the short name or the path components, as spaces are 12296 # common. (e.g. "Program Files" -> "PROGRA~1") 12297 ;; 12298 esac 12299 12300 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12301 postinstall_cmds='base_file=`basename \$file`~ 12302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12303 dldir=$destdir/`dirname \$dlpath`~ 12304 test -d \$dldir || mkdir -p \$dldir~ 12305 $install_prog $dir/$dlname \$dldir/$dlname' 12306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12307 dlpath=$dir/\$dldll~ 12308 $RM \$dlpath' 12309 shlibpath_overrides_runpath=yes 12310 dynamic_linker='Win32 link.exe' 12311 ;; 12312 12313 *) 12314 # Assume MSVC wrapper 12315 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12316 dynamic_linker='Win32 ld.exe' 12317 ;; 12318 esac 12319 # FIXME: first we should search . and the directory the executable is in 12320 shlibpath_var=PATH 12321 ;; 12322 12323darwin* | rhapsody*) 12324 dynamic_linker="$host_os dyld" 12325 version_type=darwin 12326 need_lib_prefix=no 12327 need_version=no 12328 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12329 soname_spec='$libname$release$major$shared_ext' 12330 shlibpath_overrides_runpath=yes 12331 shlibpath_var=DYLD_LIBRARY_PATH 12332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12333 12334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12336 ;; 12337 12338dgux*) 12339 version_type=linux # correct to gnu/linux during the next big refactor 12340 need_lib_prefix=no 12341 need_version=no 12342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12343 soname_spec='$libname$release$shared_ext$major' 12344 shlibpath_var=LD_LIBRARY_PATH 12345 ;; 12346 12347freebsd* | dragonfly*) 12348 # DragonFly does not have aout. When/if they implement a new 12349 # versioning mechanism, adjust this. 12350 if test -x /usr/bin/objformat; then 12351 objformat=`/usr/bin/objformat` 12352 else 12353 case $host_os in 12354 freebsd[23].*) objformat=aout ;; 12355 *) objformat=elf ;; 12356 esac 12357 fi 12358 version_type=freebsd-$objformat 12359 case $version_type in 12360 freebsd-elf*) 12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12362 soname_spec='$libname$release$shared_ext$major' 12363 need_version=no 12364 need_lib_prefix=no 12365 ;; 12366 freebsd-*) 12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12368 need_version=yes 12369 ;; 12370 esac 12371 shlibpath_var=LD_LIBRARY_PATH 12372 case $host_os in 12373 freebsd2.*) 12374 shlibpath_overrides_runpath=yes 12375 ;; 12376 freebsd3.[01]* | freebsdelf3.[01]*) 12377 shlibpath_overrides_runpath=yes 12378 hardcode_into_libs=yes 12379 ;; 12380 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12381 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12382 shlibpath_overrides_runpath=no 12383 hardcode_into_libs=yes 12384 ;; 12385 *) # from 4.6 on, and DragonFly 12386 shlibpath_overrides_runpath=yes 12387 hardcode_into_libs=yes 12388 ;; 12389 esac 12390 ;; 12391 12392haiku*) 12393 version_type=linux # correct to gnu/linux during the next big refactor 12394 need_lib_prefix=no 12395 need_version=no 12396 dynamic_linker="$host_os runtime_loader" 12397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12398 soname_spec='$libname$release$shared_ext$major' 12399 shlibpath_var=LIBRARY_PATH 12400 shlibpath_overrides_runpath=no 12401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12402 hardcode_into_libs=yes 12403 ;; 12404 12405hpux9* | hpux10* | hpux11*) 12406 # Give a soname corresponding to the major version so that dld.sl refuses to 12407 # link against other versions. 12408 version_type=sunos 12409 need_lib_prefix=no 12410 need_version=no 12411 case $host_cpu in 12412 ia64*) 12413 shrext_cmds='.so' 12414 hardcode_into_libs=yes 12415 dynamic_linker="$host_os dld.so" 12416 shlibpath_var=LD_LIBRARY_PATH 12417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12419 soname_spec='$libname$release$shared_ext$major' 12420 if test 32 = "$HPUX_IA64_MODE"; then 12421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12422 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12423 else 12424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12425 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12426 fi 12427 ;; 12428 hppa*64*) 12429 shrext_cmds='.sl' 12430 hardcode_into_libs=yes 12431 dynamic_linker="$host_os dld.sl" 12432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12435 soname_spec='$libname$release$shared_ext$major' 12436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12438 ;; 12439 *) 12440 shrext_cmds='.sl' 12441 dynamic_linker="$host_os dld.sl" 12442 shlibpath_var=SHLIB_PATH 12443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12445 soname_spec='$libname$release$shared_ext$major' 12446 ;; 12447 esac 12448 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12449 postinstall_cmds='chmod 555 $lib' 12450 # or fails outright, so override atomically: 12451 install_override_mode=555 12452 ;; 12453 12454interix[3-9]*) 12455 version_type=linux # correct to gnu/linux during the next big refactor 12456 need_lib_prefix=no 12457 need_version=no 12458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12459 soname_spec='$libname$release$shared_ext$major' 12460 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12461 shlibpath_var=LD_LIBRARY_PATH 12462 shlibpath_overrides_runpath=no 12463 hardcode_into_libs=yes 12464 ;; 12465 12466irix5* | irix6* | nonstopux*) 12467 case $host_os in 12468 nonstopux*) version_type=nonstopux ;; 12469 *) 12470 if test yes = "$lt_cv_prog_gnu_ld"; then 12471 version_type=linux # correct to gnu/linux during the next big refactor 12472 else 12473 version_type=irix 12474 fi ;; 12475 esac 12476 need_lib_prefix=no 12477 need_version=no 12478 soname_spec='$libname$release$shared_ext$major' 12479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12480 case $host_os in 12481 irix5* | nonstopux*) 12482 libsuff= shlibsuff= 12483 ;; 12484 *) 12485 case $LD in # libtool.m4 will add one of these switches to LD 12486 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12487 libsuff= shlibsuff= libmagic=32-bit;; 12488 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12489 libsuff=32 shlibsuff=N32 libmagic=N32;; 12490 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12491 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12492 *) libsuff= shlibsuff= libmagic=never-match;; 12493 esac 12494 ;; 12495 esac 12496 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12497 shlibpath_overrides_runpath=no 12498 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12499 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12500 hardcode_into_libs=yes 12501 ;; 12502 12503# No shared lib support for Linux oldld, aout, or coff. 12504linux*oldld* | linux*aout* | linux*coff*) 12505 dynamic_linker=no 12506 ;; 12507 12508linux*android*) 12509 version_type=none # Android doesn't support versioned libraries. 12510 need_lib_prefix=no 12511 need_version=no 12512 library_names_spec='$libname$release$shared_ext' 12513 soname_spec='$libname$release$shared_ext' 12514 finish_cmds= 12515 shlibpath_var=LD_LIBRARY_PATH 12516 shlibpath_overrides_runpath=yes 12517 12518 # This implies no fast_install, which is unacceptable. 12519 # Some rework will be needed to allow for fast_install 12520 # before this can be enabled. 12521 hardcode_into_libs=yes 12522 12523 dynamic_linker='Android linker' 12524 # Don't embed -rpath directories since the linker doesn't support them. 12525 hardcode_libdir_flag_spec='-L$libdir' 12526 ;; 12527 12528# This must be glibc/ELF. 12529linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12530 version_type=linux # correct to gnu/linux during the next big refactor 12531 need_lib_prefix=no 12532 need_version=no 12533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12534 soname_spec='$libname$release$shared_ext$major' 12535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12536 shlibpath_var=LD_LIBRARY_PATH 12537 shlibpath_overrides_runpath=no 12538 12539 # Some binutils ld are patched to set DT_RUNPATH 12540 if test ${lt_cv_shlibpath_overrides_runpath+y} 12541then : 12542 printf %s "(cached) " >&6 12543else $as_nop 12544 lt_cv_shlibpath_overrides_runpath=no 12545 save_LDFLAGS=$LDFLAGS 12546 save_libdir=$libdir 12547 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12548 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12550/* end confdefs.h. */ 12551 12552int 12553main (void) 12554{ 12555 12556 ; 12557 return 0; 12558} 12559_ACEOF 12560if ac_fn_c_try_link "$LINENO" 12561then : 12562 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12563then : 12564 lt_cv_shlibpath_overrides_runpath=yes 12565fi 12566fi 12567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12568 conftest$ac_exeext conftest.$ac_ext 12569 LDFLAGS=$save_LDFLAGS 12570 libdir=$save_libdir 12571 12572fi 12573 12574 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12575 12576 # This implies no fast_install, which is unacceptable. 12577 # Some rework will be needed to allow for fast_install 12578 # before this can be enabled. 12579 hardcode_into_libs=yes 12580 12581 # Ideally, we could use ldconfig to report *all* directores which are 12582 # searched for libraries, however this is still not possible. Aside from not 12583 # being certain /sbin/ldconfig is available, command 12584 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12585 # even though it is searched at run-time. Try to do the best guess by 12586 # appending ld.so.conf contents (and includes) to the search path. 12587 if test -f /etc/ld.so.conf; then 12588 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' ' '` 12589 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12590 fi 12591 12592 # We used to test for /lib/ld.so.1 and disable shared libraries on 12593 # powerpc, because MkLinux only supported shared libraries with the 12594 # GNU dynamic linker. Since this was broken with cross compilers, 12595 # most powerpc-linux boxes support dynamic linking these days and 12596 # people can always --disable-shared, the test was removed, and we 12597 # assume the GNU/Linux dynamic linker is in use. 12598 dynamic_linker='GNU/Linux ld.so' 12599 ;; 12600 12601netbsd*) 12602 version_type=sunos 12603 need_lib_prefix=no 12604 need_version=no 12605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12606 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12608 dynamic_linker='NetBSD (a.out) ld.so' 12609 else 12610 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12611 soname_spec='$libname$release$shared_ext$major' 12612 dynamic_linker='NetBSD ld.elf_so' 12613 fi 12614 shlibpath_var=LD_LIBRARY_PATH 12615 shlibpath_overrides_runpath=yes 12616 hardcode_into_libs=yes 12617 ;; 12618 12619newsos6) 12620 version_type=linux # correct to gnu/linux during the next big refactor 12621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12622 shlibpath_var=LD_LIBRARY_PATH 12623 shlibpath_overrides_runpath=yes 12624 ;; 12625 12626*nto* | *qnx*) 12627 version_type=qnx 12628 need_lib_prefix=no 12629 need_version=no 12630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12631 soname_spec='$libname$release$shared_ext$major' 12632 shlibpath_var=LD_LIBRARY_PATH 12633 shlibpath_overrides_runpath=no 12634 hardcode_into_libs=yes 12635 dynamic_linker='ldqnx.so' 12636 ;; 12637 12638openbsd* | bitrig*) 12639 version_type=sunos 12640 sys_lib_dlsearch_path_spec=/usr/lib 12641 need_lib_prefix=no 12642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12643 need_version=no 12644 else 12645 need_version=yes 12646 fi 12647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12649 shlibpath_var=LD_LIBRARY_PATH 12650 shlibpath_overrides_runpath=yes 12651 ;; 12652 12653os2*) 12654 libname_spec='$name' 12655 version_type=windows 12656 shrext_cmds=.dll 12657 need_version=no 12658 need_lib_prefix=no 12659 # OS/2 can only load a DLL with a base name of 8 characters or less. 12660 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12661 v=$($ECHO $release$versuffix | tr -d .-); 12662 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12663 $ECHO $n$v`$shared_ext' 12664 library_names_spec='${libname}_dll.$libext' 12665 dynamic_linker='OS/2 ld.exe' 12666 shlibpath_var=BEGINLIBPATH 12667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12669 postinstall_cmds='base_file=`basename \$file`~ 12670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12671 dldir=$destdir/`dirname \$dlpath`~ 12672 test -d \$dldir || mkdir -p \$dldir~ 12673 $install_prog $dir/$dlname \$dldir/$dlname~ 12674 chmod a+x \$dldir/$dlname~ 12675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12677 fi' 12678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12679 dlpath=$dir/\$dldll~ 12680 $RM \$dlpath' 12681 ;; 12682 12683osf3* | osf4* | osf5*) 12684 version_type=osf 12685 need_lib_prefix=no 12686 need_version=no 12687 soname_spec='$libname$release$shared_ext$major' 12688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12689 shlibpath_var=LD_LIBRARY_PATH 12690 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12691 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12692 ;; 12693 12694rdos*) 12695 dynamic_linker=no 12696 ;; 12697 12698solaris*) 12699 version_type=linux # correct to gnu/linux during the next big refactor 12700 need_lib_prefix=no 12701 need_version=no 12702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12703 soname_spec='$libname$release$shared_ext$major' 12704 shlibpath_var=LD_LIBRARY_PATH 12705 shlibpath_overrides_runpath=yes 12706 hardcode_into_libs=yes 12707 # ldd complains unless libraries are executable 12708 postinstall_cmds='chmod +x $lib' 12709 ;; 12710 12711sunos4*) 12712 version_type=sunos 12713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12715 shlibpath_var=LD_LIBRARY_PATH 12716 shlibpath_overrides_runpath=yes 12717 if test yes = "$with_gnu_ld"; then 12718 need_lib_prefix=no 12719 fi 12720 need_version=yes 12721 ;; 12722 12723sysv4 | sysv4.3*) 12724 version_type=linux # correct to gnu/linux during the next big refactor 12725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12726 soname_spec='$libname$release$shared_ext$major' 12727 shlibpath_var=LD_LIBRARY_PATH 12728 case $host_vendor in 12729 sni) 12730 shlibpath_overrides_runpath=no 12731 need_lib_prefix=no 12732 runpath_var=LD_RUN_PATH 12733 ;; 12734 siemens) 12735 need_lib_prefix=no 12736 ;; 12737 motorola) 12738 need_lib_prefix=no 12739 need_version=no 12740 shlibpath_overrides_runpath=no 12741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12742 ;; 12743 esac 12744 ;; 12745 12746sysv4*MP*) 12747 if test -d /usr/nec; then 12748 version_type=linux # correct to gnu/linux during the next big refactor 12749 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12750 soname_spec='$libname$shared_ext.$major' 12751 shlibpath_var=LD_LIBRARY_PATH 12752 fi 12753 ;; 12754 12755sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12756 version_type=sco 12757 need_lib_prefix=no 12758 need_version=no 12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12760 soname_spec='$libname$release$shared_ext$major' 12761 shlibpath_var=LD_LIBRARY_PATH 12762 shlibpath_overrides_runpath=yes 12763 hardcode_into_libs=yes 12764 if test yes = "$with_gnu_ld"; then 12765 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12766 else 12767 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12768 case $host_os in 12769 sco3.2v5*) 12770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12771 ;; 12772 esac 12773 fi 12774 sys_lib_dlsearch_path_spec='/usr/lib' 12775 ;; 12776 12777tpf*) 12778 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12779 version_type=linux # correct to gnu/linux during the next big refactor 12780 need_lib_prefix=no 12781 need_version=no 12782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12783 shlibpath_var=LD_LIBRARY_PATH 12784 shlibpath_overrides_runpath=no 12785 hardcode_into_libs=yes 12786 ;; 12787 12788uts4*) 12789 version_type=linux # correct to gnu/linux during the next big refactor 12790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12791 soname_spec='$libname$release$shared_ext$major' 12792 shlibpath_var=LD_LIBRARY_PATH 12793 ;; 12794 12795*) 12796 dynamic_linker=no 12797 ;; 12798esac 12799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12800printf "%s\n" "$dynamic_linker" >&6; } 12801test no = "$dynamic_linker" && can_build_shared=no 12802 12803variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12804if test yes = "$GCC"; then 12805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12806fi 12807 12808if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12809 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12810fi 12811 12812if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12813 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12814fi 12815 12816# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12817configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12818 12819# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12820func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12821 12822# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12823configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12922printf %s "checking how to hardcode library paths into programs... " >&6; } 12923hardcode_action= 12924if test -n "$hardcode_libdir_flag_spec" || 12925 test -n "$runpath_var" || 12926 test yes = "$hardcode_automatic"; then 12927 12928 # We can hardcode non-existent directories. 12929 if test no != "$hardcode_direct" && 12930 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12931 # have to relink, otherwise we might link with an installed library 12932 # when we should be linking with a yet-to-be-installed one 12933 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12934 test no != "$hardcode_minus_L"; then 12935 # Linking always hardcodes the temporary library directory. 12936 hardcode_action=relink 12937 else 12938 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12939 hardcode_action=immediate 12940 fi 12941else 12942 # We cannot hardcode anything, or else we can only hardcode existing 12943 # directories. 12944 hardcode_action=unsupported 12945fi 12946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12947printf "%s\n" "$hardcode_action" >&6; } 12948 12949if test relink = "$hardcode_action" || 12950 test yes = "$inherit_rpath"; then 12951 # Fast installation is not supported 12952 enable_fast_install=no 12953elif test yes = "$shlibpath_overrides_runpath" || 12954 test no = "$enable_shared"; then 12955 # Fast installation is not necessary 12956 enable_fast_install=needless 12957fi 12958 12959 12960 12961 12962 12963 12964 if test yes != "$enable_dlopen"; then 12965 enable_dlopen=unknown 12966 enable_dlopen_self=unknown 12967 enable_dlopen_self_static=unknown 12968else 12969 lt_cv_dlopen=no 12970 lt_cv_dlopen_libs= 12971 12972 case $host_os in 12973 beos*) 12974 lt_cv_dlopen=load_add_on 12975 lt_cv_dlopen_libs= 12976 lt_cv_dlopen_self=yes 12977 ;; 12978 12979 mingw* | pw32* | cegcc*) 12980 lt_cv_dlopen=LoadLibrary 12981 lt_cv_dlopen_libs= 12982 ;; 12983 12984 cygwin*) 12985 lt_cv_dlopen=dlopen 12986 lt_cv_dlopen_libs= 12987 ;; 12988 12989 darwin*) 12990 # if libdl is installed we need to link against it 12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12992printf %s "checking for dlopen in -ldl... " >&6; } 12993if test ${ac_cv_lib_dl_dlopen+y} 12994then : 12995 printf %s "(cached) " >&6 12996else $as_nop 12997 ac_check_lib_save_LIBS=$LIBS 12998LIBS="-ldl $LIBS" 12999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13000/* end confdefs.h. */ 13001 13002/* Override any GCC internal prototype to avoid an error. 13003 Use char because int might match the return type of a GCC 13004 builtin and then its argument prototype would still apply. */ 13005char dlopen (); 13006int 13007main (void) 13008{ 13009return dlopen (); 13010 ; 13011 return 0; 13012} 13013_ACEOF 13014if ac_fn_c_try_link "$LINENO" 13015then : 13016 ac_cv_lib_dl_dlopen=yes 13017else $as_nop 13018 ac_cv_lib_dl_dlopen=no 13019fi 13020rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13021 conftest$ac_exeext conftest.$ac_ext 13022LIBS=$ac_check_lib_save_LIBS 13023fi 13024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13025printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13026if test "x$ac_cv_lib_dl_dlopen" = xyes 13027then : 13028 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13029else $as_nop 13030 13031 lt_cv_dlopen=dyld 13032 lt_cv_dlopen_libs= 13033 lt_cv_dlopen_self=yes 13034 13035fi 13036 13037 ;; 13038 13039 tpf*) 13040 # Don't try to run any link tests for TPF. We know it's impossible 13041 # because TPF is a cross-compiler, and we know how we open DSOs. 13042 lt_cv_dlopen=dlopen 13043 lt_cv_dlopen_libs= 13044 lt_cv_dlopen_self=no 13045 ;; 13046 13047 *) 13048 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13049if test "x$ac_cv_func_shl_load" = xyes 13050then : 13051 lt_cv_dlopen=shl_load 13052else $as_nop 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13054printf %s "checking for shl_load in -ldld... " >&6; } 13055if test ${ac_cv_lib_dld_shl_load+y} 13056then : 13057 printf %s "(cached) " >&6 13058else $as_nop 13059 ac_check_lib_save_LIBS=$LIBS 13060LIBS="-ldld $LIBS" 13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062/* end confdefs.h. */ 13063 13064/* Override any GCC internal prototype to avoid an error. 13065 Use char because int might match the return type of a GCC 13066 builtin and then its argument prototype would still apply. */ 13067char shl_load (); 13068int 13069main (void) 13070{ 13071return shl_load (); 13072 ; 13073 return 0; 13074} 13075_ACEOF 13076if ac_fn_c_try_link "$LINENO" 13077then : 13078 ac_cv_lib_dld_shl_load=yes 13079else $as_nop 13080 ac_cv_lib_dld_shl_load=no 13081fi 13082rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13083 conftest$ac_exeext conftest.$ac_ext 13084LIBS=$ac_check_lib_save_LIBS 13085fi 13086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13087printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13088if test "x$ac_cv_lib_dld_shl_load" = xyes 13089then : 13090 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13091else $as_nop 13092 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13093if test "x$ac_cv_func_dlopen" = xyes 13094then : 13095 lt_cv_dlopen=dlopen 13096else $as_nop 13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13098printf %s "checking for dlopen in -ldl... " >&6; } 13099if test ${ac_cv_lib_dl_dlopen+y} 13100then : 13101 printf %s "(cached) " >&6 13102else $as_nop 13103 ac_check_lib_save_LIBS=$LIBS 13104LIBS="-ldl $LIBS" 13105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13106/* end confdefs.h. */ 13107 13108/* Override any GCC internal prototype to avoid an error. 13109 Use char because int might match the return type of a GCC 13110 builtin and then its argument prototype would still apply. */ 13111char dlopen (); 13112int 13113main (void) 13114{ 13115return dlopen (); 13116 ; 13117 return 0; 13118} 13119_ACEOF 13120if ac_fn_c_try_link "$LINENO" 13121then : 13122 ac_cv_lib_dl_dlopen=yes 13123else $as_nop 13124 ac_cv_lib_dl_dlopen=no 13125fi 13126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13127 conftest$ac_exeext conftest.$ac_ext 13128LIBS=$ac_check_lib_save_LIBS 13129fi 13130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13131printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13132if test "x$ac_cv_lib_dl_dlopen" = xyes 13133then : 13134 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13135else $as_nop 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13137printf %s "checking for dlopen in -lsvld... " >&6; } 13138if test ${ac_cv_lib_svld_dlopen+y} 13139then : 13140 printf %s "(cached) " >&6 13141else $as_nop 13142 ac_check_lib_save_LIBS=$LIBS 13143LIBS="-lsvld $LIBS" 13144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145/* end confdefs.h. */ 13146 13147/* Override any GCC internal prototype to avoid an error. 13148 Use char because int might match the return type of a GCC 13149 builtin and then its argument prototype would still apply. */ 13150char dlopen (); 13151int 13152main (void) 13153{ 13154return dlopen (); 13155 ; 13156 return 0; 13157} 13158_ACEOF 13159if ac_fn_c_try_link "$LINENO" 13160then : 13161 ac_cv_lib_svld_dlopen=yes 13162else $as_nop 13163 ac_cv_lib_svld_dlopen=no 13164fi 13165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13166 conftest$ac_exeext conftest.$ac_ext 13167LIBS=$ac_check_lib_save_LIBS 13168fi 13169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13170printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13171if test "x$ac_cv_lib_svld_dlopen" = xyes 13172then : 13173 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13174else $as_nop 13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13176printf %s "checking for dld_link in -ldld... " >&6; } 13177if test ${ac_cv_lib_dld_dld_link+y} 13178then : 13179 printf %s "(cached) " >&6 13180else $as_nop 13181 ac_check_lib_save_LIBS=$LIBS 13182LIBS="-ldld $LIBS" 13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185 13186/* Override any GCC internal prototype to avoid an error. 13187 Use char because int might match the return type of a GCC 13188 builtin and then its argument prototype would still apply. */ 13189char dld_link (); 13190int 13191main (void) 13192{ 13193return dld_link (); 13194 ; 13195 return 0; 13196} 13197_ACEOF 13198if ac_fn_c_try_link "$LINENO" 13199then : 13200 ac_cv_lib_dld_dld_link=yes 13201else $as_nop 13202 ac_cv_lib_dld_dld_link=no 13203fi 13204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13205 conftest$ac_exeext conftest.$ac_ext 13206LIBS=$ac_check_lib_save_LIBS 13207fi 13208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13209printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13210if test "x$ac_cv_lib_dld_dld_link" = xyes 13211then : 13212 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13213fi 13214 13215 13216fi 13217 13218 13219fi 13220 13221 13222fi 13223 13224 13225fi 13226 13227 13228fi 13229 13230 ;; 13231 esac 13232 13233 if test no = "$lt_cv_dlopen"; then 13234 enable_dlopen=no 13235 else 13236 enable_dlopen=yes 13237 fi 13238 13239 case $lt_cv_dlopen in 13240 dlopen) 13241 save_CPPFLAGS=$CPPFLAGS 13242 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13243 13244 save_LDFLAGS=$LDFLAGS 13245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13246 13247 save_LIBS=$LIBS 13248 LIBS="$lt_cv_dlopen_libs $LIBS" 13249 13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13251printf %s "checking whether a program can dlopen itself... " >&6; } 13252if test ${lt_cv_dlopen_self+y} 13253then : 13254 printf %s "(cached) " >&6 13255else $as_nop 13256 if test yes = "$cross_compiling"; then : 13257 lt_cv_dlopen_self=cross 13258else 13259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13260 lt_status=$lt_dlunknown 13261 cat > conftest.$ac_ext <<_LT_EOF 13262#line $LINENO "configure" 13263#include "confdefs.h" 13264 13265#if HAVE_DLFCN_H 13266#include <dlfcn.h> 13267#endif 13268 13269#include <stdio.h> 13270 13271#ifdef RTLD_GLOBAL 13272# define LT_DLGLOBAL RTLD_GLOBAL 13273#else 13274# ifdef DL_GLOBAL 13275# define LT_DLGLOBAL DL_GLOBAL 13276# else 13277# define LT_DLGLOBAL 0 13278# endif 13279#endif 13280 13281/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13282 find out it does not work in some platform. */ 13283#ifndef LT_DLLAZY_OR_NOW 13284# ifdef RTLD_LAZY 13285# define LT_DLLAZY_OR_NOW RTLD_LAZY 13286# else 13287# ifdef DL_LAZY 13288# define LT_DLLAZY_OR_NOW DL_LAZY 13289# else 13290# ifdef RTLD_NOW 13291# define LT_DLLAZY_OR_NOW RTLD_NOW 13292# else 13293# ifdef DL_NOW 13294# define LT_DLLAZY_OR_NOW DL_NOW 13295# else 13296# define LT_DLLAZY_OR_NOW 0 13297# endif 13298# endif 13299# endif 13300# endif 13301#endif 13302 13303/* When -fvisibility=hidden is used, assume the code has been annotated 13304 correspondingly for the symbols needed. */ 13305#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13306int fnord () __attribute__((visibility("default"))); 13307#endif 13308 13309int fnord () { return 42; } 13310int main () 13311{ 13312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13313 int status = $lt_dlunknown; 13314 13315 if (self) 13316 { 13317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13318 else 13319 { 13320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13321 else puts (dlerror ()); 13322 } 13323 /* dlclose (self); */ 13324 } 13325 else 13326 puts (dlerror ()); 13327 13328 return status; 13329} 13330_LT_EOF 13331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13332 (eval $ac_link) 2>&5 13333 ac_status=$? 13334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13335 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13336 (./conftest; exit; ) >&5 2>/dev/null 13337 lt_status=$? 13338 case x$lt_status in 13339 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13340 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13341 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13342 esac 13343 else : 13344 # compilation failed 13345 lt_cv_dlopen_self=no 13346 fi 13347fi 13348rm -fr conftest* 13349 13350 13351fi 13352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13353printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13354 13355 if test yes = "$lt_cv_dlopen_self"; then 13356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13358printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13359if test ${lt_cv_dlopen_self_static+y} 13360then : 13361 printf %s "(cached) " >&6 13362else $as_nop 13363 if test yes = "$cross_compiling"; then : 13364 lt_cv_dlopen_self_static=cross 13365else 13366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13367 lt_status=$lt_dlunknown 13368 cat > conftest.$ac_ext <<_LT_EOF 13369#line $LINENO "configure" 13370#include "confdefs.h" 13371 13372#if HAVE_DLFCN_H 13373#include <dlfcn.h> 13374#endif 13375 13376#include <stdio.h> 13377 13378#ifdef RTLD_GLOBAL 13379# define LT_DLGLOBAL RTLD_GLOBAL 13380#else 13381# ifdef DL_GLOBAL 13382# define LT_DLGLOBAL DL_GLOBAL 13383# else 13384# define LT_DLGLOBAL 0 13385# endif 13386#endif 13387 13388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13389 find out it does not work in some platform. */ 13390#ifndef LT_DLLAZY_OR_NOW 13391# ifdef RTLD_LAZY 13392# define LT_DLLAZY_OR_NOW RTLD_LAZY 13393# else 13394# ifdef DL_LAZY 13395# define LT_DLLAZY_OR_NOW DL_LAZY 13396# else 13397# ifdef RTLD_NOW 13398# define LT_DLLAZY_OR_NOW RTLD_NOW 13399# else 13400# ifdef DL_NOW 13401# define LT_DLLAZY_OR_NOW DL_NOW 13402# else 13403# define LT_DLLAZY_OR_NOW 0 13404# endif 13405# endif 13406# endif 13407# endif 13408#endif 13409 13410/* When -fvisibility=hidden is used, assume the code has been annotated 13411 correspondingly for the symbols needed. */ 13412#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13413int fnord () __attribute__((visibility("default"))); 13414#endif 13415 13416int fnord () { return 42; } 13417int main () 13418{ 13419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13420 int status = $lt_dlunknown; 13421 13422 if (self) 13423 { 13424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13425 else 13426 { 13427 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13428 else puts (dlerror ()); 13429 } 13430 /* dlclose (self); */ 13431 } 13432 else 13433 puts (dlerror ()); 13434 13435 return status; 13436} 13437_LT_EOF 13438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13439 (eval $ac_link) 2>&5 13440 ac_status=$? 13441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13442 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13443 (./conftest; exit; ) >&5 2>/dev/null 13444 lt_status=$? 13445 case x$lt_status in 13446 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13447 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13448 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13449 esac 13450 else : 13451 # compilation failed 13452 lt_cv_dlopen_self_static=no 13453 fi 13454fi 13455rm -fr conftest* 13456 13457 13458fi 13459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13460printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13461 fi 13462 13463 CPPFLAGS=$save_CPPFLAGS 13464 LDFLAGS=$save_LDFLAGS 13465 LIBS=$save_LIBS 13466 ;; 13467 esac 13468 13469 case $lt_cv_dlopen_self in 13470 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13471 *) enable_dlopen_self=unknown ;; 13472 esac 13473 13474 case $lt_cv_dlopen_self_static in 13475 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13476 *) enable_dlopen_self_static=unknown ;; 13477 esac 13478fi 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496striplib= 13497old_striplib= 13498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13499printf %s "checking whether stripping libraries is possible... " >&6; } 13500if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13501 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13502 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13504printf "%s\n" "yes" >&6; } 13505else 13506# FIXME - insert some real tests, host_os isn't really good enough 13507 case $host_os in 13508 darwin*) 13509 if test -n "$STRIP"; then 13510 striplib="$STRIP -x" 13511 old_striplib="$STRIP -S" 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13513printf "%s\n" "yes" >&6; } 13514 else 13515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13516printf "%s\n" "no" >&6; } 13517 fi 13518 ;; 13519 *) 13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13521printf "%s\n" "no" >&6; } 13522 ;; 13523 esac 13524fi 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 # Report what library types will actually be built 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13539printf %s "checking if libtool supports shared libraries... " >&6; } 13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13541printf "%s\n" "$can_build_shared" >&6; } 13542 13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13544printf %s "checking whether to build shared libraries... " >&6; } 13545 test no = "$can_build_shared" && enable_shared=no 13546 13547 # On AIX, shared libraries and static libraries use the same namespace, and 13548 # are all built from PIC. 13549 case $host_os in 13550 aix3*) 13551 test yes = "$enable_shared" && enable_static=no 13552 if test -n "$RANLIB"; then 13553 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13554 postinstall_cmds='$RANLIB $lib' 13555 fi 13556 ;; 13557 13558 aix[4-9]*) 13559 if test ia64 != "$host_cpu"; then 13560 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13561 yes,aix,yes) ;; # shared object as lib.so file only 13562 yes,svr4,*) ;; # shared object as lib.so archive member only 13563 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13564 esac 13565 fi 13566 ;; 13567 esac 13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13569printf "%s\n" "$enable_shared" >&6; } 13570 13571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13572printf %s "checking whether to build static libraries... " >&6; } 13573 # Make sure either enable_shared or enable_static is yes. 13574 test yes = "$enable_shared" || enable_static=yes 13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13576printf "%s\n" "$enable_static" >&6; } 13577 13578 13579 13580 13581fi 13582ac_ext=c 13583ac_cpp='$CPP $CPPFLAGS' 13584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13586ac_compiler_gnu=$ac_cv_c_compiler_gnu 13587 13588CC=$lt_save_CC 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 ac_config_commands="$ac_config_commands libtool" 13605 13606 13607 13608 13609# Only expand once: 13610 13611 13612 13613 13614 13615 if test "$enable_samples" = "yes"; then 13616 BUILD_SAMPLES_TRUE= 13617 BUILD_SAMPLES_FALSE='#' 13618else 13619 BUILD_SAMPLES_TRUE='#' 13620 BUILD_SAMPLES_FALSE= 13621fi 13622 13623 if test "$enable_libevent_regress" = "yes"; then 13624 BUILD_REGRESS_TRUE= 13625 BUILD_REGRESS_FALSE='#' 13626else 13627 BUILD_REGRESS_TRUE='#' 13628 BUILD_REGRESS_FALSE= 13629fi 13630 13631 13632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 13633printf %s "checking for library containing inet_ntoa... " >&6; } 13634if test ${ac_cv_search_inet_ntoa+y} 13635then : 13636 printf %s "(cached) " >&6 13637else $as_nop 13638 ac_func_search_save_LIBS=$LIBS 13639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13640/* end confdefs.h. */ 13641 13642/* Override any GCC internal prototype to avoid an error. 13643 Use char because int might match the return type of a GCC 13644 builtin and then its argument prototype would still apply. */ 13645char inet_ntoa (); 13646int 13647main (void) 13648{ 13649return inet_ntoa (); 13650 ; 13651 return 0; 13652} 13653_ACEOF 13654for ac_lib in '' nsl 13655do 13656 if test -z "$ac_lib"; then 13657 ac_res="none required" 13658 else 13659 ac_res=-l$ac_lib 13660 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13661 fi 13662 if ac_fn_c_try_link "$LINENO" 13663then : 13664 ac_cv_search_inet_ntoa=$ac_res 13665fi 13666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13667 conftest$ac_exeext 13668 if test ${ac_cv_search_inet_ntoa+y} 13669then : 13670 break 13671fi 13672done 13673if test ${ac_cv_search_inet_ntoa+y} 13674then : 13675 13676else $as_nop 13677 ac_cv_search_inet_ntoa=no 13678fi 13679rm conftest.$ac_ext 13680LIBS=$ac_func_search_save_LIBS 13681fi 13682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 13683printf "%s\n" "$ac_cv_search_inet_ntoa" >&6; } 13684ac_res=$ac_cv_search_inet_ntoa 13685if test "$ac_res" != no 13686then : 13687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13688 13689fi 13690 13691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 13692printf %s "checking for library containing socket... " >&6; } 13693if test ${ac_cv_search_socket+y} 13694then : 13695 printf %s "(cached) " >&6 13696else $as_nop 13697 ac_func_search_save_LIBS=$LIBS 13698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13699/* end confdefs.h. */ 13700 13701/* Override any GCC internal prototype to avoid an error. 13702 Use char because int might match the return type of a GCC 13703 builtin and then its argument prototype would still apply. */ 13704char socket (); 13705int 13706main (void) 13707{ 13708return socket (); 13709 ; 13710 return 0; 13711} 13712_ACEOF 13713for ac_lib in '' socket 13714do 13715 if test -z "$ac_lib"; then 13716 ac_res="none required" 13717 else 13718 ac_res=-l$ac_lib 13719 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13720 fi 13721 if ac_fn_c_try_link "$LINENO" 13722then : 13723 ac_cv_search_socket=$ac_res 13724fi 13725rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13726 conftest$ac_exeext 13727 if test ${ac_cv_search_socket+y} 13728then : 13729 break 13730fi 13731done 13732if test ${ac_cv_search_socket+y} 13733then : 13734 13735else $as_nop 13736 ac_cv_search_socket=no 13737fi 13738rm conftest.$ac_ext 13739LIBS=$ac_func_search_save_LIBS 13740fi 13741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 13742printf "%s\n" "$ac_cv_search_socket" >&6; } 13743ac_res=$ac_cv_search_socket 13744if test "$ac_res" != no 13745then : 13746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13747 13748fi 13749 13750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 13751printf %s "checking for library containing inet_aton... " >&6; } 13752if test ${ac_cv_search_inet_aton+y} 13753then : 13754 printf %s "(cached) " >&6 13755else $as_nop 13756 ac_func_search_save_LIBS=$LIBS 13757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13758/* end confdefs.h. */ 13759 13760/* Override any GCC internal prototype to avoid an error. 13761 Use char because int might match the return type of a GCC 13762 builtin and then its argument prototype would still apply. */ 13763char inet_aton (); 13764int 13765main (void) 13766{ 13767return inet_aton (); 13768 ; 13769 return 0; 13770} 13771_ACEOF 13772for ac_lib in '' resolv 13773do 13774 if test -z "$ac_lib"; then 13775 ac_res="none required" 13776 else 13777 ac_res=-l$ac_lib 13778 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13779 fi 13780 if ac_fn_c_try_link "$LINENO" 13781then : 13782 ac_cv_search_inet_aton=$ac_res 13783fi 13784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13785 conftest$ac_exeext 13786 if test ${ac_cv_search_inet_aton+y} 13787then : 13788 break 13789fi 13790done 13791if test ${ac_cv_search_inet_aton+y} 13792then : 13793 13794else $as_nop 13795 ac_cv_search_inet_aton=no 13796fi 13797rm conftest.$ac_ext 13798LIBS=$ac_func_search_save_LIBS 13799fi 13800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 13801printf "%s\n" "$ac_cv_search_inet_aton" >&6; } 13802ac_res=$ac_cv_search_inet_aton 13803if test "$ac_res" != no 13804then : 13805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13806 13807fi 13808 13809if test "x$enable_clock_gettime" = "xyes"; then 13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13811printf %s "checking for library containing clock_gettime... " >&6; } 13812if test ${ac_cv_search_clock_gettime+y} 13813then : 13814 printf %s "(cached) " >&6 13815else $as_nop 13816 ac_func_search_save_LIBS=$LIBS 13817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819 13820/* Override any GCC internal prototype to avoid an error. 13821 Use char because int might match the return type of a GCC 13822 builtin and then its argument prototype would still apply. */ 13823char clock_gettime (); 13824int 13825main (void) 13826{ 13827return clock_gettime (); 13828 ; 13829 return 0; 13830} 13831_ACEOF 13832for ac_lib in '' rt 13833do 13834 if test -z "$ac_lib"; then 13835 ac_res="none required" 13836 else 13837 ac_res=-l$ac_lib 13838 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13839 fi 13840 if ac_fn_c_try_link "$LINENO" 13841then : 13842 ac_cv_search_clock_gettime=$ac_res 13843fi 13844rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13845 conftest$ac_exeext 13846 if test ${ac_cv_search_clock_gettime+y} 13847then : 13848 break 13849fi 13850done 13851if test ${ac_cv_search_clock_gettime+y} 13852then : 13853 13854else $as_nop 13855 ac_cv_search_clock_gettime=no 13856fi 13857rm conftest.$ac_ext 13858LIBS=$ac_func_search_save_LIBS 13859fi 13860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13861printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 13862ac_res=$ac_cv_search_clock_gettime 13863if test "$ac_res" != no 13864then : 13865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13866 13867fi 13868 13869 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 13870if test "x$ac_cv_func_clock_gettime" = xyes 13871then : 13872 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 13873 13874fi 13875 13876fi 13877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5 13878printf %s "checking for library containing sendfile... " >&6; } 13879if test ${ac_cv_search_sendfile+y} 13880then : 13881 printf %s "(cached) " >&6 13882else $as_nop 13883 ac_func_search_save_LIBS=$LIBS 13884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13885/* end confdefs.h. */ 13886 13887/* Override any GCC internal prototype to avoid an error. 13888 Use char because int might match the return type of a GCC 13889 builtin and then its argument prototype would still apply. */ 13890char sendfile (); 13891int 13892main (void) 13893{ 13894return sendfile (); 13895 ; 13896 return 0; 13897} 13898_ACEOF 13899for ac_lib in '' sendfile 13900do 13901 if test -z "$ac_lib"; then 13902 ac_res="none required" 13903 else 13904 ac_res=-l$ac_lib 13905 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13906 fi 13907 if ac_fn_c_try_link "$LINENO" 13908then : 13909 ac_cv_search_sendfile=$ac_res 13910fi 13911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13912 conftest$ac_exeext 13913 if test ${ac_cv_search_sendfile+y} 13914then : 13915 break 13916fi 13917done 13918if test ${ac_cv_search_sendfile+y} 13919then : 13920 13921else $as_nop 13922 ac_cv_search_sendfile=no 13923fi 13924rm conftest.$ac_ext 13925LIBS=$ac_func_search_save_LIBS 13926fi 13927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5 13928printf "%s\n" "$ac_cv_search_sendfile" >&6; } 13929ac_res=$ac_cv_search_sendfile 13930if test "$ac_res" != no 13931then : 13932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13933 13934fi 13935 13936 13937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5 13938printf %s "checking for WIN32... " >&6; } 13939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13940/* end confdefs.h. */ 13941 13942int 13943main (void) 13944{ 13945 13946#ifndef _WIN32 13947die horribly 13948#endif 13949 13950 13951 ; 13952 return 0; 13953} 13954_ACEOF 13955if ac_fn_c_try_compile "$LINENO" 13956then : 13957 bwin32=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13958printf "%s\n" "yes" >&6; } 13959else $as_nop 13960 bwin32=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13961printf "%s\n" "no" >&6; } 13962 13963fi 13964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13965 13966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5 13967printf %s "checking for MIDIPIX... " >&6; } 13968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13969/* end confdefs.h. */ 13970 13971int 13972main (void) 13973{ 13974 13975#ifndef __midipix__ 13976die horribly 13977#endif 13978 13979 13980 ; 13981 return 0; 13982} 13983_ACEOF 13984if ac_fn_c_try_compile "$LINENO" 13985then : 13986 midipix=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13987printf "%s\n" "yes" >&6; } 13988else $as_nop 13989 midipix=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13990printf "%s\n" "no" >&6; } 13991 13992fi 13993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13994 13995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5 13996printf %s "checking for CYGWIN... " >&6; } 13997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13998/* end confdefs.h. */ 13999 14000int 14001main (void) 14002{ 14003 14004#ifndef __CYGWIN__ 14005die horribly 14006#endif 14007 14008 14009 ; 14010 return 0; 14011} 14012_ACEOF 14013if ac_fn_c_try_compile "$LINENO" 14014then : 14015 cygwin=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14016printf "%s\n" "yes" >&6; } 14017else $as_nop 14018 cygwin=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14019printf "%s\n" "no" >&6; } 14020 14021fi 14022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14023 14024ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 14025if test "x$ac_cv_header_zlib_h" = xyes 14026then : 14027 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 14028 14029fi 14030 14031 14032if test "x$ac_cv_header_zlib_h" = "xyes"; then 14033save_LIBS="$LIBS" 14034LIBS="" 14035ZLIB_LIBS="" 14036have_zlib=no 14037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5 14038printf %s "checking for library containing inflateEnd... " >&6; } 14039if test ${ac_cv_search_inflateEnd+y} 14040then : 14041 printf %s "(cached) " >&6 14042else $as_nop 14043 ac_func_search_save_LIBS=$LIBS 14044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14045/* end confdefs.h. */ 14046 14047/* Override any GCC internal prototype to avoid an error. 14048 Use char because int might match the return type of a GCC 14049 builtin and then its argument prototype would still apply. */ 14050char inflateEnd (); 14051int 14052main (void) 14053{ 14054return inflateEnd (); 14055 ; 14056 return 0; 14057} 14058_ACEOF 14059for ac_lib in '' z 14060do 14061 if test -z "$ac_lib"; then 14062 ac_res="none required" 14063 else 14064 ac_res=-l$ac_lib 14065 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14066 fi 14067 if ac_fn_c_try_link "$LINENO" 14068then : 14069 ac_cv_search_inflateEnd=$ac_res 14070fi 14071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14072 conftest$ac_exeext 14073 if test ${ac_cv_search_inflateEnd+y} 14074then : 14075 break 14076fi 14077done 14078if test ${ac_cv_search_inflateEnd+y} 14079then : 14080 14081else $as_nop 14082 ac_cv_search_inflateEnd=no 14083fi 14084rm conftest.$ac_ext 14085LIBS=$ac_func_search_save_LIBS 14086fi 14087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5 14088printf "%s\n" "$ac_cv_search_inflateEnd" >&6; } 14089ac_res=$ac_cv_search_inflateEnd 14090if test "$ac_res" != no 14091then : 14092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14093 have_zlib=yes 14094 ZLIB_LIBS="$LIBS" 14095 14096printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 14097 14098fi 14099 14100LIBS="$save_LIBS" 14101 14102fi 14103 if test "$have_zlib" = "yes"; then 14104 ZLIB_REGRESS_TRUE= 14105 ZLIB_REGRESS_FALSE='#' 14106else 14107 ZLIB_REGRESS_TRUE='#' 14108 ZLIB_REGRESS_FALSE= 14109fi 14110 14111 14112if test "$bwin32" = true; then 14113 EV_LIB_WS32=-lws2_32 14114 EV_LIB_GDI=-lgdi32 14115else 14116 EV_LIB_WS32= 14117 EV_LIB_GDI= 14118fi 14119 14120 14121 14122 14123# Check whether --enable-largefile was given. 14124if test ${enable_largefile+y} 14125then : 14126 enableval=$enable_largefile; 14127fi 14128 14129if test "$enable_largefile" != no; then 14130 14131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14132printf %s "checking for special C compiler options needed for large files... " >&6; } 14133if test ${ac_cv_sys_largefile_CC+y} 14134then : 14135 printf %s "(cached) " >&6 14136else $as_nop 14137 ac_cv_sys_largefile_CC=no 14138 if test "$GCC" != yes; then 14139 ac_save_CC=$CC 14140 while :; do 14141 # IRIX 6.2 and later do not support large files by default, 14142 # so use the C compiler's -n32 option if that helps. 14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14144/* end confdefs.h. */ 14145#include <sys/types.h> 14146 /* Check that off_t can represent 2**63 - 1 correctly. 14147 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14148 since some C++ compilers masquerading as C compilers 14149 incorrectly reject 9223372036854775807. */ 14150#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14152 && LARGE_OFF_T % 2147483647 == 1) 14153 ? 1 : -1]; 14154int 14155main (void) 14156{ 14157 14158 ; 14159 return 0; 14160} 14161_ACEOF 14162 if ac_fn_c_try_compile "$LINENO" 14163then : 14164 break 14165fi 14166rm -f core conftest.err conftest.$ac_objext conftest.beam 14167 CC="$CC -n32" 14168 if ac_fn_c_try_compile "$LINENO" 14169then : 14170 ac_cv_sys_largefile_CC=' -n32'; break 14171fi 14172rm -f core conftest.err conftest.$ac_objext conftest.beam 14173 break 14174 done 14175 CC=$ac_save_CC 14176 rm -f conftest.$ac_ext 14177 fi 14178fi 14179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14180printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 14181 if test "$ac_cv_sys_largefile_CC" != no; then 14182 CC=$CC$ac_cv_sys_largefile_CC 14183 fi 14184 14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14186printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14187if test ${ac_cv_sys_file_offset_bits+y} 14188then : 14189 printf %s "(cached) " >&6 14190else $as_nop 14191 while :; do 14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14193/* end confdefs.h. */ 14194#include <sys/types.h> 14195 /* Check that off_t can represent 2**63 - 1 correctly. 14196 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14197 since some C++ compilers masquerading as C compilers 14198 incorrectly reject 9223372036854775807. */ 14199#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14201 && LARGE_OFF_T % 2147483647 == 1) 14202 ? 1 : -1]; 14203int 14204main (void) 14205{ 14206 14207 ; 14208 return 0; 14209} 14210_ACEOF 14211if ac_fn_c_try_compile "$LINENO" 14212then : 14213 ac_cv_sys_file_offset_bits=no; break 14214fi 14215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218#define _FILE_OFFSET_BITS 64 14219#include <sys/types.h> 14220 /* Check that off_t can represent 2**63 - 1 correctly. 14221 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14222 since some C++ compilers masquerading as C compilers 14223 incorrectly reject 9223372036854775807. */ 14224#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14226 && LARGE_OFF_T % 2147483647 == 1) 14227 ? 1 : -1]; 14228int 14229main (void) 14230{ 14231 14232 ; 14233 return 0; 14234} 14235_ACEOF 14236if ac_fn_c_try_compile "$LINENO" 14237then : 14238 ac_cv_sys_file_offset_bits=64; break 14239fi 14240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14241 ac_cv_sys_file_offset_bits=unknown 14242 break 14243done 14244fi 14245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14246printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 14247case $ac_cv_sys_file_offset_bits in #( 14248 no | unknown) ;; 14249 *) 14250printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 14251;; 14252esac 14253rm -rf conftest* 14254 if test $ac_cv_sys_file_offset_bits = unknown; then 14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14256printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 14257if test ${ac_cv_sys_large_files+y} 14258then : 14259 printf %s "(cached) " >&6 14260else $as_nop 14261 while :; do 14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14263/* end confdefs.h. */ 14264#include <sys/types.h> 14265 /* Check that off_t can represent 2**63 - 1 correctly. 14266 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14267 since some C++ compilers masquerading as C compilers 14268 incorrectly reject 9223372036854775807. */ 14269#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14270 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14271 && LARGE_OFF_T % 2147483647 == 1) 14272 ? 1 : -1]; 14273int 14274main (void) 14275{ 14276 14277 ; 14278 return 0; 14279} 14280_ACEOF 14281if ac_fn_c_try_compile "$LINENO" 14282then : 14283 ac_cv_sys_large_files=no; break 14284fi 14285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14287/* end confdefs.h. */ 14288#define _LARGE_FILES 1 14289#include <sys/types.h> 14290 /* Check that off_t can represent 2**63 - 1 correctly. 14291 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14292 since some C++ compilers masquerading as C compilers 14293 incorrectly reject 9223372036854775807. */ 14294#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 14295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14296 && LARGE_OFF_T % 2147483647 == 1) 14297 ? 1 : -1]; 14298int 14299main (void) 14300{ 14301 14302 ; 14303 return 0; 14304} 14305_ACEOF 14306if ac_fn_c_try_compile "$LINENO" 14307then : 14308 ac_cv_sys_large_files=1; break 14309fi 14310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14311 ac_cv_sys_large_files=unknown 14312 break 14313done 14314fi 14315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14316printf "%s\n" "$ac_cv_sys_large_files" >&6; } 14317case $ac_cv_sys_large_files in #( 14318 no | unknown) ;; 14319 *) 14320printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 14321;; 14322esac 14323rm -rf conftest* 14324 fi 14325fi 14326 14327 14328 14329 14330ntp_pkgconfig_min_version='0.15.0' 14331if test -n "$ac_tool_prefix"; then 14332 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14333set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14335printf %s "checking for $ac_word... " >&6; } 14336if test ${ac_cv_path_PKG_CONFIG+y} 14337then : 14338 printf %s "(cached) " >&6 14339else $as_nop 14340 case $PKG_CONFIG in 14341 [\\/]* | ?:[\\/]*) 14342 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14343 ;; 14344 *) 14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14346for as_dir in $PATH 14347do 14348 IFS=$as_save_IFS 14349 case $as_dir in #((( 14350 '') as_dir=./ ;; 14351 */) ;; 14352 *) as_dir=$as_dir/ ;; 14353 esac 14354 for ac_exec_ext in '' $ac_executable_extensions; do 14355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14356 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14358 break 2 14359 fi 14360done 14361 done 14362IFS=$as_save_IFS 14363 14364 ;; 14365esac 14366fi 14367PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14368if test -n "$PKG_CONFIG"; then 14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14370printf "%s\n" "$PKG_CONFIG" >&6; } 14371else 14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14373printf "%s\n" "no" >&6; } 14374fi 14375 14376 14377fi 14378if test -z "$ac_cv_path_PKG_CONFIG"; then 14379 ac_pt_PKG_CONFIG=$PKG_CONFIG 14380 # Extract the first word of "pkg-config", so it can be a program name with args. 14381set dummy pkg-config; ac_word=$2 14382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14383printf %s "checking for $ac_word... " >&6; } 14384if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14385then : 14386 printf %s "(cached) " >&6 14387else $as_nop 14388 case $ac_pt_PKG_CONFIG in 14389 [\\/]* | ?:[\\/]*) 14390 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14391 ;; 14392 *) 14393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14394for as_dir in $PATH 14395do 14396 IFS=$as_save_IFS 14397 case $as_dir in #((( 14398 '') as_dir=./ ;; 14399 */) ;; 14400 *) as_dir=$as_dir/ ;; 14401 esac 14402 for ac_exec_ext in '' $ac_executable_extensions; do 14403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14404 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14406 break 2 14407 fi 14408done 14409 done 14410IFS=$as_save_IFS 14411 14412 ;; 14413esac 14414fi 14415ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14416if test -n "$ac_pt_PKG_CONFIG"; then 14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14418printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14419else 14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14421printf "%s\n" "no" >&6; } 14422fi 14423 14424 if test "x$ac_pt_PKG_CONFIG" = x; then 14425 PKG_CONFIG="" 14426 else 14427 case $cross_compiling:$ac_tool_warned in 14428yes:) 14429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14430printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14431ac_tool_warned=yes ;; 14432esac 14433 PKG_CONFIG=$ac_pt_PKG_CONFIG 14434 fi 14435else 14436 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14437fi 14438 14439{ ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;} 14440{ ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 14441 14442case "$PKG_CONFIG" in 14443 /*) 14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5 14445printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; } 14446 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14448printf "%s\n" "yes" >&6; } 14449 else 14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14451printf "%s\n" "no" >&6; } 14452 PKG_CONFIG="" 14453 fi 14454 ;; 14455esac 14456 14457 14458 14459 14460case "$enable_openssl" in 14461 yes) 14462 have_openssl=no 14463 case "$PKG_CONFIG" in 14464 '') 14465 ;; 14466 *) 14467 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null` 14468 case "$OPENSSL_LIBS" in 14469 '') ;; 14470 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 14471 have_openssl=yes 14472 ;; 14473 esac 14474 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null` 14475 ;; 14476 esac 14477 case "$have_openssl" in 14478 yes) ;; 14479 *) 14480 save_LIBS="$LIBS" 14481 LIBS="" 14482 OPENSSL_LIBS="" 14483 for lib in crypto eay32; do 14484 # clear cache 14485 unset ac_cv_search_SSL_new 14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5 14487printf %s "checking for library containing SSL_new... " >&6; } 14488if test ${ac_cv_search_SSL_new+y} 14489then : 14490 printf %s "(cached) " >&6 14491else $as_nop 14492 ac_func_search_save_LIBS=$LIBS 14493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14494/* end confdefs.h. */ 14495 14496/* Override any GCC internal prototype to avoid an error. 14497 Use char because int might match the return type of a GCC 14498 builtin and then its argument prototype would still apply. */ 14499char SSL_new (); 14500int 14501main (void) 14502{ 14503return SSL_new (); 14504 ; 14505 return 0; 14506} 14507_ACEOF 14508for ac_lib in '' ssl ssl32 14509do 14510 if test -z "$ac_lib"; then 14511 ac_res="none required" 14512 else 14513 ac_res=-l$ac_lib 14514 LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS" 14515 fi 14516 if ac_fn_c_try_link "$LINENO" 14517then : 14518 ac_cv_search_SSL_new=$ac_res 14519fi 14520rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14521 conftest$ac_exeext 14522 if test ${ac_cv_search_SSL_new+y} 14523then : 14524 break 14525fi 14526done 14527if test ${ac_cv_search_SSL_new+y} 14528then : 14529 14530else $as_nop 14531 ac_cv_search_SSL_new=no 14532fi 14533rm conftest.$ac_ext 14534LIBS=$ac_func_search_save_LIBS 14535fi 14536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5 14537printf "%s\n" "$ac_cv_search_SSL_new" >&6; } 14538ac_res=$ac_cv_search_SSL_new 14539if test "$ac_res" != no 14540then : 14541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14542 have_openssl=yes 14543 OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD" 14544else $as_nop 14545 have_openssl=no 14546fi 14547 14548 LIBS="$save_LIBS" 14549 test "$have_openssl" = "yes" && break 14550 done 14551 ;; 14552 esac 14553 CPPFLAGS_SAVE=$CPPFLAGS 14554 CPPFLAGS="$CPPFLAGS $OPENSSL_INCS" 14555 for ac_header in openssl/ssl.h 14556do : 14557 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 14558if test "x$ac_cv_header_openssl_ssl_h" = xyes 14559then : 14560 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 14561 14562else $as_nop 14563 have_openssl=no 14564fi 14565 14566done 14567 CPPFLAGS=$CPPFLAGS_SAVE 14568 14569 14570 case "$have_openssl" in 14571 yes) 14572printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h 14573 ;; 14574 *) as_fn_error $? "openssl is a must but can not be found. You should add the \ 14575directory containing \`openssl.pc' to the \`PKG_CONFIG_PATH' environment variable, \ 14576or set \`CFLAGS' and \`LDFLAGS' directly for openssl, or use \`--disable-openssl' \ 14577to disable support for openssl encryption" "$LINENO" 5 14578 ;; 14579 esac 14580 ;; 14581esac 14582 14583# check if we have and should use openssl 14584 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 14585 OPENSSL_TRUE= 14586 OPENSSL_FALSE='#' 14587else 14588 OPENSSL_TRUE='#' 14589 OPENSSL_FALSE= 14590fi 14591 14592 14593 14594ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 14595if test "x$ac_cv_header_arpa_inet_h" = xyes 14596then : 14597 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 14598 14599fi 14600ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 14601if test "x$ac_cv_header_fcntl_h" = xyes 14602then : 14603 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 14604 14605fi 14606ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default" 14607if test "x$ac_cv_header_ifaddrs_h" = xyes 14608then : 14609 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 14610 14611fi 14612ac_fn_c_check_header_compile "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default" 14613if test "x$ac_cv_header_mach_mach_time_h" = xyes 14614then : 14615 printf "%s\n" "#define HAVE_MACH_MACH_TIME_H 1" >>confdefs.h 14616 14617fi 14618ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 14619if test "x$ac_cv_header_mach_mach_h" = xyes 14620then : 14621 printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h 14622 14623fi 14624ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 14625if test "x$ac_cv_header_netdb_h" = xyes 14626then : 14627 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 14628 14629fi 14630ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 14631if test "x$ac_cv_header_netinet_in_h" = xyes 14632then : 14633 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 14634 14635fi 14636ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default" 14637if test "x$ac_cv_header_netinet_in6_h" = xyes 14638then : 14639 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h 14640 14641fi 14642ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" 14643if test "x$ac_cv_header_netinet_tcp_h" = xyes 14644then : 14645 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 14646 14647fi 14648ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 14649if test "x$ac_cv_header_sys_un_h" = xyes 14650then : 14651 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 14652 14653fi 14654ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 14655if test "x$ac_cv_header_poll_h" = xyes 14656then : 14657 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 14658 14659fi 14660ac_fn_c_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default" 14661if test "x$ac_cv_header_port_h" = xyes 14662then : 14663 printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h 14664 14665fi 14666ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 14667if test "x$ac_cv_header_stdarg_h" = xyes 14668then : 14669 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h 14670 14671fi 14672ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" 14673if test "x$ac_cv_header_stddef_h" = xyes 14674then : 14675 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h 14676 14677fi 14678ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default" 14679if test "x$ac_cv_header_sys_devpoll_h" = xyes 14680then : 14681 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h 14682 14683fi 14684ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" 14685if test "x$ac_cv_header_sys_epoll_h" = xyes 14686then : 14687 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h 14688 14689fi 14690ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 14691if test "x$ac_cv_header_sys_event_h" = xyes 14692then : 14693 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h 14694 14695fi 14696ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" 14697if test "x$ac_cv_header_sys_eventfd_h" = xyes 14698then : 14699 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h 14700 14701fi 14702ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 14703if test "x$ac_cv_header_sys_ioctl_h" = xyes 14704then : 14705 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 14706 14707fi 14708ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 14709if test "x$ac_cv_header_sys_mman_h" = xyes 14710then : 14711 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 14712 14713fi 14714ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 14715if test "x$ac_cv_header_sys_param_h" = xyes 14716then : 14717 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 14718 14719fi 14720ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default" 14721if test "x$ac_cv_header_sys_queue_h" = xyes 14722then : 14723 printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h 14724 14725fi 14726ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 14727if test "x$ac_cv_header_sys_resource_h" = xyes 14728then : 14729 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 14730 14731fi 14732ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 14733if test "x$ac_cv_header_sys_select_h" = xyes 14734then : 14735 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 14736 14737fi 14738ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default" 14739if test "x$ac_cv_header_sys_sendfile_h" = xyes 14740then : 14741 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h 14742 14743fi 14744ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 14745if test "x$ac_cv_header_sys_socket_h" = xyes 14746then : 14747 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 14748 14749fi 14750ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 14751if test "x$ac_cv_header_sys_stat_h" = xyes 14752then : 14753 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 14754 14755fi 14756ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 14757if test "x$ac_cv_header_sys_time_h" = xyes 14758then : 14759 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 14760 14761fi 14762ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" 14763if test "x$ac_cv_header_sys_timerfd_h" = xyes 14764then : 14765 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h 14766 14767fi 14768ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 14769if test "x$ac_cv_header_sys_uio_h" = xyes 14770then : 14771 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 14772 14773fi 14774ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 14775if test "x$ac_cv_header_sys_wait_h" = xyes 14776then : 14777 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 14778 14779fi 14780ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 14781if test "x$ac_cv_header_sys_random_h" = xyes 14782then : 14783 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 14784 14785fi 14786ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 14787if test "x$ac_cv_header_errno_h" = xyes 14788then : 14789 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 14790 14791fi 14792ac_fn_c_check_header_compile "$LINENO" "afunix.h" "ac_cv_header_afunix_h" "$ac_includes_default" 14793if test "x$ac_cv_header_afunix_h" = xyes 14794then : 14795 printf "%s\n" "#define HAVE_AFUNIX_H 1" >>confdefs.h 14796 14797fi 14798 14799 14800case "${host_os}" in 14801 linux*) ;; 14802 *) 14803 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " 14804 #ifdef HAVE_SYS_PARAM_H 14805 #include <sys/param.h> 14806 #endif 14807 14808" 14809if test "x$ac_cv_header_sys_sysctl_h" = xyes 14810then : 14811 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h 14812 14813fi 14814 14815esac 14816 14817if test "x$ac_cv_header_sys_queue_h" = "xyes"; then 14818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5 14819printf %s "checking for TAILQ_FOREACH in sys/queue.h... " >&6; } 14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14821/* end confdefs.h. */ 14822 14823#include <sys/queue.h> 14824#ifdef TAILQ_FOREACH 14825 yes 14826#endif 14827 14828_ACEOF 14829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14830 $EGREP "yes" >/dev/null 2>&1 14831then : 14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14833printf "%s\n" "yes" >&6; } 14834 14835printf "%s\n" "#define HAVE_TAILQFOREACH 1" >>confdefs.h 14836 14837else $as_nop 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14839printf "%s\n" "no" >&6; } 14840 14841fi 14842rm -rf conftest* 14843 14844fi 14845 14846if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5 14848printf %s "checking for timeradd in sys/time.h... " >&6; } 14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14850/* end confdefs.h. */ 14851 14852#include <sys/time.h> 14853#ifdef timeradd 14854 yes 14855#endif 14856 14857_ACEOF 14858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14859 $EGREP "yes" >/dev/null 2>&1 14860then : 14861 14862printf "%s\n" "#define HAVE_TIMERADD 1" >>confdefs.h 14863 14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14865printf "%s\n" "yes" >&6; } 14866else $as_nop 14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14868printf "%s\n" "no" >&6; } 14869 14870fi 14871rm -rf conftest* 14872 14873fi 14874 14875if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5 14877printf %s "checking for timercmp in sys/time.h... " >&6; } 14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14879/* end confdefs.h. */ 14880 14881#include <sys/time.h> 14882#ifdef timercmp 14883 yes 14884#endif 14885 14886_ACEOF 14887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14888 $EGREP "yes" >/dev/null 2>&1 14889then : 14890 14891printf "%s\n" "#define HAVE_TIMERCMP 1" >>confdefs.h 14892 14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14894printf "%s\n" "yes" >&6; } 14895else $as_nop 14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897printf "%s\n" "no" >&6; } 14898 14899fi 14900rm -rf conftest* 14901 14902fi 14903 14904if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5 14906printf %s "checking for timerclear in sys/time.h... " >&6; } 14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14908/* end confdefs.h. */ 14909 14910#include <sys/time.h> 14911#ifdef timerclear 14912 yes 14913#endif 14914 14915_ACEOF 14916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14917 $EGREP "yes" >/dev/null 2>&1 14918then : 14919 14920printf "%s\n" "#define HAVE_TIMERCLEAR 1" >>confdefs.h 14921 14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14923printf "%s\n" "yes" >&6; } 14924else $as_nop 14925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14926printf "%s\n" "no" >&6; } 14927 14928fi 14929rm -rf conftest* 14930 14931fi 14932 14933if test "x$ac_cv_header_sys_time_h" = "xyes"; then 14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5 14935printf %s "checking for timerisset in sys/time.h... " >&6; } 14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14937/* end confdefs.h. */ 14938 14939#include <sys/time.h> 14940#ifdef timerisset 14941 yes 14942#endif 14943 14944_ACEOF 14945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14946 $EGREP "yes" >/dev/null 2>&1 14947then : 14948 14949printf "%s\n" "#define HAVE_TIMERISSET 1" >>confdefs.h 14950 14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14952printf "%s\n" "yes" >&6; } 14953else $as_nop 14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14955printf "%s\n" "no" >&6; } 14956 14957fi 14958rm -rf conftest* 14959 14960fi 14961 14962if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then 14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14964printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14965if test ${ac_cv_c_undeclared_builtin_options+y} 14966then : 14967 printf %s "(cached) " >&6 14968else $as_nop 14969 ac_save_CFLAGS=$CFLAGS 14970 ac_cv_c_undeclared_builtin_options='cannot detect' 14971 for ac_arg in '' -fno-builtin; do 14972 CFLAGS="$ac_save_CFLAGS $ac_arg" 14973 # This test program should *not* compile successfully. 14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975/* end confdefs.h. */ 14976 14977int 14978main (void) 14979{ 14980(void) strchr; 14981 ; 14982 return 0; 14983} 14984_ACEOF 14985if ac_fn_c_try_compile "$LINENO" 14986then : 14987 14988else $as_nop 14989 # This test program should compile successfully. 14990 # No library function is consistently available on 14991 # freestanding implementations, so test against a dummy 14992 # declaration. Include always-available headers on the 14993 # off chance that they somehow elicit warnings. 14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995/* end confdefs.h. */ 14996#include <float.h> 14997#include <limits.h> 14998#include <stdarg.h> 14999#include <stddef.h> 15000extern void ac_decl (int, char *); 15001 15002int 15003main (void) 15004{ 15005(void) ac_decl (0, (char *) 0); 15006 (void) ac_decl; 15007 15008 ; 15009 return 0; 15010} 15011_ACEOF 15012if ac_fn_c_try_compile "$LINENO" 15013then : 15014 if test x"$ac_arg" = x 15015then : 15016 ac_cv_c_undeclared_builtin_options='none needed' 15017else $as_nop 15018 ac_cv_c_undeclared_builtin_options=$ac_arg 15019fi 15020 break 15021fi 15022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15023fi 15024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15025 done 15026 CFLAGS=$ac_save_CFLAGS 15027 15028fi 15029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 15030printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 15031 case $ac_cv_c_undeclared_builtin_options in #( 15032 'cannot detect') : 15033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15034printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15035as_fn_error $? "cannot make $CC report undeclared builtins 15036See \`config.log' for more details" "$LINENO" 5; } ;; #( 15037 'none needed') : 15038 ac_c_undeclared_builtin_options='' ;; #( 15039 *) : 15040 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 15041esac 15042 15043ac_fn_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h> 15044 #include <sys/sysctl.h> 15045 15046" "$ac_c_undeclared_builtin_options" "CFLAGS" 15047if test "x$ac_cv_have_decl_CTL_KERN" = xyes 15048then : 15049 ac_have_decl=1 15050else $as_nop 15051 ac_have_decl=0 15052fi 15053printf "%s\n" "#define HAVE_DECL_CTL_KERN $ac_have_decl" >>confdefs.h 15054ac_fn_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h> 15055 #include <sys/sysctl.h> 15056 15057" "$ac_c_undeclared_builtin_options" "CFLAGS" 15058if test "x$ac_cv_have_decl_KERN_ARND" = xyes 15059then : 15060 ac_have_decl=1 15061else $as_nop 15062 ac_have_decl=0 15063fi 15064printf "%s\n" "#define HAVE_DECL_KERN_ARND $ac_have_decl" >>confdefs.h 15065 15066fi 15067 15068 if test x$bwin32 = xtrue; then 15069 BUILD_WIN32_TRUE= 15070 BUILD_WIN32_FALSE='#' 15071else 15072 BUILD_WIN32_TRUE='#' 15073 BUILD_WIN32_FALSE= 15074fi 15075 15076 if test x$cygwin = xtrue; then 15077 BUILD_CYGWIN_TRUE= 15078 BUILD_CYGWIN_FALSE='#' 15079else 15080 BUILD_CYGWIN_TRUE='#' 15081 BUILD_CYGWIN_FALSE= 15082fi 15083 15084 if test x$midipix = xtrue; then 15085 BUILD_MIDIPIX_TRUE= 15086 BUILD_MIDIPIX_FALSE='#' 15087else 15088 BUILD_MIDIPIX_TRUE='#' 15089 BUILD_MIDIPIX_FALSE= 15090fi 15091 15092 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then 15093 BUILD_WITH_NO_UNDEFINED_TRUE= 15094 BUILD_WITH_NO_UNDEFINED_FALSE='#' 15095else 15096 BUILD_WITH_NO_UNDEFINED_TRUE='#' 15097 BUILD_WITH_NO_UNDEFINED_FALSE= 15098fi 15099 15100 15101if test x$bwin32 = xtrue; then 15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 15103printf %s "checking for main in -lws2_32... " >&6; } 15104if test ${ac_cv_lib_ws2_32_main+y} 15105then : 15106 printf %s "(cached) " >&6 15107else $as_nop 15108 ac_check_lib_save_LIBS=$LIBS 15109LIBS="-lws2_32 $LIBS" 15110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15111/* end confdefs.h. */ 15112 15113 15114int 15115main (void) 15116{ 15117return main (); 15118 ; 15119 return 0; 15120} 15121_ACEOF 15122if ac_fn_c_try_link "$LINENO" 15123then : 15124 ac_cv_lib_ws2_32_main=yes 15125else $as_nop 15126 ac_cv_lib_ws2_32_main=no 15127fi 15128rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15129 conftest$ac_exeext conftest.$ac_ext 15130LIBS=$ac_check_lib_save_LIBS 15131fi 15132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 15133printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 15134if test "x$ac_cv_lib_ws2_32_main" = xyes 15135then : 15136 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 15137 15138 LIBS="-lws2_32 $LIBS" 15139 15140fi 15141 15142fi 15143 15144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15145printf %s "checking for an ANSI C-conforming const... " >&6; } 15146if test ${ac_cv_c_const+y} 15147then : 15148 printf %s "(cached) " >&6 15149else $as_nop 15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15151/* end confdefs.h. */ 15152 15153int 15154main (void) 15155{ 15156 15157#ifndef __cplusplus 15158 /* Ultrix mips cc rejects this sort of thing. */ 15159 typedef int charset[2]; 15160 const charset cs = { 0, 0 }; 15161 /* SunOS 4.1.1 cc rejects this. */ 15162 char const *const *pcpcc; 15163 char **ppc; 15164 /* NEC SVR4.0.2 mips cc rejects this. */ 15165 struct point {int x, y;}; 15166 static struct point const zero = {0,0}; 15167 /* IBM XL C 1.02.0.0 rejects this. 15168 It does not let you subtract one const X* pointer from another in 15169 an arm of an if-expression whose if-part is not a constant 15170 expression */ 15171 const char *g = "string"; 15172 pcpcc = &g + (g ? g-g : 0); 15173 /* HPUX 7.0 cc rejects these. */ 15174 ++pcpcc; 15175 ppc = (char**) pcpcc; 15176 pcpcc = (char const *const *) ppc; 15177 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15178 char tx; 15179 char *t = &tx; 15180 char const *s = 0 ? (char *) 0 : (char const *) 0; 15181 15182 *t++ = 0; 15183 if (s) return 0; 15184 } 15185 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15186 int x[] = {25, 17}; 15187 const int *foo = &x[0]; 15188 ++foo; 15189 } 15190 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15191 typedef const int *iptr; 15192 iptr p = 0; 15193 ++p; 15194 } 15195 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 15196 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15197 struct s { int j; const int *ap[3]; } bx; 15198 struct s *b = &bx; b->j = 5; 15199 } 15200 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15201 const int foo = 10; 15202 if (!foo) return 0; 15203 } 15204 return !cs[0] && !zero.x; 15205#endif 15206 15207 ; 15208 return 0; 15209} 15210_ACEOF 15211if ac_fn_c_try_compile "$LINENO" 15212then : 15213 ac_cv_c_const=yes 15214else $as_nop 15215 ac_cv_c_const=no 15216fi 15217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15218fi 15219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15220printf "%s\n" "$ac_cv_c_const" >&6; } 15221if test $ac_cv_c_const = no; then 15222 15223printf "%s\n" "#define const /**/" >>confdefs.h 15224 15225fi 15226 15227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15228printf %s "checking for inline... " >&6; } 15229if test ${ac_cv_c_inline+y} 15230then : 15231 printf %s "(cached) " >&6 15232else $as_nop 15233 ac_cv_c_inline=no 15234for ac_kw in inline __inline__ __inline; do 15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15236/* end confdefs.h. */ 15237#ifndef __cplusplus 15238typedef int foo_t; 15239static $ac_kw foo_t static_foo (void) {return 0; } 15240$ac_kw foo_t foo (void) {return 0; } 15241#endif 15242 15243_ACEOF 15244if ac_fn_c_try_compile "$LINENO" 15245then : 15246 ac_cv_c_inline=$ac_kw 15247fi 15248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15249 test "$ac_cv_c_inline" != no && break 15250done 15251 15252fi 15253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15254printf "%s\n" "$ac_cv_c_inline" >&6; } 15255 15256case $ac_cv_c_inline in 15257 inline | yes) ;; 15258 *) 15259 case $ac_cv_c_inline in 15260 no) ac_val=;; 15261 *) ac_val=$ac_cv_c_inline;; 15262 esac 15263 cat >>confdefs.h <<_ACEOF 15264#ifndef __cplusplus 15265#define inline $ac_val 15266#endif 15267_ACEOF 15268 ;; 15269esac 15270 15271 15272 15273# Obsolete code to be removed. 15274if test $ac_cv_header_sys_time_h = yes; then 15275 15276printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 15277 15278fi 15279# End of obsolete code. 15280 15281 15282ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 15283if test "x$ac_cv_func_accept4" = xyes 15284then : 15285 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 15286 15287fi 15288ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 15289if test "x$ac_cv_func_arc4random" = xyes 15290then : 15291 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 15292 15293fi 15294ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 15295if test "x$ac_cv_func_arc4random_buf" = xyes 15296then : 15297 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 15298 15299fi 15300ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom" 15301if test "x$ac_cv_func_arc4random_addrandom" = xyes 15302then : 15303 printf "%s\n" "#define HAVE_ARC4RANDOM_ADDRANDOM 1" >>confdefs.h 15304 15305fi 15306ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" 15307if test "x$ac_cv_func_eventfd" = xyes 15308then : 15309 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h 15310 15311fi 15312ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1" 15313if test "x$ac_cv_func_epoll_create1" = xyes 15314then : 15315 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 15316 15317fi 15318ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 15319if test "x$ac_cv_func_fcntl" = xyes 15320then : 15321 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 15322 15323fi 15324ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 15325if test "x$ac_cv_func_getegid" = xyes 15326then : 15327 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h 15328 15329fi 15330ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 15331if test "x$ac_cv_func_geteuid" = xyes 15332then : 15333 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 15334 15335fi 15336ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 15337if test "x$ac_cv_func_getifaddrs" = xyes 15338then : 15339 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 15340 15341fi 15342ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 15343if test "x$ac_cv_func_gettimeofday" = xyes 15344then : 15345 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 15346 15347fi 15348ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 15349if test "x$ac_cv_func_issetugid" = xyes 15350then : 15351 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h 15352 15353fi 15354ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time" 15355if test "x$ac_cv_func_mach_absolute_time" = xyes 15356then : 15357 printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h 15358 15359fi 15360ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 15361if test "x$ac_cv_func_mmap" = xyes 15362then : 15363 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 15364 15365fi 15366ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 15367if test "x$ac_cv_func_nanosleep" = xyes 15368then : 15369 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 15370 15371fi 15372ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe" 15373if test "x$ac_cv_func_pipe" = xyes 15374then : 15375 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h 15376 15377fi 15378ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 15379if test "x$ac_cv_func_pipe2" = xyes 15380then : 15381 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 15382 15383fi 15384ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 15385if test "x$ac_cv_func_putenv" = xyes 15386then : 15387 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h 15388 15389fi 15390ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 15391if test "x$ac_cv_func_sendfile" = xyes 15392then : 15393 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h 15394 15395fi 15396ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 15397if test "x$ac_cv_func_setenv" = xyes 15398then : 15399 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h 15400 15401fi 15402ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 15403if test "x$ac_cv_func_setrlimit" = xyes 15404then : 15405 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h 15406 15407fi 15408ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 15409if test "x$ac_cv_func_sigaction" = xyes 15410then : 15411 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 15412 15413fi 15414ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal" 15415if test "x$ac_cv_func_signal" = xyes 15416then : 15417 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h 15418 15419fi 15420ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" 15421if test "x$ac_cv_func_splice" = xyes 15422then : 15423 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h 15424 15425fi 15426ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15427if test "x$ac_cv_func_strlcpy" = xyes 15428then : 15429 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 15430 15431fi 15432ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 15433if test "x$ac_cv_func_strsep" = xyes 15434then : 15435 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 15436 15437fi 15438ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 15439if test "x$ac_cv_func_strtok_r" = xyes 15440then : 15441 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h 15442 15443fi 15444ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 15445if test "x$ac_cv_func_strtoll" = xyes 15446then : 15447 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 15448 15449fi 15450ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" 15451if test "x$ac_cv_func_sysctl" = xyes 15452then : 15453 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h 15454 15455fi 15456ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create" 15457if test "x$ac_cv_func_timerfd_create" = xyes 15458then : 15459 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h 15460 15461fi 15462ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 15463if test "x$ac_cv_func_umask" = xyes 15464then : 15465 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h 15466 15467fi 15468ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 15469if test "x$ac_cv_func_unsetenv" = xyes 15470then : 15471 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h 15472 15473fi 15474ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 15475if test "x$ac_cv_func_usleep" = xyes 15476then : 15477 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h 15478 15479fi 15480ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 15481if test "x$ac_cv_func_vasprintf" = xyes 15482then : 15483 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 15484 15485fi 15486ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 15487if test "x$ac_cv_func_getrandom" = xyes 15488then : 15489 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 15490 15491fi 15492 15493 15494if test x$bwin32 = xtrue 15495then : 15496 15497 for ac_func in _gmtime64_s 15498do : 15499 ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s" 15500if test "x$ac_cv_func__gmtime64_s" = xyes 15501then : 15502 printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h 15503 15504else $as_nop 15505 ac_fn_c_check_func "$LINENO" "_gmtime64" "ac_cv_func__gmtime64" 15506if test "x$ac_cv_func__gmtime64" = xyes 15507then : 15508 printf "%s\n" "#define HAVE__GMTIME64 1" >>confdefs.h 15509 15510fi 15511 15512fi 15513 15514done 15515 15516fi 15517 15518 if test x"$ac_cv_func_strlcpy" = xno; then 15519 STRLCPY_IMPL_TRUE= 15520 STRLCPY_IMPL_FALSE='#' 15521else 15522 STRLCPY_IMPL_TRUE='#' 15523 STRLCPY_IMPL_FALSE= 15524fi 15525 15526 15527 15528 15529if test x$bwin32 = xtrue 15530then : 15531 if test "x#ifdef _WIN32 15532 #include <winsock2.h> 15533 #include <ws2tcpip.h> 15534 #endif" = "x" 15535then : 15536 as_fn_error $? "header not privided" "$LINENO" 5 15537fi 15538 if test "x#ifdef _WIN32 15539 #include <winsock2.h> 15540 #include <ws2tcpip.h> 15541 #endif" = "x" 15542then : 15543 as_fn_error $? "header not privided" "$LINENO" 5 15544fi 15545 15546 ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32 15547 #include <winsock2.h> 15548 #include <ws2tcpip.h> 15549 #endif 15550" "$ac_c_undeclared_builtin_options" "CFLAGS" 15551if test "x$ac_cv_have_decl_decl" = xyes 15552then : 15553 15554printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 15555 15556fi 15557 if test "x#ifdef _WIN32 15558 #include <winsock2.h> 15559 #include <ws2tcpip.h> 15560 #endif" = "x" 15561then : 15562 as_fn_error $? "header not privided" "$LINENO" 5 15563fi 15564 15565 ac_fn_check_decl "$LINENO" "getprotobynumber" "ac_cv_have_decl_decl" " #ifdef _WIN32 15566 #include <winsock2.h> 15567 #include <ws2tcpip.h> 15568 #endif 15569" "$ac_c_undeclared_builtin_options" "CFLAGS" 15570if test "x$ac_cv_have_decl_decl" = xyes 15571then : 15572 15573printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h 15574 15575fi 15576 if test "x#ifdef _WIN32 15577 #include <winsock2.h> 15578 #include <ws2tcpip.h> 15579 #endif" = "x" 15580then : 15581 as_fn_error $? "header not privided" "$LINENO" 5 15582fi 15583 15584 ac_fn_check_decl "$LINENO" "getservbyname" "ac_cv_have_decl_decl" " #ifdef _WIN32 15585 #include <winsock2.h> 15586 #include <ws2tcpip.h> 15587 #endif 15588" "$ac_c_undeclared_builtin_options" "CFLAGS" 15589if test "x$ac_cv_have_decl_decl" = xyes 15590then : 15591 15592printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 15593 15594fi 15595 if test "x#ifdef _WIN32 15596 #include <winsock2.h> 15597 #include <ws2tcpip.h> 15598 #endif" = "x" 15599then : 15600 as_fn_error $? "header not privided" "$LINENO" 5 15601fi 15602 15603 ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_decl" " #ifdef _WIN32 15604 #include <winsock2.h> 15605 #include <ws2tcpip.h> 15606 #endif 15607" "$ac_c_undeclared_builtin_options" "CFLAGS" 15608if test "x$ac_cv_have_decl_decl" = xyes 15609then : 15610 15611printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 15612 15613fi 15614 if test "x#ifdef _WIN32 15615 #include <winsock2.h> 15616 #include <ws2tcpip.h> 15617 #endif" = "x" 15618then : 15619 as_fn_error $? "header not privided" "$LINENO" 5 15620fi 15621 15622 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_decl" " #ifdef _WIN32 15623 #include <winsock2.h> 15624 #include <ws2tcpip.h> 15625 #endif 15626" "$ac_c_undeclared_builtin_options" "CFLAGS" 15627if test "x$ac_cv_have_decl_decl" = xyes 15628then : 15629 15630printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 15631 15632fi 15633 if test "x#ifdef _WIN32 15634 #include <winsock2.h> 15635 #include <ws2tcpip.h> 15636 #endif" = "x" 15637then : 15638 as_fn_error $? "header not privided" "$LINENO" 5 15639fi 15640 15641 ac_fn_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32 15642 #include <winsock2.h> 15643 #include <ws2tcpip.h> 15644 #endif 15645" "$ac_c_undeclared_builtin_options" "CFLAGS" 15646if test "x$ac_cv_have_decl_decl" = xyes 15647then : 15648 15649printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 15650 15651fi 15652 15653 15654else $as_nop 15655 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 15656if test "x$ac_cv_func_getnameinfo" = xyes 15657then : 15658 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 15659 15660fi 15661ac_fn_c_check_func "$LINENO" "getprotobynumber" "ac_cv_func_getprotobynumber" 15662if test "x$ac_cv_func_getprotobynumber" = xyes 15663then : 15664 printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h 15665 15666fi 15667ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" 15668if test "x$ac_cv_func_getservbyname" = xyes 15669then : 15670 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 15671 15672fi 15673ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 15674if test "x$ac_cv_func_inet_ntop" = xyes 15675then : 15676 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 15677 15678fi 15679ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 15680if test "x$ac_cv_func_inet_pton" = xyes 15681then : 15682 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 15683 15684fi 15685 15686 15687fi 15688 15689 15690 15691if test x$bwin32 = xfalse 15692then : 15693 15694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 15695printf %s "checking for getaddrinfo... " >&6; } 15696if test ${libevent_cv_getaddrinfo+y} 15697then : 15698 printf %s "(cached) " >&6 15699else $as_nop 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701/* end confdefs.h. */ 15702 15703 #ifdef HAVE_NETDB_H 15704 #include <netdb.h> 15705 #endif 15706 15707int 15708main (void) 15709{ 15710 15711 getaddrinfo; 15712 15713 15714 ; 15715 return 0; 15716} 15717_ACEOF 15718if ac_fn_c_try_link "$LINENO" 15719then : 15720 libevent_cv_getaddrinfo=yes 15721else $as_nop 15722 libevent_cv_getaddrinfo=no 15723 15724fi 15725rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15726 conftest$ac_exeext conftest.$ac_ext 15727 15728fi 15729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5 15730printf "%s\n" "$libevent_cv_getaddrinfo" >&6; } 15731if test "$libevent_cv_getaddrinfo" = "yes" ; then 15732 15733printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 15734 15735else 15736 15737# Check for gethostbyname_r in all its glorious incompatible versions. 15738# (This is cut-and-pasted from Tor, which based its logic on 15739# Python's configure.in.) 15740 15741 15742ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 15743if test "x$ac_cv_func_gethostbyname_r" = xyes 15744then : 15745 15746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5 15747printf %s "checking how many arguments gethostbyname_r() wants... " >&6; } 15748 OLD_CFLAGS=$CFLAGS 15749 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752 15753#include <netdb.h> 15754 15755int 15756main (void) 15757{ 15758 15759 char *cp1, *cp2; 15760 struct hostent *h1, *h2; 15761 int i1, i2; 15762 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); 15763 15764 ; 15765 return 0; 15766} 15767_ACEOF 15768if ac_fn_c_try_compile "$LINENO" 15769then : 15770 15771 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15772 15773 15774printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 15775 15776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 6" >&5 15777printf "%s\n" "6" >&6; } 15778 15779else $as_nop 15780 15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782/* end confdefs.h. */ 15783 15784#include <netdb.h> 15785 15786int 15787main (void) 15788{ 15789 15790 char *cp1, *cp2; 15791 struct hostent *h1; 15792 int i1, i2; 15793 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); 15794 15795 ; 15796 return 0; 15797} 15798_ACEOF 15799if ac_fn_c_try_compile "$LINENO" 15800then : 15801 15802 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15803 15804 15805printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 15806 15807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 5" >&5 15808printf "%s\n" "5" >&6; } 15809 15810else $as_nop 15811 15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15813/* end confdefs.h. */ 15814 15815#include <netdb.h> 15816 15817int 15818main (void) 15819{ 15820 15821 char *cp1; 15822 struct hostent *h1; 15823 struct hostent_data hd; 15824 (void) gethostbyname_r(cp1,h1,&hd); 15825 15826 ; 15827 return 0; 15828} 15829_ACEOF 15830if ac_fn_c_try_compile "$LINENO" 15831then : 15832 15833 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15834 15835 15836printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 15837 15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 3" >&5 15839printf "%s\n" "3" >&6; } 15840 15841else $as_nop 15842 15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 0" >&5 15844printf "%s\n" "0" >&6; } 15845 15846fi 15847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15848 15849fi 15850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15851 15852fi 15853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15854 CFLAGS=$OLD_CFLAGS 15855 15856fi 15857 15858 15859fi 15860 15861fi 15862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5 15863printf %s "checking for F_SETFD in fcntl.h... " >&6; } 15864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15865/* end confdefs.h. */ 15866 15867#define _GNU_SOURCE 1 15868#include <fcntl.h> 15869#ifdef F_SETFD 15870yes 15871#endif 15872 15873_ACEOF 15874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15875 $EGREP "yes" >/dev/null 2>&1 15876then : 15877 15878printf "%s\n" "#define HAVE_SETFD 1" >>confdefs.h 15879 15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15881printf "%s\n" "yes" >&6; } 15882else $as_nop 15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15884printf "%s\n" "no" >&6; } 15885fi 15886rm -rf conftest* 15887 15888 15889needsignal=no 15890haveselect=no 15891if test x$bwin32 != xtrue; then 15892 15893 for ac_func in select 15894do : 15895 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 15896if test "x$ac_cv_func_select" = xyes 15897then : 15898 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 15899 haveselect=yes 15900fi 15901 15902done 15903 if test "x$haveselect" = "xyes" ; then 15904 needsignal=yes 15905 fi 15906fi 15907 if test "x$haveselect" = "xyes"; then 15908 SELECT_BACKEND_TRUE= 15909 SELECT_BACKEND_FALSE='#' 15910else 15911 SELECT_BACKEND_TRUE='#' 15912 SELECT_BACKEND_FALSE= 15913fi 15914 15915 15916havepoll=no 15917 15918 for ac_func in poll 15919do : 15920 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 15921if test "x$ac_cv_func_poll" = xyes 15922then : 15923 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 15924 havepoll=yes 15925fi 15926 15927done 15928if test "x$havepoll" = "xyes" ; then 15929 needsignal=yes 15930fi 15931 if test "x$havepoll" = "xyes"; then 15932 POLL_BACKEND_TRUE= 15933 POLL_BACKEND_FALSE='#' 15934else 15935 POLL_BACKEND_TRUE='#' 15936 POLL_BACKEND_FALSE= 15937fi 15938 15939 15940havedevpoll=no 15941if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 15942 15943printf "%s\n" "#define HAVE_DEVPOLL 1" >>confdefs.h 15944 15945fi 15946 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then 15947 DEVPOLL_BACKEND_TRUE= 15948 DEVPOLL_BACKEND_FALSE='#' 15949else 15950 DEVPOLL_BACKEND_TRUE='#' 15951 DEVPOLL_BACKEND_FALSE= 15952fi 15953 15954 15955havekqueue=no 15956if test "x$ac_cv_header_sys_event_h" = "xyes"; then 15957 15958 for ac_func in kqueue 15959do : 15960 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" 15961if test "x$ac_cv_func_kqueue" = xyes 15962then : 15963 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h 15964 havekqueue=yes 15965fi 15966 15967done 15968 if test "x$havekqueue" = "xyes" ; then 15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5 15970printf %s "checking for working kqueue... " >&6; } 15971 if test "$cross_compiling" = yes 15972then : 15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15974printf "%s\n" "no" >&6; } 15975 15976else $as_nop 15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15978/* end confdefs.h. */ 15979 15980#ifdef HAVE_STDLIB_H 15981#include <stdlib.h> 15982#endif 15983#ifdef HAVE_STRING_H 15984#include <string.h> 15985#endif 15986#include <sys/types.h> 15987#include <sys/time.h> 15988#include <sys/event.h> 15989#include <stdio.h> 15990#include <unistd.h> 15991#include <fcntl.h> 15992 15993int 15994main (void) 15995{ 15996 15997 int kq; 15998 int n; 15999 int fd[2]; 16000 struct kevent ev; 16001 struct timespec ts; 16002 char buf[80000]; 16003 16004 if (pipe(fd) == -1) 16005 return 1; 16006 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1) 16007 return 1; 16008 16009 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf)) 16010 ; 16011 16012 if ((kq = kqueue()) == -1) 16013 return 1; 16014 16015 memset(&ev, 0, sizeof(ev)); 16016 ev.ident = fd[1]; 16017 ev.filter = EVFILT_WRITE; 16018 ev.flags = EV_ADD | EV_ENABLE; 16019 n = kevent(kq, &ev, 1, NULL, 0, NULL); 16020 if (n == -1) 16021 return 1; 16022 16023 read(fd[0], buf, sizeof(buf)); 16024 16025 ts.tv_sec = 0; 16026 ts.tv_nsec = 0; 16027 n = kevent(kq, NULL, 0, &ev, 1, &ts); 16028 if (n == -1 || n == 0) 16029 return 1; 16030 16031 return 0; 16032 16033 16034 ; 16035 return 0; 16036} 16037_ACEOF 16038if ac_fn_c_try_run "$LINENO" 16039then : 16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16041printf "%s\n" "yes" >&6; } 16042 16043printf "%s\n" "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h 16044 16045 havekqueue=yes 16046 16047else $as_nop 16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16049printf "%s\n" "no" >&6; } 16050fi 16051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16052 conftest.$ac_objext conftest.beam conftest.$ac_ext 16053fi 16054 16055 fi 16056fi 16057 if test "x$havekqueue" = "xyes"; then 16058 KQUEUE_BACKEND_TRUE= 16059 KQUEUE_BACKEND_FALSE='#' 16060else 16061 KQUEUE_BACKEND_TRUE='#' 16062 KQUEUE_BACKEND_FALSE= 16063fi 16064 16065 16066haveepollsyscall=no 16067haveepoll=no 16068 16069 for ac_func in epoll_ctl 16070do : 16071 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" 16072if test "x$ac_cv_func_epoll_ctl" = xyes 16073then : 16074 printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h 16075 haveepoll=yes 16076fi 16077 16078done 16079if test "x$haveepoll" = "xyes" ; then 16080 16081printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 16082 16083 needsignal=yes 16084fi 16085if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then 16086 if test "x$haveepoll" = "xno" ; then 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 16088printf %s "checking for epoll system call... " >&6; } 16089 if test "$cross_compiling" = yes 16090then : 16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16092printf "%s\n" "no" >&6; } 16093 16094else $as_nop 16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16096/* end confdefs.h. */ 16097 16098#include <stdint.h> 16099#include <sys/param.h> 16100#include <sys/types.h> 16101#include <sys/syscall.h> 16102#include <sys/epoll.h> 16103#include <unistd.h> 16104 16105int 16106epoll_create(int size) 16107{ 16108 return (syscall(__NR_epoll_create, size)); 16109} 16110 16111int 16112main (void) 16113{ 16114 16115 int epfd; 16116 16117 epfd = epoll_create(256); 16118 return (epfd == -1 ? 1 : 0); 16119 16120 16121 ; 16122 return 0; 16123} 16124_ACEOF 16125if ac_fn_c_try_run "$LINENO" 16126then : 16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16128printf "%s\n" "yes" >&6; } 16129 16130printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 16131 16132 needsignal=yes 16133 have_epoll=yes 16134 case " $LIBOBJS " in 16135 *" epoll_sub.$ac_objext "* ) ;; 16136 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext" 16137 ;; 16138esac 16139 16140 16141else $as_nop 16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16143printf "%s\n" "no" >&6; } 16144fi 16145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16146 conftest.$ac_objext conftest.beam conftest.$ac_ext 16147fi 16148 16149 fi 16150fi 16151 if test "x$haveepoll" = "xyes"; then 16152 EPOLL_BACKEND_TRUE= 16153 EPOLL_BACKEND_FALSE='#' 16154else 16155 EPOLL_BACKEND_TRUE='#' 16156 EPOLL_BACKEND_FALSE= 16157fi 16158 16159 16160haveeventports=no 16161 16162 for ac_func in port_create 16163do : 16164 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create" 16165if test "x$ac_cv_func_port_create" = xyes 16166then : 16167 printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h 16168 haveeventports=yes 16169fi 16170 16171done 16172if test "x$haveeventports" = "xyes" ; then 16173 16174printf "%s\n" "#define HAVE_EVENT_PORTS 1" >>confdefs.h 16175 16176 needsignal=yes 16177fi 16178 if test "x$haveeventports" = "xyes"; then 16179 EVPORT_BACKEND_TRUE= 16180 EVPORT_BACKEND_FALSE='#' 16181else 16182 EVPORT_BACKEND_TRUE='#' 16183 EVPORT_BACKEND_FALSE= 16184fi 16185 16186 16187if test "x$bwin32" = "xtrue"; then 16188 needsignal=yes 16189fi 16190 16191 if test "x$needsignal" = "xyes"; then 16192 SIGNAL_SUPPORT_TRUE= 16193 SIGNAL_SUPPORT_FALSE='#' 16194else 16195 SIGNAL_SUPPORT_TRUE='#' 16196 SIGNAL_SUPPORT_FALSE= 16197fi 16198 16199 16200 16201 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 16202" 16203if test "x$ac_cv_type_pid_t" = xyes 16204then : 16205 16206else $as_nop 16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16208/* end confdefs.h. */ 16209 16210 #if defined _WIN64 && !defined __CYGWIN__ 16211 LLP64 16212 #endif 16213 16214int 16215main (void) 16216{ 16217 16218 ; 16219 return 0; 16220} 16221 16222_ACEOF 16223if ac_fn_c_try_compile "$LINENO" 16224then : 16225 ac_pid_type='int' 16226else $as_nop 16227 ac_pid_type='__int64' 16228fi 16229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16230 16231printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 16232 16233 16234fi 16235 16236 16237ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16238if test "x$ac_cv_type_size_t" = xyes 16239then : 16240 16241else $as_nop 16242 16243printf "%s\n" "#define size_t unsigned int" >>confdefs.h 16244 16245fi 16246 16247ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 16248if test "x$ac_cv_type_ssize_t" = xyes 16249then : 16250 16251else $as_nop 16252 16253printf "%s\n" "#define ssize_t int" >>confdefs.h 16254 16255fi 16256 16257 16258ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H 16259#include <stdint.h> 16260#elif defined(HAVE_INTTYPES_H) 16261#include <inttypes.h> 16262#endif 16263#ifdef HAVE_SYS_TYPES_H 16264#include <sys/types.h> 16265#endif 16266" 16267if test "x$ac_cv_type_uint64_t" = xyes 16268then : 16269 16270printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h 16271 16272 16273fi 16274ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H 16275#include <stdint.h> 16276#elif defined(HAVE_INTTYPES_H) 16277#include <inttypes.h> 16278#endif 16279#ifdef HAVE_SYS_TYPES_H 16280#include <sys/types.h> 16281#endif 16282" 16283if test "x$ac_cv_type_uint32_t" = xyes 16284then : 16285 16286printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h 16287 16288 16289fi 16290ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H 16291#include <stdint.h> 16292#elif defined(HAVE_INTTYPES_H) 16293#include <inttypes.h> 16294#endif 16295#ifdef HAVE_SYS_TYPES_H 16296#include <sys/types.h> 16297#endif 16298" 16299if test "x$ac_cv_type_uint16_t" = xyes 16300then : 16301 16302printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h 16303 16304 16305fi 16306ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H 16307#include <stdint.h> 16308#elif defined(HAVE_INTTYPES_H) 16309#include <inttypes.h> 16310#endif 16311#ifdef HAVE_SYS_TYPES_H 16312#include <sys/types.h> 16313#endif 16314" 16315if test "x$ac_cv_type_uint8_t" = xyes 16316then : 16317 16318printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h 16319 16320 16321fi 16322ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 16323#include <stdint.h> 16324#elif defined(HAVE_INTTYPES_H) 16325#include <inttypes.h> 16326#endif 16327#ifdef HAVE_SYS_TYPES_H 16328#include <sys/types.h> 16329#endif 16330" 16331if test "x$ac_cv_type_uintptr_t" = xyes 16332then : 16333 16334printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 16335 16336 16337fi 16338 16339 16340ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H 16341#include <sys/types.h> 16342#endif 16343#ifdef HAVE_SYS_SELECT_H 16344#include <sys/select.h> 16345#endif 16346" 16347if test "x$ac_cv_type_fd_mask" = xyes 16348then : 16349 16350printf "%s\n" "#define HAVE_FD_MASK 1" >>confdefs.h 16351 16352 16353fi 16354 16355 16356# The cast to long int works around a bug in the HP C Compiler 16357# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16358# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16359# This bug is HP SR number 8606223364. 16360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 16361printf %s "checking size of long long... " >&6; } 16362if test ${ac_cv_sizeof_long_long+y} 16363then : 16364 printf %s "(cached) " >&6 16365else $as_nop 16366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" 16367then : 16368 16369else $as_nop 16370 if test "$ac_cv_type_long_long" = yes; then 16371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16372printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16373as_fn_error 77 "cannot compute sizeof (long long) 16374See \`config.log' for more details" "$LINENO" 5; } 16375 else 16376 ac_cv_sizeof_long_long=0 16377 fi 16378fi 16379 16380fi 16381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 16382printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } 16383 16384 16385 16386printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h 16387 16388 16389# The cast to long int works around a bug in the HP C Compiler 16390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16392# This bug is HP SR number 8606223364. 16393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16394printf %s "checking size of long... " >&6; } 16395if test ${ac_cv_sizeof_long+y} 16396then : 16397 printf %s "(cached) " >&6 16398else $as_nop 16399 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" 16400then : 16401 16402else $as_nop 16403 if test "$ac_cv_type_long" = yes; then 16404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16405printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16406as_fn_error 77 "cannot compute sizeof (long) 16407See \`config.log' for more details" "$LINENO" 5; } 16408 else 16409 ac_cv_sizeof_long=0 16410 fi 16411fi 16412 16413fi 16414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16415printf "%s\n" "$ac_cv_sizeof_long" >&6; } 16416 16417 16418 16419printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h 16420 16421 16422# The cast to long int works around a bug in the HP C Compiler 16423# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16424# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16425# This bug is HP SR number 8606223364. 16426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16427printf %s "checking size of int... " >&6; } 16428if test ${ac_cv_sizeof_int+y} 16429then : 16430 printf %s "(cached) " >&6 16431else $as_nop 16432 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 16433then : 16434 16435else $as_nop 16436 if test "$ac_cv_type_int" = yes; then 16437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16438printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16439as_fn_error 77 "cannot compute sizeof (int) 16440See \`config.log' for more details" "$LINENO" 5; } 16441 else 16442 ac_cv_sizeof_int=0 16443 fi 16444fi 16445 16446fi 16447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 16448printf "%s\n" "$ac_cv_sizeof_int" >&6; } 16449 16450 16451 16452printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 16453 16454 16455# The cast to long int works around a bug in the HP C Compiler 16456# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16457# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16458# This bug is HP SR number 8606223364. 16459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 16460printf %s "checking size of short... " >&6; } 16461if test ${ac_cv_sizeof_short+y} 16462then : 16463 printf %s "(cached) " >&6 16464else $as_nop 16465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" 16466then : 16467 16468else $as_nop 16469 if test "$ac_cv_type_short" = yes; then 16470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16471printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16472as_fn_error 77 "cannot compute sizeof (short) 16473See \`config.log' for more details" "$LINENO" 5; } 16474 else 16475 ac_cv_sizeof_short=0 16476 fi 16477fi 16478 16479fi 16480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 16481printf "%s\n" "$ac_cv_sizeof_short" >&6; } 16482 16483 16484 16485printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h 16486 16487 16488# The cast to long int works around a bug in the HP C Compiler 16489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16491# This bug is HP SR number 8606223364. 16492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 16493printf %s "checking size of size_t... " >&6; } 16494if test ${ac_cv_sizeof_size_t+y} 16495then : 16496 printf %s "(cached) " >&6 16497else $as_nop 16498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" 16499then : 16500 16501else $as_nop 16502 if test "$ac_cv_type_size_t" = yes; then 16503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16504printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16505as_fn_error 77 "cannot compute sizeof (size_t) 16506See \`config.log' for more details" "$LINENO" 5; } 16507 else 16508 ac_cv_sizeof_size_t=0 16509 fi 16510fi 16511 16512fi 16513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 16514printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } 16515 16516 16517 16518printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h 16519 16520 16521# The cast to long int works around a bug in the HP C Compiler 16522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16524# This bug is HP SR number 8606223364. 16525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16526printf %s "checking size of void *... " >&6; } 16527if test ${ac_cv_sizeof_void_p+y} 16528then : 16529 printf %s "(cached) " >&6 16530else $as_nop 16531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 16532then : 16533 16534else $as_nop 16535 if test "$ac_cv_type_void_p" = yes; then 16536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16537printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16538as_fn_error 77 "cannot compute sizeof (void *) 16539See \`config.log' for more details" "$LINENO" 5; } 16540 else 16541 ac_cv_sizeof_void_p=0 16542 fi 16543fi 16544 16545fi 16546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16547printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 16548 16549 16550 16551printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 16552 16553 16554# The cast to long int works around a bug in the HP C Compiler 16555# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16556# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16557# This bug is HP SR number 8606223364. 16558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 16559printf %s "checking size of off_t... " >&6; } 16560if test ${ac_cv_sizeof_off_t+y} 16561then : 16562 printf %s "(cached) " >&6 16563else $as_nop 16564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" 16565then : 16566 16567else $as_nop 16568 if test "$ac_cv_type_off_t" = yes; then 16569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16570printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16571as_fn_error 77 "cannot compute sizeof (off_t) 16572See \`config.log' for more details" "$LINENO" 5; } 16573 else 16574 ac_cv_sizeof_off_t=0 16575 fi 16576fi 16577 16578fi 16579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 16580printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } 16581 16582 16583 16584printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h 16585 16586 16587# The cast to long int works around a bug in the HP C Compiler 16588# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16589# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16590# This bug is HP SR number 8606223364. 16591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 16592printf %s "checking size of time_t... " >&6; } 16593if test ${ac_cv_sizeof_time_t+y} 16594then : 16595 printf %s "(cached) " >&6 16596else $as_nop 16597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default" 16598then : 16599 16600else $as_nop 16601 if test "$ac_cv_type_time_t" = yes; then 16602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16603printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16604as_fn_error 77 "cannot compute sizeof (time_t) 16605See \`config.log' for more details" "$LINENO" 5; } 16606 else 16607 ac_cv_sizeof_time_t=0 16608 fi 16609fi 16610 16611fi 16612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 16613printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 16614 16615 16616 16617printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 16618 16619 16620 16621ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1 16622#include <sys/types.h> 16623#ifdef HAVE_NETINET_IN_H 16624#include <netinet/in.h> 16625#endif 16626#ifdef HAVE_NETINET_IN6_H 16627#include <netinet/in6.h> 16628#endif 16629#ifdef HAVE_SYS_UN_H 16630#include <sys/un.h> 16631#endif 16632#ifdef HAVE_SYS_SOCKET_H 16633#include <sys/socket.h> 16634#endif 16635#ifdef HAVE_NETDB_H 16636#include <netdb.h> 16637#endif 16638#ifdef _WIN32 16639#define WIN32_WINNT 0x400 16640#define _WIN32_WINNT 0x400 16641#define WIN32_LEAN_AND_MEAN 16642#if defined(_MSC_VER) && (_MSC_VER < 1300) 16643#include <winsock.h> 16644#else 16645#include <winsock2.h> 16646#include <ws2tcpip.h> 16647#endif 16648#endif 16649 16650" 16651if test "x$ac_cv_type_struct_in6_addr" = xyes 16652then : 16653 16654printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 16655 16656 16657fi 16658ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1 16659#include <sys/types.h> 16660#ifdef HAVE_NETINET_IN_H 16661#include <netinet/in.h> 16662#endif 16663#ifdef HAVE_NETINET_IN6_H 16664#include <netinet/in6.h> 16665#endif 16666#ifdef HAVE_SYS_UN_H 16667#include <sys/un.h> 16668#endif 16669#ifdef HAVE_SYS_SOCKET_H 16670#include <sys/socket.h> 16671#endif 16672#ifdef HAVE_NETDB_H 16673#include <netdb.h> 16674#endif 16675#ifdef _WIN32 16676#define WIN32_WINNT 0x400 16677#define _WIN32_WINNT 0x400 16678#define WIN32_LEAN_AND_MEAN 16679#if defined(_MSC_VER) && (_MSC_VER < 1300) 16680#include <winsock.h> 16681#else 16682#include <winsock2.h> 16683#include <ws2tcpip.h> 16684#endif 16685#endif 16686 16687" 16688if test "x$ac_cv_type_struct_sockaddr_in6" = xyes 16689then : 16690 16691printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 16692 16693 16694fi 16695ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1 16696#include <sys/types.h> 16697#ifdef HAVE_NETINET_IN_H 16698#include <netinet/in.h> 16699#endif 16700#ifdef HAVE_NETINET_IN6_H 16701#include <netinet/in6.h> 16702#endif 16703#ifdef HAVE_SYS_UN_H 16704#include <sys/un.h> 16705#endif 16706#ifdef HAVE_SYS_SOCKET_H 16707#include <sys/socket.h> 16708#endif 16709#ifdef HAVE_NETDB_H 16710#include <netdb.h> 16711#endif 16712#ifdef _WIN32 16713#define WIN32_WINNT 0x400 16714#define _WIN32_WINNT 0x400 16715#define WIN32_LEAN_AND_MEAN 16716#if defined(_MSC_VER) && (_MSC_VER < 1300) 16717#include <winsock.h> 16718#else 16719#include <winsock2.h> 16720#include <ws2tcpip.h> 16721#endif 16722#endif 16723 16724" 16725if test "x$ac_cv_type_struct_sockaddr_un" = xyes 16726then : 16727 16728printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h 16729 16730 16731fi 16732ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1 16733#include <sys/types.h> 16734#ifdef HAVE_NETINET_IN_H 16735#include <netinet/in.h> 16736#endif 16737#ifdef HAVE_NETINET_IN6_H 16738#include <netinet/in6.h> 16739#endif 16740#ifdef HAVE_SYS_UN_H 16741#include <sys/un.h> 16742#endif 16743#ifdef HAVE_SYS_SOCKET_H 16744#include <sys/socket.h> 16745#endif 16746#ifdef HAVE_NETDB_H 16747#include <netdb.h> 16748#endif 16749#ifdef _WIN32 16750#define WIN32_WINNT 0x400 16751#define _WIN32_WINNT 0x400 16752#define WIN32_LEAN_AND_MEAN 16753#if defined(_MSC_VER) && (_MSC_VER < 1300) 16754#include <winsock.h> 16755#else 16756#include <winsock2.h> 16757#include <ws2tcpip.h> 16758#endif 16759#endif 16760 16761" 16762if test "x$ac_cv_type_sa_family_t" = xyes 16763then : 16764 16765printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 16766 16767 16768fi 16769ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1 16770#include <sys/types.h> 16771#ifdef HAVE_NETINET_IN_H 16772#include <netinet/in.h> 16773#endif 16774#ifdef HAVE_NETINET_IN6_H 16775#include <netinet/in6.h> 16776#endif 16777#ifdef HAVE_SYS_UN_H 16778#include <sys/un.h> 16779#endif 16780#ifdef HAVE_SYS_SOCKET_H 16781#include <sys/socket.h> 16782#endif 16783#ifdef HAVE_NETDB_H 16784#include <netdb.h> 16785#endif 16786#ifdef _WIN32 16787#define WIN32_WINNT 0x400 16788#define _WIN32_WINNT 0x400 16789#define WIN32_LEAN_AND_MEAN 16790#if defined(_MSC_VER) && (_MSC_VER < 1300) 16791#include <winsock.h> 16792#else 16793#include <winsock2.h> 16794#include <ws2tcpip.h> 16795#endif 16796#endif 16797 16798" 16799if test "x$ac_cv_type_struct_addrinfo" = xyes 16800then : 16801 16802printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 16803 16804 16805fi 16806ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1 16807#include <sys/types.h> 16808#ifdef HAVE_NETINET_IN_H 16809#include <netinet/in.h> 16810#endif 16811#ifdef HAVE_NETINET_IN6_H 16812#include <netinet/in6.h> 16813#endif 16814#ifdef HAVE_SYS_UN_H 16815#include <sys/un.h> 16816#endif 16817#ifdef HAVE_SYS_SOCKET_H 16818#include <sys/socket.h> 16819#endif 16820#ifdef HAVE_NETDB_H 16821#include <netdb.h> 16822#endif 16823#ifdef _WIN32 16824#define WIN32_WINNT 0x400 16825#define _WIN32_WINNT 0x400 16826#define WIN32_LEAN_AND_MEAN 16827#if defined(_MSC_VER) && (_MSC_VER < 1300) 16828#include <winsock.h> 16829#else 16830#include <winsock2.h> 16831#include <ws2tcpip.h> 16832#endif 16833#endif 16834 16835" 16836if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 16837then : 16838 16839printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 16840 16841 16842fi 16843 16844ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h> 16845#ifdef HAVE_NETINET_IN_H 16846#include <netinet/in.h> 16847#endif 16848#ifdef HAVE_NETINET_IN6_H 16849#include <netinet/in6.h> 16850#endif 16851#ifdef HAVE_SYS_SOCKET_H 16852#include <sys/socket.h> 16853#endif 16854#ifdef _WIN32 16855#define WIN32_WINNT 0x400 16856#define _WIN32_WINNT 0x400 16857#define WIN32_LEAN_AND_MEAN 16858#if defined(_MSC_VER) && (_MSC_VER < 1300) 16859#include <winsock.h> 16860#else 16861#include <winsock2.h> 16862#include <ws2tcpip.h> 16863#endif 16864#endif 16865 16866" 16867if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes 16868then : 16869 16870printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1" >>confdefs.h 16871 16872 16873fi 16874ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h> 16875#ifdef HAVE_NETINET_IN_H 16876#include <netinet/in.h> 16877#endif 16878#ifdef HAVE_NETINET_IN6_H 16879#include <netinet/in6.h> 16880#endif 16881#ifdef HAVE_SYS_SOCKET_H 16882#include <sys/socket.h> 16883#endif 16884#ifdef _WIN32 16885#define WIN32_WINNT 0x400 16886#define _WIN32_WINNT 0x400 16887#define WIN32_LEAN_AND_MEAN 16888#if defined(_MSC_VER) && (_MSC_VER < 1300) 16889#include <winsock.h> 16890#else 16891#include <winsock2.h> 16892#include <ws2tcpip.h> 16893#endif 16894#endif 16895 16896" 16897if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes 16898then : 16899 16900printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1" >>confdefs.h 16901 16902 16903fi 16904ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h> 16905#ifdef HAVE_NETINET_IN_H 16906#include <netinet/in.h> 16907#endif 16908#ifdef HAVE_NETINET_IN6_H 16909#include <netinet/in6.h> 16910#endif 16911#ifdef HAVE_SYS_SOCKET_H 16912#include <sys/socket.h> 16913#endif 16914#ifdef _WIN32 16915#define WIN32_WINNT 0x400 16916#define _WIN32_WINNT 0x400 16917#define WIN32_LEAN_AND_MEAN 16918#if defined(_MSC_VER) && (_MSC_VER < 1300) 16919#include <winsock.h> 16920#else 16921#include <winsock2.h> 16922#include <ws2tcpip.h> 16923#endif 16924#endif 16925 16926" 16927if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 16928then : 16929 16930printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h 16931 16932 16933fi 16934ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h> 16935#ifdef HAVE_NETINET_IN_H 16936#include <netinet/in.h> 16937#endif 16938#ifdef HAVE_NETINET_IN6_H 16939#include <netinet/in6.h> 16940#endif 16941#ifdef HAVE_SYS_SOCKET_H 16942#include <sys/socket.h> 16943#endif 16944#ifdef _WIN32 16945#define WIN32_WINNT 0x400 16946#define _WIN32_WINNT 0x400 16947#define WIN32_LEAN_AND_MEAN 16948#if defined(_MSC_VER) && (_MSC_VER < 1300) 16949#include <winsock.h> 16950#else 16951#include <winsock2.h> 16952#include <ws2tcpip.h> 16953#endif 16954#endif 16955 16956" 16957if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes 16958then : 16959 16960printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h 16961 16962 16963fi 16964ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 16965#ifdef HAVE_NETINET_IN_H 16966#include <netinet/in.h> 16967#endif 16968#ifdef HAVE_NETINET_IN6_H 16969#include <netinet/in6.h> 16970#endif 16971#ifdef HAVE_SYS_SOCKET_H 16972#include <sys/socket.h> 16973#endif 16974#ifdef _WIN32 16975#define WIN32_WINNT 0x400 16976#define _WIN32_WINNT 0x400 16977#define WIN32_LEAN_AND_MEAN 16978#if defined(_MSC_VER) && (_MSC_VER < 1300) 16979#include <winsock.h> 16980#else 16981#include <winsock2.h> 16982#include <ws2tcpip.h> 16983#endif 16984#endif 16985 16986" 16987if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 16988then : 16989 16990printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h 16991 16992 16993fi 16994ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 16995#ifdef HAVE_NETINET_IN_H 16996#include <netinet/in.h> 16997#endif 16998#ifdef HAVE_NETINET_IN6_H 16999#include <netinet/in6.h> 17000#endif 17001#ifdef HAVE_SYS_SOCKET_H 17002#include <sys/socket.h> 17003#endif 17004#ifdef _WIN32 17005#define WIN32_WINNT 0x400 17006#define _WIN32_WINNT 0x400 17007#define WIN32_LEAN_AND_MEAN 17008#if defined(_MSC_VER) && (_MSC_VER < 1300) 17009#include <winsock.h> 17010#else 17011#include <winsock2.h> 17012#include <ws2tcpip.h> 17013#endif 17014#endif 17015 17016" 17017if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes 17018then : 17019 17020printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1" >>confdefs.h 17021 17022 17023fi 17024 17025 17026ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" " 17027#ifdef HAVE_SYS_SOCKET_H 17028#include <sys/socket.h> 17029#endif 17030#ifdef _WIN32 17031#include <winsock2.h> 17032#endif 17033 17034" 17035if test "x$ac_cv_type_struct_linger" = xyes 17036then : 17037 17038printf "%s\n" "#define HAVE_STRUCT_LINGER 1" >>confdefs.h 17039 17040 17041fi 17042 17043 17044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 17045printf %s "checking for socklen_t... " >&6; } 17046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17047/* end confdefs.h. */ 17048 17049 #include <sys/types.h> 17050 #ifdef _WIN32 17051 #include <ws2tcpip.h> 17052 #else 17053 #include <sys/socket.h> 17054 #endif 17055 17056int 17057main (void) 17058{ 17059socklen_t x; 17060 17061 ; 17062 return 0; 17063} 17064_ACEOF 17065if ac_fn_c_try_compile "$LINENO" 17066then : 17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17068printf "%s\n" "yes" >&6; } 17069else $as_nop 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17071printf "%s\n" "no" >&6; } 17072 17073printf "%s\n" "#define socklen_t unsigned int" >>confdefs.h 17074 17075 17076fi 17077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17078 17079# __func__/__FUNCTION__ is not a macros in general 17080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 17081printf %s "checking whether our compiler supports __func__... " >&6; } 17082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17083/* end confdefs.h. */ 17084 17085int 17086main (void) 17087{ 17088 const char *cp = __func__; 17089 17090 ; 17091 return 0; 17092} 17093_ACEOF 17094if ac_fn_c_try_compile "$LINENO" 17095then : 17096 17097printf "%s\n" "#define HAVE___func__ 1" >>confdefs.h 17098 17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17100printf "%s\n" "yes" >&6; } 17101 17102else $as_nop 17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17104printf "%s\n" "no" >&6; } 17105 17106fi 17107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 17109printf %s "checking whether our compiler supports __FUNCTION__... " >&6; } 17110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17111/* end confdefs.h. */ 17112 17113int 17114main (void) 17115{ 17116 const char *cp = __FUNCTION__; 17117 17118 ; 17119 return 0; 17120} 17121_ACEOF 17122if ac_fn_c_try_compile "$LINENO" 17123then : 17124 17125printf "%s\n" "#define HAVE___FUNCTION__ 1" >>confdefs.h 17126 17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17128printf "%s\n" "yes" >&6; } 17129 17130else $as_nop 17131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17132printf "%s\n" "no" >&6; } 17133 17134fi 17135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17136 17137# check if we can compile with pthreads 17138have_pthreads=no 17139if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then 17140 17141 17142 17143ac_ext=c 17144ac_cpp='$CPP $CPPFLAGS' 17145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17147ac_compiler_gnu=$ac_cv_c_compiler_gnu 17148 17149acx_pthread_ok=no 17150 17151# We used to check for pthread.h first, but this fails if pthread.h 17152# requires special compiler flags (e.g. on True64 or Sequent). 17153# It gets checked for in the link test anyway. 17154 17155# First of all, check if the user has set any of the PTHREAD_LIBS, 17156# etcetera environment variables, and if threads linking works using 17157# them: 17158if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 17159 save_CFLAGS="$CFLAGS" 17160 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17161 save_LIBS="$LIBS" 17162 LIBS="$PTHREAD_LIBS $LIBS" 17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 17164printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 17165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17166/* end confdefs.h. */ 17167 17168/* Override any GCC internal prototype to avoid an error. 17169 Use char because int might match the return type of a GCC 17170 builtin and then its argument prototype would still apply. */ 17171char pthread_join (); 17172int 17173main (void) 17174{ 17175return pthread_join (); 17176 ; 17177 return 0; 17178} 17179_ACEOF 17180if ac_fn_c_try_link "$LINENO" 17181then : 17182 acx_pthread_ok=yes 17183fi 17184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17185 conftest$ac_exeext conftest.$ac_ext 17186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 17187printf "%s\n" "$acx_pthread_ok" >&6; } 17188 if test x"$acx_pthread_ok" = xno; then 17189 PTHREAD_LIBS="" 17190 PTHREAD_CFLAGS="" 17191 fi 17192 LIBS="$save_LIBS" 17193 CFLAGS="$save_CFLAGS" 17194fi 17195 17196# We must check for the threads library under a number of different 17197# names; the ordering is very important because some systems 17198# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 17199# libraries is broken (non-POSIX). 17200 17201# Create a list of thread flags to try. Items starting with a "-" are 17202# C compiler flags, and other items are library names, except for "none" 17203# which indicates that we try without any flags at all, and "pthread-config" 17204# which is a program returning the flags for the Pth emulation library. 17205 17206acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 17207 17208# The ordering *is* (sometimes) important. Some notes on the 17209# individual items follow: 17210 17211# pthreads: AIX (must check this before -lpthread) 17212# none: in case threads are in libc; should be tried before -Kthread and 17213# other compiler flags to prevent continual compiler warnings 17214# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 17215# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 17216# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 17217# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 17218# -pthreads: Solaris/gcc 17219# -mthreads: Mingw32/gcc, Lynx/gcc 17220# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 17221# doesn't hurt to check since this sometimes defines pthreads too; 17222# also defines -D_REENTRANT) 17223# ... -mt is also the pthreads flag for HP/aCC 17224# pthread: Linux, etcetera 17225# --thread-safe: KAI C++ 17226# pthread-config: use pthread-config program (for GNU Pth library) 17227 17228case "${host_cpu}-${host_os}" in 17229 *solaris*) 17230 17231 # On Solaris (at least, for some versions), libc contains stubbed 17232 # (non-functional) versions of the pthreads routines, so link-based 17233 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 17234 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 17235 # a function called by this macro, so we could check for that, but 17236 # who knows whether they'll stub that too in a future libc.) So, 17237 # we'll just look for -pthreads and -lpthread first: 17238 17239 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 17240 ;; 17241esac 17242 17243if test x"$acx_pthread_ok" = xno; then 17244for flag in $acx_pthread_flags; do 17245 17246 case $flag in 17247 none) 17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 17249printf %s "checking whether pthreads work without any flags... " >&6; } 17250 ;; 17251 17252 -*) 17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 17254printf %s "checking whether pthreads work with $flag... " >&6; } 17255 PTHREAD_CFLAGS="$flag" 17256 ;; 17257 17258 pthread-config) 17259 # Extract the first word of "pthread-config", so it can be a program name with args. 17260set dummy pthread-config; ac_word=$2 17261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17262printf %s "checking for $ac_word... " >&6; } 17263if test ${ac_cv_prog_acx_pthread_config+y} 17264then : 17265 printf %s "(cached) " >&6 17266else $as_nop 17267 if test -n "$acx_pthread_config"; then 17268 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 17269else 17270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17271for as_dir in $PATH 17272do 17273 IFS=$as_save_IFS 17274 case $as_dir in #((( 17275 '') as_dir=./ ;; 17276 */) ;; 17277 *) as_dir=$as_dir/ ;; 17278 esac 17279 for ac_exec_ext in '' $ac_executable_extensions; do 17280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17281 ac_cv_prog_acx_pthread_config="yes" 17282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17283 break 2 17284 fi 17285done 17286 done 17287IFS=$as_save_IFS 17288 17289 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 17290fi 17291fi 17292acx_pthread_config=$ac_cv_prog_acx_pthread_config 17293if test -n "$acx_pthread_config"; then 17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 17295printf "%s\n" "$acx_pthread_config" >&6; } 17296else 17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17298printf "%s\n" "no" >&6; } 17299fi 17300 17301 17302 if test x"$acx_pthread_config" = xno; then continue; fi 17303 PTHREAD_CFLAGS="`pthread-config --cflags`" 17304 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 17305 ;; 17306 17307 *) 17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 17309printf %s "checking for the pthreads library -l$flag... " >&6; } 17310 PTHREAD_LIBS="-l$flag" 17311 ;; 17312 esac 17313 17314 save_LIBS="$LIBS" 17315 save_CFLAGS="$CFLAGS" 17316 LIBS="$PTHREAD_LIBS $LIBS" 17317 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17318 17319 # Check for various functions. We must include pthread.h, 17320 # since some functions may be macros. (On the Sequent, we 17321 # need a special flag -Kthread to make this header compile.) 17322 # We check for pthread_join because it is in -lpthread on IRIX 17323 # while pthread_create is in libc. We check for pthread_attr_init 17324 # due to DEC craziness with -lpthreads. We check for 17325 # pthread_cleanup_push because it is one of the few pthread 17326 # functions on Solaris that doesn't have a non-functional libc stub. 17327 # We try pthread_create on general principles. 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330#include <pthread.h> 17331int 17332main (void) 17333{ 17334pthread_t th; pthread_join(th, 0); 17335 pthread_attr_init(0); pthread_cleanup_push(0, 0); 17336 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 17337 ; 17338 return 0; 17339} 17340_ACEOF 17341if ac_fn_c_try_link "$LINENO" 17342then : 17343 acx_pthread_ok=yes 17344fi 17345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17346 conftest$ac_exeext conftest.$ac_ext 17347 17348 LIBS="$save_LIBS" 17349 CFLAGS="$save_CFLAGS" 17350 17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 17352printf "%s\n" "$acx_pthread_ok" >&6; } 17353 if test "x$acx_pthread_ok" = xyes; then 17354 break; 17355 fi 17356 17357 PTHREAD_LIBS="" 17358 PTHREAD_CFLAGS="" 17359done 17360fi 17361 17362# Various other checks: 17363if test "x$acx_pthread_ok" = xyes; then 17364 save_LIBS="$LIBS" 17365 LIBS="$PTHREAD_LIBS $LIBS" 17366 save_CFLAGS="$CFLAGS" 17367 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17368 17369 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 17371printf %s "checking for joinable pthread attribute... " >&6; } 17372 attr_name=unknown 17373 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17375/* end confdefs.h. */ 17376#include <pthread.h> 17377int 17378main (void) 17379{ 17380int attr=$attr; return attr; 17381 ; 17382 return 0; 17383} 17384_ACEOF 17385if ac_fn_c_try_link "$LINENO" 17386then : 17387 attr_name=$attr; break 17388fi 17389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17390 conftest$ac_exeext conftest.$ac_ext 17391 done 17392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 17393printf "%s\n" "$attr_name" >&6; } 17394 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 17395 17396printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 17397 17398 fi 17399 17400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 17401printf %s "checking if more special flags are required for pthreads... " >&6; } 17402 flag=no 17403 case "${host_cpu}-${host_os}" in 17404 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 17405 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 17406 esac 17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 17408printf "%s\n" "${flag}" >&6; } 17409 if test "x$flag" != xno; then 17410 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 17411 fi 17412 17413 LIBS="$save_LIBS" 17414 CFLAGS="$save_CFLAGS" 17415 17416 # More AIX lossage: must compile with xlc_r or cc_r 17417 if test x"$GCC" != xyes; then 17418 for ac_prog in xlc_r cc_r 17419do 17420 # Extract the first word of "$ac_prog", so it can be a program name with args. 17421set dummy $ac_prog; ac_word=$2 17422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17423printf %s "checking for $ac_word... " >&6; } 17424if test ${ac_cv_prog_PTHREAD_CC+y} 17425then : 17426 printf %s "(cached) " >&6 17427else $as_nop 17428 if test -n "$PTHREAD_CC"; then 17429 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 17430else 17431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17432for as_dir in $PATH 17433do 17434 IFS=$as_save_IFS 17435 case $as_dir in #((( 17436 '') as_dir=./ ;; 17437 */) ;; 17438 *) as_dir=$as_dir/ ;; 17439 esac 17440 for ac_exec_ext in '' $ac_executable_extensions; do 17441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17442 ac_cv_prog_PTHREAD_CC="$ac_prog" 17443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17444 break 2 17445 fi 17446done 17447 done 17448IFS=$as_save_IFS 17449 17450fi 17451fi 17452PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 17453if test -n "$PTHREAD_CC"; then 17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 17455printf "%s\n" "$PTHREAD_CC" >&6; } 17456else 17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17458printf "%s\n" "no" >&6; } 17459fi 17460 17461 17462 test -n "$PTHREAD_CC" && break 17463done 17464test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 17465 17466 else 17467 PTHREAD_CC=$CC 17468 fi 17469else 17470 PTHREAD_CC="$CC" 17471fi 17472 17473 17474 17475 17476 17477# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17478if test x"$acx_pthread_ok" = xyes; then 17479 17480 17481printf "%s\n" "#define HAVE_PTHREADS 1" >>confdefs.h 17482 17483 have_pthreads=yes 17484 : 17485else 17486 acx_pthread_ok=no 17487 17488fi 17489ac_ext=c 17490ac_cpp='$CPP $CPPFLAGS' 17491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17493ac_compiler_gnu=$ac_cv_c_compiler_gnu 17494 17495 17496 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 17497 # The cast to long int works around a bug in the HP C Compiler 17498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17500# This bug is HP SR number 8606223364. 17501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 17502printf %s "checking size of pthread_t... " >&6; } 17503if test ${ac_cv_sizeof_pthread_t+y} 17504then : 17505 printf %s "(cached) " >&6 17506else $as_nop 17507 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default 17508 #include <pthread.h> 17509 17510" 17511then : 17512 17513else $as_nop 17514 if test "$ac_cv_type_pthread_t" = yes; then 17515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17516printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17517as_fn_error 77 "cannot compute sizeof (pthread_t) 17518See \`config.log' for more details" "$LINENO" 5; } 17519 else 17520 ac_cv_sizeof_pthread_t=0 17521 fi 17522fi 17523 17524fi 17525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 17526printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } 17527 17528 17529 17530printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h 17531 17532 17533fi 17534 if test "$enable_thread_support" != "no"; then 17535 THREADS_TRUE= 17536 THREADS_FALSE='#' 17537else 17538 THREADS_TRUE='#' 17539 THREADS_FALSE= 17540fi 17541 17542 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then 17543 PTHREADS_TRUE= 17544 PTHREADS_FALSE='#' 17545else 17546 PTHREADS_TRUE='#' 17547 PTHREADS_FALSE= 17548fi 17549 17550 17551# check if we should compile locking into the library 17552if test x$enable_thread_support = xno; then 17553 17554printf "%s\n" "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h 17555 17556fi 17557 17558# check if we should hard-code the mm functions. 17559if test x$enable_malloc_replacement = xno; then 17560 17561printf "%s\n" "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h 17562 17563fi 17564 17565# check if we should hard-code debugging out 17566if test x$enable_debug_mode = xno; then 17567 17568printf "%s\n" "#define DISABLE_DEBUG_MODE 1" >>confdefs.h 17569 17570fi 17571 17572# check if we should enable verbose debugging 17573if test x$enable_verbose_debug = xyes; then 17574 CFLAGS="$CFLAGS -DUSE_DEBUG" 17575fi 17576 17577# check if we have and should use openssl 17578 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then 17579 OPENSSL_TRUE= 17580 OPENSSL_FALSE='#' 17581else 17582 OPENSSL_TRUE='#' 17583 OPENSSL_FALSE= 17584fi 17585 17586 17587# Add some more warnings which we use in development but not in the 17588# released versions. (Some relevant gcc versions can't handle these.) 17589if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then 17590 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592/* end confdefs.h. */ 17593 17594int 17595main (void) 17596{ 17597 17598#if !defined(__GNUC__) || (__GNUC__ < 4) 17599#error 17600#endif 17601 ; 17602 return 0; 17603} 17604_ACEOF 17605if ac_fn_c_try_compile "$LINENO" 17606then : 17607 have_gcc4=yes 17608else $as_nop 17609 have_gcc4=no 17610fi 17611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17612 17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17614/* end confdefs.h. */ 17615 17616int 17617main (void) 17618{ 17619 17620#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 17621#error 17622#endif 17623 ; 17624 return 0; 17625} 17626_ACEOF 17627if ac_fn_c_try_compile "$LINENO" 17628then : 17629 have_gcc42=yes 17630else $as_nop 17631 have_gcc42=no 17632fi 17633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17634 17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17636/* end confdefs.h. */ 17637 17638int 17639main (void) 17640{ 17641 17642#if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) 17643#error 17644#endif 17645 ; 17646 return 0; 17647} 17648_ACEOF 17649if ac_fn_c_try_compile "$LINENO" 17650then : 17651 have_gcc45=yes 17652else $as_nop 17653 have_gcc45=no 17654fi 17655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17656 17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17658/* end confdefs.h. */ 17659 17660int 17661main (void) 17662{ 17663 17664#if !defined(__clang__) 17665#error 17666#endif 17667 ; 17668 return 0; 17669} 17670_ACEOF 17671if ac_fn_c_try_compile "$LINENO" 17672then : 17673 have_clang=yes 17674else $as_nop 17675 have_clang=no 17676fi 17677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17678 17679 # -W is the same as -Wextra 17680 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast" 17681 if test x$enable_gcc_warnings = xyes; then 17682 CFLAGS="$CFLAGS -Werror" 17683 fi 17684 17685 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing" 17686 17687 if test x$have_gcc4 = xyes ; then 17688 # These warnings break gcc 3.3.5 and work on gcc 4.0.2 17689 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement" 17690 #CFLAGS="$CFLAGS -Wold-style-definition" 17691 fi 17692 17693 if test x$have_gcc42 = xyes ; then 17694 # These warnings break gcc 4.0.2 and work on gcc 4.2 17695 CFLAGS="$CFLAGS -Waddress" 17696 fi 17697 17698 if test x$have_gcc42 = xyes && test x$have_clang = xno; then 17699 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2 17700 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init" 17701 fi 17702 17703 if test x$have_gcc45 = xyes ; then 17704 # These warnings work on gcc 4.5 17705 CFLAGS="$CFLAGS -Wlogical-op" 17706 fi 17707 17708 if test x$have_clang = xyes; then 17709 # Disable the unused-function warnings, because these trigger 17710 # for minheap-internal.h related code. 17711 CFLAGS="$CFLAGS -Wno-unused-function" 17712 17713 # clang on macosx emits warnings for each directory specified which 17714 # isn't "used" generating a lot of build noise (typically 3 warnings 17715 # per file 17716 case "$host_os" in 17717 darwin*) 17718 CFLAGS="$CFLAGS -Qunused-arguments" 17719 ;; 17720 esac 17721 fi 17722 17723##This will break the world on some 64-bit architectures 17724# CFLAGS="$CFLAGS -Winline" 17725 17726fi 17727 17728LIBEVENT_GC_SECTIONS= 17729if test "$GCC" = yes && test "$enable_function_sections" = yes ; then 17730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5 17731printf %s "checking if linker supports omitting unused code and data... " >&6; } 17732if test ${libevent_cv_gc_sections_runs+y} 17733then : 17734 printf %s "(cached) " >&6 17735else $as_nop 17736 17737 origCFLAGS="$CFLAGS" 17738 CFLAGS="$CFLAGS -Wl,--gc-sections" 17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17740/* end confdefs.h. */ 17741 17742 #include <stdlib.h> 17743 #include <stdio.h> 17744 17745int 17746main (void) 17747{ 17748 17749 FILE * fpC; 17750 char buf[32]; 17751 size_t cch; 17752 int read_success_once; 17753 17754 fpC = fopen("conftest.c", "r"); 17755 if (NULL == fpC) 17756 exit(1); 17757 do { 17758 cch = fread(buf, sizeof(buf), 1, fpC); 17759 read_success_once |= (0 != cch); 17760 } while (0 != cch); 17761 if (!read_success_once) 17762 exit(2); 17763 if (!feof(fpC)) 17764 exit(3); 17765 if (0 != fclose(fpC)) 17766 exit(4); 17767 17768 exit(EXIT_SUCCESS); 17769 17770 17771 ; 17772 return 0; 17773} 17774_ACEOF 17775if ac_fn_c_try_link "$LINENO" 17776then : 17777 17778 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then 17779 libevent_cv_gc_sections_runs=no 17780 else 17781 libevent_cv_gc_sections_runs=no 17782 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes 17783 fi 17784 17785else $as_nop 17786 libevent_cv_gc_sections_runs=no 17787 17788fi 17789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17790 conftest$ac_exeext conftest.$ac_ext 17791 CFLAGS="$origCFLAGS" 17792 { origCFLAGS=; unset origCFLAGS;} 17793 17794 17795fi 17796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5 17797printf "%s\n" "$libevent_cv_gc_sections_runs" >&6; } 17798 case "$libevent_cv_gc_sections_runs" in 17799 yes) 17800 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS" 17801 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections" 17802 ;; 17803 esac 17804fi 17805 17806 17807 if test "$enable_libevent_install" = "yes"; then 17808 INSTALL_LIBEVENT_TRUE= 17809 INSTALL_LIBEVENT_FALSE='#' 17810else 17811 INSTALL_LIBEVENT_TRUE='#' 17812 INSTALL_LIBEVENT_FALSE= 17813fi 17814 17815 17816 17817 17818 17819 17820# Doxygen support 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831# Files: 17832DX_PROJECT=libevent 17833 17834DX_CONFIG='${top_srcdir}/Doxyfile' 17835 17836DX_DOCDIR='doxygen' 17837 17838 17839# Environment variables used inside doxygen.cfg: 17840DX_ENV="$DX_ENV SRCDIR='$srcdir'" 17841SRCDIR=$srcdir 17842 17843DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" 17844PROJECT=$DX_PROJECT 17845 17846DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" 17847 17848 17849# Doxygen itself: 17850 17851 17852 17853 # Check whether --enable-doxygen-doc was given. 17854if test ${enable_doxygen_doc+y} 17855then : 17856 enableval=$enable_doxygen_doc; 17857case "$enableval" in 17858#( 17859y|Y|yes|Yes|YES) 17860 DX_FLAG_doc=1 17861 17862 17863;; #( 17864n|N|no|No|NO) 17865 DX_FLAG_doc=0 17866 17867;; #( 17868*) 17869 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 17870;; 17871esac 17872 17873else $as_nop 17874 17875DX_FLAG_doc=0 17876 17877 17878 17879fi 17880 17881if test "$DX_FLAG_doc" = 1; then 17882 17883if test -n "$ac_tool_prefix"; then 17884 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. 17885set dummy ${ac_tool_prefix}doxygen; ac_word=$2 17886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17887printf %s "checking for $ac_word... " >&6; } 17888if test ${ac_cv_path_DX_DOXYGEN+y} 17889then : 17890 printf %s "(cached) " >&6 17891else $as_nop 17892 case $DX_DOXYGEN in 17893 [\\/]* | ?:[\\/]*) 17894 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path. 17895 ;; 17896 *) 17897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17898for as_dir in $PATH 17899do 17900 IFS=$as_save_IFS 17901 case $as_dir in #((( 17902 '') as_dir=./ ;; 17903 */) ;; 17904 *) as_dir=$as_dir/ ;; 17905 esac 17906 for ac_exec_ext in '' $ac_executable_extensions; do 17907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17908 ac_cv_path_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 17909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17910 break 2 17911 fi 17912done 17913 done 17914IFS=$as_save_IFS 17915 17916 ;; 17917esac 17918fi 17919DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN 17920if test -n "$DX_DOXYGEN"; then 17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 17922printf "%s\n" "$DX_DOXYGEN" >&6; } 17923else 17924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17925printf "%s\n" "no" >&6; } 17926fi 17927 17928 17929fi 17930if test -z "$ac_cv_path_DX_DOXYGEN"; then 17931 ac_pt_DX_DOXYGEN=$DX_DOXYGEN 17932 # Extract the first word of "doxygen", so it can be a program name with args. 17933set dummy doxygen; ac_word=$2 17934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17935printf %s "checking for $ac_word... " >&6; } 17936if test ${ac_cv_path_ac_pt_DX_DOXYGEN+y} 17937then : 17938 printf %s "(cached) " >&6 17939else $as_nop 17940 case $ac_pt_DX_DOXYGEN in 17941 [\\/]* | ?:[\\/]*) 17942 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path. 17943 ;; 17944 *) 17945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17946for as_dir in $PATH 17947do 17948 IFS=$as_save_IFS 17949 case $as_dir in #((( 17950 '') as_dir=./ ;; 17951 */) ;; 17952 *) as_dir=$as_dir/ ;; 17953 esac 17954 for ac_exec_ext in '' $ac_executable_extensions; do 17955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17956 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext" 17957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17958 break 2 17959 fi 17960done 17961 done 17962IFS=$as_save_IFS 17963 17964 ;; 17965esac 17966fi 17967ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN 17968if test -n "$ac_pt_DX_DOXYGEN"; then 17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 17970printf "%s\n" "$ac_pt_DX_DOXYGEN" >&6; } 17971else 17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17973printf "%s\n" "no" >&6; } 17974fi 17975 17976 if test "x$ac_pt_DX_DOXYGEN" = x; then 17977 DX_DOXYGEN="" 17978 else 17979 case $cross_compiling:$ac_tool_warned in 17980yes:) 17981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17982printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17983ac_tool_warned=yes ;; 17984esac 17985 DX_DOXYGEN=$ac_pt_DX_DOXYGEN 17986 fi 17987else 17988 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" 17989fi 17990 17991if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then 17992 if test "xdoxygen" = "xdoxygen"; then 17993 as_fn_error $? "doxygen not found - will not generate any doxygen documentation" "$LINENO" 5 17994 else 17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 17996printf "%s\n" "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} 17997 fi 17998 DX_FLAG_doc=0 17999 18000fi 18001 18002 18003if test -n "$ac_tool_prefix"; then 18004 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. 18005set dummy ${ac_tool_prefix}perl; ac_word=$2 18006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18007printf %s "checking for $ac_word... " >&6; } 18008if test ${ac_cv_path_DX_PERL+y} 18009then : 18010 printf %s "(cached) " >&6 18011else $as_nop 18012 case $DX_PERL in 18013 [\\/]* | ?:[\\/]*) 18014 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path. 18015 ;; 18016 *) 18017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18018for as_dir in $PATH 18019do 18020 IFS=$as_save_IFS 18021 case $as_dir in #((( 18022 '') as_dir=./ ;; 18023 */) ;; 18024 *) as_dir=$as_dir/ ;; 18025 esac 18026 for ac_exec_ext in '' $ac_executable_extensions; do 18027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18028 ac_cv_path_DX_PERL="$as_dir$ac_word$ac_exec_ext" 18029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18030 break 2 18031 fi 18032done 18033 done 18034IFS=$as_save_IFS 18035 18036 ;; 18037esac 18038fi 18039DX_PERL=$ac_cv_path_DX_PERL 18040if test -n "$DX_PERL"; then 18041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 18042printf "%s\n" "$DX_PERL" >&6; } 18043else 18044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18045printf "%s\n" "no" >&6; } 18046fi 18047 18048 18049fi 18050if test -z "$ac_cv_path_DX_PERL"; then 18051 ac_pt_DX_PERL=$DX_PERL 18052 # Extract the first word of "perl", so it can be a program name with args. 18053set dummy perl; ac_word=$2 18054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18055printf %s "checking for $ac_word... " >&6; } 18056if test ${ac_cv_path_ac_pt_DX_PERL+y} 18057then : 18058 printf %s "(cached) " >&6 18059else $as_nop 18060 case $ac_pt_DX_PERL in 18061 [\\/]* | ?:[\\/]*) 18062 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path. 18063 ;; 18064 *) 18065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18066for as_dir in $PATH 18067do 18068 IFS=$as_save_IFS 18069 case $as_dir in #((( 18070 '') as_dir=./ ;; 18071 */) ;; 18072 *) as_dir=$as_dir/ ;; 18073 esac 18074 for ac_exec_ext in '' $ac_executable_extensions; do 18075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18076 ac_cv_path_ac_pt_DX_PERL="$as_dir$ac_word$ac_exec_ext" 18077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18078 break 2 18079 fi 18080done 18081 done 18082IFS=$as_save_IFS 18083 18084 ;; 18085esac 18086fi 18087ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL 18088if test -n "$ac_pt_DX_PERL"; then 18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 18090printf "%s\n" "$ac_pt_DX_PERL" >&6; } 18091else 18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18093printf "%s\n" "no" >&6; } 18094fi 18095 18096 if test "x$ac_pt_DX_PERL" = x; then 18097 DX_PERL="" 18098 else 18099 case $cross_compiling:$ac_tool_warned in 18100yes:) 18101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18102printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18103ac_tool_warned=yes ;; 18104esac 18105 DX_PERL=$ac_pt_DX_PERL 18106 fi 18107else 18108 DX_PERL="$ac_cv_path_DX_PERL" 18109fi 18110 18111if test "$DX_FLAG_doc$DX_PERL" = 1; then 18112 if test "xperl" = "xdoxygen"; then 18113 as_fn_error $? "perl not found - will not generate any doxygen documentation" "$LINENO" 5 18114 else 18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 18116printf "%s\n" "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} 18117 fi 18118 DX_FLAG_doc=0 18119 18120fi 18121 18122 : 18123fi 18124if test "$DX_FLAG_doc" = 1; then 18125 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" 18126PERL_PATH=$DX_PERL 18127 18128 : 18129else 18130 18131 : 18132fi 18133 18134 18135# Dot for graphics: 18136 18137 18138 18139 # Check whether --enable-doxygen-dot was given. 18140if test ${enable_doxygen_dot+y} 18141then : 18142 enableval=$enable_doxygen_dot; 18143case "$enableval" in 18144#( 18145y|Y|yes|Yes|YES) 18146 DX_FLAG_dot=1 18147 18148 18149test "$DX_FLAG_doc" = "1" \ 18150|| as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5 18151 18152;; #( 18153n|N|no|No|NO) 18154 DX_FLAG_dot=0 18155 18156;; #( 18157*) 18158 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 18159;; 18160esac 18161 18162else $as_nop 18163 18164DX_FLAG_dot=0 18165 18166 18167test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0 18168 18169 18170 18171fi 18172 18173if test "$DX_FLAG_dot" = 1; then 18174 18175if test -n "$ac_tool_prefix"; then 18176 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. 18177set dummy ${ac_tool_prefix}dot; ac_word=$2 18178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18179printf %s "checking for $ac_word... " >&6; } 18180if test ${ac_cv_path_DX_DOT+y} 18181then : 18182 printf %s "(cached) " >&6 18183else $as_nop 18184 case $DX_DOT in 18185 [\\/]* | ?:[\\/]*) 18186 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path. 18187 ;; 18188 *) 18189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18190for as_dir in $PATH 18191do 18192 IFS=$as_save_IFS 18193 case $as_dir in #((( 18194 '') as_dir=./ ;; 18195 */) ;; 18196 *) as_dir=$as_dir/ ;; 18197 esac 18198 for ac_exec_ext in '' $ac_executable_extensions; do 18199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18200 ac_cv_path_DX_DOT="$as_dir$ac_word$ac_exec_ext" 18201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18202 break 2 18203 fi 18204done 18205 done 18206IFS=$as_save_IFS 18207 18208 ;; 18209esac 18210fi 18211DX_DOT=$ac_cv_path_DX_DOT 18212if test -n "$DX_DOT"; then 18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 18214printf "%s\n" "$DX_DOT" >&6; } 18215else 18216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18217printf "%s\n" "no" >&6; } 18218fi 18219 18220 18221fi 18222if test -z "$ac_cv_path_DX_DOT"; then 18223 ac_pt_DX_DOT=$DX_DOT 18224 # Extract the first word of "dot", so it can be a program name with args. 18225set dummy dot; ac_word=$2 18226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18227printf %s "checking for $ac_word... " >&6; } 18228if test ${ac_cv_path_ac_pt_DX_DOT+y} 18229then : 18230 printf %s "(cached) " >&6 18231else $as_nop 18232 case $ac_pt_DX_DOT in 18233 [\\/]* | ?:[\\/]*) 18234 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path. 18235 ;; 18236 *) 18237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18238for as_dir in $PATH 18239do 18240 IFS=$as_save_IFS 18241 case $as_dir in #((( 18242 '') as_dir=./ ;; 18243 */) ;; 18244 *) as_dir=$as_dir/ ;; 18245 esac 18246 for ac_exec_ext in '' $ac_executable_extensions; do 18247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18248 ac_cv_path_ac_pt_DX_DOT="$as_dir$ac_word$ac_exec_ext" 18249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18250 break 2 18251 fi 18252done 18253 done 18254IFS=$as_save_IFS 18255 18256 ;; 18257esac 18258fi 18259ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT 18260if test -n "$ac_pt_DX_DOT"; then 18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 18262printf "%s\n" "$ac_pt_DX_DOT" >&6; } 18263else 18264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18265printf "%s\n" "no" >&6; } 18266fi 18267 18268 if test "x$ac_pt_DX_DOT" = x; then 18269 DX_DOT="" 18270 else 18271 case $cross_compiling:$ac_tool_warned in 18272yes:) 18273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18274printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18275ac_tool_warned=yes ;; 18276esac 18277 DX_DOT=$ac_pt_DX_DOT 18278 fi 18279else 18280 DX_DOT="$ac_cv_path_DX_DOT" 18281fi 18282 18283if test "$DX_FLAG_dot$DX_DOT" = 1; then 18284 if test "xdot" = "xdoxygen"; then 18285 as_fn_error $? "dot not found - will not generate graphics for doxygen documentation" "$LINENO" 5 18286 else 18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 18288printf "%s\n" "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} 18289 fi 18290 DX_FLAG_dot=0 18291 18292fi 18293 18294 : 18295fi 18296if test "$DX_FLAG_dot" = 1; then 18297 DX_ENV="$DX_ENV HAVE_DOT='YES'" 18298HAVE_DOT=YES 18299 18300 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" 18301DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'` 18302 18303 : 18304else 18305 DX_ENV="$DX_ENV HAVE_DOT='NO'" 18306HAVE_DOT=NO 18307 18308 : 18309fi 18310 18311 18312# Man pages generation: 18313 18314 18315 18316 # Check whether --enable-doxygen-man was given. 18317if test ${enable_doxygen_man+y} 18318then : 18319 enableval=$enable_doxygen_man; 18320case "$enableval" in 18321#( 18322y|Y|yes|Yes|YES) 18323 DX_FLAG_man=1 18324 18325 18326test "$DX_FLAG_doc" = "1" \ 18327|| as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5 18328 18329;; #( 18330n|N|no|No|NO) 18331 DX_FLAG_man=0 18332 18333;; #( 18334*) 18335 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 18336;; 18337esac 18338 18339else $as_nop 18340 18341DX_FLAG_man=0 18342 18343 18344test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0 18345 18346 18347 18348fi 18349 18350if test "$DX_FLAG_man" = 1; then 18351 18352 : 18353fi 18354if test "$DX_FLAG_man" = 1; then 18355 DX_ENV="$DX_ENV GENERATE_MAN='YES'" 18356GENERATE_MAN=YES 18357 18358 : 18359else 18360 DX_ENV="$DX_ENV GENERATE_MAN='NO'" 18361GENERATE_MAN=NO 18362 18363 : 18364fi 18365 18366 18367# RTF file generation: 18368 18369 18370 18371 # Check whether --enable-doxygen-rtf was given. 18372if test ${enable_doxygen_rtf+y} 18373then : 18374 enableval=$enable_doxygen_rtf; 18375case "$enableval" in 18376#( 18377y|Y|yes|Yes|YES) 18378 DX_FLAG_rtf=1 18379 18380 18381test "$DX_FLAG_doc" = "1" \ 18382|| as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5 18383 18384;; #( 18385n|N|no|No|NO) 18386 DX_FLAG_rtf=0 18387 18388;; #( 18389*) 18390 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 18391;; 18392esac 18393 18394else $as_nop 18395 18396DX_FLAG_rtf=0 18397 18398 18399test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0 18400 18401 18402 18403fi 18404 18405if test "$DX_FLAG_rtf" = 1; then 18406 18407 : 18408fi 18409if test "$DX_FLAG_rtf" = 1; then 18410 DX_ENV="$DX_ENV GENERATE_RTF='YES'" 18411GENERATE_RTF=YES 18412 18413 : 18414else 18415 DX_ENV="$DX_ENV GENERATE_RTF='NO'" 18416GENERATE_RTF=NO 18417 18418 : 18419fi 18420 18421 18422# XML file generation: 18423 18424 18425 18426 # Check whether --enable-doxygen-xml was given. 18427if test ${enable_doxygen_xml+y} 18428then : 18429 enableval=$enable_doxygen_xml; 18430case "$enableval" in 18431#( 18432y|Y|yes|Yes|YES) 18433 DX_FLAG_xml=1 18434 18435 18436test "$DX_FLAG_doc" = "1" \ 18437|| as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5 18438 18439;; #( 18440n|N|no|No|NO) 18441 DX_FLAG_xml=0 18442 18443;; #( 18444*) 18445 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 18446;; 18447esac 18448 18449else $as_nop 18450 18451DX_FLAG_xml=0 18452 18453 18454test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0 18455 18456 18457 18458fi 18459 18460if test "$DX_FLAG_xml" = 1; then 18461 18462 : 18463fi 18464if test "$DX_FLAG_xml" = 1; then 18465 DX_ENV="$DX_ENV GENERATE_XML='YES'" 18466GENERATE_XML=YES 18467 18468 : 18469else 18470 DX_ENV="$DX_ENV GENERATE_XML='NO'" 18471GENERATE_XML=NO 18472 18473 : 18474fi 18475 18476 18477# (Compressed) HTML help generation: 18478 18479 18480 18481 # Check whether --enable-doxygen-chm was given. 18482if test ${enable_doxygen_chm+y} 18483then : 18484 enableval=$enable_doxygen_chm; 18485case "$enableval" in 18486#( 18487y|Y|yes|Yes|YES) 18488 DX_FLAG_chm=1 18489 18490 18491test "$DX_FLAG_doc" = "1" \ 18492|| as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5 18493 18494;; #( 18495n|N|no|No|NO) 18496 DX_FLAG_chm=0 18497 18498;; #( 18499*) 18500 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 18501;; 18502esac 18503 18504else $as_nop 18505 18506DX_FLAG_chm=0 18507 18508 18509test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0 18510 18511 18512 18513fi 18514 18515if test "$DX_FLAG_chm" = 1; then 18516 18517if test -n "$ac_tool_prefix"; then 18518 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. 18519set dummy ${ac_tool_prefix}hhc; ac_word=$2 18520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18521printf %s "checking for $ac_word... " >&6; } 18522if test ${ac_cv_path_DX_HHC+y} 18523then : 18524 printf %s "(cached) " >&6 18525else $as_nop 18526 case $DX_HHC in 18527 [\\/]* | ?:[\\/]*) 18528 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path. 18529 ;; 18530 *) 18531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18532for as_dir in $PATH 18533do 18534 IFS=$as_save_IFS 18535 case $as_dir in #((( 18536 '') as_dir=./ ;; 18537 */) ;; 18538 *) as_dir=$as_dir/ ;; 18539 esac 18540 for ac_exec_ext in '' $ac_executable_extensions; do 18541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18542 ac_cv_path_DX_HHC="$as_dir$ac_word$ac_exec_ext" 18543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18544 break 2 18545 fi 18546done 18547 done 18548IFS=$as_save_IFS 18549 18550 ;; 18551esac 18552fi 18553DX_HHC=$ac_cv_path_DX_HHC 18554if test -n "$DX_HHC"; then 18555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 18556printf "%s\n" "$DX_HHC" >&6; } 18557else 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18559printf "%s\n" "no" >&6; } 18560fi 18561 18562 18563fi 18564if test -z "$ac_cv_path_DX_HHC"; then 18565 ac_pt_DX_HHC=$DX_HHC 18566 # Extract the first word of "hhc", so it can be a program name with args. 18567set dummy hhc; ac_word=$2 18568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18569printf %s "checking for $ac_word... " >&6; } 18570if test ${ac_cv_path_ac_pt_DX_HHC+y} 18571then : 18572 printf %s "(cached) " >&6 18573else $as_nop 18574 case $ac_pt_DX_HHC in 18575 [\\/]* | ?:[\\/]*) 18576 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path. 18577 ;; 18578 *) 18579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18580for as_dir in $PATH 18581do 18582 IFS=$as_save_IFS 18583 case $as_dir in #((( 18584 '') as_dir=./ ;; 18585 */) ;; 18586 *) as_dir=$as_dir/ ;; 18587 esac 18588 for ac_exec_ext in '' $ac_executable_extensions; do 18589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18590 ac_cv_path_ac_pt_DX_HHC="$as_dir$ac_word$ac_exec_ext" 18591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18592 break 2 18593 fi 18594done 18595 done 18596IFS=$as_save_IFS 18597 18598 ;; 18599esac 18600fi 18601ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC 18602if test -n "$ac_pt_DX_HHC"; then 18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 18604printf "%s\n" "$ac_pt_DX_HHC" >&6; } 18605else 18606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18607printf "%s\n" "no" >&6; } 18608fi 18609 18610 if test "x$ac_pt_DX_HHC" = x; then 18611 DX_HHC="" 18612 else 18613 case $cross_compiling:$ac_tool_warned in 18614yes:) 18615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18616printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18617ac_tool_warned=yes ;; 18618esac 18619 DX_HHC=$ac_pt_DX_HHC 18620 fi 18621else 18622 DX_HHC="$ac_cv_path_DX_HHC" 18623fi 18624 18625if test "$DX_FLAG_chm$DX_HHC" = 1; then 18626 if test "xhhc" = "xdoxygen"; then 18627 as_fn_error $? "hhc not found - will not generate doxygen compressed HTML help documentation" "$LINENO" 5 18628 else 18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 18630printf "%s\n" "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} 18631 fi 18632 DX_FLAG_chm=0 18633 18634fi 18635 18636 : 18637fi 18638if test "$DX_FLAG_chm" = 1; then 18639 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" 18640HHC_PATH=$DX_HHC 18641 18642 DX_ENV="$DX_ENV GENERATE_HTML='YES'" 18643GENERATE_HTML=YES 18644 18645 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" 18646GENERATE_HTMLHELP=YES 18647 18648 : 18649else 18650 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" 18651GENERATE_HTMLHELP=NO 18652 18653 : 18654fi 18655 18656 18657# Separate CHI file generation. 18658 18659 18660 18661 # Check whether --enable-doxygen-chi was given. 18662if test ${enable_doxygen_chi+y} 18663then : 18664 enableval=$enable_doxygen_chi; 18665case "$enableval" in 18666#( 18667y|Y|yes|Yes|YES) 18668 DX_FLAG_chi=1 18669 18670 18671test "$DX_FLAG_chm" = "1" \ 18672|| as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5 18673 18674;; #( 18675n|N|no|No|NO) 18676 DX_FLAG_chi=0 18677 18678;; #( 18679*) 18680 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 18681;; 18682esac 18683 18684else $as_nop 18685 18686DX_FLAG_chi=0 18687 18688 18689test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0 18690 18691 18692 18693fi 18694 18695if test "$DX_FLAG_chi" = 1; then 18696 18697 : 18698fi 18699if test "$DX_FLAG_chi" = 1; then 18700 DX_ENV="$DX_ENV GENERATE_CHI='YES'" 18701GENERATE_CHI=YES 18702 18703 : 18704else 18705 DX_ENV="$DX_ENV GENERATE_CHI='NO'" 18706GENERATE_CHI=NO 18707 18708 : 18709fi 18710 18711 18712# Plain HTML pages generation: 18713 18714 18715 18716 # Check whether --enable-doxygen-html was given. 18717if test ${enable_doxygen_html+y} 18718then : 18719 enableval=$enable_doxygen_html; 18720case "$enableval" in 18721#( 18722y|Y|yes|Yes|YES) 18723 DX_FLAG_html=1 18724 18725 18726test "$DX_FLAG_doc" = "1" \ 18727|| as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5 18728 18729test "$DX_FLAG_chm" = "0" \ 18730|| as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5 18731 18732;; #( 18733n|N|no|No|NO) 18734 DX_FLAG_html=0 18735 18736;; #( 18737*) 18738 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 18739;; 18740esac 18741 18742else $as_nop 18743 18744DX_FLAG_html=1 18745 18746 18747test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0 18748 18749 18750test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0 18751 18752 18753 18754fi 18755 18756if test "$DX_FLAG_html" = 1; then 18757 18758 : 18759fi 18760if test "$DX_FLAG_html" = 1; then 18761 DX_ENV="$DX_ENV GENERATE_HTML='YES'" 18762GENERATE_HTML=YES 18763 18764 : 18765else 18766 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" 18767GENERATE_HTML=NO 18768 18769 : 18770fi 18771 18772 18773# PostScript file generation: 18774 18775 18776 18777 # Check whether --enable-doxygen-ps was given. 18778if test ${enable_doxygen_ps+y} 18779then : 18780 enableval=$enable_doxygen_ps; 18781case "$enableval" in 18782#( 18783y|Y|yes|Yes|YES) 18784 DX_FLAG_ps=1 18785 18786 18787test "$DX_FLAG_doc" = "1" \ 18788|| as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5 18789 18790;; #( 18791n|N|no|No|NO) 18792 DX_FLAG_ps=0 18793 18794;; #( 18795*) 18796 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 18797;; 18798esac 18799 18800else $as_nop 18801 18802DX_FLAG_ps=0 18803 18804 18805test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0 18806 18807 18808 18809fi 18810 18811if test "$DX_FLAG_ps" = 1; then 18812 18813if test -n "$ac_tool_prefix"; then 18814 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. 18815set dummy ${ac_tool_prefix}latex; ac_word=$2 18816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18817printf %s "checking for $ac_word... " >&6; } 18818if test ${ac_cv_path_DX_LATEX+y} 18819then : 18820 printf %s "(cached) " >&6 18821else $as_nop 18822 case $DX_LATEX in 18823 [\\/]* | ?:[\\/]*) 18824 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path. 18825 ;; 18826 *) 18827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18828for as_dir in $PATH 18829do 18830 IFS=$as_save_IFS 18831 case $as_dir in #((( 18832 '') as_dir=./ ;; 18833 */) ;; 18834 *) as_dir=$as_dir/ ;; 18835 esac 18836 for ac_exec_ext in '' $ac_executable_extensions; do 18837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18838 ac_cv_path_DX_LATEX="$as_dir$ac_word$ac_exec_ext" 18839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18840 break 2 18841 fi 18842done 18843 done 18844IFS=$as_save_IFS 18845 18846 ;; 18847esac 18848fi 18849DX_LATEX=$ac_cv_path_DX_LATEX 18850if test -n "$DX_LATEX"; then 18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 18852printf "%s\n" "$DX_LATEX" >&6; } 18853else 18854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18855printf "%s\n" "no" >&6; } 18856fi 18857 18858 18859fi 18860if test -z "$ac_cv_path_DX_LATEX"; then 18861 ac_pt_DX_LATEX=$DX_LATEX 18862 # Extract the first word of "latex", so it can be a program name with args. 18863set dummy latex; ac_word=$2 18864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18865printf %s "checking for $ac_word... " >&6; } 18866if test ${ac_cv_path_ac_pt_DX_LATEX+y} 18867then : 18868 printf %s "(cached) " >&6 18869else $as_nop 18870 case $ac_pt_DX_LATEX in 18871 [\\/]* | ?:[\\/]*) 18872 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path. 18873 ;; 18874 *) 18875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18876for as_dir in $PATH 18877do 18878 IFS=$as_save_IFS 18879 case $as_dir in #((( 18880 '') as_dir=./ ;; 18881 */) ;; 18882 *) as_dir=$as_dir/ ;; 18883 esac 18884 for ac_exec_ext in '' $ac_executable_extensions; do 18885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18886 ac_cv_path_ac_pt_DX_LATEX="$as_dir$ac_word$ac_exec_ext" 18887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18888 break 2 18889 fi 18890done 18891 done 18892IFS=$as_save_IFS 18893 18894 ;; 18895esac 18896fi 18897ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX 18898if test -n "$ac_pt_DX_LATEX"; then 18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 18900printf "%s\n" "$ac_pt_DX_LATEX" >&6; } 18901else 18902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18903printf "%s\n" "no" >&6; } 18904fi 18905 18906 if test "x$ac_pt_DX_LATEX" = x; then 18907 DX_LATEX="" 18908 else 18909 case $cross_compiling:$ac_tool_warned in 18910yes:) 18911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 18912printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 18913ac_tool_warned=yes ;; 18914esac 18915 DX_LATEX=$ac_pt_DX_LATEX 18916 fi 18917else 18918 DX_LATEX="$ac_cv_path_DX_LATEX" 18919fi 18920 18921if test "$DX_FLAG_ps$DX_LATEX" = 1; then 18922 if test "xlatex" = "xdoxygen"; then 18923 as_fn_error $? "latex not found - will not generate doxygen PostScript documentation" "$LINENO" 5 18924 else 18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 18926printf "%s\n" "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} 18927 fi 18928 DX_FLAG_ps=0 18929 18930fi 18931 18932 18933if test -n "$ac_tool_prefix"; then 18934 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. 18935set dummy ${ac_tool_prefix}makeindex; ac_word=$2 18936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18937printf %s "checking for $ac_word... " >&6; } 18938if test ${ac_cv_path_DX_MAKEINDEX+y} 18939then : 18940 printf %s "(cached) " >&6 18941else $as_nop 18942 case $DX_MAKEINDEX in 18943 [\\/]* | ?:[\\/]*) 18944 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. 18945 ;; 18946 *) 18947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18948for as_dir in $PATH 18949do 18950 IFS=$as_save_IFS 18951 case $as_dir in #((( 18952 '') as_dir=./ ;; 18953 */) ;; 18954 *) as_dir=$as_dir/ ;; 18955 esac 18956 for ac_exec_ext in '' $ac_executable_extensions; do 18957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 18958 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 18959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 18960 break 2 18961 fi 18962done 18963 done 18964IFS=$as_save_IFS 18965 18966 ;; 18967esac 18968fi 18969DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX 18970if test -n "$DX_MAKEINDEX"; then 18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 18972printf "%s\n" "$DX_MAKEINDEX" >&6; } 18973else 18974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18975printf "%s\n" "no" >&6; } 18976fi 18977 18978 18979fi 18980if test -z "$ac_cv_path_DX_MAKEINDEX"; then 18981 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX 18982 # Extract the first word of "makeindex", so it can be a program name with args. 18983set dummy makeindex; ac_word=$2 18984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18985printf %s "checking for $ac_word... " >&6; } 18986if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y} 18987then : 18988 printf %s "(cached) " >&6 18989else $as_nop 18990 case $ac_pt_DX_MAKEINDEX in 18991 [\\/]* | ?:[\\/]*) 18992 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. 18993 ;; 18994 *) 18995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18996for as_dir in $PATH 18997do 18998 IFS=$as_save_IFS 18999 case $as_dir in #((( 19000 '') as_dir=./ ;; 19001 */) ;; 19002 *) as_dir=$as_dir/ ;; 19003 esac 19004 for ac_exec_ext in '' $ac_executable_extensions; do 19005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19006 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 19007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19008 break 2 19009 fi 19010done 19011 done 19012IFS=$as_save_IFS 19013 19014 ;; 19015esac 19016fi 19017ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX 19018if test -n "$ac_pt_DX_MAKEINDEX"; then 19019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 19020printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; } 19021else 19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19023printf "%s\n" "no" >&6; } 19024fi 19025 19026 if test "x$ac_pt_DX_MAKEINDEX" = x; then 19027 DX_MAKEINDEX="" 19028 else 19029 case $cross_compiling:$ac_tool_warned in 19030yes:) 19031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19032printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19033ac_tool_warned=yes ;; 19034esac 19035 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX 19036 fi 19037else 19038 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" 19039fi 19040 19041if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then 19042 if test "xmakeindex" = "xdoxygen"; then 19043 as_fn_error $? "makeindex not found - will not generate doxygen PostScript documentation" "$LINENO" 5 19044 else 19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 19046printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} 19047 fi 19048 DX_FLAG_ps=0 19049 19050fi 19051 19052 19053if test -n "$ac_tool_prefix"; then 19054 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. 19055set dummy ${ac_tool_prefix}dvips; ac_word=$2 19056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19057printf %s "checking for $ac_word... " >&6; } 19058if test ${ac_cv_path_DX_DVIPS+y} 19059then : 19060 printf %s "(cached) " >&6 19061else $as_nop 19062 case $DX_DVIPS in 19063 [\\/]* | ?:[\\/]*) 19064 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path. 19065 ;; 19066 *) 19067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19068for as_dir in $PATH 19069do 19070 IFS=$as_save_IFS 19071 case $as_dir in #((( 19072 '') as_dir=./ ;; 19073 */) ;; 19074 *) as_dir=$as_dir/ ;; 19075 esac 19076 for ac_exec_ext in '' $ac_executable_extensions; do 19077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19078 ac_cv_path_DX_DVIPS="$as_dir$ac_word$ac_exec_ext" 19079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19080 break 2 19081 fi 19082done 19083 done 19084IFS=$as_save_IFS 19085 19086 ;; 19087esac 19088fi 19089DX_DVIPS=$ac_cv_path_DX_DVIPS 19090if test -n "$DX_DVIPS"; then 19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 19092printf "%s\n" "$DX_DVIPS" >&6; } 19093else 19094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19095printf "%s\n" "no" >&6; } 19096fi 19097 19098 19099fi 19100if test -z "$ac_cv_path_DX_DVIPS"; then 19101 ac_pt_DX_DVIPS=$DX_DVIPS 19102 # Extract the first word of "dvips", so it can be a program name with args. 19103set dummy dvips; ac_word=$2 19104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19105printf %s "checking for $ac_word... " >&6; } 19106if test ${ac_cv_path_ac_pt_DX_DVIPS+y} 19107then : 19108 printf %s "(cached) " >&6 19109else $as_nop 19110 case $ac_pt_DX_DVIPS in 19111 [\\/]* | ?:[\\/]*) 19112 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path. 19113 ;; 19114 *) 19115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19116for as_dir in $PATH 19117do 19118 IFS=$as_save_IFS 19119 case $as_dir in #((( 19120 '') as_dir=./ ;; 19121 */) ;; 19122 *) as_dir=$as_dir/ ;; 19123 esac 19124 for ac_exec_ext in '' $ac_executable_extensions; do 19125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19126 ac_cv_path_ac_pt_DX_DVIPS="$as_dir$ac_word$ac_exec_ext" 19127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19128 break 2 19129 fi 19130done 19131 done 19132IFS=$as_save_IFS 19133 19134 ;; 19135esac 19136fi 19137ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS 19138if test -n "$ac_pt_DX_DVIPS"; then 19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 19140printf "%s\n" "$ac_pt_DX_DVIPS" >&6; } 19141else 19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19143printf "%s\n" "no" >&6; } 19144fi 19145 19146 if test "x$ac_pt_DX_DVIPS" = x; then 19147 DX_DVIPS="" 19148 else 19149 case $cross_compiling:$ac_tool_warned in 19150yes:) 19151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19152printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19153ac_tool_warned=yes ;; 19154esac 19155 DX_DVIPS=$ac_pt_DX_DVIPS 19156 fi 19157else 19158 DX_DVIPS="$ac_cv_path_DX_DVIPS" 19159fi 19160 19161if test "$DX_FLAG_ps$DX_DVIPS" = 1; then 19162 if test "xdvips" = "xdoxygen"; then 19163 as_fn_error $? "dvips not found - will not generate doxygen PostScript documentation" "$LINENO" 5 19164 else 19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 19166printf "%s\n" "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} 19167 fi 19168 DX_FLAG_ps=0 19169 19170fi 19171 19172 19173if test -n "$ac_tool_prefix"; then 19174 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. 19175set dummy ${ac_tool_prefix}egrep; ac_word=$2 19176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19177printf %s "checking for $ac_word... " >&6; } 19178if test ${ac_cv_path_DX_EGREP+y} 19179then : 19180 printf %s "(cached) " >&6 19181else $as_nop 19182 case $DX_EGREP in 19183 [\\/]* | ?:[\\/]*) 19184 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. 19185 ;; 19186 *) 19187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19188for as_dir in $PATH 19189do 19190 IFS=$as_save_IFS 19191 case $as_dir in #((( 19192 '') as_dir=./ ;; 19193 */) ;; 19194 *) as_dir=$as_dir/ ;; 19195 esac 19196 for ac_exec_ext in '' $ac_executable_extensions; do 19197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19198 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19200 break 2 19201 fi 19202done 19203 done 19204IFS=$as_save_IFS 19205 19206 ;; 19207esac 19208fi 19209DX_EGREP=$ac_cv_path_DX_EGREP 19210if test -n "$DX_EGREP"; then 19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 19212printf "%s\n" "$DX_EGREP" >&6; } 19213else 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19215printf "%s\n" "no" >&6; } 19216fi 19217 19218 19219fi 19220if test -z "$ac_cv_path_DX_EGREP"; then 19221 ac_pt_DX_EGREP=$DX_EGREP 19222 # Extract the first word of "egrep", so it can be a program name with args. 19223set dummy egrep; ac_word=$2 19224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19225printf %s "checking for $ac_word... " >&6; } 19226if test ${ac_cv_path_ac_pt_DX_EGREP+y} 19227then : 19228 printf %s "(cached) " >&6 19229else $as_nop 19230 case $ac_pt_DX_EGREP in 19231 [\\/]* | ?:[\\/]*) 19232 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. 19233 ;; 19234 *) 19235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19236for as_dir in $PATH 19237do 19238 IFS=$as_save_IFS 19239 case $as_dir in #((( 19240 '') as_dir=./ ;; 19241 */) ;; 19242 *) as_dir=$as_dir/ ;; 19243 esac 19244 for ac_exec_ext in '' $ac_executable_extensions; do 19245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19246 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19248 break 2 19249 fi 19250done 19251 done 19252IFS=$as_save_IFS 19253 19254 ;; 19255esac 19256fi 19257ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP 19258if test -n "$ac_pt_DX_EGREP"; then 19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 19260printf "%s\n" "$ac_pt_DX_EGREP" >&6; } 19261else 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19263printf "%s\n" "no" >&6; } 19264fi 19265 19266 if test "x$ac_pt_DX_EGREP" = x; then 19267 DX_EGREP="" 19268 else 19269 case $cross_compiling:$ac_tool_warned in 19270yes:) 19271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19272printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19273ac_tool_warned=yes ;; 19274esac 19275 DX_EGREP=$ac_pt_DX_EGREP 19276 fi 19277else 19278 DX_EGREP="$ac_cv_path_DX_EGREP" 19279fi 19280 19281if test "$DX_FLAG_ps$DX_EGREP" = 1; then 19282 if test "xegrep" = "xdoxygen"; then 19283 as_fn_error $? "egrep not found - will not generate doxygen PostScript documentation" "$LINENO" 5 19284 else 19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 19286printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} 19287 fi 19288 DX_FLAG_ps=0 19289 19290fi 19291 19292 : 19293fi 19294if test "$DX_FLAG_ps" = 1; then 19295 19296 : 19297else 19298 19299 : 19300fi 19301 19302 19303# PDF file generation: 19304 19305 19306 19307 # Check whether --enable-doxygen-pdf was given. 19308if test ${enable_doxygen_pdf+y} 19309then : 19310 enableval=$enable_doxygen_pdf; 19311case "$enableval" in 19312#( 19313y|Y|yes|Yes|YES) 19314 DX_FLAG_pdf=1 19315 19316 19317test "$DX_FLAG_doc" = "1" \ 19318|| as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5 19319 19320;; #( 19321n|N|no|No|NO) 19322 DX_FLAG_pdf=0 19323 19324;; #( 19325*) 19326 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 19327;; 19328esac 19329 19330else $as_nop 19331 19332DX_FLAG_pdf=0 19333 19334 19335test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0 19336 19337 19338 19339fi 19340 19341if test "$DX_FLAG_pdf" = 1; then 19342 19343if test -n "$ac_tool_prefix"; then 19344 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. 19345set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 19346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19347printf %s "checking for $ac_word... " >&6; } 19348if test ${ac_cv_path_DX_PDFLATEX+y} 19349then : 19350 printf %s "(cached) " >&6 19351else $as_nop 19352 case $DX_PDFLATEX in 19353 [\\/]* | ?:[\\/]*) 19354 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path. 19355 ;; 19356 *) 19357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19358for as_dir in $PATH 19359do 19360 IFS=$as_save_IFS 19361 case $as_dir in #((( 19362 '') as_dir=./ ;; 19363 */) ;; 19364 *) as_dir=$as_dir/ ;; 19365 esac 19366 for ac_exec_ext in '' $ac_executable_extensions; do 19367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19368 ac_cv_path_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext" 19369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19370 break 2 19371 fi 19372done 19373 done 19374IFS=$as_save_IFS 19375 19376 ;; 19377esac 19378fi 19379DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX 19380if test -n "$DX_PDFLATEX"; then 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 19382printf "%s\n" "$DX_PDFLATEX" >&6; } 19383else 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19385printf "%s\n" "no" >&6; } 19386fi 19387 19388 19389fi 19390if test -z "$ac_cv_path_DX_PDFLATEX"; then 19391 ac_pt_DX_PDFLATEX=$DX_PDFLATEX 19392 # Extract the first word of "pdflatex", so it can be a program name with args. 19393set dummy pdflatex; ac_word=$2 19394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19395printf %s "checking for $ac_word... " >&6; } 19396if test ${ac_cv_path_ac_pt_DX_PDFLATEX+y} 19397then : 19398 printf %s "(cached) " >&6 19399else $as_nop 19400 case $ac_pt_DX_PDFLATEX in 19401 [\\/]* | ?:[\\/]*) 19402 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path. 19403 ;; 19404 *) 19405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19406for as_dir in $PATH 19407do 19408 IFS=$as_save_IFS 19409 case $as_dir in #((( 19410 '') as_dir=./ ;; 19411 */) ;; 19412 *) as_dir=$as_dir/ ;; 19413 esac 19414 for ac_exec_ext in '' $ac_executable_extensions; do 19415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19416 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext" 19417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19418 break 2 19419 fi 19420done 19421 done 19422IFS=$as_save_IFS 19423 19424 ;; 19425esac 19426fi 19427ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX 19428if test -n "$ac_pt_DX_PDFLATEX"; then 19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 19430printf "%s\n" "$ac_pt_DX_PDFLATEX" >&6; } 19431else 19432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19433printf "%s\n" "no" >&6; } 19434fi 19435 19436 if test "x$ac_pt_DX_PDFLATEX" = x; then 19437 DX_PDFLATEX="" 19438 else 19439 case $cross_compiling:$ac_tool_warned in 19440yes:) 19441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19442printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19443ac_tool_warned=yes ;; 19444esac 19445 DX_PDFLATEX=$ac_pt_DX_PDFLATEX 19446 fi 19447else 19448 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" 19449fi 19450 19451if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then 19452 if test "xpdflatex" = "xdoxygen"; then 19453 as_fn_error $? "pdflatex not found - will not generate doxygen PDF documentation" "$LINENO" 5 19454 else 19455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 19456printf "%s\n" "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} 19457 fi 19458 DX_FLAG_pdf=0 19459 19460fi 19461 19462 19463if test -n "$ac_tool_prefix"; then 19464 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. 19465set dummy ${ac_tool_prefix}makeindex; ac_word=$2 19466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19467printf %s "checking for $ac_word... " >&6; } 19468if test ${ac_cv_path_DX_MAKEINDEX+y} 19469then : 19470 printf %s "(cached) " >&6 19471else $as_nop 19472 case $DX_MAKEINDEX in 19473 [\\/]* | ?:[\\/]*) 19474 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. 19475 ;; 19476 *) 19477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19478for as_dir in $PATH 19479do 19480 IFS=$as_save_IFS 19481 case $as_dir in #((( 19482 '') as_dir=./ ;; 19483 */) ;; 19484 *) as_dir=$as_dir/ ;; 19485 esac 19486 for ac_exec_ext in '' $ac_executable_extensions; do 19487 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19488 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 19489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19490 break 2 19491 fi 19492done 19493 done 19494IFS=$as_save_IFS 19495 19496 ;; 19497esac 19498fi 19499DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX 19500if test -n "$DX_MAKEINDEX"; then 19501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 19502printf "%s\n" "$DX_MAKEINDEX" >&6; } 19503else 19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19505printf "%s\n" "no" >&6; } 19506fi 19507 19508 19509fi 19510if test -z "$ac_cv_path_DX_MAKEINDEX"; then 19511 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX 19512 # Extract the first word of "makeindex", so it can be a program name with args. 19513set dummy makeindex; ac_word=$2 19514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19515printf %s "checking for $ac_word... " >&6; } 19516if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y} 19517then : 19518 printf %s "(cached) " >&6 19519else $as_nop 19520 case $ac_pt_DX_MAKEINDEX in 19521 [\\/]* | ?:[\\/]*) 19522 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. 19523 ;; 19524 *) 19525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19526for as_dir in $PATH 19527do 19528 IFS=$as_save_IFS 19529 case $as_dir in #((( 19530 '') as_dir=./ ;; 19531 */) ;; 19532 *) as_dir=$as_dir/ ;; 19533 esac 19534 for ac_exec_ext in '' $ac_executable_extensions; do 19535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19536 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" 19537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19538 break 2 19539 fi 19540done 19541 done 19542IFS=$as_save_IFS 19543 19544 ;; 19545esac 19546fi 19547ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX 19548if test -n "$ac_pt_DX_MAKEINDEX"; then 19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 19550printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; } 19551else 19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19553printf "%s\n" "no" >&6; } 19554fi 19555 19556 if test "x$ac_pt_DX_MAKEINDEX" = x; then 19557 DX_MAKEINDEX="" 19558 else 19559 case $cross_compiling:$ac_tool_warned in 19560yes:) 19561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19562printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19563ac_tool_warned=yes ;; 19564esac 19565 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX 19566 fi 19567else 19568 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" 19569fi 19570 19571if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then 19572 if test "xmakeindex" = "xdoxygen"; then 19573 as_fn_error $? "makeindex not found - will not generate doxygen PDF documentation" "$LINENO" 5 19574 else 19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 19576printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} 19577 fi 19578 DX_FLAG_pdf=0 19579 19580fi 19581 19582 19583if test -n "$ac_tool_prefix"; then 19584 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. 19585set dummy ${ac_tool_prefix}egrep; ac_word=$2 19586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19587printf %s "checking for $ac_word... " >&6; } 19588if test ${ac_cv_path_DX_EGREP+y} 19589then : 19590 printf %s "(cached) " >&6 19591else $as_nop 19592 case $DX_EGREP in 19593 [\\/]* | ?:[\\/]*) 19594 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. 19595 ;; 19596 *) 19597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19598for as_dir in $PATH 19599do 19600 IFS=$as_save_IFS 19601 case $as_dir in #((( 19602 '') as_dir=./ ;; 19603 */) ;; 19604 *) as_dir=$as_dir/ ;; 19605 esac 19606 for ac_exec_ext in '' $ac_executable_extensions; do 19607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19608 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19610 break 2 19611 fi 19612done 19613 done 19614IFS=$as_save_IFS 19615 19616 ;; 19617esac 19618fi 19619DX_EGREP=$ac_cv_path_DX_EGREP 19620if test -n "$DX_EGREP"; then 19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 19622printf "%s\n" "$DX_EGREP" >&6; } 19623else 19624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19625printf "%s\n" "no" >&6; } 19626fi 19627 19628 19629fi 19630if test -z "$ac_cv_path_DX_EGREP"; then 19631 ac_pt_DX_EGREP=$DX_EGREP 19632 # Extract the first word of "egrep", so it can be a program name with args. 19633set dummy egrep; ac_word=$2 19634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19635printf %s "checking for $ac_word... " >&6; } 19636if test ${ac_cv_path_ac_pt_DX_EGREP+y} 19637then : 19638 printf %s "(cached) " >&6 19639else $as_nop 19640 case $ac_pt_DX_EGREP in 19641 [\\/]* | ?:[\\/]*) 19642 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. 19643 ;; 19644 *) 19645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19646for as_dir in $PATH 19647do 19648 IFS=$as_save_IFS 19649 case $as_dir in #((( 19650 '') as_dir=./ ;; 19651 */) ;; 19652 *) as_dir=$as_dir/ ;; 19653 esac 19654 for ac_exec_ext in '' $ac_executable_extensions; do 19655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19656 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext" 19657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19658 break 2 19659 fi 19660done 19661 done 19662IFS=$as_save_IFS 19663 19664 ;; 19665esac 19666fi 19667ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP 19668if test -n "$ac_pt_DX_EGREP"; then 19669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 19670printf "%s\n" "$ac_pt_DX_EGREP" >&6; } 19671else 19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19673printf "%s\n" "no" >&6; } 19674fi 19675 19676 if test "x$ac_pt_DX_EGREP" = x; then 19677 DX_EGREP="" 19678 else 19679 case $cross_compiling:$ac_tool_warned in 19680yes:) 19681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19683ac_tool_warned=yes ;; 19684esac 19685 DX_EGREP=$ac_pt_DX_EGREP 19686 fi 19687else 19688 DX_EGREP="$ac_cv_path_DX_EGREP" 19689fi 19690 19691if test "$DX_FLAG_pdf$DX_EGREP" = 1; then 19692 if test "xegrep" = "xdoxygen"; then 19693 as_fn_error $? "egrep not found - will not generate doxygen PDF documentation" "$LINENO" 5 19694 else 19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 19696printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} 19697 fi 19698 DX_FLAG_pdf=0 19699 19700fi 19701 19702 : 19703fi 19704if test "$DX_FLAG_pdf" = 1; then 19705 19706 : 19707else 19708 19709 : 19710fi 19711 19712 19713# LaTeX generation for PS and/or PDF: 19714if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then 19715 DX_ENV="$DX_ENV GENERATE_LATEX='YES'" 19716GENERATE_LATEX=YES 19717 19718else 19719 DX_ENV="$DX_ENV GENERATE_LATEX='NO'" 19720GENERATE_LATEX=NO 19721 19722fi 19723 19724# Paper size for PS and/or PDF: 19725 19726case "$DOXYGEN_PAPER_SIZE" in 19727#( 19728"") 19729 DOXYGEN_PAPER_SIZE="" 19730 19731;; #( 19732a4wide|a4|letter|legal|executive) 19733 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" 19734PAPER_SIZE=$DOXYGEN_PAPER_SIZE 19735 19736;; #( 19737*) 19738 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 19739;; 19740esac 19741 19742# Rules: 19743if test $DX_FLAG_html -eq 1 19744then : 19745 DX_SNIPPET_html="## ------------------------------- ## 19746## Rules specific for HTML output. ## 19747## ------------------------------- ## 19748 19749DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\ 19750 \$(DX_DOCDIR)/html 19751 19752" 19753else $as_nop 19754 DX_SNIPPET_html="" 19755fi 19756if test $DX_FLAG_chi -eq 1 19757then : 19758 DX_SNIPPET_chi=" 19759DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\ 19760 \$(DX_DOCDIR)/\$(PACKAGE).chi" 19761else $as_nop 19762 DX_SNIPPET_chi="" 19763fi 19764if test $DX_FLAG_chm -eq 1 19765then : 19766 DX_SNIPPET_chm="## ------------------------------ ## 19767## Rules specific for CHM output. ## 19768## ------------------------------ ## 19769 19770DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\ 19771 \$(DX_DOCDIR)/chm\ 19772${DX_SNIPPET_chi} 19773 19774" 19775else $as_nop 19776 DX_SNIPPET_chm="" 19777fi 19778if test $DX_FLAG_man -eq 1 19779then : 19780 DX_SNIPPET_man="## ------------------------------ ## 19781## Rules specific for MAN output. ## 19782## ------------------------------ ## 19783 19784DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\ 19785 \$(DX_DOCDIR)/man 19786 19787" 19788else $as_nop 19789 DX_SNIPPET_man="" 19790fi 19791if test $DX_FLAG_rtf -eq 1 19792then : 19793 DX_SNIPPET_rtf="## ------------------------------ ## 19794## Rules specific for RTF output. ## 19795## ------------------------------ ## 19796 19797DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\ 19798 \$(DX_DOCDIR)/rtf 19799 19800" 19801else $as_nop 19802 DX_SNIPPET_rtf="" 19803fi 19804if test $DX_FLAG_xml -eq 1 19805then : 19806 DX_SNIPPET_xml="## ------------------------------ ## 19807## Rules specific for XML output. ## 19808## ------------------------------ ## 19809 19810DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\ 19811 \$(DX_DOCDIR)/xml 19812 19813" 19814else $as_nop 19815 DX_SNIPPET_xml="" 19816fi 19817if test $DX_FLAG_ps -eq 1 19818then : 19819 DX_SNIPPET_ps="## ----------------------------- ## 19820## Rules specific for PS output. ## 19821## ----------------------------- ## 19822 19823DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\ 19824 \$(DX_DOCDIR)/\$(PACKAGE).ps 19825 19826DX_PS_GOAL = doxygen-ps 19827 19828doxygen-ps: \$(DX_CLEAN_PS) 19829 19830\$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag 19831 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\ 19832 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\ 19833 \$(DX_LATEX) refman.tex; \\ 19834 \$(DX_MAKEINDEX) refman.idx; \\ 19835 \$(DX_LATEX) refman.tex; \\ 19836 countdown=5; \\ 19837 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\ 19838 refman.log > /dev/null 2>&1 \\ 19839 && test \$\$countdown -gt 0; do \\ 19840 \$(DX_LATEX) refman.tex; \\ 19841 countdown=\`expr \$\$countdown - 1\`; \\ 19842 done; \\ 19843 \$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi 19844 19845" 19846else $as_nop 19847 DX_SNIPPET_ps="" 19848fi 19849if test $DX_FLAG_pdf -eq 1 19850then : 19851 DX_SNIPPET_pdf="## ------------------------------ ## 19852## Rules specific for PDF output. ## 19853## ------------------------------ ## 19854 19855DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\ 19856 \$(DX_DOCDIR)/\$(PACKAGE).pdf 19857 19858DX_PDF_GOAL = doxygen-pdf 19859 19860doxygen-pdf: \$(DX_CLEAN_PDF) 19861 19862\$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag 19863 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\ 19864 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\ 19865 \$(DX_PDFLATEX) refman.tex; \\ 19866 \$(DX_MAKEINDEX) refman.idx; \\ 19867 \$(DX_PDFLATEX) refman.tex; \\ 19868 countdown=5; \\ 19869 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\ 19870 refman.log > /dev/null 2>&1 \\ 19871 && test \$\$countdown -gt 0; do \\ 19872 \$(DX_PDFLATEX) refman.tex; \\ 19873 countdown=\`expr \$\$countdown - 1\`; \\ 19874 done; \\ 19875 mv refman.pdf ../\$(PACKAGE).pdf 19876 19877" 19878else $as_nop 19879 DX_SNIPPET_pdf="" 19880fi 19881if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1 19882then : 19883 DX_SNIPPET_latex="## ------------------------------------------------- ## 19884## Rules specific for LaTeX (shared for PS and PDF). ## 19885## ------------------------------------------------- ## 19886 19887DX_V_LATEX = \$(_DX_v_LATEX_\$(V)) 19888_DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY)) 19889_DX_v_LATEX_0 = @echo \" LATEX \" \$@; 19890 19891DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\ 19892 \$(DX_DOCDIR)/latex 19893 19894" 19895else $as_nop 19896 DX_SNIPPET_latex="" 19897fi 19898 19899if test $DX_FLAG_doc -eq 1 19900then : 19901 DX_SNIPPET_doc="## --------------------------------- ## 19902## Format-independent Doxygen rules. ## 19903## --------------------------------- ## 19904 19905${DX_SNIPPET_html}\ 19906${DX_SNIPPET_chm}\ 19907${DX_SNIPPET_man}\ 19908${DX_SNIPPET_rtf}\ 19909${DX_SNIPPET_xml}\ 19910${DX_SNIPPET_ps}\ 19911${DX_SNIPPET_pdf}\ 19912${DX_SNIPPET_latex}\ 19913DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V)) 19914_DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY)) 19915_DX_v_DXGEN_0 = @echo \" DXGEN \" \$<; 19916 19917.PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL) 19918 19919.INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL) 19920 19921doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag 19922 19923doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL) 19924 19925\$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS) 19926 \$(A""M_V_at)rm -rf \$(DX_DOCDIR) 19927 \$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG) 19928 \$(A""M_V_at)echo Timestamp >\$@ 19929 19930DX_CLEANFILES = \\ 19931 \$(DX_DOCDIR)/doxygen_sqlite3.db \\ 19932 \$(DX_DOCDIR)/\$(PACKAGE).tag \\ 19933 -r \\ 19934 \$(DX_CLEAN_HTML) \\ 19935 \$(DX_CLEAN_CHM) \\ 19936 \$(DX_CLEAN_CHI) \\ 19937 \$(DX_CLEAN_MAN) \\ 19938 \$(DX_CLEAN_RTF) \\ 19939 \$(DX_CLEAN_XML) \\ 19940 \$(DX_CLEAN_PS) \\ 19941 \$(DX_CLEAN_PDF) \\ 19942 \$(DX_CLEAN_LATEX) 19943DX_INSTALL_DOCS = \\ 19944 \$(DX_CLEAN_HTML) \\ 19945 \$(DX_CLEAN_CHM) \\ 19946 \$(DX_CLEAN_CHI) \\ 19947 \$(DX_CLEAN_RTF) \\ 19948 \$(DX_CLEAN_XML) \\ 19949 \$(DX_CLEAN_PS) \\ 19950 \$(DX_CLEAN_PDF) \\ 19951 \$(DX_CLEAN_LATEX) 19952 " 19953else $as_nop 19954 DX_SNIPPET_doc="" 19955fi 19956DX_RULES="${DX_SNIPPET_doc}" 19957 19958 19959#For debugging: 19960#echo DX_FLAG_doc=$DX_FLAG_doc 19961#echo DX_FLAG_dot=$DX_FLAG_dot 19962#echo DX_FLAG_man=$DX_FLAG_man 19963#echo DX_FLAG_html=$DX_FLAG_html 19964#echo DX_FLAG_chm=$DX_FLAG_chm 19965#echo DX_FLAG_chi=$DX_FLAG_chi 19966#echo DX_FLAG_rtf=$DX_FLAG_rtf 19967#echo DX_FLAG_xml=$DX_FLAG_xml 19968#echo DX_FLAG_pdf=$DX_FLAG_pdf 19969#echo DX_FLAG_ps=$DX_FLAG_ps 19970#echo DX_ENV=$DX_ENV 19971 19972 19973 if test "$DX_FLAG_doc" = "1"; then 19974 ENABLE_DOXYGEN_TRUE= 19975 ENABLE_DOXYGEN_FALSE='#' 19976else 19977 ENABLE_DOXYGEN_TRUE='#' 19978 ENABLE_DOXYGEN_FALSE= 19979fi 19980 19981 if test "$DX_FLAG_man" = "1"; then 19982 ENABLE_DOXYGEN_MAN_TRUE= 19983 ENABLE_DOXYGEN_MAN_FALSE='#' 19984else 19985 ENABLE_DOXYGEN_MAN_TRUE='#' 19986 ENABLE_DOXYGEN_MAN_FALSE= 19987fi 19988 19989 19990ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc" 19991 19992ac_config_files="$ac_config_files Makefile" 19993 19994cat >confcache <<\_ACEOF 19995# This file is a shell script that caches the results of configure 19996# tests run on this system so they can be shared between configure 19997# scripts and configure runs, see configure's option --config-cache. 19998# It is not useful on other systems. If it contains results you don't 19999# want to keep, you may remove or edit it. 20000# 20001# config.status only pays attention to the cache file if you give it 20002# the --recheck option to rerun configure. 20003# 20004# `ac_cv_env_foo' variables (set or unset) will be overridden when 20005# loading this file, other *unset* `ac_cv_foo' will be assigned the 20006# following values. 20007 20008_ACEOF 20009 20010# The following way of writing the cache mishandles newlines in values, 20011# but we know of no workaround that is simple, portable, and efficient. 20012# So, we kill variables containing newlines. 20013# Ultrix sh set writes to stderr and can't be redirected directly, 20014# and sets the high bit in the cache file unless we assign to the vars. 20015( 20016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20017 eval ac_val=\$$ac_var 20018 case $ac_val in #( 20019 *${as_nl}*) 20020 case $ac_var in #( 20021 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20022printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20023 esac 20024 case $ac_var in #( 20025 _ | IFS | as_nl) ;; #( 20026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20027 *) { eval $ac_var=; unset $ac_var;} ;; 20028 esac ;; 20029 esac 20030 done 20031 20032 (set) 2>&1 | 20033 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20034 *${as_nl}ac_space=\ *) 20035 # `set' does not quote correctly, so add quotes: double-quote 20036 # substitution turns \\\\ into \\, and sed turns \\ into \. 20037 sed -n \ 20038 "s/'/'\\\\''/g; 20039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20040 ;; #( 20041 *) 20042 # `set' quotes correctly as required by POSIX, so do not add quotes. 20043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20044 ;; 20045 esac | 20046 sort 20047) | 20048 sed ' 20049 /^ac_cv_env_/b end 20050 t clear 20051 :clear 20052 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20053 t end 20054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20055 :end' >>confcache 20056if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20057 if test -w "$cache_file"; then 20058 if test "x$cache_file" != "x/dev/null"; then 20059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20060printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20061 if test ! -f "$cache_file" || test -h "$cache_file"; then 20062 cat confcache >"$cache_file" 20063 else 20064 case $cache_file in #( 20065 */* | ?:*) 20066 mv -f confcache "$cache_file"$$ && 20067 mv -f "$cache_file"$$ "$cache_file" ;; #( 20068 *) 20069 mv -f confcache "$cache_file" ;; 20070 esac 20071 fi 20072 fi 20073 else 20074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20075printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20076 fi 20077fi 20078rm -f confcache 20079 20080test "x$prefix" = xNONE && prefix=$ac_default_prefix 20081# Let make expand exec_prefix. 20082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20083 20084DEFS=-DHAVE_CONFIG_H 20085 20086ac_libobjs= 20087ac_ltlibobjs= 20088U= 20089for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20090 # 1. Remove the extension, and $U if already installed. 20091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20092 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20094 # will be set to the directory where LIBOBJS objects are built. 20095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20097done 20098LIBOBJS=$ac_libobjs 20099 20100LTLIBOBJS=$ac_ltlibobjs 20101 20102 20103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20104printf %s "checking that generated files are newer than configure... " >&6; } 20105 if test -n "$am_sleep_pid"; then 20106 # Hide warnings about reused PIDs. 20107 wait $am_sleep_pid 2>/dev/null 20108 fi 20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20110printf "%s\n" "done" >&6; } 20111 if test -n "$EXEEXT"; then 20112 am__EXEEXT_TRUE= 20113 am__EXEEXT_FALSE='#' 20114else 20115 am__EXEEXT_TRUE='#' 20116 am__EXEEXT_FALSE= 20117fi 20118 20119if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20120 as_fn_error $? "conditional \"AMDEP\" was never defined. 20121Usually this means the macro was only invoked conditionally." "$LINENO" 5 20122fi 20123if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20124 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20125Usually this means the macro was only invoked conditionally." "$LINENO" 5 20126fi 20127if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then 20128 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined. 20129Usually this means the macro was only invoked conditionally." "$LINENO" 5 20130fi 20131if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then 20132 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined. 20133Usually this means the macro was only invoked conditionally." "$LINENO" 5 20134fi 20135if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then 20136 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined. 20137Usually this means the macro was only invoked conditionally." "$LINENO" 5 20138fi 20139if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 20140 as_fn_error $? "conditional \"OPENSSL\" was never defined. 20141Usually this means the macro was only invoked conditionally." "$LINENO" 5 20142fi 20143if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then 20144 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined. 20145Usually this means the macro was only invoked conditionally." "$LINENO" 5 20146fi 20147if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then 20148 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined. 20149Usually this means the macro was only invoked conditionally." "$LINENO" 5 20150fi 20151if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then 20152 as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined. 20153Usually this means the macro was only invoked conditionally." "$LINENO" 5 20154fi 20155if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then 20156 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined. 20157Usually this means the macro was only invoked conditionally." "$LINENO" 5 20158fi 20159if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then 20160 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined. 20161Usually this means the macro was only invoked conditionally." "$LINENO" 5 20162fi 20163if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then 20164 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined. 20165Usually this means the macro was only invoked conditionally." "$LINENO" 5 20166fi 20167if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then 20168 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined. 20169Usually this means the macro was only invoked conditionally." "$LINENO" 5 20170fi 20171if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then 20172 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined. 20173Usually this means the macro was only invoked conditionally." "$LINENO" 5 20174fi 20175if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then 20176 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined. 20177Usually this means the macro was only invoked conditionally." "$LINENO" 5 20178fi 20179if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then 20180 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined. 20181Usually this means the macro was only invoked conditionally." "$LINENO" 5 20182fi 20183if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then 20184 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined. 20185Usually this means the macro was only invoked conditionally." "$LINENO" 5 20186fi 20187if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then 20188 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined. 20189Usually this means the macro was only invoked conditionally." "$LINENO" 5 20190fi 20191if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then 20192 as_fn_error $? "conditional \"THREADS\" was never defined. 20193Usually this means the macro was only invoked conditionally." "$LINENO" 5 20194fi 20195if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then 20196 as_fn_error $? "conditional \"PTHREADS\" was never defined. 20197Usually this means the macro was only invoked conditionally." "$LINENO" 5 20198fi 20199if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then 20200 as_fn_error $? "conditional \"OPENSSL\" was never defined. 20201Usually this means the macro was only invoked conditionally." "$LINENO" 5 20202fi 20203if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then 20204 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined. 20205Usually this means the macro was only invoked conditionally." "$LINENO" 5 20206fi 20207if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then 20208 as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined. 20209Usually this means the macro was only invoked conditionally." "$LINENO" 5 20210fi 20211if test -z "${ENABLE_DOXYGEN_MAN_TRUE}" && test -z "${ENABLE_DOXYGEN_MAN_FALSE}"; then 20212 as_fn_error $? "conditional \"ENABLE_DOXYGEN_MAN\" was never defined. 20213Usually this means the macro was only invoked conditionally." "$LINENO" 5 20214fi 20215 20216: "${CONFIG_STATUS=./config.status}" 20217ac_write_fail=0 20218ac_clean_files_save=$ac_clean_files 20219ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20221printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20222as_write_fail=0 20223cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20224#! $SHELL 20225# Generated by $as_me. 20226# Run this file to recreate the current configuration. 20227# Compiler output produced by configure, useful for debugging 20228# configure, is in config.log if it exists. 20229 20230debug=false 20231ac_cs_recheck=false 20232ac_cs_silent=false 20233 20234SHELL=\${CONFIG_SHELL-$SHELL} 20235export SHELL 20236_ASEOF 20237cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20238## -------------------- ## 20239## M4sh Initialization. ## 20240## -------------------- ## 20241 20242# Be more Bourne compatible 20243DUALCASE=1; export DUALCASE # for MKS sh 20244as_nop=: 20245if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20246then : 20247 emulate sh 20248 NULLCMD=: 20249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20250 # is contrary to our usage. Disable this feature. 20251 alias -g '${1+"$@"}'='"$@"' 20252 setopt NO_GLOB_SUBST 20253else $as_nop 20254 case `(set -o) 2>/dev/null` in #( 20255 *posix*) : 20256 set -o posix ;; #( 20257 *) : 20258 ;; 20259esac 20260fi 20261 20262 20263 20264# Reset variables that may have inherited troublesome values from 20265# the environment. 20266 20267# IFS needs to be set, to space, tab, and newline, in precisely that order. 20268# (If _AS_PATH_WALK were called with IFS unset, it would have the 20269# side effect of setting IFS to empty, thus disabling word splitting.) 20270# Quoting is to prevent editors from complaining about space-tab. 20271as_nl=' 20272' 20273export as_nl 20274IFS=" "" $as_nl" 20275 20276PS1='$ ' 20277PS2='> ' 20278PS4='+ ' 20279 20280# Ensure predictable behavior from utilities with locale-dependent output. 20281LC_ALL=C 20282export LC_ALL 20283LANGUAGE=C 20284export LANGUAGE 20285 20286# We cannot yet rely on "unset" to work, but we need these variables 20287# to be unset--not just set to an empty or harmless value--now, to 20288# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20289# also avoids known problems related to "unset" and subshell syntax 20290# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20291for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20292do eval test \${$as_var+y} \ 20293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20294done 20295 20296# Ensure that fds 0, 1, and 2 are open. 20297if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20298if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20299if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20300 20301# The user is always right. 20302if ${PATH_SEPARATOR+false} :; then 20303 PATH_SEPARATOR=: 20304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20306 PATH_SEPARATOR=';' 20307 } 20308fi 20309 20310 20311# Find who we are. Look in the path if we contain no directory separator. 20312as_myself= 20313case $0 in #(( 20314 *[\\/]* ) as_myself=$0 ;; 20315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20316for as_dir in $PATH 20317do 20318 IFS=$as_save_IFS 20319 case $as_dir in #((( 20320 '') as_dir=./ ;; 20321 */) ;; 20322 *) as_dir=$as_dir/ ;; 20323 esac 20324 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20325 done 20326IFS=$as_save_IFS 20327 20328 ;; 20329esac 20330# We did not find ourselves, most probably we were run as `sh COMMAND' 20331# in which case we are not to be found in the path. 20332if test "x$as_myself" = x; then 20333 as_myself=$0 20334fi 20335if test ! -f "$as_myself"; then 20336 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20337 exit 1 20338fi 20339 20340 20341 20342# as_fn_error STATUS ERROR [LINENO LOG_FD] 20343# ---------------------------------------- 20344# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20345# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20346# script with STATUS, using 1 if that was 0. 20347as_fn_error () 20348{ 20349 as_status=$1; test $as_status -eq 0 && as_status=1 20350 if test "$4"; then 20351 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20353 fi 20354 printf "%s\n" "$as_me: error: $2" >&2 20355 as_fn_exit $as_status 20356} # as_fn_error 20357 20358 20359 20360# as_fn_set_status STATUS 20361# ----------------------- 20362# Set $? to STATUS, without forking. 20363as_fn_set_status () 20364{ 20365 return $1 20366} # as_fn_set_status 20367 20368# as_fn_exit STATUS 20369# ----------------- 20370# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20371as_fn_exit () 20372{ 20373 set +e 20374 as_fn_set_status $1 20375 exit $1 20376} # as_fn_exit 20377 20378# as_fn_unset VAR 20379# --------------- 20380# Portably unset VAR. 20381as_fn_unset () 20382{ 20383 { eval $1=; unset $1;} 20384} 20385as_unset=as_fn_unset 20386 20387# as_fn_append VAR VALUE 20388# ---------------------- 20389# Append the text in VALUE to the end of the definition contained in VAR. Take 20390# advantage of any shell optimizations that allow amortized linear growth over 20391# repeated appends, instead of the typical quadratic growth present in naive 20392# implementations. 20393if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20394then : 20395 eval 'as_fn_append () 20396 { 20397 eval $1+=\$2 20398 }' 20399else $as_nop 20400 as_fn_append () 20401 { 20402 eval $1=\$$1\$2 20403 } 20404fi # as_fn_append 20405 20406# as_fn_arith ARG... 20407# ------------------ 20408# Perform arithmetic evaluation on the ARGs, and store the result in the 20409# global $as_val. Take advantage of shells that can avoid forks. The arguments 20410# must be portable across $(()) and expr. 20411if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20412then : 20413 eval 'as_fn_arith () 20414 { 20415 as_val=$(( $* )) 20416 }' 20417else $as_nop 20418 as_fn_arith () 20419 { 20420 as_val=`expr "$@" || test $? -eq 1` 20421 } 20422fi # as_fn_arith 20423 20424 20425if expr a : '\(a\)' >/dev/null 2>&1 && 20426 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20427 as_expr=expr 20428else 20429 as_expr=false 20430fi 20431 20432if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20433 as_basename=basename 20434else 20435 as_basename=false 20436fi 20437 20438if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20439 as_dirname=dirname 20440else 20441 as_dirname=false 20442fi 20443 20444as_me=`$as_basename -- "$0" || 20445$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20446 X"$0" : 'X\(//\)$' \| \ 20447 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20448printf "%s\n" X/"$0" | 20449 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20450 s//\1/ 20451 q 20452 } 20453 /^X\/\(\/\/\)$/{ 20454 s//\1/ 20455 q 20456 } 20457 /^X\/\(\/\).*/{ 20458 s//\1/ 20459 q 20460 } 20461 s/.*/./; q'` 20462 20463# Avoid depending upon Character Ranges. 20464as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20465as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20466as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20467as_cr_digits='0123456789' 20468as_cr_alnum=$as_cr_Letters$as_cr_digits 20469 20470 20471# Determine whether it's possible to make 'echo' print without a newline. 20472# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20473# for compatibility with existing Makefiles. 20474ECHO_C= ECHO_N= ECHO_T= 20475case `echo -n x` in #((((( 20476-n*) 20477 case `echo 'xy\c'` in 20478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20479 xy) ECHO_C='\c';; 20480 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20481 ECHO_T=' ';; 20482 esac;; 20483*) 20484 ECHO_N='-n';; 20485esac 20486 20487# For backward compatibility with old third-party macros, we provide 20488# the shell variables $as_echo and $as_echo_n. New code should use 20489# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20490as_echo='printf %s\n' 20491as_echo_n='printf %s' 20492 20493rm -f conf$$ conf$$.exe conf$$.file 20494if test -d conf$$.dir; then 20495 rm -f conf$$.dir/conf$$.file 20496else 20497 rm -f conf$$.dir 20498 mkdir conf$$.dir 2>/dev/null 20499fi 20500if (echo >conf$$.file) 2>/dev/null; then 20501 if ln -s conf$$.file conf$$ 2>/dev/null; then 20502 as_ln_s='ln -s' 20503 # ... but there are two gotchas: 20504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20506 # In both cases, we have to default to `cp -pR'. 20507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20508 as_ln_s='cp -pR' 20509 elif ln conf$$.file conf$$ 2>/dev/null; then 20510 as_ln_s=ln 20511 else 20512 as_ln_s='cp -pR' 20513 fi 20514else 20515 as_ln_s='cp -pR' 20516fi 20517rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20518rmdir conf$$.dir 2>/dev/null 20519 20520 20521# as_fn_mkdir_p 20522# ------------- 20523# Create "$as_dir" as a directory, including parents if necessary. 20524as_fn_mkdir_p () 20525{ 20526 20527 case $as_dir in #( 20528 -*) as_dir=./$as_dir;; 20529 esac 20530 test -d "$as_dir" || eval $as_mkdir_p || { 20531 as_dirs= 20532 while :; do 20533 case $as_dir in #( 20534 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20535 *) as_qdir=$as_dir;; 20536 esac 20537 as_dirs="'$as_qdir' $as_dirs" 20538 as_dir=`$as_dirname -- "$as_dir" || 20539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20540 X"$as_dir" : 'X\(//\)[^/]' \| \ 20541 X"$as_dir" : 'X\(//\)$' \| \ 20542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20543printf "%s\n" X"$as_dir" | 20544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20545 s//\1/ 20546 q 20547 } 20548 /^X\(\/\/\)[^/].*/{ 20549 s//\1/ 20550 q 20551 } 20552 /^X\(\/\/\)$/{ 20553 s//\1/ 20554 q 20555 } 20556 /^X\(\/\).*/{ 20557 s//\1/ 20558 q 20559 } 20560 s/.*/./; q'` 20561 test -d "$as_dir" && break 20562 done 20563 test -z "$as_dirs" || eval "mkdir $as_dirs" 20564 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20565 20566 20567} # as_fn_mkdir_p 20568if mkdir -p . 2>/dev/null; then 20569 as_mkdir_p='mkdir -p "$as_dir"' 20570else 20571 test -d ./-p && rmdir ./-p 20572 as_mkdir_p=false 20573fi 20574 20575 20576# as_fn_executable_p FILE 20577# ----------------------- 20578# Test if FILE is an executable regular file. 20579as_fn_executable_p () 20580{ 20581 test -f "$1" && test -x "$1" 20582} # as_fn_executable_p 20583as_test_x='test -x' 20584as_executable_p=as_fn_executable_p 20585 20586# Sed expression to map a string onto a valid CPP name. 20587as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20588 20589# Sed expression to map a string onto a valid variable name. 20590as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20591 20592 20593exec 6>&1 20594## ----------------------------------- ## 20595## Main body of $CONFIG_STATUS script. ## 20596## ----------------------------------- ## 20597_ASEOF 20598test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20599 20600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20601# Save the log message, to keep $0 and so on meaningful, and to 20602# report actual input values of CONFIG_FILES etc. instead of their 20603# values after options handling. 20604ac_log=" 20605This file was extended by libevent $as_me 2.1.12-stable, which was 20606generated by GNU Autoconf 2.71. Invocation command line was 20607 20608 CONFIG_FILES = $CONFIG_FILES 20609 CONFIG_HEADERS = $CONFIG_HEADERS 20610 CONFIG_LINKS = $CONFIG_LINKS 20611 CONFIG_COMMANDS = $CONFIG_COMMANDS 20612 $ $0 $@ 20613 20614on `(hostname || uname -n) 2>/dev/null | sed 1q` 20615" 20616 20617_ACEOF 20618 20619case $ac_config_files in *" 20620"*) set x $ac_config_files; shift; ac_config_files=$*;; 20621esac 20622 20623case $ac_config_headers in *" 20624"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20625esac 20626 20627 20628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20629# Files that config.status was made for. 20630config_files="$ac_config_files" 20631config_headers="$ac_config_headers" 20632config_commands="$ac_config_commands" 20633 20634_ACEOF 20635 20636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20637ac_cs_usage="\ 20638\`$as_me' instantiates files and other configuration actions 20639from templates according to the current configuration. Unless the files 20640and actions are specified as TAGs, all are instantiated by default. 20641 20642Usage: $0 [OPTION]... [TAG]... 20643 20644 -h, --help print this help, then exit 20645 -V, --version print version number and configuration settings, then exit 20646 --config print configuration, then exit 20647 -q, --quiet, --silent 20648 do not print progress messages 20649 -d, --debug don't remove temporary files 20650 --recheck update $as_me by reconfiguring in the same conditions 20651 --file=FILE[:TEMPLATE] 20652 instantiate the configuration file FILE 20653 --header=FILE[:TEMPLATE] 20654 instantiate the configuration header FILE 20655 20656Configuration files: 20657$config_files 20658 20659Configuration headers: 20660$config_headers 20661 20662Configuration commands: 20663$config_commands 20664 20665Report bugs to the package provider." 20666 20667_ACEOF 20668ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20669ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20671ac_cs_config='$ac_cs_config_escaped' 20672ac_cs_version="\\ 20673libevent config.status 2.1.12-stable 20674configured by $0, generated by GNU Autoconf 2.71, 20675 with options \\"\$ac_cs_config\\" 20676 20677Copyright (C) 2021 Free Software Foundation, Inc. 20678This config.status script is free software; the Free Software Foundation 20679gives unlimited permission to copy, distribute and modify it." 20680 20681ac_pwd='$ac_pwd' 20682srcdir='$srcdir' 20683INSTALL='$INSTALL' 20684MKDIR_P='$MKDIR_P' 20685AWK='$AWK' 20686test -n "\$AWK" || AWK=awk 20687_ACEOF 20688 20689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20690# The default lists apply if the user does not specify any file. 20691ac_need_defaults=: 20692while test $# != 0 20693do 20694 case $1 in 20695 --*=?*) 20696 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20698 ac_shift=: 20699 ;; 20700 --*=) 20701 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20702 ac_optarg= 20703 ac_shift=: 20704 ;; 20705 *) 20706 ac_option=$1 20707 ac_optarg=$2 20708 ac_shift=shift 20709 ;; 20710 esac 20711 20712 case $ac_option in 20713 # Handling of the options. 20714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20715 ac_cs_recheck=: ;; 20716 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20717 printf "%s\n" "$ac_cs_version"; exit ;; 20718 --config | --confi | --conf | --con | --co | --c ) 20719 printf "%s\n" "$ac_cs_config"; exit ;; 20720 --debug | --debu | --deb | --de | --d | -d ) 20721 debug=: ;; 20722 --file | --fil | --fi | --f ) 20723 $ac_shift 20724 case $ac_optarg in 20725 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20726 '') as_fn_error $? "missing file argument" ;; 20727 esac 20728 as_fn_append CONFIG_FILES " '$ac_optarg'" 20729 ac_need_defaults=false;; 20730 --header | --heade | --head | --hea ) 20731 $ac_shift 20732 case $ac_optarg in 20733 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20734 esac 20735 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20736 ac_need_defaults=false;; 20737 --he | --h) 20738 # Conflict between --help and --header 20739 as_fn_error $? "ambiguous option: \`$1' 20740Try \`$0 --help' for more information.";; 20741 --help | --hel | -h ) 20742 printf "%s\n" "$ac_cs_usage"; exit ;; 20743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20744 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20745 ac_cs_silent=: ;; 20746 20747 # This is an error. 20748 -*) as_fn_error $? "unrecognized option: \`$1' 20749Try \`$0 --help' for more information." ;; 20750 20751 *) as_fn_append ac_config_targets " $1" 20752 ac_need_defaults=false ;; 20753 20754 esac 20755 shift 20756done 20757 20758ac_configure_extra_args= 20759 20760if $ac_cs_silent; then 20761 exec 6>/dev/null 20762 ac_configure_extra_args="$ac_configure_extra_args --silent" 20763fi 20764 20765_ACEOF 20766cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20767if \$ac_cs_recheck; then 20768 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20769 shift 20770 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20771 CONFIG_SHELL='$SHELL' 20772 export CONFIG_SHELL 20773 exec "\$@" 20774fi 20775 20776_ACEOF 20777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20778exec 5>>config.log 20779{ 20780 echo 20781 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20782## Running $as_me. ## 20783_ASBOX 20784 printf "%s\n" "$ac_log" 20785} >&5 20786 20787_ACEOF 20788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20789# 20790# INIT-COMMANDS 20791# 20792AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20793 20794 20795# The HP-UX ksh and POSIX shell print the target directory to stdout 20796# if CDPATH is set. 20797(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20798 20799sed_quote_subst='$sed_quote_subst' 20800double_quote_subst='$double_quote_subst' 20801delay_variable_subst='$delay_variable_subst' 20802macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20803macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20804enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20805enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20806pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20807enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20808shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20809SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20810ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20811PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20812host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20813host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20814host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20815build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20816build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20817build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20818SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20819Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20820GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20821EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20822FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20823LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20824NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20825LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20826max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20827ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20828exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20829lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20830lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20831lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20832lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20833lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20834reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20835reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20836OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20837deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20838file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20839file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20840want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20841DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20842sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20843AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20844AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20845archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20846STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20847RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20848old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20849old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20850old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20851lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20852CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20853CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20854compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20855GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20856lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20857lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20858lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20859lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20860lt_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"`' 20861lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20862nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20863lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20864lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20865objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20866MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20867lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20868lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20869lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20870lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20871lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20872need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20873MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20874DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20875NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20876LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20877OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20878OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20879libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20880shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20881extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20882archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20883enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20884export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20885whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20886compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20887old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20888old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20889archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20890archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20891module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20892module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20893with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20894allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20895no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20896hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20897hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20898hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20899hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20900hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20901hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20902hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20903inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20904link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20905always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20906export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20907exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20908include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20909prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20910postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20911file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20912variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20913need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20914need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20915version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20916runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20917shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20918shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20919libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20920library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20921soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20922install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20923postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20924postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20925finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20926finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20927hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20928sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20929configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20930configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20931hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20932enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20933enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20934enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20935old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20936striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20937 20938LTCC='$LTCC' 20939LTCFLAGS='$LTCFLAGS' 20940compiler='$compiler_DEFAULT' 20941 20942# A function that is used when there is no print builtin or printf. 20943func_fallback_echo () 20944{ 20945 eval 'cat <<_LTECHO_EOF 20946\$1 20947_LTECHO_EOF' 20948} 20949 20950# Quote evaled strings. 20951for var in SHELL \ 20952ECHO \ 20953PATH_SEPARATOR \ 20954SED \ 20955GREP \ 20956EGREP \ 20957FGREP \ 20958LD \ 20959NM \ 20960LN_S \ 20961lt_SP2NL \ 20962lt_NL2SP \ 20963reload_flag \ 20964OBJDUMP \ 20965deplibs_check_method \ 20966file_magic_cmd \ 20967file_magic_glob \ 20968want_nocaseglob \ 20969DLLTOOL \ 20970sharedlib_from_linklib_cmd \ 20971AR \ 20972AR_FLAGS \ 20973archiver_list_spec \ 20974STRIP \ 20975RANLIB \ 20976CC \ 20977CFLAGS \ 20978compiler \ 20979lt_cv_sys_global_symbol_pipe \ 20980lt_cv_sys_global_symbol_to_cdecl \ 20981lt_cv_sys_global_symbol_to_import \ 20982lt_cv_sys_global_symbol_to_c_name_address \ 20983lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20984lt_cv_nm_interface \ 20985nm_file_list_spec \ 20986lt_cv_truncate_bin \ 20987lt_prog_compiler_no_builtin_flag \ 20988lt_prog_compiler_pic \ 20989lt_prog_compiler_wl \ 20990lt_prog_compiler_static \ 20991lt_cv_prog_compiler_c_o \ 20992need_locks \ 20993MANIFEST_TOOL \ 20994DSYMUTIL \ 20995NMEDIT \ 20996LIPO \ 20997OTOOL \ 20998OTOOL64 \ 20999shrext_cmds \ 21000export_dynamic_flag_spec \ 21001whole_archive_flag_spec \ 21002compiler_needs_object \ 21003with_gnu_ld \ 21004allow_undefined_flag \ 21005no_undefined_flag \ 21006hardcode_libdir_flag_spec \ 21007hardcode_libdir_separator \ 21008exclude_expsyms \ 21009include_expsyms \ 21010file_list_spec \ 21011variables_saved_for_relink \ 21012libname_spec \ 21013library_names_spec \ 21014soname_spec \ 21015install_override_mode \ 21016finish_eval \ 21017old_striplib \ 21018striplib; do 21019 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21020 *[\\\\\\\`\\"\\\$]*) 21021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21022 ;; 21023 *) 21024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21025 ;; 21026 esac 21027done 21028 21029# Double-quote double-evaled strings. 21030for var in reload_cmds \ 21031old_postinstall_cmds \ 21032old_postuninstall_cmds \ 21033old_archive_cmds \ 21034extract_expsyms_cmds \ 21035old_archive_from_new_cmds \ 21036old_archive_from_expsyms_cmds \ 21037archive_cmds \ 21038archive_expsym_cmds \ 21039module_cmds \ 21040module_expsym_cmds \ 21041export_symbols_cmds \ 21042prelink_cmds \ 21043postlink_cmds \ 21044postinstall_cmds \ 21045postuninstall_cmds \ 21046finish_cmds \ 21047sys_lib_search_path_spec \ 21048configure_time_dlsearch_path \ 21049configure_time_lt_sys_library_path; do 21050 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21051 *[\\\\\\\`\\"\\\$]*) 21052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21053 ;; 21054 *) 21055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21056 ;; 21057 esac 21058done 21059 21060ac_aux_dir='$ac_aux_dir' 21061 21062# See if we are running on zsh, and set the options that allow our 21063# commands through without removal of \ escapes INIT. 21064if test -n "\${ZSH_VERSION+set}"; then 21065 setopt NO_GLOB_SUBST 21066fi 21067 21068 21069 PACKAGE='$PACKAGE' 21070 VERSION='$VERSION' 21071 RM='$RM' 21072 ofile='$ofile' 21073 21074 21075 21076 21077_ACEOF 21078 21079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21080 21081# Handling of arguments. 21082for ac_config_target in $ac_config_targets 21083do 21084 case $ac_config_target in 21085 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21086 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;; 21087 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21088 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21089 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;; 21090 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;; 21091 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;; 21092 "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;; 21093 "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;; 21094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21095 21096 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21097 esac 21098done 21099 21100 21101# If the user did not use the arguments to specify the items to instantiate, 21102# then the envvar interface is used. Set only those that are not. 21103# We use the long form for the default assignment because of an extremely 21104# bizarre bug on SunOS 4.1.3. 21105if $ac_need_defaults; then 21106 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21107 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21108 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21109fi 21110 21111# Have a temporary directory for convenience. Make it in the build tree 21112# simply because there is no reason against having it here, and in addition, 21113# creating and moving files from /tmp can sometimes cause problems. 21114# Hook for its removal unless debugging. 21115# Note that there is a small window in which the directory will not be cleaned: 21116# after its creation but before its name has been assigned to `$tmp'. 21117$debug || 21118{ 21119 tmp= ac_tmp= 21120 trap 'exit_status=$? 21121 : "${ac_tmp:=$tmp}" 21122 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21123' 0 21124 trap 'as_fn_exit 1' 1 2 13 15 21125} 21126# Create a (secure) tmp directory for tmp files. 21127 21128{ 21129 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21130 test -d "$tmp" 21131} || 21132{ 21133 tmp=./conf$$-$RANDOM 21134 (umask 077 && mkdir "$tmp") 21135} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21136ac_tmp=$tmp 21137 21138# Set up the scripts for CONFIG_FILES section. 21139# No need to generate them if there are no CONFIG_FILES. 21140# This happens for instance with `./config.status config.h'. 21141if test -n "$CONFIG_FILES"; then 21142 21143 21144ac_cr=`echo X | tr X '\015'` 21145# On cygwin, bash can eat \r inside `` if the user requested igncr. 21146# But we know of no other shell where ac_cr would be empty at this 21147# point, so we can use a bashism as a fallback. 21148if test "x$ac_cr" = x; then 21149 eval ac_cr=\$\'\\r\' 21150fi 21151ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21152if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21153 ac_cs_awk_cr='\\r' 21154else 21155 ac_cs_awk_cr=$ac_cr 21156fi 21157 21158echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21159_ACEOF 21160 21161 21162{ 21163 echo "cat >conf$$subs.awk <<_ACEOF" && 21164 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21165 echo "_ACEOF" 21166} >conf$$subs.sh || 21167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21168ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21169ac_delim='%!_!# ' 21170for ac_last_try in false false false false false :; do 21171 . ./conf$$subs.sh || 21172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21173 21174 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21175 if test $ac_delim_n = $ac_delim_num; then 21176 break 21177 elif $ac_last_try; then 21178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21179 else 21180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21181 fi 21182done 21183rm -f conf$$subs.sh 21184 21185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21186cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21187_ACEOF 21188sed -n ' 21189h 21190s/^/S["/; s/!.*/"]=/ 21191p 21192g 21193s/^[^!]*!// 21194:repl 21195t repl 21196s/'"$ac_delim"'$// 21197t delim 21198:nl 21199h 21200s/\(.\{148\}\)..*/\1/ 21201t more1 21202s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21203p 21204n 21205b repl 21206:more1 21207s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21208p 21209g 21210s/.\{148\}// 21211t nl 21212:delim 21213h 21214s/\(.\{148\}\)..*/\1/ 21215t more2 21216s/["\\]/\\&/g; s/^/"/; s/$/"/ 21217p 21218b 21219:more2 21220s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21221p 21222g 21223s/.\{148\}// 21224t delim 21225' <conf$$subs.awk | sed ' 21226/^[^""]/{ 21227 N 21228 s/\n// 21229} 21230' >>$CONFIG_STATUS || ac_write_fail=1 21231rm -f conf$$subs.awk 21232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21233_ACAWK 21234cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21235 for (key in S) S_is_set[key] = 1 21236 FS = "" 21237 21238} 21239{ 21240 line = $ 0 21241 nfields = split(line, field, "@") 21242 substed = 0 21243 len = length(field[1]) 21244 for (i = 2; i < nfields; i++) { 21245 key = field[i] 21246 keylen = length(key) 21247 if (S_is_set[key]) { 21248 value = S[key] 21249 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21250 len += length(value) + length(field[++i]) 21251 substed = 1 21252 } else 21253 len += 1 + keylen 21254 } 21255 21256 print line 21257} 21258 21259_ACAWK 21260_ACEOF 21261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21262if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21263 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21264else 21265 cat 21266fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21267 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21268_ACEOF 21269 21270# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21271# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21272# trailing colons and then remove the whole line if VPATH becomes empty 21273# (actually we leave an empty line to preserve line numbers). 21274if test "x$srcdir" = x.; then 21275 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21276h 21277s/// 21278s/^/:/ 21279s/[ ]*$/:/ 21280s/:\$(srcdir):/:/g 21281s/:\${srcdir}:/:/g 21282s/:@srcdir@:/:/g 21283s/^:*// 21284s/:*$// 21285x 21286s/\(=[ ]*\).*/\1/ 21287G 21288s/\n// 21289s/^[^=]*=[ ]*$// 21290}' 21291fi 21292 21293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21294fi # test -n "$CONFIG_FILES" 21295 21296# Set up the scripts for CONFIG_HEADERS section. 21297# No need to generate them if there are no CONFIG_HEADERS. 21298# This happens for instance with `./config.status Makefile'. 21299if test -n "$CONFIG_HEADERS"; then 21300cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21301BEGIN { 21302_ACEOF 21303 21304# Transform confdefs.h into an awk script `defines.awk', embedded as 21305# here-document in config.status, that substitutes the proper values into 21306# config.h.in to produce config.h. 21307 21308# Create a delimiter string that does not exist in confdefs.h, to ease 21309# handling of long lines. 21310ac_delim='%!_!# ' 21311for ac_last_try in false false :; do 21312 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21313 if test -z "$ac_tt"; then 21314 break 21315 elif $ac_last_try; then 21316 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21317 else 21318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21319 fi 21320done 21321 21322# For the awk script, D is an array of macro values keyed by name, 21323# likewise P contains macro parameters if any. Preserve backslash 21324# newline sequences. 21325 21326ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21327sed -n ' 21328s/.\{148\}/&'"$ac_delim"'/g 21329t rset 21330:rset 21331s/^[ ]*#[ ]*define[ ][ ]*/ / 21332t def 21333d 21334:def 21335s/\\$// 21336t bsnl 21337s/["\\]/\\&/g 21338s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21339D["\1"]=" \3"/p 21340s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21341d 21342:bsnl 21343s/["\\]/\\&/g 21344s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21345D["\1"]=" \3\\\\\\n"\\/p 21346t cont 21347s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21348t cont 21349d 21350:cont 21351n 21352s/.\{148\}/&'"$ac_delim"'/g 21353t clear 21354:clear 21355s/\\$// 21356t bsnlc 21357s/["\\]/\\&/g; s/^/"/; s/$/"/p 21358d 21359:bsnlc 21360s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21361b cont 21362' <confdefs.h | sed ' 21363s/'"$ac_delim"'/"\\\ 21364"/g' >>$CONFIG_STATUS || ac_write_fail=1 21365 21366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21367 for (key in D) D_is_set[key] = 1 21368 FS = "" 21369} 21370/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21371 line = \$ 0 21372 split(line, arg, " ") 21373 if (arg[1] == "#") { 21374 defundef = arg[2] 21375 mac1 = arg[3] 21376 } else { 21377 defundef = substr(arg[1], 2) 21378 mac1 = arg[2] 21379 } 21380 split(mac1, mac2, "(") #) 21381 macro = mac2[1] 21382 prefix = substr(line, 1, index(line, defundef) - 1) 21383 if (D_is_set[macro]) { 21384 # Preserve the white space surrounding the "#". 21385 print prefix "define", macro P[macro] D[macro] 21386 next 21387 } else { 21388 # Replace #undef with comments. This is necessary, for example, 21389 # in the case of _POSIX_SOURCE, which is predefined and required 21390 # on some systems where configure will not decide to define it. 21391 if (defundef == "undef") { 21392 print "/*", prefix defundef, macro, "*/" 21393 next 21394 } 21395 } 21396} 21397{ print } 21398_ACAWK 21399_ACEOF 21400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21401 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21402fi # test -n "$CONFIG_HEADERS" 21403 21404 21405eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21406shift 21407for ac_tag 21408do 21409 case $ac_tag in 21410 :[FHLC]) ac_mode=$ac_tag; continue;; 21411 esac 21412 case $ac_mode$ac_tag in 21413 :[FHL]*:*);; 21414 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21415 :[FH]-) ac_tag=-:-;; 21416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21417 esac 21418 ac_save_IFS=$IFS 21419 IFS=: 21420 set x $ac_tag 21421 IFS=$ac_save_IFS 21422 shift 21423 ac_file=$1 21424 shift 21425 21426 case $ac_mode in 21427 :L) ac_source=$1;; 21428 :[FH]) 21429 ac_file_inputs= 21430 for ac_f 21431 do 21432 case $ac_f in 21433 -) ac_f="$ac_tmp/stdin";; 21434 *) # Look for the file first in the build tree, then in the source tree 21435 # (if the path is not absolute). The absolute path cannot be DOS-style, 21436 # because $ac_f cannot contain `:'. 21437 test -f "$ac_f" || 21438 case $ac_f in 21439 [\\/$]*) false;; 21440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21441 esac || 21442 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21443 esac 21444 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21445 as_fn_append ac_file_inputs " '$ac_f'" 21446 done 21447 21448 # Let's still pretend it is `configure' which instantiates (i.e., don't 21449 # use $as_me), people would be surprised to read: 21450 # /* config.h. Generated by config.status. */ 21451 configure_input='Generated from '` 21452 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21453 `' by configure.' 21454 if test x"$ac_file" != x-; then 21455 configure_input="$ac_file. $configure_input" 21456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21457printf "%s\n" "$as_me: creating $ac_file" >&6;} 21458 fi 21459 # Neutralize special characters interpreted by sed in replacement strings. 21460 case $configure_input in #( 21461 *\&* | *\|* | *\\* ) 21462 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21463 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21464 *) ac_sed_conf_input=$configure_input;; 21465 esac 21466 21467 case $ac_tag in 21468 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21470 esac 21471 ;; 21472 esac 21473 21474 ac_dir=`$as_dirname -- "$ac_file" || 21475$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21476 X"$ac_file" : 'X\(//\)[^/]' \| \ 21477 X"$ac_file" : 'X\(//\)$' \| \ 21478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21479printf "%s\n" X"$ac_file" | 21480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21481 s//\1/ 21482 q 21483 } 21484 /^X\(\/\/\)[^/].*/{ 21485 s//\1/ 21486 q 21487 } 21488 /^X\(\/\/\)$/{ 21489 s//\1/ 21490 q 21491 } 21492 /^X\(\/\).*/{ 21493 s//\1/ 21494 q 21495 } 21496 s/.*/./; q'` 21497 as_dir="$ac_dir"; as_fn_mkdir_p 21498 ac_builddir=. 21499 21500case "$ac_dir" in 21501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21502*) 21503 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21504 # A ".." for each directory in $ac_dir_suffix. 21505 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21506 case $ac_top_builddir_sub in 21507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21509 esac ;; 21510esac 21511ac_abs_top_builddir=$ac_pwd 21512ac_abs_builddir=$ac_pwd$ac_dir_suffix 21513# for backward compatibility: 21514ac_top_builddir=$ac_top_build_prefix 21515 21516case $srcdir in 21517 .) # We are building in place. 21518 ac_srcdir=. 21519 ac_top_srcdir=$ac_top_builddir_sub 21520 ac_abs_top_srcdir=$ac_pwd ;; 21521 [\\/]* | ?:[\\/]* ) # Absolute name. 21522 ac_srcdir=$srcdir$ac_dir_suffix; 21523 ac_top_srcdir=$srcdir 21524 ac_abs_top_srcdir=$srcdir ;; 21525 *) # Relative name. 21526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21527 ac_top_srcdir=$ac_top_build_prefix$srcdir 21528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21529esac 21530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21531 21532 21533 case $ac_mode in 21534 :F) 21535 # 21536 # CONFIG_FILE 21537 # 21538 21539 case $INSTALL in 21540 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21541 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21542 esac 21543 ac_MKDIR_P=$MKDIR_P 21544 case $MKDIR_P in 21545 [\\/$]* | ?:[\\/]* ) ;; 21546 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21547 esac 21548_ACEOF 21549 21550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21551# If the template does not know about datarootdir, expand it. 21552# FIXME: This hack should be removed a few years after 2.60. 21553ac_datarootdir_hack=; ac_datarootdir_seen= 21554ac_sed_dataroot=' 21555/datarootdir/ { 21556 p 21557 q 21558} 21559/@datadir@/p 21560/@docdir@/p 21561/@infodir@/p 21562/@localedir@/p 21563/@mandir@/p' 21564case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21565*datarootdir*) ac_datarootdir_seen=yes;; 21566*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21568printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21569_ACEOF 21570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21571 ac_datarootdir_hack=' 21572 s&@datadir@&$datadir&g 21573 s&@docdir@&$docdir&g 21574 s&@infodir@&$infodir&g 21575 s&@localedir@&$localedir&g 21576 s&@mandir@&$mandir&g 21577 s&\\\${datarootdir}&$datarootdir&g' ;; 21578esac 21579_ACEOF 21580 21581# Neutralize VPATH when `$srcdir' = `.'. 21582# Shell code in configure.ac might set extrasub. 21583# FIXME: do we really want to maintain this feature? 21584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21585ac_sed_extra="$ac_vpsub 21586$extrasub 21587_ACEOF 21588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21589:t 21590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21591s|@configure_input@|$ac_sed_conf_input|;t t 21592s&@top_builddir@&$ac_top_builddir_sub&;t t 21593s&@top_build_prefix@&$ac_top_build_prefix&;t t 21594s&@srcdir@&$ac_srcdir&;t t 21595s&@abs_srcdir@&$ac_abs_srcdir&;t t 21596s&@top_srcdir@&$ac_top_srcdir&;t t 21597s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21598s&@builddir@&$ac_builddir&;t t 21599s&@abs_builddir@&$ac_abs_builddir&;t t 21600s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21601s&@INSTALL@&$ac_INSTALL&;t t 21602s&@MKDIR_P@&$ac_MKDIR_P&;t t 21603$ac_datarootdir_hack 21604" 21605eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21607 21608test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21611 "$ac_tmp/out"`; test -z "$ac_out"; } && 21612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21613which seems to be undefined. Please make sure it is defined" >&5 21614printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21615which seems to be undefined. Please make sure it is defined" >&2;} 21616 21617 rm -f "$ac_tmp/stdin" 21618 case $ac_file in 21619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21621 esac \ 21622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21623 ;; 21624 :H) 21625 # 21626 # CONFIG_HEADER 21627 # 21628 if test x"$ac_file" != x-; then 21629 { 21630 printf "%s\n" "/* $configure_input */" >&1 \ 21631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21632 } >"$ac_tmp/config.h" \ 21633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21634 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21636printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21637 else 21638 rm -f "$ac_file" 21639 mv "$ac_tmp/config.h" "$ac_file" \ 21640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21641 fi 21642 else 21643 printf "%s\n" "/* $configure_input */" >&1 \ 21644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21645 || as_fn_error $? "could not create -" "$LINENO" 5 21646 fi 21647# Compute "$ac_file"'s index in $config_headers. 21648_am_arg="$ac_file" 21649_am_stamp_count=1 21650for _am_header in $config_headers :; do 21651 case $_am_header in 21652 $_am_arg | $_am_arg:* ) 21653 break ;; 21654 * ) 21655 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21656 esac 21657done 21658echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21659$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21660 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21661 X"$_am_arg" : 'X\(//\)$' \| \ 21662 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21663printf "%s\n" X"$_am_arg" | 21664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21665 s//\1/ 21666 q 21667 } 21668 /^X\(\/\/\)[^/].*/{ 21669 s//\1/ 21670 q 21671 } 21672 /^X\(\/\/\)$/{ 21673 s//\1/ 21674 q 21675 } 21676 /^X\(\/\).*/{ 21677 s//\1/ 21678 q 21679 } 21680 s/.*/./; q'`/stamp-h$_am_stamp_count 21681 ;; 21682 21683 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21684printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21685 ;; 21686 esac 21687 21688 21689 case $ac_file$ac_mode in 21690 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21691 # Older Autoconf quotes --file arguments for eval, but not when files 21692 # are listed without --file. Let's play safe and only enable the eval 21693 # if we detect the quoting. 21694 # TODO: see whether this extra hack can be removed once we start 21695 # requiring Autoconf 2.70 or later. 21696 case $CONFIG_FILES in #( 21697 *\'*) : 21698 eval set x "$CONFIG_FILES" ;; #( 21699 *) : 21700 set x $CONFIG_FILES ;; #( 21701 *) : 21702 ;; 21703esac 21704 shift 21705 # Used to flag and report bootstrapping failures. 21706 am_rc=0 21707 for am_mf 21708 do 21709 # Strip MF so we end up with the name of the file. 21710 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21711 # Check whether this is an Automake generated Makefile which includes 21712 # dependency-tracking related rules and includes. 21713 # Grep'ing the whole file directly is not great: AIX grep has a line 21714 # limit of 2048, but all sed's we know have understand at least 4000. 21715 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21716 || continue 21717 am_dirpart=`$as_dirname -- "$am_mf" || 21718$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21719 X"$am_mf" : 'X\(//\)[^/]' \| \ 21720 X"$am_mf" : 'X\(//\)$' \| \ 21721 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21722printf "%s\n" X"$am_mf" | 21723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21724 s//\1/ 21725 q 21726 } 21727 /^X\(\/\/\)[^/].*/{ 21728 s//\1/ 21729 q 21730 } 21731 /^X\(\/\/\)$/{ 21732 s//\1/ 21733 q 21734 } 21735 /^X\(\/\).*/{ 21736 s//\1/ 21737 q 21738 } 21739 s/.*/./; q'` 21740 am_filepart=`$as_basename -- "$am_mf" || 21741$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21742 X"$am_mf" : 'X\(//\)$' \| \ 21743 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21744printf "%s\n" X/"$am_mf" | 21745 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21746 s//\1/ 21747 q 21748 } 21749 /^X\/\(\/\/\)$/{ 21750 s//\1/ 21751 q 21752 } 21753 /^X\/\(\/\).*/{ 21754 s//\1/ 21755 q 21756 } 21757 s/.*/./; q'` 21758 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21759 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21760 | $MAKE -f - am--depfiles" >&5 21761 (cd "$am_dirpart" \ 21762 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21763 | $MAKE -f - am--depfiles) >&5 2>&5 21764 ac_status=$? 21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21766 (exit $ac_status); } || am_rc=$? 21767 done 21768 if test $am_rc -ne 0; then 21769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21770printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21771as_fn_error $? "Something went wrong bootstrapping makefile fragments 21772 for automatic dependency tracking. If GNU make was not used, consider 21773 re-running the configure script with MAKE=\"gmake\" (or whatever is 21774 necessary). You can also try re-running configure with the 21775 '--disable-dependency-tracking' option to at least be able to build 21776 the package (albeit without support for automatic dependency tracking). 21777See \`config.log' for more details" "$LINENO" 5; } 21778 fi 21779 { am_dirpart=; unset am_dirpart;} 21780 { am_filepart=; unset am_filepart;} 21781 { am_mf=; unset am_mf;} 21782 { am_rc=; unset am_rc;} 21783 rm -f conftest-deps.mk 21784} 21785 ;; 21786 "libtool":C) 21787 21788 # See if we are running on zsh, and set the options that allow our 21789 # commands through without removal of \ escapes. 21790 if test -n "${ZSH_VERSION+set}"; then 21791 setopt NO_GLOB_SUBST 21792 fi 21793 21794 cfgfile=${ofile}T 21795 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21796 $RM "$cfgfile" 21797 21798 cat <<_LT_EOF >> "$cfgfile" 21799#! $SHELL 21800# Generated automatically by $as_me ($PACKAGE) $VERSION 21801# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21802# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21803 21804# Provide generalized library-building support services. 21805# Written by Gordon Matzigkeit, 1996 21806 21807# Copyright (C) 2014 Free Software Foundation, Inc. 21808# This is free software; see the source for copying conditions. There is NO 21809# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21810 21811# GNU Libtool is free software; you can redistribute it and/or modify 21812# it under the terms of the GNU General Public License as published by 21813# the Free Software Foundation; either version 2 of of the License, or 21814# (at your option) any later version. 21815# 21816# As a special exception to the GNU General Public License, if you 21817# distribute this file as part of a program or library that is built 21818# using GNU Libtool, you may include this file under the same 21819# distribution terms that you use for the rest of that program. 21820# 21821# GNU Libtool is distributed in the hope that it will be useful, but 21822# WITHOUT ANY WARRANTY; without even the implied warranty of 21823# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21824# GNU General Public License for more details. 21825# 21826# You should have received a copy of the GNU General Public License 21827# along with this program. If not, see <http://www.gnu.org/licenses/>. 21828 21829 21830# The names of the tagged configurations supported by this script. 21831available_tags='' 21832 21833# Configured defaults for sys_lib_dlsearch_path munging. 21834: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21835 21836# ### BEGIN LIBTOOL CONFIG 21837 21838# Which release of libtool.m4 was used? 21839macro_version=$macro_version 21840macro_revision=$macro_revision 21841 21842# Whether or not to build shared libraries. 21843build_libtool_libs=$enable_shared 21844 21845# Whether or not to build static libraries. 21846build_old_libs=$enable_static 21847 21848# What type of objects to build. 21849pic_mode=$pic_mode 21850 21851# Whether or not to optimize for fast installation. 21852fast_install=$enable_fast_install 21853 21854# Shared archive member basename,for filename based shared library versioning on AIX. 21855shared_archive_member_spec=$shared_archive_member_spec 21856 21857# Shell to use when invoking shell scripts. 21858SHELL=$lt_SHELL 21859 21860# An echo program that protects backslashes. 21861ECHO=$lt_ECHO 21862 21863# The PATH separator for the build system. 21864PATH_SEPARATOR=$lt_PATH_SEPARATOR 21865 21866# The host system. 21867host_alias=$host_alias 21868host=$host 21869host_os=$host_os 21870 21871# The build system. 21872build_alias=$build_alias 21873build=$build 21874build_os=$build_os 21875 21876# A sed program that does not truncate output. 21877SED=$lt_SED 21878 21879# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21880Xsed="\$SED -e 1s/^X//" 21881 21882# A grep program that handles long lines. 21883GREP=$lt_GREP 21884 21885# An ERE matcher. 21886EGREP=$lt_EGREP 21887 21888# A literal string matcher. 21889FGREP=$lt_FGREP 21890 21891# A BSD- or MS-compatible name lister. 21892NM=$lt_NM 21893 21894# Whether we need soft or hard links. 21895LN_S=$lt_LN_S 21896 21897# What is the maximum length of a command? 21898max_cmd_len=$max_cmd_len 21899 21900# Object file suffix (normally "o"). 21901objext=$ac_objext 21902 21903# Executable file suffix (normally ""). 21904exeext=$exeext 21905 21906# whether the shell understands "unset". 21907lt_unset=$lt_unset 21908 21909# turn spaces into newlines. 21910SP2NL=$lt_lt_SP2NL 21911 21912# turn newlines into spaces. 21913NL2SP=$lt_lt_NL2SP 21914 21915# convert \$build file names to \$host format. 21916to_host_file_cmd=$lt_cv_to_host_file_cmd 21917 21918# convert \$build files to toolchain format. 21919to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21920 21921# An object symbol dumper. 21922OBJDUMP=$lt_OBJDUMP 21923 21924# Method to check whether dependent libraries are shared objects. 21925deplibs_check_method=$lt_deplibs_check_method 21926 21927# Command to use when deplibs_check_method = "file_magic". 21928file_magic_cmd=$lt_file_magic_cmd 21929 21930# How to find potential files when deplibs_check_method = "file_magic". 21931file_magic_glob=$lt_file_magic_glob 21932 21933# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21934want_nocaseglob=$lt_want_nocaseglob 21935 21936# DLL creation program. 21937DLLTOOL=$lt_DLLTOOL 21938 21939# Command to associate shared and link libraries. 21940sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21941 21942# The archiver. 21943AR=$lt_AR 21944 21945# Flags to create an archive. 21946AR_FLAGS=$lt_AR_FLAGS 21947 21948# How to feed a file listing to the archiver. 21949archiver_list_spec=$lt_archiver_list_spec 21950 21951# A symbol stripping program. 21952STRIP=$lt_STRIP 21953 21954# Commands used to install an old-style archive. 21955RANLIB=$lt_RANLIB 21956old_postinstall_cmds=$lt_old_postinstall_cmds 21957old_postuninstall_cmds=$lt_old_postuninstall_cmds 21958 21959# Whether to use a lock for old archive extraction. 21960lock_old_archive_extraction=$lock_old_archive_extraction 21961 21962# A C compiler. 21963LTCC=$lt_CC 21964 21965# LTCC compiler flags. 21966LTCFLAGS=$lt_CFLAGS 21967 21968# Take the output of nm and produce a listing of raw symbols and C names. 21969global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21970 21971# Transform the output of nm in a proper C declaration. 21972global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21973 21974# Transform the output of nm into a list of symbols to manually relocate. 21975global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21976 21977# Transform the output of nm in a C name address pair. 21978global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21979 21980# Transform the output of nm in a C name address pair when lib prefix is needed. 21981global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21982 21983# The name lister interface. 21984nm_interface=$lt_lt_cv_nm_interface 21985 21986# Specify filename containing input files for \$NM. 21987nm_file_list_spec=$lt_nm_file_list_spec 21988 21989# The root where to search for dependent libraries,and where our libraries should be installed. 21990lt_sysroot=$lt_sysroot 21991 21992# Command to truncate a binary pipe. 21993lt_truncate_bin=$lt_lt_cv_truncate_bin 21994 21995# The name of the directory that contains temporary libtool files. 21996objdir=$objdir 21997 21998# Used to examine libraries when file_magic_cmd begins with "file". 21999MAGIC_CMD=$MAGIC_CMD 22000 22001# Must we lock files when doing compilation? 22002need_locks=$lt_need_locks 22003 22004# Manifest tool. 22005MANIFEST_TOOL=$lt_MANIFEST_TOOL 22006 22007# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22008DSYMUTIL=$lt_DSYMUTIL 22009 22010# Tool to change global to local symbols on Mac OS X. 22011NMEDIT=$lt_NMEDIT 22012 22013# Tool to manipulate fat objects and archives on Mac OS X. 22014LIPO=$lt_LIPO 22015 22016# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22017OTOOL=$lt_OTOOL 22018 22019# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22020OTOOL64=$lt_OTOOL64 22021 22022# Old archive suffix (normally "a"). 22023libext=$libext 22024 22025# Shared library suffix (normally ".so"). 22026shrext_cmds=$lt_shrext_cmds 22027 22028# The commands to extract the exported symbol list from a shared archive. 22029extract_expsyms_cmds=$lt_extract_expsyms_cmds 22030 22031# Variables whose values should be saved in libtool wrapper scripts and 22032# restored at link time. 22033variables_saved_for_relink=$lt_variables_saved_for_relink 22034 22035# Do we need the "lib" prefix for modules? 22036need_lib_prefix=$need_lib_prefix 22037 22038# Do we need a version for libraries? 22039need_version=$need_version 22040 22041# Library versioning type. 22042version_type=$version_type 22043 22044# Shared library runtime path variable. 22045runpath_var=$runpath_var 22046 22047# Shared library path variable. 22048shlibpath_var=$shlibpath_var 22049 22050# Is shlibpath searched before the hard-coded library search path? 22051shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22052 22053# Format of library name prefix. 22054libname_spec=$lt_libname_spec 22055 22056# List of archive names. First name is the real one, the rest are links. 22057# The last name is the one that the linker finds with -lNAME 22058library_names_spec=$lt_library_names_spec 22059 22060# The coded name of the library, if different from the real name. 22061soname_spec=$lt_soname_spec 22062 22063# Permission mode override for installation of shared libraries. 22064install_override_mode=$lt_install_override_mode 22065 22066# Command to use after installation of a shared archive. 22067postinstall_cmds=$lt_postinstall_cmds 22068 22069# Command to use after uninstallation of a shared archive. 22070postuninstall_cmds=$lt_postuninstall_cmds 22071 22072# Commands used to finish a libtool library installation in a directory. 22073finish_cmds=$lt_finish_cmds 22074 22075# As "finish_cmds", except a single script fragment to be evaled but 22076# not shown. 22077finish_eval=$lt_finish_eval 22078 22079# Whether we should hardcode library paths into libraries. 22080hardcode_into_libs=$hardcode_into_libs 22081 22082# Compile-time system search path for libraries. 22083sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22084 22085# Detected run-time system search path for libraries. 22086sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22087 22088# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22089configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22090 22091# Whether dlopen is supported. 22092dlopen_support=$enable_dlopen 22093 22094# Whether dlopen of programs is supported. 22095dlopen_self=$enable_dlopen_self 22096 22097# Whether dlopen of statically linked programs is supported. 22098dlopen_self_static=$enable_dlopen_self_static 22099 22100# Commands to strip libraries. 22101old_striplib=$lt_old_striplib 22102striplib=$lt_striplib 22103 22104 22105# The linker used to build libraries. 22106LD=$lt_LD 22107 22108# How to create reloadable object files. 22109reload_flag=$lt_reload_flag 22110reload_cmds=$lt_reload_cmds 22111 22112# Commands used to build an old-style archive. 22113old_archive_cmds=$lt_old_archive_cmds 22114 22115# A language specific compiler. 22116CC=$lt_compiler 22117 22118# Is the compiler the GNU compiler? 22119with_gcc=$GCC 22120 22121# Compiler flag to turn off builtin functions. 22122no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22123 22124# Additional compiler flags for building library objects. 22125pic_flag=$lt_lt_prog_compiler_pic 22126 22127# How to pass a linker flag through the compiler. 22128wl=$lt_lt_prog_compiler_wl 22129 22130# Compiler flag to prevent dynamic linking. 22131link_static_flag=$lt_lt_prog_compiler_static 22132 22133# Does compiler simultaneously support -c and -o options? 22134compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22135 22136# Whether or not to add -lc for building shared libraries. 22137build_libtool_need_lc=$archive_cmds_need_lc 22138 22139# Whether or not to disallow shared libs when runtime libs are static. 22140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22141 22142# Compiler flag to allow reflexive dlopens. 22143export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22144 22145# Compiler flag to generate shared objects directly from archives. 22146whole_archive_flag_spec=$lt_whole_archive_flag_spec 22147 22148# Whether the compiler copes with passing no objects directly. 22149compiler_needs_object=$lt_compiler_needs_object 22150 22151# Create an old-style archive from a shared archive. 22152old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22153 22154# Create a temporary old-style archive to link instead of a shared archive. 22155old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22156 22157# Commands used to build a shared archive. 22158archive_cmds=$lt_archive_cmds 22159archive_expsym_cmds=$lt_archive_expsym_cmds 22160 22161# Commands used to build a loadable module if different from building 22162# a shared archive. 22163module_cmds=$lt_module_cmds 22164module_expsym_cmds=$lt_module_expsym_cmds 22165 22166# Whether we are building with GNU ld or not. 22167with_gnu_ld=$lt_with_gnu_ld 22168 22169# Flag that allows shared libraries with undefined symbols to be built. 22170allow_undefined_flag=$lt_allow_undefined_flag 22171 22172# Flag that enforces no undefined symbols. 22173no_undefined_flag=$lt_no_undefined_flag 22174 22175# Flag to hardcode \$libdir into a binary during linking. 22176# This must work even if \$libdir does not exist 22177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22178 22179# Whether we need a single "-rpath" flag with a separated argument. 22180hardcode_libdir_separator=$lt_hardcode_libdir_separator 22181 22182# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22183# DIR into the resulting binary. 22184hardcode_direct=$hardcode_direct 22185 22186# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22187# DIR into the resulting binary and the resulting library dependency is 22188# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22189# library is relocated. 22190hardcode_direct_absolute=$hardcode_direct_absolute 22191 22192# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22193# into the resulting binary. 22194hardcode_minus_L=$hardcode_minus_L 22195 22196# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22197# into the resulting binary. 22198hardcode_shlibpath_var=$hardcode_shlibpath_var 22199 22200# Set to "yes" if building a shared library automatically hardcodes DIR 22201# into the library and all subsequent libraries and executables linked 22202# against it. 22203hardcode_automatic=$hardcode_automatic 22204 22205# Set to yes if linker adds runtime paths of dependent libraries 22206# to runtime path list. 22207inherit_rpath=$inherit_rpath 22208 22209# Whether libtool must link a program against all its dependency libraries. 22210link_all_deplibs=$link_all_deplibs 22211 22212# Set to "yes" if exported symbols are required. 22213always_export_symbols=$always_export_symbols 22214 22215# The commands to list exported symbols. 22216export_symbols_cmds=$lt_export_symbols_cmds 22217 22218# Symbols that should not be listed in the preloaded symbols. 22219exclude_expsyms=$lt_exclude_expsyms 22220 22221# Symbols that must always be exported. 22222include_expsyms=$lt_include_expsyms 22223 22224# Commands necessary for linking programs (against libraries) with templates. 22225prelink_cmds=$lt_prelink_cmds 22226 22227# Commands necessary for finishing linking programs. 22228postlink_cmds=$lt_postlink_cmds 22229 22230# Specify filename containing input files. 22231file_list_spec=$lt_file_list_spec 22232 22233# How to hardcode a shared library path into an executable. 22234hardcode_action=$hardcode_action 22235 22236# ### END LIBTOOL CONFIG 22237 22238_LT_EOF 22239 22240 cat <<'_LT_EOF' >> "$cfgfile" 22241 22242# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22243 22244# func_munge_path_list VARIABLE PATH 22245# ----------------------------------- 22246# VARIABLE is name of variable containing _space_ separated list of 22247# directories to be munged by the contents of PATH, which is string 22248# having a format: 22249# "DIR[:DIR]:" 22250# string "DIR[ DIR]" will be prepended to VARIABLE 22251# ":DIR[:DIR]" 22252# string "DIR[ DIR]" will be appended to VARIABLE 22253# "DIRP[:DIRP]::[DIRA:]DIRA" 22254# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22255# "DIRA[ DIRA]" will be appended to VARIABLE 22256# "DIR[:DIR]" 22257# VARIABLE will be replaced by "DIR[ DIR]" 22258func_munge_path_list () 22259{ 22260 case x$2 in 22261 x) 22262 ;; 22263 *:) 22264 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22265 ;; 22266 x:*) 22267 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22268 ;; 22269 *::*) 22270 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22271 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22272 ;; 22273 *) 22274 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22275 ;; 22276 esac 22277} 22278 22279 22280# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22281func_cc_basename () 22282{ 22283 for cc_temp in $*""; do 22284 case $cc_temp in 22285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22287 \-*) ;; 22288 *) break;; 22289 esac 22290 done 22291 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22292} 22293 22294 22295# ### END FUNCTIONS SHARED WITH CONFIGURE 22296 22297_LT_EOF 22298 22299 case $host_os in 22300 aix3*) 22301 cat <<\_LT_EOF >> "$cfgfile" 22302# AIX sometimes has problems with the GCC collect2 program. For some 22303# reason, if we set the COLLECT_NAMES environment variable, the problems 22304# vanish in a puff of smoke. 22305if test set != "${COLLECT_NAMES+set}"; then 22306 COLLECT_NAMES= 22307 export COLLECT_NAMES 22308fi 22309_LT_EOF 22310 ;; 22311 esac 22312 22313 22314 22315ltmain=$ac_aux_dir/ltmain.sh 22316 22317 22318 # We use sed instead of cat because bash on DJGPP gets confused if 22319 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22320 # text mode, it properly converts lines to CR/LF. This bash problem 22321 # is reportedly fixed, but why not run on old versions too? 22322 sed '$q' "$ltmain" >> "$cfgfile" \ 22323 || (rm -f "$cfgfile"; exit 1) 22324 22325 mv -f "$cfgfile" "$ofile" || 22326 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22327 chmod +x "$ofile" 22328 22329 ;; 22330 22331 esac 22332done # for ac_tag 22333 22334 22335as_fn_exit 0 22336_ACEOF 22337ac_clean_files=$ac_clean_files_save 22338 22339test $ac_write_fail = 0 || 22340 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22341 22342 22343# configure is writing to config.log, and then calls config.status. 22344# config.status does its own redirection, appending to config.log. 22345# Unfortunately, on DOS this fails, as config.log is still kept open 22346# by configure, so config.status won't be able to write to it; its 22347# output is simply discarded. So we exec the FD to /dev/null, 22348# effectively closing config.log, so it can be properly (re)opened and 22349# appended to by config.status. When coming back to configure, we 22350# need to make the FD available again. 22351if test "$no_create" != yes; then 22352 ac_cs_success=: 22353 ac_config_status_args= 22354 test "$silent" = yes && 22355 ac_config_status_args="$ac_config_status_args --quiet" 22356 exec 5>/dev/null 22357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22358 exec 5>>config.log 22359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22360 # would make configure fail if this is the last instruction. 22361 $ac_cs_success || as_fn_exit 1 22362fi 22363if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22365printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22366fi 22367 22368 22369