1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libntech 0.1.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 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'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libntech' 589PACKAGE_TARNAME='libntech' 590PACKAGE_VERSION='0.1.0' 591PACKAGE_STRING='libntech 0.1.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595: "${AR_FLAGS=cr}" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_config_libobj_dir=libcompat 633ac_header_list= 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637post_macros 638CORE_LIBS 639CORE_LDFLAGS 640CORE_CFLAGS 641CORE_CPPFLAGS 642ENABLE_COVERAGE_FALSE 643ENABLE_COVERAGE_TRUE 644LCOV_GENHTML 645LCOV 646HOSTNAME 647statedir 648piddir 649logdir 650inputdir 651masterdir 652workdir 653XNU_FALSE 654XNU_TRUE 655NETBSD_FALSE 656NETBSD_TRUE 657FREEBSD_FALSE 658FREEBSD_TRUE 659HPUX_FALSE 660HPUX_TRUE 661AIX_FALSE 662AIX_TRUE 663CYGWIN_FALSE 664CYGWIN_TRUE 665NT_FALSE 666NT_TRUE 667SOLARIS_FALSE 668SOLARIS_TRUE 669MACOSX_FALSE 670MACOSX_TRUE 671LINUX_FALSE 672LINUX_TRUE 673NO_TAUTOLOGICAL_CC_OPTION 674hw_cv_func_rename_proper 675hw_cv_func_stat_proper 676hw_cv_func_mkdir_proper 677hw_cv_func_ctime_proper 678HAVE_USERS_PROMISE_DEPS_FALSE 679HAVE_USERS_PROMISE_DEPS_TRUE 680PAM_LIBS 681PAM_LDFLAGS 682PAM_CFLAGS 683PAM_CPPFLAGS 684PAM_PATH 685GETLOADAVG_LIBS 686KMEM_GROUP 687NEED_SETGID 688LIBOBJS 689HAVE_AVAHI_COMMON_FALSE 690HAVE_AVAHI_COMMON_TRUE 691HAVE_AVAHI_CLIENT_FALSE 692HAVE_AVAHI_CLIENT_TRUE 693HAVE_LIBXML2_FALSE 694HAVE_LIBXML2_TRUE 695LIBXML2_LIBS 696LIBXML2_LDFLAGS 697LIBXML2_CFLAGS 698LIBXML2_CPPFLAGS 699LIBXML2_PATH 700LIBYAML_LIBS 701LIBYAML_LDFLAGS 702LIBYAML_CFLAGS 703LIBYAML_CPPFLAGS 704LIBYAML_PATH 705HAVE_LIBCURL_FALSE 706HAVE_LIBCURL_TRUE 707LIBCURL_LIBS 708LIBCURL_LDFLAGS 709LIBCURL_CFLAGS 710LIBCURL_CPPFLAGS 711LIBCURL_PATH 712LIBACL_LIBS 713LIBACL_LDFLAGS 714LIBACL_CFLAGS 715LIBACL_CPPFLAGS 716LIBACL_PATH 717LIBVIRT_LIBS 718LIBVIRT_LDFLAGS 719LIBVIRT_CFLAGS 720LIBVIRT_CPPFLAGS 721LIBVIRT_PATH 722WITH_PCRE_FALSE 723WITH_PCRE_TRUE 724PCRE_LIBS 725PCRE_LDFLAGS 726PCRE_CFLAGS 727PCRE_CPPFLAGS 728PCRE_PATH 729WITH_OPENSSL_FALSE 730WITH_OPENSSL_TRUE 731OPENSSL_LIBS 732OPENSSL_LDFLAGS 733OPENSSL_CFLAGS 734OPENSSL_CPPFLAGS 735OPENSSL_PATH 736LMDB_LIBS 737LMDB_LDFLAGS 738LMDB_CFLAGS 739LMDB_CPPFLAGS 740LMDB_PATH 741TOKYOCABINET_LIBS 742TOKYOCABINET_LDFLAGS 743TOKYOCABINET_CFLAGS 744TOKYOCABINET_CPPFLAGS 745TOKYOCABINET_PATH 746QDBM_LIBS 747QDBM_LDFLAGS 748QDBM_CFLAGS 749QDBM_CPPFLAGS 750QDBM_PATH 751MYSQL_LIBS 752MYSQL_LDFLAGS 753MYSQL_CFLAGS 754MYSQL_CPPFLAGS 755MYSQL_PATH 756POSTGRESQL_LIBS 757POSTGRESQL_LDFLAGS 758POSTGRESQL_CFLAGS 759POSTGRESQL_CPPFLAGS 760POSTGRESQL_PATH 761NDEBUG_FALSE 762NDEBUG_TRUE 763projlibdir 764enable_builtin_extensions 765BUILTIN_EXTENSIONS_FALSE 766BUILTIN_EXTENSIONS_TRUE 767PTHREAD_CFLAGS 768PTHREAD_LIBS 769PTHREAD_CC 770acx_pthread_config 771CROSS_COMPILING_FALSE 772CROSS_COMPILING_TRUE 773GETCONF 774PERL 775YFLAGS 776YACC 777LEXLIB 778LEX_OUTPUT_ROOT 779LEX 780LT_SYS_LIBRARY_PATH 781OTOOL64 782OTOOL 783LIPO 784NMEDIT 785DSYMUTIL 786MANIFEST_TOOL 787RANLIB 788ac_ct_AR 789AR 790DLLTOOL 791OBJDUMP 792LN_S 793NM 794ac_ct_DUMPBIN 795DUMPBIN 796LD 797FGREP 798EGREP 799GREP 800SED 801LIBTOOL 802CPP 803am__fastdepCC_FALSE 804am__fastdepCC_TRUE 805CCDEPMODE 806am__nodep 807AMDEPBACKSLASH 808AMDEP_FALSE 809AMDEP_TRUE 810am__quote 811am__include 812DEPDIR 813OBJEXT 814EXEEXT 815ac_ct_CC 816CPPFLAGS 817LDFLAGS 818CFLAGS 819CC 820MAINT 821MAINTAINER_MODE_FALSE 822MAINTAINER_MODE_TRUE 823AM_BACKSLASH 824AM_DEFAULT_VERBOSITY 825AM_DEFAULT_V 826AM_V 827am__untar 828am__tar 829AMTAR 830am__leading_dot 831SET_MAKE 832AWK 833mkdir_p 834MKDIR_P 835INSTALL_STRIP_PROGRAM 836STRIP 837install_sh 838AUTOHEADER 839AUTOMAKE 840AUTOCONF 841ACLOCAL 842VERSION 843PACKAGE 844CYGPATH_W 845am__isrc 846INSTALL_DATA 847INSTALL_SCRIPT 848INSTALL_PROGRAM 849MAKEINFO 850target_os 851target_vendor 852target_cpu 853target 854host_os 855host_vendor 856host_cpu 857host 858build_os 859build_vendor 860build_cpu 861build 862target_alias 863host_alias 864build_alias 865LIBS 866ECHO_T 867ECHO_N 868ECHO_C 869DEFS 870mandir 871localedir 872libdir 873psdir 874pdfdir 875dvidir 876htmldir 877infodir 878docdir 879oldincludedir 880includedir 881runstatedir 882localstatedir 883sharedstatedir 884sysconfdir 885datadir 886datarootdir 887libexecdir 888sbindir 889bindir 890program_transform_name 891prefix 892exec_prefix 893PACKAGE_URL 894PACKAGE_BUGREPORT 895PACKAGE_STRING 896PACKAGE_VERSION 897PACKAGE_TARNAME 898PACKAGE_NAME 899PATH_SEPARATOR 900SHELL' 901ac_subst_files='' 902ac_user_opts=' 903enable_option_checking 904enable_silent_rules 905enable_maintainer_mode 906enable_dependency_tracking 907enable_static 908enable_shared 909with_pic 910enable_fast_install 911with_aix_soname 912with_gnu_ld 913with_sysroot 914enable_libtool_lock 915with_pthreads 916enable_builtin_extensions 917enable_fhs 918enable_debug 919with_sql 920with_postgresql 921with_mysql 922with_qdbm 923with_tokyocabinet 924with_lmdb 925with_openssl 926with_pcre 927with_libvirt 928with_libacl 929with_libcurl 930with_libyaml 931with_libxml2 932enable_largefile 933with_pam 934enable_selinux 935with_workdir 936with_masterdir 937with_inputdir 938with_logdir 939with_piddir 940with_statedir 941with_shell 942enable_coverage 943' 944 ac_precious_vars='build_alias 945host_alias 946target_alias 947CC 948CFLAGS 949LDFLAGS 950LIBS 951CPPFLAGS 952CPP 953LT_SYS_LIBRARY_PATH 954YACC 955YFLAGS' 956 957 958# Initialize some variables set by options. 959ac_init_help= 960ac_init_version=false 961ac_unrecognized_opts= 962ac_unrecognized_sep= 963# The variables have the same names as the options, with 964# dashes changed to underlines. 965cache_file=/dev/null 966exec_prefix=NONE 967no_create= 968no_recursion= 969prefix=NONE 970program_prefix=NONE 971program_suffix=NONE 972program_transform_name=s,x,x, 973silent= 974site= 975srcdir= 976verbose= 977x_includes=NONE 978x_libraries=NONE 979 980# Installation directory options. 981# These are left unexpanded so users can "make install exec_prefix=/foo" 982# and all the variables that are supposed to be based on exec_prefix 983# by default will actually change. 984# Use braces instead of parens because sh, perl, etc. also accept them. 985# (The list follows the same order as the GNU Coding Standards.) 986bindir='${exec_prefix}/bin' 987sbindir='${exec_prefix}/sbin' 988libexecdir='${exec_prefix}/libexec' 989datarootdir='${prefix}/share' 990datadir='${datarootdir}' 991sysconfdir='${prefix}/etc' 992sharedstatedir='${prefix}/com' 993localstatedir='${prefix}/var' 994runstatedir='${localstatedir}/run' 995includedir='${prefix}/include' 996oldincludedir='/usr/include' 997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 998infodir='${datarootdir}/info' 999htmldir='${docdir}' 1000dvidir='${docdir}' 1001pdfdir='${docdir}' 1002psdir='${docdir}' 1003libdir='${exec_prefix}/lib' 1004localedir='${datarootdir}/locale' 1005mandir='${datarootdir}/man' 1006 1007ac_prev= 1008ac_dashdash= 1009for ac_option 1010do 1011 # If the previous option needs an argument, assign it. 1012 if test -n "$ac_prev"; then 1013 eval $ac_prev=\$ac_option 1014 ac_prev= 1015 continue 1016 fi 1017 1018 case $ac_option in 1019 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1020 *=) ac_optarg= ;; 1021 *) ac_optarg=yes ;; 1022 esac 1023 1024 # Accept the important Cygnus configure options, so we can diagnose typos. 1025 1026 case $ac_dashdash$ac_option in 1027 --) 1028 ac_dashdash=yes ;; 1029 1030 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1031 ac_prev=bindir ;; 1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1033 bindir=$ac_optarg ;; 1034 1035 -build | --build | --buil | --bui | --bu) 1036 ac_prev=build_alias ;; 1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1038 build_alias=$ac_optarg ;; 1039 1040 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1042 ac_prev=cache_file ;; 1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1045 cache_file=$ac_optarg ;; 1046 1047 --config-cache | -C) 1048 cache_file=config.cache ;; 1049 1050 -datadir | --datadir | --datadi | --datad) 1051 ac_prev=datadir ;; 1052 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1053 datadir=$ac_optarg ;; 1054 1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1056 | --dataroo | --dataro | --datar) 1057 ac_prev=datarootdir ;; 1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1060 datarootdir=$ac_optarg ;; 1061 1062 -disable-* | --disable-*) 1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1066 as_fn_error $? "invalid feature name: $ac_useropt" 1067 ac_useropt_orig=$ac_useropt 1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1069 case $ac_user_opts in 1070 *" 1071"enable_$ac_useropt" 1072"*) ;; 1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1074 ac_unrecognized_sep=', ';; 1075 esac 1076 eval enable_$ac_useropt=no ;; 1077 1078 -docdir | --docdir | --docdi | --doc | --do) 1079 ac_prev=docdir ;; 1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1081 docdir=$ac_optarg ;; 1082 1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1084 ac_prev=dvidir ;; 1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1086 dvidir=$ac_optarg ;; 1087 1088 -enable-* | --enable-*) 1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1090 # Reject names that are not valid shell variable names. 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1092 as_fn_error $? "invalid feature name: $ac_useropt" 1093 ac_useropt_orig=$ac_useropt 1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1095 case $ac_user_opts in 1096 *" 1097"enable_$ac_useropt" 1098"*) ;; 1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1100 ac_unrecognized_sep=', ';; 1101 esac 1102 eval enable_$ac_useropt=\$ac_optarg ;; 1103 1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1106 | --exec | --exe | --ex) 1107 ac_prev=exec_prefix ;; 1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1110 | --exec=* | --exe=* | --ex=*) 1111 exec_prefix=$ac_optarg ;; 1112 1113 -gas | --gas | --ga | --g) 1114 # Obsolete; use --with-gas. 1115 with_gas=yes ;; 1116 1117 -help | --help | --hel | --he | -h) 1118 ac_init_help=long ;; 1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1120 ac_init_help=recursive ;; 1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1122 ac_init_help=short ;; 1123 1124 -host | --host | --hos | --ho) 1125 ac_prev=host_alias ;; 1126 -host=* | --host=* | --hos=* | --ho=*) 1127 host_alias=$ac_optarg ;; 1128 1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1130 ac_prev=htmldir ;; 1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1132 | --ht=*) 1133 htmldir=$ac_optarg ;; 1134 1135 -includedir | --includedir | --includedi | --included | --include \ 1136 | --includ | --inclu | --incl | --inc) 1137 ac_prev=includedir ;; 1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1139 | --includ=* | --inclu=* | --incl=* | --inc=*) 1140 includedir=$ac_optarg ;; 1141 1142 -infodir | --infodir | --infodi | --infod | --info | --inf) 1143 ac_prev=infodir ;; 1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1145 infodir=$ac_optarg ;; 1146 1147 -libdir | --libdir | --libdi | --libd) 1148 ac_prev=libdir ;; 1149 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1150 libdir=$ac_optarg ;; 1151 1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1153 | --libexe | --libex | --libe) 1154 ac_prev=libexecdir ;; 1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1156 | --libexe=* | --libex=* | --libe=*) 1157 libexecdir=$ac_optarg ;; 1158 1159 -localedir | --localedir | --localedi | --localed | --locale) 1160 ac_prev=localedir ;; 1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1162 localedir=$ac_optarg ;; 1163 1164 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1165 | --localstate | --localstat | --localsta | --localst | --locals) 1166 ac_prev=localstatedir ;; 1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1169 localstatedir=$ac_optarg ;; 1170 1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1172 ac_prev=mandir ;; 1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1174 mandir=$ac_optarg ;; 1175 1176 -nfp | --nfp | --nf) 1177 # Obsolete; use --without-fp. 1178 with_fp=no ;; 1179 1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1181 | --no-cr | --no-c | -n) 1182 no_create=yes ;; 1183 1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1186 no_recursion=yes ;; 1187 1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1190 | --oldin | --oldi | --old | --ol | --o) 1191 ac_prev=oldincludedir ;; 1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1195 oldincludedir=$ac_optarg ;; 1196 1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1198 ac_prev=prefix ;; 1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1200 prefix=$ac_optarg ;; 1201 1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1203 | --program-pre | --program-pr | --program-p) 1204 ac_prev=program_prefix ;; 1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1207 program_prefix=$ac_optarg ;; 1208 1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1210 | --program-suf | --program-su | --program-s) 1211 ac_prev=program_suffix ;; 1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1214 program_suffix=$ac_optarg ;; 1215 1216 -program-transform-name | --program-transform-name \ 1217 | --program-transform-nam | --program-transform-na \ 1218 | --program-transform-n | --program-transform- \ 1219 | --program-transform | --program-transfor \ 1220 | --program-transfo | --program-transf \ 1221 | --program-trans | --program-tran \ 1222 | --progr-tra | --program-tr | --program-t) 1223 ac_prev=program_transform_name ;; 1224 -program-transform-name=* | --program-transform-name=* \ 1225 | --program-transform-nam=* | --program-transform-na=* \ 1226 | --program-transform-n=* | --program-transform-=* \ 1227 | --program-transform=* | --program-transfor=* \ 1228 | --program-transfo=* | --program-transf=* \ 1229 | --program-trans=* | --program-tran=* \ 1230 | --progr-tra=* | --program-tr=* | --program-t=*) 1231 program_transform_name=$ac_optarg ;; 1232 1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1234 ac_prev=pdfdir ;; 1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1236 pdfdir=$ac_optarg ;; 1237 1238 -psdir | --psdir | --psdi | --psd | --ps) 1239 ac_prev=psdir ;; 1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1241 psdir=$ac_optarg ;; 1242 1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1244 | -silent | --silent | --silen | --sile | --sil) 1245 silent=yes ;; 1246 1247 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1248 | --runstate | --runstat | --runsta | --runst | --runs \ 1249 | --run | --ru | --r) 1250 ac_prev=runstatedir ;; 1251 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1252 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1253 | --run=* | --ru=* | --r=*) 1254 runstatedir=$ac_optarg ;; 1255 1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1257 ac_prev=sbindir ;; 1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1259 | --sbi=* | --sb=*) 1260 sbindir=$ac_optarg ;; 1261 1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1264 | --sharedst | --shareds | --shared | --share | --shar \ 1265 | --sha | --sh) 1266 ac_prev=sharedstatedir ;; 1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1270 | --sha=* | --sh=*) 1271 sharedstatedir=$ac_optarg ;; 1272 1273 -site | --site | --sit) 1274 ac_prev=site ;; 1275 -site=* | --site=* | --sit=*) 1276 site=$ac_optarg ;; 1277 1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1279 ac_prev=srcdir ;; 1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1281 srcdir=$ac_optarg ;; 1282 1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1284 | --syscon | --sysco | --sysc | --sys | --sy) 1285 ac_prev=sysconfdir ;; 1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1288 sysconfdir=$ac_optarg ;; 1289 1290 -target | --target | --targe | --targ | --tar | --ta | --t) 1291 ac_prev=target_alias ;; 1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1293 target_alias=$ac_optarg ;; 1294 1295 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1296 verbose=yes ;; 1297 1298 -version | --version | --versio | --versi | --vers | -V) 1299 ac_init_version=: ;; 1300 1301 -with-* | --with-*) 1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1303 # Reject names that are not valid shell variable names. 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1305 as_fn_error $? "invalid package name: $ac_useropt" 1306 ac_useropt_orig=$ac_useropt 1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1308 case $ac_user_opts in 1309 *" 1310"with_$ac_useropt" 1311"*) ;; 1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1313 ac_unrecognized_sep=', ';; 1314 esac 1315 eval with_$ac_useropt=\$ac_optarg ;; 1316 1317 -without-* | --without-*) 1318 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1319 # Reject names that are not valid shell variable names. 1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1321 as_fn_error $? "invalid package name: $ac_useropt" 1322 ac_useropt_orig=$ac_useropt 1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1324 case $ac_user_opts in 1325 *" 1326"with_$ac_useropt" 1327"*) ;; 1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1329 ac_unrecognized_sep=', ';; 1330 esac 1331 eval with_$ac_useropt=no ;; 1332 1333 --x) 1334 # Obsolete; use --with-x. 1335 with_x=yes ;; 1336 1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1338 | --x-incl | --x-inc | --x-in | --x-i) 1339 ac_prev=x_includes ;; 1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1342 x_includes=$ac_optarg ;; 1343 1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1346 ac_prev=x_libraries ;; 1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1349 x_libraries=$ac_optarg ;; 1350 1351 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1352Try \`$0 --help' for more information" 1353 ;; 1354 1355 *=*) 1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1357 # Reject names that are not valid shell variable names. 1358 case $ac_envvar in #( 1359 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1360 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1361 esac 1362 eval $ac_envvar=\$ac_optarg 1363 export $ac_envvar ;; 1364 1365 *) 1366 # FIXME: should be removed in autoconf 3.0. 1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1370 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1371 ;; 1372 1373 esac 1374done 1375 1376if test -n "$ac_prev"; then 1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1378 as_fn_error $? "missing argument to $ac_option" 1379fi 1380 1381if test -n "$ac_unrecognized_opts"; then 1382 case $enable_option_checking in 1383 no) ;; 1384 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1386 esac 1387fi 1388 1389# Check all directory arguments for consistency. 1390for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1391 datadir sysconfdir sharedstatedir localstatedir includedir \ 1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1393 libdir localedir mandir runstatedir 1394do 1395 eval ac_val=\$$ac_var 1396 # Remove trailing slashes. 1397 case $ac_val in 1398 */ ) 1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1400 eval $ac_var=\$ac_val;; 1401 esac 1402 # Be sure to have absolute directory names. 1403 case $ac_val in 1404 [\\/$]* | ?:[\\/]* ) continue;; 1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1406 esac 1407 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1408done 1409 1410# There might be people who depend on the old broken behavior: `$host' 1411# used to hold the argument of --host etc. 1412# FIXME: To remove some day. 1413build=$build_alias 1414host=$host_alias 1415target=$target_alias 1416 1417# FIXME: To remove some day. 1418if test "x$host_alias" != x; then 1419 if test "x$build_alias" = x; then 1420 cross_compiling=maybe 1421 elif test "x$build_alias" != "x$host_alias"; then 1422 cross_compiling=yes 1423 fi 1424fi 1425 1426ac_tool_prefix= 1427test -n "$host_alias" && ac_tool_prefix=$host_alias- 1428 1429test "$silent" = yes && exec 6>/dev/null 1430 1431 1432ac_pwd=`pwd` && test -n "$ac_pwd" && 1433ac_ls_di=`ls -di .` && 1434ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1435 as_fn_error $? "working directory cannot be determined" 1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1437 as_fn_error $? "pwd does not report name of working directory" 1438 1439 1440# Find the source files, if location was not specified. 1441if test -z "$srcdir"; then 1442 ac_srcdir_defaulted=yes 1443 # Try the directory containing this script, then the parent directory. 1444 ac_confdir=`$as_dirname -- "$as_myself" || 1445$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1446 X"$as_myself" : 'X\(//\)[^/]' \| \ 1447 X"$as_myself" : 'X\(//\)$' \| \ 1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1449$as_echo X"$as_myself" | 1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1451 s//\1/ 1452 q 1453 } 1454 /^X\(\/\/\)[^/].*/{ 1455 s//\1/ 1456 q 1457 } 1458 /^X\(\/\/\)$/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\).*/{ 1463 s//\1/ 1464 q 1465 } 1466 s/.*/./; q'` 1467 srcdir=$ac_confdir 1468 if test ! -r "$srcdir/$ac_unique_file"; then 1469 srcdir=.. 1470 fi 1471else 1472 ac_srcdir_defaulted=no 1473fi 1474if test ! -r "$srcdir/$ac_unique_file"; then 1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1476 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1477fi 1478ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1479ac_abs_confdir=`( 1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1481 pwd)` 1482# When building in place, set srcdir=. 1483if test "$ac_abs_confdir" = "$ac_pwd"; then 1484 srcdir=. 1485fi 1486# Remove unnecessary trailing slashes from srcdir. 1487# Double slashes in file names in object file debugging info 1488# mess up M-x gdb in Emacs. 1489case $srcdir in 1490*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1491esac 1492for ac_var in $ac_precious_vars; do 1493 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1494 eval ac_env_${ac_var}_value=\$${ac_var} 1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1496 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1497done 1498 1499# 1500# Report the --help message. 1501# 1502if test "$ac_init_help" = "long"; then 1503 # Omit some internal or obsolete options to make the list less imposing. 1504 # This message is too long to be a string in the A/UX 3.1 sh. 1505 cat <<_ACEOF 1506\`configure' configures libntech 0.1.0 to adapt to many kinds of systems. 1507 1508Usage: $0 [OPTION]... [VAR=VALUE]... 1509 1510To assign environment variables (e.g., CC, CFLAGS...), specify them as 1511VAR=VALUE. See below for descriptions of some of the useful variables. 1512 1513Defaults for the options are specified in brackets. 1514 1515Configuration: 1516 -h, --help display this help and exit 1517 --help=short display options specific to this package 1518 --help=recursive display the short help of all the included packages 1519 -V, --version display version information and exit 1520 -q, --quiet, --silent do not print \`checking ...' messages 1521 --cache-file=FILE cache test results in FILE [disabled] 1522 -C, --config-cache alias for \`--cache-file=config.cache' 1523 -n, --no-create do not create output files 1524 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1525 1526Installation directories: 1527 --prefix=PREFIX install architecture-independent files in PREFIX 1528 [$ac_default_prefix] 1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1530 [PREFIX] 1531 1532By default, \`make install' will install all the files in 1533\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1534an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1535for instance \`--prefix=\$HOME'. 1536 1537For better control, use the options below. 1538 1539Fine tuning of the installation directories: 1540 --bindir=DIR user executables [EPREFIX/bin] 1541 --sbindir=DIR system admin executables [EPREFIX/sbin] 1542 --libexecdir=DIR program executables [EPREFIX/libexec] 1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1546 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1547 --libdir=DIR object code libraries [EPREFIX/lib] 1548 --includedir=DIR C header files [PREFIX/include] 1549 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1552 --infodir=DIR info documentation [DATAROOTDIR/info] 1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1554 --mandir=DIR man documentation [DATAROOTDIR/man] 1555 --docdir=DIR documentation root [DATAROOTDIR/doc/libntech] 1556 --htmldir=DIR html documentation [DOCDIR] 1557 --dvidir=DIR dvi documentation [DOCDIR] 1558 --pdfdir=DIR pdf documentation [DOCDIR] 1559 --psdir=DIR ps documentation [DOCDIR] 1560_ACEOF 1561 1562 cat <<\_ACEOF 1563 1564Program names: 1565 --program-prefix=PREFIX prepend PREFIX to installed program names 1566 --program-suffix=SUFFIX append SUFFIX to installed program names 1567 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1568 1569System types: 1570 --build=BUILD configure for building on BUILD [guessed] 1571 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1572 --target=TARGET configure for building compilers for TARGET [HOST] 1573_ACEOF 1574fi 1575 1576if test -n "$ac_init_help"; then 1577 case $ac_init_help in 1578 short | recursive ) echo "Configuration of libntech 0.1.0:";; 1579 esac 1580 cat <<\_ACEOF 1581 1582Optional Features: 1583 --disable-option-checking ignore unrecognized --enable/--with options 1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1586 --enable-silent-rules less verbose build output (undo: "make V=1") 1587 --disable-silent-rules verbose build output (undo: "make V=0") 1588 --disable-maintainer-mode 1589 disable make rules and dependencies not useful (and 1590 sometimes confusing) to the casual installer 1591 --enable-dependency-tracking 1592 do not reject slow dependency extractors 1593 --disable-dependency-tracking 1594 speeds up one-time build 1595 --enable-static[=PKGS] build static libraries [default=no] 1596 --enable-shared[=PKGS] build shared libraries [default=yes] 1597 --enable-fast-install[=PKGS] 1598 optimize for fast installation [default=yes] 1599 --disable-libtool-lock avoid locking (might break parallel builds) 1600 Build binaries with builtin extensions 1601 1602 --enable-fhs Enable FHS compliance. Defaults to custom CFEngine 1603 files layout 1604 --enable-debug Enable debugging 1605 --disable-largefile omit support for large files 1606 --enable-selinux Deprecated. SELinux support is always enabled 1607 --enable-coverage Enable code coverage 1608 1609Optional Packages: 1610 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1611 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1612 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1613 both] 1614 --with-aix-soname=aix|svr4|both 1615 shared library versioning (aka "SONAME") variant to 1616 provide on AIX, [default=aix]. 1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1618 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1619 compiler's sysroot if not specified). 1620 --with-pthreads[=PATH] Specify path to pthreads, if not the part of 1621 operating system 1622 --with-sql[=PATH] Enable SQL database connectors (deprecated, use 1623 --with[[out]]-postgresql and --with[[out]]-mysql 1624 instead) 1625 1626 --with-postgresql[=PATH] 1627 Enable PostgreSQL connector 1628 1629 --with-mysql[=PATH] Enable MySQL connector 1630 1631 --with-qdbm[=PATH] use QDBM to store runtime data 1632 --with-tokyocabinet[=PATH] 1633 use Tokyo Cabinet to store runtime data 1634 --with-lmdb[=PATH] use Lightning MDB to store runtime data 1635 --with-openssl[=PATH] Specify OpenSSL path 1636 --with-pcre[=PATH] Specify PCRE path 1637 --with-libvirt[=PATH] support virtual machine management 1638 --with-libacl[=PATH] Specify libacl path 1639 --with-libcurl[=PATH] Specify libcurl path 1640 --with-libyaml[=PATH] Specify libyaml path 1641 --with-libxml2[=PATH] Specify libxml2 path 1642 1643 --with-pam Compile with PAM support 1644 --with-workdir=WORKDIR default for internal (trusted) working directory 1645 --with-masterdir=MASTERDIR default for internal masterfiles directory 1646 --with-inputdir=INPUTDIR default for internal inputs directory 1647 --with-logdir=LOGDIR default for internal log directory 1648 --with-piddir=LOGDIR default for internal pid directory 1649 --with-statedir=STATEDIR default for internal state directory 1650 --with-shell=PATH Specify path to POSIX-compatible shell (if not 1651 /bin/sh) 1652 1653Some influential environment variables: 1654 CC C compiler command 1655 CFLAGS C compiler flags 1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1657 nonstandard directory <lib dir> 1658 LIBS libraries to pass to the linker, e.g. -l<library> 1659 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1660 you have headers in a nonstandard directory <include dir> 1661 CPP C preprocessor 1662 LT_SYS_LIBRARY_PATH 1663 User-defined run-time library search path. 1664 YACC The `Yet Another Compiler Compiler' implementation to use. 1665 Defaults to the first program found out of: `bison -y', `byacc', 1666 `yacc'. 1667 YFLAGS The list of arguments that will be passed by default to $YACC. 1668 This script will default YFLAGS to the empty string to avoid a 1669 default value of `-d' given by some make applications. 1670 1671Use these variables to override the choices made by `configure' or to help 1672it to find libraries and programs with nonstandard names/locations. 1673 1674Report bugs to the package provider. 1675_ACEOF 1676ac_status=$? 1677fi 1678 1679if test "$ac_init_help" = "recursive"; then 1680 # If there are subdirs, report their specific --help. 1681 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1682 test -d "$ac_dir" || 1683 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1684 continue 1685 ac_builddir=. 1686 1687case "$ac_dir" in 1688.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1689*) 1690 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1691 # A ".." for each directory in $ac_dir_suffix. 1692 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1693 case $ac_top_builddir_sub in 1694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1696 esac ;; 1697esac 1698ac_abs_top_builddir=$ac_pwd 1699ac_abs_builddir=$ac_pwd$ac_dir_suffix 1700# for backward compatibility: 1701ac_top_builddir=$ac_top_build_prefix 1702 1703case $srcdir in 1704 .) # We are building in place. 1705 ac_srcdir=. 1706 ac_top_srcdir=$ac_top_builddir_sub 1707 ac_abs_top_srcdir=$ac_pwd ;; 1708 [\\/]* | ?:[\\/]* ) # Absolute name. 1709 ac_srcdir=$srcdir$ac_dir_suffix; 1710 ac_top_srcdir=$srcdir 1711 ac_abs_top_srcdir=$srcdir ;; 1712 *) # Relative name. 1713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1714 ac_top_srcdir=$ac_top_build_prefix$srcdir 1715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1716esac 1717ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1718 1719 cd "$ac_dir" || { ac_status=$?; continue; } 1720 # Check for guested configure. 1721 if test -f "$ac_srcdir/configure.gnu"; then 1722 echo && 1723 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1724 elif test -f "$ac_srcdir/configure"; then 1725 echo && 1726 $SHELL "$ac_srcdir/configure" --help=recursive 1727 else 1728 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1729 fi || ac_status=$? 1730 cd "$ac_pwd" || { ac_status=$?; break; } 1731 done 1732fi 1733 1734test -n "$ac_init_help" && exit $ac_status 1735if $ac_init_version; then 1736 cat <<\_ACEOF 1737libntech configure 0.1.0 1738generated by GNU Autoconf 2.69 1739 1740Copyright (C) 2012 Free Software Foundation, Inc. 1741This configure script is free software; the Free Software Foundation 1742gives unlimited permission to copy, distribute and modify it. 1743_ACEOF 1744 exit 1745fi 1746 1747## ------------------------ ## 1748## Autoconf initialization. ## 1749## ------------------------ ## 1750 1751# ac_fn_c_try_compile LINENO 1752# -------------------------- 1753# Try to compile conftest.$ac_ext, and return whether this succeeded. 1754ac_fn_c_try_compile () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 rm -f conftest.$ac_objext 1758 if { { ac_try="$ac_compile" 1759case "(($ac_try" in 1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1761 *) ac_try_echo=$ac_try;; 1762esac 1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1764$as_echo "$ac_try_echo"; } >&5 1765 (eval "$ac_compile") 2>conftest.err 1766 ac_status=$? 1767 if test -s conftest.err; then 1768 grep -v '^ *+' conftest.err >conftest.er1 1769 cat conftest.er1 >&5 1770 mv -f conftest.er1 conftest.err 1771 fi 1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1773 test $ac_status = 0; } && { 1774 test -z "$ac_c_werror_flag" || 1775 test ! -s conftest.err 1776 } && test -s conftest.$ac_objext; then : 1777 ac_retval=0 1778else 1779 $as_echo "$as_me: failed program was:" >&5 1780sed 's/^/| /' conftest.$ac_ext >&5 1781 1782 ac_retval=1 1783fi 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} # ac_fn_c_try_compile 1788 1789# ac_fn_c_try_cpp LINENO 1790# ---------------------- 1791# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1792ac_fn_c_try_cpp () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_cpp conftest.$ac_ext" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } > conftest.i && { 1811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 }; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820fi 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 as_fn_set_status $ac_retval 1823 1824} # ac_fn_c_try_cpp 1825 1826# ac_fn_c_try_link LINENO 1827# ----------------------- 1828# Try to link conftest.$ac_ext, and return whether this succeeded. 1829ac_fn_c_try_link () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 rm -f conftest.$ac_objext conftest$ac_exeext 1833 if { { ac_try="$ac_link" 1834case "(($ac_try" in 1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1836 *) ac_try_echo=$ac_try;; 1837esac 1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1839$as_echo "$ac_try_echo"; } >&5 1840 (eval "$ac_link") 2>conftest.err 1841 ac_status=$? 1842 if test -s conftest.err; then 1843 grep -v '^ *+' conftest.err >conftest.er1 1844 cat conftest.er1 >&5 1845 mv -f conftest.er1 conftest.err 1846 fi 1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1848 test $ac_status = 0; } && { 1849 test -z "$ac_c_werror_flag" || 1850 test ! -s conftest.err 1851 } && test -s conftest$ac_exeext && { 1852 test "$cross_compiling" = yes || 1853 test -x conftest$ac_exeext 1854 }; then : 1855 ac_retval=0 1856else 1857 $as_echo "$as_me: failed program was:" >&5 1858sed 's/^/| /' conftest.$ac_ext >&5 1859 1860 ac_retval=1 1861fi 1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1864 # interfere with the next link command; also delete a directory that is 1865 # left behind by Apple's compiler. We do this before executing the actions. 1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 as_fn_set_status $ac_retval 1869 1870} # ac_fn_c_try_link 1871 1872# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1873# ------------------------------------------------------- 1874# Tests whether HEADER exists and can be compiled using the include files in 1875# INCLUDES, setting the cache variable VAR accordingly. 1876ac_fn_c_check_header_compile () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1880$as_echo_n "checking for $2... " >&6; } 1881if eval \${$3+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887#include <$2> 1888_ACEOF 1889if ac_fn_c_try_compile "$LINENO"; then : 1890 eval "$3=yes" 1891else 1892 eval "$3=no" 1893fi 1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1895fi 1896eval ac_res=\$$3 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1898$as_echo "$ac_res" >&6; } 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 1901} # ac_fn_c_check_header_compile 1902 1903# ac_fn_c_try_run LINENO 1904# ---------------------- 1905# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1906# that executables *can* be run. 1907ac_fn_c_try_run () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 if { { ac_try="$ac_link" 1911case "(($ac_try" in 1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1913 *) ac_try_echo=$ac_try;; 1914esac 1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1916$as_echo "$ac_try_echo"; } >&5 1917 (eval "$ac_link") 2>&5 1918 ac_status=$? 1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1920 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1921 { { case "(($ac_try" in 1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1923 *) ac_try_echo=$ac_try;; 1924esac 1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1926$as_echo "$ac_try_echo"; } >&5 1927 (eval "$ac_try") 2>&5 1928 ac_status=$? 1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1930 test $ac_status = 0; }; }; then : 1931 ac_retval=0 1932else 1933 $as_echo "$as_me: program exited with status $ac_status" >&5 1934 $as_echo "$as_me: failed program was:" >&5 1935sed 's/^/| /' conftest.$ac_ext >&5 1936 1937 ac_retval=$ac_status 1938fi 1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 as_fn_set_status $ac_retval 1942 1943} # ac_fn_c_try_run 1944 1945# ac_fn_c_check_func LINENO FUNC VAR 1946# ---------------------------------- 1947# Tests whether FUNC exists, setting the cache variable VAR accordingly 1948ac_fn_c_check_func () 1949{ 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1952$as_echo_n "checking for $2... " >&6; } 1953if eval \${$3+:} false; then : 1954 $as_echo_n "(cached) " >&6 1955else 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1959 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1960#define $2 innocuous_$2 1961 1962/* System header to define __stub macros and hopefully few prototypes, 1963 which can conflict with char $2 (); below. 1964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1965 <limits.h> exists even on freestanding compilers. */ 1966 1967#ifdef __STDC__ 1968# include <limits.h> 1969#else 1970# include <assert.h> 1971#endif 1972 1973#undef $2 1974 1975/* Override any GCC internal prototype to avoid an error. 1976 Use char because int might match the return type of a GCC 1977 builtin and then its argument prototype would still apply. */ 1978#ifdef __cplusplus 1979extern "C" 1980#endif 1981char $2 (); 1982/* The GNU C library defines this for functions which it implements 1983 to always fail with ENOSYS. Some functions are actually named 1984 something starting with __ and the normal name is an alias. */ 1985#if defined __stub_$2 || defined __stub___$2 1986choke me 1987#endif 1988 1989int 1990main () 1991{ 1992return $2 (); 1993 ; 1994 return 0; 1995} 1996_ACEOF 1997if ac_fn_c_try_link "$LINENO"; then : 1998 eval "$3=yes" 1999else 2000 eval "$3=no" 2001fi 2002rm -f core conftest.err conftest.$ac_objext \ 2003 conftest$ac_exeext conftest.$ac_ext 2004fi 2005eval ac_res=\$$3 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2007$as_echo "$ac_res" >&6; } 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 2010} # ac_fn_c_check_func 2011 2012# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2013# ------------------------------------------------------- 2014# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2015# the include files in INCLUDES and setting the cache variable VAR 2016# accordingly. 2017ac_fn_c_check_header_mongrel () 2018{ 2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2020 if eval \${$3+:} false; then : 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2022$as_echo_n "checking for $2... " >&6; } 2023if eval \${$3+:} false; then : 2024 $as_echo_n "(cached) " >&6 2025fi 2026eval ac_res=\$$3 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2028$as_echo "$ac_res" >&6; } 2029else 2030 # Is the header compilable? 2031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2032$as_echo_n "checking $2 usability... " >&6; } 2033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036#include <$2> 2037_ACEOF 2038if ac_fn_c_try_compile "$LINENO"; then : 2039 ac_header_compiler=yes 2040else 2041 ac_header_compiler=no 2042fi 2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2045$as_echo "$ac_header_compiler" >&6; } 2046 2047# Is the header present? 2048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2049$as_echo_n "checking $2 presence... " >&6; } 2050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2051/* end confdefs.h. */ 2052#include <$2> 2053_ACEOF 2054if ac_fn_c_try_cpp "$LINENO"; then : 2055 ac_header_preproc=yes 2056else 2057 ac_header_preproc=no 2058fi 2059rm -f conftest.err conftest.i conftest.$ac_ext 2060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2061$as_echo "$ac_header_preproc" >&6; } 2062 2063# So? What about this header? 2064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2065 yes:no: ) 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2067$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2069$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2070 ;; 2071 no:yes:* ) 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2073$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2075$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2077$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2079$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2081$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2082 ;; 2083esac 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2085$as_echo_n "checking for $2... " >&6; } 2086if eval \${$3+:} false; then : 2087 $as_echo_n "(cached) " >&6 2088else 2089 eval "$3=\$ac_header_compiler" 2090fi 2091eval ac_res=\$$3 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2093$as_echo "$ac_res" >&6; } 2094fi 2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2096 2097} # ac_fn_c_check_header_mongrel 2098 2099# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2100# --------------------------------------------- 2101# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2102# accordingly. 2103ac_fn_c_check_decl () 2104{ 2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2106 as_decl_name=`echo $2|sed 's/ *(.*//'` 2107 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2109$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2110if eval \${$3+:} false; then : 2111 $as_echo_n "(cached) " >&6 2112else 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115$4 2116int 2117main () 2118{ 2119#ifndef $as_decl_name 2120#ifdef __cplusplus 2121 (void) $as_decl_use; 2122#else 2123 (void) $as_decl_name; 2124#endif 2125#endif 2126 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 eval "$3=yes" 2133else 2134 eval "$3=no" 2135fi 2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2137fi 2138eval ac_res=\$$3 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2140$as_echo "$ac_res" >&6; } 2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2142 2143} # ac_fn_c_check_decl 2144 2145# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2146# ------------------------------------------- 2147# Tests whether TYPE exists after having included INCLUDES, setting cache 2148# variable VAR accordingly. 2149ac_fn_c_check_type () 2150{ 2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2153$as_echo_n "checking for $2... " >&6; } 2154if eval \${$3+:} false; then : 2155 $as_echo_n "(cached) " >&6 2156else 2157 eval "$3=no" 2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159/* end confdefs.h. */ 2160$4 2161int 2162main () 2163{ 2164if (sizeof ($2)) 2165 return 0; 2166 ; 2167 return 0; 2168} 2169_ACEOF 2170if ac_fn_c_try_compile "$LINENO"; then : 2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172/* end confdefs.h. */ 2173$4 2174int 2175main () 2176{ 2177if (sizeof (($2))) 2178 return 0; 2179 ; 2180 return 0; 2181} 2182_ACEOF 2183if ac_fn_c_try_compile "$LINENO"; then : 2184 2185else 2186 eval "$3=yes" 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2191fi 2192eval ac_res=\$$3 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2194$as_echo "$ac_res" >&6; } 2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2196 2197} # ac_fn_c_check_type 2198 2199# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2200# ---------------------------------------------------- 2201# Tries to find if the field MEMBER exists in type AGGR, after including 2202# INCLUDES, setting cache variable VAR accordingly. 2203ac_fn_c_check_member () 2204{ 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2207$as_echo_n "checking for $2.$3... " >&6; } 2208if eval \${$4+:} false; then : 2209 $as_echo_n "(cached) " >&6 2210else 2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2212/* end confdefs.h. */ 2213$5 2214int 2215main () 2216{ 2217static $2 ac_aggr; 2218if (ac_aggr.$3) 2219return 0; 2220 ; 2221 return 0; 2222} 2223_ACEOF 2224if ac_fn_c_try_compile "$LINENO"; then : 2225 eval "$4=yes" 2226else 2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2228/* end confdefs.h. */ 2229$5 2230int 2231main () 2232{ 2233static $2 ac_aggr; 2234if (sizeof ac_aggr.$3) 2235return 0; 2236 ; 2237 return 0; 2238} 2239_ACEOF 2240if ac_fn_c_try_compile "$LINENO"; then : 2241 eval "$4=yes" 2242else 2243 eval "$4=no" 2244fi 2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2246fi 2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2248fi 2249eval ac_res=\$$4 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2251$as_echo "$ac_res" >&6; } 2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2253 2254} # ac_fn_c_check_member 2255cat >config.log <<_ACEOF 2256This file contains any messages produced by compilers while 2257running configure, to aid debugging if configure makes a mistake. 2258 2259It was created by libntech $as_me 0.1.0, which was 2260generated by GNU Autoconf 2.69. Invocation command line was 2261 2262 $ $0 $@ 2263 2264_ACEOF 2265exec 5>>config.log 2266{ 2267cat <<_ASUNAME 2268## --------- ## 2269## Platform. ## 2270## --------- ## 2271 2272hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2273uname -m = `(uname -m) 2>/dev/null || echo unknown` 2274uname -r = `(uname -r) 2>/dev/null || echo unknown` 2275uname -s = `(uname -s) 2>/dev/null || echo unknown` 2276uname -v = `(uname -v) 2>/dev/null || echo unknown` 2277 2278/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2279/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2280 2281/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2282/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2284/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2285/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2286/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2287/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2288 2289_ASUNAME 2290 2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2292for as_dir in $PATH 2293do 2294 IFS=$as_save_IFS 2295 test -z "$as_dir" && as_dir=. 2296 $as_echo "PATH: $as_dir" 2297 done 2298IFS=$as_save_IFS 2299 2300} >&5 2301 2302cat >&5 <<_ACEOF 2303 2304 2305## ----------- ## 2306## Core tests. ## 2307## ----------- ## 2308 2309_ACEOF 2310 2311 2312# Keep a trace of the command line. 2313# Strip out --no-create and --no-recursion so they do not pile up. 2314# Strip out --silent because we don't want to record it for future runs. 2315# Also quote any args containing shell meta-characters. 2316# Make two passes to allow for proper duplicate-argument suppression. 2317ac_configure_args= 2318ac_configure_args0= 2319ac_configure_args1= 2320ac_must_keep_next=false 2321for ac_pass in 1 2 2322do 2323 for ac_arg 2324 do 2325 case $ac_arg in 2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2328 | -silent | --silent | --silen | --sile | --sil) 2329 continue ;; 2330 *\'*) 2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2332 esac 2333 case $ac_pass in 2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2335 2) 2336 as_fn_append ac_configure_args1 " '$ac_arg'" 2337 if test $ac_must_keep_next = true; then 2338 ac_must_keep_next=false # Got value, back to normal. 2339 else 2340 case $ac_arg in 2341 *=* | --config-cache | -C | -disable-* | --disable-* \ 2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2344 | -with-* | --with-* | -without-* | --without-* | --x) 2345 case "$ac_configure_args0 " in 2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2347 esac 2348 ;; 2349 -* ) ac_must_keep_next=true ;; 2350 esac 2351 fi 2352 as_fn_append ac_configure_args " '$ac_arg'" 2353 ;; 2354 esac 2355 done 2356done 2357{ ac_configure_args0=; unset ac_configure_args0;} 2358{ ac_configure_args1=; unset ac_configure_args1;} 2359 2360# When interrupted or exit'd, cleanup temporary files, and complete 2361# config.log. We remove comments because anyway the quotes in there 2362# would cause problems or look ugly. 2363# WARNING: Use '\'' to represent an apostrophe within the trap. 2364# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2365trap 'exit_status=$? 2366 # Save into config.log some information that might help in debugging. 2367 { 2368 echo 2369 2370 $as_echo "## ---------------- ## 2371## Cache variables. ## 2372## ---------------- ##" 2373 echo 2374 # The following way of writing the cache mishandles newlines in values, 2375( 2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2377 eval ac_val=\$$ac_var 2378 case $ac_val in #( 2379 *${as_nl}*) 2380 case $ac_var in #( 2381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2382$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2383 esac 2384 case $ac_var in #( 2385 _ | IFS | as_nl) ;; #( 2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2387 *) { eval $ac_var=; unset $ac_var;} ;; 2388 esac ;; 2389 esac 2390 done 2391 (set) 2>&1 | 2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2393 *${as_nl}ac_space=\ *) 2394 sed -n \ 2395 "s/'\''/'\''\\\\'\'''\''/g; 2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2397 ;; #( 2398 *) 2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2400 ;; 2401 esac | 2402 sort 2403) 2404 echo 2405 2406 $as_echo "## ----------------- ## 2407## Output variables. ## 2408## ----------------- ##" 2409 echo 2410 for ac_var in $ac_subst_vars 2411 do 2412 eval ac_val=\$$ac_var 2413 case $ac_val in 2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2415 esac 2416 $as_echo "$ac_var='\''$ac_val'\''" 2417 done | sort 2418 echo 2419 2420 if test -n "$ac_subst_files"; then 2421 $as_echo "## ------------------- ## 2422## File substitutions. ## 2423## ------------------- ##" 2424 echo 2425 for ac_var in $ac_subst_files 2426 do 2427 eval ac_val=\$$ac_var 2428 case $ac_val in 2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2430 esac 2431 $as_echo "$ac_var='\''$ac_val'\''" 2432 done | sort 2433 echo 2434 fi 2435 2436 if test -s confdefs.h; then 2437 $as_echo "## ----------- ## 2438## confdefs.h. ## 2439## ----------- ##" 2440 echo 2441 cat confdefs.h 2442 echo 2443 fi 2444 test "$ac_signal" != 0 && 2445 $as_echo "$as_me: caught signal $ac_signal" 2446 $as_echo "$as_me: exit $exit_status" 2447 } >&5 2448 rm -f core *.core core.conftest.* && 2449 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2450 exit $exit_status 2451' 0 2452for ac_signal in 1 2 13 15; do 2453 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2454done 2455ac_signal=0 2456 2457# confdefs.h avoids OS command line length limits that DEFS can exceed. 2458rm -f -r conftest* confdefs.h 2459 2460$as_echo "/* confdefs.h */" > confdefs.h 2461 2462# Predefined preprocessor variables. 2463 2464cat >>confdefs.h <<_ACEOF 2465#define PACKAGE_NAME "$PACKAGE_NAME" 2466_ACEOF 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2470_ACEOF 2471 2472cat >>confdefs.h <<_ACEOF 2473#define PACKAGE_VERSION "$PACKAGE_VERSION" 2474_ACEOF 2475 2476cat >>confdefs.h <<_ACEOF 2477#define PACKAGE_STRING "$PACKAGE_STRING" 2478_ACEOF 2479 2480cat >>confdefs.h <<_ACEOF 2481#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2482_ACEOF 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE_URL "$PACKAGE_URL" 2486_ACEOF 2487 2488 2489# Let the site file select an alternate cache file if it wants to. 2490# Prefer an explicitly selected file to automatically selected ones. 2491ac_site_file1=NONE 2492ac_site_file2=NONE 2493if test -n "$CONFIG_SITE"; then 2494 # We do not want a PATH search for config.site. 2495 case $CONFIG_SITE in #(( 2496 -*) ac_site_file1=./$CONFIG_SITE;; 2497 */*) ac_site_file1=$CONFIG_SITE;; 2498 *) ac_site_file1=./$CONFIG_SITE;; 2499 esac 2500elif test "x$prefix" != xNONE; then 2501 ac_site_file1=$prefix/share/config.site 2502 ac_site_file2=$prefix/etc/config.site 2503else 2504 ac_site_file1=$ac_default_prefix/share/config.site 2505 ac_site_file2=$ac_default_prefix/etc/config.site 2506fi 2507for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2508do 2509 test "x$ac_site_file" = xNONE && continue 2510 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2512$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2513 sed 's/^/| /' "$ac_site_file" >&5 2514 . "$ac_site_file" \ 2515 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2517as_fn_error $? "failed to load site script $ac_site_file 2518See \`config.log' for more details" "$LINENO" 5; } 2519 fi 2520done 2521 2522if test -r "$cache_file"; then 2523 # Some versions of bash will fail to source /dev/null (special files 2524 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2525 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2527$as_echo "$as_me: loading cache $cache_file" >&6;} 2528 case $cache_file in 2529 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2530 *) . "./$cache_file";; 2531 esac 2532 fi 2533else 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2535$as_echo "$as_me: creating cache $cache_file" >&6;} 2536 >$cache_file 2537fi 2538 2539as_fn_append ac_header_list " sys/sysmacros.h" 2540# Check that the precious variables saved in the cache have kept the same 2541# value. 2542ac_cache_corrupted=false 2543for ac_var in $ac_precious_vars; do 2544 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2545 eval ac_new_set=\$ac_env_${ac_var}_set 2546 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2547 eval ac_new_val=\$ac_env_${ac_var}_value 2548 case $ac_old_set,$ac_new_set in 2549 set,) 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2551$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2552 ac_cache_corrupted=: ;; 2553 ,set) 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2555$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2556 ac_cache_corrupted=: ;; 2557 ,);; 2558 *) 2559 if test "x$ac_old_val" != "x$ac_new_val"; then 2560 # differences in whitespace do not lead to failure. 2561 ac_old_val_w=`echo x $ac_old_val` 2562 ac_new_val_w=`echo x $ac_new_val` 2563 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2565$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2566 ac_cache_corrupted=: 2567 else 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2569$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2570 eval $ac_var=\$ac_old_val 2571 fi 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2573$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2575$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2576 fi;; 2577 esac 2578 # Pass precious variables to config.status. 2579 if test "$ac_new_set" = set; then 2580 case $ac_new_val in 2581 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2582 *) ac_arg=$ac_var=$ac_new_val ;; 2583 esac 2584 case " $ac_configure_args " in 2585 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2586 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2587 esac 2588 fi 2589done 2590if $ac_cache_corrupted; then 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2594$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2595 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2596fi 2597## -------------------- ## 2598## Main body of script. ## 2599## -------------------- ## 2600 2601ac_ext=c 2602ac_cpp='$CPP $CPPFLAGS' 2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2605ac_compiler_gnu=$ac_cv_c_compiler_gnu 2606 2607 2608ac_aux_dir= 2609for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2610 if test -f "$ac_dir/install-sh"; then 2611 ac_aux_dir=$ac_dir 2612 ac_install_sh="$ac_aux_dir/install-sh -c" 2613 break 2614 elif test -f "$ac_dir/install.sh"; then 2615 ac_aux_dir=$ac_dir 2616 ac_install_sh="$ac_aux_dir/install.sh -c" 2617 break 2618 elif test -f "$ac_dir/shtool"; then 2619 ac_aux_dir=$ac_dir 2620 ac_install_sh="$ac_aux_dir/shtool install -c" 2621 break 2622 fi 2623done 2624if test -z "$ac_aux_dir"; then 2625 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2626fi 2627 2628# These three variables are undocumented and unsupported, 2629# and are intended to be withdrawn in a future Autoconf release. 2630# They can cause serious problems if a builder's source tree is in a directory 2631# whose full name contains unusual characters. 2632ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2633ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2634ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2635 2636 2637# Make sure we can run config.sub. 2638$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2639 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2640 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2642$as_echo_n "checking build system type... " >&6; } 2643if ${ac_cv_build+:} false; then : 2644 $as_echo_n "(cached) " >&6 2645else 2646 ac_build_alias=$build_alias 2647test "x$ac_build_alias" = x && 2648 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2649test "x$ac_build_alias" = x && 2650 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2651ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2652 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2653 2654fi 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2656$as_echo "$ac_cv_build" >&6; } 2657case $ac_cv_build in 2658*-*-*) ;; 2659*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2660esac 2661build=$ac_cv_build 2662ac_save_IFS=$IFS; IFS='-' 2663set x $ac_cv_build 2664shift 2665build_cpu=$1 2666build_vendor=$2 2667shift; shift 2668# Remember, the first character of IFS is used to create $*, 2669# except with old shells: 2670build_os=$* 2671IFS=$ac_save_IFS 2672case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2673 2674 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2676$as_echo_n "checking host system type... " >&6; } 2677if ${ac_cv_host+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if test "x$host_alias" = x; then 2681 ac_cv_host=$ac_cv_build 2682else 2683 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2684 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2685fi 2686 2687fi 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2689$as_echo "$ac_cv_host" >&6; } 2690case $ac_cv_host in 2691*-*-*) ;; 2692*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2693esac 2694host=$ac_cv_host 2695ac_save_IFS=$IFS; IFS='-' 2696set x $ac_cv_host 2697shift 2698host_cpu=$1 2699host_vendor=$2 2700shift; shift 2701# Remember, the first character of IFS is used to create $*, 2702# except with old shells: 2703host_os=$* 2704IFS=$ac_save_IFS 2705case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2706 2707 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2709$as_echo_n "checking target system type... " >&6; } 2710if ${ac_cv_target+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 if test "x$target_alias" = x; then 2714 ac_cv_target=$ac_cv_host 2715else 2716 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2717 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2718fi 2719 2720fi 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2722$as_echo "$ac_cv_target" >&6; } 2723case $ac_cv_target in 2724*-*-*) ;; 2725*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2726esac 2727target=$ac_cv_target 2728ac_save_IFS=$IFS; IFS='-' 2729set x $ac_cv_target 2730shift 2731target_cpu=$1 2732target_vendor=$2 2733shift; shift 2734# Remember, the first character of IFS is used to create $*, 2735# except with old shells: 2736target_os=$* 2737IFS=$ac_save_IFS 2738case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2739 2740 2741# The aliases save the names the user supplied, while $host etc. 2742# will get canonicalized. 2743test -n "$target_alias" && 2744 test "$program_prefix$program_suffix$program_transform_name" = \ 2745 NONENONEs,x,x, && 2746 program_prefix=${target_alias}- 2747 2748# Extract the first word of "makeinfo", so it can be a program name with args. 2749set dummy makeinfo; ac_word=$2 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2751$as_echo_n "checking for $ac_word... " >&6; } 2752if ${ac_cv_prog_MAKEINFO+:} false; then : 2753 $as_echo_n "(cached) " >&6 2754else 2755 if test -n "$MAKEINFO"; then 2756 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 2757else 2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759for as_dir in $PATH 2760do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2765 ac_cv_prog_MAKEINFO="makeinfo" 2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769done 2770 done 2771IFS=$as_save_IFS 2772 2773fi 2774fi 2775MAKEINFO=$ac_cv_prog_MAKEINFO 2776if test -n "$MAKEINFO"; then 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 2778$as_echo "$MAKEINFO" >&6; } 2779else 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2781$as_echo "no" >&6; } 2782fi 2783 2784 2785 2786 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking automake version" >&5 2788$as_echo_n "checking automake version... " >&6; } 2789 2790 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.15" >&5 2792$as_echo "1.15" >&6; } 2793 2794 2795am__api_version='1.15' 2796 2797# Find a good install program. We prefer a C program (faster), 2798# so one script is as good as another. But avoid the broken or 2799# incompatible versions: 2800# SysV /etc/install, /usr/sbin/install 2801# SunOS /usr/etc/install 2802# IRIX /sbin/install 2803# AIX /bin/install 2804# AmigaOS /C/install, which installs bootblocks on floppy discs 2805# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2806# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2807# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2808# OS/2's system install, which has a completely different semantic 2809# ./install, which can be erroneously created by make from ./install.sh. 2810# Reject install programs that cannot install multiple files. 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2812$as_echo_n "checking for a BSD-compatible install... " >&6; } 2813if test -z "$INSTALL"; then 2814if ${ac_cv_path_install+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 # Account for people who put trailing slashes in PATH elements. 2823case $as_dir/ in #(( 2824 ./ | .// | /[cC]/* | \ 2825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2826 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2827 /usr/ucb/* ) ;; 2828 *) 2829 # OSF1 and SCO ODT 3.0 have their own names for install. 2830 # Don't use installbsd from OSF since it installs stuff as root 2831 # by default. 2832 for ac_prog in ginstall scoinst install; do 2833 for ac_exec_ext in '' $ac_executable_extensions; do 2834 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2835 if test $ac_prog = install && 2836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2837 # AIX install. It has an incompatible calling convention. 2838 : 2839 elif test $ac_prog = install && 2840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2841 # program-specific install script used by HP pwplus--don't use. 2842 : 2843 else 2844 rm -rf conftest.one conftest.two conftest.dir 2845 echo one > conftest.one 2846 echo two > conftest.two 2847 mkdir conftest.dir 2848 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2849 test -s conftest.one && test -s conftest.two && 2850 test -s conftest.dir/conftest.one && 2851 test -s conftest.dir/conftest.two 2852 then 2853 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2854 break 3 2855 fi 2856 fi 2857 fi 2858 done 2859 done 2860 ;; 2861esac 2862 2863 done 2864IFS=$as_save_IFS 2865 2866rm -rf conftest.one conftest.two conftest.dir 2867 2868fi 2869 if test "${ac_cv_path_install+set}" = set; then 2870 INSTALL=$ac_cv_path_install 2871 else 2872 # As a last resort, use the slow shell script. Don't cache a 2873 # value for INSTALL within a source directory, because that will 2874 # break other packages using the cache if that directory is 2875 # removed, or if the value is a relative name. 2876 INSTALL=$ac_install_sh 2877 fi 2878fi 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2880$as_echo "$INSTALL" >&6; } 2881 2882# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2883# It thinks the first close brace ends the variable substitution. 2884test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2885 2886test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2887 2888test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2889 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2891$as_echo_n "checking whether build environment is sane... " >&6; } 2892# Reject unsafe characters in $srcdir or the absolute working directory 2893# name. Accept space and tab only in the latter. 2894am_lf=' 2895' 2896case `pwd` in 2897 *[\\\"\#\$\&\'\`$am_lf]*) 2898 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2899esac 2900case $srcdir in 2901 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2902 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2903esac 2904 2905# Do 'set' in a subshell so we don't clobber the current shell's 2906# arguments. Must try -L first in case configure is actually a 2907# symlink; some systems play weird games with the mod time of symlinks 2908# (eg FreeBSD returns the mod time of the symlink's containing 2909# directory). 2910if ( 2911 am_has_slept=no 2912 for am_try in 1 2; do 2913 echo "timestamp, slept: $am_has_slept" > conftest.file 2914 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2915 if test "$*" = "X"; then 2916 # -L didn't work. 2917 set X `ls -t "$srcdir/configure" conftest.file` 2918 fi 2919 if test "$*" != "X $srcdir/configure conftest.file" \ 2920 && test "$*" != "X conftest.file $srcdir/configure"; then 2921 2922 # If neither matched, then we have a broken ls. This can happen 2923 # if, for instance, CONFIG_SHELL is bash and it inherits a 2924 # broken ls alias from the environment. This has actually 2925 # happened. Such a system could not be considered "sane". 2926 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2927 alias in your environment" "$LINENO" 5 2928 fi 2929 if test "$2" = conftest.file || test $am_try -eq 2; then 2930 break 2931 fi 2932 # Just in case. 2933 sleep 1 2934 am_has_slept=yes 2935 done 2936 test "$2" = conftest.file 2937 ) 2938then 2939 # Ok. 2940 : 2941else 2942 as_fn_error $? "newly created file is older than distributed files! 2943Check your system clock" "$LINENO" 5 2944fi 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2946$as_echo "yes" >&6; } 2947# If we didn't sleep, we still need to ensure time stamps of config.status and 2948# generated files are strictly newer. 2949am_sleep_pid= 2950if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2951 ( sleep 1 ) & 2952 am_sleep_pid=$! 2953fi 2954 2955rm -f conftest.file 2956 2957test "$program_prefix" != NONE && 2958 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2959# Use a double $ so make ignores it. 2960test "$program_suffix" != NONE && 2961 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2962# Double any \ or $. 2963# By default was `s,x,x', remove it if useless. 2964ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2965program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2966 2967# Expand $ac_aux_dir to an absolute path. 2968am_aux_dir=`cd "$ac_aux_dir" && pwd` 2969 2970if test x"${MISSING+set}" != xset; then 2971 case $am_aux_dir in 2972 *\ * | *\ *) 2973 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2974 *) 2975 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2976 esac 2977fi 2978# Use eval to expand $SHELL 2979if eval "$MISSING --is-lightweight"; then 2980 am_missing_run="$MISSING " 2981else 2982 am_missing_run= 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2984$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2985fi 2986 2987if test x"${install_sh+set}" != xset; then 2988 case $am_aux_dir in 2989 *\ * | *\ *) 2990 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2991 *) 2992 install_sh="\${SHELL} $am_aux_dir/install-sh" 2993 esac 2994fi 2995 2996# Installed binaries are usually stripped using 'strip' when the user 2997# run "make install-strip". However 'strip' might not be the right 2998# tool to use in cross-compilation environments, therefore Automake 2999# will honor the 'STRIP' environment variable to overrule this program. 3000if test "$cross_compiling" != no; then 3001 if test -n "$ac_tool_prefix"; then 3002 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3003set dummy ${ac_tool_prefix}strip; ac_word=$2 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3005$as_echo_n "checking for $ac_word... " >&6; } 3006if ${ac_cv_prog_STRIP+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if test -n "$STRIP"; then 3010 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3011else 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3019 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023done 3024 done 3025IFS=$as_save_IFS 3026 3027fi 3028fi 3029STRIP=$ac_cv_prog_STRIP 3030if test -n "$STRIP"; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3032$as_echo "$STRIP" >&6; } 3033else 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3035$as_echo "no" >&6; } 3036fi 3037 3038 3039fi 3040if test -z "$ac_cv_prog_STRIP"; then 3041 ac_ct_STRIP=$STRIP 3042 # Extract the first word of "strip", so it can be a program name with args. 3043set dummy strip; ac_word=$2 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3045$as_echo_n "checking for $ac_word... " >&6; } 3046if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 if test -n "$ac_ct_STRIP"; then 3050 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3051else 3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3053for as_dir in $PATH 3054do 3055 IFS=$as_save_IFS 3056 test -z "$as_dir" && as_dir=. 3057 for ac_exec_ext in '' $ac_executable_extensions; do 3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3059 ac_cv_prog_ac_ct_STRIP="strip" 3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3061 break 2 3062 fi 3063done 3064 done 3065IFS=$as_save_IFS 3066 3067fi 3068fi 3069ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3070if test -n "$ac_ct_STRIP"; then 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3072$as_echo "$ac_ct_STRIP" >&6; } 3073else 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3075$as_echo "no" >&6; } 3076fi 3077 3078 if test "x$ac_ct_STRIP" = x; then 3079 STRIP=":" 3080 else 3081 case $cross_compiling:$ac_tool_warned in 3082yes:) 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3085ac_tool_warned=yes ;; 3086esac 3087 STRIP=$ac_ct_STRIP 3088 fi 3089else 3090 STRIP="$ac_cv_prog_STRIP" 3091fi 3092 3093fi 3094INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3095 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3097$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3098if test -z "$MKDIR_P"; then 3099 if ${ac_cv_path_mkdir+:} false; then : 3100 $as_echo_n "(cached) " >&6 3101else 3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3103for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3104do 3105 IFS=$as_save_IFS 3106 test -z "$as_dir" && as_dir=. 3107 for ac_prog in mkdir gmkdir; do 3108 for ac_exec_ext in '' $ac_executable_extensions; do 3109 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3110 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3111 'mkdir (GNU coreutils) '* | \ 3112 'mkdir (coreutils) '* | \ 3113 'mkdir (fileutils) '4.1*) 3114 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3115 break 3;; 3116 esac 3117 done 3118 done 3119 done 3120IFS=$as_save_IFS 3121 3122fi 3123 3124 test -d ./--version && rmdir ./--version 3125 if test "${ac_cv_path_mkdir+set}" = set; then 3126 MKDIR_P="$ac_cv_path_mkdir -p" 3127 else 3128 # As a last resort, use the slow shell script. Don't cache a 3129 # value for MKDIR_P within a source directory, because that will 3130 # break other packages using the cache if that directory is 3131 # removed, or if the value is a relative name. 3132 MKDIR_P="$ac_install_sh -d" 3133 fi 3134fi 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3136$as_echo "$MKDIR_P" >&6; } 3137 3138 3139for ac_prog in gawk mawk nawk awk 3140do 3141 # Extract the first word of "$ac_prog", so it can be a program name with args. 3142set dummy $ac_prog; ac_word=$2 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144$as_echo_n "checking for $ac_word... " >&6; } 3145if ${ac_cv_prog_AWK+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 if test -n "$AWK"; then 3149 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3150else 3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152for as_dir in $PATH 3153do 3154 IFS=$as_save_IFS 3155 test -z "$as_dir" && as_dir=. 3156 for ac_exec_ext in '' $ac_executable_extensions; do 3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3158 ac_cv_prog_AWK="$ac_prog" 3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3160 break 2 3161 fi 3162done 3163 done 3164IFS=$as_save_IFS 3165 3166fi 3167fi 3168AWK=$ac_cv_prog_AWK 3169if test -n "$AWK"; then 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3171$as_echo "$AWK" >&6; } 3172else 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3174$as_echo "no" >&6; } 3175fi 3176 3177 3178 test -n "$AWK" && break 3179done 3180 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3182$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3183set x ${MAKE-make} 3184ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3185if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 cat >conftest.make <<\_ACEOF 3189SHELL = /bin/sh 3190all: 3191 @echo '@@@%%%=$(MAKE)=@@@%%%' 3192_ACEOF 3193# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3194case `${MAKE-make} -f conftest.make 2>/dev/null` in 3195 *@@@%%%=?*=@@@%%%*) 3196 eval ac_cv_prog_make_${ac_make}_set=yes;; 3197 *) 3198 eval ac_cv_prog_make_${ac_make}_set=no;; 3199esac 3200rm -f conftest.make 3201fi 3202if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3204$as_echo "yes" >&6; } 3205 SET_MAKE= 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209 SET_MAKE="MAKE=${MAKE-make}" 3210fi 3211 3212rm -rf .tst 2>/dev/null 3213mkdir .tst 2>/dev/null 3214if test -d .tst; then 3215 am__leading_dot=. 3216else 3217 am__leading_dot=_ 3218fi 3219rmdir .tst 2>/dev/null 3220 3221# Check whether --enable-silent-rules was given. 3222if test "${enable_silent_rules+set}" = set; then : 3223 enableval=$enable_silent_rules; 3224fi 3225 3226case $enable_silent_rules in # ((( 3227 yes) AM_DEFAULT_VERBOSITY=0;; 3228 no) AM_DEFAULT_VERBOSITY=1;; 3229 *) AM_DEFAULT_VERBOSITY=1;; 3230esac 3231am_make=${MAKE-make} 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3233$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3234if ${am_cv_make_support_nested_variables+:} false; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 if $as_echo 'TRUE=$(BAR$(V)) 3238BAR0=false 3239BAR1=true 3240V=1 3241am__doit: 3242 @$(TRUE) 3243.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3244 am_cv_make_support_nested_variables=yes 3245else 3246 am_cv_make_support_nested_variables=no 3247fi 3248fi 3249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3250$as_echo "$am_cv_make_support_nested_variables" >&6; } 3251if test $am_cv_make_support_nested_variables = yes; then 3252 AM_V='$(V)' 3253 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3254else 3255 AM_V=$AM_DEFAULT_VERBOSITY 3256 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3257fi 3258AM_BACKSLASH='\' 3259 3260if test "`cd $srcdir && pwd`" != "`pwd`"; then 3261 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3262 # is not polluted with repeated "-I." 3263 am__isrc=' -I$(srcdir)' 3264 # test to see if srcdir already configured 3265 if test -f $srcdir/config.status; then 3266 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3267 fi 3268fi 3269 3270# test whether we have cygpath 3271if test -z "$CYGPATH_W"; then 3272 if (cygpath --version) >/dev/null 2>/dev/null; then 3273 CYGPATH_W='cygpath -w' 3274 else 3275 CYGPATH_W=echo 3276 fi 3277fi 3278 3279 3280# Define the identity of the package. 3281 PACKAGE='libntech' 3282 VERSION='0.1.0' 3283 3284 3285cat >>confdefs.h <<_ACEOF 3286#define PACKAGE "$PACKAGE" 3287_ACEOF 3288 3289 3290cat >>confdefs.h <<_ACEOF 3291#define VERSION "$VERSION" 3292_ACEOF 3293 3294# Some tools Automake needs. 3295 3296ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3297 3298 3299AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3300 3301 3302AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3303 3304 3305AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3306 3307 3308MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3309 3310# For better backward compatibility. To be removed once Automake 1.9.x 3311# dies out for good. For more background, see: 3312# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3313# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3314mkdir_p='$(MKDIR_P)' 3315 3316# We need awk for the "check" target (and possibly the TAP driver). The 3317# system "awk" is bad on some platforms. 3318# Always define AMTAR for backward compatibility. Yes, it's still used 3319# in the wild :-( We should find a proper way to deprecate it ... 3320AMTAR='$${TAR-tar}' 3321 3322 3323# We'll loop over all known methods to create a tar archive until one works. 3324_am_tools='gnutar plaintar pax cpio none' 3325 3326# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3327 # There is notably a 21 bits limit for the UID and the GID. In fact, 3328 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3329 # and bug#13588). 3330 am_max_uid=2097151 # 2^21 - 1 3331 am_max_gid=$am_max_uid 3332 # The $UID and $GID variables are not portable, so we need to resort 3333 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3334 # below are definitely unexpected, so allow the users to see them 3335 # (that is, avoid stderr redirection). 3336 am_uid=`id -u || echo unknown` 3337 am_gid=`id -g || echo unknown` 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3339$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3340 if test $am_uid -le $am_max_uid; then 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3342$as_echo "yes" >&6; } 3343 else 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3345$as_echo "no" >&6; } 3346 _am_tools=none 3347 fi 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3349$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3350 if test $am_gid -le $am_max_gid; then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3352$as_echo "yes" >&6; } 3353 else 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355$as_echo "no" >&6; } 3356 _am_tools=none 3357 fi 3358 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3360$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3361 3362 # Go ahead even if we have the value already cached. We do so because we 3363 # need to set the values for the 'am__tar' and 'am__untar' variables. 3364 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3365 3366 for _am_tool in $_am_tools; do 3367 case $_am_tool in 3368 gnutar) 3369 for _am_tar in tar gnutar gtar; do 3370 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3371 ($_am_tar --version) >&5 2>&5 3372 ac_status=$? 3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3374 (exit $ac_status); } && break 3375 done 3376 3377 # Work around CFEngine redmine #6925 by using --hard-dereference. 3378 { echo "$as_me:$LINENO: $_am_tar --hard-dereference 2>&1 | grep 'unrecognized option'" >&5 3379 ($_am_tar --hard-dereference 2>&1 | grep 'unrecognized option') >&5 2>&5 3380 ac_status=$? 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); } 3383 # Check if --hard-dereference is supported by this version of GNU Tar 3384 if test "$ac_status" -eq 0; then 3385 _am_gnutar_hard_dereference=false 3386 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3387 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3388 else 3389 _am_gnutar_hard_dereference=true 3390 am__tar="$_am_tar --format=ustar --hard-dereference -chf - "'"$$tardir"' 3391 am__tar_="$_am_tar --format=ustar --hard-dereference -chf - "'"$tardir"' 3392 fi 3393 3394 am__untar="$_am_tar -xf -" 3395 ;; 3396 plaintar) 3397 # Must skip GNU tar: if it does not support --format= it doesn't create 3398 # ustar tarball either. 3399 (tar --version) >/dev/null 2>&1 && continue 3400 am__tar='tar chf - "$$tardir"' 3401 am__tar_='tar chf - "$tardir"' 3402 am__untar='tar xf -' 3403 ;; 3404 pax) 3405 am__tar='pax -L -x ustar -w "$$tardir"' 3406 am__tar_='pax -L -x ustar -w "$tardir"' 3407 am__untar='pax -r' 3408 ;; 3409 cpio) 3410 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3411 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3412 am__untar='cpio -i -H ustar -d' 3413 ;; 3414 none) 3415 am__tar=false 3416 am__tar_=false 3417 am__untar=false 3418 ;; 3419 esac 3420 3421 # If the value was cached, stop now. We just wanted to have am__tar 3422 # and am__untar set. 3423 test -n "${am_cv_prog_tar_ustar}" && break 3424 3425 # tar/untar a dummy directory, and stop if the command works. 3426 rm -rf conftest.dir 3427 mkdir conftest.dir 3428 echo GrepMe > conftest.dir/file 3429 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3430 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3431 ac_status=$? 3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3433 (exit $ac_status); } 3434 rm -rf conftest.dir 3435 if test -s conftest.tar; then 3436 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3437 ($am__untar <conftest.tar) >&5 2>&5 3438 ac_status=$? 3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3440 (exit $ac_status); } 3441 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3442 (cat conftest.dir/file) >&5 2>&5 3443 ac_status=$? 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); } 3446 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3447 fi 3448 done 3449 rm -rf conftest.dir 3450 3451 if ${am_cv_prog_tar_ustar+:} false; then : 3452 $as_echo_n "(cached) " >&6 3453else 3454 am_cv_prog_tar_ustar=$_am_tool 3455fi 3456 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3458$as_echo "$am_cv_prog_tar_ustar" >&6; } 3459 3460 if test $_am_tool = gnutar; then 3461 # We've checked already, so we're just printing here 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNU tar supports --hard-dereference" >&5 3463$as_echo_n "checking if GNU tar supports --hard-dereference... " >&6; } 3464 if test x$_am_gnutar_hard_dereference = xtrue; then 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3466$as_echo "yes" >&6; } 3467 else 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3469$as_echo "no" >&6; } 3470 fi 3471 fi 3472 3473 3474 3475 3476 3477 3478# POSIX will say in a future version that running "rm -f" with no argument 3479# is OK; and we want to be able to make that assumption in our Makefile 3480# recipes. So use an aggressive probe to check that the usage we want is 3481# actually supported "in the wild" to an acceptable degree. 3482# See automake bug#10828. 3483# To make any issue more visible, cause the running configure to be aborted 3484# by default if the 'rm' program in use doesn't match our expectations; the 3485# user can still override this though. 3486if rm -f && rm -fr && rm -rf; then : OK; else 3487 cat >&2 <<'END' 3488Oops! 3489 3490Your 'rm' program seems unable to run without file operands specified 3491on the command line, even when the '-f' option is present. This is contrary 3492to the behaviour of most rm programs out there, and not conforming with 3493the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3494 3495Please tell bug-automake@gnu.org about your system, including the value 3496of your $PATH and any error possibly output before this message. This 3497can help us improve future automake versions. 3498 3499END 3500 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3501 echo 'Configuration will proceed anyway, since you have set the' >&2 3502 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3503 echo >&2 3504 else 3505 cat >&2 <<'END' 3506Aborting the configuration process, to ensure you take notice of the issue. 3507 3508You can download and install GNU coreutils to get an 'rm' implementation 3509that behaves properly: <http://www.gnu.org/software/coreutils/>. 3510 3511If you want to complete the configuration process using your problematic 3512'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3513to "yes", and re-run configure. 3514 3515END 3516 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3517 fi 3518fi 3519 3520 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3522$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3523 # Check whether --enable-maintainer-mode was given. 3524if test "${enable_maintainer_mode+set}" = set; then : 3525 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3526else 3527 USE_MAINTAINER_MODE=yes 3528fi 3529 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3531$as_echo "$USE_MAINTAINER_MODE" >&6; } 3532 if test $USE_MAINTAINER_MODE = yes; then 3533 MAINTAINER_MODE_TRUE= 3534 MAINTAINER_MODE_FALSE='#' 3535else 3536 MAINTAINER_MODE_TRUE='#' 3537 MAINTAINER_MODE_FALSE= 3538fi 3539 3540 MAINT=$MAINTAINER_MODE_TRUE 3541 3542 3543 3544 3545 3546 3547$as_echo "#define BUILD_YEAR 2020" >>confdefs.h 3548 3549 3550 3551cat >>confdefs.h <<_ACEOF 3552#define ABS_TOP_SRCDIR "`cd -- "$srcdir"; pwd`" 3553_ACEOF 3554 3555 3556# Check whether --enable-silent-rules was given. 3557if test "${enable_silent_rules+set}" = set; then : 3558 enableval=$enable_silent_rules; 3559fi 3560 3561case $enable_silent_rules in # ((( 3562 yes) AM_DEFAULT_VERBOSITY=0;; 3563 no) AM_DEFAULT_VERBOSITY=1;; 3564 *) AM_DEFAULT_VERBOSITY=0;; 3565esac 3566am_make=${MAKE-make} 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3568$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3569if ${am_cv_make_support_nested_variables+:} false; then : 3570 $as_echo_n "(cached) " >&6 3571else 3572 if $as_echo 'TRUE=$(BAR$(V)) 3573BAR0=false 3574BAR1=true 3575V=1 3576am__doit: 3577 @$(TRUE) 3578.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3579 am_cv_make_support_nested_variables=yes 3580else 3581 am_cv_make_support_nested_variables=no 3582fi 3583fi 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3585$as_echo "$am_cv_make_support_nested_variables" >&6; } 3586if test $am_cv_make_support_nested_variables = yes; then 3587 AM_V='$(V)' 3588 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3589else 3590 AM_V=$AM_DEFAULT_VERBOSITY 3591 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3592fi 3593AM_BACKSLASH='\' 3594 3595 3596ac_config_headers="$ac_config_headers config.h" 3597 3598 3599 3600 3601 3602 3603 3604 3605ENV_CFLAGS="$CFLAGS" 3606 3607 3608ac_ext=c 3609ac_cpp='$CPP $CPPFLAGS' 3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3612ac_compiler_gnu=$ac_cv_c_compiler_gnu 3613if test -n "$ac_tool_prefix"; then 3614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3615set dummy ${ac_tool_prefix}gcc; ac_word=$2 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3617$as_echo_n "checking for $ac_word... " >&6; } 3618if ${ac_cv_prog_CC+:} false; then : 3619 $as_echo_n "(cached) " >&6 3620else 3621 if test -n "$CC"; then 3622 ac_cv_prog_CC="$CC" # Let the user override the test. 3623else 3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3625for as_dir in $PATH 3626do 3627 IFS=$as_save_IFS 3628 test -z "$as_dir" && as_dir=. 3629 for ac_exec_ext in '' $ac_executable_extensions; do 3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3631 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3633 break 2 3634 fi 3635done 3636 done 3637IFS=$as_save_IFS 3638 3639fi 3640fi 3641CC=$ac_cv_prog_CC 3642if test -n "$CC"; then 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3644$as_echo "$CC" >&6; } 3645else 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647$as_echo "no" >&6; } 3648fi 3649 3650 3651fi 3652if test -z "$ac_cv_prog_CC"; then 3653 ac_ct_CC=$CC 3654 # Extract the first word of "gcc", so it can be a program name with args. 3655set dummy gcc; ac_word=$2 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3657$as_echo_n "checking for $ac_word... " >&6; } 3658if ${ac_cv_prog_ac_ct_CC+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 if test -n "$ac_ct_CC"; then 3662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3663else 3664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3665for as_dir in $PATH 3666do 3667 IFS=$as_save_IFS 3668 test -z "$as_dir" && as_dir=. 3669 for ac_exec_ext in '' $ac_executable_extensions; do 3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3671 ac_cv_prog_ac_ct_CC="gcc" 3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3673 break 2 3674 fi 3675done 3676 done 3677IFS=$as_save_IFS 3678 3679fi 3680fi 3681ac_ct_CC=$ac_cv_prog_ac_ct_CC 3682if test -n "$ac_ct_CC"; then 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3684$as_echo "$ac_ct_CC" >&6; } 3685else 3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3687$as_echo "no" >&6; } 3688fi 3689 3690 if test "x$ac_ct_CC" = x; then 3691 CC="" 3692 else 3693 case $cross_compiling:$ac_tool_warned in 3694yes:) 3695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3697ac_tool_warned=yes ;; 3698esac 3699 CC=$ac_ct_CC 3700 fi 3701else 3702 CC="$ac_cv_prog_CC" 3703fi 3704 3705if test -z "$CC"; then 3706 if test -n "$ac_tool_prefix"; then 3707 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3708set dummy ${ac_tool_prefix}cc; ac_word=$2 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3710$as_echo_n "checking for $ac_word... " >&6; } 3711if ${ac_cv_prog_CC+:} false; then : 3712 $as_echo_n "(cached) " >&6 3713else 3714 if test -n "$CC"; then 3715 ac_cv_prog_CC="$CC" # Let the user override the test. 3716else 3717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718for as_dir in $PATH 3719do 3720 IFS=$as_save_IFS 3721 test -z "$as_dir" && as_dir=. 3722 for ac_exec_ext in '' $ac_executable_extensions; do 3723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3724 ac_cv_prog_CC="${ac_tool_prefix}cc" 3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3726 break 2 3727 fi 3728done 3729 done 3730IFS=$as_save_IFS 3731 3732fi 3733fi 3734CC=$ac_cv_prog_CC 3735if test -n "$CC"; then 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3737$as_echo "$CC" >&6; } 3738else 3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3740$as_echo "no" >&6; } 3741fi 3742 3743 3744 fi 3745fi 3746if test -z "$CC"; then 3747 # Extract the first word of "cc", so it can be a program name with args. 3748set dummy cc; ac_word=$2 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3750$as_echo_n "checking for $ac_word... " >&6; } 3751if ${ac_cv_prog_CC+:} false; then : 3752 $as_echo_n "(cached) " >&6 3753else 3754 if test -n "$CC"; then 3755 ac_cv_prog_CC="$CC" # Let the user override the test. 3756else 3757 ac_prog_rejected=no 3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3759for as_dir in $PATH 3760do 3761 IFS=$as_save_IFS 3762 test -z "$as_dir" && as_dir=. 3763 for ac_exec_ext in '' $ac_executable_extensions; do 3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3765 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3766 ac_prog_rejected=yes 3767 continue 3768 fi 3769 ac_cv_prog_CC="cc" 3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3771 break 2 3772 fi 3773done 3774 done 3775IFS=$as_save_IFS 3776 3777if test $ac_prog_rejected = yes; then 3778 # We found a bogon in the path, so make sure we never use it. 3779 set dummy $ac_cv_prog_CC 3780 shift 3781 if test $# != 0; then 3782 # We chose a different compiler from the bogus one. 3783 # However, it has the same basename, so the bogon will be chosen 3784 # first if we set CC to just the basename; use the full file name. 3785 shift 3786 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3787 fi 3788fi 3789fi 3790fi 3791CC=$ac_cv_prog_CC 3792if test -n "$CC"; then 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3794$as_echo "$CC" >&6; } 3795else 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797$as_echo "no" >&6; } 3798fi 3799 3800 3801fi 3802if test -z "$CC"; then 3803 if test -n "$ac_tool_prefix"; then 3804 for ac_prog in cl.exe 3805 do 3806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3807set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3809$as_echo_n "checking for $ac_word... " >&6; } 3810if ${ac_cv_prog_CC+:} false; then : 3811 $as_echo_n "(cached) " >&6 3812else 3813 if test -n "$CC"; then 3814 ac_cv_prog_CC="$CC" # Let the user override the test. 3815else 3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3817for as_dir in $PATH 3818do 3819 IFS=$as_save_IFS 3820 test -z "$as_dir" && as_dir=. 3821 for ac_exec_ext in '' $ac_executable_extensions; do 3822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3823 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3825 break 2 3826 fi 3827done 3828 done 3829IFS=$as_save_IFS 3830 3831fi 3832fi 3833CC=$ac_cv_prog_CC 3834if test -n "$CC"; then 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3836$as_echo "$CC" >&6; } 3837else 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3839$as_echo "no" >&6; } 3840fi 3841 3842 3843 test -n "$CC" && break 3844 done 3845fi 3846if test -z "$CC"; then 3847 ac_ct_CC=$CC 3848 for ac_prog in cl.exe 3849do 3850 # Extract the first word of "$ac_prog", so it can be a program name with args. 3851set dummy $ac_prog; ac_word=$2 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3853$as_echo_n "checking for $ac_word... " >&6; } 3854if ${ac_cv_prog_ac_ct_CC+:} false; then : 3855 $as_echo_n "(cached) " >&6 3856else 3857 if test -n "$ac_ct_CC"; then 3858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3859else 3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3861for as_dir in $PATH 3862do 3863 IFS=$as_save_IFS 3864 test -z "$as_dir" && as_dir=. 3865 for ac_exec_ext in '' $ac_executable_extensions; do 3866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3867 ac_cv_prog_ac_ct_CC="$ac_prog" 3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3869 break 2 3870 fi 3871done 3872 done 3873IFS=$as_save_IFS 3874 3875fi 3876fi 3877ac_ct_CC=$ac_cv_prog_ac_ct_CC 3878if test -n "$ac_ct_CC"; then 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3880$as_echo "$ac_ct_CC" >&6; } 3881else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883$as_echo "no" >&6; } 3884fi 3885 3886 3887 test -n "$ac_ct_CC" && break 3888done 3889 3890 if test "x$ac_ct_CC" = x; then 3891 CC="" 3892 else 3893 case $cross_compiling:$ac_tool_warned in 3894yes:) 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3897ac_tool_warned=yes ;; 3898esac 3899 CC=$ac_ct_CC 3900 fi 3901fi 3902 3903fi 3904 3905 3906test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3908as_fn_error $? "no acceptable C compiler found in \$PATH 3909See \`config.log' for more details" "$LINENO" 5; } 3910 3911# Provide some information about the compiler. 3912$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3913set X $ac_compile 3914ac_compiler=$2 3915for ac_option in --version -v -V -qversion; do 3916 { { ac_try="$ac_compiler $ac_option >&5" 3917case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920esac 3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3922$as_echo "$ac_try_echo"; } >&5 3923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3924 ac_status=$? 3925 if test -s conftest.err; then 3926 sed '10a\ 3927... rest of stderr output deleted ... 3928 10q' conftest.err >conftest.er1 3929 cat conftest.er1 >&5 3930 fi 3931 rm -f conftest.er1 conftest.err 3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3933 test $ac_status = 0; } 3934done 3935 3936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938 3939int 3940main () 3941{ 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947ac_clean_files_save=$ac_clean_files 3948ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3949# Try to create an executable without -o first, disregard a.out. 3950# It will help us diagnose broken compilers, and finding out an intuition 3951# of exeext. 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3953$as_echo_n "checking whether the C compiler works... " >&6; } 3954ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3955 3956# The possible output files: 3957ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3958 3959ac_rmfiles= 3960for ac_file in $ac_files 3961do 3962 case $ac_file in 3963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3964 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3965 esac 3966done 3967rm -f $ac_rmfiles 3968 3969if { { ac_try="$ac_link_default" 3970case "(($ac_try" in 3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3972 *) ac_try_echo=$ac_try;; 3973esac 3974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3975$as_echo "$ac_try_echo"; } >&5 3976 (eval "$ac_link_default") 2>&5 3977 ac_status=$? 3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3979 test $ac_status = 0; }; then : 3980 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3981# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3982# in a Makefile. We should not override ac_cv_exeext if it was cached, 3983# so that the user can short-circuit this test for compilers unknown to 3984# Autoconf. 3985for ac_file in $ac_files '' 3986do 3987 test -f "$ac_file" || continue 3988 case $ac_file in 3989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3990 ;; 3991 [ab].out ) 3992 # We found the default executable, but exeext='' is most 3993 # certainly right. 3994 break;; 3995 *.* ) 3996 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3997 then :; else 3998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3999 fi 4000 # We set ac_cv_exeext here because the later test for it is not 4001 # safe: cross compilers may not add the suffix if given an `-o' 4002 # argument, so we may need to know it at that point already. 4003 # Even if this section looks crufty: it has the advantage of 4004 # actually working. 4005 break;; 4006 * ) 4007 break;; 4008 esac 4009done 4010test "$ac_cv_exeext" = no && ac_cv_exeext= 4011 4012else 4013 ac_file='' 4014fi 4015if test -z "$ac_file"; then : 4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4017$as_echo "no" >&6; } 4018$as_echo "$as_me: failed program was:" >&5 4019sed 's/^/| /' conftest.$ac_ext >&5 4020 4021{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4023as_fn_error 77 "C compiler cannot create executables 4024See \`config.log' for more details" "$LINENO" 5; } 4025else 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4027$as_echo "yes" >&6; } 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4030$as_echo_n "checking for C compiler default output file name... " >&6; } 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4032$as_echo "$ac_file" >&6; } 4033ac_exeext=$ac_cv_exeext 4034 4035rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4036ac_clean_files=$ac_clean_files_save 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4038$as_echo_n "checking for suffix of executables... " >&6; } 4039if { { ac_try="$ac_link" 4040case "(($ac_try" in 4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4042 *) ac_try_echo=$ac_try;; 4043esac 4044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4045$as_echo "$ac_try_echo"; } >&5 4046 (eval "$ac_link") 2>&5 4047 ac_status=$? 4048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4049 test $ac_status = 0; }; then : 4050 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4051# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4052# work properly (i.e., refer to `conftest.exe'), while it won't with 4053# `rm'. 4054for ac_file in conftest.exe conftest conftest.*; do 4055 test -f "$ac_file" || continue 4056 case $ac_file in 4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4059 break;; 4060 * ) break;; 4061 esac 4062done 4063else 4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4066as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4067See \`config.log' for more details" "$LINENO" 5; } 4068fi 4069rm -f conftest conftest$ac_cv_exeext 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4071$as_echo "$ac_cv_exeext" >&6; } 4072 4073rm -f conftest.$ac_ext 4074EXEEXT=$ac_cv_exeext 4075ac_exeext=$EXEEXT 4076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077/* end confdefs.h. */ 4078#include <stdio.h> 4079int 4080main () 4081{ 4082FILE *f = fopen ("conftest.out", "w"); 4083 return ferror (f) || fclose (f) != 0; 4084 4085 ; 4086 return 0; 4087} 4088_ACEOF 4089ac_clean_files="$ac_clean_files conftest.out" 4090# Check that the compiler produces executables we can run. If not, either 4091# the compiler is broken, or we cross compile. 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4093$as_echo_n "checking whether we are cross compiling... " >&6; } 4094if test "$cross_compiling" != yes; then 4095 { { ac_try="$ac_link" 4096case "(($ac_try" in 4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4098 *) ac_try_echo=$ac_try;; 4099esac 4100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4101$as_echo "$ac_try_echo"; } >&5 4102 (eval "$ac_link") 2>&5 4103 ac_status=$? 4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4105 test $ac_status = 0; } 4106 if { ac_try='./conftest$ac_cv_exeext' 4107 { { case "(($ac_try" in 4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4109 *) ac_try_echo=$ac_try;; 4110esac 4111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4112$as_echo "$ac_try_echo"; } >&5 4113 (eval "$ac_try") 2>&5 4114 ac_status=$? 4115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4116 test $ac_status = 0; }; }; then 4117 cross_compiling=no 4118 else 4119 if test "$cross_compiling" = maybe; then 4120 cross_compiling=yes 4121 else 4122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4124as_fn_error $? "cannot run C compiled programs. 4125If you meant to cross compile, use \`--host'. 4126See \`config.log' for more details" "$LINENO" 5; } 4127 fi 4128 fi 4129fi 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4131$as_echo "$cross_compiling" >&6; } 4132 4133rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4134ac_clean_files=$ac_clean_files_save 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4136$as_echo_n "checking for suffix of object files... " >&6; } 4137if ${ac_cv_objext+:} false; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4141/* end confdefs.h. */ 4142 4143int 4144main () 4145{ 4146 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151rm -f conftest.o conftest.obj 4152if { { ac_try="$ac_compile" 4153case "(($ac_try" in 4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4155 *) ac_try_echo=$ac_try;; 4156esac 4157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4158$as_echo "$ac_try_echo"; } >&5 4159 (eval "$ac_compile") 2>&5 4160 ac_status=$? 4161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4162 test $ac_status = 0; }; then : 4163 for ac_file in conftest.o conftest.obj conftest.*; do 4164 test -f "$ac_file" || continue; 4165 case $ac_file in 4166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4167 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4168 break;; 4169 esac 4170done 4171else 4172 $as_echo "$as_me: failed program was:" >&5 4173sed 's/^/| /' conftest.$ac_ext >&5 4174 4175{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4177as_fn_error $? "cannot compute suffix of object files: cannot compile 4178See \`config.log' for more details" "$LINENO" 5; } 4179fi 4180rm -f conftest.$ac_cv_objext conftest.$ac_ext 4181fi 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4183$as_echo "$ac_cv_objext" >&6; } 4184OBJEXT=$ac_cv_objext 4185ac_objext=$OBJEXT 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4187$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4188if ${ac_cv_c_compiler_gnu+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192/* end confdefs.h. */ 4193 4194int 4195main () 4196{ 4197#ifndef __GNUC__ 4198 choke me 4199#endif 4200 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205if ac_fn_c_try_compile "$LINENO"; then : 4206 ac_compiler_gnu=yes 4207else 4208 ac_compiler_gnu=no 4209fi 4210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4211ac_cv_c_compiler_gnu=$ac_compiler_gnu 4212 4213fi 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4215$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4216if test $ac_compiler_gnu = yes; then 4217 GCC=yes 4218else 4219 GCC= 4220fi 4221ac_test_CFLAGS=${CFLAGS+set} 4222ac_save_CFLAGS=$CFLAGS 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4224$as_echo_n "checking whether $CC accepts -g... " >&6; } 4225if ${ac_cv_prog_cc_g+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227else 4228 ac_save_c_werror_flag=$ac_c_werror_flag 4229 ac_c_werror_flag=yes 4230 ac_cv_prog_cc_g=no 4231 CFLAGS="-g" 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234 4235int 4236main () 4237{ 4238 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243if ac_fn_c_try_compile "$LINENO"; then : 4244 ac_cv_prog_cc_g=yes 4245else 4246 CFLAGS="" 4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248/* end confdefs.h. */ 4249 4250int 4251main () 4252{ 4253 4254 ; 4255 return 0; 4256} 4257_ACEOF 4258if ac_fn_c_try_compile "$LINENO"; then : 4259 4260else 4261 ac_c_werror_flag=$ac_save_c_werror_flag 4262 CFLAGS="-g" 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265 4266int 4267main () 4268{ 4269 4270 ; 4271 return 0; 4272} 4273_ACEOF 4274if ac_fn_c_try_compile "$LINENO"; then : 4275 ac_cv_prog_cc_g=yes 4276fi 4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4278fi 4279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4280fi 4281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4282 ac_c_werror_flag=$ac_save_c_werror_flag 4283fi 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4285$as_echo "$ac_cv_prog_cc_g" >&6; } 4286if test "$ac_test_CFLAGS" = set; then 4287 CFLAGS=$ac_save_CFLAGS 4288elif test $ac_cv_prog_cc_g = yes; then 4289 if test "$GCC" = yes; then 4290 CFLAGS="-g -O2" 4291 else 4292 CFLAGS="-g" 4293 fi 4294else 4295 if test "$GCC" = yes; then 4296 CFLAGS="-O2" 4297 else 4298 CFLAGS= 4299 fi 4300fi 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4302$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4303if ${ac_cv_prog_cc_c89+:} false; then : 4304 $as_echo_n "(cached) " >&6 4305else 4306 ac_cv_prog_cc_c89=no 4307ac_save_CC=$CC 4308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310#include <stdarg.h> 4311#include <stdio.h> 4312struct stat; 4313/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4314struct buf { int x; }; 4315FILE * (*rcsopen) (struct buf *, struct stat *, int); 4316static char *e (p, i) 4317 char **p; 4318 int i; 4319{ 4320 return p[i]; 4321} 4322static char *f (char * (*g) (char **, int), char **p, ...) 4323{ 4324 char *s; 4325 va_list v; 4326 va_start (v,p); 4327 s = g (p, va_arg (v,int)); 4328 va_end (v); 4329 return s; 4330} 4331 4332/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4333 function prototypes and stuff, but not '\xHH' hex character constants. 4334 These don't provoke an error unfortunately, instead are silently treated 4335 as 'x'. The following induces an error, until -std is added to get 4336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4337 array size at least. It's necessary to write '\x00'==0 to get something 4338 that's true only with -std. */ 4339int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4340 4341/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4342 inside strings and character constants. */ 4343#define FOO(x) 'x' 4344int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4345 4346int test (int i, double x); 4347struct s1 {int (*f) (int a);}; 4348struct s2 {int (*f) (double a);}; 4349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4350int argc; 4351char **argv; 4352int 4353main () 4354{ 4355return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4356 ; 4357 return 0; 4358} 4359_ACEOF 4360for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4362do 4363 CC="$ac_save_CC $ac_arg" 4364 if ac_fn_c_try_compile "$LINENO"; then : 4365 ac_cv_prog_cc_c89=$ac_arg 4366fi 4367rm -f core conftest.err conftest.$ac_objext 4368 test "x$ac_cv_prog_cc_c89" != "xno" && break 4369done 4370rm -f conftest.$ac_ext 4371CC=$ac_save_CC 4372 4373fi 4374# AC_CACHE_VAL 4375case "x$ac_cv_prog_cc_c89" in 4376 x) 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4378$as_echo "none needed" >&6; } ;; 4379 xno) 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4381$as_echo "unsupported" >&6; } ;; 4382 *) 4383 CC="$CC $ac_cv_prog_cc_c89" 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4385$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4386esac 4387if test "x$ac_cv_prog_cc_c89" != xno; then : 4388 4389fi 4390 4391ac_ext=c 4392ac_cpp='$CPP $CPPFLAGS' 4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4395ac_compiler_gnu=$ac_cv_c_compiler_gnu 4396 4397ac_ext=c 4398ac_cpp='$CPP $CPPFLAGS' 4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4401ac_compiler_gnu=$ac_cv_c_compiler_gnu 4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4403$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4404if ${am_cv_prog_cc_c_o+:} false; then : 4405 $as_echo_n "(cached) " >&6 4406else 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409 4410int 4411main () 4412{ 4413 4414 ; 4415 return 0; 4416} 4417_ACEOF 4418 # Make sure it works both with $CC and with simple cc. 4419 # Following AC_PROG_CC_C_O, we do the test twice because some 4420 # compilers refuse to overwrite an existing .o file with -o, 4421 # though they will create one. 4422 am_cv_prog_cc_c_o=yes 4423 for am_i in 1 2; do 4424 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4425 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4426 ac_status=$? 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); } \ 4429 && test -f conftest2.$ac_objext; then 4430 : OK 4431 else 4432 am_cv_prog_cc_c_o=no 4433 break 4434 fi 4435 done 4436 rm -f core conftest* 4437 unset am_i 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4440$as_echo "$am_cv_prog_cc_c_o" >&6; } 4441if test "$am_cv_prog_cc_c_o" != yes; then 4442 # Losing compiler, so override with the script. 4443 # FIXME: It is wrong to rewrite CC. 4444 # But if we don't then we get into trouble of one sort or another. 4445 # A longer-term fix would be to have automake use am__CC in this case, 4446 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4447 CC="$am_aux_dir/compile $CC" 4448fi 4449ac_ext=c 4450ac_cpp='$CPP $CPPFLAGS' 4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4453ac_compiler_gnu=$ac_cv_c_compiler_gnu 4454 4455DEPDIR="${am__leading_dot}deps" 4456 4457ac_config_commands="$ac_config_commands depfiles" 4458 4459 4460am_make=${MAKE-make} 4461cat > confinc << 'END' 4462am__doit: 4463 @echo this is the am__doit target 4464.PHONY: am__doit 4465END 4466# If we don't find an include directive, just comment out the code. 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4468$as_echo_n "checking for style of include used by $am_make... " >&6; } 4469am__include="#" 4470am__quote= 4471_am_result=none 4472# First try GNU make style include. 4473echo "include confinc" > confmf 4474# Ignore all kinds of additional output from 'make'. 4475case `$am_make -s -f confmf 2> /dev/null` in #( 4476*the\ am__doit\ target*) 4477 am__include=include 4478 am__quote= 4479 _am_result=GNU 4480 ;; 4481esac 4482# Now try BSD make style include. 4483if test "$am__include" = "#"; then 4484 echo '.include "confinc"' > confmf 4485 case `$am_make -s -f confmf 2> /dev/null` in #( 4486 *the\ am__doit\ target*) 4487 am__include=.include 4488 am__quote="\"" 4489 _am_result=BSD 4490 ;; 4491 esac 4492fi 4493 4494 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4496$as_echo "$_am_result" >&6; } 4497rm -f confinc confmf 4498 4499# Check whether --enable-dependency-tracking was given. 4500if test "${enable_dependency_tracking+set}" = set; then : 4501 enableval=$enable_dependency_tracking; 4502fi 4503 4504if test "x$enable_dependency_tracking" != xno; then 4505 am_depcomp="$ac_aux_dir/depcomp" 4506 AMDEPBACKSLASH='\' 4507 am__nodep='_no' 4508fi 4509 if test "x$enable_dependency_tracking" != xno; then 4510 AMDEP_TRUE= 4511 AMDEP_FALSE='#' 4512else 4513 AMDEP_TRUE='#' 4514 AMDEP_FALSE= 4515fi 4516 4517 4518 4519depcc="$CC" am_compiler_list= 4520 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4522$as_echo_n "checking dependency style of $depcc... " >&6; } 4523if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4527 # We make a subdir and do the tests there. Otherwise we can end up 4528 # making bogus files that we don't know about and never remove. For 4529 # instance it was reported that on HP-UX the gcc test will end up 4530 # making a dummy file named 'D' -- because '-MD' means "put the output 4531 # in D". 4532 rm -rf conftest.dir 4533 mkdir conftest.dir 4534 # Copy depcomp to subdir because otherwise we won't find it if we're 4535 # using a relative directory. 4536 cp "$am_depcomp" conftest.dir 4537 cd conftest.dir 4538 # We will build objects and dependencies in a subdirectory because 4539 # it helps to detect inapplicable dependency modes. For instance 4540 # both Tru64's cc and ICC support -MD to output dependencies as a 4541 # side effect of compilation, but ICC will put the dependencies in 4542 # the current directory while Tru64 will put them in the object 4543 # directory. 4544 mkdir sub 4545 4546 am_cv_CC_dependencies_compiler_type=none 4547 if test "$am_compiler_list" = ""; then 4548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4549 fi 4550 am__universal=false 4551 case " $depcc " in #( 4552 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4553 esac 4554 4555 for depmode in $am_compiler_list; do 4556 # Setup a source with many dependencies, because some compilers 4557 # like to wrap large dependency lists on column 80 (with \), and 4558 # we should not choose a depcomp mode which is confused by this. 4559 # 4560 # We need to recreate these files for each test, as the compiler may 4561 # overwrite some of them when testing with obscure command lines. 4562 # This happens at least with the AIX C compiler. 4563 : > sub/conftest.c 4564 for i in 1 2 3 4 5 6; do 4565 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4566 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4567 # Solaris 10 /bin/sh. 4568 echo '/* dummy */' > sub/conftst$i.h 4569 done 4570 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4571 4572 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4573 # mode. It turns out that the SunPro C++ compiler does not properly 4574 # handle '-M -o', and we need to detect this. Also, some Intel 4575 # versions had trouble with output in subdirs. 4576 am__obj=sub/conftest.${OBJEXT-o} 4577 am__minus_obj="-o $am__obj" 4578 case $depmode in 4579 gcc) 4580 # This depmode causes a compiler race in universal mode. 4581 test "$am__universal" = false || continue 4582 ;; 4583 nosideeffect) 4584 # After this tag, mechanisms are not by side-effect, so they'll 4585 # only be used when explicitly requested. 4586 if test "x$enable_dependency_tracking" = xyes; then 4587 continue 4588 else 4589 break 4590 fi 4591 ;; 4592 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4593 # This compiler won't grok '-c -o', but also, the minuso test has 4594 # not run yet. These depmodes are late enough in the game, and 4595 # so weak that their functioning should not be impacted. 4596 am__obj=conftest.${OBJEXT-o} 4597 am__minus_obj= 4598 ;; 4599 none) break ;; 4600 esac 4601 if depmode=$depmode \ 4602 source=sub/conftest.c object=$am__obj \ 4603 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4604 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4605 >/dev/null 2>conftest.err && 4606 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4608 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4610 # icc doesn't choke on unknown options, it will just issue warnings 4611 # or remarks (even with -Werror). So we grep stderr for any message 4612 # that says an option was ignored or not supported. 4613 # When given -MP, icc 7.0 and 7.1 complain thusly: 4614 # icc: Command line warning: ignoring option '-M'; no argument required 4615 # The diagnosis changed in icc 8.0: 4616 # icc: Command line remark: option '-MP' not supported 4617 if (grep 'ignoring option' conftest.err || 4618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4619 am_cv_CC_dependencies_compiler_type=$depmode 4620 break 4621 fi 4622 fi 4623 done 4624 4625 cd .. 4626 rm -rf conftest.dir 4627else 4628 am_cv_CC_dependencies_compiler_type=none 4629fi 4630 4631fi 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4633$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4634CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4635 4636 if 4637 test "x$enable_dependency_tracking" != xno \ 4638 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4639 am__fastdepCC_TRUE= 4640 am__fastdepCC_FALSE='#' 4641else 4642 am__fastdepCC_TRUE='#' 4643 am__fastdepCC_FALSE= 4644fi 4645 4646 4647 4648 4649 4650# 4651# Copyright 2020 Northern.tech AS 4652# 4653# This file is part of CFEngine 3 - written and maintained by Northern.tech AS. 4654# 4655# This program is free software; you can redistribute it and/or modify it 4656# under the terms of the GNU General Public License as published by the 4657# Free Software Foundation; version 3. 4658# 4659# This program is distributed in the hope that it will be useful, 4660# but WITHOUT ANY WARRANTY; without even the implied warranty of 4661# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 4662# GNU General Public License for more details. 4663# 4664# You should have received a copy of the GNU General Public License 4665# along with this program; if not, write to the Free Software 4666# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 4667# 4668# To the extent this program is licensed as part of the Enterprise 4669# versions of CFEngine, the applicable Commercial Open Source License 4670# (COSL) may apply to this file if you as a licensee so wish it. See 4671# included file COSL.txt. 4672# 4673 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX aC" >&5 4675$as_echo_n "checking for HP-UX aC... " >&6; } 4676 4677ac_ext=c 4678ac_cpp='$CPP $CPPFLAGS' 4679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4681ac_compiler_gnu=$ac_cv_c_compiler_gnu 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4683$as_echo_n "checking how to run the C preprocessor... " >&6; } 4684# On Suns, sometimes $CPP names a directory. 4685if test -n "$CPP" && test -d "$CPP"; then 4686 CPP= 4687fi 4688if test -z "$CPP"; then 4689 if ${ac_cv_prog_CPP+:} false; then : 4690 $as_echo_n "(cached) " >&6 4691else 4692 # Double quotes because CPP needs to be expanded 4693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4694 do 4695 ac_preproc_ok=false 4696for ac_c_preproc_warn_flag in '' yes 4697do 4698 # Use a header file that comes with gcc, so configuring glibc 4699 # with a fresh cross-compiler works. 4700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4701 # <limits.h> exists even on freestanding compilers. 4702 # On the NeXT, cc -E runs the code through the compiler's parser, 4703 # not just through cpp. "Syntax error" is here to catch this case. 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4705/* end confdefs.h. */ 4706#ifdef __STDC__ 4707# include <limits.h> 4708#else 4709# include <assert.h> 4710#endif 4711 Syntax error 4712_ACEOF 4713if ac_fn_c_try_cpp "$LINENO"; then : 4714 4715else 4716 # Broken: fails on valid input. 4717continue 4718fi 4719rm -f conftest.err conftest.i conftest.$ac_ext 4720 4721 # OK, works on sane cases. Now check whether nonexistent headers 4722 # can be detected and how. 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724/* end confdefs.h. */ 4725#include <ac_nonexistent.h> 4726_ACEOF 4727if ac_fn_c_try_cpp "$LINENO"; then : 4728 # Broken: success on invalid input. 4729continue 4730else 4731 # Passes both tests. 4732ac_preproc_ok=: 4733break 4734fi 4735rm -f conftest.err conftest.i conftest.$ac_ext 4736 4737done 4738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4739rm -f conftest.i conftest.err conftest.$ac_ext 4740if $ac_preproc_ok; then : 4741 break 4742fi 4743 4744 done 4745 ac_cv_prog_CPP=$CPP 4746 4747fi 4748 CPP=$ac_cv_prog_CPP 4749else 4750 ac_cv_prog_CPP=$CPP 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4753$as_echo "$CPP" >&6; } 4754ac_preproc_ok=false 4755for ac_c_preproc_warn_flag in '' yes 4756do 4757 # Use a header file that comes with gcc, so configuring glibc 4758 # with a fresh cross-compiler works. 4759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4760 # <limits.h> exists even on freestanding compilers. 4761 # On the NeXT, cc -E runs the code through the compiler's parser, 4762 # not just through cpp. "Syntax error" is here to catch this case. 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765#ifdef __STDC__ 4766# include <limits.h> 4767#else 4768# include <assert.h> 4769#endif 4770 Syntax error 4771_ACEOF 4772if ac_fn_c_try_cpp "$LINENO"; then : 4773 4774else 4775 # Broken: fails on valid input. 4776continue 4777fi 4778rm -f conftest.err conftest.i conftest.$ac_ext 4779 4780 # OK, works on sane cases. Now check whether nonexistent headers 4781 # can be detected and how. 4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4783/* end confdefs.h. */ 4784#include <ac_nonexistent.h> 4785_ACEOF 4786if ac_fn_c_try_cpp "$LINENO"; then : 4787 # Broken: success on invalid input. 4788continue 4789else 4790 # Passes both tests. 4791ac_preproc_ok=: 4792break 4793fi 4794rm -f conftest.err conftest.i conftest.$ac_ext 4795 4796done 4797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4798rm -f conftest.i conftest.err conftest.$ac_ext 4799if $ac_preproc_ok; then : 4800 4801else 4802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4804as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4805See \`config.log' for more details" "$LINENO" 5; } 4806fi 4807 4808ac_ext=c 4809ac_cpp='$CPP $CPPFLAGS' 4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4812ac_compiler_gnu=$ac_cv_c_compiler_gnu 4813 4814 4815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4816/* end confdefs.h. */ 4817 4818#if defined __HP_cc 4819#This is HP-UX ANSI C 4820#endif 4821 4822_ACEOF 4823if ac_fn_c_try_cpp "$LINENO"; then : 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4825$as_echo "no" >&6; } 4826else 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4828$as_echo "yes" >&6; } 4829CFLAGS="$CFLAGS -Agcc" 4830CPPFLAGS="$CPPFLAGS -Agcc" 4831HP_UX_AC=yes 4832fi 4833rm -f conftest.err conftest.i conftest.$ac_ext 4834 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC specific compile flags" >&5 4836$as_echo_n "checking for GCC specific compile flags... " >&6; } 4837if test x"$GCC" = "xyes" && test x"$HP_UX_AC" != x"yes"; then 4838 CFLAGS="$CFLAGS -g -Wall" 4839 CPPFLAGS="$CPPFLAGS -std=gnu99" 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4841$as_echo "yes" >&6; } 4842 4843 save_CFLAGS="$CFLAGS" 4844 CFLAGS="$CFLAGS -Wno-pointer-sign" 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-pointer-sign" >&5 4846$as_echo_n "checking for -Wno-pointer-sign... " >&6; } 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849int main() {} 4850_ACEOF 4851if ac_fn_c_try_compile "$LINENO"; then : 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4853$as_echo "yes" >&6; } 4854else 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4856$as_echo "no" >&6; } 4857 CFLAGS="$save_CFLAGS" 4858fi 4859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4860 4861 save_CFLAGS="$CFLAGS" 4862 CFLAGS="$CFLAGS -Werror=implicit-function-declaration" 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=implicit-function-declaration" >&5 4864$as_echo_n "checking for -Werror=implicit-function-declaration... " >&6; } 4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4866/* end confdefs.h. */ 4867int main() {} 4868_ACEOF 4869if ac_fn_c_try_compile "$LINENO"; then : 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4871$as_echo "yes" >&6; } 4872else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4874$as_echo "no" >&6; } 4875 CFLAGS="$save_CFLAGS" 4876fi 4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4878 4879 save_CFLAGS="$CFLAGS" 4880 CFLAGS="$CFLAGS -Wunused-parameter" 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wunused-parameter" >&5 4882$as_echo_n "checking for -Wunused-parameter... " >&6; } 4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4884/* end confdefs.h. */ 4885int main() {} 4886_ACEOF 4887if ac_fn_c_try_compile "$LINENO"; then : 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4889$as_echo "yes" >&6; } 4890else 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892$as_echo "no" >&6; } 4893 CFLAGS="$save_CFLAGS" 4894fi 4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-duplicate-decl-specifier" >&5 4898$as_echo_n "checking for -Wno-duplicate-decl-specifier... " >&6; } 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901#ifndef __clang__ 4902# error Not a clang 4903#endif 4904int main() {} 4905_ACEOF 4906if ac_fn_c_try_compile "$LINENO"; then : 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4908$as_echo "yes" >&6; } 4909 CFLAGS="$save_CFLAGS -Wno-duplicate-decl-specifier" 4910else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4912$as_echo "no" >&6; } 4913fi 4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4915else 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4917$as_echo "no" >&6; } 4918fi 4919 4920 4921# Use either new LT_INIT or old AC_DISABLE_STATIC/AC_PROG_LIBTOOL macros 4922case `pwd` in 4923 *\ * | *\ *) 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4925$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4926esac 4927 4928 4929 4930macro_version='2.4.6' 4931macro_revision='2.4.6' 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945ltmain=$ac_aux_dir/ltmain.sh 4946 4947# Backslashify metacharacters that are still active within 4948# double-quoted strings. 4949sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4950 4951# Same as above, but do not quote variable references. 4952double_quote_subst='s/\(["`\\]\)/\\\1/g' 4953 4954# Sed substitution to delay expansion of an escaped shell variable in a 4955# double_quote_subst'ed string. 4956delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4957 4958# Sed substitution to delay expansion of an escaped single quote. 4959delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4960 4961# Sed substitution to avoid accidental globbing in evaled expressions 4962no_glob_subst='s/\*/\\\*/g' 4963 4964ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4965ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4966ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4967 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4969$as_echo_n "checking how to print strings... " >&6; } 4970# Test print first, because it will be a builtin if present. 4971if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4972 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4973 ECHO='print -r --' 4974elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4975 ECHO='printf %s\n' 4976else 4977 # Use this function as a fallback that always works. 4978 func_fallback_echo () 4979 { 4980 eval 'cat <<_LTECHO_EOF 4981$1 4982_LTECHO_EOF' 4983 } 4984 ECHO='func_fallback_echo' 4985fi 4986 4987# func_echo_all arg... 4988# Invoke $ECHO with all args, space-separated. 4989func_echo_all () 4990{ 4991 $ECHO "" 4992} 4993 4994case $ECHO in 4995 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4996$as_echo "printf" >&6; } ;; 4997 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4998$as_echo "print -r" >&6; } ;; 4999 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5000$as_echo "cat" >&6; } ;; 5001esac 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5017$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5018if ${ac_cv_path_SED+:} false; then : 5019 $as_echo_n "(cached) " >&6 5020else 5021 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5022 for ac_i in 1 2 3 4 5 6 7; do 5023 ac_script="$ac_script$as_nl$ac_script" 5024 done 5025 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5026 { ac_script=; unset ac_script;} 5027 if test -z "$SED"; then 5028 ac_path_SED_found=false 5029 # Loop through the user's path and test for each of PROGNAME-LIST 5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5031for as_dir in $PATH 5032do 5033 IFS=$as_save_IFS 5034 test -z "$as_dir" && as_dir=. 5035 for ac_prog in sed gsed; do 5036 for ac_exec_ext in '' $ac_executable_extensions; do 5037 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5038 as_fn_executable_p "$ac_path_SED" || continue 5039# Check for GNU ac_path_SED and select it if it is found. 5040 # Check for GNU $ac_path_SED 5041case `"$ac_path_SED" --version 2>&1` in 5042*GNU*) 5043 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5044*) 5045 ac_count=0 5046 $as_echo_n 0123456789 >"conftest.in" 5047 while : 5048 do 5049 cat "conftest.in" "conftest.in" >"conftest.tmp" 5050 mv "conftest.tmp" "conftest.in" 5051 cp "conftest.in" "conftest.nl" 5052 $as_echo '' >> "conftest.nl" 5053 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5055 as_fn_arith $ac_count + 1 && ac_count=$as_val 5056 if test $ac_count -gt ${ac_path_SED_max-0}; then 5057 # Best one so far, save it but keep looking for a better one 5058 ac_cv_path_SED="$ac_path_SED" 5059 ac_path_SED_max=$ac_count 5060 fi 5061 # 10*(2^10) chars as input seems more than enough 5062 test $ac_count -gt 10 && break 5063 done 5064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5065esac 5066 5067 $ac_path_SED_found && break 3 5068 done 5069 done 5070 done 5071IFS=$as_save_IFS 5072 if test -z "$ac_cv_path_SED"; then 5073 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5074 fi 5075else 5076 ac_cv_path_SED=$SED 5077fi 5078 5079fi 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5081$as_echo "$ac_cv_path_SED" >&6; } 5082 SED="$ac_cv_path_SED" 5083 rm -f conftest.sed 5084 5085test -z "$SED" && SED=sed 5086Xsed="$SED -e 1s/^X//" 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5099$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5100if ${ac_cv_path_GREP+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 if test -z "$GREP"; then 5104 ac_path_GREP_found=false 5105 # Loop through the user's path and test for each of PROGNAME-LIST 5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5108do 5109 IFS=$as_save_IFS 5110 test -z "$as_dir" && as_dir=. 5111 for ac_prog in grep ggrep; do 5112 for ac_exec_ext in '' $ac_executable_extensions; do 5113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5114 as_fn_executable_p "$ac_path_GREP" || continue 5115# Check for GNU ac_path_GREP and select it if it is found. 5116 # Check for GNU $ac_path_GREP 5117case `"$ac_path_GREP" --version 2>&1` in 5118*GNU*) 5119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5120*) 5121 ac_count=0 5122 $as_echo_n 0123456789 >"conftest.in" 5123 while : 5124 do 5125 cat "conftest.in" "conftest.in" >"conftest.tmp" 5126 mv "conftest.tmp" "conftest.in" 5127 cp "conftest.in" "conftest.nl" 5128 $as_echo 'GREP' >> "conftest.nl" 5129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5131 as_fn_arith $ac_count + 1 && ac_count=$as_val 5132 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5133 # Best one so far, save it but keep looking for a better one 5134 ac_cv_path_GREP="$ac_path_GREP" 5135 ac_path_GREP_max=$ac_count 5136 fi 5137 # 10*(2^10) chars as input seems more than enough 5138 test $ac_count -gt 10 && break 5139 done 5140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5141esac 5142 5143 $ac_path_GREP_found && break 3 5144 done 5145 done 5146 done 5147IFS=$as_save_IFS 5148 if test -z "$ac_cv_path_GREP"; then 5149 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5150 fi 5151else 5152 ac_cv_path_GREP=$GREP 5153fi 5154 5155fi 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5157$as_echo "$ac_cv_path_GREP" >&6; } 5158 GREP="$ac_cv_path_GREP" 5159 5160 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5162$as_echo_n "checking for egrep... " >&6; } 5163if ${ac_cv_path_EGREP+:} false; then : 5164 $as_echo_n "(cached) " >&6 5165else 5166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5167 then ac_cv_path_EGREP="$GREP -E" 5168 else 5169 if test -z "$EGREP"; then 5170 ac_path_EGREP_found=false 5171 # Loop through the user's path and test for each of PROGNAME-LIST 5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5174do 5175 IFS=$as_save_IFS 5176 test -z "$as_dir" && as_dir=. 5177 for ac_prog in egrep; do 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5180 as_fn_executable_p "$ac_path_EGREP" || continue 5181# Check for GNU ac_path_EGREP and select it if it is found. 5182 # Check for GNU $ac_path_EGREP 5183case `"$ac_path_EGREP" --version 2>&1` in 5184*GNU*) 5185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5186*) 5187 ac_count=0 5188 $as_echo_n 0123456789 >"conftest.in" 5189 while : 5190 do 5191 cat "conftest.in" "conftest.in" >"conftest.tmp" 5192 mv "conftest.tmp" "conftest.in" 5193 cp "conftest.in" "conftest.nl" 5194 $as_echo 'EGREP' >> "conftest.nl" 5195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5197 as_fn_arith $ac_count + 1 && ac_count=$as_val 5198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5199 # Best one so far, save it but keep looking for a better one 5200 ac_cv_path_EGREP="$ac_path_EGREP" 5201 ac_path_EGREP_max=$ac_count 5202 fi 5203 # 10*(2^10) chars as input seems more than enough 5204 test $ac_count -gt 10 && break 5205 done 5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5207esac 5208 5209 $ac_path_EGREP_found && break 3 5210 done 5211 done 5212 done 5213IFS=$as_save_IFS 5214 if test -z "$ac_cv_path_EGREP"; then 5215 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5216 fi 5217else 5218 ac_cv_path_EGREP=$EGREP 5219fi 5220 5221 fi 5222fi 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5224$as_echo "$ac_cv_path_EGREP" >&6; } 5225 EGREP="$ac_cv_path_EGREP" 5226 5227 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5229$as_echo_n "checking for fgrep... " >&6; } 5230if ${ac_cv_path_FGREP+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5234 then ac_cv_path_FGREP="$GREP -F" 5235 else 5236 if test -z "$FGREP"; then 5237 ac_path_FGREP_found=false 5238 # Loop through the user's path and test for each of PROGNAME-LIST 5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5241do 5242 IFS=$as_save_IFS 5243 test -z "$as_dir" && as_dir=. 5244 for ac_prog in fgrep; do 5245 for ac_exec_ext in '' $ac_executable_extensions; do 5246 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5247 as_fn_executable_p "$ac_path_FGREP" || continue 5248# Check for GNU ac_path_FGREP and select it if it is found. 5249 # Check for GNU $ac_path_FGREP 5250case `"$ac_path_FGREP" --version 2>&1` in 5251*GNU*) 5252 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5253*) 5254 ac_count=0 5255 $as_echo_n 0123456789 >"conftest.in" 5256 while : 5257 do 5258 cat "conftest.in" "conftest.in" >"conftest.tmp" 5259 mv "conftest.tmp" "conftest.in" 5260 cp "conftest.in" "conftest.nl" 5261 $as_echo 'FGREP' >> "conftest.nl" 5262 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5264 as_fn_arith $ac_count + 1 && ac_count=$as_val 5265 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5266 # Best one so far, save it but keep looking for a better one 5267 ac_cv_path_FGREP="$ac_path_FGREP" 5268 ac_path_FGREP_max=$ac_count 5269 fi 5270 # 10*(2^10) chars as input seems more than enough 5271 test $ac_count -gt 10 && break 5272 done 5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5274esac 5275 5276 $ac_path_FGREP_found && break 3 5277 done 5278 done 5279 done 5280IFS=$as_save_IFS 5281 if test -z "$ac_cv_path_FGREP"; then 5282 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5283 fi 5284else 5285 ac_cv_path_FGREP=$FGREP 5286fi 5287 5288 fi 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5291$as_echo "$ac_cv_path_FGREP" >&6; } 5292 FGREP="$ac_cv_path_FGREP" 5293 5294 5295test -z "$GREP" && GREP=grep 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315# Check whether --with-gnu-ld was given. 5316if test "${with_gnu_ld+set}" = set; then : 5317 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5318else 5319 with_gnu_ld=no 5320fi 5321 5322ac_prog=ld 5323if test yes = "$GCC"; then 5324 # Check if gcc -print-prog-name=ld gives a path. 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5326$as_echo_n "checking for ld used by $CC... " >&6; } 5327 case $host in 5328 *-*-mingw*) 5329 # gcc leaves a trailing carriage return, which upsets mingw 5330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5331 *) 5332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5333 esac 5334 case $ac_prog in 5335 # Accept absolute paths. 5336 [\\/]* | ?:[\\/]*) 5337 re_direlt='/[^/][^/]*/\.\./' 5338 # Canonicalize the pathname of ld 5339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5342 done 5343 test -z "$LD" && LD=$ac_prog 5344 ;; 5345 "") 5346 # If it fails, then pretend we aren't using GCC. 5347 ac_prog=ld 5348 ;; 5349 *) 5350 # If it is relative, then search for the first ld in PATH. 5351 with_gnu_ld=unknown 5352 ;; 5353 esac 5354elif test yes = "$with_gnu_ld"; then 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5356$as_echo_n "checking for GNU ld... " >&6; } 5357else 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5359$as_echo_n "checking for non-GNU ld... " >&6; } 5360fi 5361if ${lt_cv_path_LD+:} false; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 if test -z "$LD"; then 5365 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5366 for ac_dir in $PATH; do 5367 IFS=$lt_save_ifs 5368 test -z "$ac_dir" && ac_dir=. 5369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5370 lt_cv_path_LD=$ac_dir/$ac_prog 5371 # Check to see if the program is GNU ld. I'd rather use --version, 5372 # but apparently some variants of GNU ld only accept -v. 5373 # Break only if it was the GNU/non-GNU ld that we prefer. 5374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5375 *GNU* | *'with BFD'*) 5376 test no != "$with_gnu_ld" && break 5377 ;; 5378 *) 5379 test yes != "$with_gnu_ld" && break 5380 ;; 5381 esac 5382 fi 5383 done 5384 IFS=$lt_save_ifs 5385else 5386 lt_cv_path_LD=$LD # Let the user override the test with a path. 5387fi 5388fi 5389 5390LD=$lt_cv_path_LD 5391if test -n "$LD"; then 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5393$as_echo "$LD" >&6; } 5394else 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5396$as_echo "no" >&6; } 5397fi 5398test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5401if ${lt_cv_prog_gnu_ld+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5405case `$LD -v 2>&1 </dev/null` in 5406*GNU* | *'with BFD'*) 5407 lt_cv_prog_gnu_ld=yes 5408 ;; 5409*) 5410 lt_cv_prog_gnu_ld=no 5411 ;; 5412esac 5413fi 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5415$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5416with_gnu_ld=$lt_cv_prog_gnu_ld 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5427$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5428if ${lt_cv_path_NM+:} false; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 if test -n "$NM"; then 5432 # Let the user override the test. 5433 lt_cv_path_NM=$NM 5434else 5435 lt_nm_to_check=${ac_tool_prefix}nm 5436 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5437 lt_nm_to_check="$lt_nm_to_check nm" 5438 fi 5439 for lt_tmp_nm in $lt_nm_to_check; do 5440 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5441 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5442 IFS=$lt_save_ifs 5443 test -z "$ac_dir" && ac_dir=. 5444 tmp_nm=$ac_dir/$lt_tmp_nm 5445 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5446 # Check to see if the nm accepts a BSD-compat flag. 5447 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5448 # nm: unknown option "B" ignored 5449 # Tru64's nm complains that /dev/null is an invalid object file 5450 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5451 case $build_os in 5452 mingw*) lt_bad_file=conftest.nm/nofile ;; 5453 *) lt_bad_file=/dev/null ;; 5454 esac 5455 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5456 *$lt_bad_file* | *'Invalid file or object type'*) 5457 lt_cv_path_NM="$tmp_nm -B" 5458 break 2 5459 ;; 5460 *) 5461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5462 */dev/null*) 5463 lt_cv_path_NM="$tmp_nm -p" 5464 break 2 5465 ;; 5466 *) 5467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5468 continue # so that we can try to find one that supports BSD flags 5469 ;; 5470 esac 5471 ;; 5472 esac 5473 fi 5474 done 5475 IFS=$lt_save_ifs 5476 done 5477 : ${lt_cv_path_NM=no} 5478fi 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5481$as_echo "$lt_cv_path_NM" >&6; } 5482if test no != "$lt_cv_path_NM"; then 5483 NM=$lt_cv_path_NM 5484else 5485 # Didn't find any BSD compatible name lister, look for dumpbin. 5486 if test -n "$DUMPBIN"; then : 5487 # Let the user override the test. 5488 else 5489 if test -n "$ac_tool_prefix"; then 5490 for ac_prog in dumpbin "link -dump" 5491 do 5492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5493set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5495$as_echo_n "checking for $ac_word... " >&6; } 5496if ${ac_cv_prog_DUMPBIN+:} false; then : 5497 $as_echo_n "(cached) " >&6 5498else 5499 if test -n "$DUMPBIN"; then 5500 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5501else 5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5503for as_dir in $PATH 5504do 5505 IFS=$as_save_IFS 5506 test -z "$as_dir" && as_dir=. 5507 for ac_exec_ext in '' $ac_executable_extensions; do 5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5509 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5511 break 2 5512 fi 5513done 5514 done 5515IFS=$as_save_IFS 5516 5517fi 5518fi 5519DUMPBIN=$ac_cv_prog_DUMPBIN 5520if test -n "$DUMPBIN"; then 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5522$as_echo "$DUMPBIN" >&6; } 5523else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525$as_echo "no" >&6; } 5526fi 5527 5528 5529 test -n "$DUMPBIN" && break 5530 done 5531fi 5532if test -z "$DUMPBIN"; then 5533 ac_ct_DUMPBIN=$DUMPBIN 5534 for ac_prog in dumpbin "link -dump" 5535do 5536 # Extract the first word of "$ac_prog", so it can be a program name with args. 5537set dummy $ac_prog; ac_word=$2 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5539$as_echo_n "checking for $ac_word... " >&6; } 5540if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5541 $as_echo_n "(cached) " >&6 5542else 5543 if test -n "$ac_ct_DUMPBIN"; then 5544 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5545else 5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5547for as_dir in $PATH 5548do 5549 IFS=$as_save_IFS 5550 test -z "$as_dir" && as_dir=. 5551 for ac_exec_ext in '' $ac_executable_extensions; do 5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5553 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5555 break 2 5556 fi 5557done 5558 done 5559IFS=$as_save_IFS 5560 5561fi 5562fi 5563ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5564if test -n "$ac_ct_DUMPBIN"; then 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5566$as_echo "$ac_ct_DUMPBIN" >&6; } 5567else 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5569$as_echo "no" >&6; } 5570fi 5571 5572 5573 test -n "$ac_ct_DUMPBIN" && break 5574done 5575 5576 if test "x$ac_ct_DUMPBIN" = x; then 5577 DUMPBIN=":" 5578 else 5579 case $cross_compiling:$ac_tool_warned in 5580yes:) 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5583ac_tool_warned=yes ;; 5584esac 5585 DUMPBIN=$ac_ct_DUMPBIN 5586 fi 5587fi 5588 5589 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5590 *COFF*) 5591 DUMPBIN="$DUMPBIN -symbols -headers" 5592 ;; 5593 *) 5594 DUMPBIN=: 5595 ;; 5596 esac 5597 fi 5598 5599 if test : != "$DUMPBIN"; then 5600 NM=$DUMPBIN 5601 fi 5602fi 5603test -z "$NM" && NM=nm 5604 5605 5606 5607 5608 5609 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5611$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5612if ${lt_cv_nm_interface+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 lt_cv_nm_interface="BSD nm" 5616 echo "int some_variable = 0;" > conftest.$ac_ext 5617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5618 (eval "$ac_compile" 2>conftest.err) 5619 cat conftest.err >&5 5620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5622 cat conftest.err >&5 5623 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5624 cat conftest.out >&5 5625 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5626 lt_cv_nm_interface="MS dumpbin" 5627 fi 5628 rm -f conftest* 5629fi 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5631$as_echo "$lt_cv_nm_interface" >&6; } 5632 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5634$as_echo_n "checking whether ln -s works... " >&6; } 5635LN_S=$as_ln_s 5636if test "$LN_S" = "ln -s"; then 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5638$as_echo "yes" >&6; } 5639else 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5641$as_echo "no, using $LN_S" >&6; } 5642fi 5643 5644# find the maximum length of command line arguments 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5646$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5647if ${lt_cv_sys_max_cmd_len+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 i=0 5651 teststring=ABCD 5652 5653 case $build_os in 5654 msdosdjgpp*) 5655 # On DJGPP, this test can blow up pretty badly due to problems in libc 5656 # (any single argument exceeding 2000 bytes causes a buffer overrun 5657 # during glob expansion). Even if it were fixed, the result of this 5658 # check would be larger than it should be. 5659 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5660 ;; 5661 5662 gnu*) 5663 # Under GNU Hurd, this test is not required because there is 5664 # no limit to the length of command line arguments. 5665 # Libtool will interpret -1 as no limit whatsoever 5666 lt_cv_sys_max_cmd_len=-1; 5667 ;; 5668 5669 cygwin* | mingw* | cegcc*) 5670 # On Win9x/ME, this test blows up -- it succeeds, but takes 5671 # about 5 minutes as the teststring grows exponentially. 5672 # Worse, since 9x/ME are not pre-emptively multitasking, 5673 # you end up with a "frozen" computer, even though with patience 5674 # the test eventually succeeds (with a max line length of 256k). 5675 # Instead, let's just punt: use the minimum linelength reported by 5676 # all of the supported platforms: 8192 (on NT/2K/XP). 5677 lt_cv_sys_max_cmd_len=8192; 5678 ;; 5679 5680 mint*) 5681 # On MiNT this can take a long time and run out of memory. 5682 lt_cv_sys_max_cmd_len=8192; 5683 ;; 5684 5685 amigaos*) 5686 # On AmigaOS with pdksh, this test takes hours, literally. 5687 # So we just punt and use a minimum line length of 8192. 5688 lt_cv_sys_max_cmd_len=8192; 5689 ;; 5690 5691 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5692 # This has been around since 386BSD, at least. Likely further. 5693 if test -x /sbin/sysctl; then 5694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5695 elif test -x /usr/sbin/sysctl; then 5696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5697 else 5698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5699 fi 5700 # And add a safety zone 5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5703 ;; 5704 5705 interix*) 5706 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5707 lt_cv_sys_max_cmd_len=196608 5708 ;; 5709 5710 os2*) 5711 # The test takes a long time on OS/2. 5712 lt_cv_sys_max_cmd_len=8192 5713 ;; 5714 5715 osf*) 5716 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5717 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5718 # nice to cause kernel panics so lets avoid the loop below. 5719 # First set a reasonable default. 5720 lt_cv_sys_max_cmd_len=16384 5721 # 5722 if test -x /sbin/sysconfig; then 5723 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5724 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5725 esac 5726 fi 5727 ;; 5728 sco3.2v5*) 5729 lt_cv_sys_max_cmd_len=102400 5730 ;; 5731 sysv5* | sco5v6* | sysv4.2uw2*) 5732 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5733 if test -n "$kargmax"; then 5734 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5735 else 5736 lt_cv_sys_max_cmd_len=32768 5737 fi 5738 ;; 5739 *) 5740 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5741 if test -n "$lt_cv_sys_max_cmd_len" && \ 5742 test undefined != "$lt_cv_sys_max_cmd_len"; then 5743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5745 else 5746 # Make teststring a little bigger before we do anything with it. 5747 # a 1K string should be a reasonable start. 5748 for i in 1 2 3 4 5 6 7 8; do 5749 teststring=$teststring$teststring 5750 done 5751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5752 # If test is not a shell built-in, we'll probably end up computing a 5753 # maximum length that is only half of the actual maximum length, but 5754 # we can't tell. 5755 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5756 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5757 test 17 != "$i" # 1/2 MB should be enough 5758 do 5759 i=`expr $i + 1` 5760 teststring=$teststring$teststring 5761 done 5762 # Only check the string length outside the loop. 5763 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5764 teststring= 5765 # Add a significant safety factor because C++ compilers can tack on 5766 # massive amounts of additional arguments before passing them to the 5767 # linker. It appears as though 1/2 is a usable value. 5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5769 fi 5770 ;; 5771 esac 5772 5773fi 5774 5775if test -n "$lt_cv_sys_max_cmd_len"; then 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5777$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5778else 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5780$as_echo "none" >&6; } 5781fi 5782max_cmd_len=$lt_cv_sys_max_cmd_len 5783 5784 5785 5786 5787 5788 5789: ${CP="cp -f"} 5790: ${MV="mv -f"} 5791: ${RM="rm -f"} 5792 5793if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5794 lt_unset=unset 5795else 5796 lt_unset=false 5797fi 5798 5799 5800 5801 5802 5803# test EBCDIC or ASCII 5804case `echo X|tr X '\101'` in 5805 A) # ASCII based system 5806 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5807 lt_SP2NL='tr \040 \012' 5808 lt_NL2SP='tr \015\012 \040\040' 5809 ;; 5810 *) # EBCDIC based system 5811 lt_SP2NL='tr \100 \n' 5812 lt_NL2SP='tr \r\n \100\100' 5813 ;; 5814esac 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5825$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5826if ${lt_cv_to_host_file_cmd+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 case $host in 5830 *-*-mingw* ) 5831 case $build in 5832 *-*-mingw* ) # actually msys 5833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5834 ;; 5835 *-*-cygwin* ) 5836 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5837 ;; 5838 * ) # otherwise, assume *nix 5839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5840 ;; 5841 esac 5842 ;; 5843 *-*-cygwin* ) 5844 case $build in 5845 *-*-mingw* ) # actually msys 5846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5847 ;; 5848 *-*-cygwin* ) 5849 lt_cv_to_host_file_cmd=func_convert_file_noop 5850 ;; 5851 * ) # otherwise, assume *nix 5852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5853 ;; 5854 esac 5855 ;; 5856 * ) # unhandled hosts (and "normal" native builds) 5857 lt_cv_to_host_file_cmd=func_convert_file_noop 5858 ;; 5859esac 5860 5861fi 5862 5863to_host_file_cmd=$lt_cv_to_host_file_cmd 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5865$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5866 5867 5868 5869 5870 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5872$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5873if ${lt_cv_to_tool_file_cmd+:} false; then : 5874 $as_echo_n "(cached) " >&6 5875else 5876 #assume ordinary cross tools, or native build. 5877lt_cv_to_tool_file_cmd=func_convert_file_noop 5878case $host in 5879 *-*-mingw* ) 5880 case $build in 5881 *-*-mingw* ) # actually msys 5882 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5883 ;; 5884 esac 5885 ;; 5886esac 5887 5888fi 5889 5890to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5892$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5893 5894 5895 5896 5897 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5899$as_echo_n "checking for $LD option to reload object files... " >&6; } 5900if ${lt_cv_ld_reload_flag+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 lt_cv_ld_reload_flag='-r' 5904fi 5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5906$as_echo "$lt_cv_ld_reload_flag" >&6; } 5907reload_flag=$lt_cv_ld_reload_flag 5908case $reload_flag in 5909"" | " "*) ;; 5910*) reload_flag=" $reload_flag" ;; 5911esac 5912reload_cmds='$LD$reload_flag -o $output$reload_objs' 5913case $host_os in 5914 cygwin* | mingw* | pw32* | cegcc*) 5915 if test yes != "$GCC"; then 5916 reload_cmds=false 5917 fi 5918 ;; 5919 darwin*) 5920 if test yes = "$GCC"; then 5921 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5922 else 5923 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5924 fi 5925 ;; 5926esac 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936if test -n "$ac_tool_prefix"; then 5937 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5938set dummy ${ac_tool_prefix}objdump; ac_word=$2 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5940$as_echo_n "checking for $ac_word... " >&6; } 5941if ${ac_cv_prog_OBJDUMP+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 if test -n "$OBJDUMP"; then 5945 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5946else 5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5948for as_dir in $PATH 5949do 5950 IFS=$as_save_IFS 5951 test -z "$as_dir" && as_dir=. 5952 for ac_exec_ext in '' $ac_executable_extensions; do 5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5954 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5956 break 2 5957 fi 5958done 5959 done 5960IFS=$as_save_IFS 5961 5962fi 5963fi 5964OBJDUMP=$ac_cv_prog_OBJDUMP 5965if test -n "$OBJDUMP"; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5967$as_echo "$OBJDUMP" >&6; } 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970$as_echo "no" >&6; } 5971fi 5972 5973 5974fi 5975if test -z "$ac_cv_prog_OBJDUMP"; then 5976 ac_ct_OBJDUMP=$OBJDUMP 5977 # Extract the first word of "objdump", so it can be a program name with args. 5978set dummy objdump; ac_word=$2 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5980$as_echo_n "checking for $ac_word... " >&6; } 5981if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 if test -n "$ac_ct_OBJDUMP"; then 5985 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5986else 5987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5988for as_dir in $PATH 5989do 5990 IFS=$as_save_IFS 5991 test -z "$as_dir" && as_dir=. 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5994 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5996 break 2 5997 fi 5998done 5999 done 6000IFS=$as_save_IFS 6001 6002fi 6003fi 6004ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6005if test -n "$ac_ct_OBJDUMP"; then 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6007$as_echo "$ac_ct_OBJDUMP" >&6; } 6008else 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6010$as_echo "no" >&6; } 6011fi 6012 6013 if test "x$ac_ct_OBJDUMP" = x; then 6014 OBJDUMP="false" 6015 else 6016 case $cross_compiling:$ac_tool_warned in 6017yes:) 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6020ac_tool_warned=yes ;; 6021esac 6022 OBJDUMP=$ac_ct_OBJDUMP 6023 fi 6024else 6025 OBJDUMP="$ac_cv_prog_OBJDUMP" 6026fi 6027 6028test -z "$OBJDUMP" && OBJDUMP=objdump 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6039$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6040if ${lt_cv_deplibs_check_method+:} false; then : 6041 $as_echo_n "(cached) " >&6 6042else 6043 lt_cv_file_magic_cmd='$MAGIC_CMD' 6044lt_cv_file_magic_test_file= 6045lt_cv_deplibs_check_method='unknown' 6046# Need to set the preceding variable on all platforms that support 6047# interlibrary dependencies. 6048# 'none' -- dependencies not supported. 6049# 'unknown' -- same as none, but documents that we really don't know. 6050# 'pass_all' -- all dependencies passed with no checks. 6051# 'test_compile' -- check by making test program. 6052# 'file_magic [[regex]]' -- check by looking for files in library path 6053# that responds to the $file_magic_cmd with a given extended regex. 6054# If you have 'file' or equivalent on your system and you're not sure 6055# whether 'pass_all' will *always* work, you probably want this one. 6056 6057case $host_os in 6058aix[4-9]*) 6059 lt_cv_deplibs_check_method=pass_all 6060 ;; 6061 6062beos*) 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 6066bsdi[45]*) 6067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6068 lt_cv_file_magic_cmd='/usr/bin/file -L' 6069 lt_cv_file_magic_test_file=/shlib/libc.so 6070 ;; 6071 6072cygwin*) 6073 # func_win32_libid is a shell function defined in ltmain.sh 6074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6075 lt_cv_file_magic_cmd='func_win32_libid' 6076 ;; 6077 6078mingw* | pw32*) 6079 # Base MSYS/MinGW do not provide the 'file' command needed by 6080 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6081 # unless we find 'file', for example because we are cross-compiling. 6082 if ( file / ) >/dev/null 2>&1; then 6083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6084 lt_cv_file_magic_cmd='func_win32_libid' 6085 else 6086 # Keep this pattern in sync with the one in func_win32_libid. 6087 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6088 lt_cv_file_magic_cmd='$OBJDUMP -f' 6089 fi 6090 ;; 6091 6092cegcc*) 6093 # use the weaker test based on 'objdump'. See mingw*. 6094 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6095 lt_cv_file_magic_cmd='$OBJDUMP -f' 6096 ;; 6097 6098darwin* | rhapsody*) 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102freebsd* | dragonfly*) 6103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6104 case $host_cpu in 6105 i*86 ) 6106 # Not sure whether the presence of OpenBSD here was a mistake. 6107 # Let's accept both of them until this is cleared up. 6108 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6109 lt_cv_file_magic_cmd=/usr/bin/file 6110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6111 ;; 6112 esac 6113 else 6114 lt_cv_deplibs_check_method=pass_all 6115 fi 6116 ;; 6117 6118haiku*) 6119 lt_cv_deplibs_check_method=pass_all 6120 ;; 6121 6122hpux10.20* | hpux11*) 6123 lt_cv_file_magic_cmd=/usr/bin/file 6124 case $host_cpu in 6125 ia64*) 6126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6127 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6128 ;; 6129 hppa*64*) 6130 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]' 6131 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6132 ;; 6133 *) 6134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6135 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6136 ;; 6137 esac 6138 ;; 6139 6140interix[3-9]*) 6141 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6143 ;; 6144 6145irix5* | irix6* | nonstopux*) 6146 case $LD in 6147 *-32|*"-32 ") libmagic=32-bit;; 6148 *-n32|*"-n32 ") libmagic=N32;; 6149 *-64|*"-64 ") libmagic=64-bit;; 6150 *) libmagic=never-match;; 6151 esac 6152 lt_cv_deplibs_check_method=pass_all 6153 ;; 6154 6155# This must be glibc/ELF. 6156linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6157 lt_cv_deplibs_check_method=pass_all 6158 ;; 6159 6160netbsd* | netbsdelf*-gnu) 6161 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6163 else 6164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6165 fi 6166 ;; 6167 6168newos6*) 6169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6170 lt_cv_file_magic_cmd=/usr/bin/file 6171 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6172 ;; 6173 6174*nto* | *qnx*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178openbsd* | bitrig*) 6179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6181 else 6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6183 fi 6184 ;; 6185 6186osf3* | osf4* | osf5*) 6187 lt_cv_deplibs_check_method=pass_all 6188 ;; 6189 6190rdos*) 6191 lt_cv_deplibs_check_method=pass_all 6192 ;; 6193 6194solaris*) 6195 lt_cv_deplibs_check_method=pass_all 6196 ;; 6197 6198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6199 lt_cv_deplibs_check_method=pass_all 6200 ;; 6201 6202sysv4 | sysv4.3*) 6203 case $host_vendor in 6204 motorola) 6205 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]' 6206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6207 ;; 6208 ncr) 6209 lt_cv_deplibs_check_method=pass_all 6210 ;; 6211 sequent) 6212 lt_cv_file_magic_cmd='/bin/file' 6213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6214 ;; 6215 sni) 6216 lt_cv_file_magic_cmd='/bin/file' 6217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6218 lt_cv_file_magic_test_file=/lib/libc.so 6219 ;; 6220 siemens) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223 pc) 6224 lt_cv_deplibs_check_method=pass_all 6225 ;; 6226 esac 6227 ;; 6228 6229tpf*) 6230 lt_cv_deplibs_check_method=pass_all 6231 ;; 6232os2*) 6233 lt_cv_deplibs_check_method=pass_all 6234 ;; 6235esac 6236 6237fi 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6239$as_echo "$lt_cv_deplibs_check_method" >&6; } 6240 6241file_magic_glob= 6242want_nocaseglob=no 6243if test "$build" = "$host"; then 6244 case $host_os in 6245 mingw* | pw32*) 6246 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6247 want_nocaseglob=yes 6248 else 6249 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6250 fi 6251 ;; 6252 esac 6253fi 6254 6255file_magic_cmd=$lt_cv_file_magic_cmd 6256deplibs_check_method=$lt_cv_deplibs_check_method 6257test -z "$deplibs_check_method" && deplibs_check_method=unknown 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280if test -n "$ac_tool_prefix"; then 6281 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6282set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284$as_echo_n "checking for $ac_word... " >&6; } 6285if ${ac_cv_prog_DLLTOOL+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 if test -n "$DLLTOOL"; then 6289 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6290else 6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292for as_dir in $PATH 6293do 6294 IFS=$as_save_IFS 6295 test -z "$as_dir" && as_dir=. 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6298 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302done 6303 done 6304IFS=$as_save_IFS 6305 6306fi 6307fi 6308DLLTOOL=$ac_cv_prog_DLLTOOL 6309if test -n "$DLLTOOL"; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6311$as_echo "$DLLTOOL" >&6; } 6312else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314$as_echo "no" >&6; } 6315fi 6316 6317 6318fi 6319if test -z "$ac_cv_prog_DLLTOOL"; then 6320 ac_ct_DLLTOOL=$DLLTOOL 6321 # Extract the first word of "dlltool", so it can be a program name with args. 6322set dummy dlltool; ac_word=$2 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6324$as_echo_n "checking for $ac_word... " >&6; } 6325if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6326 $as_echo_n "(cached) " >&6 6327else 6328 if test -n "$ac_ct_DLLTOOL"; then 6329 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6330else 6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332for as_dir in $PATH 6333do 6334 IFS=$as_save_IFS 6335 test -z "$as_dir" && as_dir=. 6336 for ac_exec_ext in '' $ac_executable_extensions; do 6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6338 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6340 break 2 6341 fi 6342done 6343 done 6344IFS=$as_save_IFS 6345 6346fi 6347fi 6348ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6349if test -n "$ac_ct_DLLTOOL"; then 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6351$as_echo "$ac_ct_DLLTOOL" >&6; } 6352else 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6354$as_echo "no" >&6; } 6355fi 6356 6357 if test "x$ac_ct_DLLTOOL" = x; then 6358 DLLTOOL="false" 6359 else 6360 case $cross_compiling:$ac_tool_warned in 6361yes:) 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6364ac_tool_warned=yes ;; 6365esac 6366 DLLTOOL=$ac_ct_DLLTOOL 6367 fi 6368else 6369 DLLTOOL="$ac_cv_prog_DLLTOOL" 6370fi 6371 6372test -z "$DLLTOOL" && DLLTOOL=dlltool 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6384$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6385if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 lt_cv_sharedlib_from_linklib_cmd='unknown' 6389 6390case $host_os in 6391cygwin* | mingw* | pw32* | cegcc*) 6392 # two different shell functions defined in ltmain.sh; 6393 # decide which one to use based on capabilities of $DLLTOOL 6394 case `$DLLTOOL --help 2>&1` in 6395 *--identify-strict*) 6396 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6397 ;; 6398 *) 6399 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6400 ;; 6401 esac 6402 ;; 6403*) 6404 # fallback: assume linklib IS sharedlib 6405 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6406 ;; 6407esac 6408 6409fi 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6411$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6412sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6413test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6414 6415 6416 6417 6418 6419 6420 6421if test -n "$ac_tool_prefix"; then 6422 for ac_prog in ar 6423 do 6424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6425set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6427$as_echo_n "checking for $ac_word... " >&6; } 6428if ${ac_cv_prog_AR+:} false; then : 6429 $as_echo_n "(cached) " >&6 6430else 6431 if test -n "$AR"; then 6432 ac_cv_prog_AR="$AR" # Let the user override the test. 6433else 6434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6435for as_dir in $PATH 6436do 6437 IFS=$as_save_IFS 6438 test -z "$as_dir" && as_dir=. 6439 for ac_exec_ext in '' $ac_executable_extensions; do 6440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6441 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6443 break 2 6444 fi 6445done 6446 done 6447IFS=$as_save_IFS 6448 6449fi 6450fi 6451AR=$ac_cv_prog_AR 6452if test -n "$AR"; then 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6454$as_echo "$AR" >&6; } 6455else 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6457$as_echo "no" >&6; } 6458fi 6459 6460 6461 test -n "$AR" && break 6462 done 6463fi 6464if test -z "$AR"; then 6465 ac_ct_AR=$AR 6466 for ac_prog in ar 6467do 6468 # Extract the first word of "$ac_prog", so it can be a program name with args. 6469set dummy $ac_prog; ac_word=$2 6470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6471$as_echo_n "checking for $ac_word... " >&6; } 6472if ${ac_cv_prog_ac_ct_AR+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474else 6475 if test -n "$ac_ct_AR"; then 6476 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6477else 6478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6479for as_dir in $PATH 6480do 6481 IFS=$as_save_IFS 6482 test -z "$as_dir" && as_dir=. 6483 for ac_exec_ext in '' $ac_executable_extensions; do 6484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6485 ac_cv_prog_ac_ct_AR="$ac_prog" 6486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6487 break 2 6488 fi 6489done 6490 done 6491IFS=$as_save_IFS 6492 6493fi 6494fi 6495ac_ct_AR=$ac_cv_prog_ac_ct_AR 6496if test -n "$ac_ct_AR"; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6498$as_echo "$ac_ct_AR" >&6; } 6499else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6501$as_echo "no" >&6; } 6502fi 6503 6504 6505 test -n "$ac_ct_AR" && break 6506done 6507 6508 if test "x$ac_ct_AR" = x; then 6509 AR="false" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6515ac_tool_warned=yes ;; 6516esac 6517 AR=$ac_ct_AR 6518 fi 6519fi 6520 6521: ${AR=ar} 6522: ${AR_FLAGS=cru} 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6535$as_echo_n "checking for archiver @FILE support... " >&6; } 6536if ${lt_cv_ar_at_file+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 lt_cv_ar_at_file=no 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542 6543int 6544main () 6545{ 6546 6547 ; 6548 return 0; 6549} 6550_ACEOF 6551if ac_fn_c_try_compile "$LINENO"; then : 6552 echo conftest.$ac_objext > conftest.lst 6553 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6555 (eval $lt_ar_try) 2>&5 6556 ac_status=$? 6557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6558 test $ac_status = 0; } 6559 if test 0 -eq "$ac_status"; then 6560 # Ensure the archiver fails upon bogus file names. 6561 rm -f conftest.$ac_objext libconftest.a 6562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6563 (eval $lt_ar_try) 2>&5 6564 ac_status=$? 6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6566 test $ac_status = 0; } 6567 if test 0 -ne "$ac_status"; then 6568 lt_cv_ar_at_file=@ 6569 fi 6570 fi 6571 rm -f conftest.* libconftest.a 6572 6573fi 6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575 6576fi 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6578$as_echo "$lt_cv_ar_at_file" >&6; } 6579 6580if test no = "$lt_cv_ar_at_file"; then 6581 archiver_list_spec= 6582else 6583 archiver_list_spec=$lt_cv_ar_at_file 6584fi 6585 6586 6587 6588 6589 6590 6591 6592if test -n "$ac_tool_prefix"; then 6593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6594set dummy ${ac_tool_prefix}strip; ac_word=$2 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6596$as_echo_n "checking for $ac_word... " >&6; } 6597if ${ac_cv_prog_STRIP+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 if test -n "$STRIP"; then 6601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6602else 6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6604for as_dir in $PATH 6605do 6606 IFS=$as_save_IFS 6607 test -z "$as_dir" && as_dir=. 6608 for ac_exec_ext in '' $ac_executable_extensions; do 6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6610 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6612 break 2 6613 fi 6614done 6615 done 6616IFS=$as_save_IFS 6617 6618fi 6619fi 6620STRIP=$ac_cv_prog_STRIP 6621if test -n "$STRIP"; then 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6623$as_echo "$STRIP" >&6; } 6624else 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6626$as_echo "no" >&6; } 6627fi 6628 6629 6630fi 6631if test -z "$ac_cv_prog_STRIP"; then 6632 ac_ct_STRIP=$STRIP 6633 # Extract the first word of "strip", so it can be a program name with args. 6634set dummy strip; ac_word=$2 6635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6636$as_echo_n "checking for $ac_word... " >&6; } 6637if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639else 6640 if test -n "$ac_ct_STRIP"; then 6641 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6642else 6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6644for as_dir in $PATH 6645do 6646 IFS=$as_save_IFS 6647 test -z "$as_dir" && as_dir=. 6648 for ac_exec_ext in '' $ac_executable_extensions; do 6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6650 ac_cv_prog_ac_ct_STRIP="strip" 6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6652 break 2 6653 fi 6654done 6655 done 6656IFS=$as_save_IFS 6657 6658fi 6659fi 6660ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6661if test -n "$ac_ct_STRIP"; then 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6663$as_echo "$ac_ct_STRIP" >&6; } 6664else 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6666$as_echo "no" >&6; } 6667fi 6668 6669 if test "x$ac_ct_STRIP" = x; then 6670 STRIP=":" 6671 else 6672 case $cross_compiling:$ac_tool_warned in 6673yes:) 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6676ac_tool_warned=yes ;; 6677esac 6678 STRIP=$ac_ct_STRIP 6679 fi 6680else 6681 STRIP="$ac_cv_prog_STRIP" 6682fi 6683 6684test -z "$STRIP" && STRIP=: 6685 6686 6687 6688 6689 6690 6691if test -n "$ac_tool_prefix"; then 6692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6693set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6695$as_echo_n "checking for $ac_word... " >&6; } 6696if ${ac_cv_prog_RANLIB+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 if test -n "$RANLIB"; then 6700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6701else 6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703for as_dir in $PATH 6704do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for ac_exec_ext in '' $ac_executable_extensions; do 6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6711 break 2 6712 fi 6713done 6714 done 6715IFS=$as_save_IFS 6716 6717fi 6718fi 6719RANLIB=$ac_cv_prog_RANLIB 6720if test -n "$RANLIB"; then 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6722$as_echo "$RANLIB" >&6; } 6723else 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725$as_echo "no" >&6; } 6726fi 6727 6728 6729fi 6730if test -z "$ac_cv_prog_RANLIB"; then 6731 ac_ct_RANLIB=$RANLIB 6732 # Extract the first word of "ranlib", so it can be a program name with args. 6733set dummy ranlib; ac_word=$2 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735$as_echo_n "checking for $ac_word... " >&6; } 6736if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 if test -n "$ac_ct_RANLIB"; then 6740 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6741else 6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6743for as_dir in $PATH 6744do 6745 IFS=$as_save_IFS 6746 test -z "$as_dir" && as_dir=. 6747 for ac_exec_ext in '' $ac_executable_extensions; do 6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6749 ac_cv_prog_ac_ct_RANLIB="ranlib" 6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6751 break 2 6752 fi 6753done 6754 done 6755IFS=$as_save_IFS 6756 6757fi 6758fi 6759ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6760if test -n "$ac_ct_RANLIB"; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6762$as_echo "$ac_ct_RANLIB" >&6; } 6763else 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6765$as_echo "no" >&6; } 6766fi 6767 6768 if test "x$ac_ct_RANLIB" = x; then 6769 RANLIB=":" 6770 else 6771 case $cross_compiling:$ac_tool_warned in 6772yes:) 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6775ac_tool_warned=yes ;; 6776esac 6777 RANLIB=$ac_ct_RANLIB 6778 fi 6779else 6780 RANLIB="$ac_cv_prog_RANLIB" 6781fi 6782 6783test -z "$RANLIB" && RANLIB=: 6784 6785 6786 6787 6788 6789 6790# Determine commands to create old-style static archives. 6791old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6792old_postinstall_cmds='chmod 644 $oldlib' 6793old_postuninstall_cmds= 6794 6795if test -n "$RANLIB"; then 6796 case $host_os in 6797 bitrig* | openbsd*) 6798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6799 ;; 6800 *) 6801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6802 ;; 6803 esac 6804 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6805fi 6806 6807case $host_os in 6808 darwin*) 6809 lock_old_archive_extraction=yes ;; 6810 *) 6811 lock_old_archive_extraction=no ;; 6812esac 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852# If no C compiler was specified, use CC. 6853LTCC=${LTCC-"$CC"} 6854 6855# If no C compiler flags were specified, use CFLAGS. 6856LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6857 6858# Allow CC to be a program name with arguments. 6859compiler=$CC 6860 6861 6862# Check for command to grab the raw symbol name followed by C symbol from nm. 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6864$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6865if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 6869# These are sane defaults that work on at least a few old systems. 6870# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6871 6872# Character class describing NM global symbol codes. 6873symcode='[BCDEGRST]' 6874 6875# Regexp to match symbols that can be accessed directly from C. 6876sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6877 6878# Define system-specific variables. 6879case $host_os in 6880aix*) 6881 symcode='[BCDT]' 6882 ;; 6883cygwin* | mingw* | pw32* | cegcc*) 6884 symcode='[ABCDGISTW]' 6885 ;; 6886hpux*) 6887 if test ia64 = "$host_cpu"; then 6888 symcode='[ABCDEGRST]' 6889 fi 6890 ;; 6891irix* | nonstopux*) 6892 symcode='[BCDEGRST]' 6893 ;; 6894osf*) 6895 symcode='[BCDEGQRST]' 6896 ;; 6897solaris*) 6898 symcode='[BDRT]' 6899 ;; 6900sco3.2v5*) 6901 symcode='[DT]' 6902 ;; 6903sysv4.2uw2*) 6904 symcode='[DT]' 6905 ;; 6906sysv5* | sco5v6* | unixware* | OpenUNIX*) 6907 symcode='[ABDT]' 6908 ;; 6909sysv4) 6910 symcode='[DFNSTU]' 6911 ;; 6912esac 6913 6914# If we're using GNU nm, then use its standard symbol codes. 6915case `$NM -V 2>&1` in 6916*GNU* | *'with BFD'*) 6917 symcode='[ABCDGIRSTW]' ;; 6918esac 6919 6920if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6921 # Gets list of data symbols to import. 6922 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6923 # Adjust the below global symbol transforms to fixup imported variables. 6924 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6925 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6926 lt_c_name_lib_hook="\ 6927 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6928 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6929else 6930 # Disable hooks by default. 6931 lt_cv_sys_global_symbol_to_import= 6932 lt_cdecl_hook= 6933 lt_c_name_hook= 6934 lt_c_name_lib_hook= 6935fi 6936 6937# Transform an extracted symbol line into a proper C declaration. 6938# Some systems (esp. on ia64) link data and code symbols differently, 6939# so use this general approach. 6940lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6941$lt_cdecl_hook\ 6942" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6943" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6944 6945# Transform an extracted symbol line into symbol name and symbol address 6946lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6947$lt_c_name_hook\ 6948" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6949" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6950 6951# Transform an extracted symbol line into symbol name with lib prefix and 6952# symbol address. 6953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6954$lt_c_name_lib_hook\ 6955" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6956" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6957" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6958 6959# Handle CRLF in mingw tool chain 6960opt_cr= 6961case $build_os in 6962mingw*) 6963 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6964 ;; 6965esac 6966 6967# Try without a prefix underscore, then with it. 6968for ac_symprfx in "" "_"; do 6969 6970 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6971 symxfrm="\\1 $ac_symprfx\\2 \\2" 6972 6973 # Write the raw and C identifiers. 6974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6975 # Fake it for dumpbin and say T for any non-static function, 6976 # D for any global variable and I for any imported variable. 6977 # Also find C++ and __fastcall symbols from MSVC++, 6978 # which start with @ or ?. 6979 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6980" {last_section=section; section=\$ 3};"\ 6981" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6982" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6983" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6984" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6985" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6986" \$ 0!~/External *\|/{next};"\ 6987" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6988" {if(hide[section]) next};"\ 6989" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6990" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6991" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6992" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6993" ' prfx=^$ac_symprfx" 6994 else 6995 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6996 fi 6997 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6998 6999 # Check to see that the pipe works correctly. 7000 pipe_works=no 7001 7002 rm -f conftest* 7003 cat > conftest.$ac_ext <<_LT_EOF 7004#ifdef __cplusplus 7005extern "C" { 7006#endif 7007char nm_test_var; 7008void nm_test_func(void); 7009void nm_test_func(void){} 7010#ifdef __cplusplus 7011} 7012#endif 7013int main(){nm_test_var='a';nm_test_func();return(0);} 7014_LT_EOF 7015 7016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7017 (eval $ac_compile) 2>&5 7018 ac_status=$? 7019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7020 test $ac_status = 0; }; then 7021 # Now try to grab the symbols. 7022 nlist=conftest.nm 7023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7024 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7025 ac_status=$? 7026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7027 test $ac_status = 0; } && test -s "$nlist"; then 7028 # Try sorting and uniquifying the output. 7029 if sort "$nlist" | uniq > "$nlist"T; then 7030 mv -f "$nlist"T "$nlist" 7031 else 7032 rm -f "$nlist"T 7033 fi 7034 7035 # Make sure that we snagged all the symbols we need. 7036 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7037 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7038 cat <<_LT_EOF > conftest.$ac_ext 7039/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7040#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7041/* DATA imports from DLLs on WIN32 can't be const, because runtime 7042 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7043# define LT_DLSYM_CONST 7044#elif defined __osf__ 7045/* This system does not cope well with relocations in const data. */ 7046# define LT_DLSYM_CONST 7047#else 7048# define LT_DLSYM_CONST const 7049#endif 7050 7051#ifdef __cplusplus 7052extern "C" { 7053#endif 7054 7055_LT_EOF 7056 # Now generate the symbol file. 7057 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7058 7059 cat <<_LT_EOF >> conftest.$ac_ext 7060 7061/* The mapping between symbol names and symbols. */ 7062LT_DLSYM_CONST struct { 7063 const char *name; 7064 void *address; 7065} 7066lt__PROGRAM__LTX_preloaded_symbols[] = 7067{ 7068 { "@PROGRAM@", (void *) 0 }, 7069_LT_EOF 7070 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7071 cat <<\_LT_EOF >> conftest.$ac_ext 7072 {0, (void *) 0} 7073}; 7074 7075/* This works around a problem in FreeBSD linker */ 7076#ifdef FREEBSD_WORKAROUND 7077static const void *lt_preloaded_setup() { 7078 return lt__PROGRAM__LTX_preloaded_symbols; 7079} 7080#endif 7081 7082#ifdef __cplusplus 7083} 7084#endif 7085_LT_EOF 7086 # Now try linking the two files. 7087 mv conftest.$ac_objext conftstm.$ac_objext 7088 lt_globsym_save_LIBS=$LIBS 7089 lt_globsym_save_CFLAGS=$CFLAGS 7090 LIBS=conftstm.$ac_objext 7091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7093 (eval $ac_link) 2>&5 7094 ac_status=$? 7095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7096 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7097 pipe_works=yes 7098 fi 7099 LIBS=$lt_globsym_save_LIBS 7100 CFLAGS=$lt_globsym_save_CFLAGS 7101 else 7102 echo "cannot find nm_test_func in $nlist" >&5 7103 fi 7104 else 7105 echo "cannot find nm_test_var in $nlist" >&5 7106 fi 7107 else 7108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7109 fi 7110 else 7111 echo "$progname: failed program was:" >&5 7112 cat conftest.$ac_ext >&5 7113 fi 7114 rm -rf conftest* conftst* 7115 7116 # Do not use the global_symbol_pipe unless it works. 7117 if test yes = "$pipe_works"; then 7118 break 7119 else 7120 lt_cv_sys_global_symbol_pipe= 7121 fi 7122done 7123 7124fi 7125 7126if test -z "$lt_cv_sys_global_symbol_pipe"; then 7127 lt_cv_sys_global_symbol_to_cdecl= 7128fi 7129if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7131$as_echo "failed" >&6; } 7132else 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7134$as_echo "ok" >&6; } 7135fi 7136 7137# Response file support. 7138if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7139 nm_file_list_spec='@' 7140elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7141 nm_file_list_spec='@' 7142fi 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7181$as_echo_n "checking for sysroot... " >&6; } 7182 7183# Check whether --with-sysroot was given. 7184if test "${with_sysroot+set}" = set; then : 7185 withval=$with_sysroot; 7186else 7187 with_sysroot=no 7188fi 7189 7190 7191lt_sysroot= 7192case $with_sysroot in #( 7193 yes) 7194 if test yes = "$GCC"; then 7195 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7196 fi 7197 ;; #( 7198 /*) 7199 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7200 ;; #( 7201 no|'') 7202 ;; #( 7203 *) 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7205$as_echo "$with_sysroot" >&6; } 7206 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7207 ;; 7208esac 7209 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7211$as_echo "${lt_sysroot:-no}" >&6; } 7212 7213 7214 7215 7216 7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7218$as_echo_n "checking for a working dd... " >&6; } 7219if ${ac_cv_path_lt_DD+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 printf 0123456789abcdef0123456789abcdef >conftest.i 7223cat conftest.i conftest.i >conftest2.i 7224: ${lt_DD:=$DD} 7225if test -z "$lt_DD"; then 7226 ac_path_lt_DD_found=false 7227 # Loop through the user's path and test for each of PROGNAME-LIST 7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229for as_dir in $PATH 7230do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_prog in dd; do 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7236 as_fn_executable_p "$ac_path_lt_DD" || continue 7237if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7238 cmp -s conftest.i conftest.out \ 7239 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7240fi 7241 $ac_path_lt_DD_found && break 3 7242 done 7243 done 7244 done 7245IFS=$as_save_IFS 7246 if test -z "$ac_cv_path_lt_DD"; then 7247 : 7248 fi 7249else 7250 ac_cv_path_lt_DD=$lt_DD 7251fi 7252 7253rm -f conftest.i conftest2.i conftest.out 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7256$as_echo "$ac_cv_path_lt_DD" >&6; } 7257 7258 7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7260$as_echo_n "checking how to truncate binary pipes... " >&6; } 7261if ${lt_cv_truncate_bin+:} false; then : 7262 $as_echo_n "(cached) " >&6 7263else 7264 printf 0123456789abcdef0123456789abcdef >conftest.i 7265cat conftest.i conftest.i >conftest2.i 7266lt_cv_truncate_bin= 7267if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7268 cmp -s conftest.i conftest.out \ 7269 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7270fi 7271rm -f conftest.i conftest2.i conftest.out 7272test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7273fi 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7275$as_echo "$lt_cv_truncate_bin" >&6; } 7276 7277 7278 7279 7280 7281 7282 7283# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7284func_cc_basename () 7285{ 7286 for cc_temp in $*""; do 7287 case $cc_temp in 7288 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7289 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7290 \-*) ;; 7291 *) break;; 7292 esac 7293 done 7294 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7295} 7296 7297# Check whether --enable-libtool-lock was given. 7298if test "${enable_libtool_lock+set}" = set; then : 7299 enableval=$enable_libtool_lock; 7300fi 7301 7302test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7303 7304# Some flags need to be propagated to the compiler or linker for good 7305# libtool support. 7306case $host in 7307ia64-*-hpux*) 7308 # Find out what ABI is being produced by ac_compile, and set mode 7309 # options accordingly. 7310 echo 'int i;' > conftest.$ac_ext 7311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7312 (eval $ac_compile) 2>&5 7313 ac_status=$? 7314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7315 test $ac_status = 0; }; then 7316 case `/usr/bin/file conftest.$ac_objext` in 7317 *ELF-32*) 7318 HPUX_IA64_MODE=32 7319 ;; 7320 *ELF-64*) 7321 HPUX_IA64_MODE=64 7322 ;; 7323 esac 7324 fi 7325 rm -rf conftest* 7326 ;; 7327*-*-irix6*) 7328 # Find out what ABI is being produced by ac_compile, and set linker 7329 # options accordingly. 7330 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7332 (eval $ac_compile) 2>&5 7333 ac_status=$? 7334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7335 test $ac_status = 0; }; then 7336 if test yes = "$lt_cv_prog_gnu_ld"; then 7337 case `/usr/bin/file conftest.$ac_objext` in 7338 *32-bit*) 7339 LD="${LD-ld} -melf32bsmip" 7340 ;; 7341 *N32*) 7342 LD="${LD-ld} -melf32bmipn32" 7343 ;; 7344 *64-bit*) 7345 LD="${LD-ld} -melf64bmip" 7346 ;; 7347 esac 7348 else 7349 case `/usr/bin/file conftest.$ac_objext` in 7350 *32-bit*) 7351 LD="${LD-ld} -32" 7352 ;; 7353 *N32*) 7354 LD="${LD-ld} -n32" 7355 ;; 7356 *64-bit*) 7357 LD="${LD-ld} -64" 7358 ;; 7359 esac 7360 fi 7361 fi 7362 rm -rf conftest* 7363 ;; 7364 7365mips64*-*linux*) 7366 # Find out what ABI is being produced by ac_compile, and set linker 7367 # options accordingly. 7368 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7370 (eval $ac_compile) 2>&5 7371 ac_status=$? 7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7373 test $ac_status = 0; }; then 7374 emul=elf 7375 case `/usr/bin/file conftest.$ac_objext` in 7376 *32-bit*) 7377 emul="${emul}32" 7378 ;; 7379 *64-bit*) 7380 emul="${emul}64" 7381 ;; 7382 esac 7383 case `/usr/bin/file conftest.$ac_objext` in 7384 *MSB*) 7385 emul="${emul}btsmip" 7386 ;; 7387 *LSB*) 7388 emul="${emul}ltsmip" 7389 ;; 7390 esac 7391 case `/usr/bin/file conftest.$ac_objext` in 7392 *N32*) 7393 emul="${emul}n32" 7394 ;; 7395 esac 7396 LD="${LD-ld} -m $emul" 7397 fi 7398 rm -rf conftest* 7399 ;; 7400 7401x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7402s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7403 # Find out what ABI is being produced by ac_compile, and set linker 7404 # options accordingly. Note that the listed cases only cover the 7405 # situations where additional linker options are needed (such as when 7406 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7407 # vice versa); the common cases where no linker options are needed do 7408 # not appear in the list. 7409 echo 'int i;' > conftest.$ac_ext 7410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7411 (eval $ac_compile) 2>&5 7412 ac_status=$? 7413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7414 test $ac_status = 0; }; then 7415 case `/usr/bin/file conftest.o` in 7416 *32-bit*) 7417 case $host in 7418 x86_64-*kfreebsd*-gnu) 7419 LD="${LD-ld} -m elf_i386_fbsd" 7420 ;; 7421 x86_64-*linux*) 7422 case `/usr/bin/file conftest.o` in 7423 *x86-64*) 7424 LD="${LD-ld} -m elf32_x86_64" 7425 ;; 7426 *) 7427 LD="${LD-ld} -m elf_i386" 7428 ;; 7429 esac 7430 ;; 7431 powerpc64le-*linux*) 7432 LD="${LD-ld} -m elf32lppclinux" 7433 ;; 7434 powerpc64-*linux*) 7435 LD="${LD-ld} -m elf32ppclinux" 7436 ;; 7437 s390x-*linux*) 7438 LD="${LD-ld} -m elf_s390" 7439 ;; 7440 sparc64-*linux*) 7441 LD="${LD-ld} -m elf32_sparc" 7442 ;; 7443 esac 7444 ;; 7445 *64-bit*) 7446 case $host in 7447 x86_64-*kfreebsd*-gnu) 7448 LD="${LD-ld} -m elf_x86_64_fbsd" 7449 ;; 7450 x86_64-*linux*) 7451 LD="${LD-ld} -m elf_x86_64" 7452 ;; 7453 powerpcle-*linux*) 7454 LD="${LD-ld} -m elf64lppc" 7455 ;; 7456 powerpc-*linux*) 7457 LD="${LD-ld} -m elf64ppc" 7458 ;; 7459 s390*-*linux*|s390*-*tpf*) 7460 LD="${LD-ld} -m elf64_s390" 7461 ;; 7462 sparc*-*linux*) 7463 LD="${LD-ld} -m elf64_sparc" 7464 ;; 7465 esac 7466 ;; 7467 esac 7468 fi 7469 rm -rf conftest* 7470 ;; 7471 7472*-*-sco3.2v5*) 7473 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7474 SAVE_CFLAGS=$CFLAGS 7475 CFLAGS="$CFLAGS -belf" 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7477$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7478if ${lt_cv_cc_needs_belf+:} false; then : 7479 $as_echo_n "(cached) " >&6 7480else 7481 ac_ext=c 7482ac_cpp='$CPP $CPPFLAGS' 7483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7485ac_compiler_gnu=$ac_cv_c_compiler_gnu 7486 7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7488/* end confdefs.h. */ 7489 7490int 7491main () 7492{ 7493 7494 ; 7495 return 0; 7496} 7497_ACEOF 7498if ac_fn_c_try_link "$LINENO"; then : 7499 lt_cv_cc_needs_belf=yes 7500else 7501 lt_cv_cc_needs_belf=no 7502fi 7503rm -f core conftest.err conftest.$ac_objext \ 7504 conftest$ac_exeext conftest.$ac_ext 7505 ac_ext=c 7506ac_cpp='$CPP $CPPFLAGS' 7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7509ac_compiler_gnu=$ac_cv_c_compiler_gnu 7510 7511fi 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7513$as_echo "$lt_cv_cc_needs_belf" >&6; } 7514 if test yes != "$lt_cv_cc_needs_belf"; then 7515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7516 CFLAGS=$SAVE_CFLAGS 7517 fi 7518 ;; 7519*-*solaris*) 7520 # Find out what ABI is being produced by ac_compile, and set linker 7521 # options accordingly. 7522 echo 'int i;' > conftest.$ac_ext 7523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7524 (eval $ac_compile) 2>&5 7525 ac_status=$? 7526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7527 test $ac_status = 0; }; then 7528 case `/usr/bin/file conftest.o` in 7529 *64-bit*) 7530 case $lt_cv_prog_gnu_ld in 7531 yes*) 7532 case $host in 7533 i?86-*-solaris*|x86_64-*-solaris*) 7534 LD="${LD-ld} -m elf_x86_64" 7535 ;; 7536 sparc*-*-solaris*) 7537 LD="${LD-ld} -m elf64_sparc" 7538 ;; 7539 esac 7540 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7541 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7542 LD=${LD-ld}_sol2 7543 fi 7544 ;; 7545 *) 7546 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7547 LD="${LD-ld} -64" 7548 fi 7549 ;; 7550 esac 7551 ;; 7552 esac 7553 fi 7554 rm -rf conftest* 7555 ;; 7556esac 7557 7558need_locks=$enable_libtool_lock 7559 7560if test -n "$ac_tool_prefix"; then 7561 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7562set dummy ${ac_tool_prefix}mt; ac_word=$2 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564$as_echo_n "checking for $ac_word... " >&6; } 7565if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 if test -n "$MANIFEST_TOOL"; then 7569 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 test -z "$as_dir" && as_dir=. 7576 for ac_exec_ext in '' $ac_executable_extensions; do 7577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7578 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7580 break 2 7581 fi 7582done 7583 done 7584IFS=$as_save_IFS 7585 7586fi 7587fi 7588MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7589if test -n "$MANIFEST_TOOL"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7591$as_echo "$MANIFEST_TOOL" >&6; } 7592else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594$as_echo "no" >&6; } 7595fi 7596 7597 7598fi 7599if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7600 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7601 # Extract the first word of "mt", so it can be a program name with args. 7602set dummy mt; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 if test -n "$ac_ct_MANIFEST_TOOL"; then 7609 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7618 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623 done 7624IFS=$as_save_IFS 7625 7626fi 7627fi 7628ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7629if test -n "$ac_ct_MANIFEST_TOOL"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7631$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7638 MANIFEST_TOOL=":" 7639 else 7640 case $cross_compiling:$ac_tool_warned in 7641yes:) 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7644ac_tool_warned=yes ;; 7645esac 7646 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7647 fi 7648else 7649 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7650fi 7651 7652test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7654$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7655if ${lt_cv_path_mainfest_tool+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 lt_cv_path_mainfest_tool=no 7659 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7660 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7661 cat conftest.err >&5 7662 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7663 lt_cv_path_mainfest_tool=yes 7664 fi 7665 rm -f conftest* 7666fi 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7668$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7669if test yes != "$lt_cv_path_mainfest_tool"; then 7670 MANIFEST_TOOL=: 7671fi 7672 7673 7674 7675 7676 7677 7678 case $host_os in 7679 rhapsody* | darwin*) 7680 if test -n "$ac_tool_prefix"; then 7681 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7682set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7684$as_echo_n "checking for $ac_word... " >&6; } 7685if ${ac_cv_prog_DSYMUTIL+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 if test -n "$DSYMUTIL"; then 7689 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7690else 7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7692for as_dir in $PATH 7693do 7694 IFS=$as_save_IFS 7695 test -z "$as_dir" && as_dir=. 7696 for ac_exec_ext in '' $ac_executable_extensions; do 7697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7698 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7700 break 2 7701 fi 7702done 7703 done 7704IFS=$as_save_IFS 7705 7706fi 7707fi 7708DSYMUTIL=$ac_cv_prog_DSYMUTIL 7709if test -n "$DSYMUTIL"; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7711$as_echo "$DSYMUTIL" >&6; } 7712else 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7714$as_echo "no" >&6; } 7715fi 7716 7717 7718fi 7719if test -z "$ac_cv_prog_DSYMUTIL"; then 7720 ac_ct_DSYMUTIL=$DSYMUTIL 7721 # Extract the first word of "dsymutil", so it can be a program name with args. 7722set dummy dsymutil; ac_word=$2 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7724$as_echo_n "checking for $ac_word... " >&6; } 7725if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7726 $as_echo_n "(cached) " >&6 7727else 7728 if test -n "$ac_ct_DSYMUTIL"; then 7729 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7730else 7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7732for as_dir in $PATH 7733do 7734 IFS=$as_save_IFS 7735 test -z "$as_dir" && as_dir=. 7736 for ac_exec_ext in '' $ac_executable_extensions; do 7737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7738 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7740 break 2 7741 fi 7742done 7743 done 7744IFS=$as_save_IFS 7745 7746fi 7747fi 7748ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7749if test -n "$ac_ct_DSYMUTIL"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7751$as_echo "$ac_ct_DSYMUTIL" >&6; } 7752else 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7754$as_echo "no" >&6; } 7755fi 7756 7757 if test "x$ac_ct_DSYMUTIL" = x; then 7758 DSYMUTIL=":" 7759 else 7760 case $cross_compiling:$ac_tool_warned in 7761yes:) 7762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7764ac_tool_warned=yes ;; 7765esac 7766 DSYMUTIL=$ac_ct_DSYMUTIL 7767 fi 7768else 7769 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7770fi 7771 7772 if test -n "$ac_tool_prefix"; then 7773 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7774set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7776$as_echo_n "checking for $ac_word... " >&6; } 7777if ${ac_cv_prog_NMEDIT+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 if test -n "$NMEDIT"; then 7781 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7782else 7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7784for as_dir in $PATH 7785do 7786 IFS=$as_save_IFS 7787 test -z "$as_dir" && as_dir=. 7788 for ac_exec_ext in '' $ac_executable_extensions; do 7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7790 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7792 break 2 7793 fi 7794done 7795 done 7796IFS=$as_save_IFS 7797 7798fi 7799fi 7800NMEDIT=$ac_cv_prog_NMEDIT 7801if test -n "$NMEDIT"; then 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7803$as_echo "$NMEDIT" >&6; } 7804else 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7806$as_echo "no" >&6; } 7807fi 7808 7809 7810fi 7811if test -z "$ac_cv_prog_NMEDIT"; then 7812 ac_ct_NMEDIT=$NMEDIT 7813 # Extract the first word of "nmedit", so it can be a program name with args. 7814set dummy nmedit; ac_word=$2 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7816$as_echo_n "checking for $ac_word... " >&6; } 7817if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7818 $as_echo_n "(cached) " >&6 7819else 7820 if test -n "$ac_ct_NMEDIT"; then 7821 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7822else 7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7824for as_dir in $PATH 7825do 7826 IFS=$as_save_IFS 7827 test -z "$as_dir" && as_dir=. 7828 for ac_exec_ext in '' $ac_executable_extensions; do 7829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7830 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7832 break 2 7833 fi 7834done 7835 done 7836IFS=$as_save_IFS 7837 7838fi 7839fi 7840ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7841if test -n "$ac_ct_NMEDIT"; then 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7843$as_echo "$ac_ct_NMEDIT" >&6; } 7844else 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7846$as_echo "no" >&6; } 7847fi 7848 7849 if test "x$ac_ct_NMEDIT" = x; then 7850 NMEDIT=":" 7851 else 7852 case $cross_compiling:$ac_tool_warned in 7853yes:) 7854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7856ac_tool_warned=yes ;; 7857esac 7858 NMEDIT=$ac_ct_NMEDIT 7859 fi 7860else 7861 NMEDIT="$ac_cv_prog_NMEDIT" 7862fi 7863 7864 if test -n "$ac_tool_prefix"; then 7865 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7866set dummy ${ac_tool_prefix}lipo; ac_word=$2 7867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7868$as_echo_n "checking for $ac_word... " >&6; } 7869if ${ac_cv_prog_LIPO+:} false; then : 7870 $as_echo_n "(cached) " >&6 7871else 7872 if test -n "$LIPO"; then 7873 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7874else 7875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7876for as_dir in $PATH 7877do 7878 IFS=$as_save_IFS 7879 test -z "$as_dir" && as_dir=. 7880 for ac_exec_ext in '' $ac_executable_extensions; do 7881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7882 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7884 break 2 7885 fi 7886done 7887 done 7888IFS=$as_save_IFS 7889 7890fi 7891fi 7892LIPO=$ac_cv_prog_LIPO 7893if test -n "$LIPO"; then 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7895$as_echo "$LIPO" >&6; } 7896else 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7898$as_echo "no" >&6; } 7899fi 7900 7901 7902fi 7903if test -z "$ac_cv_prog_LIPO"; then 7904 ac_ct_LIPO=$LIPO 7905 # Extract the first word of "lipo", so it can be a program name with args. 7906set dummy lipo; ac_word=$2 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7908$as_echo_n "checking for $ac_word... " >&6; } 7909if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7910 $as_echo_n "(cached) " >&6 7911else 7912 if test -n "$ac_ct_LIPO"; then 7913 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7914else 7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7916for as_dir in $PATH 7917do 7918 IFS=$as_save_IFS 7919 test -z "$as_dir" && as_dir=. 7920 for ac_exec_ext in '' $ac_executable_extensions; do 7921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7922 ac_cv_prog_ac_ct_LIPO="lipo" 7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7924 break 2 7925 fi 7926done 7927 done 7928IFS=$as_save_IFS 7929 7930fi 7931fi 7932ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7933if test -n "$ac_ct_LIPO"; then 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7935$as_echo "$ac_ct_LIPO" >&6; } 7936else 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7938$as_echo "no" >&6; } 7939fi 7940 7941 if test "x$ac_ct_LIPO" = x; then 7942 LIPO=":" 7943 else 7944 case $cross_compiling:$ac_tool_warned in 7945yes:) 7946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7948ac_tool_warned=yes ;; 7949esac 7950 LIPO=$ac_ct_LIPO 7951 fi 7952else 7953 LIPO="$ac_cv_prog_LIPO" 7954fi 7955 7956 if test -n "$ac_tool_prefix"; then 7957 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7958set dummy ${ac_tool_prefix}otool; ac_word=$2 7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7960$as_echo_n "checking for $ac_word... " >&6; } 7961if ${ac_cv_prog_OTOOL+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 if test -n "$OTOOL"; then 7965 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7966else 7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7968for as_dir in $PATH 7969do 7970 IFS=$as_save_IFS 7971 test -z "$as_dir" && as_dir=. 7972 for ac_exec_ext in '' $ac_executable_extensions; do 7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7974 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7976 break 2 7977 fi 7978done 7979 done 7980IFS=$as_save_IFS 7981 7982fi 7983fi 7984OTOOL=$ac_cv_prog_OTOOL 7985if test -n "$OTOOL"; then 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7987$as_echo "$OTOOL" >&6; } 7988else 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7990$as_echo "no" >&6; } 7991fi 7992 7993 7994fi 7995if test -z "$ac_cv_prog_OTOOL"; then 7996 ac_ct_OTOOL=$OTOOL 7997 # Extract the first word of "otool", so it can be a program name with args. 7998set dummy otool; ac_word=$2 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8000$as_echo_n "checking for $ac_word... " >&6; } 8001if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8002 $as_echo_n "(cached) " >&6 8003else 8004 if test -n "$ac_ct_OTOOL"; then 8005 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8006else 8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8008for as_dir in $PATH 8009do 8010 IFS=$as_save_IFS 8011 test -z "$as_dir" && as_dir=. 8012 for ac_exec_ext in '' $ac_executable_extensions; do 8013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8014 ac_cv_prog_ac_ct_OTOOL="otool" 8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8016 break 2 8017 fi 8018done 8019 done 8020IFS=$as_save_IFS 8021 8022fi 8023fi 8024ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8025if test -n "$ac_ct_OTOOL"; then 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8027$as_echo "$ac_ct_OTOOL" >&6; } 8028else 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8030$as_echo "no" >&6; } 8031fi 8032 8033 if test "x$ac_ct_OTOOL" = x; then 8034 OTOOL=":" 8035 else 8036 case $cross_compiling:$ac_tool_warned in 8037yes:) 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8040ac_tool_warned=yes ;; 8041esac 8042 OTOOL=$ac_ct_OTOOL 8043 fi 8044else 8045 OTOOL="$ac_cv_prog_OTOOL" 8046fi 8047 8048 if test -n "$ac_tool_prefix"; then 8049 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8050set dummy ${ac_tool_prefix}otool64; ac_word=$2 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8052$as_echo_n "checking for $ac_word... " >&6; } 8053if ${ac_cv_prog_OTOOL64+:} false; then : 8054 $as_echo_n "(cached) " >&6 8055else 8056 if test -n "$OTOOL64"; then 8057 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8058else 8059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH 8061do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8066 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8068 break 2 8069 fi 8070done 8071 done 8072IFS=$as_save_IFS 8073 8074fi 8075fi 8076OTOOL64=$ac_cv_prog_OTOOL64 8077if test -n "$OTOOL64"; then 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8079$as_echo "$OTOOL64" >&6; } 8080else 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8082$as_echo "no" >&6; } 8083fi 8084 8085 8086fi 8087if test -z "$ac_cv_prog_OTOOL64"; then 8088 ac_ct_OTOOL64=$OTOOL64 8089 # Extract the first word of "otool64", so it can be a program name with args. 8090set dummy otool64; ac_word=$2 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8092$as_echo_n "checking for $ac_word... " >&6; } 8093if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095else 8096 if test -n "$ac_ct_OTOOL64"; then 8097 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8098else 8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8100for as_dir in $PATH 8101do 8102 IFS=$as_save_IFS 8103 test -z "$as_dir" && as_dir=. 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8106 ac_cv_prog_ac_ct_OTOOL64="otool64" 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110done 8111 done 8112IFS=$as_save_IFS 8113 8114fi 8115fi 8116ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8117if test -n "$ac_ct_OTOOL64"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8119$as_echo "$ac_ct_OTOOL64" >&6; } 8120else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122$as_echo "no" >&6; } 8123fi 8124 8125 if test "x$ac_ct_OTOOL64" = x; then 8126 OTOOL64=":" 8127 else 8128 case $cross_compiling:$ac_tool_warned in 8129yes:) 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8132ac_tool_warned=yes ;; 8133esac 8134 OTOOL64=$ac_ct_OTOOL64 8135 fi 8136else 8137 OTOOL64="$ac_cv_prog_OTOOL64" 8138fi 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8167$as_echo_n "checking for -single_module linker flag... " >&6; } 8168if ${lt_cv_apple_cc_single_mod+:} false; then : 8169 $as_echo_n "(cached) " >&6 8170else 8171 lt_cv_apple_cc_single_mod=no 8172 if test -z "$LT_MULTI_MODULE"; then 8173 # By default we will add the -single_module flag. You can override 8174 # by either setting the environment variable LT_MULTI_MODULE 8175 # non-empty at configure time, or by adding -multi_module to the 8176 # link flags. 8177 rm -rf libconftest.dylib* 8178 echo "int foo(void){return 1;}" > conftest.c 8179 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8180-dynamiclib -Wl,-single_module conftest.c" >&5 8181 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8182 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8183 _lt_result=$? 8184 # If there is a non-empty error log, and "single_module" 8185 # appears in it, assume the flag caused a linker warning 8186 if test -s conftest.err && $GREP single_module conftest.err; then 8187 cat conftest.err >&5 8188 # Otherwise, if the output was created with a 0 exit code from 8189 # the compiler, it worked. 8190 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8191 lt_cv_apple_cc_single_mod=yes 8192 else 8193 cat conftest.err >&5 8194 fi 8195 rm -rf libconftest.dylib* 8196 rm -f conftest.* 8197 fi 8198fi 8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8200$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8201 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8203$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8204if ${lt_cv_ld_exported_symbols_list+:} false; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 lt_cv_ld_exported_symbols_list=no 8208 save_LDFLAGS=$LDFLAGS 8209 echo "_main" > conftest.sym 8210 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8212/* end confdefs.h. */ 8213 8214int 8215main () 8216{ 8217 8218 ; 8219 return 0; 8220} 8221_ACEOF 8222if ac_fn_c_try_link "$LINENO"; then : 8223 lt_cv_ld_exported_symbols_list=yes 8224else 8225 lt_cv_ld_exported_symbols_list=no 8226fi 8227rm -f core conftest.err conftest.$ac_objext \ 8228 conftest$ac_exeext conftest.$ac_ext 8229 LDFLAGS=$save_LDFLAGS 8230 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8233$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8234 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8236$as_echo_n "checking for -force_load linker flag... " >&6; } 8237if ${lt_cv_ld_force_load+:} false; then : 8238 $as_echo_n "(cached) " >&6 8239else 8240 lt_cv_ld_force_load=no 8241 cat > conftest.c << _LT_EOF 8242int forced_loaded() { return 2;} 8243_LT_EOF 8244 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8245 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8246 echo "$AR cru libconftest.a conftest.o" >&5 8247 $AR cru libconftest.a conftest.o 2>&5 8248 echo "$RANLIB libconftest.a" >&5 8249 $RANLIB libconftest.a 2>&5 8250 cat > conftest.c << _LT_EOF 8251int main() { return 0;} 8252_LT_EOF 8253 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8254 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8255 _lt_result=$? 8256 if test -s conftest.err && $GREP force_load conftest.err; then 8257 cat conftest.err >&5 8258 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8259 lt_cv_ld_force_load=yes 8260 else 8261 cat conftest.err >&5 8262 fi 8263 rm -f conftest.err libconftest.a conftest conftest.c 8264 rm -rf conftest.dSYM 8265 8266fi 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8268$as_echo "$lt_cv_ld_force_load" >&6; } 8269 case $host_os in 8270 rhapsody* | darwin1.[012]) 8271 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8272 darwin1.*) 8273 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8274 darwin*) # darwin 5.x on 8275 # if running on 10.5 or later, the deployment target defaults 8276 # to the OS version, if on x86, and 10.4, the deployment 8277 # target defaults to 10.4. Don't you love it? 8278 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8279 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8280 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8281 10.[012][,.]*) 8282 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8283 10.*) 8284 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8285 esac 8286 ;; 8287 esac 8288 if test yes = "$lt_cv_apple_cc_single_mod"; then 8289 _lt_dar_single_mod='$single_module' 8290 fi 8291 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8292 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8293 else 8294 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8295 fi 8296 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8297 _lt_dsymutil='~$DSYMUTIL $lib || :' 8298 else 8299 _lt_dsymutil= 8300 fi 8301 ;; 8302 esac 8303 8304# func_munge_path_list VARIABLE PATH 8305# ----------------------------------- 8306# VARIABLE is name of variable containing _space_ separated list of 8307# directories to be munged by the contents of PATH, which is string 8308# having a format: 8309# "DIR[:DIR]:" 8310# string "DIR[ DIR]" will be prepended to VARIABLE 8311# ":DIR[:DIR]" 8312# string "DIR[ DIR]" will be appended to VARIABLE 8313# "DIRP[:DIRP]::[DIRA:]DIRA" 8314# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8315# "DIRA[ DIRA]" will be appended to VARIABLE 8316# "DIR[:DIR]" 8317# VARIABLE will be replaced by "DIR[ DIR]" 8318func_munge_path_list () 8319{ 8320 case x$2 in 8321 x) 8322 ;; 8323 *:) 8324 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8325 ;; 8326 x:*) 8327 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8328 ;; 8329 *::*) 8330 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8331 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8332 ;; 8333 *) 8334 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8335 ;; 8336 esac 8337} 8338 8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8340$as_echo_n "checking for ANSI C header files... " >&6; } 8341if ${ac_cv_header_stdc+:} false; then : 8342 $as_echo_n "(cached) " >&6 8343else 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346#include <stdlib.h> 8347#include <stdarg.h> 8348#include <string.h> 8349#include <float.h> 8350 8351int 8352main () 8353{ 8354 8355 ; 8356 return 0; 8357} 8358_ACEOF 8359if ac_fn_c_try_compile "$LINENO"; then : 8360 ac_cv_header_stdc=yes 8361else 8362 ac_cv_header_stdc=no 8363fi 8364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8365 8366if test $ac_cv_header_stdc = yes; then 8367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370#include <string.h> 8371 8372_ACEOF 8373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8374 $EGREP "memchr" >/dev/null 2>&1; then : 8375 8376else 8377 ac_cv_header_stdc=no 8378fi 8379rm -f conftest* 8380 8381fi 8382 8383if test $ac_cv_header_stdc = yes; then 8384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386/* end confdefs.h. */ 8387#include <stdlib.h> 8388 8389_ACEOF 8390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8391 $EGREP "free" >/dev/null 2>&1; then : 8392 8393else 8394 ac_cv_header_stdc=no 8395fi 8396rm -f conftest* 8397 8398fi 8399 8400if test $ac_cv_header_stdc = yes; then 8401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8402 if test "$cross_compiling" = yes; then : 8403 : 8404else 8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8406/* end confdefs.h. */ 8407#include <ctype.h> 8408#include <stdlib.h> 8409#if ((' ' & 0x0FF) == 0x020) 8410# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8411# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8412#else 8413# define ISLOWER(c) \ 8414 (('a' <= (c) && (c) <= 'i') \ 8415 || ('j' <= (c) && (c) <= 'r') \ 8416 || ('s' <= (c) && (c) <= 'z')) 8417# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8418#endif 8419 8420#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8421int 8422main () 8423{ 8424 int i; 8425 for (i = 0; i < 256; i++) 8426 if (XOR (islower (i), ISLOWER (i)) 8427 || toupper (i) != TOUPPER (i)) 8428 return 2; 8429 return 0; 8430} 8431_ACEOF 8432if ac_fn_c_try_run "$LINENO"; then : 8433 8434else 8435 ac_cv_header_stdc=no 8436fi 8437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8438 conftest.$ac_objext conftest.beam conftest.$ac_ext 8439fi 8440 8441fi 8442fi 8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8444$as_echo "$ac_cv_header_stdc" >&6; } 8445if test $ac_cv_header_stdc = yes; then 8446 8447$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8448 8449fi 8450 8451# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8452for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8453 inttypes.h stdint.h unistd.h 8454do : 8455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8456ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8457" 8458if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8459 cat >>confdefs.h <<_ACEOF 8460#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8461_ACEOF 8462 8463fi 8464 8465done 8466 8467 8468for ac_header in dlfcn.h 8469do : 8470 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8471" 8472if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8473 cat >>confdefs.h <<_ACEOF 8474#define HAVE_DLFCN_H 1 8475_ACEOF 8476 8477fi 8478 8479done 8480 8481 8482 8483 8484 8485# Set options 8486# Check whether --enable-static was given. 8487if test "${enable_static+set}" = set; then : 8488 enableval=$enable_static; p=${PACKAGE-default} 8489 case $enableval in 8490 yes) enable_static=yes ;; 8491 no) enable_static=no ;; 8492 *) 8493 enable_static=no 8494 # Look at the argument we got. We use all the common list separators. 8495 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8496 for pkg in $enableval; do 8497 IFS=$lt_save_ifs 8498 if test "X$pkg" = "X$p"; then 8499 enable_static=yes 8500 fi 8501 done 8502 IFS=$lt_save_ifs 8503 ;; 8504 esac 8505else 8506 enable_static=no 8507fi 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 enable_dlopen=no 8519 8520 8521 enable_win32_dll=no 8522 8523 8524 # Check whether --enable-shared was given. 8525if test "${enable_shared+set}" = set; then : 8526 enableval=$enable_shared; p=${PACKAGE-default} 8527 case $enableval in 8528 yes) enable_shared=yes ;; 8529 no) enable_shared=no ;; 8530 *) 8531 enable_shared=no 8532 # Look at the argument we got. We use all the common list separators. 8533 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8534 for pkg in $enableval; do 8535 IFS=$lt_save_ifs 8536 if test "X$pkg" = "X$p"; then 8537 enable_shared=yes 8538 fi 8539 done 8540 IFS=$lt_save_ifs 8541 ;; 8542 esac 8543else 8544 enable_shared=yes 8545fi 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557# Check whether --with-pic was given. 8558if test "${with_pic+set}" = set; then : 8559 withval=$with_pic; lt_p=${PACKAGE-default} 8560 case $withval in 8561 yes|no) pic_mode=$withval ;; 8562 *) 8563 pic_mode=default 8564 # Look at the argument we got. We use all the common list separators. 8565 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8566 for lt_pkg in $withval; do 8567 IFS=$lt_save_ifs 8568 if test "X$lt_pkg" = "X$lt_p"; then 8569 pic_mode=yes 8570 fi 8571 done 8572 IFS=$lt_save_ifs 8573 ;; 8574 esac 8575else 8576 pic_mode=default 8577fi 8578 8579 8580 8581 8582 8583 8584 8585 8586 # Check whether --enable-fast-install was given. 8587if test "${enable_fast_install+set}" = set; then : 8588 enableval=$enable_fast_install; p=${PACKAGE-default} 8589 case $enableval in 8590 yes) enable_fast_install=yes ;; 8591 no) enable_fast_install=no ;; 8592 *) 8593 enable_fast_install=no 8594 # Look at the argument we got. We use all the common list separators. 8595 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8596 for pkg in $enableval; do 8597 IFS=$lt_save_ifs 8598 if test "X$pkg" = "X$p"; then 8599 enable_fast_install=yes 8600 fi 8601 done 8602 IFS=$lt_save_ifs 8603 ;; 8604 esac 8605else 8606 enable_fast_install=yes 8607fi 8608 8609 8610 8611 8612 8613 8614 8615 8616 shared_archive_member_spec= 8617case $host,$enable_shared in 8618power*-*-aix[5-9]*,yes) 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8620$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8621 8622# Check whether --with-aix-soname was given. 8623if test "${with_aix_soname+set}" = set; then : 8624 withval=$with_aix_soname; case $withval in 8625 aix|svr4|both) 8626 ;; 8627 *) 8628 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8629 ;; 8630 esac 8631 lt_cv_with_aix_soname=$with_aix_soname 8632else 8633 if ${lt_cv_with_aix_soname+:} false; then : 8634 $as_echo_n "(cached) " >&6 8635else 8636 lt_cv_with_aix_soname=aix 8637fi 8638 8639 with_aix_soname=$lt_cv_with_aix_soname 8640fi 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8643$as_echo "$with_aix_soname" >&6; } 8644 if test aix != "$with_aix_soname"; then 8645 # For the AIX way of multilib, we name the shared archive member 8646 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8647 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8648 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8649 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8650 if test 64 = "${OBJECT_MODE-32}"; then 8651 shared_archive_member_spec=shr_64 8652 else 8653 shared_archive_member_spec=shr 8654 fi 8655 fi 8656 ;; 8657*) 8658 with_aix_soname=aix 8659 ;; 8660esac 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671# This can be used to rebuild libtool when needed 8672LIBTOOL_DEPS=$ltmain 8673 8674# Always use our own libtool. 8675LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706test -z "$LN_S" && LN_S="ln -s" 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721if test -n "${ZSH_VERSION+set}"; then 8722 setopt NO_GLOB_SUBST 8723fi 8724 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8726$as_echo_n "checking for objdir... " >&6; } 8727if ${lt_cv_objdir+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 rm -f .libs 2>/dev/null 8731mkdir .libs 2>/dev/null 8732if test -d .libs; then 8733 lt_cv_objdir=.libs 8734else 8735 # MS-DOS does not allow filenames that begin with a dot. 8736 lt_cv_objdir=_libs 8737fi 8738rmdir .libs 2>/dev/null 8739fi 8740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8741$as_echo "$lt_cv_objdir" >&6; } 8742objdir=$lt_cv_objdir 8743 8744 8745 8746 8747 8748cat >>confdefs.h <<_ACEOF 8749#define LT_OBJDIR "$lt_cv_objdir/" 8750_ACEOF 8751 8752 8753 8754 8755case $host_os in 8756aix3*) 8757 # AIX sometimes has problems with the GCC collect2 program. For some 8758 # reason, if we set the COLLECT_NAMES environment variable, the problems 8759 # vanish in a puff of smoke. 8760 if test set != "${COLLECT_NAMES+set}"; then 8761 COLLECT_NAMES= 8762 export COLLECT_NAMES 8763 fi 8764 ;; 8765esac 8766 8767# Global variables: 8768ofile=libtool 8769can_build_shared=yes 8770 8771# All known linkers require a '.a' archive for static linking (except MSVC, 8772# which needs '.lib'). 8773libext=a 8774 8775with_gnu_ld=$lt_cv_prog_gnu_ld 8776 8777old_CC=$CC 8778old_CFLAGS=$CFLAGS 8779 8780# Set sane defaults for various variables 8781test -z "$CC" && CC=cc 8782test -z "$LTCC" && LTCC=$CC 8783test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8784test -z "$LD" && LD=ld 8785test -z "$ac_objext" && ac_objext=o 8786 8787func_cc_basename $compiler 8788cc_basename=$func_cc_basename_result 8789 8790 8791# Only perform the check for file, if the check method requires it 8792test -z "$MAGIC_CMD" && MAGIC_CMD=file 8793case $deplibs_check_method in 8794file_magic*) 8795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8797$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8798if ${lt_cv_path_MAGIC_CMD+:} false; then : 8799 $as_echo_n "(cached) " >&6 8800else 8801 case $MAGIC_CMD in 8802[\\/*] | ?:[\\/]*) 8803 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8804 ;; 8805*) 8806 lt_save_MAGIC_CMD=$MAGIC_CMD 8807 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8809 for ac_dir in $ac_dummy; do 8810 IFS=$lt_save_ifs 8811 test -z "$ac_dir" && ac_dir=. 8812 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8813 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8814 if test -n "$file_magic_test_file"; then 8815 case $deplibs_check_method in 8816 "file_magic "*) 8817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8818 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8820 $EGREP "$file_magic_regex" > /dev/null; then 8821 : 8822 else 8823 cat <<_LT_EOF 1>&2 8824 8825*** Warning: the command libtool uses to detect shared libraries, 8826*** $file_magic_cmd, produces output that libtool cannot recognize. 8827*** The result is that libtool may fail to recognize shared libraries 8828*** as such. This will affect the creation of libtool libraries that 8829*** depend on shared libraries, but programs linked with such libtool 8830*** libraries will work regardless of this problem. Nevertheless, you 8831*** may want to report the problem to your system manager and/or to 8832*** bug-libtool@gnu.org 8833 8834_LT_EOF 8835 fi ;; 8836 esac 8837 fi 8838 break 8839 fi 8840 done 8841 IFS=$lt_save_ifs 8842 MAGIC_CMD=$lt_save_MAGIC_CMD 8843 ;; 8844esac 8845fi 8846 8847MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8848if test -n "$MAGIC_CMD"; then 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8850$as_echo "$MAGIC_CMD" >&6; } 8851else 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8853$as_echo "no" >&6; } 8854fi 8855 8856 8857 8858 8859 8860if test -z "$lt_cv_path_MAGIC_CMD"; then 8861 if test -n "$ac_tool_prefix"; then 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8863$as_echo_n "checking for file... " >&6; } 8864if ${lt_cv_path_MAGIC_CMD+:} false; then : 8865 $as_echo_n "(cached) " >&6 8866else 8867 case $MAGIC_CMD in 8868[\\/*] | ?:[\\/]*) 8869 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8870 ;; 8871*) 8872 lt_save_MAGIC_CMD=$MAGIC_CMD 8873 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8875 for ac_dir in $ac_dummy; do 8876 IFS=$lt_save_ifs 8877 test -z "$ac_dir" && ac_dir=. 8878 if test -f "$ac_dir/file"; then 8879 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8880 if test -n "$file_magic_test_file"; then 8881 case $deplibs_check_method in 8882 "file_magic "*) 8883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8884 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8886 $EGREP "$file_magic_regex" > /dev/null; then 8887 : 8888 else 8889 cat <<_LT_EOF 1>&2 8890 8891*** Warning: the command libtool uses to detect shared libraries, 8892*** $file_magic_cmd, produces output that libtool cannot recognize. 8893*** The result is that libtool may fail to recognize shared libraries 8894*** as such. This will affect the creation of libtool libraries that 8895*** depend on shared libraries, but programs linked with such libtool 8896*** libraries will work regardless of this problem. Nevertheless, you 8897*** may want to report the problem to your system manager and/or to 8898*** bug-libtool@gnu.org 8899 8900_LT_EOF 8901 fi ;; 8902 esac 8903 fi 8904 break 8905 fi 8906 done 8907 IFS=$lt_save_ifs 8908 MAGIC_CMD=$lt_save_MAGIC_CMD 8909 ;; 8910esac 8911fi 8912 8913MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8914if test -n "$MAGIC_CMD"; then 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8916$as_echo "$MAGIC_CMD" >&6; } 8917else 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8919$as_echo "no" >&6; } 8920fi 8921 8922 8923 else 8924 MAGIC_CMD=: 8925 fi 8926fi 8927 8928 fi 8929 ;; 8930esac 8931 8932# Use C for the default configuration in the libtool script 8933 8934lt_save_CC=$CC 8935ac_ext=c 8936ac_cpp='$CPP $CPPFLAGS' 8937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8939ac_compiler_gnu=$ac_cv_c_compiler_gnu 8940 8941 8942# Source file extension for C test sources. 8943ac_ext=c 8944 8945# Object file extension for compiled C test sources. 8946objext=o 8947objext=$objext 8948 8949# Code to be used in simple compile tests 8950lt_simple_compile_test_code="int some_variable = 0;" 8951 8952# Code to be used in simple link tests 8953lt_simple_link_test_code='int main(){return(0);}' 8954 8955 8956 8957 8958 8959 8960 8961# If no C compiler was specified, use CC. 8962LTCC=${LTCC-"$CC"} 8963 8964# If no C compiler flags were specified, use CFLAGS. 8965LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8966 8967# Allow CC to be a program name with arguments. 8968compiler=$CC 8969 8970# Save the default compiler, since it gets overwritten when the other 8971# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8972compiler_DEFAULT=$CC 8973 8974# save warnings/boilerplate of simple test code 8975ac_outfile=conftest.$ac_objext 8976echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8978_lt_compiler_boilerplate=`cat conftest.err` 8979$RM conftest* 8980 8981ac_outfile=conftest.$ac_objext 8982echo "$lt_simple_link_test_code" >conftest.$ac_ext 8983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8984_lt_linker_boilerplate=`cat conftest.err` 8985$RM -r conftest* 8986 8987 8988## CAVEAT EMPTOR: 8989## There is no encapsulation within the following macros, do not change 8990## the running order or otherwise move them around unless you know exactly 8991## what you are doing... 8992if test -n "$compiler"; then 8993 8994lt_prog_compiler_no_builtin_flag= 8995 8996if test yes = "$GCC"; then 8997 case $cc_basename in 8998 nvcc*) 8999 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9000 *) 9001 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9002 esac 9003 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9005$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9006if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 lt_cv_prog_compiler_rtti_exceptions=no 9010 ac_outfile=conftest.$ac_objext 9011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9012 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9013 # Insert the option either (1) after the last *FLAGS variable, or 9014 # (2) before a word containing "conftest.", or (3) at the end. 9015 # Note that $ac_compile itself does not contain backslashes and begins 9016 # with a dollar sign (not a hyphen), so the echo should work correctly. 9017 # The option is referenced via a variable to avoid confusing sed. 9018 lt_compile=`echo "$ac_compile" | $SED \ 9019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9021 -e 's:$: $lt_compiler_flag:'` 9022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9023 (eval "$lt_compile" 2>conftest.err) 9024 ac_status=$? 9025 cat conftest.err >&5 9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9027 if (exit $ac_status) && test -s "$ac_outfile"; then 9028 # The compiler can only warn and ignore the option if not recognized 9029 # So say no if there are warnings other than the usual output. 9030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9033 lt_cv_prog_compiler_rtti_exceptions=yes 9034 fi 9035 fi 9036 $RM conftest* 9037 9038fi 9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9040$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9041 9042if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9043 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9044else 9045 : 9046fi 9047 9048fi 9049 9050 9051 9052 9053 9054 9055 lt_prog_compiler_wl= 9056lt_prog_compiler_pic= 9057lt_prog_compiler_static= 9058 9059 9060 if test yes = "$GCC"; then 9061 lt_prog_compiler_wl='-Wl,' 9062 lt_prog_compiler_static='-static' 9063 9064 case $host_os in 9065 aix*) 9066 # All AIX code is PIC. 9067 if test ia64 = "$host_cpu"; then 9068 # AIX 5 now supports IA64 processor 9069 lt_prog_compiler_static='-Bstatic' 9070 fi 9071 lt_prog_compiler_pic='-fPIC' 9072 ;; 9073 9074 amigaos*) 9075 case $host_cpu in 9076 powerpc) 9077 # see comment about AmigaOS4 .so support 9078 lt_prog_compiler_pic='-fPIC' 9079 ;; 9080 m68k) 9081 # FIXME: we need at least 68020 code to build shared libraries, but 9082 # adding the '-m68020' flag to GCC prevents building anything better, 9083 # like '-m68040'. 9084 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9085 ;; 9086 esac 9087 ;; 9088 9089 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9090 # PIC is the default for these OSes. 9091 ;; 9092 9093 mingw* | cygwin* | pw32* | os2* | cegcc*) 9094 # This hack is so that the source file can tell whether it is being 9095 # built for inclusion in a dll (and should export symbols for example). 9096 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9097 # (--disable-auto-import) libraries 9098 lt_prog_compiler_pic='-DDLL_EXPORT' 9099 case $host_os in 9100 os2*) 9101 lt_prog_compiler_static='$wl-static' 9102 ;; 9103 esac 9104 ;; 9105 9106 darwin* | rhapsody*) 9107 # PIC is the default on this platform 9108 # Common symbols not allowed in MH_DYLIB files 9109 lt_prog_compiler_pic='-fno-common' 9110 ;; 9111 9112 haiku*) 9113 # PIC is the default for Haiku. 9114 # The "-static" flag exists, but is broken. 9115 lt_prog_compiler_static= 9116 ;; 9117 9118 hpux*) 9119 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9120 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9121 # sets the default TLS model and affects inlining. 9122 case $host_cpu in 9123 hppa*64*) 9124 # +Z the default 9125 ;; 9126 *) 9127 lt_prog_compiler_pic='-fPIC' 9128 ;; 9129 esac 9130 ;; 9131 9132 interix[3-9]*) 9133 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9134 # Instead, we relocate shared libraries at runtime. 9135 ;; 9136 9137 msdosdjgpp*) 9138 # Just because we use GCC doesn't mean we suddenly get shared libraries 9139 # on systems that don't support them. 9140 lt_prog_compiler_can_build_shared=no 9141 enable_shared=no 9142 ;; 9143 9144 *nto* | *qnx*) 9145 # QNX uses GNU C++, but need to define -shared option too, otherwise 9146 # it will coredump. 9147 lt_prog_compiler_pic='-fPIC -shared' 9148 ;; 9149 9150 sysv4*MP*) 9151 if test -d /usr/nec; then 9152 lt_prog_compiler_pic=-Kconform_pic 9153 fi 9154 ;; 9155 9156 *) 9157 lt_prog_compiler_pic='-fPIC' 9158 ;; 9159 esac 9160 9161 case $cc_basename in 9162 nvcc*) # Cuda Compiler Driver 2.2 9163 lt_prog_compiler_wl='-Xlinker ' 9164 if test -n "$lt_prog_compiler_pic"; then 9165 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9166 fi 9167 ;; 9168 esac 9169 else 9170 # PORTME Check for flag to pass linker flags through the system compiler. 9171 case $host_os in 9172 aix*) 9173 lt_prog_compiler_wl='-Wl,' 9174 if test ia64 = "$host_cpu"; then 9175 # AIX 5 now supports IA64 processor 9176 lt_prog_compiler_static='-Bstatic' 9177 else 9178 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9179 fi 9180 ;; 9181 9182 darwin* | rhapsody*) 9183 # PIC is the default on this platform 9184 # Common symbols not allowed in MH_DYLIB files 9185 lt_prog_compiler_pic='-fno-common' 9186 case $cc_basename in 9187 nagfor*) 9188 # NAG Fortran compiler 9189 lt_prog_compiler_wl='-Wl,-Wl,,' 9190 lt_prog_compiler_pic='-PIC' 9191 lt_prog_compiler_static='-Bstatic' 9192 ;; 9193 esac 9194 ;; 9195 9196 mingw* | cygwin* | pw32* | os2* | cegcc*) 9197 # This hack is so that the source file can tell whether it is being 9198 # built for inclusion in a dll (and should export symbols for example). 9199 lt_prog_compiler_pic='-DDLL_EXPORT' 9200 case $host_os in 9201 os2*) 9202 lt_prog_compiler_static='$wl-static' 9203 ;; 9204 esac 9205 ;; 9206 9207 hpux9* | hpux10* | hpux11*) 9208 lt_prog_compiler_wl='-Wl,' 9209 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9210 # not for PA HP-UX. 9211 case $host_cpu in 9212 hppa*64*|ia64*) 9213 # +Z the default 9214 ;; 9215 *) 9216 lt_prog_compiler_pic='+Z' 9217 ;; 9218 esac 9219 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9220 lt_prog_compiler_static='$wl-a ${wl}archive' 9221 ;; 9222 9223 irix5* | irix6* | nonstopux*) 9224 lt_prog_compiler_wl='-Wl,' 9225 # PIC (with -KPIC) is the default. 9226 lt_prog_compiler_static='-non_shared' 9227 ;; 9228 9229 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9230 case $cc_basename in 9231 # old Intel for x86_64, which still supported -KPIC. 9232 ecc*) 9233 lt_prog_compiler_wl='-Wl,' 9234 lt_prog_compiler_pic='-KPIC' 9235 lt_prog_compiler_static='-static' 9236 ;; 9237 # icc used to be incompatible with GCC. 9238 # ICC 10 doesn't accept -KPIC any more. 9239 icc* | ifort*) 9240 lt_prog_compiler_wl='-Wl,' 9241 lt_prog_compiler_pic='-fPIC' 9242 lt_prog_compiler_static='-static' 9243 ;; 9244 # Lahey Fortran 8.1. 9245 lf95*) 9246 lt_prog_compiler_wl='-Wl,' 9247 lt_prog_compiler_pic='--shared' 9248 lt_prog_compiler_static='--static' 9249 ;; 9250 nagfor*) 9251 # NAG Fortran compiler 9252 lt_prog_compiler_wl='-Wl,-Wl,,' 9253 lt_prog_compiler_pic='-PIC' 9254 lt_prog_compiler_static='-Bstatic' 9255 ;; 9256 tcc*) 9257 # Fabrice Bellard et al's Tiny C Compiler 9258 lt_prog_compiler_wl='-Wl,' 9259 lt_prog_compiler_pic='-fPIC' 9260 lt_prog_compiler_static='-static' 9261 ;; 9262 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9263 # Portland Group compilers (*not* the Pentium gcc compiler, 9264 # which looks to be a dead project) 9265 lt_prog_compiler_wl='-Wl,' 9266 lt_prog_compiler_pic='-fpic' 9267 lt_prog_compiler_static='-Bstatic' 9268 ;; 9269 ccc*) 9270 lt_prog_compiler_wl='-Wl,' 9271 # All Alpha code is PIC. 9272 lt_prog_compiler_static='-non_shared' 9273 ;; 9274 xl* | bgxl* | bgf* | mpixl*) 9275 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9276 lt_prog_compiler_wl='-Wl,' 9277 lt_prog_compiler_pic='-qpic' 9278 lt_prog_compiler_static='-qstaticlink' 9279 ;; 9280 *) 9281 case `$CC -V 2>&1 | sed 5q` in 9282 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9283 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9284 lt_prog_compiler_pic='-KPIC' 9285 lt_prog_compiler_static='-Bstatic' 9286 lt_prog_compiler_wl='' 9287 ;; 9288 *Sun\ F* | *Sun*Fortran*) 9289 lt_prog_compiler_pic='-KPIC' 9290 lt_prog_compiler_static='-Bstatic' 9291 lt_prog_compiler_wl='-Qoption ld ' 9292 ;; 9293 *Sun\ C*) 9294 # Sun C 5.9 9295 lt_prog_compiler_pic='-KPIC' 9296 lt_prog_compiler_static='-Bstatic' 9297 lt_prog_compiler_wl='-Wl,' 9298 ;; 9299 *Intel*\ [CF]*Compiler*) 9300 lt_prog_compiler_wl='-Wl,' 9301 lt_prog_compiler_pic='-fPIC' 9302 lt_prog_compiler_static='-static' 9303 ;; 9304 *Portland\ Group*) 9305 lt_prog_compiler_wl='-Wl,' 9306 lt_prog_compiler_pic='-fpic' 9307 lt_prog_compiler_static='-Bstatic' 9308 ;; 9309 esac 9310 ;; 9311 esac 9312 ;; 9313 9314 newsos6) 9315 lt_prog_compiler_pic='-KPIC' 9316 lt_prog_compiler_static='-Bstatic' 9317 ;; 9318 9319 *nto* | *qnx*) 9320 # QNX uses GNU C++, but need to define -shared option too, otherwise 9321 # it will coredump. 9322 lt_prog_compiler_pic='-fPIC -shared' 9323 ;; 9324 9325 osf3* | osf4* | osf5*) 9326 lt_prog_compiler_wl='-Wl,' 9327 # All OSF/1 code is PIC. 9328 lt_prog_compiler_static='-non_shared' 9329 ;; 9330 9331 rdos*) 9332 lt_prog_compiler_static='-non_shared' 9333 ;; 9334 9335 solaris*) 9336 lt_prog_compiler_pic='-KPIC' 9337 lt_prog_compiler_static='-Bstatic' 9338 case $cc_basename in 9339 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9340 lt_prog_compiler_wl='-Qoption ld ';; 9341 *) 9342 lt_prog_compiler_wl='-Wl,';; 9343 esac 9344 ;; 9345 9346 sunos4*) 9347 lt_prog_compiler_wl='-Qoption ld ' 9348 lt_prog_compiler_pic='-PIC' 9349 lt_prog_compiler_static='-Bstatic' 9350 ;; 9351 9352 sysv4 | sysv4.2uw2* | sysv4.3*) 9353 lt_prog_compiler_wl='-Wl,' 9354 lt_prog_compiler_pic='-KPIC' 9355 lt_prog_compiler_static='-Bstatic' 9356 ;; 9357 9358 sysv4*MP*) 9359 if test -d /usr/nec; then 9360 lt_prog_compiler_pic='-Kconform_pic' 9361 lt_prog_compiler_static='-Bstatic' 9362 fi 9363 ;; 9364 9365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9366 lt_prog_compiler_wl='-Wl,' 9367 lt_prog_compiler_pic='-KPIC' 9368 lt_prog_compiler_static='-Bstatic' 9369 ;; 9370 9371 unicos*) 9372 lt_prog_compiler_wl='-Wl,' 9373 lt_prog_compiler_can_build_shared=no 9374 ;; 9375 9376 uts4*) 9377 lt_prog_compiler_pic='-pic' 9378 lt_prog_compiler_static='-Bstatic' 9379 ;; 9380 9381 *) 9382 lt_prog_compiler_can_build_shared=no 9383 ;; 9384 esac 9385 fi 9386 9387case $host_os in 9388 # For platforms that do not support PIC, -DPIC is meaningless: 9389 *djgpp*) 9390 lt_prog_compiler_pic= 9391 ;; 9392 *) 9393 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9394 ;; 9395esac 9396 9397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9398$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9399if ${lt_cv_prog_compiler_pic+:} false; then : 9400 $as_echo_n "(cached) " >&6 9401else 9402 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9403fi 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9405$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9406lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9407 9408# 9409# Check to make sure the PIC flag actually works. 9410# 9411if test -n "$lt_prog_compiler_pic"; then 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9413$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9414if ${lt_cv_prog_compiler_pic_works+:} false; then : 9415 $as_echo_n "(cached) " >&6 9416else 9417 lt_cv_prog_compiler_pic_works=no 9418 ac_outfile=conftest.$ac_objext 9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9420 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9421 # Insert the option either (1) after the last *FLAGS variable, or 9422 # (2) before a word containing "conftest.", or (3) at the end. 9423 # Note that $ac_compile itself does not contain backslashes and begins 9424 # with a dollar sign (not a hyphen), so the echo should work correctly. 9425 # The option is referenced via a variable to avoid confusing sed. 9426 lt_compile=`echo "$ac_compile" | $SED \ 9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9429 -e 's:$: $lt_compiler_flag:'` 9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9431 (eval "$lt_compile" 2>conftest.err) 9432 ac_status=$? 9433 cat conftest.err >&5 9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9435 if (exit $ac_status) && test -s "$ac_outfile"; then 9436 # The compiler can only warn and ignore the option if not recognized 9437 # So say no if there are warnings other than the usual output. 9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9441 lt_cv_prog_compiler_pic_works=yes 9442 fi 9443 fi 9444 $RM conftest* 9445 9446fi 9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9448$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9449 9450if test yes = "$lt_cv_prog_compiler_pic_works"; then 9451 case $lt_prog_compiler_pic in 9452 "" | " "*) ;; 9453 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9454 esac 9455else 9456 lt_prog_compiler_pic= 9457 lt_prog_compiler_can_build_shared=no 9458fi 9459 9460fi 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472# 9473# Check to make sure the static flag actually works. 9474# 9475wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9477$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9478if ${lt_cv_prog_compiler_static_works+:} false; then : 9479 $as_echo_n "(cached) " >&6 9480else 9481 lt_cv_prog_compiler_static_works=no 9482 save_LDFLAGS=$LDFLAGS 9483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9484 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9486 # The linker can only warn and ignore the option if not recognized 9487 # So say no if there are warnings 9488 if test -s conftest.err; then 9489 # Append any errors to the config.log. 9490 cat conftest.err 1>&5 9491 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9493 if diff conftest.exp conftest.er2 >/dev/null; then 9494 lt_cv_prog_compiler_static_works=yes 9495 fi 9496 else 9497 lt_cv_prog_compiler_static_works=yes 9498 fi 9499 fi 9500 $RM -r conftest* 9501 LDFLAGS=$save_LDFLAGS 9502 9503fi 9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9505$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9506 9507if test yes = "$lt_cv_prog_compiler_static_works"; then 9508 : 9509else 9510 lt_prog_compiler_static= 9511fi 9512 9513 9514 9515 9516 9517 9518 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9520$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9521if ${lt_cv_prog_compiler_c_o+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 lt_cv_prog_compiler_c_o=no 9525 $RM -r conftest 2>/dev/null 9526 mkdir conftest 9527 cd conftest 9528 mkdir out 9529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9530 9531 lt_compiler_flag="-o out/conftest2.$ac_objext" 9532 # Insert the option either (1) after the last *FLAGS variable, or 9533 # (2) before a word containing "conftest.", or (3) at the end. 9534 # Note that $ac_compile itself does not contain backslashes and begins 9535 # with a dollar sign (not a hyphen), so the echo should work correctly. 9536 lt_compile=`echo "$ac_compile" | $SED \ 9537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9539 -e 's:$: $lt_compiler_flag:'` 9540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9541 (eval "$lt_compile" 2>out/conftest.err) 9542 ac_status=$? 9543 cat out/conftest.err >&5 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9546 then 9547 # The compiler can only warn and ignore the option if not recognized 9548 # So say no if there are warnings 9549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9552 lt_cv_prog_compiler_c_o=yes 9553 fi 9554 fi 9555 chmod u+w . 2>&5 9556 $RM conftest* 9557 # SGI C++ compiler will create directory out/ii_files/ for 9558 # template instantiation 9559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9560 $RM out/* && rmdir out 9561 cd .. 9562 $RM -r conftest 9563 $RM conftest* 9564 9565fi 9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9567$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9568 9569 9570 9571 9572 9573 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9575$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9576if ${lt_cv_prog_compiler_c_o+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578else 9579 lt_cv_prog_compiler_c_o=no 9580 $RM -r conftest 2>/dev/null 9581 mkdir conftest 9582 cd conftest 9583 mkdir out 9584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9585 9586 lt_compiler_flag="-o out/conftest2.$ac_objext" 9587 # Insert the option either (1) after the last *FLAGS variable, or 9588 # (2) before a word containing "conftest.", or (3) at the end. 9589 # Note that $ac_compile itself does not contain backslashes and begins 9590 # with a dollar sign (not a hyphen), so the echo should work correctly. 9591 lt_compile=`echo "$ac_compile" | $SED \ 9592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9594 -e 's:$: $lt_compiler_flag:'` 9595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9596 (eval "$lt_compile" 2>out/conftest.err) 9597 ac_status=$? 9598 cat out/conftest.err >&5 9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9600 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9601 then 9602 # The compiler can only warn and ignore the option if not recognized 9603 # So say no if there are warnings 9604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9607 lt_cv_prog_compiler_c_o=yes 9608 fi 9609 fi 9610 chmod u+w . 2>&5 9611 $RM conftest* 9612 # SGI C++ compiler will create directory out/ii_files/ for 9613 # template instantiation 9614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9615 $RM out/* && rmdir out 9616 cd .. 9617 $RM -r conftest 9618 $RM conftest* 9619 9620fi 9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9622$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9623 9624 9625 9626 9627hard_links=nottested 9628if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9629 # do not overwrite the value of need_locks provided by the user 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9631$as_echo_n "checking if we can lock with hard links... " >&6; } 9632 hard_links=yes 9633 $RM conftest* 9634 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9635 touch conftest.a 9636 ln conftest.a conftest.b 2>&5 || hard_links=no 9637 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9639$as_echo "$hard_links" >&6; } 9640 if test no = "$hard_links"; then 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9642$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9643 need_locks=warn 9644 fi 9645else 9646 need_locks=no 9647fi 9648 9649 9650 9651 9652 9653 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9655$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9656 9657 runpath_var= 9658 allow_undefined_flag= 9659 always_export_symbols=no 9660 archive_cmds= 9661 archive_expsym_cmds= 9662 compiler_needs_object=no 9663 enable_shared_with_static_runtimes=no 9664 export_dynamic_flag_spec= 9665 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9666 hardcode_automatic=no 9667 hardcode_direct=no 9668 hardcode_direct_absolute=no 9669 hardcode_libdir_flag_spec= 9670 hardcode_libdir_separator= 9671 hardcode_minus_L=no 9672 hardcode_shlibpath_var=unsupported 9673 inherit_rpath=no 9674 link_all_deplibs=unknown 9675 module_cmds= 9676 module_expsym_cmds= 9677 old_archive_from_new_cmds= 9678 old_archive_from_expsyms_cmds= 9679 thread_safe_flag_spec= 9680 whole_archive_flag_spec= 9681 # include_expsyms should be a list of space-separated symbols to be *always* 9682 # included in the symbol list 9683 include_expsyms= 9684 # exclude_expsyms can be an extended regexp of symbols to exclude 9685 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9686 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9687 # as well as any symbol that contains 'd'. 9688 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9689 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9690 # platforms (ab)use it in PIC code, but their linkers get confused if 9691 # the symbol is explicitly referenced. Since portable code cannot 9692 # rely on this symbol name, it's probably fine to never include it in 9693 # preloaded symbol tables. 9694 # Exclude shared library initialization/finalization symbols. 9695 extract_expsyms_cmds= 9696 9697 case $host_os in 9698 cygwin* | mingw* | pw32* | cegcc*) 9699 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9700 # When not using gcc, we currently assume that we are using 9701 # Microsoft Visual C++. 9702 if test yes != "$GCC"; then 9703 with_gnu_ld=no 9704 fi 9705 ;; 9706 interix*) 9707 # we just hope/assume this is gcc and not c89 (= MSVC++) 9708 with_gnu_ld=yes 9709 ;; 9710 openbsd* | bitrig*) 9711 with_gnu_ld=no 9712 ;; 9713 linux* | k*bsd*-gnu | gnu*) 9714 link_all_deplibs=no 9715 ;; 9716 esac 9717 9718 ld_shlibs=yes 9719 9720 # On some targets, GNU ld is compatible enough with the native linker 9721 # that we're better off using the native interface for both. 9722 lt_use_gnu_ld_interface=no 9723 if test yes = "$with_gnu_ld"; then 9724 case $host_os in 9725 aix*) 9726 # The AIX port of GNU ld has always aspired to compatibility 9727 # with the native linker. However, as the warning in the GNU ld 9728 # block says, versions before 2.19.5* couldn't really create working 9729 # shared libraries, regardless of the interface used. 9730 case `$LD -v 2>&1` in 9731 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9732 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9733 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9734 *) 9735 lt_use_gnu_ld_interface=yes 9736 ;; 9737 esac 9738 ;; 9739 *) 9740 lt_use_gnu_ld_interface=yes 9741 ;; 9742 esac 9743 fi 9744 9745 if test yes = "$lt_use_gnu_ld_interface"; then 9746 # If archive_cmds runs LD, not CC, wlarc should be empty 9747 wlarc='$wl' 9748 9749 # Set some defaults for GNU ld with shared library support. These 9750 # are reset later if shared libraries are not supported. Putting them 9751 # here allows them to be overridden if necessary. 9752 runpath_var=LD_RUN_PATH 9753 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9754 export_dynamic_flag_spec='$wl--export-dynamic' 9755 # ancient GNU ld didn't support --whole-archive et. al. 9756 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9757 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9758 else 9759 whole_archive_flag_spec= 9760 fi 9761 supports_anon_versioning=no 9762 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9763 *GNU\ gold*) supports_anon_versioning=yes ;; 9764 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9767 *\ 2.11.*) ;; # other 2.11 versions 9768 *) supports_anon_versioning=yes ;; 9769 esac 9770 9771 # See if GNU ld supports shared libraries. 9772 case $host_os in 9773 aix[3-9]*) 9774 # On AIX/PPC, the GNU linker is very broken 9775 if test ia64 != "$host_cpu"; then 9776 ld_shlibs=no 9777 cat <<_LT_EOF 1>&2 9778 9779*** Warning: the GNU linker, at least up to release 2.19, is reported 9780*** to be unable to reliably create shared libraries on AIX. 9781*** Therefore, libtool is disabling shared libraries support. If you 9782*** really care for shared libraries, you may want to install binutils 9783*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9784*** You will then need to restart the configuration process. 9785 9786_LT_EOF 9787 fi 9788 ;; 9789 9790 amigaos*) 9791 case $host_cpu in 9792 powerpc) 9793 # see comment about AmigaOS4 .so support 9794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9795 archive_expsym_cmds='' 9796 ;; 9797 m68k) 9798 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)' 9799 hardcode_libdir_flag_spec='-L$libdir' 9800 hardcode_minus_L=yes 9801 ;; 9802 esac 9803 ;; 9804 9805 beos*) 9806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9807 allow_undefined_flag=unsupported 9808 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9809 # support --undefined. This deserves some investigation. FIXME 9810 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9811 else 9812 ld_shlibs=no 9813 fi 9814 ;; 9815 9816 cygwin* | mingw* | pw32* | cegcc*) 9817 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9818 # as there is no search path for DLLs. 9819 hardcode_libdir_flag_spec='-L$libdir' 9820 export_dynamic_flag_spec='$wl--export-all-symbols' 9821 allow_undefined_flag=unsupported 9822 always_export_symbols=no 9823 enable_shared_with_static_runtimes=yes 9824 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' 9825 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9826 9827 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9829 # If the export-symbols file already is a .def file, use it as 9830 # is; otherwise, prepend EXPORTS... 9831 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9832 cp $export_symbols $output_objdir/$soname.def; 9833 else 9834 echo EXPORTS > $output_objdir/$soname.def; 9835 cat $export_symbols >> $output_objdir/$soname.def; 9836 fi~ 9837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9838 else 9839 ld_shlibs=no 9840 fi 9841 ;; 9842 9843 haiku*) 9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9845 link_all_deplibs=yes 9846 ;; 9847 9848 os2*) 9849 hardcode_libdir_flag_spec='-L$libdir' 9850 hardcode_minus_L=yes 9851 allow_undefined_flag=unsupported 9852 shrext_cmds=.dll 9853 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9854 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9855 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9856 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9857 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9858 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9859 emximp -o $lib $output_objdir/$libname.def' 9860 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9863 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9864 prefix_cmds="$SED"~ 9865 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9866 prefix_cmds="$prefix_cmds -e 1d"; 9867 fi~ 9868 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9869 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9870 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9871 emximp -o $lib $output_objdir/$libname.def' 9872 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9873 enable_shared_with_static_runtimes=yes 9874 ;; 9875 9876 interix[3-9]*) 9877 hardcode_direct=no 9878 hardcode_shlibpath_var=no 9879 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9880 export_dynamic_flag_spec='$wl-E' 9881 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9882 # Instead, shared libraries are loaded at an image base (0x10000000 by 9883 # default) and relocated if they conflict, which is a slow very memory 9884 # consuming and fragmenting process. To avoid this, we pick a random, 9885 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9886 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9888 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' 9889 ;; 9890 9891 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9892 tmp_diet=no 9893 if test linux-dietlibc = "$host_os"; then 9894 case $cc_basename in 9895 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9896 esac 9897 fi 9898 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9899 && test no = "$tmp_diet" 9900 then 9901 tmp_addflag=' $pic_flag' 9902 tmp_sharedflag='-shared' 9903 case $cc_basename,$host_cpu in 9904 pgcc*) # Portland Group C compiler 9905 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' 9906 tmp_addflag=' $pic_flag' 9907 ;; 9908 pgf77* | pgf90* | pgf95* | pgfortran*) 9909 # Portland Group f77 and f90 compilers 9910 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' 9911 tmp_addflag=' $pic_flag -Mnomain' ;; 9912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9913 tmp_addflag=' -i_dynamic' ;; 9914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9915 tmp_addflag=' -i_dynamic -nofor_main' ;; 9916 ifc* | ifort*) # Intel Fortran compiler 9917 tmp_addflag=' -nofor_main' ;; 9918 lf95*) # Lahey Fortran 8.1 9919 whole_archive_flag_spec= 9920 tmp_sharedflag='--shared' ;; 9921 nagfor*) # NAGFOR 5.3 9922 tmp_sharedflag='-Wl,-shared' ;; 9923 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9924 tmp_sharedflag='-qmkshrobj' 9925 tmp_addflag= ;; 9926 nvcc*) # Cuda Compiler Driver 2.2 9927 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' 9928 compiler_needs_object=yes 9929 ;; 9930 esac 9931 case `$CC -V 2>&1 | sed 5q` in 9932 *Sun\ C*) # Sun C 5.9 9933 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' 9934 compiler_needs_object=yes 9935 tmp_sharedflag='-G' ;; 9936 *Sun\ F*) # Sun Fortran 8.3 9937 tmp_sharedflag='-G' ;; 9938 esac 9939 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9940 9941 if test yes = "$supports_anon_versioning"; then 9942 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9943 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9944 echo "local: *; };" >> $output_objdir/$libname.ver~ 9945 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9946 fi 9947 9948 case $cc_basename in 9949 tcc*) 9950 export_dynamic_flag_spec='-rdynamic' 9951 ;; 9952 xlf* | bgf* | bgxlf* | mpixlf*) 9953 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9954 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9956 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9957 if test yes = "$supports_anon_versioning"; then 9958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9960 echo "local: *; };" >> $output_objdir/$libname.ver~ 9961 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9962 fi 9963 ;; 9964 esac 9965 else 9966 ld_shlibs=no 9967 fi 9968 ;; 9969 9970 netbsd* | netbsdelf*-gnu) 9971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9973 wlarc= 9974 else 9975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9976 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9977 fi 9978 ;; 9979 9980 solaris*) 9981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9982 ld_shlibs=no 9983 cat <<_LT_EOF 1>&2 9984 9985*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9986*** create shared libraries on Solaris systems. Therefore, libtool 9987*** is disabling shared libraries support. We urge you to upgrade GNU 9988*** binutils to release 2.9.1 or newer. Another option is to modify 9989*** your PATH or compiler configuration so that the native linker is 9990*** used, and then restart. 9991 9992_LT_EOF 9993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9996 else 9997 ld_shlibs=no 9998 fi 9999 ;; 10000 10001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10002 case `$LD -v 2>&1` in 10003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10004 ld_shlibs=no 10005 cat <<_LT_EOF 1>&2 10006 10007*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10008*** reliably create shared libraries on SCO systems. Therefore, libtool 10009*** is disabling shared libraries support. We urge you to upgrade GNU 10010*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10011*** your PATH or compiler configuration so that the native linker is 10012*** used, and then restart. 10013 10014_LT_EOF 10015 ;; 10016 *) 10017 # For security reasons, it is highly recommended that you always 10018 # use absolute paths for naming shared libraries, and exclude the 10019 # DT_RUNPATH tag from executables and libraries. But doing so 10020 # requires that you compile everything twice, which is a pain. 10021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10022 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10025 else 10026 ld_shlibs=no 10027 fi 10028 ;; 10029 esac 10030 ;; 10031 10032 sunos4*) 10033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10034 wlarc= 10035 hardcode_direct=yes 10036 hardcode_shlibpath_var=no 10037 ;; 10038 10039 *) 10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10041 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10042 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10043 else 10044 ld_shlibs=no 10045 fi 10046 ;; 10047 esac 10048 10049 if test no = "$ld_shlibs"; then 10050 runpath_var= 10051 hardcode_libdir_flag_spec= 10052 export_dynamic_flag_spec= 10053 whole_archive_flag_spec= 10054 fi 10055 else 10056 # PORTME fill in a description of your system's linker (not GNU ld) 10057 case $host_os in 10058 aix3*) 10059 allow_undefined_flag=unsupported 10060 always_export_symbols=yes 10061 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' 10062 # Note: this linker hardcodes the directories in LIBPATH if there 10063 # are no directories specified by -L. 10064 hardcode_minus_L=yes 10065 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10066 # Neither direct hardcoding nor static linking is supported with a 10067 # broken collect2. 10068 hardcode_direct=unsupported 10069 fi 10070 ;; 10071 10072 aix[4-9]*) 10073 if test ia64 = "$host_cpu"; then 10074 # On IA64, the linker does run time linking by default, so we don't 10075 # have to do anything special. 10076 aix_use_runtimelinking=no 10077 exp_sym_flag='-Bexport' 10078 no_entry_flag= 10079 else 10080 # If we're using GNU nm, then we don't want the "-C" option. 10081 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10082 # Without the "-l" option, or with the "-B" option, AIX nm treats 10083 # weak defined symbols like other global defined symbols, whereas 10084 # GNU nm marks them as "W". 10085 # While the 'weak' keyword is ignored in the Export File, we need 10086 # it in the Import File for the 'aix-soname' feature, so we have 10087 # to replace the "-B" option with "-P" for AIX nm. 10088 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10089 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' 10090 else 10091 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' 10092 fi 10093 aix_use_runtimelinking=no 10094 10095 # Test if we are trying to use run time linking or normal 10096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10097 # have runtime linking enabled, and use it for executables. 10098 # For shared libraries, we enable/disable runtime linking 10099 # depending on the kind of the shared library created - 10100 # when "with_aix_soname,aix_use_runtimelinking" is: 10101 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10102 # "aix,yes" lib.so shared, rtl:yes, for executables 10103 # lib.a static archive 10104 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10105 # lib.a(lib.so.V) shared, rtl:no, for executables 10106 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10107 # lib.a(lib.so.V) shared, rtl:no 10108 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10109 # lib.a static archive 10110 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10111 for ld_flag in $LDFLAGS; do 10112 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10113 aix_use_runtimelinking=yes 10114 break 10115 fi 10116 done 10117 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10118 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10119 # so we don't have lib.a shared libs to link our executables. 10120 # We have to force runtime linking in this case. 10121 aix_use_runtimelinking=yes 10122 LDFLAGS="$LDFLAGS -Wl,-brtl" 10123 fi 10124 ;; 10125 esac 10126 10127 exp_sym_flag='-bexport' 10128 no_entry_flag='-bnoentry' 10129 fi 10130 10131 # When large executables or shared objects are built, AIX ld can 10132 # have problems creating the table of contents. If linking a library 10133 # or program results in "error TOC overflow" add -mminimal-toc to 10134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10136 10137 archive_cmds='' 10138 hardcode_direct=yes 10139 hardcode_direct_absolute=yes 10140 hardcode_libdir_separator=':' 10141 link_all_deplibs=yes 10142 file_list_spec='$wl-f,' 10143 case $with_aix_soname,$aix_use_runtimelinking in 10144 aix,*) ;; # traditional, no import file 10145 svr4,* | *,yes) # use import file 10146 # The Import File defines what to hardcode. 10147 hardcode_direct=no 10148 hardcode_direct_absolute=no 10149 ;; 10150 esac 10151 10152 if test yes = "$GCC"; then 10153 case $host_os in aix4.[012]|aix4.[012].*) 10154 # We only want to do this on AIX 4.2 and lower, the check 10155 # below for broken collect2 doesn't work under 4.3+ 10156 collect2name=`$CC -print-prog-name=collect2` 10157 if test -f "$collect2name" && 10158 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10159 then 10160 # We have reworked collect2 10161 : 10162 else 10163 # We have old collect2 10164 hardcode_direct=unsupported 10165 # It fails to find uninstalled libraries when the uninstalled 10166 # path is not listed in the libpath. Setting hardcode_minus_L 10167 # to unsupported forces relinking 10168 hardcode_minus_L=yes 10169 hardcode_libdir_flag_spec='-L$libdir' 10170 hardcode_libdir_separator= 10171 fi 10172 ;; 10173 esac 10174 shared_flag='-shared' 10175 if test yes = "$aix_use_runtimelinking"; then 10176 shared_flag="$shared_flag "'$wl-G' 10177 fi 10178 # Need to ensure runtime linking is disabled for the traditional 10179 # shared library, or the linker may eventually find shared libraries 10180 # /with/ Import File - we do not want to mix them. 10181 shared_flag_aix='-shared' 10182 shared_flag_svr4='-shared $wl-G' 10183 else 10184 # not using gcc 10185 if test ia64 = "$host_cpu"; then 10186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10187 # chokes on -Wl,-G. The following line is correct: 10188 shared_flag='-G' 10189 else 10190 if test yes = "$aix_use_runtimelinking"; then 10191 shared_flag='$wl-G' 10192 else 10193 shared_flag='$wl-bM:SRE' 10194 fi 10195 shared_flag_aix='$wl-bM:SRE' 10196 shared_flag_svr4='$wl-G' 10197 fi 10198 fi 10199 10200 export_dynamic_flag_spec='$wl-bexpall' 10201 # It seems that -bexpall does not export symbols beginning with 10202 # underscore (_), so it is better to generate a list of symbols to export. 10203 always_export_symbols=yes 10204 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10205 # Warning - without using the other runtime loading flags (-brtl), 10206 # -berok will link without error, but may produce a broken library. 10207 allow_undefined_flag='-berok' 10208 # Determine the default libpath from the value encoded in an 10209 # empty executable. 10210 if test set = "${lt_cv_aix_libpath+set}"; then 10211 aix_libpath=$lt_cv_aix_libpath 10212else 10213 if ${lt_cv_aix_libpath_+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215else 10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10217/* end confdefs.h. */ 10218 10219int 10220main () 10221{ 10222 10223 ; 10224 return 0; 10225} 10226_ACEOF 10227if ac_fn_c_try_link "$LINENO"; then : 10228 10229 lt_aix_libpath_sed=' 10230 /Import File Strings/,/^$/ { 10231 /^0/ { 10232 s/^0 *\([^ ]*\) *$/\1/ 10233 p 10234 } 10235 }' 10236 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10237 # Check for a 64-bit object if we didn't find anything. 10238 if test -z "$lt_cv_aix_libpath_"; then 10239 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10240 fi 10241fi 10242rm -f core conftest.err conftest.$ac_objext \ 10243 conftest$ac_exeext conftest.$ac_ext 10244 if test -z "$lt_cv_aix_libpath_"; then 10245 lt_cv_aix_libpath_=/usr/lib:/lib 10246 fi 10247 10248fi 10249 10250 aix_libpath=$lt_cv_aix_libpath_ 10251fi 10252 10253 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10254 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 10255 else 10256 if test ia64 = "$host_cpu"; then 10257 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10258 allow_undefined_flag="-z nodefs" 10259 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" 10260 else 10261 # Determine the default libpath from the value encoded in an 10262 # empty executable. 10263 if test set = "${lt_cv_aix_libpath+set}"; then 10264 aix_libpath=$lt_cv_aix_libpath 10265else 10266 if ${lt_cv_aix_libpath_+:} false; then : 10267 $as_echo_n "(cached) " >&6 10268else 10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10270/* end confdefs.h. */ 10271 10272int 10273main () 10274{ 10275 10276 ; 10277 return 0; 10278} 10279_ACEOF 10280if ac_fn_c_try_link "$LINENO"; then : 10281 10282 lt_aix_libpath_sed=' 10283 /Import File Strings/,/^$/ { 10284 /^0/ { 10285 s/^0 *\([^ ]*\) *$/\1/ 10286 p 10287 } 10288 }' 10289 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10290 # Check for a 64-bit object if we didn't find anything. 10291 if test -z "$lt_cv_aix_libpath_"; then 10292 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10293 fi 10294fi 10295rm -f core conftest.err conftest.$ac_objext \ 10296 conftest$ac_exeext conftest.$ac_ext 10297 if test -z "$lt_cv_aix_libpath_"; then 10298 lt_cv_aix_libpath_=/usr/lib:/lib 10299 fi 10300 10301fi 10302 10303 aix_libpath=$lt_cv_aix_libpath_ 10304fi 10305 10306 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10307 # Warning - without using the other run time loading flags, 10308 # -berok will link without error, but may produce a broken library. 10309 no_undefined_flag=' $wl-bernotok' 10310 allow_undefined_flag=' $wl-berok' 10311 if test yes = "$with_gnu_ld"; then 10312 # We only use this code for GNU lds that support --whole-archive. 10313 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10314 else 10315 # Exported symbols can be pulled into shared objects from archives 10316 whole_archive_flag_spec='$convenience' 10317 fi 10318 archive_cmds_need_lc=yes 10319 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10320 # -brtl affects multiple linker settings, -berok does not and is overridden later 10321 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10322 if test svr4 != "$with_aix_soname"; then 10323 # This is similar to how AIX traditionally builds its shared libraries. 10324 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' 10325 fi 10326 if test aix != "$with_aix_soname"; then 10327 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' 10328 else 10329 # used by -dlpreopen to get the symbols 10330 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10331 fi 10332 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10333 fi 10334 fi 10335 ;; 10336 10337 amigaos*) 10338 case $host_cpu in 10339 powerpc) 10340 # see comment about AmigaOS4 .so support 10341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10342 archive_expsym_cmds='' 10343 ;; 10344 m68k) 10345 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)' 10346 hardcode_libdir_flag_spec='-L$libdir' 10347 hardcode_minus_L=yes 10348 ;; 10349 esac 10350 ;; 10351 10352 bsdi[45]*) 10353 export_dynamic_flag_spec=-rdynamic 10354 ;; 10355 10356 cygwin* | mingw* | pw32* | cegcc*) 10357 # When not using gcc, we currently assume that we are using 10358 # Microsoft Visual C++. 10359 # hardcode_libdir_flag_spec is actually meaningless, as there is 10360 # no search path for DLLs. 10361 case $cc_basename in 10362 cl*) 10363 # Native MSVC 10364 hardcode_libdir_flag_spec=' ' 10365 allow_undefined_flag=unsupported 10366 always_export_symbols=yes 10367 file_list_spec='@' 10368 # Tell ltmain to make .lib files, not .a files. 10369 libext=lib 10370 # Tell ltmain to make .dll files, not .so files. 10371 shrext_cmds=.dll 10372 # FIXME: Setting linknames here is a bad hack. 10373 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10374 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10375 cp "$export_symbols" "$output_objdir/$soname.def"; 10376 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10377 else 10378 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10379 fi~ 10380 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10381 linknames=' 10382 # The linker will not automatically build a static lib if we build a DLL. 10383 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10384 enable_shared_with_static_runtimes=yes 10385 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10386 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10387 # Don't use ranlib 10388 old_postinstall_cmds='chmod 644 $oldlib' 10389 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10390 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10391 case $lt_outputfile in 10392 *.exe|*.EXE) ;; 10393 *) 10394 lt_outputfile=$lt_outputfile.exe 10395 lt_tool_outputfile=$lt_tool_outputfile.exe 10396 ;; 10397 esac~ 10398 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10399 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10400 $RM "$lt_outputfile.manifest"; 10401 fi' 10402 ;; 10403 *) 10404 # Assume MSVC wrapper 10405 hardcode_libdir_flag_spec=' ' 10406 allow_undefined_flag=unsupported 10407 # Tell ltmain to make .lib files, not .a files. 10408 libext=lib 10409 # Tell ltmain to make .dll files, not .so files. 10410 shrext_cmds=.dll 10411 # FIXME: Setting linknames here is a bad hack. 10412 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10413 # The linker will automatically build a .lib file if we build a DLL. 10414 old_archive_from_new_cmds='true' 10415 # FIXME: Should let the user specify the lib program. 10416 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10417 enable_shared_with_static_runtimes=yes 10418 ;; 10419 esac 10420 ;; 10421 10422 darwin* | rhapsody*) 10423 10424 10425 archive_cmds_need_lc=no 10426 hardcode_direct=no 10427 hardcode_automatic=yes 10428 hardcode_shlibpath_var=unsupported 10429 if test yes = "$lt_cv_ld_force_load"; then 10430 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\"`' 10431 10432 else 10433 whole_archive_flag_spec='' 10434 fi 10435 link_all_deplibs=yes 10436 allow_undefined_flag=$_lt_dar_allow_undefined 10437 case $cc_basename in 10438 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10439 *) _lt_dar_can_shared=$GCC ;; 10440 esac 10441 if test yes = "$_lt_dar_can_shared"; then 10442 output_verbose_link_cmd=func_echo_all 10443 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10444 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10445 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" 10446 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" 10447 10448 else 10449 ld_shlibs=no 10450 fi 10451 10452 ;; 10453 10454 dgux*) 10455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10456 hardcode_libdir_flag_spec='-L$libdir' 10457 hardcode_shlibpath_var=no 10458 ;; 10459 10460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10461 # support. Future versions do this automatically, but an explicit c++rt0.o 10462 # does not break anything, and helps significantly (at the cost of a little 10463 # extra space). 10464 freebsd2.2*) 10465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10466 hardcode_libdir_flag_spec='-R$libdir' 10467 hardcode_direct=yes 10468 hardcode_shlibpath_var=no 10469 ;; 10470 10471 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10472 freebsd2.*) 10473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10474 hardcode_direct=yes 10475 hardcode_minus_L=yes 10476 hardcode_shlibpath_var=no 10477 ;; 10478 10479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10480 freebsd* | dragonfly*) 10481 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10482 hardcode_libdir_flag_spec='-R$libdir' 10483 hardcode_direct=yes 10484 hardcode_shlibpath_var=no 10485 ;; 10486 10487 hpux9*) 10488 if test yes = "$GCC"; then 10489 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' 10490 else 10491 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' 10492 fi 10493 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10494 hardcode_libdir_separator=: 10495 hardcode_direct=yes 10496 10497 # hardcode_minus_L: Not really in the search PATH, 10498 # but as the default location of the library. 10499 hardcode_minus_L=yes 10500 export_dynamic_flag_spec='$wl-E' 10501 ;; 10502 10503 hpux10*) 10504 if test yes,no = "$GCC,$with_gnu_ld"; then 10505 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10506 else 10507 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10508 fi 10509 if test no = "$with_gnu_ld"; then 10510 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10511 hardcode_libdir_separator=: 10512 hardcode_direct=yes 10513 hardcode_direct_absolute=yes 10514 export_dynamic_flag_spec='$wl-E' 10515 # hardcode_minus_L: Not really in the search PATH, 10516 # but as the default location of the library. 10517 hardcode_minus_L=yes 10518 fi 10519 ;; 10520 10521 hpux11*) 10522 if test yes,no = "$GCC,$with_gnu_ld"; then 10523 case $host_cpu in 10524 hppa*64*) 10525 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10526 ;; 10527 ia64*) 10528 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10529 ;; 10530 *) 10531 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10532 ;; 10533 esac 10534 else 10535 case $host_cpu in 10536 hppa*64*) 10537 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10538 ;; 10539 ia64*) 10540 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10541 ;; 10542 *) 10543 10544 # Older versions of the 11.00 compiler do not understand -b yet 10545 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10547$as_echo_n "checking if $CC understands -b... " >&6; } 10548if ${lt_cv_prog_compiler__b+:} false; then : 10549 $as_echo_n "(cached) " >&6 10550else 10551 lt_cv_prog_compiler__b=no 10552 save_LDFLAGS=$LDFLAGS 10553 LDFLAGS="$LDFLAGS -b" 10554 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10556 # The linker can only warn and ignore the option if not recognized 10557 # So say no if there are warnings 10558 if test -s conftest.err; then 10559 # Append any errors to the config.log. 10560 cat conftest.err 1>&5 10561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10563 if diff conftest.exp conftest.er2 >/dev/null; then 10564 lt_cv_prog_compiler__b=yes 10565 fi 10566 else 10567 lt_cv_prog_compiler__b=yes 10568 fi 10569 fi 10570 $RM -r conftest* 10571 LDFLAGS=$save_LDFLAGS 10572 10573fi 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10575$as_echo "$lt_cv_prog_compiler__b" >&6; } 10576 10577if test yes = "$lt_cv_prog_compiler__b"; then 10578 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10579else 10580 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10581fi 10582 10583 ;; 10584 esac 10585 fi 10586 if test no = "$with_gnu_ld"; then 10587 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10588 hardcode_libdir_separator=: 10589 10590 case $host_cpu in 10591 hppa*64*|ia64*) 10592 hardcode_direct=no 10593 hardcode_shlibpath_var=no 10594 ;; 10595 *) 10596 hardcode_direct=yes 10597 hardcode_direct_absolute=yes 10598 export_dynamic_flag_spec='$wl-E' 10599 10600 # hardcode_minus_L: Not really in the search PATH, 10601 # but as the default location of the library. 10602 hardcode_minus_L=yes 10603 ;; 10604 esac 10605 fi 10606 ;; 10607 10608 irix5* | irix6* | nonstopux*) 10609 if test yes = "$GCC"; then 10610 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' 10611 # Try to use the -exported_symbol ld option, if it does not 10612 # work, assume that -exports_file does not work either and 10613 # implicitly export all symbols. 10614 # This should be the same for all languages, so no per-tag cache variable. 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10616$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10617if ${lt_cv_irix_exported_symbol+:} false; then : 10618 $as_echo_n "(cached) " >&6 10619else 10620 save_LDFLAGS=$LDFLAGS 10621 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10623/* end confdefs.h. */ 10624int foo (void) { return 0; } 10625_ACEOF 10626if ac_fn_c_try_link "$LINENO"; then : 10627 lt_cv_irix_exported_symbol=yes 10628else 10629 lt_cv_irix_exported_symbol=no 10630fi 10631rm -f core conftest.err conftest.$ac_objext \ 10632 conftest$ac_exeext conftest.$ac_ext 10633 LDFLAGS=$save_LDFLAGS 10634fi 10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10636$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10637 if test yes = "$lt_cv_irix_exported_symbol"; then 10638 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' 10639 fi 10640 link_all_deplibs=no 10641 else 10642 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' 10643 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' 10644 fi 10645 archive_cmds_need_lc='no' 10646 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10647 hardcode_libdir_separator=: 10648 inherit_rpath=yes 10649 link_all_deplibs=yes 10650 ;; 10651 10652 linux*) 10653 case $cc_basename in 10654 tcc*) 10655 # Fabrice Bellard et al's Tiny C Compiler 10656 ld_shlibs=yes 10657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10658 ;; 10659 esac 10660 ;; 10661 10662 netbsd* | netbsdelf*-gnu) 10663 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10665 else 10666 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10667 fi 10668 hardcode_libdir_flag_spec='-R$libdir' 10669 hardcode_direct=yes 10670 hardcode_shlibpath_var=no 10671 ;; 10672 10673 newsos6) 10674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10675 hardcode_direct=yes 10676 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10677 hardcode_libdir_separator=: 10678 hardcode_shlibpath_var=no 10679 ;; 10680 10681 *nto* | *qnx*) 10682 ;; 10683 10684 openbsd* | bitrig*) 10685 if test -f /usr/libexec/ld.so; then 10686 hardcode_direct=yes 10687 hardcode_shlibpath_var=no 10688 hardcode_direct_absolute=yes 10689 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10691 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10692 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10693 export_dynamic_flag_spec='$wl-E' 10694 else 10695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10696 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10697 fi 10698 else 10699 ld_shlibs=no 10700 fi 10701 ;; 10702 10703 os2*) 10704 hardcode_libdir_flag_spec='-L$libdir' 10705 hardcode_minus_L=yes 10706 allow_undefined_flag=unsupported 10707 shrext_cmds=.dll 10708 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10709 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10710 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10711 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10712 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10713 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10714 emximp -o $lib $output_objdir/$libname.def' 10715 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10718 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10719 prefix_cmds="$SED"~ 10720 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10721 prefix_cmds="$prefix_cmds -e 1d"; 10722 fi~ 10723 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10724 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10725 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10726 emximp -o $lib $output_objdir/$libname.def' 10727 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10728 enable_shared_with_static_runtimes=yes 10729 ;; 10730 10731 osf3*) 10732 if test yes = "$GCC"; then 10733 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10734 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' 10735 else 10736 allow_undefined_flag=' -expect_unresolved \*' 10737 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' 10738 fi 10739 archive_cmds_need_lc='no' 10740 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10741 hardcode_libdir_separator=: 10742 ;; 10743 10744 osf4* | osf5*) # as osf3* with the addition of -msym flag 10745 if test yes = "$GCC"; then 10746 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10747 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' 10748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10749 else 10750 allow_undefined_flag=' -expect_unresolved \*' 10751 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' 10752 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~ 10753 $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' 10754 10755 # Both c and cxx compiler support -rpath directly 10756 hardcode_libdir_flag_spec='-rpath $libdir' 10757 fi 10758 archive_cmds_need_lc='no' 10759 hardcode_libdir_separator=: 10760 ;; 10761 10762 solaris*) 10763 no_undefined_flag=' -z defs' 10764 if test yes = "$GCC"; then 10765 wlarc='$wl' 10766 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10767 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10768 $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' 10769 else 10770 case `$CC -V 2>&1` in 10771 *"Compilers 5.0"*) 10772 wlarc='' 10773 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10774 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10775 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10776 ;; 10777 *) 10778 wlarc='$wl' 10779 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10781 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10782 ;; 10783 esac 10784 fi 10785 hardcode_libdir_flag_spec='-R$libdir' 10786 hardcode_shlibpath_var=no 10787 case $host_os in 10788 solaris2.[0-5] | solaris2.[0-5].*) ;; 10789 *) 10790 # The compiler driver will combine and reorder linker options, 10791 # but understands '-z linker_flag'. GCC discards it without '$wl', 10792 # but is careful enough not to reorder. 10793 # Supported since Solaris 2.6 (maybe 2.5.1?) 10794 if test yes = "$GCC"; then 10795 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10796 else 10797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10798 fi 10799 ;; 10800 esac 10801 link_all_deplibs=yes 10802 ;; 10803 10804 sunos4*) 10805 if test sequent = "$host_vendor"; then 10806 # Use $CC to link under sequent, because it throws in some extra .o 10807 # files that make .init and .fini sections work. 10808 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10809 else 10810 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10811 fi 10812 hardcode_libdir_flag_spec='-L$libdir' 10813 hardcode_direct=yes 10814 hardcode_minus_L=yes 10815 hardcode_shlibpath_var=no 10816 ;; 10817 10818 sysv4) 10819 case $host_vendor in 10820 sni) 10821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10822 hardcode_direct=yes # is this really true??? 10823 ;; 10824 siemens) 10825 ## LD is ld it makes a PLAMLIB 10826 ## CC just makes a GrossModule. 10827 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10828 reload_cmds='$CC -r -o $output$reload_objs' 10829 hardcode_direct=no 10830 ;; 10831 motorola) 10832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10833 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10834 ;; 10835 esac 10836 runpath_var='LD_RUN_PATH' 10837 hardcode_shlibpath_var=no 10838 ;; 10839 10840 sysv4.3*) 10841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10842 hardcode_shlibpath_var=no 10843 export_dynamic_flag_spec='-Bexport' 10844 ;; 10845 10846 sysv4*MP*) 10847 if test -d /usr/nec; then 10848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10849 hardcode_shlibpath_var=no 10850 runpath_var=LD_RUN_PATH 10851 hardcode_runpath_var=yes 10852 ld_shlibs=yes 10853 fi 10854 ;; 10855 10856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10857 no_undefined_flag='$wl-z,text' 10858 archive_cmds_need_lc=no 10859 hardcode_shlibpath_var=no 10860 runpath_var='LD_RUN_PATH' 10861 10862 if test yes = "$GCC"; then 10863 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10864 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10865 else 10866 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10867 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10868 fi 10869 ;; 10870 10871 sysv5* | sco3.2v5* | sco5v6*) 10872 # Note: We CANNOT use -z defs as we might desire, because we do not 10873 # link with -lc, and that would cause any symbols used from libc to 10874 # always be unresolved, which means just about no library would 10875 # ever link correctly. If we're not using GNU ld we use -z text 10876 # though, which does catch some bad symbols but isn't as heavy-handed 10877 # as -z defs. 10878 no_undefined_flag='$wl-z,text' 10879 allow_undefined_flag='$wl-z,nodefs' 10880 archive_cmds_need_lc=no 10881 hardcode_shlibpath_var=no 10882 hardcode_libdir_flag_spec='$wl-R,$libdir' 10883 hardcode_libdir_separator=':' 10884 link_all_deplibs=yes 10885 export_dynamic_flag_spec='$wl-Bexport' 10886 runpath_var='LD_RUN_PATH' 10887 10888 if test yes = "$GCC"; then 10889 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10890 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10891 else 10892 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10893 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10894 fi 10895 ;; 10896 10897 uts4*) 10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10899 hardcode_libdir_flag_spec='-L$libdir' 10900 hardcode_shlibpath_var=no 10901 ;; 10902 10903 *) 10904 ld_shlibs=no 10905 ;; 10906 esac 10907 10908 if test sni = "$host_vendor"; then 10909 case $host in 10910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10911 export_dynamic_flag_spec='$wl-Blargedynsym' 10912 ;; 10913 esac 10914 fi 10915 fi 10916 10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10918$as_echo "$ld_shlibs" >&6; } 10919test no = "$ld_shlibs" && can_build_shared=no 10920 10921with_gnu_ld=$with_gnu_ld 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937# 10938# Do we need to explicitly link libc? 10939# 10940case "x$archive_cmds_need_lc" in 10941x|xyes) 10942 # Assume -lc should be added 10943 archive_cmds_need_lc=yes 10944 10945 if test yes,yes = "$GCC,$enable_shared"; then 10946 case $archive_cmds in 10947 *'~'*) 10948 # FIXME: we may have to deal with multi-command sequences. 10949 ;; 10950 '$CC '*) 10951 # Test whether the compiler implicitly links with -lc since on some 10952 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10953 # to ld, don't add -lc before -lgcc. 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10955$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10956if ${lt_cv_archive_cmds_need_lc+:} false; then : 10957 $as_echo_n "(cached) " >&6 10958else 10959 $RM conftest* 10960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10961 10962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10963 (eval $ac_compile) 2>&5 10964 ac_status=$? 10965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10966 test $ac_status = 0; } 2>conftest.err; then 10967 soname=conftest 10968 lib=conftest 10969 libobjs=conftest.$ac_objext 10970 deplibs= 10971 wl=$lt_prog_compiler_wl 10972 pic_flag=$lt_prog_compiler_pic 10973 compiler_flags=-v 10974 linker_flags=-v 10975 verstring= 10976 output_objdir=. 10977 libname=conftest 10978 lt_save_allow_undefined_flag=$allow_undefined_flag 10979 allow_undefined_flag= 10980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10981 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10982 ac_status=$? 10983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10984 test $ac_status = 0; } 10985 then 10986 lt_cv_archive_cmds_need_lc=no 10987 else 10988 lt_cv_archive_cmds_need_lc=yes 10989 fi 10990 allow_undefined_flag=$lt_save_allow_undefined_flag 10991 else 10992 cat conftest.err 1>&5 10993 fi 10994 $RM conftest* 10995 10996fi 10997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10998$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10999 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11000 ;; 11001 esac 11002 fi 11003 ;; 11004esac 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11158$as_echo_n "checking dynamic linker characteristics... " >&6; } 11159 11160if test yes = "$GCC"; then 11161 case $host_os in 11162 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11163 *) lt_awk_arg='/^libraries:/' ;; 11164 esac 11165 case $host_os in 11166 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11167 *) lt_sed_strip_eq='s|=/|/|g' ;; 11168 esac 11169 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11170 case $lt_search_path_spec in 11171 *\;*) 11172 # if the path contains ";" then we assume it to be the separator 11173 # otherwise default to the standard path separator (i.e. ":") - it is 11174 # assumed that no part of a normal pathname contains ";" but that should 11175 # okay in the real world where ";" in dirpaths is itself problematic. 11176 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11177 ;; 11178 *) 11179 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11180 ;; 11181 esac 11182 # Ok, now we have the path, separated by spaces, we can step through it 11183 # and add multilib dir if necessary... 11184 lt_tmp_lt_search_path_spec= 11185 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11186 # ...but if some path component already ends with the multilib dir we assume 11187 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11188 case "$lt_multi_os_dir; $lt_search_path_spec " in 11189 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11190 lt_multi_os_dir= 11191 ;; 11192 esac 11193 for lt_sys_path in $lt_search_path_spec; do 11194 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11195 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11196 elif test -n "$lt_multi_os_dir"; then 11197 test -d "$lt_sys_path" && \ 11198 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11199 fi 11200 done 11201 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11202BEGIN {RS = " "; FS = "/|\n";} { 11203 lt_foo = ""; 11204 lt_count = 0; 11205 for (lt_i = NF; lt_i > 0; lt_i--) { 11206 if ($lt_i != "" && $lt_i != ".") { 11207 if ($lt_i == "..") { 11208 lt_count++; 11209 } else { 11210 if (lt_count == 0) { 11211 lt_foo = "/" $lt_i lt_foo; 11212 } else { 11213 lt_count--; 11214 } 11215 } 11216 } 11217 } 11218 if (lt_foo != "") { lt_freq[lt_foo]++; } 11219 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11220}'` 11221 # AWK program above erroneously prepends '/' to C:/dos/paths 11222 # for these hosts. 11223 case $host_os in 11224 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11225 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11226 esac 11227 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11228else 11229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11230fi 11231library_names_spec= 11232libname_spec='lib$name' 11233soname_spec= 11234shrext_cmds=.so 11235postinstall_cmds= 11236postuninstall_cmds= 11237finish_cmds= 11238finish_eval= 11239shlibpath_var= 11240shlibpath_overrides_runpath=unknown 11241version_type=none 11242dynamic_linker="$host_os ld.so" 11243sys_lib_dlsearch_path_spec="/lib /usr/lib" 11244need_lib_prefix=unknown 11245hardcode_into_libs=no 11246 11247# when you set need_version to no, make sure it does not cause -set_version 11248# flags to be left without arguments 11249need_version=unknown 11250 11251 11252 11253case $host_os in 11254aix3*) 11255 version_type=linux # correct to gnu/linux during the next big refactor 11256 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11257 shlibpath_var=LIBPATH 11258 11259 # AIX 3 has no versioning support, so we append a major version to the name. 11260 soname_spec='$libname$release$shared_ext$major' 11261 ;; 11262 11263aix[4-9]*) 11264 version_type=linux # correct to gnu/linux during the next big refactor 11265 need_lib_prefix=no 11266 need_version=no 11267 hardcode_into_libs=yes 11268 if test ia64 = "$host_cpu"; then 11269 # AIX 5 supports IA64 11270 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11271 shlibpath_var=LD_LIBRARY_PATH 11272 else 11273 # With GCC up to 2.95.x, collect2 would create an import file 11274 # for dependence libraries. The import file would start with 11275 # the line '#! .'. This would cause the generated library to 11276 # depend on '.', always an invalid library. This was fixed in 11277 # development snapshots of GCC prior to 3.0. 11278 case $host_os in 11279 aix4 | aix4.[01] | aix4.[01].*) 11280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11281 echo ' yes ' 11282 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11283 : 11284 else 11285 can_build_shared=no 11286 fi 11287 ;; 11288 esac 11289 # Using Import Files as archive members, it is possible to support 11290 # filename-based versioning of shared library archives on AIX. While 11291 # this would work for both with and without runtime linking, it will 11292 # prevent static linking of such archives. So we do filename-based 11293 # shared library versioning with .so extension only, which is used 11294 # when both runtime linking and shared linking is enabled. 11295 # Unfortunately, runtime linking may impact performance, so we do 11296 # not want this to be the default eventually. Also, we use the 11297 # versioned .so libs for executables only if there is the -brtl 11298 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11299 # To allow for filename-based versioning support, we need to create 11300 # libNAME.so.V as an archive file, containing: 11301 # *) an Import File, referring to the versioned filename of the 11302 # archive as well as the shared archive member, telling the 11303 # bitwidth (32 or 64) of that shared object, and providing the 11304 # list of exported symbols of that shared object, eventually 11305 # decorated with the 'weak' keyword 11306 # *) the shared object with the F_LOADONLY flag set, to really avoid 11307 # it being seen by the linker. 11308 # At run time we better use the real file rather than another symlink, 11309 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11310 11311 case $with_aix_soname,$aix_use_runtimelinking in 11312 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11313 # soname into executable. Probably we can add versioning support to 11314 # collect2, so additional links can be useful in future. 11315 aix,yes) # traditional libtool 11316 dynamic_linker='AIX unversionable lib.so' 11317 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11318 # instead of lib<name>.a to let people know that these are not 11319 # typical AIX shared libraries. 11320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11321 ;; 11322 aix,no) # traditional AIX only 11323 dynamic_linker='AIX lib.a(lib.so.V)' 11324 # We preserve .a as extension for shared libraries through AIX4.2 11325 # and later when we are not doing run time linking. 11326 library_names_spec='$libname$release.a $libname.a' 11327 soname_spec='$libname$release$shared_ext$major' 11328 ;; 11329 svr4,*) # full svr4 only 11330 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11331 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11332 # We do not specify a path in Import Files, so LIBPATH fires. 11333 shlibpath_overrides_runpath=yes 11334 ;; 11335 *,yes) # both, prefer svr4 11336 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11337 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11338 # unpreferred sharedlib libNAME.a needs extra handling 11339 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"' 11340 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"' 11341 # We do not specify a path in Import Files, so LIBPATH fires. 11342 shlibpath_overrides_runpath=yes 11343 ;; 11344 *,no) # both, prefer aix 11345 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11346 library_names_spec='$libname$release.a $libname.a' 11347 soname_spec='$libname$release$shared_ext$major' 11348 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11349 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)' 11350 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"' 11351 ;; 11352 esac 11353 shlibpath_var=LIBPATH 11354 fi 11355 ;; 11356 11357amigaos*) 11358 case $host_cpu in 11359 powerpc) 11360 # Since July 2007 AmigaOS4 officially supports .so libraries. 11361 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11363 ;; 11364 m68k) 11365 library_names_spec='$libname.ixlibrary $libname.a' 11366 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11367 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' 11368 ;; 11369 esac 11370 ;; 11371 11372beos*) 11373 library_names_spec='$libname$shared_ext' 11374 dynamic_linker="$host_os ld.so" 11375 shlibpath_var=LIBRARY_PATH 11376 ;; 11377 11378bsdi[45]*) 11379 version_type=linux # correct to gnu/linux during the next big refactor 11380 need_version=no 11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11382 soname_spec='$libname$release$shared_ext$major' 11383 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11384 shlibpath_var=LD_LIBRARY_PATH 11385 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11386 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11387 # the default ld.so.conf also contains /usr/contrib/lib and 11388 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11389 # libtool to hard-code these into programs 11390 ;; 11391 11392cygwin* | mingw* | pw32* | cegcc*) 11393 version_type=windows 11394 shrext_cmds=.dll 11395 need_version=no 11396 need_lib_prefix=no 11397 11398 case $GCC,$cc_basename in 11399 yes,*) 11400 # gcc 11401 library_names_spec='$libname.dll.a' 11402 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11403 postinstall_cmds='base_file=`basename \$file`~ 11404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11405 dldir=$destdir/`dirname \$dlpath`~ 11406 test -d \$dldir || mkdir -p \$dldir~ 11407 $install_prog $dir/$dlname \$dldir/$dlname~ 11408 chmod a+x \$dldir/$dlname~ 11409 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11410 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11411 fi' 11412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11413 dlpath=$dir/\$dldll~ 11414 $RM \$dlpath' 11415 shlibpath_overrides_runpath=yes 11416 11417 case $host_os in 11418 cygwin*) 11419 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11420 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11421 11422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11423 ;; 11424 mingw* | cegcc*) 11425 # MinGW DLLs use traditional 'lib' prefix 11426 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11427 ;; 11428 pw32*) 11429 # pw32 DLLs use 'pw' prefix rather than 'lib' 11430 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11431 ;; 11432 esac 11433 dynamic_linker='Win32 ld.exe' 11434 ;; 11435 11436 *,cl*) 11437 # Native MSVC 11438 libname_spec='$name' 11439 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11440 library_names_spec='$libname.dll.lib' 11441 11442 case $build_os in 11443 mingw*) 11444 sys_lib_search_path_spec= 11445 lt_save_ifs=$IFS 11446 IFS=';' 11447 for lt_path in $LIB 11448 do 11449 IFS=$lt_save_ifs 11450 # Let DOS variable expansion print the short 8.3 style file name. 11451 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11452 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11453 done 11454 IFS=$lt_save_ifs 11455 # Convert to MSYS style. 11456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11457 ;; 11458 cygwin*) 11459 # Convert to unix form, then to dos form, then back to unix form 11460 # but this time dos style (no spaces!) so that the unix form looks 11461 # like /cygdrive/c/PROGRA~1:/cygdr... 11462 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11463 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11464 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11465 ;; 11466 *) 11467 sys_lib_search_path_spec=$LIB 11468 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11469 # It is most probably a Windows format PATH. 11470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11471 else 11472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11473 fi 11474 # FIXME: find the short name or the path components, as spaces are 11475 # common. (e.g. "Program Files" -> "PROGRA~1") 11476 ;; 11477 esac 11478 11479 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11480 postinstall_cmds='base_file=`basename \$file`~ 11481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11482 dldir=$destdir/`dirname \$dlpath`~ 11483 test -d \$dldir || mkdir -p \$dldir~ 11484 $install_prog $dir/$dlname \$dldir/$dlname' 11485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11486 dlpath=$dir/\$dldll~ 11487 $RM \$dlpath' 11488 shlibpath_overrides_runpath=yes 11489 dynamic_linker='Win32 link.exe' 11490 ;; 11491 11492 *) 11493 # Assume MSVC wrapper 11494 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11495 dynamic_linker='Win32 ld.exe' 11496 ;; 11497 esac 11498 # FIXME: first we should search . and the directory the executable is in 11499 shlibpath_var=PATH 11500 ;; 11501 11502darwin* | rhapsody*) 11503 dynamic_linker="$host_os dyld" 11504 version_type=darwin 11505 need_lib_prefix=no 11506 need_version=no 11507 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11508 soname_spec='$libname$release$major$shared_ext' 11509 shlibpath_overrides_runpath=yes 11510 shlibpath_var=DYLD_LIBRARY_PATH 11511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11512 11513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11515 ;; 11516 11517dgux*) 11518 version_type=linux # correct to gnu/linux during the next big refactor 11519 need_lib_prefix=no 11520 need_version=no 11521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11522 soname_spec='$libname$release$shared_ext$major' 11523 shlibpath_var=LD_LIBRARY_PATH 11524 ;; 11525 11526freebsd* | dragonfly*) 11527 # DragonFly does not have aout. When/if they implement a new 11528 # versioning mechanism, adjust this. 11529 if test -x /usr/bin/objformat; then 11530 objformat=`/usr/bin/objformat` 11531 else 11532 case $host_os in 11533 freebsd[23].*) objformat=aout ;; 11534 *) objformat=elf ;; 11535 esac 11536 fi 11537 version_type=freebsd-$objformat 11538 case $version_type in 11539 freebsd-elf*) 11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11541 soname_spec='$libname$release$shared_ext$major' 11542 need_version=no 11543 need_lib_prefix=no 11544 ;; 11545 freebsd-*) 11546 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11547 need_version=yes 11548 ;; 11549 esac 11550 shlibpath_var=LD_LIBRARY_PATH 11551 case $host_os in 11552 freebsd2.*) 11553 shlibpath_overrides_runpath=yes 11554 ;; 11555 freebsd3.[01]* | freebsdelf3.[01]*) 11556 shlibpath_overrides_runpath=yes 11557 hardcode_into_libs=yes 11558 ;; 11559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11561 shlibpath_overrides_runpath=no 11562 hardcode_into_libs=yes 11563 ;; 11564 *) # from 4.6 on, and DragonFly 11565 shlibpath_overrides_runpath=yes 11566 hardcode_into_libs=yes 11567 ;; 11568 esac 11569 ;; 11570 11571haiku*) 11572 version_type=linux # correct to gnu/linux during the next big refactor 11573 need_lib_prefix=no 11574 need_version=no 11575 dynamic_linker="$host_os runtime_loader" 11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11577 soname_spec='$libname$release$shared_ext$major' 11578 shlibpath_var=LIBRARY_PATH 11579 shlibpath_overrides_runpath=no 11580 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11581 hardcode_into_libs=yes 11582 ;; 11583 11584hpux9* | hpux10* | hpux11*) 11585 # Give a soname corresponding to the major version so that dld.sl refuses to 11586 # link against other versions. 11587 version_type=sunos 11588 need_lib_prefix=no 11589 need_version=no 11590 case $host_cpu in 11591 ia64*) 11592 shrext_cmds='.so' 11593 hardcode_into_libs=yes 11594 dynamic_linker="$host_os dld.so" 11595 shlibpath_var=LD_LIBRARY_PATH 11596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11598 soname_spec='$libname$release$shared_ext$major' 11599 if test 32 = "$HPUX_IA64_MODE"; then 11600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11601 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11602 else 11603 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11604 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11605 fi 11606 ;; 11607 hppa*64*) 11608 shrext_cmds='.sl' 11609 hardcode_into_libs=yes 11610 dynamic_linker="$host_os dld.sl" 11611 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11612 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11614 soname_spec='$libname$release$shared_ext$major' 11615 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11617 ;; 11618 *) 11619 shrext_cmds='.sl' 11620 dynamic_linker="$host_os dld.sl" 11621 shlibpath_var=SHLIB_PATH 11622 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11624 soname_spec='$libname$release$shared_ext$major' 11625 ;; 11626 esac 11627 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11628 postinstall_cmds='chmod 555 $lib' 11629 # or fails outright, so override atomically: 11630 install_override_mode=555 11631 ;; 11632 11633interix[3-9]*) 11634 version_type=linux # correct to gnu/linux during the next big refactor 11635 need_lib_prefix=no 11636 need_version=no 11637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11638 soname_spec='$libname$release$shared_ext$major' 11639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11640 shlibpath_var=LD_LIBRARY_PATH 11641 shlibpath_overrides_runpath=no 11642 hardcode_into_libs=yes 11643 ;; 11644 11645irix5* | irix6* | nonstopux*) 11646 case $host_os in 11647 nonstopux*) version_type=nonstopux ;; 11648 *) 11649 if test yes = "$lt_cv_prog_gnu_ld"; then 11650 version_type=linux # correct to gnu/linux during the next big refactor 11651 else 11652 version_type=irix 11653 fi ;; 11654 esac 11655 need_lib_prefix=no 11656 need_version=no 11657 soname_spec='$libname$release$shared_ext$major' 11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11659 case $host_os in 11660 irix5* | nonstopux*) 11661 libsuff= shlibsuff= 11662 ;; 11663 *) 11664 case $LD in # libtool.m4 will add one of these switches to LD 11665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11666 libsuff= shlibsuff= libmagic=32-bit;; 11667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11668 libsuff=32 shlibsuff=N32 libmagic=N32;; 11669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11671 *) libsuff= shlibsuff= libmagic=never-match;; 11672 esac 11673 ;; 11674 esac 11675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11676 shlibpath_overrides_runpath=no 11677 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11678 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11679 hardcode_into_libs=yes 11680 ;; 11681 11682# No shared lib support for Linux oldld, aout, or coff. 11683linux*oldld* | linux*aout* | linux*coff*) 11684 dynamic_linker=no 11685 ;; 11686 11687linux*android*) 11688 version_type=none # Android doesn't support versioned libraries. 11689 need_lib_prefix=no 11690 need_version=no 11691 library_names_spec='$libname$release$shared_ext' 11692 soname_spec='$libname$release$shared_ext' 11693 finish_cmds= 11694 shlibpath_var=LD_LIBRARY_PATH 11695 shlibpath_overrides_runpath=yes 11696 11697 # This implies no fast_install, which is unacceptable. 11698 # Some rework will be needed to allow for fast_install 11699 # before this can be enabled. 11700 hardcode_into_libs=yes 11701 11702 dynamic_linker='Android linker' 11703 # Don't embed -rpath directories since the linker doesn't support them. 11704 hardcode_libdir_flag_spec='-L$libdir' 11705 ;; 11706 11707# This must be glibc/ELF. 11708linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11709 version_type=linux # correct to gnu/linux during the next big refactor 11710 need_lib_prefix=no 11711 need_version=no 11712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11713 soname_spec='$libname$release$shared_ext$major' 11714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11715 shlibpath_var=LD_LIBRARY_PATH 11716 shlibpath_overrides_runpath=no 11717 11718 # Some binutils ld are patched to set DT_RUNPATH 11719 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11720 $as_echo_n "(cached) " >&6 11721else 11722 lt_cv_shlibpath_overrides_runpath=no 11723 save_LDFLAGS=$LDFLAGS 11724 save_libdir=$libdir 11725 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11726 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11728/* end confdefs.h. */ 11729 11730int 11731main () 11732{ 11733 11734 ; 11735 return 0; 11736} 11737_ACEOF 11738if ac_fn_c_try_link "$LINENO"; then : 11739 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11740 lt_cv_shlibpath_overrides_runpath=yes 11741fi 11742fi 11743rm -f core conftest.err conftest.$ac_objext \ 11744 conftest$ac_exeext conftest.$ac_ext 11745 LDFLAGS=$save_LDFLAGS 11746 libdir=$save_libdir 11747 11748fi 11749 11750 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11751 11752 # This implies no fast_install, which is unacceptable. 11753 # Some rework will be needed to allow for fast_install 11754 # before this can be enabled. 11755 hardcode_into_libs=yes 11756 11757 # Ideally, we could use ldconfig to report *all* directores which are 11758 # searched for libraries, however this is still not possible. Aside from not 11759 # being certain /sbin/ldconfig is available, command 11760 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11761 # even though it is searched at run-time. Try to do the best guess by 11762 # appending ld.so.conf contents (and includes) to the search path. 11763 if test -f /etc/ld.so.conf; then 11764 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' ' '` 11765 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11766 fi 11767 11768 # We used to test for /lib/ld.so.1 and disable shared libraries on 11769 # powerpc, because MkLinux only supported shared libraries with the 11770 # GNU dynamic linker. Since this was broken with cross compilers, 11771 # most powerpc-linux boxes support dynamic linking these days and 11772 # people can always --disable-shared, the test was removed, and we 11773 # assume the GNU/Linux dynamic linker is in use. 11774 dynamic_linker='GNU/Linux ld.so' 11775 ;; 11776 11777netbsdelf*-gnu) 11778 version_type=linux 11779 need_lib_prefix=no 11780 need_version=no 11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11782 soname_spec='${libname}${release}${shared_ext}$major' 11783 shlibpath_var=LD_LIBRARY_PATH 11784 shlibpath_overrides_runpath=no 11785 hardcode_into_libs=yes 11786 dynamic_linker='NetBSD ld.elf_so' 11787 ;; 11788 11789netbsd*) 11790 version_type=sunos 11791 need_lib_prefix=no 11792 need_version=no 11793 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11794 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11796 dynamic_linker='NetBSD (a.out) ld.so' 11797 else 11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11799 soname_spec='$libname$release$shared_ext$major' 11800 dynamic_linker='NetBSD ld.elf_so' 11801 fi 11802 shlibpath_var=LD_LIBRARY_PATH 11803 shlibpath_overrides_runpath=yes 11804 hardcode_into_libs=yes 11805 ;; 11806 11807newsos6) 11808 version_type=linux # correct to gnu/linux during the next big refactor 11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11810 shlibpath_var=LD_LIBRARY_PATH 11811 shlibpath_overrides_runpath=yes 11812 ;; 11813 11814*nto* | *qnx*) 11815 version_type=qnx 11816 need_lib_prefix=no 11817 need_version=no 11818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11819 soname_spec='$libname$release$shared_ext$major' 11820 shlibpath_var=LD_LIBRARY_PATH 11821 shlibpath_overrides_runpath=no 11822 hardcode_into_libs=yes 11823 dynamic_linker='ldqnx.so' 11824 ;; 11825 11826openbsd* | bitrig*) 11827 version_type=sunos 11828 sys_lib_dlsearch_path_spec=/usr/lib 11829 need_lib_prefix=no 11830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11831 need_version=no 11832 else 11833 need_version=yes 11834 fi 11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11837 shlibpath_var=LD_LIBRARY_PATH 11838 shlibpath_overrides_runpath=yes 11839 ;; 11840 11841os2*) 11842 libname_spec='$name' 11843 version_type=windows 11844 shrext_cmds=.dll 11845 need_version=no 11846 need_lib_prefix=no 11847 # OS/2 can only load a DLL with a base name of 8 characters or less. 11848 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11849 v=$($ECHO $release$versuffix | tr -d .-); 11850 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11851 $ECHO $n$v`$shared_ext' 11852 library_names_spec='${libname}_dll.$libext' 11853 dynamic_linker='OS/2 ld.exe' 11854 shlibpath_var=BEGINLIBPATH 11855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11857 postinstall_cmds='base_file=`basename \$file`~ 11858 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11859 dldir=$destdir/`dirname \$dlpath`~ 11860 test -d \$dldir || mkdir -p \$dldir~ 11861 $install_prog $dir/$dlname \$dldir/$dlname~ 11862 chmod a+x \$dldir/$dlname~ 11863 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11864 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11865 fi' 11866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11867 dlpath=$dir/\$dldll~ 11868 $RM \$dlpath' 11869 ;; 11870 11871osf3* | osf4* | osf5*) 11872 version_type=osf 11873 need_lib_prefix=no 11874 need_version=no 11875 soname_spec='$libname$release$shared_ext$major' 11876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11877 shlibpath_var=LD_LIBRARY_PATH 11878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11880 ;; 11881 11882rdos*) 11883 dynamic_linker=no 11884 ;; 11885 11886solaris*) 11887 version_type=linux # correct to gnu/linux during the next big refactor 11888 need_lib_prefix=no 11889 need_version=no 11890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11891 soname_spec='$libname$release$shared_ext$major' 11892 shlibpath_var=LD_LIBRARY_PATH 11893 shlibpath_overrides_runpath=yes 11894 hardcode_into_libs=yes 11895 # ldd complains unless libraries are executable 11896 postinstall_cmds='chmod +x $lib' 11897 ;; 11898 11899sunos4*) 11900 version_type=sunos 11901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11902 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11903 shlibpath_var=LD_LIBRARY_PATH 11904 shlibpath_overrides_runpath=yes 11905 if test yes = "$with_gnu_ld"; then 11906 need_lib_prefix=no 11907 fi 11908 need_version=yes 11909 ;; 11910 11911sysv4 | sysv4.3*) 11912 version_type=linux # correct to gnu/linux during the next big refactor 11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11914 soname_spec='$libname$release$shared_ext$major' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 case $host_vendor in 11917 sni) 11918 shlibpath_overrides_runpath=no 11919 need_lib_prefix=no 11920 runpath_var=LD_RUN_PATH 11921 ;; 11922 siemens) 11923 need_lib_prefix=no 11924 ;; 11925 motorola) 11926 need_lib_prefix=no 11927 need_version=no 11928 shlibpath_overrides_runpath=no 11929 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11930 ;; 11931 esac 11932 ;; 11933 11934sysv4*MP*) 11935 if test -d /usr/nec; then 11936 version_type=linux # correct to gnu/linux during the next big refactor 11937 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11938 soname_spec='$libname$shared_ext.$major' 11939 shlibpath_var=LD_LIBRARY_PATH 11940 fi 11941 ;; 11942 11943sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11944 version_type=sco 11945 need_lib_prefix=no 11946 need_version=no 11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11948 soname_spec='$libname$release$shared_ext$major' 11949 shlibpath_var=LD_LIBRARY_PATH 11950 shlibpath_overrides_runpath=yes 11951 hardcode_into_libs=yes 11952 if test yes = "$with_gnu_ld"; then 11953 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11954 else 11955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11956 case $host_os in 11957 sco3.2v5*) 11958 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11959 ;; 11960 esac 11961 fi 11962 sys_lib_dlsearch_path_spec='/usr/lib' 11963 ;; 11964 11965tpf*) 11966 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11967 version_type=linux # correct to gnu/linux during the next big refactor 11968 need_lib_prefix=no 11969 need_version=no 11970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11971 shlibpath_var=LD_LIBRARY_PATH 11972 shlibpath_overrides_runpath=no 11973 hardcode_into_libs=yes 11974 ;; 11975 11976uts4*) 11977 version_type=linux # correct to gnu/linux during the next big refactor 11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11979 soname_spec='$libname$release$shared_ext$major' 11980 shlibpath_var=LD_LIBRARY_PATH 11981 ;; 11982 11983*) 11984 dynamic_linker=no 11985 ;; 11986esac 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11988$as_echo "$dynamic_linker" >&6; } 11989test no = "$dynamic_linker" && can_build_shared=no 11990 11991variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11992if test yes = "$GCC"; then 11993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11994fi 11995 11996if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11997 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11998fi 11999 12000if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12001 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12002fi 12003 12004# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12005configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12006 12007# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12008func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12009 12010# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12011configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12110$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12111hardcode_action= 12112if test -n "$hardcode_libdir_flag_spec" || 12113 test -n "$runpath_var" || 12114 test yes = "$hardcode_automatic"; then 12115 12116 # We can hardcode non-existent directories. 12117 if test no != "$hardcode_direct" && 12118 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12119 # have to relink, otherwise we might link with an installed library 12120 # when we should be linking with a yet-to-be-installed one 12121 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12122 test no != "$hardcode_minus_L"; then 12123 # Linking always hardcodes the temporary library directory. 12124 hardcode_action=relink 12125 else 12126 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12127 hardcode_action=immediate 12128 fi 12129else 12130 # We cannot hardcode anything, or else we can only hardcode existing 12131 # directories. 12132 hardcode_action=unsupported 12133fi 12134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12135$as_echo "$hardcode_action" >&6; } 12136 12137if test relink = "$hardcode_action" || 12138 test yes = "$inherit_rpath"; then 12139 # Fast installation is not supported 12140 enable_fast_install=no 12141elif test yes = "$shlibpath_overrides_runpath" || 12142 test no = "$enable_shared"; then 12143 # Fast installation is not necessary 12144 enable_fast_install=needless 12145fi 12146 12147 12148 12149 12150 12151 12152 if test yes != "$enable_dlopen"; then 12153 enable_dlopen=unknown 12154 enable_dlopen_self=unknown 12155 enable_dlopen_self_static=unknown 12156else 12157 lt_cv_dlopen=no 12158 lt_cv_dlopen_libs= 12159 12160 case $host_os in 12161 beos*) 12162 lt_cv_dlopen=load_add_on 12163 lt_cv_dlopen_libs= 12164 lt_cv_dlopen_self=yes 12165 ;; 12166 12167 mingw* | pw32* | cegcc*) 12168 lt_cv_dlopen=LoadLibrary 12169 lt_cv_dlopen_libs= 12170 ;; 12171 12172 cygwin*) 12173 lt_cv_dlopen=dlopen 12174 lt_cv_dlopen_libs= 12175 ;; 12176 12177 darwin*) 12178 # if libdl is installed we need to link against it 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12180$as_echo_n "checking for dlopen in -ldl... " >&6; } 12181if ${ac_cv_lib_dl_dlopen+:} false; then : 12182 $as_echo_n "(cached) " >&6 12183else 12184 ac_check_lib_save_LIBS=$LIBS 12185LIBS="-ldl $LIBS" 12186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12187/* end confdefs.h. */ 12188 12189/* Override any GCC internal prototype to avoid an error. 12190 Use char because int might match the return type of a GCC 12191 builtin and then its argument prototype would still apply. */ 12192#ifdef __cplusplus 12193extern "C" 12194#endif 12195char dlopen (); 12196int 12197main () 12198{ 12199return dlopen (); 12200 ; 12201 return 0; 12202} 12203_ACEOF 12204if ac_fn_c_try_link "$LINENO"; then : 12205 ac_cv_lib_dl_dlopen=yes 12206else 12207 ac_cv_lib_dl_dlopen=no 12208fi 12209rm -f core conftest.err conftest.$ac_objext \ 12210 conftest$ac_exeext conftest.$ac_ext 12211LIBS=$ac_check_lib_save_LIBS 12212fi 12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12214$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12215if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12216 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12217else 12218 12219 lt_cv_dlopen=dyld 12220 lt_cv_dlopen_libs= 12221 lt_cv_dlopen_self=yes 12222 12223fi 12224 12225 ;; 12226 12227 tpf*) 12228 # Don't try to run any link tests for TPF. We know it's impossible 12229 # because TPF is a cross-compiler, and we know how we open DSOs. 12230 lt_cv_dlopen=dlopen 12231 lt_cv_dlopen_libs= 12232 lt_cv_dlopen_self=no 12233 ;; 12234 12235 *) 12236 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12237if test "x$ac_cv_func_shl_load" = xyes; then : 12238 lt_cv_dlopen=shl_load 12239else 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12241$as_echo_n "checking for shl_load in -ldld... " >&6; } 12242if ${ac_cv_lib_dld_shl_load+:} false; then : 12243 $as_echo_n "(cached) " >&6 12244else 12245 ac_check_lib_save_LIBS=$LIBS 12246LIBS="-ldld $LIBS" 12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12248/* end confdefs.h. */ 12249 12250/* Override any GCC internal prototype to avoid an error. 12251 Use char because int might match the return type of a GCC 12252 builtin and then its argument prototype would still apply. */ 12253#ifdef __cplusplus 12254extern "C" 12255#endif 12256char shl_load (); 12257int 12258main () 12259{ 12260return shl_load (); 12261 ; 12262 return 0; 12263} 12264_ACEOF 12265if ac_fn_c_try_link "$LINENO"; then : 12266 ac_cv_lib_dld_shl_load=yes 12267else 12268 ac_cv_lib_dld_shl_load=no 12269fi 12270rm -f core conftest.err conftest.$ac_objext \ 12271 conftest$ac_exeext conftest.$ac_ext 12272LIBS=$ac_check_lib_save_LIBS 12273fi 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12275$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12276if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12277 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12278else 12279 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12280if test "x$ac_cv_func_dlopen" = xyes; then : 12281 lt_cv_dlopen=dlopen 12282else 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12284$as_echo_n "checking for dlopen in -ldl... " >&6; } 12285if ${ac_cv_lib_dl_dlopen+:} false; then : 12286 $as_echo_n "(cached) " >&6 12287else 12288 ac_check_lib_save_LIBS=$LIBS 12289LIBS="-ldl $LIBS" 12290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12291/* end confdefs.h. */ 12292 12293/* Override any GCC internal prototype to avoid an error. 12294 Use char because int might match the return type of a GCC 12295 builtin and then its argument prototype would still apply. */ 12296#ifdef __cplusplus 12297extern "C" 12298#endif 12299char dlopen (); 12300int 12301main () 12302{ 12303return dlopen (); 12304 ; 12305 return 0; 12306} 12307_ACEOF 12308if ac_fn_c_try_link "$LINENO"; then : 12309 ac_cv_lib_dl_dlopen=yes 12310else 12311 ac_cv_lib_dl_dlopen=no 12312fi 12313rm -f core conftest.err conftest.$ac_objext \ 12314 conftest$ac_exeext conftest.$ac_ext 12315LIBS=$ac_check_lib_save_LIBS 12316fi 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12318$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12319if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12320 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12321else 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12323$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12324if ${ac_cv_lib_svld_dlopen+:} false; then : 12325 $as_echo_n "(cached) " >&6 12326else 12327 ac_check_lib_save_LIBS=$LIBS 12328LIBS="-lsvld $LIBS" 12329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12330/* end confdefs.h. */ 12331 12332/* Override any GCC internal prototype to avoid an error. 12333 Use char because int might match the return type of a GCC 12334 builtin and then its argument prototype would still apply. */ 12335#ifdef __cplusplus 12336extern "C" 12337#endif 12338char dlopen (); 12339int 12340main () 12341{ 12342return dlopen (); 12343 ; 12344 return 0; 12345} 12346_ACEOF 12347if ac_fn_c_try_link "$LINENO"; then : 12348 ac_cv_lib_svld_dlopen=yes 12349else 12350 ac_cv_lib_svld_dlopen=no 12351fi 12352rm -f core conftest.err conftest.$ac_objext \ 12353 conftest$ac_exeext conftest.$ac_ext 12354LIBS=$ac_check_lib_save_LIBS 12355fi 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12357$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12358if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12359 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12360else 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12362$as_echo_n "checking for dld_link in -ldld... " >&6; } 12363if ${ac_cv_lib_dld_dld_link+:} false; then : 12364 $as_echo_n "(cached) " >&6 12365else 12366 ac_check_lib_save_LIBS=$LIBS 12367LIBS="-ldld $LIBS" 12368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12369/* end confdefs.h. */ 12370 12371/* Override any GCC internal prototype to avoid an error. 12372 Use char because int might match the return type of a GCC 12373 builtin and then its argument prototype would still apply. */ 12374#ifdef __cplusplus 12375extern "C" 12376#endif 12377char dld_link (); 12378int 12379main () 12380{ 12381return dld_link (); 12382 ; 12383 return 0; 12384} 12385_ACEOF 12386if ac_fn_c_try_link "$LINENO"; then : 12387 ac_cv_lib_dld_dld_link=yes 12388else 12389 ac_cv_lib_dld_dld_link=no 12390fi 12391rm -f core conftest.err conftest.$ac_objext \ 12392 conftest$ac_exeext conftest.$ac_ext 12393LIBS=$ac_check_lib_save_LIBS 12394fi 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12396$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12397if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12398 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12399fi 12400 12401 12402fi 12403 12404 12405fi 12406 12407 12408fi 12409 12410 12411fi 12412 12413 12414fi 12415 12416 ;; 12417 esac 12418 12419 if test no = "$lt_cv_dlopen"; then 12420 enable_dlopen=no 12421 else 12422 enable_dlopen=yes 12423 fi 12424 12425 case $lt_cv_dlopen in 12426 dlopen) 12427 save_CPPFLAGS=$CPPFLAGS 12428 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12429 12430 save_LDFLAGS=$LDFLAGS 12431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12432 12433 save_LIBS=$LIBS 12434 LIBS="$lt_cv_dlopen_libs $LIBS" 12435 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12437$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12438if ${lt_cv_dlopen_self+:} false; then : 12439 $as_echo_n "(cached) " >&6 12440else 12441 if test yes = "$cross_compiling"; then : 12442 lt_cv_dlopen_self=cross 12443else 12444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12445 lt_status=$lt_dlunknown 12446 cat > conftest.$ac_ext <<_LT_EOF 12447#line $LINENO "configure" 12448#include "confdefs.h" 12449 12450#if HAVE_DLFCN_H 12451#include <dlfcn.h> 12452#endif 12453 12454#include <stdio.h> 12455 12456#ifdef RTLD_GLOBAL 12457# define LT_DLGLOBAL RTLD_GLOBAL 12458#else 12459# ifdef DL_GLOBAL 12460# define LT_DLGLOBAL DL_GLOBAL 12461# else 12462# define LT_DLGLOBAL 0 12463# endif 12464#endif 12465 12466/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12467 find out it does not work in some platform. */ 12468#ifndef LT_DLLAZY_OR_NOW 12469# ifdef RTLD_LAZY 12470# define LT_DLLAZY_OR_NOW RTLD_LAZY 12471# else 12472# ifdef DL_LAZY 12473# define LT_DLLAZY_OR_NOW DL_LAZY 12474# else 12475# ifdef RTLD_NOW 12476# define LT_DLLAZY_OR_NOW RTLD_NOW 12477# else 12478# ifdef DL_NOW 12479# define LT_DLLAZY_OR_NOW DL_NOW 12480# else 12481# define LT_DLLAZY_OR_NOW 0 12482# endif 12483# endif 12484# endif 12485# endif 12486#endif 12487 12488/* When -fvisibility=hidden is used, assume the code has been annotated 12489 correspondingly for the symbols needed. */ 12490#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12491int fnord () __attribute__((visibility("default"))); 12492#endif 12493 12494int fnord () { return 42; } 12495int main () 12496{ 12497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12498 int status = $lt_dlunknown; 12499 12500 if (self) 12501 { 12502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12503 else 12504 { 12505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12506 else puts (dlerror ()); 12507 } 12508 /* dlclose (self); */ 12509 } 12510 else 12511 puts (dlerror ()); 12512 12513 return status; 12514} 12515_LT_EOF 12516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12517 (eval $ac_link) 2>&5 12518 ac_status=$? 12519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12520 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12521 (./conftest; exit; ) >&5 2>/dev/null 12522 lt_status=$? 12523 case x$lt_status in 12524 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12525 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12526 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12527 esac 12528 else : 12529 # compilation failed 12530 lt_cv_dlopen_self=no 12531 fi 12532fi 12533rm -fr conftest* 12534 12535 12536fi 12537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12538$as_echo "$lt_cv_dlopen_self" >&6; } 12539 12540 if test yes = "$lt_cv_dlopen_self"; then 12541 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12543$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12544if ${lt_cv_dlopen_self_static+:} false; then : 12545 $as_echo_n "(cached) " >&6 12546else 12547 if test yes = "$cross_compiling"; then : 12548 lt_cv_dlopen_self_static=cross 12549else 12550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12551 lt_status=$lt_dlunknown 12552 cat > conftest.$ac_ext <<_LT_EOF 12553#line $LINENO "configure" 12554#include "confdefs.h" 12555 12556#if HAVE_DLFCN_H 12557#include <dlfcn.h> 12558#endif 12559 12560#include <stdio.h> 12561 12562#ifdef RTLD_GLOBAL 12563# define LT_DLGLOBAL RTLD_GLOBAL 12564#else 12565# ifdef DL_GLOBAL 12566# define LT_DLGLOBAL DL_GLOBAL 12567# else 12568# define LT_DLGLOBAL 0 12569# endif 12570#endif 12571 12572/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12573 find out it does not work in some platform. */ 12574#ifndef LT_DLLAZY_OR_NOW 12575# ifdef RTLD_LAZY 12576# define LT_DLLAZY_OR_NOW RTLD_LAZY 12577# else 12578# ifdef DL_LAZY 12579# define LT_DLLAZY_OR_NOW DL_LAZY 12580# else 12581# ifdef RTLD_NOW 12582# define LT_DLLAZY_OR_NOW RTLD_NOW 12583# else 12584# ifdef DL_NOW 12585# define LT_DLLAZY_OR_NOW DL_NOW 12586# else 12587# define LT_DLLAZY_OR_NOW 0 12588# endif 12589# endif 12590# endif 12591# endif 12592#endif 12593 12594/* When -fvisibility=hidden is used, assume the code has been annotated 12595 correspondingly for the symbols needed. */ 12596#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12597int fnord () __attribute__((visibility("default"))); 12598#endif 12599 12600int fnord () { return 42; } 12601int main () 12602{ 12603 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12604 int status = $lt_dlunknown; 12605 12606 if (self) 12607 { 12608 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12609 else 12610 { 12611 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12612 else puts (dlerror ()); 12613 } 12614 /* dlclose (self); */ 12615 } 12616 else 12617 puts (dlerror ()); 12618 12619 return status; 12620} 12621_LT_EOF 12622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12623 (eval $ac_link) 2>&5 12624 ac_status=$? 12625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12626 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12627 (./conftest; exit; ) >&5 2>/dev/null 12628 lt_status=$? 12629 case x$lt_status in 12630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12632 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12633 esac 12634 else : 12635 # compilation failed 12636 lt_cv_dlopen_self_static=no 12637 fi 12638fi 12639rm -fr conftest* 12640 12641 12642fi 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12644$as_echo "$lt_cv_dlopen_self_static" >&6; } 12645 fi 12646 12647 CPPFLAGS=$save_CPPFLAGS 12648 LDFLAGS=$save_LDFLAGS 12649 LIBS=$save_LIBS 12650 ;; 12651 esac 12652 12653 case $lt_cv_dlopen_self in 12654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12655 *) enable_dlopen_self=unknown ;; 12656 esac 12657 12658 case $lt_cv_dlopen_self_static in 12659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12660 *) enable_dlopen_self_static=unknown ;; 12661 esac 12662fi 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680striplib= 12681old_striplib= 12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12683$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12684if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12685 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12686 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12688$as_echo "yes" >&6; } 12689else 12690# FIXME - insert some real tests, host_os isn't really good enough 12691 case $host_os in 12692 darwin*) 12693 if test -n "$STRIP"; then 12694 striplib="$STRIP -x" 12695 old_striplib="$STRIP -S" 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12697$as_echo "yes" >&6; } 12698 else 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12700$as_echo "no" >&6; } 12701 fi 12702 ;; 12703 *) 12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12705$as_echo "no" >&6; } 12706 ;; 12707 esac 12708fi 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 # Report what library types will actually be built 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12723$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12725$as_echo "$can_build_shared" >&6; } 12726 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12728$as_echo_n "checking whether to build shared libraries... " >&6; } 12729 test no = "$can_build_shared" && enable_shared=no 12730 12731 # On AIX, shared libraries and static libraries use the same namespace, and 12732 # are all built from PIC. 12733 case $host_os in 12734 aix3*) 12735 test yes = "$enable_shared" && enable_static=no 12736 if test -n "$RANLIB"; then 12737 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12738 postinstall_cmds='$RANLIB $lib' 12739 fi 12740 ;; 12741 12742 aix[4-9]*) 12743 if test ia64 != "$host_cpu"; then 12744 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12745 yes,aix,yes) ;; # shared object as lib.so file only 12746 yes,svr4,*) ;; # shared object as lib.so archive member only 12747 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12748 esac 12749 fi 12750 ;; 12751 esac 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12753$as_echo "$enable_shared" >&6; } 12754 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12756$as_echo_n "checking whether to build static libraries... " >&6; } 12757 # Make sure either enable_shared or enable_static is yes. 12758 test yes = "$enable_shared" || enable_static=yes 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12760$as_echo "$enable_static" >&6; } 12761 12762 12763 12764 12765fi 12766ac_ext=c 12767ac_cpp='$CPP $CPPFLAGS' 12768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12770ac_compiler_gnu=$ac_cv_c_compiler_gnu 12771 12772CC=$lt_save_CC 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 ac_config_commands="$ac_config_commands libtool" 12789 12790 12791 12792 12793# Only expand once: 12794 12795 12796 12797for ac_prog in flex lex 12798do 12799 # Extract the first word of "$ac_prog", so it can be a program name with args. 12800set dummy $ac_prog; ac_word=$2 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12802$as_echo_n "checking for $ac_word... " >&6; } 12803if ${ac_cv_prog_LEX+:} false; then : 12804 $as_echo_n "(cached) " >&6 12805else 12806 if test -n "$LEX"; then 12807 ac_cv_prog_LEX="$LEX" # Let the user override the test. 12808else 12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12810for as_dir in $PATH 12811do 12812 IFS=$as_save_IFS 12813 test -z "$as_dir" && as_dir=. 12814 for ac_exec_ext in '' $ac_executable_extensions; do 12815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12816 ac_cv_prog_LEX="$ac_prog" 12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12818 break 2 12819 fi 12820done 12821 done 12822IFS=$as_save_IFS 12823 12824fi 12825fi 12826LEX=$ac_cv_prog_LEX 12827if test -n "$LEX"; then 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 12829$as_echo "$LEX" >&6; } 12830else 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12832$as_echo "no" >&6; } 12833fi 12834 12835 12836 test -n "$LEX" && break 12837done 12838test -n "$LEX" || LEX=":" 12839 12840if test "x$LEX" != "x:"; then 12841 cat >conftest.l <<_ACEOF 12842%% 12843a { ECHO; } 12844b { REJECT; } 12845c { yymore (); } 12846d { yyless (1); } 12847e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 12848 yyless ((input () != 0)); } 12849f { unput (yytext[0]); } 12850. { BEGIN INITIAL; } 12851%% 12852#ifdef YYTEXT_POINTER 12853extern char *yytext; 12854#endif 12855int 12856main (void) 12857{ 12858 return ! yylex () + ! yywrap (); 12859} 12860_ACEOF 12861{ { ac_try="$LEX conftest.l" 12862case "(($ac_try" in 12863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12864 *) ac_try_echo=$ac_try;; 12865esac 12866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12867$as_echo "$ac_try_echo"; } >&5 12868 (eval "$LEX conftest.l") 2>&5 12869 ac_status=$? 12870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12871 test $ac_status = 0; } 12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 12873$as_echo_n "checking lex output file root... " >&6; } 12874if ${ac_cv_prog_lex_root+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 12878if test -f lex.yy.c; then 12879 ac_cv_prog_lex_root=lex.yy 12880elif test -f lexyy.c; then 12881 ac_cv_prog_lex_root=lexyy 12882else 12883 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 12884fi 12885fi 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 12887$as_echo "$ac_cv_prog_lex_root" >&6; } 12888LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 12889 12890if test -z "${LEXLIB+set}"; then 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 12892$as_echo_n "checking lex library... " >&6; } 12893if ${ac_cv_lib_lex+:} false; then : 12894 $as_echo_n "(cached) " >&6 12895else 12896 12897 ac_save_LIBS=$LIBS 12898 ac_cv_lib_lex='none needed' 12899 for ac_lib in '' -lfl -ll; do 12900 LIBS="$ac_lib $ac_save_LIBS" 12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12902/* end confdefs.h. */ 12903`cat $LEX_OUTPUT_ROOT.c` 12904_ACEOF 12905if ac_fn_c_try_link "$LINENO"; then : 12906 ac_cv_lib_lex=$ac_lib 12907fi 12908rm -f core conftest.err conftest.$ac_objext \ 12909 conftest$ac_exeext conftest.$ac_ext 12910 test "$ac_cv_lib_lex" != 'none needed' && break 12911 done 12912 LIBS=$ac_save_LIBS 12913 12914fi 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 12916$as_echo "$ac_cv_lib_lex" >&6; } 12917 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 12918fi 12919 12920 12921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 12922$as_echo_n "checking whether yytext is a pointer... " >&6; } 12923if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 12924 $as_echo_n "(cached) " >&6 12925else 12926 # POSIX says lex can declare yytext either as a pointer or an array; the 12927# default is implementation-dependent. Figure out which it is, since 12928# not all implementations provide the %pointer and %array declarations. 12929ac_cv_prog_lex_yytext_pointer=no 12930ac_save_LIBS=$LIBS 12931LIBS="$LEXLIB $ac_save_LIBS" 12932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12933/* end confdefs.h. */ 12934 12935 #define YYTEXT_POINTER 1 12936`cat $LEX_OUTPUT_ROOT.c` 12937_ACEOF 12938if ac_fn_c_try_link "$LINENO"; then : 12939 ac_cv_prog_lex_yytext_pointer=yes 12940fi 12941rm -f core conftest.err conftest.$ac_objext \ 12942 conftest$ac_exeext conftest.$ac_ext 12943LIBS=$ac_save_LIBS 12944 12945fi 12946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 12947$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 12948if test $ac_cv_prog_lex_yytext_pointer = yes; then 12949 12950$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 12951 12952fi 12953rm -f conftest.l $LEX_OUTPUT_ROOT.c 12954 12955fi 12956if test "$LEX" = :; then 12957 LEX=${am_missing_run}flex 12958fi 12959for ac_prog in 'bison -y' byacc 12960do 12961 # Extract the first word of "$ac_prog", so it can be a program name with args. 12962set dummy $ac_prog; ac_word=$2 12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12964$as_echo_n "checking for $ac_word... " >&6; } 12965if ${ac_cv_prog_YACC+:} false; then : 12966 $as_echo_n "(cached) " >&6 12967else 12968 if test -n "$YACC"; then 12969 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12970else 12971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12972for as_dir in $PATH 12973do 12974 IFS=$as_save_IFS 12975 test -z "$as_dir" && as_dir=. 12976 for ac_exec_ext in '' $ac_executable_extensions; do 12977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12978 ac_cv_prog_YACC="$ac_prog" 12979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12980 break 2 12981 fi 12982done 12983 done 12984IFS=$as_save_IFS 12985 12986fi 12987fi 12988YACC=$ac_cv_prog_YACC 12989if test -n "$YACC"; then 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12991$as_echo "$YACC" >&6; } 12992else 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12994$as_echo "no" >&6; } 12995fi 12996 12997 12998 test -n "$YACC" && break 12999done 13000test -n "$YACC" || YACC="yacc" 13001 13002 13003# Extract the first word of "perl", so it can be a program name with args. 13004set dummy perl; ac_word=$2 13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13006$as_echo_n "checking for $ac_word... " >&6; } 13007if ${ac_cv_path_PERL+:} false; then : 13008 $as_echo_n "(cached) " >&6 13009else 13010 case $PERL in 13011 [\\/]* | ?:[\\/]*) 13012 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 13013 ;; 13014 *) 13015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13016for as_dir in $PATH 13017do 13018 IFS=$as_save_IFS 13019 test -z "$as_dir" && as_dir=. 13020 for ac_exec_ext in '' $ac_executable_extensions; do 13021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13022 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13024 break 2 13025 fi 13026done 13027 done 13028IFS=$as_save_IFS 13029 13030 ;; 13031esac 13032fi 13033PERL=$ac_cv_path_PERL 13034if test -n "$PERL"; then 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 13036$as_echo "$PERL" >&6; } 13037else 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13039$as_echo "no" >&6; } 13040fi 13041 13042 13043 13044# Extract the first word of "getconf", so it can be a program name with args. 13045set dummy getconf; ac_word=$2 13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13047$as_echo_n "checking for $ac_word... " >&6; } 13048if ${ac_cv_path_GETCONF+:} false; then : 13049 $as_echo_n "(cached) " >&6 13050else 13051 case $GETCONF in 13052 [\\/]* | ?:[\\/]*) 13053 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path. 13054 ;; 13055 *) 13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13057as_dummy="$PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin" 13058for as_dir in $as_dummy 13059do 13060 IFS=$as_save_IFS 13061 test -z "$as_dir" && as_dir=. 13062 for ac_exec_ext in '' $ac_executable_extensions; do 13063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13064 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext" 13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13066 break 2 13067 fi 13068done 13069 done 13070IFS=$as_save_IFS 13071 13072 test -z "$ac_cv_path_GETCONF" && ac_cv_path_GETCONF="false" 13073 ;; 13074esac 13075fi 13076GETCONF=$ac_cv_path_GETCONF 13077if test -n "$GETCONF"; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 13079$as_echo "$GETCONF" >&6; } 13080else 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13082$as_echo "no" >&6; } 13083fi 13084 13085 13086 if test "x$cross_compiling" = "xyes"; then 13087 CROSS_COMPILING_TRUE= 13088 CROSS_COMPILING_FALSE='#' 13089else 13090 CROSS_COMPILING_TRUE='#' 13091 CROSS_COMPILING_FALSE= 13092fi 13093 13094 13095 13096 13097 13098# Check whether --with-pthreads was given. 13099if test "${with_pthreads+set}" = set; then : 13100 withval=$with_pthreads; 13101fi 13102 13103 13104if test "x$with_pthreads" != x && test "x$with_pthreads" != "xyes" && test "x$with_pthreads" != "xno"; then 13105 LIBS="$LIBS -L$with_pthreads/lib" 13106 CPPFLAGS="-I$with_pthreads/include $CPPFLAGS" 13107fi 13108 13109 13110 13111 13112ac_ext=c 13113ac_cpp='$CPP $CPPFLAGS' 13114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13116ac_compiler_gnu=$ac_cv_c_compiler_gnu 13117 13118acx_pthread_ok=no 13119 13120# We used to check for pthread.h first, but this fails if pthread.h 13121# requires special compiler flags (e.g. on True64 or Sequent). 13122# It gets checked for in the link test anyway. 13123 13124# First of all, check if the user has set any of the PTHREAD_LIBS, 13125# etcetera environment variables, and if threads linking works using 13126# them: 13127if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 13128 save_CFLAGS="$CFLAGS" 13129 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13130 save_LIBS="$LIBS" 13131 LIBS="$PTHREAD_LIBS $LIBS" 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 13133$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13135/* end confdefs.h. */ 13136 13137/* Override any GCC internal prototype to avoid an error. 13138 Use char because int might match the return type of a GCC 13139 builtin and then its argument prototype would still apply. */ 13140#ifdef __cplusplus 13141extern "C" 13142#endif 13143char pthread_join (); 13144int 13145main () 13146{ 13147return pthread_join (); 13148 ; 13149 return 0; 13150} 13151_ACEOF 13152if ac_fn_c_try_link "$LINENO"; then : 13153 acx_pthread_ok=yes 13154fi 13155rm -f core conftest.err conftest.$ac_objext \ 13156 conftest$ac_exeext conftest.$ac_ext 13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 13158$as_echo "$acx_pthread_ok" >&6; } 13159 if test x"$acx_pthread_ok" = xno; then 13160 PTHREAD_LIBS="" 13161 PTHREAD_CFLAGS="" 13162 fi 13163 LIBS="$save_LIBS" 13164 CFLAGS="$save_CFLAGS" 13165fi 13166 13167# We must check for the threads library under a number of different 13168# names; the ordering is very important because some systems 13169# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 13170# libraries is broken (non-POSIX). 13171 13172# Create a list of thread flags to try. Items starting with a "-" are 13173# C compiler flags, and other items are library names, except for "none" 13174# which indicates that we try without any flags at all, and "pthread-config" 13175# which is a program returning the flags for the Pth emulation library. 13176 13177acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config pthreadGC2" 13178 13179# The ordering *is* (sometimes) important. Some notes on the 13180# individual items follow: 13181 13182# pthreads: AIX (must check this before -lpthread) 13183# none: in case threads are in libc; should be tried before -Kthread and 13184# other compiler flags to prevent continual compiler warnings 13185# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 13186# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 13187# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 13188# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 13189# -pthreads: Solaris/gcc 13190# -mthreads: Mingw32/gcc, Lynx/gcc 13191# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 13192# doesn't hurt to check since this sometimes defines pthreads too; 13193# also defines -D_REENTRANT) 13194# ... -mt is also the pthreads flag for HP/aCC 13195# pthread: Linux, etcetera 13196# --thread-safe: KAI C++ 13197# pthread-config: use pthread-config program (for GNU Pth library) 13198 13199case "${host_cpu}-${host_os}" in 13200 *solaris*) 13201 13202 # On Solaris (at least, for some versions), libc contains stubbed 13203 # (non-functional) versions of the pthreads routines, so link-based 13204 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 13205 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 13206 # a function called by this macro, so we could check for that, but 13207 # who knows whether they'll stub that too in a future libc.) So, 13208 # we'll just look for -pthreads and -lpthread first: 13209 13210 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 13211 ;; 13212esac 13213 13214if test x"$acx_pthread_ok" = xno; then 13215for flag in $acx_pthread_flags; do 13216 13217 case $flag in 13218 none) 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 13220$as_echo_n "checking whether pthreads work without any flags... " >&6; } 13221 ;; 13222 13223 -*) 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 13225$as_echo_n "checking whether pthreads work with $flag... " >&6; } 13226 PTHREAD_CFLAGS="$flag" 13227 ;; 13228 13229 pthread-config) 13230 # Extract the first word of "pthread-config", so it can be a program name with args. 13231set dummy pthread-config; ac_word=$2 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13233$as_echo_n "checking for $ac_word... " >&6; } 13234if ${ac_cv_prog_acx_pthread_config+:} false; then : 13235 $as_echo_n "(cached) " >&6 13236else 13237 if test -n "$acx_pthread_config"; then 13238 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 13239else 13240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13241for as_dir in $PATH 13242do 13243 IFS=$as_save_IFS 13244 test -z "$as_dir" && as_dir=. 13245 for ac_exec_ext in '' $ac_executable_extensions; do 13246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13247 ac_cv_prog_acx_pthread_config="yes" 13248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13249 break 2 13250 fi 13251done 13252 done 13253IFS=$as_save_IFS 13254 13255 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 13256fi 13257fi 13258acx_pthread_config=$ac_cv_prog_acx_pthread_config 13259if test -n "$acx_pthread_config"; then 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 13261$as_echo "$acx_pthread_config" >&6; } 13262else 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13264$as_echo "no" >&6; } 13265fi 13266 13267 13268 if test x"$acx_pthread_config" = xno; then continue; fi 13269 PTHREAD_CFLAGS="`pthread-config --cflags`" 13270 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 13271 ;; 13272 13273 *) 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 13275$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 13276 PTHREAD_LIBS="-l$flag" 13277 ;; 13278 esac 13279 13280 save_LIBS="$LIBS" 13281 save_CFLAGS="$CFLAGS" 13282 LIBS="$PTHREAD_LIBS $LIBS" 13283 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13284 13285 # Check for various functions. We must include pthread.h, 13286 # since some functions may be macros. (On the Sequent, we 13287 # need a special flag -Kthread to make this header compile.) 13288 # We check for pthread_join because it is in -lpthread on IRIX 13289 # while pthread_create is in libc. We check for pthread_attr_init 13290 # due to DEC craziness with -lpthreads. We check for 13291 # pthread_cleanup_push because it is one of the few pthread 13292 # functions on Solaris that doesn't have a non-functional libc stub. 13293 # We try pthread_create on general principles. 13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13295/* end confdefs.h. */ 13296#include <pthread.h> 13297int 13298main () 13299{ 13300pthread_t th; pthread_join(th, 0); 13301 pthread_attr_init(0); pthread_cleanup_push(0, 0); 13302 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 13303 ; 13304 return 0; 13305} 13306_ACEOF 13307if ac_fn_c_try_link "$LINENO"; then : 13308 acx_pthread_ok=yes 13309fi 13310rm -f core conftest.err conftest.$ac_objext \ 13311 conftest$ac_exeext conftest.$ac_ext 13312 13313 LIBS="$save_LIBS" 13314 CFLAGS="$save_CFLAGS" 13315 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 13317$as_echo "$acx_pthread_ok" >&6; } 13318 if test "x$acx_pthread_ok" = xyes; then 13319 break; 13320 fi 13321 13322 PTHREAD_LIBS="" 13323 PTHREAD_CFLAGS="" 13324done 13325fi 13326 13327# Various other checks: 13328if test "x$acx_pthread_ok" = xyes; then 13329 save_LIBS="$LIBS" 13330 LIBS="$PTHREAD_LIBS $LIBS" 13331 save_CFLAGS="$CFLAGS" 13332 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13333 13334 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 13336$as_echo_n "checking for joinable pthread attribute... " >&6; } 13337 attr_name=unknown 13338 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13340/* end confdefs.h. */ 13341#include <pthread.h> 13342int 13343main () 13344{ 13345int attr=$attr; return attr; 13346 ; 13347 return 0; 13348} 13349_ACEOF 13350if ac_fn_c_try_link "$LINENO"; then : 13351 attr_name=$attr; break 13352fi 13353rm -f core conftest.err conftest.$ac_objext \ 13354 conftest$ac_exeext conftest.$ac_ext 13355 done 13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 13357$as_echo "$attr_name" >&6; } 13358 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 13359 13360cat >>confdefs.h <<_ACEOF 13361#define PTHREAD_CREATE_JOINABLE $attr_name 13362_ACEOF 13363 13364 fi 13365 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 13367$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 13368 flag=no 13369 case "${host_cpu}-${host_os}" in 13370 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 13371 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 13372 esac 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 13374$as_echo "${flag}" >&6; } 13375 if test "x$flag" != xno; then 13376 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 13377 fi 13378 13379 LIBS="$save_LIBS" 13380 CFLAGS="$save_CFLAGS" 13381 13382 # More AIX lossage: must compile with xlc_r or cc_r 13383 if test x"$GCC" != xyes; then 13384 for ac_prog in xlc_r cc_r 13385do 13386 # Extract the first word of "$ac_prog", so it can be a program name with args. 13387set dummy $ac_prog; ac_word=$2 13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13389$as_echo_n "checking for $ac_word... " >&6; } 13390if ${ac_cv_prog_PTHREAD_CC+:} false; then : 13391 $as_echo_n "(cached) " >&6 13392else 13393 if test -n "$PTHREAD_CC"; then 13394 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 13395else 13396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13397for as_dir in $PATH 13398do 13399 IFS=$as_save_IFS 13400 test -z "$as_dir" && as_dir=. 13401 for ac_exec_ext in '' $ac_executable_extensions; do 13402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13403 ac_cv_prog_PTHREAD_CC="$ac_prog" 13404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13405 break 2 13406 fi 13407done 13408 done 13409IFS=$as_save_IFS 13410 13411fi 13412fi 13413PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 13414if test -n "$PTHREAD_CC"; then 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 13416$as_echo "$PTHREAD_CC" >&6; } 13417else 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13419$as_echo "no" >&6; } 13420fi 13421 13422 13423 test -n "$PTHREAD_CC" && break 13424done 13425test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 13426 13427 else 13428 PTHREAD_CC=$CC 13429 fi 13430else 13431 PTHREAD_CC="$CC" 13432fi 13433 13434 13435 13436 13437 13438# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 13439if test x"$acx_pthread_ok" = xyes; then 13440 13441$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 13442 13443 : 13444else 13445 acx_pthread_ok=no 13446 as_fn_error $? "pthread-compatible library is required to build CFEngine" "$LINENO" 5 13447fi 13448ac_ext=c 13449ac_cpp='$CPP $CPPFLAGS' 13450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13452ac_compiler_gnu=$ac_cv_c_compiler_gnu 13453 13454 13455 13456CC="$PTHREAD_CC" 13457CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 13458LIBS="$PTHREAD_LIBS $LIBS" 13459 13460 13461# Check whether --enable-builtin-extensions was given. 13462if test "${enable_builtin_extensions+set}" = set; then : 13463 enableval=$enable_builtin_extensions; 13464else 13465 13466 case ${target_os} in #( 13467 mingw*) : 13468 enable_builtin_extensions=yes ;; #( 13469 *) : 13470 enable_builtin_extensions=no ;; 13471esac 13472 13473fi 13474 13475 if test "x$enable_builtin_extensions" = "xyes"; then 13476 BUILTIN_EXTENSIONS_TRUE= 13477 BUILTIN_EXTENSIONS_FALSE='#' 13478else 13479 BUILTIN_EXTENSIONS_TRUE='#' 13480 BUILTIN_EXTENSIONS_FALSE= 13481fi 13482 13483if test "x$enable_builtin_extensions" = "xyes"; then : 13484 13485$as_echo "#define BUILTIN_EXTENSIONS 1" >>confdefs.h 13486 13487fi 13488 13489 13490 13491# Check whether --enable-fhs was given. 13492if test "${enable_fhs+set}" = set; then : 13493 enableval=$enable_fhs; 13494fi 13495 13496 13497# 13498# pkglibdir/pkgdatadir are not overridable, so use our own invention instead. 13499# 13500 13501if test x"$enable_fhs" = xyes; then : 13502 13503 projlibdir='${pkglibdir}' 13504 WORKDIR='${localstatedir}/lib/${PACKAGE}' 13505 MASTERDIR='default' 13506 INPUTDIR='default' 13507 LOGDIR='${localstatedir}/log/${PACKAGE}' 13508 PIDDIR='${runstatedir:-${localstatedir}/run}/${PACKAGE}' 13509 STATEDIR='default' 13510 13511else 13512 13513 if test x"$prefix" = xNONE || test x"$prefix" = x/var/cfengine; then 13514 prefix=/var/cfengine 13515 case "$target_os" in 13516 mingw*) 13517 WORKDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g') 13518 MASTERDIR=default 13519 INPUTDIR=default 13520 LOGDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g') 13521 PIDDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g') 13522 STATEDIR=default 13523 ;; 13524 *) 13525 WORKDIR=/var/cfengine 13526 MASTERDIR=default 13527 INPUTDIR=default 13528 LOGDIR=/var/cfengine 13529 PIDDIR=/var/cfengine 13530 STATEDIR=default 13531 ;; 13532 esac 13533 else 13534 WORKDIR="${localstatedir}/${PACKAGE}" 13535 MASTERDIR="default" 13536 INPUTDIR="default" 13537 LOGDIR="${localstatedir}/${PACKAGE}" 13538 PIDDIR="${localstatedir}/${PACKAGE}" 13539 STATEDIR="default" 13540 fi 13541 bindir="${bindir:-${exec_prefix}/bin}" 13542 projlibdir='${libdir}' 13543 13544fi 13545 13546 13547 13548 13549case ${target_os} in #( 13550 mingw*) : 13551 # Disable printf format warnings, because our wrapper supports more 13552 # flags than vanilla Windows version, so they are false positives. 13553 CFLAGS="$CFLAGS -Wno-format" ;; #( 13554 *) : 13555 ;; 13556esac 13557 13558 13559# Check whether --enable-debug was given. 13560if test "${enable_debug+set}" = set; then : 13561 enableval=$enable_debug; debug=$enableval 13562else 13563 debug=no 13564fi 13565 13566 if test x"$debug" = x"no"; then 13567 NDEBUG_TRUE= 13568 NDEBUG_FALSE='#' 13569else 13570 NDEBUG_TRUE='#' 13571 NDEBUG_FALSE= 13572fi 13573 13574 13575 13576if test x"$debug" = x"yes" 13577then 13578 CFLAGS="$CFLAGS -g3 -O0 $ENV_CFLAGS" 13579else 13580 CFLAGS="$CFLAGS -O2 -DNDEBUG $ENV_CFLAGS" 13581fi 13582 13583 13584 13585# TODO remove 13586 13587# Check whether --with-sql was given. 13588if test "${with_sql+set}" = set; then : 13589 withval=$with_sql; with_postgresql=$with_sql; with_mysql=$with_sql 13590fi 13591 13592 13593 13594 13595# Check whether --with-postgresql was given. 13596if test "${with_postgresql+set}" = set; then : 13597 withval=$with_postgresql; 13598else 13599 with_postgresql=check 13600fi 13601 13602 13603if test "x$with_postgresql" != "xno" 13604then 13605 if test "x$with_postgresql" != xyes && test "x$with_postgresql" != xcheck 13606 then 13607 PG_CONFIG=$with_postgresql/bin/pg_config 13608 else 13609 PG_CONFIG=pg_config 13610 fi 13611 13612 # pg_config is only for native builds 13613 if test "x$cross_compiling" = "xno" 13614 then 13615 if test x`which $PG_CONFIG` != x 13616 then 13617 pg_include_dir=`$PG_CONFIG --includedir` 13618 if test -n "$pg_include_dir" 13619 then 13620 POSTGRESQL_CPPFLAGS="-I$pg_include_dir" 13621 fi 13622 fi 13623 fi 13624 13625 13626 13627 13628 # 13629 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 13630 # 13631 if test "x$with_postgresql" != xyes && 13632 test "x$with_postgresql" != xcheck && 13633 test "x$with_postgresql" != x 13634 then 13635 test -z "$POSTGRESQL_PATH" && POSTGRESQL_PATH="$with_postgresql" 13636 if test "x$with_postgresql" != x/usr && 13637 test "x$with_postgresql" != x/ 13638 then 13639 test -z "$POSTGRESQL_CFLAGS" && POSTGRESQL_CFLAGS="" 13640 test -z "$POSTGRESQL_CPPFLAGS" && POSTGRESQL_CPPFLAGS="-I$with_postgresql/include" 13641 test -z "$POSTGRESQL_LDFLAGS" && POSTGRESQL_LDFLAGS="-L$with_postgresql/lib" 13642 fi 13643 else 13644 POSTGRESQL_PATH="default path" 13645 fi 13646 13647 # 13648 # Save old environment 13649 # 13650 save_CFLAGS="$CFLAGS" 13651 save_CPPFLAGS="$CPPFLAGS" 13652 save_LDFLAGS="$LDFLAGS" 13653 save_LIBS="$LIBS" 13654 13655 CFLAGS="$CFLAGS $POSTGRESQL_CFLAGS" 13656 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS" 13657 LDFLAGS="$LDFLAGS $POSTGRESQL_LDFLAGS" 13658 13659 # 13660 # Run checks passed as argument 13661 # 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5 13663$as_echo_n "checking for PQconnectdb in -lpq... " >&6; } 13664if ${ac_cv_lib_pq_PQconnectdb+:} false; then : 13665 $as_echo_n "(cached) " >&6 13666else 13667 ac_check_lib_save_LIBS=$LIBS 13668LIBS="-lpq $LIBS" 13669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13670/* end confdefs.h. */ 13671 13672/* Override any GCC internal prototype to avoid an error. 13673 Use char because int might match the return type of a GCC 13674 builtin and then its argument prototype would still apply. */ 13675#ifdef __cplusplus 13676extern "C" 13677#endif 13678char PQconnectdb (); 13679int 13680main () 13681{ 13682return PQconnectdb (); 13683 ; 13684 return 0; 13685} 13686_ACEOF 13687if ac_fn_c_try_link "$LINENO"; then : 13688 ac_cv_lib_pq_PQconnectdb=yes 13689else 13690 ac_cv_lib_pq_PQconnectdb=no 13691fi 13692rm -f core conftest.err conftest.$ac_objext \ 13693 conftest$ac_exeext conftest.$ac_ext 13694LIBS=$ac_check_lib_save_LIBS 13695fi 13696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5 13697$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; } 13698if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then : 13699 cat >>confdefs.h <<_ACEOF 13700#define HAVE_LIBPQ 1 13701_ACEOF 13702 13703 LIBS="-lpq $LIBS" 13704 13705else 13706 if test "x$with_postgresql" != xcheck; then 13707 as_fn_error $? "Cannot find PostgreSQL client library" "$LINENO" 5; fi 13708 13709fi 13710 13711 for ac_header in libpq-fe.h 13712do : 13713 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 13714if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 13715 cat >>confdefs.h <<_ACEOF 13716#define HAVE_LIBPQ_FE_H 1 13717_ACEOF 13718 13719else 13720 if test "x$with_postgresql" != xcheck; then 13721 as_fn_error $? "Cannot find PostgreSQL client library" "$LINENO" 5; fi 13722 13723fi 13724 13725done 13726 13727 13728 13729 # 13730 # Pick up any libraries added by tests 13731 # 13732 test -z "$POSTGRESQL_LIBS" && POSTGRESQL_LIBS="$LIBS" 13733 13734 # 13735 # libtool understands -R$path, but we are not using libtool in configure 13736 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 13737 # 13738 if test "x$with_postgresql" != xyes && 13739 test "x$with_postgresql" != xcheck && 13740 test "x$with_postgresql" != x/usr && 13741 test "x$with_postgresql" != x/ 13742 then 13743 POSTGRESQL_LDFLAGS="$POSTGRESQL_LDFLAGS -R$with_postgresql/lib" 13744 fi 13745 13746 # 13747 # Restore pristine environment 13748 # 13749 CFLAGS="$save_CFLAGS" 13750 CPPFLAGS="$save_CPPFLAGS" 13751 LDFLAGS="$save_LDFLAGS" 13752 LIBS="$save_LIBS" 13753 13754 13755 13756 13757 13758 13759 13760fi 13761 13762 13763 13764# Check whether --with-mysql was given. 13765if test "${with_mysql+set}" = set; then : 13766 withval=$with_mysql; 13767else 13768 with_mysql=check 13769fi 13770 13771 13772if test "x$with_mysql" != "xno" 13773then 13774 if test "x$with_mysql" != xyes && 13775 test "x$with_mysql" != xcheck 13776 then 13777 MYSQL_CONFIG=$with_mysql/bin/mysql_config 13778 else 13779 MYSQL_CONFIG=mysql_config 13780 fi 13781 13782 # mysql_config is only for native builds 13783 if test "x$cross_compiling" = "xno" 13784 then 13785 if test x`which $MYSQL_CONFIG` != x 13786 then 13787 mysql_include_dir=`$MYSQL_CONFIG --include` 13788 if test -n "$mysql_include_dir" 13789 then 13790 MYSQL_CPPFLAGS="$mysql_include_dir" 13791 fi 13792 fi 13793 fi 13794 13795 13796 13797 13798 # 13799 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 13800 # 13801 if test "x$with_mysql" != xyes && 13802 test "x$with_mysql" != xcheck && 13803 test "x$with_mysql" != x 13804 then 13805 test -z "$MYSQL_PATH" && MYSQL_PATH="$with_mysql" 13806 if test "x$with_mysql" != x/usr && 13807 test "x$with_mysql" != x/ 13808 then 13809 test -z "$MYSQL_CFLAGS" && MYSQL_CFLAGS="" 13810 test -z "$MYSQL_CPPFLAGS" && MYSQL_CPPFLAGS="-I$with_mysql/include" 13811 test -z "$MYSQL_LDFLAGS" && MYSQL_LDFLAGS="-L$with_mysql/lib" 13812 fi 13813 else 13814 MYSQL_PATH="default path" 13815 fi 13816 13817 # 13818 # Save old environment 13819 # 13820 save_CFLAGS="$CFLAGS" 13821 save_CPPFLAGS="$CPPFLAGS" 13822 save_LDFLAGS="$LDFLAGS" 13823 save_LIBS="$LIBS" 13824 13825 CFLAGS="$CFLAGS $MYSQL_CFLAGS" 13826 CPPFLAGS="$CPPFLAGS $MYSQL_CPPFLAGS" 13827 LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS" 13828 13829 # 13830 # Run checks passed as argument 13831 # 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_real_connect in -lmysqlclient" >&5 13833$as_echo_n "checking for mysql_real_connect in -lmysqlclient... " >&6; } 13834if ${ac_cv_lib_mysqlclient_mysql_real_connect+:} false; then : 13835 $as_echo_n "(cached) " >&6 13836else 13837 ac_check_lib_save_LIBS=$LIBS 13838LIBS="-lmysqlclient $LIBS" 13839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13840/* end confdefs.h. */ 13841 13842/* Override any GCC internal prototype to avoid an error. 13843 Use char because int might match the return type of a GCC 13844 builtin and then its argument prototype would still apply. */ 13845#ifdef __cplusplus 13846extern "C" 13847#endif 13848char mysql_real_connect (); 13849int 13850main () 13851{ 13852return mysql_real_connect (); 13853 ; 13854 return 0; 13855} 13856_ACEOF 13857if ac_fn_c_try_link "$LINENO"; then : 13858 ac_cv_lib_mysqlclient_mysql_real_connect=yes 13859else 13860 ac_cv_lib_mysqlclient_mysql_real_connect=no 13861fi 13862rm -f core conftest.err conftest.$ac_objext \ 13863 conftest$ac_exeext conftest.$ac_ext 13864LIBS=$ac_check_lib_save_LIBS 13865fi 13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_real_connect" >&5 13867$as_echo "$ac_cv_lib_mysqlclient_mysql_real_connect" >&6; } 13868if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = xyes; then : 13869 cat >>confdefs.h <<_ACEOF 13870#define HAVE_LIBMYSQLCLIENT 1 13871_ACEOF 13872 13873 LIBS="-lmysqlclient $LIBS" 13874 13875else 13876 if test "x$with_mysql" != xcheck; then 13877 as_fn_error $? "Cannot find MySQL client library" "$LINENO" 5; fi 13878 13879fi 13880 13881 for ac_header in mysql.h 13882do : 13883 ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default" 13884if test "x$ac_cv_header_mysql_h" = xyes; then : 13885 cat >>confdefs.h <<_ACEOF 13886#define HAVE_MYSQL_H 1 13887_ACEOF 13888 13889else 13890 if test "x$with_mysql" != xcheck; then 13891 as_fn_error $? "Cannot find MySQL clientlibrary" "$LINENO" 5; fi 13892 13893fi 13894 13895done 13896 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -lmysqlclient" >&5 13898$as_echo_n "checking for EVP_CIPHER_CTX_init in -lmysqlclient... " >&6; } 13899if ${ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init+:} false; then : 13900 $as_echo_n "(cached) " >&6 13901else 13902 ac_check_lib_save_LIBS=$LIBS 13903LIBS="-lmysqlclient $LIBS" 13904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905/* end confdefs.h. */ 13906 13907/* Override any GCC internal prototype to avoid an error. 13908 Use char because int might match the return type of a GCC 13909 builtin and then its argument prototype would still apply. */ 13910#ifdef __cplusplus 13911extern "C" 13912#endif 13913char EVP_CIPHER_CTX_init (); 13914int 13915main () 13916{ 13917return EVP_CIPHER_CTX_init (); 13918 ; 13919 return 0; 13920} 13921_ACEOF 13922if ac_fn_c_try_link "$LINENO"; then : 13923 ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=yes 13924else 13925 ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=no 13926fi 13927rm -f core conftest.err conftest.$ac_objext \ 13928 conftest$ac_exeext conftest.$ac_ext 13929LIBS=$ac_check_lib_save_LIBS 13930fi 13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&5 13932$as_echo "$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&6; } 13933if test "x$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" = xyes; then : 13934 as_fn_error $? "MySQL client library exports symbols clashing \ 13935 with OpenSSL. Get the update from distribution provider, \ 13936 recompile MySQL library or disable MySQL connector. See \ 13937 http://bugs.mysql.com/bug.php?id=65055 for details." "$LINENO" 5 13938 13939 13940fi 13941 13942 13943 13944 # 13945 # Pick up any libraries added by tests 13946 # 13947 test -z "$MYSQL_LIBS" && MYSQL_LIBS="$LIBS" 13948 13949 # 13950 # libtool understands -R$path, but we are not using libtool in configure 13951 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 13952 # 13953 if test "x$with_mysql" != xyes && 13954 test "x$with_mysql" != xcheck && 13955 test "x$with_mysql" != x/usr && 13956 test "x$with_mysql" != x/ 13957 then 13958 MYSQL_LDFLAGS="$MYSQL_LDFLAGS -R$with_mysql/lib" 13959 fi 13960 13961 # 13962 # Restore pristine environment 13963 # 13964 CFLAGS="$save_CFLAGS" 13965 CPPFLAGS="$save_CPPFLAGS" 13966 LDFLAGS="$save_LDFLAGS" 13967 LIBS="$save_LIBS" 13968 13969 13970 13971 13972 13973 13974 13975fi 13976 13977 13978 13979 13980# Check whether --with-qdbm was given. 13981if test "${with_qdbm+set}" = set; then : 13982 withval=$with_qdbm; 13983fi 13984 13985if test -n "$with_qdbm" && test "x$with_qdbm" != "xno"; then : 13986 WITH_QDBM=1 13987else 13988 WITH_QDBM=0 13989fi 13990 13991if test $WITH_QDBM = 1; then 13992 13993 13994 13995 # 13996 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 13997 # 13998 if test "x$with_qdbm" != xyes && 13999 test "x$with_qdbm" != xcheck && 14000 test "x$with_qdbm" != x 14001 then 14002 test -z "$QDBM_PATH" && QDBM_PATH="$with_qdbm" 14003 if test "x$with_qdbm" != x/usr && 14004 test "x$with_qdbm" != x/ 14005 then 14006 test -z "$QDBM_CFLAGS" && QDBM_CFLAGS="" 14007 test -z "$QDBM_CPPFLAGS" && QDBM_CPPFLAGS="-I$with_qdbm/include" 14008 test -z "$QDBM_LDFLAGS" && QDBM_LDFLAGS="-L$with_qdbm/lib" 14009 fi 14010 else 14011 QDBM_PATH="default path" 14012 fi 14013 14014 # 14015 # Save old environment 14016 # 14017 save_CFLAGS="$CFLAGS" 14018 save_CPPFLAGS="$CPPFLAGS" 14019 save_LDFLAGS="$LDFLAGS" 14020 save_LIBS="$LIBS" 14021 14022 CFLAGS="$CFLAGS $QDBM_CFLAGS" 14023 CPPFLAGS="$CPPFLAGS $QDBM_CPPFLAGS" 14024 LDFLAGS="$LDFLAGS $QDBM_LDFLAGS" 14025 14026 # 14027 # Run checks passed as argument 14028 # 14029 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -lqdbm" >&5 14031$as_echo_n "checking for dpopen in -lqdbm... " >&6; } 14032if ${ac_cv_lib_qdbm_dpopen+:} false; then : 14033 $as_echo_n "(cached) " >&6 14034else 14035 ac_check_lib_save_LIBS=$LIBS 14036LIBS="-lqdbm $LIBS" 14037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14038/* end confdefs.h. */ 14039 14040/* Override any GCC internal prototype to avoid an error. 14041 Use char because int might match the return type of a GCC 14042 builtin and then its argument prototype would still apply. */ 14043#ifdef __cplusplus 14044extern "C" 14045#endif 14046char dpopen (); 14047int 14048main () 14049{ 14050return dpopen (); 14051 ; 14052 return 0; 14053} 14054_ACEOF 14055if ac_fn_c_try_link "$LINENO"; then : 14056 ac_cv_lib_qdbm_dpopen=yes 14057else 14058 ac_cv_lib_qdbm_dpopen=no 14059fi 14060rm -f core conftest.err conftest.$ac_objext \ 14061 conftest$ac_exeext conftest.$ac_ext 14062LIBS=$ac_check_lib_save_LIBS 14063fi 14064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_qdbm_dpopen" >&5 14065$as_echo "$ac_cv_lib_qdbm_dpopen" >&6; } 14066if test "x$ac_cv_lib_qdbm_dpopen" = xyes; then : 14067 cat >>confdefs.h <<_ACEOF 14068#define HAVE_LIBQDBM 1 14069_ACEOF 14070 14071 LIBS="-lqdbm $LIBS" 14072 14073else 14074 as_fn_error $? "Cannot find QDBM" "$LINENO" 5 14075fi 14076 14077 for ac_header in depot.h 14078do : 14079 ac_fn_c_check_header_mongrel "$LINENO" "depot.h" "ac_cv_header_depot_h" "$ac_includes_default" 14080if test "x$ac_cv_header_depot_h" = xyes; then : 14081 cat >>confdefs.h <<_ACEOF 14082#define HAVE_DEPOT_H 1 14083_ACEOF 14084 14085else 14086 as_fn_error $? "Cannot find QDBM" "$LINENO" 5 14087fi 14088 14089done 14090 14091 14092$as_echo "#define QDB 1" >>confdefs.h 14093 14094 14095 14096 # 14097 # Pick up any libraries added by tests 14098 # 14099 test -z "$QDBM_LIBS" && QDBM_LIBS="$LIBS" 14100 14101 # 14102 # libtool understands -R$path, but we are not using libtool in configure 14103 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14104 # 14105 if test "x$with_qdbm" != xyes && 14106 test "x$with_qdbm" != xcheck && 14107 test "x$with_qdbm" != x/usr && 14108 test "x$with_qdbm" != x/ 14109 then 14110 QDBM_LDFLAGS="$QDBM_LDFLAGS -R$with_qdbm/lib" 14111 fi 14112 14113 # 14114 # Restore pristine environment 14115 # 14116 CFLAGS="$save_CFLAGS" 14117 CPPFLAGS="$save_CPPFLAGS" 14118 LDFLAGS="$save_LDFLAGS" 14119 LIBS="$save_LIBS" 14120 14121 14122 14123 14124 14125 14126 14127fi 14128 14129 14130 14131# Check whether --with-tokyocabinet was given. 14132if test "${with_tokyocabinet+set}" = set; then : 14133 withval=$with_tokyocabinet; 14134fi 14135 14136 14137if test $WITH_QDBM -eq 0 && test -n "$with_tokyocabinet" && test "x$with_tokyocabinet" != "xno"; then : 14138 WITH_TOKYO=1 14139else 14140 WITH_TOKYO=0 14141fi 14142 14143if test $WITH_TOKYO = 1; then 14144 14145 14146 14147 # 14148 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14149 # 14150 if test "x$with_tokyocabinet" != xyes && 14151 test "x$with_tokyocabinet" != xcheck && 14152 test "x$with_tokyocabinet" != x 14153 then 14154 test -z "$TOKYOCABINET_PATH" && TOKYOCABINET_PATH="$with_tokyocabinet" 14155 if test "x$with_tokyocabinet" != x/usr && 14156 test "x$with_tokyocabinet" != x/ 14157 then 14158 test -z "$TOKYOCABINET_CFLAGS" && TOKYOCABINET_CFLAGS="" 14159 test -z "$TOKYOCABINET_CPPFLAGS" && TOKYOCABINET_CPPFLAGS="-I$with_tokyocabinet/include" 14160 test -z "$TOKYOCABINET_LDFLAGS" && TOKYOCABINET_LDFLAGS="-L$with_tokyocabinet/lib" 14161 fi 14162 else 14163 TOKYOCABINET_PATH="default path" 14164 fi 14165 14166 # 14167 # Save old environment 14168 # 14169 save_CFLAGS="$CFLAGS" 14170 save_CPPFLAGS="$CPPFLAGS" 14171 save_LDFLAGS="$LDFLAGS" 14172 save_LIBS="$LIBS" 14173 14174 CFLAGS="$CFLAGS $TOKYOCABINET_CFLAGS" 14175 CPPFLAGS="$CPPFLAGS $TOKYOCABINET_CPPFLAGS" 14176 LDFLAGS="$LDFLAGS $TOKYOCABINET_LDFLAGS" 14177 14178 # 14179 # Run checks passed as argument 14180 # 14181 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tchdbnew in -ltokyocabinet" >&5 14183$as_echo_n "checking for tchdbnew in -ltokyocabinet... " >&6; } 14184if ${ac_cv_lib_tokyocabinet_tchdbnew+:} false; then : 14185 $as_echo_n "(cached) " >&6 14186else 14187 ac_check_lib_save_LIBS=$LIBS 14188LIBS="-ltokyocabinet $LIBS" 14189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191 14192/* Override any GCC internal prototype to avoid an error. 14193 Use char because int might match the return type of a GCC 14194 builtin and then its argument prototype would still apply. */ 14195#ifdef __cplusplus 14196extern "C" 14197#endif 14198char tchdbnew (); 14199int 14200main () 14201{ 14202return tchdbnew (); 14203 ; 14204 return 0; 14205} 14206_ACEOF 14207if ac_fn_c_try_link "$LINENO"; then : 14208 ac_cv_lib_tokyocabinet_tchdbnew=yes 14209else 14210 ac_cv_lib_tokyocabinet_tchdbnew=no 14211fi 14212rm -f core conftest.err conftest.$ac_objext \ 14213 conftest$ac_exeext conftest.$ac_ext 14214LIBS=$ac_check_lib_save_LIBS 14215fi 14216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyocabinet_tchdbnew" >&5 14217$as_echo "$ac_cv_lib_tokyocabinet_tchdbnew" >&6; } 14218if test "x$ac_cv_lib_tokyocabinet_tchdbnew" = xyes; then : 14219 cat >>confdefs.h <<_ACEOF 14220#define HAVE_LIBTOKYOCABINET 1 14221_ACEOF 14222 14223 LIBS="-ltokyocabinet $LIBS" 14224 14225else 14226 as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5 14227fi 14228 14229 for ac_header in tcutil.h 14230do : 14231 ac_fn_c_check_header_mongrel "$LINENO" "tcutil.h" "ac_cv_header_tcutil_h" "$ac_includes_default" 14232if test "x$ac_cv_header_tcutil_h" = xyes; then : 14233 cat >>confdefs.h <<_ACEOF 14234#define HAVE_TCUTIL_H 1 14235_ACEOF 14236 14237else 14238 as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5 14239fi 14240 14241done 14242 14243 for ac_header in tchdb.h 14244do : 14245 ac_fn_c_check_header_mongrel "$LINENO" "tchdb.h" "ac_cv_header_tchdb_h" "$ac_includes_default" 14246if test "x$ac_cv_header_tchdb_h" = xyes; then : 14247 cat >>confdefs.h <<_ACEOF 14248#define HAVE_TCHDB_H 1 14249_ACEOF 14250 14251else 14252 as_fn_error $? "Cannot find Tokyo Cabinet" "$LINENO" 5 14253fi 14254 14255done 14256 14257 14258$as_echo "#define TCDB 1" >>confdefs.h 14259 14260 14261 14262 # 14263 # Pick up any libraries added by tests 14264 # 14265 test -z "$TOKYOCABINET_LIBS" && TOKYOCABINET_LIBS="$LIBS" 14266 14267 # 14268 # libtool understands -R$path, but we are not using libtool in configure 14269 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14270 # 14271 if test "x$with_tokyocabinet" != xyes && 14272 test "x$with_tokyocabinet" != xcheck && 14273 test "x$with_tokyocabinet" != x/usr && 14274 test "x$with_tokyocabinet" != x/ 14275 then 14276 TOKYOCABINET_LDFLAGS="$TOKYOCABINET_LDFLAGS -R$with_tokyocabinet/lib" 14277 fi 14278 14279 # 14280 # Restore pristine environment 14281 # 14282 CFLAGS="$save_CFLAGS" 14283 CPPFLAGS="$save_CPPFLAGS" 14284 LDFLAGS="$save_LDFLAGS" 14285 LIBS="$save_LIBS" 14286 14287 14288 14289 14290 14291 14292 14293fi 14294 14295 14296 14297# Check whether --with-lmdb was given. 14298if test "${with_lmdb+set}" = set; then : 14299 withval=$with_lmdb; 14300fi 14301 14302 14303if test $WITH_TOKYO -eq 0 && test $WITH_QDBM -eq 0 && (! test -n "$with_lmdb" || test "x$with_lmdb" != "xno"); then : 14304 WITH_LMDB=1 14305else 14306 WITH_LMDB=0 14307fi 14308 14309if test $WITH_LMDB = 1; then 14310 14311 14312 14313 # 14314 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14315 # 14316 if test "x$with_lmdb" != xyes && 14317 test "x$with_lmdb" != xcheck && 14318 test "x$with_lmdb" != x 14319 then 14320 test -z "$LMDB_PATH" && LMDB_PATH="$with_lmdb" 14321 if test "x$with_lmdb" != x/usr && 14322 test "x$with_lmdb" != x/ 14323 then 14324 test -z "$LMDB_CFLAGS" && LMDB_CFLAGS="" 14325 test -z "$LMDB_CPPFLAGS" && LMDB_CPPFLAGS="-I$with_lmdb/include" 14326 test -z "$LMDB_LDFLAGS" && LMDB_LDFLAGS="-L$with_lmdb/lib" 14327 fi 14328 else 14329 LMDB_PATH="default path" 14330 fi 14331 14332 # 14333 # Save old environment 14334 # 14335 save_CFLAGS="$CFLAGS" 14336 save_CPPFLAGS="$CPPFLAGS" 14337 save_LDFLAGS="$LDFLAGS" 14338 save_LIBS="$LIBS" 14339 14340 CFLAGS="$CFLAGS $LMDB_CFLAGS" 14341 CPPFLAGS="$CPPFLAGS $LMDB_CPPFLAGS" 14342 LDFLAGS="$LDFLAGS $LMDB_LDFLAGS" 14343 14344 # 14345 # Run checks passed as argument 14346 # 14347 14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_dbi_open in -llmdb" >&5 14349$as_echo_n "checking for mdb_dbi_open in -llmdb... " >&6; } 14350if ${ac_cv_lib_lmdb_mdb_dbi_open+:} false; then : 14351 $as_echo_n "(cached) " >&6 14352else 14353 ac_check_lib_save_LIBS=$LIBS 14354LIBS="-llmdb $LIBS" 14355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14356/* end confdefs.h. */ 14357 14358/* Override any GCC internal prototype to avoid an error. 14359 Use char because int might match the return type of a GCC 14360 builtin and then its argument prototype would still apply. */ 14361#ifdef __cplusplus 14362extern "C" 14363#endif 14364char mdb_dbi_open (); 14365int 14366main () 14367{ 14368return mdb_dbi_open (); 14369 ; 14370 return 0; 14371} 14372_ACEOF 14373if ac_fn_c_try_link "$LINENO"; then : 14374 ac_cv_lib_lmdb_mdb_dbi_open=yes 14375else 14376 ac_cv_lib_lmdb_mdb_dbi_open=no 14377fi 14378rm -f core conftest.err conftest.$ac_objext \ 14379 conftest$ac_exeext conftest.$ac_ext 14380LIBS=$ac_check_lib_save_LIBS 14381fi 14382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lmdb_mdb_dbi_open" >&5 14383$as_echo "$ac_cv_lib_lmdb_mdb_dbi_open" >&6; } 14384if test "x$ac_cv_lib_lmdb_mdb_dbi_open" = xyes; then : 14385 cat >>confdefs.h <<_ACEOF 14386#define HAVE_LIBLMDB 1 14387_ACEOF 14388 14389 LIBS="-llmdb $LIBS" 14390 14391else 14392 as_fn_error $? "Cannot find Lightning MDB" "$LINENO" 5 14393fi 14394 14395 for ac_header in lmdb.h 14396do : 14397 ac_fn_c_check_header_mongrel "$LINENO" "lmdb.h" "ac_cv_header_lmdb_h" "$ac_includes_default" 14398if test "x$ac_cv_header_lmdb_h" = xyes; then : 14399 cat >>confdefs.h <<_ACEOF 14400#define HAVE_LMDB_H 1 14401_ACEOF 14402 14403else 14404 as_fn_error $? "Cannot find Lightning MDB" "$LINENO" 5 14405fi 14406 14407done 14408 14409 14410$as_echo "#define LMDB 1" >>confdefs.h 14411 14412 14413 14414 # 14415 # Pick up any libraries added by tests 14416 # 14417 test -z "$LMDB_LIBS" && LMDB_LIBS="$LIBS" 14418 14419 # 14420 # libtool understands -R$path, but we are not using libtool in configure 14421 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14422 # 14423 if test "x$with_lmdb" != xyes && 14424 test "x$with_lmdb" != xcheck && 14425 test "x$with_lmdb" != x/usr && 14426 test "x$with_lmdb" != x/ 14427 then 14428 LMDB_LDFLAGS="$LMDB_LDFLAGS -R$with_lmdb/lib" 14429 fi 14430 14431 # 14432 # Restore pristine environment 14433 # 14434 CFLAGS="$save_CFLAGS" 14435 CPPFLAGS="$save_CPPFLAGS" 14436 LDFLAGS="$save_LDFLAGS" 14437 LIBS="$save_LIBS" 14438 14439 14440 14441 14442 14443 14444 14445fi 14446 14447if test $WITH_QDBM -eq 0 && test $WITH_TOKYO -eq 0 && test $WITH_LMDB -eq 0; then 14448 as_fn_error LMDB "Either Tokyo Cabinet" "$LINENO" 5 14449fi 14450 14451 14452 14453# Check whether --with-openssl was given. 14454if test "${with_openssl+set}" = set; then : 14455 withval=$with_openssl; 14456else 14457 with_openssl=yes 14458fi 14459 14460 14461if test -d /usr/local/Cellar/openssl/ && \ 14462 test -d /usr/local/opt/openssl/ && \ 14463 test "x$with_openssl" = "xyes" ; then 14464 with_openssl="/usr/local/opt/openssl" 14465 echo "OS X Homebrew detected" 14466 echo "Defaulting to: --with-openssl=$with_openssl" 14467fi 14468 14469if test "x$with_openssl" != "xno"; then 14470 14471 14472 14473 # 14474 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14475 # 14476 if test "x$with_openssl" != xyes && 14477 test "x$with_openssl" != xcheck && 14478 test "x$with_openssl" != x 14479 then 14480 test -z "$OPENSSL_PATH" && OPENSSL_PATH="$with_openssl" 14481 if test "x$with_openssl" != x/usr && 14482 test "x$with_openssl" != x/ 14483 then 14484 test -z "$OPENSSL_CFLAGS" && OPENSSL_CFLAGS="" 14485 test -z "$OPENSSL_CPPFLAGS" && OPENSSL_CPPFLAGS="-I$with_openssl/include" 14486 test -z "$OPENSSL_LDFLAGS" && OPENSSL_LDFLAGS="-L$with_openssl/lib" 14487 fi 14488 else 14489 OPENSSL_PATH="default path" 14490 fi 14491 14492 # 14493 # Save old environment 14494 # 14495 save_CFLAGS="$CFLAGS" 14496 save_CPPFLAGS="$CPPFLAGS" 14497 save_LDFLAGS="$LDFLAGS" 14498 save_LIBS="$LIBS" 14499 14500 CFLAGS="$CFLAGS $OPENSSL_CFLAGS" 14501 CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS" 14502 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 14503 14504 # 14505 # Run checks passed as argument 14506 # 14507 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_generate_key_ex in -lcrypto" >&5 14509$as_echo_n "checking for RSA_generate_key_ex in -lcrypto... " >&6; } 14510if ${ac_cv_lib_crypto_RSA_generate_key_ex+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512else 14513 ac_check_lib_save_LIBS=$LIBS 14514LIBS="-lcrypto $LIBS" 14515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516/* end confdefs.h. */ 14517 14518/* Override any GCC internal prototype to avoid an error. 14519 Use char because int might match the return type of a GCC 14520 builtin and then its argument prototype would still apply. */ 14521#ifdef __cplusplus 14522extern "C" 14523#endif 14524char RSA_generate_key_ex (); 14525int 14526main () 14527{ 14528return RSA_generate_key_ex (); 14529 ; 14530 return 0; 14531} 14532_ACEOF 14533if ac_fn_c_try_link "$LINENO"; then : 14534 ac_cv_lib_crypto_RSA_generate_key_ex=yes 14535else 14536 ac_cv_lib_crypto_RSA_generate_key_ex=no 14537fi 14538rm -f core conftest.err conftest.$ac_objext \ 14539 conftest$ac_exeext conftest.$ac_ext 14540LIBS=$ac_check_lib_save_LIBS 14541fi 14542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_generate_key_ex" >&5 14543$as_echo "$ac_cv_lib_crypto_RSA_generate_key_ex" >&6; } 14544if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = xyes; then : 14545 cat >>confdefs.h <<_ACEOF 14546#define HAVE_LIBCRYPTO 1 14547_ACEOF 14548 14549 LIBS="-lcrypto $LIBS" 14550 14551fi 14552 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_free in -lssl" >&5 14554$as_echo_n "checking for SSL_free in -lssl... " >&6; } 14555if ${ac_cv_lib_ssl_SSL_free+:} false; then : 14556 $as_echo_n "(cached) " >&6 14557else 14558 ac_check_lib_save_LIBS=$LIBS 14559LIBS="-lssl $LIBS" 14560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14561/* end confdefs.h. */ 14562 14563/* Override any GCC internal prototype to avoid an error. 14564 Use char because int might match the return type of a GCC 14565 builtin and then its argument prototype would still apply. */ 14566#ifdef __cplusplus 14567extern "C" 14568#endif 14569char SSL_free (); 14570int 14571main () 14572{ 14573return SSL_free (); 14574 ; 14575 return 0; 14576} 14577_ACEOF 14578if ac_fn_c_try_link "$LINENO"; then : 14579 ac_cv_lib_ssl_SSL_free=yes 14580else 14581 ac_cv_lib_ssl_SSL_free=no 14582fi 14583rm -f core conftest.err conftest.$ac_objext \ 14584 conftest$ac_exeext conftest.$ac_ext 14585LIBS=$ac_check_lib_save_LIBS 14586fi 14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_free" >&5 14588$as_echo "$ac_cv_lib_ssl_SSL_free" >&6; } 14589if test "x$ac_cv_lib_ssl_SSL_free" = xyes; then : 14590 cat >>confdefs.h <<_ACEOF 14591#define HAVE_LIBSSL 1 14592_ACEOF 14593 14594 LIBS="-lssl $LIBS" 14595 14596fi 14597 14598 ac_fn_c_check_decl "$LINENO" "SSL_CTX_clear_options" "ac_cv_have_decl_SSL_CTX_clear_options" "#include <openssl/ssl.h> 14599" 14600if test "x$ac_cv_have_decl_SSL_CTX_clear_options" = xyes; then : 14601 ac_have_decl=1 14602else 14603 ac_have_decl=0 14604fi 14605 14606cat >>confdefs.h <<_ACEOF 14607#define HAVE_DECL_SSL_CTX_CLEAR_OPTIONS $ac_have_decl 14608_ACEOF 14609 14610 for ac_header in openssl/opensslv.h 14611do : 14612 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" 14613if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : 14614 cat >>confdefs.h <<_ACEOF 14615#define HAVE_OPENSSL_OPENSSLV_H 1 14616_ACEOF 14617 14618else 14619 as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5 14620fi 14621 14622done 14623 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 14625$as_echo_n "checking for OpenSSL version... " >&6; } 14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14627/* end confdefs.h. */ 14628 14629 #include <openssl/opensslv.h> 14630 14631 #if OPENSSL_VERSION_NUMBER < 0x0090602fL 14632 #This OpenSSL is too old 14633 #endif 14634 14635_ACEOF 14636if ac_fn_c_try_cpp "$LINENO"; then : 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 14638$as_echo "OK" >&6; } 14639else 14640 as_fn_error $? "This release of CFEngine requires OpenSSL >= 0.9.7" "$LINENO" 5 14641fi 14642rm -f conftest.err conftest.i conftest.$ac_ext 14643 14644 if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xyes" ; then 14645 14646$as_echo "#define OPENSSL_NO_DEPRECATED 1" >>confdefs.h 14647 14648 fi 14649 14650 if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xno" && \ 14651 test "x$ac_cv_lib_crypto_RSA_generate_key" = "xno" ; then 14652 as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5 14653 fi 14654 14655 ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_1" "ac_cv_have_decl_SSL_OP_NO_TLSv1_1" "#include <openssl/ssl.h> 14656 14657" 14658if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_1" = xyes; then : 14659 14660$as_echo "#define HAVE_TLS_1_1 1" >>confdefs.h 14661 14662fi 14663 14664 ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_2" "ac_cv_have_decl_SSL_OP_NO_TLSv1_2" "#include <openssl/ssl.h> 14665 14666" 14667if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_2" = xyes; then : 14668 14669$as_echo "#define HAVE_TLS_1_2 1" >>confdefs.h 14670 14671fi 14672 14673 ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_3" "ac_cv_have_decl_SSL_OP_NO_TLSv1_3" "#include <openssl/ssl.h> 14674 14675" 14676if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_3" = xyes; then : 14677 14678$as_echo "#define HAVE_TLS_1_3 1" >>confdefs.h 14679 14680fi 14681 14682 14683 14684 # 14685 # Pick up any libraries added by tests 14686 # 14687 test -z "$OPENSSL_LIBS" && OPENSSL_LIBS="$LIBS" 14688 14689 # 14690 # libtool understands -R$path, but we are not using libtool in configure 14691 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14692 # 14693 if test "x$with_openssl" != xyes && 14694 test "x$with_openssl" != xcheck && 14695 test "x$with_openssl" != x/usr && 14696 test "x$with_openssl" != x/ 14697 then 14698 OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -R$with_openssl/lib" 14699 fi 14700 14701 # 14702 # Restore pristine environment 14703 # 14704 CFLAGS="$save_CFLAGS" 14705 CPPFLAGS="$save_CPPFLAGS" 14706 LDFLAGS="$save_LDFLAGS" 14707 LIBS="$save_LIBS" 14708 14709 14710 14711 14712 14713 14714 14715 14716$as_echo "#define WITH_OPENSSL 1" >>confdefs.h 14717 14718 if true; then 14719 WITH_OPENSSL_TRUE= 14720 WITH_OPENSSL_FALSE='#' 14721else 14722 WITH_OPENSSL_TRUE='#' 14723 WITH_OPENSSL_FALSE= 14724fi 14725 14726else 14727 if false; then 14728 WITH_OPENSSL_TRUE= 14729 WITH_OPENSSL_FALSE='#' 14730else 14731 WITH_OPENSSL_TRUE='#' 14732 WITH_OPENSSL_FALSE= 14733fi 14734 14735fi 14736 14737 14738 14739# Check whether --with-pcre was given. 14740if test "${with_pcre+set}" = set; then : 14741 withval=$with_pcre; 14742else 14743 with_pcre=yes 14744fi 14745 14746 14747if test "x$with_pcre" != "xno"; then 14748 14749 14750 14751 # 14752 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14753 # 14754 if test "x$with_pcre" != xyes && 14755 test "x$with_pcre" != xcheck && 14756 test "x$with_pcre" != x 14757 then 14758 test -z "$PCRE_PATH" && PCRE_PATH="$with_pcre" 14759 if test "x$with_pcre" != x/usr && 14760 test "x$with_pcre" != x/ 14761 then 14762 test -z "$PCRE_CFLAGS" && PCRE_CFLAGS="" 14763 test -z "$PCRE_CPPFLAGS" && PCRE_CPPFLAGS="-I$with_pcre/include" 14764 test -z "$PCRE_LDFLAGS" && PCRE_LDFLAGS="-L$with_pcre/lib" 14765 fi 14766 else 14767 PCRE_PATH="default path" 14768 fi 14769 14770 # 14771 # Save old environment 14772 # 14773 save_CFLAGS="$CFLAGS" 14774 save_CPPFLAGS="$CPPFLAGS" 14775 save_LDFLAGS="$LDFLAGS" 14776 save_LIBS="$LIBS" 14777 14778 CFLAGS="$CFLAGS $PCRE_CFLAGS" 14779 CPPFLAGS="$CPPFLAGS $PCRE_CPPFLAGS" 14780 LDFLAGS="$LDFLAGS $PCRE_LDFLAGS" 14781 14782 # 14783 # Run checks passed as argument 14784 # 14785 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5 14787$as_echo_n "checking for pcre_exec in -lpcre... " >&6; } 14788if ${ac_cv_lib_pcre_pcre_exec+:} false; then : 14789 $as_echo_n "(cached) " >&6 14790else 14791 ac_check_lib_save_LIBS=$LIBS 14792LIBS="-lpcre $LIBS" 14793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14794/* end confdefs.h. */ 14795 14796/* Override any GCC internal prototype to avoid an error. 14797 Use char because int might match the return type of a GCC 14798 builtin and then its argument prototype would still apply. */ 14799#ifdef __cplusplus 14800extern "C" 14801#endif 14802char pcre_exec (); 14803int 14804main () 14805{ 14806return pcre_exec (); 14807 ; 14808 return 0; 14809} 14810_ACEOF 14811if ac_fn_c_try_link "$LINENO"; then : 14812 ac_cv_lib_pcre_pcre_exec=yes 14813else 14814 ac_cv_lib_pcre_pcre_exec=no 14815fi 14816rm -f core conftest.err conftest.$ac_objext \ 14817 conftest$ac_exeext conftest.$ac_ext 14818LIBS=$ac_check_lib_save_LIBS 14819fi 14820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5 14821$as_echo "$ac_cv_lib_pcre_pcre_exec" >&6; } 14822if test "x$ac_cv_lib_pcre_pcre_exec" = xyes; then : 14823 cat >>confdefs.h <<_ACEOF 14824#define HAVE_LIBPCRE 1 14825_ACEOF 14826 14827 LIBS="-lpcre $LIBS" 14828 14829else 14830 as_fn_error $? "Cannot find PCRE" "$LINENO" 5 14831fi 14832 14833 for ac_header in pcre.h 14834do : 14835 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" 14836if test "x$ac_cv_header_pcre_h" = xyes; then : 14837 cat >>confdefs.h <<_ACEOF 14838#define HAVE_PCRE_H 1 14839_ACEOF 14840 14841else 14842 for ac_header in pcre/pcre.h 14843do : 14844 ac_fn_c_check_header_mongrel "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default" 14845if test "x$ac_cv_header_pcre_pcre_h" = xyes; then : 14846 cat >>confdefs.h <<_ACEOF 14847#define HAVE_PCRE_PCRE_H 1 14848_ACEOF 14849 PCRE_CPPFLAGS="-Ipcre" 14850else 14851 as_fn_error $? "Cannot find PCRE" "$LINENO" 5 14852 14853fi 14854 14855done 14856 14857 14858fi 14859 14860done 14861 14862 14863 14864 # 14865 # Pick up any libraries added by tests 14866 # 14867 test -z "$PCRE_LIBS" && PCRE_LIBS="$LIBS" 14868 14869 # 14870 # libtool understands -R$path, but we are not using libtool in configure 14871 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14872 # 14873 if test "x$with_pcre" != xyes && 14874 test "x$with_pcre" != xcheck && 14875 test "x$with_pcre" != x/usr && 14876 test "x$with_pcre" != x/ 14877 then 14878 PCRE_LDFLAGS="$PCRE_LDFLAGS -R$with_pcre/lib" 14879 fi 14880 14881 # 14882 # Restore pristine environment 14883 # 14884 CFLAGS="$save_CFLAGS" 14885 CPPFLAGS="$save_CPPFLAGS" 14886 LDFLAGS="$save_LDFLAGS" 14887 LIBS="$save_LIBS" 14888 14889 14890 14891 14892 14893 14894 14895 14896$as_echo "#define WITH_PCRE 1" >>confdefs.h 14897 14898 if true; then 14899 WITH_PCRE_TRUE= 14900 WITH_PCRE_FALSE='#' 14901else 14902 WITH_PCRE_TRUE='#' 14903 WITH_PCRE_FALSE= 14904fi 14905 14906else 14907 if false; then 14908 WITH_PCRE_TRUE= 14909 WITH_PCRE_FALSE='#' 14910else 14911 WITH_PCRE_TRUE='#' 14912 WITH_PCRE_FALSE= 14913fi 14914 14915fi 14916 14917 14918 14919# Check whether --with-libvirt was given. 14920if test "${with_libvirt+set}" = set; then : 14921 withval=$with_libvirt; 14922else 14923 with_libvirt=check 14924fi 14925 14926 14927if test "x$with_libvirt" != xno 14928then 14929 14930 14931 14932 # 14933 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14934 # 14935 if test "x$with_libvirt" != xyes && 14936 test "x$with_libvirt" != xcheck && 14937 test "x$with_libvirt" != x 14938 then 14939 test -z "$LIBVIRT_PATH" && LIBVIRT_PATH="$with_libvirt" 14940 if test "x$with_libvirt" != x/usr && 14941 test "x$with_libvirt" != x/ 14942 then 14943 test -z "$LIBVIRT_CFLAGS" && LIBVIRT_CFLAGS="" 14944 test -z "$LIBVIRT_CPPFLAGS" && LIBVIRT_CPPFLAGS="-I$with_libvirt/include" 14945 test -z "$LIBVIRT_LDFLAGS" && LIBVIRT_LDFLAGS="-L$with_libvirt/lib" 14946 fi 14947 else 14948 LIBVIRT_PATH="default path" 14949 fi 14950 14951 # 14952 # Save old environment 14953 # 14954 save_CFLAGS="$CFLAGS" 14955 save_CPPFLAGS="$CPPFLAGS" 14956 save_LDFLAGS="$LDFLAGS" 14957 save_LIBS="$LIBS" 14958 14959 CFLAGS="$CFLAGS $LIBVIRT_CFLAGS" 14960 CPPFLAGS="$CPPFLAGS $LIBVIRT_CPPFLAGS" 14961 LDFLAGS="$LDFLAGS $LIBVIRT_LDFLAGS" 14962 14963 # 14964 # Run checks passed as argument 14965 # 14966 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virConnectOpen in -lvirt" >&5 14968$as_echo_n "checking for virConnectOpen in -lvirt... " >&6; } 14969if ${ac_cv_lib_virt_virConnectOpen+:} false; then : 14970 $as_echo_n "(cached) " >&6 14971else 14972 ac_check_lib_save_LIBS=$LIBS 14973LIBS="-lvirt $LIBS" 14974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975/* end confdefs.h. */ 14976 14977/* Override any GCC internal prototype to avoid an error. 14978 Use char because int might match the return type of a GCC 14979 builtin and then its argument prototype would still apply. */ 14980#ifdef __cplusplus 14981extern "C" 14982#endif 14983char virConnectOpen (); 14984int 14985main () 14986{ 14987return virConnectOpen (); 14988 ; 14989 return 0; 14990} 14991_ACEOF 14992if ac_fn_c_try_link "$LINENO"; then : 14993 ac_cv_lib_virt_virConnectOpen=yes 14994else 14995 ac_cv_lib_virt_virConnectOpen=no 14996fi 14997rm -f core conftest.err conftest.$ac_objext \ 14998 conftest$ac_exeext conftest.$ac_ext 14999LIBS=$ac_check_lib_save_LIBS 15000fi 15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_virt_virConnectOpen" >&5 15002$as_echo "$ac_cv_lib_virt_virConnectOpen" >&6; } 15003if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then : 15004 cat >>confdefs.h <<_ACEOF 15005#define HAVE_LIBVIRT 1 15006_ACEOF 15007 15008 LIBS="-lvirt $LIBS" 15009 15010else 15011 if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library" "$LINENO" 5; fi 15012fi 15013 15014 for ac_header in libvirt/libvirt.h 15015do : 15016 ac_fn_c_check_header_mongrel "$LINENO" "libvirt/libvirt.h" "ac_cv_header_libvirt_libvirt_h" "$ac_includes_default" 15017if test "x$ac_cv_header_libvirt_libvirt_h" = xyes; then : 15018 cat >>confdefs.h <<_ACEOF 15019#define HAVE_LIBVIRT_LIBVIRT_H 1 15020_ACEOF 15021 15022else 15023 if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library headers" "$LINENO" 5; fi 15024fi 15025 15026done 15027 15028 15029 15030 # 15031 # Pick up any libraries added by tests 15032 # 15033 test -z "$LIBVIRT_LIBS" && LIBVIRT_LIBS="$LIBS" 15034 15035 # 15036 # libtool understands -R$path, but we are not using libtool in configure 15037 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 15038 # 15039 if test "x$with_libvirt" != xyes && 15040 test "x$with_libvirt" != xcheck && 15041 test "x$with_libvirt" != x/usr && 15042 test "x$with_libvirt" != x/ 15043 then 15044 LIBVIRT_LDFLAGS="$LIBVIRT_LDFLAGS -R$with_libvirt/lib" 15045 fi 15046 15047 # 15048 # Restore pristine environment 15049 # 15050 CFLAGS="$save_CFLAGS" 15051 CPPFLAGS="$save_CPPFLAGS" 15052 LDFLAGS="$save_LDFLAGS" 15053 LIBS="$save_LIBS" 15054 15055 15056 15057 15058 15059 15060 15061fi 15062 15063 15064 15065 15066# Check whether --with-libacl was given. 15067if test "${with_libacl+set}" = set; then : 15068 withval=$with_libacl; 15069else 15070 with_libacl=check 15071fi 15072 15073 15074if test "x$with_libacl" != xno 15075then 15076 15077 15078 15079 # 15080 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 15081 # 15082 if test "x$with_libacl" != xyes && 15083 test "x$with_libacl" != xcheck && 15084 test "x$with_libacl" != x 15085 then 15086 test -z "$LIBACL_PATH" && LIBACL_PATH="$with_libacl" 15087 if test "x$with_libacl" != x/usr && 15088 test "x$with_libacl" != x/ 15089 then 15090 test -z "$LIBACL_CFLAGS" && LIBACL_CFLAGS="" 15091 test -z "$LIBACL_CPPFLAGS" && LIBACL_CPPFLAGS="-I$with_libacl/include" 15092 test -z "$LIBACL_LDFLAGS" && LIBACL_LDFLAGS="-L$with_libacl/lib" 15093 fi 15094 else 15095 LIBACL_PATH="default path" 15096 fi 15097 15098 # 15099 # Save old environment 15100 # 15101 save_CFLAGS="$CFLAGS" 15102 save_CPPFLAGS="$CPPFLAGS" 15103 save_LDFLAGS="$LDFLAGS" 15104 save_LIBS="$LIBS" 15105 15106 CFLAGS="$CFLAGS $LIBACL_CFLAGS" 15107 CPPFLAGS="$CPPFLAGS $LIBACL_CPPFLAGS" 15108 LDFLAGS="$LDFLAGS $LIBACL_LDFLAGS" 15109 15110 # 15111 # Run checks passed as argument 15112 # 15113 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_init in -lacl" >&5 15115$as_echo_n "checking for acl_init in -lacl... " >&6; } 15116if ${ac_cv_lib_acl_acl_init+:} false; then : 15117 $as_echo_n "(cached) " >&6 15118else 15119 ac_check_lib_save_LIBS=$LIBS 15120LIBS="-lacl $LIBS" 15121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15122/* end confdefs.h. */ 15123 15124/* Override any GCC internal prototype to avoid an error. 15125 Use char because int might match the return type of a GCC 15126 builtin and then its argument prototype would still apply. */ 15127#ifdef __cplusplus 15128extern "C" 15129#endif 15130char acl_init (); 15131int 15132main () 15133{ 15134return acl_init (); 15135 ; 15136 return 0; 15137} 15138_ACEOF 15139if ac_fn_c_try_link "$LINENO"; then : 15140 ac_cv_lib_acl_acl_init=yes 15141else 15142 ac_cv_lib_acl_acl_init=no 15143fi 15144rm -f core conftest.err conftest.$ac_objext \ 15145 conftest$ac_exeext conftest.$ac_ext 15146LIBS=$ac_check_lib_save_LIBS 15147fi 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_init" >&5 15149$as_echo "$ac_cv_lib_acl_acl_init" >&6; } 15150if test "x$ac_cv_lib_acl_acl_init" = xyes; then : 15151 cat >>confdefs.h <<_ACEOF 15152#define HAVE_LIBACL 1 15153_ACEOF 15154 15155 LIBS="-lacl $LIBS" 15156 15157else 15158 if test "x$with_libacl" != xcheck; then as_fn_error $? "Cannot find libacl library" "$LINENO" 5; fi 15159fi 15160 15161 for ac_header in acl.h sys/acl.h acl/libacl.h 15162do : 15163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15164ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15165if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15166 cat >>confdefs.h <<_ACEOF 15167#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15168_ACEOF 15169 libacl_header_found=yes 15170fi 15171 15172done 15173 15174 if test "x$libacl_header_found" != "xyes" && test "x$with_libacl" != xcheck; 15175 then 15176 as_fn_error $? "Cannot find libacl library headers" "$LINENO" 5; 15177 fi 15178 15179 15180 # 15181 # Pick up any libraries added by tests 15182 # 15183 test -z "$LIBACL_LIBS" && LIBACL_LIBS="$LIBS" 15184 15185 # 15186 # libtool understands -R$path, but we are not using libtool in configure 15187 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 15188 # 15189 if test "x$with_libacl" != xyes && 15190 test "x$with_libacl" != xcheck && 15191 test "x$with_libacl" != x/usr && 15192 test "x$with_libacl" != x/ 15193 then 15194 LIBACL_LDFLAGS="$LIBACL_LDFLAGS -R$with_libacl/lib" 15195 fi 15196 15197 # 15198 # Restore pristine environment 15199 # 15200 CFLAGS="$save_CFLAGS" 15201 CPPFLAGS="$save_CPPFLAGS" 15202 LDFLAGS="$save_LDFLAGS" 15203 LIBS="$save_LIBS" 15204 15205 15206 15207 15208 15209 15210 15211fi 15212 15213 15214 15215# Check whether --with-libcurl was given. 15216if test "${with_libcurl+set}" = set; then : 15217 withval=$with_libcurl; 15218else 15219 with_libcurl=check 15220fi 15221 15222 15223if test "x$with_libcurl" != xno 15224then 15225 15226 15227 15228 # 15229 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 15230 # 15231 if test "x$with_libcurl" != xyes && 15232 test "x$with_libcurl" != xcheck && 15233 test "x$with_libcurl" != x 15234 then 15235 test -z "$LIBCURL_PATH" && LIBCURL_PATH="$with_libcurl" 15236 if test "x$with_libcurl" != x/usr && 15237 test "x$with_libcurl" != x/ 15238 then 15239 test -z "$LIBCURL_CFLAGS" && LIBCURL_CFLAGS="" 15240 test -z "$LIBCURL_CPPFLAGS" && LIBCURL_CPPFLAGS="-I$with_libcurl/include" 15241 test -z "$LIBCURL_LDFLAGS" && LIBCURL_LDFLAGS="-L$with_libcurl/lib" 15242 fi 15243 else 15244 LIBCURL_PATH="default path" 15245 fi 15246 15247 # 15248 # Save old environment 15249 # 15250 save_CFLAGS="$CFLAGS" 15251 save_CPPFLAGS="$CPPFLAGS" 15252 save_LDFLAGS="$LDFLAGS" 15253 save_LIBS="$LIBS" 15254 15255 CFLAGS="$CFLAGS $LIBCURL_CFLAGS" 15256 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" 15257 LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS" 15258 15259 # 15260 # Run checks passed as argument 15261 # 15262 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5 15264$as_echo_n "checking for curl_global_init in -lcurl... " >&6; } 15265if ${ac_cv_lib_curl_curl_global_init+:} false; then : 15266 $as_echo_n "(cached) " >&6 15267else 15268 ac_check_lib_save_LIBS=$LIBS 15269LIBS="-lcurl $LIBS" 15270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272 15273/* Override any GCC internal prototype to avoid an error. 15274 Use char because int might match the return type of a GCC 15275 builtin and then its argument prototype would still apply. */ 15276#ifdef __cplusplus 15277extern "C" 15278#endif 15279char curl_global_init (); 15280int 15281main () 15282{ 15283return curl_global_init (); 15284 ; 15285 return 0; 15286} 15287_ACEOF 15288if ac_fn_c_try_link "$LINENO"; then : 15289 ac_cv_lib_curl_curl_global_init=yes 15290else 15291 ac_cv_lib_curl_curl_global_init=no 15292fi 15293rm -f core conftest.err conftest.$ac_objext \ 15294 conftest$ac_exeext conftest.$ac_ext 15295LIBS=$ac_check_lib_save_LIBS 15296fi 15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5 15298$as_echo "$ac_cv_lib_curl_curl_global_init" >&6; } 15299if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then : 15300 cat >>confdefs.h <<_ACEOF 15301#define HAVE_LIBCURL 1 15302_ACEOF 15303 15304 LIBS="-lcurl $LIBS" 15305 15306else 15307 libcurl_lib_found=no; 15308 if test "x$with_libcurl" != xcheck; 15309 then 15310 as_fn_error $? "Cannot find libcurl library" "$LINENO" 5; 15311 fi 15312 15313fi 15314 15315 for ac_header in curl/curl.h 15316do : 15317 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" 15318if test "x$ac_cv_header_curl_curl_h" = xyes; then : 15319 cat >>confdefs.h <<_ACEOF 15320#define HAVE_CURL_CURL_H 1 15321_ACEOF 15322 libcurl_header_found=yes 15323else 15324 if test "x$with_libcurl" != xcheck; then as_fn_error $? "Cannot find libcurl header files" "$LINENO" 5; fi 15325fi 15326 15327done 15328 15329 15330 15331 # 15332 # Pick up any libraries added by tests 15333 # 15334 test -z "$LIBCURL_LIBS" && LIBCURL_LIBS="$LIBS" 15335 15336 # 15337 # libtool understands -R$path, but we are not using libtool in configure 15338 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 15339 # 15340 if test "x$with_libcurl" != xyes && 15341 test "x$with_libcurl" != xcheck && 15342 test "x$with_libcurl" != x/usr && 15343 test "x$with_libcurl" != x/ 15344 then 15345 LIBCURL_LDFLAGS="$LIBCURL_LDFLAGS -R$with_libcurl/lib" 15346 fi 15347 15348 # 15349 # Restore pristine environment 15350 # 15351 CFLAGS="$save_CFLAGS" 15352 CPPFLAGS="$save_CPPFLAGS" 15353 LDFLAGS="$save_LDFLAGS" 15354 LIBS="$save_LIBS" 15355 15356 15357 15358 15359 15360 15361 15362fi 15363 15364 if test "x$libcurl_lib_found" != xno && test "x$libcurl_header_found" = xyes; then 15365 HAVE_LIBCURL_TRUE= 15366 HAVE_LIBCURL_FALSE='#' 15367else 15368 HAVE_LIBCURL_TRUE='#' 15369 HAVE_LIBCURL_FALSE= 15370fi 15371 15372 15373 15374 15375# Check whether --with-libyaml was given. 15376if test "${with_libyaml+set}" = set; then : 15377 withval=$with_libyaml; 15378else 15379 with_libyaml=check 15380fi 15381 15382 15383if test "x$with_libyaml" != xno 15384then 15385 15386 15387 15388 # 15389 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 15390 # 15391 if test "x$with_libyaml" != xyes && 15392 test "x$with_libyaml" != xcheck && 15393 test "x$with_libyaml" != x 15394 then 15395 test -z "$LIBYAML_PATH" && LIBYAML_PATH="$with_libyaml" 15396 if test "x$with_libyaml" != x/usr && 15397 test "x$with_libyaml" != x/ 15398 then 15399 test -z "$LIBYAML_CFLAGS" && LIBYAML_CFLAGS="" 15400 test -z "$LIBYAML_CPPFLAGS" && LIBYAML_CPPFLAGS="-I$with_libyaml/include" 15401 test -z "$LIBYAML_LDFLAGS" && LIBYAML_LDFLAGS="-L$with_libyaml/lib" 15402 fi 15403 else 15404 LIBYAML_PATH="default path" 15405 fi 15406 15407 # 15408 # Save old environment 15409 # 15410 save_CFLAGS="$CFLAGS" 15411 save_CPPFLAGS="$CPPFLAGS" 15412 save_LDFLAGS="$LDFLAGS" 15413 save_LIBS="$LIBS" 15414 15415 CFLAGS="$CFLAGS $LIBYAML_CFLAGS" 15416 CPPFLAGS="$CPPFLAGS $LIBYAML_CPPFLAGS" 15417 LDFLAGS="$LDFLAGS $LIBYAML_LDFLAGS" 15418 15419 # 15420 # Run checks passed as argument 15421 # 15422 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaml_parser_initialize in -lyaml" >&5 15424$as_echo_n "checking for yaml_parser_initialize in -lyaml... " >&6; } 15425if ${ac_cv_lib_yaml_yaml_parser_initialize+:} false; then : 15426 $as_echo_n "(cached) " >&6 15427else 15428 ac_check_lib_save_LIBS=$LIBS 15429LIBS="-lyaml $LIBS" 15430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15431/* end confdefs.h. */ 15432 15433/* Override any GCC internal prototype to avoid an error. 15434 Use char because int might match the return type of a GCC 15435 builtin and then its argument prototype would still apply. */ 15436#ifdef __cplusplus 15437extern "C" 15438#endif 15439char yaml_parser_initialize (); 15440int 15441main () 15442{ 15443return yaml_parser_initialize (); 15444 ; 15445 return 0; 15446} 15447_ACEOF 15448if ac_fn_c_try_link "$LINENO"; then : 15449 ac_cv_lib_yaml_yaml_parser_initialize=yes 15450else 15451 ac_cv_lib_yaml_yaml_parser_initialize=no 15452fi 15453rm -f core conftest.err conftest.$ac_objext \ 15454 conftest$ac_exeext conftest.$ac_ext 15455LIBS=$ac_check_lib_save_LIBS 15456fi 15457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yaml_yaml_parser_initialize" >&5 15458$as_echo "$ac_cv_lib_yaml_yaml_parser_initialize" >&6; } 15459if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then : 15460 cat >>confdefs.h <<_ACEOF 15461#define HAVE_LIBYAML 1 15462_ACEOF 15463 15464 LIBS="-lyaml $LIBS" 15465 15466else 15467 if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml library" "$LINENO" 5; fi 15468fi 15469 15470 for ac_header in yaml.h 15471do : 15472 ac_fn_c_check_header_mongrel "$LINENO" "yaml.h" "ac_cv_header_yaml_h" "$ac_includes_default" 15473if test "x$ac_cv_header_yaml_h" = xyes; then : 15474 cat >>confdefs.h <<_ACEOF 15475#define HAVE_YAML_H 1 15476_ACEOF 15477 libyaml_header_found=yes 15478else 15479 if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml header files" "$LINENO" 5; fi 15480fi 15481 15482done 15483 15484 15485 15486 # 15487 # Pick up any libraries added by tests 15488 # 15489 test -z "$LIBYAML_LIBS" && LIBYAML_LIBS="$LIBS" 15490 15491 # 15492 # libtool understands -R$path, but we are not using libtool in configure 15493 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 15494 # 15495 if test "x$with_libyaml" != xyes && 15496 test "x$with_libyaml" != xcheck && 15497 test "x$with_libyaml" != x/usr && 15498 test "x$with_libyaml" != x/ 15499 then 15500 LIBYAML_LDFLAGS="$LIBYAML_LDFLAGS -R$with_libyaml/lib" 15501 fi 15502 15503 # 15504 # Restore pristine environment 15505 # 15506 CFLAGS="$save_CFLAGS" 15507 CPPFLAGS="$save_CPPFLAGS" 15508 LDFLAGS="$save_LDFLAGS" 15509 LIBS="$save_LIBS" 15510 15511 15512 15513 15514 15515 15516 15517fi 15518 15519 15520 15521# Check whether --with-libxml2 was given. 15522if test "${with_libxml2+set}" = set; then : 15523 withval=$with_libxml2; 15524else 15525 with_libxml2=check 15526fi 15527 15528 15529if test "x$with_libxml2" != xno 15530then 15531 if test "x$with_libxml2" != xyes && 15532 test "x$with_libxml2" != xcheck 15533 then 15534 XML2_CONFIG=$with_libxml2/bin/xml2-config 15535 else 15536 XML2_CONFIG=xml2-config 15537 fi 15538 15539 # xml2-config is only for native builds 15540 if test "x$cross_compiling" = "xno" && test x`which $XML2_CONFIG` != x 15541 then 15542 xml2_include_dir=`$XML2_CONFIG --cflags` 15543 if test -n "$xml2_include_dir" 15544 then 15545 LIBXML2_CPPFLAGS="$xml2_include_dir" 15546 fi 15547 else # xml2-config not found 15548 # if a path, e.g. /var/cfengine was given, then we 15549 # must take into account that libxml2 includes are in 15550 # /var/cfengine/include/libxml2 15551 LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2 15552 fi 15553 15554 15555 15556 15557 # 15558 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 15559 # 15560 if test "x$with_libxml2" != xyes && 15561 test "x$with_libxml2" != xcheck && 15562 test "x$with_libxml2" != x 15563 then 15564 test -z "$LIBXML2_PATH" && LIBXML2_PATH="$with_libxml2" 15565 if test "x$with_libxml2" != x/usr && 15566 test "x$with_libxml2" != x/ 15567 then 15568 test -z "$LIBXML2_CFLAGS" && LIBXML2_CFLAGS="" 15569 test -z "$LIBXML2_CPPFLAGS" && LIBXML2_CPPFLAGS="-I$with_libxml2/include" 15570 test -z "$LIBXML2_LDFLAGS" && LIBXML2_LDFLAGS="-L$with_libxml2/lib" 15571 fi 15572 else 15573 LIBXML2_PATH="default path" 15574 fi 15575 15576 # 15577 # Save old environment 15578 # 15579 save_CFLAGS="$CFLAGS" 15580 save_CPPFLAGS="$CPPFLAGS" 15581 save_LDFLAGS="$LDFLAGS" 15582 save_LIBS="$LIBS" 15583 15584 CFLAGS="$CFLAGS $LIBXML2_CFLAGS" 15585 CPPFLAGS="$CPPFLAGS $LIBXML2_CPPFLAGS" 15586 LDFLAGS="$LDFLAGS $LIBXML2_LDFLAGS" 15587 15588 # 15589 # Run checks passed as argument 15590 # 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5 15592$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; } 15593if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then : 15594 $as_echo_n "(cached) " >&6 15595else 15596 ac_check_lib_save_LIBS=$LIBS 15597LIBS="-lxml2 $LIBS" 15598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15599/* end confdefs.h. */ 15600 15601/* Override any GCC internal prototype to avoid an error. 15602 Use char because int might match the return type of a GCC 15603 builtin and then its argument prototype would still apply. */ 15604#ifdef __cplusplus 15605extern "C" 15606#endif 15607char xmlFirstElementChild (); 15608int 15609main () 15610{ 15611return xmlFirstElementChild (); 15612 ; 15613 return 0; 15614} 15615_ACEOF 15616if ac_fn_c_try_link "$LINENO"; then : 15617 ac_cv_lib_xml2_xmlFirstElementChild=yes 15618else 15619 ac_cv_lib_xml2_xmlFirstElementChild=no 15620fi 15621rm -f core conftest.err conftest.$ac_objext \ 15622 conftest$ac_exeext conftest.$ac_ext 15623LIBS=$ac_check_lib_save_LIBS 15624fi 15625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5 15626$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; } 15627if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then : 15628 cat >>confdefs.h <<_ACEOF 15629#define HAVE_LIBXML2 1 15630_ACEOF 15631 15632 LIBS="-lxml2 $LIBS" 15633 15634else 15635 if test "x$with_libxml2" != xcheck; then 15636 as_fn_error $? "Cannotfind libxml2" "$LINENO" 5; fi 15637 15638fi 15639 15640 for ac_header in libxml/xmlwriter.h 15641do : 15642 ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default" 15643if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes; then : 15644 cat >>confdefs.h <<_ACEOF 15645#define HAVE_LIBXML_XMLWRITER_H 1 15646_ACEOF 15647 break 15648else 15649 if test "x$with_libxml2" != xcheck; then 15650 as_fn_error $? "Cannot find libxml2" "$LINENO" 5; fi 15651 15652fi 15653 15654done 15655 15656 15657 15658 # 15659 # Pick up any libraries added by tests 15660 # 15661 test -z "$LIBXML2_LIBS" && LIBXML2_LIBS="$LIBS" 15662 15663 # 15664 # libtool understands -R$path, but we are not using libtool in configure 15665 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 15666 # 15667 if test "x$with_libxml2" != xyes && 15668 test "x$with_libxml2" != xcheck && 15669 test "x$with_libxml2" != x/usr && 15670 test "x$with_libxml2" != x/ 15671 then 15672 LIBXML2_LDFLAGS="$LIBXML2_LDFLAGS -R$with_libxml2/lib" 15673 fi 15674 15675 # 15676 # Restore pristine environment 15677 # 15678 CFLAGS="$save_CFLAGS" 15679 CPPFLAGS="$save_CPPFLAGS" 15680 LDFLAGS="$save_LDFLAGS" 15681 LIBS="$save_LIBS" 15682 15683 15684 15685 15686 15687 15688 15689fi 15690 15691 if test "x$with_libxml2" != xno && 15692 test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then 15693 HAVE_LIBXML2_TRUE= 15694 HAVE_LIBXML2_FALSE='#' 15695else 15696 HAVE_LIBXML2_TRUE='#' 15697 HAVE_LIBXML2_FALSE= 15698fi 15699 15700 15701 15702for ac_header in avahi-client/client.h 15703do : 15704 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default" 15705if test "x$ac_cv_header_avahi_client_client_h" = xyes; then : 15706 cat >>confdefs.h <<_ACEOF 15707#define HAVE_AVAHI_CLIENT_CLIENT_H 1 15708_ACEOF 15709 if true; then 15710 HAVE_AVAHI_CLIENT_TRUE= 15711 HAVE_AVAHI_CLIENT_FALSE='#' 15712else 15713 HAVE_AVAHI_CLIENT_TRUE='#' 15714 HAVE_AVAHI_CLIENT_FALSE= 15715fi 15716 15717else 15718 if false; then 15719 HAVE_AVAHI_CLIENT_TRUE= 15720 HAVE_AVAHI_CLIENT_FALSE='#' 15721else 15722 HAVE_AVAHI_CLIENT_TRUE='#' 15723 HAVE_AVAHI_CLIENT_FALSE= 15724fi 15725 15726fi 15727 15728done 15729 15730for ac_header in avahi-common/address.h 15731do : 15732 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/address.h" "ac_cv_header_avahi_common_address_h" "$ac_includes_default" 15733if test "x$ac_cv_header_avahi_common_address_h" = xyes; then : 15734 cat >>confdefs.h <<_ACEOF 15735#define HAVE_AVAHI_COMMON_ADDRESS_H 1 15736_ACEOF 15737 if true; then 15738 HAVE_AVAHI_COMMON_TRUE= 15739 HAVE_AVAHI_COMMON_FALSE='#' 15740else 15741 HAVE_AVAHI_COMMON_TRUE='#' 15742 HAVE_AVAHI_COMMON_FALSE= 15743fi 15744 15745else 15746 if false; then 15747 HAVE_AVAHI_COMMON_TRUE= 15748 HAVE_AVAHI_COMMON_FALSE='#' 15749else 15750 HAVE_AVAHI_COMMON_TRUE='#' 15751 HAVE_AVAHI_COMMON_FALSE= 15752fi 15753 15754fi 15755 15756done 15757 15758 15759 15760 15761for ac_header in unistd.h stdlib.h sys/loadavg.h 15762do : 15763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15764ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15765if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15766 cat >>confdefs.h <<_ACEOF 15767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15768_ACEOF 15769 15770fi 15771 15772done 15773 15774for ac_header in sys/param.h sys/resource.h 15775do : 15776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15777ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15778if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15779 cat >>confdefs.h <<_ACEOF 15780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15781_ACEOF 15782 15783fi 15784 15785done 15786 15787 15788# sys/param.h is required for sys/mount.h on OpenBSD 15789for ac_header in sys/mount.h 15790do : 15791 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default 15792#ifdef HAVE_SYS_PARAM_H 15793# include <sys/param.h> 15794#endif 15795 15796" 15797if test "x$ac_cv_header_sys_mount_h" = xyes; then : 15798 cat >>confdefs.h <<_ACEOF 15799#define HAVE_SYS_MOUNT_H 1 15800_ACEOF 15801 15802fi 15803 15804done 15805 15806 15807# Required on BSD to get struct sockaddr_dl (for retrieving MAC addresses from getifaddrs()) 15808for ac_header in net/if_dl.h 15809do : 15810 ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" 15811if test "x$ac_cv_header_net_if_dl_h" = xyes; then : 15812 cat >>confdefs.h <<_ACEOF 15813#define HAVE_NET_IF_DL_H 1 15814_ACEOF 15815 15816fi 15817 15818done 15819 15820 15821# Required on Solaris to get struct arpreq (for retrieving MAC addresses) 15822for ac_header in net/if_arp.h 15823do : 15824 ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "$ac_includes_default 15825#include <sys/socket.h> 15826 15827" 15828if test "x$ac_cv_header_net_if_arp_h" = xyes; then : 15829 cat >>confdefs.h <<_ACEOF 15830#define HAVE_NET_IF_ARP_H 1 15831_ACEOF 15832 15833fi 15834 15835done 15836 15837 15838for ac_header in utime.h 15839do : 15840 ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 15841if test "x$ac_cv_header_utime_h" = xyes; then : 15842 cat >>confdefs.h <<_ACEOF 15843#define HAVE_UTIME_H 1 15844_ACEOF 15845 15846fi 15847 15848done 15849 15850for ac_header in time.h 15851do : 15852 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 15853if test "x$ac_cv_header_time_h" = xyes; then : 15854 cat >>confdefs.h <<_ACEOF 15855#define HAVE_TIME_H 1 15856_ACEOF 15857 15858fi 15859 15860done 15861 15862for ac_header in sys/time.h 15863do : 15864 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 15865if test "x$ac_cv_header_sys_time_h" = xyes; then : 15866 cat >>confdefs.h <<_ACEOF 15867#define HAVE_SYS_TIME_H 1 15868_ACEOF 15869 15870fi 15871 15872done 15873 15874for ac_header in malloc.h sys/malloc.h 15875do : 15876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15877ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15879 cat >>confdefs.h <<_ACEOF 15880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15881_ACEOF 15882 15883fi 15884 15885done 15886 15887for ac_header in vfs.h 15888do : 15889 ac_fn_c_check_header_mongrel "$LINENO" "vfs.h" "ac_cv_header_vfs_h" "$ac_includes_default" 15890if test "x$ac_cv_header_vfs_h" = xyes; then : 15891 cat >>confdefs.h <<_ACEOF 15892#define HAVE_VFS_H 1 15893_ACEOF 15894 15895fi 15896 15897done 15898 15899for ac_header in sys/vfs.h 15900do : 15901 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" 15902if test "x$ac_cv_header_sys_vfs_h" = xyes; then : 15903 cat >>confdefs.h <<_ACEOF 15904#define HAVE_SYS_VFS_H 1 15905_ACEOF 15906 15907fi 15908 15909done 15910 15911for ac_header in sys/sockio.h 15912do : 15913 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 15914if test "x$ac_cv_header_sys_sockio_h" = xyes; then : 15915 cat >>confdefs.h <<_ACEOF 15916#define HAVE_SYS_SOCKIO_H 1 15917_ACEOF 15918 15919fi 15920 15921done 15922 15923for ac_header in sys/statvfs.h 15924do : 15925 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" 15926if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : 15927 cat >>confdefs.h <<_ACEOF 15928#define HAVE_SYS_STATVFS_H 1 15929_ACEOF 15930 15931fi 15932 15933done 15934 15935for ac_header in sys/statfs.h 15936do : 15937 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" 15938if test "x$ac_cv_header_sys_statfs_h" = xyes; then : 15939 cat >>confdefs.h <<_ACEOF 15940#define HAVE_SYS_STATFS_H 1 15941_ACEOF 15942 15943fi 15944 15945done 15946 15947for ac_header in fcntl.h 15948do : 15949 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 15950if test "x$ac_cv_header_fcntl_h" = xyes; then : 15951 cat >>confdefs.h <<_ACEOF 15952#define HAVE_FCNTL_H 1 15953_ACEOF 15954 15955fi 15956 15957done 15958 15959for ac_header in sys/filesys.h 15960do : 15961 ac_fn_c_check_header_mongrel "$LINENO" "sys/filesys.h" "ac_cv_header_sys_filesys_h" "$ac_includes_default" 15962if test "x$ac_cv_header_sys_filesys_h" = xyes; then : 15963 cat >>confdefs.h <<_ACEOF 15964#define HAVE_SYS_FILESYS_H 1 15965_ACEOF 15966 15967fi 15968 15969done 15970 15971for ac_header in dustat.h 15972do : 15973 ac_fn_c_check_header_mongrel "$LINENO" "dustat.h" "ac_cv_header_dustat_h" "$ac_includes_default" 15974if test "x$ac_cv_header_dustat_h" = xyes; then : 15975 cat >>confdefs.h <<_ACEOF 15976#define HAVE_DUSTAT_H 1 15977_ACEOF 15978 15979fi 15980 15981done 15982 15983for ac_header in sys/systeminfo.h 15984do : 15985 ac_fn_c_check_header_mongrel "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default" 15986if test "x$ac_cv_header_sys_systeminfo_h" = xyes; then : 15987 cat >>confdefs.h <<_ACEOF 15988#define HAVE_SYS_SYSTEMINFO_H 1 15989_ACEOF 15990 15991fi 15992 15993done 15994 15995for ac_header in ieeefp.h 15996do : 15997 ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" 15998if test "x$ac_cv_header_ieeefp_h" = xyes; then : 15999 cat >>confdefs.h <<_ACEOF 16000#define HAVE_IEEEFP_H 1 16001_ACEOF 16002 16003fi 16004 16005done 16006 16007for ac_header in winsock2.h 16008do : 16009 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 16010if test "x$ac_cv_header_winsock2_h" = xyes; then : 16011 cat >>confdefs.h <<_ACEOF 16012#define HAVE_WINSOCK2_H 1 16013_ACEOF 16014 16015fi 16016 16017done 16018 16019for ac_header in ws2tcpip.h 16020do : 16021 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 16022if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : 16023 cat >>confdefs.h <<_ACEOF 16024#define HAVE_WS2TCPIP_H 1 16025_ACEOF 16026 16027fi 16028 16029done 16030 16031for ac_header in zone.h 16032do : 16033 ac_fn_c_check_header_mongrel "$LINENO" "zone.h" "ac_cv_header_zone_h" "$ac_includes_default" 16034if test "x$ac_cv_header_zone_h" = xyes; then : 16035 cat >>confdefs.h <<_ACEOF 16036#define HAVE_ZONE_H 1 16037_ACEOF 16038 16039fi 16040 16041done 16042 16043for ac_header in sys/uio.h 16044do : 16045 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 16046if test "x$ac_cv_header_sys_uio_h" = xyes; then : 16047 cat >>confdefs.h <<_ACEOF 16048#define HAVE_SYS_UIO_H 1 16049_ACEOF 16050 16051fi 16052 16053done 16054 16055 16056 16057 16058 for ac_header in $ac_header_list 16059do : 16060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16061ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16062" 16063if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16064 cat >>confdefs.h <<_ACEOF 16065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16066_ACEOF 16067 16068fi 16069 16070done 16071 16072 16073 16074 for ac_header in sys/types.h 16075do : 16076 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 16077if test "x$ac_cv_header_sys_types_h" = xyes; then : 16078 cat >>confdefs.h <<_ACEOF 16079#define HAVE_SYS_TYPES_H 1 16080_ACEOF 16081 16082fi 16083 16084done 16085 16086for ac_header in sys/mpctl.h 16087do : 16088 ac_fn_c_check_header_mongrel "$LINENO" "sys/mpctl.h" "ac_cv_header_sys_mpctl_h" "$ac_includes_default" 16089if test "x$ac_cv_header_sys_mpctl_h" = xyes; then : 16090 cat >>confdefs.h <<_ACEOF 16091#define HAVE_SYS_MPCTL_H 1 16092_ACEOF 16093 16094fi 16095 16096done 16097 for ac_header in shadow.h 16098do : 16099 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 16100if test "x$ac_cv_header_shadow_h" = xyes; then : 16101 cat >>confdefs.h <<_ACEOF 16102#define HAVE_SHADOW_H 1 16103_ACEOF 16104 16105fi 16106 16107done 16108 16109for ac_header in sys/jail.h 16110do : 16111 ac_fn_c_check_header_compile "$LINENO" "sys/jail.h" "ac_cv_header_sys_jail_h" "$ac_includes_default 16112#ifdef HAVE_SYS_PARAM_H 16113# include <sys/param.h> 16114#endif 16115 16116" 16117if test "x$ac_cv_header_sys_jail_h" = xyes; then : 16118 cat >>confdefs.h <<_ACEOF 16119#define HAVE_SYS_JAIL_H 1 16120_ACEOF 16121 16122fi 16123 16124done 16125 16126for ac_header in net/route.h netinet/in.h netinet/ip.h 16127do : 16128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16129ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16131 cat >>confdefs.h <<_ACEOF 16132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16133_ACEOF 16134 16135fi 16136 16137done 16138 16139 16140 16141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16142$as_echo_n "checking for ANSI C header files... " >&6; } 16143if ${ac_cv_header_stdc+:} false; then : 16144 $as_echo_n "(cached) " >&6 16145else 16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16147/* end confdefs.h. */ 16148#include <stdlib.h> 16149#include <stdarg.h> 16150#include <string.h> 16151#include <float.h> 16152 16153int 16154main () 16155{ 16156 16157 ; 16158 return 0; 16159} 16160_ACEOF 16161if ac_fn_c_try_compile "$LINENO"; then : 16162 ac_cv_header_stdc=yes 16163else 16164 ac_cv_header_stdc=no 16165fi 16166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16167 16168if test $ac_cv_header_stdc = yes; then 16169 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16171/* end confdefs.h. */ 16172#include <string.h> 16173 16174_ACEOF 16175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16176 $EGREP "memchr" >/dev/null 2>&1; then : 16177 16178else 16179 ac_cv_header_stdc=no 16180fi 16181rm -f conftest* 16182 16183fi 16184 16185if test $ac_cv_header_stdc = yes; then 16186 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16188/* end confdefs.h. */ 16189#include <stdlib.h> 16190 16191_ACEOF 16192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16193 $EGREP "free" >/dev/null 2>&1; then : 16194 16195else 16196 ac_cv_header_stdc=no 16197fi 16198rm -f conftest* 16199 16200fi 16201 16202if test $ac_cv_header_stdc = yes; then 16203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16204 if test "$cross_compiling" = yes; then : 16205 : 16206else 16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16208/* end confdefs.h. */ 16209#include <ctype.h> 16210#include <stdlib.h> 16211#if ((' ' & 0x0FF) == 0x020) 16212# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16213# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16214#else 16215# define ISLOWER(c) \ 16216 (('a' <= (c) && (c) <= 'i') \ 16217 || ('j' <= (c) && (c) <= 'r') \ 16218 || ('s' <= (c) && (c) <= 'z')) 16219# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16220#endif 16221 16222#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16223int 16224main () 16225{ 16226 int i; 16227 for (i = 0; i < 256; i++) 16228 if (XOR (islower (i), ISLOWER (i)) 16229 || toupper (i) != TOUPPER (i)) 16230 return 2; 16231 return 0; 16232} 16233_ACEOF 16234if ac_fn_c_try_run "$LINENO"; then : 16235 16236else 16237 ac_cv_header_stdc=no 16238fi 16239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16240 conftest.$ac_objext conftest.beam conftest.$ac_ext 16241fi 16242 16243fi 16244fi 16245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16246$as_echo "$ac_cv_header_stdc" >&6; } 16247if test $ac_cv_header_stdc = yes; then 16248 16249$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16250 16251fi 16252 16253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16254$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16255if ${ac_cv_header_time+:} false; then : 16256 $as_echo_n "(cached) " >&6 16257else 16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16259/* end confdefs.h. */ 16260#include <sys/types.h> 16261#include <sys/time.h> 16262#include <time.h> 16263 16264int 16265main () 16266{ 16267if ((struct tm *) 0) 16268return 0; 16269 ; 16270 return 0; 16271} 16272_ACEOF 16273if ac_fn_c_try_compile "$LINENO"; then : 16274 ac_cv_header_time=yes 16275else 16276 ac_cv_header_time=no 16277fi 16278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16279fi 16280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16281$as_echo "$ac_cv_header_time" >&6; } 16282if test $ac_cv_header_time = yes; then 16283 16284$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16285 16286fi 16287 16288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 16289$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 16290if ${ac_cv_header_sys_wait_h+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295#include <sys/types.h> 16296#include <sys/wait.h> 16297#ifndef WEXITSTATUS 16298# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 16299#endif 16300#ifndef WIFEXITED 16301# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 16302#endif 16303 16304int 16305main () 16306{ 16307 int s; 16308 wait (&s); 16309 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 16310 ; 16311 return 0; 16312} 16313_ACEOF 16314if ac_fn_c_try_compile "$LINENO"; then : 16315 ac_cv_header_sys_wait_h=yes 16316else 16317 ac_cv_header_sys_wait_h=no 16318fi 16319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16320fi 16321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 16322$as_echo "$ac_cv_header_sys_wait_h" >&6; } 16323if test $ac_cv_header_sys_wait_h = yes; then 16324 16325$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 16326 16327fi 16328 16329ac_header_dirent=no 16330for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 16331 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 16332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 16333$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 16334if eval \${$as_ac_Header+:} false; then : 16335 $as_echo_n "(cached) " >&6 16336else 16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16338/* end confdefs.h. */ 16339#include <sys/types.h> 16340#include <$ac_hdr> 16341 16342int 16343main () 16344{ 16345if ((DIR *) 0) 16346return 0; 16347 ; 16348 return 0; 16349} 16350_ACEOF 16351if ac_fn_c_try_compile "$LINENO"; then : 16352 eval "$as_ac_Header=yes" 16353else 16354 eval "$as_ac_Header=no" 16355fi 16356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16357fi 16358eval ac_res=\$$as_ac_Header 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16360$as_echo "$ac_res" >&6; } 16361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16362 cat >>confdefs.h <<_ACEOF 16363#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 16364_ACEOF 16365 16366ac_header_dirent=$ac_hdr; break 16367fi 16368 16369done 16370# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 16371if test $ac_header_dirent = dirent.h; then 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 16373$as_echo_n "checking for library containing opendir... " >&6; } 16374if ${ac_cv_search_opendir+:} false; then : 16375 $as_echo_n "(cached) " >&6 16376else 16377 ac_func_search_save_LIBS=$LIBS 16378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16379/* end confdefs.h. */ 16380 16381/* Override any GCC internal prototype to avoid an error. 16382 Use char because int might match the return type of a GCC 16383 builtin and then its argument prototype would still apply. */ 16384#ifdef __cplusplus 16385extern "C" 16386#endif 16387char opendir (); 16388int 16389main () 16390{ 16391return opendir (); 16392 ; 16393 return 0; 16394} 16395_ACEOF 16396for ac_lib in '' dir; do 16397 if test -z "$ac_lib"; then 16398 ac_res="none required" 16399 else 16400 ac_res=-l$ac_lib 16401 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16402 fi 16403 if ac_fn_c_try_link "$LINENO"; then : 16404 ac_cv_search_opendir=$ac_res 16405fi 16406rm -f core conftest.err conftest.$ac_objext \ 16407 conftest$ac_exeext 16408 if ${ac_cv_search_opendir+:} false; then : 16409 break 16410fi 16411done 16412if ${ac_cv_search_opendir+:} false; then : 16413 16414else 16415 ac_cv_search_opendir=no 16416fi 16417rm conftest.$ac_ext 16418LIBS=$ac_func_search_save_LIBS 16419fi 16420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 16421$as_echo "$ac_cv_search_opendir" >&6; } 16422ac_res=$ac_cv_search_opendir 16423if test "$ac_res" != no; then : 16424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16425 16426fi 16427 16428else 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 16430$as_echo_n "checking for library containing opendir... " >&6; } 16431if ${ac_cv_search_opendir+:} false; then : 16432 $as_echo_n "(cached) " >&6 16433else 16434 ac_func_search_save_LIBS=$LIBS 16435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16436/* end confdefs.h. */ 16437 16438/* Override any GCC internal prototype to avoid an error. 16439 Use char because int might match the return type of a GCC 16440 builtin and then its argument prototype would still apply. */ 16441#ifdef __cplusplus 16442extern "C" 16443#endif 16444char opendir (); 16445int 16446main () 16447{ 16448return opendir (); 16449 ; 16450 return 0; 16451} 16452_ACEOF 16453for ac_lib in '' x; do 16454 if test -z "$ac_lib"; then 16455 ac_res="none required" 16456 else 16457 ac_res=-l$ac_lib 16458 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16459 fi 16460 if ac_fn_c_try_link "$LINENO"; then : 16461 ac_cv_search_opendir=$ac_res 16462fi 16463rm -f core conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext 16465 if ${ac_cv_search_opendir+:} false; then : 16466 break 16467fi 16468done 16469if ${ac_cv_search_opendir+:} false; then : 16470 16471else 16472 ac_cv_search_opendir=no 16473fi 16474rm conftest.$ac_ext 16475LIBS=$ac_func_search_save_LIBS 16476fi 16477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 16478$as_echo "$ac_cv_search_opendir" >&6; } 16479ac_res=$ac_cv_search_opendir 16480if test "$ac_res" != no; then : 16481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16482 16483fi 16484 16485fi 16486 16487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 16488$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 16489if ${ac_cv_header_stdbool_h+:} false; then : 16490 $as_echo_n "(cached) " >&6 16491else 16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16493/* end confdefs.h. */ 16494 16495 #include <stdbool.h> 16496 #ifndef bool 16497 "error: bool is not defined" 16498 #endif 16499 #ifndef false 16500 "error: false is not defined" 16501 #endif 16502 #if false 16503 "error: false is not 0" 16504 #endif 16505 #ifndef true 16506 "error: true is not defined" 16507 #endif 16508 #if true != 1 16509 "error: true is not 1" 16510 #endif 16511 #ifndef __bool_true_false_are_defined 16512 "error: __bool_true_false_are_defined is not defined" 16513 #endif 16514 16515 struct s { _Bool s: 1; _Bool t; } s; 16516 16517 char a[true == 1 ? 1 : -1]; 16518 char b[false == 0 ? 1 : -1]; 16519 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 16520 char d[(bool) 0.5 == true ? 1 : -1]; 16521 /* See body of main program for 'e'. */ 16522 char f[(_Bool) 0.0 == false ? 1 : -1]; 16523 char g[true]; 16524 char h[sizeof (_Bool)]; 16525 char i[sizeof s.t]; 16526 enum { j = false, k = true, l = false * true, m = true * 256 }; 16527 /* The following fails for 16528 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 16529 _Bool n[m]; 16530 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 16531 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 16532 /* Catch a bug in an HP-UX C compiler. See 16533 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 16534 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 16535 */ 16536 _Bool q = true; 16537 _Bool *pq = &q; 16538 16539int 16540main () 16541{ 16542 16543 bool e = &s; 16544 *pq |= q; 16545 *pq |= ! q; 16546 /* Refer to every declared value, to avoid compiler optimizations. */ 16547 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 16548 + !m + !n + !o + !p + !q + !pq); 16549 16550 ; 16551 return 0; 16552} 16553_ACEOF 16554if ac_fn_c_try_compile "$LINENO"; then : 16555 ac_cv_header_stdbool_h=yes 16556else 16557 ac_cv_header_stdbool_h=no 16558fi 16559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16560fi 16561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 16562$as_echo "$ac_cv_header_stdbool_h" >&6; } 16563 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 16564if test "x$ac_cv_type__Bool" = xyes; then : 16565 16566cat >>confdefs.h <<_ACEOF 16567#define HAVE__BOOL 1 16568_ACEOF 16569 16570 16571fi 16572 16573 16574if test $ac_cv_header_stdbool_h = yes; then 16575 16576$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 16577 16578fi 16579 16580 16581 16582ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 16583if test "x$ac_cv_type_mode_t" = xyes; then : 16584 16585else 16586 16587cat >>confdefs.h <<_ACEOF 16588#define mode_t int 16589_ACEOF 16590 16591fi 16592 16593ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16594if test "x$ac_cv_type_size_t" = xyes; then : 16595 16596else 16597 16598cat >>confdefs.h <<_ACEOF 16599#define size_t unsigned int 16600_ACEOF 16601 16602fi 16603 16604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 16605$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 16606if ${ac_cv_type_uid_t+:} false; then : 16607 $as_echo_n "(cached) " >&6 16608else 16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16610/* end confdefs.h. */ 16611#include <sys/types.h> 16612 16613_ACEOF 16614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16615 $EGREP "uid_t" >/dev/null 2>&1; then : 16616 ac_cv_type_uid_t=yes 16617else 16618 ac_cv_type_uid_t=no 16619fi 16620rm -f conftest* 16621 16622fi 16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 16624$as_echo "$ac_cv_type_uid_t" >&6; } 16625if test $ac_cv_type_uid_t = no; then 16626 16627$as_echo "#define uid_t int" >>confdefs.h 16628 16629 16630$as_echo "#define gid_t int" >>confdefs.h 16631 16632fi 16633 16634ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 16635if test "x$ac_cv_type_pid_t" = xyes; then : 16636 16637else 16638 16639cat >>confdefs.h <<_ACEOF 16640#define pid_t int 16641_ACEOF 16642 16643fi 16644 16645ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" " 16646#ifdef HAVE_TIME_H 16647# include <time.h> 16648#endif 16649 16650" 16651if test "x$ac_cv_type_clockid_t" = xyes; then : 16652 16653cat >>confdefs.h <<_ACEOF 16654#define HAVE_CLOCKID_T 1 16655_ACEOF 16656 16657 16658fi 16659 16660 16661ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16662#ifdef HAVE_SYS_TYPES_H 16663# include <sys/types.h> 16664#endif 16665 16666#include <sys/socket.h> 16667 16668" 16669if test "x$ac_cv_type_socklen_t" = xyes; then : 16670 16671cat >>confdefs.h <<_ACEOF 16672#define HAVE_SOCKLEN_T 1 16673_ACEOF 16674 16675 16676fi 16677 16678 16679 16680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16681$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16682if ${ac_cv_c_const+:} false; then : 16683 $as_echo_n "(cached) " >&6 16684else 16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16686/* end confdefs.h. */ 16687 16688int 16689main () 16690{ 16691 16692#ifndef __cplusplus 16693 /* Ultrix mips cc rejects this sort of thing. */ 16694 typedef int charset[2]; 16695 const charset cs = { 0, 0 }; 16696 /* SunOS 4.1.1 cc rejects this. */ 16697 char const *const *pcpcc; 16698 char **ppc; 16699 /* NEC SVR4.0.2 mips cc rejects this. */ 16700 struct point {int x, y;}; 16701 static struct point const zero = {0,0}; 16702 /* AIX XL C 1.02.0.0 rejects this. 16703 It does not let you subtract one const X* pointer from another in 16704 an arm of an if-expression whose if-part is not a constant 16705 expression */ 16706 const char *g = "string"; 16707 pcpcc = &g + (g ? g-g : 0); 16708 /* HPUX 7.0 cc rejects these. */ 16709 ++pcpcc; 16710 ppc = (char**) pcpcc; 16711 pcpcc = (char const *const *) ppc; 16712 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16713 char tx; 16714 char *t = &tx; 16715 char const *s = 0 ? (char *) 0 : (char const *) 0; 16716 16717 *t++ = 0; 16718 if (s) return 0; 16719 } 16720 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16721 int x[] = {25, 17}; 16722 const int *foo = &x[0]; 16723 ++foo; 16724 } 16725 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16726 typedef const int *iptr; 16727 iptr p = 0; 16728 ++p; 16729 } 16730 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16732 struct s { int j; const int *ap[3]; } bx; 16733 struct s *b = &bx; b->j = 5; 16734 } 16735 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16736 const int foo = 10; 16737 if (!foo) return 0; 16738 } 16739 return !cs[0] && !zero.x; 16740#endif 16741 16742 ; 16743 return 0; 16744} 16745_ACEOF 16746if ac_fn_c_try_compile "$LINENO"; then : 16747 ac_cv_c_const=yes 16748else 16749 ac_cv_c_const=no 16750fi 16751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16752fi 16753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16754$as_echo "$ac_cv_c_const" >&6; } 16755if test $ac_cv_c_const = no; then 16756 16757$as_echo "#define const /**/" >>confdefs.h 16758 16759fi 16760 16761 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 16763$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 16764if ${ac_cv_sys_largefile_source+:} false; then : 16765 $as_echo_n "(cached) " >&6 16766else 16767 while :; do 16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16769/* end confdefs.h. */ 16770#include <sys/types.h> /* for off_t */ 16771 #include <stdio.h> 16772int 16773main () 16774{ 16775int (*fp) (FILE *, off_t, int) = fseeko; 16776 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 16777 ; 16778 return 0; 16779} 16780_ACEOF 16781if ac_fn_c_try_link "$LINENO"; then : 16782 ac_cv_sys_largefile_source=no; break 16783fi 16784rm -f core conftest.err conftest.$ac_objext \ 16785 conftest$ac_exeext conftest.$ac_ext 16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16787/* end confdefs.h. */ 16788#define _LARGEFILE_SOURCE 1 16789#include <sys/types.h> /* for off_t */ 16790 #include <stdio.h> 16791int 16792main () 16793{ 16794int (*fp) (FILE *, off_t, int) = fseeko; 16795 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 16796 ; 16797 return 0; 16798} 16799_ACEOF 16800if ac_fn_c_try_link "$LINENO"; then : 16801 ac_cv_sys_largefile_source=1; break 16802fi 16803rm -f core conftest.err conftest.$ac_objext \ 16804 conftest$ac_exeext conftest.$ac_ext 16805 ac_cv_sys_largefile_source=unknown 16806 break 16807done 16808fi 16809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 16810$as_echo "$ac_cv_sys_largefile_source" >&6; } 16811case $ac_cv_sys_largefile_source in #( 16812 no | unknown) ;; 16813 *) 16814cat >>confdefs.h <<_ACEOF 16815#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 16816_ACEOF 16817;; 16818esac 16819rm -rf conftest* 16820 16821# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 16822# in glibc 2.1.3, but that breaks too many other things. 16823# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 16824if test $ac_cv_sys_largefile_source != unknown; then 16825 16826$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 16827 16828fi 16829 16830# Check whether --enable-largefile was given. 16831if test "${enable_largefile+set}" = set; then : 16832 enableval=$enable_largefile; 16833fi 16834 16835if test "$enable_largefile" != no; then 16836 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16838$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 16839if ${ac_cv_sys_largefile_CC+:} false; then : 16840 $as_echo_n "(cached) " >&6 16841else 16842 ac_cv_sys_largefile_CC=no 16843 if test "$GCC" != yes; then 16844 ac_save_CC=$CC 16845 while :; do 16846 # IRIX 6.2 and later do not support large files by default, 16847 # so use the C compiler's -n32 option if that helps. 16848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16849/* end confdefs.h. */ 16850#include <sys/types.h> 16851 /* Check that off_t can represent 2**63 - 1 correctly. 16852 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16853 since some C++ compilers masquerading as C compilers 16854 incorrectly reject 9223372036854775807. */ 16855#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16857 && LARGE_OFF_T % 2147483647 == 1) 16858 ? 1 : -1]; 16859int 16860main () 16861{ 16862 16863 ; 16864 return 0; 16865} 16866_ACEOF 16867 if ac_fn_c_try_compile "$LINENO"; then : 16868 break 16869fi 16870rm -f core conftest.err conftest.$ac_objext 16871 CC="$CC -n32" 16872 if ac_fn_c_try_compile "$LINENO"; then : 16873 ac_cv_sys_largefile_CC=' -n32'; break 16874fi 16875rm -f core conftest.err conftest.$ac_objext 16876 break 16877 done 16878 CC=$ac_save_CC 16879 rm -f conftest.$ac_ext 16880 fi 16881fi 16882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16883$as_echo "$ac_cv_sys_largefile_CC" >&6; } 16884 if test "$ac_cv_sys_largefile_CC" != no; then 16885 CC=$CC$ac_cv_sys_largefile_CC 16886 fi 16887 16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16889$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 16890if ${ac_cv_sys_file_offset_bits+:} false; then : 16891 $as_echo_n "(cached) " >&6 16892else 16893 while :; do 16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895/* end confdefs.h. */ 16896#include <sys/types.h> 16897 /* Check that off_t can represent 2**63 - 1 correctly. 16898 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16899 since some C++ compilers masquerading as C compilers 16900 incorrectly reject 9223372036854775807. */ 16901#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16902 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16903 && LARGE_OFF_T % 2147483647 == 1) 16904 ? 1 : -1]; 16905int 16906main () 16907{ 16908 16909 ; 16910 return 0; 16911} 16912_ACEOF 16913if ac_fn_c_try_compile "$LINENO"; then : 16914 ac_cv_sys_file_offset_bits=no; break 16915fi 16916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16918/* end confdefs.h. */ 16919#define _FILE_OFFSET_BITS 64 16920#include <sys/types.h> 16921 /* Check that off_t can represent 2**63 - 1 correctly. 16922 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16923 since some C++ compilers masquerading as C compilers 16924 incorrectly reject 9223372036854775807. */ 16925#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16927 && LARGE_OFF_T % 2147483647 == 1) 16928 ? 1 : -1]; 16929int 16930main () 16931{ 16932 16933 ; 16934 return 0; 16935} 16936_ACEOF 16937if ac_fn_c_try_compile "$LINENO"; then : 16938 ac_cv_sys_file_offset_bits=64; break 16939fi 16940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16941 ac_cv_sys_file_offset_bits=unknown 16942 break 16943done 16944fi 16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 16946$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 16947case $ac_cv_sys_file_offset_bits in #( 16948 no | unknown) ;; 16949 *) 16950cat >>confdefs.h <<_ACEOF 16951#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 16952_ACEOF 16953;; 16954esac 16955rm -rf conftest* 16956 if test $ac_cv_sys_file_offset_bits = unknown; then 16957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 16958$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 16959if ${ac_cv_sys_large_files+:} false; then : 16960 $as_echo_n "(cached) " >&6 16961else 16962 while :; do 16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16964/* end confdefs.h. */ 16965#include <sys/types.h> 16966 /* Check that off_t can represent 2**63 - 1 correctly. 16967 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16968 since some C++ compilers masquerading as C compilers 16969 incorrectly reject 9223372036854775807. */ 16970#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16972 && LARGE_OFF_T % 2147483647 == 1) 16973 ? 1 : -1]; 16974int 16975main () 16976{ 16977 16978 ; 16979 return 0; 16980} 16981_ACEOF 16982if ac_fn_c_try_compile "$LINENO"; then : 16983 ac_cv_sys_large_files=no; break 16984fi 16985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16987/* end confdefs.h. */ 16988#define _LARGE_FILES 1 16989#include <sys/types.h> 16990 /* Check that off_t can represent 2**63 - 1 correctly. 16991 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16992 since some C++ compilers masquerading as C compilers 16993 incorrectly reject 9223372036854775807. */ 16994#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16996 && LARGE_OFF_T % 2147483647 == 1) 16997 ? 1 : -1]; 16998int 16999main () 17000{ 17001 17002 ; 17003 return 0; 17004} 17005_ACEOF 17006if ac_fn_c_try_compile "$LINENO"; then : 17007 ac_cv_sys_large_files=1; break 17008fi 17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17010 ac_cv_sys_large_files=unknown 17011 break 17012done 17013fi 17014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17015$as_echo "$ac_cv_sys_large_files" >&6; } 17016case $ac_cv_sys_large_files in #( 17017 no | unknown) ;; 17018 *) 17019cat >>confdefs.h <<_ACEOF 17020#define _LARGE_FILES $ac_cv_sys_large_files 17021_ACEOF 17022;; 17023esac 17024rm -rf conftest* 17025 fi 17026 17027 17028fi 17029 17030ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17031if test "x$ac_cv_type_off_t" = xyes; then : 17032 17033else 17034 17035cat >>confdefs.h <<_ACEOF 17036#define off_t long int 17037_ACEOF 17038 17039fi 17040 17041 17042# 17043# AC_SYS_LARGEFILE correctly figures out necessary macros for large files, but 17044# on AIX there is a gotcha: 17045# 17046# Code generated by flex #includes <stdio.h> at the beginning of the file, which 17047# picks up 32-bit wide off_t. Then it #includes <config.h> which provides LFS 17048# macros, and finally it includes another system header, now with 64-bit wide 17049# off_t, which causes a conflict. 17050# 17051if test "x$ac_cv_sys_large_files" = x1; then 17052 CPPFLAGS="-D_LARGE_FILES=1 $CPPFLAGS" 17053fi 17054 17055 17056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 17057$as_echo_n "checking for sqrt in -lm... " >&6; } 17058if ${ac_cv_lib_m_sqrt+:} false; then : 17059 $as_echo_n "(cached) " >&6 17060else 17061 ac_check_lib_save_LIBS=$LIBS 17062LIBS="-lm $LIBS" 17063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17064/* end confdefs.h. */ 17065 17066/* Override any GCC internal prototype to avoid an error. 17067 Use char because int might match the return type of a GCC 17068 builtin and then its argument prototype would still apply. */ 17069#ifdef __cplusplus 17070extern "C" 17071#endif 17072char sqrt (); 17073int 17074main () 17075{ 17076return sqrt (); 17077 ; 17078 return 0; 17079} 17080_ACEOF 17081if ac_fn_c_try_link "$LINENO"; then : 17082 ac_cv_lib_m_sqrt=yes 17083else 17084 ac_cv_lib_m_sqrt=no 17085fi 17086rm -f core conftest.err conftest.$ac_objext \ 17087 conftest$ac_exeext conftest.$ac_ext 17088LIBS=$ac_check_lib_save_LIBS 17089fi 17090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 17091$as_echo "$ac_cv_lib_m_sqrt" >&6; } 17092if test "x$ac_cv_lib_m_sqrt" = xyes; then : 17093 cat >>confdefs.h <<_ACEOF 17094#define HAVE_LIBM 1 17095_ACEOF 17096 17097 LIBS="-lm $LIBS" 17098 17099fi 17100 17101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 17102$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 17103if ${ac_cv_lib_rt_clock_gettime+:} false; then : 17104 $as_echo_n "(cached) " >&6 17105else 17106 ac_check_lib_save_LIBS=$LIBS 17107LIBS="-lrt $LIBS" 17108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17109/* end confdefs.h. */ 17110 17111/* Override any GCC internal prototype to avoid an error. 17112 Use char because int might match the return type of a GCC 17113 builtin and then its argument prototype would still apply. */ 17114#ifdef __cplusplus 17115extern "C" 17116#endif 17117char clock_gettime (); 17118int 17119main () 17120{ 17121return clock_gettime (); 17122 ; 17123 return 0; 17124} 17125_ACEOF 17126if ac_fn_c_try_link "$LINENO"; then : 17127 ac_cv_lib_rt_clock_gettime=yes 17128else 17129 ac_cv_lib_rt_clock_gettime=no 17130fi 17131rm -f core conftest.err conftest.$ac_objext \ 17132 conftest$ac_exeext conftest.$ac_ext 17133LIBS=$ac_check_lib_save_LIBS 17134fi 17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 17136$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 17137if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 17138 cat >>confdefs.h <<_ACEOF 17139#define HAVE_LIBRT 1 17140_ACEOF 17141 17142 LIBS="-lrt $LIBS" 17143 17144fi 17145 17146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17147$as_echo_n "checking for dlopen in -ldl... " >&6; } 17148if ${ac_cv_lib_dl_dlopen+:} false; then : 17149 $as_echo_n "(cached) " >&6 17150else 17151 ac_check_lib_save_LIBS=$LIBS 17152LIBS="-ldl $LIBS" 17153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17154/* end confdefs.h. */ 17155 17156/* Override any GCC internal prototype to avoid an error. 17157 Use char because int might match the return type of a GCC 17158 builtin and then its argument prototype would still apply. */ 17159#ifdef __cplusplus 17160extern "C" 17161#endif 17162char dlopen (); 17163int 17164main () 17165{ 17166return dlopen (); 17167 ; 17168 return 0; 17169} 17170_ACEOF 17171if ac_fn_c_try_link "$LINENO"; then : 17172 ac_cv_lib_dl_dlopen=yes 17173else 17174 ac_cv_lib_dl_dlopen=no 17175fi 17176rm -f core conftest.err conftest.$ac_objext \ 17177 conftest$ac_exeext conftest.$ac_ext 17178LIBS=$ac_check_lib_save_LIBS 17179fi 17180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17181$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17182if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17183 cat >>confdefs.h <<_ACEOF 17184#define HAVE_LIBDL 1 17185_ACEOF 17186 17187 LIBS="-ldl $LIBS" 17188 17189fi 17190 17191 17192 17193ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#include <time.h> 17194" 17195if test "x$ac_cv_have_decl_clock_gettime" = xyes; then : 17196 ac_have_decl=1 17197else 17198 ac_have_decl=0 17199fi 17200 17201cat >>confdefs.h <<_ACEOF 17202#define HAVE_DECL_CLOCK_GETTIME $ac_have_decl 17203_ACEOF 17204 17205ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 17206if test "x$ac_cv_func_clock_gettime" = xyes; then : 17207 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 17208 17209else 17210 case " $LIBOBJS " in 17211 *" clock_gettime.$ac_objext "* ) ;; 17212 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext" 17213 ;; 17214esac 17215 17216fi 17217 17218 17219 17220ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" 17221if test "x$ac_cv_have_decl_unsetenv" = xyes; then : 17222 ac_have_decl=1 17223else 17224 ac_have_decl=0 17225fi 17226 17227cat >>confdefs.h <<_ACEOF 17228#define HAVE_DECL_UNSETENV $ac_have_decl 17229_ACEOF 17230 17231ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 17232if test "x$ac_cv_func_unsetenv" = xyes; then : 17233 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h 17234 17235else 17236 case " $LIBOBJS " in 17237 *" unsetenv.$ac_objext "* ) ;; 17238 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 17239 ;; 17240esac 17241 17242fi 17243 17244 17245 17246ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 17247if test "x$ac_cv_have_decl_strnlen" = xyes; then : 17248 ac_have_decl=1 17249else 17250 ac_have_decl=0 17251fi 17252 17253cat >>confdefs.h <<_ACEOF 17254#define HAVE_DECL_STRNLEN $ac_have_decl 17255_ACEOF 17256 17257ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 17258if test "x$ac_cv_func_strnlen" = xyes; then : 17259 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 17260 17261else 17262 case " $LIBOBJS " in 17263 *" strnlen.$ac_objext "* ) ;; 17264 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 17265 ;; 17266esac 17267 17268fi 17269 17270 17271 17272 17273 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" 17274if test "x$ac_cv_have_decl_strndup" = xyes; then : 17275 ac_have_decl=1 17276else 17277 ac_have_decl=0 17278fi 17279 17280cat >>confdefs.h <<_ACEOF 17281#define HAVE_DECL_STRNDUP $ac_have_decl 17282_ACEOF 17283 17284 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 17285if test "x$ac_cv_func_strndup" = xyes; then : 17286 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 17287 17288else 17289 case " $LIBOBJS " in 17290 *" strndup.$ac_objext "* ) ;; 17291 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 17292 ;; 17293esac 17294 17295fi 17296 17297 17298 if test $ac_cv_have_decl_strndup = no; then 17299 HAVE_DECL_STRNDUP=0 17300 fi 17301 17302 if test $ac_cv_func_strndup = yes; then 17303 HAVE_STRNDUP=1 17304 # AIX 5.3 has a function that tries to copy the entire range specified 17305 # by n, instead of just the length of src. 17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5 17307$as_echo_n "checking for working strndup... " >&6; } 17308if ${cf3_cv_func_strndup_works+:} false; then : 17309 $as_echo_n "(cached) " >&6 17310else 17311 if test "$cross_compiling" = yes; then : 17312 17313 case $host_os in 17314 aix | aix[3-6]*) cf3_cv_func_strndup_works="guessing no";; 17315 *) cf3_cv_func_strndup_works="guessing yes";; 17316 esac 17317 17318else 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17320/* end confdefs.h. */ 17321 17322 #include <string.h> 17323 #include <stdlib.h> 17324int 17325main () 17326{ 17327 17328#if !HAVE_DECL_STRNDUP 17329 extern 17330 #ifdef __cplusplus 17331 "C" 17332 #endif 17333 char *strndup (const char *, size_t); 17334#endif 17335 char *s; 17336 // Will crash if strndup tries to traverse all 2GB. 17337 s = strndup ("string", 2000000000); 17338 return 0; 17339 ; 17340 return 0; 17341} 17342_ACEOF 17343if ac_fn_c_try_run "$LINENO"; then : 17344 cf3_cv_func_strndup_works=yes 17345else 17346 cf3_cv_func_strndup_works=no 17347fi 17348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17349 conftest.$ac_objext conftest.beam conftest.$ac_ext 17350fi 17351 17352fi 17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf3_cv_func_strndup_works" >&5 17354$as_echo "$cf3_cv_func_strndup_works" >&6; } 17355 case $cf3_cv_func_strndup_works in 17356 *no) case " $LIBOBJS " in 17357 *" strndup.$ac_objext "* ) ;; 17358 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 17359 ;; 17360esac 17361 ;; 17362 esac 17363 else 17364 HAVE_STRNDUP=0 17365 fi 17366 17367 17368ac_fn_c_check_decl "$LINENO" "seteuid" "ac_cv_have_decl_seteuid" "$ac_includes_default" 17369if test "x$ac_cv_have_decl_seteuid" = xyes; then : 17370 ac_have_decl=1 17371else 17372 ac_have_decl=0 17373fi 17374 17375cat >>confdefs.h <<_ACEOF 17376#define HAVE_DECL_SETEUID $ac_have_decl 17377_ACEOF 17378 17379ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 17380if test "x$ac_cv_func_seteuid" = xyes; then : 17381 $as_echo "#define HAVE_SETEUID 1" >>confdefs.h 17382 17383else 17384 case " $LIBOBJS " in 17385 *" seteuid.$ac_objext "* ) ;; 17386 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" 17387 ;; 17388esac 17389 17390fi 17391 17392 17393 17394ac_fn_c_check_decl "$LINENO" "setlinebuf" "ac_cv_have_decl_setlinebuf" "$ac_includes_default" 17395if test "x$ac_cv_have_decl_setlinebuf" = xyes; then : 17396 ac_have_decl=1 17397else 17398 ac_have_decl=0 17399fi 17400 17401cat >>confdefs.h <<_ACEOF 17402#define HAVE_DECL_SETLINEBUF $ac_have_decl 17403_ACEOF 17404 17405ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf" 17406if test "x$ac_cv_func_setlinebuf" = xyes; then : 17407 $as_echo "#define HAVE_SETLINEBUF 1" >>confdefs.h 17408 17409else 17410 case " $LIBOBJS " in 17411 *" setlinebuf.$ac_objext "* ) ;; 17412 *) LIBOBJS="$LIBOBJS setlinebuf.$ac_objext" 17413 ;; 17414esac 17415 17416fi 17417 17418 17419 17420ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 17421if test "x$ac_cv_have_decl_strlcat" = xyes; then : 17422 ac_have_decl=1 17423else 17424 ac_have_decl=0 17425fi 17426 17427cat >>confdefs.h <<_ACEOF 17428#define HAVE_DECL_STRLCAT $ac_have_decl 17429_ACEOF 17430 17431ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 17432if test "x$ac_cv_func_strlcat" = xyes; then : 17433 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 17434 17435else 17436 case " $LIBOBJS " in 17437 *" strlcat.$ac_objext "* ) ;; 17438 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 17439 ;; 17440esac 17441 17442fi 17443 17444 17445 17446ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 17447if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 17448 ac_have_decl=1 17449else 17450 ac_have_decl=0 17451fi 17452 17453cat >>confdefs.h <<_ACEOF 17454#define HAVE_DECL_STRLCPY $ac_have_decl 17455_ACEOF 17456 17457ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 17458if test "x$ac_cv_func_strlcpy" = xyes; then : 17459 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 17460 17461else 17462 case " $LIBOBJS " in 17463 *" strlcpy.$ac_objext "* ) ;; 17464 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 17465 ;; 17466esac 17467 17468fi 17469 17470 17471 17472ac_fn_c_check_decl "$LINENO" "realpath" "ac_cv_have_decl_realpath" "$ac_includes_default" 17473if test "x$ac_cv_have_decl_realpath" = xyes; then : 17474 ac_have_decl=1 17475else 17476 ac_have_decl=0 17477fi 17478 17479cat >>confdefs.h <<_ACEOF 17480#define HAVE_DECL_REALPATH $ac_have_decl 17481_ACEOF 17482 17483 17484ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" 17485if test "x$ac_cv_have_decl_strdup" = xyes; then : 17486 ac_have_decl=1 17487else 17488 ac_have_decl=0 17489fi 17490 17491cat >>confdefs.h <<_ACEOF 17492#define HAVE_DECL_STRDUP $ac_have_decl 17493_ACEOF 17494 17495ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 17496if test "x$ac_cv_func_strdup" = xyes; then : 17497 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 17498 17499else 17500 case " $LIBOBJS " in 17501 *" strdup.$ac_objext "* ) ;; 17502 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 17503 ;; 17504esac 17505 17506fi 17507 17508 17509 17510ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" 17511if test "x$ac_cv_have_decl_memrchr" = xyes; then : 17512 ac_have_decl=1 17513else 17514 ac_have_decl=0 17515fi 17516 17517cat >>confdefs.h <<_ACEOF 17518#define HAVE_DECL_MEMRCHR $ac_have_decl 17519_ACEOF 17520 17521ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 17522if test "x$ac_cv_func_memrchr" = xyes; then : 17523 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h 17524 17525else 17526 case " $LIBOBJS " in 17527 *" memrchr.$ac_objext "* ) ;; 17528 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext" 17529 ;; 17530esac 17531 17532fi 17533 17534 17535 17536ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h> 17537" 17538if test "x$ac_cv_have_decl_round" = xyes; then : 17539 ac_have_decl=1 17540else 17541 ac_have_decl=0 17542fi 17543 17544cat >>confdefs.h <<_ACEOF 17545#define HAVE_DECL_ROUND $ac_have_decl 17546_ACEOF 17547 17548ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round" 17549if test "x$ac_cv_func_round" = xyes; then : 17550 $as_echo "#define HAVE_ROUND 1" >>confdefs.h 17551 17552else 17553 case " $LIBOBJS " in 17554 *" round.$ac_objext "* ) ;; 17555 *) LIBOBJS="$LIBOBJS round.$ac_objext" 17556 ;; 17557esac 17558 17559fi 17560 17561 17562 17563ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "$ac_includes_default" 17564if test "x$ac_cv_have_decl_nanosleep" = xyes; then : 17565 ac_have_decl=1 17566else 17567 ac_have_decl=0 17568fi 17569 17570cat >>confdefs.h <<_ACEOF 17571#define HAVE_DECL_NANOSLEEP $ac_have_decl 17572_ACEOF 17573 17574ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 17575if test "x$ac_cv_func_nanosleep" = xyes; then : 17576 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 17577 17578else 17579 case " $LIBOBJS " in 17580 *" nanosleep.$ac_objext "* ) ;; 17581 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" 17582 ;; 17583esac 17584 17585fi 17586 17587 17588 17589ac_fn_c_check_decl "$LINENO" "memdup" "ac_cv_have_decl_memdup" "$ac_includes_default" 17590if test "x$ac_cv_have_decl_memdup" = xyes; then : 17591 ac_have_decl=1 17592else 17593 ac_have_decl=0 17594fi 17595 17596cat >>confdefs.h <<_ACEOF 17597#define HAVE_DECL_MEMDUP $ac_have_decl 17598_ACEOF 17599 17600ac_fn_c_check_func "$LINENO" "memdup" "ac_cv_func_memdup" 17601if test "x$ac_cv_func_memdup" = xyes; then : 17602 $as_echo "#define HAVE_MEMDUP 1" >>confdefs.h 17603 17604else 17605 case " $LIBOBJS " in 17606 *" memdup.$ac_objext "* ) ;; 17607 *) LIBOBJS="$LIBOBJS memdup.$ac_objext" 17608 ;; 17609esac 17610 17611fi 17612 17613 17614 17615ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" 17616if test "x$ac_cv_have_decl_memmem" = xyes; then : 17617 ac_have_decl=1 17618else 17619 ac_have_decl=0 17620fi 17621 17622cat >>confdefs.h <<_ACEOF 17623#define HAVE_DECL_MEMMEM $ac_have_decl 17624_ACEOF 17625 17626ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" 17627if test "x$ac_cv_func_memmem" = xyes; then : 17628 $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h 17629 17630else 17631 case " $LIBOBJS " in 17632 *" memmem.$ac_objext "* ) ;; 17633 *) LIBOBJS="$LIBOBJS memmem.$ac_objext" 17634 ;; 17635esac 17636 17637fi 17638 17639 17640 17641ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default" 17642if test "x$ac_cv_have_decl_srand48" = xyes; then : 17643 ac_have_decl=1 17644else 17645 ac_have_decl=0 17646fi 17647 17648cat >>confdefs.h <<_ACEOF 17649#define HAVE_DECL_SRAND48 $ac_have_decl 17650_ACEOF 17651 17652ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48" 17653if test "x$ac_cv_func_srand48" = xyes; then : 17654 $as_echo "#define HAVE_SRAND48 1" >>confdefs.h 17655 17656else 17657 case " $LIBOBJS " in 17658 *" srand48.$ac_objext "* ) ;; 17659 *) LIBOBJS="$LIBOBJS srand48.$ac_objext" 17660 ;; 17661esac 17662 17663fi 17664 17665 17666 17667ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default" 17668if test "x$ac_cv_have_decl_drand48" = xyes; then : 17669 ac_have_decl=1 17670else 17671 ac_have_decl=0 17672fi 17673 17674cat >>confdefs.h <<_ACEOF 17675#define HAVE_DECL_DRAND48 $ac_have_decl 17676_ACEOF 17677 17678ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48" 17679if test "x$ac_cv_func_drand48" = xyes; then : 17680 $as_echo "#define HAVE_DRAND48 1" >>confdefs.h 17681 17682else 17683 case " $LIBOBJS " in 17684 *" drand48.$ac_objext "* ) ;; 17685 *) LIBOBJS="$LIBOBJS drand48.$ac_objext" 17686 ;; 17687esac 17688 17689fi 17690 17691 17692 17693ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" 17694if test "x$ac_cv_have_decl_strerror" = xyes; then : 17695 ac_have_decl=1 17696else 17697 ac_have_decl=0 17698fi 17699 17700cat >>confdefs.h <<_ACEOF 17701#define HAVE_DECL_STRERROR $ac_have_decl 17702_ACEOF 17703 17704ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 17705if test "x$ac_cv_func_strerror" = xyes; then : 17706 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 17707 17708else 17709 case " $LIBOBJS " in 17710 *" strerror.$ac_objext "* ) ;; 17711 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 17712 ;; 17713esac 17714 17715fi 17716 17717 17718 17719ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 17720if test "x$ac_cv_have_decl_strstr" = xyes; then : 17721 ac_have_decl=1 17722else 17723 ac_have_decl=0 17724fi 17725 17726cat >>confdefs.h <<_ACEOF 17727#define HAVE_DECL_STRSTR $ac_have_decl 17728_ACEOF 17729 17730ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 17731if test "x$ac_cv_func_strstr" = xyes; then : 17732 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h 17733 17734else 17735 case " $LIBOBJS " in 17736 *" strstr.$ac_objext "* ) ;; 17737 *) LIBOBJS="$LIBOBJS strstr.$ac_objext" 17738 ;; 17739esac 17740 17741fi 17742 17743 17744 17745ac_fn_c_check_decl "$LINENO" "strcasestr" "ac_cv_have_decl_strcasestr" "$ac_includes_default" 17746if test "x$ac_cv_have_decl_strcasestr" = xyes; then : 17747 ac_have_decl=1 17748else 17749 ac_have_decl=0 17750fi 17751 17752cat >>confdefs.h <<_ACEOF 17753#define HAVE_DECL_STRCASESTR $ac_have_decl 17754_ACEOF 17755 17756ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 17757if test "x$ac_cv_func_strcasestr" = xyes; then : 17758 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 17759 17760else 17761 case " $LIBOBJS " in 17762 *" strcasestr.$ac_objext "* ) ;; 17763 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 17764 ;; 17765esac 17766 17767fi 17768 17769 17770 17771ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default" 17772if test "x$ac_cv_have_decl_strcasecmp" = xyes; then : 17773 ac_have_decl=1 17774else 17775 ac_have_decl=0 17776fi 17777 17778cat >>confdefs.h <<_ACEOF 17779#define HAVE_DECL_STRCASECMP $ac_have_decl 17780_ACEOF 17781 17782ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17783if test "x$ac_cv_func_strcasecmp" = xyes; then : 17784 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17785 17786else 17787 case " $LIBOBJS " in 17788 *" strcasecmp.$ac_objext "* ) ;; 17789 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17790 ;; 17791esac 17792 17793fi 17794 17795 17796 17797ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" 17798if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : 17799 ac_have_decl=1 17800else 17801 ac_have_decl=0 17802fi 17803 17804cat >>confdefs.h <<_ACEOF 17805#define HAVE_DECL_STRNCASECMP $ac_have_decl 17806_ACEOF 17807 17808ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 17809if test "x$ac_cv_func_strncasecmp" = xyes; then : 17810 $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h 17811 17812else 17813 case " $LIBOBJS " in 17814 *" strncasecmp.$ac_objext "* ) ;; 17815 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 17816 ;; 17817esac 17818 17819fi 17820 17821 17822 17823ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default" 17824if test "x$ac_cv_have_decl_strsep" = xyes; then : 17825 ac_have_decl=1 17826else 17827 ac_have_decl=0 17828fi 17829 17830cat >>confdefs.h <<_ACEOF 17831#define HAVE_DECL_STRSEP $ac_have_decl 17832_ACEOF 17833 17834ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 17835if test "x$ac_cv_func_strsep" = xyes; then : 17836 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 17837 17838else 17839 case " $LIBOBJS " in 17840 *" strsep.$ac_objext "* ) ;; 17841 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 17842 ;; 17843esac 17844 17845fi 17846 17847 17848 17849ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" 17850if test "x$ac_cv_have_decl_strsignal" = xyes; then : 17851 ac_have_decl=1 17852else 17853 ac_have_decl=0 17854fi 17855 17856cat >>confdefs.h <<_ACEOF 17857#define HAVE_DECL_STRSIGNAL $ac_have_decl 17858_ACEOF 17859 17860ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" 17861if test "x$ac_cv_func_strsignal" = xyes; then : 17862 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h 17863 17864else 17865 case " $LIBOBJS " in 17866 *" strsignal.$ac_objext "* ) ;; 17867 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext" 17868 ;; 17869esac 17870 17871fi 17872 17873 17874 17875ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include <time.h> 17876" 17877if test "x$ac_cv_have_decl_gmtime_r" = xyes; then : 17878 ac_have_decl=1 17879else 17880 ac_have_decl=0 17881fi 17882 17883cat >>confdefs.h <<_ACEOF 17884#define HAVE_DECL_GMTIME_R $ac_have_decl 17885_ACEOF 17886 17887ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 17888if test "x$ac_cv_func_gmtime_r" = xyes; then : 17889 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 17890 17891else 17892 case " $LIBOBJS " in 17893 *" gmtime_r.$ac_objext "* ) ;; 17894 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 17895 ;; 17896esac 17897 17898fi 17899 17900 17901 17902ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "#define _GNU_SOURCE 1 17903$ac_includes_default 17904" 17905if test "x$ac_cv_have_decl_getline" = xyes; then : 17906 ac_have_decl=1 17907else 17908 ac_have_decl=0 17909fi 17910 17911cat >>confdefs.h <<_ACEOF 17912#define HAVE_DECL_GETLINE $ac_have_decl 17913_ACEOF 17914 17915ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 17916if test "x$ac_cv_func_getline" = xyes; then : 17917 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 17918 17919else 17920 case " $LIBOBJS " in 17921 *" getline.$ac_objext "* ) ;; 17922 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 17923 ;; 17924esac 17925 17926fi 17927 17928 17929 17930ac_fn_c_check_decl "$LINENO" "strchrnul" "ac_cv_have_decl_strchrnul" "#define _GNU_SOURCE 1 17931$ac_includes_default 17932" 17933if test "x$ac_cv_have_decl_strchrnul" = xyes; then : 17934 ac_have_decl=1 17935else 17936 ac_have_decl=0 17937fi 17938 17939cat >>confdefs.h <<_ACEOF 17940#define HAVE_DECL_STRCHRNUL $ac_have_decl 17941_ACEOF 17942 17943ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" 17944if test "x$ac_cv_func_strchrnul" = xyes; then : 17945 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h 17946 17947else 17948 case " $LIBOBJS " in 17949 *" strchrnul.$ac_objext "* ) ;; 17950 *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext" 17951 ;; 17952esac 17953 17954fi 17955 17956 17957 17958ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h> 17959" 17960if test "x$ac_cv_have_decl_localtime_r" = xyes; then : 17961 ac_have_decl=1 17962else 17963 ac_have_decl=0 17964fi 17965 17966cat >>confdefs.h <<_ACEOF 17967#define HAVE_DECL_LOCALTIME_R $ac_have_decl 17968_ACEOF 17969 17970ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 17971if test "x$ac_cv_func_localtime_r" = xyes; then : 17972 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 17973 17974else 17975 case " $LIBOBJS " in 17976 *" localtime_r.$ac_objext "* ) ;; 17977 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 17978 ;; 17979esac 17980 17981fi 17982 17983 17984 17985ac_fn_c_check_decl "$LINENO" "fgetgrent" "ac_cv_have_decl_fgetgrent" "#include <grp.h> 17986" 17987if test "x$ac_cv_have_decl_fgetgrent" = xyes; then : 17988 ac_have_decl=1 17989else 17990 ac_have_decl=0 17991fi 17992 17993cat >>confdefs.h <<_ACEOF 17994#define HAVE_DECL_FGETGRENT $ac_have_decl 17995_ACEOF 17996 17997 17998ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 17999" 18000if test "x$ac_cv_have_decl_isfinite" = xyes; then : 18001 ac_have_decl=1 18002else 18003 ac_have_decl=0 18004fi 18005 18006cat >>confdefs.h <<_ACEOF 18007#define HAVE_DECL_ISFINITE $ac_have_decl 18008_ACEOF 18009 18010 18011for ac_func in getpwent setpwent endpwent 18012do : 18013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18014ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18015if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18016 cat >>confdefs.h <<_ACEOF 18017#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18018_ACEOF 18019 18020fi 18021done 18022 18023 18024for ac_func in fgetspent lckpwdf ulckpwdf 18025do : 18026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18027ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18028if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18029 cat >>confdefs.h <<_ACEOF 18030#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18031_ACEOF 18032 18033fi 18034done 18035 18036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetspent in -lsec" >&5 18037$as_echo_n "checking for fgetspent in -lsec... " >&6; } 18038if ${ac_cv_lib_sec_fgetspent+:} false; then : 18039 $as_echo_n "(cached) " >&6 18040else 18041 ac_check_lib_save_LIBS=$LIBS 18042LIBS="-lsec $LIBS" 18043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18044/* end confdefs.h. */ 18045 18046/* Override any GCC internal prototype to avoid an error. 18047 Use char because int might match the return type of a GCC 18048 builtin and then its argument prototype would still apply. */ 18049#ifdef __cplusplus 18050extern "C" 18051#endif 18052char fgetspent (); 18053int 18054main () 18055{ 18056return fgetspent (); 18057 ; 18058 return 0; 18059} 18060_ACEOF 18061if ac_fn_c_try_link "$LINENO"; then : 18062 ac_cv_lib_sec_fgetspent=yes 18063else 18064 ac_cv_lib_sec_fgetspent=no 18065fi 18066rm -f core conftest.err conftest.$ac_objext \ 18067 conftest$ac_exeext conftest.$ac_ext 18068LIBS=$ac_check_lib_save_LIBS 18069fi 18070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_fgetspent" >&5 18071$as_echo "$ac_cv_lib_sec_fgetspent" >&6; } 18072if test "x$ac_cv_lib_sec_fgetspent" = xyes; then : 18073 18074 18075$as_echo "#define HAVE_LIBSEC 1" >>confdefs.h 18076 18077 18078$as_echo "#define HAVE_FGETSPENT 1" >>confdefs.h 18079 18080 LIBS="-lsec $LIBS" 18081 18082fi 18083 18084 18085ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "$ac_includes_default" 18086if test "x$ac_cv_have_decl_getloadavg" = xyes; then : 18087 ac_have_decl=1 18088else 18089 ac_have_decl=0 18090fi 18091 18092cat >>confdefs.h <<_ACEOF 18093#define HAVE_DECL_GETLOADAVG $ac_have_decl 18094_ACEOF 18095 18096ac_have_func=no # yes means we've found a way to get the load average. 18097 18098# Make sure getloadavg.c is where it belongs, at configure-time. 18099test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18100 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18101 18102ac_save_LIBS=$LIBS 18103 18104# Check for getloadavg, but be sure not to touch the cache variable. 18105(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18106if test "x$ac_cv_func_getloadavg" = xyes; then : 18107 exit 0 18108else 18109 exit 1 18110fi 18111) && ac_have_func=yes 18112 18113# On HPUX9, an unprivileged user can get load averages through this function. 18114for ac_func in pstat_getdynamic 18115do : 18116 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18117if test "x$ac_cv_func_pstat_getdynamic" = xyes; then : 18118 cat >>confdefs.h <<_ACEOF 18119#define HAVE_PSTAT_GETDYNAMIC 1 18120_ACEOF 18121 18122fi 18123done 18124 18125 18126# Solaris has libkstat which does not require root. 18127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18128$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18129if ${ac_cv_lib_kstat_kstat_open+:} false; then : 18130 $as_echo_n "(cached) " >&6 18131else 18132 ac_check_lib_save_LIBS=$LIBS 18133LIBS="-lkstat $LIBS" 18134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18135/* end confdefs.h. */ 18136 18137/* Override any GCC internal prototype to avoid an error. 18138 Use char because int might match the return type of a GCC 18139 builtin and then its argument prototype would still apply. */ 18140#ifdef __cplusplus 18141extern "C" 18142#endif 18143char kstat_open (); 18144int 18145main () 18146{ 18147return kstat_open (); 18148 ; 18149 return 0; 18150} 18151_ACEOF 18152if ac_fn_c_try_link "$LINENO"; then : 18153 ac_cv_lib_kstat_kstat_open=yes 18154else 18155 ac_cv_lib_kstat_kstat_open=no 18156fi 18157rm -f core conftest.err conftest.$ac_objext \ 18158 conftest$ac_exeext conftest.$ac_ext 18159LIBS=$ac_check_lib_save_LIBS 18160fi 18161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18162$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18163if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then : 18164 cat >>confdefs.h <<_ACEOF 18165#define HAVE_LIBKSTAT 1 18166_ACEOF 18167 18168 LIBS="-lkstat $LIBS" 18169 18170fi 18171 18172test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes 18173 18174# Some systems with -lutil have (and need) -lkvm as well, some do not. 18175# On Solaris, -lkvm requires nlist from -lelf, so check that first 18176# to get the right answer into the cache. 18177# For kstat on solaris, we need libelf to force the definition of SVR4 below. 18178if test $ac_have_func = no; then 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18180$as_echo_n "checking for elf_begin in -lelf... " >&6; } 18181if ${ac_cv_lib_elf_elf_begin+:} false; then : 18182 $as_echo_n "(cached) " >&6 18183else 18184 ac_check_lib_save_LIBS=$LIBS 18185LIBS="-lelf $LIBS" 18186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18187/* end confdefs.h. */ 18188 18189/* Override any GCC internal prototype to avoid an error. 18190 Use char because int might match the return type of a GCC 18191 builtin and then its argument prototype would still apply. */ 18192#ifdef __cplusplus 18193extern "C" 18194#endif 18195char elf_begin (); 18196int 18197main () 18198{ 18199return elf_begin (); 18200 ; 18201 return 0; 18202} 18203_ACEOF 18204if ac_fn_c_try_link "$LINENO"; then : 18205 ac_cv_lib_elf_elf_begin=yes 18206else 18207 ac_cv_lib_elf_elf_begin=no 18208fi 18209rm -f core conftest.err conftest.$ac_objext \ 18210 conftest$ac_exeext conftest.$ac_ext 18211LIBS=$ac_check_lib_save_LIBS 18212fi 18213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18214$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18215if test "x$ac_cv_lib_elf_elf_begin" = xyes; then : 18216 LIBS="-lelf $LIBS" 18217fi 18218 18219fi 18220if test $ac_have_func = no; then 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18222$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18223if ${ac_cv_lib_kvm_kvm_open+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225else 18226 ac_check_lib_save_LIBS=$LIBS 18227LIBS="-lkvm $LIBS" 18228cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18229/* end confdefs.h. */ 18230 18231/* Override any GCC internal prototype to avoid an error. 18232 Use char because int might match the return type of a GCC 18233 builtin and then its argument prototype would still apply. */ 18234#ifdef __cplusplus 18235extern "C" 18236#endif 18237char kvm_open (); 18238int 18239main () 18240{ 18241return kvm_open (); 18242 ; 18243 return 0; 18244} 18245_ACEOF 18246if ac_fn_c_try_link "$LINENO"; then : 18247 ac_cv_lib_kvm_kvm_open=yes 18248else 18249 ac_cv_lib_kvm_kvm_open=no 18250fi 18251rm -f core conftest.err conftest.$ac_objext \ 18252 conftest$ac_exeext conftest.$ac_ext 18253LIBS=$ac_check_lib_save_LIBS 18254fi 18255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18256$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18257if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then : 18258 LIBS="-lkvm $LIBS" 18259fi 18260 18261 # Check for the 4.4BSD definition of getloadavg. 18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18263$as_echo_n "checking for getloadavg in -lutil... " >&6; } 18264if ${ac_cv_lib_util_getloadavg+:} false; then : 18265 $as_echo_n "(cached) " >&6 18266else 18267 ac_check_lib_save_LIBS=$LIBS 18268LIBS="-lutil $LIBS" 18269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270/* end confdefs.h. */ 18271 18272/* Override any GCC internal prototype to avoid an error. 18273 Use char because int might match the return type of a GCC 18274 builtin and then its argument prototype would still apply. */ 18275#ifdef __cplusplus 18276extern "C" 18277#endif 18278char getloadavg (); 18279int 18280main () 18281{ 18282return getloadavg (); 18283 ; 18284 return 0; 18285} 18286_ACEOF 18287if ac_fn_c_try_link "$LINENO"; then : 18288 ac_cv_lib_util_getloadavg=yes 18289else 18290 ac_cv_lib_util_getloadavg=no 18291fi 18292rm -f core conftest.err conftest.$ac_objext \ 18293 conftest$ac_exeext conftest.$ac_ext 18294LIBS=$ac_check_lib_save_LIBS 18295fi 18296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 18297$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 18298if test "x$ac_cv_lib_util_getloadavg" = xyes; then : 18299 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 18300fi 18301 18302fi 18303 18304if test $ac_have_func = no; then 18305 # There is a commonly available library for RS/6000 AIX. 18306 # Since it is not a standard part of AIX, it might be installed locally. 18307 ac_getloadavg_LIBS=$LIBS 18308 LIBS="-L/usr/local/lib $LIBS" 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 18310$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 18311if ${ac_cv_lib_getloadavg_getloadavg+:} false; then : 18312 $as_echo_n "(cached) " >&6 18313else 18314 ac_check_lib_save_LIBS=$LIBS 18315LIBS="-lgetloadavg $LIBS" 18316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18317/* end confdefs.h. */ 18318 18319/* Override any GCC internal prototype to avoid an error. 18320 Use char because int might match the return type of a GCC 18321 builtin and then its argument prototype would still apply. */ 18322#ifdef __cplusplus 18323extern "C" 18324#endif 18325char getloadavg (); 18326int 18327main () 18328{ 18329return getloadavg (); 18330 ; 18331 return 0; 18332} 18333_ACEOF 18334if ac_fn_c_try_link "$LINENO"; then : 18335 ac_cv_lib_getloadavg_getloadavg=yes 18336else 18337 ac_cv_lib_getloadavg_getloadavg=no 18338fi 18339rm -f core conftest.err conftest.$ac_objext \ 18340 conftest$ac_exeext conftest.$ac_ext 18341LIBS=$ac_check_lib_save_LIBS 18342fi 18343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 18344$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 18345if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then : 18346 LIBS="-lgetloadavg $LIBS" 18347else 18348 LIBS=$ac_getloadavg_LIBS 18349fi 18350 18351fi 18352 18353# Make sure it is really in the library, if we think we found it, 18354# otherwise set up the replacement function. 18355for ac_func in getloadavg 18356do : 18357 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18358if test "x$ac_cv_func_getloadavg" = xyes; then : 18359 cat >>confdefs.h <<_ACEOF 18360#define HAVE_GETLOADAVG 1 18361_ACEOF 18362 18363else 18364 case " $LIBOBJS " in 18365 *" getloadavg.$ac_objext "* ) ;; 18366 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 18367 ;; 18368esac 18369 18370 18371$as_echo "#define C_GETLOADAVG 1" >>confdefs.h 18372 18373# Figure out what our getloadavg.c needs. 18374ac_have_func=no 18375ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 18376if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then : 18377 ac_have_func=yes 18378 18379$as_echo "#define DGUX 1" >>confdefs.h 18380 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 18382$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 18383if ${ac_cv_lib_dgc_dg_sys_info+:} false; then : 18384 $as_echo_n "(cached) " >&6 18385else 18386 ac_check_lib_save_LIBS=$LIBS 18387LIBS="-ldgc $LIBS" 18388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18389/* end confdefs.h. */ 18390 18391/* Override any GCC internal prototype to avoid an error. 18392 Use char because int might match the return type of a GCC 18393 builtin and then its argument prototype would still apply. */ 18394#ifdef __cplusplus 18395extern "C" 18396#endif 18397char dg_sys_info (); 18398int 18399main () 18400{ 18401return dg_sys_info (); 18402 ; 18403 return 0; 18404} 18405_ACEOF 18406if ac_fn_c_try_link "$LINENO"; then : 18407 ac_cv_lib_dgc_dg_sys_info=yes 18408else 18409 ac_cv_lib_dgc_dg_sys_info=no 18410fi 18411rm -f core conftest.err conftest.$ac_objext \ 18412 conftest$ac_exeext conftest.$ac_ext 18413LIBS=$ac_check_lib_save_LIBS 18414fi 18415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 18416$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 18417if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then : 18418 cat >>confdefs.h <<_ACEOF 18419#define HAVE_LIBDGC 1 18420_ACEOF 18421 18422 LIBS="-ldgc $LIBS" 18423 18424fi 18425 18426fi 18427 18428 18429 18430ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 18431if test "x$ac_cv_header_locale_h" = xyes; then : 18432 18433fi 18434 18435 18436for ac_func in setlocale 18437do : 18438 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 18439if test "x$ac_cv_func_setlocale" = xyes; then : 18440 cat >>confdefs.h <<_ACEOF 18441#define HAVE_SETLOCALE 1 18442_ACEOF 18443 18444fi 18445done 18446 18447 18448# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it 18449# uses stabs), but it is still SVR4. We cannot check for <elf.h> because 18450# Irix 4.0.5F has the header but not the library. 18451if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \ 18452 && test "$ac_cv_lib_kvm_kvm_open" = yes; then 18453 ac_have_func=yes 18454 18455$as_echo "#define SVR4 1" >>confdefs.h 18456 18457fi 18458 18459if test $ac_have_func = no; then 18460 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 18461if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then : 18462 ac_have_func=yes 18463 18464$as_echo "#define UMAX 1" >>confdefs.h 18465 18466 18467$as_echo "#define UMAX4_3 1" >>confdefs.h 18468 18469fi 18470 18471 18472fi 18473 18474if test $ac_have_func = no; then 18475 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 18476if test "x$ac_cv_header_sys_cpustats_h" = xyes; then : 18477 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 18478 18479fi 18480 18481 18482fi 18483 18484if test $ac_have_func = no; then 18485 for ac_header in mach/mach.h 18486do : 18487 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 18488if test "x$ac_cv_header_mach_mach_h" = xyes; then : 18489 cat >>confdefs.h <<_ACEOF 18490#define HAVE_MACH_MACH_H 1 18491_ACEOF 18492 18493fi 18494 18495done 18496 18497fi 18498 18499for ac_header in nlist.h 18500do : 18501 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 18502if test "x$ac_cv_header_nlist_h" = xyes; then : 18503 cat >>confdefs.h <<_ACEOF 18504#define HAVE_NLIST_H 1 18505_ACEOF 18506 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 18507" 18508if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then : 18509 18510cat >>confdefs.h <<_ACEOF 18511#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 18512_ACEOF 18513 18514 18515$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 18516 18517fi 18518 18519 18520fi 18521 18522done 18523 18524fi 18525done 18526 18527 18528# Some definitions of getloadavg require that the program be installed setgid. 18529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 18530$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 18531if ${ac_cv_func_getloadavg_setgid+:} false; then : 18532 $as_echo_n "(cached) " >&6 18533else 18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18535/* end confdefs.h. */ 18536#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 18537#ifdef LDAV_PRIVILEGED 18538Yowza Am I SETGID yet 18539#endif 18540_ACEOF 18541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18542 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 18543 ac_cv_func_getloadavg_setgid=yes 18544else 18545 ac_cv_func_getloadavg_setgid=no 18546fi 18547rm -f conftest* 18548 18549fi 18550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 18551$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 18552if test $ac_cv_func_getloadavg_setgid = yes; then 18553 NEED_SETGID=true 18554 18555$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 18556 18557else 18558 NEED_SETGID=false 18559fi 18560 18561if test $ac_cv_func_getloadavg_setgid = yes; then 18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 18563$as_echo_n "checking group of /dev/kmem... " >&6; } 18564if ${ac_cv_group_kmem+:} false; then : 18565 $as_echo_n "(cached) " >&6 18566else 18567 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 18568 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 18569 # If we got an error (system does not support symlinks), try without -L. 18570 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` 18571 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \ 18572 | sed -ne 's/[ ][ ]*/ /g; 18573 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 18574 / /s/.* //;p;'` 18575 18576fi 18577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 18578$as_echo "$ac_cv_group_kmem" >&6; } 18579 KMEM_GROUP=$ac_cv_group_kmem 18580fi 18581if test "x$ac_save_LIBS" = x; then 18582 GETLOADAVG_LIBS=$LIBS 18583else 18584 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"` 18585fi 18586LIBS=$ac_save_LIBS 18587 18588 18589 18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 18591$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 18592if ${ac_cv_c_bigendian+:} false; then : 18593 $as_echo_n "(cached) " >&6 18594else 18595 ac_cv_c_bigendian=unknown 18596 # See if we're dealing with a universal compiler. 18597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18598/* end confdefs.h. */ 18599#ifndef __APPLE_CC__ 18600 not a universal capable compiler 18601 #endif 18602 typedef int dummy; 18603 18604_ACEOF 18605if ac_fn_c_try_compile "$LINENO"; then : 18606 18607 # Check for potential -arch flags. It is not universal unless 18608 # there are at least two -arch flags with different values. 18609 ac_arch= 18610 ac_prev= 18611 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 18612 if test -n "$ac_prev"; then 18613 case $ac_word in 18614 i?86 | x86_64 | ppc | ppc64) 18615 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 18616 ac_arch=$ac_word 18617 else 18618 ac_cv_c_bigendian=universal 18619 break 18620 fi 18621 ;; 18622 esac 18623 ac_prev= 18624 elif test "x$ac_word" = "x-arch"; then 18625 ac_prev=arch 18626 fi 18627 done 18628fi 18629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18630 if test $ac_cv_c_bigendian = unknown; then 18631 # See if sys/param.h defines the BYTE_ORDER macro. 18632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18633/* end confdefs.h. */ 18634#include <sys/types.h> 18635 #include <sys/param.h> 18636 18637int 18638main () 18639{ 18640#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18641 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18642 && LITTLE_ENDIAN) 18643 bogus endian macros 18644 #endif 18645 18646 ; 18647 return 0; 18648} 18649_ACEOF 18650if ac_fn_c_try_compile "$LINENO"; then : 18651 # It does; now see whether it defined to BIG_ENDIAN or not. 18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18653/* end confdefs.h. */ 18654#include <sys/types.h> 18655 #include <sys/param.h> 18656 18657int 18658main () 18659{ 18660#if BYTE_ORDER != BIG_ENDIAN 18661 not big endian 18662 #endif 18663 18664 ; 18665 return 0; 18666} 18667_ACEOF 18668if ac_fn_c_try_compile "$LINENO"; then : 18669 ac_cv_c_bigendian=yes 18670else 18671 ac_cv_c_bigendian=no 18672fi 18673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18674fi 18675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18676 fi 18677 if test $ac_cv_c_bigendian = unknown; then 18678 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18680/* end confdefs.h. */ 18681#include <limits.h> 18682 18683int 18684main () 18685{ 18686#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18687 bogus endian macros 18688 #endif 18689 18690 ; 18691 return 0; 18692} 18693_ACEOF 18694if ac_fn_c_try_compile "$LINENO"; then : 18695 # It does; now see whether it defined to _BIG_ENDIAN or not. 18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18697/* end confdefs.h. */ 18698#include <limits.h> 18699 18700int 18701main () 18702{ 18703#ifndef _BIG_ENDIAN 18704 not big endian 18705 #endif 18706 18707 ; 18708 return 0; 18709} 18710_ACEOF 18711if ac_fn_c_try_compile "$LINENO"; then : 18712 ac_cv_c_bigendian=yes 18713else 18714 ac_cv_c_bigendian=no 18715fi 18716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18717fi 18718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18719 fi 18720 if test $ac_cv_c_bigendian = unknown; then 18721 # Compile a test program. 18722 if test "$cross_compiling" = yes; then : 18723 # Try to guess by grepping values from an object file. 18724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18725/* end confdefs.h. */ 18726short int ascii_mm[] = 18727 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 18728 short int ascii_ii[] = 18729 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 18730 int use_ascii (int i) { 18731 return ascii_mm[i] + ascii_ii[i]; 18732 } 18733 short int ebcdic_ii[] = 18734 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 18735 short int ebcdic_mm[] = 18736 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 18737 int use_ebcdic (int i) { 18738 return ebcdic_mm[i] + ebcdic_ii[i]; 18739 } 18740 extern int foo; 18741 18742int 18743main () 18744{ 18745return use_ascii (foo) == use_ebcdic (foo); 18746 ; 18747 return 0; 18748} 18749_ACEOF 18750if ac_fn_c_try_compile "$LINENO"; then : 18751 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 18752 ac_cv_c_bigendian=yes 18753 fi 18754 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 18755 if test "$ac_cv_c_bigendian" = unknown; then 18756 ac_cv_c_bigendian=no 18757 else 18758 # finding both strings is unlikely to happen, but who knows? 18759 ac_cv_c_bigendian=unknown 18760 fi 18761 fi 18762fi 18763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18764else 18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18766/* end confdefs.h. */ 18767$ac_includes_default 18768int 18769main () 18770{ 18771 18772 /* Are we little or big endian? From Harbison&Steele. */ 18773 union 18774 { 18775 long int l; 18776 char c[sizeof (long int)]; 18777 } u; 18778 u.l = 1; 18779 return u.c[sizeof (long int) - 1] == 1; 18780 18781 ; 18782 return 0; 18783} 18784_ACEOF 18785if ac_fn_c_try_run "$LINENO"; then : 18786 ac_cv_c_bigendian=no 18787else 18788 ac_cv_c_bigendian=yes 18789fi 18790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18791 conftest.$ac_objext conftest.beam conftest.$ac_ext 18792fi 18793 18794 fi 18795fi 18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18797$as_echo "$ac_cv_c_bigendian" >&6; } 18798 case $ac_cv_c_bigendian in #( 18799 yes) 18800 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 18801;; #( 18802 no) 18803 ;; #( 18804 universal) 18805 18806$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18807 18808 ;; #( 18809 *) 18810 as_fn_error $? "unknown endianness 18811 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 18812 esac 18813 18814for ac_header in endian.h 18815do : 18816 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 18817if test "x$ac_cv_header_endian_h" = xyes; then : 18818 cat >>confdefs.h <<_ACEOF 18819#define HAVE_ENDIAN_H 1 18820_ACEOF 18821 18822fi 18823 18824done 18825 18826ac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <endian.h> 18827" 18828if test "x$ac_cv_have_decl_le32toh" = xyes; then : 18829 ac_have_decl=1 18830else 18831 ac_have_decl=0 18832fi 18833 18834cat >>confdefs.h <<_ACEOF 18835#define HAVE_DECL_LE32TOH $ac_have_decl 18836_ACEOF 18837 18838 18839ac_fn_c_check_decl "$LINENO" "closefrom" "ac_cv_have_decl_closefrom" "#include <unistd.h> 18840 #include <stdlib.h> 18841" 18842if test "x$ac_cv_have_decl_closefrom" = xyes; then : 18843 ac_have_decl=1 18844else 18845 ac_have_decl=0 18846fi 18847 18848cat >>confdefs.h <<_ACEOF 18849#define HAVE_DECL_CLOSEFROM $ac_have_decl 18850_ACEOF 18851 18852ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 18853if test "x$ac_cv_func_closefrom" = xyes; then : 18854 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h 18855 18856else 18857 case " $LIBOBJS " in 18858 *" closefrom.$ac_objext "* ) ;; 18859 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 18860 ;; 18861esac 18862 18863fi 18864 18865 18866 18867for ac_header in sys/pstat.h 18868do : 18869 ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" 18870if test "x$ac_cv_header_sys_pstat_h" = xyes; then : 18871 cat >>confdefs.h <<_ACEOF 18872#define HAVE_SYS_PSTAT_H 1 18873_ACEOF 18874 18875fi 18876 18877done 18878 18879for ac_func in pstat_getfile2 18880do : 18881 ac_fn_c_check_func "$LINENO" "pstat_getfile2" "ac_cv_func_pstat_getfile2" 18882if test "x$ac_cv_func_pstat_getfile2" = xyes; then : 18883 cat >>confdefs.h <<_ACEOF 18884#define HAVE_PSTAT_GETFILE2 1 18885_ACEOF 18886 18887fi 18888done 18889 18890 18891 18892 found=0 18893 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18894 18895 path=$PATH 18896 18897else 18898 18899 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18900 18901fi 18902 $as_echo_n "checking for chpasswd... " 18903 for i in $(echo $path | sed -e 's/:/ /g'); do 18904 if test -e $i/chpasswd && ls -ld $i/chpasswd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18905 18906 CHPASSWD=$i/chpasswd 18907 found=1 18908 break 18909 18910fi 18911 done 18912 18913 if test "$found" = "1"; then : 18914 18915 $as_echo "$CHPASSWD" 18916 18917else 18918 18919 $as_echo no 18920 CHPASSWD= 18921 18922fi 18923 18924if test "x$CHPASSWD" != "x"; then : 18925 18926$as_echo "#define HAVE_CHPASSWD 1" >>confdefs.h 18927 18928 18929cat >>confdefs.h <<_ACEOF 18930#define CHPASSWD "$CHPASSWD" 18931_ACEOF 18932 18933 18934fi 18935 18936 18937 found=0 18938 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18939 18940 path=$PATH 18941 18942else 18943 18944 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18945 18946fi 18947 $as_echo_n "checking for pwdadm... " 18948 for i in $(echo $path | sed -e 's/:/ /g'); do 18949 if test -e $i/pwdadm && ls -ld $i/pwdadm | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18950 18951 PWDADM=$i/pwdadm 18952 found=1 18953 break 18954 18955fi 18956 done 18957 18958 if test "$found" = "1"; then : 18959 18960 $as_echo "$PWDADM" 18961 18962else 18963 18964 $as_echo no 18965 PWDADM= 18966 18967fi 18968 18969if test "x$PWDADM" != "x"; then : 18970 18971$as_echo "#define HAVE_PWDADM 1" >>confdefs.h 18972 18973 18974cat >>confdefs.h <<_ACEOF 18975#define PWDADM "$PWDADM" 18976_ACEOF 18977 18978 18979fi 18980 18981 18982 found=0 18983 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18984 18985 path=$PATH 18986 18987else 18988 18989 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18990 18991fi 18992 $as_echo_n "checking for useradd... " 18993 for i in $(echo $path | sed -e 's/:/ /g'); do 18994 if test -e $i/useradd && ls -ld $i/useradd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18995 18996 USERADD=$i/useradd 18997 found=1 18998 break 18999 19000fi 19001 done 19002 19003 if test "$found" = "1"; then : 19004 19005 $as_echo "$USERADD" 19006 19007else 19008 19009 $as_echo no 19010 USERADD= 19011 19012fi 19013 19014if test "x$USERADD" != "x"; then : 19015 19016$as_echo "#define HAVE_USERADD 1" >>confdefs.h 19017 19018 19019cat >>confdefs.h <<_ACEOF 19020#define USERADD "$USERADD" 19021_ACEOF 19022 19023 19024fi 19025 19026 19027 found=0 19028 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 19029 19030 path=$PATH 19031 19032else 19033 19034 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 19035 19036fi 19037 $as_echo_n "checking for usermod... " 19038 for i in $(echo $path | sed -e 's/:/ /g'); do 19039 if test -e $i/usermod && ls -ld $i/usermod | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 19040 19041 USERMOD=$i/usermod 19042 found=1 19043 break 19044 19045fi 19046 done 19047 19048 if test "$found" = "1"; then : 19049 19050 $as_echo "$USERMOD" 19051 19052else 19053 19054 $as_echo no 19055 USERMOD= 19056 19057fi 19058 19059if test "x$USERMOD" != "x"; then : 19060 19061$as_echo "#define HAVE_USERMOD 1" >>confdefs.h 19062 19063 19064cat >>confdefs.h <<_ACEOF 19065#define USERMOD "$USERMOD" 19066_ACEOF 19067 19068 19069fi 19070 19071 19072 found=0 19073 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 19074 19075 path=$PATH 19076 19077else 19078 19079 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 19080 19081fi 19082 $as_echo_n "checking for userdel... " 19083 for i in $(echo $path | sed -e 's/:/ /g'); do 19084 if test -e $i/userdel && ls -ld $i/userdel | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 19085 19086 USERDEL=$i/userdel 19087 found=1 19088 break 19089 19090fi 19091 done 19092 19093 if test "$found" = "1"; then : 19094 19095 $as_echo "$USERDEL" 19096 19097else 19098 19099 $as_echo no 19100 USERDEL= 19101 19102fi 19103 19104if test "x$USERDEL" != "x"; then : 19105 19106$as_echo "#define HAVE_USERDEL 1" >>confdefs.h 19107 19108 19109cat >>confdefs.h <<_ACEOF 19110#define USERDEL "$USERDEL" 19111_ACEOF 19112 19113 19114fi 19115 19116if test "x$USERADD" != x && \ 19117 test "x$USERMOD" != x && test "x$USERDEL" != x; then : 19118 have_userprogs=yes 19119else 19120 have_userprogs=no 19121 19122fi 19123 19124 19125 19126# Check whether --with-pam was given. 19127if test "${with_pam+set}" = set; then : 19128 withval=$with_pam; 19129fi 19130 19131if test x$with_pam != xno; then : 19132 19133 19134 19135 19136 # 19137 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 19138 # 19139 if test "x$with_pam" != xyes && 19140 test "x$with_pam" != xcheck && 19141 test "x$with_pam" != x 19142 then 19143 test -z "$PAM_PATH" && PAM_PATH="$with_pam" 19144 if test "x$with_pam" != x/usr && 19145 test "x$with_pam" != x/ 19146 then 19147 test -z "$PAM_CFLAGS" && PAM_CFLAGS="" 19148 test -z "$PAM_CPPFLAGS" && PAM_CPPFLAGS="-I$with_pam/include" 19149 test -z "$PAM_LDFLAGS" && PAM_LDFLAGS="-L$with_pam/lib" 19150 fi 19151 else 19152 PAM_PATH="default path" 19153 fi 19154 19155 # 19156 # Save old environment 19157 # 19158 save_CFLAGS="$CFLAGS" 19159 save_CPPFLAGS="$CPPFLAGS" 19160 save_LDFLAGS="$LDFLAGS" 19161 save_LIBS="$LIBS" 19162 19163 CFLAGS="$CFLAGS $PAM_CFLAGS" 19164 CPPFLAGS="$CPPFLAGS $PAM_CPPFLAGS" 19165 LDFLAGS="$LDFLAGS $PAM_LDFLAGS" 19166 19167 # 19168 # Run checks passed as argument 19169 # 19170 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 19172$as_echo_n "checking for pam_start in -lpam... " >&6; } 19173if ${ac_cv_lib_pam_pam_start+:} false; then : 19174 $as_echo_n "(cached) " >&6 19175else 19176 ac_check_lib_save_LIBS=$LIBS 19177LIBS="-lpam $LIBS" 19178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19179/* end confdefs.h. */ 19180 19181/* Override any GCC internal prototype to avoid an error. 19182 Use char because int might match the return type of a GCC 19183 builtin and then its argument prototype would still apply. */ 19184#ifdef __cplusplus 19185extern "C" 19186#endif 19187char pam_start (); 19188int 19189main () 19190{ 19191return pam_start (); 19192 ; 19193 return 0; 19194} 19195_ACEOF 19196if ac_fn_c_try_link "$LINENO"; then : 19197 ac_cv_lib_pam_pam_start=yes 19198else 19199 ac_cv_lib_pam_pam_start=no 19200fi 19201rm -f core conftest.err conftest.$ac_objext \ 19202 conftest$ac_exeext conftest.$ac_ext 19203LIBS=$ac_check_lib_save_LIBS 19204fi 19205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 19206$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 19207if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 19208 cat >>confdefs.h <<_ACEOF 19209#define HAVE_LIBPAM 1 19210_ACEOF 19211 19212 LIBS="-lpam $LIBS" 19213 19214fi 19215 19216 for ac_header in security/pam_appl.h 19217do : 19218 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" 19219if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : 19220 cat >>confdefs.h <<_ACEOF 19221#define HAVE_SECURITY_PAM_APPL_H 1 19222_ACEOF 19223 19224fi 19225 19226done 19227 19228 19229 19230 # 19231 # Pick up any libraries added by tests 19232 # 19233 test -z "$PAM_LIBS" && PAM_LIBS="$LIBS" 19234 19235 # 19236 # libtool understands -R$path, but we are not using libtool in configure 19237 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 19238 # 19239 if test "x$with_pam" != xyes && 19240 test "x$with_pam" != xcheck && 19241 test "x$with_pam" != x/usr && 19242 test "x$with_pam" != x/ 19243 then 19244 PAM_LDFLAGS="$PAM_LDFLAGS -R$with_pam/lib" 19245 fi 19246 19247 # 19248 # Restore pristine environment 19249 # 19250 CFLAGS="$save_CFLAGS" 19251 CPPFLAGS="$save_CPPFLAGS" 19252 LDFLAGS="$save_LDFLAGS" 19253 LIBS="$save_LIBS" 19254 19255 19256 19257 19258 19259 19260 19261 case $target_os in #( 19262 *gnu*|*solaris*|*aix*|*hpux*|*hp-ux*) : 19263 19264 if test "x$ac_cv_lib_pam_pam_start" != "xyes"; then : 19265 as_fn_error $? "Cannot find PAM library" "$LINENO" 5 19266 19267fi 19268 if test "x$ac_cv_header_security_pam_appl_h" != "xyes"; then : 19269 as_fn_error $? "Cannot find PAM headers" "$LINENO" 5 19270 19271fi 19272 ;; #( 19273 *) : 19274 ;; 19275esac 19276 if test "x$ac_cv_lib_pam_pam_start" = "xyes" && \ 19277 test "x$ac_cv_header_security_pam_appl_h" = "xyes"; then : 19278 have_pam=yes 19279else 19280 have_pam=no 19281 19282fi 19283 for ac_func in fgetpwent fgetgrent 19284do : 19285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19286ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19287if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19288 cat >>confdefs.h <<_ACEOF 19289#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19290_ACEOF 19291 19292fi 19293done 19294 19295 if test "x$have_pam" = "xyes" && \ 19296 test "x$have_userprogs" = "xyes" && \ 19297 test "x$ac_cv_func_fgetpwent" = "xyes" && \ 19298 test "x$ac_cv_func_fgetgrent" = "xyes"; then : 19299 19300 users_promises_ok=yes 19301 19302else 19303 19304 users_promises_ok=no 19305 19306fi 19307 19308else 19309 19310 users_promises_ok=no 19311 19312fi 19313 if test "x$users_promises_ok" = "xyes"; then 19314 HAVE_USERS_PROMISE_DEPS_TRUE= 19315 HAVE_USERS_PROMISE_DEPS_FALSE='#' 19316else 19317 HAVE_USERS_PROMISE_DEPS_TRUE='#' 19318 HAVE_USERS_PROMISE_DEPS_FALSE= 19319fi 19320 19321 19322ac_fn_c_check_decl "$LINENO" "getnetgrent" "ac_cv_have_decl_getnetgrent" "#include <netdb.h> 19323" 19324if test "x$ac_cv_have_decl_getnetgrent" = xyes; then : 19325 ac_have_decl=1 19326else 19327 ac_have_decl=0 19328fi 19329 19330cat >>confdefs.h <<_ACEOF 19331#define HAVE_DECL_GETNETGRENT $ac_have_decl 19332_ACEOF 19333 19334for ac_func in getnetgrent 19335do : 19336 ac_fn_c_check_func "$LINENO" "getnetgrent" "ac_cv_func_getnetgrent" 19337if test "x$ac_cv_func_getnetgrent" = xyes; then : 19338 cat >>confdefs.h <<_ACEOF 19339#define HAVE_GETNETGRENT 1 19340_ACEOF 19341 19342fi 19343done 19344 19345 19346ac_fn_c_check_decl "$LINENO" "setnetgrent" "ac_cv_have_decl_setnetgrent" "#include <netdb.h> 19347" 19348if test "x$ac_cv_have_decl_setnetgrent" = xyes; then : 19349 ac_have_decl=1 19350else 19351 ac_have_decl=0 19352fi 19353 19354cat >>confdefs.h <<_ACEOF 19355#define HAVE_DECL_SETNETGRENT $ac_have_decl 19356_ACEOF 19357 19358for ac_func in setnetgrent 19359do : 19360 ac_fn_c_check_func "$LINENO" "setnetgrent" "ac_cv_func_setnetgrent" 19361if test "x$ac_cv_func_setnetgrent" = xyes; then : 19362 cat >>confdefs.h <<_ACEOF 19363#define HAVE_SETNETGRENT 1 19364_ACEOF 19365 19366fi 19367done 19368 19369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19370/* end confdefs.h. */ 19371#include <netdb.h> 19372int 19373main () 19374{ 19375extern int setnetgrent(const char *) 19376 ; 19377 return 0; 19378} 19379_ACEOF 19380if ac_fn_c_try_compile "$LINENO"; then : 19381 19382$as_echo "#define SETNETGRENT_RETURNS_INT 1" >>confdefs.h 19383 19384else 19385 19386$as_echo "#define SETNETGRENT_RETURNS_INT 0" >>confdefs.h 19387 19388fi 19389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19390 19391 19392ac_fn_c_check_decl "$LINENO" "endnetgrent" "ac_cv_have_decl_endnetgrent" "#include <netdb.h> 19393" 19394if test "x$ac_cv_have_decl_endnetgrent" = xyes; then : 19395 ac_have_decl=1 19396else 19397 ac_have_decl=0 19398fi 19399 19400cat >>confdefs.h <<_ACEOF 19401#define HAVE_DECL_ENDNETGRENT $ac_have_decl 19402_ACEOF 19403 19404for ac_func in endnetgrent 19405do : 19406 ac_fn_c_check_func "$LINENO" "endnetgrent" "ac_cv_func_endnetgrent" 19407if test "x$ac_cv_func_endnetgrent" = xyes; then : 19408 cat >>confdefs.h <<_ACEOF 19409#define HAVE_ENDNETGRENT 1 19410_ACEOF 19411 19412fi 19413done 19414 19415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416/* end confdefs.h. */ 19417#include <netdb.h> 19418int 19419main () 19420{ 19421extern int endnetgrent(const char *) 19422 ; 19423 return 0; 19424} 19425_ACEOF 19426if ac_fn_c_try_compile "$LINENO"; then : 19427 19428$as_echo "#define ENDNETGRENT_RETURNS_INT 1" >>confdefs.h 19429 19430else 19431 19432$as_echo "#define ENDNETGRENT_RETURNS_INT 0" >>confdefs.h 19433 19434fi 19435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19436 19437 19438for ac_func in sendto 19439do : 19440 ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto" 19441if test "x$ac_cv_func_sendto" = xyes; then : 19442 cat >>confdefs.h <<_ACEOF 19443#define HAVE_SENDTO 1 19444_ACEOF 19445 19446fi 19447done 19448 19449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19450/* end confdefs.h. */ 19451#include <sys/types.h> 19452 #include <sys/socket.h> 19453int 19454main () 19455{ 19456extern ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) 19457 ; 19458 return 0; 19459} 19460_ACEOF 19461if ac_fn_c_try_compile "$LINENO"; then : 19462 19463$as_echo "#define SENDTO_RETURNS_SSIZE_T 1" >>confdefs.h 19464 19465else 19466 19467$as_echo "#define SENDTO_RETURNS_SSIZE_T 0" >>confdefs.h 19468 19469fi 19470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19471 19472 19473 ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime" 19474if test "x$ac_cv_func_ctime" = xyes; then : 19475 19476else 19477 as_fn_error $? "Unable to find function ctime" "$LINENO" 5 19478fi 19479 19480 19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime is properly declared" >&5 19482$as_echo_n "checking whether ctime is properly declared... " >&6; } 19483if ${hw_cv_func_ctime_proper+:} false; then : 19484 $as_echo_n "(cached) " >&6 19485else 19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19487/* end confdefs.h. */ 19488 19489int 19490main () 19491{ 19492#error ctime(3) may produce different results on different OSes. Let's have our POSIX-compliant implementation all the time 19493 ; 19494 return 0; 19495} 19496_ACEOF 19497if ac_fn_c_try_compile "$LINENO"; then : 19498 hw_cv_func_ctime_proper=yes 19499else 19500 hw_cv_func_ctime_proper=no 19501fi 19502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19503fi 19504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_ctime_proper" >&5 19505$as_echo "$hw_cv_func_ctime_proper" >&6; } 19506 19507 19508 19509 if test "$hw_cv_func_ctime_proper" = yes; then : 19510 19511$as_echo "#define HAVE_ctime_PROPER 1" >>confdefs.h 19512 19513else 19514 post_macros="$post_macros 19515#define ctime rpl_ctime" 19516fi 19517 19518 19519 if test "$hw_cv_func_ctime_proper" = "no"; then : 19520 case " $LIBOBJS " in 19521 *" rpl_ctime.$ac_objext "* ) ;; 19522 *) LIBOBJS="$LIBOBJS rpl_ctime.$ac_objext" 19523 ;; 19524esac 19525 19526 19527fi 19528 19529 19530 19531 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" 19532if test "x$ac_cv_func_mkdir" = xyes; then : 19533 19534else 19535 as_fn_error $? "Unable to find function mkdir" "$LINENO" 5 19536fi 19537 19538 19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir is properly declared" >&5 19540$as_echo_n "checking whether mkdir is properly declared... " >&6; } 19541if ${hw_cv_func_mkdir_proper+:} false; then : 19542 $as_echo_n "(cached) " >&6 19543else 19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19545/* end confdefs.h. */ 19546#include <sys/stat.h> 19547 #include <sys/types.h> 19548int 19549main () 19550{ 19551int mkdir(const char *pathname, mode_t mode); 19552 ; 19553 return 0; 19554} 19555_ACEOF 19556if ac_fn_c_try_compile "$LINENO"; then : 19557 hw_cv_func_mkdir_proper=yes 19558else 19559 hw_cv_func_mkdir_proper=no 19560fi 19561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19562fi 19563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_mkdir_proper" >&5 19564$as_echo "$hw_cv_func_mkdir_proper" >&6; } 19565 19566 19567 19568 if test "$hw_cv_func_mkdir_proper" = yes; then : 19569 19570$as_echo "#define HAVE_mkdir_PROPER 1" >>confdefs.h 19571 19572else 19573 post_macros="$post_macros 19574#define mkdir rpl_mkdir" 19575fi 19576 19577 19578 19579 19580 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat" 19581if test "x$ac_cv_func_stat" = xyes; then : 19582 19583else 19584 as_fn_error $? "Unable to find function stat" "$LINENO" 5 19585fi 19586 19587 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat is properly declared" >&5 19589$as_echo_n "checking whether stat is properly declared... " >&6; } 19590if ${hw_cv_func_stat_proper+:} false; then : 19591 $as_echo_n "(cached) " >&6 19592else 19593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19594/* end confdefs.h. */ 19595#include <sys/types.h> 19596 #include <sys/stat.h> 19597int 19598main () 19599{ 19600#if defined(__MINGW32__) 19601 #error stat in Windows CRT ill-behaves 19602 #endif 19603 ; 19604 return 0; 19605} 19606_ACEOF 19607if ac_fn_c_try_compile "$LINENO"; then : 19608 hw_cv_func_stat_proper=yes 19609else 19610 hw_cv_func_stat_proper=no 19611fi 19612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19613fi 19614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_stat_proper" >&5 19615$as_echo "$hw_cv_func_stat_proper" >&6; } 19616 19617 19618 19619 if test "$hw_cv_func_stat_proper" = yes; then : 19620 19621$as_echo "#define HAVE_stat_PROPER 1" >>confdefs.h 19622 19623else 19624 post_macros="$post_macros 19625" 19626fi 19627 19628 19629 19630 19631 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename" 19632if test "x$ac_cv_func_rename" = xyes; then : 19633 19634else 19635 as_fn_error $? "Unable to find function rename" "$LINENO" 5 19636fi 19637 19638 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename is properly declared" >&5 19640$as_echo_n "checking whether rename is properly declared... " >&6; } 19641if ${hw_cv_func_rename_proper+:} false; then : 19642 $as_echo_n "(cached) " >&6 19643else 19644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19645/* end confdefs.h. */ 19646 19647int 19648main () 19649{ 19650#if defined(__MINGW32__) 19651 #error rename in Windows CRT ill-behaves 19652 #endif 19653 ; 19654 return 0; 19655} 19656_ACEOF 19657if ac_fn_c_try_compile "$LINENO"; then : 19658 hw_cv_func_rename_proper=yes 19659else 19660 hw_cv_func_rename_proper=no 19661fi 19662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19663fi 19664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_rename_proper" >&5 19665$as_echo "$hw_cv_func_rename_proper" >&6; } 19666 19667 19668 19669 if test "$hw_cv_func_rename_proper" = yes; then : 19670 19671$as_echo "#define HAVE_rename_PROPER 1" >>confdefs.h 19672 19673else 19674 post_macros="$post_macros 19675#define rename rpl_rename" 19676fi 19677 19678 19679ac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "$ac_includes_default" 19680if test "x$ac_cv_have_decl_mkdtemp" = xyes; then : 19681 ac_have_decl=1 19682else 19683 ac_have_decl=0 19684fi 19685 19686cat >>confdefs.h <<_ACEOF 19687#define HAVE_DECL_MKDTEMP $ac_have_decl 19688_ACEOF 19689 19690ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" 19691if test "x$ac_cv_func_mkdtemp" = xyes; then : 19692 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h 19693 19694else 19695 case " $LIBOBJS " in 19696 *" mkdtemp.$ac_objext "* ) ;; 19697 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" 19698 ;; 19699esac 19700 19701fi 19702 19703 19704 19705ac_fn_c_check_decl "$LINENO" "strrstr" "ac_cv_have_decl_strrstr" "$ac_includes_default" 19706if test "x$ac_cv_have_decl_strrstr" = xyes; then : 19707 ac_have_decl=1 19708else 19709 ac_have_decl=0 19710fi 19711 19712cat >>confdefs.h <<_ACEOF 19713#define HAVE_DECL_STRRSTR $ac_have_decl 19714_ACEOF 19715 19716ac_fn_c_check_func "$LINENO" "strrstr" "ac_cv_func_strrstr" 19717if test "x$ac_cv_func_strrstr" = xyes; then : 19718 $as_echo "#define HAVE_STRRSTR 1" >>confdefs.h 19719 19720else 19721 case " $LIBOBJS " in 19722 *" strrstr.$ac_objext "* ) ;; 19723 *) LIBOBJS="$LIBOBJS strrstr.$ac_objext" 19724 ;; 19725esac 19726 19727fi 19728 19729 19730 19731ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default" 19732if test "x$ac_cv_have_decl_stpncpy" = xyes; then : 19733 ac_have_decl=1 19734else 19735 ac_have_decl=0 19736fi 19737 19738cat >>confdefs.h <<_ACEOF 19739#define HAVE_DECL_STPNCPY $ac_have_decl 19740_ACEOF 19741 19742ac_fn_c_check_func "$LINENO" "stpncpy" "ac_cv_func_stpncpy" 19743if test "x$ac_cv_func_stpncpy" = xyes; then : 19744 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h 19745 19746else 19747 case " $LIBOBJS " in 19748 *" stpncpy.$ac_objext "* ) ;; 19749 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" 19750 ;; 19751esac 19752 19753fi 19754 19755 19756 19757for ac_func in seteuid setegid setreuid setregid 19758do : 19759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19760ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19761if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19762 cat >>confdefs.h <<_ACEOF 19763#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19764_ACEOF 19765 19766fi 19767done 19768 19769for ac_func in uname gethostname chflags 19770do : 19771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19772ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19773if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19774 cat >>confdefs.h <<_ACEOF 19775#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19776_ACEOF 19777 19778fi 19779done 19780 19781for ac_func in mkfifo statfs statvfs door 19782do : 19783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19784ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19785if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19786 cat >>confdefs.h <<_ACEOF 19787#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19788_ACEOF 19789 19790fi 19791done 19792 19793for ac_func in sysinfo setsid sysconf 19794do : 19795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19796ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19797if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19798 cat >>confdefs.h <<_ACEOF 19799#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19800_ACEOF 19801 19802fi 19803done 19804 19805for ac_func in getzoneid getzonenamebyid 19806do : 19807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19808ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19809if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19810 cat >>confdefs.h <<_ACEOF 19811#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19812_ACEOF 19813 19814fi 19815done 19816 19817for ac_func in fpathconf 19818do : 19819 ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf" 19820if test "x$ac_cv_func_fpathconf" = xyes; then : 19821 cat >>confdefs.h <<_ACEOF 19822#define HAVE_FPATHCONF 1 19823_ACEOF 19824 19825fi 19826done 19827 19828 19829ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" 19830if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : 19831 19832cat >>confdefs.h <<_ACEOF 19833#define HAVE_STRUCT_STAT_ST_MTIM 1 19834_ACEOF 19835 19836 19837fi 19838ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default" 19839if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then : 19840 19841cat >>confdefs.h <<_ACEOF 19842#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1 19843_ACEOF 19844 19845 19846fi 19847 19848ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 19849if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 19850 19851cat >>confdefs.h <<_ACEOF 19852#define HAVE_STRUCT_STAT_ST_BLOCKS 1 19853_ACEOF 19854 19855 19856fi 19857 19858 19859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRIuMAX/PRIdMAX macros" >&5 19860$as_echo_n "checking for PRIuMAX/PRIdMAX macros... " >&6; } 19861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19862/* end confdefs.h. */ 19863$ac_includes_default 19864 #include <inttypes.h> 19865 #if defined(PRIuMAX) && defined(PRIdMAX) 19866 primacros_found 19867 #endif 19868 19869_ACEOF 19870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19871 $EGREP "primacros_found" >/dev/null 2>&1; then : 19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19873$as_echo "yes" >&6; } 19874else 19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19876$as_echo "no" >&6; } 19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find out how to scan intmax_t/uintmax_t types" >&5 19878$as_echo "Unable to find out how to scan intmax_t/uintmax_t types" >&6; } 19879fi 19880rm -f conftest* 19881 19882 19883 19884 for ac_header in stdarg.h 19885do : 19886 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 19887if test "x$ac_cv_header_stdarg_h" = xyes; then : 19888 cat >>confdefs.h <<_ACEOF 19889#define HAVE_STDARG_H 1 19890_ACEOF 19891 19892fi 19893 19894done 19895 19896 19897 19898 19899 for ac_header in inttypes.h locale.h stddef.h stdint.h 19900do : 19901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19902ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19904 cat >>confdefs.h <<_ACEOF 19905#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19906_ACEOF 19907 19908fi 19909 19910done 19911 19912 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 19913" 19914if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 19915 19916cat >>confdefs.h <<_ACEOF 19917#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 19918_ACEOF 19919 19920 19921fi 19922ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 19923" 19924if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 19925 19926cat >>confdefs.h <<_ACEOF 19927#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 19928_ACEOF 19929 19930 19931fi 19932 19933 19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 19935$as_echo_n "checking for long double... " >&6; } 19936if ${ac_cv_type_long_double+:} false; then : 19937 $as_echo_n "(cached) " >&6 19938else 19939 if test "$GCC" = yes; then 19940 ac_cv_type_long_double=yes 19941 else 19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19943/* end confdefs.h. */ 19944/* The Stardent Vistra knows sizeof (long double), but does 19945 not support it. */ 19946 long double foo = 0.0L; 19947int 19948main () 19949{ 19950static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 19951 sizeof (double) <= sizeof (long double))]; 19952test_array [0] = 0; 19953return test_array [0]; 19954 19955 ; 19956 return 0; 19957} 19958_ACEOF 19959if ac_fn_c_try_compile "$LINENO"; then : 19960 ac_cv_type_long_double=yes 19961else 19962 ac_cv_type_long_double=no 19963fi 19964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19965 fi 19966fi 19967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 19968$as_echo "$ac_cv_type_long_double" >&6; } 19969 if test $ac_cv_type_long_double = yes; then 19970 19971$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 19972 19973 fi 19974 19975 19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 19977$as_echo_n "checking for long long int... " >&6; } 19978if ${ac_cv_type_long_long_int+:} false; then : 19979 $as_echo_n "(cached) " >&6 19980else 19981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19982/* end confdefs.h. */ 19983 19984 /* For now, do not test the preprocessor; as of 2007 there are too many 19985 implementations with broken preprocessors. Perhaps this can 19986 be revisited in 2012. In the meantime, code should not expect 19987 #if to work with literals wider than 32 bits. */ 19988 /* Test literals. */ 19989 long long int ll = 9223372036854775807ll; 19990 long long int nll = -9223372036854775807LL; 19991 unsigned long long int ull = 18446744073709551615ULL; 19992 /* Test constant expressions. */ 19993 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 19994 ? 1 : -1)]; 19995 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 19996 ? 1 : -1)]; 19997 int i = 63; 19998int 19999main () 20000{ 20001/* Test availability of runtime routines for shift and division. */ 20002 long long int llmax = 9223372036854775807ll; 20003 unsigned long long int ullmax = 18446744073709551615ull; 20004 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20005 | (llmax / ll) | (llmax % ll) 20006 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20007 | (ullmax / ull) | (ullmax % ull)); 20008 ; 20009 return 0; 20010} 20011 20012_ACEOF 20013if ac_fn_c_try_link "$LINENO"; then : 20014 if test "$cross_compiling" = yes; then : 20015 ac_cv_type_long_long_int=yes 20016else 20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20018/* end confdefs.h. */ 20019#include <limits.h> 20020 #ifndef LLONG_MAX 20021 # define HALF \ 20022 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 20023 # define LLONG_MAX (HALF - 1 + HALF) 20024 #endif 20025int 20026main () 20027{ 20028long long int n = 1; 20029 int i; 20030 for (i = 0; ; i++) 20031 { 20032 long long int m = n << i; 20033 if (m >> i != n) 20034 return 1; 20035 if (LLONG_MAX / 2 < m) 20036 break; 20037 } 20038 return 0; 20039 ; 20040 return 0; 20041} 20042_ACEOF 20043if ac_fn_c_try_run "$LINENO"; then : 20044 ac_cv_type_long_long_int=yes 20045else 20046 ac_cv_type_long_long_int=no 20047fi 20048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20049 conftest.$ac_objext conftest.beam conftest.$ac_ext 20050fi 20051 20052else 20053 ac_cv_type_long_long_int=no 20054fi 20055rm -f core conftest.err conftest.$ac_objext \ 20056 conftest$ac_exeext conftest.$ac_ext 20057fi 20058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 20059$as_echo "$ac_cv_type_long_long_int" >&6; } 20060 if test $ac_cv_type_long_long_int = yes; then 20061 20062$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 20063 20064 fi 20065 20066 20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 20068$as_echo_n "checking for unsigned long long int... " >&6; } 20069if ${ac_cv_type_unsigned_long_long_int+:} false; then : 20070 $as_echo_n "(cached) " >&6 20071else 20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20073/* end confdefs.h. */ 20074 20075 /* For now, do not test the preprocessor; as of 2007 there are too many 20076 implementations with broken preprocessors. Perhaps this can 20077 be revisited in 2012. In the meantime, code should not expect 20078 #if to work with literals wider than 32 bits. */ 20079 /* Test literals. */ 20080 long long int ll = 9223372036854775807ll; 20081 long long int nll = -9223372036854775807LL; 20082 unsigned long long int ull = 18446744073709551615ULL; 20083 /* Test constant expressions. */ 20084 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 20085 ? 1 : -1)]; 20086 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 20087 ? 1 : -1)]; 20088 int i = 63; 20089int 20090main () 20091{ 20092/* Test availability of runtime routines for shift and division. */ 20093 long long int llmax = 9223372036854775807ll; 20094 unsigned long long int ullmax = 18446744073709551615ull; 20095 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20096 | (llmax / ll) | (llmax % ll) 20097 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20098 | (ullmax / ull) | (ullmax % ull)); 20099 ; 20100 return 0; 20101} 20102 20103_ACEOF 20104if ac_fn_c_try_link "$LINENO"; then : 20105 ac_cv_type_unsigned_long_long_int=yes 20106else 20107 ac_cv_type_unsigned_long_long_int=no 20108fi 20109rm -f core conftest.err conftest.$ac_objext \ 20110 conftest$ac_exeext conftest.$ac_ext 20111fi 20112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 20113$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 20114 if test $ac_cv_type_unsigned_long_long_int = yes; then 20115 20116$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 20117 20118 fi 20119 20120 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20121if test "x$ac_cv_type_size_t" = xyes; then : 20122 20123else 20124 20125cat >>confdefs.h <<_ACEOF 20126#define size_t unsigned int 20127_ACEOF 20128 20129fi 20130 20131 20132 20133 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 20134if test "x$ac_cv_type_intmax_t" = xyes; then : 20135 20136$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 20137 20138else 20139 test $ac_cv_type_long_long_int = yes \ 20140 && ac_type='long long int' \ 20141 || ac_type='long int' 20142 20143cat >>confdefs.h <<_ACEOF 20144#define intmax_t $ac_type 20145_ACEOF 20146 20147fi 20148 20149 20150 20151 20152 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 20153if test "x$ac_cv_type_uintmax_t" = xyes; then : 20154 20155$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 20156 20157else 20158 test $ac_cv_type_unsigned_long_long_int = yes \ 20159 && ac_type='unsigned long long int' \ 20160 || ac_type='unsigned long int' 20161 20162cat >>confdefs.h <<_ACEOF 20163#define uintmax_t $ac_type 20164_ACEOF 20165 20166fi 20167 20168 20169 20170 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 20171if test "x$ac_cv_type_uintptr_t" = xyes; then : 20172 20173$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 20174 20175else 20176 for ac_type in 'unsigned int' 'unsigned long int' \ 20177 'unsigned long long int'; do 20178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20179/* end confdefs.h. */ 20180$ac_includes_default 20181int 20182main () 20183{ 20184static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 20185test_array [0] = 0; 20186return test_array [0]; 20187 20188 ; 20189 return 0; 20190} 20191_ACEOF 20192if ac_fn_c_try_compile "$LINENO"; then : 20193 20194cat >>confdefs.h <<_ACEOF 20195#define uintptr_t $ac_type 20196_ACEOF 20197 20198 ac_type= 20199fi 20200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20201 test -z "$ac_type" && break 20202 done 20203fi 20204 20205 20206 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 20207if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 20208 20209cat >>confdefs.h <<_ACEOF 20210#define HAVE_PTRDIFF_T 1 20211_ACEOF 20212 20213 20214fi 20215 20216 for ac_func in localeconv 20217do : 20218 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 20219if test "x$ac_cv_func_localeconv" = xyes; then : 20220 cat >>confdefs.h <<_ACEOF 20221#define HAVE_LOCALECONV 1 20222_ACEOF 20223 20224fi 20225done 20226 20227 20228 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 20229if test "x$ac_cv_func_vsnprintf" = xyes; then : 20230 hw_cv_func_vsnprintf=yes 20231else 20232 hw_cv_func_vsnprintf=no 20233fi 20234 20235 if test "$hw_cv_func_vsnprintf" = yes; then : 20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 20237$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 20238if ${hw_cv_func_vsnprintf_c99+:} false; then : 20239 $as_echo_n "(cached) " >&6 20240else 20241 if test "$cross_compiling" = yes; then : 20242 hw_cv_func_vsnprintf_c99=no 20243else 20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20245/* end confdefs.h. */ 20246#if HAVE_STDARG_H 20247 #include <stdarg.h> 20248 #endif 20249 #include <stdio.h> 20250 static int testprintf(char *buf, size_t size, const char *format, ...) 20251 { 20252 int result; 20253 va_list ap; 20254 va_start(ap, format); 20255 result = vsnprintf(buf, size, format, ap); 20256 va_end(ap); 20257 return result; 20258 } 20259int 20260main () 20261{ 20262char buf[43]; 20263 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 20264 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 20265 buf[0] != 'T' || buf[3] != '\0' || 20266 testprintf(NULL, 0, "") != 0 || /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */ 20267 testprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51) 20268 return 1; 20269 ; 20270 return 0; 20271} 20272_ACEOF 20273if ac_fn_c_try_run "$LINENO"; then : 20274 hw_cv_func_vsnprintf_c99=yes 20275else 20276 hw_cv_func_vsnprintf_c99=no 20277fi 20278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20279 conftest.$ac_objext conftest.beam conftest.$ac_ext 20280fi 20281 20282fi 20283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 20284$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 20285else 20286 hw_cv_func_snprintf_c99=no 20287fi 20288 if test "$hw_cv_func_vsnprintf_c99" = yes; then : 20289 20290$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 20291 20292else 20293 20294 20295$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 20296 20297 20298$as_echo "#define vprintf rpl_vprintf" >>confdefs.h 20299 20300 20301$as_echo "#define vfprintf rpl_vfprintf" >>confdefs.h 20302 20303 20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20305$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20306if ${ac_cv_c_const+:} false; then : 20307 $as_echo_n "(cached) " >&6 20308else 20309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20310/* end confdefs.h. */ 20311 20312int 20313main () 20314{ 20315 20316#ifndef __cplusplus 20317 /* Ultrix mips cc rejects this sort of thing. */ 20318 typedef int charset[2]; 20319 const charset cs = { 0, 0 }; 20320 /* SunOS 4.1.1 cc rejects this. */ 20321 char const *const *pcpcc; 20322 char **ppc; 20323 /* NEC SVR4.0.2 mips cc rejects this. */ 20324 struct point {int x, y;}; 20325 static struct point const zero = {0,0}; 20326 /* AIX XL C 1.02.0.0 rejects this. 20327 It does not let you subtract one const X* pointer from another in 20328 an arm of an if-expression whose if-part is not a constant 20329 expression */ 20330 const char *g = "string"; 20331 pcpcc = &g + (g ? g-g : 0); 20332 /* HPUX 7.0 cc rejects these. */ 20333 ++pcpcc; 20334 ppc = (char**) pcpcc; 20335 pcpcc = (char const *const *) ppc; 20336 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20337 char tx; 20338 char *t = &tx; 20339 char const *s = 0 ? (char *) 0 : (char const *) 0; 20340 20341 *t++ = 0; 20342 if (s) return 0; 20343 } 20344 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20345 int x[] = {25, 17}; 20346 const int *foo = &x[0]; 20347 ++foo; 20348 } 20349 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20350 typedef const int *iptr; 20351 iptr p = 0; 20352 ++p; 20353 } 20354 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20355 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20356 struct s { int j; const int *ap[3]; } bx; 20357 struct s *b = &bx; b->j = 5; 20358 } 20359 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20360 const int foo = 10; 20361 if (!foo) return 0; 20362 } 20363 return !cs[0] && !zero.x; 20364#endif 20365 20366 ; 20367 return 0; 20368} 20369_ACEOF 20370if ac_fn_c_try_compile "$LINENO"; then : 20371 ac_cv_c_const=yes 20372else 20373 ac_cv_c_const=no 20374fi 20375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20376fi 20377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20378$as_echo "$ac_cv_c_const" >&6; } 20379if test $ac_cv_c_const = no; then 20380 20381$as_echo "#define const /**/" >>confdefs.h 20382 20383fi 20384 20385 20386 for ac_header in stdarg.h 20387do : 20388 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 20389if test "x$ac_cv_header_stdarg_h" = xyes; then : 20390 cat >>confdefs.h <<_ACEOF 20391#define HAVE_STDARG_H 1 20392_ACEOF 20393 20394fi 20395 20396done 20397 20398 20399 case " $LIBOBJS " in 20400 *" snprintf.$ac_objext "* ) ;; 20401 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20402 ;; 20403esac 20404 20405 20406 20407fi 20408 20409 20410 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20411if test "x$ac_cv_func_snprintf" = xyes; then : 20412 hw_cv_func_snprintf=yes 20413else 20414 hw_cv_func_snprintf=no 20415fi 20416 20417 if test "$hw_cv_func_snprintf" = yes; then : 20418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 20419$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 20420if ${hw_cv_func_snprintf_c99+:} false; then : 20421 $as_echo_n "(cached) " >&6 20422else 20423 if test "$cross_compiling" = yes; then : 20424 hw_cv_func_snprintf_c99=no 20425else 20426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20427/* end confdefs.h. */ 20428#include <stdio.h> 20429int 20430main () 20431{ 20432char buf[43]; 20433 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 20434 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 20435 buf[0] != 'T' || buf[3] != '\0' || 20436 snprintf(NULL, 0, "") != 0 || /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */ 20437 snprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51) 20438 return 1; 20439 ; 20440 return 0; 20441} 20442_ACEOF 20443if ac_fn_c_try_run "$LINENO"; then : 20444 hw_cv_func_snprintf_c99=yes 20445else 20446 hw_cv_func_snprintf_c99=no 20447fi 20448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20449 conftest.$ac_objext conftest.beam conftest.$ac_ext 20450fi 20451 20452fi 20453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 20454$as_echo "$hw_cv_func_snprintf_c99" >&6; } 20455else 20456 hw_cv_func_snprintf_c99=no 20457fi 20458 if test "$hw_cv_func_snprintf_c99" = yes; then : 20459 20460$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20461 20462else 20463 20464 20465$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 20466 20467 20468$as_echo "#define printf rpl_printf" >>confdefs.h 20469 20470 20471$as_echo "#define fprintf rpl_fprintf" >>confdefs.h 20472 20473 20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20475$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20476if ${ac_cv_c_const+:} false; then : 20477 $as_echo_n "(cached) " >&6 20478else 20479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20480/* end confdefs.h. */ 20481 20482int 20483main () 20484{ 20485 20486#ifndef __cplusplus 20487 /* Ultrix mips cc rejects this sort of thing. */ 20488 typedef int charset[2]; 20489 const charset cs = { 0, 0 }; 20490 /* SunOS 4.1.1 cc rejects this. */ 20491 char const *const *pcpcc; 20492 char **ppc; 20493 /* NEC SVR4.0.2 mips cc rejects this. */ 20494 struct point {int x, y;}; 20495 static struct point const zero = {0,0}; 20496 /* AIX XL C 1.02.0.0 rejects this. 20497 It does not let you subtract one const X* pointer from another in 20498 an arm of an if-expression whose if-part is not a constant 20499 expression */ 20500 const char *g = "string"; 20501 pcpcc = &g + (g ? g-g : 0); 20502 /* HPUX 7.0 cc rejects these. */ 20503 ++pcpcc; 20504 ppc = (char**) pcpcc; 20505 pcpcc = (char const *const *) ppc; 20506 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20507 char tx; 20508 char *t = &tx; 20509 char const *s = 0 ? (char *) 0 : (char const *) 0; 20510 20511 *t++ = 0; 20512 if (s) return 0; 20513 } 20514 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20515 int x[] = {25, 17}; 20516 const int *foo = &x[0]; 20517 ++foo; 20518 } 20519 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20520 typedef const int *iptr; 20521 iptr p = 0; 20522 ++p; 20523 } 20524 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20525 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20526 struct s { int j; const int *ap[3]; } bx; 20527 struct s *b = &bx; b->j = 5; 20528 } 20529 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20530 const int foo = 10; 20531 if (!foo) return 0; 20532 } 20533 return !cs[0] && !zero.x; 20534#endif 20535 20536 ; 20537 return 0; 20538} 20539_ACEOF 20540if ac_fn_c_try_compile "$LINENO"; then : 20541 ac_cv_c_const=yes 20542else 20543 ac_cv_c_const=no 20544fi 20545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20546fi 20547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20548$as_echo "$ac_cv_c_const" >&6; } 20549if test $ac_cv_c_const = no; then 20550 20551$as_echo "#define const /**/" >>confdefs.h 20552 20553fi 20554 20555 20556 for ac_header in stdarg.h 20557do : 20558 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 20559if test "x$ac_cv_header_stdarg_h" = xyes; then : 20560 cat >>confdefs.h <<_ACEOF 20561#define HAVE_STDARG_H 1 20562_ACEOF 20563 20564fi 20565 20566done 20567 20568 20569 case " $LIBOBJS " in 20570 *" snprintf.$ac_objext "* ) ;; 20571 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20572 ;; 20573esac 20574 20575 20576 20577fi 20578 20579 20580 for ac_header in varargs.h 20581do : 20582 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" 20583if test "x$ac_cv_header_varargs_h" = xyes; then : 20584 cat >>confdefs.h <<_ACEOF 20585#define HAVE_VARARGS_H 1 20586_ACEOF 20587 20588fi 20589 20590done 20591 20592 20593 20594 # Don't even bother checking for vasprintf if snprintf was standards 20595 # incompliant, this one is going to be too. 20596 if test "$hw_cv_func_snprintf_c99" = yes; then : 20597 for ac_func in vasprintf 20598do : 20599 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 20600if test "x$ac_cv_func_vasprintf" = xyes; then : 20601 cat >>confdefs.h <<_ACEOF 20602#define HAVE_VASPRINTF 1 20603_ACEOF 20604 hw_cv_func_vasprintf=yes 20605else 20606 hw_cv_func_vasprintf=no 20607fi 20608done 20609 20610 20611else 20612 hw_cv_func_vasprintf=no 20613fi 20614 if test "$hw_cv_func_vasprintf" = no; then : 20615 20616$as_echo "#define vasprintf rpl_vasprintf" >>confdefs.h 20617 20618 for ac_header in stdlib.h 20619do : 20620 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 20621if test "x$ac_cv_header_stdlib_h" = xyes; then : 20622 cat >>confdefs.h <<_ACEOF 20623#define HAVE_STDLIB_H 1 20624_ACEOF 20625 20626fi 20627 20628done 20629 20630 20631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 20632$as_echo_n "checking for va_copy... " >&6; } 20633if ${hw_cv_func_va_copy+:} false; then : 20634 $as_echo_n "(cached) " >&6 20635else 20636 if test "$cross_compiling" = yes; then : 20637 hw_cv_func_va_copy=no 20638else 20639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20640/* end confdefs.h. */ 20641#if HAVE_STDARG_H 20642 #include <stdarg.h> 20643 #elif HAVE_VARARGS_H 20644 #include <varargs.h> 20645 #endif 20646int 20647main () 20648{ 20649va_list ap, aq; va_copy(aq, ap); 20650 ; 20651 return 0; 20652} 20653_ACEOF 20654if ac_fn_c_try_run "$LINENO"; then : 20655 hw_cv_func_va_copy=yes 20656else 20657 hw_cv_func_va_copy=no 20658fi 20659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20660 conftest.$ac_objext conftest.beam conftest.$ac_ext 20661fi 20662 20663fi 20664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5 20665$as_echo "$hw_cv_func_va_copy" >&6; } 20666 if test "$hw_cv_func_va_copy" = yes; then : 20667 20668$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 20669 20670fi 20671 20672 if test "$hw_cv_func_va_copy" = no; then : 20673 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5 20675$as_echo_n "checking for __va_copy... " >&6; } 20676if ${hw_cv_func___va_copy+:} false; then : 20677 $as_echo_n "(cached) " >&6 20678else 20679 if test "$cross_compiling" = yes; then : 20680 hw_cv_func___va_copy=no 20681else 20682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20683/* end confdefs.h. */ 20684#if HAVE_STDARG_H 20685 #include <stdarg.h> 20686 #elif HAVE_VARARGS_H 20687 #include <varargs.h> 20688 #endif 20689int 20690main () 20691{ 20692va_list ap, aq; __va_copy(aq, ap); 20693 ; 20694 return 0; 20695} 20696_ACEOF 20697if ac_fn_c_try_run "$LINENO"; then : 20698 hw_cv_func___va_copy=yes 20699else 20700 hw_cv_func___va_copy=no 20701fi 20702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20703 conftest.$ac_objext conftest.beam conftest.$ac_ext 20704fi 20705 20706fi 20707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5 20708$as_echo "$hw_cv_func___va_copy" >&6; } 20709 if test "$hw_cv_func___va_copy" = yes; then : 20710 20711$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 20712 20713fi 20714 20715fi 20716 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20718$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20719if ${ac_cv_c_const+:} false; then : 20720 $as_echo_n "(cached) " >&6 20721else 20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20723/* end confdefs.h. */ 20724 20725int 20726main () 20727{ 20728 20729#ifndef __cplusplus 20730 /* Ultrix mips cc rejects this sort of thing. */ 20731 typedef int charset[2]; 20732 const charset cs = { 0, 0 }; 20733 /* SunOS 4.1.1 cc rejects this. */ 20734 char const *const *pcpcc; 20735 char **ppc; 20736 /* NEC SVR4.0.2 mips cc rejects this. */ 20737 struct point {int x, y;}; 20738 static struct point const zero = {0,0}; 20739 /* AIX XL C 1.02.0.0 rejects this. 20740 It does not let you subtract one const X* pointer from another in 20741 an arm of an if-expression whose if-part is not a constant 20742 expression */ 20743 const char *g = "string"; 20744 pcpcc = &g + (g ? g-g : 0); 20745 /* HPUX 7.0 cc rejects these. */ 20746 ++pcpcc; 20747 ppc = (char**) pcpcc; 20748 pcpcc = (char const *const *) ppc; 20749 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20750 char tx; 20751 char *t = &tx; 20752 char const *s = 0 ? (char *) 0 : (char const *) 0; 20753 20754 *t++ = 0; 20755 if (s) return 0; 20756 } 20757 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20758 int x[] = {25, 17}; 20759 const int *foo = &x[0]; 20760 ++foo; 20761 } 20762 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20763 typedef const int *iptr; 20764 iptr p = 0; 20765 ++p; 20766 } 20767 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20768 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20769 struct s { int j; const int *ap[3]; } bx; 20770 struct s *b = &bx; b->j = 5; 20771 } 20772 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20773 const int foo = 10; 20774 if (!foo) return 0; 20775 } 20776 return !cs[0] && !zero.x; 20777#endif 20778 20779 ; 20780 return 0; 20781} 20782_ACEOF 20783if ac_fn_c_try_compile "$LINENO"; then : 20784 ac_cv_c_const=yes 20785else 20786 ac_cv_c_const=no 20787fi 20788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20789fi 20790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20791$as_echo "$ac_cv_c_const" >&6; } 20792if test $ac_cv_c_const = no; then 20793 20794$as_echo "#define const /**/" >>confdefs.h 20795 20796fi 20797 20798 20799 for ac_header in stdarg.h 20800do : 20801 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 20802if test "x$ac_cv_header_stdarg_h" = xyes; then : 20803 cat >>confdefs.h <<_ACEOF 20804#define HAVE_STDARG_H 1 20805_ACEOF 20806 20807fi 20808 20809done 20810 20811 20812 case " $LIBOBJS " in 20813 *" snprintf.$ac_objext "* ) ;; 20814 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20815 ;; 20816esac 20817 20818 20819fi 20820 20821 20822 # Don't even bother checking for asprintf if snprintf was standards 20823 # incompliant, this one is going to be too. 20824 if test "$hw_cv_func_snprintf_c99" = yes; then : 20825 for ac_func in asprintf 20826do : 20827 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 20828if test "x$ac_cv_func_asprintf" = xyes; then : 20829 cat >>confdefs.h <<_ACEOF 20830#define HAVE_ASPRINTF 1 20831_ACEOF 20832 hw_cv_func_asprintf=yes 20833else 20834 hw_cv_func_asprintf=no 20835fi 20836done 20837 20838 20839else 20840 hw_cv_func_asprintf=no 20841fi 20842 if test "$hw_cv_func_asprintf" = no; then : 20843 20844$as_echo "#define asprintf rpl_asprintf" >>confdefs.h 20845 20846 20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20848$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20849if ${ac_cv_c_const+:} false; then : 20850 $as_echo_n "(cached) " >&6 20851else 20852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20853/* end confdefs.h. */ 20854 20855int 20856main () 20857{ 20858 20859#ifndef __cplusplus 20860 /* Ultrix mips cc rejects this sort of thing. */ 20861 typedef int charset[2]; 20862 const charset cs = { 0, 0 }; 20863 /* SunOS 4.1.1 cc rejects this. */ 20864 char const *const *pcpcc; 20865 char **ppc; 20866 /* NEC SVR4.0.2 mips cc rejects this. */ 20867 struct point {int x, y;}; 20868 static struct point const zero = {0,0}; 20869 /* AIX XL C 1.02.0.0 rejects this. 20870 It does not let you subtract one const X* pointer from another in 20871 an arm of an if-expression whose if-part is not a constant 20872 expression */ 20873 const char *g = "string"; 20874 pcpcc = &g + (g ? g-g : 0); 20875 /* HPUX 7.0 cc rejects these. */ 20876 ++pcpcc; 20877 ppc = (char**) pcpcc; 20878 pcpcc = (char const *const *) ppc; 20879 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20880 char tx; 20881 char *t = &tx; 20882 char const *s = 0 ? (char *) 0 : (char const *) 0; 20883 20884 *t++ = 0; 20885 if (s) return 0; 20886 } 20887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20888 int x[] = {25, 17}; 20889 const int *foo = &x[0]; 20890 ++foo; 20891 } 20892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20893 typedef const int *iptr; 20894 iptr p = 0; 20895 ++p; 20896 } 20897 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20899 struct s { int j; const int *ap[3]; } bx; 20900 struct s *b = &bx; b->j = 5; 20901 } 20902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20903 const int foo = 10; 20904 if (!foo) return 0; 20905 } 20906 return !cs[0] && !zero.x; 20907#endif 20908 20909 ; 20910 return 0; 20911} 20912_ACEOF 20913if ac_fn_c_try_compile "$LINENO"; then : 20914 ac_cv_c_const=yes 20915else 20916 ac_cv_c_const=no 20917fi 20918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20919fi 20920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20921$as_echo "$ac_cv_c_const" >&6; } 20922if test $ac_cv_c_const = no; then 20923 20924$as_echo "#define const /**/" >>confdefs.h 20925 20926fi 20927 20928 20929 for ac_header in stdarg.h 20930do : 20931 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 20932if test "x$ac_cv_header_stdarg_h" = xyes; then : 20933 cat >>confdefs.h <<_ACEOF 20934#define HAVE_STDARG_H 1 20935_ACEOF 20936 20937fi 20938 20939done 20940 20941 20942 case " $LIBOBJS " in 20943 *" snprintf.$ac_objext "* ) ;; 20944 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20945 ;; 20946esac 20947 20948 20949fi 20950 20951 20952 20953ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$ac_includes_default 20954#ifdef HAVE_DIRENT_H 20955# include <dirent.h> 20956#endif 20957 20958" 20959if test "x$ac_cv_have_decl_dirfd" = xyes; then : 20960 ac_have_decl=1 20961else 20962 ac_have_decl=0 20963fi 20964 20965cat >>confdefs.h <<_ACEOF 20966#define HAVE_DECL_DIRFD $ac_have_decl 20967_ACEOF 20968 20969 20970for ac_func in dirfd 20971do : 20972 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd" 20973if test "x$ac_cv_func_dirfd" = xyes; then : 20974 cat >>confdefs.h <<_ACEOF 20975#define HAVE_DIRFD 1 20976_ACEOF 20977 20978else 20979 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd macro" >&5 20981$as_echo_n "checking for dirfd macro... " >&6; } 20982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20983/* end confdefs.h. */ 20984$ac_includes_default 20985 #ifdef HAVE_DIRENT_H 20986 # include <dirent.h> 20987 #endif 20988 #ifdef dirfd 20989 dirfd_found 20990 #endif 20991 20992_ACEOF 20993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20994 $EGREP "dirfd_found" >/dev/null 2>&1; then : 20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20996$as_echo "yes" >&6; } 20997 DIRFD_MACRO_FOUND=1 20998else 20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21000$as_echo "no" >&6; } 21001fi 21002rm -f conftest* 21003 21004 if test x$DIRFD_MACRO_FOUND = x; then 21005 case " $LIBOBJS " in 21006 *" dirfd.$ac_objext "* ) ;; 21007 *) LIBOBJS="$LIBOBJS dirfd.$ac_objext" 21008 ;; 21009esac 21010 21011 fi 21012fi 21013done 21014 21015 21016for ac_func in jail_get 21017do : 21018 ac_fn_c_check_func "$LINENO" "jail_get" "ac_cv_func_jail_get" 21019if test "x$ac_cv_func_jail_get" = xyes; then : 21020 cat >>confdefs.h <<_ACEOF 21021#define HAVE_JAIL_GET 1 21022_ACEOF 21023 21024fi 21025done 21026 21027 21028 21029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 21030$as_echo_n "checking for library containing setsockopt... " >&6; } 21031if ${ac_cv_search_setsockopt+:} false; then : 21032 $as_echo_n "(cached) " >&6 21033else 21034 ac_func_search_save_LIBS=$LIBS 21035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21036/* end confdefs.h. */ 21037 21038/* Override any GCC internal prototype to avoid an error. 21039 Use char because int might match the return type of a GCC 21040 builtin and then its argument prototype would still apply. */ 21041#ifdef __cplusplus 21042extern "C" 21043#endif 21044char setsockopt (); 21045int 21046main () 21047{ 21048return setsockopt (); 21049 ; 21050 return 0; 21051} 21052_ACEOF 21053for ac_lib in '' socket; do 21054 if test -z "$ac_lib"; then 21055 ac_res="none required" 21056 else 21057 ac_res=-l$ac_lib 21058 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21059 fi 21060 if ac_fn_c_try_link "$LINENO"; then : 21061 ac_cv_search_setsockopt=$ac_res 21062fi 21063rm -f core conftest.err conftest.$ac_objext \ 21064 conftest$ac_exeext 21065 if ${ac_cv_search_setsockopt+:} false; then : 21066 break 21067fi 21068done 21069if ${ac_cv_search_setsockopt+:} false; then : 21070 21071else 21072 ac_cv_search_setsockopt=no 21073fi 21074rm conftest.$ac_ext 21075LIBS=$ac_func_search_save_LIBS 21076fi 21077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 21078$as_echo "$ac_cv_search_setsockopt" >&6; } 21079ac_res=$ac_cv_search_setsockopt 21080if test "$ac_res" != no; then : 21081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21082 21083fi 21084 21085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5 21086$as_echo_n "checking for library containing gethostent... " >&6; } 21087if ${ac_cv_search_gethostent+:} false; then : 21088 $as_echo_n "(cached) " >&6 21089else 21090 ac_func_search_save_LIBS=$LIBS 21091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21092/* end confdefs.h. */ 21093 21094/* Override any GCC internal prototype to avoid an error. 21095 Use char because int might match the return type of a GCC 21096 builtin and then its argument prototype would still apply. */ 21097#ifdef __cplusplus 21098extern "C" 21099#endif 21100char gethostent (); 21101int 21102main () 21103{ 21104return gethostent (); 21105 ; 21106 return 0; 21107} 21108_ACEOF 21109for ac_lib in '' nsl; do 21110 if test -z "$ac_lib"; then 21111 ac_res="none required" 21112 else 21113 ac_res=-l$ac_lib 21114 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21115 fi 21116 if ac_fn_c_try_link "$LINENO"; then : 21117 ac_cv_search_gethostent=$ac_res 21118fi 21119rm -f core conftest.err conftest.$ac_objext \ 21120 conftest$ac_exeext 21121 if ${ac_cv_search_gethostent+:} false; then : 21122 break 21123fi 21124done 21125if ${ac_cv_search_gethostent+:} false; then : 21126 21127else 21128 ac_cv_search_gethostent=no 21129fi 21130rm conftest.$ac_ext 21131LIBS=$ac_func_search_save_LIBS 21132fi 21133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5 21134$as_echo "$ac_cv_search_gethostent" >&6; } 21135ac_res=$ac_cv_search_gethostent 21136if test "$ac_res" != no; then : 21137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21138 21139fi 21140 21141 21142for ac_func in socket 21143do : 21144 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 21145if test "x$ac_cv_func_socket" = xyes; then : 21146 cat >>confdefs.h <<_ACEOF 21147#define HAVE_SOCKET 1 21148_ACEOF 21149 21150fi 21151done 21152 21153for ac_func in setsockopt 21154do : 21155 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 21156if test "x$ac_cv_func_setsockopt" = xyes; then : 21157 cat >>confdefs.h <<_ACEOF 21158#define HAVE_SETSOCKOPT 1 21159_ACEOF 21160 21161fi 21162done 21163 21164for ac_func in gethostent 21165do : 21166 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" 21167if test "x$ac_cv_func_gethostent" = xyes; then : 21168 cat >>confdefs.h <<_ACEOF 21169#define HAVE_GETHOSTENT 1 21170_ACEOF 21171 21172fi 21173done 21174 21175 21176ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 21177#if HAVE_WINSOCK2_H 21178 #include <winsock2.h> 21179#endif 21180#if HAVE_WS2TCPIP_H 21181 #include <ws2tcpip.h> 21182#else 21183 #include <sys/socket.h> 21184 #include <netdb.h> 21185#endif 21186" 21187if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 21188 21189cat >>confdefs.h <<_ACEOF 21190#define HAVE_STRUCT_SOCKADDR_STORAGE 1 21191_ACEOF 21192 21193 21194fi 21195 21196 21197ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" " 21198#if HAVE_WINSOCK2_H 21199 #include <winsock2.h> 21200#endif 21201#if HAVE_WS2TCPIP_H 21202 #include <ws2tcpip.h> 21203#else 21204 #include <sys/socket.h> 21205 #include <netdb.h> 21206#endif 21207 21208" 21209if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then : 21210 ac_have_decl=1 21211else 21212 ac_have_decl=0 21213fi 21214 21215cat >>confdefs.h <<_ACEOF 21216#define HAVE_DECL_GETADDRINFO $ac_have_decl 21217_ACEOF 21218if test $ac_have_decl = 1; then : 21219 21220else 21221 case " $LIBOBJS " in 21222 *" getaddrinfo.$ac_objext "* ) ;; 21223 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 21224 ;; 21225esac 21226 21227fi 21228 21229 21230ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h> 21231" 21232if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : 21233 ac_have_decl=1 21234else 21235 ac_have_decl=0 21236fi 21237 21238cat >>confdefs.h <<_ACEOF 21239#define HAVE_DECL_INET_NTOP $ac_have_decl 21240_ACEOF 21241ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h> 21242" 21243if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 21244 ac_have_decl=1 21245else 21246 ac_have_decl=0 21247fi 21248 21249cat >>confdefs.h <<_ACEOF 21250#define HAVE_DECL_INET_PTON $ac_have_decl 21251_ACEOF 21252 21253ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 21254if test "x$ac_cv_func_inet_ntop" = xyes; then : 21255 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 21256 21257else 21258 case " $LIBOBJS " in 21259 *" inet_ntop.$ac_objext "* ) ;; 21260 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 21261 ;; 21262esac 21263 21264fi 21265 21266ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 21267if test "x$ac_cv_func_inet_pton" = xyes; then : 21268 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 21269 21270else 21271 case " $LIBOBJS " in 21272 *" inet_pton.$ac_objext "* ) ;; 21273 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 21274 ;; 21275esac 21276 21277fi 21278 21279 21280 21281for ac_func in getifaddrs 21282do : 21283 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 21284if test "x$ac_cv_func_getifaddrs" = xyes; then : 21285 cat >>confdefs.h <<_ACEOF 21286#define HAVE_GETIFADDRS 1 21287_ACEOF 21288 21289fi 21290done 21291 21292 21293for ac_func in getprocs64 21294do : 21295 ac_fn_c_check_func "$LINENO" "getprocs64" "ac_cv_func_getprocs64" 21296if test "x$ac_cv_func_getprocs64" = xyes; then : 21297 cat >>confdefs.h <<_ACEOF 21298#define HAVE_GETPROCS64 1 21299_ACEOF 21300 21301fi 21302done 21303 21304 21305ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" 21306if test "x$ac_cv_func_lchown" = xyes; then : 21307 21308$as_echo "#define HAVE_LCHOWN 1" >>confdefs.h 21309 21310fi 21311 21312 21313ac_fn_c_check_decl "$LINENO" "pthread_attr_setstacksize" "ac_cv_have_decl_pthread_attr_setstacksize" "#include <pthread.h> 21314" 21315if test "x$ac_cv_have_decl_pthread_attr_setstacksize" = xyes; then : 21316 ac_have_decl=1 21317else 21318 ac_have_decl=0 21319fi 21320 21321cat >>confdefs.h <<_ACEOF 21322#define HAVE_DECL_PTHREAD_ATTR_SETSTACKSIZE $ac_have_decl 21323_ACEOF 21324 21325ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" 21326if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then : 21327 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h 21328 21329else 21330 case " $LIBOBJS " in 21331 *" pthread_attr_setstacksize.$ac_objext "* ) ;; 21332 *) LIBOBJS="$LIBOBJS pthread_attr_setstacksize.$ac_objext" 21333 ;; 21334esac 21335 21336fi 21337 21338 21339 21340ac_fn_c_check_decl "$LINENO" "pthread_sigmask" "ac_cv_have_decl_pthread_sigmask" "#include <signal.h> 21341" 21342if test "x$ac_cv_have_decl_pthread_sigmask" = xyes; then : 21343 ac_have_decl=1 21344else 21345 ac_have_decl=0 21346fi 21347 21348cat >>confdefs.h <<_ACEOF 21349#define HAVE_DECL_PTHREAD_SIGMASK $ac_have_decl 21350_ACEOF 21351 21352ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 21353if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 21354 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 21355 21356else 21357 case " $LIBOBJS " in 21358 *" pthread_sigmask.$ac_objext "* ) ;; 21359 *) LIBOBJS="$LIBOBJS pthread_sigmask.$ac_objext" 21360 ;; 21361esac 21362 21363fi 21364 21365 21366 21367ac_fn_c_check_decl "$LINENO" "sched_yield" "ac_cv_have_decl_sched_yield" "#include <sched.h> 21368" 21369if test "x$ac_cv_have_decl_sched_yield" = xyes; then : 21370 ac_have_decl=1 21371else 21372 ac_have_decl=0 21373fi 21374 21375cat >>confdefs.h <<_ACEOF 21376#define HAVE_DECL_SCHED_YIELD $ac_have_decl 21377_ACEOF 21378 21379for ac_func in sched_yield 21380do : 21381 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 21382if test "x$ac_cv_func_sched_yield" = xyes; then : 21383 cat >>confdefs.h <<_ACEOF 21384#define HAVE_SCHED_YIELD 1 21385_ACEOF 21386 21387fi 21388done 21389 21390 21391ac_fn_c_check_decl "$LINENO" "openat" "ac_cv_have_decl_openat" "#define _GNU_SOURCE 1 21392 #include <fcntl.h> 21393" 21394if test "x$ac_cv_have_decl_openat" = xyes; then : 21395 ac_have_decl=1 21396else 21397 ac_have_decl=0 21398fi 21399 21400cat >>confdefs.h <<_ACEOF 21401#define HAVE_DECL_OPENAT $ac_have_decl 21402_ACEOF 21403 21404ac_fn_c_check_decl "$LINENO" "fstatat" "ac_cv_have_decl_fstatat" "#define _GNU_SOURCE 1 21405 #include <sys/stat.h> 21406" 21407if test "x$ac_cv_have_decl_fstatat" = xyes; then : 21408 ac_have_decl=1 21409else 21410 ac_have_decl=0 21411fi 21412 21413cat >>confdefs.h <<_ACEOF 21414#define HAVE_DECL_FSTATAT $ac_have_decl 21415_ACEOF 21416 21417ac_fn_c_check_decl "$LINENO" "fchownat" "ac_cv_have_decl_fchownat" "#define _GNU_SOURCE 1 21418 #include <unistd.h> 21419" 21420if test "x$ac_cv_have_decl_fchownat" = xyes; then : 21421 ac_have_decl=1 21422else 21423 ac_have_decl=0 21424fi 21425 21426cat >>confdefs.h <<_ACEOF 21427#define HAVE_DECL_FCHOWNAT $ac_have_decl 21428_ACEOF 21429 21430ac_fn_c_check_decl "$LINENO" "fchmodat" "ac_cv_have_decl_fchmodat" "#define _GNU_SOURCE 1 21431 #include <sys/stat.h> 21432" 21433if test "x$ac_cv_have_decl_fchmodat" = xyes; then : 21434 ac_have_decl=1 21435else 21436 ac_have_decl=0 21437fi 21438 21439cat >>confdefs.h <<_ACEOF 21440#define HAVE_DECL_FCHMODAT $ac_have_decl 21441_ACEOF 21442 21443ac_fn_c_check_decl "$LINENO" "readlinkat" "ac_cv_have_decl_readlinkat" "#define _GNU_SOURCE 1 21444 #include <unistd.h> 21445" 21446if test "x$ac_cv_have_decl_readlinkat" = xyes; then : 21447 ac_have_decl=1 21448else 21449 ac_have_decl=0 21450fi 21451 21452cat >>confdefs.h <<_ACEOF 21453#define HAVE_DECL_READLINKAT $ac_have_decl 21454_ACEOF 21455 21456ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 21457if test "x$ac_cv_func_openat" = xyes; then : 21458 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h 21459 21460else 21461 case " $LIBOBJS " in 21462 *" openat.$ac_objext "* ) ;; 21463 *) LIBOBJS="$LIBOBJS openat.$ac_objext" 21464 ;; 21465esac 21466 21467fi 21468 21469ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat" 21470if test "x$ac_cv_func_fstatat" = xyes; then : 21471 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h 21472 21473else 21474 case " $LIBOBJS " in 21475 *" fstatat.$ac_objext "* ) ;; 21476 *) LIBOBJS="$LIBOBJS fstatat.$ac_objext" 21477 ;; 21478esac 21479 21480fi 21481 21482ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat" 21483if test "x$ac_cv_func_fchownat" = xyes; then : 21484 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h 21485 21486else 21487 case " $LIBOBJS " in 21488 *" fchownat.$ac_objext "* ) ;; 21489 *) LIBOBJS="$LIBOBJS fchownat.$ac_objext" 21490 ;; 21491esac 21492 21493fi 21494 21495ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat" 21496if test "x$ac_cv_func_fchmodat" = xyes; then : 21497 $as_echo "#define HAVE_FCHMODAT 1" >>confdefs.h 21498 21499else 21500 case " $LIBOBJS " in 21501 *" fchmodat.$ac_objext "* ) ;; 21502 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext" 21503 ;; 21504esac 21505 21506fi 21507 21508ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat" 21509if test "x$ac_cv_func_readlinkat" = xyes; then : 21510 $as_echo "#define HAVE_READLINKAT 1" >>confdefs.h 21511 21512else 21513 case " $LIBOBJS " in 21514 *" readlinkat.$ac_objext "* ) ;; 21515 *) LIBOBJS="$LIBOBJS readlinkat.$ac_objext" 21516 ;; 21517esac 21518 21519fi 21520 21521 21522 21523ac_fn_c_check_decl "$LINENO" "log2" "ac_cv_have_decl_log2" "#include <math.h> 21524" 21525if test "x$ac_cv_have_decl_log2" = xyes; then : 21526 ac_have_decl=1 21527else 21528 ac_have_decl=0 21529fi 21530 21531cat >>confdefs.h <<_ACEOF 21532#define HAVE_DECL_LOG2 $ac_have_decl 21533_ACEOF 21534 21535ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2" 21536if test "x$ac_cv_func_log2" = xyes; then : 21537 $as_echo "#define HAVE_LOG2 1" >>confdefs.h 21538 21539else 21540 case " $LIBOBJS " in 21541 *" log2.$ac_objext "* ) ;; 21542 *) LIBOBJS="$LIBOBJS log2.$ac_objext" 21543 ;; 21544esac 21545 21546fi 21547 21548 21549 21550ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve" 21551if test "x$ac_cv_func_fexecve" = xyes; then : 21552 21553$as_echo "#define HAVE_FEXECVE 1" >>confdefs.h 21554 21555fi 21556 21557 21558 21559ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" 21560if test "x$ac_cv_have_decl_alarm" = xyes; then : 21561 ac_have_decl=1 21562else 21563 ac_have_decl=0 21564fi 21565 21566cat >>confdefs.h <<_ACEOF 21567#define HAVE_DECL_ALARM $ac_have_decl 21568_ACEOF 21569 21570ac_fn_c_check_decl "$LINENO" "chmod" "ac_cv_have_decl_chmod" "$ac_includes_default" 21571if test "x$ac_cv_have_decl_chmod" = xyes; then : 21572 ac_have_decl=1 21573else 21574 ac_have_decl=0 21575fi 21576 21577cat >>confdefs.h <<_ACEOF 21578#define HAVE_DECL_CHMOD $ac_have_decl 21579_ACEOF 21580 21581ac_fn_c_check_decl "$LINENO" "chown" "ac_cv_have_decl_chown" "$ac_includes_default" 21582if test "x$ac_cv_have_decl_chown" = xyes; then : 21583 ac_have_decl=1 21584else 21585 ac_have_decl=0 21586fi 21587 21588cat >>confdefs.h <<_ACEOF 21589#define HAVE_DECL_CHOWN $ac_have_decl 21590_ACEOF 21591 21592ac_fn_c_check_decl "$LINENO" "fchmod" "ac_cv_have_decl_fchmod" "$ac_includes_default" 21593if test "x$ac_cv_have_decl_fchmod" = xyes; then : 21594 ac_have_decl=1 21595else 21596 ac_have_decl=0 21597fi 21598 21599cat >>confdefs.h <<_ACEOF 21600#define HAVE_DECL_FCHMOD $ac_have_decl 21601_ACEOF 21602 21603for ac_func in fchmod 21604do : 21605 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" 21606if test "x$ac_cv_func_fchmod" = xyes; then : 21607 cat >>confdefs.h <<_ACEOF 21608#define HAVE_FCHMOD 1 21609_ACEOF 21610 21611fi 21612done 21613 21614ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "$ac_includes_default" 21615if test "x$ac_cv_have_decl_uname" = xyes; then : 21616 ac_have_decl=1 21617else 21618 ac_have_decl=0 21619fi 21620 21621cat >>confdefs.h <<_ACEOF 21622#define HAVE_DECL_UNAME $ac_have_decl 21623_ACEOF 21624 21625ac_fn_c_check_decl "$LINENO" "getuid" "ac_cv_have_decl_getuid" "$ac_includes_default" 21626if test "x$ac_cv_have_decl_getuid" = xyes; then : 21627 ac_have_decl=1 21628else 21629 ac_have_decl=0 21630fi 21631 21632cat >>confdefs.h <<_ACEOF 21633#define HAVE_DECL_GETUID $ac_have_decl 21634_ACEOF 21635 21636ac_fn_c_check_decl "$LINENO" "getgid" "ac_cv_have_decl_getgid" "$ac_includes_default" 21637if test "x$ac_cv_have_decl_getgid" = xyes; then : 21638 ac_have_decl=1 21639else 21640 ac_have_decl=0 21641fi 21642 21643cat >>confdefs.h <<_ACEOF 21644#define HAVE_DECL_GETGID $ac_have_decl 21645_ACEOF 21646 21647ac_fn_c_check_decl "$LINENO" "lstat" "ac_cv_have_decl_lstat" "$ac_includes_default" 21648if test "x$ac_cv_have_decl_lstat" = xyes; then : 21649 ac_have_decl=1 21650else 21651 ac_have_decl=0 21652fi 21653 21654cat >>confdefs.h <<_ACEOF 21655#define HAVE_DECL_LSTAT $ac_have_decl 21656_ACEOF 21657 21658for ac_func in sleep 21659do : 21660 ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 21661if test "x$ac_cv_func_sleep" = xyes; then : 21662 cat >>confdefs.h <<_ACEOF 21663#define HAVE_SLEEP 1 21664_ACEOF 21665 21666fi 21667done 21668 21669ac_fn_c_check_decl "$LINENO" "socketpair" "ac_cv_have_decl_socketpair" "#include <sys/socket.h> 21670" 21671if test "x$ac_cv_have_decl_socketpair" = xyes; then : 21672 ac_have_decl=1 21673else 21674 ac_have_decl=0 21675fi 21676 21677cat >>confdefs.h <<_ACEOF 21678#define HAVE_DECL_SOCKETPAIR $ac_have_decl 21679_ACEOF 21680 21681ac_fn_c_check_decl "$LINENO" "fsync" "ac_cv_have_decl_fsync" "$ac_includes_default" 21682if test "x$ac_cv_have_decl_fsync" = xyes; then : 21683 ac_have_decl=1 21684else 21685 ac_have_decl=0 21686fi 21687 21688cat >>confdefs.h <<_ACEOF 21689#define HAVE_DECL_FSYNC $ac_have_decl 21690_ACEOF 21691 21692ac_fn_c_check_decl "$LINENO" "glob" "ac_cv_have_decl_glob" "#include <glob.h> 21693" 21694if test "x$ac_cv_have_decl_glob" = xyes; then : 21695 ac_have_decl=1 21696else 21697 ac_have_decl=0 21698fi 21699 21700cat >>confdefs.h <<_ACEOF 21701#define HAVE_DECL_GLOB $ac_have_decl 21702_ACEOF 21703 21704 21705 21706ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " 21707#include <sys/types.h> 21708#include <sys/socket.h> 21709" 21710if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 21711 21712cat >>confdefs.h <<_ACEOF 21713#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 21714_ACEOF 21715 21716 21717fi 21718 21719 21720ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" " 21721#include <sys/ioctl.h> 21722#include <net/if.h> 21723" 21724if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : 21725 21726cat >>confdefs.h <<_ACEOF 21727#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 21728_ACEOF 21729 21730 21731fi 21732 21733 21734for ac_header in sys/sysctl.h 21735do : 21736 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 21737#ifdef HAVE_SYS_PARAM_H 21738# include <sys/param.h> 21739#endif 21740 21741" 21742if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 21743 cat >>confdefs.h <<_ACEOF 21744#define HAVE_SYS_SYSCTL_H 1 21745_ACEOF 21746 21747fi 21748 21749done 21750 21751 21752ac_fn_c_check_member "$LINENO" "struct sysinfo" "uptime" "ac_cv_member_struct_sysinfo_uptime" "#include <sys/sysinfo.h> 21753" 21754if test "x$ac_cv_member_struct_sysinfo_uptime" = xyes; then : 21755 21756cat >>confdefs.h <<_ACEOF 21757#define HAVE_STRUCT_SYSINFO_UPTIME 1 21758_ACEOF 21759 21760 21761fi 21762 21763 21764for ac_header in sys/sysctl.h 21765do : 21766 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 21767#ifdef HAVE_SYS_PARAM_H 21768# include <sys/param.h> 21769#endif 21770 21771" 21772if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 21773 cat >>confdefs.h <<_ACEOF 21774#define HAVE_SYS_SYSCTL_H 1 21775_ACEOF 21776 21777fi 21778 21779done 21780 21781 21782for ac_header in kstat.h 21783do : 21784 ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default" 21785if test "x$ac_cv_header_kstat_h" = xyes; then : 21786 cat >>confdefs.h <<_ACEOF 21787#define HAVE_KSTAT_H 1 21788_ACEOF 21789 21790fi 21791 21792done 21793 21794for ac_header in utmp.h 21795do : 21796 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 21797if test "x$ac_cv_header_utmp_h" = xyes; then : 21798 cat >>confdefs.h <<_ACEOF 21799#define HAVE_UTMP_H 1 21800_ACEOF 21801 21802fi 21803 21804done 21805 21806for ac_header in utmpx.h 21807do : 21808 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 21809if test "x$ac_cv_header_utmpx_h" = xyes; then : 21810 cat >>confdefs.h <<_ACEOF 21811#define HAVE_UTMPX_H 1 21812_ACEOF 21813 21814fi 21815 21816done 21817 21818 21819 21820rtry=none 21821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for either struct rtentry or struct ortentry" >&5 21822$as_echo_n "checking for either struct rtentry or struct ortentry... " >&6; } 21823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21824/* end confdefs.h. */ 21825#include <net/route.h> 21826 21827_ACEOF 21828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21829 $EGREP "rtentry" >/dev/null 2>&1; then : 21830 rtry=rtentry 21831fi 21832rm -f conftest* 21833 21834if test "$rtry" = rtentry; then 21835 21836$as_echo "#define HAVE_RTENTRY 1" >>confdefs.h 21837 21838fi 21839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21840/* end confdefs.h. */ 21841#include <net/route.h> 21842 21843_ACEOF 21844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21845 $EGREP "ortentry" >/dev/null 2>&1; then : 21846 rtry=ortentry 21847fi 21848rm -f conftest* 21849 21850if test "$rtry" = ortentry; then 21851 21852$as_echo "#define HAVE_ORTENTRY 1" >>confdefs.h 21853 21854fi 21855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtry" >&5 21856$as_echo "$rtry" >&6; } 21857 21858 21859for ac_func in llistxattr 21860do : 21861 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr" 21862if test "x$ac_cv_func_llistxattr" = xyes; then : 21863 cat >>confdefs.h <<_ACEOF 21864#define HAVE_LLISTXATTR 1 21865_ACEOF 21866 21867$as_echo "#define WITH_XATTR 1" >>confdefs.h 21868 21869fi 21870done 21871 21872for ac_header in attr/xattr.h sys/xattr.h 21873do : 21874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21875ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21876if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21877 cat >>confdefs.h <<_ACEOF 21878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21879_ACEOF 21880 21881fi 21882 21883done 21884 21885 21886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr functions have extra arguments" >&5 21887$as_echo_n "checking whether xattr functions have extra arguments... " >&6; } 21888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21889/* end confdefs.h. */ 21890#include <sys/types.h> 21891 #include <sys/xattr.h> 21892int 21893main () 21894{ 21895(void)llistxattr("", 0, 0, 0); 21896 (void)lgetxattr("", "", 0, 0, 0, 0); 21897 (void)lsetxattr("", "", "", 0, 0, 0); 21898 (void)lremovexattr("", "", 0); 21899 ; 21900 return 0; 21901} 21902_ACEOF 21903if ac_fn_c_try_compile "$LINENO"; then : 21904 21905$as_echo "#define WITH_XATTR_EXTRA_ARGS 1" >>confdefs.h 21906 21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21908$as_echo "yes" >&6; } 21909else 21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21911$as_echo "no" >&6; } 21912fi 21913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21914 21915 21916saved_CFLAGS="$CFLAGS" 21917CFLAGS="-Werror -Wno-tautological-constant-out-of-range-compare" 21918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-constant-out-of-range-compare" >&5 21919$as_echo_n "checking whether compiler supports -Wno-tautological-constant-out-of-range-compare... " >&6; } 21920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21921/* end confdefs.h. */ 21922 21923int 21924main () 21925{ 21926 21927 ; 21928 return 0; 21929} 21930_ACEOF 21931if ac_fn_c_try_compile "$LINENO"; then : 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21933$as_echo "yes" >&6; } 21934 NO_TAUTOLOGICAL_CC_OPTION="-Wno-tautological-constant-out-of-range-compare" 21935else 21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21937$as_echo "no" >&6; } 21938 NO_TAUTOLOGICAL_CC_OPTION="" 21939 21940fi 21941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21942CFLAGS="$saved_CFLAGS" 21943 21944 21945 21946# Check whether --enable-selinux was given. 21947if test "${enable_selinux+set}" = set; then : 21948 enableval=$enable_selinux; 21949fi 21950 21951 21952 21953case "$target_os" in 21954 21955 solaris2.8|solaris2.9) 21956 21957$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 21958 21959 21960$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 21961 21962 ;; 21963 solaris2.10|solaris2.11) 21964 21965$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 21966 21967 21968$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 21969 21970 ;; 21971 hpux*|hp-ux*) 21972 21973$as_echo "#define _PSTAT64 1" >>confdefs.h 21974 21975 ;; 21976 aix*) 21977 CPPFLAGS="$CPPFLAGS -w" 21978 ;; 21979 linux*|*bsd*|*gnu*) 21980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnss_nis" >&5 21981$as_echo_n "checking for yp_get_default_domain in -lnss_nis... " >&6; } 21982if ${ac_cv_lib_nss_nis_yp_get_default_domain+:} false; then : 21983 $as_echo_n "(cached) " >&6 21984else 21985 ac_check_lib_save_LIBS=$LIBS 21986LIBS="-lnss_nis $LIBS" 21987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21988/* end confdefs.h. */ 21989 21990/* Override any GCC internal prototype to avoid an error. 21991 Use char because int might match the return type of a GCC 21992 builtin and then its argument prototype would still apply. */ 21993#ifdef __cplusplus 21994extern "C" 21995#endif 21996char yp_get_default_domain (); 21997int 21998main () 21999{ 22000return yp_get_default_domain (); 22001 ; 22002 return 0; 22003} 22004_ACEOF 22005if ac_fn_c_try_link "$LINENO"; then : 22006 ac_cv_lib_nss_nis_yp_get_default_domain=yes 22007else 22008 ac_cv_lib_nss_nis_yp_get_default_domain=no 22009fi 22010rm -f core conftest.err conftest.$ac_objext \ 22011 conftest$ac_exeext conftest.$ac_ext 22012LIBS=$ac_check_lib_save_LIBS 22013fi 22014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_nis_yp_get_default_domain" >&5 22015$as_echo "$ac_cv_lib_nss_nis_yp_get_default_domain" >&6; } 22016if test "x$ac_cv_lib_nss_nis_yp_get_default_domain" = xyes; then : 22017 cat >>confdefs.h <<_ACEOF 22018#define HAVE_LIBNSS_NIS 1 22019_ACEOF 22020 22021 LIBS="-lnss_nis $LIBS" 22022 22023fi 22024 22025 ;; 22026 freebsd*|dragonfly*) 22027 ;; 22028 netbsd*) 22029 ;; 22030 unicos*) 22031 ;; 22032 cray*) 22033 ;; 22034 qnx*) 22035 ;; 22036 openbsd*|obsd*) 22037 ;; 22038 sysv4.2MP|unix_sv*) 22039 ;; 22040 cygwin*) 22041 ;; 22042 mingw*) 22043 ;; 22044 sco*) 22045 ;; 22046 darwin*) 22047 ;; 22048 *) 22049 as_fn_error $? "Unknown system type $target_os" "$LINENO" 5 22050 ;; 22051esac 22052 22053# 22054# Copyright 2020 Northern.tech AS 22055# 22056# This file is part of CFEngine 3 - written and maintained by Northern.tech AS. 22057# 22058# This program is free software; you can redistribute it and/or modify it 22059# under the terms of the GNU General Public License as published by the 22060# Free Software Foundation; version 3. 22061# 22062# This program is distributed in the hope that it will be useful, 22063# but WITHOUT ANY WARRANTY; without even the implied warranty of 22064# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22065# GNU General Public License for more details. 22066# 22067# You should have received a copy of the GNU General Public License 22068# along with this program; if not, write to the Free Software 22069# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 22070# 22071# To the extent this program is licensed as part of the Enterprise 22072# versions of CFEngine, the applicable Commercial Open Source License 22073# (COSL) may apply to this file if you as a licensee so wish it. See 22074# included file COSL.txt. 22075# 22076# 22077# OS kernels conditionals. Don't use those unless it is really needed (if code 22078# depends on the *kernel* feature, and even then -- some kernel features are 22079# shared by different kernels). 22080# 22081# Good example: use LINUX to select code which uses inotify and netlink sockets. 22082# Bad example: use LINUX to select code which parses output of coreutils' ps(1). 22083# 22084 if test -n "`echo ${target_os} | grep linux`"; then 22085 LINUX_TRUE= 22086 LINUX_FALSE='#' 22087else 22088 LINUX_TRUE='#' 22089 LINUX_FALSE= 22090fi 22091 22092 if test -n "`echo ${target_os} | grep darwin`"; then 22093 MACOSX_TRUE= 22094 MACOSX_FALSE='#' 22095else 22096 MACOSX_TRUE='#' 22097 MACOSX_FALSE= 22098fi 22099 22100 if test -n "`(echo ${target_os} | egrep 'solaris|sunos')`"; then 22101 SOLARIS_TRUE= 22102 SOLARIS_FALSE='#' 22103else 22104 SOLARIS_TRUE='#' 22105 SOLARIS_FALSE= 22106fi 22107 22108 if test -n "`(echo ${target_os} | egrep 'mingw|cygwin')`"; then 22109 NT_TRUE= 22110 NT_FALSE='#' 22111else 22112 NT_TRUE='#' 22113 NT_FALSE= 22114fi 22115 22116 if test -n "`(echo ${target_os} | egrep 'cygwin')`"; then 22117 CYGWIN_TRUE= 22118 CYGWIN_FALSE='#' 22119else 22120 CYGWIN_TRUE='#' 22121 CYGWIN_FALSE= 22122fi 22123 22124 if test -n "`(echo ${target_os} | grep aix)`"; then 22125 AIX_TRUE= 22126 AIX_FALSE='#' 22127else 22128 AIX_TRUE='#' 22129 AIX_FALSE= 22130fi 22131 22132 if test -n "`(echo ${target_os} | egrep 'hpux|hp-ux')`"; then 22133 HPUX_TRUE= 22134 HPUX_FALSE='#' 22135else 22136 HPUX_TRUE='#' 22137 HPUX_FALSE= 22138fi 22139 22140 if test -n "`(echo ${target_os} | grep freebsd)`"; then 22141 FREEBSD_TRUE= 22142 FREEBSD_FALSE='#' 22143else 22144 FREEBSD_TRUE='#' 22145 FREEBSD_FALSE= 22146fi 22147 22148 if test -n "`(echo ${target_os} | grep netbsd)`"; then 22149 NETBSD_TRUE= 22150 NETBSD_FALSE='#' 22151else 22152 NETBSD_TRUE='#' 22153 NETBSD_FALSE= 22154fi 22155 22156 if test -n "`(echo ${target_os} | grep darwin)`"; then 22157 XNU_TRUE= 22158 XNU_FALSE='#' 22159else 22160 XNU_TRUE='#' 22161 XNU_FALSE= 22162fi 22163 22164 22165 22166 22167 22168# Check whether --with-workdir was given. 22169if test "${with_workdir+set}" = set; then : 22170 withval=$with_workdir; 22171 if test "x$withval" != x ; then 22172 WORKDIR="$withval" 22173 LOGDIR="$withval" 22174 PIDDIR="$withval" 22175 fi 22176 22177fi 22178 22179 22180 22181_lcl_receval=""${WORKDIR}"" 22182WORKDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 22183 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 22184 _lcl_receval_old='' 22185 while test "$_lcl_receval_old" != "$_lcl_receval"; do 22186 _lcl_receval_old="$_lcl_receval" 22187 eval _lcl_receval="\"$_lcl_receval\"" 22188 done 22189 echo "$_lcl_receval")` 22190 22191 22192cat >>confdefs.h <<_ACEOF 22193#define WORKDIR "${WORKDIR}" 22194_ACEOF 22195 22196workdir="${WORKDIR}" 22197 22198 22199 22200# Check whether --with-masterdir was given. 22201if test "${with_masterdir+set}" = set; then : 22202 withval=$with_masterdir; 22203 if test "x$withval" != x ; then 22204 MASTERDIR="$withval" 22205 fi 22206 22207fi 22208 22209 22210 22211_lcl_receval=""${MASTERDIR}"" 22212MASTERDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 22213 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 22214 _lcl_receval_old='' 22215 while test "$_lcl_receval_old" != "$_lcl_receval"; do 22216 _lcl_receval_old="$_lcl_receval" 22217 eval _lcl_receval="\"$_lcl_receval\"" 22218 done 22219 echo "$_lcl_receval")` 22220 22221 22222cat >>confdefs.h <<_ACEOF 22223#define MASTERDIR "${MASTERDIR}" 22224_ACEOF 22225 22226masterdir="${MASTERDIR}" 22227 22228 22229 22230# Check whether --with-inputdir was given. 22231if test "${with_inputdir+set}" = set; then : 22232 withval=$with_inputdir; 22233 if test "x$withval" != x ; then 22234 INPUTDIR="$withval" 22235 fi 22236 22237fi 22238 22239 22240 22241_lcl_receval=""${INPUTDIR}"" 22242INPUTDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 22243 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 22244 _lcl_receval_old='' 22245 while test "$_lcl_receval_old" != "$_lcl_receval"; do 22246 _lcl_receval_old="$_lcl_receval" 22247 eval _lcl_receval="\"$_lcl_receval\"" 22248 done 22249 echo "$_lcl_receval")` 22250 22251 22252cat >>confdefs.h <<_ACEOF 22253#define INPUTDIR "${INPUTDIR}" 22254_ACEOF 22255 22256inputdir="${INPUTDIR}" 22257 22258 22259 22260# Check whether --with-logdir was given. 22261if test "${with_logdir+set}" = set; then : 22262 withval=$with_logdir; 22263 if test "x$withval" != x ; then 22264 LOGDIR="$withval" 22265 fi 22266 22267fi 22268 22269 22270 22271_lcl_receval=""${LOGDIR}"" 22272LOGDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 22273 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 22274 _lcl_receval_old='' 22275 while test "$_lcl_receval_old" != "$_lcl_receval"; do 22276 _lcl_receval_old="$_lcl_receval" 22277 eval _lcl_receval="\"$_lcl_receval\"" 22278 done 22279 echo "$_lcl_receval")` 22280 22281 22282cat >>confdefs.h <<_ACEOF 22283#define LOGDIR "${LOGDIR}" 22284_ACEOF 22285 22286logdir="${LOGDIR}" 22287 22288 22289 22290# Check whether --with-piddir was given. 22291if test "${with_piddir+set}" = set; then : 22292 withval=$with_piddir; 22293 if test "x$withval" != x ; then 22294 PIDDIR="$withval" 22295 fi 22296 22297fi 22298 22299 22300 22301_lcl_receval=""${PIDDIR}"" 22302PIDDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 22303 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 22304 _lcl_receval_old='' 22305 while test "$_lcl_receval_old" != "$_lcl_receval"; do 22306 _lcl_receval_old="$_lcl_receval" 22307 eval _lcl_receval="\"$_lcl_receval\"" 22308 done 22309 echo "$_lcl_receval")` 22310 22311 22312cat >>confdefs.h <<_ACEOF 22313#define PIDDIR "${PIDDIR}" 22314_ACEOF 22315 22316piddir="${PIDDIR}" 22317 22318 22319 22320# Check whether --with-statedir was given. 22321if test "${with_statedir+set}" = set; then : 22322 withval=$with_statedir; 22323 if test "x$withval" != x ; then 22324 STATEDIR="$withval" 22325 fi 22326 22327fi 22328 22329 22330 22331_lcl_receval=""${STATEDIR}"" 22332STATEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 22333 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 22334 _lcl_receval_old='' 22335 while test "$_lcl_receval_old" != "$_lcl_receval"; do 22336 _lcl_receval_old="$_lcl_receval" 22337 eval _lcl_receval="\"$_lcl_receval\"" 22338 done 22339 echo "$_lcl_receval")` 22340 22341 22342cat >>confdefs.h <<_ACEOF 22343#define STATEDIR "${STATEDIR}" 22344_ACEOF 22345 22346statedir="${STATEDIR}" 22347 22348 22349 22350# Check whether --with-shell was given. 22351if test "${with_shell+set}" = set; then : 22352 withval=$with_shell; 22353else 22354 with_shell=/bin/sh 22355fi 22356 22357 22358_lcl_receval=""${bindir}"" 22359bindir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 22360 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 22361 _lcl_receval_old='' 22362 while test "$_lcl_receval_old" != "$_lcl_receval"; do 22363 _lcl_receval_old="$_lcl_receval" 22364 eval _lcl_receval="\"$_lcl_receval\"" 22365 done 22366 echo "$_lcl_receval")` 22367 22368 22369cat >>confdefs.h <<_ACEOF 22370#define BINDIR "${bindir}" 22371_ACEOF 22372 22373bindir="${bindir}" 22374 22375 22376 22377if test "x$with_shell" = "xno"; then 22378 as_fn_error $? "Please specify full path to POSIX-compatible shell" "$LINENO" 5 22379fi 22380 22381cat >>confdefs.h <<_ACEOF 22382#define SHELL_PATH "$with_shell" 22383_ACEOF 22384 22385 22386 22387 22388# Extract the first word of "hostname", so it can be a program name with args. 22389set dummy hostname; ac_word=$2 22390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22391$as_echo_n "checking for $ac_word... " >&6; } 22392if ${ac_cv_path_HOSTNAME+:} false; then : 22393 $as_echo_n "(cached) " >&6 22394else 22395 case $HOSTNAME in 22396 [\\/]* | ?:[\\/]*) 22397 ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path. 22398 ;; 22399 *) 22400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22401for as_dir in $PATH 22402do 22403 IFS=$as_save_IFS 22404 test -z "$as_dir" && as_dir=. 22405 for ac_exec_ext in '' $ac_executable_extensions; do 22406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22407 ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext" 22408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22409 break 2 22410 fi 22411done 22412 done 22413IFS=$as_save_IFS 22414 22415 test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME="""" 22416 ;; 22417esac 22418fi 22419HOSTNAME=$ac_cv_path_HOSTNAME 22420if test -n "$HOSTNAME"; then 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 22422$as_echo "$HOSTNAME" >&6; } 22423else 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22425$as_echo "no" >&6; } 22426fi 22427 22428 22429 22430 22431cat >>confdefs.h <<_ACEOF 22432#define AUTOCONF_HOSTNAME "`$HOSTNAME`" 22433_ACEOF 22434 22435 22436cat >>confdefs.h <<_ACEOF 22437#define AUTOCONF_SYSNAME "$target_os" 22438_ACEOF 22439 22440 22441 22442 22443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xen cpuid-based HVM detection" >&5 22444$as_echo_n "checking for Xen cpuid-based HVM detection... " >&6; } 22445if test x"$GCC" = "xyes"; then 22446 case $host_cpu in 22447 i[3456]86*|x86_64*|amd64) 22448 22449$as_echo "#define XEN_CPUID_SUPPORT 1" >>confdefs.h 22450 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22452$as_echo "yes" >&6; } 22453 ;; 22454 *) 22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22456$as_echo "no" >&6; } 22457 ;; 22458 esac 22459else 22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22461$as_echo "no" >&6; } 22462fi 22463 22464 22465# Check whether --enable-coverage was given. 22466if test "${enable_coverage+set}" = set; then : 22467 enableval=$enable_coverage; use_coverage=$enableval 22468else 22469 use_coverage=no 22470fi 22471 22472 22473if test "x$use_coverage" = "xyes"; then 22474 if test "$GCC" != "yes"; then 22475 as_fn_error $? "GCC is required for --enable-coverage" "$LINENO" 5 22476 fi 22477 22478 if test "$debug" != "yes"; then 22479 as_fn_error $? "--enable-debug is required for --enable-coverage" "$LINENO" 5 22480 fi 22481 22482 # Extract the first word of "lcov", so it can be a program name with args. 22483set dummy lcov; ac_word=$2 22484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22485$as_echo_n "checking for $ac_word... " >&6; } 22486if ${ac_cv_prog_LCOV+:} false; then : 22487 $as_echo_n "(cached) " >&6 22488else 22489 if test -n "$LCOV"; then 22490 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 22491else 22492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22493for as_dir in $PATH 22494do 22495 IFS=$as_save_IFS 22496 test -z "$as_dir" && as_dir=. 22497 for ac_exec_ext in '' $ac_executable_extensions; do 22498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22499 ac_cv_prog_LCOV="lcov" 22500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22501 break 2 22502 fi 22503done 22504 done 22505IFS=$as_save_IFS 22506 22507fi 22508fi 22509LCOV=$ac_cv_prog_LCOV 22510if test -n "$LCOV"; then 22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 22512$as_echo "$LCOV" >&6; } 22513else 22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22515$as_echo "no" >&6; } 22516fi 22517 22518 22519 # Extract the first word of "genhtml", so it can be a program name with args. 22520set dummy genhtml; ac_word=$2 22521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22522$as_echo_n "checking for $ac_word... " >&6; } 22523if ${ac_cv_prog_LCOV_GENHTML+:} false; then : 22524 $as_echo_n "(cached) " >&6 22525else 22526 if test -n "$LCOV_GENHTML"; then 22527 ac_cv_prog_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test. 22528else 22529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22530for as_dir in $PATH 22531do 22532 IFS=$as_save_IFS 22533 test -z "$as_dir" && as_dir=. 22534 for ac_exec_ext in '' $ac_executable_extensions; do 22535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22536 ac_cv_prog_LCOV_GENHTML="genhtml" 22537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22538 break 2 22539 fi 22540done 22541 done 22542IFS=$as_save_IFS 22543 22544fi 22545fi 22546LCOV_GENHTML=$ac_cv_prog_LCOV_GENHTML 22547if test -n "$LCOV_GENHTML"; then 22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5 22549$as_echo "$LCOV_GENHTML" >&6; } 22550else 22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22552$as_echo "no" >&6; } 22553fi 22554 22555 22556 22557 if test -z "$LCOV"; then 22558 as_fn_error $? "Cannot find lcov from the LTP package" "$LINENO" 5 22559 fi 22560 22561 if test -z "$LCOV_GENHTML"; then 22562 as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5 22563 fi 22564 22565 22566 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` 22567 22568 22569 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" 22570 LDFLAGS="$LDFLAGS -lgcov" 22571 # Need to set ENABLE_COVERAGE so that tests/unit/Makefile.am can adapt for one 22572 # test which needs gcov stubs if core not built with coverage. 22573 if true; then 22574 ENABLE_COVERAGE_TRUE= 22575 ENABLE_COVERAGE_FALSE='#' 22576else 22577 ENABLE_COVERAGE_TRUE='#' 22578 ENABLE_COVERAGE_FALSE= 22579fi 22580 22581else 22582 if false; then 22583 ENABLE_COVERAGE_TRUE= 22584 ENABLE_COVERAGE_FALSE='#' 22585else 22586 ENABLE_COVERAGE_TRUE='#' 22587 ENABLE_COVERAGE_FALSE= 22588fi 22589 22590fi 22591 22592 22593CORE_CPPFLAGS="$LMDB_CPPFLAGS $TOKYOCABINET_CPPFLAGS $QDBM_CPPFLAGS $PCRE_CPPFLAGS $OPENSSL_CPPFLAGS $SQLITE3_CPPFLAGS $LIBACL_CPPFLAGS $LIBCURL_CPPFLAGS $LIBYAML_CPPFLAGS $POSTGRESQL_CPPFLAGS $MYSQL_CPPFLAGS $LIBXML2_CPPFLAGS $CPPFLAGS" 22594CORE_CFLAGS="$LMDB_CFLAGS $TOKYOCABINET_CFLAGS $QDBM_CFLAGS $PCRE_CFLAGS $OPENSSL_CFLAGS $SQLITE3_CFLAGS $LIBACL_CFLAGS $LIBCURL_CFLAGS $LIBYAML_CFLAGS $POSTGRESQL_CFLAGS $MYSQL_CFLAGS $LIBXML2_CFLAGS $CFLAGS" 22595CORE_LDFLAGS="$LMDB_LDFLAGS $TOKYOCABINET_LDFLAGS $QDBM_LDFLAGS $PCRE_LDFLAGS $OPENSSL_LDFLAGS $SQLITE3_LDFLAGS $LIBACL_LDFLAGS $LIBCURL_LDFLAGS $LIBYAML_LDFLAGS $POSTGRESQL_LDFLAGS $MYSQL_LDFLAGS $LIBXML2_LDFLAGS $LDFLAGS" 22596CORE_LIBS="$LMDB_LIBS $TOKYOCABINET_LIBS $QDBM_LIBS $PCRE_LIBS $OPENSSL_LIBS $SQLITE3_LIBS $LIBACL_LIBS $LIBCURL_LIBS $LIBYAML_LIBS $POSTGRESQL_LIBS $MYSQL_LIBS $LIBXML2_LIBS $LIBS" 22597 22598 22599 22600 22601 22602 22603ac_config_files="$ac_config_files configure_flags.env" 22604 22605 22606# 22607# Populate contents of config.post.h 22608# 22609 22610 22611 22612ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "#include <sys/types.h> 22613 #include <sys/socket.h> 22614" 22615if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 22616 22617$as_echo "#define HAVE_MSGHDR_MSG_CONTROL 1" >>confdefs.h 22618 22619else 22620 22621$as_echo "#define HAVE_NO_MSGHDR_MSG_CONTROL 1" >>confdefs.h 22622 22623fi 22624 22625 22626ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h> 22627 #include <sys/socket.h> 22628" 22629if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then : 22630 22631$as_echo "#define HAVE_MSGHDR_ACCRIGHTS 1" >>confdefs.h 22632 22633else 22634 22635$as_echo "#define HAVE_NO_MSGHDR_ACCRIGHTS 1" >>confdefs.h 22636 22637fi 22638 22639 22640 22641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 22642$as_echo "" >&6; } 22643 22644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Summary:" >&5 22645$as_echo "Summary:" >&6; } 22646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Version: 0.1.0" >&5 22647$as_echo "> Version: 0.1.0" >&6; } 22648 22649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Required libraries" >&5 22650$as_echo "> Required libraries" >&6; } 22651 22652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> OpenSSL: $OPENSSL_PATH" >&5 22653$as_echo "-> OpenSSL: $OPENSSL_PATH" >&6; } 22654 22655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PCRE: $PCRE_PATH" >&5 22656$as_echo "-> PCRE: $PCRE_PATH" >&6; } 22657 22658if test $WITH_TOKYO = 1; then 22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&5 22660$as_echo "-> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&6; } 22661elif test $WITH_QDBM = 1; then 22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: QDBM: $QDBM_PATH" >&5 22663$as_echo "-> DB: QDBM: $QDBM_PATH" >&6; } 22664fi 22665 22666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Optional libraries" >&5 22667$as_echo "> Optional libraries" >&6; } 22668 22669if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = "xyes"; then 22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: $MYSQL_PATH" >&5 22671$as_echo "-> MySQL connector: $MYSQL_PATH" >&6; } 22672else 22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: disabled" >&5 22674$as_echo "-> MySQL connector: disabled" >&6; } 22675fi 22676 22677if test "x$ac_cv_lib_pq_PQconnectdb" = "xyes"; then 22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: $POSTGRESQL_PATH" >&5 22679$as_echo "-> PostgreSQL connector: $POSTGRESQL_PATH" >&6; } 22680else 22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: disabled" >&5 22682$as_echo "-> PostgreSQL connector: disabled" >&6; } 22683fi 22684 22685if test $WITH_LMDB = 1; then 22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Lightning MDB: $LMDB_PATH" >&5 22687$as_echo "-> DB: Lightning MDB: $LMDB_PATH" >&6; } 22688elif test $WITH_TOKYO = 1; then 22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&5 22690$as_echo "-> DB: Tokyo Cabinet: $TOKYOCABINET_PATH" >&6; } 22691elif test $WITH_QDBM = 1; then 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> DB: QDBM: $QDBM_PATH" >&5 22693$as_echo "-> DB: QDBM: $QDBM_PATH" >&6; } 22694fi 22695 22696if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then 22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: $LIBVIRT_PATH" >&5 22698$as_echo "-> libvirt: $LIBVIRT_PATH" >&6; } 22699else 22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: disabled" >&5 22701$as_echo "-> libvirt: disabled" >&6; } 22702fi 22703 22704if test "x$ac_cv_lib_acl_acl_init" = xyes; then 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: $LIBACL_PATH" >&5 22706$as_echo "-> libacl: $LIBACL_PATH" >&6; } 22707else 22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: disabled" >&5 22709$as_echo "-> libacl: disabled" >&6; } 22710fi 22711 22712if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then 22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: $LIBCURL_PATH" >&5 22714$as_echo "-> libcurl: $LIBCURL_PATH" >&6; } 22715else 22716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: disabled" >&5 22717$as_echo "-> libcurl: disabled" >&6; } 22718fi 22719 22720if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then 22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: $LIBYAML_PATH" >&5 22722$as_echo "-> libyaml: $LIBYAML_PATH" >&6; } 22723else 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: disabled" >&5 22725$as_echo "-> libyaml: disabled" >&6; } 22726fi 22727 22728if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: $LIBXML2_PATH" >&5 22730$as_echo "-> libxml2: $LIBXML2_PATH" >&6; } 22731else 22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: disabled" >&5 22733$as_echo "-> libxml2: disabled" >&6; } 22734fi 22735 22736if test "x$users_promises_ok" = "xyes"; then 22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: PAM/user* tools" >&5 22738$as_echo "-> User promises: PAM/user* tools" >&6; } 22739else 22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: disabled" >&5 22741$as_echo "-> User promises: disabled" >&6; } 22742fi 22743 22744if test "x$enable_builtin_extensions" = "xyes"; then 22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Built in" >&5 22746$as_echo "-> Enterprise extensions: Built in" >&6; } 22747else 22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Plugin or not included" >&5 22749$as_echo "-> Enterprise extensions: Plugin or not included" >&6; } 22750fi 22751 22752 22753 22754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Workdir: $WORKDIR" >&5 22755$as_echo "-> Workdir: $WORKDIR" >&6; } 22756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Masterdir: $MASTERDIR" >&5 22757$as_echo "-> Masterdir: $MASTERDIR" >&6; } 22758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Inputdir: $INPUTDIR" >&5 22759$as_echo "-> Inputdir: $INPUTDIR" >&6; } 22760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Logdir: $LOGDIR" >&5 22761$as_echo "-> Logdir: $LOGDIR" >&6; } 22762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Piddir: $PIDDIR" >&5 22763$as_echo "-> Piddir: $PIDDIR" >&6; } 22764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Statedir: $STATEDIR" >&5 22765$as_echo "-> Statedir: $STATEDIR" >&6; } 22766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> bindir: $bindir" >&5 22767$as_echo "-> bindir: $bindir" >&6; } 22768 22769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 22770$as_echo "" >&6; } 22771 22772 22773ac_config_files="$ac_config_files Makefile libcompat/Makefile libutils/Makefile config.post.h tests/Makefile tests/unit/Makefile" 22774 22775 22776cat >confcache <<\_ACEOF 22777# This file is a shell script that caches the results of configure 22778# tests run on this system so they can be shared between configure 22779# scripts and configure runs, see configure's option --config-cache. 22780# It is not useful on other systems. If it contains results you don't 22781# want to keep, you may remove or edit it. 22782# 22783# config.status only pays attention to the cache file if you give it 22784# the --recheck option to rerun configure. 22785# 22786# `ac_cv_env_foo' variables (set or unset) will be overridden when 22787# loading this file, other *unset* `ac_cv_foo' will be assigned the 22788# following values. 22789 22790_ACEOF 22791 22792# The following way of writing the cache mishandles newlines in values, 22793# but we know of no workaround that is simple, portable, and efficient. 22794# So, we kill variables containing newlines. 22795# Ultrix sh set writes to stderr and can't be redirected directly, 22796# and sets the high bit in the cache file unless we assign to the vars. 22797( 22798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22799 eval ac_val=\$$ac_var 22800 case $ac_val in #( 22801 *${as_nl}*) 22802 case $ac_var in #( 22803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22804$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22805 esac 22806 case $ac_var in #( 22807 _ | IFS | as_nl) ;; #( 22808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22809 *) { eval $ac_var=; unset $ac_var;} ;; 22810 esac ;; 22811 esac 22812 done 22813 22814 (set) 2>&1 | 22815 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22816 *${as_nl}ac_space=\ *) 22817 # `set' does not quote correctly, so add quotes: double-quote 22818 # substitution turns \\\\ into \\, and sed turns \\ into \. 22819 sed -n \ 22820 "s/'/'\\\\''/g; 22821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22822 ;; #( 22823 *) 22824 # `set' quotes correctly as required by POSIX, so do not add quotes. 22825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22826 ;; 22827 esac | 22828 sort 22829) | 22830 sed ' 22831 /^ac_cv_env_/b end 22832 t clear 22833 :clear 22834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22835 t end 22836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22837 :end' >>confcache 22838if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22839 if test -w "$cache_file"; then 22840 if test "x$cache_file" != "x/dev/null"; then 22841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22842$as_echo "$as_me: updating cache $cache_file" >&6;} 22843 if test ! -f "$cache_file" || test -h "$cache_file"; then 22844 cat confcache >"$cache_file" 22845 else 22846 case $cache_file in #( 22847 */* | ?:*) 22848 mv -f confcache "$cache_file"$$ && 22849 mv -f "$cache_file"$$ "$cache_file" ;; #( 22850 *) 22851 mv -f confcache "$cache_file" ;; 22852 esac 22853 fi 22854 fi 22855 else 22856 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22857$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22858 fi 22859fi 22860rm -f confcache 22861 22862test "x$prefix" = xNONE && prefix=$ac_default_prefix 22863# Let make expand exec_prefix. 22864test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22865 22866DEFS=-DHAVE_CONFIG_H 22867 22868ac_libobjs= 22869ac_ltlibobjs= 22870U= 22871for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22872 # 1. Remove the extension, and $U if already installed. 22873 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22874 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22875 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22876 # will be set to the directory where LIBOBJS objects are built. 22877 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22878 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22879done 22880LIBOBJS=$ac_libobjs 22881 22882LTLIBOBJS=$ac_ltlibobjs 22883 22884 22885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22886$as_echo_n "checking that generated files are newer than configure... " >&6; } 22887 if test -n "$am_sleep_pid"; then 22888 # Hide warnings about reused PIDs. 22889 wait $am_sleep_pid 2>/dev/null 22890 fi 22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 22892$as_echo "done" >&6; } 22893 if test -n "$EXEEXT"; then 22894 am__EXEEXT_TRUE= 22895 am__EXEEXT_FALSE='#' 22896else 22897 am__EXEEXT_TRUE='#' 22898 am__EXEEXT_FALSE= 22899fi 22900 22901if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22902 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 22903Usually this means the macro was only invoked conditionally." "$LINENO" 5 22904fi 22905if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22906 as_fn_error $? "conditional \"AMDEP\" was never defined. 22907Usually this means the macro was only invoked conditionally." "$LINENO" 5 22908fi 22909if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22910 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22911Usually this means the macro was only invoked conditionally." "$LINENO" 5 22912fi 22913if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 22914 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 22915Usually this means the macro was only invoked conditionally." "$LINENO" 5 22916fi 22917if test -z "${BUILTIN_EXTENSIONS_TRUE}" && test -z "${BUILTIN_EXTENSIONS_FALSE}"; then 22918 as_fn_error $? "conditional \"BUILTIN_EXTENSIONS\" was never defined. 22919Usually this means the macro was only invoked conditionally." "$LINENO" 5 22920fi 22921if test -z "${NDEBUG_TRUE}" && test -z "${NDEBUG_FALSE}"; then 22922 as_fn_error $? "conditional \"NDEBUG\" was never defined. 22923Usually this means the macro was only invoked conditionally." "$LINENO" 5 22924fi 22925if test -z "${WITH_OPENSSL_TRUE}" && test -z "${WITH_OPENSSL_FALSE}"; then 22926 as_fn_error $? "conditional \"WITH_OPENSSL\" was never defined. 22927Usually this means the macro was only invoked conditionally." "$LINENO" 5 22928fi 22929if test -z "${WITH_OPENSSL_TRUE}" && test -z "${WITH_OPENSSL_FALSE}"; then 22930 as_fn_error $? "conditional \"WITH_OPENSSL\" was never defined. 22931Usually this means the macro was only invoked conditionally." "$LINENO" 5 22932fi 22933if test -z "${WITH_PCRE_TRUE}" && test -z "${WITH_PCRE_FALSE}"; then 22934 as_fn_error $? "conditional \"WITH_PCRE\" was never defined. 22935Usually this means the macro was only invoked conditionally." "$LINENO" 5 22936fi 22937if test -z "${WITH_PCRE_TRUE}" && test -z "${WITH_PCRE_FALSE}"; then 22938 as_fn_error $? "conditional \"WITH_PCRE\" was never defined. 22939Usually this means the macro was only invoked conditionally." "$LINENO" 5 22940fi 22941if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then 22942 as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined. 22943Usually this means the macro was only invoked conditionally." "$LINENO" 5 22944fi 22945if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then 22946 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined. 22947Usually this means the macro was only invoked conditionally." "$LINENO" 5 22948fi 22949if test -z "${HAVE_AVAHI_CLIENT_TRUE}" && test -z "${HAVE_AVAHI_CLIENT_FALSE}"; then 22950 as_fn_error $? "conditional \"HAVE_AVAHI_CLIENT\" was never defined. 22951Usually this means the macro was only invoked conditionally." "$LINENO" 5 22952fi 22953if test -z "${HAVE_AVAHI_CLIENT_TRUE}" && test -z "${HAVE_AVAHI_CLIENT_FALSE}"; then 22954 as_fn_error $? "conditional \"HAVE_AVAHI_CLIENT\" was never defined. 22955Usually this means the macro was only invoked conditionally." "$LINENO" 5 22956fi 22957if test -z "${HAVE_AVAHI_COMMON_TRUE}" && test -z "${HAVE_AVAHI_COMMON_FALSE}"; then 22958 as_fn_error $? "conditional \"HAVE_AVAHI_COMMON\" was never defined. 22959Usually this means the macro was only invoked conditionally." "$LINENO" 5 22960fi 22961if test -z "${HAVE_AVAHI_COMMON_TRUE}" && test -z "${HAVE_AVAHI_COMMON_FALSE}"; then 22962 as_fn_error $? "conditional \"HAVE_AVAHI_COMMON\" was never defined. 22963Usually this means the macro was only invoked conditionally." "$LINENO" 5 22964fi 22965 22966if test -z "${HAVE_USERS_PROMISE_DEPS_TRUE}" && test -z "${HAVE_USERS_PROMISE_DEPS_FALSE}"; then 22967 as_fn_error $? "conditional \"HAVE_USERS_PROMISE_DEPS\" was never defined. 22968Usually this means the macro was only invoked conditionally." "$LINENO" 5 22969fi 22970if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 22971 as_fn_error $? "conditional \"LINUX\" was never defined. 22972Usually this means the macro was only invoked conditionally." "$LINENO" 5 22973fi 22974if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then 22975 as_fn_error $? "conditional \"MACOSX\" was never defined. 22976Usually this means the macro was only invoked conditionally." "$LINENO" 5 22977fi 22978if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 22979 as_fn_error $? "conditional \"SOLARIS\" was never defined. 22980Usually this means the macro was only invoked conditionally." "$LINENO" 5 22981fi 22982if test -z "${NT_TRUE}" && test -z "${NT_FALSE}"; then 22983 as_fn_error $? "conditional \"NT\" was never defined. 22984Usually this means the macro was only invoked conditionally." "$LINENO" 5 22985fi 22986if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 22987 as_fn_error $? "conditional \"CYGWIN\" was never defined. 22988Usually this means the macro was only invoked conditionally." "$LINENO" 5 22989fi 22990if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 22991 as_fn_error $? "conditional \"AIX\" was never defined. 22992Usually this means the macro was only invoked conditionally." "$LINENO" 5 22993fi 22994if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then 22995 as_fn_error $? "conditional \"HPUX\" was never defined. 22996Usually this means the macro was only invoked conditionally." "$LINENO" 5 22997fi 22998if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 22999 as_fn_error $? "conditional \"FREEBSD\" was never defined. 23000Usually this means the macro was only invoked conditionally." "$LINENO" 5 23001fi 23002if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 23003 as_fn_error $? "conditional \"NETBSD\" was never defined. 23004Usually this means the macro was only invoked conditionally." "$LINENO" 5 23005fi 23006if test -z "${XNU_TRUE}" && test -z "${XNU_FALSE}"; then 23007 as_fn_error $? "conditional \"XNU\" was never defined. 23008Usually this means the macro was only invoked conditionally." "$LINENO" 5 23009fi 23010if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then 23011 as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined. 23012Usually this means the macro was only invoked conditionally." "$LINENO" 5 23013fi 23014if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then 23015 as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined. 23016Usually this means the macro was only invoked conditionally." "$LINENO" 5 23017fi 23018 23019: "${CONFIG_STATUS=./config.status}" 23020ac_write_fail=0 23021ac_clean_files_save=$ac_clean_files 23022ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23023{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23024$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 23025as_write_fail=0 23026cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23027#! $SHELL 23028# Generated by $as_me. 23029# Run this file to recreate the current configuration. 23030# Compiler output produced by configure, useful for debugging 23031# configure, is in config.log if it exists. 23032 23033debug=false 23034ac_cs_recheck=false 23035ac_cs_silent=false 23036 23037SHELL=\${CONFIG_SHELL-$SHELL} 23038export SHELL 23039_ASEOF 23040cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23041## -------------------- ## 23042## M4sh Initialization. ## 23043## -------------------- ## 23044 23045# Be more Bourne compatible 23046DUALCASE=1; export DUALCASE # for MKS sh 23047if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23048 emulate sh 23049 NULLCMD=: 23050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23051 # is contrary to our usage. Disable this feature. 23052 alias -g '${1+"$@"}'='"$@"' 23053 setopt NO_GLOB_SUBST 23054else 23055 case `(set -o) 2>/dev/null` in #( 23056 *posix*) : 23057 set -o posix ;; #( 23058 *) : 23059 ;; 23060esac 23061fi 23062 23063 23064as_nl=' 23065' 23066export as_nl 23067# Printing a long string crashes Solaris 7 /usr/bin/printf. 23068as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23069as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23071# Prefer a ksh shell builtin over an external printf program on Solaris, 23072# but without wasting forks for bash or zsh. 23073if test -z "$BASH_VERSION$ZSH_VERSION" \ 23074 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 23075 as_echo='print -r --' 23076 as_echo_n='print -rn --' 23077elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23078 as_echo='printf %s\n' 23079 as_echo_n='printf %s' 23080else 23081 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23082 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23083 as_echo_n='/usr/ucb/echo -n' 23084 else 23085 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23086 as_echo_n_body='eval 23087 arg=$1; 23088 case $arg in #( 23089 *"$as_nl"*) 23090 expr "X$arg" : "X\\(.*\\)$as_nl"; 23091 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23092 esac; 23093 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23094 ' 23095 export as_echo_n_body 23096 as_echo_n='sh -c $as_echo_n_body as_echo' 23097 fi 23098 export as_echo_body 23099 as_echo='sh -c $as_echo_body as_echo' 23100fi 23101 23102# The user is always right. 23103if test "${PATH_SEPARATOR+set}" != set; then 23104 PATH_SEPARATOR=: 23105 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23106 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23107 PATH_SEPARATOR=';' 23108 } 23109fi 23110 23111 23112# IFS 23113# We need space, tab and new line, in precisely that order. Quoting is 23114# there to prevent editors from complaining about space-tab. 23115# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23116# splitting by setting IFS to empty value.) 23117IFS=" "" $as_nl" 23118 23119# Find who we are. Look in the path if we contain no directory separator. 23120as_myself= 23121case $0 in #(( 23122 *[\\/]* ) as_myself=$0 ;; 23123 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23124for as_dir in $PATH 23125do 23126 IFS=$as_save_IFS 23127 test -z "$as_dir" && as_dir=. 23128 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23129 done 23130IFS=$as_save_IFS 23131 23132 ;; 23133esac 23134# We did not find ourselves, most probably we were run as `sh COMMAND' 23135# in which case we are not to be found in the path. 23136if test "x$as_myself" = x; then 23137 as_myself=$0 23138fi 23139if test ! -f "$as_myself"; then 23140 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23141 exit 1 23142fi 23143 23144# Unset variables that we do not need and which cause bugs (e.g. in 23145# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 23146# suppresses any "Segmentation fault" message there. '((' could 23147# trigger a bug in pdksh 5.2.14. 23148for as_var in BASH_ENV ENV MAIL MAILPATH 23149do eval test x\${$as_var+set} = xset \ 23150 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23151done 23152PS1='$ ' 23153PS2='> ' 23154PS4='+ ' 23155 23156# NLS nuisances. 23157LC_ALL=C 23158export LC_ALL 23159LANGUAGE=C 23160export LANGUAGE 23161 23162# CDPATH. 23163(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23164 23165 23166# as_fn_error STATUS ERROR [LINENO LOG_FD] 23167# ---------------------------------------- 23168# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23169# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23170# script with STATUS, using 1 if that was 0. 23171as_fn_error () 23172{ 23173 as_status=$1; test $as_status -eq 0 && as_status=1 23174 if test "$4"; then 23175 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23176 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23177 fi 23178 $as_echo "$as_me: error: $2" >&2 23179 as_fn_exit $as_status 23180} # as_fn_error 23181 23182 23183# as_fn_set_status STATUS 23184# ----------------------- 23185# Set $? to STATUS, without forking. 23186as_fn_set_status () 23187{ 23188 return $1 23189} # as_fn_set_status 23190 23191# as_fn_exit STATUS 23192# ----------------- 23193# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23194as_fn_exit () 23195{ 23196 set +e 23197 as_fn_set_status $1 23198 exit $1 23199} # as_fn_exit 23200 23201# as_fn_unset VAR 23202# --------------- 23203# Portably unset VAR. 23204as_fn_unset () 23205{ 23206 { eval $1=; unset $1;} 23207} 23208as_unset=as_fn_unset 23209# as_fn_append VAR VALUE 23210# ---------------------- 23211# Append the text in VALUE to the end of the definition contained in VAR. Take 23212# advantage of any shell optimizations that allow amortized linear growth over 23213# repeated appends, instead of the typical quadratic growth present in naive 23214# implementations. 23215if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 23216 eval 'as_fn_append () 23217 { 23218 eval $1+=\$2 23219 }' 23220else 23221 as_fn_append () 23222 { 23223 eval $1=\$$1\$2 23224 } 23225fi # as_fn_append 23226 23227# as_fn_arith ARG... 23228# ------------------ 23229# Perform arithmetic evaluation on the ARGs, and store the result in the 23230# global $as_val. Take advantage of shells that can avoid forks. The arguments 23231# must be portable across $(()) and expr. 23232if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 23233 eval 'as_fn_arith () 23234 { 23235 as_val=$(( $* )) 23236 }' 23237else 23238 as_fn_arith () 23239 { 23240 as_val=`expr "$@" || test $? -eq 1` 23241 } 23242fi # as_fn_arith 23243 23244 23245if expr a : '\(a\)' >/dev/null 2>&1 && 23246 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23247 as_expr=expr 23248else 23249 as_expr=false 23250fi 23251 23252if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23253 as_basename=basename 23254else 23255 as_basename=false 23256fi 23257 23258if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23259 as_dirname=dirname 23260else 23261 as_dirname=false 23262fi 23263 23264as_me=`$as_basename -- "$0" || 23265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23266 X"$0" : 'X\(//\)$' \| \ 23267 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23268$as_echo X/"$0" | 23269 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23270 s//\1/ 23271 q 23272 } 23273 /^X\/\(\/\/\)$/{ 23274 s//\1/ 23275 q 23276 } 23277 /^X\/\(\/\).*/{ 23278 s//\1/ 23279 q 23280 } 23281 s/.*/./; q'` 23282 23283# Avoid depending upon Character Ranges. 23284as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23285as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23286as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23287as_cr_digits='0123456789' 23288as_cr_alnum=$as_cr_Letters$as_cr_digits 23289 23290ECHO_C= ECHO_N= ECHO_T= 23291case `echo -n x` in #((((( 23292-n*) 23293 case `echo 'xy\c'` in 23294 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23295 xy) ECHO_C='\c';; 23296 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23297 ECHO_T=' ';; 23298 esac;; 23299*) 23300 ECHO_N='-n';; 23301esac 23302 23303rm -f conf$$ conf$$.exe conf$$.file 23304if test -d conf$$.dir; then 23305 rm -f conf$$.dir/conf$$.file 23306else 23307 rm -f conf$$.dir 23308 mkdir conf$$.dir 2>/dev/null 23309fi 23310if (echo >conf$$.file) 2>/dev/null; then 23311 if ln -s conf$$.file conf$$ 2>/dev/null; then 23312 as_ln_s='ln -s' 23313 # ... but there are two gotchas: 23314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23316 # In both cases, we have to default to `cp -pR'. 23317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23318 as_ln_s='cp -pR' 23319 elif ln conf$$.file conf$$ 2>/dev/null; then 23320 as_ln_s=ln 23321 else 23322 as_ln_s='cp -pR' 23323 fi 23324else 23325 as_ln_s='cp -pR' 23326fi 23327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23328rmdir conf$$.dir 2>/dev/null 23329 23330 23331# as_fn_mkdir_p 23332# ------------- 23333# Create "$as_dir" as a directory, including parents if necessary. 23334as_fn_mkdir_p () 23335{ 23336 23337 case $as_dir in #( 23338 -*) as_dir=./$as_dir;; 23339 esac 23340 test -d "$as_dir" || eval $as_mkdir_p || { 23341 as_dirs= 23342 while :; do 23343 case $as_dir in #( 23344 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23345 *) as_qdir=$as_dir;; 23346 esac 23347 as_dirs="'$as_qdir' $as_dirs" 23348 as_dir=`$as_dirname -- "$as_dir" || 23349$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23350 X"$as_dir" : 'X\(//\)[^/]' \| \ 23351 X"$as_dir" : 'X\(//\)$' \| \ 23352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23353$as_echo X"$as_dir" | 23354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23355 s//\1/ 23356 q 23357 } 23358 /^X\(\/\/\)[^/].*/{ 23359 s//\1/ 23360 q 23361 } 23362 /^X\(\/\/\)$/{ 23363 s//\1/ 23364 q 23365 } 23366 /^X\(\/\).*/{ 23367 s//\1/ 23368 q 23369 } 23370 s/.*/./; q'` 23371 test -d "$as_dir" && break 23372 done 23373 test -z "$as_dirs" || eval "mkdir $as_dirs" 23374 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23375 23376 23377} # as_fn_mkdir_p 23378if mkdir -p . 2>/dev/null; then 23379 as_mkdir_p='mkdir -p "$as_dir"' 23380else 23381 test -d ./-p && rmdir ./-p 23382 as_mkdir_p=false 23383fi 23384 23385 23386# as_fn_executable_p FILE 23387# ----------------------- 23388# Test if FILE is an executable regular file. 23389as_fn_executable_p () 23390{ 23391 test -f "$1" && test -x "$1" 23392} # as_fn_executable_p 23393as_test_x='test -x' 23394as_executable_p=as_fn_executable_p 23395 23396# Sed expression to map a string onto a valid CPP name. 23397as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23398 23399# Sed expression to map a string onto a valid variable name. 23400as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23401 23402 23403exec 6>&1 23404## ----------------------------------- ## 23405## Main body of $CONFIG_STATUS script. ## 23406## ----------------------------------- ## 23407_ASEOF 23408test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23409 23410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23411# Save the log message, to keep $0 and so on meaningful, and to 23412# report actual input values of CONFIG_FILES etc. instead of their 23413# values after options handling. 23414ac_log=" 23415This file was extended by libntech $as_me 0.1.0, which was 23416generated by GNU Autoconf 2.69. Invocation command line was 23417 23418 CONFIG_FILES = $CONFIG_FILES 23419 CONFIG_HEADERS = $CONFIG_HEADERS 23420 CONFIG_LINKS = $CONFIG_LINKS 23421 CONFIG_COMMANDS = $CONFIG_COMMANDS 23422 $ $0 $@ 23423 23424on `(hostname || uname -n) 2>/dev/null | sed 1q` 23425" 23426 23427_ACEOF 23428 23429case $ac_config_files in *" 23430"*) set x $ac_config_files; shift; ac_config_files=$*;; 23431esac 23432 23433case $ac_config_headers in *" 23434"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23435esac 23436 23437 23438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23439# Files that config.status was made for. 23440config_files="$ac_config_files" 23441config_headers="$ac_config_headers" 23442config_commands="$ac_config_commands" 23443 23444_ACEOF 23445 23446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23447ac_cs_usage="\ 23448\`$as_me' instantiates files and other configuration actions 23449from templates according to the current configuration. Unless the files 23450and actions are specified as TAGs, all are instantiated by default. 23451 23452Usage: $0 [OPTION]... [TAG]... 23453 23454 -h, --help print this help, then exit 23455 -V, --version print version number and configuration settings, then exit 23456 --config print configuration, then exit 23457 -q, --quiet, --silent 23458 do not print progress messages 23459 -d, --debug don't remove temporary files 23460 --recheck update $as_me by reconfiguring in the same conditions 23461 --file=FILE[:TEMPLATE] 23462 instantiate the configuration file FILE 23463 --header=FILE[:TEMPLATE] 23464 instantiate the configuration header FILE 23465 23466Configuration files: 23467$config_files 23468 23469Configuration headers: 23470$config_headers 23471 23472Configuration commands: 23473$config_commands 23474 23475Report bugs to the package provider." 23476 23477_ACEOF 23478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23479ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23480ac_cs_version="\\ 23481libntech config.status 0.1.0 23482configured by $0, generated by GNU Autoconf 2.69, 23483 with options \\"\$ac_cs_config\\" 23484 23485Copyright (C) 2012 Free Software Foundation, Inc. 23486This config.status script is free software; the Free Software Foundation 23487gives unlimited permission to copy, distribute and modify it." 23488 23489ac_pwd='$ac_pwd' 23490srcdir='$srcdir' 23491INSTALL='$INSTALL' 23492MKDIR_P='$MKDIR_P' 23493AWK='$AWK' 23494test -n "\$AWK" || AWK=awk 23495_ACEOF 23496 23497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23498# The default lists apply if the user does not specify any file. 23499ac_need_defaults=: 23500while test $# != 0 23501do 23502 case $1 in 23503 --*=?*) 23504 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23505 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23506 ac_shift=: 23507 ;; 23508 --*=) 23509 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23510 ac_optarg= 23511 ac_shift=: 23512 ;; 23513 *) 23514 ac_option=$1 23515 ac_optarg=$2 23516 ac_shift=shift 23517 ;; 23518 esac 23519 23520 case $ac_option in 23521 # Handling of the options. 23522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23523 ac_cs_recheck=: ;; 23524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23525 $as_echo "$ac_cs_version"; exit ;; 23526 --config | --confi | --conf | --con | --co | --c ) 23527 $as_echo "$ac_cs_config"; exit ;; 23528 --debug | --debu | --deb | --de | --d | -d ) 23529 debug=: ;; 23530 --file | --fil | --fi | --f ) 23531 $ac_shift 23532 case $ac_optarg in 23533 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23534 '') as_fn_error $? "missing file argument" ;; 23535 esac 23536 as_fn_append CONFIG_FILES " '$ac_optarg'" 23537 ac_need_defaults=false;; 23538 --header | --heade | --head | --hea ) 23539 $ac_shift 23540 case $ac_optarg in 23541 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23542 esac 23543 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23544 ac_need_defaults=false;; 23545 --he | --h) 23546 # Conflict between --help and --header 23547 as_fn_error $? "ambiguous option: \`$1' 23548Try \`$0 --help' for more information.";; 23549 --help | --hel | -h ) 23550 $as_echo "$ac_cs_usage"; exit ;; 23551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23552 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23553 ac_cs_silent=: ;; 23554 23555 # This is an error. 23556 -*) as_fn_error $? "unrecognized option: \`$1' 23557Try \`$0 --help' for more information." ;; 23558 23559 *) as_fn_append ac_config_targets " $1" 23560 ac_need_defaults=false ;; 23561 23562 esac 23563 shift 23564done 23565 23566ac_configure_extra_args= 23567 23568if $ac_cs_silent; then 23569 exec 6>/dev/null 23570 ac_configure_extra_args="$ac_configure_extra_args --silent" 23571fi 23572 23573_ACEOF 23574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23575if \$ac_cs_recheck; then 23576 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23577 shift 23578 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23579 CONFIG_SHELL='$SHELL' 23580 export CONFIG_SHELL 23581 exec "\$@" 23582fi 23583 23584_ACEOF 23585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23586exec 5>>config.log 23587{ 23588 echo 23589 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23590## Running $as_me. ## 23591_ASBOX 23592 $as_echo "$ac_log" 23593} >&5 23594 23595_ACEOF 23596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23597# 23598# INIT-COMMANDS 23599# 23600AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23601 23602 23603# The HP-UX ksh and POSIX shell print the target directory to stdout 23604# if CDPATH is set. 23605(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23606 23607sed_quote_subst='$sed_quote_subst' 23608double_quote_subst='$double_quote_subst' 23609delay_variable_subst='$delay_variable_subst' 23610macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23611macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23612enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23613enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23614pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23615enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23616shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23617SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23618ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23619PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23620host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23621host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23622host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23623build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23624build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23625build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23626SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23627Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23628GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23629EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23630FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23631LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23632NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23633LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23634max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23635ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23636exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23637lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23638lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23639lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23640lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23641lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23642reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23643reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23644OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23645deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23646file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23647file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23648want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23649DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23650sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23651AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23652AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23653archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23654STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23655RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23656old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23657old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23658old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23659lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23660CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23661CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23662compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23663GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23664lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23665lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23666lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23667lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23668lt_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"`' 23669lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23670nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23671lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23672lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23673objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23674MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23675lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23676lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23677lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23678lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23679lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23680need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23681MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23682DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23683NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23684LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23685OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23686OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23687libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23688shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23689extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23690archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23691enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23692export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23693whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23694compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23695old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23696old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23697archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23698archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23699module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23700module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23701with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23702allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23703no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23704hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23705hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23706hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23707hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23708hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23709hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23710hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23711inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23712link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23713always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23714export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23715exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23716include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23717prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23718postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23719file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23720variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23721need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23722need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23723version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23724runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23725shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23726shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23727libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23728library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23729soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23730install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23731postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23732postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23733finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23734finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23735hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23736sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23737configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23738configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23739hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23740enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23741enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23742enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23743old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23744striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23745 23746LTCC='$LTCC' 23747LTCFLAGS='$LTCFLAGS' 23748compiler='$compiler_DEFAULT' 23749 23750# A function that is used when there is no print builtin or printf. 23751func_fallback_echo () 23752{ 23753 eval 'cat <<_LTECHO_EOF 23754\$1 23755_LTECHO_EOF' 23756} 23757 23758# Quote evaled strings. 23759for var in SHELL \ 23760ECHO \ 23761PATH_SEPARATOR \ 23762SED \ 23763GREP \ 23764EGREP \ 23765FGREP \ 23766LD \ 23767NM \ 23768LN_S \ 23769lt_SP2NL \ 23770lt_NL2SP \ 23771reload_flag \ 23772OBJDUMP \ 23773deplibs_check_method \ 23774file_magic_cmd \ 23775file_magic_glob \ 23776want_nocaseglob \ 23777DLLTOOL \ 23778sharedlib_from_linklib_cmd \ 23779AR \ 23780AR_FLAGS \ 23781archiver_list_spec \ 23782STRIP \ 23783RANLIB \ 23784CC \ 23785CFLAGS \ 23786compiler \ 23787lt_cv_sys_global_symbol_pipe \ 23788lt_cv_sys_global_symbol_to_cdecl \ 23789lt_cv_sys_global_symbol_to_import \ 23790lt_cv_sys_global_symbol_to_c_name_address \ 23791lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23792lt_cv_nm_interface \ 23793nm_file_list_spec \ 23794lt_cv_truncate_bin \ 23795lt_prog_compiler_no_builtin_flag \ 23796lt_prog_compiler_pic \ 23797lt_prog_compiler_wl \ 23798lt_prog_compiler_static \ 23799lt_cv_prog_compiler_c_o \ 23800need_locks \ 23801MANIFEST_TOOL \ 23802DSYMUTIL \ 23803NMEDIT \ 23804LIPO \ 23805OTOOL \ 23806OTOOL64 \ 23807shrext_cmds \ 23808export_dynamic_flag_spec \ 23809whole_archive_flag_spec \ 23810compiler_needs_object \ 23811with_gnu_ld \ 23812allow_undefined_flag \ 23813no_undefined_flag \ 23814hardcode_libdir_flag_spec \ 23815hardcode_libdir_separator \ 23816exclude_expsyms \ 23817include_expsyms \ 23818file_list_spec \ 23819variables_saved_for_relink \ 23820libname_spec \ 23821library_names_spec \ 23822soname_spec \ 23823install_override_mode \ 23824finish_eval \ 23825old_striplib \ 23826striplib; do 23827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23828 *[\\\\\\\`\\"\\\$]*) 23829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23830 ;; 23831 *) 23832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23833 ;; 23834 esac 23835done 23836 23837# Double-quote double-evaled strings. 23838for var in reload_cmds \ 23839old_postinstall_cmds \ 23840old_postuninstall_cmds \ 23841old_archive_cmds \ 23842extract_expsyms_cmds \ 23843old_archive_from_new_cmds \ 23844old_archive_from_expsyms_cmds \ 23845archive_cmds \ 23846archive_expsym_cmds \ 23847module_cmds \ 23848module_expsym_cmds \ 23849export_symbols_cmds \ 23850prelink_cmds \ 23851postlink_cmds \ 23852postinstall_cmds \ 23853postuninstall_cmds \ 23854finish_cmds \ 23855sys_lib_search_path_spec \ 23856configure_time_dlsearch_path \ 23857configure_time_lt_sys_library_path; do 23858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23859 *[\\\\\\\`\\"\\\$]*) 23860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23861 ;; 23862 *) 23863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23864 ;; 23865 esac 23866done 23867 23868ac_aux_dir='$ac_aux_dir' 23869 23870# See if we are running on zsh, and set the options that allow our 23871# commands through without removal of \ escapes INIT. 23872if test -n "\${ZSH_VERSION+set}"; then 23873 setopt NO_GLOB_SUBST 23874fi 23875 23876 23877 PACKAGE='$PACKAGE' 23878 VERSION='$VERSION' 23879 RM='$RM' 23880 ofile='$ofile' 23881 23882 23883 23884 23885_ACEOF 23886 23887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23888 23889# Handling of arguments. 23890for ac_config_target in $ac_config_targets 23891do 23892 case $ac_config_target in 23893 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23894 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23895 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23896 "configure_flags.env") CONFIG_FILES="$CONFIG_FILES configure_flags.env" ;; 23897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23898 "libcompat/Makefile") CONFIG_FILES="$CONFIG_FILES libcompat/Makefile" ;; 23899 "libutils/Makefile") CONFIG_FILES="$CONFIG_FILES libutils/Makefile" ;; 23900 "config.post.h") CONFIG_FILES="$CONFIG_FILES config.post.h" ;; 23901 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 23902 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; 23903 23904 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23905 esac 23906done 23907 23908 23909# If the user did not use the arguments to specify the items to instantiate, 23910# then the envvar interface is used. Set only those that are not. 23911# We use the long form for the default assignment because of an extremely 23912# bizarre bug on SunOS 4.1.3. 23913if $ac_need_defaults; then 23914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23917fi 23918 23919# Have a temporary directory for convenience. Make it in the build tree 23920# simply because there is no reason against having it here, and in addition, 23921# creating and moving files from /tmp can sometimes cause problems. 23922# Hook for its removal unless debugging. 23923# Note that there is a small window in which the directory will not be cleaned: 23924# after its creation but before its name has been assigned to `$tmp'. 23925$debug || 23926{ 23927 tmp= ac_tmp= 23928 trap 'exit_status=$? 23929 : "${ac_tmp:=$tmp}" 23930 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23931' 0 23932 trap 'as_fn_exit 1' 1 2 13 15 23933} 23934# Create a (secure) tmp directory for tmp files. 23935 23936{ 23937 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23938 test -d "$tmp" 23939} || 23940{ 23941 tmp=./conf$$-$RANDOM 23942 (umask 077 && mkdir "$tmp") 23943} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23944ac_tmp=$tmp 23945 23946# Set up the scripts for CONFIG_FILES section. 23947# No need to generate them if there are no CONFIG_FILES. 23948# This happens for instance with `./config.status config.h'. 23949if test -n "$CONFIG_FILES"; then 23950 23951 23952ac_cr=`echo X | tr X '\015'` 23953# On cygwin, bash can eat \r inside `` if the user requested igncr. 23954# But we know of no other shell where ac_cr would be empty at this 23955# point, so we can use a bashism as a fallback. 23956if test "x$ac_cr" = x; then 23957 eval ac_cr=\$\'\\r\' 23958fi 23959ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23960if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23961 ac_cs_awk_cr='\\r' 23962else 23963 ac_cs_awk_cr=$ac_cr 23964fi 23965 23966echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23967_ACEOF 23968 23969 23970{ 23971 echo "cat >conf$$subs.awk <<_ACEOF" && 23972 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23973 echo "_ACEOF" 23974} >conf$$subs.sh || 23975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23976ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23977ac_delim='%!_!# ' 23978for ac_last_try in false false false false false :; do 23979 . ./conf$$subs.sh || 23980 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23981 23982 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23983 if test $ac_delim_n = $ac_delim_num; then 23984 break 23985 elif $ac_last_try; then 23986 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23987 else 23988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23989 fi 23990done 23991rm -f conf$$subs.sh 23992 23993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23994cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23995_ACEOF 23996sed -n ' 23997h 23998s/^/S["/; s/!.*/"]=/ 23999p 24000g 24001s/^[^!]*!// 24002:repl 24003t repl 24004s/'"$ac_delim"'$// 24005t delim 24006:nl 24007h 24008s/\(.\{148\}\)..*/\1/ 24009t more1 24010s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24011p 24012n 24013b repl 24014:more1 24015s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24016p 24017g 24018s/.\{148\}// 24019t nl 24020:delim 24021h 24022s/\(.\{148\}\)..*/\1/ 24023t more2 24024s/["\\]/\\&/g; s/^/"/; s/$/"/ 24025p 24026b 24027:more2 24028s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24029p 24030g 24031s/.\{148\}// 24032t delim 24033' <conf$$subs.awk | sed ' 24034/^[^""]/{ 24035 N 24036 s/\n// 24037} 24038' >>$CONFIG_STATUS || ac_write_fail=1 24039rm -f conf$$subs.awk 24040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24041_ACAWK 24042cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24043 for (key in S) S_is_set[key] = 1 24044 FS = "" 24045 24046} 24047{ 24048 line = $ 0 24049 nfields = split(line, field, "@") 24050 substed = 0 24051 len = length(field[1]) 24052 for (i = 2; i < nfields; i++) { 24053 key = field[i] 24054 keylen = length(key) 24055 if (S_is_set[key]) { 24056 value = S[key] 24057 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24058 len += length(value) + length(field[++i]) 24059 substed = 1 24060 } else 24061 len += 1 + keylen 24062 } 24063 24064 print line 24065} 24066 24067_ACAWK 24068_ACEOF 24069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24070if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24071 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24072else 24073 cat 24074fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24075 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24076_ACEOF 24077 24078# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24079# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24080# trailing colons and then remove the whole line if VPATH becomes empty 24081# (actually we leave an empty line to preserve line numbers). 24082if test "x$srcdir" = x.; then 24083 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24084h 24085s/// 24086s/^/:/ 24087s/[ ]*$/:/ 24088s/:\$(srcdir):/:/g 24089s/:\${srcdir}:/:/g 24090s/:@srcdir@:/:/g 24091s/^:*// 24092s/:*$// 24093x 24094s/\(=[ ]*\).*/\1/ 24095G 24096s/\n// 24097s/^[^=]*=[ ]*$// 24098}' 24099fi 24100 24101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24102fi # test -n "$CONFIG_FILES" 24103 24104# Set up the scripts for CONFIG_HEADERS section. 24105# No need to generate them if there are no CONFIG_HEADERS. 24106# This happens for instance with `./config.status Makefile'. 24107if test -n "$CONFIG_HEADERS"; then 24108cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24109BEGIN { 24110_ACEOF 24111 24112# Transform confdefs.h into an awk script `defines.awk', embedded as 24113# here-document in config.status, that substitutes the proper values into 24114# config.h.in to produce config.h. 24115 24116# Create a delimiter string that does not exist in confdefs.h, to ease 24117# handling of long lines. 24118ac_delim='%!_!# ' 24119for ac_last_try in false false :; do 24120 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24121 if test -z "$ac_tt"; then 24122 break 24123 elif $ac_last_try; then 24124 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24125 else 24126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24127 fi 24128done 24129 24130# For the awk script, D is an array of macro values keyed by name, 24131# likewise P contains macro parameters if any. Preserve backslash 24132# newline sequences. 24133 24134ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24135sed -n ' 24136s/.\{148\}/&'"$ac_delim"'/g 24137t rset 24138:rset 24139s/^[ ]*#[ ]*define[ ][ ]*/ / 24140t def 24141d 24142:def 24143s/\\$// 24144t bsnl 24145s/["\\]/\\&/g 24146s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24147D["\1"]=" \3"/p 24148s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24149d 24150:bsnl 24151s/["\\]/\\&/g 24152s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24153D["\1"]=" \3\\\\\\n"\\/p 24154t cont 24155s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24156t cont 24157d 24158:cont 24159n 24160s/.\{148\}/&'"$ac_delim"'/g 24161t clear 24162:clear 24163s/\\$// 24164t bsnlc 24165s/["\\]/\\&/g; s/^/"/; s/$/"/p 24166d 24167:bsnlc 24168s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24169b cont 24170' <confdefs.h | sed ' 24171s/'"$ac_delim"'/"\\\ 24172"/g' >>$CONFIG_STATUS || ac_write_fail=1 24173 24174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24175 for (key in D) D_is_set[key] = 1 24176 FS = "" 24177} 24178/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24179 line = \$ 0 24180 split(line, arg, " ") 24181 if (arg[1] == "#") { 24182 defundef = arg[2] 24183 mac1 = arg[3] 24184 } else { 24185 defundef = substr(arg[1], 2) 24186 mac1 = arg[2] 24187 } 24188 split(mac1, mac2, "(") #) 24189 macro = mac2[1] 24190 prefix = substr(line, 1, index(line, defundef) - 1) 24191 if (D_is_set[macro]) { 24192 # Preserve the white space surrounding the "#". 24193 print prefix "define", macro P[macro] D[macro] 24194 next 24195 } else { 24196 # Replace #undef with comments. This is necessary, for example, 24197 # in the case of _POSIX_SOURCE, which is predefined and required 24198 # on some systems where configure will not decide to define it. 24199 if (defundef == "undef") { 24200 print "/*", prefix defundef, macro, "*/" 24201 next 24202 } 24203 } 24204} 24205{ print } 24206_ACAWK 24207_ACEOF 24208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24209 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24210fi # test -n "$CONFIG_HEADERS" 24211 24212 24213eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24214shift 24215for ac_tag 24216do 24217 case $ac_tag in 24218 :[FHLC]) ac_mode=$ac_tag; continue;; 24219 esac 24220 case $ac_mode$ac_tag in 24221 :[FHL]*:*);; 24222 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24223 :[FH]-) ac_tag=-:-;; 24224 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24225 esac 24226 ac_save_IFS=$IFS 24227 IFS=: 24228 set x $ac_tag 24229 IFS=$ac_save_IFS 24230 shift 24231 ac_file=$1 24232 shift 24233 24234 case $ac_mode in 24235 :L) ac_source=$1;; 24236 :[FH]) 24237 ac_file_inputs= 24238 for ac_f 24239 do 24240 case $ac_f in 24241 -) ac_f="$ac_tmp/stdin";; 24242 *) # Look for the file first in the build tree, then in the source tree 24243 # (if the path is not absolute). The absolute path cannot be DOS-style, 24244 # because $ac_f cannot contain `:'. 24245 test -f "$ac_f" || 24246 case $ac_f in 24247 [\\/$]*) false;; 24248 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24249 esac || 24250 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24251 esac 24252 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24253 as_fn_append ac_file_inputs " '$ac_f'" 24254 done 24255 24256 # Let's still pretend it is `configure' which instantiates (i.e., don't 24257 # use $as_me), people would be surprised to read: 24258 # /* config.h. Generated by config.status. */ 24259 configure_input='Generated from '` 24260 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24261 `' by configure.' 24262 if test x"$ac_file" != x-; then 24263 configure_input="$ac_file. $configure_input" 24264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24265$as_echo "$as_me: creating $ac_file" >&6;} 24266 fi 24267 # Neutralize special characters interpreted by sed in replacement strings. 24268 case $configure_input in #( 24269 *\&* | *\|* | *\\* ) 24270 ac_sed_conf_input=`$as_echo "$configure_input" | 24271 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24272 *) ac_sed_conf_input=$configure_input;; 24273 esac 24274 24275 case $ac_tag in 24276 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24278 esac 24279 ;; 24280 esac 24281 24282 ac_dir=`$as_dirname -- "$ac_file" || 24283$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24284 X"$ac_file" : 'X\(//\)[^/]' \| \ 24285 X"$ac_file" : 'X\(//\)$' \| \ 24286 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24287$as_echo X"$ac_file" | 24288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24289 s//\1/ 24290 q 24291 } 24292 /^X\(\/\/\)[^/].*/{ 24293 s//\1/ 24294 q 24295 } 24296 /^X\(\/\/\)$/{ 24297 s//\1/ 24298 q 24299 } 24300 /^X\(\/\).*/{ 24301 s//\1/ 24302 q 24303 } 24304 s/.*/./; q'` 24305 as_dir="$ac_dir"; as_fn_mkdir_p 24306 ac_builddir=. 24307 24308case "$ac_dir" in 24309.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24310*) 24311 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24312 # A ".." for each directory in $ac_dir_suffix. 24313 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24314 case $ac_top_builddir_sub in 24315 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24316 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24317 esac ;; 24318esac 24319ac_abs_top_builddir=$ac_pwd 24320ac_abs_builddir=$ac_pwd$ac_dir_suffix 24321# for backward compatibility: 24322ac_top_builddir=$ac_top_build_prefix 24323 24324case $srcdir in 24325 .) # We are building in place. 24326 ac_srcdir=. 24327 ac_top_srcdir=$ac_top_builddir_sub 24328 ac_abs_top_srcdir=$ac_pwd ;; 24329 [\\/]* | ?:[\\/]* ) # Absolute name. 24330 ac_srcdir=$srcdir$ac_dir_suffix; 24331 ac_top_srcdir=$srcdir 24332 ac_abs_top_srcdir=$srcdir ;; 24333 *) # Relative name. 24334 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24335 ac_top_srcdir=$ac_top_build_prefix$srcdir 24336 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24337esac 24338ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24339 24340 24341 case $ac_mode in 24342 :F) 24343 # 24344 # CONFIG_FILE 24345 # 24346 24347 case $INSTALL in 24348 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24349 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24350 esac 24351 ac_MKDIR_P=$MKDIR_P 24352 case $MKDIR_P in 24353 [\\/$]* | ?:[\\/]* ) ;; 24354 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24355 esac 24356_ACEOF 24357 24358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24359# If the template does not know about datarootdir, expand it. 24360# FIXME: This hack should be removed a few years after 2.60. 24361ac_datarootdir_hack=; ac_datarootdir_seen= 24362ac_sed_dataroot=' 24363/datarootdir/ { 24364 p 24365 q 24366} 24367/@datadir@/p 24368/@docdir@/p 24369/@infodir@/p 24370/@localedir@/p 24371/@mandir@/p' 24372case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24373*datarootdir*) ac_datarootdir_seen=yes;; 24374*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24376$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24377_ACEOF 24378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24379 ac_datarootdir_hack=' 24380 s&@datadir@&$datadir&g 24381 s&@docdir@&$docdir&g 24382 s&@infodir@&$infodir&g 24383 s&@localedir@&$localedir&g 24384 s&@mandir@&$mandir&g 24385 s&\\\${datarootdir}&$datarootdir&g' ;; 24386esac 24387_ACEOF 24388 24389# Neutralize VPATH when `$srcdir' = `.'. 24390# Shell code in configure.ac might set extrasub. 24391# FIXME: do we really want to maintain this feature? 24392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24393ac_sed_extra="$ac_vpsub 24394$extrasub 24395_ACEOF 24396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24397:t 24398/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24399s|@configure_input@|$ac_sed_conf_input|;t t 24400s&@top_builddir@&$ac_top_builddir_sub&;t t 24401s&@top_build_prefix@&$ac_top_build_prefix&;t t 24402s&@srcdir@&$ac_srcdir&;t t 24403s&@abs_srcdir@&$ac_abs_srcdir&;t t 24404s&@top_srcdir@&$ac_top_srcdir&;t t 24405s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24406s&@builddir@&$ac_builddir&;t t 24407s&@abs_builddir@&$ac_abs_builddir&;t t 24408s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24409s&@INSTALL@&$ac_INSTALL&;t t 24410s&@MKDIR_P@&$ac_MKDIR_P&;t t 24411$ac_datarootdir_hack 24412" 24413eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24414 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24415 24416test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24417 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24419 "$ac_tmp/out"`; test -z "$ac_out"; } && 24420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24421which seems to be undefined. Please make sure it is defined" >&5 24422$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24423which seems to be undefined. Please make sure it is defined" >&2;} 24424 24425 rm -f "$ac_tmp/stdin" 24426 case $ac_file in 24427 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24428 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24429 esac \ 24430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24431 ;; 24432 :H) 24433 # 24434 # CONFIG_HEADER 24435 # 24436 if test x"$ac_file" != x-; then 24437 { 24438 $as_echo "/* $configure_input */" \ 24439 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24440 } >"$ac_tmp/config.h" \ 24441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24442 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24443 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24444$as_echo "$as_me: $ac_file is unchanged" >&6;} 24445 else 24446 rm -f "$ac_file" 24447 mv "$ac_tmp/config.h" "$ac_file" \ 24448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24449 fi 24450 else 24451 $as_echo "/* $configure_input */" \ 24452 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24453 || as_fn_error $? "could not create -" "$LINENO" 5 24454 fi 24455# Compute "$ac_file"'s index in $config_headers. 24456_am_arg="$ac_file" 24457_am_stamp_count=1 24458for _am_header in $config_headers :; do 24459 case $_am_header in 24460 $_am_arg | $_am_arg:* ) 24461 break ;; 24462 * ) 24463 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24464 esac 24465done 24466echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24467$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24468 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24469 X"$_am_arg" : 'X\(//\)$' \| \ 24470 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24471$as_echo X"$_am_arg" | 24472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24473 s//\1/ 24474 q 24475 } 24476 /^X\(\/\/\)[^/].*/{ 24477 s//\1/ 24478 q 24479 } 24480 /^X\(\/\/\)$/{ 24481 s//\1/ 24482 q 24483 } 24484 /^X\(\/\).*/{ 24485 s//\1/ 24486 q 24487 } 24488 s/.*/./; q'`/stamp-h$_am_stamp_count 24489 ;; 24490 24491 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24492$as_echo "$as_me: executing $ac_file commands" >&6;} 24493 ;; 24494 esac 24495 24496 24497 case $ac_file$ac_mode in 24498 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24499 # Older Autoconf quotes --file arguments for eval, but not when files 24500 # are listed without --file. Let's play safe and only enable the eval 24501 # if we detect the quoting. 24502 case $CONFIG_FILES in 24503 *\'*) eval set x "$CONFIG_FILES" ;; 24504 *) set x $CONFIG_FILES ;; 24505 esac 24506 shift 24507 for mf 24508 do 24509 # Strip MF so we end up with the name of the file. 24510 mf=`echo "$mf" | sed -e 's/:.*$//'` 24511 # Check whether this is an Automake generated Makefile or not. 24512 # We used to match only the files named 'Makefile.in', but 24513 # some people rename them; so instead we look at the file content. 24514 # Grep'ing the first line is not enough: some people post-process 24515 # each Makefile.in and add a new line on top of each file to say so. 24516 # Grep'ing the whole file is not good either: AIX grep has a line 24517 # limit of 2048, but all sed's we know have understand at least 4000. 24518 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24519 dirpart=`$as_dirname -- "$mf" || 24520$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24521 X"$mf" : 'X\(//\)[^/]' \| \ 24522 X"$mf" : 'X\(//\)$' \| \ 24523 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24524$as_echo X"$mf" | 24525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24526 s//\1/ 24527 q 24528 } 24529 /^X\(\/\/\)[^/].*/{ 24530 s//\1/ 24531 q 24532 } 24533 /^X\(\/\/\)$/{ 24534 s//\1/ 24535 q 24536 } 24537 /^X\(\/\).*/{ 24538 s//\1/ 24539 q 24540 } 24541 s/.*/./; q'` 24542 else 24543 continue 24544 fi 24545 # Extract the definition of DEPDIR, am__include, and am__quote 24546 # from the Makefile without running 'make'. 24547 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24548 test -z "$DEPDIR" && continue 24549 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24550 test -z "$am__include" && continue 24551 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24552 # Find all dependency output files, they are included files with 24553 # $(DEPDIR) in their names. We invoke sed twice because it is the 24554 # simplest approach to changing $(DEPDIR) to its actual value in the 24555 # expansion. 24556 for file in `sed -n " 24557 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24558 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 24559 # Make sure the directory exists. 24560 test -f "$dirpart/$file" && continue 24561 fdir=`$as_dirname -- "$file" || 24562$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24563 X"$file" : 'X\(//\)[^/]' \| \ 24564 X"$file" : 'X\(//\)$' \| \ 24565 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24566$as_echo X"$file" | 24567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24568 s//\1/ 24569 q 24570 } 24571 /^X\(\/\/\)[^/].*/{ 24572 s//\1/ 24573 q 24574 } 24575 /^X\(\/\/\)$/{ 24576 s//\1/ 24577 q 24578 } 24579 /^X\(\/\).*/{ 24580 s//\1/ 24581 q 24582 } 24583 s/.*/./; q'` 24584 as_dir=$dirpart/$fdir; as_fn_mkdir_p 24585 # echo "creating $dirpart/$file" 24586 echo '# dummy' > "$dirpart/$file" 24587 done 24588 done 24589} 24590 ;; 24591 "libtool":C) 24592 24593 # See if we are running on zsh, and set the options that allow our 24594 # commands through without removal of \ escapes. 24595 if test -n "${ZSH_VERSION+set}"; then 24596 setopt NO_GLOB_SUBST 24597 fi 24598 24599 cfgfile=${ofile}T 24600 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24601 $RM "$cfgfile" 24602 24603 cat <<_LT_EOF >> "$cfgfile" 24604#! $SHELL 24605# Generated automatically by $as_me ($PACKAGE) $VERSION 24606# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24607 24608# Provide generalized library-building support services. 24609# Written by Gordon Matzigkeit, 1996 24610 24611# Copyright (C) 2014 Free Software Foundation, Inc. 24612# This is free software; see the source for copying conditions. There is NO 24613# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24614 24615# GNU Libtool is free software; you can redistribute it and/or modify 24616# it under the terms of the GNU General Public License as published by 24617# the Free Software Foundation; either version 2 of of the License, or 24618# (at your option) any later version. 24619# 24620# As a special exception to the GNU General Public License, if you 24621# distribute this file as part of a program or library that is built 24622# using GNU Libtool, you may include this file under the same 24623# distribution terms that you use for the rest of that program. 24624# 24625# GNU Libtool is distributed in the hope that it will be useful, but 24626# WITHOUT ANY WARRANTY; without even the implied warranty of 24627# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24628# GNU General Public License for more details. 24629# 24630# You should have received a copy of the GNU General Public License 24631# along with this program. If not, see <http://www.gnu.org/licenses/>. 24632 24633 24634# The names of the tagged configurations supported by this script. 24635available_tags='' 24636 24637# Configured defaults for sys_lib_dlsearch_path munging. 24638: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24639 24640# ### BEGIN LIBTOOL CONFIG 24641 24642# Which release of libtool.m4 was used? 24643macro_version=$macro_version 24644macro_revision=$macro_revision 24645 24646# Whether or not to build static libraries. 24647build_old_libs=$enable_static 24648 24649# Whether or not to build shared libraries. 24650build_libtool_libs=$enable_shared 24651 24652# What type of objects to build. 24653pic_mode=$pic_mode 24654 24655# Whether or not to optimize for fast installation. 24656fast_install=$enable_fast_install 24657 24658# Shared archive member basename,for filename based shared library versioning on AIX. 24659shared_archive_member_spec=$shared_archive_member_spec 24660 24661# Shell to use when invoking shell scripts. 24662SHELL=$lt_SHELL 24663 24664# An echo program that protects backslashes. 24665ECHO=$lt_ECHO 24666 24667# The PATH separator for the build system. 24668PATH_SEPARATOR=$lt_PATH_SEPARATOR 24669 24670# The host system. 24671host_alias=$host_alias 24672host=$host 24673host_os=$host_os 24674 24675# The build system. 24676build_alias=$build_alias 24677build=$build 24678build_os=$build_os 24679 24680# A sed program that does not truncate output. 24681SED=$lt_SED 24682 24683# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24684Xsed="\$SED -e 1s/^X//" 24685 24686# A grep program that handles long lines. 24687GREP=$lt_GREP 24688 24689# An ERE matcher. 24690EGREP=$lt_EGREP 24691 24692# A literal string matcher. 24693FGREP=$lt_FGREP 24694 24695# A BSD- or MS-compatible name lister. 24696NM=$lt_NM 24697 24698# Whether we need soft or hard links. 24699LN_S=$lt_LN_S 24700 24701# What is the maximum length of a command? 24702max_cmd_len=$max_cmd_len 24703 24704# Object file suffix (normally "o"). 24705objext=$ac_objext 24706 24707# Executable file suffix (normally ""). 24708exeext=$exeext 24709 24710# whether the shell understands "unset". 24711lt_unset=$lt_unset 24712 24713# turn spaces into newlines. 24714SP2NL=$lt_lt_SP2NL 24715 24716# turn newlines into spaces. 24717NL2SP=$lt_lt_NL2SP 24718 24719# convert \$build file names to \$host format. 24720to_host_file_cmd=$lt_cv_to_host_file_cmd 24721 24722# convert \$build files to toolchain format. 24723to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24724 24725# An object symbol dumper. 24726OBJDUMP=$lt_OBJDUMP 24727 24728# Method to check whether dependent libraries are shared objects. 24729deplibs_check_method=$lt_deplibs_check_method 24730 24731# Command to use when deplibs_check_method = "file_magic". 24732file_magic_cmd=$lt_file_magic_cmd 24733 24734# How to find potential files when deplibs_check_method = "file_magic". 24735file_magic_glob=$lt_file_magic_glob 24736 24737# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24738want_nocaseglob=$lt_want_nocaseglob 24739 24740# DLL creation program. 24741DLLTOOL=$lt_DLLTOOL 24742 24743# Command to associate shared and link libraries. 24744sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24745 24746# The archiver. 24747AR=$lt_AR 24748 24749# Flags to create an archive. 24750AR_FLAGS=$lt_AR_FLAGS 24751 24752# How to feed a file listing to the archiver. 24753archiver_list_spec=$lt_archiver_list_spec 24754 24755# A symbol stripping program. 24756STRIP=$lt_STRIP 24757 24758# Commands used to install an old-style archive. 24759RANLIB=$lt_RANLIB 24760old_postinstall_cmds=$lt_old_postinstall_cmds 24761old_postuninstall_cmds=$lt_old_postuninstall_cmds 24762 24763# Whether to use a lock for old archive extraction. 24764lock_old_archive_extraction=$lock_old_archive_extraction 24765 24766# A C compiler. 24767LTCC=$lt_CC 24768 24769# LTCC compiler flags. 24770LTCFLAGS=$lt_CFLAGS 24771 24772# Take the output of nm and produce a listing of raw symbols and C names. 24773global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24774 24775# Transform the output of nm in a proper C declaration. 24776global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24777 24778# Transform the output of nm into a list of symbols to manually relocate. 24779global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24780 24781# Transform the output of nm in a C name address pair. 24782global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24783 24784# Transform the output of nm in a C name address pair when lib prefix is needed. 24785global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24786 24787# The name lister interface. 24788nm_interface=$lt_lt_cv_nm_interface 24789 24790# Specify filename containing input files for \$NM. 24791nm_file_list_spec=$lt_nm_file_list_spec 24792 24793# The root where to search for dependent libraries,and where our libraries should be installed. 24794lt_sysroot=$lt_sysroot 24795 24796# Command to truncate a binary pipe. 24797lt_truncate_bin=$lt_lt_cv_truncate_bin 24798 24799# The name of the directory that contains temporary libtool files. 24800objdir=$objdir 24801 24802# Used to examine libraries when file_magic_cmd begins with "file". 24803MAGIC_CMD=$MAGIC_CMD 24804 24805# Must we lock files when doing compilation? 24806need_locks=$lt_need_locks 24807 24808# Manifest tool. 24809MANIFEST_TOOL=$lt_MANIFEST_TOOL 24810 24811# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24812DSYMUTIL=$lt_DSYMUTIL 24813 24814# Tool to change global to local symbols on Mac OS X. 24815NMEDIT=$lt_NMEDIT 24816 24817# Tool to manipulate fat objects and archives on Mac OS X. 24818LIPO=$lt_LIPO 24819 24820# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24821OTOOL=$lt_OTOOL 24822 24823# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24824OTOOL64=$lt_OTOOL64 24825 24826# Old archive suffix (normally "a"). 24827libext=$libext 24828 24829# Shared library suffix (normally ".so"). 24830shrext_cmds=$lt_shrext_cmds 24831 24832# The commands to extract the exported symbol list from a shared archive. 24833extract_expsyms_cmds=$lt_extract_expsyms_cmds 24834 24835# Variables whose values should be saved in libtool wrapper scripts and 24836# restored at link time. 24837variables_saved_for_relink=$lt_variables_saved_for_relink 24838 24839# Do we need the "lib" prefix for modules? 24840need_lib_prefix=$need_lib_prefix 24841 24842# Do we need a version for libraries? 24843need_version=$need_version 24844 24845# Library versioning type. 24846version_type=$version_type 24847 24848# Shared library runtime path variable. 24849runpath_var=$runpath_var 24850 24851# Shared library path variable. 24852shlibpath_var=$shlibpath_var 24853 24854# Is shlibpath searched before the hard-coded library search path? 24855shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24856 24857# Format of library name prefix. 24858libname_spec=$lt_libname_spec 24859 24860# List of archive names. First name is the real one, the rest are links. 24861# The last name is the one that the linker finds with -lNAME 24862library_names_spec=$lt_library_names_spec 24863 24864# The coded name of the library, if different from the real name. 24865soname_spec=$lt_soname_spec 24866 24867# Permission mode override for installation of shared libraries. 24868install_override_mode=$lt_install_override_mode 24869 24870# Command to use after installation of a shared archive. 24871postinstall_cmds=$lt_postinstall_cmds 24872 24873# Command to use after uninstallation of a shared archive. 24874postuninstall_cmds=$lt_postuninstall_cmds 24875 24876# Commands used to finish a libtool library installation in a directory. 24877finish_cmds=$lt_finish_cmds 24878 24879# As "finish_cmds", except a single script fragment to be evaled but 24880# not shown. 24881finish_eval=$lt_finish_eval 24882 24883# Whether we should hardcode library paths into libraries. 24884hardcode_into_libs=$hardcode_into_libs 24885 24886# Compile-time system search path for libraries. 24887sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24888 24889# Detected run-time system search path for libraries. 24890sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24891 24892# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24893configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24894 24895# Whether dlopen is supported. 24896dlopen_support=$enable_dlopen 24897 24898# Whether dlopen of programs is supported. 24899dlopen_self=$enable_dlopen_self 24900 24901# Whether dlopen of statically linked programs is supported. 24902dlopen_self_static=$enable_dlopen_self_static 24903 24904# Commands to strip libraries. 24905old_striplib=$lt_old_striplib 24906striplib=$lt_striplib 24907 24908 24909# The linker used to build libraries. 24910LD=$lt_LD 24911 24912# How to create reloadable object files. 24913reload_flag=$lt_reload_flag 24914reload_cmds=$lt_reload_cmds 24915 24916# Commands used to build an old-style archive. 24917old_archive_cmds=$lt_old_archive_cmds 24918 24919# A language specific compiler. 24920CC=$lt_compiler 24921 24922# Is the compiler the GNU compiler? 24923with_gcc=$GCC 24924 24925# Compiler flag to turn off builtin functions. 24926no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24927 24928# Additional compiler flags for building library objects. 24929pic_flag=$lt_lt_prog_compiler_pic 24930 24931# How to pass a linker flag through the compiler. 24932wl=$lt_lt_prog_compiler_wl 24933 24934# Compiler flag to prevent dynamic linking. 24935link_static_flag=$lt_lt_prog_compiler_static 24936 24937# Does compiler simultaneously support -c and -o options? 24938compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24939 24940# Whether or not to add -lc for building shared libraries. 24941build_libtool_need_lc=$archive_cmds_need_lc 24942 24943# Whether or not to disallow shared libs when runtime libs are static. 24944allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24945 24946# Compiler flag to allow reflexive dlopens. 24947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24948 24949# Compiler flag to generate shared objects directly from archives. 24950whole_archive_flag_spec=$lt_whole_archive_flag_spec 24951 24952# Whether the compiler copes with passing no objects directly. 24953compiler_needs_object=$lt_compiler_needs_object 24954 24955# Create an old-style archive from a shared archive. 24956old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24957 24958# Create a temporary old-style archive to link instead of a shared archive. 24959old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24960 24961# Commands used to build a shared archive. 24962archive_cmds=$lt_archive_cmds 24963archive_expsym_cmds=$lt_archive_expsym_cmds 24964 24965# Commands used to build a loadable module if different from building 24966# a shared archive. 24967module_cmds=$lt_module_cmds 24968module_expsym_cmds=$lt_module_expsym_cmds 24969 24970# Whether we are building with GNU ld or not. 24971with_gnu_ld=$lt_with_gnu_ld 24972 24973# Flag that allows shared libraries with undefined symbols to be built. 24974allow_undefined_flag=$lt_allow_undefined_flag 24975 24976# Flag that enforces no undefined symbols. 24977no_undefined_flag=$lt_no_undefined_flag 24978 24979# Flag to hardcode \$libdir into a binary during linking. 24980# This must work even if \$libdir does not exist 24981hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24982 24983# Whether we need a single "-rpath" flag with a separated argument. 24984hardcode_libdir_separator=$lt_hardcode_libdir_separator 24985 24986# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24987# DIR into the resulting binary. 24988hardcode_direct=$hardcode_direct 24989 24990# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24991# DIR into the resulting binary and the resulting library dependency is 24992# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24993# library is relocated. 24994hardcode_direct_absolute=$hardcode_direct_absolute 24995 24996# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24997# into the resulting binary. 24998hardcode_minus_L=$hardcode_minus_L 24999 25000# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25001# into the resulting binary. 25002hardcode_shlibpath_var=$hardcode_shlibpath_var 25003 25004# Set to "yes" if building a shared library automatically hardcodes DIR 25005# into the library and all subsequent libraries and executables linked 25006# against it. 25007hardcode_automatic=$hardcode_automatic 25008 25009# Set to yes if linker adds runtime paths of dependent libraries 25010# to runtime path list. 25011inherit_rpath=$inherit_rpath 25012 25013# Whether libtool must link a program against all its dependency libraries. 25014link_all_deplibs=$link_all_deplibs 25015 25016# Set to "yes" if exported symbols are required. 25017always_export_symbols=$always_export_symbols 25018 25019# The commands to list exported symbols. 25020export_symbols_cmds=$lt_export_symbols_cmds 25021 25022# Symbols that should not be listed in the preloaded symbols. 25023exclude_expsyms=$lt_exclude_expsyms 25024 25025# Symbols that must always be exported. 25026include_expsyms=$lt_include_expsyms 25027 25028# Commands necessary for linking programs (against libraries) with templates. 25029prelink_cmds=$lt_prelink_cmds 25030 25031# Commands necessary for finishing linking programs. 25032postlink_cmds=$lt_postlink_cmds 25033 25034# Specify filename containing input files. 25035file_list_spec=$lt_file_list_spec 25036 25037# How to hardcode a shared library path into an executable. 25038hardcode_action=$hardcode_action 25039 25040# ### END LIBTOOL CONFIG 25041 25042_LT_EOF 25043 25044 cat <<'_LT_EOF' >> "$cfgfile" 25045 25046# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 25047 25048# func_munge_path_list VARIABLE PATH 25049# ----------------------------------- 25050# VARIABLE is name of variable containing _space_ separated list of 25051# directories to be munged by the contents of PATH, which is string 25052# having a format: 25053# "DIR[:DIR]:" 25054# string "DIR[ DIR]" will be prepended to VARIABLE 25055# ":DIR[:DIR]" 25056# string "DIR[ DIR]" will be appended to VARIABLE 25057# "DIRP[:DIRP]::[DIRA:]DIRA" 25058# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 25059# "DIRA[ DIRA]" will be appended to VARIABLE 25060# "DIR[:DIR]" 25061# VARIABLE will be replaced by "DIR[ DIR]" 25062func_munge_path_list () 25063{ 25064 case x$2 in 25065 x) 25066 ;; 25067 *:) 25068 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25069 ;; 25070 x:*) 25071 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25072 ;; 25073 *::*) 25074 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 25075 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 25076 ;; 25077 *) 25078 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 25079 ;; 25080 esac 25081} 25082 25083 25084# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25085func_cc_basename () 25086{ 25087 for cc_temp in $*""; do 25088 case $cc_temp in 25089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 25090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 25091 \-*) ;; 25092 *) break;; 25093 esac 25094 done 25095 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 25096} 25097 25098 25099# ### END FUNCTIONS SHARED WITH CONFIGURE 25100 25101_LT_EOF 25102 25103 case $host_os in 25104 aix3*) 25105 cat <<\_LT_EOF >> "$cfgfile" 25106# AIX sometimes has problems with the GCC collect2 program. For some 25107# reason, if we set the COLLECT_NAMES environment variable, the problems 25108# vanish in a puff of smoke. 25109if test set != "${COLLECT_NAMES+set}"; then 25110 COLLECT_NAMES= 25111 export COLLECT_NAMES 25112fi 25113_LT_EOF 25114 ;; 25115 esac 25116 25117 25118ltmain=$ac_aux_dir/ltmain.sh 25119 25120 25121 # We use sed instead of cat because bash on DJGPP gets confused if 25122 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25123 # text mode, it properly converts lines to CR/LF. This bash problem 25124 # is reportedly fixed, but why not run on old versions too? 25125 sed '$q' "$ltmain" >> "$cfgfile" \ 25126 || (rm -f "$cfgfile"; exit 1) 25127 25128 mv -f "$cfgfile" "$ofile" || 25129 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25130 chmod +x "$ofile" 25131 25132 ;; 25133 25134 esac 25135done # for ac_tag 25136 25137 25138as_fn_exit 0 25139_ACEOF 25140ac_clean_files=$ac_clean_files_save 25141 25142test $ac_write_fail = 0 || 25143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25144 25145 25146# configure is writing to config.log, and then calls config.status. 25147# config.status does its own redirection, appending to config.log. 25148# Unfortunately, on DOS this fails, as config.log is still kept open 25149# by configure, so config.status won't be able to write to it; its 25150# output is simply discarded. So we exec the FD to /dev/null, 25151# effectively closing config.log, so it can be properly (re)opened and 25152# appended to by config.status. When coming back to configure, we 25153# need to make the FD available again. 25154if test "$no_create" != yes; then 25155 ac_cs_success=: 25156 ac_config_status_args= 25157 test "$silent" = yes && 25158 ac_config_status_args="$ac_config_status_args --quiet" 25159 exec 5>/dev/null 25160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25161 exec 5>>config.log 25162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25163 # would make configure fail if this is the last instruction. 25164 $ac_cs_success || as_fn_exit 1 25165fi 25166if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25168$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25169fi 25170 25171 25172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DONE: Configuration done. Run make/gmake to build libntech." >&5 25173$as_echo "DONE: Configuration done. Run make/gmake to build libntech." >&6; } 25174