1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for pmacct 1.7.5-git. 4# 5# Report bugs to <paolo@pmacct.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and paolo@pmacct.net 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='pmacct' 592PACKAGE_TARNAME='pmacct' 593PACKAGE_VERSION='1.7.5-git' 594PACKAGE_STRING='pmacct 1.7.5-git' 595PACKAGE_BUGREPORT='paolo@pmacct.net' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_default_prefix=/usr/local 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639USING_ST_BINS_FALSE 640USING_ST_BINS_TRUE 641USING_BMP_BINS_FALSE 642USING_BMP_BINS_TRUE 643USING_BGP_BINS_FALSE 644USING_BGP_BINS_TRUE 645USING_TRAFFIC_BINS_FALSE 646USING_TRAFFIC_BINS_TRUE 647WITH_NFLOG_FALSE 648WITH_NFLOG_TRUE 649WITH_NDPI_FALSE 650WITH_NDPI_TRUE 651WITH_SERDES_FALSE 652WITH_SERDES_TRUE 653WITH_AVRO_FALSE 654WITH_AVRO_TRUE 655WITH_JANSSON_FALSE 656WITH_JANSSON_TRUE 657USING_SQL_FALSE 658USING_SQL_TRUE 659WITH_REDIS_FALSE 660WITH_REDIS_TRUE 661WITH_KAFKA_FALSE 662WITH_KAFKA_TRUE 663WITH_ZMQ_FALSE 664WITH_ZMQ_TRUE 665WITH_RABBITMQ_FALSE 666WITH_RABBITMQ_TRUE 667WITH_SQLITE3_FALSE 668WITH_SQLITE3_TRUE 669WITH_MONGODB_FALSE 670WITH_MONGODB_TRUE 671WITH_PGSQL_FALSE 672WITH_PGSQL_TRUE 673WITH_MYSQL_FALSE 674WITH_MYSQL_TRUE 675PMACCT_CFLAGS 676NFLOG_LIBS 677NFLOG_CFLAGS 678NDPI_LIBS 679NDPI_CFLAGS 680SERDES_LIBS 681SERDES_CFLAGS 682AVRO_LIBS 683AVRO_CFLAGS 684JANSSON_LIBS 685JANSSON_CFLAGS 686GEOIPV2_LIBS 687GEOIPV2_CFLAGS 688GEOIP_LIBS 689GEOIP_CFLAGS 690REDIS_LIBS 691REDIS_CFLAGS 692KAFKA_LIBS 693KAFKA_CFLAGS 694ZMQ_LIBS 695ZMQ_CFLAGS 696RABBITMQ_LIBS 697RABBITMQ_CFLAGS 698SQLITE3_LIBS 699SQLITE3_CFLAGS 700MONGODB_LIBS 701MONGODB_CFLAGS 702PGSQL_LIBS 703PGSQL_CFLAGS 704MYSQL_LIBS 705MYSQL_CFLAGS 706MYSQL_VERSION 707MYSQL_CONFIG 708MAKE 709PKG_CONFIG_LIBDIR 710PKG_CONFIG_PATH 711PKG_CONFIG 712CPP 713LT_SYS_LIBRARY_PATH 714OTOOL64 715OTOOL 716LIPO 717NMEDIT 718DSYMUTIL 719MANIFEST_TOOL 720RANLIB 721ac_ct_AR 722AR 723DLLTOOL 724OBJDUMP 725LN_S 726NM 727ac_ct_DUMPBIN 728DUMPBIN 729LD 730FGREP 731EGREP 732GREP 733SED 734am__fastdepCC_FALSE 735am__fastdepCC_TRUE 736CCDEPMODE 737am__nodep 738AMDEPBACKSLASH 739AMDEP_FALSE 740AMDEP_TRUE 741am__include 742DEPDIR 743OBJEXT 744EXEEXT 745ac_ct_CC 746CPPFLAGS 747LDFLAGS 748CFLAGS 749CC 750host_os 751host_vendor 752host_cpu 753host 754build_os 755build_vendor 756build_cpu 757build 758LIBTOOL 759AM_BACKSLASH 760AM_DEFAULT_VERBOSITY 761AM_DEFAULT_V 762AM_V 763am__untar 764am__tar 765AMTAR 766am__leading_dot 767SET_MAKE 768AWK 769mkdir_p 770MKDIR_P 771INSTALL_STRIP_PROGRAM 772STRIP 773install_sh 774MAKEINFO 775AUTOHEADER 776AUTOMAKE 777AUTOCONF 778ACLOCAL 779VERSION 780PACKAGE 781CYGPATH_W 782am__isrc 783INSTALL_DATA 784INSTALL_SCRIPT 785INSTALL_PROGRAM 786target_alias 787host_alias 788build_alias 789LIBS 790ECHO_T 791ECHO_N 792ECHO_C 793DEFS 794mandir 795localedir 796libdir 797psdir 798pdfdir 799dvidir 800htmldir 801infodir 802docdir 803oldincludedir 804includedir 805runstatedir 806localstatedir 807sharedstatedir 808sysconfdir 809datadir 810datarootdir 811libexecdir 812sbindir 813bindir 814program_transform_name 815prefix 816exec_prefix 817PACKAGE_URL 818PACKAGE_BUGREPORT 819PACKAGE_STRING 820PACKAGE_VERSION 821PACKAGE_TARNAME 822PACKAGE_NAME 823PATH_SEPARATOR 824SHELL 825am__quote' 826ac_subst_files='' 827ac_user_opts=' 828enable_option_checking 829enable_silent_rules 830enable_shared 831enable_static 832with_pic 833enable_fast_install 834with_aix_soname 835enable_dependency_tracking 836with_gnu_ld 837with_sysroot 838enable_libtool_lock 839enable_so 840enable_l2 841enable_plabel 842with_pcap_includes 843with_pcap_libs 844enable_mysql 845enable_pgsql 846enable_mongodb 847enable_sqlite3 848enable_rabbitmq 849enable_zmq 850enable_kafka 851enable_redis 852enable_geoip 853enable_geoipv2 854enable_jansson 855enable_avro 856enable_serdes 857with_ndpi_static_lib 858enable_ndpi 859enable_nflog 860enable_traffic_bins 861enable_bgp_bins 862enable_bmp_bins 863enable_st_bins 864enable_debug 865' 866 ac_precious_vars='build_alias 867host_alias 868target_alias 869CC 870CFLAGS 871LDFLAGS 872LIBS 873CPPFLAGS 874LT_SYS_LIBRARY_PATH 875CPP 876PKG_CONFIG 877PKG_CONFIG_PATH 878PKG_CONFIG_LIBDIR 879PGSQL_CFLAGS 880PGSQL_LIBS 881MONGODB_CFLAGS 882MONGODB_LIBS 883SQLITE3_CFLAGS 884SQLITE3_LIBS 885RABBITMQ_CFLAGS 886RABBITMQ_LIBS 887ZMQ_CFLAGS 888ZMQ_LIBS 889KAFKA_CFLAGS 890KAFKA_LIBS 891REDIS_CFLAGS 892REDIS_LIBS 893GEOIP_CFLAGS 894GEOIP_LIBS 895GEOIPV2_CFLAGS 896GEOIPV2_LIBS 897JANSSON_CFLAGS 898JANSSON_LIBS 899AVRO_CFLAGS 900AVRO_LIBS 901NDPI_CFLAGS 902NDPI_LIBS 903NFLOG_CFLAGS 904NFLOG_LIBS' 905 906 907# Initialize some variables set by options. 908ac_init_help= 909ac_init_version=false 910ac_unrecognized_opts= 911ac_unrecognized_sep= 912# The variables have the same names as the options, with 913# dashes changed to underlines. 914cache_file=/dev/null 915exec_prefix=NONE 916no_create= 917no_recursion= 918prefix=NONE 919program_prefix=NONE 920program_suffix=NONE 921program_transform_name=s,x,x, 922silent= 923site= 924srcdir= 925verbose= 926x_includes=NONE 927x_libraries=NONE 928 929# Installation directory options. 930# These are left unexpanded so users can "make install exec_prefix=/foo" 931# and all the variables that are supposed to be based on exec_prefix 932# by default will actually change. 933# Use braces instead of parens because sh, perl, etc. also accept them. 934# (The list follows the same order as the GNU Coding Standards.) 935bindir='${exec_prefix}/bin' 936sbindir='${exec_prefix}/sbin' 937libexecdir='${exec_prefix}/libexec' 938datarootdir='${prefix}/share' 939datadir='${datarootdir}' 940sysconfdir='${prefix}/etc' 941sharedstatedir='${prefix}/com' 942localstatedir='${prefix}/var' 943runstatedir='${localstatedir}/run' 944includedir='${prefix}/include' 945oldincludedir='/usr/include' 946docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 947infodir='${datarootdir}/info' 948htmldir='${docdir}' 949dvidir='${docdir}' 950pdfdir='${docdir}' 951psdir='${docdir}' 952libdir='${exec_prefix}/lib' 953localedir='${datarootdir}/locale' 954mandir='${datarootdir}/man' 955 956ac_prev= 957ac_dashdash= 958for ac_option 959do 960 # If the previous option needs an argument, assign it. 961 if test -n "$ac_prev"; then 962 eval $ac_prev=\$ac_option 963 ac_prev= 964 continue 965 fi 966 967 case $ac_option in 968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 969 *=) ac_optarg= ;; 970 *) ac_optarg=yes ;; 971 esac 972 973 # Accept the important Cygnus configure options, so we can diagnose typos. 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1015 as_fn_error $? "invalid feature name: $ac_useropt" 1016 ac_useropt_orig=$ac_useropt 1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1018 case $ac_user_opts in 1019 *" 1020"enable_$ac_useropt" 1021"*) ;; 1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1023 ac_unrecognized_sep=', ';; 1024 esac 1025 eval enable_$ac_useropt=no ;; 1026 1027 -docdir | --docdir | --docdi | --doc | --do) 1028 ac_prev=docdir ;; 1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1030 docdir=$ac_optarg ;; 1031 1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1033 ac_prev=dvidir ;; 1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1035 dvidir=$ac_optarg ;; 1036 1037 -enable-* | --enable-*) 1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1039 # Reject names that are not valid shell variable names. 1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1041 as_fn_error $? "invalid feature name: $ac_useropt" 1042 ac_useropt_orig=$ac_useropt 1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1044 case $ac_user_opts in 1045 *" 1046"enable_$ac_useropt" 1047"*) ;; 1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1049 ac_unrecognized_sep=', ';; 1050 esac 1051 eval enable_$ac_useropt=\$ac_optarg ;; 1052 1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1055 | --exec | --exe | --ex) 1056 ac_prev=exec_prefix ;; 1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1059 | --exec=* | --exe=* | --ex=*) 1060 exec_prefix=$ac_optarg ;; 1061 1062 -gas | --gas | --ga | --g) 1063 # Obsolete; use --with-gas. 1064 with_gas=yes ;; 1065 1066 -help | --help | --hel | --he | -h) 1067 ac_init_help=long ;; 1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1069 ac_init_help=recursive ;; 1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1071 ac_init_help=short ;; 1072 1073 -host | --host | --hos | --ho) 1074 ac_prev=host_alias ;; 1075 -host=* | --host=* | --hos=* | --ho=*) 1076 host_alias=$ac_optarg ;; 1077 1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1079 ac_prev=htmldir ;; 1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1081 | --ht=*) 1082 htmldir=$ac_optarg ;; 1083 1084 -includedir | --includedir | --includedi | --included | --include \ 1085 | --includ | --inclu | --incl | --inc) 1086 ac_prev=includedir ;; 1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1088 | --includ=* | --inclu=* | --incl=* | --inc=*) 1089 includedir=$ac_optarg ;; 1090 1091 -infodir | --infodir | --infodi | --infod | --info | --inf) 1092 ac_prev=infodir ;; 1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1094 infodir=$ac_optarg ;; 1095 1096 -libdir | --libdir | --libdi | --libd) 1097 ac_prev=libdir ;; 1098 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1099 libdir=$ac_optarg ;; 1100 1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1102 | --libexe | --libex | --libe) 1103 ac_prev=libexecdir ;; 1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1105 | --libexe=* | --libex=* | --libe=*) 1106 libexecdir=$ac_optarg ;; 1107 1108 -localedir | --localedir | --localedi | --localed | --locale) 1109 ac_prev=localedir ;; 1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1111 localedir=$ac_optarg ;; 1112 1113 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1114 | --localstate | --localstat | --localsta | --localst | --locals) 1115 ac_prev=localstatedir ;; 1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1118 localstatedir=$ac_optarg ;; 1119 1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1121 ac_prev=mandir ;; 1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1123 mandir=$ac_optarg ;; 1124 1125 -nfp | --nfp | --nf) 1126 # Obsolete; use --without-fp. 1127 with_fp=no ;; 1128 1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1130 | --no-cr | --no-c | -n) 1131 no_create=yes ;; 1132 1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1135 no_recursion=yes ;; 1136 1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1139 | --oldin | --oldi | --old | --ol | --o) 1140 ac_prev=oldincludedir ;; 1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1144 oldincludedir=$ac_optarg ;; 1145 1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1147 ac_prev=prefix ;; 1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1149 prefix=$ac_optarg ;; 1150 1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1152 | --program-pre | --program-pr | --program-p) 1153 ac_prev=program_prefix ;; 1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1156 program_prefix=$ac_optarg ;; 1157 1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1159 | --program-suf | --program-su | --program-s) 1160 ac_prev=program_suffix ;; 1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1163 program_suffix=$ac_optarg ;; 1164 1165 -program-transform-name | --program-transform-name \ 1166 | --program-transform-nam | --program-transform-na \ 1167 | --program-transform-n | --program-transform- \ 1168 | --program-transform | --program-transfor \ 1169 | --program-transfo | --program-transf \ 1170 | --program-trans | --program-tran \ 1171 | --progr-tra | --program-tr | --program-t) 1172 ac_prev=program_transform_name ;; 1173 -program-transform-name=* | --program-transform-name=* \ 1174 | --program-transform-nam=* | --program-transform-na=* \ 1175 | --program-transform-n=* | --program-transform-=* \ 1176 | --program-transform=* | --program-transfor=* \ 1177 | --program-transfo=* | --program-transf=* \ 1178 | --program-trans=* | --program-tran=* \ 1179 | --progr-tra=* | --program-tr=* | --program-t=*) 1180 program_transform_name=$ac_optarg ;; 1181 1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1183 ac_prev=pdfdir ;; 1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1185 pdfdir=$ac_optarg ;; 1186 1187 -psdir | --psdir | --psdi | --psd | --ps) 1188 ac_prev=psdir ;; 1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1190 psdir=$ac_optarg ;; 1191 1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1193 | -silent | --silent | --silen | --sile | --sil) 1194 silent=yes ;; 1195 1196 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1197 | --runstate | --runstat | --runsta | --runst | --runs \ 1198 | --run | --ru | --r) 1199 ac_prev=runstatedir ;; 1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1202 | --run=* | --ru=* | --r=*) 1203 runstatedir=$ac_optarg ;; 1204 1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1206 ac_prev=sbindir ;; 1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1208 | --sbi=* | --sb=*) 1209 sbindir=$ac_optarg ;; 1210 1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1213 | --sharedst | --shareds | --shared | --share | --shar \ 1214 | --sha | --sh) 1215 ac_prev=sharedstatedir ;; 1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1219 | --sha=* | --sh=*) 1220 sharedstatedir=$ac_optarg ;; 1221 1222 -site | --site | --sit) 1223 ac_prev=site ;; 1224 -site=* | --site=* | --sit=*) 1225 site=$ac_optarg ;; 1226 1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1228 ac_prev=srcdir ;; 1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1230 srcdir=$ac_optarg ;; 1231 1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1233 | --syscon | --sysco | --sysc | --sys | --sy) 1234 ac_prev=sysconfdir ;; 1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1237 sysconfdir=$ac_optarg ;; 1238 1239 -target | --target | --targe | --targ | --tar | --ta | --t) 1240 ac_prev=target_alias ;; 1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1242 target_alias=$ac_optarg ;; 1243 1244 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1245 verbose=yes ;; 1246 1247 -version | --version | --versio | --versi | --vers | -V) 1248 ac_init_version=: ;; 1249 1250 -with-* | --with-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: $ac_useropt" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259"with_$ac_useropt" 1260"*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=\$ac_optarg ;; 1265 1266 -without-* | --without-*) 1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1268 # Reject names that are not valid shell variable names. 1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1270 as_fn_error $? "invalid package name: $ac_useropt" 1271 ac_useropt_orig=$ac_useropt 1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1273 case $ac_user_opts in 1274 *" 1275"with_$ac_useropt" 1276"*) ;; 1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1278 ac_unrecognized_sep=', ';; 1279 esac 1280 eval with_$ac_useropt=no ;; 1281 1282 --x) 1283 # Obsolete; use --with-x. 1284 with_x=yes ;; 1285 1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1287 | --x-incl | --x-inc | --x-in | --x-i) 1288 ac_prev=x_includes ;; 1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1291 x_includes=$ac_optarg ;; 1292 1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1295 ac_prev=x_libraries ;; 1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1298 x_libraries=$ac_optarg ;; 1299 1300 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1301Try \`$0 --help' for more information" 1302 ;; 1303 1304 *=*) 1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1306 # Reject names that are not valid shell variable names. 1307 case $ac_envvar in #( 1308 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1310 esac 1311 eval $ac_envvar=\$ac_optarg 1312 export $ac_envvar ;; 1313 1314 *) 1315 # FIXME: should be removed in autoconf 3.0. 1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1320 ;; 1321 1322 esac 1323done 1324 1325if test -n "$ac_prev"; then 1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1327 as_fn_error $? "missing argument to $ac_option" 1328fi 1329 1330if test -n "$ac_unrecognized_opts"; then 1331 case $enable_option_checking in 1332 no) ;; 1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1335 esac 1336fi 1337 1338# Check all directory arguments for consistency. 1339for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1340 datadir sysconfdir sharedstatedir localstatedir includedir \ 1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1342 libdir localedir mandir runstatedir 1343do 1344 eval ac_val=\$$ac_var 1345 # Remove trailing slashes. 1346 case $ac_val in 1347 */ ) 1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1349 eval $ac_var=\$ac_val;; 1350 esac 1351 # Be sure to have absolute directory names. 1352 case $ac_val in 1353 [\\/$]* | ?:[\\/]* ) continue;; 1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1355 esac 1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1357done 1358 1359# There might be people who depend on the old broken behavior: `$host' 1360# used to hold the argument of --host etc. 1361# FIXME: To remove some day. 1362build=$build_alias 1363host=$host_alias 1364target=$target_alias 1365 1366# FIXME: To remove some day. 1367if test "x$host_alias" != x; then 1368 if test "x$build_alias" = x; then 1369 cross_compiling=maybe 1370 elif test "x$build_alias" != "x$host_alias"; then 1371 cross_compiling=yes 1372 fi 1373fi 1374 1375ac_tool_prefix= 1376test -n "$host_alias" && ac_tool_prefix=$host_alias- 1377 1378test "$silent" = yes && exec 6>/dev/null 1379 1380 1381ac_pwd=`pwd` && test -n "$ac_pwd" && 1382ac_ls_di=`ls -di .` && 1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1384 as_fn_error $? "working directory cannot be determined" 1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1386 as_fn_error $? "pwd does not report name of working directory" 1387 1388 1389# Find the source files, if location was not specified. 1390if test -z "$srcdir"; then 1391 ac_srcdir_defaulted=yes 1392 # Try the directory containing this script, then the parent directory. 1393 ac_confdir=`$as_dirname -- "$as_myself" || 1394$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1395 X"$as_myself" : 'X\(//\)[^/]' \| \ 1396 X"$as_myself" : 'X\(//\)$' \| \ 1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1398$as_echo X"$as_myself" | 1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1400 s//\1/ 1401 q 1402 } 1403 /^X\(\/\/\)[^/].*/{ 1404 s//\1/ 1405 q 1406 } 1407 /^X\(\/\/\)$/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\).*/{ 1412 s//\1/ 1413 q 1414 } 1415 s/.*/./; q'` 1416 srcdir=$ac_confdir 1417 if test ! -r "$srcdir/$ac_unique_file"; then 1418 srcdir=.. 1419 fi 1420else 1421 ac_srcdir_defaulted=no 1422fi 1423if test ! -r "$srcdir/$ac_unique_file"; then 1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1426fi 1427ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1428ac_abs_confdir=`( 1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1430 pwd)` 1431# When building in place, set srcdir=. 1432if test "$ac_abs_confdir" = "$ac_pwd"; then 1433 srcdir=. 1434fi 1435# Remove unnecessary trailing slashes from srcdir. 1436# Double slashes in file names in object file debugging info 1437# mess up M-x gdb in Emacs. 1438case $srcdir in 1439*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1440esac 1441for ac_var in $ac_precious_vars; do 1442 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1443 eval ac_env_${ac_var}_value=\$${ac_var} 1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1445 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1446done 1447 1448# 1449# Report the --help message. 1450# 1451if test "$ac_init_help" = "long"; then 1452 # Omit some internal or obsolete options to make the list less imposing. 1453 # This message is too long to be a string in the A/UX 3.1 sh. 1454 cat <<_ACEOF 1455\`configure' configures pmacct 1.7.5-git to adapt to many kinds of systems. 1456 1457Usage: $0 [OPTION]... [VAR=VALUE]... 1458 1459To assign environment variables (e.g., CC, CFLAGS...), specify them as 1460VAR=VALUE. See below for descriptions of some of the useful variables. 1461 1462Defaults for the options are specified in brackets. 1463 1464Configuration: 1465 -h, --help display this help and exit 1466 --help=short display options specific to this package 1467 --help=recursive display the short help of all the included packages 1468 -V, --version display version information and exit 1469 -q, --quiet, --silent do not print \`checking ...' messages 1470 --cache-file=FILE cache test results in FILE [disabled] 1471 -C, --config-cache alias for \`--cache-file=config.cache' 1472 -n, --no-create do not create output files 1473 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1474 1475Installation directories: 1476 --prefix=PREFIX install architecture-independent files in PREFIX 1477 [$ac_default_prefix] 1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1479 [PREFIX] 1480 1481By default, \`make install' will install all the files in 1482\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1483an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1484for instance \`--prefix=\$HOME'. 1485 1486For better control, use the options below. 1487 1488Fine tuning of the installation directories: 1489 --bindir=DIR user executables [EPREFIX/bin] 1490 --sbindir=DIR system admin executables [EPREFIX/sbin] 1491 --libexecdir=DIR program executables [EPREFIX/libexec] 1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1496 --libdir=DIR object code libraries [EPREFIX/lib] 1497 --includedir=DIR C header files [PREFIX/include] 1498 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1501 --infodir=DIR info documentation [DATAROOTDIR/info] 1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1503 --mandir=DIR man documentation [DATAROOTDIR/man] 1504 --docdir=DIR documentation root [DATAROOTDIR/doc/pmacct] 1505 --htmldir=DIR html documentation [DOCDIR] 1506 --dvidir=DIR dvi documentation [DOCDIR] 1507 --pdfdir=DIR pdf documentation [DOCDIR] 1508 --psdir=DIR ps documentation [DOCDIR] 1509_ACEOF 1510 1511 cat <<\_ACEOF 1512 1513Program names: 1514 --program-prefix=PREFIX prepend PREFIX to installed program names 1515 --program-suffix=SUFFIX append SUFFIX to installed program names 1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1517 1518System types: 1519 --build=BUILD configure for building on BUILD [guessed] 1520 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1521_ACEOF 1522fi 1523 1524if test -n "$ac_init_help"; then 1525 case $ac_init_help in 1526 short | recursive ) echo "Configuration of pmacct 1.7.5-git:";; 1527 esac 1528 cat <<\_ACEOF 1529 1530Optional Features: 1531 --disable-option-checking ignore unrecognized --enable/--with options 1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1534 --enable-silent-rules less verbose build output (undo: "make V=1") 1535 --disable-silent-rules verbose build output (undo: "make V=0") 1536 --enable-shared[=PKGS] build shared libraries [default=yes] 1537 --enable-static[=PKGS] build static libraries [default=yes] 1538 --enable-fast-install[=PKGS] 1539 optimize for fast installation [default=yes] 1540 --enable-dependency-tracking 1541 do not reject slow dependency extractors 1542 --disable-dependency-tracking 1543 speeds up one-time build 1544 --disable-libtool-lock avoid locking (might break parallel builds) 1545 --disable-so Disable linking against shared objects (default: no) 1546 --enable-l2 Enable Layer-2 features and support (default: yes) 1547 --enable-plabel Enable IP prefix labels (default: no) 1548 --enable-mysql Enable MySQL support (default: no) 1549 --enable-pgsql Enable PostgreSQL support (default: no) 1550 --enable-mongodb Enable MongoDB support (default: no) 1551 --enable-sqlite3 Enable SQLite3 support (default: no) 1552 --enable-rabbitmq Enable RabbitMQ/AMQP support (default: no) 1553 --enable-zmq Enable ZeroMQ support (default: no) 1554 --enable-kafka Enable Kafka support (default: no) 1555 --enable-redis Enable Redis support (default: no) 1556 --enable-geoip Enable GeoIP support (default: no) 1557 --enable-geoipv2 Enable GeoIPv2 (libmaxminddb) support (default: no) 1558 --enable-jansson Enable Jansson support (default: no) 1559 --enable-avro Enable Apache Avro support (default: no) 1560 --enable-serdes Enable Confluent schema-registry support (default: no) 1561 --enable-ndpi Enable nDPI support (default: no) 1562 --enable-nflog Enable NFLOG support (default: no) 1563 --enable-traffic-bins Link IPv4/IPv6 traffic accounting binaries (default: yes) 1564 --enable-bgp-bins Link BGP daemon binaries (default: yes) 1565 --enable-bmp-bins Link BMP daemon binaries (default: yes) 1566 --enable-st-bins Link Streaming Telemetry daemon binaries (default: yes) 1567 --enable-debug Enable debugging compiler options (default: no) 1568 1569Optional Packages: 1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1572 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1573 both] 1574 --with-aix-soname=aix|svr4|both 1575 shared library versioning (aka "SONAME") variant to 1576 provide on AIX, [default=aix]. 1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1578 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1579 compiler's sysroot if not specified). 1580 --with-pcap-includes=DIR Search the specified directory for header files 1581 --with-pcap-libs=DIR Search the specified directory for pcap library 1582 --with-ndpi-static-lib=DIR Search the specified directory for nDPI static library 1583 1584Some influential environment variables: 1585 CC C compiler command 1586 CFLAGS C compiler flags 1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1588 nonstandard directory <lib dir> 1589 LIBS libraries to pass to the linker, e.g. -l<library> 1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1591 you have headers in a nonstandard directory <include dir> 1592 CPP C preprocessor 1593 PKG_CONFIG path to pkg-config utility 1594 PKG_CONFIG_PATH directories to add to pkg-config's search path 1595 PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path 1596 PGSQL_CFLAGS C compiler flags for PGSQL, overriding pkg-config 1597 PGSQL_LIBS linker flags for PGSQL, overriding pkg-config 1598 MONGODB_CFLAGS C compiler flags for MONGODB, overriding pkg-config 1599 MONGODB_LIBS linker flags for MONGODB, overriding pkg-config 1600 SQLITE3_CFLAGS C compiler flags for SQLITE3, overriding pkg-config 1601 SQLITE3_LIBS linker flags for SQLITE3, overriding pkg-config 1602 RABBITMQ_CFLAGS C compiler flags for RABBITMQ, overriding pkg-config 1603 RABBITMQ_LIBS linker flags for RABBITMQ, overriding pkg-config 1604 ZMQ_CFLAGS C compiler flags for ZMQ, overriding pkg-config 1605 ZMQ_LIBS linker flags for ZMQ, overriding pkg-config 1606 KAFKA_CFLAGS C compiler flags for KAFKA, overriding pkg-config 1607 KAFKA_LIBS linker flags for KAFKA, overriding pkg-config 1608 REDIS_CFLAGS C compiler flags for REDIS, overriding pkg-config 1609 REDIS_LIBS linker flags for REDIS, overriding pkg-config 1610 GEOIP_CFLAGS C compiler flags for GEOIP, overriding pkg-config 1611 GEOIP_LIBS linker flags for GEOIP, overriding pkg-config 1612 GEOIPV2_CFLAGS C compiler flags for GEOIPV2, overriding pkg-config 1613 GEOIPV2_LIBS linker flags for GEOIPV2, overriding pkg-config 1614 JANSSON_CFLAGS C compiler flags for JANSSON, overriding pkg-config 1615 JANSSON_LIBS linker flags for JANSSON, overriding pkg-config 1616 AVRO_CFLAGS C compiler flags for AVRO, overriding pkg-config 1617 AVRO_LIBS linker flags for AVRO, overriding pkg-config 1618 SERDES_CFLAGS C compiler flags for SERDES, overriding pkg-config 1619 SERDES_LIBS linker flags for SEREDES, overriding pkg-config 1620 NFLOG_CFLAGS C compiler flags for NFLOG, overriding pkg-config 1621 NFLOG_LIBS linker flags for NFLOG, overriding pkg-config 1622 NDPI_CFLAGS C compiler flags for dynamic nDPI, overriding pkg-config 1623 NDPI_LIBS linker flags for dynamic nDPI, overriding pkg-config 1624 1625Use these variables to override the choices made by `configure' or to help 1626it to find libraries and programs with nonstandard names/locations. 1627 1628Report bugs to <paolo@pmacct.net>. 1629_ACEOF 1630ac_status=$? 1631fi 1632 1633if test "$ac_init_help" = "recursive"; then 1634 # If there are subdirs, report their specific --help. 1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1636 test -d "$ac_dir" || 1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1638 continue 1639 ac_builddir=. 1640 1641case "$ac_dir" in 1642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1643*) 1644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1645 # A ".." for each directory in $ac_dir_suffix. 1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1647 case $ac_top_builddir_sub in 1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1650 esac ;; 1651esac 1652ac_abs_top_builddir=$ac_pwd 1653ac_abs_builddir=$ac_pwd$ac_dir_suffix 1654# for backward compatibility: 1655ac_top_builddir=$ac_top_build_prefix 1656 1657case $srcdir in 1658 .) # We are building in place. 1659 ac_srcdir=. 1660 ac_top_srcdir=$ac_top_builddir_sub 1661 ac_abs_top_srcdir=$ac_pwd ;; 1662 [\\/]* | ?:[\\/]* ) # Absolute name. 1663 ac_srcdir=$srcdir$ac_dir_suffix; 1664 ac_top_srcdir=$srcdir 1665 ac_abs_top_srcdir=$srcdir ;; 1666 *) # Relative name. 1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1668 ac_top_srcdir=$ac_top_build_prefix$srcdir 1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1670esac 1671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1672 1673 cd "$ac_dir" || { ac_status=$?; continue; } 1674 # Check for guested configure. 1675 if test -f "$ac_srcdir/configure.gnu"; then 1676 echo && 1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1678 elif test -f "$ac_srcdir/configure"; then 1679 echo && 1680 $SHELL "$ac_srcdir/configure" --help=recursive 1681 else 1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1683 fi || ac_status=$? 1684 cd "$ac_pwd" || { ac_status=$?; break; } 1685 done 1686fi 1687 1688test -n "$ac_init_help" && exit $ac_status 1689if $ac_init_version; then 1690 cat <<\_ACEOF 1691pmacct configure 1.7.5-git 1692generated by GNU Autoconf 2.69 1693 1694Copyright (C) 2012 Free Software Foundation, Inc. 1695This configure script is free software; the Free Software Foundation 1696gives unlimited permission to copy, distribute and modify it. 1697_ACEOF 1698 exit 1699fi 1700 1701## ------------------------ ## 1702## Autoconf initialization. ## 1703## ------------------------ ## 1704 1705# ac_fn_c_try_compile LINENO 1706# -------------------------- 1707# Try to compile conftest.$ac_ext, and return whether this succeeded. 1708ac_fn_c_try_compile () 1709{ 1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1711 rm -f conftest.$ac_objext 1712 if { { ac_try="$ac_compile" 1713case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_compile") 2>conftest.err 1720 ac_status=$? 1721 if test -s conftest.err; then 1722 grep -v '^ *+' conftest.err >conftest.er1 1723 cat conftest.er1 >&5 1724 mv -f conftest.er1 conftest.err 1725 fi 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } && { 1728 test -z "$ac_c_werror_flag" || 1729 test ! -s conftest.err 1730 } && test -s conftest.$ac_objext; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_compile 1742 1743# ac_fn_c_try_link LINENO 1744# ----------------------- 1745# Try to link conftest.$ac_ext, and return whether this succeeded. 1746ac_fn_c_try_link () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 rm -f conftest.$ac_objext conftest$ac_exeext 1750 if { { ac_try="$ac_link" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756$as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>conftest.err 1758 ac_status=$? 1759 if test -s conftest.err; then 1760 grep -v '^ *+' conftest.err >conftest.er1 1761 cat conftest.er1 >&5 1762 mv -f conftest.er1 conftest.err 1763 fi 1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1765 test $ac_status = 0; } && { 1766 test -z "$ac_c_werror_flag" || 1767 test ! -s conftest.err 1768 } && test -s conftest$ac_exeext && { 1769 test "$cross_compiling" = yes || 1770 test -x conftest$ac_exeext 1771 }; then : 1772 ac_retval=0 1773else 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=1 1778fi 1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1781 # interfere with the next link command; also delete a directory that is 1782 # left behind by Apple's compiler. We do this before executing the actions. 1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} # ac_fn_c_try_link 1788 1789# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1790# ------------------------------------------------------- 1791# Tests whether HEADER exists and can be compiled using the include files in 1792# INCLUDES, setting the cache variable VAR accordingly. 1793ac_fn_c_check_header_compile () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797$as_echo_n "checking for $2... " >&6; } 1798if eval \${$3+:} false; then : 1799 $as_echo_n "(cached) " >&6 1800else 1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1802/* end confdefs.h. */ 1803$4 1804#include <$2> 1805_ACEOF 1806if ac_fn_c_try_compile "$LINENO"; then : 1807 eval "$3=yes" 1808else 1809 eval "$3=no" 1810fi 1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 1818} # ac_fn_c_check_header_compile 1819 1820# ac_fn_c_try_cpp LINENO 1821# ---------------------- 1822# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1823ac_fn_c_try_cpp () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 if { { ac_try="$ac_cpp conftest.$ac_ext" 1827case "(($ac_try" in 1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1829 *) ac_try_echo=$ac_try;; 1830esac 1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1832$as_echo "$ac_try_echo"; } >&5 1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1834 ac_status=$? 1835 if test -s conftest.err; then 1836 grep -v '^ *+' conftest.err >conftest.er1 1837 cat conftest.er1 >&5 1838 mv -f conftest.er1 conftest.err 1839 fi 1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1841 test $ac_status = 0; } > conftest.i && { 1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1843 test ! -s conftest.err 1844 }; then : 1845 ac_retval=0 1846else 1847 $as_echo "$as_me: failed program was:" >&5 1848sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=1 1851fi 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 as_fn_set_status $ac_retval 1854 1855} # ac_fn_c_try_cpp 1856 1857# ac_fn_c_try_run LINENO 1858# ---------------------- 1859# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1860# that executables *can* be run. 1861ac_fn_c_try_run () 1862{ 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 if { { ac_try="$ac_link" 1865case "(($ac_try" in 1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1867 *) ac_try_echo=$ac_try;; 1868esac 1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1870$as_echo "$ac_try_echo"; } >&5 1871 (eval "$ac_link") 2>&5 1872 ac_status=$? 1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1874 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1875 { { case "(($ac_try" in 1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1877 *) ac_try_echo=$ac_try;; 1878esac 1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1880$as_echo "$ac_try_echo"; } >&5 1881 (eval "$ac_try") 2>&5 1882 ac_status=$? 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; }; }; then : 1885 ac_retval=0 1886else 1887 $as_echo "$as_me: program exited with status $ac_status" >&5 1888 $as_echo "$as_me: failed program was:" >&5 1889sed 's/^/| /' conftest.$ac_ext >&5 1890 1891 ac_retval=$ac_status 1892fi 1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 as_fn_set_status $ac_retval 1896 1897} # ac_fn_c_try_run 1898 1899# ac_fn_c_check_func LINENO FUNC VAR 1900# ---------------------------------- 1901# Tests whether FUNC exists, setting the cache variable VAR accordingly 1902ac_fn_c_check_func () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909else 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1914#define $2 innocuous_$2 1915 1916/* System header to define __stub macros and hopefully few prototypes, 1917 which can conflict with char $2 (); below. 1918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1919 <limits.h> exists even on freestanding compilers. */ 1920 1921#ifdef __STDC__ 1922# include <limits.h> 1923#else 1924# include <assert.h> 1925#endif 1926 1927#undef $2 1928 1929/* Override any GCC internal prototype to avoid an error. 1930 Use char because int might match the return type of a GCC 1931 builtin and then its argument prototype would still apply. */ 1932#ifdef __cplusplus 1933extern "C" 1934#endif 1935char $2 (); 1936/* The GNU C library defines this for functions which it implements 1937 to always fail with ENOSYS. Some functions are actually named 1938 something starting with __ and the normal name is an alias. */ 1939#if defined __stub_$2 || defined __stub___$2 1940choke me 1941#endif 1942 1943int 1944main () 1945{ 1946return $2 (); 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951if ac_fn_c_try_link "$LINENO"; then : 1952 eval "$3=yes" 1953else 1954 eval "$3=no" 1955fi 1956rm -f core conftest.err conftest.$ac_objext \ 1957 conftest$ac_exeext conftest.$ac_ext 1958fi 1959eval ac_res=\$$3 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1961$as_echo "$ac_res" >&6; } 1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1963 1964} # ac_fn_c_check_func 1965 1966# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1967# ------------------------------------------------------- 1968# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1969# the include files in INCLUDES and setting the cache variable VAR 1970# accordingly. 1971ac_fn_c_check_header_mongrel () 1972{ 1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1974 if eval \${$3+:} false; then : 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976$as_echo_n "checking for $2... " >&6; } 1977if eval \${$3+:} false; then : 1978 $as_echo_n "(cached) " >&6 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983else 1984 # Is the header compilable? 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1986$as_echo_n "checking $2 usability... " >&6; } 1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1988/* end confdefs.h. */ 1989$4 1990#include <$2> 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO"; then : 1993 ac_header_compiler=yes 1994else 1995 ac_header_compiler=no 1996fi 1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1999$as_echo "$ac_header_compiler" >&6; } 2000 2001# Is the header present? 2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2003$as_echo_n "checking $2 presence... " >&6; } 2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2005/* end confdefs.h. */ 2006#include <$2> 2007_ACEOF 2008if ac_fn_c_try_cpp "$LINENO"; then : 2009 ac_header_preproc=yes 2010else 2011 ac_header_preproc=no 2012fi 2013rm -f conftest.err conftest.i conftest.$ac_ext 2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2015$as_echo "$ac_header_preproc" >&6; } 2016 2017# So? What about this header? 2018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2019 yes:no: ) 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2024 ;; 2025 no:yes:* ) 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2029$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2033$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2036( $as_echo "## ------------------------------- ## 2037## Report this to paolo@pmacct.net ## 2038## ------------------------------- ##" 2039 ) | sed "s/^/$as_me: WARNING: /" >&2 2040 ;; 2041esac 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2043$as_echo_n "checking for $2... " >&6; } 2044if eval \${$3+:} false; then : 2045 $as_echo_n "(cached) " >&6 2046else 2047 eval "$3=\$ac_header_compiler" 2048fi 2049eval ac_res=\$$3 2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2051$as_echo "$ac_res" >&6; } 2052fi 2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2054 2055} # ac_fn_c_check_header_mongrel 2056 2057# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2058# ------------------------------------------- 2059# Tests whether TYPE exists after having included INCLUDES, setting cache 2060# variable VAR accordingly. 2061ac_fn_c_check_type () 2062{ 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2065$as_echo_n "checking for $2... " >&6; } 2066if eval \${$3+:} false; then : 2067 $as_echo_n "(cached) " >&6 2068else 2069 eval "$3=no" 2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071/* end confdefs.h. */ 2072$4 2073int 2074main () 2075{ 2076if (sizeof ($2)) 2077 return 0; 2078 ; 2079 return 0; 2080} 2081_ACEOF 2082if ac_fn_c_try_compile "$LINENO"; then : 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084/* end confdefs.h. */ 2085$4 2086int 2087main () 2088{ 2089if (sizeof (($2))) 2090 return 0; 2091 ; 2092 return 0; 2093} 2094_ACEOF 2095if ac_fn_c_try_compile "$LINENO"; then : 2096 2097else 2098 eval "$3=yes" 2099fi 2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2101fi 2102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103fi 2104eval ac_res=\$$3 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2106$as_echo "$ac_res" >&6; } 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 2109} # ac_fn_c_check_type 2110 2111# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2112# --------------------------------------------- 2113# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2114# accordingly. 2115ac_fn_c_check_decl () 2116{ 2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2118 as_decl_name=`echo $2|sed 's/ *(.*//'` 2119 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2121$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2122if eval \${$3+:} false; then : 2123 $as_echo_n "(cached) " >&6 2124else 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127$4 2128int 2129main () 2130{ 2131#ifndef $as_decl_name 2132#ifdef __cplusplus 2133 (void) $as_decl_use; 2134#else 2135 (void) $as_decl_name; 2136#endif 2137#endif 2138 2139 ; 2140 return 0; 2141} 2142_ACEOF 2143if ac_fn_c_try_compile "$LINENO"; then : 2144 eval "$3=yes" 2145else 2146 eval "$3=no" 2147fi 2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2149fi 2150eval ac_res=\$$3 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2152$as_echo "$ac_res" >&6; } 2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2154 2155} # ac_fn_c_check_decl 2156cat >config.log <<_ACEOF 2157This file contains any messages produced by compilers while 2158running configure, to aid debugging if configure makes a mistake. 2159 2160It was created by pmacct $as_me 1.7.5-git, which was 2161generated by GNU Autoconf 2.69. Invocation command line was 2162 2163 $ $0 $@ 2164 2165_ACEOF 2166exec 5>>config.log 2167{ 2168cat <<_ASUNAME 2169## --------- ## 2170## Platform. ## 2171## --------- ## 2172 2173hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2174uname -m = `(uname -m) 2>/dev/null || echo unknown` 2175uname -r = `(uname -r) 2>/dev/null || echo unknown` 2176uname -s = `(uname -s) 2>/dev/null || echo unknown` 2177uname -v = `(uname -v) 2>/dev/null || echo unknown` 2178 2179/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2180/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2181 2182/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2183/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2184/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2185/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2186/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2187/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2188/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2189 2190_ASUNAME 2191 2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2193for as_dir in $PATH 2194do 2195 IFS=$as_save_IFS 2196 test -z "$as_dir" && as_dir=. 2197 $as_echo "PATH: $as_dir" 2198 done 2199IFS=$as_save_IFS 2200 2201} >&5 2202 2203cat >&5 <<_ACEOF 2204 2205 2206## ----------- ## 2207## Core tests. ## 2208## ----------- ## 2209 2210_ACEOF 2211 2212 2213# Keep a trace of the command line. 2214# Strip out --no-create and --no-recursion so they do not pile up. 2215# Strip out --silent because we don't want to record it for future runs. 2216# Also quote any args containing shell meta-characters. 2217# Make two passes to allow for proper duplicate-argument suppression. 2218ac_configure_args= 2219ac_configure_args0= 2220ac_configure_args1= 2221ac_must_keep_next=false 2222for ac_pass in 1 2 2223do 2224 for ac_arg 2225 do 2226 case $ac_arg in 2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2229 | -silent | --silent | --silen | --sile | --sil) 2230 continue ;; 2231 *\'*) 2232 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2233 esac 2234 case $ac_pass in 2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2236 2) 2237 as_fn_append ac_configure_args1 " '$ac_arg'" 2238 if test $ac_must_keep_next = true; then 2239 ac_must_keep_next=false # Got value, back to normal. 2240 else 2241 case $ac_arg in 2242 *=* | --config-cache | -C | -disable-* | --disable-* \ 2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2245 | -with-* | --with-* | -without-* | --without-* | --x) 2246 case "$ac_configure_args0 " in 2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2248 esac 2249 ;; 2250 -* ) ac_must_keep_next=true ;; 2251 esac 2252 fi 2253 as_fn_append ac_configure_args " '$ac_arg'" 2254 ;; 2255 esac 2256 done 2257done 2258{ ac_configure_args0=; unset ac_configure_args0;} 2259{ ac_configure_args1=; unset ac_configure_args1;} 2260 2261# When interrupted or exit'd, cleanup temporary files, and complete 2262# config.log. We remove comments because anyway the quotes in there 2263# would cause problems or look ugly. 2264# WARNING: Use '\'' to represent an apostrophe within the trap. 2265# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2266trap 'exit_status=$? 2267 # Save into config.log some information that might help in debugging. 2268 { 2269 echo 2270 2271 $as_echo "## ---------------- ## 2272## Cache variables. ## 2273## ---------------- ##" 2274 echo 2275 # The following way of writing the cache mishandles newlines in values, 2276( 2277 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2278 eval ac_val=\$$ac_var 2279 case $ac_val in #( 2280 *${as_nl}*) 2281 case $ac_var in #( 2282 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2283$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2284 esac 2285 case $ac_var in #( 2286 _ | IFS | as_nl) ;; #( 2287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2288 *) { eval $ac_var=; unset $ac_var;} ;; 2289 esac ;; 2290 esac 2291 done 2292 (set) 2>&1 | 2293 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2294 *${as_nl}ac_space=\ *) 2295 sed -n \ 2296 "s/'\''/'\''\\\\'\'''\''/g; 2297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2298 ;; #( 2299 *) 2300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2301 ;; 2302 esac | 2303 sort 2304) 2305 echo 2306 2307 $as_echo "## ----------------- ## 2308## Output variables. ## 2309## ----------------- ##" 2310 echo 2311 for ac_var in $ac_subst_vars 2312 do 2313 eval ac_val=\$$ac_var 2314 case $ac_val in 2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2316 esac 2317 $as_echo "$ac_var='\''$ac_val'\''" 2318 done | sort 2319 echo 2320 2321 if test -n "$ac_subst_files"; then 2322 $as_echo "## ------------------- ## 2323## File substitutions. ## 2324## ------------------- ##" 2325 echo 2326 for ac_var in $ac_subst_files 2327 do 2328 eval ac_val=\$$ac_var 2329 case $ac_val in 2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2331 esac 2332 $as_echo "$ac_var='\''$ac_val'\''" 2333 done | sort 2334 echo 2335 fi 2336 2337 if test -s confdefs.h; then 2338 $as_echo "## ----------- ## 2339## confdefs.h. ## 2340## ----------- ##" 2341 echo 2342 cat confdefs.h 2343 echo 2344 fi 2345 test "$ac_signal" != 0 && 2346 $as_echo "$as_me: caught signal $ac_signal" 2347 $as_echo "$as_me: exit $exit_status" 2348 } >&5 2349 rm -f core *.core core.conftest.* && 2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2351 exit $exit_status 2352' 0 2353for ac_signal in 1 2 13 15; do 2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2355done 2356ac_signal=0 2357 2358# confdefs.h avoids OS command line length limits that DEFS can exceed. 2359rm -f -r conftest* confdefs.h 2360 2361$as_echo "/* confdefs.h */" > confdefs.h 2362 2363# Predefined preprocessor variables. 2364 2365cat >>confdefs.h <<_ACEOF 2366#define PACKAGE_NAME "$PACKAGE_NAME" 2367_ACEOF 2368 2369cat >>confdefs.h <<_ACEOF 2370#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2371_ACEOF 2372 2373cat >>confdefs.h <<_ACEOF 2374#define PACKAGE_VERSION "$PACKAGE_VERSION" 2375_ACEOF 2376 2377cat >>confdefs.h <<_ACEOF 2378#define PACKAGE_STRING "$PACKAGE_STRING" 2379_ACEOF 2380 2381cat >>confdefs.h <<_ACEOF 2382#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2383_ACEOF 2384 2385cat >>confdefs.h <<_ACEOF 2386#define PACKAGE_URL "$PACKAGE_URL" 2387_ACEOF 2388 2389 2390# Let the site file select an alternate cache file if it wants to. 2391# Prefer an explicitly selected file to automatically selected ones. 2392ac_site_file1=NONE 2393ac_site_file2=NONE 2394if test -n "$CONFIG_SITE"; then 2395 # We do not want a PATH search for config.site. 2396 case $CONFIG_SITE in #(( 2397 -*) ac_site_file1=./$CONFIG_SITE;; 2398 */*) ac_site_file1=$CONFIG_SITE;; 2399 *) ac_site_file1=./$CONFIG_SITE;; 2400 esac 2401elif test "x$prefix" != xNONE; then 2402 ac_site_file1=$prefix/share/config.site 2403 ac_site_file2=$prefix/etc/config.site 2404else 2405 ac_site_file1=$ac_default_prefix/share/config.site 2406 ac_site_file2=$ac_default_prefix/etc/config.site 2407fi 2408for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2409do 2410 test "x$ac_site_file" = xNONE && continue 2411 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2413$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2414 sed 's/^/| /' "$ac_site_file" >&5 2415 . "$ac_site_file" \ 2416 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2418as_fn_error $? "failed to load site script $ac_site_file 2419See \`config.log' for more details" "$LINENO" 5; } 2420 fi 2421done 2422 2423if test -r "$cache_file"; then 2424 # Some versions of bash will fail to source /dev/null (special files 2425 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2426 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2428$as_echo "$as_me: loading cache $cache_file" >&6;} 2429 case $cache_file in 2430 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2431 *) . "./$cache_file";; 2432 esac 2433 fi 2434else 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2436$as_echo "$as_me: creating cache $cache_file" >&6;} 2437 >$cache_file 2438fi 2439 2440# Check that the precious variables saved in the cache have kept the same 2441# value. 2442ac_cache_corrupted=false 2443for ac_var in $ac_precious_vars; do 2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2445 eval ac_new_set=\$ac_env_${ac_var}_set 2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2447 eval ac_new_val=\$ac_env_${ac_var}_value 2448 case $ac_old_set,$ac_new_set in 2449 set,) 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2451$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2452 ac_cache_corrupted=: ;; 2453 ,set) 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2455$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2456 ac_cache_corrupted=: ;; 2457 ,);; 2458 *) 2459 if test "x$ac_old_val" != "x$ac_new_val"; then 2460 # differences in whitespace do not lead to failure. 2461 ac_old_val_w=`echo x $ac_old_val` 2462 ac_new_val_w=`echo x $ac_new_val` 2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2465$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2466 ac_cache_corrupted=: 2467 else 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2469$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2470 eval $ac_var=\$ac_old_val 2471 fi 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2473$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2475$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2476 fi;; 2477 esac 2478 # Pass precious variables to config.status. 2479 if test "$ac_new_set" = set; then 2480 case $ac_new_val in 2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2482 *) ac_arg=$ac_var=$ac_new_val ;; 2483 esac 2484 case " $ac_configure_args " in 2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2487 esac 2488 fi 2489done 2490if $ac_cache_corrupted; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2494$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2495 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2496fi 2497## -------------------- ## 2498## Main body of script. ## 2499## -------------------- ## 2500 2501ac_ext=c 2502ac_cpp='$CPP $CPPFLAGS' 2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2505ac_compiler_gnu=$ac_cv_c_compiler_gnu 2506 2507 2508am__api_version='1.16' 2509 2510ac_aux_dir= 2511for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2512 if test -f "$ac_dir/install-sh"; then 2513 ac_aux_dir=$ac_dir 2514 ac_install_sh="$ac_aux_dir/install-sh -c" 2515 break 2516 elif test -f "$ac_dir/install.sh"; then 2517 ac_aux_dir=$ac_dir 2518 ac_install_sh="$ac_aux_dir/install.sh -c" 2519 break 2520 elif test -f "$ac_dir/shtool"; then 2521 ac_aux_dir=$ac_dir 2522 ac_install_sh="$ac_aux_dir/shtool install -c" 2523 break 2524 fi 2525done 2526if test -z "$ac_aux_dir"; then 2527 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2528fi 2529 2530# These three variables are undocumented and unsupported, 2531# and are intended to be withdrawn in a future Autoconf release. 2532# They can cause serious problems if a builder's source tree is in a directory 2533# whose full name contains unusual characters. 2534ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2535ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2536ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2537 2538 2539# Find a good install program. We prefer a C program (faster), 2540# so one script is as good as another. But avoid the broken or 2541# incompatible versions: 2542# SysV /etc/install, /usr/sbin/install 2543# SunOS /usr/etc/install 2544# IRIX /sbin/install 2545# AIX /bin/install 2546# AmigaOS /C/install, which installs bootblocks on floppy discs 2547# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2548# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2549# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2550# OS/2's system install, which has a completely different semantic 2551# ./install, which can be erroneously created by make from ./install.sh. 2552# Reject install programs that cannot install multiple files. 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2554$as_echo_n "checking for a BSD-compatible install... " >&6; } 2555if test -z "$INSTALL"; then 2556if ${ac_cv_path_install+:} false; then : 2557 $as_echo_n "(cached) " >&6 2558else 2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2560for as_dir in $PATH 2561do 2562 IFS=$as_save_IFS 2563 test -z "$as_dir" && as_dir=. 2564 # Account for people who put trailing slashes in PATH elements. 2565case $as_dir/ in #(( 2566 ./ | .// | /[cC]/* | \ 2567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2568 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2569 /usr/ucb/* ) ;; 2570 *) 2571 # OSF1 and SCO ODT 3.0 have their own names for install. 2572 # Don't use installbsd from OSF since it installs stuff as root 2573 # by default. 2574 for ac_prog in ginstall scoinst install; do 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2577 if test $ac_prog = install && 2578 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2579 # AIX install. It has an incompatible calling convention. 2580 : 2581 elif test $ac_prog = install && 2582 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2583 # program-specific install script used by HP pwplus--don't use. 2584 : 2585 else 2586 rm -rf conftest.one conftest.two conftest.dir 2587 echo one > conftest.one 2588 echo two > conftest.two 2589 mkdir conftest.dir 2590 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2591 test -s conftest.one && test -s conftest.two && 2592 test -s conftest.dir/conftest.one && 2593 test -s conftest.dir/conftest.two 2594 then 2595 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2596 break 3 2597 fi 2598 fi 2599 fi 2600 done 2601 done 2602 ;; 2603esac 2604 2605 done 2606IFS=$as_save_IFS 2607 2608rm -rf conftest.one conftest.two conftest.dir 2609 2610fi 2611 if test "${ac_cv_path_install+set}" = set; then 2612 INSTALL=$ac_cv_path_install 2613 else 2614 # As a last resort, use the slow shell script. Don't cache a 2615 # value for INSTALL within a source directory, because that will 2616 # break other packages using the cache if that directory is 2617 # removed, or if the value is a relative name. 2618 INSTALL=$ac_install_sh 2619 fi 2620fi 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2622$as_echo "$INSTALL" >&6; } 2623 2624# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2625# It thinks the first close brace ends the variable substitution. 2626test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2627 2628test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2629 2630test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2631 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2633$as_echo_n "checking whether build environment is sane... " >&6; } 2634# Reject unsafe characters in $srcdir or the absolute working directory 2635# name. Accept space and tab only in the latter. 2636am_lf=' 2637' 2638case `pwd` in 2639 *[\\\"\#\$\&\'\`$am_lf]*) 2640 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2641esac 2642case $srcdir in 2643 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2644 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2645esac 2646 2647# Do 'set' in a subshell so we don't clobber the current shell's 2648# arguments. Must try -L first in case configure is actually a 2649# symlink; some systems play weird games with the mod time of symlinks 2650# (eg FreeBSD returns the mod time of the symlink's containing 2651# directory). 2652if ( 2653 am_has_slept=no 2654 for am_try in 1 2; do 2655 echo "timestamp, slept: $am_has_slept" > conftest.file 2656 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2657 if test "$*" = "X"; then 2658 # -L didn't work. 2659 set X `ls -t "$srcdir/configure" conftest.file` 2660 fi 2661 if test "$*" != "X $srcdir/configure conftest.file" \ 2662 && test "$*" != "X conftest.file $srcdir/configure"; then 2663 2664 # If neither matched, then we have a broken ls. This can happen 2665 # if, for instance, CONFIG_SHELL is bash and it inherits a 2666 # broken ls alias from the environment. This has actually 2667 # happened. Such a system could not be considered "sane". 2668 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2669 alias in your environment" "$LINENO" 5 2670 fi 2671 if test "$2" = conftest.file || test $am_try -eq 2; then 2672 break 2673 fi 2674 # Just in case. 2675 sleep 1 2676 am_has_slept=yes 2677 done 2678 test "$2" = conftest.file 2679 ) 2680then 2681 # Ok. 2682 : 2683else 2684 as_fn_error $? "newly created file is older than distributed files! 2685Check your system clock" "$LINENO" 5 2686fi 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2688$as_echo "yes" >&6; } 2689# If we didn't sleep, we still need to ensure time stamps of config.status and 2690# generated files are strictly newer. 2691am_sleep_pid= 2692if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2693 ( sleep 1 ) & 2694 am_sleep_pid=$! 2695fi 2696 2697rm -f conftest.file 2698 2699test "$program_prefix" != NONE && 2700 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2701# Use a double $ so make ignores it. 2702test "$program_suffix" != NONE && 2703 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2704# Double any \ or $. 2705# By default was `s,x,x', remove it if useless. 2706ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2707program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2708 2709# Expand $ac_aux_dir to an absolute path. 2710am_aux_dir=`cd "$ac_aux_dir" && pwd` 2711 2712if test x"${MISSING+set}" != xset; then 2713 case $am_aux_dir in 2714 *\ * | *\ *) 2715 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2716 *) 2717 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2718 esac 2719fi 2720# Use eval to expand $SHELL 2721if eval "$MISSING --is-lightweight"; then 2722 am_missing_run="$MISSING " 2723else 2724 am_missing_run= 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2726$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2727fi 2728 2729if test x"${install_sh+set}" != xset; then 2730 case $am_aux_dir in 2731 *\ * | *\ *) 2732 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2733 *) 2734 install_sh="\${SHELL} $am_aux_dir/install-sh" 2735 esac 2736fi 2737 2738# Installed binaries are usually stripped using 'strip' when the user 2739# run "make install-strip". However 'strip' might not be the right 2740# tool to use in cross-compilation environments, therefore Automake 2741# will honor the 'STRIP' environment variable to overrule this program. 2742if test "$cross_compiling" != no; then 2743 if test -n "$ac_tool_prefix"; then 2744 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2745set dummy ${ac_tool_prefix}strip; ac_word=$2 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2747$as_echo_n "checking for $ac_word... " >&6; } 2748if ${ac_cv_prog_STRIP+:} false; then : 2749 $as_echo_n "(cached) " >&6 2750else 2751 if test -n "$STRIP"; then 2752 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2753else 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2761 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2763 break 2 2764 fi 2765done 2766 done 2767IFS=$as_save_IFS 2768 2769fi 2770fi 2771STRIP=$ac_cv_prog_STRIP 2772if test -n "$STRIP"; then 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2774$as_echo "$STRIP" >&6; } 2775else 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2777$as_echo "no" >&6; } 2778fi 2779 2780 2781fi 2782if test -z "$ac_cv_prog_STRIP"; then 2783 ac_ct_STRIP=$STRIP 2784 # Extract the first word of "strip", so it can be a program name with args. 2785set dummy strip; ac_word=$2 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2787$as_echo_n "checking for $ac_word... " >&6; } 2788if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 if test -n "$ac_ct_STRIP"; then 2792 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2793else 2794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2795for as_dir in $PATH 2796do 2797 IFS=$as_save_IFS 2798 test -z "$as_dir" && as_dir=. 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2801 ac_cv_prog_ac_ct_STRIP="strip" 2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806 done 2807IFS=$as_save_IFS 2808 2809fi 2810fi 2811ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2812if test -n "$ac_ct_STRIP"; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2814$as_echo "$ac_ct_STRIP" >&6; } 2815else 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817$as_echo "no" >&6; } 2818fi 2819 2820 if test "x$ac_ct_STRIP" = x; then 2821 STRIP=":" 2822 else 2823 case $cross_compiling:$ac_tool_warned in 2824yes:) 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2827ac_tool_warned=yes ;; 2828esac 2829 STRIP=$ac_ct_STRIP 2830 fi 2831else 2832 STRIP="$ac_cv_prog_STRIP" 2833fi 2834 2835fi 2836INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2837 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2839$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2840if test -z "$MKDIR_P"; then 2841 if ${ac_cv_path_mkdir+:} false; then : 2842 $as_echo_n "(cached) " >&6 2843else 2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_prog in mkdir gmkdir; do 2850 for ac_exec_ext in '' $ac_executable_extensions; do 2851 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2852 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2853 'mkdir (GNU coreutils) '* | \ 2854 'mkdir (coreutils) '* | \ 2855 'mkdir (fileutils) '4.1*) 2856 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2857 break 3;; 2858 esac 2859 done 2860 done 2861 done 2862IFS=$as_save_IFS 2863 2864fi 2865 2866 test -d ./--version && rmdir ./--version 2867 if test "${ac_cv_path_mkdir+set}" = set; then 2868 MKDIR_P="$ac_cv_path_mkdir -p" 2869 else 2870 # As a last resort, use the slow shell script. Don't cache a 2871 # value for MKDIR_P within a source directory, because that will 2872 # break other packages using the cache if that directory is 2873 # removed, or if the value is a relative name. 2874 MKDIR_P="$ac_install_sh -d" 2875 fi 2876fi 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2878$as_echo "$MKDIR_P" >&6; } 2879 2880for ac_prog in gawk mawk nawk awk 2881do 2882 # Extract the first word of "$ac_prog", so it can be a program name with args. 2883set dummy $ac_prog; ac_word=$2 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885$as_echo_n "checking for $ac_word... " >&6; } 2886if ${ac_cv_prog_AWK+:} false; then : 2887 $as_echo_n "(cached) " >&6 2888else 2889 if test -n "$AWK"; then 2890 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2899 ac_cv_prog_AWK="$ac_prog" 2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2901 break 2 2902 fi 2903done 2904 done 2905IFS=$as_save_IFS 2906 2907fi 2908fi 2909AWK=$ac_cv_prog_AWK 2910if test -n "$AWK"; then 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2912$as_echo "$AWK" >&6; } 2913else 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2915$as_echo "no" >&6; } 2916fi 2917 2918 2919 test -n "$AWK" && break 2920done 2921 2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2923$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2924set x ${MAKE-make} 2925ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2926if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 cat >conftest.make <<\_ACEOF 2930SHELL = /bin/sh 2931all: 2932 @echo '@@@%%%=$(MAKE)=@@@%%%' 2933_ACEOF 2934# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2935case `${MAKE-make} -f conftest.make 2>/dev/null` in 2936 *@@@%%%=?*=@@@%%%*) 2937 eval ac_cv_prog_make_${ac_make}_set=yes;; 2938 *) 2939 eval ac_cv_prog_make_${ac_make}_set=no;; 2940esac 2941rm -f conftest.make 2942fi 2943if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2945$as_echo "yes" >&6; } 2946 SET_MAKE= 2947else 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949$as_echo "no" >&6; } 2950 SET_MAKE="MAKE=${MAKE-make}" 2951fi 2952 2953rm -rf .tst 2>/dev/null 2954mkdir .tst 2>/dev/null 2955if test -d .tst; then 2956 am__leading_dot=. 2957else 2958 am__leading_dot=_ 2959fi 2960rmdir .tst 2>/dev/null 2961 2962# Check whether --enable-silent-rules was given. 2963if test "${enable_silent_rules+set}" = set; then : 2964 enableval=$enable_silent_rules; 2965fi 2966 2967case $enable_silent_rules in # ((( 2968 yes) AM_DEFAULT_VERBOSITY=0;; 2969 no) AM_DEFAULT_VERBOSITY=1;; 2970 *) AM_DEFAULT_VERBOSITY=1;; 2971esac 2972am_make=${MAKE-make} 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2974$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2975if ${am_cv_make_support_nested_variables+:} false; then : 2976 $as_echo_n "(cached) " >&6 2977else 2978 if $as_echo 'TRUE=$(BAR$(V)) 2979BAR0=false 2980BAR1=true 2981V=1 2982am__doit: 2983 @$(TRUE) 2984.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2985 am_cv_make_support_nested_variables=yes 2986else 2987 am_cv_make_support_nested_variables=no 2988fi 2989fi 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2991$as_echo "$am_cv_make_support_nested_variables" >&6; } 2992if test $am_cv_make_support_nested_variables = yes; then 2993 AM_V='$(V)' 2994 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2995else 2996 AM_V=$AM_DEFAULT_VERBOSITY 2997 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2998fi 2999AM_BACKSLASH='\' 3000 3001if test "`cd $srcdir && pwd`" != "`pwd`"; then 3002 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3003 # is not polluted with repeated "-I." 3004 am__isrc=' -I$(srcdir)' 3005 # test to see if srcdir already configured 3006 if test -f $srcdir/config.status; then 3007 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3008 fi 3009fi 3010 3011# test whether we have cygpath 3012if test -z "$CYGPATH_W"; then 3013 if (cygpath --version) >/dev/null 2>/dev/null; then 3014 CYGPATH_W='cygpath -w' 3015 else 3016 CYGPATH_W=echo 3017 fi 3018fi 3019 3020 3021# Define the identity of the package. 3022 PACKAGE='pmacct' 3023 VERSION='1.7.5-git' 3024 3025 3026cat >>confdefs.h <<_ACEOF 3027#define PACKAGE "$PACKAGE" 3028_ACEOF 3029 3030 3031cat >>confdefs.h <<_ACEOF 3032#define VERSION "$VERSION" 3033_ACEOF 3034 3035# Some tools Automake needs. 3036 3037ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3038 3039 3040AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3041 3042 3043AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3044 3045 3046AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3047 3048 3049MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3050 3051# For better backward compatibility. To be removed once Automake 1.9.x 3052# dies out for good. For more background, see: 3053# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3054# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3055mkdir_p='$(MKDIR_P)' 3056 3057# We need awk for the "check" target (and possibly the TAP driver). The 3058# system "awk" is bad on some platforms. 3059# Always define AMTAR for backward compatibility. Yes, it's still used 3060# in the wild :-( We should find a proper way to deprecate it ... 3061AMTAR='$${TAR-tar}' 3062 3063 3064# We'll loop over all known methods to create a tar archive until one works. 3065_am_tools='gnutar pax cpio none' 3066 3067am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3068 3069 3070 3071 3072 3073 3074# POSIX will say in a future version that running "rm -f" with no argument 3075# is OK; and we want to be able to make that assumption in our Makefile 3076# recipes. So use an aggressive probe to check that the usage we want is 3077# actually supported "in the wild" to an acceptable degree. 3078# See automake bug#10828. 3079# To make any issue more visible, cause the running configure to be aborted 3080# by default if the 'rm' program in use doesn't match our expectations; the 3081# user can still override this though. 3082if rm -f && rm -fr && rm -rf; then : OK; else 3083 cat >&2 <<'END' 3084Oops! 3085 3086Your 'rm' program seems unable to run without file operands specified 3087on the command line, even when the '-f' option is present. This is contrary 3088to the behaviour of most rm programs out there, and not conforming with 3089the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3090 3091Please tell bug-automake@gnu.org about your system, including the value 3092of your $PATH and any error possibly output before this message. This 3093can help us improve future automake versions. 3094 3095END 3096 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3097 echo 'Configuration will proceed anyway, since you have set the' >&2 3098 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3099 echo >&2 3100 else 3101 cat >&2 <<'END' 3102Aborting the configuration process, to ensure you take notice of the issue. 3103 3104You can download and install GNU coreutils to get an 'rm' implementation 3105that behaves properly: <https://www.gnu.org/software/coreutils/>. 3106 3107If you want to complete the configuration process using your problematic 3108'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3109to "yes", and re-run configure. 3110 3111END 3112 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3113 fi 3114fi 3115 3116 3117case `pwd` in 3118 *\ * | *\ *) 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3120$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3121esac 3122 3123 3124 3125macro_version='2.4.6' 3126macro_revision='2.4.6' 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140ltmain=$ac_aux_dir/ltmain.sh 3141 3142# Make sure we can run config.sub. 3143$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3144 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3145 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3147$as_echo_n "checking build system type... " >&6; } 3148if ${ac_cv_build+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 ac_build_alias=$build_alias 3152test "x$ac_build_alias" = x && 3153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3154test "x$ac_build_alias" = x && 3155 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3156ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3157 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3158 3159fi 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3161$as_echo "$ac_cv_build" >&6; } 3162case $ac_cv_build in 3163*-*-*) ;; 3164*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3165esac 3166build=$ac_cv_build 3167ac_save_IFS=$IFS; IFS='-' 3168set x $ac_cv_build 3169shift 3170build_cpu=$1 3171build_vendor=$2 3172shift; shift 3173# Remember, the first character of IFS is used to create $*, 3174# except with old shells: 3175build_os=$* 3176IFS=$ac_save_IFS 3177case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3178 3179 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3181$as_echo_n "checking host system type... " >&6; } 3182if ${ac_cv_host+:} false; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 if test "x$host_alias" = x; then 3186 ac_cv_host=$ac_cv_build 3187else 3188 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3189 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3190fi 3191 3192fi 3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3194$as_echo "$ac_cv_host" >&6; } 3195case $ac_cv_host in 3196*-*-*) ;; 3197*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3198esac 3199host=$ac_cv_host 3200ac_save_IFS=$IFS; IFS='-' 3201set x $ac_cv_host 3202shift 3203host_cpu=$1 3204host_vendor=$2 3205shift; shift 3206# Remember, the first character of IFS is used to create $*, 3207# except with old shells: 3208host_os=$* 3209IFS=$ac_save_IFS 3210case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3211 3212 3213# Backslashify metacharacters that are still active within 3214# double-quoted strings. 3215sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3216 3217# Same as above, but do not quote variable references. 3218double_quote_subst='s/\(["`\\]\)/\\\1/g' 3219 3220# Sed substitution to delay expansion of an escaped shell variable in a 3221# double_quote_subst'ed string. 3222delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3223 3224# Sed substitution to delay expansion of an escaped single quote. 3225delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3226 3227# Sed substitution to avoid accidental globbing in evaled expressions 3228no_glob_subst='s/\*/\\\*/g' 3229 3230ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3231ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3232ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3233 3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3235$as_echo_n "checking how to print strings... " >&6; } 3236# Test print first, because it will be a builtin if present. 3237if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3238 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3239 ECHO='print -r --' 3240elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3241 ECHO='printf %s\n' 3242else 3243 # Use this function as a fallback that always works. 3244 func_fallback_echo () 3245 { 3246 eval 'cat <<_LTECHO_EOF 3247$1 3248_LTECHO_EOF' 3249 } 3250 ECHO='func_fallback_echo' 3251fi 3252 3253# func_echo_all arg... 3254# Invoke $ECHO with all args, space-separated. 3255func_echo_all () 3256{ 3257 $ECHO "" 3258} 3259 3260case $ECHO in 3261 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3262$as_echo "printf" >&6; } ;; 3263 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3264$as_echo "print -r" >&6; } ;; 3265 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3266$as_echo "cat" >&6; } ;; 3267esac 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282DEPDIR="${am__leading_dot}deps" 3283 3284ac_config_commands="$ac_config_commands depfiles" 3285 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3287$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3288cat > confinc.mk << 'END' 3289am__doit: 3290 @echo this is the am__doit target >confinc.out 3291.PHONY: am__doit 3292END 3293am__include="#" 3294am__quote= 3295# BSD make does it like this. 3296echo '.include "confinc.mk" # ignored' > confmf.BSD 3297# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3298echo 'include confinc.mk # ignored' > confmf.GNU 3299_am_result=no 3300for s in GNU BSD; do 3301 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3302 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3303 ac_status=$? 3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); } 3306 case $?:`cat confinc.out 2>/dev/null` in #( 3307 '0:this is the am__doit target') : 3308 case $s in #( 3309 BSD) : 3310 am__include='.include' am__quote='"' ;; #( 3311 *) : 3312 am__include='include' am__quote='' ;; 3313esac ;; #( 3314 *) : 3315 ;; 3316esac 3317 if test "$am__include" != "#"; then 3318 _am_result="yes ($s style)" 3319 break 3320 fi 3321done 3322rm -f confinc.* confmf.* 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3324$as_echo "${_am_result}" >&6; } 3325 3326# Check whether --enable-dependency-tracking was given. 3327if test "${enable_dependency_tracking+set}" = set; then : 3328 enableval=$enable_dependency_tracking; 3329fi 3330 3331if test "x$enable_dependency_tracking" != xno; then 3332 am_depcomp="$ac_aux_dir/depcomp" 3333 AMDEPBACKSLASH='\' 3334 am__nodep='_no' 3335fi 3336 if test "x$enable_dependency_tracking" != xno; then 3337 AMDEP_TRUE= 3338 AMDEP_FALSE='#' 3339else 3340 AMDEP_TRUE='#' 3341 AMDEP_FALSE= 3342fi 3343 3344 3345ac_ext=c 3346ac_cpp='$CPP $CPPFLAGS' 3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3349ac_compiler_gnu=$ac_cv_c_compiler_gnu 3350if test -n "$ac_tool_prefix"; then 3351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3352set dummy ${ac_tool_prefix}gcc; ac_word=$2 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3354$as_echo_n "checking for $ac_word... " >&6; } 3355if ${ac_cv_prog_CC+:} false; then : 3356 $as_echo_n "(cached) " >&6 3357else 3358 if test -n "$CC"; then 3359 ac_cv_prog_CC="$CC" # Let the user override the test. 3360else 3361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3362for as_dir in $PATH 3363do 3364 IFS=$as_save_IFS 3365 test -z "$as_dir" && as_dir=. 3366 for ac_exec_ext in '' $ac_executable_extensions; do 3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3368 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3370 break 2 3371 fi 3372done 3373 done 3374IFS=$as_save_IFS 3375 3376fi 3377fi 3378CC=$ac_cv_prog_CC 3379if test -n "$CC"; then 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3381$as_echo "$CC" >&6; } 3382else 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3384$as_echo "no" >&6; } 3385fi 3386 3387 3388fi 3389if test -z "$ac_cv_prog_CC"; then 3390 ac_ct_CC=$CC 3391 # Extract the first word of "gcc", so it can be a program name with args. 3392set dummy gcc; ac_word=$2 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3394$as_echo_n "checking for $ac_word... " >&6; } 3395if ${ac_cv_prog_ac_ct_CC+:} false; then : 3396 $as_echo_n "(cached) " >&6 3397else 3398 if test -n "$ac_ct_CC"; then 3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3400else 3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3402for as_dir in $PATH 3403do 3404 IFS=$as_save_IFS 3405 test -z "$as_dir" && as_dir=. 3406 for ac_exec_ext in '' $ac_executable_extensions; do 3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3408 ac_cv_prog_ac_ct_CC="gcc" 3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3410 break 2 3411 fi 3412done 3413 done 3414IFS=$as_save_IFS 3415 3416fi 3417fi 3418ac_ct_CC=$ac_cv_prog_ac_ct_CC 3419if test -n "$ac_ct_CC"; then 3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3421$as_echo "$ac_ct_CC" >&6; } 3422else 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424$as_echo "no" >&6; } 3425fi 3426 3427 if test "x$ac_ct_CC" = x; then 3428 CC="" 3429 else 3430 case $cross_compiling:$ac_tool_warned in 3431yes:) 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3434ac_tool_warned=yes ;; 3435esac 3436 CC=$ac_ct_CC 3437 fi 3438else 3439 CC="$ac_cv_prog_CC" 3440fi 3441 3442if test -z "$CC"; then 3443 if test -n "$ac_tool_prefix"; then 3444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3445set dummy ${ac_tool_prefix}cc; ac_word=$2 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3447$as_echo_n "checking for $ac_word... " >&6; } 3448if ${ac_cv_prog_CC+:} false; then : 3449 $as_echo_n "(cached) " >&6 3450else 3451 if test -n "$CC"; then 3452 ac_cv_prog_CC="$CC" # Let the user override the test. 3453else 3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3455for as_dir in $PATH 3456do 3457 IFS=$as_save_IFS 3458 test -z "$as_dir" && as_dir=. 3459 for ac_exec_ext in '' $ac_executable_extensions; do 3460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3461 ac_cv_prog_CC="${ac_tool_prefix}cc" 3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3463 break 2 3464 fi 3465done 3466 done 3467IFS=$as_save_IFS 3468 3469fi 3470fi 3471CC=$ac_cv_prog_CC 3472if test -n "$CC"; then 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3474$as_echo "$CC" >&6; } 3475else 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3477$as_echo "no" >&6; } 3478fi 3479 3480 3481 fi 3482fi 3483if test -z "$CC"; then 3484 # Extract the first word of "cc", so it can be a program name with args. 3485set dummy cc; ac_word=$2 3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3487$as_echo_n "checking for $ac_word... " >&6; } 3488if ${ac_cv_prog_CC+:} false; then : 3489 $as_echo_n "(cached) " >&6 3490else 3491 if test -n "$CC"; then 3492 ac_cv_prog_CC="$CC" # Let the user override the test. 3493else 3494 ac_prog_rejected=no 3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3496for as_dir in $PATH 3497do 3498 IFS=$as_save_IFS 3499 test -z "$as_dir" && as_dir=. 3500 for ac_exec_ext in '' $ac_executable_extensions; do 3501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3503 ac_prog_rejected=yes 3504 continue 3505 fi 3506 ac_cv_prog_CC="cc" 3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3508 break 2 3509 fi 3510done 3511 done 3512IFS=$as_save_IFS 3513 3514if test $ac_prog_rejected = yes; then 3515 # We found a bogon in the path, so make sure we never use it. 3516 set dummy $ac_cv_prog_CC 3517 shift 3518 if test $# != 0; then 3519 # We chose a different compiler from the bogus one. 3520 # However, it has the same basename, so the bogon will be chosen 3521 # first if we set CC to just the basename; use the full file name. 3522 shift 3523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3524 fi 3525fi 3526fi 3527fi 3528CC=$ac_cv_prog_CC 3529if test -n "$CC"; then 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3531$as_echo "$CC" >&6; } 3532else 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3534$as_echo "no" >&6; } 3535fi 3536 3537 3538fi 3539if test -z "$CC"; then 3540 if test -n "$ac_tool_prefix"; then 3541 for ac_prog in cl.exe 3542 do 3543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3544set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3546$as_echo_n "checking for $ac_word... " >&6; } 3547if ${ac_cv_prog_CC+:} false; then : 3548 $as_echo_n "(cached) " >&6 3549else 3550 if test -n "$CC"; then 3551 ac_cv_prog_CC="$CC" # Let the user override the test. 3552else 3553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3554for as_dir in $PATH 3555do 3556 IFS=$as_save_IFS 3557 test -z "$as_dir" && as_dir=. 3558 for ac_exec_ext in '' $ac_executable_extensions; do 3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3562 break 2 3563 fi 3564done 3565 done 3566IFS=$as_save_IFS 3567 3568fi 3569fi 3570CC=$ac_cv_prog_CC 3571if test -n "$CC"; then 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3573$as_echo "$CC" >&6; } 3574else 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3576$as_echo "no" >&6; } 3577fi 3578 3579 3580 test -n "$CC" && break 3581 done 3582fi 3583if test -z "$CC"; then 3584 ac_ct_CC=$CC 3585 for ac_prog in cl.exe 3586do 3587 # Extract the first word of "$ac_prog", so it can be a program name with args. 3588set dummy $ac_prog; ac_word=$2 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3590$as_echo_n "checking for $ac_word... " >&6; } 3591if ${ac_cv_prog_ac_ct_CC+:} false; then : 3592 $as_echo_n "(cached) " >&6 3593else 3594 if test -n "$ac_ct_CC"; then 3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3596else 3597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3598for as_dir in $PATH 3599do 3600 IFS=$as_save_IFS 3601 test -z "$as_dir" && as_dir=. 3602 for ac_exec_ext in '' $ac_executable_extensions; do 3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3604 ac_cv_prog_ac_ct_CC="$ac_prog" 3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3606 break 2 3607 fi 3608done 3609 done 3610IFS=$as_save_IFS 3611 3612fi 3613fi 3614ac_ct_CC=$ac_cv_prog_ac_ct_CC 3615if test -n "$ac_ct_CC"; then 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3617$as_echo "$ac_ct_CC" >&6; } 3618else 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3620$as_echo "no" >&6; } 3621fi 3622 3623 3624 test -n "$ac_ct_CC" && break 3625done 3626 3627 if test "x$ac_ct_CC" = x; then 3628 CC="" 3629 else 3630 case $cross_compiling:$ac_tool_warned in 3631yes:) 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3634ac_tool_warned=yes ;; 3635esac 3636 CC=$ac_ct_CC 3637 fi 3638fi 3639 3640fi 3641 3642 3643test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3645as_fn_error $? "no acceptable C compiler found in \$PATH 3646See \`config.log' for more details" "$LINENO" 5; } 3647 3648# Provide some information about the compiler. 3649$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3650set X $ac_compile 3651ac_compiler=$2 3652for ac_option in --version -v -V -qversion; do 3653 { { ac_try="$ac_compiler $ac_option >&5" 3654case "(($ac_try" in 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *) ac_try_echo=$ac_try;; 3657esac 3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3659$as_echo "$ac_try_echo"; } >&5 3660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3661 ac_status=$? 3662 if test -s conftest.err; then 3663 sed '10a\ 3664... rest of stderr output deleted ... 3665 10q' conftest.err >conftest.er1 3666 cat conftest.er1 >&5 3667 fi 3668 rm -f conftest.er1 conftest.err 3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3670 test $ac_status = 0; } 3671done 3672 3673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3674/* end confdefs.h. */ 3675 3676int 3677main () 3678{ 3679 3680 ; 3681 return 0; 3682} 3683_ACEOF 3684ac_clean_files_save=$ac_clean_files 3685ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3686# Try to create an executable without -o first, disregard a.out. 3687# It will help us diagnose broken compilers, and finding out an intuition 3688# of exeext. 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3690$as_echo_n "checking whether the C compiler works... " >&6; } 3691ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3692 3693# The possible output files: 3694ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3695 3696ac_rmfiles= 3697for ac_file in $ac_files 3698do 3699 case $ac_file in 3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3701 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3702 esac 3703done 3704rm -f $ac_rmfiles 3705 3706if { { ac_try="$ac_link_default" 3707case "(($ac_try" in 3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3709 *) ac_try_echo=$ac_try;; 3710esac 3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3712$as_echo "$ac_try_echo"; } >&5 3713 (eval "$ac_link_default") 2>&5 3714 ac_status=$? 3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3716 test $ac_status = 0; }; then : 3717 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3718# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3719# in a Makefile. We should not override ac_cv_exeext if it was cached, 3720# so that the user can short-circuit this test for compilers unknown to 3721# Autoconf. 3722for ac_file in $ac_files '' 3723do 3724 test -f "$ac_file" || continue 3725 case $ac_file in 3726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3727 ;; 3728 [ab].out ) 3729 # We found the default executable, but exeext='' is most 3730 # certainly right. 3731 break;; 3732 *.* ) 3733 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3734 then :; else 3735 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3736 fi 3737 # We set ac_cv_exeext here because the later test for it is not 3738 # safe: cross compilers may not add the suffix if given an `-o' 3739 # argument, so we may need to know it at that point already. 3740 # Even if this section looks crufty: it has the advantage of 3741 # actually working. 3742 break;; 3743 * ) 3744 break;; 3745 esac 3746done 3747test "$ac_cv_exeext" = no && ac_cv_exeext= 3748 3749else 3750 ac_file='' 3751fi 3752if test -z "$ac_file"; then : 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3754$as_echo "no" >&6; } 3755$as_echo "$as_me: failed program was:" >&5 3756sed 's/^/| /' conftest.$ac_ext >&5 3757 3758{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3760as_fn_error 77 "C compiler cannot create executables 3761See \`config.log' for more details" "$LINENO" 5; } 3762else 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3764$as_echo "yes" >&6; } 3765fi 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3767$as_echo_n "checking for C compiler default output file name... " >&6; } 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3769$as_echo "$ac_file" >&6; } 3770ac_exeext=$ac_cv_exeext 3771 3772rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3773ac_clean_files=$ac_clean_files_save 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3775$as_echo_n "checking for suffix of executables... " >&6; } 3776if { { ac_try="$ac_link" 3777case "(($ac_try" in 3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3779 *) ac_try_echo=$ac_try;; 3780esac 3781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3782$as_echo "$ac_try_echo"; } >&5 3783 (eval "$ac_link") 2>&5 3784 ac_status=$? 3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3786 test $ac_status = 0; }; then : 3787 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3788# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3789# work properly (i.e., refer to `conftest.exe'), while it won't with 3790# `rm'. 3791for ac_file in conftest.exe conftest conftest.*; do 3792 test -f "$ac_file" || continue 3793 case $ac_file in 3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3795 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3796 break;; 3797 * ) break;; 3798 esac 3799done 3800else 3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3803as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3804See \`config.log' for more details" "$LINENO" 5; } 3805fi 3806rm -f conftest conftest$ac_cv_exeext 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3808$as_echo "$ac_cv_exeext" >&6; } 3809 3810rm -f conftest.$ac_ext 3811EXEEXT=$ac_cv_exeext 3812ac_exeext=$EXEEXT 3813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3814/* end confdefs.h. */ 3815#include <stdio.h> 3816int 3817main () 3818{ 3819FILE *f = fopen ("conftest.out", "w"); 3820 return ferror (f) || fclose (f) != 0; 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826ac_clean_files="$ac_clean_files conftest.out" 3827# Check that the compiler produces executables we can run. If not, either 3828# the compiler is broken, or we cross compile. 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3830$as_echo_n "checking whether we are cross compiling... " >&6; } 3831if test "$cross_compiling" != yes; then 3832 { { ac_try="$ac_link" 3833case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836esac 3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3838$as_echo "$ac_try_echo"; } >&5 3839 (eval "$ac_link") 2>&5 3840 ac_status=$? 3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; } 3843 if { ac_try='./conftest$ac_cv_exeext' 3844 { { case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847esac 3848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3849$as_echo "$ac_try_echo"; } >&5 3850 (eval "$ac_try") 2>&5 3851 ac_status=$? 3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3853 test $ac_status = 0; }; }; then 3854 cross_compiling=no 3855 else 3856 if test "$cross_compiling" = maybe; then 3857 cross_compiling=yes 3858 else 3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3861as_fn_error $? "cannot run C compiled programs. 3862If you meant to cross compile, use \`--host'. 3863See \`config.log' for more details" "$LINENO" 5; } 3864 fi 3865 fi 3866fi 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3868$as_echo "$cross_compiling" >&6; } 3869 3870rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3871ac_clean_files=$ac_clean_files_save 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3873$as_echo_n "checking for suffix of object files... " >&6; } 3874if ${ac_cv_objext+:} false; then : 3875 $as_echo_n "(cached) " >&6 3876else 3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3878/* end confdefs.h. */ 3879 3880int 3881main () 3882{ 3883 3884 ; 3885 return 0; 3886} 3887_ACEOF 3888rm -f conftest.o conftest.obj 3889if { { ac_try="$ac_compile" 3890case "(($ac_try" in 3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3892 *) ac_try_echo=$ac_try;; 3893esac 3894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3895$as_echo "$ac_try_echo"; } >&5 3896 (eval "$ac_compile") 2>&5 3897 ac_status=$? 3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3899 test $ac_status = 0; }; then : 3900 for ac_file in conftest.o conftest.obj conftest.*; do 3901 test -f "$ac_file" || continue; 3902 case $ac_file in 3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3904 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3905 break;; 3906 esac 3907done 3908else 3909 $as_echo "$as_me: failed program was:" >&5 3910sed 's/^/| /' conftest.$ac_ext >&5 3911 3912{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3914as_fn_error $? "cannot compute suffix of object files: cannot compile 3915See \`config.log' for more details" "$LINENO" 5; } 3916fi 3917rm -f conftest.$ac_cv_objext conftest.$ac_ext 3918fi 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3920$as_echo "$ac_cv_objext" >&6; } 3921OBJEXT=$ac_cv_objext 3922ac_objext=$OBJEXT 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3924$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3925if ${ac_cv_c_compiler_gnu+:} false; then : 3926 $as_echo_n "(cached) " >&6 3927else 3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3929/* end confdefs.h. */ 3930 3931int 3932main () 3933{ 3934#ifndef __GNUC__ 3935 choke me 3936#endif 3937 3938 ; 3939 return 0; 3940} 3941_ACEOF 3942if ac_fn_c_try_compile "$LINENO"; then : 3943 ac_compiler_gnu=yes 3944else 3945 ac_compiler_gnu=no 3946fi 3947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3948ac_cv_c_compiler_gnu=$ac_compiler_gnu 3949 3950fi 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3952$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3953if test $ac_compiler_gnu = yes; then 3954 GCC=yes 3955else 3956 GCC= 3957fi 3958ac_test_CFLAGS=${CFLAGS+set} 3959ac_save_CFLAGS=$CFLAGS 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3961$as_echo_n "checking whether $CC accepts -g... " >&6; } 3962if ${ac_cv_prog_cc_g+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 ac_save_c_werror_flag=$ac_c_werror_flag 3966 ac_c_werror_flag=yes 3967 ac_cv_prog_cc_g=no 3968 CFLAGS="-g" 3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3970/* end confdefs.h. */ 3971 3972int 3973main () 3974{ 3975 3976 ; 3977 return 0; 3978} 3979_ACEOF 3980if ac_fn_c_try_compile "$LINENO"; then : 3981 ac_cv_prog_cc_g=yes 3982else 3983 CFLAGS="" 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986 3987int 3988main () 3989{ 3990 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995if ac_fn_c_try_compile "$LINENO"; then : 3996 3997else 3998 ac_c_werror_flag=$ac_save_c_werror_flag 3999 CFLAGS="-g" 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003int 4004main () 4005{ 4006 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_compile "$LINENO"; then : 4012 ac_cv_prog_cc_g=yes 4013fi 4014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4015fi 4016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4017fi 4018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4019 ac_c_werror_flag=$ac_save_c_werror_flag 4020fi 4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4022$as_echo "$ac_cv_prog_cc_g" >&6; } 4023if test "$ac_test_CFLAGS" = set; then 4024 CFLAGS=$ac_save_CFLAGS 4025elif test $ac_cv_prog_cc_g = yes; then 4026 if test "$GCC" = yes; then 4027 CFLAGS="-g " 4028 else 4029 CFLAGS="-g" 4030 fi 4031else 4032 if test "$GCC" = yes; then 4033 CFLAGS="" 4034 else 4035 CFLAGS= 4036 fi 4037fi 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4039$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4040if ${ac_cv_prog_cc_c89+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 ac_cv_prog_cc_c89=no 4044ac_save_CC=$CC 4045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047#include <stdarg.h> 4048#include <stdio.h> 4049struct stat; 4050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4051struct buf { int x; }; 4052FILE * (*rcsopen) (struct buf *, struct stat *, int); 4053static char *e (p, i) 4054 char **p; 4055 int i; 4056{ 4057 return p[i]; 4058} 4059static char *f (char * (*g) (char **, int), char **p, ...) 4060{ 4061 char *s; 4062 va_list v; 4063 va_start (v,p); 4064 s = g (p, va_arg (v,int)); 4065 va_end (v); 4066 return s; 4067} 4068 4069/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4070 function prototypes and stuff, but not '\xHH' hex character constants. 4071 These don't provoke an error unfortunately, instead are silently treated 4072 as 'x'. The following induces an error, until -std is added to get 4073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4074 array size at least. It's necessary to write '\x00'==0 to get something 4075 that's true only with -std. */ 4076int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4077 4078/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4079 inside strings and character constants. */ 4080#define FOO(x) 'x' 4081int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4082 4083int test (int i, double x); 4084struct s1 {int (*f) (int a);}; 4085struct s2 {int (*f) (double a);}; 4086int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4087int argc; 4088char **argv; 4089int 4090main () 4091{ 4092return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4093 ; 4094 return 0; 4095} 4096_ACEOF 4097for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4098 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4099do 4100 CC="$ac_save_CC $ac_arg" 4101 if ac_fn_c_try_compile "$LINENO"; then : 4102 ac_cv_prog_cc_c89=$ac_arg 4103fi 4104rm -f core conftest.err conftest.$ac_objext 4105 test "x$ac_cv_prog_cc_c89" != "xno" && break 4106done 4107rm -f conftest.$ac_ext 4108CC=$ac_save_CC 4109 4110fi 4111# AC_CACHE_VAL 4112case "x$ac_cv_prog_cc_c89" in 4113 x) 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4115$as_echo "none needed" >&6; } ;; 4116 xno) 4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4118$as_echo "unsupported" >&6; } ;; 4119 *) 4120 CC="$CC $ac_cv_prog_cc_c89" 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4122$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4123esac 4124if test "x$ac_cv_prog_cc_c89" != xno; then : 4125 4126fi 4127 4128ac_ext=c 4129ac_cpp='$CPP $CPPFLAGS' 4130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4132ac_compiler_gnu=$ac_cv_c_compiler_gnu 4133 4134ac_ext=c 4135ac_cpp='$CPP $CPPFLAGS' 4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4138ac_compiler_gnu=$ac_cv_c_compiler_gnu 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4140$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4141if ${am_cv_prog_cc_c_o+:} false; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146 4147int 4148main () 4149{ 4150 4151 ; 4152 return 0; 4153} 4154_ACEOF 4155 # Make sure it works both with $CC and with simple cc. 4156 # Following AC_PROG_CC_C_O, we do the test twice because some 4157 # compilers refuse to overwrite an existing .o file with -o, 4158 # though they will create one. 4159 am_cv_prog_cc_c_o=yes 4160 for am_i in 1 2; do 4161 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4162 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4163 ac_status=$? 4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4165 (exit $ac_status); } \ 4166 && test -f conftest2.$ac_objext; then 4167 : OK 4168 else 4169 am_cv_prog_cc_c_o=no 4170 break 4171 fi 4172 done 4173 rm -f core conftest* 4174 unset am_i 4175fi 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4177$as_echo "$am_cv_prog_cc_c_o" >&6; } 4178if test "$am_cv_prog_cc_c_o" != yes; then 4179 # Losing compiler, so override with the script. 4180 # FIXME: It is wrong to rewrite CC. 4181 # But if we don't then we get into trouble of one sort or another. 4182 # A longer-term fix would be to have automake use am__CC in this case, 4183 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4184 CC="$am_aux_dir/compile $CC" 4185fi 4186ac_ext=c 4187ac_cpp='$CPP $CPPFLAGS' 4188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4190ac_compiler_gnu=$ac_cv_c_compiler_gnu 4191 4192 4193depcc="$CC" am_compiler_list= 4194 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4196$as_echo_n "checking dependency style of $depcc... " >&6; } 4197if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4198 $as_echo_n "(cached) " >&6 4199else 4200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4201 # We make a subdir and do the tests there. Otherwise we can end up 4202 # making bogus files that we don't know about and never remove. For 4203 # instance it was reported that on HP-UX the gcc test will end up 4204 # making a dummy file named 'D' -- because '-MD' means "put the output 4205 # in D". 4206 rm -rf conftest.dir 4207 mkdir conftest.dir 4208 # Copy depcomp to subdir because otherwise we won't find it if we're 4209 # using a relative directory. 4210 cp "$am_depcomp" conftest.dir 4211 cd conftest.dir 4212 # We will build objects and dependencies in a subdirectory because 4213 # it helps to detect inapplicable dependency modes. For instance 4214 # both Tru64's cc and ICC support -MD to output dependencies as a 4215 # side effect of compilation, but ICC will put the dependencies in 4216 # the current directory while Tru64 will put them in the object 4217 # directory. 4218 mkdir sub 4219 4220 am_cv_CC_dependencies_compiler_type=none 4221 if test "$am_compiler_list" = ""; then 4222 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4223 fi 4224 am__universal=false 4225 case " $depcc " in #( 4226 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4227 esac 4228 4229 for depmode in $am_compiler_list; do 4230 # Setup a source with many dependencies, because some compilers 4231 # like to wrap large dependency lists on column 80 (with \), and 4232 # we should not choose a depcomp mode which is confused by this. 4233 # 4234 # We need to recreate these files for each test, as the compiler may 4235 # overwrite some of them when testing with obscure command lines. 4236 # This happens at least with the AIX C compiler. 4237 : > sub/conftest.c 4238 for i in 1 2 3 4 5 6; do 4239 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4240 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4241 # Solaris 10 /bin/sh. 4242 echo '/* dummy */' > sub/conftst$i.h 4243 done 4244 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4245 4246 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4247 # mode. It turns out that the SunPro C++ compiler does not properly 4248 # handle '-M -o', and we need to detect this. Also, some Intel 4249 # versions had trouble with output in subdirs. 4250 am__obj=sub/conftest.${OBJEXT-o} 4251 am__minus_obj="-o $am__obj" 4252 case $depmode in 4253 gcc) 4254 # This depmode causes a compiler race in universal mode. 4255 test "$am__universal" = false || continue 4256 ;; 4257 nosideeffect) 4258 # After this tag, mechanisms are not by side-effect, so they'll 4259 # only be used when explicitly requested. 4260 if test "x$enable_dependency_tracking" = xyes; then 4261 continue 4262 else 4263 break 4264 fi 4265 ;; 4266 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4267 # This compiler won't grok '-c -o', but also, the minuso test has 4268 # not run yet. These depmodes are late enough in the game, and 4269 # so weak that their functioning should not be impacted. 4270 am__obj=conftest.${OBJEXT-o} 4271 am__minus_obj= 4272 ;; 4273 none) break ;; 4274 esac 4275 if depmode=$depmode \ 4276 source=sub/conftest.c object=$am__obj \ 4277 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4278 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4279 >/dev/null 2>conftest.err && 4280 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4281 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4282 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4283 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4284 # icc doesn't choke on unknown options, it will just issue warnings 4285 # or remarks (even with -Werror). So we grep stderr for any message 4286 # that says an option was ignored or not supported. 4287 # When given -MP, icc 7.0 and 7.1 complain thusly: 4288 # icc: Command line warning: ignoring option '-M'; no argument required 4289 # The diagnosis changed in icc 8.0: 4290 # icc: Command line remark: option '-MP' not supported 4291 if (grep 'ignoring option' conftest.err || 4292 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4293 am_cv_CC_dependencies_compiler_type=$depmode 4294 break 4295 fi 4296 fi 4297 done 4298 4299 cd .. 4300 rm -rf conftest.dir 4301else 4302 am_cv_CC_dependencies_compiler_type=none 4303fi 4304 4305fi 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4307$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4308CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4309 4310 if 4311 test "x$enable_dependency_tracking" != xno \ 4312 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4313 am__fastdepCC_TRUE= 4314 am__fastdepCC_FALSE='#' 4315else 4316 am__fastdepCC_TRUE='#' 4317 am__fastdepCC_FALSE= 4318fi 4319 4320 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4322$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4323if ${ac_cv_path_SED+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4327 for ac_i in 1 2 3 4 5 6 7; do 4328 ac_script="$ac_script$as_nl$ac_script" 4329 done 4330 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4331 { ac_script=; unset ac_script;} 4332 if test -z "$SED"; then 4333 ac_path_SED_found=false 4334 # Loop through the user's path and test for each of PROGNAME-LIST 4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4336for as_dir in $PATH 4337do 4338 IFS=$as_save_IFS 4339 test -z "$as_dir" && as_dir=. 4340 for ac_prog in sed gsed; do 4341 for ac_exec_ext in '' $ac_executable_extensions; do 4342 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4343 as_fn_executable_p "$ac_path_SED" || continue 4344# Check for GNU ac_path_SED and select it if it is found. 4345 # Check for GNU $ac_path_SED 4346case `"$ac_path_SED" --version 2>&1` in 4347*GNU*) 4348 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4349*) 4350 ac_count=0 4351 $as_echo_n 0123456789 >"conftest.in" 4352 while : 4353 do 4354 cat "conftest.in" "conftest.in" >"conftest.tmp" 4355 mv "conftest.tmp" "conftest.in" 4356 cp "conftest.in" "conftest.nl" 4357 $as_echo '' >> "conftest.nl" 4358 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4359 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4360 as_fn_arith $ac_count + 1 && ac_count=$as_val 4361 if test $ac_count -gt ${ac_path_SED_max-0}; then 4362 # Best one so far, save it but keep looking for a better one 4363 ac_cv_path_SED="$ac_path_SED" 4364 ac_path_SED_max=$ac_count 4365 fi 4366 # 10*(2^10) chars as input seems more than enough 4367 test $ac_count -gt 10 && break 4368 done 4369 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4370esac 4371 4372 $ac_path_SED_found && break 3 4373 done 4374 done 4375 done 4376IFS=$as_save_IFS 4377 if test -z "$ac_cv_path_SED"; then 4378 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4379 fi 4380else 4381 ac_cv_path_SED=$SED 4382fi 4383 4384fi 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4386$as_echo "$ac_cv_path_SED" >&6; } 4387 SED="$ac_cv_path_SED" 4388 rm -f conftest.sed 4389 4390test -z "$SED" && SED=sed 4391Xsed="$SED -e 1s/^X//" 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4404$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4405if ${ac_cv_path_GREP+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 if test -z "$GREP"; then 4409 ac_path_GREP_found=false 4410 # Loop through the user's path and test for each of PROGNAME-LIST 4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4413do 4414 IFS=$as_save_IFS 4415 test -z "$as_dir" && as_dir=. 4416 for ac_prog in grep ggrep; do 4417 for ac_exec_ext in '' $ac_executable_extensions; do 4418 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4419 as_fn_executable_p "$ac_path_GREP" || continue 4420# Check for GNU ac_path_GREP and select it if it is found. 4421 # Check for GNU $ac_path_GREP 4422case `"$ac_path_GREP" --version 2>&1` in 4423*GNU*) 4424 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4425*) 4426 ac_count=0 4427 $as_echo_n 0123456789 >"conftest.in" 4428 while : 4429 do 4430 cat "conftest.in" "conftest.in" >"conftest.tmp" 4431 mv "conftest.tmp" "conftest.in" 4432 cp "conftest.in" "conftest.nl" 4433 $as_echo 'GREP' >> "conftest.nl" 4434 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4436 as_fn_arith $ac_count + 1 && ac_count=$as_val 4437 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4438 # Best one so far, save it but keep looking for a better one 4439 ac_cv_path_GREP="$ac_path_GREP" 4440 ac_path_GREP_max=$ac_count 4441 fi 4442 # 10*(2^10) chars as input seems more than enough 4443 test $ac_count -gt 10 && break 4444 done 4445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4446esac 4447 4448 $ac_path_GREP_found && break 3 4449 done 4450 done 4451 done 4452IFS=$as_save_IFS 4453 if test -z "$ac_cv_path_GREP"; then 4454 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4455 fi 4456else 4457 ac_cv_path_GREP=$GREP 4458fi 4459 4460fi 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4462$as_echo "$ac_cv_path_GREP" >&6; } 4463 GREP="$ac_cv_path_GREP" 4464 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4467$as_echo_n "checking for egrep... " >&6; } 4468if ${ac_cv_path_EGREP+:} false; then : 4469 $as_echo_n "(cached) " >&6 4470else 4471 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4472 then ac_cv_path_EGREP="$GREP -E" 4473 else 4474 if test -z "$EGREP"; then 4475 ac_path_EGREP_found=false 4476 # Loop through the user's path and test for each of PROGNAME-LIST 4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4478for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4479do 4480 IFS=$as_save_IFS 4481 test -z "$as_dir" && as_dir=. 4482 for ac_prog in egrep; do 4483 for ac_exec_ext in '' $ac_executable_extensions; do 4484 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4485 as_fn_executable_p "$ac_path_EGREP" || continue 4486# Check for GNU ac_path_EGREP and select it if it is found. 4487 # Check for GNU $ac_path_EGREP 4488case `"$ac_path_EGREP" --version 2>&1` in 4489*GNU*) 4490 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4491*) 4492 ac_count=0 4493 $as_echo_n 0123456789 >"conftest.in" 4494 while : 4495 do 4496 cat "conftest.in" "conftest.in" >"conftest.tmp" 4497 mv "conftest.tmp" "conftest.in" 4498 cp "conftest.in" "conftest.nl" 4499 $as_echo 'EGREP' >> "conftest.nl" 4500 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4502 as_fn_arith $ac_count + 1 && ac_count=$as_val 4503 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4504 # Best one so far, save it but keep looking for a better one 4505 ac_cv_path_EGREP="$ac_path_EGREP" 4506 ac_path_EGREP_max=$ac_count 4507 fi 4508 # 10*(2^10) chars as input seems more than enough 4509 test $ac_count -gt 10 && break 4510 done 4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4512esac 4513 4514 $ac_path_EGREP_found && break 3 4515 done 4516 done 4517 done 4518IFS=$as_save_IFS 4519 if test -z "$ac_cv_path_EGREP"; then 4520 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4521 fi 4522else 4523 ac_cv_path_EGREP=$EGREP 4524fi 4525 4526 fi 4527fi 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4529$as_echo "$ac_cv_path_EGREP" >&6; } 4530 EGREP="$ac_cv_path_EGREP" 4531 4532 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4534$as_echo_n "checking for fgrep... " >&6; } 4535if ${ac_cv_path_FGREP+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537else 4538 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4539 then ac_cv_path_FGREP="$GREP -F" 4540 else 4541 if test -z "$FGREP"; then 4542 ac_path_FGREP_found=false 4543 # Loop through the user's path and test for each of PROGNAME-LIST 4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4545for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4546do 4547 IFS=$as_save_IFS 4548 test -z "$as_dir" && as_dir=. 4549 for ac_prog in fgrep; do 4550 for ac_exec_ext in '' $ac_executable_extensions; do 4551 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4552 as_fn_executable_p "$ac_path_FGREP" || continue 4553# Check for GNU ac_path_FGREP and select it if it is found. 4554 # Check for GNU $ac_path_FGREP 4555case `"$ac_path_FGREP" --version 2>&1` in 4556*GNU*) 4557 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4558*) 4559 ac_count=0 4560 $as_echo_n 0123456789 >"conftest.in" 4561 while : 4562 do 4563 cat "conftest.in" "conftest.in" >"conftest.tmp" 4564 mv "conftest.tmp" "conftest.in" 4565 cp "conftest.in" "conftest.nl" 4566 $as_echo 'FGREP' >> "conftest.nl" 4567 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4569 as_fn_arith $ac_count + 1 && ac_count=$as_val 4570 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4571 # Best one so far, save it but keep looking for a better one 4572 ac_cv_path_FGREP="$ac_path_FGREP" 4573 ac_path_FGREP_max=$ac_count 4574 fi 4575 # 10*(2^10) chars as input seems more than enough 4576 test $ac_count -gt 10 && break 4577 done 4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4579esac 4580 4581 $ac_path_FGREP_found && break 3 4582 done 4583 done 4584 done 4585IFS=$as_save_IFS 4586 if test -z "$ac_cv_path_FGREP"; then 4587 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4588 fi 4589else 4590 ac_cv_path_FGREP=$FGREP 4591fi 4592 4593 fi 4594fi 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4596$as_echo "$ac_cv_path_FGREP" >&6; } 4597 FGREP="$ac_cv_path_FGREP" 4598 4599 4600test -z "$GREP" && GREP=grep 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620# Check whether --with-gnu-ld was given. 4621if test "${with_gnu_ld+set}" = set; then : 4622 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4623else 4624 with_gnu_ld=no 4625fi 4626 4627ac_prog=ld 4628if test yes = "$GCC"; then 4629 # Check if gcc -print-prog-name=ld gives a path. 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4631$as_echo_n "checking for ld used by $CC... " >&6; } 4632 case $host in 4633 *-*-mingw*) 4634 # gcc leaves a trailing carriage return, which upsets mingw 4635 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4636 *) 4637 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4638 esac 4639 case $ac_prog in 4640 # Accept absolute paths. 4641 [\\/]* | ?:[\\/]*) 4642 re_direlt='/[^/][^/]*/\.\./' 4643 # Canonicalize the pathname of ld 4644 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4645 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4646 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4647 done 4648 test -z "$LD" && LD=$ac_prog 4649 ;; 4650 "") 4651 # If it fails, then pretend we aren't using GCC. 4652 ac_prog=ld 4653 ;; 4654 *) 4655 # If it is relative, then search for the first ld in PATH. 4656 with_gnu_ld=unknown 4657 ;; 4658 esac 4659elif test yes = "$with_gnu_ld"; then 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4661$as_echo_n "checking for GNU ld... " >&6; } 4662else 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4664$as_echo_n "checking for non-GNU ld... " >&6; } 4665fi 4666if ${lt_cv_path_LD+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 if test -z "$LD"; then 4670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4671 for ac_dir in $PATH; do 4672 IFS=$lt_save_ifs 4673 test -z "$ac_dir" && ac_dir=. 4674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4675 lt_cv_path_LD=$ac_dir/$ac_prog 4676 # Check to see if the program is GNU ld. I'd rather use --version, 4677 # but apparently some variants of GNU ld only accept -v. 4678 # Break only if it was the GNU/non-GNU ld that we prefer. 4679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4680 *GNU* | *'with BFD'*) 4681 test no != "$with_gnu_ld" && break 4682 ;; 4683 *) 4684 test yes != "$with_gnu_ld" && break 4685 ;; 4686 esac 4687 fi 4688 done 4689 IFS=$lt_save_ifs 4690else 4691 lt_cv_path_LD=$LD # Let the user override the test with a path. 4692fi 4693fi 4694 4695LD=$lt_cv_path_LD 4696if test -n "$LD"; then 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4698$as_echo "$LD" >&6; } 4699else 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4701$as_echo "no" >&6; } 4702fi 4703test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4705$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4706if ${lt_cv_prog_gnu_ld+:} false; then : 4707 $as_echo_n "(cached) " >&6 4708else 4709 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4710case `$LD -v 2>&1 </dev/null` in 4711*GNU* | *'with BFD'*) 4712 lt_cv_prog_gnu_ld=yes 4713 ;; 4714*) 4715 lt_cv_prog_gnu_ld=no 4716 ;; 4717esac 4718fi 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4720$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4721with_gnu_ld=$lt_cv_prog_gnu_ld 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4732$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4733if ${lt_cv_path_NM+:} false; then : 4734 $as_echo_n "(cached) " >&6 4735else 4736 if test -n "$NM"; then 4737 # Let the user override the test. 4738 lt_cv_path_NM=$NM 4739else 4740 lt_nm_to_check=${ac_tool_prefix}nm 4741 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4742 lt_nm_to_check="$lt_nm_to_check nm" 4743 fi 4744 for lt_tmp_nm in $lt_nm_to_check; do 4745 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4746 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4747 IFS=$lt_save_ifs 4748 test -z "$ac_dir" && ac_dir=. 4749 tmp_nm=$ac_dir/$lt_tmp_nm 4750 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4751 # Check to see if the nm accepts a BSD-compat flag. 4752 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4753 # nm: unknown option "B" ignored 4754 # Tru64's nm complains that /dev/null is an invalid object file 4755 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4756 case $build_os in 4757 mingw*) lt_bad_file=conftest.nm/nofile ;; 4758 *) lt_bad_file=/dev/null ;; 4759 esac 4760 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4761 *$lt_bad_file* | *'Invalid file or object type'*) 4762 lt_cv_path_NM="$tmp_nm -B" 4763 break 2 4764 ;; 4765 *) 4766 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4767 */dev/null*) 4768 lt_cv_path_NM="$tmp_nm -p" 4769 break 2 4770 ;; 4771 *) 4772 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4773 continue # so that we can try to find one that supports BSD flags 4774 ;; 4775 esac 4776 ;; 4777 esac 4778 fi 4779 done 4780 IFS=$lt_save_ifs 4781 done 4782 : ${lt_cv_path_NM=no} 4783fi 4784fi 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4786$as_echo "$lt_cv_path_NM" >&6; } 4787if test no != "$lt_cv_path_NM"; then 4788 NM=$lt_cv_path_NM 4789else 4790 # Didn't find any BSD compatible name lister, look for dumpbin. 4791 if test -n "$DUMPBIN"; then : 4792 # Let the user override the test. 4793 else 4794 if test -n "$ac_tool_prefix"; then 4795 for ac_prog in dumpbin "link -dump" 4796 do 4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800$as_echo_n "checking for $ac_word... " >&6; } 4801if ${ac_cv_prog_DUMPBIN+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 if test -n "$DUMPBIN"; then 4805 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4806else 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808for as_dir in $PATH 4809do 4810 IFS=$as_save_IFS 4811 test -z "$as_dir" && as_dir=. 4812 for ac_exec_ext in '' $ac_executable_extensions; do 4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4814 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4816 break 2 4817 fi 4818done 4819 done 4820IFS=$as_save_IFS 4821 4822fi 4823fi 4824DUMPBIN=$ac_cv_prog_DUMPBIN 4825if test -n "$DUMPBIN"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4827$as_echo "$DUMPBIN" >&6; } 4828else 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4830$as_echo "no" >&6; } 4831fi 4832 4833 4834 test -n "$DUMPBIN" && break 4835 done 4836fi 4837if test -z "$DUMPBIN"; then 4838 ac_ct_DUMPBIN=$DUMPBIN 4839 for ac_prog in dumpbin "link -dump" 4840do 4841 # Extract the first word of "$ac_prog", so it can be a program name with args. 4842set dummy $ac_prog; ac_word=$2 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4844$as_echo_n "checking for $ac_word... " >&6; } 4845if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 if test -n "$ac_ct_DUMPBIN"; then 4849 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4850else 4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4852for as_dir in $PATH 4853do 4854 IFS=$as_save_IFS 4855 test -z "$as_dir" && as_dir=. 4856 for ac_exec_ext in '' $ac_executable_extensions; do 4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4858 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4860 break 2 4861 fi 4862done 4863 done 4864IFS=$as_save_IFS 4865 4866fi 4867fi 4868ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4869if test -n "$ac_ct_DUMPBIN"; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4871$as_echo "$ac_ct_DUMPBIN" >&6; } 4872else 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4874$as_echo "no" >&6; } 4875fi 4876 4877 4878 test -n "$ac_ct_DUMPBIN" && break 4879done 4880 4881 if test "x$ac_ct_DUMPBIN" = x; then 4882 DUMPBIN=":" 4883 else 4884 case $cross_compiling:$ac_tool_warned in 4885yes:) 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4888ac_tool_warned=yes ;; 4889esac 4890 DUMPBIN=$ac_ct_DUMPBIN 4891 fi 4892fi 4893 4894 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4895 *COFF*) 4896 DUMPBIN="$DUMPBIN -symbols -headers" 4897 ;; 4898 *) 4899 DUMPBIN=: 4900 ;; 4901 esac 4902 fi 4903 4904 if test : != "$DUMPBIN"; then 4905 NM=$DUMPBIN 4906 fi 4907fi 4908test -z "$NM" && NM=nm 4909 4910 4911 4912 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4916$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4917if ${lt_cv_nm_interface+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 lt_cv_nm_interface="BSD nm" 4921 echo "int some_variable = 0;" > conftest.$ac_ext 4922 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4923 (eval "$ac_compile" 2>conftest.err) 4924 cat conftest.err >&5 4925 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4926 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4927 cat conftest.err >&5 4928 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4929 cat conftest.out >&5 4930 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4931 lt_cv_nm_interface="MS dumpbin" 4932 fi 4933 rm -f conftest* 4934fi 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4936$as_echo "$lt_cv_nm_interface" >&6; } 4937 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4939$as_echo_n "checking whether ln -s works... " >&6; } 4940LN_S=$as_ln_s 4941if test "$LN_S" = "ln -s"; then 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4943$as_echo "yes" >&6; } 4944else 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4946$as_echo "no, using $LN_S" >&6; } 4947fi 4948 4949# find the maximum length of command line arguments 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4951$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4952if ${lt_cv_sys_max_cmd_len+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 i=0 4956 teststring=ABCD 4957 4958 case $build_os in 4959 msdosdjgpp*) 4960 # On DJGPP, this test can blow up pretty badly due to problems in libc 4961 # (any single argument exceeding 2000 bytes causes a buffer overrun 4962 # during glob expansion). Even if it were fixed, the result of this 4963 # check would be larger than it should be. 4964 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4965 ;; 4966 4967 gnu*) 4968 # Under GNU Hurd, this test is not required because there is 4969 # no limit to the length of command line arguments. 4970 # Libtool will interpret -1 as no limit whatsoever 4971 lt_cv_sys_max_cmd_len=-1; 4972 ;; 4973 4974 cygwin* | mingw* | cegcc*) 4975 # On Win9x/ME, this test blows up -- it succeeds, but takes 4976 # about 5 minutes as the teststring grows exponentially. 4977 # Worse, since 9x/ME are not pre-emptively multitasking, 4978 # you end up with a "frozen" computer, even though with patience 4979 # the test eventually succeeds (with a max line length of 256k). 4980 # Instead, let's just punt: use the minimum linelength reported by 4981 # all of the supported platforms: 8192 (on NT/2K/XP). 4982 lt_cv_sys_max_cmd_len=8192; 4983 ;; 4984 4985 mint*) 4986 # On MiNT this can take a long time and run out of memory. 4987 lt_cv_sys_max_cmd_len=8192; 4988 ;; 4989 4990 amigaos*) 4991 # On AmigaOS with pdksh, this test takes hours, literally. 4992 # So we just punt and use a minimum line length of 8192. 4993 lt_cv_sys_max_cmd_len=8192; 4994 ;; 4995 4996 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4997 # This has been around since 386BSD, at least. Likely further. 4998 if test -x /sbin/sysctl; then 4999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5000 elif test -x /usr/sbin/sysctl; then 5001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5002 else 5003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5004 fi 5005 # And add a safety zone 5006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5008 ;; 5009 5010 interix*) 5011 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5012 lt_cv_sys_max_cmd_len=196608 5013 ;; 5014 5015 os2*) 5016 # The test takes a long time on OS/2. 5017 lt_cv_sys_max_cmd_len=8192 5018 ;; 5019 5020 osf*) 5021 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5022 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5023 # nice to cause kernel panics so lets avoid the loop below. 5024 # First set a reasonable default. 5025 lt_cv_sys_max_cmd_len=16384 5026 # 5027 if test -x /sbin/sysconfig; then 5028 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5029 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5030 esac 5031 fi 5032 ;; 5033 sco3.2v5*) 5034 lt_cv_sys_max_cmd_len=102400 5035 ;; 5036 sysv5* | sco5v6* | sysv4.2uw2*) 5037 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5038 if test -n "$kargmax"; then 5039 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5040 else 5041 lt_cv_sys_max_cmd_len=32768 5042 fi 5043 ;; 5044 *) 5045 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5046 if test -n "$lt_cv_sys_max_cmd_len" && \ 5047 test undefined != "$lt_cv_sys_max_cmd_len"; then 5048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5050 else 5051 # Make teststring a little bigger before we do anything with it. 5052 # a 1K string should be a reasonable start. 5053 for i in 1 2 3 4 5 6 7 8; do 5054 teststring=$teststring$teststring 5055 done 5056 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5057 # If test is not a shell built-in, we'll probably end up computing a 5058 # maximum length that is only half of the actual maximum length, but 5059 # we can't tell. 5060 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5061 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5062 test 17 != "$i" # 1/2 MB should be enough 5063 do 5064 i=`expr $i + 1` 5065 teststring=$teststring$teststring 5066 done 5067 # Only check the string length outside the loop. 5068 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5069 teststring= 5070 # Add a significant safety factor because C++ compilers can tack on 5071 # massive amounts of additional arguments before passing them to the 5072 # linker. It appears as though 1/2 is a usable value. 5073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5074 fi 5075 ;; 5076 esac 5077 5078fi 5079 5080if test -n "$lt_cv_sys_max_cmd_len"; then 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5082$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5083else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5085$as_echo "none" >&6; } 5086fi 5087max_cmd_len=$lt_cv_sys_max_cmd_len 5088 5089 5090 5091 5092 5093 5094: ${CP="cp -f"} 5095: ${MV="mv -f"} 5096: ${RM="rm -f"} 5097 5098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5099 lt_unset=unset 5100else 5101 lt_unset=false 5102fi 5103 5104 5105 5106 5107 5108# test EBCDIC or ASCII 5109case `echo X|tr X '\101'` in 5110 A) # ASCII based system 5111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5112 lt_SP2NL='tr \040 \012' 5113 lt_NL2SP='tr \015\012 \040\040' 5114 ;; 5115 *) # EBCDIC based system 5116 lt_SP2NL='tr \100 \n' 5117 lt_NL2SP='tr \r\n \100\100' 5118 ;; 5119esac 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5130$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5131if ${lt_cv_to_host_file_cmd+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 case $host in 5135 *-*-mingw* ) 5136 case $build in 5137 *-*-mingw* ) # actually msys 5138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5139 ;; 5140 *-*-cygwin* ) 5141 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5142 ;; 5143 * ) # otherwise, assume *nix 5144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5145 ;; 5146 esac 5147 ;; 5148 *-*-cygwin* ) 5149 case $build in 5150 *-*-mingw* ) # actually msys 5151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5152 ;; 5153 *-*-cygwin* ) 5154 lt_cv_to_host_file_cmd=func_convert_file_noop 5155 ;; 5156 * ) # otherwise, assume *nix 5157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5158 ;; 5159 esac 5160 ;; 5161 * ) # unhandled hosts (and "normal" native builds) 5162 lt_cv_to_host_file_cmd=func_convert_file_noop 5163 ;; 5164esac 5165 5166fi 5167 5168to_host_file_cmd=$lt_cv_to_host_file_cmd 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5170$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5171 5172 5173 5174 5175 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5177$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5178if ${lt_cv_to_tool_file_cmd+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 #assume ordinary cross tools, or native build. 5182lt_cv_to_tool_file_cmd=func_convert_file_noop 5183case $host in 5184 *-*-mingw* ) 5185 case $build in 5186 *-*-mingw* ) # actually msys 5187 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5188 ;; 5189 esac 5190 ;; 5191esac 5192 5193fi 5194 5195to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5197$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5198 5199 5200 5201 5202 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5204$as_echo_n "checking for $LD option to reload object files... " >&6; } 5205if ${lt_cv_ld_reload_flag+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 lt_cv_ld_reload_flag='-r' 5209fi 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5211$as_echo "$lt_cv_ld_reload_flag" >&6; } 5212reload_flag=$lt_cv_ld_reload_flag 5213case $reload_flag in 5214"" | " "*) ;; 5215*) reload_flag=" $reload_flag" ;; 5216esac 5217reload_cmds='$LD$reload_flag -o $output$reload_objs' 5218case $host_os in 5219 cygwin* | mingw* | pw32* | cegcc*) 5220 if test yes != "$GCC"; then 5221 reload_cmds=false 5222 fi 5223 ;; 5224 darwin*) 5225 if test yes = "$GCC"; then 5226 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5227 else 5228 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5229 fi 5230 ;; 5231esac 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241if test -n "$ac_tool_prefix"; then 5242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5243set dummy ${ac_tool_prefix}objdump; ac_word=$2 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5245$as_echo_n "checking for $ac_word... " >&6; } 5246if ${ac_cv_prog_OBJDUMP+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 if test -n "$OBJDUMP"; then 5250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5251else 5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5253for as_dir in $PATH 5254do 5255 IFS=$as_save_IFS 5256 test -z "$as_dir" && as_dir=. 5257 for ac_exec_ext in '' $ac_executable_extensions; do 5258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5261 break 2 5262 fi 5263done 5264 done 5265IFS=$as_save_IFS 5266 5267fi 5268fi 5269OBJDUMP=$ac_cv_prog_OBJDUMP 5270if test -n "$OBJDUMP"; then 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5272$as_echo "$OBJDUMP" >&6; } 5273else 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5275$as_echo "no" >&6; } 5276fi 5277 5278 5279fi 5280if test -z "$ac_cv_prog_OBJDUMP"; then 5281 ac_ct_OBJDUMP=$OBJDUMP 5282 # Extract the first word of "objdump", so it can be a program name with args. 5283set dummy objdump; ac_word=$2 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5285$as_echo_n "checking for $ac_word... " >&6; } 5286if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288else 5289 if test -n "$ac_ct_OBJDUMP"; then 5290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5291else 5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5293for as_dir in $PATH 5294do 5295 IFS=$as_save_IFS 5296 test -z "$as_dir" && as_dir=. 5297 for ac_exec_ext in '' $ac_executable_extensions; do 5298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5299 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5301 break 2 5302 fi 5303done 5304 done 5305IFS=$as_save_IFS 5306 5307fi 5308fi 5309ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5310if test -n "$ac_ct_OBJDUMP"; then 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5312$as_echo "$ac_ct_OBJDUMP" >&6; } 5313else 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5315$as_echo "no" >&6; } 5316fi 5317 5318 if test "x$ac_ct_OBJDUMP" = x; then 5319 OBJDUMP="false" 5320 else 5321 case $cross_compiling:$ac_tool_warned in 5322yes:) 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5325ac_tool_warned=yes ;; 5326esac 5327 OBJDUMP=$ac_ct_OBJDUMP 5328 fi 5329else 5330 OBJDUMP="$ac_cv_prog_OBJDUMP" 5331fi 5332 5333test -z "$OBJDUMP" && OBJDUMP=objdump 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5344$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5345if ${lt_cv_deplibs_check_method+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347else 5348 lt_cv_file_magic_cmd='$MAGIC_CMD' 5349lt_cv_file_magic_test_file= 5350lt_cv_deplibs_check_method='unknown' 5351# Need to set the preceding variable on all platforms that support 5352# interlibrary dependencies. 5353# 'none' -- dependencies not supported. 5354# 'unknown' -- same as none, but documents that we really don't know. 5355# 'pass_all' -- all dependencies passed with no checks. 5356# 'test_compile' -- check by making test program. 5357# 'file_magic [[regex]]' -- check by looking for files in library path 5358# that responds to the $file_magic_cmd with a given extended regex. 5359# If you have 'file' or equivalent on your system and you're not sure 5360# whether 'pass_all' will *always* work, you probably want this one. 5361 5362case $host_os in 5363aix[4-9]*) 5364 lt_cv_deplibs_check_method=pass_all 5365 ;; 5366 5367beos*) 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370 5371bsdi[45]*) 5372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5373 lt_cv_file_magic_cmd='/usr/bin/file -L' 5374 lt_cv_file_magic_test_file=/shlib/libc.so 5375 ;; 5376 5377cygwin*) 5378 # func_win32_libid is a shell function defined in ltmain.sh 5379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5380 lt_cv_file_magic_cmd='func_win32_libid' 5381 ;; 5382 5383mingw* | pw32*) 5384 # Base MSYS/MinGW do not provide the 'file' command needed by 5385 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5386 # unless we find 'file', for example because we are cross-compiling. 5387 if ( file / ) >/dev/null 2>&1; then 5388 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5389 lt_cv_file_magic_cmd='func_win32_libid' 5390 else 5391 # Keep this pattern in sync with the one in func_win32_libid. 5392 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5393 lt_cv_file_magic_cmd='$OBJDUMP -f' 5394 fi 5395 ;; 5396 5397cegcc*) 5398 # use the weaker test based on 'objdump'. See mingw*. 5399 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5400 lt_cv_file_magic_cmd='$OBJDUMP -f' 5401 ;; 5402 5403darwin* | rhapsody*) 5404 lt_cv_deplibs_check_method=pass_all 5405 ;; 5406 5407freebsd* | dragonfly*) 5408 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5409 case $host_cpu in 5410 i*86 ) 5411 # Not sure whether the presence of OpenBSD here was a mistake. 5412 # Let's accept both of them until this is cleared up. 5413 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5414 lt_cv_file_magic_cmd=/usr/bin/file 5415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5416 ;; 5417 esac 5418 else 5419 lt_cv_deplibs_check_method=pass_all 5420 fi 5421 ;; 5422 5423haiku*) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426 5427hpux10.20* | hpux11*) 5428 lt_cv_file_magic_cmd=/usr/bin/file 5429 case $host_cpu in 5430 ia64*) 5431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5432 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5433 ;; 5434 hppa*64*) 5435 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]' 5436 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5437 ;; 5438 *) 5439 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5440 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5441 ;; 5442 esac 5443 ;; 5444 5445interix[3-9]*) 5446 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5448 ;; 5449 5450irix5* | irix6* | nonstopux*) 5451 case $LD in 5452 *-32|*"-32 ") libmagic=32-bit;; 5453 *-n32|*"-n32 ") libmagic=N32;; 5454 *-64|*"-64 ") libmagic=64-bit;; 5455 *) libmagic=never-match;; 5456 esac 5457 lt_cv_deplibs_check_method=pass_all 5458 ;; 5459 5460# This must be glibc/ELF. 5461linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5462 lt_cv_deplibs_check_method=pass_all 5463 ;; 5464 5465netbsd* | netbsdelf*-gnu) 5466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5468 else 5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5470 fi 5471 ;; 5472 5473newos6*) 5474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5475 lt_cv_file_magic_cmd=/usr/bin/file 5476 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5477 ;; 5478 5479*nto* | *qnx*) 5480 lt_cv_deplibs_check_method=pass_all 5481 ;; 5482 5483openbsd* | bitrig*) 5484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5486 else 5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5488 fi 5489 ;; 5490 5491osf3* | osf4* | osf5*) 5492 lt_cv_deplibs_check_method=pass_all 5493 ;; 5494 5495rdos*) 5496 lt_cv_deplibs_check_method=pass_all 5497 ;; 5498 5499solaris*) 5500 lt_cv_deplibs_check_method=pass_all 5501 ;; 5502 5503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 5507sysv4 | sysv4.3*) 5508 case $host_vendor in 5509 motorola) 5510 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]' 5511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5512 ;; 5513 ncr) 5514 lt_cv_deplibs_check_method=pass_all 5515 ;; 5516 sequent) 5517 lt_cv_file_magic_cmd='/bin/file' 5518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5519 ;; 5520 sni) 5521 lt_cv_file_magic_cmd='/bin/file' 5522 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5523 lt_cv_file_magic_test_file=/lib/libc.so 5524 ;; 5525 siemens) 5526 lt_cv_deplibs_check_method=pass_all 5527 ;; 5528 pc) 5529 lt_cv_deplibs_check_method=pass_all 5530 ;; 5531 esac 5532 ;; 5533 5534tpf*) 5535 lt_cv_deplibs_check_method=pass_all 5536 ;; 5537os2*) 5538 lt_cv_deplibs_check_method=pass_all 5539 ;; 5540esac 5541 5542fi 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5544$as_echo "$lt_cv_deplibs_check_method" >&6; } 5545 5546file_magic_glob= 5547want_nocaseglob=no 5548if test "$build" = "$host"; then 5549 case $host_os in 5550 mingw* | pw32*) 5551 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5552 want_nocaseglob=yes 5553 else 5554 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5555 fi 5556 ;; 5557 esac 5558fi 5559 5560file_magic_cmd=$lt_cv_file_magic_cmd 5561deplibs_check_method=$lt_cv_deplibs_check_method 5562test -z "$deplibs_check_method" && deplibs_check_method=unknown 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585if test -n "$ac_tool_prefix"; then 5586 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5587set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5589$as_echo_n "checking for $ac_word... " >&6; } 5590if ${ac_cv_prog_DLLTOOL+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 if test -n "$DLLTOOL"; then 5594 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5595else 5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5597for as_dir in $PATH 5598do 5599 IFS=$as_save_IFS 5600 test -z "$as_dir" && as_dir=. 5601 for ac_exec_ext in '' $ac_executable_extensions; do 5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5603 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5605 break 2 5606 fi 5607done 5608 done 5609IFS=$as_save_IFS 5610 5611fi 5612fi 5613DLLTOOL=$ac_cv_prog_DLLTOOL 5614if test -n "$DLLTOOL"; then 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5616$as_echo "$DLLTOOL" >&6; } 5617else 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5619$as_echo "no" >&6; } 5620fi 5621 5622 5623fi 5624if test -z "$ac_cv_prog_DLLTOOL"; then 5625 ac_ct_DLLTOOL=$DLLTOOL 5626 # Extract the first word of "dlltool", so it can be a program name with args. 5627set dummy dlltool; ac_word=$2 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5629$as_echo_n "checking for $ac_word... " >&6; } 5630if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 if test -n "$ac_ct_DLLTOOL"; then 5634 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5635else 5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_exec_ext in '' $ac_executable_extensions; do 5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5643 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5645 break 2 5646 fi 5647done 5648 done 5649IFS=$as_save_IFS 5650 5651fi 5652fi 5653ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5654if test -n "$ac_ct_DLLTOOL"; then 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5656$as_echo "$ac_ct_DLLTOOL" >&6; } 5657else 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5659$as_echo "no" >&6; } 5660fi 5661 5662 if test "x$ac_ct_DLLTOOL" = x; then 5663 DLLTOOL="false" 5664 else 5665 case $cross_compiling:$ac_tool_warned in 5666yes:) 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5669ac_tool_warned=yes ;; 5670esac 5671 DLLTOOL=$ac_ct_DLLTOOL 5672 fi 5673else 5674 DLLTOOL="$ac_cv_prog_DLLTOOL" 5675fi 5676 5677test -z "$DLLTOOL" && DLLTOOL=dlltool 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5689$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5690if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 lt_cv_sharedlib_from_linklib_cmd='unknown' 5694 5695case $host_os in 5696cygwin* | mingw* | pw32* | cegcc*) 5697 # two different shell functions defined in ltmain.sh; 5698 # decide which one to use based on capabilities of $DLLTOOL 5699 case `$DLLTOOL --help 2>&1` in 5700 *--identify-strict*) 5701 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5702 ;; 5703 *) 5704 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5705 ;; 5706 esac 5707 ;; 5708*) 5709 # fallback: assume linklib IS sharedlib 5710 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5711 ;; 5712esac 5713 5714fi 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5716$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5717sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5718test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5719 5720 5721 5722 5723 5724 5725 5726 5727if test -n "$ac_tool_prefix"; then 5728 for ac_prog in ar 5729 do 5730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5731set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5733$as_echo_n "checking for $ac_word... " >&6; } 5734if ${ac_cv_prog_AR+:} false; then : 5735 $as_echo_n "(cached) " >&6 5736else 5737 if test -n "$AR"; then 5738 ac_cv_prog_AR="$AR" # Let the user override the test. 5739else 5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741for as_dir in $PATH 5742do 5743 IFS=$as_save_IFS 5744 test -z "$as_dir" && as_dir=. 5745 for ac_exec_ext in '' $ac_executable_extensions; do 5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5747 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5749 break 2 5750 fi 5751done 5752 done 5753IFS=$as_save_IFS 5754 5755fi 5756fi 5757AR=$ac_cv_prog_AR 5758if test -n "$AR"; then 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5760$as_echo "$AR" >&6; } 5761else 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5763$as_echo "no" >&6; } 5764fi 5765 5766 5767 test -n "$AR" && break 5768 done 5769fi 5770if test -z "$AR"; then 5771 ac_ct_AR=$AR 5772 for ac_prog in ar 5773do 5774 # Extract the first word of "$ac_prog", so it can be a program name with args. 5775set dummy $ac_prog; ac_word=$2 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5777$as_echo_n "checking for $ac_word... " >&6; } 5778if ${ac_cv_prog_ac_ct_AR+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 if test -n "$ac_ct_AR"; then 5782 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5783else 5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5785for as_dir in $PATH 5786do 5787 IFS=$as_save_IFS 5788 test -z "$as_dir" && as_dir=. 5789 for ac_exec_ext in '' $ac_executable_extensions; do 5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5791 ac_cv_prog_ac_ct_AR="$ac_prog" 5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5793 break 2 5794 fi 5795done 5796 done 5797IFS=$as_save_IFS 5798 5799fi 5800fi 5801ac_ct_AR=$ac_cv_prog_ac_ct_AR 5802if test -n "$ac_ct_AR"; then 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5804$as_echo "$ac_ct_AR" >&6; } 5805else 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807$as_echo "no" >&6; } 5808fi 5809 5810 5811 test -n "$ac_ct_AR" && break 5812done 5813 5814 if test "x$ac_ct_AR" = x; then 5815 AR="false" 5816 else 5817 case $cross_compiling:$ac_tool_warned in 5818yes:) 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5821ac_tool_warned=yes ;; 5822esac 5823 AR=$ac_ct_AR 5824 fi 5825fi 5826 5827: ${AR=ar} 5828: ${AR_FLAGS=cru} 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5841$as_echo_n "checking for archiver @FILE support... " >&6; } 5842if ${lt_cv_ar_at_file+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844else 5845 lt_cv_ar_at_file=no 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848 5849int 5850main () 5851{ 5852 5853 ; 5854 return 0; 5855} 5856_ACEOF 5857if ac_fn_c_try_compile "$LINENO"; then : 5858 echo conftest.$ac_objext > conftest.lst 5859 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5861 (eval $lt_ar_try) 2>&5 5862 ac_status=$? 5863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5864 test $ac_status = 0; } 5865 if test 0 -eq "$ac_status"; then 5866 # Ensure the archiver fails upon bogus file names. 5867 rm -f conftest.$ac_objext libconftest.a 5868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5869 (eval $lt_ar_try) 2>&5 5870 ac_status=$? 5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5872 test $ac_status = 0; } 5873 if test 0 -ne "$ac_status"; then 5874 lt_cv_ar_at_file=@ 5875 fi 5876 fi 5877 rm -f conftest.* libconftest.a 5878 5879fi 5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5881 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5884$as_echo "$lt_cv_ar_at_file" >&6; } 5885 5886if test no = "$lt_cv_ar_at_file"; then 5887 archiver_list_spec= 5888else 5889 archiver_list_spec=$lt_cv_ar_at_file 5890fi 5891 5892 5893 5894 5895 5896 5897 5898if test -n "$ac_tool_prefix"; then 5899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5900set dummy ${ac_tool_prefix}strip; ac_word=$2 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5902$as_echo_n "checking for $ac_word... " >&6; } 5903if ${ac_cv_prog_STRIP+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 if test -n "$STRIP"; then 5907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5908else 5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5910for as_dir in $PATH 5911do 5912 IFS=$as_save_IFS 5913 test -z "$as_dir" && as_dir=. 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5916 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5918 break 2 5919 fi 5920done 5921 done 5922IFS=$as_save_IFS 5923 5924fi 5925fi 5926STRIP=$ac_cv_prog_STRIP 5927if test -n "$STRIP"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5929$as_echo "$STRIP" >&6; } 5930else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932$as_echo "no" >&6; } 5933fi 5934 5935 5936fi 5937if test -z "$ac_cv_prog_STRIP"; then 5938 ac_ct_STRIP=$STRIP 5939 # Extract the first word of "strip", so it can be a program name with args. 5940set dummy strip; ac_word=$2 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5942$as_echo_n "checking for $ac_word... " >&6; } 5943if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5944 $as_echo_n "(cached) " >&6 5945else 5946 if test -n "$ac_ct_STRIP"; then 5947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5948else 5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5950for as_dir in $PATH 5951do 5952 IFS=$as_save_IFS 5953 test -z "$as_dir" && as_dir=. 5954 for ac_exec_ext in '' $ac_executable_extensions; do 5955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5956 ac_cv_prog_ac_ct_STRIP="strip" 5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5958 break 2 5959 fi 5960done 5961 done 5962IFS=$as_save_IFS 5963 5964fi 5965fi 5966ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5967if test -n "$ac_ct_STRIP"; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5969$as_echo "$ac_ct_STRIP" >&6; } 5970else 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5972$as_echo "no" >&6; } 5973fi 5974 5975 if test "x$ac_ct_STRIP" = x; then 5976 STRIP=":" 5977 else 5978 case $cross_compiling:$ac_tool_warned in 5979yes:) 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5982ac_tool_warned=yes ;; 5983esac 5984 STRIP=$ac_ct_STRIP 5985 fi 5986else 5987 STRIP="$ac_cv_prog_STRIP" 5988fi 5989 5990test -z "$STRIP" && STRIP=: 5991 5992 5993 5994 5995 5996 5997if test -n "$ac_tool_prefix"; then 5998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5999set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6001$as_echo_n "checking for $ac_word... " >&6; } 6002if ${ac_cv_prog_RANLIB+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 if test -n "$RANLIB"; then 6006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6007else 6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009for as_dir in $PATH 6010do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6017 break 2 6018 fi 6019done 6020 done 6021IFS=$as_save_IFS 6022 6023fi 6024fi 6025RANLIB=$ac_cv_prog_RANLIB 6026if test -n "$RANLIB"; then 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6028$as_echo "$RANLIB" >&6; } 6029else 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6031$as_echo "no" >&6; } 6032fi 6033 6034 6035fi 6036if test -z "$ac_cv_prog_RANLIB"; then 6037 ac_ct_RANLIB=$RANLIB 6038 # Extract the first word of "ranlib", so it can be a program name with args. 6039set dummy ranlib; ac_word=$2 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6041$as_echo_n "checking for $ac_word... " >&6; } 6042if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 if test -n "$ac_ct_RANLIB"; then 6046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6047else 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH 6050do 6051 IFS=$as_save_IFS 6052 test -z "$as_dir" && as_dir=. 6053 for ac_exec_ext in '' $ac_executable_extensions; do 6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6055 ac_cv_prog_ac_ct_RANLIB="ranlib" 6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6057 break 2 6058 fi 6059done 6060 done 6061IFS=$as_save_IFS 6062 6063fi 6064fi 6065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6066if test -n "$ac_ct_RANLIB"; then 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6068$as_echo "$ac_ct_RANLIB" >&6; } 6069else 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6071$as_echo "no" >&6; } 6072fi 6073 6074 if test "x$ac_ct_RANLIB" = x; then 6075 RANLIB=":" 6076 else 6077 case $cross_compiling:$ac_tool_warned in 6078yes:) 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6081ac_tool_warned=yes ;; 6082esac 6083 RANLIB=$ac_ct_RANLIB 6084 fi 6085else 6086 RANLIB="$ac_cv_prog_RANLIB" 6087fi 6088 6089test -z "$RANLIB" && RANLIB=: 6090 6091 6092 6093 6094 6095 6096# Determine commands to create old-style static archives. 6097old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6098old_postinstall_cmds='chmod 644 $oldlib' 6099old_postuninstall_cmds= 6100 6101if test -n "$RANLIB"; then 6102 case $host_os in 6103 bitrig* | openbsd*) 6104 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6105 ;; 6106 *) 6107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6108 ;; 6109 esac 6110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6111fi 6112 6113case $host_os in 6114 darwin*) 6115 lock_old_archive_extraction=yes ;; 6116 *) 6117 lock_old_archive_extraction=no ;; 6118esac 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158# If no C compiler was specified, use CC. 6159LTCC=${LTCC-"$CC"} 6160 6161# If no C compiler flags were specified, use CFLAGS. 6162LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6163 6164# Allow CC to be a program name with arguments. 6165compiler=$CC 6166 6167 6168# Check for command to grab the raw symbol name followed by C symbol from nm. 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6170$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6171if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 6175# These are sane defaults that work on at least a few old systems. 6176# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6177 6178# Character class describing NM global symbol codes. 6179symcode='[BCDEGRST]' 6180 6181# Regexp to match symbols that can be accessed directly from C. 6182sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6183 6184# Define system-specific variables. 6185case $host_os in 6186aix*) 6187 symcode='[BCDT]' 6188 ;; 6189cygwin* | mingw* | pw32* | cegcc*) 6190 symcode='[ABCDGISTW]' 6191 ;; 6192hpux*) 6193 if test ia64 = "$host_cpu"; then 6194 symcode='[ABCDEGRST]' 6195 fi 6196 ;; 6197irix* | nonstopux*) 6198 symcode='[BCDEGRST]' 6199 ;; 6200osf*) 6201 symcode='[BCDEGQRST]' 6202 ;; 6203solaris*) 6204 symcode='[BDRT]' 6205 ;; 6206sco3.2v5*) 6207 symcode='[DT]' 6208 ;; 6209sysv4.2uw2*) 6210 symcode='[DT]' 6211 ;; 6212sysv5* | sco5v6* | unixware* | OpenUNIX*) 6213 symcode='[ABDT]' 6214 ;; 6215sysv4) 6216 symcode='[DFNSTU]' 6217 ;; 6218esac 6219 6220# If we're using GNU nm, then use its standard symbol codes. 6221case `$NM -V 2>&1` in 6222*GNU* | *'with BFD'*) 6223 symcode='[ABCDGIRSTW]' ;; 6224esac 6225 6226if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6227 # Gets list of data symbols to import. 6228 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6229 # Adjust the below global symbol transforms to fixup imported variables. 6230 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6231 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6232 lt_c_name_lib_hook="\ 6233 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6234 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6235else 6236 # Disable hooks by default. 6237 lt_cv_sys_global_symbol_to_import= 6238 lt_cdecl_hook= 6239 lt_c_name_hook= 6240 lt_c_name_lib_hook= 6241fi 6242 6243# Transform an extracted symbol line into a proper C declaration. 6244# Some systems (esp. on ia64) link data and code symbols differently, 6245# so use this general approach. 6246lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6247$lt_cdecl_hook\ 6248" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6249" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6250 6251# Transform an extracted symbol line into symbol name and symbol address 6252lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6253$lt_c_name_hook\ 6254" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6255" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6256 6257# Transform an extracted symbol line into symbol name with lib prefix and 6258# symbol address. 6259lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6260$lt_c_name_lib_hook\ 6261" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6262" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6263" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6264 6265# Handle CRLF in mingw tool chain 6266opt_cr= 6267case $build_os in 6268mingw*) 6269 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6270 ;; 6271esac 6272 6273# Try without a prefix underscore, then with it. 6274for ac_symprfx in "" "_"; do 6275 6276 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6277 symxfrm="\\1 $ac_symprfx\\2 \\2" 6278 6279 # Write the raw and C identifiers. 6280 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6281 # Fake it for dumpbin and say T for any non-static function, 6282 # D for any global variable and I for any imported variable. 6283 # Also find C++ and __fastcall symbols from MSVC++, 6284 # which start with @ or ?. 6285 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6286" {last_section=section; section=\$ 3};"\ 6287" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6288" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6289" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6290" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6291" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6292" \$ 0!~/External *\|/{next};"\ 6293" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6294" {if(hide[section]) next};"\ 6295" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6296" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6297" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6298" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6299" ' prfx=^$ac_symprfx" 6300 else 6301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6302 fi 6303 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6304 6305 # Check to see that the pipe works correctly. 6306 pipe_works=no 6307 6308 rm -f conftest* 6309 cat > conftest.$ac_ext <<_LT_EOF 6310#ifdef __cplusplus 6311extern "C" { 6312#endif 6313char nm_test_var; 6314void nm_test_func(void); 6315void nm_test_func(void){} 6316#ifdef __cplusplus 6317} 6318#endif 6319int main(){nm_test_var='a';nm_test_func();return(0);} 6320_LT_EOF 6321 6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6323 (eval $ac_compile) 2>&5 6324 ac_status=$? 6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6326 test $ac_status = 0; }; then 6327 # Now try to grab the symbols. 6328 nlist=conftest.nm 6329 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6330 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6331 # Try sorting and uniquifying the output. 6332 if sort "$nlist" | uniq > "$nlist"T; then 6333 mv -f "$nlist"T "$nlist" 6334 else 6335 rm -f "$nlist"T 6336 fi 6337 6338 # Make sure that we snagged all the symbols we need. 6339 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6340 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6341 cat <<_LT_EOF > conftest.$ac_ext 6342/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6343#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6344/* DATA imports from DLLs on WIN32 can't be const, because runtime 6345 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6346# define LT_DLSYM_CONST 6347#elif defined __osf__ 6348/* This system does not cope well with relocations in const data. */ 6349# define LT_DLSYM_CONST 6350#else 6351# define LT_DLSYM_CONST const 6352#endif 6353 6354#ifdef __cplusplus 6355extern "C" { 6356#endif 6357 6358_LT_EOF 6359 # Now generate the symbol file. 6360 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6361 6362 cat <<_LT_EOF >> conftest.$ac_ext 6363 6364/* The mapping between symbol names and symbols. */ 6365LT_DLSYM_CONST struct { 6366 const char *name; 6367 void *address; 6368} 6369lt__PROGRAM__LTX_preloaded_symbols[] = 6370{ 6371 { "@PROGRAM@", (void *) 0 }, 6372_LT_EOF 6373 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6374 cat <<\_LT_EOF >> conftest.$ac_ext 6375 {0, (void *) 0} 6376}; 6377 6378/* This works around a problem in FreeBSD linker */ 6379#ifdef FREEBSD_WORKAROUND 6380static const void *lt_preloaded_setup() { 6381 return lt__PROGRAM__LTX_preloaded_symbols; 6382} 6383#endif 6384 6385#ifdef __cplusplus 6386} 6387#endif 6388_LT_EOF 6389 # Now try linking the two files. 6390 mv conftest.$ac_objext conftstm.$ac_objext 6391 lt_globsym_save_LIBS=$LIBS 6392 lt_globsym_save_CFLAGS=$CFLAGS 6393 LIBS=conftstm.$ac_objext 6394 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6396 (eval $ac_link) 2>&5 6397 ac_status=$? 6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6399 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6400 pipe_works=yes 6401 fi 6402 LIBS=$lt_globsym_save_LIBS 6403 CFLAGS=$lt_globsym_save_CFLAGS 6404 else 6405 echo "cannot find nm_test_func in $nlist" >&5 6406 fi 6407 else 6408 echo "cannot find nm_test_var in $nlist" >&5 6409 fi 6410 else 6411 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6412 fi 6413 else 6414 echo "$progname: failed program was:" >&5 6415 cat conftest.$ac_ext >&5 6416 fi 6417 rm -rf conftest* conftst* 6418 6419 # Do not use the global_symbol_pipe unless it works. 6420 if test yes = "$pipe_works"; then 6421 break 6422 else 6423 lt_cv_sys_global_symbol_pipe= 6424 fi 6425done 6426 6427fi 6428 6429if test -z "$lt_cv_sys_global_symbol_pipe"; then 6430 lt_cv_sys_global_symbol_to_cdecl= 6431fi 6432if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6434$as_echo "failed" >&6; } 6435else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6437$as_echo "ok" >&6; } 6438fi 6439 6440# Response file support. 6441if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6442 nm_file_list_spec='@' 6443elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6444 nm_file_list_spec='@' 6445fi 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6484$as_echo_n "checking for sysroot... " >&6; } 6485 6486# Check whether --with-sysroot was given. 6487if test "${with_sysroot+set}" = set; then : 6488 withval=$with_sysroot; 6489else 6490 with_sysroot=no 6491fi 6492 6493 6494lt_sysroot= 6495case $with_sysroot in #( 6496 yes) 6497 if test yes = "$GCC"; then 6498 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6499 fi 6500 ;; #( 6501 /*) 6502 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6503 ;; #( 6504 no|'') 6505 ;; #( 6506 *) 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6508$as_echo "$with_sysroot" >&6; } 6509 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6510 ;; 6511esac 6512 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6514$as_echo "${lt_sysroot:-no}" >&6; } 6515 6516 6517 6518 6519 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6521$as_echo_n "checking for a working dd... " >&6; } 6522if ${ac_cv_path_lt_DD+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 printf 0123456789abcdef0123456789abcdef >conftest.i 6526cat conftest.i conftest.i >conftest2.i 6527: ${lt_DD:=$DD} 6528if test -z "$lt_DD"; then 6529 ac_path_lt_DD_found=false 6530 # Loop through the user's path and test for each of PROGNAME-LIST 6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_prog in dd; do 6537 for ac_exec_ext in '' $ac_executable_extensions; do 6538 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6539 as_fn_executable_p "$ac_path_lt_DD" || continue 6540if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6541 cmp -s conftest.i conftest.out \ 6542 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6543fi 6544 $ac_path_lt_DD_found && break 3 6545 done 6546 done 6547 done 6548IFS=$as_save_IFS 6549 if test -z "$ac_cv_path_lt_DD"; then 6550 : 6551 fi 6552else 6553 ac_cv_path_lt_DD=$lt_DD 6554fi 6555 6556rm -f conftest.i conftest2.i conftest.out 6557fi 6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6559$as_echo "$ac_cv_path_lt_DD" >&6; } 6560 6561 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6563$as_echo_n "checking how to truncate binary pipes... " >&6; } 6564if ${lt_cv_truncate_bin+:} false; then : 6565 $as_echo_n "(cached) " >&6 6566else 6567 printf 0123456789abcdef0123456789abcdef >conftest.i 6568cat conftest.i conftest.i >conftest2.i 6569lt_cv_truncate_bin= 6570if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6571 cmp -s conftest.i conftest.out \ 6572 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6573fi 6574rm -f conftest.i conftest2.i conftest.out 6575test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6576fi 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6578$as_echo "$lt_cv_truncate_bin" >&6; } 6579 6580 6581 6582 6583 6584 6585 6586# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6587func_cc_basename () 6588{ 6589 for cc_temp in $*""; do 6590 case $cc_temp in 6591 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6592 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6593 \-*) ;; 6594 *) break;; 6595 esac 6596 done 6597 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6598} 6599 6600# Check whether --enable-libtool-lock was given. 6601if test "${enable_libtool_lock+set}" = set; then : 6602 enableval=$enable_libtool_lock; 6603fi 6604 6605test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6606 6607# Some flags need to be propagated to the compiler or linker for good 6608# libtool support. 6609case $host in 6610ia64-*-hpux*) 6611 # Find out what ABI is being produced by ac_compile, and set mode 6612 # options accordingly. 6613 echo 'int i;' > conftest.$ac_ext 6614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6615 (eval $ac_compile) 2>&5 6616 ac_status=$? 6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6618 test $ac_status = 0; }; then 6619 case `/usr/bin/file conftest.$ac_objext` in 6620 *ELF-32*) 6621 HPUX_IA64_MODE=32 6622 ;; 6623 *ELF-64*) 6624 HPUX_IA64_MODE=64 6625 ;; 6626 esac 6627 fi 6628 rm -rf conftest* 6629 ;; 6630*-*-irix6*) 6631 # Find out what ABI is being produced by ac_compile, and set linker 6632 # options accordingly. 6633 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6635 (eval $ac_compile) 2>&5 6636 ac_status=$? 6637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6638 test $ac_status = 0; }; then 6639 if test yes = "$lt_cv_prog_gnu_ld"; then 6640 case `/usr/bin/file conftest.$ac_objext` in 6641 *32-bit*) 6642 LD="${LD-ld} -melf32bsmip" 6643 ;; 6644 *N32*) 6645 LD="${LD-ld} -melf32bmipn32" 6646 ;; 6647 *64-bit*) 6648 LD="${LD-ld} -melf64bmip" 6649 ;; 6650 esac 6651 else 6652 case `/usr/bin/file conftest.$ac_objext` in 6653 *32-bit*) 6654 LD="${LD-ld} -32" 6655 ;; 6656 *N32*) 6657 LD="${LD-ld} -n32" 6658 ;; 6659 *64-bit*) 6660 LD="${LD-ld} -64" 6661 ;; 6662 esac 6663 fi 6664 fi 6665 rm -rf conftest* 6666 ;; 6667 6668mips64*-*linux*) 6669 # Find out what ABI is being produced by ac_compile, and set linker 6670 # options accordingly. 6671 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6673 (eval $ac_compile) 2>&5 6674 ac_status=$? 6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6676 test $ac_status = 0; }; then 6677 emul=elf 6678 case `/usr/bin/file conftest.$ac_objext` in 6679 *32-bit*) 6680 emul="${emul}32" 6681 ;; 6682 *64-bit*) 6683 emul="${emul}64" 6684 ;; 6685 esac 6686 case `/usr/bin/file conftest.$ac_objext` in 6687 *MSB*) 6688 emul="${emul}btsmip" 6689 ;; 6690 *LSB*) 6691 emul="${emul}ltsmip" 6692 ;; 6693 esac 6694 case `/usr/bin/file conftest.$ac_objext` in 6695 *N32*) 6696 emul="${emul}n32" 6697 ;; 6698 esac 6699 LD="${LD-ld} -m $emul" 6700 fi 6701 rm -rf conftest* 6702 ;; 6703 6704x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6705s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6706 # Find out what ABI is being produced by ac_compile, and set linker 6707 # options accordingly. Note that the listed cases only cover the 6708 # situations where additional linker options are needed (such as when 6709 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6710 # vice versa); the common cases where no linker options are needed do 6711 # not appear in the list. 6712 echo 'int i;' > conftest.$ac_ext 6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6714 (eval $ac_compile) 2>&5 6715 ac_status=$? 6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6717 test $ac_status = 0; }; then 6718 case `/usr/bin/file conftest.o` in 6719 *32-bit*) 6720 case $host in 6721 x86_64-*kfreebsd*-gnu) 6722 LD="${LD-ld} -m elf_i386_fbsd" 6723 ;; 6724 x86_64-*linux*) 6725 case `/usr/bin/file conftest.o` in 6726 *x86-64*) 6727 LD="${LD-ld} -m elf32_x86_64" 6728 ;; 6729 *) 6730 LD="${LD-ld} -m elf_i386" 6731 ;; 6732 esac 6733 ;; 6734 powerpc64le-*linux*) 6735 LD="${LD-ld} -m elf32lppclinux" 6736 ;; 6737 powerpc64-*linux*) 6738 LD="${LD-ld} -m elf32ppclinux" 6739 ;; 6740 s390x-*linux*) 6741 LD="${LD-ld} -m elf_s390" 6742 ;; 6743 sparc64-*linux*) 6744 LD="${LD-ld} -m elf32_sparc" 6745 ;; 6746 esac 6747 ;; 6748 *64-bit*) 6749 case $host in 6750 x86_64-*kfreebsd*-gnu) 6751 LD="${LD-ld} -m elf_x86_64_fbsd" 6752 ;; 6753 x86_64-*linux*) 6754 LD="${LD-ld} -m elf_x86_64" 6755 ;; 6756 powerpcle-*linux*) 6757 LD="${LD-ld} -m elf64lppc" 6758 ;; 6759 powerpc-*linux*) 6760 LD="${LD-ld} -m elf64ppc" 6761 ;; 6762 s390*-*linux*|s390*-*tpf*) 6763 LD="${LD-ld} -m elf64_s390" 6764 ;; 6765 sparc*-*linux*) 6766 LD="${LD-ld} -m elf64_sparc" 6767 ;; 6768 esac 6769 ;; 6770 esac 6771 fi 6772 rm -rf conftest* 6773 ;; 6774 6775*-*-sco3.2v5*) 6776 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6777 SAVE_CFLAGS=$CFLAGS 6778 CFLAGS="$CFLAGS -belf" 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6780$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6781if ${lt_cv_cc_needs_belf+:} false; then : 6782 $as_echo_n "(cached) " >&6 6783else 6784 ac_ext=c 6785ac_cpp='$CPP $CPPFLAGS' 6786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6788ac_compiler_gnu=$ac_cv_c_compiler_gnu 6789 6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6791/* end confdefs.h. */ 6792 6793int 6794main () 6795{ 6796 6797 ; 6798 return 0; 6799} 6800_ACEOF 6801if ac_fn_c_try_link "$LINENO"; then : 6802 lt_cv_cc_needs_belf=yes 6803else 6804 lt_cv_cc_needs_belf=no 6805fi 6806rm -f core conftest.err conftest.$ac_objext \ 6807 conftest$ac_exeext conftest.$ac_ext 6808 ac_ext=c 6809ac_cpp='$CPP $CPPFLAGS' 6810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6812ac_compiler_gnu=$ac_cv_c_compiler_gnu 6813 6814fi 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6816$as_echo "$lt_cv_cc_needs_belf" >&6; } 6817 if test yes != "$lt_cv_cc_needs_belf"; then 6818 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6819 CFLAGS=$SAVE_CFLAGS 6820 fi 6821 ;; 6822*-*solaris*) 6823 # Find out what ABI is being produced by ac_compile, and set linker 6824 # options accordingly. 6825 echo 'int i;' > conftest.$ac_ext 6826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6827 (eval $ac_compile) 2>&5 6828 ac_status=$? 6829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6830 test $ac_status = 0; }; then 6831 case `/usr/bin/file conftest.o` in 6832 *64-bit*) 6833 case $lt_cv_prog_gnu_ld in 6834 yes*) 6835 case $host in 6836 i?86-*-solaris*|x86_64-*-solaris*) 6837 LD="${LD-ld} -m elf_x86_64" 6838 ;; 6839 sparc*-*-solaris*) 6840 LD="${LD-ld} -m elf64_sparc" 6841 ;; 6842 esac 6843 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6844 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6845 LD=${LD-ld}_sol2 6846 fi 6847 ;; 6848 *) 6849 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6850 LD="${LD-ld} -64" 6851 fi 6852 ;; 6853 esac 6854 ;; 6855 esac 6856 fi 6857 rm -rf conftest* 6858 ;; 6859esac 6860 6861need_locks=$enable_libtool_lock 6862 6863if test -n "$ac_tool_prefix"; then 6864 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6865set dummy ${ac_tool_prefix}mt; ac_word=$2 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6867$as_echo_n "checking for $ac_word... " >&6; } 6868if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6869 $as_echo_n "(cached) " >&6 6870else 6871 if test -n "$MANIFEST_TOOL"; then 6872 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6873else 6874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6875for as_dir in $PATH 6876do 6877 IFS=$as_save_IFS 6878 test -z "$as_dir" && as_dir=. 6879 for ac_exec_ext in '' $ac_executable_extensions; do 6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6881 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6883 break 2 6884 fi 6885done 6886 done 6887IFS=$as_save_IFS 6888 6889fi 6890fi 6891MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6892if test -n "$MANIFEST_TOOL"; then 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6894$as_echo "$MANIFEST_TOOL" >&6; } 6895else 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6897$as_echo "no" >&6; } 6898fi 6899 6900 6901fi 6902if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6903 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6904 # Extract the first word of "mt", so it can be a program name with args. 6905set dummy mt; ac_word=$2 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6907$as_echo_n "checking for $ac_word... " >&6; } 6908if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910else 6911 if test -n "$ac_ct_MANIFEST_TOOL"; then 6912 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6913else 6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6915for as_dir in $PATH 6916do 6917 IFS=$as_save_IFS 6918 test -z "$as_dir" && as_dir=. 6919 for ac_exec_ext in '' $ac_executable_extensions; do 6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6921 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6923 break 2 6924 fi 6925done 6926 done 6927IFS=$as_save_IFS 6928 6929fi 6930fi 6931ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6932if test -n "$ac_ct_MANIFEST_TOOL"; then 6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6934$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6935else 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6937$as_echo "no" >&6; } 6938fi 6939 6940 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6941 MANIFEST_TOOL=":" 6942 else 6943 case $cross_compiling:$ac_tool_warned in 6944yes:) 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6947ac_tool_warned=yes ;; 6948esac 6949 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6950 fi 6951else 6952 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6953fi 6954 6955test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6957$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6958if ${lt_cv_path_mainfest_tool+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 lt_cv_path_mainfest_tool=no 6962 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6963 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6964 cat conftest.err >&5 6965 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6966 lt_cv_path_mainfest_tool=yes 6967 fi 6968 rm -f conftest* 6969fi 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6971$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6972if test yes != "$lt_cv_path_mainfest_tool"; then 6973 MANIFEST_TOOL=: 6974fi 6975 6976 6977 6978 6979 6980 6981 case $host_os in 6982 rhapsody* | darwin*) 6983 if test -n "$ac_tool_prefix"; then 6984 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6985set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6987$as_echo_n "checking for $ac_word... " >&6; } 6988if ${ac_cv_prog_DSYMUTIL+:} false; then : 6989 $as_echo_n "(cached) " >&6 6990else 6991 if test -n "$DSYMUTIL"; then 6992 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6993else 6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6995for as_dir in $PATH 6996do 6997 IFS=$as_save_IFS 6998 test -z "$as_dir" && as_dir=. 6999 for ac_exec_ext in '' $ac_executable_extensions; do 7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7001 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7003 break 2 7004 fi 7005done 7006 done 7007IFS=$as_save_IFS 7008 7009fi 7010fi 7011DSYMUTIL=$ac_cv_prog_DSYMUTIL 7012if test -n "$DSYMUTIL"; then 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7014$as_echo "$DSYMUTIL" >&6; } 7015else 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7017$as_echo "no" >&6; } 7018fi 7019 7020 7021fi 7022if test -z "$ac_cv_prog_DSYMUTIL"; then 7023 ac_ct_DSYMUTIL=$DSYMUTIL 7024 # Extract the first word of "dsymutil", so it can be a program name with args. 7025set dummy dsymutil; ac_word=$2 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7027$as_echo_n "checking for $ac_word... " >&6; } 7028if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030else 7031 if test -n "$ac_ct_DSYMUTIL"; then 7032 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7033else 7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7035for as_dir in $PATH 7036do 7037 IFS=$as_save_IFS 7038 test -z "$as_dir" && as_dir=. 7039 for ac_exec_ext in '' $ac_executable_extensions; do 7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7041 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7043 break 2 7044 fi 7045done 7046 done 7047IFS=$as_save_IFS 7048 7049fi 7050fi 7051ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7052if test -n "$ac_ct_DSYMUTIL"; then 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7054$as_echo "$ac_ct_DSYMUTIL" >&6; } 7055else 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7057$as_echo "no" >&6; } 7058fi 7059 7060 if test "x$ac_ct_DSYMUTIL" = x; then 7061 DSYMUTIL=":" 7062 else 7063 case $cross_compiling:$ac_tool_warned in 7064yes:) 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7067ac_tool_warned=yes ;; 7068esac 7069 DSYMUTIL=$ac_ct_DSYMUTIL 7070 fi 7071else 7072 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7073fi 7074 7075 if test -n "$ac_tool_prefix"; then 7076 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7077set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7079$as_echo_n "checking for $ac_word... " >&6; } 7080if ${ac_cv_prog_NMEDIT+:} false; then : 7081 $as_echo_n "(cached) " >&6 7082else 7083 if test -n "$NMEDIT"; then 7084 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7085else 7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7087for as_dir in $PATH 7088do 7089 IFS=$as_save_IFS 7090 test -z "$as_dir" && as_dir=. 7091 for ac_exec_ext in '' $ac_executable_extensions; do 7092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7093 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7095 break 2 7096 fi 7097done 7098 done 7099IFS=$as_save_IFS 7100 7101fi 7102fi 7103NMEDIT=$ac_cv_prog_NMEDIT 7104if test -n "$NMEDIT"; then 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7106$as_echo "$NMEDIT" >&6; } 7107else 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7109$as_echo "no" >&6; } 7110fi 7111 7112 7113fi 7114if test -z "$ac_cv_prog_NMEDIT"; then 7115 ac_ct_NMEDIT=$NMEDIT 7116 # Extract the first word of "nmedit", so it can be a program name with args. 7117set dummy nmedit; ac_word=$2 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7119$as_echo_n "checking for $ac_word... " >&6; } 7120if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122else 7123 if test -n "$ac_ct_NMEDIT"; then 7124 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7125else 7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7127for as_dir in $PATH 7128do 7129 IFS=$as_save_IFS 7130 test -z "$as_dir" && as_dir=. 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7133 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137done 7138 done 7139IFS=$as_save_IFS 7140 7141fi 7142fi 7143ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7144if test -n "$ac_ct_NMEDIT"; then 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7146$as_echo "$ac_ct_NMEDIT" >&6; } 7147else 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7149$as_echo "no" >&6; } 7150fi 7151 7152 if test "x$ac_ct_NMEDIT" = x; then 7153 NMEDIT=":" 7154 else 7155 case $cross_compiling:$ac_tool_warned in 7156yes:) 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7159ac_tool_warned=yes ;; 7160esac 7161 NMEDIT=$ac_ct_NMEDIT 7162 fi 7163else 7164 NMEDIT="$ac_cv_prog_NMEDIT" 7165fi 7166 7167 if test -n "$ac_tool_prefix"; then 7168 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7169set dummy ${ac_tool_prefix}lipo; ac_word=$2 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7171$as_echo_n "checking for $ac_word... " >&6; } 7172if ${ac_cv_prog_LIPO+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 if test -n "$LIPO"; then 7176 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7177else 7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 test -z "$as_dir" && as_dir=. 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7185 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7187 break 2 7188 fi 7189done 7190 done 7191IFS=$as_save_IFS 7192 7193fi 7194fi 7195LIPO=$ac_cv_prog_LIPO 7196if test -n "$LIPO"; then 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7198$as_echo "$LIPO" >&6; } 7199else 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7201$as_echo "no" >&6; } 7202fi 7203 7204 7205fi 7206if test -z "$ac_cv_prog_LIPO"; then 7207 ac_ct_LIPO=$LIPO 7208 # Extract the first word of "lipo", so it can be a program name with args. 7209set dummy lipo; ac_word=$2 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7211$as_echo_n "checking for $ac_word... " >&6; } 7212if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214else 7215 if test -n "$ac_ct_LIPO"; then 7216 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7217else 7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7219for as_dir in $PATH 7220do 7221 IFS=$as_save_IFS 7222 test -z "$as_dir" && as_dir=. 7223 for ac_exec_ext in '' $ac_executable_extensions; do 7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7225 ac_cv_prog_ac_ct_LIPO="lipo" 7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7227 break 2 7228 fi 7229done 7230 done 7231IFS=$as_save_IFS 7232 7233fi 7234fi 7235ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7236if test -n "$ac_ct_LIPO"; then 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7238$as_echo "$ac_ct_LIPO" >&6; } 7239else 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7241$as_echo "no" >&6; } 7242fi 7243 7244 if test "x$ac_ct_LIPO" = x; then 7245 LIPO=":" 7246 else 7247 case $cross_compiling:$ac_tool_warned in 7248yes:) 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7251ac_tool_warned=yes ;; 7252esac 7253 LIPO=$ac_ct_LIPO 7254 fi 7255else 7256 LIPO="$ac_cv_prog_LIPO" 7257fi 7258 7259 if test -n "$ac_tool_prefix"; then 7260 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7261set dummy ${ac_tool_prefix}otool; ac_word=$2 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7263$as_echo_n "checking for $ac_word... " >&6; } 7264if ${ac_cv_prog_OTOOL+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 if test -n "$OTOOL"; then 7268 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7269else 7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7271for as_dir in $PATH 7272do 7273 IFS=$as_save_IFS 7274 test -z "$as_dir" && as_dir=. 7275 for ac_exec_ext in '' $ac_executable_extensions; do 7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7277 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7279 break 2 7280 fi 7281done 7282 done 7283IFS=$as_save_IFS 7284 7285fi 7286fi 7287OTOOL=$ac_cv_prog_OTOOL 7288if test -n "$OTOOL"; then 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7290$as_echo "$OTOOL" >&6; } 7291else 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7293$as_echo "no" >&6; } 7294fi 7295 7296 7297fi 7298if test -z "$ac_cv_prog_OTOOL"; then 7299 ac_ct_OTOOL=$OTOOL 7300 # Extract the first word of "otool", so it can be a program name with args. 7301set dummy otool; ac_word=$2 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7303$as_echo_n "checking for $ac_word... " >&6; } 7304if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 if test -n "$ac_ct_OTOOL"; then 7308 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7309else 7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7311for as_dir in $PATH 7312do 7313 IFS=$as_save_IFS 7314 test -z "$as_dir" && as_dir=. 7315 for ac_exec_ext in '' $ac_executable_extensions; do 7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7317 ac_cv_prog_ac_ct_OTOOL="otool" 7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7319 break 2 7320 fi 7321done 7322 done 7323IFS=$as_save_IFS 7324 7325fi 7326fi 7327ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7328if test -n "$ac_ct_OTOOL"; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7330$as_echo "$ac_ct_OTOOL" >&6; } 7331else 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7333$as_echo "no" >&6; } 7334fi 7335 7336 if test "x$ac_ct_OTOOL" = x; then 7337 OTOOL=":" 7338 else 7339 case $cross_compiling:$ac_tool_warned in 7340yes:) 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7343ac_tool_warned=yes ;; 7344esac 7345 OTOOL=$ac_ct_OTOOL 7346 fi 7347else 7348 OTOOL="$ac_cv_prog_OTOOL" 7349fi 7350 7351 if test -n "$ac_tool_prefix"; then 7352 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7353set dummy ${ac_tool_prefix}otool64; ac_word=$2 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7355$as_echo_n "checking for $ac_word... " >&6; } 7356if ${ac_cv_prog_OTOOL64+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 if test -n "$OTOOL64"; then 7360 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7361else 7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7363for as_dir in $PATH 7364do 7365 IFS=$as_save_IFS 7366 test -z "$as_dir" && as_dir=. 7367 for ac_exec_ext in '' $ac_executable_extensions; do 7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7369 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7371 break 2 7372 fi 7373done 7374 done 7375IFS=$as_save_IFS 7376 7377fi 7378fi 7379OTOOL64=$ac_cv_prog_OTOOL64 7380if test -n "$OTOOL64"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7382$as_echo "$OTOOL64" >&6; } 7383else 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7385$as_echo "no" >&6; } 7386fi 7387 7388 7389fi 7390if test -z "$ac_cv_prog_OTOOL64"; then 7391 ac_ct_OTOOL64=$OTOOL64 7392 # Extract the first word of "otool64", so it can be a program name with args. 7393set dummy otool64; ac_word=$2 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7395$as_echo_n "checking for $ac_word... " >&6; } 7396if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 if test -n "$ac_ct_OTOOL64"; then 7400 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7401else 7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7403for as_dir in $PATH 7404do 7405 IFS=$as_save_IFS 7406 test -z "$as_dir" && as_dir=. 7407 for ac_exec_ext in '' $ac_executable_extensions; do 7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7409 ac_cv_prog_ac_ct_OTOOL64="otool64" 7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7411 break 2 7412 fi 7413done 7414 done 7415IFS=$as_save_IFS 7416 7417fi 7418fi 7419ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7420if test -n "$ac_ct_OTOOL64"; then 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7422$as_echo "$ac_ct_OTOOL64" >&6; } 7423else 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7425$as_echo "no" >&6; } 7426fi 7427 7428 if test "x$ac_ct_OTOOL64" = x; then 7429 OTOOL64=":" 7430 else 7431 case $cross_compiling:$ac_tool_warned in 7432yes:) 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7435ac_tool_warned=yes ;; 7436esac 7437 OTOOL64=$ac_ct_OTOOL64 7438 fi 7439else 7440 OTOOL64="$ac_cv_prog_OTOOL64" 7441fi 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7470$as_echo_n "checking for -single_module linker flag... " >&6; } 7471if ${lt_cv_apple_cc_single_mod+:} false; then : 7472 $as_echo_n "(cached) " >&6 7473else 7474 lt_cv_apple_cc_single_mod=no 7475 if test -z "$LT_MULTI_MODULE"; then 7476 # By default we will add the -single_module flag. You can override 7477 # by either setting the environment variable LT_MULTI_MODULE 7478 # non-empty at configure time, or by adding -multi_module to the 7479 # link flags. 7480 rm -rf libconftest.dylib* 7481 echo "int foo(void){return 1;}" > conftest.c 7482 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7483-dynamiclib -Wl,-single_module conftest.c" >&5 7484 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7485 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7486 _lt_result=$? 7487 # If there is a non-empty error log, and "single_module" 7488 # appears in it, assume the flag caused a linker warning 7489 if test -s conftest.err && $GREP single_module conftest.err; then 7490 cat conftest.err >&5 7491 # Otherwise, if the output was created with a 0 exit code from 7492 # the compiler, it worked. 7493 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7494 lt_cv_apple_cc_single_mod=yes 7495 else 7496 cat conftest.err >&5 7497 fi 7498 rm -rf libconftest.dylib* 7499 rm -f conftest.* 7500 fi 7501fi 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7503$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7504 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7506$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7507if ${lt_cv_ld_exported_symbols_list+:} false; then : 7508 $as_echo_n "(cached) " >&6 7509else 7510 lt_cv_ld_exported_symbols_list=no 7511 save_LDFLAGS=$LDFLAGS 7512 echo "_main" > conftest.sym 7513 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516 7517int 7518main () 7519{ 7520 7521 ; 7522 return 0; 7523} 7524_ACEOF 7525if ac_fn_c_try_link "$LINENO"; then : 7526 lt_cv_ld_exported_symbols_list=yes 7527else 7528 lt_cv_ld_exported_symbols_list=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext \ 7531 conftest$ac_exeext conftest.$ac_ext 7532 LDFLAGS=$save_LDFLAGS 7533 7534fi 7535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7536$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7537 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7539$as_echo_n "checking for -force_load linker flag... " >&6; } 7540if ${lt_cv_ld_force_load+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 lt_cv_ld_force_load=no 7544 cat > conftest.c << _LT_EOF 7545int forced_loaded() { return 2;} 7546_LT_EOF 7547 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7548 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7549 echo "$AR cru libconftest.a conftest.o" >&5 7550 $AR cru libconftest.a conftest.o 2>&5 7551 echo "$RANLIB libconftest.a" >&5 7552 $RANLIB libconftest.a 2>&5 7553 cat > conftest.c << _LT_EOF 7554int main() { return 0;} 7555_LT_EOF 7556 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7557 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7558 _lt_result=$? 7559 if test -s conftest.err && $GREP force_load conftest.err; then 7560 cat conftest.err >&5 7561 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7562 lt_cv_ld_force_load=yes 7563 else 7564 cat conftest.err >&5 7565 fi 7566 rm -f conftest.err libconftest.a conftest conftest.c 7567 rm -rf conftest.dSYM 7568 7569fi 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7571$as_echo "$lt_cv_ld_force_load" >&6; } 7572 case $host_os in 7573 rhapsody* | darwin1.[012]) 7574 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7575 darwin1.*) 7576 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7577 darwin*) # darwin 5.x on 7578 # if running on 10.5 or later, the deployment target defaults 7579 # to the OS version, if on x86, and 10.4, the deployment 7580 # target defaults to 10.4. Don't you love it? 7581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7582 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7583 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7584 10.[012][,.]*) 7585 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7586 10.*) 7587 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7588 esac 7589 ;; 7590 esac 7591 if test yes = "$lt_cv_apple_cc_single_mod"; then 7592 _lt_dar_single_mod='$single_module' 7593 fi 7594 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7595 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7596 else 7597 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7598 fi 7599 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7600 _lt_dsymutil='~$DSYMUTIL $lib || :' 7601 else 7602 _lt_dsymutil= 7603 fi 7604 ;; 7605 esac 7606 7607# func_munge_path_list VARIABLE PATH 7608# ----------------------------------- 7609# VARIABLE is name of variable containing _space_ separated list of 7610# directories to be munged by the contents of PATH, which is string 7611# having a format: 7612# "DIR[:DIR]:" 7613# string "DIR[ DIR]" will be prepended to VARIABLE 7614# ":DIR[:DIR]" 7615# string "DIR[ DIR]" will be appended to VARIABLE 7616# "DIRP[:DIRP]::[DIRA:]DIRA" 7617# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7618# "DIRA[ DIRA]" will be appended to VARIABLE 7619# "DIR[:DIR]" 7620# VARIABLE will be replaced by "DIR[ DIR]" 7621func_munge_path_list () 7622{ 7623 case x$2 in 7624 x) 7625 ;; 7626 *:) 7627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7628 ;; 7629 x:*) 7630 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7631 ;; 7632 *::*) 7633 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7634 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7635 ;; 7636 *) 7637 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7638 ;; 7639 esac 7640} 7641 7642ac_ext=c 7643ac_cpp='$CPP $CPPFLAGS' 7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7646ac_compiler_gnu=$ac_cv_c_compiler_gnu 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7648$as_echo_n "checking how to run the C preprocessor... " >&6; } 7649# On Suns, sometimes $CPP names a directory. 7650if test -n "$CPP" && test -d "$CPP"; then 7651 CPP= 7652fi 7653if test -z "$CPP"; then 7654 if ${ac_cv_prog_CPP+:} false; then : 7655 $as_echo_n "(cached) " >&6 7656else 7657 # Double quotes because CPP needs to be expanded 7658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7659 do 7660 ac_preproc_ok=false 7661for ac_c_preproc_warn_flag in '' yes 7662do 7663 # Use a header file that comes with gcc, so configuring glibc 7664 # with a fresh cross-compiler works. 7665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7666 # <limits.h> exists even on freestanding compilers. 7667 # On the NeXT, cc -E runs the code through the compiler's parser, 7668 # not just through cpp. "Syntax error" is here to catch this case. 7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7670/* end confdefs.h. */ 7671#ifdef __STDC__ 7672# include <limits.h> 7673#else 7674# include <assert.h> 7675#endif 7676 Syntax error 7677_ACEOF 7678if ac_fn_c_try_cpp "$LINENO"; then : 7679 7680else 7681 # Broken: fails on valid input. 7682continue 7683fi 7684rm -f conftest.err conftest.i conftest.$ac_ext 7685 7686 # OK, works on sane cases. Now check whether nonexistent headers 7687 # can be detected and how. 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690#include <ac_nonexistent.h> 7691_ACEOF 7692if ac_fn_c_try_cpp "$LINENO"; then : 7693 # Broken: success on invalid input. 7694continue 7695else 7696 # Passes both tests. 7697ac_preproc_ok=: 7698break 7699fi 7700rm -f conftest.err conftest.i conftest.$ac_ext 7701 7702done 7703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7704rm -f conftest.i conftest.err conftest.$ac_ext 7705if $ac_preproc_ok; then : 7706 break 7707fi 7708 7709 done 7710 ac_cv_prog_CPP=$CPP 7711 7712fi 7713 CPP=$ac_cv_prog_CPP 7714else 7715 ac_cv_prog_CPP=$CPP 7716fi 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7718$as_echo "$CPP" >&6; } 7719ac_preproc_ok=false 7720for ac_c_preproc_warn_flag in '' yes 7721do 7722 # Use a header file that comes with gcc, so configuring glibc 7723 # with a fresh cross-compiler works. 7724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7725 # <limits.h> exists even on freestanding compilers. 7726 # On the NeXT, cc -E runs the code through the compiler's parser, 7727 # not just through cpp. "Syntax error" is here to catch this case. 7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7729/* end confdefs.h. */ 7730#ifdef __STDC__ 7731# include <limits.h> 7732#else 7733# include <assert.h> 7734#endif 7735 Syntax error 7736_ACEOF 7737if ac_fn_c_try_cpp "$LINENO"; then : 7738 7739else 7740 # Broken: fails on valid input. 7741continue 7742fi 7743rm -f conftest.err conftest.i conftest.$ac_ext 7744 7745 # OK, works on sane cases. Now check whether nonexistent headers 7746 # can be detected and how. 7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749#include <ac_nonexistent.h> 7750_ACEOF 7751if ac_fn_c_try_cpp "$LINENO"; then : 7752 # Broken: success on invalid input. 7753continue 7754else 7755 # Passes both tests. 7756ac_preproc_ok=: 7757break 7758fi 7759rm -f conftest.err conftest.i conftest.$ac_ext 7760 7761done 7762# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7763rm -f conftest.i conftest.err conftest.$ac_ext 7764if $ac_preproc_ok; then : 7765 7766else 7767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7769as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7770See \`config.log' for more details" "$LINENO" 5; } 7771fi 7772 7773ac_ext=c 7774ac_cpp='$CPP $CPPFLAGS' 7775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7777ac_compiler_gnu=$ac_cv_c_compiler_gnu 7778 7779 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7781$as_echo_n "checking for ANSI C header files... " >&6; } 7782if ${ac_cv_header_stdc+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786/* end confdefs.h. */ 7787#include <stdlib.h> 7788#include <stdarg.h> 7789#include <string.h> 7790#include <float.h> 7791 7792int 7793main () 7794{ 7795 7796 ; 7797 return 0; 7798} 7799_ACEOF 7800if ac_fn_c_try_compile "$LINENO"; then : 7801 ac_cv_header_stdc=yes 7802else 7803 ac_cv_header_stdc=no 7804fi 7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7806 7807if test $ac_cv_header_stdc = yes; then 7808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811#include <string.h> 7812 7813_ACEOF 7814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7815 $EGREP "memchr" >/dev/null 2>&1; then : 7816 7817else 7818 ac_cv_header_stdc=no 7819fi 7820rm -f conftest* 7821 7822fi 7823 7824if test $ac_cv_header_stdc = yes; then 7825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828#include <stdlib.h> 7829 7830_ACEOF 7831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7832 $EGREP "free" >/dev/null 2>&1; then : 7833 7834else 7835 ac_cv_header_stdc=no 7836fi 7837rm -f conftest* 7838 7839fi 7840 7841if test $ac_cv_header_stdc = yes; then 7842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7843 if test "$cross_compiling" = yes; then : 7844 : 7845else 7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848#include <ctype.h> 7849#include <stdlib.h> 7850#if ((' ' & 0x0FF) == 0x020) 7851# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7852# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7853#else 7854# define ISLOWER(c) \ 7855 (('a' <= (c) && (c) <= 'i') \ 7856 || ('j' <= (c) && (c) <= 'r') \ 7857 || ('s' <= (c) && (c) <= 'z')) 7858# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7859#endif 7860 7861#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7862int 7863main () 7864{ 7865 int i; 7866 for (i = 0; i < 256; i++) 7867 if (XOR (islower (i), ISLOWER (i)) 7868 || toupper (i) != TOUPPER (i)) 7869 return 2; 7870 return 0; 7871} 7872_ACEOF 7873if ac_fn_c_try_run "$LINENO"; then : 7874 7875else 7876 ac_cv_header_stdc=no 7877fi 7878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7879 conftest.$ac_objext conftest.beam conftest.$ac_ext 7880fi 7881 7882fi 7883fi 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7885$as_echo "$ac_cv_header_stdc" >&6; } 7886if test $ac_cv_header_stdc = yes; then 7887 7888$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7889 7890fi 7891 7892# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7893for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7894 inttypes.h stdint.h unistd.h 7895do : 7896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7897ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7898" 7899if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7900 cat >>confdefs.h <<_ACEOF 7901#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7902_ACEOF 7903 7904fi 7905 7906done 7907 7908 7909for ac_header in dlfcn.h 7910do : 7911 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7912" 7913if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7914 cat >>confdefs.h <<_ACEOF 7915#define HAVE_DLFCN_H 1 7916_ACEOF 7917 7918fi 7919 7920done 7921 7922 7923 7924 7925 7926# Set options 7927 7928 7929 7930 enable_dlopen=no 7931 7932 7933 enable_win32_dll=no 7934 7935 7936 # Check whether --enable-shared was given. 7937if test "${enable_shared+set}" = set; then : 7938 enableval=$enable_shared; p=${PACKAGE-default} 7939 case $enableval in 7940 yes) enable_shared=yes ;; 7941 no) enable_shared=no ;; 7942 *) 7943 enable_shared=no 7944 # Look at the argument we got. We use all the common list separators. 7945 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7946 for pkg in $enableval; do 7947 IFS=$lt_save_ifs 7948 if test "X$pkg" = "X$p"; then 7949 enable_shared=yes 7950 fi 7951 done 7952 IFS=$lt_save_ifs 7953 ;; 7954 esac 7955else 7956 enable_shared=yes 7957fi 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 # Check whether --enable-static was given. 7968if test "${enable_static+set}" = set; then : 7969 enableval=$enable_static; p=${PACKAGE-default} 7970 case $enableval in 7971 yes) enable_static=yes ;; 7972 no) enable_static=no ;; 7973 *) 7974 enable_static=no 7975 # Look at the argument we got. We use all the common list separators. 7976 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7977 for pkg in $enableval; do 7978 IFS=$lt_save_ifs 7979 if test "X$pkg" = "X$p"; then 7980 enable_static=yes 7981 fi 7982 done 7983 IFS=$lt_save_ifs 7984 ;; 7985 esac 7986else 7987 enable_static=yes 7988fi 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999# Check whether --with-pic was given. 8000if test "${with_pic+set}" = set; then : 8001 withval=$with_pic; lt_p=${PACKAGE-default} 8002 case $withval in 8003 yes|no) pic_mode=$withval ;; 8004 *) 8005 pic_mode=default 8006 # Look at the argument we got. We use all the common list separators. 8007 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8008 for lt_pkg in $withval; do 8009 IFS=$lt_save_ifs 8010 if test "X$lt_pkg" = "X$lt_p"; then 8011 pic_mode=yes 8012 fi 8013 done 8014 IFS=$lt_save_ifs 8015 ;; 8016 esac 8017else 8018 pic_mode=default 8019fi 8020 8021 8022 8023 8024 8025 8026 8027 8028 # Check whether --enable-fast-install was given. 8029if test "${enable_fast_install+set}" = set; then : 8030 enableval=$enable_fast_install; p=${PACKAGE-default} 8031 case $enableval in 8032 yes) enable_fast_install=yes ;; 8033 no) enable_fast_install=no ;; 8034 *) 8035 enable_fast_install=no 8036 # Look at the argument we got. We use all the common list separators. 8037 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8038 for pkg in $enableval; do 8039 IFS=$lt_save_ifs 8040 if test "X$pkg" = "X$p"; then 8041 enable_fast_install=yes 8042 fi 8043 done 8044 IFS=$lt_save_ifs 8045 ;; 8046 esac 8047else 8048 enable_fast_install=yes 8049fi 8050 8051 8052 8053 8054 8055 8056 8057 8058 shared_archive_member_spec= 8059case $host,$enable_shared in 8060power*-*-aix[5-9]*,yes) 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8062$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8063 8064# Check whether --with-aix-soname was given. 8065if test "${with_aix_soname+set}" = set; then : 8066 withval=$with_aix_soname; case $withval in 8067 aix|svr4|both) 8068 ;; 8069 *) 8070 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8071 ;; 8072 esac 8073 lt_cv_with_aix_soname=$with_aix_soname 8074else 8075 if ${lt_cv_with_aix_soname+:} false; then : 8076 $as_echo_n "(cached) " >&6 8077else 8078 lt_cv_with_aix_soname=aix 8079fi 8080 8081 with_aix_soname=$lt_cv_with_aix_soname 8082fi 8083 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8085$as_echo "$with_aix_soname" >&6; } 8086 if test aix != "$with_aix_soname"; then 8087 # For the AIX way of multilib, we name the shared archive member 8088 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8089 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8090 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8091 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8092 if test 64 = "${OBJECT_MODE-32}"; then 8093 shared_archive_member_spec=shr_64 8094 else 8095 shared_archive_member_spec=shr 8096 fi 8097 fi 8098 ;; 8099*) 8100 with_aix_soname=aix 8101 ;; 8102esac 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113# This can be used to rebuild libtool when needed 8114LIBTOOL_DEPS=$ltmain 8115 8116# Always use our own libtool. 8117LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148test -z "$LN_S" && LN_S="ln -s" 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163if test -n "${ZSH_VERSION+set}"; then 8164 setopt NO_GLOB_SUBST 8165fi 8166 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8168$as_echo_n "checking for objdir... " >&6; } 8169if ${lt_cv_objdir+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 rm -f .libs 2>/dev/null 8173mkdir .libs 2>/dev/null 8174if test -d .libs; then 8175 lt_cv_objdir=.libs 8176else 8177 # MS-DOS does not allow filenames that begin with a dot. 8178 lt_cv_objdir=_libs 8179fi 8180rmdir .libs 2>/dev/null 8181fi 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8183$as_echo "$lt_cv_objdir" >&6; } 8184objdir=$lt_cv_objdir 8185 8186 8187 8188 8189 8190cat >>confdefs.h <<_ACEOF 8191#define LT_OBJDIR "$lt_cv_objdir/" 8192_ACEOF 8193 8194 8195 8196 8197case $host_os in 8198aix3*) 8199 # AIX sometimes has problems with the GCC collect2 program. For some 8200 # reason, if we set the COLLECT_NAMES environment variable, the problems 8201 # vanish in a puff of smoke. 8202 if test set != "${COLLECT_NAMES+set}"; then 8203 COLLECT_NAMES= 8204 export COLLECT_NAMES 8205 fi 8206 ;; 8207esac 8208 8209# Global variables: 8210ofile=libtool 8211can_build_shared=yes 8212 8213# All known linkers require a '.a' archive for static linking (except MSVC, 8214# which needs '.lib'). 8215libext=a 8216 8217with_gnu_ld=$lt_cv_prog_gnu_ld 8218 8219old_CC=$CC 8220old_CFLAGS=$CFLAGS 8221 8222# Set sane defaults for various variables 8223test -z "$CC" && CC=cc 8224test -z "$LTCC" && LTCC=$CC 8225test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8226test -z "$LD" && LD=ld 8227test -z "$ac_objext" && ac_objext=o 8228 8229func_cc_basename $compiler 8230cc_basename=$func_cc_basename_result 8231 8232 8233# Only perform the check for file, if the check method requires it 8234test -z "$MAGIC_CMD" && MAGIC_CMD=file 8235case $deplibs_check_method in 8236file_magic*) 8237 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8239$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8240if ${lt_cv_path_MAGIC_CMD+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242else 8243 case $MAGIC_CMD in 8244[\\/*] | ?:[\\/]*) 8245 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8246 ;; 8247*) 8248 lt_save_MAGIC_CMD=$MAGIC_CMD 8249 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8251 for ac_dir in $ac_dummy; do 8252 IFS=$lt_save_ifs 8253 test -z "$ac_dir" && ac_dir=. 8254 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8255 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8256 if test -n "$file_magic_test_file"; then 8257 case $deplibs_check_method in 8258 "file_magic "*) 8259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8260 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8262 $EGREP "$file_magic_regex" > /dev/null; then 8263 : 8264 else 8265 cat <<_LT_EOF 1>&2 8266 8267*** Warning: the command libtool uses to detect shared libraries, 8268*** $file_magic_cmd, produces output that libtool cannot recognize. 8269*** The result is that libtool may fail to recognize shared libraries 8270*** as such. This will affect the creation of libtool libraries that 8271*** depend on shared libraries, but programs linked with such libtool 8272*** libraries will work regardless of this problem. Nevertheless, you 8273*** may want to report the problem to your system manager and/or to 8274*** bug-libtool@gnu.org 8275 8276_LT_EOF 8277 fi ;; 8278 esac 8279 fi 8280 break 8281 fi 8282 done 8283 IFS=$lt_save_ifs 8284 MAGIC_CMD=$lt_save_MAGIC_CMD 8285 ;; 8286esac 8287fi 8288 8289MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8290if test -n "$MAGIC_CMD"; then 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8292$as_echo "$MAGIC_CMD" >&6; } 8293else 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8295$as_echo "no" >&6; } 8296fi 8297 8298 8299 8300 8301 8302if test -z "$lt_cv_path_MAGIC_CMD"; then 8303 if test -n "$ac_tool_prefix"; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8305$as_echo_n "checking for file... " >&6; } 8306if ${lt_cv_path_MAGIC_CMD+:} false; then : 8307 $as_echo_n "(cached) " >&6 8308else 8309 case $MAGIC_CMD in 8310[\\/*] | ?:[\\/]*) 8311 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8312 ;; 8313*) 8314 lt_save_MAGIC_CMD=$MAGIC_CMD 8315 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8317 for ac_dir in $ac_dummy; do 8318 IFS=$lt_save_ifs 8319 test -z "$ac_dir" && ac_dir=. 8320 if test -f "$ac_dir/file"; then 8321 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8322 if test -n "$file_magic_test_file"; then 8323 case $deplibs_check_method in 8324 "file_magic "*) 8325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8326 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8328 $EGREP "$file_magic_regex" > /dev/null; then 8329 : 8330 else 8331 cat <<_LT_EOF 1>&2 8332 8333*** Warning: the command libtool uses to detect shared libraries, 8334*** $file_magic_cmd, produces output that libtool cannot recognize. 8335*** The result is that libtool may fail to recognize shared libraries 8336*** as such. This will affect the creation of libtool libraries that 8337*** depend on shared libraries, but programs linked with such libtool 8338*** libraries will work regardless of this problem. Nevertheless, you 8339*** may want to report the problem to your system manager and/or to 8340*** bug-libtool@gnu.org 8341 8342_LT_EOF 8343 fi ;; 8344 esac 8345 fi 8346 break 8347 fi 8348 done 8349 IFS=$lt_save_ifs 8350 MAGIC_CMD=$lt_save_MAGIC_CMD 8351 ;; 8352esac 8353fi 8354 8355MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8356if test -n "$MAGIC_CMD"; then 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8358$as_echo "$MAGIC_CMD" >&6; } 8359else 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8361$as_echo "no" >&6; } 8362fi 8363 8364 8365 else 8366 MAGIC_CMD=: 8367 fi 8368fi 8369 8370 fi 8371 ;; 8372esac 8373 8374# Use C for the default configuration in the libtool script 8375 8376lt_save_CC=$CC 8377ac_ext=c 8378ac_cpp='$CPP $CPPFLAGS' 8379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8381ac_compiler_gnu=$ac_cv_c_compiler_gnu 8382 8383 8384# Source file extension for C test sources. 8385ac_ext=c 8386 8387# Object file extension for compiled C test sources. 8388objext=o 8389objext=$objext 8390 8391# Code to be used in simple compile tests 8392lt_simple_compile_test_code="int some_variable = 0;" 8393 8394# Code to be used in simple link tests 8395lt_simple_link_test_code='int main(){return(0);}' 8396 8397 8398 8399 8400 8401 8402 8403# If no C compiler was specified, use CC. 8404LTCC=${LTCC-"$CC"} 8405 8406# If no C compiler flags were specified, use CFLAGS. 8407LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8408 8409# Allow CC to be a program name with arguments. 8410compiler=$CC 8411 8412# Save the default compiler, since it gets overwritten when the other 8413# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8414compiler_DEFAULT=$CC 8415 8416# save warnings/boilerplate of simple test code 8417ac_outfile=conftest.$ac_objext 8418echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8419eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8420_lt_compiler_boilerplate=`cat conftest.err` 8421$RM conftest* 8422 8423ac_outfile=conftest.$ac_objext 8424echo "$lt_simple_link_test_code" >conftest.$ac_ext 8425eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8426_lt_linker_boilerplate=`cat conftest.err` 8427$RM -r conftest* 8428 8429 8430## CAVEAT EMPTOR: 8431## There is no encapsulation within the following macros, do not change 8432## the running order or otherwise move them around unless you know exactly 8433## what you are doing... 8434if test -n "$compiler"; then 8435 8436lt_prog_compiler_no_builtin_flag= 8437 8438if test yes = "$GCC"; then 8439 case $cc_basename in 8440 nvcc*) 8441 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8442 *) 8443 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8444 esac 8445 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8447$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8448if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 8451 lt_cv_prog_compiler_rtti_exceptions=no 8452 ac_outfile=conftest.$ac_objext 8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8454 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8455 # Insert the option either (1) after the last *FLAGS variable, or 8456 # (2) before a word containing "conftest.", or (3) at the end. 8457 # Note that $ac_compile itself does not contain backslashes and begins 8458 # with a dollar sign (not a hyphen), so the echo should work correctly. 8459 # The option is referenced via a variable to avoid confusing sed. 8460 lt_compile=`echo "$ac_compile" | $SED \ 8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8463 -e 's:$: $lt_compiler_flag:'` 8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8465 (eval "$lt_compile" 2>conftest.err) 8466 ac_status=$? 8467 cat conftest.err >&5 8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 if (exit $ac_status) && test -s "$ac_outfile"; then 8470 # The compiler can only warn and ignore the option if not recognized 8471 # So say no if there are warnings other than the usual output. 8472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8475 lt_cv_prog_compiler_rtti_exceptions=yes 8476 fi 8477 fi 8478 $RM conftest* 8479 8480fi 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8482$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8483 8484if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8485 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8486else 8487 : 8488fi 8489 8490fi 8491 8492 8493 8494 8495 8496 8497 lt_prog_compiler_wl= 8498lt_prog_compiler_pic= 8499lt_prog_compiler_static= 8500 8501 8502 if test yes = "$GCC"; then 8503 lt_prog_compiler_wl='-Wl,' 8504 lt_prog_compiler_static='-static' 8505 8506 case $host_os in 8507 aix*) 8508 # All AIX code is PIC. 8509 if test ia64 = "$host_cpu"; then 8510 # AIX 5 now supports IA64 processor 8511 lt_prog_compiler_static='-Bstatic' 8512 fi 8513 lt_prog_compiler_pic='-fPIC' 8514 ;; 8515 8516 amigaos*) 8517 case $host_cpu in 8518 powerpc) 8519 # see comment about AmigaOS4 .so support 8520 lt_prog_compiler_pic='-fPIC' 8521 ;; 8522 m68k) 8523 # FIXME: we need at least 68020 code to build shared libraries, but 8524 # adding the '-m68020' flag to GCC prevents building anything better, 8525 # like '-m68040'. 8526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8527 ;; 8528 esac 8529 ;; 8530 8531 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8532 # PIC is the default for these OSes. 8533 ;; 8534 8535 mingw* | cygwin* | pw32* | os2* | cegcc*) 8536 # This hack is so that the source file can tell whether it is being 8537 # built for inclusion in a dll (and should export symbols for example). 8538 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8539 # (--disable-auto-import) libraries 8540 lt_prog_compiler_pic='-DDLL_EXPORT' 8541 case $host_os in 8542 os2*) 8543 lt_prog_compiler_static='$wl-static' 8544 ;; 8545 esac 8546 ;; 8547 8548 darwin* | rhapsody*) 8549 # PIC is the default on this platform 8550 # Common symbols not allowed in MH_DYLIB files 8551 lt_prog_compiler_pic='-fno-common' 8552 ;; 8553 8554 haiku*) 8555 # PIC is the default for Haiku. 8556 # The "-static" flag exists, but is broken. 8557 lt_prog_compiler_static= 8558 ;; 8559 8560 hpux*) 8561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8563 # sets the default TLS model and affects inlining. 8564 case $host_cpu in 8565 hppa*64*) 8566 # +Z the default 8567 ;; 8568 *) 8569 lt_prog_compiler_pic='-fPIC' 8570 ;; 8571 esac 8572 ;; 8573 8574 interix[3-9]*) 8575 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8576 # Instead, we relocate shared libraries at runtime. 8577 ;; 8578 8579 msdosdjgpp*) 8580 # Just because we use GCC doesn't mean we suddenly get shared libraries 8581 # on systems that don't support them. 8582 lt_prog_compiler_can_build_shared=no 8583 enable_shared=no 8584 ;; 8585 8586 *nto* | *qnx*) 8587 # QNX uses GNU C++, but need to define -shared option too, otherwise 8588 # it will coredump. 8589 lt_prog_compiler_pic='-fPIC -shared' 8590 ;; 8591 8592 sysv4*MP*) 8593 if test -d /usr/nec; then 8594 lt_prog_compiler_pic=-Kconform_pic 8595 fi 8596 ;; 8597 8598 *) 8599 lt_prog_compiler_pic='-fPIC' 8600 ;; 8601 esac 8602 8603 case $cc_basename in 8604 nvcc*) # Cuda Compiler Driver 2.2 8605 lt_prog_compiler_wl='-Xlinker ' 8606 if test -n "$lt_prog_compiler_pic"; then 8607 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8608 fi 8609 ;; 8610 esac 8611 else 8612 # PORTME Check for flag to pass linker flags through the system compiler. 8613 case $host_os in 8614 aix*) 8615 lt_prog_compiler_wl='-Wl,' 8616 if test ia64 = "$host_cpu"; then 8617 # AIX 5 now supports IA64 processor 8618 lt_prog_compiler_static='-Bstatic' 8619 else 8620 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8621 fi 8622 ;; 8623 8624 darwin* | rhapsody*) 8625 # PIC is the default on this platform 8626 # Common symbols not allowed in MH_DYLIB files 8627 lt_prog_compiler_pic='-fno-common' 8628 case $cc_basename in 8629 nagfor*) 8630 # NAG Fortran compiler 8631 lt_prog_compiler_wl='-Wl,-Wl,,' 8632 lt_prog_compiler_pic='-PIC' 8633 lt_prog_compiler_static='-Bstatic' 8634 ;; 8635 esac 8636 ;; 8637 8638 mingw* | cygwin* | pw32* | os2* | cegcc*) 8639 # This hack is so that the source file can tell whether it is being 8640 # built for inclusion in a dll (and should export symbols for example). 8641 lt_prog_compiler_pic='-DDLL_EXPORT' 8642 case $host_os in 8643 os2*) 8644 lt_prog_compiler_static='$wl-static' 8645 ;; 8646 esac 8647 ;; 8648 8649 hpux9* | hpux10* | hpux11*) 8650 lt_prog_compiler_wl='-Wl,' 8651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8652 # not for PA HP-UX. 8653 case $host_cpu in 8654 hppa*64*|ia64*) 8655 # +Z the default 8656 ;; 8657 *) 8658 lt_prog_compiler_pic='+Z' 8659 ;; 8660 esac 8661 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8662 lt_prog_compiler_static='$wl-a ${wl}archive' 8663 ;; 8664 8665 irix5* | irix6* | nonstopux*) 8666 lt_prog_compiler_wl='-Wl,' 8667 # PIC (with -KPIC) is the default. 8668 lt_prog_compiler_static='-non_shared' 8669 ;; 8670 8671 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8672 case $cc_basename in 8673 # old Intel for x86_64, which still supported -KPIC. 8674 ecc*) 8675 lt_prog_compiler_wl='-Wl,' 8676 lt_prog_compiler_pic='-KPIC' 8677 lt_prog_compiler_static='-static' 8678 ;; 8679 # icc used to be incompatible with GCC. 8680 # ICC 10 doesn't accept -KPIC any more. 8681 icc* | ifort*) 8682 lt_prog_compiler_wl='-Wl,' 8683 lt_prog_compiler_pic='-fPIC' 8684 lt_prog_compiler_static='-static' 8685 ;; 8686 # Lahey Fortran 8.1. 8687 lf95*) 8688 lt_prog_compiler_wl='-Wl,' 8689 lt_prog_compiler_pic='--shared' 8690 lt_prog_compiler_static='--static' 8691 ;; 8692 nagfor*) 8693 # NAG Fortran compiler 8694 lt_prog_compiler_wl='-Wl,-Wl,,' 8695 lt_prog_compiler_pic='-PIC' 8696 lt_prog_compiler_static='-Bstatic' 8697 ;; 8698 tcc*) 8699 # Fabrice Bellard et al's Tiny C Compiler 8700 lt_prog_compiler_wl='-Wl,' 8701 lt_prog_compiler_pic='-fPIC' 8702 lt_prog_compiler_static='-static' 8703 ;; 8704 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8705 # Portland Group compilers (*not* the Pentium gcc compiler, 8706 # which looks to be a dead project) 8707 lt_prog_compiler_wl='-Wl,' 8708 lt_prog_compiler_pic='-fpic' 8709 lt_prog_compiler_static='-Bstatic' 8710 ;; 8711 ccc*) 8712 lt_prog_compiler_wl='-Wl,' 8713 # All Alpha code is PIC. 8714 lt_prog_compiler_static='-non_shared' 8715 ;; 8716 xl* | bgxl* | bgf* | mpixl*) 8717 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8718 lt_prog_compiler_wl='-Wl,' 8719 lt_prog_compiler_pic='-qpic' 8720 lt_prog_compiler_static='-qstaticlink' 8721 ;; 8722 *) 8723 case `$CC -V 2>&1 | sed 5q` in 8724 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8725 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8726 lt_prog_compiler_pic='-KPIC' 8727 lt_prog_compiler_static='-Bstatic' 8728 lt_prog_compiler_wl='' 8729 ;; 8730 *Sun\ F* | *Sun*Fortran*) 8731 lt_prog_compiler_pic='-KPIC' 8732 lt_prog_compiler_static='-Bstatic' 8733 lt_prog_compiler_wl='-Qoption ld ' 8734 ;; 8735 *Sun\ C*) 8736 # Sun C 5.9 8737 lt_prog_compiler_pic='-KPIC' 8738 lt_prog_compiler_static='-Bstatic' 8739 lt_prog_compiler_wl='-Wl,' 8740 ;; 8741 *Intel*\ [CF]*Compiler*) 8742 lt_prog_compiler_wl='-Wl,' 8743 lt_prog_compiler_pic='-fPIC' 8744 lt_prog_compiler_static='-static' 8745 ;; 8746 *Portland\ Group*) 8747 lt_prog_compiler_wl='-Wl,' 8748 lt_prog_compiler_pic='-fpic' 8749 lt_prog_compiler_static='-Bstatic' 8750 ;; 8751 esac 8752 ;; 8753 esac 8754 ;; 8755 8756 newsos6) 8757 lt_prog_compiler_pic='-KPIC' 8758 lt_prog_compiler_static='-Bstatic' 8759 ;; 8760 8761 *nto* | *qnx*) 8762 # QNX uses GNU C++, but need to define -shared option too, otherwise 8763 # it will coredump. 8764 lt_prog_compiler_pic='-fPIC -shared' 8765 ;; 8766 8767 osf3* | osf4* | osf5*) 8768 lt_prog_compiler_wl='-Wl,' 8769 # All OSF/1 code is PIC. 8770 lt_prog_compiler_static='-non_shared' 8771 ;; 8772 8773 rdos*) 8774 lt_prog_compiler_static='-non_shared' 8775 ;; 8776 8777 solaris*) 8778 lt_prog_compiler_pic='-KPIC' 8779 lt_prog_compiler_static='-Bstatic' 8780 case $cc_basename in 8781 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8782 lt_prog_compiler_wl='-Qoption ld ';; 8783 *) 8784 lt_prog_compiler_wl='-Wl,';; 8785 esac 8786 ;; 8787 8788 sunos4*) 8789 lt_prog_compiler_wl='-Qoption ld ' 8790 lt_prog_compiler_pic='-PIC' 8791 lt_prog_compiler_static='-Bstatic' 8792 ;; 8793 8794 sysv4 | sysv4.2uw2* | sysv4.3*) 8795 lt_prog_compiler_wl='-Wl,' 8796 lt_prog_compiler_pic='-KPIC' 8797 lt_prog_compiler_static='-Bstatic' 8798 ;; 8799 8800 sysv4*MP*) 8801 if test -d /usr/nec; then 8802 lt_prog_compiler_pic='-Kconform_pic' 8803 lt_prog_compiler_static='-Bstatic' 8804 fi 8805 ;; 8806 8807 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8808 lt_prog_compiler_wl='-Wl,' 8809 lt_prog_compiler_pic='-KPIC' 8810 lt_prog_compiler_static='-Bstatic' 8811 ;; 8812 8813 unicos*) 8814 lt_prog_compiler_wl='-Wl,' 8815 lt_prog_compiler_can_build_shared=no 8816 ;; 8817 8818 uts4*) 8819 lt_prog_compiler_pic='-pic' 8820 lt_prog_compiler_static='-Bstatic' 8821 ;; 8822 8823 *) 8824 lt_prog_compiler_can_build_shared=no 8825 ;; 8826 esac 8827 fi 8828 8829case $host_os in 8830 # For platforms that do not support PIC, -DPIC is meaningless: 8831 *djgpp*) 8832 lt_prog_compiler_pic= 8833 ;; 8834 *) 8835 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8836 ;; 8837esac 8838 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8840$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8841if ${lt_cv_prog_compiler_pic+:} false; then : 8842 $as_echo_n "(cached) " >&6 8843else 8844 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8847$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8848lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8849 8850# 8851# Check to make sure the PIC flag actually works. 8852# 8853if test -n "$lt_prog_compiler_pic"; then 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8855$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8856if ${lt_cv_prog_compiler_pic_works+:} false; then : 8857 $as_echo_n "(cached) " >&6 8858else 8859 lt_cv_prog_compiler_pic_works=no 8860 ac_outfile=conftest.$ac_objext 8861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8862 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8863 # Insert the option either (1) after the last *FLAGS variable, or 8864 # (2) before a word containing "conftest.", or (3) at the end. 8865 # Note that $ac_compile itself does not contain backslashes and begins 8866 # with a dollar sign (not a hyphen), so the echo should work correctly. 8867 # The option is referenced via a variable to avoid confusing sed. 8868 lt_compile=`echo "$ac_compile" | $SED \ 8869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8871 -e 's:$: $lt_compiler_flag:'` 8872 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8873 (eval "$lt_compile" 2>conftest.err) 8874 ac_status=$? 8875 cat conftest.err >&5 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 if (exit $ac_status) && test -s "$ac_outfile"; then 8878 # The compiler can only warn and ignore the option if not recognized 8879 # So say no if there are warnings other than the usual output. 8880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8882 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8883 lt_cv_prog_compiler_pic_works=yes 8884 fi 8885 fi 8886 $RM conftest* 8887 8888fi 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8890$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8891 8892if test yes = "$lt_cv_prog_compiler_pic_works"; then 8893 case $lt_prog_compiler_pic in 8894 "" | " "*) ;; 8895 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8896 esac 8897else 8898 lt_prog_compiler_pic= 8899 lt_prog_compiler_can_build_shared=no 8900fi 8901 8902fi 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914# 8915# Check to make sure the static flag actually works. 8916# 8917wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8920if ${lt_cv_prog_compiler_static_works+:} false; then : 8921 $as_echo_n "(cached) " >&6 8922else 8923 lt_cv_prog_compiler_static_works=no 8924 save_LDFLAGS=$LDFLAGS 8925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8926 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8928 # The linker can only warn and ignore the option if not recognized 8929 # So say no if there are warnings 8930 if test -s conftest.err; then 8931 # Append any errors to the config.log. 8932 cat conftest.err 1>&5 8933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8935 if diff conftest.exp conftest.er2 >/dev/null; then 8936 lt_cv_prog_compiler_static_works=yes 8937 fi 8938 else 8939 lt_cv_prog_compiler_static_works=yes 8940 fi 8941 fi 8942 $RM -r conftest* 8943 LDFLAGS=$save_LDFLAGS 8944 8945fi 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8947$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8948 8949if test yes = "$lt_cv_prog_compiler_static_works"; then 8950 : 8951else 8952 lt_prog_compiler_static= 8953fi 8954 8955 8956 8957 8958 8959 8960 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8963if ${lt_cv_prog_compiler_c_o+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 lt_cv_prog_compiler_c_o=no 8967 $RM -r conftest 2>/dev/null 8968 mkdir conftest 8969 cd conftest 8970 mkdir out 8971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8972 8973 lt_compiler_flag="-o out/conftest2.$ac_objext" 8974 # Insert the option either (1) after the last *FLAGS variable, or 8975 # (2) before a word containing "conftest.", or (3) at the end. 8976 # Note that $ac_compile itself does not contain backslashes and begins 8977 # with a dollar sign (not a hyphen), so the echo should work correctly. 8978 lt_compile=`echo "$ac_compile" | $SED \ 8979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8981 -e 's:$: $lt_compiler_flag:'` 8982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8983 (eval "$lt_compile" 2>out/conftest.err) 8984 ac_status=$? 8985 cat out/conftest.err >&5 8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8987 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8988 then 8989 # The compiler can only warn and ignore the option if not recognized 8990 # So say no if there are warnings 8991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8994 lt_cv_prog_compiler_c_o=yes 8995 fi 8996 fi 8997 chmod u+w . 2>&5 8998 $RM conftest* 8999 # SGI C++ compiler will create directory out/ii_files/ for 9000 # template instantiation 9001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9002 $RM out/* && rmdir out 9003 cd .. 9004 $RM -r conftest 9005 $RM conftest* 9006 9007fi 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9009$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9010 9011 9012 9013 9014 9015 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9017$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9018if ${lt_cv_prog_compiler_c_o+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 lt_cv_prog_compiler_c_o=no 9022 $RM -r conftest 2>/dev/null 9023 mkdir conftest 9024 cd conftest 9025 mkdir out 9026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9027 9028 lt_compiler_flag="-o out/conftest2.$ac_objext" 9029 # Insert the option either (1) after the last *FLAGS variable, or 9030 # (2) before a word containing "conftest.", or (3) at the end. 9031 # Note that $ac_compile itself does not contain backslashes and begins 9032 # with a dollar sign (not a hyphen), so the echo should work correctly. 9033 lt_compile=`echo "$ac_compile" | $SED \ 9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9036 -e 's:$: $lt_compiler_flag:'` 9037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9038 (eval "$lt_compile" 2>out/conftest.err) 9039 ac_status=$? 9040 cat out/conftest.err >&5 9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9042 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9043 then 9044 # The compiler can only warn and ignore the option if not recognized 9045 # So say no if there are warnings 9046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9049 lt_cv_prog_compiler_c_o=yes 9050 fi 9051 fi 9052 chmod u+w . 2>&5 9053 $RM conftest* 9054 # SGI C++ compiler will create directory out/ii_files/ for 9055 # template instantiation 9056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9057 $RM out/* && rmdir out 9058 cd .. 9059 $RM -r conftest 9060 $RM conftest* 9061 9062fi 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9064$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9065 9066 9067 9068 9069hard_links=nottested 9070if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9071 # do not overwrite the value of need_locks provided by the user 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9073$as_echo_n "checking if we can lock with hard links... " >&6; } 9074 hard_links=yes 9075 $RM conftest* 9076 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9077 touch conftest.a 9078 ln conftest.a conftest.b 2>&5 || hard_links=no 9079 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9081$as_echo "$hard_links" >&6; } 9082 if test no = "$hard_links"; then 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9084$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9085 need_locks=warn 9086 fi 9087else 9088 need_locks=no 9089fi 9090 9091 9092 9093 9094 9095 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9097$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9098 9099 runpath_var= 9100 allow_undefined_flag= 9101 always_export_symbols=no 9102 archive_cmds= 9103 archive_expsym_cmds= 9104 compiler_needs_object=no 9105 enable_shared_with_static_runtimes=no 9106 export_dynamic_flag_spec= 9107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9108 hardcode_automatic=no 9109 hardcode_direct=no 9110 hardcode_direct_absolute=no 9111 hardcode_libdir_flag_spec= 9112 hardcode_libdir_separator= 9113 hardcode_minus_L=no 9114 hardcode_shlibpath_var=unsupported 9115 inherit_rpath=no 9116 link_all_deplibs=unknown 9117 module_cmds= 9118 module_expsym_cmds= 9119 old_archive_from_new_cmds= 9120 old_archive_from_expsyms_cmds= 9121 thread_safe_flag_spec= 9122 whole_archive_flag_spec= 9123 # include_expsyms should be a list of space-separated symbols to be *always* 9124 # included in the symbol list 9125 include_expsyms= 9126 # exclude_expsyms can be an extended regexp of symbols to exclude 9127 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9128 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9129 # as well as any symbol that contains 'd'. 9130 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9131 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9132 # platforms (ab)use it in PIC code, but their linkers get confused if 9133 # the symbol is explicitly referenced. Since portable code cannot 9134 # rely on this symbol name, it's probably fine to never include it in 9135 # preloaded symbol tables. 9136 # Exclude shared library initialization/finalization symbols. 9137 extract_expsyms_cmds= 9138 9139 case $host_os in 9140 cygwin* | mingw* | pw32* | cegcc*) 9141 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9142 # When not using gcc, we currently assume that we are using 9143 # Microsoft Visual C++. 9144 if test yes != "$GCC"; then 9145 with_gnu_ld=no 9146 fi 9147 ;; 9148 interix*) 9149 # we just hope/assume this is gcc and not c89 (= MSVC++) 9150 with_gnu_ld=yes 9151 ;; 9152 openbsd* | bitrig*) 9153 with_gnu_ld=no 9154 ;; 9155 linux* | k*bsd*-gnu | gnu*) 9156 link_all_deplibs=no 9157 ;; 9158 esac 9159 9160 ld_shlibs=yes 9161 9162 # On some targets, GNU ld is compatible enough with the native linker 9163 # that we're better off using the native interface for both. 9164 lt_use_gnu_ld_interface=no 9165 if test yes = "$with_gnu_ld"; then 9166 case $host_os in 9167 aix*) 9168 # The AIX port of GNU ld has always aspired to compatibility 9169 # with the native linker. However, as the warning in the GNU ld 9170 # block says, versions before 2.19.5* couldn't really create working 9171 # shared libraries, regardless of the interface used. 9172 case `$LD -v 2>&1` in 9173 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9174 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9175 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9176 *) 9177 lt_use_gnu_ld_interface=yes 9178 ;; 9179 esac 9180 ;; 9181 *) 9182 lt_use_gnu_ld_interface=yes 9183 ;; 9184 esac 9185 fi 9186 9187 if test yes = "$lt_use_gnu_ld_interface"; then 9188 # If archive_cmds runs LD, not CC, wlarc should be empty 9189 wlarc='$wl' 9190 9191 # Set some defaults for GNU ld with shared library support. These 9192 # are reset later if shared libraries are not supported. Putting them 9193 # here allows them to be overridden if necessary. 9194 runpath_var=LD_RUN_PATH 9195 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9196 export_dynamic_flag_spec='$wl--export-dynamic' 9197 # ancient GNU ld didn't support --whole-archive et. al. 9198 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9199 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9200 else 9201 whole_archive_flag_spec= 9202 fi 9203 supports_anon_versioning=no 9204 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9205 *GNU\ gold*) supports_anon_versioning=yes ;; 9206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9209 *\ 2.11.*) ;; # other 2.11 versions 9210 *) supports_anon_versioning=yes ;; 9211 esac 9212 9213 # See if GNU ld supports shared libraries. 9214 case $host_os in 9215 aix[3-9]*) 9216 # On AIX/PPC, the GNU linker is very broken 9217 if test ia64 != "$host_cpu"; then 9218 ld_shlibs=no 9219 cat <<_LT_EOF 1>&2 9220 9221*** Warning: the GNU linker, at least up to release 2.19, is reported 9222*** to be unable to reliably create shared libraries on AIX. 9223*** Therefore, libtool is disabling shared libraries support. If you 9224*** really care for shared libraries, you may want to install binutils 9225*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9226*** You will then need to restart the configuration process. 9227 9228_LT_EOF 9229 fi 9230 ;; 9231 9232 amigaos*) 9233 case $host_cpu in 9234 powerpc) 9235 # see comment about AmigaOS4 .so support 9236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9237 archive_expsym_cmds='' 9238 ;; 9239 m68k) 9240 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)' 9241 hardcode_libdir_flag_spec='-L$libdir' 9242 hardcode_minus_L=yes 9243 ;; 9244 esac 9245 ;; 9246 9247 beos*) 9248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9249 allow_undefined_flag=unsupported 9250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9251 # support --undefined. This deserves some investigation. FIXME 9252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9253 else 9254 ld_shlibs=no 9255 fi 9256 ;; 9257 9258 cygwin* | mingw* | pw32* | cegcc*) 9259 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9260 # as there is no search path for DLLs. 9261 hardcode_libdir_flag_spec='-L$libdir' 9262 export_dynamic_flag_spec='$wl--export-all-symbols' 9263 allow_undefined_flag=unsupported 9264 always_export_symbols=no 9265 enable_shared_with_static_runtimes=yes 9266 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' 9267 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9268 9269 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9271 # If the export-symbols file already is a .def file, use it as 9272 # is; otherwise, prepend EXPORTS... 9273 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9274 cp $export_symbols $output_objdir/$soname.def; 9275 else 9276 echo EXPORTS > $output_objdir/$soname.def; 9277 cat $export_symbols >> $output_objdir/$soname.def; 9278 fi~ 9279 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9280 else 9281 ld_shlibs=no 9282 fi 9283 ;; 9284 9285 haiku*) 9286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9287 link_all_deplibs=yes 9288 ;; 9289 9290 os2*) 9291 hardcode_libdir_flag_spec='-L$libdir' 9292 hardcode_minus_L=yes 9293 allow_undefined_flag=unsupported 9294 shrext_cmds=.dll 9295 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9298 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9299 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9301 emximp -o $lib $output_objdir/$libname.def' 9302 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9305 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9306 prefix_cmds="$SED"~ 9307 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9308 prefix_cmds="$prefix_cmds -e 1d"; 9309 fi~ 9310 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9311 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9313 emximp -o $lib $output_objdir/$libname.def' 9314 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9315 enable_shared_with_static_runtimes=yes 9316 ;; 9317 9318 interix[3-9]*) 9319 hardcode_direct=no 9320 hardcode_shlibpath_var=no 9321 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9322 export_dynamic_flag_spec='$wl-E' 9323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9324 # Instead, shared libraries are loaded at an image base (0x10000000 by 9325 # default) and relocated if they conflict, which is a slow very memory 9326 # consuming and fragmenting process. To avoid this, we pick a random, 9327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9328 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9330 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' 9331 ;; 9332 9333 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9334 tmp_diet=no 9335 if test linux-dietlibc = "$host_os"; then 9336 case $cc_basename in 9337 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9338 esac 9339 fi 9340 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9341 && test no = "$tmp_diet" 9342 then 9343 tmp_addflag=' $pic_flag' 9344 tmp_sharedflag='-shared' 9345 case $cc_basename,$host_cpu in 9346 pgcc*) # Portland Group C compiler 9347 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' 9348 tmp_addflag=' $pic_flag' 9349 ;; 9350 pgf77* | pgf90* | pgf95* | pgfortran*) 9351 # Portland Group f77 and f90 compilers 9352 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' 9353 tmp_addflag=' $pic_flag -Mnomain' ;; 9354 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9355 tmp_addflag=' -i_dynamic' ;; 9356 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9357 tmp_addflag=' -i_dynamic -nofor_main' ;; 9358 ifc* | ifort*) # Intel Fortran compiler 9359 tmp_addflag=' -nofor_main' ;; 9360 lf95*) # Lahey Fortran 8.1 9361 whole_archive_flag_spec= 9362 tmp_sharedflag='--shared' ;; 9363 nagfor*) # NAGFOR 5.3 9364 tmp_sharedflag='-Wl,-shared' ;; 9365 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9366 tmp_sharedflag='-qmkshrobj' 9367 tmp_addflag= ;; 9368 nvcc*) # Cuda Compiler Driver 2.2 9369 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' 9370 compiler_needs_object=yes 9371 ;; 9372 esac 9373 case `$CC -V 2>&1 | sed 5q` in 9374 *Sun\ C*) # Sun C 5.9 9375 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' 9376 compiler_needs_object=yes 9377 tmp_sharedflag='-G' ;; 9378 *Sun\ F*) # Sun Fortran 8.3 9379 tmp_sharedflag='-G' ;; 9380 esac 9381 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9382 9383 if test yes = "$supports_anon_versioning"; then 9384 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9386 echo "local: *; };" >> $output_objdir/$libname.ver~ 9387 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9388 fi 9389 9390 case $cc_basename in 9391 tcc*) 9392 export_dynamic_flag_spec='-rdynamic' 9393 ;; 9394 xlf* | bgf* | bgxlf* | mpixlf*) 9395 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9396 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9397 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9398 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9399 if test yes = "$supports_anon_versioning"; then 9400 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9402 echo "local: *; };" >> $output_objdir/$libname.ver~ 9403 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9404 fi 9405 ;; 9406 esac 9407 else 9408 ld_shlibs=no 9409 fi 9410 ;; 9411 9412 netbsd* | netbsdelf*-gnu) 9413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9414 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9415 wlarc= 9416 else 9417 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9418 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9419 fi 9420 ;; 9421 9422 solaris*) 9423 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9424 ld_shlibs=no 9425 cat <<_LT_EOF 1>&2 9426 9427*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9428*** create shared libraries on Solaris systems. Therefore, libtool 9429*** is disabling shared libraries support. We urge you to upgrade GNU 9430*** binutils to release 2.9.1 or newer. Another option is to modify 9431*** your PATH or compiler configuration so that the native linker is 9432*** used, and then restart. 9433 9434_LT_EOF 9435 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9437 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9438 else 9439 ld_shlibs=no 9440 fi 9441 ;; 9442 9443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9444 case `$LD -v 2>&1` in 9445 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9446 ld_shlibs=no 9447 cat <<_LT_EOF 1>&2 9448 9449*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9450*** reliably create shared libraries on SCO systems. Therefore, libtool 9451*** is disabling shared libraries support. We urge you to upgrade GNU 9452*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9453*** your PATH or compiler configuration so that the native linker is 9454*** used, and then restart. 9455 9456_LT_EOF 9457 ;; 9458 *) 9459 # For security reasons, it is highly recommended that you always 9460 # use absolute paths for naming shared libraries, and exclude the 9461 # DT_RUNPATH tag from executables and libraries. But doing so 9462 # requires that you compile everything twice, which is a pain. 9463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9467 else 9468 ld_shlibs=no 9469 fi 9470 ;; 9471 esac 9472 ;; 9473 9474 sunos4*) 9475 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9476 wlarc= 9477 hardcode_direct=yes 9478 hardcode_shlibpath_var=no 9479 ;; 9480 9481 *) 9482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9484 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9485 else 9486 ld_shlibs=no 9487 fi 9488 ;; 9489 esac 9490 9491 if test no = "$ld_shlibs"; then 9492 runpath_var= 9493 hardcode_libdir_flag_spec= 9494 export_dynamic_flag_spec= 9495 whole_archive_flag_spec= 9496 fi 9497 else 9498 # PORTME fill in a description of your system's linker (not GNU ld) 9499 case $host_os in 9500 aix3*) 9501 allow_undefined_flag=unsupported 9502 always_export_symbols=yes 9503 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' 9504 # Note: this linker hardcodes the directories in LIBPATH if there 9505 # are no directories specified by -L. 9506 hardcode_minus_L=yes 9507 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9508 # Neither direct hardcoding nor static linking is supported with a 9509 # broken collect2. 9510 hardcode_direct=unsupported 9511 fi 9512 ;; 9513 9514 aix[4-9]*) 9515 if test ia64 = "$host_cpu"; then 9516 # On IA64, the linker does run time linking by default, so we don't 9517 # have to do anything special. 9518 aix_use_runtimelinking=no 9519 exp_sym_flag='-Bexport' 9520 no_entry_flag= 9521 else 9522 # If we're using GNU nm, then we don't want the "-C" option. 9523 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9524 # Without the "-l" option, or with the "-B" option, AIX nm treats 9525 # weak defined symbols like other global defined symbols, whereas 9526 # GNU nm marks them as "W". 9527 # While the 'weak' keyword is ignored in the Export File, we need 9528 # it in the Import File for the 'aix-soname' feature, so we have 9529 # to replace the "-B" option with "-P" for AIX nm. 9530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9531 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' 9532 else 9533 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' 9534 fi 9535 aix_use_runtimelinking=no 9536 9537 # Test if we are trying to use run time linking or normal 9538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9539 # have runtime linking enabled, and use it for executables. 9540 # For shared libraries, we enable/disable runtime linking 9541 # depending on the kind of the shared library created - 9542 # when "with_aix_soname,aix_use_runtimelinking" is: 9543 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9544 # "aix,yes" lib.so shared, rtl:yes, for executables 9545 # lib.a static archive 9546 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9547 # lib.a(lib.so.V) shared, rtl:no, for executables 9548 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9549 # lib.a(lib.so.V) shared, rtl:no 9550 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9551 # lib.a static archive 9552 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9553 for ld_flag in $LDFLAGS; do 9554 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9555 aix_use_runtimelinking=yes 9556 break 9557 fi 9558 done 9559 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9560 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9561 # so we don't have lib.a shared libs to link our executables. 9562 # We have to force runtime linking in this case. 9563 aix_use_runtimelinking=yes 9564 LDFLAGS="$LDFLAGS -Wl,-brtl" 9565 fi 9566 ;; 9567 esac 9568 9569 exp_sym_flag='-bexport' 9570 no_entry_flag='-bnoentry' 9571 fi 9572 9573 # When large executables or shared objects are built, AIX ld can 9574 # have problems creating the table of contents. If linking a library 9575 # or program results in "error TOC overflow" add -mminimal-toc to 9576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9578 9579 archive_cmds='' 9580 hardcode_direct=yes 9581 hardcode_direct_absolute=yes 9582 hardcode_libdir_separator=':' 9583 link_all_deplibs=yes 9584 file_list_spec='$wl-f,' 9585 case $with_aix_soname,$aix_use_runtimelinking in 9586 aix,*) ;; # traditional, no import file 9587 svr4,* | *,yes) # use import file 9588 # The Import File defines what to hardcode. 9589 hardcode_direct=no 9590 hardcode_direct_absolute=no 9591 ;; 9592 esac 9593 9594 if test yes = "$GCC"; then 9595 case $host_os in aix4.[012]|aix4.[012].*) 9596 # We only want to do this on AIX 4.2 and lower, the check 9597 # below for broken collect2 doesn't work under 4.3+ 9598 collect2name=`$CC -print-prog-name=collect2` 9599 if test -f "$collect2name" && 9600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9601 then 9602 # We have reworked collect2 9603 : 9604 else 9605 # We have old collect2 9606 hardcode_direct=unsupported 9607 # It fails to find uninstalled libraries when the uninstalled 9608 # path is not listed in the libpath. Setting hardcode_minus_L 9609 # to unsupported forces relinking 9610 hardcode_minus_L=yes 9611 hardcode_libdir_flag_spec='-L$libdir' 9612 hardcode_libdir_separator= 9613 fi 9614 ;; 9615 esac 9616 shared_flag='-shared' 9617 if test yes = "$aix_use_runtimelinking"; then 9618 shared_flag="$shared_flag "'$wl-G' 9619 fi 9620 # Need to ensure runtime linking is disabled for the traditional 9621 # shared library, or the linker may eventually find shared libraries 9622 # /with/ Import File - we do not want to mix them. 9623 shared_flag_aix='-shared' 9624 shared_flag_svr4='-shared $wl-G' 9625 else 9626 # not using gcc 9627 if test ia64 = "$host_cpu"; then 9628 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9629 # chokes on -Wl,-G. The following line is correct: 9630 shared_flag='-G' 9631 else 9632 if test yes = "$aix_use_runtimelinking"; then 9633 shared_flag='$wl-G' 9634 else 9635 shared_flag='$wl-bM:SRE' 9636 fi 9637 shared_flag_aix='$wl-bM:SRE' 9638 shared_flag_svr4='$wl-G' 9639 fi 9640 fi 9641 9642 export_dynamic_flag_spec='$wl-bexpall' 9643 # It seems that -bexpall does not export symbols beginning with 9644 # underscore (_), so it is better to generate a list of symbols to export. 9645 always_export_symbols=yes 9646 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9647 # Warning - without using the other runtime loading flags (-brtl), 9648 # -berok will link without error, but may produce a broken library. 9649 allow_undefined_flag='-berok' 9650 # Determine the default libpath from the value encoded in an 9651 # empty executable. 9652 if test set = "${lt_cv_aix_libpath+set}"; then 9653 aix_libpath=$lt_cv_aix_libpath 9654else 9655 if ${lt_cv_aix_libpath_+:} false; then : 9656 $as_echo_n "(cached) " >&6 9657else 9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9659/* end confdefs.h. */ 9660 9661int 9662main () 9663{ 9664 9665 ; 9666 return 0; 9667} 9668_ACEOF 9669if ac_fn_c_try_link "$LINENO"; then : 9670 9671 lt_aix_libpath_sed=' 9672 /Import File Strings/,/^$/ { 9673 /^0/ { 9674 s/^0 *\([^ ]*\) *$/\1/ 9675 p 9676 } 9677 }' 9678 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9679 # Check for a 64-bit object if we didn't find anything. 9680 if test -z "$lt_cv_aix_libpath_"; then 9681 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9682 fi 9683fi 9684rm -f core conftest.err conftest.$ac_objext \ 9685 conftest$ac_exeext conftest.$ac_ext 9686 if test -z "$lt_cv_aix_libpath_"; then 9687 lt_cv_aix_libpath_=/usr/lib:/lib 9688 fi 9689 9690fi 9691 9692 aix_libpath=$lt_cv_aix_libpath_ 9693fi 9694 9695 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9696 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 9697 else 9698 if test ia64 = "$host_cpu"; then 9699 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9700 allow_undefined_flag="-z nodefs" 9701 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" 9702 else 9703 # Determine the default libpath from the value encoded in an 9704 # empty executable. 9705 if test set = "${lt_cv_aix_libpath+set}"; then 9706 aix_libpath=$lt_cv_aix_libpath 9707else 9708 if ${lt_cv_aix_libpath_+:} false; then : 9709 $as_echo_n "(cached) " >&6 9710else 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712/* end confdefs.h. */ 9713 9714int 9715main () 9716{ 9717 9718 ; 9719 return 0; 9720} 9721_ACEOF 9722if ac_fn_c_try_link "$LINENO"; then : 9723 9724 lt_aix_libpath_sed=' 9725 /Import File Strings/,/^$/ { 9726 /^0/ { 9727 s/^0 *\([^ ]*\) *$/\1/ 9728 p 9729 } 9730 }' 9731 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9732 # Check for a 64-bit object if we didn't find anything. 9733 if test -z "$lt_cv_aix_libpath_"; then 9734 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9735 fi 9736fi 9737rm -f core conftest.err conftest.$ac_objext \ 9738 conftest$ac_exeext conftest.$ac_ext 9739 if test -z "$lt_cv_aix_libpath_"; then 9740 lt_cv_aix_libpath_=/usr/lib:/lib 9741 fi 9742 9743fi 9744 9745 aix_libpath=$lt_cv_aix_libpath_ 9746fi 9747 9748 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9749 # Warning - without using the other run time loading flags, 9750 # -berok will link without error, but may produce a broken library. 9751 no_undefined_flag=' $wl-bernotok' 9752 allow_undefined_flag=' $wl-berok' 9753 if test yes = "$with_gnu_ld"; then 9754 # We only use this code for GNU lds that support --whole-archive. 9755 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9756 else 9757 # Exported symbols can be pulled into shared objects from archives 9758 whole_archive_flag_spec='$convenience' 9759 fi 9760 archive_cmds_need_lc=yes 9761 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9762 # -brtl affects multiple linker settings, -berok does not and is overridden later 9763 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9764 if test svr4 != "$with_aix_soname"; then 9765 # This is similar to how AIX traditionally builds its shared libraries. 9766 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' 9767 fi 9768 if test aix != "$with_aix_soname"; then 9769 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' 9770 else 9771 # used by -dlpreopen to get the symbols 9772 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9773 fi 9774 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9775 fi 9776 fi 9777 ;; 9778 9779 amigaos*) 9780 case $host_cpu in 9781 powerpc) 9782 # see comment about AmigaOS4 .so support 9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9784 archive_expsym_cmds='' 9785 ;; 9786 m68k) 9787 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)' 9788 hardcode_libdir_flag_spec='-L$libdir' 9789 hardcode_minus_L=yes 9790 ;; 9791 esac 9792 ;; 9793 9794 bsdi[45]*) 9795 export_dynamic_flag_spec=-rdynamic 9796 ;; 9797 9798 cygwin* | mingw* | pw32* | cegcc*) 9799 # When not using gcc, we currently assume that we are using 9800 # Microsoft Visual C++. 9801 # hardcode_libdir_flag_spec is actually meaningless, as there is 9802 # no search path for DLLs. 9803 case $cc_basename in 9804 cl*) 9805 # Native MSVC 9806 hardcode_libdir_flag_spec=' ' 9807 allow_undefined_flag=unsupported 9808 always_export_symbols=yes 9809 file_list_spec='@' 9810 # Tell ltmain to make .lib files, not .a files. 9811 libext=lib 9812 # Tell ltmain to make .dll files, not .so files. 9813 shrext_cmds=.dll 9814 # FIXME: Setting linknames here is a bad hack. 9815 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9816 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9817 cp "$export_symbols" "$output_objdir/$soname.def"; 9818 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9819 else 9820 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9821 fi~ 9822 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9823 linknames=' 9824 # The linker will not automatically build a static lib if we build a DLL. 9825 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9826 enable_shared_with_static_runtimes=yes 9827 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9828 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9829 # Don't use ranlib 9830 old_postinstall_cmds='chmod 644 $oldlib' 9831 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9832 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9833 case $lt_outputfile in 9834 *.exe|*.EXE) ;; 9835 *) 9836 lt_outputfile=$lt_outputfile.exe 9837 lt_tool_outputfile=$lt_tool_outputfile.exe 9838 ;; 9839 esac~ 9840 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9841 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9842 $RM "$lt_outputfile.manifest"; 9843 fi' 9844 ;; 9845 *) 9846 # Assume MSVC wrapper 9847 hardcode_libdir_flag_spec=' ' 9848 allow_undefined_flag=unsupported 9849 # Tell ltmain to make .lib files, not .a files. 9850 libext=lib 9851 # Tell ltmain to make .dll files, not .so files. 9852 shrext_cmds=.dll 9853 # FIXME: Setting linknames here is a bad hack. 9854 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9855 # The linker will automatically build a .lib file if we build a DLL. 9856 old_archive_from_new_cmds='true' 9857 # FIXME: Should let the user specify the lib program. 9858 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9859 enable_shared_with_static_runtimes=yes 9860 ;; 9861 esac 9862 ;; 9863 9864 darwin* | rhapsody*) 9865 9866 9867 archive_cmds_need_lc=no 9868 hardcode_direct=no 9869 hardcode_automatic=yes 9870 hardcode_shlibpath_var=unsupported 9871 if test yes = "$lt_cv_ld_force_load"; then 9872 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\"`' 9873 9874 else 9875 whole_archive_flag_spec='' 9876 fi 9877 link_all_deplibs=yes 9878 allow_undefined_flag=$_lt_dar_allow_undefined 9879 case $cc_basename in 9880 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9881 *) _lt_dar_can_shared=$GCC ;; 9882 esac 9883 if test yes = "$_lt_dar_can_shared"; then 9884 output_verbose_link_cmd=func_echo_all 9885 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9886 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9887 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" 9888 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" 9889 9890 else 9891 ld_shlibs=no 9892 fi 9893 9894 ;; 9895 9896 dgux*) 9897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9898 hardcode_libdir_flag_spec='-L$libdir' 9899 hardcode_shlibpath_var=no 9900 ;; 9901 9902 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9903 # support. Future versions do this automatically, but an explicit c++rt0.o 9904 # does not break anything, and helps significantly (at the cost of a little 9905 # extra space). 9906 freebsd2.2*) 9907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9908 hardcode_libdir_flag_spec='-R$libdir' 9909 hardcode_direct=yes 9910 hardcode_shlibpath_var=no 9911 ;; 9912 9913 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9914 freebsd2.*) 9915 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9916 hardcode_direct=yes 9917 hardcode_minus_L=yes 9918 hardcode_shlibpath_var=no 9919 ;; 9920 9921 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9922 freebsd* | dragonfly*) 9923 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9924 hardcode_libdir_flag_spec='-R$libdir' 9925 hardcode_direct=yes 9926 hardcode_shlibpath_var=no 9927 ;; 9928 9929 hpux9*) 9930 if test yes = "$GCC"; then 9931 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' 9932 else 9933 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' 9934 fi 9935 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9936 hardcode_libdir_separator=: 9937 hardcode_direct=yes 9938 9939 # hardcode_minus_L: Not really in the search PATH, 9940 # but as the default location of the library. 9941 hardcode_minus_L=yes 9942 export_dynamic_flag_spec='$wl-E' 9943 ;; 9944 9945 hpux10*) 9946 if test yes,no = "$GCC,$with_gnu_ld"; then 9947 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9948 else 9949 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9950 fi 9951 if test no = "$with_gnu_ld"; then 9952 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9953 hardcode_libdir_separator=: 9954 hardcode_direct=yes 9955 hardcode_direct_absolute=yes 9956 export_dynamic_flag_spec='$wl-E' 9957 # hardcode_minus_L: Not really in the search PATH, 9958 # but as the default location of the library. 9959 hardcode_minus_L=yes 9960 fi 9961 ;; 9962 9963 hpux11*) 9964 if test yes,no = "$GCC,$with_gnu_ld"; then 9965 case $host_cpu in 9966 hppa*64*) 9967 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9968 ;; 9969 ia64*) 9970 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9971 ;; 9972 *) 9973 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9974 ;; 9975 esac 9976 else 9977 case $host_cpu in 9978 hppa*64*) 9979 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9980 ;; 9981 ia64*) 9982 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9983 ;; 9984 *) 9985 9986 # Older versions of the 11.00 compiler do not understand -b yet 9987 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9989$as_echo_n "checking if $CC understands -b... " >&6; } 9990if ${lt_cv_prog_compiler__b+:} false; then : 9991 $as_echo_n "(cached) " >&6 9992else 9993 lt_cv_prog_compiler__b=no 9994 save_LDFLAGS=$LDFLAGS 9995 LDFLAGS="$LDFLAGS -b" 9996 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9998 # The linker can only warn and ignore the option if not recognized 9999 # So say no if there are warnings 10000 if test -s conftest.err; then 10001 # Append any errors to the config.log. 10002 cat conftest.err 1>&5 10003 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10005 if diff conftest.exp conftest.er2 >/dev/null; then 10006 lt_cv_prog_compiler__b=yes 10007 fi 10008 else 10009 lt_cv_prog_compiler__b=yes 10010 fi 10011 fi 10012 $RM -r conftest* 10013 LDFLAGS=$save_LDFLAGS 10014 10015fi 10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10017$as_echo "$lt_cv_prog_compiler__b" >&6; } 10018 10019if test yes = "$lt_cv_prog_compiler__b"; then 10020 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10021else 10022 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10023fi 10024 10025 ;; 10026 esac 10027 fi 10028 if test no = "$with_gnu_ld"; then 10029 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10030 hardcode_libdir_separator=: 10031 10032 case $host_cpu in 10033 hppa*64*|ia64*) 10034 hardcode_direct=no 10035 hardcode_shlibpath_var=no 10036 ;; 10037 *) 10038 hardcode_direct=yes 10039 hardcode_direct_absolute=yes 10040 export_dynamic_flag_spec='$wl-E' 10041 10042 # hardcode_minus_L: Not really in the search PATH, 10043 # but as the default location of the library. 10044 hardcode_minus_L=yes 10045 ;; 10046 esac 10047 fi 10048 ;; 10049 10050 irix5* | irix6* | nonstopux*) 10051 if test yes = "$GCC"; then 10052 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' 10053 # Try to use the -exported_symbol ld option, if it does not 10054 # work, assume that -exports_file does not work either and 10055 # implicitly export all symbols. 10056 # This should be the same for all languages, so no per-tag cache variable. 10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10058$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10059if ${lt_cv_irix_exported_symbol+:} false; then : 10060 $as_echo_n "(cached) " >&6 10061else 10062 save_LDFLAGS=$LDFLAGS 10063 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10065/* end confdefs.h. */ 10066int foo (void) { return 0; } 10067_ACEOF 10068if ac_fn_c_try_link "$LINENO"; then : 10069 lt_cv_irix_exported_symbol=yes 10070else 10071 lt_cv_irix_exported_symbol=no 10072fi 10073rm -f core conftest.err conftest.$ac_objext \ 10074 conftest$ac_exeext conftest.$ac_ext 10075 LDFLAGS=$save_LDFLAGS 10076fi 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10078$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10079 if test yes = "$lt_cv_irix_exported_symbol"; then 10080 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' 10081 fi 10082 link_all_deplibs=no 10083 else 10084 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' 10085 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' 10086 fi 10087 archive_cmds_need_lc='no' 10088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10089 hardcode_libdir_separator=: 10090 inherit_rpath=yes 10091 link_all_deplibs=yes 10092 ;; 10093 10094 linux*) 10095 case $cc_basename in 10096 tcc*) 10097 # Fabrice Bellard et al's Tiny C Compiler 10098 ld_shlibs=yes 10099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10100 ;; 10101 esac 10102 ;; 10103 10104 netbsd* | netbsdelf*-gnu) 10105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10107 else 10108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10109 fi 10110 hardcode_libdir_flag_spec='-R$libdir' 10111 hardcode_direct=yes 10112 hardcode_shlibpath_var=no 10113 ;; 10114 10115 newsos6) 10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10117 hardcode_direct=yes 10118 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10119 hardcode_libdir_separator=: 10120 hardcode_shlibpath_var=no 10121 ;; 10122 10123 *nto* | *qnx*) 10124 ;; 10125 10126 openbsd* | bitrig*) 10127 if test -f /usr/libexec/ld.so; then 10128 hardcode_direct=yes 10129 hardcode_shlibpath_var=no 10130 hardcode_direct_absolute=yes 10131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10134 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10135 export_dynamic_flag_spec='$wl-E' 10136 else 10137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10138 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10139 fi 10140 else 10141 ld_shlibs=no 10142 fi 10143 ;; 10144 10145 os2*) 10146 hardcode_libdir_flag_spec='-L$libdir' 10147 hardcode_minus_L=yes 10148 allow_undefined_flag=unsupported 10149 shrext_cmds=.dll 10150 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10153 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10154 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10156 emximp -o $lib $output_objdir/$libname.def' 10157 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10160 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10161 prefix_cmds="$SED"~ 10162 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10163 prefix_cmds="$prefix_cmds -e 1d"; 10164 fi~ 10165 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10166 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10168 emximp -o $lib $output_objdir/$libname.def' 10169 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10170 enable_shared_with_static_runtimes=yes 10171 ;; 10172 10173 osf3*) 10174 if test yes = "$GCC"; then 10175 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10176 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' 10177 else 10178 allow_undefined_flag=' -expect_unresolved \*' 10179 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' 10180 fi 10181 archive_cmds_need_lc='no' 10182 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10183 hardcode_libdir_separator=: 10184 ;; 10185 10186 osf4* | osf5*) # as osf3* with the addition of -msym flag 10187 if test yes = "$GCC"; then 10188 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10189 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' 10190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10191 else 10192 allow_undefined_flag=' -expect_unresolved \*' 10193 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' 10194 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~ 10195 $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' 10196 10197 # Both c and cxx compiler support -rpath directly 10198 hardcode_libdir_flag_spec='-rpath $libdir' 10199 fi 10200 archive_cmds_need_lc='no' 10201 hardcode_libdir_separator=: 10202 ;; 10203 10204 solaris*) 10205 no_undefined_flag=' -z defs' 10206 if test yes = "$GCC"; then 10207 wlarc='$wl' 10208 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10210 $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' 10211 else 10212 case `$CC -V 2>&1` in 10213 *"Compilers 5.0"*) 10214 wlarc='' 10215 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10217 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10218 ;; 10219 *) 10220 wlarc='$wl' 10221 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10223 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10224 ;; 10225 esac 10226 fi 10227 hardcode_libdir_flag_spec='-R$libdir' 10228 hardcode_shlibpath_var=no 10229 case $host_os in 10230 solaris2.[0-5] | solaris2.[0-5].*) ;; 10231 *) 10232 # The compiler driver will combine and reorder linker options, 10233 # but understands '-z linker_flag'. GCC discards it without '$wl', 10234 # but is careful enough not to reorder. 10235 # Supported since Solaris 2.6 (maybe 2.5.1?) 10236 if test yes = "$GCC"; then 10237 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10238 else 10239 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10240 fi 10241 ;; 10242 esac 10243 link_all_deplibs=yes 10244 ;; 10245 10246 sunos4*) 10247 if test sequent = "$host_vendor"; then 10248 # Use $CC to link under sequent, because it throws in some extra .o 10249 # files that make .init and .fini sections work. 10250 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10251 else 10252 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10253 fi 10254 hardcode_libdir_flag_spec='-L$libdir' 10255 hardcode_direct=yes 10256 hardcode_minus_L=yes 10257 hardcode_shlibpath_var=no 10258 ;; 10259 10260 sysv4) 10261 case $host_vendor in 10262 sni) 10263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10264 hardcode_direct=yes # is this really true??? 10265 ;; 10266 siemens) 10267 ## LD is ld it makes a PLAMLIB 10268 ## CC just makes a GrossModule. 10269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10270 reload_cmds='$CC -r -o $output$reload_objs' 10271 hardcode_direct=no 10272 ;; 10273 motorola) 10274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10276 ;; 10277 esac 10278 runpath_var='LD_RUN_PATH' 10279 hardcode_shlibpath_var=no 10280 ;; 10281 10282 sysv4.3*) 10283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10284 hardcode_shlibpath_var=no 10285 export_dynamic_flag_spec='-Bexport' 10286 ;; 10287 10288 sysv4*MP*) 10289 if test -d /usr/nec; then 10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10291 hardcode_shlibpath_var=no 10292 runpath_var=LD_RUN_PATH 10293 hardcode_runpath_var=yes 10294 ld_shlibs=yes 10295 fi 10296 ;; 10297 10298 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10299 no_undefined_flag='$wl-z,text' 10300 archive_cmds_need_lc=no 10301 hardcode_shlibpath_var=no 10302 runpath_var='LD_RUN_PATH' 10303 10304 if test yes = "$GCC"; then 10305 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10306 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10307 else 10308 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10309 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10310 fi 10311 ;; 10312 10313 sysv5* | sco3.2v5* | sco5v6*) 10314 # Note: We CANNOT use -z defs as we might desire, because we do not 10315 # link with -lc, and that would cause any symbols used from libc to 10316 # always be unresolved, which means just about no library would 10317 # ever link correctly. If we're not using GNU ld we use -z text 10318 # though, which does catch some bad symbols but isn't as heavy-handed 10319 # as -z defs. 10320 no_undefined_flag='$wl-z,text' 10321 allow_undefined_flag='$wl-z,nodefs' 10322 archive_cmds_need_lc=no 10323 hardcode_shlibpath_var=no 10324 hardcode_libdir_flag_spec='$wl-R,$libdir' 10325 hardcode_libdir_separator=':' 10326 link_all_deplibs=yes 10327 export_dynamic_flag_spec='$wl-Bexport' 10328 runpath_var='LD_RUN_PATH' 10329 10330 if test yes = "$GCC"; then 10331 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10332 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10333 else 10334 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10335 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10336 fi 10337 ;; 10338 10339 uts4*) 10340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10341 hardcode_libdir_flag_spec='-L$libdir' 10342 hardcode_shlibpath_var=no 10343 ;; 10344 10345 *) 10346 ld_shlibs=no 10347 ;; 10348 esac 10349 10350 if test sni = "$host_vendor"; then 10351 case $host in 10352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10353 export_dynamic_flag_spec='$wl-Blargedynsym' 10354 ;; 10355 esac 10356 fi 10357 fi 10358 10359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10360$as_echo "$ld_shlibs" >&6; } 10361test no = "$ld_shlibs" && can_build_shared=no 10362 10363with_gnu_ld=$with_gnu_ld 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379# 10380# Do we need to explicitly link libc? 10381# 10382case "x$archive_cmds_need_lc" in 10383x|xyes) 10384 # Assume -lc should be added 10385 archive_cmds_need_lc=yes 10386 10387 if test yes,yes = "$GCC,$enable_shared"; then 10388 case $archive_cmds in 10389 *'~'*) 10390 # FIXME: we may have to deal with multi-command sequences. 10391 ;; 10392 '$CC '*) 10393 # Test whether the compiler implicitly links with -lc since on some 10394 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10395 # to ld, don't add -lc before -lgcc. 10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10397$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10398if ${lt_cv_archive_cmds_need_lc+:} false; then : 10399 $as_echo_n "(cached) " >&6 10400else 10401 $RM conftest* 10402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10403 10404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10405 (eval $ac_compile) 2>&5 10406 ac_status=$? 10407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10408 test $ac_status = 0; } 2>conftest.err; then 10409 soname=conftest 10410 lib=conftest 10411 libobjs=conftest.$ac_objext 10412 deplibs= 10413 wl=$lt_prog_compiler_wl 10414 pic_flag=$lt_prog_compiler_pic 10415 compiler_flags=-v 10416 linker_flags=-v 10417 verstring= 10418 output_objdir=. 10419 libname=conftest 10420 lt_save_allow_undefined_flag=$allow_undefined_flag 10421 allow_undefined_flag= 10422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10423 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10424 ac_status=$? 10425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10426 test $ac_status = 0; } 10427 then 10428 lt_cv_archive_cmds_need_lc=no 10429 else 10430 lt_cv_archive_cmds_need_lc=yes 10431 fi 10432 allow_undefined_flag=$lt_save_allow_undefined_flag 10433 else 10434 cat conftest.err 1>&5 10435 fi 10436 $RM conftest* 10437 10438fi 10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10440$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10441 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10442 ;; 10443 esac 10444 fi 10445 ;; 10446esac 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 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 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10600$as_echo_n "checking dynamic linker characteristics... " >&6; } 10601 10602if test yes = "$GCC"; then 10603 case $host_os in 10604 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10605 *) lt_awk_arg='/^libraries:/' ;; 10606 esac 10607 case $host_os in 10608 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10609 *) lt_sed_strip_eq='s|=/|/|g' ;; 10610 esac 10611 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10612 case $lt_search_path_spec in 10613 *\;*) 10614 # if the path contains ";" then we assume it to be the separator 10615 # otherwise default to the standard path separator (i.e. ":") - it is 10616 # assumed that no part of a normal pathname contains ";" but that should 10617 # okay in the real world where ";" in dirpaths is itself problematic. 10618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10619 ;; 10620 *) 10621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10622 ;; 10623 esac 10624 # Ok, now we have the path, separated by spaces, we can step through it 10625 # and add multilib dir if necessary... 10626 lt_tmp_lt_search_path_spec= 10627 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10628 # ...but if some path component already ends with the multilib dir we assume 10629 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10630 case "$lt_multi_os_dir; $lt_search_path_spec " in 10631 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10632 lt_multi_os_dir= 10633 ;; 10634 esac 10635 for lt_sys_path in $lt_search_path_spec; do 10636 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10638 elif test -n "$lt_multi_os_dir"; then 10639 test -d "$lt_sys_path" && \ 10640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10641 fi 10642 done 10643 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10644BEGIN {RS = " "; FS = "/|\n";} { 10645 lt_foo = ""; 10646 lt_count = 0; 10647 for (lt_i = NF; lt_i > 0; lt_i--) { 10648 if ($lt_i != "" && $lt_i != ".") { 10649 if ($lt_i == "..") { 10650 lt_count++; 10651 } else { 10652 if (lt_count == 0) { 10653 lt_foo = "/" $lt_i lt_foo; 10654 } else { 10655 lt_count--; 10656 } 10657 } 10658 } 10659 } 10660 if (lt_foo != "") { lt_freq[lt_foo]++; } 10661 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10662}'` 10663 # AWK program above erroneously prepends '/' to C:/dos/paths 10664 # for these hosts. 10665 case $host_os in 10666 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10667 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10668 esac 10669 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10670else 10671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10672fi 10673library_names_spec= 10674libname_spec='lib$name' 10675soname_spec= 10676shrext_cmds=.so 10677postinstall_cmds= 10678postuninstall_cmds= 10679finish_cmds= 10680finish_eval= 10681shlibpath_var= 10682shlibpath_overrides_runpath=unknown 10683version_type=none 10684dynamic_linker="$host_os ld.so" 10685sys_lib_dlsearch_path_spec="/lib /usr/lib" 10686need_lib_prefix=unknown 10687hardcode_into_libs=no 10688 10689# when you set need_version to no, make sure it does not cause -set_version 10690# flags to be left without arguments 10691need_version=unknown 10692 10693 10694 10695case $host_os in 10696aix3*) 10697 version_type=linux # correct to gnu/linux during the next big refactor 10698 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10699 shlibpath_var=LIBPATH 10700 10701 # AIX 3 has no versioning support, so we append a major version to the name. 10702 soname_spec='$libname$release$shared_ext$major' 10703 ;; 10704 10705aix[4-9]*) 10706 version_type=linux # correct to gnu/linux during the next big refactor 10707 need_lib_prefix=no 10708 need_version=no 10709 hardcode_into_libs=yes 10710 if test ia64 = "$host_cpu"; then 10711 # AIX 5 supports IA64 10712 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10713 shlibpath_var=LD_LIBRARY_PATH 10714 else 10715 # With GCC up to 2.95.x, collect2 would create an import file 10716 # for dependence libraries. The import file would start with 10717 # the line '#! .'. This would cause the generated library to 10718 # depend on '.', always an invalid library. This was fixed in 10719 # development snapshots of GCC prior to 3.0. 10720 case $host_os in 10721 aix4 | aix4.[01] | aix4.[01].*) 10722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10723 echo ' yes ' 10724 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10725 : 10726 else 10727 can_build_shared=no 10728 fi 10729 ;; 10730 esac 10731 # Using Import Files as archive members, it is possible to support 10732 # filename-based versioning of shared library archives on AIX. While 10733 # this would work for both with and without runtime linking, it will 10734 # prevent static linking of such archives. So we do filename-based 10735 # shared library versioning with .so extension only, which is used 10736 # when both runtime linking and shared linking is enabled. 10737 # Unfortunately, runtime linking may impact performance, so we do 10738 # not want this to be the default eventually. Also, we use the 10739 # versioned .so libs for executables only if there is the -brtl 10740 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10741 # To allow for filename-based versioning support, we need to create 10742 # libNAME.so.V as an archive file, containing: 10743 # *) an Import File, referring to the versioned filename of the 10744 # archive as well as the shared archive member, telling the 10745 # bitwidth (32 or 64) of that shared object, and providing the 10746 # list of exported symbols of that shared object, eventually 10747 # decorated with the 'weak' keyword 10748 # *) the shared object with the F_LOADONLY flag set, to really avoid 10749 # it being seen by the linker. 10750 # At run time we better use the real file rather than another symlink, 10751 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10752 10753 case $with_aix_soname,$aix_use_runtimelinking in 10754 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10755 # soname into executable. Probably we can add versioning support to 10756 # collect2, so additional links can be useful in future. 10757 aix,yes) # traditional libtool 10758 dynamic_linker='AIX unversionable lib.so' 10759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10760 # instead of lib<name>.a to let people know that these are not 10761 # typical AIX shared libraries. 10762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10763 ;; 10764 aix,no) # traditional AIX only 10765 dynamic_linker='AIX lib.a(lib.so.V)' 10766 # We preserve .a as extension for shared libraries through AIX4.2 10767 # and later when we are not doing run time linking. 10768 library_names_spec='$libname$release.a $libname.a' 10769 soname_spec='$libname$release$shared_ext$major' 10770 ;; 10771 svr4,*) # full svr4 only 10772 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10773 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10774 # We do not specify a path in Import Files, so LIBPATH fires. 10775 shlibpath_overrides_runpath=yes 10776 ;; 10777 *,yes) # both, prefer svr4 10778 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10779 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10780 # unpreferred sharedlib libNAME.a needs extra handling 10781 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"' 10782 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"' 10783 # We do not specify a path in Import Files, so LIBPATH fires. 10784 shlibpath_overrides_runpath=yes 10785 ;; 10786 *,no) # both, prefer aix 10787 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10788 library_names_spec='$libname$release.a $libname.a' 10789 soname_spec='$libname$release$shared_ext$major' 10790 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10791 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)' 10792 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"' 10793 ;; 10794 esac 10795 shlibpath_var=LIBPATH 10796 fi 10797 ;; 10798 10799amigaos*) 10800 case $host_cpu in 10801 powerpc) 10802 # Since July 2007 AmigaOS4 officially supports .so libraries. 10803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10805 ;; 10806 m68k) 10807 library_names_spec='$libname.ixlibrary $libname.a' 10808 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10809 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' 10810 ;; 10811 esac 10812 ;; 10813 10814beos*) 10815 library_names_spec='$libname$shared_ext' 10816 dynamic_linker="$host_os ld.so" 10817 shlibpath_var=LIBRARY_PATH 10818 ;; 10819 10820bsdi[45]*) 10821 version_type=linux # correct to gnu/linux during the next big refactor 10822 need_version=no 10823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10824 soname_spec='$libname$release$shared_ext$major' 10825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10826 shlibpath_var=LD_LIBRARY_PATH 10827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10829 # the default ld.so.conf also contains /usr/contrib/lib and 10830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10831 # libtool to hard-code these into programs 10832 ;; 10833 10834cygwin* | mingw* | pw32* | cegcc*) 10835 version_type=windows 10836 shrext_cmds=.dll 10837 need_version=no 10838 need_lib_prefix=no 10839 10840 case $GCC,$cc_basename in 10841 yes,*) 10842 # gcc 10843 library_names_spec='$libname.dll.a' 10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10845 postinstall_cmds='base_file=`basename \$file`~ 10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10847 dldir=$destdir/`dirname \$dlpath`~ 10848 test -d \$dldir || mkdir -p \$dldir~ 10849 $install_prog $dir/$dlname \$dldir/$dlname~ 10850 chmod a+x \$dldir/$dlname~ 10851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10853 fi' 10854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10855 dlpath=$dir/\$dldll~ 10856 $RM \$dlpath' 10857 shlibpath_overrides_runpath=yes 10858 10859 case $host_os in 10860 cygwin*) 10861 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10862 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10863 10864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10865 ;; 10866 mingw* | cegcc*) 10867 # MinGW DLLs use traditional 'lib' prefix 10868 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10869 ;; 10870 pw32*) 10871 # pw32 DLLs use 'pw' prefix rather than 'lib' 10872 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10873 ;; 10874 esac 10875 dynamic_linker='Win32 ld.exe' 10876 ;; 10877 10878 *,cl*) 10879 # Native MSVC 10880 libname_spec='$name' 10881 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10882 library_names_spec='$libname.dll.lib' 10883 10884 case $build_os in 10885 mingw*) 10886 sys_lib_search_path_spec= 10887 lt_save_ifs=$IFS 10888 IFS=';' 10889 for lt_path in $LIB 10890 do 10891 IFS=$lt_save_ifs 10892 # Let DOS variable expansion print the short 8.3 style file name. 10893 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10894 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10895 done 10896 IFS=$lt_save_ifs 10897 # Convert to MSYS style. 10898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10899 ;; 10900 cygwin*) 10901 # Convert to unix form, then to dos form, then back to unix form 10902 # but this time dos style (no spaces!) so that the unix form looks 10903 # like /cygdrive/c/PROGRA~1:/cygdr... 10904 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10905 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10906 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10907 ;; 10908 *) 10909 sys_lib_search_path_spec=$LIB 10910 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10911 # It is most probably a Windows format PATH. 10912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10913 else 10914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10915 fi 10916 # FIXME: find the short name or the path components, as spaces are 10917 # common. (e.g. "Program Files" -> "PROGRA~1") 10918 ;; 10919 esac 10920 10921 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10922 postinstall_cmds='base_file=`basename \$file`~ 10923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10924 dldir=$destdir/`dirname \$dlpath`~ 10925 test -d \$dldir || mkdir -p \$dldir~ 10926 $install_prog $dir/$dlname \$dldir/$dlname' 10927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10928 dlpath=$dir/\$dldll~ 10929 $RM \$dlpath' 10930 shlibpath_overrides_runpath=yes 10931 dynamic_linker='Win32 link.exe' 10932 ;; 10933 10934 *) 10935 # Assume MSVC wrapper 10936 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10937 dynamic_linker='Win32 ld.exe' 10938 ;; 10939 esac 10940 # FIXME: first we should search . and the directory the executable is in 10941 shlibpath_var=PATH 10942 ;; 10943 10944darwin* | rhapsody*) 10945 dynamic_linker="$host_os dyld" 10946 version_type=darwin 10947 need_lib_prefix=no 10948 need_version=no 10949 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10950 soname_spec='$libname$release$major$shared_ext' 10951 shlibpath_overrides_runpath=yes 10952 shlibpath_var=DYLD_LIBRARY_PATH 10953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10954 10955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10957 ;; 10958 10959dgux*) 10960 version_type=linux # correct to gnu/linux during the next big refactor 10961 need_lib_prefix=no 10962 need_version=no 10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10964 soname_spec='$libname$release$shared_ext$major' 10965 shlibpath_var=LD_LIBRARY_PATH 10966 ;; 10967 10968freebsd* | dragonfly*) 10969 # DragonFly does not have aout. When/if they implement a new 10970 # versioning mechanism, adjust this. 10971 if test -x /usr/bin/objformat; then 10972 objformat=`/usr/bin/objformat` 10973 else 10974 case $host_os in 10975 freebsd[23].*) objformat=aout ;; 10976 *) objformat=elf ;; 10977 esac 10978 fi 10979 version_type=freebsd-$objformat 10980 case $version_type in 10981 freebsd-elf*) 10982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10983 soname_spec='$libname$release$shared_ext$major' 10984 need_version=no 10985 need_lib_prefix=no 10986 ;; 10987 freebsd-*) 10988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10989 need_version=yes 10990 ;; 10991 esac 10992 shlibpath_var=LD_LIBRARY_PATH 10993 case $host_os in 10994 freebsd2.*) 10995 shlibpath_overrides_runpath=yes 10996 ;; 10997 freebsd3.[01]* | freebsdelf3.[01]*) 10998 shlibpath_overrides_runpath=yes 10999 hardcode_into_libs=yes 11000 ;; 11001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11003 shlibpath_overrides_runpath=no 11004 hardcode_into_libs=yes 11005 ;; 11006 *) # from 4.6 on, and DragonFly 11007 shlibpath_overrides_runpath=yes 11008 hardcode_into_libs=yes 11009 ;; 11010 esac 11011 ;; 11012 11013haiku*) 11014 version_type=linux # correct to gnu/linux during the next big refactor 11015 need_lib_prefix=no 11016 need_version=no 11017 dynamic_linker="$host_os runtime_loader" 11018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11019 soname_spec='$libname$release$shared_ext$major' 11020 shlibpath_var=LIBRARY_PATH 11021 shlibpath_overrides_runpath=no 11022 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11023 hardcode_into_libs=yes 11024 ;; 11025 11026hpux9* | hpux10* | hpux11*) 11027 # Give a soname corresponding to the major version so that dld.sl refuses to 11028 # link against other versions. 11029 version_type=sunos 11030 need_lib_prefix=no 11031 need_version=no 11032 case $host_cpu in 11033 ia64*) 11034 shrext_cmds='.so' 11035 hardcode_into_libs=yes 11036 dynamic_linker="$host_os dld.so" 11037 shlibpath_var=LD_LIBRARY_PATH 11038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11040 soname_spec='$libname$release$shared_ext$major' 11041 if test 32 = "$HPUX_IA64_MODE"; then 11042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11043 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11044 else 11045 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11046 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11047 fi 11048 ;; 11049 hppa*64*) 11050 shrext_cmds='.sl' 11051 hardcode_into_libs=yes 11052 dynamic_linker="$host_os dld.sl" 11053 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11056 soname_spec='$libname$release$shared_ext$major' 11057 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11059 ;; 11060 *) 11061 shrext_cmds='.sl' 11062 dynamic_linker="$host_os dld.sl" 11063 shlibpath_var=SHLIB_PATH 11064 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11066 soname_spec='$libname$release$shared_ext$major' 11067 ;; 11068 esac 11069 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11070 postinstall_cmds='chmod 555 $lib' 11071 # or fails outright, so override atomically: 11072 install_override_mode=555 11073 ;; 11074 11075interix[3-9]*) 11076 version_type=linux # correct to gnu/linux during the next big refactor 11077 need_lib_prefix=no 11078 need_version=no 11079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11080 soname_spec='$libname$release$shared_ext$major' 11081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11082 shlibpath_var=LD_LIBRARY_PATH 11083 shlibpath_overrides_runpath=no 11084 hardcode_into_libs=yes 11085 ;; 11086 11087irix5* | irix6* | nonstopux*) 11088 case $host_os in 11089 nonstopux*) version_type=nonstopux ;; 11090 *) 11091 if test yes = "$lt_cv_prog_gnu_ld"; then 11092 version_type=linux # correct to gnu/linux during the next big refactor 11093 else 11094 version_type=irix 11095 fi ;; 11096 esac 11097 need_lib_prefix=no 11098 need_version=no 11099 soname_spec='$libname$release$shared_ext$major' 11100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11101 case $host_os in 11102 irix5* | nonstopux*) 11103 libsuff= shlibsuff= 11104 ;; 11105 *) 11106 case $LD in # libtool.m4 will add one of these switches to LD 11107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11108 libsuff= shlibsuff= libmagic=32-bit;; 11109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11110 libsuff=32 shlibsuff=N32 libmagic=N32;; 11111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11112 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11113 *) libsuff= shlibsuff= libmagic=never-match;; 11114 esac 11115 ;; 11116 esac 11117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11118 shlibpath_overrides_runpath=no 11119 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11120 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11121 hardcode_into_libs=yes 11122 ;; 11123 11124# No shared lib support for Linux oldld, aout, or coff. 11125linux*oldld* | linux*aout* | linux*coff*) 11126 dynamic_linker=no 11127 ;; 11128 11129linux*android*) 11130 version_type=none # Android doesn't support versioned libraries. 11131 need_lib_prefix=no 11132 need_version=no 11133 library_names_spec='$libname$release$shared_ext' 11134 soname_spec='$libname$release$shared_ext' 11135 finish_cmds= 11136 shlibpath_var=LD_LIBRARY_PATH 11137 shlibpath_overrides_runpath=yes 11138 11139 # This implies no fast_install, which is unacceptable. 11140 # Some rework will be needed to allow for fast_install 11141 # before this can be enabled. 11142 hardcode_into_libs=yes 11143 11144 dynamic_linker='Android linker' 11145 # Don't embed -rpath directories since the linker doesn't support them. 11146 hardcode_libdir_flag_spec='-L$libdir' 11147 ;; 11148 11149# This must be glibc/ELF. 11150linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11151 version_type=linux # correct to gnu/linux during the next big refactor 11152 need_lib_prefix=no 11153 need_version=no 11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11155 soname_spec='$libname$release$shared_ext$major' 11156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11157 shlibpath_var=LD_LIBRARY_PATH 11158 shlibpath_overrides_runpath=no 11159 11160 # Some binutils ld are patched to set DT_RUNPATH 11161 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11162 $as_echo_n "(cached) " >&6 11163else 11164 lt_cv_shlibpath_overrides_runpath=no 11165 save_LDFLAGS=$LDFLAGS 11166 save_libdir=$libdir 11167 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11168 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11170/* end confdefs.h. */ 11171 11172int 11173main () 11174{ 11175 11176 ; 11177 return 0; 11178} 11179_ACEOF 11180if ac_fn_c_try_link "$LINENO"; then : 11181 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11182 lt_cv_shlibpath_overrides_runpath=yes 11183fi 11184fi 11185rm -f core conftest.err conftest.$ac_objext \ 11186 conftest$ac_exeext conftest.$ac_ext 11187 LDFLAGS=$save_LDFLAGS 11188 libdir=$save_libdir 11189 11190fi 11191 11192 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11193 11194 # This implies no fast_install, which is unacceptable. 11195 # Some rework will be needed to allow for fast_install 11196 # before this can be enabled. 11197 hardcode_into_libs=yes 11198 11199 # Ideally, we could use ldconfig to report *all* directores which are 11200 # searched for libraries, however this is still not possible. Aside from not 11201 # being certain /sbin/ldconfig is available, command 11202 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11203 # even though it is searched at run-time. Try to do the best guess by 11204 # appending ld.so.conf contents (and includes) to the search path. 11205 if test -f /etc/ld.so.conf; then 11206 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' ' '` 11207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11208 fi 11209 11210 # We used to test for /lib/ld.so.1 and disable shared libraries on 11211 # powerpc, because MkLinux only supported shared libraries with the 11212 # GNU dynamic linker. Since this was broken with cross compilers, 11213 # most powerpc-linux boxes support dynamic linking these days and 11214 # people can always --disable-shared, the test was removed, and we 11215 # assume the GNU/Linux dynamic linker is in use. 11216 dynamic_linker='GNU/Linux ld.so' 11217 ;; 11218 11219netbsdelf*-gnu) 11220 version_type=linux 11221 need_lib_prefix=no 11222 need_version=no 11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11224 soname_spec='${libname}${release}${shared_ext}$major' 11225 shlibpath_var=LD_LIBRARY_PATH 11226 shlibpath_overrides_runpath=no 11227 hardcode_into_libs=yes 11228 dynamic_linker='NetBSD ld.elf_so' 11229 ;; 11230 11231netbsd*) 11232 version_type=sunos 11233 need_lib_prefix=no 11234 need_version=no 11235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11238 dynamic_linker='NetBSD (a.out) ld.so' 11239 else 11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11241 soname_spec='$libname$release$shared_ext$major' 11242 dynamic_linker='NetBSD ld.elf_so' 11243 fi 11244 shlibpath_var=LD_LIBRARY_PATH 11245 shlibpath_overrides_runpath=yes 11246 hardcode_into_libs=yes 11247 ;; 11248 11249newsos6) 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11252 shlibpath_var=LD_LIBRARY_PATH 11253 shlibpath_overrides_runpath=yes 11254 ;; 11255 11256*nto* | *qnx*) 11257 version_type=qnx 11258 need_lib_prefix=no 11259 need_version=no 11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11261 soname_spec='$libname$release$shared_ext$major' 11262 shlibpath_var=LD_LIBRARY_PATH 11263 shlibpath_overrides_runpath=no 11264 hardcode_into_libs=yes 11265 dynamic_linker='ldqnx.so' 11266 ;; 11267 11268openbsd* | bitrig*) 11269 version_type=sunos 11270 sys_lib_dlsearch_path_spec=/usr/lib 11271 need_lib_prefix=no 11272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11273 need_version=no 11274 else 11275 need_version=yes 11276 fi 11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 shlibpath_overrides_runpath=yes 11281 ;; 11282 11283os2*) 11284 libname_spec='$name' 11285 version_type=windows 11286 shrext_cmds=.dll 11287 need_version=no 11288 need_lib_prefix=no 11289 # OS/2 can only load a DLL with a base name of 8 characters or less. 11290 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11291 v=$($ECHO $release$versuffix | tr -d .-); 11292 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11293 $ECHO $n$v`$shared_ext' 11294 library_names_spec='${libname}_dll.$libext' 11295 dynamic_linker='OS/2 ld.exe' 11296 shlibpath_var=BEGINLIBPATH 11297 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11299 postinstall_cmds='base_file=`basename \$file`~ 11300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11301 dldir=$destdir/`dirname \$dlpath`~ 11302 test -d \$dldir || mkdir -p \$dldir~ 11303 $install_prog $dir/$dlname \$dldir/$dlname~ 11304 chmod a+x \$dldir/$dlname~ 11305 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11306 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11307 fi' 11308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11309 dlpath=$dir/\$dldll~ 11310 $RM \$dlpath' 11311 ;; 11312 11313osf3* | osf4* | osf5*) 11314 version_type=osf 11315 need_lib_prefix=no 11316 need_version=no 11317 soname_spec='$libname$release$shared_ext$major' 11318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11319 shlibpath_var=LD_LIBRARY_PATH 11320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11322 ;; 11323 11324rdos*) 11325 dynamic_linker=no 11326 ;; 11327 11328solaris*) 11329 version_type=linux # correct to gnu/linux during the next big refactor 11330 need_lib_prefix=no 11331 need_version=no 11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11333 soname_spec='$libname$release$shared_ext$major' 11334 shlibpath_var=LD_LIBRARY_PATH 11335 shlibpath_overrides_runpath=yes 11336 hardcode_into_libs=yes 11337 # ldd complains unless libraries are executable 11338 postinstall_cmds='chmod +x $lib' 11339 ;; 11340 11341sunos4*) 11342 version_type=sunos 11343 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11345 shlibpath_var=LD_LIBRARY_PATH 11346 shlibpath_overrides_runpath=yes 11347 if test yes = "$with_gnu_ld"; then 11348 need_lib_prefix=no 11349 fi 11350 need_version=yes 11351 ;; 11352 11353sysv4 | sysv4.3*) 11354 version_type=linux # correct to gnu/linux during the next big refactor 11355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11356 soname_spec='$libname$release$shared_ext$major' 11357 shlibpath_var=LD_LIBRARY_PATH 11358 case $host_vendor in 11359 sni) 11360 shlibpath_overrides_runpath=no 11361 need_lib_prefix=no 11362 runpath_var=LD_RUN_PATH 11363 ;; 11364 siemens) 11365 need_lib_prefix=no 11366 ;; 11367 motorola) 11368 need_lib_prefix=no 11369 need_version=no 11370 shlibpath_overrides_runpath=no 11371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11372 ;; 11373 esac 11374 ;; 11375 11376sysv4*MP*) 11377 if test -d /usr/nec; then 11378 version_type=linux # correct to gnu/linux during the next big refactor 11379 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11380 soname_spec='$libname$shared_ext.$major' 11381 shlibpath_var=LD_LIBRARY_PATH 11382 fi 11383 ;; 11384 11385sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11386 version_type=sco 11387 need_lib_prefix=no 11388 need_version=no 11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11390 soname_spec='$libname$release$shared_ext$major' 11391 shlibpath_var=LD_LIBRARY_PATH 11392 shlibpath_overrides_runpath=yes 11393 hardcode_into_libs=yes 11394 if test yes = "$with_gnu_ld"; then 11395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11396 else 11397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11398 case $host_os in 11399 sco3.2v5*) 11400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11401 ;; 11402 esac 11403 fi 11404 sys_lib_dlsearch_path_spec='/usr/lib' 11405 ;; 11406 11407tpf*) 11408 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11409 version_type=linux # correct to gnu/linux during the next big refactor 11410 need_lib_prefix=no 11411 need_version=no 11412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11413 shlibpath_var=LD_LIBRARY_PATH 11414 shlibpath_overrides_runpath=no 11415 hardcode_into_libs=yes 11416 ;; 11417 11418uts4*) 11419 version_type=linux # correct to gnu/linux during the next big refactor 11420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11421 soname_spec='$libname$release$shared_ext$major' 11422 shlibpath_var=LD_LIBRARY_PATH 11423 ;; 11424 11425*) 11426 dynamic_linker=no 11427 ;; 11428esac 11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11430$as_echo "$dynamic_linker" >&6; } 11431test no = "$dynamic_linker" && can_build_shared=no 11432 11433variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11434if test yes = "$GCC"; then 11435 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11436fi 11437 11438if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11439 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11440fi 11441 11442if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11443 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11444fi 11445 11446# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11447configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11448 11449# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11450func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11451 11452# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11453configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11552$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11553hardcode_action= 11554if test -n "$hardcode_libdir_flag_spec" || 11555 test -n "$runpath_var" || 11556 test yes = "$hardcode_automatic"; then 11557 11558 # We can hardcode non-existent directories. 11559 if test no != "$hardcode_direct" && 11560 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11561 # have to relink, otherwise we might link with an installed library 11562 # when we should be linking with a yet-to-be-installed one 11563 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11564 test no != "$hardcode_minus_L"; then 11565 # Linking always hardcodes the temporary library directory. 11566 hardcode_action=relink 11567 else 11568 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11569 hardcode_action=immediate 11570 fi 11571else 11572 # We cannot hardcode anything, or else we can only hardcode existing 11573 # directories. 11574 hardcode_action=unsupported 11575fi 11576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11577$as_echo "$hardcode_action" >&6; } 11578 11579if test relink = "$hardcode_action" || 11580 test yes = "$inherit_rpath"; then 11581 # Fast installation is not supported 11582 enable_fast_install=no 11583elif test yes = "$shlibpath_overrides_runpath" || 11584 test no = "$enable_shared"; then 11585 # Fast installation is not necessary 11586 enable_fast_install=needless 11587fi 11588 11589 11590 11591 11592 11593 11594 if test yes != "$enable_dlopen"; then 11595 enable_dlopen=unknown 11596 enable_dlopen_self=unknown 11597 enable_dlopen_self_static=unknown 11598else 11599 lt_cv_dlopen=no 11600 lt_cv_dlopen_libs= 11601 11602 case $host_os in 11603 beos*) 11604 lt_cv_dlopen=load_add_on 11605 lt_cv_dlopen_libs= 11606 lt_cv_dlopen_self=yes 11607 ;; 11608 11609 mingw* | pw32* | cegcc*) 11610 lt_cv_dlopen=LoadLibrary 11611 lt_cv_dlopen_libs= 11612 ;; 11613 11614 cygwin*) 11615 lt_cv_dlopen=dlopen 11616 lt_cv_dlopen_libs= 11617 ;; 11618 11619 darwin*) 11620 # if libdl is installed we need to link against it 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11622$as_echo_n "checking for dlopen in -ldl... " >&6; } 11623if ${ac_cv_lib_dl_dlopen+:} false; then : 11624 $as_echo_n "(cached) " >&6 11625else 11626 ac_check_lib_save_LIBS=$LIBS 11627LIBS="-ldl $LIBS" 11628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11629/* end confdefs.h. */ 11630 11631/* Override any GCC internal prototype to avoid an error. 11632 Use char because int might match the return type of a GCC 11633 builtin and then its argument prototype would still apply. */ 11634#ifdef __cplusplus 11635extern "C" 11636#endif 11637char dlopen (); 11638int 11639main () 11640{ 11641return dlopen (); 11642 ; 11643 return 0; 11644} 11645_ACEOF 11646if ac_fn_c_try_link "$LINENO"; then : 11647 ac_cv_lib_dl_dlopen=yes 11648else 11649 ac_cv_lib_dl_dlopen=no 11650fi 11651rm -f core conftest.err conftest.$ac_objext \ 11652 conftest$ac_exeext conftest.$ac_ext 11653LIBS=$ac_check_lib_save_LIBS 11654fi 11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11656$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11657if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11658 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11659else 11660 11661 lt_cv_dlopen=dyld 11662 lt_cv_dlopen_libs= 11663 lt_cv_dlopen_self=yes 11664 11665fi 11666 11667 ;; 11668 11669 tpf*) 11670 # Don't try to run any link tests for TPF. We know it's impossible 11671 # because TPF is a cross-compiler, and we know how we open DSOs. 11672 lt_cv_dlopen=dlopen 11673 lt_cv_dlopen_libs= 11674 lt_cv_dlopen_self=no 11675 ;; 11676 11677 *) 11678 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11679if test "x$ac_cv_func_shl_load" = xyes; then : 11680 lt_cv_dlopen=shl_load 11681else 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11683$as_echo_n "checking for shl_load in -ldld... " >&6; } 11684if ${ac_cv_lib_dld_shl_load+:} false; then : 11685 $as_echo_n "(cached) " >&6 11686else 11687 ac_check_lib_save_LIBS=$LIBS 11688LIBS="-ldld $LIBS" 11689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11690/* end confdefs.h. */ 11691 11692/* Override any GCC internal prototype to avoid an error. 11693 Use char because int might match the return type of a GCC 11694 builtin and then its argument prototype would still apply. */ 11695#ifdef __cplusplus 11696extern "C" 11697#endif 11698char shl_load (); 11699int 11700main () 11701{ 11702return shl_load (); 11703 ; 11704 return 0; 11705} 11706_ACEOF 11707if ac_fn_c_try_link "$LINENO"; then : 11708 ac_cv_lib_dld_shl_load=yes 11709else 11710 ac_cv_lib_dld_shl_load=no 11711fi 11712rm -f core conftest.err conftest.$ac_objext \ 11713 conftest$ac_exeext conftest.$ac_ext 11714LIBS=$ac_check_lib_save_LIBS 11715fi 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11717$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11718if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11719 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11720else 11721 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11722if test "x$ac_cv_func_dlopen" = xyes; then : 11723 lt_cv_dlopen=dlopen 11724else 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11726$as_echo_n "checking for dlopen in -ldl... " >&6; } 11727if ${ac_cv_lib_dl_dlopen+:} false; then : 11728 $as_echo_n "(cached) " >&6 11729else 11730 ac_check_lib_save_LIBS=$LIBS 11731LIBS="-ldl $LIBS" 11732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11733/* end confdefs.h. */ 11734 11735/* Override any GCC internal prototype to avoid an error. 11736 Use char because int might match the return type of a GCC 11737 builtin and then its argument prototype would still apply. */ 11738#ifdef __cplusplus 11739extern "C" 11740#endif 11741char dlopen (); 11742int 11743main () 11744{ 11745return dlopen (); 11746 ; 11747 return 0; 11748} 11749_ACEOF 11750if ac_fn_c_try_link "$LINENO"; then : 11751 ac_cv_lib_dl_dlopen=yes 11752else 11753 ac_cv_lib_dl_dlopen=no 11754fi 11755rm -f core conftest.err conftest.$ac_objext \ 11756 conftest$ac_exeext conftest.$ac_ext 11757LIBS=$ac_check_lib_save_LIBS 11758fi 11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11760$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11761if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11762 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11763else 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11765$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11766if ${ac_cv_lib_svld_dlopen+:} false; then : 11767 $as_echo_n "(cached) " >&6 11768else 11769 ac_check_lib_save_LIBS=$LIBS 11770LIBS="-lsvld $LIBS" 11771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11772/* end confdefs.h. */ 11773 11774/* Override any GCC internal prototype to avoid an error. 11775 Use char because int might match the return type of a GCC 11776 builtin and then its argument prototype would still apply. */ 11777#ifdef __cplusplus 11778extern "C" 11779#endif 11780char dlopen (); 11781int 11782main () 11783{ 11784return dlopen (); 11785 ; 11786 return 0; 11787} 11788_ACEOF 11789if ac_fn_c_try_link "$LINENO"; then : 11790 ac_cv_lib_svld_dlopen=yes 11791else 11792 ac_cv_lib_svld_dlopen=no 11793fi 11794rm -f core conftest.err conftest.$ac_objext \ 11795 conftest$ac_exeext conftest.$ac_ext 11796LIBS=$ac_check_lib_save_LIBS 11797fi 11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11799$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11800if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11801 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11802else 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11804$as_echo_n "checking for dld_link in -ldld... " >&6; } 11805if ${ac_cv_lib_dld_dld_link+:} false; then : 11806 $as_echo_n "(cached) " >&6 11807else 11808 ac_check_lib_save_LIBS=$LIBS 11809LIBS="-ldld $LIBS" 11810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11811/* end confdefs.h. */ 11812 11813/* Override any GCC internal prototype to avoid an error. 11814 Use char because int might match the return type of a GCC 11815 builtin and then its argument prototype would still apply. */ 11816#ifdef __cplusplus 11817extern "C" 11818#endif 11819char dld_link (); 11820int 11821main () 11822{ 11823return dld_link (); 11824 ; 11825 return 0; 11826} 11827_ACEOF 11828if ac_fn_c_try_link "$LINENO"; then : 11829 ac_cv_lib_dld_dld_link=yes 11830else 11831 ac_cv_lib_dld_dld_link=no 11832fi 11833rm -f core conftest.err conftest.$ac_objext \ 11834 conftest$ac_exeext conftest.$ac_ext 11835LIBS=$ac_check_lib_save_LIBS 11836fi 11837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11838$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11839if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11840 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11841fi 11842 11843 11844fi 11845 11846 11847fi 11848 11849 11850fi 11851 11852 11853fi 11854 11855 11856fi 11857 11858 ;; 11859 esac 11860 11861 if test no = "$lt_cv_dlopen"; then 11862 enable_dlopen=no 11863 else 11864 enable_dlopen=yes 11865 fi 11866 11867 case $lt_cv_dlopen in 11868 dlopen) 11869 save_CPPFLAGS=$CPPFLAGS 11870 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11871 11872 save_LDFLAGS=$LDFLAGS 11873 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11874 11875 save_LIBS=$LIBS 11876 LIBS="$lt_cv_dlopen_libs $LIBS" 11877 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11879$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11880if ${lt_cv_dlopen_self+:} false; then : 11881 $as_echo_n "(cached) " >&6 11882else 11883 if test yes = "$cross_compiling"; then : 11884 lt_cv_dlopen_self=cross 11885else 11886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11887 lt_status=$lt_dlunknown 11888 cat > conftest.$ac_ext <<_LT_EOF 11889#line $LINENO "configure" 11890#include "confdefs.h" 11891 11892#if HAVE_DLFCN_H 11893#include <dlfcn.h> 11894#endif 11895 11896#include <stdio.h> 11897 11898#ifdef RTLD_GLOBAL 11899# define LT_DLGLOBAL RTLD_GLOBAL 11900#else 11901# ifdef DL_GLOBAL 11902# define LT_DLGLOBAL DL_GLOBAL 11903# else 11904# define LT_DLGLOBAL 0 11905# endif 11906#endif 11907 11908/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11909 find out it does not work in some platform. */ 11910#ifndef LT_DLLAZY_OR_NOW 11911# ifdef RTLD_LAZY 11912# define LT_DLLAZY_OR_NOW RTLD_LAZY 11913# else 11914# ifdef DL_LAZY 11915# define LT_DLLAZY_OR_NOW DL_LAZY 11916# else 11917# ifdef RTLD_NOW 11918# define LT_DLLAZY_OR_NOW RTLD_NOW 11919# else 11920# ifdef DL_NOW 11921# define LT_DLLAZY_OR_NOW DL_NOW 11922# else 11923# define LT_DLLAZY_OR_NOW 0 11924# endif 11925# endif 11926# endif 11927# endif 11928#endif 11929 11930/* When -fvisibility=hidden is used, assume the code has been annotated 11931 correspondingly for the symbols needed. */ 11932#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11933int fnord () __attribute__((visibility("default"))); 11934#endif 11935 11936int fnord () { return 42; } 11937int main () 11938{ 11939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11940 int status = $lt_dlunknown; 11941 11942 if (self) 11943 { 11944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11945 else 11946 { 11947 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11948 else puts (dlerror ()); 11949 } 11950 /* dlclose (self); */ 11951 } 11952 else 11953 puts (dlerror ()); 11954 11955 return status; 11956} 11957_LT_EOF 11958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11959 (eval $ac_link) 2>&5 11960 ac_status=$? 11961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11962 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11963 (./conftest; exit; ) >&5 2>/dev/null 11964 lt_status=$? 11965 case x$lt_status in 11966 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11967 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11968 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11969 esac 11970 else : 11971 # compilation failed 11972 lt_cv_dlopen_self=no 11973 fi 11974fi 11975rm -fr conftest* 11976 11977 11978fi 11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11980$as_echo "$lt_cv_dlopen_self" >&6; } 11981 11982 if test yes = "$lt_cv_dlopen_self"; then 11983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11985$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11986if ${lt_cv_dlopen_self_static+:} false; then : 11987 $as_echo_n "(cached) " >&6 11988else 11989 if test yes = "$cross_compiling"; then : 11990 lt_cv_dlopen_self_static=cross 11991else 11992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11993 lt_status=$lt_dlunknown 11994 cat > conftest.$ac_ext <<_LT_EOF 11995#line $LINENO "configure" 11996#include "confdefs.h" 11997 11998#if HAVE_DLFCN_H 11999#include <dlfcn.h> 12000#endif 12001 12002#include <stdio.h> 12003 12004#ifdef RTLD_GLOBAL 12005# define LT_DLGLOBAL RTLD_GLOBAL 12006#else 12007# ifdef DL_GLOBAL 12008# define LT_DLGLOBAL DL_GLOBAL 12009# else 12010# define LT_DLGLOBAL 0 12011# endif 12012#endif 12013 12014/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12015 find out it does not work in some platform. */ 12016#ifndef LT_DLLAZY_OR_NOW 12017# ifdef RTLD_LAZY 12018# define LT_DLLAZY_OR_NOW RTLD_LAZY 12019# else 12020# ifdef DL_LAZY 12021# define LT_DLLAZY_OR_NOW DL_LAZY 12022# else 12023# ifdef RTLD_NOW 12024# define LT_DLLAZY_OR_NOW RTLD_NOW 12025# else 12026# ifdef DL_NOW 12027# define LT_DLLAZY_OR_NOW DL_NOW 12028# else 12029# define LT_DLLAZY_OR_NOW 0 12030# endif 12031# endif 12032# endif 12033# endif 12034#endif 12035 12036/* When -fvisibility=hidden is used, assume the code has been annotated 12037 correspondingly for the symbols needed. */ 12038#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12039int fnord () __attribute__((visibility("default"))); 12040#endif 12041 12042int fnord () { return 42; } 12043int main () 12044{ 12045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12046 int status = $lt_dlunknown; 12047 12048 if (self) 12049 { 12050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12051 else 12052 { 12053 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12054 else puts (dlerror ()); 12055 } 12056 /* dlclose (self); */ 12057 } 12058 else 12059 puts (dlerror ()); 12060 12061 return status; 12062} 12063_LT_EOF 12064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12065 (eval $ac_link) 2>&5 12066 ac_status=$? 12067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12068 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12069 (./conftest; exit; ) >&5 2>/dev/null 12070 lt_status=$? 12071 case x$lt_status in 12072 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12073 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12074 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12075 esac 12076 else : 12077 # compilation failed 12078 lt_cv_dlopen_self_static=no 12079 fi 12080fi 12081rm -fr conftest* 12082 12083 12084fi 12085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12086$as_echo "$lt_cv_dlopen_self_static" >&6; } 12087 fi 12088 12089 CPPFLAGS=$save_CPPFLAGS 12090 LDFLAGS=$save_LDFLAGS 12091 LIBS=$save_LIBS 12092 ;; 12093 esac 12094 12095 case $lt_cv_dlopen_self in 12096 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12097 *) enable_dlopen_self=unknown ;; 12098 esac 12099 12100 case $lt_cv_dlopen_self_static in 12101 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12102 *) enable_dlopen_self_static=unknown ;; 12103 esac 12104fi 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122striplib= 12123old_striplib= 12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12125$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12126if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12127 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12128 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12130$as_echo "yes" >&6; } 12131else 12132# FIXME - insert some real tests, host_os isn't really good enough 12133 case $host_os in 12134 darwin*) 12135 if test -n "$STRIP"; then 12136 striplib="$STRIP -x" 12137 old_striplib="$STRIP -S" 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12139$as_echo "yes" >&6; } 12140 else 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12142$as_echo "no" >&6; } 12143 fi 12144 ;; 12145 *) 12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12147$as_echo "no" >&6; } 12148 ;; 12149 esac 12150fi 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 # Report what library types will actually be built 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12165$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12167$as_echo "$can_build_shared" >&6; } 12168 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12170$as_echo_n "checking whether to build shared libraries... " >&6; } 12171 test no = "$can_build_shared" && enable_shared=no 12172 12173 # On AIX, shared libraries and static libraries use the same namespace, and 12174 # are all built from PIC. 12175 case $host_os in 12176 aix3*) 12177 test yes = "$enable_shared" && enable_static=no 12178 if test -n "$RANLIB"; then 12179 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12180 postinstall_cmds='$RANLIB $lib' 12181 fi 12182 ;; 12183 12184 aix[4-9]*) 12185 if test ia64 != "$host_cpu"; then 12186 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12187 yes,aix,yes) ;; # shared object as lib.so file only 12188 yes,svr4,*) ;; # shared object as lib.so archive member only 12189 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12190 esac 12191 fi 12192 ;; 12193 esac 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12195$as_echo "$enable_shared" >&6; } 12196 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12198$as_echo_n "checking whether to build static libraries... " >&6; } 12199 # Make sure either enable_shared or enable_static is yes. 12200 test yes = "$enable_shared" || enable_static=yes 12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12202$as_echo "$enable_static" >&6; } 12203 12204 12205 12206 12207fi 12208ac_ext=c 12209ac_cpp='$CPP $CPPFLAGS' 12210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12212ac_compiler_gnu=$ac_cv_c_compiler_gnu 12213 12214CC=$lt_save_CC 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 ac_config_commands="$ac_config_commands libtool" 12231 12232 12233 12234 12235# Only expand once: 12236 12237 12238 12239# Check whether --enable-silent-rules was given. 12240if test "${enable_silent_rules+set}" = set; then : 12241 enableval=$enable_silent_rules; 12242fi 12243 12244case $enable_silent_rules in # ((( 12245 yes) AM_DEFAULT_VERBOSITY=0;; 12246 no) AM_DEFAULT_VERBOSITY=1;; 12247 *) AM_DEFAULT_VERBOSITY=0;; 12248esac 12249am_make=${MAKE-make} 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12251$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 12252if ${am_cv_make_support_nested_variables+:} false; then : 12253 $as_echo_n "(cached) " >&6 12254else 12255 if $as_echo 'TRUE=$(BAR$(V)) 12256BAR0=false 12257BAR1=true 12258V=1 12259am__doit: 12260 @$(TRUE) 12261.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12262 am_cv_make_support_nested_variables=yes 12263else 12264 am_cv_make_support_nested_variables=no 12265fi 12266fi 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12268$as_echo "$am_cv_make_support_nested_variables" >&6; } 12269if test $am_cv_make_support_nested_variables = yes; then 12270 AM_V='$(V)' 12271 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12272else 12273 AM_V=$AM_DEFAULT_VERBOSITY 12274 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12275fi 12276AM_BACKSLASH='\' 12277 12278 12279COMPILE_ARGS="${ac_configure_args}" 12280 12281ac_ext=c 12282ac_cpp='$CPP $CPPFLAGS' 12283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12285ac_compiler_gnu=$ac_cv_c_compiler_gnu 12286if test -n "$ac_tool_prefix"; then 12287 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12288set dummy ${ac_tool_prefix}gcc; ac_word=$2 12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12290$as_echo_n "checking for $ac_word... " >&6; } 12291if ${ac_cv_prog_CC+:} false; then : 12292 $as_echo_n "(cached) " >&6 12293else 12294 if test -n "$CC"; then 12295 ac_cv_prog_CC="$CC" # Let the user override the test. 12296else 12297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12298for as_dir in $PATH 12299do 12300 IFS=$as_save_IFS 12301 test -z "$as_dir" && as_dir=. 12302 for ac_exec_ext in '' $ac_executable_extensions; do 12303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12304 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12306 break 2 12307 fi 12308done 12309 done 12310IFS=$as_save_IFS 12311 12312fi 12313fi 12314CC=$ac_cv_prog_CC 12315if test -n "$CC"; then 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12317$as_echo "$CC" >&6; } 12318else 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12320$as_echo "no" >&6; } 12321fi 12322 12323 12324fi 12325if test -z "$ac_cv_prog_CC"; then 12326 ac_ct_CC=$CC 12327 # Extract the first word of "gcc", so it can be a program name with args. 12328set dummy gcc; ac_word=$2 12329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12330$as_echo_n "checking for $ac_word... " >&6; } 12331if ${ac_cv_prog_ac_ct_CC+:} false; then : 12332 $as_echo_n "(cached) " >&6 12333else 12334 if test -n "$ac_ct_CC"; then 12335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12336else 12337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12338for as_dir in $PATH 12339do 12340 IFS=$as_save_IFS 12341 test -z "$as_dir" && as_dir=. 12342 for ac_exec_ext in '' $ac_executable_extensions; do 12343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12344 ac_cv_prog_ac_ct_CC="gcc" 12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12346 break 2 12347 fi 12348done 12349 done 12350IFS=$as_save_IFS 12351 12352fi 12353fi 12354ac_ct_CC=$ac_cv_prog_ac_ct_CC 12355if test -n "$ac_ct_CC"; then 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12357$as_echo "$ac_ct_CC" >&6; } 12358else 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12360$as_echo "no" >&6; } 12361fi 12362 12363 if test "x$ac_ct_CC" = x; then 12364 CC="" 12365 else 12366 case $cross_compiling:$ac_tool_warned in 12367yes:) 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12370ac_tool_warned=yes ;; 12371esac 12372 CC=$ac_ct_CC 12373 fi 12374else 12375 CC="$ac_cv_prog_CC" 12376fi 12377 12378if test -z "$CC"; then 12379 if test -n "$ac_tool_prefix"; then 12380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12381set dummy ${ac_tool_prefix}cc; ac_word=$2 12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12383$as_echo_n "checking for $ac_word... " >&6; } 12384if ${ac_cv_prog_CC+:} false; then : 12385 $as_echo_n "(cached) " >&6 12386else 12387 if test -n "$CC"; then 12388 ac_cv_prog_CC="$CC" # Let the user override the test. 12389else 12390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12391for as_dir in $PATH 12392do 12393 IFS=$as_save_IFS 12394 test -z "$as_dir" && as_dir=. 12395 for ac_exec_ext in '' $ac_executable_extensions; do 12396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12397 ac_cv_prog_CC="${ac_tool_prefix}cc" 12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12399 break 2 12400 fi 12401done 12402 done 12403IFS=$as_save_IFS 12404 12405fi 12406fi 12407CC=$ac_cv_prog_CC 12408if test -n "$CC"; then 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12410$as_echo "$CC" >&6; } 12411else 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12413$as_echo "no" >&6; } 12414fi 12415 12416 12417 fi 12418fi 12419if test -z "$CC"; then 12420 # Extract the first word of "cc", so it can be a program name with args. 12421set dummy cc; ac_word=$2 12422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12423$as_echo_n "checking for $ac_word... " >&6; } 12424if ${ac_cv_prog_CC+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426else 12427 if test -n "$CC"; then 12428 ac_cv_prog_CC="$CC" # Let the user override the test. 12429else 12430 ac_prog_rejected=no 12431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12432for as_dir in $PATH 12433do 12434 IFS=$as_save_IFS 12435 test -z "$as_dir" && as_dir=. 12436 for ac_exec_ext in '' $ac_executable_extensions; do 12437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12439 ac_prog_rejected=yes 12440 continue 12441 fi 12442 ac_cv_prog_CC="cc" 12443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12444 break 2 12445 fi 12446done 12447 done 12448IFS=$as_save_IFS 12449 12450if test $ac_prog_rejected = yes; then 12451 # We found a bogon in the path, so make sure we never use it. 12452 set dummy $ac_cv_prog_CC 12453 shift 12454 if test $# != 0; then 12455 # We chose a different compiler from the bogus one. 12456 # However, it has the same basename, so the bogon will be chosen 12457 # first if we set CC to just the basename; use the full file name. 12458 shift 12459 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12460 fi 12461fi 12462fi 12463fi 12464CC=$ac_cv_prog_CC 12465if test -n "$CC"; then 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12467$as_echo "$CC" >&6; } 12468else 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12470$as_echo "no" >&6; } 12471fi 12472 12473 12474fi 12475if test -z "$CC"; then 12476 if test -n "$ac_tool_prefix"; then 12477 for ac_prog in cl.exe 12478 do 12479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12480set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12482$as_echo_n "checking for $ac_word... " >&6; } 12483if ${ac_cv_prog_CC+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 if test -n "$CC"; then 12487 ac_cv_prog_CC="$CC" # Let the user override the test. 12488else 12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12490for as_dir in $PATH 12491do 12492 IFS=$as_save_IFS 12493 test -z "$as_dir" && as_dir=. 12494 for ac_exec_ext in '' $ac_executable_extensions; do 12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12496 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12498 break 2 12499 fi 12500done 12501 done 12502IFS=$as_save_IFS 12503 12504fi 12505fi 12506CC=$ac_cv_prog_CC 12507if test -n "$CC"; then 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12509$as_echo "$CC" >&6; } 12510else 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12512$as_echo "no" >&6; } 12513fi 12514 12515 12516 test -n "$CC" && break 12517 done 12518fi 12519if test -z "$CC"; then 12520 ac_ct_CC=$CC 12521 for ac_prog in cl.exe 12522do 12523 # Extract the first word of "$ac_prog", so it can be a program name with args. 12524set dummy $ac_prog; ac_word=$2 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12526$as_echo_n "checking for $ac_word... " >&6; } 12527if ${ac_cv_prog_ac_ct_CC+:} false; then : 12528 $as_echo_n "(cached) " >&6 12529else 12530 if test -n "$ac_ct_CC"; then 12531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12532else 12533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12534for as_dir in $PATH 12535do 12536 IFS=$as_save_IFS 12537 test -z "$as_dir" && as_dir=. 12538 for ac_exec_ext in '' $ac_executable_extensions; do 12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12540 ac_cv_prog_ac_ct_CC="$ac_prog" 12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12542 break 2 12543 fi 12544done 12545 done 12546IFS=$as_save_IFS 12547 12548fi 12549fi 12550ac_ct_CC=$ac_cv_prog_ac_ct_CC 12551if test -n "$ac_ct_CC"; then 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12553$as_echo "$ac_ct_CC" >&6; } 12554else 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12556$as_echo "no" >&6; } 12557fi 12558 12559 12560 test -n "$ac_ct_CC" && break 12561done 12562 12563 if test "x$ac_ct_CC" = x; then 12564 CC="" 12565 else 12566 case $cross_compiling:$ac_tool_warned in 12567yes:) 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12570ac_tool_warned=yes ;; 12571esac 12572 CC=$ac_ct_CC 12573 fi 12574fi 12575 12576fi 12577 12578 12579test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12581as_fn_error $? "no acceptable C compiler found in \$PATH 12582See \`config.log' for more details" "$LINENO" 5; } 12583 12584# Provide some information about the compiler. 12585$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12586set X $ac_compile 12587ac_compiler=$2 12588for ac_option in --version -v -V -qversion; do 12589 { { ac_try="$ac_compiler $ac_option >&5" 12590case "(($ac_try" in 12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12592 *) ac_try_echo=$ac_try;; 12593esac 12594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12595$as_echo "$ac_try_echo"; } >&5 12596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12597 ac_status=$? 12598 if test -s conftest.err; then 12599 sed '10a\ 12600... rest of stderr output deleted ... 12601 10q' conftest.err >conftest.er1 12602 cat conftest.er1 >&5 12603 fi 12604 rm -f conftest.er1 conftest.err 12605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12606 test $ac_status = 0; } 12607done 12608 12609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12610$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12611if ${ac_cv_c_compiler_gnu+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616 12617int 12618main () 12619{ 12620#ifndef __GNUC__ 12621 choke me 12622#endif 12623 12624 ; 12625 return 0; 12626} 12627_ACEOF 12628if ac_fn_c_try_compile "$LINENO"; then : 12629 ac_compiler_gnu=yes 12630else 12631 ac_compiler_gnu=no 12632fi 12633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12634ac_cv_c_compiler_gnu=$ac_compiler_gnu 12635 12636fi 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12638$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12639if test $ac_compiler_gnu = yes; then 12640 GCC=yes 12641else 12642 GCC= 12643fi 12644ac_test_CFLAGS=${CFLAGS+set} 12645ac_save_CFLAGS=$CFLAGS 12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12647$as_echo_n "checking whether $CC accepts -g... " >&6; } 12648if ${ac_cv_prog_cc_g+:} false; then : 12649 $as_echo_n "(cached) " >&6 12650else 12651 ac_save_c_werror_flag=$ac_c_werror_flag 12652 ac_c_werror_flag=yes 12653 ac_cv_prog_cc_g=no 12654 CFLAGS="-g" 12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12656/* end confdefs.h. */ 12657 12658int 12659main () 12660{ 12661 12662 ; 12663 return 0; 12664} 12665_ACEOF 12666if ac_fn_c_try_compile "$LINENO"; then : 12667 ac_cv_prog_cc_g=yes 12668else 12669 CFLAGS="" 12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12671/* end confdefs.h. */ 12672 12673int 12674main () 12675{ 12676 12677 ; 12678 return 0; 12679} 12680_ACEOF 12681if ac_fn_c_try_compile "$LINENO"; then : 12682 12683else 12684 ac_c_werror_flag=$ac_save_c_werror_flag 12685 CFLAGS="-g" 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688 12689int 12690main () 12691{ 12692 12693 ; 12694 return 0; 12695} 12696_ACEOF 12697if ac_fn_c_try_compile "$LINENO"; then : 12698 ac_cv_prog_cc_g=yes 12699fi 12700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12701fi 12702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12703fi 12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12705 ac_c_werror_flag=$ac_save_c_werror_flag 12706fi 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12708$as_echo "$ac_cv_prog_cc_g" >&6; } 12709if test "$ac_test_CFLAGS" = set; then 12710 CFLAGS=$ac_save_CFLAGS 12711elif test $ac_cv_prog_cc_g = yes; then 12712 if test "$GCC" = yes; then 12713 CFLAGS="-g " 12714 else 12715 CFLAGS="-g" 12716 fi 12717else 12718 if test "$GCC" = yes; then 12719 CFLAGS="" 12720 else 12721 CFLAGS= 12722 fi 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12725$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12726if ${ac_cv_prog_cc_c89+:} false; then : 12727 $as_echo_n "(cached) " >&6 12728else 12729 ac_cv_prog_cc_c89=no 12730ac_save_CC=$CC 12731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12732/* end confdefs.h. */ 12733#include <stdarg.h> 12734#include <stdio.h> 12735struct stat; 12736/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12737struct buf { int x; }; 12738FILE * (*rcsopen) (struct buf *, struct stat *, int); 12739static char *e (p, i) 12740 char **p; 12741 int i; 12742{ 12743 return p[i]; 12744} 12745static char *f (char * (*g) (char **, int), char **p, ...) 12746{ 12747 char *s; 12748 va_list v; 12749 va_start (v,p); 12750 s = g (p, va_arg (v,int)); 12751 va_end (v); 12752 return s; 12753} 12754 12755/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12756 function prototypes and stuff, but not '\xHH' hex character constants. 12757 These don't provoke an error unfortunately, instead are silently treated 12758 as 'x'. The following induces an error, until -std is added to get 12759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12760 array size at least. It's necessary to write '\x00'==0 to get something 12761 that's true only with -std. */ 12762int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12763 12764/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12765 inside strings and character constants. */ 12766#define FOO(x) 'x' 12767int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12768 12769int test (int i, double x); 12770struct s1 {int (*f) (int a);}; 12771struct s2 {int (*f) (double a);}; 12772int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12773int argc; 12774char **argv; 12775int 12776main () 12777{ 12778return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12779 ; 12780 return 0; 12781} 12782_ACEOF 12783for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12785do 12786 CC="$ac_save_CC $ac_arg" 12787 if ac_fn_c_try_compile "$LINENO"; then : 12788 ac_cv_prog_cc_c89=$ac_arg 12789fi 12790rm -f core conftest.err conftest.$ac_objext 12791 test "x$ac_cv_prog_cc_c89" != "xno" && break 12792done 12793rm -f conftest.$ac_ext 12794CC=$ac_save_CC 12795 12796fi 12797# AC_CACHE_VAL 12798case "x$ac_cv_prog_cc_c89" in 12799 x) 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12801$as_echo "none needed" >&6; } ;; 12802 xno) 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12804$as_echo "unsupported" >&6; } ;; 12805 *) 12806 CC="$CC $ac_cv_prog_cc_c89" 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12808$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12809esac 12810if test "x$ac_cv_prog_cc_c89" != xno; then : 12811 12812fi 12813 12814ac_ext=c 12815ac_cpp='$CPP $CPPFLAGS' 12816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12818ac_compiler_gnu=$ac_cv_c_compiler_gnu 12819 12820ac_ext=c 12821ac_cpp='$CPP $CPPFLAGS' 12822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12824ac_compiler_gnu=$ac_cv_c_compiler_gnu 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12826$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12827if ${am_cv_prog_cc_c_o+:} false; then : 12828 $as_echo_n "(cached) " >&6 12829else 12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12831/* end confdefs.h. */ 12832 12833int 12834main () 12835{ 12836 12837 ; 12838 return 0; 12839} 12840_ACEOF 12841 # Make sure it works both with $CC and with simple cc. 12842 # Following AC_PROG_CC_C_O, we do the test twice because some 12843 # compilers refuse to overwrite an existing .o file with -o, 12844 # though they will create one. 12845 am_cv_prog_cc_c_o=yes 12846 for am_i in 1 2; do 12847 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12848 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12849 ac_status=$? 12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12851 (exit $ac_status); } \ 12852 && test -f conftest2.$ac_objext; then 12853 : OK 12854 else 12855 am_cv_prog_cc_c_o=no 12856 break 12857 fi 12858 done 12859 rm -f core conftest* 12860 unset am_i 12861fi 12862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12863$as_echo "$am_cv_prog_cc_c_o" >&6; } 12864if test "$am_cv_prog_cc_c_o" != yes; then 12865 # Losing compiler, so override with the script. 12866 # FIXME: It is wrong to rewrite CC. 12867 # But if we don't then we get into trouble of one sort or another. 12868 # A longer-term fix would be to have automake use am__CC in this case, 12869 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12870 CC="$am_aux_dir/compile $CC" 12871fi 12872ac_ext=c 12873ac_cpp='$CPP $CPPFLAGS' 12874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12876ac_compiler_gnu=$ac_cv_c_compiler_gnu 12877 12878 12879depcc="$CC" am_compiler_list= 12880 12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12882$as_echo_n "checking dependency style of $depcc... " >&6; } 12883if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12884 $as_echo_n "(cached) " >&6 12885else 12886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12887 # We make a subdir and do the tests there. Otherwise we can end up 12888 # making bogus files that we don't know about and never remove. For 12889 # instance it was reported that on HP-UX the gcc test will end up 12890 # making a dummy file named 'D' -- because '-MD' means "put the output 12891 # in D". 12892 rm -rf conftest.dir 12893 mkdir conftest.dir 12894 # Copy depcomp to subdir because otherwise we won't find it if we're 12895 # using a relative directory. 12896 cp "$am_depcomp" conftest.dir 12897 cd conftest.dir 12898 # We will build objects and dependencies in a subdirectory because 12899 # it helps to detect inapplicable dependency modes. For instance 12900 # both Tru64's cc and ICC support -MD to output dependencies as a 12901 # side effect of compilation, but ICC will put the dependencies in 12902 # the current directory while Tru64 will put them in the object 12903 # directory. 12904 mkdir sub 12905 12906 am_cv_CC_dependencies_compiler_type=none 12907 if test "$am_compiler_list" = ""; then 12908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12909 fi 12910 am__universal=false 12911 case " $depcc " in #( 12912 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12913 esac 12914 12915 for depmode in $am_compiler_list; do 12916 # Setup a source with many dependencies, because some compilers 12917 # like to wrap large dependency lists on column 80 (with \), and 12918 # we should not choose a depcomp mode which is confused by this. 12919 # 12920 # We need to recreate these files for each test, as the compiler may 12921 # overwrite some of them when testing with obscure command lines. 12922 # This happens at least with the AIX C compiler. 12923 : > sub/conftest.c 12924 for i in 1 2 3 4 5 6; do 12925 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12926 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12927 # Solaris 10 /bin/sh. 12928 echo '/* dummy */' > sub/conftst$i.h 12929 done 12930 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12931 12932 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12933 # mode. It turns out that the SunPro C++ compiler does not properly 12934 # handle '-M -o', and we need to detect this. Also, some Intel 12935 # versions had trouble with output in subdirs. 12936 am__obj=sub/conftest.${OBJEXT-o} 12937 am__minus_obj="-o $am__obj" 12938 case $depmode in 12939 gcc) 12940 # This depmode causes a compiler race in universal mode. 12941 test "$am__universal" = false || continue 12942 ;; 12943 nosideeffect) 12944 # After this tag, mechanisms are not by side-effect, so they'll 12945 # only be used when explicitly requested. 12946 if test "x$enable_dependency_tracking" = xyes; then 12947 continue 12948 else 12949 break 12950 fi 12951 ;; 12952 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12953 # This compiler won't grok '-c -o', but also, the minuso test has 12954 # not run yet. These depmodes are late enough in the game, and 12955 # so weak that their functioning should not be impacted. 12956 am__obj=conftest.${OBJEXT-o} 12957 am__minus_obj= 12958 ;; 12959 none) break ;; 12960 esac 12961 if depmode=$depmode \ 12962 source=sub/conftest.c object=$am__obj \ 12963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12964 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12965 >/dev/null 2>conftest.err && 12966 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12967 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12968 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12969 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12970 # icc doesn't choke on unknown options, it will just issue warnings 12971 # or remarks (even with -Werror). So we grep stderr for any message 12972 # that says an option was ignored or not supported. 12973 # When given -MP, icc 7.0 and 7.1 complain thusly: 12974 # icc: Command line warning: ignoring option '-M'; no argument required 12975 # The diagnosis changed in icc 8.0: 12976 # icc: Command line remark: option '-MP' not supported 12977 if (grep 'ignoring option' conftest.err || 12978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12979 am_cv_CC_dependencies_compiler_type=$depmode 12980 break 12981 fi 12982 fi 12983 done 12984 12985 cd .. 12986 rm -rf conftest.dir 12987else 12988 am_cv_CC_dependencies_compiler_type=none 12989fi 12990 12991fi 12992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12993$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12994CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12995 12996 if 12997 test "x$enable_dependency_tracking" != xno \ 12998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12999 am__fastdepCC_TRUE= 13000 am__fastdepCC_FALSE='#' 13001else 13002 am__fastdepCC_TRUE='#' 13003 am__fastdepCC_FALSE= 13004fi 13005 13006 13007 13008PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig 13009export PKG_CONFIG_PATH 13010 13011 13012 13013 13014 13015 13016 13017if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13018 if test -n "$ac_tool_prefix"; then 13019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13020set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13022$as_echo_n "checking for $ac_word... " >&6; } 13023if ${ac_cv_path_PKG_CONFIG+:} false; then : 13024 $as_echo_n "(cached) " >&6 13025else 13026 case $PKG_CONFIG in 13027 [\\/]* | ?:[\\/]*) 13028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13029 ;; 13030 *) 13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13032for as_dir in $PATH 13033do 13034 IFS=$as_save_IFS 13035 test -z "$as_dir" && as_dir=. 13036 for ac_exec_ext in '' $ac_executable_extensions; do 13037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13040 break 2 13041 fi 13042done 13043 done 13044IFS=$as_save_IFS 13045 13046 ;; 13047esac 13048fi 13049PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13050if test -n "$PKG_CONFIG"; then 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13052$as_echo "$PKG_CONFIG" >&6; } 13053else 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13055$as_echo "no" >&6; } 13056fi 13057 13058 13059fi 13060if test -z "$ac_cv_path_PKG_CONFIG"; then 13061 ac_pt_PKG_CONFIG=$PKG_CONFIG 13062 # Extract the first word of "pkg-config", so it can be a program name with args. 13063set dummy pkg-config; ac_word=$2 13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13065$as_echo_n "checking for $ac_word... " >&6; } 13066if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13067 $as_echo_n "(cached) " >&6 13068else 13069 case $ac_pt_PKG_CONFIG in 13070 [\\/]* | ?:[\\/]*) 13071 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13072 ;; 13073 *) 13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13075for as_dir in $PATH 13076do 13077 IFS=$as_save_IFS 13078 test -z "$as_dir" && as_dir=. 13079 for ac_exec_ext in '' $ac_executable_extensions; do 13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13081 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13083 break 2 13084 fi 13085done 13086 done 13087IFS=$as_save_IFS 13088 13089 ;; 13090esac 13091fi 13092ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13093if test -n "$ac_pt_PKG_CONFIG"; then 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13095$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13096else 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13098$as_echo "no" >&6; } 13099fi 13100 13101 if test "x$ac_pt_PKG_CONFIG" = x; then 13102 PKG_CONFIG="" 13103 else 13104 case $cross_compiling:$ac_tool_warned in 13105yes:) 13106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13108ac_tool_warned=yes ;; 13109esac 13110 PKG_CONFIG=$ac_pt_PKG_CONFIG 13111 fi 13112else 13113 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13114fi 13115 13116fi 13117if test -n "$PKG_CONFIG"; then 13118 _pkg_min_version=0.9.0 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13120$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13121 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13123$as_echo "yes" >&6; } 13124 else 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13126$as_echo "no" >&6; } 13127 PKG_CONFIG="" 13128 fi 13129fi 13130 13131 13132 13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OS" >&5 13134$as_echo_n "checking OS... " >&6; } 13135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_os" >&5 13136$as_echo "$host_os" >&6; } 13137 13138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking hardware" >&5 13139$as_echo_n "checking hardware... " >&6; } 13140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5 13141$as_echo "$host_cpu" >&6; } 13142 13143if test "x$ac_cv_c_compiler_gnu" = xyes ; then 13144 CFLAGS=" ${CFLAGS}" 13145fi 13146 13147for ac_func in strlcpy 13148do : 13149 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 13150if test "x$ac_cv_func_strlcpy" = xyes; then : 13151 cat >>confdefs.h <<_ACEOF 13152#define HAVE_STRLCPY 1 13153_ACEOF 13154 13155fi 13156done 13157 13158 13159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable linking against shared objects" >&5 13160$as_echo_n "checking whether to disable linking against shared objects... " >&6; } 13161# Check whether --enable-so was given. 13162if test "${enable_so+set}" = set; then : 13163 enableval=$enable_so; 13164 if test x$enableval = x"yes" ; then 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13166$as_echo "no" >&6; } 13167 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13168if test "x$ac_cv_func_dlopen" = xyes; then : 13169 USING_DLOPEN="yes" 13170fi 13171 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13173$as_echo_n "checking for dlopen in -ldl... " >&6; } 13174if ${ac_cv_lib_dl_dlopen+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 ac_check_lib_save_LIBS=$LIBS 13178LIBS="-ldl $LIBS" 13179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13180/* end confdefs.h. */ 13181 13182/* Override any GCC internal prototype to avoid an error. 13183 Use char because int might match the return type of a GCC 13184 builtin and then its argument prototype would still apply. */ 13185#ifdef __cplusplus 13186extern "C" 13187#endif 13188char dlopen (); 13189int 13190main () 13191{ 13192return dlopen (); 13193 ; 13194 return 0; 13195} 13196_ACEOF 13197if ac_fn_c_try_link "$LINENO"; then : 13198 ac_cv_lib_dl_dlopen=yes 13199else 13200 ac_cv_lib_dl_dlopen=no 13201fi 13202rm -f core conftest.err conftest.$ac_objext \ 13203 conftest$ac_exeext conftest.$ac_ext 13204LIBS=$ac_check_lib_save_LIBS 13205fi 13206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13207$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13208if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13209 USING_DLOPEN="yes" 13210 LIBS="${LIBS} -ldl" 13211fi 13212 13213 if test x"$USING_DLOPEN" != x"yes"; then 13214 as_fn_error $? "Unable to find dlopen(). Try with --disable-so" "$LINENO" 5 13215 fi 13216 else 13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13218$as_echo "yes" >&6; } 13219 if test "x$ac_cv_c_compiler_gnu" = xyes ; then 13220 LDFLAGS="-static ${LDFLAGS}" 13221 fi 13222 fi 13223 13224else 13225 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13227$as_echo "no" >&6; } 13228 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13229if test "x$ac_cv_func_dlopen" = xyes; then : 13230 USING_DLOPEN="yes" 13231fi 13232 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13234$as_echo_n "checking for dlopen in -ldl... " >&6; } 13235if ${ac_cv_lib_dl_dlopen+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 ac_check_lib_save_LIBS=$LIBS 13239LIBS="-ldl $LIBS" 13240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242 13243/* Override any GCC internal prototype to avoid an error. 13244 Use char because int might match the return type of a GCC 13245 builtin and then its argument prototype would still apply. */ 13246#ifdef __cplusplus 13247extern "C" 13248#endif 13249char dlopen (); 13250int 13251main () 13252{ 13253return dlopen (); 13254 ; 13255 return 0; 13256} 13257_ACEOF 13258if ac_fn_c_try_link "$LINENO"; then : 13259 ac_cv_lib_dl_dlopen=yes 13260else 13261 ac_cv_lib_dl_dlopen=no 13262fi 13263rm -f core conftest.err conftest.$ac_objext \ 13264 conftest$ac_exeext conftest.$ac_ext 13265LIBS=$ac_check_lib_save_LIBS 13266fi 13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13268$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13269if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13270 USING_DLOPEN="yes" 13271 LIBS="${LIBS} -ldl" 13272fi 13273 13274 if test x"$USING_DLOPEN" != x"yes"; then 13275 as_fn_error $? "Unable to find dlopen(). Try with --disable-so" "$LINENO" 5 13276 fi 13277 13278 13279fi 13280 13281 13282case "$host_os" in 13283 Sun*) 13284 $as_echo "#define SOLARIS 1" >>confdefs.h 13285 13286 LIBS="-lresolv -lsocket -lnsl ${LIBS}" 13287 ;; 13288 *BSD) 13289 $as_echo "#define BSD 1" >>confdefs.h 13290 13291 ;; 13292 linux*) 13293 $as_echo "#define LINUX 1" >>confdefs.h 13294 13295 ;; 13296esac 13297 13298case "$host_cpu" in 13299 sun*) 13300 $as_echo "#define CPU_sparc 1" >>confdefs.h 13301 13302 ;; 13303esac 13304 13305# Extract the first word of "gmake", so it can be a program name with args. 13306set dummy gmake; ac_word=$2 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13308$as_echo_n "checking for $ac_word... " >&6; } 13309if ${ac_cv_prog_MAKE+:} false; then : 13310 $as_echo_n "(cached) " >&6 13311else 13312 if test -n "$MAKE"; then 13313 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. 13314else 13315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13316for as_dir in $PATH 13317do 13318 IFS=$as_save_IFS 13319 test -z "$as_dir" && as_dir=. 13320 for ac_exec_ext in '' $ac_executable_extensions; do 13321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13322 ac_cv_prog_MAKE="gmake" 13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13324 break 2 13325 fi 13326done 13327 done 13328IFS=$as_save_IFS 13329 13330fi 13331fi 13332MAKE=$ac_cv_prog_MAKE 13333if test -n "$MAKE"; then 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 13335$as_echo "$MAKE" >&6; } 13336else 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13338$as_echo "no" >&6; } 13339fi 13340 13341 13342if test x"$MAKE" = x""; then 13343 # Extract the first word of "make", so it can be a program name with args. 13344set dummy make; ac_word=$2 13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13346$as_echo_n "checking for $ac_word... " >&6; } 13347if ${ac_cv_prog_MAKE+:} false; then : 13348 $as_echo_n "(cached) " >&6 13349else 13350 if test -n "$MAKE"; then 13351 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. 13352else 13353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13354for as_dir in $PATH 13355do 13356 IFS=$as_save_IFS 13357 test -z "$as_dir" && as_dir=. 13358 for ac_exec_ext in '' $ac_executable_extensions; do 13359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13360 ac_cv_prog_MAKE="make" 13361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13362 break 2 13363 fi 13364done 13365 done 13366IFS=$as_save_IFS 13367 13368fi 13369fi 13370MAKE=$ac_cv_prog_MAKE 13371if test -n "$MAKE"; then 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 13373$as_echo "$MAKE" >&6; } 13374else 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13376$as_echo "no" >&6; } 13377fi 13378 13379 13380fi 13381 13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 13383$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 13384set x ${MAKE-make} 13385ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 13386if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 13387 $as_echo_n "(cached) " >&6 13388else 13389 cat >conftest.make <<\_ACEOF 13390SHELL = /bin/sh 13391all: 13392 @echo '@@@%%%=$(MAKE)=@@@%%%' 13393_ACEOF 13394# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 13395case `${MAKE-make} -f conftest.make 2>/dev/null` in 13396 *@@@%%%=?*=@@@%%%*) 13397 eval ac_cv_prog_make_${ac_make}_set=yes;; 13398 *) 13399 eval ac_cv_prog_make_${ac_make}_set=no;; 13400esac 13401rm -f conftest.make 13402fi 13403if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13405$as_echo "yes" >&6; } 13406 SET_MAKE= 13407else 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13409$as_echo "no" >&6; } 13410 SET_MAKE="MAKE=${MAKE-make}" 13411fi 13412 13413 13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 13415$as_echo_n "checking for __progname... " >&6; } 13416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13417/* end confdefs.h. */ 13418 extern char *__progname; 13419int 13420main () 13421{ 13422 __progname = "test"; 13423 ; 13424 return 0; 13425} 13426_ACEOF 13427if ac_fn_c_try_link "$LINENO"; then : 13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13429$as_echo "yes" >&6; }; $as_echo "#define PROGNAME 1" >>confdefs.h 13430 13431else 13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13433$as_echo "no" >&6; } 13434fi 13435rm -f core conftest.err conftest.$ac_objext \ 13436 conftest$ac_exeext conftest.$ac_ext 13437 13438 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags needed to export symbols" >&5 13440$as_echo_n "checking for extra flags needed to export symbols... " >&6; } 13441if test "x$ac_cv_c_compiler_gnu" = xyes ; then 13442 save_ldflags="${LDFLAGS}" 13443 LDFLAGS="-Wl,--export-dynamic ${save_ldflags}" 13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13445/* end confdefs.h. */ 13446 13447int 13448main () 13449{ 13450 13451 ; 13452 return 0; 13453} 13454_ACEOF 13455if ac_fn_c_try_link "$LINENO"; then : 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: --export-dynamic" >&5 13457$as_echo "--export-dynamic" >&6; } 13458else 13459 LDFLAGS="-Wl,-Bexport ${save_ldflags}" 13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13461/* end confdefs.h. */ 13462 13463int 13464main () 13465{ 13466 13467 ; 13468 return 0; 13469} 13470_ACEOF 13471if ac_fn_c_try_link "$LINENO"; then : 13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Bexport" >&5 13473$as_echo "-Bexport" >&6; } 13474else 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13476$as_echo "none" >&6; } 13477 LDFLAGS="${save_ldflags}" 13478 13479fi 13480rm -f core conftest.err conftest.$ac_objext \ 13481 conftest$ac_exeext conftest.$ac_ext 13482 13483 13484fi 13485rm -f core conftest.err conftest.$ac_objext \ 13486 conftest$ac_exeext conftest.$ac_ext 13487else 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13489$as_echo "none" >&6; } 13490fi 13491 13492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static inline" >&5 13493$as_echo_n "checking for static inline... " >&6; } 13494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13495/* end confdefs.h. */ 13496#include <stdio.h> 13497 13498static inline func() 13499{ 13500} 13501 13502int 13503main () 13504{ 13505 13506 func(); 13507 13508 ; 13509 return 0; 13510} 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO"; then : 13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13514$as_echo "yes" >&6; } 13515else 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13517$as_echo "no" >&6; }; $as_echo "#define NOINLINE 1" >>confdefs.h 13518 13519fi 13520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13521 13522ac_cv_endianess="unknown" 13523if test x"$ac_cv_endianess" = x"unknown"; then 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianess" >&5 13525$as_echo_n "checking endianess... " >&6; } 13526 if test "$cross_compiling" = yes; then : 13527 ac_cv_endianess="little" 13528else 13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13530/* end confdefs.h. */ 13531main () { 13532 13533 union 13534 { 13535 long l; 13536 char c[sizeof (long)]; 13537 } u; 13538 u.l = 1; 13539 exit (u.c[sizeof (long) - 1] == 1); 13540 } 13541_ACEOF 13542if ac_fn_c_try_run "$LINENO"; then : 13543 ac_cv_endianess="little" 13544else 13545 ac_cv_endianess="big" 13546fi 13547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13548 conftest.$ac_objext conftest.beam conftest.$ac_ext 13549fi 13550 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_endianess" >&5 13552$as_echo "$ac_cv_endianess" >&6; } 13553fi 13554 13555if test x"$ac_cv_endianess" = x"big"; then 13556 $as_echo "#define IM_BIG_ENDIAN 1" >>confdefs.h 13557 13558fi 13559if test x"$ac_cv_endianess" = x"little"; then 13560 $as_echo "#define IM_LITTLE_ENDIAN 1" >>confdefs.h 13561 13562fi 13563 13564ac_cv_unaligned="unknown" 13565case "$host_cpu" in 13566 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1) 13567 ac_cv_unaligned="fail" 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking unaligned accesses" >&5 13569$as_echo_n "checking unaligned accesses... " >&6; } 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_unaligned" >&5 13571$as_echo "$ac_cv_unaligned" >&6; } 13572 ;; 13573esac 13574 13575if test x"$ac_cv_unaligned" = x"unknown"; then 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking unaligned accesses" >&5 13577$as_echo_n "checking unaligned accesses... " >&6; } 13578 cat > conftest.c << EOF 13579 #include <sys/types.h> 13580 #include <sys/wait.h> 13581 #include <stdio.h> 13582 #include <stdlib.h> 13583 #include <unistd.h> 13584 13585 unsigned char a[5] = { 1, 2, 3, 4, 5 }; 13586 int main () { 13587 unsigned int i; 13588 pid_t pid; 13589 int status; 13590 /* avoid "core dumped" message */ 13591 pid = fork(); 13592 if (pid < 0) exit(2); 13593 if (pid > 0) { 13594 /* parent */ 13595 pid = waitpid(pid, &status, 0); 13596 if (pid < 0) exit(3); 13597 exit(!WIFEXITED(status)); 13598 } 13599 /* child */ 13600 i = *(unsigned int *)&a[1]; 13601 printf("%d\n", i); 13602 exit(0); 13603 } 13604EOF 13605 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ 13606 conftest.c $LIBS >/dev/null 2>&1 13607 if test ! -x conftest ; then 13608 ac_cv_unaligned="fail" 13609 else 13610 ./conftest >conftest.out 13611 if test ! -s conftest.out ; then ac_cv_unaligned="fail" 13612 else ac_cv_unaligned="ok" 13613 fi 13614 fi 13615 rm -f conftest* core core.conftest 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_unaligned" >&5 13617$as_echo "$ac_cv_unaligned" >&6; } 13618fi 13619 13620if test x"$ac_cv_unaligned" = x"fail"; then 13621 $as_echo "#define NEED_ALIGN 1" >>confdefs.h 13622 13623fi 13624 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable L2 features" >&5 13626$as_echo_n "checking whether to enable L2 features... " >&6; } 13627# Check whether --enable-l2 was given. 13628if test "${enable_l2+set}" = set; then : 13629 enableval=$enable_l2; 13630 if test x$enableval = x"yes" ; then 13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13632$as_echo "yes" >&6; } 13633 $as_echo "#define HAVE_L2 1" >>confdefs.h 13634 13635 else 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13637$as_echo "no" >&6; } 13638 fi 13639 13640else 13641 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13643$as_echo "yes" >&6; } 13644 $as_echo "#define HAVE_L2 1" >>confdefs.h 13645 13646 COMPILE_ARGS="${COMPILE_ARGS} '--enable-l2'" 13647 13648 13649fi 13650 13651 13652for ac_func in inet_pton 13653do : 13654 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 13655if test "x$ac_cv_func_inet_pton" = xyes; then : 13656 cat >>confdefs.h <<_ACEOF 13657#define HAVE_INET_PTON 1 13658_ACEOF 13659 13660fi 13661done 13662 13663if test x"$ac_cv_func_inet_pton" = x"no"; then 13664 as_fn_error $? "ERROR: missing inet_pton()" "$LINENO" 5 13665fi 13666 13667for ac_func in inet_ntop 13668do : 13669 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 13670if test "x$ac_cv_func_inet_ntop" = xyes; then : 13671 cat >>confdefs.h <<_ACEOF 13672#define HAVE_INET_NTOP 1 13673_ACEOF 13674 13675fi 13676done 13677 13678if test x"$ac_cv_func_inet_ntop" = x"no"; then 13679 as_fn_error $? "ERROR: missing inet_ntop()" "$LINENO" 5 13680fi 13681 13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IP prefix labels" >&5 13683$as_echo_n "checking whether to enable IP prefix labels... " >&6; } 13684# Check whether --enable-plabel was given. 13685if test "${enable_plabel+set}" = set; then : 13686 enableval=$enable_plabel; 13687 if test x$enableval = x"yes" ; then 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13689$as_echo "yes" >&6; } 13690 $as_echo "#define ENABLE_PLABEL 1" >>confdefs.h 13691 13692 else 13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13694$as_echo "no" >&6; } 13695 fi 13696 13697else 13698 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13700$as_echo "no" >&6; } 13701 13702fi 13703 13704 13705 13706# Check whether --with-pcap-includes was given. 13707if test "${with_pcap_includes+set}" = set; then : 13708 withval=$with_pcap_includes; 13709 13710 absdir=`cd $withval 2>/dev/null && pwd` 13711 if test x$absdir != x ; then 13712 withval=$absdir 13713 fi 13714 13715 INCLUDES="${INCLUDES} -I$withval" 13716 PCAPINCLS=$withval 13717 PCAPINCLUDESFOUND=1 13718 13719fi 13720 13721 13722if test x"$PCAPINCLS" != x""; then 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking your own pcap includes" >&5 13724$as_echo_n "checking your own pcap includes... " >&6; } 13725 if test -r $PCAPINCLS/pcap.h; then 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13727$as_echo "ok" >&6; } 13728 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h 13729 13730 else 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13732$as_echo "no" >&6; } 13733 as_fn_error $? "ERROR: missing pcap.h in $PCAPINCLS" "$LINENO" 5 13734 fi 13735fi 13736 13737if test x"$PCAPINCLUDESFOUND" = x""; then 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default locations for pcap.h" >&5 13739$as_echo_n "checking default locations for pcap.h... " >&6; } 13740 if test -r /usr/include/pcap.h; then 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/include" >&5 13742$as_echo "found in /usr/include" >&6; } 13743 PCAPINCLUDESFOUND=1 13744 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h 13745 13746 elif test -r /usr/include/pcap/pcap.h; then 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/include" >&5 13748$as_echo "found in /usr/include" >&6; } 13749 PCAPINCLUDESFOUND=1 13750 $as_echo "#define HAVE_PCAP_PCAP_H 1" >>confdefs.h 13751 13752 elif test -r /usr/local/include/pcap.h; then 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/include" >&5 13754$as_echo "found in /usr/local/include" >&6; } 13755 INCLUDES="${INCLUDES} -I/usr/local/include" 13756 PCAPINCLUDESFOUND=1 13757 $as_echo "#define HAVE_PCAP_H 1" >>confdefs.h 13758 13759 elif test -r /usr/local/include/pcap/pcap.h; then 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/include" >&5 13761$as_echo "found in /usr/local/include" >&6; } 13762 INCLUDES="${INCLUDES} -I/usr/local/include" 13763 PCAPINCLUDESFOUND=1 13764 $as_echo "#define HAVE_PCAP_PCAP_H 1" >>confdefs.h 13765 13766 fi 13767 if test x"$PCAPINCLUDESFOUND" = x""; then 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13769$as_echo "not found" >&6; } 13770 as_fn_error $? "ERROR: missing pcap.h" "$LINENO" 5 13771 fi 13772fi 13773 13774 13775# Check whether --with-pcap-libs was given. 13776if test "${with_pcap_libs+set}" = set; then : 13777 withval=$with_pcap_libs; 13778 13779 absdir=`cd $withval 2>/dev/null && pwd` 13780 if test x$absdir != x ; then 13781 withval=$absdir 13782 fi 13783 13784 LIBS="${LIBS} -L$withval" 13785 PCAPLIB=$withval 13786 PCAPLIBFOUND=1 13787 13788fi 13789 13790 13791if test x"$PCAPLIB" != x""; then 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking your own pcap libraries" >&5 13793$as_echo_n "checking your own pcap libraries... " >&6; } 13794 if test -r $PCAPLIB/libpcap.a -o -r $PCAPLIB/libpcap.so; then 13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13796$as_echo "ok" >&6; } 13797 PCAP_LIB_FOUND=1 13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_RING library" >&5 13799$as_echo_n "checking for PF_RING library... " >&6; } 13800 if test -r $PCAPLIB/libpfring.a -o -r $PCAPLIB/libpfring.so; then 13801 LIBS="${LIBS} -lpfring -lpcap" 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13803$as_echo "yes" >&6; } 13804 PFRING_LIB_FOUND=1 13805 $as_echo "#define PFRING_LIB_FOUND 1" >>confdefs.h 13806 13807 else 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13809$as_echo "no" >&6; } 13810 fi 13811 else 13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13813$as_echo "no" >&6; } 13814 as_fn_error $? "ERROR: unable to find pcap library in $PCAPLIB" "$LINENO" 5 13815 fi 13816fi 13817 13818if test x"$PCAPLIBFOUND" = x""; then 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default locations for libpcap" >&5 13820$as_echo_n "checking default locations for libpcap... " >&6; } 13821 if test -r /usr/local/lib/libpcap.a -o -r /usr/local/lib/libpcap.so; then 13822 LIBS="${LIBS} -L/usr/local/lib" 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/lib" >&5 13824$as_echo "found in /usr/local/lib" >&6; } 13825 PCAPLIBFOUND=1 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PF_RING library" >&5 13827$as_echo_n "checking for PF_RING library... " >&6; } 13828 if test -r /usr/local/lib/libpfring.a -o -r /usr/local/lib/libpfring.so; then 13829 LIBS="${LIBS} -lpfring -lpcap" 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13831$as_echo "yes" >&6; } 13832 PFRING_LIB_FOUND=1 13833 $as_echo "#define PFRING_LIB_FOUND 1" >>confdefs.h 13834 13835 else 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13837$as_echo "no" >&6; } 13838 fi 13839 else 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13841$as_echo "no" >&6; } 13842 fi 13843fi 13844 13845 13846if test x"$PFRING_LIB_FOUND" = x""; then 13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_dispatch in -lpcap" >&5 13848$as_echo_n "checking for pcap_dispatch in -lpcap... " >&6; } 13849if ${ac_cv_lib_pcap_pcap_dispatch+:} false; then : 13850 $as_echo_n "(cached) " >&6 13851else 13852 ac_check_lib_save_LIBS=$LIBS 13853LIBS="-lpcap $LIBS" 13854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13855/* end confdefs.h. */ 13856 13857/* Override any GCC internal prototype to avoid an error. 13858 Use char because int might match the return type of a GCC 13859 builtin and then its argument prototype would still apply. */ 13860#ifdef __cplusplus 13861extern "C" 13862#endif 13863char pcap_dispatch (); 13864int 13865main () 13866{ 13867return pcap_dispatch (); 13868 ; 13869 return 0; 13870} 13871_ACEOF 13872if ac_fn_c_try_link "$LINENO"; then : 13873 ac_cv_lib_pcap_pcap_dispatch=yes 13874else 13875 ac_cv_lib_pcap_pcap_dispatch=no 13876fi 13877rm -f core conftest.err conftest.$ac_objext \ 13878 conftest$ac_exeext conftest.$ac_ext 13879LIBS=$ac_check_lib_save_LIBS 13880fi 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_dispatch" >&5 13882$as_echo "$ac_cv_lib_pcap_pcap_dispatch" >&6; } 13883if test "x$ac_cv_lib_pcap_pcap_dispatch" = xyes; then : 13884 cat >>confdefs.h <<_ACEOF 13885#define HAVE_LIBPCAP 1 13886_ACEOF 13887 13888 LIBS="-lpcap $LIBS" 13889 13890else 13891 as_fn_error $? " 13892 ERROR: missing pcap library. Refer to: http://www.tcpdump.org/ 13893 " "$LINENO" 5 13894fi 13895 13896 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_set_protocol in -lpcap" >&5 13898$as_echo_n "checking for pcap_set_protocol in -lpcap... " >&6; } 13899if ${ac_cv_lib_pcap_pcap_set_protocol+:} false; then : 13900 $as_echo_n "(cached) " >&6 13901else 13902 ac_check_lib_save_LIBS=$LIBS 13903LIBS="-lpcap $LIBS" 13904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905/* end confdefs.h. */ 13906 13907/* Override any GCC internal prototype to avoid an error. 13908 Use char because int might match the return type of a GCC 13909 builtin and then its argument prototype would still apply. */ 13910#ifdef __cplusplus 13911extern "C" 13912#endif 13913char pcap_set_protocol (); 13914int 13915main () 13916{ 13917return pcap_set_protocol (); 13918 ; 13919 return 0; 13920} 13921_ACEOF 13922if ac_fn_c_try_link "$LINENO"; then : 13923 ac_cv_lib_pcap_pcap_set_protocol=yes 13924else 13925 ac_cv_lib_pcap_pcap_set_protocol=no 13926fi 13927rm -f core conftest.err conftest.$ac_objext \ 13928 conftest$ac_exeext conftest.$ac_ext 13929LIBS=$ac_check_lib_save_LIBS 13930fi 13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_set_protocol" >&5 13932$as_echo "$ac_cv_lib_pcap_pcap_set_protocol" >&6; } 13933if test "x$ac_cv_lib_pcap_pcap_set_protocol" = xyes; then : 13934 $as_echo "#define PCAP_SET_PROTOCOL 1" >>confdefs.h 13935 13936fi 13937 13938else 13939 #AC_CHECK_LIB([numa], [numa_bind], [], [AC_MSG_ERROR([ 13940 # ERROR: missing libnuma devel. Requirement for building PF_RING. 13941 #])]) 13942 13943 #AC_CHECK_LIB([rt], [clock_gettime], [], [AC_MSG_ERROR([ 13944 # ERROR: missing librt devel. Requirement for building PF_RING. 13945 #])]) 13946 13947 LIBS="${LIBS} -lrt -lnuma" 13948fi 13949 13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_setdirection in -lpcap" >&5 13951$as_echo_n "checking for pcap_setdirection in -lpcap... " >&6; } 13952if ${ac_cv_lib_pcap_pcap_setdirection+:} false; then : 13953 $as_echo_n "(cached) " >&6 13954else 13955 ac_check_lib_save_LIBS=$LIBS 13956LIBS="-lpcap $LIBS" 13957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13958/* end confdefs.h. */ 13959 13960/* Override any GCC internal prototype to avoid an error. 13961 Use char because int might match the return type of a GCC 13962 builtin and then its argument prototype would still apply. */ 13963#ifdef __cplusplus 13964extern "C" 13965#endif 13966char pcap_setdirection (); 13967int 13968main () 13969{ 13970return pcap_setdirection (); 13971 ; 13972 return 0; 13973} 13974_ACEOF 13975if ac_fn_c_try_link "$LINENO"; then : 13976 ac_cv_lib_pcap_pcap_setdirection=yes 13977else 13978 ac_cv_lib_pcap_pcap_setdirection=no 13979fi 13980rm -f core conftest.err conftest.$ac_objext \ 13981 conftest$ac_exeext conftest.$ac_ext 13982LIBS=$ac_check_lib_save_LIBS 13983fi 13984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_setdirection" >&5 13985$as_echo "$ac_cv_lib_pcap_pcap_setdirection" >&6; } 13986if test "x$ac_cv_lib_pcap_pcap_setdirection" = xyes; then : 13987 $as_echo "#define PCAP_SET_DIRECTION 1" >>confdefs.h 13988 13989fi 13990 13991 13992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking packet capture type" >&5 13993$as_echo_n "checking packet capture type... " >&6; } 13994if test -r /dev/bpf0 ; then 13995 V_PCAP=bpf 13996elif test -r /usr/include/net/pfilt.h ; then 13997 V_PCAP=pf 13998elif test -r /dev/enet ; then 13999 V_PCAP=enet 14000elif test -r /dev/nit ; then 14001 V_PCAP=snit 14002elif test -r /usr/include/sys/net/nit.h ; then 14003 V_PCAP=nit 14004elif test -r /usr/include/linux/socket.h ; then 14005 V_PCAP=linux 14006elif test -r /usr/include/net/raw.h ; then 14007 V_PCAP=snoop 14008elif test -r /usr/include/odmi.h ; then 14009 # 14010 # On AIX, the BPF devices might not yet be present - they're 14011 # created the first time libpcap runs after booting. 14012 # We check for odmi.h instead. 14013 # 14014 V_PCAP=bpf 14015elif test -r /usr/include/sys/dlpi.h ; then 14016 V_PCAP=dlpi 14017elif test -c /dev/bpf0 ; then # check again in case not readable 14018 V_PCAP=bpf 14019elif test -c /dev/enet ; then # check again in case not readable 14020 V_PCAP=enet 14021elif test -c /dev/nit ; then # check again in case not readable 14022 V_PCAP=snit 14023else 14024 V_PCAP=null 14025fi 14026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $V_PCAP" >&5 14027$as_echo "$V_PCAP" >&6; } 14028cat >>confdefs.h <<_ACEOF 14029#define PCAP_TYPE_$V_PCAP 1 14030_ACEOF 14031 14032 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MySQL support" >&5 14034$as_echo_n "checking whether to enable MySQL support... " >&6; } 14035# Check whether --enable-mysql was given. 14036if test "${enable_mysql+set}" = set; then : 14037 enableval=$enable_mysql; case "$enableval" in 14038 yes) 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14040$as_echo "yes" >&6; } 14041 14042 # Extract the first word of "mysql_config", so it can be a program name with args. 14043set dummy mysql_config; ac_word=$2 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14045$as_echo_n "checking for $ac_word... " >&6; } 14046if ${ac_cv_prog_MYSQL_CONFIG+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 if test -n "$MYSQL_CONFIG"; then 14050 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test. 14051else 14052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14053for as_dir in $PATH 14054do 14055 IFS=$as_save_IFS 14056 test -z "$as_dir" && as_dir=. 14057 for ac_exec_ext in '' $ac_executable_extensions; do 14058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14059 ac_cv_prog_MYSQL_CONFIG="mysql_config" 14060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14061 break 2 14062 fi 14063done 14064 done 14065IFS=$as_save_IFS 14066 14067 test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no" 14068fi 14069fi 14070MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG 14071if test -n "$MYSQL_CONFIG"; then 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 14073$as_echo "$MYSQL_CONFIG" >&6; } 14074else 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14076$as_echo "no" >&6; } 14077fi 14078 14079 14080 if test "x${MYSQL_CONFIG}" = "xno"; then 14081 as_fn_error $? "ERROR: missing mysql_config program" "$LINENO" 5 14082 fi 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 14084$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } 14085if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then : 14086 $as_echo_n "(cached) " >&6 14087else 14088 ac_check_lib_save_LIBS=$LIBS 14089LIBS="-lmysqlclient `$MYSQL_CONFIG --libs` $LIBS" 14090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14091/* end confdefs.h. */ 14092 14093/* Override any GCC internal prototype to avoid an error. 14094 Use char because int might match the return type of a GCC 14095 builtin and then its argument prototype would still apply. */ 14096#ifdef __cplusplus 14097extern "C" 14098#endif 14099char mysql_init (); 14100int 14101main () 14102{ 14103return mysql_init (); 14104 ; 14105 return 0; 14106} 14107_ACEOF 14108if ac_fn_c_try_link "$LINENO"; then : 14109 ac_cv_lib_mysqlclient_mysql_init=yes 14110else 14111 ac_cv_lib_mysqlclient_mysql_init=no 14112fi 14113rm -f core conftest.err conftest.$ac_objext \ 14114 conftest$ac_exeext conftest.$ac_ext 14115LIBS=$ac_check_lib_save_LIBS 14116fi 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 14118$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; } 14119if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then : 14120 MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags` 14121 MYSQL_LIBS=`$MYSQL_CONFIG --libs` 14122else 14123 as_fn_error $? "ERROR: missing MySQL client library" "$LINENO" 5 14124fi 14125 14126 14127 if test "$MYSQL_CONFIG" != "no"; then 14128 MYSQL_VERSION=`$MYSQL_CONFIG --version` 14129 found_mysql="yes" 14130 else 14131 found_mysql="no" 14132 fi 14133 14134 14135 mysql_version_req=5.6.3 14136 14137 if test "$found_mysql" = "yes" -a -n "$mysql_version_req"; then 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MySQL version is >= $mysql_version_req" >&5 14139$as_echo_n "checking if MySQL version is >= $mysql_version_req... " >&6; } 14140 14141 mysql_version_req_major=`expr $mysql_version_req : '\([0-9]*\)'` 14142 mysql_version_req_minor=`expr $mysql_version_req : '[0-9]*\.\([0-9]*\)'` 14143 mysql_version_req_micro=`expr $mysql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 14144 if test "x$mysql_version_req_micro" = "x"; then 14145 mysql_version_req_micro="0" 14146 fi 14147 14148 mysql_version_req_number=`expr $mysql_version_req_major \* 1000000 \ 14149 \+ $mysql_version_req_minor \* 1000 \ 14150 \+ $mysql_version_req_micro` 14151 14152 mysql_version_major=`expr $MYSQL_VERSION : '\([0-9]*\)'` 14153 mysql_version_minor=`expr $MYSQL_VERSION : '[0-9]*\.\([0-9]*\)'` 14154 mysql_version_micro=`expr $MYSQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 14155 if test "x$mysql_version_micro" = "x"; then 14156 mysql_version_micro="0" 14157 fi 14158 14159 mysql_version_number=`expr $mysql_version_major \* 1000000 \ 14160 \+ $mysql_version_minor \* 1000 \ 14161 \+ $mysql_version_micro` 14162 14163 mysql_version_check=`expr $mysql_version_number \>\= $mysql_version_req_number` 14164 14165 if test "$mysql_version_check" = "1"; then 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14167$as_echo "yes" >&6; } 14168 else 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14170$as_echo "no" >&6; } 14171 fi 14172 fi 14173 14174 14175 14176 14177 14178 14179 14180 PLUGINS="${PLUGINS} mysql" 14181 USING_SQL="yes" 14182 USING_MYSQL="yes" 14183 PMACCT_CFLAGS="$PMACCT_CFLAGS $MYSQL_CFLAGS" 14184 $as_echo "#define WITH_MYSQL 1" >>confdefs.h 14185 14186 _save_LIBS="$LIBS" 14187 LIBS="$LIBS $MYSQL_LIBS" 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -lmysqlclient" >&5 14189$as_echo_n "checking for mysql_query in -lmysqlclient... " >&6; } 14190if ${ac_cv_lib_mysqlclient_mysql_query+:} false; then : 14191 $as_echo_n "(cached) " >&6 14192else 14193 ac_check_lib_save_LIBS=$LIBS 14194LIBS="-lmysqlclient $LIBS" 14195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196/* end confdefs.h. */ 14197 14198/* Override any GCC internal prototype to avoid an error. 14199 Use char because int might match the return type of a GCC 14200 builtin and then its argument prototype would still apply. */ 14201#ifdef __cplusplus 14202extern "C" 14203#endif 14204char mysql_query (); 14205int 14206main () 14207{ 14208return mysql_query (); 14209 ; 14210 return 0; 14211} 14212_ACEOF 14213if ac_fn_c_try_link "$LINENO"; then : 14214 ac_cv_lib_mysqlclient_mysql_query=yes 14215else 14216 ac_cv_lib_mysqlclient_mysql_query=no 14217fi 14218rm -f core conftest.err conftest.$ac_objext \ 14219 conftest$ac_exeext conftest.$ac_ext 14220LIBS=$ac_check_lib_save_LIBS 14221fi 14222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_query" >&5 14223$as_echo "$ac_cv_lib_mysqlclient_mysql_query" >&6; } 14224if test "x$ac_cv_lib_mysqlclient_mysql_query" = xyes; then : 14225 cat >>confdefs.h <<_ACEOF 14226#define HAVE_LIBMYSQLCLIENT 1 14227_ACEOF 14228 14229 LIBS="-lmysqlclient $LIBS" 14230 14231fi 14232 14233 LIBS="$_save_LIBS" 14234 _save_CFLAGS="$CFLAGS" 14235 CFLAGS="$CFLAGS $MYSQL_CFLAGS" 14236 for ac_header in mysql.h mysql/mysql.h 14237do : 14238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14239ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14241 cat >>confdefs.h <<_ACEOF 14242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14243_ACEOF 14244 14245fi 14246 14247done 14248 14249 CFLAGS="$_save_CFLAGS" 14250 ;; 14251 no) 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14253$as_echo "no" >&6; } 14254 ;; 14255 esac 14256else 14257 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14259$as_echo "no" >&6; } 14260 14261 14262fi 14263 14264 14265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PostgreSQL support" >&5 14266$as_echo_n "checking whether to enable PostgreSQL support... " >&6; } 14267# Check whether --enable-pgsql was given. 14268if test "${enable_pgsql+set}" = set; then : 14269 enableval=$enable_pgsql; case "$enableval" in 14270 yes) 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14272$as_echo "yes" >&6; } 14273 14274pkg_failed=no 14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PGSQL" >&5 14276$as_echo_n "checking for PGSQL... " >&6; } 14277 14278if test -n "$PGSQL_CFLAGS"; then 14279 pkg_cv_PGSQL_CFLAGS="$PGSQL_CFLAGS" 14280 elif test -n "$PKG_CONFIG"; then 14281 if test -n "$PKG_CONFIG" && \ 14282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq >= 8.4\""; } >&5 14283 ($PKG_CONFIG --exists --print-errors "libpq >= 8.4") 2>&5 14284 ac_status=$? 14285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14286 test $ac_status = 0; }; then 14287 pkg_cv_PGSQL_CFLAGS=`$PKG_CONFIG --cflags "libpq >= 8.4" 2>/dev/null` 14288 test "x$?" != "x0" && pkg_failed=yes 14289else 14290 pkg_failed=yes 14291fi 14292 else 14293 pkg_failed=untried 14294fi 14295if test -n "$PGSQL_LIBS"; then 14296 pkg_cv_PGSQL_LIBS="$PGSQL_LIBS" 14297 elif test -n "$PKG_CONFIG"; then 14298 if test -n "$PKG_CONFIG" && \ 14299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpq >= 8.4\""; } >&5 14300 ($PKG_CONFIG --exists --print-errors "libpq >= 8.4") 2>&5 14301 ac_status=$? 14302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14303 test $ac_status = 0; }; then 14304 pkg_cv_PGSQL_LIBS=`$PKG_CONFIG --libs "libpq >= 8.4" 2>/dev/null` 14305 test "x$?" != "x0" && pkg_failed=yes 14306else 14307 pkg_failed=yes 14308fi 14309 else 14310 pkg_failed=untried 14311fi 14312 14313 14314 14315if test $pkg_failed = yes; then 14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14317$as_echo "no" >&6; } 14318 14319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14320 _pkg_short_errors_supported=yes 14321else 14322 _pkg_short_errors_supported=no 14323fi 14324 if test $_pkg_short_errors_supported = yes; then 14325 PGSQL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpq >= 8.4" 2>&1` 14326 else 14327 PGSQL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpq >= 8.4" 2>&1` 14328 fi 14329 # Put the nasty error message in config.log where it belongs 14330 echo "$PGSQL_PKG_ERRORS" >&5 14331 14332 14333 as_fn_error $? "Missing PQ library. Refer to: http://www.postgresql.org/download/" "$LINENO" 5 14334 14335elif test $pkg_failed = untried; then 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14337$as_echo "no" >&6; } 14338 14339 as_fn_error $? "Missing PQ library. Refer to: http://www.postgresql.org/download/" "$LINENO" 5 14340 14341else 14342 PGSQL_CFLAGS=$pkg_cv_PGSQL_CFLAGS 14343 PGSQL_LIBS=$pkg_cv_PGSQL_LIBS 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14345$as_echo "yes" >&6; } 14346 14347 PLUGINS="${PLUGINS} pgsql" 14348 USING_SQL="yes" 14349 USING_PGSQL="yes" 14350 PMACCT_CFLAGS="$PMACCT_CFLAGS $PGSQL_CFLAGS" 14351 $as_echo "#define WITH_PGSQL 1" >>confdefs.h 14352 14353 _save_LIBS="$LIBS" 14354 LIBS="$LIBS $PGSQL_LIBS" 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexec in -lpq" >&5 14356$as_echo_n "checking for PQexec in -lpq... " >&6; } 14357if ${ac_cv_lib_pq_PQexec+:} false; then : 14358 $as_echo_n "(cached) " >&6 14359else 14360 ac_check_lib_save_LIBS=$LIBS 14361LIBS="-lpq $LIBS" 14362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14363/* end confdefs.h. */ 14364 14365/* Override any GCC internal prototype to avoid an error. 14366 Use char because int might match the return type of a GCC 14367 builtin and then its argument prototype would still apply. */ 14368#ifdef __cplusplus 14369extern "C" 14370#endif 14371char PQexec (); 14372int 14373main () 14374{ 14375return PQexec (); 14376 ; 14377 return 0; 14378} 14379_ACEOF 14380if ac_fn_c_try_link "$LINENO"; then : 14381 ac_cv_lib_pq_PQexec=yes 14382else 14383 ac_cv_lib_pq_PQexec=no 14384fi 14385rm -f core conftest.err conftest.$ac_objext \ 14386 conftest$ac_exeext conftest.$ac_ext 14387LIBS=$ac_check_lib_save_LIBS 14388fi 14389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexec" >&5 14390$as_echo "$ac_cv_lib_pq_PQexec" >&6; } 14391if test "x$ac_cv_lib_pq_PQexec" = xyes; then : 14392 cat >>confdefs.h <<_ACEOF 14393#define HAVE_LIBPQ 1 14394_ACEOF 14395 14396 LIBS="-lpq $LIBS" 14397 14398fi 14399 14400 for ac_func in PQlibVersion 14401do : 14402 ac_fn_c_check_func "$LINENO" "PQlibVersion" "ac_cv_func_PQlibVersion" 14403if test "x$ac_cv_func_PQlibVersion" = xyes; then : 14404 cat >>confdefs.h <<_ACEOF 14405#define HAVE_PQLIBVERSION 1 14406_ACEOF 14407 14408fi 14409done 14410 14411 LIBS="$_save_LIBS" 14412 _save_CFLAGS="$CFLAGS" 14413 CFLAGS="$CFLAGS $PGSQL_CFLAGS" 14414 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 14415if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 14416 14417fi 14418 14419 14420 CFLAGS="$_save_CFLAGS" 14421 14422fi 14423 ;; 14424 no) 14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14426$as_echo "no" >&6; } 14427 ;; 14428 esac 14429else 14430 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14432$as_echo "no" >&6; } 14433 14434 14435fi 14436 14437 14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MongoDB support" >&5 14439$as_echo_n "checking whether to enable MongoDB support... " >&6; } 14440# Check whether --enable-mongodb was given. 14441if test "${enable_mongodb+set}" = set; then : 14442 enableval=$enable_mongodb; case "$enableval" in 14443 yes) 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14445$as_echo "yes" >&6; } 14446 14447pkg_failed=no 14448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONGODB" >&5 14449$as_echo_n "checking for MONGODB... " >&6; } 14450 14451if test -n "$MONGODB_CFLAGS"; then 14452 pkg_cv_MONGODB_CFLAGS="$MONGODB_CFLAGS" 14453 elif test -n "$PKG_CONFIG"; then 14454 if test -n "$PKG_CONFIG" && \ 14455 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc\""; } >&5 14456 ($PKG_CONFIG --exists --print-errors "libmongoc") 2>&5 14457 ac_status=$? 14458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14459 test $ac_status = 0; }; then 14460 pkg_cv_MONGODB_CFLAGS=`$PKG_CONFIG --cflags "libmongoc" 2>/dev/null` 14461 test "x$?" != "x0" && pkg_failed=yes 14462else 14463 pkg_failed=yes 14464fi 14465 else 14466 pkg_failed=untried 14467fi 14468if test -n "$MONGODB_LIBS"; then 14469 pkg_cv_MONGODB_LIBS="$MONGODB_LIBS" 14470 elif test -n "$PKG_CONFIG"; then 14471 if test -n "$PKG_CONFIG" && \ 14472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmongoc\""; } >&5 14473 ($PKG_CONFIG --exists --print-errors "libmongoc") 2>&5 14474 ac_status=$? 14475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14476 test $ac_status = 0; }; then 14477 pkg_cv_MONGODB_LIBS=`$PKG_CONFIG --libs "libmongoc" 2>/dev/null` 14478 test "x$?" != "x0" && pkg_failed=yes 14479else 14480 pkg_failed=yes 14481fi 14482 else 14483 pkg_failed=untried 14484fi 14485 14486 14487 14488if test $pkg_failed = yes; then 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14490$as_echo "no" >&6; } 14491 14492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14493 _pkg_short_errors_supported=yes 14494else 14495 _pkg_short_errors_supported=no 14496fi 14497 if test $_pkg_short_errors_supported = yes; then 14498 MONGODB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmongoc" 2>&1` 14499 else 14500 MONGODB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmongoc" 2>&1` 14501 fi 14502 # Put the nasty error message in config.log where it belongs 14503 echo "$MONGODB_PKG_ERRORS" >&5 14504 14505 14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default locations for libmongoc" >&5 14507$as_echo_n "checking default locations for libmongoc... " >&6; } 14508 if test -r /usr/lib/libmongoc.a -o -r /usr/lib/libmongoc.so; then 14509 MONGODB_LIBS="-L/usr/lib -lmongoc" 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/lib" >&5 14511$as_echo "found in /usr/lib" >&6; } 14512 elif test -r /usr/lib64/libmongoc.a -o -r /usr/lib64/libmongoc.so; then 14513 MONGODB_LIBS="-L/usr/lib64 -lmongoc" 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/lib64" >&5 14515$as_echo "found in /usr/lib64" >&6; } 14516 elif test -r /usr/local/lib/libmongoc.a -o -r /usr/local/lib/libmongoc.so; then 14517 MONGODB_LIBS="-L/usr/local/lib -lmongoc" 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/lib" >&5 14519$as_echo "found in /usr/local/lib" >&6; } 14520 else 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14522$as_echo "not found" >&6; } 14523 _save_LIBS="$LIBS" 14524 LIBS="$LIBS $MONGODB_LIBS" 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mongo_connect in -lmongoc" >&5 14526$as_echo_n "checking for mongo_connect in -lmongoc... " >&6; } 14527if ${ac_cv_lib_mongoc_mongo_connect+:} false; then : 14528 $as_echo_n "(cached) " >&6 14529else 14530 ac_check_lib_save_LIBS=$LIBS 14531LIBS="-lmongoc $LIBS" 14532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14533/* end confdefs.h. */ 14534 14535/* Override any GCC internal prototype to avoid an error. 14536 Use char because int might match the return type of a GCC 14537 builtin and then its argument prototype would still apply. */ 14538#ifdef __cplusplus 14539extern "C" 14540#endif 14541char mongo_connect (); 14542int 14543main () 14544{ 14545return mongo_connect (); 14546 ; 14547 return 0; 14548} 14549_ACEOF 14550if ac_fn_c_try_link "$LINENO"; then : 14551 ac_cv_lib_mongoc_mongo_connect=yes 14552else 14553 ac_cv_lib_mongoc_mongo_connect=no 14554fi 14555rm -f core conftest.err conftest.$ac_objext \ 14556 conftest$ac_exeext conftest.$ac_ext 14557LIBS=$ac_check_lib_save_LIBS 14558fi 14559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mongoc_mongo_connect" >&5 14560$as_echo "$ac_cv_lib_mongoc_mongo_connect" >&6; } 14561if test "x$ac_cv_lib_mongoc_mongo_connect" = xyes; then : 14562 cat >>confdefs.h <<_ACEOF 14563#define HAVE_LIBMONGOC 1 14564_ACEOF 14565 14566 LIBS="-lmongoc $LIBS" 14567 14568else 14569 as_fn_error $? " 14570 ERROR: missing MongoDB library (0.8 version). Refer to: https://github.com/mongodb/mongo-c-driver-legacy 14571 " "$LINENO" 5 14572fi 14573 14574 LIBS="$_save_LIBS" 14575 fi 14576 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default locations for mongo.h" >&5 14578$as_echo_n "checking default locations for mongo.h... " >&6; } 14579 if test -r /usr/include/mongo.h; then 14580 MONGODB_CFLAGS="-I/usr/include" 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/include" >&5 14582$as_echo "found in /usr/include" >&6; } 14583 elif test -r /usr/local/include/mongo.h; then 14584 MONGODB_CFLAGS="-I/usr/local/include" 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/include" >&5 14586$as_echo "found in /usr/local/include" >&6; } 14587 else 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14589$as_echo "not found" >&6; } 14590 _save_CFLAGS="$CFLAGS" 14591 CFLAGS="$CFLAGS $MONGODB_CFLAGS" 14592 ac_fn_c_check_header_mongrel "$LINENO" "mongo.h" "ac_cv_header_mongo_h" "$ac_includes_default" 14593if test "x$ac_cv_header_mongo_h" = xyes; then : 14594 14595else 14596 as_fn_error $? "ERROR: missing MongoDB headers" "$LINENO" 5 14597fi 14598 14599 14600 CFLAGS="$_save_CFLAGS" 14601 fi 14602 14603elif test $pkg_failed = untried; then 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14605$as_echo "no" >&6; } 14606 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default locations for libmongoc" >&5 14608$as_echo_n "checking default locations for libmongoc... " >&6; } 14609 if test -r /usr/lib/libmongoc.a -o -r /usr/lib/libmongoc.so; then 14610 MONGODB_LIBS="-L/usr/lib -lmongoc" 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/lib" >&5 14612$as_echo "found in /usr/lib" >&6; } 14613 elif test -r /usr/lib64/libmongoc.a -o -r /usr/lib64/libmongoc.so; then 14614 MONGODB_LIBS="-L/usr/lib64 -lmongoc" 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/lib64" >&5 14616$as_echo "found in /usr/lib64" >&6; } 14617 elif test -r /usr/local/lib/libmongoc.a -o -r /usr/local/lib/libmongoc.so; then 14618 MONGODB_LIBS="-L/usr/local/lib -lmongoc" 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/lib" >&5 14620$as_echo "found in /usr/local/lib" >&6; } 14621 else 14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14623$as_echo "not found" >&6; } 14624 _save_LIBS="$LIBS" 14625 LIBS="$LIBS $MONGODB_LIBS" 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mongo_connect in -lmongoc" >&5 14627$as_echo_n "checking for mongo_connect in -lmongoc... " >&6; } 14628if ${ac_cv_lib_mongoc_mongo_connect+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 ac_check_lib_save_LIBS=$LIBS 14632LIBS="-lmongoc $LIBS" 14633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635 14636/* Override any GCC internal prototype to avoid an error. 14637 Use char because int might match the return type of a GCC 14638 builtin and then its argument prototype would still apply. */ 14639#ifdef __cplusplus 14640extern "C" 14641#endif 14642char mongo_connect (); 14643int 14644main () 14645{ 14646return mongo_connect (); 14647 ; 14648 return 0; 14649} 14650_ACEOF 14651if ac_fn_c_try_link "$LINENO"; then : 14652 ac_cv_lib_mongoc_mongo_connect=yes 14653else 14654 ac_cv_lib_mongoc_mongo_connect=no 14655fi 14656rm -f core conftest.err conftest.$ac_objext \ 14657 conftest$ac_exeext conftest.$ac_ext 14658LIBS=$ac_check_lib_save_LIBS 14659fi 14660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mongoc_mongo_connect" >&5 14661$as_echo "$ac_cv_lib_mongoc_mongo_connect" >&6; } 14662if test "x$ac_cv_lib_mongoc_mongo_connect" = xyes; then : 14663 cat >>confdefs.h <<_ACEOF 14664#define HAVE_LIBMONGOC 1 14665_ACEOF 14666 14667 LIBS="-lmongoc $LIBS" 14668 14669else 14670 as_fn_error $? " 14671 ERROR: missing MongoDB library (0.8 version). Refer to: https://github.com/mongodb/mongo-c-driver-legacy 14672 " "$LINENO" 5 14673fi 14674 14675 LIBS="$_save_LIBS" 14676 fi 14677 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default locations for mongo.h" >&5 14679$as_echo_n "checking default locations for mongo.h... " >&6; } 14680 if test -r /usr/include/mongo.h; then 14681 MONGODB_CFLAGS="-I/usr/include" 14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/include" >&5 14683$as_echo "found in /usr/include" >&6; } 14684 elif test -r /usr/local/include/mongo.h; then 14685 MONGODB_CFLAGS="-I/usr/local/include" 14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in /usr/local/include" >&5 14687$as_echo "found in /usr/local/include" >&6; } 14688 else 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14690$as_echo "not found" >&6; } 14691 _save_CFLAGS="$CFLAGS" 14692 CFLAGS="$CFLAGS $MONGODB_CFLAGS" 14693 ac_fn_c_check_header_mongrel "$LINENO" "mongo.h" "ac_cv_header_mongo_h" "$ac_includes_default" 14694if test "x$ac_cv_header_mongo_h" = xyes; then : 14695 14696else 14697 as_fn_error $? "ERROR: missing MongoDB headers" "$LINENO" 5 14698fi 14699 14700 14701 CFLAGS="$_save_CFLAGS" 14702 fi 14703 14704else 14705 MONGODB_CFLAGS=$pkg_cv_MONGODB_CFLAGS 14706 MONGODB_LIBS=$pkg_cv_MONGODB_LIBS 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14708$as_echo "yes" >&6; } 14709 14710fi 14711 PLUGINS="${PLUGINS} mongodb" 14712 USING_MONGODB="yes" 14713 PMACCT_CFLAGS="$PMACCT_CFLAGS $MONGODB_CFLAGS" 14714 $as_echo "#define WITH_MONGODB 1" >>confdefs.h 14715 14716 ;; 14717 no) 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14719$as_echo "no" >&6; } 14720 ;; 14721 esac 14722else 14723 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14725$as_echo "no" >&6; } 14726 14727 14728fi 14729 14730 14731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SQLite3 support" >&5 14732$as_echo_n "checking whether to enable SQLite3 support... " >&6; } 14733# Check whether --enable-sqlite3 was given. 14734if test "${enable_sqlite3+set}" = set; then : 14735 enableval=$enable_sqlite3; case "$enableval" in 14736 yes) 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14738$as_echo "yes" >&6; } 14739 14740pkg_failed=no 14741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5 14742$as_echo_n "checking for SQLITE3... " >&6; } 14743 14744if test -n "$SQLITE3_CFLAGS"; then 14745 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS" 14746 elif test -n "$PKG_CONFIG"; then 14747 if test -n "$PKG_CONFIG" && \ 14748 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.13\""; } >&5 14749 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.13") 2>&5 14750 ac_status=$? 14751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14752 test $ac_status = 0; }; then 14753 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.7.13" 2>/dev/null` 14754 test "x$?" != "x0" && pkg_failed=yes 14755else 14756 pkg_failed=yes 14757fi 14758 else 14759 pkg_failed=untried 14760fi 14761if test -n "$SQLITE3_LIBS"; then 14762 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS" 14763 elif test -n "$PKG_CONFIG"; then 14764 if test -n "$PKG_CONFIG" && \ 14765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.7.13\""; } >&5 14766 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.7.13") 2>&5 14767 ac_status=$? 14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14769 test $ac_status = 0; }; then 14770 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.7.13" 2>/dev/null` 14771 test "x$?" != "x0" && pkg_failed=yes 14772else 14773 pkg_failed=yes 14774fi 14775 else 14776 pkg_failed=untried 14777fi 14778 14779 14780 14781if test $pkg_failed = yes; then 14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14783$as_echo "no" >&6; } 14784 14785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14786 _pkg_short_errors_supported=yes 14787else 14788 _pkg_short_errors_supported=no 14789fi 14790 if test $_pkg_short_errors_supported = yes; then 14791 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.7.13" 2>&1` 14792 else 14793 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.7.13" 2>&1` 14794 fi 14795 # Put the nasty error message in config.log where it belongs 14796 echo "$SQLITE3_PKG_ERRORS" >&5 14797 14798 as_fn_error $? "Package requirements (sqlite3 >= 3.7.13) were not met: 14799 14800$SQLITE3_PKG_ERRORS 14801 14802Consider adjusting the PKG_CONFIG_PATH environment variable if you 14803installed software in a non-standard prefix. 14804 14805Alternatively, you may set the environment variables SQLITE3_CFLAGS 14806and SQLITE3_LIBS to avoid the need to call pkg-config. 14807See the pkg-config man page for more details." "$LINENO" 5 14808elif test $pkg_failed = untried; then 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14810$as_echo "no" >&6; } 14811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14813as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14814is in your PATH or set the PKG_CONFIG environment variable to the full 14815path to pkg-config. 14816 14817Alternatively, you may set the environment variables SQLITE3_CFLAGS 14818and SQLITE3_LIBS to avoid the need to call pkg-config. 14819See the pkg-config man page for more details. 14820 14821To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14822See \`config.log' for more details" "$LINENO" 5; } 14823else 14824 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS 14825 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14827$as_echo "yes" >&6; } 14828 14829 PLUGINS="${PLUGINS} sqlite3" 14830 USING_SQL="yes" 14831 USING_SQLITE3="yes" 14832 PMACCT_CFLAGS="$PMACCT_CFLAGS $SQLITE3_CFLAGS" 14833 $as_echo "#define WITH_SQLITE3 1" >>confdefs.h 14834 14835 _save_LIBS="$LIBS" 14836 LIBS="$LIBS $SQLITE3_LIBS" 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_exec in -lsqlite3" >&5 14838$as_echo_n "checking for sqlite3_exec in -lsqlite3... " >&6; } 14839if ${ac_cv_lib_sqlite3_sqlite3_exec+:} false; then : 14840 $as_echo_n "(cached) " >&6 14841else 14842 ac_check_lib_save_LIBS=$LIBS 14843LIBS="-lsqlite3 $LIBS" 14844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14845/* end confdefs.h. */ 14846 14847/* Override any GCC internal prototype to avoid an error. 14848 Use char because int might match the return type of a GCC 14849 builtin and then its argument prototype would still apply. */ 14850#ifdef __cplusplus 14851extern "C" 14852#endif 14853char sqlite3_exec (); 14854int 14855main () 14856{ 14857return sqlite3_exec (); 14858 ; 14859 return 0; 14860} 14861_ACEOF 14862if ac_fn_c_try_link "$LINENO"; then : 14863 ac_cv_lib_sqlite3_sqlite3_exec=yes 14864else 14865 ac_cv_lib_sqlite3_sqlite3_exec=no 14866fi 14867rm -f core conftest.err conftest.$ac_objext \ 14868 conftest$ac_exeext conftest.$ac_ext 14869LIBS=$ac_check_lib_save_LIBS 14870fi 14871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_exec" >&5 14872$as_echo "$ac_cv_lib_sqlite3_sqlite3_exec" >&6; } 14873if test "x$ac_cv_lib_sqlite3_sqlite3_exec" = xyes; then : 14874 cat >>confdefs.h <<_ACEOF 14875#define HAVE_LIBSQLITE3 1 14876_ACEOF 14877 14878 LIBS="-lsqlite3 $LIBS" 14879 14880fi 14881 14882 LIBS="$_save_LIBS" 14883 _save_CFLAGS="$CFLAGS" 14884 CFLAGS="$CFLAGS $SQLITE3_CFLAGS" 14885 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 14886if test "x$ac_cv_header_sqlite3_h" = xyes; then : 14887 14888fi 14889 14890 14891 CFLAGS="$_save_CFLAGS" 14892 14893fi 14894 ;; 14895 no) 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897$as_echo "no" >&6; } 14898 ;; 14899 esac 14900else 14901 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14903$as_echo "no" >&6; } 14904 14905 14906fi 14907 14908 14909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable RabbitMQ/AMQP support" >&5 14910$as_echo_n "checking whether to enable RabbitMQ/AMQP support... " >&6; } 14911# Check whether --enable-rabbitmq was given. 14912if test "${enable_rabbitmq+set}" = set; then : 14913 enableval=$enable_rabbitmq; case "$enableval" in 14914 yes) 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14916$as_echo "yes" >&6; } 14917 14918pkg_failed=no 14919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RABBITMQ" >&5 14920$as_echo_n "checking for RABBITMQ... " >&6; } 14921 14922if test -n "$RABBITMQ_CFLAGS"; then 14923 pkg_cv_RABBITMQ_CFLAGS="$RABBITMQ_CFLAGS" 14924 elif test -n "$PKG_CONFIG"; then 14925 if test -n "$PKG_CONFIG" && \ 14926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librabbitmq >= 0.8.0\""; } >&5 14927 ($PKG_CONFIG --exists --print-errors "librabbitmq >= 0.8.0") 2>&5 14928 ac_status=$? 14929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14930 test $ac_status = 0; }; then 14931 pkg_cv_RABBITMQ_CFLAGS=`$PKG_CONFIG --cflags "librabbitmq >= 0.8.0" 2>/dev/null` 14932 test "x$?" != "x0" && pkg_failed=yes 14933else 14934 pkg_failed=yes 14935fi 14936 else 14937 pkg_failed=untried 14938fi 14939if test -n "$RABBITMQ_LIBS"; then 14940 pkg_cv_RABBITMQ_LIBS="$RABBITMQ_LIBS" 14941 elif test -n "$PKG_CONFIG"; then 14942 if test -n "$PKG_CONFIG" && \ 14943 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librabbitmq >= 0.8.0\""; } >&5 14944 ($PKG_CONFIG --exists --print-errors "librabbitmq >= 0.8.0") 2>&5 14945 ac_status=$? 14946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14947 test $ac_status = 0; }; then 14948 pkg_cv_RABBITMQ_LIBS=`$PKG_CONFIG --libs "librabbitmq >= 0.8.0" 2>/dev/null` 14949 test "x$?" != "x0" && pkg_failed=yes 14950else 14951 pkg_failed=yes 14952fi 14953 else 14954 pkg_failed=untried 14955fi 14956 14957 14958 14959if test $pkg_failed = yes; then 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14961$as_echo "no" >&6; } 14962 14963if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14964 _pkg_short_errors_supported=yes 14965else 14966 _pkg_short_errors_supported=no 14967fi 14968 if test $_pkg_short_errors_supported = yes; then 14969 RABBITMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librabbitmq >= 0.8.0" 2>&1` 14970 else 14971 RABBITMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librabbitmq >= 0.8.0" 2>&1` 14972 fi 14973 # Put the nasty error message in config.log where it belongs 14974 echo "$RABBITMQ_PKG_ERRORS" >&5 14975 14976 14977 as_fn_error $? "Missing RabbitMQ C API. Refer to: https://github.com/alanxz/rabbitmq-c/" "$LINENO" 5 14978 14979elif test $pkg_failed = untried; then 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14981$as_echo "no" >&6; } 14982 14983 as_fn_error $? "Missing RabbitMQ C API. Refer to: https://github.com/alanxz/rabbitmq-c/" "$LINENO" 5 14984 14985else 14986 RABBITMQ_CFLAGS=$pkg_cv_RABBITMQ_CFLAGS 14987 RABBITMQ_LIBS=$pkg_cv_RABBITMQ_LIBS 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14989$as_echo "yes" >&6; } 14990 14991 PLUGINS="${PLUGINS} rabbitmq" 14992 USING_RABBITMQ="yes" 14993 PMACCT_CFLAGS="$PMACCT_CFLAGS $RABBITMQ_CFLAGS" 14994 $as_echo "#define WITH_RABBITMQ 1" >>confdefs.h 14995 14996 _save_LIBS="$LIBS" 14997 LIBS="$LIBS $RABBITMQ_LIBS" 14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amqp_basic_publish in -lrabbitmq" >&5 14999$as_echo_n "checking for amqp_basic_publish in -lrabbitmq... " >&6; } 15000if ${ac_cv_lib_rabbitmq_amqp_basic_publish+:} false; then : 15001 $as_echo_n "(cached) " >&6 15002else 15003 ac_check_lib_save_LIBS=$LIBS 15004LIBS="-lrabbitmq $LIBS" 15005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15006/* end confdefs.h. */ 15007 15008/* Override any GCC internal prototype to avoid an error. 15009 Use char because int might match the return type of a GCC 15010 builtin and then its argument prototype would still apply. */ 15011#ifdef __cplusplus 15012extern "C" 15013#endif 15014char amqp_basic_publish (); 15015int 15016main () 15017{ 15018return amqp_basic_publish (); 15019 ; 15020 return 0; 15021} 15022_ACEOF 15023if ac_fn_c_try_link "$LINENO"; then : 15024 ac_cv_lib_rabbitmq_amqp_basic_publish=yes 15025else 15026 ac_cv_lib_rabbitmq_amqp_basic_publish=no 15027fi 15028rm -f core conftest.err conftest.$ac_objext \ 15029 conftest$ac_exeext conftest.$ac_ext 15030LIBS=$ac_check_lib_save_LIBS 15031fi 15032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rabbitmq_amqp_basic_publish" >&5 15033$as_echo "$ac_cv_lib_rabbitmq_amqp_basic_publish" >&6; } 15034if test "x$ac_cv_lib_rabbitmq_amqp_basic_publish" = xyes; then : 15035 cat >>confdefs.h <<_ACEOF 15036#define HAVE_LIBRABBITMQ 1 15037_ACEOF 15038 15039 LIBS="-lrabbitmq $LIBS" 15040 15041fi 15042 15043 LIBS="$_save_LIBS" 15044 _save_CFLAGS="$CFLAGS" 15045 CFLAGS="$CFLAGS $RABBITMQ_CFLAGS" 15046 ac_fn_c_check_header_mongrel "$LINENO" "amqp.h" "ac_cv_header_amqp_h" "$ac_includes_default" 15047if test "x$ac_cv_header_amqp_h" = xyes; then : 15048 15049fi 15050 15051 15052 CFLAGS="$_save_CFLAGS" 15053 15054fi 15055 ;; 15056 no) 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15058$as_echo "no" >&6; } 15059 ;; 15060 esac 15061else 15062 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15064$as_echo "no" >&6; } 15065 15066 15067fi 15068 15069 15070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ZeroMQ support" >&5 15071$as_echo_n "checking whether to enable ZeroMQ support... " >&6; } 15072# Check whether --enable-zmq was given. 15073if test "${enable_zmq+set}" = set; then : 15074 enableval=$enable_zmq; case "$enableval" in 15075 yes) 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15077$as_echo "yes" >&6; } 15078 15079pkg_failed=no 15080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZMQ" >&5 15081$as_echo_n "checking for ZMQ... " >&6; } 15082 15083if test -n "$ZMQ_CFLAGS"; then 15084 pkg_cv_ZMQ_CFLAGS="$ZMQ_CFLAGS" 15085 elif test -n "$PKG_CONFIG"; then 15086 if test -n "$PKG_CONFIG" && \ 15087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmq >= 4.2.0\""; } >&5 15088 ($PKG_CONFIG --exists --print-errors "libzmq >= 4.2.0") 2>&5 15089 ac_status=$? 15090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15091 test $ac_status = 0; }; then 15092 pkg_cv_ZMQ_CFLAGS=`$PKG_CONFIG --cflags "libzmq >= 4.2.0" 2>/dev/null` 15093 test "x$?" != "x0" && pkg_failed=yes 15094else 15095 pkg_failed=yes 15096fi 15097 else 15098 pkg_failed=untried 15099fi 15100if test -n "$ZMQ_LIBS"; then 15101 pkg_cv_ZMQ_LIBS="$ZMQ_LIBS" 15102 elif test -n "$PKG_CONFIG"; then 15103 if test -n "$PKG_CONFIG" && \ 15104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmq >= 4.2.0\""; } >&5 15105 ($PKG_CONFIG --exists --print-errors "libzmq >= 4.2.0") 2>&5 15106 ac_status=$? 15107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15108 test $ac_status = 0; }; then 15109 pkg_cv_ZMQ_LIBS=`$PKG_CONFIG --libs "libzmq >= 4.2.0" 2>/dev/null` 15110 test "x$?" != "x0" && pkg_failed=yes 15111else 15112 pkg_failed=yes 15113fi 15114 else 15115 pkg_failed=untried 15116fi 15117 15118 15119 15120if test $pkg_failed = yes; then 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15122$as_echo "no" >&6; } 15123 15124if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15125 _pkg_short_errors_supported=yes 15126else 15127 _pkg_short_errors_supported=no 15128fi 15129 if test $_pkg_short_errors_supported = yes; then 15130 ZMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzmq >= 4.2.0" 2>&1` 15131 else 15132 ZMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzmq >= 4.2.0" 2>&1` 15133 fi 15134 # Put the nasty error message in config.log where it belongs 15135 echo "$ZMQ_PKG_ERRORS" >&5 15136 15137 15138 as_fn_error $? "Missing ZeroMQ. Refer to: http://zeromq.org/intro:get-the-software" "$LINENO" 5 15139 15140elif test $pkg_failed = untried; then 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15142$as_echo "no" >&6; } 15143 15144 as_fn_error $? "Missing ZeroMQ. Refer to: http://zeromq.org/intro:get-the-software" "$LINENO" 5 15145 15146else 15147 ZMQ_CFLAGS=$pkg_cv_ZMQ_CFLAGS 15148 ZMQ_LIBS=$pkg_cv_ZMQ_LIBS 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15150$as_echo "yes" >&6; } 15151 15152 SUPPORTS="${SUPPORTS} zmq" 15153 USING_ZMQ="yes" 15154 PMACCT_CFLAGS="$PMACCT_CFLAGS $ZMQ_CFLAGS" 15155 $as_echo "#define WITH_ZMQ 1" >>confdefs.h 15156 15157 _save_LIBS="$LIBS" 15158 LIBS="$LIBS $ZMQ_LIBS" 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zmq_send in -lzmq" >&5 15160$as_echo_n "checking for zmq_send in -lzmq... " >&6; } 15161if ${ac_cv_lib_zmq_zmq_send+:} false; then : 15162 $as_echo_n "(cached) " >&6 15163else 15164 ac_check_lib_save_LIBS=$LIBS 15165LIBS="-lzmq $LIBS" 15166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15167/* end confdefs.h. */ 15168 15169/* Override any GCC internal prototype to avoid an error. 15170 Use char because int might match the return type of a GCC 15171 builtin and then its argument prototype would still apply. */ 15172#ifdef __cplusplus 15173extern "C" 15174#endif 15175char zmq_send (); 15176int 15177main () 15178{ 15179return zmq_send (); 15180 ; 15181 return 0; 15182} 15183_ACEOF 15184if ac_fn_c_try_link "$LINENO"; then : 15185 ac_cv_lib_zmq_zmq_send=yes 15186else 15187 ac_cv_lib_zmq_zmq_send=no 15188fi 15189rm -f core conftest.err conftest.$ac_objext \ 15190 conftest$ac_exeext conftest.$ac_ext 15191LIBS=$ac_check_lib_save_LIBS 15192fi 15193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zmq_zmq_send" >&5 15194$as_echo "$ac_cv_lib_zmq_zmq_send" >&6; } 15195if test "x$ac_cv_lib_zmq_zmq_send" = xyes; then : 15196 cat >>confdefs.h <<_ACEOF 15197#define HAVE_LIBZMQ 1 15198_ACEOF 15199 15200 LIBS="-lzmq $LIBS" 15201 15202fi 15203 15204 LIBS="$_save_LIBS" 15205 _save_CFLAGS="$CFLAGS" 15206 CFLAGS="$CFLAGS $ZMQ_CFLAGS" 15207 ac_fn_c_check_header_mongrel "$LINENO" "zmq.h" "ac_cv_header_zmq_h" "$ac_includes_default" 15208if test "x$ac_cv_header_zmq_h" = xyes; then : 15209 15210fi 15211 15212 15213 CFLAGS="$_save_CFLAGS" 15214 15215fi 15216 ;; 15217 no) 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15219$as_echo "no" >&6; } 15220 ;; 15221 esac 15222else 15223 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15225$as_echo "no" >&6; } 15226 15227 15228fi 15229 15230 15231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Kafka support" >&5 15232$as_echo_n "checking whether to enable Kafka support... " >&6; } 15233# Check whether --enable-kafka was given. 15234if test "${enable_kafka+set}" = set; then : 15235 enableval=$enable_kafka; case "$enableval" in 15236 yes) 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15238$as_echo "yes" >&6; } 15239 15240pkg_failed=no 15241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KAFKA" >&5 15242$as_echo_n "checking for KAFKA... " >&6; } 15243 15244if test -n "$KAFKA_CFLAGS"; then 15245 pkg_cv_KAFKA_CFLAGS="$KAFKA_CFLAGS" 15246 elif test -n "$PKG_CONFIG"; then 15247 if test -n "$PKG_CONFIG" && \ 15248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= 0.9.2\""; } >&5 15249 ($PKG_CONFIG --exists --print-errors "rdkafka >= 0.9.2") 2>&5 15250 ac_status=$? 15251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15252 test $ac_status = 0; }; then 15253 pkg_cv_KAFKA_CFLAGS=`$PKG_CONFIG --cflags "rdkafka >= 0.9.2" 2>/dev/null` 15254 test "x$?" != "x0" && pkg_failed=yes 15255else 15256 pkg_failed=yes 15257fi 15258 else 15259 pkg_failed=untried 15260fi 15261if test -n "$KAFKA_LIBS"; then 15262 pkg_cv_KAFKA_LIBS="$KAFKA_LIBS" 15263 elif test -n "$PKG_CONFIG"; then 15264 if test -n "$PKG_CONFIG" && \ 15265 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"rdkafka >= 0.9.2\""; } >&5 15266 ($PKG_CONFIG --exists --print-errors "rdkafka >= 0.9.2") 2>&5 15267 ac_status=$? 15268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15269 test $ac_status = 0; }; then 15270 pkg_cv_KAFKA_LIBS=`$PKG_CONFIG --libs "rdkafka >= 0.9.2" 2>/dev/null` 15271 test "x$?" != "x0" && pkg_failed=yes 15272else 15273 pkg_failed=yes 15274fi 15275 else 15276 pkg_failed=untried 15277fi 15278 15279 15280 15281if test $pkg_failed = yes; then 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15283$as_echo "no" >&6; } 15284 15285if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15286 _pkg_short_errors_supported=yes 15287else 15288 _pkg_short_errors_supported=no 15289fi 15290 if test $_pkg_short_errors_supported = yes; then 15291 KAFKA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "rdkafka >= 0.9.2" 2>&1` 15292 else 15293 KAFKA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "rdkafka >= 0.9.2" 2>&1` 15294 fi 15295 # Put the nasty error message in config.log where it belongs 15296 echo "$KAFKA_PKG_ERRORS" >&5 15297 15298 15299 as_fn_error $? "Missing librdkafka. Refer to: https://github.com/edenhill/librdkafka/" "$LINENO" 5 15300 15301elif test $pkg_failed = untried; then 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15303$as_echo "no" >&6; } 15304 15305 as_fn_error $? "Missing librdkafka. Refer to: https://github.com/edenhill/librdkafka/" "$LINENO" 5 15306 15307else 15308 KAFKA_CFLAGS=$pkg_cv_KAFKA_CFLAGS 15309 KAFKA_LIBS=$pkg_cv_KAFKA_LIBS 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15311$as_echo "yes" >&6; } 15312 15313 PLUGINS="${PLUGINS} kafka" 15314 USING_KAFKA="yes" 15315 PMACCT_CFLAGS="$PMACCT_CFLAGS $KAFKA_CFLAGS" 15316 $as_echo "#define WITH_KAFKA 1" >>confdefs.h 15317 15318 _save_LIBS="$LIBS" 15319 LIBS="$LIBS $KAFKA_LIBS" 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_produce in -lrdkafka" >&5 15321$as_echo_n "checking for rd_kafka_produce in -lrdkafka... " >&6; } 15322if ${ac_cv_lib_rdkafka_rd_kafka_produce+:} false; then : 15323 $as_echo_n "(cached) " >&6 15324else 15325 ac_check_lib_save_LIBS=$LIBS 15326LIBS="-lrdkafka $LIBS" 15327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15328/* end confdefs.h. */ 15329 15330/* Override any GCC internal prototype to avoid an error. 15331 Use char because int might match the return type of a GCC 15332 builtin and then its argument prototype would still apply. */ 15333#ifdef __cplusplus 15334extern "C" 15335#endif 15336char rd_kafka_produce (); 15337int 15338main () 15339{ 15340return rd_kafka_produce (); 15341 ; 15342 return 0; 15343} 15344_ACEOF 15345if ac_fn_c_try_link "$LINENO"; then : 15346 ac_cv_lib_rdkafka_rd_kafka_produce=yes 15347else 15348 ac_cv_lib_rdkafka_rd_kafka_produce=no 15349fi 15350rm -f core conftest.err conftest.$ac_objext \ 15351 conftest$ac_exeext conftest.$ac_ext 15352LIBS=$ac_check_lib_save_LIBS 15353fi 15354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_produce" >&5 15355$as_echo "$ac_cv_lib_rdkafka_rd_kafka_produce" >&6; } 15356if test "x$ac_cv_lib_rdkafka_rd_kafka_produce" = xyes; then : 15357 cat >>confdefs.h <<_ACEOF 15358#define HAVE_LIBRDKAFKA 1 15359_ACEOF 15360 15361 LIBS="-lrdkafka $LIBS" 15362 15363fi 15364 15365 LIBS="$_save_LIBS" 15366 _save_CFLAGS="$CFLAGS" 15367 CFLAGS="$CFLAGS $KAFKA_CFLAGS" 15368 ac_fn_c_check_header_mongrel "$LINENO" "librdkafka/rdkafka.h" "ac_cv_header_librdkafka_rdkafka_h" "$ac_includes_default" 15369if test "x$ac_cv_header_librdkafka_rdkafka_h" = xyes; then : 15370 15371fi 15372 15373 15374 CFLAGS="$_save_CFLAGS" 15375 15376fi 15377 ;; 15378 no) 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15380$as_echo "no" >&6; } 15381 ;; 15382 esac 15383else 15384 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15386$as_echo "no" >&6; } 15387 15388 15389fi 15390 15391 15392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Redis support" >&5 15393$as_echo_n "checking whether to enable Redis support... " >&6; } 15394# Check whether --enable-redis was given. 15395if test "${enable_redis+set}" = set; then : 15396 enableval=$enable_redis; case "$enableval" in 15397 yes) 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15399$as_echo "yes" >&6; } 15400 15401pkg_failed=no 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for REDIS" >&5 15403$as_echo_n "checking for REDIS... " >&6; } 15404 15405if test -n "$REDIS_CFLAGS"; then 15406 pkg_cv_REDIS_CFLAGS="$REDIS_CFLAGS" 15407 elif test -n "$PKG_CONFIG"; then 15408 if test -n "$PKG_CONFIG" && \ 15409 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis >= 0.13.0\""; } >&5 15410 ($PKG_CONFIG --exists --print-errors "hiredis >= 0.13.0") 2>&5 15411 ac_status=$? 15412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15413 test $ac_status = 0; }; then 15414 pkg_cv_REDIS_CFLAGS=`$PKG_CONFIG --cflags "hiredis >= 0.13.0" 2>/dev/null` 15415 test "x$?" != "x0" && pkg_failed=yes 15416else 15417 pkg_failed=yes 15418fi 15419 else 15420 pkg_failed=untried 15421fi 15422if test -n "$REDIS_LIBS"; then 15423 pkg_cv_REDIS_LIBS="$REDIS_LIBS" 15424 elif test -n "$PKG_CONFIG"; then 15425 if test -n "$PKG_CONFIG" && \ 15426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hiredis >= 0.13.0\""; } >&5 15427 ($PKG_CONFIG --exists --print-errors "hiredis >= 0.13.0") 2>&5 15428 ac_status=$? 15429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15430 test $ac_status = 0; }; then 15431 pkg_cv_REDIS_LIBS=`$PKG_CONFIG --libs "hiredis >= 0.13.0" 2>/dev/null` 15432 test "x$?" != "x0" && pkg_failed=yes 15433else 15434 pkg_failed=yes 15435fi 15436 else 15437 pkg_failed=untried 15438fi 15439 15440 15441 15442if test $pkg_failed = yes; then 15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15444$as_echo "no" >&6; } 15445 15446if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15447 _pkg_short_errors_supported=yes 15448else 15449 _pkg_short_errors_supported=no 15450fi 15451 if test $_pkg_short_errors_supported = yes; then 15452 REDIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hiredis >= 0.13.0" 2>&1` 15453 else 15454 REDIS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hiredis >= 0.13.0" 2>&1` 15455 fi 15456 # Put the nasty error message in config.log where it belongs 15457 echo "$REDIS_PKG_ERRORS" >&5 15458 15459 as_fn_error $? "Package requirements (hiredis >= 0.13.0) were not met: 15460 15461$REDIS_PKG_ERRORS 15462 15463Consider adjusting the PKG_CONFIG_PATH environment variable if you 15464installed software in a non-standard prefix. 15465 15466Alternatively, you may set the environment variables REDIS_CFLAGS 15467and REDIS_LIBS to avoid the need to call pkg-config. 15468See the pkg-config man page for more details." "$LINENO" 5 15469elif test $pkg_failed = untried; then 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15471$as_echo "no" >&6; } 15472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15474as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15475is in your PATH or set the PKG_CONFIG environment variable to the full 15476path to pkg-config. 15477 15478Alternatively, you may set the environment variables REDIS_CFLAGS 15479and REDIS_LIBS to avoid the need to call pkg-config. 15480See the pkg-config man page for more details. 15481 15482To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15483See \`config.log' for more details" "$LINENO" 5; } 15484else 15485 REDIS_CFLAGS=$pkg_cv_REDIS_CFLAGS 15486 REDIS_LIBS=$pkg_cv_REDIS_LIBS 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15488$as_echo "yes" >&6; } 15489 15490 SUPPORTS="${SUPPORTS} redis" 15491 USING_REDIS="yes" 15492 PMACCT_CFLAGS="$PMACCT_CFLAGS $REDIS_CFLAGS" 15493 $as_echo "#define WITH_REDIS 1" >>confdefs.h 15494 15495 _save_LIBS="$LIBS" 15496 LIBS="$LIBS $REDIS_LIBS" 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redisConnect in -lhiredis" >&5 15498$as_echo_n "checking for redisConnect in -lhiredis... " >&6; } 15499if ${ac_cv_lib_hiredis_redisConnect+:} false; then : 15500 $as_echo_n "(cached) " >&6 15501else 15502 ac_check_lib_save_LIBS=$LIBS 15503LIBS="-lhiredis $LIBS" 15504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15505/* end confdefs.h. */ 15506 15507/* Override any GCC internal prototype to avoid an error. 15508 Use char because int might match the return type of a GCC 15509 builtin and then its argument prototype would still apply. */ 15510#ifdef __cplusplus 15511extern "C" 15512#endif 15513char redisConnect (); 15514int 15515main () 15516{ 15517return redisConnect (); 15518 ; 15519 return 0; 15520} 15521_ACEOF 15522if ac_fn_c_try_link "$LINENO"; then : 15523 ac_cv_lib_hiredis_redisConnect=yes 15524else 15525 ac_cv_lib_hiredis_redisConnect=no 15526fi 15527rm -f core conftest.err conftest.$ac_objext \ 15528 conftest$ac_exeext conftest.$ac_ext 15529LIBS=$ac_check_lib_save_LIBS 15530fi 15531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_redisConnect" >&5 15532$as_echo "$ac_cv_lib_hiredis_redisConnect" >&6; } 15533if test "x$ac_cv_lib_hiredis_redisConnect" = xyes; then : 15534 cat >>confdefs.h <<_ACEOF 15535#define HAVE_LIBHIREDIS 1 15536_ACEOF 15537 15538 LIBS="-lhiredis $LIBS" 15539 15540fi 15541 15542 LIBS="$_save_LIBS" 15543 _save_CFLAGS="$CFLAGS" 15544 CFLAGS="$CFLAGS $REDIS_CFLAGS" 15545 ac_fn_c_check_header_mongrel "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default" 15546if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then : 15547 15548fi 15549 15550 15551 CFLAGS="$_save_CFLAGS" 15552 15553fi 15554 ;; 15555 no) 15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15557$as_echo "no" >&6; } 15558 ;; 15559 esac 15560else 15561 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15563$as_echo "no" >&6; } 15564 15565 15566fi 15567 15568 15569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GeoIP support" >&5 15570$as_echo_n "checking whether to enable GeoIP support... " >&6; } 15571# Check whether --enable-geoip was given. 15572if test "${enable_geoip+set}" = set; then : 15573 enableval=$enable_geoip; case "$enableval" in 15574 yes) 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15576$as_echo "yes" >&6; } 15577 15578pkg_failed=no 15579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOIP" >&5 15580$as_echo_n "checking for GEOIP... " >&6; } 15581 15582if test -n "$GEOIP_CFLAGS"; then 15583 pkg_cv_GEOIP_CFLAGS="$GEOIP_CFLAGS" 15584 elif test -n "$PKG_CONFIG"; then 15585 if test -n "$PKG_CONFIG" && \ 15586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip >= 1.0.0\""; } >&5 15587 ($PKG_CONFIG --exists --print-errors "geoip >= 1.0.0") 2>&5 15588 ac_status=$? 15589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15590 test $ac_status = 0; }; then 15591 pkg_cv_GEOIP_CFLAGS=`$PKG_CONFIG --cflags "geoip >= 1.0.0" 2>/dev/null` 15592 test "x$?" != "x0" && pkg_failed=yes 15593else 15594 pkg_failed=yes 15595fi 15596 else 15597 pkg_failed=untried 15598fi 15599if test -n "$GEOIP_LIBS"; then 15600 pkg_cv_GEOIP_LIBS="$GEOIP_LIBS" 15601 elif test -n "$PKG_CONFIG"; then 15602 if test -n "$PKG_CONFIG" && \ 15603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"geoip >= 1.0.0\""; } >&5 15604 ($PKG_CONFIG --exists --print-errors "geoip >= 1.0.0") 2>&5 15605 ac_status=$? 15606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15607 test $ac_status = 0; }; then 15608 pkg_cv_GEOIP_LIBS=`$PKG_CONFIG --libs "geoip >= 1.0.0" 2>/dev/null` 15609 test "x$?" != "x0" && pkg_failed=yes 15610else 15611 pkg_failed=yes 15612fi 15613 else 15614 pkg_failed=untried 15615fi 15616 15617 15618 15619if test $pkg_failed = yes; then 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15621$as_echo "no" >&6; } 15622 15623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15624 _pkg_short_errors_supported=yes 15625else 15626 _pkg_short_errors_supported=no 15627fi 15628 if test $_pkg_short_errors_supported = yes; then 15629 GEOIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "geoip >= 1.0.0" 2>&1` 15630 else 15631 GEOIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "geoip >= 1.0.0" 2>&1` 15632 fi 15633 # Put the nasty error message in config.log where it belongs 15634 echo "$GEOIP_PKG_ERRORS" >&5 15635 15636 as_fn_error $? "Package requirements (geoip >= 1.0.0) were not met: 15637 15638$GEOIP_PKG_ERRORS 15639 15640Consider adjusting the PKG_CONFIG_PATH environment variable if you 15641installed software in a non-standard prefix. 15642 15643Alternatively, you may set the environment variables GEOIP_CFLAGS 15644and GEOIP_LIBS to avoid the need to call pkg-config. 15645See the pkg-config man page for more details." "$LINENO" 5 15646elif test $pkg_failed = untried; then 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15648$as_echo "no" >&6; } 15649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15651as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15652is in your PATH or set the PKG_CONFIG environment variable to the full 15653path to pkg-config. 15654 15655Alternatively, you may set the environment variables GEOIP_CFLAGS 15656and GEOIP_LIBS to avoid the need to call pkg-config. 15657See the pkg-config man page for more details. 15658 15659To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15660See \`config.log' for more details" "$LINENO" 5; } 15661else 15662 GEOIP_CFLAGS=$pkg_cv_GEOIP_CFLAGS 15663 GEOIP_LIBS=$pkg_cv_GEOIP_LIBS 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15665$as_echo "yes" >&6; } 15666 15667 SUPPORTS="${SUPPORTS} geoip" 15668 USING_MMGEOIP="yes" 15669 PMACCT_CFLAGS="$PMACCT_CFLAGS $GEOIP_CFLAGS" 15670 $as_echo "#define WITH_GEOIP 1" >>confdefs.h 15671 15672 15673fi 15674 ;; 15675 no) 15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15677$as_echo "no" >&6; } 15678 ;; 15679 esac 15680else 15681 15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15683$as_echo "no" >&6; } 15684 15685 15686fi 15687 15688 15689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable GeoIPv2 (libmaxminddb) support" >&5 15690$as_echo_n "checking whether to enable GeoIPv2 (libmaxminddb) support... " >&6; } 15691# Check whether --enable-geoipv2 was given. 15692if test "${enable_geoipv2+set}" = set; then : 15693 enableval=$enable_geoipv2; case "$enableval" in 15694 yes) 15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15696$as_echo "yes" >&6; } 15697 15698pkg_failed=no 15699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEOIPV2" >&5 15700$as_echo_n "checking for GEOIPV2... " >&6; } 15701 15702if test -n "$GEOIPV2_CFLAGS"; then 15703 pkg_cv_GEOIPV2_CFLAGS="$GEOIPV2_CFLAGS" 15704 elif test -n "$PKG_CONFIG"; then 15705 if test -n "$PKG_CONFIG" && \ 15706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb >= 1.2\""; } >&5 15707 ($PKG_CONFIG --exists --print-errors "libmaxminddb >= 1.2") 2>&5 15708 ac_status=$? 15709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15710 test $ac_status = 0; }; then 15711 pkg_cv_GEOIPV2_CFLAGS=`$PKG_CONFIG --cflags "libmaxminddb >= 1.2" 2>/dev/null` 15712 test "x$?" != "x0" && pkg_failed=yes 15713else 15714 pkg_failed=yes 15715fi 15716 else 15717 pkg_failed=untried 15718fi 15719if test -n "$GEOIPV2_LIBS"; then 15720 pkg_cv_GEOIPV2_LIBS="$GEOIPV2_LIBS" 15721 elif test -n "$PKG_CONFIG"; then 15722 if test -n "$PKG_CONFIG" && \ 15723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmaxminddb >= 1.2\""; } >&5 15724 ($PKG_CONFIG --exists --print-errors "libmaxminddb >= 1.2") 2>&5 15725 ac_status=$? 15726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15727 test $ac_status = 0; }; then 15728 pkg_cv_GEOIPV2_LIBS=`$PKG_CONFIG --libs "libmaxminddb >= 1.2" 2>/dev/null` 15729 test "x$?" != "x0" && pkg_failed=yes 15730else 15731 pkg_failed=yes 15732fi 15733 else 15734 pkg_failed=untried 15735fi 15736 15737 15738 15739if test $pkg_failed = yes; then 15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15741$as_echo "no" >&6; } 15742 15743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15744 _pkg_short_errors_supported=yes 15745else 15746 _pkg_short_errors_supported=no 15747fi 15748 if test $_pkg_short_errors_supported = yes; then 15749 GEOIPV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmaxminddb >= 1.2" 2>&1` 15750 else 15751 GEOIPV2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmaxminddb >= 1.2" 2>&1` 15752 fi 15753 # Put the nasty error message in config.log where it belongs 15754 echo "$GEOIPV2_PKG_ERRORS" >&5 15755 15756 15757 as_fn_error $? "Missing Maxmind libmaxminddb C library. Refer to: http://www.maxmind.com/download/geoip/api/c/" "$LINENO" 5 15758 15759elif test $pkg_failed = untried; then 15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15761$as_echo "no" >&6; } 15762 15763 as_fn_error $? "Missing Maxmind libmaxminddb C library. Refer to: http://www.maxmind.com/download/geoip/api/c/" "$LINENO" 5 15764 15765else 15766 GEOIPV2_CFLAGS=$pkg_cv_GEOIPV2_CFLAGS 15767 GEOIPV2_LIBS=$pkg_cv_GEOIPV2_LIBS 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15769$as_echo "yes" >&6; } 15770 15771 SUPPORTS="${SUPPORTS} geoipv2" 15772 USING_MMGEOIPV2="yes" 15773 PMACCT_CFLAGS="$PMACCT_CFLAGS $GEOIPV2_CFLAGS" 15774 $as_echo "#define WITH_GEOIPV2 1" >>confdefs.h 15775 15776 _save_LIBS="$LIBS" 15777 LIBS="$LIBS $GEOIPV2_LIBS" 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMDB_open in -lmaxminddb" >&5 15779$as_echo_n "checking for MMDB_open in -lmaxminddb... " >&6; } 15780if ${ac_cv_lib_maxminddb_MMDB_open+:} false; then : 15781 $as_echo_n "(cached) " >&6 15782else 15783 ac_check_lib_save_LIBS=$LIBS 15784LIBS="-lmaxminddb $LIBS" 15785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15786/* end confdefs.h. */ 15787 15788/* Override any GCC internal prototype to avoid an error. 15789 Use char because int might match the return type of a GCC 15790 builtin and then its argument prototype would still apply. */ 15791#ifdef __cplusplus 15792extern "C" 15793#endif 15794char MMDB_open (); 15795int 15796main () 15797{ 15798return MMDB_open (); 15799 ; 15800 return 0; 15801} 15802_ACEOF 15803if ac_fn_c_try_link "$LINENO"; then : 15804 ac_cv_lib_maxminddb_MMDB_open=yes 15805else 15806 ac_cv_lib_maxminddb_MMDB_open=no 15807fi 15808rm -f core conftest.err conftest.$ac_objext \ 15809 conftest$ac_exeext conftest.$ac_ext 15810LIBS=$ac_check_lib_save_LIBS 15811fi 15812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_maxminddb_MMDB_open" >&5 15813$as_echo "$ac_cv_lib_maxminddb_MMDB_open" >&6; } 15814if test "x$ac_cv_lib_maxminddb_MMDB_open" = xyes; then : 15815 cat >>confdefs.h <<_ACEOF 15816#define HAVE_LIBMAXMINDDB 1 15817_ACEOF 15818 15819 LIBS="-lmaxminddb $LIBS" 15820 15821fi 15822 15823 LIBS="$_save_LIBS" 15824 _save_CFLAGS="$CFLAGS" 15825 CFLAGS="$CFLAGS $GEOIPV2_CFLAGS" 15826 ac_fn_c_check_header_mongrel "$LINENO" "maxminddb.h" "ac_cv_header_maxminddb_h" "$ac_includes_default" 15827if test "x$ac_cv_header_maxminddb_h" = xyes; then : 15828 15829fi 15830 15831 15832 CFLAGS="$_save_CFLAGS" 15833 15834fi 15835 ;; 15836 no) 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15838$as_echo "no" >&6; } 15839 ;; 15840 esac 15841else 15842 15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15844$as_echo "no" >&6; } 15845 15846 15847fi 15848 15849 15850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Jansson support" >&5 15851$as_echo_n "checking whether to enable Jansson support... " >&6; } 15852# Check whether --enable-jansson was given. 15853if test "${enable_jansson+set}" = set; then : 15854 enableval=$enable_jansson; case "$enableval" in 15855 yes) 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15857$as_echo "yes" >&6; } 15858 15859pkg_failed=no 15860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JANSSON" >&5 15861$as_echo_n "checking for JANSSON... " >&6; } 15862 15863if test -n "$JANSSON_CFLAGS"; then 15864 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS" 15865 elif test -n "$PKG_CONFIG"; then 15866 if test -n "$PKG_CONFIG" && \ 15867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5 15868 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5 15869 ac_status=$? 15870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15871 test $ac_status = 0; }; then 15872 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.5" 2>/dev/null` 15873 test "x$?" != "x0" && pkg_failed=yes 15874else 15875 pkg_failed=yes 15876fi 15877 else 15878 pkg_failed=untried 15879fi 15880if test -n "$JANSSON_LIBS"; then 15881 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS" 15882 elif test -n "$PKG_CONFIG"; then 15883 if test -n "$PKG_CONFIG" && \ 15884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.5\""; } >&5 15885 ($PKG_CONFIG --exists --print-errors "jansson >= 2.5") 2>&5 15886 ac_status=$? 15887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15888 test $ac_status = 0; }; then 15889 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.5" 2>/dev/null` 15890 test "x$?" != "x0" && pkg_failed=yes 15891else 15892 pkg_failed=yes 15893fi 15894 else 15895 pkg_failed=untried 15896fi 15897 15898 15899 15900if test $pkg_failed = yes; then 15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15902$as_echo "no" >&6; } 15903 15904if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15905 _pkg_short_errors_supported=yes 15906else 15907 _pkg_short_errors_supported=no 15908fi 15909 if test $_pkg_short_errors_supported = yes; then 15910 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.5" 2>&1` 15911 else 15912 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.5" 2>&1` 15913 fi 15914 # Put the nasty error message in config.log where it belongs 15915 echo "$JANSSON_PKG_ERRORS" >&5 15916 15917 15918 as_fn_error $? "Missing libjansson. Refer to: http://www.digip.org/jansson/" "$LINENO" 5 15919 15920elif test $pkg_failed = untried; then 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15922$as_echo "no" >&6; } 15923 15924 as_fn_error $? "Missing libjansson. Refer to: http://www.digip.org/jansson/" "$LINENO" 5 15925 15926else 15927 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS 15928 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15930$as_echo "yes" >&6; } 15931 15932 SUPPORTS="${SUPPORTS} jansson" 15933 USING_JANSSON="yes" 15934 PMACCT_CFLAGS="$PMACCT_CFLAGS $JANSSON_CFLAGS" 15935 $as_echo "#define WITH_JANSSON 1" >>confdefs.h 15936 15937 _save_LIBS="$LIBS" 15938 LIBS="$LIBS $JANSSON_LIBS" 15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_object in -ljansson" >&5 15940$as_echo_n "checking for json_object in -ljansson... " >&6; } 15941if ${ac_cv_lib_jansson_json_object+:} false; then : 15942 $as_echo_n "(cached) " >&6 15943else 15944 ac_check_lib_save_LIBS=$LIBS 15945LIBS="-ljansson $LIBS" 15946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15947/* end confdefs.h. */ 15948 15949/* Override any GCC internal prototype to avoid an error. 15950 Use char because int might match the return type of a GCC 15951 builtin and then its argument prototype would still apply. */ 15952#ifdef __cplusplus 15953extern "C" 15954#endif 15955char json_object (); 15956int 15957main () 15958{ 15959return json_object (); 15960 ; 15961 return 0; 15962} 15963_ACEOF 15964if ac_fn_c_try_link "$LINENO"; then : 15965 ac_cv_lib_jansson_json_object=yes 15966else 15967 ac_cv_lib_jansson_json_object=no 15968fi 15969rm -f core conftest.err conftest.$ac_objext \ 15970 conftest$ac_exeext conftest.$ac_ext 15971LIBS=$ac_check_lib_save_LIBS 15972fi 15973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_object" >&5 15974$as_echo "$ac_cv_lib_jansson_json_object" >&6; } 15975if test "x$ac_cv_lib_jansson_json_object" = xyes; then : 15976 cat >>confdefs.h <<_ACEOF 15977#define HAVE_LIBJANSSON 1 15978_ACEOF 15979 15980 LIBS="-ljansson $LIBS" 15981 15982fi 15983 15984 LIBS="$_save_LIBS" 15985 _save_CFLAGS="$CFLAGS" 15986 CFLAGS="$CFLAGS $JANSSON_CFLAGS" 15987 ac_fn_c_check_header_mongrel "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default" 15988if test "x$ac_cv_header_jansson_h" = xyes; then : 15989 15990fi 15991 15992 15993 CFLAGS="$_save_CFLAGS" 15994 15995fi 15996 ;; 15997 no) 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15999$as_echo "no" >&6; } 16000 ;; 16001 esac 16002else 16003 16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16005$as_echo "no" >&6; } 16006 16007 16008fi 16009 16010 16011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Avro support" >&5 16012$as_echo_n "checking whether to enable Avro support... " >&6; } 16013# Check whether --enable-avro was given. 16014if test "${enable_avro+set}" = set; then : 16015 enableval=$enable_avro; case "$enableval" in 16016 yes) 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16018$as_echo "yes" >&6; } 16019 16020pkg_failed=no 16021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVRO" >&5 16022$as_echo_n "checking for AVRO... " >&6; } 16023 16024if test -n "$AVRO_CFLAGS"; then 16025 pkg_cv_AVRO_CFLAGS="$AVRO_CFLAGS" 16026 elif test -n "$PKG_CONFIG"; then 16027 if test -n "$PKG_CONFIG" && \ 16028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avro-c >= 1.8\""; } >&5 16029 ($PKG_CONFIG --exists --print-errors "avro-c >= 1.8") 2>&5 16030 ac_status=$? 16031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16032 test $ac_status = 0; }; then 16033 pkg_cv_AVRO_CFLAGS=`$PKG_CONFIG --cflags "avro-c >= 1.8" 2>/dev/null` 16034 test "x$?" != "x0" && pkg_failed=yes 16035else 16036 pkg_failed=yes 16037fi 16038 else 16039 pkg_failed=untried 16040fi 16041if test -n "$AVRO_LIBS"; then 16042 pkg_cv_AVRO_LIBS="$AVRO_LIBS" 16043 elif test -n "$PKG_CONFIG"; then 16044 if test -n "$PKG_CONFIG" && \ 16045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avro-c >= 1.8\""; } >&5 16046 ($PKG_CONFIG --exists --print-errors "avro-c >= 1.8") 2>&5 16047 ac_status=$? 16048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16049 test $ac_status = 0; }; then 16050 pkg_cv_AVRO_LIBS=`$PKG_CONFIG --libs "avro-c >= 1.8" 2>/dev/null` 16051 test "x$?" != "x0" && pkg_failed=yes 16052else 16053 pkg_failed=yes 16054fi 16055 else 16056 pkg_failed=untried 16057fi 16058 16059 16060 16061if test $pkg_failed = yes; then 16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16063$as_echo "no" >&6; } 16064 16065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16066 _pkg_short_errors_supported=yes 16067else 16068 _pkg_short_errors_supported=no 16069fi 16070 if test $_pkg_short_errors_supported = yes; then 16071 AVRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avro-c >= 1.8" 2>&1` 16072 else 16073 AVRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avro-c >= 1.8" 2>&1` 16074 fi 16075 # Put the nasty error message in config.log where it belongs 16076 echo "$AVRO_PKG_ERRORS" >&5 16077 16078 16079 as_fn_error $? "Missing Apache Avro C library. Refer to: http://www.apache.org/dyn/closer.cgi/avro/" "$LINENO" 5 16080 16081elif test $pkg_failed = untried; then 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16083$as_echo "no" >&6; } 16084 16085 as_fn_error $? "Missing Apache Avro C library. Refer to: http://www.apache.org/dyn/closer.cgi/avro/" "$LINENO" 5 16086 16087else 16088 AVRO_CFLAGS=$pkg_cv_AVRO_CFLAGS 16089 AVRO_LIBS=$pkg_cv_AVRO_LIBS 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16091$as_echo "yes" >&6; } 16092 16093 SUPPORTS="${SUPPORTS} avro" 16094 USING_AVRO="yes" 16095 PMACCT_CFLAGS="$PMACCT_CFLAGS $AVRO_CFLAGS" 16096 $as_echo "#define WITH_AVRO 1" >>confdefs.h 16097 16098 _save_LIBS="$LIBS" 16099 LIBS="$LIBS $AVRO_LIBS" 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avro_record_get in -lavro" >&5 16101$as_echo_n "checking for avro_record_get in -lavro... " >&6; } 16102if ${ac_cv_lib_avro_avro_record_get+:} false; then : 16103 $as_echo_n "(cached) " >&6 16104else 16105 ac_check_lib_save_LIBS=$LIBS 16106LIBS="-lavro $LIBS" 16107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108/* end confdefs.h. */ 16109 16110/* Override any GCC internal prototype to avoid an error. 16111 Use char because int might match the return type of a GCC 16112 builtin and then its argument prototype would still apply. */ 16113#ifdef __cplusplus 16114extern "C" 16115#endif 16116char avro_record_get (); 16117int 16118main () 16119{ 16120return avro_record_get (); 16121 ; 16122 return 0; 16123} 16124_ACEOF 16125if ac_fn_c_try_link "$LINENO"; then : 16126 ac_cv_lib_avro_avro_record_get=yes 16127else 16128 ac_cv_lib_avro_avro_record_get=no 16129fi 16130rm -f core conftest.err conftest.$ac_objext \ 16131 conftest$ac_exeext conftest.$ac_ext 16132LIBS=$ac_check_lib_save_LIBS 16133fi 16134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avro_avro_record_get" >&5 16135$as_echo "$ac_cv_lib_avro_avro_record_get" >&6; } 16136if test "x$ac_cv_lib_avro_avro_record_get" = xyes; then : 16137 cat >>confdefs.h <<_ACEOF 16138#define HAVE_LIBAVRO 1 16139_ACEOF 16140 16141 LIBS="-lavro $LIBS" 16142 16143fi 16144 16145 LIBS="$_save_LIBS" 16146 _save_CFLAGS="$CFLAGS" 16147 CFLAGS="$CFLAGS $AVRO_CFLAGS" 16148 ac_fn_c_check_header_mongrel "$LINENO" "avro.h" "ac_cv_header_avro_h" "$ac_includes_default" 16149if test "x$ac_cv_header_avro_h" = xyes; then : 16150 16151fi 16152 16153 16154 CFLAGS="$_save_CFLAGS" 16155 16156fi 16157 ;; 16158 no) 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16160$as_echo "no" >&6; } 16161 ;; 16162 esac 16163else 16164 16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16166$as_echo "no" >&6; } 16167 16168 16169fi 16170 16171 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Confluent schema-registry support" >&5 16173$as_echo_n "checking whether to enable Confluent schema-registry support... " >&6; } 16174# Check whether --enable-serdes was given. 16175if test "${enable_serdes+set}" = set; then : 16176 enableval=$enable_serdes; case "$enableval" in 16177 yes) 16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16179$as_echo "yes" >&6; } 16180 16181 16182 16183 16184 SUPPORTS="${SUPPORTS} serdes" 16185 USING_SERDES="yes" 16186 PMACCT_CFLAGS="$PMACCT_CFLAGS $SERDES_CFLAGS" 16187 SERDES_LIBS="$SERDES_LIBS -lserdes" 16188 $as_echo "#define WITH_SERDES 1" >>confdefs.h 16189 16190 _save_LIBS="$LIBS" 16191 LIBS="$LIBS $SERDES_LIBS" 16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for serdes_new in -lserdes" >&5 16193$as_echo_n "checking for serdes_new in -lserdes... " >&6; } 16194if ${ac_cv_lib_serdes_serdes_new+:} false; then : 16195 $as_echo_n "(cached) " >&6 16196else 16197 ac_check_lib_save_LIBS=$LIBS 16198LIBS="-lserdes $LIBS" 16199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16200/* end confdefs.h. */ 16201 16202/* Override any GCC internal prototype to avoid an error. 16203 Use char because int might match the return type of a GCC 16204 builtin and then its argument prototype would still apply. */ 16205#ifdef __cplusplus 16206extern "C" 16207#endif 16208char serdes_new (); 16209int 16210main () 16211{ 16212return serdes_new (); 16213 ; 16214 return 0; 16215} 16216_ACEOF 16217if ac_fn_c_try_link "$LINENO"; then : 16218 ac_cv_lib_serdes_serdes_new=yes 16219else 16220 ac_cv_lib_serdes_serdes_new=no 16221fi 16222rm -f core conftest.err conftest.$ac_objext \ 16223 conftest$ac_exeext conftest.$ac_ext 16224LIBS=$ac_check_lib_save_LIBS 16225fi 16226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_serdes_serdes_new" >&5 16227$as_echo "$ac_cv_lib_serdes_serdes_new" >&6; } 16228if test "x$ac_cv_lib_serdes_serdes_new" = xyes; then : 16229 cat >>confdefs.h <<_ACEOF 16230#define HAVE_LIBSERDES 1 16231_ACEOF 16232 16233 LIBS="-lserdes $LIBS" 16234 16235else 16236 as_fn_error $? "Missing Confluent serdes library. Refer to: https://github.com/confluentinc/libserdes" "$LINENO" 5 16237fi 16238 16239 LIBS="$_save_LIBS" 16240 _save_CFLAGS="$CFLAGS" 16241 CFLAGS="$CFLAGS $SERDES_CFLAGS" 16242 ac_fn_c_check_header_mongrel "$LINENO" "libserdes/serdes.h" "ac_cv_header_libserdes_serdes_h" "$ac_includes_default" 16243if test "x$ac_cv_header_libserdes_serdes_h" = xyes; then : 16244 16245else 16246 as_fn_error $? "Missing Confluent serdes headers. Refer to: https://github.com/confluentinc/libserdes" "$LINENO" 5 16247fi 16248 16249 16250 CFLAGS="$_save_CFLAGS" 16251 ;; 16252 no) 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16254$as_echo "no" >&6; } 16255 ;; 16256 esac 16257else 16258 16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16260$as_echo "no" >&6; } 16261 16262 16263fi 16264 16265 16266 16267# Check whether --with-ndpi-static-lib was given. 16268if test "${with_ndpi_static_lib+set}" = set; then : 16269 withval=$with_ndpi_static_lib; 16270 16271 absdir=`cd $withval 2>/dev/null && pwd` 16272 if test x$absdir != x ; then 16273 withval=$absdir 16274 fi 16275 16276 NDPI_CUST_STATIC_LIB=$withval 16277 16278fi 16279 16280 16281if test x"$NDPI_CUST_STATIC_LIB" != x""; then 16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking your own nDPI library" >&5 16283$as_echo_n "checking your own nDPI library... " >&6; } 16284 if test -r $NDPI_CUST_STATIC_LIB/libndpi.a; then 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16286$as_echo "ok" >&6; } 16287 NDPI_CUST_STATIC_LIB_FOUND="yes" 16288 else 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16290$as_echo "no" >&6; } 16291 as_fn_error $? "ERROR: unable to find nDPI library in $NDPI_CUST_STATIC_LIB" "$LINENO" 5 16292 fi 16293fi 16294 16295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable nDPI support" >&5 16296$as_echo_n "checking whether to enable nDPI support... " >&6; } 16297# Check whether --enable-ndpi was given. 16298if test "${enable_ndpi+set}" = set; then : 16299 enableval=$enable_ndpi; case "$enableval" in 16300 yes) 16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16302$as_echo "yes" >&6; } 16303 16304pkg_failed=no 16305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NDPI" >&5 16306$as_echo_n "checking for NDPI... " >&6; } 16307 16308if test -n "$NDPI_CFLAGS"; then 16309 pkg_cv_NDPI_CFLAGS="$NDPI_CFLAGS" 16310 elif test -n "$PKG_CONFIG"; then 16311 if test -n "$PKG_CONFIG" && \ 16312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libndpi >= 3.2\""; } >&5 16313 ($PKG_CONFIG --exists --print-errors "libndpi >= 3.2") 2>&5 16314 ac_status=$? 16315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16316 test $ac_status = 0; }; then 16317 pkg_cv_NDPI_CFLAGS=`$PKG_CONFIG --cflags "libndpi >= 3.2" 2>/dev/null` 16318 test "x$?" != "x0" && pkg_failed=yes 16319else 16320 pkg_failed=yes 16321fi 16322 else 16323 pkg_failed=untried 16324fi 16325if test -n "$NDPI_LIBS"; then 16326 pkg_cv_NDPI_LIBS="$NDPI_LIBS" 16327 elif test -n "$PKG_CONFIG"; then 16328 if test -n "$PKG_CONFIG" && \ 16329 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libndpi >= 3.2\""; } >&5 16330 ($PKG_CONFIG --exists --print-errors "libndpi >= 3.2") 2>&5 16331 ac_status=$? 16332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16333 test $ac_status = 0; }; then 16334 pkg_cv_NDPI_LIBS=`$PKG_CONFIG --libs "libndpi >= 3.2" 2>/dev/null` 16335 test "x$?" != "x0" && pkg_failed=yes 16336else 16337 pkg_failed=yes 16338fi 16339 else 16340 pkg_failed=untried 16341fi 16342 16343 16344 16345if test $pkg_failed = yes; then 16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16347$as_echo "no" >&6; } 16348 16349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16350 _pkg_short_errors_supported=yes 16351else 16352 _pkg_short_errors_supported=no 16353fi 16354 if test $_pkg_short_errors_supported = yes; then 16355 NDPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libndpi >= 3.2" 2>&1` 16356 else 16357 NDPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libndpi >= 3.2" 2>&1` 16358 fi 16359 # Put the nasty error message in config.log where it belongs 16360 echo "$NDPI_PKG_ERRORS" >&5 16361 16362 as_fn_error $? "Missing nDPI API. Refer to: https://github.com/ntop/nDPI/" "$LINENO" 5 16363elif test $pkg_failed = untried; then 16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16365$as_echo "no" >&6; } 16366 as_fn_error $? "Missing nDPI API. Refer to: https://github.com/ntop/nDPI/" "$LINENO" 5 16367else 16368 NDPI_CFLAGS=$pkg_cv_NDPI_CFLAGS 16369 NDPI_LIBS=$pkg_cv_NDPI_LIBS 16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16371$as_echo "yes" >&6; } 16372 16373 SUPPORTS="${SUPPORTS} ndpi" 16374 USING_NDPI="yes" 16375 16376 if test x"$NDPI_CFLAGS" != x""; then 16377 NDPI_CFLAGS_INST=`echo $NDPI_CFLAGS | sed 's/ $//'` 16378 NDPI_CFLAGS_INST="$NDPI_CFLAGS_INST/libndpi" 16379 else 16380 NDPI_CFLAGS_INST="" 16381 fi 16382 PMACCT_CFLAGS="$PMACCT_CFLAGS $NDPI_CFLAGS $NDPI_CFLAGS_INST" 16383 16384 $as_echo "#define WITH_NDPI 1" >>confdefs.h 16385 16386 _save_LIBS="$LIBS" 16387 LIBS="$LIBS $NDPI_LIBS" 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndpi_init_detection_module in -lndpi" >&5 16389$as_echo_n "checking for ndpi_init_detection_module in -lndpi... " >&6; } 16390if ${ac_cv_lib_ndpi_ndpi_init_detection_module+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392else 16393 ac_check_lib_save_LIBS=$LIBS 16394LIBS="-lndpi $LIBS" 16395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16396/* end confdefs.h. */ 16397 16398/* Override any GCC internal prototype to avoid an error. 16399 Use char because int might match the return type of a GCC 16400 builtin and then its argument prototype would still apply. */ 16401#ifdef __cplusplus 16402extern "C" 16403#endif 16404char ndpi_init_detection_module (); 16405int 16406main () 16407{ 16408return ndpi_init_detection_module (); 16409 ; 16410 return 0; 16411} 16412_ACEOF 16413if ac_fn_c_try_link "$LINENO"; then : 16414 ac_cv_lib_ndpi_ndpi_init_detection_module=yes 16415else 16416 ac_cv_lib_ndpi_ndpi_init_detection_module=no 16417fi 16418rm -f core conftest.err conftest.$ac_objext \ 16419 conftest$ac_exeext conftest.$ac_ext 16420LIBS=$ac_check_lib_save_LIBS 16421fi 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndpi_ndpi_init_detection_module" >&5 16423$as_echo "$ac_cv_lib_ndpi_ndpi_init_detection_module" >&6; } 16424if test "x$ac_cv_lib_ndpi_ndpi_init_detection_module" = xyes; then : 16425 cat >>confdefs.h <<_ACEOF 16426#define HAVE_LIBNDPI 1 16427_ACEOF 16428 16429 LIBS="-lndpi $LIBS" 16430 16431fi 16432 16433 LIBS="$_save_LIBS" 16434 _save_CFLAGS="$CFLAGS" 16435 CFLAGS="$CFLAGS $NDPI_CFLAGS" 16436 ac_fn_c_check_header_mongrel "$LINENO" "libndpi/ndpi_main.h" "ac_cv_header_libndpi_ndpi_main_h" "$ac_includes_default" 16437if test "x$ac_cv_header_libndpi_ndpi_main_h" = xyes; then : 16438 16439fi 16440 16441 16442 CFLAGS="$_save_CFLAGS" 16443 16444fi 16445 ;; 16446 no) 16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16448$as_echo "no" >&6; } 16449 ;; 16450 esac 16451else 16452 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16454$as_echo "no" >&6; } 16455 16456 16457fi 16458 16459 16460if test x"$USING_DLOPEN" = x"yes"; then 16461 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 16462 16463else 16464 # Adding linking to libdl here 1) if required and 2) in case of --disable-so 16465 if test x"$USING_MYSQL" = x"yes" -o x"$USING_SQLITE3" = x"yes"; then 16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16467$as_echo_n "checking for dlopen in -ldl... " >&6; } 16468if ${ac_cv_lib_dl_dlopen+:} false; then : 16469 $as_echo_n "(cached) " >&6 16470else 16471 ac_check_lib_save_LIBS=$LIBS 16472LIBS="-ldl $LIBS" 16473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16474/* end confdefs.h. */ 16475 16476/* Override any GCC internal prototype to avoid an error. 16477 Use char because int might match the return type of a GCC 16478 builtin and then its argument prototype would still apply. */ 16479#ifdef __cplusplus 16480extern "C" 16481#endif 16482char dlopen (); 16483int 16484main () 16485{ 16486return dlopen (); 16487 ; 16488 return 0; 16489} 16490_ACEOF 16491if ac_fn_c_try_link "$LINENO"; then : 16492 ac_cv_lib_dl_dlopen=yes 16493else 16494 ac_cv_lib_dl_dlopen=no 16495fi 16496rm -f core conftest.err conftest.$ac_objext \ 16497 conftest$ac_exeext conftest.$ac_ext 16498LIBS=$ac_check_lib_save_LIBS 16499fi 16500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16501$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16502if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16503 LIBS="${LIBS} -ldl" 16504else 16505 as_fn_error $? " 16506 ERROR: missing libdl devel. 16507 " "$LINENO" 5 16508fi 16509 16510 fi 16511fi 16512 16513LIBS="${LIBS} -lm -lpthread" 16514 16515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16516$as_echo_n "checking for ANSI C header files... " >&6; } 16517if ${ac_cv_header_stdc+:} false; then : 16518 $as_echo_n "(cached) " >&6 16519else 16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522#include <stdlib.h> 16523#include <stdarg.h> 16524#include <string.h> 16525#include <float.h> 16526 16527int 16528main () 16529{ 16530 16531 ; 16532 return 0; 16533} 16534_ACEOF 16535if ac_fn_c_try_compile "$LINENO"; then : 16536 ac_cv_header_stdc=yes 16537else 16538 ac_cv_header_stdc=no 16539fi 16540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16541 16542if test $ac_cv_header_stdc = yes; then 16543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16545/* end confdefs.h. */ 16546#include <string.h> 16547 16548_ACEOF 16549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16550 $EGREP "memchr" >/dev/null 2>&1; then : 16551 16552else 16553 ac_cv_header_stdc=no 16554fi 16555rm -f conftest* 16556 16557fi 16558 16559if test $ac_cv_header_stdc = yes; then 16560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16562/* end confdefs.h. */ 16563#include <stdlib.h> 16564 16565_ACEOF 16566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16567 $EGREP "free" >/dev/null 2>&1; then : 16568 16569else 16570 ac_cv_header_stdc=no 16571fi 16572rm -f conftest* 16573 16574fi 16575 16576if test $ac_cv_header_stdc = yes; then 16577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16578 if test "$cross_compiling" = yes; then : 16579 : 16580else 16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16582/* end confdefs.h. */ 16583#include <ctype.h> 16584#include <stdlib.h> 16585#if ((' ' & 0x0FF) == 0x020) 16586# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16587# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16588#else 16589# define ISLOWER(c) \ 16590 (('a' <= (c) && (c) <= 'i') \ 16591 || ('j' <= (c) && (c) <= 'r') \ 16592 || ('s' <= (c) && (c) <= 'z')) 16593# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16594#endif 16595 16596#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16597int 16598main () 16599{ 16600 int i; 16601 for (i = 0; i < 256; i++) 16602 if (XOR (islower (i), ISLOWER (i)) 16603 || toupper (i) != TOUPPER (i)) 16604 return 2; 16605 return 0; 16606} 16607_ACEOF 16608if ac_fn_c_try_run "$LINENO"; then : 16609 16610else 16611 ac_cv_header_stdc=no 16612fi 16613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16614 conftest.$ac_objext conftest.beam conftest.$ac_ext 16615fi 16616 16617fi 16618fi 16619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16620$as_echo "$ac_cv_header_stdc" >&6; } 16621if test $ac_cv_header_stdc = yes; then 16622 16623$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16624 16625fi 16626 16627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 16628$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 16629if ${ac_cv_header_sys_wait_h+:} false; then : 16630 $as_echo_n "(cached) " >&6 16631else 16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16633/* end confdefs.h. */ 16634#include <sys/types.h> 16635#include <sys/wait.h> 16636#ifndef WEXITSTATUS 16637# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 16638#endif 16639#ifndef WIFEXITED 16640# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 16641#endif 16642 16643int 16644main () 16645{ 16646 int s; 16647 wait (&s); 16648 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 16649 ; 16650 return 0; 16651} 16652_ACEOF 16653if ac_fn_c_try_compile "$LINENO"; then : 16654 ac_cv_header_sys_wait_h=yes 16655else 16656 ac_cv_header_sys_wait_h=no 16657fi 16658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16659fi 16660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 16661$as_echo "$ac_cv_header_sys_wait_h" >&6; } 16662if test $ac_cv_header_sys_wait_h = yes; then 16663 16664$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 16665 16666fi 16667 16668for ac_header in getopt.h sys/select.h sys/time.h 16669do : 16670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16671ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16672if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16673 cat >>confdefs.h <<_ACEOF 16674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16675_ACEOF 16676 16677fi 16678 16679done 16680 16681 16682for ac_header in arpa/inet.h assert.h ctype.h dirent.h dlfcn.h errno.h fcntl.h grp.h inttypes.h 16683do : 16684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16685ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16686if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16687 cat >>confdefs.h <<_ACEOF 16688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16689_ACEOF 16690 16691fi 16692 16693done 16694 16695for ac_header in limits.h malloc.h netdb.h net/if.h netinet/in.h netinet/in_systm.h netinet/ip.h 16696do : 16697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16698ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16700 cat >>confdefs.h <<_ACEOF 16701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16702_ACEOF 16703 16704fi 16705 16706done 16707 16708for ac_header in netinet/udp.h pthread.h pwd.h signal.h string.h sys/ansi.h sys/errno.h sys/file.h 16709do : 16710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16711ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16713 cat >>confdefs.h <<_ACEOF 16714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16715_ACEOF 16716 16717fi 16718 16719done 16720 16721for ac_header in sys/ioctl.h syslog.h sys/mbuf.h sys/mman.h sys/param.h sys/poll.h sys/resource.h 16722do : 16723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16724ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16726 cat >>confdefs.h <<_ACEOF 16727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16728_ACEOF 16729 16730fi 16731 16732done 16733 16734for ac_header in sys/socket.h sys/stat.h sys/types.h sys/un.h sys/utsname.h time.h math.h 16735do : 16736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16737ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16738if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16739 cat >>confdefs.h <<_ACEOF 16740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16741_ACEOF 16742 16743fi 16744 16745done 16746 16747 16748ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default" 16749if test "x$ac_cv_type_u_int64_t" = xyes; then : 16750 $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h 16751 16752fi 16753 16754ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" 16755if test "x$ac_cv_type_u_int32_t" = xyes; then : 16756 $as_echo "#define HAVE_U_INT32_T 1" >>confdefs.h 16757 16758fi 16759 16760ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" 16761if test "x$ac_cv_type_u_int16_t" = xyes; then : 16762 $as_echo "#define HAVE_U_INT16_T 1" >>confdefs.h 16763 16764fi 16765 16766ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default" 16767if test "x$ac_cv_type_u_int8_t" = xyes; then : 16768 $as_echo "#define HAVE_U_INT8_T 1" >>confdefs.h 16769 16770fi 16771 16772ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 16773if test "x$ac_cv_type_uint64_t" = xyes; then : 16774 $as_echo "#define HAVE_UINT64_T 1" >>confdefs.h 16775 16776fi 16777 16778ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 16779if test "x$ac_cv_type_uint32_t" = xyes; then : 16780 $as_echo "#define HAVE_UINT32_T 1" >>confdefs.h 16781 16782fi 16783 16784ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 16785if test "x$ac_cv_type_uint16_t" = xyes; then : 16786 $as_echo "#define HAVE_UINT16_T 1" >>confdefs.h 16787 16788fi 16789 16790ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 16791if test "x$ac_cv_type_uint8_t" = xyes; then : 16792 $as_echo "#define HAVE_UINT8_T 1" >>confdefs.h 16793 16794fi 16795 16796 16797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NFLOG support" >&5 16798$as_echo_n "checking whether to enable NFLOG support... " >&6; } 16799# Check whether --enable-nflog was given. 16800if test "${enable_nflog+set}" = set; then : 16801 enableval=$enable_nflog; case "$enableval" in 16802 yes) 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16804$as_echo "yes" >&6; } 16805 16806pkg_failed=no 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NFLOG" >&5 16808$as_echo_n "checking for NFLOG... " >&6; } 16809 16810if test -n "$NFLOG_CFLAGS"; then 16811 pkg_cv_NFLOG_CFLAGS="$NFLOG_CFLAGS" 16812 elif test -n "$PKG_CONFIG"; then 16813 if test -n "$PKG_CONFIG" && \ 16814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnetfilter_log >= 1\""; } >&5 16815 ($PKG_CONFIG --exists --print-errors "libnetfilter_log >= 1") 2>&5 16816 ac_status=$? 16817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16818 test $ac_status = 0; }; then 16819 pkg_cv_NFLOG_CFLAGS=`$PKG_CONFIG --cflags "libnetfilter_log >= 1" 2>/dev/null` 16820 test "x$?" != "x0" && pkg_failed=yes 16821else 16822 pkg_failed=yes 16823fi 16824 else 16825 pkg_failed=untried 16826fi 16827if test -n "$NFLOG_LIBS"; then 16828 pkg_cv_NFLOG_LIBS="$NFLOG_LIBS" 16829 elif test -n "$PKG_CONFIG"; then 16830 if test -n "$PKG_CONFIG" && \ 16831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnetfilter_log >= 1\""; } >&5 16832 ($PKG_CONFIG --exists --print-errors "libnetfilter_log >= 1") 2>&5 16833 ac_status=$? 16834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16835 test $ac_status = 0; }; then 16836 pkg_cv_NFLOG_LIBS=`$PKG_CONFIG --libs "libnetfilter_log >= 1" 2>/dev/null` 16837 test "x$?" != "x0" && pkg_failed=yes 16838else 16839 pkg_failed=yes 16840fi 16841 else 16842 pkg_failed=untried 16843fi 16844 16845 16846 16847if test $pkg_failed = yes; then 16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16849$as_echo "no" >&6; } 16850 16851if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16852 _pkg_short_errors_supported=yes 16853else 16854 _pkg_short_errors_supported=no 16855fi 16856 if test $_pkg_short_errors_supported = yes; then 16857 NFLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnetfilter_log >= 1" 2>&1` 16858 else 16859 NFLOG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnetfilter_log >= 1" 2>&1` 16860 fi 16861 # Put the nasty error message in config.log where it belongs 16862 echo "$NFLOG_PKG_ERRORS" >&5 16863 16864 as_fn_error $? "Package requirements (libnetfilter_log >= 1) were not met: 16865 16866$NFLOG_PKG_ERRORS 16867 16868Consider adjusting the PKG_CONFIG_PATH environment variable if you 16869installed software in a non-standard prefix. 16870 16871Alternatively, you may set the environment variables NFLOG_CFLAGS 16872and NFLOG_LIBS to avoid the need to call pkg-config. 16873See the pkg-config man page for more details." "$LINENO" 5 16874elif test $pkg_failed = untried; then 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16876$as_echo "no" >&6; } 16877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16879as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16880is in your PATH or set the PKG_CONFIG environment variable to the full 16881path to pkg-config. 16882 16883Alternatively, you may set the environment variables NFLOG_CFLAGS 16884and NFLOG_LIBS to avoid the need to call pkg-config. 16885See the pkg-config man page for more details. 16886 16887To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16888See \`config.log' for more details" "$LINENO" 5; } 16889else 16890 NFLOG_CFLAGS=$pkg_cv_NFLOG_CFLAGS 16891 NFLOG_LIBS=$pkg_cv_NFLOG_LIBS 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16893$as_echo "yes" >&6; } 16894 16895 SUPPORTS="${SUPPORTS} nflog" 16896 USING_NFLOG="yes" 16897 $as_echo "#define WITH_NFLOG 1" >>confdefs.h 16898 16899 16900fi 16901 ;; 16902 no) 16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16904$as_echo "no" >&6; } 16905 ;; 16906 esac 16907else 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16909$as_echo "no" >&6; } 16910fi 16911 16912 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link IPv4/IPv6 traffic accounting accounting binaries" >&5 16914$as_echo_n "checking whether to link IPv4/IPv6 traffic accounting accounting binaries... " >&6; } 16915# Check whether --enable-traffic-bins was given. 16916if test "${enable_traffic_bins+set}" = set; then : 16917 enableval=$enable_traffic_bins; 16918 if test x$enableval = x"yes" ; then 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16920$as_echo "yes" >&6; } 16921 $as_echo "#define HAVE_TRAFFIC_BINS 1" >>confdefs.h 16922 16923 USING_TRAFFIC_BINS="yes" 16924 else 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16926$as_echo "no" >&6; } 16927 fi 16928 16929else 16930 16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16932$as_echo "yes" >&6; } 16933 $as_echo "#define HAVE_TRAFFIC_BINS 1" >>confdefs.h 16934 16935 USING_TRAFFIC_BINS="yes" 16936 COMPILE_ARGS="${COMPILE_ARGS} '--enable-traffic-bins'" 16937 16938 16939fi 16940 16941 16942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link BGP daemon binaries" >&5 16943$as_echo_n "checking whether to link BGP daemon binaries... " >&6; } 16944# Check whether --enable-bgp-bins was given. 16945if test "${enable_bgp_bins+set}" = set; then : 16946 enableval=$enable_bgp_bins; 16947 if test x$enableval = x"yes" ; then 16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16949$as_echo "yes" >&6; } 16950 $as_echo "#define HAVE_BGP_BINS 1" >>confdefs.h 16951 16952 USING_BGP_BINS="yes" 16953 else 16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16955$as_echo "no" >&6; } 16956 fi 16957 16958else 16959 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16961$as_echo "yes" >&6; } 16962 $as_echo "#define HAVE_BGP_BINS 1" >>confdefs.h 16963 16964 USING_BGP_BINS="yes" 16965 COMPILE_ARGS="${COMPILE_ARGS} '--enable-bgp-bins'" 16966 16967 16968fi 16969 16970 16971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link BMP daemon binaries" >&5 16972$as_echo_n "checking whether to link BMP daemon binaries... " >&6; } 16973# Check whether --enable-bmp-bins was given. 16974if test "${enable_bmp_bins+set}" = set; then : 16975 enableval=$enable_bmp_bins; 16976 if test x$enableval = x"yes" ; then 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16978$as_echo "yes" >&6; } 16979 $as_echo "#define HAVE_BMP_BINS 1" >>confdefs.h 16980 16981 USING_BMP_BINS="yes" 16982 else 16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16984$as_echo "no" >&6; } 16985 fi 16986 16987else 16988 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16990$as_echo "yes" >&6; } 16991 $as_echo "#define HAVE_BMP_BINS 1" >>confdefs.h 16992 16993 USING_BMP_BINS="yes" 16994 COMPILE_ARGS="${COMPILE_ARGS} '--enable-bmp-bins'" 16995 16996 16997fi 16998 16999 17000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link Streaming Telemetry daemon binaries" >&5 17001$as_echo_n "checking whether to link Streaming Telemetry daemon binaries... " >&6; } 17002# Check whether --enable-st-bins was given. 17003if test "${enable_st_bins+set}" = set; then : 17004 enableval=$enable_st_bins; 17005 if test x$enableval = x"yes" ; then 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17007$as_echo "yes" >&6; } 17008 $as_echo "#define HAVE_ST_BINS 1" >>confdefs.h 17009 17010 USING_ST_BINS="yes" 17011 else 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17013$as_echo "no" >&6; } 17014 fi 17015 17016else 17017 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17019$as_echo "yes" >&6; } 17020 $as_echo "#define HAVE_ST_BINS 1" >>confdefs.h 17021 17022 USING_ST_BINS="yes" 17023 COMPILE_ARGS="${COMPILE_ARGS} '--enable-st-bins'" 17024 17025 17026fi 17027 17028 17029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 17030$as_echo_n "checking return type of signal handlers... " >&6; } 17031if ${ac_cv_type_signal+:} false; then : 17032 $as_echo_n "(cached) " >&6 17033else 17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17035/* end confdefs.h. */ 17036#include <sys/types.h> 17037#include <signal.h> 17038 17039int 17040main () 17041{ 17042return *(signal (0, 0)) (0) == 1; 17043 ; 17044 return 0; 17045} 17046_ACEOF 17047if ac_fn_c_try_compile "$LINENO"; then : 17048 ac_cv_type_signal=int 17049else 17050 ac_cv_type_signal=void 17051fi 17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17053fi 17054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 17055$as_echo "$ac_cv_type_signal" >&6; } 17056 17057cat >>confdefs.h <<_ACEOF 17058#define RETSIGTYPE $ac_cv_type_signal 17059_ACEOF 17060 17061 17062 17063for ac_func in setproctitle mallopt tdestroy 17064do : 17065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17066ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17067if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17068 cat >>confdefs.h <<_ACEOF 17069#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17070_ACEOF 17071 17072fi 17073done 17074 17075 17076ac_fn_c_check_decl "$LINENO" "SO_REUSEPORT" "ac_cv_have_decl_SO_REUSEPORT" " 17077 #include <sys/types.h> 17078 #include <sys/socket.h> 17079 17080 17081" 17082if test "x$ac_cv_have_decl_SO_REUSEPORT" = xyes; then : 17083 17084$as_echo "#define HAVE_SO_REUSEPORT 1" >>confdefs.h 17085 17086fi 17087 17088 17089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging compiler options" >&5 17090$as_echo_n "checking whether to enable debugging compiler options... " >&6; } 17091# Check whether --enable-debug was given. 17092if test "${enable_debug+set}" = set; then : 17093 enableval=$enable_debug; 17094 if test x$enableval = x"yes" ; then 17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17096$as_echo "yes" >&6; } 17097 tmp_CFLAGS=`echo $CFLAGS | sed 's/O2/O0/g'` 17098 CFLAGS="$tmp_CFLAGS" 17099 CFLAGS="$CFLAGS -g -Wall -Werror" 17100 else 17101 CFLAGS="$CFLAGS -Wall -Werror" 17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17103$as_echo "no" >&6; } 17104 fi 17105 17106else 17107 17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17109$as_echo "no" >&6; } 17110 17111 17112fi 17113 17114 17115cat >>confdefs.h <<_ACEOF 17116#define COMPILE_ARGS "$COMPILE_ARGS" 17117_ACEOF 17118 17119CFLAGS="${CFLAGS} ${INCLUDES}" 17120INCLUDES="" 17121 17122echo " 17123PLATFORM ..... : `uname -m` 17124OS ........... : `uname -rs` (`uname -n`) 17125COMPILER ..... : ${CC} 17126CFLAGS ....... : ${CFLAGS} 17127LIBS ......... : ${LIBS} 17128LDFLAGS ...... : ${LDFLAGS} 17129PLUGINS ...... : ${PLUGINS} 17130SUPPORTS ..... : ${SUPPORTS} 17131 17132Now type 'make' to compile the source code. 17133 17134Wanting to get in touch with other pmacct users? 17135Join the pmacct mailing-list with an email to pmacct-discussion-subscribe@pmacct.net 17136 17137Need for documentation and examples? 17138Start by reading the README.md file 17139 17140Star, watch or contribute to the project on GitHub: 17141https://github.com/pmacct/pmacct 17142 17143" 17144 17145 17146 17147 if test x"$USING_MYSQL" = x"yes"; then 17148 WITH_MYSQL_TRUE= 17149 WITH_MYSQL_FALSE='#' 17150else 17151 WITH_MYSQL_TRUE='#' 17152 WITH_MYSQL_FALSE= 17153fi 17154 17155 if test x"$USING_PGSQL" = x"yes"; then 17156 WITH_PGSQL_TRUE= 17157 WITH_PGSQL_FALSE='#' 17158else 17159 WITH_PGSQL_TRUE='#' 17160 WITH_PGSQL_FALSE= 17161fi 17162 17163 if test x"$USING_MONGODB" = x"yes"; then 17164 WITH_MONGODB_TRUE= 17165 WITH_MONGODB_FALSE='#' 17166else 17167 WITH_MONGODB_TRUE='#' 17168 WITH_MONGODB_FALSE= 17169fi 17170 17171 if test x"$USING_SQLITE3" = x"yes"; then 17172 WITH_SQLITE3_TRUE= 17173 WITH_SQLITE3_FALSE='#' 17174else 17175 WITH_SQLITE3_TRUE='#' 17176 WITH_SQLITE3_FALSE= 17177fi 17178 17179 if test x"$USING_RABBITMQ" = x"yes"; then 17180 WITH_RABBITMQ_TRUE= 17181 WITH_RABBITMQ_FALSE='#' 17182else 17183 WITH_RABBITMQ_TRUE='#' 17184 WITH_RABBITMQ_FALSE= 17185fi 17186 17187 if test x"$USING_ZMQ" = x"yes"; then 17188 WITH_ZMQ_TRUE= 17189 WITH_ZMQ_FALSE='#' 17190else 17191 WITH_ZMQ_TRUE='#' 17192 WITH_ZMQ_FALSE= 17193fi 17194 17195 if test x"$USING_KAFKA" = x"yes"; then 17196 WITH_KAFKA_TRUE= 17197 WITH_KAFKA_FALSE='#' 17198else 17199 WITH_KAFKA_TRUE='#' 17200 WITH_KAFKA_FALSE= 17201fi 17202 17203 if test x"$USING_REDIS" = x"yes"; then 17204 WITH_REDIS_TRUE= 17205 WITH_REDIS_FALSE='#' 17206else 17207 WITH_REDIS_TRUE='#' 17208 WITH_REDIS_FALSE= 17209fi 17210 17211 if test x"$USING_SQL" = x"yes"; then 17212 USING_SQL_TRUE= 17213 USING_SQL_FALSE='#' 17214else 17215 USING_SQL_TRUE='#' 17216 USING_SQL_FALSE= 17217fi 17218 17219 if test x"$USING_JANSSON" = x"yes"; then 17220 WITH_JANSSON_TRUE= 17221 WITH_JANSSON_FALSE='#' 17222else 17223 WITH_JANSSON_TRUE='#' 17224 WITH_JANSSON_FALSE= 17225fi 17226 17227 if test x"$USING_AVRO" = x"yes"; then 17228 WITH_AVRO_TRUE= 17229 WITH_AVRO_FALSE='#' 17230else 17231 WITH_AVRO_TRUE='#' 17232 WITH_AVRO_FALSE= 17233fi 17234 17235 if test x"$USING_SERDES" = x"yes"; then 17236 WITH_SERDES_TRUE= 17237 WITH_SERDES_FALSE='#' 17238else 17239 WITH_SERDES_TRUE='#' 17240 WITH_SERDES_FALSE= 17241fi 17242 17243 if test x"$USING_NDPI" = x"yes"; then 17244 WITH_NDPI_TRUE= 17245 WITH_NDPI_FALSE='#' 17246else 17247 WITH_NDPI_TRUE='#' 17248 WITH_NDPI_FALSE= 17249fi 17250 17251 if test x"$USING_NFLOG" = x"yes"; then 17252 WITH_NFLOG_TRUE= 17253 WITH_NFLOG_FALSE='#' 17254else 17255 WITH_NFLOG_TRUE='#' 17256 WITH_NFLOG_FALSE= 17257fi 17258 17259 if test x"$USING_TRAFFIC_BINS" = x"yes"; then 17260 USING_TRAFFIC_BINS_TRUE= 17261 USING_TRAFFIC_BINS_FALSE='#' 17262else 17263 USING_TRAFFIC_BINS_TRUE='#' 17264 USING_TRAFFIC_BINS_FALSE= 17265fi 17266 17267 if test x"$USING_BGP_BINS" = x"yes"; then 17268 USING_BGP_BINS_TRUE= 17269 USING_BGP_BINS_FALSE='#' 17270else 17271 USING_BGP_BINS_TRUE='#' 17272 USING_BGP_BINS_FALSE= 17273fi 17274 17275 if test x"$USING_BMP_BINS" = x"yes"; then 17276 USING_BMP_BINS_TRUE= 17277 USING_BMP_BINS_FALSE='#' 17278else 17279 USING_BMP_BINS_TRUE='#' 17280 USING_BMP_BINS_FALSE= 17281fi 17282 17283 if test x"$USING_ST_BINS" = x"yes"; then 17284 USING_ST_BINS_TRUE= 17285 USING_ST_BINS_FALSE='#' 17286else 17287 USING_ST_BINS_TRUE='#' 17288 USING_ST_BINS_FALSE= 17289fi 17290 17291ac_config_files="$ac_config_files Makefile src/Makefile src/nfprobe_plugin/Makefile src/sfprobe_plugin/Makefile src/bgp/Makefile src/tee_plugin/Makefile src/isis/Makefile src/bmp/Makefile src/rpki/Makefile src/telemetry/Makefile src/ndpi/Makefile src/filters/Makefile examples/lg/Makefile examples/custom/Makefile" 17292 17293cat >confcache <<\_ACEOF 17294# This file is a shell script that caches the results of configure 17295# tests run on this system so they can be shared between configure 17296# scripts and configure runs, see configure's option --config-cache. 17297# It is not useful on other systems. If it contains results you don't 17298# want to keep, you may remove or edit it. 17299# 17300# config.status only pays attention to the cache file if you give it 17301# the --recheck option to rerun configure. 17302# 17303# `ac_cv_env_foo' variables (set or unset) will be overridden when 17304# loading this file, other *unset* `ac_cv_foo' will be assigned the 17305# following values. 17306 17307_ACEOF 17308 17309# The following way of writing the cache mishandles newlines in values, 17310# but we know of no workaround that is simple, portable, and efficient. 17311# So, we kill variables containing newlines. 17312# Ultrix sh set writes to stderr and can't be redirected directly, 17313# and sets the high bit in the cache file unless we assign to the vars. 17314( 17315 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17316 eval ac_val=\$$ac_var 17317 case $ac_val in #( 17318 *${as_nl}*) 17319 case $ac_var in #( 17320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17321$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17322 esac 17323 case $ac_var in #( 17324 _ | IFS | as_nl) ;; #( 17325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17326 *) { eval $ac_var=; unset $ac_var;} ;; 17327 esac ;; 17328 esac 17329 done 17330 17331 (set) 2>&1 | 17332 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17333 *${as_nl}ac_space=\ *) 17334 # `set' does not quote correctly, so add quotes: double-quote 17335 # substitution turns \\\\ into \\, and sed turns \\ into \. 17336 sed -n \ 17337 "s/'/'\\\\''/g; 17338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17339 ;; #( 17340 *) 17341 # `set' quotes correctly as required by POSIX, so do not add quotes. 17342 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17343 ;; 17344 esac | 17345 sort 17346) | 17347 sed ' 17348 /^ac_cv_env_/b end 17349 t clear 17350 :clear 17351 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17352 t end 17353 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17354 :end' >>confcache 17355if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17356 if test -w "$cache_file"; then 17357 if test "x$cache_file" != "x/dev/null"; then 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17359$as_echo "$as_me: updating cache $cache_file" >&6;} 17360 if test ! -f "$cache_file" || test -h "$cache_file"; then 17361 cat confcache >"$cache_file" 17362 else 17363 case $cache_file in #( 17364 */* | ?:*) 17365 mv -f confcache "$cache_file"$$ && 17366 mv -f "$cache_file"$$ "$cache_file" ;; #( 17367 *) 17368 mv -f confcache "$cache_file" ;; 17369 esac 17370 fi 17371 fi 17372 else 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17374$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17375 fi 17376fi 17377rm -f confcache 17378 17379test "x$prefix" = xNONE && prefix=$ac_default_prefix 17380# Let make expand exec_prefix. 17381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17382 17383# Transform confdefs.h into DEFS. 17384# Protect against shell expansion while executing Makefile rules. 17385# Protect against Makefile macro expansion. 17386# 17387# If the first sed substitution is executed (which looks for macros that 17388# take arguments), then branch to the quote section. Otherwise, 17389# look for a macro that doesn't take arguments. 17390ac_script=' 17391:mline 17392/\\$/{ 17393 N 17394 s,\\\n,, 17395 b mline 17396} 17397t clear 17398:clear 17399s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 17400t quote 17401s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 17402t quote 17403b any 17404:quote 17405s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 17406s/\[/\\&/g 17407s/\]/\\&/g 17408s/\$/$$/g 17409H 17410:any 17411${ 17412 g 17413 s/^\n// 17414 s/\n/ /g 17415 p 17416} 17417' 17418DEFS=`sed -n "$ac_script" confdefs.h` 17419 17420 17421ac_libobjs= 17422ac_ltlibobjs= 17423U= 17424for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17425 # 1. Remove the extension, and $U if already installed. 17426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17429 # will be set to the directory where LIBOBJS objects are built. 17430 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17431 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17432done 17433LIBOBJS=$ac_libobjs 17434 17435LTLIBOBJS=$ac_ltlibobjs 17436 17437 17438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17439$as_echo_n "checking that generated files are newer than configure... " >&6; } 17440 if test -n "$am_sleep_pid"; then 17441 # Hide warnings about reused PIDs. 17442 wait $am_sleep_pid 2>/dev/null 17443 fi 17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17445$as_echo "done" >&6; } 17446 if test -n "$EXEEXT"; then 17447 am__EXEEXT_TRUE= 17448 am__EXEEXT_FALSE='#' 17449else 17450 am__EXEEXT_TRUE='#' 17451 am__EXEEXT_FALSE= 17452fi 17453 17454if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17455 as_fn_error $? "conditional \"AMDEP\" was never defined. 17456Usually this means the macro was only invoked conditionally." "$LINENO" 5 17457fi 17458if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17459 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17460Usually this means the macro was only invoked conditionally." "$LINENO" 5 17461fi 17462if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17463 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17464Usually this means the macro was only invoked conditionally." "$LINENO" 5 17465fi 17466if test -z "${WITH_MYSQL_TRUE}" && test -z "${WITH_MYSQL_FALSE}"; then 17467 as_fn_error $? "conditional \"WITH_MYSQL\" was never defined. 17468Usually this means the macro was only invoked conditionally." "$LINENO" 5 17469fi 17470if test -z "${WITH_PGSQL_TRUE}" && test -z "${WITH_PGSQL_FALSE}"; then 17471 as_fn_error $? "conditional \"WITH_PGSQL\" was never defined. 17472Usually this means the macro was only invoked conditionally." "$LINENO" 5 17473fi 17474if test -z "${WITH_MONGODB_TRUE}" && test -z "${WITH_MONGODB_FALSE}"; then 17475 as_fn_error $? "conditional \"WITH_MONGODB\" was never defined. 17476Usually this means the macro was only invoked conditionally." "$LINENO" 5 17477fi 17478if test -z "${WITH_SQLITE3_TRUE}" && test -z "${WITH_SQLITE3_FALSE}"; then 17479 as_fn_error $? "conditional \"WITH_SQLITE3\" was never defined. 17480Usually this means the macro was only invoked conditionally." "$LINENO" 5 17481fi 17482if test -z "${WITH_RABBITMQ_TRUE}" && test -z "${WITH_RABBITMQ_FALSE}"; then 17483 as_fn_error $? "conditional \"WITH_RABBITMQ\" was never defined. 17484Usually this means the macro was only invoked conditionally." "$LINENO" 5 17485fi 17486if test -z "${WITH_ZMQ_TRUE}" && test -z "${WITH_ZMQ_FALSE}"; then 17487 as_fn_error $? "conditional \"WITH_ZMQ\" was never defined. 17488Usually this means the macro was only invoked conditionally." "$LINENO" 5 17489fi 17490if test -z "${WITH_KAFKA_TRUE}" && test -z "${WITH_KAFKA_FALSE}"; then 17491 as_fn_error $? "conditional \"WITH_KAFKA\" was never defined. 17492Usually this means the macro was only invoked conditionally." "$LINENO" 5 17493fi 17494if test -z "${WITH_REDIS_TRUE}" && test -z "${WITH_REDIS_FALSE}"; then 17495 as_fn_error $? "conditional \"WITH_REDIS\" was never defined. 17496Usually this means the macro was only invoked conditionally." "$LINENO" 5 17497fi 17498if test -z "${USING_SQL_TRUE}" && test -z "${USING_SQL_FALSE}"; then 17499 as_fn_error $? "conditional \"USING_SQL\" was never defined. 17500Usually this means the macro was only invoked conditionally." "$LINENO" 5 17501fi 17502if test -z "${WITH_JANSSON_TRUE}" && test -z "${WITH_JANSSON_FALSE}"; then 17503 as_fn_error $? "conditional \"WITH_JANSSON\" was never defined. 17504Usually this means the macro was only invoked conditionally." "$LINENO" 5 17505fi 17506if test -z "${WITH_AVRO_TRUE}" && test -z "${WITH_AVRO_FALSE}"; then 17507 as_fn_error $? "conditional \"WITH_AVRO\" was never defined. 17508Usually this means the macro was only invoked conditionally." "$LINENO" 5 17509fi 17510if test -z "${WITH_SERDES_TRUE}" && test -z "${WITH_SERDES_FALSE}"; then 17511 as_fn_error $? "conditional \"WITH_SERDES\" was never defined. 17512Usually this means the macro was only invoked conditionally." "$LINENO" 5 17513fi 17514if test -z "${WITH_NDPI_TRUE}" && test -z "${WITH_NDPI_FALSE}"; then 17515 as_fn_error $? "conditional \"WITH_NDPI\" was never defined. 17516Usually this means the macro was only invoked conditionally." "$LINENO" 5 17517fi 17518if test -z "${WITH_NFLOG_TRUE}" && test -z "${WITH_NFLOG_FALSE}"; then 17519 as_fn_error $? "conditional \"WITH_NFLOG\" was never defined. 17520Usually this means the macro was only invoked conditionally." "$LINENO" 5 17521fi 17522if test -z "${USING_TRAFFIC_BINS_TRUE}" && test -z "${USING_TRAFFIC_BINS_FALSE}"; then 17523 as_fn_error $? "conditional \"USING_TRAFFIC_BINS\" was never defined. 17524Usually this means the macro was only invoked conditionally." "$LINENO" 5 17525fi 17526if test -z "${USING_BGP_BINS_TRUE}" && test -z "${USING_BGP_BINS_FALSE}"; then 17527 as_fn_error $? "conditional \"USING_BGP_BINS\" was never defined. 17528Usually this means the macro was only invoked conditionally." "$LINENO" 5 17529fi 17530if test -z "${USING_BMP_BINS_TRUE}" && test -z "${USING_BMP_BINS_FALSE}"; then 17531 as_fn_error $? "conditional \"USING_BMP_BINS\" was never defined. 17532Usually this means the macro was only invoked conditionally." "$LINENO" 5 17533fi 17534if test -z "${USING_ST_BINS_TRUE}" && test -z "${USING_ST_BINS_FALSE}"; then 17535 as_fn_error $? "conditional \"USING_ST_BINS\" was never defined. 17536Usually this means the macro was only invoked conditionally." "$LINENO" 5 17537fi 17538 17539: "${CONFIG_STATUS=./config.status}" 17540ac_write_fail=0 17541ac_clean_files_save=$ac_clean_files 17542ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17543{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17544$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17545as_write_fail=0 17546cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17547#! $SHELL 17548# Generated by $as_me. 17549# Run this file to recreate the current configuration. 17550# Compiler output produced by configure, useful for debugging 17551# configure, is in config.log if it exists. 17552 17553debug=false 17554ac_cs_recheck=false 17555ac_cs_silent=false 17556 17557SHELL=\${CONFIG_SHELL-$SHELL} 17558export SHELL 17559_ASEOF 17560cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17561## -------------------- ## 17562## M4sh Initialization. ## 17563## -------------------- ## 17564 17565# Be more Bourne compatible 17566DUALCASE=1; export DUALCASE # for MKS sh 17567if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17568 emulate sh 17569 NULLCMD=: 17570 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17571 # is contrary to our usage. Disable this feature. 17572 alias -g '${1+"$@"}'='"$@"' 17573 setopt NO_GLOB_SUBST 17574else 17575 case `(set -o) 2>/dev/null` in #( 17576 *posix*) : 17577 set -o posix ;; #( 17578 *) : 17579 ;; 17580esac 17581fi 17582 17583 17584as_nl=' 17585' 17586export as_nl 17587# Printing a long string crashes Solaris 7 /usr/bin/printf. 17588as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17590as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17591# Prefer a ksh shell builtin over an external printf program on Solaris, 17592# but without wasting forks for bash or zsh. 17593if test -z "$BASH_VERSION$ZSH_VERSION" \ 17594 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17595 as_echo='print -r --' 17596 as_echo_n='print -rn --' 17597elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17598 as_echo='printf %s\n' 17599 as_echo_n='printf %s' 17600else 17601 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17602 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17603 as_echo_n='/usr/ucb/echo -n' 17604 else 17605 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17606 as_echo_n_body='eval 17607 arg=$1; 17608 case $arg in #( 17609 *"$as_nl"*) 17610 expr "X$arg" : "X\\(.*\\)$as_nl"; 17611 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17612 esac; 17613 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17614 ' 17615 export as_echo_n_body 17616 as_echo_n='sh -c $as_echo_n_body as_echo' 17617 fi 17618 export as_echo_body 17619 as_echo='sh -c $as_echo_body as_echo' 17620fi 17621 17622# The user is always right. 17623if test "${PATH_SEPARATOR+set}" != set; then 17624 PATH_SEPARATOR=: 17625 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17626 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17627 PATH_SEPARATOR=';' 17628 } 17629fi 17630 17631 17632# IFS 17633# We need space, tab and new line, in precisely that order. Quoting is 17634# there to prevent editors from complaining about space-tab. 17635# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17636# splitting by setting IFS to empty value.) 17637IFS=" "" $as_nl" 17638 17639# Find who we are. Look in the path if we contain no directory separator. 17640as_myself= 17641case $0 in #(( 17642 *[\\/]* ) as_myself=$0 ;; 17643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17644for as_dir in $PATH 17645do 17646 IFS=$as_save_IFS 17647 test -z "$as_dir" && as_dir=. 17648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17649 done 17650IFS=$as_save_IFS 17651 17652 ;; 17653esac 17654# We did not find ourselves, most probably we were run as `sh COMMAND' 17655# in which case we are not to be found in the path. 17656if test "x$as_myself" = x; then 17657 as_myself=$0 17658fi 17659if test ! -f "$as_myself"; then 17660 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17661 exit 1 17662fi 17663 17664# Unset variables that we do not need and which cause bugs (e.g. in 17665# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17666# suppresses any "Segmentation fault" message there. '((' could 17667# trigger a bug in pdksh 5.2.14. 17668for as_var in BASH_ENV ENV MAIL MAILPATH 17669do eval test x\${$as_var+set} = xset \ 17670 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17671done 17672PS1='$ ' 17673PS2='> ' 17674PS4='+ ' 17675 17676# NLS nuisances. 17677LC_ALL=C 17678export LC_ALL 17679LANGUAGE=C 17680export LANGUAGE 17681 17682# CDPATH. 17683(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17684 17685 17686# as_fn_error STATUS ERROR [LINENO LOG_FD] 17687# ---------------------------------------- 17688# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17689# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17690# script with STATUS, using 1 if that was 0. 17691as_fn_error () 17692{ 17693 as_status=$1; test $as_status -eq 0 && as_status=1 17694 if test "$4"; then 17695 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17696 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17697 fi 17698 $as_echo "$as_me: error: $2" >&2 17699 as_fn_exit $as_status 17700} # as_fn_error 17701 17702 17703# as_fn_set_status STATUS 17704# ----------------------- 17705# Set $? to STATUS, without forking. 17706as_fn_set_status () 17707{ 17708 return $1 17709} # as_fn_set_status 17710 17711# as_fn_exit STATUS 17712# ----------------- 17713# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17714as_fn_exit () 17715{ 17716 set +e 17717 as_fn_set_status $1 17718 exit $1 17719} # as_fn_exit 17720 17721# as_fn_unset VAR 17722# --------------- 17723# Portably unset VAR. 17724as_fn_unset () 17725{ 17726 { eval $1=; unset $1;} 17727} 17728as_unset=as_fn_unset 17729# as_fn_append VAR VALUE 17730# ---------------------- 17731# Append the text in VALUE to the end of the definition contained in VAR. Take 17732# advantage of any shell optimizations that allow amortized linear growth over 17733# repeated appends, instead of the typical quadratic growth present in naive 17734# implementations. 17735if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17736 eval 'as_fn_append () 17737 { 17738 eval $1+=\$2 17739 }' 17740else 17741 as_fn_append () 17742 { 17743 eval $1=\$$1\$2 17744 } 17745fi # as_fn_append 17746 17747# as_fn_arith ARG... 17748# ------------------ 17749# Perform arithmetic evaluation on the ARGs, and store the result in the 17750# global $as_val. Take advantage of shells that can avoid forks. The arguments 17751# must be portable across $(()) and expr. 17752if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17753 eval 'as_fn_arith () 17754 { 17755 as_val=$(( $* )) 17756 }' 17757else 17758 as_fn_arith () 17759 { 17760 as_val=`expr "$@" || test $? -eq 1` 17761 } 17762fi # as_fn_arith 17763 17764 17765if expr a : '\(a\)' >/dev/null 2>&1 && 17766 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17767 as_expr=expr 17768else 17769 as_expr=false 17770fi 17771 17772if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17773 as_basename=basename 17774else 17775 as_basename=false 17776fi 17777 17778if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17779 as_dirname=dirname 17780else 17781 as_dirname=false 17782fi 17783 17784as_me=`$as_basename -- "$0" || 17785$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17786 X"$0" : 'X\(//\)$' \| \ 17787 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17788$as_echo X/"$0" | 17789 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17790 s//\1/ 17791 q 17792 } 17793 /^X\/\(\/\/\)$/{ 17794 s//\1/ 17795 q 17796 } 17797 /^X\/\(\/\).*/{ 17798 s//\1/ 17799 q 17800 } 17801 s/.*/./; q'` 17802 17803# Avoid depending upon Character Ranges. 17804as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17806as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17807as_cr_digits='0123456789' 17808as_cr_alnum=$as_cr_Letters$as_cr_digits 17809 17810ECHO_C= ECHO_N= ECHO_T= 17811case `echo -n x` in #((((( 17812-n*) 17813 case `echo 'xy\c'` in 17814 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17815 xy) ECHO_C='\c';; 17816 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17817 ECHO_T=' ';; 17818 esac;; 17819*) 17820 ECHO_N='-n';; 17821esac 17822 17823rm -f conf$$ conf$$.exe conf$$.file 17824if test -d conf$$.dir; then 17825 rm -f conf$$.dir/conf$$.file 17826else 17827 rm -f conf$$.dir 17828 mkdir conf$$.dir 2>/dev/null 17829fi 17830if (echo >conf$$.file) 2>/dev/null; then 17831 if ln -s conf$$.file conf$$ 2>/dev/null; then 17832 as_ln_s='ln -s' 17833 # ... but there are two gotchas: 17834 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17835 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17836 # In both cases, we have to default to `cp -pR'. 17837 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17838 as_ln_s='cp -pR' 17839 elif ln conf$$.file conf$$ 2>/dev/null; then 17840 as_ln_s=ln 17841 else 17842 as_ln_s='cp -pR' 17843 fi 17844else 17845 as_ln_s='cp -pR' 17846fi 17847rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17848rmdir conf$$.dir 2>/dev/null 17849 17850 17851# as_fn_mkdir_p 17852# ------------- 17853# Create "$as_dir" as a directory, including parents if necessary. 17854as_fn_mkdir_p () 17855{ 17856 17857 case $as_dir in #( 17858 -*) as_dir=./$as_dir;; 17859 esac 17860 test -d "$as_dir" || eval $as_mkdir_p || { 17861 as_dirs= 17862 while :; do 17863 case $as_dir in #( 17864 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17865 *) as_qdir=$as_dir;; 17866 esac 17867 as_dirs="'$as_qdir' $as_dirs" 17868 as_dir=`$as_dirname -- "$as_dir" || 17869$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17870 X"$as_dir" : 'X\(//\)[^/]' \| \ 17871 X"$as_dir" : 'X\(//\)$' \| \ 17872 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17873$as_echo X"$as_dir" | 17874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17875 s//\1/ 17876 q 17877 } 17878 /^X\(\/\/\)[^/].*/{ 17879 s//\1/ 17880 q 17881 } 17882 /^X\(\/\/\)$/{ 17883 s//\1/ 17884 q 17885 } 17886 /^X\(\/\).*/{ 17887 s//\1/ 17888 q 17889 } 17890 s/.*/./; q'` 17891 test -d "$as_dir" && break 17892 done 17893 test -z "$as_dirs" || eval "mkdir $as_dirs" 17894 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17895 17896 17897} # as_fn_mkdir_p 17898if mkdir -p . 2>/dev/null; then 17899 as_mkdir_p='mkdir -p "$as_dir"' 17900else 17901 test -d ./-p && rmdir ./-p 17902 as_mkdir_p=false 17903fi 17904 17905 17906# as_fn_executable_p FILE 17907# ----------------------- 17908# Test if FILE is an executable regular file. 17909as_fn_executable_p () 17910{ 17911 test -f "$1" && test -x "$1" 17912} # as_fn_executable_p 17913as_test_x='test -x' 17914as_executable_p=as_fn_executable_p 17915 17916# Sed expression to map a string onto a valid CPP name. 17917as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17918 17919# Sed expression to map a string onto a valid variable name. 17920as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17921 17922 17923exec 6>&1 17924## ----------------------------------- ## 17925## Main body of $CONFIG_STATUS script. ## 17926## ----------------------------------- ## 17927_ASEOF 17928test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17929 17930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17931# Save the log message, to keep $0 and so on meaningful, and to 17932# report actual input values of CONFIG_FILES etc. instead of their 17933# values after options handling. 17934ac_log=" 17935This file was extended by pmacct $as_me 1.7.5-git, which was 17936generated by GNU Autoconf 2.69. Invocation command line was 17937 17938 CONFIG_FILES = $CONFIG_FILES 17939 CONFIG_HEADERS = $CONFIG_HEADERS 17940 CONFIG_LINKS = $CONFIG_LINKS 17941 CONFIG_COMMANDS = $CONFIG_COMMANDS 17942 $ $0 $@ 17943 17944on `(hostname || uname -n) 2>/dev/null | sed 1q` 17945" 17946 17947_ACEOF 17948 17949case $ac_config_files in *" 17950"*) set x $ac_config_files; shift; ac_config_files=$*;; 17951esac 17952 17953 17954 17955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17956# Files that config.status was made for. 17957config_files="$ac_config_files" 17958config_commands="$ac_config_commands" 17959 17960_ACEOF 17961 17962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17963ac_cs_usage="\ 17964\`$as_me' instantiates files and other configuration actions 17965from templates according to the current configuration. Unless the files 17966and actions are specified as TAGs, all are instantiated by default. 17967 17968Usage: $0 [OPTION]... [TAG]... 17969 17970 -h, --help print this help, then exit 17971 -V, --version print version number and configuration settings, then exit 17972 --config print configuration, then exit 17973 -q, --quiet, --silent 17974 do not print progress messages 17975 -d, --debug don't remove temporary files 17976 --recheck update $as_me by reconfiguring in the same conditions 17977 --file=FILE[:TEMPLATE] 17978 instantiate the configuration file FILE 17979 17980Configuration files: 17981$config_files 17982 17983Configuration commands: 17984$config_commands 17985 17986Report bugs to <paolo@pmacct.net>." 17987 17988_ACEOF 17989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17990ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17991ac_cs_version="\\ 17992pmacct config.status 1.7.5-git 17993configured by $0, generated by GNU Autoconf 2.69, 17994 with options \\"\$ac_cs_config\\" 17995 17996Copyright (C) 2012 Free Software Foundation, Inc. 17997This config.status script is free software; the Free Software Foundation 17998gives unlimited permission to copy, distribute and modify it." 17999 18000ac_pwd='$ac_pwd' 18001srcdir='$srcdir' 18002INSTALL='$INSTALL' 18003MKDIR_P='$MKDIR_P' 18004AWK='$AWK' 18005test -n "\$AWK" || AWK=awk 18006_ACEOF 18007 18008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18009# The default lists apply if the user does not specify any file. 18010ac_need_defaults=: 18011while test $# != 0 18012do 18013 case $1 in 18014 --*=?*) 18015 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18017 ac_shift=: 18018 ;; 18019 --*=) 18020 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18021 ac_optarg= 18022 ac_shift=: 18023 ;; 18024 *) 18025 ac_option=$1 18026 ac_optarg=$2 18027 ac_shift=shift 18028 ;; 18029 esac 18030 18031 case $ac_option in 18032 # Handling of the options. 18033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18034 ac_cs_recheck=: ;; 18035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18036 $as_echo "$ac_cs_version"; exit ;; 18037 --config | --confi | --conf | --con | --co | --c ) 18038 $as_echo "$ac_cs_config"; exit ;; 18039 --debug | --debu | --deb | --de | --d | -d ) 18040 debug=: ;; 18041 --file | --fil | --fi | --f ) 18042 $ac_shift 18043 case $ac_optarg in 18044 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18045 '') as_fn_error $? "missing file argument" ;; 18046 esac 18047 as_fn_append CONFIG_FILES " '$ac_optarg'" 18048 ac_need_defaults=false;; 18049 --he | --h | --help | --hel | -h ) 18050 $as_echo "$ac_cs_usage"; exit ;; 18051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18052 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18053 ac_cs_silent=: ;; 18054 18055 # This is an error. 18056 -*) as_fn_error $? "unrecognized option: \`$1' 18057Try \`$0 --help' for more information." ;; 18058 18059 *) as_fn_append ac_config_targets " $1" 18060 ac_need_defaults=false ;; 18061 18062 esac 18063 shift 18064done 18065 18066ac_configure_extra_args= 18067 18068if $ac_cs_silent; then 18069 exec 6>/dev/null 18070 ac_configure_extra_args="$ac_configure_extra_args --silent" 18071fi 18072 18073_ACEOF 18074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18075if \$ac_cs_recheck; then 18076 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18077 shift 18078 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18079 CONFIG_SHELL='$SHELL' 18080 export CONFIG_SHELL 18081 exec "\$@" 18082fi 18083 18084_ACEOF 18085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18086exec 5>>config.log 18087{ 18088 echo 18089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18090## Running $as_me. ## 18091_ASBOX 18092 $as_echo "$ac_log" 18093} >&5 18094 18095_ACEOF 18096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18097# 18098# INIT-COMMANDS 18099# 18100AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18101 18102 18103# The HP-UX ksh and POSIX shell print the target directory to stdout 18104# if CDPATH is set. 18105(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18106 18107sed_quote_subst='$sed_quote_subst' 18108double_quote_subst='$double_quote_subst' 18109delay_variable_subst='$delay_variable_subst' 18110macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18111macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18112enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18113enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18114pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18115enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18116shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18117SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18118ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18119PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18120host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18121host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18122host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18123build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18124build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18125build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18126SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18127Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18128GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18129EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18130FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18131LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18132NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18133LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18134max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18135ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18136exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18137lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18138lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18139lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18140lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18141lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18142reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18143reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18144OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18145deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18146file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18147file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18148want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18149DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18150sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18151AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18152AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18153archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18154STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18155RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18156old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18157old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18158old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18159lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18160CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18161CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18162compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18163GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18164lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18165lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18166lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18167lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18168lt_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"`' 18169lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18170nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18171lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18172lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18173objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18174MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18175lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18176lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18177lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18178lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18179lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18180need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18181MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18182DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18183NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18184LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18185OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18186OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18187libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18188shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18189extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18190archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18191enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18192export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18193whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18194compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18195old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18196old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18197archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18198archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18199module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18200module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18201with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18202allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18203no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18204hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18205hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18206hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18207hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18208hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18209hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18210hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18211inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18212link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18213always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18214export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18215exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18216include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18217prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18218postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18219file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18220variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18221need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18222need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18223version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18224runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18225shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18226shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18227libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18228library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18229soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18230install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18231postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18232postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18233finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18234finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18235hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18236sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18237configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18238configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18239hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18240enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18241enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18242enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18243old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18244striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18245 18246LTCC='$LTCC' 18247LTCFLAGS='$LTCFLAGS' 18248compiler='$compiler_DEFAULT' 18249 18250# A function that is used when there is no print builtin or printf. 18251func_fallback_echo () 18252{ 18253 eval 'cat <<_LTECHO_EOF 18254\$1 18255_LTECHO_EOF' 18256} 18257 18258# Quote evaled strings. 18259for var in SHELL \ 18260ECHO \ 18261PATH_SEPARATOR \ 18262SED \ 18263GREP \ 18264EGREP \ 18265FGREP \ 18266LD \ 18267NM \ 18268LN_S \ 18269lt_SP2NL \ 18270lt_NL2SP \ 18271reload_flag \ 18272OBJDUMP \ 18273deplibs_check_method \ 18274file_magic_cmd \ 18275file_magic_glob \ 18276want_nocaseglob \ 18277DLLTOOL \ 18278sharedlib_from_linklib_cmd \ 18279AR \ 18280AR_FLAGS \ 18281archiver_list_spec \ 18282STRIP \ 18283RANLIB \ 18284CC \ 18285CFLAGS \ 18286compiler \ 18287lt_cv_sys_global_symbol_pipe \ 18288lt_cv_sys_global_symbol_to_cdecl \ 18289lt_cv_sys_global_symbol_to_import \ 18290lt_cv_sys_global_symbol_to_c_name_address \ 18291lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18292lt_cv_nm_interface \ 18293nm_file_list_spec \ 18294lt_cv_truncate_bin \ 18295lt_prog_compiler_no_builtin_flag \ 18296lt_prog_compiler_pic \ 18297lt_prog_compiler_wl \ 18298lt_prog_compiler_static \ 18299lt_cv_prog_compiler_c_o \ 18300need_locks \ 18301MANIFEST_TOOL \ 18302DSYMUTIL \ 18303NMEDIT \ 18304LIPO \ 18305OTOOL \ 18306OTOOL64 \ 18307shrext_cmds \ 18308export_dynamic_flag_spec \ 18309whole_archive_flag_spec \ 18310compiler_needs_object \ 18311with_gnu_ld \ 18312allow_undefined_flag \ 18313no_undefined_flag \ 18314hardcode_libdir_flag_spec \ 18315hardcode_libdir_separator \ 18316exclude_expsyms \ 18317include_expsyms \ 18318file_list_spec \ 18319variables_saved_for_relink \ 18320libname_spec \ 18321library_names_spec \ 18322soname_spec \ 18323install_override_mode \ 18324finish_eval \ 18325old_striplib \ 18326striplib; do 18327 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18328 *[\\\\\\\`\\"\\\$]*) 18329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18330 ;; 18331 *) 18332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18333 ;; 18334 esac 18335done 18336 18337# Double-quote double-evaled strings. 18338for var in reload_cmds \ 18339old_postinstall_cmds \ 18340old_postuninstall_cmds \ 18341old_archive_cmds \ 18342extract_expsyms_cmds \ 18343old_archive_from_new_cmds \ 18344old_archive_from_expsyms_cmds \ 18345archive_cmds \ 18346archive_expsym_cmds \ 18347module_cmds \ 18348module_expsym_cmds \ 18349export_symbols_cmds \ 18350prelink_cmds \ 18351postlink_cmds \ 18352postinstall_cmds \ 18353postuninstall_cmds \ 18354finish_cmds \ 18355sys_lib_search_path_spec \ 18356configure_time_dlsearch_path \ 18357configure_time_lt_sys_library_path; do 18358 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18359 *[\\\\\\\`\\"\\\$]*) 18360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18361 ;; 18362 *) 18363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18364 ;; 18365 esac 18366done 18367 18368ac_aux_dir='$ac_aux_dir' 18369 18370# See if we are running on zsh, and set the options that allow our 18371# commands through without removal of \ escapes INIT. 18372if test -n "\${ZSH_VERSION+set}"; then 18373 setopt NO_GLOB_SUBST 18374fi 18375 18376 18377 PACKAGE='$PACKAGE' 18378 VERSION='$VERSION' 18379 RM='$RM' 18380 ofile='$ofile' 18381 18382 18383 18384 18385_ACEOF 18386 18387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18388 18389# Handling of arguments. 18390for ac_config_target in $ac_config_targets 18391do 18392 case $ac_config_target in 18393 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18394 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18395 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18396 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18397 "src/nfprobe_plugin/Makefile") CONFIG_FILES="$CONFIG_FILES src/nfprobe_plugin/Makefile" ;; 18398 "src/sfprobe_plugin/Makefile") CONFIG_FILES="$CONFIG_FILES src/sfprobe_plugin/Makefile" ;; 18399 "src/bgp/Makefile") CONFIG_FILES="$CONFIG_FILES src/bgp/Makefile" ;; 18400 "src/tee_plugin/Makefile") CONFIG_FILES="$CONFIG_FILES src/tee_plugin/Makefile" ;; 18401 "src/isis/Makefile") CONFIG_FILES="$CONFIG_FILES src/isis/Makefile" ;; 18402 "src/bmp/Makefile") CONFIG_FILES="$CONFIG_FILES src/bmp/Makefile" ;; 18403 "src/rpki/Makefile") CONFIG_FILES="$CONFIG_FILES src/rpki/Makefile" ;; 18404 "src/telemetry/Makefile") CONFIG_FILES="$CONFIG_FILES src/telemetry/Makefile" ;; 18405 "src/ndpi/Makefile") CONFIG_FILES="$CONFIG_FILES src/ndpi/Makefile" ;; 18406 "src/filters/Makefile") CONFIG_FILES="$CONFIG_FILES src/filters/Makefile" ;; 18407 "examples/lg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/lg/Makefile" ;; 18408 "examples/custom/Makefile") CONFIG_FILES="$CONFIG_FILES examples/custom/Makefile" ;; 18409 18410 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18411 esac 18412done 18413 18414 18415# If the user did not use the arguments to specify the items to instantiate, 18416# then the envvar interface is used. Set only those that are not. 18417# We use the long form for the default assignment because of an extremely 18418# bizarre bug on SunOS 4.1.3. 18419if $ac_need_defaults; then 18420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18421 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18422fi 18423 18424# Have a temporary directory for convenience. Make it in the build tree 18425# simply because there is no reason against having it here, and in addition, 18426# creating and moving files from /tmp can sometimes cause problems. 18427# Hook for its removal unless debugging. 18428# Note that there is a small window in which the directory will not be cleaned: 18429# after its creation but before its name has been assigned to `$tmp'. 18430$debug || 18431{ 18432 tmp= ac_tmp= 18433 trap 'exit_status=$? 18434 : "${ac_tmp:=$tmp}" 18435 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18436' 0 18437 trap 'as_fn_exit 1' 1 2 13 15 18438} 18439# Create a (secure) tmp directory for tmp files. 18440 18441{ 18442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18443 test -d "$tmp" 18444} || 18445{ 18446 tmp=./conf$$-$RANDOM 18447 (umask 077 && mkdir "$tmp") 18448} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18449ac_tmp=$tmp 18450 18451# Set up the scripts for CONFIG_FILES section. 18452# No need to generate them if there are no CONFIG_FILES. 18453# This happens for instance with `./config.status config.h'. 18454if test -n "$CONFIG_FILES"; then 18455 18456 18457ac_cr=`echo X | tr X '\015'` 18458# On cygwin, bash can eat \r inside `` if the user requested igncr. 18459# But we know of no other shell where ac_cr would be empty at this 18460# point, so we can use a bashism as a fallback. 18461if test "x$ac_cr" = x; then 18462 eval ac_cr=\$\'\\r\' 18463fi 18464ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18465if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18466 ac_cs_awk_cr='\\r' 18467else 18468 ac_cs_awk_cr=$ac_cr 18469fi 18470 18471echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18472_ACEOF 18473 18474 18475{ 18476 echo "cat >conf$$subs.awk <<_ACEOF" && 18477 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18478 echo "_ACEOF" 18479} >conf$$subs.sh || 18480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18481ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18482ac_delim='%!_!# ' 18483for ac_last_try in false false false false false :; do 18484 . ./conf$$subs.sh || 18485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18486 18487 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18488 if test $ac_delim_n = $ac_delim_num; then 18489 break 18490 elif $ac_last_try; then 18491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18492 else 18493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18494 fi 18495done 18496rm -f conf$$subs.sh 18497 18498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18499cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18500_ACEOF 18501sed -n ' 18502h 18503s/^/S["/; s/!.*/"]=/ 18504p 18505g 18506s/^[^!]*!// 18507:repl 18508t repl 18509s/'"$ac_delim"'$// 18510t delim 18511:nl 18512h 18513s/\(.\{148\}\)..*/\1/ 18514t more1 18515s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18516p 18517n 18518b repl 18519:more1 18520s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18521p 18522g 18523s/.\{148\}// 18524t nl 18525:delim 18526h 18527s/\(.\{148\}\)..*/\1/ 18528t more2 18529s/["\\]/\\&/g; s/^/"/; s/$/"/ 18530p 18531b 18532:more2 18533s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18534p 18535g 18536s/.\{148\}// 18537t delim 18538' <conf$$subs.awk | sed ' 18539/^[^""]/{ 18540 N 18541 s/\n// 18542} 18543' >>$CONFIG_STATUS || ac_write_fail=1 18544rm -f conf$$subs.awk 18545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18546_ACAWK 18547cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18548 for (key in S) S_is_set[key] = 1 18549 FS = "" 18550 18551} 18552{ 18553 line = $ 0 18554 nfields = split(line, field, "@") 18555 substed = 0 18556 len = length(field[1]) 18557 for (i = 2; i < nfields; i++) { 18558 key = field[i] 18559 keylen = length(key) 18560 if (S_is_set[key]) { 18561 value = S[key] 18562 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18563 len += length(value) + length(field[++i]) 18564 substed = 1 18565 } else 18566 len += 1 + keylen 18567 } 18568 18569 print line 18570} 18571 18572_ACAWK 18573_ACEOF 18574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18575if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18576 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18577else 18578 cat 18579fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18580 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18581_ACEOF 18582 18583# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18584# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18585# trailing colons and then remove the whole line if VPATH becomes empty 18586# (actually we leave an empty line to preserve line numbers). 18587if test "x$srcdir" = x.; then 18588 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18589h 18590s/// 18591s/^/:/ 18592s/[ ]*$/:/ 18593s/:\$(srcdir):/:/g 18594s/:\${srcdir}:/:/g 18595s/:@srcdir@:/:/g 18596s/^:*// 18597s/:*$// 18598x 18599s/\(=[ ]*\).*/\1/ 18600G 18601s/\n// 18602s/^[^=]*=[ ]*$// 18603}' 18604fi 18605 18606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18607fi # test -n "$CONFIG_FILES" 18608 18609 18610eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 18611shift 18612for ac_tag 18613do 18614 case $ac_tag in 18615 :[FHLC]) ac_mode=$ac_tag; continue;; 18616 esac 18617 case $ac_mode$ac_tag in 18618 :[FHL]*:*);; 18619 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18620 :[FH]-) ac_tag=-:-;; 18621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18622 esac 18623 ac_save_IFS=$IFS 18624 IFS=: 18625 set x $ac_tag 18626 IFS=$ac_save_IFS 18627 shift 18628 ac_file=$1 18629 shift 18630 18631 case $ac_mode in 18632 :L) ac_source=$1;; 18633 :[FH]) 18634 ac_file_inputs= 18635 for ac_f 18636 do 18637 case $ac_f in 18638 -) ac_f="$ac_tmp/stdin";; 18639 *) # Look for the file first in the build tree, then in the source tree 18640 # (if the path is not absolute). The absolute path cannot be DOS-style, 18641 # because $ac_f cannot contain `:'. 18642 test -f "$ac_f" || 18643 case $ac_f in 18644 [\\/$]*) false;; 18645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18646 esac || 18647 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18648 esac 18649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18650 as_fn_append ac_file_inputs " '$ac_f'" 18651 done 18652 18653 # Let's still pretend it is `configure' which instantiates (i.e., don't 18654 # use $as_me), people would be surprised to read: 18655 # /* config.h. Generated by config.status. */ 18656 configure_input='Generated from '` 18657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18658 `' by configure.' 18659 if test x"$ac_file" != x-; then 18660 configure_input="$ac_file. $configure_input" 18661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18662$as_echo "$as_me: creating $ac_file" >&6;} 18663 fi 18664 # Neutralize special characters interpreted by sed in replacement strings. 18665 case $configure_input in #( 18666 *\&* | *\|* | *\\* ) 18667 ac_sed_conf_input=`$as_echo "$configure_input" | 18668 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18669 *) ac_sed_conf_input=$configure_input;; 18670 esac 18671 18672 case $ac_tag in 18673 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18675 esac 18676 ;; 18677 esac 18678 18679 ac_dir=`$as_dirname -- "$ac_file" || 18680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18681 X"$ac_file" : 'X\(//\)[^/]' \| \ 18682 X"$ac_file" : 'X\(//\)$' \| \ 18683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18684$as_echo X"$ac_file" | 18685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18686 s//\1/ 18687 q 18688 } 18689 /^X\(\/\/\)[^/].*/{ 18690 s//\1/ 18691 q 18692 } 18693 /^X\(\/\/\)$/{ 18694 s//\1/ 18695 q 18696 } 18697 /^X\(\/\).*/{ 18698 s//\1/ 18699 q 18700 } 18701 s/.*/./; q'` 18702 as_dir="$ac_dir"; as_fn_mkdir_p 18703 ac_builddir=. 18704 18705case "$ac_dir" in 18706.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18707*) 18708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18709 # A ".." for each directory in $ac_dir_suffix. 18710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18711 case $ac_top_builddir_sub in 18712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18714 esac ;; 18715esac 18716ac_abs_top_builddir=$ac_pwd 18717ac_abs_builddir=$ac_pwd$ac_dir_suffix 18718# for backward compatibility: 18719ac_top_builddir=$ac_top_build_prefix 18720 18721case $srcdir in 18722 .) # We are building in place. 18723 ac_srcdir=. 18724 ac_top_srcdir=$ac_top_builddir_sub 18725 ac_abs_top_srcdir=$ac_pwd ;; 18726 [\\/]* | ?:[\\/]* ) # Absolute name. 18727 ac_srcdir=$srcdir$ac_dir_suffix; 18728 ac_top_srcdir=$srcdir 18729 ac_abs_top_srcdir=$srcdir ;; 18730 *) # Relative name. 18731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18732 ac_top_srcdir=$ac_top_build_prefix$srcdir 18733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18734esac 18735ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18736 18737 18738 case $ac_mode in 18739 :F) 18740 # 18741 # CONFIG_FILE 18742 # 18743 18744 case $INSTALL in 18745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18746 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18747 esac 18748 ac_MKDIR_P=$MKDIR_P 18749 case $MKDIR_P in 18750 [\\/$]* | ?:[\\/]* ) ;; 18751 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18752 esac 18753_ACEOF 18754 18755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18756# If the template does not know about datarootdir, expand it. 18757# FIXME: This hack should be removed a few years after 2.60. 18758ac_datarootdir_hack=; ac_datarootdir_seen= 18759ac_sed_dataroot=' 18760/datarootdir/ { 18761 p 18762 q 18763} 18764/@datadir@/p 18765/@docdir@/p 18766/@infodir@/p 18767/@localedir@/p 18768/@mandir@/p' 18769case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18770*datarootdir*) ac_datarootdir_seen=yes;; 18771*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18773$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18774_ACEOF 18775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18776 ac_datarootdir_hack=' 18777 s&@datadir@&$datadir&g 18778 s&@docdir@&$docdir&g 18779 s&@infodir@&$infodir&g 18780 s&@localedir@&$localedir&g 18781 s&@mandir@&$mandir&g 18782 s&\\\${datarootdir}&$datarootdir&g' ;; 18783esac 18784_ACEOF 18785 18786# Neutralize VPATH when `$srcdir' = `.'. 18787# Shell code in configure.ac might set extrasub. 18788# FIXME: do we really want to maintain this feature? 18789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18790ac_sed_extra="$ac_vpsub 18791$extrasub 18792_ACEOF 18793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18794:t 18795/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18796s|@configure_input@|$ac_sed_conf_input|;t t 18797s&@top_builddir@&$ac_top_builddir_sub&;t t 18798s&@top_build_prefix@&$ac_top_build_prefix&;t t 18799s&@srcdir@&$ac_srcdir&;t t 18800s&@abs_srcdir@&$ac_abs_srcdir&;t t 18801s&@top_srcdir@&$ac_top_srcdir&;t t 18802s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18803s&@builddir@&$ac_builddir&;t t 18804s&@abs_builddir@&$ac_abs_builddir&;t t 18805s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18806s&@INSTALL@&$ac_INSTALL&;t t 18807s&@MKDIR_P@&$ac_MKDIR_P&;t t 18808$ac_datarootdir_hack 18809" 18810eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18811 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18812 18813test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18814 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18816 "$ac_tmp/out"`; test -z "$ac_out"; } && 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18818which seems to be undefined. Please make sure it is defined" >&5 18819$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18820which seems to be undefined. Please make sure it is defined" >&2;} 18821 18822 rm -f "$ac_tmp/stdin" 18823 case $ac_file in 18824 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18825 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18826 esac \ 18827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18828 ;; 18829 18830 18831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18832$as_echo "$as_me: executing $ac_file commands" >&6;} 18833 ;; 18834 esac 18835 18836 18837 case $ac_file$ac_mode in 18838 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18839 # Older Autoconf quotes --file arguments for eval, but not when files 18840 # are listed without --file. Let's play safe and only enable the eval 18841 # if we detect the quoting. 18842 # TODO: see whether this extra hack can be removed once we start 18843 # requiring Autoconf 2.70 or later. 18844 case $CONFIG_FILES in #( 18845 *\'*) : 18846 eval set x "$CONFIG_FILES" ;; #( 18847 *) : 18848 set x $CONFIG_FILES ;; #( 18849 *) : 18850 ;; 18851esac 18852 shift 18853 # Used to flag and report bootstrapping failures. 18854 am_rc=0 18855 for am_mf 18856 do 18857 # Strip MF so we end up with the name of the file. 18858 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18859 # Check whether this is an Automake generated Makefile which includes 18860 # dependency-tracking related rules and includes. 18861 # Grep'ing the whole file directly is not great: AIX grep has a line 18862 # limit of 2048, but all sed's we know have understand at least 4000. 18863 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18864 || continue 18865 am_dirpart=`$as_dirname -- "$am_mf" || 18866$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18867 X"$am_mf" : 'X\(//\)[^/]' \| \ 18868 X"$am_mf" : 'X\(//\)$' \| \ 18869 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18870$as_echo X"$am_mf" | 18871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18872 s//\1/ 18873 q 18874 } 18875 /^X\(\/\/\)[^/].*/{ 18876 s//\1/ 18877 q 18878 } 18879 /^X\(\/\/\)$/{ 18880 s//\1/ 18881 q 18882 } 18883 /^X\(\/\).*/{ 18884 s//\1/ 18885 q 18886 } 18887 s/.*/./; q'` 18888 am_filepart=`$as_basename -- "$am_mf" || 18889$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18890 X"$am_mf" : 'X\(//\)$' \| \ 18891 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18892$as_echo X/"$am_mf" | 18893 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18894 s//\1/ 18895 q 18896 } 18897 /^X\/\(\/\/\)$/{ 18898 s//\1/ 18899 q 18900 } 18901 /^X\/\(\/\).*/{ 18902 s//\1/ 18903 q 18904 } 18905 s/.*/./; q'` 18906 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18907 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18908 | $MAKE -f - am--depfiles" >&5 18909 (cd "$am_dirpart" \ 18910 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18911 | $MAKE -f - am--depfiles) >&5 2>&5 18912 ac_status=$? 18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18914 (exit $ac_status); } || am_rc=$? 18915 done 18916 if test $am_rc -ne 0; then 18917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18919as_fn_error $? "Something went wrong bootstrapping makefile fragments 18920 for automatic dependency tracking. Try re-running configure with the 18921 '--disable-dependency-tracking' option to at least be able to build 18922 the package (albeit without support for automatic dependency tracking). 18923See \`config.log' for more details" "$LINENO" 5; } 18924 fi 18925 { am_dirpart=; unset am_dirpart;} 18926 { am_filepart=; unset am_filepart;} 18927 { am_mf=; unset am_mf;} 18928 { am_rc=; unset am_rc;} 18929 rm -f conftest-deps.mk 18930} 18931 ;; 18932 "libtool":C) 18933 18934 # See if we are running on zsh, and set the options that allow our 18935 # commands through without removal of \ escapes. 18936 if test -n "${ZSH_VERSION+set}"; then 18937 setopt NO_GLOB_SUBST 18938 fi 18939 18940 cfgfile=${ofile}T 18941 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18942 $RM "$cfgfile" 18943 18944 cat <<_LT_EOF >> "$cfgfile" 18945#! $SHELL 18946# Generated automatically by $as_me ($PACKAGE) $VERSION 18947# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18948 18949# Provide generalized library-building support services. 18950# Written by Gordon Matzigkeit, 1996 18951 18952# Copyright (C) 2014 Free Software Foundation, Inc. 18953# This is free software; see the source for copying conditions. There is NO 18954# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18955 18956# GNU Libtool is free software; you can redistribute it and/or modify 18957# it under the terms of the GNU General Public License as published by 18958# the Free Software Foundation; either version 2 of of the License, or 18959# (at your option) any later version. 18960# 18961# As a special exception to the GNU General Public License, if you 18962# distribute this file as part of a program or library that is built 18963# using GNU Libtool, you may include this file under the same 18964# distribution terms that you use for the rest of that program. 18965# 18966# GNU Libtool is distributed in the hope that it will be useful, but 18967# WITHOUT ANY WARRANTY; without even the implied warranty of 18968# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18969# GNU General Public License for more details. 18970# 18971# You should have received a copy of the GNU General Public License 18972# along with this program. If not, see <http://www.gnu.org/licenses/>. 18973 18974 18975# The names of the tagged configurations supported by this script. 18976available_tags='' 18977 18978# Configured defaults for sys_lib_dlsearch_path munging. 18979: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18980 18981# ### BEGIN LIBTOOL CONFIG 18982 18983# Which release of libtool.m4 was used? 18984macro_version=$macro_version 18985macro_revision=$macro_revision 18986 18987# Whether or not to build shared libraries. 18988build_libtool_libs=$enable_shared 18989 18990# Whether or not to build static libraries. 18991build_old_libs=$enable_static 18992 18993# What type of objects to build. 18994pic_mode=$pic_mode 18995 18996# Whether or not to optimize for fast installation. 18997fast_install=$enable_fast_install 18998 18999# Shared archive member basename,for filename based shared library versioning on AIX. 19000shared_archive_member_spec=$shared_archive_member_spec 19001 19002# Shell to use when invoking shell scripts. 19003SHELL=$lt_SHELL 19004 19005# An echo program that protects backslashes. 19006ECHO=$lt_ECHO 19007 19008# The PATH separator for the build system. 19009PATH_SEPARATOR=$lt_PATH_SEPARATOR 19010 19011# The host system. 19012host_alias=$host_alias 19013host=$host 19014host_os=$host_os 19015 19016# The build system. 19017build_alias=$build_alias 19018build=$build 19019build_os=$build_os 19020 19021# A sed program that does not truncate output. 19022SED=$lt_SED 19023 19024# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19025Xsed="\$SED -e 1s/^X//" 19026 19027# A grep program that handles long lines. 19028GREP=$lt_GREP 19029 19030# An ERE matcher. 19031EGREP=$lt_EGREP 19032 19033# A literal string matcher. 19034FGREP=$lt_FGREP 19035 19036# A BSD- or MS-compatible name lister. 19037NM=$lt_NM 19038 19039# Whether we need soft or hard links. 19040LN_S=$lt_LN_S 19041 19042# What is the maximum length of a command? 19043max_cmd_len=$max_cmd_len 19044 19045# Object file suffix (normally "o"). 19046objext=$ac_objext 19047 19048# Executable file suffix (normally ""). 19049exeext=$exeext 19050 19051# whether the shell understands "unset". 19052lt_unset=$lt_unset 19053 19054# turn spaces into newlines. 19055SP2NL=$lt_lt_SP2NL 19056 19057# turn newlines into spaces. 19058NL2SP=$lt_lt_NL2SP 19059 19060# convert \$build file names to \$host format. 19061to_host_file_cmd=$lt_cv_to_host_file_cmd 19062 19063# convert \$build files to toolchain format. 19064to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19065 19066# An object symbol dumper. 19067OBJDUMP=$lt_OBJDUMP 19068 19069# Method to check whether dependent libraries are shared objects. 19070deplibs_check_method=$lt_deplibs_check_method 19071 19072# Command to use when deplibs_check_method = "file_magic". 19073file_magic_cmd=$lt_file_magic_cmd 19074 19075# How to find potential files when deplibs_check_method = "file_magic". 19076file_magic_glob=$lt_file_magic_glob 19077 19078# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19079want_nocaseglob=$lt_want_nocaseglob 19080 19081# DLL creation program. 19082DLLTOOL=$lt_DLLTOOL 19083 19084# Command to associate shared and link libraries. 19085sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19086 19087# The archiver. 19088AR=$lt_AR 19089 19090# Flags to create an archive. 19091AR_FLAGS=$lt_AR_FLAGS 19092 19093# How to feed a file listing to the archiver. 19094archiver_list_spec=$lt_archiver_list_spec 19095 19096# A symbol stripping program. 19097STRIP=$lt_STRIP 19098 19099# Commands used to install an old-style archive. 19100RANLIB=$lt_RANLIB 19101old_postinstall_cmds=$lt_old_postinstall_cmds 19102old_postuninstall_cmds=$lt_old_postuninstall_cmds 19103 19104# Whether to use a lock for old archive extraction. 19105lock_old_archive_extraction=$lock_old_archive_extraction 19106 19107# A C compiler. 19108LTCC=$lt_CC 19109 19110# LTCC compiler flags. 19111LTCFLAGS=$lt_CFLAGS 19112 19113# Take the output of nm and produce a listing of raw symbols and C names. 19114global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19115 19116# Transform the output of nm in a proper C declaration. 19117global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19118 19119# Transform the output of nm into a list of symbols to manually relocate. 19120global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19121 19122# Transform the output of nm in a C name address pair. 19123global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19124 19125# Transform the output of nm in a C name address pair when lib prefix is needed. 19126global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19127 19128# The name lister interface. 19129nm_interface=$lt_lt_cv_nm_interface 19130 19131# Specify filename containing input files for \$NM. 19132nm_file_list_spec=$lt_nm_file_list_spec 19133 19134# The root where to search for dependent libraries,and where our libraries should be installed. 19135lt_sysroot=$lt_sysroot 19136 19137# Command to truncate a binary pipe. 19138lt_truncate_bin=$lt_lt_cv_truncate_bin 19139 19140# The name of the directory that contains temporary libtool files. 19141objdir=$objdir 19142 19143# Used to examine libraries when file_magic_cmd begins with "file". 19144MAGIC_CMD=$MAGIC_CMD 19145 19146# Must we lock files when doing compilation? 19147need_locks=$lt_need_locks 19148 19149# Manifest tool. 19150MANIFEST_TOOL=$lt_MANIFEST_TOOL 19151 19152# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19153DSYMUTIL=$lt_DSYMUTIL 19154 19155# Tool to change global to local symbols on Mac OS X. 19156NMEDIT=$lt_NMEDIT 19157 19158# Tool to manipulate fat objects and archives on Mac OS X. 19159LIPO=$lt_LIPO 19160 19161# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19162OTOOL=$lt_OTOOL 19163 19164# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19165OTOOL64=$lt_OTOOL64 19166 19167# Old archive suffix (normally "a"). 19168libext=$libext 19169 19170# Shared library suffix (normally ".so"). 19171shrext_cmds=$lt_shrext_cmds 19172 19173# The commands to extract the exported symbol list from a shared archive. 19174extract_expsyms_cmds=$lt_extract_expsyms_cmds 19175 19176# Variables whose values should be saved in libtool wrapper scripts and 19177# restored at link time. 19178variables_saved_for_relink=$lt_variables_saved_for_relink 19179 19180# Do we need the "lib" prefix for modules? 19181need_lib_prefix=$need_lib_prefix 19182 19183# Do we need a version for libraries? 19184need_version=$need_version 19185 19186# Library versioning type. 19187version_type=$version_type 19188 19189# Shared library runtime path variable. 19190runpath_var=$runpath_var 19191 19192# Shared library path variable. 19193shlibpath_var=$shlibpath_var 19194 19195# Is shlibpath searched before the hard-coded library search path? 19196shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19197 19198# Format of library name prefix. 19199libname_spec=$lt_libname_spec 19200 19201# List of archive names. First name is the real one, the rest are links. 19202# The last name is the one that the linker finds with -lNAME 19203library_names_spec=$lt_library_names_spec 19204 19205# The coded name of the library, if different from the real name. 19206soname_spec=$lt_soname_spec 19207 19208# Permission mode override for installation of shared libraries. 19209install_override_mode=$lt_install_override_mode 19210 19211# Command to use after installation of a shared archive. 19212postinstall_cmds=$lt_postinstall_cmds 19213 19214# Command to use after uninstallation of a shared archive. 19215postuninstall_cmds=$lt_postuninstall_cmds 19216 19217# Commands used to finish a libtool library installation in a directory. 19218finish_cmds=$lt_finish_cmds 19219 19220# As "finish_cmds", except a single script fragment to be evaled but 19221# not shown. 19222finish_eval=$lt_finish_eval 19223 19224# Whether we should hardcode library paths into libraries. 19225hardcode_into_libs=$hardcode_into_libs 19226 19227# Compile-time system search path for libraries. 19228sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19229 19230# Detected run-time system search path for libraries. 19231sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19232 19233# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19234configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19235 19236# Whether dlopen is supported. 19237dlopen_support=$enable_dlopen 19238 19239# Whether dlopen of programs is supported. 19240dlopen_self=$enable_dlopen_self 19241 19242# Whether dlopen of statically linked programs is supported. 19243dlopen_self_static=$enable_dlopen_self_static 19244 19245# Commands to strip libraries. 19246old_striplib=$lt_old_striplib 19247striplib=$lt_striplib 19248 19249 19250# The linker used to build libraries. 19251LD=$lt_LD 19252 19253# How to create reloadable object files. 19254reload_flag=$lt_reload_flag 19255reload_cmds=$lt_reload_cmds 19256 19257# Commands used to build an old-style archive. 19258old_archive_cmds=$lt_old_archive_cmds 19259 19260# A language specific compiler. 19261CC=$lt_compiler 19262 19263# Is the compiler the GNU compiler? 19264with_gcc=$GCC 19265 19266# Compiler flag to turn off builtin functions. 19267no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19268 19269# Additional compiler flags for building library objects. 19270pic_flag=$lt_lt_prog_compiler_pic 19271 19272# How to pass a linker flag through the compiler. 19273wl=$lt_lt_prog_compiler_wl 19274 19275# Compiler flag to prevent dynamic linking. 19276link_static_flag=$lt_lt_prog_compiler_static 19277 19278# Does compiler simultaneously support -c and -o options? 19279compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19280 19281# Whether or not to add -lc for building shared libraries. 19282build_libtool_need_lc=$archive_cmds_need_lc 19283 19284# Whether or not to disallow shared libs when runtime libs are static. 19285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19286 19287# Compiler flag to allow reflexive dlopens. 19288export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19289 19290# Compiler flag to generate shared objects directly from archives. 19291whole_archive_flag_spec=$lt_whole_archive_flag_spec 19292 19293# Whether the compiler copes with passing no objects directly. 19294compiler_needs_object=$lt_compiler_needs_object 19295 19296# Create an old-style archive from a shared archive. 19297old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19298 19299# Create a temporary old-style archive to link instead of a shared archive. 19300old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19301 19302# Commands used to build a shared archive. 19303archive_cmds=$lt_archive_cmds 19304archive_expsym_cmds=$lt_archive_expsym_cmds 19305 19306# Commands used to build a loadable module if different from building 19307# a shared archive. 19308module_cmds=$lt_module_cmds 19309module_expsym_cmds=$lt_module_expsym_cmds 19310 19311# Whether we are building with GNU ld or not. 19312with_gnu_ld=$lt_with_gnu_ld 19313 19314# Flag that allows shared libraries with undefined symbols to be built. 19315allow_undefined_flag=$lt_allow_undefined_flag 19316 19317# Flag that enforces no undefined symbols. 19318no_undefined_flag=$lt_no_undefined_flag 19319 19320# Flag to hardcode \$libdir into a binary during linking. 19321# This must work even if \$libdir does not exist 19322hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19323 19324# Whether we need a single "-rpath" flag with a separated argument. 19325hardcode_libdir_separator=$lt_hardcode_libdir_separator 19326 19327# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19328# DIR into the resulting binary. 19329hardcode_direct=$hardcode_direct 19330 19331# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19332# DIR into the resulting binary and the resulting library dependency is 19333# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19334# library is relocated. 19335hardcode_direct_absolute=$hardcode_direct_absolute 19336 19337# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19338# into the resulting binary. 19339hardcode_minus_L=$hardcode_minus_L 19340 19341# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19342# into the resulting binary. 19343hardcode_shlibpath_var=$hardcode_shlibpath_var 19344 19345# Set to "yes" if building a shared library automatically hardcodes DIR 19346# into the library and all subsequent libraries and executables linked 19347# against it. 19348hardcode_automatic=$hardcode_automatic 19349 19350# Set to yes if linker adds runtime paths of dependent libraries 19351# to runtime path list. 19352inherit_rpath=$inherit_rpath 19353 19354# Whether libtool must link a program against all its dependency libraries. 19355link_all_deplibs=$link_all_deplibs 19356 19357# Set to "yes" if exported symbols are required. 19358always_export_symbols=$always_export_symbols 19359 19360# The commands to list exported symbols. 19361export_symbols_cmds=$lt_export_symbols_cmds 19362 19363# Symbols that should not be listed in the preloaded symbols. 19364exclude_expsyms=$lt_exclude_expsyms 19365 19366# Symbols that must always be exported. 19367include_expsyms=$lt_include_expsyms 19368 19369# Commands necessary for linking programs (against libraries) with templates. 19370prelink_cmds=$lt_prelink_cmds 19371 19372# Commands necessary for finishing linking programs. 19373postlink_cmds=$lt_postlink_cmds 19374 19375# Specify filename containing input files. 19376file_list_spec=$lt_file_list_spec 19377 19378# How to hardcode a shared library path into an executable. 19379hardcode_action=$hardcode_action 19380 19381# ### END LIBTOOL CONFIG 19382 19383_LT_EOF 19384 19385 cat <<'_LT_EOF' >> "$cfgfile" 19386 19387# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19388 19389# func_munge_path_list VARIABLE PATH 19390# ----------------------------------- 19391# VARIABLE is name of variable containing _space_ separated list of 19392# directories to be munged by the contents of PATH, which is string 19393# having a format: 19394# "DIR[:DIR]:" 19395# string "DIR[ DIR]" will be prepended to VARIABLE 19396# ":DIR[:DIR]" 19397# string "DIR[ DIR]" will be appended to VARIABLE 19398# "DIRP[:DIRP]::[DIRA:]DIRA" 19399# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19400# "DIRA[ DIRA]" will be appended to VARIABLE 19401# "DIR[:DIR]" 19402# VARIABLE will be replaced by "DIR[ DIR]" 19403func_munge_path_list () 19404{ 19405 case x$2 in 19406 x) 19407 ;; 19408 *:) 19409 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19410 ;; 19411 x:*) 19412 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19413 ;; 19414 *::*) 19415 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19416 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19417 ;; 19418 *) 19419 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19420 ;; 19421 esac 19422} 19423 19424 19425# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19426func_cc_basename () 19427{ 19428 for cc_temp in $*""; do 19429 case $cc_temp in 19430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19432 \-*) ;; 19433 *) break;; 19434 esac 19435 done 19436 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19437} 19438 19439 19440# ### END FUNCTIONS SHARED WITH CONFIGURE 19441 19442_LT_EOF 19443 19444 case $host_os in 19445 aix3*) 19446 cat <<\_LT_EOF >> "$cfgfile" 19447# AIX sometimes has problems with the GCC collect2 program. For some 19448# reason, if we set the COLLECT_NAMES environment variable, the problems 19449# vanish in a puff of smoke. 19450if test set != "${COLLECT_NAMES+set}"; then 19451 COLLECT_NAMES= 19452 export COLLECT_NAMES 19453fi 19454_LT_EOF 19455 ;; 19456 esac 19457 19458 19459ltmain=$ac_aux_dir/ltmain.sh 19460 19461 19462 # We use sed instead of cat because bash on DJGPP gets confused if 19463 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19464 # text mode, it properly converts lines to CR/LF. This bash problem 19465 # is reportedly fixed, but why not run on old versions too? 19466 sed '$q' "$ltmain" >> "$cfgfile" \ 19467 || (rm -f "$cfgfile"; exit 1) 19468 19469 mv -f "$cfgfile" "$ofile" || 19470 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19471 chmod +x "$ofile" 19472 19473 ;; 19474 19475 esac 19476done # for ac_tag 19477 19478 19479as_fn_exit 0 19480_ACEOF 19481ac_clean_files=$ac_clean_files_save 19482 19483test $ac_write_fail = 0 || 19484 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19485 19486 19487# configure is writing to config.log, and then calls config.status. 19488# config.status does its own redirection, appending to config.log. 19489# Unfortunately, on DOS this fails, as config.log is still kept open 19490# by configure, so config.status won't be able to write to it; its 19491# output is simply discarded. So we exec the FD to /dev/null, 19492# effectively closing config.log, so it can be properly (re)opened and 19493# appended to by config.status. When coming back to configure, we 19494# need to make the FD available again. 19495if test "$no_create" != yes; then 19496 ac_cs_success=: 19497 ac_config_status_args= 19498 test "$silent" = yes && 19499 ac_config_status_args="$ac_config_status_args --quiet" 19500 exec 5>/dev/null 19501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19502 exec 5>>config.log 19503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19504 # would make configure fail if this is the last instruction. 19505 $ac_cs_success || as_fn_exit 1 19506fi 19507if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19509$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19510fi 19511 19512