1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for syslog-ng 3.35.1. 4# 5# 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7# Inc. 8# 9# 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## -------------------- ## 13## M4sh Initialization. ## 14## -------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18as_nop=: 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else $as_nop 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37 38# Reset variables that may have inherited troublesome values from 39# the environment. 40 41# IFS needs to be set, to space, tab, and newline, in precisely that order. 42# (If _AS_PATH_WALK were called with IFS unset, it would have the 43# side effect of setting IFS to empty, thus disabling word splitting.) 44# Quoting is to prevent editors from complaining about space-tab. 45as_nl=' 46' 47export as_nl 48IFS=" "" $as_nl" 49 50PS1='$ ' 51PS2='> ' 52PS4='+ ' 53 54# Ensure predictable behavior from utilities with locale-dependent output. 55LC_ALL=C 56export LC_ALL 57LANGUAGE=C 58export LANGUAGE 59 60# We cannot yet rely on "unset" to work, but we need these variables 61# to be unset--not just set to an empty or harmless value--now, to 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63# also avoids known problems related to "unset" and subshell syntax 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68done 69 70# Ensure that fds 0, 1, and 2 are open. 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75# The user is always right. 76if ${PATH_SEPARATOR+false} :; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# Find who we are. Look in the path if we contain no directory separator. 86as_myself= 87case $0 in #(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90for as_dir in $PATH 91do 92 IFS=$as_save_IFS 93 case $as_dir in #((( 94 '') as_dir=./ ;; 95 */) ;; 96 *) as_dir=$as_dir/ ;; 97 esac 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114 115# Use a proper internal environment variable to ensure we don't fall 116 # into an infinite loop, continuously re-executing ourselves. 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118 _as_can_reexec=no; export _as_can_reexec; 119 # We cannot yet assume a decent shell, so we have to provide a 120# neutralization value for shells without unset; and this also 121# works around shells that cannot unset nonexistent variables. 122# Preserve -v and -x to the replacement shell. 123BASH_ENV=/dev/null 124ENV=/dev/null 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126case $- in # (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131esac 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133# Admittedly, this is quite paranoid, since all the known shells bail 134# out after a failed `exec'. 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143then : 144 emulate sh 145 NULLCMD=: 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147 # is contrary to our usage. Disable this feature. 148 alias -g '\${1+\"\$@\"}'='\"\$@\"' 149 setopt NO_GLOB_SUBST 150else \$as_nop 151 case \`(set -o) 2>/dev/null\` in #( 152 *posix*) : 153 set -o posix ;; #( 154 *) : 155 ;; 156esac 157fi 158" 159 as_required="as_fn_return () { (exit \$1); } 160as_fn_success () { as_fn_return 0; } 161as_fn_failure () { as_fn_return 1; } 162as_fn_ret_success () { return 0; } 163as_fn_ret_failure () { return 1; } 164 165exitcode=0 166as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171then : 172 173else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175fi 176test x\$exitcode = x0 || exit 1 177blah=\$(echo \$(echo blah)) 178test x\"\$blah\" = xblah || exit 1 179test -x / || exit 1" 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184 185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 189 PATH=/empty FPATH=/empty; export PATH FPATH 190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 192test \$(( 1 + 1 )) = 2 || exit 1" 193 if (eval "$as_required") 2>/dev/null 194then : 195 as_have_required=yes 196else $as_nop 197 as_have_required=no 198fi 199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 200then : 201 202else $as_nop 203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 204as_found=false 205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 206do 207 IFS=$as_save_IFS 208 case $as_dir in #((( 209 '') as_dir=./ ;; 210 */) ;; 211 *) as_dir=$as_dir/ ;; 212 esac 213 as_found=: 214 case $as_dir in #( 215 /*) 216 for as_base in sh bash ksh sh5; do 217 # Try only shells that exist, to save several forks. 218 as_shell=$as_dir$as_base 219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 221then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 224then : 225 break 2 226fi 227fi 228 done;; 229 esac 230 as_found=false 231done 232IFS=$as_save_IFS 233if $as_found 234then : 235 236else $as_nop 237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 239then : 240 CONFIG_SHELL=$SHELL as_have_required=yes 241fi 242fi 243 244 245 if test "x$CONFIG_SHELL" != x 246then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno 269then : 270 printf "%s\n" "$0: This script requires a shell more modern than all" 271 printf "%s\n" "$0: the shells that I found on your system." 272 if test ${ZSH_VERSION+y} ; then 273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 275 else 276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, 277$0: including any error possibly output before this 278$0: message. Then install a modern shell, or manually run 279$0: the script under such a shell if you do have one." 280 fi 281 exit 1 282fi 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321# as_fn_nop 322# --------- 323# Do nothing but, unlike ":", preserve the value of $?. 324as_fn_nop () 325{ 326 return $? 327} 328as_nop=as_fn_nop 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else $as_nop 398 as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } 402fi # as_fn_append 403 404# as_fn_arith ARG... 405# ------------------ 406# Perform arithmetic evaluation on the ARGs, and store the result in the 407# global $as_val. Take advantage of shells that can avoid forks. The arguments 408# must be portable across $(()) and expr. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else $as_nop 416 as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } 420fi # as_fn_arith 421 422# as_fn_nop 423# --------- 424# Do nothing but, unlike ":", preserve the value of $?. 425as_fn_nop () 426{ 427 return $? 428} 429as_nop=as_fn_nop 430 431# as_fn_error STATUS ERROR [LINENO LOG_FD] 432# ---------------------------------------- 433# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 434# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 435# script with STATUS, using 1 if that was 0. 436as_fn_error () 437{ 438 as_status=$1; test $as_status -eq 0 && as_status=1 439 if test "$4"; then 440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 442 fi 443 printf "%s\n" "$as_me: error: $2" >&2 444 as_fn_exit $as_status 445} # as_fn_error 446 447if expr a : '\(a\)' >/dev/null 2>&1 && 448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 449 as_expr=expr 450else 451 as_expr=false 452fi 453 454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 455 as_basename=basename 456else 457 as_basename=false 458fi 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466as_me=`$as_basename -- "$0" || 467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 468 X"$0" : 'X\(//\)$' \| \ 469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 470printf "%s\n" X/"$0" | 471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\/\)$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\).*/{ 480 s//\1/ 481 q 482 } 483 s/.*/./; q'` 484 485# Avoid depending upon Character Ranges. 486as_cr_letters='abcdefghijklmnopqrstuvwxyz' 487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 488as_cr_Letters=$as_cr_letters$as_cr_LETTERS 489as_cr_digits='0123456789' 490as_cr_alnum=$as_cr_Letters$as_cr_digits 491 492 493 as_lineno_1=$LINENO as_lineno_1a=$LINENO 494 as_lineno_2=$LINENO as_lineno_2a=$LINENO 495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 498 sed -n ' 499 p 500 /[$]LINENO/= 501 ' <$as_myself | 502 sed ' 503 s/[$]LINENO.*/&-/ 504 t lineno 505 b 506 :lineno 507 N 508 :loop 509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 510 t loop 511 s/-\n.*// 512 ' >$as_me.lineno && 513 chmod +x "$as_me.lineno" || 514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 515 516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 517 # already done that, so ensure we don't try to do so again and fall 518 # in an infinite loop. This has already happened in practice. 519 _as_can_reexec=no; export _as_can_reexec 520 # Don't try to exec as it changes $[0], causing all sort of problems 521 # (the dirname of $[0] is not the place where we might find the 522 # original and so on. Autoconf is especially sensitive to this). 523 . "./$as_me.lineno" 524 # Exit status is that of the last command. 525 exit 526} 527 528 529# Determine whether it's possible to make 'echo' print without a newline. 530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 531# for compatibility with existing Makefiles. 532ECHO_C= ECHO_N= ECHO_T= 533case `echo -n x` in #((((( 534-n*) 535 case `echo 'xy\c'` in 536 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 537 xy) ECHO_C='\c';; 538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 539 ECHO_T=' ';; 540 esac;; 541*) 542 ECHO_N='-n';; 543esac 544 545# For backward compatibility with old third-party macros, we provide 546# the shell variables $as_echo and $as_echo_n. New code should use 547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 548as_echo='printf %s\n' 549as_echo_n='printf %s' 550 551 552rm -f conf$$ conf$$.exe conf$$.file 553if test -d conf$$.dir; then 554 rm -f conf$$.dir/conf$$.file 555else 556 rm -f conf$$.dir 557 mkdir conf$$.dir 2>/dev/null 558fi 559if (echo >conf$$.file) 2>/dev/null; then 560 if ln -s conf$$.file conf$$ 2>/dev/null; then 561 as_ln_s='ln -s' 562 # ... but there are two gotchas: 563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 565 # In both cases, we have to default to `cp -pR'. 566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 567 as_ln_s='cp -pR' 568 elif ln conf$$.file conf$$ 2>/dev/null; then 569 as_ln_s=ln 570 else 571 as_ln_s='cp -pR' 572 fi 573else 574 as_ln_s='cp -pR' 575fi 576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 577rmdir conf$$.dir 2>/dev/null 578 579if mkdir -p . 2>/dev/null; then 580 as_mkdir_p='mkdir -p "$as_dir"' 581else 582 test -d ./-p && rmdir ./-p 583 as_mkdir_p=false 584fi 585 586as_test_x='test -x' 587as_executable_p=as_fn_executable_p 588 589# Sed expression to map a string onto a valid CPP name. 590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 591 592# Sed expression to map a string onto a valid variable name. 593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 594 595SHELL=${CONFIG_SHELL-/bin/sh} 596 597 598test -n "$DJDIR" || exec 7<&0 </dev/null 599exec 6>&1 600 601# Name of the host. 602# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 603# so uname gets run too. 604ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 605 606# 607# Initializations. 608# 609ac_default_prefix=/usr/local 610ac_clean_files= 611ac_config_libobj_dir=. 612LIBOBJS= 613cross_compiling=no 614subdirs= 615MFLAGS= 616MAKEFLAGS= 617 618# Identity of this package. 619PACKAGE_NAME='syslog-ng' 620PACKAGE_TARNAME='syslog-ng' 621PACKAGE_VERSION='3.35.1' 622PACKAGE_STRING='syslog-ng 3.35.1' 623PACKAGE_BUGREPORT='' 624PACKAGE_URL='' 625 626ac_unique_file="syslog-ng/main.c" 627# Factoring default headers for most tests. 628ac_includes_default="\ 629#include <stddef.h> 630#ifdef HAVE_STDIO_H 631# include <stdio.h> 632#endif 633#ifdef HAVE_STDLIB_H 634# include <stdlib.h> 635#endif 636#ifdef HAVE_STRING_H 637# include <string.h> 638#endif 639#ifdef HAVE_INTTYPES_H 640# include <inttypes.h> 641#endif 642#ifdef HAVE_STDINT_H 643# include <stdint.h> 644#endif 645#ifdef HAVE_STRINGS_H 646# include <strings.h> 647#endif 648#ifdef HAVE_SYS_TYPES_H 649# include <sys/types.h> 650#endif 651#ifdef HAVE_SYS_STAT_H 652# include <sys/stat.h> 653#endif 654#ifdef HAVE_UNISTD_H 655# include <unistd.h> 656#endif" 657 658ac_header_c_list= 659enable_option_checking=no 660ac_subst_vars='am__EXEEXT_FALSE 661am__EXEEXT_TRUE 662LTLIBOBJS 663LIBOBJS 664VALGRIND_CHECK_RULES 665VALGRIND_HAVE_TOOL_exp_sgcheck 666VALGRIND_HAVE_TOOL_drd 667VALGRIND_HAVE_TOOL_helgrind 668VALGRIND_HAVE_TOOL_memcheck 669VALGRIND_ENABLED 670VALGRIND_ENABLED_FALSE 671VALGRIND_ENABLED_TRUE 672VALGRIND 673XSL_STYLESHEET 674INTERNAL_IVYKIS_CFLAGS 675with_ivykis 676SOURCE_REVISION 677SNAPSHOT_VERSION 678RELEASE_TAG 679CURRDATE 680RESOLV_LIBS 681IVYKIS_SUBDIRS 682JSON_DEPENDENCY 683JSON_SUBDIRS 684LIBRABBITMQ_SUBDIRS 685LIBCURL_LIBS 686LIBCURL_CFLAGS 687LIBPAHO_MQTT_LIBS 688LIBPAHO_MQTT_CFLAGS 689LIBMONGO_SUBDIRS 690ZLIB_CFLAGS 691ZLIB_LIBS 692LIBWRAP_CFLAGS 693LIBWRAP_LIBS 694NETSNMP_LIBS 695NETSNMP_CFLAGS 696LIBNET_CFLAGS 697LIBNET_LIBS 698BASE_LIBS 699MODULE_LDFLAGS 700MODULE_DEPS_LIBS 701CORE_DEPS_LIBS 702TOOL_DEPS_LIBS 703SYSLOGNG_DEPS_LIBS 704SYSLOGNG_LINK 705systemdsystemunitdir 706xsddir 707abs_topsrcdir 708scldir 709config_includedir 710toolsdir 711loggenplugindir 712python_moduledir 713moduledir 714pidfiledir 715timezonedir 716PYLINT_FALSE 717PYLINT_TRUE 718ENABLE_IPV6_FALSE 719ENABLE_IPV6_TRUE 720HAVE_FMEMOPEN_FALSE 721HAVE_FMEMOPEN_TRUE 722HAVE_GETRANDOM_FALSE 723HAVE_GETRANDOM_TRUE 724HAVE_INOTIFY_FALSE 725HAVE_INOTIFY_TRUE 726ENABLE_DEBUG_FALSE 727ENABLE_DEBUG_TRUE 728ENABLE_SANITIZER_FALSE 729ENABLE_SANITIZER_TRUE 730ENABLE_TESTING_FALSE 731ENABLE_TESTING_TRUE 732ENABLE_EXTRA_WARNINGS_FALSE 733ENABLE_EXTRA_WARNINGS_TRUE 734ENABLE_NATIVE_FALSE 735ENABLE_NATIVE_TRUE 736ENABLE_MANPAGES_INSTALL_FALSE 737ENABLE_MANPAGES_INSTALL_TRUE 738ENABLE_MANPAGES_FALSE 739ENABLE_MANPAGES_TRUE 740ENABLE_AFSNMP_FALSE 741ENABLE_AFSNMP_TRUE 742ENABLE_JAVA_MODULES_FALSE 743ENABLE_JAVA_MODULES_TRUE 744ENABLE_JAVA_FALSE 745ENABLE_JAVA_TRUE 746ENABLE_PYTHON_FALSE 747ENABLE_PYTHON_TRUE 748ENABLE_JOURNALD_FALSE 749ENABLE_JOURNALD_TRUE 750ENABLE_RIEMANN_FALSE 751ENABLE_RIEMANN_TRUE 752LIBRABBITMQ_INTERNAL_FALSE 753LIBRABBITMQ_INTERNAL_TRUE 754LIBMONGO_INTERNAL_FALSE 755LIBMONGO_INTERNAL_TRUE 756JSON_INTERNAL_FALSE 757JSON_INTERNAL_TRUE 758IVYKIS_INTERNAL_FALSE 759IVYKIS_INTERNAL_TRUE 760ENABLE_KAFKA_FALSE 761ENABLE_KAFKA_TRUE 762ENABLE_REDIS_FALSE 763ENABLE_REDIS_TRUE 764ENABLE_GEOIP2_FALSE 765ENABLE_GEOIP2_TRUE 766ENABLE_JSON_FALSE 767ENABLE_JSON_TRUE 768ENABLE_STOMP_FALSE 769ENABLE_STOMP_TRUE 770ENABLE_AMQP_FALSE 771ENABLE_AMQP_TRUE 772ENABLE_HTTP_FALSE 773ENABLE_HTTP_TRUE 774ENABLE_MQTT_FALSE 775ENABLE_MQTT_TRUE 776ENABLE_SMTP_FALSE 777ENABLE_SMTP_TRUE 778ENABLE_MONGODB_FALSE 779ENABLE_MONGODB_TRUE 780ENABLE_PACCT_FALSE 781ENABLE_PACCT_TRUE 782ENABLE_OPENBSD_SYSTEM_SOURCE_FALSE 783ENABLE_OPENBSD_SYSTEM_SOURCE_TRUE 784ENABLE_SUN_STREAMS_FALSE 785ENABLE_SUN_STREAMS_TRUE 786ENABLE_SQL_FALSE 787ENABLE_SQL_TRUE 788ENABLE_SYSTEMD_UNIT_INSTALL_FALSE 789ENABLE_SYSTEMD_UNIT_INSTALL_TRUE 790ENABLE_SYSTEMD_FALSE 791ENABLE_SYSTEMD_TRUE 792ENABLE_ENV_WRAPPER_FALSE 793ENABLE_ENV_WRAPPER_TRUE 794LIBSYSTEMD_JOURNAL_LIBS 795LIBSYSTEMD_JOURNAL_CFLAGS 796libsystemd_daemon_LIBS 797libsystemd_daemon_CFLAGS 798LIBCAP_LIBS 799LIBCAP_CFLAGS 800GRADLE 801JAR 802JAVAH 803JAVAC 804JNI_LIBS 805JNI_CFLAGS 806PYLINT 807PYTHON_LIBS 808PYTHON_CFLAGS 809libsystemd_namespaces_LIBS 810libsystemd_namespaces_CFLAGS 811libsystemd_LIBS 812libsystemd_CFLAGS 813RIEMANN_CLIENT_LIBS 814RIEMANN_CLIENT_CFLAGS 815LIBRDKAFKA_LIBS 816LIBRDKAFKA_CFLAGS 817LIBRABBITMQ_LIBS 818LIBRABBITMQ_CFLAGS 819HIREDIS_LIBS 820HIREDIS_CFLAGS 821LIBESMTP_LIBS 822LIBESMTP_CFLAGS 823LIBMONGO_LIBS 824LIBMONGO_CFLAGS 825JSON_LIBS 826JSON_CFLAGS 827IVYKIS_VERSION_CHECK_LIBS 828IVYKIS_VERSION_CHECK_CFLAGS 829IVYKIS_LIBS 830IVYKIS_CFLAGS 831subdirs 832CRITERION_LIBS 833CRITERION_CFLAGS 834OPENSSL_LIBS 835OPENSSL_CFLAGS 836PCRE_LIBS 837PCRE_CFLAGS 838MAXMINDDB_LIBS 839GLIB_LIBS 840GLIB_CFLAGS 841LIBDBI_LIBS 842LIBDBI_CFLAGS 843CPP 844NO_PIE_LDFLAG 845HAVE_PYTHON_INTERPRETER_FALSE 846HAVE_PYTHON_INTERPRETER_TRUE 847pkgpyexecdir 848pyexecdir 849pkgpythondir 850pythondir 851PYTHON_EXEC_PREFIX 852PYTHON_PREFIX 853PYTHON_PLATFORM 854PYTHON_VERSION 855PYTHON 856LT_SYS_LIBRARY_PATH 857OTOOL64 858OTOOL 859LIPO 860NMEDIT 861DSYMUTIL 862MANIFEST_TOOL 863RANLIB 864ac_ct_AR 865AR 866DLLTOOL 867OBJDUMP 868LN_S 869NM 870ac_ct_DUMPBIN 871DUMPBIN 872LD 873FGREP 874EGREP 875GREP 876SED 877host_os 878host_vendor 879host_cpu 880host 881build_os 882build_vendor 883build_cpu 884build 885LIBTOOL 886PKG_CONFIG_LIBDIR 887PKG_CONFIG_PATH 888PKG_CONFIG 889LEXLIB 890LEX_OUTPUT_ROOT 891LEX 892YFLAGS 893YACC 894am__fastdepCC_FALSE 895am__fastdepCC_TRUE 896CCDEPMODE 897am__nodep 898AMDEPBACKSLASH 899AMDEP_FALSE 900AMDEP_TRUE 901am__include 902DEPDIR 903OBJEXT 904EXEEXT 905ac_ct_CC 906CPPFLAGS 907LDFLAGS 908CFLAGS 909CC 910TECHNICAL_VERSION 911COMBINED_VERSION 912BROCHURE_VERSION 913RELEASE_TYPE 914CSCOPE 915ETAGS 916CTAGS 917am__untar 918am__tar 919AMTAR 920am__leading_dot 921SET_MAKE 922AWK 923mkdir_p 924MKDIR_P 925INSTALL_STRIP_PROGRAM 926STRIP 927install_sh 928MAKEINFO 929AUTOHEADER 930AUTOMAKE 931AUTOCONF 932ACLOCAL 933VERSION 934PACKAGE 935CYGPATH_W 936am__isrc 937INSTALL_DATA 938INSTALL_SCRIPT 939INSTALL_PROGRAM 940AM_BACKSLASH 941AM_DEFAULT_VERBOSITY 942AM_DEFAULT_V 943AM_V 944target_alias 945host_alias 946build_alias 947LIBS 948ECHO_T 949ECHO_N 950ECHO_C 951DEFS 952mandir 953localedir 954libdir 955psdir 956pdfdir 957dvidir 958htmldir 959infodir 960docdir 961oldincludedir 962includedir 963runstatedir 964localstatedir 965sharedstatedir 966sysconfdir 967datadir 968datarootdir 969libexecdir 970sbindir 971bindir 972program_transform_name 973prefix 974exec_prefix 975PACKAGE_URL 976PACKAGE_BUGREPORT 977PACKAGE_STRING 978PACKAGE_VERSION 979PACKAGE_TARNAME 980PACKAGE_NAME 981PATH_SEPARATOR 982SHELL 983am__quote' 984ac_subst_files='' 985ac_user_opts=' 986enable_option_checking 987enable_silent_rules 988with_libnet 989with_net_snmp 990with_pidfile_dir 991with_module_dir 992with_loggen_plugin_dir 993with_module_path 994with_timezone_dir 995with_ld_library_path 996with_systemdsystemunitdir 997with_package_name 998enable_forced_server_mode 999enable_debug 1000enable_force_gnu99 1001enable_extra_warnings 1002enable_env_wrapper 1003enable_gprof 1004enable_memtrace 1005with_sanitizer 1006enable_dynamic_linking 1007enable_mixed_linking 1008enable_ipv6 1009enable_tcp_wrapper 1010enable_spoof_source 1011enable_sun_streams 1012enable_openbsd_system_source 1013enable_sql 1014enable_pacct 1015enable_linux_caps 1016enable_gcov 1017enable_mongodb 1018with_jsonc 1019enable_json 1020enable_amqp 1021enable_stomp 1022with_ivykis 1023enable_smtp 1024with_libesmtp 1025enable_mqtt 1026with_libpaho_mqtt 1027enable_http 1028with_libcurl 1029enable_redis 1030with_libhiredis 1031enable_systemd 1032enable_geoip2 1033enable_riemann 1034with_compile_date 1035with_systemd_journal 1036enable_python 1037enable_kafka 1038with_python 1039with_python3_home 1040with_python2_home 1041with_pylint 1042with_docbook 1043enable_manpages 1044enable_manpages_install 1045enable_java 1046enable_java_modules 1047enable_native 1048enable_afsnmp 1049enable_all_modules 1050enable_dependency_tracking 1051enable_static 1052enable_shared 1053with_pic 1054enable_fast_install 1055with_aix_soname 1056with_gnu_ld 1057with_sysroot 1058enable_libtool_lock 1059with_python_sys_prefix 1060with_python_prefix 1061with_python_exec_prefix 1062enable_largefile 1063enable_valgrind 1064' 1065 ac_precious_vars='build_alias 1066host_alias 1067target_alias 1068CC 1069CFLAGS 1070LDFLAGS 1071LIBS 1072CPPFLAGS 1073YACC 1074YFLAGS 1075PKG_CONFIG 1076PKG_CONFIG_PATH 1077PKG_CONFIG_LIBDIR 1078LT_SYS_LIBRARY_PATH 1079PYTHON 1080CPP 1081LIBDBI_CFLAGS 1082LIBDBI_LIBS 1083GLIB_CFLAGS 1084GLIB_LIBS 1085PCRE_CFLAGS 1086PCRE_LIBS 1087OPENSSL_CFLAGS 1088OPENSSL_LIBS 1089CRITERION_CFLAGS 1090CRITERION_LIBS 1091IVYKIS_CFLAGS 1092IVYKIS_LIBS 1093IVYKIS_VERSION_CHECK_CFLAGS 1094IVYKIS_VERSION_CHECK_LIBS 1095JSON_CFLAGS 1096JSON_LIBS 1097LIBMONGO_CFLAGS 1098LIBMONGO_LIBS 1099LIBESMTP_CFLAGS 1100LIBESMTP_LIBS 1101HIREDIS_CFLAGS 1102HIREDIS_LIBS 1103LIBRABBITMQ_CFLAGS 1104LIBRABBITMQ_LIBS 1105LIBRDKAFKA_CFLAGS 1106LIBRDKAFKA_LIBS 1107RIEMANN_CLIENT_CFLAGS 1108RIEMANN_CLIENT_LIBS 1109libsystemd_CFLAGS 1110libsystemd_LIBS 1111libsystemd_namespaces_CFLAGS 1112libsystemd_namespaces_LIBS 1113PYTHON_CFLAGS 1114PYTHON_LIBS 1115LIBCAP_CFLAGS 1116LIBCAP_LIBS 1117libsystemd_daemon_CFLAGS 1118libsystemd_daemon_LIBS 1119LIBSYSTEMD_JOURNAL_CFLAGS 1120LIBSYSTEMD_JOURNAL_LIBS' 1121ac_subdirs_all='lib/ivykis 1122lib/jsonc' 1123 1124# Initialize some variables set by options. 1125ac_init_help= 1126ac_init_version=false 1127ac_unrecognized_opts= 1128ac_unrecognized_sep= 1129# The variables have the same names as the options, with 1130# dashes changed to underlines. 1131cache_file=/dev/null 1132exec_prefix=NONE 1133no_create= 1134no_recursion= 1135prefix=NONE 1136program_prefix=NONE 1137program_suffix=NONE 1138program_transform_name=s,x,x, 1139silent= 1140site= 1141srcdir= 1142verbose= 1143x_includes=NONE 1144x_libraries=NONE 1145 1146# Installation directory options. 1147# These are left unexpanded so users can "make install exec_prefix=/foo" 1148# and all the variables that are supposed to be based on exec_prefix 1149# by default will actually change. 1150# Use braces instead of parens because sh, perl, etc. also accept them. 1151# (The list follows the same order as the GNU Coding Standards.) 1152bindir='${exec_prefix}/bin' 1153sbindir='${exec_prefix}/sbin' 1154libexecdir='${exec_prefix}/libexec' 1155datarootdir='${prefix}/share' 1156datadir='${datarootdir}' 1157sysconfdir='${prefix}/etc' 1158sharedstatedir='${prefix}/com' 1159localstatedir='${prefix}/var' 1160runstatedir='${localstatedir}/run' 1161includedir='${prefix}/include' 1162oldincludedir='/usr/include' 1163docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1164infodir='${datarootdir}/info' 1165htmldir='${docdir}' 1166dvidir='${docdir}' 1167pdfdir='${docdir}' 1168psdir='${docdir}' 1169libdir='${exec_prefix}/lib' 1170localedir='${datarootdir}/locale' 1171mandir='${datarootdir}/man' 1172 1173ac_prev= 1174ac_dashdash= 1175for ac_option 1176do 1177 # If the previous option needs an argument, assign it. 1178 if test -n "$ac_prev"; then 1179 eval $ac_prev=\$ac_option 1180 ac_prev= 1181 continue 1182 fi 1183 1184 case $ac_option in 1185 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1186 *=) ac_optarg= ;; 1187 *) ac_optarg=yes ;; 1188 esac 1189 1190 case $ac_dashdash$ac_option in 1191 --) 1192 ac_dashdash=yes ;; 1193 1194 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1195 ac_prev=bindir ;; 1196 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1197 bindir=$ac_optarg ;; 1198 1199 -build | --build | --buil | --bui | --bu) 1200 ac_prev=build_alias ;; 1201 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1202 build_alias=$ac_optarg ;; 1203 1204 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1205 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1206 ac_prev=cache_file ;; 1207 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1208 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1209 cache_file=$ac_optarg ;; 1210 1211 --config-cache | -C) 1212 cache_file=config.cache ;; 1213 1214 -datadir | --datadir | --datadi | --datad) 1215 ac_prev=datadir ;; 1216 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1217 datadir=$ac_optarg ;; 1218 1219 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1220 | --dataroo | --dataro | --datar) 1221 ac_prev=datarootdir ;; 1222 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1223 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1224 datarootdir=$ac_optarg ;; 1225 1226 -disable-* | --disable-*) 1227 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1228 # Reject names that are not valid shell variable names. 1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1230 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1231 ac_useropt_orig=$ac_useropt 1232 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1233 case $ac_user_opts in 1234 *" 1235"enable_$ac_useropt" 1236"*) ;; 1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1238 ac_unrecognized_sep=', ';; 1239 esac 1240 eval enable_$ac_useropt=no ;; 1241 1242 -docdir | --docdir | --docdi | --doc | --do) 1243 ac_prev=docdir ;; 1244 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1245 docdir=$ac_optarg ;; 1246 1247 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1248 ac_prev=dvidir ;; 1249 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1250 dvidir=$ac_optarg ;; 1251 1252 -enable-* | --enable-*) 1253 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1256 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1257 ac_useropt_orig=$ac_useropt 1258 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1259 case $ac_user_opts in 1260 *" 1261"enable_$ac_useropt" 1262"*) ;; 1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1264 ac_unrecognized_sep=', ';; 1265 esac 1266 eval enable_$ac_useropt=\$ac_optarg ;; 1267 1268 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1269 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1270 | --exec | --exe | --ex) 1271 ac_prev=exec_prefix ;; 1272 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1273 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1274 | --exec=* | --exe=* | --ex=*) 1275 exec_prefix=$ac_optarg ;; 1276 1277 -gas | --gas | --ga | --g) 1278 # Obsolete; use --with-gas. 1279 with_gas=yes ;; 1280 1281 -help | --help | --hel | --he | -h) 1282 ac_init_help=long ;; 1283 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1284 ac_init_help=recursive ;; 1285 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1286 ac_init_help=short ;; 1287 1288 -host | --host | --hos | --ho) 1289 ac_prev=host_alias ;; 1290 -host=* | --host=* | --hos=* | --ho=*) 1291 host_alias=$ac_optarg ;; 1292 1293 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1294 ac_prev=htmldir ;; 1295 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1296 | --ht=*) 1297 htmldir=$ac_optarg ;; 1298 1299 -includedir | --includedir | --includedi | --included | --include \ 1300 | --includ | --inclu | --incl | --inc) 1301 ac_prev=includedir ;; 1302 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1303 | --includ=* | --inclu=* | --incl=* | --inc=*) 1304 includedir=$ac_optarg ;; 1305 1306 -infodir | --infodir | --infodi | --infod | --info | --inf) 1307 ac_prev=infodir ;; 1308 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1309 infodir=$ac_optarg ;; 1310 1311 -libdir | --libdir | --libdi | --libd) 1312 ac_prev=libdir ;; 1313 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1314 libdir=$ac_optarg ;; 1315 1316 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1317 | --libexe | --libex | --libe) 1318 ac_prev=libexecdir ;; 1319 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1320 | --libexe=* | --libex=* | --libe=*) 1321 libexecdir=$ac_optarg ;; 1322 1323 -localedir | --localedir | --localedi | --localed | --locale) 1324 ac_prev=localedir ;; 1325 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1326 localedir=$ac_optarg ;; 1327 1328 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1329 | --localstate | --localstat | --localsta | --localst | --locals) 1330 ac_prev=localstatedir ;; 1331 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1332 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1333 localstatedir=$ac_optarg ;; 1334 1335 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1336 ac_prev=mandir ;; 1337 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1338 mandir=$ac_optarg ;; 1339 1340 -nfp | --nfp | --nf) 1341 # Obsolete; use --without-fp. 1342 with_fp=no ;; 1343 1344 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1345 | --no-cr | --no-c | -n) 1346 no_create=yes ;; 1347 1348 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1349 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1350 no_recursion=yes ;; 1351 1352 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1353 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1354 | --oldin | --oldi | --old | --ol | --o) 1355 ac_prev=oldincludedir ;; 1356 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1357 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1358 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1359 oldincludedir=$ac_optarg ;; 1360 1361 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1362 ac_prev=prefix ;; 1363 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1364 prefix=$ac_optarg ;; 1365 1366 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1367 | --program-pre | --program-pr | --program-p) 1368 ac_prev=program_prefix ;; 1369 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1370 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1371 program_prefix=$ac_optarg ;; 1372 1373 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1374 | --program-suf | --program-su | --program-s) 1375 ac_prev=program_suffix ;; 1376 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1377 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1378 program_suffix=$ac_optarg ;; 1379 1380 -program-transform-name | --program-transform-name \ 1381 | --program-transform-nam | --program-transform-na \ 1382 | --program-transform-n | --program-transform- \ 1383 | --program-transform | --program-transfor \ 1384 | --program-transfo | --program-transf \ 1385 | --program-trans | --program-tran \ 1386 | --progr-tra | --program-tr | --program-t) 1387 ac_prev=program_transform_name ;; 1388 -program-transform-name=* | --program-transform-name=* \ 1389 | --program-transform-nam=* | --program-transform-na=* \ 1390 | --program-transform-n=* | --program-transform-=* \ 1391 | --program-transform=* | --program-transfor=* \ 1392 | --program-transfo=* | --program-transf=* \ 1393 | --program-trans=* | --program-tran=* \ 1394 | --progr-tra=* | --program-tr=* | --program-t=*) 1395 program_transform_name=$ac_optarg ;; 1396 1397 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1398 ac_prev=pdfdir ;; 1399 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1400 pdfdir=$ac_optarg ;; 1401 1402 -psdir | --psdir | --psdi | --psd | --ps) 1403 ac_prev=psdir ;; 1404 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1405 psdir=$ac_optarg ;; 1406 1407 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1408 | -silent | --silent | --silen | --sile | --sil) 1409 silent=yes ;; 1410 1411 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1412 | --runstate | --runstat | --runsta | --runst | --runs \ 1413 | --run | --ru | --r) 1414 ac_prev=runstatedir ;; 1415 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1416 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1417 | --run=* | --ru=* | --r=*) 1418 runstatedir=$ac_optarg ;; 1419 1420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1421 ac_prev=sbindir ;; 1422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1423 | --sbi=* | --sb=*) 1424 sbindir=$ac_optarg ;; 1425 1426 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1428 | --sharedst | --shareds | --shared | --share | --shar \ 1429 | --sha | --sh) 1430 ac_prev=sharedstatedir ;; 1431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1434 | --sha=* | --sh=*) 1435 sharedstatedir=$ac_optarg ;; 1436 1437 -site | --site | --sit) 1438 ac_prev=site ;; 1439 -site=* | --site=* | --sit=*) 1440 site=$ac_optarg ;; 1441 1442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1443 ac_prev=srcdir ;; 1444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1445 srcdir=$ac_optarg ;; 1446 1447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1448 | --syscon | --sysco | --sysc | --sys | --sy) 1449 ac_prev=sysconfdir ;; 1450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1452 sysconfdir=$ac_optarg ;; 1453 1454 -target | --target | --targe | --targ | --tar | --ta | --t) 1455 ac_prev=target_alias ;; 1456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1457 target_alias=$ac_optarg ;; 1458 1459 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1460 verbose=yes ;; 1461 1462 -version | --version | --versio | --versi | --vers | -V) 1463 ac_init_version=: ;; 1464 1465 -with-* | --with-*) 1466 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1467 # Reject names that are not valid shell variable names. 1468 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1469 as_fn_error $? "invalid package name: \`$ac_useropt'" 1470 ac_useropt_orig=$ac_useropt 1471 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1472 case $ac_user_opts in 1473 *" 1474"with_$ac_useropt" 1475"*) ;; 1476 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1477 ac_unrecognized_sep=', ';; 1478 esac 1479 eval with_$ac_useropt=\$ac_optarg ;; 1480 1481 -without-* | --without-*) 1482 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1483 # Reject names that are not valid shell variable names. 1484 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1485 as_fn_error $? "invalid package name: \`$ac_useropt'" 1486 ac_useropt_orig=$ac_useropt 1487 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1488 case $ac_user_opts in 1489 *" 1490"with_$ac_useropt" 1491"*) ;; 1492 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1493 ac_unrecognized_sep=', ';; 1494 esac 1495 eval with_$ac_useropt=no ;; 1496 1497 --x) 1498 # Obsolete; use --with-x. 1499 with_x=yes ;; 1500 1501 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1502 | --x-incl | --x-inc | --x-in | --x-i) 1503 ac_prev=x_includes ;; 1504 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1505 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1506 x_includes=$ac_optarg ;; 1507 1508 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1509 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1510 ac_prev=x_libraries ;; 1511 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1512 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1513 x_libraries=$ac_optarg ;; 1514 1515 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1516Try \`$0 --help' for more information" 1517 ;; 1518 1519 *=*) 1520 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1521 # Reject names that are not valid shell variable names. 1522 case $ac_envvar in #( 1523 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1524 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1525 esac 1526 eval $ac_envvar=\$ac_optarg 1527 export $ac_envvar ;; 1528 1529 *) 1530 # FIXME: should be removed in autoconf 3.0. 1531 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1532 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1533 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1534 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1535 ;; 1536 1537 esac 1538done 1539 1540if test -n "$ac_prev"; then 1541 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1542 as_fn_error $? "missing argument to $ac_option" 1543fi 1544 1545if test -n "$ac_unrecognized_opts"; then 1546 case $enable_option_checking in 1547 no) ;; 1548 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1549 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1550 esac 1551fi 1552 1553# Check all directory arguments for consistency. 1554for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1555 datadir sysconfdir sharedstatedir localstatedir includedir \ 1556 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1557 libdir localedir mandir runstatedir 1558do 1559 eval ac_val=\$$ac_var 1560 # Remove trailing slashes. 1561 case $ac_val in 1562 */ ) 1563 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1564 eval $ac_var=\$ac_val;; 1565 esac 1566 # Be sure to have absolute directory names. 1567 case $ac_val in 1568 [\\/$]* | ?:[\\/]* ) continue;; 1569 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1570 esac 1571 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1572done 1573 1574# There might be people who depend on the old broken behavior: `$host' 1575# used to hold the argument of --host etc. 1576# FIXME: To remove some day. 1577build=$build_alias 1578host=$host_alias 1579target=$target_alias 1580 1581# FIXME: To remove some day. 1582if test "x$host_alias" != x; then 1583 if test "x$build_alias" = x; then 1584 cross_compiling=maybe 1585 elif test "x$build_alias" != "x$host_alias"; then 1586 cross_compiling=yes 1587 fi 1588fi 1589 1590ac_tool_prefix= 1591test -n "$host_alias" && ac_tool_prefix=$host_alias- 1592 1593test "$silent" = yes && exec 6>/dev/null 1594 1595 1596ac_pwd=`pwd` && test -n "$ac_pwd" && 1597ac_ls_di=`ls -di .` && 1598ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1599 as_fn_error $? "working directory cannot be determined" 1600test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1601 as_fn_error $? "pwd does not report name of working directory" 1602 1603 1604# Find the source files, if location was not specified. 1605if test -z "$srcdir"; then 1606 ac_srcdir_defaulted=yes 1607 # Try the directory containing this script, then the parent directory. 1608 ac_confdir=`$as_dirname -- "$as_myself" || 1609$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1610 X"$as_myself" : 'X\(//\)[^/]' \| \ 1611 X"$as_myself" : 'X\(//\)$' \| \ 1612 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1613printf "%s\n" X"$as_myself" | 1614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1615 s//\1/ 1616 q 1617 } 1618 /^X\(\/\/\)[^/].*/{ 1619 s//\1/ 1620 q 1621 } 1622 /^X\(\/\/\)$/{ 1623 s//\1/ 1624 q 1625 } 1626 /^X\(\/\).*/{ 1627 s//\1/ 1628 q 1629 } 1630 s/.*/./; q'` 1631 srcdir=$ac_confdir 1632 if test ! -r "$srcdir/$ac_unique_file"; then 1633 srcdir=.. 1634 fi 1635else 1636 ac_srcdir_defaulted=no 1637fi 1638if test ! -r "$srcdir/$ac_unique_file"; then 1639 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1640 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1641fi 1642ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1643ac_abs_confdir=`( 1644 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1645 pwd)` 1646# When building in place, set srcdir=. 1647if test "$ac_abs_confdir" = "$ac_pwd"; then 1648 srcdir=. 1649fi 1650# Remove unnecessary trailing slashes from srcdir. 1651# Double slashes in file names in object file debugging info 1652# mess up M-x gdb in Emacs. 1653case $srcdir in 1654*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1655esac 1656for ac_var in $ac_precious_vars; do 1657 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1658 eval ac_env_${ac_var}_value=\$${ac_var} 1659 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1660 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1661done 1662 1663# 1664# Report the --help message. 1665# 1666if test "$ac_init_help" = "long"; then 1667 # Omit some internal or obsolete options to make the list less imposing. 1668 # This message is too long to be a string in the A/UX 3.1 sh. 1669 cat <<_ACEOF 1670\`configure' configures syslog-ng 3.35.1 to adapt to many kinds of systems. 1671 1672Usage: $0 [OPTION]... [VAR=VALUE]... 1673 1674To assign environment variables (e.g., CC, CFLAGS...), specify them as 1675VAR=VALUE. See below for descriptions of some of the useful variables. 1676 1677Defaults for the options are specified in brackets. 1678 1679Configuration: 1680 -h, --help display this help and exit 1681 --help=short display options specific to this package 1682 --help=recursive display the short help of all the included packages 1683 -V, --version display version information and exit 1684 -q, --quiet, --silent do not print \`checking ...' messages 1685 --cache-file=FILE cache test results in FILE [disabled] 1686 -C, --config-cache alias for \`--cache-file=config.cache' 1687 -n, --no-create do not create output files 1688 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1689 1690Installation directories: 1691 --prefix=PREFIX install architecture-independent files in PREFIX 1692 [$ac_default_prefix] 1693 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1694 [PREFIX] 1695 1696By default, \`make install' will install all the files in 1697\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1698an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1699for instance \`--prefix=\$HOME'. 1700 1701For better control, use the options below. 1702 1703Fine tuning of the installation directories: 1704 --bindir=DIR user executables [EPREFIX/bin] 1705 --sbindir=DIR system admin executables [EPREFIX/sbin] 1706 --libexecdir=DIR program executables [EPREFIX/libexec] 1707 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1708 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1709 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1710 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1711 --libdir=DIR object code libraries [EPREFIX/lib] 1712 --includedir=DIR C header files [PREFIX/include] 1713 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1714 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1715 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1716 --infodir=DIR info documentation [DATAROOTDIR/info] 1717 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1718 --mandir=DIR man documentation [DATAROOTDIR/man] 1719 --docdir=DIR documentation root [DATAROOTDIR/doc/syslog-ng] 1720 --htmldir=DIR html documentation [DOCDIR] 1721 --dvidir=DIR dvi documentation [DOCDIR] 1722 --pdfdir=DIR pdf documentation [DOCDIR] 1723 --psdir=DIR ps documentation [DOCDIR] 1724_ACEOF 1725 1726 cat <<\_ACEOF 1727 1728Program names: 1729 --program-prefix=PREFIX prepend PREFIX to installed program names 1730 --program-suffix=SUFFIX append SUFFIX to installed program names 1731 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1732 1733System types: 1734 --build=BUILD configure for building on BUILD [guessed] 1735 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1736_ACEOF 1737fi 1738 1739if test -n "$ac_init_help"; then 1740 case $ac_init_help in 1741 short | recursive ) echo "Configuration of syslog-ng 3.35.1:";; 1742 esac 1743 cat <<\_ACEOF 1744 1745Optional Features: 1746 --disable-option-checking ignore unrecognized --enable/--with options 1747 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1748 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1749 --enable-silent-rules less verbose build output (undo: "make V=1") 1750 --disable-silent-rules verbose build output (undo: "make V=0") 1751 --enable-forced-server-mode Enable forced server mode. 1752 --enable-debug Enable debugging code. 1753 --enable-force-gnu99 Enforce C99 with gnu extensions. 1754 --enable-extra-warnings Enable extra compiler warnings (recommended). 1755 --enable-env-wrapper Enable wrapper program to set up various environment variables 1756 --enable-gprof Enable gcc profiling. 1757 --enable-memtrace Enable alternative leak debugging code. 1758 --enable-dynamic-linking Link everything dynamically. 1759 --enable-mixed-linking Link 3rd party libraries statically, system libraries dynamically 1760 --enable-ipv6 Enable support for IPv6. 1761 --enable-tcp-wrapper Enable support for TCP wrappers. 1762 --enable-spoof-source Enable support for spoofed source addresses. 1763 1764 --enable-sun-streams Enable support for Solaris /dev/log STREAMS device. 1765 1766 --enable-openbsd-system-source Enable support for OpenBSD /dev/klog device. 1767 1768 --enable-sql Enable support for SQL destinations. (default: auto) 1769 1770 --enable-pacct Enable support for reading Process Accounting files (EXPERIMENTAL, Linux only). 1771 1772 --enable-linux-caps Enable support for managing Linux capabilities (default: auto) 1773 1774 --enable-gcov Enable coverage profiling (default: no) 1775 1776 --enable-mongodb Enable mongodb destination (default: auto) 1777 1778 --enable-json=yes/no Enable JSON support (default: yes) 1779 1780 --enable-amqp Enable amqp destination (default: auto) 1781 1782 --enable-stomp Enable stomp destination (default: yes) 1783 1784 --disable-smtp Disable SMTP support (default: auto) 1785 1786 --disable-mqtt Disable MQTT support (default: auto) 1787 1788 --disable-http Disable http support (default: auto) 1789 1790 --disable-redis Disable REDIS support (default: auto) 1791 1792 --enable-systemd Enable systemd support (default: auto) 1793 1794 --enable-geoip2 Enable GeoIP2 support (default: auto) 1795 1796 --disable-riemann Disable riemann destination 1797 1798 --disable-python Disable Python module 1799 1800 --enable-kafka Enable rdkafka support 1801 1802 --enable-manpages Enable generation of manpages (default: no) 1803 --enable-manpages-install 1804 Enable installation of manpages (default: auto) 1805 --enable-java Enable java destination (default: auto) 1806 --enable-java-modules Compile all Java modules (default: auto) 1807 --enable-native Enable native bindings (default: auto) 1808 1809 --enable-afsnmp Enable afsnmp module (default: auto) 1810 --enable-all-modules Forcibly enable all modules. (default: auto) 1811 1812 --enable-dependency-tracking 1813 do not reject slow dependency extractors 1814 --disable-dependency-tracking 1815 speeds up one-time build 1816 --enable-static[=PKGS] build static libraries [default=no] 1817 --enable-shared[=PKGS] build shared libraries [default=yes] 1818 --enable-fast-install[=PKGS] 1819 optimize for fast installation [default=yes] 1820 --disable-libtool-lock avoid locking (might break parallel builds) 1821 --disable-largefile omit support for large files 1822 --enable-valgrind Whether to enable Valgrind on the unit tests 1823 1824Optional Packages: 1825 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1826 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1827 --with-libnet=path use path to libnet-config script 1828 --with-net-snmp=path use path to net-snmp-config script 1829 --with-pidfile-dir=path Use path as the directory for storing pidfiles 1830 --with-module-dir=path Use path as the directory to install modules into 1831 --with-loggen-plugin-dir=path Use path as the directory to install loggen plugins into 1832 --with-module-path=path Use path as the list of ':' separated directories looked up when searching for modules 1833 --with-timezone-dir=path Use path as the directory to get the timezone files 1834 --with-ld-library-path=path Set LD_LIBRARY_PATH during runtime to the value given 1835 --with-systemdsystemunitdir=DIR 1836 Directory for systemd service files 1837 --with-package-name=package name Package name is printed out when syslog-ng started with --version 1838 --with-sanitizer=address/undefined/etc... 1839 Enables compiler sanitizer supports (default: no) 1840 1841 --with-jsonc=system/internal/auto/no 1842 Link against the system supplied or the built-in jsonc library or explicitly disable it. (default:auto) 1843 1844 --with-ivykis=system/internal 1845 Link against the system supplied or the built-in ivykis library. 1846 1847 --with-libesmtp=DIR use libesmtp library from (prefix) directory DIR 1848 --with-libpaho-mqtt=DIR use libpaho-mqtt library from (prefix) directory DIR 1849 --with-libcurl=DIR use libcurl library from (prefix) directory DIR 1850 --with-libhiredis=DIR use libhiredis library from (prefix) directory DIR 1851 --without-compile-date Do not include the compile date in the binary 1852 1853 --with-systemd-journal=system/optional/auto 1854 Link against the system supplied or the wrapper library. (default: auto) 1855 1856 --with-python=VERSION Build with a specific version of python 1857 1858 --with-python3-home=path Use path as a hard-coded Python home directory that can not be overwritten by the PYTHONHOME environment variable 1859 --with-python2-home=path Use path as a hard-coded Python home directory that can not be overwritten by the PYTHONHOME environment variable 1860 --with-pylint=ABSOLUTE_PATH Specify pylint location 1861 --with-docbook=FILE Compiling manpages using docbook in the specified path, if not set, it will be searched on the system, or online version will be used from http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl 1862 1863 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1864 both] 1865 --with-aix-soname=aix|svr4|both 1866 shared library versioning (aka "SONAME") variant to 1867 provide on AIX, [default=aix]. 1868 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1869 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1870 compiler's sysroot if not specified). 1871 --with-python-sys-prefix 1872 use Python's sys.prefix and sys.exec_prefix values 1873 --with-python_prefix override the default PYTHON_PREFIX 1874 --with-python_exec_prefix 1875 override the default PYTHON_EXEC_PREFIX 1876 1877Some influential environment variables: 1878 CC C compiler command 1879 CFLAGS C compiler flags 1880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1881 nonstandard directory <lib dir> 1882 LIBS libraries to pass to the linker, e.g. -l<library> 1883 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1884 you have headers in a nonstandard directory <include dir> 1885 YACC The `Yet Another Compiler Compiler' implementation to use. 1886 Defaults to the first program found out of: `bison -y', `byacc', 1887 `yacc'. 1888 YFLAGS The list of arguments that will be passed by default to $YACC. 1889 This script will default YFLAGS to the empty string to avoid a 1890 default value of `-d' given by some make applications. 1891 PKG_CONFIG path to pkg-config utility 1892 PKG_CONFIG_PATH 1893 directories to add to pkg-config's search path 1894 PKG_CONFIG_LIBDIR 1895 path overriding pkg-config's built-in search path 1896 LT_SYS_LIBRARY_PATH 1897 User-defined run-time library search path. 1898 PYTHON the Python interpreter 1899 CPP C preprocessor 1900 LIBDBI_CFLAGS 1901 C compiler flags for LIBDBI, overriding pkg-config 1902 LIBDBI_LIBS linker flags for LIBDBI, overriding pkg-config 1903 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1904 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1905 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config 1906 PCRE_LIBS linker flags for PCRE, overriding pkg-config 1907 OPENSSL_CFLAGS 1908 C compiler flags for OPENSSL, overriding pkg-config 1909 OPENSSL_LIBS 1910 linker flags for OPENSSL, overriding pkg-config 1911 CRITERION_CFLAGS 1912 C compiler flags for CRITERION, overriding pkg-config 1913 CRITERION_LIBS 1914 linker flags for CRITERION, overriding pkg-config 1915 IVYKIS_CFLAGS 1916 C compiler flags for IVYKIS, overriding pkg-config 1917 IVYKIS_LIBS linker flags for IVYKIS, overriding pkg-config 1918 IVYKIS_VERSION_CHECK_CFLAGS 1919 C compiler flags for IVYKIS_VERSION_CHECK, overriding pkg-config 1920 IVYKIS_VERSION_CHECK_LIBS 1921 linker flags for IVYKIS_VERSION_CHECK, overriding pkg-config 1922 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config 1923 JSON_LIBS linker flags for JSON, overriding pkg-config 1924 LIBMONGO_CFLAGS 1925 C compiler flags for LIBMONGO, overriding pkg-config 1926 LIBMONGO_LIBS 1927 linker flags for LIBMONGO, overriding pkg-config 1928 LIBESMTP_CFLAGS 1929 C compiler flags for LIBESMTP, overriding pkg-config 1930 LIBESMTP_LIBS 1931 linker flags for LIBESMTP, overriding pkg-config 1932 HIREDIS_CFLAGS 1933 C compiler flags for HIREDIS, overriding pkg-config 1934 HIREDIS_LIBS 1935 linker flags for HIREDIS, overriding pkg-config 1936 LIBRABBITMQ_CFLAGS 1937 C compiler flags for LIBRABBITMQ, overriding pkg-config 1938 LIBRABBITMQ_LIBS 1939 linker flags for LIBRABBITMQ, overriding pkg-config 1940 LIBRDKAFKA_CFLAGS 1941 C compiler flags for LIBRDKAFKA, overriding pkg-config 1942 LIBRDKAFKA_LIBS 1943 linker flags for LIBRDKAFKA, overriding pkg-config 1944 RIEMANN_CLIENT_CFLAGS 1945 C compiler flags for RIEMANN_CLIENT, overriding pkg-config 1946 RIEMANN_CLIENT_LIBS 1947 linker flags for RIEMANN_CLIENT, overriding pkg-config 1948 libsystemd_CFLAGS 1949 C compiler flags for libsystemd, overriding pkg-config 1950 libsystemd_LIBS 1951 linker flags for libsystemd, overriding pkg-config 1952 libsystemd_namespaces_CFLAGS 1953 C compiler flags for libsystemd_namespaces, overriding 1954 pkg-config 1955 libsystemd_namespaces_LIBS 1956 linker flags for libsystemd_namespaces, overriding pkg-config 1957 PYTHON_CFLAGS 1958 C compiler flags for PYTHON, overriding pkg-config 1959 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config 1960 LIBCAP_CFLAGS 1961 C compiler flags for LIBCAP, overriding pkg-config 1962 LIBCAP_LIBS linker flags for LIBCAP, overriding pkg-config 1963 libsystemd_daemon_CFLAGS 1964 C compiler flags for libsystemd_daemon, overriding pkg-config 1965 libsystemd_daemon_LIBS 1966 linker flags for libsystemd_daemon, overriding pkg-config 1967 LIBSYSTEMD_JOURNAL_CFLAGS 1968 C compiler flags for LIBSYSTEMD_JOURNAL, overriding pkg-config 1969 LIBSYSTEMD_JOURNAL_LIBS 1970 linker flags for LIBSYSTEMD_JOURNAL, overriding pkg-config 1971 1972Use these variables to override the choices made by `configure' or to help 1973it to find libraries and programs with nonstandard names/locations. 1974 1975Report bugs to the package provider. 1976_ACEOF 1977ac_status=$? 1978fi 1979 1980if test "$ac_init_help" = "recursive"; then 1981 # If there are subdirs, report their specific --help. 1982 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1983 test -d "$ac_dir" || 1984 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1985 continue 1986 ac_builddir=. 1987 1988case "$ac_dir" in 1989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1990*) 1991 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1992 # A ".." for each directory in $ac_dir_suffix. 1993 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1994 case $ac_top_builddir_sub in 1995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1997 esac ;; 1998esac 1999ac_abs_top_builddir=$ac_pwd 2000ac_abs_builddir=$ac_pwd$ac_dir_suffix 2001# for backward compatibility: 2002ac_top_builddir=$ac_top_build_prefix 2003 2004case $srcdir in 2005 .) # We are building in place. 2006 ac_srcdir=. 2007 ac_top_srcdir=$ac_top_builddir_sub 2008 ac_abs_top_srcdir=$ac_pwd ;; 2009 [\\/]* | ?:[\\/]* ) # Absolute name. 2010 ac_srcdir=$srcdir$ac_dir_suffix; 2011 ac_top_srcdir=$srcdir 2012 ac_abs_top_srcdir=$srcdir ;; 2013 *) # Relative name. 2014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2015 ac_top_srcdir=$ac_top_build_prefix$srcdir 2016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2017esac 2018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2019 2020 cd "$ac_dir" || { ac_status=$?; continue; } 2021 # Check for configure.gnu first; this name is used for a wrapper for 2022 # Metaconfig's "Configure" on case-insensitive file systems. 2023 if test -f "$ac_srcdir/configure.gnu"; then 2024 echo && 2025 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2026 elif test -f "$ac_srcdir/configure"; then 2027 echo && 2028 $SHELL "$ac_srcdir/configure" --help=recursive 2029 else 2030 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2031 fi || ac_status=$? 2032 cd "$ac_pwd" || { ac_status=$?; break; } 2033 done 2034fi 2035 2036test -n "$ac_init_help" && exit $ac_status 2037if $ac_init_version; then 2038 cat <<\_ACEOF 2039syslog-ng configure 3.35.1 2040generated by GNU Autoconf 2.71 2041 2042Copyright (C) 2021 Free Software Foundation, Inc. 2043This configure script is free software; the Free Software Foundation 2044gives unlimited permission to copy, distribute and modify it. 2045_ACEOF 2046 exit 2047fi 2048 2049## ------------------------ ## 2050## Autoconf initialization. ## 2051## ------------------------ ## 2052 2053# ac_fn_c_try_compile LINENO 2054# -------------------------- 2055# Try to compile conftest.$ac_ext, and return whether this succeeded. 2056ac_fn_c_try_compile () 2057{ 2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2059 rm -f conftest.$ac_objext conftest.beam 2060 if { { ac_try="$ac_compile" 2061case "(($ac_try" in 2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2063 *) ac_try_echo=$ac_try;; 2064esac 2065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2066printf "%s\n" "$ac_try_echo"; } >&5 2067 (eval "$ac_compile") 2>conftest.err 2068 ac_status=$? 2069 if test -s conftest.err; then 2070 grep -v '^ *+' conftest.err >conftest.er1 2071 cat conftest.er1 >&5 2072 mv -f conftest.er1 conftest.err 2073 fi 2074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2075 test $ac_status = 0; } && { 2076 test -z "$ac_c_werror_flag" || 2077 test ! -s conftest.err 2078 } && test -s conftest.$ac_objext 2079then : 2080 ac_retval=0 2081else $as_nop 2082 printf "%s\n" "$as_me: failed program was:" >&5 2083sed 's/^/| /' conftest.$ac_ext >&5 2084 2085 ac_retval=1 2086fi 2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2088 as_fn_set_status $ac_retval 2089 2090} # ac_fn_c_try_compile 2091 2092# ac_fn_c_try_link LINENO 2093# ----------------------- 2094# Try to link conftest.$ac_ext, and return whether this succeeded. 2095ac_fn_c_try_link () 2096{ 2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2098 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2099 if { { ac_try="$ac_link" 2100case "(($ac_try" in 2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2102 *) ac_try_echo=$ac_try;; 2103esac 2104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2105printf "%s\n" "$ac_try_echo"; } >&5 2106 (eval "$ac_link") 2>conftest.err 2107 ac_status=$? 2108 if test -s conftest.err; then 2109 grep -v '^ *+' conftest.err >conftest.er1 2110 cat conftest.er1 >&5 2111 mv -f conftest.er1 conftest.err 2112 fi 2113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2114 test $ac_status = 0; } && { 2115 test -z "$ac_c_werror_flag" || 2116 test ! -s conftest.err 2117 } && test -s conftest$ac_exeext && { 2118 test "$cross_compiling" = yes || 2119 test -x conftest$ac_exeext 2120 } 2121then : 2122 ac_retval=0 2123else $as_nop 2124 printf "%s\n" "$as_me: failed program was:" >&5 2125sed 's/^/| /' conftest.$ac_ext >&5 2126 2127 ac_retval=1 2128fi 2129 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2130 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2131 # interfere with the next link command; also delete a directory that is 2132 # left behind by Apple's compiler. We do this before executing the actions. 2133 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2135 as_fn_set_status $ac_retval 2136 2137} # ac_fn_c_try_link 2138 2139# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2140# ------------------------------------------------------- 2141# Tests whether HEADER exists and can be compiled using the include files in 2142# INCLUDES, setting the cache variable VAR accordingly. 2143ac_fn_c_check_header_compile () 2144{ 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2147printf %s "checking for $2... " >&6; } 2148if eval test \${$3+y} 2149then : 2150 printf %s "(cached) " >&6 2151else $as_nop 2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2153/* end confdefs.h. */ 2154$4 2155#include <$2> 2156_ACEOF 2157if ac_fn_c_try_compile "$LINENO" 2158then : 2159 eval "$3=yes" 2160else $as_nop 2161 eval "$3=no" 2162fi 2163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2164fi 2165eval ac_res=\$$3 2166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2167printf "%s\n" "$ac_res" >&6; } 2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2169 2170} # ac_fn_c_check_header_compile 2171 2172# ac_fn_c_check_func LINENO FUNC VAR 2173# ---------------------------------- 2174# Tests whether FUNC exists, setting the cache variable VAR accordingly 2175ac_fn_c_check_func () 2176{ 2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2179printf %s "checking for $2... " >&6; } 2180if eval test \${$3+y} 2181then : 2182 printf %s "(cached) " >&6 2183else $as_nop 2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2185/* end confdefs.h. */ 2186/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2187 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2188#define $2 innocuous_$2 2189 2190/* System header to define __stub macros and hopefully few prototypes, 2191 which can conflict with char $2 (); below. */ 2192 2193#include <limits.h> 2194#undef $2 2195 2196/* Override any GCC internal prototype to avoid an error. 2197 Use char because int might match the return type of a GCC 2198 builtin and then its argument prototype would still apply. */ 2199#ifdef __cplusplus 2200extern "C" 2201#endif 2202char $2 (); 2203/* The GNU C library defines this for functions which it implements 2204 to always fail with ENOSYS. Some functions are actually named 2205 something starting with __ and the normal name is an alias. */ 2206#if defined __stub_$2 || defined __stub___$2 2207choke me 2208#endif 2209 2210int 2211main (void) 2212{ 2213return $2 (); 2214 ; 2215 return 0; 2216} 2217_ACEOF 2218if ac_fn_c_try_link "$LINENO" 2219then : 2220 eval "$3=yes" 2221else $as_nop 2222 eval "$3=no" 2223fi 2224rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2225 conftest$ac_exeext conftest.$ac_ext 2226fi 2227eval ac_res=\$$3 2228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2229printf "%s\n" "$ac_res" >&6; } 2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2231 2232} # ac_fn_c_check_func 2233 2234# ac_fn_c_try_run LINENO 2235# ---------------------- 2236# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2237# executables *can* be run. 2238ac_fn_c_try_run () 2239{ 2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2241 if { { ac_try="$ac_link" 2242case "(($ac_try" in 2243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2244 *) ac_try_echo=$ac_try;; 2245esac 2246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2247printf "%s\n" "$ac_try_echo"; } >&5 2248 (eval "$ac_link") 2>&5 2249 ac_status=$? 2250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2251 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2252 { { case "(($ac_try" in 2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2254 *) ac_try_echo=$ac_try;; 2255esac 2256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2257printf "%s\n" "$ac_try_echo"; } >&5 2258 (eval "$ac_try") 2>&5 2259 ac_status=$? 2260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2261 test $ac_status = 0; }; } 2262then : 2263 ac_retval=0 2264else $as_nop 2265 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2266 printf "%s\n" "$as_me: failed program was:" >&5 2267sed 's/^/| /' conftest.$ac_ext >&5 2268 2269 ac_retval=$ac_status 2270fi 2271 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2273 as_fn_set_status $ac_retval 2274 2275} # ac_fn_c_try_run 2276 2277# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2278# -------------------------------------------- 2279# Tries to find the compile-time value of EXPR in a program that includes 2280# INCLUDES, setting VAR accordingly. Returns whether the value could be 2281# computed 2282ac_fn_c_compute_int () 2283{ 2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2285 if test "$cross_compiling" = yes; then 2286 # Depending upon the size, compute the lo and hi bounds. 2287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2288/* end confdefs.h. */ 2289$4 2290int 2291main (void) 2292{ 2293static int test_array [1 - 2 * !(($2) >= 0)]; 2294test_array [0] = 0; 2295return test_array [0]; 2296 2297 ; 2298 return 0; 2299} 2300_ACEOF 2301if ac_fn_c_try_compile "$LINENO" 2302then : 2303 ac_lo=0 ac_mid=0 2304 while :; do 2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2306/* end confdefs.h. */ 2307$4 2308int 2309main (void) 2310{ 2311static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2312test_array [0] = 0; 2313return test_array [0]; 2314 2315 ; 2316 return 0; 2317} 2318_ACEOF 2319if ac_fn_c_try_compile "$LINENO" 2320then : 2321 ac_hi=$ac_mid; break 2322else $as_nop 2323 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2324 if test $ac_lo -le $ac_mid; then 2325 ac_lo= ac_hi= 2326 break 2327 fi 2328 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2329fi 2330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2331 done 2332else $as_nop 2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2334/* end confdefs.h. */ 2335$4 2336int 2337main (void) 2338{ 2339static int test_array [1 - 2 * !(($2) < 0)]; 2340test_array [0] = 0; 2341return test_array [0]; 2342 2343 ; 2344 return 0; 2345} 2346_ACEOF 2347if ac_fn_c_try_compile "$LINENO" 2348then : 2349 ac_hi=-1 ac_mid=-1 2350 while :; do 2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2352/* end confdefs.h. */ 2353$4 2354int 2355main (void) 2356{ 2357static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2358test_array [0] = 0; 2359return test_array [0]; 2360 2361 ; 2362 return 0; 2363} 2364_ACEOF 2365if ac_fn_c_try_compile "$LINENO" 2366then : 2367 ac_lo=$ac_mid; break 2368else $as_nop 2369 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2370 if test $ac_mid -le $ac_hi; then 2371 ac_lo= ac_hi= 2372 break 2373 fi 2374 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2375fi 2376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2377 done 2378else $as_nop 2379 ac_lo= ac_hi= 2380fi 2381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2382fi 2383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2384# Binary search between lo and hi bounds. 2385while test "x$ac_lo" != "x$ac_hi"; do 2386 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2388/* end confdefs.h. */ 2389$4 2390int 2391main (void) 2392{ 2393static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2394test_array [0] = 0; 2395return test_array [0]; 2396 2397 ; 2398 return 0; 2399} 2400_ACEOF 2401if ac_fn_c_try_compile "$LINENO" 2402then : 2403 ac_hi=$ac_mid 2404else $as_nop 2405 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2406fi 2407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2408done 2409case $ac_lo in #(( 2410?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2411'') ac_retval=1 ;; 2412esac 2413 else 2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2415/* end confdefs.h. */ 2416$4 2417static long int longval (void) { return $2; } 2418static unsigned long int ulongval (void) { return $2; } 2419#include <stdio.h> 2420#include <stdlib.h> 2421int 2422main (void) 2423{ 2424 2425 FILE *f = fopen ("conftest.val", "w"); 2426 if (! f) 2427 return 1; 2428 if (($2) < 0) 2429 { 2430 long int i = longval (); 2431 if (i != ($2)) 2432 return 1; 2433 fprintf (f, "%ld", i); 2434 } 2435 else 2436 { 2437 unsigned long int i = ulongval (); 2438 if (i != ($2)) 2439 return 1; 2440 fprintf (f, "%lu", i); 2441 } 2442 /* Do not output a trailing newline, as this causes \r\n confusion 2443 on some platforms. */ 2444 return ferror (f) || fclose (f) != 0; 2445 2446 ; 2447 return 0; 2448} 2449_ACEOF 2450if ac_fn_c_try_run "$LINENO" 2451then : 2452 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2453else $as_nop 2454 ac_retval=1 2455fi 2456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2457 conftest.$ac_objext conftest.beam conftest.$ac_ext 2458rm -f conftest.val 2459 2460 fi 2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2462 as_fn_set_status $ac_retval 2463 2464} # ac_fn_c_compute_int 2465 2466# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2467# ------------------------------------------- 2468# Tests whether TYPE exists after having included INCLUDES, setting cache 2469# variable VAR accordingly. 2470ac_fn_c_check_type () 2471{ 2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2474printf %s "checking for $2... " >&6; } 2475if eval test \${$3+y} 2476then : 2477 printf %s "(cached) " >&6 2478else $as_nop 2479 eval "$3=no" 2480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2481/* end confdefs.h. */ 2482$4 2483int 2484main (void) 2485{ 2486if (sizeof ($2)) 2487 return 0; 2488 ; 2489 return 0; 2490} 2491_ACEOF 2492if ac_fn_c_try_compile "$LINENO" 2493then : 2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2495/* end confdefs.h. */ 2496$4 2497int 2498main (void) 2499{ 2500if (sizeof (($2))) 2501 return 0; 2502 ; 2503 return 0; 2504} 2505_ACEOF 2506if ac_fn_c_try_compile "$LINENO" 2507then : 2508 2509else $as_nop 2510 eval "$3=yes" 2511fi 2512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2513fi 2514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2515fi 2516eval ac_res=\$$3 2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2518printf "%s\n" "$ac_res" >&6; } 2519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2520 2521} # ac_fn_c_check_type 2522 2523# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2524# ---------------------------------------------------- 2525# Tries to find if the field MEMBER exists in type AGGR, after including 2526# INCLUDES, setting cache variable VAR accordingly. 2527ac_fn_c_check_member () 2528{ 2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2531printf %s "checking for $2.$3... " >&6; } 2532if eval test \${$4+y} 2533then : 2534 printf %s "(cached) " >&6 2535else $as_nop 2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2537/* end confdefs.h. */ 2538$5 2539int 2540main (void) 2541{ 2542static $2 ac_aggr; 2543if (ac_aggr.$3) 2544return 0; 2545 ; 2546 return 0; 2547} 2548_ACEOF 2549if ac_fn_c_try_compile "$LINENO" 2550then : 2551 eval "$4=yes" 2552else $as_nop 2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2554/* end confdefs.h. */ 2555$5 2556int 2557main (void) 2558{ 2559static $2 ac_aggr; 2560if (sizeof ac_aggr.$3) 2561return 0; 2562 ; 2563 return 0; 2564} 2565_ACEOF 2566if ac_fn_c_try_compile "$LINENO" 2567then : 2568 eval "$4=yes" 2569else $as_nop 2570 eval "$4=no" 2571fi 2572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2573fi 2574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2575fi 2576eval ac_res=\$$4 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2578printf "%s\n" "$ac_res" >&6; } 2579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2580 2581} # ac_fn_c_check_member 2582 2583# ac_fn_c_try_cpp LINENO 2584# ---------------------- 2585# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2586ac_fn_c_try_cpp () 2587{ 2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2589 if { { ac_try="$ac_cpp conftest.$ac_ext" 2590case "(($ac_try" in 2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2592 *) ac_try_echo=$ac_try;; 2593esac 2594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2595printf "%s\n" "$ac_try_echo"; } >&5 2596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2597 ac_status=$? 2598 if test -s conftest.err; then 2599 grep -v '^ *+' conftest.err >conftest.er1 2600 cat conftest.er1 >&5 2601 mv -f conftest.er1 conftest.err 2602 fi 2603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2604 test $ac_status = 0; } > conftest.i && { 2605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2606 test ! -s conftest.err 2607 } 2608then : 2609 ac_retval=0 2610else $as_nop 2611 printf "%s\n" "$as_me: failed program was:" >&5 2612sed 's/^/| /' conftest.$ac_ext >&5 2613 2614 ac_retval=1 2615fi 2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2617 as_fn_set_status $ac_retval 2618 2619} # ac_fn_c_try_cpp 2620 2621# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2622# ------------------------------------------------------------------ 2623# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2624# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2625ac_fn_check_decl () 2626{ 2627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2628 as_decl_name=`echo $2|sed 's/ *(.*//'` 2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2630printf %s "checking whether $as_decl_name is declared... " >&6; } 2631if eval test \${$3+y} 2632then : 2633 printf %s "(cached) " >&6 2634else $as_nop 2635 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2636 eval ac_save_FLAGS=\$$6 2637 as_fn_append $6 " $5" 2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2639/* end confdefs.h. */ 2640$4 2641int 2642main (void) 2643{ 2644#ifndef $as_decl_name 2645#ifdef __cplusplus 2646 (void) $as_decl_use; 2647#else 2648 (void) $as_decl_name; 2649#endif 2650#endif 2651 2652 ; 2653 return 0; 2654} 2655_ACEOF 2656if ac_fn_c_try_compile "$LINENO" 2657then : 2658 eval "$3=yes" 2659else $as_nop 2660 eval "$3=no" 2661fi 2662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2663 eval $6=\$ac_save_FLAGS 2664 2665fi 2666eval ac_res=\$$3 2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2668printf "%s\n" "$ac_res" >&6; } 2669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2670 2671} # ac_fn_check_decl 2672ac_configure_args_raw= 2673for ac_arg 2674do 2675 case $ac_arg in 2676 *\'*) 2677 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2678 esac 2679 as_fn_append ac_configure_args_raw " '$ac_arg'" 2680done 2681 2682case $ac_configure_args_raw in 2683 *$as_nl*) 2684 ac_safe_unquote= ;; 2685 *) 2686 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2687 ac_unsafe_a="$ac_unsafe_z#~" 2688 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2689 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2690esac 2691 2692cat >config.log <<_ACEOF 2693This file contains any messages produced by compilers while 2694running configure, to aid debugging if configure makes a mistake. 2695 2696It was created by syslog-ng $as_me 3.35.1, which was 2697generated by GNU Autoconf 2.71. Invocation command line was 2698 2699 $ $0$ac_configure_args_raw 2700 2701_ACEOF 2702exec 5>>config.log 2703{ 2704cat <<_ASUNAME 2705## --------- ## 2706## Platform. ## 2707## --------- ## 2708 2709hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2710uname -m = `(uname -m) 2>/dev/null || echo unknown` 2711uname -r = `(uname -r) 2>/dev/null || echo unknown` 2712uname -s = `(uname -s) 2>/dev/null || echo unknown` 2713uname -v = `(uname -v) 2>/dev/null || echo unknown` 2714 2715/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2716/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2717 2718/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2719/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2720/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2721/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2722/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2723/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2724/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2725 2726_ASUNAME 2727 2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2729for as_dir in $PATH 2730do 2731 IFS=$as_save_IFS 2732 case $as_dir in #((( 2733 '') as_dir=./ ;; 2734 */) ;; 2735 *) as_dir=$as_dir/ ;; 2736 esac 2737 printf "%s\n" "PATH: $as_dir" 2738 done 2739IFS=$as_save_IFS 2740 2741} >&5 2742 2743cat >&5 <<_ACEOF 2744 2745 2746## ----------- ## 2747## Core tests. ## 2748## ----------- ## 2749 2750_ACEOF 2751 2752 2753# Keep a trace of the command line. 2754# Strip out --no-create and --no-recursion so they do not pile up. 2755# Strip out --silent because we don't want to record it for future runs. 2756# Also quote any args containing shell meta-characters. 2757# Make two passes to allow for proper duplicate-argument suppression. 2758ac_configure_args= 2759ac_configure_args0= 2760ac_configure_args1= 2761ac_must_keep_next=false 2762for ac_pass in 1 2 2763do 2764 for ac_arg 2765 do 2766 case $ac_arg in 2767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2769 | -silent | --silent | --silen | --sile | --sil) 2770 continue ;; 2771 *\'*) 2772 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2773 esac 2774 case $ac_pass in 2775 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2776 2) 2777 as_fn_append ac_configure_args1 " '$ac_arg'" 2778 if test $ac_must_keep_next = true; then 2779 ac_must_keep_next=false # Got value, back to normal. 2780 else 2781 case $ac_arg in 2782 *=* | --config-cache | -C | -disable-* | --disable-* \ 2783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2785 | -with-* | --with-* | -without-* | --without-* | --x) 2786 case "$ac_configure_args0 " in 2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2788 esac 2789 ;; 2790 -* ) ac_must_keep_next=true ;; 2791 esac 2792 fi 2793 as_fn_append ac_configure_args " '$ac_arg'" 2794 ;; 2795 esac 2796 done 2797done 2798{ ac_configure_args0=; unset ac_configure_args0;} 2799{ ac_configure_args1=; unset ac_configure_args1;} 2800 2801# When interrupted or exit'd, cleanup temporary files, and complete 2802# config.log. We remove comments because anyway the quotes in there 2803# would cause problems or look ugly. 2804# WARNING: Use '\'' to represent an apostrophe within the trap. 2805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2806trap 'exit_status=$? 2807 # Sanitize IFS. 2808 IFS=" "" $as_nl" 2809 # Save into config.log some information that might help in debugging. 2810 { 2811 echo 2812 2813 printf "%s\n" "## ---------------- ## 2814## Cache variables. ## 2815## ---------------- ##" 2816 echo 2817 # The following way of writing the cache mishandles newlines in values, 2818( 2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2820 eval ac_val=\$$ac_var 2821 case $ac_val in #( 2822 *${as_nl}*) 2823 case $ac_var in #( 2824 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2825printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2826 esac 2827 case $ac_var in #( 2828 _ | IFS | as_nl) ;; #( 2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2830 *) { eval $ac_var=; unset $ac_var;} ;; 2831 esac ;; 2832 esac 2833 done 2834 (set) 2>&1 | 2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2836 *${as_nl}ac_space=\ *) 2837 sed -n \ 2838 "s/'\''/'\''\\\\'\'''\''/g; 2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2840 ;; #( 2841 *) 2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2843 ;; 2844 esac | 2845 sort 2846) 2847 echo 2848 2849 printf "%s\n" "## ----------------- ## 2850## Output variables. ## 2851## ----------------- ##" 2852 echo 2853 for ac_var in $ac_subst_vars 2854 do 2855 eval ac_val=\$$ac_var 2856 case $ac_val in 2857 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2858 esac 2859 printf "%s\n" "$ac_var='\''$ac_val'\''" 2860 done | sort 2861 echo 2862 2863 if test -n "$ac_subst_files"; then 2864 printf "%s\n" "## ------------------- ## 2865## File substitutions. ## 2866## ------------------- ##" 2867 echo 2868 for ac_var in $ac_subst_files 2869 do 2870 eval ac_val=\$$ac_var 2871 case $ac_val in 2872 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2873 esac 2874 printf "%s\n" "$ac_var='\''$ac_val'\''" 2875 done | sort 2876 echo 2877 fi 2878 2879 if test -s confdefs.h; then 2880 printf "%s\n" "## ----------- ## 2881## confdefs.h. ## 2882## ----------- ##" 2883 echo 2884 cat confdefs.h 2885 echo 2886 fi 2887 test "$ac_signal" != 0 && 2888 printf "%s\n" "$as_me: caught signal $ac_signal" 2889 printf "%s\n" "$as_me: exit $exit_status" 2890 } >&5 2891 rm -f core *.core core.conftest.* && 2892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2893 exit $exit_status 2894' 0 2895for ac_signal in 1 2 13 15; do 2896 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2897done 2898ac_signal=0 2899 2900# confdefs.h avoids OS command line length limits that DEFS can exceed. 2901rm -f -r conftest* confdefs.h 2902 2903printf "%s\n" "/* confdefs.h */" > confdefs.h 2904 2905# Predefined preprocessor variables. 2906 2907printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2908 2909printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2910 2911printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2912 2913printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2914 2915printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2916 2917printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2918 2919 2920# Let the site file select an alternate cache file if it wants to. 2921# Prefer an explicitly selected file to automatically selected ones. 2922if test -n "$CONFIG_SITE"; then 2923 ac_site_files="$CONFIG_SITE" 2924elif test "x$prefix" != xNONE; then 2925 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2926else 2927 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2928fi 2929 2930for ac_site_file in $ac_site_files 2931do 2932 case $ac_site_file in #( 2933 */*) : 2934 ;; #( 2935 *) : 2936 ac_site_file=./$ac_site_file ;; 2937esac 2938 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2940printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2941 sed 's/^/| /' "$ac_site_file" >&5 2942 . "$ac_site_file" \ 2943 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2944printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2945as_fn_error $? "failed to load site script $ac_site_file 2946See \`config.log' for more details" "$LINENO" 5; } 2947 fi 2948done 2949 2950if test -r "$cache_file"; then 2951 # Some versions of bash will fail to source /dev/null (special files 2952 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2953 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2955printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2956 case $cache_file in 2957 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2958 *) . "./$cache_file";; 2959 esac 2960 fi 2961else 2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2963printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2964 >$cache_file 2965fi 2966 2967# Test code for whether the C compiler supports C89 (global declarations) 2968ac_c_conftest_c89_globals=' 2969/* Does the compiler advertise C89 conformance? 2970 Do not test the value of __STDC__, because some compilers set it to 0 2971 while being otherwise adequately conformant. */ 2972#if !defined __STDC__ 2973# error "Compiler does not advertise C89 conformance" 2974#endif 2975 2976#include <stddef.h> 2977#include <stdarg.h> 2978struct stat; 2979/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2980struct buf { int x; }; 2981struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2982static char *e (p, i) 2983 char **p; 2984 int i; 2985{ 2986 return p[i]; 2987} 2988static char *f (char * (*g) (char **, int), char **p, ...) 2989{ 2990 char *s; 2991 va_list v; 2992 va_start (v,p); 2993 s = g (p, va_arg (v,int)); 2994 va_end (v); 2995 return s; 2996} 2997 2998/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2999 function prototypes and stuff, but not \xHH hex character constants. 3000 These do not provoke an error unfortunately, instead are silently treated 3001 as an "x". The following induces an error, until -std is added to get 3002 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3003 array size at least. It is necessary to write \x00 == 0 to get something 3004 that is true only with -std. */ 3005int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3006 3007/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3008 inside strings and character constants. */ 3009#define FOO(x) '\''x'\'' 3010int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3011 3012int test (int i, double x); 3013struct s1 {int (*f) (int a);}; 3014struct s2 {int (*f) (double a);}; 3015int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3016 int, int);' 3017 3018# Test code for whether the C compiler supports C89 (body of main). 3019ac_c_conftest_c89_main=' 3020ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3021' 3022 3023# Test code for whether the C compiler supports C99 (global declarations) 3024ac_c_conftest_c99_globals=' 3025// Does the compiler advertise C99 conformance? 3026#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3027# error "Compiler does not advertise C99 conformance" 3028#endif 3029 3030#include <stdbool.h> 3031extern int puts (const char *); 3032extern int printf (const char *, ...); 3033extern int dprintf (int, const char *, ...); 3034extern void *malloc (size_t); 3035 3036// Check varargs macros. These examples are taken from C99 6.10.3.5. 3037// dprintf is used instead of fprintf to avoid needing to declare 3038// FILE and stderr. 3039#define debug(...) dprintf (2, __VA_ARGS__) 3040#define showlist(...) puts (#__VA_ARGS__) 3041#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3042static void 3043test_varargs_macros (void) 3044{ 3045 int x = 1234; 3046 int y = 5678; 3047 debug ("Flag"); 3048 debug ("X = %d\n", x); 3049 showlist (The first, second, and third items.); 3050 report (x>y, "x is %d but y is %d", x, y); 3051} 3052 3053// Check long long types. 3054#define BIG64 18446744073709551615ull 3055#define BIG32 4294967295ul 3056#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3057#if !BIG_OK 3058 #error "your preprocessor is broken" 3059#endif 3060#if BIG_OK 3061#else 3062 #error "your preprocessor is broken" 3063#endif 3064static long long int bignum = -9223372036854775807LL; 3065static unsigned long long int ubignum = BIG64; 3066 3067struct incomplete_array 3068{ 3069 int datasize; 3070 double data[]; 3071}; 3072 3073struct named_init { 3074 int number; 3075 const wchar_t *name; 3076 double average; 3077}; 3078 3079typedef const char *ccp; 3080 3081static inline int 3082test_restrict (ccp restrict text) 3083{ 3084 // See if C++-style comments work. 3085 // Iterate through items via the restricted pointer. 3086 // Also check for declarations in for loops. 3087 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3088 continue; 3089 return 0; 3090} 3091 3092// Check varargs and va_copy. 3093static bool 3094test_varargs (const char *format, ...) 3095{ 3096 va_list args; 3097 va_start (args, format); 3098 va_list args_copy; 3099 va_copy (args_copy, args); 3100 3101 const char *str = ""; 3102 int number = 0; 3103 float fnumber = 0; 3104 3105 while (*format) 3106 { 3107 switch (*format++) 3108 { 3109 case '\''s'\'': // string 3110 str = va_arg (args_copy, const char *); 3111 break; 3112 case '\''d'\'': // int 3113 number = va_arg (args_copy, int); 3114 break; 3115 case '\''f'\'': // float 3116 fnumber = va_arg (args_copy, double); 3117 break; 3118 default: 3119 break; 3120 } 3121 } 3122 va_end (args_copy); 3123 va_end (args); 3124 3125 return *str && number && fnumber; 3126} 3127' 3128 3129# Test code for whether the C compiler supports C99 (body of main). 3130ac_c_conftest_c99_main=' 3131 // Check bool. 3132 _Bool success = false; 3133 success |= (argc != 0); 3134 3135 // Check restrict. 3136 if (test_restrict ("String literal") == 0) 3137 success = true; 3138 char *restrict newvar = "Another string"; 3139 3140 // Check varargs. 3141 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3142 test_varargs_macros (); 3143 3144 // Check flexible array members. 3145 struct incomplete_array *ia = 3146 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3147 ia->datasize = 10; 3148 for (int i = 0; i < ia->datasize; ++i) 3149 ia->data[i] = i * 1.234; 3150 3151 // Check named initializers. 3152 struct named_init ni = { 3153 .number = 34, 3154 .name = L"Test wide string", 3155 .average = 543.34343, 3156 }; 3157 3158 ni.number = 58; 3159 3160 int dynamic_array[ni.number]; 3161 dynamic_array[0] = argv[0][0]; 3162 dynamic_array[ni.number - 1] = 543; 3163 3164 // work around unused variable warnings 3165 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3166 || dynamic_array[ni.number - 1] != 543); 3167' 3168 3169# Test code for whether the C compiler supports C11 (global declarations) 3170ac_c_conftest_c11_globals=' 3171// Does the compiler advertise C11 conformance? 3172#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3173# error "Compiler does not advertise C11 conformance" 3174#endif 3175 3176// Check _Alignas. 3177char _Alignas (double) aligned_as_double; 3178char _Alignas (0) no_special_alignment; 3179extern char aligned_as_int; 3180char _Alignas (0) _Alignas (int) aligned_as_int; 3181 3182// Check _Alignof. 3183enum 3184{ 3185 int_alignment = _Alignof (int), 3186 int_array_alignment = _Alignof (int[100]), 3187 char_alignment = _Alignof (char) 3188}; 3189_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3190 3191// Check _Noreturn. 3192int _Noreturn does_not_return (void) { for (;;) continue; } 3193 3194// Check _Static_assert. 3195struct test_static_assert 3196{ 3197 int x; 3198 _Static_assert (sizeof (int) <= sizeof (long int), 3199 "_Static_assert does not work in struct"); 3200 long int y; 3201}; 3202 3203// Check UTF-8 literals. 3204#define u8 syntax error! 3205char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3206 3207// Check duplicate typedefs. 3208typedef long *long_ptr; 3209typedef long int *long_ptr; 3210typedef long_ptr long_ptr; 3211 3212// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3213struct anonymous 3214{ 3215 union { 3216 struct { int i; int j; }; 3217 struct { int k; long int l; } w; 3218 }; 3219 int m; 3220} v1; 3221' 3222 3223# Test code for whether the C compiler supports C11 (body of main). 3224ac_c_conftest_c11_main=' 3225 _Static_assert ((offsetof (struct anonymous, i) 3226 == offsetof (struct anonymous, w.k)), 3227 "Anonymous union alignment botch"); 3228 v1.i = 2; 3229 v1.w.k = 5; 3230 ok |= v1.i != 5; 3231' 3232 3233# Test code for whether the C compiler supports C11 (complete). 3234ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3235${ac_c_conftest_c99_globals} 3236${ac_c_conftest_c11_globals} 3237 3238int 3239main (int argc, char **argv) 3240{ 3241 int ok = 0; 3242 ${ac_c_conftest_c89_main} 3243 ${ac_c_conftest_c99_main} 3244 ${ac_c_conftest_c11_main} 3245 return ok; 3246} 3247" 3248 3249# Test code for whether the C compiler supports C99 (complete). 3250ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3251${ac_c_conftest_c99_globals} 3252 3253int 3254main (int argc, char **argv) 3255{ 3256 int ok = 0; 3257 ${ac_c_conftest_c89_main} 3258 ${ac_c_conftest_c99_main} 3259 return ok; 3260} 3261" 3262 3263# Test code for whether the C compiler supports C89 (complete). 3264ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3265 3266int 3267main (int argc, char **argv) 3268{ 3269 int ok = 0; 3270 ${ac_c_conftest_c89_main} 3271 return ok; 3272} 3273" 3274 3275as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3276as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3277as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3278as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3279as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3280as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3281as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3282as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3283as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3284 3285# Auxiliary files required by this configure script. 3286ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 3287 3288# Locations in which to look for auxiliary files. 3289ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3290 3291# Search for a directory containing all of the required auxiliary files, 3292# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3293# If we don't find one directory that contains all the files we need, 3294# we report the set of missing files from the *first* directory in 3295# $ac_aux_dir_candidates and give up. 3296ac_missing_aux_files="" 3297ac_first_candidate=: 3298printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3300as_found=false 3301for as_dir in $ac_aux_dir_candidates 3302do 3303 IFS=$as_save_IFS 3304 case $as_dir in #((( 3305 '') as_dir=./ ;; 3306 */) ;; 3307 *) as_dir=$as_dir/ ;; 3308 esac 3309 as_found=: 3310 3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3312 ac_aux_dir_found=yes 3313 ac_install_sh= 3314 for ac_aux in $ac_aux_files 3315 do 3316 # As a special case, if "install-sh" is required, that requirement 3317 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3318 # and $ac_install_sh is set appropriately for whichever one is found. 3319 if test x"$ac_aux" = x"install-sh" 3320 then 3321 if test -f "${as_dir}install-sh"; then 3322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3323 ac_install_sh="${as_dir}install-sh -c" 3324 elif test -f "${as_dir}install.sh"; then 3325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3326 ac_install_sh="${as_dir}install.sh -c" 3327 elif test -f "${as_dir}shtool"; then 3328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3329 ac_install_sh="${as_dir}shtool install -c" 3330 else 3331 ac_aux_dir_found=no 3332 if $ac_first_candidate; then 3333 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3334 else 3335 break 3336 fi 3337 fi 3338 else 3339 if test -f "${as_dir}${ac_aux}"; then 3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3341 else 3342 ac_aux_dir_found=no 3343 if $ac_first_candidate; then 3344 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3345 else 3346 break 3347 fi 3348 fi 3349 fi 3350 done 3351 if test "$ac_aux_dir_found" = yes; then 3352 ac_aux_dir="$as_dir" 3353 break 3354 fi 3355 ac_first_candidate=false 3356 3357 as_found=false 3358done 3359IFS=$as_save_IFS 3360if $as_found 3361then : 3362 3363else $as_nop 3364 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3365fi 3366 3367 3368# These three variables are undocumented and unsupported, 3369# and are intended to be withdrawn in a future Autoconf release. 3370# They can cause serious problems if a builder's source tree is in a directory 3371# whose full name contains unusual characters. 3372if test -f "${ac_aux_dir}config.guess"; then 3373 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3374fi 3375if test -f "${ac_aux_dir}config.sub"; then 3376 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3377fi 3378if test -f "$ac_aux_dir/configure"; then 3379 ac_configure="$SHELL ${ac_aux_dir}configure" 3380fi 3381 3382# Check that the precious variables saved in the cache have kept the same 3383# value. 3384ac_cache_corrupted=false 3385for ac_var in $ac_precious_vars; do 3386 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3387 eval ac_new_set=\$ac_env_${ac_var}_set 3388 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3389 eval ac_new_val=\$ac_env_${ac_var}_value 3390 case $ac_old_set,$ac_new_set in 3391 set,) 3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3393printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3394 ac_cache_corrupted=: ;; 3395 ,set) 3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3397printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3398 ac_cache_corrupted=: ;; 3399 ,);; 3400 *) 3401 if test "x$ac_old_val" != "x$ac_new_val"; then 3402 # differences in whitespace do not lead to failure. 3403 ac_old_val_w=`echo x $ac_old_val` 3404 ac_new_val_w=`echo x $ac_new_val` 3405 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3407printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3408 ac_cache_corrupted=: 3409 else 3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3411printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3412 eval $ac_var=\$ac_old_val 3413 fi 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3415printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3417printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3418 fi;; 3419 esac 3420 # Pass precious variables to config.status. 3421 if test "$ac_new_set" = set; then 3422 case $ac_new_val in 3423 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3424 *) ac_arg=$ac_var=$ac_new_val ;; 3425 esac 3426 case " $ac_configure_args " in 3427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3428 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3429 esac 3430 fi 3431done 3432if $ac_cache_corrupted; then 3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3434printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3436printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3437 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3438 and start over" "$LINENO" 5 3439fi 3440## -------------------- ## 3441## Main body of script. ## 3442## -------------------- ## 3443 3444ac_ext=c 3445ac_cpp='$CPP $CPPFLAGS' 3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3448ac_compiler_gnu=$ac_cv_c_compiler_gnu 3449 3450 3451 3452 3453# Check whether --enable-silent-rules was given. 3454if test ${enable_silent_rules+y} 3455then : 3456 enableval=$enable_silent_rules; 3457fi 3458 3459case $enable_silent_rules in # ((( 3460 yes) AM_DEFAULT_VERBOSITY=0;; 3461 no) AM_DEFAULT_VERBOSITY=1;; 3462 *) AM_DEFAULT_VERBOSITY=0;; 3463esac 3464am_make=${MAKE-make} 3465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3466printf %s "checking whether $am_make supports nested variables... " >&6; } 3467if test ${am_cv_make_support_nested_variables+y} 3468then : 3469 printf %s "(cached) " >&6 3470else $as_nop 3471 if printf "%s\n" 'TRUE=$(BAR$(V)) 3472BAR0=false 3473BAR1=true 3474V=1 3475am__doit: 3476 @$(TRUE) 3477.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3478 am_cv_make_support_nested_variables=yes 3479else 3480 am_cv_make_support_nested_variables=no 3481fi 3482fi 3483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3484printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3485if test $am_cv_make_support_nested_variables = yes; then 3486 AM_V='$(V)' 3487 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3488else 3489 AM_V=$AM_DEFAULT_VERBOSITY 3490 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3491fi 3492AM_BACKSLASH='\' 3493 3494 3495 3496GLIB_MIN_VERSION="2.32" 3497OPENSSL_MIN_VERSION="0.9.8" 3498LIBDBI_MIN_VERSION="0.9.0" 3499LIBRABBITMQ_MIN_VERSION="0.5.3" 3500LIBRDKAFKA_MIN_VERSION="1.1.0" 3501IVYKIS_MIN_VERSION="0.36.1" 3502IVYKIS_UPDATED_VERSION="0.39" 3503JSON_C_MIN_VERSION="0.9" 3504PCRE_MIN_VERSION="6.1" 3505LMC_MIN_VERSION="1.0.0" 3506LRMQ_MIN_VERSION="0.0.1" 3507LRC_MIN_VERSION="1.6.0" 3508JOURNALD_MIN_VERSION="195" 3509LIBSYSTEMD_MIN_VERSION="209" 3510LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION="245" 3511JAVA_MIN_VERSION="1.7" 3512GRADLE_MIN_VERSION="3.4" 3513HIREDIS_MIN_VERSION="0.11.0" 3514CRITERION_MIN_VERSION="2.2.1" 3515 3516 3517ostype=`uname -s` 3518 3519if test -r $srcdir/dist.conf; then 3520 # read defaults, dist.conf does not change 3521 # values for parameters that are already set 3522 . $srcdir/dist.conf 3523fi 3524 3525if test -z "$RELEASE_TAG"; then 3526 RELEASE_TAG=unstable 3527fi 3528 3529 3530if test "`uname -s`" = "Linux";then 3531 CURRDATE=`date -R` 3532else 3533 CURRDATE=`date +"%a, %d %b %Y %H:%M:%S %Z"` 3534fi 3535 3536am__api_version='1.16' 3537 3538 3539 3540 # Find a good install program. We prefer a C program (faster), 3541# so one script is as good as another. But avoid the broken or 3542# incompatible versions: 3543# SysV /etc/install, /usr/sbin/install 3544# SunOS /usr/etc/install 3545# IRIX /sbin/install 3546# AIX /bin/install 3547# AmigaOS /C/install, which installs bootblocks on floppy discs 3548# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3549# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3550# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3551# OS/2's system install, which has a completely different semantic 3552# ./install, which can be erroneously created by make from ./install.sh. 3553# Reject install programs that cannot install multiple files. 3554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3555printf %s "checking for a BSD-compatible install... " >&6; } 3556if test -z "$INSTALL"; then 3557if test ${ac_cv_path_install+y} 3558then : 3559 printf %s "(cached) " >&6 3560else $as_nop 3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562for as_dir in $PATH 3563do 3564 IFS=$as_save_IFS 3565 case $as_dir in #((( 3566 '') as_dir=./ ;; 3567 */) ;; 3568 *) as_dir=$as_dir/ ;; 3569 esac 3570 # Account for fact that we put trailing slashes in our PATH walk. 3571case $as_dir in #(( 3572 ./ | /[cC]/* | \ 3573 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3574 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3575 /usr/ucb/* ) ;; 3576 *) 3577 # OSF1 and SCO ODT 3.0 have their own names for install. 3578 # Don't use installbsd from OSF since it installs stuff as root 3579 # by default. 3580 for ac_prog in ginstall scoinst install; do 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3583 if test $ac_prog = install && 3584 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3585 # AIX install. It has an incompatible calling convention. 3586 : 3587 elif test $ac_prog = install && 3588 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3589 # program-specific install script used by HP pwplus--don't use. 3590 : 3591 else 3592 rm -rf conftest.one conftest.two conftest.dir 3593 echo one > conftest.one 3594 echo two > conftest.two 3595 mkdir conftest.dir 3596 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3597 test -s conftest.one && test -s conftest.two && 3598 test -s conftest.dir/conftest.one && 3599 test -s conftest.dir/conftest.two 3600 then 3601 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3602 break 3 3603 fi 3604 fi 3605 fi 3606 done 3607 done 3608 ;; 3609esac 3610 3611 done 3612IFS=$as_save_IFS 3613 3614rm -rf conftest.one conftest.two conftest.dir 3615 3616fi 3617 if test ${ac_cv_path_install+y}; then 3618 INSTALL=$ac_cv_path_install 3619 else 3620 # As a last resort, use the slow shell script. Don't cache a 3621 # value for INSTALL within a source directory, because that will 3622 # break other packages using the cache if that directory is 3623 # removed, or if the value is a relative name. 3624 INSTALL=$ac_install_sh 3625 fi 3626fi 3627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3628printf "%s\n" "$INSTALL" >&6; } 3629 3630# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3631# It thinks the first close brace ends the variable substitution. 3632test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3633 3634test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3635 3636test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3637 3638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3639printf %s "checking whether build environment is sane... " >&6; } 3640# Reject unsafe characters in $srcdir or the absolute working directory 3641# name. Accept space and tab only in the latter. 3642am_lf=' 3643' 3644case `pwd` in 3645 *[\\\"\#\$\&\'\`$am_lf]*) 3646 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3647esac 3648case $srcdir in 3649 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3650 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3651esac 3652 3653# Do 'set' in a subshell so we don't clobber the current shell's 3654# arguments. Must try -L first in case configure is actually a 3655# symlink; some systems play weird games with the mod time of symlinks 3656# (eg FreeBSD returns the mod time of the symlink's containing 3657# directory). 3658if ( 3659 am_has_slept=no 3660 for am_try in 1 2; do 3661 echo "timestamp, slept: $am_has_slept" > conftest.file 3662 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3663 if test "$*" = "X"; then 3664 # -L didn't work. 3665 set X `ls -t "$srcdir/configure" conftest.file` 3666 fi 3667 if test "$*" != "X $srcdir/configure conftest.file" \ 3668 && test "$*" != "X conftest.file $srcdir/configure"; then 3669 3670 # If neither matched, then we have a broken ls. This can happen 3671 # if, for instance, CONFIG_SHELL is bash and it inherits a 3672 # broken ls alias from the environment. This has actually 3673 # happened. Such a system could not be considered "sane". 3674 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3675 alias in your environment" "$LINENO" 5 3676 fi 3677 if test "$2" = conftest.file || test $am_try -eq 2; then 3678 break 3679 fi 3680 # Just in case. 3681 sleep 1 3682 am_has_slept=yes 3683 done 3684 test "$2" = conftest.file 3685 ) 3686then 3687 # Ok. 3688 : 3689else 3690 as_fn_error $? "newly created file is older than distributed files! 3691Check your system clock" "$LINENO" 5 3692fi 3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3694printf "%s\n" "yes" >&6; } 3695# If we didn't sleep, we still need to ensure time stamps of config.status and 3696# generated files are strictly newer. 3697am_sleep_pid= 3698if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3699 ( sleep 1 ) & 3700 am_sleep_pid=$! 3701fi 3702 3703rm -f conftest.file 3704 3705test "$program_prefix" != NONE && 3706 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3707# Use a double $ so make ignores it. 3708test "$program_suffix" != NONE && 3709 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3710# Double any \ or $. 3711# By default was `s,x,x', remove it if useless. 3712ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3713program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3714 3715 3716# Expand $ac_aux_dir to an absolute path. 3717am_aux_dir=`cd "$ac_aux_dir" && pwd` 3718 3719 3720 if test x"${MISSING+set}" != xset; then 3721 MISSING="\${SHELL} '$am_aux_dir/missing'" 3722fi 3723# Use eval to expand $SHELL 3724if eval "$MISSING --is-lightweight"; then 3725 am_missing_run="$MISSING " 3726else 3727 am_missing_run= 3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3729printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3730fi 3731 3732if test x"${install_sh+set}" != xset; then 3733 case $am_aux_dir in 3734 *\ * | *\ *) 3735 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3736 *) 3737 install_sh="\${SHELL} $am_aux_dir/install-sh" 3738 esac 3739fi 3740 3741# Installed binaries are usually stripped using 'strip' when the user 3742# run "make install-strip". However 'strip' might not be the right 3743# tool to use in cross-compilation environments, therefore Automake 3744# will honor the 'STRIP' environment variable to overrule this program. 3745if test "$cross_compiling" != no; then 3746 if test -n "$ac_tool_prefix"; then 3747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3748set dummy ${ac_tool_prefix}strip; ac_word=$2 3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3750printf %s "checking for $ac_word... " >&6; } 3751if test ${ac_cv_prog_STRIP+y} 3752then : 3753 printf %s "(cached) " >&6 3754else $as_nop 3755 if test -n "$STRIP"; then 3756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3757else 3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3759for as_dir in $PATH 3760do 3761 IFS=$as_save_IFS 3762 case $as_dir in #((( 3763 '') as_dir=./ ;; 3764 */) ;; 3765 *) as_dir=$as_dir/ ;; 3766 esac 3767 for ac_exec_ext in '' $ac_executable_extensions; do 3768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3769 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3771 break 2 3772 fi 3773done 3774 done 3775IFS=$as_save_IFS 3776 3777fi 3778fi 3779STRIP=$ac_cv_prog_STRIP 3780if test -n "$STRIP"; then 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3782printf "%s\n" "$STRIP" >&6; } 3783else 3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3785printf "%s\n" "no" >&6; } 3786fi 3787 3788 3789fi 3790if test -z "$ac_cv_prog_STRIP"; then 3791 ac_ct_STRIP=$STRIP 3792 # Extract the first word of "strip", so it can be a program name with args. 3793set dummy strip; ac_word=$2 3794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3795printf %s "checking for $ac_word... " >&6; } 3796if test ${ac_cv_prog_ac_ct_STRIP+y} 3797then : 3798 printf %s "(cached) " >&6 3799else $as_nop 3800 if test -n "$ac_ct_STRIP"; then 3801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3802else 3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3804for as_dir in $PATH 3805do 3806 IFS=$as_save_IFS 3807 case $as_dir in #((( 3808 '') as_dir=./ ;; 3809 */) ;; 3810 *) as_dir=$as_dir/ ;; 3811 esac 3812 for ac_exec_ext in '' $ac_executable_extensions; do 3813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3814 ac_cv_prog_ac_ct_STRIP="strip" 3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3816 break 2 3817 fi 3818done 3819 done 3820IFS=$as_save_IFS 3821 3822fi 3823fi 3824ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3825if test -n "$ac_ct_STRIP"; then 3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3827printf "%s\n" "$ac_ct_STRIP" >&6; } 3828else 3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3830printf "%s\n" "no" >&6; } 3831fi 3832 3833 if test "x$ac_ct_STRIP" = x; then 3834 STRIP=":" 3835 else 3836 case $cross_compiling:$ac_tool_warned in 3837yes:) 3838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3840ac_tool_warned=yes ;; 3841esac 3842 STRIP=$ac_ct_STRIP 3843 fi 3844else 3845 STRIP="$ac_cv_prog_STRIP" 3846fi 3847 3848fi 3849INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3850 3851 3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3853printf %s "checking for a race-free mkdir -p... " >&6; } 3854if test -z "$MKDIR_P"; then 3855 if test ${ac_cv_path_mkdir+y} 3856then : 3857 printf %s "(cached) " >&6 3858else $as_nop 3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3860for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3861do 3862 IFS=$as_save_IFS 3863 case $as_dir in #((( 3864 '') as_dir=./ ;; 3865 */) ;; 3866 *) as_dir=$as_dir/ ;; 3867 esac 3868 for ac_prog in mkdir gmkdir; do 3869 for ac_exec_ext in '' $ac_executable_extensions; do 3870 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3871 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3872 'mkdir ('*'coreutils) '* | \ 3873 'BusyBox '* | \ 3874 'mkdir (fileutils) '4.1*) 3875 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3876 break 3;; 3877 esac 3878 done 3879 done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884 3885 test -d ./--version && rmdir ./--version 3886 if test ${ac_cv_path_mkdir+y}; then 3887 MKDIR_P="$ac_cv_path_mkdir -p" 3888 else 3889 # As a last resort, use the slow shell script. Don't cache a 3890 # value for MKDIR_P within a source directory, because that will 3891 # break other packages using the cache if that directory is 3892 # removed, or if the value is a relative name. 3893 MKDIR_P="$ac_install_sh -d" 3894 fi 3895fi 3896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3897printf "%s\n" "$MKDIR_P" >&6; } 3898 3899for ac_prog in gawk mawk nawk awk 3900do 3901 # Extract the first word of "$ac_prog", so it can be a program name with args. 3902set dummy $ac_prog; ac_word=$2 3903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3904printf %s "checking for $ac_word... " >&6; } 3905if test ${ac_cv_prog_AWK+y} 3906then : 3907 printf %s "(cached) " >&6 3908else $as_nop 3909 if test -n "$AWK"; then 3910 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3911else 3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913for as_dir in $PATH 3914do 3915 IFS=$as_save_IFS 3916 case $as_dir in #((( 3917 '') as_dir=./ ;; 3918 */) ;; 3919 *) as_dir=$as_dir/ ;; 3920 esac 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3923 ac_cv_prog_AWK="$ac_prog" 3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3925 break 2 3926 fi 3927done 3928 done 3929IFS=$as_save_IFS 3930 3931fi 3932fi 3933AWK=$ac_cv_prog_AWK 3934if test -n "$AWK"; then 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3936printf "%s\n" "$AWK" >&6; } 3937else 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3939printf "%s\n" "no" >&6; } 3940fi 3941 3942 3943 test -n "$AWK" && break 3944done 3945 3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3947printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3948set x ${MAKE-make} 3949ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3950if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3951then : 3952 printf %s "(cached) " >&6 3953else $as_nop 3954 cat >conftest.make <<\_ACEOF 3955SHELL = /bin/sh 3956all: 3957 @echo '@@@%%%=$(MAKE)=@@@%%%' 3958_ACEOF 3959# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3960case `${MAKE-make} -f conftest.make 2>/dev/null` in 3961 *@@@%%%=?*=@@@%%%*) 3962 eval ac_cv_prog_make_${ac_make}_set=yes;; 3963 *) 3964 eval ac_cv_prog_make_${ac_make}_set=no;; 3965esac 3966rm -f conftest.make 3967fi 3968if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3970printf "%s\n" "yes" >&6; } 3971 SET_MAKE= 3972else 3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3974printf "%s\n" "no" >&6; } 3975 SET_MAKE="MAKE=${MAKE-make}" 3976fi 3977 3978rm -rf .tst 2>/dev/null 3979mkdir .tst 2>/dev/null 3980if test -d .tst; then 3981 am__leading_dot=. 3982else 3983 am__leading_dot=_ 3984fi 3985rmdir .tst 2>/dev/null 3986 3987if test "`cd $srcdir && pwd`" != "`pwd`"; then 3988 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3989 # is not polluted with repeated "-I." 3990 am__isrc=' -I$(srcdir)' 3991 # test to see if srcdir already configured 3992 if test -f $srcdir/config.status; then 3993 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3994 fi 3995fi 3996 3997# test whether we have cygpath 3998if test -z "$CYGPATH_W"; then 3999 if (cygpath --version) >/dev/null 2>/dev/null; then 4000 CYGPATH_W='cygpath -w' 4001 else 4002 CYGPATH_W=echo 4003 fi 4004fi 4005 4006 4007# Define the identity of the package. 4008 PACKAGE='syslog-ng' 4009 VERSION='3.35.1' 4010 4011 4012# Some tools Automake needs. 4013 4014ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4015 4016 4017AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4018 4019 4020AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4021 4022 4023AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4024 4025 4026MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4027 4028# For better backward compatibility. To be removed once Automake 1.9.x 4029# dies out for good. For more background, see: 4030# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4031# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4032mkdir_p='$(MKDIR_P)' 4033 4034# We need awk for the "check" target (and possibly the TAP driver). The 4035# system "awk" is bad on some platforms. 4036# Always define AMTAR for backward compatibility. Yes, it's still used 4037# in the wild :-( We should find a proper way to deprecate it ... 4038AMTAR='$${TAR-tar}' 4039 4040 4041# We'll loop over all known methods to create a tar archive until one works. 4042_am_tools='gnutar pax cpio none' 4043 4044am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4045 4046 4047 4048 4049 4050# Variables for tags utilities; see am/tags.am 4051if test -z "$CTAGS"; then 4052 CTAGS=ctags 4053fi 4054 4055if test -z "$ETAGS"; then 4056 ETAGS=etags 4057fi 4058 4059if test -z "$CSCOPE"; then 4060 CSCOPE=cscope 4061fi 4062 4063 4064 4065# POSIX will say in a future version that running "rm -f" with no argument 4066# is OK; and we want to be able to make that assumption in our Makefile 4067# recipes. So use an aggressive probe to check that the usage we want is 4068# actually supported "in the wild" to an acceptable degree. 4069# See automake bug#10828. 4070# To make any issue more visible, cause the running configure to be aborted 4071# by default if the 'rm' program in use doesn't match our expectations; the 4072# user can still override this though. 4073if rm -f && rm -fr && rm -rf; then : OK; else 4074 cat >&2 <<'END' 4075Oops! 4076 4077Your 'rm' program seems unable to run without file operands specified 4078on the command line, even when the '-f' option is present. This is contrary 4079to the behaviour of most rm programs out there, and not conforming with 4080the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4081 4082Please tell bug-automake@gnu.org about your system, including the value 4083of your $PATH and any error possibly output before this message. This 4084can help us improve future automake versions. 4085 4086END 4087 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4088 echo 'Configuration will proceed anyway, since you have set the' >&2 4089 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4090 echo >&2 4091 else 4092 cat >&2 <<'END' 4093Aborting the configuration process, to ensure you take notice of the issue. 4094 4095You can download and install GNU coreutils to get an 'rm' implementation 4096that behaves properly: <https://www.gnu.org/software/coreutils/>. 4097 4098If you want to complete the configuration process using your problematic 4099'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4100to "yes", and re-run configure. 4101 4102END 4103 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4104 fi 4105fi 4106 4107# Always define AMTAR for backward compatibility. Yes, it's still used 4108# in the wild :-( We should find a proper way to deprecate it ... 4109AMTAR='$${TAR-tar}' 4110 4111 4112# We'll loop over all known methods to create a tar archive until one works. 4113_am_tools='gnutar plaintar pax cpio none' 4114 4115# The POSIX 1988 'ustar' format is defined with fixed-size fields. 4116 # There is notably a 21 bits limit for the UID and the GID. In fact, 4117 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4118 # and bug#13588). 4119 am_max_uid=2097151 # 2^21 - 1 4120 am_max_gid=$am_max_uid 4121 # The $UID and $GID variables are not portable, so we need to resort 4122 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4123 # below are definitely unexpected, so allow the users to see them 4124 # (that is, avoid stderr redirection). 4125 am_uid=`id -u || echo unknown` 4126 am_gid=`id -g || echo unknown` 4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4128printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4129 if test $am_uid -le $am_max_uid; then 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4131printf "%s\n" "yes" >&6; } 4132 else 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4134printf "%s\n" "no" >&6; } 4135 _am_tools=none 4136 fi 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4138printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4139 if test $am_gid -le $am_max_gid; then 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4141printf "%s\n" "yes" >&6; } 4142 else 4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4144printf "%s\n" "no" >&6; } 4145 _am_tools=none 4146 fi 4147 4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4149printf %s "checking how to create a ustar tar archive... " >&6; } 4150 4151 # Go ahead even if we have the value already cached. We do so because we 4152 # need to set the values for the 'am__tar' and 'am__untar' variables. 4153 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4154 4155 for _am_tool in $_am_tools; do 4156 case $_am_tool in 4157 gnutar) 4158 for _am_tar in tar gnutar gtar; do 4159 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4160 ($_am_tar --version) >&5 2>&5 4161 ac_status=$? 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } && break 4164 done 4165 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4166 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4167 am__untar="$_am_tar -xf -" 4168 ;; 4169 plaintar) 4170 # Must skip GNU tar: if it does not support --format= it doesn't create 4171 # ustar tarball either. 4172 (tar --version) >/dev/null 2>&1 && continue 4173 am__tar='tar chf - "$$tardir"' 4174 am__tar_='tar chf - "$tardir"' 4175 am__untar='tar xf -' 4176 ;; 4177 pax) 4178 am__tar='pax -L -x ustar -w "$$tardir"' 4179 am__tar_='pax -L -x ustar -w "$tardir"' 4180 am__untar='pax -r' 4181 ;; 4182 cpio) 4183 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4184 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4185 am__untar='cpio -i -H ustar -d' 4186 ;; 4187 none) 4188 am__tar=false 4189 am__tar_=false 4190 am__untar=false 4191 ;; 4192 esac 4193 4194 # If the value was cached, stop now. We just wanted to have am__tar 4195 # and am__untar set. 4196 test -n "${am_cv_prog_tar_ustar}" && break 4197 4198 # tar/untar a dummy directory, and stop if the command works. 4199 rm -rf conftest.dir 4200 mkdir conftest.dir 4201 echo GrepMe > conftest.dir/file 4202 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4203 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4204 ac_status=$? 4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 (exit $ac_status); } 4207 rm -rf conftest.dir 4208 if test -s conftest.tar; then 4209 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4210 ($am__untar <conftest.tar) >&5 2>&5 4211 ac_status=$? 4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4213 (exit $ac_status); } 4214 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4215 (cat conftest.dir/file) >&5 2>&5 4216 ac_status=$? 4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4218 (exit $ac_status); } 4219 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4220 fi 4221 done 4222 rm -rf conftest.dir 4223 4224 if test ${am_cv_prog_tar_ustar+y} 4225then : 4226 printf %s "(cached) " >&6 4227else $as_nop 4228 am_cv_prog_tar_ustar=$_am_tool 4229fi 4230 4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4232printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 4233 4234 4235 4236 4237if test -n "$SNAPSHOT_VERSION"; then 4238 PACKAGE_VERSION=$PACKAGE_VERSION+$SNAPSHOT_VERSION 4239fi 4240 4241if test -z "$RELEASE_TYPE"; then 4242 RELEASE_TYPE=stable 4243fi 4244 4245if test -z "$BROCHURE_VERSION"; then 4246 _MAJOR=`echo $VERSION | cut -f1 -d'.'` 4247 _MINOR=`echo $VERSION | cut -f2 -d'.'` 4248 case "$RELEASE_TYPE" in 4249 stable) BROCHURE_VERSION="$_MAJOR";; 4250 feature) BROCHURE_VERSION="$_MAJOR F$_MINOR";; 4251 *) BROCHURE_VERSION="$VERSION dogfood edition. Please contact your syslog-ng release manager to fix the configure scritpt";; 4252 esac 4253fi 4254 4255if test -z "$COMBINED_VERSION"; then 4256 COMBINED_VERSION="$BROCHURE_VERSION ($VERSION)" 4257fi 4258 4259TECHNICAL_VERSION=$VERSION 4260 4261 4262printf "%s\n" "#define RELEASE_TYPE \"$RELEASE_TYPE\"" >>confdefs.h 4263 4264 4265printf "%s\n" "#define BROCHURE_VERSION \"$BROCHURE_VERSION\"" >>confdefs.h 4266 4267 4268printf "%s\n" "#define COMBINED_VERSION \"$COMBINED_VERSION\"" >>confdefs.h 4269 4270 4271printf "%s\n" "#define SOURCE_REVISION \"$SOURCE_REVISION\"" >>confdefs.h 4272 4273 4274 4275 4276 4277 4278 4279if test "x$prefix" = "xNONE"; then 4280 prefix=$ac_default_prefix 4281fi 4282if test "x$exec_prefix" = "xNONE"; then 4283 exec_prefix='${prefix}' 4284fi 4285pidfiledir='${localstatedir}' 4286moduledir='${exec_prefix}/lib/syslog-ng' 4287loggenplugindir='${moduledir}/loggen' 4288toolsdir='${datadir}/syslog-ng/tools' 4289xsddir='${datadir}/syslog-ng/xsd' 4290 4291config_includedir='${datadir}/syslog-ng/include' 4292scldir="${config_includedir}/scl" 4293abs_topsrcdir=`(cd $srcdir && pwd)` 4294 4295ac_config_headers="$ac_config_headers config.h" 4296 4297 4298 4299 4300# Check whether --with-libnet was given. 4301if test ${with_libnet+y} 4302then : 4303 withval=$with_libnet; 4304else $as_nop 4305 with_libnet="" 4306fi 4307 4308 4309 4310# Check whether --with-net-snmp was given. 4311if test ${with_net_snmp+y} 4312then : 4313 withval=$with_net_snmp; 4314else $as_nop 4315 with_net_snmp="" 4316fi 4317 4318 4319 4320# Check whether --with-pidfile-dir was given. 4321if test ${with_pidfile_dir+y} 4322then : 4323 withval=$with_pidfile_dir; pidfiledir=$with_pidfile_dir 4324fi 4325 4326 4327 4328# Check whether --with-module-dir was given. 4329if test ${with_module_dir+y} 4330then : 4331 withval=$with_module_dir; moduledir=$with_module_dir 4332fi 4333 4334 4335 4336# Check whether --with-loggen-plugin-dir was given. 4337if test ${with_loggen_plugin_dir+y} 4338then : 4339 withval=$with_loggen_plugin_dir; loggenplugindir=$with_loggen_plugin_dir 4340fi 4341 4342 4343 4344# Check whether --with-module-path was given. 4345if test ${with_module_path+y} 4346then : 4347 withval=$with_module_path; module_path=$with_module_path 4348fi 4349 4350 4351 4352# Check whether --with-timezone-dir was given. 4353if test ${with_timezone_dir+y} 4354then : 4355 withval=$with_timezone_dir; timezonedir=$with_timezone_dir 4356fi 4357 4358 4359 4360# Check whether --with-ld-library-path was given. 4361if test ${with_ld_library_path+y} 4362then : 4363 withval=$with_ld_library_path; env_ld_library_path=$with_ld_library_path 4364fi 4365 4366 4367 4368# Check whether --with-systemdsystemunitdir was given. 4369if test ${with_systemdsystemunitdir+y} 4370then : 4371 withval=$with_systemdsystemunitdir; 4372fi 4373 4374 4375 4376# Check whether --with-package_name was given. 4377if test ${with_package_name+y} 4378then : 4379 withval=$with_package_name; PACKAGE_NAME=$with_package_name 4380fi 4381 4382 4383# Check whether --enable-forced_server_mode was given. 4384if test ${enable_forced_server_mode+y} 4385then : 4386 enableval=$enable_forced_server_mode; 4387else $as_nop 4388 enable_forced_server_mode="yes" 4389fi 4390 4391 4392# Check whether --enable-debug was given. 4393if test ${enable_debug+y} 4394then : 4395 enableval=$enable_debug; 4396else $as_nop 4397 enable_debug="no" 4398fi 4399 4400 4401# Check whether --enable-force_gnu99 was given. 4402if test ${enable_force_gnu99+y} 4403then : 4404 enableval=$enable_force_gnu99; 4405else $as_nop 4406 force_gnu99="no" 4407fi 4408 4409 4410# Check whether --enable-extra-warnings was given. 4411if test ${enable_extra_warnings+y} 4412then : 4413 enableval=$enable_extra_warnings; 4414else $as_nop 4415 enable_extra_warnings="no" 4416fi 4417 4418 4419# Check whether --enable-env-wrapper was given. 4420if test ${enable_env_wrapper+y} 4421then : 4422 enableval=$enable_env_wrapper; 4423else $as_nop 4424 enable_env_wrapper=auto 4425fi 4426 4427 4428# Check whether --enable-gprof was given. 4429if test ${enable_gprof+y} 4430then : 4431 enableval=$enable_gprof; 4432else $as_nop 4433 enable_gprof="no" 4434fi 4435 4436 4437# Check whether --enable-memtrace was given. 4438if test ${enable_memtrace+y} 4439then : 4440 enableval=$enable_memtrace; 4441fi 4442 4443 4444 4445# Check whether --with-sanitizer was given. 4446if test ${with_sanitizer+y} 4447then : 4448 withval=$with_sanitizer; 4449else $as_nop 4450 with_sanitizer="no" 4451fi 4452 4453 4454# Check whether --enable-dynamic-linking was given. 4455if test ${enable_dynamic_linking+y} 4456then : 4457 enableval=$enable_dynamic_linking; 4458else $as_nop 4459 enable_dynamic_linking="auto" 4460fi 4461 4462 4463# Check whether --enable-mixed-linking was given. 4464if test ${enable_mixed_linking+y} 4465then : 4466 enableval=$enable_mixed_linking; 4467else $as_nop 4468 enable_mixed_linking="auto" 4469fi 4470 4471 4472# Check whether --enable-ipv6 was given. 4473if test ${enable_ipv6+y} 4474then : 4475 enableval=$enable_ipv6; 4476else $as_nop 4477 enable_ipv6="auto" 4478fi 4479 4480 4481# Check whether --enable-tcp-wrapper was given. 4482if test ${enable_tcp_wrapper+y} 4483then : 4484 enableval=$enable_tcp_wrapper; 4485else $as_nop 4486 enable_tcp_wrapper="auto" 4487fi 4488 4489 4490# Check whether --enable-spoof-source was given. 4491if test ${enable_spoof_source+y} 4492then : 4493 enableval=$enable_spoof_source; 4494else $as_nop 4495 enable_spoof_source="auto" 4496fi 4497 4498 4499# Check whether --enable-sun-streams was given. 4500if test ${enable_sun_streams+y} 4501then : 4502 enableval=$enable_sun_streams; 4503else $as_nop 4504 enable_sun_streams="auto" 4505fi 4506 4507 4508# Check whether --enable-openbsd-system-source was given. 4509if test ${enable_openbsd_system_source+y} 4510then : 4511 enableval=$enable_openbsd_system_source; 4512else $as_nop 4513 enable_openbsd_system_source="auto" 4514fi 4515 4516 4517# Check whether --enable-sql was given. 4518if test ${enable_sql+y} 4519then : 4520 enableval=$enable_sql; 4521else $as_nop 4522 enable_sql="auto" 4523fi 4524 4525 4526# Check whether --enable-pacct was given. 4527if test ${enable_pacct+y} 4528then : 4529 enableval=$enable_pacct; 4530else $as_nop 4531 enable_pacct="no" 4532fi 4533 4534 4535# Check whether --enable-linux-caps was given. 4536if test ${enable_linux_caps+y} 4537then : 4538 enableval=$enable_linux_caps; 4539else $as_nop 4540 enable_linux_caps="auto" 4541fi 4542 4543 4544# Check whether --enable-gcov was given. 4545if test ${enable_gcov+y} 4546then : 4547 enableval=$enable_gcov; 4548else $as_nop 4549 enable_gcov="no" 4550fi 4551 4552 4553# Check whether --enable-mongodb was given. 4554if test ${enable_mongodb+y} 4555then : 4556 enableval=$enable_mongodb; 4557else $as_nop 4558 enable_mongodb="auto" 4559fi 4560 4561 4562 4563# Check whether --with-jsonc was given. 4564if test ${with_jsonc+y} 4565then : 4566 withval=$with_jsonc; 4567else $as_nop 4568 with_jsonc="internal" 4569fi 4570 4571 4572# Check whether --enable-json was given. 4573if test ${enable_json+y} 4574then : 4575 enableval=$enable_json; if test "x$enableval" != "xno"; then with_jsonc="system"; else with_jsonc="no"; fi 4576fi 4577 4578 4579# Check whether --enable-amqp was given. 4580if test ${enable_amqp+y} 4581then : 4582 enableval=$enable_amqp; 4583else $as_nop 4584 enable_amqp="auto" 4585fi 4586 4587 4588# Check whether --enable-stomp was given. 4589if test ${enable_stomp+y} 4590then : 4591 enableval=$enable_stomp; 4592else $as_nop 4593 enable_stomp="yes" 4594fi 4595 4596 4597 4598# Check whether --with-ivykis was given. 4599if test ${with_ivykis+y} 4600then : 4601 withval=$with_ivykis; 4602else $as_nop 4603 with_ivykis="internal" 4604fi 4605 4606 4607# Check whether --enable-smtp was given. 4608if test ${enable_smtp+y} 4609then : 4610 enableval=$enable_smtp; 4611else $as_nop 4612 enable_smtp="auto" 4613fi 4614 4615 4616 4617# Check whether --with-libesmtp was given. 4618if test ${with_libesmtp+y} 4619then : 4620 withval=$with_libesmtp; 4621fi 4622 4623 4624# Check whether --enable-mqtt was given. 4625if test ${enable_mqtt+y} 4626then : 4627 enableval=$enable_mqtt; 4628else $as_nop 4629 enable_mqtt="auto" 4630fi 4631 4632 4633 4634# Check whether --with-libpaho-mqtt was given. 4635if test ${with_libpaho_mqtt+y} 4636then : 4637 withval=$with_libpaho_mqtt; 4638fi 4639 4640 4641 4642# Check whether --enable-http was given. 4643if test ${enable_http+y} 4644then : 4645 enableval=$enable_http; 4646else $as_nop 4647 enable_http="auto" 4648fi 4649 4650 4651 4652# Check whether --with-libcurl was given. 4653if test ${with_libcurl+y} 4654then : 4655 withval=$with_libcurl; 4656fi 4657 4658 4659# Check whether --enable-redis was given. 4660if test ${enable_redis+y} 4661then : 4662 enableval=$enable_redis; 4663else $as_nop 4664 enable_redis="auto" 4665fi 4666 4667 4668 4669# Check whether --with-libhiredis was given. 4670if test ${with_libhiredis+y} 4671then : 4672 withval=$with_libhiredis; 4673fi 4674 4675 4676# Check whether --enable-systemd was given. 4677if test ${enable_systemd+y} 4678then : 4679 enableval=$enable_systemd; 4680else $as_nop 4681 enable_systemd="auto" 4682fi 4683 4684 4685# Check whether --enable-geoip2 was given. 4686if test ${enable_geoip2+y} 4687then : 4688 enableval=$enable_geoip2; 4689else $as_nop 4690 enable_geoip2="auto" 4691fi 4692 4693 4694# Check whether --enable-riemann was given. 4695if test ${enable_riemann+y} 4696then : 4697 enableval=$enable_riemann; 4698else $as_nop 4699 enable_riemann="auto" 4700fi 4701 4702 4703 4704# Check whether --with-compile-date was given. 4705if test ${with_compile_date+y} 4706then : 4707 withval=$with_compile_date; wcmp_date="${withval}" 4708else $as_nop 4709 wcmp_date="yes" 4710fi 4711 4712 4713 4714# Check whether --with-systemd-journal was given. 4715if test ${with_systemd_journal+y} 4716then : 4717 withval=$with_systemd_journal; 4718else $as_nop 4719 with_systemd_journal="auto" 4720fi 4721 4722 4723# Check whether --enable-python was given. 4724if test ${enable_python+y} 4725then : 4726 enableval=$enable_python; 4727else $as_nop 4728 enable_python="auto" 4729fi 4730 4731 4732# Check whether --enable-kafka was given. 4733if test ${enable_kafka+y} 4734then : 4735 enableval=$enable_kafka; 4736else $as_nop 4737 enable_kafka="auto" 4738fi 4739 4740 4741 4742# Check whether --with-python was given. 4743if test ${with_python+y} 4744then : 4745 withval=$with_python; 4746else $as_nop 4747 with_python="auto" 4748fi 4749 4750 4751 4752# Check whether --with-python3-home was given. 4753if test ${with_python3_home+y} 4754then : 4755 withval=$with_python3_home; python3_home_dir=$with_python3_home 4756fi 4757 4758 4759 4760# Check whether --with-python2-home was given. 4761if test ${with_python2_home+y} 4762then : 4763 withval=$with_python2_home; python2_home_dir=$with_python2_home 4764fi 4765 4766 4767 4768# Check whether --with-pylint was given. 4769if test ${with_pylint+y} 4770then : 4771 withval=$with_pylint; 4772fi 4773 4774 4775 4776# Check whether --with-docbook was given. 4777if test ${with_docbook+y} 4778then : 4779 withval=$with_docbook; 4780else $as_nop 4781 with_docbook="auto" 4782fi 4783 4784 4785# Check whether --enable-manpages was given. 4786if test ${enable_manpages+y} 4787then : 4788 enableval=$enable_manpages; 4789else $as_nop 4790 enable_manpages="no"; XSL_STYLESHEET="" 4791fi 4792 4793# Check whether --enable-manpages-install was given. 4794if test ${enable_manpages_install+y} 4795then : 4796 enableval=$enable_manpages_install; 4797else $as_nop 4798 enable_manpages_install="auto" 4799fi 4800 4801 4802# Check whether --enable-java was given. 4803if test ${enable_java+y} 4804then : 4805 enableval=$enable_java; 4806else $as_nop 4807 enable_java="auto" 4808fi 4809 4810 4811# Check whether --enable-java-modules was given. 4812if test ${enable_java_modules+y} 4813then : 4814 enableval=$enable_java_modules; 4815else $as_nop 4816 enable_java_modules="auto" 4817fi 4818 4819 4820# Check whether --enable-native was given. 4821if test ${enable_native+y} 4822then : 4823 enableval=$enable_native; 4824else $as_nop 4825 enable_native="auto" 4826fi 4827 4828 4829# Check whether --enable-afsnmp was given. 4830if test ${enable_afsnmp+y} 4831then : 4832 enableval=$enable_afsnmp; 4833else $as_nop 4834 enable_afsnmp="auto" 4835fi 4836 4837 4838# Check whether --enable-all-modules was given. 4839if test ${enable_all_modules+y} 4840then : 4841 enableval=$enable_all_modules; 4842else $as_nop 4843 enable_all_modules="auto" 4844fi 4845 4846 4847if test "x$enable_all_modules" != "xauto"; then 4848 state="$enable_all_modules" 4849 4850 MODULES="spoof_source sun_streams sql pacct mongodb json amqp stomp \ 4851 redis systemd geoip2 riemann ipv6 smtp native python java java_modules \ 4852 http afsnmp kafka mqtt" 4853 for mod in ${MODULES}; do 4854 modstate=$(eval echo \$enable_${mod}) 4855 if test "x$modstate" = "xauto"; then 4856 eval enable_${mod}=${state} 4857 fi 4858 done 4859fi 4860 4861if test "x$wcmp_date" != "xno"; then 4862 wcmp_date="1" 4863else 4864 wcmp_date="0" 4865fi 4866 4867patheval() 4868{ 4869 OLD=$1 4870 NEW=`eval echo $1` 4871 while test "x$OLD" != "x$NEW" 4872 do 4873 OLD=$NEW 4874 NEW=`eval echo $OLD` 4875 done 4876 echo $OLD 4877} 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888ac_ext=c 4889ac_cpp='$CPP $CPPFLAGS' 4890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4892ac_compiler_gnu=$ac_cv_c_compiler_gnu 4893if test -n "$ac_tool_prefix"; then 4894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4895set dummy ${ac_tool_prefix}gcc; ac_word=$2 4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4897printf %s "checking for $ac_word... " >&6; } 4898if test ${ac_cv_prog_CC+y} 4899then : 4900 printf %s "(cached) " >&6 4901else $as_nop 4902 if test -n "$CC"; then 4903 ac_cv_prog_CC="$CC" # Let the user override the test. 4904else 4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4906for as_dir in $PATH 4907do 4908 IFS=$as_save_IFS 4909 case $as_dir in #((( 4910 '') as_dir=./ ;; 4911 */) ;; 4912 *) as_dir=$as_dir/ ;; 4913 esac 4914 for ac_exec_ext in '' $ac_executable_extensions; do 4915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4916 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4918 break 2 4919 fi 4920done 4921 done 4922IFS=$as_save_IFS 4923 4924fi 4925fi 4926CC=$ac_cv_prog_CC 4927if test -n "$CC"; then 4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4929printf "%s\n" "$CC" >&6; } 4930else 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4932printf "%s\n" "no" >&6; } 4933fi 4934 4935 4936fi 4937if test -z "$ac_cv_prog_CC"; then 4938 ac_ct_CC=$CC 4939 # Extract the first word of "gcc", so it can be a program name with args. 4940set dummy gcc; ac_word=$2 4941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4942printf %s "checking for $ac_word... " >&6; } 4943if test ${ac_cv_prog_ac_ct_CC+y} 4944then : 4945 printf %s "(cached) " >&6 4946else $as_nop 4947 if test -n "$ac_ct_CC"; then 4948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4949else 4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4951for as_dir in $PATH 4952do 4953 IFS=$as_save_IFS 4954 case $as_dir in #((( 4955 '') as_dir=./ ;; 4956 */) ;; 4957 *) as_dir=$as_dir/ ;; 4958 esac 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4961 ac_cv_prog_ac_ct_CC="gcc" 4962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4963 break 2 4964 fi 4965done 4966 done 4967IFS=$as_save_IFS 4968 4969fi 4970fi 4971ac_ct_CC=$ac_cv_prog_ac_ct_CC 4972if test -n "$ac_ct_CC"; then 4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4974printf "%s\n" "$ac_ct_CC" >&6; } 4975else 4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977printf "%s\n" "no" >&6; } 4978fi 4979 4980 if test "x$ac_ct_CC" = x; then 4981 CC="" 4982 else 4983 case $cross_compiling:$ac_tool_warned in 4984yes:) 4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4986printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4987ac_tool_warned=yes ;; 4988esac 4989 CC=$ac_ct_CC 4990 fi 4991else 4992 CC="$ac_cv_prog_CC" 4993fi 4994 4995if test -z "$CC"; then 4996 if test -n "$ac_tool_prefix"; then 4997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4998set dummy ${ac_tool_prefix}cc; ac_word=$2 4999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5000printf %s "checking for $ac_word... " >&6; } 5001if test ${ac_cv_prog_CC+y} 5002then : 5003 printf %s "(cached) " >&6 5004else $as_nop 5005 if test -n "$CC"; then 5006 ac_cv_prog_CC="$CC" # Let the user override the test. 5007else 5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5009for as_dir in $PATH 5010do 5011 IFS=$as_save_IFS 5012 case $as_dir in #((( 5013 '') as_dir=./ ;; 5014 */) ;; 5015 *) as_dir=$as_dir/ ;; 5016 esac 5017 for ac_exec_ext in '' $ac_executable_extensions; do 5018 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5019 ac_cv_prog_CC="${ac_tool_prefix}cc" 5020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5021 break 2 5022 fi 5023done 5024 done 5025IFS=$as_save_IFS 5026 5027fi 5028fi 5029CC=$ac_cv_prog_CC 5030if test -n "$CC"; then 5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5032printf "%s\n" "$CC" >&6; } 5033else 5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5035printf "%s\n" "no" >&6; } 5036fi 5037 5038 5039 fi 5040fi 5041if test -z "$CC"; then 5042 # Extract the first word of "cc", so it can be a program name with args. 5043set dummy cc; ac_word=$2 5044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5045printf %s "checking for $ac_word... " >&6; } 5046if test ${ac_cv_prog_CC+y} 5047then : 5048 printf %s "(cached) " >&6 5049else $as_nop 5050 if test -n "$CC"; then 5051 ac_cv_prog_CC="$CC" # Let the user override the test. 5052else 5053 ac_prog_rejected=no 5054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5055for as_dir in $PATH 5056do 5057 IFS=$as_save_IFS 5058 case $as_dir in #((( 5059 '') as_dir=./ ;; 5060 */) ;; 5061 *) as_dir=$as_dir/ ;; 5062 esac 5063 for ac_exec_ext in '' $ac_executable_extensions; do 5064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5065 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5066 ac_prog_rejected=yes 5067 continue 5068 fi 5069 ac_cv_prog_CC="cc" 5070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5071 break 2 5072 fi 5073done 5074 done 5075IFS=$as_save_IFS 5076 5077if test $ac_prog_rejected = yes; then 5078 # We found a bogon in the path, so make sure we never use it. 5079 set dummy $ac_cv_prog_CC 5080 shift 5081 if test $# != 0; then 5082 # We chose a different compiler from the bogus one. 5083 # However, it has the same basename, so the bogon will be chosen 5084 # first if we set CC to just the basename; use the full file name. 5085 shift 5086 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5087 fi 5088fi 5089fi 5090fi 5091CC=$ac_cv_prog_CC 5092if test -n "$CC"; then 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5094printf "%s\n" "$CC" >&6; } 5095else 5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5097printf "%s\n" "no" >&6; } 5098fi 5099 5100 5101fi 5102if test -z "$CC"; then 5103 if test -n "$ac_tool_prefix"; then 5104 for ac_prog in cl.exe 5105 do 5106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5107set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5109printf %s "checking for $ac_word... " >&6; } 5110if test ${ac_cv_prog_CC+y} 5111then : 5112 printf %s "(cached) " >&6 5113else $as_nop 5114 if test -n "$CC"; then 5115 ac_cv_prog_CC="$CC" # Let the user override the test. 5116else 5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5118for as_dir in $PATH 5119do 5120 IFS=$as_save_IFS 5121 case $as_dir in #((( 5122 '') as_dir=./ ;; 5123 */) ;; 5124 *) as_dir=$as_dir/ ;; 5125 esac 5126 for ac_exec_ext in '' $ac_executable_extensions; do 5127 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5130 break 2 5131 fi 5132done 5133 done 5134IFS=$as_save_IFS 5135 5136fi 5137fi 5138CC=$ac_cv_prog_CC 5139if test -n "$CC"; then 5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5141printf "%s\n" "$CC" >&6; } 5142else 5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5144printf "%s\n" "no" >&6; } 5145fi 5146 5147 5148 test -n "$CC" && break 5149 done 5150fi 5151if test -z "$CC"; then 5152 ac_ct_CC=$CC 5153 for ac_prog in cl.exe 5154do 5155 # Extract the first word of "$ac_prog", so it can be a program name with args. 5156set dummy $ac_prog; ac_word=$2 5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5158printf %s "checking for $ac_word... " >&6; } 5159if test ${ac_cv_prog_ac_ct_CC+y} 5160then : 5161 printf %s "(cached) " >&6 5162else $as_nop 5163 if test -n "$ac_ct_CC"; then 5164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5165else 5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5167for as_dir in $PATH 5168do 5169 IFS=$as_save_IFS 5170 case $as_dir in #((( 5171 '') as_dir=./ ;; 5172 */) ;; 5173 *) as_dir=$as_dir/ ;; 5174 esac 5175 for ac_exec_ext in '' $ac_executable_extensions; do 5176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5177 ac_cv_prog_ac_ct_CC="$ac_prog" 5178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5179 break 2 5180 fi 5181done 5182 done 5183IFS=$as_save_IFS 5184 5185fi 5186fi 5187ac_ct_CC=$ac_cv_prog_ac_ct_CC 5188if test -n "$ac_ct_CC"; then 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5190printf "%s\n" "$ac_ct_CC" >&6; } 5191else 5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5193printf "%s\n" "no" >&6; } 5194fi 5195 5196 5197 test -n "$ac_ct_CC" && break 5198done 5199 5200 if test "x$ac_ct_CC" = x; then 5201 CC="" 5202 else 5203 case $cross_compiling:$ac_tool_warned in 5204yes:) 5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5206printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5207ac_tool_warned=yes ;; 5208esac 5209 CC=$ac_ct_CC 5210 fi 5211fi 5212 5213fi 5214if test -z "$CC"; then 5215 if test -n "$ac_tool_prefix"; then 5216 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5217set dummy ${ac_tool_prefix}clang; ac_word=$2 5218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5219printf %s "checking for $ac_word... " >&6; } 5220if test ${ac_cv_prog_CC+y} 5221then : 5222 printf %s "(cached) " >&6 5223else $as_nop 5224 if test -n "$CC"; then 5225 ac_cv_prog_CC="$CC" # Let the user override the test. 5226else 5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5228for as_dir in $PATH 5229do 5230 IFS=$as_save_IFS 5231 case $as_dir in #((( 5232 '') as_dir=./ ;; 5233 */) ;; 5234 *) as_dir=$as_dir/ ;; 5235 esac 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5238 ac_cv_prog_CC="${ac_tool_prefix}clang" 5239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5240 break 2 5241 fi 5242done 5243 done 5244IFS=$as_save_IFS 5245 5246fi 5247fi 5248CC=$ac_cv_prog_CC 5249if test -n "$CC"; then 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5251printf "%s\n" "$CC" >&6; } 5252else 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254printf "%s\n" "no" >&6; } 5255fi 5256 5257 5258fi 5259if test -z "$ac_cv_prog_CC"; then 5260 ac_ct_CC=$CC 5261 # Extract the first word of "clang", so it can be a program name with args. 5262set dummy clang; ac_word=$2 5263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5264printf %s "checking for $ac_word... " >&6; } 5265if test ${ac_cv_prog_ac_ct_CC+y} 5266then : 5267 printf %s "(cached) " >&6 5268else $as_nop 5269 if test -n "$ac_ct_CC"; then 5270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5271else 5272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH 5274do 5275 IFS=$as_save_IFS 5276 case $as_dir in #((( 5277 '') as_dir=./ ;; 5278 */) ;; 5279 *) as_dir=$as_dir/ ;; 5280 esac 5281 for ac_exec_ext in '' $ac_executable_extensions; do 5282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5283 ac_cv_prog_ac_ct_CC="clang" 5284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5285 break 2 5286 fi 5287done 5288 done 5289IFS=$as_save_IFS 5290 5291fi 5292fi 5293ac_ct_CC=$ac_cv_prog_ac_ct_CC 5294if test -n "$ac_ct_CC"; then 5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5296printf "%s\n" "$ac_ct_CC" >&6; } 5297else 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5299printf "%s\n" "no" >&6; } 5300fi 5301 5302 if test "x$ac_ct_CC" = x; then 5303 CC="" 5304 else 5305 case $cross_compiling:$ac_tool_warned in 5306yes:) 5307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5308printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5309ac_tool_warned=yes ;; 5310esac 5311 CC=$ac_ct_CC 5312 fi 5313else 5314 CC="$ac_cv_prog_CC" 5315fi 5316 5317fi 5318 5319 5320test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5321printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5322as_fn_error $? "no acceptable C compiler found in \$PATH 5323See \`config.log' for more details" "$LINENO" 5; } 5324 5325# Provide some information about the compiler. 5326printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5327set X $ac_compile 5328ac_compiler=$2 5329for ac_option in --version -v -V -qversion -version; do 5330 { { ac_try="$ac_compiler $ac_option >&5" 5331case "(($ac_try" in 5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5333 *) ac_try_echo=$ac_try;; 5334esac 5335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5336printf "%s\n" "$ac_try_echo"; } >&5 5337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5338 ac_status=$? 5339 if test -s conftest.err; then 5340 sed '10a\ 5341... rest of stderr output deleted ... 5342 10q' conftest.err >conftest.er1 5343 cat conftest.er1 >&5 5344 fi 5345 rm -f conftest.er1 conftest.err 5346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5347 test $ac_status = 0; } 5348done 5349 5350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5351/* end confdefs.h. */ 5352 5353int 5354main (void) 5355{ 5356 5357 ; 5358 return 0; 5359} 5360_ACEOF 5361ac_clean_files_save=$ac_clean_files 5362ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5363# Try to create an executable without -o first, disregard a.out. 5364# It will help us diagnose broken compilers, and finding out an intuition 5365# of exeext. 5366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5367printf %s "checking whether the C compiler works... " >&6; } 5368ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5369 5370# The possible output files: 5371ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5372 5373ac_rmfiles= 5374for ac_file in $ac_files 5375do 5376 case $ac_file in 5377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5378 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5379 esac 5380done 5381rm -f $ac_rmfiles 5382 5383if { { ac_try="$ac_link_default" 5384case "(($ac_try" in 5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5386 *) ac_try_echo=$ac_try;; 5387esac 5388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5389printf "%s\n" "$ac_try_echo"; } >&5 5390 (eval "$ac_link_default") 2>&5 5391 ac_status=$? 5392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5393 test $ac_status = 0; } 5394then : 5395 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5396# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5397# in a Makefile. We should not override ac_cv_exeext if it was cached, 5398# so that the user can short-circuit this test for compilers unknown to 5399# Autoconf. 5400for ac_file in $ac_files '' 5401do 5402 test -f "$ac_file" || continue 5403 case $ac_file in 5404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5405 ;; 5406 [ab].out ) 5407 # We found the default executable, but exeext='' is most 5408 # certainly right. 5409 break;; 5410 *.* ) 5411 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5412 then :; else 5413 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5414 fi 5415 # We set ac_cv_exeext here because the later test for it is not 5416 # safe: cross compilers may not add the suffix if given an `-o' 5417 # argument, so we may need to know it at that point already. 5418 # Even if this section looks crufty: it has the advantage of 5419 # actually working. 5420 break;; 5421 * ) 5422 break;; 5423 esac 5424done 5425test "$ac_cv_exeext" = no && ac_cv_exeext= 5426 5427else $as_nop 5428 ac_file='' 5429fi 5430if test -z "$ac_file" 5431then : 5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5433printf "%s\n" "no" >&6; } 5434printf "%s\n" "$as_me: failed program was:" >&5 5435sed 's/^/| /' conftest.$ac_ext >&5 5436 5437{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5438printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5439as_fn_error 77 "C compiler cannot create executables 5440See \`config.log' for more details" "$LINENO" 5; } 5441else $as_nop 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5443printf "%s\n" "yes" >&6; } 5444fi 5445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5446printf %s "checking for C compiler default output file name... " >&6; } 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5448printf "%s\n" "$ac_file" >&6; } 5449ac_exeext=$ac_cv_exeext 5450 5451rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5452ac_clean_files=$ac_clean_files_save 5453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5454printf %s "checking for suffix of executables... " >&6; } 5455if { { ac_try="$ac_link" 5456case "(($ac_try" in 5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5458 *) ac_try_echo=$ac_try;; 5459esac 5460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5461printf "%s\n" "$ac_try_echo"; } >&5 5462 (eval "$ac_link") 2>&5 5463 ac_status=$? 5464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5465 test $ac_status = 0; } 5466then : 5467 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5468# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5469# work properly (i.e., refer to `conftest.exe'), while it won't with 5470# `rm'. 5471for ac_file in conftest.exe conftest conftest.*; do 5472 test -f "$ac_file" || continue 5473 case $ac_file in 5474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5476 break;; 5477 * ) break;; 5478 esac 5479done 5480else $as_nop 5481 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5482printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5483as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5484See \`config.log' for more details" "$LINENO" 5; } 5485fi 5486rm -f conftest conftest$ac_cv_exeext 5487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5488printf "%s\n" "$ac_cv_exeext" >&6; } 5489 5490rm -f conftest.$ac_ext 5491EXEEXT=$ac_cv_exeext 5492ac_exeext=$EXEEXT 5493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5494/* end confdefs.h. */ 5495#include <stdio.h> 5496int 5497main (void) 5498{ 5499FILE *f = fopen ("conftest.out", "w"); 5500 return ferror (f) || fclose (f) != 0; 5501 5502 ; 5503 return 0; 5504} 5505_ACEOF 5506ac_clean_files="$ac_clean_files conftest.out" 5507# Check that the compiler produces executables we can run. If not, either 5508# the compiler is broken, or we cross compile. 5509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5510printf %s "checking whether we are cross compiling... " >&6; } 5511if test "$cross_compiling" != yes; then 5512 { { ac_try="$ac_link" 5513case "(($ac_try" in 5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5515 *) ac_try_echo=$ac_try;; 5516esac 5517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5518printf "%s\n" "$ac_try_echo"; } >&5 5519 (eval "$ac_link") 2>&5 5520 ac_status=$? 5521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5522 test $ac_status = 0; } 5523 if { ac_try='./conftest$ac_cv_exeext' 5524 { { case "(($ac_try" in 5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5526 *) ac_try_echo=$ac_try;; 5527esac 5528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5529printf "%s\n" "$ac_try_echo"; } >&5 5530 (eval "$ac_try") 2>&5 5531 ac_status=$? 5532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5533 test $ac_status = 0; }; }; then 5534 cross_compiling=no 5535 else 5536 if test "$cross_compiling" = maybe; then 5537 cross_compiling=yes 5538 else 5539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5540printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5541as_fn_error 77 "cannot run C compiled programs. 5542If you meant to cross compile, use \`--host'. 5543See \`config.log' for more details" "$LINENO" 5; } 5544 fi 5545 fi 5546fi 5547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5548printf "%s\n" "$cross_compiling" >&6; } 5549 5550rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5551ac_clean_files=$ac_clean_files_save 5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5553printf %s "checking for suffix of object files... " >&6; } 5554if test ${ac_cv_objext+y} 5555then : 5556 printf %s "(cached) " >&6 5557else $as_nop 5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5559/* end confdefs.h. */ 5560 5561int 5562main (void) 5563{ 5564 5565 ; 5566 return 0; 5567} 5568_ACEOF 5569rm -f conftest.o conftest.obj 5570if { { ac_try="$ac_compile" 5571case "(($ac_try" in 5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5573 *) ac_try_echo=$ac_try;; 5574esac 5575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5576printf "%s\n" "$ac_try_echo"; } >&5 5577 (eval "$ac_compile") 2>&5 5578 ac_status=$? 5579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5580 test $ac_status = 0; } 5581then : 5582 for ac_file in conftest.o conftest.obj conftest.*; do 5583 test -f "$ac_file" || continue; 5584 case $ac_file in 5585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5587 break;; 5588 esac 5589done 5590else $as_nop 5591 printf "%s\n" "$as_me: failed program was:" >&5 5592sed 's/^/| /' conftest.$ac_ext >&5 5593 5594{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5595printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5596as_fn_error $? "cannot compute suffix of object files: cannot compile 5597See \`config.log' for more details" "$LINENO" 5; } 5598fi 5599rm -f conftest.$ac_cv_objext conftest.$ac_ext 5600fi 5601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5602printf "%s\n" "$ac_cv_objext" >&6; } 5603OBJEXT=$ac_cv_objext 5604ac_objext=$OBJEXT 5605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5606printf %s "checking whether the compiler supports GNU C... " >&6; } 5607if test ${ac_cv_c_compiler_gnu+y} 5608then : 5609 printf %s "(cached) " >&6 5610else $as_nop 5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5612/* end confdefs.h. */ 5613 5614int 5615main (void) 5616{ 5617#ifndef __GNUC__ 5618 choke me 5619#endif 5620 5621 ; 5622 return 0; 5623} 5624_ACEOF 5625if ac_fn_c_try_compile "$LINENO" 5626then : 5627 ac_compiler_gnu=yes 5628else $as_nop 5629 ac_compiler_gnu=no 5630fi 5631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5632ac_cv_c_compiler_gnu=$ac_compiler_gnu 5633 5634fi 5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5636printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5637ac_compiler_gnu=$ac_cv_c_compiler_gnu 5638 5639if test $ac_compiler_gnu = yes; then 5640 GCC=yes 5641else 5642 GCC= 5643fi 5644ac_test_CFLAGS=${CFLAGS+y} 5645ac_save_CFLAGS=$CFLAGS 5646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5647printf %s "checking whether $CC accepts -g... " >&6; } 5648if test ${ac_cv_prog_cc_g+y} 5649then : 5650 printf %s "(cached) " >&6 5651else $as_nop 5652 ac_save_c_werror_flag=$ac_c_werror_flag 5653 ac_c_werror_flag=yes 5654 ac_cv_prog_cc_g=no 5655 CFLAGS="-g" 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657/* end confdefs.h. */ 5658 5659int 5660main (void) 5661{ 5662 5663 ; 5664 return 0; 5665} 5666_ACEOF 5667if ac_fn_c_try_compile "$LINENO" 5668then : 5669 ac_cv_prog_cc_g=yes 5670else $as_nop 5671 CFLAGS="" 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5673/* end confdefs.h. */ 5674 5675int 5676main (void) 5677{ 5678 5679 ; 5680 return 0; 5681} 5682_ACEOF 5683if ac_fn_c_try_compile "$LINENO" 5684then : 5685 5686else $as_nop 5687 ac_c_werror_flag=$ac_save_c_werror_flag 5688 CFLAGS="-g" 5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691 5692int 5693main (void) 5694{ 5695 5696 ; 5697 return 0; 5698} 5699_ACEOF 5700if ac_fn_c_try_compile "$LINENO" 5701then : 5702 ac_cv_prog_cc_g=yes 5703fi 5704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5705fi 5706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5707fi 5708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5709 ac_c_werror_flag=$ac_save_c_werror_flag 5710fi 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5712printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5713if test $ac_test_CFLAGS; then 5714 CFLAGS=$ac_save_CFLAGS 5715elif test $ac_cv_prog_cc_g = yes; then 5716 if test "$GCC" = yes; then 5717 CFLAGS="-g -O2" 5718 else 5719 CFLAGS="-g" 5720 fi 5721else 5722 if test "$GCC" = yes; then 5723 CFLAGS="-O2" 5724 else 5725 CFLAGS= 5726 fi 5727fi 5728ac_prog_cc_stdc=no 5729if test x$ac_prog_cc_stdc = xno 5730then : 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5732printf %s "checking for $CC option to enable C11 features... " >&6; } 5733if test ${ac_cv_prog_cc_c11+y} 5734then : 5735 printf %s "(cached) " >&6 5736else $as_nop 5737 ac_cv_prog_cc_c11=no 5738ac_save_CC=$CC 5739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5740/* end confdefs.h. */ 5741$ac_c_conftest_c11_program 5742_ACEOF 5743for ac_arg in '' -std=gnu11 5744do 5745 CC="$ac_save_CC $ac_arg" 5746 if ac_fn_c_try_compile "$LINENO" 5747then : 5748 ac_cv_prog_cc_c11=$ac_arg 5749fi 5750rm -f core conftest.err conftest.$ac_objext conftest.beam 5751 test "x$ac_cv_prog_cc_c11" != "xno" && break 5752done 5753rm -f conftest.$ac_ext 5754CC=$ac_save_CC 5755fi 5756 5757if test "x$ac_cv_prog_cc_c11" = xno 5758then : 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5760printf "%s\n" "unsupported" >&6; } 5761else $as_nop 5762 if test "x$ac_cv_prog_cc_c11" = x 5763then : 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5765printf "%s\n" "none needed" >&6; } 5766else $as_nop 5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5768printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5769 CC="$CC $ac_cv_prog_cc_c11" 5770fi 5771 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5772 ac_prog_cc_stdc=c11 5773fi 5774fi 5775if test x$ac_prog_cc_stdc = xno 5776then : 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5778printf %s "checking for $CC option to enable C99 features... " >&6; } 5779if test ${ac_cv_prog_cc_c99+y} 5780then : 5781 printf %s "(cached) " >&6 5782else $as_nop 5783 ac_cv_prog_cc_c99=no 5784ac_save_CC=$CC 5785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5786/* end confdefs.h. */ 5787$ac_c_conftest_c99_program 5788_ACEOF 5789for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5790do 5791 CC="$ac_save_CC $ac_arg" 5792 if ac_fn_c_try_compile "$LINENO" 5793then : 5794 ac_cv_prog_cc_c99=$ac_arg 5795fi 5796rm -f core conftest.err conftest.$ac_objext conftest.beam 5797 test "x$ac_cv_prog_cc_c99" != "xno" && break 5798done 5799rm -f conftest.$ac_ext 5800CC=$ac_save_CC 5801fi 5802 5803if test "x$ac_cv_prog_cc_c99" = xno 5804then : 5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5806printf "%s\n" "unsupported" >&6; } 5807else $as_nop 5808 if test "x$ac_cv_prog_cc_c99" = x 5809then : 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5811printf "%s\n" "none needed" >&6; } 5812else $as_nop 5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5814printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5815 CC="$CC $ac_cv_prog_cc_c99" 5816fi 5817 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5818 ac_prog_cc_stdc=c99 5819fi 5820fi 5821if test x$ac_prog_cc_stdc = xno 5822then : 5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5824printf %s "checking for $CC option to enable C89 features... " >&6; } 5825if test ${ac_cv_prog_cc_c89+y} 5826then : 5827 printf %s "(cached) " >&6 5828else $as_nop 5829 ac_cv_prog_cc_c89=no 5830ac_save_CC=$CC 5831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832/* end confdefs.h. */ 5833$ac_c_conftest_c89_program 5834_ACEOF 5835for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5836do 5837 CC="$ac_save_CC $ac_arg" 5838 if ac_fn_c_try_compile "$LINENO" 5839then : 5840 ac_cv_prog_cc_c89=$ac_arg 5841fi 5842rm -f core conftest.err conftest.$ac_objext conftest.beam 5843 test "x$ac_cv_prog_cc_c89" != "xno" && break 5844done 5845rm -f conftest.$ac_ext 5846CC=$ac_save_CC 5847fi 5848 5849if test "x$ac_cv_prog_cc_c89" = xno 5850then : 5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5852printf "%s\n" "unsupported" >&6; } 5853else $as_nop 5854 if test "x$ac_cv_prog_cc_c89" = x 5855then : 5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5857printf "%s\n" "none needed" >&6; } 5858else $as_nop 5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5860printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5861 CC="$CC $ac_cv_prog_cc_c89" 5862fi 5863 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5864 ac_prog_cc_stdc=c89 5865fi 5866fi 5867 5868ac_ext=c 5869ac_cpp='$CPP $CPPFLAGS' 5870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5872ac_compiler_gnu=$ac_cv_c_compiler_gnu 5873 5874 5875 ac_ext=c 5876ac_cpp='$CPP $CPPFLAGS' 5877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5879ac_compiler_gnu=$ac_cv_c_compiler_gnu 5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5881printf %s "checking whether $CC understands -c and -o together... " >&6; } 5882if test ${am_cv_prog_cc_c_o+y} 5883then : 5884 printf %s "(cached) " >&6 5885else $as_nop 5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5887/* end confdefs.h. */ 5888 5889int 5890main (void) 5891{ 5892 5893 ; 5894 return 0; 5895} 5896_ACEOF 5897 # Make sure it works both with $CC and with simple cc. 5898 # Following AC_PROG_CC_C_O, we do the test twice because some 5899 # compilers refuse to overwrite an existing .o file with -o, 5900 # though they will create one. 5901 am_cv_prog_cc_c_o=yes 5902 for am_i in 1 2; do 5903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5905 ac_status=$? 5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5907 (exit $ac_status); } \ 5908 && test -f conftest2.$ac_objext; then 5909 : OK 5910 else 5911 am_cv_prog_cc_c_o=no 5912 break 5913 fi 5914 done 5915 rm -f core conftest* 5916 unset am_i 5917fi 5918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5919printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5920if test "$am_cv_prog_cc_c_o" != yes; then 5921 # Losing compiler, so override with the script. 5922 # FIXME: It is wrong to rewrite CC. 5923 # But if we don't then we get into trouble of one sort or another. 5924 # A longer-term fix would be to have automake use am__CC in this case, 5925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5926 CC="$am_aux_dir/compile $CC" 5927fi 5928ac_ext=c 5929ac_cpp='$CPP $CPPFLAGS' 5930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5932ac_compiler_gnu=$ac_cv_c_compiler_gnu 5933 5934DEPDIR="${am__leading_dot}deps" 5935 5936ac_config_commands="$ac_config_commands depfiles" 5937 5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5939printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5940cat > confinc.mk << 'END' 5941am__doit: 5942 @echo this is the am__doit target >confinc.out 5943.PHONY: am__doit 5944END 5945am__include="#" 5946am__quote= 5947# BSD make does it like this. 5948echo '.include "confinc.mk" # ignored' > confmf.BSD 5949# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5950echo 'include confinc.mk # ignored' > confmf.GNU 5951_am_result=no 5952for s in GNU BSD; do 5953 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5954 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5955 ac_status=$? 5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5957 (exit $ac_status); } 5958 case $?:`cat confinc.out 2>/dev/null` in #( 5959 '0:this is the am__doit target') : 5960 case $s in #( 5961 BSD) : 5962 am__include='.include' am__quote='"' ;; #( 5963 *) : 5964 am__include='include' am__quote='' ;; 5965esac ;; #( 5966 *) : 5967 ;; 5968esac 5969 if test "$am__include" != "#"; then 5970 _am_result="yes ($s style)" 5971 break 5972 fi 5973done 5974rm -f confinc.* confmf.* 5975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5976printf "%s\n" "${_am_result}" >&6; } 5977 5978# Check whether --enable-dependency-tracking was given. 5979if test ${enable_dependency_tracking+y} 5980then : 5981 enableval=$enable_dependency_tracking; 5982fi 5983 5984if test "x$enable_dependency_tracking" != xno; then 5985 am_depcomp="$ac_aux_dir/depcomp" 5986 AMDEPBACKSLASH='\' 5987 am__nodep='_no' 5988fi 5989 if test "x$enable_dependency_tracking" != xno; then 5990 AMDEP_TRUE= 5991 AMDEP_FALSE='#' 5992else 5993 AMDEP_TRUE='#' 5994 AMDEP_FALSE= 5995fi 5996 5997 5998 5999depcc="$CC" am_compiler_list= 6000 6001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6002printf %s "checking dependency style of $depcc... " >&6; } 6003if test ${am_cv_CC_dependencies_compiler_type+y} 6004then : 6005 printf %s "(cached) " >&6 6006else $as_nop 6007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6008 # We make a subdir and do the tests there. Otherwise we can end up 6009 # making bogus files that we don't know about and never remove. For 6010 # instance it was reported that on HP-UX the gcc test will end up 6011 # making a dummy file named 'D' -- because '-MD' means "put the output 6012 # in D". 6013 rm -rf conftest.dir 6014 mkdir conftest.dir 6015 # Copy depcomp to subdir because otherwise we won't find it if we're 6016 # using a relative directory. 6017 cp "$am_depcomp" conftest.dir 6018 cd conftest.dir 6019 # We will build objects and dependencies in a subdirectory because 6020 # it helps to detect inapplicable dependency modes. For instance 6021 # both Tru64's cc and ICC support -MD to output dependencies as a 6022 # side effect of compilation, but ICC will put the dependencies in 6023 # the current directory while Tru64 will put them in the object 6024 # directory. 6025 mkdir sub 6026 6027 am_cv_CC_dependencies_compiler_type=none 6028 if test "$am_compiler_list" = ""; then 6029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6030 fi 6031 am__universal=false 6032 case " $depcc " in #( 6033 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6034 esac 6035 6036 for depmode in $am_compiler_list; do 6037 # Setup a source with many dependencies, because some compilers 6038 # like to wrap large dependency lists on column 80 (with \), and 6039 # we should not choose a depcomp mode which is confused by this. 6040 # 6041 # We need to recreate these files for each test, as the compiler may 6042 # overwrite some of them when testing with obscure command lines. 6043 # This happens at least with the AIX C compiler. 6044 : > sub/conftest.c 6045 for i in 1 2 3 4 5 6; do 6046 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6047 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6048 # Solaris 10 /bin/sh. 6049 echo '/* dummy */' > sub/conftst$i.h 6050 done 6051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6052 6053 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6054 # mode. It turns out that the SunPro C++ compiler does not properly 6055 # handle '-M -o', and we need to detect this. Also, some Intel 6056 # versions had trouble with output in subdirs. 6057 am__obj=sub/conftest.${OBJEXT-o} 6058 am__minus_obj="-o $am__obj" 6059 case $depmode in 6060 gcc) 6061 # This depmode causes a compiler race in universal mode. 6062 test "$am__universal" = false || continue 6063 ;; 6064 nosideeffect) 6065 # After this tag, mechanisms are not by side-effect, so they'll 6066 # only be used when explicitly requested. 6067 if test "x$enable_dependency_tracking" = xyes; then 6068 continue 6069 else 6070 break 6071 fi 6072 ;; 6073 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6074 # This compiler won't grok '-c -o', but also, the minuso test has 6075 # not run yet. These depmodes are late enough in the game, and 6076 # so weak that their functioning should not be impacted. 6077 am__obj=conftest.${OBJEXT-o} 6078 am__minus_obj= 6079 ;; 6080 none) break ;; 6081 esac 6082 if depmode=$depmode \ 6083 source=sub/conftest.c object=$am__obj \ 6084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6086 >/dev/null 2>conftest.err && 6087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6091 # icc doesn't choke on unknown options, it will just issue warnings 6092 # or remarks (even with -Werror). So we grep stderr for any message 6093 # that says an option was ignored or not supported. 6094 # When given -MP, icc 7.0 and 7.1 complain thusly: 6095 # icc: Command line warning: ignoring option '-M'; no argument required 6096 # The diagnosis changed in icc 8.0: 6097 # icc: Command line remark: option '-MP' not supported 6098 if (grep 'ignoring option' conftest.err || 6099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6100 am_cv_CC_dependencies_compiler_type=$depmode 6101 break 6102 fi 6103 fi 6104 done 6105 6106 cd .. 6107 rm -rf conftest.dir 6108else 6109 am_cv_CC_dependencies_compiler_type=none 6110fi 6111 6112fi 6113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6114printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6116 6117 if 6118 test "x$enable_dependency_tracking" != xno \ 6119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6120 am__fastdepCC_TRUE= 6121 am__fastdepCC_FALSE='#' 6122else 6123 am__fastdepCC_TRUE='#' 6124 am__fastdepCC_FALSE= 6125fi 6126 6127 6128 6129 6130if test "x$ac_cv_prog_cc_c99" = "xno"; then 6131 as_fn_error $? "\"C99 standard compliant C compiler required. Try GCC 3.x or later.\"" "$LINENO" 5 6132fi 6133for ac_prog in 'bison -y' byacc 6134do 6135 # Extract the first word of "$ac_prog", so it can be a program name with args. 6136set dummy $ac_prog; ac_word=$2 6137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6138printf %s "checking for $ac_word... " >&6; } 6139if test ${ac_cv_prog_YACC+y} 6140then : 6141 printf %s "(cached) " >&6 6142else $as_nop 6143 if test -n "$YACC"; then 6144 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6145else 6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6147for as_dir in $PATH 6148do 6149 IFS=$as_save_IFS 6150 case $as_dir in #((( 6151 '') as_dir=./ ;; 6152 */) ;; 6153 *) as_dir=$as_dir/ ;; 6154 esac 6155 for ac_exec_ext in '' $ac_executable_extensions; do 6156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6157 ac_cv_prog_YACC="$ac_prog" 6158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6159 break 2 6160 fi 6161done 6162 done 6163IFS=$as_save_IFS 6164 6165fi 6166fi 6167YACC=$ac_cv_prog_YACC 6168if test -n "$YACC"; then 6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6170printf "%s\n" "$YACC" >&6; } 6171else 6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6173printf "%s\n" "no" >&6; } 6174fi 6175 6176 6177 test -n "$YACC" && break 6178done 6179test -n "$YACC" || YACC="yacc" 6180 6181 6182for ac_prog in flex lex 6183do 6184 # Extract the first word of "$ac_prog", so it can be a program name with args. 6185set dummy $ac_prog; ac_word=$2 6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187printf %s "checking for $ac_word... " >&6; } 6188if test ${ac_cv_prog_LEX+y} 6189then : 6190 printf %s "(cached) " >&6 6191else $as_nop 6192 if test -n "$LEX"; then 6193 ac_cv_prog_LEX="$LEX" # Let the user override the test. 6194else 6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6196for as_dir in $PATH 6197do 6198 IFS=$as_save_IFS 6199 case $as_dir in #((( 6200 '') as_dir=./ ;; 6201 */) ;; 6202 *) as_dir=$as_dir/ ;; 6203 esac 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6206 ac_cv_prog_LEX="$ac_prog" 6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210done 6211 done 6212IFS=$as_save_IFS 6213 6214fi 6215fi 6216LEX=$ac_cv_prog_LEX 6217if test -n "$LEX"; then 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 6219printf "%s\n" "$LEX" >&6; } 6220else 6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6222printf "%s\n" "no" >&6; } 6223fi 6224 6225 6226 test -n "$LEX" && break 6227done 6228test -n "$LEX" || LEX=":" 6229 6230 if test "x$LEX" != "x:"; then 6231 cat >conftest.l <<_ACEOF 6232%{ 6233#ifdef __cplusplus 6234extern "C" 6235#endif 6236int yywrap(void); 6237%} 6238%% 6239a { ECHO; } 6240b { REJECT; } 6241c { yymore (); } 6242d { yyless (1); } 6243e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 6244#ifdef __cplusplus 6245 yyless ((yyinput () != 0)); 6246#else 6247 yyless ((input () != 0)); 6248#endif 6249 } 6250f { unput (yytext[0]); } 6251. { BEGIN INITIAL; } 6252%% 6253#ifdef YYTEXT_POINTER 6254extern char *yytext; 6255#endif 6256int 6257yywrap (void) 6258{ 6259 return 1; 6260} 6261int 6262main (void) 6263{ 6264 return ! yylex (); 6265} 6266_ACEOF 6267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5 6268printf %s "checking for lex output file root... " >&6; } 6269if test ${ac_cv_prog_lex_root+y} 6270then : 6271 printf %s "(cached) " >&6 6272else $as_nop 6273 6274ac_cv_prog_lex_root=unknown 6275{ { ac_try="$LEX conftest.l" 6276case "(($ac_try" in 6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6278 *) ac_try_echo=$ac_try;; 6279esac 6280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6281printf "%s\n" "$ac_try_echo"; } >&5 6282 (eval "$LEX conftest.l") 2>&5 6283 ac_status=$? 6284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6285 test $ac_status = 0; } && 6286if test -f lex.yy.c; then 6287 ac_cv_prog_lex_root=lex.yy 6288elif test -f lexyy.c; then 6289 ac_cv_prog_lex_root=lexyy 6290fi 6291fi 6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 6293printf "%s\n" "$ac_cv_prog_lex_root" >&6; } 6294if test "$ac_cv_prog_lex_root" = unknown 6295then : 6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5 6297printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;} 6298 LEX=: LEXLIB= 6299fi 6300LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 6301 6302if test ${LEXLIB+y} 6303then : 6304 6305else $as_nop 6306 6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5 6308printf %s "checking for lex library... " >&6; } 6309if test ${ac_cv_lib_lex+y} 6310then : 6311 printf %s "(cached) " >&6 6312else $as_nop 6313 6314 ac_save_LIBS="$LIBS" 6315 ac_found=false 6316 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do 6317 case $ac_cv_lib_lex in #( 6318 'none needed') : 6319 ;; #( 6320 'not found') : 6321 break ;; #( 6322 *) : 6323 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #( 6324 *) : 6325 ;; 6326esac 6327 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329/* end confdefs.h. */ 6330`cat $LEX_OUTPUT_ROOT.c` 6331_ACEOF 6332if ac_fn_c_try_link "$LINENO" 6333then : 6334 ac_found=: 6335fi 6336rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6337 conftest$ac_exeext conftest.$ac_ext 6338 if $ac_found; then 6339 break 6340 fi 6341 done 6342 LIBS="$ac_save_LIBS" 6343 6344fi 6345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 6346printf "%s\n" "$ac_cv_lib_lex" >&6; } 6347 if test "$ac_cv_lib_lex" = 'not found' 6348then : 6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5 6350printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;} 6351 LEX=: LEXLIB= 6352elif test "$ac_cv_lib_lex" = 'none needed' 6353then : 6354 LEXLIB='' 6355else $as_nop 6356 LEXLIB=$ac_cv_lib_lex 6357fi 6358 ac_save_LIBS="$LIBS" 6359 LIBS= 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5 6361printf %s "checking for library containing yywrap... " >&6; } 6362if test ${ac_cv_search_yywrap+y} 6363then : 6364 printf %s "(cached) " >&6 6365else $as_nop 6366 ac_func_search_save_LIBS=$LIBS 6367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6368/* end confdefs.h. */ 6369 6370/* Override any GCC internal prototype to avoid an error. 6371 Use char because int might match the return type of a GCC 6372 builtin and then its argument prototype would still apply. */ 6373char yywrap (); 6374int 6375main (void) 6376{ 6377return yywrap (); 6378 ; 6379 return 0; 6380} 6381_ACEOF 6382for ac_lib in '' fl l 6383do 6384 if test -z "$ac_lib"; then 6385 ac_res="none required" 6386 else 6387 ac_res=-l$ac_lib 6388 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6389 fi 6390 if ac_fn_c_try_link "$LINENO" 6391then : 6392 ac_cv_search_yywrap=$ac_res 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6395 conftest$ac_exeext 6396 if test ${ac_cv_search_yywrap+y} 6397then : 6398 break 6399fi 6400done 6401if test ${ac_cv_search_yywrap+y} 6402then : 6403 6404else $as_nop 6405 ac_cv_search_yywrap=no 6406fi 6407rm conftest.$ac_ext 6408LIBS=$ac_func_search_save_LIBS 6409fi 6410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5 6411printf "%s\n" "$ac_cv_search_yywrap" >&6; } 6412ac_res=$ac_cv_search_yywrap 6413if test "$ac_res" != no 6414then : 6415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6416 LEXLIB="$LIBS" 6417fi 6418 6419 LIBS="$ac_save_LIBS" 6420fi 6421 6422 6423if test "$LEX" != : 6424then : 6425 6426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 6427printf %s "checking whether yytext is a pointer... " >&6; } 6428if test ${ac_cv_prog_lex_yytext_pointer+y} 6429then : 6430 printf %s "(cached) " >&6 6431else $as_nop 6432 # POSIX says lex can declare yytext either as a pointer or an array; the 6433# default is implementation-dependent. Figure out which it is, since 6434# not all implementations provide the %pointer and %array declarations. 6435ac_cv_prog_lex_yytext_pointer=no 6436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438 6439 #define YYTEXT_POINTER 1 6440`cat $LEX_OUTPUT_ROOT.c` 6441_ACEOF 6442if ac_fn_c_try_compile "$LINENO" 6443then : 6444 ac_cv_prog_lex_yytext_pointer=yes 6445fi 6446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6447 6448fi 6449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 6450printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; } 6451if test $ac_cv_prog_lex_yytext_pointer = yes; then 6452 6453printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h 6454 6455fi 6456 6457fi 6458rm -f conftest.l $LEX_OUTPUT_ROOT.c 6459 6460fi 6461if test "$LEX" = :; then 6462 LEX=${am_missing_run}flex 6463fi 6464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6465printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6466set x ${MAKE-make} 6467ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6468if eval test \${ac_cv_prog_make_${ac_make}_set+y} 6469then : 6470 printf %s "(cached) " >&6 6471else $as_nop 6472 cat >conftest.make <<\_ACEOF 6473SHELL = /bin/sh 6474all: 6475 @echo '@@@%%%=$(MAKE)=@@@%%%' 6476_ACEOF 6477# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6478case `${MAKE-make} -f conftest.make 2>/dev/null` in 6479 *@@@%%%=?*=@@@%%%*) 6480 eval ac_cv_prog_make_${ac_make}_set=yes;; 6481 *) 6482 eval ac_cv_prog_make_${ac_make}_set=no;; 6483esac 6484rm -f conftest.make 6485fi 6486if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6488printf "%s\n" "yes" >&6; } 6489 SET_MAKE= 6490else 6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6492printf "%s\n" "no" >&6; } 6493 SET_MAKE="MAKE=${MAKE-make}" 6494fi 6495 6496 6497 6498 6499 6500 6501 6502 6503if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6504 if test -n "$ac_tool_prefix"; then 6505 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6506set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6508printf %s "checking for $ac_word... " >&6; } 6509if test ${ac_cv_path_PKG_CONFIG+y} 6510then : 6511 printf %s "(cached) " >&6 6512else $as_nop 6513 case $PKG_CONFIG in 6514 [\\/]* | ?:[\\/]*) 6515 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6516 ;; 6517 *) 6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519for as_dir in $PATH 6520do 6521 IFS=$as_save_IFS 6522 case $as_dir in #((( 6523 '') as_dir=./ ;; 6524 */) ;; 6525 *) as_dir=$as_dir/ ;; 6526 esac 6527 for ac_exec_ext in '' $ac_executable_extensions; do 6528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6529 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6531 break 2 6532 fi 6533done 6534 done 6535IFS=$as_save_IFS 6536 6537 ;; 6538esac 6539fi 6540PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6541if test -n "$PKG_CONFIG"; then 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6543printf "%s\n" "$PKG_CONFIG" >&6; } 6544else 6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546printf "%s\n" "no" >&6; } 6547fi 6548 6549 6550fi 6551if test -z "$ac_cv_path_PKG_CONFIG"; then 6552 ac_pt_PKG_CONFIG=$PKG_CONFIG 6553 # Extract the first word of "pkg-config", so it can be a program name with args. 6554set dummy pkg-config; ac_word=$2 6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6556printf %s "checking for $ac_word... " >&6; } 6557if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 6558then : 6559 printf %s "(cached) " >&6 6560else $as_nop 6561 case $ac_pt_PKG_CONFIG in 6562 [\\/]* | ?:[\\/]*) 6563 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6564 ;; 6565 *) 6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6567for as_dir in $PATH 6568do 6569 IFS=$as_save_IFS 6570 case $as_dir in #((( 6571 '') as_dir=./ ;; 6572 */) ;; 6573 *) as_dir=$as_dir/ ;; 6574 esac 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6577 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 6578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6579 break 2 6580 fi 6581done 6582 done 6583IFS=$as_save_IFS 6584 6585 ;; 6586esac 6587fi 6588ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6589if test -n "$ac_pt_PKG_CONFIG"; then 6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6591printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 6592else 6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594printf "%s\n" "no" >&6; } 6595fi 6596 6597 if test "x$ac_pt_PKG_CONFIG" = x; then 6598 PKG_CONFIG="" 6599 else 6600 case $cross_compiling:$ac_tool_warned in 6601yes:) 6602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6603printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6604ac_tool_warned=yes ;; 6605esac 6606 PKG_CONFIG=$ac_pt_PKG_CONFIG 6607 fi 6608else 6609 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 6610fi 6611 6612fi 6613if test -n "$PKG_CONFIG"; then 6614 _pkg_min_version=0.9.0 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 6616printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 6617 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6619printf "%s\n" "yes" >&6; } 6620 else 6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6622printf "%s\n" "no" >&6; } 6623 PKG_CONFIG="" 6624 fi 6625fi 6626case `pwd` in 6627 *\ * | *\ *) 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6629printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6630esac 6631 6632 6633 6634macro_version='2.4.6' 6635macro_revision='2.4.6' 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650ltmain=$ac_aux_dir/ltmain.sh 6651 6652 6653 6654 # Make sure we can run config.sub. 6655$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 6656 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 6657 6658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6659printf %s "checking build system type... " >&6; } 6660if test ${ac_cv_build+y} 6661then : 6662 printf %s "(cached) " >&6 6663else $as_nop 6664 ac_build_alias=$build_alias 6665test "x$ac_build_alias" = x && 6666 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 6667test "x$ac_build_alias" = x && 6668 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6669ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 6670 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 6671 6672fi 6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6674printf "%s\n" "$ac_cv_build" >&6; } 6675case $ac_cv_build in 6676*-*-*) ;; 6677*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6678esac 6679build=$ac_cv_build 6680ac_save_IFS=$IFS; IFS='-' 6681set x $ac_cv_build 6682shift 6683build_cpu=$1 6684build_vendor=$2 6685shift; shift 6686# Remember, the first character of IFS is used to create $*, 6687# except with old shells: 6688build_os=$* 6689IFS=$ac_save_IFS 6690case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6691 6692 6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6694printf %s "checking host system type... " >&6; } 6695if test ${ac_cv_host+y} 6696then : 6697 printf %s "(cached) " >&6 6698else $as_nop 6699 if test "x$host_alias" = x; then 6700 ac_cv_host=$ac_cv_build 6701else 6702 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 6703 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 6704fi 6705 6706fi 6707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6708printf "%s\n" "$ac_cv_host" >&6; } 6709case $ac_cv_host in 6710*-*-*) ;; 6711*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6712esac 6713host=$ac_cv_host 6714ac_save_IFS=$IFS; IFS='-' 6715set x $ac_cv_host 6716shift 6717host_cpu=$1 6718host_vendor=$2 6719shift; shift 6720# Remember, the first character of IFS is used to create $*, 6721# except with old shells: 6722host_os=$* 6723IFS=$ac_save_IFS 6724case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6725 6726 6727# Backslashify metacharacters that are still active within 6728# double-quoted strings. 6729sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6730 6731# Same as above, but do not quote variable references. 6732double_quote_subst='s/\(["`\\]\)/\\\1/g' 6733 6734# Sed substitution to delay expansion of an escaped shell variable in a 6735# double_quote_subst'ed string. 6736delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6737 6738# Sed substitution to delay expansion of an escaped single quote. 6739delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6740 6741# Sed substitution to avoid accidental globbing in evaled expressions 6742no_glob_subst='s/\*/\\\*/g' 6743 6744ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6745ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6746ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6747 6748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6749printf %s "checking how to print strings... " >&6; } 6750# Test print first, because it will be a builtin if present. 6751if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6752 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6753 ECHO='print -r --' 6754elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6755 ECHO='printf %s\n' 6756else 6757 # Use this function as a fallback that always works. 6758 func_fallback_echo () 6759 { 6760 eval 'cat <<_LTECHO_EOF 6761$1 6762_LTECHO_EOF' 6763 } 6764 ECHO='func_fallback_echo' 6765fi 6766 6767# func_echo_all arg... 6768# Invoke $ECHO with all args, space-separated. 6769func_echo_all () 6770{ 6771 $ECHO "" 6772} 6773 6774case $ECHO in 6775 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6776printf "%s\n" "printf" >&6; } ;; 6777 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6778printf "%s\n" "print -r" >&6; } ;; 6779 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6780printf "%s\n" "cat" >&6; } ;; 6781esac 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6797printf %s "checking for a sed that does not truncate output... " >&6; } 6798if test ${ac_cv_path_SED+y} 6799then : 6800 printf %s "(cached) " >&6 6801else $as_nop 6802 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6803 for ac_i in 1 2 3 4 5 6 7; do 6804 ac_script="$ac_script$as_nl$ac_script" 6805 done 6806 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6807 { ac_script=; unset ac_script;} 6808 if test -z "$SED"; then 6809 ac_path_SED_found=false 6810 # Loop through the user's path and test for each of PROGNAME-LIST 6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812for as_dir in $PATH 6813do 6814 IFS=$as_save_IFS 6815 case $as_dir in #((( 6816 '') as_dir=./ ;; 6817 */) ;; 6818 *) as_dir=$as_dir/ ;; 6819 esac 6820 for ac_prog in sed gsed 6821 do 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6824 as_fn_executable_p "$ac_path_SED" || continue 6825# Check for GNU ac_path_SED and select it if it is found. 6826 # Check for GNU $ac_path_SED 6827case `"$ac_path_SED" --version 2>&1` in 6828*GNU*) 6829 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6830*) 6831 ac_count=0 6832 printf %s 0123456789 >"conftest.in" 6833 while : 6834 do 6835 cat "conftest.in" "conftest.in" >"conftest.tmp" 6836 mv "conftest.tmp" "conftest.in" 6837 cp "conftest.in" "conftest.nl" 6838 printf "%s\n" '' >> "conftest.nl" 6839 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6840 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6841 as_fn_arith $ac_count + 1 && ac_count=$as_val 6842 if test $ac_count -gt ${ac_path_SED_max-0}; then 6843 # Best one so far, save it but keep looking for a better one 6844 ac_cv_path_SED="$ac_path_SED" 6845 ac_path_SED_max=$ac_count 6846 fi 6847 # 10*(2^10) chars as input seems more than enough 6848 test $ac_count -gt 10 && break 6849 done 6850 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6851esac 6852 6853 $ac_path_SED_found && break 3 6854 done 6855 done 6856 done 6857IFS=$as_save_IFS 6858 if test -z "$ac_cv_path_SED"; then 6859 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6860 fi 6861else 6862 ac_cv_path_SED=$SED 6863fi 6864 6865fi 6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6867printf "%s\n" "$ac_cv_path_SED" >&6; } 6868 SED="$ac_cv_path_SED" 6869 rm -f conftest.sed 6870 6871test -z "$SED" && SED=sed 6872Xsed="$SED -e 1s/^X//" 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6885printf %s "checking for grep that handles long lines and -e... " >&6; } 6886if test ${ac_cv_path_GREP+y} 6887then : 6888 printf %s "(cached) " >&6 6889else $as_nop 6890 if test -z "$GREP"; then 6891 ac_path_GREP_found=false 6892 # Loop through the user's path and test for each of PROGNAME-LIST 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6895do 6896 IFS=$as_save_IFS 6897 case $as_dir in #((( 6898 '') as_dir=./ ;; 6899 */) ;; 6900 *) as_dir=$as_dir/ ;; 6901 esac 6902 for ac_prog in grep ggrep 6903 do 6904 for ac_exec_ext in '' $ac_executable_extensions; do 6905 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 6906 as_fn_executable_p "$ac_path_GREP" || continue 6907# Check for GNU ac_path_GREP and select it if it is found. 6908 # Check for GNU $ac_path_GREP 6909case `"$ac_path_GREP" --version 2>&1` in 6910*GNU*) 6911 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6912*) 6913 ac_count=0 6914 printf %s 0123456789 >"conftest.in" 6915 while : 6916 do 6917 cat "conftest.in" "conftest.in" >"conftest.tmp" 6918 mv "conftest.tmp" "conftest.in" 6919 cp "conftest.in" "conftest.nl" 6920 printf "%s\n" 'GREP' >> "conftest.nl" 6921 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6923 as_fn_arith $ac_count + 1 && ac_count=$as_val 6924 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6925 # Best one so far, save it but keep looking for a better one 6926 ac_cv_path_GREP="$ac_path_GREP" 6927 ac_path_GREP_max=$ac_count 6928 fi 6929 # 10*(2^10) chars as input seems more than enough 6930 test $ac_count -gt 10 && break 6931 done 6932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6933esac 6934 6935 $ac_path_GREP_found && break 3 6936 done 6937 done 6938 done 6939IFS=$as_save_IFS 6940 if test -z "$ac_cv_path_GREP"; then 6941 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6942 fi 6943else 6944 ac_cv_path_GREP=$GREP 6945fi 6946 6947fi 6948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6949printf "%s\n" "$ac_cv_path_GREP" >&6; } 6950 GREP="$ac_cv_path_GREP" 6951 6952 6953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6954printf %s "checking for egrep... " >&6; } 6955if test ${ac_cv_path_EGREP+y} 6956then : 6957 printf %s "(cached) " >&6 6958else $as_nop 6959 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6960 then ac_cv_path_EGREP="$GREP -E" 6961 else 6962 if test -z "$EGREP"; then 6963 ac_path_EGREP_found=false 6964 # Loop through the user's path and test for each of PROGNAME-LIST 6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6967do 6968 IFS=$as_save_IFS 6969 case $as_dir in #((( 6970 '') as_dir=./ ;; 6971 */) ;; 6972 *) as_dir=$as_dir/ ;; 6973 esac 6974 for ac_prog in egrep 6975 do 6976 for ac_exec_ext in '' $ac_executable_extensions; do 6977 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6978 as_fn_executable_p "$ac_path_EGREP" || continue 6979# Check for GNU ac_path_EGREP and select it if it is found. 6980 # Check for GNU $ac_path_EGREP 6981case `"$ac_path_EGREP" --version 2>&1` in 6982*GNU*) 6983 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6984*) 6985 ac_count=0 6986 printf %s 0123456789 >"conftest.in" 6987 while : 6988 do 6989 cat "conftest.in" "conftest.in" >"conftest.tmp" 6990 mv "conftest.tmp" "conftest.in" 6991 cp "conftest.in" "conftest.nl" 6992 printf "%s\n" 'EGREP' >> "conftest.nl" 6993 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6995 as_fn_arith $ac_count + 1 && ac_count=$as_val 6996 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6997 # Best one so far, save it but keep looking for a better one 6998 ac_cv_path_EGREP="$ac_path_EGREP" 6999 ac_path_EGREP_max=$ac_count 7000 fi 7001 # 10*(2^10) chars as input seems more than enough 7002 test $ac_count -gt 10 && break 7003 done 7004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7005esac 7006 7007 $ac_path_EGREP_found && break 3 7008 done 7009 done 7010 done 7011IFS=$as_save_IFS 7012 if test -z "$ac_cv_path_EGREP"; then 7013 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7014 fi 7015else 7016 ac_cv_path_EGREP=$EGREP 7017fi 7018 7019 fi 7020fi 7021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7022printf "%s\n" "$ac_cv_path_EGREP" >&6; } 7023 EGREP="$ac_cv_path_EGREP" 7024 7025 7026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7027printf %s "checking for fgrep... " >&6; } 7028if test ${ac_cv_path_FGREP+y} 7029then : 7030 printf %s "(cached) " >&6 7031else $as_nop 7032 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7033 then ac_cv_path_FGREP="$GREP -F" 7034 else 7035 if test -z "$FGREP"; then 7036 ac_path_FGREP_found=false 7037 # Loop through the user's path and test for each of PROGNAME-LIST 7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7040do 7041 IFS=$as_save_IFS 7042 case $as_dir in #((( 7043 '') as_dir=./ ;; 7044 */) ;; 7045 *) as_dir=$as_dir/ ;; 7046 esac 7047 for ac_prog in fgrep 7048 do 7049 for ac_exec_ext in '' $ac_executable_extensions; do 7050 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 7051 as_fn_executable_p "$ac_path_FGREP" || continue 7052# Check for GNU ac_path_FGREP and select it if it is found. 7053 # Check for GNU $ac_path_FGREP 7054case `"$ac_path_FGREP" --version 2>&1` in 7055*GNU*) 7056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7057*) 7058 ac_count=0 7059 printf %s 0123456789 >"conftest.in" 7060 while : 7061 do 7062 cat "conftest.in" "conftest.in" >"conftest.tmp" 7063 mv "conftest.tmp" "conftest.in" 7064 cp "conftest.in" "conftest.nl" 7065 printf "%s\n" 'FGREP' >> "conftest.nl" 7066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7068 as_fn_arith $ac_count + 1 && ac_count=$as_val 7069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7070 # Best one so far, save it but keep looking for a better one 7071 ac_cv_path_FGREP="$ac_path_FGREP" 7072 ac_path_FGREP_max=$ac_count 7073 fi 7074 # 10*(2^10) chars as input seems more than enough 7075 test $ac_count -gt 10 && break 7076 done 7077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7078esac 7079 7080 $ac_path_FGREP_found && break 3 7081 done 7082 done 7083 done 7084IFS=$as_save_IFS 7085 if test -z "$ac_cv_path_FGREP"; then 7086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7087 fi 7088else 7089 ac_cv_path_FGREP=$FGREP 7090fi 7091 7092 fi 7093fi 7094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7095printf "%s\n" "$ac_cv_path_FGREP" >&6; } 7096 FGREP="$ac_cv_path_FGREP" 7097 7098 7099test -z "$GREP" && GREP=grep 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119# Check whether --with-gnu-ld was given. 7120if test ${with_gnu_ld+y} 7121then : 7122 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7123else $as_nop 7124 with_gnu_ld=no 7125fi 7126 7127ac_prog=ld 7128if test yes = "$GCC"; then 7129 # Check if gcc -print-prog-name=ld gives a path. 7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7131printf %s "checking for ld used by $CC... " >&6; } 7132 case $host in 7133 *-*-mingw*) 7134 # gcc leaves a trailing carriage return, which upsets mingw 7135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7136 *) 7137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7138 esac 7139 case $ac_prog in 7140 # Accept absolute paths. 7141 [\\/]* | ?:[\\/]*) 7142 re_direlt='/[^/][^/]*/\.\./' 7143 # Canonicalize the pathname of ld 7144 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7145 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7146 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7147 done 7148 test -z "$LD" && LD=$ac_prog 7149 ;; 7150 "") 7151 # If it fails, then pretend we aren't using GCC. 7152 ac_prog=ld 7153 ;; 7154 *) 7155 # If it is relative, then search for the first ld in PATH. 7156 with_gnu_ld=unknown 7157 ;; 7158 esac 7159elif test yes = "$with_gnu_ld"; then 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7161printf %s "checking for GNU ld... " >&6; } 7162else 7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7164printf %s "checking for non-GNU ld... " >&6; } 7165fi 7166if test ${lt_cv_path_LD+y} 7167then : 7168 printf %s "(cached) " >&6 7169else $as_nop 7170 if test -z "$LD"; then 7171 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7172 for ac_dir in $PATH; do 7173 IFS=$lt_save_ifs 7174 test -z "$ac_dir" && ac_dir=. 7175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7176 lt_cv_path_LD=$ac_dir/$ac_prog 7177 # Check to see if the program is GNU ld. I'd rather use --version, 7178 # but apparently some variants of GNU ld only accept -v. 7179 # Break only if it was the GNU/non-GNU ld that we prefer. 7180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7181 *GNU* | *'with BFD'*) 7182 test no != "$with_gnu_ld" && break 7183 ;; 7184 *) 7185 test yes != "$with_gnu_ld" && break 7186 ;; 7187 esac 7188 fi 7189 done 7190 IFS=$lt_save_ifs 7191else 7192 lt_cv_path_LD=$LD # Let the user override the test with a path. 7193fi 7194fi 7195 7196LD=$lt_cv_path_LD 7197if test -n "$LD"; then 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7199printf "%s\n" "$LD" >&6; } 7200else 7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7202printf "%s\n" "no" >&6; } 7203fi 7204test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7206printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 7207if test ${lt_cv_prog_gnu_ld+y} 7208then : 7209 printf %s "(cached) " >&6 7210else $as_nop 7211 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7212case `$LD -v 2>&1 </dev/null` in 7213*GNU* | *'with BFD'*) 7214 lt_cv_prog_gnu_ld=yes 7215 ;; 7216*) 7217 lt_cv_prog_gnu_ld=no 7218 ;; 7219esac 7220fi 7221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7222printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 7223with_gnu_ld=$lt_cv_prog_gnu_ld 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7234printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7235if test ${lt_cv_path_NM+y} 7236then : 7237 printf %s "(cached) " >&6 7238else $as_nop 7239 if test -n "$NM"; then 7240 # Let the user override the test. 7241 lt_cv_path_NM=$NM 7242else 7243 lt_nm_to_check=${ac_tool_prefix}nm 7244 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7245 lt_nm_to_check="$lt_nm_to_check nm" 7246 fi 7247 for lt_tmp_nm in $lt_nm_to_check; do 7248 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7249 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7250 IFS=$lt_save_ifs 7251 test -z "$ac_dir" && ac_dir=. 7252 tmp_nm=$ac_dir/$lt_tmp_nm 7253 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7254 # Check to see if the nm accepts a BSD-compat flag. 7255 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7256 # nm: unknown option "B" ignored 7257 # Tru64's nm complains that /dev/null is an invalid object file 7258 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7259 case $build_os in 7260 mingw*) lt_bad_file=conftest.nm/nofile ;; 7261 *) lt_bad_file=/dev/null ;; 7262 esac 7263 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7264 *$lt_bad_file* | *'Invalid file or object type'*) 7265 lt_cv_path_NM="$tmp_nm -B" 7266 break 2 7267 ;; 7268 *) 7269 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7270 */dev/null*) 7271 lt_cv_path_NM="$tmp_nm -p" 7272 break 2 7273 ;; 7274 *) 7275 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7276 continue # so that we can try to find one that supports BSD flags 7277 ;; 7278 esac 7279 ;; 7280 esac 7281 fi 7282 done 7283 IFS=$lt_save_ifs 7284 done 7285 : ${lt_cv_path_NM=no} 7286fi 7287fi 7288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7289printf "%s\n" "$lt_cv_path_NM" >&6; } 7290if test no != "$lt_cv_path_NM"; then 7291 NM=$lt_cv_path_NM 7292else 7293 # Didn't find any BSD compatible name lister, look for dumpbin. 7294 if test -n "$DUMPBIN"; then : 7295 # Let the user override the test. 7296 else 7297 if test -n "$ac_tool_prefix"; then 7298 for ac_prog in dumpbin "link -dump" 7299 do 7300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7301set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7303printf %s "checking for $ac_word... " >&6; } 7304if test ${ac_cv_prog_DUMPBIN+y} 7305then : 7306 printf %s "(cached) " >&6 7307else $as_nop 7308 if test -n "$DUMPBIN"; then 7309 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7310else 7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7312for as_dir in $PATH 7313do 7314 IFS=$as_save_IFS 7315 case $as_dir in #((( 7316 '') as_dir=./ ;; 7317 */) ;; 7318 *) as_dir=$as_dir/ ;; 7319 esac 7320 for ac_exec_ext in '' $ac_executable_extensions; do 7321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7322 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7324 break 2 7325 fi 7326done 7327 done 7328IFS=$as_save_IFS 7329 7330fi 7331fi 7332DUMPBIN=$ac_cv_prog_DUMPBIN 7333if test -n "$DUMPBIN"; then 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7335printf "%s\n" "$DUMPBIN" >&6; } 7336else 7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7338printf "%s\n" "no" >&6; } 7339fi 7340 7341 7342 test -n "$DUMPBIN" && break 7343 done 7344fi 7345if test -z "$DUMPBIN"; then 7346 ac_ct_DUMPBIN=$DUMPBIN 7347 for ac_prog in dumpbin "link -dump" 7348do 7349 # Extract the first word of "$ac_prog", so it can be a program name with args. 7350set dummy $ac_prog; ac_word=$2 7351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7352printf %s "checking for $ac_word... " >&6; } 7353if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 7354then : 7355 printf %s "(cached) " >&6 7356else $as_nop 7357 if test -n "$ac_ct_DUMPBIN"; then 7358 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7359else 7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7361for as_dir in $PATH 7362do 7363 IFS=$as_save_IFS 7364 case $as_dir in #((( 7365 '') as_dir=./ ;; 7366 */) ;; 7367 *) as_dir=$as_dir/ ;; 7368 esac 7369 for ac_exec_ext in '' $ac_executable_extensions; do 7370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7371 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7373 break 2 7374 fi 7375done 7376 done 7377IFS=$as_save_IFS 7378 7379fi 7380fi 7381ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7382if test -n "$ac_ct_DUMPBIN"; then 7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7384printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 7385else 7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7387printf "%s\n" "no" >&6; } 7388fi 7389 7390 7391 test -n "$ac_ct_DUMPBIN" && break 7392done 7393 7394 if test "x$ac_ct_DUMPBIN" = x; then 7395 DUMPBIN=":" 7396 else 7397 case $cross_compiling:$ac_tool_warned in 7398yes:) 7399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7400printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7401ac_tool_warned=yes ;; 7402esac 7403 DUMPBIN=$ac_ct_DUMPBIN 7404 fi 7405fi 7406 7407 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7408 *COFF*) 7409 DUMPBIN="$DUMPBIN -symbols -headers" 7410 ;; 7411 *) 7412 DUMPBIN=: 7413 ;; 7414 esac 7415 fi 7416 7417 if test : != "$DUMPBIN"; then 7418 NM=$DUMPBIN 7419 fi 7420fi 7421test -z "$NM" && NM=nm 7422 7423 7424 7425 7426 7427 7428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7429printf %s "checking the name lister ($NM) interface... " >&6; } 7430if test ${lt_cv_nm_interface+y} 7431then : 7432 printf %s "(cached) " >&6 7433else $as_nop 7434 lt_cv_nm_interface="BSD nm" 7435 echo "int some_variable = 0;" > conftest.$ac_ext 7436 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7437 (eval "$ac_compile" 2>conftest.err) 7438 cat conftest.err >&5 7439 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7440 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7441 cat conftest.err >&5 7442 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7443 cat conftest.out >&5 7444 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7445 lt_cv_nm_interface="MS dumpbin" 7446 fi 7447 rm -f conftest* 7448fi 7449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7450printf "%s\n" "$lt_cv_nm_interface" >&6; } 7451 7452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7453printf %s "checking whether ln -s works... " >&6; } 7454LN_S=$as_ln_s 7455if test "$LN_S" = "ln -s"; then 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7457printf "%s\n" "yes" >&6; } 7458else 7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7460printf "%s\n" "no, using $LN_S" >&6; } 7461fi 7462 7463# find the maximum length of command line arguments 7464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7465printf %s "checking the maximum length of command line arguments... " >&6; } 7466if test ${lt_cv_sys_max_cmd_len+y} 7467then : 7468 printf %s "(cached) " >&6 7469else $as_nop 7470 i=0 7471 teststring=ABCD 7472 7473 case $build_os in 7474 msdosdjgpp*) 7475 # On DJGPP, this test can blow up pretty badly due to problems in libc 7476 # (any single argument exceeding 2000 bytes causes a buffer overrun 7477 # during glob expansion). Even if it were fixed, the result of this 7478 # check would be larger than it should be. 7479 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7480 ;; 7481 7482 gnu*) 7483 # Under GNU Hurd, this test is not required because there is 7484 # no limit to the length of command line arguments. 7485 # Libtool will interpret -1 as no limit whatsoever 7486 lt_cv_sys_max_cmd_len=-1; 7487 ;; 7488 7489 cygwin* | mingw* | cegcc*) 7490 # On Win9x/ME, this test blows up -- it succeeds, but takes 7491 # about 5 minutes as the teststring grows exponentially. 7492 # Worse, since 9x/ME are not pre-emptively multitasking, 7493 # you end up with a "frozen" computer, even though with patience 7494 # the test eventually succeeds (with a max line length of 256k). 7495 # Instead, let's just punt: use the minimum linelength reported by 7496 # all of the supported platforms: 8192 (on NT/2K/XP). 7497 lt_cv_sys_max_cmd_len=8192; 7498 ;; 7499 7500 mint*) 7501 # On MiNT this can take a long time and run out of memory. 7502 lt_cv_sys_max_cmd_len=8192; 7503 ;; 7504 7505 amigaos*) 7506 # On AmigaOS with pdksh, this test takes hours, literally. 7507 # So we just punt and use a minimum line length of 8192. 7508 lt_cv_sys_max_cmd_len=8192; 7509 ;; 7510 7511 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7512 # This has been around since 386BSD, at least. Likely further. 7513 if test -x /sbin/sysctl; then 7514 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7515 elif test -x /usr/sbin/sysctl; then 7516 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7517 else 7518 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7519 fi 7520 # And add a safety zone 7521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7523 ;; 7524 7525 interix*) 7526 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7527 lt_cv_sys_max_cmd_len=196608 7528 ;; 7529 7530 os2*) 7531 # The test takes a long time on OS/2. 7532 lt_cv_sys_max_cmd_len=8192 7533 ;; 7534 7535 osf*) 7536 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7537 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7538 # nice to cause kernel panics so lets avoid the loop below. 7539 # First set a reasonable default. 7540 lt_cv_sys_max_cmd_len=16384 7541 # 7542 if test -x /sbin/sysconfig; then 7543 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7544 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7545 esac 7546 fi 7547 ;; 7548 sco3.2v5*) 7549 lt_cv_sys_max_cmd_len=102400 7550 ;; 7551 sysv5* | sco5v6* | sysv4.2uw2*) 7552 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7553 if test -n "$kargmax"; then 7554 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7555 else 7556 lt_cv_sys_max_cmd_len=32768 7557 fi 7558 ;; 7559 *) 7560 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7561 if test -n "$lt_cv_sys_max_cmd_len" && \ 7562 test undefined != "$lt_cv_sys_max_cmd_len"; then 7563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7565 else 7566 # Make teststring a little bigger before we do anything with it. 7567 # a 1K string should be a reasonable start. 7568 for i in 1 2 3 4 5 6 7 8; do 7569 teststring=$teststring$teststring 7570 done 7571 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7572 # If test is not a shell built-in, we'll probably end up computing a 7573 # maximum length that is only half of the actual maximum length, but 7574 # we can't tell. 7575 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7576 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7577 test 17 != "$i" # 1/2 MB should be enough 7578 do 7579 i=`expr $i + 1` 7580 teststring=$teststring$teststring 7581 done 7582 # Only check the string length outside the loop. 7583 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7584 teststring= 7585 # Add a significant safety factor because C++ compilers can tack on 7586 # massive amounts of additional arguments before passing them to the 7587 # linker. It appears as though 1/2 is a usable value. 7588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7589 fi 7590 ;; 7591 esac 7592 7593fi 7594 7595if test -n "$lt_cv_sys_max_cmd_len"; then 7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7597printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 7598else 7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 7600printf "%s\n" "none" >&6; } 7601fi 7602max_cmd_len=$lt_cv_sys_max_cmd_len 7603 7604 7605 7606 7607 7608 7609: ${CP="cp -f"} 7610: ${MV="mv -f"} 7611: ${RM="rm -f"} 7612 7613if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7614 lt_unset=unset 7615else 7616 lt_unset=false 7617fi 7618 7619 7620 7621 7622 7623# test EBCDIC or ASCII 7624case `echo X|tr X '\101'` in 7625 A) # ASCII based system 7626 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7627 lt_SP2NL='tr \040 \012' 7628 lt_NL2SP='tr \015\012 \040\040' 7629 ;; 7630 *) # EBCDIC based system 7631 lt_SP2NL='tr \100 \n' 7632 lt_NL2SP='tr \r\n \100\100' 7633 ;; 7634esac 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7645printf %s "checking how to convert $build file names to $host format... " >&6; } 7646if test ${lt_cv_to_host_file_cmd+y} 7647then : 7648 printf %s "(cached) " >&6 7649else $as_nop 7650 case $host in 7651 *-*-mingw* ) 7652 case $build in 7653 *-*-mingw* ) # actually msys 7654 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7655 ;; 7656 *-*-cygwin* ) 7657 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7658 ;; 7659 * ) # otherwise, assume *nix 7660 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7661 ;; 7662 esac 7663 ;; 7664 *-*-cygwin* ) 7665 case $build in 7666 *-*-mingw* ) # actually msys 7667 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7668 ;; 7669 *-*-cygwin* ) 7670 lt_cv_to_host_file_cmd=func_convert_file_noop 7671 ;; 7672 * ) # otherwise, assume *nix 7673 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7674 ;; 7675 esac 7676 ;; 7677 * ) # unhandled hosts (and "normal" native builds) 7678 lt_cv_to_host_file_cmd=func_convert_file_noop 7679 ;; 7680esac 7681 7682fi 7683 7684to_host_file_cmd=$lt_cv_to_host_file_cmd 7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7686printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 7687 7688 7689 7690 7691 7692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7693printf %s "checking how to convert $build file names to toolchain format... " >&6; } 7694if test ${lt_cv_to_tool_file_cmd+y} 7695then : 7696 printf %s "(cached) " >&6 7697else $as_nop 7698 #assume ordinary cross tools, or native build. 7699lt_cv_to_tool_file_cmd=func_convert_file_noop 7700case $host in 7701 *-*-mingw* ) 7702 case $build in 7703 *-*-mingw* ) # actually msys 7704 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7705 ;; 7706 esac 7707 ;; 7708esac 7709 7710fi 7711 7712to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7714printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 7715 7716 7717 7718 7719 7720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7721printf %s "checking for $LD option to reload object files... " >&6; } 7722if test ${lt_cv_ld_reload_flag+y} 7723then : 7724 printf %s "(cached) " >&6 7725else $as_nop 7726 lt_cv_ld_reload_flag='-r' 7727fi 7728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7729printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 7730reload_flag=$lt_cv_ld_reload_flag 7731case $reload_flag in 7732"" | " "*) ;; 7733*) reload_flag=" $reload_flag" ;; 7734esac 7735reload_cmds='$LD$reload_flag -o $output$reload_objs' 7736case $host_os in 7737 cygwin* | mingw* | pw32* | cegcc*) 7738 if test yes != "$GCC"; then 7739 reload_cmds=false 7740 fi 7741 ;; 7742 darwin*) 7743 if test yes = "$GCC"; then 7744 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7745 else 7746 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7747 fi 7748 ;; 7749esac 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759if test -n "$ac_tool_prefix"; then 7760 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7761set dummy ${ac_tool_prefix}objdump; ac_word=$2 7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7763printf %s "checking for $ac_word... " >&6; } 7764if test ${ac_cv_prog_OBJDUMP+y} 7765then : 7766 printf %s "(cached) " >&6 7767else $as_nop 7768 if test -n "$OBJDUMP"; then 7769 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7770else 7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7772for as_dir in $PATH 7773do 7774 IFS=$as_save_IFS 7775 case $as_dir in #((( 7776 '') as_dir=./ ;; 7777 */) ;; 7778 *) as_dir=$as_dir/ ;; 7779 esac 7780 for ac_exec_ext in '' $ac_executable_extensions; do 7781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7782 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7784 break 2 7785 fi 7786done 7787 done 7788IFS=$as_save_IFS 7789 7790fi 7791fi 7792OBJDUMP=$ac_cv_prog_OBJDUMP 7793if test -n "$OBJDUMP"; then 7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7795printf "%s\n" "$OBJDUMP" >&6; } 7796else 7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7798printf "%s\n" "no" >&6; } 7799fi 7800 7801 7802fi 7803if test -z "$ac_cv_prog_OBJDUMP"; then 7804 ac_ct_OBJDUMP=$OBJDUMP 7805 # Extract the first word of "objdump", so it can be a program name with args. 7806set dummy objdump; ac_word=$2 7807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7808printf %s "checking for $ac_word... " >&6; } 7809if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 7810then : 7811 printf %s "(cached) " >&6 7812else $as_nop 7813 if test -n "$ac_ct_OBJDUMP"; then 7814 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7815else 7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7817for as_dir in $PATH 7818do 7819 IFS=$as_save_IFS 7820 case $as_dir in #((( 7821 '') as_dir=./ ;; 7822 */) ;; 7823 *) as_dir=$as_dir/ ;; 7824 esac 7825 for ac_exec_ext in '' $ac_executable_extensions; do 7826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7827 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7829 break 2 7830 fi 7831done 7832 done 7833IFS=$as_save_IFS 7834 7835fi 7836fi 7837ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7838if test -n "$ac_ct_OBJDUMP"; then 7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7840printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 7841else 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7843printf "%s\n" "no" >&6; } 7844fi 7845 7846 if test "x$ac_ct_OBJDUMP" = x; then 7847 OBJDUMP="false" 7848 else 7849 case $cross_compiling:$ac_tool_warned in 7850yes:) 7851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7852printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7853ac_tool_warned=yes ;; 7854esac 7855 OBJDUMP=$ac_ct_OBJDUMP 7856 fi 7857else 7858 OBJDUMP="$ac_cv_prog_OBJDUMP" 7859fi 7860 7861test -z "$OBJDUMP" && OBJDUMP=objdump 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7872printf %s "checking how to recognize dependent libraries... " >&6; } 7873if test ${lt_cv_deplibs_check_method+y} 7874then : 7875 printf %s "(cached) " >&6 7876else $as_nop 7877 lt_cv_file_magic_cmd='$MAGIC_CMD' 7878lt_cv_file_magic_test_file= 7879lt_cv_deplibs_check_method='unknown' 7880# Need to set the preceding variable on all platforms that support 7881# interlibrary dependencies. 7882# 'none' -- dependencies not supported. 7883# 'unknown' -- same as none, but documents that we really don't know. 7884# 'pass_all' -- all dependencies passed with no checks. 7885# 'test_compile' -- check by making test program. 7886# 'file_magic [[regex]]' -- check by looking for files in library path 7887# that responds to the $file_magic_cmd with a given extended regex. 7888# If you have 'file' or equivalent on your system and you're not sure 7889# whether 'pass_all' will *always* work, you probably want this one. 7890 7891case $host_os in 7892aix[4-9]*) 7893 lt_cv_deplibs_check_method=pass_all 7894 ;; 7895 7896beos*) 7897 lt_cv_deplibs_check_method=pass_all 7898 ;; 7899 7900bsdi[45]*) 7901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7902 lt_cv_file_magic_cmd='/usr/bin/file -L' 7903 lt_cv_file_magic_test_file=/shlib/libc.so 7904 ;; 7905 7906cygwin*) 7907 # func_win32_libid is a shell function defined in ltmain.sh 7908 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7909 lt_cv_file_magic_cmd='func_win32_libid' 7910 ;; 7911 7912mingw* | pw32*) 7913 # Base MSYS/MinGW do not provide the 'file' command needed by 7914 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7915 # unless we find 'file', for example because we are cross-compiling. 7916 if ( file / ) >/dev/null 2>&1; then 7917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7918 lt_cv_file_magic_cmd='func_win32_libid' 7919 else 7920 # Keep this pattern in sync with the one in func_win32_libid. 7921 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7922 lt_cv_file_magic_cmd='$OBJDUMP -f' 7923 fi 7924 ;; 7925 7926cegcc*) 7927 # use the weaker test based on 'objdump'. See mingw*. 7928 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7929 lt_cv_file_magic_cmd='$OBJDUMP -f' 7930 ;; 7931 7932darwin* | rhapsody*) 7933 lt_cv_deplibs_check_method=pass_all 7934 ;; 7935 7936freebsd* | dragonfly*) 7937 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7938 case $host_cpu in 7939 i*86 ) 7940 # Not sure whether the presence of OpenBSD here was a mistake. 7941 # Let's accept both of them until this is cleared up. 7942 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7943 lt_cv_file_magic_cmd=/usr/bin/file 7944 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7945 ;; 7946 esac 7947 else 7948 lt_cv_deplibs_check_method=pass_all 7949 fi 7950 ;; 7951 7952haiku*) 7953 lt_cv_deplibs_check_method=pass_all 7954 ;; 7955 7956hpux10.20* | hpux11*) 7957 lt_cv_file_magic_cmd=/usr/bin/file 7958 case $host_cpu in 7959 ia64*) 7960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7961 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7962 ;; 7963 hppa*64*) 7964 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]' 7965 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7966 ;; 7967 *) 7968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7969 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7970 ;; 7971 esac 7972 ;; 7973 7974interix[3-9]*) 7975 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7977 ;; 7978 7979irix5* | irix6* | nonstopux*) 7980 case $LD in 7981 *-32|*"-32 ") libmagic=32-bit;; 7982 *-n32|*"-n32 ") libmagic=N32;; 7983 *-64|*"-64 ") libmagic=64-bit;; 7984 *) libmagic=never-match;; 7985 esac 7986 lt_cv_deplibs_check_method=pass_all 7987 ;; 7988 7989# This must be glibc/ELF. 7990linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7991 lt_cv_deplibs_check_method=pass_all 7992 ;; 7993 7994netbsd* | netbsdelf*-gnu) 7995 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7997 else 7998 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7999 fi 8000 ;; 8001 8002newos6*) 8003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8004 lt_cv_file_magic_cmd=/usr/bin/file 8005 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8006 ;; 8007 8008*nto* | *qnx*) 8009 lt_cv_deplibs_check_method=pass_all 8010 ;; 8011 8012openbsd* | bitrig*) 8013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8015 else 8016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8017 fi 8018 ;; 8019 8020osf3* | osf4* | osf5*) 8021 lt_cv_deplibs_check_method=pass_all 8022 ;; 8023 8024rdos*) 8025 lt_cv_deplibs_check_method=pass_all 8026 ;; 8027 8028solaris*) 8029 lt_cv_deplibs_check_method=pass_all 8030 ;; 8031 8032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8033 lt_cv_deplibs_check_method=pass_all 8034 ;; 8035 8036sysv4 | sysv4.3*) 8037 case $host_vendor in 8038 motorola) 8039 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]' 8040 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8041 ;; 8042 ncr) 8043 lt_cv_deplibs_check_method=pass_all 8044 ;; 8045 sequent) 8046 lt_cv_file_magic_cmd='/bin/file' 8047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8048 ;; 8049 sni) 8050 lt_cv_file_magic_cmd='/bin/file' 8051 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8052 lt_cv_file_magic_test_file=/lib/libc.so 8053 ;; 8054 siemens) 8055 lt_cv_deplibs_check_method=pass_all 8056 ;; 8057 pc) 8058 lt_cv_deplibs_check_method=pass_all 8059 ;; 8060 esac 8061 ;; 8062 8063tpf*) 8064 lt_cv_deplibs_check_method=pass_all 8065 ;; 8066os2*) 8067 lt_cv_deplibs_check_method=pass_all 8068 ;; 8069esac 8070 8071fi 8072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8073printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 8074 8075file_magic_glob= 8076want_nocaseglob=no 8077if test "$build" = "$host"; then 8078 case $host_os in 8079 mingw* | pw32*) 8080 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8081 want_nocaseglob=yes 8082 else 8083 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8084 fi 8085 ;; 8086 esac 8087fi 8088 8089file_magic_cmd=$lt_cv_file_magic_cmd 8090deplibs_check_method=$lt_cv_deplibs_check_method 8091test -z "$deplibs_check_method" && deplibs_check_method=unknown 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114if test -n "$ac_tool_prefix"; then 8115 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8116set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8118printf %s "checking for $ac_word... " >&6; } 8119if test ${ac_cv_prog_DLLTOOL+y} 8120then : 8121 printf %s "(cached) " >&6 8122else $as_nop 8123 if test -n "$DLLTOOL"; then 8124 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8125else 8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127for as_dir in $PATH 8128do 8129 IFS=$as_save_IFS 8130 case $as_dir in #((( 8131 '') as_dir=./ ;; 8132 */) ;; 8133 *) as_dir=$as_dir/ ;; 8134 esac 8135 for ac_exec_ext in '' $ac_executable_extensions; do 8136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8137 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8139 break 2 8140 fi 8141done 8142 done 8143IFS=$as_save_IFS 8144 8145fi 8146fi 8147DLLTOOL=$ac_cv_prog_DLLTOOL 8148if test -n "$DLLTOOL"; then 8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8150printf "%s\n" "$DLLTOOL" >&6; } 8151else 8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8153printf "%s\n" "no" >&6; } 8154fi 8155 8156 8157fi 8158if test -z "$ac_cv_prog_DLLTOOL"; then 8159 ac_ct_DLLTOOL=$DLLTOOL 8160 # Extract the first word of "dlltool", so it can be a program name with args. 8161set dummy dlltool; ac_word=$2 8162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8163printf %s "checking for $ac_word... " >&6; } 8164if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 8165then : 8166 printf %s "(cached) " >&6 8167else $as_nop 8168 if test -n "$ac_ct_DLLTOOL"; then 8169 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8170else 8171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8172for as_dir in $PATH 8173do 8174 IFS=$as_save_IFS 8175 case $as_dir in #((( 8176 '') as_dir=./ ;; 8177 */) ;; 8178 *) as_dir=$as_dir/ ;; 8179 esac 8180 for ac_exec_ext in '' $ac_executable_extensions; do 8181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8182 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8184 break 2 8185 fi 8186done 8187 done 8188IFS=$as_save_IFS 8189 8190fi 8191fi 8192ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8193if test -n "$ac_ct_DLLTOOL"; then 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8195printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 8196else 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8198printf "%s\n" "no" >&6; } 8199fi 8200 8201 if test "x$ac_ct_DLLTOOL" = x; then 8202 DLLTOOL="false" 8203 else 8204 case $cross_compiling:$ac_tool_warned in 8205yes:) 8206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8207printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8208ac_tool_warned=yes ;; 8209esac 8210 DLLTOOL=$ac_ct_DLLTOOL 8211 fi 8212else 8213 DLLTOOL="$ac_cv_prog_DLLTOOL" 8214fi 8215 8216test -z "$DLLTOOL" && DLLTOOL=dlltool 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8228printf %s "checking how to associate runtime and link libraries... " >&6; } 8229if test ${lt_cv_sharedlib_from_linklib_cmd+y} 8230then : 8231 printf %s "(cached) " >&6 8232else $as_nop 8233 lt_cv_sharedlib_from_linklib_cmd='unknown' 8234 8235case $host_os in 8236cygwin* | mingw* | pw32* | cegcc*) 8237 # two different shell functions defined in ltmain.sh; 8238 # decide which one to use based on capabilities of $DLLTOOL 8239 case `$DLLTOOL --help 2>&1` in 8240 *--identify-strict*) 8241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8242 ;; 8243 *) 8244 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8245 ;; 8246 esac 8247 ;; 8248*) 8249 # fallback: assume linklib IS sharedlib 8250 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8251 ;; 8252esac 8253 8254fi 8255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8256printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8257sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8258test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8259 8260 8261 8262 8263 8264 8265 8266if test -n "$ac_tool_prefix"; then 8267 for ac_prog in ar 8268 do 8269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8270set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8272printf %s "checking for $ac_word... " >&6; } 8273if test ${ac_cv_prog_AR+y} 8274then : 8275 printf %s "(cached) " >&6 8276else $as_nop 8277 if test -n "$AR"; then 8278 ac_cv_prog_AR="$AR" # Let the user override the test. 8279else 8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8281for as_dir in $PATH 8282do 8283 IFS=$as_save_IFS 8284 case $as_dir in #((( 8285 '') as_dir=./ ;; 8286 */) ;; 8287 *) as_dir=$as_dir/ ;; 8288 esac 8289 for ac_exec_ext in '' $ac_executable_extensions; do 8290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8291 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8293 break 2 8294 fi 8295done 8296 done 8297IFS=$as_save_IFS 8298 8299fi 8300fi 8301AR=$ac_cv_prog_AR 8302if test -n "$AR"; then 8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8304printf "%s\n" "$AR" >&6; } 8305else 8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8307printf "%s\n" "no" >&6; } 8308fi 8309 8310 8311 test -n "$AR" && break 8312 done 8313fi 8314if test -z "$AR"; then 8315 ac_ct_AR=$AR 8316 for ac_prog in ar 8317do 8318 # Extract the first word of "$ac_prog", so it can be a program name with args. 8319set dummy $ac_prog; ac_word=$2 8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8321printf %s "checking for $ac_word... " >&6; } 8322if test ${ac_cv_prog_ac_ct_AR+y} 8323then : 8324 printf %s "(cached) " >&6 8325else $as_nop 8326 if test -n "$ac_ct_AR"; then 8327 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8328else 8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8330for as_dir in $PATH 8331do 8332 IFS=$as_save_IFS 8333 case $as_dir in #((( 8334 '') as_dir=./ ;; 8335 */) ;; 8336 *) as_dir=$as_dir/ ;; 8337 esac 8338 for ac_exec_ext in '' $ac_executable_extensions; do 8339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8340 ac_cv_prog_ac_ct_AR="$ac_prog" 8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8342 break 2 8343 fi 8344done 8345 done 8346IFS=$as_save_IFS 8347 8348fi 8349fi 8350ac_ct_AR=$ac_cv_prog_ac_ct_AR 8351if test -n "$ac_ct_AR"; then 8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8353printf "%s\n" "$ac_ct_AR" >&6; } 8354else 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8356printf "%s\n" "no" >&6; } 8357fi 8358 8359 8360 test -n "$ac_ct_AR" && break 8361done 8362 8363 if test "x$ac_ct_AR" = x; then 8364 AR="false" 8365 else 8366 case $cross_compiling:$ac_tool_warned in 8367yes:) 8368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8370ac_tool_warned=yes ;; 8371esac 8372 AR=$ac_ct_AR 8373 fi 8374fi 8375 8376: ${AR=ar} 8377: ${AR_FLAGS=cr} 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8390printf %s "checking for archiver @FILE support... " >&6; } 8391if test ${lt_cv_ar_at_file+y} 8392then : 8393 printf %s "(cached) " >&6 8394else $as_nop 8395 lt_cv_ar_at_file=no 8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8397/* end confdefs.h. */ 8398 8399int 8400main (void) 8401{ 8402 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407if ac_fn_c_try_compile "$LINENO" 8408then : 8409 echo conftest.$ac_objext > conftest.lst 8410 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8412 (eval $lt_ar_try) 2>&5 8413 ac_status=$? 8414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8415 test $ac_status = 0; } 8416 if test 0 -eq "$ac_status"; then 8417 # Ensure the archiver fails upon bogus file names. 8418 rm -f conftest.$ac_objext libconftest.a 8419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8420 (eval $lt_ar_try) 2>&5 8421 ac_status=$? 8422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8423 test $ac_status = 0; } 8424 if test 0 -ne "$ac_status"; then 8425 lt_cv_ar_at_file=@ 8426 fi 8427 fi 8428 rm -f conftest.* libconftest.a 8429 8430fi 8431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8432 8433fi 8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8435printf "%s\n" "$lt_cv_ar_at_file" >&6; } 8436 8437if test no = "$lt_cv_ar_at_file"; then 8438 archiver_list_spec= 8439else 8440 archiver_list_spec=$lt_cv_ar_at_file 8441fi 8442 8443 8444 8445 8446 8447 8448 8449if test -n "$ac_tool_prefix"; then 8450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8451set dummy ${ac_tool_prefix}strip; ac_word=$2 8452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8453printf %s "checking for $ac_word... " >&6; } 8454if test ${ac_cv_prog_STRIP+y} 8455then : 8456 printf %s "(cached) " >&6 8457else $as_nop 8458 if test -n "$STRIP"; then 8459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8460else 8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8462for as_dir in $PATH 8463do 8464 IFS=$as_save_IFS 8465 case $as_dir in #((( 8466 '') as_dir=./ ;; 8467 */) ;; 8468 *) as_dir=$as_dir/ ;; 8469 esac 8470 for ac_exec_ext in '' $ac_executable_extensions; do 8471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8472 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8474 break 2 8475 fi 8476done 8477 done 8478IFS=$as_save_IFS 8479 8480fi 8481fi 8482STRIP=$ac_cv_prog_STRIP 8483if test -n "$STRIP"; then 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8485printf "%s\n" "$STRIP" >&6; } 8486else 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8488printf "%s\n" "no" >&6; } 8489fi 8490 8491 8492fi 8493if test -z "$ac_cv_prog_STRIP"; then 8494 ac_ct_STRIP=$STRIP 8495 # Extract the first word of "strip", so it can be a program name with args. 8496set dummy strip; ac_word=$2 8497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8498printf %s "checking for $ac_word... " >&6; } 8499if test ${ac_cv_prog_ac_ct_STRIP+y} 8500then : 8501 printf %s "(cached) " >&6 8502else $as_nop 8503 if test -n "$ac_ct_STRIP"; then 8504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8505else 8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8507for as_dir in $PATH 8508do 8509 IFS=$as_save_IFS 8510 case $as_dir in #((( 8511 '') as_dir=./ ;; 8512 */) ;; 8513 *) as_dir=$as_dir/ ;; 8514 esac 8515 for ac_exec_ext in '' $ac_executable_extensions; do 8516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8517 ac_cv_prog_ac_ct_STRIP="strip" 8518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8519 break 2 8520 fi 8521done 8522 done 8523IFS=$as_save_IFS 8524 8525fi 8526fi 8527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8528if test -n "$ac_ct_STRIP"; then 8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8530printf "%s\n" "$ac_ct_STRIP" >&6; } 8531else 8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8533printf "%s\n" "no" >&6; } 8534fi 8535 8536 if test "x$ac_ct_STRIP" = x; then 8537 STRIP=":" 8538 else 8539 case $cross_compiling:$ac_tool_warned in 8540yes:) 8541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8542printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8543ac_tool_warned=yes ;; 8544esac 8545 STRIP=$ac_ct_STRIP 8546 fi 8547else 8548 STRIP="$ac_cv_prog_STRIP" 8549fi 8550 8551test -z "$STRIP" && STRIP=: 8552 8553 8554 8555 8556 8557 8558if test -n "$ac_tool_prefix"; then 8559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8560set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8562printf %s "checking for $ac_word... " >&6; } 8563if test ${ac_cv_prog_RANLIB+y} 8564then : 8565 printf %s "(cached) " >&6 8566else $as_nop 8567 if test -n "$RANLIB"; then 8568 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8569else 8570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8571for as_dir in $PATH 8572do 8573 IFS=$as_save_IFS 8574 case $as_dir in #((( 8575 '') as_dir=./ ;; 8576 */) ;; 8577 *) as_dir=$as_dir/ ;; 8578 esac 8579 for ac_exec_ext in '' $ac_executable_extensions; do 8580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8583 break 2 8584 fi 8585done 8586 done 8587IFS=$as_save_IFS 8588 8589fi 8590fi 8591RANLIB=$ac_cv_prog_RANLIB 8592if test -n "$RANLIB"; then 8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8594printf "%s\n" "$RANLIB" >&6; } 8595else 8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8597printf "%s\n" "no" >&6; } 8598fi 8599 8600 8601fi 8602if test -z "$ac_cv_prog_RANLIB"; then 8603 ac_ct_RANLIB=$RANLIB 8604 # Extract the first word of "ranlib", so it can be a program name with args. 8605set dummy ranlib; ac_word=$2 8606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8607printf %s "checking for $ac_word... " >&6; } 8608if test ${ac_cv_prog_ac_ct_RANLIB+y} 8609then : 8610 printf %s "(cached) " >&6 8611else $as_nop 8612 if test -n "$ac_ct_RANLIB"; then 8613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8614else 8615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8616for as_dir in $PATH 8617do 8618 IFS=$as_save_IFS 8619 case $as_dir in #((( 8620 '') as_dir=./ ;; 8621 */) ;; 8622 *) as_dir=$as_dir/ ;; 8623 esac 8624 for ac_exec_ext in '' $ac_executable_extensions; do 8625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8626 ac_cv_prog_ac_ct_RANLIB="ranlib" 8627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8628 break 2 8629 fi 8630done 8631 done 8632IFS=$as_save_IFS 8633 8634fi 8635fi 8636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8637if test -n "$ac_ct_RANLIB"; then 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8639printf "%s\n" "$ac_ct_RANLIB" >&6; } 8640else 8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8642printf "%s\n" "no" >&6; } 8643fi 8644 8645 if test "x$ac_ct_RANLIB" = x; then 8646 RANLIB=":" 8647 else 8648 case $cross_compiling:$ac_tool_warned in 8649yes:) 8650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8651printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8652ac_tool_warned=yes ;; 8653esac 8654 RANLIB=$ac_ct_RANLIB 8655 fi 8656else 8657 RANLIB="$ac_cv_prog_RANLIB" 8658fi 8659 8660test -z "$RANLIB" && RANLIB=: 8661 8662 8663 8664 8665 8666 8667# Determine commands to create old-style static archives. 8668old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8669old_postinstall_cmds='chmod 644 $oldlib' 8670old_postuninstall_cmds= 8671 8672if test -n "$RANLIB"; then 8673 case $host_os in 8674 bitrig* | openbsd*) 8675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8676 ;; 8677 *) 8678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8679 ;; 8680 esac 8681 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8682fi 8683 8684case $host_os in 8685 darwin*) 8686 lock_old_archive_extraction=yes ;; 8687 *) 8688 lock_old_archive_extraction=no ;; 8689esac 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729# If no C compiler was specified, use CC. 8730LTCC=${LTCC-"$CC"} 8731 8732# If no C compiler flags were specified, use CFLAGS. 8733LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8734 8735# Allow CC to be a program name with arguments. 8736compiler=$CC 8737 8738 8739# Check for command to grab the raw symbol name followed by C symbol from nm. 8740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8741printf %s "checking command to parse $NM output from $compiler object... " >&6; } 8742if test ${lt_cv_sys_global_symbol_pipe+y} 8743then : 8744 printf %s "(cached) " >&6 8745else $as_nop 8746 8747# These are sane defaults that work on at least a few old systems. 8748# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8749 8750# Character class describing NM global symbol codes. 8751symcode='[BCDEGRST]' 8752 8753# Regexp to match symbols that can be accessed directly from C. 8754sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8755 8756# Define system-specific variables. 8757case $host_os in 8758aix*) 8759 symcode='[BCDT]' 8760 ;; 8761cygwin* | mingw* | pw32* | cegcc*) 8762 symcode='[ABCDGISTW]' 8763 ;; 8764hpux*) 8765 if test ia64 = "$host_cpu"; then 8766 symcode='[ABCDEGRST]' 8767 fi 8768 ;; 8769irix* | nonstopux*) 8770 symcode='[BCDEGRST]' 8771 ;; 8772osf*) 8773 symcode='[BCDEGQRST]' 8774 ;; 8775solaris*) 8776 symcode='[BDRT]' 8777 ;; 8778sco3.2v5*) 8779 symcode='[DT]' 8780 ;; 8781sysv4.2uw2*) 8782 symcode='[DT]' 8783 ;; 8784sysv5* | sco5v6* | unixware* | OpenUNIX*) 8785 symcode='[ABDT]' 8786 ;; 8787sysv4) 8788 symcode='[DFNSTU]' 8789 ;; 8790esac 8791 8792# If we're using GNU nm, then use its standard symbol codes. 8793case `$NM -V 2>&1` in 8794*GNU* | *'with BFD'*) 8795 symcode='[ABCDGIRSTW]' ;; 8796esac 8797 8798if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8799 # Gets list of data symbols to import. 8800 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8801 # Adjust the below global symbol transforms to fixup imported variables. 8802 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8803 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8804 lt_c_name_lib_hook="\ 8805 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8806 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8807else 8808 # Disable hooks by default. 8809 lt_cv_sys_global_symbol_to_import= 8810 lt_cdecl_hook= 8811 lt_c_name_hook= 8812 lt_c_name_lib_hook= 8813fi 8814 8815# Transform an extracted symbol line into a proper C declaration. 8816# Some systems (esp. on ia64) link data and code symbols differently, 8817# so use this general approach. 8818lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8819$lt_cdecl_hook\ 8820" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8821" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8822 8823# Transform an extracted symbol line into symbol name and symbol address 8824lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8825$lt_c_name_hook\ 8826" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8827" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8828 8829# Transform an extracted symbol line into symbol name with lib prefix and 8830# symbol address. 8831lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8832$lt_c_name_lib_hook\ 8833" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8834" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8835" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8836 8837# Handle CRLF in mingw tool chain 8838opt_cr= 8839case $build_os in 8840mingw*) 8841 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8842 ;; 8843esac 8844 8845# Try without a prefix underscore, then with it. 8846for ac_symprfx in "" "_"; do 8847 8848 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8849 symxfrm="\\1 $ac_symprfx\\2 \\2" 8850 8851 # Write the raw and C identifiers. 8852 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8853 # Fake it for dumpbin and say T for any non-static function, 8854 # D for any global variable and I for any imported variable. 8855 # Also find C++ and __fastcall symbols from MSVC++, 8856 # which start with @ or ?. 8857 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8858" {last_section=section; section=\$ 3};"\ 8859" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8860" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8861" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8862" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8863" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8864" \$ 0!~/External *\|/{next};"\ 8865" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8866" {if(hide[section]) next};"\ 8867" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8868" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8869" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8870" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8871" ' prfx=^$ac_symprfx" 8872 else 8873 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8874 fi 8875 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8876 8877 # Check to see that the pipe works correctly. 8878 pipe_works=no 8879 8880 rm -f conftest* 8881 cat > conftest.$ac_ext <<_LT_EOF 8882#ifdef __cplusplus 8883extern "C" { 8884#endif 8885char nm_test_var; 8886void nm_test_func(void); 8887void nm_test_func(void){} 8888#ifdef __cplusplus 8889} 8890#endif 8891int main(){nm_test_var='a';nm_test_func();return(0);} 8892_LT_EOF 8893 8894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8895 (eval $ac_compile) 2>&5 8896 ac_status=$? 8897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8898 test $ac_status = 0; }; then 8899 # Now try to grab the symbols. 8900 nlist=conftest.nm 8901 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 8902 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 8903 # Try sorting and uniquifying the output. 8904 if sort "$nlist" | uniq > "$nlist"T; then 8905 mv -f "$nlist"T "$nlist" 8906 else 8907 rm -f "$nlist"T 8908 fi 8909 8910 # Make sure that we snagged all the symbols we need. 8911 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8912 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8913 cat <<_LT_EOF > conftest.$ac_ext 8914/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8915#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8916/* DATA imports from DLLs on WIN32 can't be const, because runtime 8917 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8918# define LT_DLSYM_CONST 8919#elif defined __osf__ 8920/* This system does not cope well with relocations in const data. */ 8921# define LT_DLSYM_CONST 8922#else 8923# define LT_DLSYM_CONST const 8924#endif 8925 8926#ifdef __cplusplus 8927extern "C" { 8928#endif 8929 8930_LT_EOF 8931 # Now generate the symbol file. 8932 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8933 8934 cat <<_LT_EOF >> conftest.$ac_ext 8935 8936/* The mapping between symbol names and symbols. */ 8937LT_DLSYM_CONST struct { 8938 const char *name; 8939 void *address; 8940} 8941lt__PROGRAM__LTX_preloaded_symbols[] = 8942{ 8943 { "@PROGRAM@", (void *) 0 }, 8944_LT_EOF 8945 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8946 cat <<\_LT_EOF >> conftest.$ac_ext 8947 {0, (void *) 0} 8948}; 8949 8950/* This works around a problem in FreeBSD linker */ 8951#ifdef FREEBSD_WORKAROUND 8952static const void *lt_preloaded_setup() { 8953 return lt__PROGRAM__LTX_preloaded_symbols; 8954} 8955#endif 8956 8957#ifdef __cplusplus 8958} 8959#endif 8960_LT_EOF 8961 # Now try linking the two files. 8962 mv conftest.$ac_objext conftstm.$ac_objext 8963 lt_globsym_save_LIBS=$LIBS 8964 lt_globsym_save_CFLAGS=$CFLAGS 8965 LIBS=conftstm.$ac_objext 8966 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8968 (eval $ac_link) 2>&5 8969 ac_status=$? 8970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8971 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8972 pipe_works=yes 8973 fi 8974 LIBS=$lt_globsym_save_LIBS 8975 CFLAGS=$lt_globsym_save_CFLAGS 8976 else 8977 echo "cannot find nm_test_func in $nlist" >&5 8978 fi 8979 else 8980 echo "cannot find nm_test_var in $nlist" >&5 8981 fi 8982 else 8983 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8984 fi 8985 else 8986 echo "$progname: failed program was:" >&5 8987 cat conftest.$ac_ext >&5 8988 fi 8989 rm -rf conftest* conftst* 8990 8991 # Do not use the global_symbol_pipe unless it works. 8992 if test yes = "$pipe_works"; then 8993 break 8994 else 8995 lt_cv_sys_global_symbol_pipe= 8996 fi 8997done 8998 8999fi 9000 9001if test -z "$lt_cv_sys_global_symbol_pipe"; then 9002 lt_cv_sys_global_symbol_to_cdecl= 9003fi 9004if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9006printf "%s\n" "failed" >&6; } 9007else 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9009printf "%s\n" "ok" >&6; } 9010fi 9011 9012# Response file support. 9013if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9014 nm_file_list_spec='@' 9015elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9016 nm_file_list_spec='@' 9017fi 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9056printf %s "checking for sysroot... " >&6; } 9057 9058# Check whether --with-sysroot was given. 9059if test ${with_sysroot+y} 9060then : 9061 withval=$with_sysroot; 9062else $as_nop 9063 with_sysroot=no 9064fi 9065 9066 9067lt_sysroot= 9068case $with_sysroot in #( 9069 yes) 9070 if test yes = "$GCC"; then 9071 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9072 fi 9073 ;; #( 9074 /*) 9075 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9076 ;; #( 9077 no|'') 9078 ;; #( 9079 *) 9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9081printf "%s\n" "$with_sysroot" >&6; } 9082 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9083 ;; 9084esac 9085 9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9087printf "%s\n" "${lt_sysroot:-no}" >&6; } 9088 9089 9090 9091 9092 9093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9094printf %s "checking for a working dd... " >&6; } 9095if test ${ac_cv_path_lt_DD+y} 9096then : 9097 printf %s "(cached) " >&6 9098else $as_nop 9099 printf 0123456789abcdef0123456789abcdef >conftest.i 9100cat conftest.i conftest.i >conftest2.i 9101: ${lt_DD:=$DD} 9102if test -z "$lt_DD"; then 9103 ac_path_lt_DD_found=false 9104 # Loop through the user's path and test for each of PROGNAME-LIST 9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9106for as_dir in $PATH 9107do 9108 IFS=$as_save_IFS 9109 case $as_dir in #((( 9110 '') as_dir=./ ;; 9111 */) ;; 9112 *) as_dir=$as_dir/ ;; 9113 esac 9114 for ac_prog in dd 9115 do 9116 for ac_exec_ext in '' $ac_executable_extensions; do 9117 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 9118 as_fn_executable_p "$ac_path_lt_DD" || continue 9119if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9120 cmp -s conftest.i conftest.out \ 9121 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9122fi 9123 $ac_path_lt_DD_found && break 3 9124 done 9125 done 9126 done 9127IFS=$as_save_IFS 9128 if test -z "$ac_cv_path_lt_DD"; then 9129 : 9130 fi 9131else 9132 ac_cv_path_lt_DD=$lt_DD 9133fi 9134 9135rm -f conftest.i conftest2.i conftest.out 9136fi 9137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9138printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 9139 9140 9141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9142printf %s "checking how to truncate binary pipes... " >&6; } 9143if test ${lt_cv_truncate_bin+y} 9144then : 9145 printf %s "(cached) " >&6 9146else $as_nop 9147 printf 0123456789abcdef0123456789abcdef >conftest.i 9148cat conftest.i conftest.i >conftest2.i 9149lt_cv_truncate_bin= 9150if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9151 cmp -s conftest.i conftest.out \ 9152 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9153fi 9154rm -f conftest.i conftest2.i conftest.out 9155test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9156fi 9157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9158printf "%s\n" "$lt_cv_truncate_bin" >&6; } 9159 9160 9161 9162 9163 9164 9165 9166# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9167func_cc_basename () 9168{ 9169 for cc_temp in $*""; do 9170 case $cc_temp in 9171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9173 \-*) ;; 9174 *) break;; 9175 esac 9176 done 9177 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9178} 9179 9180# Check whether --enable-libtool-lock was given. 9181if test ${enable_libtool_lock+y} 9182then : 9183 enableval=$enable_libtool_lock; 9184fi 9185 9186test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9187 9188# Some flags need to be propagated to the compiler or linker for good 9189# libtool support. 9190case $host in 9191ia64-*-hpux*) 9192 # Find out what ABI is being produced by ac_compile, and set mode 9193 # options accordingly. 9194 echo 'int i;' > conftest.$ac_ext 9195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9196 (eval $ac_compile) 2>&5 9197 ac_status=$? 9198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9199 test $ac_status = 0; }; then 9200 case `/usr/bin/file conftest.$ac_objext` in 9201 *ELF-32*) 9202 HPUX_IA64_MODE=32 9203 ;; 9204 *ELF-64*) 9205 HPUX_IA64_MODE=64 9206 ;; 9207 esac 9208 fi 9209 rm -rf conftest* 9210 ;; 9211*-*-irix6*) 9212 # Find out what ABI is being produced by ac_compile, and set linker 9213 # options accordingly. 9214 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9216 (eval $ac_compile) 2>&5 9217 ac_status=$? 9218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9219 test $ac_status = 0; }; then 9220 if test yes = "$lt_cv_prog_gnu_ld"; then 9221 case `/usr/bin/file conftest.$ac_objext` in 9222 *32-bit*) 9223 LD="${LD-ld} -melf32bsmip" 9224 ;; 9225 *N32*) 9226 LD="${LD-ld} -melf32bmipn32" 9227 ;; 9228 *64-bit*) 9229 LD="${LD-ld} -melf64bmip" 9230 ;; 9231 esac 9232 else 9233 case `/usr/bin/file conftest.$ac_objext` in 9234 *32-bit*) 9235 LD="${LD-ld} -32" 9236 ;; 9237 *N32*) 9238 LD="${LD-ld} -n32" 9239 ;; 9240 *64-bit*) 9241 LD="${LD-ld} -64" 9242 ;; 9243 esac 9244 fi 9245 fi 9246 rm -rf conftest* 9247 ;; 9248 9249mips64*-*linux*) 9250 # Find out what ABI is being produced by ac_compile, and set linker 9251 # options accordingly. 9252 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9254 (eval $ac_compile) 2>&5 9255 ac_status=$? 9256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9257 test $ac_status = 0; }; then 9258 emul=elf 9259 case `/usr/bin/file conftest.$ac_objext` in 9260 *32-bit*) 9261 emul="${emul}32" 9262 ;; 9263 *64-bit*) 9264 emul="${emul}64" 9265 ;; 9266 esac 9267 case `/usr/bin/file conftest.$ac_objext` in 9268 *MSB*) 9269 emul="${emul}btsmip" 9270 ;; 9271 *LSB*) 9272 emul="${emul}ltsmip" 9273 ;; 9274 esac 9275 case `/usr/bin/file conftest.$ac_objext` in 9276 *N32*) 9277 emul="${emul}n32" 9278 ;; 9279 esac 9280 LD="${LD-ld} -m $emul" 9281 fi 9282 rm -rf conftest* 9283 ;; 9284 9285x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9286s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9287 # Find out what ABI is being produced by ac_compile, and set linker 9288 # options accordingly. Note that the listed cases only cover the 9289 # situations where additional linker options are needed (such as when 9290 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9291 # vice versa); the common cases where no linker options are needed do 9292 # not appear in the list. 9293 echo 'int i;' > conftest.$ac_ext 9294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9295 (eval $ac_compile) 2>&5 9296 ac_status=$? 9297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9298 test $ac_status = 0; }; then 9299 case `/usr/bin/file conftest.o` in 9300 *32-bit*) 9301 case $host in 9302 x86_64-*kfreebsd*-gnu) 9303 LD="${LD-ld} -m elf_i386_fbsd" 9304 ;; 9305 x86_64-*linux*) 9306 case `/usr/bin/file conftest.o` in 9307 *x86-64*) 9308 LD="${LD-ld} -m elf32_x86_64" 9309 ;; 9310 *) 9311 LD="${LD-ld} -m elf_i386" 9312 ;; 9313 esac 9314 ;; 9315 powerpc64le-*linux*) 9316 LD="${LD-ld} -m elf32lppclinux" 9317 ;; 9318 powerpc64-*linux*) 9319 LD="${LD-ld} -m elf32ppclinux" 9320 ;; 9321 s390x-*linux*) 9322 LD="${LD-ld} -m elf_s390" 9323 ;; 9324 sparc64-*linux*) 9325 LD="${LD-ld} -m elf32_sparc" 9326 ;; 9327 esac 9328 ;; 9329 *64-bit*) 9330 case $host in 9331 x86_64-*kfreebsd*-gnu) 9332 LD="${LD-ld} -m elf_x86_64_fbsd" 9333 ;; 9334 x86_64-*linux*) 9335 LD="${LD-ld} -m elf_x86_64" 9336 ;; 9337 powerpcle-*linux*) 9338 LD="${LD-ld} -m elf64lppc" 9339 ;; 9340 powerpc-*linux*) 9341 LD="${LD-ld} -m elf64ppc" 9342 ;; 9343 s390*-*linux*|s390*-*tpf*) 9344 LD="${LD-ld} -m elf64_s390" 9345 ;; 9346 sparc*-*linux*) 9347 LD="${LD-ld} -m elf64_sparc" 9348 ;; 9349 esac 9350 ;; 9351 esac 9352 fi 9353 rm -rf conftest* 9354 ;; 9355 9356*-*-sco3.2v5*) 9357 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9358 SAVE_CFLAGS=$CFLAGS 9359 CFLAGS="$CFLAGS -belf" 9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9361printf %s "checking whether the C compiler needs -belf... " >&6; } 9362if test ${lt_cv_cc_needs_belf+y} 9363then : 9364 printf %s "(cached) " >&6 9365else $as_nop 9366 ac_ext=c 9367ac_cpp='$CPP $CPPFLAGS' 9368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9370ac_compiler_gnu=$ac_cv_c_compiler_gnu 9371 9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9373/* end confdefs.h. */ 9374 9375int 9376main (void) 9377{ 9378 9379 ; 9380 return 0; 9381} 9382_ACEOF 9383if ac_fn_c_try_link "$LINENO" 9384then : 9385 lt_cv_cc_needs_belf=yes 9386else $as_nop 9387 lt_cv_cc_needs_belf=no 9388fi 9389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9390 conftest$ac_exeext conftest.$ac_ext 9391 ac_ext=c 9392ac_cpp='$CPP $CPPFLAGS' 9393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9395ac_compiler_gnu=$ac_cv_c_compiler_gnu 9396 9397fi 9398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9399printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 9400 if test yes != "$lt_cv_cc_needs_belf"; then 9401 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9402 CFLAGS=$SAVE_CFLAGS 9403 fi 9404 ;; 9405*-*solaris*) 9406 # Find out what ABI is being produced by ac_compile, and set linker 9407 # options accordingly. 9408 echo 'int i;' > conftest.$ac_ext 9409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9410 (eval $ac_compile) 2>&5 9411 ac_status=$? 9412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9413 test $ac_status = 0; }; then 9414 case `/usr/bin/file conftest.o` in 9415 *64-bit*) 9416 case $lt_cv_prog_gnu_ld in 9417 yes*) 9418 case $host in 9419 i?86-*-solaris*|x86_64-*-solaris*) 9420 LD="${LD-ld} -m elf_x86_64" 9421 ;; 9422 sparc*-*-solaris*) 9423 LD="${LD-ld} -m elf64_sparc" 9424 ;; 9425 esac 9426 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9427 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9428 LD=${LD-ld}_sol2 9429 fi 9430 ;; 9431 *) 9432 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9433 LD="${LD-ld} -64" 9434 fi 9435 ;; 9436 esac 9437 ;; 9438 esac 9439 fi 9440 rm -rf conftest* 9441 ;; 9442esac 9443 9444need_locks=$enable_libtool_lock 9445 9446if test -n "$ac_tool_prefix"; then 9447 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9448set dummy ${ac_tool_prefix}mt; ac_word=$2 9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9450printf %s "checking for $ac_word... " >&6; } 9451if test ${ac_cv_prog_MANIFEST_TOOL+y} 9452then : 9453 printf %s "(cached) " >&6 9454else $as_nop 9455 if test -n "$MANIFEST_TOOL"; then 9456 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9457else 9458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9459for as_dir in $PATH 9460do 9461 IFS=$as_save_IFS 9462 case $as_dir in #((( 9463 '') as_dir=./ ;; 9464 */) ;; 9465 *) as_dir=$as_dir/ ;; 9466 esac 9467 for ac_exec_ext in '' $ac_executable_extensions; do 9468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9469 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9471 break 2 9472 fi 9473done 9474 done 9475IFS=$as_save_IFS 9476 9477fi 9478fi 9479MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9480if test -n "$MANIFEST_TOOL"; then 9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9482printf "%s\n" "$MANIFEST_TOOL" >&6; } 9483else 9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9485printf "%s\n" "no" >&6; } 9486fi 9487 9488 9489fi 9490if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9491 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9492 # Extract the first word of "mt", so it can be a program name with args. 9493set dummy mt; ac_word=$2 9494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9495printf %s "checking for $ac_word... " >&6; } 9496if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 9497then : 9498 printf %s "(cached) " >&6 9499else $as_nop 9500 if test -n "$ac_ct_MANIFEST_TOOL"; then 9501 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9502else 9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9504for as_dir in $PATH 9505do 9506 IFS=$as_save_IFS 9507 case $as_dir in #((( 9508 '') as_dir=./ ;; 9509 */) ;; 9510 *) as_dir=$as_dir/ ;; 9511 esac 9512 for ac_exec_ext in '' $ac_executable_extensions; do 9513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9514 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9516 break 2 9517 fi 9518done 9519 done 9520IFS=$as_save_IFS 9521 9522fi 9523fi 9524ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9525if test -n "$ac_ct_MANIFEST_TOOL"; then 9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9527printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 9528else 9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9530printf "%s\n" "no" >&6; } 9531fi 9532 9533 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9534 MANIFEST_TOOL=":" 9535 else 9536 case $cross_compiling:$ac_tool_warned in 9537yes:) 9538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9539printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9540ac_tool_warned=yes ;; 9541esac 9542 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9543 fi 9544else 9545 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9546fi 9547 9548test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9550printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9551if test ${lt_cv_path_mainfest_tool+y} 9552then : 9553 printf %s "(cached) " >&6 9554else $as_nop 9555 lt_cv_path_mainfest_tool=no 9556 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9557 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9558 cat conftest.err >&5 9559 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9560 lt_cv_path_mainfest_tool=yes 9561 fi 9562 rm -f conftest* 9563fi 9564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9565printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 9566if test yes != "$lt_cv_path_mainfest_tool"; then 9567 MANIFEST_TOOL=: 9568fi 9569 9570 9571 9572 9573 9574 9575 case $host_os in 9576 rhapsody* | darwin*) 9577 if test -n "$ac_tool_prefix"; then 9578 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9579set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9581printf %s "checking for $ac_word... " >&6; } 9582if test ${ac_cv_prog_DSYMUTIL+y} 9583then : 9584 printf %s "(cached) " >&6 9585else $as_nop 9586 if test -n "$DSYMUTIL"; then 9587 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9588else 9589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9590for as_dir in $PATH 9591do 9592 IFS=$as_save_IFS 9593 case $as_dir in #((( 9594 '') as_dir=./ ;; 9595 */) ;; 9596 *) as_dir=$as_dir/ ;; 9597 esac 9598 for ac_exec_ext in '' $ac_executable_extensions; do 9599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9600 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9602 break 2 9603 fi 9604done 9605 done 9606IFS=$as_save_IFS 9607 9608fi 9609fi 9610DSYMUTIL=$ac_cv_prog_DSYMUTIL 9611if test -n "$DSYMUTIL"; then 9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9613printf "%s\n" "$DSYMUTIL" >&6; } 9614else 9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9616printf "%s\n" "no" >&6; } 9617fi 9618 9619 9620fi 9621if test -z "$ac_cv_prog_DSYMUTIL"; then 9622 ac_ct_DSYMUTIL=$DSYMUTIL 9623 # Extract the first word of "dsymutil", so it can be a program name with args. 9624set dummy dsymutil; ac_word=$2 9625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9626printf %s "checking for $ac_word... " >&6; } 9627if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 9628then : 9629 printf %s "(cached) " >&6 9630else $as_nop 9631 if test -n "$ac_ct_DSYMUTIL"; then 9632 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9633else 9634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9635for as_dir in $PATH 9636do 9637 IFS=$as_save_IFS 9638 case $as_dir in #((( 9639 '') as_dir=./ ;; 9640 */) ;; 9641 *) as_dir=$as_dir/ ;; 9642 esac 9643 for ac_exec_ext in '' $ac_executable_extensions; do 9644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9645 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9647 break 2 9648 fi 9649done 9650 done 9651IFS=$as_save_IFS 9652 9653fi 9654fi 9655ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9656if test -n "$ac_ct_DSYMUTIL"; then 9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9658printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 9659else 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9661printf "%s\n" "no" >&6; } 9662fi 9663 9664 if test "x$ac_ct_DSYMUTIL" = x; then 9665 DSYMUTIL=":" 9666 else 9667 case $cross_compiling:$ac_tool_warned in 9668yes:) 9669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9671ac_tool_warned=yes ;; 9672esac 9673 DSYMUTIL=$ac_ct_DSYMUTIL 9674 fi 9675else 9676 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9677fi 9678 9679 if test -n "$ac_tool_prefix"; then 9680 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9681set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9683printf %s "checking for $ac_word... " >&6; } 9684if test ${ac_cv_prog_NMEDIT+y} 9685then : 9686 printf %s "(cached) " >&6 9687else $as_nop 9688 if test -n "$NMEDIT"; then 9689 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9690else 9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9692for as_dir in $PATH 9693do 9694 IFS=$as_save_IFS 9695 case $as_dir in #((( 9696 '') as_dir=./ ;; 9697 */) ;; 9698 *) as_dir=$as_dir/ ;; 9699 esac 9700 for ac_exec_ext in '' $ac_executable_extensions; do 9701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9702 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9704 break 2 9705 fi 9706done 9707 done 9708IFS=$as_save_IFS 9709 9710fi 9711fi 9712NMEDIT=$ac_cv_prog_NMEDIT 9713if test -n "$NMEDIT"; then 9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9715printf "%s\n" "$NMEDIT" >&6; } 9716else 9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9718printf "%s\n" "no" >&6; } 9719fi 9720 9721 9722fi 9723if test -z "$ac_cv_prog_NMEDIT"; then 9724 ac_ct_NMEDIT=$NMEDIT 9725 # Extract the first word of "nmedit", so it can be a program name with args. 9726set dummy nmedit; ac_word=$2 9727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9728printf %s "checking for $ac_word... " >&6; } 9729if test ${ac_cv_prog_ac_ct_NMEDIT+y} 9730then : 9731 printf %s "(cached) " >&6 9732else $as_nop 9733 if test -n "$ac_ct_NMEDIT"; then 9734 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9735else 9736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9737for as_dir in $PATH 9738do 9739 IFS=$as_save_IFS 9740 case $as_dir in #((( 9741 '') as_dir=./ ;; 9742 */) ;; 9743 *) as_dir=$as_dir/ ;; 9744 esac 9745 for ac_exec_ext in '' $ac_executable_extensions; do 9746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9747 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9749 break 2 9750 fi 9751done 9752 done 9753IFS=$as_save_IFS 9754 9755fi 9756fi 9757ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9758if test -n "$ac_ct_NMEDIT"; then 9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9760printf "%s\n" "$ac_ct_NMEDIT" >&6; } 9761else 9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9763printf "%s\n" "no" >&6; } 9764fi 9765 9766 if test "x$ac_ct_NMEDIT" = x; then 9767 NMEDIT=":" 9768 else 9769 case $cross_compiling:$ac_tool_warned in 9770yes:) 9771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9773ac_tool_warned=yes ;; 9774esac 9775 NMEDIT=$ac_ct_NMEDIT 9776 fi 9777else 9778 NMEDIT="$ac_cv_prog_NMEDIT" 9779fi 9780 9781 if test -n "$ac_tool_prefix"; then 9782 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9783set dummy ${ac_tool_prefix}lipo; ac_word=$2 9784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9785printf %s "checking for $ac_word... " >&6; } 9786if test ${ac_cv_prog_LIPO+y} 9787then : 9788 printf %s "(cached) " >&6 9789else $as_nop 9790 if test -n "$LIPO"; then 9791 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9792else 9793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9794for as_dir in $PATH 9795do 9796 IFS=$as_save_IFS 9797 case $as_dir in #((( 9798 '') as_dir=./ ;; 9799 */) ;; 9800 *) as_dir=$as_dir/ ;; 9801 esac 9802 for ac_exec_ext in '' $ac_executable_extensions; do 9803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9804 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9806 break 2 9807 fi 9808done 9809 done 9810IFS=$as_save_IFS 9811 9812fi 9813fi 9814LIPO=$ac_cv_prog_LIPO 9815if test -n "$LIPO"; then 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9817printf "%s\n" "$LIPO" >&6; } 9818else 9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9820printf "%s\n" "no" >&6; } 9821fi 9822 9823 9824fi 9825if test -z "$ac_cv_prog_LIPO"; then 9826 ac_ct_LIPO=$LIPO 9827 # Extract the first word of "lipo", so it can be a program name with args. 9828set dummy lipo; ac_word=$2 9829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9830printf %s "checking for $ac_word... " >&6; } 9831if test ${ac_cv_prog_ac_ct_LIPO+y} 9832then : 9833 printf %s "(cached) " >&6 9834else $as_nop 9835 if test -n "$ac_ct_LIPO"; then 9836 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9837else 9838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9839for as_dir in $PATH 9840do 9841 IFS=$as_save_IFS 9842 case $as_dir in #((( 9843 '') as_dir=./ ;; 9844 */) ;; 9845 *) as_dir=$as_dir/ ;; 9846 esac 9847 for ac_exec_ext in '' $ac_executable_extensions; do 9848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9849 ac_cv_prog_ac_ct_LIPO="lipo" 9850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9851 break 2 9852 fi 9853done 9854 done 9855IFS=$as_save_IFS 9856 9857fi 9858fi 9859ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9860if test -n "$ac_ct_LIPO"; then 9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9862printf "%s\n" "$ac_ct_LIPO" >&6; } 9863else 9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9865printf "%s\n" "no" >&6; } 9866fi 9867 9868 if test "x$ac_ct_LIPO" = x; then 9869 LIPO=":" 9870 else 9871 case $cross_compiling:$ac_tool_warned in 9872yes:) 9873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9874printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9875ac_tool_warned=yes ;; 9876esac 9877 LIPO=$ac_ct_LIPO 9878 fi 9879else 9880 LIPO="$ac_cv_prog_LIPO" 9881fi 9882 9883 if test -n "$ac_tool_prefix"; then 9884 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9885set dummy ${ac_tool_prefix}otool; ac_word=$2 9886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9887printf %s "checking for $ac_word... " >&6; } 9888if test ${ac_cv_prog_OTOOL+y} 9889then : 9890 printf %s "(cached) " >&6 9891else $as_nop 9892 if test -n "$OTOOL"; then 9893 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9894else 9895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9896for as_dir in $PATH 9897do 9898 IFS=$as_save_IFS 9899 case $as_dir in #((( 9900 '') as_dir=./ ;; 9901 */) ;; 9902 *) as_dir=$as_dir/ ;; 9903 esac 9904 for ac_exec_ext in '' $ac_executable_extensions; do 9905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9906 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9908 break 2 9909 fi 9910done 9911 done 9912IFS=$as_save_IFS 9913 9914fi 9915fi 9916OTOOL=$ac_cv_prog_OTOOL 9917if test -n "$OTOOL"; then 9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9919printf "%s\n" "$OTOOL" >&6; } 9920else 9921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9922printf "%s\n" "no" >&6; } 9923fi 9924 9925 9926fi 9927if test -z "$ac_cv_prog_OTOOL"; then 9928 ac_ct_OTOOL=$OTOOL 9929 # Extract the first word of "otool", so it can be a program name with args. 9930set dummy otool; ac_word=$2 9931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9932printf %s "checking for $ac_word... " >&6; } 9933if test ${ac_cv_prog_ac_ct_OTOOL+y} 9934then : 9935 printf %s "(cached) " >&6 9936else $as_nop 9937 if test -n "$ac_ct_OTOOL"; then 9938 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9939else 9940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9941for as_dir in $PATH 9942do 9943 IFS=$as_save_IFS 9944 case $as_dir in #((( 9945 '') as_dir=./ ;; 9946 */) ;; 9947 *) as_dir=$as_dir/ ;; 9948 esac 9949 for ac_exec_ext in '' $ac_executable_extensions; do 9950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9951 ac_cv_prog_ac_ct_OTOOL="otool" 9952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9953 break 2 9954 fi 9955done 9956 done 9957IFS=$as_save_IFS 9958 9959fi 9960fi 9961ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9962if test -n "$ac_ct_OTOOL"; then 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9964printf "%s\n" "$ac_ct_OTOOL" >&6; } 9965else 9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9967printf "%s\n" "no" >&6; } 9968fi 9969 9970 if test "x$ac_ct_OTOOL" = x; then 9971 OTOOL=":" 9972 else 9973 case $cross_compiling:$ac_tool_warned in 9974yes:) 9975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9976printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9977ac_tool_warned=yes ;; 9978esac 9979 OTOOL=$ac_ct_OTOOL 9980 fi 9981else 9982 OTOOL="$ac_cv_prog_OTOOL" 9983fi 9984 9985 if test -n "$ac_tool_prefix"; then 9986 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9987set dummy ${ac_tool_prefix}otool64; ac_word=$2 9988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9989printf %s "checking for $ac_word... " >&6; } 9990if test ${ac_cv_prog_OTOOL64+y} 9991then : 9992 printf %s "(cached) " >&6 9993else $as_nop 9994 if test -n "$OTOOL64"; then 9995 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9996else 9997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9998for as_dir in $PATH 9999do 10000 IFS=$as_save_IFS 10001 case $as_dir in #((( 10002 '') as_dir=./ ;; 10003 */) ;; 10004 *) as_dir=$as_dir/ ;; 10005 esac 10006 for ac_exec_ext in '' $ac_executable_extensions; do 10007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10008 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10010 break 2 10011 fi 10012done 10013 done 10014IFS=$as_save_IFS 10015 10016fi 10017fi 10018OTOOL64=$ac_cv_prog_OTOOL64 10019if test -n "$OTOOL64"; then 10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10021printf "%s\n" "$OTOOL64" >&6; } 10022else 10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10024printf "%s\n" "no" >&6; } 10025fi 10026 10027 10028fi 10029if test -z "$ac_cv_prog_OTOOL64"; then 10030 ac_ct_OTOOL64=$OTOOL64 10031 # Extract the first word of "otool64", so it can be a program name with args. 10032set dummy otool64; ac_word=$2 10033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10034printf %s "checking for $ac_word... " >&6; } 10035if test ${ac_cv_prog_ac_ct_OTOOL64+y} 10036then : 10037 printf %s "(cached) " >&6 10038else $as_nop 10039 if test -n "$ac_ct_OTOOL64"; then 10040 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10041else 10042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10043for as_dir in $PATH 10044do 10045 IFS=$as_save_IFS 10046 case $as_dir in #((( 10047 '') as_dir=./ ;; 10048 */) ;; 10049 *) as_dir=$as_dir/ ;; 10050 esac 10051 for ac_exec_ext in '' $ac_executable_extensions; do 10052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10053 ac_cv_prog_ac_ct_OTOOL64="otool64" 10054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10055 break 2 10056 fi 10057done 10058 done 10059IFS=$as_save_IFS 10060 10061fi 10062fi 10063ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10064if test -n "$ac_ct_OTOOL64"; then 10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10066printf "%s\n" "$ac_ct_OTOOL64" >&6; } 10067else 10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10069printf "%s\n" "no" >&6; } 10070fi 10071 10072 if test "x$ac_ct_OTOOL64" = x; then 10073 OTOOL64=":" 10074 else 10075 case $cross_compiling:$ac_tool_warned in 10076yes:) 10077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10078printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10079ac_tool_warned=yes ;; 10080esac 10081 OTOOL64=$ac_ct_OTOOL64 10082 fi 10083else 10084 OTOOL64="$ac_cv_prog_OTOOL64" 10085fi 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10114printf %s "checking for -single_module linker flag... " >&6; } 10115if test ${lt_cv_apple_cc_single_mod+y} 10116then : 10117 printf %s "(cached) " >&6 10118else $as_nop 10119 lt_cv_apple_cc_single_mod=no 10120 if test -z "$LT_MULTI_MODULE"; then 10121 # By default we will add the -single_module flag. You can override 10122 # by either setting the environment variable LT_MULTI_MODULE 10123 # non-empty at configure time, or by adding -multi_module to the 10124 # link flags. 10125 rm -rf libconftest.dylib* 10126 echo "int foo(void){return 1;}" > conftest.c 10127 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10128-dynamiclib -Wl,-single_module conftest.c" >&5 10129 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10130 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10131 _lt_result=$? 10132 # If there is a non-empty error log, and "single_module" 10133 # appears in it, assume the flag caused a linker warning 10134 if test -s conftest.err && $GREP single_module conftest.err; then 10135 cat conftest.err >&5 10136 # Otherwise, if the output was created with a 0 exit code from 10137 # the compiler, it worked. 10138 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10139 lt_cv_apple_cc_single_mod=yes 10140 else 10141 cat conftest.err >&5 10142 fi 10143 rm -rf libconftest.dylib* 10144 rm -f conftest.* 10145 fi 10146fi 10147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10148printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 10149 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10151printf %s "checking for -exported_symbols_list linker flag... " >&6; } 10152if test ${lt_cv_ld_exported_symbols_list+y} 10153then : 10154 printf %s "(cached) " >&6 10155else $as_nop 10156 lt_cv_ld_exported_symbols_list=no 10157 save_LDFLAGS=$LDFLAGS 10158 echo "_main" > conftest.sym 10159 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161/* end confdefs.h. */ 10162 10163int 10164main (void) 10165{ 10166 10167 ; 10168 return 0; 10169} 10170_ACEOF 10171if ac_fn_c_try_link "$LINENO" 10172then : 10173 lt_cv_ld_exported_symbols_list=yes 10174else $as_nop 10175 lt_cv_ld_exported_symbols_list=no 10176fi 10177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10178 conftest$ac_exeext conftest.$ac_ext 10179 LDFLAGS=$save_LDFLAGS 10180 10181fi 10182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10183printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 10184 10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10186printf %s "checking for -force_load linker flag... " >&6; } 10187if test ${lt_cv_ld_force_load+y} 10188then : 10189 printf %s "(cached) " >&6 10190else $as_nop 10191 lt_cv_ld_force_load=no 10192 cat > conftest.c << _LT_EOF 10193int forced_loaded() { return 2;} 10194_LT_EOF 10195 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10196 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10197 echo "$AR cr libconftest.a conftest.o" >&5 10198 $AR cr libconftest.a conftest.o 2>&5 10199 echo "$RANLIB libconftest.a" >&5 10200 $RANLIB libconftest.a 2>&5 10201 cat > conftest.c << _LT_EOF 10202int main() { return 0;} 10203_LT_EOF 10204 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10205 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10206 _lt_result=$? 10207 if test -s conftest.err && $GREP force_load conftest.err; then 10208 cat conftest.err >&5 10209 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10210 lt_cv_ld_force_load=yes 10211 else 10212 cat conftest.err >&5 10213 fi 10214 rm -f conftest.err libconftest.a conftest conftest.c 10215 rm -rf conftest.dSYM 10216 10217fi 10218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10219printf "%s\n" "$lt_cv_ld_force_load" >&6; } 10220 case $host_os in 10221 rhapsody* | darwin1.[012]) 10222 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10223 darwin1.*) 10224 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10225 darwin*) # darwin 5.x on 10226 # if running on 10.5 or later, the deployment target defaults 10227 # to the OS version, if on x86, and 10.4, the deployment 10228 # target defaults to 10.4. Don't you love it? 10229 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10230 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 10231 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10232 10.[012][,.]*) 10233 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10234 10.*|11.*) 10235 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10236 esac 10237 ;; 10238 esac 10239 if test yes = "$lt_cv_apple_cc_single_mod"; then 10240 _lt_dar_single_mod='$single_module' 10241 fi 10242 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10243 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10244 else 10245 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10246 fi 10247 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10248 _lt_dsymutil='~$DSYMUTIL $lib || :' 10249 else 10250 _lt_dsymutil= 10251 fi 10252 ;; 10253 esac 10254 10255# func_munge_path_list VARIABLE PATH 10256# ----------------------------------- 10257# VARIABLE is name of variable containing _space_ separated list of 10258# directories to be munged by the contents of PATH, which is string 10259# having a format: 10260# "DIR[:DIR]:" 10261# string "DIR[ DIR]" will be prepended to VARIABLE 10262# ":DIR[:DIR]" 10263# string "DIR[ DIR]" will be appended to VARIABLE 10264# "DIRP[:DIRP]::[DIRA:]DIRA" 10265# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10266# "DIRA[ DIRA]" will be appended to VARIABLE 10267# "DIR[:DIR]" 10268# VARIABLE will be replaced by "DIR[ DIR]" 10269func_munge_path_list () 10270{ 10271 case x$2 in 10272 x) 10273 ;; 10274 *:) 10275 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10276 ;; 10277 x:*) 10278 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10279 ;; 10280 *::*) 10281 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10282 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10283 ;; 10284 *) 10285 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10286 ;; 10287 esac 10288} 10289 10290ac_header= ac_cache= 10291for ac_item in $ac_header_c_list 10292do 10293 if test $ac_cache; then 10294 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 10295 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 10296 printf "%s\n" "#define $ac_item 1" >> confdefs.h 10297 fi 10298 ac_header= ac_cache= 10299 elif test $ac_header; then 10300 ac_cache=$ac_item 10301 else 10302 ac_header=$ac_item 10303 fi 10304done 10305 10306 10307 10308 10309 10310 10311 10312 10313if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 10314then : 10315 10316printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 10317 10318fi 10319ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10320" 10321if test "x$ac_cv_header_dlfcn_h" = xyes 10322then : 10323 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 10324 10325fi 10326 10327 10328 10329 10330 10331# Set options 10332enable_dlopen=yes 10333# Check whether --enable-static was given. 10334if test ${enable_static+y} 10335then : 10336 enableval=$enable_static; p=${PACKAGE-default} 10337 case $enableval in 10338 yes) enable_static=yes ;; 10339 no) enable_static=no ;; 10340 *) 10341 enable_static=no 10342 # Look at the argument we got. We use all the common list separators. 10343 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10344 for pkg in $enableval; do 10345 IFS=$lt_save_ifs 10346 if test "X$pkg" = "X$p"; then 10347 enable_static=yes 10348 fi 10349 done 10350 IFS=$lt_save_ifs 10351 ;; 10352 esac 10353else $as_nop 10354 enable_static=no 10355fi 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 enable_win32_dll=no 10368 10369 10370 # Check whether --enable-shared was given. 10371if test ${enable_shared+y} 10372then : 10373 enableval=$enable_shared; p=${PACKAGE-default} 10374 case $enableval in 10375 yes) enable_shared=yes ;; 10376 no) enable_shared=no ;; 10377 *) 10378 enable_shared=no 10379 # Look at the argument we got. We use all the common list separators. 10380 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10381 for pkg in $enableval; do 10382 IFS=$lt_save_ifs 10383 if test "X$pkg" = "X$p"; then 10384 enable_shared=yes 10385 fi 10386 done 10387 IFS=$lt_save_ifs 10388 ;; 10389 esac 10390else $as_nop 10391 enable_shared=yes 10392fi 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404# Check whether --with-pic was given. 10405if test ${with_pic+y} 10406then : 10407 withval=$with_pic; lt_p=${PACKAGE-default} 10408 case $withval in 10409 yes|no) pic_mode=$withval ;; 10410 *) 10411 pic_mode=default 10412 # Look at the argument we got. We use all the common list separators. 10413 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10414 for lt_pkg in $withval; do 10415 IFS=$lt_save_ifs 10416 if test "X$lt_pkg" = "X$lt_p"; then 10417 pic_mode=yes 10418 fi 10419 done 10420 IFS=$lt_save_ifs 10421 ;; 10422 esac 10423else $as_nop 10424 pic_mode=default 10425fi 10426 10427 10428 10429 10430 10431 10432 10433 10434 # Check whether --enable-fast-install was given. 10435if test ${enable_fast_install+y} 10436then : 10437 enableval=$enable_fast_install; p=${PACKAGE-default} 10438 case $enableval in 10439 yes) enable_fast_install=yes ;; 10440 no) enable_fast_install=no ;; 10441 *) 10442 enable_fast_install=no 10443 # Look at the argument we got. We use all the common list separators. 10444 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10445 for pkg in $enableval; do 10446 IFS=$lt_save_ifs 10447 if test "X$pkg" = "X$p"; then 10448 enable_fast_install=yes 10449 fi 10450 done 10451 IFS=$lt_save_ifs 10452 ;; 10453 esac 10454else $as_nop 10455 enable_fast_install=yes 10456fi 10457 10458 10459 10460 10461 10462 10463 10464 10465 shared_archive_member_spec= 10466case $host,$enable_shared in 10467power*-*-aix[5-9]*,yes) 10468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10469printf %s "checking which variant of shared library versioning to provide... " >&6; } 10470 10471# Check whether --with-aix-soname was given. 10472if test ${with_aix_soname+y} 10473then : 10474 withval=$with_aix_soname; case $withval in 10475 aix|svr4|both) 10476 ;; 10477 *) 10478 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10479 ;; 10480 esac 10481 lt_cv_with_aix_soname=$with_aix_soname 10482else $as_nop 10483 if test ${lt_cv_with_aix_soname+y} 10484then : 10485 printf %s "(cached) " >&6 10486else $as_nop 10487 lt_cv_with_aix_soname=aix 10488fi 10489 10490 with_aix_soname=$lt_cv_with_aix_soname 10491fi 10492 10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10494printf "%s\n" "$with_aix_soname" >&6; } 10495 if test aix != "$with_aix_soname"; then 10496 # For the AIX way of multilib, we name the shared archive member 10497 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10498 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10499 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10500 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10501 if test 64 = "${OBJECT_MODE-32}"; then 10502 shared_archive_member_spec=shr_64 10503 else 10504 shared_archive_member_spec=shr 10505 fi 10506 fi 10507 ;; 10508*) 10509 with_aix_soname=aix 10510 ;; 10511esac 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522# This can be used to rebuild libtool when needed 10523LIBTOOL_DEPS=$ltmain 10524 10525# Always use our own libtool. 10526LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557test -z "$LN_S" && LN_S="ln -s" 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572if test -n "${ZSH_VERSION+set}"; then 10573 setopt NO_GLOB_SUBST 10574fi 10575 10576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10577printf %s "checking for objdir... " >&6; } 10578if test ${lt_cv_objdir+y} 10579then : 10580 printf %s "(cached) " >&6 10581else $as_nop 10582 rm -f .libs 2>/dev/null 10583mkdir .libs 2>/dev/null 10584if test -d .libs; then 10585 lt_cv_objdir=.libs 10586else 10587 # MS-DOS does not allow filenames that begin with a dot. 10588 lt_cv_objdir=_libs 10589fi 10590rmdir .libs 2>/dev/null 10591fi 10592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10593printf "%s\n" "$lt_cv_objdir" >&6; } 10594objdir=$lt_cv_objdir 10595 10596 10597 10598 10599 10600printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 10601 10602 10603 10604 10605case $host_os in 10606aix3*) 10607 # AIX sometimes has problems with the GCC collect2 program. For some 10608 # reason, if we set the COLLECT_NAMES environment variable, the problems 10609 # vanish in a puff of smoke. 10610 if test set != "${COLLECT_NAMES+set}"; then 10611 COLLECT_NAMES= 10612 export COLLECT_NAMES 10613 fi 10614 ;; 10615esac 10616 10617# Global variables: 10618ofile=libtool 10619can_build_shared=yes 10620 10621# All known linkers require a '.a' archive for static linking (except MSVC, 10622# which needs '.lib'). 10623libext=a 10624 10625with_gnu_ld=$lt_cv_prog_gnu_ld 10626 10627old_CC=$CC 10628old_CFLAGS=$CFLAGS 10629 10630# Set sane defaults for various variables 10631test -z "$CC" && CC=cc 10632test -z "$LTCC" && LTCC=$CC 10633test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10634test -z "$LD" && LD=ld 10635test -z "$ac_objext" && ac_objext=o 10636 10637func_cc_basename $compiler 10638cc_basename=$func_cc_basename_result 10639 10640 10641# Only perform the check for file, if the check method requires it 10642test -z "$MAGIC_CMD" && MAGIC_CMD=file 10643case $deplibs_check_method in 10644file_magic*) 10645 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10647printf %s "checking for ${ac_tool_prefix}file... " >&6; } 10648if test ${lt_cv_path_MAGIC_CMD+y} 10649then : 10650 printf %s "(cached) " >&6 10651else $as_nop 10652 case $MAGIC_CMD in 10653[\\/*] | ?:[\\/]*) 10654 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10655 ;; 10656*) 10657 lt_save_MAGIC_CMD=$MAGIC_CMD 10658 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10659 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10660 for ac_dir in $ac_dummy; do 10661 IFS=$lt_save_ifs 10662 test -z "$ac_dir" && ac_dir=. 10663 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10664 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10665 if test -n "$file_magic_test_file"; then 10666 case $deplibs_check_method in 10667 "file_magic "*) 10668 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10669 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10670 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10671 $EGREP "$file_magic_regex" > /dev/null; then 10672 : 10673 else 10674 cat <<_LT_EOF 1>&2 10675 10676*** Warning: the command libtool uses to detect shared libraries, 10677*** $file_magic_cmd, produces output that libtool cannot recognize. 10678*** The result is that libtool may fail to recognize shared libraries 10679*** as such. This will affect the creation of libtool libraries that 10680*** depend on shared libraries, but programs linked with such libtool 10681*** libraries will work regardless of this problem. Nevertheless, you 10682*** may want to report the problem to your system manager and/or to 10683*** bug-libtool@gnu.org 10684 10685_LT_EOF 10686 fi ;; 10687 esac 10688 fi 10689 break 10690 fi 10691 done 10692 IFS=$lt_save_ifs 10693 MAGIC_CMD=$lt_save_MAGIC_CMD 10694 ;; 10695esac 10696fi 10697 10698MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10699if test -n "$MAGIC_CMD"; then 10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10701printf "%s\n" "$MAGIC_CMD" >&6; } 10702else 10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10704printf "%s\n" "no" >&6; } 10705fi 10706 10707 10708 10709 10710 10711if test -z "$lt_cv_path_MAGIC_CMD"; then 10712 if test -n "$ac_tool_prefix"; then 10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10714printf %s "checking for file... " >&6; } 10715if test ${lt_cv_path_MAGIC_CMD+y} 10716then : 10717 printf %s "(cached) " >&6 10718else $as_nop 10719 case $MAGIC_CMD in 10720[\\/*] | ?:[\\/]*) 10721 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10722 ;; 10723*) 10724 lt_save_MAGIC_CMD=$MAGIC_CMD 10725 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10726 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10727 for ac_dir in $ac_dummy; do 10728 IFS=$lt_save_ifs 10729 test -z "$ac_dir" && ac_dir=. 10730 if test -f "$ac_dir/file"; then 10731 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10732 if test -n "$file_magic_test_file"; then 10733 case $deplibs_check_method in 10734 "file_magic "*) 10735 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10736 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10738 $EGREP "$file_magic_regex" > /dev/null; then 10739 : 10740 else 10741 cat <<_LT_EOF 1>&2 10742 10743*** Warning: the command libtool uses to detect shared libraries, 10744*** $file_magic_cmd, produces output that libtool cannot recognize. 10745*** The result is that libtool may fail to recognize shared libraries 10746*** as such. This will affect the creation of libtool libraries that 10747*** depend on shared libraries, but programs linked with such libtool 10748*** libraries will work regardless of this problem. Nevertheless, you 10749*** may want to report the problem to your system manager and/or to 10750*** bug-libtool@gnu.org 10751 10752_LT_EOF 10753 fi ;; 10754 esac 10755 fi 10756 break 10757 fi 10758 done 10759 IFS=$lt_save_ifs 10760 MAGIC_CMD=$lt_save_MAGIC_CMD 10761 ;; 10762esac 10763fi 10764 10765MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10766if test -n "$MAGIC_CMD"; then 10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10768printf "%s\n" "$MAGIC_CMD" >&6; } 10769else 10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10771printf "%s\n" "no" >&6; } 10772fi 10773 10774 10775 else 10776 MAGIC_CMD=: 10777 fi 10778fi 10779 10780 fi 10781 ;; 10782esac 10783 10784# Use C for the default configuration in the libtool script 10785 10786lt_save_CC=$CC 10787ac_ext=c 10788ac_cpp='$CPP $CPPFLAGS' 10789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10791ac_compiler_gnu=$ac_cv_c_compiler_gnu 10792 10793 10794# Source file extension for C test sources. 10795ac_ext=c 10796 10797# Object file extension for compiled C test sources. 10798objext=o 10799objext=$objext 10800 10801# Code to be used in simple compile tests 10802lt_simple_compile_test_code="int some_variable = 0;" 10803 10804# Code to be used in simple link tests 10805lt_simple_link_test_code='int main(){return(0);}' 10806 10807 10808 10809 10810 10811 10812 10813# If no C compiler was specified, use CC. 10814LTCC=${LTCC-"$CC"} 10815 10816# If no C compiler flags were specified, use CFLAGS. 10817LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10818 10819# Allow CC to be a program name with arguments. 10820compiler=$CC 10821 10822# Save the default compiler, since it gets overwritten when the other 10823# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10824compiler_DEFAULT=$CC 10825 10826# save warnings/boilerplate of simple test code 10827ac_outfile=conftest.$ac_objext 10828echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10829eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10830_lt_compiler_boilerplate=`cat conftest.err` 10831$RM conftest* 10832 10833ac_outfile=conftest.$ac_objext 10834echo "$lt_simple_link_test_code" >conftest.$ac_ext 10835eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10836_lt_linker_boilerplate=`cat conftest.err` 10837$RM -r conftest* 10838 10839 10840## CAVEAT EMPTOR: 10841## There is no encapsulation within the following macros, do not change 10842## the running order or otherwise move them around unless you know exactly 10843## what you are doing... 10844if test -n "$compiler"; then 10845 10846lt_prog_compiler_no_builtin_flag= 10847 10848if test yes = "$GCC"; then 10849 case $cc_basename in 10850 nvcc*) 10851 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10852 *) 10853 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10854 esac 10855 10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10857printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10858if test ${lt_cv_prog_compiler_rtti_exceptions+y} 10859then : 10860 printf %s "(cached) " >&6 10861else $as_nop 10862 lt_cv_prog_compiler_rtti_exceptions=no 10863 ac_outfile=conftest.$ac_objext 10864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10865 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10866 # Insert the option either (1) after the last *FLAGS variable, or 10867 # (2) before a word containing "conftest.", or (3) at the end. 10868 # Note that $ac_compile itself does not contain backslashes and begins 10869 # with a dollar sign (not a hyphen), so the echo should work correctly. 10870 # The option is referenced via a variable to avoid confusing sed. 10871 lt_compile=`echo "$ac_compile" | $SED \ 10872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10874 -e 's:$: $lt_compiler_flag:'` 10875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10876 (eval "$lt_compile" 2>conftest.err) 10877 ac_status=$? 10878 cat conftest.err >&5 10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10880 if (exit $ac_status) && test -s "$ac_outfile"; then 10881 # The compiler can only warn and ignore the option if not recognized 10882 # So say no if there are warnings other than the usual output. 10883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10886 lt_cv_prog_compiler_rtti_exceptions=yes 10887 fi 10888 fi 10889 $RM conftest* 10890 10891fi 10892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10893printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10894 10895if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10896 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10897else 10898 : 10899fi 10900 10901fi 10902 10903 10904 10905 10906 10907 10908 lt_prog_compiler_wl= 10909lt_prog_compiler_pic= 10910lt_prog_compiler_static= 10911 10912 10913 if test yes = "$GCC"; then 10914 lt_prog_compiler_wl='-Wl,' 10915 lt_prog_compiler_static='-static' 10916 10917 case $host_os in 10918 aix*) 10919 # All AIX code is PIC. 10920 if test ia64 = "$host_cpu"; then 10921 # AIX 5 now supports IA64 processor 10922 lt_prog_compiler_static='-Bstatic' 10923 fi 10924 lt_prog_compiler_pic='-fPIC' 10925 ;; 10926 10927 amigaos*) 10928 case $host_cpu in 10929 powerpc) 10930 # see comment about AmigaOS4 .so support 10931 lt_prog_compiler_pic='-fPIC' 10932 ;; 10933 m68k) 10934 # FIXME: we need at least 68020 code to build shared libraries, but 10935 # adding the '-m68020' flag to GCC prevents building anything better, 10936 # like '-m68040'. 10937 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10938 ;; 10939 esac 10940 ;; 10941 10942 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10943 # PIC is the default for these OSes. 10944 ;; 10945 10946 mingw* | cygwin* | pw32* | os2* | cegcc*) 10947 # This hack is so that the source file can tell whether it is being 10948 # built for inclusion in a dll (and should export symbols for example). 10949 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10950 # (--disable-auto-import) libraries 10951 lt_prog_compiler_pic='-DDLL_EXPORT' 10952 case $host_os in 10953 os2*) 10954 lt_prog_compiler_static='$wl-static' 10955 ;; 10956 esac 10957 ;; 10958 10959 darwin* | rhapsody*) 10960 # PIC is the default on this platform 10961 # Common symbols not allowed in MH_DYLIB files 10962 lt_prog_compiler_pic='-fno-common' 10963 ;; 10964 10965 haiku*) 10966 # PIC is the default for Haiku. 10967 # The "-static" flag exists, but is broken. 10968 lt_prog_compiler_static= 10969 ;; 10970 10971 hpux*) 10972 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10973 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10974 # sets the default TLS model and affects inlining. 10975 case $host_cpu in 10976 hppa*64*) 10977 # +Z the default 10978 ;; 10979 *) 10980 lt_prog_compiler_pic='-fPIC' 10981 ;; 10982 esac 10983 ;; 10984 10985 interix[3-9]*) 10986 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10987 # Instead, we relocate shared libraries at runtime. 10988 ;; 10989 10990 msdosdjgpp*) 10991 # Just because we use GCC doesn't mean we suddenly get shared libraries 10992 # on systems that don't support them. 10993 lt_prog_compiler_can_build_shared=no 10994 enable_shared=no 10995 ;; 10996 10997 *nto* | *qnx*) 10998 # QNX uses GNU C++, but need to define -shared option too, otherwise 10999 # it will coredump. 11000 lt_prog_compiler_pic='-fPIC -shared' 11001 ;; 11002 11003 sysv4*MP*) 11004 if test -d /usr/nec; then 11005 lt_prog_compiler_pic=-Kconform_pic 11006 fi 11007 ;; 11008 11009 *) 11010 lt_prog_compiler_pic='-fPIC' 11011 ;; 11012 esac 11013 11014 case $cc_basename in 11015 nvcc*) # Cuda Compiler Driver 2.2 11016 lt_prog_compiler_wl='-Xlinker ' 11017 if test -n "$lt_prog_compiler_pic"; then 11018 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11019 fi 11020 ;; 11021 esac 11022 else 11023 # PORTME Check for flag to pass linker flags through the system compiler. 11024 case $host_os in 11025 aix*) 11026 lt_prog_compiler_wl='-Wl,' 11027 if test ia64 = "$host_cpu"; then 11028 # AIX 5 now supports IA64 processor 11029 lt_prog_compiler_static='-Bstatic' 11030 else 11031 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11032 fi 11033 ;; 11034 11035 darwin* | rhapsody*) 11036 # PIC is the default on this platform 11037 # Common symbols not allowed in MH_DYLIB files 11038 lt_prog_compiler_pic='-fno-common' 11039 case $cc_basename in 11040 nagfor*) 11041 # NAG Fortran compiler 11042 lt_prog_compiler_wl='-Wl,-Wl,,' 11043 lt_prog_compiler_pic='-PIC' 11044 lt_prog_compiler_static='-Bstatic' 11045 ;; 11046 esac 11047 ;; 11048 11049 mingw* | cygwin* | pw32* | os2* | cegcc*) 11050 # This hack is so that the source file can tell whether it is being 11051 # built for inclusion in a dll (and should export symbols for example). 11052 lt_prog_compiler_pic='-DDLL_EXPORT' 11053 case $host_os in 11054 os2*) 11055 lt_prog_compiler_static='$wl-static' 11056 ;; 11057 esac 11058 ;; 11059 11060 hpux9* | hpux10* | hpux11*) 11061 lt_prog_compiler_wl='-Wl,' 11062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11063 # not for PA HP-UX. 11064 case $host_cpu in 11065 hppa*64*|ia64*) 11066 # +Z the default 11067 ;; 11068 *) 11069 lt_prog_compiler_pic='+Z' 11070 ;; 11071 esac 11072 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11073 lt_prog_compiler_static='$wl-a ${wl}archive' 11074 ;; 11075 11076 irix5* | irix6* | nonstopux*) 11077 lt_prog_compiler_wl='-Wl,' 11078 # PIC (with -KPIC) is the default. 11079 lt_prog_compiler_static='-non_shared' 11080 ;; 11081 11082 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11083 case $cc_basename in 11084 # old Intel for x86_64, which still supported -KPIC. 11085 ecc*) 11086 lt_prog_compiler_wl='-Wl,' 11087 lt_prog_compiler_pic='-KPIC' 11088 lt_prog_compiler_static='-static' 11089 ;; 11090 # flang / f18. f95 an alias for gfortran or flang on Debian 11091 flang* | f18* | f95*) 11092 lt_prog_compiler_wl='-Wl,' 11093 lt_prog_compiler_pic='-fPIC' 11094 lt_prog_compiler_static='-static' 11095 ;; 11096 # icc used to be incompatible with GCC. 11097 # ICC 10 doesn't accept -KPIC any more. 11098 icc* | ifort*) 11099 lt_prog_compiler_wl='-Wl,' 11100 lt_prog_compiler_pic='-fPIC' 11101 lt_prog_compiler_static='-static' 11102 ;; 11103 # Lahey Fortran 8.1. 11104 lf95*) 11105 lt_prog_compiler_wl='-Wl,' 11106 lt_prog_compiler_pic='--shared' 11107 lt_prog_compiler_static='--static' 11108 ;; 11109 nagfor*) 11110 # NAG Fortran compiler 11111 lt_prog_compiler_wl='-Wl,-Wl,,' 11112 lt_prog_compiler_pic='-PIC' 11113 lt_prog_compiler_static='-Bstatic' 11114 ;; 11115 tcc*) 11116 # Fabrice Bellard et al's Tiny C Compiler 11117 lt_prog_compiler_wl='-Wl,' 11118 lt_prog_compiler_pic='-fPIC' 11119 lt_prog_compiler_static='-static' 11120 ;; 11121 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11122 # Portland Group compilers (*not* the Pentium gcc compiler, 11123 # which looks to be a dead project) 11124 lt_prog_compiler_wl='-Wl,' 11125 lt_prog_compiler_pic='-fpic' 11126 lt_prog_compiler_static='-Bstatic' 11127 ;; 11128 ccc*) 11129 lt_prog_compiler_wl='-Wl,' 11130 # All Alpha code is PIC. 11131 lt_prog_compiler_static='-non_shared' 11132 ;; 11133 xl* | bgxl* | bgf* | mpixl*) 11134 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11135 lt_prog_compiler_wl='-Wl,' 11136 lt_prog_compiler_pic='-qpic' 11137 lt_prog_compiler_static='-qstaticlink' 11138 ;; 11139 *) 11140 case `$CC -V 2>&1 | sed 5q` in 11141 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11142 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11143 lt_prog_compiler_pic='-KPIC' 11144 lt_prog_compiler_static='-Bstatic' 11145 lt_prog_compiler_wl='' 11146 ;; 11147 *Sun\ F* | *Sun*Fortran*) 11148 lt_prog_compiler_pic='-KPIC' 11149 lt_prog_compiler_static='-Bstatic' 11150 lt_prog_compiler_wl='-Qoption ld ' 11151 ;; 11152 *Sun\ C*) 11153 # Sun C 5.9 11154 lt_prog_compiler_pic='-KPIC' 11155 lt_prog_compiler_static='-Bstatic' 11156 lt_prog_compiler_wl='-Wl,' 11157 ;; 11158 *Intel*\ [CF]*Compiler*) 11159 lt_prog_compiler_wl='-Wl,' 11160 lt_prog_compiler_pic='-fPIC' 11161 lt_prog_compiler_static='-static' 11162 ;; 11163 *Portland\ Group*) 11164 lt_prog_compiler_wl='-Wl,' 11165 lt_prog_compiler_pic='-fpic' 11166 lt_prog_compiler_static='-Bstatic' 11167 ;; 11168 esac 11169 ;; 11170 esac 11171 ;; 11172 11173 newsos6) 11174 lt_prog_compiler_pic='-KPIC' 11175 lt_prog_compiler_static='-Bstatic' 11176 ;; 11177 11178 *nto* | *qnx*) 11179 # QNX uses GNU C++, but need to define -shared option too, otherwise 11180 # it will coredump. 11181 lt_prog_compiler_pic='-fPIC -shared' 11182 ;; 11183 11184 osf3* | osf4* | osf5*) 11185 lt_prog_compiler_wl='-Wl,' 11186 # All OSF/1 code is PIC. 11187 lt_prog_compiler_static='-non_shared' 11188 ;; 11189 11190 rdos*) 11191 lt_prog_compiler_static='-non_shared' 11192 ;; 11193 11194 solaris*) 11195 lt_prog_compiler_pic='-KPIC' 11196 lt_prog_compiler_static='-Bstatic' 11197 case $cc_basename in 11198 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11199 lt_prog_compiler_wl='-Qoption ld ';; 11200 *) 11201 lt_prog_compiler_wl='-Wl,';; 11202 esac 11203 ;; 11204 11205 sunos4*) 11206 lt_prog_compiler_wl='-Qoption ld ' 11207 lt_prog_compiler_pic='-PIC' 11208 lt_prog_compiler_static='-Bstatic' 11209 ;; 11210 11211 sysv4 | sysv4.2uw2* | sysv4.3*) 11212 lt_prog_compiler_wl='-Wl,' 11213 lt_prog_compiler_pic='-KPIC' 11214 lt_prog_compiler_static='-Bstatic' 11215 ;; 11216 11217 sysv4*MP*) 11218 if test -d /usr/nec; then 11219 lt_prog_compiler_pic='-Kconform_pic' 11220 lt_prog_compiler_static='-Bstatic' 11221 fi 11222 ;; 11223 11224 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11225 lt_prog_compiler_wl='-Wl,' 11226 lt_prog_compiler_pic='-KPIC' 11227 lt_prog_compiler_static='-Bstatic' 11228 ;; 11229 11230 unicos*) 11231 lt_prog_compiler_wl='-Wl,' 11232 lt_prog_compiler_can_build_shared=no 11233 ;; 11234 11235 uts4*) 11236 lt_prog_compiler_pic='-pic' 11237 lt_prog_compiler_static='-Bstatic' 11238 ;; 11239 11240 *) 11241 lt_prog_compiler_can_build_shared=no 11242 ;; 11243 esac 11244 fi 11245 11246case $host_os in 11247 # For platforms that do not support PIC, -DPIC is meaningless: 11248 *djgpp*) 11249 lt_prog_compiler_pic= 11250 ;; 11251 *) 11252 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11253 ;; 11254esac 11255 11256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11257printf %s "checking for $compiler option to produce PIC... " >&6; } 11258if test ${lt_cv_prog_compiler_pic+y} 11259then : 11260 printf %s "(cached) " >&6 11261else $as_nop 11262 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11263fi 11264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11265printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 11266lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11267 11268# 11269# Check to make sure the PIC flag actually works. 11270# 11271if test -n "$lt_prog_compiler_pic"; then 11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11273printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11274if test ${lt_cv_prog_compiler_pic_works+y} 11275then : 11276 printf %s "(cached) " >&6 11277else $as_nop 11278 lt_cv_prog_compiler_pic_works=no 11279 ac_outfile=conftest.$ac_objext 11280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11281 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11282 # Insert the option either (1) after the last *FLAGS variable, or 11283 # (2) before a word containing "conftest.", or (3) at the end. 11284 # Note that $ac_compile itself does not contain backslashes and begins 11285 # with a dollar sign (not a hyphen), so the echo should work correctly. 11286 # The option is referenced via a variable to avoid confusing sed. 11287 lt_compile=`echo "$ac_compile" | $SED \ 11288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11290 -e 's:$: $lt_compiler_flag:'` 11291 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11292 (eval "$lt_compile" 2>conftest.err) 11293 ac_status=$? 11294 cat conftest.err >&5 11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11296 if (exit $ac_status) && test -s "$ac_outfile"; then 11297 # The compiler can only warn and ignore the option if not recognized 11298 # So say no if there are warnings other than the usual output. 11299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11302 lt_cv_prog_compiler_pic_works=yes 11303 fi 11304 fi 11305 $RM conftest* 11306 11307fi 11308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11309printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 11310 11311if test yes = "$lt_cv_prog_compiler_pic_works"; then 11312 case $lt_prog_compiler_pic in 11313 "" | " "*) ;; 11314 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11315 esac 11316else 11317 lt_prog_compiler_pic= 11318 lt_prog_compiler_can_build_shared=no 11319fi 11320 11321fi 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333# 11334# Check to make sure the static flag actually works. 11335# 11336wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11338printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11339if test ${lt_cv_prog_compiler_static_works+y} 11340then : 11341 printf %s "(cached) " >&6 11342else $as_nop 11343 lt_cv_prog_compiler_static_works=no 11344 save_LDFLAGS=$LDFLAGS 11345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11346 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11348 # The linker can only warn and ignore the option if not recognized 11349 # So say no if there are warnings 11350 if test -s conftest.err; then 11351 # Append any errors to the config.log. 11352 cat conftest.err 1>&5 11353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11355 if diff conftest.exp conftest.er2 >/dev/null; then 11356 lt_cv_prog_compiler_static_works=yes 11357 fi 11358 else 11359 lt_cv_prog_compiler_static_works=yes 11360 fi 11361 fi 11362 $RM -r conftest* 11363 LDFLAGS=$save_LDFLAGS 11364 11365fi 11366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11367printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 11368 11369if test yes = "$lt_cv_prog_compiler_static_works"; then 11370 : 11371else 11372 lt_prog_compiler_static= 11373fi 11374 11375 11376 11377 11378 11379 11380 11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11382printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11383if test ${lt_cv_prog_compiler_c_o+y} 11384then : 11385 printf %s "(cached) " >&6 11386else $as_nop 11387 lt_cv_prog_compiler_c_o=no 11388 $RM -r conftest 2>/dev/null 11389 mkdir conftest 11390 cd conftest 11391 mkdir out 11392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11393 11394 lt_compiler_flag="-o out/conftest2.$ac_objext" 11395 # Insert the option either (1) after the last *FLAGS variable, or 11396 # (2) before a word containing "conftest.", or (3) at the end. 11397 # Note that $ac_compile itself does not contain backslashes and begins 11398 # with a dollar sign (not a hyphen), so the echo should work correctly. 11399 lt_compile=`echo "$ac_compile" | $SED \ 11400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11402 -e 's:$: $lt_compiler_flag:'` 11403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11404 (eval "$lt_compile" 2>out/conftest.err) 11405 ac_status=$? 11406 cat out/conftest.err >&5 11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11408 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11409 then 11410 # The compiler can only warn and ignore the option if not recognized 11411 # So say no if there are warnings 11412 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11415 lt_cv_prog_compiler_c_o=yes 11416 fi 11417 fi 11418 chmod u+w . 2>&5 11419 $RM conftest* 11420 # SGI C++ compiler will create directory out/ii_files/ for 11421 # template instantiation 11422 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11423 $RM out/* && rmdir out 11424 cd .. 11425 $RM -r conftest 11426 $RM conftest* 11427 11428fi 11429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11430printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11431 11432 11433 11434 11435 11436 11437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11438printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11439if test ${lt_cv_prog_compiler_c_o+y} 11440then : 11441 printf %s "(cached) " >&6 11442else $as_nop 11443 lt_cv_prog_compiler_c_o=no 11444 $RM -r conftest 2>/dev/null 11445 mkdir conftest 11446 cd conftest 11447 mkdir out 11448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11449 11450 lt_compiler_flag="-o out/conftest2.$ac_objext" 11451 # Insert the option either (1) after the last *FLAGS variable, or 11452 # (2) before a word containing "conftest.", or (3) at the end. 11453 # Note that $ac_compile itself does not contain backslashes and begins 11454 # with a dollar sign (not a hyphen), so the echo should work correctly. 11455 lt_compile=`echo "$ac_compile" | $SED \ 11456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11458 -e 's:$: $lt_compiler_flag:'` 11459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11460 (eval "$lt_compile" 2>out/conftest.err) 11461 ac_status=$? 11462 cat out/conftest.err >&5 11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11464 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11465 then 11466 # The compiler can only warn and ignore the option if not recognized 11467 # So say no if there are warnings 11468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11469 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11470 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11471 lt_cv_prog_compiler_c_o=yes 11472 fi 11473 fi 11474 chmod u+w . 2>&5 11475 $RM conftest* 11476 # SGI C++ compiler will create directory out/ii_files/ for 11477 # template instantiation 11478 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11479 $RM out/* && rmdir out 11480 cd .. 11481 $RM -r conftest 11482 $RM conftest* 11483 11484fi 11485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11486printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11487 11488 11489 11490 11491hard_links=nottested 11492if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11493 # do not overwrite the value of need_locks provided by the user 11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11495printf %s "checking if we can lock with hard links... " >&6; } 11496 hard_links=yes 11497 $RM conftest* 11498 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11499 touch conftest.a 11500 ln conftest.a conftest.b 2>&5 || hard_links=no 11501 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11503printf "%s\n" "$hard_links" >&6; } 11504 if test no = "$hard_links"; then 11505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11506printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11507 need_locks=warn 11508 fi 11509else 11510 need_locks=no 11511fi 11512 11513 11514 11515 11516 11517 11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11519printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11520 11521 runpath_var= 11522 allow_undefined_flag= 11523 always_export_symbols=no 11524 archive_cmds= 11525 archive_expsym_cmds= 11526 compiler_needs_object=no 11527 enable_shared_with_static_runtimes=no 11528 export_dynamic_flag_spec= 11529 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11530 hardcode_automatic=no 11531 hardcode_direct=no 11532 hardcode_direct_absolute=no 11533 hardcode_libdir_flag_spec= 11534 hardcode_libdir_separator= 11535 hardcode_minus_L=no 11536 hardcode_shlibpath_var=unsupported 11537 inherit_rpath=no 11538 link_all_deplibs=no 11539 module_cmds= 11540 module_expsym_cmds= 11541 old_archive_from_new_cmds= 11542 old_archive_from_expsyms_cmds= 11543 thread_safe_flag_spec= 11544 whole_archive_flag_spec= 11545 # include_expsyms should be a list of space-separated symbols to be *always* 11546 # included in the symbol list 11547 include_expsyms= 11548 # exclude_expsyms can be an extended regexp of symbols to exclude 11549 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11550 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11551 # as well as any symbol that contains 'd'. 11552 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11554 # platforms (ab)use it in PIC code, but their linkers get confused if 11555 # the symbol is explicitly referenced. Since portable code cannot 11556 # rely on this symbol name, it's probably fine to never include it in 11557 # preloaded symbol tables. 11558 # Exclude shared library initialization/finalization symbols. 11559 extract_expsyms_cmds= 11560 11561 case $host_os in 11562 cygwin* | mingw* | pw32* | cegcc*) 11563 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11564 # When not using gcc, we currently assume that we are using 11565 # Microsoft Visual C++. 11566 if test yes != "$GCC"; then 11567 with_gnu_ld=no 11568 fi 11569 ;; 11570 interix*) 11571 # we just hope/assume this is gcc and not c89 (= MSVC++) 11572 with_gnu_ld=yes 11573 ;; 11574 openbsd* | bitrig*) 11575 with_gnu_ld=no 11576 ;; 11577 linux* | k*bsd*-gnu | gnu*) 11578 link_all_deplibs=no 11579 ;; 11580 esac 11581 11582 ld_shlibs=yes 11583 11584 # On some targets, GNU ld is compatible enough with the native linker 11585 # that we're better off using the native interface for both. 11586 lt_use_gnu_ld_interface=no 11587 if test yes = "$with_gnu_ld"; then 11588 case $host_os in 11589 aix*) 11590 # The AIX port of GNU ld has always aspired to compatibility 11591 # with the native linker. However, as the warning in the GNU ld 11592 # block says, versions before 2.19.5* couldn't really create working 11593 # shared libraries, regardless of the interface used. 11594 case `$LD -v 2>&1` in 11595 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11596 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11597 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11598 *) 11599 lt_use_gnu_ld_interface=yes 11600 ;; 11601 esac 11602 ;; 11603 *) 11604 lt_use_gnu_ld_interface=yes 11605 ;; 11606 esac 11607 fi 11608 11609 if test yes = "$lt_use_gnu_ld_interface"; then 11610 # If archive_cmds runs LD, not CC, wlarc should be empty 11611 wlarc='$wl' 11612 11613 # Set some defaults for GNU ld with shared library support. These 11614 # are reset later if shared libraries are not supported. Putting them 11615 # here allows them to be overridden if necessary. 11616 runpath_var=LD_RUN_PATH 11617 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11618 export_dynamic_flag_spec='$wl--export-dynamic' 11619 # ancient GNU ld didn't support --whole-archive et. al. 11620 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11621 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11622 else 11623 whole_archive_flag_spec= 11624 fi 11625 supports_anon_versioning=no 11626 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 11627 *GNU\ gold*) supports_anon_versioning=yes ;; 11628 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11629 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11630 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11631 *\ 2.11.*) ;; # other 2.11 versions 11632 *) supports_anon_versioning=yes ;; 11633 esac 11634 11635 # See if GNU ld supports shared libraries. 11636 case $host_os in 11637 aix[3-9]*) 11638 # On AIX/PPC, the GNU linker is very broken 11639 if test ia64 != "$host_cpu"; then 11640 ld_shlibs=no 11641 cat <<_LT_EOF 1>&2 11642 11643*** Warning: the GNU linker, at least up to release 2.19, is reported 11644*** to be unable to reliably create shared libraries on AIX. 11645*** Therefore, libtool is disabling shared libraries support. If you 11646*** really care for shared libraries, you may want to install binutils 11647*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11648*** You will then need to restart the configuration process. 11649 11650_LT_EOF 11651 fi 11652 ;; 11653 11654 amigaos*) 11655 case $host_cpu in 11656 powerpc) 11657 # see comment about AmigaOS4 .so support 11658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11659 archive_expsym_cmds='' 11660 ;; 11661 m68k) 11662 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)' 11663 hardcode_libdir_flag_spec='-L$libdir' 11664 hardcode_minus_L=yes 11665 ;; 11666 esac 11667 ;; 11668 11669 beos*) 11670 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11671 allow_undefined_flag=unsupported 11672 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11673 # support --undefined. This deserves some investigation. FIXME 11674 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11675 else 11676 ld_shlibs=no 11677 fi 11678 ;; 11679 11680 cygwin* | mingw* | pw32* | cegcc*) 11681 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11682 # as there is no search path for DLLs. 11683 hardcode_libdir_flag_spec='-L$libdir' 11684 export_dynamic_flag_spec='$wl--export-all-symbols' 11685 allow_undefined_flag=unsupported 11686 always_export_symbols=no 11687 enable_shared_with_static_runtimes=yes 11688 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' 11689 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11690 11691 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11693 # If the export-symbols file already is a .def file, use it as 11694 # is; otherwise, prepend EXPORTS... 11695 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11696 cp $export_symbols $output_objdir/$soname.def; 11697 else 11698 echo EXPORTS > $output_objdir/$soname.def; 11699 cat $export_symbols >> $output_objdir/$soname.def; 11700 fi~ 11701 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11702 else 11703 ld_shlibs=no 11704 fi 11705 ;; 11706 11707 haiku*) 11708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11709 link_all_deplibs=yes 11710 ;; 11711 11712 os2*) 11713 hardcode_libdir_flag_spec='-L$libdir' 11714 hardcode_minus_L=yes 11715 allow_undefined_flag=unsupported 11716 shrext_cmds=.dll 11717 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11718 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11719 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11720 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11721 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11722 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11723 emximp -o $lib $output_objdir/$libname.def' 11724 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11725 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11726 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11727 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11728 prefix_cmds="$SED"~ 11729 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11730 prefix_cmds="$prefix_cmds -e 1d"; 11731 fi~ 11732 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11733 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11735 emximp -o $lib $output_objdir/$libname.def' 11736 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11737 enable_shared_with_static_runtimes=yes 11738 ;; 11739 11740 interix[3-9]*) 11741 hardcode_direct=no 11742 hardcode_shlibpath_var=no 11743 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11744 export_dynamic_flag_spec='$wl-E' 11745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11746 # Instead, shared libraries are loaded at an image base (0x10000000 by 11747 # default) and relocated if they conflict, which is a slow very memory 11748 # consuming and fragmenting process. To avoid this, we pick a random, 11749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11750 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11752 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' 11753 ;; 11754 11755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11756 tmp_diet=no 11757 if test linux-dietlibc = "$host_os"; then 11758 case $cc_basename in 11759 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11760 esac 11761 fi 11762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11763 && test no = "$tmp_diet" 11764 then 11765 tmp_addflag=' $pic_flag' 11766 tmp_sharedflag='-shared' 11767 case $cc_basename,$host_cpu in 11768 pgcc*) # Portland Group C compiler 11769 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' 11770 tmp_addflag=' $pic_flag' 11771 ;; 11772 pgf77* | pgf90* | pgf95* | pgfortran*) 11773 # Portland Group f77 and f90 compilers 11774 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' 11775 tmp_addflag=' $pic_flag -Mnomain' ;; 11776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11777 tmp_addflag=' -i_dynamic' ;; 11778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11779 tmp_addflag=' -i_dynamic -nofor_main' ;; 11780 ifc* | ifort*) # Intel Fortran compiler 11781 tmp_addflag=' -nofor_main' ;; 11782 lf95*) # Lahey Fortran 8.1 11783 whole_archive_flag_spec= 11784 tmp_sharedflag='--shared' ;; 11785 nagfor*) # NAGFOR 5.3 11786 tmp_sharedflag='-Wl,-shared' ;; 11787 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11788 tmp_sharedflag='-qmkshrobj' 11789 tmp_addflag= ;; 11790 nvcc*) # Cuda Compiler Driver 2.2 11791 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' 11792 compiler_needs_object=yes 11793 ;; 11794 esac 11795 case `$CC -V 2>&1 | sed 5q` in 11796 *Sun\ C*) # Sun C 5.9 11797 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' 11798 compiler_needs_object=yes 11799 tmp_sharedflag='-G' ;; 11800 *Sun\ F*) # Sun Fortran 8.3 11801 tmp_sharedflag='-G' ;; 11802 esac 11803 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11804 11805 if test yes = "$supports_anon_versioning"; then 11806 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11808 echo "local: *; };" >> $output_objdir/$libname.ver~ 11809 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11810 fi 11811 11812 case $cc_basename in 11813 tcc*) 11814 export_dynamic_flag_spec='-rdynamic' 11815 ;; 11816 xlf* | bgf* | bgxlf* | mpixlf*) 11817 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11818 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11820 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11821 if test yes = "$supports_anon_versioning"; then 11822 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11823 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11824 echo "local: *; };" >> $output_objdir/$libname.ver~ 11825 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11826 fi 11827 ;; 11828 esac 11829 else 11830 ld_shlibs=no 11831 fi 11832 ;; 11833 11834 netbsd* | netbsdelf*-gnu) 11835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11836 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11837 wlarc= 11838 else 11839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11841 fi 11842 ;; 11843 11844 solaris*) 11845 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11846 ld_shlibs=no 11847 cat <<_LT_EOF 1>&2 11848 11849*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11850*** create shared libraries on Solaris systems. Therefore, libtool 11851*** is disabling shared libraries support. We urge you to upgrade GNU 11852*** binutils to release 2.9.1 or newer. Another option is to modify 11853*** your PATH or compiler configuration so that the native linker is 11854*** used, and then restart. 11855 11856_LT_EOF 11857 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11859 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11860 else 11861 ld_shlibs=no 11862 fi 11863 ;; 11864 11865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11866 case `$LD -v 2>&1` in 11867 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11868 ld_shlibs=no 11869 cat <<_LT_EOF 1>&2 11870 11871*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11872*** reliably create shared libraries on SCO systems. Therefore, libtool 11873*** is disabling shared libraries support. We urge you to upgrade GNU 11874*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11875*** your PATH or compiler configuration so that the native linker is 11876*** used, and then restart. 11877 11878_LT_EOF 11879 ;; 11880 *) 11881 # For security reasons, it is highly recommended that you always 11882 # use absolute paths for naming shared libraries, and exclude the 11883 # DT_RUNPATH tag from executables and libraries. But doing so 11884 # requires that you compile everything twice, which is a pain. 11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11886 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11889 else 11890 ld_shlibs=no 11891 fi 11892 ;; 11893 esac 11894 ;; 11895 11896 sunos4*) 11897 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11898 wlarc= 11899 hardcode_direct=yes 11900 hardcode_shlibpath_var=no 11901 ;; 11902 11903 *) 11904 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11905 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11906 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11907 else 11908 ld_shlibs=no 11909 fi 11910 ;; 11911 esac 11912 11913 if test no = "$ld_shlibs"; then 11914 runpath_var= 11915 hardcode_libdir_flag_spec= 11916 export_dynamic_flag_spec= 11917 whole_archive_flag_spec= 11918 fi 11919 else 11920 # PORTME fill in a description of your system's linker (not GNU ld) 11921 case $host_os in 11922 aix3*) 11923 allow_undefined_flag=unsupported 11924 always_export_symbols=yes 11925 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' 11926 # Note: this linker hardcodes the directories in LIBPATH if there 11927 # are no directories specified by -L. 11928 hardcode_minus_L=yes 11929 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11930 # Neither direct hardcoding nor static linking is supported with a 11931 # broken collect2. 11932 hardcode_direct=unsupported 11933 fi 11934 ;; 11935 11936 aix[4-9]*) 11937 if test ia64 = "$host_cpu"; then 11938 # On IA64, the linker does run time linking by default, so we don't 11939 # have to do anything special. 11940 aix_use_runtimelinking=no 11941 exp_sym_flag='-Bexport' 11942 no_entry_flag= 11943 else 11944 # If we're using GNU nm, then we don't want the "-C" option. 11945 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11946 # Without the "-l" option, or with the "-B" option, AIX nm treats 11947 # weak defined symbols like other global defined symbols, whereas 11948 # GNU nm marks them as "W". 11949 # While the 'weak' keyword is ignored in the Export File, we need 11950 # it in the Import File for the 'aix-soname' feature, so we have 11951 # to replace the "-B" option with "-P" for AIX nm. 11952 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11953 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' 11954 else 11955 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' 11956 fi 11957 aix_use_runtimelinking=no 11958 11959 # Test if we are trying to use run time linking or normal 11960 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11961 # have runtime linking enabled, and use it for executables. 11962 # For shared libraries, we enable/disable runtime linking 11963 # depending on the kind of the shared library created - 11964 # when "with_aix_soname,aix_use_runtimelinking" is: 11965 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11966 # "aix,yes" lib.so shared, rtl:yes, for executables 11967 # lib.a static archive 11968 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11969 # lib.a(lib.so.V) shared, rtl:no, for executables 11970 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11971 # lib.a(lib.so.V) shared, rtl:no 11972 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11973 # lib.a static archive 11974 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11975 for ld_flag in $LDFLAGS; do 11976 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11977 aix_use_runtimelinking=yes 11978 break 11979 fi 11980 done 11981 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11982 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11983 # so we don't have lib.a shared libs to link our executables. 11984 # We have to force runtime linking in this case. 11985 aix_use_runtimelinking=yes 11986 LDFLAGS="$LDFLAGS -Wl,-brtl" 11987 fi 11988 ;; 11989 esac 11990 11991 exp_sym_flag='-bexport' 11992 no_entry_flag='-bnoentry' 11993 fi 11994 11995 # When large executables or shared objects are built, AIX ld can 11996 # have problems creating the table of contents. If linking a library 11997 # or program results in "error TOC overflow" add -mminimal-toc to 11998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12000 12001 archive_cmds='' 12002 hardcode_direct=yes 12003 hardcode_direct_absolute=yes 12004 hardcode_libdir_separator=':' 12005 link_all_deplibs=yes 12006 file_list_spec='$wl-f,' 12007 case $with_aix_soname,$aix_use_runtimelinking in 12008 aix,*) ;; # traditional, no import file 12009 svr4,* | *,yes) # use import file 12010 # The Import File defines what to hardcode. 12011 hardcode_direct=no 12012 hardcode_direct_absolute=no 12013 ;; 12014 esac 12015 12016 if test yes = "$GCC"; then 12017 case $host_os in aix4.[012]|aix4.[012].*) 12018 # We only want to do this on AIX 4.2 and lower, the check 12019 # below for broken collect2 doesn't work under 4.3+ 12020 collect2name=`$CC -print-prog-name=collect2` 12021 if test -f "$collect2name" && 12022 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12023 then 12024 # We have reworked collect2 12025 : 12026 else 12027 # We have old collect2 12028 hardcode_direct=unsupported 12029 # It fails to find uninstalled libraries when the uninstalled 12030 # path is not listed in the libpath. Setting hardcode_minus_L 12031 # to unsupported forces relinking 12032 hardcode_minus_L=yes 12033 hardcode_libdir_flag_spec='-L$libdir' 12034 hardcode_libdir_separator= 12035 fi 12036 ;; 12037 esac 12038 shared_flag='-shared' 12039 if test yes = "$aix_use_runtimelinking"; then 12040 shared_flag="$shared_flag "'$wl-G' 12041 fi 12042 # Need to ensure runtime linking is disabled for the traditional 12043 # shared library, or the linker may eventually find shared libraries 12044 # /with/ Import File - we do not want to mix them. 12045 shared_flag_aix='-shared' 12046 shared_flag_svr4='-shared $wl-G' 12047 else 12048 # not using gcc 12049 if test ia64 = "$host_cpu"; then 12050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12051 # chokes on -Wl,-G. The following line is correct: 12052 shared_flag='-G' 12053 else 12054 if test yes = "$aix_use_runtimelinking"; then 12055 shared_flag='$wl-G' 12056 else 12057 shared_flag='$wl-bM:SRE' 12058 fi 12059 shared_flag_aix='$wl-bM:SRE' 12060 shared_flag_svr4='$wl-G' 12061 fi 12062 fi 12063 12064 export_dynamic_flag_spec='$wl-bexpall' 12065 # It seems that -bexpall does not export symbols beginning with 12066 # underscore (_), so it is better to generate a list of symbols to export. 12067 always_export_symbols=yes 12068 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12069 # Warning - without using the other runtime loading flags (-brtl), 12070 # -berok will link without error, but may produce a broken library. 12071 allow_undefined_flag='-berok' 12072 # Determine the default libpath from the value encoded in an 12073 # empty executable. 12074 if test set = "${lt_cv_aix_libpath+set}"; then 12075 aix_libpath=$lt_cv_aix_libpath 12076else 12077 if test ${lt_cv_aix_libpath_+y} 12078then : 12079 printf %s "(cached) " >&6 12080else $as_nop 12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12082/* end confdefs.h. */ 12083 12084int 12085main (void) 12086{ 12087 12088 ; 12089 return 0; 12090} 12091_ACEOF 12092if ac_fn_c_try_link "$LINENO" 12093then : 12094 12095 lt_aix_libpath_sed=' 12096 /Import File Strings/,/^$/ { 12097 /^0/ { 12098 s/^0 *\([^ ]*\) *$/\1/ 12099 p 12100 } 12101 }' 12102 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12103 # Check for a 64-bit object if we didn't find anything. 12104 if test -z "$lt_cv_aix_libpath_"; then 12105 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12106 fi 12107fi 12108rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12109 conftest$ac_exeext conftest.$ac_ext 12110 if test -z "$lt_cv_aix_libpath_"; then 12111 lt_cv_aix_libpath_=/usr/lib:/lib 12112 fi 12113 12114fi 12115 12116 aix_libpath=$lt_cv_aix_libpath_ 12117fi 12118 12119 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12120 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 12121 else 12122 if test ia64 = "$host_cpu"; then 12123 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12124 allow_undefined_flag="-z nodefs" 12125 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" 12126 else 12127 # Determine the default libpath from the value encoded in an 12128 # empty executable. 12129 if test set = "${lt_cv_aix_libpath+set}"; then 12130 aix_libpath=$lt_cv_aix_libpath 12131else 12132 if test ${lt_cv_aix_libpath_+y} 12133then : 12134 printf %s "(cached) " >&6 12135else $as_nop 12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12137/* end confdefs.h. */ 12138 12139int 12140main (void) 12141{ 12142 12143 ; 12144 return 0; 12145} 12146_ACEOF 12147if ac_fn_c_try_link "$LINENO" 12148then : 12149 12150 lt_aix_libpath_sed=' 12151 /Import File Strings/,/^$/ { 12152 /^0/ { 12153 s/^0 *\([^ ]*\) *$/\1/ 12154 p 12155 } 12156 }' 12157 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12158 # Check for a 64-bit object if we didn't find anything. 12159 if test -z "$lt_cv_aix_libpath_"; then 12160 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12161 fi 12162fi 12163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12164 conftest$ac_exeext conftest.$ac_ext 12165 if test -z "$lt_cv_aix_libpath_"; then 12166 lt_cv_aix_libpath_=/usr/lib:/lib 12167 fi 12168 12169fi 12170 12171 aix_libpath=$lt_cv_aix_libpath_ 12172fi 12173 12174 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12175 # Warning - without using the other run time loading flags, 12176 # -berok will link without error, but may produce a broken library. 12177 no_undefined_flag=' $wl-bernotok' 12178 allow_undefined_flag=' $wl-berok' 12179 if test yes = "$with_gnu_ld"; then 12180 # We only use this code for GNU lds that support --whole-archive. 12181 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12182 else 12183 # Exported symbols can be pulled into shared objects from archives 12184 whole_archive_flag_spec='$convenience' 12185 fi 12186 archive_cmds_need_lc=yes 12187 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12188 # -brtl affects multiple linker settings, -berok does not and is overridden later 12189 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12190 if test svr4 != "$with_aix_soname"; then 12191 # This is similar to how AIX traditionally builds its shared libraries. 12192 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' 12193 fi 12194 if test aix != "$with_aix_soname"; then 12195 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' 12196 else 12197 # used by -dlpreopen to get the symbols 12198 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12199 fi 12200 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12201 fi 12202 fi 12203 ;; 12204 12205 amigaos*) 12206 case $host_cpu in 12207 powerpc) 12208 # see comment about AmigaOS4 .so support 12209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12210 archive_expsym_cmds='' 12211 ;; 12212 m68k) 12213 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)' 12214 hardcode_libdir_flag_spec='-L$libdir' 12215 hardcode_minus_L=yes 12216 ;; 12217 esac 12218 ;; 12219 12220 bsdi[45]*) 12221 export_dynamic_flag_spec=-rdynamic 12222 ;; 12223 12224 cygwin* | mingw* | pw32* | cegcc*) 12225 # When not using gcc, we currently assume that we are using 12226 # Microsoft Visual C++. 12227 # hardcode_libdir_flag_spec is actually meaningless, as there is 12228 # no search path for DLLs. 12229 case $cc_basename in 12230 cl*) 12231 # Native MSVC 12232 hardcode_libdir_flag_spec=' ' 12233 allow_undefined_flag=unsupported 12234 always_export_symbols=yes 12235 file_list_spec='@' 12236 # Tell ltmain to make .lib files, not .a files. 12237 libext=lib 12238 # Tell ltmain to make .dll files, not .so files. 12239 shrext_cmds=.dll 12240 # FIXME: Setting linknames here is a bad hack. 12241 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12242 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12243 cp "$export_symbols" "$output_objdir/$soname.def"; 12244 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12245 else 12246 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12247 fi~ 12248 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12249 linknames=' 12250 # The linker will not automatically build a static lib if we build a DLL. 12251 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12252 enable_shared_with_static_runtimes=yes 12253 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12255 # Don't use ranlib 12256 old_postinstall_cmds='chmod 644 $oldlib' 12257 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12258 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12259 case $lt_outputfile in 12260 *.exe|*.EXE) ;; 12261 *) 12262 lt_outputfile=$lt_outputfile.exe 12263 lt_tool_outputfile=$lt_tool_outputfile.exe 12264 ;; 12265 esac~ 12266 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12267 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12268 $RM "$lt_outputfile.manifest"; 12269 fi' 12270 ;; 12271 *) 12272 # Assume MSVC wrapper 12273 hardcode_libdir_flag_spec=' ' 12274 allow_undefined_flag=unsupported 12275 # Tell ltmain to make .lib files, not .a files. 12276 libext=lib 12277 # Tell ltmain to make .dll files, not .so files. 12278 shrext_cmds=.dll 12279 # FIXME: Setting linknames here is a bad hack. 12280 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12281 # The linker will automatically build a .lib file if we build a DLL. 12282 old_archive_from_new_cmds='true' 12283 # FIXME: Should let the user specify the lib program. 12284 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12285 enable_shared_with_static_runtimes=yes 12286 ;; 12287 esac 12288 ;; 12289 12290 darwin* | rhapsody*) 12291 12292 12293 archive_cmds_need_lc=no 12294 hardcode_direct=no 12295 hardcode_automatic=yes 12296 hardcode_shlibpath_var=unsupported 12297 if test yes = "$lt_cv_ld_force_load"; then 12298 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\"`' 12299 12300 else 12301 whole_archive_flag_spec='' 12302 fi 12303 link_all_deplibs=yes 12304 allow_undefined_flag=$_lt_dar_allow_undefined 12305 case $cc_basename in 12306 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12307 *) _lt_dar_can_shared=$GCC ;; 12308 esac 12309 if test yes = "$_lt_dar_can_shared"; then 12310 output_verbose_link_cmd=func_echo_all 12311 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12312 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12313 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" 12314 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" 12315 12316 else 12317 ld_shlibs=no 12318 fi 12319 12320 ;; 12321 12322 dgux*) 12323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12324 hardcode_libdir_flag_spec='-L$libdir' 12325 hardcode_shlibpath_var=no 12326 ;; 12327 12328 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12329 # support. Future versions do this automatically, but an explicit c++rt0.o 12330 # does not break anything, and helps significantly (at the cost of a little 12331 # extra space). 12332 freebsd2.2*) 12333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12334 hardcode_libdir_flag_spec='-R$libdir' 12335 hardcode_direct=yes 12336 hardcode_shlibpath_var=no 12337 ;; 12338 12339 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12340 freebsd2.*) 12341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12342 hardcode_direct=yes 12343 hardcode_minus_L=yes 12344 hardcode_shlibpath_var=no 12345 ;; 12346 12347 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12348 freebsd* | dragonfly*) 12349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12350 hardcode_libdir_flag_spec='-R$libdir' 12351 hardcode_direct=yes 12352 hardcode_shlibpath_var=no 12353 ;; 12354 12355 hpux9*) 12356 if test yes = "$GCC"; then 12357 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' 12358 else 12359 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' 12360 fi 12361 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12362 hardcode_libdir_separator=: 12363 hardcode_direct=yes 12364 12365 # hardcode_minus_L: Not really in the search PATH, 12366 # but as the default location of the library. 12367 hardcode_minus_L=yes 12368 export_dynamic_flag_spec='$wl-E' 12369 ;; 12370 12371 hpux10*) 12372 if test yes,no = "$GCC,$with_gnu_ld"; then 12373 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12374 else 12375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12376 fi 12377 if test no = "$with_gnu_ld"; then 12378 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12379 hardcode_libdir_separator=: 12380 hardcode_direct=yes 12381 hardcode_direct_absolute=yes 12382 export_dynamic_flag_spec='$wl-E' 12383 # hardcode_minus_L: Not really in the search PATH, 12384 # but as the default location of the library. 12385 hardcode_minus_L=yes 12386 fi 12387 ;; 12388 12389 hpux11*) 12390 if test yes,no = "$GCC,$with_gnu_ld"; then 12391 case $host_cpu in 12392 hppa*64*) 12393 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12394 ;; 12395 ia64*) 12396 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12397 ;; 12398 *) 12399 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12400 ;; 12401 esac 12402 else 12403 case $host_cpu in 12404 hppa*64*) 12405 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12406 ;; 12407 ia64*) 12408 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12409 ;; 12410 *) 12411 12412 # Older versions of the 11.00 compiler do not understand -b yet 12413 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12415printf %s "checking if $CC understands -b... " >&6; } 12416if test ${lt_cv_prog_compiler__b+y} 12417then : 12418 printf %s "(cached) " >&6 12419else $as_nop 12420 lt_cv_prog_compiler__b=no 12421 save_LDFLAGS=$LDFLAGS 12422 LDFLAGS="$LDFLAGS -b" 12423 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12425 # The linker can only warn and ignore the option if not recognized 12426 # So say no if there are warnings 12427 if test -s conftest.err; then 12428 # Append any errors to the config.log. 12429 cat conftest.err 1>&5 12430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12432 if diff conftest.exp conftest.er2 >/dev/null; then 12433 lt_cv_prog_compiler__b=yes 12434 fi 12435 else 12436 lt_cv_prog_compiler__b=yes 12437 fi 12438 fi 12439 $RM -r conftest* 12440 LDFLAGS=$save_LDFLAGS 12441 12442fi 12443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12444printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 12445 12446if test yes = "$lt_cv_prog_compiler__b"; then 12447 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12448else 12449 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12450fi 12451 12452 ;; 12453 esac 12454 fi 12455 if test no = "$with_gnu_ld"; then 12456 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12457 hardcode_libdir_separator=: 12458 12459 case $host_cpu in 12460 hppa*64*|ia64*) 12461 hardcode_direct=no 12462 hardcode_shlibpath_var=no 12463 ;; 12464 *) 12465 hardcode_direct=yes 12466 hardcode_direct_absolute=yes 12467 export_dynamic_flag_spec='$wl-E' 12468 12469 # hardcode_minus_L: Not really in the search PATH, 12470 # but as the default location of the library. 12471 hardcode_minus_L=yes 12472 ;; 12473 esac 12474 fi 12475 ;; 12476 12477 irix5* | irix6* | nonstopux*) 12478 if test yes = "$GCC"; then 12479 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' 12480 # Try to use the -exported_symbol ld option, if it does not 12481 # work, assume that -exports_file does not work either and 12482 # implicitly export all symbols. 12483 # This should be the same for all languages, so no per-tag cache variable. 12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12485printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12486if test ${lt_cv_irix_exported_symbol+y} 12487then : 12488 printf %s "(cached) " >&6 12489else $as_nop 12490 save_LDFLAGS=$LDFLAGS 12491 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494int foo (void) { return 0; } 12495_ACEOF 12496if ac_fn_c_try_link "$LINENO" 12497then : 12498 lt_cv_irix_exported_symbol=yes 12499else $as_nop 12500 lt_cv_irix_exported_symbol=no 12501fi 12502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12503 conftest$ac_exeext conftest.$ac_ext 12504 LDFLAGS=$save_LDFLAGS 12505fi 12506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12507printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 12508 if test yes = "$lt_cv_irix_exported_symbol"; then 12509 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' 12510 fi 12511 link_all_deplibs=no 12512 else 12513 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' 12514 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' 12515 fi 12516 archive_cmds_need_lc='no' 12517 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12518 hardcode_libdir_separator=: 12519 inherit_rpath=yes 12520 link_all_deplibs=yes 12521 ;; 12522 12523 linux*) 12524 case $cc_basename in 12525 tcc*) 12526 # Fabrice Bellard et al's Tiny C Compiler 12527 ld_shlibs=yes 12528 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12529 ;; 12530 esac 12531 ;; 12532 12533 netbsd* | netbsdelf*-gnu) 12534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12536 else 12537 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12538 fi 12539 hardcode_libdir_flag_spec='-R$libdir' 12540 hardcode_direct=yes 12541 hardcode_shlibpath_var=no 12542 ;; 12543 12544 newsos6) 12545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12546 hardcode_direct=yes 12547 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12548 hardcode_libdir_separator=: 12549 hardcode_shlibpath_var=no 12550 ;; 12551 12552 *nto* | *qnx*) 12553 ;; 12554 12555 openbsd* | bitrig*) 12556 if test -f /usr/libexec/ld.so; then 12557 hardcode_direct=yes 12558 hardcode_shlibpath_var=no 12559 hardcode_direct_absolute=yes 12560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12562 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12563 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12564 export_dynamic_flag_spec='$wl-E' 12565 else 12566 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12567 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12568 fi 12569 else 12570 ld_shlibs=no 12571 fi 12572 ;; 12573 12574 os2*) 12575 hardcode_libdir_flag_spec='-L$libdir' 12576 hardcode_minus_L=yes 12577 allow_undefined_flag=unsupported 12578 shrext_cmds=.dll 12579 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12580 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12581 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12582 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12583 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12584 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12585 emximp -o $lib $output_objdir/$libname.def' 12586 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12587 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12588 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12589 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12590 prefix_cmds="$SED"~ 12591 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12592 prefix_cmds="$prefix_cmds -e 1d"; 12593 fi~ 12594 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12595 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12596 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12597 emximp -o $lib $output_objdir/$libname.def' 12598 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12599 enable_shared_with_static_runtimes=yes 12600 ;; 12601 12602 osf3*) 12603 if test yes = "$GCC"; then 12604 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12605 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' 12606 else 12607 allow_undefined_flag=' -expect_unresolved \*' 12608 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' 12609 fi 12610 archive_cmds_need_lc='no' 12611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12612 hardcode_libdir_separator=: 12613 ;; 12614 12615 osf4* | osf5*) # as osf3* with the addition of -msym flag 12616 if test yes = "$GCC"; then 12617 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12618 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' 12619 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12620 else 12621 allow_undefined_flag=' -expect_unresolved \*' 12622 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' 12623 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~ 12624 $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' 12625 12626 # Both c and cxx compiler support -rpath directly 12627 hardcode_libdir_flag_spec='-rpath $libdir' 12628 fi 12629 archive_cmds_need_lc='no' 12630 hardcode_libdir_separator=: 12631 ;; 12632 12633 solaris*) 12634 no_undefined_flag=' -z defs' 12635 if test yes = "$GCC"; then 12636 wlarc='$wl' 12637 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12639 $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' 12640 else 12641 case `$CC -V 2>&1` in 12642 *"Compilers 5.0"*) 12643 wlarc='' 12644 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12646 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12647 ;; 12648 *) 12649 wlarc='$wl' 12650 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12652 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12653 ;; 12654 esac 12655 fi 12656 hardcode_libdir_flag_spec='-R$libdir' 12657 hardcode_shlibpath_var=no 12658 case $host_os in 12659 solaris2.[0-5] | solaris2.[0-5].*) ;; 12660 *) 12661 # The compiler driver will combine and reorder linker options, 12662 # but understands '-z linker_flag'. GCC discards it without '$wl', 12663 # but is careful enough not to reorder. 12664 # Supported since Solaris 2.6 (maybe 2.5.1?) 12665 if test yes = "$GCC"; then 12666 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12667 else 12668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12669 fi 12670 ;; 12671 esac 12672 link_all_deplibs=yes 12673 ;; 12674 12675 sunos4*) 12676 if test sequent = "$host_vendor"; then 12677 # Use $CC to link under sequent, because it throws in some extra .o 12678 # files that make .init and .fini sections work. 12679 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12680 else 12681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12682 fi 12683 hardcode_libdir_flag_spec='-L$libdir' 12684 hardcode_direct=yes 12685 hardcode_minus_L=yes 12686 hardcode_shlibpath_var=no 12687 ;; 12688 12689 sysv4) 12690 case $host_vendor in 12691 sni) 12692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12693 hardcode_direct=yes # is this really true??? 12694 ;; 12695 siemens) 12696 ## LD is ld it makes a PLAMLIB 12697 ## CC just makes a GrossModule. 12698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12699 reload_cmds='$CC -r -o $output$reload_objs' 12700 hardcode_direct=no 12701 ;; 12702 motorola) 12703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12705 ;; 12706 esac 12707 runpath_var='LD_RUN_PATH' 12708 hardcode_shlibpath_var=no 12709 ;; 12710 12711 sysv4.3*) 12712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12713 hardcode_shlibpath_var=no 12714 export_dynamic_flag_spec='-Bexport' 12715 ;; 12716 12717 sysv4*MP*) 12718 if test -d /usr/nec; then 12719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12720 hardcode_shlibpath_var=no 12721 runpath_var=LD_RUN_PATH 12722 hardcode_runpath_var=yes 12723 ld_shlibs=yes 12724 fi 12725 ;; 12726 12727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12728 no_undefined_flag='$wl-z,text' 12729 archive_cmds_need_lc=no 12730 hardcode_shlibpath_var=no 12731 runpath_var='LD_RUN_PATH' 12732 12733 if test yes = "$GCC"; then 12734 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12735 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12736 else 12737 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12738 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12739 fi 12740 ;; 12741 12742 sysv5* | sco3.2v5* | sco5v6*) 12743 # Note: We CANNOT use -z defs as we might desire, because we do not 12744 # link with -lc, and that would cause any symbols used from libc to 12745 # always be unresolved, which means just about no library would 12746 # ever link correctly. If we're not using GNU ld we use -z text 12747 # though, which does catch some bad symbols but isn't as heavy-handed 12748 # as -z defs. 12749 no_undefined_flag='$wl-z,text' 12750 allow_undefined_flag='$wl-z,nodefs' 12751 archive_cmds_need_lc=no 12752 hardcode_shlibpath_var=no 12753 hardcode_libdir_flag_spec='$wl-R,$libdir' 12754 hardcode_libdir_separator=':' 12755 link_all_deplibs=yes 12756 export_dynamic_flag_spec='$wl-Bexport' 12757 runpath_var='LD_RUN_PATH' 12758 12759 if test yes = "$GCC"; then 12760 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12761 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12762 else 12763 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12764 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12765 fi 12766 ;; 12767 12768 uts4*) 12769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12770 hardcode_libdir_flag_spec='-L$libdir' 12771 hardcode_shlibpath_var=no 12772 ;; 12773 12774 *) 12775 ld_shlibs=no 12776 ;; 12777 esac 12778 12779 if test sni = "$host_vendor"; then 12780 case $host in 12781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12782 export_dynamic_flag_spec='$wl-Blargedynsym' 12783 ;; 12784 esac 12785 fi 12786 fi 12787 12788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12789printf "%s\n" "$ld_shlibs" >&6; } 12790test no = "$ld_shlibs" && can_build_shared=no 12791 12792with_gnu_ld=$with_gnu_ld 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808# 12809# Do we need to explicitly link libc? 12810# 12811case "x$archive_cmds_need_lc" in 12812x|xyes) 12813 # Assume -lc should be added 12814 archive_cmds_need_lc=yes 12815 12816 if test yes,yes = "$GCC,$enable_shared"; then 12817 case $archive_cmds in 12818 *'~'*) 12819 # FIXME: we may have to deal with multi-command sequences. 12820 ;; 12821 '$CC '*) 12822 # Test whether the compiler implicitly links with -lc since on some 12823 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12824 # to ld, don't add -lc before -lgcc. 12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12826printf %s "checking whether -lc should be explicitly linked in... " >&6; } 12827if test ${lt_cv_archive_cmds_need_lc+y} 12828then : 12829 printf %s "(cached) " >&6 12830else $as_nop 12831 $RM conftest* 12832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12833 12834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12835 (eval $ac_compile) 2>&5 12836 ac_status=$? 12837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12838 test $ac_status = 0; } 2>conftest.err; then 12839 soname=conftest 12840 lib=conftest 12841 libobjs=conftest.$ac_objext 12842 deplibs= 12843 wl=$lt_prog_compiler_wl 12844 pic_flag=$lt_prog_compiler_pic 12845 compiler_flags=-v 12846 linker_flags=-v 12847 verstring= 12848 output_objdir=. 12849 libname=conftest 12850 lt_save_allow_undefined_flag=$allow_undefined_flag 12851 allow_undefined_flag= 12852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12853 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12854 ac_status=$? 12855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12856 test $ac_status = 0; } 12857 then 12858 lt_cv_archive_cmds_need_lc=no 12859 else 12860 lt_cv_archive_cmds_need_lc=yes 12861 fi 12862 allow_undefined_flag=$lt_save_allow_undefined_flag 12863 else 12864 cat conftest.err 1>&5 12865 fi 12866 $RM conftest* 12867 12868fi 12869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12870printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 12871 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12872 ;; 12873 esac 12874 fi 12875 ;; 12876esac 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13030printf %s "checking dynamic linker characteristics... " >&6; } 13031 13032if test yes = "$GCC"; then 13033 case $host_os in 13034 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13035 *) lt_awk_arg='/^libraries:/' ;; 13036 esac 13037 case $host_os in 13038 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13039 *) lt_sed_strip_eq='s|=/|/|g' ;; 13040 esac 13041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13042 case $lt_search_path_spec in 13043 *\;*) 13044 # if the path contains ";" then we assume it to be the separator 13045 # otherwise default to the standard path separator (i.e. ":") - it is 13046 # assumed that no part of a normal pathname contains ";" but that should 13047 # okay in the real world where ";" in dirpaths is itself problematic. 13048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13049 ;; 13050 *) 13051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13052 ;; 13053 esac 13054 # Ok, now we have the path, separated by spaces, we can step through it 13055 # and add multilib dir if necessary... 13056 lt_tmp_lt_search_path_spec= 13057 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13058 # ...but if some path component already ends with the multilib dir we assume 13059 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13060 case "$lt_multi_os_dir; $lt_search_path_spec " in 13061 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13062 lt_multi_os_dir= 13063 ;; 13064 esac 13065 for lt_sys_path in $lt_search_path_spec; do 13066 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13067 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13068 elif test -n "$lt_multi_os_dir"; then 13069 test -d "$lt_sys_path" && \ 13070 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13071 fi 13072 done 13073 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13074BEGIN {RS = " "; FS = "/|\n";} { 13075 lt_foo = ""; 13076 lt_count = 0; 13077 for (lt_i = NF; lt_i > 0; lt_i--) { 13078 if ($lt_i != "" && $lt_i != ".") { 13079 if ($lt_i == "..") { 13080 lt_count++; 13081 } else { 13082 if (lt_count == 0) { 13083 lt_foo = "/" $lt_i lt_foo; 13084 } else { 13085 lt_count--; 13086 } 13087 } 13088 } 13089 } 13090 if (lt_foo != "") { lt_freq[lt_foo]++; } 13091 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13092}'` 13093 # AWK program above erroneously prepends '/' to C:/dos/paths 13094 # for these hosts. 13095 case $host_os in 13096 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13097 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13098 esac 13099 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13100else 13101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13102fi 13103library_names_spec= 13104libname_spec='lib$name' 13105soname_spec= 13106shrext_cmds=.so 13107postinstall_cmds= 13108postuninstall_cmds= 13109finish_cmds= 13110finish_eval= 13111shlibpath_var= 13112shlibpath_overrides_runpath=unknown 13113version_type=none 13114dynamic_linker="$host_os ld.so" 13115sys_lib_dlsearch_path_spec="/lib /usr/lib" 13116need_lib_prefix=unknown 13117hardcode_into_libs=no 13118 13119# when you set need_version to no, make sure it does not cause -set_version 13120# flags to be left without arguments 13121need_version=unknown 13122 13123 13124 13125case $host_os in 13126aix3*) 13127 version_type=linux # correct to gnu/linux during the next big refactor 13128 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13129 shlibpath_var=LIBPATH 13130 13131 # AIX 3 has no versioning support, so we append a major version to the name. 13132 soname_spec='$libname$release$shared_ext$major' 13133 ;; 13134 13135aix[4-9]*) 13136 version_type=linux # correct to gnu/linux during the next big refactor 13137 need_lib_prefix=no 13138 need_version=no 13139 hardcode_into_libs=yes 13140 if test ia64 = "$host_cpu"; then 13141 # AIX 5 supports IA64 13142 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13143 shlibpath_var=LD_LIBRARY_PATH 13144 else 13145 # With GCC up to 2.95.x, collect2 would create an import file 13146 # for dependence libraries. The import file would start with 13147 # the line '#! .'. This would cause the generated library to 13148 # depend on '.', always an invalid library. This was fixed in 13149 # development snapshots of GCC prior to 3.0. 13150 case $host_os in 13151 aix4 | aix4.[01] | aix4.[01].*) 13152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13153 echo ' yes ' 13154 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13155 : 13156 else 13157 can_build_shared=no 13158 fi 13159 ;; 13160 esac 13161 # Using Import Files as archive members, it is possible to support 13162 # filename-based versioning of shared library archives on AIX. While 13163 # this would work for both with and without runtime linking, it will 13164 # prevent static linking of such archives. So we do filename-based 13165 # shared library versioning with .so extension only, which is used 13166 # when both runtime linking and shared linking is enabled. 13167 # Unfortunately, runtime linking may impact performance, so we do 13168 # not want this to be the default eventually. Also, we use the 13169 # versioned .so libs for executables only if there is the -brtl 13170 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13171 # To allow for filename-based versioning support, we need to create 13172 # libNAME.so.V as an archive file, containing: 13173 # *) an Import File, referring to the versioned filename of the 13174 # archive as well as the shared archive member, telling the 13175 # bitwidth (32 or 64) of that shared object, and providing the 13176 # list of exported symbols of that shared object, eventually 13177 # decorated with the 'weak' keyword 13178 # *) the shared object with the F_LOADONLY flag set, to really avoid 13179 # it being seen by the linker. 13180 # At run time we better use the real file rather than another symlink, 13181 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13182 13183 case $with_aix_soname,$aix_use_runtimelinking in 13184 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13185 # soname into executable. Probably we can add versioning support to 13186 # collect2, so additional links can be useful in future. 13187 aix,yes) # traditional libtool 13188 dynamic_linker='AIX unversionable lib.so' 13189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13190 # instead of lib<name>.a to let people know that these are not 13191 # typical AIX shared libraries. 13192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13193 ;; 13194 aix,no) # traditional AIX only 13195 dynamic_linker='AIX lib.a(lib.so.V)' 13196 # We preserve .a as extension for shared libraries through AIX4.2 13197 # and later when we are not doing run time linking. 13198 library_names_spec='$libname$release.a $libname.a' 13199 soname_spec='$libname$release$shared_ext$major' 13200 ;; 13201 svr4,*) # full svr4 only 13202 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13203 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13204 # We do not specify a path in Import Files, so LIBPATH fires. 13205 shlibpath_overrides_runpath=yes 13206 ;; 13207 *,yes) # both, prefer svr4 13208 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13209 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13210 # unpreferred sharedlib libNAME.a needs extra handling 13211 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"' 13212 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"' 13213 # We do not specify a path in Import Files, so LIBPATH fires. 13214 shlibpath_overrides_runpath=yes 13215 ;; 13216 *,no) # both, prefer aix 13217 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13218 library_names_spec='$libname$release.a $libname.a' 13219 soname_spec='$libname$release$shared_ext$major' 13220 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13221 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)' 13222 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"' 13223 ;; 13224 esac 13225 shlibpath_var=LIBPATH 13226 fi 13227 ;; 13228 13229amigaos*) 13230 case $host_cpu in 13231 powerpc) 13232 # Since July 2007 AmigaOS4 officially supports .so libraries. 13233 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13235 ;; 13236 m68k) 13237 library_names_spec='$libname.ixlibrary $libname.a' 13238 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13239 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' 13240 ;; 13241 esac 13242 ;; 13243 13244beos*) 13245 library_names_spec='$libname$shared_ext' 13246 dynamic_linker="$host_os ld.so" 13247 shlibpath_var=LIBRARY_PATH 13248 ;; 13249 13250bsdi[45]*) 13251 version_type=linux # correct to gnu/linux during the next big refactor 13252 need_version=no 13253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13254 soname_spec='$libname$release$shared_ext$major' 13255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13256 shlibpath_var=LD_LIBRARY_PATH 13257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13259 # the default ld.so.conf also contains /usr/contrib/lib and 13260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13261 # libtool to hard-code these into programs 13262 ;; 13263 13264cygwin* | mingw* | pw32* | cegcc*) 13265 version_type=windows 13266 shrext_cmds=.dll 13267 need_version=no 13268 need_lib_prefix=no 13269 13270 case $GCC,$cc_basename in 13271 yes,*) 13272 # gcc 13273 library_names_spec='$libname.dll.a' 13274 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13275 postinstall_cmds='base_file=`basename \$file`~ 13276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13277 dldir=$destdir/`dirname \$dlpath`~ 13278 test -d \$dldir || mkdir -p \$dldir~ 13279 $install_prog $dir/$dlname \$dldir/$dlname~ 13280 chmod a+x \$dldir/$dlname~ 13281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13283 fi' 13284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13285 dlpath=$dir/\$dldll~ 13286 $RM \$dlpath' 13287 shlibpath_overrides_runpath=yes 13288 13289 case $host_os in 13290 cygwin*) 13291 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13292 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13293 13294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13295 ;; 13296 mingw* | cegcc*) 13297 # MinGW DLLs use traditional 'lib' prefix 13298 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13299 ;; 13300 pw32*) 13301 # pw32 DLLs use 'pw' prefix rather than 'lib' 13302 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13303 ;; 13304 esac 13305 dynamic_linker='Win32 ld.exe' 13306 ;; 13307 13308 *,cl*) 13309 # Native MSVC 13310 libname_spec='$name' 13311 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13312 library_names_spec='$libname.dll.lib' 13313 13314 case $build_os in 13315 mingw*) 13316 sys_lib_search_path_spec= 13317 lt_save_ifs=$IFS 13318 IFS=';' 13319 for lt_path in $LIB 13320 do 13321 IFS=$lt_save_ifs 13322 # Let DOS variable expansion print the short 8.3 style file name. 13323 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13324 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13325 done 13326 IFS=$lt_save_ifs 13327 # Convert to MSYS style. 13328 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13329 ;; 13330 cygwin*) 13331 # Convert to unix form, then to dos form, then back to unix form 13332 # but this time dos style (no spaces!) so that the unix form looks 13333 # like /cygdrive/c/PROGRA~1:/cygdr... 13334 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13335 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13336 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13337 ;; 13338 *) 13339 sys_lib_search_path_spec=$LIB 13340 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13341 # It is most probably a Windows format PATH. 13342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13343 else 13344 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13345 fi 13346 # FIXME: find the short name or the path components, as spaces are 13347 # common. (e.g. "Program Files" -> "PROGRA~1") 13348 ;; 13349 esac 13350 13351 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13352 postinstall_cmds='base_file=`basename \$file`~ 13353 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13354 dldir=$destdir/`dirname \$dlpath`~ 13355 test -d \$dldir || mkdir -p \$dldir~ 13356 $install_prog $dir/$dlname \$dldir/$dlname' 13357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13358 dlpath=$dir/\$dldll~ 13359 $RM \$dlpath' 13360 shlibpath_overrides_runpath=yes 13361 dynamic_linker='Win32 link.exe' 13362 ;; 13363 13364 *) 13365 # Assume MSVC wrapper 13366 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13367 dynamic_linker='Win32 ld.exe' 13368 ;; 13369 esac 13370 # FIXME: first we should search . and the directory the executable is in 13371 shlibpath_var=PATH 13372 ;; 13373 13374darwin* | rhapsody*) 13375 dynamic_linker="$host_os dyld" 13376 version_type=darwin 13377 need_lib_prefix=no 13378 need_version=no 13379 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13380 soname_spec='$libname$release$major$shared_ext' 13381 shlibpath_overrides_runpath=yes 13382 shlibpath_var=DYLD_LIBRARY_PATH 13383 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13384 13385 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13386 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13387 ;; 13388 13389dgux*) 13390 version_type=linux # correct to gnu/linux during the next big refactor 13391 need_lib_prefix=no 13392 need_version=no 13393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13394 soname_spec='$libname$release$shared_ext$major' 13395 shlibpath_var=LD_LIBRARY_PATH 13396 ;; 13397 13398freebsd* | dragonfly*) 13399 # DragonFly does not have aout. When/if they implement a new 13400 # versioning mechanism, adjust this. 13401 if test -x /usr/bin/objformat; then 13402 objformat=`/usr/bin/objformat` 13403 else 13404 case $host_os in 13405 freebsd[23].*) objformat=aout ;; 13406 *) objformat=elf ;; 13407 esac 13408 fi 13409 version_type=freebsd-$objformat 13410 case $version_type in 13411 freebsd-elf*) 13412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13413 soname_spec='$libname$release$shared_ext$major' 13414 need_version=no 13415 need_lib_prefix=no 13416 ;; 13417 freebsd-*) 13418 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13419 need_version=yes 13420 ;; 13421 esac 13422 shlibpath_var=LD_LIBRARY_PATH 13423 case $host_os in 13424 freebsd2.*) 13425 shlibpath_overrides_runpath=yes 13426 ;; 13427 freebsd3.[01]* | freebsdelf3.[01]*) 13428 shlibpath_overrides_runpath=yes 13429 hardcode_into_libs=yes 13430 ;; 13431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13433 shlibpath_overrides_runpath=no 13434 hardcode_into_libs=yes 13435 ;; 13436 *) # from 4.6 on, and DragonFly 13437 shlibpath_overrides_runpath=yes 13438 hardcode_into_libs=yes 13439 ;; 13440 esac 13441 ;; 13442 13443haiku*) 13444 version_type=linux # correct to gnu/linux during the next big refactor 13445 need_lib_prefix=no 13446 need_version=no 13447 dynamic_linker="$host_os runtime_loader" 13448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13449 soname_spec='$libname$release$shared_ext$major' 13450 shlibpath_var=LIBRARY_PATH 13451 shlibpath_overrides_runpath=no 13452 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13453 hardcode_into_libs=yes 13454 ;; 13455 13456hpux9* | hpux10* | hpux11*) 13457 # Give a soname corresponding to the major version so that dld.sl refuses to 13458 # link against other versions. 13459 version_type=sunos 13460 need_lib_prefix=no 13461 need_version=no 13462 case $host_cpu in 13463 ia64*) 13464 shrext_cmds='.so' 13465 hardcode_into_libs=yes 13466 dynamic_linker="$host_os dld.so" 13467 shlibpath_var=LD_LIBRARY_PATH 13468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13470 soname_spec='$libname$release$shared_ext$major' 13471 if test 32 = "$HPUX_IA64_MODE"; then 13472 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13473 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13474 else 13475 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13476 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13477 fi 13478 ;; 13479 hppa*64*) 13480 shrext_cmds='.sl' 13481 hardcode_into_libs=yes 13482 dynamic_linker="$host_os dld.sl" 13483 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13484 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13486 soname_spec='$libname$release$shared_ext$major' 13487 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13489 ;; 13490 *) 13491 shrext_cmds='.sl' 13492 dynamic_linker="$host_os dld.sl" 13493 shlibpath_var=SHLIB_PATH 13494 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13496 soname_spec='$libname$release$shared_ext$major' 13497 ;; 13498 esac 13499 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13500 postinstall_cmds='chmod 555 $lib' 13501 # or fails outright, so override atomically: 13502 install_override_mode=555 13503 ;; 13504 13505interix[3-9]*) 13506 version_type=linux # correct to gnu/linux during the next big refactor 13507 need_lib_prefix=no 13508 need_version=no 13509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13510 soname_spec='$libname$release$shared_ext$major' 13511 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13512 shlibpath_var=LD_LIBRARY_PATH 13513 shlibpath_overrides_runpath=no 13514 hardcode_into_libs=yes 13515 ;; 13516 13517irix5* | irix6* | nonstopux*) 13518 case $host_os in 13519 nonstopux*) version_type=nonstopux ;; 13520 *) 13521 if test yes = "$lt_cv_prog_gnu_ld"; then 13522 version_type=linux # correct to gnu/linux during the next big refactor 13523 else 13524 version_type=irix 13525 fi ;; 13526 esac 13527 need_lib_prefix=no 13528 need_version=no 13529 soname_spec='$libname$release$shared_ext$major' 13530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13531 case $host_os in 13532 irix5* | nonstopux*) 13533 libsuff= shlibsuff= 13534 ;; 13535 *) 13536 case $LD in # libtool.m4 will add one of these switches to LD 13537 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13538 libsuff= shlibsuff= libmagic=32-bit;; 13539 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13540 libsuff=32 shlibsuff=N32 libmagic=N32;; 13541 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13542 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13543 *) libsuff= shlibsuff= libmagic=never-match;; 13544 esac 13545 ;; 13546 esac 13547 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13548 shlibpath_overrides_runpath=no 13549 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13550 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13551 hardcode_into_libs=yes 13552 ;; 13553 13554# No shared lib support for Linux oldld, aout, or coff. 13555linux*oldld* | linux*aout* | linux*coff*) 13556 dynamic_linker=no 13557 ;; 13558 13559linux*android*) 13560 version_type=none # Android doesn't support versioned libraries. 13561 need_lib_prefix=no 13562 need_version=no 13563 library_names_spec='$libname$release$shared_ext' 13564 soname_spec='$libname$release$shared_ext' 13565 finish_cmds= 13566 shlibpath_var=LD_LIBRARY_PATH 13567 shlibpath_overrides_runpath=yes 13568 13569 # This implies no fast_install, which is unacceptable. 13570 # Some rework will be needed to allow for fast_install 13571 # before this can be enabled. 13572 hardcode_into_libs=yes 13573 13574 dynamic_linker='Android linker' 13575 # Don't embed -rpath directories since the linker doesn't support them. 13576 hardcode_libdir_flag_spec='-L$libdir' 13577 ;; 13578 13579# This must be glibc/ELF. 13580linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13581 version_type=linux # correct to gnu/linux during the next big refactor 13582 need_lib_prefix=no 13583 need_version=no 13584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13585 soname_spec='$libname$release$shared_ext$major' 13586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13587 shlibpath_var=LD_LIBRARY_PATH 13588 shlibpath_overrides_runpath=no 13589 13590 # Some binutils ld are patched to set DT_RUNPATH 13591 if test ${lt_cv_shlibpath_overrides_runpath+y} 13592then : 13593 printf %s "(cached) " >&6 13594else $as_nop 13595 lt_cv_shlibpath_overrides_runpath=no 13596 save_LDFLAGS=$LDFLAGS 13597 save_libdir=$libdir 13598 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13599 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13601/* end confdefs.h. */ 13602 13603int 13604main (void) 13605{ 13606 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611if ac_fn_c_try_link "$LINENO" 13612then : 13613 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 13614then : 13615 lt_cv_shlibpath_overrides_runpath=yes 13616fi 13617fi 13618rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13619 conftest$ac_exeext conftest.$ac_ext 13620 LDFLAGS=$save_LDFLAGS 13621 libdir=$save_libdir 13622 13623fi 13624 13625 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13626 13627 # This implies no fast_install, which is unacceptable. 13628 # Some rework will be needed to allow for fast_install 13629 # before this can be enabled. 13630 hardcode_into_libs=yes 13631 13632 # Ideally, we could use ldconfig to report *all* directores which are 13633 # searched for libraries, however this is still not possible. Aside from not 13634 # being certain /sbin/ldconfig is available, command 13635 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13636 # even though it is searched at run-time. Try to do the best guess by 13637 # appending ld.so.conf contents (and includes) to the search path. 13638 if test -f /etc/ld.so.conf; then 13639 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' ' '` 13640 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13641 fi 13642 13643 # We used to test for /lib/ld.so.1 and disable shared libraries on 13644 # powerpc, because MkLinux only supported shared libraries with the 13645 # GNU dynamic linker. Since this was broken with cross compilers, 13646 # most powerpc-linux boxes support dynamic linking these days and 13647 # people can always --disable-shared, the test was removed, and we 13648 # assume the GNU/Linux dynamic linker is in use. 13649 dynamic_linker='GNU/Linux ld.so' 13650 ;; 13651 13652netbsdelf*-gnu) 13653 version_type=linux 13654 need_lib_prefix=no 13655 need_version=no 13656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13657 soname_spec='${libname}${release}${shared_ext}$major' 13658 shlibpath_var=LD_LIBRARY_PATH 13659 shlibpath_overrides_runpath=no 13660 hardcode_into_libs=yes 13661 dynamic_linker='NetBSD ld.elf_so' 13662 ;; 13663 13664netbsd*) 13665 version_type=sunos 13666 need_lib_prefix=no 13667 need_version=no 13668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13669 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13671 dynamic_linker='NetBSD (a.out) ld.so' 13672 else 13673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13674 soname_spec='$libname$release$shared_ext$major' 13675 dynamic_linker='NetBSD ld.elf_so' 13676 fi 13677 shlibpath_var=LD_LIBRARY_PATH 13678 shlibpath_overrides_runpath=yes 13679 hardcode_into_libs=yes 13680 ;; 13681 13682newsos6) 13683 version_type=linux # correct to gnu/linux during the next big refactor 13684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13685 shlibpath_var=LD_LIBRARY_PATH 13686 shlibpath_overrides_runpath=yes 13687 ;; 13688 13689*nto* | *qnx*) 13690 version_type=qnx 13691 need_lib_prefix=no 13692 need_version=no 13693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13694 soname_spec='$libname$release$shared_ext$major' 13695 shlibpath_var=LD_LIBRARY_PATH 13696 shlibpath_overrides_runpath=no 13697 hardcode_into_libs=yes 13698 dynamic_linker='ldqnx.so' 13699 ;; 13700 13701openbsd* | bitrig*) 13702 version_type=sunos 13703 sys_lib_dlsearch_path_spec=/usr/lib 13704 need_lib_prefix=no 13705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13706 need_version=no 13707 else 13708 need_version=yes 13709 fi 13710 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13712 shlibpath_var=LD_LIBRARY_PATH 13713 shlibpath_overrides_runpath=yes 13714 ;; 13715 13716os2*) 13717 libname_spec='$name' 13718 version_type=windows 13719 shrext_cmds=.dll 13720 need_version=no 13721 need_lib_prefix=no 13722 # OS/2 can only load a DLL with a base name of 8 characters or less. 13723 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13724 v=$($ECHO $release$versuffix | tr -d .-); 13725 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13726 $ECHO $n$v`$shared_ext' 13727 library_names_spec='${libname}_dll.$libext' 13728 dynamic_linker='OS/2 ld.exe' 13729 shlibpath_var=BEGINLIBPATH 13730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13732 postinstall_cmds='base_file=`basename \$file`~ 13733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13734 dldir=$destdir/`dirname \$dlpath`~ 13735 test -d \$dldir || mkdir -p \$dldir~ 13736 $install_prog $dir/$dlname \$dldir/$dlname~ 13737 chmod a+x \$dldir/$dlname~ 13738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13739 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13740 fi' 13741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13742 dlpath=$dir/\$dldll~ 13743 $RM \$dlpath' 13744 ;; 13745 13746osf3* | osf4* | osf5*) 13747 version_type=osf 13748 need_lib_prefix=no 13749 need_version=no 13750 soname_spec='$libname$release$shared_ext$major' 13751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13752 shlibpath_var=LD_LIBRARY_PATH 13753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13755 ;; 13756 13757rdos*) 13758 dynamic_linker=no 13759 ;; 13760 13761solaris*) 13762 version_type=linux # correct to gnu/linux during the next big refactor 13763 need_lib_prefix=no 13764 need_version=no 13765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13766 soname_spec='$libname$release$shared_ext$major' 13767 shlibpath_var=LD_LIBRARY_PATH 13768 shlibpath_overrides_runpath=yes 13769 hardcode_into_libs=yes 13770 # ldd complains unless libraries are executable 13771 postinstall_cmds='chmod +x $lib' 13772 ;; 13773 13774sunos4*) 13775 version_type=sunos 13776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13778 shlibpath_var=LD_LIBRARY_PATH 13779 shlibpath_overrides_runpath=yes 13780 if test yes = "$with_gnu_ld"; then 13781 need_lib_prefix=no 13782 fi 13783 need_version=yes 13784 ;; 13785 13786sysv4 | sysv4.3*) 13787 version_type=linux # correct to gnu/linux during the next big refactor 13788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13789 soname_spec='$libname$release$shared_ext$major' 13790 shlibpath_var=LD_LIBRARY_PATH 13791 case $host_vendor in 13792 sni) 13793 shlibpath_overrides_runpath=no 13794 need_lib_prefix=no 13795 runpath_var=LD_RUN_PATH 13796 ;; 13797 siemens) 13798 need_lib_prefix=no 13799 ;; 13800 motorola) 13801 need_lib_prefix=no 13802 need_version=no 13803 shlibpath_overrides_runpath=no 13804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13805 ;; 13806 esac 13807 ;; 13808 13809sysv4*MP*) 13810 if test -d /usr/nec; then 13811 version_type=linux # correct to gnu/linux during the next big refactor 13812 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13813 soname_spec='$libname$shared_ext.$major' 13814 shlibpath_var=LD_LIBRARY_PATH 13815 fi 13816 ;; 13817 13818sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13819 version_type=sco 13820 need_lib_prefix=no 13821 need_version=no 13822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13823 soname_spec='$libname$release$shared_ext$major' 13824 shlibpath_var=LD_LIBRARY_PATH 13825 shlibpath_overrides_runpath=yes 13826 hardcode_into_libs=yes 13827 if test yes = "$with_gnu_ld"; then 13828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13829 else 13830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13831 case $host_os in 13832 sco3.2v5*) 13833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13834 ;; 13835 esac 13836 fi 13837 sys_lib_dlsearch_path_spec='/usr/lib' 13838 ;; 13839 13840tpf*) 13841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13842 version_type=linux # correct to gnu/linux during the next big refactor 13843 need_lib_prefix=no 13844 need_version=no 13845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13846 shlibpath_var=LD_LIBRARY_PATH 13847 shlibpath_overrides_runpath=no 13848 hardcode_into_libs=yes 13849 ;; 13850 13851uts4*) 13852 version_type=linux # correct to gnu/linux during the next big refactor 13853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13854 soname_spec='$libname$release$shared_ext$major' 13855 shlibpath_var=LD_LIBRARY_PATH 13856 ;; 13857 13858*) 13859 dynamic_linker=no 13860 ;; 13861esac 13862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13863printf "%s\n" "$dynamic_linker" >&6; } 13864test no = "$dynamic_linker" && can_build_shared=no 13865 13866variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13867if test yes = "$GCC"; then 13868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13869fi 13870 13871if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13872 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13873fi 13874 13875if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13876 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13877fi 13878 13879# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13880configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13881 13882# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13883func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13884 13885# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13886configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13985printf %s "checking how to hardcode library paths into programs... " >&6; } 13986hardcode_action= 13987if test -n "$hardcode_libdir_flag_spec" || 13988 test -n "$runpath_var" || 13989 test yes = "$hardcode_automatic"; then 13990 13991 # We can hardcode non-existent directories. 13992 if test no != "$hardcode_direct" && 13993 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13994 # have to relink, otherwise we might link with an installed library 13995 # when we should be linking with a yet-to-be-installed one 13996 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13997 test no != "$hardcode_minus_L"; then 13998 # Linking always hardcodes the temporary library directory. 13999 hardcode_action=relink 14000 else 14001 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14002 hardcode_action=immediate 14003 fi 14004else 14005 # We cannot hardcode anything, or else we can only hardcode existing 14006 # directories. 14007 hardcode_action=unsupported 14008fi 14009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14010printf "%s\n" "$hardcode_action" >&6; } 14011 14012if test relink = "$hardcode_action" || 14013 test yes = "$inherit_rpath"; then 14014 # Fast installation is not supported 14015 enable_fast_install=no 14016elif test yes = "$shlibpath_overrides_runpath" || 14017 test no = "$enable_shared"; then 14018 # Fast installation is not necessary 14019 enable_fast_install=needless 14020fi 14021 14022 14023 14024 14025 14026 14027 if test yes != "$enable_dlopen"; then 14028 enable_dlopen=unknown 14029 enable_dlopen_self=unknown 14030 enable_dlopen_self_static=unknown 14031else 14032 lt_cv_dlopen=no 14033 lt_cv_dlopen_libs= 14034 14035 case $host_os in 14036 beos*) 14037 lt_cv_dlopen=load_add_on 14038 lt_cv_dlopen_libs= 14039 lt_cv_dlopen_self=yes 14040 ;; 14041 14042 mingw* | pw32* | cegcc*) 14043 lt_cv_dlopen=LoadLibrary 14044 lt_cv_dlopen_libs= 14045 ;; 14046 14047 cygwin*) 14048 lt_cv_dlopen=dlopen 14049 lt_cv_dlopen_libs= 14050 ;; 14051 14052 darwin*) 14053 # if libdl is installed we need to link against it 14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14055printf %s "checking for dlopen in -ldl... " >&6; } 14056if test ${ac_cv_lib_dl_dlopen+y} 14057then : 14058 printf %s "(cached) " >&6 14059else $as_nop 14060 ac_check_lib_save_LIBS=$LIBS 14061LIBS="-ldl $LIBS" 14062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14063/* end confdefs.h. */ 14064 14065/* Override any GCC internal prototype to avoid an error. 14066 Use char because int might match the return type of a GCC 14067 builtin and then its argument prototype would still apply. */ 14068char dlopen (); 14069int 14070main (void) 14071{ 14072return dlopen (); 14073 ; 14074 return 0; 14075} 14076_ACEOF 14077if ac_fn_c_try_link "$LINENO" 14078then : 14079 ac_cv_lib_dl_dlopen=yes 14080else $as_nop 14081 ac_cv_lib_dl_dlopen=no 14082fi 14083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14084 conftest$ac_exeext conftest.$ac_ext 14085LIBS=$ac_check_lib_save_LIBS 14086fi 14087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14088printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 14089if test "x$ac_cv_lib_dl_dlopen" = xyes 14090then : 14091 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14092else $as_nop 14093 14094 lt_cv_dlopen=dyld 14095 lt_cv_dlopen_libs= 14096 lt_cv_dlopen_self=yes 14097 14098fi 14099 14100 ;; 14101 14102 tpf*) 14103 # Don't try to run any link tests for TPF. We know it's impossible 14104 # because TPF is a cross-compiler, and we know how we open DSOs. 14105 lt_cv_dlopen=dlopen 14106 lt_cv_dlopen_libs= 14107 lt_cv_dlopen_self=no 14108 ;; 14109 14110 *) 14111 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14112if test "x$ac_cv_func_shl_load" = xyes 14113then : 14114 lt_cv_dlopen=shl_load 14115else $as_nop 14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14117printf %s "checking for shl_load in -ldld... " >&6; } 14118if test ${ac_cv_lib_dld_shl_load+y} 14119then : 14120 printf %s "(cached) " >&6 14121else $as_nop 14122 ac_check_lib_save_LIBS=$LIBS 14123LIBS="-ldld $LIBS" 14124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14125/* end confdefs.h. */ 14126 14127/* Override any GCC internal prototype to avoid an error. 14128 Use char because int might match the return type of a GCC 14129 builtin and then its argument prototype would still apply. */ 14130char shl_load (); 14131int 14132main (void) 14133{ 14134return shl_load (); 14135 ; 14136 return 0; 14137} 14138_ACEOF 14139if ac_fn_c_try_link "$LINENO" 14140then : 14141 ac_cv_lib_dld_shl_load=yes 14142else $as_nop 14143 ac_cv_lib_dld_shl_load=no 14144fi 14145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14146 conftest$ac_exeext conftest.$ac_ext 14147LIBS=$ac_check_lib_save_LIBS 14148fi 14149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14150printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 14151if test "x$ac_cv_lib_dld_shl_load" = xyes 14152then : 14153 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14154else $as_nop 14155 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14156if test "x$ac_cv_func_dlopen" = xyes 14157then : 14158 lt_cv_dlopen=dlopen 14159else $as_nop 14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14161printf %s "checking for dlopen in -ldl... " >&6; } 14162if test ${ac_cv_lib_dl_dlopen+y} 14163then : 14164 printf %s "(cached) " >&6 14165else $as_nop 14166 ac_check_lib_save_LIBS=$LIBS 14167LIBS="-ldl $LIBS" 14168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14169/* end confdefs.h. */ 14170 14171/* Override any GCC internal prototype to avoid an error. 14172 Use char because int might match the return type of a GCC 14173 builtin and then its argument prototype would still apply. */ 14174char dlopen (); 14175int 14176main (void) 14177{ 14178return dlopen (); 14179 ; 14180 return 0; 14181} 14182_ACEOF 14183if ac_fn_c_try_link "$LINENO" 14184then : 14185 ac_cv_lib_dl_dlopen=yes 14186else $as_nop 14187 ac_cv_lib_dl_dlopen=no 14188fi 14189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14190 conftest$ac_exeext conftest.$ac_ext 14191LIBS=$ac_check_lib_save_LIBS 14192fi 14193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14194printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 14195if test "x$ac_cv_lib_dl_dlopen" = xyes 14196then : 14197 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14198else $as_nop 14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14200printf %s "checking for dlopen in -lsvld... " >&6; } 14201if test ${ac_cv_lib_svld_dlopen+y} 14202then : 14203 printf %s "(cached) " >&6 14204else $as_nop 14205 ac_check_lib_save_LIBS=$LIBS 14206LIBS="-lsvld $LIBS" 14207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208/* end confdefs.h. */ 14209 14210/* Override any GCC internal prototype to avoid an error. 14211 Use char because int might match the return type of a GCC 14212 builtin and then its argument prototype would still apply. */ 14213char dlopen (); 14214int 14215main (void) 14216{ 14217return dlopen (); 14218 ; 14219 return 0; 14220} 14221_ACEOF 14222if ac_fn_c_try_link "$LINENO" 14223then : 14224 ac_cv_lib_svld_dlopen=yes 14225else $as_nop 14226 ac_cv_lib_svld_dlopen=no 14227fi 14228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14229 conftest$ac_exeext conftest.$ac_ext 14230LIBS=$ac_check_lib_save_LIBS 14231fi 14232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14233printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 14234if test "x$ac_cv_lib_svld_dlopen" = xyes 14235then : 14236 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14237else $as_nop 14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14239printf %s "checking for dld_link in -ldld... " >&6; } 14240if test ${ac_cv_lib_dld_dld_link+y} 14241then : 14242 printf %s "(cached) " >&6 14243else $as_nop 14244 ac_check_lib_save_LIBS=$LIBS 14245LIBS="-ldld $LIBS" 14246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14247/* end confdefs.h. */ 14248 14249/* Override any GCC internal prototype to avoid an error. 14250 Use char because int might match the return type of a GCC 14251 builtin and then its argument prototype would still apply. */ 14252char dld_link (); 14253int 14254main (void) 14255{ 14256return dld_link (); 14257 ; 14258 return 0; 14259} 14260_ACEOF 14261if ac_fn_c_try_link "$LINENO" 14262then : 14263 ac_cv_lib_dld_dld_link=yes 14264else $as_nop 14265 ac_cv_lib_dld_dld_link=no 14266fi 14267rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14268 conftest$ac_exeext conftest.$ac_ext 14269LIBS=$ac_check_lib_save_LIBS 14270fi 14271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14272printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 14273if test "x$ac_cv_lib_dld_dld_link" = xyes 14274then : 14275 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14276fi 14277 14278 14279fi 14280 14281 14282fi 14283 14284 14285fi 14286 14287 14288fi 14289 14290 14291fi 14292 14293 ;; 14294 esac 14295 14296 if test no = "$lt_cv_dlopen"; then 14297 enable_dlopen=no 14298 else 14299 enable_dlopen=yes 14300 fi 14301 14302 case $lt_cv_dlopen in 14303 dlopen) 14304 save_CPPFLAGS=$CPPFLAGS 14305 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14306 14307 save_LDFLAGS=$LDFLAGS 14308 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14309 14310 save_LIBS=$LIBS 14311 LIBS="$lt_cv_dlopen_libs $LIBS" 14312 14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14314printf %s "checking whether a program can dlopen itself... " >&6; } 14315if test ${lt_cv_dlopen_self+y} 14316then : 14317 printf %s "(cached) " >&6 14318else $as_nop 14319 if test yes = "$cross_compiling"; then : 14320 lt_cv_dlopen_self=cross 14321else 14322 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14323 lt_status=$lt_dlunknown 14324 cat > conftest.$ac_ext <<_LT_EOF 14325#line $LINENO "configure" 14326#include "confdefs.h" 14327 14328#if HAVE_DLFCN_H 14329#include <dlfcn.h> 14330#endif 14331 14332#include <stdio.h> 14333 14334#ifdef RTLD_GLOBAL 14335# define LT_DLGLOBAL RTLD_GLOBAL 14336#else 14337# ifdef DL_GLOBAL 14338# define LT_DLGLOBAL DL_GLOBAL 14339# else 14340# define LT_DLGLOBAL 0 14341# endif 14342#endif 14343 14344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14345 find out it does not work in some platform. */ 14346#ifndef LT_DLLAZY_OR_NOW 14347# ifdef RTLD_LAZY 14348# define LT_DLLAZY_OR_NOW RTLD_LAZY 14349# else 14350# ifdef DL_LAZY 14351# define LT_DLLAZY_OR_NOW DL_LAZY 14352# else 14353# ifdef RTLD_NOW 14354# define LT_DLLAZY_OR_NOW RTLD_NOW 14355# else 14356# ifdef DL_NOW 14357# define LT_DLLAZY_OR_NOW DL_NOW 14358# else 14359# define LT_DLLAZY_OR_NOW 0 14360# endif 14361# endif 14362# endif 14363# endif 14364#endif 14365 14366/* When -fvisibility=hidden is used, assume the code has been annotated 14367 correspondingly for the symbols needed. */ 14368#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14369int fnord () __attribute__((visibility("default"))); 14370#endif 14371 14372int fnord () { return 42; } 14373int main () 14374{ 14375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14376 int status = $lt_dlunknown; 14377 14378 if (self) 14379 { 14380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14381 else 14382 { 14383 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14384 else puts (dlerror ()); 14385 } 14386 /* dlclose (self); */ 14387 } 14388 else 14389 puts (dlerror ()); 14390 14391 return status; 14392} 14393_LT_EOF 14394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14395 (eval $ac_link) 2>&5 14396 ac_status=$? 14397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14398 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14399 (./conftest; exit; ) >&5 2>/dev/null 14400 lt_status=$? 14401 case x$lt_status in 14402 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14403 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14404 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14405 esac 14406 else : 14407 # compilation failed 14408 lt_cv_dlopen_self=no 14409 fi 14410fi 14411rm -fr conftest* 14412 14413 14414fi 14415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14416printf "%s\n" "$lt_cv_dlopen_self" >&6; } 14417 14418 if test yes = "$lt_cv_dlopen_self"; then 14419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14421printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 14422if test ${lt_cv_dlopen_self_static+y} 14423then : 14424 printf %s "(cached) " >&6 14425else $as_nop 14426 if test yes = "$cross_compiling"; then : 14427 lt_cv_dlopen_self_static=cross 14428else 14429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14430 lt_status=$lt_dlunknown 14431 cat > conftest.$ac_ext <<_LT_EOF 14432#line $LINENO "configure" 14433#include "confdefs.h" 14434 14435#if HAVE_DLFCN_H 14436#include <dlfcn.h> 14437#endif 14438 14439#include <stdio.h> 14440 14441#ifdef RTLD_GLOBAL 14442# define LT_DLGLOBAL RTLD_GLOBAL 14443#else 14444# ifdef DL_GLOBAL 14445# define LT_DLGLOBAL DL_GLOBAL 14446# else 14447# define LT_DLGLOBAL 0 14448# endif 14449#endif 14450 14451/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14452 find out it does not work in some platform. */ 14453#ifndef LT_DLLAZY_OR_NOW 14454# ifdef RTLD_LAZY 14455# define LT_DLLAZY_OR_NOW RTLD_LAZY 14456# else 14457# ifdef DL_LAZY 14458# define LT_DLLAZY_OR_NOW DL_LAZY 14459# else 14460# ifdef RTLD_NOW 14461# define LT_DLLAZY_OR_NOW RTLD_NOW 14462# else 14463# ifdef DL_NOW 14464# define LT_DLLAZY_OR_NOW DL_NOW 14465# else 14466# define LT_DLLAZY_OR_NOW 0 14467# endif 14468# endif 14469# endif 14470# endif 14471#endif 14472 14473/* When -fvisibility=hidden is used, assume the code has been annotated 14474 correspondingly for the symbols needed. */ 14475#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14476int fnord () __attribute__((visibility("default"))); 14477#endif 14478 14479int fnord () { return 42; } 14480int main () 14481{ 14482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14483 int status = $lt_dlunknown; 14484 14485 if (self) 14486 { 14487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14488 else 14489 { 14490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14491 else puts (dlerror ()); 14492 } 14493 /* dlclose (self); */ 14494 } 14495 else 14496 puts (dlerror ()); 14497 14498 return status; 14499} 14500_LT_EOF 14501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14502 (eval $ac_link) 2>&5 14503 ac_status=$? 14504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14505 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14506 (./conftest; exit; ) >&5 2>/dev/null 14507 lt_status=$? 14508 case x$lt_status in 14509 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14510 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14511 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14512 esac 14513 else : 14514 # compilation failed 14515 lt_cv_dlopen_self_static=no 14516 fi 14517fi 14518rm -fr conftest* 14519 14520 14521fi 14522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14523printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 14524 fi 14525 14526 CPPFLAGS=$save_CPPFLAGS 14527 LDFLAGS=$save_LDFLAGS 14528 LIBS=$save_LIBS 14529 ;; 14530 esac 14531 14532 case $lt_cv_dlopen_self in 14533 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14534 *) enable_dlopen_self=unknown ;; 14535 esac 14536 14537 case $lt_cv_dlopen_self_static in 14538 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14539 *) enable_dlopen_self_static=unknown ;; 14540 esac 14541fi 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559striplib= 14560old_striplib= 14561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14562printf %s "checking whether stripping libraries is possible... " >&6; } 14563if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14565 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14567printf "%s\n" "yes" >&6; } 14568else 14569# FIXME - insert some real tests, host_os isn't really good enough 14570 case $host_os in 14571 darwin*) 14572 if test -n "$STRIP"; then 14573 striplib="$STRIP -x" 14574 old_striplib="$STRIP -S" 14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14576printf "%s\n" "yes" >&6; } 14577 else 14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14579printf "%s\n" "no" >&6; } 14580 fi 14581 ;; 14582 *) 14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14584printf "%s\n" "no" >&6; } 14585 ;; 14586 esac 14587fi 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 # Report what library types will actually be built 14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14602printf %s "checking if libtool supports shared libraries... " >&6; } 14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14604printf "%s\n" "$can_build_shared" >&6; } 14605 14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14607printf %s "checking whether to build shared libraries... " >&6; } 14608 test no = "$can_build_shared" && enable_shared=no 14609 14610 # On AIX, shared libraries and static libraries use the same namespace, and 14611 # are all built from PIC. 14612 case $host_os in 14613 aix3*) 14614 test yes = "$enable_shared" && enable_static=no 14615 if test -n "$RANLIB"; then 14616 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14617 postinstall_cmds='$RANLIB $lib' 14618 fi 14619 ;; 14620 14621 aix[4-9]*) 14622 if test ia64 != "$host_cpu"; then 14623 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14624 yes,aix,yes) ;; # shared object as lib.so file only 14625 yes,svr4,*) ;; # shared object as lib.so archive member only 14626 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14627 esac 14628 fi 14629 ;; 14630 esac 14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14632printf "%s\n" "$enable_shared" >&6; } 14633 14634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14635printf %s "checking whether to build static libraries... " >&6; } 14636 # Make sure either enable_shared or enable_static is yes. 14637 test yes = "$enable_shared" || enable_static=yes 14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14639printf "%s\n" "$enable_static" >&6; } 14640 14641 14642 14643 14644fi 14645ac_ext=c 14646ac_cpp='$CPP $CPPFLAGS' 14647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14649ac_compiler_gnu=$ac_cv_c_compiler_gnu 14650 14651CC=$lt_save_CC 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 ac_config_commands="$ac_config_commands libtool" 14668 14669 14670 14671 14672# Only expand once: 14673 14674 14675if test "x$with_python" = "xauto"; then 14676 14677 14678 14679 14680 14681 14682 # Find any Python interpreter. 14683 if test -z "$PYTHON"; then 14684 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 14685do 14686 # Extract the first word of "$ac_prog", so it can be a program name with args. 14687set dummy $ac_prog; ac_word=$2 14688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14689printf %s "checking for $ac_word... " >&6; } 14690if test ${ac_cv_path_PYTHON+y} 14691then : 14692 printf %s "(cached) " >&6 14693else $as_nop 14694 case $PYTHON in 14695 [\\/]* | ?:[\\/]*) 14696 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 14697 ;; 14698 *) 14699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14700for as_dir in $PATH 14701do 14702 IFS=$as_save_IFS 14703 case $as_dir in #((( 14704 '') as_dir=./ ;; 14705 */) ;; 14706 *) as_dir=$as_dir/ ;; 14707 esac 14708 for ac_exec_ext in '' $ac_executable_extensions; do 14709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14710 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 14711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14712 break 2 14713 fi 14714done 14715 done 14716IFS=$as_save_IFS 14717 14718 ;; 14719esac 14720fi 14721PYTHON=$ac_cv_path_PYTHON 14722if test -n "$PYTHON"; then 14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 14724printf "%s\n" "$PYTHON" >&6; } 14725else 14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14727printf "%s\n" "no" >&6; } 14728fi 14729 14730 14731 test -n "$PYTHON" && break 14732done 14733test -n "$PYTHON" || PYTHON=":" 14734 14735 fi 14736 am_display_PYTHON=python 14737 14738 14739 if test "$PYTHON" = :; then 14740 : 14741 else 14742 14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 14744printf %s "checking for $am_display_PYTHON version... " >&6; } 14745if test ${am_cv_python_version+y} 14746then : 14747 printf %s "(cached) " >&6 14748else $as_nop 14749 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 14750fi 14751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 14752printf "%s\n" "$am_cv_python_version" >&6; } 14753 PYTHON_VERSION=$am_cv_python_version 14754 14755 14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 14757printf %s "checking for $am_display_PYTHON platform... " >&6; } 14758if test ${am_cv_python_platform+y} 14759then : 14760 printf %s "(cached) " >&6 14761else $as_nop 14762 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 14763fi 14764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 14765printf "%s\n" "$am_cv_python_platform" >&6; } 14766 PYTHON_PLATFORM=$am_cv_python_platform 14767 14768 14769 if test "x$prefix" = xNONE; then 14770 am__usable_prefix=$ac_default_prefix 14771 else 14772 am__usable_prefix=$prefix 14773 fi 14774 14775 # Allow user to request using sys.* values from Python, 14776 # instead of the GNU $prefix values. 14777 14778# Check whether --with-python-sys-prefix was given. 14779if test ${with_python_sys_prefix+y} 14780then : 14781 withval=$with_python_sys_prefix; am_use_python_sys=: 14782else $as_nop 14783 am_use_python_sys=false 14784fi 14785 14786 14787 # Allow user to override whatever the default Python prefix is. 14788 14789# Check whether --with-python_prefix was given. 14790if test ${with_python_prefix+y} 14791then : 14792 withval=$with_python_prefix; am_python_prefix_subst=$withval 14793 am_cv_python_prefix=$withval 14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 14795printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 14797printf "%s\n" "$am_cv_python_prefix" >&6; } 14798else $as_nop 14799 14800 if $am_use_python_sys; then 14801 # using python sys.prefix value, not GNU 14802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 14803printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 14804if test ${am_cv_python_prefix+y} 14805then : 14806 printf %s "(cached) " >&6 14807else $as_nop 14808 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 14809fi 14810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 14811printf "%s\n" "$am_cv_python_prefix" >&6; } 14812 14813 case $am_cv_python_prefix in 14814 $am__usable_prefix*) 14815 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 14816 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 14817 ;; 14818 *) 14819 am_python_prefix_subst=$am_cv_python_prefix 14820 ;; 14821 esac 14822 else # using GNU prefix value, not python sys.prefix 14823 am_python_prefix_subst='${prefix}' 14824 am_python_prefix=$am_python_prefix_subst 14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 14826printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 14828printf "%s\n" "$am_python_prefix" >&6; } 14829 fi 14830fi 14831 14832 # Substituting python_prefix_subst value. 14833 PYTHON_PREFIX=$am_python_prefix_subst 14834 14835 14836 # emacs-page Now do it all over again for Python exec_prefix, but with yet 14837 # another conditional: fall back to regular prefix if that was specified. 14838 14839# Check whether --with-python_exec_prefix was given. 14840if test ${with_python_exec_prefix+y} 14841then : 14842 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 14843 am_cv_python_exec_prefix=$withval 14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 14845printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14847printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14848else $as_nop 14849 14850 # no explicit --with-python_exec_prefix, but if 14851 # --with-python_prefix was given, use its value for python_exec_prefix too. 14852 if test -n "$with_python_prefix" 14853then : 14854 am_python_exec_prefix_subst=$with_python_prefix 14855 am_cv_python_exec_prefix=$with_python_prefix 14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 14857printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14859printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14860else $as_nop 14861 14862 # Set am__usable_exec_prefix whether using GNU or Python values, 14863 # since we use that variable for pyexecdir. 14864 if test "x$exec_prefix" = xNONE; then 14865 am__usable_exec_prefix=$am__usable_prefix 14866 else 14867 am__usable_exec_prefix=$exec_prefix 14868 fi 14869 # 14870 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 14872printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 14873if test ${am_cv_python_exec_prefix+y} 14874then : 14875 printf %s "(cached) " >&6 14876else $as_nop 14877 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 14878fi 14879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 14880printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 14881 case $am_cv_python_exec_prefix in 14882 $am__usable_exec_prefix*) 14883 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 14884 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 14885 ;; 14886 *) 14887 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 14888 ;; 14889 esac 14890 else # using GNU $exec_prefix, not python sys.exec_prefix 14891 am_python_exec_prefix_subst='${exec_prefix}' 14892 am_python_exec_prefix=$am_python_exec_prefix_subst 14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 14894printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 14896printf "%s\n" "$am_python_exec_prefix" >&6; } 14897 fi 14898fi 14899fi 14900 14901 # Substituting python_exec_prefix_subst. 14902 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 14903 14904 14905 # Factor out some code duplication into this shell variable. 14906 am_python_setup_sysconfig="\ 14907import sys 14908# Prefer sysconfig over distutils.sysconfig, for better compatibility 14909# with python 3.x. See automake bug#10227. 14910try: 14911 import sysconfig 14912except ImportError: 14913 can_use_sysconfig = 0 14914else: 14915 can_use_sysconfig = 1 14916# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 14917# <https://github.com/pypa/virtualenv/issues/118> 14918try: 14919 from platform import python_implementation 14920 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 14921 can_use_sysconfig = 0 14922except ImportError: 14923 pass" 14924 14925 14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 14927printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 14928if test ${am_cv_python_pythondir+y} 14929then : 14930 printf %s "(cached) " >&6 14931else $as_nop 14932 if test "x$am_cv_python_prefix" = x; then 14933 am_py_prefix=$am__usable_prefix 14934 else 14935 am_py_prefix=$am_cv_python_prefix 14936 fi 14937 am_cv_python_pythondir=`$PYTHON -c " 14938$am_python_setup_sysconfig 14939if can_use_sysconfig: 14940 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 14941else: 14942 from distutils import sysconfig 14943 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 14944sys.stdout.write(sitedir)"` 14945 # 14946 case $am_cv_python_pythondir in 14947 $am_py_prefix*) 14948 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 14949 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 14950 ;; 14951 *) 14952 case $am_py_prefix in 14953 /usr|/System*) ;; 14954 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 14955 ;; 14956 esac 14957 ;; 14958 esac 14959 14960fi 14961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 14962printf "%s\n" "$am_cv_python_pythondir" >&6; } 14963 pythondir=$am_cv_python_pythondir 14964 14965 14966 pkgpythondir=\${pythondir}/$PACKAGE 14967 14968 14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 14970printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 14971if test ${am_cv_python_pyexecdir+y} 14972then : 14973 printf %s "(cached) " >&6 14974else $as_nop 14975 if test "x$am_cv_python_exec_prefix" = x; then 14976 am_py_exec_prefix=$am__usable_exec_prefix 14977 else 14978 am_py_exec_prefix=$am_cv_python_exec_prefix 14979 fi 14980 am_cv_python_pyexecdir=`$PYTHON -c " 14981$am_python_setup_sysconfig 14982if can_use_sysconfig: 14983 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 14984else: 14985 from distutils import sysconfig 14986 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 14987sys.stdout.write(sitedir)"` 14988 # 14989 case $am_cv_python_pyexecdir in 14990 $am_py_exec_prefix*) 14991 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 14992 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 14993 ;; 14994 *) 14995 case $am_py_exec_prefix in 14996 /usr|/System*) ;; 14997 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 14998 ;; 14999 esac 15000 ;; 15001 esac 15002 15003fi 15004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 15005printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 15006 pyexecdir=$am_cv_python_pyexecdir 15007 15008 15009 pkgpyexecdir=\${pyexecdir}/$PACKAGE 15010 15011 15012 15013 fi 15014 15015else 15016 15017 15018 15019 15020 15021 15022 if test -n "$PYTHON"; then 15023 # If the user set $PYTHON, use it and don't search something else. 15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= $with_python" >&5 15025printf %s "checking whether $PYTHON version is >= $with_python... " >&6; } 15026 prog="import sys 15027# split strings by '.' and convert to numeric. Append some zeros 15028# because we need at least 4 digits for the hex conversion. 15029# map returns an iterator in Python 3.0 and a list in 2.x 15030minver = list(map(int, '$with_python'.split('.'))) + [0, 0, 0] 15031minverhex = 0 15032# xrange is not present in Python 3.0 and range returns an iterator 15033for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 15034sys.exit(sys.hexversion < minverhex)" 15035 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 15036 ($PYTHON -c "$prog") >&5 2>&5 15037 ac_status=$? 15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15039 (exit $ac_status); } 15040then : 15041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15042printf "%s\n" "yes" >&6; } 15043else $as_nop 15044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15045printf "%s\n" "no" >&6; } 15046 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 15047fi 15048 am_display_PYTHON=$PYTHON 15049 else 15050 # Otherwise, try each interpreter until we find one that satisfies 15051 # VERSION. 15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= $with_python" >&5 15053printf %s "checking for a Python interpreter with version >= $with_python... " >&6; } 15054if test ${am_cv_pathless_PYTHON+y} 15055then : 15056 printf %s "(cached) " >&6 15057else $as_nop 15058 15059 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 15060 test "$am_cv_pathless_PYTHON" = none && break 15061 prog="import sys 15062# split strings by '.' and convert to numeric. Append some zeros 15063# because we need at least 4 digits for the hex conversion. 15064# map returns an iterator in Python 3.0 and a list in 2.x 15065minver = list(map(int, '$with_python'.split('.'))) + [0, 0, 0] 15066minverhex = 0 15067# xrange is not present in Python 3.0 and range returns an iterator 15068for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 15069sys.exit(sys.hexversion < minverhex)" 15070 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 15071 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 15072 ac_status=$? 15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15074 (exit $ac_status); } 15075then : 15076 break 15077fi 15078 done 15079fi 15080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 15081printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } 15082 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 15083 if test "$am_cv_pathless_PYTHON" = none; then 15084 PYTHON=: 15085 else 15086 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 15087set dummy $am_cv_pathless_PYTHON; ac_word=$2 15088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15089printf %s "checking for $ac_word... " >&6; } 15090if test ${ac_cv_path_PYTHON+y} 15091then : 15092 printf %s "(cached) " >&6 15093else $as_nop 15094 case $PYTHON in 15095 [\\/]* | ?:[\\/]*) 15096 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 15097 ;; 15098 *) 15099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15100for as_dir in $PATH 15101do 15102 IFS=$as_save_IFS 15103 case $as_dir in #((( 15104 '') as_dir=./ ;; 15105 */) ;; 15106 *) as_dir=$as_dir/ ;; 15107 esac 15108 for ac_exec_ext in '' $ac_executable_extensions; do 15109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15110 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" 15111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15112 break 2 15113 fi 15114done 15115 done 15116IFS=$as_save_IFS 15117 15118 ;; 15119esac 15120fi 15121PYTHON=$ac_cv_path_PYTHON 15122if test -n "$PYTHON"; then 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 15124printf "%s\n" "$PYTHON" >&6; } 15125else 15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15127printf "%s\n" "no" >&6; } 15128fi 15129 15130 15131 fi 15132 am_display_PYTHON=$am_cv_pathless_PYTHON 15133 fi 15134 15135 15136 if test "$PYTHON" = :; then 15137 : 15138 else 15139 15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 15141printf %s "checking for $am_display_PYTHON version... " >&6; } 15142if test ${am_cv_python_version+y} 15143then : 15144 printf %s "(cached) " >&6 15145else $as_nop 15146 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` 15147fi 15148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 15149printf "%s\n" "$am_cv_python_version" >&6; } 15150 PYTHON_VERSION=$am_cv_python_version 15151 15152 15153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 15154printf %s "checking for $am_display_PYTHON platform... " >&6; } 15155if test ${am_cv_python_platform+y} 15156then : 15157 printf %s "(cached) " >&6 15158else $as_nop 15159 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 15160fi 15161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 15162printf "%s\n" "$am_cv_python_platform" >&6; } 15163 PYTHON_PLATFORM=$am_cv_python_platform 15164 15165 15166 if test "x$prefix" = xNONE; then 15167 am__usable_prefix=$ac_default_prefix 15168 else 15169 am__usable_prefix=$prefix 15170 fi 15171 15172 # Allow user to request using sys.* values from Python, 15173 # instead of the GNU $prefix values. 15174 15175# Check whether --with-python-sys-prefix was given. 15176if test ${with_python_sys_prefix+y} 15177then : 15178 withval=$with_python_sys_prefix; am_use_python_sys=: 15179else $as_nop 15180 am_use_python_sys=false 15181fi 15182 15183 15184 # Allow user to override whatever the default Python prefix is. 15185 15186# Check whether --with-python_prefix was given. 15187if test ${with_python_prefix+y} 15188then : 15189 withval=$with_python_prefix; am_python_prefix_subst=$withval 15190 am_cv_python_prefix=$withval 15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 15192printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } 15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 15194printf "%s\n" "$am_cv_python_prefix" >&6; } 15195else $as_nop 15196 15197 if $am_use_python_sys; then 15198 # using python sys.prefix value, not GNU 15199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 15200printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } 15201if test ${am_cv_python_prefix+y} 15202then : 15203 printf %s "(cached) " >&6 15204else $as_nop 15205 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` 15206fi 15207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 15208printf "%s\n" "$am_cv_python_prefix" >&6; } 15209 15210 case $am_cv_python_prefix in 15211 $am__usable_prefix*) 15212 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` 15213 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` 15214 ;; 15215 *) 15216 am_python_prefix_subst=$am_cv_python_prefix 15217 ;; 15218 esac 15219 else # using GNU prefix value, not python sys.prefix 15220 am_python_prefix_subst='${prefix}' 15221 am_python_prefix=$am_python_prefix_subst 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 15223printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } 15224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 15225printf "%s\n" "$am_python_prefix" >&6; } 15226 fi 15227fi 15228 15229 # Substituting python_prefix_subst value. 15230 PYTHON_PREFIX=$am_python_prefix_subst 15231 15232 15233 # emacs-page Now do it all over again for Python exec_prefix, but with yet 15234 # another conditional: fall back to regular prefix if that was specified. 15235 15236# Check whether --with-python_exec_prefix was given. 15237if test ${with_python_exec_prefix+y} 15238then : 15239 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval 15240 am_cv_python_exec_prefix=$withval 15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 15242printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } 15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 15244printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 15245else $as_nop 15246 15247 # no explicit --with-python_exec_prefix, but if 15248 # --with-python_prefix was given, use its value for python_exec_prefix too. 15249 if test -n "$with_python_prefix" 15250then : 15251 am_python_exec_prefix_subst=$with_python_prefix 15252 am_cv_python_exec_prefix=$with_python_prefix 15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 15254printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } 15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 15256printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 15257else $as_nop 15258 15259 # Set am__usable_exec_prefix whether using GNU or Python values, 15260 # since we use that variable for pyexecdir. 15261 if test "x$exec_prefix" = xNONE; then 15262 am__usable_exec_prefix=$am__usable_prefix 15263 else 15264 am__usable_exec_prefix=$exec_prefix 15265 fi 15266 # 15267 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU 15268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 15269printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } 15270if test ${am_cv_python_exec_prefix+y} 15271then : 15272 printf %s "(cached) " >&6 15273else $as_nop 15274 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` 15275fi 15276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 15277printf "%s\n" "$am_cv_python_exec_prefix" >&6; } 15278 case $am_cv_python_exec_prefix in 15279 $am__usable_exec_prefix*) 15280 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` 15281 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` 15282 ;; 15283 *) 15284 am_python_exec_prefix_subst=$am_cv_python_exec_prefix 15285 ;; 15286 esac 15287 else # using GNU $exec_prefix, not python sys.exec_prefix 15288 am_python_exec_prefix_subst='${exec_prefix}' 15289 am_python_exec_prefix=$am_python_exec_prefix_subst 15290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 15291printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 15293printf "%s\n" "$am_python_exec_prefix" >&6; } 15294 fi 15295fi 15296fi 15297 15298 # Substituting python_exec_prefix_subst. 15299 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst 15300 15301 15302 # Factor out some code duplication into this shell variable. 15303 am_python_setup_sysconfig="\ 15304import sys 15305# Prefer sysconfig over distutils.sysconfig, for better compatibility 15306# with python 3.x. See automake bug#10227. 15307try: 15308 import sysconfig 15309except ImportError: 15310 can_use_sysconfig = 0 15311else: 15312 can_use_sysconfig = 1 15313# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 15314# <https://github.com/pypa/virtualenv/issues/118> 15315try: 15316 from platform import python_implementation 15317 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 15318 can_use_sysconfig = 0 15319except ImportError: 15320 pass" 15321 15322 15323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 15324printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } 15325if test ${am_cv_python_pythondir+y} 15326then : 15327 printf %s "(cached) " >&6 15328else $as_nop 15329 if test "x$am_cv_python_prefix" = x; then 15330 am_py_prefix=$am__usable_prefix 15331 else 15332 am_py_prefix=$am_cv_python_prefix 15333 fi 15334 am_cv_python_pythondir=`$PYTHON -c " 15335$am_python_setup_sysconfig 15336if can_use_sysconfig: 15337 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 15338else: 15339 from distutils import sysconfig 15340 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 15341sys.stdout.write(sitedir)"` 15342 # 15343 case $am_cv_python_pythondir in 15344 $am_py_prefix*) 15345 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 15346 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` 15347 ;; 15348 *) 15349 case $am_py_prefix in 15350 /usr|/System*) ;; 15351 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 15352 ;; 15353 esac 15354 ;; 15355 esac 15356 15357fi 15358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 15359printf "%s\n" "$am_cv_python_pythondir" >&6; } 15360 pythondir=$am_cv_python_pythondir 15361 15362 15363 pkgpythondir=\${pythondir}/$PACKAGE 15364 15365 15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 15367printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } 15368if test ${am_cv_python_pyexecdir+y} 15369then : 15370 printf %s "(cached) " >&6 15371else $as_nop 15372 if test "x$am_cv_python_exec_prefix" = x; then 15373 am_py_exec_prefix=$am__usable_exec_prefix 15374 else 15375 am_py_exec_prefix=$am_cv_python_exec_prefix 15376 fi 15377 am_cv_python_pyexecdir=`$PYTHON -c " 15378$am_python_setup_sysconfig 15379if can_use_sysconfig: 15380 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) 15381else: 15382 from distutils import sysconfig 15383 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') 15384sys.stdout.write(sitedir)"` 15385 # 15386 case $am_cv_python_pyexecdir in 15387 $am_py_exec_prefix*) 15388 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 15389 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` 15390 ;; 15391 *) 15392 case $am_py_exec_prefix in 15393 /usr|/System*) ;; 15394 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" 15395 ;; 15396 esac 15397 ;; 15398 esac 15399 15400fi 15401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 15402printf "%s\n" "$am_cv_python_pyexecdir" >&6; } 15403 pyexecdir=$am_cv_python_pyexecdir 15404 15405 15406 pkgpyexecdir=\${pyexecdir}/$PACKAGE 15407 15408 15409 15410 fi 15411 15412fi 15413 15414if test "${PYTHON}" = ":"; then 15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python interpreter is missing." >&5 15416printf "%s\n" "$as_me: WARNING: Python interpreter is missing." >&2;} 15417fi 15418 15419 if test "$PYTHON" != :; then 15420 HAVE_PYTHON_INTERPRETER_TRUE= 15421 HAVE_PYTHON_INTERPRETER_FALSE='#' 15422else 15423 HAVE_PYTHON_INTERPRETER_TRUE='#' 15424 HAVE_PYTHON_INTERPRETER_FALSE= 15425fi 15426 15427 15428 15429yacc_ok=0 15430if echo "$YACC" | grep -q bison; then 15431 # NOTE: m4 removes [], that's why it needs to be escaped 15432 bison_version=`$YACC --version | head -n 1 | sed 's/[^0-9.]*//'` 15433 bison_version_major=`echo $bison_version | cut -d. -f1` 15434 bison_version_minor=`echo $bison_version | cut -d. -f2` 15435 bison_version_patch=`echo $bison_version | cut -d. -f3` 15436 if ([ "$bison_version_major" -gt 3 ]) || 15437 ([ "$bison_version_major" -eq 3 ] && [ "$bison_version_minor" -gt 7 ]) || 15438 ([ "$bison_version_major" -eq 3 ] && [ "$bison_version_minor" -eq 7 ] && [ "$bison_version_patch" -ge 6 ]); then 15439 yacc_ok=1 15440 else 15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bison is found, but your bison version $bison_version is not recent enough, at least 3.7.6 is required" >&5 15442printf "%s\n" "$as_me: WARNING: bison is found, but your bison version $bison_version is not recent enough, at least 3.7.6 is required" >&2;} 15443 fi 15444fi 15445 15446if test $yacc_ok = 0; then 15447 if test -f $srcdir/lib/cfg-grammar.c || test -f lib/cfg-grammar.c; then 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No proper bison found, you'll not be able to change lib/cfg-grammar.y" >&5 15449printf "%s\n" "$as_me: WARNING: No proper bison found, you'll not be able to change lib/cfg-grammar.y" >&2;} 15450 YACC="echo Required bison not found && false" 15451 else 15452 as_fn_error $? "syslog-ng requires bison 3.7.6 or later. Your source tree seems to be from git, which doesn't have the bison generated files (like cfg-grammar.c). Please install/upgrade bison or use a distribution tarball." "$LINENO" 5 15453 fi 15454fi 15455 15456 15457if $LEX --version | grep "flex" >/dev/null; then 15458 lex_ok=1 15459else 15460 lex_ok=0 15461fi 15462 15463if test $lex_ok = 0 ; then 15464 if test -f $srcdir/lib/cfg-lex.c || test -f lib/cfg-lex.c; then 15465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No flex found, you'll not be able to change lib/cfg-lex.l" >&5 15466printf "%s\n" "$as_me: WARNING: No flex found, you'll not be able to change lib/cfg-lex.l" >&2;} 15467 LEX="echo Required flex version not found && false" 15468 else 15469 as_fn_error $? "syslog-ng requires flex in order to generate its config lexer. Your source tree seems to be from git, which doesn't have lib/cfg-lex.c. Please install flex or use a distribution tarball." "$LINENO" 5 15470 fi 15471fi 15472 15473 15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 15475printf %s "checking for C compiler vendor... " >&6; } 15476if test ${ax_cv_c_compiler_vendor+y} 15477then : 15478 printf %s "(cached) " >&6 15479else $as_nop 15480 15481 vendors=" 15482 intel: __ICC,__ECC,__INTEL_COMPILER 15483 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__,__ibmxl__ 15484 pathscale: __PATHCC__,__PATHSCALE__ 15485 clang: __clang__ 15486 cray: _CRAYC 15487 fujitsu: __FUJITSU 15488 sdcc: SDCC,__SDCC 15489 sx: _SX 15490 portland: __PGI 15491 gnu: __GNUC__ 15492 sun: __SUNPRO_C,__SUNPRO_CC,__SUNPRO_F90,__SUNPRO_F95 15493 hp: __HP_cc,__HP_aCC 15494 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 15495 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 15496 comeau: __COMO__ 15497 kai: __KCC 15498 lcc: __LCC__ 15499 sgi: __sgi,sgi 15500 microsoft: _MSC_VER 15501 metrowerks: __MWERKS__ 15502 watcom: __WATCOMC__ 15503 tcc: __TINYC__ 15504 unknown: UNKNOWN 15505 " 15506 for ventest in $vendors; do 15507 case $ventest in 15508 *:) 15509 vendor=$ventest 15510 continue 15511 ;; 15512 *) 15513 vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" 15514 ;; 15515 esac 15516 15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15518/* end confdefs.h. */ 15519 15520int 15521main (void) 15522{ 15523 15524#if !($vencpp) 15525 thisisanerror; 15526#endif 15527 15528 ; 15529 return 0; 15530} 15531_ACEOF 15532if ac_fn_c_try_compile "$LINENO" 15533then : 15534 break 15535fi 15536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15537 done 15538 15539 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 15540 15541fi 15542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 15543printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; } 15544 15545 15546 15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 15548printf %s "checking for C compiler version... " >&6; } 15549if test ${ax_cv_c_compiler_version+y} 15550then : 15551 printf %s "(cached) " >&6 15552else $as_nop 15553 case $ax_cv_c_compiler_vendor in #( 15554 intel) : 15555 if ac_fn_c_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_c_compiler_version_major" "" 15556then : 15557 15558else $as_nop 15559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15560printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15561as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version 15562See \`config.log' for more details" "$LINENO" 5; } 15563fi 15564 15565 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_c_compiler_version_minor" "" 15566then : 15567 15568else $as_nop 15569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15570printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15571as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version 15572See \`config.log' for more details" "$LINENO" 5; } 15573fi 15574 15575 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_c_compiler_version_patch" "" 15576then : 15577 15578else $as_nop 15579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15580printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15581as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version 15582See \`config.log' for more details" "$LINENO" 5; } 15583fi 15584 15585 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 15586 ;; #( 15587 ibm) : 15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590 15591 15592int 15593main (void) 15594{ 15595 15596 #if defined(__COMPILER_VER__) 15597 choke me; 15598 #endif 15599 15600 ; 15601 return 0; 15602} 15603_ACEOF 15604if ac_fn_c_try_compile "$LINENO" 15605then : 15606 15607 if ac_fn_c_compute_int "$LINENO" "__xlC__/100" "_ax_c_compiler_version_major" "" 15608then : 15609 15610else $as_nop 15611 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15612printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15613as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version 15614See \`config.log' for more details" "$LINENO" 5; } 15615fi 15616 15617 if ac_fn_c_compute_int "$LINENO" "__xlC__%100" "_ax_c_compiler_version_minor" "" 15618then : 15619 15620else $as_nop 15621 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15622printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15623as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version 15624See \`config.log' for more details" "$LINENO" 5; } 15625fi 15626 15627 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_c_compiler_version_patch" "" 15628then : 15629 15630else $as_nop 15631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15632printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15633as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version 15634See \`config.log' for more details" "$LINENO" 5; } 15635fi 15636 15637 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_c_compiler_version_build" "" 15638then : 15639 15640else $as_nop 15641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15642printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15643as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version 15644See \`config.log' for more details" "$LINENO" 5; } 15645fi 15646 15647 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build" 15648 15649else $as_nop 15650 15651 if ac_fn_c_compute_int "$LINENO" "__xlC__%1000" "_ax_c_compiler_version_patch" "" 15652then : 15653 15654else $as_nop 15655 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15656printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15657as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version 15658See \`config.log' for more details" "$LINENO" 5; } 15659fi 15660 15661 if ac_fn_c_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_c_compiler_version_minor" "" 15662then : 15663 15664else $as_nop 15665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15666printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15667as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version 15668See \`config.log' for more details" "$LINENO" 5; } 15669fi 15670 15671 if ac_fn_c_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_c_compiler_version_major" "" 15672then : 15673 15674else $as_nop 15675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15676printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15677as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version 15678See \`config.log' for more details" "$LINENO" 5; } 15679fi 15680 15681 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 15682 15683fi 15684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15685 ;; #( 15686 pathscale) : 15687 15688 if ac_fn_c_compute_int "$LINENO" "__PATHCC__" "_ax_c_compiler_version_major" "" 15689then : 15690 15691else $as_nop 15692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15693printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15694as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major 15695See \`config.log' for more details" "$LINENO" 5; } 15696fi 15697 15698 if ac_fn_c_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_c_compiler_version_minor" "" 15699then : 15700 15701else $as_nop 15702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15703printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15704as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor 15705See \`config.log' for more details" "$LINENO" 5; } 15706fi 15707 15708 if ac_fn_c_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_c_compiler_version_patch" "" 15709then : 15710 15711else $as_nop 15712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15713printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15714as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level 15715See \`config.log' for more details" "$LINENO" 5; } 15716fi 15717 15718 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 15719 ;; #( 15720 clang) : 15721 15722 if ac_fn_c_compute_int "$LINENO" "__clang_major__" "_ax_c_compiler_version_major" "" 15723then : 15724 15725else $as_nop 15726 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15727printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15728as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major 15729See \`config.log' for more details" "$LINENO" 5; } 15730fi 15731 15732 if ac_fn_c_compute_int "$LINENO" "__clang_minor__" "_ax_c_compiler_version_minor" "" 15733then : 15734 15735else $as_nop 15736 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15737printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15738as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor 15739See \`config.log' for more details" "$LINENO" 5; } 15740fi 15741 15742 if ac_fn_c_compute_int "$LINENO" "__clang_patchlevel__" "_ax_c_compiler_version_patch" "" 15743then : 15744 15745else $as_nop 15746 0 15747fi 15748 15749 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 15750 ;; #( 15751 cray) : 15752 15753 if ac_fn_c_compute_int "$LINENO" "_RELEASE" "_ax_c_compiler_version_major" "" 15754then : 15755 15756else $as_nop 15757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15758printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15759as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release 15760See \`config.log' for more details" "$LINENO" 5; } 15761fi 15762 15763 if ac_fn_c_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_c_compiler_version_minor" "" 15764then : 15765 15766else $as_nop 15767 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15768printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15769as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor 15770See \`config.log' for more details" "$LINENO" 5; } 15771fi 15772 15773 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 15774 ;; #( 15775 fujitsu) : 15776 15777 if ac_fn_c_compute_int "$LINENO" "__FCC_VERSION" "ax_cv_c_compiler_version" "" 15778then : 15779 15780else $as_nop 15781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15782printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15783as_fn_error $? "_AX_COMPILER_VERSION_FUJITSUunknown fujitsu release 15784See \`config.log' for more details" "$LINENO" 5; } 15785fi 15786 15787 ;; #( 15788 gnu) : 15789 15790 if ac_fn_c_compute_int "$LINENO" "__GNUC__" "_ax_c_compiler_version_major" "" 15791then : 15792 15793else $as_nop 15794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15795printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15796as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major 15797See \`config.log' for more details" "$LINENO" 5; } 15798fi 15799 15800 if ac_fn_c_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_c_compiler_version_minor" "" 15801then : 15802 15803else $as_nop 15804 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15805printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15806as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor 15807See \`config.log' for more details" "$LINENO" 5; } 15808fi 15809 15810 if ac_fn_c_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_c_compiler_version_patch" "" 15811then : 15812 15813else $as_nop 15814 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15815printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15816as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level 15817See \`config.log' for more details" "$LINENO" 5; } 15818fi 15819 15820 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 15821 ;; #( 15822 sun) : 15823 15824 15825 if ac_fn_c_compute_int "$LINENO" "!!( 15826 #if defined(__SUNPRO_CC) 15827 __SUNPRO_CC 15828 #else 15829 __SUNPRO_C 15830 #endif 15831 < 0x1000)" "_ax_c_compiler_version_until59" "" 15832then : 15833 15834else $as_nop 15835 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15836printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15837as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version 15838See \`config.log' for more details" "$LINENO" 5; } 15839fi 15840 15841 if test "X$_ax_c_compiler_version_until59" = X1 15842then : 15843 if ac_fn_c_compute_int "$LINENO" " 15844 #if defined(__SUNPRO_CC) 15845 __SUNPRO_CC 15846 #else 15847 __SUNPRO_C 15848 #endif 15849 % 0x10" "_ax_c_compiler_version_patch" "" 15850then : 15851 15852else $as_nop 15853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15854printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15855as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version 15856See \`config.log' for more details" "$LINENO" 5; } 15857fi 15858 15859 if ac_fn_c_compute_int "$LINENO" "( 15860 #if defined(__SUNPRO_CC) 15861 __SUNPRO_CC 15862 #else 15863 __SUNPRO_C 15864 #endif 15865 / 0x10) % 0x10" "_ax_c_compiler_version_minor" "" 15866then : 15867 15868else $as_nop 15869 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15870printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15871as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version 15872See \`config.log' for more details" "$LINENO" 5; } 15873fi 15874 15875 if ac_fn_c_compute_int "$LINENO" "( 15876 #if defined(__SUNPRO_CC) 15877 __SUNPRO_CC 15878 #else 15879 __SUNPRO_C 15880 #endif 15881 / 0x100)" "_ax_c_compiler_version_major" "" 15882then : 15883 15884else $as_nop 15885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15886printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15887as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version 15888See \`config.log' for more details" "$LINENO" 5; } 15889fi 15890 15891 15892else $as_nop 15893 if ac_fn_c_compute_int "$LINENO" " 15894 #if defined(__SUNPRO_CC) 15895 __SUNPRO_CC 15896 #else 15897 __SUNPRO_C 15898 #endif 15899 % 0x10" "_ax_c_compiler_version_patch" "" 15900then : 15901 15902else $as_nop 15903 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15904printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15905as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version 15906See \`config.log' for more details" "$LINENO" 5; } 15907fi 15908 15909 if ac_fn_c_compute_int "$LINENO" "( 15910 #if defined(__SUNPRO_CC) 15911 __SUNPRO_CC 15912 #else 15913 __SUNPRO_C 15914 #endif 15915 / 0x100) % 0x100" "_ax_c_compiler_version_minor" "" 15916then : 15917 15918else $as_nop 15919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15920printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15921as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version 15922See \`config.log' for more details" "$LINENO" 5; } 15923fi 15924 15925 if ac_fn_c_compute_int "$LINENO" "( 15926 #if defined(__SUNPRO_CC) 15927 __SUNPRO_CC 15928 #else 15929 __SUNPRO_C 15930 #endif 15931 / 0x1000)" "_ax_c_compiler_version_major" "" 15932then : 15933 15934else $as_nop 15935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15936printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15937as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version 15938See \`config.log' for more details" "$LINENO" 5; } 15939fi 15940 15941 15942fi 15943 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 15944 ;; #( 15945 hp) : 15946 15947 15948 if ac_fn_c_compute_int "$LINENO" "!!( 15949 #if defined(__HP_cc) 15950 __HP_cc 15951 #else 15952 __HP_aCC 15953 #endif 15954 <= 1)" "_ax_c_compiler_version_untilA0121" "" 15955then : 15956 15957else $as_nop 15958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15959printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15960as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version 15961See \`config.log' for more details" "$LINENO" 5; } 15962fi 15963 15964 if test "X$_ax_c_compiler_version_untilA0121" = X1 15965then : 15966 ax_cv_c_compiler_version="01.21.00" 15967 15968else $as_nop 15969 if ac_fn_c_compute_int "$LINENO" "( 15970 #if defined(__HP_cc) 15971 __HP_cc 15972 #else 15973 __HP_aCC 15974 #endif 15975 % 100)" "_ax_c_compiler_version_patch" "" 15976then : 15977 15978else $as_nop 15979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15980printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15981as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version 15982See \`config.log' for more details" "$LINENO" 5; } 15983fi 15984 15985 if ac_fn_c_compute_int "$LINENO" "(( 15986 #if defined(__HP_cc) 15987 __HP_cc 15988 #else 15989 __HP_aCC 15990 #endif 15991 / 100)%100)" "_ax_c_compiler_version_minor" "" 15992then : 15993 15994else $as_nop 15995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15996printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15997as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version 15998See \`config.log' for more details" "$LINENO" 5; } 15999fi 16000 16001 if ac_fn_c_compute_int "$LINENO" "(( 16002 #if defined(__HP_cc) 16003 __HP_cc 16004 #else 16005 __HP_aCC 16006 #endif 16007 / 10000)%100)" "_ax_c_compiler_version_major" "" 16008then : 16009 16010else $as_nop 16011 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16012printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16013as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version 16014See \`config.log' for more details" "$LINENO" 5; } 16015fi 16016 16017 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 16018 16019fi 16020 ;; #( 16021 dec) : 16022 16023 if ac_fn_c_compute_int "$LINENO" "( 16024 #if defined(__DECC_VER) 16025 __DECC_VER 16026 #else 16027 __DECCXX_VER 16028 #endif 16029 % 10000)" "_ax_c_compiler_version_patch" "" 16030then : 16031 16032else $as_nop 16033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16034printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16035as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version 16036See \`config.log' for more details" "$LINENO" 5; } 16037fi 16038 16039 if ac_fn_c_compute_int "$LINENO" "(( 16040 #if defined(__DECC_VER) 16041 __DECC_VER 16042 #else 16043 __DECCXX_VER 16044 #endif 16045 / 100000UL)%100)" "_ax_c_compiler_version_minor" "" 16046then : 16047 16048else $as_nop 16049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16050printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16051as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version 16052See \`config.log' for more details" "$LINENO" 5; } 16053fi 16054 16055 if ac_fn_c_compute_int "$LINENO" "(( 16056 #if defined(__DECC_VER) 16057 __DECC_VER 16058 #else 16059 __DECCXX_VER 16060 #endif 16061 / 10000000UL)%100)" "_ax_c_compiler_version_major" "" 16062then : 16063 16064else $as_nop 16065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16066printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16067as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version 16068See \`config.log' for more details" "$LINENO" 5; } 16069fi 16070 16071 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 16072 ;; #( 16073 borland) : 16074 16075 16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16077/* end confdefs.h. */ 16078 16079int 16080main (void) 16081{ 16082 16083 #if defined(__TURBOC__) 16084 __TURBOC__ 16085 #else 16086 choke me 16087 #endif 16088 16089 ; 16090 return 0; 16091} 16092_ACEOF 16093if ac_fn_c_try_compile "$LINENO" 16094then : 16095 if ac_fn_c_compute_int "$LINENO" " 16096 #if defined(__TURBOC__) 16097 __TURBOC__ 16098 #else 16099 choke me 16100 #endif 16101 " "_ax_c_compiler_version_turboc_raw" "" 16102then : 16103 16104else $as_nop 16105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16106printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16107as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version 16108See \`config.log' for more details" "$LINENO" 5; } 16109fi 16110 16111 if test $_ax_c_compiler_version_turboc_raw -lt 661 || test $_ax_c_compiler_version_turboc_raw -gt 1023 16112then : 16113 if ac_fn_c_compute_int "$LINENO" " 16114 #if defined(__TURBOC__) 16115 __TURBOC__ 16116 #else 16117 choke me 16118 #endif 16119 % 0x100" "_ax_c_compiler_version_minor" "" 16120then : 16121 16122else $as_nop 16123 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16124printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16125as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version 16126See \`config.log' for more details" "$LINENO" 5; } 16127fi 16128 16129 if ac_fn_c_compute_int "$LINENO" "( 16130 #if defined(__TURBOC__) 16131 __TURBOC__ 16132 #else 16133 choke me 16134 #endif 16135 /0x100)%0x100" "_ax_c_compiler_version_major" "" 16136then : 16137 16138else $as_nop 16139 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16140printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16141as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version 16142See \`config.log' for more details" "$LINENO" 5; } 16143fi 16144 16145 ax_cv_c_compiler_version="0turboc:$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 16146else $as_nop 16147 case $_ax_c_compiler_version_turboc_raw in #( 16148 661) : 16149 ax_cv_c_compiler_version="0turboc:1.00" ;; #( 16150 662) : 16151 ax_cv_c_compiler_version="0turboc:1.01" ;; #( 16152 663) : 16153 ax_cv_c_compiler_version="0turboc:2.00" ;; #( 16154 *) : 16155 16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5 16157printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&2;} 16158 ax_cv_c_compiler_version="" 16159 ;; 16160esac 16161 16162fi 16163 16164else $as_nop 16165 # borlandc 16166 16167 if ac_fn_c_compute_int "$LINENO" " 16168 #if defined(__BORLANDC__) 16169 __BORLANDC__ 16170 #else 16171 __CODEGEARC__ 16172 #endif 16173 " "_ax_c_compiler_version_borlandc_raw" "" 16174then : 16175 16176else $as_nop 16177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16178printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16179as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version 16180See \`config.log' for more details" "$LINENO" 5; } 16181fi 16182 16183 case $_ax_c_compiler_version_borlandc_raw in #( 16184 512 ) : 16185 ax_cv_c_compiler_version="1borlanc:2.00" ;; #( 16186 1024) : 16187 ax_cv_c_compiler_version="1borlanc:3.00" ;; #( 16188 1024) : 16189 ax_cv_c_compiler_version="1borlanc:3.00" ;; #( 16190 1040) : 16191 ax_cv_c_compiler_version="1borlanc:3.1" ;; #( 16192 1106) : 16193 ax_cv_c_compiler_version="1borlanc:4.0" ;; #( 16194 1280) : 16195 ax_cv_c_compiler_version="1borlanc:5.0" ;; #( 16196 1312) : 16197 ax_cv_c_compiler_version="1borlanc:5.02" ;; #( 16198 1328) : 16199 ax_cv_c_compiler_version="2cppbuilder:3.0" ;; #( 16200 1344) : 16201 ax_cv_c_compiler_version="2cppbuilder:4.0" ;; #( 16202 1360) : 16203 ax_cv_c_compiler_version="3borlancpp:5.5" ;; #( 16204 1361) : 16205 ax_cv_c_compiler_version="3borlancpp:5.51" ;; #( 16206 1378) : 16207 ax_cv_c_compiler_version="3borlancpp:5.6.4" ;; #( 16208 1392) : 16209 ax_cv_c_compiler_version="4cppbuilder:2006" ;; #( 16210 1424) : 16211 ax_cv_c_compiler_version="4cppbuilder:2007" ;; #( 16212 1555) : 16213 ax_cv_c_compiler_version="4cppbuilder:2009" ;; #( 16214 1569) : 16215 ax_cv_c_compiler_version="4cppbuilder:2010" ;; #( 16216 1584) : 16217 ax_cv_c_compiler_version="5xe" ;; #( 16218 1600) : 16219 ax_cv_c_compiler_version="5xe:2" ;; #( 16220 1616) : 16221 ax_cv_c_compiler_version="5xe:3" ;; #( 16222 1632) : 16223 ax_cv_c_compiler_version="5xe:4" ;; #( 16224 *) : 16225 16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&5 16227printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&2;} 16228 ;; 16229esac 16230 16231fi 16232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16233 ;; #( 16234 comeau) : 16235 if ac_fn_c_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_c_compiler_version_minor" "" 16236then : 16237 16238else $as_nop 16239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16240printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16241as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version 16242See \`config.log' for more details" "$LINENO" 5; } 16243fi 16244 16245 if ac_fn_c_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_c_compiler_version_major" "" 16246then : 16247 16248else $as_nop 16249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16250printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16251as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version 16252See \`config.log' for more details" "$LINENO" 5; } 16253fi 16254 16255 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 16256 ;; #( 16257 kai) : 16258 16259 if ac_fn_c_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_c_compiler_version_patch" "" 16260then : 16261 16262else $as_nop 16263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16264printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16265as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version 16266See \`config.log' for more details" "$LINENO" 5; } 16267fi 16268 16269 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_c_compiler_version_minor" "" 16270then : 16271 16272else $as_nop 16273 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16274printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16275as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version 16276See \`config.log' for more details" "$LINENO" 5; } 16277fi 16278 16279 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_c_compiler_version_major" "" 16280then : 16281 16282else $as_nop 16283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16284printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16285as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version 16286See \`config.log' for more details" "$LINENO" 5; } 16287fi 16288 16289 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 16290 ;; #( 16291 sgi) : 16292 16293 16294 if ac_fn_c_compute_int "$LINENO" " 16295 #if defined(_COMPILER_VERSION) 16296 _COMPILER_VERSION 16297 #else 16298 _SGI_COMPILER_VERSION 16299 #endif 16300 %10" "_ax_c_compiler_version_patch" "" 16301then : 16302 16303else $as_nop 16304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16305printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16306as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version 16307See \`config.log' for more details" "$LINENO" 5; } 16308fi 16309 16310 if ac_fn_c_compute_int "$LINENO" "( 16311 #if defined(_COMPILER_VERSION) 16312 _COMPILER_VERSION 16313 #else 16314 _SGI_COMPILER_VERSION 16315 #endif 16316 /10)%10" "_ax_c_compiler_version_minor" "" 16317then : 16318 16319else $as_nop 16320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16321printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16322as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version 16323See \`config.log' for more details" "$LINENO" 5; } 16324fi 16325 16326 if ac_fn_c_compute_int "$LINENO" "( 16327 #if defined(_COMPILER_VERSION) 16328 _COMPILER_VERSION 16329 #else 16330 _SGI_COMPILER_VERSION 16331 #endif 16332 /100)%10" "_ax_c_compiler_version_major" "" 16333then : 16334 16335else $as_nop 16336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16337printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16338as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version 16339See \`config.log' for more details" "$LINENO" 5; } 16340fi 16341 16342 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 16343 ;; #( 16344 microsoft) : 16345 16346 if ac_fn_c_compute_int "$LINENO" "_MSC_VER%100" "_ax_c_compiler_version_minor" "" 16347then : 16348 16349else $as_nop 16350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16351printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16352as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version 16353See \`config.log' for more details" "$LINENO" 5; } 16354fi 16355 16356 if ac_fn_c_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_c_compiler_version_major" "" 16357then : 16358 16359else $as_nop 16360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16361printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16362as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version 16363See \`config.log' for more details" "$LINENO" 5; } 16364fi 16365 16366 _ax_c_compiler_version_patch=0 16367 _ax_c_compiler_version_build=0 16368 # special case for version 6 16369 if test "X$_ax_c_compiler_version_major" = "X12" 16370then : 16371 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" "" 16372then : 16373 16374else $as_nop 16375 _ax_c_compiler_version_patch=0 16376fi 16377 16378fi 16379 # for version 7 16380 if test "X$_ax_c_compiler_version_major" = "X13" 16381then : 16382 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" "" 16383then : 16384 16385else $as_nop 16386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16387printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16388as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version 16389See \`config.log' for more details" "$LINENO" 5; } 16390fi 16391 16392 16393fi 16394 # for version > 8 16395 if test $_ax_c_compiler_version_major -ge 14 16396then : 16397 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_c_compiler_version_patch" "" 16398then : 16399 16400else $as_nop 16401 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16402printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16403as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version 16404See \`config.log' for more details" "$LINENO" 5; } 16405fi 16406 16407 16408fi 16409 if test $_ax_c_compiler_version_major -ge 15 16410then : 16411 if ac_fn_c_compute_int "$LINENO" "_MSC_BUILD" "_ax_c_compiler_version_build" "" 16412then : 16413 16414else $as_nop 16415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16416printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16417as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version 16418See \`config.log' for more details" "$LINENO" 5; } 16419fi 16420 16421 16422fi 16423 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build" 16424 ;; #( 16425 metrowerks) : 16426 if ac_fn_c_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_c_compiler_version_patch" "" 16427then : 16428 16429else $as_nop 16430 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16431printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16432as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version 16433See \`config.log' for more details" "$LINENO" 5; } 16434fi 16435 16436 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_c_compiler_version_minor" "" 16437then : 16438 16439else $as_nop 16440 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16441printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16442as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version 16443See \`config.log' for more details" "$LINENO" 5; } 16444fi 16445 16446 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_c_compiler_version_major" "" 16447then : 16448 16449else $as_nop 16450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16451printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16452as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version 16453See \`config.log' for more details" "$LINENO" 5; } 16454fi 16455 16456 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 16457 ;; #( 16458 watcom) : 16459 if ac_fn_c_compute_int "$LINENO" "__WATCOMC__%100" "_ax_c_compiler_version_minor" "" 16460then : 16461 16462else $as_nop 16463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16464printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16465as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version 16466See \`config.log' for more details" "$LINENO" 5; } 16467fi 16468 16469 if ac_fn_c_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_c_compiler_version_major" "" 16470then : 16471 16472else $as_nop 16473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16474printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16475as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version 16476See \`config.log' for more details" "$LINENO" 5; } 16477fi 16478 16479 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 16480 ;; #( 16481 portland) : 16482 16483 if ac_fn_c_compute_int "$LINENO" "__PGIC__" "_ax_c_compiler_version_major" "" 16484then : 16485 16486else $as_nop 16487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16488printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16489as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major 16490See \`config.log' for more details" "$LINENO" 5; } 16491fi 16492 16493 if ac_fn_c_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_c_compiler_version_minor" "" 16494then : 16495 16496else $as_nop 16497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16498printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16499as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor 16500See \`config.log' for more details" "$LINENO" 5; } 16501fi 16502 16503 if ac_fn_c_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_c_compiler_version_patch" "" 16504then : 16505 16506else $as_nop 16507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16508printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16509as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level 16510See \`config.log' for more details" "$LINENO" 5; } 16511fi 16512 16513 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 16514 ;; #( 16515 tcc) : 16516 16517 ax_cv_c_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'` 16518 ;; #( 16519 sdcc) : 16520 16521 if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */ 16522 #if(defined(__SDCC_VERSION_MAJOR)) 16523 __SDCC_VERSION_MAJOR 16524 #else 16525 SDCC/100 16526 #endif 16527 " "_ax_c_compiler_version_major" "" 16528then : 16529 16530else $as_nop 16531 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16532printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16533as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc major 16534See \`config.log' for more details" "$LINENO" 5; } 16535fi 16536 16537 if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */ 16538 #if(defined(__SDCC_VERSION_MINOR)) 16539 __SDCC_VERSION_MINOR 16540 #else 16541 (SDCC%100)/10 16542 #endif 16543 " "_ax_c_compiler_version_minor" "" 16544then : 16545 16546else $as_nop 16547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16548printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16549as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc minor 16550See \`config.log' for more details" "$LINENO" 5; } 16551fi 16552 16553 if ac_fn_c_compute_int "$LINENO" " 16554 /* avoid parse error with comments */ 16555 #if(defined(__SDCC_VERSION_PATCH)) 16556 __SDCC_VERSION_PATCH 16557 #elsif(defined(_SDCC_VERSION_PATCHLEVEL)) 16558 __SDCC_VERSION_PATCHLEVEL 16559 #else 16560 SDCC%10 16561 #endif 16562 " "_ax_c_compiler_version_patch" "" 16563then : 16564 16565else $as_nop 16566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16567printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 16568as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc patch level 16569See \`config.log' for more details" "$LINENO" 5; } 16570fi 16571 16572 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 16573 ;; #( 16574 *) : 16575 ax_cv_c_compiler_version="" ;; 16576esac 16577 16578fi 16579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_version" >&5 16580printf "%s\n" "$ax_cv_c_compiler_version" >&6; } 16581 16582 16583if test $ostype = "Darwin"; then 16584 no_pie_ldflags="-Wl,-no_pie" 16585else 16586 if test x$ax_cv_c_compiler_vendor = "xgnu"; then 16587 16588 16589 16590 # Used to indicate true or false condition 16591 ax_compare_version=false 16592 16593 # Convert the two version strings to be compared into a format that 16594 # allows a simple string comparison. The end result is that a version 16595 # string of the form 1.12.5-r617 will be converted to the form 16596 # 0001001200050617. In other words, each number is zero padded to four 16597 # digits, and non digits are removed. 16598 16599 ax_compare_version_A=`echo "$ax_cv_c_compiler_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 16600 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 16601 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 16602 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 16603 -e 's/[^0-9]//g'` 16604 16605 16606 ax_compare_version_B=`echo "4.5" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 16607 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 16608 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 16609 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 16610 -e 's/[^0-9]//g'` 16611 16612 16613 ax_compare_version=`echo "x$ax_compare_version_A 16614x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"` 16615 16616 16617 16618 if test "$ax_compare_version" = "true" ; then 16619 no_pie_ldflags="-no-pie" 16620 else no_pie_ldflags="" 16621 fi 16622 16623 else 16624 no_pie_ldflags="-no-pie" 16625 fi; 16626fi 16627 16628old_LDFLAGS="$LDFLAGS" 16629LDFLAGS="$LDFLAGS $no_pie_ldflags" 16630 16631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16632/* end confdefs.h. */ 16633int main(void) {return 0;} 16634_ACEOF 16635if ac_fn_c_try_link "$LINENO" 16636then : 16637 no_pie_option_available=yes 16638else $as_nop 16639 no_pie_option_available=no 16640fi 16641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16642 conftest$ac_exeext conftest.$ac_ext 16643 16644LDFLAGS="$old_LDFLAGS" 16645 16646if test "$no_pie_option_available" = "yes"; then 16647 NO_PIE_LDFLAG="$no_pie_ldflags" 16648fi 16649 16650 16651 16652 16653 16654if test "x$ac_compiler_gnu" = "xyes"; then 16655 # by ignoring the existing $CFLAGS setting we can override the 16656 # default supplied by autoconf (which defaults to -O2), which 16657 # we don't want to use with our debugging builds. 16658 16659 CFLAGS_ADD="" 16660 if test "x$enable_debug" = "xyes"; then 16661 CFLAGS_ADD="${CFLAGS_ADD} -g" 16662 else 16663 CFLAGS_ADD="${CFLAGS_ADD} -O2 -g" 16664 fi 16665 if test "x$enable_gprof" = "xyes"; then 16666 CFLAGS_ADD="${CFLAGS_ADD} -pg" 16667 fi 16668 if test "x$enable_gcov" = "xyes"; then 16669 CFLAGS_ADD="${CFLAGS_ADD} -fprofile-arcs -ftest-coverage" 16670 fi 16671else 16672 enable_extra_warnings="no" 16673fi 16674CFLAGS_ADD="${CFLAGS_ADD} -pthread" 16675 16676 16677if test "x$force_gnu99" = "xyes"; then 16678 CFLAGS_ADD="${CFLAGS_ADD} -std=gnu99" 16679fi 16680 16681 16682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGS_INITIALIZER_OVERRIDES for gcc -Winitializer-overrides" >&5 16683printf %s "checking CFLAGS_INITIALIZER_OVERRIDES for gcc -Winitializer-overrides... " >&6; } 16684if test ${ac_cv_cflags_gcc_option__Winitializer_overrides+y} 16685then : 16686 printf %s "(cached) " >&6 16687else $as_nop 16688 ac_cv_cflags_gcc_option__Winitializer_overrides="no, unknown" 16689 16690 ac_ext=c 16691ac_cpp='$CPP $CPPFLAGS' 16692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16694ac_compiler_gnu=$ac_cv_c_compiler_gnu 16695 16696 ac_save_CFLAGS="$CFLAGS" 16697for ac_arg in "-pedantic -Werror % -Winitializer-overrides" "-pedantic % -Winitializer-overrides %% no, obsolete" # 16698do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16700/* end confdefs.h. */ 16701 16702int 16703main (void) 16704{ 16705return 0; 16706 ; 16707 return 0; 16708} 16709_ACEOF 16710if ac_fn_c_try_compile "$LINENO" 16711then : 16712 ac_cv_cflags_gcc_option__Winitializer_overrides=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 16713fi 16714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16715done 16716 CFLAGS="$ac_save_CFLAGS" 16717 ac_ext=c 16718ac_cpp='$CPP $CPPFLAGS' 16719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16721ac_compiler_gnu=$ac_cv_c_compiler_gnu 16722 16723 16724fi 16725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_gcc_option__Winitializer_overrides" >&5 16726printf "%s\n" "$ac_cv_cflags_gcc_option__Winitializer_overrides" >&6; } 16727case ".$ac_cv_cflags_gcc_option__Winitializer_overrides" in 16728 .ok|.ok,*) CFLAGS_ADD="${CFLAGS_ADD} -Wno-initializer-overrides" 16729 ;; 16730 .|.no|.no,*) ;; 16731 *) CFLAGS_ADD="${CFLAGS_ADD} -Wno-initializer-overrides" 16732 ;; 16733esac 16734 16735 16736CFLAGS="${CFLAGS_ADD} ${ac_cv_env_CFLAGS_value}" 16737 16738# Check whether --enable-largefile was given. 16739if test ${enable_largefile+y} 16740then : 16741 enableval=$enable_largefile; 16742fi 16743 16744if test "$enable_largefile" != no; then 16745 16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16747printf %s "checking for special C compiler options needed for large files... " >&6; } 16748if test ${ac_cv_sys_largefile_CC+y} 16749then : 16750 printf %s "(cached) " >&6 16751else $as_nop 16752 ac_cv_sys_largefile_CC=no 16753 if test "$GCC" != yes; then 16754 ac_save_CC=$CC 16755 while :; do 16756 # IRIX 6.2 and later do not support large files by default, 16757 # so use the C compiler's -n32 option if that helps. 16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16759/* end confdefs.h. */ 16760#include <sys/types.h> 16761 /* Check that off_t can represent 2**63 - 1 correctly. 16762 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16763 since some C++ compilers masquerading as C compilers 16764 incorrectly reject 9223372036854775807. */ 16765#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 16766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16767 && LARGE_OFF_T % 2147483647 == 1) 16768 ? 1 : -1]; 16769int 16770main (void) 16771{ 16772 16773 ; 16774 return 0; 16775} 16776_ACEOF 16777 if ac_fn_c_try_compile "$LINENO" 16778then : 16779 break 16780fi 16781rm -f core conftest.err conftest.$ac_objext conftest.beam 16782 CC="$CC -n32" 16783 if ac_fn_c_try_compile "$LINENO" 16784then : 16785 ac_cv_sys_largefile_CC=' -n32'; break 16786fi 16787rm -f core conftest.err conftest.$ac_objext conftest.beam 16788 break 16789 done 16790 CC=$ac_save_CC 16791 rm -f conftest.$ac_ext 16792 fi 16793fi 16794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16795printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 16796 if test "$ac_cv_sys_largefile_CC" != no; then 16797 CC=$CC$ac_cv_sys_largefile_CC 16798 fi 16799 16800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16801printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 16802if test ${ac_cv_sys_file_offset_bits+y} 16803then : 16804 printf %s "(cached) " >&6 16805else $as_nop 16806 while :; do 16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16808/* end confdefs.h. */ 16809#include <sys/types.h> 16810 /* Check that off_t can represent 2**63 - 1 correctly. 16811 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16812 since some C++ compilers masquerading as C compilers 16813 incorrectly reject 9223372036854775807. */ 16814#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 16815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16816 && LARGE_OFF_T % 2147483647 == 1) 16817 ? 1 : -1]; 16818int 16819main (void) 16820{ 16821 16822 ; 16823 return 0; 16824} 16825_ACEOF 16826if ac_fn_c_try_compile "$LINENO" 16827then : 16828 ac_cv_sys_file_offset_bits=no; break 16829fi 16830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16832/* end confdefs.h. */ 16833#define _FILE_OFFSET_BITS 64 16834#include <sys/types.h> 16835 /* Check that off_t can represent 2**63 - 1 correctly. 16836 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16837 since some C++ compilers masquerading as C compilers 16838 incorrectly reject 9223372036854775807. */ 16839#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 16840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16841 && LARGE_OFF_T % 2147483647 == 1) 16842 ? 1 : -1]; 16843int 16844main (void) 16845{ 16846 16847 ; 16848 return 0; 16849} 16850_ACEOF 16851if ac_fn_c_try_compile "$LINENO" 16852then : 16853 ac_cv_sys_file_offset_bits=64; break 16854fi 16855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16856 ac_cv_sys_file_offset_bits=unknown 16857 break 16858done 16859fi 16860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 16861printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 16862case $ac_cv_sys_file_offset_bits in #( 16863 no | unknown) ;; 16864 *) 16865printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 16866;; 16867esac 16868rm -rf conftest* 16869 if test $ac_cv_sys_file_offset_bits = unknown; then 16870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 16871printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 16872if test ${ac_cv_sys_large_files+y} 16873then : 16874 printf %s "(cached) " >&6 16875else $as_nop 16876 while :; do 16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16878/* end confdefs.h. */ 16879#include <sys/types.h> 16880 /* Check that off_t can represent 2**63 - 1 correctly. 16881 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16882 since some C++ compilers masquerading as C compilers 16883 incorrectly reject 9223372036854775807. */ 16884#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 16885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16886 && LARGE_OFF_T % 2147483647 == 1) 16887 ? 1 : -1]; 16888int 16889main (void) 16890{ 16891 16892 ; 16893 return 0; 16894} 16895_ACEOF 16896if ac_fn_c_try_compile "$LINENO" 16897then : 16898 ac_cv_sys_large_files=no; break 16899fi 16900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16902/* end confdefs.h. */ 16903#define _LARGE_FILES 1 16904#include <sys/types.h> 16905 /* Check that off_t can represent 2**63 - 1 correctly. 16906 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16907 since some C++ compilers masquerading as C compilers 16908 incorrectly reject 9223372036854775807. */ 16909#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 16910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16911 && LARGE_OFF_T % 2147483647 == 1) 16912 ? 1 : -1]; 16913int 16914main (void) 16915{ 16916 16917 ; 16918 return 0; 16919} 16920_ACEOF 16921if ac_fn_c_try_compile "$LINENO" 16922then : 16923 ac_cv_sys_large_files=1; break 16924fi 16925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16926 ac_cv_sys_large_files=unknown 16927 break 16928done 16929fi 16930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 16931printf "%s\n" "$ac_cv_sys_large_files" >&6; } 16932case $ac_cv_sys_large_files in #( 16933 no | unknown) ;; 16934 *) 16935printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 16936;; 16937esac 16938rm -rf conftest* 16939 fi 16940fi 16941 16942 16943# FIXME: skip tests on unsupported platforms/architectures... 16944case "$ostype" in 16945 HP-UX) 16946 if $CC -v 2>&1 | grep gcc > /dev/null; then 16947 CFLAGS="${CFLAGS} -U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED -D_HPUX_SOURCE" 16948 LDFLAGS="${LDFLAGS} -lcl" 16949 16950printf "%s\n" "#define HAVE_BROKEN_PREAD 1" >>confdefs.h 16951 16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NOTE: on HP-UX with gcc, you might need to edit sys/socket.h manually or you'll get compilation errors" >&5 16953printf "%s\n" "$as_me: WARNING: NOTE: on HP-UX with gcc, you might need to edit sys/socket.h manually or you'll get compilation errors" >&2;} 16954 fi 16955 ;; 16956 AIX) 16957 if test "$ac_cv_sys_large_files" -ne 0; then 16958 CFLAGS="${CFLAGS} -D_LARGE_FILES=1" 16959 fi 16960 16961 # NOTE: The -brtl option to the linker must be set before calling the 16962 # configure script, as otherwise the generated libtool will behave 16963 # differently. We need the runtime linker during execution (hence the 16964 # -brtl) to load external modules. Also, please note that with -brtl the 16965 # linker behaves similarly to what is expected on other UNIX systems, 16966 # without it, it refuses to link an .so in if there's no reference from 16967 # the main program, even if there is a proper -llibname option. 16968 LDFLAGS="$LDFLAGS -Wl,-brtl" 16969 MODULE_LDFLAGS="-avoid-version -module" 16970 ;; 16971 Darwin) 16972 MODULE_LDFLAGS="-avoid-version -dylib" 16973 LDFLAGS="$LDFLAGS -Wl,-flat_namespace" 16974 CFLAGS="$CFLAGS -D__APPLE_USE_RFC_3542" 16975 ;; 16976 OSF1) 16977 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE -D_POSIX_C_SOURCE" 16978 ;; 16979esac 16980 16981if test "$enable_dynamic_linking" = "auto" -a "$enable_mixed_linking" = "auto"; then 16982 enable_dynamic_linking="yes" 16983 enable_mixed_linking="no" 16984fi 16985 16986linkopts=0 16987if test "x$enable_dynamic_linking" = "xyes"; then 16988 linkopts=`expr $linkopts + 1` 16989fi 16990if test "x$enable_mixed_linking" = "xyes"; then 16991 linkopts=`expr $linkopts + 1` 16992fi 16993 16994if test "$linkopts" -gt 1; then 16995 as_fn_error $? "You cannot specify multiple linking options at the same time (--enable-dynamic-linking, --enable-mixed-linking)." "$LINENO" 5 16996fi 16997 16998if test "x$enable_dynamic_linking" = "xyes"; then 16999 enable_dynamic_linking="yes" 17000 enable_mixed_linking="no" 17001 linking_mode="dynamic" 17002elif test "x$enable_mixed_linking" = "xyes"; then 17003 enable_dynamic_linking="no" 17004 enable_mixed_linking="yes" 17005 linking_mode="mixed" 17006fi 17007 17008 17009if test $ostype = "Darwin"; then 17010 WHOLE_ARCHIVE_OPT="-all_load" 17011 NO_WHOLE_ARCHIVE_OPT="-noall_load" 17012else 17013 WHOLE_ARCHIVE_OPT="--whole-archive" 17014 NO_WHOLE_ARCHIVE_OPT="--no-whole-archive" 17015fi 17016 17017 17018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17019/* end confdefs.h. */ 17020#include <pthread.h> 17021__thread int a; 17022 17023int 17024main (void) 17025{ 17026a=0; 17027 ; 17028 return 0; 17029} 17030_ACEOF 17031if ac_fn_c_try_link "$LINENO" 17032then : 17033 ac_cv_have_tls=yes; 17034printf "%s\n" "#define HAVE_THREAD_KEYWORD 1" >>confdefs.h 17035 17036fi 17037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17038 conftest$ac_exeext conftest.$ac_ext 17039 17040 17041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to enable static linking for certain libraries" >&5 17042printf %s "checking how to enable static linking for certain libraries... " >&6; } 17043ldversion=`ld -V 2>&1 | head -n 1` 17044if echo $ldversion | egrep "GNU|Solaris" > /dev/null; then 17045 LD_START_STATIC="-Wl,-Bstatic" 17046 LD_END_STATIC="-Wl,-Bdynamic" 17047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GNU or Solaris" >&5 17048printf "%s\n" "GNU or Solaris" >&6; } 17049elif test $ostype = "HP-UX" > /dev/null; then 17050 LD_START_STATIC="-Wl,-a,archive" 17051 LD_END_STATIC="-Wl,-a,shared_archive" 17052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5 17053printf "%s\n" "HP-UX" >&6; } 17054elif test "$ostype" = "AIX"; then 17055 LD_START_STATIC="-Wl,-bstatic" 17056 LD_END_STATIC="-Wl,-bdynamic" 17057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: AIX" >&5 17058printf "%s\n" "AIX" >&6; } 17059else 17060 LD_START_STATIC="" 17061 LD_END_STATIC="" 17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no clues, linking everything dynamically, please send appropriate ld arguments to syslog-ng@lists.balabit.hu" >&5 17063printf "%s\n" "no clues, linking everything dynamically, please send appropriate ld arguments to syslog-ng@lists.balabit.hu" >&6; } 17064fi 17065 17066 17067# Autoupdate added the next two lines to ensure that your configure 17068# script's behavior did not change. They are probably safe to remove. 17069 17070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 17071printf %s "checking for egrep... " >&6; } 17072if test ${ac_cv_path_EGREP+y} 17073then : 17074 printf %s "(cached) " >&6 17075else $as_nop 17076 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 17077 then ac_cv_path_EGREP="$GREP -E" 17078 else 17079 if test -z "$EGREP"; then 17080 ac_path_EGREP_found=false 17081 # Loop through the user's path and test for each of PROGNAME-LIST 17082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17083for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 17084do 17085 IFS=$as_save_IFS 17086 case $as_dir in #((( 17087 '') as_dir=./ ;; 17088 */) ;; 17089 *) as_dir=$as_dir/ ;; 17090 esac 17091 for ac_prog in egrep 17092 do 17093 for ac_exec_ext in '' $ac_executable_extensions; do 17094 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 17095 as_fn_executable_p "$ac_path_EGREP" || continue 17096# Check for GNU ac_path_EGREP and select it if it is found. 17097 # Check for GNU $ac_path_EGREP 17098case `"$ac_path_EGREP" --version 2>&1` in 17099*GNU*) 17100 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 17101*) 17102 ac_count=0 17103 printf %s 0123456789 >"conftest.in" 17104 while : 17105 do 17106 cat "conftest.in" "conftest.in" >"conftest.tmp" 17107 mv "conftest.tmp" "conftest.in" 17108 cp "conftest.in" "conftest.nl" 17109 printf "%s\n" 'EGREP' >> "conftest.nl" 17110 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 17111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 17112 as_fn_arith $ac_count + 1 && ac_count=$as_val 17113 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 17114 # Best one so far, save it but keep looking for a better one 17115 ac_cv_path_EGREP="$ac_path_EGREP" 17116 ac_path_EGREP_max=$ac_count 17117 fi 17118 # 10*(2^10) chars as input seems more than enough 17119 test $ac_count -gt 10 && break 17120 done 17121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 17122esac 17123 17124 $ac_path_EGREP_found && break 3 17125 done 17126 done 17127 done 17128IFS=$as_save_IFS 17129 if test -z "$ac_cv_path_EGREP"; then 17130 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 17131 fi 17132else 17133 ac_cv_path_EGREP=$EGREP 17134fi 17135 17136 fi 17137fi 17138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 17139printf "%s\n" "$ac_cv_path_EGREP" >&6; } 17140 EGREP="$ac_cv_path_EGREP" 17141 17142 17143 17144ac_fn_c_check_header_compile "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default" 17145if test "x$ac_cv_header_dmalloc_h" = xyes 17146then : 17147 17148fi 17149 17150ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 17151if test "x$ac_cv_header_dlfcn_h" = xyes 17152then : 17153 17154fi 17155 17156ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 17157if test "x$ac_cv_header_strings_h" = xyes 17158then : 17159 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 17160 17161fi 17162ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 17163if test "x$ac_cv_header_getopt_h" = xyes 17164then : 17165 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 17166 17167fi 17168ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 17169if test "x$ac_cv_header_stropts_h" = xyes 17170then : 17171 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 17172 17173fi 17174ac_fn_c_check_header_compile "$LINENO" "sys/strlog.h" "ac_cv_header_sys_strlog_h" "$ac_includes_default" 17175if test "x$ac_cv_header_sys_strlog_h" = xyes 17176then : 17177 printf "%s\n" "#define HAVE_SYS_STRLOG_H 1" >>confdefs.h 17178 17179fi 17180ac_fn_c_check_header_compile "$LINENO" "door.h" "ac_cv_header_door_h" "$ac_includes_default" 17181if test "x$ac_cv_header_door_h" = xyes 17182then : 17183 printf "%s\n" "#define HAVE_DOOR_H 1" >>confdefs.h 17184 17185fi 17186ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 17187if test "x$ac_cv_header_sys_capability_h" = xyes 17188then : 17189 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h 17190 17191fi 17192ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 17193if test "x$ac_cv_header_sys_prctl_h" = xyes 17194then : 17195 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h 17196 17197fi 17198ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 17199if test "x$ac_cv_header_utmp_h" = xyes 17200then : 17201 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h 17202 17203fi 17204ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" 17205if test "x$ac_cv_header_utmpx_h" = xyes 17206then : 17207 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h 17208 17209fi 17210 17211ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" 17212if test "x$ac_cv_header_tcpd_h" = xyes 17213then : 17214 printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h 17215 17216fi 17217 17218 17219ac_fn_c_check_type "$LINENO" "struct ucred" "ac_cv_type_struct_ucred" "#define _GNU_SOURCE 1 17220#define _DEFAULT_SOURCE 1 17221#include <sys/types.h> 17222#include <sys/socket.h> 17223" 17224if test "x$ac_cv_type_struct_ucred" = xyes 17225then : 17226 17227printf "%s\n" "#define HAVE_STRUCT_UCRED 1" >>confdefs.h 17228 17229 17230fi 17231ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#define _GNU_SOURCE 1 17232#define _DEFAULT_SOURCE 1 17233#include <sys/types.h> 17234#include <sys/socket.h> 17235" 17236if test "x$ac_cv_type_struct_cmsgcred" = xyes 17237then : 17238 17239printf "%s\n" "#define HAVE_STRUCT_CMSGCRED 1" >>confdefs.h 17240 17241 17242fi 17243 17244 17245 17246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17247printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17248if test ${ac_cv_struct_tm+y} 17249then : 17250 printf %s "(cached) " >&6 17251else $as_nop 17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253/* end confdefs.h. */ 17254#include <sys/types.h> 17255#include <time.h> 17256 17257int 17258main (void) 17259{ 17260struct tm tm; 17261 int *p = &tm.tm_sec; 17262 return !p; 17263 ; 17264 return 0; 17265} 17266_ACEOF 17267if ac_fn_c_try_compile "$LINENO" 17268then : 17269 ac_cv_struct_tm=time.h 17270else $as_nop 17271 ac_cv_struct_tm=sys/time.h 17272fi 17273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17274fi 17275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17276printf "%s\n" "$ac_cv_struct_tm" >&6; } 17277if test $ac_cv_struct_tm = sys/time.h; then 17278 17279printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 17280 17281fi 17282 17283 17284ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" " 17285#if TM_IN_SYS_TIME 17286#include <sys/time.h> 17287#else 17288#include <time.h> 17289#endif 17290" 17291if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes 17292then : 17293 17294printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 17295 17296fi 17297 17298 17299ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 17300#include <sys/socket.h> 17301 17302" 17303if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 17304then : 17305 17306printf "%s\n" "#define HAVE_CTRLBUF_IN_MSGHDR 1" >>confdefs.h 17307 17308fi 17309 17310 17311ac_ext=c 17312ac_cpp='$CPP $CPPFLAGS' 17313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17315ac_compiler_gnu=$ac_cv_c_compiler_gnu 17316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 17317printf %s "checking how to run the C preprocessor... " >&6; } 17318# On Suns, sometimes $CPP names a directory. 17319if test -n "$CPP" && test -d "$CPP"; then 17320 CPP= 17321fi 17322if test -z "$CPP"; then 17323 if test ${ac_cv_prog_CPP+y} 17324then : 17325 printf %s "(cached) " >&6 17326else $as_nop 17327 # Double quotes because $CC needs to be expanded 17328 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 17329 do 17330 ac_preproc_ok=false 17331for ac_c_preproc_warn_flag in '' yes 17332do 17333 # Use a header file that comes with gcc, so configuring glibc 17334 # with a fresh cross-compiler works. 17335 # On the NeXT, cc -E runs the code through the compiler's parser, 17336 # not just through cpp. "Syntax error" is here to catch this case. 17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17338/* end confdefs.h. */ 17339#include <limits.h> 17340 Syntax error 17341_ACEOF 17342if ac_fn_c_try_cpp "$LINENO" 17343then : 17344 17345else $as_nop 17346 # Broken: fails on valid input. 17347continue 17348fi 17349rm -f conftest.err conftest.i conftest.$ac_ext 17350 17351 # OK, works on sane cases. Now check whether nonexistent headers 17352 # can be detected and how. 17353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17354/* end confdefs.h. */ 17355#include <ac_nonexistent.h> 17356_ACEOF 17357if ac_fn_c_try_cpp "$LINENO" 17358then : 17359 # Broken: success on invalid input. 17360continue 17361else $as_nop 17362 # Passes both tests. 17363ac_preproc_ok=: 17364break 17365fi 17366rm -f conftest.err conftest.i conftest.$ac_ext 17367 17368done 17369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17370rm -f conftest.i conftest.err conftest.$ac_ext 17371if $ac_preproc_ok 17372then : 17373 break 17374fi 17375 17376 done 17377 ac_cv_prog_CPP=$CPP 17378 17379fi 17380 CPP=$ac_cv_prog_CPP 17381else 17382 ac_cv_prog_CPP=$CPP 17383fi 17384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 17385printf "%s\n" "$CPP" >&6; } 17386ac_preproc_ok=false 17387for ac_c_preproc_warn_flag in '' yes 17388do 17389 # Use a header file that comes with gcc, so configuring glibc 17390 # with a fresh cross-compiler works. 17391 # On the NeXT, cc -E runs the code through the compiler's parser, 17392 # not just through cpp. "Syntax error" is here to catch this case. 17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17394/* end confdefs.h. */ 17395#include <limits.h> 17396 Syntax error 17397_ACEOF 17398if ac_fn_c_try_cpp "$LINENO" 17399then : 17400 17401else $as_nop 17402 # Broken: fails on valid input. 17403continue 17404fi 17405rm -f conftest.err conftest.i conftest.$ac_ext 17406 17407 # OK, works on sane cases. Now check whether nonexistent headers 17408 # can be detected and how. 17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17410/* end confdefs.h. */ 17411#include <ac_nonexistent.h> 17412_ACEOF 17413if ac_fn_c_try_cpp "$LINENO" 17414then : 17415 # Broken: success on invalid input. 17416continue 17417else $as_nop 17418 # Passes both tests. 17419ac_preproc_ok=: 17420break 17421fi 17422rm -f conftest.err conftest.i conftest.$ac_ext 17423 17424done 17425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17426rm -f conftest.i conftest.err conftest.$ac_ext 17427if $ac_preproc_ok 17428then : 17429 17430else $as_nop 17431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17432printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17433as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 17434See \`config.log' for more details" "$LINENO" 5; } 17435fi 17436 17437ac_ext=c 17438ac_cpp='$CPP $CPPFLAGS' 17439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17441ac_compiler_gnu=$ac_cv_c_compiler_gnu 17442 17443 17444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for I_CONSLOG" >&5 17445printf %s "checking for I_CONSLOG... " >&6; } 17446if test ${blb_cv_c_i_conslog+y} 17447then : 17448 printf %s "(cached) " >&6 17449else $as_nop 17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17451/* end confdefs.h. */ 17452 17453#include <sys/strlog.h> 17454I_CONSLOG 17455 17456_ACEOF 17457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17458 $EGREP "I_CONSLOG" >/dev/null 2>&1 17459then : 17460 blb_cv_c_i_conslog=no 17461else $as_nop 17462 blb_cv_c_i_conslog=yes 17463fi 17464rm -rf conftest* 17465 17466fi 17467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_c_i_conslog" >&5 17468printf "%s\n" "$blb_cv_c_i_conslog" >&6; } 17469 17470old_CPPFLAGS=$CPPFLAGS 17471CPPFLAGS="-D_GNU_SOURCE -D_DEFAULT_SOURCE" 17472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_LARGEFILE" >&5 17473printf %s "checking for O_LARGEFILE... " >&6; } 17474if test ${blb_cv_c_o_largefile+y} 17475then : 17476 printf %s "(cached) " >&6 17477else $as_nop 17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17479/* end confdefs.h. */ 17480 17481#include <fcntl.h> 17482O_LARGEFILE 17483 17484_ACEOF 17485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17486 $EGREP "O_LARGEFILE" >/dev/null 2>&1 17487then : 17488 blb_cv_c_o_largefile=no 17489else $as_nop 17490 blb_cv_c_o_largefile=yes 17491fi 17492rm -rf conftest* 17493 17494fi 17495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_c_o_largefile" >&5 17496printf "%s\n" "$blb_cv_c_o_largefile" >&6; } 17497CPPFLAGS=$old_CPPFLAGS 17498 17499if test "x$blb_cv_c_o_largefile" = "xyes"; then 17500 17501printf "%s\n" "#define HAVE_O_LARGEFILE 1" >>confdefs.h 17502 17503fi 17504 17505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 17506printf %s "checking for struct sockaddr_storage... " >&6; } 17507if test ${blb_cv_c_struct_sockaddr_storage+y} 17508then : 17509 printf %s "(cached) " >&6 17510else $as_nop 17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17512/* end confdefs.h. */ 17513#include <sys/socket.h> 17514 17515_ACEOF 17516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17517 $EGREP "sockaddr_storage" >/dev/null 2>&1 17518then : 17519 blb_cv_c_struct_sockaddr_storage=yes 17520else $as_nop 17521 blb_cv_c_struct_sockaddr_storage=no 17522fi 17523rm -rf conftest* 17524 17525fi 17526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_c_struct_sockaddr_storage" >&5 17527printf "%s\n" "$blb_cv_c_struct_sockaddr_storage" >&6; } 17528 17529if test "$blb_cv_c_struct_sockaddr_storage" = "yes"; then 17530 17531printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 17532 17533fi 17534 17535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 17536printf %s "checking for struct sockaddr_in6... " >&6; } 17537if test ${blb_cv_c_struct_sockaddr_in6+y} 17538then : 17539 printf %s "(cached) " >&6 17540else $as_nop 17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17542/* end confdefs.h. */ 17543#include <netinet/in.h> 17544 17545_ACEOF 17546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17547 $EGREP "sockaddr_in6" >/dev/null 2>&1 17548then : 17549 blb_cv_c_struct_sockaddr_in6=yes 17550else $as_nop 17551 blb_cv_c_struct_sockaddr_in6=no 17552fi 17553rm -rf conftest* 17554 17555fi 17556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_c_struct_sockaddr_in6" >&5 17557printf "%s\n" "$blb_cv_c_struct_sockaddr_in6" >&6; } 17558 17559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PR_SET_KEEPCAPS" >&5 17560printf %s "checking for PR_SET_KEEPCAPS... " >&6; } 17561if test ${blb_cv_keepcaps+y} 17562then : 17563 printf %s "(cached) " >&6 17564else $as_nop 17565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17566/* end confdefs.h. */ 17567 17568#include <sys/prctl.h> 17569 17570PR_SET_KEEPCAPS 17571 17572_ACEOF 17573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17574 $EGREP "PR_SET_KEEPCAPS" >/dev/null 2>&1 17575then : 17576 blb_cv_keepcaps=no 17577else $as_nop 17578 blb_cv_keepcaps=yes 17579fi 17580rm -rf conftest* 17581 17582fi 17583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_keepcaps" >&5 17584printf "%s\n" "$blb_cv_keepcaps" >&6; } 17585 17586if test "x$blb_cv_keepcaps" = "xyes"; then 17587 17588printf "%s\n" "#define HAVE_PR_SET_KEEPCAPS 1" >>confdefs.h 17589 17590fi 17591 17592if test "$ostype" != "Darwin" ; then 17593 17594printf "%s\n" "#define HAVE_ENVIRON 1" >>confdefs.h 17595 17596fi 17597 17598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for modern utmp" >&5 17599printf %s "checking for modern utmp... " >&6; } 17600if test ${blb_cv_c_modern_utmp+y} 17601then : 17602 printf %s "(cached) " >&6 17603else $as_nop 17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605/* end confdefs.h. */ 17606 17607#ifdef HAVE_UTMPX_H 17608#include <utmpx.h> 17609#else 17610#include <utmp.h> 17611#endif 17612 17613int 17614main (void) 17615{ 17616 17617#ifdef HAVE_UTMPX_H 17618 struct utmpx ut; 17619#else 17620 struct utmp ut; 17621#endif 17622 return sizeof(ut.ut_type) & sizeof(ut.ut_user); 17623 17624 ; 17625 return 0; 17626} 17627_ACEOF 17628if ac_fn_c_try_compile "$LINENO" 17629then : 17630 blb_cv_c_modern_utmp=yes 17631else $as_nop 17632 blb_cv_c_modern_utmp=no 17633fi 17634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17635fi 17636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_c_modern_utmp" >&5 17637printf "%s\n" "$blb_cv_c_modern_utmp" >&6; } 17638 17639if test "x$blb_cv_c_modern_utmp" = "xyes"; then 17640 17641printf "%s\n" "#define HAVE_MODERN_UTMP 1" >>confdefs.h 17642 17643fi 17644 17645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for door_create in -ldoor" >&5 17646printf %s "checking for door_create in -ldoor... " >&6; } 17647if test ${ac_cv_lib_door_door_create+y} 17648then : 17649 printf %s "(cached) " >&6 17650else $as_nop 17651 ac_check_lib_save_LIBS=$LIBS 17652LIBS="-ldoor $LIBS" 17653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17654/* end confdefs.h. */ 17655 17656/* Override any GCC internal prototype to avoid an error. 17657 Use char because int might match the return type of a GCC 17658 builtin and then its argument prototype would still apply. */ 17659char door_create (); 17660int 17661main (void) 17662{ 17663return door_create (); 17664 ; 17665 return 0; 17666} 17667_ACEOF 17668if ac_fn_c_try_link "$LINENO" 17669then : 17670 ac_cv_lib_door_door_create=yes 17671else $as_nop 17672 ac_cv_lib_door_door_create=no 17673fi 17674rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17675 conftest$ac_exeext conftest.$ac_ext 17676LIBS=$ac_check_lib_save_LIBS 17677fi 17678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_door_door_create" >&5 17679printf "%s\n" "$ac_cv_lib_door_door_create" >&6; } 17680if test "x$ac_cv_lib_door_door_create" = xyes 17681then : 17682 BASE_LIBS="$BASE_LIBS -ldoor" 17683fi 17684 17685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 17686printf %s "checking for socket in -lsocket... " >&6; } 17687if test ${ac_cv_lib_socket_socket+y} 17688then : 17689 printf %s "(cached) " >&6 17690else $as_nop 17691 ac_check_lib_save_LIBS=$LIBS 17692LIBS="-lsocket $LIBS" 17693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17694/* end confdefs.h. */ 17695 17696/* Override any GCC internal prototype to avoid an error. 17697 Use char because int might match the return type of a GCC 17698 builtin and then its argument prototype would still apply. */ 17699char socket (); 17700int 17701main (void) 17702{ 17703return socket (); 17704 ; 17705 return 0; 17706} 17707_ACEOF 17708if ac_fn_c_try_link "$LINENO" 17709then : 17710 ac_cv_lib_socket_socket=yes 17711else $as_nop 17712 ac_cv_lib_socket_socket=no 17713fi 17714rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17715 conftest$ac_exeext conftest.$ac_ext 17716LIBS=$ac_check_lib_save_LIBS 17717fi 17718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 17719printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } 17720if test "x$ac_cv_lib_socket_socket" = xyes 17721then : 17722 BASE_LIBS="$BASE_LIBS -lsocket" 17723fi 17724 17725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 17726printf %s "checking for nanosleep in -lrt... " >&6; } 17727if test ${ac_cv_lib_rt_nanosleep+y} 17728then : 17729 printf %s "(cached) " >&6 17730else $as_nop 17731 ac_check_lib_save_LIBS=$LIBS 17732LIBS="-lrt $LIBS" 17733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17734/* end confdefs.h. */ 17735 17736/* Override any GCC internal prototype to avoid an error. 17737 Use char because int might match the return type of a GCC 17738 builtin and then its argument prototype would still apply. */ 17739char nanosleep (); 17740int 17741main (void) 17742{ 17743return nanosleep (); 17744 ; 17745 return 0; 17746} 17747_ACEOF 17748if ac_fn_c_try_link "$LINENO" 17749then : 17750 ac_cv_lib_rt_nanosleep=yes 17751else $as_nop 17752 ac_cv_lib_rt_nanosleep=no 17753fi 17754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17755 conftest$ac_exeext conftest.$ac_ext 17756LIBS=$ac_check_lib_save_LIBS 17757fi 17758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 17759printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } 17760if test "x$ac_cv_lib_rt_nanosleep" = xyes 17761then : 17762 BASE_LIBS="$BASE_LIBS -lrt" 17763fi 17764 17765ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17766if test "x$ac_cv_func_gethostbyname" = xyes 17767then : 17768 17769else $as_nop 17770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 17771printf %s "checking for gethostbyname in -lnsl... " >&6; } 17772if test ${ac_cv_lib_nsl_gethostbyname+y} 17773then : 17774 printf %s "(cached) " >&6 17775else $as_nop 17776 ac_check_lib_save_LIBS=$LIBS 17777LIBS="-lnsl $LIBS" 17778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17779/* end confdefs.h. */ 17780 17781/* Override any GCC internal prototype to avoid an error. 17782 Use char because int might match the return type of a GCC 17783 builtin and then its argument prototype would still apply. */ 17784char gethostbyname (); 17785int 17786main (void) 17787{ 17788return gethostbyname (); 17789 ; 17790 return 0; 17791} 17792_ACEOF 17793if ac_fn_c_try_link "$LINENO" 17794then : 17795 ac_cv_lib_nsl_gethostbyname=yes 17796else $as_nop 17797 ac_cv_lib_nsl_gethostbyname=no 17798fi 17799rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17800 conftest$ac_exeext conftest.$ac_ext 17801LIBS=$ac_check_lib_save_LIBS 17802fi 17803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 17804printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } 17805if test "x$ac_cv_lib_nsl_gethostbyname" = xyes 17806then : 17807 BASE_LIBS="$BASE_LIBS -lnsl" 17808fi 17809 17810fi 17811 17812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lregex" >&5 17813printf %s "checking for regexec in -lregex... " >&6; } 17814if test ${ac_cv_lib_regex_regexec+y} 17815then : 17816 printf %s "(cached) " >&6 17817else $as_nop 17818 ac_check_lib_save_LIBS=$LIBS 17819LIBS="-lregex $LIBS" 17820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17821/* end confdefs.h. */ 17822 17823/* Override any GCC internal prototype to avoid an error. 17824 Use char because int might match the return type of a GCC 17825 builtin and then its argument prototype would still apply. */ 17826char regexec (); 17827int 17828main (void) 17829{ 17830return regexec (); 17831 ; 17832 return 0; 17833} 17834_ACEOF 17835if ac_fn_c_try_link "$LINENO" 17836then : 17837 ac_cv_lib_regex_regexec=yes 17838else $as_nop 17839 ac_cv_lib_regex_regexec=no 17840fi 17841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17842 conftest$ac_exeext conftest.$ac_ext 17843LIBS=$ac_check_lib_save_LIBS 17844fi 17845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regexec" >&5 17846printf "%s\n" "$ac_cv_lib_regex_regexec" >&6; } 17847if test "x$ac_cv_lib_regex_regexec" = xyes 17848then : 17849 REGEX_LIBS="-lregex" 17850fi 17851 17852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_init in -lresolv" >&5 17853printf %s "checking for res_init in -lresolv... " >&6; } 17854if test ${ac_cv_lib_resolv_res_init+y} 17855then : 17856 printf %s "(cached) " >&6 17857else $as_nop 17858 ac_check_lib_save_LIBS=$LIBS 17859LIBS="-lresolv $LIBS" 17860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17861/* end confdefs.h. */ 17862 17863/* Override any GCC internal prototype to avoid an error. 17864 Use char because int might match the return type of a GCC 17865 builtin and then its argument prototype would still apply. */ 17866char res_init (); 17867int 17868main (void) 17869{ 17870return res_init (); 17871 ; 17872 return 0; 17873} 17874_ACEOF 17875if ac_fn_c_try_link "$LINENO" 17876then : 17877 ac_cv_lib_resolv_res_init=yes 17878else $as_nop 17879 ac_cv_lib_resolv_res_init=no 17880fi 17881rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17882 conftest$ac_exeext conftest.$ac_ext 17883LIBS=$ac_check_lib_save_LIBS 17884fi 17885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_init" >&5 17886printf "%s\n" "$ac_cv_lib_resolv_res_init" >&6; } 17887if test "x$ac_cv_lib_resolv_res_init" = xyes 17888then : 17889 RESOLV_LIBS="-lresolv" 17890fi 17891 17892 17893ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 17894if test "x$ac_cv_func_strdup" = xyes 17895then : 17896 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 17897 17898fi 17899ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 17900if test "x$ac_cv_func_strtol" = xyes 17901then : 17902 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h 17903 17904fi 17905ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 17906if test "x$ac_cv_func_strtoll" = xyes 17907then : 17908 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 17909 17910fi 17911ac_fn_c_check_func "$LINENO" "strtoimax" "ac_cv_func_strtoimax" 17912if test "x$ac_cv_func_strtoimax" = xyes 17913then : 17914 printf "%s\n" "#define HAVE_STRTOIMAX 1" >>confdefs.h 17915 17916fi 17917ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 17918if test "x$ac_cv_func_inet_aton" = xyes 17919then : 17920 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 17921 17922fi 17923ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa" 17924if test "x$ac_cv_func_inet_ntoa" = xyes 17925then : 17926 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h 17927 17928fi 17929ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 17930if test "x$ac_cv_func_getaddrinfo" = xyes 17931then : 17932 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 17933 17934fi 17935ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 17936if test "x$ac_cv_func_getnameinfo" = xyes 17937then : 17938 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 17939 17940fi 17941ac_fn_c_check_func "$LINENO" "getutent" "ac_cv_func_getutent" 17942if test "x$ac_cv_func_getutent" = xyes 17943then : 17944 printf "%s\n" "#define HAVE_GETUTENT 1" >>confdefs.h 17945 17946fi 17947ac_fn_c_check_func "$LINENO" "getutxent" "ac_cv_func_getutxent" 17948if test "x$ac_cv_func_getutxent" = xyes 17949then : 17950 printf "%s\n" "#define HAVE_GETUTXENT 1" >>confdefs.h 17951 17952fi 17953ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 17954if test "x$ac_cv_func_pread" = xyes 17955then : 17956 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 17957 17958fi 17959ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" 17960if test "x$ac_cv_func_pwrite" = xyes 17961then : 17962 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h 17963 17964fi 17965ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 17966if test "x$ac_cv_func_strcasestr" = xyes 17967then : 17968 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 17969 17970fi 17971ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 17972if test "x$ac_cv_func_memrchr" = xyes 17973then : 17974 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h 17975 17976fi 17977ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 17978if test "x$ac_cv_func_localtime_r" = xyes 17979then : 17980 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 17981 17982fi 17983ac_fn_c_check_func "$LINENO" "getprotobynumber_r" "ac_cv_func_getprotobynumber_r" 17984if test "x$ac_cv_func_getprotobynumber_r" = xyes 17985then : 17986 printf "%s\n" "#define HAVE_GETPROTOBYNUMBER_R 1" >>confdefs.h 17987 17988fi 17989ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 17990if test "x$ac_cv_func_gmtime_r" = xyes 17991then : 17992 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 17993 17994fi 17995ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 17996if test "x$ac_cv_func_strnlen" = xyes 17997then : 17998 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 17999 18000fi 18001ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 18002if test "x$ac_cv_func_strtok_r" = xyes 18003then : 18004 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h 18005 18006fi 18007 18008old_LIBS=$LIBS 18009LIBS=$BASE_LIBS 18010ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 18011if test "x$ac_cv_func_clock_gettime" = xyes 18012then : 18013 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 18014 18015fi 18016 18017LIBS=$old_LIBS 18018 18019ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" 18020if test "x$ac_cv_func_inotify_init" = xyes 18021then : 18022 printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h 18023 18024fi 18025 18026 18027ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 18028if test "x$ac_cv_func_getrandom" = xyes 18029then : 18030 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 18031 18032fi 18033 18034 18035 18036EVTLOG_LIBS="\$(top_builddir)/lib/eventlog/src/libevtlog.la" 18037EVTLOG_NO_LIBTOOL_LIBS="\$(top_builddir)/lib/eventlog/src/.libs/libevtlog.so" 18038EVTLOG_CFLAGS="-I\$(top_srcdir)/lib/eventlog/src -I\$(top_builddir)/lib/eventlog/src" 18039 18040 18041SECRETSTORAGE_LIBS="\$(top_builddir)/lib/secret-storage/libsecret-storage.la" 18042SECRETSTORAGE_NO_LIBTOOL_LIBS="\$(top_builddir)/lib/secret-storage/.libs/libsecret-storage.so" 18043 18044 18045old_LIBS=$LIBS 18046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCP wrapper library" >&5 18047printf %s "checking for TCP wrapper library... " >&6; } 18048if test ${blb_cv_c_lwrap+y} 18049then : 18050 printf %s "(cached) " >&6 18051else $as_nop 18052 for libwrap in "-lwrap" "/usr/local/lib/libwrap.a"; do 18053 LIBS="$old_LIBS $libwrap" 18054 18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18056/* end confdefs.h. */ 18057 18058int 18059main (void) 18060{ 18061 18062} 18063 18064int allow_severity; 18065int deny_severity; 18066extern int hosts_access(void); 18067 18068int foo(void) 18069{ 18070 hosts_access(); 18071 18072 ; 18073 return 0; 18074} 18075_ACEOF 18076if ac_fn_c_try_link "$LINENO" 18077then : 18078 blb_cv_c_lwrap=$libwrap 18079 break 18080else $as_nop 18081 blb_cv_c_lwrap="" 18082fi 18083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18084 conftest$ac_exeext conftest.$ac_ext 18085done 18086 18087 18088fi 18089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_c_lwrap" >&5 18090printf "%s\n" "$blb_cv_c_lwrap" >&6; } 18091LIBS=$old_LIBS 18092LIBWRAP_LIBS=$blb_cv_c_lwrap 18093 18094if test "x$enable_tcp_wrapper" = "xauto"; then 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TCP wrapper support" >&5 18096printf %s "checking whether to enable TCP wrapper support... " >&6; } 18097 if test "x$ac_cv_header_tcpd_h" = "xyes" -a "x$blb_cv_c_lwrap" != "x"; then 18098 enable_tcp_wrapper=yes 18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18100printf "%s\n" "yes" >&6; } 18101 else 18102 LIBWRAP_LIBS="" 18103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18104printf "%s\n" "no" >&6; } 18105 enable_tcp_wrapper=no 18106 fi 18107elif test "x$enable_tcp_wrapper" != "xyes"; then 18108 LIBWRAP_LIBS="" 18109fi 18110 18111 18112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 18113printf %s "checking for dlsym in -ldl... " >&6; } 18114if test ${ac_cv_lib_dl_dlsym+y} 18115then : 18116 printf %s "(cached) " >&6 18117else $as_nop 18118 ac_check_lib_save_LIBS=$LIBS 18119LIBS="-ldl $LIBS" 18120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18121/* end confdefs.h. */ 18122 18123/* Override any GCC internal prototype to avoid an error. 18124 Use char because int might match the return type of a GCC 18125 builtin and then its argument prototype would still apply. */ 18126char dlsym (); 18127int 18128main (void) 18129{ 18130return dlsym (); 18131 ; 18132 return 0; 18133} 18134_ACEOF 18135if ac_fn_c_try_link "$LINENO" 18136then : 18137 ac_cv_lib_dl_dlsym=yes 18138else $as_nop 18139 ac_cv_lib_dl_dlsym=no 18140fi 18141rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18142 conftest$ac_exeext conftest.$ac_ext 18143LIBS=$ac_check_lib_save_LIBS 18144fi 18145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 18146printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; } 18147if test "x$ac_cv_lib_dl_dlsym" = xyes 18148then : 18149 DL_LIBS="-ldl" 18150fi 18151 18152 18153if test "x$enable_sql" = "xyes" || test "x$enable_sql" = "xauto"; then 18154 18155pkg_failed=no 18156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbi >= $LIBDBI_MIN_VERSION" >&5 18157printf %s "checking for dbi >= $LIBDBI_MIN_VERSION... " >&6; } 18158 18159if test -n "$LIBDBI_CFLAGS"; then 18160 pkg_cv_LIBDBI_CFLAGS="$LIBDBI_CFLAGS" 18161 elif test -n "$PKG_CONFIG"; then 18162 if test -n "$PKG_CONFIG" && \ 18163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbi >= \$LIBDBI_MIN_VERSION\""; } >&5 18164 ($PKG_CONFIG --exists --print-errors "dbi >= $LIBDBI_MIN_VERSION") 2>&5 18165 ac_status=$? 18166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18167 test $ac_status = 0; }; then 18168 pkg_cv_LIBDBI_CFLAGS=`$PKG_CONFIG --cflags "dbi >= $LIBDBI_MIN_VERSION" 2>/dev/null` 18169 test "x$?" != "x0" && pkg_failed=yes 18170else 18171 pkg_failed=yes 18172fi 18173 else 18174 pkg_failed=untried 18175fi 18176if test -n "$LIBDBI_LIBS"; then 18177 pkg_cv_LIBDBI_LIBS="$LIBDBI_LIBS" 18178 elif test -n "$PKG_CONFIG"; then 18179 if test -n "$PKG_CONFIG" && \ 18180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbi >= \$LIBDBI_MIN_VERSION\""; } >&5 18181 ($PKG_CONFIG --exists --print-errors "dbi >= $LIBDBI_MIN_VERSION") 2>&5 18182 ac_status=$? 18183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18184 test $ac_status = 0; }; then 18185 pkg_cv_LIBDBI_LIBS=`$PKG_CONFIG --libs "dbi >= $LIBDBI_MIN_VERSION" 2>/dev/null` 18186 test "x$?" != "x0" && pkg_failed=yes 18187else 18188 pkg_failed=yes 18189fi 18190 else 18191 pkg_failed=untried 18192fi 18193 18194 18195 18196if test $pkg_failed = yes; then 18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18198printf "%s\n" "no" >&6; } 18199 18200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18201 _pkg_short_errors_supported=yes 18202else 18203 _pkg_short_errors_supported=no 18204fi 18205 if test $_pkg_short_errors_supported = yes; then 18206 LIBDBI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbi >= $LIBDBI_MIN_VERSION" 2>&1` 18207 else 18208 LIBDBI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbi >= $LIBDBI_MIN_VERSION" 2>&1` 18209 fi 18210 # Put the nasty error message in config.log where it belongs 18211 echo "$LIBDBI_PKG_ERRORS" >&5 18212 18213 with_libdbi="0" 18214elif test $pkg_failed = untried; then 18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18216printf "%s\n" "no" >&6; } 18217 with_libdbi="0" 18218else 18219 LIBDBI_CFLAGS=$pkg_cv_LIBDBI_CFLAGS 18220 LIBDBI_LIBS=$pkg_cv_LIBDBI_LIBS 18221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18222printf "%s\n" "yes" >&6; } 18223 with_libdbi="1" 18224fi 18225 if test "$with_libdbi" -eq 0; then 18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize_r in -ldbi" >&5 18227printf %s "checking for dbi_initialize_r in -ldbi... " >&6; } 18228if test ${ac_cv_lib_dbi_dbi_initialize_r+y} 18229then : 18230 printf %s "(cached) " >&6 18231else $as_nop 18232 ac_check_lib_save_LIBS=$LIBS 18233LIBS="-ldbi $LIBS" 18234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18235/* end confdefs.h. */ 18236 18237/* Override any GCC internal prototype to avoid an error. 18238 Use char because int might match the return type of a GCC 18239 builtin and then its argument prototype would still apply. */ 18240char dbi_initialize_r (); 18241int 18242main (void) 18243{ 18244return dbi_initialize_r (); 18245 ; 18246 return 0; 18247} 18248_ACEOF 18249if ac_fn_c_try_link "$LINENO" 18250then : 18251 ac_cv_lib_dbi_dbi_initialize_r=yes 18252else $as_nop 18253 ac_cv_lib_dbi_dbi_initialize_r=no 18254fi 18255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18256 conftest$ac_exeext conftest.$ac_ext 18257LIBS=$ac_check_lib_save_LIBS 18258fi 18259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize_r" >&5 18260printf "%s\n" "$ac_cv_lib_dbi_dbi_initialize_r" >&6; } 18261if test "x$ac_cv_lib_dbi_dbi_initialize_r" = xyes 18262then : 18263 LIBDBI_LIBS="-ldbi"; LIBDBI_CFLAGS="-I/usr/include/dbi"; with_libdbi="1" 18264fi 18265 18266 fi 18267 18268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SQL support" >&5 18269printf %s "checking whether to enable SQL support... " >&6; } 18270 if test "$with_libdbi" -eq 1; then 18271 enable_sql="yes" 18272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18273printf "%s\n" "yes" >&6; } 18274 elif test "x$enable_sql" = "xyes"; then 18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18276printf "%s\n" "no" >&6; } 18277 enable_sql="no" 18278 as_fn_error $? "Could not find libdbi, and SQL support was explicitly enabled." "$LINENO" 5 18279 else 18280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18281printf "%s\n" "no" >&6; } 18282 fi 18283fi 18284 18285 18286GLIB_ADDONS="gmodule-2.0 gthread-2.0" 18287 18288pkg_failed=no 18289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS" >&5 18290printf %s "checking for glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS... " >&6; } 18291 18292if test -n "$GLIB_CFLAGS"; then 18293 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 18294 elif test -n "$PKG_CONFIG"; then 18295 if test -n "$PKG_CONFIG" && \ 18296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_MIN_VERSION \$GLIB_ADDONS\""; } >&5 18297 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS") 2>&5 18298 ac_status=$? 18299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18300 test $ac_status = 0; }; then 18301 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS" 2>/dev/null` 18302 test "x$?" != "x0" && pkg_failed=yes 18303else 18304 pkg_failed=yes 18305fi 18306 else 18307 pkg_failed=untried 18308fi 18309if test -n "$GLIB_LIBS"; then 18310 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 18311 elif test -n "$PKG_CONFIG"; then 18312 if test -n "$PKG_CONFIG" && \ 18313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_MIN_VERSION \$GLIB_ADDONS\""; } >&5 18314 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS") 2>&5 18315 ac_status=$? 18316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18317 test $ac_status = 0; }; then 18318 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS" 2>/dev/null` 18319 test "x$?" != "x0" && pkg_failed=yes 18320else 18321 pkg_failed=yes 18322fi 18323 else 18324 pkg_failed=untried 18325fi 18326 18327 18328 18329if test $pkg_failed = yes; then 18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18331printf "%s\n" "no" >&6; } 18332 18333if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18334 _pkg_short_errors_supported=yes 18335else 18336 _pkg_short_errors_supported=no 18337fi 18338 if test $_pkg_short_errors_supported = yes; then 18339 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS" 2>&1` 18340 else 18341 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS" 2>&1` 18342 fi 18343 # Put the nasty error message in config.log where it belongs 18344 echo "$GLIB_PKG_ERRORS" >&5 18345 18346 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_MIN_VERSION $GLIB_ADDONS) were not met: 18347 18348$GLIB_PKG_ERRORS 18349 18350Consider adjusting the PKG_CONFIG_PATH environment variable if you 18351installed software in a non-standard prefix. 18352 18353Alternatively, you may set the environment variables GLIB_CFLAGS 18354and GLIB_LIBS to avoid the need to call pkg-config. 18355See the pkg-config man page for more details." "$LINENO" 5 18356elif test $pkg_failed = untried; then 18357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18358printf "%s\n" "no" >&6; } 18359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18360printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18361as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18362is in your PATH or set the PKG_CONFIG environment variable to the full 18363path to pkg-config. 18364 18365Alternatively, you may set the environment variables GLIB_CFLAGS 18366and GLIB_LIBS to avoid the need to call pkg-config. 18367See the pkg-config man page for more details. 18368 18369To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18370See \`config.log' for more details" "$LINENO" 5; } 18371else 18372 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 18373 GLIB_LIBS=$pkg_cv_GLIB_LIBS 18374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18375printf "%s\n" "yes" >&6; } 18376 18377fi 18378 18379if test "$linking_mode" != "dynamic"; then 18380 # strip out -ldl & -lrt as it cannot be linked statically 18381 GLIB_LIBS=`echo $GLIB_LIBS | tr ' ' '\n' | egrep -v "^(-ldld?)|(-lrt)$" | tr '\n' ' '` 18382 18383 old_LIBS=$LIBS 18384 LIBS="$LD_START_STATIC $GLIB_LIBS $LD_END_STATIC $BASE_LIBS" 18385 ac_fn_c_check_func "$LINENO" "g_hash_table_new" "ac_cv_func_g_hash_table_new" 18386if test "x$ac_cv_func_g_hash_table_new" = xyes 18387then : 18388 blb_cv_static_glib=yes 18389else $as_nop 18390 blb_cv_static_glib=no 18391fi 18392 18393 LIBS=$old_LIBS 18394fi 18395 18396GLIB_CFLAGS="${GLIB_CFLAGS} -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_32" 18397 18398old_CPPFLAGS=$CPPFLAGS 18399CPPFLAGS="$GLIB_CFLAGS" 18400old_LDFLAGS=$LDFLAGS 18401LDFLAGS="$LDFLAGS $GLIB_LIBS" 18402 18403old_LIBS=$LIBS 18404LIBS="$LIBS $GLIB_LIBS" 18405ac_fn_c_check_func "$LINENO" "g_list_copy_deep" "ac_cv_func_g_list_copy_deep" 18406if test "x$ac_cv_func_g_list_copy_deep" = xyes 18407then : 18408 printf "%s\n" "#define HAVE_G_LIST_COPY_DEEP 1" >>confdefs.h 18409 18410fi 18411ac_fn_c_check_func "$LINENO" "g_ptr_array_find_with_equal_func" "ac_cv_func_g_ptr_array_find_with_equal_func" 18412if test "x$ac_cv_func_g_ptr_array_find_with_equal_func" = xyes 18413then : 18414 printf "%s\n" "#define HAVE_G_PTR_ARRAY_FIND_WITH_EQUAL_FUNC 1" >>confdefs.h 18415 18416fi 18417ac_fn_c_check_func "$LINENO" "g_canonicalize_filename" "ac_cv_func_g_canonicalize_filename" 18418if test "x$ac_cv_func_g_canonicalize_filename" = xyes 18419then : 18420 printf "%s\n" "#define HAVE_G_CANONICALIZE_FILENAME 1" >>confdefs.h 18421 18422fi 18423 18424LIBS=$old_LIBS 18425 18426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sanity checking Glib headers" >&5 18427printf %s "checking sanity checking Glib headers... " >&6; } 18428if test ${blb_cv_glib_sane+y} 18429then : 18430 printf %s "(cached) " >&6 18431else $as_nop 18432 if test "$cross_compiling" = yes 18433then : 18434 blb_cv_glib_sane=yes 18435else $as_nop 18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18437/* end confdefs.h. */ 18438 18439#include <glib.h> 18440 18441int main() 18442{ 18443 if (sizeof(long) != GLIB_SIZEOF_LONG) 18444 return 1; 18445 return 0; 18446} 18447 18448_ACEOF 18449if ac_fn_c_try_run "$LINENO" 18450then : 18451 blb_cv_glib_sane=yes 18452else $as_nop 18453 blb_cv_glib_sane=no 18454fi 18455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18456 conftest.$ac_objext conftest.beam conftest.$ac_ext 18457fi 18458 18459fi 18460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $blb_cv_glib_sane" >&5 18461printf "%s\n" "$blb_cv_glib_sane" >&6; } 18462CPPFLAGS=$old_CPPFLAGS 18463LDFLAGS=$old_LDFLAGS 18464 18465if test "x$blb_cv_glib_sane" = "xno"; then 18466 as_fn_error $? "Glib headers inconsistent with current compiler setting. You might be using 32 bit Glib with a 64 bit compiler, check PKG_CONFIG_PATH" "$LINENO" 5 18467fi 18468 18469if test "x$linking_mode" != "xdynamic" -a "x$blb_cv_static_glib" = "xno"; then 18470 as_fn_error $? "static GLib libraries not found (a file named libglib-2.0.a), either link GLib dynamically using the --enable-dynamic-linking or install a static GLib" "$LINENO" 5 18471fi 18472 18473if test "x$enable_geoip2" = "xyes" || test "x$enable_geoip2" = "xauto"; then 18474 if test "x$MAXMINDDB_LIBS" != "x"; then 18475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAXMINDDB" >&5 18476printf %s "checking for MAXMINDDB... " >&6; } 18477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (MAXMINDDB_LIBS set, will use that.)" >&5 18478printf "%s\n" "yes (MAXMINDDB_LIBS set, will use that.)" >&6; } 18479 with_maxminddb="yes" 18480 else 18481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAXMINDDB" >&5 18482printf %s "checking for MAXMINDDB... " >&6; } 18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MMDB_open in -lmaxminddb" >&5 18484printf %s "checking for MMDB_open in -lmaxminddb... " >&6; } 18485if test ${ac_cv_lib_maxminddb_MMDB_open+y} 18486then : 18487 printf %s "(cached) " >&6 18488else $as_nop 18489 ac_check_lib_save_LIBS=$LIBS 18490LIBS="-lmaxminddb $LIBS" 18491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18492/* end confdefs.h. */ 18493 18494/* Override any GCC internal prototype to avoid an error. 18495 Use char because int might match the return type of a GCC 18496 builtin and then its argument prototype would still apply. */ 18497char MMDB_open (); 18498int 18499main (void) 18500{ 18501return MMDB_open (); 18502 ; 18503 return 0; 18504} 18505_ACEOF 18506if ac_fn_c_try_link "$LINENO" 18507then : 18508 ac_cv_lib_maxminddb_MMDB_open=yes 18509else $as_nop 18510 ac_cv_lib_maxminddb_MMDB_open=no 18511fi 18512rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18513 conftest$ac_exeext conftest.$ac_ext 18514LIBS=$ac_check_lib_save_LIBS 18515fi 18516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maxminddb_MMDB_open" >&5 18517printf "%s\n" "$ac_cv_lib_maxminddb_MMDB_open" >&6; } 18518if test "x$ac_cv_lib_maxminddb_MMDB_open" = xyes 18519then : 18520 MAXMINDDB_LIBS="-lmaxminddb"; with_maxminddb="yes" 18521else $as_nop 18522 with_maxminddb="no" 18523fi 18524 18525 18526 fi 18527 18528 if test "x$with_maxminddb" = "xno" && test "x$enable_geoip2" = "xyes"; then 18529 as_fn_error $? "Could not find libmaxminddb, and geoip2 support was explicitly enabled." "$LINENO" 5 18530 fi 18531 18532 if test "x$with_maxminddb" = "xyes"; then 18533 ac_config_links="$ac_config_links modules/geoip2/tests/test.mmdb:modules/geoip2/tests/test.mmdb" 18534 18535 fi 18536 18537 enable_geoip2="$with_maxminddb" 18538fi 18539 18540 18541if test "x$linking_mode" = "xmixed"; then 18542 18543 # check if we have a pcre bundled in glib. In case glib is 18544 # dynamic it doesn't matter as glib doesn't export those 18545 # symbols. But in case glib is static, linking it through 18546 # glib and through libpcre would clash. 18547 old_LIBS="$LIBS" 18548 LIBS="$LD_START_STATIC $GLIB_LIBS $LD_END_STATIC $LIBS" 18549 ac_fn_c_check_func "$LINENO" "pcre_compile2" "ac_cv_func_pcre_compile2" 18550if test "x$ac_cv_func_pcre_compile2" = xyes 18551then : 18552 as_fn_error $? "You cannot use a GLib embedded PCRE in mixed linking mode" "$LINENO" 5 18553fi 18554 18555 LIBS="$old_LIBS" 18556fi 18557 18558 18559pkg_failed=no 18560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpcre >= $PCRE_MIN_VERSION" >&5 18561printf %s "checking for libpcre >= $PCRE_MIN_VERSION... " >&6; } 18562 18563if test -n "$PCRE_CFLAGS"; then 18564 pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS" 18565 elif test -n "$PKG_CONFIG"; then 18566 if test -n "$PKG_CONFIG" && \ 18567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_MIN_VERSION\""; } >&5 18568 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_MIN_VERSION") 2>&5 18569 ac_status=$? 18570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18571 test $ac_status = 0; }; then 18572 pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= $PCRE_MIN_VERSION" 2>/dev/null` 18573 test "x$?" != "x0" && pkg_failed=yes 18574else 18575 pkg_failed=yes 18576fi 18577 else 18578 pkg_failed=untried 18579fi 18580if test -n "$PCRE_LIBS"; then 18581 pkg_cv_PCRE_LIBS="$PCRE_LIBS" 18582 elif test -n "$PKG_CONFIG"; then 18583 if test -n "$PKG_CONFIG" && \ 18584 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_MIN_VERSION\""; } >&5 18585 ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_MIN_VERSION") 2>&5 18586 ac_status=$? 18587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18588 test $ac_status = 0; }; then 18589 pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= $PCRE_MIN_VERSION" 2>/dev/null` 18590 test "x$?" != "x0" && pkg_failed=yes 18591else 18592 pkg_failed=yes 18593fi 18594 else 18595 pkg_failed=untried 18596fi 18597 18598 18599 18600if test $pkg_failed = yes; then 18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18602printf "%s\n" "no" >&6; } 18603 18604if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18605 _pkg_short_errors_supported=yes 18606else 18607 _pkg_short_errors_supported=no 18608fi 18609 if test $_pkg_short_errors_supported = yes; then 18610 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre >= $PCRE_MIN_VERSION" 2>&1` 18611 else 18612 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre >= $PCRE_MIN_VERSION" 2>&1` 18613 fi 18614 # Put the nasty error message in config.log where it belongs 18615 echo "$PCRE_PKG_ERRORS" >&5 18616 18617 PCRE_LIBS="" 18618elif test $pkg_failed = untried; then 18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18620printf "%s\n" "no" >&6; } 18621 PCRE_LIBS="" 18622else 18623 PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS 18624 PCRE_LIBS=$pkg_cv_PCRE_LIBS 18625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18626printf "%s\n" "yes" >&6; } 18627 18628fi 18629if test -z "$PCRE_LIBS"; then 18630 as_fn_error $? "Cannot find pcre version >= $PCRE_MIN_VERSION it is a hard dependency from syslog-ng 3.6 onwards" "$LINENO" 5 18631fi 18632 18633 18634# openssl is needed for: 18635# * TLS support 18636 18637 18638pkg_failed=no 18639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= $OPENSSL_MIN_VERSION" >&5 18640printf %s "checking for openssl >= $OPENSSL_MIN_VERSION... " >&6; } 18641 18642if test -n "$OPENSSL_CFLAGS"; then 18643 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 18644 elif test -n "$PKG_CONFIG"; then 18645 if test -n "$PKG_CONFIG" && \ 18646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5 18647 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5 18648 ac_status=$? 18649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18650 test $ac_status = 0; }; then 18651 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null` 18652 test "x$?" != "x0" && pkg_failed=yes 18653else 18654 pkg_failed=yes 18655fi 18656 else 18657 pkg_failed=untried 18658fi 18659if test -n "$OPENSSL_LIBS"; then 18660 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 18661 elif test -n "$PKG_CONFIG"; then 18662 if test -n "$PKG_CONFIG" && \ 18663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_MIN_VERSION\""; } >&5 18664 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_MIN_VERSION") 2>&5 18665 ac_status=$? 18666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18667 test $ac_status = 0; }; then 18668 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_MIN_VERSION" 2>/dev/null` 18669 test "x$?" != "x0" && pkg_failed=yes 18670else 18671 pkg_failed=yes 18672fi 18673 else 18674 pkg_failed=untried 18675fi 18676 18677 18678 18679if test $pkg_failed = yes; then 18680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18681printf "%s\n" "no" >&6; } 18682 18683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18684 _pkg_short_errors_supported=yes 18685else 18686 _pkg_short_errors_supported=no 18687fi 18688 if test $_pkg_short_errors_supported = yes; then 18689 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= $OPENSSL_MIN_VERSION" 2>&1` 18690 else 18691 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= $OPENSSL_MIN_VERSION" 2>&1` 18692 fi 18693 # Put the nasty error message in config.log where it belongs 18694 echo "$OPENSSL_PKG_ERRORS" >&5 18695 18696 as_fn_error $? "Cannot find OpenSSL libraries with version >= $OPENSSL_MIN_VERSION it is a hard dependency from syslog-ng 3.7 onwards" "$LINENO" 5 18697elif test $pkg_failed = untried; then 18698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18699printf "%s\n" "no" >&6; } 18700 as_fn_error $? "Cannot find OpenSSL libraries with version >= $OPENSSL_MIN_VERSION it is a hard dependency from syslog-ng 3.7 onwards" "$LINENO" 5 18701else 18702 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 18703 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 18704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18705printf "%s\n" "yes" >&6; } 18706 18707fi 18708 18709if test -n "$OPENSSL_LIBS" -a "$linking_mode" != "dynamic"; then 18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 18711printf %s "checking for inflate in -lz... " >&6; } 18712if test ${ac_cv_lib_z_inflate+y} 18713then : 18714 printf %s "(cached) " >&6 18715else $as_nop 18716 ac_check_lib_save_LIBS=$LIBS 18717LIBS="-lz $LIBS" 18718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719/* end confdefs.h. */ 18720 18721/* Override any GCC internal prototype to avoid an error. 18722 Use char because int might match the return type of a GCC 18723 builtin and then its argument prototype would still apply. */ 18724char inflate (); 18725int 18726main (void) 18727{ 18728return inflate (); 18729 ; 18730 return 0; 18731} 18732_ACEOF 18733if ac_fn_c_try_link "$LINENO" 18734then : 18735 ac_cv_lib_z_inflate=yes 18736else $as_nop 18737 ac_cv_lib_z_inflate=no 18738fi 18739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18740 conftest$ac_exeext conftest.$ac_ext 18741LIBS=$ac_check_lib_save_LIBS 18742fi 18743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 18744printf "%s\n" "$ac_cv_lib_z_inflate" >&6; } 18745if test "x$ac_cv_lib_z_inflate" = xyes 18746then : 18747 ZLIB_LIBS="-lz" 18748fi 18749 18750 18751 OPENSSL_LIBS=`echo $OPENSSL_LIBS | tr ' ' '\n' | egrep -v "^-ldld?$" | tr '\n' ' '` 18752 18753 old_LIBS=$LIBS 18754 LIBS="$LD_START_STATIC $OPENSSL_LIBS $ZLIB_LIBS $LD_END_STATIC $DL_LIBS" 18755 ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init" 18756if test "x$ac_cv_func_SSL_library_init" = xyes 18757then : 18758 blb_cv_static_openssl=yes 18759else $as_nop 18760 blb_cv_static_openssl=no 18761fi 18762 18763 LIBS=$old_LIBS 18764fi 18765 18766CPPFLAGS_SAVE="$CPPFLAGS" 18767CPPFLAGS="$CPPFLAGS $OPENSSL_CFLAGS" 18768 18769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 18770printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 18771if test ${ac_cv_c_undeclared_builtin_options+y} 18772then : 18773 printf %s "(cached) " >&6 18774else $as_nop 18775 ac_save_CFLAGS=$CFLAGS 18776 ac_cv_c_undeclared_builtin_options='cannot detect' 18777 for ac_arg in '' -fno-builtin; do 18778 CFLAGS="$ac_save_CFLAGS $ac_arg" 18779 # This test program should *not* compile successfully. 18780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18781/* end confdefs.h. */ 18782 18783int 18784main (void) 18785{ 18786(void) strchr; 18787 ; 18788 return 0; 18789} 18790_ACEOF 18791if ac_fn_c_try_compile "$LINENO" 18792then : 18793 18794else $as_nop 18795 # This test program should compile successfully. 18796 # No library function is consistently available on 18797 # freestanding implementations, so test against a dummy 18798 # declaration. Include always-available headers on the 18799 # off chance that they somehow elicit warnings. 18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801/* end confdefs.h. */ 18802#include <float.h> 18803#include <limits.h> 18804#include <stdarg.h> 18805#include <stddef.h> 18806extern void ac_decl (int, char *); 18807 18808int 18809main (void) 18810{ 18811(void) ac_decl (0, (char *) 0); 18812 (void) ac_decl; 18813 18814 ; 18815 return 0; 18816} 18817_ACEOF 18818if ac_fn_c_try_compile "$LINENO" 18819then : 18820 if test x"$ac_arg" = x 18821then : 18822 ac_cv_c_undeclared_builtin_options='none needed' 18823else $as_nop 18824 ac_cv_c_undeclared_builtin_options=$ac_arg 18825fi 18826 break 18827fi 18828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18829fi 18830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18831 done 18832 CFLAGS=$ac_save_CFLAGS 18833 18834fi 18835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 18836printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 18837 case $ac_cv_c_undeclared_builtin_options in #( 18838 'cannot detect') : 18839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18840printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18841as_fn_error $? "cannot make $CC report undeclared builtins 18842See \`config.log' for more details" "$LINENO" 5; } ;; #( 18843 'none needed') : 18844 ac_c_undeclared_builtin_options='' ;; #( 18845 *) : 18846 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 18847esac 18848 18849ac_fn_check_decl "$LINENO" "SSL_CTX_get0_param" "ac_cv_have_decl_SSL_CTX_get0_param" "#include <openssl/ssl.h> 18850" "$ac_c_undeclared_builtin_options" "CFLAGS" 18851if test "x$ac_cv_have_decl_SSL_CTX_get0_param" = xyes 18852then : 18853 ac_have_decl=1 18854else $as_nop 18855 ac_have_decl=0 18856fi 18857printf "%s\n" "#define HAVE_DECL_SSL_CTX_GET0_PARAM $ac_have_decl" >>confdefs.h 18858 18859ac_fn_check_decl "$LINENO" "X509_STORE_CTX_get0_cert" "ac_cv_have_decl_X509_STORE_CTX_get0_cert" "#include <openssl/ssl.h> 18860" "$ac_c_undeclared_builtin_options" "CFLAGS" 18861if test "x$ac_cv_have_decl_X509_STORE_CTX_get0_cert" = xyes 18862then : 18863 ac_have_decl=1 18864else $as_nop 18865 ac_have_decl=0 18866fi 18867printf "%s\n" "#define HAVE_DECL_X509_STORE_CTX_GET0_CERT $ac_have_decl" >>confdefs.h 18868 18869ac_fn_check_decl "$LINENO" "X509_get_extension_flags" "ac_cv_have_decl_X509_get_extension_flags" "#include <openssl/x509v3.h> 18870" "$ac_c_undeclared_builtin_options" "CFLAGS" 18871if test "x$ac_cv_have_decl_X509_get_extension_flags" = xyes 18872then : 18873 ac_have_decl=1 18874else $as_nop 18875 ac_have_decl=0 18876fi 18877printf "%s\n" "#define HAVE_DECL_X509_GET_EXTENSION_FLAGS $ac_have_decl" >>confdefs.h 18878 18879ac_fn_check_decl "$LINENO" "EVP_MD_CTX_reset" "ac_cv_have_decl_EVP_MD_CTX_reset" "#include <openssl/evp.h> 18880" "$ac_c_undeclared_builtin_options" "CFLAGS" 18881if test "x$ac_cv_have_decl_EVP_MD_CTX_reset" = xyes 18882then : 18883 ac_have_decl=1 18884else $as_nop 18885 ac_have_decl=0 18886fi 18887printf "%s\n" "#define HAVE_DECL_EVP_MD_CTX_RESET $ac_have_decl" >>confdefs.h 18888 18889ac_fn_check_decl "$LINENO" "ASN1_STRING_get0_data" "ac_cv_have_decl_ASN1_STRING_get0_data" "#include <openssl/asn1.h> 18890" "$ac_c_undeclared_builtin_options" "CFLAGS" 18891if test "x$ac_cv_have_decl_ASN1_STRING_get0_data" = xyes 18892then : 18893 ac_have_decl=1 18894else $as_nop 18895 ac_have_decl=0 18896fi 18897printf "%s\n" "#define HAVE_DECL_ASN1_STRING_GET0_DATA $ac_have_decl" >>confdefs.h 18898 18899ac_fn_check_decl "$LINENO" "DH_set0_pqg" "ac_cv_have_decl_DH_set0_pqg" "#include <openssl/dh.h> 18900" "$ac_c_undeclared_builtin_options" "CFLAGS" 18901if test "x$ac_cv_have_decl_DH_set0_pqg" = xyes 18902then : 18903 ac_have_decl=1 18904else $as_nop 18905 ac_have_decl=0 18906fi 18907printf "%s\n" "#define HAVE_DECL_DH_SET0_PQG $ac_have_decl" >>confdefs.h 18908 18909ac_fn_check_decl "$LINENO" "BN_get_rfc3526_prime_2048" "ac_cv_have_decl_BN_get_rfc3526_prime_2048" "#include <openssl/bn.h> 18910" "$ac_c_undeclared_builtin_options" "CFLAGS" 18911if test "x$ac_cv_have_decl_BN_get_rfc3526_prime_2048" = xyes 18912then : 18913 ac_have_decl=1 18914else $as_nop 18915 ac_have_decl=0 18916fi 18917printf "%s\n" "#define HAVE_DECL_BN_GET_RFC3526_PRIME_2048 $ac_have_decl" >>confdefs.h 18918 18919ac_fn_check_decl "$LINENO" "SSL_CTX_set_num_tickets" "ac_cv_have_decl_SSL_CTX_set_num_tickets" "#include <openssl/ssl.h> 18920" "$ac_c_undeclared_builtin_options" "CFLAGS" 18921if test "x$ac_cv_have_decl_SSL_CTX_set_num_tickets" = xyes 18922then : 18923 ac_have_decl=1 18924else $as_nop 18925 ac_have_decl=0 18926fi 18927printf "%s\n" "#define HAVE_DECL_SSL_CTX_SET_NUM_TICKETS $ac_have_decl" >>confdefs.h 18928 18929 18930CPPFLAGS="$CPPFLAGS_SAVE" 18931 18932 18933 18934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBNET" >&5 18935printf %s "checking for LIBNET... " >&6; } 18936if test "x$with_libnet" = "x"; then 18937 LIBNET_CONFIG="`which libnet-config`" 18938else 18939 LIBNET_CONFIG="$with_libnet/libnet-config" 18940fi 18941 18942if test -n "$LIBNET_CONFIG" -a -x "$LIBNET_CONFIG"; then 18943 LIBNET_CFLAGS="`$LIBNET_CONFIG --defines`" 18944 LIBNET_LIBS="`$LIBNET_CONFIG --libs`" 18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18946printf "%s\n" "yes" >&6; } 18947 LIBNET_CFLAGS="$LIBNET_CFLAGS -D_DEFAULT_SOURCE" 18948 18949else 18950 LIBNET_LIBS= 18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18952printf "%s\n" "no" >&6; } 18953fi 18954 18955 18956if test "x$enable_spoof_source" = "xauto"; then 18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable spoof source support" >&5 18958printf %s "checking whether to enable spoof source support... " >&6; } 18959 if test "x$LIBNET_LIBS" != "x"; then 18960 enable_spoof_source=yes 18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18962printf "%s\n" "yes" >&6; } 18963 else 18964 enable_spoof_source=no 18965 LIBNET_LIBS= 18966 LIBNET_CFLAGS= 18967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18968printf "%s\n" "no" >&6; } 18969 fi 18970elif test "x$enable_spoof_source" = "xyes"; then 18971 if test "x$LIBNET_LIBS" = "x"; then 18972 as_fn_error $? "Could not find libnet, and spoof source support was explicitly enabled." "$LINENO" 5 18973 fi 18974elif test "x$enable_spoof_source" = "xno"; then 18975 LIBNET_CFLAGS="" 18976 LIBNET_LIBS="" 18977 enable_spoof_source=no 18978else 18979 as_fn_error $? "Invalid value ($enable_spoof_source) for enable-spoof-source" "$LINENO" 5 18980fi 18981 18982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable snmp destination driver" >&5 18983printf %s "checking whether to enable snmp destination driver... " >&6; } 18984 18985if test "x$with_net_snmp" = "x"; then 18986 NETSNMP_CONFIG="`which net-snmp-config`" 18987else 18988 NETSNMP_CONFIG="$with_net_snmp/net-snmp-config" 18989fi 18990 18991if test "x$enable_afsnmp" = "xyes"; then 18992 if test -n "$NETSNMP_CONFIG" -a -x "$NETSNMP_CONFIG"; then 18993 enable_afsnmp="yes" 18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18995printf "%s\n" "yes" >&6; } 18996 else 18997 enable_afsnmp_dest="no" 18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18999printf "%s\n" "no" >&6; } 19000 as_fn_error $? "\"AFSNMP module is explicit enabled but no net-snmp lib found\"" "$LINENO" 5 19001 fi 19002elif test "x$enable_afsnmp" = "xauto"; then 19003 if test -n "$NETSNMP_CONFIG" -a -x "$NETSNMP_CONFIG"; then 19004 enable_afsnmp="yes" 19005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19006printf "%s\n" "yes" >&6; } 19007 else 19008 enable_afsnmp="no" 19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19010printf "%s\n" "no" >&6; } 19011 fi 19012else 19013 enable_afsnmp="no" 19014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19015printf "%s\n" "no" >&6; } 19016fi 19017 19018if test "$enable_afsnmp" = "yes"; then 19019 NETSNMP_CFLAGS="`$NETSNMP_CONFIG --cflags`" 19020 NETSNMP_LIBS="`$NETSNMP_CONFIG --libs`" 19021else 19022 NETSNMP_CFLAGS= 19023 NETSNMP_LIBS= 19024fi 19025 19026 19027 19028pkg_failed=no 19029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for criterion >= $CRITERION_MIN_VERSION" >&5 19030printf %s "checking for criterion >= $CRITERION_MIN_VERSION... " >&6; } 19031 19032if test -n "$CRITERION_CFLAGS"; then 19033 pkg_cv_CRITERION_CFLAGS="$CRITERION_CFLAGS" 19034 elif test -n "$PKG_CONFIG"; then 19035 if test -n "$PKG_CONFIG" && \ 19036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"criterion >= \$CRITERION_MIN_VERSION\""; } >&5 19037 ($PKG_CONFIG --exists --print-errors "criterion >= $CRITERION_MIN_VERSION") 2>&5 19038 ac_status=$? 19039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19040 test $ac_status = 0; }; then 19041 pkg_cv_CRITERION_CFLAGS=`$PKG_CONFIG --cflags "criterion >= $CRITERION_MIN_VERSION" 2>/dev/null` 19042 test "x$?" != "x0" && pkg_failed=yes 19043else 19044 pkg_failed=yes 19045fi 19046 else 19047 pkg_failed=untried 19048fi 19049if test -n "$CRITERION_LIBS"; then 19050 pkg_cv_CRITERION_LIBS="$CRITERION_LIBS" 19051 elif test -n "$PKG_CONFIG"; then 19052 if test -n "$PKG_CONFIG" && \ 19053 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"criterion >= \$CRITERION_MIN_VERSION\""; } >&5 19054 ($PKG_CONFIG --exists --print-errors "criterion >= $CRITERION_MIN_VERSION") 2>&5 19055 ac_status=$? 19056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19057 test $ac_status = 0; }; then 19058 pkg_cv_CRITERION_LIBS=`$PKG_CONFIG --libs "criterion >= $CRITERION_MIN_VERSION" 2>/dev/null` 19059 test "x$?" != "x0" && pkg_failed=yes 19060else 19061 pkg_failed=yes 19062fi 19063 else 19064 pkg_failed=untried 19065fi 19066 19067 19068 19069if test $pkg_failed = yes; then 19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19071printf "%s\n" "no" >&6; } 19072 19073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19074 _pkg_short_errors_supported=yes 19075else 19076 _pkg_short_errors_supported=no 19077fi 19078 if test $_pkg_short_errors_supported = yes; then 19079 CRITERION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "criterion >= $CRITERION_MIN_VERSION" 2>&1` 19080 else 19081 CRITERION_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "criterion >= $CRITERION_MIN_VERSION" 2>&1` 19082 fi 19083 # Put the nasty error message in config.log where it belongs 19084 echo "$CRITERION_PKG_ERRORS" >&5 19085 19086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find Criterion >= $CRITERION_MIN_VERSION" >&5 19087printf "%s\n" "$as_me: WARNING: pkg-config was not able to find Criterion >= $CRITERION_MIN_VERSION" >&2;}; with_criterion="no" 19088elif test $pkg_failed = untried; then 19089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19090printf "%s\n" "no" >&6; } 19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find Criterion >= $CRITERION_MIN_VERSION" >&5 19092printf "%s\n" "$as_me: WARNING: pkg-config was not able to find Criterion >= $CRITERION_MIN_VERSION" >&2;}; with_criterion="no" 19093else 19094 CRITERION_CFLAGS=$pkg_cv_CRITERION_CFLAGS 19095 CRITERION_LIBS=$pkg_cv_CRITERION_LIBS 19096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19097printf "%s\n" "yes" >&6; } 19098 with_criterion="system" 19099fi 19100 19101if test "$with_criterion" != "no"; then 19102 enable_tests=yes 19103else 19104 enable_tests=no 19105fi 19106 19107 19108IVYKIS_INTERNAL_SOURCE_EXISTS="test -f $srcdir/lib/ivykis/src/iv_main_posix.c" 19109 19110if $IVYKIS_INTERNAL_SOURCE_EXISTS; then 19111 19112 19113subdirs="$subdirs lib/ivykis" 19114 19115 IVYKIS_SUBDIRS=lib/ivykis 19116fi 19117 19118 19119INTERNAL_IVYKIS_CFLAGS="" 19120if test "x$with_ivykis" = "xinternal"; then 19121 if $IVYKIS_INTERNAL_SOURCE_EXISTS; then 19122 # these can only be used in lib as it assumes 19123 # the current directory just one below ivykis 19124 19125 IVYKIS_LIBS="-Wl,${WHOLE_ARCHIVE_OPT} -L\$(top_builddir)/lib/ivykis/src -livykis -Wl,${NO_WHOLE_ARCHIVE_OPT}" 19126 IVYKIS_CFLAGS="-isystem \$(top_srcdir)/lib/ivykis/src/include -isystem \$(top_builddir)/lib/ivykis/src/include" 19127 INTERNAL_IVYKIS_CFLAGS="-isystem \${includedir}/syslog-ng/ivykis" 19128 19129 IVYKIS_VERSION_UPDATED="yes" 19130 19131 # LIBS to use when libtool is not applicable (when linking the main syslog-ng executable in mixed linking mode) 19132 IVYKIS_NO_LIBTOOL_LIBS="-Wl,${WHOLE_ARCHIVE_OPT} -L\$(top_builddir)/lib/ivykis/src/.libs -livykis -Wl,${NO_WHOLE_ARCHIVE_OPT}" 19133 else 19134 as_fn_error $? "Internal ivykis sources not found in lib/ivykis. This is a hard dependency, unable to build syslog-ng without them." "$LINENO" 5 19135 fi 19136else 19137 with_ivykis="system" 19138 19139pkg_failed=no 19140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ivykis >= $IVYKIS_MIN_VERSION" >&5 19141printf %s "checking for ivykis >= $IVYKIS_MIN_VERSION... " >&6; } 19142 19143if test -n "$IVYKIS_CFLAGS"; then 19144 pkg_cv_IVYKIS_CFLAGS="$IVYKIS_CFLAGS" 19145 elif test -n "$PKG_CONFIG"; then 19146 if test -n "$PKG_CONFIG" && \ 19147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ivykis >= \$IVYKIS_MIN_VERSION\""; } >&5 19148 ($PKG_CONFIG --exists --print-errors "ivykis >= $IVYKIS_MIN_VERSION") 2>&5 19149 ac_status=$? 19150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19151 test $ac_status = 0; }; then 19152 pkg_cv_IVYKIS_CFLAGS=`$PKG_CONFIG --cflags "ivykis >= $IVYKIS_MIN_VERSION" 2>/dev/null` 19153 test "x$?" != "x0" && pkg_failed=yes 19154else 19155 pkg_failed=yes 19156fi 19157 else 19158 pkg_failed=untried 19159fi 19160if test -n "$IVYKIS_LIBS"; then 19161 pkg_cv_IVYKIS_LIBS="$IVYKIS_LIBS" 19162 elif test -n "$PKG_CONFIG"; then 19163 if test -n "$PKG_CONFIG" && \ 19164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ivykis >= \$IVYKIS_MIN_VERSION\""; } >&5 19165 ($PKG_CONFIG --exists --print-errors "ivykis >= $IVYKIS_MIN_VERSION") 2>&5 19166 ac_status=$? 19167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19168 test $ac_status = 0; }; then 19169 pkg_cv_IVYKIS_LIBS=`$PKG_CONFIG --libs "ivykis >= $IVYKIS_MIN_VERSION" 2>/dev/null` 19170 test "x$?" != "x0" && pkg_failed=yes 19171else 19172 pkg_failed=yes 19173fi 19174 else 19175 pkg_failed=untried 19176fi 19177 19178 19179 19180if test $pkg_failed = yes; then 19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19182printf "%s\n" "no" >&6; } 19183 19184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19185 _pkg_short_errors_supported=yes 19186else 19187 _pkg_short_errors_supported=no 19188fi 19189 if test $_pkg_short_errors_supported = yes; then 19190 IVYKIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ivykis >= $IVYKIS_MIN_VERSION" 2>&1` 19191 else 19192 IVYKIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ivykis >= $IVYKIS_MIN_VERSION" 2>&1` 19193 fi 19194 # Put the nasty error message in config.log where it belongs 19195 echo "$IVYKIS_PKG_ERRORS" >&5 19196 19197 as_fn_error $? "Package requirements (ivykis >= $IVYKIS_MIN_VERSION) were not met: 19198 19199$IVYKIS_PKG_ERRORS 19200 19201Consider adjusting the PKG_CONFIG_PATH environment variable if you 19202installed software in a non-standard prefix. 19203 19204Alternatively, you may set the environment variables IVYKIS_CFLAGS 19205and IVYKIS_LIBS to avoid the need to call pkg-config. 19206See the pkg-config man page for more details." "$LINENO" 5 19207elif test $pkg_failed = untried; then 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19209printf "%s\n" "no" >&6; } 19210 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19211printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19212as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19213is in your PATH or set the PKG_CONFIG environment variable to the full 19214path to pkg-config. 19215 19216Alternatively, you may set the environment variables IVYKIS_CFLAGS 19217and IVYKIS_LIBS to avoid the need to call pkg-config. 19218See the pkg-config man page for more details. 19219 19220To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19221See \`config.log' for more details" "$LINENO" 5; } 19222else 19223 IVYKIS_CFLAGS=$pkg_cv_IVYKIS_CFLAGS 19224 IVYKIS_LIBS=$pkg_cv_IVYKIS_LIBS 19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19226printf "%s\n" "yes" >&6; } 19227 19228fi 19229 19230pkg_failed=no 19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ivykis >= $IVYKIS_UPDATED_VERSION" >&5 19232printf %s "checking for ivykis >= $IVYKIS_UPDATED_VERSION... " >&6; } 19233 19234if test -n "$IVYKIS_VERSION_CHECK_CFLAGS"; then 19235 pkg_cv_IVYKIS_VERSION_CHECK_CFLAGS="$IVYKIS_VERSION_CHECK_CFLAGS" 19236 elif test -n "$PKG_CONFIG"; then 19237 if test -n "$PKG_CONFIG" && \ 19238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ivykis >= \$IVYKIS_UPDATED_VERSION\""; } >&5 19239 ($PKG_CONFIG --exists --print-errors "ivykis >= $IVYKIS_UPDATED_VERSION") 2>&5 19240 ac_status=$? 19241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19242 test $ac_status = 0; }; then 19243 pkg_cv_IVYKIS_VERSION_CHECK_CFLAGS=`$PKG_CONFIG --cflags "ivykis >= $IVYKIS_UPDATED_VERSION" 2>/dev/null` 19244 test "x$?" != "x0" && pkg_failed=yes 19245else 19246 pkg_failed=yes 19247fi 19248 else 19249 pkg_failed=untried 19250fi 19251if test -n "$IVYKIS_VERSION_CHECK_LIBS"; then 19252 pkg_cv_IVYKIS_VERSION_CHECK_LIBS="$IVYKIS_VERSION_CHECK_LIBS" 19253 elif test -n "$PKG_CONFIG"; then 19254 if test -n "$PKG_CONFIG" && \ 19255 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ivykis >= \$IVYKIS_UPDATED_VERSION\""; } >&5 19256 ($PKG_CONFIG --exists --print-errors "ivykis >= $IVYKIS_UPDATED_VERSION") 2>&5 19257 ac_status=$? 19258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19259 test $ac_status = 0; }; then 19260 pkg_cv_IVYKIS_VERSION_CHECK_LIBS=`$PKG_CONFIG --libs "ivykis >= $IVYKIS_UPDATED_VERSION" 2>/dev/null` 19261 test "x$?" != "x0" && pkg_failed=yes 19262else 19263 pkg_failed=yes 19264fi 19265 else 19266 pkg_failed=untried 19267fi 19268 19269 19270 19271if test $pkg_failed = yes; then 19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19273printf "%s\n" "no" >&6; } 19274 19275if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19276 _pkg_short_errors_supported=yes 19277else 19278 _pkg_short_errors_supported=no 19279fi 19280 if test $_pkg_short_errors_supported = yes; then 19281 IVYKIS_VERSION_CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ivykis >= $IVYKIS_UPDATED_VERSION" 2>&1` 19282 else 19283 IVYKIS_VERSION_CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ivykis >= $IVYKIS_UPDATED_VERSION" 2>&1` 19284 fi 19285 # Put the nasty error message in config.log where it belongs 19286 echo "$IVYKIS_VERSION_CHECK_PKG_ERRORS" >&5 19287 19288 IVYKIS_VERSION_UPDATED="no" 19289elif test $pkg_failed = untried; then 19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19291printf "%s\n" "no" >&6; } 19292 IVYKIS_VERSION_UPDATED="no" 19293else 19294 IVYKIS_VERSION_CHECK_CFLAGS=$pkg_cv_IVYKIS_VERSION_CHECK_CFLAGS 19295 IVYKIS_VERSION_CHECK_LIBS=$pkg_cv_IVYKIS_VERSION_CHECK_LIBS 19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19297printf "%s\n" "yes" >&6; } 19298 IVYKIS_VERSION_UPDATED="yes" 19299fi 19300 19301 # in case we're using a system installed ivykis, we can link against 19302 # it even without libtool and without extra linker arguments (as 19303 # we're linking dynamically) 19304 19305 IVYKIS_NO_LIBTOOL_LIBS="$IVYKIS_LIBS" 19306fi 19307 19308 19309enable_json="no" 19310 19311JSON_INTERNAL_SOURCE_EXISTS="test -f $srcdir/lib/jsonc/json.h" 19312 19313if $JSON_INTERNAL_SOURCE_EXISTS; then 19314 subdirs="$subdirs lib/jsonc" 19315 19316 JSON_SUBDIRS="lib/jsonc" 19317fi 19318 19319if test "x$with_jsonc" = "xsystem" -o "x$with_jsonc" = "xauto"; then 19320 enable_json="yes" 19321 if test -n "$PKG_CONFIG" && \ 19322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5 19323 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5 19324 ac_status=$? 19325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19326 test $ac_status = 0; }; then 19327 json_module_name="json-c" 19328else 19329 if test -n "$PKG_CONFIG" && \ 19330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json\""; } >&5 19331 ($PKG_CONFIG --exists --print-errors "json") 2>&5 19332 ac_status=$? 19333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19334 test $ac_status = 0; }; then 19335 json_module_name="json" 19336fi 19337fi 19338 19339pkg_failed=no 19340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $json_module_name >= $JSON_C_MIN_VERSION" >&5 19341printf %s "checking for $json_module_name >= $JSON_C_MIN_VERSION... " >&6; } 19342 19343if test -n "$JSON_CFLAGS"; then 19344 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS" 19345 elif test -n "$PKG_CONFIG"; then 19346 if test -n "$PKG_CONFIG" && \ 19347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$json_module_name >= \$JSON_C_MIN_VERSION\""; } >&5 19348 ($PKG_CONFIG --exists --print-errors "$json_module_name >= $JSON_C_MIN_VERSION") 2>&5 19349 ac_status=$? 19350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19351 test $ac_status = 0; }; then 19352 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "$json_module_name >= $JSON_C_MIN_VERSION" 2>/dev/null` 19353 test "x$?" != "x0" && pkg_failed=yes 19354else 19355 pkg_failed=yes 19356fi 19357 else 19358 pkg_failed=untried 19359fi 19360if test -n "$JSON_LIBS"; then 19361 pkg_cv_JSON_LIBS="$JSON_LIBS" 19362 elif test -n "$PKG_CONFIG"; then 19363 if test -n "$PKG_CONFIG" && \ 19364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$json_module_name >= \$JSON_C_MIN_VERSION\""; } >&5 19365 ($PKG_CONFIG --exists --print-errors "$json_module_name >= $JSON_C_MIN_VERSION") 2>&5 19366 ac_status=$? 19367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19368 test $ac_status = 0; }; then 19369 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "$json_module_name >= $JSON_C_MIN_VERSION" 2>/dev/null` 19370 test "x$?" != "x0" && pkg_failed=yes 19371else 19372 pkg_failed=yes 19373fi 19374 else 19375 pkg_failed=untried 19376fi 19377 19378 19379 19380if test $pkg_failed = yes; then 19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19382printf "%s\n" "no" >&6; } 19383 19384if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19385 _pkg_short_errors_supported=yes 19386else 19387 _pkg_short_errors_supported=no 19388fi 19389 if test $_pkg_short_errors_supported = yes; then 19390 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$json_module_name >= $JSON_C_MIN_VERSION" 2>&1` 19391 else 19392 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$json_module_name >= $JSON_C_MIN_VERSION" 2>&1` 19393 fi 19394 # Put the nasty error message in config.log where it belongs 19395 echo "$JSON_PKG_ERRORS" >&5 19396 19397 JSON_LIBS=""; enable_json="no" 19398elif test $pkg_failed = untried; then 19399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19400printf "%s\n" "no" >&6; } 19401 JSON_LIBS=""; enable_json="no" 19402else 19403 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS 19404 JSON_LIBS=$pkg_cv_JSON_LIBS 19405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19406printf "%s\n" "yes" >&6; } 19407 with_jsonc="system" 19408fi 19409 if test "x$with_jsonc" = "xsystem" -a "x$enable_json" = "xno"; then 19410 as_fn_error $? "json-c library development files cannot be not found on system!" "$LINENO" 5 19411 fi 19412fi 19413if test "x$with_jsonc" = "xinternal" -o "x$with_jsonc" = "xauto"; then 19414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5 19415printf %s "checking for JSON... " >&6; } 19416 if $JSON_INTERNAL_SOURCE_EXISTS; then 19417 JSON_LIBS="\$(top_builddir)/lib/jsonc/libjson-c.la" 19418 JSON_DEPENDENCY="$JSON_LIBS" 19419 JSON_CFLAGS="-I\$(top_srcdir)/lib/jsonc -I\$(top_builddir)/lib/jsonc" 19420 enable_json="yes" 19421 with_jsonc="internal" 19422 else 19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Internal jsonc sources not found in lib/jsonc" >&5 19424printf "%s\n" "$as_me: WARNING: Internal jsonc sources not found in lib/jsonc" >&2;} 19425 enable_json="no" 19426 with_jsonc="no" 19427 fi 19428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_json" >&5 19429printf "%s\n" "$enable_json" >&6; } 19430fi 19431 19432 19433 19434pkg_failed=no 19435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmongoc-1.0 >= $LMC_MIN_VERSION" >&5 19436printf %s "checking for libmongoc-1.0 >= $LMC_MIN_VERSION... " >&6; } 19437 19438if test -n "$LIBMONGO_CFLAGS"; then 19439 pkg_cv_LIBMONGO_CFLAGS="$LIBMONGO_CFLAGS" 19440 elif test -n "$PKG_CONFIG"; then 19441 if test -n "$PKG_CONFIG" && \ 19442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc-1.0 >= \$LMC_MIN_VERSION\""; } >&5 19443 ($PKG_CONFIG --exists --print-errors "libmongoc-1.0 >= $LMC_MIN_VERSION") 2>&5 19444 ac_status=$? 19445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19446 test $ac_status = 0; }; then 19447 pkg_cv_LIBMONGO_CFLAGS=`$PKG_CONFIG --cflags "libmongoc-1.0 >= $LMC_MIN_VERSION" 2>/dev/null` 19448 test "x$?" != "x0" && pkg_failed=yes 19449else 19450 pkg_failed=yes 19451fi 19452 else 19453 pkg_failed=untried 19454fi 19455if test -n "$LIBMONGO_LIBS"; then 19456 pkg_cv_LIBMONGO_LIBS="$LIBMONGO_LIBS" 19457 elif test -n "$PKG_CONFIG"; then 19458 if test -n "$PKG_CONFIG" && \ 19459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc-1.0 >= \$LMC_MIN_VERSION\""; } >&5 19460 ($PKG_CONFIG --exists --print-errors "libmongoc-1.0 >= $LMC_MIN_VERSION") 2>&5 19461 ac_status=$? 19462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19463 test $ac_status = 0; }; then 19464 pkg_cv_LIBMONGO_LIBS=`$PKG_CONFIG --libs "libmongoc-1.0 >= $LMC_MIN_VERSION" 2>/dev/null` 19465 test "x$?" != "x0" && pkg_failed=yes 19466else 19467 pkg_failed=yes 19468fi 19469 else 19470 pkg_failed=untried 19471fi 19472 19473 19474 19475if test $pkg_failed = yes; then 19476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19477printf "%s\n" "no" >&6; } 19478 19479if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19480 _pkg_short_errors_supported=yes 19481else 19482 _pkg_short_errors_supported=no 19483fi 19484 if test $_pkg_short_errors_supported = yes; then 19485 LIBMONGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmongoc-1.0 >= $LMC_MIN_VERSION" 2>&1` 19486 else 19487 LIBMONGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmongoc-1.0 >= $LMC_MIN_VERSION" 2>&1` 19488 fi 19489 # Put the nasty error message in config.log where it belongs 19490 echo "$LIBMONGO_PKG_ERRORS" >&5 19491 19492 with_mongoc="no" 19493elif test $pkg_failed = untried; then 19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19495printf "%s\n" "no" >&6; } 19496 with_mongoc="no" 19497else 19498 LIBMONGO_CFLAGS=$pkg_cv_LIBMONGO_CFLAGS 19499 LIBMONGO_LIBS=$pkg_cv_LIBMONGO_LIBS 19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19501printf "%s\n" "yes" >&6; } 19502 with_mongoc="yes" 19503fi 19504 19505if test "x$with_mongoc" = "xno" && test "x$enable_mongodb" = "xyes"; then 19506 as_fn_error $? "Could not find mongo-c-driver, and MongoDB support was explicitly enabled." "$LINENO" 5 19507fi 19508 19509if test "x$with_mongoc" = "xyes"; then 19510CPPFLAGS_SAVE="$CPPFLAGS" 19511CPPFLAGS="$CPPFLAGS $LIBMONGO_CFLAGS" 19512 19513ac_fn_check_decl "$LINENO" "mongoc_uri_set_option_as_int32" "ac_cv_have_decl_mongoc_uri_set_option_as_int32" "#include <mongoc.h> 19514" "$ac_c_undeclared_builtin_options" "CFLAGS" 19515if test "x$ac_cv_have_decl_mongoc_uri_set_option_as_int32" = xyes 19516then : 19517 ac_have_decl=1 19518else $as_nop 19519 ac_have_decl=0 19520fi 19521printf "%s\n" "#define HAVE_DECL_MONGOC_URI_SET_OPTION_AS_INT32 $ac_have_decl" >>confdefs.h 19522 19523ac_fn_check_decl "$LINENO" "MONGOC_URI_SERVERSELECTIONTIMEOUTMS" "ac_cv_have_decl_MONGOC_URI_SERVERSELECTIONTIMEOUTMS" "#include <mongoc.h> 19524" "$ac_c_undeclared_builtin_options" "CFLAGS" 19525if test "x$ac_cv_have_decl_MONGOC_URI_SERVERSELECTIONTIMEOUTMS" = xyes 19526then : 19527 ac_have_decl=1 19528else $as_nop 19529 ac_have_decl=0 19530fi 19531printf "%s\n" "#define HAVE_DECL_MONGOC_URI_SERVERSELECTIONTIMEOUTMS $ac_have_decl" >>confdefs.h 19532 19533 19534CPPFLAGS="$CPPFLAGS_SAVE" 19535fi 19536 19537if test "x$enable_smtp" != "xno" && test "x$with_libesmtp" != "xno"; then 19538 libesmtp="yes" 19539 if test "x$with_libesmtp" != "xyes" && test "x$with_libesmtp" != "x"; then 19540 CPPFLAGS_SAVE="$CPPFLAGS" 19541 LDFLAGS_SAVE="$LDFLAGS" 19542 CPPFLAGS="$CPPFLAGS -I$with_libesmtp/include" 19543 LDFLAGS="$LDFLAGS -L$with_libesmtp/lib" 19544 ac_fn_c_check_header_compile "$LINENO" "libesmtp.h" "ac_cv_header_libesmtp_h" "$ac_includes_default" 19545if test "x$ac_cv_header_libesmtp_h" = xyes 19546then : 19547 LIBESMTP_CFLAGS="-I$with_libesmtp/include" 19548 LIBESMTP_LIBS="-L$with_libesmtp/lib -lesmtp" 19549else $as_nop 19550 libesmtp=no 19551fi 19552 19553 CPPFLAGS="$CPPFLAGS_SAVE" 19554 LDFLAGS="$LDFLAGS_SAVE" 19555 else 19556 19557pkg_failed=no 19558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libesmtp-1.0" >&5 19559printf %s "checking for libesmtp-1.0... " >&6; } 19560 19561if test -n "$LIBESMTP_CFLAGS"; then 19562 pkg_cv_LIBESMTP_CFLAGS="$LIBESMTP_CFLAGS" 19563 elif test -n "$PKG_CONFIG"; then 19564 if test -n "$PKG_CONFIG" && \ 19565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libesmtp-1.0\""; } >&5 19566 ($PKG_CONFIG --exists --print-errors "libesmtp-1.0") 2>&5 19567 ac_status=$? 19568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19569 test $ac_status = 0; }; then 19570 pkg_cv_LIBESMTP_CFLAGS=`$PKG_CONFIG --cflags "libesmtp-1.0" 2>/dev/null` 19571 test "x$?" != "x0" && pkg_failed=yes 19572else 19573 pkg_failed=yes 19574fi 19575 else 19576 pkg_failed=untried 19577fi 19578if test -n "$LIBESMTP_LIBS"; then 19579 pkg_cv_LIBESMTP_LIBS="$LIBESMTP_LIBS" 19580 elif test -n "$PKG_CONFIG"; then 19581 if test -n "$PKG_CONFIG" && \ 19582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libesmtp-1.0\""; } >&5 19583 ($PKG_CONFIG --exists --print-errors "libesmtp-1.0") 2>&5 19584 ac_status=$? 19585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19586 test $ac_status = 0; }; then 19587 pkg_cv_LIBESMTP_LIBS=`$PKG_CONFIG --libs "libesmtp-1.0" 2>/dev/null` 19588 test "x$?" != "x0" && pkg_failed=yes 19589else 19590 pkg_failed=yes 19591fi 19592 else 19593 pkg_failed=untried 19594fi 19595 19596 19597 19598if test $pkg_failed = yes; then 19599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19600printf "%s\n" "no" >&6; } 19601 19602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19603 _pkg_short_errors_supported=yes 19604else 19605 _pkg_short_errors_supported=no 19606fi 19607 if test $_pkg_short_errors_supported = yes; then 19608 LIBESMTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libesmtp-1.0" 2>&1` 19609 else 19610 LIBESMTP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libesmtp-1.0" 2>&1` 19611 fi 19612 # Put the nasty error message in config.log where it belongs 19613 echo "$LIBESMTP_PKG_ERRORS" >&5 19614 19615 libesmtp="no" 19616elif test $pkg_failed = untried; then 19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19618printf "%s\n" "no" >&6; } 19619 libesmtp="no" 19620else 19621 LIBESMTP_CFLAGS=$pkg_cv_LIBESMTP_CFLAGS 19622 LIBESMTP_LIBS=$pkg_cv_LIBESMTP_LIBS 19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19624printf "%s\n" "yes" >&6; } 19625 libesmtp="yes" 19626fi 19627 if test "x$libesmtp" = "xno"; then 19628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libESMTP with libesmtp-config" >&5 19629printf %s "checking for libESMTP with libesmtp-config... " >&6; } 19630 if libesmtp-config --version >/dev/null 2>&1; then 19631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19632printf "%s\n" "yes" >&6; } 19633 LIBESMTP_CFLAGS="`libesmtp-config --cflags`" 19634 LIBESMTP_LIBS="`libesmtp-config --libs`" 19635 libesmtp="yes" 19636 else 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19638printf "%s\n" "no" >&6; } 19639 libesmtp=no 19640 fi 19641 fi 19642 fi 19643 if test "x$enable_smtp" = "xyes" && test "x$libesmtp" = "xno"; then 19644 as_fn_error $? "libESMTP not found" "$LINENO" 5 19645 fi 19646 enable_smtp=$libesmtp 19647fi 19648 19649 19650 19651if test "x$enable_mqtt" = "xyes" || test "x$enable_mqtt" = "xauto"; then 19652 if test "x$with_libpaho_mqtt" != "x"; then 19653 CPPFLAGS_SAVE="$CPPFLAGS" 19654 LDFLAGS_SAVE="$LDFLAGS" 19655 CPPFLAGS="$CPPFLAGS -I$with_libpaho_mqtt/include" 19656 LDFLAGS="$LDFLAGS -L$with_libpaho_mqtt -lpaho-mqtt3cs" 19657 ac_fn_c_check_header_compile "$LINENO" "MQTTClient.h" "ac_cv_header_MQTTClient_h" "$ac_includes_default" 19658if test "x$ac_cv_header_MQTTClient_h" = xyes 19659then : 19660 LIBPAHO_MQTT_CFLAGS="-I$with_libpaho_mqtt/include" 19661 LIBPAHO_MQTT_LIBS="-L$with_libpaho_mqtt/lib -lpaho-mqtt3cs" 19662 libpaho_mqtt="yes" 19663else $as_nop 19664 libpaho_mqtt=no 19665fi 19666 19667 19668 CPPFLAGS="$CPPFLAGS_SAVE" 19669 LDFLAGS="$LDFLAGS_SAVE" 19670 else 19671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MQTTClient_create in -lpaho-mqtt3cs" >&5 19672printf %s "checking for MQTTClient_create in -lpaho-mqtt3cs... " >&6; } 19673if test ${ac_cv_lib_paho_mqtt3cs_MQTTClient_create+y} 19674then : 19675 printf %s "(cached) " >&6 19676else $as_nop 19677 ac_check_lib_save_LIBS=$LIBS 19678LIBS="-lpaho-mqtt3cs $LIBS" 19679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19680/* end confdefs.h. */ 19681 19682/* Override any GCC internal prototype to avoid an error. 19683 Use char because int might match the return type of a GCC 19684 builtin and then its argument prototype would still apply. */ 19685char MQTTClient_create (); 19686int 19687main (void) 19688{ 19689return MQTTClient_create (); 19690 ; 19691 return 0; 19692} 19693_ACEOF 19694if ac_fn_c_try_link "$LINENO" 19695then : 19696 ac_cv_lib_paho_mqtt3cs_MQTTClient_create=yes 19697else $as_nop 19698 ac_cv_lib_paho_mqtt3cs_MQTTClient_create=no 19699fi 19700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19701 conftest$ac_exeext conftest.$ac_ext 19702LIBS=$ac_check_lib_save_LIBS 19703fi 19704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paho_mqtt3cs_MQTTClient_create" >&5 19705printf "%s\n" "$ac_cv_lib_paho_mqtt3cs_MQTTClient_create" >&6; } 19706if test "x$ac_cv_lib_paho_mqtt3cs_MQTTClient_create" = xyes 19707then : 19708 LIBPAHO_MQTT_LIBS="-lpaho-mqtt3cs"; libpaho_mqtt="yes" 19709else $as_nop 19710 libpaho_mqtt="no" 19711fi 19712 19713 fi 19714 if test "x$enable_mqtt" = "xyes" && test "x$libpaho_mqtt" = "xno"; then 19715 as_fn_error $? "libPAHO_MQTT not found" "$LINENO" 5 19716 fi 19717 19718 if test "x$libpaho_mqtt" = "xyes"; then 19719 CPPFLAGS_SAVE="$CPPFLAGS" 19720 LDFLAGS_SAVE="$LDFLAGS" 19721 CPPFLAGS="$CPPFLAGS $LIBPAHO_MQTT_CFLAGS" 19722 LDFLAGS="$LDFLAGS $LIBPAHO_MQTT_LIBS" 19723 19724 ac_fn_c_check_member "$LINENO" "MQTTClient_connectOptions" "httpProxy" "ac_cv_member_MQTTClient_connectOptions_httpProxy" "#include \"MQTTClient.h\" 19725" 19726if test "x$ac_cv_member_MQTTClient_connectOptions_httpProxy" = xyes 19727then : 19728 have_paho_http_proxy=1 19729else $as_nop 19730 have_paho_http_proxy=0 19731fi 19732 19733 19734 CPPFLAGS="$CPPFLAGS_SAVE" 19735 LDFLAGS="$LDFLAGS_SAVE" 19736 19737 19738printf "%s\n" "#define HAVE_PAHO_HTTP_PROXY $have_paho_http_proxy" >>confdefs.h 19739 19740 fi 19741 19742 enable_mqtt=$libpaho_mqtt 19743fi 19744 19745if test "x$enable_http" != "xno" && test "x$with_libcurl" != "xno"; then 19746 libcurl="yes" 19747 if test "x$with_libcurl" != "xyes" && test "x$with_libcurl" != "x"; then 19748 CPPFLAGS_SAVE="$CPPFLAGS" 19749 LDFLAGS_SAVE="$LDFLAGS" 19750 CPPFLAGS="$CPPFLAGS -I$with_libcurl/include" 19751 LDFLAGS="$LDFLAGS -L$with_libcurl/lib" 19752 ac_fn_c_check_header_compile "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default" 19753if test "x$ac_cv_header_curl_curl_h" = xyes 19754then : 19755 LIBCURL_CFLAGS="-I$with_libcurl/include" 19756 LIBCURL_LIBS="-L$with_libcurl/lib -lcurl" 19757else $as_nop 19758 libcurl=no 19759fi 19760 19761 CPPFLAGS="$CPPFLAGS_SAVE" 19762 LDFLAGS="$LDFLAGS_SAVE" 19763 else 19764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl" >&5 19765printf %s "checking for libcurl... " >&6; } 19766 if curl-config --version >/dev/null 2>&1; then 19767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19768printf "%s\n" "yes" >&6; } 19769 LIBCURL_CFLAGS="`curl-config --cflags`" 19770 LIBCURL_LIBS="`curl-config --libs`" 19771 else 19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19773printf "%s\n" "no" >&6; } 19774 libcurl=no 19775 fi 19776 fi 19777 if test "x$enable_http" = "xyes" && test "x$libcurl" = "xno"; then 19778 as_fn_error $? "libcurl not found" "$LINENO" 5 19779 fi 19780 enable_http=$libcurl 19781 19782 if test "$enable_http" = "yes"; then 19783 old_CFLAGS=$CFLAGS 19784 CFLAGS=$LIBCURL_CFLAGS 19785 ac_fn_check_decl "$LINENO" "CURL_SSLVERSION_TLSv1_0" "ac_cv_have_decl_CURL_SSLVERSION_TLSv1_0" "#include <curl/curl.h> 19786" "$ac_c_undeclared_builtin_options" "CFLAGS" 19787if test "x$ac_cv_have_decl_CURL_SSLVERSION_TLSv1_0" = xyes 19788then : 19789 ac_have_decl=1 19790else $as_nop 19791 ac_have_decl=0 19792fi 19793printf "%s\n" "#define HAVE_DECL_CURL_SSLVERSION_TLSV1_0 $ac_have_decl" >>confdefs.h 19794ac_fn_check_decl "$LINENO" "CURL_SSLVERSION_TLSv1_1" "ac_cv_have_decl_CURL_SSLVERSION_TLSv1_1" "#include <curl/curl.h> 19795" "$ac_c_undeclared_builtin_options" "CFLAGS" 19796if test "x$ac_cv_have_decl_CURL_SSLVERSION_TLSv1_1" = xyes 19797then : 19798 ac_have_decl=1 19799else $as_nop 19800 ac_have_decl=0 19801fi 19802printf "%s\n" "#define HAVE_DECL_CURL_SSLVERSION_TLSV1_1 $ac_have_decl" >>confdefs.h 19803ac_fn_check_decl "$LINENO" "CURL_SSLVERSION_TLSv1_2" "ac_cv_have_decl_CURL_SSLVERSION_TLSv1_2" "#include <curl/curl.h> 19804" "$ac_c_undeclared_builtin_options" "CFLAGS" 19805if test "x$ac_cv_have_decl_CURL_SSLVERSION_TLSv1_2" = xyes 19806then : 19807 ac_have_decl=1 19808else $as_nop 19809 ac_have_decl=0 19810fi 19811printf "%s\n" "#define HAVE_DECL_CURL_SSLVERSION_TLSV1_2 $ac_have_decl" >>confdefs.h 19812ac_fn_check_decl "$LINENO" "CURL_SSLVERSION_TLSv1_3" "ac_cv_have_decl_CURL_SSLVERSION_TLSv1_3" "#include <curl/curl.h> 19813" "$ac_c_undeclared_builtin_options" "CFLAGS" 19814if test "x$ac_cv_have_decl_CURL_SSLVERSION_TLSv1_3" = xyes 19815then : 19816 ac_have_decl=1 19817else $as_nop 19818 ac_have_decl=0 19819fi 19820printf "%s\n" "#define HAVE_DECL_CURL_SSLVERSION_TLSV1_3 $ac_have_decl" >>confdefs.h 19821 19822 CFLAGS=$old_CFLAGS 19823 fi 19824fi 19825 19826if test "x$enable_redis" != "xno" && test "x$with_redis" != "xno"; then 19827 hiredis="yes" 19828 if test "x$with_libhiredis" != "xyes" && test "x$with_libhiredis" != "x"; then 19829 CFLAGS_SAVE="$CFLAGS" 19830 LDFLAGS_SAVE="$LDFLAGS" 19831 CFLAGS="$CFLAGS -I$with_libhiredis/include" 19832 LDFLAGS="$LDFLAGS -L$with_libhiredis/lib" 19833 ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default" 19834if test "x$ac_cv_header_hiredis_hiredis_h" = xyes 19835then : 19836 HIREDIS_CFLAGS="-I$with_libhiredis/include" 19837 HIREDIS_LIBS="-L$with_libhiredis/lib -lhiredis" 19838else $as_nop 19839 hiredis=no 19840fi 19841 19842 CFLAGS="$CFLAGS_SAVE" 19843 LDFLAGS="$LDFLAGS_SAVE" 19844 else 19845 hiredis="yes" 19846 19847pkg_failed=no 19848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hiredis >= $HIREDIS_MIN_VERSION" >&5 19849printf %s "checking for hiredis >= $HIREDIS_MIN_VERSION... " >&6; } 19850 19851if test -n "$HIREDIS_CFLAGS"; then 19852 pkg_cv_HIREDIS_CFLAGS="$HIREDIS_CFLAGS" 19853 elif test -n "$PKG_CONFIG"; then 19854 if test -n "$PKG_CONFIG" && \ 19855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis >= \$HIREDIS_MIN_VERSION\""; } >&5 19856 ($PKG_CONFIG --exists --print-errors "hiredis >= $HIREDIS_MIN_VERSION") 2>&5 19857 ac_status=$? 19858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19859 test $ac_status = 0; }; then 19860 pkg_cv_HIREDIS_CFLAGS=`$PKG_CONFIG --cflags "hiredis >= $HIREDIS_MIN_VERSION" 2>/dev/null` 19861 test "x$?" != "x0" && pkg_failed=yes 19862else 19863 pkg_failed=yes 19864fi 19865 else 19866 pkg_failed=untried 19867fi 19868if test -n "$HIREDIS_LIBS"; then 19869 pkg_cv_HIREDIS_LIBS="$HIREDIS_LIBS" 19870 elif test -n "$PKG_CONFIG"; then 19871 if test -n "$PKG_CONFIG" && \ 19872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis >= \$HIREDIS_MIN_VERSION\""; } >&5 19873 ($PKG_CONFIG --exists --print-errors "hiredis >= $HIREDIS_MIN_VERSION") 2>&5 19874 ac_status=$? 19875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19876 test $ac_status = 0; }; then 19877 pkg_cv_HIREDIS_LIBS=`$PKG_CONFIG --libs "hiredis >= $HIREDIS_MIN_VERSION" 2>/dev/null` 19878 test "x$?" != "x0" && pkg_failed=yes 19879else 19880 pkg_failed=yes 19881fi 19882 else 19883 pkg_failed=untried 19884fi 19885 19886 19887 19888if test $pkg_failed = yes; then 19889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19890printf "%s\n" "no" >&6; } 19891 19892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19893 _pkg_short_errors_supported=yes 19894else 19895 _pkg_short_errors_supported=no 19896fi 19897 if test $_pkg_short_errors_supported = yes; then 19898 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hiredis >= $HIREDIS_MIN_VERSION" 2>&1` 19899 else 19900 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hiredis >= $HIREDIS_MIN_VERSION" 2>&1` 19901 fi 19902 # Put the nasty error message in config.log where it belongs 19903 echo "$HIREDIS_PKG_ERRORS" >&5 19904 19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find hiredis >= $HIREDIS_MIN_VERSION" >&5 19906printf "%s\n" "$as_me: WARNING: pkg-config was not able to find hiredis >= $HIREDIS_MIN_VERSION" >&2;} 19907 19908pkg_failed=no 19909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis >= $HIREDIS_MIN_VERSION" >&5 19910printf %s "checking for libhiredis >= $HIREDIS_MIN_VERSION... " >&6; } 19911 19912if test -n "$HIREDIS_CFLAGS"; then 19913 pkg_cv_HIREDIS_CFLAGS="$HIREDIS_CFLAGS" 19914 elif test -n "$PKG_CONFIG"; then 19915 if test -n "$PKG_CONFIG" && \ 19916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhiredis >= \$HIREDIS_MIN_VERSION\""; } >&5 19917 ($PKG_CONFIG --exists --print-errors "libhiredis >= $HIREDIS_MIN_VERSION") 2>&5 19918 ac_status=$? 19919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19920 test $ac_status = 0; }; then 19921 pkg_cv_HIREDIS_CFLAGS=`$PKG_CONFIG --cflags "libhiredis >= $HIREDIS_MIN_VERSION" 2>/dev/null` 19922 test "x$?" != "x0" && pkg_failed=yes 19923else 19924 pkg_failed=yes 19925fi 19926 else 19927 pkg_failed=untried 19928fi 19929if test -n "$HIREDIS_LIBS"; then 19930 pkg_cv_HIREDIS_LIBS="$HIREDIS_LIBS" 19931 elif test -n "$PKG_CONFIG"; then 19932 if test -n "$PKG_CONFIG" && \ 19933 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhiredis >= \$HIREDIS_MIN_VERSION\""; } >&5 19934 ($PKG_CONFIG --exists --print-errors "libhiredis >= $HIREDIS_MIN_VERSION") 2>&5 19935 ac_status=$? 19936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19937 test $ac_status = 0; }; then 19938 pkg_cv_HIREDIS_LIBS=`$PKG_CONFIG --libs "libhiredis >= $HIREDIS_MIN_VERSION" 2>/dev/null` 19939 test "x$?" != "x0" && pkg_failed=yes 19940else 19941 pkg_failed=yes 19942fi 19943 else 19944 pkg_failed=untried 19945fi 19946 19947 19948 19949if test $pkg_failed = yes; then 19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19951printf "%s\n" "no" >&6; } 19952 19953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19954 _pkg_short_errors_supported=yes 19955else 19956 _pkg_short_errors_supported=no 19957fi 19958 if test $_pkg_short_errors_supported = yes; then 19959 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libhiredis >= $HIREDIS_MIN_VERSION" 2>&1` 19960 else 19961 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libhiredis >= $HIREDIS_MIN_VERSION" 2>&1` 19962 fi 19963 # Put the nasty error message in config.log where it belongs 19964 echo "$HIREDIS_PKG_ERRORS" >&5 19965 19966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&5 19967printf "%s\n" "$as_me: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&2;} 19968 hiredis=no 19969elif test $pkg_failed = untried; then 19970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19971printf "%s\n" "no" >&6; } 19972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&5 19973printf "%s\n" "$as_me: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&2;} 19974 hiredis=no 19975else 19976 HIREDIS_CFLAGS=$pkg_cv_HIREDIS_CFLAGS 19977 HIREDIS_LIBS=$pkg_cv_HIREDIS_LIBS 19978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19979printf "%s\n" "yes" >&6; } 19980 19981fi 19982elif test $pkg_failed = untried; then 19983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19984printf "%s\n" "no" >&6; } 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find hiredis >= $HIREDIS_MIN_VERSION" >&5 19986printf "%s\n" "$as_me: WARNING: pkg-config was not able to find hiredis >= $HIREDIS_MIN_VERSION" >&2;} 19987 19988pkg_failed=no 19989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libhiredis >= $HIREDIS_MIN_VERSION" >&5 19990printf %s "checking for libhiredis >= $HIREDIS_MIN_VERSION... " >&6; } 19991 19992if test -n "$HIREDIS_CFLAGS"; then 19993 pkg_cv_HIREDIS_CFLAGS="$HIREDIS_CFLAGS" 19994 elif test -n "$PKG_CONFIG"; then 19995 if test -n "$PKG_CONFIG" && \ 19996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhiredis >= \$HIREDIS_MIN_VERSION\""; } >&5 19997 ($PKG_CONFIG --exists --print-errors "libhiredis >= $HIREDIS_MIN_VERSION") 2>&5 19998 ac_status=$? 19999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20000 test $ac_status = 0; }; then 20001 pkg_cv_HIREDIS_CFLAGS=`$PKG_CONFIG --cflags "libhiredis >= $HIREDIS_MIN_VERSION" 2>/dev/null` 20002 test "x$?" != "x0" && pkg_failed=yes 20003else 20004 pkg_failed=yes 20005fi 20006 else 20007 pkg_failed=untried 20008fi 20009if test -n "$HIREDIS_LIBS"; then 20010 pkg_cv_HIREDIS_LIBS="$HIREDIS_LIBS" 20011 elif test -n "$PKG_CONFIG"; then 20012 if test -n "$PKG_CONFIG" && \ 20013 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libhiredis >= \$HIREDIS_MIN_VERSION\""; } >&5 20014 ($PKG_CONFIG --exists --print-errors "libhiredis >= $HIREDIS_MIN_VERSION") 2>&5 20015 ac_status=$? 20016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20017 test $ac_status = 0; }; then 20018 pkg_cv_HIREDIS_LIBS=`$PKG_CONFIG --libs "libhiredis >= $HIREDIS_MIN_VERSION" 2>/dev/null` 20019 test "x$?" != "x0" && pkg_failed=yes 20020else 20021 pkg_failed=yes 20022fi 20023 else 20024 pkg_failed=untried 20025fi 20026 20027 20028 20029if test $pkg_failed = yes; then 20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20031printf "%s\n" "no" >&6; } 20032 20033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20034 _pkg_short_errors_supported=yes 20035else 20036 _pkg_short_errors_supported=no 20037fi 20038 if test $_pkg_short_errors_supported = yes; then 20039 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libhiredis >= $HIREDIS_MIN_VERSION" 2>&1` 20040 else 20041 HIREDIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libhiredis >= $HIREDIS_MIN_VERSION" 2>&1` 20042 fi 20043 # Put the nasty error message in config.log where it belongs 20044 echo "$HIREDIS_PKG_ERRORS" >&5 20045 20046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&5 20047printf "%s\n" "$as_me: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&2;} 20048 hiredis=no 20049elif test $pkg_failed = untried; then 20050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20051printf "%s\n" "no" >&6; } 20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&5 20053printf "%s\n" "$as_me: WARNING: pkg-config was not able to find libhiredis >= $HIREDIS_MIN_VERSION" >&2;} 20054 hiredis=no 20055else 20056 HIREDIS_CFLAGS=$pkg_cv_HIREDIS_CFLAGS 20057 HIREDIS_LIBS=$pkg_cv_HIREDIS_LIBS 20058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20059printf "%s\n" "yes" >&6; } 20060 20061fi 20062else 20063 HIREDIS_CFLAGS=$pkg_cv_HIREDIS_CFLAGS 20064 HIREDIS_LIBS=$pkg_cv_HIREDIS_LIBS 20065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20066printf "%s\n" "yes" >&6; } 20067 20068fi 20069 fi 20070 20071 if test "x$enable_redis" = "xyes" && test "x$hiredis" = "xno"; then 20072 as_fn_error $? "libHIREDIS not found" "$LINENO" 5 20073 fi 20074 20075 enable_redis=$hiredis 20076fi 20077 20078 20079 20080pkg_failed=no 20081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librabbitmq >= $LIBRABBITMQ_MIN_VERSION" >&5 20082printf %s "checking for librabbitmq >= $LIBRABBITMQ_MIN_VERSION... " >&6; } 20083 20084if test -n "$LIBRABBITMQ_CFLAGS"; then 20085 pkg_cv_LIBRABBITMQ_CFLAGS="$LIBRABBITMQ_CFLAGS" 20086 elif test -n "$PKG_CONFIG"; then 20087 if test -n "$PKG_CONFIG" && \ 20088 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librabbitmq >= \$LIBRABBITMQ_MIN_VERSION\""; } >&5 20089 ($PKG_CONFIG --exists --print-errors "librabbitmq >= $LIBRABBITMQ_MIN_VERSION") 2>&5 20090 ac_status=$? 20091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20092 test $ac_status = 0; }; then 20093 pkg_cv_LIBRABBITMQ_CFLAGS=`$PKG_CONFIG --cflags "librabbitmq >= $LIBRABBITMQ_MIN_VERSION" 2>/dev/null` 20094 test "x$?" != "x0" && pkg_failed=yes 20095else 20096 pkg_failed=yes 20097fi 20098 else 20099 pkg_failed=untried 20100fi 20101if test -n "$LIBRABBITMQ_LIBS"; then 20102 pkg_cv_LIBRABBITMQ_LIBS="$LIBRABBITMQ_LIBS" 20103 elif test -n "$PKG_CONFIG"; then 20104 if test -n "$PKG_CONFIG" && \ 20105 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librabbitmq >= \$LIBRABBITMQ_MIN_VERSION\""; } >&5 20106 ($PKG_CONFIG --exists --print-errors "librabbitmq >= $LIBRABBITMQ_MIN_VERSION") 2>&5 20107 ac_status=$? 20108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20109 test $ac_status = 0; }; then 20110 pkg_cv_LIBRABBITMQ_LIBS=`$PKG_CONFIG --libs "librabbitmq >= $LIBRABBITMQ_MIN_VERSION" 2>/dev/null` 20111 test "x$?" != "x0" && pkg_failed=yes 20112else 20113 pkg_failed=yes 20114fi 20115 else 20116 pkg_failed=untried 20117fi 20118 20119 20120 20121if test $pkg_failed = yes; then 20122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20123printf "%s\n" "no" >&6; } 20124 20125if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20126 _pkg_short_errors_supported=yes 20127else 20128 _pkg_short_errors_supported=no 20129fi 20130 if test $_pkg_short_errors_supported = yes; then 20131 LIBRABBITMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librabbitmq >= $LIBRABBITMQ_MIN_VERSION" 2>&1` 20132 else 20133 LIBRABBITMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librabbitmq >= $LIBRABBITMQ_MIN_VERSION" 2>&1` 20134 fi 20135 # Put the nasty error message in config.log where it belongs 20136 echo "$LIBRABBITMQ_PKG_ERRORS" >&5 20137 20138 with_librabbitmq_client="no" 20139elif test $pkg_failed = untried; then 20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20141printf "%s\n" "no" >&6; } 20142 with_librabbitmq_client="no" 20143else 20144 LIBRABBITMQ_CFLAGS=$pkg_cv_LIBRABBITMQ_CFLAGS 20145 LIBRABBITMQ_LIBS=$pkg_cv_LIBRABBITMQ_LIBS 20146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20147printf "%s\n" "yes" >&6; } 20148 with_librabbitmq_client="yes" 20149fi 20150 20151if test "$enable_amqp" = "yes" && test "$with_librabbitmq_client" = "no"; then 20152 as_fn_error $? "Could not find librabbitmq-c, and AMQP support was explicitly enabled." "$LINENO" 5 20153fi 20154 20155old_LIBS=$LIBS 20156LIBS=$LIBRABBITMQ_LIBS 20157ac_fn_c_check_func "$LINENO" "amqp_ssl_socket_set_verify_peer" "ac_cv_func_amqp_ssl_socket_set_verify_peer" 20158if test "x$ac_cv_func_amqp_ssl_socket_set_verify_peer" = xyes 20159then : 20160 printf "%s\n" "#define HAVE_AMQP_SSL_SOCKET_SET_VERIFY_PEER 1" >>confdefs.h 20161 20162fi 20163 20164LIBS=$old_LIBS 20165 20166 20167 20168pkg_failed=no 20169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rdkafka >= $LIBRDKAFKA_MIN_VERSION" >&5 20170printf %s "checking for rdkafka >= $LIBRDKAFKA_MIN_VERSION... " >&6; } 20171 20172if test -n "$LIBRDKAFKA_CFLAGS"; then 20173 pkg_cv_LIBRDKAFKA_CFLAGS="$LIBRDKAFKA_CFLAGS" 20174 elif test -n "$PKG_CONFIG"; then 20175 if test -n "$PKG_CONFIG" && \ 20176 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= \$LIBRDKAFKA_MIN_VERSION\""; } >&5 20177 ($PKG_CONFIG --exists --print-errors "rdkafka >= $LIBRDKAFKA_MIN_VERSION") 2>&5 20178 ac_status=$? 20179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20180 test $ac_status = 0; }; then 20181 pkg_cv_LIBRDKAFKA_CFLAGS=`$PKG_CONFIG --cflags "rdkafka >= $LIBRDKAFKA_MIN_VERSION" 2>/dev/null` 20182 test "x$?" != "x0" && pkg_failed=yes 20183else 20184 pkg_failed=yes 20185fi 20186 else 20187 pkg_failed=untried 20188fi 20189if test -n "$LIBRDKAFKA_LIBS"; then 20190 pkg_cv_LIBRDKAFKA_LIBS="$LIBRDKAFKA_LIBS" 20191 elif test -n "$PKG_CONFIG"; then 20192 if test -n "$PKG_CONFIG" && \ 20193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= \$LIBRDKAFKA_MIN_VERSION\""; } >&5 20194 ($PKG_CONFIG --exists --print-errors "rdkafka >= $LIBRDKAFKA_MIN_VERSION") 2>&5 20195 ac_status=$? 20196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20197 test $ac_status = 0; }; then 20198 pkg_cv_LIBRDKAFKA_LIBS=`$PKG_CONFIG --libs "rdkafka >= $LIBRDKAFKA_MIN_VERSION" 2>/dev/null` 20199 test "x$?" != "x0" && pkg_failed=yes 20200else 20201 pkg_failed=yes 20202fi 20203 else 20204 pkg_failed=untried 20205fi 20206 20207 20208 20209if test $pkg_failed = yes; then 20210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20211printf "%s\n" "no" >&6; } 20212 20213if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20214 _pkg_short_errors_supported=yes 20215else 20216 _pkg_short_errors_supported=no 20217fi 20218 if test $_pkg_short_errors_supported = yes; then 20219 LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rdkafka >= $LIBRDKAFKA_MIN_VERSION" 2>&1` 20220 else 20221 LIBRDKAFKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rdkafka >= $LIBRDKAFKA_MIN_VERSION" 2>&1` 20222 fi 20223 # Put the nasty error message in config.log where it belongs 20224 echo "$LIBRDKAFKA_PKG_ERRORS" >&5 20225 20226 with_librdkafka="no" 20227elif test $pkg_failed = untried; then 20228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20229printf "%s\n" "no" >&6; } 20230 with_librdkafka="no" 20231else 20232 LIBRDKAFKA_CFLAGS=$pkg_cv_LIBRDKAFKA_CFLAGS 20233 LIBRDKAFKA_LIBS=$pkg_cv_LIBRDKAFKA_LIBS 20234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20235printf "%s\n" "yes" >&6; } 20236 with_librdkafka="yes" 20237fi 20238 20239if test "$enable_kafka" = "yes" && test "$with_librdkafka" = "no"; then 20240 as_fn_error $? "Could not find librdkafka, and Kafka support was explicitly enabled." "$LINENO" 5 20241fi 20242 20243 20244old_LIBS=$LIBS 20245old_CFLAGS=$CFLAGS 20246LIBS=$LIBRDKAFKA_LIBS 20247CFLAGS=$LIBRDKAFKA_CFLAGS 20248ac_fn_c_check_func "$LINENO" "rd_kafka_init_transactions" "ac_cv_func_rd_kafka_init_transactions" 20249if test "x$ac_cv_func_rd_kafka_init_transactions" = xyes 20250then : 20251 printf "%s\n" "#define HAVE_RD_KAFKA_INIT_TRANSACTIONS 1" >>confdefs.h 20252 20253fi 20254 20255LIBS=$old_LIBS 20256CFLAGS=$old_CFLAGS 20257 20258 20259if test "x$enable_native" = "xyes" -o "x$enable_native" = "xauto"; then 20260 ac_config_files="$ac_config_files syslog-ng-native-connector.pc" 20261 20262fi 20263 20264if test "$enable_riemann" != "no"; then 20265 20266pkg_failed=no 20267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for riemann-client >= $LRC_MIN_VERSION" >&5 20268printf %s "checking for riemann-client >= $LRC_MIN_VERSION... " >&6; } 20269 20270if test -n "$RIEMANN_CLIENT_CFLAGS"; then 20271 pkg_cv_RIEMANN_CLIENT_CFLAGS="$RIEMANN_CLIENT_CFLAGS" 20272 elif test -n "$PKG_CONFIG"; then 20273 if test -n "$PKG_CONFIG" && \ 20274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"riemann-client >= \$LRC_MIN_VERSION\""; } >&5 20275 ($PKG_CONFIG --exists --print-errors "riemann-client >= $LRC_MIN_VERSION") 2>&5 20276 ac_status=$? 20277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20278 test $ac_status = 0; }; then 20279 pkg_cv_RIEMANN_CLIENT_CFLAGS=`$PKG_CONFIG --cflags "riemann-client >= $LRC_MIN_VERSION" 2>/dev/null` 20280 test "x$?" != "x0" && pkg_failed=yes 20281else 20282 pkg_failed=yes 20283fi 20284 else 20285 pkg_failed=untried 20286fi 20287if test -n "$RIEMANN_CLIENT_LIBS"; then 20288 pkg_cv_RIEMANN_CLIENT_LIBS="$RIEMANN_CLIENT_LIBS" 20289 elif test -n "$PKG_CONFIG"; then 20290 if test -n "$PKG_CONFIG" && \ 20291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"riemann-client >= \$LRC_MIN_VERSION\""; } >&5 20292 ($PKG_CONFIG --exists --print-errors "riemann-client >= $LRC_MIN_VERSION") 2>&5 20293 ac_status=$? 20294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20295 test $ac_status = 0; }; then 20296 pkg_cv_RIEMANN_CLIENT_LIBS=`$PKG_CONFIG --libs "riemann-client >= $LRC_MIN_VERSION" 2>/dev/null` 20297 test "x$?" != "x0" && pkg_failed=yes 20298else 20299 pkg_failed=yes 20300fi 20301 else 20302 pkg_failed=untried 20303fi 20304 20305 20306 20307if test $pkg_failed = yes; then 20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20309printf "%s\n" "no" >&6; } 20310 20311if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20312 _pkg_short_errors_supported=yes 20313else 20314 _pkg_short_errors_supported=no 20315fi 20316 if test $_pkg_short_errors_supported = yes; then 20317 RIEMANN_CLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "riemann-client >= $LRC_MIN_VERSION" 2>&1` 20318 else 20319 RIEMANN_CLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "riemann-client >= $LRC_MIN_VERSION" 2>&1` 20320 fi 20321 # Put the nasty error message in config.log where it belongs 20322 echo "$RIEMANN_CLIENT_PKG_ERRORS" >&5 20323 20324 riemann_found="no" 20325elif test $pkg_failed = untried; then 20326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20327printf "%s\n" "no" >&6; } 20328 riemann_found="no" 20329else 20330 RIEMANN_CLIENT_CFLAGS=$pkg_cv_RIEMANN_CLIENT_CFLAGS 20331 RIEMANN_CLIENT_LIBS=$pkg_cv_RIEMANN_CLIENT_LIBS 20332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20333printf "%s\n" "yes" >&6; } 20334 20335fi 20336 if test "$riemann_found" = "no" && test "$enable_riemann" = "yes"; then 20337 as_fn_error $? "Dependency for Riemann not found!" "$LINENO" 5 20338 fi 20339 if test "$riemann_found" = "no"; then 20340 enable_riemann="no"; 20341 else 20342 enable_riemann="yes"; 20343 fi 20344 20345 if test "$enable_riemann" = "yes"; then 20346 20347 old_CFLAGS=$CFLAGS 20348 CFLAGS=`pkg-config --cflags riemann-client` 20349 ac_fn_check_decl "$LINENO" "RIEMANN_EVENT_FIELD_TIME_MICROS" "ac_cv_have_decl_RIEMANN_EVENT_FIELD_TIME_MICROS" "#include <riemann/event.h> 20350" "$ac_c_undeclared_builtin_options" "CFLAGS" 20351if test "x$ac_cv_have_decl_RIEMANN_EVENT_FIELD_TIME_MICROS" = xyes 20352then : 20353 ac_have_decl=1 20354else $as_nop 20355 ac_have_decl=0 20356fi 20357printf "%s\n" "#define HAVE_DECL_RIEMANN_EVENT_FIELD_TIME_MICROS $ac_have_decl" >>confdefs.h 20358if test $ac_have_decl = 1 20359then : 20360 20361printf "%s\n" "#define HAVE_RIEMANN_MICROSECONDS 1" >>confdefs.h 20362 20363fi 20364 20365 CFLAGS=$old_CFLAGS 20366 fi 20367fi 20368 20369 20370 20371pkg_failed=no 20372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= ${LIBSYSTEMD_MIN_VERSION}" >&5 20373printf %s "checking for libsystemd >= ${LIBSYSTEMD_MIN_VERSION}... " >&6; } 20374 20375if test -n "$libsystemd_CFLAGS"; then 20376 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS" 20377 elif test -n "$PKG_CONFIG"; then 20378 if test -n "$PKG_CONFIG" && \ 20379 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= \${LIBSYSTEMD_MIN_VERSION}\""; } >&5 20380 ($PKG_CONFIG --exists --print-errors "libsystemd >= ${LIBSYSTEMD_MIN_VERSION}") 2>&5 20381 ac_status=$? 20382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20383 test $ac_status = 0; }; then 20384 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= ${LIBSYSTEMD_MIN_VERSION}" 2>/dev/null` 20385 test "x$?" != "x0" && pkg_failed=yes 20386else 20387 pkg_failed=yes 20388fi 20389 else 20390 pkg_failed=untried 20391fi 20392if test -n "$libsystemd_LIBS"; then 20393 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS" 20394 elif test -n "$PKG_CONFIG"; then 20395 if test -n "$PKG_CONFIG" && \ 20396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= \${LIBSYSTEMD_MIN_VERSION}\""; } >&5 20397 ($PKG_CONFIG --exists --print-errors "libsystemd >= ${LIBSYSTEMD_MIN_VERSION}") 2>&5 20398 ac_status=$? 20399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20400 test $ac_status = 0; }; then 20401 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd >= ${LIBSYSTEMD_MIN_VERSION}" 2>/dev/null` 20402 test "x$?" != "x0" && pkg_failed=yes 20403else 20404 pkg_failed=yes 20405fi 20406 else 20407 pkg_failed=untried 20408fi 20409 20410 20411 20412if test $pkg_failed = yes; then 20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20414printf "%s\n" "no" >&6; } 20415 20416if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20417 _pkg_short_errors_supported=yes 20418else 20419 _pkg_short_errors_supported=no 20420fi 20421 if test $_pkg_short_errors_supported = yes; then 20422 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= ${LIBSYSTEMD_MIN_VERSION}" 2>&1` 20423 else 20424 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= ${LIBSYSTEMD_MIN_VERSION}" 2>&1` 20425 fi 20426 # Put the nasty error message in config.log where it belongs 20427 echo "$libsystemd_PKG_ERRORS" >&5 20428 20429 have_libsystemd="no" 20430elif test $pkg_failed = untried; then 20431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20432printf "%s\n" "no" >&6; } 20433 have_libsystemd="no" 20434else 20435 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS 20436 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS 20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20438printf "%s\n" "yes" >&6; } 20439 have_libsystemd="yes" 20440fi 20441 20442 20443pkg_failed=no 20444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}" >&5 20445printf %s "checking for libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}... " >&6; } 20446 20447if test -n "$libsystemd_namespaces_CFLAGS"; then 20448 pkg_cv_libsystemd_namespaces_CFLAGS="$libsystemd_namespaces_CFLAGS" 20449 elif test -n "$PKG_CONFIG"; then 20450 if test -n "$PKG_CONFIG" && \ 20451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= \${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}\""; } >&5 20452 ($PKG_CONFIG --exists --print-errors "libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}") 2>&5 20453 ac_status=$? 20454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20455 test $ac_status = 0; }; then 20456 pkg_cv_libsystemd_namespaces_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}" 2>/dev/null` 20457 test "x$?" != "x0" && pkg_failed=yes 20458else 20459 pkg_failed=yes 20460fi 20461 else 20462 pkg_failed=untried 20463fi 20464if test -n "$libsystemd_namespaces_LIBS"; then 20465 pkg_cv_libsystemd_namespaces_LIBS="$libsystemd_namespaces_LIBS" 20466 elif test -n "$PKG_CONFIG"; then 20467 if test -n "$PKG_CONFIG" && \ 20468 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= \${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}\""; } >&5 20469 ($PKG_CONFIG --exists --print-errors "libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}") 2>&5 20470 ac_status=$? 20471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20472 test $ac_status = 0; }; then 20473 pkg_cv_libsystemd_namespaces_LIBS=`$PKG_CONFIG --libs "libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}" 2>/dev/null` 20474 test "x$?" != "x0" && pkg_failed=yes 20475else 20476 pkg_failed=yes 20477fi 20478 else 20479 pkg_failed=untried 20480fi 20481 20482 20483 20484if test $pkg_failed = yes; then 20485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20486printf "%s\n" "no" >&6; } 20487 20488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20489 _pkg_short_errors_supported=yes 20490else 20491 _pkg_short_errors_supported=no 20492fi 20493 if test $_pkg_short_errors_supported = yes; then 20494 libsystemd_namespaces_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}" 2>&1` 20495 else 20496 libsystemd_namespaces_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= ${LIBSYSTEMD_WITH_JOURNAL_NAMESPACES_MIN_VERSION}" 2>&1` 20497 fi 20498 # Put the nasty error message in config.log where it belongs 20499 echo "$libsystemd_namespaces_PKG_ERRORS" >&5 20500 20501 journal_namespaces="no" 20502elif test $pkg_failed = untried; then 20503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20504printf "%s\n" "no" >&6; } 20505 journal_namespaces="no" 20506else 20507 libsystemd_namespaces_CFLAGS=$pkg_cv_libsystemd_namespaces_CFLAGS 20508 libsystemd_namespaces_LIBS=$pkg_cv_libsystemd_namespaces_LIBS 20509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20510printf "%s\n" "yes" >&6; } 20511 journal_namespaces="yes" 20512fi 20513 20514if test "x$enable_python" != "xno"; then 20515 if test "x$with_python" = "xauto"; then 20516 20517pkg_failed=no 20518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3-embed" >&5 20519printf %s "checking for python3-embed... " >&6; } 20520 20521if test -n "$PYTHON_CFLAGS"; then 20522 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 20523 elif test -n "$PKG_CONFIG"; then 20524 if test -n "$PKG_CONFIG" && \ 20525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3-embed\""; } >&5 20526 ($PKG_CONFIG --exists --print-errors "python3-embed") 2>&5 20527 ac_status=$? 20528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20529 test $ac_status = 0; }; then 20530 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python3-embed" 2>/dev/null` 20531 test "x$?" != "x0" && pkg_failed=yes 20532else 20533 pkg_failed=yes 20534fi 20535 else 20536 pkg_failed=untried 20537fi 20538if test -n "$PYTHON_LIBS"; then 20539 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 20540 elif test -n "$PKG_CONFIG"; then 20541 if test -n "$PKG_CONFIG" && \ 20542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3-embed\""; } >&5 20543 ($PKG_CONFIG --exists --print-errors "python3-embed") 2>&5 20544 ac_status=$? 20545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20546 test $ac_status = 0; }; then 20547 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python3-embed" 2>/dev/null` 20548 test "x$?" != "x0" && pkg_failed=yes 20549else 20550 pkg_failed=yes 20551fi 20552 else 20553 pkg_failed=untried 20554fi 20555 20556 20557 20558if test $pkg_failed = yes; then 20559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20560printf "%s\n" "no" >&6; } 20561 20562if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20563 _pkg_short_errors_supported=yes 20564else 20565 _pkg_short_errors_supported=no 20566fi 20567 if test $_pkg_short_errors_supported = yes; then 20568 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python3-embed" 2>&1` 20569 else 20570 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python3-embed" 2>&1` 20571 fi 20572 # Put the nasty error message in config.log where it belongs 20573 echo "$PYTHON_PKG_ERRORS" >&5 20574 20575 20576 20577pkg_failed=no 20578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3" >&5 20579printf %s "checking for python3... " >&6; } 20580 20581if test -n "$PYTHON_CFLAGS"; then 20582 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 20583 elif test -n "$PKG_CONFIG"; then 20584 if test -n "$PKG_CONFIG" && \ 20585 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3\""; } >&5 20586 ($PKG_CONFIG --exists --print-errors "python3") 2>&5 20587 ac_status=$? 20588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20589 test $ac_status = 0; }; then 20590 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python3" 2>/dev/null` 20591 test "x$?" != "x0" && pkg_failed=yes 20592else 20593 pkg_failed=yes 20594fi 20595 else 20596 pkg_failed=untried 20597fi 20598if test -n "$PYTHON_LIBS"; then 20599 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 20600 elif test -n "$PKG_CONFIG"; then 20601 if test -n "$PKG_CONFIG" && \ 20602 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3\""; } >&5 20603 ($PKG_CONFIG --exists --print-errors "python3") 2>&5 20604 ac_status=$? 20605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20606 test $ac_status = 0; }; then 20607 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python3" 2>/dev/null` 20608 test "x$?" != "x0" && pkg_failed=yes 20609else 20610 pkg_failed=yes 20611fi 20612 else 20613 pkg_failed=untried 20614fi 20615 20616 20617 20618if test $pkg_failed = yes; then 20619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20620printf "%s\n" "no" >&6; } 20621 20622if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20623 _pkg_short_errors_supported=yes 20624else 20625 _pkg_short_errors_supported=no 20626fi 20627 if test $_pkg_short_errors_supported = yes; then 20628 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python3" 2>&1` 20629 else 20630 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python3" 2>&1` 20631 fi 20632 # Put the nasty error message in config.log where it belongs 20633 echo "$PYTHON_PKG_ERRORS" >&5 20634 20635 python_found="no" 20636elif test $pkg_failed = untried; then 20637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20638printf "%s\n" "no" >&6; } 20639 python_found="no" 20640else 20641 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 20642 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 20643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20644printf "%s\n" "yes" >&6; } 20645 python_found="yes" 20646fi 20647 20648elif test $pkg_failed = untried; then 20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20650printf "%s\n" "no" >&6; } 20651 20652 20653pkg_failed=no 20654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3" >&5 20655printf %s "checking for python3... " >&6; } 20656 20657if test -n "$PYTHON_CFLAGS"; then 20658 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 20659 elif test -n "$PKG_CONFIG"; then 20660 if test -n "$PKG_CONFIG" && \ 20661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3\""; } >&5 20662 ($PKG_CONFIG --exists --print-errors "python3") 2>&5 20663 ac_status=$? 20664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20665 test $ac_status = 0; }; then 20666 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python3" 2>/dev/null` 20667 test "x$?" != "x0" && pkg_failed=yes 20668else 20669 pkg_failed=yes 20670fi 20671 else 20672 pkg_failed=untried 20673fi 20674if test -n "$PYTHON_LIBS"; then 20675 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 20676 elif test -n "$PKG_CONFIG"; then 20677 if test -n "$PKG_CONFIG" && \ 20678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python3\""; } >&5 20679 ($PKG_CONFIG --exists --print-errors "python3") 2>&5 20680 ac_status=$? 20681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20682 test $ac_status = 0; }; then 20683 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python3" 2>/dev/null` 20684 test "x$?" != "x0" && pkg_failed=yes 20685else 20686 pkg_failed=yes 20687fi 20688 else 20689 pkg_failed=untried 20690fi 20691 20692 20693 20694if test $pkg_failed = yes; then 20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20696printf "%s\n" "no" >&6; } 20697 20698if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20699 _pkg_short_errors_supported=yes 20700else 20701 _pkg_short_errors_supported=no 20702fi 20703 if test $_pkg_short_errors_supported = yes; then 20704 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python3" 2>&1` 20705 else 20706 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python3" 2>&1` 20707 fi 20708 # Put the nasty error message in config.log where it belongs 20709 echo "$PYTHON_PKG_ERRORS" >&5 20710 20711 python_found="no" 20712elif test $pkg_failed = untried; then 20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20714printf "%s\n" "no" >&6; } 20715 python_found="no" 20716else 20717 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 20718 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 20719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20720printf "%s\n" "yes" >&6; } 20721 python_found="yes" 20722fi 20723 20724else 20725 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 20726 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 20727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20728printf "%s\n" "yes" >&6; } 20729 python_found="yes" 20730fi 20731 if test "$python_found" = "no"; then 20732 20733pkg_failed=no 20734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python2" >&5 20735printf %s "checking for python2... " >&6; } 20736 20737if test -n "$PYTHON_CFLAGS"; then 20738 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 20739 elif test -n "$PKG_CONFIG"; then 20740 if test -n "$PKG_CONFIG" && \ 20741 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python2\""; } >&5 20742 ($PKG_CONFIG --exists --print-errors "python2") 2>&5 20743 ac_status=$? 20744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20745 test $ac_status = 0; }; then 20746 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python2" 2>/dev/null` 20747 test "x$?" != "x0" && pkg_failed=yes 20748else 20749 pkg_failed=yes 20750fi 20751 else 20752 pkg_failed=untried 20753fi 20754if test -n "$PYTHON_LIBS"; then 20755 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 20756 elif test -n "$PKG_CONFIG"; then 20757 if test -n "$PKG_CONFIG" && \ 20758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python2\""; } >&5 20759 ($PKG_CONFIG --exists --print-errors "python2") 2>&5 20760 ac_status=$? 20761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20762 test $ac_status = 0; }; then 20763 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python2" 2>/dev/null` 20764 test "x$?" != "x0" && pkg_failed=yes 20765else 20766 pkg_failed=yes 20767fi 20768 else 20769 pkg_failed=untried 20770fi 20771 20772 20773 20774if test $pkg_failed = yes; then 20775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20776printf "%s\n" "no" >&6; } 20777 20778if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20779 _pkg_short_errors_supported=yes 20780else 20781 _pkg_short_errors_supported=no 20782fi 20783 if test $_pkg_short_errors_supported = yes; then 20784 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python2" 2>&1` 20785 else 20786 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python2" 2>&1` 20787 fi 20788 # Put the nasty error message in config.log where it belongs 20789 echo "$PYTHON_PKG_ERRORS" >&5 20790 20791 python_found="no" 20792elif test $pkg_failed = untried; then 20793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20794printf "%s\n" "no" >&6; } 20795 python_found="no" 20796else 20797 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 20798 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 20799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20800printf "%s\n" "yes" >&6; } 20801 python_found="yes" 20802fi 20803 if test "$python_found" = "no"; then 20804 20805pkg_failed=no 20806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python" >&5 20807printf %s "checking for python... " >&6; } 20808 20809if test -n "$PYTHON_CFLAGS"; then 20810 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 20811 elif test -n "$PKG_CONFIG"; then 20812 if test -n "$PKG_CONFIG" && \ 20813 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 20814 ($PKG_CONFIG --exists --print-errors "python") 2>&5 20815 ac_status=$? 20816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20817 test $ac_status = 0; }; then 20818 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null` 20819 test "x$?" != "x0" && pkg_failed=yes 20820else 20821 pkg_failed=yes 20822fi 20823 else 20824 pkg_failed=untried 20825fi 20826if test -n "$PYTHON_LIBS"; then 20827 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 20828 elif test -n "$PKG_CONFIG"; then 20829 if test -n "$PKG_CONFIG" && \ 20830 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5 20831 ($PKG_CONFIG --exists --print-errors "python") 2>&5 20832 ac_status=$? 20833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20834 test $ac_status = 0; }; then 20835 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null` 20836 test "x$?" != "x0" && pkg_failed=yes 20837else 20838 pkg_failed=yes 20839fi 20840 else 20841 pkg_failed=untried 20842fi 20843 20844 20845 20846if test $pkg_failed = yes; then 20847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20848printf "%s\n" "no" >&6; } 20849 20850if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20851 _pkg_short_errors_supported=yes 20852else 20853 _pkg_short_errors_supported=no 20854fi 20855 if test $_pkg_short_errors_supported = yes; then 20856 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1` 20857 else 20858 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1` 20859 fi 20860 # Put the nasty error message in config.log where it belongs 20861 echo "$PYTHON_PKG_ERRORS" >&5 20862 20863 python_found="no" 20864elif test $pkg_failed = untried; then 20865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20866printf "%s\n" "no" >&6; } 20867 python_found="no" 20868else 20869 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 20870 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 20871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20872printf "%s\n" "yes" >&6; } 20873 python_found="yes" 20874fi 20875 fi 20876 fi 20877 else 20878 case "$with_python" in 20879 [0-9]) 20880 with_python="python${with_python}" 20881 ;; 20882 [0-9].[0-9]) 20883 with_python="python-${with_python}" 20884 ;; 20885 [0-9].[0-9][0-9]) 20886 with_python="python-${with_python}" 20887 ;; 20888 esac 20889 20890 20891pkg_failed=no 20892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $with_python-embed" >&5 20893printf %s "checking for $with_python-embed... " >&6; } 20894 20895if test -n "$PYTHON_CFLAGS"; then 20896 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 20897 elif test -n "$PKG_CONFIG"; then 20898 if test -n "$PKG_CONFIG" && \ 20899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_python-embed\""; } >&5 20900 ($PKG_CONFIG --exists --print-errors "$with_python-embed") 2>&5 20901 ac_status=$? 20902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20903 test $ac_status = 0; }; then 20904 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "$with_python-embed" 2>/dev/null` 20905 test "x$?" != "x0" && pkg_failed=yes 20906else 20907 pkg_failed=yes 20908fi 20909 else 20910 pkg_failed=untried 20911fi 20912if test -n "$PYTHON_LIBS"; then 20913 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 20914 elif test -n "$PKG_CONFIG"; then 20915 if test -n "$PKG_CONFIG" && \ 20916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_python-embed\""; } >&5 20917 ($PKG_CONFIG --exists --print-errors "$with_python-embed") 2>&5 20918 ac_status=$? 20919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20920 test $ac_status = 0; }; then 20921 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "$with_python-embed" 2>/dev/null` 20922 test "x$?" != "x0" && pkg_failed=yes 20923else 20924 pkg_failed=yes 20925fi 20926 else 20927 pkg_failed=untried 20928fi 20929 20930 20931 20932if test $pkg_failed = yes; then 20933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20934printf "%s\n" "no" >&6; } 20935 20936if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20937 _pkg_short_errors_supported=yes 20938else 20939 _pkg_short_errors_supported=no 20940fi 20941 if test $_pkg_short_errors_supported = yes; then 20942 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$with_python-embed" 2>&1` 20943 else 20944 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$with_python-embed" 2>&1` 20945 fi 20946 # Put the nasty error message in config.log where it belongs 20947 echo "$PYTHON_PKG_ERRORS" >&5 20948 20949 20950 20951pkg_failed=no 20952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $with_python" >&5 20953printf %s "checking for $with_python... " >&6; } 20954 20955if test -n "$PYTHON_CFLAGS"; then 20956 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 20957 elif test -n "$PKG_CONFIG"; then 20958 if test -n "$PKG_CONFIG" && \ 20959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_python\""; } >&5 20960 ($PKG_CONFIG --exists --print-errors "$with_python") 2>&5 20961 ac_status=$? 20962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20963 test $ac_status = 0; }; then 20964 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "$with_python" 2>/dev/null` 20965 test "x$?" != "x0" && pkg_failed=yes 20966else 20967 pkg_failed=yes 20968fi 20969 else 20970 pkg_failed=untried 20971fi 20972if test -n "$PYTHON_LIBS"; then 20973 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 20974 elif test -n "$PKG_CONFIG"; then 20975 if test -n "$PKG_CONFIG" && \ 20976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_python\""; } >&5 20977 ($PKG_CONFIG --exists --print-errors "$with_python") 2>&5 20978 ac_status=$? 20979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20980 test $ac_status = 0; }; then 20981 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "$with_python" 2>/dev/null` 20982 test "x$?" != "x0" && pkg_failed=yes 20983else 20984 pkg_failed=yes 20985fi 20986 else 20987 pkg_failed=untried 20988fi 20989 20990 20991 20992if test $pkg_failed = yes; then 20993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20994printf "%s\n" "no" >&6; } 20995 20996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20997 _pkg_short_errors_supported=yes 20998else 20999 _pkg_short_errors_supported=no 21000fi 21001 if test $_pkg_short_errors_supported = yes; then 21002 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$with_python" 2>&1` 21003 else 21004 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$with_python" 2>&1` 21005 fi 21006 # Put the nasty error message in config.log where it belongs 21007 echo "$PYTHON_PKG_ERRORS" >&5 21008 21009 python_found="no" 21010elif test $pkg_failed = untried; then 21011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21012printf "%s\n" "no" >&6; } 21013 python_found="no" 21014else 21015 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 21016 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 21017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21018printf "%s\n" "yes" >&6; } 21019 python_found="yes" 21020fi 21021 21022elif test $pkg_failed = untried; then 21023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21024printf "%s\n" "no" >&6; } 21025 21026 21027pkg_failed=no 21028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $with_python" >&5 21029printf %s "checking for $with_python... " >&6; } 21030 21031if test -n "$PYTHON_CFLAGS"; then 21032 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS" 21033 elif test -n "$PKG_CONFIG"; then 21034 if test -n "$PKG_CONFIG" && \ 21035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_python\""; } >&5 21036 ($PKG_CONFIG --exists --print-errors "$with_python") 2>&5 21037 ac_status=$? 21038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21039 test $ac_status = 0; }; then 21040 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "$with_python" 2>/dev/null` 21041 test "x$?" != "x0" && pkg_failed=yes 21042else 21043 pkg_failed=yes 21044fi 21045 else 21046 pkg_failed=untried 21047fi 21048if test -n "$PYTHON_LIBS"; then 21049 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS" 21050 elif test -n "$PKG_CONFIG"; then 21051 if test -n "$PKG_CONFIG" && \ 21052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$with_python\""; } >&5 21053 ($PKG_CONFIG --exists --print-errors "$with_python") 2>&5 21054 ac_status=$? 21055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21056 test $ac_status = 0; }; then 21057 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "$with_python" 2>/dev/null` 21058 test "x$?" != "x0" && pkg_failed=yes 21059else 21060 pkg_failed=yes 21061fi 21062 else 21063 pkg_failed=untried 21064fi 21065 21066 21067 21068if test $pkg_failed = yes; then 21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21070printf "%s\n" "no" >&6; } 21071 21072if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21073 _pkg_short_errors_supported=yes 21074else 21075 _pkg_short_errors_supported=no 21076fi 21077 if test $_pkg_short_errors_supported = yes; then 21078 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$with_python" 2>&1` 21079 else 21080 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$with_python" 2>&1` 21081 fi 21082 # Put the nasty error message in config.log where it belongs 21083 echo "$PYTHON_PKG_ERRORS" >&5 21084 21085 python_found="no" 21086elif test $pkg_failed = untried; then 21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21088printf "%s\n" "no" >&6; } 21089 python_found="no" 21090else 21091 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 21092 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21094printf "%s\n" "yes" >&6; } 21095 python_found="yes" 21096fi 21097 21098else 21099 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS 21100 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS 21101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21102printf "%s\n" "yes" >&6; } 21103 python_found="yes" 21104fi 21105 fi 21106 21107 if test "x$python_found" = "xyes"; then 21108 old_LIBS=$LIBS 21109 LIBS="$LIBS $PYTHON_LIBS" 21110 21111 for ac_func in PyUnicode_AsUTF8 21112do : 21113 ac_fn_c_check_func "$LINENO" "PyUnicode_AsUTF8" "ac_cv_func_PyUnicode_AsUTF8" 21114if test "x$ac_cv_func_PyUnicode_AsUTF8" = xyes 21115then : 21116 printf "%s\n" "#define HAVE_PYUNICODE_ASUTF8 1" >>confdefs.h 21117 with_python=python3 21118else $as_nop 21119 with_python=python2 21120fi 21121 21122done 21123 LIBS=$old_LIBS 21124 fi 21125 21126 if test "x$enable_python" = "xyes" -a "x$python_found" = "xno"; then 21127 as_fn_error $? "Could not find the requested Python development libraries" "$LINENO" 5 21128 fi 21129 enable_python="$python_found" 21130 21131 if (echo "$with_python" | grep -Eq "python-?3.*"); then 21132 python_version=3 21133 else 21134 python_version=2 21135 fi 21136else 21137 with_python="" 21138fi 21139 21140 21141if test "x$with_pylint" != "x"; then 21142 PYLINT=$with_pylint 21143else 21144 if test "$python_found" = "yes"; then 21145 if test "$python_version" = "3"; then 21146 # Extract the first word of "pylint3", so it can be a program name with args. 21147set dummy pylint3; ac_word=$2 21148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21149printf %s "checking for $ac_word... " >&6; } 21150if test ${ac_cv_prog_PYLINT+y} 21151then : 21152 printf %s "(cached) " >&6 21153else $as_nop 21154 if test -n "$PYLINT"; then 21155 ac_cv_prog_PYLINT="$PYLINT" # Let the user override the test. 21156else 21157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21158for as_dir in $PATH 21159do 21160 IFS=$as_save_IFS 21161 case $as_dir in #((( 21162 '') as_dir=./ ;; 21163 */) ;; 21164 *) as_dir=$as_dir/ ;; 21165 esac 21166 for ac_exec_ext in '' $ac_executable_extensions; do 21167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21168 ac_cv_prog_PYLINT="pylint3" 21169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21170 break 2 21171 fi 21172done 21173 done 21174IFS=$as_save_IFS 21175 21176fi 21177fi 21178PYLINT=$ac_cv_prog_PYLINT 21179if test -n "$PYLINT"; then 21180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYLINT" >&5 21181printf "%s\n" "$PYLINT" >&6; } 21182else 21183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21184printf "%s\n" "no" >&6; } 21185fi 21186 21187 21188 if test "x$PYLINT" = "x"; then 21189 # Extract the first word of "pylint", so it can be a program name with args. 21190set dummy pylint; ac_word=$2 21191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21192printf %s "checking for $ac_word... " >&6; } 21193if test ${ac_cv_prog_PYLINT+y} 21194then : 21195 printf %s "(cached) " >&6 21196else $as_nop 21197 if test -n "$PYLINT"; then 21198 ac_cv_prog_PYLINT="$PYLINT" # Let the user override the test. 21199else 21200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21201for as_dir in $PATH 21202do 21203 IFS=$as_save_IFS 21204 case $as_dir in #((( 21205 '') as_dir=./ ;; 21206 */) ;; 21207 *) as_dir=$as_dir/ ;; 21208 esac 21209 for ac_exec_ext in '' $ac_executable_extensions; do 21210 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21211 ac_cv_prog_PYLINT="pylint" 21212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21213 break 2 21214 fi 21215done 21216 done 21217IFS=$as_save_IFS 21218 21219fi 21220fi 21221PYLINT=$ac_cv_prog_PYLINT 21222if test -n "$PYLINT"; then 21223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYLINT" >&5 21224printf "%s\n" "$PYLINT" >&6; } 21225else 21226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21227printf "%s\n" "no" >&6; } 21228fi 21229 21230 21231 fi 21232 else 21233 # Extract the first word of "pylint", so it can be a program name with args. 21234set dummy pylint; ac_word=$2 21235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21236printf %s "checking for $ac_word... " >&6; } 21237if test ${ac_cv_prog_PYLINT+y} 21238then : 21239 printf %s "(cached) " >&6 21240else $as_nop 21241 if test -n "$PYLINT"; then 21242 ac_cv_prog_PYLINT="$PYLINT" # Let the user override the test. 21243else 21244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21245for as_dir in $PATH 21246do 21247 IFS=$as_save_IFS 21248 case $as_dir in #((( 21249 '') as_dir=./ ;; 21250 */) ;; 21251 *) as_dir=$as_dir/ ;; 21252 esac 21253 for ac_exec_ext in '' $ac_executable_extensions; do 21254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21255 ac_cv_prog_PYLINT="pylint" 21256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21257 break 2 21258 fi 21259done 21260 done 21261IFS=$as_save_IFS 21262 21263fi 21264fi 21265PYLINT=$ac_cv_prog_PYLINT 21266if test -n "$PYLINT"; then 21267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYLINT" >&5 21268printf "%s\n" "$PYLINT" >&6; } 21269else 21270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21271printf "%s\n" "no" >&6; } 21272fi 21273 21274 21275 fi 21276 fi 21277fi 21278 21279 21280if test "x$enable_manpages" != "xno"; then 21281 if test "x$with_docbook" = "xauto"; then 21282 XSL_STYLESHEET=`find /usr/share/{xml,sgml} -path '*/manpages/docbook.xsl' 2>/dev/null | head -n 1` 21283 if test -z "$XSL_STYLESHEET"; then 21284 XSL_STYLESHEET="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" 21285 fi 21286 else 21287 XSL_STYLESHEET=$with_docbook 21288 fi 21289fi 21290 21291if test "x$enable_manpages_install" = "xauto"; then 21292 if test -f doc/man/syslog-ng.8 -o "x$enable_manpages" = "xyes"; then 21293 enable_manpages_install=yes 21294 else 21295 enable_manpages_install=no 21296 fi 21297fi 21298 21299 21300if test "x$enable_java" = "xauto" || test "x$enable_java" = "xyes"; then 21301 if test "x$enable_java" = "xauto"; then 21302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JAVA_VERSION" >&5 21303printf %s "checking for JAVA_VERSION... " >&6; } 21304 case $host_os in 21305 freebsd*) DONT_RESOLVE_JAVA_BIN_LINKS="YES" ;; 21306 *) ;; 21307 esac 21308 JAVA_VERSION=$JAVA_MIN_VERSION 21309 JAVAC_BIN=`which javac` 21310 JAVAH_BIN=`which javah` 21311 JAR_BIN=`which jar` 21312 JAVA_HOME_CHECKER="/usr/libexec/java_home" 21313 21314 if test "x$JAVAC_BIN" != "x"; then 21315 if test "x$DONT_RESOLVE_JAVA_BIN_LINKS" = "x"; then 21316 JAVAC_BIN=` 21317 READLINK_TARGET=$JAVAC_BIN 21318 cd $(dirname "$READLINK_TARGET") 21319 while test -L "$READLINK_TARGET"; do 21320 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21321 cd $(dirname "$READLINK_TARGET") 21322 done 21323 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21324` 21325 JAVAH_BIN=` 21326 READLINK_TARGET=$JAVAH_BIN 21327 cd $(dirname "$READLINK_TARGET") 21328 while test -L "$READLINK_TARGET"; do 21329 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21330 cd $(dirname "$READLINK_TARGET") 21331 done 21332 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21333` 21334 JAR_BIN=` 21335 READLINK_TARGET=$JAR_BIN 21336 cd $(dirname "$READLINK_TARGET") 21337 while test -L "$READLINK_TARGET"; do 21338 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21339 cd $(dirname "$READLINK_TARGET") 21340 done 21341 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21342` 21343 fi 21344 JAVAC_VERSION=`$JAVAC_BIN -version 2>&1 | sed "s/.*\ \(.*\)/\1/"` 21345 SHORT_VERSION=${JAVAC_VERSION%.*} 21346 MAJOR_VERSION=${SHORT_VERSION%.*} 21347 MINOR_VERSION=${SHORT_VERSION##*.} 21348 VERSION_OK="1" 21349 21350 EXPECTED_MAJOR_VERSION=${JAVA_VERSION%.*} 21351 EXPECTED_MINOR_VERSION=${JAVA_VERSION##*.} 21352 if test "$MAJOR_VERSION" -lt "$EXPECTED_MAJOR_VERSION"; 21353 then 21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&5 21355printf "%s\n" "$as_me: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&6;} 21356 VERSION_OK="0" 21357 elif test "$MAJOR_VERSION" -eq "$EXPECTED_MAJOR_VERSION"; 21358 then 21359 if test "$MINOR_VERSION" -lt "$EXPECTED_MINOR_VERSION"; 21360 then 21361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&5 21362printf "%s\n" "$as_me: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&6;} 21363 VERSION_OK="0" 21364 fi 21365 fi 21366 21367 if test "$VERSION_OK" = "1"; 21368 then 21369 if test -e "$JAVA_HOME_CHECKER"; then 21370 JNI_HOME=`$JAVA_HOME_CHECKER` 21371 else 21372 JNI_HOME=`echo $JAVAC_BIN | sed "s/\(.*\)[/]bin[/]java.*/\1\/openjdk\*/"` 21373 fi 21374 21375 JNI_LIBDIR=`find $JNI_HOME \( -name "libjvm.so" -or -name "libjvm.dylib" \) \ 21376 | sed "s-/libjvm\.so-/-" \ 21377 | sed "s-/libjvm\.dylib-/-" | head -n 1` 21378 JNI_LIBS="-L$JNI_LIBDIR -ljvm" 21379 JNI_INCLUDE_DIR=`find $JNI_HOME -name "jni.h" | sed "s/\(.*\)jni.h/\1/" | head -n 1` 21380 JNI_CFLAGS="-I$JNI_INCLUDE_DIR" 21381 21382 JNI_MD_INCLUDE_DIR=`find $JNI_HOME -name "jni_md.h" | sed "s/\(.*\)jni_md.h/\1/" | head -n 1` 21383 JNI_CFLAGS="$JNI_CFLAGS -I$JNI_MD_INCLUDE_DIR" 21384 JNI_CFLAGS="$JNI_CFLAGS" 21385 21386 JNI_LIBS="$JNI_LIBS" 21387 21388 JAVAC="$JAVAC_BIN" 21389 21390 JAVAH="$JAVAH_BIN" 21391 21392 JAR="$JAR_BIN" 21393 21394 enable_java=yes 21395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHORT_VERSION" >&5 21396printf "%s\n" "$SHORT_VERSION" >&6; } 21397 else 21398 enable_java=no 21399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21400printf "%s\n" "no" >&6; } 21401 fi 21402 else 21403 enable_java=no 21404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21405printf "%s\n" "no" >&6; } 21406 fi 21407 21408 else 21409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JAVA_VERSION" >&5 21410printf %s "checking for JAVA_VERSION... " >&6; } 21411 case $host_os in 21412 freebsd*) DONT_RESOLVE_JAVA_BIN_LINKS="YES" ;; 21413 *) ;; 21414 esac 21415 JAVA_VERSION=$JAVA_MIN_VERSION 21416 JAVAC_BIN=`which javac` 21417 JAVAH_BIN=`which javah` 21418 JAR_BIN=`which jar` 21419 JAVA_HOME_CHECKER="/usr/libexec/java_home" 21420 21421 if test "x$JAVAC_BIN" != "x"; then 21422 if test "x$DONT_RESOLVE_JAVA_BIN_LINKS" = "x"; then 21423 JAVAC_BIN=` 21424 READLINK_TARGET=$JAVAC_BIN 21425 cd $(dirname "$READLINK_TARGET") 21426 while test -L "$READLINK_TARGET"; do 21427 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21428 cd $(dirname "$READLINK_TARGET") 21429 done 21430 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21431` 21432 JAVAH_BIN=` 21433 READLINK_TARGET=$JAVAH_BIN 21434 cd $(dirname "$READLINK_TARGET") 21435 while test -L "$READLINK_TARGET"; do 21436 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21437 cd $(dirname "$READLINK_TARGET") 21438 done 21439 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21440` 21441 JAR_BIN=` 21442 READLINK_TARGET=$JAR_BIN 21443 cd $(dirname "$READLINK_TARGET") 21444 while test -L "$READLINK_TARGET"; do 21445 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21446 cd $(dirname "$READLINK_TARGET") 21447 done 21448 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21449` 21450 fi 21451 JAVAC_VERSION=`$JAVAC_BIN -version 2>&1 | sed "s/.*\ \(.*\)/\1/"` 21452 SHORT_VERSION=${JAVAC_VERSION%.*} 21453 MAJOR_VERSION=${SHORT_VERSION%.*} 21454 MINOR_VERSION=${SHORT_VERSION##*.} 21455 VERSION_OK="1" 21456 21457 EXPECTED_MAJOR_VERSION=${JAVA_VERSION%.*} 21458 EXPECTED_MINOR_VERSION=${JAVA_VERSION##*.} 21459 if test "$MAJOR_VERSION" -lt "$EXPECTED_MAJOR_VERSION"; 21460 then 21461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&5 21462printf "%s\n" "$as_me: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&6;} 21463 VERSION_OK="0" 21464 elif test "$MAJOR_VERSION" -eq "$EXPECTED_MAJOR_VERSION"; 21465 then 21466 if test "$MINOR_VERSION" -lt "$EXPECTED_MINOR_VERSION"; 21467 then 21468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&5 21469printf "%s\n" "$as_me: Too old java version required: $JAVA_VERSION found: $SHORT_VERSION" >&6;} 21470 VERSION_OK="0" 21471 fi 21472 fi 21473 21474 if test "$VERSION_OK" = "1"; 21475 then 21476 if test -e "$JAVA_HOME_CHECKER"; then 21477 JNI_HOME=`$JAVA_HOME_CHECKER` 21478 else 21479 JNI_HOME=`echo $JAVAC_BIN | sed "s/\(.*\)[/]bin[/]java.*/\1\//"` 21480 fi 21481 21482 JNI_LIBDIR=`find $JNI_HOME \( -name "libjvm.so" -or -name "libjvm.dylib" \) \ 21483 | sed "s-/libjvm\.so-/-" \ 21484 | sed "s-/libjvm\.dylib-/-" | head -n 1` 21485 JNI_LIBS="-L$JNI_LIBDIR -ljvm" 21486 JNI_INCLUDE_DIR=`find $JNI_HOME -name "jni.h" | sed "s/\(.*\)jni.h/\1/" | head -n 1` 21487 JNI_CFLAGS="-I$JNI_INCLUDE_DIR" 21488 21489 JNI_MD_INCLUDE_DIR=`find $JNI_HOME -name "jni_md.h" | sed "s/\(.*\)jni_md.h/\1/" | head -n 1` 21490 JNI_CFLAGS="$JNI_CFLAGS -I$JNI_MD_INCLUDE_DIR" 21491 JNI_CFLAGS="$JNI_CFLAGS" 21492 21493 JNI_LIBS="$JNI_LIBS" 21494 21495 JAVAC="$JAVAC_BIN" 21496 21497 JAVAH="$JAVAH_BIN" 21498 21499 JAR="$JAR_BIN" 21500 21501 enable_java=yes 21502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHORT_VERSION" >&5 21503printf "%s\n" "$SHORT_VERSION" >&6; } 21504 else 21505 as_fn_error $? "Java not found" "$LINENO" 5 21506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21507printf "%s\n" "no" >&6; } 21508 fi 21509 else 21510 as_fn_error $? "Java not found" "$LINENO" 5 21511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21512printf "%s\n" "no" >&6; } 21513 fi 21514 21515 fi 21516fi 21517 21518if test "x$enable_java" = "xyes"; then 21519 if test "x$enable_java_modules" = "xauto" || test "x$enable_java_modules" = "xyes"; then 21520 if test "x$enable_java_modules" = "xauto"; then 21521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GRADLE_VERSION" >&5 21522printf %s "checking for GRADLE_VERSION... " >&6; } 21523 EXPECTED_GRADLE_VERSION=$GRADLE_MIN_VERSION 21524 GRADLE_BIN=`which gradle` 21525 if test "x$GRADLE_BIN" != "x"; then 21526 GRADLE_BIN=` 21527 READLINK_TARGET=$GRADLE_BIN 21528 cd $(dirname "$READLINK_TARGET") 21529 while test -L "$READLINK_TARGET"; do 21530 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21531 cd $(dirname "$READLINK_TARGET") 21532 done 21533 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21534` 21535 GRADLE_VERSION=`gradle -version 2>&1 | grep Gradle | head -1 |sed "s/.*\ \(.*\)/\1/"` 21536 SHORT_VERSION=${GRADLE_VERSION%.*} 21537 MAJOR_VERSION=${SHORT_VERSION%.*} 21538 MINOR_VERSION=${SHORT_VERSION##*.} 21539 EXPECTED_MAJOR_VERSION=${EXPECTED_GRADLE_VERSION%.*} 21540 EXPECTED_MINOR_VERSION=${EXPECTED_GRADLE_VERSION##*.} 21541 if test "$MAJOR_VERSION" -lt "$EXPECTED_MAJOR_VERSION"; 21542 then 21543 as_fn_error $? "Too old gradle version required: $EXPECTED_GRADLE_VERSION found: $GRADLE_VERSION" "$LINENO" 5 21544 elif test "$MAJOR_VERSION" -eq "$EXPECTED_MAJOR_VERSION"; 21545 then 21546 if test "$MINOR_VERSION" -lt "$EXPECTED_MINOR_VERSION"; 21547 then 21548 as_fn_error $? "Too old gradle version required: $EXPECTED_GRADLE_VERSION= found: $GRADLE_VERSION" "$LINENO" 5 21549 fi 21550 fi 21551 GRADLE="$GRADLE_BIN" 21552 21553 enable_java_modules=yes 21554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHORT_VERSION" >&5 21555printf "%s\n" "$SHORT_VERSION" >&6; } 21556 else 21557 enable_java_modules=no 21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21559printf "%s\n" "no" >&6; } 21560 fi 21561 21562 else 21563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GRADLE_VERSION" >&5 21564printf %s "checking for GRADLE_VERSION... " >&6; } 21565 EXPECTED_GRADLE_VERSION=$GRADLE_MIN_VERSION 21566 GRADLE_BIN=`which gradle` 21567 if test "x$GRADLE_BIN" != "x"; then 21568 GRADLE_BIN=` 21569 READLINK_TARGET=$GRADLE_BIN 21570 cd $(dirname "$READLINK_TARGET") 21571 while test -L "$READLINK_TARGET"; do 21572 READLINK_TARGET=$(readlink "$READLINK_TARGET") 21573 cd $(dirname "$READLINK_TARGET") 21574 done 21575 echo $(pwd -P)/$(basename "$READLINK_TARGET") 21576` 21577 GRADLE_VERSION=`gradle -version 2>&1 | grep Gradle | head -1 |sed "s/.*\ \(.*\)/\1/"` 21578 SHORT_VERSION=${GRADLE_VERSION%.*} 21579 MAJOR_VERSION=${SHORT_VERSION%.*} 21580 MINOR_VERSION=${SHORT_VERSION##*.} 21581 EXPECTED_MAJOR_VERSION=${EXPECTED_GRADLE_VERSION%.*} 21582 EXPECTED_MINOR_VERSION=${EXPECTED_GRADLE_VERSION##*.} 21583 if test "$MAJOR_VERSION" -lt "$EXPECTED_MAJOR_VERSION"; 21584 then 21585 as_fn_error $? "Too old gradle version required: $EXPECTED_GRADLE_VERSION found: $GRADLE_VERSION" "$LINENO" 5 21586 elif test "$MAJOR_VERSION" -eq "$EXPECTED_MAJOR_VERSION"; 21587 then 21588 if test "$MINOR_VERSION" -lt "$EXPECTED_MINOR_VERSION"; 21589 then 21590 as_fn_error $? "Too old gradle version required: $EXPECTED_GRADLE_VERSION= found: $GRADLE_VERSION" "$LINENO" 5 21591 fi 21592 fi 21593 GRADLE="$GRADLE_BIN" 21594 21595 enable_java_modules=yes 21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHORT_VERSION" >&5 21597printf "%s\n" "$SHORT_VERSION" >&6; } 21598 else 21599 as_fn_error $? "Gradle not found" "$LINENO" 5 21600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21601printf "%s\n" "no" >&6; } 21602 fi 21603 21604 fi 21605 fi 21606else 21607 if test "x$enable_java_modules" = "xyes"; then 21608 as_fn_error $? "Could not build Java modules without Java" "$LINENO" 5 21609 elif test "x$enable_java_modules" = "xauto"; then 21610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not build Java modules without Java" >&5 21611printf "%s\n" "$as_me: WARNING: Could not build Java modules without Java" >&2;} 21612 enable_java_modules=no 21613 fi 21614fi 21615 21616 21617if test "x$ac_cv_lib_door_door_create" = "xyes"; then 21618 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 21619if test "x$ac_cv_header_pthread_h" = xyes 21620then : 21621 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 21622 21623fi 21624 21625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 21626printf %s "checking for pthread_create in -lpthread... " >&6; } 21627if test ${ac_cv_lib_pthread_pthread_create+y} 21628then : 21629 printf %s "(cached) " >&6 21630else $as_nop 21631 ac_check_lib_save_LIBS=$LIBS 21632LIBS="-lpthread $LIBS" 21633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21634/* end confdefs.h. */ 21635 21636/* Override any GCC internal prototype to avoid an error. 21637 Use char because int might match the return type of a GCC 21638 builtin and then its argument prototype would still apply. */ 21639char pthread_create (); 21640int 21641main (void) 21642{ 21643return pthread_create (); 21644 ; 21645 return 0; 21646} 21647_ACEOF 21648if ac_fn_c_try_link "$LINENO" 21649then : 21650 ac_cv_lib_pthread_pthread_create=yes 21651else $as_nop 21652 ac_cv_lib_pthread_pthread_create=no 21653fi 21654rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21655 conftest$ac_exeext conftest.$ac_ext 21656LIBS=$ac_check_lib_save_LIBS 21657fi 21658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 21659printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } 21660if test "x$ac_cv_lib_pthread_pthread_create" = xyes 21661then : 21662 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h 21663 21664 LIBS="-lpthread $LIBS" 21665 21666fi 21667 21668fi 21669 21670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Sun STREAMS support" >&5 21671printf %s "checking whether to enable Sun STREAMS support... " >&6; } 21672if test "x$ac_cv_header_stropts_h" = "xyes" -a \ 21673 "x$ac_cv_header_sys_strlog_h" = "xyes" -a \ 21674 "x$enable_sun_streams" != "xno" -a \ 21675 "x$blb_cv_c_i_conslog" != "xno"; then 21676 enable_sun_streams=yes 21677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21678printf "%s\n" "yes" >&6; } 21679else 21680 enable_sun_streams=no 21681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21682printf "%s\n" "no" >&6; } 21683fi 21684 21685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OpenBSD system source support" >&5 21686printf %s "checking whether to enable OpenBSD system source support... " >&6; } 21687if test "x$enable_openbsd_system_source" = "xyes"; then 21688 enable_openbsd_system_source="yes" 21689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21690printf "%s\n" "yes" >&6; } 21691elif test "x$enable_openbsd_system_source" = "xauto" -a \ 21692 "$ostype" = "OpenBSD" ; then 21693 enable_openbsd_system_source="yes" 21694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21695printf "%s\n" "yes" >&6; } 21696else 21697 enable_openbsd_system_source="no" 21698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21699printf "%s\n" "no" >&6; } 21700fi 21701 21702if test "x$enable_env_wrapper" = "xauto"; then 21703 if test "x$env_ld_library_path" != "x"; then 21704 enable_env_wrapper="yes" 21705 else 21706 enable_env_wrapper="no" 21707 fi 21708fi 21709 21710if test "x$enable_ipv6" = "xauto"; then 21711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5 21712printf %s "checking whether to enable IPv6 support... " >&6; } 21713 if test "x$blb_cv_c_struct_sockaddr_in6" = "xyes"; then 21714 enable_ipv6=yes 21715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21716printf "%s\n" "yes" >&6; } 21717 else 21718 enable_ipv6=no 21719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21720printf "%s\n" "no" >&6; } 21721 fi 21722fi 21723 21724ac_fn_check_decl "$LINENO" "TCP_KEEPIDLE" "ac_cv_have_decl_TCP_KEEPIDLE" "#include <sys/socket.h> 21725 #include <netinet/in.h> 21726 #include <netinet/tcp.h> 21727" "$ac_c_undeclared_builtin_options" "CFLAGS" 21728if test "x$ac_cv_have_decl_TCP_KEEPIDLE" = xyes 21729then : 21730 ac_have_decl=1 21731else $as_nop 21732 ac_have_decl=0 21733fi 21734printf "%s\n" "#define HAVE_DECL_TCP_KEEPIDLE $ac_have_decl" >>confdefs.h 21735ac_fn_check_decl "$LINENO" "TCP_KEEPINTVL" "ac_cv_have_decl_TCP_KEEPINTVL" "#include <sys/socket.h> 21736 #include <netinet/in.h> 21737 #include <netinet/tcp.h> 21738" "$ac_c_undeclared_builtin_options" "CFLAGS" 21739if test "x$ac_cv_have_decl_TCP_KEEPINTVL" = xyes 21740then : 21741 ac_have_decl=1 21742else $as_nop 21743 ac_have_decl=0 21744fi 21745printf "%s\n" "#define HAVE_DECL_TCP_KEEPINTVL $ac_have_decl" >>confdefs.h 21746ac_fn_check_decl "$LINENO" "TCP_KEEPCNT" "ac_cv_have_decl_TCP_KEEPCNT" "#include <sys/socket.h> 21747 #include <netinet/in.h> 21748 #include <netinet/tcp.h> 21749" "$ac_c_undeclared_builtin_options" "CFLAGS" 21750if test "x$ac_cv_have_decl_TCP_KEEPCNT" = xyes 21751then : 21752 ac_have_decl=1 21753else $as_nop 21754 ac_have_decl=0 21755fi 21756printf "%s\n" "#define HAVE_DECL_TCP_KEEPCNT $ac_have_decl" >>confdefs.h 21757 21758 21759if test "x$ac_cv_have_decl_TCP_KEEPIDLE" = "xyes" -a "x$ac_cv_have_decl_TCP_KEEPINTVL" = "xyes" -a "x$ac_cv_have_decl_TCP_KEEPCNT" = "xyes"; then 21760 21761printf "%s\n" "#define HAVE_TCP_KEEPALIVE_TIMERS 1" >>confdefs.h 21762 21763fi 21764 21765if test "x$enable_linux_caps" = "xyes" -o "x$enable_linux_caps" = "xauto"; then 21766 21767pkg_failed=no 21768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcap" >&5 21769printf %s "checking for libcap... " >&6; } 21770 21771if test -n "$LIBCAP_CFLAGS"; then 21772 pkg_cv_LIBCAP_CFLAGS="$LIBCAP_CFLAGS" 21773 elif test -n "$PKG_CONFIG"; then 21774 if test -n "$PKG_CONFIG" && \ 21775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5 21776 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5 21777 ac_status=$? 21778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21779 test $ac_status = 0; }; then 21780 pkg_cv_LIBCAP_CFLAGS=`$PKG_CONFIG --cflags "libcap" 2>/dev/null` 21781 test "x$?" != "x0" && pkg_failed=yes 21782else 21783 pkg_failed=yes 21784fi 21785 else 21786 pkg_failed=untried 21787fi 21788if test -n "$LIBCAP_LIBS"; then 21789 pkg_cv_LIBCAP_LIBS="$LIBCAP_LIBS" 21790 elif test -n "$PKG_CONFIG"; then 21791 if test -n "$PKG_CONFIG" && \ 21792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcap\""; } >&5 21793 ($PKG_CONFIG --exists --print-errors "libcap") 2>&5 21794 ac_status=$? 21795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21796 test $ac_status = 0; }; then 21797 pkg_cv_LIBCAP_LIBS=`$PKG_CONFIG --libs "libcap" 2>/dev/null` 21798 test "x$?" != "x0" && pkg_failed=yes 21799else 21800 pkg_failed=yes 21801fi 21802 else 21803 pkg_failed=untried 21804fi 21805 21806 21807 21808if test $pkg_failed = yes; then 21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21810printf "%s\n" "no" >&6; } 21811 21812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21813 _pkg_short_errors_supported=yes 21814else 21815 _pkg_short_errors_supported=no 21816fi 21817 if test $_pkg_short_errors_supported = yes; then 21818 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcap" 2>&1` 21819 else 21820 LIBCAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcap" 2>&1` 21821 fi 21822 # Put the nasty error message in config.log where it belongs 21823 echo "$LIBCAP_PKG_ERRORS" >&5 21824 21825 has_linux_caps="no" 21826elif test $pkg_failed = untried; then 21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21828printf "%s\n" "no" >&6; } 21829 has_linux_caps="no" 21830else 21831 LIBCAP_CFLAGS=$pkg_cv_LIBCAP_CFLAGS 21832 LIBCAP_LIBS=$pkg_cv_LIBCAP_LIBS 21833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21834printf "%s\n" "yes" >&6; } 21835 has_linux_caps="yes" 21836fi 21837 21838 if test "x$has_linux_caps" = "xno"; then 21839 if test "x$ac_cv_header_sys_capability_h" = "xyes"; then 21840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5 21841printf %s "checking for cap_set_proc in -lcap... " >&6; } 21842if test ${ac_cv_lib_cap_cap_set_proc+y} 21843then : 21844 printf %s "(cached) " >&6 21845else $as_nop 21846 ac_check_lib_save_LIBS=$LIBS 21847LIBS="-lcap $LIBS" 21848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21849/* end confdefs.h. */ 21850 21851/* Override any GCC internal prototype to avoid an error. 21852 Use char because int might match the return type of a GCC 21853 builtin and then its argument prototype would still apply. */ 21854char cap_set_proc (); 21855int 21856main (void) 21857{ 21858return cap_set_proc (); 21859 ; 21860 return 0; 21861} 21862_ACEOF 21863if ac_fn_c_try_link "$LINENO" 21864then : 21865 ac_cv_lib_cap_cap_set_proc=yes 21866else $as_nop 21867 ac_cv_lib_cap_cap_set_proc=no 21868fi 21869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21870 conftest$ac_exeext conftest.$ac_ext 21871LIBS=$ac_check_lib_save_LIBS 21872fi 21873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5 21874printf "%s\n" "$ac_cv_lib_cap_cap_set_proc" >&6; } 21875if test "x$ac_cv_lib_cap_cap_set_proc" = xyes 21876then : 21877 LIBCAP_LIBS="-lcap"; has_linux_caps="yes" 21878else $as_nop 21879 has_linux_caps="no" 21880fi 21881 21882 else 21883 has_linux_caps="no" 21884 fi 21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Linux capability support" >&5 21886printf %s "checking whether to enable Linux capability support... " >&6; } 21887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_linux_caps" >&5 21888printf "%s\n" "$has_linux_caps" >&6; } 21889 fi 21890 21891 if test "x$enable_linux_caps" = "xyes" -a "x$has_linux_caps" = "xno"; then 21892 as_fn_error $? "Cannot enable Linux capability support." "$LINENO" 5 21893 fi 21894 21895 enable_linux_caps="$has_linux_caps" 21896fi 21897 21898if test "x$enable_mongodb" = "xauto"; then 21899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable mongodb destination support" >&5 21900printf %s "checking whether to enable mongodb destination support... " >&6; } 21901 if test "x$with_mongoc" != "xno"; then 21902 enable_mongodb="yes" 21903 else 21904 enable_mongodb="no" 21905 fi 21906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_mongodb" >&5 21907printf "%s\n" "$enable_mongodb" >&6; } 21908fi 21909 21910if test "x$enable_amqp" = "xauto"; then 21911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable amqp destination support" >&5 21912printf %s "checking whether to enable amqp destination support... " >&6; } 21913 if test "x$with_librabbitmq_client" != "xno"; then 21914 enable_amqp="yes" 21915 else 21916 enable_amqp="no" 21917 fi 21918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_amqp" >&5 21919printf "%s\n" "$enable_amqp" >&6; } 21920fi 21921 21922if test "x$enable_kafka" = "xauto"; then 21923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kafka support" >&5 21924printf %s "checking whether to enable kafka support... " >&6; } 21925 if test "x$with_librdkafka" != "xno"; then 21926 enable_kafka="yes" 21927 else 21928 enable_kafka="no" 21929 fi 21930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_kafka" >&5 21931printf "%s\n" "$enable_kafka" >&6; } 21932fi 21933 21934if test "x$enable_systemd" = "xauto"; then 21935 if test "$ostype" = "Linux" -a "$have_libsystemd" = "yes"; then 21936 enable_systemd=yes 21937 else 21938 enable_systemd=no 21939 fi 21940 21941fi 21942 21943if test "x$enable_systemd" != "xyes"; then 21944 if test "x$with_systemd_journal" = "xauto"; then 21945 with_systemd_journal=no 21946 fi 21947fi 21948 21949if test "x$enable_systemd" = "xyes"; then 21950 21951 if test "x$with_systemdsystemunitdir" = "xyes"; then 21952 # no arguments, just --with-systemdsystemunitdir 21953 systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd` 21954 if test "$systemdsystemunitdir" = ""; then 21955 as_fn_error $? "Error autodetecting systemdsystemunitdir, systemd pkg-config file not found?" "$LINENO" 5 21956 fi 21957 elif test "$systemdsystemunitdir" = "no"; then 21958 # --without-systemdsystemunitdir was specified 21959 systemdsystemunitdir="" 21960 else 21961 systemdsystemunitdir="$with_systemdsystemunitdir" 21962 fi 21963 21964 if test "x$have_libsystemd" = "xno"; then 21965 21966pkg_failed=no 21967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon >= 31" >&5 21968printf %s "checking for libsystemd-daemon >= 31... " >&6; } 21969 21970if test -n "$libsystemd_daemon_CFLAGS"; then 21971 pkg_cv_libsystemd_daemon_CFLAGS="$libsystemd_daemon_CFLAGS" 21972 elif test -n "$PKG_CONFIG"; then 21973 if test -n "$PKG_CONFIG" && \ 21974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon >= 31\""; } >&5 21975 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon >= 31") 2>&5 21976 ac_status=$? 21977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21978 test $ac_status = 0; }; then 21979 pkg_cv_libsystemd_daemon_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon >= 31" 2>/dev/null` 21980 test "x$?" != "x0" && pkg_failed=yes 21981else 21982 pkg_failed=yes 21983fi 21984 else 21985 pkg_failed=untried 21986fi 21987if test -n "$libsystemd_daemon_LIBS"; then 21988 pkg_cv_libsystemd_daemon_LIBS="$libsystemd_daemon_LIBS" 21989 elif test -n "$PKG_CONFIG"; then 21990 if test -n "$PKG_CONFIG" && \ 21991 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon >= 31\""; } >&5 21992 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon >= 31") 2>&5 21993 ac_status=$? 21994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21995 test $ac_status = 0; }; then 21996 pkg_cv_libsystemd_daemon_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon >= 31" 2>/dev/null` 21997 test "x$?" != "x0" && pkg_failed=yes 21998else 21999 pkg_failed=yes 22000fi 22001 else 22002 pkg_failed=untried 22003fi 22004 22005 22006 22007if test $pkg_failed = yes; then 22008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22009printf "%s\n" "no" >&6; } 22010 22011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22012 _pkg_short_errors_supported=yes 22013else 22014 _pkg_short_errors_supported=no 22015fi 22016 if test $_pkg_short_errors_supported = yes; then 22017 libsystemd_daemon_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon >= 31" 2>&1` 22018 else 22019 libsystemd_daemon_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon >= 31" 2>&1` 22020 fi 22021 # Put the nasty error message in config.log where it belongs 22022 echo "$libsystemd_daemon_PKG_ERRORS" >&5 22023 22024 enable_systemd="no" 22025elif test $pkg_failed = untried; then 22026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22027printf "%s\n" "no" >&6; } 22028 enable_systemd="no" 22029else 22030 libsystemd_daemon_CFLAGS=$pkg_cv_libsystemd_daemon_CFLAGS 22031 libsystemd_daemon_LIBS=$pkg_cv_libsystemd_daemon_LIBS 22032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22033printf "%s\n" "yes" >&6; } 22034 enable_systemd="yes" 22035fi 22036 if test "x$with_systemd_journal" = "xauto"; then 22037 22038pkg_failed=no 22039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-journal >= $JOURNALD_MIN_VERSION" >&5 22040printf %s "checking for libsystemd-journal >= $JOURNALD_MIN_VERSION... " >&6; } 22041 22042if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then 22043 pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS" 22044 elif test -n "$PKG_CONFIG"; then 22045 if test -n "$PKG_CONFIG" && \ 22046 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= \$JOURNALD_MIN_VERSION\""; } >&5 22047 ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= $JOURNALD_MIN_VERSION") 2>&5 22048 ac_status=$? 22049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22050 test $ac_status = 0; }; then 22051 pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>/dev/null` 22052 test "x$?" != "x0" && pkg_failed=yes 22053else 22054 pkg_failed=yes 22055fi 22056 else 22057 pkg_failed=untried 22058fi 22059if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then 22060 pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS" 22061 elif test -n "$PKG_CONFIG"; then 22062 if test -n "$PKG_CONFIG" && \ 22063 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= \$JOURNALD_MIN_VERSION\""; } >&5 22064 ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= $JOURNALD_MIN_VERSION") 2>&5 22065 ac_status=$? 22066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22067 test $ac_status = 0; }; then 22068 pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>/dev/null` 22069 test "x$?" != "x0" && pkg_failed=yes 22070else 22071 pkg_failed=yes 22072fi 22073 else 22074 pkg_failed=untried 22075fi 22076 22077 22078 22079if test $pkg_failed = yes; then 22080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22081printf "%s\n" "no" >&6; } 22082 22083if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22084 _pkg_short_errors_supported=yes 22085else 22086 _pkg_short_errors_supported=no 22087fi 22088 if test $_pkg_short_errors_supported = yes; then 22089 LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>&1` 22090 else 22091 LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>&1` 22092 fi 22093 # Put the nasty error message in config.log where it belongs 22094 echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5 22095 22096 with_systemd_journal=optional 22097elif test $pkg_failed = untried; then 22098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22099printf "%s\n" "no" >&6; } 22100 with_systemd_journal=optional 22101else 22102 LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS 22103 LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS 22104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22105printf "%s\n" "yes" >&6; } 22106 with_systemd_journal=system 22107fi 22108 elif test "x$with_systemd_journal" = "xsystem"; then 22109 22110pkg_failed=no 22111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-journal >= $JOURNALD_MIN_VERSION" >&5 22112printf %s "checking for libsystemd-journal >= $JOURNALD_MIN_VERSION... " >&6; } 22113 22114if test -n "$LIBSYSTEMD_JOURNAL_CFLAGS"; then 22115 pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS="$LIBSYSTEMD_JOURNAL_CFLAGS" 22116 elif test -n "$PKG_CONFIG"; then 22117 if test -n "$PKG_CONFIG" && \ 22118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= \$JOURNALD_MIN_VERSION\""; } >&5 22119 ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= $JOURNALD_MIN_VERSION") 2>&5 22120 ac_status=$? 22121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22122 test $ac_status = 0; }; then 22123 pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>/dev/null` 22124 test "x$?" != "x0" && pkg_failed=yes 22125else 22126 pkg_failed=yes 22127fi 22128 else 22129 pkg_failed=untried 22130fi 22131if test -n "$LIBSYSTEMD_JOURNAL_LIBS"; then 22132 pkg_cv_LIBSYSTEMD_JOURNAL_LIBS="$LIBSYSTEMD_JOURNAL_LIBS" 22133 elif test -n "$PKG_CONFIG"; then 22134 if test -n "$PKG_CONFIG" && \ 22135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal >= \$JOURNALD_MIN_VERSION\""; } >&5 22136 ($PKG_CONFIG --exists --print-errors "libsystemd-journal >= $JOURNALD_MIN_VERSION") 2>&5 22137 ac_status=$? 22138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22139 test $ac_status = 0; }; then 22140 pkg_cv_LIBSYSTEMD_JOURNAL_LIBS=`$PKG_CONFIG --libs "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>/dev/null` 22141 test "x$?" != "x0" && pkg_failed=yes 22142else 22143 pkg_failed=yes 22144fi 22145 else 22146 pkg_failed=untried 22147fi 22148 22149 22150 22151if test $pkg_failed = yes; then 22152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22153printf "%s\n" "no" >&6; } 22154 22155if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22156 _pkg_short_errors_supported=yes 22157else 22158 _pkg_short_errors_supported=no 22159fi 22160 if test $_pkg_short_errors_supported = yes; then 22161 LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>&1` 22162 else 22163 LIBSYSTEMD_JOURNAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal >= $JOURNALD_MIN_VERSION" 2>&1` 22164 fi 22165 # Put the nasty error message in config.log where it belongs 22166 echo "$LIBSYSTEMD_JOURNAL_PKG_ERRORS" >&5 22167 22168 as_fn_error $? "Detecting system related systemd-journal library failed" "$LINENO" 5 22169elif test $pkg_failed = untried; then 22170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22171printf "%s\n" "no" >&6; } 22172 as_fn_error $? "Detecting system related systemd-journal library failed" "$LINENO" 5 22173else 22174 LIBSYSTEMD_JOURNAL_CFLAGS=$pkg_cv_LIBSYSTEMD_JOURNAL_CFLAGS 22175 LIBSYSTEMD_JOURNAL_LIBS=$pkg_cv_LIBSYSTEMD_JOURNAL_LIBS 22176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22177printf "%s\n" "yes" >&6; } 22178 22179fi 22180 fi 22181 libsystemd_CFLAGS="${LIBSYSTEMD_JOURNAL_CFLAGS} ${libsystemd_daemon_CFLAGS}" 22182 libsystemd_LIBS="${LIBSYSTEMD_JOURNAL_LIBS} ${libsystemd_daemon_LIBS}" 22183 22184 22185 else 22186 if test "x$with_systemd_journal" = "xauto"; then 22187 with_systemd_journal="system" 22188 fi 22189 fi 22190fi 22191 22192ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 22193#include <$ac_cv_struct_tm> 22194 22195" 22196if test "x$ac_cv_member_struct_tm_tm_zone" = xyes 22197then : 22198 22199printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 22200 22201 22202fi 22203 22204if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 22205 22206printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 22207 22208else 22209 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 22210" "$ac_c_undeclared_builtin_options" "CFLAGS" 22211if test "x$ac_cv_have_decl_tzname" = xyes 22212then : 22213 ac_have_decl=1 22214else $as_nop 22215 ac_have_decl=0 22216fi 22217printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 22218 22219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 22220printf %s "checking for tzname... " >&6; } 22221if test ${ac_cv_var_tzname+y} 22222then : 22223 printf %s "(cached) " >&6 22224else $as_nop 22225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22226/* end confdefs.h. */ 22227#include <time.h> 22228#if !HAVE_DECL_TZNAME 22229extern char *tzname[]; 22230#endif 22231 22232int 22233main (void) 22234{ 22235return tzname[0][0]; 22236 ; 22237 return 0; 22238} 22239_ACEOF 22240if ac_fn_c_try_link "$LINENO" 22241then : 22242 ac_cv_var_tzname=yes 22243else $as_nop 22244 ac_cv_var_tzname=no 22245fi 22246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22247 conftest$ac_exeext conftest.$ac_ext 22248fi 22249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 22250printf "%s\n" "$ac_cv_var_tzname" >&6; } 22251 if test $ac_cv_var_tzname = yes; then 22252 22253printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 22254 22255 fi 22256fi 22257 22258 22259 ac_ext=c 22260ac_cpp='$CPP $CPPFLAGS' 22261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22263ac_compiler_gnu=$ac_cv_c_compiler_gnu 22264 22265 22266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \`timezone' variable in time.h" >&5 22267printf %s "checking for \`timezone' variable in time.h... " >&6; } 22268if test ${mb_cv_var_timezone+y} 22269then : 22270 printf %s "(cached) " >&6 22271else $as_nop 22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22273/* end confdefs.h. */ 22274#include <time.h> 22275int 22276main (void) 22277{ 22278int *foo = (int *)0xdeadbeef; return foo[timezone] /* ; */ 22279 ; 22280 return 0; 22281} 22282_ACEOF 22283if ac_fn_c_try_link "$LINENO" 22284then : 22285 mb_cv_var_timezone=yes 22286else $as_nop 22287 mb_cv_var_timezone=no 22288fi 22289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22290 conftest$ac_exeext conftest.$ac_ext 22291 22292fi 22293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_timezone" >&5 22294printf "%s\n" "$mb_cv_var_timezone" >&6; } 22295 22296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \`altzone' variable in time.h" >&5 22297printf %s "checking for \`altzone' variable in time.h... " >&6; } 22298if test ${mb_cv_var_altzone+y} 22299then : 22300 printf %s "(cached) " >&6 22301else $as_nop 22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22303/* end confdefs.h. */ 22304#include <time.h> 22305int 22306main (void) 22307{ 22308int *foo = (int *)0xdeadbeef; return foo[altzone] /* ; */ 22309 ; 22310 return 0; 22311} 22312_ACEOF 22313if ac_fn_c_try_link "$LINENO" 22314then : 22315 mb_cv_var_altzone=yes 22316else $as_nop 22317 mb_cv_var_altzone=no 22318fi 22319rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22320 conftest$ac_exeext conftest.$ac_ext 22321 22322fi 22323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_altzone" >&5 22324printf "%s\n" "$mb_cv_var_altzone" >&6; } 22325 22326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \`daylight' variable in time.h" >&5 22327printf %s "checking for \`daylight' variable in time.h... " >&6; } 22328if test ${mb_cv_var_daylight+y} 22329then : 22330 printf %s "(cached) " >&6 22331else $as_nop 22332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22333/* end confdefs.h. */ 22334#include <time.h> 22335int 22336main (void) 22337{ 22338int *foo = (int *)0xdeadbeef; return foo[daylight] /* ; */ 22339 ; 22340 return 0; 22341} 22342_ACEOF 22343if ac_fn_c_try_link "$LINENO" 22344then : 22345 mb_cv_var_daylight=yes 22346else $as_nop 22347 mb_cv_var_daylight=no 22348fi 22349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22350 conftest$ac_exeext conftest.$ac_ext 22351 22352fi 22353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_daylight" >&5 22354printf "%s\n" "$mb_cv_var_daylight" >&6; } 22355 22356 if test "$mb_cv_var_timezone" = "yes"; then 22357 22358printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h 22359 22360 fi 22361 22362 if test "$mb_cv_var_altzone" = "yes"; then 22363 22364printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h 22365 22366 fi 22367 22368 if test "$mb_cv_var_daylight" = "yes"; then 22369 22370printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h 22371 22372 fi 22373 22374 ac_ext=c 22375ac_cpp='$CPP $CPPFLAGS' 22376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22378ac_compiler_gnu=$ac_cv_c_compiler_gnu 22379 22380 22381 22382ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen" 22383if test "x$ac_cv_func_fmemopen" = xyes 22384then : 22385 printf "%s\n" "#define HAVE_FMEMOPEN 1" >>confdefs.h 22386 22387fi 22388 22389 22390 22391if test "x$with_sanitizer" != "xno"; then 22392 CFLAGS="$CFLAGS -O1 -fsanitize=$with_sanitizer -fno-omit-frame-pointer" 22393fi 22394 22395 22396### The default set of modules are those that provide functionality that 22397### were provided in syslog-ng 3.2 and prior, unless explicitly overridden 22398### by the user. 22399### 22400### New plugins can be loaded by explicit "@module foo" lines in the 22401### configuration file, or by the autoloading mechanism. 22402 22403if test "x$module_path" = "x"; then 22404 module_path="$moduledir" 22405 java_module_path="$moduledir"/java-modules 22406fi 22407 22408python_moduledir="$moduledir"/python 22409 22410CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS $EVTLOG_CFLAGS $PCRE_CFLAGS $OPENSSL_CFLAGS $LIBNET_CFLAGS $LIBDBI_CFLAGS $IVYKIS_CFLAGS $LIBCAP_CFLAGS -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 22411 22412######################################################## 22413## NOTES: on how syslog-ng is linked 22414# 22415# There are two major linking modes currently: 22416# 1) dynamic: all libraries are linked dynamically, and assumed to be available as dynamic libraries 22417# 22418# 2) mixed: typical system provided libraries are linked dynamicaly, the 22419# rest is linked statically (Glib etc). Please note that _only_ the 22420# main syslog-ng executable is linked this way so that it can be 22421# started early during startup, tools and unit tests are linked 22422# dynamically the same way. 22423# 22424# The following variables are introduced and AC_SUBSTed to be used in Makefiles: 22425# 22426# SYSLOGNG_DEPS_LIBS: 22427# includes all dependendent libraries used by binary that can be linked in mixed mode (e.g. only the syslog-ng binary). 22428# 22429# TOOL_DEPS_LIBS: 22430# executables (e.g. tools & unit test programs) that link against 22431# libsyslog-ng.so should be linked with this set of libraries. other 22432# tools that do not use libsyslog-ng.so can use the _LIBS variables 22433# directly. 22434# 22435# CORE_DEPS_LIBS: 22436# libsyslog-ng.so is linked with this set of libraries. 22437# 22438# MODULE_DEPS_LIBS: 22439# The set of libraries that modules should be linked against. Only to 22440# satisfy their "core" dependency, any other libs that the core doesn't 22441# depend on must be linked explicitly. 22442# 22443# MODULE_LDFLAGS: 22444# The LDFLAGS to be passed when linking modules (may not contain 22445# library references -l and such, only linker flags) 22446# 22447# Modules should be linked against libsyslog-ng.la and libraries that are 22448# _NOT_ linked into libsyslog-ng.la no need to define a LIBS variable for 22449# that. 22450 22451 22452if test -z "$MODULE_LDFLAGS"; then 22453 MODULE_LDFLAGS="-avoid-version -module -no-undefined" 22454fi 22455MODULE_DEPS_LIBS="\$(top_builddir)/lib/libsyslog-ng.la" 22456 22457if test "x$linking_mode" = "xdynamic"; then 22458 SYSLOGNG_DEPS_LIBS="$LIBS $BASE_LIBS $GLIB_LIBS $EVTLOG_LIBS $SECRETSTORAGE_LIBS $RESOLV_LIBS $LIBCAP_LIBS $PCRE_LIBS $REGEX_LIBS $DL_LIBS" 22459 22460 if test "x$with_ivykis" = "xinternal"; then 22461 # when using the internal ivykis, we're linking it statically into libsyslog-ng.so 22462 22463 TOOL_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS" 22464 CORE_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS $IVYKIS_LIBS" 22465 else 22466 # otherwise everything needs to link against libivykis.so 22467 22468 SYSLOGNG_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS $IVYKIS_LIBS" 22469 22470 TOOL_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS" 22471 CORE_DEPS_LIBS="$SYSLOGNG_DEPS_LIBS" 22472 fi 22473 22474 # syslog-ng binary is linked with the default link command (e.g. libtool) 22475 SYSLOGNG_LINK='$(LINK)' 22476else 22477 SYSLOGNG_DEPS_LIBS="$LIBS $BASE_LIBS $RESOLV_LIBS $EVTLOG_NO_LIBTOOL_LIBS $SECRETSTORAGE_NO_LIBTOOL_LIBS $LD_START_STATIC -Wl,${WHOLE_ARCHIVE_OPT} $GLIB_LIBS $PCRE_LIBS $REGEX_LIBS -Wl,${NO_WHOLE_ARCHIVE_OPT} $IVYKIS_NO_LIBTOOL_LIBS $LD_END_STATIC $LIBCAP_LIBS $DL_LIBS" 22478 TOOL_DEPS_LIBS="$LIBS $BASE_LIBS $GLIB_LIBS $EVTLOG_LIBS $SECRETSTORAGE_LIBS $RESOLV_LIBS $LIBCAP_LIBS $PCRE_LIBS $REGEX_LIBS $IVYKIS_LIBS $DL_LIBS" 22479 CORE_DEPS_LIBS="" 22480 22481 # bypass libtool in case we want to do mixed linking because it 22482 # doesn't support -Wl,-Bstatic -Wl,-Bdynamic on a per-library basis. 22483 SYSLOGNG_LINK='$(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@' 22484fi 22485YFLAGS="-d" 22486 22487enable_value() 22488{ 22489 if test "x$1" = "xyes" ; then 22490 echo 1 22491 else 22492 echo 0 22493 fi 22494} 22495 22496journald_mode() 22497{ 22498 if test "x$with_systemd_journal" = "xno"; then 22499 echo SYSLOG_NG_JOURNALD_OFF 22500 elif test "x$with_systemd_journal" = "xsystem"; then 22501 echo SYSLOG_NG_JOURNALD_SYSTEM 22502 else 22503 echo SYSLOG_NG_JOURNALD_OPTIONAL 22504 fi 22505} 22506 22507 22508printf "%s\n" "#define JOURNALD_OFF 0" >>confdefs.h 22509 22510 22511printf "%s\n" "#define JOURNALD_OPTIONAL 1" >>confdefs.h 22512 22513 22514printf "%s\n" "#define JOURNALD_SYSTEM 2" >>confdefs.h 22515 22516 22517cat >>confdefs.h <<_ACEOF 22518#define HAVE_JOURNAL_NAMESPACES `(test "$journal_namespaces" = "yes" ) && echo 1 || echo 0` 22519_ACEOF 22520 22521 22522 22523printf "%s\n" "#define VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 22524 22525 22526printf "%s\n" "#define SOURCE_REVISION \"$SOURCE_REVISION\"" >>confdefs.h 22527 22528 22529printf "%s\n" "#define LICENSE_VERSION \"$LICENSE_VERSION\"" >>confdefs.h 22530 22531 22532 22533printf "%s\n" "#define PATH_PREFIX \"$prefix\"" >>confdefs.h 22534 22535 22536printf "%s\n" "#define PATH_EXECPREFIX \"$exec_prefix\"" >>confdefs.h 22537 22538 22539 22540printf "%s\n" "#define PATH_SYSCONFDIR \"$sysconfdir\"" >>confdefs.h 22541 22542 22543printf "%s\n" "#define PATH_LOCALSTATEDIR \"$localstatedir\"" >>confdefs.h 22544 22545 22546printf "%s\n" "#define PATH_PIDFILEDIR \"$pidfiledir\"" >>confdefs.h 22547 22548 22549printf "%s\n" "#define PATH_DATAROOTDIR \"$datarootdir\"" >>confdefs.h 22550 22551 22552printf "%s\n" "#define PATH_DATADIR \"$datadir\"" >>confdefs.h 22553 22554 22555printf "%s\n" "#define PATH_CONFIG_INCLUDEDIR \"$config_includedir\"" >>confdefs.h 22556 22557 22558printf "%s\n" "#define PATH_SCLDIR \"$scldir\"" >>confdefs.h 22559 22560 22561printf "%s\n" "#define PATH_XSDDIR \"$xsddir\"" >>confdefs.h 22562 22563 22564printf "%s\n" "#define PATH_LIBEXECDIR \"$libexecdir\"" >>confdefs.h 22565 22566if test -n "$timezonedir"; then 22567 22568printf "%s\n" "#define PATH_TIMEZONEDIR \"$timezonedir\"" >>confdefs.h 22569 22570fi 22571if test -n "$env_ld_library_path"; then 22572 22573printf "%s\n" "#define ENV_LD_LIBRARY_PATH \"$env_ld_library_path\"" >>confdefs.h 22574 22575fi 22576 22577printf "%s\n" "#define PATH_MODULEDIR \"$moduledir\"" >>confdefs.h 22578 22579 22580printf "%s\n" "#define PYTHON_MODULE_DIR \"$python_moduledir\"" >>confdefs.h 22581 22582 22583printf "%s\n" "#define PYTHON3_HOME_DIR \"$python3_home_dir\"" >>confdefs.h 22584 22585 22586printf "%s\n" "#define PYTHON2_HOME_DIR \"$python2_home_dir\"" >>confdefs.h 22587 22588 22589printf "%s\n" "#define PATH_LOGGENPLUGINDIR \"$loggenplugindir\"" >>confdefs.h 22590 22591 22592printf "%s\n" "#define MODULE_PATH \"$module_path\"" >>confdefs.h 22593 22594 22595printf "%s\n" "#define JAVA_MODULE_PATH \"$java_module_path\"" >>confdefs.h 22596 22597 22598printf "%s\n" "#define PATH_TOPSRC_DIR \"$abs_topsrcdir\"" >>confdefs.h 22599 22600 22601printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 22602 22603 22604 22605 22606printf "%s\n" "#define WITH_COMPILE_DATE $wcmp_date" >>confdefs.h 22607 22608 22609cat >>confdefs.h <<_ACEOF 22610#define ENABLE_FORCED_SERVER_MODE `enable_value $enable_forced_server_mode` 22611_ACEOF 22612 22613 22614cat >>confdefs.h <<_ACEOF 22615#define ENABLE_DEBUG `enable_value $enable_debug` 22616_ACEOF 22617 22618 22619cat >>confdefs.h <<_ACEOF 22620#define ENABLE_GPROF `enable_value $enable_gprof` 22621_ACEOF 22622 22623 22624cat >>confdefs.h <<_ACEOF 22625#define ENABLE_MEMTRACE `enable_value $enable_memtrace` 22626_ACEOF 22627 22628 22629cat >>confdefs.h <<_ACEOF 22630#define ENABLE_SPOOF_SOURCE `enable_value $enable_spoof_source` 22631_ACEOF 22632 22633 22634cat >>confdefs.h <<_ACEOF 22635#define ENABLE_IPV6 `enable_value $enable_ipv6` 22636_ACEOF 22637 22638 22639cat >>confdefs.h <<_ACEOF 22640#define ENABLE_TCP_WRAPPER `enable_value $enable_tcp_wrapper` 22641_ACEOF 22642 22643 22644cat >>confdefs.h <<_ACEOF 22645#define ENABLE_LINUX_CAPS `enable_value $enable_linux_caps` 22646_ACEOF 22647 22648 22649cat >>confdefs.h <<_ACEOF 22650#define ENABLE_ENV_WRAPPER `enable_value $enable_env_wrapper` 22651_ACEOF 22652 22653 22654cat >>confdefs.h <<_ACEOF 22655#define ENABLE_SYSTEMD `enable_value $enable_systemd` 22656_ACEOF 22657 22658 22659cat >>confdefs.h <<_ACEOF 22660#define ENABLE_KAFKA `enable_value $enable_kafka` 22661_ACEOF 22662 22663 22664cat >>confdefs.h <<_ACEOF 22665#define SYSTEMD_JOURNAL_MODE `journald_mode` 22666_ACEOF 22667 22668 22669cat >>confdefs.h <<_ACEOF 22670#define HAVE_INOTIFY `enable_value $ac_cv_func_inotify_init` 22671_ACEOF 22672 22673 22674cat >>confdefs.h <<_ACEOF 22675#define ENABLE_PYTHONv2 `(test "$python_version" = "2" ) && echo 1 || echo 0` 22676_ACEOF 22677 22678 22679cat >>confdefs.h <<_ACEOF 22680#define ENABLE_PYTHONv3 `(test "$python_version" = "3" ) && echo 1 || echo 0` 22681_ACEOF 22682 22683 22684cat >>confdefs.h <<_ACEOF 22685#define USE_CONST_IVYKIS_MOCK `enable_value $IVYKIS_VERSION_UPDATED` 22686_ACEOF 22687 22688 22689 if test "$enable_env_wrapper" = "yes"; then 22690 ENABLE_ENV_WRAPPER_TRUE= 22691 ENABLE_ENV_WRAPPER_FALSE='#' 22692else 22693 ENABLE_ENV_WRAPPER_TRUE='#' 22694 ENABLE_ENV_WRAPPER_FALSE= 22695fi 22696 22697 if test "$enable_systemd" = "yes"; then 22698 ENABLE_SYSTEMD_TRUE= 22699 ENABLE_SYSTEMD_FALSE='#' 22700else 22701 ENABLE_SYSTEMD_TRUE='#' 22702 ENABLE_SYSTEMD_FALSE= 22703fi 22704 22705 if test "$systemdsystemunitdir" != ""; then 22706 ENABLE_SYSTEMD_UNIT_INSTALL_TRUE= 22707 ENABLE_SYSTEMD_UNIT_INSTALL_FALSE='#' 22708else 22709 ENABLE_SYSTEMD_UNIT_INSTALL_TRUE='#' 22710 ENABLE_SYSTEMD_UNIT_INSTALL_FALSE= 22711fi 22712 22713 if test "$enable_sql" = "yes"; then 22714 ENABLE_SQL_TRUE= 22715 ENABLE_SQL_FALSE='#' 22716else 22717 ENABLE_SQL_TRUE='#' 22718 ENABLE_SQL_FALSE= 22719fi 22720 22721 if test "$enable_sun_streams" = "yes"; then 22722 ENABLE_SUN_STREAMS_TRUE= 22723 ENABLE_SUN_STREAMS_FALSE='#' 22724else 22725 ENABLE_SUN_STREAMS_TRUE='#' 22726 ENABLE_SUN_STREAMS_FALSE= 22727fi 22728 22729 if test "$enable_openbsd_system_source" = "yes"; then 22730 ENABLE_OPENBSD_SYSTEM_SOURCE_TRUE= 22731 ENABLE_OPENBSD_SYSTEM_SOURCE_FALSE='#' 22732else 22733 ENABLE_OPENBSD_SYSTEM_SOURCE_TRUE='#' 22734 ENABLE_OPENBSD_SYSTEM_SOURCE_FALSE= 22735fi 22736 22737 if test "$enable_pacct" = "yes"; then 22738 ENABLE_PACCT_TRUE= 22739 ENABLE_PACCT_FALSE='#' 22740else 22741 ENABLE_PACCT_TRUE='#' 22742 ENABLE_PACCT_FALSE= 22743fi 22744 22745 if test "$enable_mongodb" = "yes"; then 22746 ENABLE_MONGODB_TRUE= 22747 ENABLE_MONGODB_FALSE='#' 22748else 22749 ENABLE_MONGODB_TRUE='#' 22750 ENABLE_MONGODB_FALSE= 22751fi 22752 22753 if test "$enable_smtp" = "yes"; then 22754 ENABLE_SMTP_TRUE= 22755 ENABLE_SMTP_FALSE='#' 22756else 22757 ENABLE_SMTP_TRUE='#' 22758 ENABLE_SMTP_FALSE= 22759fi 22760 22761 if test "$enable_mqtt" = "yes"; then 22762 ENABLE_MQTT_TRUE= 22763 ENABLE_MQTT_FALSE='#' 22764else 22765 ENABLE_MQTT_TRUE='#' 22766 ENABLE_MQTT_FALSE= 22767fi 22768 22769 if test "$enable_http" = "yes"; then 22770 ENABLE_HTTP_TRUE= 22771 ENABLE_HTTP_FALSE='#' 22772else 22773 ENABLE_HTTP_TRUE='#' 22774 ENABLE_HTTP_FALSE= 22775fi 22776 22777 if test "$enable_amqp" = "yes"; then 22778 ENABLE_AMQP_TRUE= 22779 ENABLE_AMQP_FALSE='#' 22780else 22781 ENABLE_AMQP_TRUE='#' 22782 ENABLE_AMQP_FALSE= 22783fi 22784 22785 if test "$enable_stomp" = "yes"; then 22786 ENABLE_STOMP_TRUE= 22787 ENABLE_STOMP_FALSE='#' 22788else 22789 ENABLE_STOMP_TRUE='#' 22790 ENABLE_STOMP_FALSE= 22791fi 22792 22793 if test "$enable_json" = "yes"; then 22794 ENABLE_JSON_TRUE= 22795 ENABLE_JSON_FALSE='#' 22796else 22797 ENABLE_JSON_TRUE='#' 22798 ENABLE_JSON_FALSE= 22799fi 22800 22801 if test "$enable_geoip2" = "yes"; then 22802 ENABLE_GEOIP2_TRUE= 22803 ENABLE_GEOIP2_FALSE='#' 22804else 22805 ENABLE_GEOIP2_TRUE='#' 22806 ENABLE_GEOIP2_FALSE= 22807fi 22808 22809 if test "$enable_redis" = "yes"; then 22810 ENABLE_REDIS_TRUE= 22811 ENABLE_REDIS_FALSE='#' 22812else 22813 ENABLE_REDIS_TRUE='#' 22814 ENABLE_REDIS_FALSE= 22815fi 22816 22817 if test "$enable_kafka" = "yes"; then 22818 ENABLE_KAFKA_TRUE= 22819 ENABLE_KAFKA_FALSE='#' 22820else 22821 ENABLE_KAFKA_TRUE='#' 22822 ENABLE_KAFKA_FALSE= 22823fi 22824 22825 if test "x$with_ivykis" = "xinternal"; then 22826 IVYKIS_INTERNAL_TRUE= 22827 IVYKIS_INTERNAL_FALSE='#' 22828else 22829 IVYKIS_INTERNAL_TRUE='#' 22830 IVYKIS_INTERNAL_FALSE= 22831fi 22832 22833 if test "x$with_jsonc" = "xinternal"; then 22834 JSON_INTERNAL_TRUE= 22835 JSON_INTERNAL_FALSE='#' 22836else 22837 JSON_INTERNAL_TRUE='#' 22838 JSON_INTERNAL_FALSE= 22839fi 22840 22841 if test "x$LIBMONGO_SUBDIRS" != "x"; then 22842 LIBMONGO_INTERNAL_TRUE= 22843 LIBMONGO_INTERNAL_FALSE='#' 22844else 22845 LIBMONGO_INTERNAL_TRUE='#' 22846 LIBMONGO_INTERNAL_FALSE= 22847fi 22848 22849 if test "x$with_librabbitmq_client" = "xinternal"; then 22850 LIBRABBITMQ_INTERNAL_TRUE= 22851 LIBRABBITMQ_INTERNAL_FALSE='#' 22852else 22853 LIBRABBITMQ_INTERNAL_TRUE='#' 22854 LIBRABBITMQ_INTERNAL_FALSE= 22855fi 22856 22857 if test "$enable_riemann" != "no"; then 22858 ENABLE_RIEMANN_TRUE= 22859 ENABLE_RIEMANN_FALSE='#' 22860else 22861 ENABLE_RIEMANN_TRUE='#' 22862 ENABLE_RIEMANN_FALSE= 22863fi 22864 22865 if test "$with_systemd_journal" != "no"; then 22866 ENABLE_JOURNALD_TRUE= 22867 ENABLE_JOURNALD_FALSE='#' 22868else 22869 ENABLE_JOURNALD_TRUE='#' 22870 ENABLE_JOURNALD_FALSE= 22871fi 22872 22873 if test "$enable_python" != "no"; then 22874 ENABLE_PYTHON_TRUE= 22875 ENABLE_PYTHON_FALSE='#' 22876else 22877 ENABLE_PYTHON_TRUE='#' 22878 ENABLE_PYTHON_FALSE= 22879fi 22880 22881 if test "$enable_java" = "yes"; then 22882 ENABLE_JAVA_TRUE= 22883 ENABLE_JAVA_FALSE='#' 22884else 22885 ENABLE_JAVA_TRUE='#' 22886 ENABLE_JAVA_FALSE= 22887fi 22888 22889 if test "$enable_java_modules" = "yes"; then 22890 ENABLE_JAVA_MODULES_TRUE= 22891 ENABLE_JAVA_MODULES_FALSE='#' 22892else 22893 ENABLE_JAVA_MODULES_TRUE='#' 22894 ENABLE_JAVA_MODULES_FALSE= 22895fi 22896 22897 if test "$enable_afsnmp" = "yes"; then 22898 ENABLE_AFSNMP_TRUE= 22899 ENABLE_AFSNMP_FALSE='#' 22900else 22901 ENABLE_AFSNMP_TRUE='#' 22902 ENABLE_AFSNMP_FALSE= 22903fi 22904 22905 if test "$enable_manpages" != "no"; then 22906 ENABLE_MANPAGES_TRUE= 22907 ENABLE_MANPAGES_FALSE='#' 22908else 22909 ENABLE_MANPAGES_TRUE='#' 22910 ENABLE_MANPAGES_FALSE= 22911fi 22912 22913 if test "$enable_manpages_install" != "no"; then 22914 ENABLE_MANPAGES_INSTALL_TRUE= 22915 ENABLE_MANPAGES_INSTALL_FALSE='#' 22916else 22917 ENABLE_MANPAGES_INSTALL_TRUE='#' 22918 ENABLE_MANPAGES_INSTALL_FALSE= 22919fi 22920 22921 if test "$enable_native" != "no"; then 22922 ENABLE_NATIVE_TRUE= 22923 ENABLE_NATIVE_FALSE='#' 22924else 22925 ENABLE_NATIVE_TRUE='#' 22926 ENABLE_NATIVE_FALSE= 22927fi 22928 22929 if test "$enable_extra_warnings" = "yes"; then 22930 ENABLE_EXTRA_WARNINGS_TRUE= 22931 ENABLE_EXTRA_WARNINGS_FALSE='#' 22932else 22933 ENABLE_EXTRA_WARNINGS_TRUE='#' 22934 ENABLE_EXTRA_WARNINGS_FALSE= 22935fi 22936 22937 if test "$enable_tests" != "no"; then 22938 ENABLE_TESTING_TRUE= 22939 ENABLE_TESTING_FALSE='#' 22940else 22941 ENABLE_TESTING_TRUE='#' 22942 ENABLE_TESTING_FALSE= 22943fi 22944 22945 if test "$with_sanitizer" != "no"; then 22946 ENABLE_SANITIZER_TRUE= 22947 ENABLE_SANITIZER_FALSE='#' 22948else 22949 ENABLE_SANITIZER_TRUE='#' 22950 ENABLE_SANITIZER_FALSE= 22951fi 22952 22953 if test "$enable_debug" != "no"; then 22954 ENABLE_DEBUG_TRUE= 22955 ENABLE_DEBUG_FALSE='#' 22956else 22957 ENABLE_DEBUG_TRUE='#' 22958 ENABLE_DEBUG_FALSE= 22959fi 22960 22961 if test x$ac_cv_func_inotify_init = xyes; then 22962 HAVE_INOTIFY_TRUE= 22963 HAVE_INOTIFY_FALSE='#' 22964else 22965 HAVE_INOTIFY_TRUE='#' 22966 HAVE_INOTIFY_FALSE= 22967fi 22968 22969 if test x$ac_cv_func_getrandom = xyes; then 22970 HAVE_GETRANDOM_TRUE= 22971 HAVE_GETRANDOM_FALSE='#' 22972else 22973 HAVE_GETRANDOM_TRUE='#' 22974 HAVE_GETRANDOM_FALSE= 22975fi 22976 22977 if test x$ac_cv_func_fmemopen = xyes; then 22978 HAVE_FMEMOPEN_TRUE= 22979 HAVE_FMEMOPEN_FALSE='#' 22980else 22981 HAVE_FMEMOPEN_TRUE='#' 22982 HAVE_FMEMOPEN_FALSE= 22983fi 22984 22985 if test $enable_ipv6 = yes; then 22986 ENABLE_IPV6_TRUE= 22987 ENABLE_IPV6_FALSE='#' 22988else 22989 ENABLE_IPV6_TRUE='#' 22990 ENABLE_IPV6_FALSE= 22991fi 22992 22993 if test "x$PYLINT" != "x"; then 22994 PYLINT_TRUE= 22995 PYLINT_FALSE='#' 22996else 22997 PYLINT_TRUE='#' 22998 PYLINT_FALSE= 22999fi 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063ac_config_commands="$ac_config_commands syslog-ng-config.h" 23064 23065 23066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Valgrind on the unit tests" >&5 23067printf %s "checking whether to enable Valgrind on the unit tests... " >&6; } 23068 # Check whether --enable-valgrind was given. 23069if test ${enable_valgrind+y} 23070then : 23071 enableval=$enable_valgrind; enable_valgrind=$enableval 23072else $as_nop 23073 enable_valgrind= 23074fi 23075 23076 23077 # Check for Valgrind. 23078 # Extract the first word of "valgrind", so it can be a program name with args. 23079set dummy valgrind; ac_word=$2 23080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23081printf %s "checking for $ac_word... " >&6; } 23082if test ${ac_cv_prog_VALGRIND+y} 23083then : 23084 printf %s "(cached) " >&6 23085else $as_nop 23086 if test -n "$VALGRIND"; then 23087 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 23088else 23089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23090for as_dir in $PATH 23091do 23092 IFS=$as_save_IFS 23093 case $as_dir in #((( 23094 '') as_dir=./ ;; 23095 */) ;; 23096 *) as_dir=$as_dir/ ;; 23097 esac 23098 for ac_exec_ext in '' $ac_executable_extensions; do 23099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23100 ac_cv_prog_VALGRIND="valgrind" 23101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23102 break 2 23103 fi 23104done 23105 done 23106IFS=$as_save_IFS 23107 23108fi 23109fi 23110VALGRIND=$ac_cv_prog_VALGRIND 23111if test -n "$VALGRIND"; then 23112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 23113printf "%s\n" "$VALGRIND" >&6; } 23114else 23115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23116printf "%s\n" "no" >&6; } 23117fi 23118 23119 23120 23121 if test "$enable_valgrind" = "yes" -a "$VALGRIND" = "" 23122then : 23123 23124 as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5 23125 23126fi 23127 if test "$enable_valgrind" != "no" 23128then : 23129 enable_valgrind=yes 23130fi 23131 23132 if test "$enable_valgrind" = "yes"; then 23133 VALGRIND_ENABLED_TRUE= 23134 VALGRIND_ENABLED_FALSE='#' 23135else 23136 VALGRIND_ENABLED_TRUE='#' 23137 VALGRIND_ENABLED_FALSE= 23138fi 23139 23140 VALGRIND_ENABLED=$enable_valgrind 23141 23142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_valgrind" >&5 23143printf "%s\n" "$enable_valgrind" >&6; } 23144 23145 # Check for Valgrind tools we care about. 23146 23147 23148 if test "$VALGRIND" != "" 23149then : 23150 23151 23152 23153 23154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5 23155printf %s "checking for Valgrind tool memcheck... " >&6; } 23156if test ${ax_cv_valgrind_tool_memcheck+y} 23157then : 23158 printf %s "(cached) " >&6 23159else $as_nop 23160 23161 ax_cv_valgrind_tool_memcheck= 23162 if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1` 23163then : 23164 23165 ax_cv_valgrind_tool_memcheck="memcheck" 23166 23167fi 23168 23169fi 23170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5 23171printf "%s\n" "$ax_cv_valgrind_tool_memcheck" >&6; } 23172 23173 VALGRIND_HAVE_TOOL_memcheck=$ax_cv_valgrind_tool_memcheck 23174 23175 23176 23177 23178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5 23179printf %s "checking for Valgrind tool helgrind... " >&6; } 23180if test ${ax_cv_valgrind_tool_helgrind+y} 23181then : 23182 printf %s "(cached) " >&6 23183else $as_nop 23184 23185 ax_cv_valgrind_tool_helgrind= 23186 if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1` 23187then : 23188 23189 ax_cv_valgrind_tool_helgrind="helgrind" 23190 23191fi 23192 23193fi 23194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5 23195printf "%s\n" "$ax_cv_valgrind_tool_helgrind" >&6; } 23196 23197 VALGRIND_HAVE_TOOL_helgrind=$ax_cv_valgrind_tool_helgrind 23198 23199 23200 23201 23202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5 23203printf %s "checking for Valgrind tool drd... " >&6; } 23204if test ${ax_cv_valgrind_tool_drd+y} 23205then : 23206 printf %s "(cached) " >&6 23207else $as_nop 23208 23209 ax_cv_valgrind_tool_drd= 23210 if `$VALGRIND --tool=drd --help >/dev/null 2>&1` 23211then : 23212 23213 ax_cv_valgrind_tool_drd="drd" 23214 23215fi 23216 23217fi 23218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5 23219printf "%s\n" "$ax_cv_valgrind_tool_drd" >&6; } 23220 23221 VALGRIND_HAVE_TOOL_drd=$ax_cv_valgrind_tool_drd 23222 23223 23224 23225 23226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool exp-sgcheck" >&5 23227printf %s "checking for Valgrind tool exp-sgcheck... " >&6; } 23228if test ${ax_cv_valgrind_tool_exp_sgcheck+y} 23229then : 23230 printf %s "(cached) " >&6 23231else $as_nop 23232 23233 ax_cv_valgrind_tool_exp_sgcheck= 23234 if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1` 23235then : 23236 23237 ax_cv_valgrind_tool_exp_sgcheck="exp-sgcheck" 23238 23239fi 23240 23241fi 23242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_exp_sgcheck" >&5 23243printf "%s\n" "$ax_cv_valgrind_tool_exp_sgcheck" >&6; } 23244 23245 VALGRIND_HAVE_TOOL_exp_sgcheck=$ax_cv_valgrind_tool_exp_sgcheck 23246 23247 23248 23249fi 23250 23251VALGRIND_CHECK_RULES=' 23252# Valgrind check 23253# 23254# Optional: 23255# - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions 23256# files to load. (Default: empty) 23257# - VALGRIND_FLAGS: General flags to pass to all Valgrind tools. 23258# (Default: --num-callers=30) 23259# - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of: 23260# memcheck, helgrind, drd, sgcheck). (Default: various) 23261 23262# Optional variables 23263VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES)) 23264VALGRIND_FLAGS ?= --num-callers=30 23265VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no 23266VALGRIND_helgrind_FLAGS ?= --history-level=approx 23267VALGRIND_drd_FLAGS ?= 23268VALGRIND_sgcheck_FLAGS ?= 23269 23270# Internal use 23271valgrind_tools = memcheck helgrind drd sgcheck 23272valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools))) 23273 23274valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS) 23275valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS) 23276valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS) 23277valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS) 23278 23279valgrind_quiet = $(valgrind_quiet_$(V)) 23280valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY)) 23281valgrind_quiet_0 = --quiet 23282 23283# Support running with and without libtool. 23284ifneq ($(LIBTOOL),) 23285valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute 23286else 23287valgrind_lt = 23288endif 23289 23290# Use recursive makes in order to ignore errors during check 23291check-valgrind: 23292ifeq ($(VALGRIND_ENABLED),yes) 23293 -$(foreach tool,$(valgrind_tools), \ 23294 $(if $(VALGRIND_HAVE_TOOL_$(tool))$(VALGRIND_HAVE_TOOL_exp_$(tool)), \ 23295 $(MAKE) $(AM_MAKEFLAGS) -k check-valgrind-tool VALGRIND_TOOL=$(tool); \ 23296 ) \ 23297 ) 23298else 23299 @echo "Need to reconfigure with --enable-valgrind" 23300endif 23301 23302# Valgrind running 23303VALGRIND_TESTS_ENVIRONMENT = \ 23304 $(TESTS_ENVIRONMENT) \ 23305 env VALGRIND=$(VALGRIND) \ 23306 G_SLICE=always-malloc,debug-blocks \ 23307 G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly 23308 23309VALGRIND_LOG_COMPILER = \ 23310 $(valgrind_lt) \ 23311 $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS) 23312 23313check-valgrind-tool: 23314ifeq ($(VALGRIND_ENABLED),yes) 23315 $(MAKE) check-TESTS \ 23316 TESTS_ENVIRONMENT="$(VALGRIND_TESTS_ENVIRONMENT)" \ 23317 LOG_COMPILER="$(VALGRIND_LOG_COMPILER)" \ 23318 LOG_FLAGS="$(valgrind_$(VALGRIND_TOOL)_flags)" \ 23319 TEST_SUITE_LOG=test-suite-$(VALGRIND_TOOL).log 23320else 23321 @echo "Need to reconfigure with --enable-valgrind" 23322endif 23323 23324DISTCHECK_CONFIGURE_FLAGS ?= 23325DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind 23326 23327MOSTLYCLEANFILES ?= 23328MOSTLYCLEANFILES += $(valgrind_log_files) 23329 23330.PHONY: check-valgrind check-valgrind-tool 23331' 23332 23333 23334 23335 23336 23337ac_config_files="$ac_config_files dist.conf Makefile syslog-ng.pc libtest/syslog-ng-test.pc scripts/update-patterndb" 23338 23339cat >confcache <<\_ACEOF 23340# This file is a shell script that caches the results of configure 23341# tests run on this system so they can be shared between configure 23342# scripts and configure runs, see configure's option --config-cache. 23343# It is not useful on other systems. If it contains results you don't 23344# want to keep, you may remove or edit it. 23345# 23346# config.status only pays attention to the cache file if you give it 23347# the --recheck option to rerun configure. 23348# 23349# `ac_cv_env_foo' variables (set or unset) will be overridden when 23350# loading this file, other *unset* `ac_cv_foo' will be assigned the 23351# following values. 23352 23353_ACEOF 23354 23355# The following way of writing the cache mishandles newlines in values, 23356# but we know of no workaround that is simple, portable, and efficient. 23357# So, we kill variables containing newlines. 23358# Ultrix sh set writes to stderr and can't be redirected directly, 23359# and sets the high bit in the cache file unless we assign to the vars. 23360( 23361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23362 eval ac_val=\$$ac_var 23363 case $ac_val in #( 23364 *${as_nl}*) 23365 case $ac_var in #( 23366 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23367printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23368 esac 23369 case $ac_var in #( 23370 _ | IFS | as_nl) ;; #( 23371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23372 *) { eval $ac_var=; unset $ac_var;} ;; 23373 esac ;; 23374 esac 23375 done 23376 23377 (set) 2>&1 | 23378 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23379 *${as_nl}ac_space=\ *) 23380 # `set' does not quote correctly, so add quotes: double-quote 23381 # substitution turns \\\\ into \\, and sed turns \\ into \. 23382 sed -n \ 23383 "s/'/'\\\\''/g; 23384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23385 ;; #( 23386 *) 23387 # `set' quotes correctly as required by POSIX, so do not add quotes. 23388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23389 ;; 23390 esac | 23391 sort 23392) | 23393 sed ' 23394 /^ac_cv_env_/b end 23395 t clear 23396 :clear 23397 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 23398 t end 23399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23400 :end' >>confcache 23401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23402 if test -w "$cache_file"; then 23403 if test "x$cache_file" != "x/dev/null"; then 23404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23405printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 23406 if test ! -f "$cache_file" || test -h "$cache_file"; then 23407 cat confcache >"$cache_file" 23408 else 23409 case $cache_file in #( 23410 */* | ?:*) 23411 mv -f confcache "$cache_file"$$ && 23412 mv -f "$cache_file"$$ "$cache_file" ;; #( 23413 *) 23414 mv -f confcache "$cache_file" ;; 23415 esac 23416 fi 23417 fi 23418 else 23419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23420printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 23421 fi 23422fi 23423rm -f confcache 23424 23425test "x$prefix" = xNONE && prefix=$ac_default_prefix 23426# Let make expand exec_prefix. 23427test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23428 23429DEFS=-DHAVE_CONFIG_H 23430 23431ac_libobjs= 23432ac_ltlibobjs= 23433U= 23434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23435 # 1. Remove the extension, and $U if already installed. 23436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23437 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 23438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23439 # will be set to the directory where LIBOBJS objects are built. 23440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23442done 23443LIBOBJS=$ac_libobjs 23444 23445LTLIBOBJS=$ac_ltlibobjs 23446 23447 23448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 23449printf %s "checking that generated files are newer than configure... " >&6; } 23450 if test -n "$am_sleep_pid"; then 23451 # Hide warnings about reused PIDs. 23452 wait $am_sleep_pid 2>/dev/null 23453 fi 23454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 23455printf "%s\n" "done" >&6; } 23456 if test -n "$EXEEXT"; then 23457 am__EXEEXT_TRUE= 23458 am__EXEEXT_FALSE='#' 23459else 23460 am__EXEEXT_TRUE='#' 23461 am__EXEEXT_FALSE= 23462fi 23463 23464if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23465 as_fn_error $? "conditional \"AMDEP\" was never defined. 23466Usually this means the macro was only invoked conditionally." "$LINENO" 5 23467fi 23468if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23469 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 23470Usually this means the macro was only invoked conditionally." "$LINENO" 5 23471fi 23472if test -z "${HAVE_PYTHON_INTERPRETER_TRUE}" && test -z "${HAVE_PYTHON_INTERPRETER_FALSE}"; then 23473 as_fn_error $? "conditional \"HAVE_PYTHON_INTERPRETER\" was never defined. 23474Usually this means the macro was only invoked conditionally." "$LINENO" 5 23475fi 23476if test -z "${ENABLE_ENV_WRAPPER_TRUE}" && test -z "${ENABLE_ENV_WRAPPER_FALSE}"; then 23477 as_fn_error $? "conditional \"ENABLE_ENV_WRAPPER\" was never defined. 23478Usually this means the macro was only invoked conditionally." "$LINENO" 5 23479fi 23480if test -z "${ENABLE_SYSTEMD_TRUE}" && test -z "${ENABLE_SYSTEMD_FALSE}"; then 23481 as_fn_error $? "conditional \"ENABLE_SYSTEMD\" was never defined. 23482Usually this means the macro was only invoked conditionally." "$LINENO" 5 23483fi 23484if test -z "${ENABLE_SYSTEMD_UNIT_INSTALL_TRUE}" && test -z "${ENABLE_SYSTEMD_UNIT_INSTALL_FALSE}"; then 23485 as_fn_error $? "conditional \"ENABLE_SYSTEMD_UNIT_INSTALL\" was never defined. 23486Usually this means the macro was only invoked conditionally." "$LINENO" 5 23487fi 23488if test -z "${ENABLE_SQL_TRUE}" && test -z "${ENABLE_SQL_FALSE}"; then 23489 as_fn_error $? "conditional \"ENABLE_SQL\" was never defined. 23490Usually this means the macro was only invoked conditionally." "$LINENO" 5 23491fi 23492if test -z "${ENABLE_SUN_STREAMS_TRUE}" && test -z "${ENABLE_SUN_STREAMS_FALSE}"; then 23493 as_fn_error $? "conditional \"ENABLE_SUN_STREAMS\" was never defined. 23494Usually this means the macro was only invoked conditionally." "$LINENO" 5 23495fi 23496if test -z "${ENABLE_OPENBSD_SYSTEM_SOURCE_TRUE}" && test -z "${ENABLE_OPENBSD_SYSTEM_SOURCE_FALSE}"; then 23497 as_fn_error $? "conditional \"ENABLE_OPENBSD_SYSTEM_SOURCE\" was never defined. 23498Usually this means the macro was only invoked conditionally." "$LINENO" 5 23499fi 23500if test -z "${ENABLE_PACCT_TRUE}" && test -z "${ENABLE_PACCT_FALSE}"; then 23501 as_fn_error $? "conditional \"ENABLE_PACCT\" was never defined. 23502Usually this means the macro was only invoked conditionally." "$LINENO" 5 23503fi 23504if test -z "${ENABLE_MONGODB_TRUE}" && test -z "${ENABLE_MONGODB_FALSE}"; then 23505 as_fn_error $? "conditional \"ENABLE_MONGODB\" was never defined. 23506Usually this means the macro was only invoked conditionally." "$LINENO" 5 23507fi 23508if test -z "${ENABLE_SMTP_TRUE}" && test -z "${ENABLE_SMTP_FALSE}"; then 23509 as_fn_error $? "conditional \"ENABLE_SMTP\" was never defined. 23510Usually this means the macro was only invoked conditionally." "$LINENO" 5 23511fi 23512if test -z "${ENABLE_MQTT_TRUE}" && test -z "${ENABLE_MQTT_FALSE}"; then 23513 as_fn_error $? "conditional \"ENABLE_MQTT\" was never defined. 23514Usually this means the macro was only invoked conditionally." "$LINENO" 5 23515fi 23516if test -z "${ENABLE_HTTP_TRUE}" && test -z "${ENABLE_HTTP_FALSE}"; then 23517 as_fn_error $? "conditional \"ENABLE_HTTP\" was never defined. 23518Usually this means the macro was only invoked conditionally." "$LINENO" 5 23519fi 23520if test -z "${ENABLE_AMQP_TRUE}" && test -z "${ENABLE_AMQP_FALSE}"; then 23521 as_fn_error $? "conditional \"ENABLE_AMQP\" was never defined. 23522Usually this means the macro was only invoked conditionally." "$LINENO" 5 23523fi 23524if test -z "${ENABLE_STOMP_TRUE}" && test -z "${ENABLE_STOMP_FALSE}"; then 23525 as_fn_error $? "conditional \"ENABLE_STOMP\" was never defined. 23526Usually this means the macro was only invoked conditionally." "$LINENO" 5 23527fi 23528if test -z "${ENABLE_JSON_TRUE}" && test -z "${ENABLE_JSON_FALSE}"; then 23529 as_fn_error $? "conditional \"ENABLE_JSON\" was never defined. 23530Usually this means the macro was only invoked conditionally." "$LINENO" 5 23531fi 23532if test -z "${ENABLE_GEOIP2_TRUE}" && test -z "${ENABLE_GEOIP2_FALSE}"; then 23533 as_fn_error $? "conditional \"ENABLE_GEOIP2\" was never defined. 23534Usually this means the macro was only invoked conditionally." "$LINENO" 5 23535fi 23536if test -z "${ENABLE_REDIS_TRUE}" && test -z "${ENABLE_REDIS_FALSE}"; then 23537 as_fn_error $? "conditional \"ENABLE_REDIS\" was never defined. 23538Usually this means the macro was only invoked conditionally." "$LINENO" 5 23539fi 23540if test -z "${ENABLE_KAFKA_TRUE}" && test -z "${ENABLE_KAFKA_FALSE}"; then 23541 as_fn_error $? "conditional \"ENABLE_KAFKA\" was never defined. 23542Usually this means the macro was only invoked conditionally." "$LINENO" 5 23543fi 23544if test -z "${IVYKIS_INTERNAL_TRUE}" && test -z "${IVYKIS_INTERNAL_FALSE}"; then 23545 as_fn_error $? "conditional \"IVYKIS_INTERNAL\" was never defined. 23546Usually this means the macro was only invoked conditionally." "$LINENO" 5 23547fi 23548if test -z "${JSON_INTERNAL_TRUE}" && test -z "${JSON_INTERNAL_FALSE}"; then 23549 as_fn_error $? "conditional \"JSON_INTERNAL\" was never defined. 23550Usually this means the macro was only invoked conditionally." "$LINENO" 5 23551fi 23552if test -z "${LIBMONGO_INTERNAL_TRUE}" && test -z "${LIBMONGO_INTERNAL_FALSE}"; then 23553 as_fn_error $? "conditional \"LIBMONGO_INTERNAL\" was never defined. 23554Usually this means the macro was only invoked conditionally." "$LINENO" 5 23555fi 23556if test -z "${LIBRABBITMQ_INTERNAL_TRUE}" && test -z "${LIBRABBITMQ_INTERNAL_FALSE}"; then 23557 as_fn_error $? "conditional \"LIBRABBITMQ_INTERNAL\" was never defined. 23558Usually this means the macro was only invoked conditionally." "$LINENO" 5 23559fi 23560if test -z "${ENABLE_RIEMANN_TRUE}" && test -z "${ENABLE_RIEMANN_FALSE}"; then 23561 as_fn_error $? "conditional \"ENABLE_RIEMANN\" was never defined. 23562Usually this means the macro was only invoked conditionally." "$LINENO" 5 23563fi 23564if test -z "${ENABLE_JOURNALD_TRUE}" && test -z "${ENABLE_JOURNALD_FALSE}"; then 23565 as_fn_error $? "conditional \"ENABLE_JOURNALD\" was never defined. 23566Usually this means the macro was only invoked conditionally." "$LINENO" 5 23567fi 23568if test -z "${ENABLE_PYTHON_TRUE}" && test -z "${ENABLE_PYTHON_FALSE}"; then 23569 as_fn_error $? "conditional \"ENABLE_PYTHON\" was never defined. 23570Usually this means the macro was only invoked conditionally." "$LINENO" 5 23571fi 23572if test -z "${ENABLE_JAVA_TRUE}" && test -z "${ENABLE_JAVA_FALSE}"; then 23573 as_fn_error $? "conditional \"ENABLE_JAVA\" was never defined. 23574Usually this means the macro was only invoked conditionally." "$LINENO" 5 23575fi 23576if test -z "${ENABLE_JAVA_MODULES_TRUE}" && test -z "${ENABLE_JAVA_MODULES_FALSE}"; then 23577 as_fn_error $? "conditional \"ENABLE_JAVA_MODULES\" was never defined. 23578Usually this means the macro was only invoked conditionally." "$LINENO" 5 23579fi 23580if test -z "${ENABLE_AFSNMP_TRUE}" && test -z "${ENABLE_AFSNMP_FALSE}"; then 23581 as_fn_error $? "conditional \"ENABLE_AFSNMP\" was never defined. 23582Usually this means the macro was only invoked conditionally." "$LINENO" 5 23583fi 23584if test -z "${ENABLE_MANPAGES_TRUE}" && test -z "${ENABLE_MANPAGES_FALSE}"; then 23585 as_fn_error $? "conditional \"ENABLE_MANPAGES\" was never defined. 23586Usually this means the macro was only invoked conditionally." "$LINENO" 5 23587fi 23588if test -z "${ENABLE_MANPAGES_INSTALL_TRUE}" && test -z "${ENABLE_MANPAGES_INSTALL_FALSE}"; then 23589 as_fn_error $? "conditional \"ENABLE_MANPAGES_INSTALL\" was never defined. 23590Usually this means the macro was only invoked conditionally." "$LINENO" 5 23591fi 23592if test -z "${ENABLE_NATIVE_TRUE}" && test -z "${ENABLE_NATIVE_FALSE}"; then 23593 as_fn_error $? "conditional \"ENABLE_NATIVE\" was never defined. 23594Usually this means the macro was only invoked conditionally." "$LINENO" 5 23595fi 23596if test -z "${ENABLE_EXTRA_WARNINGS_TRUE}" && test -z "${ENABLE_EXTRA_WARNINGS_FALSE}"; then 23597 as_fn_error $? "conditional \"ENABLE_EXTRA_WARNINGS\" was never defined. 23598Usually this means the macro was only invoked conditionally." "$LINENO" 5 23599fi 23600if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then 23601 as_fn_error $? "conditional \"ENABLE_TESTING\" was never defined. 23602Usually this means the macro was only invoked conditionally." "$LINENO" 5 23603fi 23604if test -z "${ENABLE_SANITIZER_TRUE}" && test -z "${ENABLE_SANITIZER_FALSE}"; then 23605 as_fn_error $? "conditional \"ENABLE_SANITIZER\" was never defined. 23606Usually this means the macro was only invoked conditionally." "$LINENO" 5 23607fi 23608if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then 23609 as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined. 23610Usually this means the macro was only invoked conditionally." "$LINENO" 5 23611fi 23612if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then 23613 as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined. 23614Usually this means the macro was only invoked conditionally." "$LINENO" 5 23615fi 23616if test -z "${HAVE_GETRANDOM_TRUE}" && test -z "${HAVE_GETRANDOM_FALSE}"; then 23617 as_fn_error $? "conditional \"HAVE_GETRANDOM\" was never defined. 23618Usually this means the macro was only invoked conditionally." "$LINENO" 5 23619fi 23620if test -z "${HAVE_FMEMOPEN_TRUE}" && test -z "${HAVE_FMEMOPEN_FALSE}"; then 23621 as_fn_error $? "conditional \"HAVE_FMEMOPEN\" was never defined. 23622Usually this means the macro was only invoked conditionally." "$LINENO" 5 23623fi 23624if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then 23625 as_fn_error $? "conditional \"ENABLE_IPV6\" was never defined. 23626Usually this means the macro was only invoked conditionally." "$LINENO" 5 23627fi 23628if test -z "${PYLINT_TRUE}" && test -z "${PYLINT_FALSE}"; then 23629 as_fn_error $? "conditional \"PYLINT\" was never defined. 23630Usually this means the macro was only invoked conditionally." "$LINENO" 5 23631fi 23632if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then 23633 as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined. 23634Usually this means the macro was only invoked conditionally." "$LINENO" 5 23635fi 23636 23637: "${CONFIG_STATUS=./config.status}" 23638ac_write_fail=0 23639ac_clean_files_save=$ac_clean_files 23640ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23642printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 23643as_write_fail=0 23644cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23645#! $SHELL 23646# Generated by $as_me. 23647# Run this file to recreate the current configuration. 23648# Compiler output produced by configure, useful for debugging 23649# configure, is in config.log if it exists. 23650 23651debug=false 23652ac_cs_recheck=false 23653ac_cs_silent=false 23654 23655SHELL=\${CONFIG_SHELL-$SHELL} 23656export SHELL 23657_ASEOF 23658cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23659## -------------------- ## 23660## M4sh Initialization. ## 23661## -------------------- ## 23662 23663# Be more Bourne compatible 23664DUALCASE=1; export DUALCASE # for MKS sh 23665as_nop=: 23666if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 23667then : 23668 emulate sh 23669 NULLCMD=: 23670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23671 # is contrary to our usage. Disable this feature. 23672 alias -g '${1+"$@"}'='"$@"' 23673 setopt NO_GLOB_SUBST 23674else $as_nop 23675 case `(set -o) 2>/dev/null` in #( 23676 *posix*) : 23677 set -o posix ;; #( 23678 *) : 23679 ;; 23680esac 23681fi 23682 23683 23684 23685# Reset variables that may have inherited troublesome values from 23686# the environment. 23687 23688# IFS needs to be set, to space, tab, and newline, in precisely that order. 23689# (If _AS_PATH_WALK were called with IFS unset, it would have the 23690# side effect of setting IFS to empty, thus disabling word splitting.) 23691# Quoting is to prevent editors from complaining about space-tab. 23692as_nl=' 23693' 23694export as_nl 23695IFS=" "" $as_nl" 23696 23697PS1='$ ' 23698PS2='> ' 23699PS4='+ ' 23700 23701# Ensure predictable behavior from utilities with locale-dependent output. 23702LC_ALL=C 23703export LC_ALL 23704LANGUAGE=C 23705export LANGUAGE 23706 23707# We cannot yet rely on "unset" to work, but we need these variables 23708# to be unset--not just set to an empty or harmless value--now, to 23709# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 23710# also avoids known problems related to "unset" and subshell syntax 23711# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 23712for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 23713do eval test \${$as_var+y} \ 23714 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23715done 23716 23717# Ensure that fds 0, 1, and 2 are open. 23718if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 23719if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 23720if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 23721 23722# The user is always right. 23723if ${PATH_SEPARATOR+false} :; then 23724 PATH_SEPARATOR=: 23725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23727 PATH_SEPARATOR=';' 23728 } 23729fi 23730 23731 23732# Find who we are. Look in the path if we contain no directory separator. 23733as_myself= 23734case $0 in #(( 23735 *[\\/]* ) as_myself=$0 ;; 23736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23737for as_dir in $PATH 23738do 23739 IFS=$as_save_IFS 23740 case $as_dir in #((( 23741 '') as_dir=./ ;; 23742 */) ;; 23743 *) as_dir=$as_dir/ ;; 23744 esac 23745 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 23746 done 23747IFS=$as_save_IFS 23748 23749 ;; 23750esac 23751# We did not find ourselves, most probably we were run as `sh COMMAND' 23752# in which case we are not to be found in the path. 23753if test "x$as_myself" = x; then 23754 as_myself=$0 23755fi 23756if test ! -f "$as_myself"; then 23757 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23758 exit 1 23759fi 23760 23761 23762 23763# as_fn_error STATUS ERROR [LINENO LOG_FD] 23764# ---------------------------------------- 23765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23767# script with STATUS, using 1 if that was 0. 23768as_fn_error () 23769{ 23770 as_status=$1; test $as_status -eq 0 && as_status=1 23771 if test "$4"; then 23772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23774 fi 23775 printf "%s\n" "$as_me: error: $2" >&2 23776 as_fn_exit $as_status 23777} # as_fn_error 23778 23779 23780 23781# as_fn_set_status STATUS 23782# ----------------------- 23783# Set $? to STATUS, without forking. 23784as_fn_set_status () 23785{ 23786 return $1 23787} # as_fn_set_status 23788 23789# as_fn_exit STATUS 23790# ----------------- 23791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23792as_fn_exit () 23793{ 23794 set +e 23795 as_fn_set_status $1 23796 exit $1 23797} # as_fn_exit 23798 23799# as_fn_unset VAR 23800# --------------- 23801# Portably unset VAR. 23802as_fn_unset () 23803{ 23804 { eval $1=; unset $1;} 23805} 23806as_unset=as_fn_unset 23807 23808# as_fn_append VAR VALUE 23809# ---------------------- 23810# Append the text in VALUE to the end of the definition contained in VAR. Take 23811# advantage of any shell optimizations that allow amortized linear growth over 23812# repeated appends, instead of the typical quadratic growth present in naive 23813# implementations. 23814if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 23815then : 23816 eval 'as_fn_append () 23817 { 23818 eval $1+=\$2 23819 }' 23820else $as_nop 23821 as_fn_append () 23822 { 23823 eval $1=\$$1\$2 23824 } 23825fi # as_fn_append 23826 23827# as_fn_arith ARG... 23828# ------------------ 23829# Perform arithmetic evaluation on the ARGs, and store the result in the 23830# global $as_val. Take advantage of shells that can avoid forks. The arguments 23831# must be portable across $(()) and expr. 23832if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 23833then : 23834 eval 'as_fn_arith () 23835 { 23836 as_val=$(( $* )) 23837 }' 23838else $as_nop 23839 as_fn_arith () 23840 { 23841 as_val=`expr "$@" || test $? -eq 1` 23842 } 23843fi # as_fn_arith 23844 23845 23846if expr a : '\(a\)' >/dev/null 2>&1 && 23847 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23848 as_expr=expr 23849else 23850 as_expr=false 23851fi 23852 23853if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23854 as_basename=basename 23855else 23856 as_basename=false 23857fi 23858 23859if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23860 as_dirname=dirname 23861else 23862 as_dirname=false 23863fi 23864 23865as_me=`$as_basename -- "$0" || 23866$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23867 X"$0" : 'X\(//\)$' \| \ 23868 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23869printf "%s\n" X/"$0" | 23870 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23871 s//\1/ 23872 q 23873 } 23874 /^X\/\(\/\/\)$/{ 23875 s//\1/ 23876 q 23877 } 23878 /^X\/\(\/\).*/{ 23879 s//\1/ 23880 q 23881 } 23882 s/.*/./; q'` 23883 23884# Avoid depending upon Character Ranges. 23885as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23886as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23887as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23888as_cr_digits='0123456789' 23889as_cr_alnum=$as_cr_Letters$as_cr_digits 23890 23891 23892# Determine whether it's possible to make 'echo' print without a newline. 23893# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 23894# for compatibility with existing Makefiles. 23895ECHO_C= ECHO_N= ECHO_T= 23896case `echo -n x` in #((((( 23897-n*) 23898 case `echo 'xy\c'` in 23899 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23900 xy) ECHO_C='\c';; 23901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23902 ECHO_T=' ';; 23903 esac;; 23904*) 23905 ECHO_N='-n';; 23906esac 23907 23908# For backward compatibility with old third-party macros, we provide 23909# the shell variables $as_echo and $as_echo_n. New code should use 23910# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 23911as_echo='printf %s\n' 23912as_echo_n='printf %s' 23913 23914rm -f conf$$ conf$$.exe conf$$.file 23915if test -d conf$$.dir; then 23916 rm -f conf$$.dir/conf$$.file 23917else 23918 rm -f conf$$.dir 23919 mkdir conf$$.dir 2>/dev/null 23920fi 23921if (echo >conf$$.file) 2>/dev/null; then 23922 if ln -s conf$$.file conf$$ 2>/dev/null; then 23923 as_ln_s='ln -s' 23924 # ... but there are two gotchas: 23925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23927 # In both cases, we have to default to `cp -pR'. 23928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23929 as_ln_s='cp -pR' 23930 elif ln conf$$.file conf$$ 2>/dev/null; then 23931 as_ln_s=ln 23932 else 23933 as_ln_s='cp -pR' 23934 fi 23935else 23936 as_ln_s='cp -pR' 23937fi 23938rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23939rmdir conf$$.dir 2>/dev/null 23940 23941 23942# as_fn_mkdir_p 23943# ------------- 23944# Create "$as_dir" as a directory, including parents if necessary. 23945as_fn_mkdir_p () 23946{ 23947 23948 case $as_dir in #( 23949 -*) as_dir=./$as_dir;; 23950 esac 23951 test -d "$as_dir" || eval $as_mkdir_p || { 23952 as_dirs= 23953 while :; do 23954 case $as_dir in #( 23955 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23956 *) as_qdir=$as_dir;; 23957 esac 23958 as_dirs="'$as_qdir' $as_dirs" 23959 as_dir=`$as_dirname -- "$as_dir" || 23960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23961 X"$as_dir" : 'X\(//\)[^/]' \| \ 23962 X"$as_dir" : 'X\(//\)$' \| \ 23963 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23964printf "%s\n" X"$as_dir" | 23965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23966 s//\1/ 23967 q 23968 } 23969 /^X\(\/\/\)[^/].*/{ 23970 s//\1/ 23971 q 23972 } 23973 /^X\(\/\/\)$/{ 23974 s//\1/ 23975 q 23976 } 23977 /^X\(\/\).*/{ 23978 s//\1/ 23979 q 23980 } 23981 s/.*/./; q'` 23982 test -d "$as_dir" && break 23983 done 23984 test -z "$as_dirs" || eval "mkdir $as_dirs" 23985 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23986 23987 23988} # as_fn_mkdir_p 23989if mkdir -p . 2>/dev/null; then 23990 as_mkdir_p='mkdir -p "$as_dir"' 23991else 23992 test -d ./-p && rmdir ./-p 23993 as_mkdir_p=false 23994fi 23995 23996 23997# as_fn_executable_p FILE 23998# ----------------------- 23999# Test if FILE is an executable regular file. 24000as_fn_executable_p () 24001{ 24002 test -f "$1" && test -x "$1" 24003} # as_fn_executable_p 24004as_test_x='test -x' 24005as_executable_p=as_fn_executable_p 24006 24007# Sed expression to map a string onto a valid CPP name. 24008as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24009 24010# Sed expression to map a string onto a valid variable name. 24011as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24012 24013 24014exec 6>&1 24015## ----------------------------------- ## 24016## Main body of $CONFIG_STATUS script. ## 24017## ----------------------------------- ## 24018_ASEOF 24019test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24020 24021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24022# Save the log message, to keep $0 and so on meaningful, and to 24023# report actual input values of CONFIG_FILES etc. instead of their 24024# values after options handling. 24025ac_log=" 24026This file was extended by syslog-ng $as_me 3.35.1, which was 24027generated by GNU Autoconf 2.71. Invocation command line was 24028 24029 CONFIG_FILES = $CONFIG_FILES 24030 CONFIG_HEADERS = $CONFIG_HEADERS 24031 CONFIG_LINKS = $CONFIG_LINKS 24032 CONFIG_COMMANDS = $CONFIG_COMMANDS 24033 $ $0 $@ 24034 24035on `(hostname || uname -n) 2>/dev/null | sed 1q` 24036" 24037 24038_ACEOF 24039 24040case $ac_config_files in *" 24041"*) set x $ac_config_files; shift; ac_config_files=$*;; 24042esac 24043 24044case $ac_config_headers in *" 24045"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24046esac 24047 24048 24049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24050# Files that config.status was made for. 24051config_files="$ac_config_files" 24052config_headers="$ac_config_headers" 24053config_links="$ac_config_links" 24054config_commands="$ac_config_commands" 24055 24056_ACEOF 24057 24058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24059ac_cs_usage="\ 24060\`$as_me' instantiates files and other configuration actions 24061from templates according to the current configuration. Unless the files 24062and actions are specified as TAGs, all are instantiated by default. 24063 24064Usage: $0 [OPTION]... [TAG]... 24065 24066 -h, --help print this help, then exit 24067 -V, --version print version number and configuration settings, then exit 24068 --config print configuration, then exit 24069 -q, --quiet, --silent 24070 do not print progress messages 24071 -d, --debug don't remove temporary files 24072 --recheck update $as_me by reconfiguring in the same conditions 24073 --file=FILE[:TEMPLATE] 24074 instantiate the configuration file FILE 24075 --header=FILE[:TEMPLATE] 24076 instantiate the configuration header FILE 24077 24078Configuration files: 24079$config_files 24080 24081Configuration headers: 24082$config_headers 24083 24084Configuration links: 24085$config_links 24086 24087Configuration commands: 24088$config_commands 24089 24090Report bugs to the package provider." 24091 24092_ACEOF 24093ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 24094ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 24095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24096ac_cs_config='$ac_cs_config_escaped' 24097ac_cs_version="\\ 24098syslog-ng config.status 3.35.1 24099configured by $0, generated by GNU Autoconf 2.71, 24100 with options \\"\$ac_cs_config\\" 24101 24102Copyright (C) 2021 Free Software Foundation, Inc. 24103This config.status script is free software; the Free Software Foundation 24104gives unlimited permission to copy, distribute and modify it." 24105 24106ac_pwd='$ac_pwd' 24107srcdir='$srcdir' 24108INSTALL='$INSTALL' 24109MKDIR_P='$MKDIR_P' 24110AWK='$AWK' 24111test -n "\$AWK" || AWK=awk 24112_ACEOF 24113 24114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24115# The default lists apply if the user does not specify any file. 24116ac_need_defaults=: 24117while test $# != 0 24118do 24119 case $1 in 24120 --*=?*) 24121 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24122 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24123 ac_shift=: 24124 ;; 24125 --*=) 24126 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24127 ac_optarg= 24128 ac_shift=: 24129 ;; 24130 *) 24131 ac_option=$1 24132 ac_optarg=$2 24133 ac_shift=shift 24134 ;; 24135 esac 24136 24137 case $ac_option in 24138 # Handling of the options. 24139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24140 ac_cs_recheck=: ;; 24141 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24142 printf "%s\n" "$ac_cs_version"; exit ;; 24143 --config | --confi | --conf | --con | --co | --c ) 24144 printf "%s\n" "$ac_cs_config"; exit ;; 24145 --debug | --debu | --deb | --de | --d | -d ) 24146 debug=: ;; 24147 --file | --fil | --fi | --f ) 24148 $ac_shift 24149 case $ac_optarg in 24150 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24151 '') as_fn_error $? "missing file argument" ;; 24152 esac 24153 as_fn_append CONFIG_FILES " '$ac_optarg'" 24154 ac_need_defaults=false;; 24155 --header | --heade | --head | --hea ) 24156 $ac_shift 24157 case $ac_optarg in 24158 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24159 esac 24160 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24161 ac_need_defaults=false;; 24162 --he | --h) 24163 # Conflict between --help and --header 24164 as_fn_error $? "ambiguous option: \`$1' 24165Try \`$0 --help' for more information.";; 24166 --help | --hel | -h ) 24167 printf "%s\n" "$ac_cs_usage"; exit ;; 24168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24169 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24170 ac_cs_silent=: ;; 24171 24172 # This is an error. 24173 -*) as_fn_error $? "unrecognized option: \`$1' 24174Try \`$0 --help' for more information." ;; 24175 24176 *) as_fn_append ac_config_targets " $1" 24177 ac_need_defaults=false ;; 24178 24179 esac 24180 shift 24181done 24182 24183ac_configure_extra_args= 24184 24185if $ac_cs_silent; then 24186 exec 6>/dev/null 24187 ac_configure_extra_args="$ac_configure_extra_args --silent" 24188fi 24189 24190_ACEOF 24191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24192if \$ac_cs_recheck; then 24193 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24194 shift 24195 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 24196 CONFIG_SHELL='$SHELL' 24197 export CONFIG_SHELL 24198 exec "\$@" 24199fi 24200 24201_ACEOF 24202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24203exec 5>>config.log 24204{ 24205 echo 24206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24207## Running $as_me. ## 24208_ASBOX 24209 printf "%s\n" "$ac_log" 24210} >&5 24211 24212_ACEOF 24213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24214# 24215# INIT-COMMANDS 24216# 24217AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 24218 24219 24220# The HP-UX ksh and POSIX shell print the target directory to stdout 24221# if CDPATH is set. 24222(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24223 24224sed_quote_subst='$sed_quote_subst' 24225double_quote_subst='$double_quote_subst' 24226delay_variable_subst='$delay_variable_subst' 24227macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 24228macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 24229enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 24230enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 24231pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 24232enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 24233shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 24234SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 24235ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 24236PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 24237host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 24238host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 24239host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 24240build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 24241build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 24242build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 24243SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 24244Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 24245GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 24246EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 24247FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 24248LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 24249NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 24250LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 24251max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 24252ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 24253exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 24254lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 24255lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 24256lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 24257lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 24258lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 24259reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 24260reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 24261OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 24262deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 24263file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 24264file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 24265want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 24266DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 24267sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 24268AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 24269AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 24270archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 24271STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 24272RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 24273old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24274old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24275old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 24276lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 24277CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 24278CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 24279compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 24280GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 24281lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 24282lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 24283lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 24284lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 24285lt_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"`' 24286lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 24287nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 24288lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 24289lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 24290objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 24291MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 24292lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 24293lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 24294lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 24295lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 24296lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 24297need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 24298MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 24299DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 24300NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 24301LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 24302OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 24303OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 24304libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 24305shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 24306extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24307archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 24308enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 24309export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 24310whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 24311compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 24312old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 24313old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 24314archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 24315archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24316module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 24317module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 24318with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 24319allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 24320no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 24321hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 24322hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 24323hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 24324hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 24325hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 24326hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 24327hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 24328inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 24329link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 24330always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 24331export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 24332exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 24333include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 24334prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 24335postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 24336file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 24337variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 24338need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 24339need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 24340version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 24341runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 24342shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 24343shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 24344libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 24345library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 24346soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 24347install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 24348postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 24349postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 24350finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 24351finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 24352hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 24353sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 24354configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 24355configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 24356hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 24357enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 24358enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 24359enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 24360old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 24361striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 24362 24363LTCC='$LTCC' 24364LTCFLAGS='$LTCFLAGS' 24365compiler='$compiler_DEFAULT' 24366 24367# A function that is used when there is no print builtin or printf. 24368func_fallback_echo () 24369{ 24370 eval 'cat <<_LTECHO_EOF 24371\$1 24372_LTECHO_EOF' 24373} 24374 24375# Quote evaled strings. 24376for var in SHELL \ 24377ECHO \ 24378PATH_SEPARATOR \ 24379SED \ 24380GREP \ 24381EGREP \ 24382FGREP \ 24383LD \ 24384NM \ 24385LN_S \ 24386lt_SP2NL \ 24387lt_NL2SP \ 24388reload_flag \ 24389OBJDUMP \ 24390deplibs_check_method \ 24391file_magic_cmd \ 24392file_magic_glob \ 24393want_nocaseglob \ 24394DLLTOOL \ 24395sharedlib_from_linklib_cmd \ 24396AR \ 24397AR_FLAGS \ 24398archiver_list_spec \ 24399STRIP \ 24400RANLIB \ 24401CC \ 24402CFLAGS \ 24403compiler \ 24404lt_cv_sys_global_symbol_pipe \ 24405lt_cv_sys_global_symbol_to_cdecl \ 24406lt_cv_sys_global_symbol_to_import \ 24407lt_cv_sys_global_symbol_to_c_name_address \ 24408lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 24409lt_cv_nm_interface \ 24410nm_file_list_spec \ 24411lt_cv_truncate_bin \ 24412lt_prog_compiler_no_builtin_flag \ 24413lt_prog_compiler_pic \ 24414lt_prog_compiler_wl \ 24415lt_prog_compiler_static \ 24416lt_cv_prog_compiler_c_o \ 24417need_locks \ 24418MANIFEST_TOOL \ 24419DSYMUTIL \ 24420NMEDIT \ 24421LIPO \ 24422OTOOL \ 24423OTOOL64 \ 24424shrext_cmds \ 24425export_dynamic_flag_spec \ 24426whole_archive_flag_spec \ 24427compiler_needs_object \ 24428with_gnu_ld \ 24429allow_undefined_flag \ 24430no_undefined_flag \ 24431hardcode_libdir_flag_spec \ 24432hardcode_libdir_separator \ 24433exclude_expsyms \ 24434include_expsyms \ 24435file_list_spec \ 24436variables_saved_for_relink \ 24437libname_spec \ 24438library_names_spec \ 24439soname_spec \ 24440install_override_mode \ 24441finish_eval \ 24442old_striplib \ 24443striplib; do 24444 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24445 *[\\\\\\\`\\"\\\$]*) 24446 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24447 ;; 24448 *) 24449 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24450 ;; 24451 esac 24452done 24453 24454# Double-quote double-evaled strings. 24455for var in reload_cmds \ 24456old_postinstall_cmds \ 24457old_postuninstall_cmds \ 24458old_archive_cmds \ 24459extract_expsyms_cmds \ 24460old_archive_from_new_cmds \ 24461old_archive_from_expsyms_cmds \ 24462archive_cmds \ 24463archive_expsym_cmds \ 24464module_cmds \ 24465module_expsym_cmds \ 24466export_symbols_cmds \ 24467prelink_cmds \ 24468postlink_cmds \ 24469postinstall_cmds \ 24470postuninstall_cmds \ 24471finish_cmds \ 24472sys_lib_search_path_spec \ 24473configure_time_dlsearch_path \ 24474configure_time_lt_sys_library_path; do 24475 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 24476 *[\\\\\\\`\\"\\\$]*) 24477 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 24478 ;; 24479 *) 24480 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 24481 ;; 24482 esac 24483done 24484 24485ac_aux_dir='$ac_aux_dir' 24486 24487# See if we are running on zsh, and set the options that allow our 24488# commands through without removal of \ escapes INIT. 24489if test -n "\${ZSH_VERSION+set}"; then 24490 setopt NO_GLOB_SUBST 24491fi 24492 24493 24494 PACKAGE='$PACKAGE' 24495 VERSION='$VERSION' 24496 RM='$RM' 24497 ofile='$ofile' 24498 24499 24500 24501PACKAGE="$PACKAGE" 24502 24503_ACEOF 24504 24505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24506 24507# Handling of arguments. 24508for ac_config_target in $ac_config_targets 24509do 24510 case $ac_config_target in 24511 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24512 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24513 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 24514 "modules/geoip2/tests/test.mmdb") CONFIG_LINKS="$CONFIG_LINKS modules/geoip2/tests/test.mmdb:modules/geoip2/tests/test.mmdb" ;; 24515 "syslog-ng-native-connector.pc") CONFIG_FILES="$CONFIG_FILES syslog-ng-native-connector.pc" ;; 24516 "syslog-ng-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS syslog-ng-config.h" ;; 24517 "dist.conf") CONFIG_FILES="$CONFIG_FILES dist.conf" ;; 24518 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24519 "syslog-ng.pc") CONFIG_FILES="$CONFIG_FILES syslog-ng.pc" ;; 24520 "libtest/syslog-ng-test.pc") CONFIG_FILES="$CONFIG_FILES libtest/syslog-ng-test.pc" ;; 24521 "scripts/update-patterndb") CONFIG_FILES="$CONFIG_FILES scripts/update-patterndb" ;; 24522 24523 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24524 esac 24525done 24526 24527 24528# If the user did not use the arguments to specify the items to instantiate, 24529# then the envvar interface is used. Set only those that are not. 24530# We use the long form for the default assignment because of an extremely 24531# bizarre bug on SunOS 4.1.3. 24532if $ac_need_defaults; then 24533 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 24534 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 24535 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links 24536 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 24537fi 24538 24539# Have a temporary directory for convenience. Make it in the build tree 24540# simply because there is no reason against having it here, and in addition, 24541# creating and moving files from /tmp can sometimes cause problems. 24542# Hook for its removal unless debugging. 24543# Note that there is a small window in which the directory will not be cleaned: 24544# after its creation but before its name has been assigned to `$tmp'. 24545$debug || 24546{ 24547 tmp= ac_tmp= 24548 trap 'exit_status=$? 24549 : "${ac_tmp:=$tmp}" 24550 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24551' 0 24552 trap 'as_fn_exit 1' 1 2 13 15 24553} 24554# Create a (secure) tmp directory for tmp files. 24555 24556{ 24557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24558 test -d "$tmp" 24559} || 24560{ 24561 tmp=./conf$$-$RANDOM 24562 (umask 077 && mkdir "$tmp") 24563} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24564ac_tmp=$tmp 24565 24566# Set up the scripts for CONFIG_FILES section. 24567# No need to generate them if there are no CONFIG_FILES. 24568# This happens for instance with `./config.status config.h'. 24569if test -n "$CONFIG_FILES"; then 24570 24571 24572ac_cr=`echo X | tr X '\015'` 24573# On cygwin, bash can eat \r inside `` if the user requested igncr. 24574# But we know of no other shell where ac_cr would be empty at this 24575# point, so we can use a bashism as a fallback. 24576if test "x$ac_cr" = x; then 24577 eval ac_cr=\$\'\\r\' 24578fi 24579ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24580if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24581 ac_cs_awk_cr='\\r' 24582else 24583 ac_cs_awk_cr=$ac_cr 24584fi 24585 24586echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24587_ACEOF 24588 24589 24590{ 24591 echo "cat >conf$$subs.awk <<_ACEOF" && 24592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24593 echo "_ACEOF" 24594} >conf$$subs.sh || 24595 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24596ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24597ac_delim='%!_!# ' 24598for ac_last_try in false false false false false :; do 24599 . ./conf$$subs.sh || 24600 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24601 24602 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24603 if test $ac_delim_n = $ac_delim_num; then 24604 break 24605 elif $ac_last_try; then 24606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24607 else 24608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24609 fi 24610done 24611rm -f conf$$subs.sh 24612 24613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24614cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24615_ACEOF 24616sed -n ' 24617h 24618s/^/S["/; s/!.*/"]=/ 24619p 24620g 24621s/^[^!]*!// 24622:repl 24623t repl 24624s/'"$ac_delim"'$// 24625t delim 24626:nl 24627h 24628s/\(.\{148\}\)..*/\1/ 24629t more1 24630s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24631p 24632n 24633b repl 24634:more1 24635s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24636p 24637g 24638s/.\{148\}// 24639t nl 24640:delim 24641h 24642s/\(.\{148\}\)..*/\1/ 24643t more2 24644s/["\\]/\\&/g; s/^/"/; s/$/"/ 24645p 24646b 24647:more2 24648s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24649p 24650g 24651s/.\{148\}// 24652t delim 24653' <conf$$subs.awk | sed ' 24654/^[^""]/{ 24655 N 24656 s/\n// 24657} 24658' >>$CONFIG_STATUS || ac_write_fail=1 24659rm -f conf$$subs.awk 24660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24661_ACAWK 24662cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24663 for (key in S) S_is_set[key] = 1 24664 FS = "" 24665 24666} 24667{ 24668 line = $ 0 24669 nfields = split(line, field, "@") 24670 substed = 0 24671 len = length(field[1]) 24672 for (i = 2; i < nfields; i++) { 24673 key = field[i] 24674 keylen = length(key) 24675 if (S_is_set[key]) { 24676 value = S[key] 24677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24678 len += length(value) + length(field[++i]) 24679 substed = 1 24680 } else 24681 len += 1 + keylen 24682 } 24683 24684 print line 24685} 24686 24687_ACAWK 24688_ACEOF 24689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24690if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24691 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24692else 24693 cat 24694fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24695 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24696_ACEOF 24697 24698# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24699# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24700# trailing colons and then remove the whole line if VPATH becomes empty 24701# (actually we leave an empty line to preserve line numbers). 24702if test "x$srcdir" = x.; then 24703 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24704h 24705s/// 24706s/^/:/ 24707s/[ ]*$/:/ 24708s/:\$(srcdir):/:/g 24709s/:\${srcdir}:/:/g 24710s/:@srcdir@:/:/g 24711s/^:*// 24712s/:*$// 24713x 24714s/\(=[ ]*\).*/\1/ 24715G 24716s/\n// 24717s/^[^=]*=[ ]*$// 24718}' 24719fi 24720 24721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24722fi # test -n "$CONFIG_FILES" 24723 24724# Set up the scripts for CONFIG_HEADERS section. 24725# No need to generate them if there are no CONFIG_HEADERS. 24726# This happens for instance with `./config.status Makefile'. 24727if test -n "$CONFIG_HEADERS"; then 24728cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24729BEGIN { 24730_ACEOF 24731 24732# Transform confdefs.h into an awk script `defines.awk', embedded as 24733# here-document in config.status, that substitutes the proper values into 24734# config.h.in to produce config.h. 24735 24736# Create a delimiter string that does not exist in confdefs.h, to ease 24737# handling of long lines. 24738ac_delim='%!_!# ' 24739for ac_last_try in false false :; do 24740 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24741 if test -z "$ac_tt"; then 24742 break 24743 elif $ac_last_try; then 24744 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24745 else 24746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24747 fi 24748done 24749 24750# For the awk script, D is an array of macro values keyed by name, 24751# likewise P contains macro parameters if any. Preserve backslash 24752# newline sequences. 24753 24754ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24755sed -n ' 24756s/.\{148\}/&'"$ac_delim"'/g 24757t rset 24758:rset 24759s/^[ ]*#[ ]*define[ ][ ]*/ / 24760t def 24761d 24762:def 24763s/\\$// 24764t bsnl 24765s/["\\]/\\&/g 24766s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24767D["\1"]=" \3"/p 24768s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24769d 24770:bsnl 24771s/["\\]/\\&/g 24772s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24773D["\1"]=" \3\\\\\\n"\\/p 24774t cont 24775s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24776t cont 24777d 24778:cont 24779n 24780s/.\{148\}/&'"$ac_delim"'/g 24781t clear 24782:clear 24783s/\\$// 24784t bsnlc 24785s/["\\]/\\&/g; s/^/"/; s/$/"/p 24786d 24787:bsnlc 24788s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24789b cont 24790' <confdefs.h | sed ' 24791s/'"$ac_delim"'/"\\\ 24792"/g' >>$CONFIG_STATUS || ac_write_fail=1 24793 24794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24795 for (key in D) D_is_set[key] = 1 24796 FS = "" 24797} 24798/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24799 line = \$ 0 24800 split(line, arg, " ") 24801 if (arg[1] == "#") { 24802 defundef = arg[2] 24803 mac1 = arg[3] 24804 } else { 24805 defundef = substr(arg[1], 2) 24806 mac1 = arg[2] 24807 } 24808 split(mac1, mac2, "(") #) 24809 macro = mac2[1] 24810 prefix = substr(line, 1, index(line, defundef) - 1) 24811 if (D_is_set[macro]) { 24812 # Preserve the white space surrounding the "#". 24813 print prefix "define", macro P[macro] D[macro] 24814 next 24815 } else { 24816 # Replace #undef with comments. This is necessary, for example, 24817 # in the case of _POSIX_SOURCE, which is predefined and required 24818 # on some systems where configure will not decide to define it. 24819 if (defundef == "undef") { 24820 print "/*", prefix defundef, macro, "*/" 24821 next 24822 } 24823 } 24824} 24825{ print } 24826_ACAWK 24827_ACEOF 24828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24829 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24830fi # test -n "$CONFIG_HEADERS" 24831 24832 24833eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 24834shift 24835for ac_tag 24836do 24837 case $ac_tag in 24838 :[FHLC]) ac_mode=$ac_tag; continue;; 24839 esac 24840 case $ac_mode$ac_tag in 24841 :[FHL]*:*);; 24842 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24843 :[FH]-) ac_tag=-:-;; 24844 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24845 esac 24846 ac_save_IFS=$IFS 24847 IFS=: 24848 set x $ac_tag 24849 IFS=$ac_save_IFS 24850 shift 24851 ac_file=$1 24852 shift 24853 24854 case $ac_mode in 24855 :L) ac_source=$1;; 24856 :[FH]) 24857 ac_file_inputs= 24858 for ac_f 24859 do 24860 case $ac_f in 24861 -) ac_f="$ac_tmp/stdin";; 24862 *) # Look for the file first in the build tree, then in the source tree 24863 # (if the path is not absolute). The absolute path cannot be DOS-style, 24864 # because $ac_f cannot contain `:'. 24865 test -f "$ac_f" || 24866 case $ac_f in 24867 [\\/$]*) false;; 24868 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24869 esac || 24870 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24871 esac 24872 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24873 as_fn_append ac_file_inputs " '$ac_f'" 24874 done 24875 24876 # Let's still pretend it is `configure' which instantiates (i.e., don't 24877 # use $as_me), people would be surprised to read: 24878 # /* config.h. Generated by config.status. */ 24879 configure_input='Generated from '` 24880 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24881 `' by configure.' 24882 if test x"$ac_file" != x-; then 24883 configure_input="$ac_file. $configure_input" 24884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24885printf "%s\n" "$as_me: creating $ac_file" >&6;} 24886 fi 24887 # Neutralize special characters interpreted by sed in replacement strings. 24888 case $configure_input in #( 24889 *\&* | *\|* | *\\* ) 24890 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 24891 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24892 *) ac_sed_conf_input=$configure_input;; 24893 esac 24894 24895 case $ac_tag in 24896 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24898 esac 24899 ;; 24900 esac 24901 24902 ac_dir=`$as_dirname -- "$ac_file" || 24903$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24904 X"$ac_file" : 'X\(//\)[^/]' \| \ 24905 X"$ac_file" : 'X\(//\)$' \| \ 24906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24907printf "%s\n" X"$ac_file" | 24908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24909 s//\1/ 24910 q 24911 } 24912 /^X\(\/\/\)[^/].*/{ 24913 s//\1/ 24914 q 24915 } 24916 /^X\(\/\/\)$/{ 24917 s//\1/ 24918 q 24919 } 24920 /^X\(\/\).*/{ 24921 s//\1/ 24922 q 24923 } 24924 s/.*/./; q'` 24925 as_dir="$ac_dir"; as_fn_mkdir_p 24926 ac_builddir=. 24927 24928case "$ac_dir" in 24929.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24930*) 24931 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 24932 # A ".." for each directory in $ac_dir_suffix. 24933 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24934 case $ac_top_builddir_sub in 24935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24937 esac ;; 24938esac 24939ac_abs_top_builddir=$ac_pwd 24940ac_abs_builddir=$ac_pwd$ac_dir_suffix 24941# for backward compatibility: 24942ac_top_builddir=$ac_top_build_prefix 24943 24944case $srcdir in 24945 .) # We are building in place. 24946 ac_srcdir=. 24947 ac_top_srcdir=$ac_top_builddir_sub 24948 ac_abs_top_srcdir=$ac_pwd ;; 24949 [\\/]* | ?:[\\/]* ) # Absolute name. 24950 ac_srcdir=$srcdir$ac_dir_suffix; 24951 ac_top_srcdir=$srcdir 24952 ac_abs_top_srcdir=$srcdir ;; 24953 *) # Relative name. 24954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24955 ac_top_srcdir=$ac_top_build_prefix$srcdir 24956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24957esac 24958ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24959 24960 24961 case $ac_mode in 24962 :F) 24963 # 24964 # CONFIG_FILE 24965 # 24966 24967 case $INSTALL in 24968 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24969 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24970 esac 24971 ac_MKDIR_P=$MKDIR_P 24972 case $MKDIR_P in 24973 [\\/$]* | ?:[\\/]* ) ;; 24974 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24975 esac 24976_ACEOF 24977 24978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24979# If the template does not know about datarootdir, expand it. 24980# FIXME: This hack should be removed a few years after 2.60. 24981ac_datarootdir_hack=; ac_datarootdir_seen= 24982ac_sed_dataroot=' 24983/datarootdir/ { 24984 p 24985 q 24986} 24987/@datadir@/p 24988/@docdir@/p 24989/@infodir@/p 24990/@localedir@/p 24991/@mandir@/p' 24992case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24993*datarootdir*) ac_datarootdir_seen=yes;; 24994*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24996printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24997_ACEOF 24998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24999 ac_datarootdir_hack=' 25000 s&@datadir@&$datadir&g 25001 s&@docdir@&$docdir&g 25002 s&@infodir@&$infodir&g 25003 s&@localedir@&$localedir&g 25004 s&@mandir@&$mandir&g 25005 s&\\\${datarootdir}&$datarootdir&g' ;; 25006esac 25007_ACEOF 25008 25009# Neutralize VPATH when `$srcdir' = `.'. 25010# Shell code in configure.ac might set extrasub. 25011# FIXME: do we really want to maintain this feature? 25012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25013ac_sed_extra="$ac_vpsub 25014$extrasub 25015_ACEOF 25016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25017:t 25018/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25019s|@configure_input@|$ac_sed_conf_input|;t t 25020s&@top_builddir@&$ac_top_builddir_sub&;t t 25021s&@top_build_prefix@&$ac_top_build_prefix&;t t 25022s&@srcdir@&$ac_srcdir&;t t 25023s&@abs_srcdir@&$ac_abs_srcdir&;t t 25024s&@top_srcdir@&$ac_top_srcdir&;t t 25025s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25026s&@builddir@&$ac_builddir&;t t 25027s&@abs_builddir@&$ac_abs_builddir&;t t 25028s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25029s&@INSTALL@&$ac_INSTALL&;t t 25030s&@MKDIR_P@&$ac_MKDIR_P&;t t 25031$ac_datarootdir_hack 25032" 25033eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25034 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25035 25036test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25037 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25038 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25039 "$ac_tmp/out"`; test -z "$ac_out"; } && 25040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25041which seems to be undefined. Please make sure it is defined" >&5 25042printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25043which seems to be undefined. Please make sure it is defined" >&2;} 25044 25045 rm -f "$ac_tmp/stdin" 25046 case $ac_file in 25047 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25048 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25049 esac \ 25050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25051 ;; 25052 :H) 25053 # 25054 # CONFIG_HEADER 25055 # 25056 if test x"$ac_file" != x-; then 25057 { 25058 printf "%s\n" "/* $configure_input */" >&1 \ 25059 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25060 } >"$ac_tmp/config.h" \ 25061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25062 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25064printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 25065 else 25066 rm -f "$ac_file" 25067 mv "$ac_tmp/config.h" "$ac_file" \ 25068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25069 fi 25070 else 25071 printf "%s\n" "/* $configure_input */" >&1 \ 25072 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25073 || as_fn_error $? "could not create -" "$LINENO" 5 25074 fi 25075# Compute "$ac_file"'s index in $config_headers. 25076_am_arg="$ac_file" 25077_am_stamp_count=1 25078for _am_header in $config_headers :; do 25079 case $_am_header in 25080 $_am_arg | $_am_arg:* ) 25081 break ;; 25082 * ) 25083 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 25084 esac 25085done 25086echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 25087$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25088 X"$_am_arg" : 'X\(//\)[^/]' \| \ 25089 X"$_am_arg" : 'X\(//\)$' \| \ 25090 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 25091printf "%s\n" X"$_am_arg" | 25092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25093 s//\1/ 25094 q 25095 } 25096 /^X\(\/\/\)[^/].*/{ 25097 s//\1/ 25098 q 25099 } 25100 /^X\(\/\/\)$/{ 25101 s//\1/ 25102 q 25103 } 25104 /^X\(\/\).*/{ 25105 s//\1/ 25106 q 25107 } 25108 s/.*/./; q'`/stamp-h$_am_stamp_count 25109 ;; 25110 :L) 25111 # 25112 # CONFIG_LINK 25113 # 25114 25115 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 25116 : 25117 else 25118 # Prefer the file from the source tree if names are identical. 25119 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 25120 ac_source=$srcdir/$ac_source 25121 fi 25122 25123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 25124printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;} 25125 25126 if test ! -r "$ac_source"; then 25127 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 25128 fi 25129 rm -f "$ac_file" 25130 25131 # Try a relative symlink, then a hard link, then a copy. 25132 case $ac_source in 25133 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 25134 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 25135 esac 25136 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 25137 ln "$ac_source" "$ac_file" 2>/dev/null || 25138 cp -p "$ac_source" "$ac_file" || 25139 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 25140 fi 25141 ;; 25142 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25143printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 25144 ;; 25145 esac 25146 25147 25148 case $ac_file$ac_mode in 25149 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 25150 # Older Autoconf quotes --file arguments for eval, but not when files 25151 # are listed without --file. Let's play safe and only enable the eval 25152 # if we detect the quoting. 25153 # TODO: see whether this extra hack can be removed once we start 25154 # requiring Autoconf 2.70 or later. 25155 case $CONFIG_FILES in #( 25156 *\'*) : 25157 eval set x "$CONFIG_FILES" ;; #( 25158 *) : 25159 set x $CONFIG_FILES ;; #( 25160 *) : 25161 ;; 25162esac 25163 shift 25164 # Used to flag and report bootstrapping failures. 25165 am_rc=0 25166 for am_mf 25167 do 25168 # Strip MF so we end up with the name of the file. 25169 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 25170 # Check whether this is an Automake generated Makefile which includes 25171 # dependency-tracking related rules and includes. 25172 # Grep'ing the whole file directly is not great: AIX grep has a line 25173 # limit of 2048, but all sed's we know have understand at least 4000. 25174 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 25175 || continue 25176 am_dirpart=`$as_dirname -- "$am_mf" || 25177$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25178 X"$am_mf" : 'X\(//\)[^/]' \| \ 25179 X"$am_mf" : 'X\(//\)$' \| \ 25180 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25181printf "%s\n" X"$am_mf" | 25182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25183 s//\1/ 25184 q 25185 } 25186 /^X\(\/\/\)[^/].*/{ 25187 s//\1/ 25188 q 25189 } 25190 /^X\(\/\/\)$/{ 25191 s//\1/ 25192 q 25193 } 25194 /^X\(\/\).*/{ 25195 s//\1/ 25196 q 25197 } 25198 s/.*/./; q'` 25199 am_filepart=`$as_basename -- "$am_mf" || 25200$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 25201 X"$am_mf" : 'X\(//\)$' \| \ 25202 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 25203printf "%s\n" X/"$am_mf" | 25204 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25205 s//\1/ 25206 q 25207 } 25208 /^X\/\(\/\/\)$/{ 25209 s//\1/ 25210 q 25211 } 25212 /^X\/\(\/\).*/{ 25213 s//\1/ 25214 q 25215 } 25216 s/.*/./; q'` 25217 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 25218 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25219 | $MAKE -f - am--depfiles" >&5 25220 (cd "$am_dirpart" \ 25221 && sed -e '/# am--include-marker/d' "$am_filepart" \ 25222 | $MAKE -f - am--depfiles) >&5 2>&5 25223 ac_status=$? 25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25225 (exit $ac_status); } || am_rc=$? 25226 done 25227 if test $am_rc -ne 0; then 25228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25229printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25230as_fn_error $? "Something went wrong bootstrapping makefile fragments 25231 for automatic dependency tracking. If GNU make was not used, consider 25232 re-running the configure script with MAKE=\"gmake\" (or whatever is 25233 necessary). You can also try re-running configure with the 25234 '--disable-dependency-tracking' option to at least be able to build 25235 the package (albeit without support for automatic dependency tracking). 25236See \`config.log' for more details" "$LINENO" 5; } 25237 fi 25238 { am_dirpart=; unset am_dirpart;} 25239 { am_filepart=; unset am_filepart;} 25240 { am_mf=; unset am_mf;} 25241 { am_rc=; unset am_rc;} 25242 rm -f conftest-deps.mk 25243} 25244 ;; 25245 "libtool":C) 25246 25247 # See if we are running on zsh, and set the options that allow our 25248 # commands through without removal of \ escapes. 25249 if test -n "${ZSH_VERSION+set}"; then 25250 setopt NO_GLOB_SUBST 25251 fi 25252 25253 cfgfile=${ofile}T 25254 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 25255 $RM "$cfgfile" 25256 25257 cat <<_LT_EOF >> "$cfgfile" 25258#! $SHELL 25259# Generated automatically by $as_me ($PACKAGE) $VERSION 25260# NOTE: Changes made to this file will be lost: look at ltmain.sh. 25261 25262# Provide generalized library-building support services. 25263# Written by Gordon Matzigkeit, 1996 25264 25265# Copyright (C) 2014 Free Software Foundation, Inc. 25266# This is free software; see the source for copying conditions. There is NO 25267# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 25268 25269# GNU Libtool is free software; you can redistribute it and/or modify 25270# it under the terms of the GNU General Public License as published by 25271# the Free Software Foundation; either version 2 of of the License, or 25272# (at your option) any later version. 25273# 25274# As a special exception to the GNU General Public License, if you 25275# distribute this file as part of a program or library that is built 25276# using GNU Libtool, you may include this file under the same 25277# distribution terms that you use for the rest of that program. 25278# 25279# GNU Libtool is distributed in the hope that it will be useful, but 25280# WITHOUT ANY WARRANTY; without even the implied warranty of 25281# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25282# GNU General Public License for more details. 25283# 25284# You should have received a copy of the GNU General Public License 25285# along with this program. If not, see <http://www.gnu.org/licenses/>. 25286 25287 25288# The names of the tagged configurations supported by this script. 25289available_tags='' 25290 25291# Configured defaults for sys_lib_dlsearch_path munging. 25292: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 25293 25294# ### BEGIN LIBTOOL CONFIG 25295 25296# Which release of libtool.m4 was used? 25297macro_version=$macro_version 25298macro_revision=$macro_revision 25299 25300# Whether or not to build static libraries. 25301build_old_libs=$enable_static 25302 25303# Whether or not to build shared libraries. 25304build_libtool_libs=$enable_shared 25305 25306# What type of objects to build. 25307pic_mode=$pic_mode 25308 25309# Whether or not to optimize for fast installation. 25310fast_install=$enable_fast_install 25311 25312# Shared archive member basename,for filename based shared library versioning on AIX. 25313shared_archive_member_spec=$shared_archive_member_spec 25314 25315# Shell to use when invoking shell scripts. 25316SHELL=$lt_SHELL 25317 25318# An echo program that protects backslashes. 25319ECHO=$lt_ECHO 25320 25321# The PATH separator for the build system. 25322PATH_SEPARATOR=$lt_PATH_SEPARATOR 25323 25324# The host system. 25325host_alias=$host_alias 25326host=$host 25327host_os=$host_os 25328 25329# The build system. 25330build_alias=$build_alias 25331build=$build 25332build_os=$build_os 25333 25334# A sed program that does not truncate output. 25335SED=$lt_SED 25336 25337# Sed that helps us avoid accidentally triggering echo(1) options like -n. 25338Xsed="\$SED -e 1s/^X//" 25339 25340# A grep program that handles long lines. 25341GREP=$lt_GREP 25342 25343# An ERE matcher. 25344EGREP=$lt_EGREP 25345 25346# A literal string matcher. 25347FGREP=$lt_FGREP 25348 25349# A BSD- or MS-compatible name lister. 25350NM=$lt_NM 25351 25352# Whether we need soft or hard links. 25353LN_S=$lt_LN_S 25354 25355# What is the maximum length of a command? 25356max_cmd_len=$max_cmd_len 25357 25358# Object file suffix (normally "o"). 25359objext=$ac_objext 25360 25361# Executable file suffix (normally ""). 25362exeext=$exeext 25363 25364# whether the shell understands "unset". 25365lt_unset=$lt_unset 25366 25367# turn spaces into newlines. 25368SP2NL=$lt_lt_SP2NL 25369 25370# turn newlines into spaces. 25371NL2SP=$lt_lt_NL2SP 25372 25373# convert \$build file names to \$host format. 25374to_host_file_cmd=$lt_cv_to_host_file_cmd 25375 25376# convert \$build files to toolchain format. 25377to_tool_file_cmd=$lt_cv_to_tool_file_cmd 25378 25379# An object symbol dumper. 25380OBJDUMP=$lt_OBJDUMP 25381 25382# Method to check whether dependent libraries are shared objects. 25383deplibs_check_method=$lt_deplibs_check_method 25384 25385# Command to use when deplibs_check_method = "file_magic". 25386file_magic_cmd=$lt_file_magic_cmd 25387 25388# How to find potential files when deplibs_check_method = "file_magic". 25389file_magic_glob=$lt_file_magic_glob 25390 25391# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 25392want_nocaseglob=$lt_want_nocaseglob 25393 25394# DLL creation program. 25395DLLTOOL=$lt_DLLTOOL 25396 25397# Command to associate shared and link libraries. 25398sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 25399 25400# The archiver. 25401AR=$lt_AR 25402 25403# Flags to create an archive. 25404AR_FLAGS=$lt_AR_FLAGS 25405 25406# How to feed a file listing to the archiver. 25407archiver_list_spec=$lt_archiver_list_spec 25408 25409# A symbol stripping program. 25410STRIP=$lt_STRIP 25411 25412# Commands used to install an old-style archive. 25413RANLIB=$lt_RANLIB 25414old_postinstall_cmds=$lt_old_postinstall_cmds 25415old_postuninstall_cmds=$lt_old_postuninstall_cmds 25416 25417# Whether to use a lock for old archive extraction. 25418lock_old_archive_extraction=$lock_old_archive_extraction 25419 25420# A C compiler. 25421LTCC=$lt_CC 25422 25423# LTCC compiler flags. 25424LTCFLAGS=$lt_CFLAGS 25425 25426# Take the output of nm and produce a listing of raw symbols and C names. 25427global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 25428 25429# Transform the output of nm in a proper C declaration. 25430global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 25431 25432# Transform the output of nm into a list of symbols to manually relocate. 25433global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 25434 25435# Transform the output of nm in a C name address pair. 25436global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 25437 25438# Transform the output of nm in a C name address pair when lib prefix is needed. 25439global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 25440 25441# The name lister interface. 25442nm_interface=$lt_lt_cv_nm_interface 25443 25444# Specify filename containing input files for \$NM. 25445nm_file_list_spec=$lt_nm_file_list_spec 25446 25447# The root where to search for dependent libraries,and where our libraries should be installed. 25448lt_sysroot=$lt_sysroot 25449 25450# Command to truncate a binary pipe. 25451lt_truncate_bin=$lt_lt_cv_truncate_bin 25452 25453# The name of the directory that contains temporary libtool files. 25454objdir=$objdir 25455 25456# Used to examine libraries when file_magic_cmd begins with "file". 25457MAGIC_CMD=$MAGIC_CMD 25458 25459# Must we lock files when doing compilation? 25460need_locks=$lt_need_locks 25461 25462# Manifest tool. 25463MANIFEST_TOOL=$lt_MANIFEST_TOOL 25464 25465# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 25466DSYMUTIL=$lt_DSYMUTIL 25467 25468# Tool to change global to local symbols on Mac OS X. 25469NMEDIT=$lt_NMEDIT 25470 25471# Tool to manipulate fat objects and archives on Mac OS X. 25472LIPO=$lt_LIPO 25473 25474# ldd/readelf like tool for Mach-O binaries on Mac OS X. 25475OTOOL=$lt_OTOOL 25476 25477# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 25478OTOOL64=$lt_OTOOL64 25479 25480# Old archive suffix (normally "a"). 25481libext=$libext 25482 25483# Shared library suffix (normally ".so"). 25484shrext_cmds=$lt_shrext_cmds 25485 25486# The commands to extract the exported symbol list from a shared archive. 25487extract_expsyms_cmds=$lt_extract_expsyms_cmds 25488 25489# Variables whose values should be saved in libtool wrapper scripts and 25490# restored at link time. 25491variables_saved_for_relink=$lt_variables_saved_for_relink 25492 25493# Do we need the "lib" prefix for modules? 25494need_lib_prefix=$need_lib_prefix 25495 25496# Do we need a version for libraries? 25497need_version=$need_version 25498 25499# Library versioning type. 25500version_type=$version_type 25501 25502# Shared library runtime path variable. 25503runpath_var=$runpath_var 25504 25505# Shared library path variable. 25506shlibpath_var=$shlibpath_var 25507 25508# Is shlibpath searched before the hard-coded library search path? 25509shlibpath_overrides_runpath=$shlibpath_overrides_runpath 25510 25511# Format of library name prefix. 25512libname_spec=$lt_libname_spec 25513 25514# List of archive names. First name is the real one, the rest are links. 25515# The last name is the one that the linker finds with -lNAME 25516library_names_spec=$lt_library_names_spec 25517 25518# The coded name of the library, if different from the real name. 25519soname_spec=$lt_soname_spec 25520 25521# Permission mode override for installation of shared libraries. 25522install_override_mode=$lt_install_override_mode 25523 25524# Command to use after installation of a shared archive. 25525postinstall_cmds=$lt_postinstall_cmds 25526 25527# Command to use after uninstallation of a shared archive. 25528postuninstall_cmds=$lt_postuninstall_cmds 25529 25530# Commands used to finish a libtool library installation in a directory. 25531finish_cmds=$lt_finish_cmds 25532 25533# As "finish_cmds", except a single script fragment to be evaled but 25534# not shown. 25535finish_eval=$lt_finish_eval 25536 25537# Whether we should hardcode library paths into libraries. 25538hardcode_into_libs=$hardcode_into_libs 25539 25540# Compile-time system search path for libraries. 25541sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 25542 25543# Detected run-time system search path for libraries. 25544sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 25545 25546# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 25547configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 25548 25549# Whether dlopen is supported. 25550dlopen_support=$enable_dlopen 25551 25552# Whether dlopen of programs is supported. 25553dlopen_self=$enable_dlopen_self 25554 25555# Whether dlopen of statically linked programs is supported. 25556dlopen_self_static=$enable_dlopen_self_static 25557 25558# Commands to strip libraries. 25559old_striplib=$lt_old_striplib 25560striplib=$lt_striplib 25561 25562 25563# The linker used to build libraries. 25564LD=$lt_LD 25565 25566# How to create reloadable object files. 25567reload_flag=$lt_reload_flag 25568reload_cmds=$lt_reload_cmds 25569 25570# Commands used to build an old-style archive. 25571old_archive_cmds=$lt_old_archive_cmds 25572 25573# A language specific compiler. 25574CC=$lt_compiler 25575 25576# Is the compiler the GNU compiler? 25577with_gcc=$GCC 25578 25579# Compiler flag to turn off builtin functions. 25580no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 25581 25582# Additional compiler flags for building library objects. 25583pic_flag=$lt_lt_prog_compiler_pic 25584 25585# How to pass a linker flag through the compiler. 25586wl=$lt_lt_prog_compiler_wl 25587 25588# Compiler flag to prevent dynamic linking. 25589link_static_flag=$lt_lt_prog_compiler_static 25590 25591# Does compiler simultaneously support -c and -o options? 25592compiler_c_o=$lt_lt_cv_prog_compiler_c_o 25593 25594# Whether or not to add -lc for building shared libraries. 25595build_libtool_need_lc=$archive_cmds_need_lc 25596 25597# Whether or not to disallow shared libs when runtime libs are static. 25598allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 25599 25600# Compiler flag to allow reflexive dlopens. 25601export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 25602 25603# Compiler flag to generate shared objects directly from archives. 25604whole_archive_flag_spec=$lt_whole_archive_flag_spec 25605 25606# Whether the compiler copes with passing no objects directly. 25607compiler_needs_object=$lt_compiler_needs_object 25608 25609# Create an old-style archive from a shared archive. 25610old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 25611 25612# Create a temporary old-style archive to link instead of a shared archive. 25613old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 25614 25615# Commands used to build a shared archive. 25616archive_cmds=$lt_archive_cmds 25617archive_expsym_cmds=$lt_archive_expsym_cmds 25618 25619# Commands used to build a loadable module if different from building 25620# a shared archive. 25621module_cmds=$lt_module_cmds 25622module_expsym_cmds=$lt_module_expsym_cmds 25623 25624# Whether we are building with GNU ld or not. 25625with_gnu_ld=$lt_with_gnu_ld 25626 25627# Flag that allows shared libraries with undefined symbols to be built. 25628allow_undefined_flag=$lt_allow_undefined_flag 25629 25630# Flag that enforces no undefined symbols. 25631no_undefined_flag=$lt_no_undefined_flag 25632 25633# Flag to hardcode \$libdir into a binary during linking. 25634# This must work even if \$libdir does not exist 25635hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25636 25637# Whether we need a single "-rpath" flag with a separated argument. 25638hardcode_libdir_separator=$lt_hardcode_libdir_separator 25639 25640# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25641# DIR into the resulting binary. 25642hardcode_direct=$hardcode_direct 25643 25644# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25645# DIR into the resulting binary and the resulting library dependency is 25646# "absolute",i.e impossible to change by setting \$shlibpath_var if the 25647# library is relocated. 25648hardcode_direct_absolute=$hardcode_direct_absolute 25649 25650# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25651# into the resulting binary. 25652hardcode_minus_L=$hardcode_minus_L 25653 25654# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25655# into the resulting binary. 25656hardcode_shlibpath_var=$hardcode_shlibpath_var 25657 25658# Set to "yes" if building a shared library automatically hardcodes DIR 25659# into the library and all subsequent libraries and executables linked 25660# against it. 25661hardcode_automatic=$hardcode_automatic 25662 25663# Set to yes if linker adds runtime paths of dependent libraries 25664# to runtime path list. 25665inherit_rpath=$inherit_rpath 25666 25667# Whether libtool must link a program against all its dependency libraries. 25668link_all_deplibs=$link_all_deplibs 25669 25670# Set to "yes" if exported symbols are required. 25671always_export_symbols=$always_export_symbols 25672 25673# The commands to list exported symbols. 25674export_symbols_cmds=$lt_export_symbols_cmds 25675 25676# Symbols that should not be listed in the preloaded symbols. 25677exclude_expsyms=$lt_exclude_expsyms 25678 25679# Symbols that must always be exported. 25680include_expsyms=$lt_include_expsyms 25681 25682# Commands necessary for linking programs (against libraries) with templates. 25683prelink_cmds=$lt_prelink_cmds 25684 25685# Commands necessary for finishing linking programs. 25686postlink_cmds=$lt_postlink_cmds 25687 25688# Specify filename containing input files. 25689file_list_spec=$lt_file_list_spec 25690 25691# How to hardcode a shared library path into an executable. 25692hardcode_action=$hardcode_action 25693 25694# ### END LIBTOOL CONFIG 25695 25696_LT_EOF 25697 25698 cat <<'_LT_EOF' >> "$cfgfile" 25699 25700# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 25701 25702# func_munge_path_list VARIABLE PATH 25703# ----------------------------------- 25704# VARIABLE is name of variable containing _space_ separated list of 25705# directories to be munged by the contents of PATH, which is string 25706# having a format: 25707# "DIR[:DIR]:" 25708# string "DIR[ DIR]" will be prepended to VARIABLE 25709# ":DIR[:DIR]" 25710# string "DIR[ DIR]" will be appended to VARIABLE 25711# "DIRP[:DIRP]::[DIRA:]DIRA" 25712# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 25713# "DIRA[ DIRA]" will be appended to VARIABLE 25714# "DIR[:DIR]" 25715# VARIABLE will be replaced by "DIR[ DIR]" 25716func_munge_path_list () 25717{ 25718 case x$2 in 25719 x) 25720 ;; 25721 *:) 25722 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25723 ;; 25724 x:*) 25725 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25726 ;; 25727 *::*) 25728 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 25729 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 25730 ;; 25731 *) 25732 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 25733 ;; 25734 esac 25735} 25736 25737 25738# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25739func_cc_basename () 25740{ 25741 for cc_temp in $*""; do 25742 case $cc_temp in 25743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 25744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 25745 \-*) ;; 25746 *) break;; 25747 esac 25748 done 25749 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 25750} 25751 25752 25753# ### END FUNCTIONS SHARED WITH CONFIGURE 25754 25755_LT_EOF 25756 25757 case $host_os in 25758 aix3*) 25759 cat <<\_LT_EOF >> "$cfgfile" 25760# AIX sometimes has problems with the GCC collect2 program. For some 25761# reason, if we set the COLLECT_NAMES environment variable, the problems 25762# vanish in a puff of smoke. 25763if test set != "${COLLECT_NAMES+set}"; then 25764 COLLECT_NAMES= 25765 export COLLECT_NAMES 25766fi 25767_LT_EOF 25768 ;; 25769 esac 25770 25771 25772 25773ltmain=$ac_aux_dir/ltmain.sh 25774 25775 25776 # We use sed instead of cat because bash on DJGPP gets confused if 25777 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25778 # text mode, it properly converts lines to CR/LF. This bash problem 25779 # is reportedly fixed, but why not run on old versions too? 25780 sed '$q' "$ltmain" >> "$cfgfile" \ 25781 || (rm -f "$cfgfile"; exit 1) 25782 25783 mv -f "$cfgfile" "$ofile" || 25784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25785 chmod +x "$ofile" 25786 25787 ;; 25788 "syslog-ng-config.h":C) ac_prefix_conf_OUT=`echo syslog-ng-config.h` 25789ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` 25790ac_prefix_conf_PKG=`echo "SYSLOG_NG"` 25791ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` 25792ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` 25793ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` 25794if test ".$ac_prefix_conf_INP" = "."; then 25795 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue 25796 case "$ac_file" in 25797 *.h) ac_prefix_conf_INP=$ac_file ;; 25798 *) 25799 esac 25800 test ".$ac_prefix_conf_INP" != "." && break 25801 done 25802fi 25803if test ".$ac_prefix_conf_INP" = "."; then 25804 case "$ac_prefix_conf_OUT" in 25805 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` 25806 ;; 25807 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` 25808 ;; 25809 *) ac_prefix_conf_INP=config.h 25810 ;; 25811 esac 25812fi 25813if test -z "$ac_prefix_conf_PKG" ; then 25814 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 25815else 25816 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then 25817 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" 25818 fi fi 25819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 25820printf "%s\n" "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} 25821 if test -f $ac_prefix_conf_INP ; then 25822 printf "%s\n" "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix 25823 printf "%s\n" "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix 25824 printf "%s\n" "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix 25825 printf "%s\n" "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix 25826 printf "%s\n" "#endif/" >> conftest.prefix 25827 printf "%s\n" "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix 25828 printf "%s\n" "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix 25829 printf "%s\n" "#endif/" >> conftest.prefix 25830 # now executing _script on _DEF input to create _OUT output file 25831 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h 25832 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h 25833 echo ' ' >>$tmp/pconfig.h 25834 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h 25835 25836 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h 25837 echo ' ' >>$tmp/pconfig.h 25838 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h 25839 echo "#endif" >>$tmp/pconfig.h 25840 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then 25841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 25842printf "%s\n" "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} 25843 else 25844 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || 25845$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25846 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ 25847 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ 25848 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || 25849printf "%s\n" X"$ac_prefix_conf_OUT" | 25850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25851 s//\1/ 25852 q 25853 } 25854 /^X\(\/\/\)[^/].*/{ 25855 s//\1/ 25856 q 25857 } 25858 /^X\(\/\/\)$/{ 25859 s//\1/ 25860 q 25861 } 25862 /^X\(\/\).*/{ 25863 s//\1/ 25864 q 25865 } 25866 s/.*/./; q'` 25867 as_dir="$ac_dir"; as_fn_mkdir_p 25868 rm -f "$ac_prefix_conf_OUT" 25869 mv $tmp/pconfig.h "$ac_prefix_conf_OUT" 25870 fi 25871 else 25872 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 25873 fi 25874 rm -f conftest.* 25875fi 25876 ;; 25877 25878 esac 25879done # for ac_tag 25880 25881 25882as_fn_exit 0 25883_ACEOF 25884ac_clean_files=$ac_clean_files_save 25885 25886test $ac_write_fail = 0 || 25887 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25888 25889 25890# configure is writing to config.log, and then calls config.status. 25891# config.status does its own redirection, appending to config.log. 25892# Unfortunately, on DOS this fails, as config.log is still kept open 25893# by configure, so config.status won't be able to write to it; its 25894# output is simply discarded. So we exec the FD to /dev/null, 25895# effectively closing config.log, so it can be properly (re)opened and 25896# appended to by config.status. When coming back to configure, we 25897# need to make the FD available again. 25898if test "$no_create" != yes; then 25899 ac_cs_success=: 25900 ac_config_status_args= 25901 test "$silent" = yes && 25902 ac_config_status_args="$ac_config_status_args --quiet" 25903 exec 5>/dev/null 25904 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25905 exec 5>>config.log 25906 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25907 # would make configure fail if this is the last instruction. 25908 $ac_cs_success || as_fn_exit 1 25909fi 25910 25911# 25912# CONFIG_SUBDIRS section. 25913# 25914if test "$no_recursion" != yes; then 25915 25916 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 25917 # so they do not pile up. 25918 ac_sub_configure_args= 25919 ac_prev= 25920 eval "set x $ac_configure_args" 25921 shift 25922 for ac_arg 25923 do 25924 if test -n "$ac_prev"; then 25925 ac_prev= 25926 continue 25927 fi 25928 case $ac_arg in 25929 -cache-file | --cache-file | --cache-fil | --cache-fi \ 25930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 25931 ac_prev=cache_file ;; 25932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 25933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 25934 | --c=*) 25935 ;; 25936 --config-cache | -C) 25937 ;; 25938 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 25939 ac_prev=srcdir ;; 25940 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 25941 ;; 25942 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 25943 ac_prev=prefix ;; 25944 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 25945 ;; 25946 --disable-option-checking) 25947 ;; 25948 *) 25949 case $ac_arg in 25950 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 25951 esac 25952 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 25953 esac 25954 done 25955 25956 # Always prepend --prefix to ensure using the same prefix 25957 # in subdir configurations. 25958 ac_arg="--prefix=$prefix" 25959 case $ac_arg in 25960 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 25961 esac 25962 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 25963 25964 # Pass --silent 25965 if test "$silent" = yes; then 25966 ac_sub_configure_args="--silent $ac_sub_configure_args" 25967 fi 25968 25969 # Always prepend --disable-option-checking to silence warnings, since 25970 # different subdirs can have different --enable and --with options. 25971 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 25972 25973 ac_popdir=`pwd` 25974 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 25975 25976 # Do not complain, so a configure script can configure whichever 25977 # parts of a large source tree are present. 25978 test -d "$srcdir/$ac_dir" || continue 25979 25980 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 25981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 25982 printf "%s\n" "$ac_msg" >&6 25983 as_dir="$ac_dir"; as_fn_mkdir_p 25984 ac_builddir=. 25985 25986case "$ac_dir" in 25987.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25988*) 25989 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 25990 # A ".." for each directory in $ac_dir_suffix. 25991 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25992 case $ac_top_builddir_sub in 25993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25995 esac ;; 25996esac 25997ac_abs_top_builddir=$ac_pwd 25998ac_abs_builddir=$ac_pwd$ac_dir_suffix 25999# for backward compatibility: 26000ac_top_builddir=$ac_top_build_prefix 26001 26002case $srcdir in 26003 .) # We are building in place. 26004 ac_srcdir=. 26005 ac_top_srcdir=$ac_top_builddir_sub 26006 ac_abs_top_srcdir=$ac_pwd ;; 26007 [\\/]* | ?:[\\/]* ) # Absolute name. 26008 ac_srcdir=$srcdir$ac_dir_suffix; 26009 ac_top_srcdir=$srcdir 26010 ac_abs_top_srcdir=$srcdir ;; 26011 *) # Relative name. 26012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26013 ac_top_srcdir=$ac_top_build_prefix$srcdir 26014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26015esac 26016ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26017 26018 26019 cd "$ac_dir" 26020 26021 # Check for configure.gnu first; this name is used for a wrapper for 26022 # Metaconfig's "Configure" on case-insensitive file systems. 26023 if test -f "$ac_srcdir/configure.gnu"; then 26024 ac_sub_configure=$ac_srcdir/configure.gnu 26025 elif test -f "$ac_srcdir/configure"; then 26026 ac_sub_configure=$ac_srcdir/configure 26027 else 26028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 26029printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 26030 ac_sub_configure= 26031 fi 26032 26033 # The recursion is here. 26034 if test -n "$ac_sub_configure"; then 26035 # Make the cache file name correct relative to the subdirectory. 26036 case $cache_file in 26037 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 26038 *) # Relative name. 26039 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 26040 esac 26041 26042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 26043printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 26044 # The eval makes quoting arguments work. 26045 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 26046 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 26047 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 26048 fi 26049 26050 cd "$ac_popdir" 26051 done 26052fi 26053if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 26054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 26055printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 26056fi 26057 26058 26059echo 26060echo "syslog-ng Open Source Edition $PACKAGE_VERSION configured" 26061echo " Edition settings:" 26062echo " Release type : $RELEASE_TYPE" 26063echo " Pretty version : $BROCHURE_VERSION" 26064echo " Combined vers. : $COMBINED_VERSION" 26065echo " Package name : $PACKAGE_NAME" 26066echo " Compiler options:" 26067echo " compiler : $CC" 26068echo " compiler options : $CFLAGS $CPPFLAGS" 26069echo " linker flags : $LDFLAGS $LIBS" 26070echo " prefix : $prefix" 26071echo " linking mode : $linking_mode" 26072echo " embedded crypto : ${with_embedded_crypto:=no}" 26073echo " __thread keyword : ${ac_cv_have_tls:=no}" 26074echo " Test dependencies:" 26075echo " Criterion : ${with_criterion:=no}" 26076echo " Unit tests : ${enable_tests:=no}" 26077echo " Submodules:" 26078echo " ivykis : $with_ivykis" 26079echo " jsonc : $with_jsonc" 26080echo " Features:" 26081echo " Forced server mode : ${enable_forced_server_mode:=yes}" 26082echo " Debug symbols : ${enable_debug:=no}" 26083echo " GCC profiling : ${enable_gprof:=no}" 26084echo " Memtrace : ${enable_memtrace:=no}" 26085echo " IPV6 support : ${enable_ipv6:=no}" 26086echo " spoof-source support : ${enable_spoof_source:=no}" 26087echo " tcp-wrapper support : ${enable_tcp_wrapper:=no}" 26088echo " Linux capability support : ${has_linux_caps:=no}" 26089echo " Env wrapper support : ${enable_env_wrapper:=no}" 26090echo " systemd support : ${enable_systemd:=no} (unit dir: ${systemdsystemunitdir:=none})" 26091echo " systemd-journal support : ${with_systemd_journal:=no}" 26092echo " Build options:" 26093echo " Generate manual pages : ${enable_manpages:=no}" 26094echo " Install manual pages : ${enable_manpages_install:=no}" 26095echo " Modules:" 26096echo " Module search path : ${module_path}" 26097echo " Sun STREAMS support (module): ${enable_sun_streams:=no}" 26098echo " OpenBSD syslog (module) : ${enable_openbsd_system_source:=no}" 26099echo " SQL support (module) : ${enable_sql:=no}" 26100echo " PACCT module (EXPERIMENTAL) : ${enable_pacct:=no}" 26101echo " MongoDB destination (module): ${enable_mongodb:=no}" 26102echo " JSON support (module) : ${enable_json:=no}" 26103echo " SMTP support (module) : ${enable_smtp:=no}" 26104echo " HTTP support (module) : ${enable_http:=no}" 26105echo " AMQP destination (module) : ${enable_amqp:=no}" 26106echo " STOMP destination (module) : ${enable_stomp:=no}" 26107echo " MQTT (module) : ${enable_mqtt:=no}" 26108echo " GEOIP2 support (module) : ${enable_geoip2:=no}" 26109echo " Redis support (module) : ${enable_redis:=no}" 26110echo " Kafka support (module) : ${enable_kafka:=no}" 26111echo " Riemann destination (module): ${enable_riemann:=no}, microseconds: ${riemann_micros:=no}" 26112echo " python : ${enable_python:=no} (pkg-config package: ${with_python:=none})" 26113echo " java : ${enable_java:=no}" 26114echo " java modules : ${enable_java_modules:=no}" 26115echo " afsnmp module : ${enable_afsnmp:=no}" 26116echo " native bindings : ${enable_native:=no}" 26117 26118