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_LIBXML2_FALSE 690HAVE_LIBXML2_TRUE 691LIBXML2_LIBS 692LIBXML2_LDFLAGS 693LIBXML2_CFLAGS 694LIBXML2_CPPFLAGS 695LIBXML2_PATH 696LIBYAML_LIBS 697LIBYAML_LDFLAGS 698LIBYAML_CFLAGS 699LIBYAML_CPPFLAGS 700LIBYAML_PATH 701HAVE_LIBCURL_FALSE 702HAVE_LIBCURL_TRUE 703LIBCURL_LIBS 704LIBCURL_LDFLAGS 705LIBCURL_CFLAGS 706LIBCURL_CPPFLAGS 707LIBCURL_PATH 708LIBACL_LIBS 709LIBACL_LDFLAGS 710LIBACL_CFLAGS 711LIBACL_CPPFLAGS 712LIBACL_PATH 713LIBVIRT_LIBS 714LIBVIRT_LDFLAGS 715LIBVIRT_CFLAGS 716LIBVIRT_CPPFLAGS 717LIBVIRT_PATH 718WITH_PCRE_FALSE 719WITH_PCRE_TRUE 720PCRE_LIBS 721PCRE_LDFLAGS 722PCRE_CFLAGS 723PCRE_CPPFLAGS 724PCRE_PATH 725WITH_OPENSSL_FALSE 726WITH_OPENSSL_TRUE 727OPENSSL_LIBS 728OPENSSL_LDFLAGS 729OPENSSL_CFLAGS 730OPENSSL_CPPFLAGS 731OPENSSL_PATH 732MYSQL_LIBS 733MYSQL_LDFLAGS 734MYSQL_CFLAGS 735MYSQL_CPPFLAGS 736MYSQL_PATH 737POSTGRESQL_LIBS 738POSTGRESQL_LDFLAGS 739POSTGRESQL_CFLAGS 740POSTGRESQL_CPPFLAGS 741POSTGRESQL_PATH 742NDEBUG_FALSE 743NDEBUG_TRUE 744projlibdir 745enable_builtin_extensions 746BUILTIN_EXTENSIONS_FALSE 747BUILTIN_EXTENSIONS_TRUE 748PTHREAD_CFLAGS 749PTHREAD_LIBS 750PTHREAD_CC 751acx_pthread_config 752CROSS_COMPILING_FALSE 753CROSS_COMPILING_TRUE 754GETCONF 755PERL 756YFLAGS 757YACC 758LEXLIB 759LEX_OUTPUT_ROOT 760LEX 761LT_SYS_LIBRARY_PATH 762OTOOL64 763OTOOL 764LIPO 765NMEDIT 766DSYMUTIL 767MANIFEST_TOOL 768RANLIB 769ac_ct_AR 770AR 771DLLTOOL 772OBJDUMP 773LN_S 774NM 775ac_ct_DUMPBIN 776DUMPBIN 777LD 778FGREP 779EGREP 780GREP 781SED 782LIBTOOL 783CPP 784am__fastdepCC_FALSE 785am__fastdepCC_TRUE 786CCDEPMODE 787am__nodep 788AMDEPBACKSLASH 789AMDEP_FALSE 790AMDEP_TRUE 791am__quote 792am__include 793DEPDIR 794OBJEXT 795EXEEXT 796ac_ct_CC 797CPPFLAGS 798LDFLAGS 799CFLAGS 800CC 801MAINT 802MAINTAINER_MODE_FALSE 803MAINTAINER_MODE_TRUE 804AM_BACKSLASH 805AM_DEFAULT_VERBOSITY 806AM_DEFAULT_V 807AM_V 808am__untar 809am__tar 810AMTAR 811am__leading_dot 812SET_MAKE 813AWK 814mkdir_p 815MKDIR_P 816INSTALL_STRIP_PROGRAM 817STRIP 818install_sh 819AUTOHEADER 820AUTOMAKE 821AUTOCONF 822ACLOCAL 823VERSION 824PACKAGE 825CYGPATH_W 826am__isrc 827INSTALL_DATA 828INSTALL_SCRIPT 829INSTALL_PROGRAM 830MAKEINFO 831target_os 832target_vendor 833target_cpu 834target 835host_os 836host_vendor 837host_cpu 838host 839build_os 840build_vendor 841build_cpu 842build 843target_alias 844host_alias 845build_alias 846LIBS 847ECHO_T 848ECHO_N 849ECHO_C 850DEFS 851mandir 852localedir 853libdir 854psdir 855pdfdir 856dvidir 857htmldir 858infodir 859docdir 860oldincludedir 861includedir 862runstatedir 863localstatedir 864sharedstatedir 865sysconfdir 866datadir 867datarootdir 868libexecdir 869sbindir 870bindir 871program_transform_name 872prefix 873exec_prefix 874PACKAGE_URL 875PACKAGE_BUGREPORT 876PACKAGE_STRING 877PACKAGE_VERSION 878PACKAGE_TARNAME 879PACKAGE_NAME 880PATH_SEPARATOR 881SHELL' 882ac_subst_files='' 883ac_user_opts=' 884enable_option_checking 885enable_silent_rules 886enable_maintainer_mode 887enable_dependency_tracking 888enable_static 889enable_shared 890with_pic 891enable_fast_install 892with_aix_soname 893with_gnu_ld 894with_sysroot 895enable_libtool_lock 896with_pthreads 897enable_builtin_extensions 898enable_fhs 899enable_debug 900with_sql 901with_postgresql 902with_mysql 903with_openssl 904with_pcre 905with_libvirt 906with_libacl 907with_libcurl 908with_libyaml 909with_libxml2 910enable_largefile 911with_pam 912enable_selinux 913with_workdir 914with_masterdir 915with_inputdir 916with_datadir 917with_logdir 918with_piddir 919with_statedir 920with_shell 921enable_coverage 922' 923 ac_precious_vars='build_alias 924host_alias 925target_alias 926CC 927CFLAGS 928LDFLAGS 929LIBS 930CPPFLAGS 931CPP 932LT_SYS_LIBRARY_PATH 933YACC 934YFLAGS' 935 936 937# Initialize some variables set by options. 938ac_init_help= 939ac_init_version=false 940ac_unrecognized_opts= 941ac_unrecognized_sep= 942# The variables have the same names as the options, with 943# dashes changed to underlines. 944cache_file=/dev/null 945exec_prefix=NONE 946no_create= 947no_recursion= 948prefix=NONE 949program_prefix=NONE 950program_suffix=NONE 951program_transform_name=s,x,x, 952silent= 953site= 954srcdir= 955verbose= 956x_includes=NONE 957x_libraries=NONE 958 959# Installation directory options. 960# These are left unexpanded so users can "make install exec_prefix=/foo" 961# and all the variables that are supposed to be based on exec_prefix 962# by default will actually change. 963# Use braces instead of parens because sh, perl, etc. also accept them. 964# (The list follows the same order as the GNU Coding Standards.) 965bindir='${exec_prefix}/bin' 966sbindir='${exec_prefix}/sbin' 967libexecdir='${exec_prefix}/libexec' 968datarootdir='${prefix}/share' 969datadir='${datarootdir}' 970sysconfdir='${prefix}/etc' 971sharedstatedir='${prefix}/com' 972localstatedir='${prefix}/var' 973runstatedir='${localstatedir}/run' 974includedir='${prefix}/include' 975oldincludedir='/usr/include' 976docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 977infodir='${datarootdir}/info' 978htmldir='${docdir}' 979dvidir='${docdir}' 980pdfdir='${docdir}' 981psdir='${docdir}' 982libdir='${exec_prefix}/lib' 983localedir='${datarootdir}/locale' 984mandir='${datarootdir}/man' 985 986ac_prev= 987ac_dashdash= 988for ac_option 989do 990 # If the previous option needs an argument, assign it. 991 if test -n "$ac_prev"; then 992 eval $ac_prev=\$ac_option 993 ac_prev= 994 continue 995 fi 996 997 case $ac_option in 998 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 999 *=) ac_optarg= ;; 1000 *) ac_optarg=yes ;; 1001 esac 1002 1003 # Accept the important Cygnus configure options, so we can diagnose typos. 1004 1005 case $ac_dashdash$ac_option in 1006 --) 1007 ac_dashdash=yes ;; 1008 1009 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1010 ac_prev=bindir ;; 1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1012 bindir=$ac_optarg ;; 1013 1014 -build | --build | --buil | --bui | --bu) 1015 ac_prev=build_alias ;; 1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1017 build_alias=$ac_optarg ;; 1018 1019 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1021 ac_prev=cache_file ;; 1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1024 cache_file=$ac_optarg ;; 1025 1026 --config-cache | -C) 1027 cache_file=config.cache ;; 1028 1029 -datadir | --datadir | --datadi | --datad) 1030 ac_prev=datadir ;; 1031 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1032 datadir=$ac_optarg ;; 1033 1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1035 | --dataroo | --dataro | --datar) 1036 ac_prev=datarootdir ;; 1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1039 datarootdir=$ac_optarg ;; 1040 1041 -disable-* | --disable-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid feature name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"enable_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval enable_$ac_useropt=no ;; 1056 1057 -docdir | --docdir | --docdi | --doc | --do) 1058 ac_prev=docdir ;; 1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1060 docdir=$ac_optarg ;; 1061 1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1063 ac_prev=dvidir ;; 1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1065 dvidir=$ac_optarg ;; 1066 1067 -enable-* | --enable-*) 1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1069 # Reject names that are not valid shell variable names. 1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1071 as_fn_error $? "invalid feature name: $ac_useropt" 1072 ac_useropt_orig=$ac_useropt 1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1074 case $ac_user_opts in 1075 *" 1076"enable_$ac_useropt" 1077"*) ;; 1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1079 ac_unrecognized_sep=', ';; 1080 esac 1081 eval enable_$ac_useropt=\$ac_optarg ;; 1082 1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1085 | --exec | --exe | --ex) 1086 ac_prev=exec_prefix ;; 1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1089 | --exec=* | --exe=* | --ex=*) 1090 exec_prefix=$ac_optarg ;; 1091 1092 -gas | --gas | --ga | --g) 1093 # Obsolete; use --with-gas. 1094 with_gas=yes ;; 1095 1096 -help | --help | --hel | --he | -h) 1097 ac_init_help=long ;; 1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1099 ac_init_help=recursive ;; 1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1101 ac_init_help=short ;; 1102 1103 -host | --host | --hos | --ho) 1104 ac_prev=host_alias ;; 1105 -host=* | --host=* | --hos=* | --ho=*) 1106 host_alias=$ac_optarg ;; 1107 1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1109 ac_prev=htmldir ;; 1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1111 | --ht=*) 1112 htmldir=$ac_optarg ;; 1113 1114 -includedir | --includedir | --includedi | --included | --include \ 1115 | --includ | --inclu | --incl | --inc) 1116 ac_prev=includedir ;; 1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1118 | --includ=* | --inclu=* | --incl=* | --inc=*) 1119 includedir=$ac_optarg ;; 1120 1121 -infodir | --infodir | --infodi | --infod | --info | --inf) 1122 ac_prev=infodir ;; 1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1124 infodir=$ac_optarg ;; 1125 1126 -libdir | --libdir | --libdi | --libd) 1127 ac_prev=libdir ;; 1128 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1129 libdir=$ac_optarg ;; 1130 1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1132 | --libexe | --libex | --libe) 1133 ac_prev=libexecdir ;; 1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1135 | --libexe=* | --libex=* | --libe=*) 1136 libexecdir=$ac_optarg ;; 1137 1138 -localedir | --localedir | --localedi | --localed | --locale) 1139 ac_prev=localedir ;; 1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1141 localedir=$ac_optarg ;; 1142 1143 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1144 | --localstate | --localstat | --localsta | --localst | --locals) 1145 ac_prev=localstatedir ;; 1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1148 localstatedir=$ac_optarg ;; 1149 1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1151 ac_prev=mandir ;; 1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1153 mandir=$ac_optarg ;; 1154 1155 -nfp | --nfp | --nf) 1156 # Obsolete; use --without-fp. 1157 with_fp=no ;; 1158 1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1160 | --no-cr | --no-c | -n) 1161 no_create=yes ;; 1162 1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1165 no_recursion=yes ;; 1166 1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1169 | --oldin | --oldi | --old | --ol | --o) 1170 ac_prev=oldincludedir ;; 1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1174 oldincludedir=$ac_optarg ;; 1175 1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1177 ac_prev=prefix ;; 1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1179 prefix=$ac_optarg ;; 1180 1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1182 | --program-pre | --program-pr | --program-p) 1183 ac_prev=program_prefix ;; 1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1186 program_prefix=$ac_optarg ;; 1187 1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1189 | --program-suf | --program-su | --program-s) 1190 ac_prev=program_suffix ;; 1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1193 program_suffix=$ac_optarg ;; 1194 1195 -program-transform-name | --program-transform-name \ 1196 | --program-transform-nam | --program-transform-na \ 1197 | --program-transform-n | --program-transform- \ 1198 | --program-transform | --program-transfor \ 1199 | --program-transfo | --program-transf \ 1200 | --program-trans | --program-tran \ 1201 | --progr-tra | --program-tr | --program-t) 1202 ac_prev=program_transform_name ;; 1203 -program-transform-name=* | --program-transform-name=* \ 1204 | --program-transform-nam=* | --program-transform-na=* \ 1205 | --program-transform-n=* | --program-transform-=* \ 1206 | --program-transform=* | --program-transfor=* \ 1207 | --program-transfo=* | --program-transf=* \ 1208 | --program-trans=* | --program-tran=* \ 1209 | --progr-tra=* | --program-tr=* | --program-t=*) 1210 program_transform_name=$ac_optarg ;; 1211 1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1213 ac_prev=pdfdir ;; 1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1215 pdfdir=$ac_optarg ;; 1216 1217 -psdir | --psdir | --psdi | --psd | --ps) 1218 ac_prev=psdir ;; 1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1220 psdir=$ac_optarg ;; 1221 1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1223 | -silent | --silent | --silen | --sile | --sil) 1224 silent=yes ;; 1225 1226 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1227 | --runstate | --runstat | --runsta | --runst | --runs \ 1228 | --run | --ru | --r) 1229 ac_prev=runstatedir ;; 1230 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1231 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1232 | --run=* | --ru=* | --r=*) 1233 runstatedir=$ac_optarg ;; 1234 1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1236 ac_prev=sbindir ;; 1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1238 | --sbi=* | --sb=*) 1239 sbindir=$ac_optarg ;; 1240 1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1243 | --sharedst | --shareds | --shared | --share | --shar \ 1244 | --sha | --sh) 1245 ac_prev=sharedstatedir ;; 1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1249 | --sha=* | --sh=*) 1250 sharedstatedir=$ac_optarg ;; 1251 1252 -site | --site | --sit) 1253 ac_prev=site ;; 1254 -site=* | --site=* | --sit=*) 1255 site=$ac_optarg ;; 1256 1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1258 ac_prev=srcdir ;; 1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1260 srcdir=$ac_optarg ;; 1261 1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1263 | --syscon | --sysco | --sysc | --sys | --sy) 1264 ac_prev=sysconfdir ;; 1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1267 sysconfdir=$ac_optarg ;; 1268 1269 -target | --target | --targe | --targ | --tar | --ta | --t) 1270 ac_prev=target_alias ;; 1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1272 target_alias=$ac_optarg ;; 1273 1274 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1275 verbose=yes ;; 1276 1277 -version | --version | --versio | --versi | --vers | -V) 1278 ac_init_version=: ;; 1279 1280 -with-* | --with-*) 1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1282 # Reject names that are not valid shell variable names. 1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1284 as_fn_error $? "invalid package name: $ac_useropt" 1285 ac_useropt_orig=$ac_useropt 1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1287 case $ac_user_opts in 1288 *" 1289"with_$ac_useropt" 1290"*) ;; 1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1292 ac_unrecognized_sep=', ';; 1293 esac 1294 eval with_$ac_useropt=\$ac_optarg ;; 1295 1296 -without-* | --without-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 as_fn_error $? "invalid package name: $ac_useropt" 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305"with_$ac_useropt" 1306"*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval with_$ac_useropt=no ;; 1311 1312 --x) 1313 # Obsolete; use --with-x. 1314 with_x=yes ;; 1315 1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1317 | --x-incl | --x-inc | --x-in | --x-i) 1318 ac_prev=x_includes ;; 1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1321 x_includes=$ac_optarg ;; 1322 1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1325 ac_prev=x_libraries ;; 1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1328 x_libraries=$ac_optarg ;; 1329 1330 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1331Try \`$0 --help' for more information" 1332 ;; 1333 1334 *=*) 1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1336 # Reject names that are not valid shell variable names. 1337 case $ac_envvar in #( 1338 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1340 esac 1341 eval $ac_envvar=\$ac_optarg 1342 export $ac_envvar ;; 1343 1344 *) 1345 # FIXME: should be removed in autoconf 3.0. 1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1350 ;; 1351 1352 esac 1353done 1354 1355if test -n "$ac_prev"; then 1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1357 as_fn_error $? "missing argument to $ac_option" 1358fi 1359 1360if test -n "$ac_unrecognized_opts"; then 1361 case $enable_option_checking in 1362 no) ;; 1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1365 esac 1366fi 1367 1368# Check all directory arguments for consistency. 1369for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1370 datadir sysconfdir sharedstatedir localstatedir includedir \ 1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1372 libdir localedir mandir runstatedir 1373do 1374 eval ac_val=\$$ac_var 1375 # Remove trailing slashes. 1376 case $ac_val in 1377 */ ) 1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1379 eval $ac_var=\$ac_val;; 1380 esac 1381 # Be sure to have absolute directory names. 1382 case $ac_val in 1383 [\\/$]* | ?:[\\/]* ) continue;; 1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1385 esac 1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1387done 1388 1389# There might be people who depend on the old broken behavior: `$host' 1390# used to hold the argument of --host etc. 1391# FIXME: To remove some day. 1392build=$build_alias 1393host=$host_alias 1394target=$target_alias 1395 1396# FIXME: To remove some day. 1397if test "x$host_alias" != x; then 1398 if test "x$build_alias" = x; then 1399 cross_compiling=maybe 1400 elif test "x$build_alias" != "x$host_alias"; then 1401 cross_compiling=yes 1402 fi 1403fi 1404 1405ac_tool_prefix= 1406test -n "$host_alias" && ac_tool_prefix=$host_alias- 1407 1408test "$silent" = yes && exec 6>/dev/null 1409 1410 1411ac_pwd=`pwd` && test -n "$ac_pwd" && 1412ac_ls_di=`ls -di .` && 1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1414 as_fn_error $? "working directory cannot be determined" 1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1416 as_fn_error $? "pwd does not report name of working directory" 1417 1418 1419# Find the source files, if location was not specified. 1420if test -z "$srcdir"; then 1421 ac_srcdir_defaulted=yes 1422 # Try the directory containing this script, then the parent directory. 1423 ac_confdir=`$as_dirname -- "$as_myself" || 1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1425 X"$as_myself" : 'X\(//\)[^/]' \| \ 1426 X"$as_myself" : 'X\(//\)$' \| \ 1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1428$as_echo X"$as_myself" | 1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1430 s//\1/ 1431 q 1432 } 1433 /^X\(\/\/\)[^/].*/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\/\)$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\).*/{ 1442 s//\1/ 1443 q 1444 } 1445 s/.*/./; q'` 1446 srcdir=$ac_confdir 1447 if test ! -r "$srcdir/$ac_unique_file"; then 1448 srcdir=.. 1449 fi 1450else 1451 ac_srcdir_defaulted=no 1452fi 1453if test ! -r "$srcdir/$ac_unique_file"; then 1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1456fi 1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1458ac_abs_confdir=`( 1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1460 pwd)` 1461# When building in place, set srcdir=. 1462if test "$ac_abs_confdir" = "$ac_pwd"; then 1463 srcdir=. 1464fi 1465# Remove unnecessary trailing slashes from srcdir. 1466# Double slashes in file names in object file debugging info 1467# mess up M-x gdb in Emacs. 1468case $srcdir in 1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1470esac 1471for ac_var in $ac_precious_vars; do 1472 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_env_${ac_var}_value=\$${ac_var} 1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1475 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1476done 1477 1478# 1479# Report the --help message. 1480# 1481if test "$ac_init_help" = "long"; then 1482 # Omit some internal or obsolete options to make the list less imposing. 1483 # This message is too long to be a string in the A/UX 3.1 sh. 1484 cat <<_ACEOF 1485\`configure' configures libntech 0.1.0 to adapt to many kinds of systems. 1486 1487Usage: $0 [OPTION]... [VAR=VALUE]... 1488 1489To assign environment variables (e.g., CC, CFLAGS...), specify them as 1490VAR=VALUE. See below for descriptions of some of the useful variables. 1491 1492Defaults for the options are specified in brackets. 1493 1494Configuration: 1495 -h, --help display this help and exit 1496 --help=short display options specific to this package 1497 --help=recursive display the short help of all the included packages 1498 -V, --version display version information and exit 1499 -q, --quiet, --silent do not print \`checking ...' messages 1500 --cache-file=FILE cache test results in FILE [disabled] 1501 -C, --config-cache alias for \`--cache-file=config.cache' 1502 -n, --no-create do not create output files 1503 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1504 1505Installation directories: 1506 --prefix=PREFIX install architecture-independent files in PREFIX 1507 [$ac_default_prefix] 1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1509 [PREFIX] 1510 1511By default, \`make install' will install all the files in 1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1513an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1514for instance \`--prefix=\$HOME'. 1515 1516For better control, use the options below. 1517 1518Fine tuning of the installation directories: 1519 --bindir=DIR user executables [EPREFIX/bin] 1520 --sbindir=DIR system admin executables [EPREFIX/sbin] 1521 --libexecdir=DIR program executables [EPREFIX/libexec] 1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1525 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1526 --libdir=DIR object code libraries [EPREFIX/lib] 1527 --includedir=DIR C header files [PREFIX/include] 1528 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1531 --infodir=DIR info documentation [DATAROOTDIR/info] 1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1533 --mandir=DIR man documentation [DATAROOTDIR/man] 1534 --docdir=DIR documentation root [DATAROOTDIR/doc/libntech] 1535 --htmldir=DIR html documentation [DOCDIR] 1536 --dvidir=DIR dvi documentation [DOCDIR] 1537 --pdfdir=DIR pdf documentation [DOCDIR] 1538 --psdir=DIR ps documentation [DOCDIR] 1539_ACEOF 1540 1541 cat <<\_ACEOF 1542 1543Program names: 1544 --program-prefix=PREFIX prepend PREFIX to installed program names 1545 --program-suffix=SUFFIX append SUFFIX to installed program names 1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1547 1548System types: 1549 --build=BUILD configure for building on BUILD [guessed] 1550 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1551 --target=TARGET configure for building compilers for TARGET [HOST] 1552_ACEOF 1553fi 1554 1555if test -n "$ac_init_help"; then 1556 case $ac_init_help in 1557 short | recursive ) echo "Configuration of libntech 0.1.0:";; 1558 esac 1559 cat <<\_ACEOF 1560 1561Optional Features: 1562 --disable-option-checking ignore unrecognized --enable/--with options 1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1565 --enable-silent-rules less verbose build output (undo: "make V=1") 1566 --disable-silent-rules verbose build output (undo: "make V=0") 1567 --disable-maintainer-mode 1568 disable make rules and dependencies not useful (and 1569 sometimes confusing) to the casual installer 1570 --enable-dependency-tracking 1571 do not reject slow dependency extractors 1572 --disable-dependency-tracking 1573 speeds up one-time build 1574 --enable-static[=PKGS] build static libraries [default=no] 1575 --enable-shared[=PKGS] build shared libraries [default=yes] 1576 --enable-fast-install[=PKGS] 1577 optimize for fast installation [default=yes] 1578 --disable-libtool-lock avoid locking (might break parallel builds) 1579 Build binaries with builtin extensions 1580 1581 --enable-fhs Enable FHS compliance. Defaults to custom CFEngine 1582 files layout 1583 --enable-debug Enable debugging 1584 --disable-largefile omit support for large files 1585 --enable-selinux Deprecated. SELinux support is always enabled 1586 --enable-coverage Enable code coverage 1587 1588Optional Packages: 1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1591 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1592 both] 1593 --with-aix-soname=aix|svr4|both 1594 shared library versioning (aka "SONAME") variant to 1595 provide on AIX, [default=aix]. 1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1597 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1598 compiler's sysroot if not specified). 1599 --with-pthreads[=PATH] Specify path to pthreads, if not the part of 1600 operating system 1601 --with-sql[=PATH] Enable SQL database connectors (deprecated, use 1602 --with[[out]]-postgresql and --with[[out]]-mysql 1603 instead) 1604 1605 --with-postgresql[=PATH] 1606 Enable PostgreSQL connector 1607 1608 --with-mysql[=PATH] Enable MySQL connector 1609 1610 --with-openssl[=PATH] Specify OpenSSL path 1611 --with-pcre[=PATH] Specify PCRE path 1612 --with-libvirt[=PATH] support virtual machine management 1613 --with-libacl[=PATH] Specify libacl path 1614 --with-libcurl[=PATH] Specify libcurl path 1615 --with-libyaml[=PATH] Specify libyaml path 1616 --with-libxml2[=PATH] Specify libxml2 path 1617 1618 --with-pam Compile with PAM support 1619 --with-workdir=WORKDIR default for internal (trusted) working directory 1620 --with-masterdir=MASTERDIR default for internal masterfiles directory 1621 --with-inputdir=INPUTDIR default for internal inputs directory 1622 --with-datadir=DATADIR default for internal data directory 1623 --with-logdir=LOGDIR default for internal log directory 1624 --with-piddir=PIDDIR default for internal pid directory 1625 --with-statedir=STATEDIR default for internal state directory 1626 --with-shell=PATH Specify path to POSIX-compatible shell (if not 1627 /bin/sh) 1628 1629Some influential environment variables: 1630 CC C compiler command 1631 CFLAGS C compiler flags 1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1633 nonstandard directory <lib dir> 1634 LIBS libraries to pass to the linker, e.g. -l<library> 1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1636 you have headers in a nonstandard directory <include dir> 1637 CPP C preprocessor 1638 LT_SYS_LIBRARY_PATH 1639 User-defined run-time library search path. 1640 YACC The `Yet Another Compiler Compiler' implementation to use. 1641 Defaults to the first program found out of: `bison -y', `byacc', 1642 `yacc'. 1643 YFLAGS The list of arguments that will be passed by default to $YACC. 1644 This script will default YFLAGS to the empty string to avoid a 1645 default value of `-d' given by some make applications. 1646 1647Use these variables to override the choices made by `configure' or to help 1648it to find libraries and programs with nonstandard names/locations. 1649 1650Report bugs to the package provider. 1651_ACEOF 1652ac_status=$? 1653fi 1654 1655if test "$ac_init_help" = "recursive"; then 1656 # If there are subdirs, report their specific --help. 1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1658 test -d "$ac_dir" || 1659 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1660 continue 1661 ac_builddir=. 1662 1663case "$ac_dir" in 1664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1665*) 1666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1667 # A ".." for each directory in $ac_dir_suffix. 1668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1669 case $ac_top_builddir_sub in 1670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1672 esac ;; 1673esac 1674ac_abs_top_builddir=$ac_pwd 1675ac_abs_builddir=$ac_pwd$ac_dir_suffix 1676# for backward compatibility: 1677ac_top_builddir=$ac_top_build_prefix 1678 1679case $srcdir in 1680 .) # We are building in place. 1681 ac_srcdir=. 1682 ac_top_srcdir=$ac_top_builddir_sub 1683 ac_abs_top_srcdir=$ac_pwd ;; 1684 [\\/]* | ?:[\\/]* ) # Absolute name. 1685 ac_srcdir=$srcdir$ac_dir_suffix; 1686 ac_top_srcdir=$srcdir 1687 ac_abs_top_srcdir=$srcdir ;; 1688 *) # Relative name. 1689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1690 ac_top_srcdir=$ac_top_build_prefix$srcdir 1691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1692esac 1693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1694 1695 cd "$ac_dir" || { ac_status=$?; continue; } 1696 # Check for guested configure. 1697 if test -f "$ac_srcdir/configure.gnu"; then 1698 echo && 1699 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1700 elif test -f "$ac_srcdir/configure"; then 1701 echo && 1702 $SHELL "$ac_srcdir/configure" --help=recursive 1703 else 1704 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1705 fi || ac_status=$? 1706 cd "$ac_pwd" || { ac_status=$?; break; } 1707 done 1708fi 1709 1710test -n "$ac_init_help" && exit $ac_status 1711if $ac_init_version; then 1712 cat <<\_ACEOF 1713libntech configure 0.1.0 1714generated by GNU Autoconf 2.69 1715 1716Copyright (C) 2012 Free Software Foundation, Inc. 1717This configure script is free software; the Free Software Foundation 1718gives unlimited permission to copy, distribute and modify it. 1719_ACEOF 1720 exit 1721fi 1722 1723## ------------------------ ## 1724## Autoconf initialization. ## 1725## ------------------------ ## 1726 1727# ac_fn_c_try_compile LINENO 1728# -------------------------- 1729# Try to compile conftest.$ac_ext, and return whether this succeeded. 1730ac_fn_c_try_compile () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 rm -f conftest.$ac_objext 1734 if { { ac_try="$ac_compile" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_compile") 2>conftest.err 1742 ac_status=$? 1743 if test -s conftest.err; then 1744 grep -v '^ *+' conftest.err >conftest.er1 1745 cat conftest.er1 >&5 1746 mv -f conftest.er1 conftest.err 1747 fi 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { 1750 test -z "$ac_c_werror_flag" || 1751 test ! -s conftest.err 1752 } && test -s conftest.$ac_objext; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759fi 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_compile 1764 1765# ac_fn_c_try_cpp LINENO 1766# ---------------------- 1767# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1768ac_fn_c_try_cpp () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 if { { ac_try="$ac_cpp conftest.$ac_ext" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1779 ac_status=$? 1780 if test -s conftest.err; then 1781 grep -v '^ *+' conftest.err >conftest.er1 1782 cat conftest.er1 >&5 1783 mv -f conftest.er1 conftest.err 1784 fi 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } > conftest.i && { 1787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1788 test ! -s conftest.err 1789 }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=1 1796fi 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_cpp 1801 1802# ac_fn_c_try_link LINENO 1803# ----------------------- 1804# Try to link conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_c_try_link () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext conftest$ac_exeext 1809 if { { ac_try="$ac_link" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_link") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_c_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest$ac_exeext && { 1828 test "$cross_compiling" = yes || 1829 test -x conftest$ac_exeext 1830 }; then : 1831 ac_retval=0 1832else 1833 $as_echo "$as_me: failed program was:" >&5 1834sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 ac_retval=1 1837fi 1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1840 # interfere with the next link command; also delete a directory that is 1841 # left behind by Apple's compiler. We do this before executing the actions. 1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 as_fn_set_status $ac_retval 1845 1846} # ac_fn_c_try_link 1847 1848# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1849# ------------------------------------------------------- 1850# Tests whether HEADER exists and can be compiled using the include files in 1851# INCLUDES, setting the cache variable VAR accordingly. 1852ac_fn_c_check_header_compile () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856$as_echo_n "checking for $2... " >&6; } 1857if eval \${$3+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859else 1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862$4 1863#include <$2> 1864_ACEOF 1865if ac_fn_c_try_compile "$LINENO"; then : 1866 eval "$3=yes" 1867else 1868 eval "$3=no" 1869fi 1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1871fi 1872eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874$as_echo "$ac_res" >&6; } 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877} # ac_fn_c_check_header_compile 1878 1879# ac_fn_c_try_run LINENO 1880# ---------------------- 1881# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1882# that executables *can* be run. 1883ac_fn_c_try_run () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if { { ac_try="$ac_link" 1887case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890esac 1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892$as_echo "$ac_try_echo"; } >&5 1893 (eval "$ac_link") 2>&5 1894 ac_status=$? 1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1896 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1897 { { case "(($ac_try" in 1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1899 *) ac_try_echo=$ac_try;; 1900esac 1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1902$as_echo "$ac_try_echo"; } >&5 1903 (eval "$ac_try") 2>&5 1904 ac_status=$? 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; }; }; then : 1907 ac_retval=0 1908else 1909 $as_echo "$as_me: program exited with status $ac_status" >&5 1910 $as_echo "$as_me: failed program was:" >&5 1911sed 's/^/| /' conftest.$ac_ext >&5 1912 1913 ac_retval=$ac_status 1914fi 1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 as_fn_set_status $ac_retval 1918 1919} # ac_fn_c_try_run 1920 1921# ac_fn_c_check_func LINENO FUNC VAR 1922# ---------------------------------- 1923# Tests whether FUNC exists, setting the cache variable VAR accordingly 1924ac_fn_c_check_func () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1928$as_echo_n "checking for $2... " >&6; } 1929if eval \${$3+:} false; then : 1930 $as_echo_n "(cached) " >&6 1931else 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1936#define $2 innocuous_$2 1937 1938/* System header to define __stub macros and hopefully few prototypes, 1939 which can conflict with char $2 (); below. 1940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1941 <limits.h> exists even on freestanding compilers. */ 1942 1943#ifdef __STDC__ 1944# include <limits.h> 1945#else 1946# include <assert.h> 1947#endif 1948 1949#undef $2 1950 1951/* Override any GCC internal prototype to avoid an error. 1952 Use char because int might match the return type of a GCC 1953 builtin and then its argument prototype would still apply. */ 1954#ifdef __cplusplus 1955extern "C" 1956#endif 1957char $2 (); 1958/* The GNU C library defines this for functions which it implements 1959 to always fail with ENOSYS. Some functions are actually named 1960 something starting with __ and the normal name is an alias. */ 1961#if defined __stub_$2 || defined __stub___$2 1962choke me 1963#endif 1964 1965int 1966main () 1967{ 1968return $2 (); 1969 ; 1970 return 0; 1971} 1972_ACEOF 1973if ac_fn_c_try_link "$LINENO"; then : 1974 eval "$3=yes" 1975else 1976 eval "$3=no" 1977fi 1978rm -f core conftest.err conftest.$ac_objext \ 1979 conftest$ac_exeext conftest.$ac_ext 1980fi 1981eval ac_res=\$$3 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983$as_echo "$ac_res" >&6; } 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 1986} # ac_fn_c_check_func 1987 1988# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1989# ------------------------------------------------------- 1990# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1991# the include files in INCLUDES and setting the cache variable VAR 1992# accordingly. 1993ac_fn_c_check_header_mongrel () 1994{ 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 if eval \${$3+:} false; then : 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998$as_echo_n "checking for $2... " >&6; } 1999if eval \${$3+:} false; then : 2000 $as_echo_n "(cached) " >&6 2001fi 2002eval ac_res=\$$3 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2004$as_echo "$ac_res" >&6; } 2005else 2006 # Is the header compilable? 2007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2008$as_echo_n "checking $2 usability... " >&6; } 2009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$4 2012#include <$2> 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 ac_header_compiler=yes 2016else 2017 ac_header_compiler=no 2018fi 2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2021$as_echo "$ac_header_compiler" >&6; } 2022 2023# Is the header present? 2024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2025$as_echo_n "checking $2 presence... " >&6; } 2026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2027/* end confdefs.h. */ 2028#include <$2> 2029_ACEOF 2030if ac_fn_c_try_cpp "$LINENO"; then : 2031 ac_header_preproc=yes 2032else 2033 ac_header_preproc=no 2034fi 2035rm -f conftest.err conftest.i conftest.$ac_ext 2036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2037$as_echo "$ac_header_preproc" >&6; } 2038 2039# So? What about this header? 2040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2041 yes:no: ) 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2043$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2045$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2046 ;; 2047 no:yes:* ) 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2049$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2051$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2053$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2055$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2057$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2058 ;; 2059esac 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2061$as_echo_n "checking for $2... " >&6; } 2062if eval \${$3+:} false; then : 2063 $as_echo_n "(cached) " >&6 2064else 2065 eval "$3=\$ac_header_compiler" 2066fi 2067eval ac_res=\$$3 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2069$as_echo "$ac_res" >&6; } 2070fi 2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2072 2073} # ac_fn_c_check_header_mongrel 2074 2075# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2076# --------------------------------------------- 2077# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2078# accordingly. 2079ac_fn_c_check_decl () 2080{ 2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2082 as_decl_name=`echo $2|sed 's/ *(.*//'` 2083 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2085$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2086if eval \${$3+:} false; then : 2087 $as_echo_n "(cached) " >&6 2088else 2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2090/* end confdefs.h. */ 2091$4 2092int 2093main () 2094{ 2095#ifndef $as_decl_name 2096#ifdef __cplusplus 2097 (void) $as_decl_use; 2098#else 2099 (void) $as_decl_name; 2100#endif 2101#endif 2102 2103 ; 2104 return 0; 2105} 2106_ACEOF 2107if ac_fn_c_try_compile "$LINENO"; then : 2108 eval "$3=yes" 2109else 2110 eval "$3=no" 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113fi 2114eval ac_res=\$$3 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2116$as_echo "$ac_res" >&6; } 2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2118 2119} # ac_fn_c_check_decl 2120 2121# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2122# ------------------------------------------- 2123# Tests whether TYPE exists after having included INCLUDES, setting cache 2124# variable VAR accordingly. 2125ac_fn_c_check_type () 2126{ 2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2129$as_echo_n "checking for $2... " >&6; } 2130if eval \${$3+:} false; then : 2131 $as_echo_n "(cached) " >&6 2132else 2133 eval "$3=no" 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$4 2137int 2138main () 2139{ 2140if (sizeof ($2)) 2141 return 0; 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146if ac_fn_c_try_compile "$LINENO"; then : 2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2148/* end confdefs.h. */ 2149$4 2150int 2151main () 2152{ 2153if (sizeof (($2))) 2154 return 0; 2155 ; 2156 return 0; 2157} 2158_ACEOF 2159if ac_fn_c_try_compile "$LINENO"; then : 2160 2161else 2162 eval "$3=yes" 2163fi 2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2165fi 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2167fi 2168eval ac_res=\$$3 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2170$as_echo "$ac_res" >&6; } 2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2172 2173} # ac_fn_c_check_type 2174 2175# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2176# ---------------------------------------------------- 2177# Tries to find if the field MEMBER exists in type AGGR, after including 2178# INCLUDES, setting cache variable VAR accordingly. 2179ac_fn_c_check_member () 2180{ 2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2183$as_echo_n "checking for $2.$3... " >&6; } 2184if eval \${$4+:} false; then : 2185 $as_echo_n "(cached) " >&6 2186else 2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2188/* end confdefs.h. */ 2189$5 2190int 2191main () 2192{ 2193static $2 ac_aggr; 2194if (ac_aggr.$3) 2195return 0; 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200if ac_fn_c_try_compile "$LINENO"; then : 2201 eval "$4=yes" 2202else 2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2204/* end confdefs.h. */ 2205$5 2206int 2207main () 2208{ 2209static $2 ac_aggr; 2210if (sizeof ac_aggr.$3) 2211return 0; 2212 ; 2213 return 0; 2214} 2215_ACEOF 2216if ac_fn_c_try_compile "$LINENO"; then : 2217 eval "$4=yes" 2218else 2219 eval "$4=no" 2220fi 2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2222fi 2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2224fi 2225eval ac_res=\$$4 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2227$as_echo "$ac_res" >&6; } 2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2229 2230} # ac_fn_c_check_member 2231cat >config.log <<_ACEOF 2232This file contains any messages produced by compilers while 2233running configure, to aid debugging if configure makes a mistake. 2234 2235It was created by libntech $as_me 0.1.0, which was 2236generated by GNU Autoconf 2.69. Invocation command line was 2237 2238 $ $0 $@ 2239 2240_ACEOF 2241exec 5>>config.log 2242{ 2243cat <<_ASUNAME 2244## --------- ## 2245## Platform. ## 2246## --------- ## 2247 2248hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2249uname -m = `(uname -m) 2>/dev/null || echo unknown` 2250uname -r = `(uname -r) 2>/dev/null || echo unknown` 2251uname -s = `(uname -s) 2>/dev/null || echo unknown` 2252uname -v = `(uname -v) 2>/dev/null || echo unknown` 2253 2254/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2255/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2256 2257/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2258/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2259/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2260/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2261/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2262/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2263/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2264 2265_ASUNAME 2266 2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2268for as_dir in $PATH 2269do 2270 IFS=$as_save_IFS 2271 test -z "$as_dir" && as_dir=. 2272 $as_echo "PATH: $as_dir" 2273 done 2274IFS=$as_save_IFS 2275 2276} >&5 2277 2278cat >&5 <<_ACEOF 2279 2280 2281## ----------- ## 2282## Core tests. ## 2283## ----------- ## 2284 2285_ACEOF 2286 2287 2288# Keep a trace of the command line. 2289# Strip out --no-create and --no-recursion so they do not pile up. 2290# Strip out --silent because we don't want to record it for future runs. 2291# Also quote any args containing shell meta-characters. 2292# Make two passes to allow for proper duplicate-argument suppression. 2293ac_configure_args= 2294ac_configure_args0= 2295ac_configure_args1= 2296ac_must_keep_next=false 2297for ac_pass in 1 2 2298do 2299 for ac_arg 2300 do 2301 case $ac_arg in 2302 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2304 | -silent | --silent | --silen | --sile | --sil) 2305 continue ;; 2306 *\'*) 2307 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2308 esac 2309 case $ac_pass in 2310 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2311 2) 2312 as_fn_append ac_configure_args1 " '$ac_arg'" 2313 if test $ac_must_keep_next = true; then 2314 ac_must_keep_next=false # Got value, back to normal. 2315 else 2316 case $ac_arg in 2317 *=* | --config-cache | -C | -disable-* | --disable-* \ 2318 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2319 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2320 | -with-* | --with-* | -without-* | --without-* | --x) 2321 case "$ac_configure_args0 " in 2322 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2323 esac 2324 ;; 2325 -* ) ac_must_keep_next=true ;; 2326 esac 2327 fi 2328 as_fn_append ac_configure_args " '$ac_arg'" 2329 ;; 2330 esac 2331 done 2332done 2333{ ac_configure_args0=; unset ac_configure_args0;} 2334{ ac_configure_args1=; unset ac_configure_args1;} 2335 2336# When interrupted or exit'd, cleanup temporary files, and complete 2337# config.log. We remove comments because anyway the quotes in there 2338# would cause problems or look ugly. 2339# WARNING: Use '\'' to represent an apostrophe within the trap. 2340# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2341trap 'exit_status=$? 2342 # Save into config.log some information that might help in debugging. 2343 { 2344 echo 2345 2346 $as_echo "## ---------------- ## 2347## Cache variables. ## 2348## ---------------- ##" 2349 echo 2350 # The following way of writing the cache mishandles newlines in values, 2351( 2352 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2353 eval ac_val=\$$ac_var 2354 case $ac_val in #( 2355 *${as_nl}*) 2356 case $ac_var in #( 2357 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2358$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2359 esac 2360 case $ac_var in #( 2361 _ | IFS | as_nl) ;; #( 2362 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2363 *) { eval $ac_var=; unset $ac_var;} ;; 2364 esac ;; 2365 esac 2366 done 2367 (set) 2>&1 | 2368 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2369 *${as_nl}ac_space=\ *) 2370 sed -n \ 2371 "s/'\''/'\''\\\\'\'''\''/g; 2372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2373 ;; #( 2374 *) 2375 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2376 ;; 2377 esac | 2378 sort 2379) 2380 echo 2381 2382 $as_echo "## ----------------- ## 2383## Output variables. ## 2384## ----------------- ##" 2385 echo 2386 for ac_var in $ac_subst_vars 2387 do 2388 eval ac_val=\$$ac_var 2389 case $ac_val in 2390 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2391 esac 2392 $as_echo "$ac_var='\''$ac_val'\''" 2393 done | sort 2394 echo 2395 2396 if test -n "$ac_subst_files"; then 2397 $as_echo "## ------------------- ## 2398## File substitutions. ## 2399## ------------------- ##" 2400 echo 2401 for ac_var in $ac_subst_files 2402 do 2403 eval ac_val=\$$ac_var 2404 case $ac_val in 2405 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2406 esac 2407 $as_echo "$ac_var='\''$ac_val'\''" 2408 done | sort 2409 echo 2410 fi 2411 2412 if test -s confdefs.h; then 2413 $as_echo "## ----------- ## 2414## confdefs.h. ## 2415## ----------- ##" 2416 echo 2417 cat confdefs.h 2418 echo 2419 fi 2420 test "$ac_signal" != 0 && 2421 $as_echo "$as_me: caught signal $ac_signal" 2422 $as_echo "$as_me: exit $exit_status" 2423 } >&5 2424 rm -f core *.core core.conftest.* && 2425 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2426 exit $exit_status 2427' 0 2428for ac_signal in 1 2 13 15; do 2429 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2430done 2431ac_signal=0 2432 2433# confdefs.h avoids OS command line length limits that DEFS can exceed. 2434rm -f -r conftest* confdefs.h 2435 2436$as_echo "/* confdefs.h */" > confdefs.h 2437 2438# Predefined preprocessor variables. 2439 2440cat >>confdefs.h <<_ACEOF 2441#define PACKAGE_NAME "$PACKAGE_NAME" 2442_ACEOF 2443 2444cat >>confdefs.h <<_ACEOF 2445#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2446_ACEOF 2447 2448cat >>confdefs.h <<_ACEOF 2449#define PACKAGE_VERSION "$PACKAGE_VERSION" 2450_ACEOF 2451 2452cat >>confdefs.h <<_ACEOF 2453#define PACKAGE_STRING "$PACKAGE_STRING" 2454_ACEOF 2455 2456cat >>confdefs.h <<_ACEOF 2457#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2458_ACEOF 2459 2460cat >>confdefs.h <<_ACEOF 2461#define PACKAGE_URL "$PACKAGE_URL" 2462_ACEOF 2463 2464 2465# Let the site file select an alternate cache file if it wants to. 2466# Prefer an explicitly selected file to automatically selected ones. 2467ac_site_file1=NONE 2468ac_site_file2=NONE 2469if test -n "$CONFIG_SITE"; then 2470 # We do not want a PATH search for config.site. 2471 case $CONFIG_SITE in #(( 2472 -*) ac_site_file1=./$CONFIG_SITE;; 2473 */*) ac_site_file1=$CONFIG_SITE;; 2474 *) ac_site_file1=./$CONFIG_SITE;; 2475 esac 2476elif test "x$prefix" != xNONE; then 2477 ac_site_file1=$prefix/share/config.site 2478 ac_site_file2=$prefix/etc/config.site 2479else 2480 ac_site_file1=$ac_default_prefix/share/config.site 2481 ac_site_file2=$ac_default_prefix/etc/config.site 2482fi 2483for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2484do 2485 test "x$ac_site_file" = xNONE && continue 2486 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2488$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2489 sed 's/^/| /' "$ac_site_file" >&5 2490 . "$ac_site_file" \ 2491 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2493as_fn_error $? "failed to load site script $ac_site_file 2494See \`config.log' for more details" "$LINENO" 5; } 2495 fi 2496done 2497 2498if test -r "$cache_file"; then 2499 # Some versions of bash will fail to source /dev/null (special files 2500 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2501 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2503$as_echo "$as_me: loading cache $cache_file" >&6;} 2504 case $cache_file in 2505 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2506 *) . "./$cache_file";; 2507 esac 2508 fi 2509else 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2511$as_echo "$as_me: creating cache $cache_file" >&6;} 2512 >$cache_file 2513fi 2514 2515as_fn_append ac_header_list " sys/sysmacros.h" 2516# Check that the precious variables saved in the cache have kept the same 2517# value. 2518ac_cache_corrupted=false 2519for ac_var in $ac_precious_vars; do 2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2521 eval ac_new_set=\$ac_env_${ac_var}_set 2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2523 eval ac_new_val=\$ac_env_${ac_var}_value 2524 case $ac_old_set,$ac_new_set in 2525 set,) 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2527$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2528 ac_cache_corrupted=: ;; 2529 ,set) 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2531$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2532 ac_cache_corrupted=: ;; 2533 ,);; 2534 *) 2535 if test "x$ac_old_val" != "x$ac_new_val"; then 2536 # differences in whitespace do not lead to failure. 2537 ac_old_val_w=`echo x $ac_old_val` 2538 ac_new_val_w=`echo x $ac_new_val` 2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2541$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2542 ac_cache_corrupted=: 2543 else 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2545$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2546 eval $ac_var=\$ac_old_val 2547 fi 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2549$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2551$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2552 fi;; 2553 esac 2554 # Pass precious variables to config.status. 2555 if test "$ac_new_set" = set; then 2556 case $ac_new_val in 2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2558 *) ac_arg=$ac_var=$ac_new_val ;; 2559 esac 2560 case " $ac_configure_args " in 2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2563 esac 2564 fi 2565done 2566if $ac_cache_corrupted; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2570$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2571 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2572fi 2573## -------------------- ## 2574## Main body of script. ## 2575## -------------------- ## 2576 2577ac_ext=c 2578ac_cpp='$CPP $CPPFLAGS' 2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2581ac_compiler_gnu=$ac_cv_c_compiler_gnu 2582 2583 2584ac_aux_dir= 2585for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2586 if test -f "$ac_dir/install-sh"; then 2587 ac_aux_dir=$ac_dir 2588 ac_install_sh="$ac_aux_dir/install-sh -c" 2589 break 2590 elif test -f "$ac_dir/install.sh"; then 2591 ac_aux_dir=$ac_dir 2592 ac_install_sh="$ac_aux_dir/install.sh -c" 2593 break 2594 elif test -f "$ac_dir/shtool"; then 2595 ac_aux_dir=$ac_dir 2596 ac_install_sh="$ac_aux_dir/shtool install -c" 2597 break 2598 fi 2599done 2600if test -z "$ac_aux_dir"; then 2601 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2602fi 2603 2604# These three variables are undocumented and unsupported, 2605# and are intended to be withdrawn in a future Autoconf release. 2606# They can cause serious problems if a builder's source tree is in a directory 2607# whose full name contains unusual characters. 2608ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2609ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2610ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2611 2612 2613# Make sure we can run config.sub. 2614$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2615 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2616 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2618$as_echo_n "checking build system type... " >&6; } 2619if ${ac_cv_build+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 ac_build_alias=$build_alias 2623test "x$ac_build_alias" = x && 2624 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2625test "x$ac_build_alias" = x && 2626 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2627ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2628 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2629 2630fi 2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2632$as_echo "$ac_cv_build" >&6; } 2633case $ac_cv_build in 2634*-*-*) ;; 2635*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2636esac 2637build=$ac_cv_build 2638ac_save_IFS=$IFS; IFS='-' 2639set x $ac_cv_build 2640shift 2641build_cpu=$1 2642build_vendor=$2 2643shift; shift 2644# Remember, the first character of IFS is used to create $*, 2645# except with old shells: 2646build_os=$* 2647IFS=$ac_save_IFS 2648case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2649 2650 2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2652$as_echo_n "checking host system type... " >&6; } 2653if ${ac_cv_host+:} false; then : 2654 $as_echo_n "(cached) " >&6 2655else 2656 if test "x$host_alias" = x; then 2657 ac_cv_host=$ac_cv_build 2658else 2659 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2660 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2661fi 2662 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2665$as_echo "$ac_cv_host" >&6; } 2666case $ac_cv_host in 2667*-*-*) ;; 2668*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2669esac 2670host=$ac_cv_host 2671ac_save_IFS=$IFS; IFS='-' 2672set x $ac_cv_host 2673shift 2674host_cpu=$1 2675host_vendor=$2 2676shift; shift 2677# Remember, the first character of IFS is used to create $*, 2678# except with old shells: 2679host_os=$* 2680IFS=$ac_save_IFS 2681case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2682 2683 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2685$as_echo_n "checking target system type... " >&6; } 2686if ${ac_cv_target+:} false; then : 2687 $as_echo_n "(cached) " >&6 2688else 2689 if test "x$target_alias" = x; then 2690 ac_cv_target=$ac_cv_host 2691else 2692 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2693 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2694fi 2695 2696fi 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2698$as_echo "$ac_cv_target" >&6; } 2699case $ac_cv_target in 2700*-*-*) ;; 2701*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2702esac 2703target=$ac_cv_target 2704ac_save_IFS=$IFS; IFS='-' 2705set x $ac_cv_target 2706shift 2707target_cpu=$1 2708target_vendor=$2 2709shift; shift 2710# Remember, the first character of IFS is used to create $*, 2711# except with old shells: 2712target_os=$* 2713IFS=$ac_save_IFS 2714case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2715 2716 2717# The aliases save the names the user supplied, while $host etc. 2718# will get canonicalized. 2719test -n "$target_alias" && 2720 test "$program_prefix$program_suffix$program_transform_name" = \ 2721 NONENONEs,x,x, && 2722 program_prefix=${target_alias}- 2723 2724# Extract the first word of "makeinfo", so it can be a program name with args. 2725set dummy makeinfo; ac_word=$2 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2727$as_echo_n "checking for $ac_word... " >&6; } 2728if ${ac_cv_prog_MAKEINFO+:} false; then : 2729 $as_echo_n "(cached) " >&6 2730else 2731 if test -n "$MAKEINFO"; then 2732 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 2733else 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2741 ac_cv_prog_MAKEINFO="makeinfo" 2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2743 break 2 2744 fi 2745done 2746 done 2747IFS=$as_save_IFS 2748 2749fi 2750fi 2751MAKEINFO=$ac_cv_prog_MAKEINFO 2752if test -n "$MAKEINFO"; then 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 2754$as_echo "$MAKEINFO" >&6; } 2755else 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757$as_echo "no" >&6; } 2758fi 2759 2760 2761 2762 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking automake version" >&5 2764$as_echo_n "checking automake version... " >&6; } 2765 2766 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 1.15" >&5 2768$as_echo "1.15" >&6; } 2769 2770 2771am__api_version='1.15' 2772 2773# Find a good install program. We prefer a C program (faster), 2774# so one script is as good as another. But avoid the broken or 2775# incompatible versions: 2776# SysV /etc/install, /usr/sbin/install 2777# SunOS /usr/etc/install 2778# IRIX /sbin/install 2779# AIX /bin/install 2780# AmigaOS /C/install, which installs bootblocks on floppy discs 2781# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2782# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2783# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2784# OS/2's system install, which has a completely different semantic 2785# ./install, which can be erroneously created by make from ./install.sh. 2786# Reject install programs that cannot install multiple files. 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2788$as_echo_n "checking for a BSD-compatible install... " >&6; } 2789if test -z "$INSTALL"; then 2790if ${ac_cv_path_install+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2794for as_dir in $PATH 2795do 2796 IFS=$as_save_IFS 2797 test -z "$as_dir" && as_dir=. 2798 # Account for people who put trailing slashes in PATH elements. 2799case $as_dir/ in #(( 2800 ./ | .// | /[cC]/* | \ 2801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2802 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2803 /usr/ucb/* ) ;; 2804 *) 2805 # OSF1 and SCO ODT 3.0 have their own names for install. 2806 # Don't use installbsd from OSF since it installs stuff as root 2807 # by default. 2808 for ac_prog in ginstall scoinst install; do 2809 for ac_exec_ext in '' $ac_executable_extensions; do 2810 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2811 if test $ac_prog = install && 2812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2813 # AIX install. It has an incompatible calling convention. 2814 : 2815 elif test $ac_prog = install && 2816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2817 # program-specific install script used by HP pwplus--don't use. 2818 : 2819 else 2820 rm -rf conftest.one conftest.two conftest.dir 2821 echo one > conftest.one 2822 echo two > conftest.two 2823 mkdir conftest.dir 2824 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2825 test -s conftest.one && test -s conftest.two && 2826 test -s conftest.dir/conftest.one && 2827 test -s conftest.dir/conftest.two 2828 then 2829 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2830 break 3 2831 fi 2832 fi 2833 fi 2834 done 2835 done 2836 ;; 2837esac 2838 2839 done 2840IFS=$as_save_IFS 2841 2842rm -rf conftest.one conftest.two conftest.dir 2843 2844fi 2845 if test "${ac_cv_path_install+set}" = set; then 2846 INSTALL=$ac_cv_path_install 2847 else 2848 # As a last resort, use the slow shell script. Don't cache a 2849 # value for INSTALL within a source directory, because that will 2850 # break other packages using the cache if that directory is 2851 # removed, or if the value is a relative name. 2852 INSTALL=$ac_install_sh 2853 fi 2854fi 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2856$as_echo "$INSTALL" >&6; } 2857 2858# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2859# It thinks the first close brace ends the variable substitution. 2860test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2861 2862test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2863 2864test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2865 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2867$as_echo_n "checking whether build environment is sane... " >&6; } 2868# Reject unsafe characters in $srcdir or the absolute working directory 2869# name. Accept space and tab only in the latter. 2870am_lf=' 2871' 2872case `pwd` in 2873 *[\\\"\#\$\&\'\`$am_lf]*) 2874 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2875esac 2876case $srcdir in 2877 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2878 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2879esac 2880 2881# Do 'set' in a subshell so we don't clobber the current shell's 2882# arguments. Must try -L first in case configure is actually a 2883# symlink; some systems play weird games with the mod time of symlinks 2884# (eg FreeBSD returns the mod time of the symlink's containing 2885# directory). 2886if ( 2887 am_has_slept=no 2888 for am_try in 1 2; do 2889 echo "timestamp, slept: $am_has_slept" > conftest.file 2890 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2891 if test "$*" = "X"; then 2892 # -L didn't work. 2893 set X `ls -t "$srcdir/configure" conftest.file` 2894 fi 2895 if test "$*" != "X $srcdir/configure conftest.file" \ 2896 && test "$*" != "X conftest.file $srcdir/configure"; then 2897 2898 # If neither matched, then we have a broken ls. This can happen 2899 # if, for instance, CONFIG_SHELL is bash and it inherits a 2900 # broken ls alias from the environment. This has actually 2901 # happened. Such a system could not be considered "sane". 2902 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2903 alias in your environment" "$LINENO" 5 2904 fi 2905 if test "$2" = conftest.file || test $am_try -eq 2; then 2906 break 2907 fi 2908 # Just in case. 2909 sleep 1 2910 am_has_slept=yes 2911 done 2912 test "$2" = conftest.file 2913 ) 2914then 2915 # Ok. 2916 : 2917else 2918 as_fn_error $? "newly created file is older than distributed files! 2919Check your system clock" "$LINENO" 5 2920fi 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2922$as_echo "yes" >&6; } 2923# If we didn't sleep, we still need to ensure time stamps of config.status and 2924# generated files are strictly newer. 2925am_sleep_pid= 2926if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2927 ( sleep 1 ) & 2928 am_sleep_pid=$! 2929fi 2930 2931rm -f conftest.file 2932 2933test "$program_prefix" != NONE && 2934 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2935# Use a double $ so make ignores it. 2936test "$program_suffix" != NONE && 2937 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2938# Double any \ or $. 2939# By default was `s,x,x', remove it if useless. 2940ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2941program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2942 2943# Expand $ac_aux_dir to an absolute path. 2944am_aux_dir=`cd "$ac_aux_dir" && pwd` 2945 2946if test x"${MISSING+set}" != xset; then 2947 case $am_aux_dir in 2948 *\ * | *\ *) 2949 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2950 *) 2951 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2952 esac 2953fi 2954# Use eval to expand $SHELL 2955if eval "$MISSING --is-lightweight"; then 2956 am_missing_run="$MISSING " 2957else 2958 am_missing_run= 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2960$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2961fi 2962 2963if test x"${install_sh+set}" != xset; then 2964 case $am_aux_dir in 2965 *\ * | *\ *) 2966 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2967 *) 2968 install_sh="\${SHELL} $am_aux_dir/install-sh" 2969 esac 2970fi 2971 2972# Installed binaries are usually stripped using 'strip' when the user 2973# run "make install-strip". However 'strip' might not be the right 2974# tool to use in cross-compilation environments, therefore Automake 2975# will honor the 'STRIP' environment variable to overrule this program. 2976if test "$cross_compiling" != no; then 2977 if test -n "$ac_tool_prefix"; then 2978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2979set dummy ${ac_tool_prefix}strip; ac_word=$2 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981$as_echo_n "checking for $ac_word... " >&6; } 2982if ${ac_cv_prog_STRIP+:} false; then : 2983 $as_echo_n "(cached) " >&6 2984else 2985 if test -n "$STRIP"; then 2986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2995 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000 done 3001IFS=$as_save_IFS 3002 3003fi 3004fi 3005STRIP=$ac_cv_prog_STRIP 3006if test -n "$STRIP"; then 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3008$as_echo "$STRIP" >&6; } 3009else 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011$as_echo "no" >&6; } 3012fi 3013 3014 3015fi 3016if test -z "$ac_cv_prog_STRIP"; then 3017 ac_ct_STRIP=$STRIP 3018 # Extract the first word of "strip", so it can be a program name with args. 3019set dummy strip; ac_word=$2 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021$as_echo_n "checking for $ac_word... " >&6; } 3022if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3023 $as_echo_n "(cached) " >&6 3024else 3025 if test -n "$ac_ct_STRIP"; then 3026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3027else 3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029for as_dir in $PATH 3030do 3031 IFS=$as_save_IFS 3032 test -z "$as_dir" && as_dir=. 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3035 ac_cv_prog_ac_ct_STRIP="strip" 3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039done 3040 done 3041IFS=$as_save_IFS 3042 3043fi 3044fi 3045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3046if test -n "$ac_ct_STRIP"; then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3048$as_echo "$ac_ct_STRIP" >&6; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052fi 3053 3054 if test "x$ac_ct_STRIP" = x; then 3055 STRIP=":" 3056 else 3057 case $cross_compiling:$ac_tool_warned in 3058yes:) 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3061ac_tool_warned=yes ;; 3062esac 3063 STRIP=$ac_ct_STRIP 3064 fi 3065else 3066 STRIP="$ac_cv_prog_STRIP" 3067fi 3068 3069fi 3070INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3071 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3073$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3074if test -z "$MKDIR_P"; then 3075 if ${ac_cv_path_mkdir+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_prog in mkdir gmkdir; do 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3086 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3087 'mkdir (GNU coreutils) '* | \ 3088 'mkdir (coreutils) '* | \ 3089 'mkdir (fileutils) '4.1*) 3090 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3091 break 3;; 3092 esac 3093 done 3094 done 3095 done 3096IFS=$as_save_IFS 3097 3098fi 3099 3100 test -d ./--version && rmdir ./--version 3101 if test "${ac_cv_path_mkdir+set}" = set; then 3102 MKDIR_P="$ac_cv_path_mkdir -p" 3103 else 3104 # As a last resort, use the slow shell script. Don't cache a 3105 # value for MKDIR_P within a source directory, because that will 3106 # break other packages using the cache if that directory is 3107 # removed, or if the value is a relative name. 3108 MKDIR_P="$ac_install_sh -d" 3109 fi 3110fi 3111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3112$as_echo "$MKDIR_P" >&6; } 3113 3114 3115for ac_prog in gawk mawk nawk awk 3116do 3117 # Extract the first word of "$ac_prog", so it can be a program name with args. 3118set dummy $ac_prog; ac_word=$2 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3120$as_echo_n "checking for $ac_word... " >&6; } 3121if ${ac_cv_prog_AWK+:} false; then : 3122 $as_echo_n "(cached) " >&6 3123else 3124 if test -n "$AWK"; then 3125 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3126else 3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3128for as_dir in $PATH 3129do 3130 IFS=$as_save_IFS 3131 test -z "$as_dir" && as_dir=. 3132 for ac_exec_ext in '' $ac_executable_extensions; do 3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3134 ac_cv_prog_AWK="$ac_prog" 3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3136 break 2 3137 fi 3138done 3139 done 3140IFS=$as_save_IFS 3141 3142fi 3143fi 3144AWK=$ac_cv_prog_AWK 3145if test -n "$AWK"; then 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3147$as_echo "$AWK" >&6; } 3148else 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3150$as_echo "no" >&6; } 3151fi 3152 3153 3154 test -n "$AWK" && break 3155done 3156 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3158$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3159set x ${MAKE-make} 3160ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3161if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163else 3164 cat >conftest.make <<\_ACEOF 3165SHELL = /bin/sh 3166all: 3167 @echo '@@@%%%=$(MAKE)=@@@%%%' 3168_ACEOF 3169# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3170case `${MAKE-make} -f conftest.make 2>/dev/null` in 3171 *@@@%%%=?*=@@@%%%*) 3172 eval ac_cv_prog_make_${ac_make}_set=yes;; 3173 *) 3174 eval ac_cv_prog_make_${ac_make}_set=no;; 3175esac 3176rm -f conftest.make 3177fi 3178if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3180$as_echo "yes" >&6; } 3181 SET_MAKE= 3182else 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3184$as_echo "no" >&6; } 3185 SET_MAKE="MAKE=${MAKE-make}" 3186fi 3187 3188rm -rf .tst 2>/dev/null 3189mkdir .tst 2>/dev/null 3190if test -d .tst; then 3191 am__leading_dot=. 3192else 3193 am__leading_dot=_ 3194fi 3195rmdir .tst 2>/dev/null 3196 3197# Check whether --enable-silent-rules was given. 3198if test "${enable_silent_rules+set}" = set; then : 3199 enableval=$enable_silent_rules; 3200fi 3201 3202case $enable_silent_rules in # ((( 3203 yes) AM_DEFAULT_VERBOSITY=0;; 3204 no) AM_DEFAULT_VERBOSITY=1;; 3205 *) AM_DEFAULT_VERBOSITY=1;; 3206esac 3207am_make=${MAKE-make} 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3209$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3210if ${am_cv_make_support_nested_variables+:} false; then : 3211 $as_echo_n "(cached) " >&6 3212else 3213 if $as_echo 'TRUE=$(BAR$(V)) 3214BAR0=false 3215BAR1=true 3216V=1 3217am__doit: 3218 @$(TRUE) 3219.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3220 am_cv_make_support_nested_variables=yes 3221else 3222 am_cv_make_support_nested_variables=no 3223fi 3224fi 3225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3226$as_echo "$am_cv_make_support_nested_variables" >&6; } 3227if test $am_cv_make_support_nested_variables = yes; then 3228 AM_V='$(V)' 3229 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3230else 3231 AM_V=$AM_DEFAULT_VERBOSITY 3232 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3233fi 3234AM_BACKSLASH='\' 3235 3236if test "`cd $srcdir && pwd`" != "`pwd`"; then 3237 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3238 # is not polluted with repeated "-I." 3239 am__isrc=' -I$(srcdir)' 3240 # test to see if srcdir already configured 3241 if test -f $srcdir/config.status; then 3242 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3243 fi 3244fi 3245 3246# test whether we have cygpath 3247if test -z "$CYGPATH_W"; then 3248 if (cygpath --version) >/dev/null 2>/dev/null; then 3249 CYGPATH_W='cygpath -w' 3250 else 3251 CYGPATH_W=echo 3252 fi 3253fi 3254 3255 3256# Define the identity of the package. 3257 PACKAGE='libntech' 3258 VERSION='0.1.0' 3259 3260 3261cat >>confdefs.h <<_ACEOF 3262#define PACKAGE "$PACKAGE" 3263_ACEOF 3264 3265 3266cat >>confdefs.h <<_ACEOF 3267#define VERSION "$VERSION" 3268_ACEOF 3269 3270# Some tools Automake needs. 3271 3272ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3273 3274 3275AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3276 3277 3278AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3279 3280 3281AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3282 3283 3284MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3285 3286# For better backward compatibility. To be removed once Automake 1.9.x 3287# dies out for good. For more background, see: 3288# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3289# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3290mkdir_p='$(MKDIR_P)' 3291 3292# We need awk for the "check" target (and possibly the TAP driver). The 3293# system "awk" is bad on some platforms. 3294# Always define AMTAR for backward compatibility. Yes, it's still used 3295# in the wild :-( We should find a proper way to deprecate it ... 3296AMTAR='$${TAR-tar}' 3297 3298 3299# We'll loop over all known methods to create a tar archive until one works. 3300_am_tools='gnutar plaintar pax cpio none' 3301 3302# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3303 # There is notably a 21 bits limit for the UID and the GID. In fact, 3304 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3305 # and bug#13588). 3306 am_max_uid=2097151 # 2^21 - 1 3307 am_max_gid=$am_max_uid 3308 # The $UID and $GID variables are not portable, so we need to resort 3309 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3310 # below are definitely unexpected, so allow the users to see them 3311 # (that is, avoid stderr redirection). 3312 am_uid=`id -u || echo unknown` 3313 am_gid=`id -g || echo unknown` 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3315$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3316 if test $am_uid -le $am_max_uid; then 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3318$as_echo "yes" >&6; } 3319 else 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3321$as_echo "no" >&6; } 3322 _am_tools=none 3323 fi 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3325$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3326 if test $am_gid -le $am_max_gid; then 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3328$as_echo "yes" >&6; } 3329 else 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3331$as_echo "no" >&6; } 3332 _am_tools=none 3333 fi 3334 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3336$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3337 3338 # Go ahead even if we have the value already cached. We do so because we 3339 # need to set the values for the 'am__tar' and 'am__untar' variables. 3340 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3341 3342 for _am_tool in $_am_tools; do 3343 case $_am_tool in 3344 gnutar) 3345 for _am_tar in tar gnutar gtar; do 3346 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3347 ($_am_tar --version) >&5 2>&5 3348 ac_status=$? 3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3350 (exit $ac_status); } && break 3351 done 3352 3353 # Work around CFEngine redmine #6925 by using --hard-dereference. 3354 { echo "$as_me:$LINENO: $_am_tar --hard-dereference 2>&1 | grep 'unrecognized option'" >&5 3355 ($_am_tar --hard-dereference 2>&1 | grep 'unrecognized option') >&5 2>&5 3356 ac_status=$? 3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3358 (exit $ac_status); } 3359 # Check if --hard-dereference is supported by this version of GNU Tar 3360 if test "$ac_status" -eq 0; then 3361 _am_gnutar_hard_dereference=false 3362 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3363 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3364 else 3365 _am_gnutar_hard_dereference=true 3366 am__tar="$_am_tar --format=ustar --hard-dereference -chf - "'"$$tardir"' 3367 am__tar_="$_am_tar --format=ustar --hard-dereference -chf - "'"$tardir"' 3368 fi 3369 3370 am__untar="$_am_tar -xf -" 3371 ;; 3372 plaintar) 3373 # Must skip GNU tar: if it does not support --format= it doesn't create 3374 # ustar tarball either. 3375 (tar --version) >/dev/null 2>&1 && continue 3376 am__tar='tar chf - "$$tardir"' 3377 am__tar_='tar chf - "$tardir"' 3378 am__untar='tar xf -' 3379 ;; 3380 pax) 3381 am__tar='pax -L -x ustar -w "$$tardir"' 3382 am__tar_='pax -L -x ustar -w "$tardir"' 3383 am__untar='pax -r' 3384 ;; 3385 cpio) 3386 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3387 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3388 am__untar='cpio -i -H ustar -d' 3389 ;; 3390 none) 3391 am__tar=false 3392 am__tar_=false 3393 am__untar=false 3394 ;; 3395 esac 3396 3397 # If the value was cached, stop now. We just wanted to have am__tar 3398 # and am__untar set. 3399 test -n "${am_cv_prog_tar_ustar}" && break 3400 3401 # tar/untar a dummy directory, and stop if the command works. 3402 rm -rf conftest.dir 3403 mkdir conftest.dir 3404 echo GrepMe > conftest.dir/file 3405 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3406 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3407 ac_status=$? 3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3409 (exit $ac_status); } 3410 rm -rf conftest.dir 3411 if test -s conftest.tar; then 3412 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3413 ($am__untar <conftest.tar) >&5 2>&5 3414 ac_status=$? 3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3416 (exit $ac_status); } 3417 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3418 (cat conftest.dir/file) >&5 2>&5 3419 ac_status=$? 3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3421 (exit $ac_status); } 3422 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3423 fi 3424 done 3425 rm -rf conftest.dir 3426 3427 if ${am_cv_prog_tar_ustar+:} false; then : 3428 $as_echo_n "(cached) " >&6 3429else 3430 am_cv_prog_tar_ustar=$_am_tool 3431fi 3432 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3434$as_echo "$am_cv_prog_tar_ustar" >&6; } 3435 3436 if test $_am_tool = gnutar; then 3437 # We've checked already, so we're just printing here 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNU tar supports --hard-dereference" >&5 3439$as_echo_n "checking if GNU tar supports --hard-dereference... " >&6; } 3440 if test x$_am_gnutar_hard_dereference = xtrue; then 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3442$as_echo "yes" >&6; } 3443 else 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3445$as_echo "no" >&6; } 3446 fi 3447 fi 3448 3449 3450 3451 3452 3453 3454# POSIX will say in a future version that running "rm -f" with no argument 3455# is OK; and we want to be able to make that assumption in our Makefile 3456# recipes. So use an aggressive probe to check that the usage we want is 3457# actually supported "in the wild" to an acceptable degree. 3458# See automake bug#10828. 3459# To make any issue more visible, cause the running configure to be aborted 3460# by default if the 'rm' program in use doesn't match our expectations; the 3461# user can still override this though. 3462if rm -f && rm -fr && rm -rf; then : OK; else 3463 cat >&2 <<'END' 3464Oops! 3465 3466Your 'rm' program seems unable to run without file operands specified 3467on the command line, even when the '-f' option is present. This is contrary 3468to the behaviour of most rm programs out there, and not conforming with 3469the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3470 3471Please tell bug-automake@gnu.org about your system, including the value 3472of your $PATH and any error possibly output before this message. This 3473can help us improve future automake versions. 3474 3475END 3476 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3477 echo 'Configuration will proceed anyway, since you have set the' >&2 3478 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3479 echo >&2 3480 else 3481 cat >&2 <<'END' 3482Aborting the configuration process, to ensure you take notice of the issue. 3483 3484You can download and install GNU coreutils to get an 'rm' implementation 3485that behaves properly: <http://www.gnu.org/software/coreutils/>. 3486 3487If you want to complete the configuration process using your problematic 3488'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3489to "yes", and re-run configure. 3490 3491END 3492 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3493 fi 3494fi 3495 3496 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3498$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3499 # Check whether --enable-maintainer-mode was given. 3500if test "${enable_maintainer_mode+set}" = set; then : 3501 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3502else 3503 USE_MAINTAINER_MODE=yes 3504fi 3505 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3507$as_echo "$USE_MAINTAINER_MODE" >&6; } 3508 if test $USE_MAINTAINER_MODE = yes; then 3509 MAINTAINER_MODE_TRUE= 3510 MAINTAINER_MODE_FALSE='#' 3511else 3512 MAINTAINER_MODE_TRUE='#' 3513 MAINTAINER_MODE_FALSE= 3514fi 3515 3516 MAINT=$MAINTAINER_MODE_TRUE 3517 3518 3519 3520 3521 3522 3523$as_echo "#define BUILD_YEAR 2021" >>confdefs.h 3524 3525 3526 3527cat >>confdefs.h <<_ACEOF 3528#define ABS_TOP_SRCDIR "`cd -- "$srcdir"; pwd`" 3529_ACEOF 3530 3531 3532# Check whether --enable-silent-rules was given. 3533if test "${enable_silent_rules+set}" = set; then : 3534 enableval=$enable_silent_rules; 3535fi 3536 3537case $enable_silent_rules in # ((( 3538 yes) AM_DEFAULT_VERBOSITY=0;; 3539 no) AM_DEFAULT_VERBOSITY=1;; 3540 *) AM_DEFAULT_VERBOSITY=0;; 3541esac 3542am_make=${MAKE-make} 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3544$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3545if ${am_cv_make_support_nested_variables+:} false; then : 3546 $as_echo_n "(cached) " >&6 3547else 3548 if $as_echo 'TRUE=$(BAR$(V)) 3549BAR0=false 3550BAR1=true 3551V=1 3552am__doit: 3553 @$(TRUE) 3554.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3555 am_cv_make_support_nested_variables=yes 3556else 3557 am_cv_make_support_nested_variables=no 3558fi 3559fi 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3561$as_echo "$am_cv_make_support_nested_variables" >&6; } 3562if test $am_cv_make_support_nested_variables = yes; then 3563 AM_V='$(V)' 3564 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3565else 3566 AM_V=$AM_DEFAULT_VERBOSITY 3567 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3568fi 3569AM_BACKSLASH='\' 3570 3571 3572ac_config_headers="$ac_config_headers config.h" 3573 3574 3575 3576 3577 3578 3579 3580 3581ENV_CFLAGS="$CFLAGS" 3582 3583 3584ac_ext=c 3585ac_cpp='$CPP $CPPFLAGS' 3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3588ac_compiler_gnu=$ac_cv_c_compiler_gnu 3589if test -n "$ac_tool_prefix"; then 3590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3591set dummy ${ac_tool_prefix}gcc; ac_word=$2 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3593$as_echo_n "checking for $ac_word... " >&6; } 3594if ${ac_cv_prog_CC+:} false; then : 3595 $as_echo_n "(cached) " >&6 3596else 3597 if test -n "$CC"; then 3598 ac_cv_prog_CC="$CC" # Let the user override the test. 3599else 3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3601for as_dir in $PATH 3602do 3603 IFS=$as_save_IFS 3604 test -z "$as_dir" && as_dir=. 3605 for ac_exec_ext in '' $ac_executable_extensions; do 3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3607 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3609 break 2 3610 fi 3611done 3612 done 3613IFS=$as_save_IFS 3614 3615fi 3616fi 3617CC=$ac_cv_prog_CC 3618if test -n "$CC"; then 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3620$as_echo "$CC" >&6; } 3621else 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3623$as_echo "no" >&6; } 3624fi 3625 3626 3627fi 3628if test -z "$ac_cv_prog_CC"; then 3629 ac_ct_CC=$CC 3630 # Extract the first word of "gcc", so it can be a program name with args. 3631set dummy gcc; ac_word=$2 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3633$as_echo_n "checking for $ac_word... " >&6; } 3634if ${ac_cv_prog_ac_ct_CC+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 if test -n "$ac_ct_CC"; then 3638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3639else 3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641for as_dir in $PATH 3642do 3643 IFS=$as_save_IFS 3644 test -z "$as_dir" && as_dir=. 3645 for ac_exec_ext in '' $ac_executable_extensions; do 3646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3647 ac_cv_prog_ac_ct_CC="gcc" 3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3649 break 2 3650 fi 3651done 3652 done 3653IFS=$as_save_IFS 3654 3655fi 3656fi 3657ac_ct_CC=$ac_cv_prog_ac_ct_CC 3658if test -n "$ac_ct_CC"; then 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3660$as_echo "$ac_ct_CC" >&6; } 3661else 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3663$as_echo "no" >&6; } 3664fi 3665 3666 if test "x$ac_ct_CC" = x; then 3667 CC="" 3668 else 3669 case $cross_compiling:$ac_tool_warned in 3670yes:) 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3673ac_tool_warned=yes ;; 3674esac 3675 CC=$ac_ct_CC 3676 fi 3677else 3678 CC="$ac_cv_prog_CC" 3679fi 3680 3681if test -z "$CC"; then 3682 if test -n "$ac_tool_prefix"; then 3683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3684set dummy ${ac_tool_prefix}cc; ac_word=$2 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3686$as_echo_n "checking for $ac_word... " >&6; } 3687if ${ac_cv_prog_CC+:} false; then : 3688 $as_echo_n "(cached) " >&6 3689else 3690 if test -n "$CC"; then 3691 ac_cv_prog_CC="$CC" # Let the user override the test. 3692else 3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3694for as_dir in $PATH 3695do 3696 IFS=$as_save_IFS 3697 test -z "$as_dir" && as_dir=. 3698 for ac_exec_ext in '' $ac_executable_extensions; do 3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3700 ac_cv_prog_CC="${ac_tool_prefix}cc" 3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3702 break 2 3703 fi 3704done 3705 done 3706IFS=$as_save_IFS 3707 3708fi 3709fi 3710CC=$ac_cv_prog_CC 3711if test -n "$CC"; then 3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3713$as_echo "$CC" >&6; } 3714else 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3716$as_echo "no" >&6; } 3717fi 3718 3719 3720 fi 3721fi 3722if test -z "$CC"; then 3723 # Extract the first word of "cc", so it can be a program name with args. 3724set dummy cc; ac_word=$2 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3726$as_echo_n "checking for $ac_word... " >&6; } 3727if ${ac_cv_prog_CC+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 if test -n "$CC"; then 3731 ac_cv_prog_CC="$CC" # Let the user override the test. 3732else 3733 ac_prog_rejected=no 3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3735for as_dir in $PATH 3736do 3737 IFS=$as_save_IFS 3738 test -z "$as_dir" && as_dir=. 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3742 ac_prog_rejected=yes 3743 continue 3744 fi 3745 ac_cv_prog_CC="cc" 3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3747 break 2 3748 fi 3749done 3750 done 3751IFS=$as_save_IFS 3752 3753if test $ac_prog_rejected = yes; then 3754 # We found a bogon in the path, so make sure we never use it. 3755 set dummy $ac_cv_prog_CC 3756 shift 3757 if test $# != 0; then 3758 # We chose a different compiler from the bogus one. 3759 # However, it has the same basename, so the bogon will be chosen 3760 # first if we set CC to just the basename; use the full file name. 3761 shift 3762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3763 fi 3764fi 3765fi 3766fi 3767CC=$ac_cv_prog_CC 3768if test -n "$CC"; then 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3770$as_echo "$CC" >&6; } 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773$as_echo "no" >&6; } 3774fi 3775 3776 3777fi 3778if test -z "$CC"; then 3779 if test -n "$ac_tool_prefix"; then 3780 for ac_prog in cl.exe 3781 do 3782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3783set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3785$as_echo_n "checking for $ac_word... " >&6; } 3786if ${ac_cv_prog_CC+:} false; then : 3787 $as_echo_n "(cached) " >&6 3788else 3789 if test -n "$CC"; then 3790 ac_cv_prog_CC="$CC" # Let the user override the test. 3791else 3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3793for as_dir in $PATH 3794do 3795 IFS=$as_save_IFS 3796 test -z "$as_dir" && as_dir=. 3797 for ac_exec_ext in '' $ac_executable_extensions; do 3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3801 break 2 3802 fi 3803done 3804 done 3805IFS=$as_save_IFS 3806 3807fi 3808fi 3809CC=$ac_cv_prog_CC 3810if test -n "$CC"; then 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3812$as_echo "$CC" >&6; } 3813else 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3815$as_echo "no" >&6; } 3816fi 3817 3818 3819 test -n "$CC" && break 3820 done 3821fi 3822if test -z "$CC"; then 3823 ac_ct_CC=$CC 3824 for ac_prog in cl.exe 3825do 3826 # Extract the first word of "$ac_prog", so it can be a program name with args. 3827set dummy $ac_prog; ac_word=$2 3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3829$as_echo_n "checking for $ac_word... " >&6; } 3830if ${ac_cv_prog_ac_ct_CC+:} false; then : 3831 $as_echo_n "(cached) " >&6 3832else 3833 if test -n "$ac_ct_CC"; then 3834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3835else 3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3837for as_dir in $PATH 3838do 3839 IFS=$as_save_IFS 3840 test -z "$as_dir" && as_dir=. 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3843 ac_cv_prog_ac_ct_CC="$ac_prog" 3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3845 break 2 3846 fi 3847done 3848 done 3849IFS=$as_save_IFS 3850 3851fi 3852fi 3853ac_ct_CC=$ac_cv_prog_ac_ct_CC 3854if test -n "$ac_ct_CC"; then 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3856$as_echo "$ac_ct_CC" >&6; } 3857else 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859$as_echo "no" >&6; } 3860fi 3861 3862 3863 test -n "$ac_ct_CC" && break 3864done 3865 3866 if test "x$ac_ct_CC" = x; then 3867 CC="" 3868 else 3869 case $cross_compiling:$ac_tool_warned in 3870yes:) 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3873ac_tool_warned=yes ;; 3874esac 3875 CC=$ac_ct_CC 3876 fi 3877fi 3878 3879fi 3880 3881 3882test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3884as_fn_error $? "no acceptable C compiler found in \$PATH 3885See \`config.log' for more details" "$LINENO" 5; } 3886 3887# Provide some information about the compiler. 3888$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3889set X $ac_compile 3890ac_compiler=$2 3891for ac_option in --version -v -V -qversion; do 3892 { { ac_try="$ac_compiler $ac_option >&5" 3893case "(($ac_try" in 3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3895 *) ac_try_echo=$ac_try;; 3896esac 3897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3898$as_echo "$ac_try_echo"; } >&5 3899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3900 ac_status=$? 3901 if test -s conftest.err; then 3902 sed '10a\ 3903... rest of stderr output deleted ... 3904 10q' conftest.err >conftest.er1 3905 cat conftest.er1 >&5 3906 fi 3907 rm -f conftest.er1 conftest.err 3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3909 test $ac_status = 0; } 3910done 3911 3912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3913/* end confdefs.h. */ 3914 3915int 3916main () 3917{ 3918 3919 ; 3920 return 0; 3921} 3922_ACEOF 3923ac_clean_files_save=$ac_clean_files 3924ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3925# Try to create an executable without -o first, disregard a.out. 3926# It will help us diagnose broken compilers, and finding out an intuition 3927# of exeext. 3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3929$as_echo_n "checking whether the C compiler works... " >&6; } 3930ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3931 3932# The possible output files: 3933ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3934 3935ac_rmfiles= 3936for ac_file in $ac_files 3937do 3938 case $ac_file in 3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3940 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3941 esac 3942done 3943rm -f $ac_rmfiles 3944 3945if { { ac_try="$ac_link_default" 3946case "(($ac_try" in 3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3948 *) ac_try_echo=$ac_try;; 3949esac 3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3951$as_echo "$ac_try_echo"; } >&5 3952 (eval "$ac_link_default") 2>&5 3953 ac_status=$? 3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3955 test $ac_status = 0; }; then : 3956 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3957# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3958# in a Makefile. We should not override ac_cv_exeext if it was cached, 3959# so that the user can short-circuit this test for compilers unknown to 3960# Autoconf. 3961for ac_file in $ac_files '' 3962do 3963 test -f "$ac_file" || continue 3964 case $ac_file in 3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3966 ;; 3967 [ab].out ) 3968 # We found the default executable, but exeext='' is most 3969 # certainly right. 3970 break;; 3971 *.* ) 3972 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3973 then :; else 3974 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3975 fi 3976 # We set ac_cv_exeext here because the later test for it is not 3977 # safe: cross compilers may not add the suffix if given an `-o' 3978 # argument, so we may need to know it at that point already. 3979 # Even if this section looks crufty: it has the advantage of 3980 # actually working. 3981 break;; 3982 * ) 3983 break;; 3984 esac 3985done 3986test "$ac_cv_exeext" = no && ac_cv_exeext= 3987 3988else 3989 ac_file='' 3990fi 3991if test -z "$ac_file"; then : 3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3993$as_echo "no" >&6; } 3994$as_echo "$as_me: failed program was:" >&5 3995sed 's/^/| /' conftest.$ac_ext >&5 3996 3997{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3999as_fn_error 77 "C compiler cannot create executables 4000See \`config.log' for more details" "$LINENO" 5; } 4001else 4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4003$as_echo "yes" >&6; } 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4006$as_echo_n "checking for C compiler default output file name... " >&6; } 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4008$as_echo "$ac_file" >&6; } 4009ac_exeext=$ac_cv_exeext 4010 4011rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4012ac_clean_files=$ac_clean_files_save 4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4014$as_echo_n "checking for suffix of executables... " >&6; } 4015if { { ac_try="$ac_link" 4016case "(($ac_try" in 4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4018 *) ac_try_echo=$ac_try;; 4019esac 4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4021$as_echo "$ac_try_echo"; } >&5 4022 (eval "$ac_link") 2>&5 4023 ac_status=$? 4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4025 test $ac_status = 0; }; then : 4026 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4027# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4028# work properly (i.e., refer to `conftest.exe'), while it won't with 4029# `rm'. 4030for ac_file in conftest.exe conftest conftest.*; do 4031 test -f "$ac_file" || continue 4032 case $ac_file in 4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4034 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4035 break;; 4036 * ) break;; 4037 esac 4038done 4039else 4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4042as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4043See \`config.log' for more details" "$LINENO" 5; } 4044fi 4045rm -f conftest conftest$ac_cv_exeext 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4047$as_echo "$ac_cv_exeext" >&6; } 4048 4049rm -f conftest.$ac_ext 4050EXEEXT=$ac_cv_exeext 4051ac_exeext=$EXEEXT 4052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054#include <stdio.h> 4055int 4056main () 4057{ 4058FILE *f = fopen ("conftest.out", "w"); 4059 return ferror (f) || fclose (f) != 0; 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065ac_clean_files="$ac_clean_files conftest.out" 4066# Check that the compiler produces executables we can run. If not, either 4067# the compiler is broken, or we cross compile. 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4069$as_echo_n "checking whether we are cross compiling... " >&6; } 4070if test "$cross_compiling" != yes; then 4071 { { ac_try="$ac_link" 4072case "(($ac_try" in 4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4074 *) ac_try_echo=$ac_try;; 4075esac 4076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4077$as_echo "$ac_try_echo"; } >&5 4078 (eval "$ac_link") 2>&5 4079 ac_status=$? 4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4081 test $ac_status = 0; } 4082 if { ac_try='./conftest$ac_cv_exeext' 4083 { { case "(($ac_try" in 4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4085 *) ac_try_echo=$ac_try;; 4086esac 4087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4088$as_echo "$ac_try_echo"; } >&5 4089 (eval "$ac_try") 2>&5 4090 ac_status=$? 4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4092 test $ac_status = 0; }; }; then 4093 cross_compiling=no 4094 else 4095 if test "$cross_compiling" = maybe; then 4096 cross_compiling=yes 4097 else 4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4100as_fn_error $? "cannot run C compiled programs. 4101If you meant to cross compile, use \`--host'. 4102See \`config.log' for more details" "$LINENO" 5; } 4103 fi 4104 fi 4105fi 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4107$as_echo "$cross_compiling" >&6; } 4108 4109rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4110ac_clean_files=$ac_clean_files_save 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4112$as_echo_n "checking for suffix of object files... " >&6; } 4113if ${ac_cv_objext+:} false; then : 4114 $as_echo_n "(cached) " >&6 4115else 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4117/* end confdefs.h. */ 4118 4119int 4120main () 4121{ 4122 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127rm -f conftest.o conftest.obj 4128if { { ac_try="$ac_compile" 4129case "(($ac_try" in 4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4131 *) ac_try_echo=$ac_try;; 4132esac 4133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4134$as_echo "$ac_try_echo"; } >&5 4135 (eval "$ac_compile") 2>&5 4136 ac_status=$? 4137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4138 test $ac_status = 0; }; then : 4139 for ac_file in conftest.o conftest.obj conftest.*; do 4140 test -f "$ac_file" || continue; 4141 case $ac_file in 4142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4143 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4144 break;; 4145 esac 4146done 4147else 4148 $as_echo "$as_me: failed program was:" >&5 4149sed 's/^/| /' conftest.$ac_ext >&5 4150 4151{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4153as_fn_error $? "cannot compute suffix of object files: cannot compile 4154See \`config.log' for more details" "$LINENO" 5; } 4155fi 4156rm -f conftest.$ac_cv_objext conftest.$ac_ext 4157fi 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4159$as_echo "$ac_cv_objext" >&6; } 4160OBJEXT=$ac_cv_objext 4161ac_objext=$OBJEXT 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4163$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4164if ${ac_cv_c_compiler_gnu+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4168/* end confdefs.h. */ 4169 4170int 4171main () 4172{ 4173#ifndef __GNUC__ 4174 choke me 4175#endif 4176 4177 ; 4178 return 0; 4179} 4180_ACEOF 4181if ac_fn_c_try_compile "$LINENO"; then : 4182 ac_compiler_gnu=yes 4183else 4184 ac_compiler_gnu=no 4185fi 4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4187ac_cv_c_compiler_gnu=$ac_compiler_gnu 4188 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4191$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4192if test $ac_compiler_gnu = yes; then 4193 GCC=yes 4194else 4195 GCC= 4196fi 4197ac_test_CFLAGS=${CFLAGS+set} 4198ac_save_CFLAGS=$CFLAGS 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4200$as_echo_n "checking whether $CC accepts -g... " >&6; } 4201if ${ac_cv_prog_cc_g+:} false; then : 4202 $as_echo_n "(cached) " >&6 4203else 4204 ac_save_c_werror_flag=$ac_c_werror_flag 4205 ac_c_werror_flag=yes 4206 ac_cv_prog_cc_g=no 4207 CFLAGS="-g" 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210 4211int 4212main () 4213{ 4214 4215 ; 4216 return 0; 4217} 4218_ACEOF 4219if ac_fn_c_try_compile "$LINENO"; then : 4220 ac_cv_prog_cc_g=yes 4221else 4222 CFLAGS="" 4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224/* end confdefs.h. */ 4225 4226int 4227main () 4228{ 4229 4230 ; 4231 return 0; 4232} 4233_ACEOF 4234if ac_fn_c_try_compile "$LINENO"; then : 4235 4236else 4237 ac_c_werror_flag=$ac_save_c_werror_flag 4238 CFLAGS="-g" 4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240/* end confdefs.h. */ 4241 4242int 4243main () 4244{ 4245 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250if ac_fn_c_try_compile "$LINENO"; then : 4251 ac_cv_prog_cc_g=yes 4252fi 4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4254fi 4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4258 ac_c_werror_flag=$ac_save_c_werror_flag 4259fi 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4261$as_echo "$ac_cv_prog_cc_g" >&6; } 4262if test "$ac_test_CFLAGS" = set; then 4263 CFLAGS=$ac_save_CFLAGS 4264elif test $ac_cv_prog_cc_g = yes; then 4265 if test "$GCC" = yes; then 4266 CFLAGS="-g -O2" 4267 else 4268 CFLAGS="-g" 4269 fi 4270else 4271 if test "$GCC" = yes; then 4272 CFLAGS="-O2" 4273 else 4274 CFLAGS= 4275 fi 4276fi 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4278$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4279if ${ac_cv_prog_cc_c89+:} false; then : 4280 $as_echo_n "(cached) " >&6 4281else 4282 ac_cv_prog_cc_c89=no 4283ac_save_CC=$CC 4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#include <stdarg.h> 4287#include <stdio.h> 4288struct stat; 4289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4290struct buf { int x; }; 4291FILE * (*rcsopen) (struct buf *, struct stat *, int); 4292static char *e (p, i) 4293 char **p; 4294 int i; 4295{ 4296 return p[i]; 4297} 4298static char *f (char * (*g) (char **, int), char **p, ...) 4299{ 4300 char *s; 4301 va_list v; 4302 va_start (v,p); 4303 s = g (p, va_arg (v,int)); 4304 va_end (v); 4305 return s; 4306} 4307 4308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4309 function prototypes and stuff, but not '\xHH' hex character constants. 4310 These don't provoke an error unfortunately, instead are silently treated 4311 as 'x'. The following induces an error, until -std is added to get 4312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4313 array size at least. It's necessary to write '\x00'==0 to get something 4314 that's true only with -std. */ 4315int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4316 4317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4318 inside strings and character constants. */ 4319#define FOO(x) 'x' 4320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4321 4322int test (int i, double x); 4323struct s1 {int (*f) (int a);}; 4324struct s2 {int (*f) (double a);}; 4325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4326int argc; 4327char **argv; 4328int 4329main () 4330{ 4331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4338do 4339 CC="$ac_save_CC $ac_arg" 4340 if ac_fn_c_try_compile "$LINENO"; then : 4341 ac_cv_prog_cc_c89=$ac_arg 4342fi 4343rm -f core conftest.err conftest.$ac_objext 4344 test "x$ac_cv_prog_cc_c89" != "xno" && break 4345done 4346rm -f conftest.$ac_ext 4347CC=$ac_save_CC 4348 4349fi 4350# AC_CACHE_VAL 4351case "x$ac_cv_prog_cc_c89" in 4352 x) 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4354$as_echo "none needed" >&6; } ;; 4355 xno) 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4357$as_echo "unsupported" >&6; } ;; 4358 *) 4359 CC="$CC $ac_cv_prog_cc_c89" 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4361$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4362esac 4363if test "x$ac_cv_prog_cc_c89" != xno; then : 4364 4365fi 4366 4367ac_ext=c 4368ac_cpp='$CPP $CPPFLAGS' 4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4371ac_compiler_gnu=$ac_cv_c_compiler_gnu 4372 4373ac_ext=c 4374ac_cpp='$CPP $CPPFLAGS' 4375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4377ac_compiler_gnu=$ac_cv_c_compiler_gnu 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4379$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4380if ${am_cv_prog_cc_c_o+:} false; then : 4381 $as_echo_n "(cached) " >&6 4382else 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384/* end confdefs.h. */ 4385 4386int 4387main () 4388{ 4389 4390 ; 4391 return 0; 4392} 4393_ACEOF 4394 # Make sure it works both with $CC and with simple cc. 4395 # Following AC_PROG_CC_C_O, we do the test twice because some 4396 # compilers refuse to overwrite an existing .o file with -o, 4397 # though they will create one. 4398 am_cv_prog_cc_c_o=yes 4399 for am_i in 1 2; do 4400 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4401 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4402 ac_status=$? 4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4404 (exit $ac_status); } \ 4405 && test -f conftest2.$ac_objext; then 4406 : OK 4407 else 4408 am_cv_prog_cc_c_o=no 4409 break 4410 fi 4411 done 4412 rm -f core conftest* 4413 unset am_i 4414fi 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4416$as_echo "$am_cv_prog_cc_c_o" >&6; } 4417if test "$am_cv_prog_cc_c_o" != yes; then 4418 # Losing compiler, so override with the script. 4419 # FIXME: It is wrong to rewrite CC. 4420 # But if we don't then we get into trouble of one sort or another. 4421 # A longer-term fix would be to have automake use am__CC in this case, 4422 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4423 CC="$am_aux_dir/compile $CC" 4424fi 4425ac_ext=c 4426ac_cpp='$CPP $CPPFLAGS' 4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4429ac_compiler_gnu=$ac_cv_c_compiler_gnu 4430 4431DEPDIR="${am__leading_dot}deps" 4432 4433ac_config_commands="$ac_config_commands depfiles" 4434 4435 4436am_make=${MAKE-make} 4437cat > confinc << 'END' 4438am__doit: 4439 @echo this is the am__doit target 4440.PHONY: am__doit 4441END 4442# If we don't find an include directive, just comment out the code. 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4444$as_echo_n "checking for style of include used by $am_make... " >&6; } 4445am__include="#" 4446am__quote= 4447_am_result=none 4448# First try GNU make style include. 4449echo "include confinc" > confmf 4450# Ignore all kinds of additional output from 'make'. 4451case `$am_make -s -f confmf 2> /dev/null` in #( 4452*the\ am__doit\ target*) 4453 am__include=include 4454 am__quote= 4455 _am_result=GNU 4456 ;; 4457esac 4458# Now try BSD make style include. 4459if test "$am__include" = "#"; then 4460 echo '.include "confinc"' > confmf 4461 case `$am_make -s -f confmf 2> /dev/null` in #( 4462 *the\ am__doit\ target*) 4463 am__include=.include 4464 am__quote="\"" 4465 _am_result=BSD 4466 ;; 4467 esac 4468fi 4469 4470 4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4472$as_echo "$_am_result" >&6; } 4473rm -f confinc confmf 4474 4475# Check whether --enable-dependency-tracking was given. 4476if test "${enable_dependency_tracking+set}" = set; then : 4477 enableval=$enable_dependency_tracking; 4478fi 4479 4480if test "x$enable_dependency_tracking" != xno; then 4481 am_depcomp="$ac_aux_dir/depcomp" 4482 AMDEPBACKSLASH='\' 4483 am__nodep='_no' 4484fi 4485 if test "x$enable_dependency_tracking" != xno; then 4486 AMDEP_TRUE= 4487 AMDEP_FALSE='#' 4488else 4489 AMDEP_TRUE='#' 4490 AMDEP_FALSE= 4491fi 4492 4493 4494 4495depcc="$CC" am_compiler_list= 4496 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4498$as_echo_n "checking dependency style of $depcc... " >&6; } 4499if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4503 # We make a subdir and do the tests there. Otherwise we can end up 4504 # making bogus files that we don't know about and never remove. For 4505 # instance it was reported that on HP-UX the gcc test will end up 4506 # making a dummy file named 'D' -- because '-MD' means "put the output 4507 # in D". 4508 rm -rf conftest.dir 4509 mkdir conftest.dir 4510 # Copy depcomp to subdir because otherwise we won't find it if we're 4511 # using a relative directory. 4512 cp "$am_depcomp" conftest.dir 4513 cd conftest.dir 4514 # We will build objects and dependencies in a subdirectory because 4515 # it helps to detect inapplicable dependency modes. For instance 4516 # both Tru64's cc and ICC support -MD to output dependencies as a 4517 # side effect of compilation, but ICC will put the dependencies in 4518 # the current directory while Tru64 will put them in the object 4519 # directory. 4520 mkdir sub 4521 4522 am_cv_CC_dependencies_compiler_type=none 4523 if test "$am_compiler_list" = ""; then 4524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4525 fi 4526 am__universal=false 4527 case " $depcc " in #( 4528 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4529 esac 4530 4531 for depmode in $am_compiler_list; do 4532 # Setup a source with many dependencies, because some compilers 4533 # like to wrap large dependency lists on column 80 (with \), and 4534 # we should not choose a depcomp mode which is confused by this. 4535 # 4536 # We need to recreate these files for each test, as the compiler may 4537 # overwrite some of them when testing with obscure command lines. 4538 # This happens at least with the AIX C compiler. 4539 : > sub/conftest.c 4540 for i in 1 2 3 4 5 6; do 4541 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4542 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4543 # Solaris 10 /bin/sh. 4544 echo '/* dummy */' > sub/conftst$i.h 4545 done 4546 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4547 4548 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4549 # mode. It turns out that the SunPro C++ compiler does not properly 4550 # handle '-M -o', and we need to detect this. Also, some Intel 4551 # versions had trouble with output in subdirs. 4552 am__obj=sub/conftest.${OBJEXT-o} 4553 am__minus_obj="-o $am__obj" 4554 case $depmode in 4555 gcc) 4556 # This depmode causes a compiler race in universal mode. 4557 test "$am__universal" = false || continue 4558 ;; 4559 nosideeffect) 4560 # After this tag, mechanisms are not by side-effect, so they'll 4561 # only be used when explicitly requested. 4562 if test "x$enable_dependency_tracking" = xyes; then 4563 continue 4564 else 4565 break 4566 fi 4567 ;; 4568 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4569 # This compiler won't grok '-c -o', but also, the minuso test has 4570 # not run yet. These depmodes are late enough in the game, and 4571 # so weak that their functioning should not be impacted. 4572 am__obj=conftest.${OBJEXT-o} 4573 am__minus_obj= 4574 ;; 4575 none) break ;; 4576 esac 4577 if depmode=$depmode \ 4578 source=sub/conftest.c object=$am__obj \ 4579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4580 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4581 >/dev/null 2>conftest.err && 4582 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4583 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4584 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4585 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4586 # icc doesn't choke on unknown options, it will just issue warnings 4587 # or remarks (even with -Werror). So we grep stderr for any message 4588 # that says an option was ignored or not supported. 4589 # When given -MP, icc 7.0 and 7.1 complain thusly: 4590 # icc: Command line warning: ignoring option '-M'; no argument required 4591 # The diagnosis changed in icc 8.0: 4592 # icc: Command line remark: option '-MP' not supported 4593 if (grep 'ignoring option' conftest.err || 4594 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4595 am_cv_CC_dependencies_compiler_type=$depmode 4596 break 4597 fi 4598 fi 4599 done 4600 4601 cd .. 4602 rm -rf conftest.dir 4603else 4604 am_cv_CC_dependencies_compiler_type=none 4605fi 4606 4607fi 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4609$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4610CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4611 4612 if 4613 test "x$enable_dependency_tracking" != xno \ 4614 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4615 am__fastdepCC_TRUE= 4616 am__fastdepCC_FALSE='#' 4617else 4618 am__fastdepCC_TRUE='#' 4619 am__fastdepCC_FALSE= 4620fi 4621 4622 4623 4624 4625 4626# 4627# Copyright 2021 Northern.tech AS 4628# 4629# This file is part of CFEngine 3 - written and maintained by Northern.tech AS. 4630# 4631# This program is free software; you can redistribute it and/or modify it 4632# under the terms of the GNU General Public License as published by the 4633# Free Software Foundation; version 3. 4634# 4635# This program is distributed in the hope that it will be useful, 4636# but WITHOUT ANY WARRANTY; without even the implied warranty of 4637# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 4638# GNU General Public License for more details. 4639# 4640# You should have received a copy of the GNU General Public License 4641# along with this program; if not, write to the Free Software 4642# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 4643# 4644# To the extent this program is licensed as part of the Enterprise 4645# versions of CFEngine, the applicable Commercial Open Source License 4646# (COSL) may apply to this file if you as a licensee so wish it. See 4647# included file COSL.txt. 4648# 4649 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP-UX aC" >&5 4651$as_echo_n "checking for HP-UX aC... " >&6; } 4652 4653ac_ext=c 4654ac_cpp='$CPP $CPPFLAGS' 4655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4657ac_compiler_gnu=$ac_cv_c_compiler_gnu 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4659$as_echo_n "checking how to run the C preprocessor... " >&6; } 4660# On Suns, sometimes $CPP names a directory. 4661if test -n "$CPP" && test -d "$CPP"; then 4662 CPP= 4663fi 4664if test -z "$CPP"; then 4665 if ${ac_cv_prog_CPP+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 # Double quotes because CPP needs to be expanded 4669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4670 do 4671 ac_preproc_ok=false 4672for ac_c_preproc_warn_flag in '' yes 4673do 4674 # Use a header file that comes with gcc, so configuring glibc 4675 # with a fresh cross-compiler works. 4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4677 # <limits.h> exists even on freestanding compilers. 4678 # On the NeXT, cc -E runs the code through the compiler's parser, 4679 # not just through cpp. "Syntax error" is here to catch this case. 4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4681/* end confdefs.h. */ 4682#ifdef __STDC__ 4683# include <limits.h> 4684#else 4685# include <assert.h> 4686#endif 4687 Syntax error 4688_ACEOF 4689if ac_fn_c_try_cpp "$LINENO"; then : 4690 4691else 4692 # Broken: fails on valid input. 4693continue 4694fi 4695rm -f conftest.err conftest.i conftest.$ac_ext 4696 4697 # OK, works on sane cases. Now check whether nonexistent headers 4698 # can be detected and how. 4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4700/* end confdefs.h. */ 4701#include <ac_nonexistent.h> 4702_ACEOF 4703if ac_fn_c_try_cpp "$LINENO"; then : 4704 # Broken: success on invalid input. 4705continue 4706else 4707 # Passes both tests. 4708ac_preproc_ok=: 4709break 4710fi 4711rm -f conftest.err conftest.i conftest.$ac_ext 4712 4713done 4714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4715rm -f conftest.i conftest.err conftest.$ac_ext 4716if $ac_preproc_ok; then : 4717 break 4718fi 4719 4720 done 4721 ac_cv_prog_CPP=$CPP 4722 4723fi 4724 CPP=$ac_cv_prog_CPP 4725else 4726 ac_cv_prog_CPP=$CPP 4727fi 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4729$as_echo "$CPP" >&6; } 4730ac_preproc_ok=false 4731for ac_c_preproc_warn_flag in '' yes 4732do 4733 # Use a header file that comes with gcc, so configuring glibc 4734 # with a fresh cross-compiler works. 4735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4736 # <limits.h> exists even on freestanding compilers. 4737 # On the NeXT, cc -E runs the code through the compiler's parser, 4738 # not just through cpp. "Syntax error" is here to catch this case. 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740/* end confdefs.h. */ 4741#ifdef __STDC__ 4742# include <limits.h> 4743#else 4744# include <assert.h> 4745#endif 4746 Syntax error 4747_ACEOF 4748if ac_fn_c_try_cpp "$LINENO"; then : 4749 4750else 4751 # Broken: fails on valid input. 4752continue 4753fi 4754rm -f conftest.err conftest.i conftest.$ac_ext 4755 4756 # OK, works on sane cases. Now check whether nonexistent headers 4757 # can be detected and how. 4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4759/* end confdefs.h. */ 4760#include <ac_nonexistent.h> 4761_ACEOF 4762if ac_fn_c_try_cpp "$LINENO"; then : 4763 # Broken: success on invalid input. 4764continue 4765else 4766 # Passes both tests. 4767ac_preproc_ok=: 4768break 4769fi 4770rm -f conftest.err conftest.i conftest.$ac_ext 4771 4772done 4773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4774rm -f conftest.i conftest.err conftest.$ac_ext 4775if $ac_preproc_ok; then : 4776 4777else 4778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4780as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4781See \`config.log' for more details" "$LINENO" 5; } 4782fi 4783 4784ac_ext=c 4785ac_cpp='$CPP $CPPFLAGS' 4786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4788ac_compiler_gnu=$ac_cv_c_compiler_gnu 4789 4790 4791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793 4794#if defined __HP_cc 4795#This is HP-UX ANSI C 4796#endif 4797 4798_ACEOF 4799if ac_fn_c_try_cpp "$LINENO"; then : 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4801$as_echo "no" >&6; } 4802else 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4804$as_echo "yes" >&6; } 4805CFLAGS="$CFLAGS -Agcc" 4806CPPFLAGS="$CPPFLAGS -Agcc" 4807HP_UX_AC=yes 4808fi 4809rm -f conftest.err conftest.i conftest.$ac_ext 4810 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC specific compile flags" >&5 4812$as_echo_n "checking for GCC specific compile flags... " >&6; } 4813if test x"$GCC" = "xyes" && test x"$HP_UX_AC" != x"yes"; then 4814 CFLAGS="$CFLAGS -g -Wall" 4815 CPPFLAGS="$CPPFLAGS -std=gnu99" 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4817$as_echo "yes" >&6; } 4818 4819 save_CFLAGS="$CFLAGS" 4820 CFLAGS="$CFLAGS -Wno-pointer-sign" 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-pointer-sign" >&5 4822$as_echo_n "checking for -Wno-pointer-sign... " >&6; } 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825int main() {} 4826_ACEOF 4827if ac_fn_c_try_compile "$LINENO"; then : 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4829$as_echo "yes" >&6; } 4830else 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4832$as_echo "no" >&6; } 4833 CFLAGS="$save_CFLAGS" 4834fi 4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4836 4837 save_CFLAGS="$CFLAGS" 4838 CFLAGS="$CFLAGS -Werror=implicit-function-declaration" 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror=implicit-function-declaration" >&5 4840$as_echo_n "checking for -Werror=implicit-function-declaration... " >&6; } 4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4842/* end confdefs.h. */ 4843int main() {} 4844_ACEOF 4845if ac_fn_c_try_compile "$LINENO"; then : 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4847$as_echo "yes" >&6; } 4848else 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4850$as_echo "no" >&6; } 4851 CFLAGS="$save_CFLAGS" 4852fi 4853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4854 4855 save_CFLAGS="$CFLAGS" 4856 CFLAGS="$CFLAGS -Wunused-parameter" 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wunused-parameter" >&5 4858$as_echo_n "checking for -Wunused-parameter... " >&6; } 4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4860/* end confdefs.h. */ 4861int main() {} 4862_ACEOF 4863if ac_fn_c_try_compile "$LINENO"; then : 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4865$as_echo "yes" >&6; } 4866else 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4868$as_echo "no" >&6; } 4869 CFLAGS="$save_CFLAGS" 4870fi 4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4872 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-duplicate-decl-specifier" >&5 4874$as_echo_n "checking for -Wno-duplicate-decl-specifier... " >&6; } 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4876/* end confdefs.h. */ 4877#ifndef __clang__ 4878# error Not a clang 4879#endif 4880int main() {} 4881_ACEOF 4882if ac_fn_c_try_compile "$LINENO"; then : 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4884$as_echo "yes" >&6; } 4885 CFLAGS="$save_CFLAGS -Wno-duplicate-decl-specifier" 4886else 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4888$as_echo "no" >&6; } 4889fi 4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4891else 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4893$as_echo "no" >&6; } 4894fi 4895 4896 4897# Use either new LT_INIT or old AC_DISABLE_STATIC/AC_PROG_LIBTOOL macros 4898case `pwd` in 4899 *\ * | *\ *) 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4901$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4902esac 4903 4904 4905 4906macro_version='2.4.6' 4907macro_revision='2.4.6' 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921ltmain=$ac_aux_dir/ltmain.sh 4922 4923# Backslashify metacharacters that are still active within 4924# double-quoted strings. 4925sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4926 4927# Same as above, but do not quote variable references. 4928double_quote_subst='s/\(["`\\]\)/\\\1/g' 4929 4930# Sed substitution to delay expansion of an escaped shell variable in a 4931# double_quote_subst'ed string. 4932delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4933 4934# Sed substitution to delay expansion of an escaped single quote. 4935delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4936 4937# Sed substitution to avoid accidental globbing in evaled expressions 4938no_glob_subst='s/\*/\\\*/g' 4939 4940ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4941ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4942ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4943 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4945$as_echo_n "checking how to print strings... " >&6; } 4946# Test print first, because it will be a builtin if present. 4947if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4948 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4949 ECHO='print -r --' 4950elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4951 ECHO='printf %s\n' 4952else 4953 # Use this function as a fallback that always works. 4954 func_fallback_echo () 4955 { 4956 eval 'cat <<_LTECHO_EOF 4957$1 4958_LTECHO_EOF' 4959 } 4960 ECHO='func_fallback_echo' 4961fi 4962 4963# func_echo_all arg... 4964# Invoke $ECHO with all args, space-separated. 4965func_echo_all () 4966{ 4967 $ECHO "" 4968} 4969 4970case $ECHO in 4971 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4972$as_echo "printf" >&6; } ;; 4973 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4974$as_echo "print -r" >&6; } ;; 4975 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4976$as_echo "cat" >&6; } ;; 4977esac 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4993$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4994if ${ac_cv_path_SED+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4998 for ac_i in 1 2 3 4 5 6 7; do 4999 ac_script="$ac_script$as_nl$ac_script" 5000 done 5001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5002 { ac_script=; unset ac_script;} 5003 if test -z "$SED"; then 5004 ac_path_SED_found=false 5005 # Loop through the user's path and test for each of PROGNAME-LIST 5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007for as_dir in $PATH 5008do 5009 IFS=$as_save_IFS 5010 test -z "$as_dir" && as_dir=. 5011 for ac_prog in sed gsed; do 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5014 as_fn_executable_p "$ac_path_SED" || continue 5015# Check for GNU ac_path_SED and select it if it is found. 5016 # Check for GNU $ac_path_SED 5017case `"$ac_path_SED" --version 2>&1` in 5018*GNU*) 5019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5020*) 5021 ac_count=0 5022 $as_echo_n 0123456789 >"conftest.in" 5023 while : 5024 do 5025 cat "conftest.in" "conftest.in" >"conftest.tmp" 5026 mv "conftest.tmp" "conftest.in" 5027 cp "conftest.in" "conftest.nl" 5028 $as_echo '' >> "conftest.nl" 5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5031 as_fn_arith $ac_count + 1 && ac_count=$as_val 5032 if test $ac_count -gt ${ac_path_SED_max-0}; then 5033 # Best one so far, save it but keep looking for a better one 5034 ac_cv_path_SED="$ac_path_SED" 5035 ac_path_SED_max=$ac_count 5036 fi 5037 # 10*(2^10) chars as input seems more than enough 5038 test $ac_count -gt 10 && break 5039 done 5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5041esac 5042 5043 $ac_path_SED_found && break 3 5044 done 5045 done 5046 done 5047IFS=$as_save_IFS 5048 if test -z "$ac_cv_path_SED"; then 5049 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5050 fi 5051else 5052 ac_cv_path_SED=$SED 5053fi 5054 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5057$as_echo "$ac_cv_path_SED" >&6; } 5058 SED="$ac_cv_path_SED" 5059 rm -f conftest.sed 5060 5061test -z "$SED" && SED=sed 5062Xsed="$SED -e 1s/^X//" 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5075$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5076if ${ac_cv_path_GREP+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 if test -z "$GREP"; then 5080 ac_path_GREP_found=false 5081 # Loop through the user's path and test for each of PROGNAME-LIST 5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5083for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5084do 5085 IFS=$as_save_IFS 5086 test -z "$as_dir" && as_dir=. 5087 for ac_prog in grep ggrep; do 5088 for ac_exec_ext in '' $ac_executable_extensions; do 5089 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5090 as_fn_executable_p "$ac_path_GREP" || continue 5091# Check for GNU ac_path_GREP and select it if it is found. 5092 # Check for GNU $ac_path_GREP 5093case `"$ac_path_GREP" --version 2>&1` in 5094*GNU*) 5095 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5096*) 5097 ac_count=0 5098 $as_echo_n 0123456789 >"conftest.in" 5099 while : 5100 do 5101 cat "conftest.in" "conftest.in" >"conftest.tmp" 5102 mv "conftest.tmp" "conftest.in" 5103 cp "conftest.in" "conftest.nl" 5104 $as_echo 'GREP' >> "conftest.nl" 5105 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5107 as_fn_arith $ac_count + 1 && ac_count=$as_val 5108 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5109 # Best one so far, save it but keep looking for a better one 5110 ac_cv_path_GREP="$ac_path_GREP" 5111 ac_path_GREP_max=$ac_count 5112 fi 5113 # 10*(2^10) chars as input seems more than enough 5114 test $ac_count -gt 10 && break 5115 done 5116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5117esac 5118 5119 $ac_path_GREP_found && break 3 5120 done 5121 done 5122 done 5123IFS=$as_save_IFS 5124 if test -z "$ac_cv_path_GREP"; then 5125 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5126 fi 5127else 5128 ac_cv_path_GREP=$GREP 5129fi 5130 5131fi 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5133$as_echo "$ac_cv_path_GREP" >&6; } 5134 GREP="$ac_cv_path_GREP" 5135 5136 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5138$as_echo_n "checking for egrep... " >&6; } 5139if ${ac_cv_path_EGREP+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5143 then ac_cv_path_EGREP="$GREP -E" 5144 else 5145 if test -z "$EGREP"; then 5146 ac_path_EGREP_found=false 5147 # Loop through the user's path and test for each of PROGNAME-LIST 5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5149for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5150do 5151 IFS=$as_save_IFS 5152 test -z "$as_dir" && as_dir=. 5153 for ac_prog in egrep; do 5154 for ac_exec_ext in '' $ac_executable_extensions; do 5155 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5156 as_fn_executable_p "$ac_path_EGREP" || continue 5157# Check for GNU ac_path_EGREP and select it if it is found. 5158 # Check for GNU $ac_path_EGREP 5159case `"$ac_path_EGREP" --version 2>&1` in 5160*GNU*) 5161 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5162*) 5163 ac_count=0 5164 $as_echo_n 0123456789 >"conftest.in" 5165 while : 5166 do 5167 cat "conftest.in" "conftest.in" >"conftest.tmp" 5168 mv "conftest.tmp" "conftest.in" 5169 cp "conftest.in" "conftest.nl" 5170 $as_echo 'EGREP' >> "conftest.nl" 5171 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5173 as_fn_arith $ac_count + 1 && ac_count=$as_val 5174 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5175 # Best one so far, save it but keep looking for a better one 5176 ac_cv_path_EGREP="$ac_path_EGREP" 5177 ac_path_EGREP_max=$ac_count 5178 fi 5179 # 10*(2^10) chars as input seems more than enough 5180 test $ac_count -gt 10 && break 5181 done 5182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5183esac 5184 5185 $ac_path_EGREP_found && break 3 5186 done 5187 done 5188 done 5189IFS=$as_save_IFS 5190 if test -z "$ac_cv_path_EGREP"; then 5191 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5192 fi 5193else 5194 ac_cv_path_EGREP=$EGREP 5195fi 5196 5197 fi 5198fi 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5200$as_echo "$ac_cv_path_EGREP" >&6; } 5201 EGREP="$ac_cv_path_EGREP" 5202 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5205$as_echo_n "checking for fgrep... " >&6; } 5206if ${ac_cv_path_FGREP+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5210 then ac_cv_path_FGREP="$GREP -F" 5211 else 5212 if test -z "$FGREP"; then 5213 ac_path_FGREP_found=false 5214 # Loop through the user's path and test for each of PROGNAME-LIST 5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5216for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5217do 5218 IFS=$as_save_IFS 5219 test -z "$as_dir" && as_dir=. 5220 for ac_prog in fgrep; do 5221 for ac_exec_ext in '' $ac_executable_extensions; do 5222 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5223 as_fn_executable_p "$ac_path_FGREP" || continue 5224# Check for GNU ac_path_FGREP and select it if it is found. 5225 # Check for GNU $ac_path_FGREP 5226case `"$ac_path_FGREP" --version 2>&1` in 5227*GNU*) 5228 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5229*) 5230 ac_count=0 5231 $as_echo_n 0123456789 >"conftest.in" 5232 while : 5233 do 5234 cat "conftest.in" "conftest.in" >"conftest.tmp" 5235 mv "conftest.tmp" "conftest.in" 5236 cp "conftest.in" "conftest.nl" 5237 $as_echo 'FGREP' >> "conftest.nl" 5238 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5240 as_fn_arith $ac_count + 1 && ac_count=$as_val 5241 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5242 # Best one so far, save it but keep looking for a better one 5243 ac_cv_path_FGREP="$ac_path_FGREP" 5244 ac_path_FGREP_max=$ac_count 5245 fi 5246 # 10*(2^10) chars as input seems more than enough 5247 test $ac_count -gt 10 && break 5248 done 5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5250esac 5251 5252 $ac_path_FGREP_found && break 3 5253 done 5254 done 5255 done 5256IFS=$as_save_IFS 5257 if test -z "$ac_cv_path_FGREP"; then 5258 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5259 fi 5260else 5261 ac_cv_path_FGREP=$FGREP 5262fi 5263 5264 fi 5265fi 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5267$as_echo "$ac_cv_path_FGREP" >&6; } 5268 FGREP="$ac_cv_path_FGREP" 5269 5270 5271test -z "$GREP" && GREP=grep 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291# Check whether --with-gnu-ld was given. 5292if test "${with_gnu_ld+set}" = set; then : 5293 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5294else 5295 with_gnu_ld=no 5296fi 5297 5298ac_prog=ld 5299if test yes = "$GCC"; then 5300 # Check if gcc -print-prog-name=ld gives a path. 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5302$as_echo_n "checking for ld used by $CC... " >&6; } 5303 case $host in 5304 *-*-mingw*) 5305 # gcc leaves a trailing carriage return, which upsets mingw 5306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5307 *) 5308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5309 esac 5310 case $ac_prog in 5311 # Accept absolute paths. 5312 [\\/]* | ?:[\\/]*) 5313 re_direlt='/[^/][^/]*/\.\./' 5314 # Canonicalize the pathname of ld 5315 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5316 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5317 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5318 done 5319 test -z "$LD" && LD=$ac_prog 5320 ;; 5321 "") 5322 # If it fails, then pretend we aren't using GCC. 5323 ac_prog=ld 5324 ;; 5325 *) 5326 # If it is relative, then search for the first ld in PATH. 5327 with_gnu_ld=unknown 5328 ;; 5329 esac 5330elif test yes = "$with_gnu_ld"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5332$as_echo_n "checking for GNU ld... " >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5335$as_echo_n "checking for non-GNU ld... " >&6; } 5336fi 5337if ${lt_cv_path_LD+:} false; then : 5338 $as_echo_n "(cached) " >&6 5339else 5340 if test -z "$LD"; then 5341 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5342 for ac_dir in $PATH; do 5343 IFS=$lt_save_ifs 5344 test -z "$ac_dir" && ac_dir=. 5345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5346 lt_cv_path_LD=$ac_dir/$ac_prog 5347 # Check to see if the program is GNU ld. I'd rather use --version, 5348 # but apparently some variants of GNU ld only accept -v. 5349 # Break only if it was the GNU/non-GNU ld that we prefer. 5350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5351 *GNU* | *'with BFD'*) 5352 test no != "$with_gnu_ld" && break 5353 ;; 5354 *) 5355 test yes != "$with_gnu_ld" && break 5356 ;; 5357 esac 5358 fi 5359 done 5360 IFS=$lt_save_ifs 5361else 5362 lt_cv_path_LD=$LD # Let the user override the test with a path. 5363fi 5364fi 5365 5366LD=$lt_cv_path_LD 5367if test -n "$LD"; then 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5369$as_echo "$LD" >&6; } 5370else 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5372$as_echo "no" >&6; } 5373fi 5374test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5376$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5377if ${lt_cv_prog_gnu_ld+:} false; then : 5378 $as_echo_n "(cached) " >&6 5379else 5380 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5381case `$LD -v 2>&1 </dev/null` in 5382*GNU* | *'with BFD'*) 5383 lt_cv_prog_gnu_ld=yes 5384 ;; 5385*) 5386 lt_cv_prog_gnu_ld=no 5387 ;; 5388esac 5389fi 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5391$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5392with_gnu_ld=$lt_cv_prog_gnu_ld 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5403$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5404if ${lt_cv_path_NM+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 if test -n "$NM"; then 5408 # Let the user override the test. 5409 lt_cv_path_NM=$NM 5410else 5411 lt_nm_to_check=${ac_tool_prefix}nm 5412 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5413 lt_nm_to_check="$lt_nm_to_check nm" 5414 fi 5415 for lt_tmp_nm in $lt_nm_to_check; do 5416 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5417 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5418 IFS=$lt_save_ifs 5419 test -z "$ac_dir" && ac_dir=. 5420 tmp_nm=$ac_dir/$lt_tmp_nm 5421 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5422 # Check to see if the nm accepts a BSD-compat flag. 5423 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5424 # nm: unknown option "B" ignored 5425 # Tru64's nm complains that /dev/null is an invalid object file 5426 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5427 case $build_os in 5428 mingw*) lt_bad_file=conftest.nm/nofile ;; 5429 *) lt_bad_file=/dev/null ;; 5430 esac 5431 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5432 *$lt_bad_file* | *'Invalid file or object type'*) 5433 lt_cv_path_NM="$tmp_nm -B" 5434 break 2 5435 ;; 5436 *) 5437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5438 */dev/null*) 5439 lt_cv_path_NM="$tmp_nm -p" 5440 break 2 5441 ;; 5442 *) 5443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5444 continue # so that we can try to find one that supports BSD flags 5445 ;; 5446 esac 5447 ;; 5448 esac 5449 fi 5450 done 5451 IFS=$lt_save_ifs 5452 done 5453 : ${lt_cv_path_NM=no} 5454fi 5455fi 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5457$as_echo "$lt_cv_path_NM" >&6; } 5458if test no != "$lt_cv_path_NM"; then 5459 NM=$lt_cv_path_NM 5460else 5461 # Didn't find any BSD compatible name lister, look for dumpbin. 5462 if test -n "$DUMPBIN"; then : 5463 # Let the user override the test. 5464 else 5465 if test -n "$ac_tool_prefix"; then 5466 for ac_prog in dumpbin "link -dump" 5467 do 5468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5469set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5471$as_echo_n "checking for $ac_word... " >&6; } 5472if ${ac_cv_prog_DUMPBIN+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 if test -n "$DUMPBIN"; then 5476 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5477else 5478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5479for as_dir in $PATH 5480do 5481 IFS=$as_save_IFS 5482 test -z "$as_dir" && as_dir=. 5483 for ac_exec_ext in '' $ac_executable_extensions; do 5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5485 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5487 break 2 5488 fi 5489done 5490 done 5491IFS=$as_save_IFS 5492 5493fi 5494fi 5495DUMPBIN=$ac_cv_prog_DUMPBIN 5496if test -n "$DUMPBIN"; then 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5498$as_echo "$DUMPBIN" >&6; } 5499else 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5501$as_echo "no" >&6; } 5502fi 5503 5504 5505 test -n "$DUMPBIN" && break 5506 done 5507fi 5508if test -z "$DUMPBIN"; then 5509 ac_ct_DUMPBIN=$DUMPBIN 5510 for ac_prog in dumpbin "link -dump" 5511do 5512 # Extract the first word of "$ac_prog", so it can be a program name with args. 5513set dummy $ac_prog; ac_word=$2 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5515$as_echo_n "checking for $ac_word... " >&6; } 5516if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 if test -n "$ac_ct_DUMPBIN"; then 5520 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5521else 5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5523for as_dir in $PATH 5524do 5525 IFS=$as_save_IFS 5526 test -z "$as_dir" && as_dir=. 5527 for ac_exec_ext in '' $ac_executable_extensions; do 5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5529 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5531 break 2 5532 fi 5533done 5534 done 5535IFS=$as_save_IFS 5536 5537fi 5538fi 5539ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5540if test -n "$ac_ct_DUMPBIN"; then 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5542$as_echo "$ac_ct_DUMPBIN" >&6; } 5543else 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5545$as_echo "no" >&6; } 5546fi 5547 5548 5549 test -n "$ac_ct_DUMPBIN" && break 5550done 5551 5552 if test "x$ac_ct_DUMPBIN" = x; then 5553 DUMPBIN=":" 5554 else 5555 case $cross_compiling:$ac_tool_warned in 5556yes:) 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5559ac_tool_warned=yes ;; 5560esac 5561 DUMPBIN=$ac_ct_DUMPBIN 5562 fi 5563fi 5564 5565 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5566 *COFF*) 5567 DUMPBIN="$DUMPBIN -symbols -headers" 5568 ;; 5569 *) 5570 DUMPBIN=: 5571 ;; 5572 esac 5573 fi 5574 5575 if test : != "$DUMPBIN"; then 5576 NM=$DUMPBIN 5577 fi 5578fi 5579test -z "$NM" && NM=nm 5580 5581 5582 5583 5584 5585 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5587$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5588if ${lt_cv_nm_interface+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 lt_cv_nm_interface="BSD nm" 5592 echo "int some_variable = 0;" > conftest.$ac_ext 5593 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5594 (eval "$ac_compile" 2>conftest.err) 5595 cat conftest.err >&5 5596 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5597 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5598 cat conftest.err >&5 5599 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5600 cat conftest.out >&5 5601 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5602 lt_cv_nm_interface="MS dumpbin" 5603 fi 5604 rm -f conftest* 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5607$as_echo "$lt_cv_nm_interface" >&6; } 5608 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5610$as_echo_n "checking whether ln -s works... " >&6; } 5611LN_S=$as_ln_s 5612if test "$LN_S" = "ln -s"; then 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5614$as_echo "yes" >&6; } 5615else 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5617$as_echo "no, using $LN_S" >&6; } 5618fi 5619 5620# find the maximum length of command line arguments 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5622$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5623if ${lt_cv_sys_max_cmd_len+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 i=0 5627 teststring=ABCD 5628 5629 case $build_os in 5630 msdosdjgpp*) 5631 # On DJGPP, this test can blow up pretty badly due to problems in libc 5632 # (any single argument exceeding 2000 bytes causes a buffer overrun 5633 # during glob expansion). Even if it were fixed, the result of this 5634 # check would be larger than it should be. 5635 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5636 ;; 5637 5638 gnu*) 5639 # Under GNU Hurd, this test is not required because there is 5640 # no limit to the length of command line arguments. 5641 # Libtool will interpret -1 as no limit whatsoever 5642 lt_cv_sys_max_cmd_len=-1; 5643 ;; 5644 5645 cygwin* | mingw* | cegcc*) 5646 # On Win9x/ME, this test blows up -- it succeeds, but takes 5647 # about 5 minutes as the teststring grows exponentially. 5648 # Worse, since 9x/ME are not pre-emptively multitasking, 5649 # you end up with a "frozen" computer, even though with patience 5650 # the test eventually succeeds (with a max line length of 256k). 5651 # Instead, let's just punt: use the minimum linelength reported by 5652 # all of the supported platforms: 8192 (on NT/2K/XP). 5653 lt_cv_sys_max_cmd_len=8192; 5654 ;; 5655 5656 mint*) 5657 # On MiNT this can take a long time and run out of memory. 5658 lt_cv_sys_max_cmd_len=8192; 5659 ;; 5660 5661 amigaos*) 5662 # On AmigaOS with pdksh, this test takes hours, literally. 5663 # So we just punt and use a minimum line length of 8192. 5664 lt_cv_sys_max_cmd_len=8192; 5665 ;; 5666 5667 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5668 # This has been around since 386BSD, at least. Likely further. 5669 if test -x /sbin/sysctl; then 5670 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5671 elif test -x /usr/sbin/sysctl; then 5672 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5673 else 5674 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5675 fi 5676 # And add a safety zone 5677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5679 ;; 5680 5681 interix*) 5682 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5683 lt_cv_sys_max_cmd_len=196608 5684 ;; 5685 5686 os2*) 5687 # The test takes a long time on OS/2. 5688 lt_cv_sys_max_cmd_len=8192 5689 ;; 5690 5691 osf*) 5692 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5693 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5694 # nice to cause kernel panics so lets avoid the loop below. 5695 # First set a reasonable default. 5696 lt_cv_sys_max_cmd_len=16384 5697 # 5698 if test -x /sbin/sysconfig; then 5699 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5700 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5701 esac 5702 fi 5703 ;; 5704 sco3.2v5*) 5705 lt_cv_sys_max_cmd_len=102400 5706 ;; 5707 sysv5* | sco5v6* | sysv4.2uw2*) 5708 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5709 if test -n "$kargmax"; then 5710 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5711 else 5712 lt_cv_sys_max_cmd_len=32768 5713 fi 5714 ;; 5715 *) 5716 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5717 if test -n "$lt_cv_sys_max_cmd_len" && \ 5718 test undefined != "$lt_cv_sys_max_cmd_len"; then 5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5721 else 5722 # Make teststring a little bigger before we do anything with it. 5723 # a 1K string should be a reasonable start. 5724 for i in 1 2 3 4 5 6 7 8; do 5725 teststring=$teststring$teststring 5726 done 5727 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5728 # If test is not a shell built-in, we'll probably end up computing a 5729 # maximum length that is only half of the actual maximum length, but 5730 # we can't tell. 5731 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5732 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5733 test 17 != "$i" # 1/2 MB should be enough 5734 do 5735 i=`expr $i + 1` 5736 teststring=$teststring$teststring 5737 done 5738 # Only check the string length outside the loop. 5739 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5740 teststring= 5741 # Add a significant safety factor because C++ compilers can tack on 5742 # massive amounts of additional arguments before passing them to the 5743 # linker. It appears as though 1/2 is a usable value. 5744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5745 fi 5746 ;; 5747 esac 5748 5749fi 5750 5751if test -n "$lt_cv_sys_max_cmd_len"; then 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5753$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5754else 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5756$as_echo "none" >&6; } 5757fi 5758max_cmd_len=$lt_cv_sys_max_cmd_len 5759 5760 5761 5762 5763 5764 5765: ${CP="cp -f"} 5766: ${MV="mv -f"} 5767: ${RM="rm -f"} 5768 5769if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5770 lt_unset=unset 5771else 5772 lt_unset=false 5773fi 5774 5775 5776 5777 5778 5779# test EBCDIC or ASCII 5780case `echo X|tr X '\101'` in 5781 A) # ASCII based system 5782 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5783 lt_SP2NL='tr \040 \012' 5784 lt_NL2SP='tr \015\012 \040\040' 5785 ;; 5786 *) # EBCDIC based system 5787 lt_SP2NL='tr \100 \n' 5788 lt_NL2SP='tr \r\n \100\100' 5789 ;; 5790esac 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5801$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5802if ${lt_cv_to_host_file_cmd+:} false; then : 5803 $as_echo_n "(cached) " >&6 5804else 5805 case $host in 5806 *-*-mingw* ) 5807 case $build in 5808 *-*-mingw* ) # actually msys 5809 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5810 ;; 5811 *-*-cygwin* ) 5812 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5813 ;; 5814 * ) # otherwise, assume *nix 5815 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5816 ;; 5817 esac 5818 ;; 5819 *-*-cygwin* ) 5820 case $build in 5821 *-*-mingw* ) # actually msys 5822 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5823 ;; 5824 *-*-cygwin* ) 5825 lt_cv_to_host_file_cmd=func_convert_file_noop 5826 ;; 5827 * ) # otherwise, assume *nix 5828 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5829 ;; 5830 esac 5831 ;; 5832 * ) # unhandled hosts (and "normal" native builds) 5833 lt_cv_to_host_file_cmd=func_convert_file_noop 5834 ;; 5835esac 5836 5837fi 5838 5839to_host_file_cmd=$lt_cv_to_host_file_cmd 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5841$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5842 5843 5844 5845 5846 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5848$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5849if ${lt_cv_to_tool_file_cmd+:} false; then : 5850 $as_echo_n "(cached) " >&6 5851else 5852 #assume ordinary cross tools, or native build. 5853lt_cv_to_tool_file_cmd=func_convert_file_noop 5854case $host in 5855 *-*-mingw* ) 5856 case $build in 5857 *-*-mingw* ) # actually msys 5858 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5859 ;; 5860 esac 5861 ;; 5862esac 5863 5864fi 5865 5866to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5868$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5869 5870 5871 5872 5873 5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5875$as_echo_n "checking for $LD option to reload object files... " >&6; } 5876if ${lt_cv_ld_reload_flag+:} false; then : 5877 $as_echo_n "(cached) " >&6 5878else 5879 lt_cv_ld_reload_flag='-r' 5880fi 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5882$as_echo "$lt_cv_ld_reload_flag" >&6; } 5883reload_flag=$lt_cv_ld_reload_flag 5884case $reload_flag in 5885"" | " "*) ;; 5886*) reload_flag=" $reload_flag" ;; 5887esac 5888reload_cmds='$LD$reload_flag -o $output$reload_objs' 5889case $host_os in 5890 cygwin* | mingw* | pw32* | cegcc*) 5891 if test yes != "$GCC"; then 5892 reload_cmds=false 5893 fi 5894 ;; 5895 darwin*) 5896 if test yes = "$GCC"; then 5897 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5898 else 5899 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5900 fi 5901 ;; 5902esac 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912if test -n "$ac_tool_prefix"; then 5913 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5914set dummy ${ac_tool_prefix}objdump; ac_word=$2 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916$as_echo_n "checking for $ac_word... " >&6; } 5917if ${ac_cv_prog_OBJDUMP+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 if test -n "$OBJDUMP"; then 5921 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5922else 5923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924for as_dir in $PATH 5925do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5930 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934done 5935 done 5936IFS=$as_save_IFS 5937 5938fi 5939fi 5940OBJDUMP=$ac_cv_prog_OBJDUMP 5941if test -n "$OBJDUMP"; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5943$as_echo "$OBJDUMP" >&6; } 5944else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5946$as_echo "no" >&6; } 5947fi 5948 5949 5950fi 5951if test -z "$ac_cv_prog_OBJDUMP"; then 5952 ac_ct_OBJDUMP=$OBJDUMP 5953 # Extract the first word of "objdump", so it can be a program name with args. 5954set dummy objdump; ac_word=$2 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5956$as_echo_n "checking for $ac_word... " >&6; } 5957if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 if test -n "$ac_ct_OBJDUMP"; then 5961 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5962else 5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964for as_dir in $PATH 5965do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5970 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974done 5975 done 5976IFS=$as_save_IFS 5977 5978fi 5979fi 5980ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5981if test -n "$ac_ct_OBJDUMP"; then 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5983$as_echo "$ac_ct_OBJDUMP" >&6; } 5984else 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5986$as_echo "no" >&6; } 5987fi 5988 5989 if test "x$ac_ct_OBJDUMP" = x; then 5990 OBJDUMP="false" 5991 else 5992 case $cross_compiling:$ac_tool_warned in 5993yes:) 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5996ac_tool_warned=yes ;; 5997esac 5998 OBJDUMP=$ac_ct_OBJDUMP 5999 fi 6000else 6001 OBJDUMP="$ac_cv_prog_OBJDUMP" 6002fi 6003 6004test -z "$OBJDUMP" && OBJDUMP=objdump 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6015$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6016if ${lt_cv_deplibs_check_method+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 lt_cv_file_magic_cmd='$MAGIC_CMD' 6020lt_cv_file_magic_test_file= 6021lt_cv_deplibs_check_method='unknown' 6022# Need to set the preceding variable on all platforms that support 6023# interlibrary dependencies. 6024# 'none' -- dependencies not supported. 6025# 'unknown' -- same as none, but documents that we really don't know. 6026# 'pass_all' -- all dependencies passed with no checks. 6027# 'test_compile' -- check by making test program. 6028# 'file_magic [[regex]]' -- check by looking for files in library path 6029# that responds to the $file_magic_cmd with a given extended regex. 6030# If you have 'file' or equivalent on your system and you're not sure 6031# whether 'pass_all' will *always* work, you probably want this one. 6032 6033case $host_os in 6034aix[4-9]*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038beos*) 6039 lt_cv_deplibs_check_method=pass_all 6040 ;; 6041 6042bsdi[45]*) 6043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6044 lt_cv_file_magic_cmd='/usr/bin/file -L' 6045 lt_cv_file_magic_test_file=/shlib/libc.so 6046 ;; 6047 6048cygwin*) 6049 # func_win32_libid is a shell function defined in ltmain.sh 6050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6051 lt_cv_file_magic_cmd='func_win32_libid' 6052 ;; 6053 6054mingw* | pw32*) 6055 # Base MSYS/MinGW do not provide the 'file' command needed by 6056 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6057 # unless we find 'file', for example because we are cross-compiling. 6058 if ( file / ) >/dev/null 2>&1; then 6059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6060 lt_cv_file_magic_cmd='func_win32_libid' 6061 else 6062 # Keep this pattern in sync with the one in func_win32_libid. 6063 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6064 lt_cv_file_magic_cmd='$OBJDUMP -f' 6065 fi 6066 ;; 6067 6068cegcc*) 6069 # use the weaker test based on 'objdump'. See mingw*. 6070 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6071 lt_cv_file_magic_cmd='$OBJDUMP -f' 6072 ;; 6073 6074darwin* | rhapsody*) 6075 lt_cv_deplibs_check_method=pass_all 6076 ;; 6077 6078freebsd* | dragonfly*) 6079 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6080 case $host_cpu in 6081 i*86 ) 6082 # Not sure whether the presence of OpenBSD here was a mistake. 6083 # Let's accept both of them until this is cleared up. 6084 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6085 lt_cv_file_magic_cmd=/usr/bin/file 6086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6087 ;; 6088 esac 6089 else 6090 lt_cv_deplibs_check_method=pass_all 6091 fi 6092 ;; 6093 6094haiku*) 6095 lt_cv_deplibs_check_method=pass_all 6096 ;; 6097 6098hpux10.20* | hpux11*) 6099 lt_cv_file_magic_cmd=/usr/bin/file 6100 case $host_cpu in 6101 ia64*) 6102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6103 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6104 ;; 6105 hppa*64*) 6106 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]' 6107 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6108 ;; 6109 *) 6110 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6111 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6112 ;; 6113 esac 6114 ;; 6115 6116interix[3-9]*) 6117 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6119 ;; 6120 6121irix5* | irix6* | nonstopux*) 6122 case $LD in 6123 *-32|*"-32 ") libmagic=32-bit;; 6124 *-n32|*"-n32 ") libmagic=N32;; 6125 *-64|*"-64 ") libmagic=64-bit;; 6126 *) libmagic=never-match;; 6127 esac 6128 lt_cv_deplibs_check_method=pass_all 6129 ;; 6130 6131# This must be glibc/ELF. 6132linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135 6136netbsd* | netbsdelf*-gnu) 6137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6139 else 6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6141 fi 6142 ;; 6143 6144newos6*) 6145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6146 lt_cv_file_magic_cmd=/usr/bin/file 6147 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6148 ;; 6149 6150*nto* | *qnx*) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 6154openbsd* | bitrig*) 6155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6157 else 6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6159 fi 6160 ;; 6161 6162osf3* | osf4* | osf5*) 6163 lt_cv_deplibs_check_method=pass_all 6164 ;; 6165 6166rdos*) 6167 lt_cv_deplibs_check_method=pass_all 6168 ;; 6169 6170solaris*) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 6174sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178sysv4 | sysv4.3*) 6179 case $host_vendor in 6180 motorola) 6181 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]' 6182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6183 ;; 6184 ncr) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187 sequent) 6188 lt_cv_file_magic_cmd='/bin/file' 6189 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6190 ;; 6191 sni) 6192 lt_cv_file_magic_cmd='/bin/file' 6193 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6194 lt_cv_file_magic_test_file=/lib/libc.so 6195 ;; 6196 siemens) 6197 lt_cv_deplibs_check_method=pass_all 6198 ;; 6199 pc) 6200 lt_cv_deplibs_check_method=pass_all 6201 ;; 6202 esac 6203 ;; 6204 6205tpf*) 6206 lt_cv_deplibs_check_method=pass_all 6207 ;; 6208os2*) 6209 lt_cv_deplibs_check_method=pass_all 6210 ;; 6211esac 6212 6213fi 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6215$as_echo "$lt_cv_deplibs_check_method" >&6; } 6216 6217file_magic_glob= 6218want_nocaseglob=no 6219if test "$build" = "$host"; then 6220 case $host_os in 6221 mingw* | pw32*) 6222 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6223 want_nocaseglob=yes 6224 else 6225 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6226 fi 6227 ;; 6228 esac 6229fi 6230 6231file_magic_cmd=$lt_cv_file_magic_cmd 6232deplibs_check_method=$lt_cv_deplibs_check_method 6233test -z "$deplibs_check_method" && deplibs_check_method=unknown 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256if test -n "$ac_tool_prefix"; then 6257 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6258set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6260$as_echo_n "checking for $ac_word... " >&6; } 6261if ${ac_cv_prog_DLLTOOL+:} false; then : 6262 $as_echo_n "(cached) " >&6 6263else 6264 if test -n "$DLLTOOL"; then 6265 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6266else 6267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6268for as_dir in $PATH 6269do 6270 IFS=$as_save_IFS 6271 test -z "$as_dir" && as_dir=. 6272 for ac_exec_ext in '' $ac_executable_extensions; do 6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6274 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6276 break 2 6277 fi 6278done 6279 done 6280IFS=$as_save_IFS 6281 6282fi 6283fi 6284DLLTOOL=$ac_cv_prog_DLLTOOL 6285if test -n "$DLLTOOL"; then 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6287$as_echo "$DLLTOOL" >&6; } 6288else 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6290$as_echo "no" >&6; } 6291fi 6292 6293 6294fi 6295if test -z "$ac_cv_prog_DLLTOOL"; then 6296 ac_ct_DLLTOOL=$DLLTOOL 6297 # Extract the first word of "dlltool", so it can be a program name with args. 6298set dummy dlltool; ac_word=$2 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6300$as_echo_n "checking for $ac_word... " >&6; } 6301if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 if test -n "$ac_ct_DLLTOOL"; then 6305 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6306else 6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6308for as_dir in $PATH 6309do 6310 IFS=$as_save_IFS 6311 test -z "$as_dir" && as_dir=. 6312 for ac_exec_ext in '' $ac_executable_extensions; do 6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6314 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6316 break 2 6317 fi 6318done 6319 done 6320IFS=$as_save_IFS 6321 6322fi 6323fi 6324ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6325if test -n "$ac_ct_DLLTOOL"; then 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6327$as_echo "$ac_ct_DLLTOOL" >&6; } 6328else 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6330$as_echo "no" >&6; } 6331fi 6332 6333 if test "x$ac_ct_DLLTOOL" = x; then 6334 DLLTOOL="false" 6335 else 6336 case $cross_compiling:$ac_tool_warned in 6337yes:) 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6340ac_tool_warned=yes ;; 6341esac 6342 DLLTOOL=$ac_ct_DLLTOOL 6343 fi 6344else 6345 DLLTOOL="$ac_cv_prog_DLLTOOL" 6346fi 6347 6348test -z "$DLLTOOL" && DLLTOOL=dlltool 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6360$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6361if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6362 $as_echo_n "(cached) " >&6 6363else 6364 lt_cv_sharedlib_from_linklib_cmd='unknown' 6365 6366case $host_os in 6367cygwin* | mingw* | pw32* | cegcc*) 6368 # two different shell functions defined in ltmain.sh; 6369 # decide which one to use based on capabilities of $DLLTOOL 6370 case `$DLLTOOL --help 2>&1` in 6371 *--identify-strict*) 6372 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6373 ;; 6374 *) 6375 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6376 ;; 6377 esac 6378 ;; 6379*) 6380 # fallback: assume linklib IS sharedlib 6381 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6382 ;; 6383esac 6384 6385fi 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6387$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6388sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6389test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6390 6391 6392 6393 6394 6395 6396 6397if test -n "$ac_tool_prefix"; then 6398 for ac_prog in ar 6399 do 6400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6401set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403$as_echo_n "checking for $ac_word... " >&6; } 6404if ${ac_cv_prog_AR+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406else 6407 if test -n "$AR"; then 6408 ac_cv_prog_AR="$AR" # Let the user override the test. 6409else 6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6411for as_dir in $PATH 6412do 6413 IFS=$as_save_IFS 6414 test -z "$as_dir" && as_dir=. 6415 for ac_exec_ext in '' $ac_executable_extensions; do 6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6417 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6419 break 2 6420 fi 6421done 6422 done 6423IFS=$as_save_IFS 6424 6425fi 6426fi 6427AR=$ac_cv_prog_AR 6428if test -n "$AR"; then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6430$as_echo "$AR" >&6; } 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6433$as_echo "no" >&6; } 6434fi 6435 6436 6437 test -n "$AR" && break 6438 done 6439fi 6440if test -z "$AR"; then 6441 ac_ct_AR=$AR 6442 for ac_prog in ar 6443do 6444 # Extract the first word of "$ac_prog", so it can be a program name with args. 6445set dummy $ac_prog; ac_word=$2 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6447$as_echo_n "checking for $ac_word... " >&6; } 6448if ${ac_cv_prog_ac_ct_AR+:} false; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 if test -n "$ac_ct_AR"; then 6452 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6453else 6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455for as_dir in $PATH 6456do 6457 IFS=$as_save_IFS 6458 test -z "$as_dir" && as_dir=. 6459 for ac_exec_ext in '' $ac_executable_extensions; do 6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6461 ac_cv_prog_ac_ct_AR="$ac_prog" 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6463 break 2 6464 fi 6465done 6466 done 6467IFS=$as_save_IFS 6468 6469fi 6470fi 6471ac_ct_AR=$ac_cv_prog_ac_ct_AR 6472if test -n "$ac_ct_AR"; then 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6474$as_echo "$ac_ct_AR" >&6; } 6475else 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6477$as_echo "no" >&6; } 6478fi 6479 6480 6481 test -n "$ac_ct_AR" && break 6482done 6483 6484 if test "x$ac_ct_AR" = x; then 6485 AR="false" 6486 else 6487 case $cross_compiling:$ac_tool_warned in 6488yes:) 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6491ac_tool_warned=yes ;; 6492esac 6493 AR=$ac_ct_AR 6494 fi 6495fi 6496 6497: ${AR=ar} 6498: ${AR_FLAGS=cru} 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6511$as_echo_n "checking for archiver @FILE support... " >&6; } 6512if ${lt_cv_ar_at_file+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 lt_cv_ar_at_file=no 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518 6519int 6520main () 6521{ 6522 6523 ; 6524 return 0; 6525} 6526_ACEOF 6527if ac_fn_c_try_compile "$LINENO"; then : 6528 echo conftest.$ac_objext > conftest.lst 6529 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6531 (eval $lt_ar_try) 2>&5 6532 ac_status=$? 6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6534 test $ac_status = 0; } 6535 if test 0 -eq "$ac_status"; then 6536 # Ensure the archiver fails upon bogus file names. 6537 rm -f conftest.$ac_objext libconftest.a 6538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6539 (eval $lt_ar_try) 2>&5 6540 ac_status=$? 6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6542 test $ac_status = 0; } 6543 if test 0 -ne "$ac_status"; then 6544 lt_cv_ar_at_file=@ 6545 fi 6546 fi 6547 rm -f conftest.* libconftest.a 6548 6549fi 6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6551 6552fi 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6554$as_echo "$lt_cv_ar_at_file" >&6; } 6555 6556if test no = "$lt_cv_ar_at_file"; then 6557 archiver_list_spec= 6558else 6559 archiver_list_spec=$lt_cv_ar_at_file 6560fi 6561 6562 6563 6564 6565 6566 6567 6568if test -n "$ac_tool_prefix"; then 6569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6570set dummy ${ac_tool_prefix}strip; ac_word=$2 6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6572$as_echo_n "checking for $ac_word... " >&6; } 6573if ${ac_cv_prog_STRIP+:} false; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 if test -n "$STRIP"; then 6577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6578else 6579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6580for as_dir in $PATH 6581do 6582 IFS=$as_save_IFS 6583 test -z "$as_dir" && as_dir=. 6584 for ac_exec_ext in '' $ac_executable_extensions; do 6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6586 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6588 break 2 6589 fi 6590done 6591 done 6592IFS=$as_save_IFS 6593 6594fi 6595fi 6596STRIP=$ac_cv_prog_STRIP 6597if test -n "$STRIP"; then 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6599$as_echo "$STRIP" >&6; } 6600else 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6602$as_echo "no" >&6; } 6603fi 6604 6605 6606fi 6607if test -z "$ac_cv_prog_STRIP"; then 6608 ac_ct_STRIP=$STRIP 6609 # Extract the first word of "strip", so it can be a program name with args. 6610set dummy strip; ac_word=$2 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6612$as_echo_n "checking for $ac_word... " >&6; } 6613if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6614 $as_echo_n "(cached) " >&6 6615else 6616 if test -n "$ac_ct_STRIP"; then 6617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6618else 6619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6620for as_dir in $PATH 6621do 6622 IFS=$as_save_IFS 6623 test -z "$as_dir" && as_dir=. 6624 for ac_exec_ext in '' $ac_executable_extensions; do 6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6626 ac_cv_prog_ac_ct_STRIP="strip" 6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6628 break 2 6629 fi 6630done 6631 done 6632IFS=$as_save_IFS 6633 6634fi 6635fi 6636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6637if test -n "$ac_ct_STRIP"; then 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6639$as_echo "$ac_ct_STRIP" >&6; } 6640else 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6642$as_echo "no" >&6; } 6643fi 6644 6645 if test "x$ac_ct_STRIP" = x; then 6646 STRIP=":" 6647 else 6648 case $cross_compiling:$ac_tool_warned in 6649yes:) 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6652ac_tool_warned=yes ;; 6653esac 6654 STRIP=$ac_ct_STRIP 6655 fi 6656else 6657 STRIP="$ac_cv_prog_STRIP" 6658fi 6659 6660test -z "$STRIP" && STRIP=: 6661 6662 6663 6664 6665 6666 6667if test -n "$ac_tool_prefix"; then 6668 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6669set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671$as_echo_n "checking for $ac_word... " >&6; } 6672if ${ac_cv_prog_RANLIB+:} false; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 if test -n "$RANLIB"; then 6676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6677else 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689done 6690 done 6691IFS=$as_save_IFS 6692 6693fi 6694fi 6695RANLIB=$ac_cv_prog_RANLIB 6696if test -n "$RANLIB"; then 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6698$as_echo "$RANLIB" >&6; } 6699else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701$as_echo "no" >&6; } 6702fi 6703 6704 6705fi 6706if test -z "$ac_cv_prog_RANLIB"; then 6707 ac_ct_RANLIB=$RANLIB 6708 # Extract the first word of "ranlib", so it can be a program name with args. 6709set dummy ranlib; ac_word=$2 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711$as_echo_n "checking for $ac_word... " >&6; } 6712if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6713 $as_echo_n "(cached) " >&6 6714else 6715 if test -n "$ac_ct_RANLIB"; then 6716 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6717else 6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719for as_dir in $PATH 6720do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6725 ac_cv_prog_ac_ct_RANLIB="ranlib" 6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729done 6730 done 6731IFS=$as_save_IFS 6732 6733fi 6734fi 6735ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6736if test -n "$ac_ct_RANLIB"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6738$as_echo "$ac_ct_RANLIB" >&6; } 6739else 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741$as_echo "no" >&6; } 6742fi 6743 6744 if test "x$ac_ct_RANLIB" = x; then 6745 RANLIB=":" 6746 else 6747 case $cross_compiling:$ac_tool_warned in 6748yes:) 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6751ac_tool_warned=yes ;; 6752esac 6753 RANLIB=$ac_ct_RANLIB 6754 fi 6755else 6756 RANLIB="$ac_cv_prog_RANLIB" 6757fi 6758 6759test -z "$RANLIB" && RANLIB=: 6760 6761 6762 6763 6764 6765 6766# Determine commands to create old-style static archives. 6767old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6768old_postinstall_cmds='chmod 644 $oldlib' 6769old_postuninstall_cmds= 6770 6771if test -n "$RANLIB"; then 6772 case $host_os in 6773 bitrig* | openbsd*) 6774 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6775 ;; 6776 *) 6777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6778 ;; 6779 esac 6780 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6781fi 6782 6783case $host_os in 6784 darwin*) 6785 lock_old_archive_extraction=yes ;; 6786 *) 6787 lock_old_archive_extraction=no ;; 6788esac 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828# If no C compiler was specified, use CC. 6829LTCC=${LTCC-"$CC"} 6830 6831# If no C compiler flags were specified, use CFLAGS. 6832LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6833 6834# Allow CC to be a program name with arguments. 6835compiler=$CC 6836 6837 6838# Check for command to grab the raw symbol name followed by C symbol from nm. 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6840$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6841if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 6845# These are sane defaults that work on at least a few old systems. 6846# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6847 6848# Character class describing NM global symbol codes. 6849symcode='[BCDEGRST]' 6850 6851# Regexp to match symbols that can be accessed directly from C. 6852sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6853 6854# Define system-specific variables. 6855case $host_os in 6856aix*) 6857 symcode='[BCDT]' 6858 ;; 6859cygwin* | mingw* | pw32* | cegcc*) 6860 symcode='[ABCDGISTW]' 6861 ;; 6862hpux*) 6863 if test ia64 = "$host_cpu"; then 6864 symcode='[ABCDEGRST]' 6865 fi 6866 ;; 6867irix* | nonstopux*) 6868 symcode='[BCDEGRST]' 6869 ;; 6870osf*) 6871 symcode='[BCDEGQRST]' 6872 ;; 6873solaris*) 6874 symcode='[BDRT]' 6875 ;; 6876sco3.2v5*) 6877 symcode='[DT]' 6878 ;; 6879sysv4.2uw2*) 6880 symcode='[DT]' 6881 ;; 6882sysv5* | sco5v6* | unixware* | OpenUNIX*) 6883 symcode='[ABDT]' 6884 ;; 6885sysv4) 6886 symcode='[DFNSTU]' 6887 ;; 6888esac 6889 6890# If we're using GNU nm, then use its standard symbol codes. 6891case `$NM -V 2>&1` in 6892*GNU* | *'with BFD'*) 6893 symcode='[ABCDGIRSTW]' ;; 6894esac 6895 6896if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6897 # Gets list of data symbols to import. 6898 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6899 # Adjust the below global symbol transforms to fixup imported variables. 6900 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6901 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6902 lt_c_name_lib_hook="\ 6903 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6904 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6905else 6906 # Disable hooks by default. 6907 lt_cv_sys_global_symbol_to_import= 6908 lt_cdecl_hook= 6909 lt_c_name_hook= 6910 lt_c_name_lib_hook= 6911fi 6912 6913# Transform an extracted symbol line into a proper C declaration. 6914# Some systems (esp. on ia64) link data and code symbols differently, 6915# so use this general approach. 6916lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6917$lt_cdecl_hook\ 6918" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6919" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6920 6921# Transform an extracted symbol line into symbol name and symbol address 6922lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6923$lt_c_name_hook\ 6924" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6925" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6926 6927# Transform an extracted symbol line into symbol name with lib prefix and 6928# symbol address. 6929lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6930$lt_c_name_lib_hook\ 6931" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6932" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6933" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6934 6935# Handle CRLF in mingw tool chain 6936opt_cr= 6937case $build_os in 6938mingw*) 6939 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6940 ;; 6941esac 6942 6943# Try without a prefix underscore, then with it. 6944for ac_symprfx in "" "_"; do 6945 6946 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6947 symxfrm="\\1 $ac_symprfx\\2 \\2" 6948 6949 # Write the raw and C identifiers. 6950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6951 # Fake it for dumpbin and say T for any non-static function, 6952 # D for any global variable and I for any imported variable. 6953 # Also find C++ and __fastcall symbols from MSVC++, 6954 # which start with @ or ?. 6955 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6956" {last_section=section; section=\$ 3};"\ 6957" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6958" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6959" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6960" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6961" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6962" \$ 0!~/External *\|/{next};"\ 6963" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6964" {if(hide[section]) next};"\ 6965" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6966" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6967" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6968" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6969" ' prfx=^$ac_symprfx" 6970 else 6971 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6972 fi 6973 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6974 6975 # Check to see that the pipe works correctly. 6976 pipe_works=no 6977 6978 rm -f conftest* 6979 cat > conftest.$ac_ext <<_LT_EOF 6980#ifdef __cplusplus 6981extern "C" { 6982#endif 6983char nm_test_var; 6984void nm_test_func(void); 6985void nm_test_func(void){} 6986#ifdef __cplusplus 6987} 6988#endif 6989int main(){nm_test_var='a';nm_test_func();return(0);} 6990_LT_EOF 6991 6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6993 (eval $ac_compile) 2>&5 6994 ac_status=$? 6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6996 test $ac_status = 0; }; then 6997 # Now try to grab the symbols. 6998 nlist=conftest.nm 6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7000 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7001 ac_status=$? 7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7003 test $ac_status = 0; } && test -s "$nlist"; then 7004 # Try sorting and uniquifying the output. 7005 if sort "$nlist" | uniq > "$nlist"T; then 7006 mv -f "$nlist"T "$nlist" 7007 else 7008 rm -f "$nlist"T 7009 fi 7010 7011 # Make sure that we snagged all the symbols we need. 7012 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7013 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7014 cat <<_LT_EOF > conftest.$ac_ext 7015/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7016#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7017/* DATA imports from DLLs on WIN32 can't be const, because runtime 7018 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7019# define LT_DLSYM_CONST 7020#elif defined __osf__ 7021/* This system does not cope well with relocations in const data. */ 7022# define LT_DLSYM_CONST 7023#else 7024# define LT_DLSYM_CONST const 7025#endif 7026 7027#ifdef __cplusplus 7028extern "C" { 7029#endif 7030 7031_LT_EOF 7032 # Now generate the symbol file. 7033 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7034 7035 cat <<_LT_EOF >> conftest.$ac_ext 7036 7037/* The mapping between symbol names and symbols. */ 7038LT_DLSYM_CONST struct { 7039 const char *name; 7040 void *address; 7041} 7042lt__PROGRAM__LTX_preloaded_symbols[] = 7043{ 7044 { "@PROGRAM@", (void *) 0 }, 7045_LT_EOF 7046 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7047 cat <<\_LT_EOF >> conftest.$ac_ext 7048 {0, (void *) 0} 7049}; 7050 7051/* This works around a problem in FreeBSD linker */ 7052#ifdef FREEBSD_WORKAROUND 7053static const void *lt_preloaded_setup() { 7054 return lt__PROGRAM__LTX_preloaded_symbols; 7055} 7056#endif 7057 7058#ifdef __cplusplus 7059} 7060#endif 7061_LT_EOF 7062 # Now try linking the two files. 7063 mv conftest.$ac_objext conftstm.$ac_objext 7064 lt_globsym_save_LIBS=$LIBS 7065 lt_globsym_save_CFLAGS=$CFLAGS 7066 LIBS=conftstm.$ac_objext 7067 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7069 (eval $ac_link) 2>&5 7070 ac_status=$? 7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7072 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7073 pipe_works=yes 7074 fi 7075 LIBS=$lt_globsym_save_LIBS 7076 CFLAGS=$lt_globsym_save_CFLAGS 7077 else 7078 echo "cannot find nm_test_func in $nlist" >&5 7079 fi 7080 else 7081 echo "cannot find nm_test_var in $nlist" >&5 7082 fi 7083 else 7084 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7085 fi 7086 else 7087 echo "$progname: failed program was:" >&5 7088 cat conftest.$ac_ext >&5 7089 fi 7090 rm -rf conftest* conftst* 7091 7092 # Do not use the global_symbol_pipe unless it works. 7093 if test yes = "$pipe_works"; then 7094 break 7095 else 7096 lt_cv_sys_global_symbol_pipe= 7097 fi 7098done 7099 7100fi 7101 7102if test -z "$lt_cv_sys_global_symbol_pipe"; then 7103 lt_cv_sys_global_symbol_to_cdecl= 7104fi 7105if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7107$as_echo "failed" >&6; } 7108else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7110$as_echo "ok" >&6; } 7111fi 7112 7113# Response file support. 7114if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7115 nm_file_list_spec='@' 7116elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7117 nm_file_list_spec='@' 7118fi 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7157$as_echo_n "checking for sysroot... " >&6; } 7158 7159# Check whether --with-sysroot was given. 7160if test "${with_sysroot+set}" = set; then : 7161 withval=$with_sysroot; 7162else 7163 with_sysroot=no 7164fi 7165 7166 7167lt_sysroot= 7168case $with_sysroot in #( 7169 yes) 7170 if test yes = "$GCC"; then 7171 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7172 fi 7173 ;; #( 7174 /*) 7175 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7176 ;; #( 7177 no|'') 7178 ;; #( 7179 *) 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7181$as_echo "$with_sysroot" >&6; } 7182 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7183 ;; 7184esac 7185 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7187$as_echo "${lt_sysroot:-no}" >&6; } 7188 7189 7190 7191 7192 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7194$as_echo_n "checking for a working dd... " >&6; } 7195if ${ac_cv_path_lt_DD+:} false; then : 7196 $as_echo_n "(cached) " >&6 7197else 7198 printf 0123456789abcdef0123456789abcdef >conftest.i 7199cat conftest.i conftest.i >conftest2.i 7200: ${lt_DD:=$DD} 7201if test -z "$lt_DD"; then 7202 ac_path_lt_DD_found=false 7203 # Loop through the user's path and test for each of PROGNAME-LIST 7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7205for as_dir in $PATH 7206do 7207 IFS=$as_save_IFS 7208 test -z "$as_dir" && as_dir=. 7209 for ac_prog in dd; do 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7212 as_fn_executable_p "$ac_path_lt_DD" || continue 7213if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7214 cmp -s conftest.i conftest.out \ 7215 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7216fi 7217 $ac_path_lt_DD_found && break 3 7218 done 7219 done 7220 done 7221IFS=$as_save_IFS 7222 if test -z "$ac_cv_path_lt_DD"; then 7223 : 7224 fi 7225else 7226 ac_cv_path_lt_DD=$lt_DD 7227fi 7228 7229rm -f conftest.i conftest2.i conftest.out 7230fi 7231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7232$as_echo "$ac_cv_path_lt_DD" >&6; } 7233 7234 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7236$as_echo_n "checking how to truncate binary pipes... " >&6; } 7237if ${lt_cv_truncate_bin+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 printf 0123456789abcdef0123456789abcdef >conftest.i 7241cat conftest.i conftest.i >conftest2.i 7242lt_cv_truncate_bin= 7243if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7244 cmp -s conftest.i conftest.out \ 7245 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7246fi 7247rm -f conftest.i conftest2.i conftest.out 7248test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7249fi 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7251$as_echo "$lt_cv_truncate_bin" >&6; } 7252 7253 7254 7255 7256 7257 7258 7259# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7260func_cc_basename () 7261{ 7262 for cc_temp in $*""; do 7263 case $cc_temp in 7264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7266 \-*) ;; 7267 *) break;; 7268 esac 7269 done 7270 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7271} 7272 7273# Check whether --enable-libtool-lock was given. 7274if test "${enable_libtool_lock+set}" = set; then : 7275 enableval=$enable_libtool_lock; 7276fi 7277 7278test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7279 7280# Some flags need to be propagated to the compiler or linker for good 7281# libtool support. 7282case $host in 7283ia64-*-hpux*) 7284 # Find out what ABI is being produced by ac_compile, and set mode 7285 # options accordingly. 7286 echo 'int i;' > conftest.$ac_ext 7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7288 (eval $ac_compile) 2>&5 7289 ac_status=$? 7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7291 test $ac_status = 0; }; then 7292 case `/usr/bin/file conftest.$ac_objext` in 7293 *ELF-32*) 7294 HPUX_IA64_MODE=32 7295 ;; 7296 *ELF-64*) 7297 HPUX_IA64_MODE=64 7298 ;; 7299 esac 7300 fi 7301 rm -rf conftest* 7302 ;; 7303*-*-irix6*) 7304 # Find out what ABI is being produced by ac_compile, and set linker 7305 # options accordingly. 7306 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7308 (eval $ac_compile) 2>&5 7309 ac_status=$? 7310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7311 test $ac_status = 0; }; then 7312 if test yes = "$lt_cv_prog_gnu_ld"; then 7313 case `/usr/bin/file conftest.$ac_objext` in 7314 *32-bit*) 7315 LD="${LD-ld} -melf32bsmip" 7316 ;; 7317 *N32*) 7318 LD="${LD-ld} -melf32bmipn32" 7319 ;; 7320 *64-bit*) 7321 LD="${LD-ld} -melf64bmip" 7322 ;; 7323 esac 7324 else 7325 case `/usr/bin/file conftest.$ac_objext` in 7326 *32-bit*) 7327 LD="${LD-ld} -32" 7328 ;; 7329 *N32*) 7330 LD="${LD-ld} -n32" 7331 ;; 7332 *64-bit*) 7333 LD="${LD-ld} -64" 7334 ;; 7335 esac 7336 fi 7337 fi 7338 rm -rf conftest* 7339 ;; 7340 7341mips64*-*linux*) 7342 # Find out what ABI is being produced by ac_compile, and set linker 7343 # options accordingly. 7344 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7346 (eval $ac_compile) 2>&5 7347 ac_status=$? 7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7349 test $ac_status = 0; }; then 7350 emul=elf 7351 case `/usr/bin/file conftest.$ac_objext` in 7352 *32-bit*) 7353 emul="${emul}32" 7354 ;; 7355 *64-bit*) 7356 emul="${emul}64" 7357 ;; 7358 esac 7359 case `/usr/bin/file conftest.$ac_objext` in 7360 *MSB*) 7361 emul="${emul}btsmip" 7362 ;; 7363 *LSB*) 7364 emul="${emul}ltsmip" 7365 ;; 7366 esac 7367 case `/usr/bin/file conftest.$ac_objext` in 7368 *N32*) 7369 emul="${emul}n32" 7370 ;; 7371 esac 7372 LD="${LD-ld} -m $emul" 7373 fi 7374 rm -rf conftest* 7375 ;; 7376 7377x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7378s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7379 # Find out what ABI is being produced by ac_compile, and set linker 7380 # options accordingly. Note that the listed cases only cover the 7381 # situations where additional linker options are needed (such as when 7382 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7383 # vice versa); the common cases where no linker options are needed do 7384 # not appear in the list. 7385 echo 'int i;' > conftest.$ac_ext 7386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7387 (eval $ac_compile) 2>&5 7388 ac_status=$? 7389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7390 test $ac_status = 0; }; then 7391 case `/usr/bin/file conftest.o` in 7392 *32-bit*) 7393 case $host in 7394 x86_64-*kfreebsd*-gnu) 7395 LD="${LD-ld} -m elf_i386_fbsd" 7396 ;; 7397 x86_64-*linux*) 7398 case `/usr/bin/file conftest.o` in 7399 *x86-64*) 7400 LD="${LD-ld} -m elf32_x86_64" 7401 ;; 7402 *) 7403 LD="${LD-ld} -m elf_i386" 7404 ;; 7405 esac 7406 ;; 7407 powerpc64le-*linux*) 7408 LD="${LD-ld} -m elf32lppclinux" 7409 ;; 7410 powerpc64-*linux*) 7411 LD="${LD-ld} -m elf32ppclinux" 7412 ;; 7413 s390x-*linux*) 7414 LD="${LD-ld} -m elf_s390" 7415 ;; 7416 sparc64-*linux*) 7417 LD="${LD-ld} -m elf32_sparc" 7418 ;; 7419 esac 7420 ;; 7421 *64-bit*) 7422 case $host in 7423 x86_64-*kfreebsd*-gnu) 7424 LD="${LD-ld} -m elf_x86_64_fbsd" 7425 ;; 7426 x86_64-*linux*) 7427 LD="${LD-ld} -m elf_x86_64" 7428 ;; 7429 powerpcle-*linux*) 7430 LD="${LD-ld} -m elf64lppc" 7431 ;; 7432 powerpc-*linux*) 7433 LD="${LD-ld} -m elf64ppc" 7434 ;; 7435 s390*-*linux*|s390*-*tpf*) 7436 LD="${LD-ld} -m elf64_s390" 7437 ;; 7438 sparc*-*linux*) 7439 LD="${LD-ld} -m elf64_sparc" 7440 ;; 7441 esac 7442 ;; 7443 esac 7444 fi 7445 rm -rf conftest* 7446 ;; 7447 7448*-*-sco3.2v5*) 7449 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7450 SAVE_CFLAGS=$CFLAGS 7451 CFLAGS="$CFLAGS -belf" 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7453$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7454if ${lt_cv_cc_needs_belf+:} false; then : 7455 $as_echo_n "(cached) " >&6 7456else 7457 ac_ext=c 7458ac_cpp='$CPP $CPPFLAGS' 7459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7461ac_compiler_gnu=$ac_cv_c_compiler_gnu 7462 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465 7466int 7467main () 7468{ 7469 7470 ; 7471 return 0; 7472} 7473_ACEOF 7474if ac_fn_c_try_link "$LINENO"; then : 7475 lt_cv_cc_needs_belf=yes 7476else 7477 lt_cv_cc_needs_belf=no 7478fi 7479rm -f core conftest.err conftest.$ac_objext \ 7480 conftest$ac_exeext conftest.$ac_ext 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 7487fi 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7489$as_echo "$lt_cv_cc_needs_belf" >&6; } 7490 if test yes != "$lt_cv_cc_needs_belf"; then 7491 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7492 CFLAGS=$SAVE_CFLAGS 7493 fi 7494 ;; 7495*-*solaris*) 7496 # Find out what ABI is being produced by ac_compile, and set linker 7497 # options accordingly. 7498 echo 'int i;' > conftest.$ac_ext 7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7500 (eval $ac_compile) 2>&5 7501 ac_status=$? 7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7503 test $ac_status = 0; }; then 7504 case `/usr/bin/file conftest.o` in 7505 *64-bit*) 7506 case $lt_cv_prog_gnu_ld in 7507 yes*) 7508 case $host in 7509 i?86-*-solaris*|x86_64-*-solaris*) 7510 LD="${LD-ld} -m elf_x86_64" 7511 ;; 7512 sparc*-*-solaris*) 7513 LD="${LD-ld} -m elf64_sparc" 7514 ;; 7515 esac 7516 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7517 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7518 LD=${LD-ld}_sol2 7519 fi 7520 ;; 7521 *) 7522 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7523 LD="${LD-ld} -64" 7524 fi 7525 ;; 7526 esac 7527 ;; 7528 esac 7529 fi 7530 rm -rf conftest* 7531 ;; 7532esac 7533 7534need_locks=$enable_libtool_lock 7535 7536if test -n "$ac_tool_prefix"; then 7537 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7538set dummy ${ac_tool_prefix}mt; ac_word=$2 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7540$as_echo_n "checking for $ac_word... " >&6; } 7541if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 if test -n "$MANIFEST_TOOL"; then 7545 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7546else 7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548for as_dir in $PATH 7549do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7554 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558done 7559 done 7560IFS=$as_save_IFS 7561 7562fi 7563fi 7564MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7565if test -n "$MANIFEST_TOOL"; then 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7567$as_echo "$MANIFEST_TOOL" >&6; } 7568else 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7570$as_echo "no" >&6; } 7571fi 7572 7573 7574fi 7575if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7576 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7577 # Extract the first word of "mt", so it can be a program name with args. 7578set dummy mt; ac_word=$2 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7580$as_echo_n "checking for $ac_word... " >&6; } 7581if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 if test -n "$ac_ct_MANIFEST_TOOL"; then 7585 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7586else 7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588for as_dir in $PATH 7589do 7590 IFS=$as_save_IFS 7591 test -z "$as_dir" && as_dir=. 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7594 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7596 break 2 7597 fi 7598done 7599 done 7600IFS=$as_save_IFS 7601 7602fi 7603fi 7604ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7605if test -n "$ac_ct_MANIFEST_TOOL"; then 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7607$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7608else 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7610$as_echo "no" >&6; } 7611fi 7612 7613 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7614 MANIFEST_TOOL=":" 7615 else 7616 case $cross_compiling:$ac_tool_warned in 7617yes:) 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7620ac_tool_warned=yes ;; 7621esac 7622 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7623 fi 7624else 7625 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7626fi 7627 7628test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7630$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7631if ${lt_cv_path_mainfest_tool+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 lt_cv_path_mainfest_tool=no 7635 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7636 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7637 cat conftest.err >&5 7638 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7639 lt_cv_path_mainfest_tool=yes 7640 fi 7641 rm -f conftest* 7642fi 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7644$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7645if test yes != "$lt_cv_path_mainfest_tool"; then 7646 MANIFEST_TOOL=: 7647fi 7648 7649 7650 7651 7652 7653 7654 case $host_os in 7655 rhapsody* | darwin*) 7656 if test -n "$ac_tool_prefix"; then 7657 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7658set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7660$as_echo_n "checking for $ac_word... " >&6; } 7661if ${ac_cv_prog_DSYMUTIL+:} false; then : 7662 $as_echo_n "(cached) " >&6 7663else 7664 if test -n "$DSYMUTIL"; then 7665 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7666else 7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7668for as_dir in $PATH 7669do 7670 IFS=$as_save_IFS 7671 test -z "$as_dir" && as_dir=. 7672 for ac_exec_ext in '' $ac_executable_extensions; do 7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7674 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7676 break 2 7677 fi 7678done 7679 done 7680IFS=$as_save_IFS 7681 7682fi 7683fi 7684DSYMUTIL=$ac_cv_prog_DSYMUTIL 7685if test -n "$DSYMUTIL"; then 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7687$as_echo "$DSYMUTIL" >&6; } 7688else 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7690$as_echo "no" >&6; } 7691fi 7692 7693 7694fi 7695if test -z "$ac_cv_prog_DSYMUTIL"; then 7696 ac_ct_DSYMUTIL=$DSYMUTIL 7697 # Extract the first word of "dsymutil", so it can be a program name with args. 7698set dummy dsymutil; ac_word=$2 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7700$as_echo_n "checking for $ac_word... " >&6; } 7701if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 if test -n "$ac_ct_DSYMUTIL"; then 7705 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7706else 7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7708for as_dir in $PATH 7709do 7710 IFS=$as_save_IFS 7711 test -z "$as_dir" && as_dir=. 7712 for ac_exec_ext in '' $ac_executable_extensions; do 7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7714 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7716 break 2 7717 fi 7718done 7719 done 7720IFS=$as_save_IFS 7721 7722fi 7723fi 7724ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7725if test -n "$ac_ct_DSYMUTIL"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7727$as_echo "$ac_ct_DSYMUTIL" >&6; } 7728else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7730$as_echo "no" >&6; } 7731fi 7732 7733 if test "x$ac_ct_DSYMUTIL" = x; then 7734 DSYMUTIL=":" 7735 else 7736 case $cross_compiling:$ac_tool_warned in 7737yes:) 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7740ac_tool_warned=yes ;; 7741esac 7742 DSYMUTIL=$ac_ct_DSYMUTIL 7743 fi 7744else 7745 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7746fi 7747 7748 if test -n "$ac_tool_prefix"; then 7749 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7750set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7752$as_echo_n "checking for $ac_word... " >&6; } 7753if ${ac_cv_prog_NMEDIT+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 if test -n "$NMEDIT"; then 7757 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7758else 7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7760for as_dir in $PATH 7761do 7762 IFS=$as_save_IFS 7763 test -z "$as_dir" && as_dir=. 7764 for ac_exec_ext in '' $ac_executable_extensions; do 7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7766 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7768 break 2 7769 fi 7770done 7771 done 7772IFS=$as_save_IFS 7773 7774fi 7775fi 7776NMEDIT=$ac_cv_prog_NMEDIT 7777if test -n "$NMEDIT"; then 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7779$as_echo "$NMEDIT" >&6; } 7780else 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7782$as_echo "no" >&6; } 7783fi 7784 7785 7786fi 7787if test -z "$ac_cv_prog_NMEDIT"; then 7788 ac_ct_NMEDIT=$NMEDIT 7789 # Extract the first word of "nmedit", so it can be a program name with args. 7790set dummy nmedit; ac_word=$2 7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7792$as_echo_n "checking for $ac_word... " >&6; } 7793if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7794 $as_echo_n "(cached) " >&6 7795else 7796 if test -n "$ac_ct_NMEDIT"; then 7797 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7798else 7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7800for as_dir in $PATH 7801do 7802 IFS=$as_save_IFS 7803 test -z "$as_dir" && as_dir=. 7804 for ac_exec_ext in '' $ac_executable_extensions; do 7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7806 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7808 break 2 7809 fi 7810done 7811 done 7812IFS=$as_save_IFS 7813 7814fi 7815fi 7816ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7817if test -n "$ac_ct_NMEDIT"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7819$as_echo "$ac_ct_NMEDIT" >&6; } 7820else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822$as_echo "no" >&6; } 7823fi 7824 7825 if test "x$ac_ct_NMEDIT" = x; then 7826 NMEDIT=":" 7827 else 7828 case $cross_compiling:$ac_tool_warned in 7829yes:) 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7832ac_tool_warned=yes ;; 7833esac 7834 NMEDIT=$ac_ct_NMEDIT 7835 fi 7836else 7837 NMEDIT="$ac_cv_prog_NMEDIT" 7838fi 7839 7840 if test -n "$ac_tool_prefix"; then 7841 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7842set dummy ${ac_tool_prefix}lipo; ac_word=$2 7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7844$as_echo_n "checking for $ac_word... " >&6; } 7845if ${ac_cv_prog_LIPO+:} false; then : 7846 $as_echo_n "(cached) " >&6 7847else 7848 if test -n "$LIPO"; then 7849 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7850else 7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7852for as_dir in $PATH 7853do 7854 IFS=$as_save_IFS 7855 test -z "$as_dir" && as_dir=. 7856 for ac_exec_ext in '' $ac_executable_extensions; do 7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7858 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7860 break 2 7861 fi 7862done 7863 done 7864IFS=$as_save_IFS 7865 7866fi 7867fi 7868LIPO=$ac_cv_prog_LIPO 7869if test -n "$LIPO"; then 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7871$as_echo "$LIPO" >&6; } 7872else 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7874$as_echo "no" >&6; } 7875fi 7876 7877 7878fi 7879if test -z "$ac_cv_prog_LIPO"; then 7880 ac_ct_LIPO=$LIPO 7881 # Extract the first word of "lipo", so it can be a program name with args. 7882set dummy lipo; ac_word=$2 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7884$as_echo_n "checking for $ac_word... " >&6; } 7885if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 if test -n "$ac_ct_LIPO"; then 7889 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7890else 7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7892for as_dir in $PATH 7893do 7894 IFS=$as_save_IFS 7895 test -z "$as_dir" && as_dir=. 7896 for ac_exec_ext in '' $ac_executable_extensions; do 7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7898 ac_cv_prog_ac_ct_LIPO="lipo" 7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7900 break 2 7901 fi 7902done 7903 done 7904IFS=$as_save_IFS 7905 7906fi 7907fi 7908ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7909if test -n "$ac_ct_LIPO"; then 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7911$as_echo "$ac_ct_LIPO" >&6; } 7912else 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7914$as_echo "no" >&6; } 7915fi 7916 7917 if test "x$ac_ct_LIPO" = x; then 7918 LIPO=":" 7919 else 7920 case $cross_compiling:$ac_tool_warned in 7921yes:) 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7924ac_tool_warned=yes ;; 7925esac 7926 LIPO=$ac_ct_LIPO 7927 fi 7928else 7929 LIPO="$ac_cv_prog_LIPO" 7930fi 7931 7932 if test -n "$ac_tool_prefix"; then 7933 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7934set dummy ${ac_tool_prefix}otool; ac_word=$2 7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7936$as_echo_n "checking for $ac_word... " >&6; } 7937if ${ac_cv_prog_OTOOL+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 if test -n "$OTOOL"; then 7941 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7942else 7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7944for as_dir in $PATH 7945do 7946 IFS=$as_save_IFS 7947 test -z "$as_dir" && as_dir=. 7948 for ac_exec_ext in '' $ac_executable_extensions; do 7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7950 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7952 break 2 7953 fi 7954done 7955 done 7956IFS=$as_save_IFS 7957 7958fi 7959fi 7960OTOOL=$ac_cv_prog_OTOOL 7961if test -n "$OTOOL"; then 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7963$as_echo "$OTOOL" >&6; } 7964else 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7966$as_echo "no" >&6; } 7967fi 7968 7969 7970fi 7971if test -z "$ac_cv_prog_OTOOL"; then 7972 ac_ct_OTOOL=$OTOOL 7973 # Extract the first word of "otool", so it can be a program name with args. 7974set dummy otool; ac_word=$2 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7976$as_echo_n "checking for $ac_word... " >&6; } 7977if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7978 $as_echo_n "(cached) " >&6 7979else 7980 if test -n "$ac_ct_OTOOL"; then 7981 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7982else 7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7984for as_dir in $PATH 7985do 7986 IFS=$as_save_IFS 7987 test -z "$as_dir" && as_dir=. 7988 for ac_exec_ext in '' $ac_executable_extensions; do 7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7990 ac_cv_prog_ac_ct_OTOOL="otool" 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7992 break 2 7993 fi 7994done 7995 done 7996IFS=$as_save_IFS 7997 7998fi 7999fi 8000ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8001if test -n "$ac_ct_OTOOL"; then 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8003$as_echo "$ac_ct_OTOOL" >&6; } 8004else 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8006$as_echo "no" >&6; } 8007fi 8008 8009 if test "x$ac_ct_OTOOL" = x; then 8010 OTOOL=":" 8011 else 8012 case $cross_compiling:$ac_tool_warned in 8013yes:) 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8016ac_tool_warned=yes ;; 8017esac 8018 OTOOL=$ac_ct_OTOOL 8019 fi 8020else 8021 OTOOL="$ac_cv_prog_OTOOL" 8022fi 8023 8024 if test -n "$ac_tool_prefix"; then 8025 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8026set dummy ${ac_tool_prefix}otool64; ac_word=$2 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8028$as_echo_n "checking for $ac_word... " >&6; } 8029if ${ac_cv_prog_OTOOL64+:} false; then : 8030 $as_echo_n "(cached) " >&6 8031else 8032 if test -n "$OTOOL64"; then 8033 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8034else 8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8036for as_dir in $PATH 8037do 8038 IFS=$as_save_IFS 8039 test -z "$as_dir" && as_dir=. 8040 for ac_exec_ext in '' $ac_executable_extensions; do 8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8042 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8044 break 2 8045 fi 8046done 8047 done 8048IFS=$as_save_IFS 8049 8050fi 8051fi 8052OTOOL64=$ac_cv_prog_OTOOL64 8053if test -n "$OTOOL64"; then 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8055$as_echo "$OTOOL64" >&6; } 8056else 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8058$as_echo "no" >&6; } 8059fi 8060 8061 8062fi 8063if test -z "$ac_cv_prog_OTOOL64"; then 8064 ac_ct_OTOOL64=$OTOOL64 8065 # Extract the first word of "otool64", so it can be a program name with args. 8066set dummy otool64; ac_word=$2 8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8068$as_echo_n "checking for $ac_word... " >&6; } 8069if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8070 $as_echo_n "(cached) " >&6 8071else 8072 if test -n "$ac_ct_OTOOL64"; then 8073 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8074else 8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8076for as_dir in $PATH 8077do 8078 IFS=$as_save_IFS 8079 test -z "$as_dir" && as_dir=. 8080 for ac_exec_ext in '' $ac_executable_extensions; do 8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8082 ac_cv_prog_ac_ct_OTOOL64="otool64" 8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8084 break 2 8085 fi 8086done 8087 done 8088IFS=$as_save_IFS 8089 8090fi 8091fi 8092ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8093if test -n "$ac_ct_OTOOL64"; then 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8095$as_echo "$ac_ct_OTOOL64" >&6; } 8096else 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8098$as_echo "no" >&6; } 8099fi 8100 8101 if test "x$ac_ct_OTOOL64" = x; then 8102 OTOOL64=":" 8103 else 8104 case $cross_compiling:$ac_tool_warned in 8105yes:) 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8108ac_tool_warned=yes ;; 8109esac 8110 OTOOL64=$ac_ct_OTOOL64 8111 fi 8112else 8113 OTOOL64="$ac_cv_prog_OTOOL64" 8114fi 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8143$as_echo_n "checking for -single_module linker flag... " >&6; } 8144if ${lt_cv_apple_cc_single_mod+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 lt_cv_apple_cc_single_mod=no 8148 if test -z "$LT_MULTI_MODULE"; then 8149 # By default we will add the -single_module flag. You can override 8150 # by either setting the environment variable LT_MULTI_MODULE 8151 # non-empty at configure time, or by adding -multi_module to the 8152 # link flags. 8153 rm -rf libconftest.dylib* 8154 echo "int foo(void){return 1;}" > conftest.c 8155 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8156-dynamiclib -Wl,-single_module conftest.c" >&5 8157 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8158 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8159 _lt_result=$? 8160 # If there is a non-empty error log, and "single_module" 8161 # appears in it, assume the flag caused a linker warning 8162 if test -s conftest.err && $GREP single_module conftest.err; then 8163 cat conftest.err >&5 8164 # Otherwise, if the output was created with a 0 exit code from 8165 # the compiler, it worked. 8166 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8167 lt_cv_apple_cc_single_mod=yes 8168 else 8169 cat conftest.err >&5 8170 fi 8171 rm -rf libconftest.dylib* 8172 rm -f conftest.* 8173 fi 8174fi 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8176$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8177 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8179$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8180if ${lt_cv_ld_exported_symbols_list+:} false; then : 8181 $as_echo_n "(cached) " >&6 8182else 8183 lt_cv_ld_exported_symbols_list=no 8184 save_LDFLAGS=$LDFLAGS 8185 echo "_main" > conftest.sym 8186 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188/* end confdefs.h. */ 8189 8190int 8191main () 8192{ 8193 8194 ; 8195 return 0; 8196} 8197_ACEOF 8198if ac_fn_c_try_link "$LINENO"; then : 8199 lt_cv_ld_exported_symbols_list=yes 8200else 8201 lt_cv_ld_exported_symbols_list=no 8202fi 8203rm -f core conftest.err conftest.$ac_objext \ 8204 conftest$ac_exeext conftest.$ac_ext 8205 LDFLAGS=$save_LDFLAGS 8206 8207fi 8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8209$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8210 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8212$as_echo_n "checking for -force_load linker flag... " >&6; } 8213if ${lt_cv_ld_force_load+:} false; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 lt_cv_ld_force_load=no 8217 cat > conftest.c << _LT_EOF 8218int forced_loaded() { return 2;} 8219_LT_EOF 8220 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8221 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8222 echo "$AR cru libconftest.a conftest.o" >&5 8223 $AR cru libconftest.a conftest.o 2>&5 8224 echo "$RANLIB libconftest.a" >&5 8225 $RANLIB libconftest.a 2>&5 8226 cat > conftest.c << _LT_EOF 8227int main() { return 0;} 8228_LT_EOF 8229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8231 _lt_result=$? 8232 if test -s conftest.err && $GREP force_load conftest.err; then 8233 cat conftest.err >&5 8234 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8235 lt_cv_ld_force_load=yes 8236 else 8237 cat conftest.err >&5 8238 fi 8239 rm -f conftest.err libconftest.a conftest conftest.c 8240 rm -rf conftest.dSYM 8241 8242fi 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8244$as_echo "$lt_cv_ld_force_load" >&6; } 8245 case $host_os in 8246 rhapsody* | darwin1.[012]) 8247 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8248 darwin1.*) 8249 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8250 darwin*) # darwin 5.x on 8251 # if running on 10.5 or later, the deployment target defaults 8252 # to the OS version, if on x86, and 10.4, the deployment 8253 # target defaults to 10.4. Don't you love it? 8254 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8255 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8256 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8257 10.[012][,.]*) 8258 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8259 10.*) 8260 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8261 esac 8262 ;; 8263 esac 8264 if test yes = "$lt_cv_apple_cc_single_mod"; then 8265 _lt_dar_single_mod='$single_module' 8266 fi 8267 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8268 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8269 else 8270 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8271 fi 8272 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8273 _lt_dsymutil='~$DSYMUTIL $lib || :' 8274 else 8275 _lt_dsymutil= 8276 fi 8277 ;; 8278 esac 8279 8280# func_munge_path_list VARIABLE PATH 8281# ----------------------------------- 8282# VARIABLE is name of variable containing _space_ separated list of 8283# directories to be munged by the contents of PATH, which is string 8284# having a format: 8285# "DIR[:DIR]:" 8286# string "DIR[ DIR]" will be prepended to VARIABLE 8287# ":DIR[:DIR]" 8288# string "DIR[ DIR]" will be appended to VARIABLE 8289# "DIRP[:DIRP]::[DIRA:]DIRA" 8290# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8291# "DIRA[ DIRA]" will be appended to VARIABLE 8292# "DIR[:DIR]" 8293# VARIABLE will be replaced by "DIR[ DIR]" 8294func_munge_path_list () 8295{ 8296 case x$2 in 8297 x) 8298 ;; 8299 *:) 8300 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8301 ;; 8302 x:*) 8303 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8304 ;; 8305 *::*) 8306 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8307 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8308 ;; 8309 *) 8310 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8311 ;; 8312 esac 8313} 8314 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8316$as_echo_n "checking for ANSI C header files... " >&6; } 8317if ${ac_cv_header_stdc+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319else 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322#include <stdlib.h> 8323#include <stdarg.h> 8324#include <string.h> 8325#include <float.h> 8326 8327int 8328main () 8329{ 8330 8331 ; 8332 return 0; 8333} 8334_ACEOF 8335if ac_fn_c_try_compile "$LINENO"; then : 8336 ac_cv_header_stdc=yes 8337else 8338 ac_cv_header_stdc=no 8339fi 8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8341 8342if test $ac_cv_header_stdc = yes; then 8343 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346#include <string.h> 8347 8348_ACEOF 8349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8350 $EGREP "memchr" >/dev/null 2>&1; then : 8351 8352else 8353 ac_cv_header_stdc=no 8354fi 8355rm -f conftest* 8356 8357fi 8358 8359if test $ac_cv_header_stdc = yes; then 8360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8362/* end confdefs.h. */ 8363#include <stdlib.h> 8364 8365_ACEOF 8366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8367 $EGREP "free" >/dev/null 2>&1; then : 8368 8369else 8370 ac_cv_header_stdc=no 8371fi 8372rm -f conftest* 8373 8374fi 8375 8376if test $ac_cv_header_stdc = yes; then 8377 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8378 if test "$cross_compiling" = yes; then : 8379 : 8380else 8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382/* end confdefs.h. */ 8383#include <ctype.h> 8384#include <stdlib.h> 8385#if ((' ' & 0x0FF) == 0x020) 8386# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8387# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8388#else 8389# define ISLOWER(c) \ 8390 (('a' <= (c) && (c) <= 'i') \ 8391 || ('j' <= (c) && (c) <= 'r') \ 8392 || ('s' <= (c) && (c) <= 'z')) 8393# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8394#endif 8395 8396#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8397int 8398main () 8399{ 8400 int i; 8401 for (i = 0; i < 256; i++) 8402 if (XOR (islower (i), ISLOWER (i)) 8403 || toupper (i) != TOUPPER (i)) 8404 return 2; 8405 return 0; 8406} 8407_ACEOF 8408if ac_fn_c_try_run "$LINENO"; then : 8409 8410else 8411 ac_cv_header_stdc=no 8412fi 8413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8414 conftest.$ac_objext conftest.beam conftest.$ac_ext 8415fi 8416 8417fi 8418fi 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8420$as_echo "$ac_cv_header_stdc" >&6; } 8421if test $ac_cv_header_stdc = yes; then 8422 8423$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8424 8425fi 8426 8427# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8428for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8429 inttypes.h stdint.h unistd.h 8430do : 8431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8432ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8433" 8434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8435 cat >>confdefs.h <<_ACEOF 8436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8437_ACEOF 8438 8439fi 8440 8441done 8442 8443 8444for ac_header in dlfcn.h 8445do : 8446 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8447" 8448if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8449 cat >>confdefs.h <<_ACEOF 8450#define HAVE_DLFCN_H 1 8451_ACEOF 8452 8453fi 8454 8455done 8456 8457 8458 8459 8460 8461# Set options 8462# Check whether --enable-static was given. 8463if test "${enable_static+set}" = set; then : 8464 enableval=$enable_static; p=${PACKAGE-default} 8465 case $enableval in 8466 yes) enable_static=yes ;; 8467 no) enable_static=no ;; 8468 *) 8469 enable_static=no 8470 # Look at the argument we got. We use all the common list separators. 8471 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8472 for pkg in $enableval; do 8473 IFS=$lt_save_ifs 8474 if test "X$pkg" = "X$p"; then 8475 enable_static=yes 8476 fi 8477 done 8478 IFS=$lt_save_ifs 8479 ;; 8480 esac 8481else 8482 enable_static=no 8483fi 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 enable_dlopen=no 8495 8496 8497 enable_win32_dll=no 8498 8499 8500 # Check whether --enable-shared was given. 8501if test "${enable_shared+set}" = set; then : 8502 enableval=$enable_shared; p=${PACKAGE-default} 8503 case $enableval in 8504 yes) enable_shared=yes ;; 8505 no) enable_shared=no ;; 8506 *) 8507 enable_shared=no 8508 # Look at the argument we got. We use all the common list separators. 8509 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8510 for pkg in $enableval; do 8511 IFS=$lt_save_ifs 8512 if test "X$pkg" = "X$p"; then 8513 enable_shared=yes 8514 fi 8515 done 8516 IFS=$lt_save_ifs 8517 ;; 8518 esac 8519else 8520 enable_shared=yes 8521fi 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533# Check whether --with-pic was given. 8534if test "${with_pic+set}" = set; then : 8535 withval=$with_pic; lt_p=${PACKAGE-default} 8536 case $withval in 8537 yes|no) pic_mode=$withval ;; 8538 *) 8539 pic_mode=default 8540 # Look at the argument we got. We use all the common list separators. 8541 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8542 for lt_pkg in $withval; do 8543 IFS=$lt_save_ifs 8544 if test "X$lt_pkg" = "X$lt_p"; then 8545 pic_mode=yes 8546 fi 8547 done 8548 IFS=$lt_save_ifs 8549 ;; 8550 esac 8551else 8552 pic_mode=default 8553fi 8554 8555 8556 8557 8558 8559 8560 8561 8562 # Check whether --enable-fast-install was given. 8563if test "${enable_fast_install+set}" = set; then : 8564 enableval=$enable_fast_install; p=${PACKAGE-default} 8565 case $enableval in 8566 yes) enable_fast_install=yes ;; 8567 no) enable_fast_install=no ;; 8568 *) 8569 enable_fast_install=no 8570 # Look at the argument we got. We use all the common list separators. 8571 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8572 for pkg in $enableval; do 8573 IFS=$lt_save_ifs 8574 if test "X$pkg" = "X$p"; then 8575 enable_fast_install=yes 8576 fi 8577 done 8578 IFS=$lt_save_ifs 8579 ;; 8580 esac 8581else 8582 enable_fast_install=yes 8583fi 8584 8585 8586 8587 8588 8589 8590 8591 8592 shared_archive_member_spec= 8593case $host,$enable_shared in 8594power*-*-aix[5-9]*,yes) 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8596$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8597 8598# Check whether --with-aix-soname was given. 8599if test "${with_aix_soname+set}" = set; then : 8600 withval=$with_aix_soname; case $withval in 8601 aix|svr4|both) 8602 ;; 8603 *) 8604 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8605 ;; 8606 esac 8607 lt_cv_with_aix_soname=$with_aix_soname 8608else 8609 if ${lt_cv_with_aix_soname+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 lt_cv_with_aix_soname=aix 8613fi 8614 8615 with_aix_soname=$lt_cv_with_aix_soname 8616fi 8617 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8619$as_echo "$with_aix_soname" >&6; } 8620 if test aix != "$with_aix_soname"; then 8621 # For the AIX way of multilib, we name the shared archive member 8622 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8623 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8624 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8625 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8626 if test 64 = "${OBJECT_MODE-32}"; then 8627 shared_archive_member_spec=shr_64 8628 else 8629 shared_archive_member_spec=shr 8630 fi 8631 fi 8632 ;; 8633*) 8634 with_aix_soname=aix 8635 ;; 8636esac 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647# This can be used to rebuild libtool when needed 8648LIBTOOL_DEPS=$ltmain 8649 8650# Always use our own libtool. 8651LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682test -z "$LN_S" && LN_S="ln -s" 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697if test -n "${ZSH_VERSION+set}"; then 8698 setopt NO_GLOB_SUBST 8699fi 8700 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8702$as_echo_n "checking for objdir... " >&6; } 8703if ${lt_cv_objdir+:} false; then : 8704 $as_echo_n "(cached) " >&6 8705else 8706 rm -f .libs 2>/dev/null 8707mkdir .libs 2>/dev/null 8708if test -d .libs; then 8709 lt_cv_objdir=.libs 8710else 8711 # MS-DOS does not allow filenames that begin with a dot. 8712 lt_cv_objdir=_libs 8713fi 8714rmdir .libs 2>/dev/null 8715fi 8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8717$as_echo "$lt_cv_objdir" >&6; } 8718objdir=$lt_cv_objdir 8719 8720 8721 8722 8723 8724cat >>confdefs.h <<_ACEOF 8725#define LT_OBJDIR "$lt_cv_objdir/" 8726_ACEOF 8727 8728 8729 8730 8731case $host_os in 8732aix3*) 8733 # AIX sometimes has problems with the GCC collect2 program. For some 8734 # reason, if we set the COLLECT_NAMES environment variable, the problems 8735 # vanish in a puff of smoke. 8736 if test set != "${COLLECT_NAMES+set}"; then 8737 COLLECT_NAMES= 8738 export COLLECT_NAMES 8739 fi 8740 ;; 8741esac 8742 8743# Global variables: 8744ofile=libtool 8745can_build_shared=yes 8746 8747# All known linkers require a '.a' archive for static linking (except MSVC, 8748# which needs '.lib'). 8749libext=a 8750 8751with_gnu_ld=$lt_cv_prog_gnu_ld 8752 8753old_CC=$CC 8754old_CFLAGS=$CFLAGS 8755 8756# Set sane defaults for various variables 8757test -z "$CC" && CC=cc 8758test -z "$LTCC" && LTCC=$CC 8759test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8760test -z "$LD" && LD=ld 8761test -z "$ac_objext" && ac_objext=o 8762 8763func_cc_basename $compiler 8764cc_basename=$func_cc_basename_result 8765 8766 8767# Only perform the check for file, if the check method requires it 8768test -z "$MAGIC_CMD" && MAGIC_CMD=file 8769case $deplibs_check_method in 8770file_magic*) 8771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8773$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8774if ${lt_cv_path_MAGIC_CMD+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 case $MAGIC_CMD in 8778[\\/*] | ?:[\\/]*) 8779 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8780 ;; 8781*) 8782 lt_save_MAGIC_CMD=$MAGIC_CMD 8783 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8785 for ac_dir in $ac_dummy; do 8786 IFS=$lt_save_ifs 8787 test -z "$ac_dir" && ac_dir=. 8788 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8789 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8790 if test -n "$file_magic_test_file"; then 8791 case $deplibs_check_method in 8792 "file_magic "*) 8793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8794 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8796 $EGREP "$file_magic_regex" > /dev/null; then 8797 : 8798 else 8799 cat <<_LT_EOF 1>&2 8800 8801*** Warning: the command libtool uses to detect shared libraries, 8802*** $file_magic_cmd, produces output that libtool cannot recognize. 8803*** The result is that libtool may fail to recognize shared libraries 8804*** as such. This will affect the creation of libtool libraries that 8805*** depend on shared libraries, but programs linked with such libtool 8806*** libraries will work regardless of this problem. Nevertheless, you 8807*** may want to report the problem to your system manager and/or to 8808*** bug-libtool@gnu.org 8809 8810_LT_EOF 8811 fi ;; 8812 esac 8813 fi 8814 break 8815 fi 8816 done 8817 IFS=$lt_save_ifs 8818 MAGIC_CMD=$lt_save_MAGIC_CMD 8819 ;; 8820esac 8821fi 8822 8823MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8824if test -n "$MAGIC_CMD"; then 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8826$as_echo "$MAGIC_CMD" >&6; } 8827else 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8829$as_echo "no" >&6; } 8830fi 8831 8832 8833 8834 8835 8836if test -z "$lt_cv_path_MAGIC_CMD"; then 8837 if test -n "$ac_tool_prefix"; then 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8839$as_echo_n "checking for file... " >&6; } 8840if ${lt_cv_path_MAGIC_CMD+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842else 8843 case $MAGIC_CMD in 8844[\\/*] | ?:[\\/]*) 8845 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8846 ;; 8847*) 8848 lt_save_MAGIC_CMD=$MAGIC_CMD 8849 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8851 for ac_dir in $ac_dummy; do 8852 IFS=$lt_save_ifs 8853 test -z "$ac_dir" && ac_dir=. 8854 if test -f "$ac_dir/file"; then 8855 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8856 if test -n "$file_magic_test_file"; then 8857 case $deplibs_check_method in 8858 "file_magic "*) 8859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8860 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8862 $EGREP "$file_magic_regex" > /dev/null; then 8863 : 8864 else 8865 cat <<_LT_EOF 1>&2 8866 8867*** Warning: the command libtool uses to detect shared libraries, 8868*** $file_magic_cmd, produces output that libtool cannot recognize. 8869*** The result is that libtool may fail to recognize shared libraries 8870*** as such. This will affect the creation of libtool libraries that 8871*** depend on shared libraries, but programs linked with such libtool 8872*** libraries will work regardless of this problem. Nevertheless, you 8873*** may want to report the problem to your system manager and/or to 8874*** bug-libtool@gnu.org 8875 8876_LT_EOF 8877 fi ;; 8878 esac 8879 fi 8880 break 8881 fi 8882 done 8883 IFS=$lt_save_ifs 8884 MAGIC_CMD=$lt_save_MAGIC_CMD 8885 ;; 8886esac 8887fi 8888 8889MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8890if test -n "$MAGIC_CMD"; then 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8892$as_echo "$MAGIC_CMD" >&6; } 8893else 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8895$as_echo "no" >&6; } 8896fi 8897 8898 8899 else 8900 MAGIC_CMD=: 8901 fi 8902fi 8903 8904 fi 8905 ;; 8906esac 8907 8908# Use C for the default configuration in the libtool script 8909 8910lt_save_CC=$CC 8911ac_ext=c 8912ac_cpp='$CPP $CPPFLAGS' 8913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8915ac_compiler_gnu=$ac_cv_c_compiler_gnu 8916 8917 8918# Source file extension for C test sources. 8919ac_ext=c 8920 8921# Object file extension for compiled C test sources. 8922objext=o 8923objext=$objext 8924 8925# Code to be used in simple compile tests 8926lt_simple_compile_test_code="int some_variable = 0;" 8927 8928# Code to be used in simple link tests 8929lt_simple_link_test_code='int main(){return(0);}' 8930 8931 8932 8933 8934 8935 8936 8937# If no C compiler was specified, use CC. 8938LTCC=${LTCC-"$CC"} 8939 8940# If no C compiler flags were specified, use CFLAGS. 8941LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8942 8943# Allow CC to be a program name with arguments. 8944compiler=$CC 8945 8946# Save the default compiler, since it gets overwritten when the other 8947# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8948compiler_DEFAULT=$CC 8949 8950# save warnings/boilerplate of simple test code 8951ac_outfile=conftest.$ac_objext 8952echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8953eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8954_lt_compiler_boilerplate=`cat conftest.err` 8955$RM conftest* 8956 8957ac_outfile=conftest.$ac_objext 8958echo "$lt_simple_link_test_code" >conftest.$ac_ext 8959eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8960_lt_linker_boilerplate=`cat conftest.err` 8961$RM -r conftest* 8962 8963 8964## CAVEAT EMPTOR: 8965## There is no encapsulation within the following macros, do not change 8966## the running order or otherwise move them around unless you know exactly 8967## what you are doing... 8968if test -n "$compiler"; then 8969 8970lt_prog_compiler_no_builtin_flag= 8971 8972if test yes = "$GCC"; then 8973 case $cc_basename in 8974 nvcc*) 8975 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8976 *) 8977 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8978 esac 8979 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8981$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8982if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 lt_cv_prog_compiler_rtti_exceptions=no 8986 ac_outfile=conftest.$ac_objext 8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8988 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8989 # Insert the option either (1) after the last *FLAGS variable, or 8990 # (2) before a word containing "conftest.", or (3) at the end. 8991 # Note that $ac_compile itself does not contain backslashes and begins 8992 # with a dollar sign (not a hyphen), so the echo should work correctly. 8993 # The option is referenced via a variable to avoid confusing sed. 8994 lt_compile=`echo "$ac_compile" | $SED \ 8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8997 -e 's:$: $lt_compiler_flag:'` 8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8999 (eval "$lt_compile" 2>conftest.err) 9000 ac_status=$? 9001 cat conftest.err >&5 9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 if (exit $ac_status) && test -s "$ac_outfile"; then 9004 # The compiler can only warn and ignore the option if not recognized 9005 # So say no if there are warnings other than the usual output. 9006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9008 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9009 lt_cv_prog_compiler_rtti_exceptions=yes 9010 fi 9011 fi 9012 $RM conftest* 9013 9014fi 9015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9016$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9017 9018if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9019 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9020else 9021 : 9022fi 9023 9024fi 9025 9026 9027 9028 9029 9030 9031 lt_prog_compiler_wl= 9032lt_prog_compiler_pic= 9033lt_prog_compiler_static= 9034 9035 9036 if test yes = "$GCC"; then 9037 lt_prog_compiler_wl='-Wl,' 9038 lt_prog_compiler_static='-static' 9039 9040 case $host_os in 9041 aix*) 9042 # All AIX code is PIC. 9043 if test ia64 = "$host_cpu"; then 9044 # AIX 5 now supports IA64 processor 9045 lt_prog_compiler_static='-Bstatic' 9046 fi 9047 lt_prog_compiler_pic='-fPIC' 9048 ;; 9049 9050 amigaos*) 9051 case $host_cpu in 9052 powerpc) 9053 # see comment about AmigaOS4 .so support 9054 lt_prog_compiler_pic='-fPIC' 9055 ;; 9056 m68k) 9057 # FIXME: we need at least 68020 code to build shared libraries, but 9058 # adding the '-m68020' flag to GCC prevents building anything better, 9059 # like '-m68040'. 9060 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9061 ;; 9062 esac 9063 ;; 9064 9065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9066 # PIC is the default for these OSes. 9067 ;; 9068 9069 mingw* | cygwin* | pw32* | os2* | cegcc*) 9070 # This hack is so that the source file can tell whether it is being 9071 # built for inclusion in a dll (and should export symbols for example). 9072 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9073 # (--disable-auto-import) libraries 9074 lt_prog_compiler_pic='-DDLL_EXPORT' 9075 case $host_os in 9076 os2*) 9077 lt_prog_compiler_static='$wl-static' 9078 ;; 9079 esac 9080 ;; 9081 9082 darwin* | rhapsody*) 9083 # PIC is the default on this platform 9084 # Common symbols not allowed in MH_DYLIB files 9085 lt_prog_compiler_pic='-fno-common' 9086 ;; 9087 9088 haiku*) 9089 # PIC is the default for Haiku. 9090 # The "-static" flag exists, but is broken. 9091 lt_prog_compiler_static= 9092 ;; 9093 9094 hpux*) 9095 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9096 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9097 # sets the default TLS model and affects inlining. 9098 case $host_cpu in 9099 hppa*64*) 9100 # +Z the default 9101 ;; 9102 *) 9103 lt_prog_compiler_pic='-fPIC' 9104 ;; 9105 esac 9106 ;; 9107 9108 interix[3-9]*) 9109 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9110 # Instead, we relocate shared libraries at runtime. 9111 ;; 9112 9113 msdosdjgpp*) 9114 # Just because we use GCC doesn't mean we suddenly get shared libraries 9115 # on systems that don't support them. 9116 lt_prog_compiler_can_build_shared=no 9117 enable_shared=no 9118 ;; 9119 9120 *nto* | *qnx*) 9121 # QNX uses GNU C++, but need to define -shared option too, otherwise 9122 # it will coredump. 9123 lt_prog_compiler_pic='-fPIC -shared' 9124 ;; 9125 9126 sysv4*MP*) 9127 if test -d /usr/nec; then 9128 lt_prog_compiler_pic=-Kconform_pic 9129 fi 9130 ;; 9131 9132 *) 9133 lt_prog_compiler_pic='-fPIC' 9134 ;; 9135 esac 9136 9137 case $cc_basename in 9138 nvcc*) # Cuda Compiler Driver 2.2 9139 lt_prog_compiler_wl='-Xlinker ' 9140 if test -n "$lt_prog_compiler_pic"; then 9141 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9142 fi 9143 ;; 9144 esac 9145 else 9146 # PORTME Check for flag to pass linker flags through the system compiler. 9147 case $host_os in 9148 aix*) 9149 lt_prog_compiler_wl='-Wl,' 9150 if test ia64 = "$host_cpu"; then 9151 # AIX 5 now supports IA64 processor 9152 lt_prog_compiler_static='-Bstatic' 9153 else 9154 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9155 fi 9156 ;; 9157 9158 darwin* | rhapsody*) 9159 # PIC is the default on this platform 9160 # Common symbols not allowed in MH_DYLIB files 9161 lt_prog_compiler_pic='-fno-common' 9162 case $cc_basename in 9163 nagfor*) 9164 # NAG Fortran compiler 9165 lt_prog_compiler_wl='-Wl,-Wl,,' 9166 lt_prog_compiler_pic='-PIC' 9167 lt_prog_compiler_static='-Bstatic' 9168 ;; 9169 esac 9170 ;; 9171 9172 mingw* | cygwin* | pw32* | os2* | cegcc*) 9173 # This hack is so that the source file can tell whether it is being 9174 # built for inclusion in a dll (and should export symbols for example). 9175 lt_prog_compiler_pic='-DDLL_EXPORT' 9176 case $host_os in 9177 os2*) 9178 lt_prog_compiler_static='$wl-static' 9179 ;; 9180 esac 9181 ;; 9182 9183 hpux9* | hpux10* | hpux11*) 9184 lt_prog_compiler_wl='-Wl,' 9185 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9186 # not for PA HP-UX. 9187 case $host_cpu in 9188 hppa*64*|ia64*) 9189 # +Z the default 9190 ;; 9191 *) 9192 lt_prog_compiler_pic='+Z' 9193 ;; 9194 esac 9195 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9196 lt_prog_compiler_static='$wl-a ${wl}archive' 9197 ;; 9198 9199 irix5* | irix6* | nonstopux*) 9200 lt_prog_compiler_wl='-Wl,' 9201 # PIC (with -KPIC) is the default. 9202 lt_prog_compiler_static='-non_shared' 9203 ;; 9204 9205 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9206 case $cc_basename in 9207 # old Intel for x86_64, which still supported -KPIC. 9208 ecc*) 9209 lt_prog_compiler_wl='-Wl,' 9210 lt_prog_compiler_pic='-KPIC' 9211 lt_prog_compiler_static='-static' 9212 ;; 9213 # icc used to be incompatible with GCC. 9214 # ICC 10 doesn't accept -KPIC any more. 9215 icc* | ifort*) 9216 lt_prog_compiler_wl='-Wl,' 9217 lt_prog_compiler_pic='-fPIC' 9218 lt_prog_compiler_static='-static' 9219 ;; 9220 # Lahey Fortran 8.1. 9221 lf95*) 9222 lt_prog_compiler_wl='-Wl,' 9223 lt_prog_compiler_pic='--shared' 9224 lt_prog_compiler_static='--static' 9225 ;; 9226 nagfor*) 9227 # NAG Fortran compiler 9228 lt_prog_compiler_wl='-Wl,-Wl,,' 9229 lt_prog_compiler_pic='-PIC' 9230 lt_prog_compiler_static='-Bstatic' 9231 ;; 9232 tcc*) 9233 # Fabrice Bellard et al's Tiny C Compiler 9234 lt_prog_compiler_wl='-Wl,' 9235 lt_prog_compiler_pic='-fPIC' 9236 lt_prog_compiler_static='-static' 9237 ;; 9238 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9239 # Portland Group compilers (*not* the Pentium gcc compiler, 9240 # which looks to be a dead project) 9241 lt_prog_compiler_wl='-Wl,' 9242 lt_prog_compiler_pic='-fpic' 9243 lt_prog_compiler_static='-Bstatic' 9244 ;; 9245 ccc*) 9246 lt_prog_compiler_wl='-Wl,' 9247 # All Alpha code is PIC. 9248 lt_prog_compiler_static='-non_shared' 9249 ;; 9250 xl* | bgxl* | bgf* | mpixl*) 9251 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9252 lt_prog_compiler_wl='-Wl,' 9253 lt_prog_compiler_pic='-qpic' 9254 lt_prog_compiler_static='-qstaticlink' 9255 ;; 9256 *) 9257 case `$CC -V 2>&1 | sed 5q` in 9258 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9259 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9260 lt_prog_compiler_pic='-KPIC' 9261 lt_prog_compiler_static='-Bstatic' 9262 lt_prog_compiler_wl='' 9263 ;; 9264 *Sun\ F* | *Sun*Fortran*) 9265 lt_prog_compiler_pic='-KPIC' 9266 lt_prog_compiler_static='-Bstatic' 9267 lt_prog_compiler_wl='-Qoption ld ' 9268 ;; 9269 *Sun\ C*) 9270 # Sun C 5.9 9271 lt_prog_compiler_pic='-KPIC' 9272 lt_prog_compiler_static='-Bstatic' 9273 lt_prog_compiler_wl='-Wl,' 9274 ;; 9275 *Intel*\ [CF]*Compiler*) 9276 lt_prog_compiler_wl='-Wl,' 9277 lt_prog_compiler_pic='-fPIC' 9278 lt_prog_compiler_static='-static' 9279 ;; 9280 *Portland\ Group*) 9281 lt_prog_compiler_wl='-Wl,' 9282 lt_prog_compiler_pic='-fpic' 9283 lt_prog_compiler_static='-Bstatic' 9284 ;; 9285 esac 9286 ;; 9287 esac 9288 ;; 9289 9290 newsos6) 9291 lt_prog_compiler_pic='-KPIC' 9292 lt_prog_compiler_static='-Bstatic' 9293 ;; 9294 9295 *nto* | *qnx*) 9296 # QNX uses GNU C++, but need to define -shared option too, otherwise 9297 # it will coredump. 9298 lt_prog_compiler_pic='-fPIC -shared' 9299 ;; 9300 9301 osf3* | osf4* | osf5*) 9302 lt_prog_compiler_wl='-Wl,' 9303 # All OSF/1 code is PIC. 9304 lt_prog_compiler_static='-non_shared' 9305 ;; 9306 9307 rdos*) 9308 lt_prog_compiler_static='-non_shared' 9309 ;; 9310 9311 solaris*) 9312 lt_prog_compiler_pic='-KPIC' 9313 lt_prog_compiler_static='-Bstatic' 9314 case $cc_basename in 9315 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9316 lt_prog_compiler_wl='-Qoption ld ';; 9317 *) 9318 lt_prog_compiler_wl='-Wl,';; 9319 esac 9320 ;; 9321 9322 sunos4*) 9323 lt_prog_compiler_wl='-Qoption ld ' 9324 lt_prog_compiler_pic='-PIC' 9325 lt_prog_compiler_static='-Bstatic' 9326 ;; 9327 9328 sysv4 | sysv4.2uw2* | sysv4.3*) 9329 lt_prog_compiler_wl='-Wl,' 9330 lt_prog_compiler_pic='-KPIC' 9331 lt_prog_compiler_static='-Bstatic' 9332 ;; 9333 9334 sysv4*MP*) 9335 if test -d /usr/nec; then 9336 lt_prog_compiler_pic='-Kconform_pic' 9337 lt_prog_compiler_static='-Bstatic' 9338 fi 9339 ;; 9340 9341 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9342 lt_prog_compiler_wl='-Wl,' 9343 lt_prog_compiler_pic='-KPIC' 9344 lt_prog_compiler_static='-Bstatic' 9345 ;; 9346 9347 unicos*) 9348 lt_prog_compiler_wl='-Wl,' 9349 lt_prog_compiler_can_build_shared=no 9350 ;; 9351 9352 uts4*) 9353 lt_prog_compiler_pic='-pic' 9354 lt_prog_compiler_static='-Bstatic' 9355 ;; 9356 9357 *) 9358 lt_prog_compiler_can_build_shared=no 9359 ;; 9360 esac 9361 fi 9362 9363case $host_os in 9364 # For platforms that do not support PIC, -DPIC is meaningless: 9365 *djgpp*) 9366 lt_prog_compiler_pic= 9367 ;; 9368 *) 9369 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9370 ;; 9371esac 9372 9373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9374$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9375if ${lt_cv_prog_compiler_pic+:} false; then : 9376 $as_echo_n "(cached) " >&6 9377else 9378 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9379fi 9380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9381$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9382lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9383 9384# 9385# Check to make sure the PIC flag actually works. 9386# 9387if test -n "$lt_prog_compiler_pic"; then 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9389$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9390if ${lt_cv_prog_compiler_pic_works+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 lt_cv_prog_compiler_pic_works=no 9394 ac_outfile=conftest.$ac_objext 9395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9396 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9397 # Insert the option either (1) after the last *FLAGS variable, or 9398 # (2) before a word containing "conftest.", or (3) at the end. 9399 # Note that $ac_compile itself does not contain backslashes and begins 9400 # with a dollar sign (not a hyphen), so the echo should work correctly. 9401 # The option is referenced via a variable to avoid confusing sed. 9402 lt_compile=`echo "$ac_compile" | $SED \ 9403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9405 -e 's:$: $lt_compiler_flag:'` 9406 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9407 (eval "$lt_compile" 2>conftest.err) 9408 ac_status=$? 9409 cat conftest.err >&5 9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9411 if (exit $ac_status) && test -s "$ac_outfile"; then 9412 # The compiler can only warn and ignore the option if not recognized 9413 # So say no if there are warnings other than the usual output. 9414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9417 lt_cv_prog_compiler_pic_works=yes 9418 fi 9419 fi 9420 $RM conftest* 9421 9422fi 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9424$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9425 9426if test yes = "$lt_cv_prog_compiler_pic_works"; then 9427 case $lt_prog_compiler_pic in 9428 "" | " "*) ;; 9429 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9430 esac 9431else 9432 lt_prog_compiler_pic= 9433 lt_prog_compiler_can_build_shared=no 9434fi 9435 9436fi 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448# 9449# Check to make sure the static flag actually works. 9450# 9451wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9453$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9454if ${lt_cv_prog_compiler_static_works+:} false; then : 9455 $as_echo_n "(cached) " >&6 9456else 9457 lt_cv_prog_compiler_static_works=no 9458 save_LDFLAGS=$LDFLAGS 9459 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9460 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9462 # The linker can only warn and ignore the option if not recognized 9463 # So say no if there are warnings 9464 if test -s conftest.err; then 9465 # Append any errors to the config.log. 9466 cat conftest.err 1>&5 9467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9469 if diff conftest.exp conftest.er2 >/dev/null; then 9470 lt_cv_prog_compiler_static_works=yes 9471 fi 9472 else 9473 lt_cv_prog_compiler_static_works=yes 9474 fi 9475 fi 9476 $RM -r conftest* 9477 LDFLAGS=$save_LDFLAGS 9478 9479fi 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9481$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9482 9483if test yes = "$lt_cv_prog_compiler_static_works"; then 9484 : 9485else 9486 lt_prog_compiler_static= 9487fi 9488 9489 9490 9491 9492 9493 9494 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9496$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9497if ${lt_cv_prog_compiler_c_o+:} false; then : 9498 $as_echo_n "(cached) " >&6 9499else 9500 lt_cv_prog_compiler_c_o=no 9501 $RM -r conftest 2>/dev/null 9502 mkdir conftest 9503 cd conftest 9504 mkdir out 9505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9506 9507 lt_compiler_flag="-o out/conftest2.$ac_objext" 9508 # Insert the option either (1) after the last *FLAGS variable, or 9509 # (2) before a word containing "conftest.", or (3) at the end. 9510 # Note that $ac_compile itself does not contain backslashes and begins 9511 # with a dollar sign (not a hyphen), so the echo should work correctly. 9512 lt_compile=`echo "$ac_compile" | $SED \ 9513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9515 -e 's:$: $lt_compiler_flag:'` 9516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9517 (eval "$lt_compile" 2>out/conftest.err) 9518 ac_status=$? 9519 cat out/conftest.err >&5 9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9521 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9522 then 9523 # The compiler can only warn and ignore the option if not recognized 9524 # So say no if there are warnings 9525 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9526 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9527 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9528 lt_cv_prog_compiler_c_o=yes 9529 fi 9530 fi 9531 chmod u+w . 2>&5 9532 $RM conftest* 9533 # SGI C++ compiler will create directory out/ii_files/ for 9534 # template instantiation 9535 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9536 $RM out/* && rmdir out 9537 cd .. 9538 $RM -r conftest 9539 $RM conftest* 9540 9541fi 9542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9543$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9544 9545 9546 9547 9548 9549 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9551$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9552if ${lt_cv_prog_compiler_c_o+:} false; then : 9553 $as_echo_n "(cached) " >&6 9554else 9555 lt_cv_prog_compiler_c_o=no 9556 $RM -r conftest 2>/dev/null 9557 mkdir conftest 9558 cd conftest 9559 mkdir out 9560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9561 9562 lt_compiler_flag="-o out/conftest2.$ac_objext" 9563 # Insert the option either (1) after the last *FLAGS variable, or 9564 # (2) before a word containing "conftest.", or (3) at the end. 9565 # Note that $ac_compile itself does not contain backslashes and begins 9566 # with a dollar sign (not a hyphen), so the echo should work correctly. 9567 lt_compile=`echo "$ac_compile" | $SED \ 9568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9570 -e 's:$: $lt_compiler_flag:'` 9571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9572 (eval "$lt_compile" 2>out/conftest.err) 9573 ac_status=$? 9574 cat out/conftest.err >&5 9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9576 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9577 then 9578 # The compiler can only warn and ignore the option if not recognized 9579 # So say no if there are warnings 9580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9581 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9582 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9583 lt_cv_prog_compiler_c_o=yes 9584 fi 9585 fi 9586 chmod u+w . 2>&5 9587 $RM conftest* 9588 # SGI C++ compiler will create directory out/ii_files/ for 9589 # template instantiation 9590 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9591 $RM out/* && rmdir out 9592 cd .. 9593 $RM -r conftest 9594 $RM conftest* 9595 9596fi 9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9598$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9599 9600 9601 9602 9603hard_links=nottested 9604if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9605 # do not overwrite the value of need_locks provided by the user 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9607$as_echo_n "checking if we can lock with hard links... " >&6; } 9608 hard_links=yes 9609 $RM conftest* 9610 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9611 touch conftest.a 9612 ln conftest.a conftest.b 2>&5 || hard_links=no 9613 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9615$as_echo "$hard_links" >&6; } 9616 if test no = "$hard_links"; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9618$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9619 need_locks=warn 9620 fi 9621else 9622 need_locks=no 9623fi 9624 9625 9626 9627 9628 9629 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9631$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9632 9633 runpath_var= 9634 allow_undefined_flag= 9635 always_export_symbols=no 9636 archive_cmds= 9637 archive_expsym_cmds= 9638 compiler_needs_object=no 9639 enable_shared_with_static_runtimes=no 9640 export_dynamic_flag_spec= 9641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9642 hardcode_automatic=no 9643 hardcode_direct=no 9644 hardcode_direct_absolute=no 9645 hardcode_libdir_flag_spec= 9646 hardcode_libdir_separator= 9647 hardcode_minus_L=no 9648 hardcode_shlibpath_var=unsupported 9649 inherit_rpath=no 9650 link_all_deplibs=unknown 9651 module_cmds= 9652 module_expsym_cmds= 9653 old_archive_from_new_cmds= 9654 old_archive_from_expsyms_cmds= 9655 thread_safe_flag_spec= 9656 whole_archive_flag_spec= 9657 # include_expsyms should be a list of space-separated symbols to be *always* 9658 # included in the symbol list 9659 include_expsyms= 9660 # exclude_expsyms can be an extended regexp of symbols to exclude 9661 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9662 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9663 # as well as any symbol that contains 'd'. 9664 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9666 # platforms (ab)use it in PIC code, but their linkers get confused if 9667 # the symbol is explicitly referenced. Since portable code cannot 9668 # rely on this symbol name, it's probably fine to never include it in 9669 # preloaded symbol tables. 9670 # Exclude shared library initialization/finalization symbols. 9671 extract_expsyms_cmds= 9672 9673 case $host_os in 9674 cygwin* | mingw* | pw32* | cegcc*) 9675 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9676 # When not using gcc, we currently assume that we are using 9677 # Microsoft Visual C++. 9678 if test yes != "$GCC"; then 9679 with_gnu_ld=no 9680 fi 9681 ;; 9682 interix*) 9683 # we just hope/assume this is gcc and not c89 (= MSVC++) 9684 with_gnu_ld=yes 9685 ;; 9686 openbsd* | bitrig*) 9687 with_gnu_ld=no 9688 ;; 9689 linux* | k*bsd*-gnu | gnu*) 9690 link_all_deplibs=no 9691 ;; 9692 esac 9693 9694 ld_shlibs=yes 9695 9696 # On some targets, GNU ld is compatible enough with the native linker 9697 # that we're better off using the native interface for both. 9698 lt_use_gnu_ld_interface=no 9699 if test yes = "$with_gnu_ld"; then 9700 case $host_os in 9701 aix*) 9702 # The AIX port of GNU ld has always aspired to compatibility 9703 # with the native linker. However, as the warning in the GNU ld 9704 # block says, versions before 2.19.5* couldn't really create working 9705 # shared libraries, regardless of the interface used. 9706 case `$LD -v 2>&1` in 9707 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9708 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9709 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9710 *) 9711 lt_use_gnu_ld_interface=yes 9712 ;; 9713 esac 9714 ;; 9715 *) 9716 lt_use_gnu_ld_interface=yes 9717 ;; 9718 esac 9719 fi 9720 9721 if test yes = "$lt_use_gnu_ld_interface"; then 9722 # If archive_cmds runs LD, not CC, wlarc should be empty 9723 wlarc='$wl' 9724 9725 # Set some defaults for GNU ld with shared library support. These 9726 # are reset later if shared libraries are not supported. Putting them 9727 # here allows them to be overridden if necessary. 9728 runpath_var=LD_RUN_PATH 9729 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9730 export_dynamic_flag_spec='$wl--export-dynamic' 9731 # ancient GNU ld didn't support --whole-archive et. al. 9732 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9733 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9734 else 9735 whole_archive_flag_spec= 9736 fi 9737 supports_anon_versioning=no 9738 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9739 *GNU\ gold*) supports_anon_versioning=yes ;; 9740 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9741 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9742 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9743 *\ 2.11.*) ;; # other 2.11 versions 9744 *) supports_anon_versioning=yes ;; 9745 esac 9746 9747 # See if GNU ld supports shared libraries. 9748 case $host_os in 9749 aix[3-9]*) 9750 # On AIX/PPC, the GNU linker is very broken 9751 if test ia64 != "$host_cpu"; then 9752 ld_shlibs=no 9753 cat <<_LT_EOF 1>&2 9754 9755*** Warning: the GNU linker, at least up to release 2.19, is reported 9756*** to be unable to reliably create shared libraries on AIX. 9757*** Therefore, libtool is disabling shared libraries support. If you 9758*** really care for shared libraries, you may want to install binutils 9759*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9760*** You will then need to restart the configuration process. 9761 9762_LT_EOF 9763 fi 9764 ;; 9765 9766 amigaos*) 9767 case $host_cpu in 9768 powerpc) 9769 # see comment about AmigaOS4 .so support 9770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9771 archive_expsym_cmds='' 9772 ;; 9773 m68k) 9774 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)' 9775 hardcode_libdir_flag_spec='-L$libdir' 9776 hardcode_minus_L=yes 9777 ;; 9778 esac 9779 ;; 9780 9781 beos*) 9782 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9783 allow_undefined_flag=unsupported 9784 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9785 # support --undefined. This deserves some investigation. FIXME 9786 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9787 else 9788 ld_shlibs=no 9789 fi 9790 ;; 9791 9792 cygwin* | mingw* | pw32* | cegcc*) 9793 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9794 # as there is no search path for DLLs. 9795 hardcode_libdir_flag_spec='-L$libdir' 9796 export_dynamic_flag_spec='$wl--export-all-symbols' 9797 allow_undefined_flag=unsupported 9798 always_export_symbols=no 9799 enable_shared_with_static_runtimes=yes 9800 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' 9801 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9802 9803 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9805 # If the export-symbols file already is a .def file, use it as 9806 # is; otherwise, prepend EXPORTS... 9807 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9808 cp $export_symbols $output_objdir/$soname.def; 9809 else 9810 echo EXPORTS > $output_objdir/$soname.def; 9811 cat $export_symbols >> $output_objdir/$soname.def; 9812 fi~ 9813 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9814 else 9815 ld_shlibs=no 9816 fi 9817 ;; 9818 9819 haiku*) 9820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9821 link_all_deplibs=yes 9822 ;; 9823 9824 os2*) 9825 hardcode_libdir_flag_spec='-L$libdir' 9826 hardcode_minus_L=yes 9827 allow_undefined_flag=unsupported 9828 shrext_cmds=.dll 9829 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9830 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9831 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9832 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9833 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9834 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9835 emximp -o $lib $output_objdir/$libname.def' 9836 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9837 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9838 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9839 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9840 prefix_cmds="$SED"~ 9841 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9842 prefix_cmds="$prefix_cmds -e 1d"; 9843 fi~ 9844 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9845 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9846 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9847 emximp -o $lib $output_objdir/$libname.def' 9848 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9849 enable_shared_with_static_runtimes=yes 9850 ;; 9851 9852 interix[3-9]*) 9853 hardcode_direct=no 9854 hardcode_shlibpath_var=no 9855 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9856 export_dynamic_flag_spec='$wl-E' 9857 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9858 # Instead, shared libraries are loaded at an image base (0x10000000 by 9859 # default) and relocated if they conflict, which is a slow very memory 9860 # consuming and fragmenting process. To avoid this, we pick a random, 9861 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9862 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9863 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9864 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' 9865 ;; 9866 9867 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9868 tmp_diet=no 9869 if test linux-dietlibc = "$host_os"; then 9870 case $cc_basename in 9871 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9872 esac 9873 fi 9874 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9875 && test no = "$tmp_diet" 9876 then 9877 tmp_addflag=' $pic_flag' 9878 tmp_sharedflag='-shared' 9879 case $cc_basename,$host_cpu in 9880 pgcc*) # Portland Group C compiler 9881 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' 9882 tmp_addflag=' $pic_flag' 9883 ;; 9884 pgf77* | pgf90* | pgf95* | pgfortran*) 9885 # Portland Group f77 and f90 compilers 9886 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' 9887 tmp_addflag=' $pic_flag -Mnomain' ;; 9888 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9889 tmp_addflag=' -i_dynamic' ;; 9890 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9891 tmp_addflag=' -i_dynamic -nofor_main' ;; 9892 ifc* | ifort*) # Intel Fortran compiler 9893 tmp_addflag=' -nofor_main' ;; 9894 lf95*) # Lahey Fortran 8.1 9895 whole_archive_flag_spec= 9896 tmp_sharedflag='--shared' ;; 9897 nagfor*) # NAGFOR 5.3 9898 tmp_sharedflag='-Wl,-shared' ;; 9899 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9900 tmp_sharedflag='-qmkshrobj' 9901 tmp_addflag= ;; 9902 nvcc*) # Cuda Compiler Driver 2.2 9903 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' 9904 compiler_needs_object=yes 9905 ;; 9906 esac 9907 case `$CC -V 2>&1 | sed 5q` in 9908 *Sun\ C*) # Sun C 5.9 9909 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' 9910 compiler_needs_object=yes 9911 tmp_sharedflag='-G' ;; 9912 *Sun\ F*) # Sun Fortran 8.3 9913 tmp_sharedflag='-G' ;; 9914 esac 9915 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9916 9917 if test yes = "$supports_anon_versioning"; then 9918 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9920 echo "local: *; };" >> $output_objdir/$libname.ver~ 9921 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9922 fi 9923 9924 case $cc_basename in 9925 tcc*) 9926 export_dynamic_flag_spec='-rdynamic' 9927 ;; 9928 xlf* | bgf* | bgxlf* | mpixlf*) 9929 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9930 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9931 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9932 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9933 if test yes = "$supports_anon_versioning"; then 9934 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9935 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9936 echo "local: *; };" >> $output_objdir/$libname.ver~ 9937 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9938 fi 9939 ;; 9940 esac 9941 else 9942 ld_shlibs=no 9943 fi 9944 ;; 9945 9946 netbsd* | netbsdelf*-gnu) 9947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9948 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9949 wlarc= 9950 else 9951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9953 fi 9954 ;; 9955 9956 solaris*) 9957 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9958 ld_shlibs=no 9959 cat <<_LT_EOF 1>&2 9960 9961*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9962*** create shared libraries on Solaris systems. Therefore, libtool 9963*** is disabling shared libraries support. We urge you to upgrade GNU 9964*** binutils to release 2.9.1 or newer. Another option is to modify 9965*** your PATH or compiler configuration so that the native linker is 9966*** used, and then restart. 9967 9968_LT_EOF 9969 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9970 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9971 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9972 else 9973 ld_shlibs=no 9974 fi 9975 ;; 9976 9977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9978 case `$LD -v 2>&1` in 9979 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9980 ld_shlibs=no 9981 cat <<_LT_EOF 1>&2 9982 9983*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9984*** reliably create shared libraries on SCO systems. Therefore, libtool 9985*** is disabling shared libraries support. We urge you to upgrade GNU 9986*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9987*** your PATH or compiler configuration so that the native linker is 9988*** used, and then restart. 9989 9990_LT_EOF 9991 ;; 9992 *) 9993 # For security reasons, it is highly recommended that you always 9994 # use absolute paths for naming shared libraries, and exclude the 9995 # DT_RUNPATH tag from executables and libraries. But doing so 9996 # requires that you compile everything twice, which is a pain. 9997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10001 else 10002 ld_shlibs=no 10003 fi 10004 ;; 10005 esac 10006 ;; 10007 10008 sunos4*) 10009 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10010 wlarc= 10011 hardcode_direct=yes 10012 hardcode_shlibpath_var=no 10013 ;; 10014 10015 *) 10016 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10018 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10019 else 10020 ld_shlibs=no 10021 fi 10022 ;; 10023 esac 10024 10025 if test no = "$ld_shlibs"; then 10026 runpath_var= 10027 hardcode_libdir_flag_spec= 10028 export_dynamic_flag_spec= 10029 whole_archive_flag_spec= 10030 fi 10031 else 10032 # PORTME fill in a description of your system's linker (not GNU ld) 10033 case $host_os in 10034 aix3*) 10035 allow_undefined_flag=unsupported 10036 always_export_symbols=yes 10037 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' 10038 # Note: this linker hardcodes the directories in LIBPATH if there 10039 # are no directories specified by -L. 10040 hardcode_minus_L=yes 10041 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10042 # Neither direct hardcoding nor static linking is supported with a 10043 # broken collect2. 10044 hardcode_direct=unsupported 10045 fi 10046 ;; 10047 10048 aix[4-9]*) 10049 if test ia64 = "$host_cpu"; then 10050 # On IA64, the linker does run time linking by default, so we don't 10051 # have to do anything special. 10052 aix_use_runtimelinking=no 10053 exp_sym_flag='-Bexport' 10054 no_entry_flag= 10055 else 10056 # If we're using GNU nm, then we don't want the "-C" option. 10057 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10058 # Without the "-l" option, or with the "-B" option, AIX nm treats 10059 # weak defined symbols like other global defined symbols, whereas 10060 # GNU nm marks them as "W". 10061 # While the 'weak' keyword is ignored in the Export File, we need 10062 # it in the Import File for the 'aix-soname' feature, so we have 10063 # to replace the "-B" option with "-P" for AIX nm. 10064 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10065 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' 10066 else 10067 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' 10068 fi 10069 aix_use_runtimelinking=no 10070 10071 # Test if we are trying to use run time linking or normal 10072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10073 # have runtime linking enabled, and use it for executables. 10074 # For shared libraries, we enable/disable runtime linking 10075 # depending on the kind of the shared library created - 10076 # when "with_aix_soname,aix_use_runtimelinking" is: 10077 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10078 # "aix,yes" lib.so shared, rtl:yes, for executables 10079 # lib.a static archive 10080 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10081 # lib.a(lib.so.V) shared, rtl:no, for executables 10082 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10083 # lib.a(lib.so.V) shared, rtl:no 10084 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10085 # lib.a static archive 10086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10087 for ld_flag in $LDFLAGS; do 10088 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10089 aix_use_runtimelinking=yes 10090 break 10091 fi 10092 done 10093 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10094 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10095 # so we don't have lib.a shared libs to link our executables. 10096 # We have to force runtime linking in this case. 10097 aix_use_runtimelinking=yes 10098 LDFLAGS="$LDFLAGS -Wl,-brtl" 10099 fi 10100 ;; 10101 esac 10102 10103 exp_sym_flag='-bexport' 10104 no_entry_flag='-bnoentry' 10105 fi 10106 10107 # When large executables or shared objects are built, AIX ld can 10108 # have problems creating the table of contents. If linking a library 10109 # or program results in "error TOC overflow" add -mminimal-toc to 10110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10112 10113 archive_cmds='' 10114 hardcode_direct=yes 10115 hardcode_direct_absolute=yes 10116 hardcode_libdir_separator=':' 10117 link_all_deplibs=yes 10118 file_list_spec='$wl-f,' 10119 case $with_aix_soname,$aix_use_runtimelinking in 10120 aix,*) ;; # traditional, no import file 10121 svr4,* | *,yes) # use import file 10122 # The Import File defines what to hardcode. 10123 hardcode_direct=no 10124 hardcode_direct_absolute=no 10125 ;; 10126 esac 10127 10128 if test yes = "$GCC"; then 10129 case $host_os in aix4.[012]|aix4.[012].*) 10130 # We only want to do this on AIX 4.2 and lower, the check 10131 # below for broken collect2 doesn't work under 4.3+ 10132 collect2name=`$CC -print-prog-name=collect2` 10133 if test -f "$collect2name" && 10134 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10135 then 10136 # We have reworked collect2 10137 : 10138 else 10139 # We have old collect2 10140 hardcode_direct=unsupported 10141 # It fails to find uninstalled libraries when the uninstalled 10142 # path is not listed in the libpath. Setting hardcode_minus_L 10143 # to unsupported forces relinking 10144 hardcode_minus_L=yes 10145 hardcode_libdir_flag_spec='-L$libdir' 10146 hardcode_libdir_separator= 10147 fi 10148 ;; 10149 esac 10150 shared_flag='-shared' 10151 if test yes = "$aix_use_runtimelinking"; then 10152 shared_flag="$shared_flag "'$wl-G' 10153 fi 10154 # Need to ensure runtime linking is disabled for the traditional 10155 # shared library, or the linker may eventually find shared libraries 10156 # /with/ Import File - we do not want to mix them. 10157 shared_flag_aix='-shared' 10158 shared_flag_svr4='-shared $wl-G' 10159 else 10160 # not using gcc 10161 if test ia64 = "$host_cpu"; then 10162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10163 # chokes on -Wl,-G. The following line is correct: 10164 shared_flag='-G' 10165 else 10166 if test yes = "$aix_use_runtimelinking"; then 10167 shared_flag='$wl-G' 10168 else 10169 shared_flag='$wl-bM:SRE' 10170 fi 10171 shared_flag_aix='$wl-bM:SRE' 10172 shared_flag_svr4='$wl-G' 10173 fi 10174 fi 10175 10176 export_dynamic_flag_spec='$wl-bexpall' 10177 # It seems that -bexpall does not export symbols beginning with 10178 # underscore (_), so it is better to generate a list of symbols to export. 10179 always_export_symbols=yes 10180 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10181 # Warning - without using the other runtime loading flags (-brtl), 10182 # -berok will link without error, but may produce a broken library. 10183 allow_undefined_flag='-berok' 10184 # Determine the default libpath from the value encoded in an 10185 # empty executable. 10186 if test set = "${lt_cv_aix_libpath+set}"; then 10187 aix_libpath=$lt_cv_aix_libpath 10188else 10189 if ${lt_cv_aix_libpath_+:} false; then : 10190 $as_echo_n "(cached) " >&6 10191else 10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10193/* end confdefs.h. */ 10194 10195int 10196main () 10197{ 10198 10199 ; 10200 return 0; 10201} 10202_ACEOF 10203if ac_fn_c_try_link "$LINENO"; then : 10204 10205 lt_aix_libpath_sed=' 10206 /Import File Strings/,/^$/ { 10207 /^0/ { 10208 s/^0 *\([^ ]*\) *$/\1/ 10209 p 10210 } 10211 }' 10212 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10213 # Check for a 64-bit object if we didn't find anything. 10214 if test -z "$lt_cv_aix_libpath_"; then 10215 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10216 fi 10217fi 10218rm -f core conftest.err conftest.$ac_objext \ 10219 conftest$ac_exeext conftest.$ac_ext 10220 if test -z "$lt_cv_aix_libpath_"; then 10221 lt_cv_aix_libpath_=/usr/lib:/lib 10222 fi 10223 10224fi 10225 10226 aix_libpath=$lt_cv_aix_libpath_ 10227fi 10228 10229 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10230 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 10231 else 10232 if test ia64 = "$host_cpu"; then 10233 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10234 allow_undefined_flag="-z nodefs" 10235 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" 10236 else 10237 # Determine the default libpath from the value encoded in an 10238 # empty executable. 10239 if test set = "${lt_cv_aix_libpath+set}"; then 10240 aix_libpath=$lt_cv_aix_libpath 10241else 10242 if ${lt_cv_aix_libpath_+:} false; then : 10243 $as_echo_n "(cached) " >&6 10244else 10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10246/* end confdefs.h. */ 10247 10248int 10249main () 10250{ 10251 10252 ; 10253 return 0; 10254} 10255_ACEOF 10256if ac_fn_c_try_link "$LINENO"; then : 10257 10258 lt_aix_libpath_sed=' 10259 /Import File Strings/,/^$/ { 10260 /^0/ { 10261 s/^0 *\([^ ]*\) *$/\1/ 10262 p 10263 } 10264 }' 10265 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10266 # Check for a 64-bit object if we didn't find anything. 10267 if test -z "$lt_cv_aix_libpath_"; then 10268 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10269 fi 10270fi 10271rm -f core conftest.err conftest.$ac_objext \ 10272 conftest$ac_exeext conftest.$ac_ext 10273 if test -z "$lt_cv_aix_libpath_"; then 10274 lt_cv_aix_libpath_=/usr/lib:/lib 10275 fi 10276 10277fi 10278 10279 aix_libpath=$lt_cv_aix_libpath_ 10280fi 10281 10282 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10283 # Warning - without using the other run time loading flags, 10284 # -berok will link without error, but may produce a broken library. 10285 no_undefined_flag=' $wl-bernotok' 10286 allow_undefined_flag=' $wl-berok' 10287 if test yes = "$with_gnu_ld"; then 10288 # We only use this code for GNU lds that support --whole-archive. 10289 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10290 else 10291 # Exported symbols can be pulled into shared objects from archives 10292 whole_archive_flag_spec='$convenience' 10293 fi 10294 archive_cmds_need_lc=yes 10295 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10296 # -brtl affects multiple linker settings, -berok does not and is overridden later 10297 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10298 if test svr4 != "$with_aix_soname"; then 10299 # This is similar to how AIX traditionally builds its shared libraries. 10300 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' 10301 fi 10302 if test aix != "$with_aix_soname"; then 10303 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' 10304 else 10305 # used by -dlpreopen to get the symbols 10306 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10307 fi 10308 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10309 fi 10310 fi 10311 ;; 10312 10313 amigaos*) 10314 case $host_cpu in 10315 powerpc) 10316 # see comment about AmigaOS4 .so support 10317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10318 archive_expsym_cmds='' 10319 ;; 10320 m68k) 10321 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)' 10322 hardcode_libdir_flag_spec='-L$libdir' 10323 hardcode_minus_L=yes 10324 ;; 10325 esac 10326 ;; 10327 10328 bsdi[45]*) 10329 export_dynamic_flag_spec=-rdynamic 10330 ;; 10331 10332 cygwin* | mingw* | pw32* | cegcc*) 10333 # When not using gcc, we currently assume that we are using 10334 # Microsoft Visual C++. 10335 # hardcode_libdir_flag_spec is actually meaningless, as there is 10336 # no search path for DLLs. 10337 case $cc_basename in 10338 cl*) 10339 # Native MSVC 10340 hardcode_libdir_flag_spec=' ' 10341 allow_undefined_flag=unsupported 10342 always_export_symbols=yes 10343 file_list_spec='@' 10344 # Tell ltmain to make .lib files, not .a files. 10345 libext=lib 10346 # Tell ltmain to make .dll files, not .so files. 10347 shrext_cmds=.dll 10348 # FIXME: Setting linknames here is a bad hack. 10349 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10350 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10351 cp "$export_symbols" "$output_objdir/$soname.def"; 10352 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10353 else 10354 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10355 fi~ 10356 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10357 linknames=' 10358 # The linker will not automatically build a static lib if we build a DLL. 10359 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10360 enable_shared_with_static_runtimes=yes 10361 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10362 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10363 # Don't use ranlib 10364 old_postinstall_cmds='chmod 644 $oldlib' 10365 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10366 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10367 case $lt_outputfile in 10368 *.exe|*.EXE) ;; 10369 *) 10370 lt_outputfile=$lt_outputfile.exe 10371 lt_tool_outputfile=$lt_tool_outputfile.exe 10372 ;; 10373 esac~ 10374 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10375 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10376 $RM "$lt_outputfile.manifest"; 10377 fi' 10378 ;; 10379 *) 10380 # Assume MSVC wrapper 10381 hardcode_libdir_flag_spec=' ' 10382 allow_undefined_flag=unsupported 10383 # Tell ltmain to make .lib files, not .a files. 10384 libext=lib 10385 # Tell ltmain to make .dll files, not .so files. 10386 shrext_cmds=.dll 10387 # FIXME: Setting linknames here is a bad hack. 10388 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10389 # The linker will automatically build a .lib file if we build a DLL. 10390 old_archive_from_new_cmds='true' 10391 # FIXME: Should let the user specify the lib program. 10392 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10393 enable_shared_with_static_runtimes=yes 10394 ;; 10395 esac 10396 ;; 10397 10398 darwin* | rhapsody*) 10399 10400 10401 archive_cmds_need_lc=no 10402 hardcode_direct=no 10403 hardcode_automatic=yes 10404 hardcode_shlibpath_var=unsupported 10405 if test yes = "$lt_cv_ld_force_load"; then 10406 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\"`' 10407 10408 else 10409 whole_archive_flag_spec='' 10410 fi 10411 link_all_deplibs=yes 10412 allow_undefined_flag=$_lt_dar_allow_undefined 10413 case $cc_basename in 10414 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10415 *) _lt_dar_can_shared=$GCC ;; 10416 esac 10417 if test yes = "$_lt_dar_can_shared"; then 10418 output_verbose_link_cmd=func_echo_all 10419 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10420 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10421 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" 10422 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" 10423 10424 else 10425 ld_shlibs=no 10426 fi 10427 10428 ;; 10429 10430 dgux*) 10431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10432 hardcode_libdir_flag_spec='-L$libdir' 10433 hardcode_shlibpath_var=no 10434 ;; 10435 10436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10437 # support. Future versions do this automatically, but an explicit c++rt0.o 10438 # does not break anything, and helps significantly (at the cost of a little 10439 # extra space). 10440 freebsd2.2*) 10441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10442 hardcode_libdir_flag_spec='-R$libdir' 10443 hardcode_direct=yes 10444 hardcode_shlibpath_var=no 10445 ;; 10446 10447 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10448 freebsd2.*) 10449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10450 hardcode_direct=yes 10451 hardcode_minus_L=yes 10452 hardcode_shlibpath_var=no 10453 ;; 10454 10455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10456 freebsd* | dragonfly*) 10457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10458 hardcode_libdir_flag_spec='-R$libdir' 10459 hardcode_direct=yes 10460 hardcode_shlibpath_var=no 10461 ;; 10462 10463 hpux9*) 10464 if test yes = "$GCC"; then 10465 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' 10466 else 10467 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' 10468 fi 10469 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10470 hardcode_libdir_separator=: 10471 hardcode_direct=yes 10472 10473 # hardcode_minus_L: Not really in the search PATH, 10474 # but as the default location of the library. 10475 hardcode_minus_L=yes 10476 export_dynamic_flag_spec='$wl-E' 10477 ;; 10478 10479 hpux10*) 10480 if test yes,no = "$GCC,$with_gnu_ld"; then 10481 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10482 else 10483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10484 fi 10485 if test no = "$with_gnu_ld"; then 10486 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10487 hardcode_libdir_separator=: 10488 hardcode_direct=yes 10489 hardcode_direct_absolute=yes 10490 export_dynamic_flag_spec='$wl-E' 10491 # hardcode_minus_L: Not really in the search PATH, 10492 # but as the default location of the library. 10493 hardcode_minus_L=yes 10494 fi 10495 ;; 10496 10497 hpux11*) 10498 if test yes,no = "$GCC,$with_gnu_ld"; then 10499 case $host_cpu in 10500 hppa*64*) 10501 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10502 ;; 10503 ia64*) 10504 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10505 ;; 10506 *) 10507 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10508 ;; 10509 esac 10510 else 10511 case $host_cpu in 10512 hppa*64*) 10513 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10514 ;; 10515 ia64*) 10516 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10517 ;; 10518 *) 10519 10520 # Older versions of the 11.00 compiler do not understand -b yet 10521 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10523$as_echo_n "checking if $CC understands -b... " >&6; } 10524if ${lt_cv_prog_compiler__b+:} false; then : 10525 $as_echo_n "(cached) " >&6 10526else 10527 lt_cv_prog_compiler__b=no 10528 save_LDFLAGS=$LDFLAGS 10529 LDFLAGS="$LDFLAGS -b" 10530 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10532 # The linker can only warn and ignore the option if not recognized 10533 # So say no if there are warnings 10534 if test -s conftest.err; then 10535 # Append any errors to the config.log. 10536 cat conftest.err 1>&5 10537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10539 if diff conftest.exp conftest.er2 >/dev/null; then 10540 lt_cv_prog_compiler__b=yes 10541 fi 10542 else 10543 lt_cv_prog_compiler__b=yes 10544 fi 10545 fi 10546 $RM -r conftest* 10547 LDFLAGS=$save_LDFLAGS 10548 10549fi 10550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10551$as_echo "$lt_cv_prog_compiler__b" >&6; } 10552 10553if test yes = "$lt_cv_prog_compiler__b"; then 10554 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10555else 10556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10557fi 10558 10559 ;; 10560 esac 10561 fi 10562 if test no = "$with_gnu_ld"; then 10563 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10564 hardcode_libdir_separator=: 10565 10566 case $host_cpu in 10567 hppa*64*|ia64*) 10568 hardcode_direct=no 10569 hardcode_shlibpath_var=no 10570 ;; 10571 *) 10572 hardcode_direct=yes 10573 hardcode_direct_absolute=yes 10574 export_dynamic_flag_spec='$wl-E' 10575 10576 # hardcode_minus_L: Not really in the search PATH, 10577 # but as the default location of the library. 10578 hardcode_minus_L=yes 10579 ;; 10580 esac 10581 fi 10582 ;; 10583 10584 irix5* | irix6* | nonstopux*) 10585 if test yes = "$GCC"; then 10586 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' 10587 # Try to use the -exported_symbol ld option, if it does not 10588 # work, assume that -exports_file does not work either and 10589 # implicitly export all symbols. 10590 # This should be the same for all languages, so no per-tag cache variable. 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10592$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10593if ${lt_cv_irix_exported_symbol+:} false; then : 10594 $as_echo_n "(cached) " >&6 10595else 10596 save_LDFLAGS=$LDFLAGS 10597 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10599/* end confdefs.h. */ 10600int foo (void) { return 0; } 10601_ACEOF 10602if ac_fn_c_try_link "$LINENO"; then : 10603 lt_cv_irix_exported_symbol=yes 10604else 10605 lt_cv_irix_exported_symbol=no 10606fi 10607rm -f core conftest.err conftest.$ac_objext \ 10608 conftest$ac_exeext conftest.$ac_ext 10609 LDFLAGS=$save_LDFLAGS 10610fi 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10612$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10613 if test yes = "$lt_cv_irix_exported_symbol"; then 10614 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' 10615 fi 10616 link_all_deplibs=no 10617 else 10618 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' 10619 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' 10620 fi 10621 archive_cmds_need_lc='no' 10622 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10623 hardcode_libdir_separator=: 10624 inherit_rpath=yes 10625 link_all_deplibs=yes 10626 ;; 10627 10628 linux*) 10629 case $cc_basename in 10630 tcc*) 10631 # Fabrice Bellard et al's Tiny C Compiler 10632 ld_shlibs=yes 10633 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10634 ;; 10635 esac 10636 ;; 10637 10638 netbsd* | netbsdelf*-gnu) 10639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10641 else 10642 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10643 fi 10644 hardcode_libdir_flag_spec='-R$libdir' 10645 hardcode_direct=yes 10646 hardcode_shlibpath_var=no 10647 ;; 10648 10649 newsos6) 10650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10651 hardcode_direct=yes 10652 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10653 hardcode_libdir_separator=: 10654 hardcode_shlibpath_var=no 10655 ;; 10656 10657 *nto* | *qnx*) 10658 ;; 10659 10660 openbsd* | bitrig*) 10661 if test -f /usr/libexec/ld.so; then 10662 hardcode_direct=yes 10663 hardcode_shlibpath_var=no 10664 hardcode_direct_absolute=yes 10665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10667 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10668 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10669 export_dynamic_flag_spec='$wl-E' 10670 else 10671 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10672 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10673 fi 10674 else 10675 ld_shlibs=no 10676 fi 10677 ;; 10678 10679 os2*) 10680 hardcode_libdir_flag_spec='-L$libdir' 10681 hardcode_minus_L=yes 10682 allow_undefined_flag=unsupported 10683 shrext_cmds=.dll 10684 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10685 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10686 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10687 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10688 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10690 emximp -o $lib $output_objdir/$libname.def' 10691 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10692 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10693 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10694 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10695 prefix_cmds="$SED"~ 10696 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10697 prefix_cmds="$prefix_cmds -e 1d"; 10698 fi~ 10699 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10700 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10701 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10702 emximp -o $lib $output_objdir/$libname.def' 10703 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10704 enable_shared_with_static_runtimes=yes 10705 ;; 10706 10707 osf3*) 10708 if test yes = "$GCC"; then 10709 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10710 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' 10711 else 10712 allow_undefined_flag=' -expect_unresolved \*' 10713 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' 10714 fi 10715 archive_cmds_need_lc='no' 10716 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10717 hardcode_libdir_separator=: 10718 ;; 10719 10720 osf4* | osf5*) # as osf3* with the addition of -msym flag 10721 if test yes = "$GCC"; then 10722 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10723 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' 10724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10725 else 10726 allow_undefined_flag=' -expect_unresolved \*' 10727 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' 10728 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~ 10729 $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' 10730 10731 # Both c and cxx compiler support -rpath directly 10732 hardcode_libdir_flag_spec='-rpath $libdir' 10733 fi 10734 archive_cmds_need_lc='no' 10735 hardcode_libdir_separator=: 10736 ;; 10737 10738 solaris*) 10739 no_undefined_flag=' -z defs' 10740 if test yes = "$GCC"; then 10741 wlarc='$wl' 10742 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10744 $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' 10745 else 10746 case `$CC -V 2>&1` in 10747 *"Compilers 5.0"*) 10748 wlarc='' 10749 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10751 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10752 ;; 10753 *) 10754 wlarc='$wl' 10755 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10757 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10758 ;; 10759 esac 10760 fi 10761 hardcode_libdir_flag_spec='-R$libdir' 10762 hardcode_shlibpath_var=no 10763 case $host_os in 10764 solaris2.[0-5] | solaris2.[0-5].*) ;; 10765 *) 10766 # The compiler driver will combine and reorder linker options, 10767 # but understands '-z linker_flag'. GCC discards it without '$wl', 10768 # but is careful enough not to reorder. 10769 # Supported since Solaris 2.6 (maybe 2.5.1?) 10770 if test yes = "$GCC"; then 10771 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10772 else 10773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10774 fi 10775 ;; 10776 esac 10777 link_all_deplibs=yes 10778 ;; 10779 10780 sunos4*) 10781 if test sequent = "$host_vendor"; then 10782 # Use $CC to link under sequent, because it throws in some extra .o 10783 # files that make .init and .fini sections work. 10784 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10785 else 10786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10787 fi 10788 hardcode_libdir_flag_spec='-L$libdir' 10789 hardcode_direct=yes 10790 hardcode_minus_L=yes 10791 hardcode_shlibpath_var=no 10792 ;; 10793 10794 sysv4) 10795 case $host_vendor in 10796 sni) 10797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10798 hardcode_direct=yes # is this really true??? 10799 ;; 10800 siemens) 10801 ## LD is ld it makes a PLAMLIB 10802 ## CC just makes a GrossModule. 10803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10804 reload_cmds='$CC -r -o $output$reload_objs' 10805 hardcode_direct=no 10806 ;; 10807 motorola) 10808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10810 ;; 10811 esac 10812 runpath_var='LD_RUN_PATH' 10813 hardcode_shlibpath_var=no 10814 ;; 10815 10816 sysv4.3*) 10817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10818 hardcode_shlibpath_var=no 10819 export_dynamic_flag_spec='-Bexport' 10820 ;; 10821 10822 sysv4*MP*) 10823 if test -d /usr/nec; then 10824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10825 hardcode_shlibpath_var=no 10826 runpath_var=LD_RUN_PATH 10827 hardcode_runpath_var=yes 10828 ld_shlibs=yes 10829 fi 10830 ;; 10831 10832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10833 no_undefined_flag='$wl-z,text' 10834 archive_cmds_need_lc=no 10835 hardcode_shlibpath_var=no 10836 runpath_var='LD_RUN_PATH' 10837 10838 if test yes = "$GCC"; then 10839 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10840 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10841 else 10842 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10843 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10844 fi 10845 ;; 10846 10847 sysv5* | sco3.2v5* | sco5v6*) 10848 # Note: We CANNOT use -z defs as we might desire, because we do not 10849 # link with -lc, and that would cause any symbols used from libc to 10850 # always be unresolved, which means just about no library would 10851 # ever link correctly. If we're not using GNU ld we use -z text 10852 # though, which does catch some bad symbols but isn't as heavy-handed 10853 # as -z defs. 10854 no_undefined_flag='$wl-z,text' 10855 allow_undefined_flag='$wl-z,nodefs' 10856 archive_cmds_need_lc=no 10857 hardcode_shlibpath_var=no 10858 hardcode_libdir_flag_spec='$wl-R,$libdir' 10859 hardcode_libdir_separator=':' 10860 link_all_deplibs=yes 10861 export_dynamic_flag_spec='$wl-Bexport' 10862 runpath_var='LD_RUN_PATH' 10863 10864 if test yes = "$GCC"; then 10865 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10866 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10867 else 10868 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10869 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10870 fi 10871 ;; 10872 10873 uts4*) 10874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10875 hardcode_libdir_flag_spec='-L$libdir' 10876 hardcode_shlibpath_var=no 10877 ;; 10878 10879 *) 10880 ld_shlibs=no 10881 ;; 10882 esac 10883 10884 if test sni = "$host_vendor"; then 10885 case $host in 10886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10887 export_dynamic_flag_spec='$wl-Blargedynsym' 10888 ;; 10889 esac 10890 fi 10891 fi 10892 10893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10894$as_echo "$ld_shlibs" >&6; } 10895test no = "$ld_shlibs" && can_build_shared=no 10896 10897with_gnu_ld=$with_gnu_ld 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913# 10914# Do we need to explicitly link libc? 10915# 10916case "x$archive_cmds_need_lc" in 10917x|xyes) 10918 # Assume -lc should be added 10919 archive_cmds_need_lc=yes 10920 10921 if test yes,yes = "$GCC,$enable_shared"; then 10922 case $archive_cmds in 10923 *'~'*) 10924 # FIXME: we may have to deal with multi-command sequences. 10925 ;; 10926 '$CC '*) 10927 # Test whether the compiler implicitly links with -lc since on some 10928 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10929 # to ld, don't add -lc before -lgcc. 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10931$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10932if ${lt_cv_archive_cmds_need_lc+:} false; then : 10933 $as_echo_n "(cached) " >&6 10934else 10935 $RM conftest* 10936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10937 10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10939 (eval $ac_compile) 2>&5 10940 ac_status=$? 10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10942 test $ac_status = 0; } 2>conftest.err; then 10943 soname=conftest 10944 lib=conftest 10945 libobjs=conftest.$ac_objext 10946 deplibs= 10947 wl=$lt_prog_compiler_wl 10948 pic_flag=$lt_prog_compiler_pic 10949 compiler_flags=-v 10950 linker_flags=-v 10951 verstring= 10952 output_objdir=. 10953 libname=conftest 10954 lt_save_allow_undefined_flag=$allow_undefined_flag 10955 allow_undefined_flag= 10956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10957 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10958 ac_status=$? 10959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10960 test $ac_status = 0; } 10961 then 10962 lt_cv_archive_cmds_need_lc=no 10963 else 10964 lt_cv_archive_cmds_need_lc=yes 10965 fi 10966 allow_undefined_flag=$lt_save_allow_undefined_flag 10967 else 10968 cat conftest.err 1>&5 10969 fi 10970 $RM conftest* 10971 10972fi 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10974$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10975 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10976 ;; 10977 esac 10978 fi 10979 ;; 10980esac 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11134$as_echo_n "checking dynamic linker characteristics... " >&6; } 11135 11136if test yes = "$GCC"; then 11137 case $host_os in 11138 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11139 *) lt_awk_arg='/^libraries:/' ;; 11140 esac 11141 case $host_os in 11142 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11143 *) lt_sed_strip_eq='s|=/|/|g' ;; 11144 esac 11145 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11146 case $lt_search_path_spec in 11147 *\;*) 11148 # if the path contains ";" then we assume it to be the separator 11149 # otherwise default to the standard path separator (i.e. ":") - it is 11150 # assumed that no part of a normal pathname contains ";" but that should 11151 # okay in the real world where ";" in dirpaths is itself problematic. 11152 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11153 ;; 11154 *) 11155 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11156 ;; 11157 esac 11158 # Ok, now we have the path, separated by spaces, we can step through it 11159 # and add multilib dir if necessary... 11160 lt_tmp_lt_search_path_spec= 11161 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11162 # ...but if some path component already ends with the multilib dir we assume 11163 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11164 case "$lt_multi_os_dir; $lt_search_path_spec " in 11165 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11166 lt_multi_os_dir= 11167 ;; 11168 esac 11169 for lt_sys_path in $lt_search_path_spec; do 11170 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11171 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11172 elif test -n "$lt_multi_os_dir"; then 11173 test -d "$lt_sys_path" && \ 11174 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11175 fi 11176 done 11177 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11178BEGIN {RS = " "; FS = "/|\n";} { 11179 lt_foo = ""; 11180 lt_count = 0; 11181 for (lt_i = NF; lt_i > 0; lt_i--) { 11182 if ($lt_i != "" && $lt_i != ".") { 11183 if ($lt_i == "..") { 11184 lt_count++; 11185 } else { 11186 if (lt_count == 0) { 11187 lt_foo = "/" $lt_i lt_foo; 11188 } else { 11189 lt_count--; 11190 } 11191 } 11192 } 11193 } 11194 if (lt_foo != "") { lt_freq[lt_foo]++; } 11195 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11196}'` 11197 # AWK program above erroneously prepends '/' to C:/dos/paths 11198 # for these hosts. 11199 case $host_os in 11200 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11201 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11202 esac 11203 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11204else 11205 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11206fi 11207library_names_spec= 11208libname_spec='lib$name' 11209soname_spec= 11210shrext_cmds=.so 11211postinstall_cmds= 11212postuninstall_cmds= 11213finish_cmds= 11214finish_eval= 11215shlibpath_var= 11216shlibpath_overrides_runpath=unknown 11217version_type=none 11218dynamic_linker="$host_os ld.so" 11219sys_lib_dlsearch_path_spec="/lib /usr/lib" 11220need_lib_prefix=unknown 11221hardcode_into_libs=no 11222 11223# when you set need_version to no, make sure it does not cause -set_version 11224# flags to be left without arguments 11225need_version=unknown 11226 11227 11228 11229case $host_os in 11230aix3*) 11231 version_type=linux # correct to gnu/linux during the next big refactor 11232 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11233 shlibpath_var=LIBPATH 11234 11235 # AIX 3 has no versioning support, so we append a major version to the name. 11236 soname_spec='$libname$release$shared_ext$major' 11237 ;; 11238 11239aix[4-9]*) 11240 version_type=linux # correct to gnu/linux during the next big refactor 11241 need_lib_prefix=no 11242 need_version=no 11243 hardcode_into_libs=yes 11244 if test ia64 = "$host_cpu"; then 11245 # AIX 5 supports IA64 11246 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11247 shlibpath_var=LD_LIBRARY_PATH 11248 else 11249 # With GCC up to 2.95.x, collect2 would create an import file 11250 # for dependence libraries. The import file would start with 11251 # the line '#! .'. This would cause the generated library to 11252 # depend on '.', always an invalid library. This was fixed in 11253 # development snapshots of GCC prior to 3.0. 11254 case $host_os in 11255 aix4 | aix4.[01] | aix4.[01].*) 11256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11257 echo ' yes ' 11258 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11259 : 11260 else 11261 can_build_shared=no 11262 fi 11263 ;; 11264 esac 11265 # Using Import Files as archive members, it is possible to support 11266 # filename-based versioning of shared library archives on AIX. While 11267 # this would work for both with and without runtime linking, it will 11268 # prevent static linking of such archives. So we do filename-based 11269 # shared library versioning with .so extension only, which is used 11270 # when both runtime linking and shared linking is enabled. 11271 # Unfortunately, runtime linking may impact performance, so we do 11272 # not want this to be the default eventually. Also, we use the 11273 # versioned .so libs for executables only if there is the -brtl 11274 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11275 # To allow for filename-based versioning support, we need to create 11276 # libNAME.so.V as an archive file, containing: 11277 # *) an Import File, referring to the versioned filename of the 11278 # archive as well as the shared archive member, telling the 11279 # bitwidth (32 or 64) of that shared object, and providing the 11280 # list of exported symbols of that shared object, eventually 11281 # decorated with the 'weak' keyword 11282 # *) the shared object with the F_LOADONLY flag set, to really avoid 11283 # it being seen by the linker. 11284 # At run time we better use the real file rather than another symlink, 11285 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11286 11287 case $with_aix_soname,$aix_use_runtimelinking in 11288 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11289 # soname into executable. Probably we can add versioning support to 11290 # collect2, so additional links can be useful in future. 11291 aix,yes) # traditional libtool 11292 dynamic_linker='AIX unversionable lib.so' 11293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11294 # instead of lib<name>.a to let people know that these are not 11295 # typical AIX shared libraries. 11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11297 ;; 11298 aix,no) # traditional AIX only 11299 dynamic_linker='AIX lib.a(lib.so.V)' 11300 # We preserve .a as extension for shared libraries through AIX4.2 11301 # and later when we are not doing run time linking. 11302 library_names_spec='$libname$release.a $libname.a' 11303 soname_spec='$libname$release$shared_ext$major' 11304 ;; 11305 svr4,*) # full svr4 only 11306 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11307 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11308 # We do not specify a path in Import Files, so LIBPATH fires. 11309 shlibpath_overrides_runpath=yes 11310 ;; 11311 *,yes) # both, prefer svr4 11312 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11313 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11314 # unpreferred sharedlib libNAME.a needs extra handling 11315 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"' 11316 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"' 11317 # We do not specify a path in Import Files, so LIBPATH fires. 11318 shlibpath_overrides_runpath=yes 11319 ;; 11320 *,no) # both, prefer aix 11321 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11322 library_names_spec='$libname$release.a $libname.a' 11323 soname_spec='$libname$release$shared_ext$major' 11324 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11325 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)' 11326 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"' 11327 ;; 11328 esac 11329 shlibpath_var=LIBPATH 11330 fi 11331 ;; 11332 11333amigaos*) 11334 case $host_cpu in 11335 powerpc) 11336 # Since July 2007 AmigaOS4 officially supports .so libraries. 11337 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11339 ;; 11340 m68k) 11341 library_names_spec='$libname.ixlibrary $libname.a' 11342 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11343 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' 11344 ;; 11345 esac 11346 ;; 11347 11348beos*) 11349 library_names_spec='$libname$shared_ext' 11350 dynamic_linker="$host_os ld.so" 11351 shlibpath_var=LIBRARY_PATH 11352 ;; 11353 11354bsdi[45]*) 11355 version_type=linux # correct to gnu/linux during the next big refactor 11356 need_version=no 11357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11358 soname_spec='$libname$release$shared_ext$major' 11359 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11360 shlibpath_var=LD_LIBRARY_PATH 11361 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11362 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11363 # the default ld.so.conf also contains /usr/contrib/lib and 11364 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11365 # libtool to hard-code these into programs 11366 ;; 11367 11368cygwin* | mingw* | pw32* | cegcc*) 11369 version_type=windows 11370 shrext_cmds=.dll 11371 need_version=no 11372 need_lib_prefix=no 11373 11374 case $GCC,$cc_basename in 11375 yes,*) 11376 # gcc 11377 library_names_spec='$libname.dll.a' 11378 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11379 postinstall_cmds='base_file=`basename \$file`~ 11380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11381 dldir=$destdir/`dirname \$dlpath`~ 11382 test -d \$dldir || mkdir -p \$dldir~ 11383 $install_prog $dir/$dlname \$dldir/$dlname~ 11384 chmod a+x \$dldir/$dlname~ 11385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11387 fi' 11388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11389 dlpath=$dir/\$dldll~ 11390 $RM \$dlpath' 11391 shlibpath_overrides_runpath=yes 11392 11393 case $host_os in 11394 cygwin*) 11395 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11396 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11397 11398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11399 ;; 11400 mingw* | cegcc*) 11401 # MinGW DLLs use traditional 'lib' prefix 11402 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11403 ;; 11404 pw32*) 11405 # pw32 DLLs use 'pw' prefix rather than 'lib' 11406 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11407 ;; 11408 esac 11409 dynamic_linker='Win32 ld.exe' 11410 ;; 11411 11412 *,cl*) 11413 # Native MSVC 11414 libname_spec='$name' 11415 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11416 library_names_spec='$libname.dll.lib' 11417 11418 case $build_os in 11419 mingw*) 11420 sys_lib_search_path_spec= 11421 lt_save_ifs=$IFS 11422 IFS=';' 11423 for lt_path in $LIB 11424 do 11425 IFS=$lt_save_ifs 11426 # Let DOS variable expansion print the short 8.3 style file name. 11427 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11428 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11429 done 11430 IFS=$lt_save_ifs 11431 # Convert to MSYS style. 11432 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11433 ;; 11434 cygwin*) 11435 # Convert to unix form, then to dos form, then back to unix form 11436 # but this time dos style (no spaces!) so that the unix form looks 11437 # like /cygdrive/c/PROGRA~1:/cygdr... 11438 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11439 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11440 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11441 ;; 11442 *) 11443 sys_lib_search_path_spec=$LIB 11444 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11445 # It is most probably a Windows format PATH. 11446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11447 else 11448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11449 fi 11450 # FIXME: find the short name or the path components, as spaces are 11451 # common. (e.g. "Program Files" -> "PROGRA~1") 11452 ;; 11453 esac 11454 11455 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11456 postinstall_cmds='base_file=`basename \$file`~ 11457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11458 dldir=$destdir/`dirname \$dlpath`~ 11459 test -d \$dldir || mkdir -p \$dldir~ 11460 $install_prog $dir/$dlname \$dldir/$dlname' 11461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11462 dlpath=$dir/\$dldll~ 11463 $RM \$dlpath' 11464 shlibpath_overrides_runpath=yes 11465 dynamic_linker='Win32 link.exe' 11466 ;; 11467 11468 *) 11469 # Assume MSVC wrapper 11470 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11471 dynamic_linker='Win32 ld.exe' 11472 ;; 11473 esac 11474 # FIXME: first we should search . and the directory the executable is in 11475 shlibpath_var=PATH 11476 ;; 11477 11478darwin* | rhapsody*) 11479 dynamic_linker="$host_os dyld" 11480 version_type=darwin 11481 need_lib_prefix=no 11482 need_version=no 11483 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11484 soname_spec='$libname$release$major$shared_ext' 11485 shlibpath_overrides_runpath=yes 11486 shlibpath_var=DYLD_LIBRARY_PATH 11487 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11488 11489 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11490 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11491 ;; 11492 11493dgux*) 11494 version_type=linux # correct to gnu/linux during the next big refactor 11495 need_lib_prefix=no 11496 need_version=no 11497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11498 soname_spec='$libname$release$shared_ext$major' 11499 shlibpath_var=LD_LIBRARY_PATH 11500 ;; 11501 11502freebsd* | dragonfly*) 11503 # DragonFly does not have aout. When/if they implement a new 11504 # versioning mechanism, adjust this. 11505 if test -x /usr/bin/objformat; then 11506 objformat=`/usr/bin/objformat` 11507 else 11508 case $host_os in 11509 freebsd[23].*) objformat=aout ;; 11510 *) objformat=elf ;; 11511 esac 11512 fi 11513 version_type=freebsd-$objformat 11514 case $version_type in 11515 freebsd-elf*) 11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11517 soname_spec='$libname$release$shared_ext$major' 11518 need_version=no 11519 need_lib_prefix=no 11520 ;; 11521 freebsd-*) 11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11523 need_version=yes 11524 ;; 11525 esac 11526 shlibpath_var=LD_LIBRARY_PATH 11527 case $host_os in 11528 freebsd2.*) 11529 shlibpath_overrides_runpath=yes 11530 ;; 11531 freebsd3.[01]* | freebsdelf3.[01]*) 11532 shlibpath_overrides_runpath=yes 11533 hardcode_into_libs=yes 11534 ;; 11535 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11536 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11537 shlibpath_overrides_runpath=no 11538 hardcode_into_libs=yes 11539 ;; 11540 *) # from 4.6 on, and DragonFly 11541 shlibpath_overrides_runpath=yes 11542 hardcode_into_libs=yes 11543 ;; 11544 esac 11545 ;; 11546 11547haiku*) 11548 version_type=linux # correct to gnu/linux during the next big refactor 11549 need_lib_prefix=no 11550 need_version=no 11551 dynamic_linker="$host_os runtime_loader" 11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11553 soname_spec='$libname$release$shared_ext$major' 11554 shlibpath_var=LIBRARY_PATH 11555 shlibpath_overrides_runpath=no 11556 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11557 hardcode_into_libs=yes 11558 ;; 11559 11560hpux9* | hpux10* | hpux11*) 11561 # Give a soname corresponding to the major version so that dld.sl refuses to 11562 # link against other versions. 11563 version_type=sunos 11564 need_lib_prefix=no 11565 need_version=no 11566 case $host_cpu in 11567 ia64*) 11568 shrext_cmds='.so' 11569 hardcode_into_libs=yes 11570 dynamic_linker="$host_os dld.so" 11571 shlibpath_var=LD_LIBRARY_PATH 11572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11574 soname_spec='$libname$release$shared_ext$major' 11575 if test 32 = "$HPUX_IA64_MODE"; then 11576 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11577 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11578 else 11579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11580 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11581 fi 11582 ;; 11583 hppa*64*) 11584 shrext_cmds='.sl' 11585 hardcode_into_libs=yes 11586 dynamic_linker="$host_os dld.sl" 11587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11590 soname_spec='$libname$release$shared_ext$major' 11591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11593 ;; 11594 *) 11595 shrext_cmds='.sl' 11596 dynamic_linker="$host_os dld.sl" 11597 shlibpath_var=SHLIB_PATH 11598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11600 soname_spec='$libname$release$shared_ext$major' 11601 ;; 11602 esac 11603 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11604 postinstall_cmds='chmod 555 $lib' 11605 # or fails outright, so override atomically: 11606 install_override_mode=555 11607 ;; 11608 11609interix[3-9]*) 11610 version_type=linux # correct to gnu/linux during the next big refactor 11611 need_lib_prefix=no 11612 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11616 shlibpath_var=LD_LIBRARY_PATH 11617 shlibpath_overrides_runpath=no 11618 hardcode_into_libs=yes 11619 ;; 11620 11621irix5* | irix6* | nonstopux*) 11622 case $host_os in 11623 nonstopux*) version_type=nonstopux ;; 11624 *) 11625 if test yes = "$lt_cv_prog_gnu_ld"; then 11626 version_type=linux # correct to gnu/linux during the next big refactor 11627 else 11628 version_type=irix 11629 fi ;; 11630 esac 11631 need_lib_prefix=no 11632 need_version=no 11633 soname_spec='$libname$release$shared_ext$major' 11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11635 case $host_os in 11636 irix5* | nonstopux*) 11637 libsuff= shlibsuff= 11638 ;; 11639 *) 11640 case $LD in # libtool.m4 will add one of these switches to LD 11641 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11642 libsuff= shlibsuff= libmagic=32-bit;; 11643 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11644 libsuff=32 shlibsuff=N32 libmagic=N32;; 11645 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11646 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11647 *) libsuff= shlibsuff= libmagic=never-match;; 11648 esac 11649 ;; 11650 esac 11651 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11652 shlibpath_overrides_runpath=no 11653 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11654 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11655 hardcode_into_libs=yes 11656 ;; 11657 11658# No shared lib support for Linux oldld, aout, or coff. 11659linux*oldld* | linux*aout* | linux*coff*) 11660 dynamic_linker=no 11661 ;; 11662 11663linux*android*) 11664 version_type=none # Android doesn't support versioned libraries. 11665 need_lib_prefix=no 11666 need_version=no 11667 library_names_spec='$libname$release$shared_ext' 11668 soname_spec='$libname$release$shared_ext' 11669 finish_cmds= 11670 shlibpath_var=LD_LIBRARY_PATH 11671 shlibpath_overrides_runpath=yes 11672 11673 # This implies no fast_install, which is unacceptable. 11674 # Some rework will be needed to allow for fast_install 11675 # before this can be enabled. 11676 hardcode_into_libs=yes 11677 11678 dynamic_linker='Android linker' 11679 # Don't embed -rpath directories since the linker doesn't support them. 11680 hardcode_libdir_flag_spec='-L$libdir' 11681 ;; 11682 11683# This must be glibc/ELF. 11684linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11685 version_type=linux # correct to gnu/linux during the next big refactor 11686 need_lib_prefix=no 11687 need_version=no 11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11689 soname_spec='$libname$release$shared_ext$major' 11690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11691 shlibpath_var=LD_LIBRARY_PATH 11692 shlibpath_overrides_runpath=no 11693 11694 # Some binutils ld are patched to set DT_RUNPATH 11695 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11696 $as_echo_n "(cached) " >&6 11697else 11698 lt_cv_shlibpath_overrides_runpath=no 11699 save_LDFLAGS=$LDFLAGS 11700 save_libdir=$libdir 11701 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11702 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11704/* end confdefs.h. */ 11705 11706int 11707main () 11708{ 11709 11710 ; 11711 return 0; 11712} 11713_ACEOF 11714if ac_fn_c_try_link "$LINENO"; then : 11715 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11716 lt_cv_shlibpath_overrides_runpath=yes 11717fi 11718fi 11719rm -f core conftest.err conftest.$ac_objext \ 11720 conftest$ac_exeext conftest.$ac_ext 11721 LDFLAGS=$save_LDFLAGS 11722 libdir=$save_libdir 11723 11724fi 11725 11726 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11727 11728 # This implies no fast_install, which is unacceptable. 11729 # Some rework will be needed to allow for fast_install 11730 # before this can be enabled. 11731 hardcode_into_libs=yes 11732 11733 # Ideally, we could use ldconfig to report *all* directores which are 11734 # searched for libraries, however this is still not possible. Aside from not 11735 # being certain /sbin/ldconfig is available, command 11736 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11737 # even though it is searched at run-time. Try to do the best guess by 11738 # appending ld.so.conf contents (and includes) to the search path. 11739 if test -f /etc/ld.so.conf; then 11740 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' ' '` 11741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11742 fi 11743 11744 # We used to test for /lib/ld.so.1 and disable shared libraries on 11745 # powerpc, because MkLinux only supported shared libraries with the 11746 # GNU dynamic linker. Since this was broken with cross compilers, 11747 # most powerpc-linux boxes support dynamic linking these days and 11748 # people can always --disable-shared, the test was removed, and we 11749 # assume the GNU/Linux dynamic linker is in use. 11750 dynamic_linker='GNU/Linux ld.so' 11751 ;; 11752 11753netbsdelf*-gnu) 11754 version_type=linux 11755 need_lib_prefix=no 11756 need_version=no 11757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11758 soname_spec='${libname}${release}${shared_ext}$major' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 shlibpath_overrides_runpath=no 11761 hardcode_into_libs=yes 11762 dynamic_linker='NetBSD ld.elf_so' 11763 ;; 11764 11765netbsd*) 11766 version_type=sunos 11767 need_lib_prefix=no 11768 need_version=no 11769 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11772 dynamic_linker='NetBSD (a.out) ld.so' 11773 else 11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11775 soname_spec='$libname$release$shared_ext$major' 11776 dynamic_linker='NetBSD ld.elf_so' 11777 fi 11778 shlibpath_var=LD_LIBRARY_PATH 11779 shlibpath_overrides_runpath=yes 11780 hardcode_into_libs=yes 11781 ;; 11782 11783newsos6) 11784 version_type=linux # correct to gnu/linux during the next big refactor 11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11786 shlibpath_var=LD_LIBRARY_PATH 11787 shlibpath_overrides_runpath=yes 11788 ;; 11789 11790*nto* | *qnx*) 11791 version_type=qnx 11792 need_lib_prefix=no 11793 need_version=no 11794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11795 soname_spec='$libname$release$shared_ext$major' 11796 shlibpath_var=LD_LIBRARY_PATH 11797 shlibpath_overrides_runpath=no 11798 hardcode_into_libs=yes 11799 dynamic_linker='ldqnx.so' 11800 ;; 11801 11802openbsd* | bitrig*) 11803 version_type=sunos 11804 sys_lib_dlsearch_path_spec=/usr/lib 11805 need_lib_prefix=no 11806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11807 need_version=no 11808 else 11809 need_version=yes 11810 fi 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11813 shlibpath_var=LD_LIBRARY_PATH 11814 shlibpath_overrides_runpath=yes 11815 ;; 11816 11817os2*) 11818 libname_spec='$name' 11819 version_type=windows 11820 shrext_cmds=.dll 11821 need_version=no 11822 need_lib_prefix=no 11823 # OS/2 can only load a DLL with a base name of 8 characters or less. 11824 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11825 v=$($ECHO $release$versuffix | tr -d .-); 11826 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11827 $ECHO $n$v`$shared_ext' 11828 library_names_spec='${libname}_dll.$libext' 11829 dynamic_linker='OS/2 ld.exe' 11830 shlibpath_var=BEGINLIBPATH 11831 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11833 postinstall_cmds='base_file=`basename \$file`~ 11834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11835 dldir=$destdir/`dirname \$dlpath`~ 11836 test -d \$dldir || mkdir -p \$dldir~ 11837 $install_prog $dir/$dlname \$dldir/$dlname~ 11838 chmod a+x \$dldir/$dlname~ 11839 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11840 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11841 fi' 11842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11843 dlpath=$dir/\$dldll~ 11844 $RM \$dlpath' 11845 ;; 11846 11847osf3* | osf4* | osf5*) 11848 version_type=osf 11849 need_lib_prefix=no 11850 need_version=no 11851 soname_spec='$libname$release$shared_ext$major' 11852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11853 shlibpath_var=LD_LIBRARY_PATH 11854 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11856 ;; 11857 11858rdos*) 11859 dynamic_linker=no 11860 ;; 11861 11862solaris*) 11863 version_type=linux # correct to gnu/linux during the next big refactor 11864 need_lib_prefix=no 11865 need_version=no 11866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11867 soname_spec='$libname$release$shared_ext$major' 11868 shlibpath_var=LD_LIBRARY_PATH 11869 shlibpath_overrides_runpath=yes 11870 hardcode_into_libs=yes 11871 # ldd complains unless libraries are executable 11872 postinstall_cmds='chmod +x $lib' 11873 ;; 11874 11875sunos4*) 11876 version_type=sunos 11877 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11879 shlibpath_var=LD_LIBRARY_PATH 11880 shlibpath_overrides_runpath=yes 11881 if test yes = "$with_gnu_ld"; then 11882 need_lib_prefix=no 11883 fi 11884 need_version=yes 11885 ;; 11886 11887sysv4 | sysv4.3*) 11888 version_type=linux # correct to gnu/linux during the next big refactor 11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11890 soname_spec='$libname$release$shared_ext$major' 11891 shlibpath_var=LD_LIBRARY_PATH 11892 case $host_vendor in 11893 sni) 11894 shlibpath_overrides_runpath=no 11895 need_lib_prefix=no 11896 runpath_var=LD_RUN_PATH 11897 ;; 11898 siemens) 11899 need_lib_prefix=no 11900 ;; 11901 motorola) 11902 need_lib_prefix=no 11903 need_version=no 11904 shlibpath_overrides_runpath=no 11905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11906 ;; 11907 esac 11908 ;; 11909 11910sysv4*MP*) 11911 if test -d /usr/nec; then 11912 version_type=linux # correct to gnu/linux during the next big refactor 11913 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11914 soname_spec='$libname$shared_ext.$major' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 fi 11917 ;; 11918 11919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11920 version_type=sco 11921 need_lib_prefix=no 11922 need_version=no 11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11924 soname_spec='$libname$release$shared_ext$major' 11925 shlibpath_var=LD_LIBRARY_PATH 11926 shlibpath_overrides_runpath=yes 11927 hardcode_into_libs=yes 11928 if test yes = "$with_gnu_ld"; then 11929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11930 else 11931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11932 case $host_os in 11933 sco3.2v5*) 11934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11935 ;; 11936 esac 11937 fi 11938 sys_lib_dlsearch_path_spec='/usr/lib' 11939 ;; 11940 11941tpf*) 11942 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11943 version_type=linux # correct to gnu/linux during the next big refactor 11944 need_lib_prefix=no 11945 need_version=no 11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11947 shlibpath_var=LD_LIBRARY_PATH 11948 shlibpath_overrides_runpath=no 11949 hardcode_into_libs=yes 11950 ;; 11951 11952uts4*) 11953 version_type=linux # correct to gnu/linux during the next big refactor 11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11955 soname_spec='$libname$release$shared_ext$major' 11956 shlibpath_var=LD_LIBRARY_PATH 11957 ;; 11958 11959*) 11960 dynamic_linker=no 11961 ;; 11962esac 11963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11964$as_echo "$dynamic_linker" >&6; } 11965test no = "$dynamic_linker" && can_build_shared=no 11966 11967variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11968if test yes = "$GCC"; then 11969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11970fi 11971 11972if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11973 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11974fi 11975 11976if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11977 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11978fi 11979 11980# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11981configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11982 11983# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11984func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11985 11986# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11987configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12086$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12087hardcode_action= 12088if test -n "$hardcode_libdir_flag_spec" || 12089 test -n "$runpath_var" || 12090 test yes = "$hardcode_automatic"; then 12091 12092 # We can hardcode non-existent directories. 12093 if test no != "$hardcode_direct" && 12094 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12095 # have to relink, otherwise we might link with an installed library 12096 # when we should be linking with a yet-to-be-installed one 12097 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12098 test no != "$hardcode_minus_L"; then 12099 # Linking always hardcodes the temporary library directory. 12100 hardcode_action=relink 12101 else 12102 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12103 hardcode_action=immediate 12104 fi 12105else 12106 # We cannot hardcode anything, or else we can only hardcode existing 12107 # directories. 12108 hardcode_action=unsupported 12109fi 12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12111$as_echo "$hardcode_action" >&6; } 12112 12113if test relink = "$hardcode_action" || 12114 test yes = "$inherit_rpath"; then 12115 # Fast installation is not supported 12116 enable_fast_install=no 12117elif test yes = "$shlibpath_overrides_runpath" || 12118 test no = "$enable_shared"; then 12119 # Fast installation is not necessary 12120 enable_fast_install=needless 12121fi 12122 12123 12124 12125 12126 12127 12128 if test yes != "$enable_dlopen"; then 12129 enable_dlopen=unknown 12130 enable_dlopen_self=unknown 12131 enable_dlopen_self_static=unknown 12132else 12133 lt_cv_dlopen=no 12134 lt_cv_dlopen_libs= 12135 12136 case $host_os in 12137 beos*) 12138 lt_cv_dlopen=load_add_on 12139 lt_cv_dlopen_libs= 12140 lt_cv_dlopen_self=yes 12141 ;; 12142 12143 mingw* | pw32* | cegcc*) 12144 lt_cv_dlopen=LoadLibrary 12145 lt_cv_dlopen_libs= 12146 ;; 12147 12148 cygwin*) 12149 lt_cv_dlopen=dlopen 12150 lt_cv_dlopen_libs= 12151 ;; 12152 12153 darwin*) 12154 # if libdl is installed we need to link against it 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12156$as_echo_n "checking for dlopen in -ldl... " >&6; } 12157if ${ac_cv_lib_dl_dlopen+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 ac_check_lib_save_LIBS=$LIBS 12161LIBS="-ldl $LIBS" 12162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164 12165/* Override any GCC internal prototype to avoid an error. 12166 Use char because int might match the return type of a GCC 12167 builtin and then its argument prototype would still apply. */ 12168#ifdef __cplusplus 12169extern "C" 12170#endif 12171char dlopen (); 12172int 12173main () 12174{ 12175return dlopen (); 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180if ac_fn_c_try_link "$LINENO"; then : 12181 ac_cv_lib_dl_dlopen=yes 12182else 12183 ac_cv_lib_dl_dlopen=no 12184fi 12185rm -f core conftest.err conftest.$ac_objext \ 12186 conftest$ac_exeext conftest.$ac_ext 12187LIBS=$ac_check_lib_save_LIBS 12188fi 12189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12190$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12191if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12192 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12193else 12194 12195 lt_cv_dlopen=dyld 12196 lt_cv_dlopen_libs= 12197 lt_cv_dlopen_self=yes 12198 12199fi 12200 12201 ;; 12202 12203 tpf*) 12204 # Don't try to run any link tests for TPF. We know it's impossible 12205 # because TPF is a cross-compiler, and we know how we open DSOs. 12206 lt_cv_dlopen=dlopen 12207 lt_cv_dlopen_libs= 12208 lt_cv_dlopen_self=no 12209 ;; 12210 12211 *) 12212 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12213if test "x$ac_cv_func_shl_load" = xyes; then : 12214 lt_cv_dlopen=shl_load 12215else 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12217$as_echo_n "checking for shl_load in -ldld... " >&6; } 12218if ${ac_cv_lib_dld_shl_load+:} false; then : 12219 $as_echo_n "(cached) " >&6 12220else 12221 ac_check_lib_save_LIBS=$LIBS 12222LIBS="-ldld $LIBS" 12223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12224/* end confdefs.h. */ 12225 12226/* Override any GCC internal prototype to avoid an error. 12227 Use char because int might match the return type of a GCC 12228 builtin and then its argument prototype would still apply. */ 12229#ifdef __cplusplus 12230extern "C" 12231#endif 12232char shl_load (); 12233int 12234main () 12235{ 12236return shl_load (); 12237 ; 12238 return 0; 12239} 12240_ACEOF 12241if ac_fn_c_try_link "$LINENO"; then : 12242 ac_cv_lib_dld_shl_load=yes 12243else 12244 ac_cv_lib_dld_shl_load=no 12245fi 12246rm -f core conftest.err conftest.$ac_objext \ 12247 conftest$ac_exeext conftest.$ac_ext 12248LIBS=$ac_check_lib_save_LIBS 12249fi 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12251$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12252if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12253 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12254else 12255 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12256if test "x$ac_cv_func_dlopen" = xyes; then : 12257 lt_cv_dlopen=dlopen 12258else 12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12260$as_echo_n "checking for dlopen in -ldl... " >&6; } 12261if ${ac_cv_lib_dl_dlopen+:} false; then : 12262 $as_echo_n "(cached) " >&6 12263else 12264 ac_check_lib_save_LIBS=$LIBS 12265LIBS="-ldl $LIBS" 12266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12267/* end confdefs.h. */ 12268 12269/* Override any GCC internal prototype to avoid an error. 12270 Use char because int might match the return type of a GCC 12271 builtin and then its argument prototype would still apply. */ 12272#ifdef __cplusplus 12273extern "C" 12274#endif 12275char dlopen (); 12276int 12277main () 12278{ 12279return dlopen (); 12280 ; 12281 return 0; 12282} 12283_ACEOF 12284if ac_fn_c_try_link "$LINENO"; then : 12285 ac_cv_lib_dl_dlopen=yes 12286else 12287 ac_cv_lib_dl_dlopen=no 12288fi 12289rm -f core conftest.err conftest.$ac_objext \ 12290 conftest$ac_exeext conftest.$ac_ext 12291LIBS=$ac_check_lib_save_LIBS 12292fi 12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12294$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12295if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12296 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12297else 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12299$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12300if ${ac_cv_lib_svld_dlopen+:} false; then : 12301 $as_echo_n "(cached) " >&6 12302else 12303 ac_check_lib_save_LIBS=$LIBS 12304LIBS="-lsvld $LIBS" 12305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12306/* end confdefs.h. */ 12307 12308/* Override any GCC internal prototype to avoid an error. 12309 Use char because int might match the return type of a GCC 12310 builtin and then its argument prototype would still apply. */ 12311#ifdef __cplusplus 12312extern "C" 12313#endif 12314char dlopen (); 12315int 12316main () 12317{ 12318return dlopen (); 12319 ; 12320 return 0; 12321} 12322_ACEOF 12323if ac_fn_c_try_link "$LINENO"; then : 12324 ac_cv_lib_svld_dlopen=yes 12325else 12326 ac_cv_lib_svld_dlopen=no 12327fi 12328rm -f core conftest.err conftest.$ac_objext \ 12329 conftest$ac_exeext conftest.$ac_ext 12330LIBS=$ac_check_lib_save_LIBS 12331fi 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12333$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12334if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12335 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12336else 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12338$as_echo_n "checking for dld_link in -ldld... " >&6; } 12339if ${ac_cv_lib_dld_dld_link+:} false; then : 12340 $as_echo_n "(cached) " >&6 12341else 12342 ac_check_lib_save_LIBS=$LIBS 12343LIBS="-ldld $LIBS" 12344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12345/* end confdefs.h. */ 12346 12347/* Override any GCC internal prototype to avoid an error. 12348 Use char because int might match the return type of a GCC 12349 builtin and then its argument prototype would still apply. */ 12350#ifdef __cplusplus 12351extern "C" 12352#endif 12353char dld_link (); 12354int 12355main () 12356{ 12357return dld_link (); 12358 ; 12359 return 0; 12360} 12361_ACEOF 12362if ac_fn_c_try_link "$LINENO"; then : 12363 ac_cv_lib_dld_dld_link=yes 12364else 12365 ac_cv_lib_dld_dld_link=no 12366fi 12367rm -f core conftest.err conftest.$ac_objext \ 12368 conftest$ac_exeext conftest.$ac_ext 12369LIBS=$ac_check_lib_save_LIBS 12370fi 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12372$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12373if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12374 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12375fi 12376 12377 12378fi 12379 12380 12381fi 12382 12383 12384fi 12385 12386 12387fi 12388 12389 12390fi 12391 12392 ;; 12393 esac 12394 12395 if test no = "$lt_cv_dlopen"; then 12396 enable_dlopen=no 12397 else 12398 enable_dlopen=yes 12399 fi 12400 12401 case $lt_cv_dlopen in 12402 dlopen) 12403 save_CPPFLAGS=$CPPFLAGS 12404 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12405 12406 save_LDFLAGS=$LDFLAGS 12407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12408 12409 save_LIBS=$LIBS 12410 LIBS="$lt_cv_dlopen_libs $LIBS" 12411 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12413$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12414if ${lt_cv_dlopen_self+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416else 12417 if test yes = "$cross_compiling"; then : 12418 lt_cv_dlopen_self=cross 12419else 12420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12421 lt_status=$lt_dlunknown 12422 cat > conftest.$ac_ext <<_LT_EOF 12423#line $LINENO "configure" 12424#include "confdefs.h" 12425 12426#if HAVE_DLFCN_H 12427#include <dlfcn.h> 12428#endif 12429 12430#include <stdio.h> 12431 12432#ifdef RTLD_GLOBAL 12433# define LT_DLGLOBAL RTLD_GLOBAL 12434#else 12435# ifdef DL_GLOBAL 12436# define LT_DLGLOBAL DL_GLOBAL 12437# else 12438# define LT_DLGLOBAL 0 12439# endif 12440#endif 12441 12442/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12443 find out it does not work in some platform. */ 12444#ifndef LT_DLLAZY_OR_NOW 12445# ifdef RTLD_LAZY 12446# define LT_DLLAZY_OR_NOW RTLD_LAZY 12447# else 12448# ifdef DL_LAZY 12449# define LT_DLLAZY_OR_NOW DL_LAZY 12450# else 12451# ifdef RTLD_NOW 12452# define LT_DLLAZY_OR_NOW RTLD_NOW 12453# else 12454# ifdef DL_NOW 12455# define LT_DLLAZY_OR_NOW DL_NOW 12456# else 12457# define LT_DLLAZY_OR_NOW 0 12458# endif 12459# endif 12460# endif 12461# endif 12462#endif 12463 12464/* When -fvisibility=hidden is used, assume the code has been annotated 12465 correspondingly for the symbols needed. */ 12466#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12467int fnord () __attribute__((visibility("default"))); 12468#endif 12469 12470int fnord () { return 42; } 12471int main () 12472{ 12473 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12474 int status = $lt_dlunknown; 12475 12476 if (self) 12477 { 12478 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12479 else 12480 { 12481 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12482 else puts (dlerror ()); 12483 } 12484 /* dlclose (self); */ 12485 } 12486 else 12487 puts (dlerror ()); 12488 12489 return status; 12490} 12491_LT_EOF 12492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12493 (eval $ac_link) 2>&5 12494 ac_status=$? 12495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12496 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12497 (./conftest; exit; ) >&5 2>/dev/null 12498 lt_status=$? 12499 case x$lt_status in 12500 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12501 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12502 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12503 esac 12504 else : 12505 # compilation failed 12506 lt_cv_dlopen_self=no 12507 fi 12508fi 12509rm -fr conftest* 12510 12511 12512fi 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12514$as_echo "$lt_cv_dlopen_self" >&6; } 12515 12516 if test yes = "$lt_cv_dlopen_self"; then 12517 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12519$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12520if ${lt_cv_dlopen_self_static+:} false; then : 12521 $as_echo_n "(cached) " >&6 12522else 12523 if test yes = "$cross_compiling"; then : 12524 lt_cv_dlopen_self_static=cross 12525else 12526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12527 lt_status=$lt_dlunknown 12528 cat > conftest.$ac_ext <<_LT_EOF 12529#line $LINENO "configure" 12530#include "confdefs.h" 12531 12532#if HAVE_DLFCN_H 12533#include <dlfcn.h> 12534#endif 12535 12536#include <stdio.h> 12537 12538#ifdef RTLD_GLOBAL 12539# define LT_DLGLOBAL RTLD_GLOBAL 12540#else 12541# ifdef DL_GLOBAL 12542# define LT_DLGLOBAL DL_GLOBAL 12543# else 12544# define LT_DLGLOBAL 0 12545# endif 12546#endif 12547 12548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12549 find out it does not work in some platform. */ 12550#ifndef LT_DLLAZY_OR_NOW 12551# ifdef RTLD_LAZY 12552# define LT_DLLAZY_OR_NOW RTLD_LAZY 12553# else 12554# ifdef DL_LAZY 12555# define LT_DLLAZY_OR_NOW DL_LAZY 12556# else 12557# ifdef RTLD_NOW 12558# define LT_DLLAZY_OR_NOW RTLD_NOW 12559# else 12560# ifdef DL_NOW 12561# define LT_DLLAZY_OR_NOW DL_NOW 12562# else 12563# define LT_DLLAZY_OR_NOW 0 12564# endif 12565# endif 12566# endif 12567# endif 12568#endif 12569 12570/* When -fvisibility=hidden is used, assume the code has been annotated 12571 correspondingly for the symbols needed. */ 12572#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12573int fnord () __attribute__((visibility("default"))); 12574#endif 12575 12576int fnord () { return 42; } 12577int main () 12578{ 12579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12580 int status = $lt_dlunknown; 12581 12582 if (self) 12583 { 12584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12585 else 12586 { 12587 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12588 else puts (dlerror ()); 12589 } 12590 /* dlclose (self); */ 12591 } 12592 else 12593 puts (dlerror ()); 12594 12595 return status; 12596} 12597_LT_EOF 12598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12599 (eval $ac_link) 2>&5 12600 ac_status=$? 12601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12602 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12603 (./conftest; exit; ) >&5 2>/dev/null 12604 lt_status=$? 12605 case x$lt_status in 12606 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12607 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12608 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12609 esac 12610 else : 12611 # compilation failed 12612 lt_cv_dlopen_self_static=no 12613 fi 12614fi 12615rm -fr conftest* 12616 12617 12618fi 12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12620$as_echo "$lt_cv_dlopen_self_static" >&6; } 12621 fi 12622 12623 CPPFLAGS=$save_CPPFLAGS 12624 LDFLAGS=$save_LDFLAGS 12625 LIBS=$save_LIBS 12626 ;; 12627 esac 12628 12629 case $lt_cv_dlopen_self in 12630 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12631 *) enable_dlopen_self=unknown ;; 12632 esac 12633 12634 case $lt_cv_dlopen_self_static in 12635 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12636 *) enable_dlopen_self_static=unknown ;; 12637 esac 12638fi 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656striplib= 12657old_striplib= 12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12659$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12660if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12661 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12662 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12664$as_echo "yes" >&6; } 12665else 12666# FIXME - insert some real tests, host_os isn't really good enough 12667 case $host_os in 12668 darwin*) 12669 if test -n "$STRIP"; then 12670 striplib="$STRIP -x" 12671 old_striplib="$STRIP -S" 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12673$as_echo "yes" >&6; } 12674 else 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12676$as_echo "no" >&6; } 12677 fi 12678 ;; 12679 *) 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12681$as_echo "no" >&6; } 12682 ;; 12683 esac 12684fi 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 # Report what library types will actually be built 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12699$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12701$as_echo "$can_build_shared" >&6; } 12702 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12704$as_echo_n "checking whether to build shared libraries... " >&6; } 12705 test no = "$can_build_shared" && enable_shared=no 12706 12707 # On AIX, shared libraries and static libraries use the same namespace, and 12708 # are all built from PIC. 12709 case $host_os in 12710 aix3*) 12711 test yes = "$enable_shared" && enable_static=no 12712 if test -n "$RANLIB"; then 12713 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12714 postinstall_cmds='$RANLIB $lib' 12715 fi 12716 ;; 12717 12718 aix[4-9]*) 12719 if test ia64 != "$host_cpu"; then 12720 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12721 yes,aix,yes) ;; # shared object as lib.so file only 12722 yes,svr4,*) ;; # shared object as lib.so archive member only 12723 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12724 esac 12725 fi 12726 ;; 12727 esac 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12729$as_echo "$enable_shared" >&6; } 12730 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12732$as_echo_n "checking whether to build static libraries... " >&6; } 12733 # Make sure either enable_shared or enable_static is yes. 12734 test yes = "$enable_shared" || enable_static=yes 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12736$as_echo "$enable_static" >&6; } 12737 12738 12739 12740 12741fi 12742ac_ext=c 12743ac_cpp='$CPP $CPPFLAGS' 12744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12746ac_compiler_gnu=$ac_cv_c_compiler_gnu 12747 12748CC=$lt_save_CC 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 ac_config_commands="$ac_config_commands libtool" 12765 12766 12767 12768 12769# Only expand once: 12770 12771 12772 12773for ac_prog in flex lex 12774do 12775 # Extract the first word of "$ac_prog", so it can be a program name with args. 12776set dummy $ac_prog; ac_word=$2 12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12778$as_echo_n "checking for $ac_word... " >&6; } 12779if ${ac_cv_prog_LEX+:} false; then : 12780 $as_echo_n "(cached) " >&6 12781else 12782 if test -n "$LEX"; then 12783 ac_cv_prog_LEX="$LEX" # Let the user override the test. 12784else 12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12786for as_dir in $PATH 12787do 12788 IFS=$as_save_IFS 12789 test -z "$as_dir" && as_dir=. 12790 for ac_exec_ext in '' $ac_executable_extensions; do 12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12792 ac_cv_prog_LEX="$ac_prog" 12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12794 break 2 12795 fi 12796done 12797 done 12798IFS=$as_save_IFS 12799 12800fi 12801fi 12802LEX=$ac_cv_prog_LEX 12803if test -n "$LEX"; then 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 12805$as_echo "$LEX" >&6; } 12806else 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12808$as_echo "no" >&6; } 12809fi 12810 12811 12812 test -n "$LEX" && break 12813done 12814test -n "$LEX" || LEX=":" 12815 12816if test "x$LEX" != "x:"; then 12817 cat >conftest.l <<_ACEOF 12818%% 12819a { ECHO; } 12820b { REJECT; } 12821c { yymore (); } 12822d { yyless (1); } 12823e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 12824 yyless ((input () != 0)); } 12825f { unput (yytext[0]); } 12826. { BEGIN INITIAL; } 12827%% 12828#ifdef YYTEXT_POINTER 12829extern char *yytext; 12830#endif 12831int 12832main (void) 12833{ 12834 return ! yylex () + ! yywrap (); 12835} 12836_ACEOF 12837{ { ac_try="$LEX conftest.l" 12838case "(($ac_try" in 12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12840 *) ac_try_echo=$ac_try;; 12841esac 12842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12843$as_echo "$ac_try_echo"; } >&5 12844 (eval "$LEX conftest.l") 2>&5 12845 ac_status=$? 12846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12847 test $ac_status = 0; } 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 12849$as_echo_n "checking lex output file root... " >&6; } 12850if ${ac_cv_prog_lex_root+:} false; then : 12851 $as_echo_n "(cached) " >&6 12852else 12853 12854if test -f lex.yy.c; then 12855 ac_cv_prog_lex_root=lex.yy 12856elif test -f lexyy.c; then 12857 ac_cv_prog_lex_root=lexyy 12858else 12859 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 12860fi 12861fi 12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 12863$as_echo "$ac_cv_prog_lex_root" >&6; } 12864LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 12865 12866if test -z "${LEXLIB+set}"; then 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 12868$as_echo_n "checking lex library... " >&6; } 12869if ${ac_cv_lib_lex+:} false; then : 12870 $as_echo_n "(cached) " >&6 12871else 12872 12873 ac_save_LIBS=$LIBS 12874 ac_cv_lib_lex='none needed' 12875 for ac_lib in '' -lfl -ll; do 12876 LIBS="$ac_lib $ac_save_LIBS" 12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879`cat $LEX_OUTPUT_ROOT.c` 12880_ACEOF 12881if ac_fn_c_try_link "$LINENO"; then : 12882 ac_cv_lib_lex=$ac_lib 12883fi 12884rm -f core conftest.err conftest.$ac_objext \ 12885 conftest$ac_exeext conftest.$ac_ext 12886 test "$ac_cv_lib_lex" != 'none needed' && break 12887 done 12888 LIBS=$ac_save_LIBS 12889 12890fi 12891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 12892$as_echo "$ac_cv_lib_lex" >&6; } 12893 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 12894fi 12895 12896 12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 12898$as_echo_n "checking whether yytext is a pointer... " >&6; } 12899if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901else 12902 # POSIX says lex can declare yytext either as a pointer or an array; the 12903# default is implementation-dependent. Figure out which it is, since 12904# not all implementations provide the %pointer and %array declarations. 12905ac_cv_prog_lex_yytext_pointer=no 12906ac_save_LIBS=$LIBS 12907LIBS="$LEXLIB $ac_save_LIBS" 12908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12909/* end confdefs.h. */ 12910 12911 #define YYTEXT_POINTER 1 12912`cat $LEX_OUTPUT_ROOT.c` 12913_ACEOF 12914if ac_fn_c_try_link "$LINENO"; then : 12915 ac_cv_prog_lex_yytext_pointer=yes 12916fi 12917rm -f core conftest.err conftest.$ac_objext \ 12918 conftest$ac_exeext conftest.$ac_ext 12919LIBS=$ac_save_LIBS 12920 12921fi 12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 12923$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 12924if test $ac_cv_prog_lex_yytext_pointer = yes; then 12925 12926$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 12927 12928fi 12929rm -f conftest.l $LEX_OUTPUT_ROOT.c 12930 12931fi 12932if test "$LEX" = :; then 12933 LEX=${am_missing_run}flex 12934fi 12935for ac_prog in 'bison -y' byacc 12936do 12937 # Extract the first word of "$ac_prog", so it can be a program name with args. 12938set dummy $ac_prog; ac_word=$2 12939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12940$as_echo_n "checking for $ac_word... " >&6; } 12941if ${ac_cv_prog_YACC+:} false; then : 12942 $as_echo_n "(cached) " >&6 12943else 12944 if test -n "$YACC"; then 12945 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12946else 12947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12948for as_dir in $PATH 12949do 12950 IFS=$as_save_IFS 12951 test -z "$as_dir" && as_dir=. 12952 for ac_exec_ext in '' $ac_executable_extensions; do 12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12954 ac_cv_prog_YACC="$ac_prog" 12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12956 break 2 12957 fi 12958done 12959 done 12960IFS=$as_save_IFS 12961 12962fi 12963fi 12964YACC=$ac_cv_prog_YACC 12965if test -n "$YACC"; then 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12967$as_echo "$YACC" >&6; } 12968else 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12970$as_echo "no" >&6; } 12971fi 12972 12973 12974 test -n "$YACC" && break 12975done 12976test -n "$YACC" || YACC="yacc" 12977 12978 12979# Extract the first word of "perl", so it can be a program name with args. 12980set dummy perl; ac_word=$2 12981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12982$as_echo_n "checking for $ac_word... " >&6; } 12983if ${ac_cv_path_PERL+:} false; then : 12984 $as_echo_n "(cached) " >&6 12985else 12986 case $PERL in 12987 [\\/]* | ?:[\\/]*) 12988 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 12989 ;; 12990 *) 12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12992for as_dir in $PATH 12993do 12994 IFS=$as_save_IFS 12995 test -z "$as_dir" && as_dir=. 12996 for ac_exec_ext in '' $ac_executable_extensions; do 12997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12998 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13000 break 2 13001 fi 13002done 13003 done 13004IFS=$as_save_IFS 13005 13006 ;; 13007esac 13008fi 13009PERL=$ac_cv_path_PERL 13010if test -n "$PERL"; then 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 13012$as_echo "$PERL" >&6; } 13013else 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13015$as_echo "no" >&6; } 13016fi 13017 13018 13019 13020# Extract the first word of "getconf", so it can be a program name with args. 13021set dummy getconf; ac_word=$2 13022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13023$as_echo_n "checking for $ac_word... " >&6; } 13024if ${ac_cv_path_GETCONF+:} false; then : 13025 $as_echo_n "(cached) " >&6 13026else 13027 case $GETCONF in 13028 [\\/]* | ?:[\\/]*) 13029 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path. 13030 ;; 13031 *) 13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13033as_dummy="$PATH:$prefix/bin:/usr/bin:/usr/local/bin:/sw/bin" 13034for as_dir in $as_dummy 13035do 13036 IFS=$as_save_IFS 13037 test -z "$as_dir" && as_dir=. 13038 for ac_exec_ext in '' $ac_executable_extensions; do 13039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13040 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext" 13041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13042 break 2 13043 fi 13044done 13045 done 13046IFS=$as_save_IFS 13047 13048 test -z "$ac_cv_path_GETCONF" && ac_cv_path_GETCONF="false" 13049 ;; 13050esac 13051fi 13052GETCONF=$ac_cv_path_GETCONF 13053if test -n "$GETCONF"; then 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 13055$as_echo "$GETCONF" >&6; } 13056else 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13058$as_echo "no" >&6; } 13059fi 13060 13061 13062 if test "x$cross_compiling" = "xyes"; then 13063 CROSS_COMPILING_TRUE= 13064 CROSS_COMPILING_FALSE='#' 13065else 13066 CROSS_COMPILING_TRUE='#' 13067 CROSS_COMPILING_FALSE= 13068fi 13069 13070 13071 13072 13073 13074# Check whether --with-pthreads was given. 13075if test "${with_pthreads+set}" = set; then : 13076 withval=$with_pthreads; 13077fi 13078 13079 13080if test "x$with_pthreads" != x && test "x$with_pthreads" != "xyes" && test "x$with_pthreads" != "xno"; then 13081 LIBS="$LIBS -L$with_pthreads/lib" 13082 CPPFLAGS="-I$with_pthreads/include $CPPFLAGS" 13083fi 13084 13085 13086 13087 13088ac_ext=c 13089ac_cpp='$CPP $CPPFLAGS' 13090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13092ac_compiler_gnu=$ac_cv_c_compiler_gnu 13093 13094acx_pthread_ok=no 13095 13096# We used to check for pthread.h first, but this fails if pthread.h 13097# requires special compiler flags (e.g. on True64 or Sequent). 13098# It gets checked for in the link test anyway. 13099 13100# First of all, check if the user has set any of the PTHREAD_LIBS, 13101# etcetera environment variables, and if threads linking works using 13102# them: 13103if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 13104 save_CFLAGS="$CFLAGS" 13105 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13106 save_LIBS="$LIBS" 13107 LIBS="$PTHREAD_LIBS $LIBS" 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 13109$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13111/* end confdefs.h. */ 13112 13113/* Override any GCC internal prototype to avoid an error. 13114 Use char because int might match the return type of a GCC 13115 builtin and then its argument prototype would still apply. */ 13116#ifdef __cplusplus 13117extern "C" 13118#endif 13119char pthread_join (); 13120int 13121main () 13122{ 13123return pthread_join (); 13124 ; 13125 return 0; 13126} 13127_ACEOF 13128if ac_fn_c_try_link "$LINENO"; then : 13129 acx_pthread_ok=yes 13130fi 13131rm -f core conftest.err conftest.$ac_objext \ 13132 conftest$ac_exeext conftest.$ac_ext 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 13134$as_echo "$acx_pthread_ok" >&6; } 13135 if test x"$acx_pthread_ok" = xno; then 13136 PTHREAD_LIBS="" 13137 PTHREAD_CFLAGS="" 13138 fi 13139 LIBS="$save_LIBS" 13140 CFLAGS="$save_CFLAGS" 13141fi 13142 13143# We must check for the threads library under a number of different 13144# names; the ordering is very important because some systems 13145# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 13146# libraries is broken (non-POSIX). 13147 13148# Create a list of thread flags to try. Items starting with a "-" are 13149# C compiler flags, and other items are library names, except for "none" 13150# which indicates that we try without any flags at all, and "pthread-config" 13151# which is a program returning the flags for the Pth emulation library. 13152 13153acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config pthreadGC2" 13154 13155# The ordering *is* (sometimes) important. Some notes on the 13156# individual items follow: 13157 13158# pthreads: AIX (must check this before -lpthread) 13159# none: in case threads are in libc; should be tried before -Kthread and 13160# other compiler flags to prevent continual compiler warnings 13161# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 13162# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 13163# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 13164# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 13165# -pthreads: Solaris/gcc 13166# -mthreads: Mingw32/gcc, Lynx/gcc 13167# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 13168# doesn't hurt to check since this sometimes defines pthreads too; 13169# also defines -D_REENTRANT) 13170# ... -mt is also the pthreads flag for HP/aCC 13171# pthread: Linux, etcetera 13172# --thread-safe: KAI C++ 13173# pthread-config: use pthread-config program (for GNU Pth library) 13174 13175case "${host_cpu}-${host_os}" in 13176 *solaris*) 13177 13178 # On Solaris (at least, for some versions), libc contains stubbed 13179 # (non-functional) versions of the pthreads routines, so link-based 13180 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 13181 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 13182 # a function called by this macro, so we could check for that, but 13183 # who knows whether they'll stub that too in a future libc.) So, 13184 # we'll just look for -pthreads and -lpthread first: 13185 13186 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 13187 ;; 13188esac 13189 13190if test x"$acx_pthread_ok" = xno; then 13191for flag in $acx_pthread_flags; do 13192 13193 case $flag in 13194 none) 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 13196$as_echo_n "checking whether pthreads work without any flags... " >&6; } 13197 ;; 13198 13199 -*) 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 13201$as_echo_n "checking whether pthreads work with $flag... " >&6; } 13202 PTHREAD_CFLAGS="$flag" 13203 ;; 13204 13205 pthread-config) 13206 # Extract the first word of "pthread-config", so it can be a program name with args. 13207set dummy pthread-config; ac_word=$2 13208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13209$as_echo_n "checking for $ac_word... " >&6; } 13210if ${ac_cv_prog_acx_pthread_config+:} false; then : 13211 $as_echo_n "(cached) " >&6 13212else 13213 if test -n "$acx_pthread_config"; then 13214 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 13215else 13216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13217for as_dir in $PATH 13218do 13219 IFS=$as_save_IFS 13220 test -z "$as_dir" && as_dir=. 13221 for ac_exec_ext in '' $ac_executable_extensions; do 13222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13223 ac_cv_prog_acx_pthread_config="yes" 13224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13225 break 2 13226 fi 13227done 13228 done 13229IFS=$as_save_IFS 13230 13231 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 13232fi 13233fi 13234acx_pthread_config=$ac_cv_prog_acx_pthread_config 13235if test -n "$acx_pthread_config"; then 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 13237$as_echo "$acx_pthread_config" >&6; } 13238else 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13240$as_echo "no" >&6; } 13241fi 13242 13243 13244 if test x"$acx_pthread_config" = xno; then continue; fi 13245 PTHREAD_CFLAGS="`pthread-config --cflags`" 13246 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 13247 ;; 13248 13249 *) 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 13251$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 13252 PTHREAD_LIBS="-l$flag" 13253 ;; 13254 esac 13255 13256 save_LIBS="$LIBS" 13257 save_CFLAGS="$CFLAGS" 13258 LIBS="$PTHREAD_LIBS $LIBS" 13259 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13260 13261 # Check for various functions. We must include pthread.h, 13262 # since some functions may be macros. (On the Sequent, we 13263 # need a special flag -Kthread to make this header compile.) 13264 # We check for pthread_join because it is in -lpthread on IRIX 13265 # while pthread_create is in libc. We check for pthread_attr_init 13266 # due to DEC craziness with -lpthreads. We check for 13267 # pthread_cleanup_push because it is one of the few pthread 13268 # functions on Solaris that doesn't have a non-functional libc stub. 13269 # We try pthread_create on general principles. 13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13271/* end confdefs.h. */ 13272#include <pthread.h> 13273int 13274main () 13275{ 13276pthread_t th; pthread_join(th, 0); 13277 pthread_attr_init(0); pthread_cleanup_push(0, 0); 13278 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 13279 ; 13280 return 0; 13281} 13282_ACEOF 13283if ac_fn_c_try_link "$LINENO"; then : 13284 acx_pthread_ok=yes 13285fi 13286rm -f core conftest.err conftest.$ac_objext \ 13287 conftest$ac_exeext conftest.$ac_ext 13288 13289 LIBS="$save_LIBS" 13290 CFLAGS="$save_CFLAGS" 13291 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 13293$as_echo "$acx_pthread_ok" >&6; } 13294 if test "x$acx_pthread_ok" = xyes; then 13295 break; 13296 fi 13297 13298 PTHREAD_LIBS="" 13299 PTHREAD_CFLAGS="" 13300done 13301fi 13302 13303# Various other checks: 13304if test "x$acx_pthread_ok" = xyes; then 13305 save_LIBS="$LIBS" 13306 LIBS="$PTHREAD_LIBS $LIBS" 13307 save_CFLAGS="$CFLAGS" 13308 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13309 13310 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 13312$as_echo_n "checking for joinable pthread attribute... " >&6; } 13313 attr_name=unknown 13314 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316/* end confdefs.h. */ 13317#include <pthread.h> 13318int 13319main () 13320{ 13321int attr=$attr; return attr; 13322 ; 13323 return 0; 13324} 13325_ACEOF 13326if ac_fn_c_try_link "$LINENO"; then : 13327 attr_name=$attr; break 13328fi 13329rm -f core conftest.err conftest.$ac_objext \ 13330 conftest$ac_exeext conftest.$ac_ext 13331 done 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 13333$as_echo "$attr_name" >&6; } 13334 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 13335 13336cat >>confdefs.h <<_ACEOF 13337#define PTHREAD_CREATE_JOINABLE $attr_name 13338_ACEOF 13339 13340 fi 13341 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 13343$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 13344 flag=no 13345 case "${host_cpu}-${host_os}" in 13346 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 13347 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 13348 esac 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 13350$as_echo "${flag}" >&6; } 13351 if test "x$flag" != xno; then 13352 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 13353 fi 13354 13355 LIBS="$save_LIBS" 13356 CFLAGS="$save_CFLAGS" 13357 13358 # More AIX lossage: must compile with xlc_r or cc_r 13359 if test x"$GCC" != xyes; then 13360 for ac_prog in xlc_r cc_r 13361do 13362 # Extract the first word of "$ac_prog", so it can be a program name with args. 13363set dummy $ac_prog; ac_word=$2 13364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13365$as_echo_n "checking for $ac_word... " >&6; } 13366if ${ac_cv_prog_PTHREAD_CC+:} false; then : 13367 $as_echo_n "(cached) " >&6 13368else 13369 if test -n "$PTHREAD_CC"; then 13370 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 13371else 13372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13373for as_dir in $PATH 13374do 13375 IFS=$as_save_IFS 13376 test -z "$as_dir" && as_dir=. 13377 for ac_exec_ext in '' $ac_executable_extensions; do 13378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13379 ac_cv_prog_PTHREAD_CC="$ac_prog" 13380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13381 break 2 13382 fi 13383done 13384 done 13385IFS=$as_save_IFS 13386 13387fi 13388fi 13389PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 13390if test -n "$PTHREAD_CC"; then 13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 13392$as_echo "$PTHREAD_CC" >&6; } 13393else 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13395$as_echo "no" >&6; } 13396fi 13397 13398 13399 test -n "$PTHREAD_CC" && break 13400done 13401test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 13402 13403 else 13404 PTHREAD_CC=$CC 13405 fi 13406else 13407 PTHREAD_CC="$CC" 13408fi 13409 13410 13411 13412 13413 13414# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 13415if test x"$acx_pthread_ok" = xyes; then 13416 13417$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 13418 13419 : 13420else 13421 acx_pthread_ok=no 13422 as_fn_error $? "pthread-compatible library is required to build CFEngine" "$LINENO" 5 13423fi 13424ac_ext=c 13425ac_cpp='$CPP $CPPFLAGS' 13426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13428ac_compiler_gnu=$ac_cv_c_compiler_gnu 13429 13430 13431 13432CC="$PTHREAD_CC" 13433CFLAGS="$PTHREAD_CFLAGS $CFLAGS" 13434LIBS="$PTHREAD_LIBS $LIBS" 13435 13436 13437# Check whether --enable-builtin-extensions was given. 13438if test "${enable_builtin_extensions+set}" = set; then : 13439 enableval=$enable_builtin_extensions; 13440else 13441 13442 case ${target_os} in #( 13443 mingw*) : 13444 enable_builtin_extensions=yes ;; #( 13445 *) : 13446 enable_builtin_extensions=no ;; 13447esac 13448 13449fi 13450 13451 if test "x$enable_builtin_extensions" = "xyes"; then 13452 BUILTIN_EXTENSIONS_TRUE= 13453 BUILTIN_EXTENSIONS_FALSE='#' 13454else 13455 BUILTIN_EXTENSIONS_TRUE='#' 13456 BUILTIN_EXTENSIONS_FALSE= 13457fi 13458 13459if test "x$enable_builtin_extensions" = "xyes"; then : 13460 13461$as_echo "#define BUILTIN_EXTENSIONS 1" >>confdefs.h 13462 13463fi 13464 13465 13466 13467# Check whether --enable-fhs was given. 13468if test "${enable_fhs+set}" = set; then : 13469 enableval=$enable_fhs; 13470fi 13471 13472 13473# 13474# pkglibdir/pkgdatadir are not overridable, so use our own invention instead. 13475# 13476 13477if test x"$enable_fhs" = xyes; then : 13478 13479 projlibdir='${pkglibdir}' 13480 WORKDIR='${localstatedir}/lib/cfengine' 13481 MASTERDIR='default' 13482 INPUTDIR='default' 13483 DATADIR='default' 13484 LOGDIR='${localstatedir}/log/cfengine' 13485 PIDDIR='${runstatedir:-${localstatedir}/run}/cfengine' 13486 STATEDIR='default' 13487 13488else 13489 13490 if test x"$prefix" = xNONE || test x"$prefix" = x/var/cfengine; then 13491 prefix=/var/cfengine 13492 case "$target_os" in 13493 mingw*) 13494 WORKDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g') 13495 MASTERDIR=default 13496 INPUTDIR=default 13497 DATADIR=default 13498 LOGDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g') 13499 PIDDIR=$(cmd /c "echo %PROGRAMFILES%\\Cfengine" | sed 's/\\/\\\\/g') 13500 STATEDIR=default 13501 ;; 13502 *) 13503 WORKDIR=/var/cfengine 13504 MASTERDIR=default 13505 INPUTDIR=default 13506 DATADIR=default 13507 LOGDIR=/var/cfengine 13508 PIDDIR=/var/cfengine 13509 STATEDIR=default 13510 ;; 13511 esac 13512 else 13513 WORKDIR="${localstatedir}/${PACKAGE}" 13514 MASTERDIR="default" 13515 INPUTDIR="default" 13516 DATADIR="default" 13517 LOGDIR="${localstatedir}/${PACKAGE}" 13518 PIDDIR="${localstatedir}/${PACKAGE}" 13519 STATEDIR="default" 13520 fi 13521 bindir="${bindir:-${exec_prefix}/bin}" 13522 projlibdir='${libdir}' 13523 13524fi 13525 13526 13527 13528 13529case ${target_os} in #( 13530 mingw*) : 13531 # Disable printf format warnings, because our wrapper supports more 13532 # flags than vanilla Windows version, so they are false positives. 13533 CFLAGS="$CFLAGS -Wno-format" ;; #( 13534 *) : 13535 ;; 13536esac 13537 13538 13539# Check whether --enable-debug was given. 13540if test "${enable_debug+set}" = set; then : 13541 enableval=$enable_debug; debug=$enableval 13542else 13543 debug=no 13544fi 13545 13546 if test x"$debug" = x"no"; then 13547 NDEBUG_TRUE= 13548 NDEBUG_FALSE='#' 13549else 13550 NDEBUG_TRUE='#' 13551 NDEBUG_FALSE= 13552fi 13553 13554 13555 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug option" >&5 13557$as_echo_n "checking for debug option... " >&6; } 13558if test x"$debug" = x"yes" 13559then 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13561$as_echo "yes" >&6; } 13562 CFLAGS="$CFLAGS -g3 -O0 $ENV_CFLAGS" 13563else 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13565$as_echo "no" >&6; } 13566 CFLAGS="$CFLAGS -O2 -DNDEBUG $ENV_CFLAGS" 13567fi 13568 13569 13570 13571# TODO remove 13572 13573# Check whether --with-sql was given. 13574if test "${with_sql+set}" = set; then : 13575 withval=$with_sql; with_postgresql=$with_sql; with_mysql=$with_sql 13576fi 13577 13578 13579 13580 13581# Check whether --with-postgresql was given. 13582if test "${with_postgresql+set}" = set; then : 13583 withval=$with_postgresql; 13584else 13585 with_postgresql=check 13586fi 13587 13588 13589if test "x$with_postgresql" != "xno" 13590then 13591 if test "x$with_postgresql" != xyes && test "x$with_postgresql" != xcheck 13592 then 13593 PG_CONFIG=$with_postgresql/bin/pg_config 13594 else 13595 PG_CONFIG=pg_config 13596 fi 13597 13598 # pg_config is only for native builds 13599 if test "x$cross_compiling" = "xno" 13600 then 13601 if test x`which $PG_CONFIG` != x 13602 then 13603 pg_include_dir=`$PG_CONFIG --includedir` 13604 if test -n "$pg_include_dir" 13605 then 13606 POSTGRESQL_CPPFLAGS="-I$pg_include_dir" 13607 fi 13608 fi 13609 fi 13610 13611 13612 13613 13614 # 13615 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 13616 # 13617 if test "x$with_postgresql" != xyes && 13618 test "x$with_postgresql" != xcheck && 13619 test "x$with_postgresql" != x 13620 then 13621 test -z "$POSTGRESQL_PATH" && POSTGRESQL_PATH="$with_postgresql" 13622 if test "x$with_postgresql" != x/usr && 13623 test "x$with_postgresql" != x/ 13624 then 13625 test -z "$POSTGRESQL_CFLAGS" && POSTGRESQL_CFLAGS="" 13626 test -z "$POSTGRESQL_CPPFLAGS" && POSTGRESQL_CPPFLAGS="-I$with_postgresql/include" 13627 test -z "$POSTGRESQL_LDFLAGS" && POSTGRESQL_LDFLAGS="-L$with_postgresql/lib" 13628 fi 13629 else 13630 POSTGRESQL_PATH="default path" 13631 fi 13632 13633 # 13634 # Save old environment 13635 # 13636 save_CFLAGS="$CFLAGS" 13637 save_CPPFLAGS="$CPPFLAGS" 13638 save_LDFLAGS="$LDFLAGS" 13639 save_LIBS="$LIBS" 13640 13641 CFLAGS="$CFLAGS $POSTGRESQL_CFLAGS" 13642 CPPFLAGS="$CPPFLAGS $POSTGRESQL_CPPFLAGS" 13643 LDFLAGS="$LDFLAGS $POSTGRESQL_LDFLAGS" 13644 13645 # 13646 # Run checks passed as argument 13647 # 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5 13649$as_echo_n "checking for PQconnectdb in -lpq... " >&6; } 13650if ${ac_cv_lib_pq_PQconnectdb+:} false; then : 13651 $as_echo_n "(cached) " >&6 13652else 13653 ac_check_lib_save_LIBS=$LIBS 13654LIBS="-lpq $LIBS" 13655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656/* end confdefs.h. */ 13657 13658/* Override any GCC internal prototype to avoid an error. 13659 Use char because int might match the return type of a GCC 13660 builtin and then its argument prototype would still apply. */ 13661#ifdef __cplusplus 13662extern "C" 13663#endif 13664char PQconnectdb (); 13665int 13666main () 13667{ 13668return PQconnectdb (); 13669 ; 13670 return 0; 13671} 13672_ACEOF 13673if ac_fn_c_try_link "$LINENO"; then : 13674 ac_cv_lib_pq_PQconnectdb=yes 13675else 13676 ac_cv_lib_pq_PQconnectdb=no 13677fi 13678rm -f core conftest.err conftest.$ac_objext \ 13679 conftest$ac_exeext conftest.$ac_ext 13680LIBS=$ac_check_lib_save_LIBS 13681fi 13682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5 13683$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; } 13684if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then : 13685 cat >>confdefs.h <<_ACEOF 13686#define HAVE_LIBPQ 1 13687_ACEOF 13688 13689 LIBS="-lpq $LIBS" 13690 13691else 13692 if test "x$with_postgresql" != xcheck; then 13693 as_fn_error $? "Cannot find PostgreSQL client library" "$LINENO" 5; fi 13694 13695fi 13696 13697 for ac_header in libpq-fe.h 13698do : 13699 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 13700if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 13701 cat >>confdefs.h <<_ACEOF 13702#define HAVE_LIBPQ_FE_H 1 13703_ACEOF 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 13711done 13712 13713 13714 13715 # 13716 # Pick up any libraries added by tests 13717 # 13718 test -z "$POSTGRESQL_LIBS" && POSTGRESQL_LIBS="$LIBS" 13719 13720 # 13721 # libtool understands -R$path, but we are not using libtool in configure 13722 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 13723 # 13724 if test "x$with_postgresql" != xyes && 13725 test "x$with_postgresql" != xcheck && 13726 test "x$with_postgresql" != x/usr && 13727 test "x$with_postgresql" != x/ 13728 then 13729 POSTGRESQL_LDFLAGS="$POSTGRESQL_LDFLAGS -R$with_postgresql/lib" 13730 fi 13731 13732 # 13733 # Restore pristine environment 13734 # 13735 CFLAGS="$save_CFLAGS" 13736 CPPFLAGS="$save_CPPFLAGS" 13737 LDFLAGS="$save_LDFLAGS" 13738 LIBS="$save_LIBS" 13739 13740 13741 13742 13743 13744 13745 13746fi 13747 13748 13749 13750# Check whether --with-mysql was given. 13751if test "${with_mysql+set}" = set; then : 13752 withval=$with_mysql; 13753else 13754 with_mysql=check 13755fi 13756 13757 13758if test "x$with_mysql" != "xno" 13759then 13760 if test "x$with_mysql" != xyes && 13761 test "x$with_mysql" != xcheck 13762 then 13763 MYSQL_CONFIG=$with_mysql/bin/mysql_config 13764 else 13765 MYSQL_CONFIG=mysql_config 13766 fi 13767 13768 # mysql_config is only for native builds 13769 if test "x$cross_compiling" = "xno" 13770 then 13771 if test x`which $MYSQL_CONFIG` != x 13772 then 13773 mysql_include_dir=`$MYSQL_CONFIG --include` 13774 if test -n "$mysql_include_dir" 13775 then 13776 MYSQL_CPPFLAGS="$mysql_include_dir" 13777 fi 13778 fi 13779 fi 13780 13781 13782 13783 13784 # 13785 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 13786 # 13787 if test "x$with_mysql" != xyes && 13788 test "x$with_mysql" != xcheck && 13789 test "x$with_mysql" != x 13790 then 13791 test -z "$MYSQL_PATH" && MYSQL_PATH="$with_mysql" 13792 if test "x$with_mysql" != x/usr && 13793 test "x$with_mysql" != x/ 13794 then 13795 test -z "$MYSQL_CFLAGS" && MYSQL_CFLAGS="" 13796 test -z "$MYSQL_CPPFLAGS" && MYSQL_CPPFLAGS="-I$with_mysql/include" 13797 test -z "$MYSQL_LDFLAGS" && MYSQL_LDFLAGS="-L$with_mysql/lib" 13798 fi 13799 else 13800 MYSQL_PATH="default path" 13801 fi 13802 13803 # 13804 # Save old environment 13805 # 13806 save_CFLAGS="$CFLAGS" 13807 save_CPPFLAGS="$CPPFLAGS" 13808 save_LDFLAGS="$LDFLAGS" 13809 save_LIBS="$LIBS" 13810 13811 CFLAGS="$CFLAGS $MYSQL_CFLAGS" 13812 CPPFLAGS="$CPPFLAGS $MYSQL_CPPFLAGS" 13813 LDFLAGS="$LDFLAGS $MYSQL_LDFLAGS" 13814 13815 # 13816 # Run checks passed as argument 13817 # 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_real_connect in -lmysqlclient" >&5 13819$as_echo_n "checking for mysql_real_connect in -lmysqlclient... " >&6; } 13820if ${ac_cv_lib_mysqlclient_mysql_real_connect+:} false; then : 13821 $as_echo_n "(cached) " >&6 13822else 13823 ac_check_lib_save_LIBS=$LIBS 13824LIBS="-lmysqlclient $LIBS" 13825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13826/* end confdefs.h. */ 13827 13828/* Override any GCC internal prototype to avoid an error. 13829 Use char because int might match the return type of a GCC 13830 builtin and then its argument prototype would still apply. */ 13831#ifdef __cplusplus 13832extern "C" 13833#endif 13834char mysql_real_connect (); 13835int 13836main () 13837{ 13838return mysql_real_connect (); 13839 ; 13840 return 0; 13841} 13842_ACEOF 13843if ac_fn_c_try_link "$LINENO"; then : 13844 ac_cv_lib_mysqlclient_mysql_real_connect=yes 13845else 13846 ac_cv_lib_mysqlclient_mysql_real_connect=no 13847fi 13848rm -f core conftest.err conftest.$ac_objext \ 13849 conftest$ac_exeext conftest.$ac_ext 13850LIBS=$ac_check_lib_save_LIBS 13851fi 13852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_real_connect" >&5 13853$as_echo "$ac_cv_lib_mysqlclient_mysql_real_connect" >&6; } 13854if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = xyes; then : 13855 cat >>confdefs.h <<_ACEOF 13856#define HAVE_LIBMYSQLCLIENT 1 13857_ACEOF 13858 13859 LIBS="-lmysqlclient $LIBS" 13860 13861else 13862 if test "x$with_mysql" != xcheck; then 13863 as_fn_error $? "Cannot find MySQL client library" "$LINENO" 5; fi 13864 13865fi 13866 13867 for ac_header in mysql.h 13868do : 13869 ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default" 13870if test "x$ac_cv_header_mysql_h" = xyes; then : 13871 cat >>confdefs.h <<_ACEOF 13872#define HAVE_MYSQL_H 1 13873_ACEOF 13874 13875else 13876 if test "x$with_mysql" != xcheck; then 13877 as_fn_error $? "Cannot find MySQL clientlibrary" "$LINENO" 5; fi 13878 13879fi 13880 13881done 13882 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_init in -lmysqlclient" >&5 13884$as_echo_n "checking for EVP_CIPHER_CTX_init in -lmysqlclient... " >&6; } 13885if ${ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init+:} false; then : 13886 $as_echo_n "(cached) " >&6 13887else 13888 ac_check_lib_save_LIBS=$LIBS 13889LIBS="-lmysqlclient $LIBS" 13890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13891/* end confdefs.h. */ 13892 13893/* Override any GCC internal prototype to avoid an error. 13894 Use char because int might match the return type of a GCC 13895 builtin and then its argument prototype would still apply. */ 13896#ifdef __cplusplus 13897extern "C" 13898#endif 13899char EVP_CIPHER_CTX_init (); 13900int 13901main () 13902{ 13903return EVP_CIPHER_CTX_init (); 13904 ; 13905 return 0; 13906} 13907_ACEOF 13908if ac_fn_c_try_link "$LINENO"; then : 13909 ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=yes 13910else 13911 ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init=no 13912fi 13913rm -f core conftest.err conftest.$ac_objext \ 13914 conftest$ac_exeext conftest.$ac_ext 13915LIBS=$ac_check_lib_save_LIBS 13916fi 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&5 13918$as_echo "$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" >&6; } 13919if test "x$ac_cv_lib_mysqlclient_EVP_CIPHER_CTX_init" = xyes; then : 13920 as_fn_error $? "MySQL client library exports symbols clashing \ 13921 with OpenSSL. Get the update from distribution provider, \ 13922 recompile MySQL library or disable MySQL connector. See \ 13923 http://bugs.mysql.com/bug.php?id=65055 for details." "$LINENO" 5 13924 13925 13926fi 13927 13928 13929 13930 # 13931 # Pick up any libraries added by tests 13932 # 13933 test -z "$MYSQL_LIBS" && MYSQL_LIBS="$LIBS" 13934 13935 # 13936 # libtool understands -R$path, but we are not using libtool in configure 13937 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 13938 # 13939 if test "x$with_mysql" != xyes && 13940 test "x$with_mysql" != xcheck && 13941 test "x$with_mysql" != x/usr && 13942 test "x$with_mysql" != x/ 13943 then 13944 MYSQL_LDFLAGS="$MYSQL_LDFLAGS -R$with_mysql/lib" 13945 fi 13946 13947 # 13948 # Restore pristine environment 13949 # 13950 CFLAGS="$save_CFLAGS" 13951 CPPFLAGS="$save_CPPFLAGS" 13952 LDFLAGS="$save_LDFLAGS" 13953 LIBS="$save_LIBS" 13954 13955 13956 13957 13958 13959 13960 13961fi 13962 13963 13964 13965# Check whether --with-openssl was given. 13966if test "${with_openssl+set}" = set; then : 13967 withval=$with_openssl; 13968else 13969 with_openssl=yes 13970fi 13971 13972 13973if test -d /usr/local/Cellar/openssl/ && \ 13974 test -d /usr/local/opt/openssl/ && \ 13975 test "x$with_openssl" = "xyes" ; then 13976 with_openssl="/usr/local/opt/openssl" 13977 echo "OS X Homebrew detected" 13978 echo "Defaulting to: --with-openssl=$with_openssl" 13979fi 13980 13981if test "x$with_openssl" != "xno"; then 13982 13983 13984 13985 # 13986 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 13987 # 13988 if test "x$with_openssl" != xyes && 13989 test "x$with_openssl" != xcheck && 13990 test "x$with_openssl" != x 13991 then 13992 test -z "$OPENSSL_PATH" && OPENSSL_PATH="$with_openssl" 13993 if test "x$with_openssl" != x/usr && 13994 test "x$with_openssl" != x/ 13995 then 13996 test -z "$OPENSSL_CFLAGS" && OPENSSL_CFLAGS="" 13997 test -z "$OPENSSL_CPPFLAGS" && OPENSSL_CPPFLAGS="-I$with_openssl/include" 13998 test -z "$OPENSSL_LDFLAGS" && OPENSSL_LDFLAGS="-L$with_openssl/lib" 13999 fi 14000 else 14001 OPENSSL_PATH="default path" 14002 fi 14003 14004 # 14005 # Save old environment 14006 # 14007 save_CFLAGS="$CFLAGS" 14008 save_CPPFLAGS="$CPPFLAGS" 14009 save_LDFLAGS="$LDFLAGS" 14010 save_LIBS="$LIBS" 14011 14012 CFLAGS="$CFLAGS $OPENSSL_CFLAGS" 14013 CPPFLAGS="$CPPFLAGS $OPENSSL_CPPFLAGS" 14014 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 14015 14016 # 14017 # Run checks passed as argument 14018 # 14019 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_generate_key_ex in -lcrypto" >&5 14021$as_echo_n "checking for RSA_generate_key_ex in -lcrypto... " >&6; } 14022if ${ac_cv_lib_crypto_RSA_generate_key_ex+:} false; then : 14023 $as_echo_n "(cached) " >&6 14024else 14025 ac_check_lib_save_LIBS=$LIBS 14026LIBS="-lcrypto $LIBS" 14027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028/* end confdefs.h. */ 14029 14030/* Override any GCC internal prototype to avoid an error. 14031 Use char because int might match the return type of a GCC 14032 builtin and then its argument prototype would still apply. */ 14033#ifdef __cplusplus 14034extern "C" 14035#endif 14036char RSA_generate_key_ex (); 14037int 14038main () 14039{ 14040return RSA_generate_key_ex (); 14041 ; 14042 return 0; 14043} 14044_ACEOF 14045if ac_fn_c_try_link "$LINENO"; then : 14046 ac_cv_lib_crypto_RSA_generate_key_ex=yes 14047else 14048 ac_cv_lib_crypto_RSA_generate_key_ex=no 14049fi 14050rm -f core conftest.err conftest.$ac_objext \ 14051 conftest$ac_exeext conftest.$ac_ext 14052LIBS=$ac_check_lib_save_LIBS 14053fi 14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_generate_key_ex" >&5 14055$as_echo "$ac_cv_lib_crypto_RSA_generate_key_ex" >&6; } 14056if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = xyes; then : 14057 cat >>confdefs.h <<_ACEOF 14058#define HAVE_LIBCRYPTO 1 14059_ACEOF 14060 14061 LIBS="-lcrypto $LIBS" 14062 14063fi 14064 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_free in -lssl" >&5 14066$as_echo_n "checking for SSL_free in -lssl... " >&6; } 14067if ${ac_cv_lib_ssl_SSL_free+:} false; then : 14068 $as_echo_n "(cached) " >&6 14069else 14070 ac_check_lib_save_LIBS=$LIBS 14071LIBS="-lssl $LIBS" 14072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14073/* end confdefs.h. */ 14074 14075/* Override any GCC internal prototype to avoid an error. 14076 Use char because int might match the return type of a GCC 14077 builtin and then its argument prototype would still apply. */ 14078#ifdef __cplusplus 14079extern "C" 14080#endif 14081char SSL_free (); 14082int 14083main () 14084{ 14085return SSL_free (); 14086 ; 14087 return 0; 14088} 14089_ACEOF 14090if ac_fn_c_try_link "$LINENO"; then : 14091 ac_cv_lib_ssl_SSL_free=yes 14092else 14093 ac_cv_lib_ssl_SSL_free=no 14094fi 14095rm -f core conftest.err conftest.$ac_objext \ 14096 conftest$ac_exeext conftest.$ac_ext 14097LIBS=$ac_check_lib_save_LIBS 14098fi 14099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_free" >&5 14100$as_echo "$ac_cv_lib_ssl_SSL_free" >&6; } 14101if test "x$ac_cv_lib_ssl_SSL_free" = xyes; then : 14102 cat >>confdefs.h <<_ACEOF 14103#define HAVE_LIBSSL 1 14104_ACEOF 14105 14106 LIBS="-lssl $LIBS" 14107 14108fi 14109 14110 ac_fn_c_check_decl "$LINENO" "SSL_CTX_clear_options" "ac_cv_have_decl_SSL_CTX_clear_options" "#include <openssl/ssl.h> 14111" 14112if test "x$ac_cv_have_decl_SSL_CTX_clear_options" = xyes; then : 14113 ac_have_decl=1 14114else 14115 ac_have_decl=0 14116fi 14117 14118cat >>confdefs.h <<_ACEOF 14119#define HAVE_DECL_SSL_CTX_CLEAR_OPTIONS $ac_have_decl 14120_ACEOF 14121 14122 for ac_header in openssl/opensslv.h 14123do : 14124 ac_fn_c_check_header_mongrel "$LINENO" "openssl/opensslv.h" "ac_cv_header_openssl_opensslv_h" "$ac_includes_default" 14125if test "x$ac_cv_header_openssl_opensslv_h" = xyes; then : 14126 cat >>confdefs.h <<_ACEOF 14127#define HAVE_OPENSSL_OPENSSLV_H 1 14128_ACEOF 14129 14130else 14131 as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5 14132fi 14133 14134done 14135 14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5 14137$as_echo_n "checking for OpenSSL version... " >&6; } 14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14139/* end confdefs.h. */ 14140 14141 #include <openssl/opensslv.h> 14142 14143 #if OPENSSL_VERSION_NUMBER < 0x0090602fL 14144 #This OpenSSL is too old 14145 #endif 14146 14147_ACEOF 14148if ac_fn_c_try_cpp "$LINENO"; then : 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 14150$as_echo "OK" >&6; } 14151else 14152 as_fn_error $? "This release of CFEngine requires OpenSSL >= 0.9.7" "$LINENO" 5 14153fi 14154rm -f conftest.err conftest.i conftest.$ac_ext 14155 14156 if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xyes" ; then 14157 14158$as_echo "#define OPENSSL_NO_DEPRECATED 1" >>confdefs.h 14159 14160 fi 14161 14162 if test "x$ac_cv_lib_crypto_RSA_generate_key_ex" = "xno" && \ 14163 test "x$ac_cv_lib_crypto_RSA_generate_key" = "xno" ; then 14164 as_fn_error $? "Cannot find OpenSSL" "$LINENO" 5 14165 fi 14166 14167 ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_1" "ac_cv_have_decl_SSL_OP_NO_TLSv1_1" "#include <openssl/ssl.h> 14168 14169" 14170if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_1" = xyes; then : 14171 14172$as_echo "#define HAVE_TLS_1_1 1" >>confdefs.h 14173 14174fi 14175 14176 ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_2" "ac_cv_have_decl_SSL_OP_NO_TLSv1_2" "#include <openssl/ssl.h> 14177 14178" 14179if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_2" = xyes; then : 14180 14181$as_echo "#define HAVE_TLS_1_2 1" >>confdefs.h 14182 14183fi 14184 14185 ac_fn_c_check_decl "$LINENO" "SSL_OP_NO_TLSv1_3" "ac_cv_have_decl_SSL_OP_NO_TLSv1_3" "#include <openssl/ssl.h> 14186 14187" 14188if test "x$ac_cv_have_decl_SSL_OP_NO_TLSv1_3" = xyes; then : 14189 14190$as_echo "#define HAVE_TLS_1_3 1" >>confdefs.h 14191 14192fi 14193 14194 14195 14196 # 14197 # Pick up any libraries added by tests 14198 # 14199 test -z "$OPENSSL_LIBS" && OPENSSL_LIBS="$LIBS" 14200 14201 # 14202 # libtool understands -R$path, but we are not using libtool in configure 14203 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14204 # 14205 if test "x$with_openssl" != xyes && 14206 test "x$with_openssl" != xcheck && 14207 test "x$with_openssl" != x/usr && 14208 test "x$with_openssl" != x/ 14209 then 14210 OPENSSL_LDFLAGS="$OPENSSL_LDFLAGS -R$with_openssl/lib" 14211 fi 14212 14213 # 14214 # Restore pristine environment 14215 # 14216 CFLAGS="$save_CFLAGS" 14217 CPPFLAGS="$save_CPPFLAGS" 14218 LDFLAGS="$save_LDFLAGS" 14219 LIBS="$save_LIBS" 14220 14221 14222 14223 14224 14225 14226 14227 14228$as_echo "#define WITH_OPENSSL 1" >>confdefs.h 14229 14230 if true; then 14231 WITH_OPENSSL_TRUE= 14232 WITH_OPENSSL_FALSE='#' 14233else 14234 WITH_OPENSSL_TRUE='#' 14235 WITH_OPENSSL_FALSE= 14236fi 14237 14238else 14239 if false; then 14240 WITH_OPENSSL_TRUE= 14241 WITH_OPENSSL_FALSE='#' 14242else 14243 WITH_OPENSSL_TRUE='#' 14244 WITH_OPENSSL_FALSE= 14245fi 14246 14247fi 14248 14249 14250 14251# Check whether --with-pcre was given. 14252if test "${with_pcre+set}" = set; then : 14253 withval=$with_pcre; 14254else 14255 with_pcre=yes 14256fi 14257 14258 14259if test "x$with_pcre" != "xno"; then 14260 14261 14262 14263 # 14264 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14265 # 14266 if test "x$with_pcre" != xyes && 14267 test "x$with_pcre" != xcheck && 14268 test "x$with_pcre" != x 14269 then 14270 test -z "$PCRE_PATH" && PCRE_PATH="$with_pcre" 14271 if test "x$with_pcre" != x/usr && 14272 test "x$with_pcre" != x/ 14273 then 14274 test -z "$PCRE_CFLAGS" && PCRE_CFLAGS="" 14275 test -z "$PCRE_CPPFLAGS" && PCRE_CPPFLAGS="-I$with_pcre/include" 14276 test -z "$PCRE_LDFLAGS" && PCRE_LDFLAGS="-L$with_pcre/lib" 14277 fi 14278 else 14279 PCRE_PATH="default path" 14280 fi 14281 14282 # 14283 # Save old environment 14284 # 14285 save_CFLAGS="$CFLAGS" 14286 save_CPPFLAGS="$CPPFLAGS" 14287 save_LDFLAGS="$LDFLAGS" 14288 save_LIBS="$LIBS" 14289 14290 CFLAGS="$CFLAGS $PCRE_CFLAGS" 14291 CPPFLAGS="$CPPFLAGS $PCRE_CPPFLAGS" 14292 LDFLAGS="$LDFLAGS $PCRE_LDFLAGS" 14293 14294 # 14295 # Run checks passed as argument 14296 # 14297 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5 14299$as_echo_n "checking for pcre_exec in -lpcre... " >&6; } 14300if ${ac_cv_lib_pcre_pcre_exec+:} false; then : 14301 $as_echo_n "(cached) " >&6 14302else 14303 ac_check_lib_save_LIBS=$LIBS 14304LIBS="-lpcre $LIBS" 14305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306/* end confdefs.h. */ 14307 14308/* Override any GCC internal prototype to avoid an error. 14309 Use char because int might match the return type of a GCC 14310 builtin and then its argument prototype would still apply. */ 14311#ifdef __cplusplus 14312extern "C" 14313#endif 14314char pcre_exec (); 14315int 14316main () 14317{ 14318return pcre_exec (); 14319 ; 14320 return 0; 14321} 14322_ACEOF 14323if ac_fn_c_try_link "$LINENO"; then : 14324 ac_cv_lib_pcre_pcre_exec=yes 14325else 14326 ac_cv_lib_pcre_pcre_exec=no 14327fi 14328rm -f core conftest.err conftest.$ac_objext \ 14329 conftest$ac_exeext conftest.$ac_ext 14330LIBS=$ac_check_lib_save_LIBS 14331fi 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5 14333$as_echo "$ac_cv_lib_pcre_pcre_exec" >&6; } 14334if test "x$ac_cv_lib_pcre_pcre_exec" = xyes; then : 14335 cat >>confdefs.h <<_ACEOF 14336#define HAVE_LIBPCRE 1 14337_ACEOF 14338 14339 LIBS="-lpcre $LIBS" 14340 14341else 14342 as_fn_error $? "Cannot find PCRE" "$LINENO" 5 14343fi 14344 14345 for ac_header in pcre.h 14346do : 14347 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" 14348if test "x$ac_cv_header_pcre_h" = xyes; then : 14349 cat >>confdefs.h <<_ACEOF 14350#define HAVE_PCRE_H 1 14351_ACEOF 14352 14353else 14354 for ac_header in pcre/pcre.h 14355do : 14356 ac_fn_c_check_header_mongrel "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default" 14357if test "x$ac_cv_header_pcre_pcre_h" = xyes; then : 14358 cat >>confdefs.h <<_ACEOF 14359#define HAVE_PCRE_PCRE_H 1 14360_ACEOF 14361 PCRE_CPPFLAGS="-Ipcre" 14362else 14363 as_fn_error $? "Cannot find PCRE" "$LINENO" 5 14364 14365fi 14366 14367done 14368 14369 14370fi 14371 14372done 14373 14374 14375 14376 # 14377 # Pick up any libraries added by tests 14378 # 14379 test -z "$PCRE_LIBS" && PCRE_LIBS="$LIBS" 14380 14381 # 14382 # libtool understands -R$path, but we are not using libtool in configure 14383 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14384 # 14385 if test "x$with_pcre" != xyes && 14386 test "x$with_pcre" != xcheck && 14387 test "x$with_pcre" != x/usr && 14388 test "x$with_pcre" != x/ 14389 then 14390 PCRE_LDFLAGS="$PCRE_LDFLAGS -R$with_pcre/lib" 14391 fi 14392 14393 # 14394 # Restore pristine environment 14395 # 14396 CFLAGS="$save_CFLAGS" 14397 CPPFLAGS="$save_CPPFLAGS" 14398 LDFLAGS="$save_LDFLAGS" 14399 LIBS="$save_LIBS" 14400 14401 14402 14403 14404 14405 14406 14407 14408$as_echo "#define WITH_PCRE 1" >>confdefs.h 14409 14410 if true; then 14411 WITH_PCRE_TRUE= 14412 WITH_PCRE_FALSE='#' 14413else 14414 WITH_PCRE_TRUE='#' 14415 WITH_PCRE_FALSE= 14416fi 14417 14418else 14419 if false; then 14420 WITH_PCRE_TRUE= 14421 WITH_PCRE_FALSE='#' 14422else 14423 WITH_PCRE_TRUE='#' 14424 WITH_PCRE_FALSE= 14425fi 14426 14427fi 14428 14429 14430 14431# Check whether --with-libvirt was given. 14432if test "${with_libvirt+set}" = set; then : 14433 withval=$with_libvirt; 14434else 14435 with_libvirt=check 14436fi 14437 14438 14439if test "x$with_libvirt" != xno 14440then 14441 14442 14443 14444 # 14445 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14446 # 14447 if test "x$with_libvirt" != xyes && 14448 test "x$with_libvirt" != xcheck && 14449 test "x$with_libvirt" != x 14450 then 14451 test -z "$LIBVIRT_PATH" && LIBVIRT_PATH="$with_libvirt" 14452 if test "x$with_libvirt" != x/usr && 14453 test "x$with_libvirt" != x/ 14454 then 14455 test -z "$LIBVIRT_CFLAGS" && LIBVIRT_CFLAGS="" 14456 test -z "$LIBVIRT_CPPFLAGS" && LIBVIRT_CPPFLAGS="-I$with_libvirt/include" 14457 test -z "$LIBVIRT_LDFLAGS" && LIBVIRT_LDFLAGS="-L$with_libvirt/lib" 14458 fi 14459 else 14460 LIBVIRT_PATH="default path" 14461 fi 14462 14463 # 14464 # Save old environment 14465 # 14466 save_CFLAGS="$CFLAGS" 14467 save_CPPFLAGS="$CPPFLAGS" 14468 save_LDFLAGS="$LDFLAGS" 14469 save_LIBS="$LIBS" 14470 14471 CFLAGS="$CFLAGS $LIBVIRT_CFLAGS" 14472 CPPFLAGS="$CPPFLAGS $LIBVIRT_CPPFLAGS" 14473 LDFLAGS="$LDFLAGS $LIBVIRT_LDFLAGS" 14474 14475 # 14476 # Run checks passed as argument 14477 # 14478 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virConnectOpen in -lvirt" >&5 14480$as_echo_n "checking for virConnectOpen in -lvirt... " >&6; } 14481if ${ac_cv_lib_virt_virConnectOpen+:} false; then : 14482 $as_echo_n "(cached) " >&6 14483else 14484 ac_check_lib_save_LIBS=$LIBS 14485LIBS="-lvirt $LIBS" 14486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14487/* end confdefs.h. */ 14488 14489/* Override any GCC internal prototype to avoid an error. 14490 Use char because int might match the return type of a GCC 14491 builtin and then its argument prototype would still apply. */ 14492#ifdef __cplusplus 14493extern "C" 14494#endif 14495char virConnectOpen (); 14496int 14497main () 14498{ 14499return virConnectOpen (); 14500 ; 14501 return 0; 14502} 14503_ACEOF 14504if ac_fn_c_try_link "$LINENO"; then : 14505 ac_cv_lib_virt_virConnectOpen=yes 14506else 14507 ac_cv_lib_virt_virConnectOpen=no 14508fi 14509rm -f core conftest.err conftest.$ac_objext \ 14510 conftest$ac_exeext conftest.$ac_ext 14511LIBS=$ac_check_lib_save_LIBS 14512fi 14513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_virt_virConnectOpen" >&5 14514$as_echo "$ac_cv_lib_virt_virConnectOpen" >&6; } 14515if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then : 14516 cat >>confdefs.h <<_ACEOF 14517#define HAVE_LIBVIRT 1 14518_ACEOF 14519 14520 LIBS="-lvirt $LIBS" 14521 14522else 14523 if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library" "$LINENO" 5; fi 14524fi 14525 14526 for ac_header in libvirt/libvirt.h 14527do : 14528 ac_fn_c_check_header_mongrel "$LINENO" "libvirt/libvirt.h" "ac_cv_header_libvirt_libvirt_h" "$ac_includes_default" 14529if test "x$ac_cv_header_libvirt_libvirt_h" = xyes; then : 14530 cat >>confdefs.h <<_ACEOF 14531#define HAVE_LIBVIRT_LIBVIRT_H 1 14532_ACEOF 14533 14534else 14535 if test "x$with_libvirt" != xcheck; then as_fn_error $? "Cannot find libvirt library headers" "$LINENO" 5; fi 14536fi 14537 14538done 14539 14540 14541 14542 # 14543 # Pick up any libraries added by tests 14544 # 14545 test -z "$LIBVIRT_LIBS" && LIBVIRT_LIBS="$LIBS" 14546 14547 # 14548 # libtool understands -R$path, but we are not using libtool in configure 14549 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14550 # 14551 if test "x$with_libvirt" != xyes && 14552 test "x$with_libvirt" != xcheck && 14553 test "x$with_libvirt" != x/usr && 14554 test "x$with_libvirt" != x/ 14555 then 14556 LIBVIRT_LDFLAGS="$LIBVIRT_LDFLAGS -R$with_libvirt/lib" 14557 fi 14558 14559 # 14560 # Restore pristine environment 14561 # 14562 CFLAGS="$save_CFLAGS" 14563 CPPFLAGS="$save_CPPFLAGS" 14564 LDFLAGS="$save_LDFLAGS" 14565 LIBS="$save_LIBS" 14566 14567 14568 14569 14570 14571 14572 14573fi 14574 14575 14576 14577 14578# Check whether --with-libacl was given. 14579if test "${with_libacl+set}" = set; then : 14580 withval=$with_libacl; 14581else 14582 with_libacl=check 14583fi 14584 14585 14586if test "x$with_libacl" != xno 14587then 14588 14589 14590 14591 # 14592 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14593 # 14594 if test "x$with_libacl" != xyes && 14595 test "x$with_libacl" != xcheck && 14596 test "x$with_libacl" != x 14597 then 14598 test -z "$LIBACL_PATH" && LIBACL_PATH="$with_libacl" 14599 if test "x$with_libacl" != x/usr && 14600 test "x$with_libacl" != x/ 14601 then 14602 test -z "$LIBACL_CFLAGS" && LIBACL_CFLAGS="" 14603 test -z "$LIBACL_CPPFLAGS" && LIBACL_CPPFLAGS="-I$with_libacl/include" 14604 test -z "$LIBACL_LDFLAGS" && LIBACL_LDFLAGS="-L$with_libacl/lib" 14605 fi 14606 else 14607 LIBACL_PATH="default path" 14608 fi 14609 14610 # 14611 # Save old environment 14612 # 14613 save_CFLAGS="$CFLAGS" 14614 save_CPPFLAGS="$CPPFLAGS" 14615 save_LDFLAGS="$LDFLAGS" 14616 save_LIBS="$LIBS" 14617 14618 CFLAGS="$CFLAGS $LIBACL_CFLAGS" 14619 CPPFLAGS="$CPPFLAGS $LIBACL_CPPFLAGS" 14620 LDFLAGS="$LDFLAGS $LIBACL_LDFLAGS" 14621 14622 # 14623 # Run checks passed as argument 14624 # 14625 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_init in -lacl" >&5 14627$as_echo_n "checking for acl_init in -lacl... " >&6; } 14628if ${ac_cv_lib_acl_acl_init+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 ac_check_lib_save_LIBS=$LIBS 14632LIBS="-lacl $LIBS" 14633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635 14636/* Override any GCC internal prototype to avoid an error. 14637 Use char because int might match the return type of a GCC 14638 builtin and then its argument prototype would still apply. */ 14639#ifdef __cplusplus 14640extern "C" 14641#endif 14642char acl_init (); 14643int 14644main () 14645{ 14646return acl_init (); 14647 ; 14648 return 0; 14649} 14650_ACEOF 14651if ac_fn_c_try_link "$LINENO"; then : 14652 ac_cv_lib_acl_acl_init=yes 14653else 14654 ac_cv_lib_acl_acl_init=no 14655fi 14656rm -f core conftest.err conftest.$ac_objext \ 14657 conftest$ac_exeext conftest.$ac_ext 14658LIBS=$ac_check_lib_save_LIBS 14659fi 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_init" >&5 14661$as_echo "$ac_cv_lib_acl_acl_init" >&6; } 14662if test "x$ac_cv_lib_acl_acl_init" = xyes; then : 14663 cat >>confdefs.h <<_ACEOF 14664#define HAVE_LIBACL 1 14665_ACEOF 14666 14667 LIBS="-lacl $LIBS" 14668 14669else 14670 if test "x$with_libacl" != xcheck; then as_fn_error $? "Cannot find libacl library" "$LINENO" 5; fi 14671fi 14672 14673 for ac_header in acl.h sys/acl.h acl/libacl.h 14674do : 14675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14676ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14677if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14678 cat >>confdefs.h <<_ACEOF 14679#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14680_ACEOF 14681 libacl_header_found=yes 14682fi 14683 14684done 14685 14686 if test "x$libacl_header_found" != "xyes" && test "x$with_libacl" != xcheck; 14687 then 14688 as_fn_error $? "Cannot find libacl library headers" "$LINENO" 5; 14689 fi 14690 14691 14692 # 14693 # Pick up any libraries added by tests 14694 # 14695 test -z "$LIBACL_LIBS" && LIBACL_LIBS="$LIBS" 14696 14697 # 14698 # libtool understands -R$path, but we are not using libtool in configure 14699 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14700 # 14701 if test "x$with_libacl" != xyes && 14702 test "x$with_libacl" != xcheck && 14703 test "x$with_libacl" != x/usr && 14704 test "x$with_libacl" != x/ 14705 then 14706 LIBACL_LDFLAGS="$LIBACL_LDFLAGS -R$with_libacl/lib" 14707 fi 14708 14709 # 14710 # Restore pristine environment 14711 # 14712 CFLAGS="$save_CFLAGS" 14713 CPPFLAGS="$save_CPPFLAGS" 14714 LDFLAGS="$save_LDFLAGS" 14715 LIBS="$save_LIBS" 14716 14717 14718 14719 14720 14721 14722 14723fi 14724 14725 14726 14727# Check whether --with-libcurl was given. 14728if test "${with_libcurl+set}" = set; then : 14729 withval=$with_libcurl; 14730else 14731 with_libcurl=check 14732fi 14733 14734 14735if test "x$with_libcurl" != xno 14736then 14737 14738 14739 14740 # 14741 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14742 # 14743 if test "x$with_libcurl" != xyes && 14744 test "x$with_libcurl" != xcheck && 14745 test "x$with_libcurl" != x 14746 then 14747 test -z "$LIBCURL_PATH" && LIBCURL_PATH="$with_libcurl" 14748 if test "x$with_libcurl" != x/usr && 14749 test "x$with_libcurl" != x/ 14750 then 14751 test -z "$LIBCURL_CFLAGS" && LIBCURL_CFLAGS="" 14752 test -z "$LIBCURL_CPPFLAGS" && LIBCURL_CPPFLAGS="-I$with_libcurl/include" 14753 test -z "$LIBCURL_LDFLAGS" && LIBCURL_LDFLAGS="-L$with_libcurl/lib" 14754 fi 14755 else 14756 LIBCURL_PATH="default path" 14757 fi 14758 14759 # 14760 # Save old environment 14761 # 14762 save_CFLAGS="$CFLAGS" 14763 save_CPPFLAGS="$CPPFLAGS" 14764 save_LDFLAGS="$LDFLAGS" 14765 save_LIBS="$LIBS" 14766 14767 CFLAGS="$CFLAGS $LIBCURL_CFLAGS" 14768 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" 14769 LDFLAGS="$LDFLAGS $LIBCURL_LDFLAGS" 14770 14771 # 14772 # Run checks passed as argument 14773 # 14774 14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5 14776$as_echo_n "checking for curl_global_init in -lcurl... " >&6; } 14777if ${ac_cv_lib_curl_curl_global_init+:} false; then : 14778 $as_echo_n "(cached) " >&6 14779else 14780 ac_check_lib_save_LIBS=$LIBS 14781LIBS="-lcurl $LIBS" 14782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783/* end confdefs.h. */ 14784 14785/* Override any GCC internal prototype to avoid an error. 14786 Use char because int might match the return type of a GCC 14787 builtin and then its argument prototype would still apply. */ 14788#ifdef __cplusplus 14789extern "C" 14790#endif 14791char curl_global_init (); 14792int 14793main () 14794{ 14795return curl_global_init (); 14796 ; 14797 return 0; 14798} 14799_ACEOF 14800if ac_fn_c_try_link "$LINENO"; then : 14801 ac_cv_lib_curl_curl_global_init=yes 14802else 14803 ac_cv_lib_curl_curl_global_init=no 14804fi 14805rm -f core conftest.err conftest.$ac_objext \ 14806 conftest$ac_exeext conftest.$ac_ext 14807LIBS=$ac_check_lib_save_LIBS 14808fi 14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5 14810$as_echo "$ac_cv_lib_curl_curl_global_init" >&6; } 14811if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then : 14812 cat >>confdefs.h <<_ACEOF 14813#define HAVE_LIBCURL 1 14814_ACEOF 14815 14816 LIBS="-lcurl $LIBS" 14817 14818else 14819 libcurl_lib_found=no; 14820 if test "x$with_libcurl" != xcheck; 14821 then 14822 as_fn_error $? "Cannot find libcurl library" "$LINENO" 5; 14823 fi 14824 14825fi 14826 14827 for ac_header in curl/curl.h 14828do : 14829 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" 14830if test "x$ac_cv_header_curl_curl_h" = xyes; then : 14831 cat >>confdefs.h <<_ACEOF 14832#define HAVE_CURL_CURL_H 1 14833_ACEOF 14834 libcurl_header_found=yes 14835else 14836 if test "x$with_libcurl" != xcheck; then as_fn_error $? "Cannot find libcurl header files" "$LINENO" 5; fi 14837fi 14838 14839done 14840 14841 14842 14843 # 14844 # Pick up any libraries added by tests 14845 # 14846 test -z "$LIBCURL_LIBS" && LIBCURL_LIBS="$LIBS" 14847 14848 # 14849 # libtool understands -R$path, but we are not using libtool in configure 14850 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 14851 # 14852 if test "x$with_libcurl" != xyes && 14853 test "x$with_libcurl" != xcheck && 14854 test "x$with_libcurl" != x/usr && 14855 test "x$with_libcurl" != x/ 14856 then 14857 LIBCURL_LDFLAGS="$LIBCURL_LDFLAGS -R$with_libcurl/lib" 14858 fi 14859 14860 # 14861 # Restore pristine environment 14862 # 14863 CFLAGS="$save_CFLAGS" 14864 CPPFLAGS="$save_CPPFLAGS" 14865 LDFLAGS="$save_LDFLAGS" 14866 LIBS="$save_LIBS" 14867 14868 14869 14870 14871 14872 14873 14874fi 14875 14876 if test "x$libcurl_lib_found" != xno && test "x$libcurl_header_found" = xyes; then 14877 HAVE_LIBCURL_TRUE= 14878 HAVE_LIBCURL_FALSE='#' 14879else 14880 HAVE_LIBCURL_TRUE='#' 14881 HAVE_LIBCURL_FALSE= 14882fi 14883 14884 14885 14886 14887# Check whether --with-libyaml was given. 14888if test "${with_libyaml+set}" = set; then : 14889 withval=$with_libyaml; 14890else 14891 with_libyaml=check 14892fi 14893 14894 14895if test "x$with_libyaml" != xno 14896then 14897 14898 14899 14900 # 14901 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 14902 # 14903 if test "x$with_libyaml" != xyes && 14904 test "x$with_libyaml" != xcheck && 14905 test "x$with_libyaml" != x 14906 then 14907 test -z "$LIBYAML_PATH" && LIBYAML_PATH="$with_libyaml" 14908 if test "x$with_libyaml" != x/usr && 14909 test "x$with_libyaml" != x/ 14910 then 14911 test -z "$LIBYAML_CFLAGS" && LIBYAML_CFLAGS="" 14912 test -z "$LIBYAML_CPPFLAGS" && LIBYAML_CPPFLAGS="-I$with_libyaml/include" 14913 test -z "$LIBYAML_LDFLAGS" && LIBYAML_LDFLAGS="-L$with_libyaml/lib" 14914 fi 14915 else 14916 LIBYAML_PATH="default path" 14917 fi 14918 14919 # 14920 # Save old environment 14921 # 14922 save_CFLAGS="$CFLAGS" 14923 save_CPPFLAGS="$CPPFLAGS" 14924 save_LDFLAGS="$LDFLAGS" 14925 save_LIBS="$LIBS" 14926 14927 CFLAGS="$CFLAGS $LIBYAML_CFLAGS" 14928 CPPFLAGS="$CPPFLAGS $LIBYAML_CPPFLAGS" 14929 LDFLAGS="$LDFLAGS $LIBYAML_LDFLAGS" 14930 14931 # 14932 # Run checks passed as argument 14933 # 14934 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaml_parser_initialize in -lyaml" >&5 14936$as_echo_n "checking for yaml_parser_initialize in -lyaml... " >&6; } 14937if ${ac_cv_lib_yaml_yaml_parser_initialize+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939else 14940 ac_check_lib_save_LIBS=$LIBS 14941LIBS="-lyaml $LIBS" 14942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943/* end confdefs.h. */ 14944 14945/* Override any GCC internal prototype to avoid an error. 14946 Use char because int might match the return type of a GCC 14947 builtin and then its argument prototype would still apply. */ 14948#ifdef __cplusplus 14949extern "C" 14950#endif 14951char yaml_parser_initialize (); 14952int 14953main () 14954{ 14955return yaml_parser_initialize (); 14956 ; 14957 return 0; 14958} 14959_ACEOF 14960if ac_fn_c_try_link "$LINENO"; then : 14961 ac_cv_lib_yaml_yaml_parser_initialize=yes 14962else 14963 ac_cv_lib_yaml_yaml_parser_initialize=no 14964fi 14965rm -f core conftest.err conftest.$ac_objext \ 14966 conftest$ac_exeext conftest.$ac_ext 14967LIBS=$ac_check_lib_save_LIBS 14968fi 14969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yaml_yaml_parser_initialize" >&5 14970$as_echo "$ac_cv_lib_yaml_yaml_parser_initialize" >&6; } 14971if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then : 14972 cat >>confdefs.h <<_ACEOF 14973#define HAVE_LIBYAML 1 14974_ACEOF 14975 14976 LIBS="-lyaml $LIBS" 14977 14978else 14979 if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml library" "$LINENO" 5; fi 14980fi 14981 14982 for ac_header in yaml.h 14983do : 14984 ac_fn_c_check_header_mongrel "$LINENO" "yaml.h" "ac_cv_header_yaml_h" "$ac_includes_default" 14985if test "x$ac_cv_header_yaml_h" = xyes; then : 14986 cat >>confdefs.h <<_ACEOF 14987#define HAVE_YAML_H 1 14988_ACEOF 14989 libyaml_header_found=yes 14990else 14991 if test "x$with_libyaml" != xcheck; then as_fn_error $? "Cannot find libyaml header files" "$LINENO" 5; fi 14992fi 14993 14994done 14995 14996 14997 14998 # 14999 # Pick up any libraries added by tests 15000 # 15001 test -z "$LIBYAML_LIBS" && LIBYAML_LIBS="$LIBS" 15002 15003 # 15004 # libtool understands -R$path, but we are not using libtool in configure 15005 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 15006 # 15007 if test "x$with_libyaml" != xyes && 15008 test "x$with_libyaml" != xcheck && 15009 test "x$with_libyaml" != x/usr && 15010 test "x$with_libyaml" != x/ 15011 then 15012 LIBYAML_LDFLAGS="$LIBYAML_LDFLAGS -R$with_libyaml/lib" 15013 fi 15014 15015 # 15016 # Restore pristine environment 15017 # 15018 CFLAGS="$save_CFLAGS" 15019 CPPFLAGS="$save_CPPFLAGS" 15020 LDFLAGS="$save_LDFLAGS" 15021 LIBS="$save_LIBS" 15022 15023 15024 15025 15026 15027 15028 15029fi 15030 15031 15032 15033# Check whether --with-libxml2 was given. 15034if test "${with_libxml2+set}" = set; then : 15035 withval=$with_libxml2; 15036else 15037 with_libxml2=check 15038fi 15039 15040 15041if test "x$with_libxml2" != xno 15042then 15043 if test "x$with_libxml2" != xyes && 15044 test "x$with_libxml2" != xcheck 15045 then 15046 XML2_CONFIG=$with_libxml2/bin/xml2-config 15047 else 15048 XML2_CONFIG=xml2-config 15049 fi 15050 15051 # xml2-config is only for native builds 15052 if test "x$cross_compiling" = "xno" && test x`which $XML2_CONFIG` != x 15053 then 15054 xml2_include_dir=`$XML2_CONFIG --cflags` 15055 if test -n "$xml2_include_dir" 15056 then 15057 LIBXML2_CPPFLAGS="$xml2_include_dir" 15058 fi 15059 else # xml2-config not found 15060 # if a path, e.g. /var/cfengine was given, then we 15061 # must take into account that libxml2 includes are in 15062 # /var/cfengine/include/libxml2 15063 LIBXML2_CPPFLAGS=-I$with_libxml2/include/libxml2 15064 fi 15065 15066 15067 15068 15069 # 15070 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 15071 # 15072 if test "x$with_libxml2" != xyes && 15073 test "x$with_libxml2" != xcheck && 15074 test "x$with_libxml2" != x 15075 then 15076 test -z "$LIBXML2_PATH" && LIBXML2_PATH="$with_libxml2" 15077 if test "x$with_libxml2" != x/usr && 15078 test "x$with_libxml2" != x/ 15079 then 15080 test -z "$LIBXML2_CFLAGS" && LIBXML2_CFLAGS="" 15081 test -z "$LIBXML2_CPPFLAGS" && LIBXML2_CPPFLAGS="-I$with_libxml2/include" 15082 test -z "$LIBXML2_LDFLAGS" && LIBXML2_LDFLAGS="-L$with_libxml2/lib" 15083 fi 15084 else 15085 LIBXML2_PATH="default path" 15086 fi 15087 15088 # 15089 # Save old environment 15090 # 15091 save_CFLAGS="$CFLAGS" 15092 save_CPPFLAGS="$CPPFLAGS" 15093 save_LDFLAGS="$LDFLAGS" 15094 save_LIBS="$LIBS" 15095 15096 CFLAGS="$CFLAGS $LIBXML2_CFLAGS" 15097 CPPFLAGS="$CPPFLAGS $LIBXML2_CPPFLAGS" 15098 LDFLAGS="$LDFLAGS $LIBXML2_LDFLAGS" 15099 15100 # 15101 # Run checks passed as argument 15102 # 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5 15104$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; } 15105if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then : 15106 $as_echo_n "(cached) " >&6 15107else 15108 ac_check_lib_save_LIBS=$LIBS 15109LIBS="-lxml2 $LIBS" 15110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15111/* end confdefs.h. */ 15112 15113/* Override any GCC internal prototype to avoid an error. 15114 Use char because int might match the return type of a GCC 15115 builtin and then its argument prototype would still apply. */ 15116#ifdef __cplusplus 15117extern "C" 15118#endif 15119char xmlFirstElementChild (); 15120int 15121main () 15122{ 15123return xmlFirstElementChild (); 15124 ; 15125 return 0; 15126} 15127_ACEOF 15128if ac_fn_c_try_link "$LINENO"; then : 15129 ac_cv_lib_xml2_xmlFirstElementChild=yes 15130else 15131 ac_cv_lib_xml2_xmlFirstElementChild=no 15132fi 15133rm -f core conftest.err conftest.$ac_objext \ 15134 conftest$ac_exeext conftest.$ac_ext 15135LIBS=$ac_check_lib_save_LIBS 15136fi 15137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5 15138$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; } 15139if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then : 15140 cat >>confdefs.h <<_ACEOF 15141#define HAVE_LIBXML2 1 15142_ACEOF 15143 15144 LIBS="-lxml2 $LIBS" 15145 15146else 15147 if test "x$with_libxml2" != xcheck; then 15148 as_fn_error $? "Cannotfind libxml2" "$LINENO" 5; fi 15149 15150fi 15151 15152 for ac_header in libxml/xmlwriter.h 15153do : 15154 ac_fn_c_check_header_mongrel "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default" 15155if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes; then : 15156 cat >>confdefs.h <<_ACEOF 15157#define HAVE_LIBXML_XMLWRITER_H 1 15158_ACEOF 15159 break 15160else 15161 if test "x$with_libxml2" != xcheck; then 15162 as_fn_error $? "Cannot find libxml2" "$LINENO" 5; fi 15163 15164fi 15165 15166done 15167 15168 15169 15170 # 15171 # Pick up any libraries added by tests 15172 # 15173 test -z "$LIBXML2_LIBS" && LIBXML2_LIBS="$LIBS" 15174 15175 # 15176 # libtool understands -R$path, but we are not using libtool in configure 15177 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 15178 # 15179 if test "x$with_libxml2" != xyes && 15180 test "x$with_libxml2" != xcheck && 15181 test "x$with_libxml2" != x/usr && 15182 test "x$with_libxml2" != x/ 15183 then 15184 LIBXML2_LDFLAGS="$LIBXML2_LDFLAGS -R$with_libxml2/lib" 15185 fi 15186 15187 # 15188 # Restore pristine environment 15189 # 15190 CFLAGS="$save_CFLAGS" 15191 CPPFLAGS="$save_CPPFLAGS" 15192 LDFLAGS="$save_LDFLAGS" 15193 LIBS="$save_LIBS" 15194 15195 15196 15197 15198 15199 15200 15201fi 15202 15203 if test "x$with_libxml2" != xno && 15204 test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then 15205 HAVE_LIBXML2_TRUE= 15206 HAVE_LIBXML2_FALSE='#' 15207else 15208 HAVE_LIBXML2_TRUE='#' 15209 HAVE_LIBXML2_FALSE= 15210fi 15211 15212 15213 15214 15215for ac_header in unistd.h stdlib.h sys/loadavg.h 15216do : 15217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15218ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15220 cat >>confdefs.h <<_ACEOF 15221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15222_ACEOF 15223 15224fi 15225 15226done 15227 15228for ac_header in sys/param.h sys/resource.h 15229do : 15230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15231ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15232if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15233 cat >>confdefs.h <<_ACEOF 15234#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15235_ACEOF 15236 15237fi 15238 15239done 15240 15241 15242# sys/param.h is required for sys/mount.h on OpenBSD 15243for ac_header in sys/mount.h 15244do : 15245 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default 15246#ifdef HAVE_SYS_PARAM_H 15247# include <sys/param.h> 15248#endif 15249 15250" 15251if test "x$ac_cv_header_sys_mount_h" = xyes; then : 15252 cat >>confdefs.h <<_ACEOF 15253#define HAVE_SYS_MOUNT_H 1 15254_ACEOF 15255 15256fi 15257 15258done 15259 15260 15261# Required on BSD to get struct sockaddr_dl (for retrieving MAC addresses from getifaddrs()) 15262for ac_header in net/if_dl.h 15263do : 15264 ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default" 15265if test "x$ac_cv_header_net_if_dl_h" = xyes; then : 15266 cat >>confdefs.h <<_ACEOF 15267#define HAVE_NET_IF_DL_H 1 15268_ACEOF 15269 15270fi 15271 15272done 15273 15274 15275# Required on Solaris to get struct arpreq (for retrieving MAC addresses) 15276for ac_header in net/if_arp.h 15277do : 15278 ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "$ac_includes_default 15279#include <sys/socket.h> 15280 15281" 15282if test "x$ac_cv_header_net_if_arp_h" = xyes; then : 15283 cat >>confdefs.h <<_ACEOF 15284#define HAVE_NET_IF_ARP_H 1 15285_ACEOF 15286 15287fi 15288 15289done 15290 15291 15292for ac_header in utime.h 15293do : 15294 ac_fn_c_check_header_mongrel "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 15295if test "x$ac_cv_header_utime_h" = xyes; then : 15296 cat >>confdefs.h <<_ACEOF 15297#define HAVE_UTIME_H 1 15298_ACEOF 15299 15300fi 15301 15302done 15303 15304for ac_header in time.h 15305do : 15306 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 15307if test "x$ac_cv_header_time_h" = xyes; then : 15308 cat >>confdefs.h <<_ACEOF 15309#define HAVE_TIME_H 1 15310_ACEOF 15311 15312fi 15313 15314done 15315 15316for ac_header in sys/time.h 15317do : 15318 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 15319if test "x$ac_cv_header_sys_time_h" = xyes; then : 15320 cat >>confdefs.h <<_ACEOF 15321#define HAVE_SYS_TIME_H 1 15322_ACEOF 15323 15324fi 15325 15326done 15327 15328for ac_header in malloc.h sys/malloc.h 15329do : 15330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15331ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15332if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15333 cat >>confdefs.h <<_ACEOF 15334#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15335_ACEOF 15336 15337fi 15338 15339done 15340 15341for ac_header in vfs.h 15342do : 15343 ac_fn_c_check_header_mongrel "$LINENO" "vfs.h" "ac_cv_header_vfs_h" "$ac_includes_default" 15344if test "x$ac_cv_header_vfs_h" = xyes; then : 15345 cat >>confdefs.h <<_ACEOF 15346#define HAVE_VFS_H 1 15347_ACEOF 15348 15349fi 15350 15351done 15352 15353for ac_header in sys/vfs.h 15354do : 15355 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" 15356if test "x$ac_cv_header_sys_vfs_h" = xyes; then : 15357 cat >>confdefs.h <<_ACEOF 15358#define HAVE_SYS_VFS_H 1 15359_ACEOF 15360 15361fi 15362 15363done 15364 15365for ac_header in sys/sockio.h 15366do : 15367 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 15368if test "x$ac_cv_header_sys_sockio_h" = xyes; then : 15369 cat >>confdefs.h <<_ACEOF 15370#define HAVE_SYS_SOCKIO_H 1 15371_ACEOF 15372 15373fi 15374 15375done 15376 15377for ac_header in sys/statvfs.h 15378do : 15379 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" 15380if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : 15381 cat >>confdefs.h <<_ACEOF 15382#define HAVE_SYS_STATVFS_H 1 15383_ACEOF 15384 15385fi 15386 15387done 15388 15389for ac_header in sys/statfs.h 15390do : 15391 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" 15392if test "x$ac_cv_header_sys_statfs_h" = xyes; then : 15393 cat >>confdefs.h <<_ACEOF 15394#define HAVE_SYS_STATFS_H 1 15395_ACEOF 15396 15397fi 15398 15399done 15400 15401for ac_header in fcntl.h 15402do : 15403 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 15404if test "x$ac_cv_header_fcntl_h" = xyes; then : 15405 cat >>confdefs.h <<_ACEOF 15406#define HAVE_FCNTL_H 1 15407_ACEOF 15408 15409fi 15410 15411done 15412 15413for ac_header in sys/filesys.h 15414do : 15415 ac_fn_c_check_header_mongrel "$LINENO" "sys/filesys.h" "ac_cv_header_sys_filesys_h" "$ac_includes_default" 15416if test "x$ac_cv_header_sys_filesys_h" = xyes; then : 15417 cat >>confdefs.h <<_ACEOF 15418#define HAVE_SYS_FILESYS_H 1 15419_ACEOF 15420 15421fi 15422 15423done 15424 15425for ac_header in dustat.h 15426do : 15427 ac_fn_c_check_header_mongrel "$LINENO" "dustat.h" "ac_cv_header_dustat_h" "$ac_includes_default" 15428if test "x$ac_cv_header_dustat_h" = xyes; then : 15429 cat >>confdefs.h <<_ACEOF 15430#define HAVE_DUSTAT_H 1 15431_ACEOF 15432 15433fi 15434 15435done 15436 15437for ac_header in sys/systeminfo.h 15438do : 15439 ac_fn_c_check_header_mongrel "$LINENO" "sys/systeminfo.h" "ac_cv_header_sys_systeminfo_h" "$ac_includes_default" 15440if test "x$ac_cv_header_sys_systeminfo_h" = xyes; then : 15441 cat >>confdefs.h <<_ACEOF 15442#define HAVE_SYS_SYSTEMINFO_H 1 15443_ACEOF 15444 15445fi 15446 15447done 15448 15449for ac_header in ieeefp.h 15450do : 15451 ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" 15452if test "x$ac_cv_header_ieeefp_h" = xyes; then : 15453 cat >>confdefs.h <<_ACEOF 15454#define HAVE_IEEEFP_H 1 15455_ACEOF 15456 15457fi 15458 15459done 15460 15461for ac_header in winsock2.h 15462do : 15463 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 15464if test "x$ac_cv_header_winsock2_h" = xyes; then : 15465 cat >>confdefs.h <<_ACEOF 15466#define HAVE_WINSOCK2_H 1 15467_ACEOF 15468 15469fi 15470 15471done 15472 15473for ac_header in ws2tcpip.h 15474do : 15475 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 15476if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : 15477 cat >>confdefs.h <<_ACEOF 15478#define HAVE_WS2TCPIP_H 1 15479_ACEOF 15480 15481fi 15482 15483done 15484 15485for ac_header in zone.h 15486do : 15487 ac_fn_c_check_header_mongrel "$LINENO" "zone.h" "ac_cv_header_zone_h" "$ac_includes_default" 15488if test "x$ac_cv_header_zone_h" = xyes; then : 15489 cat >>confdefs.h <<_ACEOF 15490#define HAVE_ZONE_H 1 15491_ACEOF 15492 15493fi 15494 15495done 15496 15497for ac_header in sys/uio.h 15498do : 15499 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 15500if test "x$ac_cv_header_sys_uio_h" = xyes; then : 15501 cat >>confdefs.h <<_ACEOF 15502#define HAVE_SYS_UIO_H 1 15503_ACEOF 15504 15505fi 15506 15507done 15508 15509 15510 15511 15512 for ac_header in $ac_header_list 15513do : 15514 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15515ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15516" 15517if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15518 cat >>confdefs.h <<_ACEOF 15519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15520_ACEOF 15521 15522fi 15523 15524done 15525 15526 15527 15528 for ac_header in sys/types.h 15529do : 15530 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 15531if test "x$ac_cv_header_sys_types_h" = xyes; then : 15532 cat >>confdefs.h <<_ACEOF 15533#define HAVE_SYS_TYPES_H 1 15534_ACEOF 15535 15536fi 15537 15538done 15539 15540for ac_header in sys/mpctl.h 15541do : 15542 ac_fn_c_check_header_mongrel "$LINENO" "sys/mpctl.h" "ac_cv_header_sys_mpctl_h" "$ac_includes_default" 15543if test "x$ac_cv_header_sys_mpctl_h" = xyes; then : 15544 cat >>confdefs.h <<_ACEOF 15545#define HAVE_SYS_MPCTL_H 1 15546_ACEOF 15547 15548fi 15549 15550done 15551 for ac_header in shadow.h 15552do : 15553 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 15554if test "x$ac_cv_header_shadow_h" = xyes; then : 15555 cat >>confdefs.h <<_ACEOF 15556#define HAVE_SHADOW_H 1 15557_ACEOF 15558 15559fi 15560 15561done 15562 15563for ac_header in sys/jail.h 15564do : 15565 ac_fn_c_check_header_compile "$LINENO" "sys/jail.h" "ac_cv_header_sys_jail_h" "$ac_includes_default 15566#ifdef HAVE_SYS_PARAM_H 15567# include <sys/param.h> 15568#endif 15569 15570" 15571if test "x$ac_cv_header_sys_jail_h" = xyes; then : 15572 cat >>confdefs.h <<_ACEOF 15573#define HAVE_SYS_JAIL_H 1 15574_ACEOF 15575 15576fi 15577 15578done 15579 15580for ac_header in net/route.h netinet/in.h netinet/ip.h 15581do : 15582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15583ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15584if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15585 cat >>confdefs.h <<_ACEOF 15586#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15587_ACEOF 15588 15589fi 15590 15591done 15592 15593 15594 15595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15596$as_echo_n "checking for ANSI C header files... " >&6; } 15597if ${ac_cv_header_stdc+:} false; then : 15598 $as_echo_n "(cached) " >&6 15599else 15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15601/* end confdefs.h. */ 15602#include <stdlib.h> 15603#include <stdarg.h> 15604#include <string.h> 15605#include <float.h> 15606 15607int 15608main () 15609{ 15610 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615if ac_fn_c_try_compile "$LINENO"; then : 15616 ac_cv_header_stdc=yes 15617else 15618 ac_cv_header_stdc=no 15619fi 15620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15621 15622if test $ac_cv_header_stdc = yes; then 15623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15625/* end confdefs.h. */ 15626#include <string.h> 15627 15628_ACEOF 15629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15630 $EGREP "memchr" >/dev/null 2>&1; then : 15631 15632else 15633 ac_cv_header_stdc=no 15634fi 15635rm -f conftest* 15636 15637fi 15638 15639if test $ac_cv_header_stdc = yes; then 15640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15642/* end confdefs.h. */ 15643#include <stdlib.h> 15644 15645_ACEOF 15646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15647 $EGREP "free" >/dev/null 2>&1; then : 15648 15649else 15650 ac_cv_header_stdc=no 15651fi 15652rm -f conftest* 15653 15654fi 15655 15656if test $ac_cv_header_stdc = yes; then 15657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15658 if test "$cross_compiling" = yes; then : 15659 : 15660else 15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15662/* end confdefs.h. */ 15663#include <ctype.h> 15664#include <stdlib.h> 15665#if ((' ' & 0x0FF) == 0x020) 15666# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15667# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15668#else 15669# define ISLOWER(c) \ 15670 (('a' <= (c) && (c) <= 'i') \ 15671 || ('j' <= (c) && (c) <= 'r') \ 15672 || ('s' <= (c) && (c) <= 'z')) 15673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15674#endif 15675 15676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15677int 15678main () 15679{ 15680 int i; 15681 for (i = 0; i < 256; i++) 15682 if (XOR (islower (i), ISLOWER (i)) 15683 || toupper (i) != TOUPPER (i)) 15684 return 2; 15685 return 0; 15686} 15687_ACEOF 15688if ac_fn_c_try_run "$LINENO"; then : 15689 15690else 15691 ac_cv_header_stdc=no 15692fi 15693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15694 conftest.$ac_objext conftest.beam conftest.$ac_ext 15695fi 15696 15697fi 15698fi 15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15700$as_echo "$ac_cv_header_stdc" >&6; } 15701if test $ac_cv_header_stdc = yes; then 15702 15703$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15704 15705fi 15706 15707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 15708$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 15709if ${ac_cv_header_time+:} false; then : 15710 $as_echo_n "(cached) " >&6 15711else 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15713/* end confdefs.h. */ 15714#include <sys/types.h> 15715#include <sys/time.h> 15716#include <time.h> 15717 15718int 15719main () 15720{ 15721if ((struct tm *) 0) 15722return 0; 15723 ; 15724 return 0; 15725} 15726_ACEOF 15727if ac_fn_c_try_compile "$LINENO"; then : 15728 ac_cv_header_time=yes 15729else 15730 ac_cv_header_time=no 15731fi 15732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15733fi 15734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 15735$as_echo "$ac_cv_header_time" >&6; } 15736if test $ac_cv_header_time = yes; then 15737 15738$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 15739 15740fi 15741 15742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 15743$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 15744if ${ac_cv_header_sys_wait_h+:} false; then : 15745 $as_echo_n "(cached) " >&6 15746else 15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15748/* end confdefs.h. */ 15749#include <sys/types.h> 15750#include <sys/wait.h> 15751#ifndef WEXITSTATUS 15752# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 15753#endif 15754#ifndef WIFEXITED 15755# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 15756#endif 15757 15758int 15759main () 15760{ 15761 int s; 15762 wait (&s); 15763 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 15764 ; 15765 return 0; 15766} 15767_ACEOF 15768if ac_fn_c_try_compile "$LINENO"; then : 15769 ac_cv_header_sys_wait_h=yes 15770else 15771 ac_cv_header_sys_wait_h=no 15772fi 15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15774fi 15775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 15776$as_echo "$ac_cv_header_sys_wait_h" >&6; } 15777if test $ac_cv_header_sys_wait_h = yes; then 15778 15779$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 15780 15781fi 15782 15783ac_header_dirent=no 15784for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 15785 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 15786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 15787$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 15788if eval \${$as_ac_Header+:} false; then : 15789 $as_echo_n "(cached) " >&6 15790else 15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15792/* end confdefs.h. */ 15793#include <sys/types.h> 15794#include <$ac_hdr> 15795 15796int 15797main () 15798{ 15799if ((DIR *) 0) 15800return 0; 15801 ; 15802 return 0; 15803} 15804_ACEOF 15805if ac_fn_c_try_compile "$LINENO"; then : 15806 eval "$as_ac_Header=yes" 15807else 15808 eval "$as_ac_Header=no" 15809fi 15810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15811fi 15812eval ac_res=\$$as_ac_Header 15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15814$as_echo "$ac_res" >&6; } 15815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15816 cat >>confdefs.h <<_ACEOF 15817#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 15818_ACEOF 15819 15820ac_header_dirent=$ac_hdr; break 15821fi 15822 15823done 15824# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 15825if test $ac_header_dirent = dirent.h; then 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15827$as_echo_n "checking for library containing opendir... " >&6; } 15828if ${ac_cv_search_opendir+:} false; then : 15829 $as_echo_n "(cached) " >&6 15830else 15831 ac_func_search_save_LIBS=$LIBS 15832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15833/* end confdefs.h. */ 15834 15835/* Override any GCC internal prototype to avoid an error. 15836 Use char because int might match the return type of a GCC 15837 builtin and then its argument prototype would still apply. */ 15838#ifdef __cplusplus 15839extern "C" 15840#endif 15841char opendir (); 15842int 15843main () 15844{ 15845return opendir (); 15846 ; 15847 return 0; 15848} 15849_ACEOF 15850for ac_lib in '' dir; do 15851 if test -z "$ac_lib"; then 15852 ac_res="none required" 15853 else 15854 ac_res=-l$ac_lib 15855 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15856 fi 15857 if ac_fn_c_try_link "$LINENO"; then : 15858 ac_cv_search_opendir=$ac_res 15859fi 15860rm -f core conftest.err conftest.$ac_objext \ 15861 conftest$ac_exeext 15862 if ${ac_cv_search_opendir+:} false; then : 15863 break 15864fi 15865done 15866if ${ac_cv_search_opendir+:} false; then : 15867 15868else 15869 ac_cv_search_opendir=no 15870fi 15871rm conftest.$ac_ext 15872LIBS=$ac_func_search_save_LIBS 15873fi 15874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15875$as_echo "$ac_cv_search_opendir" >&6; } 15876ac_res=$ac_cv_search_opendir 15877if test "$ac_res" != no; then : 15878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15879 15880fi 15881 15882else 15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15884$as_echo_n "checking for library containing opendir... " >&6; } 15885if ${ac_cv_search_opendir+:} false; then : 15886 $as_echo_n "(cached) " >&6 15887else 15888 ac_func_search_save_LIBS=$LIBS 15889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15890/* end confdefs.h. */ 15891 15892/* Override any GCC internal prototype to avoid an error. 15893 Use char because int might match the return type of a GCC 15894 builtin and then its argument prototype would still apply. */ 15895#ifdef __cplusplus 15896extern "C" 15897#endif 15898char opendir (); 15899int 15900main () 15901{ 15902return opendir (); 15903 ; 15904 return 0; 15905} 15906_ACEOF 15907for ac_lib in '' x; do 15908 if test -z "$ac_lib"; then 15909 ac_res="none required" 15910 else 15911 ac_res=-l$ac_lib 15912 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15913 fi 15914 if ac_fn_c_try_link "$LINENO"; then : 15915 ac_cv_search_opendir=$ac_res 15916fi 15917rm -f core conftest.err conftest.$ac_objext \ 15918 conftest$ac_exeext 15919 if ${ac_cv_search_opendir+:} false; then : 15920 break 15921fi 15922done 15923if ${ac_cv_search_opendir+:} false; then : 15924 15925else 15926 ac_cv_search_opendir=no 15927fi 15928rm conftest.$ac_ext 15929LIBS=$ac_func_search_save_LIBS 15930fi 15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15932$as_echo "$ac_cv_search_opendir" >&6; } 15933ac_res=$ac_cv_search_opendir 15934if test "$ac_res" != no; then : 15935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15936 15937fi 15938 15939fi 15940 15941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 15942$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 15943if ${ac_cv_header_stdbool_h+:} false; then : 15944 $as_echo_n "(cached) " >&6 15945else 15946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15947/* end confdefs.h. */ 15948 15949 #include <stdbool.h> 15950 #ifndef bool 15951 "error: bool is not defined" 15952 #endif 15953 #ifndef false 15954 "error: false is not defined" 15955 #endif 15956 #if false 15957 "error: false is not 0" 15958 #endif 15959 #ifndef true 15960 "error: true is not defined" 15961 #endif 15962 #if true != 1 15963 "error: true is not 1" 15964 #endif 15965 #ifndef __bool_true_false_are_defined 15966 "error: __bool_true_false_are_defined is not defined" 15967 #endif 15968 15969 struct s { _Bool s: 1; _Bool t; } s; 15970 15971 char a[true == 1 ? 1 : -1]; 15972 char b[false == 0 ? 1 : -1]; 15973 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 15974 char d[(bool) 0.5 == true ? 1 : -1]; 15975 /* See body of main program for 'e'. */ 15976 char f[(_Bool) 0.0 == false ? 1 : -1]; 15977 char g[true]; 15978 char h[sizeof (_Bool)]; 15979 char i[sizeof s.t]; 15980 enum { j = false, k = true, l = false * true, m = true * 256 }; 15981 /* The following fails for 15982 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 15983 _Bool n[m]; 15984 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 15985 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 15986 /* Catch a bug in an HP-UX C compiler. See 15987 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 15988 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 15989 */ 15990 _Bool q = true; 15991 _Bool *pq = &q; 15992 15993int 15994main () 15995{ 15996 15997 bool e = &s; 15998 *pq |= q; 15999 *pq |= ! q; 16000 /* Refer to every declared value, to avoid compiler optimizations. */ 16001 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 16002 + !m + !n + !o + !p + !q + !pq); 16003 16004 ; 16005 return 0; 16006} 16007_ACEOF 16008if ac_fn_c_try_compile "$LINENO"; then : 16009 ac_cv_header_stdbool_h=yes 16010else 16011 ac_cv_header_stdbool_h=no 16012fi 16013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16014fi 16015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 16016$as_echo "$ac_cv_header_stdbool_h" >&6; } 16017 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 16018if test "x$ac_cv_type__Bool" = xyes; then : 16019 16020cat >>confdefs.h <<_ACEOF 16021#define HAVE__BOOL 1 16022_ACEOF 16023 16024 16025fi 16026 16027 16028if test $ac_cv_header_stdbool_h = yes; then 16029 16030$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 16031 16032fi 16033 16034 16035 16036ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 16037if test "x$ac_cv_type_mode_t" = xyes; then : 16038 16039else 16040 16041cat >>confdefs.h <<_ACEOF 16042#define mode_t int 16043_ACEOF 16044 16045fi 16046 16047ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16048if test "x$ac_cv_type_size_t" = xyes; then : 16049 16050else 16051 16052cat >>confdefs.h <<_ACEOF 16053#define size_t unsigned int 16054_ACEOF 16055 16056fi 16057 16058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 16059$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 16060if ${ac_cv_type_uid_t+:} false; then : 16061 $as_echo_n "(cached) " >&6 16062else 16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16064/* end confdefs.h. */ 16065#include <sys/types.h> 16066 16067_ACEOF 16068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16069 $EGREP "uid_t" >/dev/null 2>&1; then : 16070 ac_cv_type_uid_t=yes 16071else 16072 ac_cv_type_uid_t=no 16073fi 16074rm -f conftest* 16075 16076fi 16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 16078$as_echo "$ac_cv_type_uid_t" >&6; } 16079if test $ac_cv_type_uid_t = no; then 16080 16081$as_echo "#define uid_t int" >>confdefs.h 16082 16083 16084$as_echo "#define gid_t int" >>confdefs.h 16085 16086fi 16087 16088ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 16089if test "x$ac_cv_type_pid_t" = xyes; then : 16090 16091else 16092 16093cat >>confdefs.h <<_ACEOF 16094#define pid_t int 16095_ACEOF 16096 16097fi 16098 16099ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" " 16100#ifdef HAVE_TIME_H 16101# include <time.h> 16102#endif 16103 16104" 16105if test "x$ac_cv_type_clockid_t" = xyes; then : 16106 16107cat >>confdefs.h <<_ACEOF 16108#define HAVE_CLOCKID_T 1 16109_ACEOF 16110 16111 16112fi 16113 16114 16115ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16116#ifdef HAVE_SYS_TYPES_H 16117# include <sys/types.h> 16118#endif 16119 16120#include <sys/socket.h> 16121 16122" 16123if test "x$ac_cv_type_socklen_t" = xyes; then : 16124 16125cat >>confdefs.h <<_ACEOF 16126#define HAVE_SOCKLEN_T 1 16127_ACEOF 16128 16129 16130fi 16131 16132 16133 16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16135$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16136if ${ac_cv_c_const+:} false; then : 16137 $as_echo_n "(cached) " >&6 16138else 16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16140/* end confdefs.h. */ 16141 16142int 16143main () 16144{ 16145 16146#ifndef __cplusplus 16147 /* Ultrix mips cc rejects this sort of thing. */ 16148 typedef int charset[2]; 16149 const charset cs = { 0, 0 }; 16150 /* SunOS 4.1.1 cc rejects this. */ 16151 char const *const *pcpcc; 16152 char **ppc; 16153 /* NEC SVR4.0.2 mips cc rejects this. */ 16154 struct point {int x, y;}; 16155 static struct point const zero = {0,0}; 16156 /* AIX XL C 1.02.0.0 rejects this. 16157 It does not let you subtract one const X* pointer from another in 16158 an arm of an if-expression whose if-part is not a constant 16159 expression */ 16160 const char *g = "string"; 16161 pcpcc = &g + (g ? g-g : 0); 16162 /* HPUX 7.0 cc rejects these. */ 16163 ++pcpcc; 16164 ppc = (char**) pcpcc; 16165 pcpcc = (char const *const *) ppc; 16166 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16167 char tx; 16168 char *t = &tx; 16169 char const *s = 0 ? (char *) 0 : (char const *) 0; 16170 16171 *t++ = 0; 16172 if (s) return 0; 16173 } 16174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16175 int x[] = {25, 17}; 16176 const int *foo = &x[0]; 16177 ++foo; 16178 } 16179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16180 typedef const int *iptr; 16181 iptr p = 0; 16182 ++p; 16183 } 16184 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16186 struct s { int j; const int *ap[3]; } bx; 16187 struct s *b = &bx; b->j = 5; 16188 } 16189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16190 const int foo = 10; 16191 if (!foo) return 0; 16192 } 16193 return !cs[0] && !zero.x; 16194#endif 16195 16196 ; 16197 return 0; 16198} 16199_ACEOF 16200if ac_fn_c_try_compile "$LINENO"; then : 16201 ac_cv_c_const=yes 16202else 16203 ac_cv_c_const=no 16204fi 16205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16206fi 16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16208$as_echo "$ac_cv_c_const" >&6; } 16209if test $ac_cv_c_const = no; then 16210 16211$as_echo "#define const /**/" >>confdefs.h 16212 16213fi 16214 16215 16216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 16217$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 16218if ${ac_cv_sys_largefile_source+:} false; then : 16219 $as_echo_n "(cached) " >&6 16220else 16221 while :; do 16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16223/* end confdefs.h. */ 16224#include <sys/types.h> /* for off_t */ 16225 #include <stdio.h> 16226int 16227main () 16228{ 16229int (*fp) (FILE *, off_t, int) = fseeko; 16230 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 16231 ; 16232 return 0; 16233} 16234_ACEOF 16235if ac_fn_c_try_link "$LINENO"; then : 16236 ac_cv_sys_largefile_source=no; break 16237fi 16238rm -f core conftest.err conftest.$ac_objext \ 16239 conftest$ac_exeext conftest.$ac_ext 16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16241/* end confdefs.h. */ 16242#define _LARGEFILE_SOURCE 1 16243#include <sys/types.h> /* for off_t */ 16244 #include <stdio.h> 16245int 16246main () 16247{ 16248int (*fp) (FILE *, off_t, int) = fseeko; 16249 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 16250 ; 16251 return 0; 16252} 16253_ACEOF 16254if ac_fn_c_try_link "$LINENO"; then : 16255 ac_cv_sys_largefile_source=1; break 16256fi 16257rm -f core conftest.err conftest.$ac_objext \ 16258 conftest$ac_exeext conftest.$ac_ext 16259 ac_cv_sys_largefile_source=unknown 16260 break 16261done 16262fi 16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 16264$as_echo "$ac_cv_sys_largefile_source" >&6; } 16265case $ac_cv_sys_largefile_source in #( 16266 no | unknown) ;; 16267 *) 16268cat >>confdefs.h <<_ACEOF 16269#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 16270_ACEOF 16271;; 16272esac 16273rm -rf conftest* 16274 16275# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 16276# in glibc 2.1.3, but that breaks too many other things. 16277# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 16278if test $ac_cv_sys_largefile_source != unknown; then 16279 16280$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 16281 16282fi 16283 16284# Check whether --enable-largefile was given. 16285if test "${enable_largefile+set}" = set; then : 16286 enableval=$enable_largefile; 16287fi 16288 16289if test "$enable_largefile" != no; then 16290 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16292$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 16293if ${ac_cv_sys_largefile_CC+:} false; then : 16294 $as_echo_n "(cached) " >&6 16295else 16296 ac_cv_sys_largefile_CC=no 16297 if test "$GCC" != yes; then 16298 ac_save_CC=$CC 16299 while :; do 16300 # IRIX 6.2 and later do not support large files by default, 16301 # so use the C compiler's -n32 option if that helps. 16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16303/* end confdefs.h. */ 16304#include <sys/types.h> 16305 /* Check that off_t can represent 2**63 - 1 correctly. 16306 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16307 since some C++ compilers masquerading as C compilers 16308 incorrectly reject 9223372036854775807. */ 16309#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16311 && LARGE_OFF_T % 2147483647 == 1) 16312 ? 1 : -1]; 16313int 16314main () 16315{ 16316 16317 ; 16318 return 0; 16319} 16320_ACEOF 16321 if ac_fn_c_try_compile "$LINENO"; then : 16322 break 16323fi 16324rm -f core conftest.err conftest.$ac_objext 16325 CC="$CC -n32" 16326 if ac_fn_c_try_compile "$LINENO"; then : 16327 ac_cv_sys_largefile_CC=' -n32'; break 16328fi 16329rm -f core conftest.err conftest.$ac_objext 16330 break 16331 done 16332 CC=$ac_save_CC 16333 rm -f conftest.$ac_ext 16334 fi 16335fi 16336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16337$as_echo "$ac_cv_sys_largefile_CC" >&6; } 16338 if test "$ac_cv_sys_largefile_CC" != no; then 16339 CC=$CC$ac_cv_sys_largefile_CC 16340 fi 16341 16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16343$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 16344if ${ac_cv_sys_file_offset_bits+:} false; then : 16345 $as_echo_n "(cached) " >&6 16346else 16347 while :; do 16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16349/* end confdefs.h. */ 16350#include <sys/types.h> 16351 /* Check that off_t can represent 2**63 - 1 correctly. 16352 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16353 since some C++ compilers masquerading as C compilers 16354 incorrectly reject 9223372036854775807. */ 16355#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16357 && LARGE_OFF_T % 2147483647 == 1) 16358 ? 1 : -1]; 16359int 16360main () 16361{ 16362 16363 ; 16364 return 0; 16365} 16366_ACEOF 16367if ac_fn_c_try_compile "$LINENO"; then : 16368 ac_cv_sys_file_offset_bits=no; break 16369fi 16370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16372/* end confdefs.h. */ 16373#define _FILE_OFFSET_BITS 64 16374#include <sys/types.h> 16375 /* Check that off_t can represent 2**63 - 1 correctly. 16376 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16377 since some C++ compilers masquerading as C compilers 16378 incorrectly reject 9223372036854775807. */ 16379#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16381 && LARGE_OFF_T % 2147483647 == 1) 16382 ? 1 : -1]; 16383int 16384main () 16385{ 16386 16387 ; 16388 return 0; 16389} 16390_ACEOF 16391if ac_fn_c_try_compile "$LINENO"; then : 16392 ac_cv_sys_file_offset_bits=64; break 16393fi 16394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16395 ac_cv_sys_file_offset_bits=unknown 16396 break 16397done 16398fi 16399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 16400$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 16401case $ac_cv_sys_file_offset_bits in #( 16402 no | unknown) ;; 16403 *) 16404cat >>confdefs.h <<_ACEOF 16405#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 16406_ACEOF 16407;; 16408esac 16409rm -rf conftest* 16410 if test $ac_cv_sys_file_offset_bits = unknown; then 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 16412$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 16413if ${ac_cv_sys_large_files+:} false; then : 16414 $as_echo_n "(cached) " >&6 16415else 16416 while :; do 16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16418/* end confdefs.h. */ 16419#include <sys/types.h> 16420 /* Check that off_t can represent 2**63 - 1 correctly. 16421 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16422 since some C++ compilers masquerading as C compilers 16423 incorrectly reject 9223372036854775807. */ 16424#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16426 && LARGE_OFF_T % 2147483647 == 1) 16427 ? 1 : -1]; 16428int 16429main () 16430{ 16431 16432 ; 16433 return 0; 16434} 16435_ACEOF 16436if ac_fn_c_try_compile "$LINENO"; then : 16437 ac_cv_sys_large_files=no; break 16438fi 16439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16441/* end confdefs.h. */ 16442#define _LARGE_FILES 1 16443#include <sys/types.h> 16444 /* Check that off_t can represent 2**63 - 1 correctly. 16445 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16446 since some C++ compilers masquerading as C compilers 16447 incorrectly reject 9223372036854775807. */ 16448#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 16449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16450 && LARGE_OFF_T % 2147483647 == 1) 16451 ? 1 : -1]; 16452int 16453main () 16454{ 16455 16456 ; 16457 return 0; 16458} 16459_ACEOF 16460if ac_fn_c_try_compile "$LINENO"; then : 16461 ac_cv_sys_large_files=1; break 16462fi 16463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16464 ac_cv_sys_large_files=unknown 16465 break 16466done 16467fi 16468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 16469$as_echo "$ac_cv_sys_large_files" >&6; } 16470case $ac_cv_sys_large_files in #( 16471 no | unknown) ;; 16472 *) 16473cat >>confdefs.h <<_ACEOF 16474#define _LARGE_FILES $ac_cv_sys_large_files 16475_ACEOF 16476;; 16477esac 16478rm -rf conftest* 16479 fi 16480 16481 16482fi 16483 16484ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16485if test "x$ac_cv_type_off_t" = xyes; then : 16486 16487else 16488 16489cat >>confdefs.h <<_ACEOF 16490#define off_t long int 16491_ACEOF 16492 16493fi 16494 16495 16496# 16497# AC_SYS_LARGEFILE correctly figures out necessary macros for large files, but 16498# on AIX there is a gotcha: 16499# 16500# Code generated by flex #includes <stdio.h> at the beginning of the file, which 16501# picks up 32-bit wide off_t. Then it #includes <config.h> which provides LFS 16502# macros, and finally it includes another system header, now with 64-bit wide 16503# off_t, which causes a conflict. 16504# 16505if test "x$ac_cv_sys_large_files" = x1; then 16506 CPPFLAGS="-D_LARGE_FILES=1 $CPPFLAGS" 16507fi 16508 16509 16510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 16511$as_echo_n "checking for sqrt in -lm... " >&6; } 16512if ${ac_cv_lib_m_sqrt+:} false; then : 16513 $as_echo_n "(cached) " >&6 16514else 16515 ac_check_lib_save_LIBS=$LIBS 16516LIBS="-lm $LIBS" 16517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16518/* end confdefs.h. */ 16519 16520/* Override any GCC internal prototype to avoid an error. 16521 Use char because int might match the return type of a GCC 16522 builtin and then its argument prototype would still apply. */ 16523#ifdef __cplusplus 16524extern "C" 16525#endif 16526char sqrt (); 16527int 16528main () 16529{ 16530return sqrt (); 16531 ; 16532 return 0; 16533} 16534_ACEOF 16535if ac_fn_c_try_link "$LINENO"; then : 16536 ac_cv_lib_m_sqrt=yes 16537else 16538 ac_cv_lib_m_sqrt=no 16539fi 16540rm -f core conftest.err conftest.$ac_objext \ 16541 conftest$ac_exeext conftest.$ac_ext 16542LIBS=$ac_check_lib_save_LIBS 16543fi 16544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16545$as_echo "$ac_cv_lib_m_sqrt" >&6; } 16546if test "x$ac_cv_lib_m_sqrt" = xyes; then : 16547 cat >>confdefs.h <<_ACEOF 16548#define HAVE_LIBM 1 16549_ACEOF 16550 16551 LIBS="-lm $LIBS" 16552 16553fi 16554 16555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 16556$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 16557if ${ac_cv_lib_rt_clock_gettime+:} false; then : 16558 $as_echo_n "(cached) " >&6 16559else 16560 ac_check_lib_save_LIBS=$LIBS 16561LIBS="-lrt $LIBS" 16562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16563/* end confdefs.h. */ 16564 16565/* Override any GCC internal prototype to avoid an error. 16566 Use char because int might match the return type of a GCC 16567 builtin and then its argument prototype would still apply. */ 16568#ifdef __cplusplus 16569extern "C" 16570#endif 16571char clock_gettime (); 16572int 16573main () 16574{ 16575return clock_gettime (); 16576 ; 16577 return 0; 16578} 16579_ACEOF 16580if ac_fn_c_try_link "$LINENO"; then : 16581 ac_cv_lib_rt_clock_gettime=yes 16582else 16583 ac_cv_lib_rt_clock_gettime=no 16584fi 16585rm -f core conftest.err conftest.$ac_objext \ 16586 conftest$ac_exeext conftest.$ac_ext 16587LIBS=$ac_check_lib_save_LIBS 16588fi 16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 16590$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 16591if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 16592 cat >>confdefs.h <<_ACEOF 16593#define HAVE_LIBRT 1 16594_ACEOF 16595 16596 LIBS="-lrt $LIBS" 16597 16598fi 16599 16600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16601$as_echo_n "checking for dlopen in -ldl... " >&6; } 16602if ${ac_cv_lib_dl_dlopen+:} false; then : 16603 $as_echo_n "(cached) " >&6 16604else 16605 ac_check_lib_save_LIBS=$LIBS 16606LIBS="-ldl $LIBS" 16607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609 16610/* Override any GCC internal prototype to avoid an error. 16611 Use char because int might match the return type of a GCC 16612 builtin and then its argument prototype would still apply. */ 16613#ifdef __cplusplus 16614extern "C" 16615#endif 16616char dlopen (); 16617int 16618main () 16619{ 16620return dlopen (); 16621 ; 16622 return 0; 16623} 16624_ACEOF 16625if ac_fn_c_try_link "$LINENO"; then : 16626 ac_cv_lib_dl_dlopen=yes 16627else 16628 ac_cv_lib_dl_dlopen=no 16629fi 16630rm -f core conftest.err conftest.$ac_objext \ 16631 conftest$ac_exeext conftest.$ac_ext 16632LIBS=$ac_check_lib_save_LIBS 16633fi 16634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16635$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16636if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16637 cat >>confdefs.h <<_ACEOF 16638#define HAVE_LIBDL 1 16639_ACEOF 16640 16641 LIBS="-ldl $LIBS" 16642 16643fi 16644 16645 16646 16647ac_fn_c_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#include <time.h> 16648" 16649if test "x$ac_cv_have_decl_clock_gettime" = xyes; then : 16650 ac_have_decl=1 16651else 16652 ac_have_decl=0 16653fi 16654 16655cat >>confdefs.h <<_ACEOF 16656#define HAVE_DECL_CLOCK_GETTIME $ac_have_decl 16657_ACEOF 16658 16659ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 16660if test "x$ac_cv_func_clock_gettime" = xyes; then : 16661 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 16662 16663else 16664 case " $LIBOBJS " in 16665 *" clock_gettime.$ac_objext "* ) ;; 16666 *) LIBOBJS="$LIBOBJS clock_gettime.$ac_objext" 16667 ;; 16668esac 16669 16670fi 16671 16672 16673 16674ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" 16675if test "x$ac_cv_have_decl_unsetenv" = xyes; then : 16676 ac_have_decl=1 16677else 16678 ac_have_decl=0 16679fi 16680 16681cat >>confdefs.h <<_ACEOF 16682#define HAVE_DECL_UNSETENV $ac_have_decl 16683_ACEOF 16684 16685ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 16686if test "x$ac_cv_func_unsetenv" = xyes; then : 16687 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h 16688 16689else 16690 case " $LIBOBJS " in 16691 *" unsetenv.$ac_objext "* ) ;; 16692 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 16693 ;; 16694esac 16695 16696fi 16697 16698 16699 16700ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 16701if test "x$ac_cv_have_decl_strnlen" = xyes; then : 16702 ac_have_decl=1 16703else 16704 ac_have_decl=0 16705fi 16706 16707cat >>confdefs.h <<_ACEOF 16708#define HAVE_DECL_STRNLEN $ac_have_decl 16709_ACEOF 16710 16711ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 16712if test "x$ac_cv_func_strnlen" = xyes; then : 16713 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 16714 16715else 16716 case " $LIBOBJS " in 16717 *" strnlen.$ac_objext "* ) ;; 16718 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 16719 ;; 16720esac 16721 16722fi 16723 16724 16725 16726 16727 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" 16728if test "x$ac_cv_have_decl_strndup" = xyes; then : 16729 ac_have_decl=1 16730else 16731 ac_have_decl=0 16732fi 16733 16734cat >>confdefs.h <<_ACEOF 16735#define HAVE_DECL_STRNDUP $ac_have_decl 16736_ACEOF 16737 16738 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 16739if test "x$ac_cv_func_strndup" = xyes; then : 16740 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 16741 16742else 16743 case " $LIBOBJS " in 16744 *" strndup.$ac_objext "* ) ;; 16745 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 16746 ;; 16747esac 16748 16749fi 16750 16751 16752 if test $ac_cv_have_decl_strndup = no; then 16753 HAVE_DECL_STRNDUP=0 16754 fi 16755 16756 if test $ac_cv_func_strndup = yes; then 16757 HAVE_STRNDUP=1 16758 # AIX 5.3 has a function that tries to copy the entire range specified 16759 # by n, instead of just the length of src. 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5 16761$as_echo_n "checking for working strndup... " >&6; } 16762if ${cf3_cv_func_strndup_works+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 if test "$cross_compiling" = yes; then : 16766 16767 case $host_os in 16768 aix | aix[3-6]*) cf3_cv_func_strndup_works="guessing no";; 16769 *) cf3_cv_func_strndup_works="guessing yes";; 16770 esac 16771 16772else 16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16774/* end confdefs.h. */ 16775 16776 #include <string.h> 16777 #include <stdlib.h> 16778int 16779main () 16780{ 16781 16782#if !HAVE_DECL_STRNDUP 16783 extern 16784 #ifdef __cplusplus 16785 "C" 16786 #endif 16787 char *strndup (const char *, size_t); 16788#endif 16789 char *s; 16790 // Will crash if strndup tries to traverse all 2GB. 16791 s = strndup ("string", 2000000000); 16792 return 0; 16793 ; 16794 return 0; 16795} 16796_ACEOF 16797if ac_fn_c_try_run "$LINENO"; then : 16798 cf3_cv_func_strndup_works=yes 16799else 16800 cf3_cv_func_strndup_works=no 16801fi 16802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16803 conftest.$ac_objext conftest.beam conftest.$ac_ext 16804fi 16805 16806fi 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf3_cv_func_strndup_works" >&5 16808$as_echo "$cf3_cv_func_strndup_works" >&6; } 16809 case $cf3_cv_func_strndup_works in 16810 *no) case " $LIBOBJS " in 16811 *" strndup.$ac_objext "* ) ;; 16812 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" 16813 ;; 16814esac 16815 ;; 16816 esac 16817 else 16818 HAVE_STRNDUP=0 16819 fi 16820 16821 16822ac_fn_c_check_decl "$LINENO" "seteuid" "ac_cv_have_decl_seteuid" "$ac_includes_default" 16823if test "x$ac_cv_have_decl_seteuid" = xyes; then : 16824 ac_have_decl=1 16825else 16826 ac_have_decl=0 16827fi 16828 16829cat >>confdefs.h <<_ACEOF 16830#define HAVE_DECL_SETEUID $ac_have_decl 16831_ACEOF 16832 16833ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 16834if test "x$ac_cv_func_seteuid" = xyes; then : 16835 $as_echo "#define HAVE_SETEUID 1" >>confdefs.h 16836 16837else 16838 case " $LIBOBJS " in 16839 *" seteuid.$ac_objext "* ) ;; 16840 *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" 16841 ;; 16842esac 16843 16844fi 16845 16846 16847 16848ac_fn_c_check_decl "$LINENO" "setlinebuf" "ac_cv_have_decl_setlinebuf" "$ac_includes_default" 16849if test "x$ac_cv_have_decl_setlinebuf" = xyes; then : 16850 ac_have_decl=1 16851else 16852 ac_have_decl=0 16853fi 16854 16855cat >>confdefs.h <<_ACEOF 16856#define HAVE_DECL_SETLINEBUF $ac_have_decl 16857_ACEOF 16858 16859ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf" 16860if test "x$ac_cv_func_setlinebuf" = xyes; then : 16861 $as_echo "#define HAVE_SETLINEBUF 1" >>confdefs.h 16862 16863else 16864 case " $LIBOBJS " in 16865 *" setlinebuf.$ac_objext "* ) ;; 16866 *) LIBOBJS="$LIBOBJS setlinebuf.$ac_objext" 16867 ;; 16868esac 16869 16870fi 16871 16872 16873 16874ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 16875if test "x$ac_cv_have_decl_strlcat" = xyes; then : 16876 ac_have_decl=1 16877else 16878 ac_have_decl=0 16879fi 16880 16881cat >>confdefs.h <<_ACEOF 16882#define HAVE_DECL_STRLCAT $ac_have_decl 16883_ACEOF 16884 16885ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 16886if test "x$ac_cv_func_strlcat" = xyes; then : 16887 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 16888 16889else 16890 case " $LIBOBJS " in 16891 *" strlcat.$ac_objext "* ) ;; 16892 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 16893 ;; 16894esac 16895 16896fi 16897 16898 16899 16900ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 16901if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 16902 ac_have_decl=1 16903else 16904 ac_have_decl=0 16905fi 16906 16907cat >>confdefs.h <<_ACEOF 16908#define HAVE_DECL_STRLCPY $ac_have_decl 16909_ACEOF 16910 16911ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 16912if test "x$ac_cv_func_strlcpy" = xyes; then : 16913 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 16914 16915else 16916 case " $LIBOBJS " in 16917 *" strlcpy.$ac_objext "* ) ;; 16918 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 16919 ;; 16920esac 16921 16922fi 16923 16924 16925 16926ac_fn_c_check_decl "$LINENO" "realpath" "ac_cv_have_decl_realpath" "$ac_includes_default" 16927if test "x$ac_cv_have_decl_realpath" = xyes; then : 16928 ac_have_decl=1 16929else 16930 ac_have_decl=0 16931fi 16932 16933cat >>confdefs.h <<_ACEOF 16934#define HAVE_DECL_REALPATH $ac_have_decl 16935_ACEOF 16936 16937 16938ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" 16939if test "x$ac_cv_have_decl_strdup" = xyes; then : 16940 ac_have_decl=1 16941else 16942 ac_have_decl=0 16943fi 16944 16945cat >>confdefs.h <<_ACEOF 16946#define HAVE_DECL_STRDUP $ac_have_decl 16947_ACEOF 16948 16949ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 16950if test "x$ac_cv_func_strdup" = xyes; then : 16951 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 16952 16953else 16954 case " $LIBOBJS " in 16955 *" strdup.$ac_objext "* ) ;; 16956 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 16957 ;; 16958esac 16959 16960fi 16961 16962 16963 16964ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" 16965if test "x$ac_cv_have_decl_memrchr" = xyes; then : 16966 ac_have_decl=1 16967else 16968 ac_have_decl=0 16969fi 16970 16971cat >>confdefs.h <<_ACEOF 16972#define HAVE_DECL_MEMRCHR $ac_have_decl 16973_ACEOF 16974 16975ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 16976if test "x$ac_cv_func_memrchr" = xyes; then : 16977 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h 16978 16979else 16980 case " $LIBOBJS " in 16981 *" memrchr.$ac_objext "* ) ;; 16982 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext" 16983 ;; 16984esac 16985 16986fi 16987 16988 16989 16990ac_fn_c_check_decl "$LINENO" "round" "ac_cv_have_decl_round" "#include <math.h> 16991" 16992if test "x$ac_cv_have_decl_round" = xyes; then : 16993 ac_have_decl=1 16994else 16995 ac_have_decl=0 16996fi 16997 16998cat >>confdefs.h <<_ACEOF 16999#define HAVE_DECL_ROUND $ac_have_decl 17000_ACEOF 17001 17002ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round" 17003if test "x$ac_cv_func_round" = xyes; then : 17004 $as_echo "#define HAVE_ROUND 1" >>confdefs.h 17005 17006else 17007 case " $LIBOBJS " in 17008 *" round.$ac_objext "* ) ;; 17009 *) LIBOBJS="$LIBOBJS round.$ac_objext" 17010 ;; 17011esac 17012 17013fi 17014 17015 17016 17017ac_fn_c_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "$ac_includes_default" 17018if test "x$ac_cv_have_decl_nanosleep" = xyes; then : 17019 ac_have_decl=1 17020else 17021 ac_have_decl=0 17022fi 17023 17024cat >>confdefs.h <<_ACEOF 17025#define HAVE_DECL_NANOSLEEP $ac_have_decl 17026_ACEOF 17027 17028ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 17029if test "x$ac_cv_func_nanosleep" = xyes; then : 17030 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 17031 17032else 17033 case " $LIBOBJS " in 17034 *" nanosleep.$ac_objext "* ) ;; 17035 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" 17036 ;; 17037esac 17038 17039fi 17040 17041 17042 17043ac_fn_c_check_decl "$LINENO" "memdup" "ac_cv_have_decl_memdup" "$ac_includes_default" 17044if test "x$ac_cv_have_decl_memdup" = xyes; then : 17045 ac_have_decl=1 17046else 17047 ac_have_decl=0 17048fi 17049 17050cat >>confdefs.h <<_ACEOF 17051#define HAVE_DECL_MEMDUP $ac_have_decl 17052_ACEOF 17053 17054ac_fn_c_check_func "$LINENO" "memdup" "ac_cv_func_memdup" 17055if test "x$ac_cv_func_memdup" = xyes; then : 17056 $as_echo "#define HAVE_MEMDUP 1" >>confdefs.h 17057 17058else 17059 case " $LIBOBJS " in 17060 *" memdup.$ac_objext "* ) ;; 17061 *) LIBOBJS="$LIBOBJS memdup.$ac_objext" 17062 ;; 17063esac 17064 17065fi 17066 17067 17068 17069ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" 17070if test "x$ac_cv_have_decl_memmem" = xyes; then : 17071 ac_have_decl=1 17072else 17073 ac_have_decl=0 17074fi 17075 17076cat >>confdefs.h <<_ACEOF 17077#define HAVE_DECL_MEMMEM $ac_have_decl 17078_ACEOF 17079 17080ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" 17081if test "x$ac_cv_func_memmem" = xyes; then : 17082 $as_echo "#define HAVE_MEMMEM 1" >>confdefs.h 17083 17084else 17085 case " $LIBOBJS " in 17086 *" memmem.$ac_objext "* ) ;; 17087 *) LIBOBJS="$LIBOBJS memmem.$ac_objext" 17088 ;; 17089esac 17090 17091fi 17092 17093 17094 17095ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default" 17096if test "x$ac_cv_have_decl_srand48" = xyes; then : 17097 ac_have_decl=1 17098else 17099 ac_have_decl=0 17100fi 17101 17102cat >>confdefs.h <<_ACEOF 17103#define HAVE_DECL_SRAND48 $ac_have_decl 17104_ACEOF 17105 17106ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48" 17107if test "x$ac_cv_func_srand48" = xyes; then : 17108 $as_echo "#define HAVE_SRAND48 1" >>confdefs.h 17109 17110else 17111 case " $LIBOBJS " in 17112 *" srand48.$ac_objext "* ) ;; 17113 *) LIBOBJS="$LIBOBJS srand48.$ac_objext" 17114 ;; 17115esac 17116 17117fi 17118 17119 17120 17121ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default" 17122if test "x$ac_cv_have_decl_drand48" = xyes; then : 17123 ac_have_decl=1 17124else 17125 ac_have_decl=0 17126fi 17127 17128cat >>confdefs.h <<_ACEOF 17129#define HAVE_DECL_DRAND48 $ac_have_decl 17130_ACEOF 17131 17132ac_fn_c_check_func "$LINENO" "drand48" "ac_cv_func_drand48" 17133if test "x$ac_cv_func_drand48" = xyes; then : 17134 $as_echo "#define HAVE_DRAND48 1" >>confdefs.h 17135 17136else 17137 case " $LIBOBJS " in 17138 *" drand48.$ac_objext "* ) ;; 17139 *) LIBOBJS="$LIBOBJS drand48.$ac_objext" 17140 ;; 17141esac 17142 17143fi 17144 17145 17146 17147ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default" 17148if test "x$ac_cv_have_decl_strerror" = xyes; then : 17149 ac_have_decl=1 17150else 17151 ac_have_decl=0 17152fi 17153 17154cat >>confdefs.h <<_ACEOF 17155#define HAVE_DECL_STRERROR $ac_have_decl 17156_ACEOF 17157 17158ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 17159if test "x$ac_cv_func_strerror" = xyes; then : 17160 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 17161 17162else 17163 case " $LIBOBJS " in 17164 *" strerror.$ac_objext "* ) ;; 17165 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 17166 ;; 17167esac 17168 17169fi 17170 17171 17172 17173ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 17174if test "x$ac_cv_have_decl_strstr" = xyes; then : 17175 ac_have_decl=1 17176else 17177 ac_have_decl=0 17178fi 17179 17180cat >>confdefs.h <<_ACEOF 17181#define HAVE_DECL_STRSTR $ac_have_decl 17182_ACEOF 17183 17184ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 17185if test "x$ac_cv_func_strstr" = xyes; then : 17186 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h 17187 17188else 17189 case " $LIBOBJS " in 17190 *" strstr.$ac_objext "* ) ;; 17191 *) LIBOBJS="$LIBOBJS strstr.$ac_objext" 17192 ;; 17193esac 17194 17195fi 17196 17197 17198 17199ac_fn_c_check_decl "$LINENO" "strcasestr" "ac_cv_have_decl_strcasestr" "$ac_includes_default" 17200if test "x$ac_cv_have_decl_strcasestr" = xyes; then : 17201 ac_have_decl=1 17202else 17203 ac_have_decl=0 17204fi 17205 17206cat >>confdefs.h <<_ACEOF 17207#define HAVE_DECL_STRCASESTR $ac_have_decl 17208_ACEOF 17209 17210ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 17211if test "x$ac_cv_func_strcasestr" = xyes; then : 17212 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 17213 17214else 17215 case " $LIBOBJS " in 17216 *" strcasestr.$ac_objext "* ) ;; 17217 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 17218 ;; 17219esac 17220 17221fi 17222 17223 17224 17225ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default" 17226if test "x$ac_cv_have_decl_strcasecmp" = xyes; then : 17227 ac_have_decl=1 17228else 17229 ac_have_decl=0 17230fi 17231 17232cat >>confdefs.h <<_ACEOF 17233#define HAVE_DECL_STRCASECMP $ac_have_decl 17234_ACEOF 17235 17236ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 17237if test "x$ac_cv_func_strcasecmp" = xyes; then : 17238 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 17239 17240else 17241 case " $LIBOBJS " in 17242 *" strcasecmp.$ac_objext "* ) ;; 17243 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 17244 ;; 17245esac 17246 17247fi 17248 17249 17250 17251ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" 17252if test "x$ac_cv_have_decl_strncasecmp" = xyes; then : 17253 ac_have_decl=1 17254else 17255 ac_have_decl=0 17256fi 17257 17258cat >>confdefs.h <<_ACEOF 17259#define HAVE_DECL_STRNCASECMP $ac_have_decl 17260_ACEOF 17261 17262ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 17263if test "x$ac_cv_func_strncasecmp" = xyes; then : 17264 $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h 17265 17266else 17267 case " $LIBOBJS " in 17268 *" strncasecmp.$ac_objext "* ) ;; 17269 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 17270 ;; 17271esac 17272 17273fi 17274 17275 17276 17277ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default" 17278if test "x$ac_cv_have_decl_strsep" = xyes; then : 17279 ac_have_decl=1 17280else 17281 ac_have_decl=0 17282fi 17283 17284cat >>confdefs.h <<_ACEOF 17285#define HAVE_DECL_STRSEP $ac_have_decl 17286_ACEOF 17287 17288ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 17289if test "x$ac_cv_func_strsep" = xyes; then : 17290 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h 17291 17292else 17293 case " $LIBOBJS " in 17294 *" strsep.$ac_objext "* ) ;; 17295 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 17296 ;; 17297esac 17298 17299fi 17300 17301 17302 17303ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default" 17304if test "x$ac_cv_have_decl_strsignal" = xyes; then : 17305 ac_have_decl=1 17306else 17307 ac_have_decl=0 17308fi 17309 17310cat >>confdefs.h <<_ACEOF 17311#define HAVE_DECL_STRSIGNAL $ac_have_decl 17312_ACEOF 17313 17314ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" 17315if test "x$ac_cv_func_strsignal" = xyes; then : 17316 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h 17317 17318else 17319 case " $LIBOBJS " in 17320 *" strsignal.$ac_objext "* ) ;; 17321 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext" 17322 ;; 17323esac 17324 17325fi 17326 17327 17328 17329ac_fn_c_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" "#include <time.h> 17330" 17331if test "x$ac_cv_have_decl_gmtime_r" = xyes; then : 17332 ac_have_decl=1 17333else 17334 ac_have_decl=0 17335fi 17336 17337cat >>confdefs.h <<_ACEOF 17338#define HAVE_DECL_GMTIME_R $ac_have_decl 17339_ACEOF 17340 17341ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 17342if test "x$ac_cv_func_gmtime_r" = xyes; then : 17343 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 17344 17345else 17346 case " $LIBOBJS " in 17347 *" gmtime_r.$ac_objext "* ) ;; 17348 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 17349 ;; 17350esac 17351 17352fi 17353 17354 17355 17356ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "#define _GNU_SOURCE 1 17357$ac_includes_default 17358" 17359if test "x$ac_cv_have_decl_getline" = xyes; then : 17360 ac_have_decl=1 17361else 17362 ac_have_decl=0 17363fi 17364 17365cat >>confdefs.h <<_ACEOF 17366#define HAVE_DECL_GETLINE $ac_have_decl 17367_ACEOF 17368 17369ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 17370if test "x$ac_cv_func_getline" = xyes; then : 17371 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 17372 17373else 17374 case " $LIBOBJS " in 17375 *" getline.$ac_objext "* ) ;; 17376 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 17377 ;; 17378esac 17379 17380fi 17381 17382 17383 17384ac_fn_c_check_decl "$LINENO" "strchrnul" "ac_cv_have_decl_strchrnul" "#define _GNU_SOURCE 1 17385$ac_includes_default 17386" 17387if test "x$ac_cv_have_decl_strchrnul" = xyes; then : 17388 ac_have_decl=1 17389else 17390 ac_have_decl=0 17391fi 17392 17393cat >>confdefs.h <<_ACEOF 17394#define HAVE_DECL_STRCHRNUL $ac_have_decl 17395_ACEOF 17396 17397ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul" 17398if test "x$ac_cv_func_strchrnul" = xyes; then : 17399 $as_echo "#define HAVE_STRCHRNUL 1" >>confdefs.h 17400 17401else 17402 case " $LIBOBJS " in 17403 *" strchrnul.$ac_objext "* ) ;; 17404 *) LIBOBJS="$LIBOBJS strchrnul.$ac_objext" 17405 ;; 17406esac 17407 17408fi 17409 17410 17411 17412ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h> 17413" 17414if test "x$ac_cv_have_decl_localtime_r" = xyes; then : 17415 ac_have_decl=1 17416else 17417 ac_have_decl=0 17418fi 17419 17420cat >>confdefs.h <<_ACEOF 17421#define HAVE_DECL_LOCALTIME_R $ac_have_decl 17422_ACEOF 17423 17424ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 17425if test "x$ac_cv_func_localtime_r" = xyes; then : 17426 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 17427 17428else 17429 case " $LIBOBJS " in 17430 *" localtime_r.$ac_objext "* ) ;; 17431 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 17432 ;; 17433esac 17434 17435fi 17436 17437 17438 17439ac_fn_c_check_decl "$LINENO" "fgetgrent" "ac_cv_have_decl_fgetgrent" "#include <grp.h> 17440" 17441if test "x$ac_cv_have_decl_fgetgrent" = xyes; then : 17442 ac_have_decl=1 17443else 17444 ac_have_decl=0 17445fi 17446 17447cat >>confdefs.h <<_ACEOF 17448#define HAVE_DECL_FGETGRENT $ac_have_decl 17449_ACEOF 17450 17451 17452ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 17453" 17454if test "x$ac_cv_have_decl_isfinite" = xyes; then : 17455 ac_have_decl=1 17456else 17457 ac_have_decl=0 17458fi 17459 17460cat >>confdefs.h <<_ACEOF 17461#define HAVE_DECL_ISFINITE $ac_have_decl 17462_ACEOF 17463 17464 17465for ac_func in getpwent setpwent endpwent 17466do : 17467 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17468ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17469if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17470 cat >>confdefs.h <<_ACEOF 17471#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17472_ACEOF 17473 17474fi 17475done 17476 17477 17478for ac_func in fgetspent lckpwdf ulckpwdf 17479do : 17480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17481ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17482if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17483 cat >>confdefs.h <<_ACEOF 17484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17485_ACEOF 17486 17487fi 17488done 17489 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetspent in -lsec" >&5 17491$as_echo_n "checking for fgetspent in -lsec... " >&6; } 17492if ${ac_cv_lib_sec_fgetspent+:} false; then : 17493 $as_echo_n "(cached) " >&6 17494else 17495 ac_check_lib_save_LIBS=$LIBS 17496LIBS="-lsec $LIBS" 17497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17498/* end confdefs.h. */ 17499 17500/* Override any GCC internal prototype to avoid an error. 17501 Use char because int might match the return type of a GCC 17502 builtin and then its argument prototype would still apply. */ 17503#ifdef __cplusplus 17504extern "C" 17505#endif 17506char fgetspent (); 17507int 17508main () 17509{ 17510return fgetspent (); 17511 ; 17512 return 0; 17513} 17514_ACEOF 17515if ac_fn_c_try_link "$LINENO"; then : 17516 ac_cv_lib_sec_fgetspent=yes 17517else 17518 ac_cv_lib_sec_fgetspent=no 17519fi 17520rm -f core conftest.err conftest.$ac_objext \ 17521 conftest$ac_exeext conftest.$ac_ext 17522LIBS=$ac_check_lib_save_LIBS 17523fi 17524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_fgetspent" >&5 17525$as_echo "$ac_cv_lib_sec_fgetspent" >&6; } 17526if test "x$ac_cv_lib_sec_fgetspent" = xyes; then : 17527 17528 17529$as_echo "#define HAVE_LIBSEC 1" >>confdefs.h 17530 17531 17532$as_echo "#define HAVE_FGETSPENT 1" >>confdefs.h 17533 17534 LIBS="-lsec $LIBS" 17535 17536fi 17537 17538 17539ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "$ac_includes_default" 17540if test "x$ac_cv_have_decl_getloadavg" = xyes; then : 17541 ac_have_decl=1 17542else 17543 ac_have_decl=0 17544fi 17545 17546cat >>confdefs.h <<_ACEOF 17547#define HAVE_DECL_GETLOADAVG $ac_have_decl 17548_ACEOF 17549 17550ac_have_func=no # yes means we've found a way to get the load average. 17551 17552# Make sure getloadavg.c is where it belongs, at configure-time. 17553test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 17554 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 17555 17556ac_save_LIBS=$LIBS 17557 17558# Check for getloadavg, but be sure not to touch the cache variable. 17559(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 17560if test "x$ac_cv_func_getloadavg" = xyes; then : 17561 exit 0 17562else 17563 exit 1 17564fi 17565) && ac_have_func=yes 17566 17567# On HPUX9, an unprivileged user can get load averages through this function. 17568for ac_func in pstat_getdynamic 17569do : 17570 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 17571if test "x$ac_cv_func_pstat_getdynamic" = xyes; then : 17572 cat >>confdefs.h <<_ACEOF 17573#define HAVE_PSTAT_GETDYNAMIC 1 17574_ACEOF 17575 17576fi 17577done 17578 17579 17580# Solaris has libkstat which does not require root. 17581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 17582$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 17583if ${ac_cv_lib_kstat_kstat_open+:} false; then : 17584 $as_echo_n "(cached) " >&6 17585else 17586 ac_check_lib_save_LIBS=$LIBS 17587LIBS="-lkstat $LIBS" 17588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17589/* end confdefs.h. */ 17590 17591/* Override any GCC internal prototype to avoid an error. 17592 Use char because int might match the return type of a GCC 17593 builtin and then its argument prototype would still apply. */ 17594#ifdef __cplusplus 17595extern "C" 17596#endif 17597char kstat_open (); 17598int 17599main () 17600{ 17601return kstat_open (); 17602 ; 17603 return 0; 17604} 17605_ACEOF 17606if ac_fn_c_try_link "$LINENO"; then : 17607 ac_cv_lib_kstat_kstat_open=yes 17608else 17609 ac_cv_lib_kstat_kstat_open=no 17610fi 17611rm -f core conftest.err conftest.$ac_objext \ 17612 conftest$ac_exeext conftest.$ac_ext 17613LIBS=$ac_check_lib_save_LIBS 17614fi 17615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 17616$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 17617if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then : 17618 cat >>confdefs.h <<_ACEOF 17619#define HAVE_LIBKSTAT 1 17620_ACEOF 17621 17622 LIBS="-lkstat $LIBS" 17623 17624fi 17625 17626test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes 17627 17628# Some systems with -lutil have (and need) -lkvm as well, some do not. 17629# On Solaris, -lkvm requires nlist from -lelf, so check that first 17630# to get the right answer into the cache. 17631# For kstat on solaris, we need libelf to force the definition of SVR4 below. 17632if test $ac_have_func = no; then 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 17634$as_echo_n "checking for elf_begin in -lelf... " >&6; } 17635if ${ac_cv_lib_elf_elf_begin+:} false; then : 17636 $as_echo_n "(cached) " >&6 17637else 17638 ac_check_lib_save_LIBS=$LIBS 17639LIBS="-lelf $LIBS" 17640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17641/* end confdefs.h. */ 17642 17643/* Override any GCC internal prototype to avoid an error. 17644 Use char because int might match the return type of a GCC 17645 builtin and then its argument prototype would still apply. */ 17646#ifdef __cplusplus 17647extern "C" 17648#endif 17649char elf_begin (); 17650int 17651main () 17652{ 17653return elf_begin (); 17654 ; 17655 return 0; 17656} 17657_ACEOF 17658if ac_fn_c_try_link "$LINENO"; then : 17659 ac_cv_lib_elf_elf_begin=yes 17660else 17661 ac_cv_lib_elf_elf_begin=no 17662fi 17663rm -f core conftest.err conftest.$ac_objext \ 17664 conftest$ac_exeext conftest.$ac_ext 17665LIBS=$ac_check_lib_save_LIBS 17666fi 17667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 17668$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 17669if test "x$ac_cv_lib_elf_elf_begin" = xyes; then : 17670 LIBS="-lelf $LIBS" 17671fi 17672 17673fi 17674if test $ac_have_func = no; then 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 17676$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 17677if ${ac_cv_lib_kvm_kvm_open+:} false; then : 17678 $as_echo_n "(cached) " >&6 17679else 17680 ac_check_lib_save_LIBS=$LIBS 17681LIBS="-lkvm $LIBS" 17682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17683/* end confdefs.h. */ 17684 17685/* Override any GCC internal prototype to avoid an error. 17686 Use char because int might match the return type of a GCC 17687 builtin and then its argument prototype would still apply. */ 17688#ifdef __cplusplus 17689extern "C" 17690#endif 17691char kvm_open (); 17692int 17693main () 17694{ 17695return kvm_open (); 17696 ; 17697 return 0; 17698} 17699_ACEOF 17700if ac_fn_c_try_link "$LINENO"; then : 17701 ac_cv_lib_kvm_kvm_open=yes 17702else 17703 ac_cv_lib_kvm_kvm_open=no 17704fi 17705rm -f core conftest.err conftest.$ac_objext \ 17706 conftest$ac_exeext conftest.$ac_ext 17707LIBS=$ac_check_lib_save_LIBS 17708fi 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 17710$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 17711if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then : 17712 LIBS="-lkvm $LIBS" 17713fi 17714 17715 # Check for the 4.4BSD definition of getloadavg. 17716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 17717$as_echo_n "checking for getloadavg in -lutil... " >&6; } 17718if ${ac_cv_lib_util_getloadavg+:} false; then : 17719 $as_echo_n "(cached) " >&6 17720else 17721 ac_check_lib_save_LIBS=$LIBS 17722LIBS="-lutil $LIBS" 17723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17724/* end confdefs.h. */ 17725 17726/* Override any GCC internal prototype to avoid an error. 17727 Use char because int might match the return type of a GCC 17728 builtin and then its argument prototype would still apply. */ 17729#ifdef __cplusplus 17730extern "C" 17731#endif 17732char getloadavg (); 17733int 17734main () 17735{ 17736return getloadavg (); 17737 ; 17738 return 0; 17739} 17740_ACEOF 17741if ac_fn_c_try_link "$LINENO"; then : 17742 ac_cv_lib_util_getloadavg=yes 17743else 17744 ac_cv_lib_util_getloadavg=no 17745fi 17746rm -f core conftest.err conftest.$ac_objext \ 17747 conftest$ac_exeext conftest.$ac_ext 17748LIBS=$ac_check_lib_save_LIBS 17749fi 17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 17751$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 17752if test "x$ac_cv_lib_util_getloadavg" = xyes; then : 17753 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 17754fi 17755 17756fi 17757 17758if test $ac_have_func = no; then 17759 # There is a commonly available library for RS/6000 AIX. 17760 # Since it is not a standard part of AIX, it might be installed locally. 17761 ac_getloadavg_LIBS=$LIBS 17762 LIBS="-L/usr/local/lib $LIBS" 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 17764$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 17765if ${ac_cv_lib_getloadavg_getloadavg+:} false; then : 17766 $as_echo_n "(cached) " >&6 17767else 17768 ac_check_lib_save_LIBS=$LIBS 17769LIBS="-lgetloadavg $LIBS" 17770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17771/* end confdefs.h. */ 17772 17773/* Override any GCC internal prototype to avoid an error. 17774 Use char because int might match the return type of a GCC 17775 builtin and then its argument prototype would still apply. */ 17776#ifdef __cplusplus 17777extern "C" 17778#endif 17779char getloadavg (); 17780int 17781main () 17782{ 17783return getloadavg (); 17784 ; 17785 return 0; 17786} 17787_ACEOF 17788if ac_fn_c_try_link "$LINENO"; then : 17789 ac_cv_lib_getloadavg_getloadavg=yes 17790else 17791 ac_cv_lib_getloadavg_getloadavg=no 17792fi 17793rm -f core conftest.err conftest.$ac_objext \ 17794 conftest$ac_exeext conftest.$ac_ext 17795LIBS=$ac_check_lib_save_LIBS 17796fi 17797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 17798$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 17799if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then : 17800 LIBS="-lgetloadavg $LIBS" 17801else 17802 LIBS=$ac_getloadavg_LIBS 17803fi 17804 17805fi 17806 17807# Make sure it is really in the library, if we think we found it, 17808# otherwise set up the replacement function. 17809for ac_func in getloadavg 17810do : 17811 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 17812if test "x$ac_cv_func_getloadavg" = xyes; then : 17813 cat >>confdefs.h <<_ACEOF 17814#define HAVE_GETLOADAVG 1 17815_ACEOF 17816 17817else 17818 case " $LIBOBJS " in 17819 *" getloadavg.$ac_objext "* ) ;; 17820 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 17821 ;; 17822esac 17823 17824 17825$as_echo "#define C_GETLOADAVG 1" >>confdefs.h 17826 17827# Figure out what our getloadavg.c needs. 17828ac_have_func=no 17829ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 17830if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then : 17831 ac_have_func=yes 17832 17833$as_echo "#define DGUX 1" >>confdefs.h 17834 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 17836$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 17837if ${ac_cv_lib_dgc_dg_sys_info+:} false; then : 17838 $as_echo_n "(cached) " >&6 17839else 17840 ac_check_lib_save_LIBS=$LIBS 17841LIBS="-ldgc $LIBS" 17842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843/* end confdefs.h. */ 17844 17845/* Override any GCC internal prototype to avoid an error. 17846 Use char because int might match the return type of a GCC 17847 builtin and then its argument prototype would still apply. */ 17848#ifdef __cplusplus 17849extern "C" 17850#endif 17851char dg_sys_info (); 17852int 17853main () 17854{ 17855return dg_sys_info (); 17856 ; 17857 return 0; 17858} 17859_ACEOF 17860if ac_fn_c_try_link "$LINENO"; then : 17861 ac_cv_lib_dgc_dg_sys_info=yes 17862else 17863 ac_cv_lib_dgc_dg_sys_info=no 17864fi 17865rm -f core conftest.err conftest.$ac_objext \ 17866 conftest$ac_exeext conftest.$ac_ext 17867LIBS=$ac_check_lib_save_LIBS 17868fi 17869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 17870$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 17871if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then : 17872 cat >>confdefs.h <<_ACEOF 17873#define HAVE_LIBDGC 1 17874_ACEOF 17875 17876 LIBS="-ldgc $LIBS" 17877 17878fi 17879 17880fi 17881 17882 17883 17884ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 17885if test "x$ac_cv_header_locale_h" = xyes; then : 17886 17887fi 17888 17889 17890for ac_func in setlocale 17891do : 17892 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 17893if test "x$ac_cv_func_setlocale" = xyes; then : 17894 cat >>confdefs.h <<_ACEOF 17895#define HAVE_SETLOCALE 1 17896_ACEOF 17897 17898fi 17899done 17900 17901 17902# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it 17903# uses stabs), but it is still SVR4. We cannot check for <elf.h> because 17904# Irix 4.0.5F has the header but not the library. 17905if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \ 17906 && test "$ac_cv_lib_kvm_kvm_open" = yes; then 17907 ac_have_func=yes 17908 17909$as_echo "#define SVR4 1" >>confdefs.h 17910 17911fi 17912 17913if test $ac_have_func = no; then 17914 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 17915if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then : 17916 ac_have_func=yes 17917 17918$as_echo "#define UMAX 1" >>confdefs.h 17919 17920 17921$as_echo "#define UMAX4_3 1" >>confdefs.h 17922 17923fi 17924 17925 17926fi 17927 17928if test $ac_have_func = no; then 17929 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 17930if test "x$ac_cv_header_sys_cpustats_h" = xyes; then : 17931 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 17932 17933fi 17934 17935 17936fi 17937 17938if test $ac_have_func = no; then 17939 for ac_header in mach/mach.h 17940do : 17941 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 17942if test "x$ac_cv_header_mach_mach_h" = xyes; then : 17943 cat >>confdefs.h <<_ACEOF 17944#define HAVE_MACH_MACH_H 1 17945_ACEOF 17946 17947fi 17948 17949done 17950 17951fi 17952 17953for ac_header in nlist.h 17954do : 17955 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 17956if test "x$ac_cv_header_nlist_h" = xyes; then : 17957 cat >>confdefs.h <<_ACEOF 17958#define HAVE_NLIST_H 1 17959_ACEOF 17960 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 17961" 17962if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then : 17963 17964cat >>confdefs.h <<_ACEOF 17965#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 17966_ACEOF 17967 17968 17969$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 17970 17971fi 17972 17973 17974fi 17975 17976done 17977 17978fi 17979done 17980 17981 17982# Some definitions of getloadavg require that the program be installed setgid. 17983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 17984$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 17985if ${ac_cv_func_getloadavg_setgid+:} false; then : 17986 $as_echo_n "(cached) " >&6 17987else 17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989/* end confdefs.h. */ 17990#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 17991#ifdef LDAV_PRIVILEGED 17992Yowza Am I SETGID yet 17993#endif 17994_ACEOF 17995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17996 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 17997 ac_cv_func_getloadavg_setgid=yes 17998else 17999 ac_cv_func_getloadavg_setgid=no 18000fi 18001rm -f conftest* 18002 18003fi 18004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 18005$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 18006if test $ac_cv_func_getloadavg_setgid = yes; then 18007 NEED_SETGID=true 18008 18009$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 18010 18011else 18012 NEED_SETGID=false 18013fi 18014 18015if test $ac_cv_func_getloadavg_setgid = yes; then 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 18017$as_echo_n "checking group of /dev/kmem... " >&6; } 18018if ${ac_cv_group_kmem+:} false; then : 18019 $as_echo_n "(cached) " >&6 18020else 18021 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 18022 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 18023 # If we got an error (system does not support symlinks), try without -L. 18024 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` 18025 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \ 18026 | sed -ne 's/[ ][ ]*/ /g; 18027 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 18028 / /s/.* //;p;'` 18029 18030fi 18031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 18032$as_echo "$ac_cv_group_kmem" >&6; } 18033 KMEM_GROUP=$ac_cv_group_kmem 18034fi 18035if test "x$ac_save_LIBS" = x; then 18036 GETLOADAVG_LIBS=$LIBS 18037else 18038 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"` 18039fi 18040LIBS=$ac_save_LIBS 18041 18042 18043 18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 18045$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 18046if ${ac_cv_c_bigendian+:} false; then : 18047 $as_echo_n "(cached) " >&6 18048else 18049 ac_cv_c_bigendian=unknown 18050 # See if we're dealing with a universal compiler. 18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18052/* end confdefs.h. */ 18053#ifndef __APPLE_CC__ 18054 not a universal capable compiler 18055 #endif 18056 typedef int dummy; 18057 18058_ACEOF 18059if ac_fn_c_try_compile "$LINENO"; then : 18060 18061 # Check for potential -arch flags. It is not universal unless 18062 # there are at least two -arch flags with different values. 18063 ac_arch= 18064 ac_prev= 18065 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 18066 if test -n "$ac_prev"; then 18067 case $ac_word in 18068 i?86 | x86_64 | ppc | ppc64) 18069 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 18070 ac_arch=$ac_word 18071 else 18072 ac_cv_c_bigendian=universal 18073 break 18074 fi 18075 ;; 18076 esac 18077 ac_prev= 18078 elif test "x$ac_word" = "x-arch"; then 18079 ac_prev=arch 18080 fi 18081 done 18082fi 18083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18084 if test $ac_cv_c_bigendian = unknown; then 18085 # See if sys/param.h defines the BYTE_ORDER macro. 18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18087/* end confdefs.h. */ 18088#include <sys/types.h> 18089 #include <sys/param.h> 18090 18091int 18092main () 18093{ 18094#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18095 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18096 && LITTLE_ENDIAN) 18097 bogus endian macros 18098 #endif 18099 18100 ; 18101 return 0; 18102} 18103_ACEOF 18104if ac_fn_c_try_compile "$LINENO"; then : 18105 # It does; now see whether it defined to BIG_ENDIAN or not. 18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18107/* end confdefs.h. */ 18108#include <sys/types.h> 18109 #include <sys/param.h> 18110 18111int 18112main () 18113{ 18114#if BYTE_ORDER != BIG_ENDIAN 18115 not big endian 18116 #endif 18117 18118 ; 18119 return 0; 18120} 18121_ACEOF 18122if ac_fn_c_try_compile "$LINENO"; then : 18123 ac_cv_c_bigendian=yes 18124else 18125 ac_cv_c_bigendian=no 18126fi 18127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18128fi 18129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18130 fi 18131 if test $ac_cv_c_bigendian = unknown; then 18132 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135#include <limits.h> 18136 18137int 18138main () 18139{ 18140#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18141 bogus endian macros 18142 #endif 18143 18144 ; 18145 return 0; 18146} 18147_ACEOF 18148if ac_fn_c_try_compile "$LINENO"; then : 18149 # It does; now see whether it defined to _BIG_ENDIAN or not. 18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18151/* end confdefs.h. */ 18152#include <limits.h> 18153 18154int 18155main () 18156{ 18157#ifndef _BIG_ENDIAN 18158 not big endian 18159 #endif 18160 18161 ; 18162 return 0; 18163} 18164_ACEOF 18165if ac_fn_c_try_compile "$LINENO"; then : 18166 ac_cv_c_bigendian=yes 18167else 18168 ac_cv_c_bigendian=no 18169fi 18170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18171fi 18172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18173 fi 18174 if test $ac_cv_c_bigendian = unknown; then 18175 # Compile a test program. 18176 if test "$cross_compiling" = yes; then : 18177 # Try to guess by grepping values from an object file. 18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18179/* end confdefs.h. */ 18180short int ascii_mm[] = 18181 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 18182 short int ascii_ii[] = 18183 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 18184 int use_ascii (int i) { 18185 return ascii_mm[i] + ascii_ii[i]; 18186 } 18187 short int ebcdic_ii[] = 18188 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 18189 short int ebcdic_mm[] = 18190 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 18191 int use_ebcdic (int i) { 18192 return ebcdic_mm[i] + ebcdic_ii[i]; 18193 } 18194 extern int foo; 18195 18196int 18197main () 18198{ 18199return use_ascii (foo) == use_ebcdic (foo); 18200 ; 18201 return 0; 18202} 18203_ACEOF 18204if ac_fn_c_try_compile "$LINENO"; then : 18205 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 18206 ac_cv_c_bigendian=yes 18207 fi 18208 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 18209 if test "$ac_cv_c_bigendian" = unknown; then 18210 ac_cv_c_bigendian=no 18211 else 18212 # finding both strings is unlikely to happen, but who knows? 18213 ac_cv_c_bigendian=unknown 18214 fi 18215 fi 18216fi 18217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18218else 18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18220/* end confdefs.h. */ 18221$ac_includes_default 18222int 18223main () 18224{ 18225 18226 /* Are we little or big endian? From Harbison&Steele. */ 18227 union 18228 { 18229 long int l; 18230 char c[sizeof (long int)]; 18231 } u; 18232 u.l = 1; 18233 return u.c[sizeof (long int) - 1] == 1; 18234 18235 ; 18236 return 0; 18237} 18238_ACEOF 18239if ac_fn_c_try_run "$LINENO"; then : 18240 ac_cv_c_bigendian=no 18241else 18242 ac_cv_c_bigendian=yes 18243fi 18244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18245 conftest.$ac_objext conftest.beam conftest.$ac_ext 18246fi 18247 18248 fi 18249fi 18250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18251$as_echo "$ac_cv_c_bigendian" >&6; } 18252 case $ac_cv_c_bigendian in #( 18253 yes) 18254 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 18255;; #( 18256 no) 18257 ;; #( 18258 universal) 18259 18260$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18261 18262 ;; #( 18263 *) 18264 as_fn_error $? "unknown endianness 18265 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 18266 esac 18267 18268for ac_header in endian.h 18269do : 18270 ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 18271if test "x$ac_cv_header_endian_h" = xyes; then : 18272 cat >>confdefs.h <<_ACEOF 18273#define HAVE_ENDIAN_H 1 18274_ACEOF 18275 18276fi 18277 18278done 18279 18280ac_fn_c_check_decl "$LINENO" "le32toh" "ac_cv_have_decl_le32toh" "#include <endian.h> 18281" 18282if test "x$ac_cv_have_decl_le32toh" = xyes; then : 18283 ac_have_decl=1 18284else 18285 ac_have_decl=0 18286fi 18287 18288cat >>confdefs.h <<_ACEOF 18289#define HAVE_DECL_LE32TOH $ac_have_decl 18290_ACEOF 18291 18292 18293ac_fn_c_check_decl "$LINENO" "closefrom" "ac_cv_have_decl_closefrom" "#include <unistd.h> 18294 #include <stdlib.h> 18295" 18296if test "x$ac_cv_have_decl_closefrom" = xyes; then : 18297 ac_have_decl=1 18298else 18299 ac_have_decl=0 18300fi 18301 18302cat >>confdefs.h <<_ACEOF 18303#define HAVE_DECL_CLOSEFROM $ac_have_decl 18304_ACEOF 18305 18306ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 18307if test "x$ac_cv_func_closefrom" = xyes; then : 18308 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h 18309 18310else 18311 case " $LIBOBJS " in 18312 *" closefrom.$ac_objext "* ) ;; 18313 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 18314 ;; 18315esac 18316 18317fi 18318 18319 18320 18321for ac_header in sys/pstat.h 18322do : 18323 ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" 18324if test "x$ac_cv_header_sys_pstat_h" = xyes; then : 18325 cat >>confdefs.h <<_ACEOF 18326#define HAVE_SYS_PSTAT_H 1 18327_ACEOF 18328 18329fi 18330 18331done 18332 18333for ac_func in pstat_getfile2 18334do : 18335 ac_fn_c_check_func "$LINENO" "pstat_getfile2" "ac_cv_func_pstat_getfile2" 18336if test "x$ac_cv_func_pstat_getfile2" = xyes; then : 18337 cat >>confdefs.h <<_ACEOF 18338#define HAVE_PSTAT_GETFILE2 1 18339_ACEOF 18340 18341fi 18342done 18343 18344 18345 18346 found=0 18347 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18348 18349 path=$PATH 18350 18351else 18352 18353 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18354 18355fi 18356 $as_echo_n "checking for chpasswd... " 18357 for i in $(echo $path | sed -e 's/:/ /g'); do 18358 if test -e $i/chpasswd && ls -ld $i/chpasswd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18359 18360 CHPASSWD=$i/chpasswd 18361 found=1 18362 break 18363 18364fi 18365 done 18366 18367 if test "$found" = "1"; then : 18368 18369 $as_echo "$CHPASSWD" 18370 18371else 18372 18373 $as_echo no 18374 CHPASSWD= 18375 18376fi 18377 18378if test "x$CHPASSWD" != "x"; then : 18379 18380$as_echo "#define HAVE_CHPASSWD 1" >>confdefs.h 18381 18382 18383cat >>confdefs.h <<_ACEOF 18384#define CHPASSWD "$CHPASSWD" 18385_ACEOF 18386 18387 18388fi 18389 18390 18391 found=0 18392 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18393 18394 path=$PATH 18395 18396else 18397 18398 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18399 18400fi 18401 $as_echo_n "checking for pwdadm... " 18402 for i in $(echo $path | sed -e 's/:/ /g'); do 18403 if test -e $i/pwdadm && ls -ld $i/pwdadm | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18404 18405 PWDADM=$i/pwdadm 18406 found=1 18407 break 18408 18409fi 18410 done 18411 18412 if test "$found" = "1"; then : 18413 18414 $as_echo "$PWDADM" 18415 18416else 18417 18418 $as_echo no 18419 PWDADM= 18420 18421fi 18422 18423if test "x$PWDADM" != "x"; then : 18424 18425$as_echo "#define HAVE_PWDADM 1" >>confdefs.h 18426 18427 18428cat >>confdefs.h <<_ACEOF 18429#define PWDADM "$PWDADM" 18430_ACEOF 18431 18432 18433fi 18434 18435 18436 found=0 18437 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18438 18439 path=$PATH 18440 18441else 18442 18443 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18444 18445fi 18446 $as_echo_n "checking for useradd... " 18447 for i in $(echo $path | sed -e 's/:/ /g'); do 18448 if test -e $i/useradd && ls -ld $i/useradd | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18449 18450 USERADD=$i/useradd 18451 found=1 18452 break 18453 18454fi 18455 done 18456 18457 if test "$found" = "1"; then : 18458 18459 $as_echo "$USERADD" 18460 18461else 18462 18463 $as_echo no 18464 USERADD= 18465 18466fi 18467 18468if test "x$USERADD" != "x"; then : 18469 18470$as_echo "#define HAVE_USERADD 1" >>confdefs.h 18471 18472 18473cat >>confdefs.h <<_ACEOF 18474#define USERADD "$USERADD" 18475_ACEOF 18476 18477 18478fi 18479 18480 18481 found=0 18482 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18483 18484 path=$PATH 18485 18486else 18487 18488 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18489 18490fi 18491 $as_echo_n "checking for usermod... " 18492 for i in $(echo $path | sed -e 's/:/ /g'); do 18493 if test -e $i/usermod && ls -ld $i/usermod | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18494 18495 USERMOD=$i/usermod 18496 found=1 18497 break 18498 18499fi 18500 done 18501 18502 if test "$found" = "1"; then : 18503 18504 $as_echo "$USERMOD" 18505 18506else 18507 18508 $as_echo no 18509 USERMOD= 18510 18511fi 18512 18513if test "x$USERMOD" != "x"; then : 18514 18515$as_echo "#define HAVE_USERMOD 1" >>confdefs.h 18516 18517 18518cat >>confdefs.h <<_ACEOF 18519#define USERMOD "$USERMOD" 18520_ACEOF 18521 18522 18523fi 18524 18525 18526 found=0 18527 if test "x/sbin:/usr/sbin:/bin:/usr/bin:$PATH" = "x"; then : 18528 18529 path=$PATH 18530 18531else 18532 18533 path=/sbin:/usr/sbin:/bin:/usr/bin:$PATH 18534 18535fi 18536 $as_echo_n "checking for userdel... " 18537 for i in $(echo $path | sed -e 's/:/ /g'); do 18538 if test -e $i/userdel && ls -ld $i/userdel | grep '^[^ ][^ ][^ ][xs][^ ][^ ][^ ][^ ][^ ][^ ]' > /dev/null; then : 18539 18540 USERDEL=$i/userdel 18541 found=1 18542 break 18543 18544fi 18545 done 18546 18547 if test "$found" = "1"; then : 18548 18549 $as_echo "$USERDEL" 18550 18551else 18552 18553 $as_echo no 18554 USERDEL= 18555 18556fi 18557 18558if test "x$USERDEL" != "x"; then : 18559 18560$as_echo "#define HAVE_USERDEL 1" >>confdefs.h 18561 18562 18563cat >>confdefs.h <<_ACEOF 18564#define USERDEL "$USERDEL" 18565_ACEOF 18566 18567 18568fi 18569 18570if test "x$USERADD" != x && \ 18571 test "x$USERMOD" != x && test "x$USERDEL" != x; then : 18572 have_userprogs=yes 18573else 18574 have_userprogs=no 18575 18576fi 18577 18578 18579 18580# Check whether --with-pam was given. 18581if test "${with_pam+set}" = set; then : 18582 withval=$with_pam; 18583fi 18584 18585if test x$with_pam != xno; then : 18586 18587 18588 18589 18590 # 18591 # Populate ${LIBRARY}_{PATH,CFLAGS,LDFLAGS} according to arguments 18592 # 18593 if test "x$with_pam" != xyes && 18594 test "x$with_pam" != xcheck && 18595 test "x$with_pam" != x 18596 then 18597 test -z "$PAM_PATH" && PAM_PATH="$with_pam" 18598 if test "x$with_pam" != x/usr && 18599 test "x$with_pam" != x/ 18600 then 18601 test -z "$PAM_CFLAGS" && PAM_CFLAGS="" 18602 test -z "$PAM_CPPFLAGS" && PAM_CPPFLAGS="-I$with_pam/include" 18603 test -z "$PAM_LDFLAGS" && PAM_LDFLAGS="-L$with_pam/lib" 18604 fi 18605 else 18606 PAM_PATH="default path" 18607 fi 18608 18609 # 18610 # Save old environment 18611 # 18612 save_CFLAGS="$CFLAGS" 18613 save_CPPFLAGS="$CPPFLAGS" 18614 save_LDFLAGS="$LDFLAGS" 18615 save_LIBS="$LIBS" 18616 18617 CFLAGS="$CFLAGS $PAM_CFLAGS" 18618 CPPFLAGS="$CPPFLAGS $PAM_CPPFLAGS" 18619 LDFLAGS="$LDFLAGS $PAM_LDFLAGS" 18620 18621 # 18622 # Run checks passed as argument 18623 # 18624 18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 18626$as_echo_n "checking for pam_start in -lpam... " >&6; } 18627if ${ac_cv_lib_pam_pam_start+:} false; then : 18628 $as_echo_n "(cached) " >&6 18629else 18630 ac_check_lib_save_LIBS=$LIBS 18631LIBS="-lpam $LIBS" 18632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18633/* end confdefs.h. */ 18634 18635/* Override any GCC internal prototype to avoid an error. 18636 Use char because int might match the return type of a GCC 18637 builtin and then its argument prototype would still apply. */ 18638#ifdef __cplusplus 18639extern "C" 18640#endif 18641char pam_start (); 18642int 18643main () 18644{ 18645return pam_start (); 18646 ; 18647 return 0; 18648} 18649_ACEOF 18650if ac_fn_c_try_link "$LINENO"; then : 18651 ac_cv_lib_pam_pam_start=yes 18652else 18653 ac_cv_lib_pam_pam_start=no 18654fi 18655rm -f core conftest.err conftest.$ac_objext \ 18656 conftest$ac_exeext conftest.$ac_ext 18657LIBS=$ac_check_lib_save_LIBS 18658fi 18659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 18660$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 18661if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 18662 cat >>confdefs.h <<_ACEOF 18663#define HAVE_LIBPAM 1 18664_ACEOF 18665 18666 LIBS="-lpam $LIBS" 18667 18668fi 18669 18670 for ac_header in security/pam_appl.h 18671do : 18672 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" 18673if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : 18674 cat >>confdefs.h <<_ACEOF 18675#define HAVE_SECURITY_PAM_APPL_H 1 18676_ACEOF 18677 18678fi 18679 18680done 18681 18682 18683 18684 # 18685 # Pick up any libraries added by tests 18686 # 18687 test -z "$PAM_LIBS" && PAM_LIBS="$LIBS" 18688 18689 # 18690 # libtool understands -R$path, but we are not using libtool in configure 18691 # snippets, so -R$path goes to $pkg_LDFLAGS only after autoconf tests 18692 # 18693 if test "x$with_pam" != xyes && 18694 test "x$with_pam" != xcheck && 18695 test "x$with_pam" != x/usr && 18696 test "x$with_pam" != x/ 18697 then 18698 PAM_LDFLAGS="$PAM_LDFLAGS -R$with_pam/lib" 18699 fi 18700 18701 # 18702 # Restore pristine environment 18703 # 18704 CFLAGS="$save_CFLAGS" 18705 CPPFLAGS="$save_CPPFLAGS" 18706 LDFLAGS="$save_LDFLAGS" 18707 LIBS="$save_LIBS" 18708 18709 18710 18711 18712 18713 18714 18715 case $target_os in #( 18716 *gnu*|*solaris*|*aix*|*hpux*|*hp-ux*) : 18717 18718 if test "x$ac_cv_lib_pam_pam_start" != "xyes"; then : 18719 as_fn_error $? "Cannot find PAM library" "$LINENO" 5 18720 18721fi 18722 if test "x$ac_cv_header_security_pam_appl_h" != "xyes"; then : 18723 as_fn_error $? "Cannot find PAM headers" "$LINENO" 5 18724 18725fi 18726 ;; #( 18727 *) : 18728 ;; 18729esac 18730 if test "x$ac_cv_lib_pam_pam_start" = "xyes" && \ 18731 test "x$ac_cv_header_security_pam_appl_h" = "xyes"; then : 18732 have_pam=yes 18733else 18734 have_pam=no 18735 18736fi 18737 for ac_func in fgetpwent fgetgrent 18738do : 18739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18740ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18741if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18742 cat >>confdefs.h <<_ACEOF 18743#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18744_ACEOF 18745 18746fi 18747done 18748 18749 if test "x$have_pam" = "xyes" && \ 18750 test "x$have_userprogs" = "xyes" && \ 18751 test "x$ac_cv_func_fgetpwent" = "xyes" && \ 18752 test "x$ac_cv_func_fgetgrent" = "xyes"; then : 18753 18754 users_promises_ok=yes 18755 18756else 18757 18758 users_promises_ok=no 18759 18760fi 18761 18762else 18763 18764 users_promises_ok=no 18765 18766fi 18767 if test "x$users_promises_ok" = "xyes"; then 18768 HAVE_USERS_PROMISE_DEPS_TRUE= 18769 HAVE_USERS_PROMISE_DEPS_FALSE='#' 18770else 18771 HAVE_USERS_PROMISE_DEPS_TRUE='#' 18772 HAVE_USERS_PROMISE_DEPS_FALSE= 18773fi 18774 18775 18776ac_fn_c_check_decl "$LINENO" "getnetgrent" "ac_cv_have_decl_getnetgrent" "#include <netdb.h> 18777" 18778if test "x$ac_cv_have_decl_getnetgrent" = xyes; then : 18779 ac_have_decl=1 18780else 18781 ac_have_decl=0 18782fi 18783 18784cat >>confdefs.h <<_ACEOF 18785#define HAVE_DECL_GETNETGRENT $ac_have_decl 18786_ACEOF 18787 18788for ac_func in getnetgrent 18789do : 18790 ac_fn_c_check_func "$LINENO" "getnetgrent" "ac_cv_func_getnetgrent" 18791if test "x$ac_cv_func_getnetgrent" = xyes; then : 18792 cat >>confdefs.h <<_ACEOF 18793#define HAVE_GETNETGRENT 1 18794_ACEOF 18795 18796fi 18797done 18798 18799 18800ac_fn_c_check_decl "$LINENO" "setnetgrent" "ac_cv_have_decl_setnetgrent" "#include <netdb.h> 18801" 18802if test "x$ac_cv_have_decl_setnetgrent" = xyes; then : 18803 ac_have_decl=1 18804else 18805 ac_have_decl=0 18806fi 18807 18808cat >>confdefs.h <<_ACEOF 18809#define HAVE_DECL_SETNETGRENT $ac_have_decl 18810_ACEOF 18811 18812for ac_func in setnetgrent 18813do : 18814 ac_fn_c_check_func "$LINENO" "setnetgrent" "ac_cv_func_setnetgrent" 18815if test "x$ac_cv_func_setnetgrent" = xyes; then : 18816 cat >>confdefs.h <<_ACEOF 18817#define HAVE_SETNETGRENT 1 18818_ACEOF 18819 18820fi 18821done 18822 18823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18824/* end confdefs.h. */ 18825#include <netdb.h> 18826int 18827main () 18828{ 18829extern int setnetgrent(const char *) 18830 ; 18831 return 0; 18832} 18833_ACEOF 18834if ac_fn_c_try_compile "$LINENO"; then : 18835 18836$as_echo "#define SETNETGRENT_RETURNS_INT 1" >>confdefs.h 18837 18838else 18839 18840$as_echo "#define SETNETGRENT_RETURNS_INT 0" >>confdefs.h 18841 18842fi 18843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18844 18845 18846ac_fn_c_check_decl "$LINENO" "endnetgrent" "ac_cv_have_decl_endnetgrent" "#include <netdb.h> 18847" 18848if test "x$ac_cv_have_decl_endnetgrent" = xyes; then : 18849 ac_have_decl=1 18850else 18851 ac_have_decl=0 18852fi 18853 18854cat >>confdefs.h <<_ACEOF 18855#define HAVE_DECL_ENDNETGRENT $ac_have_decl 18856_ACEOF 18857 18858for ac_func in endnetgrent 18859do : 18860 ac_fn_c_check_func "$LINENO" "endnetgrent" "ac_cv_func_endnetgrent" 18861if test "x$ac_cv_func_endnetgrent" = xyes; then : 18862 cat >>confdefs.h <<_ACEOF 18863#define HAVE_ENDNETGRENT 1 18864_ACEOF 18865 18866fi 18867done 18868 18869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18870/* end confdefs.h. */ 18871#include <netdb.h> 18872int 18873main () 18874{ 18875extern int endnetgrent(const char *) 18876 ; 18877 return 0; 18878} 18879_ACEOF 18880if ac_fn_c_try_compile "$LINENO"; then : 18881 18882$as_echo "#define ENDNETGRENT_RETURNS_INT 1" >>confdefs.h 18883 18884else 18885 18886$as_echo "#define ENDNETGRENT_RETURNS_INT 0" >>confdefs.h 18887 18888fi 18889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18890 18891 18892for ac_func in sendto 18893do : 18894 ac_fn_c_check_func "$LINENO" "sendto" "ac_cv_func_sendto" 18895if test "x$ac_cv_func_sendto" = xyes; then : 18896 cat >>confdefs.h <<_ACEOF 18897#define HAVE_SENDTO 1 18898_ACEOF 18899 18900fi 18901done 18902 18903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18904/* end confdefs.h. */ 18905#include <sys/types.h> 18906 #include <sys/socket.h> 18907int 18908main () 18909{ 18910extern ssize_t sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) 18911 ; 18912 return 0; 18913} 18914_ACEOF 18915if ac_fn_c_try_compile "$LINENO"; then : 18916 18917$as_echo "#define SENDTO_RETURNS_SSIZE_T 1" >>confdefs.h 18918 18919else 18920 18921$as_echo "#define SENDTO_RETURNS_SSIZE_T 0" >>confdefs.h 18922 18923fi 18924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18925 18926 18927 ac_fn_c_check_func "$LINENO" "ctime" "ac_cv_func_ctime" 18928if test "x$ac_cv_func_ctime" = xyes; then : 18929 18930else 18931 as_fn_error $? "Unable to find function ctime" "$LINENO" 5 18932fi 18933 18934 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ctime is properly declared" >&5 18936$as_echo_n "checking whether ctime is properly declared... " >&6; } 18937if ${hw_cv_func_ctime_proper+:} false; then : 18938 $as_echo_n "(cached) " >&6 18939else 18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18941/* end confdefs.h. */ 18942 18943int 18944main () 18945{ 18946#error ctime(3) may produce different results on different OSes. Let's have our POSIX-compliant implementation all the time 18947 ; 18948 return 0; 18949} 18950_ACEOF 18951if ac_fn_c_try_compile "$LINENO"; then : 18952 hw_cv_func_ctime_proper=yes 18953else 18954 hw_cv_func_ctime_proper=no 18955fi 18956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18957fi 18958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_ctime_proper" >&5 18959$as_echo "$hw_cv_func_ctime_proper" >&6; } 18960 18961 18962 18963 if test "$hw_cv_func_ctime_proper" = yes; then : 18964 18965$as_echo "#define HAVE_ctime_PROPER 1" >>confdefs.h 18966 18967else 18968 post_macros="$post_macros 18969#define ctime rpl_ctime" 18970fi 18971 18972 18973 if test "$hw_cv_func_ctime_proper" = "no"; then : 18974 case " $LIBOBJS " in 18975 *" rpl_ctime.$ac_objext "* ) ;; 18976 *) LIBOBJS="$LIBOBJS rpl_ctime.$ac_objext" 18977 ;; 18978esac 18979 18980 18981fi 18982 18983 18984 18985 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" 18986if test "x$ac_cv_func_mkdir" = xyes; then : 18987 18988else 18989 as_fn_error $? "Unable to find function mkdir" "$LINENO" 5 18990fi 18991 18992 18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir is properly declared" >&5 18994$as_echo_n "checking whether mkdir is properly declared... " >&6; } 18995if ${hw_cv_func_mkdir_proper+:} false; then : 18996 $as_echo_n "(cached) " >&6 18997else 18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18999/* end confdefs.h. */ 19000#include <sys/stat.h> 19001 #include <sys/types.h> 19002int 19003main () 19004{ 19005int mkdir(const char *pathname, mode_t mode); 19006 ; 19007 return 0; 19008} 19009_ACEOF 19010if ac_fn_c_try_compile "$LINENO"; then : 19011 hw_cv_func_mkdir_proper=yes 19012else 19013 hw_cv_func_mkdir_proper=no 19014fi 19015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19016fi 19017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_mkdir_proper" >&5 19018$as_echo "$hw_cv_func_mkdir_proper" >&6; } 19019 19020 19021 19022 if test "$hw_cv_func_mkdir_proper" = yes; then : 19023 19024$as_echo "#define HAVE_mkdir_PROPER 1" >>confdefs.h 19025 19026else 19027 post_macros="$post_macros 19028#define mkdir rpl_mkdir" 19029fi 19030 19031 19032 19033 19034 ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat" 19035if test "x$ac_cv_func_stat" = xyes; then : 19036 19037else 19038 as_fn_error $? "Unable to find function stat" "$LINENO" 5 19039fi 19040 19041 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat is properly declared" >&5 19043$as_echo_n "checking whether stat is properly declared... " >&6; } 19044if ${hw_cv_func_stat_proper+:} false; then : 19045 $as_echo_n "(cached) " >&6 19046else 19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19048/* end confdefs.h. */ 19049#include <sys/types.h> 19050 #include <sys/stat.h> 19051int 19052main () 19053{ 19054#if defined(__MINGW32__) 19055 #error stat in Windows CRT ill-behaves 19056 #endif 19057 ; 19058 return 0; 19059} 19060_ACEOF 19061if ac_fn_c_try_compile "$LINENO"; then : 19062 hw_cv_func_stat_proper=yes 19063else 19064 hw_cv_func_stat_proper=no 19065fi 19066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19067fi 19068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_stat_proper" >&5 19069$as_echo "$hw_cv_func_stat_proper" >&6; } 19070 19071 19072 19073 if test "$hw_cv_func_stat_proper" = yes; then : 19074 19075$as_echo "#define HAVE_stat_PROPER 1" >>confdefs.h 19076 19077else 19078 post_macros="$post_macros 19079" 19080fi 19081 19082 19083 19084 19085 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename" 19086if test "x$ac_cv_func_rename" = xyes; then : 19087 19088else 19089 as_fn_error $? "Unable to find function rename" "$LINENO" 5 19090fi 19091 19092 19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename is properly declared" >&5 19094$as_echo_n "checking whether rename is properly declared... " >&6; } 19095if ${hw_cv_func_rename_proper+:} false; then : 19096 $as_echo_n "(cached) " >&6 19097else 19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19099/* end confdefs.h. */ 19100 19101int 19102main () 19103{ 19104#if defined(__MINGW32__) 19105 #error rename in Windows CRT ill-behaves 19106 #endif 19107 ; 19108 return 0; 19109} 19110_ACEOF 19111if ac_fn_c_try_compile "$LINENO"; then : 19112 hw_cv_func_rename_proper=yes 19113else 19114 hw_cv_func_rename_proper=no 19115fi 19116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19117fi 19118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_rename_proper" >&5 19119$as_echo "$hw_cv_func_rename_proper" >&6; } 19120 19121 19122 19123 if test "$hw_cv_func_rename_proper" = yes; then : 19124 19125$as_echo "#define HAVE_rename_PROPER 1" >>confdefs.h 19126 19127else 19128 post_macros="$post_macros 19129#define rename rpl_rename" 19130fi 19131 19132 19133ac_fn_c_check_decl "$LINENO" "mkdtemp" "ac_cv_have_decl_mkdtemp" "$ac_includes_default" 19134if test "x$ac_cv_have_decl_mkdtemp" = xyes; then : 19135 ac_have_decl=1 19136else 19137 ac_have_decl=0 19138fi 19139 19140cat >>confdefs.h <<_ACEOF 19141#define HAVE_DECL_MKDTEMP $ac_have_decl 19142_ACEOF 19143 19144ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" 19145if test "x$ac_cv_func_mkdtemp" = xyes; then : 19146 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h 19147 19148else 19149 case " $LIBOBJS " in 19150 *" mkdtemp.$ac_objext "* ) ;; 19151 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" 19152 ;; 19153esac 19154 19155fi 19156 19157 19158 19159ac_fn_c_check_decl "$LINENO" "strrstr" "ac_cv_have_decl_strrstr" "$ac_includes_default" 19160if test "x$ac_cv_have_decl_strrstr" = xyes; then : 19161 ac_have_decl=1 19162else 19163 ac_have_decl=0 19164fi 19165 19166cat >>confdefs.h <<_ACEOF 19167#define HAVE_DECL_STRRSTR $ac_have_decl 19168_ACEOF 19169 19170ac_fn_c_check_func "$LINENO" "strrstr" "ac_cv_func_strrstr" 19171if test "x$ac_cv_func_strrstr" = xyes; then : 19172 $as_echo "#define HAVE_STRRSTR 1" >>confdefs.h 19173 19174else 19175 case " $LIBOBJS " in 19176 *" strrstr.$ac_objext "* ) ;; 19177 *) LIBOBJS="$LIBOBJS strrstr.$ac_objext" 19178 ;; 19179esac 19180 19181fi 19182 19183 19184 19185ac_fn_c_check_decl "$LINENO" "stpncpy" "ac_cv_have_decl_stpncpy" "$ac_includes_default" 19186if test "x$ac_cv_have_decl_stpncpy" = xyes; then : 19187 ac_have_decl=1 19188else 19189 ac_have_decl=0 19190fi 19191 19192cat >>confdefs.h <<_ACEOF 19193#define HAVE_DECL_STPNCPY $ac_have_decl 19194_ACEOF 19195 19196ac_fn_c_check_func "$LINENO" "stpncpy" "ac_cv_func_stpncpy" 19197if test "x$ac_cv_func_stpncpy" = xyes; then : 19198 $as_echo "#define HAVE_STPNCPY 1" >>confdefs.h 19199 19200else 19201 case " $LIBOBJS " in 19202 *" stpncpy.$ac_objext "* ) ;; 19203 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" 19204 ;; 19205esac 19206 19207fi 19208 19209 19210 19211for ac_func in seteuid setegid setreuid setregid 19212do : 19213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19214ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19215if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19216 cat >>confdefs.h <<_ACEOF 19217#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19218_ACEOF 19219 19220fi 19221done 19222 19223for ac_func in uname gethostname chflags 19224do : 19225 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19226ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19227if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19228 cat >>confdefs.h <<_ACEOF 19229#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19230_ACEOF 19231 19232fi 19233done 19234 19235for ac_func in mkfifo statfs statvfs door 19236do : 19237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19238ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19239if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19240 cat >>confdefs.h <<_ACEOF 19241#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19242_ACEOF 19243 19244fi 19245done 19246 19247for ac_func in sysinfo setsid sysconf 19248do : 19249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19250ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19251if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19252 cat >>confdefs.h <<_ACEOF 19253#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19254_ACEOF 19255 19256fi 19257done 19258 19259for ac_func in getzoneid getzonenamebyid 19260do : 19261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19262ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19263if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19264 cat >>confdefs.h <<_ACEOF 19265#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19266_ACEOF 19267 19268fi 19269done 19270 19271for ac_func in fpathconf 19272do : 19273 ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf" 19274if test "x$ac_cv_func_fpathconf" = xyes; then : 19275 cat >>confdefs.h <<_ACEOF 19276#define HAVE_FPATHCONF 1 19277_ACEOF 19278 19279fi 19280done 19281 19282 19283ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" 19284if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : 19285 19286cat >>confdefs.h <<_ACEOF 19287#define HAVE_STRUCT_STAT_ST_MTIM 1 19288_ACEOF 19289 19290 19291fi 19292ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default" 19293if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then : 19294 19295cat >>confdefs.h <<_ACEOF 19296#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1 19297_ACEOF 19298 19299 19300fi 19301 19302ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 19303if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 19304 19305cat >>confdefs.h <<_ACEOF 19306#define HAVE_STRUCT_STAT_ST_BLOCKS 1 19307_ACEOF 19308 19309 19310fi 19311 19312 19313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRIuMAX/PRIdMAX macros" >&5 19314$as_echo_n "checking for PRIuMAX/PRIdMAX macros... " >&6; } 19315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19316/* end confdefs.h. */ 19317$ac_includes_default 19318 #include <inttypes.h> 19319 #if defined(PRIuMAX) && defined(PRIdMAX) 19320 primacros_found 19321 #endif 19322 19323_ACEOF 19324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19325 $EGREP "primacros_found" >/dev/null 2>&1; then : 19326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19327$as_echo "yes" >&6; } 19328else 19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19330$as_echo "no" >&6; } 19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unable to find out how to scan intmax_t/uintmax_t types" >&5 19332$as_echo "Unable to find out how to scan intmax_t/uintmax_t types" >&6; } 19333fi 19334rm -f conftest* 19335 19336 19337 19338 for ac_header in stdarg.h 19339do : 19340 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 19341if test "x$ac_cv_header_stdarg_h" = xyes; then : 19342 cat >>confdefs.h <<_ACEOF 19343#define HAVE_STDARG_H 1 19344_ACEOF 19345 19346fi 19347 19348done 19349 19350 19351 19352 19353 for ac_header in inttypes.h locale.h stddef.h stdint.h 19354do : 19355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19356ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19357if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19358 cat >>confdefs.h <<_ACEOF 19359#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19360_ACEOF 19361 19362fi 19363 19364done 19365 19366 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 19367" 19368if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 19369 19370cat >>confdefs.h <<_ACEOF 19371#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 19372_ACEOF 19373 19374 19375fi 19376ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 19377" 19378if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 19379 19380cat >>confdefs.h <<_ACEOF 19381#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 19382_ACEOF 19383 19384 19385fi 19386 19387 19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 19389$as_echo_n "checking for long double... " >&6; } 19390if ${ac_cv_type_long_double+:} false; then : 19391 $as_echo_n "(cached) " >&6 19392else 19393 if test "$GCC" = yes; then 19394 ac_cv_type_long_double=yes 19395 else 19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19397/* end confdefs.h. */ 19398/* The Stardent Vistra knows sizeof (long double), but does 19399 not support it. */ 19400 long double foo = 0.0L; 19401int 19402main () 19403{ 19404static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 19405 sizeof (double) <= sizeof (long double))]; 19406test_array [0] = 0; 19407return test_array [0]; 19408 19409 ; 19410 return 0; 19411} 19412_ACEOF 19413if ac_fn_c_try_compile "$LINENO"; then : 19414 ac_cv_type_long_double=yes 19415else 19416 ac_cv_type_long_double=no 19417fi 19418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19419 fi 19420fi 19421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 19422$as_echo "$ac_cv_type_long_double" >&6; } 19423 if test $ac_cv_type_long_double = yes; then 19424 19425$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 19426 19427 fi 19428 19429 19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 19431$as_echo_n "checking for long long int... " >&6; } 19432if ${ac_cv_type_long_long_int+:} false; then : 19433 $as_echo_n "(cached) " >&6 19434else 19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19436/* end confdefs.h. */ 19437 19438 /* For now, do not test the preprocessor; as of 2007 there are too many 19439 implementations with broken preprocessors. Perhaps this can 19440 be revisited in 2012. In the meantime, code should not expect 19441 #if to work with literals wider than 32 bits. */ 19442 /* Test literals. */ 19443 long long int ll = 9223372036854775807ll; 19444 long long int nll = -9223372036854775807LL; 19445 unsigned long long int ull = 18446744073709551615ULL; 19446 /* Test constant expressions. */ 19447 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 19448 ? 1 : -1)]; 19449 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 19450 ? 1 : -1)]; 19451 int i = 63; 19452int 19453main () 19454{ 19455/* Test availability of runtime routines for shift and division. */ 19456 long long int llmax = 9223372036854775807ll; 19457 unsigned long long int ullmax = 18446744073709551615ull; 19458 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 19459 | (llmax / ll) | (llmax % ll) 19460 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 19461 | (ullmax / ull) | (ullmax % ull)); 19462 ; 19463 return 0; 19464} 19465 19466_ACEOF 19467if ac_fn_c_try_link "$LINENO"; then : 19468 if test "$cross_compiling" = yes; then : 19469 ac_cv_type_long_long_int=yes 19470else 19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19472/* end confdefs.h. */ 19473#include <limits.h> 19474 #ifndef LLONG_MAX 19475 # define HALF \ 19476 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 19477 # define LLONG_MAX (HALF - 1 + HALF) 19478 #endif 19479int 19480main () 19481{ 19482long long int n = 1; 19483 int i; 19484 for (i = 0; ; i++) 19485 { 19486 long long int m = n << i; 19487 if (m >> i != n) 19488 return 1; 19489 if (LLONG_MAX / 2 < m) 19490 break; 19491 } 19492 return 0; 19493 ; 19494 return 0; 19495} 19496_ACEOF 19497if ac_fn_c_try_run "$LINENO"; then : 19498 ac_cv_type_long_long_int=yes 19499else 19500 ac_cv_type_long_long_int=no 19501fi 19502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19503 conftest.$ac_objext conftest.beam conftest.$ac_ext 19504fi 19505 19506else 19507 ac_cv_type_long_long_int=no 19508fi 19509rm -f core conftest.err conftest.$ac_objext \ 19510 conftest$ac_exeext conftest.$ac_ext 19511fi 19512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 19513$as_echo "$ac_cv_type_long_long_int" >&6; } 19514 if test $ac_cv_type_long_long_int = yes; then 19515 19516$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 19517 19518 fi 19519 19520 19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 19522$as_echo_n "checking for unsigned long long int... " >&6; } 19523if ${ac_cv_type_unsigned_long_long_int+:} false; then : 19524 $as_echo_n "(cached) " >&6 19525else 19526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19527/* end confdefs.h. */ 19528 19529 /* For now, do not test the preprocessor; as of 2007 there are too many 19530 implementations with broken preprocessors. Perhaps this can 19531 be revisited in 2012. In the meantime, code should not expect 19532 #if to work with literals wider than 32 bits. */ 19533 /* Test literals. */ 19534 long long int ll = 9223372036854775807ll; 19535 long long int nll = -9223372036854775807LL; 19536 unsigned long long int ull = 18446744073709551615ULL; 19537 /* Test constant expressions. */ 19538 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 19539 ? 1 : -1)]; 19540 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 19541 ? 1 : -1)]; 19542 int i = 63; 19543int 19544main () 19545{ 19546/* Test availability of runtime routines for shift and division. */ 19547 long long int llmax = 9223372036854775807ll; 19548 unsigned long long int ullmax = 18446744073709551615ull; 19549 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 19550 | (llmax / ll) | (llmax % ll) 19551 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 19552 | (ullmax / ull) | (ullmax % ull)); 19553 ; 19554 return 0; 19555} 19556 19557_ACEOF 19558if ac_fn_c_try_link "$LINENO"; then : 19559 ac_cv_type_unsigned_long_long_int=yes 19560else 19561 ac_cv_type_unsigned_long_long_int=no 19562fi 19563rm -f core conftest.err conftest.$ac_objext \ 19564 conftest$ac_exeext conftest.$ac_ext 19565fi 19566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 19567$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 19568 if test $ac_cv_type_unsigned_long_long_int = yes; then 19569 19570$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 19571 19572 fi 19573 19574 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19575if test "x$ac_cv_type_size_t" = xyes; then : 19576 19577else 19578 19579cat >>confdefs.h <<_ACEOF 19580#define size_t unsigned int 19581_ACEOF 19582 19583fi 19584 19585 19586 19587 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 19588if test "x$ac_cv_type_intmax_t" = xyes; then : 19589 19590$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 19591 19592else 19593 test $ac_cv_type_long_long_int = yes \ 19594 && ac_type='long long int' \ 19595 || ac_type='long int' 19596 19597cat >>confdefs.h <<_ACEOF 19598#define intmax_t $ac_type 19599_ACEOF 19600 19601fi 19602 19603 19604 19605 19606 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" 19607if test "x$ac_cv_type_uintmax_t" = xyes; then : 19608 19609$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 19610 19611else 19612 test $ac_cv_type_unsigned_long_long_int = yes \ 19613 && ac_type='unsigned long long int' \ 19614 || ac_type='unsigned long int' 19615 19616cat >>confdefs.h <<_ACEOF 19617#define uintmax_t $ac_type 19618_ACEOF 19619 19620fi 19621 19622 19623 19624 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 19625if test "x$ac_cv_type_uintptr_t" = xyes; then : 19626 19627$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 19628 19629else 19630 for ac_type in 'unsigned int' 'unsigned long int' \ 19631 'unsigned long long int'; do 19632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19633/* end confdefs.h. */ 19634$ac_includes_default 19635int 19636main () 19637{ 19638static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 19639test_array [0] = 0; 19640return test_array [0]; 19641 19642 ; 19643 return 0; 19644} 19645_ACEOF 19646if ac_fn_c_try_compile "$LINENO"; then : 19647 19648cat >>confdefs.h <<_ACEOF 19649#define uintptr_t $ac_type 19650_ACEOF 19651 19652 ac_type= 19653fi 19654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19655 test -z "$ac_type" && break 19656 done 19657fi 19658 19659 19660 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 19661if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 19662 19663cat >>confdefs.h <<_ACEOF 19664#define HAVE_PTRDIFF_T 1 19665_ACEOF 19666 19667 19668fi 19669 19670 for ac_func in localeconv 19671do : 19672 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" 19673if test "x$ac_cv_func_localeconv" = xyes; then : 19674 cat >>confdefs.h <<_ACEOF 19675#define HAVE_LOCALECONV 1 19676_ACEOF 19677 19678fi 19679done 19680 19681 19682 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 19683if test "x$ac_cv_func_vsnprintf" = xyes; then : 19684 hw_cv_func_vsnprintf=yes 19685else 19686 hw_cv_func_vsnprintf=no 19687fi 19688 19689 if test "$hw_cv_func_vsnprintf" = yes; then : 19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5 19691$as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; } 19692if ${hw_cv_func_vsnprintf_c99+:} false; then : 19693 $as_echo_n "(cached) " >&6 19694else 19695 if test "$cross_compiling" = yes; then : 19696 hw_cv_func_vsnprintf_c99=no 19697else 19698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19699/* end confdefs.h. */ 19700#if HAVE_STDARG_H 19701 #include <stdarg.h> 19702 #endif 19703 #include <stdio.h> 19704 static int testprintf(char *buf, size_t size, const char *format, ...) 19705 { 19706 int result; 19707 va_list ap; 19708 va_start(ap, format); 19709 result = vsnprintf(buf, size, format, ap); 19710 va_end(ap); 19711 return result; 19712 } 19713int 19714main () 19715{ 19716char buf[43]; 19717 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 19718 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 19719 buf[0] != 'T' || buf[3] != '\0' || 19720 testprintf(NULL, 0, "") != 0 || /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */ 19721 testprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51) 19722 return 1; 19723 ; 19724 return 0; 19725} 19726_ACEOF 19727if ac_fn_c_try_run "$LINENO"; then : 19728 hw_cv_func_vsnprintf_c99=yes 19729else 19730 hw_cv_func_vsnprintf_c99=no 19731fi 19732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19733 conftest.$ac_objext conftest.beam conftest.$ac_ext 19734fi 19735 19736fi 19737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5 19738$as_echo "$hw_cv_func_vsnprintf_c99" >&6; } 19739else 19740 hw_cv_func_snprintf_c99=no 19741fi 19742 if test "$hw_cv_func_vsnprintf_c99" = yes; then : 19743 19744$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 19745 19746else 19747 19748 19749$as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h 19750 19751 19752$as_echo "#define vprintf rpl_vprintf" >>confdefs.h 19753 19754 19755$as_echo "#define vfprintf rpl_vfprintf" >>confdefs.h 19756 19757 19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19759$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19760if ${ac_cv_c_const+:} false; then : 19761 $as_echo_n "(cached) " >&6 19762else 19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19764/* end confdefs.h. */ 19765 19766int 19767main () 19768{ 19769 19770#ifndef __cplusplus 19771 /* Ultrix mips cc rejects this sort of thing. */ 19772 typedef int charset[2]; 19773 const charset cs = { 0, 0 }; 19774 /* SunOS 4.1.1 cc rejects this. */ 19775 char const *const *pcpcc; 19776 char **ppc; 19777 /* NEC SVR4.0.2 mips cc rejects this. */ 19778 struct point {int x, y;}; 19779 static struct point const zero = {0,0}; 19780 /* AIX XL C 1.02.0.0 rejects this. 19781 It does not let you subtract one const X* pointer from another in 19782 an arm of an if-expression whose if-part is not a constant 19783 expression */ 19784 const char *g = "string"; 19785 pcpcc = &g + (g ? g-g : 0); 19786 /* HPUX 7.0 cc rejects these. */ 19787 ++pcpcc; 19788 ppc = (char**) pcpcc; 19789 pcpcc = (char const *const *) ppc; 19790 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19791 char tx; 19792 char *t = &tx; 19793 char const *s = 0 ? (char *) 0 : (char const *) 0; 19794 19795 *t++ = 0; 19796 if (s) return 0; 19797 } 19798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19799 int x[] = {25, 17}; 19800 const int *foo = &x[0]; 19801 ++foo; 19802 } 19803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19804 typedef const int *iptr; 19805 iptr p = 0; 19806 ++p; 19807 } 19808 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 19809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19810 struct s { int j; const int *ap[3]; } bx; 19811 struct s *b = &bx; b->j = 5; 19812 } 19813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19814 const int foo = 10; 19815 if (!foo) return 0; 19816 } 19817 return !cs[0] && !zero.x; 19818#endif 19819 19820 ; 19821 return 0; 19822} 19823_ACEOF 19824if ac_fn_c_try_compile "$LINENO"; then : 19825 ac_cv_c_const=yes 19826else 19827 ac_cv_c_const=no 19828fi 19829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19830fi 19831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19832$as_echo "$ac_cv_c_const" >&6; } 19833if test $ac_cv_c_const = no; then 19834 19835$as_echo "#define const /**/" >>confdefs.h 19836 19837fi 19838 19839 19840 for ac_header in stdarg.h 19841do : 19842 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 19843if test "x$ac_cv_header_stdarg_h" = xyes; then : 19844 cat >>confdefs.h <<_ACEOF 19845#define HAVE_STDARG_H 1 19846_ACEOF 19847 19848fi 19849 19850done 19851 19852 19853 case " $LIBOBJS " in 19854 *" snprintf.$ac_objext "* ) ;; 19855 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 19856 ;; 19857esac 19858 19859 19860 19861fi 19862 19863 19864 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 19865if test "x$ac_cv_func_snprintf" = xyes; then : 19866 hw_cv_func_snprintf=yes 19867else 19868 hw_cv_func_snprintf=no 19869fi 19870 19871 if test "$hw_cv_func_snprintf" = yes; then : 19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5 19873$as_echo_n "checking whether snprintf is C99 compliant... " >&6; } 19874if ${hw_cv_func_snprintf_c99+:} false; then : 19875 $as_echo_n "(cached) " >&6 19876else 19877 if test "$cross_compiling" = yes; then : 19878 hw_cv_func_snprintf_c99=no 19879else 19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19881/* end confdefs.h. */ 19882#include <stdio.h> 19883int 19884main () 19885{ 19886char buf[43]; 19887 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 || 19888 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 || 19889 buf[0] != 'T' || buf[3] != '\0' || 19890 snprintf(NULL, 0, "") != 0 || /* POSSIBLE SEGFAULT ON NON-C99 LIBCs!!! */ 19891 snprintf(NULL, 0, "Some actual %18s formatting.\nblah %d.\n", "42", 1) != 51) 19892 return 1; 19893 ; 19894 return 0; 19895} 19896_ACEOF 19897if ac_fn_c_try_run "$LINENO"; then : 19898 hw_cv_func_snprintf_c99=yes 19899else 19900 hw_cv_func_snprintf_c99=no 19901fi 19902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19903 conftest.$ac_objext conftest.beam conftest.$ac_ext 19904fi 19905 19906fi 19907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5 19908$as_echo "$hw_cv_func_snprintf_c99" >&6; } 19909else 19910 hw_cv_func_snprintf_c99=no 19911fi 19912 if test "$hw_cv_func_snprintf_c99" = yes; then : 19913 19914$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 19915 19916else 19917 19918 19919$as_echo "#define snprintf rpl_snprintf" >>confdefs.h 19920 19921 19922$as_echo "#define printf rpl_printf" >>confdefs.h 19923 19924 19925$as_echo "#define fprintf rpl_fprintf" >>confdefs.h 19926 19927 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19929$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19930if ${ac_cv_c_const+:} false; then : 19931 $as_echo_n "(cached) " >&6 19932else 19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19934/* end confdefs.h. */ 19935 19936int 19937main () 19938{ 19939 19940#ifndef __cplusplus 19941 /* Ultrix mips cc rejects this sort of thing. */ 19942 typedef int charset[2]; 19943 const charset cs = { 0, 0 }; 19944 /* SunOS 4.1.1 cc rejects this. */ 19945 char const *const *pcpcc; 19946 char **ppc; 19947 /* NEC SVR4.0.2 mips cc rejects this. */ 19948 struct point {int x, y;}; 19949 static struct point const zero = {0,0}; 19950 /* AIX XL C 1.02.0.0 rejects this. 19951 It does not let you subtract one const X* pointer from another in 19952 an arm of an if-expression whose if-part is not a constant 19953 expression */ 19954 const char *g = "string"; 19955 pcpcc = &g + (g ? g-g : 0); 19956 /* HPUX 7.0 cc rejects these. */ 19957 ++pcpcc; 19958 ppc = (char**) pcpcc; 19959 pcpcc = (char const *const *) ppc; 19960 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19961 char tx; 19962 char *t = &tx; 19963 char const *s = 0 ? (char *) 0 : (char const *) 0; 19964 19965 *t++ = 0; 19966 if (s) return 0; 19967 } 19968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19969 int x[] = {25, 17}; 19970 const int *foo = &x[0]; 19971 ++foo; 19972 } 19973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19974 typedef const int *iptr; 19975 iptr p = 0; 19976 ++p; 19977 } 19978 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 19979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19980 struct s { int j; const int *ap[3]; } bx; 19981 struct s *b = &bx; b->j = 5; 19982 } 19983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19984 const int foo = 10; 19985 if (!foo) return 0; 19986 } 19987 return !cs[0] && !zero.x; 19988#endif 19989 19990 ; 19991 return 0; 19992} 19993_ACEOF 19994if ac_fn_c_try_compile "$LINENO"; then : 19995 ac_cv_c_const=yes 19996else 19997 ac_cv_c_const=no 19998fi 19999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20000fi 20001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20002$as_echo "$ac_cv_c_const" >&6; } 20003if test $ac_cv_c_const = no; then 20004 20005$as_echo "#define const /**/" >>confdefs.h 20006 20007fi 20008 20009 20010 for ac_header in stdarg.h 20011do : 20012 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 20013if test "x$ac_cv_header_stdarg_h" = xyes; then : 20014 cat >>confdefs.h <<_ACEOF 20015#define HAVE_STDARG_H 1 20016_ACEOF 20017 20018fi 20019 20020done 20021 20022 20023 case " $LIBOBJS " in 20024 *" snprintf.$ac_objext "* ) ;; 20025 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20026 ;; 20027esac 20028 20029 20030 20031fi 20032 20033 20034 for ac_header in varargs.h 20035do : 20036 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" 20037if test "x$ac_cv_header_varargs_h" = xyes; then : 20038 cat >>confdefs.h <<_ACEOF 20039#define HAVE_VARARGS_H 1 20040_ACEOF 20041 20042fi 20043 20044done 20045 20046 20047 20048 # Don't even bother checking for vasprintf if snprintf was standards 20049 # incompliant, this one is going to be too. 20050 if test "$hw_cv_func_snprintf_c99" = yes; then : 20051 for ac_func in vasprintf 20052do : 20053 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 20054if test "x$ac_cv_func_vasprintf" = xyes; then : 20055 cat >>confdefs.h <<_ACEOF 20056#define HAVE_VASPRINTF 1 20057_ACEOF 20058 hw_cv_func_vasprintf=yes 20059else 20060 hw_cv_func_vasprintf=no 20061fi 20062done 20063 20064 20065else 20066 hw_cv_func_vasprintf=no 20067fi 20068 if test "$hw_cv_func_vasprintf" = no; then : 20069 20070$as_echo "#define vasprintf rpl_vasprintf" >>confdefs.h 20071 20072 for ac_header in stdlib.h 20073do : 20074 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 20075if test "x$ac_cv_header_stdlib_h" = xyes; then : 20076 cat >>confdefs.h <<_ACEOF 20077#define HAVE_STDLIB_H 1 20078_ACEOF 20079 20080fi 20081 20082done 20083 20084 20085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 20086$as_echo_n "checking for va_copy... " >&6; } 20087if ${hw_cv_func_va_copy+:} false; then : 20088 $as_echo_n "(cached) " >&6 20089else 20090 if test "$cross_compiling" = yes; then : 20091 hw_cv_func_va_copy=no 20092else 20093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20094/* end confdefs.h. */ 20095#if HAVE_STDARG_H 20096 #include <stdarg.h> 20097 #elif HAVE_VARARGS_H 20098 #include <varargs.h> 20099 #endif 20100int 20101main () 20102{ 20103va_list ap, aq; va_copy(aq, ap); 20104 ; 20105 return 0; 20106} 20107_ACEOF 20108if ac_fn_c_try_run "$LINENO"; then : 20109 hw_cv_func_va_copy=yes 20110else 20111 hw_cv_func_va_copy=no 20112fi 20113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20114 conftest.$ac_objext conftest.beam conftest.$ac_ext 20115fi 20116 20117fi 20118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_va_copy" >&5 20119$as_echo "$hw_cv_func_va_copy" >&6; } 20120 if test "$hw_cv_func_va_copy" = yes; then : 20121 20122$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 20123 20124fi 20125 20126 if test "$hw_cv_func_va_copy" = no; then : 20127 20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5 20129$as_echo_n "checking for __va_copy... " >&6; } 20130if ${hw_cv_func___va_copy+:} false; then : 20131 $as_echo_n "(cached) " >&6 20132else 20133 if test "$cross_compiling" = yes; then : 20134 hw_cv_func___va_copy=no 20135else 20136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20137/* end confdefs.h. */ 20138#if HAVE_STDARG_H 20139 #include <stdarg.h> 20140 #elif HAVE_VARARGS_H 20141 #include <varargs.h> 20142 #endif 20143int 20144main () 20145{ 20146va_list ap, aq; __va_copy(aq, ap); 20147 ; 20148 return 0; 20149} 20150_ACEOF 20151if ac_fn_c_try_run "$LINENO"; then : 20152 hw_cv_func___va_copy=yes 20153else 20154 hw_cv_func___va_copy=no 20155fi 20156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20157 conftest.$ac_objext conftest.beam conftest.$ac_ext 20158fi 20159 20160fi 20161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func___va_copy" >&5 20162$as_echo "$hw_cv_func___va_copy" >&6; } 20163 if test "$hw_cv_func___va_copy" = yes; then : 20164 20165$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 20166 20167fi 20168 20169fi 20170 20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20172$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20173if ${ac_cv_c_const+:} false; then : 20174 $as_echo_n "(cached) " >&6 20175else 20176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20177/* end confdefs.h. */ 20178 20179int 20180main () 20181{ 20182 20183#ifndef __cplusplus 20184 /* Ultrix mips cc rejects this sort of thing. */ 20185 typedef int charset[2]; 20186 const charset cs = { 0, 0 }; 20187 /* SunOS 4.1.1 cc rejects this. */ 20188 char const *const *pcpcc; 20189 char **ppc; 20190 /* NEC SVR4.0.2 mips cc rejects this. */ 20191 struct point {int x, y;}; 20192 static struct point const zero = {0,0}; 20193 /* AIX XL C 1.02.0.0 rejects this. 20194 It does not let you subtract one const X* pointer from another in 20195 an arm of an if-expression whose if-part is not a constant 20196 expression */ 20197 const char *g = "string"; 20198 pcpcc = &g + (g ? g-g : 0); 20199 /* HPUX 7.0 cc rejects these. */ 20200 ++pcpcc; 20201 ppc = (char**) pcpcc; 20202 pcpcc = (char const *const *) ppc; 20203 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20204 char tx; 20205 char *t = &tx; 20206 char const *s = 0 ? (char *) 0 : (char const *) 0; 20207 20208 *t++ = 0; 20209 if (s) return 0; 20210 } 20211 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20212 int x[] = {25, 17}; 20213 const int *foo = &x[0]; 20214 ++foo; 20215 } 20216 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20217 typedef const int *iptr; 20218 iptr p = 0; 20219 ++p; 20220 } 20221 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20222 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20223 struct s { int j; const int *ap[3]; } bx; 20224 struct s *b = &bx; b->j = 5; 20225 } 20226 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20227 const int foo = 10; 20228 if (!foo) return 0; 20229 } 20230 return !cs[0] && !zero.x; 20231#endif 20232 20233 ; 20234 return 0; 20235} 20236_ACEOF 20237if ac_fn_c_try_compile "$LINENO"; then : 20238 ac_cv_c_const=yes 20239else 20240 ac_cv_c_const=no 20241fi 20242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20243fi 20244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20245$as_echo "$ac_cv_c_const" >&6; } 20246if test $ac_cv_c_const = no; then 20247 20248$as_echo "#define const /**/" >>confdefs.h 20249 20250fi 20251 20252 20253 for ac_header in stdarg.h 20254do : 20255 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 20256if test "x$ac_cv_header_stdarg_h" = xyes; then : 20257 cat >>confdefs.h <<_ACEOF 20258#define HAVE_STDARG_H 1 20259_ACEOF 20260 20261fi 20262 20263done 20264 20265 20266 case " $LIBOBJS " in 20267 *" snprintf.$ac_objext "* ) ;; 20268 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20269 ;; 20270esac 20271 20272 20273fi 20274 20275 20276 # Don't even bother checking for asprintf if snprintf was standards 20277 # incompliant, this one is going to be too. 20278 if test "$hw_cv_func_snprintf_c99" = yes; then : 20279 for ac_func in asprintf 20280do : 20281 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 20282if test "x$ac_cv_func_asprintf" = xyes; then : 20283 cat >>confdefs.h <<_ACEOF 20284#define HAVE_ASPRINTF 1 20285_ACEOF 20286 hw_cv_func_asprintf=yes 20287else 20288 hw_cv_func_asprintf=no 20289fi 20290done 20291 20292 20293else 20294 hw_cv_func_asprintf=no 20295fi 20296 if test "$hw_cv_func_asprintf" = no; then : 20297 20298$as_echo "#define asprintf rpl_asprintf" >>confdefs.h 20299 20300 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20302$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20303if ${ac_cv_c_const+:} false; then : 20304 $as_echo_n "(cached) " >&6 20305else 20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20307/* end confdefs.h. */ 20308 20309int 20310main () 20311{ 20312 20313#ifndef __cplusplus 20314 /* Ultrix mips cc rejects this sort of thing. */ 20315 typedef int charset[2]; 20316 const charset cs = { 0, 0 }; 20317 /* SunOS 4.1.1 cc rejects this. */ 20318 char const *const *pcpcc; 20319 char **ppc; 20320 /* NEC SVR4.0.2 mips cc rejects this. */ 20321 struct point {int x, y;}; 20322 static struct point const zero = {0,0}; 20323 /* AIX XL C 1.02.0.0 rejects this. 20324 It does not let you subtract one const X* pointer from another in 20325 an arm of an if-expression whose if-part is not a constant 20326 expression */ 20327 const char *g = "string"; 20328 pcpcc = &g + (g ? g-g : 0); 20329 /* HPUX 7.0 cc rejects these. */ 20330 ++pcpcc; 20331 ppc = (char**) pcpcc; 20332 pcpcc = (char const *const *) ppc; 20333 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20334 char tx; 20335 char *t = &tx; 20336 char const *s = 0 ? (char *) 0 : (char const *) 0; 20337 20338 *t++ = 0; 20339 if (s) return 0; 20340 } 20341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20342 int x[] = {25, 17}; 20343 const int *foo = &x[0]; 20344 ++foo; 20345 } 20346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20347 typedef const int *iptr; 20348 iptr p = 0; 20349 ++p; 20350 } 20351 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20353 struct s { int j; const int *ap[3]; } bx; 20354 struct s *b = &bx; b->j = 5; 20355 } 20356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20357 const int foo = 10; 20358 if (!foo) return 0; 20359 } 20360 return !cs[0] && !zero.x; 20361#endif 20362 20363 ; 20364 return 0; 20365} 20366_ACEOF 20367if ac_fn_c_try_compile "$LINENO"; then : 20368 ac_cv_c_const=yes 20369else 20370 ac_cv_c_const=no 20371fi 20372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20373fi 20374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20375$as_echo "$ac_cv_c_const" >&6; } 20376if test $ac_cv_c_const = no; then 20377 20378$as_echo "#define const /**/" >>confdefs.h 20379 20380fi 20381 20382 20383 for ac_header in stdarg.h 20384do : 20385 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 20386if test "x$ac_cv_header_stdarg_h" = xyes; then : 20387 cat >>confdefs.h <<_ACEOF 20388#define HAVE_STDARG_H 1 20389_ACEOF 20390 20391fi 20392 20393done 20394 20395 20396 case " $LIBOBJS " in 20397 *" snprintf.$ac_objext "* ) ;; 20398 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20399 ;; 20400esac 20401 20402 20403fi 20404 20405 20406 20407ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$ac_includes_default 20408#ifdef HAVE_DIRENT_H 20409# include <dirent.h> 20410#endif 20411 20412" 20413if test "x$ac_cv_have_decl_dirfd" = xyes; then : 20414 ac_have_decl=1 20415else 20416 ac_have_decl=0 20417fi 20418 20419cat >>confdefs.h <<_ACEOF 20420#define HAVE_DECL_DIRFD $ac_have_decl 20421_ACEOF 20422 20423 20424for ac_func in dirfd 20425do : 20426 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd" 20427if test "x$ac_cv_func_dirfd" = xyes; then : 20428 cat >>confdefs.h <<_ACEOF 20429#define HAVE_DIRFD 1 20430_ACEOF 20431 20432else 20433 20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd macro" >&5 20435$as_echo_n "checking for dirfd macro... " >&6; } 20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20437/* end confdefs.h. */ 20438$ac_includes_default 20439 #ifdef HAVE_DIRENT_H 20440 # include <dirent.h> 20441 #endif 20442 #ifdef dirfd 20443 dirfd_found 20444 #endif 20445 20446_ACEOF 20447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20448 $EGREP "dirfd_found" >/dev/null 2>&1; then : 20449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20450$as_echo "yes" >&6; } 20451 DIRFD_MACRO_FOUND=1 20452else 20453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20454$as_echo "no" >&6; } 20455fi 20456rm -f conftest* 20457 20458 if test x$DIRFD_MACRO_FOUND = x; then 20459 case " $LIBOBJS " in 20460 *" dirfd.$ac_objext "* ) ;; 20461 *) LIBOBJS="$LIBOBJS dirfd.$ac_objext" 20462 ;; 20463esac 20464 20465 fi 20466fi 20467done 20468 20469 20470for ac_func in jail_get 20471do : 20472 ac_fn_c_check_func "$LINENO" "jail_get" "ac_cv_func_jail_get" 20473if test "x$ac_cv_func_jail_get" = xyes; then : 20474 cat >>confdefs.h <<_ACEOF 20475#define HAVE_JAIL_GET 1 20476_ACEOF 20477 20478fi 20479done 20480 20481 20482 20483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 20484$as_echo_n "checking for library containing setsockopt... " >&6; } 20485if ${ac_cv_search_setsockopt+:} false; then : 20486 $as_echo_n "(cached) " >&6 20487else 20488 ac_func_search_save_LIBS=$LIBS 20489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20490/* end confdefs.h. */ 20491 20492/* Override any GCC internal prototype to avoid an error. 20493 Use char because int might match the return type of a GCC 20494 builtin and then its argument prototype would still apply. */ 20495#ifdef __cplusplus 20496extern "C" 20497#endif 20498char setsockopt (); 20499int 20500main () 20501{ 20502return setsockopt (); 20503 ; 20504 return 0; 20505} 20506_ACEOF 20507for ac_lib in '' socket; do 20508 if test -z "$ac_lib"; then 20509 ac_res="none required" 20510 else 20511 ac_res=-l$ac_lib 20512 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20513 fi 20514 if ac_fn_c_try_link "$LINENO"; then : 20515 ac_cv_search_setsockopt=$ac_res 20516fi 20517rm -f core conftest.err conftest.$ac_objext \ 20518 conftest$ac_exeext 20519 if ${ac_cv_search_setsockopt+:} false; then : 20520 break 20521fi 20522done 20523if ${ac_cv_search_setsockopt+:} false; then : 20524 20525else 20526 ac_cv_search_setsockopt=no 20527fi 20528rm conftest.$ac_ext 20529LIBS=$ac_func_search_save_LIBS 20530fi 20531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5 20532$as_echo "$ac_cv_search_setsockopt" >&6; } 20533ac_res=$ac_cv_search_setsockopt 20534if test "$ac_res" != no; then : 20535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20536 20537fi 20538 20539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5 20540$as_echo_n "checking for library containing gethostent... " >&6; } 20541if ${ac_cv_search_gethostent+:} false; then : 20542 $as_echo_n "(cached) " >&6 20543else 20544 ac_func_search_save_LIBS=$LIBS 20545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20546/* end confdefs.h. */ 20547 20548/* Override any GCC internal prototype to avoid an error. 20549 Use char because int might match the return type of a GCC 20550 builtin and then its argument prototype would still apply. */ 20551#ifdef __cplusplus 20552extern "C" 20553#endif 20554char gethostent (); 20555int 20556main () 20557{ 20558return gethostent (); 20559 ; 20560 return 0; 20561} 20562_ACEOF 20563for ac_lib in '' nsl; do 20564 if test -z "$ac_lib"; then 20565 ac_res="none required" 20566 else 20567 ac_res=-l$ac_lib 20568 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20569 fi 20570 if ac_fn_c_try_link "$LINENO"; then : 20571 ac_cv_search_gethostent=$ac_res 20572fi 20573rm -f core conftest.err conftest.$ac_objext \ 20574 conftest$ac_exeext 20575 if ${ac_cv_search_gethostent+:} false; then : 20576 break 20577fi 20578done 20579if ${ac_cv_search_gethostent+:} false; then : 20580 20581else 20582 ac_cv_search_gethostent=no 20583fi 20584rm conftest.$ac_ext 20585LIBS=$ac_func_search_save_LIBS 20586fi 20587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5 20588$as_echo "$ac_cv_search_gethostent" >&6; } 20589ac_res=$ac_cv_search_gethostent 20590if test "$ac_res" != no; then : 20591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20592 20593fi 20594 20595 20596for ac_func in socket 20597do : 20598 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 20599if test "x$ac_cv_func_socket" = xyes; then : 20600 cat >>confdefs.h <<_ACEOF 20601#define HAVE_SOCKET 1 20602_ACEOF 20603 20604fi 20605done 20606 20607for ac_func in setsockopt 20608do : 20609 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 20610if test "x$ac_cv_func_setsockopt" = xyes; then : 20611 cat >>confdefs.h <<_ACEOF 20612#define HAVE_SETSOCKOPT 1 20613_ACEOF 20614 20615fi 20616done 20617 20618for ac_func in gethostent 20619do : 20620 ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent" 20621if test "x$ac_cv_func_gethostent" = xyes; then : 20622 cat >>confdefs.h <<_ACEOF 20623#define HAVE_GETHOSTENT 1 20624_ACEOF 20625 20626fi 20627done 20628 20629 20630ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 20631#if HAVE_WINSOCK2_H 20632 #include <winsock2.h> 20633#endif 20634#if HAVE_WS2TCPIP_H 20635 #include <ws2tcpip.h> 20636#else 20637 #include <sys/socket.h> 20638 #include <netdb.h> 20639#endif 20640" 20641if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 20642 20643cat >>confdefs.h <<_ACEOF 20644#define HAVE_STRUCT_SOCKADDR_STORAGE 1 20645_ACEOF 20646 20647 20648fi 20649 20650 20651ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" " 20652#if HAVE_WINSOCK2_H 20653 #include <winsock2.h> 20654#endif 20655#if HAVE_WS2TCPIP_H 20656 #include <ws2tcpip.h> 20657#else 20658 #include <sys/socket.h> 20659 #include <netdb.h> 20660#endif 20661 20662" 20663if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then : 20664 ac_have_decl=1 20665else 20666 ac_have_decl=0 20667fi 20668 20669cat >>confdefs.h <<_ACEOF 20670#define HAVE_DECL_GETADDRINFO $ac_have_decl 20671_ACEOF 20672if test $ac_have_decl = 1; then : 20673 20674else 20675 case " $LIBOBJS " in 20676 *" getaddrinfo.$ac_objext "* ) ;; 20677 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 20678 ;; 20679esac 20680 20681fi 20682 20683 20684ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h> 20685" 20686if test "x$ac_cv_have_decl_inet_ntop" = xyes; then : 20687 ac_have_decl=1 20688else 20689 ac_have_decl=0 20690fi 20691 20692cat >>confdefs.h <<_ACEOF 20693#define HAVE_DECL_INET_NTOP $ac_have_decl 20694_ACEOF 20695ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h> 20696" 20697if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 20698 ac_have_decl=1 20699else 20700 ac_have_decl=0 20701fi 20702 20703cat >>confdefs.h <<_ACEOF 20704#define HAVE_DECL_INET_PTON $ac_have_decl 20705_ACEOF 20706 20707ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 20708if test "x$ac_cv_func_inet_ntop" = xyes; then : 20709 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h 20710 20711else 20712 case " $LIBOBJS " in 20713 *" inet_ntop.$ac_objext "* ) ;; 20714 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 20715 ;; 20716esac 20717 20718fi 20719 20720ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 20721if test "x$ac_cv_func_inet_pton" = xyes; then : 20722 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 20723 20724else 20725 case " $LIBOBJS " in 20726 *" inet_pton.$ac_objext "* ) ;; 20727 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 20728 ;; 20729esac 20730 20731fi 20732 20733 20734 20735for ac_func in getifaddrs 20736do : 20737 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 20738if test "x$ac_cv_func_getifaddrs" = xyes; then : 20739 cat >>confdefs.h <<_ACEOF 20740#define HAVE_GETIFADDRS 1 20741_ACEOF 20742 20743fi 20744done 20745 20746 20747for ac_func in getprocs64 20748do : 20749 ac_fn_c_check_func "$LINENO" "getprocs64" "ac_cv_func_getprocs64" 20750if test "x$ac_cv_func_getprocs64" = xyes; then : 20751 cat >>confdefs.h <<_ACEOF 20752#define HAVE_GETPROCS64 1 20753_ACEOF 20754 20755fi 20756done 20757 20758 20759ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" 20760if test "x$ac_cv_func_lchown" = xyes; then : 20761 20762$as_echo "#define HAVE_LCHOWN 1" >>confdefs.h 20763 20764fi 20765 20766 20767ac_fn_c_check_decl "$LINENO" "pthread_attr_setstacksize" "ac_cv_have_decl_pthread_attr_setstacksize" "#include <pthread.h> 20768" 20769if test "x$ac_cv_have_decl_pthread_attr_setstacksize" = xyes; then : 20770 ac_have_decl=1 20771else 20772 ac_have_decl=0 20773fi 20774 20775cat >>confdefs.h <<_ACEOF 20776#define HAVE_DECL_PTHREAD_ATTR_SETSTACKSIZE $ac_have_decl 20777_ACEOF 20778 20779ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" 20780if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then : 20781 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h 20782 20783else 20784 case " $LIBOBJS " in 20785 *" pthread_attr_setstacksize.$ac_objext "* ) ;; 20786 *) LIBOBJS="$LIBOBJS pthread_attr_setstacksize.$ac_objext" 20787 ;; 20788esac 20789 20790fi 20791 20792 20793 20794ac_fn_c_check_decl "$LINENO" "pthread_sigmask" "ac_cv_have_decl_pthread_sigmask" "#include <signal.h> 20795" 20796if test "x$ac_cv_have_decl_pthread_sigmask" = xyes; then : 20797 ac_have_decl=1 20798else 20799 ac_have_decl=0 20800fi 20801 20802cat >>confdefs.h <<_ACEOF 20803#define HAVE_DECL_PTHREAD_SIGMASK $ac_have_decl 20804_ACEOF 20805 20806ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 20807if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 20808 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 20809 20810else 20811 case " $LIBOBJS " in 20812 *" pthread_sigmask.$ac_objext "* ) ;; 20813 *) LIBOBJS="$LIBOBJS pthread_sigmask.$ac_objext" 20814 ;; 20815esac 20816 20817fi 20818 20819 20820 20821ac_fn_c_check_decl "$LINENO" "sched_yield" "ac_cv_have_decl_sched_yield" "#include <sched.h> 20822" 20823if test "x$ac_cv_have_decl_sched_yield" = xyes; then : 20824 ac_have_decl=1 20825else 20826 ac_have_decl=0 20827fi 20828 20829cat >>confdefs.h <<_ACEOF 20830#define HAVE_DECL_SCHED_YIELD $ac_have_decl 20831_ACEOF 20832 20833for ac_func in sched_yield 20834do : 20835 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 20836if test "x$ac_cv_func_sched_yield" = xyes; then : 20837 cat >>confdefs.h <<_ACEOF 20838#define HAVE_SCHED_YIELD 1 20839_ACEOF 20840 20841fi 20842done 20843 20844 20845ac_fn_c_check_decl "$LINENO" "openat" "ac_cv_have_decl_openat" "#define _GNU_SOURCE 1 20846 #include <fcntl.h> 20847" 20848if test "x$ac_cv_have_decl_openat" = xyes; then : 20849 ac_have_decl=1 20850else 20851 ac_have_decl=0 20852fi 20853 20854cat >>confdefs.h <<_ACEOF 20855#define HAVE_DECL_OPENAT $ac_have_decl 20856_ACEOF 20857 20858ac_fn_c_check_decl "$LINENO" "fstatat" "ac_cv_have_decl_fstatat" "#define _GNU_SOURCE 1 20859 #include <sys/stat.h> 20860" 20861if test "x$ac_cv_have_decl_fstatat" = xyes; then : 20862 ac_have_decl=1 20863else 20864 ac_have_decl=0 20865fi 20866 20867cat >>confdefs.h <<_ACEOF 20868#define HAVE_DECL_FSTATAT $ac_have_decl 20869_ACEOF 20870 20871ac_fn_c_check_decl "$LINENO" "fchownat" "ac_cv_have_decl_fchownat" "#define _GNU_SOURCE 1 20872 #include <unistd.h> 20873" 20874if test "x$ac_cv_have_decl_fchownat" = xyes; then : 20875 ac_have_decl=1 20876else 20877 ac_have_decl=0 20878fi 20879 20880cat >>confdefs.h <<_ACEOF 20881#define HAVE_DECL_FCHOWNAT $ac_have_decl 20882_ACEOF 20883 20884ac_fn_c_check_decl "$LINENO" "fchmodat" "ac_cv_have_decl_fchmodat" "#define _GNU_SOURCE 1 20885 #include <sys/stat.h> 20886" 20887if test "x$ac_cv_have_decl_fchmodat" = xyes; then : 20888 ac_have_decl=1 20889else 20890 ac_have_decl=0 20891fi 20892 20893cat >>confdefs.h <<_ACEOF 20894#define HAVE_DECL_FCHMODAT $ac_have_decl 20895_ACEOF 20896 20897ac_fn_c_check_decl "$LINENO" "readlinkat" "ac_cv_have_decl_readlinkat" "#define _GNU_SOURCE 1 20898 #include <unistd.h> 20899" 20900if test "x$ac_cv_have_decl_readlinkat" = xyes; then : 20901 ac_have_decl=1 20902else 20903 ac_have_decl=0 20904fi 20905 20906cat >>confdefs.h <<_ACEOF 20907#define HAVE_DECL_READLINKAT $ac_have_decl 20908_ACEOF 20909 20910ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 20911if test "x$ac_cv_func_openat" = xyes; then : 20912 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h 20913 20914else 20915 case " $LIBOBJS " in 20916 *" openat.$ac_objext "* ) ;; 20917 *) LIBOBJS="$LIBOBJS openat.$ac_objext" 20918 ;; 20919esac 20920 20921fi 20922 20923ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat" 20924if test "x$ac_cv_func_fstatat" = xyes; then : 20925 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h 20926 20927else 20928 case " $LIBOBJS " in 20929 *" fstatat.$ac_objext "* ) ;; 20930 *) LIBOBJS="$LIBOBJS fstatat.$ac_objext" 20931 ;; 20932esac 20933 20934fi 20935 20936ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat" 20937if test "x$ac_cv_func_fchownat" = xyes; then : 20938 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h 20939 20940else 20941 case " $LIBOBJS " in 20942 *" fchownat.$ac_objext "* ) ;; 20943 *) LIBOBJS="$LIBOBJS fchownat.$ac_objext" 20944 ;; 20945esac 20946 20947fi 20948 20949ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat" 20950if test "x$ac_cv_func_fchmodat" = xyes; then : 20951 $as_echo "#define HAVE_FCHMODAT 1" >>confdefs.h 20952 20953else 20954 case " $LIBOBJS " in 20955 *" fchmodat.$ac_objext "* ) ;; 20956 *) LIBOBJS="$LIBOBJS fchmodat.$ac_objext" 20957 ;; 20958esac 20959 20960fi 20961 20962ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat" 20963if test "x$ac_cv_func_readlinkat" = xyes; then : 20964 $as_echo "#define HAVE_READLINKAT 1" >>confdefs.h 20965 20966else 20967 case " $LIBOBJS " in 20968 *" readlinkat.$ac_objext "* ) ;; 20969 *) LIBOBJS="$LIBOBJS readlinkat.$ac_objext" 20970 ;; 20971esac 20972 20973fi 20974 20975 20976 20977ac_fn_c_check_decl "$LINENO" "log2" "ac_cv_have_decl_log2" "#include <math.h> 20978" 20979if test "x$ac_cv_have_decl_log2" = xyes; then : 20980 ac_have_decl=1 20981else 20982 ac_have_decl=0 20983fi 20984 20985cat >>confdefs.h <<_ACEOF 20986#define HAVE_DECL_LOG2 $ac_have_decl 20987_ACEOF 20988 20989ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2" 20990if test "x$ac_cv_func_log2" = xyes; then : 20991 $as_echo "#define HAVE_LOG2 1" >>confdefs.h 20992 20993else 20994 case " $LIBOBJS " in 20995 *" log2.$ac_objext "* ) ;; 20996 *) LIBOBJS="$LIBOBJS log2.$ac_objext" 20997 ;; 20998esac 20999 21000fi 21001 21002 21003 21004ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve" 21005if test "x$ac_cv_func_fexecve" = xyes; then : 21006 21007$as_echo "#define HAVE_FEXECVE 1" >>confdefs.h 21008 21009fi 21010 21011 21012 21013ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" 21014if test "x$ac_cv_have_decl_alarm" = xyes; then : 21015 ac_have_decl=1 21016else 21017 ac_have_decl=0 21018fi 21019 21020cat >>confdefs.h <<_ACEOF 21021#define HAVE_DECL_ALARM $ac_have_decl 21022_ACEOF 21023 21024ac_fn_c_check_decl "$LINENO" "chmod" "ac_cv_have_decl_chmod" "$ac_includes_default" 21025if test "x$ac_cv_have_decl_chmod" = xyes; then : 21026 ac_have_decl=1 21027else 21028 ac_have_decl=0 21029fi 21030 21031cat >>confdefs.h <<_ACEOF 21032#define HAVE_DECL_CHMOD $ac_have_decl 21033_ACEOF 21034 21035ac_fn_c_check_decl "$LINENO" "chown" "ac_cv_have_decl_chown" "$ac_includes_default" 21036if test "x$ac_cv_have_decl_chown" = xyes; then : 21037 ac_have_decl=1 21038else 21039 ac_have_decl=0 21040fi 21041 21042cat >>confdefs.h <<_ACEOF 21043#define HAVE_DECL_CHOWN $ac_have_decl 21044_ACEOF 21045 21046ac_fn_c_check_decl "$LINENO" "fchmod" "ac_cv_have_decl_fchmod" "$ac_includes_default" 21047if test "x$ac_cv_have_decl_fchmod" = xyes; then : 21048 ac_have_decl=1 21049else 21050 ac_have_decl=0 21051fi 21052 21053cat >>confdefs.h <<_ACEOF 21054#define HAVE_DECL_FCHMOD $ac_have_decl 21055_ACEOF 21056 21057for ac_func in fchmod 21058do : 21059 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" 21060if test "x$ac_cv_func_fchmod" = xyes; then : 21061 cat >>confdefs.h <<_ACEOF 21062#define HAVE_FCHMOD 1 21063_ACEOF 21064 21065fi 21066done 21067 21068ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "$ac_includes_default" 21069if test "x$ac_cv_have_decl_uname" = xyes; then : 21070 ac_have_decl=1 21071else 21072 ac_have_decl=0 21073fi 21074 21075cat >>confdefs.h <<_ACEOF 21076#define HAVE_DECL_UNAME $ac_have_decl 21077_ACEOF 21078 21079ac_fn_c_check_decl "$LINENO" "getuid" "ac_cv_have_decl_getuid" "$ac_includes_default" 21080if test "x$ac_cv_have_decl_getuid" = xyes; then : 21081 ac_have_decl=1 21082else 21083 ac_have_decl=0 21084fi 21085 21086cat >>confdefs.h <<_ACEOF 21087#define HAVE_DECL_GETUID $ac_have_decl 21088_ACEOF 21089 21090ac_fn_c_check_decl "$LINENO" "getgid" "ac_cv_have_decl_getgid" "$ac_includes_default" 21091if test "x$ac_cv_have_decl_getgid" = xyes; then : 21092 ac_have_decl=1 21093else 21094 ac_have_decl=0 21095fi 21096 21097cat >>confdefs.h <<_ACEOF 21098#define HAVE_DECL_GETGID $ac_have_decl 21099_ACEOF 21100 21101ac_fn_c_check_decl "$LINENO" "lstat" "ac_cv_have_decl_lstat" "$ac_includes_default" 21102if test "x$ac_cv_have_decl_lstat" = xyes; then : 21103 ac_have_decl=1 21104else 21105 ac_have_decl=0 21106fi 21107 21108cat >>confdefs.h <<_ACEOF 21109#define HAVE_DECL_LSTAT $ac_have_decl 21110_ACEOF 21111 21112for ac_func in sleep 21113do : 21114 ac_fn_c_check_func "$LINENO" "sleep" "ac_cv_func_sleep" 21115if test "x$ac_cv_func_sleep" = xyes; then : 21116 cat >>confdefs.h <<_ACEOF 21117#define HAVE_SLEEP 1 21118_ACEOF 21119 21120fi 21121done 21122 21123ac_fn_c_check_decl "$LINENO" "socketpair" "ac_cv_have_decl_socketpair" "#include <sys/socket.h> 21124" 21125if test "x$ac_cv_have_decl_socketpair" = xyes; then : 21126 ac_have_decl=1 21127else 21128 ac_have_decl=0 21129fi 21130 21131cat >>confdefs.h <<_ACEOF 21132#define HAVE_DECL_SOCKETPAIR $ac_have_decl 21133_ACEOF 21134 21135ac_fn_c_check_decl "$LINENO" "fsync" "ac_cv_have_decl_fsync" "$ac_includes_default" 21136if test "x$ac_cv_have_decl_fsync" = xyes; then : 21137 ac_have_decl=1 21138else 21139 ac_have_decl=0 21140fi 21141 21142cat >>confdefs.h <<_ACEOF 21143#define HAVE_DECL_FSYNC $ac_have_decl 21144_ACEOF 21145 21146ac_fn_c_check_decl "$LINENO" "glob" "ac_cv_have_decl_glob" "#include <glob.h> 21147" 21148if test "x$ac_cv_have_decl_glob" = xyes; then : 21149 ac_have_decl=1 21150else 21151 ac_have_decl=0 21152fi 21153 21154cat >>confdefs.h <<_ACEOF 21155#define HAVE_DECL_GLOB $ac_have_decl 21156_ACEOF 21157 21158 21159 21160ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " 21161#include <sys/types.h> 21162#include <sys/socket.h> 21163" 21164if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 21165 21166cat >>confdefs.h <<_ACEOF 21167#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 21168_ACEOF 21169 21170 21171fi 21172 21173 21174ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" " 21175#include <sys/ioctl.h> 21176#include <net/if.h> 21177" 21178if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then : 21179 21180cat >>confdefs.h <<_ACEOF 21181#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 21182_ACEOF 21183 21184 21185fi 21186 21187 21188for ac_header in sys/sysctl.h 21189do : 21190 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 21191#ifdef HAVE_SYS_PARAM_H 21192# include <sys/param.h> 21193#endif 21194 21195" 21196if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 21197 cat >>confdefs.h <<_ACEOF 21198#define HAVE_SYS_SYSCTL_H 1 21199_ACEOF 21200 21201fi 21202 21203done 21204 21205 21206ac_fn_c_check_member "$LINENO" "struct sysinfo" "uptime" "ac_cv_member_struct_sysinfo_uptime" "#include <sys/sysinfo.h> 21207" 21208if test "x$ac_cv_member_struct_sysinfo_uptime" = xyes; then : 21209 21210cat >>confdefs.h <<_ACEOF 21211#define HAVE_STRUCT_SYSINFO_UPTIME 1 21212_ACEOF 21213 21214 21215fi 21216 21217 21218for ac_header in sys/sysctl.h 21219do : 21220 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default 21221#ifdef HAVE_SYS_PARAM_H 21222# include <sys/param.h> 21223#endif 21224 21225" 21226if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 21227 cat >>confdefs.h <<_ACEOF 21228#define HAVE_SYS_SYSCTL_H 1 21229_ACEOF 21230 21231fi 21232 21233done 21234 21235 21236for ac_header in kstat.h 21237do : 21238 ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default" 21239if test "x$ac_cv_header_kstat_h" = xyes; then : 21240 cat >>confdefs.h <<_ACEOF 21241#define HAVE_KSTAT_H 1 21242_ACEOF 21243 21244fi 21245 21246done 21247 21248for ac_header in utmp.h 21249do : 21250 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 21251if test "x$ac_cv_header_utmp_h" = xyes; then : 21252 cat >>confdefs.h <<_ACEOF 21253#define HAVE_UTMP_H 1 21254_ACEOF 21255 21256fi 21257 21258done 21259 21260for ac_header in utmpx.h 21261do : 21262 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 21263if test "x$ac_cv_header_utmpx_h" = xyes; then : 21264 cat >>confdefs.h <<_ACEOF 21265#define HAVE_UTMPX_H 1 21266_ACEOF 21267 21268fi 21269 21270done 21271 21272 21273 21274rtry=none 21275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for either struct rtentry or struct ortentry" >&5 21276$as_echo_n "checking for either struct rtentry or struct ortentry... " >&6; } 21277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21278/* end confdefs.h. */ 21279#include <net/route.h> 21280 21281_ACEOF 21282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21283 $EGREP "rtentry" >/dev/null 2>&1; then : 21284 rtry=rtentry 21285fi 21286rm -f conftest* 21287 21288if test "$rtry" = rtentry; then 21289 21290$as_echo "#define HAVE_RTENTRY 1" >>confdefs.h 21291 21292fi 21293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21294/* end confdefs.h. */ 21295#include <net/route.h> 21296 21297_ACEOF 21298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21299 $EGREP "ortentry" >/dev/null 2>&1; then : 21300 rtry=ortentry 21301fi 21302rm -f conftest* 21303 21304if test "$rtry" = ortentry; then 21305 21306$as_echo "#define HAVE_ORTENTRY 1" >>confdefs.h 21307 21308fi 21309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtry" >&5 21310$as_echo "$rtry" >&6; } 21311 21312 21313for ac_func in llistxattr 21314do : 21315 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr" 21316if test "x$ac_cv_func_llistxattr" = xyes; then : 21317 cat >>confdefs.h <<_ACEOF 21318#define HAVE_LLISTXATTR 1 21319_ACEOF 21320 21321$as_echo "#define WITH_XATTR 1" >>confdefs.h 21322 21323fi 21324done 21325 21326for ac_header in attr/xattr.h sys/xattr.h 21327do : 21328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21329ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21331 cat >>confdefs.h <<_ACEOF 21332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21333_ACEOF 21334 21335fi 21336 21337done 21338 21339 21340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr functions have extra arguments" >&5 21341$as_echo_n "checking whether xattr functions have extra arguments... " >&6; } 21342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21343/* end confdefs.h. */ 21344#include <sys/types.h> 21345 #include <sys/xattr.h> 21346int 21347main () 21348{ 21349(void)llistxattr("", 0, 0, 0); 21350 (void)lgetxattr("", "", 0, 0, 0, 0); 21351 (void)lsetxattr("", "", "", 0, 0, 0); 21352 (void)lremovexattr("", "", 0); 21353 ; 21354 return 0; 21355} 21356_ACEOF 21357if ac_fn_c_try_compile "$LINENO"; then : 21358 21359$as_echo "#define WITH_XATTR_EXTRA_ARGS 1" >>confdefs.h 21360 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21362$as_echo "yes" >&6; } 21363else 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21365$as_echo "no" >&6; } 21366fi 21367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21368 21369 21370saved_CFLAGS="$CFLAGS" 21371CFLAGS="-Werror -Wno-tautological-constant-out-of-range-compare" 21372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-constant-out-of-range-compare" >&5 21373$as_echo_n "checking whether compiler supports -Wno-tautological-constant-out-of-range-compare... " >&6; } 21374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21375/* end confdefs.h. */ 21376 21377int 21378main () 21379{ 21380 21381 ; 21382 return 0; 21383} 21384_ACEOF 21385if ac_fn_c_try_compile "$LINENO"; then : 21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21387$as_echo "yes" >&6; } 21388 NO_TAUTOLOGICAL_CC_OPTION="-Wno-tautological-constant-out-of-range-compare" 21389else 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21391$as_echo "no" >&6; } 21392 NO_TAUTOLOGICAL_CC_OPTION="" 21393 21394fi 21395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21396CFLAGS="$saved_CFLAGS" 21397 21398 21399 21400# Check whether --enable-selinux was given. 21401if test "${enable_selinux+set}" = set; then : 21402 enableval=$enable_selinux; 21403fi 21404 21405 21406 21407case "$target_os" in 21408 21409 solaris2.8|solaris2.9) 21410 21411$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 21412 21413 21414$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 21415 21416 ;; 21417 solaris2.10|solaris2.11) 21418 21419$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 21420 21421 21422$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 21423 21424 ;; 21425 hpux*|hp-ux*) 21426 21427$as_echo "#define _PSTAT64 1" >>confdefs.h 21428 21429 ;; 21430 aix*) 21431 CPPFLAGS="$CPPFLAGS -w" 21432 ;; 21433 linux*|*bsd*|*gnu*) 21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnss_nis" >&5 21435$as_echo_n "checking for yp_get_default_domain in -lnss_nis... " >&6; } 21436if ${ac_cv_lib_nss_nis_yp_get_default_domain+:} false; then : 21437 $as_echo_n "(cached) " >&6 21438else 21439 ac_check_lib_save_LIBS=$LIBS 21440LIBS="-lnss_nis $LIBS" 21441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21442/* end confdefs.h. */ 21443 21444/* Override any GCC internal prototype to avoid an error. 21445 Use char because int might match the return type of a GCC 21446 builtin and then its argument prototype would still apply. */ 21447#ifdef __cplusplus 21448extern "C" 21449#endif 21450char yp_get_default_domain (); 21451int 21452main () 21453{ 21454return yp_get_default_domain (); 21455 ; 21456 return 0; 21457} 21458_ACEOF 21459if ac_fn_c_try_link "$LINENO"; then : 21460 ac_cv_lib_nss_nis_yp_get_default_domain=yes 21461else 21462 ac_cv_lib_nss_nis_yp_get_default_domain=no 21463fi 21464rm -f core conftest.err conftest.$ac_objext \ 21465 conftest$ac_exeext conftest.$ac_ext 21466LIBS=$ac_check_lib_save_LIBS 21467fi 21468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_nis_yp_get_default_domain" >&5 21469$as_echo "$ac_cv_lib_nss_nis_yp_get_default_domain" >&6; } 21470if test "x$ac_cv_lib_nss_nis_yp_get_default_domain" = xyes; then : 21471 cat >>confdefs.h <<_ACEOF 21472#define HAVE_LIBNSS_NIS 1 21473_ACEOF 21474 21475 LIBS="-lnss_nis $LIBS" 21476 21477fi 21478 21479 ;; 21480 freebsd*|dragonfly*) 21481 ;; 21482 netbsd*) 21483 ;; 21484 unicos*) 21485 ;; 21486 cray*) 21487 ;; 21488 qnx*) 21489 ;; 21490 openbsd*|obsd*) 21491 ;; 21492 sysv4.2MP|unix_sv*) 21493 ;; 21494 cygwin*) 21495 ;; 21496 mingw*) 21497 ;; 21498 sco*) 21499 ;; 21500 darwin*) 21501 ;; 21502 *) 21503 as_fn_error $? "Unknown system type $target_os" "$LINENO" 5 21504 ;; 21505esac 21506 21507# 21508# Copyright 2021 Northern.tech AS 21509# 21510# This file is part of CFEngine 3 - written and maintained by Northern.tech AS. 21511# 21512# This program is free software; you can redistribute it and/or modify it 21513# under the terms of the GNU General Public License as published by the 21514# Free Software Foundation; version 3. 21515# 21516# This program is distributed in the hope that it will be useful, 21517# but WITHOUT ANY WARRANTY; without even the implied warranty of 21518# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21519# GNU General Public License for more details. 21520# 21521# You should have received a copy of the GNU General Public License 21522# along with this program; if not, write to the Free Software 21523# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 21524# 21525# To the extent this program is licensed as part of the Enterprise 21526# versions of CFEngine, the applicable Commercial Open Source License 21527# (COSL) may apply to this file if you as a licensee so wish it. See 21528# included file COSL.txt. 21529# 21530# 21531# OS kernels conditionals. Don't use those unless it is really needed (if code 21532# depends on the *kernel* feature, and even then -- some kernel features are 21533# shared by different kernels). 21534# 21535# Good example: use LINUX to select code which uses inotify and netlink sockets. 21536# Bad example: use LINUX to select code which parses output of coreutils' ps(1). 21537# 21538 if test -n "`echo ${target_os} | grep linux`"; then 21539 LINUX_TRUE= 21540 LINUX_FALSE='#' 21541else 21542 LINUX_TRUE='#' 21543 LINUX_FALSE= 21544fi 21545 21546 if test -n "`echo ${target_os} | grep darwin`"; then 21547 MACOSX_TRUE= 21548 MACOSX_FALSE='#' 21549else 21550 MACOSX_TRUE='#' 21551 MACOSX_FALSE= 21552fi 21553 21554 if test -n "`(echo ${target_os} | egrep 'solaris|sunos')`"; then 21555 SOLARIS_TRUE= 21556 SOLARIS_FALSE='#' 21557else 21558 SOLARIS_TRUE='#' 21559 SOLARIS_FALSE= 21560fi 21561 21562 if test -n "`(echo ${target_os} | egrep 'mingw|cygwin')`"; then 21563 NT_TRUE= 21564 NT_FALSE='#' 21565else 21566 NT_TRUE='#' 21567 NT_FALSE= 21568fi 21569 21570 if test -n "`(echo ${target_os} | egrep 'cygwin')`"; then 21571 CYGWIN_TRUE= 21572 CYGWIN_FALSE='#' 21573else 21574 CYGWIN_TRUE='#' 21575 CYGWIN_FALSE= 21576fi 21577 21578 if test -n "`(echo ${target_os} | grep aix)`"; then 21579 AIX_TRUE= 21580 AIX_FALSE='#' 21581else 21582 AIX_TRUE='#' 21583 AIX_FALSE= 21584fi 21585 21586 if test -n "`(echo ${target_os} | egrep 'hpux|hp-ux')`"; then 21587 HPUX_TRUE= 21588 HPUX_FALSE='#' 21589else 21590 HPUX_TRUE='#' 21591 HPUX_FALSE= 21592fi 21593 21594 if test -n "`(echo ${target_os} | grep freebsd)`"; then 21595 FREEBSD_TRUE= 21596 FREEBSD_FALSE='#' 21597else 21598 FREEBSD_TRUE='#' 21599 FREEBSD_FALSE= 21600fi 21601 21602 if test -n "`(echo ${target_os} | grep netbsd)`"; then 21603 NETBSD_TRUE= 21604 NETBSD_FALSE='#' 21605else 21606 NETBSD_TRUE='#' 21607 NETBSD_FALSE= 21608fi 21609 21610 if test -n "`(echo ${target_os} | grep darwin)`"; then 21611 XNU_TRUE= 21612 XNU_FALSE='#' 21613else 21614 XNU_TRUE='#' 21615 XNU_FALSE= 21616fi 21617 21618 21619 21620 21621 21622# Check whether --with-workdir was given. 21623if test "${with_workdir+set}" = set; then : 21624 withval=$with_workdir; 21625 if test "x$withval" != x ; then 21626 WORKDIR="$withval" 21627 LOGDIR="$withval" 21628 PIDDIR="$withval" 21629 fi 21630 21631fi 21632 21633 21634 21635_lcl_receval=""${WORKDIR}"" 21636WORKDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21637 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21638 _lcl_receval_old='' 21639 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21640 _lcl_receval_old="$_lcl_receval" 21641 eval _lcl_receval="\"$_lcl_receval\"" 21642 done 21643 echo "$_lcl_receval")` 21644 21645 21646cat >>confdefs.h <<_ACEOF 21647#define WORKDIR "${WORKDIR}" 21648_ACEOF 21649 21650workdir="${WORKDIR}" 21651 21652 21653 21654# Check whether --with-masterdir was given. 21655if test "${with_masterdir+set}" = set; then : 21656 withval=$with_masterdir; 21657 if test "x$withval" != x ; then 21658 MASTERDIR="$withval" 21659 fi 21660 21661fi 21662 21663 21664 21665_lcl_receval=""${MASTERDIR}"" 21666MASTERDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21667 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21668 _lcl_receval_old='' 21669 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21670 _lcl_receval_old="$_lcl_receval" 21671 eval _lcl_receval="\"$_lcl_receval\"" 21672 done 21673 echo "$_lcl_receval")` 21674 21675 21676cat >>confdefs.h <<_ACEOF 21677#define MASTERDIR "${MASTERDIR}" 21678_ACEOF 21679 21680masterdir="${MASTERDIR}" 21681 21682 21683 21684# Check whether --with-inputdir was given. 21685if test "${with_inputdir+set}" = set; then : 21686 withval=$with_inputdir; 21687 if test "x$withval" != x ; then 21688 INPUTDIR="$withval" 21689 fi 21690 21691fi 21692 21693 21694 21695_lcl_receval=""${INPUTDIR}"" 21696INPUTDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21697 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21698 _lcl_receval_old='' 21699 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21700 _lcl_receval_old="$_lcl_receval" 21701 eval _lcl_receval="\"$_lcl_receval\"" 21702 done 21703 echo "$_lcl_receval")` 21704 21705 21706cat >>confdefs.h <<_ACEOF 21707#define INPUTDIR "${INPUTDIR}" 21708_ACEOF 21709 21710inputdir="${INPUTDIR}" 21711 21712 21713 21714# Check whether --with-datadir was given. 21715if test "${with_datadir+set}" = set; then : 21716 withval=$with_datadir; 21717 if test "x$withval" != x ; then 21718 DATADIR="$withval" 21719 fi 21720 21721fi 21722 21723 21724 21725_lcl_receval=""${DATADIR}"" 21726DATADIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21727 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21728 _lcl_receval_old='' 21729 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21730 _lcl_receval_old="$_lcl_receval" 21731 eval _lcl_receval="\"$_lcl_receval\"" 21732 done 21733 echo "$_lcl_receval")` 21734 21735 21736cat >>confdefs.h <<_ACEOF 21737#define CF_DATADIR "${DATADIR}" 21738_ACEOF 21739 21740datadir="${DATADIR}" 21741 21742 21743 21744# Check whether --with-logdir was given. 21745if test "${with_logdir+set}" = set; then : 21746 withval=$with_logdir; 21747 if test "x$withval" != x ; then 21748 LOGDIR="$withval" 21749 fi 21750 21751fi 21752 21753 21754 21755_lcl_receval=""${LOGDIR}"" 21756LOGDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21757 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21758 _lcl_receval_old='' 21759 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21760 _lcl_receval_old="$_lcl_receval" 21761 eval _lcl_receval="\"$_lcl_receval\"" 21762 done 21763 echo "$_lcl_receval")` 21764 21765 21766cat >>confdefs.h <<_ACEOF 21767#define LOGDIR "${LOGDIR}" 21768_ACEOF 21769 21770logdir="${LOGDIR}" 21771 21772 21773 21774# Check whether --with-piddir was given. 21775if test "${with_piddir+set}" = set; then : 21776 withval=$with_piddir; 21777 if test "x$withval" != x ; then 21778 PIDDIR="$withval" 21779 fi 21780 21781fi 21782 21783 21784 21785_lcl_receval=""${PIDDIR}"" 21786PIDDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21787 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21788 _lcl_receval_old='' 21789 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21790 _lcl_receval_old="$_lcl_receval" 21791 eval _lcl_receval="\"$_lcl_receval\"" 21792 done 21793 echo "$_lcl_receval")` 21794 21795 21796cat >>confdefs.h <<_ACEOF 21797#define PIDDIR "${PIDDIR}" 21798_ACEOF 21799 21800piddir="${PIDDIR}" 21801 21802 21803 21804# Check whether --with-statedir was given. 21805if test "${with_statedir+set}" = set; then : 21806 withval=$with_statedir; 21807 if test "x$withval" != x ; then 21808 STATEDIR="$withval" 21809 fi 21810 21811fi 21812 21813 21814 21815_lcl_receval=""${STATEDIR}"" 21816STATEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21817 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21818 _lcl_receval_old='' 21819 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21820 _lcl_receval_old="$_lcl_receval" 21821 eval _lcl_receval="\"$_lcl_receval\"" 21822 done 21823 echo "$_lcl_receval")` 21824 21825 21826cat >>confdefs.h <<_ACEOF 21827#define STATEDIR "${STATEDIR}" 21828_ACEOF 21829 21830statedir="${STATEDIR}" 21831 21832 21833 21834# Check whether --with-shell was given. 21835if test "${with_shell+set}" = set; then : 21836 withval=$with_shell; 21837else 21838 with_shell=/bin/sh 21839fi 21840 21841 21842_lcl_receval=""${bindir}"" 21843bindir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix" 21844 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" 21845 _lcl_receval_old='' 21846 while test "$_lcl_receval_old" != "$_lcl_receval"; do 21847 _lcl_receval_old="$_lcl_receval" 21848 eval _lcl_receval="\"$_lcl_receval\"" 21849 done 21850 echo "$_lcl_receval")` 21851 21852 21853cat >>confdefs.h <<_ACEOF 21854#define BINDIR "${bindir}" 21855_ACEOF 21856 21857bindir="${bindir}" 21858 21859 21860 21861if test "x$with_shell" = "xno"; then 21862 as_fn_error $? "Please specify full path to POSIX-compatible shell" "$LINENO" 5 21863fi 21864 21865cat >>confdefs.h <<_ACEOF 21866#define SHELL_PATH "$with_shell" 21867_ACEOF 21868 21869 21870 21871 21872# Extract the first word of "hostname", so it can be a program name with args. 21873set dummy hostname; ac_word=$2 21874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21875$as_echo_n "checking for $ac_word... " >&6; } 21876if ${ac_cv_path_HOSTNAME+:} false; then : 21877 $as_echo_n "(cached) " >&6 21878else 21879 case $HOSTNAME in 21880 [\\/]* | ?:[\\/]*) 21881 ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path. 21882 ;; 21883 *) 21884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21885for as_dir in $PATH 21886do 21887 IFS=$as_save_IFS 21888 test -z "$as_dir" && as_dir=. 21889 for ac_exec_ext in '' $ac_executable_extensions; do 21890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21891 ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext" 21892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21893 break 2 21894 fi 21895done 21896 done 21897IFS=$as_save_IFS 21898 21899 test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME="""" 21900 ;; 21901esac 21902fi 21903HOSTNAME=$ac_cv_path_HOSTNAME 21904if test -n "$HOSTNAME"; then 21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTNAME" >&5 21906$as_echo "$HOSTNAME" >&6; } 21907else 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21909$as_echo "no" >&6; } 21910fi 21911 21912 21913 21914 21915cat >>confdefs.h <<_ACEOF 21916#define AUTOCONF_HOSTNAME "`$HOSTNAME`" 21917_ACEOF 21918 21919 21920cat >>confdefs.h <<_ACEOF 21921#define AUTOCONF_SYSNAME "$target_os" 21922_ACEOF 21923 21924 21925 21926 21927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xen cpuid-based HVM detection" >&5 21928$as_echo_n "checking for Xen cpuid-based HVM detection... " >&6; } 21929if test x"$GCC" = "xyes"; then 21930 case $host_cpu in 21931 i[3456]86*|x86_64*|amd64) 21932 21933$as_echo "#define XEN_CPUID_SUPPORT 1" >>confdefs.h 21934 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21936$as_echo "yes" >&6; } 21937 ;; 21938 *) 21939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21940$as_echo "no" >&6; } 21941 ;; 21942 esac 21943else 21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21945$as_echo "no" >&6; } 21946fi 21947 21948 21949# Check whether --enable-coverage was given. 21950if test "${enable_coverage+set}" = set; then : 21951 enableval=$enable_coverage; use_coverage=$enableval 21952else 21953 use_coverage=no 21954fi 21955 21956 21957if test "x$use_coverage" = "xyes"; then 21958 if test "$GCC" != "yes"; then 21959 as_fn_error $? "GCC is required for --enable-coverage" "$LINENO" 5 21960 fi 21961 21962 # Extract the first word of "lcov", so it can be a program name with args. 21963set dummy lcov; ac_word=$2 21964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21965$as_echo_n "checking for $ac_word... " >&6; } 21966if ${ac_cv_prog_LCOV+:} false; then : 21967 $as_echo_n "(cached) " >&6 21968else 21969 if test -n "$LCOV"; then 21970 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 21971else 21972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21973for as_dir in $PATH 21974do 21975 IFS=$as_save_IFS 21976 test -z "$as_dir" && as_dir=. 21977 for ac_exec_ext in '' $ac_executable_extensions; do 21978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21979 ac_cv_prog_LCOV="lcov" 21980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21981 break 2 21982 fi 21983done 21984 done 21985IFS=$as_save_IFS 21986 21987fi 21988fi 21989LCOV=$ac_cv_prog_LCOV 21990if test -n "$LCOV"; then 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 21992$as_echo "$LCOV" >&6; } 21993else 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21995$as_echo "no" >&6; } 21996fi 21997 21998 21999 # Extract the first word of "genhtml", so it can be a program name with args. 22000set dummy genhtml; ac_word=$2 22001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22002$as_echo_n "checking for $ac_word... " >&6; } 22003if ${ac_cv_prog_LCOV_GENHTML+:} false; then : 22004 $as_echo_n "(cached) " >&6 22005else 22006 if test -n "$LCOV_GENHTML"; then 22007 ac_cv_prog_LCOV_GENHTML="$LCOV_GENHTML" # Let the user override the test. 22008else 22009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22010for as_dir in $PATH 22011do 22012 IFS=$as_save_IFS 22013 test -z "$as_dir" && as_dir=. 22014 for ac_exec_ext in '' $ac_executable_extensions; do 22015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22016 ac_cv_prog_LCOV_GENHTML="genhtml" 22017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22018 break 2 22019 fi 22020done 22021 done 22022IFS=$as_save_IFS 22023 22024fi 22025fi 22026LCOV_GENHTML=$ac_cv_prog_LCOV_GENHTML 22027if test -n "$LCOV_GENHTML"; then 22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV_GENHTML" >&5 22029$as_echo "$LCOV_GENHTML" >&6; } 22030else 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22032$as_echo "no" >&6; } 22033fi 22034 22035 22036 22037 if test -z "$LCOV"; then 22038 as_fn_error $? "Cannot find lcov from the LTP package" "$LINENO" 5 22039 fi 22040 22041 if test -z "$LCOV_GENHTML"; then 22042 as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5 22043 fi 22044 22045 22046 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` 22047 22048 22049 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" 22050 LDFLAGS="$LDFLAGS -lgcov" 22051 # Need to set ENABLE_COVERAGE so that tests/unit/Makefile.am can adapt for one 22052 # test which needs gcov stubs if core not built with coverage. 22053 if true; then 22054 ENABLE_COVERAGE_TRUE= 22055 ENABLE_COVERAGE_FALSE='#' 22056else 22057 ENABLE_COVERAGE_TRUE='#' 22058 ENABLE_COVERAGE_FALSE= 22059fi 22060 22061else 22062 if false; then 22063 ENABLE_COVERAGE_TRUE= 22064 ENABLE_COVERAGE_FALSE='#' 22065else 22066 ENABLE_COVERAGE_TRUE='#' 22067 ENABLE_COVERAGE_FALSE= 22068fi 22069 22070fi 22071 22072 22073CORE_CPPFLAGS="$PCRE_CPPFLAGS $OPENSSL_CPPFLAGS $SQLITE3_CPPFLAGS $LIBACL_CPPFLAGS $LIBCURL_CPPFLAGS $LIBYAML_CPPFLAGS $POSTGRESQL_CPPFLAGS $MYSQL_CPPFLAGS $LIBXML2_CPPFLAGS $CPPFLAGS" 22074CORE_CFLAGS="$PCRE_CFLAGS $OPENSSL_CFLAGS $SQLITE3_CFLAGS $LIBACL_CFLAGS $LIBCURL_CFLAGS $LIBYAML_CFLAGS $POSTGRESQL_CFLAGS $MYSQL_CFLAGS $LIBXML2_CFLAGS $CFLAGS" 22075CORE_LDFLAGS="$PCRE_LDFLAGS $OPENSSL_LDFLAGS $SQLITE3_LDFLAGS $LIBACL_LDFLAGS $LIBCURL_LDFLAGS $LIBYAML_LDFLAGS $POSTGRESQL_LDFLAGS $MYSQL_LDFLAGS $LIBXML2_LDFLAGS $LDFLAGS" 22076CORE_LIBS="$PCRE_LIBS $OPENSSL_LIBS $SQLITE3_LIBS $LIBACL_LIBS $LIBCURL_LIBS $LIBYAML_LIBS $POSTGRESQL_LIBS $MYSQL_LIBS $LIBXML2_LIBS $LIBS" 22077 22078 22079 22080 22081 22082 22083ac_config_files="$ac_config_files configure_flags.env" 22084 22085 22086# 22087# Populate contents of config.post.h 22088# 22089 22090 22091 22092ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "#include <sys/types.h> 22093 #include <sys/socket.h> 22094" 22095if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 22096 22097$as_echo "#define HAVE_MSGHDR_MSG_CONTROL 1" >>confdefs.h 22098 22099else 22100 22101$as_echo "#define HAVE_NO_MSGHDR_MSG_CONTROL 1" >>confdefs.h 22102 22103fi 22104 22105 22106ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h> 22107 #include <sys/socket.h> 22108" 22109if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then : 22110 22111$as_echo "#define HAVE_MSGHDR_ACCRIGHTS 1" >>confdefs.h 22112 22113else 22114 22115$as_echo "#define HAVE_NO_MSGHDR_ACCRIGHTS 1" >>confdefs.h 22116 22117fi 22118 22119 22120 22121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 22122$as_echo "" >&6; } 22123 22124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Summary:" >&5 22125$as_echo "Summary:" >&6; } 22126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Version: 0.1.0" >&5 22127$as_echo "> Version: 0.1.0" >&6; } 22128 22129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: > Optional libraries" >&5 22130$as_echo "> Optional libraries" >&6; } 22131 22132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> OpenSSL: $OPENSSL_PATH" >&5 22133$as_echo "-> OpenSSL: $OPENSSL_PATH" >&6; } 22134 22135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PCRE: $PCRE_PATH" >&5 22136$as_echo "-> PCRE: $PCRE_PATH" >&6; } 22137 22138if test "x$ac_cv_lib_mysqlclient_mysql_real_connect" = "xyes"; then 22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: $MYSQL_PATH" >&5 22140$as_echo "-> MySQL connector: $MYSQL_PATH" >&6; } 22141else 22142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> MySQL connector: disabled" >&5 22143$as_echo "-> MySQL connector: disabled" >&6; } 22144fi 22145 22146if test "x$ac_cv_lib_pq_PQconnectdb" = "xyes"; then 22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: $POSTGRESQL_PATH" >&5 22148$as_echo "-> PostgreSQL connector: $POSTGRESQL_PATH" >&6; } 22149else 22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> PostgreSQL connector: disabled" >&5 22151$as_echo "-> PostgreSQL connector: disabled" >&6; } 22152fi 22153 22154 22155if test "x$ac_cv_lib_virt_virConnectOpen" = xyes; then 22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: $LIBVIRT_PATH" >&5 22157$as_echo "-> libvirt: $LIBVIRT_PATH" >&6; } 22158else 22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libvirt: disabled" >&5 22160$as_echo "-> libvirt: disabled" >&6; } 22161fi 22162 22163if test "x$ac_cv_lib_acl_acl_init" = xyes; then 22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: $LIBACL_PATH" >&5 22165$as_echo "-> libacl: $LIBACL_PATH" >&6; } 22166else 22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libacl: disabled" >&5 22168$as_echo "-> libacl: disabled" >&6; } 22169fi 22170 22171if test "x$ac_cv_lib_curl_curl_global_init" = xyes; then 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: $LIBCURL_PATH" >&5 22173$as_echo "-> libcurl: $LIBCURL_PATH" >&6; } 22174else 22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libcurl: disabled" >&5 22176$as_echo "-> libcurl: disabled" >&6; } 22177fi 22178 22179if test "x$ac_cv_lib_yaml_yaml_parser_initialize" = xyes; then 22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: $LIBYAML_PATH" >&5 22181$as_echo "-> libyaml: $LIBYAML_PATH" >&6; } 22182else 22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libyaml: disabled" >&5 22184$as_echo "-> libyaml: disabled" >&6; } 22185fi 22186 22187if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then 22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: $LIBXML2_PATH" >&5 22189$as_echo "-> libxml2: $LIBXML2_PATH" >&6; } 22190else 22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> libxml2: disabled" >&5 22192$as_echo "-> libxml2: disabled" >&6; } 22193fi 22194 22195if test "x$users_promises_ok" = "xyes"; then 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: PAM/user* tools" >&5 22197$as_echo "-> User promises: PAM/user* tools" >&6; } 22198else 22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> User promises: disabled" >&5 22200$as_echo "-> User promises: disabled" >&6; } 22201fi 22202 22203if test "x$enable_builtin_extensions" = "xyes"; then 22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Built in" >&5 22205$as_echo "-> Enterprise extensions: Built in" >&6; } 22206else 22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Enterprise extensions: Plugin or not included" >&5 22208$as_echo "-> Enterprise extensions: Plugin or not included" >&6; } 22209fi 22210 22211 22212 22213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Workdir: $WORKDIR" >&5 22214$as_echo "-> Workdir: $WORKDIR" >&6; } 22215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Masterdir: $MASTERDIR" >&5 22216$as_echo "-> Masterdir: $MASTERDIR" >&6; } 22217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Inputdir: $INPUTDIR" >&5 22218$as_echo "-> Inputdir: $INPUTDIR" >&6; } 22219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Datadir: $DATADIR" >&5 22220$as_echo "-> Datadir: $DATADIR" >&6; } 22221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Logdir: $LOGDIR" >&5 22222$as_echo "-> Logdir: $LOGDIR" >&6; } 22223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Piddir: $PIDDIR" >&5 22224$as_echo "-> Piddir: $PIDDIR" >&6; } 22225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> Statedir: $STATEDIR" >&5 22226$as_echo "-> Statedir: $STATEDIR" >&6; } 22227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -> bindir: $bindir" >&5 22228$as_echo "-> bindir: $bindir" >&6; } 22229 22230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 22231$as_echo "" >&6; } 22232 22233 22234ac_config_files="$ac_config_files Makefile libcompat/Makefile libutils/Makefile config.post.h tests/Makefile tests/unit/Makefile" 22235 22236 22237cat >confcache <<\_ACEOF 22238# This file is a shell script that caches the results of configure 22239# tests run on this system so they can be shared between configure 22240# scripts and configure runs, see configure's option --config-cache. 22241# It is not useful on other systems. If it contains results you don't 22242# want to keep, you may remove or edit it. 22243# 22244# config.status only pays attention to the cache file if you give it 22245# the --recheck option to rerun configure. 22246# 22247# `ac_cv_env_foo' variables (set or unset) will be overridden when 22248# loading this file, other *unset* `ac_cv_foo' will be assigned the 22249# following values. 22250 22251_ACEOF 22252 22253# The following way of writing the cache mishandles newlines in values, 22254# but we know of no workaround that is simple, portable, and efficient. 22255# So, we kill variables containing newlines. 22256# Ultrix sh set writes to stderr and can't be redirected directly, 22257# and sets the high bit in the cache file unless we assign to the vars. 22258( 22259 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22260 eval ac_val=\$$ac_var 22261 case $ac_val in #( 22262 *${as_nl}*) 22263 case $ac_var in #( 22264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22265$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22266 esac 22267 case $ac_var in #( 22268 _ | IFS | as_nl) ;; #( 22269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22270 *) { eval $ac_var=; unset $ac_var;} ;; 22271 esac ;; 22272 esac 22273 done 22274 22275 (set) 2>&1 | 22276 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22277 *${as_nl}ac_space=\ *) 22278 # `set' does not quote correctly, so add quotes: double-quote 22279 # substitution turns \\\\ into \\, and sed turns \\ into \. 22280 sed -n \ 22281 "s/'/'\\\\''/g; 22282 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22283 ;; #( 22284 *) 22285 # `set' quotes correctly as required by POSIX, so do not add quotes. 22286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22287 ;; 22288 esac | 22289 sort 22290) | 22291 sed ' 22292 /^ac_cv_env_/b end 22293 t clear 22294 :clear 22295 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22296 t end 22297 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22298 :end' >>confcache 22299if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22300 if test -w "$cache_file"; then 22301 if test "x$cache_file" != "x/dev/null"; then 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22303$as_echo "$as_me: updating cache $cache_file" >&6;} 22304 if test ! -f "$cache_file" || test -h "$cache_file"; then 22305 cat confcache >"$cache_file" 22306 else 22307 case $cache_file in #( 22308 */* | ?:*) 22309 mv -f confcache "$cache_file"$$ && 22310 mv -f "$cache_file"$$ "$cache_file" ;; #( 22311 *) 22312 mv -f confcache "$cache_file" ;; 22313 esac 22314 fi 22315 fi 22316 else 22317 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22318$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22319 fi 22320fi 22321rm -f confcache 22322 22323test "x$prefix" = xNONE && prefix=$ac_default_prefix 22324# Let make expand exec_prefix. 22325test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22326 22327DEFS=-DHAVE_CONFIG_H 22328 22329ac_libobjs= 22330ac_ltlibobjs= 22331U= 22332for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22333 # 1. Remove the extension, and $U if already installed. 22334 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22335 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22336 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22337 # will be set to the directory where LIBOBJS objects are built. 22338 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22339 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22340done 22341LIBOBJS=$ac_libobjs 22342 22343LTLIBOBJS=$ac_ltlibobjs 22344 22345 22346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22347$as_echo_n "checking that generated files are newer than configure... " >&6; } 22348 if test -n "$am_sleep_pid"; then 22349 # Hide warnings about reused PIDs. 22350 wait $am_sleep_pid 2>/dev/null 22351 fi 22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 22353$as_echo "done" >&6; } 22354 if test -n "$EXEEXT"; then 22355 am__EXEEXT_TRUE= 22356 am__EXEEXT_FALSE='#' 22357else 22358 am__EXEEXT_TRUE='#' 22359 am__EXEEXT_FALSE= 22360fi 22361 22362if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22363 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 22364Usually this means the macro was only invoked conditionally." "$LINENO" 5 22365fi 22366if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22367 as_fn_error $? "conditional \"AMDEP\" was never defined. 22368Usually this means the macro was only invoked conditionally." "$LINENO" 5 22369fi 22370if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22371 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22372Usually this means the macro was only invoked conditionally." "$LINENO" 5 22373fi 22374if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 22375 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined. 22376Usually this means the macro was only invoked conditionally." "$LINENO" 5 22377fi 22378if test -z "${BUILTIN_EXTENSIONS_TRUE}" && test -z "${BUILTIN_EXTENSIONS_FALSE}"; then 22379 as_fn_error $? "conditional \"BUILTIN_EXTENSIONS\" was never defined. 22380Usually this means the macro was only invoked conditionally." "$LINENO" 5 22381fi 22382if test -z "${NDEBUG_TRUE}" && test -z "${NDEBUG_FALSE}"; then 22383 as_fn_error $? "conditional \"NDEBUG\" was never defined. 22384Usually this means the macro was only invoked conditionally." "$LINENO" 5 22385fi 22386if test -z "${WITH_OPENSSL_TRUE}" && test -z "${WITH_OPENSSL_FALSE}"; then 22387 as_fn_error $? "conditional \"WITH_OPENSSL\" was never defined. 22388Usually this means the macro was only invoked conditionally." "$LINENO" 5 22389fi 22390if test -z "${WITH_OPENSSL_TRUE}" && test -z "${WITH_OPENSSL_FALSE}"; then 22391 as_fn_error $? "conditional \"WITH_OPENSSL\" was never defined. 22392Usually this means the macro was only invoked conditionally." "$LINENO" 5 22393fi 22394if test -z "${WITH_PCRE_TRUE}" && test -z "${WITH_PCRE_FALSE}"; then 22395 as_fn_error $? "conditional \"WITH_PCRE\" was never defined. 22396Usually this means the macro was only invoked conditionally." "$LINENO" 5 22397fi 22398if test -z "${WITH_PCRE_TRUE}" && test -z "${WITH_PCRE_FALSE}"; then 22399 as_fn_error $? "conditional \"WITH_PCRE\" was never defined. 22400Usually this means the macro was only invoked conditionally." "$LINENO" 5 22401fi 22402if test -z "${HAVE_LIBCURL_TRUE}" && test -z "${HAVE_LIBCURL_FALSE}"; then 22403 as_fn_error $? "conditional \"HAVE_LIBCURL\" was never defined. 22404Usually this means the macro was only invoked conditionally." "$LINENO" 5 22405fi 22406if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then 22407 as_fn_error $? "conditional \"HAVE_LIBXML2\" was never defined. 22408Usually this means the macro was only invoked conditionally." "$LINENO" 5 22409fi 22410 22411if test -z "${HAVE_USERS_PROMISE_DEPS_TRUE}" && test -z "${HAVE_USERS_PROMISE_DEPS_FALSE}"; then 22412 as_fn_error $? "conditional \"HAVE_USERS_PROMISE_DEPS\" was never defined. 22413Usually this means the macro was only invoked conditionally." "$LINENO" 5 22414fi 22415if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 22416 as_fn_error $? "conditional \"LINUX\" was never defined. 22417Usually this means the macro was only invoked conditionally." "$LINENO" 5 22418fi 22419if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then 22420 as_fn_error $? "conditional \"MACOSX\" was never defined. 22421Usually this means the macro was only invoked conditionally." "$LINENO" 5 22422fi 22423if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 22424 as_fn_error $? "conditional \"SOLARIS\" was never defined. 22425Usually this means the macro was only invoked conditionally." "$LINENO" 5 22426fi 22427if test -z "${NT_TRUE}" && test -z "${NT_FALSE}"; then 22428 as_fn_error $? "conditional \"NT\" was never defined. 22429Usually this means the macro was only invoked conditionally." "$LINENO" 5 22430fi 22431if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then 22432 as_fn_error $? "conditional \"CYGWIN\" was never defined. 22433Usually this means the macro was only invoked conditionally." "$LINENO" 5 22434fi 22435if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 22436 as_fn_error $? "conditional \"AIX\" was never defined. 22437Usually this means the macro was only invoked conditionally." "$LINENO" 5 22438fi 22439if test -z "${HPUX_TRUE}" && test -z "${HPUX_FALSE}"; then 22440 as_fn_error $? "conditional \"HPUX\" was never defined. 22441Usually this means the macro was only invoked conditionally." "$LINENO" 5 22442fi 22443if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 22444 as_fn_error $? "conditional \"FREEBSD\" was never defined. 22445Usually this means the macro was only invoked conditionally." "$LINENO" 5 22446fi 22447if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then 22448 as_fn_error $? "conditional \"NETBSD\" was never defined. 22449Usually this means the macro was only invoked conditionally." "$LINENO" 5 22450fi 22451if test -z "${XNU_TRUE}" && test -z "${XNU_FALSE}"; then 22452 as_fn_error $? "conditional \"XNU\" was never defined. 22453Usually this means the macro was only invoked conditionally." "$LINENO" 5 22454fi 22455if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then 22456 as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined. 22457Usually this means the macro was only invoked conditionally." "$LINENO" 5 22458fi 22459if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then 22460 as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined. 22461Usually this means the macro was only invoked conditionally." "$LINENO" 5 22462fi 22463 22464: "${CONFIG_STATUS=./config.status}" 22465ac_write_fail=0 22466ac_clean_files_save=$ac_clean_files 22467ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22468{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22469$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22470as_write_fail=0 22471cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22472#! $SHELL 22473# Generated by $as_me. 22474# Run this file to recreate the current configuration. 22475# Compiler output produced by configure, useful for debugging 22476# configure, is in config.log if it exists. 22477 22478debug=false 22479ac_cs_recheck=false 22480ac_cs_silent=false 22481 22482SHELL=\${CONFIG_SHELL-$SHELL} 22483export SHELL 22484_ASEOF 22485cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22486## -------------------- ## 22487## M4sh Initialization. ## 22488## -------------------- ## 22489 22490# Be more Bourne compatible 22491DUALCASE=1; export DUALCASE # for MKS sh 22492if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22493 emulate sh 22494 NULLCMD=: 22495 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22496 # is contrary to our usage. Disable this feature. 22497 alias -g '${1+"$@"}'='"$@"' 22498 setopt NO_GLOB_SUBST 22499else 22500 case `(set -o) 2>/dev/null` in #( 22501 *posix*) : 22502 set -o posix ;; #( 22503 *) : 22504 ;; 22505esac 22506fi 22507 22508 22509as_nl=' 22510' 22511export as_nl 22512# Printing a long string crashes Solaris 7 /usr/bin/printf. 22513as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22514as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22515as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22516# Prefer a ksh shell builtin over an external printf program on Solaris, 22517# but without wasting forks for bash or zsh. 22518if test -z "$BASH_VERSION$ZSH_VERSION" \ 22519 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22520 as_echo='print -r --' 22521 as_echo_n='print -rn --' 22522elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22523 as_echo='printf %s\n' 22524 as_echo_n='printf %s' 22525else 22526 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22527 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22528 as_echo_n='/usr/ucb/echo -n' 22529 else 22530 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22531 as_echo_n_body='eval 22532 arg=$1; 22533 case $arg in #( 22534 *"$as_nl"*) 22535 expr "X$arg" : "X\\(.*\\)$as_nl"; 22536 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22537 esac; 22538 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22539 ' 22540 export as_echo_n_body 22541 as_echo_n='sh -c $as_echo_n_body as_echo' 22542 fi 22543 export as_echo_body 22544 as_echo='sh -c $as_echo_body as_echo' 22545fi 22546 22547# The user is always right. 22548if test "${PATH_SEPARATOR+set}" != set; then 22549 PATH_SEPARATOR=: 22550 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22551 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22552 PATH_SEPARATOR=';' 22553 } 22554fi 22555 22556 22557# IFS 22558# We need space, tab and new line, in precisely that order. Quoting is 22559# there to prevent editors from complaining about space-tab. 22560# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22561# splitting by setting IFS to empty value.) 22562IFS=" "" $as_nl" 22563 22564# Find who we are. Look in the path if we contain no directory separator. 22565as_myself= 22566case $0 in #(( 22567 *[\\/]* ) as_myself=$0 ;; 22568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22569for as_dir in $PATH 22570do 22571 IFS=$as_save_IFS 22572 test -z "$as_dir" && as_dir=. 22573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22574 done 22575IFS=$as_save_IFS 22576 22577 ;; 22578esac 22579# We did not find ourselves, most probably we were run as `sh COMMAND' 22580# in which case we are not to be found in the path. 22581if test "x$as_myself" = x; then 22582 as_myself=$0 22583fi 22584if test ! -f "$as_myself"; then 22585 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22586 exit 1 22587fi 22588 22589# Unset variables that we do not need and which cause bugs (e.g. in 22590# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22591# suppresses any "Segmentation fault" message there. '((' could 22592# trigger a bug in pdksh 5.2.14. 22593for as_var in BASH_ENV ENV MAIL MAILPATH 22594do eval test x\${$as_var+set} = xset \ 22595 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22596done 22597PS1='$ ' 22598PS2='> ' 22599PS4='+ ' 22600 22601# NLS nuisances. 22602LC_ALL=C 22603export LC_ALL 22604LANGUAGE=C 22605export LANGUAGE 22606 22607# CDPATH. 22608(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22609 22610 22611# as_fn_error STATUS ERROR [LINENO LOG_FD] 22612# ---------------------------------------- 22613# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22614# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22615# script with STATUS, using 1 if that was 0. 22616as_fn_error () 22617{ 22618 as_status=$1; test $as_status -eq 0 && as_status=1 22619 if test "$4"; then 22620 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22621 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22622 fi 22623 $as_echo "$as_me: error: $2" >&2 22624 as_fn_exit $as_status 22625} # as_fn_error 22626 22627 22628# as_fn_set_status STATUS 22629# ----------------------- 22630# Set $? to STATUS, without forking. 22631as_fn_set_status () 22632{ 22633 return $1 22634} # as_fn_set_status 22635 22636# as_fn_exit STATUS 22637# ----------------- 22638# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22639as_fn_exit () 22640{ 22641 set +e 22642 as_fn_set_status $1 22643 exit $1 22644} # as_fn_exit 22645 22646# as_fn_unset VAR 22647# --------------- 22648# Portably unset VAR. 22649as_fn_unset () 22650{ 22651 { eval $1=; unset $1;} 22652} 22653as_unset=as_fn_unset 22654# as_fn_append VAR VALUE 22655# ---------------------- 22656# Append the text in VALUE to the end of the definition contained in VAR. Take 22657# advantage of any shell optimizations that allow amortized linear growth over 22658# repeated appends, instead of the typical quadratic growth present in naive 22659# implementations. 22660if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22661 eval 'as_fn_append () 22662 { 22663 eval $1+=\$2 22664 }' 22665else 22666 as_fn_append () 22667 { 22668 eval $1=\$$1\$2 22669 } 22670fi # as_fn_append 22671 22672# as_fn_arith ARG... 22673# ------------------ 22674# Perform arithmetic evaluation on the ARGs, and store the result in the 22675# global $as_val. Take advantage of shells that can avoid forks. The arguments 22676# must be portable across $(()) and expr. 22677if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22678 eval 'as_fn_arith () 22679 { 22680 as_val=$(( $* )) 22681 }' 22682else 22683 as_fn_arith () 22684 { 22685 as_val=`expr "$@" || test $? -eq 1` 22686 } 22687fi # as_fn_arith 22688 22689 22690if expr a : '\(a\)' >/dev/null 2>&1 && 22691 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22692 as_expr=expr 22693else 22694 as_expr=false 22695fi 22696 22697if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22698 as_basename=basename 22699else 22700 as_basename=false 22701fi 22702 22703if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22704 as_dirname=dirname 22705else 22706 as_dirname=false 22707fi 22708 22709as_me=`$as_basename -- "$0" || 22710$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22711 X"$0" : 'X\(//\)$' \| \ 22712 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22713$as_echo X/"$0" | 22714 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22715 s//\1/ 22716 q 22717 } 22718 /^X\/\(\/\/\)$/{ 22719 s//\1/ 22720 q 22721 } 22722 /^X\/\(\/\).*/{ 22723 s//\1/ 22724 q 22725 } 22726 s/.*/./; q'` 22727 22728# Avoid depending upon Character Ranges. 22729as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22730as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22731as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22732as_cr_digits='0123456789' 22733as_cr_alnum=$as_cr_Letters$as_cr_digits 22734 22735ECHO_C= ECHO_N= ECHO_T= 22736case `echo -n x` in #((((( 22737-n*) 22738 case `echo 'xy\c'` in 22739 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22740 xy) ECHO_C='\c';; 22741 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22742 ECHO_T=' ';; 22743 esac;; 22744*) 22745 ECHO_N='-n';; 22746esac 22747 22748rm -f conf$$ conf$$.exe conf$$.file 22749if test -d conf$$.dir; then 22750 rm -f conf$$.dir/conf$$.file 22751else 22752 rm -f conf$$.dir 22753 mkdir conf$$.dir 2>/dev/null 22754fi 22755if (echo >conf$$.file) 2>/dev/null; then 22756 if ln -s conf$$.file conf$$ 2>/dev/null; then 22757 as_ln_s='ln -s' 22758 # ... but there are two gotchas: 22759 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22760 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22761 # In both cases, we have to default to `cp -pR'. 22762 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22763 as_ln_s='cp -pR' 22764 elif ln conf$$.file conf$$ 2>/dev/null; then 22765 as_ln_s=ln 22766 else 22767 as_ln_s='cp -pR' 22768 fi 22769else 22770 as_ln_s='cp -pR' 22771fi 22772rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22773rmdir conf$$.dir 2>/dev/null 22774 22775 22776# as_fn_mkdir_p 22777# ------------- 22778# Create "$as_dir" as a directory, including parents if necessary. 22779as_fn_mkdir_p () 22780{ 22781 22782 case $as_dir in #( 22783 -*) as_dir=./$as_dir;; 22784 esac 22785 test -d "$as_dir" || eval $as_mkdir_p || { 22786 as_dirs= 22787 while :; do 22788 case $as_dir in #( 22789 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22790 *) as_qdir=$as_dir;; 22791 esac 22792 as_dirs="'$as_qdir' $as_dirs" 22793 as_dir=`$as_dirname -- "$as_dir" || 22794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22795 X"$as_dir" : 'X\(//\)[^/]' \| \ 22796 X"$as_dir" : 'X\(//\)$' \| \ 22797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22798$as_echo X"$as_dir" | 22799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22800 s//\1/ 22801 q 22802 } 22803 /^X\(\/\/\)[^/].*/{ 22804 s//\1/ 22805 q 22806 } 22807 /^X\(\/\/\)$/{ 22808 s//\1/ 22809 q 22810 } 22811 /^X\(\/\).*/{ 22812 s//\1/ 22813 q 22814 } 22815 s/.*/./; q'` 22816 test -d "$as_dir" && break 22817 done 22818 test -z "$as_dirs" || eval "mkdir $as_dirs" 22819 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22820 22821 22822} # as_fn_mkdir_p 22823if mkdir -p . 2>/dev/null; then 22824 as_mkdir_p='mkdir -p "$as_dir"' 22825else 22826 test -d ./-p && rmdir ./-p 22827 as_mkdir_p=false 22828fi 22829 22830 22831# as_fn_executable_p FILE 22832# ----------------------- 22833# Test if FILE is an executable regular file. 22834as_fn_executable_p () 22835{ 22836 test -f "$1" && test -x "$1" 22837} # as_fn_executable_p 22838as_test_x='test -x' 22839as_executable_p=as_fn_executable_p 22840 22841# Sed expression to map a string onto a valid CPP name. 22842as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22843 22844# Sed expression to map a string onto a valid variable name. 22845as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22846 22847 22848exec 6>&1 22849## ----------------------------------- ## 22850## Main body of $CONFIG_STATUS script. ## 22851## ----------------------------------- ## 22852_ASEOF 22853test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22854 22855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22856# Save the log message, to keep $0 and so on meaningful, and to 22857# report actual input values of CONFIG_FILES etc. instead of their 22858# values after options handling. 22859ac_log=" 22860This file was extended by libntech $as_me 0.1.0, which was 22861generated by GNU Autoconf 2.69. Invocation command line was 22862 22863 CONFIG_FILES = $CONFIG_FILES 22864 CONFIG_HEADERS = $CONFIG_HEADERS 22865 CONFIG_LINKS = $CONFIG_LINKS 22866 CONFIG_COMMANDS = $CONFIG_COMMANDS 22867 $ $0 $@ 22868 22869on `(hostname || uname -n) 2>/dev/null | sed 1q` 22870" 22871 22872_ACEOF 22873 22874case $ac_config_files in *" 22875"*) set x $ac_config_files; shift; ac_config_files=$*;; 22876esac 22877 22878case $ac_config_headers in *" 22879"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22880esac 22881 22882 22883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22884# Files that config.status was made for. 22885config_files="$ac_config_files" 22886config_headers="$ac_config_headers" 22887config_commands="$ac_config_commands" 22888 22889_ACEOF 22890 22891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22892ac_cs_usage="\ 22893\`$as_me' instantiates files and other configuration actions 22894from templates according to the current configuration. Unless the files 22895and actions are specified as TAGs, all are instantiated by default. 22896 22897Usage: $0 [OPTION]... [TAG]... 22898 22899 -h, --help print this help, then exit 22900 -V, --version print version number and configuration settings, then exit 22901 --config print configuration, then exit 22902 -q, --quiet, --silent 22903 do not print progress messages 22904 -d, --debug don't remove temporary files 22905 --recheck update $as_me by reconfiguring in the same conditions 22906 --file=FILE[:TEMPLATE] 22907 instantiate the configuration file FILE 22908 --header=FILE[:TEMPLATE] 22909 instantiate the configuration header FILE 22910 22911Configuration files: 22912$config_files 22913 22914Configuration headers: 22915$config_headers 22916 22917Configuration commands: 22918$config_commands 22919 22920Report bugs to the package provider." 22921 22922_ACEOF 22923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22924ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22925ac_cs_version="\\ 22926libntech config.status 0.1.0 22927configured by $0, generated by GNU Autoconf 2.69, 22928 with options \\"\$ac_cs_config\\" 22929 22930Copyright (C) 2012 Free Software Foundation, Inc. 22931This config.status script is free software; the Free Software Foundation 22932gives unlimited permission to copy, distribute and modify it." 22933 22934ac_pwd='$ac_pwd' 22935srcdir='$srcdir' 22936INSTALL='$INSTALL' 22937MKDIR_P='$MKDIR_P' 22938AWK='$AWK' 22939test -n "\$AWK" || AWK=awk 22940_ACEOF 22941 22942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22943# The default lists apply if the user does not specify any file. 22944ac_need_defaults=: 22945while test $# != 0 22946do 22947 case $1 in 22948 --*=?*) 22949 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22951 ac_shift=: 22952 ;; 22953 --*=) 22954 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22955 ac_optarg= 22956 ac_shift=: 22957 ;; 22958 *) 22959 ac_option=$1 22960 ac_optarg=$2 22961 ac_shift=shift 22962 ;; 22963 esac 22964 22965 case $ac_option in 22966 # Handling of the options. 22967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22968 ac_cs_recheck=: ;; 22969 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22970 $as_echo "$ac_cs_version"; exit ;; 22971 --config | --confi | --conf | --con | --co | --c ) 22972 $as_echo "$ac_cs_config"; exit ;; 22973 --debug | --debu | --deb | --de | --d | -d ) 22974 debug=: ;; 22975 --file | --fil | --fi | --f ) 22976 $ac_shift 22977 case $ac_optarg in 22978 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22979 '') as_fn_error $? "missing file argument" ;; 22980 esac 22981 as_fn_append CONFIG_FILES " '$ac_optarg'" 22982 ac_need_defaults=false;; 22983 --header | --heade | --head | --hea ) 22984 $ac_shift 22985 case $ac_optarg in 22986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22987 esac 22988 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22989 ac_need_defaults=false;; 22990 --he | --h) 22991 # Conflict between --help and --header 22992 as_fn_error $? "ambiguous option: \`$1' 22993Try \`$0 --help' for more information.";; 22994 --help | --hel | -h ) 22995 $as_echo "$ac_cs_usage"; exit ;; 22996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22997 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22998 ac_cs_silent=: ;; 22999 23000 # This is an error. 23001 -*) as_fn_error $? "unrecognized option: \`$1' 23002Try \`$0 --help' for more information." ;; 23003 23004 *) as_fn_append ac_config_targets " $1" 23005 ac_need_defaults=false ;; 23006 23007 esac 23008 shift 23009done 23010 23011ac_configure_extra_args= 23012 23013if $ac_cs_silent; then 23014 exec 6>/dev/null 23015 ac_configure_extra_args="$ac_configure_extra_args --silent" 23016fi 23017 23018_ACEOF 23019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23020if \$ac_cs_recheck; then 23021 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23022 shift 23023 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23024 CONFIG_SHELL='$SHELL' 23025 export CONFIG_SHELL 23026 exec "\$@" 23027fi 23028 23029_ACEOF 23030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23031exec 5>>config.log 23032{ 23033 echo 23034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23035## Running $as_me. ## 23036_ASBOX 23037 $as_echo "$ac_log" 23038} >&5 23039 23040_ACEOF 23041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23042# 23043# INIT-COMMANDS 23044# 23045AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23046 23047 23048# The HP-UX ksh and POSIX shell print the target directory to stdout 23049# if CDPATH is set. 23050(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23051 23052sed_quote_subst='$sed_quote_subst' 23053double_quote_subst='$double_quote_subst' 23054delay_variable_subst='$delay_variable_subst' 23055macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23056macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23057enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23058enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23059pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23060enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23061shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23062SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23063ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23064PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23065host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23066host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23067host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23068build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23069build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23070build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23071SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23072Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23073GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23074EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23075FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23076LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23077NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23078LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23079max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23080ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23081exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23082lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23083lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23084lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23085lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23086lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23087reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23088reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23089OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23090deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23091file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23092file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23093want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23094DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23095sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23096AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23097AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23098archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23099STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23100RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23101old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23102old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23103old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23104lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23105CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23106CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23107compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23108GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23109lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23110lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23111lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23112lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23113lt_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"`' 23114lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23115nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23116lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23117lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23118objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23119MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23120lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23121lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23122lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23123lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23124lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23125need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23126MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23127DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23128NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23129LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23130OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23131OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23132libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23133shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23134extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23135archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23136enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23137export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23138whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23139compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23140old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23141old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23142archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23143archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23144module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23145module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23146with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23147allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23148no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23149hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23150hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23151hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23152hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23153hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23154hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23155hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23156inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23157link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23158always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23159export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23160exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23161include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23162prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23163postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23164file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23165variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23166need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23167need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23168version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23169runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23170shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23171shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23172libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23173library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23174soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23175install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23176postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23177postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23178finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23179finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23180hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23181sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23182configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23183configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23184hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23185enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23186enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23187enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23188old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23189striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23190 23191LTCC='$LTCC' 23192LTCFLAGS='$LTCFLAGS' 23193compiler='$compiler_DEFAULT' 23194 23195# A function that is used when there is no print builtin or printf. 23196func_fallback_echo () 23197{ 23198 eval 'cat <<_LTECHO_EOF 23199\$1 23200_LTECHO_EOF' 23201} 23202 23203# Quote evaled strings. 23204for var in SHELL \ 23205ECHO \ 23206PATH_SEPARATOR \ 23207SED \ 23208GREP \ 23209EGREP \ 23210FGREP \ 23211LD \ 23212NM \ 23213LN_S \ 23214lt_SP2NL \ 23215lt_NL2SP \ 23216reload_flag \ 23217OBJDUMP \ 23218deplibs_check_method \ 23219file_magic_cmd \ 23220file_magic_glob \ 23221want_nocaseglob \ 23222DLLTOOL \ 23223sharedlib_from_linklib_cmd \ 23224AR \ 23225AR_FLAGS \ 23226archiver_list_spec \ 23227STRIP \ 23228RANLIB \ 23229CC \ 23230CFLAGS \ 23231compiler \ 23232lt_cv_sys_global_symbol_pipe \ 23233lt_cv_sys_global_symbol_to_cdecl \ 23234lt_cv_sys_global_symbol_to_import \ 23235lt_cv_sys_global_symbol_to_c_name_address \ 23236lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23237lt_cv_nm_interface \ 23238nm_file_list_spec \ 23239lt_cv_truncate_bin \ 23240lt_prog_compiler_no_builtin_flag \ 23241lt_prog_compiler_pic \ 23242lt_prog_compiler_wl \ 23243lt_prog_compiler_static \ 23244lt_cv_prog_compiler_c_o \ 23245need_locks \ 23246MANIFEST_TOOL \ 23247DSYMUTIL \ 23248NMEDIT \ 23249LIPO \ 23250OTOOL \ 23251OTOOL64 \ 23252shrext_cmds \ 23253export_dynamic_flag_spec \ 23254whole_archive_flag_spec \ 23255compiler_needs_object \ 23256with_gnu_ld \ 23257allow_undefined_flag \ 23258no_undefined_flag \ 23259hardcode_libdir_flag_spec \ 23260hardcode_libdir_separator \ 23261exclude_expsyms \ 23262include_expsyms \ 23263file_list_spec \ 23264variables_saved_for_relink \ 23265libname_spec \ 23266library_names_spec \ 23267soname_spec \ 23268install_override_mode \ 23269finish_eval \ 23270old_striplib \ 23271striplib; do 23272 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23273 *[\\\\\\\`\\"\\\$]*) 23274 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23275 ;; 23276 *) 23277 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23278 ;; 23279 esac 23280done 23281 23282# Double-quote double-evaled strings. 23283for var in reload_cmds \ 23284old_postinstall_cmds \ 23285old_postuninstall_cmds \ 23286old_archive_cmds \ 23287extract_expsyms_cmds \ 23288old_archive_from_new_cmds \ 23289old_archive_from_expsyms_cmds \ 23290archive_cmds \ 23291archive_expsym_cmds \ 23292module_cmds \ 23293module_expsym_cmds \ 23294export_symbols_cmds \ 23295prelink_cmds \ 23296postlink_cmds \ 23297postinstall_cmds \ 23298postuninstall_cmds \ 23299finish_cmds \ 23300sys_lib_search_path_spec \ 23301configure_time_dlsearch_path \ 23302configure_time_lt_sys_library_path; do 23303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23304 *[\\\\\\\`\\"\\\$]*) 23305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23306 ;; 23307 *) 23308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23309 ;; 23310 esac 23311done 23312 23313ac_aux_dir='$ac_aux_dir' 23314 23315# See if we are running on zsh, and set the options that allow our 23316# commands through without removal of \ escapes INIT. 23317if test -n "\${ZSH_VERSION+set}"; then 23318 setopt NO_GLOB_SUBST 23319fi 23320 23321 23322 PACKAGE='$PACKAGE' 23323 VERSION='$VERSION' 23324 RM='$RM' 23325 ofile='$ofile' 23326 23327 23328 23329 23330_ACEOF 23331 23332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23333 23334# Handling of arguments. 23335for ac_config_target in $ac_config_targets 23336do 23337 case $ac_config_target in 23338 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23339 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23340 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23341 "configure_flags.env") CONFIG_FILES="$CONFIG_FILES configure_flags.env" ;; 23342 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23343 "libcompat/Makefile") CONFIG_FILES="$CONFIG_FILES libcompat/Makefile" ;; 23344 "libutils/Makefile") CONFIG_FILES="$CONFIG_FILES libutils/Makefile" ;; 23345 "config.post.h") CONFIG_FILES="$CONFIG_FILES config.post.h" ;; 23346 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 23347 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; 23348 23349 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23350 esac 23351done 23352 23353 23354# If the user did not use the arguments to specify the items to instantiate, 23355# then the envvar interface is used. Set only those that are not. 23356# We use the long form for the default assignment because of an extremely 23357# bizarre bug on SunOS 4.1.3. 23358if $ac_need_defaults; then 23359 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23360 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23361 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23362fi 23363 23364# Have a temporary directory for convenience. Make it in the build tree 23365# simply because there is no reason against having it here, and in addition, 23366# creating and moving files from /tmp can sometimes cause problems. 23367# Hook for its removal unless debugging. 23368# Note that there is a small window in which the directory will not be cleaned: 23369# after its creation but before its name has been assigned to `$tmp'. 23370$debug || 23371{ 23372 tmp= ac_tmp= 23373 trap 'exit_status=$? 23374 : "${ac_tmp:=$tmp}" 23375 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23376' 0 23377 trap 'as_fn_exit 1' 1 2 13 15 23378} 23379# Create a (secure) tmp directory for tmp files. 23380 23381{ 23382 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23383 test -d "$tmp" 23384} || 23385{ 23386 tmp=./conf$$-$RANDOM 23387 (umask 077 && mkdir "$tmp") 23388} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23389ac_tmp=$tmp 23390 23391# Set up the scripts for CONFIG_FILES section. 23392# No need to generate them if there are no CONFIG_FILES. 23393# This happens for instance with `./config.status config.h'. 23394if test -n "$CONFIG_FILES"; then 23395 23396 23397ac_cr=`echo X | tr X '\015'` 23398# On cygwin, bash can eat \r inside `` if the user requested igncr. 23399# But we know of no other shell where ac_cr would be empty at this 23400# point, so we can use a bashism as a fallback. 23401if test "x$ac_cr" = x; then 23402 eval ac_cr=\$\'\\r\' 23403fi 23404ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23405if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23406 ac_cs_awk_cr='\\r' 23407else 23408 ac_cs_awk_cr=$ac_cr 23409fi 23410 23411echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23412_ACEOF 23413 23414 23415{ 23416 echo "cat >conf$$subs.awk <<_ACEOF" && 23417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23418 echo "_ACEOF" 23419} >conf$$subs.sh || 23420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23421ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23422ac_delim='%!_!# ' 23423for ac_last_try in false false false false false :; do 23424 . ./conf$$subs.sh || 23425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23426 23427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23428 if test $ac_delim_n = $ac_delim_num; then 23429 break 23430 elif $ac_last_try; then 23431 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23432 else 23433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23434 fi 23435done 23436rm -f conf$$subs.sh 23437 23438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23439cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23440_ACEOF 23441sed -n ' 23442h 23443s/^/S["/; s/!.*/"]=/ 23444p 23445g 23446s/^[^!]*!// 23447:repl 23448t repl 23449s/'"$ac_delim"'$// 23450t delim 23451:nl 23452h 23453s/\(.\{148\}\)..*/\1/ 23454t more1 23455s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23456p 23457n 23458b repl 23459:more1 23460s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23461p 23462g 23463s/.\{148\}// 23464t nl 23465:delim 23466h 23467s/\(.\{148\}\)..*/\1/ 23468t more2 23469s/["\\]/\\&/g; s/^/"/; s/$/"/ 23470p 23471b 23472:more2 23473s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23474p 23475g 23476s/.\{148\}// 23477t delim 23478' <conf$$subs.awk | sed ' 23479/^[^""]/{ 23480 N 23481 s/\n// 23482} 23483' >>$CONFIG_STATUS || ac_write_fail=1 23484rm -f conf$$subs.awk 23485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23486_ACAWK 23487cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23488 for (key in S) S_is_set[key] = 1 23489 FS = "" 23490 23491} 23492{ 23493 line = $ 0 23494 nfields = split(line, field, "@") 23495 substed = 0 23496 len = length(field[1]) 23497 for (i = 2; i < nfields; i++) { 23498 key = field[i] 23499 keylen = length(key) 23500 if (S_is_set[key]) { 23501 value = S[key] 23502 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23503 len += length(value) + length(field[++i]) 23504 substed = 1 23505 } else 23506 len += 1 + keylen 23507 } 23508 23509 print line 23510} 23511 23512_ACAWK 23513_ACEOF 23514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23515if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23516 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23517else 23518 cat 23519fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23520 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23521_ACEOF 23522 23523# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23524# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23525# trailing colons and then remove the whole line if VPATH becomes empty 23526# (actually we leave an empty line to preserve line numbers). 23527if test "x$srcdir" = x.; then 23528 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23529h 23530s/// 23531s/^/:/ 23532s/[ ]*$/:/ 23533s/:\$(srcdir):/:/g 23534s/:\${srcdir}:/:/g 23535s/:@srcdir@:/:/g 23536s/^:*// 23537s/:*$// 23538x 23539s/\(=[ ]*\).*/\1/ 23540G 23541s/\n// 23542s/^[^=]*=[ ]*$// 23543}' 23544fi 23545 23546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23547fi # test -n "$CONFIG_FILES" 23548 23549# Set up the scripts for CONFIG_HEADERS section. 23550# No need to generate them if there are no CONFIG_HEADERS. 23551# This happens for instance with `./config.status Makefile'. 23552if test -n "$CONFIG_HEADERS"; then 23553cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23554BEGIN { 23555_ACEOF 23556 23557# Transform confdefs.h into an awk script `defines.awk', embedded as 23558# here-document in config.status, that substitutes the proper values into 23559# config.h.in to produce config.h. 23560 23561# Create a delimiter string that does not exist in confdefs.h, to ease 23562# handling of long lines. 23563ac_delim='%!_!# ' 23564for ac_last_try in false false :; do 23565 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23566 if test -z "$ac_tt"; then 23567 break 23568 elif $ac_last_try; then 23569 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23570 else 23571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23572 fi 23573done 23574 23575# For the awk script, D is an array of macro values keyed by name, 23576# likewise P contains macro parameters if any. Preserve backslash 23577# newline sequences. 23578 23579ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23580sed -n ' 23581s/.\{148\}/&'"$ac_delim"'/g 23582t rset 23583:rset 23584s/^[ ]*#[ ]*define[ ][ ]*/ / 23585t def 23586d 23587:def 23588s/\\$// 23589t bsnl 23590s/["\\]/\\&/g 23591s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23592D["\1"]=" \3"/p 23593s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23594d 23595:bsnl 23596s/["\\]/\\&/g 23597s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23598D["\1"]=" \3\\\\\\n"\\/p 23599t cont 23600s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23601t cont 23602d 23603:cont 23604n 23605s/.\{148\}/&'"$ac_delim"'/g 23606t clear 23607:clear 23608s/\\$// 23609t bsnlc 23610s/["\\]/\\&/g; s/^/"/; s/$/"/p 23611d 23612:bsnlc 23613s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23614b cont 23615' <confdefs.h | sed ' 23616s/'"$ac_delim"'/"\\\ 23617"/g' >>$CONFIG_STATUS || ac_write_fail=1 23618 23619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23620 for (key in D) D_is_set[key] = 1 23621 FS = "" 23622} 23623/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23624 line = \$ 0 23625 split(line, arg, " ") 23626 if (arg[1] == "#") { 23627 defundef = arg[2] 23628 mac1 = arg[3] 23629 } else { 23630 defundef = substr(arg[1], 2) 23631 mac1 = arg[2] 23632 } 23633 split(mac1, mac2, "(") #) 23634 macro = mac2[1] 23635 prefix = substr(line, 1, index(line, defundef) - 1) 23636 if (D_is_set[macro]) { 23637 # Preserve the white space surrounding the "#". 23638 print prefix "define", macro P[macro] D[macro] 23639 next 23640 } else { 23641 # Replace #undef with comments. This is necessary, for example, 23642 # in the case of _POSIX_SOURCE, which is predefined and required 23643 # on some systems where configure will not decide to define it. 23644 if (defundef == "undef") { 23645 print "/*", prefix defundef, macro, "*/" 23646 next 23647 } 23648 } 23649} 23650{ print } 23651_ACAWK 23652_ACEOF 23653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23654 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23655fi # test -n "$CONFIG_HEADERS" 23656 23657 23658eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23659shift 23660for ac_tag 23661do 23662 case $ac_tag in 23663 :[FHLC]) ac_mode=$ac_tag; continue;; 23664 esac 23665 case $ac_mode$ac_tag in 23666 :[FHL]*:*);; 23667 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23668 :[FH]-) ac_tag=-:-;; 23669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23670 esac 23671 ac_save_IFS=$IFS 23672 IFS=: 23673 set x $ac_tag 23674 IFS=$ac_save_IFS 23675 shift 23676 ac_file=$1 23677 shift 23678 23679 case $ac_mode in 23680 :L) ac_source=$1;; 23681 :[FH]) 23682 ac_file_inputs= 23683 for ac_f 23684 do 23685 case $ac_f in 23686 -) ac_f="$ac_tmp/stdin";; 23687 *) # Look for the file first in the build tree, then in the source tree 23688 # (if the path is not absolute). The absolute path cannot be DOS-style, 23689 # because $ac_f cannot contain `:'. 23690 test -f "$ac_f" || 23691 case $ac_f in 23692 [\\/$]*) false;; 23693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23694 esac || 23695 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23696 esac 23697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23698 as_fn_append ac_file_inputs " '$ac_f'" 23699 done 23700 23701 # Let's still pretend it is `configure' which instantiates (i.e., don't 23702 # use $as_me), people would be surprised to read: 23703 # /* config.h. Generated by config.status. */ 23704 configure_input='Generated from '` 23705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23706 `' by configure.' 23707 if test x"$ac_file" != x-; then 23708 configure_input="$ac_file. $configure_input" 23709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23710$as_echo "$as_me: creating $ac_file" >&6;} 23711 fi 23712 # Neutralize special characters interpreted by sed in replacement strings. 23713 case $configure_input in #( 23714 *\&* | *\|* | *\\* ) 23715 ac_sed_conf_input=`$as_echo "$configure_input" | 23716 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23717 *) ac_sed_conf_input=$configure_input;; 23718 esac 23719 23720 case $ac_tag in 23721 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23723 esac 23724 ;; 23725 esac 23726 23727 ac_dir=`$as_dirname -- "$ac_file" || 23728$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23729 X"$ac_file" : 'X\(//\)[^/]' \| \ 23730 X"$ac_file" : 'X\(//\)$' \| \ 23731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23732$as_echo X"$ac_file" | 23733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23734 s//\1/ 23735 q 23736 } 23737 /^X\(\/\/\)[^/].*/{ 23738 s//\1/ 23739 q 23740 } 23741 /^X\(\/\/\)$/{ 23742 s//\1/ 23743 q 23744 } 23745 /^X\(\/\).*/{ 23746 s//\1/ 23747 q 23748 } 23749 s/.*/./; q'` 23750 as_dir="$ac_dir"; as_fn_mkdir_p 23751 ac_builddir=. 23752 23753case "$ac_dir" in 23754.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23755*) 23756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23757 # A ".." for each directory in $ac_dir_suffix. 23758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23759 case $ac_top_builddir_sub in 23760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23762 esac ;; 23763esac 23764ac_abs_top_builddir=$ac_pwd 23765ac_abs_builddir=$ac_pwd$ac_dir_suffix 23766# for backward compatibility: 23767ac_top_builddir=$ac_top_build_prefix 23768 23769case $srcdir in 23770 .) # We are building in place. 23771 ac_srcdir=. 23772 ac_top_srcdir=$ac_top_builddir_sub 23773 ac_abs_top_srcdir=$ac_pwd ;; 23774 [\\/]* | ?:[\\/]* ) # Absolute name. 23775 ac_srcdir=$srcdir$ac_dir_suffix; 23776 ac_top_srcdir=$srcdir 23777 ac_abs_top_srcdir=$srcdir ;; 23778 *) # Relative name. 23779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23780 ac_top_srcdir=$ac_top_build_prefix$srcdir 23781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23782esac 23783ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23784 23785 23786 case $ac_mode in 23787 :F) 23788 # 23789 # CONFIG_FILE 23790 # 23791 23792 case $INSTALL in 23793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23794 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23795 esac 23796 ac_MKDIR_P=$MKDIR_P 23797 case $MKDIR_P in 23798 [\\/$]* | ?:[\\/]* ) ;; 23799 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23800 esac 23801_ACEOF 23802 23803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23804# If the template does not know about datarootdir, expand it. 23805# FIXME: This hack should be removed a few years after 2.60. 23806ac_datarootdir_hack=; ac_datarootdir_seen= 23807ac_sed_dataroot=' 23808/datarootdir/ { 23809 p 23810 q 23811} 23812/@datadir@/p 23813/@docdir@/p 23814/@infodir@/p 23815/@localedir@/p 23816/@mandir@/p' 23817case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23818*datarootdir*) ac_datarootdir_seen=yes;; 23819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23821$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23822_ACEOF 23823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23824 ac_datarootdir_hack=' 23825 s&@datadir@&$datadir&g 23826 s&@docdir@&$docdir&g 23827 s&@infodir@&$infodir&g 23828 s&@localedir@&$localedir&g 23829 s&@mandir@&$mandir&g 23830 s&\\\${datarootdir}&$datarootdir&g' ;; 23831esac 23832_ACEOF 23833 23834# Neutralize VPATH when `$srcdir' = `.'. 23835# Shell code in configure.ac might set extrasub. 23836# FIXME: do we really want to maintain this feature? 23837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23838ac_sed_extra="$ac_vpsub 23839$extrasub 23840_ACEOF 23841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23842:t 23843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23844s|@configure_input@|$ac_sed_conf_input|;t t 23845s&@top_builddir@&$ac_top_builddir_sub&;t t 23846s&@top_build_prefix@&$ac_top_build_prefix&;t t 23847s&@srcdir@&$ac_srcdir&;t t 23848s&@abs_srcdir@&$ac_abs_srcdir&;t t 23849s&@top_srcdir@&$ac_top_srcdir&;t t 23850s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23851s&@builddir@&$ac_builddir&;t t 23852s&@abs_builddir@&$ac_abs_builddir&;t t 23853s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23854s&@INSTALL@&$ac_INSTALL&;t t 23855s&@MKDIR_P@&$ac_MKDIR_P&;t t 23856$ac_datarootdir_hack 23857" 23858eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23859 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23860 23861test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23862 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23864 "$ac_tmp/out"`; test -z "$ac_out"; } && 23865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23866which seems to be undefined. Please make sure it is defined" >&5 23867$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23868which seems to be undefined. Please make sure it is defined" >&2;} 23869 23870 rm -f "$ac_tmp/stdin" 23871 case $ac_file in 23872 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23873 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23874 esac \ 23875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23876 ;; 23877 :H) 23878 # 23879 # CONFIG_HEADER 23880 # 23881 if test x"$ac_file" != x-; then 23882 { 23883 $as_echo "/* $configure_input */" \ 23884 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23885 } >"$ac_tmp/config.h" \ 23886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23887 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23888 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23889$as_echo "$as_me: $ac_file is unchanged" >&6;} 23890 else 23891 rm -f "$ac_file" 23892 mv "$ac_tmp/config.h" "$ac_file" \ 23893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23894 fi 23895 else 23896 $as_echo "/* $configure_input */" \ 23897 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23898 || as_fn_error $? "could not create -" "$LINENO" 5 23899 fi 23900# Compute "$ac_file"'s index in $config_headers. 23901_am_arg="$ac_file" 23902_am_stamp_count=1 23903for _am_header in $config_headers :; do 23904 case $_am_header in 23905 $_am_arg | $_am_arg:* ) 23906 break ;; 23907 * ) 23908 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23909 esac 23910done 23911echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23912$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23913 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23914 X"$_am_arg" : 'X\(//\)$' \| \ 23915 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23916$as_echo X"$_am_arg" | 23917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23918 s//\1/ 23919 q 23920 } 23921 /^X\(\/\/\)[^/].*/{ 23922 s//\1/ 23923 q 23924 } 23925 /^X\(\/\/\)$/{ 23926 s//\1/ 23927 q 23928 } 23929 /^X\(\/\).*/{ 23930 s//\1/ 23931 q 23932 } 23933 s/.*/./; q'`/stamp-h$_am_stamp_count 23934 ;; 23935 23936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23937$as_echo "$as_me: executing $ac_file commands" >&6;} 23938 ;; 23939 esac 23940 23941 23942 case $ac_file$ac_mode in 23943 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23944 # Older Autoconf quotes --file arguments for eval, but not when files 23945 # are listed without --file. Let's play safe and only enable the eval 23946 # if we detect the quoting. 23947 case $CONFIG_FILES in 23948 *\'*) eval set x "$CONFIG_FILES" ;; 23949 *) set x $CONFIG_FILES ;; 23950 esac 23951 shift 23952 for mf 23953 do 23954 # Strip MF so we end up with the name of the file. 23955 mf=`echo "$mf" | sed -e 's/:.*$//'` 23956 # Check whether this is an Automake generated Makefile or not. 23957 # We used to match only the files named 'Makefile.in', but 23958 # some people rename them; so instead we look at the file content. 23959 # Grep'ing the first line is not enough: some people post-process 23960 # each Makefile.in and add a new line on top of each file to say so. 23961 # Grep'ing the whole file is not good either: AIX grep has a line 23962 # limit of 2048, but all sed's we know have understand at least 4000. 23963 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23964 dirpart=`$as_dirname -- "$mf" || 23965$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23966 X"$mf" : 'X\(//\)[^/]' \| \ 23967 X"$mf" : 'X\(//\)$' \| \ 23968 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23969$as_echo X"$mf" | 23970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23971 s//\1/ 23972 q 23973 } 23974 /^X\(\/\/\)[^/].*/{ 23975 s//\1/ 23976 q 23977 } 23978 /^X\(\/\/\)$/{ 23979 s//\1/ 23980 q 23981 } 23982 /^X\(\/\).*/{ 23983 s//\1/ 23984 q 23985 } 23986 s/.*/./; q'` 23987 else 23988 continue 23989 fi 23990 # Extract the definition of DEPDIR, am__include, and am__quote 23991 # from the Makefile without running 'make'. 23992 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23993 test -z "$DEPDIR" && continue 23994 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23995 test -z "$am__include" && continue 23996 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23997 # Find all dependency output files, they are included files with 23998 # $(DEPDIR) in their names. We invoke sed twice because it is the 23999 # simplest approach to changing $(DEPDIR) to its actual value in the 24000 # expansion. 24001 for file in `sed -n " 24002 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24003 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 24004 # Make sure the directory exists. 24005 test -f "$dirpart/$file" && continue 24006 fdir=`$as_dirname -- "$file" || 24007$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24008 X"$file" : 'X\(//\)[^/]' \| \ 24009 X"$file" : 'X\(//\)$' \| \ 24010 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24011$as_echo X"$file" | 24012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24013 s//\1/ 24014 q 24015 } 24016 /^X\(\/\/\)[^/].*/{ 24017 s//\1/ 24018 q 24019 } 24020 /^X\(\/\/\)$/{ 24021 s//\1/ 24022 q 24023 } 24024 /^X\(\/\).*/{ 24025 s//\1/ 24026 q 24027 } 24028 s/.*/./; q'` 24029 as_dir=$dirpart/$fdir; as_fn_mkdir_p 24030 # echo "creating $dirpart/$file" 24031 echo '# dummy' > "$dirpart/$file" 24032 done 24033 done 24034} 24035 ;; 24036 "libtool":C) 24037 24038 # See if we are running on zsh, and set the options that allow our 24039 # commands through without removal of \ escapes. 24040 if test -n "${ZSH_VERSION+set}"; then 24041 setopt NO_GLOB_SUBST 24042 fi 24043 24044 cfgfile=${ofile}T 24045 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24046 $RM "$cfgfile" 24047 24048 cat <<_LT_EOF >> "$cfgfile" 24049#! $SHELL 24050# Generated automatically by $as_me ($PACKAGE) $VERSION 24051# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24052 24053# Provide generalized library-building support services. 24054# Written by Gordon Matzigkeit, 1996 24055 24056# Copyright (C) 2014 Free Software Foundation, Inc. 24057# This is free software; see the source for copying conditions. There is NO 24058# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24059 24060# GNU Libtool is free software; you can redistribute it and/or modify 24061# it under the terms of the GNU General Public License as published by 24062# the Free Software Foundation; either version 2 of of the License, or 24063# (at your option) any later version. 24064# 24065# As a special exception to the GNU General Public License, if you 24066# distribute this file as part of a program or library that is built 24067# using GNU Libtool, you may include this file under the same 24068# distribution terms that you use for the rest of that program. 24069# 24070# GNU Libtool is distributed in the hope that it will be useful, but 24071# WITHOUT ANY WARRANTY; without even the implied warranty of 24072# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24073# GNU General Public License for more details. 24074# 24075# You should have received a copy of the GNU General Public License 24076# along with this program. If not, see <http://www.gnu.org/licenses/>. 24077 24078 24079# The names of the tagged configurations supported by this script. 24080available_tags='' 24081 24082# Configured defaults for sys_lib_dlsearch_path munging. 24083: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24084 24085# ### BEGIN LIBTOOL CONFIG 24086 24087# Which release of libtool.m4 was used? 24088macro_version=$macro_version 24089macro_revision=$macro_revision 24090 24091# Whether or not to build static libraries. 24092build_old_libs=$enable_static 24093 24094# Whether or not to build shared libraries. 24095build_libtool_libs=$enable_shared 24096 24097# What type of objects to build. 24098pic_mode=$pic_mode 24099 24100# Whether or not to optimize for fast installation. 24101fast_install=$enable_fast_install 24102 24103# Shared archive member basename,for filename based shared library versioning on AIX. 24104shared_archive_member_spec=$shared_archive_member_spec 24105 24106# Shell to use when invoking shell scripts. 24107SHELL=$lt_SHELL 24108 24109# An echo program that protects backslashes. 24110ECHO=$lt_ECHO 24111 24112# The PATH separator for the build system. 24113PATH_SEPARATOR=$lt_PATH_SEPARATOR 24114 24115# The host system. 24116host_alias=$host_alias 24117host=$host 24118host_os=$host_os 24119 24120# The build system. 24121build_alias=$build_alias 24122build=$build 24123build_os=$build_os 24124 24125# A sed program that does not truncate output. 24126SED=$lt_SED 24127 24128# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24129Xsed="\$SED -e 1s/^X//" 24130 24131# A grep program that handles long lines. 24132GREP=$lt_GREP 24133 24134# An ERE matcher. 24135EGREP=$lt_EGREP 24136 24137# A literal string matcher. 24138FGREP=$lt_FGREP 24139 24140# A BSD- or MS-compatible name lister. 24141NM=$lt_NM 24142 24143# Whether we need soft or hard links. 24144LN_S=$lt_LN_S 24145 24146# What is the maximum length of a command? 24147max_cmd_len=$max_cmd_len 24148 24149# Object file suffix (normally "o"). 24150objext=$ac_objext 24151 24152# Executable file suffix (normally ""). 24153exeext=$exeext 24154 24155# whether the shell understands "unset". 24156lt_unset=$lt_unset 24157 24158# turn spaces into newlines. 24159SP2NL=$lt_lt_SP2NL 24160 24161# turn newlines into spaces. 24162NL2SP=$lt_lt_NL2SP 24163 24164# convert \$build file names to \$host format. 24165to_host_file_cmd=$lt_cv_to_host_file_cmd 24166 24167# convert \$build files to toolchain format. 24168to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24169 24170# An object symbol dumper. 24171OBJDUMP=$lt_OBJDUMP 24172 24173# Method to check whether dependent libraries are shared objects. 24174deplibs_check_method=$lt_deplibs_check_method 24175 24176# Command to use when deplibs_check_method = "file_magic". 24177file_magic_cmd=$lt_file_magic_cmd 24178 24179# How to find potential files when deplibs_check_method = "file_magic". 24180file_magic_glob=$lt_file_magic_glob 24181 24182# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24183want_nocaseglob=$lt_want_nocaseglob 24184 24185# DLL creation program. 24186DLLTOOL=$lt_DLLTOOL 24187 24188# Command to associate shared and link libraries. 24189sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24190 24191# The archiver. 24192AR=$lt_AR 24193 24194# Flags to create an archive. 24195AR_FLAGS=$lt_AR_FLAGS 24196 24197# How to feed a file listing to the archiver. 24198archiver_list_spec=$lt_archiver_list_spec 24199 24200# A symbol stripping program. 24201STRIP=$lt_STRIP 24202 24203# Commands used to install an old-style archive. 24204RANLIB=$lt_RANLIB 24205old_postinstall_cmds=$lt_old_postinstall_cmds 24206old_postuninstall_cmds=$lt_old_postuninstall_cmds 24207 24208# Whether to use a lock for old archive extraction. 24209lock_old_archive_extraction=$lock_old_archive_extraction 24210 24211# A C compiler. 24212LTCC=$lt_CC 24213 24214# LTCC compiler flags. 24215LTCFLAGS=$lt_CFLAGS 24216 24217# Take the output of nm and produce a listing of raw symbols and C names. 24218global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24219 24220# Transform the output of nm in a proper C declaration. 24221global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24222 24223# Transform the output of nm into a list of symbols to manually relocate. 24224global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24225 24226# Transform the output of nm in a C name address pair. 24227global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24228 24229# Transform the output of nm in a C name address pair when lib prefix is needed. 24230global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24231 24232# The name lister interface. 24233nm_interface=$lt_lt_cv_nm_interface 24234 24235# Specify filename containing input files for \$NM. 24236nm_file_list_spec=$lt_nm_file_list_spec 24237 24238# The root where to search for dependent libraries,and where our libraries should be installed. 24239lt_sysroot=$lt_sysroot 24240 24241# Command to truncate a binary pipe. 24242lt_truncate_bin=$lt_lt_cv_truncate_bin 24243 24244# The name of the directory that contains temporary libtool files. 24245objdir=$objdir 24246 24247# Used to examine libraries when file_magic_cmd begins with "file". 24248MAGIC_CMD=$MAGIC_CMD 24249 24250# Must we lock files when doing compilation? 24251need_locks=$lt_need_locks 24252 24253# Manifest tool. 24254MANIFEST_TOOL=$lt_MANIFEST_TOOL 24255 24256# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24257DSYMUTIL=$lt_DSYMUTIL 24258 24259# Tool to change global to local symbols on Mac OS X. 24260NMEDIT=$lt_NMEDIT 24261 24262# Tool to manipulate fat objects and archives on Mac OS X. 24263LIPO=$lt_LIPO 24264 24265# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24266OTOOL=$lt_OTOOL 24267 24268# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24269OTOOL64=$lt_OTOOL64 24270 24271# Old archive suffix (normally "a"). 24272libext=$libext 24273 24274# Shared library suffix (normally ".so"). 24275shrext_cmds=$lt_shrext_cmds 24276 24277# The commands to extract the exported symbol list from a shared archive. 24278extract_expsyms_cmds=$lt_extract_expsyms_cmds 24279 24280# Variables whose values should be saved in libtool wrapper scripts and 24281# restored at link time. 24282variables_saved_for_relink=$lt_variables_saved_for_relink 24283 24284# Do we need the "lib" prefix for modules? 24285need_lib_prefix=$need_lib_prefix 24286 24287# Do we need a version for libraries? 24288need_version=$need_version 24289 24290# Library versioning type. 24291version_type=$version_type 24292 24293# Shared library runtime path variable. 24294runpath_var=$runpath_var 24295 24296# Shared library path variable. 24297shlibpath_var=$shlibpath_var 24298 24299# Is shlibpath searched before the hard-coded library search path? 24300shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24301 24302# Format of library name prefix. 24303libname_spec=$lt_libname_spec 24304 24305# List of archive names. First name is the real one, the rest are links. 24306# The last name is the one that the linker finds with -lNAME 24307library_names_spec=$lt_library_names_spec 24308 24309# The coded name of the library, if different from the real name. 24310soname_spec=$lt_soname_spec 24311 24312# Permission mode override for installation of shared libraries. 24313install_override_mode=$lt_install_override_mode 24314 24315# Command to use after installation of a shared archive. 24316postinstall_cmds=$lt_postinstall_cmds 24317 24318# Command to use after uninstallation of a shared archive. 24319postuninstall_cmds=$lt_postuninstall_cmds 24320 24321# Commands used to finish a libtool library installation in a directory. 24322finish_cmds=$lt_finish_cmds 24323 24324# As "finish_cmds", except a single script fragment to be evaled but 24325# not shown. 24326finish_eval=$lt_finish_eval 24327 24328# Whether we should hardcode library paths into libraries. 24329hardcode_into_libs=$hardcode_into_libs 24330 24331# Compile-time system search path for libraries. 24332sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24333 24334# Detected run-time system search path for libraries. 24335sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24336 24337# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24338configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24339 24340# Whether dlopen is supported. 24341dlopen_support=$enable_dlopen 24342 24343# Whether dlopen of programs is supported. 24344dlopen_self=$enable_dlopen_self 24345 24346# Whether dlopen of statically linked programs is supported. 24347dlopen_self_static=$enable_dlopen_self_static 24348 24349# Commands to strip libraries. 24350old_striplib=$lt_old_striplib 24351striplib=$lt_striplib 24352 24353 24354# The linker used to build libraries. 24355LD=$lt_LD 24356 24357# How to create reloadable object files. 24358reload_flag=$lt_reload_flag 24359reload_cmds=$lt_reload_cmds 24360 24361# Commands used to build an old-style archive. 24362old_archive_cmds=$lt_old_archive_cmds 24363 24364# A language specific compiler. 24365CC=$lt_compiler 24366 24367# Is the compiler the GNU compiler? 24368with_gcc=$GCC 24369 24370# Compiler flag to turn off builtin functions. 24371no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24372 24373# Additional compiler flags for building library objects. 24374pic_flag=$lt_lt_prog_compiler_pic 24375 24376# How to pass a linker flag through the compiler. 24377wl=$lt_lt_prog_compiler_wl 24378 24379# Compiler flag to prevent dynamic linking. 24380link_static_flag=$lt_lt_prog_compiler_static 24381 24382# Does compiler simultaneously support -c and -o options? 24383compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24384 24385# Whether or not to add -lc for building shared libraries. 24386build_libtool_need_lc=$archive_cmds_need_lc 24387 24388# Whether or not to disallow shared libs when runtime libs are static. 24389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24390 24391# Compiler flag to allow reflexive dlopens. 24392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24393 24394# Compiler flag to generate shared objects directly from archives. 24395whole_archive_flag_spec=$lt_whole_archive_flag_spec 24396 24397# Whether the compiler copes with passing no objects directly. 24398compiler_needs_object=$lt_compiler_needs_object 24399 24400# Create an old-style archive from a shared archive. 24401old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24402 24403# Create a temporary old-style archive to link instead of a shared archive. 24404old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24405 24406# Commands used to build a shared archive. 24407archive_cmds=$lt_archive_cmds 24408archive_expsym_cmds=$lt_archive_expsym_cmds 24409 24410# Commands used to build a loadable module if different from building 24411# a shared archive. 24412module_cmds=$lt_module_cmds 24413module_expsym_cmds=$lt_module_expsym_cmds 24414 24415# Whether we are building with GNU ld or not. 24416with_gnu_ld=$lt_with_gnu_ld 24417 24418# Flag that allows shared libraries with undefined symbols to be built. 24419allow_undefined_flag=$lt_allow_undefined_flag 24420 24421# Flag that enforces no undefined symbols. 24422no_undefined_flag=$lt_no_undefined_flag 24423 24424# Flag to hardcode \$libdir into a binary during linking. 24425# This must work even if \$libdir does not exist 24426hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24427 24428# Whether we need a single "-rpath" flag with a separated argument. 24429hardcode_libdir_separator=$lt_hardcode_libdir_separator 24430 24431# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24432# DIR into the resulting binary. 24433hardcode_direct=$hardcode_direct 24434 24435# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24436# DIR into the resulting binary and the resulting library dependency is 24437# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24438# library is relocated. 24439hardcode_direct_absolute=$hardcode_direct_absolute 24440 24441# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24442# into the resulting binary. 24443hardcode_minus_L=$hardcode_minus_L 24444 24445# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24446# into the resulting binary. 24447hardcode_shlibpath_var=$hardcode_shlibpath_var 24448 24449# Set to "yes" if building a shared library automatically hardcodes DIR 24450# into the library and all subsequent libraries and executables linked 24451# against it. 24452hardcode_automatic=$hardcode_automatic 24453 24454# Set to yes if linker adds runtime paths of dependent libraries 24455# to runtime path list. 24456inherit_rpath=$inherit_rpath 24457 24458# Whether libtool must link a program against all its dependency libraries. 24459link_all_deplibs=$link_all_deplibs 24460 24461# Set to "yes" if exported symbols are required. 24462always_export_symbols=$always_export_symbols 24463 24464# The commands to list exported symbols. 24465export_symbols_cmds=$lt_export_symbols_cmds 24466 24467# Symbols that should not be listed in the preloaded symbols. 24468exclude_expsyms=$lt_exclude_expsyms 24469 24470# Symbols that must always be exported. 24471include_expsyms=$lt_include_expsyms 24472 24473# Commands necessary for linking programs (against libraries) with templates. 24474prelink_cmds=$lt_prelink_cmds 24475 24476# Commands necessary for finishing linking programs. 24477postlink_cmds=$lt_postlink_cmds 24478 24479# Specify filename containing input files. 24480file_list_spec=$lt_file_list_spec 24481 24482# How to hardcode a shared library path into an executable. 24483hardcode_action=$hardcode_action 24484 24485# ### END LIBTOOL CONFIG 24486 24487_LT_EOF 24488 24489 cat <<'_LT_EOF' >> "$cfgfile" 24490 24491# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24492 24493# func_munge_path_list VARIABLE PATH 24494# ----------------------------------- 24495# VARIABLE is name of variable containing _space_ separated list of 24496# directories to be munged by the contents of PATH, which is string 24497# having a format: 24498# "DIR[:DIR]:" 24499# string "DIR[ DIR]" will be prepended to VARIABLE 24500# ":DIR[:DIR]" 24501# string "DIR[ DIR]" will be appended to VARIABLE 24502# "DIRP[:DIRP]::[DIRA:]DIRA" 24503# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24504# "DIRA[ DIRA]" will be appended to VARIABLE 24505# "DIR[:DIR]" 24506# VARIABLE will be replaced by "DIR[ DIR]" 24507func_munge_path_list () 24508{ 24509 case x$2 in 24510 x) 24511 ;; 24512 *:) 24513 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24514 ;; 24515 x:*) 24516 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24517 ;; 24518 *::*) 24519 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24520 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24521 ;; 24522 *) 24523 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24524 ;; 24525 esac 24526} 24527 24528 24529# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24530func_cc_basename () 24531{ 24532 for cc_temp in $*""; do 24533 case $cc_temp in 24534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24536 \-*) ;; 24537 *) break;; 24538 esac 24539 done 24540 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24541} 24542 24543 24544# ### END FUNCTIONS SHARED WITH CONFIGURE 24545 24546_LT_EOF 24547 24548 case $host_os in 24549 aix3*) 24550 cat <<\_LT_EOF >> "$cfgfile" 24551# AIX sometimes has problems with the GCC collect2 program. For some 24552# reason, if we set the COLLECT_NAMES environment variable, the problems 24553# vanish in a puff of smoke. 24554if test set != "${COLLECT_NAMES+set}"; then 24555 COLLECT_NAMES= 24556 export COLLECT_NAMES 24557fi 24558_LT_EOF 24559 ;; 24560 esac 24561 24562 24563ltmain=$ac_aux_dir/ltmain.sh 24564 24565 24566 # We use sed instead of cat because bash on DJGPP gets confused if 24567 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24568 # text mode, it properly converts lines to CR/LF. This bash problem 24569 # is reportedly fixed, but why not run on old versions too? 24570 sed '$q' "$ltmain" >> "$cfgfile" \ 24571 || (rm -f "$cfgfile"; exit 1) 24572 24573 mv -f "$cfgfile" "$ofile" || 24574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24575 chmod +x "$ofile" 24576 24577 ;; 24578 24579 esac 24580done # for ac_tag 24581 24582 24583as_fn_exit 0 24584_ACEOF 24585ac_clean_files=$ac_clean_files_save 24586 24587test $ac_write_fail = 0 || 24588 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24589 24590 24591# configure is writing to config.log, and then calls config.status. 24592# config.status does its own redirection, appending to config.log. 24593# Unfortunately, on DOS this fails, as config.log is still kept open 24594# by configure, so config.status won't be able to write to it; its 24595# output is simply discarded. So we exec the FD to /dev/null, 24596# effectively closing config.log, so it can be properly (re)opened and 24597# appended to by config.status. When coming back to configure, we 24598# need to make the FD available again. 24599if test "$no_create" != yes; then 24600 ac_cs_success=: 24601 ac_config_status_args= 24602 test "$silent" = yes && 24603 ac_config_status_args="$ac_config_status_args --quiet" 24604 exec 5>/dev/null 24605 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24606 exec 5>>config.log 24607 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24608 # would make configure fail if this is the last instruction. 24609 $ac_cs_success || as_fn_exit 1 24610fi 24611if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24613$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24614fi 24615 24616 24617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DONE: Configuration done. Run make/gmake to build libntech." >&5 24618$as_echo "DONE: Configuration done. Run make/gmake to build libntech." >&6; } 24619