1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for tcpdump 4.99.6. 4# 5# 6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7# Inc. 8# 9# 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12## -------------------- ## 13## M4sh Initialization. ## 14## -------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18as_nop=: 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else $as_nop 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37 38# Reset variables that may have inherited troublesome values from 39# the environment. 40 41# IFS needs to be set, to space, tab, and newline, in precisely that order. 42# (If _AS_PATH_WALK were called with IFS unset, it would have the 43# side effect of setting IFS to empty, thus disabling word splitting.) 44# Quoting is to prevent editors from complaining about space-tab. 45as_nl=' 46' 47export as_nl 48IFS=" "" $as_nl" 49 50PS1='$ ' 51PS2='> ' 52PS4='+ ' 53 54# Ensure predictable behavior from utilities with locale-dependent output. 55LC_ALL=C 56export LC_ALL 57LANGUAGE=C 58export LANGUAGE 59 60# We cannot yet rely on "unset" to work, but we need these variables 61# to be unset--not just set to an empty or harmless value--now, to 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63# also avoids known problems related to "unset" and subshell syntax 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68done 69 70# Ensure that fds 0, 1, and 2 are open. 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75# The user is always right. 76if ${PATH_SEPARATOR+false} :; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# Find who we are. Look in the path if we contain no directory separator. 86as_myself= 87case $0 in #(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90for as_dir in $PATH 91do 92 IFS=$as_save_IFS 93 case $as_dir in #((( 94 '') as_dir=./ ;; 95 */) ;; 96 *) as_dir=$as_dir/ ;; 97 esac 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114 115# Use a proper internal environment variable to ensure we don't fall 116 # into an infinite loop, continuously re-executing ourselves. 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118 _as_can_reexec=no; export _as_can_reexec; 119 # We cannot yet assume a decent shell, so we have to provide a 120# neutralization value for shells without unset; and this also 121# works around shells that cannot unset nonexistent variables. 122# Preserve -v and -x to the replacement shell. 123BASH_ENV=/dev/null 124ENV=/dev/null 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126case $- in # (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131esac 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133# Admittedly, this is quite paranoid, since all the known shells bail 134# out after a failed `exec'. 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143then : 144 emulate sh 145 NULLCMD=: 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147 # is contrary to our usage. Disable this feature. 148 alias -g '\${1+\"\$@\"}'='\"\$@\"' 149 setopt NO_GLOB_SUBST 150else \$as_nop 151 case \`(set -o) 2>/dev/null\` in #( 152 *posix*) : 153 set -o posix ;; #( 154 *) : 155 ;; 156esac 157fi 158" 159 as_required="as_fn_return () { (exit \$1); } 160as_fn_success () { as_fn_return 0; } 161as_fn_failure () { as_fn_return 1; } 162as_fn_ret_success () { return 0; } 163as_fn_ret_failure () { return 1; } 164 165exitcode=0 166as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171then : 172 173else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175fi 176test x\$exitcode = x0 || exit 1 177blah=\$(echo \$(echo blah)) 178test x\"\$blah\" = xblah || exit 1 179test -x / || exit 1" 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184test \$(( 1 + 1 )) = 2 || exit 1" 185 if (eval "$as_required") 2>/dev/null 186then : 187 as_have_required=yes 188else $as_nop 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 192then : 193 194else $as_nop 195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 196as_found=false 197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 198do 199 IFS=$as_save_IFS 200 case $as_dir in #((( 201 '') as_dir=./ ;; 202 */) ;; 203 *) as_dir=$as_dir/ ;; 204 esac 205 as_found=: 206 case $as_dir in #( 207 /*) 208 for as_base in sh bash ksh sh5; do 209 # Try only shells that exist, to save several forks. 210 as_shell=$as_dir$as_base 211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 213then : 214 CONFIG_SHELL=$as_shell as_have_required=yes 215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 216then : 217 break 2 218fi 219fi 220 done;; 221 esac 222 as_found=false 223done 224IFS=$as_save_IFS 225if $as_found 226then : 227 228else $as_nop 229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 231then : 232 CONFIG_SHELL=$SHELL as_have_required=yes 233fi 234fi 235 236 237 if test "x$CONFIG_SHELL" != x 238then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno 261then : 262 printf "%s\n" "$0: This script requires a shell more modern than all" 263 printf "%s\n" "$0: the shells that I found on your system." 264 if test ${ZSH_VERSION+y} ; then 265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 267 else 268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, 269$0: including any error possibly output before this 270$0: message. Then install a modern shell, or manually run 271$0: the script under such a shell if you do have one." 272 fi 273 exit 1 274fi 275fi 276fi 277SHELL=${CONFIG_SHELL-/bin/sh} 278export SHELL 279# Unset more variables known to interfere with behavior of common tools. 280CLICOLOR_FORCE= GREP_OPTIONS= 281unset CLICOLOR_FORCE GREP_OPTIONS 282 283## --------------------- ## 284## M4sh Shell Functions. ## 285## --------------------- ## 286# as_fn_unset VAR 287# --------------- 288# Portably unset VAR. 289as_fn_unset () 290{ 291 { eval $1=; unset $1;} 292} 293as_unset=as_fn_unset 294 295 296# as_fn_set_status STATUS 297# ----------------------- 298# Set $? to STATUS, without forking. 299as_fn_set_status () 300{ 301 return $1 302} # as_fn_set_status 303 304# as_fn_exit STATUS 305# ----------------- 306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 307as_fn_exit () 308{ 309 set +e 310 as_fn_set_status $1 311 exit $1 312} # as_fn_exit 313# as_fn_nop 314# --------- 315# Do nothing but, unlike ":", preserve the value of $?. 316as_fn_nop () 317{ 318 return $? 319} 320as_nop=as_fn_nop 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else $as_nop 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 402then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else $as_nop 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414# as_fn_nop 415# --------- 416# Do nothing but, unlike ":", preserve the value of $?. 417as_fn_nop () 418{ 419 return $? 420} 421as_nop=as_fn_nop 422 423# as_fn_error STATUS ERROR [LINENO LOG_FD] 424# ---------------------------------------- 425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 427# script with STATUS, using 1 if that was 0. 428as_fn_error () 429{ 430 as_status=$1; test $as_status -eq 0 && as_status=1 431 if test "$4"; then 432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 434 fi 435 printf "%s\n" "$as_me: error: $2" >&2 436 as_fn_exit $as_status 437} # as_fn_error 438 439if expr a : '\(a\)' >/dev/null 2>&1 && 440 test "X`expr 00001 : '.*\(...\)'`" = X001; then 441 as_expr=expr 442else 443 as_expr=false 444fi 445 446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 447 as_basename=basename 448else 449 as_basename=false 450fi 451 452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 453 as_dirname=dirname 454else 455 as_dirname=false 456fi 457 458as_me=`$as_basename -- "$0" || 459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 460 X"$0" : 'X\(//\)$' \| \ 461 X"$0" : 'X\(/\)' \| . 2>/dev/null || 462printf "%s\n" X/"$0" | 463 sed '/^.*\/\([^/][^/]*\)\/*$/{ 464 s//\1/ 465 q 466 } 467 /^X\/\(\/\/\)$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\).*/{ 472 s//\1/ 473 q 474 } 475 s/.*/./; q'` 476 477# Avoid depending upon Character Ranges. 478as_cr_letters='abcdefghijklmnopqrstuvwxyz' 479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 480as_cr_Letters=$as_cr_letters$as_cr_LETTERS 481as_cr_digits='0123456789' 482as_cr_alnum=$as_cr_Letters$as_cr_digits 483 484 485 as_lineno_1=$LINENO as_lineno_1a=$LINENO 486 as_lineno_2=$LINENO as_lineno_2a=$LINENO 487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 490 sed -n ' 491 p 492 /[$]LINENO/= 493 ' <$as_myself | 494 sed ' 495 s/[$]LINENO.*/&-/ 496 t lineno 497 b 498 :lineno 499 N 500 :loop 501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 502 t loop 503 s/-\n.*// 504 ' >$as_me.lineno && 505 chmod +x "$as_me.lineno" || 506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 507 508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 509 # already done that, so ensure we don't try to do so again and fall 510 # in an infinite loop. This has already happened in practice. 511 _as_can_reexec=no; export _as_can_reexec 512 # Don't try to exec as it changes $[0], causing all sort of problems 513 # (the dirname of $[0] is not the place where we might find the 514 # original and so on. Autoconf is especially sensitive to this). 515 . "./$as_me.lineno" 516 # Exit status is that of the last command. 517 exit 518} 519 520 521# Determine whether it's possible to make 'echo' print without a newline. 522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 523# for compatibility with existing Makefiles. 524ECHO_C= ECHO_N= ECHO_T= 525case `echo -n x` in #((((( 526-n*) 527 case `echo 'xy\c'` in 528 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 529 xy) ECHO_C='\c';; 530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 531 ECHO_T=' ';; 532 esac;; 533*) 534 ECHO_N='-n';; 535esac 536 537# For backward compatibility with old third-party macros, we provide 538# the shell variables $as_echo and $as_echo_n. New code should use 539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 540as_echo='printf %s\n' 541as_echo_n='printf %s' 542 543 544rm -f conf$$ conf$$.exe conf$$.file 545if test -d conf$$.dir; then 546 rm -f conf$$.dir/conf$$.file 547else 548 rm -f conf$$.dir 549 mkdir conf$$.dir 2>/dev/null 550fi 551if (echo >conf$$.file) 2>/dev/null; then 552 if ln -s conf$$.file conf$$ 2>/dev/null; then 553 as_ln_s='ln -s' 554 # ... but there are two gotchas: 555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 557 # In both cases, we have to default to `cp -pR'. 558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 559 as_ln_s='cp -pR' 560 elif ln conf$$.file conf$$ 2>/dev/null; then 561 as_ln_s=ln 562 else 563 as_ln_s='cp -pR' 564 fi 565else 566 as_ln_s='cp -pR' 567fi 568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 569rmdir conf$$.dir 2>/dev/null 570 571if mkdir -p . 2>/dev/null; then 572 as_mkdir_p='mkdir -p "$as_dir"' 573else 574 test -d ./-p && rmdir ./-p 575 as_mkdir_p=false 576fi 577 578as_test_x='test -x' 579as_executable_p=as_fn_executable_p 580 581# Sed expression to map a string onto a valid CPP name. 582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 583 584# Sed expression to map a string onto a valid variable name. 585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 586 587 588test -n "$DJDIR" || exec 7<&0 </dev/null 589exec 6>&1 590 591# Name of the host. 592# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 593# so uname gets run too. 594ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 595 596# 597# Initializations. 598# 599ac_default_prefix=/usr/local 600ac_clean_files= 601ac_config_libobj_dir=. 602LIBOBJS= 603cross_compiling=no 604subdirs= 605MFLAGS= 606MAKEFLAGS= 607 608# Identity of this package. 609PACKAGE_NAME='tcpdump' 610PACKAGE_TARNAME='tcpdump' 611PACKAGE_VERSION='4.99.6' 612PACKAGE_STRING='tcpdump 4.99.6' 613PACKAGE_BUGREPORT='' 614PACKAGE_URL='' 615 616ac_unique_file="tcpdump.c" 617# Factoring default headers for most tests. 618ac_includes_default="\ 619#include <stddef.h> 620#ifdef HAVE_STDIO_H 621# include <stdio.h> 622#endif 623#ifdef HAVE_STDLIB_H 624# include <stdlib.h> 625#endif 626#ifdef HAVE_STRING_H 627# include <string.h> 628#endif 629#ifdef HAVE_INTTYPES_H 630# include <inttypes.h> 631#endif 632#ifdef HAVE_STDINT_H 633# include <stdint.h> 634#endif 635#ifdef HAVE_STRINGS_H 636# include <strings.h> 637#endif 638#ifdef HAVE_SYS_TYPES_H 639# include <sys/types.h> 640#endif 641#ifdef HAVE_SYS_STAT_H 642# include <sys/stat.h> 643#endif 644#ifdef HAVE_UNISTD_H 645# include <unistd.h> 646#endif" 647 648ac_header_c_list= 649ac_subst_vars='LTLIBOBJS 650INSTALL_DATA 651INSTALL_SCRIPT 652INSTALL_PROGRAM 653MAN_MISC_INFO 654MAN_FILE_FORMATS 655LOCALSRC 656V_PCAPDEP 657V_INCLS 658V_DEFS 659V_CCOPT 660LIBCRYPTO_LIBS_STATIC 661LIBCRYPTO_LIBS 662LIBCRYPTO_CFLAGS 663MKDEP 664DEPENDENCY_CFLAG 665AR 666RANLIB 667PCAP_CONFIG 668LIBOBJS 669EGREP 670GREP 671CPP 672BREW 673PKG_CONFIG_LIBDIR 674PKG_CONFIG_PATH 675PKG_CONFIG 676OBJEXT 677EXEEXT 678ac_ct_CC 679CPPFLAGS 680LDFLAGS 681CFLAGS 682CC 683SHLICC2 684host_os 685host_vendor 686host_cpu 687host 688build_os 689build_vendor 690build_cpu 691build 692target_alias 693host_alias 694build_alias 695LIBS 696ECHO_T 697ECHO_N 698ECHO_C 699DEFS 700mandir 701localedir 702libdir 703psdir 704pdfdir 705dvidir 706htmldir 707infodir 708docdir 709oldincludedir 710includedir 711runstatedir 712localstatedir 713sharedstatedir 714sysconfdir 715datadir 716datarootdir 717libexecdir 718sbindir 719bindir 720program_transform_name 721prefix 722exec_prefix 723PACKAGE_URL 724PACKAGE_BUGREPORT 725PACKAGE_STRING 726PACKAGE_VERSION 727PACKAGE_TARNAME 728PACKAGE_NAME 729PATH_SEPARATOR 730SHELL' 731ac_subst_files='' 732ac_user_opts=' 733enable_option_checking 734with_gcc 735enable_universal 736with_smi 737enable_instrument_functions 738enable_smb 739with_user 740with_chroot 741with_sandbox_capsicum 742enable_local_libpcap 743with_crypto 744with_cap_ng 745' 746 ac_precious_vars='build_alias 747host_alias 748target_alias 749CC 750CFLAGS 751LDFLAGS 752LIBS 753CPPFLAGS 754PKG_CONFIG 755PKG_CONFIG_PATH 756PKG_CONFIG_LIBDIR 757CPP 758LIBCRYPTO_CFLAGS 759LIBCRYPTO_LIBS 760LIBCRYPTO_LIBS_STATIC' 761 762 763# Initialize some variables set by options. 764ac_init_help= 765ac_init_version=false 766ac_unrecognized_opts= 767ac_unrecognized_sep= 768# The variables have the same names as the options, with 769# dashes changed to underlines. 770cache_file=/dev/null 771exec_prefix=NONE 772no_create= 773no_recursion= 774prefix=NONE 775program_prefix=NONE 776program_suffix=NONE 777program_transform_name=s,x,x, 778silent= 779site= 780srcdir= 781verbose= 782x_includes=NONE 783x_libraries=NONE 784 785# Installation directory options. 786# These are left unexpanded so users can "make install exec_prefix=/foo" 787# and all the variables that are supposed to be based on exec_prefix 788# by default will actually change. 789# Use braces instead of parens because sh, perl, etc. also accept them. 790# (The list follows the same order as the GNU Coding Standards.) 791bindir='${exec_prefix}/bin' 792sbindir='${exec_prefix}/sbin' 793libexecdir='${exec_prefix}/libexec' 794datarootdir='${prefix}/share' 795datadir='${datarootdir}' 796sysconfdir='${prefix}/etc' 797sharedstatedir='${prefix}/com' 798localstatedir='${prefix}/var' 799runstatedir='${localstatedir}/run' 800includedir='${prefix}/include' 801oldincludedir='/usr/include' 802docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 803infodir='${datarootdir}/info' 804htmldir='${docdir}' 805dvidir='${docdir}' 806pdfdir='${docdir}' 807psdir='${docdir}' 808libdir='${exec_prefix}/lib' 809localedir='${datarootdir}/locale' 810mandir='${datarootdir}/man' 811 812ac_prev= 813ac_dashdash= 814for ac_option 815do 816 # If the previous option needs an argument, assign it. 817 if test -n "$ac_prev"; then 818 eval $ac_prev=\$ac_option 819 ac_prev= 820 continue 821 fi 822 823 case $ac_option in 824 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 825 *=) ac_optarg= ;; 826 *) ac_optarg=yes ;; 827 esac 828 829 case $ac_dashdash$ac_option in 830 --) 831 ac_dashdash=yes ;; 832 833 -bindir | --bindir | --bindi | --bind | --bin | --bi) 834 ac_prev=bindir ;; 835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 836 bindir=$ac_optarg ;; 837 838 -build | --build | --buil | --bui | --bu) 839 ac_prev=build_alias ;; 840 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 841 build_alias=$ac_optarg ;; 842 843 -cache-file | --cache-file | --cache-fil | --cache-fi \ 844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 845 ac_prev=cache_file ;; 846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 848 cache_file=$ac_optarg ;; 849 850 --config-cache | -C) 851 cache_file=config.cache ;; 852 853 -datadir | --datadir | --datadi | --datad) 854 ac_prev=datadir ;; 855 -datadir=* | --datadir=* | --datadi=* | --datad=*) 856 datadir=$ac_optarg ;; 857 858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 859 | --dataroo | --dataro | --datar) 860 ac_prev=datarootdir ;; 861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 863 datarootdir=$ac_optarg ;; 864 865 -disable-* | --disable-*) 866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 867 # Reject names that are not valid shell variable names. 868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 869 as_fn_error $? "invalid feature name: \`$ac_useropt'" 870 ac_useropt_orig=$ac_useropt 871 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 872 case $ac_user_opts in 873 *" 874"enable_$ac_useropt" 875"*) ;; 876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 877 ac_unrecognized_sep=', ';; 878 esac 879 eval enable_$ac_useropt=no ;; 880 881 -docdir | --docdir | --docdi | --doc | --do) 882 ac_prev=docdir ;; 883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 884 docdir=$ac_optarg ;; 885 886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 887 ac_prev=dvidir ;; 888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 889 dvidir=$ac_optarg ;; 890 891 -enable-* | --enable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 as_fn_error $? "invalid feature name: \`$ac_useropt'" 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=\$ac_optarg ;; 906 907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 909 | --exec | --exe | --ex) 910 ac_prev=exec_prefix ;; 911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 913 | --exec=* | --exe=* | --ex=*) 914 exec_prefix=$ac_optarg ;; 915 916 -gas | --gas | --ga | --g) 917 # Obsolete; use --with-gas. 918 with_gas=yes ;; 919 920 -help | --help | --hel | --he | -h) 921 ac_init_help=long ;; 922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 923 ac_init_help=recursive ;; 924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 925 ac_init_help=short ;; 926 927 -host | --host | --hos | --ho) 928 ac_prev=host_alias ;; 929 -host=* | --host=* | --hos=* | --ho=*) 930 host_alias=$ac_optarg ;; 931 932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 933 ac_prev=htmldir ;; 934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 935 | --ht=*) 936 htmldir=$ac_optarg ;; 937 938 -includedir | --includedir | --includedi | --included | --include \ 939 | --includ | --inclu | --incl | --inc) 940 ac_prev=includedir ;; 941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 942 | --includ=* | --inclu=* | --incl=* | --inc=*) 943 includedir=$ac_optarg ;; 944 945 -infodir | --infodir | --infodi | --infod | --info | --inf) 946 ac_prev=infodir ;; 947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 948 infodir=$ac_optarg ;; 949 950 -libdir | --libdir | --libdi | --libd) 951 ac_prev=libdir ;; 952 -libdir=* | --libdir=* | --libdi=* | --libd=*) 953 libdir=$ac_optarg ;; 954 955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 956 | --libexe | --libex | --libe) 957 ac_prev=libexecdir ;; 958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 959 | --libexe=* | --libex=* | --libe=*) 960 libexecdir=$ac_optarg ;; 961 962 -localedir | --localedir | --localedi | --localed | --locale) 963 ac_prev=localedir ;; 964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 965 localedir=$ac_optarg ;; 966 967 -localstatedir | --localstatedir | --localstatedi | --localstated \ 968 | --localstate | --localstat | --localsta | --localst | --locals) 969 ac_prev=localstatedir ;; 970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 972 localstatedir=$ac_optarg ;; 973 974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 975 ac_prev=mandir ;; 976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 977 mandir=$ac_optarg ;; 978 979 -nfp | --nfp | --nf) 980 # Obsolete; use --without-fp. 981 with_fp=no ;; 982 983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 984 | --no-cr | --no-c | -n) 985 no_create=yes ;; 986 987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 989 no_recursion=yes ;; 990 991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 993 | --oldin | --oldi | --old | --ol | --o) 994 ac_prev=oldincludedir ;; 995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 998 oldincludedir=$ac_optarg ;; 999 1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1001 ac_prev=prefix ;; 1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1003 prefix=$ac_optarg ;; 1004 1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1006 | --program-pre | --program-pr | --program-p) 1007 ac_prev=program_prefix ;; 1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1010 program_prefix=$ac_optarg ;; 1011 1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1013 | --program-suf | --program-su | --program-s) 1014 ac_prev=program_suffix ;; 1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1017 program_suffix=$ac_optarg ;; 1018 1019 -program-transform-name | --program-transform-name \ 1020 | --program-transform-nam | --program-transform-na \ 1021 | --program-transform-n | --program-transform- \ 1022 | --program-transform | --program-transfor \ 1023 | --program-transfo | --program-transf \ 1024 | --program-trans | --program-tran \ 1025 | --progr-tra | --program-tr | --program-t) 1026 ac_prev=program_transform_name ;; 1027 -program-transform-name=* | --program-transform-name=* \ 1028 | --program-transform-nam=* | --program-transform-na=* \ 1029 | --program-transform-n=* | --program-transform-=* \ 1030 | --program-transform=* | --program-transfor=* \ 1031 | --program-transfo=* | --program-transf=* \ 1032 | --program-trans=* | --program-tran=* \ 1033 | --progr-tra=* | --program-tr=* | --program-t=*) 1034 program_transform_name=$ac_optarg ;; 1035 1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1037 ac_prev=pdfdir ;; 1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1039 pdfdir=$ac_optarg ;; 1040 1041 -psdir | --psdir | --psdi | --psd | --ps) 1042 ac_prev=psdir ;; 1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1044 psdir=$ac_optarg ;; 1045 1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1047 | -silent | --silent | --silen | --sile | --sil) 1048 silent=yes ;; 1049 1050 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1051 | --runstate | --runstat | --runsta | --runst | --runs \ 1052 | --run | --ru | --r) 1053 ac_prev=runstatedir ;; 1054 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1055 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1056 | --run=* | --ru=* | --r=*) 1057 runstatedir=$ac_optarg ;; 1058 1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1060 ac_prev=sbindir ;; 1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1062 | --sbi=* | --sb=*) 1063 sbindir=$ac_optarg ;; 1064 1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1067 | --sharedst | --shareds | --shared | --share | --shar \ 1068 | --sha | --sh) 1069 ac_prev=sharedstatedir ;; 1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1073 | --sha=* | --sh=*) 1074 sharedstatedir=$ac_optarg ;; 1075 1076 -site | --site | --sit) 1077 ac_prev=site ;; 1078 -site=* | --site=* | --sit=*) 1079 site=$ac_optarg ;; 1080 1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1082 ac_prev=srcdir ;; 1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1084 srcdir=$ac_optarg ;; 1085 1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1087 | --syscon | --sysco | --sysc | --sys | --sy) 1088 ac_prev=sysconfdir ;; 1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1091 sysconfdir=$ac_optarg ;; 1092 1093 -target | --target | --targe | --targ | --tar | --ta | --t) 1094 ac_prev=target_alias ;; 1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1096 target_alias=$ac_optarg ;; 1097 1098 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1099 verbose=yes ;; 1100 1101 -version | --version | --versio | --versi | --vers | -V) 1102 ac_init_version=: ;; 1103 1104 -with-* | --with-*) 1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1106 # Reject names that are not valid shell variable names. 1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1108 as_fn_error $? "invalid package name: \`$ac_useropt'" 1109 ac_useropt_orig=$ac_useropt 1110 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1111 case $ac_user_opts in 1112 *" 1113"with_$ac_useropt" 1114"*) ;; 1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1116 ac_unrecognized_sep=', ';; 1117 esac 1118 eval with_$ac_useropt=\$ac_optarg ;; 1119 1120 -without-* | --without-*) 1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1124 as_fn_error $? "invalid package name: \`$ac_useropt'" 1125 ac_useropt_orig=$ac_useropt 1126 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1127 case $ac_user_opts in 1128 *" 1129"with_$ac_useropt" 1130"*) ;; 1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1132 ac_unrecognized_sep=', ';; 1133 esac 1134 eval with_$ac_useropt=no ;; 1135 1136 --x) 1137 # Obsolete; use --with-x. 1138 with_x=yes ;; 1139 1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1141 | --x-incl | --x-inc | --x-in | --x-i) 1142 ac_prev=x_includes ;; 1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1145 x_includes=$ac_optarg ;; 1146 1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1149 ac_prev=x_libraries ;; 1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1152 x_libraries=$ac_optarg ;; 1153 1154 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1155Try \`$0 --help' for more information" 1156 ;; 1157 1158 *=*) 1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1160 # Reject names that are not valid shell variable names. 1161 case $ac_envvar in #( 1162 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1163 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1164 esac 1165 eval $ac_envvar=\$ac_optarg 1166 export $ac_envvar ;; 1167 1168 *) 1169 # FIXME: should be removed in autoconf 3.0. 1170 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1172 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1173 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1174 ;; 1175 1176 esac 1177done 1178 1179if test -n "$ac_prev"; then 1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1181 as_fn_error $? "missing argument to $ac_option" 1182fi 1183 1184if test -n "$ac_unrecognized_opts"; then 1185 case $enable_option_checking in 1186 no) ;; 1187 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1188 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1189 esac 1190fi 1191 1192# Check all directory arguments for consistency. 1193for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1194 datadir sysconfdir sharedstatedir localstatedir includedir \ 1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1196 libdir localedir mandir runstatedir 1197do 1198 eval ac_val=\$$ac_var 1199 # Remove trailing slashes. 1200 case $ac_val in 1201 */ ) 1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1203 eval $ac_var=\$ac_val;; 1204 esac 1205 # Be sure to have absolute directory names. 1206 case $ac_val in 1207 [\\/$]* | ?:[\\/]* ) continue;; 1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1209 esac 1210 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1211done 1212 1213# There might be people who depend on the old broken behavior: `$host' 1214# used to hold the argument of --host etc. 1215# FIXME: To remove some day. 1216build=$build_alias 1217host=$host_alias 1218target=$target_alias 1219 1220# FIXME: To remove some day. 1221if test "x$host_alias" != x; then 1222 if test "x$build_alias" = x; then 1223 cross_compiling=maybe 1224 elif test "x$build_alias" != "x$host_alias"; then 1225 cross_compiling=yes 1226 fi 1227fi 1228 1229ac_tool_prefix= 1230test -n "$host_alias" && ac_tool_prefix=$host_alias- 1231 1232test "$silent" = yes && exec 6>/dev/null 1233 1234 1235ac_pwd=`pwd` && test -n "$ac_pwd" && 1236ac_ls_di=`ls -di .` && 1237ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1238 as_fn_error $? "working directory cannot be determined" 1239test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1240 as_fn_error $? "pwd does not report name of working directory" 1241 1242 1243# Find the source files, if location was not specified. 1244if test -z "$srcdir"; then 1245 ac_srcdir_defaulted=yes 1246 # Try the directory containing this script, then the parent directory. 1247 ac_confdir=`$as_dirname -- "$as_myself" || 1248$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1249 X"$as_myself" : 'X\(//\)[^/]' \| \ 1250 X"$as_myself" : 'X\(//\)$' \| \ 1251 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1252printf "%s\n" X"$as_myself" | 1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1254 s//\1/ 1255 q 1256 } 1257 /^X\(\/\/\)[^/].*/{ 1258 s//\1/ 1259 q 1260 } 1261 /^X\(\/\/\)$/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\).*/{ 1266 s//\1/ 1267 q 1268 } 1269 s/.*/./; q'` 1270 srcdir=$ac_confdir 1271 if test ! -r "$srcdir/$ac_unique_file"; then 1272 srcdir=.. 1273 fi 1274else 1275 ac_srcdir_defaulted=no 1276fi 1277if test ! -r "$srcdir/$ac_unique_file"; then 1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1279 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1280fi 1281ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1282ac_abs_confdir=`( 1283 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1284 pwd)` 1285# When building in place, set srcdir=. 1286if test "$ac_abs_confdir" = "$ac_pwd"; then 1287 srcdir=. 1288fi 1289# Remove unnecessary trailing slashes from srcdir. 1290# Double slashes in file names in object file debugging info 1291# mess up M-x gdb in Emacs. 1292case $srcdir in 1293*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1294esac 1295for ac_var in $ac_precious_vars; do 1296 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1297 eval ac_env_${ac_var}_value=\$${ac_var} 1298 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1299 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1300done 1301 1302# 1303# Report the --help message. 1304# 1305if test "$ac_init_help" = "long"; then 1306 # Omit some internal or obsolete options to make the list less imposing. 1307 # This message is too long to be a string in the A/UX 3.1 sh. 1308 cat <<_ACEOF 1309\`configure' configures tcpdump 4.99.6 to adapt to many kinds of systems. 1310 1311Usage: $0 [OPTION]... [VAR=VALUE]... 1312 1313To assign environment variables (e.g., CC, CFLAGS...), specify them as 1314VAR=VALUE. See below for descriptions of some of the useful variables. 1315 1316Defaults for the options are specified in brackets. 1317 1318Configuration: 1319 -h, --help display this help and exit 1320 --help=short display options specific to this package 1321 --help=recursive display the short help of all the included packages 1322 -V, --version display version information and exit 1323 -q, --quiet, --silent do not print \`checking ...' messages 1324 --cache-file=FILE cache test results in FILE [disabled] 1325 -C, --config-cache alias for \`--cache-file=config.cache' 1326 -n, --no-create do not create output files 1327 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1328 1329Installation directories: 1330 --prefix=PREFIX install architecture-independent files in PREFIX 1331 [$ac_default_prefix] 1332 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1333 [PREFIX] 1334 1335By default, \`make install' will install all the files in 1336\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1337an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1338for instance \`--prefix=\$HOME'. 1339 1340For better control, use the options below. 1341 1342Fine tuning of the installation directories: 1343 --bindir=DIR user executables [EPREFIX/bin] 1344 --sbindir=DIR system admin executables [EPREFIX/sbin] 1345 --libexecdir=DIR program executables [EPREFIX/libexec] 1346 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1347 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1348 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1349 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/tcpdump] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367System types: 1368 --build=BUILD configure for building on BUILD [guessed] 1369 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1370_ACEOF 1371fi 1372 1373if test -n "$ac_init_help"; then 1374 case $ac_init_help in 1375 short | recursive ) echo "Configuration of tcpdump 4.99.6:";; 1376 esac 1377 cat <<\_ACEOF 1378 1379Optional Features: 1380 --disable-option-checking ignore unrecognized --enable/--with options 1381 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1382 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1383 --disable-universal don't build universal on macOS 1384 --enable-instrument-functions 1385 enable instrument functions code [default=no] 1386 --enable-smb enable possibly-buggy SMB printer [default=no] 1387 --disable-local-libpcap don't look for a local libpcap [default=check for a 1388 local libpcap] 1389 1390Optional Packages: 1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1393 --without-gcc don't use gcc 1394 --with-smi link with libsmi (allows to load MIBs on the fly to 1395 decode SNMP packets) [default=yes, if available] 1396 --with-user=USERNAME drop privileges by default to USERNAME 1397 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY 1398 --with-sandbox-capsicum use Capsicum security functions [default=yes, if 1399 available] 1400 --with-crypto[=DIR] use OpenSSL/libressl libcrypto (located in directory 1401 DIR, if specified) [default=yes, if available] 1402 --with-cap-ng use libcap-ng [default=yes, if available] 1403 1404Some influential environment variables: 1405 CC C compiler command 1406 CFLAGS C compiler flags 1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1408 nonstandard directory <lib dir> 1409 LIBS libraries to pass to the linker, e.g. -l<library> 1410 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1411 you have headers in a nonstandard directory <include dir> 1412 PKG_CONFIG path to pkg-config utility 1413 PKG_CONFIG_PATH 1414 directories to add to pkg-config's search path 1415 PKG_CONFIG_LIBDIR 1416 path overriding pkg-config's built-in search path 1417 CPP C preprocessor 1418 LIBCRYPTO_CFLAGS 1419 C compiler flags for libcrypto, overriding pkg-config 1420 LIBCRYPTO_LIBS 1421 linker flags for libcrypto, overriding pkg-config 1422 LIBCRYPTO_LIBS_STATIC 1423 static-link linker flags for libcrypto, overriding pkg-config 1424 1425Use these variables to override the choices made by `configure' or to help 1426it to find libraries and programs with nonstandard names/locations. 1427 1428Report bugs to the package provider. 1429_ACEOF 1430ac_status=$? 1431fi 1432 1433if test "$ac_init_help" = "recursive"; then 1434 # If there are subdirs, report their specific --help. 1435 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1436 test -d "$ac_dir" || 1437 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1438 continue 1439 ac_builddir=. 1440 1441case "$ac_dir" in 1442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1443*) 1444 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1445 # A ".." for each directory in $ac_dir_suffix. 1446 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1447 case $ac_top_builddir_sub in 1448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1450 esac ;; 1451esac 1452ac_abs_top_builddir=$ac_pwd 1453ac_abs_builddir=$ac_pwd$ac_dir_suffix 1454# for backward compatibility: 1455ac_top_builddir=$ac_top_build_prefix 1456 1457case $srcdir in 1458 .) # We are building in place. 1459 ac_srcdir=. 1460 ac_top_srcdir=$ac_top_builddir_sub 1461 ac_abs_top_srcdir=$ac_pwd ;; 1462 [\\/]* | ?:[\\/]* ) # Absolute name. 1463 ac_srcdir=$srcdir$ac_dir_suffix; 1464 ac_top_srcdir=$srcdir 1465 ac_abs_top_srcdir=$srcdir ;; 1466 *) # Relative name. 1467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1468 ac_top_srcdir=$ac_top_build_prefix$srcdir 1469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1470esac 1471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1472 1473 cd "$ac_dir" || { ac_status=$?; continue; } 1474 # Check for configure.gnu first; this name is used for a wrapper for 1475 # Metaconfig's "Configure" on case-insensitive file systems. 1476 if test -f "$ac_srcdir/configure.gnu"; then 1477 echo && 1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1479 elif test -f "$ac_srcdir/configure"; then 1480 echo && 1481 $SHELL "$ac_srcdir/configure" --help=recursive 1482 else 1483 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1484 fi || ac_status=$? 1485 cd "$ac_pwd" || { ac_status=$?; break; } 1486 done 1487fi 1488 1489test -n "$ac_init_help" && exit $ac_status 1490if $ac_init_version; then 1491 cat <<\_ACEOF 1492tcpdump configure 4.99.6 1493generated by GNU Autoconf 2.71 1494 1495Copyright (C) 2021 Free Software Foundation, Inc. 1496This configure script is free software; the Free Software Foundation 1497gives unlimited permission to copy, distribute and modify it. 1498_ACEOF 1499 exit 1500fi 1501 1502## ------------------------ ## 1503## Autoconf initialization. ## 1504## ------------------------ ## 1505 1506# ac_fn_c_try_compile LINENO 1507# -------------------------- 1508# Try to compile conftest.$ac_ext, and return whether this succeeded. 1509ac_fn_c_try_compile () 1510{ 1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1512 rm -f conftest.$ac_objext conftest.beam 1513 if { { ac_try="$ac_compile" 1514case "(($ac_try" in 1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1516 *) ac_try_echo=$ac_try;; 1517esac 1518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1519printf "%s\n" "$ac_try_echo"; } >&5 1520 (eval "$ac_compile") 2>conftest.err 1521 ac_status=$? 1522 if test -s conftest.err; then 1523 grep -v '^ *+' conftest.err >conftest.er1 1524 cat conftest.er1 >&5 1525 mv -f conftest.er1 conftest.err 1526 fi 1527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1528 test $ac_status = 0; } && { 1529 test -z "$ac_c_werror_flag" || 1530 test ! -s conftest.err 1531 } && test -s conftest.$ac_objext 1532then : 1533 ac_retval=0 1534else $as_nop 1535 printf "%s\n" "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1541 as_fn_set_status $ac_retval 1542 1543} # ac_fn_c_try_compile 1544 1545# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1546# ------------------------------------------------------- 1547# Tests whether HEADER exists and can be compiled using the include files in 1548# INCLUDES, setting the cache variable VAR accordingly. 1549ac_fn_c_check_header_compile () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1553printf %s "checking for $2... " >&6; } 1554if eval test \${$3+y} 1555then : 1556 printf %s "(cached) " >&6 1557else $as_nop 1558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1559/* end confdefs.h. */ 1560$4 1561#include <$2> 1562_ACEOF 1563if ac_fn_c_try_compile "$LINENO" 1564then : 1565 eval "$3=yes" 1566else $as_nop 1567 eval "$3=no" 1568fi 1569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1570fi 1571eval ac_res=\$$3 1572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1573printf "%s\n" "$ac_res" >&6; } 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 1576} # ac_fn_c_check_header_compile 1577 1578# ac_fn_c_try_run LINENO 1579# ---------------------- 1580# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1581# executables *can* be run. 1582ac_fn_c_try_run () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 if { { ac_try="$ac_link" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591printf "%s\n" "$ac_try_echo"; } >&5 1592 (eval "$ac_link") 2>&5 1593 ac_status=$? 1594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1595 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1596 { { case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599esac 1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601printf "%s\n" "$ac_try_echo"; } >&5 1602 (eval "$ac_try") 2>&5 1603 ac_status=$? 1604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 test $ac_status = 0; }; } 1606then : 1607 ac_retval=0 1608else $as_nop 1609 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1610 printf "%s\n" "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=$ac_status 1614fi 1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 as_fn_set_status $ac_retval 1618 1619} # ac_fn_c_try_run 1620 1621# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1622# -------------------------------------------- 1623# Tries to find the compile-time value of EXPR in a program that includes 1624# INCLUDES, setting VAR accordingly. Returns whether the value could be 1625# computed 1626ac_fn_c_compute_int () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if test "$cross_compiling" = yes; then 1630 # Depending upon the size, compute the lo and hi bounds. 1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1632/* end confdefs.h. */ 1633$4 1634int 1635main (void) 1636{ 1637static int test_array [1 - 2 * !(($2) >= 0)]; 1638test_array [0] = 0; 1639return test_array [0]; 1640 1641 ; 1642 return 0; 1643} 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO" 1646then : 1647 ac_lo=0 ac_mid=0 1648 while :; do 1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650/* end confdefs.h. */ 1651$4 1652int 1653main (void) 1654{ 1655static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1656test_array [0] = 0; 1657return test_array [0]; 1658 1659 ; 1660 return 0; 1661} 1662_ACEOF 1663if ac_fn_c_try_compile "$LINENO" 1664then : 1665 ac_hi=$ac_mid; break 1666else $as_nop 1667 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1668 if test $ac_lo -le $ac_mid; then 1669 ac_lo= ac_hi= 1670 break 1671 fi 1672 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1673fi 1674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1675 done 1676else $as_nop 1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679$4 1680int 1681main (void) 1682{ 1683static int test_array [1 - 2 * !(($2) < 0)]; 1684test_array [0] = 0; 1685return test_array [0]; 1686 1687 ; 1688 return 0; 1689} 1690_ACEOF 1691if ac_fn_c_try_compile "$LINENO" 1692then : 1693 ac_hi=-1 ac_mid=-1 1694 while :; do 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696/* end confdefs.h. */ 1697$4 1698int 1699main (void) 1700{ 1701static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1702test_array [0] = 0; 1703return test_array [0]; 1704 1705 ; 1706 return 0; 1707} 1708_ACEOF 1709if ac_fn_c_try_compile "$LINENO" 1710then : 1711 ac_lo=$ac_mid; break 1712else $as_nop 1713 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1714 if test $ac_mid -le $ac_hi; then 1715 ac_lo= ac_hi= 1716 break 1717 fi 1718 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1719fi 1720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1721 done 1722else $as_nop 1723 ac_lo= ac_hi= 1724fi 1725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1726fi 1727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1728# Binary search between lo and hi bounds. 1729while test "x$ac_lo" != "x$ac_hi"; do 1730 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1732/* end confdefs.h. */ 1733$4 1734int 1735main (void) 1736{ 1737static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1738test_array [0] = 0; 1739return test_array [0]; 1740 1741 ; 1742 return 0; 1743} 1744_ACEOF 1745if ac_fn_c_try_compile "$LINENO" 1746then : 1747 ac_hi=$ac_mid 1748else $as_nop 1749 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1750fi 1751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1752done 1753case $ac_lo in #(( 1754?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1755'') ac_retval=1 ;; 1756esac 1757 else 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760$4 1761static long int longval (void) { return $2; } 1762static unsigned long int ulongval (void) { return $2; } 1763#include <stdio.h> 1764#include <stdlib.h> 1765int 1766main (void) 1767{ 1768 1769 FILE *f = fopen ("conftest.val", "w"); 1770 if (! f) 1771 return 1; 1772 if (($2) < 0) 1773 { 1774 long int i = longval (); 1775 if (i != ($2)) 1776 return 1; 1777 fprintf (f, "%ld", i); 1778 } 1779 else 1780 { 1781 unsigned long int i = ulongval (); 1782 if (i != ($2)) 1783 return 1; 1784 fprintf (f, "%lu", i); 1785 } 1786 /* Do not output a trailing newline, as this causes \r\n confusion 1787 on some platforms. */ 1788 return ferror (f) || fclose (f) != 0; 1789 1790 ; 1791 return 0; 1792} 1793_ACEOF 1794if ac_fn_c_try_run "$LINENO" 1795then : 1796 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1797else $as_nop 1798 ac_retval=1 1799fi 1800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1801 conftest.$ac_objext conftest.beam conftest.$ac_ext 1802rm -f conftest.val 1803 1804 fi 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808} # ac_fn_c_compute_int 1809 1810# ac_fn_c_try_link LINENO 1811# ----------------------- 1812# Try to link conftest.$ac_ext, and return whether this succeeded. 1813ac_fn_c_try_link () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1817 if { { ac_try="$ac_link" 1818case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823printf "%s\n" "$ac_try_echo"; } >&5 1824 (eval "$ac_link") 2>conftest.err 1825 ac_status=$? 1826 if test -s conftest.err; then 1827 grep -v '^ *+' conftest.err >conftest.er1 1828 cat conftest.er1 >&5 1829 mv -f conftest.er1 conftest.err 1830 fi 1831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; } && { 1833 test -z "$ac_c_werror_flag" || 1834 test ! -s conftest.err 1835 } && test -s conftest$ac_exeext && { 1836 test "$cross_compiling" = yes || 1837 test -x conftest$ac_exeext 1838 } 1839then : 1840 ac_retval=0 1841else $as_nop 1842 printf "%s\n" "$as_me: failed program was:" >&5 1843sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846fi 1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1849 # interfere with the next link command; also delete a directory that is 1850 # left behind by Apple's compiler. We do this before executing the actions. 1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1853 as_fn_set_status $ac_retval 1854 1855} # ac_fn_c_try_link 1856 1857# ac_fn_c_check_func LINENO FUNC VAR 1858# ---------------------------------- 1859# Tests whether FUNC exists, setting the cache variable VAR accordingly 1860ac_fn_c_check_func () 1861{ 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1864printf %s "checking for $2... " >&6; } 1865if eval test \${$3+y} 1866then : 1867 printf %s "(cached) " >&6 1868else $as_nop 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870/* end confdefs.h. */ 1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1873#define $2 innocuous_$2 1874 1875/* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char $2 (); below. */ 1877 1878#include <limits.h> 1879#undef $2 1880 1881/* Override any GCC internal prototype to avoid an error. 1882 Use char because int might match the return type of a GCC 1883 builtin and then its argument prototype would still apply. */ 1884#ifdef __cplusplus 1885extern "C" 1886#endif 1887char $2 (); 1888/* The GNU C library defines this for functions which it implements 1889 to always fail with ENOSYS. Some functions are actually named 1890 something starting with __ and the normal name is an alias. */ 1891#if defined __stub_$2 || defined __stub___$2 1892choke me 1893#endif 1894 1895int 1896main (void) 1897{ 1898return $2 (); 1899 ; 1900 return 0; 1901} 1902_ACEOF 1903if ac_fn_c_try_link "$LINENO" 1904then : 1905 eval "$3=yes" 1906else $as_nop 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1910 conftest$ac_exeext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914printf "%s\n" "$ac_res" >&6; } 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 1917} # ac_fn_c_check_func 1918 1919# ac_fn_c_try_cpp LINENO 1920# ---------------------- 1921# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1922ac_fn_c_try_cpp () 1923{ 1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1925 if { { ac_try="$ac_cpp conftest.$ac_ext" 1926case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929esac 1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1931printf "%s\n" "$ac_try_echo"; } >&5 1932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1933 ac_status=$? 1934 if test -s conftest.err; then 1935 grep -v '^ *+' conftest.err >conftest.er1 1936 cat conftest.er1 >&5 1937 mv -f conftest.er1 conftest.err 1938 fi 1939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1940 test $ac_status = 0; } > conftest.i && { 1941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1942 test ! -s conftest.err 1943 } 1944then : 1945 ac_retval=0 1946else $as_nop 1947 printf "%s\n" "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=1 1951fi 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 as_fn_set_status $ac_retval 1954 1955} # ac_fn_c_try_cpp 1956 1957# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1958# ------------------------------------------------------------------ 1959# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1960# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1961ac_fn_check_decl () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 as_decl_name=`echo $2|sed 's/ *(.*//'` 1965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1966printf %s "checking whether $as_decl_name is declared... " >&6; } 1967if eval test \${$3+y} 1968then : 1969 printf %s "(cached) " >&6 1970else $as_nop 1971 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1972 eval ac_save_FLAGS=\$$6 1973 as_fn_append $6 " $5" 1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975/* end confdefs.h. */ 1976$4 1977int 1978main (void) 1979{ 1980#ifndef $as_decl_name 1981#ifdef __cplusplus 1982 (void) $as_decl_use; 1983#else 1984 (void) $as_decl_name; 1985#endif 1986#endif 1987 1988 ; 1989 return 0; 1990} 1991_ACEOF 1992if ac_fn_c_try_compile "$LINENO" 1993then : 1994 eval "$3=yes" 1995else $as_nop 1996 eval "$3=no" 1997fi 1998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1999 eval $6=\$ac_save_FLAGS 2000 2001fi 2002eval ac_res=\$$3 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2004printf "%s\n" "$ac_res" >&6; } 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 2007} # ac_fn_check_decl 2008 2009# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2010# ------------------------------------------- 2011# Tests whether TYPE exists after having included INCLUDES, setting cache 2012# variable VAR accordingly. 2013ac_fn_c_check_type () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2017printf %s "checking for $2... " >&6; } 2018if eval test \${$3+y} 2019then : 2020 printf %s "(cached) " >&6 2021else $as_nop 2022 eval "$3=no" 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main (void) 2028{ 2029if (sizeof ($2)) 2030 return 0; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO" 2036then : 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040int 2041main (void) 2042{ 2043if (sizeof (($2))) 2044 return 0; 2045 ; 2046 return 0; 2047} 2048_ACEOF 2049if ac_fn_c_try_compile "$LINENO" 2050then : 2051 2052else $as_nop 2053 eval "$3=yes" 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2058fi 2059eval ac_res=\$$3 2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2061printf "%s\n" "$ac_res" >&6; } 2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2063 2064} # ac_fn_c_check_type 2065ac_configure_args_raw= 2066for ac_arg 2067do 2068 case $ac_arg in 2069 *\'*) 2070 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2071 esac 2072 as_fn_append ac_configure_args_raw " '$ac_arg'" 2073done 2074 2075case $ac_configure_args_raw in 2076 *$as_nl*) 2077 ac_safe_unquote= ;; 2078 *) 2079 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2080 ac_unsafe_a="$ac_unsafe_z#~" 2081 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2082 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2083esac 2084 2085cat >config.log <<_ACEOF 2086This file contains any messages produced by compilers while 2087running configure, to aid debugging if configure makes a mistake. 2088 2089It was created by tcpdump $as_me 4.99.6, which was 2090generated by GNU Autoconf 2.71. Invocation command line was 2091 2092 $ $0$ac_configure_args_raw 2093 2094_ACEOF 2095exec 5>>config.log 2096{ 2097cat <<_ASUNAME 2098## --------- ## 2099## Platform. ## 2100## --------- ## 2101 2102hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2103uname -m = `(uname -m) 2>/dev/null || echo unknown` 2104uname -r = `(uname -r) 2>/dev/null || echo unknown` 2105uname -s = `(uname -s) 2>/dev/null || echo unknown` 2106uname -v = `(uname -v) 2>/dev/null || echo unknown` 2107 2108/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2109/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2110 2111/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2112/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2113/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2114/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2115/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2116/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2117/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2118 2119_ASUNAME 2120 2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2122for as_dir in $PATH 2123do 2124 IFS=$as_save_IFS 2125 case $as_dir in #((( 2126 '') as_dir=./ ;; 2127 */) ;; 2128 *) as_dir=$as_dir/ ;; 2129 esac 2130 printf "%s\n" "PATH: $as_dir" 2131 done 2132IFS=$as_save_IFS 2133 2134} >&5 2135 2136cat >&5 <<_ACEOF 2137 2138 2139## ----------- ## 2140## Core tests. ## 2141## ----------- ## 2142 2143_ACEOF 2144 2145 2146# Keep a trace of the command line. 2147# Strip out --no-create and --no-recursion so they do not pile up. 2148# Strip out --silent because we don't want to record it for future runs. 2149# Also quote any args containing shell meta-characters. 2150# Make two passes to allow for proper duplicate-argument suppression. 2151ac_configure_args= 2152ac_configure_args0= 2153ac_configure_args1= 2154ac_must_keep_next=false 2155for ac_pass in 1 2 2156do 2157 for ac_arg 2158 do 2159 case $ac_arg in 2160 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2162 | -silent | --silent | --silen | --sile | --sil) 2163 continue ;; 2164 *\'*) 2165 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2166 esac 2167 case $ac_pass in 2168 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2169 2) 2170 as_fn_append ac_configure_args1 " '$ac_arg'" 2171 if test $ac_must_keep_next = true; then 2172 ac_must_keep_next=false # Got value, back to normal. 2173 else 2174 case $ac_arg in 2175 *=* | --config-cache | -C | -disable-* | --disable-* \ 2176 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2177 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2178 | -with-* | --with-* | -without-* | --without-* | --x) 2179 case "$ac_configure_args0 " in 2180 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2181 esac 2182 ;; 2183 -* ) ac_must_keep_next=true ;; 2184 esac 2185 fi 2186 as_fn_append ac_configure_args " '$ac_arg'" 2187 ;; 2188 esac 2189 done 2190done 2191{ ac_configure_args0=; unset ac_configure_args0;} 2192{ ac_configure_args1=; unset ac_configure_args1;} 2193 2194# When interrupted or exit'd, cleanup temporary files, and complete 2195# config.log. We remove comments because anyway the quotes in there 2196# would cause problems or look ugly. 2197# WARNING: Use '\'' to represent an apostrophe within the trap. 2198# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2199trap 'exit_status=$? 2200 # Sanitize IFS. 2201 IFS=" "" $as_nl" 2202 # Save into config.log some information that might help in debugging. 2203 { 2204 echo 2205 2206 printf "%s\n" "## ---------------- ## 2207## Cache variables. ## 2208## ---------------- ##" 2209 echo 2210 # The following way of writing the cache mishandles newlines in values, 2211( 2212 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2213 eval ac_val=\$$ac_var 2214 case $ac_val in #( 2215 *${as_nl}*) 2216 case $ac_var in #( 2217 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2218printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2219 esac 2220 case $ac_var in #( 2221 _ | IFS | as_nl) ;; #( 2222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2223 *) { eval $ac_var=; unset $ac_var;} ;; 2224 esac ;; 2225 esac 2226 done 2227 (set) 2>&1 | 2228 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2229 *${as_nl}ac_space=\ *) 2230 sed -n \ 2231 "s/'\''/'\''\\\\'\'''\''/g; 2232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2233 ;; #( 2234 *) 2235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2236 ;; 2237 esac | 2238 sort 2239) 2240 echo 2241 2242 printf "%s\n" "## ----------------- ## 2243## Output variables. ## 2244## ----------------- ##" 2245 echo 2246 for ac_var in $ac_subst_vars 2247 do 2248 eval ac_val=\$$ac_var 2249 case $ac_val in 2250 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2251 esac 2252 printf "%s\n" "$ac_var='\''$ac_val'\''" 2253 done | sort 2254 echo 2255 2256 if test -n "$ac_subst_files"; then 2257 printf "%s\n" "## ------------------- ## 2258## File substitutions. ## 2259## ------------------- ##" 2260 echo 2261 for ac_var in $ac_subst_files 2262 do 2263 eval ac_val=\$$ac_var 2264 case $ac_val in 2265 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2266 esac 2267 printf "%s\n" "$ac_var='\''$ac_val'\''" 2268 done | sort 2269 echo 2270 fi 2271 2272 if test -s confdefs.h; then 2273 printf "%s\n" "## ----------- ## 2274## confdefs.h. ## 2275## ----------- ##" 2276 echo 2277 cat confdefs.h 2278 echo 2279 fi 2280 test "$ac_signal" != 0 && 2281 printf "%s\n" "$as_me: caught signal $ac_signal" 2282 printf "%s\n" "$as_me: exit $exit_status" 2283 } >&5 2284 rm -f core *.core core.conftest.* && 2285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2286 exit $exit_status 2287' 0 2288for ac_signal in 1 2 13 15; do 2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2290done 2291ac_signal=0 2292 2293# confdefs.h avoids OS command line length limits that DEFS can exceed. 2294rm -f -r conftest* confdefs.h 2295 2296printf "%s\n" "/* confdefs.h */" > confdefs.h 2297 2298# Predefined preprocessor variables. 2299 2300printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2301 2302printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2303 2304printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2305 2306printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2307 2308printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2309 2310printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2311 2312 2313# Let the site file select an alternate cache file if it wants to. 2314# Prefer an explicitly selected file to automatically selected ones. 2315if test -n "$CONFIG_SITE"; then 2316 ac_site_files="$CONFIG_SITE" 2317elif test "x$prefix" != xNONE; then 2318 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2319else 2320 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2321fi 2322 2323for ac_site_file in $ac_site_files 2324do 2325 case $ac_site_file in #( 2326 */*) : 2327 ;; #( 2328 *) : 2329 ac_site_file=./$ac_site_file ;; 2330esac 2331 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2333printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2334 sed 's/^/| /' "$ac_site_file" >&5 2335 . "$ac_site_file" \ 2336 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2337printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2338as_fn_error $? "failed to load site script $ac_site_file 2339See \`config.log' for more details" "$LINENO" 5; } 2340 fi 2341done 2342 2343if test -r "$cache_file"; then 2344 # Some versions of bash will fail to source /dev/null (special files 2345 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2348printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2349 case $cache_file in 2350 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2351 *) . "./$cache_file";; 2352 esac 2353 fi 2354else 2355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2356printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2357 >$cache_file 2358fi 2359 2360# Test code for whether the C compiler supports C89 (global declarations) 2361ac_c_conftest_c89_globals=' 2362/* Does the compiler advertise C89 conformance? 2363 Do not test the value of __STDC__, because some compilers set it to 0 2364 while being otherwise adequately conformant. */ 2365#if !defined __STDC__ 2366# error "Compiler does not advertise C89 conformance" 2367#endif 2368 2369#include <stddef.h> 2370#include <stdarg.h> 2371struct stat; 2372/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2373struct buf { int x; }; 2374struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2375static char *e (p, i) 2376 char **p; 2377 int i; 2378{ 2379 return p[i]; 2380} 2381static char *f (char * (*g) (char **, int), char **p, ...) 2382{ 2383 char *s; 2384 va_list v; 2385 va_start (v,p); 2386 s = g (p, va_arg (v,int)); 2387 va_end (v); 2388 return s; 2389} 2390 2391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2392 function prototypes and stuff, but not \xHH hex character constants. 2393 These do not provoke an error unfortunately, instead are silently treated 2394 as an "x". The following induces an error, until -std is added to get 2395 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2396 array size at least. It is necessary to write \x00 == 0 to get something 2397 that is true only with -std. */ 2398int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2399 2400/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2401 inside strings and character constants. */ 2402#define FOO(x) '\''x'\'' 2403int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2404 2405int test (int i, double x); 2406struct s1 {int (*f) (int a);}; 2407struct s2 {int (*f) (double a);}; 2408int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2409 int, int);' 2410 2411# Test code for whether the C compiler supports C89 (body of main). 2412ac_c_conftest_c89_main=' 2413ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2414' 2415 2416# Test code for whether the C compiler supports C99 (global declarations) 2417ac_c_conftest_c99_globals=' 2418// Does the compiler advertise C99 conformance? 2419#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2420# error "Compiler does not advertise C99 conformance" 2421#endif 2422 2423#include <stdbool.h> 2424extern int puts (const char *); 2425extern int printf (const char *, ...); 2426extern int dprintf (int, const char *, ...); 2427extern void *malloc (size_t); 2428 2429// Check varargs macros. These examples are taken from C99 6.10.3.5. 2430// dprintf is used instead of fprintf to avoid needing to declare 2431// FILE and stderr. 2432#define debug(...) dprintf (2, __VA_ARGS__) 2433#define showlist(...) puts (#__VA_ARGS__) 2434#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2435static void 2436test_varargs_macros (void) 2437{ 2438 int x = 1234; 2439 int y = 5678; 2440 debug ("Flag"); 2441 debug ("X = %d\n", x); 2442 showlist (The first, second, and third items.); 2443 report (x>y, "x is %d but y is %d", x, y); 2444} 2445 2446// Check long long types. 2447#define BIG64 18446744073709551615ull 2448#define BIG32 4294967295ul 2449#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2450#if !BIG_OK 2451 #error "your preprocessor is broken" 2452#endif 2453#if BIG_OK 2454#else 2455 #error "your preprocessor is broken" 2456#endif 2457static long long int bignum = -9223372036854775807LL; 2458static unsigned long long int ubignum = BIG64; 2459 2460struct incomplete_array 2461{ 2462 int datasize; 2463 double data[]; 2464}; 2465 2466struct named_init { 2467 int number; 2468 const wchar_t *name; 2469 double average; 2470}; 2471 2472typedef const char *ccp; 2473 2474static inline int 2475test_restrict (ccp restrict text) 2476{ 2477 // See if C++-style comments work. 2478 // Iterate through items via the restricted pointer. 2479 // Also check for declarations in for loops. 2480 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2481 continue; 2482 return 0; 2483} 2484 2485// Check varargs and va_copy. 2486static bool 2487test_varargs (const char *format, ...) 2488{ 2489 va_list args; 2490 va_start (args, format); 2491 va_list args_copy; 2492 va_copy (args_copy, args); 2493 2494 const char *str = ""; 2495 int number = 0; 2496 float fnumber = 0; 2497 2498 while (*format) 2499 { 2500 switch (*format++) 2501 { 2502 case '\''s'\'': // string 2503 str = va_arg (args_copy, const char *); 2504 break; 2505 case '\''d'\'': // int 2506 number = va_arg (args_copy, int); 2507 break; 2508 case '\''f'\'': // float 2509 fnumber = va_arg (args_copy, double); 2510 break; 2511 default: 2512 break; 2513 } 2514 } 2515 va_end (args_copy); 2516 va_end (args); 2517 2518 return *str && number && fnumber; 2519} 2520' 2521 2522# Test code for whether the C compiler supports C99 (body of main). 2523ac_c_conftest_c99_main=' 2524 // Check bool. 2525 _Bool success = false; 2526 success |= (argc != 0); 2527 2528 // Check restrict. 2529 if (test_restrict ("String literal") == 0) 2530 success = true; 2531 char *restrict newvar = "Another string"; 2532 2533 // Check varargs. 2534 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2535 test_varargs_macros (); 2536 2537 // Check flexible array members. 2538 struct incomplete_array *ia = 2539 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2540 ia->datasize = 10; 2541 for (int i = 0; i < ia->datasize; ++i) 2542 ia->data[i] = i * 1.234; 2543 2544 // Check named initializers. 2545 struct named_init ni = { 2546 .number = 34, 2547 .name = L"Test wide string", 2548 .average = 543.34343, 2549 }; 2550 2551 ni.number = 58; 2552 2553 int dynamic_array[ni.number]; 2554 dynamic_array[0] = argv[0][0]; 2555 dynamic_array[ni.number - 1] = 543; 2556 2557 // work around unused variable warnings 2558 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2559 || dynamic_array[ni.number - 1] != 543); 2560' 2561 2562# Test code for whether the C compiler supports C11 (global declarations) 2563ac_c_conftest_c11_globals=' 2564// Does the compiler advertise C11 conformance? 2565#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2566# error "Compiler does not advertise C11 conformance" 2567#endif 2568 2569// Check _Alignas. 2570char _Alignas (double) aligned_as_double; 2571char _Alignas (0) no_special_alignment; 2572extern char aligned_as_int; 2573char _Alignas (0) _Alignas (int) aligned_as_int; 2574 2575// Check _Alignof. 2576enum 2577{ 2578 int_alignment = _Alignof (int), 2579 int_array_alignment = _Alignof (int[100]), 2580 char_alignment = _Alignof (char) 2581}; 2582_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2583 2584// Check _Noreturn. 2585int _Noreturn does_not_return (void) { for (;;) continue; } 2586 2587// Check _Static_assert. 2588struct test_static_assert 2589{ 2590 int x; 2591 _Static_assert (sizeof (int) <= sizeof (long int), 2592 "_Static_assert does not work in struct"); 2593 long int y; 2594}; 2595 2596// Check UTF-8 literals. 2597#define u8 syntax error! 2598char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2599 2600// Check duplicate typedefs. 2601typedef long *long_ptr; 2602typedef long int *long_ptr; 2603typedef long_ptr long_ptr; 2604 2605// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2606struct anonymous 2607{ 2608 union { 2609 struct { int i; int j; }; 2610 struct { int k; long int l; } w; 2611 }; 2612 int m; 2613} v1; 2614' 2615 2616# Test code for whether the C compiler supports C11 (body of main). 2617ac_c_conftest_c11_main=' 2618 _Static_assert ((offsetof (struct anonymous, i) 2619 == offsetof (struct anonymous, w.k)), 2620 "Anonymous union alignment botch"); 2621 v1.i = 2; 2622 v1.w.k = 5; 2623 ok |= v1.i != 5; 2624' 2625 2626# Test code for whether the C compiler supports C11 (complete). 2627ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2628${ac_c_conftest_c99_globals} 2629${ac_c_conftest_c11_globals} 2630 2631int 2632main (int argc, char **argv) 2633{ 2634 int ok = 0; 2635 ${ac_c_conftest_c89_main} 2636 ${ac_c_conftest_c99_main} 2637 ${ac_c_conftest_c11_main} 2638 return ok; 2639} 2640" 2641 2642# Test code for whether the C compiler supports C99 (complete). 2643ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2644${ac_c_conftest_c99_globals} 2645 2646int 2647main (int argc, char **argv) 2648{ 2649 int ok = 0; 2650 ${ac_c_conftest_c89_main} 2651 ${ac_c_conftest_c99_main} 2652 return ok; 2653} 2654" 2655 2656# Test code for whether the C compiler supports C89 (complete). 2657ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2658 2659int 2660main (int argc, char **argv) 2661{ 2662 int ok = 0; 2663 ${ac_c_conftest_c89_main} 2664 return ok; 2665} 2666" 2667 2668as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2669as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2670as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2671as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2672as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2673as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2674as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2675as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2676as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2677 2678# Auxiliary files required by this configure script. 2679ac_aux_files="install-sh config.guess config.sub" 2680 2681# Locations in which to look for auxiliary files. 2682ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2683 2684# Search for a directory containing all of the required auxiliary files, 2685# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2686# If we don't find one directory that contains all the files we need, 2687# we report the set of missing files from the *first* directory in 2688# $ac_aux_dir_candidates and give up. 2689ac_missing_aux_files="" 2690ac_first_candidate=: 2691printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693as_found=false 2694for as_dir in $ac_aux_dir_candidates 2695do 2696 IFS=$as_save_IFS 2697 case $as_dir in #((( 2698 '') as_dir=./ ;; 2699 */) ;; 2700 *) as_dir=$as_dir/ ;; 2701 esac 2702 as_found=: 2703 2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2705 ac_aux_dir_found=yes 2706 ac_install_sh= 2707 for ac_aux in $ac_aux_files 2708 do 2709 # As a special case, if "install-sh" is required, that requirement 2710 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2711 # and $ac_install_sh is set appropriately for whichever one is found. 2712 if test x"$ac_aux" = x"install-sh" 2713 then 2714 if test -f "${as_dir}install-sh"; then 2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2716 ac_install_sh="${as_dir}install-sh -c" 2717 elif test -f "${as_dir}install.sh"; then 2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2719 ac_install_sh="${as_dir}install.sh -c" 2720 elif test -f "${as_dir}shtool"; then 2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2722 ac_install_sh="${as_dir}shtool install -c" 2723 else 2724 ac_aux_dir_found=no 2725 if $ac_first_candidate; then 2726 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2727 else 2728 break 2729 fi 2730 fi 2731 else 2732 if test -f "${as_dir}${ac_aux}"; then 2733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2734 else 2735 ac_aux_dir_found=no 2736 if $ac_first_candidate; then 2737 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2738 else 2739 break 2740 fi 2741 fi 2742 fi 2743 done 2744 if test "$ac_aux_dir_found" = yes; then 2745 ac_aux_dir="$as_dir" 2746 break 2747 fi 2748 ac_first_candidate=false 2749 2750 as_found=false 2751done 2752IFS=$as_save_IFS 2753if $as_found 2754then : 2755 2756else $as_nop 2757 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2758fi 2759 2760 2761# These three variables are undocumented and unsupported, 2762# and are intended to be withdrawn in a future Autoconf release. 2763# They can cause serious problems if a builder's source tree is in a directory 2764# whose full name contains unusual characters. 2765if test -f "${ac_aux_dir}config.guess"; then 2766 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2767fi 2768if test -f "${ac_aux_dir}config.sub"; then 2769 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2770fi 2771if test -f "$ac_aux_dir/configure"; then 2772 ac_configure="$SHELL ${ac_aux_dir}configure" 2773fi 2774 2775# Check that the precious variables saved in the cache have kept the same 2776# value. 2777ac_cache_corrupted=false 2778for ac_var in $ac_precious_vars; do 2779 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2780 eval ac_new_set=\$ac_env_${ac_var}_set 2781 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2782 eval ac_new_val=\$ac_env_${ac_var}_value 2783 case $ac_old_set,$ac_new_set in 2784 set,) 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2786printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2787 ac_cache_corrupted=: ;; 2788 ,set) 2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2790printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2791 ac_cache_corrupted=: ;; 2792 ,);; 2793 *) 2794 if test "x$ac_old_val" != "x$ac_new_val"; then 2795 # differences in whitespace do not lead to failure. 2796 ac_old_val_w=`echo x $ac_old_val` 2797 ac_new_val_w=`echo x $ac_new_val` 2798 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2800printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2801 ac_cache_corrupted=: 2802 else 2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2804printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2805 eval $ac_var=\$ac_old_val 2806 fi 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2808printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2810printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2811 fi;; 2812 esac 2813 # Pass precious variables to config.status. 2814 if test "$ac_new_set" = set; then 2815 case $ac_new_val in 2816 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2817 *) ac_arg=$ac_var=$ac_new_val ;; 2818 esac 2819 case " $ac_configure_args " in 2820 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2821 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2822 esac 2823 fi 2824done 2825if $ac_cache_corrupted; then 2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2827printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2829printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2830 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2831 and start over" "$LINENO" 5 2832fi 2833## -------------------- ## 2834## Main body of script. ## 2835## -------------------- ## 2836 2837ac_ext=c 2838ac_cpp='$CPP $CPPFLAGS' 2839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841ac_compiler_gnu=$ac_cv_c_compiler_gnu 2842 2843 2844 2845 2846 2847 2848 2849 # Make sure we can run config.sub. 2850$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 2851 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 2852 2853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2854printf %s "checking build system type... " >&6; } 2855if test ${ac_cv_build+y} 2856then : 2857 printf %s "(cached) " >&6 2858else $as_nop 2859 ac_build_alias=$build_alias 2860test "x$ac_build_alias" = x && 2861 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 2862test "x$ac_build_alias" = x && 2863 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2864ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 2865 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 2866 2867fi 2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2869printf "%s\n" "$ac_cv_build" >&6; } 2870case $ac_cv_build in 2871*-*-*) ;; 2872*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2873esac 2874build=$ac_cv_build 2875ac_save_IFS=$IFS; IFS='-' 2876set x $ac_cv_build 2877shift 2878build_cpu=$1 2879build_vendor=$2 2880shift; shift 2881# Remember, the first character of IFS is used to create $*, 2882# except with old shells: 2883build_os=$* 2884IFS=$ac_save_IFS 2885case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2886 2887 2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2889printf %s "checking host system type... " >&6; } 2890if test ${ac_cv_host+y} 2891then : 2892 printf %s "(cached) " >&6 2893else $as_nop 2894 if test "x$host_alias" = x; then 2895 ac_cv_host=$ac_cv_build 2896else 2897 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 2898 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 2899fi 2900 2901fi 2902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2903printf "%s\n" "$ac_cv_host" >&6; } 2904case $ac_cv_host in 2905*-*-*) ;; 2906*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2907esac 2908host=$ac_cv_host 2909ac_save_IFS=$IFS; IFS='-' 2910set x $ac_cv_host 2911shift 2912host_cpu=$1 2913host_vendor=$2 2914shift; shift 2915# Remember, the first character of IFS is used to create $*, 2916# except with old shells: 2917host_os=$* 2918IFS=$ac_save_IFS 2919case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2920 2921 2922 2923 2924 2925 2926 2927 2928# Check whether --with-gcc was given. 2929if test ${with_gcc+y} 2930then : 2931 withval=$with_gcc; 2932fi 2933 2934 V_INCLS="" 2935 if test "${srcdir}" != "." ; then 2936 V_INCLS="-I$srcdir" 2937 fi 2938 if test "${CFLAGS+set}" = set; then 2939 LBL_CFLAGS="$CFLAGS" 2940 fi 2941 if test -z "$CC" ; then 2942 case "$host_os" in 2943 2944 bsdi*) 2945 # Extract the first word of "shlicc2", so it can be a program name with args. 2946set dummy shlicc2; ac_word=$2 2947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948printf %s "checking for $ac_word... " >&6; } 2949if test ${ac_cv_prog_SHLICC2+y} 2950then : 2951 printf %s "(cached) " >&6 2952else $as_nop 2953 if test -n "$SHLICC2"; then 2954 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test. 2955else 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 case $as_dir in #((( 2961 '') as_dir=./ ;; 2962 */) ;; 2963 *) as_dir=$as_dir/ ;; 2964 esac 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2967 ac_cv_prog_SHLICC2="yes" 2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no" 2976fi 2977fi 2978SHLICC2=$ac_cv_prog_SHLICC2 2979if test -n "$SHLICC2"; then 2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLICC2" >&5 2981printf "%s\n" "$SHLICC2" >&6; } 2982else 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984printf "%s\n" "no" >&6; } 2985fi 2986 2987 2988 if test $SHLICC2 = yes ; then 2989 CC=shlicc2 2990 export CC 2991 fi 2992 ;; 2993 esac 2994 fi 2995 if test -z "$CC" -a "$with_gcc" = no ; then 2996 CC=cc 2997 export CC 2998 fi 2999 3000# 3001# Try to enable as many C99 features as we can. 3002# At minimum, we want C++/C99-style // comments. 3003# 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013ac_ext=c 3014ac_cpp='$CPP $CPPFLAGS' 3015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3017ac_compiler_gnu=$ac_cv_c_compiler_gnu 3018if test -n "$ac_tool_prefix"; then 3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3020set dummy ${ac_tool_prefix}gcc; ac_word=$2 3021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022printf %s "checking for $ac_word... " >&6; } 3023if test ${ac_cv_prog_CC+y} 3024then : 3025 printf %s "(cached) " >&6 3026else $as_nop 3027 if test -n "$CC"; then 3028 ac_cv_prog_CC="$CC" # Let the user override the test. 3029else 3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3031for as_dir in $PATH 3032do 3033 IFS=$as_save_IFS 3034 case $as_dir in #((( 3035 '') as_dir=./ ;; 3036 */) ;; 3037 *) as_dir=$as_dir/ ;; 3038 esac 3039 for ac_exec_ext in '' $ac_executable_extensions; do 3040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3041 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3043 break 2 3044 fi 3045done 3046 done 3047IFS=$as_save_IFS 3048 3049fi 3050fi 3051CC=$ac_cv_prog_CC 3052if test -n "$CC"; then 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3054printf "%s\n" "$CC" >&6; } 3055else 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3057printf "%s\n" "no" >&6; } 3058fi 3059 3060 3061fi 3062if test -z "$ac_cv_prog_CC"; then 3063 ac_ct_CC=$CC 3064 # Extract the first word of "gcc", so it can be a program name with args. 3065set dummy gcc; ac_word=$2 3066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3067printf %s "checking for $ac_word... " >&6; } 3068if test ${ac_cv_prog_ac_ct_CC+y} 3069then : 3070 printf %s "(cached) " >&6 3071else $as_nop 3072 if test -n "$ac_ct_CC"; then 3073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3074else 3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076for as_dir in $PATH 3077do 3078 IFS=$as_save_IFS 3079 case $as_dir in #((( 3080 '') as_dir=./ ;; 3081 */) ;; 3082 *) as_dir=$as_dir/ ;; 3083 esac 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3086 ac_cv_prog_ac_ct_CC="gcc" 3087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3088 break 2 3089 fi 3090done 3091 done 3092IFS=$as_save_IFS 3093 3094fi 3095fi 3096ac_ct_CC=$ac_cv_prog_ac_ct_CC 3097if test -n "$ac_ct_CC"; then 3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3099printf "%s\n" "$ac_ct_CC" >&6; } 3100else 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102printf "%s\n" "no" >&6; } 3103fi 3104 3105 if test "x$ac_ct_CC" = x; then 3106 CC="" 3107 else 3108 case $cross_compiling:$ac_tool_warned in 3109yes:) 3110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3111printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3112ac_tool_warned=yes ;; 3113esac 3114 CC=$ac_ct_CC 3115 fi 3116else 3117 CC="$ac_cv_prog_CC" 3118fi 3119 3120if test -z "$CC"; then 3121 if test -n "$ac_tool_prefix"; then 3122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3123set dummy ${ac_tool_prefix}cc; ac_word=$2 3124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3125printf %s "checking for $ac_word... " >&6; } 3126if test ${ac_cv_prog_CC+y} 3127then : 3128 printf %s "(cached) " >&6 3129else $as_nop 3130 if test -n "$CC"; then 3131 ac_cv_prog_CC="$CC" # Let the user override the test. 3132else 3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH 3135do 3136 IFS=$as_save_IFS 3137 case $as_dir in #((( 3138 '') as_dir=./ ;; 3139 */) ;; 3140 *) as_dir=$as_dir/ ;; 3141 esac 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_CC="${ac_tool_prefix}cc" 3145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157printf "%s\n" "$CC" >&6; } 3158else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160printf "%s\n" "no" >&6; } 3161fi 3162 3163 3164 fi 3165fi 3166if test -z "$CC"; then 3167 # Extract the first word of "cc", so it can be a program name with args. 3168set dummy cc; ac_word=$2 3169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170printf %s "checking for $ac_word... " >&6; } 3171if test ${ac_cv_prog_CC+y} 3172then : 3173 printf %s "(cached) " >&6 3174else $as_nop 3175 if test -n "$CC"; then 3176 ac_cv_prog_CC="$CC" # Let the user override the test. 3177else 3178 ac_prog_rejected=no 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 case $as_dir in #((( 3184 '') as_dir=./ ;; 3185 */) ;; 3186 *) as_dir=$as_dir/ ;; 3187 esac 3188 for ac_exec_ext in '' $ac_executable_extensions; do 3189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3190 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3191 ac_prog_rejected=yes 3192 continue 3193 fi 3194 ac_cv_prog_CC="cc" 3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3196 break 2 3197 fi 3198done 3199 done 3200IFS=$as_save_IFS 3201 3202if test $ac_prog_rejected = yes; then 3203 # We found a bogon in the path, so make sure we never use it. 3204 set dummy $ac_cv_prog_CC 3205 shift 3206 if test $# != 0; then 3207 # We chose a different compiler from the bogus one. 3208 # However, it has the same basename, so the bogon will be chosen 3209 # first if we set CC to just the basename; use the full file name. 3210 shift 3211 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3212 fi 3213fi 3214fi 3215fi 3216CC=$ac_cv_prog_CC 3217if test -n "$CC"; then 3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3219printf "%s\n" "$CC" >&6; } 3220else 3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222printf "%s\n" "no" >&6; } 3223fi 3224 3225 3226fi 3227if test -z "$CC"; then 3228 if test -n "$ac_tool_prefix"; then 3229 for ac_prog in cl.exe 3230 do 3231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3232set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234printf %s "checking for $ac_word... " >&6; } 3235if test ${ac_cv_prog_CC+y} 3236then : 3237 printf %s "(cached) " >&6 3238else $as_nop 3239 if test -n "$CC"; then 3240 ac_cv_prog_CC="$CC" # Let the user override the test. 3241else 3242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 case $as_dir in #((( 3247 '') as_dir=./ ;; 3248 */) ;; 3249 *) as_dir=$as_dir/ ;; 3250 esac 3251 for ac_exec_ext in '' $ac_executable_extensions; do 3252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3255 break 2 3256 fi 3257done 3258 done 3259IFS=$as_save_IFS 3260 3261fi 3262fi 3263CC=$ac_cv_prog_CC 3264if test -n "$CC"; then 3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3266printf "%s\n" "$CC" >&6; } 3267else 3268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3269printf "%s\n" "no" >&6; } 3270fi 3271 3272 3273 test -n "$CC" && break 3274 done 3275fi 3276if test -z "$CC"; then 3277 ac_ct_CC=$CC 3278 for ac_prog in cl.exe 3279do 3280 # Extract the first word of "$ac_prog", so it can be a program name with args. 3281set dummy $ac_prog; ac_word=$2 3282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3283printf %s "checking for $ac_word... " >&6; } 3284if test ${ac_cv_prog_ac_ct_CC+y} 3285then : 3286 printf %s "(cached) " >&6 3287else $as_nop 3288 if test -n "$ac_ct_CC"; then 3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3290else 3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH 3293do 3294 IFS=$as_save_IFS 3295 case $as_dir in #((( 3296 '') as_dir=./ ;; 3297 */) ;; 3298 *) as_dir=$as_dir/ ;; 3299 esac 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_ac_ct_CC="$ac_prog" 3303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306done 3307 done 3308IFS=$as_save_IFS 3309 3310fi 3311fi 3312ac_ct_CC=$ac_cv_prog_ac_ct_CC 3313if test -n "$ac_ct_CC"; then 3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3315printf "%s\n" "$ac_ct_CC" >&6; } 3316else 3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318printf "%s\n" "no" >&6; } 3319fi 3320 3321 3322 test -n "$ac_ct_CC" && break 3323done 3324 3325 if test "x$ac_ct_CC" = x; then 3326 CC="" 3327 else 3328 case $cross_compiling:$ac_tool_warned in 3329yes:) 3330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3331printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3332ac_tool_warned=yes ;; 3333esac 3334 CC=$ac_ct_CC 3335 fi 3336fi 3337 3338fi 3339if test -z "$CC"; then 3340 if test -n "$ac_tool_prefix"; then 3341 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3342set dummy ${ac_tool_prefix}clang; ac_word=$2 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3344printf %s "checking for $ac_word... " >&6; } 3345if test ${ac_cv_prog_CC+y} 3346then : 3347 printf %s "(cached) " >&6 3348else $as_nop 3349 if test -n "$CC"; then 3350 ac_cv_prog_CC="$CC" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 3355 IFS=$as_save_IFS 3356 case $as_dir in #((( 3357 '') as_dir=./ ;; 3358 */) ;; 3359 *) as_dir=$as_dir/ ;; 3360 esac 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3363 ac_cv_prog_CC="${ac_tool_prefix}clang" 3364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3365 break 2 3366 fi 3367done 3368 done 3369IFS=$as_save_IFS 3370 3371fi 3372fi 3373CC=$ac_cv_prog_CC 3374if test -n "$CC"; then 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3376printf "%s\n" "$CC" >&6; } 3377else 3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3379printf "%s\n" "no" >&6; } 3380fi 3381 3382 3383fi 3384if test -z "$ac_cv_prog_CC"; then 3385 ac_ct_CC=$CC 3386 # Extract the first word of "clang", so it can be a program name with args. 3387set dummy clang; ac_word=$2 3388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3389printf %s "checking for $ac_word... " >&6; } 3390if test ${ac_cv_prog_ac_ct_CC+y} 3391then : 3392 printf %s "(cached) " >&6 3393else $as_nop 3394 if test -n "$ac_ct_CC"; then 3395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3396else 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 case $as_dir in #((( 3402 '') as_dir=./ ;; 3403 */) ;; 3404 *) as_dir=$as_dir/ ;; 3405 esac 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="clang" 3409 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3421printf "%s\n" "$ac_ct_CC" >&6; } 3422else 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424printf "%s\n" "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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3433printf "%s\n" "$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 3442fi 3443 3444 3445test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3446printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3447as_fn_error $? "no acceptable C compiler found in \$PATH 3448See \`config.log' for more details" "$LINENO" 5; } 3449 3450# Provide some information about the compiler. 3451printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3452set X $ac_compile 3453ac_compiler=$2 3454for ac_option in --version -v -V -qversion -version; do 3455 { { ac_try="$ac_compiler $ac_option >&5" 3456case "(($ac_try" in 3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3458 *) ac_try_echo=$ac_try;; 3459esac 3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3461printf "%s\n" "$ac_try_echo"; } >&5 3462 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3463 ac_status=$? 3464 if test -s conftest.err; then 3465 sed '10a\ 3466... rest of stderr output deleted ... 3467 10q' conftest.err >conftest.er1 3468 cat conftest.er1 >&5 3469 fi 3470 rm -f conftest.er1 conftest.err 3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3472 test $ac_status = 0; } 3473done 3474 3475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3476/* end confdefs.h. */ 3477 3478int 3479main (void) 3480{ 3481 3482 ; 3483 return 0; 3484} 3485_ACEOF 3486ac_clean_files_save=$ac_clean_files 3487ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3488# Try to create an executable without -o first, disregard a.out. 3489# It will help us diagnose broken compilers, and finding out an intuition 3490# of exeext. 3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3492printf %s "checking whether the C compiler works... " >&6; } 3493ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3494 3495# The possible output files: 3496ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3497 3498ac_rmfiles= 3499for ac_file in $ac_files 3500do 3501 case $ac_file in 3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3503 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3504 esac 3505done 3506rm -f $ac_rmfiles 3507 3508if { { ac_try="$ac_link_default" 3509case "(($ac_try" in 3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3511 *) ac_try_echo=$ac_try;; 3512esac 3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3514printf "%s\n" "$ac_try_echo"; } >&5 3515 (eval "$ac_link_default") 2>&5 3516 ac_status=$? 3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3518 test $ac_status = 0; } 3519then : 3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3521# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3522# in a Makefile. We should not override ac_cv_exeext if it was cached, 3523# so that the user can short-circuit this test for compilers unknown to 3524# Autoconf. 3525for ac_file in $ac_files '' 3526do 3527 test -f "$ac_file" || continue 3528 case $ac_file in 3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3530 ;; 3531 [ab].out ) 3532 # We found the default executable, but exeext='' is most 3533 # certainly right. 3534 break;; 3535 *.* ) 3536 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3537 then :; else 3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3539 fi 3540 # We set ac_cv_exeext here because the later test for it is not 3541 # safe: cross compilers may not add the suffix if given an `-o' 3542 # argument, so we may need to know it at that point already. 3543 # Even if this section looks crufty: it has the advantage of 3544 # actually working. 3545 break;; 3546 * ) 3547 break;; 3548 esac 3549done 3550test "$ac_cv_exeext" = no && ac_cv_exeext= 3551 3552else $as_nop 3553 ac_file='' 3554fi 3555if test -z "$ac_file" 3556then : 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3558printf "%s\n" "no" >&6; } 3559printf "%s\n" "$as_me: failed program was:" >&5 3560sed 's/^/| /' conftest.$ac_ext >&5 3561 3562{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3563printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3564as_fn_error 77 "C compiler cannot create executables 3565See \`config.log' for more details" "$LINENO" 5; } 3566else $as_nop 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3568printf "%s\n" "yes" >&6; } 3569fi 3570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3571printf %s "checking for C compiler default output file name... " >&6; } 3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3573printf "%s\n" "$ac_file" >&6; } 3574ac_exeext=$ac_cv_exeext 3575 3576rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3577ac_clean_files=$ac_clean_files_save 3578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3579printf %s "checking for suffix of executables... " >&6; } 3580if { { ac_try="$ac_link" 3581case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586printf "%s\n" "$ac_try_echo"; } >&5 3587 (eval "$ac_link") 2>&5 3588 ac_status=$? 3589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; } 3591then : 3592 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3593# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3594# work properly (i.e., refer to `conftest.exe'), while it won't with 3595# `rm'. 3596for ac_file in conftest.exe conftest conftest.*; do 3597 test -f "$ac_file" || continue 3598 case $ac_file in 3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3601 break;; 3602 * ) break;; 3603 esac 3604done 3605else $as_nop 3606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3607printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3608as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3609See \`config.log' for more details" "$LINENO" 5; } 3610fi 3611rm -f conftest conftest$ac_cv_exeext 3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3613printf "%s\n" "$ac_cv_exeext" >&6; } 3614 3615rm -f conftest.$ac_ext 3616EXEEXT=$ac_cv_exeext 3617ac_exeext=$EXEEXT 3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#include <stdio.h> 3621int 3622main (void) 3623{ 3624FILE *f = fopen ("conftest.out", "w"); 3625 return ferror (f) || fclose (f) != 0; 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631ac_clean_files="$ac_clean_files conftest.out" 3632# Check that the compiler produces executables we can run. If not, either 3633# the compiler is broken, or we cross compile. 3634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3635printf %s "checking whether we are cross compiling... " >&6; } 3636if test "$cross_compiling" != yes; then 3637 { { ac_try="$ac_link" 3638case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643printf "%s\n" "$ac_try_echo"; } >&5 3644 (eval "$ac_link") 2>&5 3645 ac_status=$? 3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3647 test $ac_status = 0; } 3648 if { ac_try='./conftest$ac_cv_exeext' 3649 { { case "(($ac_try" in 3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3651 *) ac_try_echo=$ac_try;; 3652esac 3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3654printf "%s\n" "$ac_try_echo"; } >&5 3655 (eval "$ac_try") 2>&5 3656 ac_status=$? 3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3658 test $ac_status = 0; }; }; then 3659 cross_compiling=no 3660 else 3661 if test "$cross_compiling" = maybe; then 3662 cross_compiling=yes 3663 else 3664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3665printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3666as_fn_error 77 "cannot run C compiled programs. 3667If you meant to cross compile, use \`--host'. 3668See \`config.log' for more details" "$LINENO" 5; } 3669 fi 3670 fi 3671fi 3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3673printf "%s\n" "$cross_compiling" >&6; } 3674 3675rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3676ac_clean_files=$ac_clean_files_save 3677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3678printf %s "checking for suffix of object files... " >&6; } 3679if test ${ac_cv_objext+y} 3680then : 3681 printf %s "(cached) " >&6 3682else $as_nop 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686int 3687main (void) 3688{ 3689 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694rm -f conftest.o conftest.obj 3695if { { ac_try="$ac_compile" 3696case "(($ac_try" in 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3698 *) ac_try_echo=$ac_try;; 3699esac 3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3701printf "%s\n" "$ac_try_echo"; } >&5 3702 (eval "$ac_compile") 2>&5 3703 ac_status=$? 3704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3705 test $ac_status = 0; } 3706then : 3707 for ac_file in conftest.o conftest.obj conftest.*; do 3708 test -f "$ac_file" || continue; 3709 case $ac_file in 3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3712 break;; 3713 esac 3714done 3715else $as_nop 3716 printf "%s\n" "$as_me: failed program was:" >&5 3717sed 's/^/| /' conftest.$ac_ext >&5 3718 3719{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3720printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3721as_fn_error $? "cannot compute suffix of object files: cannot compile 3722See \`config.log' for more details" "$LINENO" 5; } 3723fi 3724rm -f conftest.$ac_cv_objext conftest.$ac_ext 3725fi 3726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3727printf "%s\n" "$ac_cv_objext" >&6; } 3728OBJEXT=$ac_cv_objext 3729ac_objext=$OBJEXT 3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3731printf %s "checking whether the compiler supports GNU C... " >&6; } 3732if test ${ac_cv_c_compiler_gnu+y} 3733then : 3734 printf %s "(cached) " >&6 3735else $as_nop 3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3737/* end confdefs.h. */ 3738 3739int 3740main (void) 3741{ 3742#ifndef __GNUC__ 3743 choke me 3744#endif 3745 3746 ; 3747 return 0; 3748} 3749_ACEOF 3750if ac_fn_c_try_compile "$LINENO" 3751then : 3752 ac_compiler_gnu=yes 3753else $as_nop 3754 ac_compiler_gnu=no 3755fi 3756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3757ac_cv_c_compiler_gnu=$ac_compiler_gnu 3758 3759fi 3760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3761printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3762ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763 3764if test $ac_compiler_gnu = yes; then 3765 GCC=yes 3766else 3767 GCC= 3768fi 3769ac_test_CFLAGS=${CFLAGS+y} 3770ac_save_CFLAGS=$CFLAGS 3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3772printf %s "checking whether $CC accepts -g... " >&6; } 3773if test ${ac_cv_prog_cc_g+y} 3774then : 3775 printf %s "(cached) " >&6 3776else $as_nop 3777 ac_save_c_werror_flag=$ac_c_werror_flag 3778 ac_c_werror_flag=yes 3779 ac_cv_prog_cc_g=no 3780 CFLAGS="-g" 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784int 3785main (void) 3786{ 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792if ac_fn_c_try_compile "$LINENO" 3793then : 3794 ac_cv_prog_cc_g=yes 3795else $as_nop 3796 CFLAGS="" 3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3798/* end confdefs.h. */ 3799 3800int 3801main (void) 3802{ 3803 3804 ; 3805 return 0; 3806} 3807_ACEOF 3808if ac_fn_c_try_compile "$LINENO" 3809then : 3810 3811else $as_nop 3812 ac_c_werror_flag=$ac_save_c_werror_flag 3813 CFLAGS="-g" 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815/* end confdefs.h. */ 3816 3817int 3818main (void) 3819{ 3820 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825if ac_fn_c_try_compile "$LINENO" 3826then : 3827 ac_cv_prog_cc_g=yes 3828fi 3829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3830fi 3831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3832fi 3833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3834 ac_c_werror_flag=$ac_save_c_werror_flag 3835fi 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3837printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3838if test $ac_test_CFLAGS; then 3839 CFLAGS=$ac_save_CFLAGS 3840elif test $ac_cv_prog_cc_g = yes; then 3841 if test "$GCC" = yes; then 3842 CFLAGS="-g -O2" 3843 else 3844 CFLAGS="-g" 3845 fi 3846else 3847 if test "$GCC" = yes; then 3848 CFLAGS="-O2" 3849 else 3850 CFLAGS= 3851 fi 3852fi 3853ac_prog_cc_stdc=no 3854if test x$ac_prog_cc_stdc = xno 3855then : 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3857printf %s "checking for $CC option to enable C11 features... " >&6; } 3858if test ${ac_cv_prog_cc_c11+y} 3859then : 3860 printf %s "(cached) " >&6 3861else $as_nop 3862 ac_cv_prog_cc_c11=no 3863ac_save_CC=$CC 3864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3865/* end confdefs.h. */ 3866$ac_c_conftest_c11_program 3867_ACEOF 3868for ac_arg in '' -std=gnu11 3869do 3870 CC="$ac_save_CC $ac_arg" 3871 if ac_fn_c_try_compile "$LINENO" 3872then : 3873 ac_cv_prog_cc_c11=$ac_arg 3874fi 3875rm -f core conftest.err conftest.$ac_objext conftest.beam 3876 test "x$ac_cv_prog_cc_c11" != "xno" && break 3877done 3878rm -f conftest.$ac_ext 3879CC=$ac_save_CC 3880fi 3881 3882if test "x$ac_cv_prog_cc_c11" = xno 3883then : 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3885printf "%s\n" "unsupported" >&6; } 3886else $as_nop 3887 if test "x$ac_cv_prog_cc_c11" = x 3888then : 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3890printf "%s\n" "none needed" >&6; } 3891else $as_nop 3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3893printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3894 CC="$CC $ac_cv_prog_cc_c11" 3895fi 3896 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3897 ac_prog_cc_stdc=c11 3898fi 3899fi 3900if test x$ac_prog_cc_stdc = xno 3901then : 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3903printf %s "checking for $CC option to enable C99 features... " >&6; } 3904if test ${ac_cv_prog_cc_c99+y} 3905then : 3906 printf %s "(cached) " >&6 3907else $as_nop 3908 ac_cv_prog_cc_c99=no 3909ac_save_CC=$CC 3910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911/* end confdefs.h. */ 3912$ac_c_conftest_c99_program 3913_ACEOF 3914for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3915do 3916 CC="$ac_save_CC $ac_arg" 3917 if ac_fn_c_try_compile "$LINENO" 3918then : 3919 ac_cv_prog_cc_c99=$ac_arg 3920fi 3921rm -f core conftest.err conftest.$ac_objext conftest.beam 3922 test "x$ac_cv_prog_cc_c99" != "xno" && break 3923done 3924rm -f conftest.$ac_ext 3925CC=$ac_save_CC 3926fi 3927 3928if test "x$ac_cv_prog_cc_c99" = xno 3929then : 3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3931printf "%s\n" "unsupported" >&6; } 3932else $as_nop 3933 if test "x$ac_cv_prog_cc_c99" = x 3934then : 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3936printf "%s\n" "none needed" >&6; } 3937else $as_nop 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3939printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3940 CC="$CC $ac_cv_prog_cc_c99" 3941fi 3942 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3943 ac_prog_cc_stdc=c99 3944fi 3945fi 3946if test x$ac_prog_cc_stdc = xno 3947then : 3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3949printf %s "checking for $CC option to enable C89 features... " >&6; } 3950if test ${ac_cv_prog_cc_c89+y} 3951then : 3952 printf %s "(cached) " >&6 3953else $as_nop 3954 ac_cv_prog_cc_c89=no 3955ac_save_CC=$CC 3956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958$ac_c_conftest_c89_program 3959_ACEOF 3960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3961do 3962 CC="$ac_save_CC $ac_arg" 3963 if ac_fn_c_try_compile "$LINENO" 3964then : 3965 ac_cv_prog_cc_c89=$ac_arg 3966fi 3967rm -f core conftest.err conftest.$ac_objext conftest.beam 3968 test "x$ac_cv_prog_cc_c89" != "xno" && break 3969done 3970rm -f conftest.$ac_ext 3971CC=$ac_save_CC 3972fi 3973 3974if test "x$ac_cv_prog_cc_c89" = xno 3975then : 3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3977printf "%s\n" "unsupported" >&6; } 3978else $as_nop 3979 if test "x$ac_cv_prog_cc_c89" = x 3980then : 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3982printf "%s\n" "none needed" >&6; } 3983else $as_nop 3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3985printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3986 CC="$CC $ac_cv_prog_cc_c89" 3987fi 3988 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3989 ac_prog_cc_stdc=c89 3990fi 3991fi 3992 3993ac_ext=c 3994ac_cpp='$CPP $CPPFLAGS' 3995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3997ac_compiler_gnu=$ac_cv_c_compiler_gnu 3998 3999 4000if test "$ac_cv_prog_cc_c99" = "no"; then 4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The C compiler does not support C99; there may be compiler errors" >&5 4002printf "%s\n" "$as_me: WARNING: The C compiler does not support C99; there may be compiler errors" >&2;} 4003fi 4004 4005 4006 if test "$GCC" = yes ; then 4007 # 4008 # -Werror forces warnings to be errors. 4009 # 4010 ac_lbl_cc_force_warning_errors=-Werror 4011 else 4012 V_INCLS="$V_INCLS -I/usr/local/include" 4013 LDFLAGS="$LDFLAGS -L/usr/local/lib" 4014 4015 case "$host_os" in 4016 4017 darwin*) 4018 # 4019 # This is assumed either to be GCC or clang, both 4020 # of which use -Werror to force warnings to be errors. 4021 # 4022 ac_lbl_cc_force_warning_errors=-Werror 4023 ;; 4024 4025 hpux*) 4026 # 4027 # HP C, which is what we presume we're using, doesn't 4028 # exit with a non-zero exit status if we hand it an 4029 # invalid -W flag, can't be forced to do so even with 4030 # +We, and doesn't handle GCC-style -W flags, so we 4031 # don't want to try using GCC-style -W flags. 4032 # 4033 ac_lbl_cc_dont_try_gcc_dashW=yes 4034 ;; 4035 4036 irix*) 4037 # 4038 # MIPS C, which is what we presume we're using, doesn't 4039 # necessarily exit with a non-zero exit status if we 4040 # hand it an invalid -W flag, can't be forced to do 4041 # so, and doesn't handle GCC-style -W flags, so we 4042 # don't want to try using GCC-style -W flags. 4043 # 4044 ac_lbl_cc_dont_try_gcc_dashW=yes 4045 # 4046 # It also, apparently, defaults to "char" being 4047 # unsigned, unlike most other C implementations; 4048 # I suppose we could say "signed char" whenever 4049 # we want to guarantee a signed "char", but let's 4050 # just force signed chars. 4051 # 4052 # -xansi is normally the default, but the 4053 # configure script was setting it; perhaps -cckr 4054 # was the default in the Old Days. (Then again, 4055 # that would probably be for backwards compatibility 4056 # in the days when ANSI C was Shiny and New, i.e. 4057 # 1989 and the early '90's, so maybe we can just 4058 # drop support for those compilers.) 4059 # 4060 # -g is equivalent to -g2, which turns off 4061 # optimization; we choose -g3, which generates 4062 # debugging information but doesn't turn off 4063 # optimization (even if the optimization would 4064 # cause inaccuracies in debugging). 4065 # 4066 V_CCOPT="$V_CCOPT -xansi -signed -g3" 4067 ;; 4068 4069 osf*) 4070 # 4071 # Presumed to be DEC OSF/1, Digital UNIX, or 4072 # Tru64 UNIX. 4073 # 4074 # The DEC C compiler, which is what we presume we're 4075 # using, doesn't exit with a non-zero exit status if we 4076 # hand it an invalid -W flag, can't be forced to do 4077 # so, and doesn't handle GCC-style -W flags, so we 4078 # don't want to try using GCC-style -W flags. 4079 # 4080 ac_lbl_cc_dont_try_gcc_dashW=yes 4081 # 4082 # -g is equivalent to -g2, which turns off 4083 # optimization; we choose -g3, which generates 4084 # debugging information but doesn't turn off 4085 # optimization (even if the optimization would 4086 # cause inaccuracies in debugging). 4087 # 4088 V_CCOPT="$V_CCOPT -g3" 4089 ;; 4090 4091 solaris*) 4092 # 4093 # Assumed to be Sun C, which requires -errwarn to force 4094 # warnings to be treated as errors. 4095 # 4096 ac_lbl_cc_force_warning_errors=-errwarn 4097 ;; 4098 4099 ultrix*) 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that Ultrix $CC hacks const in prototypes" >&5 4101printf %s "checking that Ultrix $CC hacks const in prototypes... " >&6; } 4102 if test ${ac_cv_lbl_cc_const_proto+y} 4103then : 4104 printf %s "(cached) " >&6 4105else $as_nop 4106 4107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108/* end confdefs.h. */ 4109#include <sys/types.h> 4110int 4111main (void) 4112{ 4113struct a { int b; }; 4114 void c(const struct a *) 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119if ac_fn_c_try_compile "$LINENO" 4120then : 4121 ac_cv_lbl_cc_const_proto=yes 4122else $as_nop 4123 ac_cv_lbl_cc_const_proto=no 4124fi 4125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4126fi 4127 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_cc_const_proto" >&5 4129printf "%s\n" "$ac_cv_lbl_cc_const_proto" >&6; } 4130 if test $ac_cv_lbl_cc_const_proto = no ; then 4131 4132printf "%s\n" "#define const /**/" >>confdefs.h 4133 4134 fi 4135 ;; 4136 esac 4137 V_CCOPT="$V_CCOPT -O" 4138 fi 4139 4140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4141printf %s "checking for inline... " >&6; } 4142 save_CFLAGS="$CFLAGS" 4143 CFLAGS="$V_CCOPT" 4144 if test ${ac_cv_lbl_inline+y} 4145then : 4146 printf %s "(cached) " >&6 4147else $as_nop 4148 4149 ac_cv_lbl_inline="" 4150 ac_lbl_cc_inline=no 4151 for ac_lbl_inline in inline __inline__ __inline 4152 do 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155#define inline $ac_lbl_inline 4156 static inline struct iltest *foo(void); 4157 struct iltest { 4158 int iltest1; 4159 int iltest2; 4160 }; 4161 4162 static inline struct iltest * 4163 foo() 4164 { 4165 static struct iltest xxx; 4166 4167 return &xxx; 4168 } 4169int 4170main (void) 4171{ 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177if ac_fn_c_try_compile "$LINENO" 4178then : 4179 ac_lbl_cc_inline=yes 4180fi 4181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4182 if test "$ac_lbl_cc_inline" = yes ; then 4183 break; 4184 fi 4185 done 4186 if test "$ac_lbl_cc_inline" = yes ; then 4187 ac_cv_lbl_inline=$ac_lbl_inline 4188 fi 4189fi 4190 4191 CFLAGS="$save_CFLAGS" 4192 if test ! -z "$ac_cv_lbl_inline" ; then 4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_inline" >&5 4194printf "%s\n" "$ac_cv_lbl_inline" >&6; } 4195 else 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197printf "%s\n" "no" >&6; } 4198 fi 4199 4200printf "%s\n" "#define inline $ac_cv_lbl_inline" >>confdefs.h 4201 4202 4203ac_header= ac_cache= 4204for ac_item in $ac_header_c_list 4205do 4206 if test $ac_cache; then 4207 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4208 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4209 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4210 fi 4211 ac_header= ac_cache= 4212 elif test $ac_header; then 4213 ac_cache=$ac_item 4214 else 4215 ac_header=$ac_item 4216 fi 4217done 4218 4219 4220 4221 4222 4223 4224 4225 4226if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4227then : 4228 4229printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4230 4231fi 4232ac_fn_c_check_header_compile "$LINENO" "rpc/rpc.h" "ac_cv_header_rpc_rpc_h" "$ac_includes_default" 4233if test "x$ac_cv_header_rpc_rpc_h" = xyes 4234then : 4235 printf "%s\n" "#define HAVE_RPC_RPC_H 1" >>confdefs.h 4236 4237fi 4238ac_fn_c_check_header_compile "$LINENO" "rpc/rpcent.h" "ac_cv_header_rpc_rpcent_h" "$ac_includes_default" 4239if test "x$ac_cv_header_rpc_rpcent_h" = xyes 4240then : 4241 printf "%s\n" "#define HAVE_RPC_RPCENT_H 1" >>confdefs.h 4242 4243fi 4244ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default" 4245if test "x$ac_cv_header_net_if_h" = xyes 4246then : 4247 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 4248 4249fi 4250 4251 4252# On Linux, if Autoconf version >= 2.72 and GNU C Library version >= 2.34, 4253# uncomment AC_SYS_YEAR2038_RECOMMENDED to ensure time_t is Y2038-safe. 4254# (Can be done by autogen.sh) 4255# AC_SYS_YEAR2038_RECOMMENDED 4256# 4257# Get the size of a void *, to know whether this is a 32-bit or 64-bit build. 4258# 4259# The cast to long int works around a bug in the HP C Compiler 4260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4262# This bug is HP SR number 8606223364. 4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4264printf %s "checking size of void *... " >&6; } 4265if test ${ac_cv_sizeof_void_p+y} 4266then : 4267 printf %s "(cached) " >&6 4268else $as_nop 4269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 4270then : 4271 4272else $as_nop 4273 if test "$ac_cv_type_void_p" = yes; then 4274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4275printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4276as_fn_error 77 "cannot compute sizeof (void *) 4277See \`config.log' for more details" "$LINENO" 5; } 4278 else 4279 ac_cv_sizeof_void_p=0 4280 fi 4281fi 4282 4283fi 4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4285printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 4286 4287 4288 4289printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 4290 4291 4292 4293# 4294# Get the size of a time_t, to know whether it's 32-bit or 64-bit. 4295# 4296# The cast to long int works around a bug in the HP C Compiler 4297# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4298# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4299# This bug is HP SR number 8606223364. 4300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 4301printf %s "checking size of time_t... " >&6; } 4302if test ${ac_cv_sizeof_time_t+y} 4303then : 4304 printf %s "(cached) " >&6 4305else $as_nop 4306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h> 4307" 4308then : 4309 4310else $as_nop 4311 if test "$ac_cv_type_time_t" = yes; then 4312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4313printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4314as_fn_error 77 "cannot compute sizeof (time_t) 4315See \`config.log' for more details" "$LINENO" 5; } 4316 else 4317 ac_cv_sizeof_time_t=0 4318 fi 4319fi 4320 4321fi 4322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 4323printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 4324 4325 4326 4327printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 4328 4329 4330 4331case "$host_os" in 4332 4333darwin*) 4334 # Check whether --enable-universal was given. 4335if test ${enable_universal+y} 4336then : 4337 enableval=$enable_universal; 4338fi 4339 4340 if test "$enable_universal" != "no"; then 4341 case "$host_os" in 4342 4343 darwin9.*) 4344 # 4345 # Leopard. Build for x86 and 32-bit PowerPC, with 4346 # x86 first. (That's what Apple does.) 4347 # 4348 V_CCOPT="$V_CCOPT -arch i386 -arch ppc" 4349 LDFLAGS="$LDFLAGS -arch i386 -arch ppc" 4350 ;; 4351 4352 darwin10.*) 4353 # 4354 # Snow Leopard. Build for x86-64 and x86, with 4355 # x86-64 first. (That's what Apple does.) 4356 # 4357 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386" 4358 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386" 4359 ;; 4360 esac 4361 fi 4362 ;; 4363esac 4364 4365# 4366# Do we have pkg-config? 4367# 4368 4369 4370 4371 4372 4373 4374 4375if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4376 if test -n "$ac_tool_prefix"; then 4377 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4378set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4380printf %s "checking for $ac_word... " >&6; } 4381if test ${ac_cv_path_PKG_CONFIG+y} 4382then : 4383 printf %s "(cached) " >&6 4384else $as_nop 4385 case $PKG_CONFIG in 4386 [\\/]* | ?:[\\/]*) 4387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4388 ;; 4389 *) 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391for as_dir in $PATH 4392do 4393 IFS=$as_save_IFS 4394 case $as_dir in #((( 4395 '') as_dir=./ ;; 4396 */) ;; 4397 *) as_dir=$as_dir/ ;; 4398 esac 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4400 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4401 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4403 break 2 4404 fi 4405done 4406 done 4407IFS=$as_save_IFS 4408 4409 ;; 4410esac 4411fi 4412PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4413if test -n "$PKG_CONFIG"; then 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4415printf "%s\n" "$PKG_CONFIG" >&6; } 4416else 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4418printf "%s\n" "no" >&6; } 4419fi 4420 4421 4422fi 4423if test -z "$ac_cv_path_PKG_CONFIG"; then 4424 ac_pt_PKG_CONFIG=$PKG_CONFIG 4425 # Extract the first word of "pkg-config", so it can be a program name with args. 4426set dummy pkg-config; ac_word=$2 4427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4428printf %s "checking for $ac_word... " >&6; } 4429if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4430then : 4431 printf %s "(cached) " >&6 4432else $as_nop 4433 case $ac_pt_PKG_CONFIG in 4434 [\\/]* | ?:[\\/]*) 4435 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4436 ;; 4437 *) 4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439for as_dir in $PATH 4440do 4441 IFS=$as_save_IFS 4442 case $as_dir in #((( 4443 '') as_dir=./ ;; 4444 */) ;; 4445 *) as_dir=$as_dir/ ;; 4446 esac 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4451 break 2 4452 fi 4453done 4454 done 4455IFS=$as_save_IFS 4456 4457 ;; 4458esac 4459fi 4460ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4461if test -n "$ac_pt_PKG_CONFIG"; then 4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4463printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4464else 4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4466printf "%s\n" "no" >&6; } 4467fi 4468 4469 if test "x$ac_pt_PKG_CONFIG" = x; then 4470 PKG_CONFIG="" 4471 else 4472 case $cross_compiling:$ac_tool_warned in 4473yes:) 4474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4475printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4476ac_tool_warned=yes ;; 4477esac 4478 PKG_CONFIG=$ac_pt_PKG_CONFIG 4479 fi 4480else 4481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4482fi 4483 4484fi 4485if test -n "$PKG_CONFIG"; then 4486 _pkg_min_version=0.17.0 4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4488printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4491printf "%s\n" "yes" >&6; } 4492 else 4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4494printf "%s\n" "no" >&6; } 4495 PKG_CONFIG="" 4496 fi 4497fi 4498 4499# 4500# Do we have the brew command from Homebrew? 4501# 4502# Extract the first word of "brew", so it can be a program name with args. 4503set dummy brew; ac_word=$2 4504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4505printf %s "checking for $ac_word... " >&6; } 4506if test ${ac_cv_path_BREW+y} 4507then : 4508 printf %s "(cached) " >&6 4509else $as_nop 4510 case $BREW in 4511 [\\/]* | ?:[\\/]*) 4512 ac_cv_path_BREW="$BREW" # Let the user override the test with a path. 4513 ;; 4514 *) 4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4516for as_dir in $PATH 4517do 4518 IFS=$as_save_IFS 4519 case $as_dir in #((( 4520 '') as_dir=./ ;; 4521 */) ;; 4522 *) as_dir=$as_dir/ ;; 4523 esac 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4526 ac_cv_path_BREW="$as_dir$ac_word$ac_exec_ext" 4527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4528 break 2 4529 fi 4530done 4531 done 4532IFS=$as_save_IFS 4533 4534 ;; 4535esac 4536fi 4537BREW=$ac_cv_path_BREW 4538if test -n "$BREW"; then 4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BREW" >&5 4540printf "%s\n" "$BREW" >&6; } 4541else 4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543printf "%s\n" "no" >&6; } 4544fi 4545 4546 4547 4548 4549# Check whether --with-smi was given. 4550if test ${with_smi+y} 4551then : 4552 withval=$with_smi; 4553else $as_nop 4554 with_smi=yes 4555fi 4556 4557 4558if test "x$with_smi" != "xno" ; then 4559 ac_fn_c_check_header_compile "$LINENO" "smi.h" "ac_cv_header_smi_h" "$ac_includes_default" 4560if test "x$ac_cv_header_smi_h" = xyes 4561then : 4562 4563 # 4564 # OK, we found smi.h. Do we have libsmi with smiInit? 4565 # 4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smiInit in -lsmi" >&5 4567printf %s "checking for smiInit in -lsmi... " >&6; } 4568if test ${ac_cv_lib_smi_smiInit+y} 4569then : 4570 printf %s "(cached) " >&6 4571else $as_nop 4572 ac_check_lib_save_LIBS=$LIBS 4573LIBS="-lsmi $LIBS" 4574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576 4577/* Override any GCC internal prototype to avoid an error. 4578 Use char because int might match the return type of a GCC 4579 builtin and then its argument prototype would still apply. */ 4580char smiInit (); 4581int 4582main (void) 4583{ 4584return smiInit (); 4585 ; 4586 return 0; 4587} 4588_ACEOF 4589if ac_fn_c_try_link "$LINENO" 4590then : 4591 ac_cv_lib_smi_smiInit=yes 4592else $as_nop 4593 ac_cv_lib_smi_smiInit=no 4594fi 4595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4596 conftest$ac_exeext conftest.$ac_ext 4597LIBS=$ac_check_lib_save_LIBS 4598fi 4599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smi_smiInit" >&5 4600printf "%s\n" "$ac_cv_lib_smi_smiInit" >&6; } 4601if test "x$ac_cv_lib_smi_smiInit" = xyes 4602then : 4603 4604 # 4605 # OK, we have libsmi with smiInit. Can we use it? 4606 # 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libsmi" >&5 4608printf %s "checking whether to enable libsmi... " >&6; } 4609 savedlibs="$LIBS" 4610 LIBS="-lsmi $LIBS" 4611 if test "$cross_compiling" = yes 4612then : 4613 4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not when cross-compiling" >&5 4615printf "%s\n" "not when cross-compiling" >&6; } 4616 LIBS="$savedlibs" 4617 4618 4619else $as_nop 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621/* end confdefs.h. */ 4622 4623/* libsmi available check */ 4624#include <stdio.h> 4625#include <stdlib.h> 4626#include <string.h> 4627#include <smi.h> 4628int main() 4629{ 4630 int current, revision, age, n; 4631 const int required = 2; 4632 if (smiInit("")) 4633 exit(1); 4634 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) 4635 exit(2); 4636 n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); 4637 if (n != 3) 4638 exit(3); 4639 if (required < current - age || required > current) 4640 exit(4); 4641 exit(0); 4642} 4643 4644 4645_ACEOF 4646if ac_fn_c_try_run "$LINENO" 4647then : 4648 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4650printf "%s\n" "yes" >&6; } 4651 4652printf "%s\n" "#define USE_LIBSMI 1" >>confdefs.h 4653 4654 4655else $as_nop 4656 4657 case $? in 4658 1) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - smiInit failed" >&5 4659printf "%s\n" "no - smiInit failed" >&6; } ;; 4660 2) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - header/library version mismatch" >&5 4661printf "%s\n" "no - header/library version mismatch" >&6; } ;; 4662 3) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - can't determine library version" >&5 4663printf "%s\n" "no - can't determine library version" >&6; } ;; 4664 4) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - too old" >&5 4665printf "%s\n" "no - too old" >&6; } ;; 4666 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667printf "%s\n" "no" >&6; } ;; 4668 esac 4669 LIBS="$savedlibs" 4670 4671fi 4672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4673 conftest.$ac_objext conftest.beam conftest.$ac_ext 4674fi 4675 4676 4677fi 4678 4679 4680fi 4681 4682fi 4683 4684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the instrument functions code" >&5 4685printf %s "checking whether to enable the instrument functions code... " >&6; } 4686# Check whether --enable-instrument-functions was given. 4687if test ${enable_instrument_functions+y} 4688then : 4689 enableval=$enable_instrument_functions; 4690else $as_nop 4691 enableval=no 4692fi 4693 4694case "$enableval" in 4695yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4696printf "%s\n" "yes" >&6; } 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init in -lbfd" >&5 4698printf %s "checking for bfd_init in -lbfd... " >&6; } 4699if test ${ac_cv_lib_bfd_bfd_init+y} 4700then : 4701 printf %s "(cached) " >&6 4702else $as_nop 4703 ac_check_lib_save_LIBS=$LIBS 4704LIBS="-lbfd $LIBS" 4705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706/* end confdefs.h. */ 4707 4708/* Override any GCC internal prototype to avoid an error. 4709 Use char because int might match the return type of a GCC 4710 builtin and then its argument prototype would still apply. */ 4711char bfd_init (); 4712int 4713main (void) 4714{ 4715return bfd_init (); 4716 ; 4717 return 0; 4718} 4719_ACEOF 4720if ac_fn_c_try_link "$LINENO" 4721then : 4722 ac_cv_lib_bfd_bfd_init=yes 4723else $as_nop 4724 ac_cv_lib_bfd_bfd_init=no 4725fi 4726rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4727 conftest$ac_exeext conftest.$ac_ext 4728LIBS=$ac_check_lib_save_LIBS 4729fi 4730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_init" >&5 4731printf "%s\n" "$ac_cv_lib_bfd_bfd_init" >&6; } 4732if test "x$ac_cv_lib_bfd_bfd_init" = xyes 4733then : 4734 true 4735else $as_nop 4736 as_fn_error $? "--enable-instrument-functions was given, but test for library libbfd failed. Please install the 'binutils-dev' package." "$LINENO" 5 4737fi 4738 4739 4740printf "%s\n" "#define ENABLE_INSTRUMENT_FUNCTIONS 1" >>confdefs.h 4741 4742 LOCALSRC="$LOCALSRC instrument-functions.c" 4743 # Add '-finstrument-functions' instrumentation option to generate 4744 # instrumentation calls for entry and exit to functions. 4745 # Try to avoid Address Space Layout Randomization (ALSR). 4746 CFLAGS="$CFLAGS -O0 -ggdb -finstrument-functions -fno-stack-protector -fno-pic" 4747 LDFLAGS="$LDFLAGS -O0 -ggdb -fno-stack-protector -no-pie" 4748 LIBS="$LIBS -lbfd" 4749 ;; 4750*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4751printf "%s\n" "no" >&6; } 4752 ;; 4753esac 4754 4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the possibly-buggy SMB printer" >&5 4756printf %s "checking whether to enable the possibly-buggy SMB printer... " >&6; } 4757# Check whether --enable-smb was given. 4758if test ${enable_smb+y} 4759then : 4760 enableval=$enable_smb; 4761else $as_nop 4762 enableval=no 4763fi 4764 4765case "$enableval" in 4766yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4767printf "%s\n" "yes" >&6; } 4768 4769printf "%s\n" "#define ENABLE_SMB 1" >>confdefs.h 4770 4771 LOCALSRC="print-smb.c smbutil.c $LOCALSRC" 4772 ;; 4773*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774printf "%s\n" "no" >&6; } 4775 ;; 4776esac 4777 4778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to drop root privileges by default" >&5 4779printf %s "checking whether to drop root privileges by default... " >&6; } 4780 4781# Check whether --with-user was given. 4782if test ${with_user+y} 4783then : 4784 withval=$with_user; 4785else $as_nop 4786 withval=no 4787fi 4788 4789case "$withval" in #( 4790 no) : 4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4792printf "%s\n" "no" >&6; } ;; #( 4793 ''|yes) : 4794 as_fn_error $? "--with-user requires a username" "$LINENO" 5 ;; #( 4795 *) : 4796 4797 4798printf "%s\n" "#define WITH_USER \"$withval\"" >>confdefs.h 4799 4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to user \"$withval\"" >&5 4801printf "%s\n" "yes, to user \"$withval\"" >&6; } 4802 4803 ;; 4804esac 4805 4806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to chroot" >&5 4807printf %s "checking whether to chroot... " >&6; } 4808 4809# Check whether --with-chroot was given. 4810if test ${with_chroot+y} 4811then : 4812 withval=$with_chroot; 4813else $as_nop 4814 withval=no 4815 4816fi 4817 4818case "$withval" in #( 4819 no) : 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4821printf "%s\n" "no" >&6; } ;; #( 4822 ''|yes) : 4823 as_fn_error $? "--with-chroot requires a directory" "$LINENO" 5 ;; #( 4824 *) : 4825 4826 4827printf "%s\n" "#define WITH_CHROOT \"$withval\"" >>confdefs.h 4828 4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, to directory \"$withval\"" >&5 4830printf "%s\n" "yes, to directory \"$withval\"" >&6; } 4831 4832 ;; 4833esac 4834 4835 4836# Check whether --with-sandbox-capsicum was given. 4837if test ${with_sandbox_capsicum+y} 4838then : 4839 withval=$with_sandbox_capsicum; 4840fi 4841 4842# 4843# Check whether various functions are available. If any are, set 4844# ac_lbl_capsicum_function_seen to yes; if any are not, set 4845# ac_lbl_capsicum_function_not_seen to yes. 4846# 4847# We don't check cap_rights_init(), as it's a macro, wrapping another 4848# function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS() 4849# doesn't handle that. 4850# 4851# All of the ones we check for must be available in order to enable 4852# capsicum sandboxing. 4853# 4854# XXX - do we need to check for all of them, or are there some that, if 4855# present, imply others are present? 4856# 4857if test -z "$with_sandbox_capsicum" || test "$with_sandbox_capsicum" != "no" ; then 4858 # 4859 # First, make sure we have the required header. 4860 # 4861 ac_fn_c_check_header_compile "$LINENO" "sys/capsicum.h" "ac_cv_header_sys_capsicum_h" "$ac_includes_default" 4862if test "x$ac_cv_header_sys_capsicum_h" = xyes 4863then : 4864 4865 # 4866 # We do; now make sure we have the required functions. 4867 # 4868 4869 for ac_func in cap_enter cap_rights_limit cap_ioctls_limit openat 4870do : 4871 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 4872ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4873if eval test \"x\$"$as_ac_var"\" = x"yes" 4874then : 4875 cat >>confdefs.h <<_ACEOF 4876#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 4877_ACEOF 4878 ac_lbl_capsicum_function_seen=yes 4879else $as_nop 4880 ac_lbl_capsicum_function_not_seen=yes 4881fi 4882 4883done 4884 4885fi 4886 4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcasper" >&5 4888printf %s "checking for cap_init in -lcasper... " >&6; } 4889if test ${ac_cv_lib_casper_cap_init+y} 4890then : 4891 printf %s "(cached) " >&6 4892else $as_nop 4893 ac_check_lib_save_LIBS=$LIBS 4894LIBS="-lcasper $LIBS" 4895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4896/* end confdefs.h. */ 4897 4898/* Override any GCC internal prototype to avoid an error. 4899 Use char because int might match the return type of a GCC 4900 builtin and then its argument prototype would still apply. */ 4901char cap_init (); 4902int 4903main (void) 4904{ 4905return cap_init (); 4906 ; 4907 return 0; 4908} 4909_ACEOF 4910if ac_fn_c_try_link "$LINENO" 4911then : 4912 ac_cv_lib_casper_cap_init=yes 4913else $as_nop 4914 ac_cv_lib_casper_cap_init=no 4915fi 4916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4917 conftest$ac_exeext conftest.$ac_ext 4918LIBS=$ac_check_lib_save_LIBS 4919fi 4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_casper_cap_init" >&5 4921printf "%s\n" "$ac_cv_lib_casper_cap_init" >&6; } 4922if test "x$ac_cv_lib_casper_cap_init" = xyes 4923then : 4924 LIBS="$LIBS -lcasper" 4925fi 4926 4927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_gethostbyaddr in -lcap_dns" >&5 4928printf %s "checking for cap_gethostbyaddr in -lcap_dns... " >&6; } 4929if test ${ac_cv_lib_cap_dns_cap_gethostbyaddr+y} 4930then : 4931 printf %s "(cached) " >&6 4932else $as_nop 4933 ac_check_lib_save_LIBS=$LIBS 4934LIBS="-lcap_dns $LIBS" 4935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936/* end confdefs.h. */ 4937 4938/* Override any GCC internal prototype to avoid an error. 4939 Use char because int might match the return type of a GCC 4940 builtin and then its argument prototype would still apply. */ 4941char cap_gethostbyaddr (); 4942int 4943main (void) 4944{ 4945return cap_gethostbyaddr (); 4946 ; 4947 return 0; 4948} 4949_ACEOF 4950if ac_fn_c_try_link "$LINENO" 4951then : 4952 ac_cv_lib_cap_dns_cap_gethostbyaddr=yes 4953else $as_nop 4954 ac_cv_lib_cap_dns_cap_gethostbyaddr=no 4955fi 4956rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4957 conftest$ac_exeext conftest.$ac_ext 4958LIBS=$ac_check_lib_save_LIBS 4959fi 4960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_dns_cap_gethostbyaddr" >&5 4961printf "%s\n" "$ac_cv_lib_cap_dns_cap_gethostbyaddr" >&6; } 4962if test "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = xyes 4963then : 4964 LIBS="$LIBS -lcap_dns" 4965fi 4966 4967fi 4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using capsicum" >&5 4969printf %s "checking whether to sandbox using capsicum... " >&6; } 4970if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then 4971 4972printf "%s\n" "#define HAVE_CAPSICUM 1" >>confdefs.h 4973 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4975printf "%s\n" "yes" >&6; } 4976else 4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978printf "%s\n" "no" >&6; } 4979fi 4980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to sandbox using Casper library" >&5 4981printf %s "checking whether to sandbox using Casper library... " >&6; } 4982if test "x$ac_cv_lib_casper_cap_init" = "xyes" -a "x$ac_cv_lib_cap_dns_cap_gethostbyaddr" = "xyes"; then 4983 4984printf "%s\n" "#define HAVE_CASPER 1" >>confdefs.h 4985 4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4987printf "%s\n" "yes" >&6; } 4988else 4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4990printf "%s\n" "no" >&6; } 4991fi 4992 4993# 4994# We must check this before checking whether to check the OS's IPv6, 4995# support because, on some platforms (such as SunOS 5.x), the test 4996# program requires the extra networking libraries. 4997# 4998 4999 # Most operating systems have gethostbyaddr() in the default searched 5000 # libraries (i.e. libc): 5001 # Some OSes (eg. Solaris) place it in libnsl 5002 # Some strange OSes (SINIX) have it in libsocket: 5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 5004printf %s "checking for library containing gethostbyaddr... " >&6; } 5005if test ${ac_cv_search_gethostbyaddr+y} 5006then : 5007 printf %s "(cached) " >&6 5008else $as_nop 5009 ac_func_search_save_LIBS=$LIBS 5010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011/* end confdefs.h. */ 5012 5013/* Override any GCC internal prototype to avoid an error. 5014 Use char because int might match the return type of a GCC 5015 builtin and then its argument prototype would still apply. */ 5016char gethostbyaddr (); 5017int 5018main (void) 5019{ 5020return gethostbyaddr (); 5021 ; 5022 return 0; 5023} 5024_ACEOF 5025for ac_lib in '' network nsl socket resolv 5026do 5027 if test -z "$ac_lib"; then 5028 ac_res="none required" 5029 else 5030 ac_res=-l$ac_lib 5031 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5032 fi 5033 if ac_fn_c_try_link "$LINENO" 5034then : 5035 ac_cv_search_gethostbyaddr=$ac_res 5036fi 5037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5038 conftest$ac_exeext 5039 if test ${ac_cv_search_gethostbyaddr+y} 5040then : 5041 break 5042fi 5043done 5044if test ${ac_cv_search_gethostbyaddr+y} 5045then : 5046 5047else $as_nop 5048 ac_cv_search_gethostbyaddr=no 5049fi 5050rm conftest.$ac_ext 5051LIBS=$ac_func_search_save_LIBS 5052fi 5053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 5054printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; } 5055ac_res=$ac_cv_search_gethostbyaddr 5056if test "$ac_res" != no 5057then : 5058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5059 5060fi 5061 5062 # Unfortunately libsocket sometimes depends on libnsl and 5063 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this. 5064 if test "$ac_cv_search_gethostbyaddr" = "no" 5065 then 5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lsocket" >&5 5067printf %s "checking for gethostbyaddr in -lsocket... " >&6; } 5068if test ${ac_cv_lib_socket_gethostbyaddr+y} 5069then : 5070 printf %s "(cached) " >&6 5071else $as_nop 5072 ac_check_lib_save_LIBS=$LIBS 5073LIBS="-lsocket -lnsl $LIBS" 5074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075/* end confdefs.h. */ 5076 5077/* Override any GCC internal prototype to avoid an error. 5078 Use char because int might match the return type of a GCC 5079 builtin and then its argument prototype would still apply. */ 5080char gethostbyaddr (); 5081int 5082main (void) 5083{ 5084return gethostbyaddr (); 5085 ; 5086 return 0; 5087} 5088_ACEOF 5089if ac_fn_c_try_link "$LINENO" 5090then : 5091 ac_cv_lib_socket_gethostbyaddr=yes 5092else $as_nop 5093 ac_cv_lib_socket_gethostbyaddr=no 5094fi 5095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5096 conftest$ac_exeext conftest.$ac_ext 5097LIBS=$ac_check_lib_save_LIBS 5098fi 5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyaddr" >&5 5100printf "%s\n" "$ac_cv_lib_socket_gethostbyaddr" >&6; } 5101if test "x$ac_cv_lib_socket_gethostbyaddr" = xyes 5102then : 5103 LIBS="-lsocket -lnsl $LIBS" 5104fi 5105 5106 fi 5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 5108printf %s "checking for library containing socket... " >&6; } 5109if test ${ac_cv_search_socket+y} 5110then : 5111 printf %s "(cached) " >&6 5112else $as_nop 5113 ac_func_search_save_LIBS=$LIBS 5114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116 5117/* Override any GCC internal prototype to avoid an error. 5118 Use char because int might match the return type of a GCC 5119 builtin and then its argument prototype would still apply. */ 5120char socket (); 5121int 5122main (void) 5123{ 5124return socket (); 5125 ; 5126 return 0; 5127} 5128_ACEOF 5129for ac_lib in '' socket 5130do 5131 if test -z "$ac_lib"; then 5132 ac_res="none required" 5133 else 5134 ac_res=-l$ac_lib 5135 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5136 fi 5137 if ac_fn_c_try_link "$LINENO" 5138then : 5139 ac_cv_search_socket=$ac_res 5140fi 5141rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5142 conftest$ac_exeext 5143 if test ${ac_cv_search_socket+y} 5144then : 5145 break 5146fi 5147done 5148if test ${ac_cv_search_socket+y} 5149then : 5150 5151else $as_nop 5152 ac_cv_search_socket=no 5153fi 5154rm conftest.$ac_ext 5155LIBS=$ac_func_search_save_LIBS 5156fi 5157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 5158printf "%s\n" "$ac_cv_search_socket" >&6; } 5159ac_res=$ac_cv_search_socket 5160if test "$ac_res" != no 5161then : 5162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5163 5164else $as_nop 5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 5166printf %s "checking for socket in -lsocket... " >&6; } 5167if test ${ac_cv_lib_socket_socket+y} 5168then : 5169 printf %s "(cached) " >&6 5170else $as_nop 5171 ac_check_lib_save_LIBS=$LIBS 5172LIBS="-lsocket -lnsl $LIBS" 5173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175 5176/* Override any GCC internal prototype to avoid an error. 5177 Use char because int might match the return type of a GCC 5178 builtin and then its argument prototype would still apply. */ 5179char socket (); 5180int 5181main (void) 5182{ 5183return socket (); 5184 ; 5185 return 0; 5186} 5187_ACEOF 5188if ac_fn_c_try_link "$LINENO" 5189then : 5190 ac_cv_lib_socket_socket=yes 5191else $as_nop 5192 ac_cv_lib_socket_socket=no 5193fi 5194rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5195 conftest$ac_exeext conftest.$ac_ext 5196LIBS=$ac_check_lib_save_LIBS 5197fi 5198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 5199printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } 5200if test "x$ac_cv_lib_socket_socket" = xyes 5201then : 5202 LIBS="-lsocket -lnsl $LIBS" 5203fi 5204 5205fi 5206 5207 # DLPI needs putmsg under HPUX so test for -lstr while we're at it 5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing putmsg" >&5 5209printf %s "checking for library containing putmsg... " >&6; } 5210if test ${ac_cv_search_putmsg+y} 5211then : 5212 printf %s "(cached) " >&6 5213else $as_nop 5214 ac_func_search_save_LIBS=$LIBS 5215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5216/* end confdefs.h. */ 5217 5218/* Override any GCC internal prototype to avoid an error. 5219 Use char because int might match the return type of a GCC 5220 builtin and then its argument prototype would still apply. */ 5221char putmsg (); 5222int 5223main (void) 5224{ 5225return putmsg (); 5226 ; 5227 return 0; 5228} 5229_ACEOF 5230for ac_lib in '' str 5231do 5232 if test -z "$ac_lib"; then 5233 ac_res="none required" 5234 else 5235 ac_res=-l$ac_lib 5236 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5237 fi 5238 if ac_fn_c_try_link "$LINENO" 5239then : 5240 ac_cv_search_putmsg=$ac_res 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5243 conftest$ac_exeext 5244 if test ${ac_cv_search_putmsg+y} 5245then : 5246 break 5247fi 5248done 5249if test ${ac_cv_search_putmsg+y} 5250then : 5251 5252else $as_nop 5253 ac_cv_search_putmsg=no 5254fi 5255rm conftest.$ac_ext 5256LIBS=$ac_func_search_save_LIBS 5257fi 5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_putmsg" >&5 5259printf "%s\n" "$ac_cv_search_putmsg" >&6; } 5260ac_res=$ac_cv_search_putmsg 5261if test "$ac_res" != no 5262then : 5263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5264 5265fi 5266 5267 5268 5269# 5270# Check whether AF_INET6 and struct in6_addr are defined. 5271# If they aren't both defined, we don't have sufficient OS 5272# support for IPv6, so we don't look for IPv6 support libraries, 5273# and we define AF_INET6 and struct in6_addr ourselves. 5274# 5275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports IPv6" >&5 5276printf %s "checking whether the operating system supports IPv6... " >&6; } 5277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278/* end confdefs.h. */ 5279 5280 5281#include <string.h> 5282/* AF_INET6 available check */ 5283#include <sys/types.h> 5284#ifdef _WIN32 5285#include <ws2tcpip.h> 5286#else 5287#include <sys/socket.h> 5288#include <netinet/in.h> 5289#endif 5290#ifdef AF_INET6 5291void 5292foo(struct in6_addr *addr) 5293{ 5294 memset(addr, 0, sizeof (struct in6_addr)); 5295} 5296#else 5297#error "AF_INET6 not defined" 5298#endif 5299 5300 5301_ACEOF 5302if ac_fn_c_try_compile "$LINENO" 5303then : 5304 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5306printf "%s\n" "yes" >&6; } 5307 5308printf "%s\n" "#define HAVE_OS_IPV6_SUPPORT 1" >>confdefs.h 5309 5310 ipv6=yes 5311 5312else $as_nop 5313 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5315printf "%s\n" "no" >&6; } 5316 ipv6=no 5317 5318 5319fi 5320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5321 5322ipv6type=unknown 5323ipv6lib=none 5324ipv6trylibc=no 5325 5326if test "$ipv6" = "yes"; then 5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 5328printf %s "checking ipv6 stack type... " >&6; } 5329 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do 5330 case $i in 5331 inria) 5332 ac_ext=c 5333ac_cpp='$CPP $CPPFLAGS' 5334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5336ac_compiler_gnu=$ac_cv_c_compiler_gnu 5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5338printf %s "checking how to run the C preprocessor... " >&6; } 5339# On Suns, sometimes $CPP names a directory. 5340if test -n "$CPP" && test -d "$CPP"; then 5341 CPP= 5342fi 5343if test -z "$CPP"; then 5344 if test ${ac_cv_prog_CPP+y} 5345then : 5346 printf %s "(cached) " >&6 5347else $as_nop 5348 # Double quotes because $CC needs to be expanded 5349 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5350 do 5351 ac_preproc_ok=false 5352for ac_c_preproc_warn_flag in '' yes 5353do 5354 # Use a header file that comes with gcc, so configuring glibc 5355 # with a fresh cross-compiler works. 5356 # On the NeXT, cc -E runs the code through the compiler's parser, 5357 # not just through cpp. "Syntax error" is here to catch this case. 5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5359/* end confdefs.h. */ 5360#include <limits.h> 5361 Syntax error 5362_ACEOF 5363if ac_fn_c_try_cpp "$LINENO" 5364then : 5365 5366else $as_nop 5367 # Broken: fails on valid input. 5368continue 5369fi 5370rm -f conftest.err conftest.i conftest.$ac_ext 5371 5372 # OK, works on sane cases. Now check whether nonexistent headers 5373 # can be detected and how. 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376#include <ac_nonexistent.h> 5377_ACEOF 5378if ac_fn_c_try_cpp "$LINENO" 5379then : 5380 # Broken: success on invalid input. 5381continue 5382else $as_nop 5383 # Passes both tests. 5384ac_preproc_ok=: 5385break 5386fi 5387rm -f conftest.err conftest.i conftest.$ac_ext 5388 5389done 5390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5391rm -f conftest.i conftest.err conftest.$ac_ext 5392if $ac_preproc_ok 5393then : 5394 break 5395fi 5396 5397 done 5398 ac_cv_prog_CPP=$CPP 5399 5400fi 5401 CPP=$ac_cv_prog_CPP 5402else 5403 ac_cv_prog_CPP=$CPP 5404fi 5405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5406printf "%s\n" "$CPP" >&6; } 5407ac_preproc_ok=false 5408for ac_c_preproc_warn_flag in '' yes 5409do 5410 # Use a header file that comes with gcc, so configuring glibc 5411 # with a fresh cross-compiler works. 5412 # On the NeXT, cc -E runs the code through the compiler's parser, 5413 # not just through cpp. "Syntax error" is here to catch this case. 5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5415/* end confdefs.h. */ 5416#include <limits.h> 5417 Syntax error 5418_ACEOF 5419if ac_fn_c_try_cpp "$LINENO" 5420then : 5421 5422else $as_nop 5423 # Broken: fails on valid input. 5424continue 5425fi 5426rm -f conftest.err conftest.i conftest.$ac_ext 5427 5428 # OK, works on sane cases. Now check whether nonexistent headers 5429 # can be detected and how. 5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5431/* end confdefs.h. */ 5432#include <ac_nonexistent.h> 5433_ACEOF 5434if ac_fn_c_try_cpp "$LINENO" 5435then : 5436 # Broken: success on invalid input. 5437continue 5438else $as_nop 5439 # Passes both tests. 5440ac_preproc_ok=: 5441break 5442fi 5443rm -f conftest.err conftest.i conftest.$ac_ext 5444 5445done 5446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5447rm -f conftest.i conftest.err conftest.$ac_ext 5448if $ac_preproc_ok 5449then : 5450 5451else $as_nop 5452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5453printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5454as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5455See \`config.log' for more details" "$LINENO" 5; } 5456fi 5457 5458ac_ext=c 5459ac_cpp='$CPP $CPPFLAGS' 5460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5462ac_compiler_gnu=$ac_cv_c_compiler_gnu 5463 5464 5465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5466printf %s "checking for grep that handles long lines and -e... " >&6; } 5467if test ${ac_cv_path_GREP+y} 5468then : 5469 printf %s "(cached) " >&6 5470else $as_nop 5471 if test -z "$GREP"; then 5472 ac_path_GREP_found=false 5473 # Loop through the user's path and test for each of PROGNAME-LIST 5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5476do 5477 IFS=$as_save_IFS 5478 case $as_dir in #((( 5479 '') as_dir=./ ;; 5480 */) ;; 5481 *) as_dir=$as_dir/ ;; 5482 esac 5483 for ac_prog in grep ggrep 5484 do 5485 for ac_exec_ext in '' $ac_executable_extensions; do 5486 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5487 as_fn_executable_p "$ac_path_GREP" || continue 5488# Check for GNU ac_path_GREP and select it if it is found. 5489 # Check for GNU $ac_path_GREP 5490case `"$ac_path_GREP" --version 2>&1` in 5491*GNU*) 5492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5493*) 5494 ac_count=0 5495 printf %s 0123456789 >"conftest.in" 5496 while : 5497 do 5498 cat "conftest.in" "conftest.in" >"conftest.tmp" 5499 mv "conftest.tmp" "conftest.in" 5500 cp "conftest.in" "conftest.nl" 5501 printf "%s\n" 'GREP' >> "conftest.nl" 5502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5504 as_fn_arith $ac_count + 1 && ac_count=$as_val 5505 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5506 # Best one so far, save it but keep looking for a better one 5507 ac_cv_path_GREP="$ac_path_GREP" 5508 ac_path_GREP_max=$ac_count 5509 fi 5510 # 10*(2^10) chars as input seems more than enough 5511 test $ac_count -gt 10 && break 5512 done 5513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5514esac 5515 5516 $ac_path_GREP_found && break 3 5517 done 5518 done 5519 done 5520IFS=$as_save_IFS 5521 if test -z "$ac_cv_path_GREP"; then 5522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5523 fi 5524else 5525 ac_cv_path_GREP=$GREP 5526fi 5527 5528fi 5529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5530printf "%s\n" "$ac_cv_path_GREP" >&6; } 5531 GREP="$ac_cv_path_GREP" 5532 5533 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5535printf %s "checking for egrep... " >&6; } 5536if test ${ac_cv_path_EGREP+y} 5537then : 5538 printf %s "(cached) " >&6 5539else $as_nop 5540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5541 then ac_cv_path_EGREP="$GREP -E" 5542 else 5543 if test -z "$EGREP"; then 5544 ac_path_EGREP_found=false 5545 # Loop through the user's path and test for each of PROGNAME-LIST 5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5547for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5548do 5549 IFS=$as_save_IFS 5550 case $as_dir in #((( 5551 '') as_dir=./ ;; 5552 */) ;; 5553 *) as_dir=$as_dir/ ;; 5554 esac 5555 for ac_prog in egrep 5556 do 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5559 as_fn_executable_p "$ac_path_EGREP" || continue 5560# Check for GNU ac_path_EGREP and select it if it is found. 5561 # Check for GNU $ac_path_EGREP 5562case `"$ac_path_EGREP" --version 2>&1` in 5563*GNU*) 5564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5565*) 5566 ac_count=0 5567 printf %s 0123456789 >"conftest.in" 5568 while : 5569 do 5570 cat "conftest.in" "conftest.in" >"conftest.tmp" 5571 mv "conftest.tmp" "conftest.in" 5572 cp "conftest.in" "conftest.nl" 5573 printf "%s\n" 'EGREP' >> "conftest.nl" 5574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5576 as_fn_arith $ac_count + 1 && ac_count=$as_val 5577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5578 # Best one so far, save it but keep looking for a better one 5579 ac_cv_path_EGREP="$ac_path_EGREP" 5580 ac_path_EGREP_max=$ac_count 5581 fi 5582 # 10*(2^10) chars as input seems more than enough 5583 test $ac_count -gt 10 && break 5584 done 5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5586esac 5587 5588 $ac_path_EGREP_found && break 3 5589 done 5590 done 5591 done 5592IFS=$as_save_IFS 5593 if test -z "$ac_cv_path_EGREP"; then 5594 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5595 fi 5596else 5597 ac_cv_path_EGREP=$EGREP 5598fi 5599 5600 fi 5601fi 5602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5603printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5604 EGREP="$ac_cv_path_EGREP" 5605 5606 5607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608/* end confdefs.h. */ 5609#include <netinet/in.h> 5610#ifdef IPV6_INRIA_VERSION 5611yes 5612#endif 5613_ACEOF 5614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5615 $EGREP "yes" >/dev/null 2>&1 5616then : 5617 ipv6type=$i 5618fi 5619rm -rf conftest* 5620 5621 ;; 5622 kame) 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625#include <netinet/in.h> 5626#ifdef __KAME__ 5627yes 5628#endif 5629_ACEOF 5630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5631 $EGREP "yes" >/dev/null 2>&1 5632then : 5633 ipv6type=$i; 5634 ipv6lib=inet6; 5635 ipv6libdir=/usr/local/v6/lib; 5636 ipv6trylibc=yes 5637fi 5638rm -rf conftest* 5639 5640 ;; 5641 linux-glibc) 5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5643/* end confdefs.h. */ 5644#include <features.h> 5645#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 5646yes 5647#endif 5648_ACEOF 5649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5650 $EGREP "yes" >/dev/null 2>&1 5651then : 5652 ipv6type=$i 5653fi 5654rm -rf conftest* 5655 5656 ;; 5657 linux-libinet6) 5658 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then 5659 ipv6type=$i 5660 ipv6lib=inet6 5661 ipv6libdir=/usr/inet6/lib 5662 ipv6trylibc=yes; 5663 CFLAGS="-I/usr/inet6/include $CFLAGS" 5664 fi 5665 ;; 5666 toshiba) 5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5668/* end confdefs.h. */ 5669#include <sys/param.h> 5670#ifdef _TOSHIBA_INET6 5671yes 5672#endif 5673_ACEOF 5674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5675 $EGREP "yes" >/dev/null 2>&1 5676then : 5677 ipv6type=$i; 5678 ipv6lib=inet6; 5679 ipv6libdir=/usr/local/v6/lib 5680fi 5681rm -rf conftest* 5682 5683 ;; 5684 v6d) 5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686/* end confdefs.h. */ 5687#include </usr/local/v6/include/sys/v6config.h> 5688#ifdef __V6D__ 5689yes 5690#endif 5691_ACEOF 5692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5693 $EGREP "yes" >/dev/null 2>&1 5694then : 5695 ipv6type=$i; 5696 ipv6lib=v6; 5697 ipv6libdir=/usr/local/v6/lib; 5698 CFLAGS="-I/usr/local/v6/include $CFLAGS" 5699fi 5700rm -rf conftest* 5701 5702 ;; 5703 zeta) 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705/* end confdefs.h. */ 5706#include <sys/param.h> 5707#ifdef _ZETA_MINAMI_INET6 5708yes 5709#endif 5710_ACEOF 5711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5712 $EGREP "yes" >/dev/null 2>&1 5713then : 5714 ipv6type=$i; 5715 ipv6lib=inet6; 5716 ipv6libdir=/usr/local/v6/lib 5717fi 5718rm -rf conftest* 5719 5720 ;; 5721 esac 5722 if test "$ipv6type" != "unknown"; then 5723 break 5724 fi 5725 done 5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 5727printf "%s\n" "$ipv6type" >&6; } 5728fi 5729 5730if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 5731 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 5732 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 5733 echo "You have $ipv6lib library, using it" 5734 else 5735 if test "$ipv6trylibc" = "yes"; then 5736 echo "You do not have $ipv6lib library, using libc" 5737 else 5738 echo 'Fatal: no $ipv6lib library found. cannot continue.' 5739 echo "You need to fetch lib$ipv6lib.a from appropriate" 5740 echo 'ipv6 kit and compile beforehand.' 5741 exit 1 5742 fi 5743 fi 5744fi 5745 5746ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 5747if test "x$ac_cv_func_strlcat" = xyes 5748then : 5749 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 5750 5751else $as_nop 5752 case " $LIBOBJS " in 5753 *" strlcat.$ac_objext "* ) ;; 5754 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 5755 ;; 5756esac 5757 5758fi 5759ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 5760if test "x$ac_cv_func_strlcpy" = xyes 5761then : 5762 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 5763 5764else $as_nop 5765 case " $LIBOBJS " in 5766 *" strlcpy.$ac_objext "* ) ;; 5767 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 5768 ;; 5769esac 5770 5771fi 5772ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 5773if test "x$ac_cv_func_strdup" = xyes 5774then : 5775 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 5776 5777else $as_nop 5778 case " $LIBOBJS " in 5779 *" strdup.$ac_objext "* ) ;; 5780 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 5781 ;; 5782esac 5783 5784fi 5785ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" 5786if test "x$ac_cv_func_strsep" = xyes 5787then : 5788 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h 5789 5790else $as_nop 5791 case " $LIBOBJS " in 5792 *" strsep.$ac_objext "* ) ;; 5793 *) LIBOBJS="$LIBOBJS strsep.$ac_objext" 5794 ;; 5795esac 5796 5797fi 5798ac_fn_c_check_func "$LINENO" "getservent" "ac_cv_func_getservent" 5799if test "x$ac_cv_func_getservent" = xyes 5800then : 5801 printf "%s\n" "#define HAVE_GETSERVENT 1" >>confdefs.h 5802 5803else $as_nop 5804 case " $LIBOBJS " in 5805 *" getservent.$ac_objext "* ) ;; 5806 *) LIBOBJS="$LIBOBJS getservent.$ac_objext" 5807 ;; 5808esac 5809 5810fi 5811ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 5812if test "x$ac_cv_func_getopt_long" = xyes 5813then : 5814 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h 5815 5816else $as_nop 5817 case " $LIBOBJS " in 5818 *" getopt_long.$ac_objext "* ) ;; 5819 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 5820 ;; 5821esac 5822 5823fi 5824 5825ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 5826if test "x$ac_cv_func_fork" = xyes 5827then : 5828 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h 5829 5830fi 5831ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" 5832if test "x$ac_cv_func_vfork" = xyes 5833then : 5834 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h 5835 5836fi 5837 5838ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf" 5839if test "x$ac_cv_func_setlinebuf" = xyes 5840then : 5841 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h 5842 5843fi 5844 5845 5846# 5847# It became apparent at some point that using a suitable C99 compiler does not 5848# automatically mean snprintf(3) implementation in the libc supports all the 5849# modifiers and specifiers used in the project, so let's test that before the 5850# build, not after. 5851# 5852# Testing the sizeof_t length modifier takes making an snprintf() call and 5853# comparing the actual result with the expected result. If this fails, it will 5854# most likely happen at run time, not compile time. 5855# 5856# Testing the 64-bit conversion specifiers in addition to that requires the 5857# <inttypes.h> header to be present and the macros to be defined, so if this 5858# fails, it will more likely happen at compile time. 5859# 5860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is suitable" >&5 5861printf %s "checking whether snprintf is suitable... " >&6; } 5862if test "$cross_compiling" = yes 5863then : 5864 5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not while cross-compiling" >&5 5866printf "%s\n" "not while cross-compiling" >&6; } 5867 5868 5869else $as_nop 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872 5873 5874#include <stdio.h> 5875#include <string.h> 5876#include <inttypes.h> 5877#include <sys/types.h> 5878 5879#if defined(_WIN32) && !defined(_SSIZE_T_DEFINED) 5880/* 5881 * On UN*Xes, this is a signed integer type of the same size as size_t. 5882 * 5883 * It's not defined by Visual Studio; we assume that ptrdiff_t will 5884 * be a type that is a signed integer type of the same size as size_t. 5885 */ 5886typedef ptrdiff_t ssize_t; 5887#endif 5888 5889/* 5890 * Avoid trying to cast negative values to unsigned types, or doing 5891 * shifts of signed types, in order not to have the test program fail 5892 * if we're building with undefined-behavior sanitizers enabled. 5893 */ 5894int main() 5895{ 5896 char buf[100]; 5897 unsigned int ui = sizeof(buf); 5898 int i = sizeof(buf); 5899 int64_t i64 = INT64_C(0x100000000); 5900 uint64_t ui64 = UINT64_C(0x100000000); 5901 5902 snprintf(buf, sizeof(buf), "%zu", (size_t)ui); 5903 if (strncmp(buf, "100", sizeof(buf))) 5904 return 1; 5905 5906 snprintf(buf, sizeof(buf), "%zd", (ssize_t)(-i)); 5907 if (strncmp(buf, "-100", sizeof(buf))) 5908 return 2; 5909 5910 snprintf(buf, sizeof(buf), "%" PRId64, -i64); 5911 if (strncmp(buf, "-4294967296", sizeof(buf))) 5912 return 3; 5913 5914 snprintf(buf, sizeof(buf), "0o%" PRIo64, ui64); 5915 if (strncmp(buf, "0o40000000000", sizeof(buf))) 5916 return 4; 5917 5918 snprintf(buf, sizeof(buf), "0x%" PRIx64, ui64); 5919 if (strncmp(buf, "0x100000000", sizeof(buf))) 5920 return 5; 5921 5922 snprintf(buf, sizeof(buf), "%" PRIu64, ui64); 5923 if (strncmp(buf, "4294967296", sizeof(buf))) 5924 return 6; 5925 5926 return 0; 5927} 5928 5929 5930_ACEOF 5931if ac_fn_c_try_run "$LINENO" 5932then : 5933 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5935printf "%s\n" "yes" >&6; } 5936 5937else $as_nop 5938 5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940printf "%s\n" "no" >&6; } 5941 as_fn_error $? "The snprintf(3) implementation in this libc is not suitable, 5942tcpdump would not work correctly even if it managed to compile." "$LINENO" 5 5943 5944fi 5945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5946 conftest.$ac_objext conftest.beam conftest.$ac_ext 5947fi 5948 5949 5950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lrpc" >&5 5951printf %s "checking for main in -lrpc... " >&6; } 5952if test ${ac_cv_lib_rpc_main+y} 5953then : 5954 printf %s "(cached) " >&6 5955else $as_nop 5956 ac_check_lib_save_LIBS=$LIBS 5957LIBS="-lrpc $LIBS" 5958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960 5961 5962int 5963main (void) 5964{ 5965return main (); 5966 ; 5967 return 0; 5968} 5969_ACEOF 5970if ac_fn_c_try_link "$LINENO" 5971then : 5972 ac_cv_lib_rpc_main=yes 5973else $as_nop 5974 ac_cv_lib_rpc_main=no 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5977 conftest$ac_exeext conftest.$ac_ext 5978LIBS=$ac_check_lib_save_LIBS 5979fi 5980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpc_main" >&5 5981printf "%s\n" "$ac_cv_lib_rpc_main" >&6; } 5982if test "x$ac_cv_lib_rpc_main" = xyes 5983then : 5984 printf "%s\n" "#define HAVE_LIBRPC 1" >>confdefs.h 5985 5986 LIBS="-lrpc $LIBS" 5987 5988fi 5989 5990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getrpcbynumber" >&5 5991printf %s "checking for library containing getrpcbynumber... " >&6; } 5992if test ${ac_cv_search_getrpcbynumber+y} 5993then : 5994 printf %s "(cached) " >&6 5995else $as_nop 5996 ac_func_search_save_LIBS=$LIBS 5997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5998/* end confdefs.h. */ 5999 6000/* Override any GCC internal prototype to avoid an error. 6001 Use char because int might match the return type of a GCC 6002 builtin and then its argument prototype would still apply. */ 6003char getrpcbynumber (); 6004int 6005main (void) 6006{ 6007return getrpcbynumber (); 6008 ; 6009 return 0; 6010} 6011_ACEOF 6012for ac_lib in '' nsl 6013do 6014 if test -z "$ac_lib"; then 6015 ac_res="none required" 6016 else 6017 ac_res=-l$ac_lib 6018 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6019 fi 6020 if ac_fn_c_try_link "$LINENO" 6021then : 6022 ac_cv_search_getrpcbynumber=$ac_res 6023fi 6024rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6025 conftest$ac_exeext 6026 if test ${ac_cv_search_getrpcbynumber+y} 6027then : 6028 break 6029fi 6030done 6031if test ${ac_cv_search_getrpcbynumber+y} 6032then : 6033 6034else $as_nop 6035 ac_cv_search_getrpcbynumber=no 6036fi 6037rm conftest.$ac_ext 6038LIBS=$ac_func_search_save_LIBS 6039fi 6040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getrpcbynumber" >&5 6041printf "%s\n" "$ac_cv_search_getrpcbynumber" >&6; } 6042ac_res=$ac_cv_search_getrpcbynumber 6043if test "$ac_res" != no 6044then : 6045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6046 6047printf "%s\n" "#define HAVE_GETRPCBYNUMBER 1" >>confdefs.h 6048 6049fi 6050 6051 6052 6053 6054 6055 LBL_LIBS="$LIBS" 6056 pfopen=/usr/examples/packetfilter/pfopen.c 6057 if test -f $pfopen ; then 6058 ac_fn_c_check_func "$LINENO" "pfopen" "ac_cv_func_pfopen" 6059if test "x$ac_cv_func_pfopen" = xyes 6060then : 6061 printf "%s\n" "#define HAVE_PFOPEN 1" >>confdefs.h 6062 6063fi 6064 6065 if test $ac_cv_func_pfopen = "no" ; then 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $pfopen" >&5 6067printf "%s\n" "Using $pfopen" >&6; } 6068 LIBS="$LIBS $pfopen" 6069 fi 6070 fi 6071 libpcap=FAIL 6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to look for a local libpcap" >&5 6073printf %s "checking whether to look for a local libpcap... " >&6; } 6074 # Check whether --enable-local-libpcap was given. 6075if test ${enable_local_libpcap+y} 6076then : 6077 enableval=$enable_local_libpcap; 6078else $as_nop 6079 enableval=yes 6080fi 6081 6082 case "$enableval" in 6083 6084 no) 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6086printf "%s\n" "no" >&6; } 6087 # 6088 # Don't look for a local libpcap. 6089 # 6090 using_local_libpcap=no 6091 ;; 6092 6093 *) 6094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6095printf "%s\n" "yes" >&6; } 6096 # 6097 # Look for a local pcap library. 6098 # 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for local pcap library" >&5 6100printf %s "checking for local pcap library... " >&6; } 6101 lastdir=FAIL 6102 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 6103 $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'` 6104 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ 6105 $EGREP '/libpcap-[0-9]+\.[0-9]+(\.[0-9]*)?([ab][0-9]*|-PRE-GIT|rc.)?$'` 6106 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do 6107 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//' | \ 6108 sed -e 's/-PRE-GIT$//' ` 6109 if test $lastdir = $basedir ; then 6110 continue; 6111 fi 6112 lastdir=$dir 6113 if test -r $dir/libpcap.a ; then 6114 libpcap=$dir/libpcap.a 6115 local_pcap_dir=$dir 6116 fi 6117 done 6118 if test $libpcap = FAIL ; then 6119 # 6120 # We didn't find a local libpcap. 6121 # 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6123printf "%s\n" "not found" >&6; } 6124 using_local_libpcap=no; 6125 else 6126 # 6127 # We found a local libpcap. 6128 # 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libpcap" >&5 6130printf "%s\n" "$libpcap" >&6; } 6131 using_local_libpcap=yes 6132 fi 6133 ;; 6134 esac 6135 6136 if test $using_local_libpcap = no ; then 6137 # 6138 # We didn't find a local libpcap. 6139 # Look for an installed pkg-config. 6140 # 6141 if test -n "$PKG_CONFIG" ; then 6142 # 6143 # We have it. Are there .pc files for libpcap? 6144 # 6145 # --exists was introduced in pkg-config 0.4.0; that 6146 # dates back to late 2000, so we won't worry about 6147 # earlier releases that lack it. 6148 # 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether there are .pc files for libpcap" >&5 6150printf %s "checking whether there are .pc files for libpcap... " >&6; } 6151 if "$PKG_CONFIG" libpcap --exists ; then 6152 # 6153 # Yes, so we can use pkg-config to get configuration 6154 # information for libpcap. 6155 # 6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6157printf "%s\n" "yes" >&6; } 6158 pkg_config_usable=yes 6159 else 6160 # 6161 # No, so we can't use pkg-config to get configuration 6162 # information for libpcap. 6163 # 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6165printf "%s\n" "no" >&6; } 6166 pkg_config_usable=no 6167 fi 6168 else 6169 # 6170 # We don't have it, so we obviously can't use it. 6171 # 6172 pkg_config_usable=no 6173 fi 6174 if test "$pkg_config_usable" = "yes" ; then 6175 # 6176 # Found both - use pkg-config to get the include flags for 6177 # libpcap and the flags to link with libpcap. 6178 # 6179 # Please read section 11.6 "Shell Substitutions" 6180 # in the autoconf manual before doing anything 6181 # to this that involves quoting. Especially note 6182 # the statement "There is just no portable way to use 6183 # double-quoted strings inside double-quoted back-quoted 6184 # expressions (pfew!)." 6185 # 6186 cflags=`"$PKG_CONFIG" libpcap --cflags` 6187 V_INCLS="$cflags $V_INCLS" 6188 libpcap=`"$PKG_CONFIG" libpcap --libs` 6189 else 6190 # 6191 # No pkg-config 6192 # Look for an installed pcap-config. 6193 # 6194 if test -n "$ac_tool_prefix"; then 6195 # Extract the first word of "${ac_tool_prefix}pcap-config", so it can be a program name with args. 6196set dummy ${ac_tool_prefix}pcap-config; ac_word=$2 6197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198printf %s "checking for $ac_word... " >&6; } 6199if test ${ac_cv_path_PCAP_CONFIG+y} 6200then : 6201 printf %s "(cached) " >&6 6202else $as_nop 6203 case $PCAP_CONFIG in 6204 [\\/]* | ?:[\\/]*) 6205 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 6206 ;; 6207 *) 6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209for as_dir in $PATH 6210do 6211 IFS=$as_save_IFS 6212 case $as_dir in #((( 6213 '') as_dir=./ ;; 6214 */) ;; 6215 *) as_dir=$as_dir/ ;; 6216 esac 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6219 ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223done 6224 done 6225IFS=$as_save_IFS 6226 6227 ;; 6228esac 6229fi 6230PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 6231if test -n "$PCAP_CONFIG"; then 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 6233printf "%s\n" "$PCAP_CONFIG" >&6; } 6234else 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6236printf "%s\n" "no" >&6; } 6237fi 6238 6239 6240fi 6241if test -z "$ac_cv_path_PCAP_CONFIG"; then 6242 ac_pt_PCAP_CONFIG=$PCAP_CONFIG 6243 # Extract the first word of "pcap-config", so it can be a program name with args. 6244set dummy pcap-config; ac_word=$2 6245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6246printf %s "checking for $ac_word... " >&6; } 6247if test ${ac_cv_path_ac_pt_PCAP_CONFIG+y} 6248then : 6249 printf %s "(cached) " >&6 6250else $as_nop 6251 case $ac_pt_PCAP_CONFIG in 6252 [\\/]* | ?:[\\/]*) 6253 ac_cv_path_ac_pt_PCAP_CONFIG="$ac_pt_PCAP_CONFIG" # Let the user override the test with a path. 6254 ;; 6255 *) 6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257for as_dir in $PATH 6258do 6259 IFS=$as_save_IFS 6260 case $as_dir in #((( 6261 '') as_dir=./ ;; 6262 */) ;; 6263 *) as_dir=$as_dir/ ;; 6264 esac 6265 for ac_exec_ext in '' $ac_executable_extensions; do 6266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6267 ac_cv_path_ac_pt_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6269 break 2 6270 fi 6271done 6272 done 6273IFS=$as_save_IFS 6274 6275 ;; 6276esac 6277fi 6278ac_pt_PCAP_CONFIG=$ac_cv_path_ac_pt_PCAP_CONFIG 6279if test -n "$ac_pt_PCAP_CONFIG"; then 6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PCAP_CONFIG" >&5 6281printf "%s\n" "$ac_pt_PCAP_CONFIG" >&6; } 6282else 6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6284printf "%s\n" "no" >&6; } 6285fi 6286 6287 if test "x$ac_pt_PCAP_CONFIG" = x; then 6288 PCAP_CONFIG="" 6289 else 6290 case $cross_compiling:$ac_tool_warned in 6291yes:) 6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6293printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6294ac_tool_warned=yes ;; 6295esac 6296 PCAP_CONFIG=$ac_pt_PCAP_CONFIG 6297 fi 6298else 6299 PCAP_CONFIG="$ac_cv_path_PCAP_CONFIG" 6300fi 6301 6302 if test -n "$PCAP_CONFIG" ; then 6303 # 6304 # Found - use it to get the include flags for 6305 # libpcap and the flags to link with libpcap. 6306 # 6307 # If this is a vendor-supplied pcap-config, which 6308 # we define as being "a pcap-config in /usr/bin 6309 # or /usr/ccs/bin" (the latter is for Solaris and 6310 # Sun/Oracle Studio), there are some issues. Work 6311 # around them. 6312 # 6313 if test \( "$PCAP_CONFIG" = "/usr/bin/pcap-config" \) -o \ 6314 \( "$PCAP_CONFIG" = "/usr/ccs/bin/pcap-config" \) ; then 6315 # 6316 # It's vendor-supplied. 6317 # 6318 case "$host_os" in 6319 6320 darwin*) 6321 # 6322 # This is macOS or another Darwin-based OS. 6323 # 6324 # That means that /usr/bin/pcap-config it 6325 # may provide -I/usr/local/include with --cflags 6326 # and -L/usr/local/lib with --libs, rather than 6327 # pointing to the OS-supplied library and 6328 # Xcode-supplied headers. Remember that, so we 6329 # ignore those values. 6330 # 6331 _broken_apple_pcap_config=yes 6332 6333 # 6334 # Furthermore: 6335 # 6336 # macOS Sonoma's libpcap includes stub versions 6337 # of the remote-capture APIs. They are exported 6338 # as "weakly linked symbols". 6339 # 6340 # Xcode 15 offers only a macOS Sonoma SDK, which 6341 # has a .tbd file for libpcap that claims it 6342 # includes those APIs. (Newer versions of macOS 6343 # don't provide the system shared libraries, 6344 # they only provide the dyld shared cache 6345 # containing those libraries, so the OS provides 6346 # SDKs that include a .tbd file to use when 6347 # linking.) 6348 # 6349 # This means that AC_CHECK_FUNCS() will think 6350 # that the remote-capture APIs are present, 6351 # including pcap_open() and 6352 # pcap_findalldevs_ex(). 6353 # 6354 # However, they are *not* present in macOS 6355 # Ventura and earlier, which means that building 6356 # on Ventura with Xcode 15 produces executables 6357 # that fail to start because one of those APIs 6358 # isn't found in the system libpcap. 6359 # 6360 # Protecting calls to those APIs with 6361 # __builtin_available() does not appear to 6362 # prevent this, for some unknown reason, and it 6363 # doesn't even allow the program to compile with 6364 # versions of Xcode prior to Xcode 15, as the 6365 # pcap.h file doesn't specify minimum OS 6366 # versions for those functions. 6367 # 6368 # Given all that, and given that the versions of 6369 # the remote-capture APIs in Sonoma are stubs 6370 # that always fail, there doesn't seem to be any 6371 # point in checking for pcap_open() if we're 6372 # linking against the Apple libpcap. 6373 # 6374 # However, if we're *not* linking against the 6375 # Apple libpcap, we should check for it, so that 6376 # we can use it if it's present. 6377 # 6378 # We know this is macOS and that we're using 6379 # the system-provided pcap-config to find 6380 # libpcap, so we know it'll be the system 6381 # libpcap, and note that we should not search 6382 # for remote-capture APIs. 6383 # 6384 _dont_check_for_remote_apis=yes 6385 ;; 6386 6387 solaris*) 6388 # 6389 # This is Solaris 2 or later, i.e. SunOS 5.x. 6390 # 6391 # At least on Solaris 11; there's /usr/bin/pcap-config, 6392 # which reports -L/usr/lib with --libs, causing 6393 # the 32-bit libraries to be found, and there's 6394 # /usr/bin/{64bitarch}/pcap-config, where {64bitarch} 6395 # is a name for the 64-bit version of the instruction 6396 # set, which reports -L /usr/lib/{64bitarch}, causing 6397 # the 64-bit libraries to be found. 6398 # 6399 # So if we're building 64-bit targets, we replace 6400 # PCAP_CONFIG with /usr/bin/{64bitarch}; we get 6401 # {64bitarch} as the output of "isainfo -n". 6402 # 6403 # Are we building 32-bit or 64-bit? Get the 6404 # size of void *, and check that. 6405 # 6406 # The cast to long int works around a bug in the HP C Compiler 6407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6409# This bug is HP SR number 8606223364. 6410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6411printf %s "checking size of void *... " >&6; } 6412if test ${ac_cv_sizeof_void_p+y} 6413then : 6414 printf %s "(cached) " >&6 6415else $as_nop 6416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 6417then : 6418 6419else $as_nop 6420 if test "$ac_cv_type_void_p" = yes; then 6421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6422printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6423as_fn_error 77 "cannot compute sizeof (void *) 6424See \`config.log' for more details" "$LINENO" 5; } 6425 else 6426 ac_cv_sizeof_void_p=0 6427 fi 6428fi 6429 6430fi 6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6432printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 6433 6434 6435 6436printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 6437 6438 6439 if test ac_cv_sizeof_void_p -eq 8 ; then 6440 isainfo_output=`isainfo -n` 6441 if test ! -z "$isainfo_output" ; then 6442 # 6443 # Success - change PCAP_CONFIG. 6444 # 6445 PCAP_CONFIG=`echo $PCAP_CONFIG | sed "s;/bin/;/bin/$isainfo_output/;"` 6446 fi 6447 fi 6448 ;; 6449 esac 6450 fi 6451 # 6452 # Please read section 11.6 "Shell Substitutions" 6453 # in the autoconf manual before doing anything 6454 # to this that involves quoting. Especially note 6455 # the statement "There is just no portable way to use 6456 # double-quoted strings inside double-quoted back-quoted 6457 # expressions (pfew!)." 6458 # 6459 cflags=`"$PCAP_CONFIG" --cflags` 6460 # 6461 # Work around macOS (and probably other Darwin) brokenness, 6462 # by not adding /usr/local/include if it's from the broken 6463 # Apple pcap-config. 6464 # 6465 if test "$_broken_apple_pcap_config" = "yes" ; then 6466 # 6467 # Strip -I/usr/local/include with sed. 6468 # 6469 cflags=`echo $cflags | sed 's;-I/usr/local/include;;'` 6470 fi 6471 V_INCLS="$cflags $V_INCLS" 6472 libpcap=`"$PCAP_CONFIG" --libs` 6473 # 6474 # Work around macOS (and probably other Darwin) brokenness, 6475 # by not adding /usr/local/lib if it's from the broken 6476 # Apple pcap-config. 6477 # 6478 if test "$_broken_apple_pcap_config" = "yes" ; then 6479 # 6480 # Strip -L/usr/local/lib with sed. 6481 # 6482 libpcap=`echo $libpcap | sed 's;-L/usr/local/lib;;'` 6483 fi 6484 else 6485 # 6486 # Not found; look for an installed pcap. 6487 # 6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lpcap" >&5 6489printf %s "checking for main in -lpcap... " >&6; } 6490if test ${ac_cv_lib_pcap_main+y} 6491then : 6492 printf %s "(cached) " >&6 6493else $as_nop 6494 ac_check_lib_save_LIBS=$LIBS 6495LIBS="-lpcap $LIBS" 6496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6497/* end confdefs.h. */ 6498 6499 6500int 6501main (void) 6502{ 6503return main (); 6504 ; 6505 return 0; 6506} 6507_ACEOF 6508if ac_fn_c_try_link "$LINENO" 6509then : 6510 ac_cv_lib_pcap_main=yes 6511else $as_nop 6512 ac_cv_lib_pcap_main=no 6513fi 6514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6515 conftest$ac_exeext conftest.$ac_ext 6516LIBS=$ac_check_lib_save_LIBS 6517fi 6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_main" >&5 6519printf "%s\n" "$ac_cv_lib_pcap_main" >&6; } 6520if test "x$ac_cv_lib_pcap_main" = xyes 6521then : 6522 libpcap="-lpcap" 6523fi 6524 6525 if test $libpcap = FAIL ; then 6526 as_fn_error $? "see the INSTALL.md file for more info" "$LINENO" 5 6527 fi 6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extraneous pcap header directories" >&5 6529printf %s "checking for extraneous pcap header directories... " >&6; } 6530 if test \( ! -r /usr/local/include/pcap.h \) -a \ 6531 \( ! -r /usr/include/pcap.h \); then 6532 if test -r /usr/local/include/pcap/pcap.h; then 6533 d="/usr/local/include/pcap" 6534 elif test -r /usr/include/pcap/pcap.h; then 6535 d="/usr/include/pcap" 6536 fi 6537 fi 6538 if test -z "$d" ; then 6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6540printf "%s\n" "not found" >&6; } 6541 else 6542 V_INCLS="-I$d $V_INCLS" 6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found -- -I$d added" >&5 6544printf "%s\n" "found -- -I$d added" >&6; } 6545 fi 6546 fi 6547 fi 6548 else 6549 # 6550 # We found a local libpcap. Add it to the dependencies for 6551 # tcpdump. 6552 # 6553 V_PCAPDEP=$libpcap 6554 6555 # 6556 # Look for its pcap-config script. 6557 # 6558 # Extract the first word of "pcap-config", so it can be a program name with args. 6559set dummy pcap-config; ac_word=$2 6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561printf %s "checking for $ac_word... " >&6; } 6562if test ${ac_cv_path_PCAP_CONFIG+y} 6563then : 6564 printf %s "(cached) " >&6 6565else $as_nop 6566 case $PCAP_CONFIG in 6567 [\\/]* | ?:[\\/]*) 6568 ac_cv_path_PCAP_CONFIG="$PCAP_CONFIG" # Let the user override the test with a path. 6569 ;; 6570 *) 6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $local_pcap_dir 6573do 6574 IFS=$as_save_IFS 6575 case $as_dir in #((( 6576 '') as_dir=./ ;; 6577 */) ;; 6578 *) as_dir=$as_dir/ ;; 6579 esac 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6582 ac_cv_path_PCAP_CONFIG="$as_dir$ac_word$ac_exec_ext" 6583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6584 break 2 6585 fi 6586done 6587 done 6588IFS=$as_save_IFS 6589 6590 ;; 6591esac 6592fi 6593PCAP_CONFIG=$ac_cv_path_PCAP_CONFIG 6594if test -n "$PCAP_CONFIG"; then 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCAP_CONFIG" >&5 6596printf "%s\n" "$PCAP_CONFIG" >&6; } 6597else 6598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6599printf "%s\n" "no" >&6; } 6600fi 6601 6602 6603 6604 if test -n "$PCAP_CONFIG"; then 6605 # 6606 # We don't want its --cflags or --libs output, because 6607 # those presume it's installed. For the C compiler flags, 6608 # we add the source directory for the local libpcap, so 6609 # we pick up its header files. 6610 # 6611 # We do, however, want its additional libraries, as required 6612 # when linking statically, because it makes calls to 6613 # routines in those libraries, so we'll need to link with 6614 # them, because we'll be linking statically with it. 6615 # 6616 # If it supports --static-pcap-only. use that, as we will be 6617 # linking with a static libpcap but won't be linking 6618 # statically with any of the libraries on which it depends; 6619 # those libraries might not even have static versions 6620 # installed. 6621 # 6622 # That means we need to find out the libraries on which 6623 # libpcap directly depends, so we can link with them, but we 6624 # don't need to link with the libraries on which those 6625 # libraries depend as, on all UN*Xes with which I'm 6626 # familiar, the libraries on which a shared library depends 6627 # are stored in the library and are automatically loaded by 6628 # the run-time linker, without the executable having to be 6629 # linked with those libraries. (This allows a library to be 6630 # changed to depend on more libraries without breaking that 6631 # library's ABI.) 6632 # 6633 # The only way to test for that support is to see if the 6634 # script contains the string "static-pcap-only"; we can't 6635 # try using that flag and checking for errors, as the 6636 # versions of the script that didn't have that flag wouldn't 6637 # report or return an error for an unsupported command-line 6638 # flag. Those older versions provided, with --static, only 6639 # the libraries on which libpcap depends, not the 6640 # dependencies of those libraries; the versions with 6641 # --static-pcap-only provide all the dependencies with 6642 # --static, for the benefit of programs that are completely 6643 # statically linked, and provide only the direct 6644 # dependencies with --static-pcap-only. 6645 # 6646 if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1 6647 then 6648 static_opt="--static-pcap-only" 6649 else 6650 static_opt="--static" 6651 fi 6652 V_INCLS="-I$local_pcap_dir $V_INCLS" 6653 additional_libs=`"$PCAP_CONFIG" $static_opt --additional-libs` 6654 libpcap="$libpcap $additional_libs" 6655 else 6656 # 6657 # It doesn't have a pcap-config script. 6658 # Make sure it has a pcap.h file. 6659 # 6660 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \ 6661 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 6662 places2=`ls .. | sed -e 's,/$,,' -e "s,^,../," | \ 6663 $EGREP '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'` 6664 pcapH=FAIL 6665 if test -r $local_pcap_dir/pcap.h; then 6666 pcapH=$local_pcap_dir 6667 else 6668 for dir in $places $srcdir/../libpcap ../libpcap $srcdir/libpcap $places2 ; do 6669 if test -r $dir/pcap.h ; then 6670 pcapH=$dir 6671 fi 6672 done 6673 fi 6674 6675 if test $pcapH = FAIL ; then 6676 as_fn_error $? "cannot find pcap.h: see the INSTALL.md file" "$LINENO" 5 6677 fi 6678 6679 # 6680 # Force the compiler to look for header files in the 6681 # directory containing pcap.h. 6682 # 6683 V_INCLS="-I$pcapH $V_INCLS" 6684 fi 6685 fi 6686 6687 if test -z "$PKG_CONFIG" -a -z "$PCAP_CONFIG"; then 6688 # 6689 # We don't have pkg-config or pcap-config; find out any additional 6690 # link flags we need. (If we have pkg-config or pcap-config, we 6691 # assume it tells us what we need.) 6692 # 6693 case "$host_os" in 6694 6695 aix*) 6696 # 6697 # If libpcap is DLPI-based, we have to use /lib/pse.exp if 6698 # present, as we use the STREAMS routines. 6699 # 6700 # (XXX - true only if we're linking with a static libpcap?) 6701 # 6702 pseexe="/lib/pse.exp" 6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $pseexe" >&5 6704printf %s "checking for $pseexe... " >&6; } 6705 if test -f $pseexe ; then 6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6707printf "%s\n" "yes" >&6; } 6708 LIBS="$LIBS -I:$pseexe" 6709 fi 6710 6711 # 6712 # If libpcap is BPF-based, we need "-lodm" and "-lcfg", as 6713 # we use them to load the BPF module. 6714 # 6715 # (XXX - true only if we're linking with a static libpcap?) 6716 # 6717 LIBS="$LIBS -lodm -lcfg" 6718 ;; 6719 6720 solaris*) 6721 # libdlpi is needed for Solaris 11 and later. 6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5 6723printf %s "checking for dlpi_walk in -ldlpi... " >&6; } 6724if test ${ac_cv_lib_dlpi_dlpi_walk+y} 6725then : 6726 printf %s "(cached) " >&6 6727else $as_nop 6728 ac_check_lib_save_LIBS=$LIBS 6729LIBS="-ldlpi -L/lib $LIBS" 6730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6731/* end confdefs.h. */ 6732 6733/* Override any GCC internal prototype to avoid an error. 6734 Use char because int might match the return type of a GCC 6735 builtin and then its argument prototype would still apply. */ 6736char dlpi_walk (); 6737int 6738main (void) 6739{ 6740return dlpi_walk (); 6741 ; 6742 return 0; 6743} 6744_ACEOF 6745if ac_fn_c_try_link "$LINENO" 6746then : 6747 ac_cv_lib_dlpi_dlpi_walk=yes 6748else $as_nop 6749 ac_cv_lib_dlpi_dlpi_walk=no 6750fi 6751rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6752 conftest$ac_exeext conftest.$ac_ext 6753LIBS=$ac_check_lib_save_LIBS 6754fi 6755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dlpi_dlpi_walk" >&5 6756printf "%s\n" "$ac_cv_lib_dlpi_dlpi_walk" >&6; } 6757if test "x$ac_cv_lib_dlpi_dlpi_walk" = xyes 6758then : 6759 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS" 6760fi 6761 6762 ;; 6763 esac 6764 fi 6765 6766 LIBS="$libpcap $LIBS" 6767 6768 ac_fn_c_check_func "$LINENO" "pcap_loop" "ac_cv_func_pcap_loop" 6769if test "x$ac_cv_func_pcap_loop" = xyes 6770then : 6771 6772else $as_nop 6773 6774 as_fn_error $? " 67751. Do you try to build a 32-bit tcpdump with a 64-bit libpcap or vice versa? 67762. This is a bug, please follow the guidelines in CONTRIBUTING.md and include 6777the config.log file in your report. If you have downloaded libpcap from 6778tcpdump.org, and built it yourself, please also include the config.log 6779file from the libpcap source directory, the Makefile from the libpcap 6780source directory, and the output of the make process for libpcap, as 6781this could be a problem with the libpcap that was built, and we will 6782not be able to determine why this is happening, and thus will not be 6783able to fix it, without that information, as we have not been able to 6784reproduce this problem ourselves." "$LINENO" 5 6785 6786fi 6787 6788 6789 6790# 6791# Check for these after AC_LBL_LIBPCAP, so we link with the appropriate 6792# libraries (e.g., "-lsocket -lnsl" on Solaris). 6793# 6794# You are in a twisty little maze of UN*Xes, all different. 6795# Some might not have ether_ntohost(). 6796# Some might have it and declare it in <net/ethernet.h>. 6797# Some might have it and declare it in <netinet/ether.h> 6798# Some might have it and declare it in <sys/ethernet.h>. 6799# Some might have it and declare it in <arpa/inet.h>. 6800# Some might have it and declare it in <netinet/if_ether.h>. 6801# Some might have it and not declare it in any header file. 6802# 6803# Before you is a C compiler. 6804# 6805 6806 for ac_func in ether_ntohost 6807do : 6808 ac_fn_c_check_func "$LINENO" "ether_ntohost" "ac_cv_func_ether_ntohost" 6809if test "x$ac_cv_func_ether_ntohost" = xyes 6810then : 6811 printf "%s\n" "#define HAVE_ETHER_NTOHOST 1" >>confdefs.h 6812 6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for buggy ether_ntohost" >&5 6814printf %s "checking for buggy ether_ntohost... " >&6; } 6815if test ${ac_cv_buggy_ether_ntohost+y} 6816then : 6817 printf %s "(cached) " >&6 6818else $as_nop 6819 6820 if test "$cross_compiling" = yes 6821then : 6822 ac_cv_buggy_ether_ntohost="not while cross-compiling" 6823else $as_nop 6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6825/* end confdefs.h. */ 6826 6827 #include <netdb.h> 6828 #include <netinet/ether.h> 6829 #include <stdlib.h> 6830 #include <sys/types.h> 6831 #include <sys/param.h> 6832 #include <sys/socket.h> 6833 6834 int 6835 main(int argc, char **argv) 6836 { 6837 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff }; 6838 char name[MAXHOSTNAMELEN]; 6839 6840 ether_ntohost(name, (struct ether_addr *)ea); 6841 exit(0); 6842 } 6843 6844 6845_ACEOF 6846if ac_fn_c_try_run "$LINENO" 6847then : 6848 ac_cv_buggy_ether_ntohost=no 6849else $as_nop 6850 ac_cv_buggy_ether_ntohost=yes 6851fi 6852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6853 conftest.$ac_objext conftest.beam conftest.$ac_ext 6854fi 6855 6856fi 6857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_ether_ntohost" >&5 6858printf "%s\n" "$ac_cv_buggy_ether_ntohost" >&6; } 6859 if test "$ac_cv_buggy_ether_ntohost" = "no"; then 6860 6861printf "%s\n" "#define USE_ETHER_NTOHOST 1" >>confdefs.h 6862 6863 fi 6864 6865fi 6866 6867done 6868if test "$ac_cv_func_ether_ntohost" = yes -a \ 6869 "$ac_cv_buggy_ether_ntohost" = "no"; then 6870 # 6871 # OK, we have ether_ntohost(). Is it declared in <net/ethernet.h>? 6872 # 6873 # This test fails if we don't have <net/ethernet.h> or if we do 6874 # but it doesn't declare ether_ntohost(). 6875 # 6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 6877printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 6878if test ${ac_cv_c_undeclared_builtin_options+y} 6879then : 6880 printf %s "(cached) " >&6 6881else $as_nop 6882 ac_save_CFLAGS=$CFLAGS 6883 ac_cv_c_undeclared_builtin_options='cannot detect' 6884 for ac_arg in '' -fno-builtin; do 6885 CFLAGS="$ac_save_CFLAGS $ac_arg" 6886 # This test program should *not* compile successfully. 6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888/* end confdefs.h. */ 6889 6890int 6891main (void) 6892{ 6893(void) strchr; 6894 ; 6895 return 0; 6896} 6897_ACEOF 6898if ac_fn_c_try_compile "$LINENO" 6899then : 6900 6901else $as_nop 6902 # This test program should compile successfully. 6903 # No library function is consistently available on 6904 # freestanding implementations, so test against a dummy 6905 # declaration. Include always-available headers on the 6906 # off chance that they somehow elicit warnings. 6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6908/* end confdefs.h. */ 6909#include <float.h> 6910#include <limits.h> 6911#include <stdarg.h> 6912#include <stddef.h> 6913extern void ac_decl (int, char *); 6914 6915int 6916main (void) 6917{ 6918(void) ac_decl (0, (char *) 0); 6919 (void) ac_decl; 6920 6921 ; 6922 return 0; 6923} 6924_ACEOF 6925if ac_fn_c_try_compile "$LINENO" 6926then : 6927 if test x"$ac_arg" = x 6928then : 6929 ac_cv_c_undeclared_builtin_options='none needed' 6930else $as_nop 6931 ac_cv_c_undeclared_builtin_options=$ac_arg 6932fi 6933 break 6934fi 6935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6936fi 6937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6938 done 6939 CFLAGS=$ac_save_CFLAGS 6940 6941fi 6942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 6943printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 6944 case $ac_cv_c_undeclared_builtin_options in #( 6945 'cannot detect') : 6946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6947printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6948as_fn_error $? "cannot make $CC report undeclared builtins 6949See \`config.log' for more details" "$LINENO" 5; } ;; #( 6950 'none needed') : 6951 ac_c_undeclared_builtin_options='' ;; #( 6952 *) : 6953 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 6954esac 6955 6956ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6957#include <net/ethernet.h> 6958 6959" "$ac_c_undeclared_builtin_options" "CFLAGS" 6960if test "x$ac_cv_have_decl_ether_ntohost" = xyes 6961then : 6962 6963 6964printf "%s\n" "#define NET_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 6965 6966 6967fi 6968 # 6969 # Did that succeed? 6970 # 6971 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 6972 # 6973 # No, how about <netinet/ether.h>, as on Linux? 6974 # 6975 # This test fails if we don't have <netinet/ether.h> 6976 # or if we do but it doesn't declare ether_ntohost(). 6977 # 6978 # Unset ac_cv_have_decl_ether_ntohost so we don't 6979 # treat the previous failure as a cached value and 6980 # suppress the next test. 6981 # 6982 unset ac_cv_have_decl_ether_ntohost 6983 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 6984#include <netinet/ether.h> 6985 6986" "$ac_c_undeclared_builtin_options" "CFLAGS" 6987if test "x$ac_cv_have_decl_ether_ntohost" = xyes 6988then : 6989 6990 6991printf "%s\n" "#define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST 1" >>confdefs.h 6992 6993 6994fi 6995 fi 6996 # 6997 # Did that succeed? 6998 # 6999 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7000 # 7001 # No, how about <sys/ethernet.h>, as on Solaris 10 7002 # and later? 7003 # 7004 # This test fails if we don't have <sys/ethernet.h> 7005 # or if we do but it doesn't declare ether_ntohost(). 7006 # 7007 # Unset ac_cv_have_decl_ether_ntohost so we don't 7008 # treat the previous failure as a cached value and 7009 # suppress the next test. 7010 # 7011 unset ac_cv_have_decl_ether_ntohost 7012 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7013#include <sys/ethernet.h> 7014 7015" "$ac_c_undeclared_builtin_options" "CFLAGS" 7016if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7017then : 7018 7019 7020printf "%s\n" "#define SYS_ETHERNET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7021 7022 7023fi 7024 fi 7025 # 7026 # Did that succeed? 7027 # 7028 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7029 # 7030 # No, how about <arpa/inet.h>, as in AIX? 7031 # 7032 # This test fails if we don't have <arpa/inet.h> 7033 # (if we have ether_ntohost(), we should have 7034 # networking, and if we have networking, we should 7035 # have <arpa/inet.h>) or if we do but it doesn't 7036 # declare ether_ntohost(). 7037 # 7038 # Unset ac_cv_have_decl_ether_ntohost so we don't 7039 # treat the previous failure as a cached value and 7040 # suppress the next test. 7041 # 7042 unset ac_cv_have_decl_ether_ntohost 7043 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7044#include <arpa/inet.h> 7045 7046" "$ac_c_undeclared_builtin_options" "CFLAGS" 7047if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7048then : 7049 7050 7051printf "%s\n" "#define ARPA_INET_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7052 7053 7054fi 7055 fi 7056 # 7057 # Did that succeed? 7058 # 7059 if test "$ac_cv_have_decl_ether_ntohost" != yes; then 7060 # 7061 # No, how about <netinet/if_ether.h>? 7062 # On some platforms, it requires <net/if.h> and 7063 # <netinet/in.h>, and we always include it with 7064 # both of them, so test it with both of them. 7065 # 7066 # This test fails if we don't have <netinet/if_ether.h> 7067 # and the headers we include before it, or if we do but 7068 # <netinet/if_ether.h> doesn't declare ether_hostton(). 7069 # 7070 # Unset ac_cv_have_decl_ether_ntohost so we don't 7071 # treat the previous failure as a cached value and 7072 # suppress the next test. 7073 # 7074 unset ac_cv_have_decl_ether_ntohost 7075 ac_fn_check_decl "$LINENO" "ether_ntohost" "ac_cv_have_decl_ether_ntohost" " 7076#include <sys/types.h> 7077#include <sys/socket.h> 7078#include <net/if.h> 7079#include <netinet/in.h> 7080#include <netinet/if_ether.h> 7081 7082" "$ac_c_undeclared_builtin_options" "CFLAGS" 7083if test "x$ac_cv_have_decl_ether_ntohost" = xyes 7084then : 7085 7086 7087printf "%s\n" "#define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST /**/" >>confdefs.h 7088 7089 7090fi 7091 fi 7092 # 7093 # After all that, is ether_ntohost() declared? 7094 # 7095 if test "$ac_cv_have_decl_ether_ntohost" = yes; then 7096 # 7097 # Yes. 7098 # 7099 7100printf "%s\n" "#define HAVE_DECL_ETHER_NTOHOST 1" >>confdefs.h 7101 7102 else 7103 # 7104 # No, we'll have to declare it ourselves. 7105 # Do we have "struct ether_addr" if we include 7106 # <netinet/if_ether.h>? 7107 # 7108 ac_fn_c_check_type "$LINENO" "struct ether_addr" "ac_cv_type_struct_ether_addr" " 7109 #include <sys/types.h> 7110 #include <sys/socket.h> 7111 #include <net/if.h> 7112 #include <netinet/in.h> 7113 #include <netinet/if_ether.h> 7114 7115" 7116if test "x$ac_cv_type_struct_ether_addr" = xyes 7117then : 7118 7119printf "%s\n" "#define HAVE_STRUCT_ETHER_ADDR 1" >>confdefs.h 7120 7121 7122fi 7123 7124 fi 7125fi 7126 7127ac_fn_c_check_func "$LINENO" "pcap_list_datalinks" "ac_cv_func_pcap_list_datalinks" 7128if test "x$ac_cv_func_pcap_list_datalinks" = xyes 7129then : 7130 7131 7132printf "%s\n" "#define HAVE_PCAP_LIST_DATALINKS 1" >>confdefs.h 7133 7134 ac_fn_c_check_func "$LINENO" "pcap_free_datalinks" "ac_cv_func_pcap_free_datalinks" 7135if test "x$ac_cv_func_pcap_free_datalinks" = xyes 7136then : 7137 printf "%s\n" "#define HAVE_PCAP_FREE_DATALINKS 1" >>confdefs.h 7138 7139fi 7140 7141 7142else $as_nop 7143 7144 case " $LIBOBJS " in 7145 *" datalinks.$ac_objext "* ) ;; 7146 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" 7147 ;; 7148esac 7149 7150 7151fi 7152 7153 7154ac_fn_c_check_func "$LINENO" "pcap_datalink_name_to_val" "ac_cv_func_pcap_datalink_name_to_val" 7155if test "x$ac_cv_func_pcap_datalink_name_to_val" = xyes 7156then : 7157 7158 7159printf "%s\n" "#define HAVE_PCAP_DATALINK_NAME_TO_VAL 1" >>confdefs.h 7160 7161 ac_fn_c_check_func "$LINENO" "pcap_datalink_val_to_description" "ac_cv_func_pcap_datalink_val_to_description" 7162if test "x$ac_cv_func_pcap_datalink_val_to_description" = xyes 7163then : 7164 7165printf "%s\n" "#define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1" >>confdefs.h 7166 7167else $as_nop 7168 7169 case " $LIBOBJS " in 7170 *" dlnames.$ac_objext "* ) ;; 7171 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7172 ;; 7173esac 7174 7175 7176fi 7177 7178 7179else $as_nop 7180 7181 case " $LIBOBJS " in 7182 *" dlnames.$ac_objext "* ) ;; 7183 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" 7184 ;; 7185esac 7186 7187 7188fi 7189 7190 7191ac_fn_c_check_func "$LINENO" "pcap_set_datalink" "ac_cv_func_pcap_set_datalink" 7192if test "x$ac_cv_func_pcap_set_datalink" = xyes 7193then : 7194 printf "%s\n" "#define HAVE_PCAP_SET_DATALINK 1" >>confdefs.h 7195 7196fi 7197 7198 7199ac_fn_c_check_func "$LINENO" "pcap_breakloop" "ac_cv_func_pcap_breakloop" 7200if test "x$ac_cv_func_pcap_breakloop" = xyes 7201then : 7202 printf "%s\n" "#define HAVE_PCAP_BREAKLOOP 1" >>confdefs.h 7203 7204fi 7205 7206 7207# 7208# Do we have the new open API? Check for pcap_create, and assume that, 7209# if we do, we also have pcap_activate() and the other new routines 7210# introduced in libpcap 1.0.0. 7211# 7212ac_fn_c_check_func "$LINENO" "pcap_create" "ac_cv_func_pcap_create" 7213if test "x$ac_cv_func_pcap_create" = xyes 7214then : 7215 printf "%s\n" "#define HAVE_PCAP_CREATE 1" >>confdefs.h 7216 7217fi 7218 7219if test $ac_cv_func_pcap_create = "yes" ; then 7220 # 7221 # OK, do we have pcap_set_tstamp_type? If so, assume we have 7222 # pcap_list_tstamp_types and pcap_free_tstamp_types as well. 7223 # 7224 ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_type" "ac_cv_func_pcap_set_tstamp_type" 7225if test "x$ac_cv_func_pcap_set_tstamp_type" = xyes 7226then : 7227 printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_TYPE 1" >>confdefs.h 7228 7229fi 7230 7231 # 7232 # And do we have pcap_set_tstamp_precision? If so, we assume 7233 # we also have pcap_open_offline_with_tstamp_precision. 7234 # 7235 ac_fn_c_check_func "$LINENO" "pcap_set_tstamp_precision" "ac_cv_func_pcap_set_tstamp_precision" 7236if test "x$ac_cv_func_pcap_set_tstamp_precision" = xyes 7237then : 7238 printf "%s\n" "#define HAVE_PCAP_SET_TSTAMP_PRECISION 1" >>confdefs.h 7239 7240fi 7241 7242fi 7243 7244# 7245# Check for a miscellaneous collection of functions which we use 7246# if we have them. 7247# 7248ac_fn_c_check_func "$LINENO" "pcap_findalldevs" "ac_cv_func_pcap_findalldevs" 7249if test "x$ac_cv_func_pcap_findalldevs" = xyes 7250then : 7251 printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS 1" >>confdefs.h 7252 7253fi 7254 7255ac_fn_c_check_func "$LINENO" "pcap_dump_flush" "ac_cv_func_pcap_dump_flush" 7256if test "x$ac_cv_func_pcap_dump_flush" = xyes 7257then : 7258 printf "%s\n" "#define HAVE_PCAP_DUMP_FLUSH 1" >>confdefs.h 7259 7260fi 7261ac_fn_c_check_func "$LINENO" "pcap_lib_version" "ac_cv_func_pcap_lib_version" 7262if test "x$ac_cv_func_pcap_lib_version" = xyes 7263then : 7264 printf "%s\n" "#define HAVE_PCAP_LIB_VERSION 1" >>confdefs.h 7265 7266fi 7267 7268if test $ac_cv_func_pcap_lib_version = "no" ; then 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_version is defined by libpcap" >&5 7270printf %s "checking whether pcap_version is defined by libpcap... " >&6; } 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273 7274int 7275main (void) 7276{ 7277 7278 extern char pcap_version[]; 7279 7280 return (int)pcap_version; 7281 7282 ; 7283 return 0; 7284} 7285 7286_ACEOF 7287if ac_fn_c_try_link "$LINENO" 7288then : 7289 ac_lbl_cv_pcap_version_defined=yes 7290else $as_nop 7291 ac_lbl_cv_pcap_version_defined=no 7292fi 7293rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7294 conftest$ac_exeext conftest.$ac_ext 7295 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7297printf "%s\n" "yes" >&6; } 7298 7299printf "%s\n" "#define HAVE_PCAP_VERSION 1" >>confdefs.h 7300 7301 else 7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7303printf "%s\n" "no" >&6; } 7304 fi 7305fi 7306ac_fn_c_check_func "$LINENO" "pcap_setdirection" "ac_cv_func_pcap_setdirection" 7307if test "x$ac_cv_func_pcap_setdirection" = xyes 7308then : 7309 printf "%s\n" "#define HAVE_PCAP_SETDIRECTION 1" >>confdefs.h 7310 7311fi 7312ac_fn_c_check_func "$LINENO" "pcap_set_immediate_mode" "ac_cv_func_pcap_set_immediate_mode" 7313if test "x$ac_cv_func_pcap_set_immediate_mode" = xyes 7314then : 7315 printf "%s\n" "#define HAVE_PCAP_SET_IMMEDIATE_MODE 1" >>confdefs.h 7316 7317fi 7318ac_fn_c_check_func "$LINENO" "pcap_dump_ftell64" "ac_cv_func_pcap_dump_ftell64" 7319if test "x$ac_cv_func_pcap_dump_ftell64" = xyes 7320then : 7321 printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL64 1" >>confdefs.h 7322 7323fi 7324 7325# 7326# See the comment in AC_LBL_LIBPCAP in aclocal.m4 for the reason 7327# why we don't check for remote-capture APIs if we're building 7328# with the system libpcap on macOS. 7329# 7330if test "$_dont_check_for_remote_apis" != "yes"; then 7331 ac_fn_c_check_func "$LINENO" "pcap_open" "ac_cv_func_pcap_open" 7332if test "x$ac_cv_func_pcap_open" = xyes 7333then : 7334 printf "%s\n" "#define HAVE_PCAP_OPEN 1" >>confdefs.h 7335 7336fi 7337ac_fn_c_check_func "$LINENO" "pcap_findalldevs_ex" "ac_cv_func_pcap_findalldevs_ex" 7338if test "x$ac_cv_func_pcap_findalldevs_ex" = xyes 7339then : 7340 printf "%s\n" "#define HAVE_PCAP_FINDALLDEVS_EX 1" >>confdefs.h 7341 7342fi 7343 7344fi 7345ac_fn_c_check_func "$LINENO" "pcap_dump_ftell" "ac_cv_func_pcap_dump_ftell" 7346if test "x$ac_cv_func_pcap_dump_ftell" = xyes 7347then : 7348 printf "%s\n" "#define HAVE_PCAP_DUMP_FTELL 1" >>confdefs.h 7349 7350else $as_nop 7351 case " $LIBOBJS " in 7352 *" pcap_dump_ftell.$ac_objext "* ) ;; 7353 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" 7354 ;; 7355esac 7356 7357fi 7358 7359 7360# 7361# Check for special debugging functions 7362# 7363ac_fn_c_check_func "$LINENO" "pcap_set_parser_debug" "ac_cv_func_pcap_set_parser_debug" 7364if test "x$ac_cv_func_pcap_set_parser_debug" = xyes 7365then : 7366 printf "%s\n" "#define HAVE_PCAP_SET_PARSER_DEBUG 1" >>confdefs.h 7367 7368fi 7369 7370if test "$ac_cv_func_pcap_set_parser_debug" = "no" ; then 7371 # 7372 # OK, we don't have pcap_set_parser_debug() to set the libpcap 7373 # filter expression parser debug flag; can we directly set the 7374 # flag? 7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pcap_debug is defined by libpcap" >&5 7376printf %s "checking whether pcap_debug is defined by libpcap... " >&6; } 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379 7380int 7381main (void) 7382{ 7383 7384 extern int pcap_debug; 7385 7386 return pcap_debug; 7387 7388 ; 7389 return 0; 7390} 7391 7392_ACEOF 7393if ac_fn_c_try_link "$LINENO" 7394then : 7395 ac_lbl_cv_pcap_debug_defined=yes 7396else $as_nop 7397 ac_lbl_cv_pcap_debug_defined=no 7398fi 7399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7400 conftest$ac_exeext conftest.$ac_ext 7401 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then 7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7403printf "%s\n" "yes" >&6; } 7404 7405printf "%s\n" "#define HAVE_PCAP_DEBUG 1" >>confdefs.h 7406 7407 else 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409printf "%s\n" "no" >&6; } 7410 # 7411 # OK, what about "yydebug"? 7412 # 7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yydebug is defined by libpcap" >&5 7414printf %s "checking whether yydebug is defined by libpcap... " >&6; } 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416/* end confdefs.h. */ 7417 7418int 7419main (void) 7420{ 7421 7422 extern int yydebug; 7423 7424 return yydebug; 7425 7426 ; 7427 return 0; 7428} 7429 7430_ACEOF 7431if ac_fn_c_try_link "$LINENO" 7432then : 7433 ac_lbl_cv_yydebug_defined=yes 7434else $as_nop 7435 ac_lbl_cv_yydebug_defined=no 7436fi 7437rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7438 conftest$ac_exeext conftest.$ac_ext 7439 if test "$ac_lbl_cv_yydebug_defined" = yes ; then 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7441printf "%s\n" "yes" >&6; } 7442 7443printf "%s\n" "#define HAVE_YYDEBUG 1" >>confdefs.h 7444 7445 else 7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7447printf "%s\n" "no" >&6; } 7448 fi 7449 fi 7450fi 7451ac_fn_c_check_func "$LINENO" "pcap_set_optimizer_debug" "ac_cv_func_pcap_set_optimizer_debug" 7452if test "x$ac_cv_func_pcap_set_optimizer_debug" = xyes 7453then : 7454 printf "%s\n" "#define HAVE_PCAP_SET_OPTIMIZER_DEBUG 1" >>confdefs.h 7455 7456fi 7457 7458ac_fn_c_check_func "$LINENO" "bpf_dump" "ac_cv_func_bpf_dump" 7459if test "x$ac_cv_func_bpf_dump" = xyes 7460then : 7461 printf "%s\n" "#define HAVE_BPF_DUMP 1" >>confdefs.h 7462 7463else $as_nop 7464 case " $LIBOBJS " in 7465 *" bpf_dump.$ac_objext "* ) ;; 7466 *) LIBOBJS="$LIBOBJS bpf_dump.$ac_objext" 7467 ;; 7468esac 7469 7470fi 7471 7472# 7473# Assume V7/BSD convention for man pages (file formats in section 5, 7474# miscellaneous info in section 7). 7475# 7476MAN_FILE_FORMATS=5 7477MAN_MISC_INFO=7 7478case "$host_os" in 7479 7480aix*) 7481 7482printf "%s\n" "#define _SUN 1" >>confdefs.h 7483 7484 ;; 7485 7486hpux*) 7487 # 7488 # Use System V conventions for man pages. 7489 # 7490 MAN_FILE_FORMATS=4 7491 MAN_MISC_INFO=5 7492 ;; 7493 7494irix*) 7495 V_GROUP=sys 7496 7497 # 7498 # Use System V conventions for man pages. 7499 # 7500 MAN_FILE_FORMATS=4 7501 MAN_MISC_INFO=5 7502 ;; 7503 7504osf*) 7505 V_GROUP=system 7506 7507 # 7508 # Use System V conventions for man pages. 7509 # 7510 MAN_FILE_FORMATS=4 7511 MAN_MISC_INFO=5 7512 ;; 7513 7514solaris*) 7515 # 7516 # Use System V conventions for man pages. 7517 # 7518 MAN_FILE_FORMATS=4 7519 MAN_MISC_INFO=5 7520 ;; 7521esac 7522 7523# 7524# Make sure we have a definition for C99's uintptr_t (regardless of 7525# whether the environment is a C99 environment or not). 7526# 7527 7528 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 7529if test "x$ac_cv_type_uintptr_t" = xyes 7530then : 7531 7532printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 7533 7534else $as_nop 7535 for ac_type in 'unsigned int' 'unsigned long int' \ 7536 'unsigned long long int'; do 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538/* end confdefs.h. */ 7539$ac_includes_default 7540int 7541main (void) 7542{ 7543static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 7544test_array [0] = 0; 7545return test_array [0]; 7546 7547 ; 7548 return 0; 7549} 7550_ACEOF 7551if ac_fn_c_try_compile "$LINENO" 7552then : 7553 7554printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 7555 7556 ac_type= 7557fi 7558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7559 test -z "$ac_type" && break 7560 done 7561fi 7562 7563 7564 7565savedcppflags="$CPPFLAGS" 7566CPPFLAGS="$CPPFLAGS $V_INCLS" 7567 7568# 7569# Check whether we have pcap/pcap-inttypes.h. 7570# If we do, we use that to get the C99 types defined. 7571# 7572ac_fn_c_check_header_compile "$LINENO" "pcap/pcap-inttypes.h" "ac_cv_header_pcap_pcap_inttypes_h" "$ac_includes_default" 7573if test "x$ac_cv_header_pcap_pcap_inttypes_h" = xyes 7574then : 7575 printf "%s\n" "#define HAVE_PCAP_PCAP_INTTYPES_H 1" >>confdefs.h 7576 7577fi 7578 7579 7580# 7581# At compile time HAVE_PCAP_FINDALLDEVS depends on HAVE_PCAP_IF_T. 7582# 7583ac_fn_c_check_type "$LINENO" "pcap_if_t" "ac_cv_type_pcap_if_t" "#include <pcap.h> 7584" 7585if test "x$ac_cv_type_pcap_if_t" = xyes 7586then : 7587 7588printf "%s\n" "#define HAVE_PCAP_IF_T 1" >>confdefs.h 7589 7590 7591fi 7592 7593 7594CPPFLAGS="$savedcppflags" 7595 7596# 7597# Define the old BSD specified-width types in terms of the C99 types; 7598# we may need them with libpcap include files. 7599# 7600ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "$ac_includes_default 7601#include <sys/types.h> 7602 7603" 7604if test "x$ac_cv_type_u_int8_t" = xyes 7605then : 7606 7607else $as_nop 7608 7609printf "%s\n" "#define u_int8_t uint8_t" >>confdefs.h 7610 7611fi 7612 7613ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default 7614#include <sys/types.h> 7615 7616" 7617if test "x$ac_cv_type_u_int16_t" = xyes 7618then : 7619 7620else $as_nop 7621 7622printf "%s\n" "#define u_int16_t uint16_t" >>confdefs.h 7623 7624fi 7625 7626ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default 7627#include <sys/types.h> 7628 7629" 7630if test "x$ac_cv_type_u_int32_t" = xyes 7631then : 7632 7633else $as_nop 7634 7635printf "%s\n" "#define u_int32_t uint32_t" >>confdefs.h 7636 7637fi 7638 7639ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default 7640#include <sys/types.h> 7641 7642" 7643if test "x$ac_cv_type_u_int64_t" = xyes 7644then : 7645 7646else $as_nop 7647 7648printf "%s\n" "#define u_int64_t uint64_t" >>confdefs.h 7649 7650fi 7651 7652 7653if test -n "$ac_tool_prefix"; then 7654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7655set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7657printf %s "checking for $ac_word... " >&6; } 7658if test ${ac_cv_prog_RANLIB+y} 7659then : 7660 printf %s "(cached) " >&6 7661else $as_nop 7662 if test -n "$RANLIB"; then 7663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7664else 7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666for as_dir in $PATH 7667do 7668 IFS=$as_save_IFS 7669 case $as_dir in #((( 7670 '') as_dir=./ ;; 7671 */) ;; 7672 *) as_dir=$as_dir/ ;; 7673 esac 7674 for ac_exec_ext in '' $ac_executable_extensions; do 7675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7678 break 2 7679 fi 7680done 7681 done 7682IFS=$as_save_IFS 7683 7684fi 7685fi 7686RANLIB=$ac_cv_prog_RANLIB 7687if test -n "$RANLIB"; then 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7689printf "%s\n" "$RANLIB" >&6; } 7690else 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7692printf "%s\n" "no" >&6; } 7693fi 7694 7695 7696fi 7697if test -z "$ac_cv_prog_RANLIB"; then 7698 ac_ct_RANLIB=$RANLIB 7699 # Extract the first word of "ranlib", so it can be a program name with args. 7700set dummy ranlib; ac_word=$2 7701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7702printf %s "checking for $ac_word... " >&6; } 7703if test ${ac_cv_prog_ac_ct_RANLIB+y} 7704then : 7705 printf %s "(cached) " >&6 7706else $as_nop 7707 if test -n "$ac_ct_RANLIB"; then 7708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7709else 7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7711for as_dir in $PATH 7712do 7713 IFS=$as_save_IFS 7714 case $as_dir in #((( 7715 '') as_dir=./ ;; 7716 */) ;; 7717 *) as_dir=$as_dir/ ;; 7718 esac 7719 for ac_exec_ext in '' $ac_executable_extensions; do 7720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7721 ac_cv_prog_ac_ct_RANLIB="ranlib" 7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7723 break 2 7724 fi 7725done 7726 done 7727IFS=$as_save_IFS 7728 7729fi 7730fi 7731ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7732if test -n "$ac_ct_RANLIB"; then 7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7734printf "%s\n" "$ac_ct_RANLIB" >&6; } 7735else 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7737printf "%s\n" "no" >&6; } 7738fi 7739 7740 if test "x$ac_ct_RANLIB" = x; then 7741 RANLIB=":" 7742 else 7743 case $cross_compiling:$ac_tool_warned in 7744yes:) 7745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7746printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7747ac_tool_warned=yes ;; 7748esac 7749 RANLIB=$ac_ct_RANLIB 7750 fi 7751else 7752 RANLIB="$ac_cv_prog_RANLIB" 7753fi 7754 7755if test -n "$ac_tool_prefix"; then 7756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7757set dummy ${ac_tool_prefix}ar; ac_word=$2 7758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7759printf %s "checking for $ac_word... " >&6; } 7760if test ${ac_cv_prog_AR+y} 7761then : 7762 printf %s "(cached) " >&6 7763else $as_nop 7764 if test -n "$AR"; then 7765 ac_cv_prog_AR="$AR" # Let the user override the test. 7766else 7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7768for as_dir in $PATH 7769do 7770 IFS=$as_save_IFS 7771 case $as_dir in #((( 7772 '') as_dir=./ ;; 7773 */) ;; 7774 *) as_dir=$as_dir/ ;; 7775 esac 7776 for ac_exec_ext in '' $ac_executable_extensions; do 7777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7778 ac_cv_prog_AR="${ac_tool_prefix}ar" 7779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7780 break 2 7781 fi 7782done 7783 done 7784IFS=$as_save_IFS 7785 7786fi 7787fi 7788AR=$ac_cv_prog_AR 7789if test -n "$AR"; then 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7791printf "%s\n" "$AR" >&6; } 7792else 7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794printf "%s\n" "no" >&6; } 7795fi 7796 7797 7798fi 7799if test -z "$ac_cv_prog_AR"; then 7800 ac_ct_AR=$AR 7801 # Extract the first word of "ar", so it can be a program name with args. 7802set dummy ar; ac_word=$2 7803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7804printf %s "checking for $ac_word... " >&6; } 7805if test ${ac_cv_prog_ac_ct_AR+y} 7806then : 7807 printf %s "(cached) " >&6 7808else $as_nop 7809 if test -n "$ac_ct_AR"; then 7810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7811else 7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7813for as_dir in $PATH 7814do 7815 IFS=$as_save_IFS 7816 case $as_dir in #((( 7817 '') as_dir=./ ;; 7818 */) ;; 7819 *) as_dir=$as_dir/ ;; 7820 esac 7821 for ac_exec_ext in '' $ac_executable_extensions; do 7822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7823 ac_cv_prog_ac_ct_AR="ar" 7824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7825 break 2 7826 fi 7827done 7828 done 7829IFS=$as_save_IFS 7830 7831fi 7832fi 7833ac_ct_AR=$ac_cv_prog_ac_ct_AR 7834if test -n "$ac_ct_AR"; then 7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7836printf "%s\n" "$ac_ct_AR" >&6; } 7837else 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7839printf "%s\n" "no" >&6; } 7840fi 7841 7842 if test "x$ac_ct_AR" = x; then 7843 AR="" 7844 else 7845 case $cross_compiling:$ac_tool_warned in 7846yes:) 7847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7849ac_tool_warned=yes ;; 7850esac 7851 AR=$ac_ct_AR 7852 fi 7853else 7854 AR="$ac_cv_prog_AR" 7855fi 7856 7857 7858rm -f os-proto.h 7859 # 7860 # MKDEP defaults to no-op (":") if we don't test whether the compiler 7861 # supports generating dependencies 7862 # 7863 MKDEP=: 7864 if test "${LBL_CFLAGS+set}" = set; then 7865 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}" 7866 fi 7867 if test -f .devel ; then 7868 # 7869 # Skip all the warning option stuff on some compilers. 7870 # 7871 if test "$ac_lbl_cc_dont_try_gcc_dashW" != yes; then 7872 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -W option" >&5 7874printf %s "checking whether the compiler supports the -W option... " >&6; } 7875 save_CFLAGS="$CFLAGS" 7876 CFLAGS="$CFLAGS -W" 7877 # 7878 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7879 # but no mechanism is provided to turn AC_LANG_WERROR on 7880 # *and then turn it back off*, so that we *only* do it when 7881 # testing compiler options - 15 years after somebody asked 7882 # for it: 7883 # 7884 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7885 # 7886 save_ac_c_werror_flag="$ac_c_werror_flag" 7887 ac_c_werror_flag=yes 7888 # 7889 # We use AC_LANG_SOURCE() so that we can control the complete 7890 # content of the program being compiled. We do not, for example, 7891 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7892 # as it will generate a warning with -Wold-style-definition, meaning 7893 # that we would treat it as not working, as the test will fail if 7894 # *any* error output, including a warning due to the flag we're 7895 # testing, is generated; see 7896 # 7897 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7898 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7899 # 7900 # This may, as per those two messages, be fixed in autoconf 2.70, 7901 # but we only require 2.69 or newer for now. 7902 # 7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904/* end confdefs.h. */ 7905int main(void) { return 0; } 7906_ACEOF 7907if ac_fn_c_try_compile "$LINENO" 7908then : 7909 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7911printf "%s\n" "yes" >&6; } 7912 CFLAGS="$save_CFLAGS" 7913 V_CCOPT="$V_CCOPT -W" 7914 7915else $as_nop 7916 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7918printf "%s\n" "no" >&6; } 7919 CFLAGS="$save_CFLAGS" 7920 7921fi 7922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7923 ac_c_werror_flag="$save_ac_c_werror_flag" 7924 7925 7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wall option" >&5 7927printf %s "checking whether the compiler supports the -Wall option... " >&6; } 7928 save_CFLAGS="$CFLAGS" 7929 CFLAGS="$CFLAGS -Wall" 7930 # 7931 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7932 # but no mechanism is provided to turn AC_LANG_WERROR on 7933 # *and then turn it back off*, so that we *only* do it when 7934 # testing compiler options - 15 years after somebody asked 7935 # for it: 7936 # 7937 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7938 # 7939 save_ac_c_werror_flag="$ac_c_werror_flag" 7940 ac_c_werror_flag=yes 7941 # 7942 # We use AC_LANG_SOURCE() so that we can control the complete 7943 # content of the program being compiled. We do not, for example, 7944 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7945 # as it will generate a warning with -Wold-style-definition, meaning 7946 # that we would treat it as not working, as the test will fail if 7947 # *any* error output, including a warning due to the flag we're 7948 # testing, is generated; see 7949 # 7950 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7951 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 7952 # 7953 # This may, as per those two messages, be fixed in autoconf 2.70, 7954 # but we only require 2.69 or newer for now. 7955 # 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957/* end confdefs.h. */ 7958int main(void) { return 0; } 7959_ACEOF 7960if ac_fn_c_try_compile "$LINENO" 7961then : 7962 7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7964printf "%s\n" "yes" >&6; } 7965 CFLAGS="$save_CFLAGS" 7966 V_CCOPT="$V_CCOPT -Wall" 7967 7968else $as_nop 7969 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971printf "%s\n" "no" >&6; } 7972 CFLAGS="$save_CFLAGS" 7973 7974fi 7975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7976 ac_c_werror_flag="$save_ac_c_werror_flag" 7977 7978 7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wassign-enum option" >&5 7980printf %s "checking whether the compiler supports the -Wassign-enum option... " >&6; } 7981 save_CFLAGS="$CFLAGS" 7982 CFLAGS="$CFLAGS -Wassign-enum" 7983 # 7984 # XXX - yes, this depends on the way AC_LANG_WERROR works, 7985 # but no mechanism is provided to turn AC_LANG_WERROR on 7986 # *and then turn it back off*, so that we *only* do it when 7987 # testing compiler options - 15 years after somebody asked 7988 # for it: 7989 # 7990 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 7991 # 7992 save_ac_c_werror_flag="$ac_c_werror_flag" 7993 ac_c_werror_flag=yes 7994 # 7995 # We use AC_LANG_SOURCE() so that we can control the complete 7996 # content of the program being compiled. We do not, for example, 7997 # want the default "int main()" that AC_LANG_PROGRAM() generates, 7998 # as it will generate a warning with -Wold-style-definition, meaning 7999 # that we would treat it as not working, as the test will fail if 8000 # *any* error output, including a warning due to the flag we're 8001 # testing, is generated; see 8002 # 8003 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8004 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8005 # 8006 # This may, as per those two messages, be fixed in autoconf 2.70, 8007 # but we only require 2.69 or newer for now. 8008 # 8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8010/* end confdefs.h. */ 8011int main(void) { return 0; } 8012_ACEOF 8013if ac_fn_c_try_compile "$LINENO" 8014then : 8015 8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8017printf "%s\n" "yes" >&6; } 8018 CFLAGS="$save_CFLAGS" 8019 V_CCOPT="$V_CCOPT -Wassign-enum" 8020 8021else $as_nop 8022 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8024printf "%s\n" "no" >&6; } 8025 CFLAGS="$save_CFLAGS" 8026 8027fi 8028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8029 ac_c_werror_flag="$save_ac_c_werror_flag" 8030 8031 8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcast-qual option" >&5 8033printf %s "checking whether the compiler supports the -Wcast-qual option... " >&6; } 8034 save_CFLAGS="$CFLAGS" 8035 CFLAGS="$CFLAGS -Wcast-qual" 8036 # 8037 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8038 # but no mechanism is provided to turn AC_LANG_WERROR on 8039 # *and then turn it back off*, so that we *only* do it when 8040 # testing compiler options - 15 years after somebody asked 8041 # for it: 8042 # 8043 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8044 # 8045 save_ac_c_werror_flag="$ac_c_werror_flag" 8046 ac_c_werror_flag=yes 8047 # 8048 # We use AC_LANG_SOURCE() so that we can control the complete 8049 # content of the program being compiled. We do not, for example, 8050 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8051 # as it will generate a warning with -Wold-style-definition, meaning 8052 # that we would treat it as not working, as the test will fail if 8053 # *any* error output, including a warning due to the flag we're 8054 # testing, is generated; see 8055 # 8056 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8057 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8058 # 8059 # This may, as per those two messages, be fixed in autoconf 2.70, 8060 # but we only require 2.69 or newer for now. 8061 # 8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8063/* end confdefs.h. */ 8064int main(void) { return 0; } 8065_ACEOF 8066if ac_fn_c_try_compile "$LINENO" 8067then : 8068 8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8070printf "%s\n" "yes" >&6; } 8071 CFLAGS="$save_CFLAGS" 8072 V_CCOPT="$V_CCOPT -Wcast-qual" 8073 8074else $as_nop 8075 8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8077printf "%s\n" "no" >&6; } 8078 CFLAGS="$save_CFLAGS" 8079 8080fi 8081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8082 ac_c_werror_flag="$save_ac_c_werror_flag" 8083 8084 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wcomma option" >&5 8086printf %s "checking whether the compiler supports the -Wcomma option... " >&6; } 8087 save_CFLAGS="$CFLAGS" 8088 CFLAGS="$CFLAGS -Wcomma" 8089 # 8090 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8091 # but no mechanism is provided to turn AC_LANG_WERROR on 8092 # *and then turn it back off*, so that we *only* do it when 8093 # testing compiler options - 15 years after somebody asked 8094 # for it: 8095 # 8096 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8097 # 8098 save_ac_c_werror_flag="$ac_c_werror_flag" 8099 ac_c_werror_flag=yes 8100 # 8101 # We use AC_LANG_SOURCE() so that we can control the complete 8102 # content of the program being compiled. We do not, for example, 8103 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8104 # as it will generate a warning with -Wold-style-definition, meaning 8105 # that we would treat it as not working, as the test will fail if 8106 # *any* error output, including a warning due to the flag we're 8107 # testing, is generated; see 8108 # 8109 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8110 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8111 # 8112 # This may, as per those two messages, be fixed in autoconf 2.70, 8113 # but we only require 2.69 or newer for now. 8114 # 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117int main(void) { return 0; } 8118_ACEOF 8119if ac_fn_c_try_compile "$LINENO" 8120then : 8121 8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8123printf "%s\n" "yes" >&6; } 8124 CFLAGS="$save_CFLAGS" 8125 V_CCOPT="$V_CCOPT -Wcomma" 8126 8127else $as_nop 8128 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8130printf "%s\n" "no" >&6; } 8131 CFLAGS="$save_CFLAGS" 8132 8133fi 8134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8135 ac_c_werror_flag="$save_ac_c_werror_flag" 8136 8137 8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-prototypes option" >&5 8139printf %s "checking whether the compiler supports the -Wmissing-prototypes option... " >&6; } 8140 save_CFLAGS="$CFLAGS" 8141 CFLAGS="$CFLAGS -Wmissing-prototypes" 8142 # 8143 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8144 # but no mechanism is provided to turn AC_LANG_WERROR on 8145 # *and then turn it back off*, so that we *only* do it when 8146 # testing compiler options - 15 years after somebody asked 8147 # for it: 8148 # 8149 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8150 # 8151 save_ac_c_werror_flag="$ac_c_werror_flag" 8152 ac_c_werror_flag=yes 8153 # 8154 # We use AC_LANG_SOURCE() so that we can control the complete 8155 # content of the program being compiled. We do not, for example, 8156 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8157 # as it will generate a warning with -Wold-style-definition, meaning 8158 # that we would treat it as not working, as the test will fail if 8159 # *any* error output, including a warning due to the flag we're 8160 # testing, is generated; see 8161 # 8162 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8163 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8164 # 8165 # This may, as per those two messages, be fixed in autoconf 2.70, 8166 # but we only require 2.69 or newer for now. 8167 # 8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169/* end confdefs.h. */ 8170int main(void) { return 0; } 8171_ACEOF 8172if ac_fn_c_try_compile "$LINENO" 8173then : 8174 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8176printf "%s\n" "yes" >&6; } 8177 CFLAGS="$save_CFLAGS" 8178 V_CCOPT="$V_CCOPT -Wmissing-prototypes" 8179 8180else $as_nop 8181 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8183printf "%s\n" "no" >&6; } 8184 CFLAGS="$save_CFLAGS" 8185 8186fi 8187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8188 ac_c_werror_flag="$save_ac_c_werror_flag" 8189 8190 8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wmissing-variable-declarations option" >&5 8192printf %s "checking whether the compiler supports the -Wmissing-variable-declarations option... " >&6; } 8193 save_CFLAGS="$CFLAGS" 8194 CFLAGS="$CFLAGS -Wmissing-variable-declarations" 8195 # 8196 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8197 # but no mechanism is provided to turn AC_LANG_WERROR on 8198 # *and then turn it back off*, so that we *only* do it when 8199 # testing compiler options - 15 years after somebody asked 8200 # for it: 8201 # 8202 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8203 # 8204 save_ac_c_werror_flag="$ac_c_werror_flag" 8205 ac_c_werror_flag=yes 8206 # 8207 # We use AC_LANG_SOURCE() so that we can control the complete 8208 # content of the program being compiled. We do not, for example, 8209 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8210 # as it will generate a warning with -Wold-style-definition, meaning 8211 # that we would treat it as not working, as the test will fail if 8212 # *any* error output, including a warning due to the flag we're 8213 # testing, is generated; see 8214 # 8215 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8216 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8217 # 8218 # This may, as per those two messages, be fixed in autoconf 2.70, 8219 # but we only require 2.69 or newer for now. 8220 # 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223int main(void) { return 0; } 8224_ACEOF 8225if ac_fn_c_try_compile "$LINENO" 8226then : 8227 8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8229printf "%s\n" "yes" >&6; } 8230 CFLAGS="$save_CFLAGS" 8231 V_CCOPT="$V_CCOPT -Wmissing-variable-declarations" 8232 8233else $as_nop 8234 8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8236printf "%s\n" "no" >&6; } 8237 CFLAGS="$save_CFLAGS" 8238 8239fi 8240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8241 ac_c_werror_flag="$save_ac_c_werror_flag" 8242 8243 8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wnull-pointer-subtraction option" >&5 8245printf %s "checking whether the compiler supports the -Wnull-pointer-subtraction option... " >&6; } 8246 save_CFLAGS="$CFLAGS" 8247 CFLAGS="$CFLAGS -Wnull-pointer-subtraction" 8248 # 8249 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8250 # but no mechanism is provided to turn AC_LANG_WERROR on 8251 # *and then turn it back off*, so that we *only* do it when 8252 # testing compiler options - 15 years after somebody asked 8253 # for it: 8254 # 8255 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8256 # 8257 save_ac_c_werror_flag="$ac_c_werror_flag" 8258 ac_c_werror_flag=yes 8259 # 8260 # We use AC_LANG_SOURCE() so that we can control the complete 8261 # content of the program being compiled. We do not, for example, 8262 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8263 # as it will generate a warning with -Wold-style-definition, meaning 8264 # that we would treat it as not working, as the test will fail if 8265 # *any* error output, including a warning due to the flag we're 8266 # testing, is generated; see 8267 # 8268 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8269 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8270 # 8271 # This may, as per those two messages, be fixed in autoconf 2.70, 8272 # but we only require 2.69 or newer for now. 8273 # 8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8275/* end confdefs.h. */ 8276int main(void) { return 0; } 8277_ACEOF 8278if ac_fn_c_try_compile "$LINENO" 8279then : 8280 8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8282printf "%s\n" "yes" >&6; } 8283 CFLAGS="$save_CFLAGS" 8284 V_CCOPT="$V_CCOPT -Wnull-pointer-subtraction" 8285 8286else $as_nop 8287 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8289printf "%s\n" "no" >&6; } 8290 CFLAGS="$save_CFLAGS" 8291 8292fi 8293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8294 ac_c_werror_flag="$save_ac_c_werror_flag" 8295 8296 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wold-style-definition option" >&5 8298printf %s "checking whether the compiler supports the -Wold-style-definition option... " >&6; } 8299 save_CFLAGS="$CFLAGS" 8300 CFLAGS="$CFLAGS -Wold-style-definition" 8301 # 8302 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8303 # but no mechanism is provided to turn AC_LANG_WERROR on 8304 # *and then turn it back off*, so that we *only* do it when 8305 # testing compiler options - 15 years after somebody asked 8306 # for it: 8307 # 8308 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8309 # 8310 save_ac_c_werror_flag="$ac_c_werror_flag" 8311 ac_c_werror_flag=yes 8312 # 8313 # We use AC_LANG_SOURCE() so that we can control the complete 8314 # content of the program being compiled. We do not, for example, 8315 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8316 # as it will generate a warning with -Wold-style-definition, meaning 8317 # that we would treat it as not working, as the test will fail if 8318 # *any* error output, including a warning due to the flag we're 8319 # testing, is generated; see 8320 # 8321 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8322 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8323 # 8324 # This may, as per those two messages, be fixed in autoconf 2.70, 8325 # but we only require 2.69 or newer for now. 8326 # 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329int main(void) { return 0; } 8330_ACEOF 8331if ac_fn_c_try_compile "$LINENO" 8332then : 8333 8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8335printf "%s\n" "yes" >&6; } 8336 CFLAGS="$save_CFLAGS" 8337 V_CCOPT="$V_CCOPT -Wold-style-definition" 8338 8339else $as_nop 8340 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8342printf "%s\n" "no" >&6; } 8343 CFLAGS="$save_CFLAGS" 8344 8345fi 8346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8347 ac_c_werror_flag="$save_ac_c_werror_flag" 8348 8349 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpedantic option" >&5 8351printf %s "checking whether the compiler supports the -Wpedantic option... " >&6; } 8352 save_CFLAGS="$CFLAGS" 8353 CFLAGS="$CFLAGS -Wpedantic" 8354 # 8355 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8356 # but no mechanism is provided to turn AC_LANG_WERROR on 8357 # *and then turn it back off*, so that we *only* do it when 8358 # testing compiler options - 15 years after somebody asked 8359 # for it: 8360 # 8361 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8362 # 8363 save_ac_c_werror_flag="$ac_c_werror_flag" 8364 ac_c_werror_flag=yes 8365 # 8366 # We use AC_LANG_SOURCE() so that we can control the complete 8367 # content of the program being compiled. We do not, for example, 8368 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8369 # as it will generate a warning with -Wold-style-definition, meaning 8370 # that we would treat it as not working, as the test will fail if 8371 # *any* error output, including a warning due to the flag we're 8372 # testing, is generated; see 8373 # 8374 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8375 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8376 # 8377 # This may, as per those two messages, be fixed in autoconf 2.70, 8378 # but we only require 2.69 or newer for now. 8379 # 8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8381/* end confdefs.h. */ 8382int main(void) { return 0; } 8383_ACEOF 8384if ac_fn_c_try_compile "$LINENO" 8385then : 8386 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8388printf "%s\n" "yes" >&6; } 8389 CFLAGS="$save_CFLAGS" 8390 V_CCOPT="$V_CCOPT -Wpedantic" 8391 8392else $as_nop 8393 8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8395printf "%s\n" "no" >&6; } 8396 CFLAGS="$save_CFLAGS" 8397 8398fi 8399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8400 ac_c_werror_flag="$save_ac_c_werror_flag" 8401 8402 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-arith option" >&5 8404printf %s "checking whether the compiler supports the -Wpointer-arith option... " >&6; } 8405 save_CFLAGS="$CFLAGS" 8406 CFLAGS="$CFLAGS -Wpointer-arith" 8407 # 8408 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8409 # but no mechanism is provided to turn AC_LANG_WERROR on 8410 # *and then turn it back off*, so that we *only* do it when 8411 # testing compiler options - 15 years after somebody asked 8412 # for it: 8413 # 8414 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8415 # 8416 save_ac_c_werror_flag="$ac_c_werror_flag" 8417 ac_c_werror_flag=yes 8418 # 8419 # We use AC_LANG_SOURCE() so that we can control the complete 8420 # content of the program being compiled. We do not, for example, 8421 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8422 # as it will generate a warning with -Wold-style-definition, meaning 8423 # that we would treat it as not working, as the test will fail if 8424 # *any* error output, including a warning due to the flag we're 8425 # testing, is generated; see 8426 # 8427 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8428 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8429 # 8430 # This may, as per those two messages, be fixed in autoconf 2.70, 8431 # but we only require 2.69 or newer for now. 8432 # 8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8434/* end confdefs.h. */ 8435int main(void) { return 0; } 8436_ACEOF 8437if ac_fn_c_try_compile "$LINENO" 8438then : 8439 8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8441printf "%s\n" "yes" >&6; } 8442 CFLAGS="$save_CFLAGS" 8443 V_CCOPT="$V_CCOPT -Wpointer-arith" 8444 8445else $as_nop 8446 8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8448printf "%s\n" "no" >&6; } 8449 CFLAGS="$save_CFLAGS" 8450 8451fi 8452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8453 ac_c_werror_flag="$save_ac_c_werror_flag" 8454 8455 8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wpointer-sign option" >&5 8457printf %s "checking whether the compiler supports the -Wpointer-sign option... " >&6; } 8458 save_CFLAGS="$CFLAGS" 8459 CFLAGS="$CFLAGS -Wpointer-sign" 8460 # 8461 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8462 # but no mechanism is provided to turn AC_LANG_WERROR on 8463 # *and then turn it back off*, so that we *only* do it when 8464 # testing compiler options - 15 years after somebody asked 8465 # for it: 8466 # 8467 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8468 # 8469 save_ac_c_werror_flag="$ac_c_werror_flag" 8470 ac_c_werror_flag=yes 8471 # 8472 # We use AC_LANG_SOURCE() so that we can control the complete 8473 # content of the program being compiled. We do not, for example, 8474 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8475 # as it will generate a warning with -Wold-style-definition, meaning 8476 # that we would treat it as not working, as the test will fail if 8477 # *any* error output, including a warning due to the flag we're 8478 # testing, is generated; see 8479 # 8480 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8481 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8482 # 8483 # This may, as per those two messages, be fixed in autoconf 2.70, 8484 # but we only require 2.69 or newer for now. 8485 # 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488int main(void) { return 0; } 8489_ACEOF 8490if ac_fn_c_try_compile "$LINENO" 8491then : 8492 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8494printf "%s\n" "yes" >&6; } 8495 CFLAGS="$save_CFLAGS" 8496 V_CCOPT="$V_CCOPT -Wpointer-sign" 8497 8498else $as_nop 8499 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501printf "%s\n" "no" >&6; } 8502 CFLAGS="$save_CFLAGS" 8503 8504fi 8505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8506 ac_c_werror_flag="$save_ac_c_werror_flag" 8507 8508 8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wshadow option" >&5 8510printf %s "checking whether the compiler supports the -Wshadow option... " >&6; } 8511 save_CFLAGS="$CFLAGS" 8512 CFLAGS="$CFLAGS -Wshadow" 8513 # 8514 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8515 # but no mechanism is provided to turn AC_LANG_WERROR on 8516 # *and then turn it back off*, so that we *only* do it when 8517 # testing compiler options - 15 years after somebody asked 8518 # for it: 8519 # 8520 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8521 # 8522 save_ac_c_werror_flag="$ac_c_werror_flag" 8523 ac_c_werror_flag=yes 8524 # 8525 # We use AC_LANG_SOURCE() so that we can control the complete 8526 # content of the program being compiled. We do not, for example, 8527 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8528 # as it will generate a warning with -Wold-style-definition, meaning 8529 # that we would treat it as not working, as the test will fail if 8530 # *any* error output, including a warning due to the flag we're 8531 # testing, is generated; see 8532 # 8533 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8534 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8535 # 8536 # This may, as per those two messages, be fixed in autoconf 2.70, 8537 # but we only require 2.69 or newer for now. 8538 # 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541int main(void) { return 0; } 8542_ACEOF 8543if ac_fn_c_try_compile "$LINENO" 8544then : 8545 8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8547printf "%s\n" "yes" >&6; } 8548 CFLAGS="$save_CFLAGS" 8549 V_CCOPT="$V_CCOPT -Wshadow" 8550 8551else $as_nop 8552 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8554printf "%s\n" "no" >&6; } 8555 CFLAGS="$save_CFLAGS" 8556 8557fi 8558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8559 ac_c_werror_flag="$save_ac_c_werror_flag" 8560 8561 8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wsign-compare option" >&5 8563printf %s "checking whether the compiler supports the -Wsign-compare option... " >&6; } 8564 save_CFLAGS="$CFLAGS" 8565 CFLAGS="$CFLAGS -Wsign-compare" 8566 # 8567 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8568 # but no mechanism is provided to turn AC_LANG_WERROR on 8569 # *and then turn it back off*, so that we *only* do it when 8570 # testing compiler options - 15 years after somebody asked 8571 # for it: 8572 # 8573 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8574 # 8575 save_ac_c_werror_flag="$ac_c_werror_flag" 8576 ac_c_werror_flag=yes 8577 # 8578 # We use AC_LANG_SOURCE() so that we can control the complete 8579 # content of the program being compiled. We do not, for example, 8580 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8581 # as it will generate a warning with -Wold-style-definition, meaning 8582 # that we would treat it as not working, as the test will fail if 8583 # *any* error output, including a warning due to the flag we're 8584 # testing, is generated; see 8585 # 8586 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8587 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8588 # 8589 # This may, as per those two messages, be fixed in autoconf 2.70, 8590 # but we only require 2.69 or newer for now. 8591 # 8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8593/* end confdefs.h. */ 8594int main(void) { return 0; } 8595_ACEOF 8596if ac_fn_c_try_compile "$LINENO" 8597then : 8598 8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8600printf "%s\n" "yes" >&6; } 8601 CFLAGS="$save_CFLAGS" 8602 V_CCOPT="$V_CCOPT -Wsign-compare" 8603 8604else $as_nop 8605 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8607printf "%s\n" "no" >&6; } 8608 CFLAGS="$save_CFLAGS" 8609 8610fi 8611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8612 ac_c_werror_flag="$save_ac_c_werror_flag" 8613 8614 8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wstrict-prototypes option" >&5 8616printf %s "checking whether the compiler supports the -Wstrict-prototypes option... " >&6; } 8617 save_CFLAGS="$CFLAGS" 8618 CFLAGS="$CFLAGS -Wstrict-prototypes" 8619 # 8620 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8621 # but no mechanism is provided to turn AC_LANG_WERROR on 8622 # *and then turn it back off*, so that we *only* do it when 8623 # testing compiler options - 15 years after somebody asked 8624 # for it: 8625 # 8626 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8627 # 8628 save_ac_c_werror_flag="$ac_c_werror_flag" 8629 ac_c_werror_flag=yes 8630 # 8631 # We use AC_LANG_SOURCE() so that we can control the complete 8632 # content of the program being compiled. We do not, for example, 8633 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8634 # as it will generate a warning with -Wold-style-definition, meaning 8635 # that we would treat it as not working, as the test will fail if 8636 # *any* error output, including a warning due to the flag we're 8637 # testing, is generated; see 8638 # 8639 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8640 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8641 # 8642 # This may, as per those two messages, be fixed in autoconf 2.70, 8643 # but we only require 2.69 or newer for now. 8644 # 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646/* end confdefs.h. */ 8647int main(void) { return 0; } 8648_ACEOF 8649if ac_fn_c_try_compile "$LINENO" 8650then : 8651 8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8653printf "%s\n" "yes" >&6; } 8654 CFLAGS="$save_CFLAGS" 8655 V_CCOPT="$V_CCOPT -Wstrict-prototypes" 8656 8657else $as_nop 8658 8659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660printf "%s\n" "no" >&6; } 8661 CFLAGS="$save_CFLAGS" 8662 8663fi 8664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8665 ac_c_werror_flag="$save_ac_c_werror_flag" 8666 8667 8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wundef option" >&5 8669printf %s "checking whether the compiler supports the -Wundef option... " >&6; } 8670 save_CFLAGS="$CFLAGS" 8671 CFLAGS="$CFLAGS -Wundef" 8672 # 8673 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8674 # but no mechanism is provided to turn AC_LANG_WERROR on 8675 # *and then turn it back off*, so that we *only* do it when 8676 # testing compiler options - 15 years after somebody asked 8677 # for it: 8678 # 8679 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8680 # 8681 save_ac_c_werror_flag="$ac_c_werror_flag" 8682 ac_c_werror_flag=yes 8683 # 8684 # We use AC_LANG_SOURCE() so that we can control the complete 8685 # content of the program being compiled. We do not, for example, 8686 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8687 # as it will generate a warning with -Wold-style-definition, meaning 8688 # that we would treat it as not working, as the test will fail if 8689 # *any* error output, including a warning due to the flag we're 8690 # testing, is generated; see 8691 # 8692 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8693 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8694 # 8695 # This may, as per those two messages, be fixed in autoconf 2.70, 8696 # but we only require 2.69 or newer for now. 8697 # 8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8699/* end confdefs.h. */ 8700int main(void) { return 0; } 8701_ACEOF 8702if ac_fn_c_try_compile "$LINENO" 8703then : 8704 8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8706printf "%s\n" "yes" >&6; } 8707 CFLAGS="$save_CFLAGS" 8708 V_CCOPT="$V_CCOPT -Wundef" 8709 8710else $as_nop 8711 8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8713printf "%s\n" "no" >&6; } 8714 CFLAGS="$save_CFLAGS" 8715 8716fi 8717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8718 ac_c_werror_flag="$save_ac_c_werror_flag" 8719 8720 8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunreachable-code-return option" >&5 8722printf %s "checking whether the compiler supports the -Wunreachable-code-return option... " >&6; } 8723 save_CFLAGS="$CFLAGS" 8724 CFLAGS="$CFLAGS -Wunreachable-code-return" 8725 # 8726 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8727 # but no mechanism is provided to turn AC_LANG_WERROR on 8728 # *and then turn it back off*, so that we *only* do it when 8729 # testing compiler options - 15 years after somebody asked 8730 # for it: 8731 # 8732 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8733 # 8734 save_ac_c_werror_flag="$ac_c_werror_flag" 8735 ac_c_werror_flag=yes 8736 # 8737 # We use AC_LANG_SOURCE() so that we can control the complete 8738 # content of the program being compiled. We do not, for example, 8739 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8740 # as it will generate a warning with -Wold-style-definition, meaning 8741 # that we would treat it as not working, as the test will fail if 8742 # *any* error output, including a warning due to the flag we're 8743 # testing, is generated; see 8744 # 8745 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8746 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8747 # 8748 # This may, as per those two messages, be fixed in autoconf 2.70, 8749 # but we only require 2.69 or newer for now. 8750 # 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8752/* end confdefs.h. */ 8753int main(void) { return 0; } 8754_ACEOF 8755if ac_fn_c_try_compile "$LINENO" 8756then : 8757 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8759printf "%s\n" "yes" >&6; } 8760 CFLAGS="$save_CFLAGS" 8761 V_CCOPT="$V_CCOPT -Wunreachable-code-return" 8762 8763else $as_nop 8764 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8766printf "%s\n" "no" >&6; } 8767 CFLAGS="$save_CFLAGS" 8768 8769fi 8770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8771 ac_c_werror_flag="$save_ac_c_werror_flag" 8772 8773 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-parameter option" >&5 8775printf %s "checking whether the compiler supports the -Wunused-but-set-parameter option... " >&6; } 8776 save_CFLAGS="$CFLAGS" 8777 CFLAGS="$CFLAGS -Wunused-but-set-parameter" 8778 # 8779 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8780 # but no mechanism is provided to turn AC_LANG_WERROR on 8781 # *and then turn it back off*, so that we *only* do it when 8782 # testing compiler options - 15 years after somebody asked 8783 # for it: 8784 # 8785 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8786 # 8787 save_ac_c_werror_flag="$ac_c_werror_flag" 8788 ac_c_werror_flag=yes 8789 # 8790 # We use AC_LANG_SOURCE() so that we can control the complete 8791 # content of the program being compiled. We do not, for example, 8792 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8793 # as it will generate a warning with -Wold-style-definition, meaning 8794 # that we would treat it as not working, as the test will fail if 8795 # *any* error output, including a warning due to the flag we're 8796 # testing, is generated; see 8797 # 8798 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8799 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8800 # 8801 # This may, as per those two messages, be fixed in autoconf 2.70, 8802 # but we only require 2.69 or newer for now. 8803 # 8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8805/* end confdefs.h. */ 8806int main(void) { return 0; } 8807_ACEOF 8808if ac_fn_c_try_compile "$LINENO" 8809then : 8810 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8812printf "%s\n" "yes" >&6; } 8813 CFLAGS="$save_CFLAGS" 8814 V_CCOPT="$V_CCOPT -Wunused-but-set-parameter" 8815 8816else $as_nop 8817 8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8819printf "%s\n" "no" >&6; } 8820 CFLAGS="$save_CFLAGS" 8821 8822fi 8823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8824 ac_c_werror_flag="$save_ac_c_werror_flag" 8825 8826 8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wunused-but-set-variable option" >&5 8828printf %s "checking whether the compiler supports the -Wunused-but-set-variable option... " >&6; } 8829 save_CFLAGS="$CFLAGS" 8830 CFLAGS="$CFLAGS -Wunused-but-set-variable" 8831 # 8832 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8833 # but no mechanism is provided to turn AC_LANG_WERROR on 8834 # *and then turn it back off*, so that we *only* do it when 8835 # testing compiler options - 15 years after somebody asked 8836 # for it: 8837 # 8838 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8839 # 8840 save_ac_c_werror_flag="$ac_c_werror_flag" 8841 ac_c_werror_flag=yes 8842 # 8843 # We use AC_LANG_SOURCE() so that we can control the complete 8844 # content of the program being compiled. We do not, for example, 8845 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8846 # as it will generate a warning with -Wold-style-definition, meaning 8847 # that we would treat it as not working, as the test will fail if 8848 # *any* error output, including a warning due to the flag we're 8849 # testing, is generated; see 8850 # 8851 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8852 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8853 # 8854 # This may, as per those two messages, be fixed in autoconf 2.70, 8855 # but we only require 2.69 or newer for now. 8856 # 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858/* end confdefs.h. */ 8859int main(void) { return 0; } 8860_ACEOF 8861if ac_fn_c_try_compile "$LINENO" 8862then : 8863 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8865printf "%s\n" "yes" >&6; } 8866 CFLAGS="$save_CFLAGS" 8867 V_CCOPT="$V_CCOPT -Wunused-but-set-variable" 8868 8869else $as_nop 8870 8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8872printf "%s\n" "no" >&6; } 8873 CFLAGS="$save_CFLAGS" 8874 8875fi 8876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8877 ac_c_werror_flag="$save_ac_c_werror_flag" 8878 8879 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wused-but-marked-unused option" >&5 8881printf %s "checking whether the compiler supports the -Wused-but-marked-unused option... " >&6; } 8882 save_CFLAGS="$CFLAGS" 8883 CFLAGS="$CFLAGS -Wused-but-marked-unused" 8884 # 8885 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8886 # but no mechanism is provided to turn AC_LANG_WERROR on 8887 # *and then turn it back off*, so that we *only* do it when 8888 # testing compiler options - 15 years after somebody asked 8889 # for it: 8890 # 8891 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8892 # 8893 save_ac_c_werror_flag="$ac_c_werror_flag" 8894 ac_c_werror_flag=yes 8895 # 8896 # We use AC_LANG_SOURCE() so that we can control the complete 8897 # content of the program being compiled. We do not, for example, 8898 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8899 # as it will generate a warning with -Wold-style-definition, meaning 8900 # that we would treat it as not working, as the test will fail if 8901 # *any* error output, including a warning due to the flag we're 8902 # testing, is generated; see 8903 # 8904 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8905 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8906 # 8907 # This may, as per those two messages, be fixed in autoconf 2.70, 8908 # but we only require 2.69 or newer for now. 8909 # 8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8911/* end confdefs.h. */ 8912int main(void) { return 0; } 8913_ACEOF 8914if ac_fn_c_try_compile "$LINENO" 8915then : 8916 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8918printf "%s\n" "yes" >&6; } 8919 CFLAGS="$save_CFLAGS" 8920 V_CCOPT="$V_CCOPT -Wused-but-marked-unused" 8921 8922else $as_nop 8923 8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8925printf "%s\n" "no" >&6; } 8926 CFLAGS="$save_CFLAGS" 8927 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8930 ac_c_werror_flag="$save_ac_c_werror_flag" 8931 8932 8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the -Wwrite-strings option" >&5 8934printf %s "checking whether the compiler supports the -Wwrite-strings option... " >&6; } 8935 save_CFLAGS="$CFLAGS" 8936 CFLAGS="$CFLAGS -Wwrite-strings" 8937 # 8938 # XXX - yes, this depends on the way AC_LANG_WERROR works, 8939 # but no mechanism is provided to turn AC_LANG_WERROR on 8940 # *and then turn it back off*, so that we *only* do it when 8941 # testing compiler options - 15 years after somebody asked 8942 # for it: 8943 # 8944 # https://autoconf.gnu.narkive.com/gTAVmfKD/how-to-cancel-flags-set-by-ac-lang-werror 8945 # 8946 save_ac_c_werror_flag="$ac_c_werror_flag" 8947 ac_c_werror_flag=yes 8948 # 8949 # We use AC_LANG_SOURCE() so that we can control the complete 8950 # content of the program being compiled. We do not, for example, 8951 # want the default "int main()" that AC_LANG_PROGRAM() generates, 8952 # as it will generate a warning with -Wold-style-definition, meaning 8953 # that we would treat it as not working, as the test will fail if 8954 # *any* error output, including a warning due to the flag we're 8955 # testing, is generated; see 8956 # 8957 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8958 # https://www.postgresql.org/message-id/2192993.1591682589%40sss.pgh.pa.us 8959 # 8960 # This may, as per those two messages, be fixed in autoconf 2.70, 8961 # but we only require 2.69 or newer for now. 8962 # 8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964/* end confdefs.h. */ 8965int main(void) { return 0; } 8966_ACEOF 8967if ac_fn_c_try_compile "$LINENO" 8968then : 8969 8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8971printf "%s\n" "yes" >&6; } 8972 CFLAGS="$save_CFLAGS" 8973 V_CCOPT="$V_CCOPT -Wwrite-strings" 8974 8975else $as_nop 8976 8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8978printf "%s\n" "no" >&6; } 8979 CFLAGS="$save_CFLAGS" 8980 8981fi 8982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8983 ac_c_werror_flag="$save_ac_c_werror_flag" 8984 8985 fi 8986 8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports generating dependencies" >&5 8988printf %s "checking whether the compiler supports generating dependencies... " >&6; } 8989 if test "$GCC" = yes ; then 8990 # 8991 # GCC, or a compiler deemed to be GCC by AC_PROG_CC (even 8992 # though it's not); we assume that, in this case, the flag 8993 # would be -M. 8994 # 8995 ac_lbl_dependency_flag="-M" 8996 else 8997 # 8998 # Not GCC or a compiler deemed to be GCC; what platform is 8999 # this? (We're assuming that if the compiler isn't GCC 9000 # it's the compiler from the vendor of the OS; that won't 9001 # necessarily be true for x86 platforms, where it might be 9002 # the Intel C compiler.) 9003 # 9004 case "$host_os" in 9005 9006 irix*|osf*|darwin*) 9007 # 9008 # MIPS C for IRIX, DEC C, and clang all use -M. 9009 # 9010 ac_lbl_dependency_flag="-M" 9011 ;; 9012 9013 solaris*) 9014 # 9015 # Sun C uses -xM. 9016 # 9017 ac_lbl_dependency_flag="-xM" 9018 ;; 9019 9020 hpux*) 9021 # 9022 # HP's older C compilers don't support this. 9023 # HP's newer C compilers support this with 9024 # either +M or +Make; the older compilers 9025 # interpret +M as something completely 9026 # different, so we use +Make so we don't 9027 # think it works with the older compilers. 9028 # 9029 ac_lbl_dependency_flag="+Make" 9030 ;; 9031 9032 *) 9033 # 9034 # Not one of the above; assume no support for 9035 # generating dependencies. 9036 # 9037 ac_lbl_dependency_flag="" 9038 ;; 9039 esac 9040 fi 9041 9042 # 9043 # Is ac_lbl_dependency_flag defined and, if so, does the compiler 9044 # complain about it? 9045 # 9046 # Note: clang doesn't seem to exit with an error status when handed 9047 # an unknown non-warning error, even if you pass it 9048 # -Werror=unknown-warning-option. However, it always supports 9049 # -M, so the fact that this test always succeeds with clang 9050 # isn't an issue. 9051 # 9052 if test ! -z "$ac_lbl_dependency_flag"; then 9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054/* end confdefs.h. */ 9055int main(void) { return 0; } 9056_ACEOF 9057 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: eval \"\$CC \$ac_lbl_dependency_flag conftest.c >/dev/null 2>&1\""; } >&5 9058 (eval "$CC $ac_lbl_dependency_flag conftest.c >/dev/null 2>&1") 2>&5 9059 ac_status=$? 9060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9061 test $ac_status = 0; }; then 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with $ac_lbl_dependency_flag" >&5 9063printf "%s\n" "yes, with $ac_lbl_dependency_flag" >&6; } 9064 DEPENDENCY_CFLAG="$ac_lbl_dependency_flag" 9065 MKDEP='${top_srcdir}/mkdep' 9066 else 9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9068printf "%s\n" "no" >&6; } 9069 # 9070 # We can't run mkdep, so have "make depend" do 9071 # nothing. 9072 # 9073 MKDEP=: 9074 fi 9075 rm -rf conftest* 9076 else 9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9078printf "%s\n" "no" >&6; } 9079 # 9080 # We can't run mkdep, so have "make depend" do 9081 # nothing. 9082 # 9083 MKDEP=: 9084 fi 9085 9086 9087 9088 # 9089 # We used to set -n32 for IRIX 6 when not using GCC (presumed 9090 # to mean that we're using MIPS C or MIPSpro C); it specified 9091 # the "new" faster 32-bit ABI, introduced in IRIX 6.2. I'm 9092 # not sure why that would be something to do *only* with a 9093 # .devel file; why should the ABI for which we produce code 9094 # depend on .devel? 9095 # 9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use an os-proto.h header" >&5 9097printf %s "checking whether to use an os-proto.h header... " >&6; } 9098 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'` 9099 name="lbl/os-$os.h" 9100 if test -f $name ; then 9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, at \"$name\"" >&5 9102printf "%s\n" "yes, at \"$name\"" >&6; } 9103 ln -s $name os-proto.h 9104 9105printf "%s\n" "#define HAVE_OS_PROTO_H 1" >>confdefs.h 9106 9107 else 9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9109printf "%s\n" "no" >&6; } 9110 fi 9111 fi 9112 9113# Check for OpenSSL/libressl libcrypto 9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use OpenSSL/libressl libcrypto" >&5 9115printf %s "checking whether to use OpenSSL/libressl libcrypto... " >&6; } 9116# Specify location for both includes and libraries. 9117want_libcrypto=ifavailable 9118 9119# Check whether --with-crypto was given. 9120if test ${with_crypto+y} 9121then : 9122 withval=$with_crypto; 9123 if test $withval = no 9124 then 9125 # User doesn't want to link with libcrypto. 9126 want_libcrypto=no 9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9128printf "%s\n" "no" >&6; } 9129 elif test $withval = yes 9130 then 9131 # User wants to link with libcrypto but hasn't specified 9132 # a directory. 9133 want_libcrypto=yes 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9135printf "%s\n" "yes" >&6; } 9136 else 9137 # User wants to link with libcrypto and has specified 9138 # a directory, so use the provided value. 9139 want_libcrypto=yes 9140 libcrypto_root=$withval 9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, using the version installed in $withval" >&5 9142printf "%s\n" "yes, using the version installed in $withval" >&6; } 9143 fi 9144 9145else $as_nop 9146 9147 # 9148 # Use libcrypto if it's present, otherwise don't; no directory 9149 # was specified. 9150 # 9151 want_libcrypto=ifavailable 9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 9153printf "%s\n" "yes, if available" >&6; } 9154 9155fi 9156 9157if test "$want_libcrypto" != "no"; then 9158 # 9159 # Were we told where to look for libcrypto? 9160 # 9161 if test -z "$libcrypto_root"; then 9162 # 9163 # No. 9164 # 9165 # First, try looking for it with pkg-config, if we have it. 9166 # 9167 # Homebrew's pkg-config does not, by default, look for 9168 # pkg-config files for packages it has installed. 9169 # Furthermore, at least for OpenSSL, they appear to be 9170 # dumped in package-specific directories whose paths are 9171 # not only package-specific but package-version-specific. 9172 # 9173 # So the only way to find openssl is to get the value of 9174 # PKG_CONFIG_PATH from "brew --env openssl" and add that 9175 # to PKG_CONFIG_PATH. (No, we can't just assume it's under 9176 # /usr/local; Homebrew have conveniently chosen to put it 9177 # under /opt/homebrew on ARM.) 9178 # 9179 # That's the nice thing about Homebrew - it makes things easier! 9180 # Thanks! 9181 # 9182 save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH" 9183 if test -n "$BREW"; then 9184 openssl_pkgconfig_dir=`$BREW --env --plain openssl | sed -n 's/PKG_CONFIG_PATH: //p'` 9185 PKG_CONFIG_PATH="$openssl_pkgconfig_dir:$PKG_CONFIG_PATH" 9186 fi 9187 9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcrypto with pkg-config" >&5 9189printf %s "checking for libcrypto with pkg-config... " >&6; } 9190if test -n "$PKG_CONFIG"; then 9191 9192 if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto\""; } >&5 9193 ($PKG_CONFIG --exists --print-errors "libcrypto") 2>&5 9194 ac_status=$? 9195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9196 test $ac_status = 0; }; then 9197 # 9198 # The package was found, so try to get its C flags and 9199 # libraries. 9200 # 9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 9202printf "%s\n" "found" >&6; } 9203 if test ! -n "$LIBCRYPTO_CFLAGS"; then 9204 LIBCRYPTO_CFLAGS=`$PKG_CONFIG --cflags "libcrypto" 2>/dev/null` 9205 if test "x$?" != "x0"; then 9206 # 9207 # That failed - report an error. 9208 # Re-run the command, telling pkg-config to print an error 9209 # message, capture the error message, and report it. 9210 # This causes the configuration script to fail, as it means 9211 # the script is almost certainly doing something wrong. 9212 # 9213 9214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9215 _pkg_short_errors_supported=yes 9216else 9217 _pkg_short_errors_supported=no 9218fi 9219 if test $_pkg_short_errors_supported = yes; then 9220 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --cflags "libcrypto" 2>&1` 9221 else 9222 _pkg_error_string=`$PKG_CONFIG --print-errors --cflags "libcrypto" 2>&1` 9223 fi 9224 as_fn_error $? "$PKG_CONFIG --cflags \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9225 fi 9226 fi 9227 if test ! -n "$LIBCRYPTO_LIBS"; then 9228 LIBCRYPTO_LIBS=`$PKG_CONFIG --libs "libcrypto" 2>/dev/null` 9229 if test "x$?" != "x0"; then 9230 # 9231 # That failed - report an error. 9232 # Re-run the command, telling pkg-config to print an error 9233 # message, capture the error message, and report it. 9234 # This causes the configuration script to fail, as it means 9235 # the script is almost certainly doing something wrong. 9236 # 9237 9238if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9239 _pkg_short_errors_supported=yes 9240else 9241 _pkg_short_errors_supported=no 9242fi 9243 if test $_pkg_short_errors_supported = yes; then 9244 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs "libcrypto" 2>&1` 9245 else 9246 _pkg_error_string=`$PKG_CONFIG --print-errors --libs "libcrypto" 2>&1` 9247 fi 9248 as_fn_error $? "$PKG_CONFIG --libs \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9249 fi 9250 fi 9251 if test ! -n "$LIBCRYPTO_LIBS_STATIC"; then 9252 LIBCRYPTO_LIBS_STATIC=`$PKG_CONFIG --libs --static "libcrypto" 2>/dev/null` 9253 if test "x$?" != "x0"; then 9254 # 9255 # That failed - report an error. 9256 # Re-run the command, telling pkg-config to print an error 9257 # message, capture the error message, and report it. 9258 # This causes the configuration script to fail, as it means 9259 # the script is almost certainly doing something wrong. 9260 # 9261 9262if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9263 _pkg_short_errors_supported=yes 9264else 9265 _pkg_short_errors_supported=no 9266fi 9267 if test $_pkg_short_errors_supported = yes; then 9268 _pkg_error_string=`$PKG_CONFIG --short-errors --print-errors --libs --static "libcrypto" 2>&1` 9269 else 9270 _pkg_error_string=`$PKG_CONFIG --print-errors --libs --static "libcrypto" 2>&1` 9271 fi 9272 as_fn_error $? "$PKG_CONFIG --libs --static \"libcrypto\" failed: $_pkg_error_string" "$LINENO" 5 9273 fi 9274 fi 9275 9276 # 9277 # We found OpenSSL/libressl libcrypto. 9278 # 9279 HAVE_LIBCRYPTO=yes 9280 9281 else 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9283printf "%s\n" "not found" >&6; } 9284 : 9285 fi 9286else 9287 # No pkg-config, so obviously not found with pkg-config. 9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pkg-config not found" >&5 9289printf "%s\n" "pkg-config not found" >&6; } 9290 : 9291fi 9292 9293 PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH" 9294 9295 # 9296 # If it wasn't found, and we have Homebrew installed, see 9297 # if it's in Homebrew. 9298 # 9299 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -n "$BREW"; then 9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl in Homebrew" >&5 9301printf %s "checking for openssl in Homebrew... " >&6; } 9302 # 9303 # The brew man page lies when it speaks of 9304 # $BREW --prefix --installed <formula> 9305 # outputting nothing. In Homebrew 3.3.16, 9306 # it produces output regardless of whether 9307 # the formula is installed or not, so we 9308 # send the standard output and error to 9309 # the bit bucket. 9310 # 9311 # libcrypto isn't a formula, openssl is a formula. 9312 # 9313 if $BREW --prefix --installed openssl >/dev/null 2>&1; then 9314 # 9315 # Yes. Get the include directory and library 9316 # directory. (No, we can't just assume it's 9317 # under /usr/local; Homebrew have conveniently 9318 # chosen to put it under /opt/homebrew on ARM.) 9319 # 9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9321printf "%s\n" "yes" >&6; } 9322 HAVE_LIBCRYPTO=yes 9323 openssl_path=`$BREW --prefix openssl` 9324 LIBCRYPTO_CFLAGS="-I$openssl_path/include" 9325 LIBCRYPTO_LIBS="-L$openssl_path/lib -lcrypto" 9326 else 9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9328printf "%s\n" "no" >&6; } 9329 fi 9330 fi 9331 9332 # 9333 # If it wasn't found, and /usr/local/include and /usr/local/lib 9334 # exist, check if it's in /usr/local. (We check whether they 9335 # exist because, if they don't exist, the compiler will warn 9336 # about that and then ignore the argument, so they test 9337 # using just the system header files and libraries.) 9338 # 9339 # We include the standard include file to 1) make sure that 9340 # it's installed (if it's just a shared library for the 9341 # benefit of existing programs, that's not useful) and 2) 9342 # because SSL_library_init() is a library routine in some 9343 # versions and a #defined wrapper around OPENSSL_init_ssl() 9344 # in others. 9345 # 9346 if test "x$HAVE_LIBCRYPTO" != "xyes" -a -d "/usr/local/include" -a -d "/usr/local/lib"; then 9347 9348 save_CFLAGS="$CFLAGS" 9349 save_LIBS="$LIBS" 9350 save_LDFLAGS="$LDFLAGS" 9351 9352 CFLAGS="$CFLAGS -I/usr/local/include" 9353 LIBS="$LIBS -L/usr/local/lib -lcrypto" 9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use" >&5 9355printf %s "checking whether we have an OpenSSL/libressl libcrypto in /usr/local that we can use... " >&6; } 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358 9359#include <openssl/evp.h> 9360 9361int 9362main (void) 9363{ 9364 9365EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9366return 0; 9367 9368 ; 9369 return 0; 9370} 9371_ACEOF 9372if ac_fn_c_try_link "$LINENO" 9373then : 9374 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9376printf "%s\n" "yes" >&6; } 9377 HAVE_LIBCRYPTO=yes 9378 LIBCRYPTO_CFLAGS="-I/usr/local/include" 9379 LIBCRYPTO_LIBS="-L/usr/local/lib -lcrypto" 9380 9381else $as_nop 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9383printf "%s\n" "no" >&6; } 9384fi 9385rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9386 conftest$ac_exeext conftest.$ac_ext 9387 9388 CFLAGS="$save_CFLAGS" 9389 LIBS="$save_LIBS" 9390 LDFLAGS="$save_LDFLAGS" 9391 9392 fi 9393 9394 # 9395 # If it wasn't found, check if it's a system library. 9396 # 9397 # We include the standard include file to 1) make sure that 9398 # it's installed (if it's just a shared library for the 9399 # benefit of existing programs, that's not useful) and 2) 9400 # make sure this isn't a newer macOS that provides libcrypto 9401 # as a shared library but doesn't provide headers - Apple, 9402 # bless their pointy little heads, apparently ship libcrypto 9403 # as a library, but not the header files, in El Capitan and 9404 # later, probably because they don't want you writing nasty 9405 # portable code that could run on other UN*Xes, they want you 9406 # writing code that uses their Shiny New Crypto Library and 9407 # that thus only runs on macOS. 9408 # 9409 if test "x$HAVE_LIBCRYPTO" != "xyes"; then 9410 9411 save_CFLAGS="$CFLAGS" 9412 save_LIBS="$LIBS" 9413 save_LDFLAGS="$LDFLAGS" 9414 9415 LIBS="$LIBS -lcrypto" 9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5 9417printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; } 9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9419/* end confdefs.h. */ 9420 9421#include <openssl/evp.h> 9422 9423int 9424main (void) 9425{ 9426 9427EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9428return 0; 9429 9430 ; 9431 return 0; 9432} 9433_ACEOF 9434if ac_fn_c_try_link "$LINENO" 9435then : 9436 9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9438printf "%s\n" "yes" >&6; } 9439 HAVE_LIBCRYPTO=yes 9440 LIBCRYPTO_LIBS="-lcrypto" 9441 9442else $as_nop 9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9444printf "%s\n" "no" >&6; } 9445fi 9446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9447 conftest$ac_exeext conftest.$ac_ext 9448 9449 CFLAGS="$save_CFLAGS" 9450 LIBS="$save_LIBS" 9451 LDFLAGS="$save_LDFLAGS" 9452 9453 fi 9454 else 9455 # 9456 # Yes. 9457 # 9458 # Look for it there. 9459 # 9460 9461 save_CFLAGS="$CFLAGS" 9462 save_LIBS="$LIBS" 9463 save_LDFLAGS="$LDFLAGS" 9464 9465 CFLAGS="$CFLAGS -I$libcrypto_root/include" 9466 LIBS="$LIBS -L$libcrypto_root/lib -lcrypto" 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have a system OpenSSL/libressl that we can use" >&5 9468printf %s "checking whether we have a system OpenSSL/libressl that we can use... " >&6; } 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471 9472#include <openssl/evp.h> 9473 9474int 9475main (void) 9476{ 9477 9478EVP_CIPHER_CTX_block_size((EVP_CIPHER_CTX *)0); 9479return 0; 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO" 9486then : 9487 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9489printf "%s\n" "yes" >&6; } 9490 HAVE_LIBCRYPTO=yes 9491 LIBCRYPTO_CFLAGS="-I$libcrypto_root/include" 9492 LIBCRYPTO_LIBS="-L$libcrypto_root/lib -lcrypto" 9493 9494else $as_nop 9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9496printf "%s\n" "no" >&6; } 9497fi 9498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9499 conftest$ac_exeext conftest.$ac_ext 9500 9501 CFLAGS="$save_CFLAGS" 9502 LIBS="$save_LIBS" 9503 LDFLAGS="$save_LDFLAGS" 9504 9505 fi 9506 9507 # 9508 # OK, did we find it? 9509 # 9510 if test "x$HAVE_LIBCRYPTO" = "xyes"; then 9511 9512printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h 9513 9514 9515 # 9516 # Put the subdirectories of the libcrypto root directory 9517 # at the end of the header and library search path, to 9518 # make sure they come after any -I or -L flags for 9519 # a local libpcap - those must take precedence of any 9520 # directory that might contain an installed version of 9521 # libpcap. 9522 # 9523 V_INCLS="$V_INCLS $LIBCRYPTO_CFLAGS" 9524 LIBS="$LIBS $LIBCRYPTO_LIBS" 9525 9526 # 9527 # OK, then: 9528 # 9529 # 1) do we have EVP_CIPHER_CTX_new? 9530 # If so, we use it to allocate an EVP_CIPHER_CTX, as 9531 # EVP_CIPHER_CTX may be opaque; otherwise, we allocate it 9532 # ourselves. 9533 # 9534 # 2) do we have EVP_DecryptInit_ex()? 9535 # If so, we use it, because we need to be able to make 9536 # two "initialize the cipher" calls, one with the cipher 9537 # and key, and one with the IV, and, as of OpenSSL 1.1, 9538 # You Can't Do That with EVP_DecryptInit(), because a 9539 # call to EVP_DecryptInit() will unconditionally clear 9540 # the context, and if you don't supply a cipher, it'll 9541 # clear the cipher, rendering the context unusable and 9542 # causing a crash. 9543 # 9544 ac_fn_c_check_func "$LINENO" "EVP_CIPHER_CTX_new" "ac_cv_func_EVP_CIPHER_CTX_new" 9545if test "x$ac_cv_func_EVP_CIPHER_CTX_new" = xyes 9546then : 9547 printf "%s\n" "#define HAVE_EVP_CIPHER_CTX_NEW 1" >>confdefs.h 9548 9549fi 9550ac_fn_c_check_func "$LINENO" "EVP_DecryptInit_ex" "ac_cv_func_EVP_DecryptInit_ex" 9551if test "x$ac_cv_func_EVP_DecryptInit_ex" = xyes 9552then : 9553 printf "%s\n" "#define HAVE_EVP_DECRYPTINIT_EX 1" >>confdefs.h 9554 9555fi 9556 9557 else 9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL/libressl libcrypto not found" >&5 9559printf "%s\n" "$as_me: OpenSSL/libressl libcrypto not found" >&6;} 9560 fi 9561fi 9562 9563# Check for libcap-ng 9564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5 9565printf %s "checking whether to use libcap-ng... " >&6; } 9566# Specify location for both includes and libraries. 9567want_libcap_ng=ifavailable 9568 9569# Check whether --with-cap_ng was given. 9570if test ${with_cap_ng+y} 9571then : 9572 withval=$with_cap_ng; 9573 if test $withval = no 9574 then 9575 want_libcap_ng=no 9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9577printf "%s\n" "no" >&6; } 9578 elif test $withval = yes 9579 then 9580 want_libcap_ng=yes 9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9582printf "%s\n" "yes" >&6; } 9583 fi 9584 9585else $as_nop 9586 9587 # 9588 # Use libcap-ng if it's present, otherwise don't. 9589 # 9590 want_libcap_ng=ifavailable 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, if available" >&5 9592printf "%s\n" "yes, if available" >&6; } 9593 9594fi 9595 9596if test "$want_libcap_ng" != "no"; then 9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for capng_change_id in -lcap-ng" >&5 9598printf %s "checking for capng_change_id in -lcap-ng... " >&6; } 9599if test ${ac_cv_lib_cap_ng_capng_change_id+y} 9600then : 9601 printf %s "(cached) " >&6 9602else $as_nop 9603 ac_check_lib_save_LIBS=$LIBS 9604LIBS="-lcap-ng $LIBS" 9605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9606/* end confdefs.h. */ 9607 9608/* Override any GCC internal prototype to avoid an error. 9609 Use char because int might match the return type of a GCC 9610 builtin and then its argument prototype would still apply. */ 9611char capng_change_id (); 9612int 9613main (void) 9614{ 9615return capng_change_id (); 9616 ; 9617 return 0; 9618} 9619_ACEOF 9620if ac_fn_c_try_link "$LINENO" 9621then : 9622 ac_cv_lib_cap_ng_capng_change_id=yes 9623else $as_nop 9624 ac_cv_lib_cap_ng_capng_change_id=no 9625fi 9626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9627 conftest$ac_exeext conftest.$ac_ext 9628LIBS=$ac_check_lib_save_LIBS 9629fi 9630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_change_id" >&5 9631printf "%s\n" "$ac_cv_lib_cap_ng_capng_change_id" >&6; } 9632if test "x$ac_cv_lib_cap_ng_capng_change_id" = xyes 9633then : 9634 printf "%s\n" "#define HAVE_LIBCAP_NG 1" >>confdefs.h 9635 9636 LIBS="-lcap-ng $LIBS" 9637 9638fi 9639 9640 ac_fn_c_check_header_compile "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" 9641if test "x$ac_cv_header_cap_ng_h" = xyes 9642then : 9643 printf "%s\n" "#define HAVE_CAP_NG_H 1" >>confdefs.h 9644 9645fi 9646 9647fi 9648 9649if test "$missing_includes" = "yes"; then 9650 CPPFLAGS="$CPPFLAGS -I$srcdir/missing" 9651 V_INCLS="$V_INCLS -I$srcdir/missing" 9652fi 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 # Find a good install program. We prefer a C program (faster), 9664# so one script is as good as another. But avoid the broken or 9665# incompatible versions: 9666# SysV /etc/install, /usr/sbin/install 9667# SunOS /usr/etc/install 9668# IRIX /sbin/install 9669# AIX /bin/install 9670# AmigaOS /C/install, which installs bootblocks on floppy discs 9671# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9672# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9673# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9674# OS/2's system install, which has a completely different semantic 9675# ./install, which can be erroneously created by make from ./install.sh. 9676# Reject install programs that cannot install multiple files. 9677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9678printf %s "checking for a BSD-compatible install... " >&6; } 9679if test -z "$INSTALL"; then 9680if test ${ac_cv_path_install+y} 9681then : 9682 printf %s "(cached) " >&6 9683else $as_nop 9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9685for as_dir in $PATH 9686do 9687 IFS=$as_save_IFS 9688 case $as_dir in #((( 9689 '') as_dir=./ ;; 9690 */) ;; 9691 *) as_dir=$as_dir/ ;; 9692 esac 9693 # Account for fact that we put trailing slashes in our PATH walk. 9694case $as_dir in #(( 9695 ./ | /[cC]/* | \ 9696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9698 /usr/ucb/* ) ;; 9699 *) 9700 # OSF1 and SCO ODT 3.0 have their own names for install. 9701 # Don't use installbsd from OSF since it installs stuff as root 9702 # by default. 9703 for ac_prog in ginstall scoinst install; do 9704 for ac_exec_ext in '' $ac_executable_extensions; do 9705 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 9706 if test $ac_prog = install && 9707 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9708 # AIX install. It has an incompatible calling convention. 9709 : 9710 elif test $ac_prog = install && 9711 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9712 # program-specific install script used by HP pwplus--don't use. 9713 : 9714 else 9715 rm -rf conftest.one conftest.two conftest.dir 9716 echo one > conftest.one 9717 echo two > conftest.two 9718 mkdir conftest.dir 9719 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 9720 test -s conftest.one && test -s conftest.two && 9721 test -s conftest.dir/conftest.one && 9722 test -s conftest.dir/conftest.two 9723 then 9724 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 9725 break 3 9726 fi 9727 fi 9728 fi 9729 done 9730 done 9731 ;; 9732esac 9733 9734 done 9735IFS=$as_save_IFS 9736 9737rm -rf conftest.one conftest.two conftest.dir 9738 9739fi 9740 if test ${ac_cv_path_install+y}; then 9741 INSTALL=$ac_cv_path_install 9742 else 9743 # As a last resort, use the slow shell script. Don't cache a 9744 # value for INSTALL within a source directory, because that will 9745 # break other packages using the cache if that directory is 9746 # removed, or if the value is a relative name. 9747 INSTALL=$ac_install_sh 9748 fi 9749fi 9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9751printf "%s\n" "$INSTALL" >&6; } 9752 9753# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9754# It thinks the first close brace ends the variable substitution. 9755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9756 9757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9758 9759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9760 9761 9762ac_config_headers="$ac_config_headers config.h" 9763 9764 9765 9766 9767ac_config_commands="$ac_config_commands .devel" 9768 9769ac_config_files="$ac_config_files Makefile tcpdump.1" 9770 9771cat >confcache <<\_ACEOF 9772# This file is a shell script that caches the results of configure 9773# tests run on this system so they can be shared between configure 9774# scripts and configure runs, see configure's option --config-cache. 9775# It is not useful on other systems. If it contains results you don't 9776# want to keep, you may remove or edit it. 9777# 9778# config.status only pays attention to the cache file if you give it 9779# the --recheck option to rerun configure. 9780# 9781# `ac_cv_env_foo' variables (set or unset) will be overridden when 9782# loading this file, other *unset* `ac_cv_foo' will be assigned the 9783# following values. 9784 9785_ACEOF 9786 9787# The following way of writing the cache mishandles newlines in values, 9788# but we know of no workaround that is simple, portable, and efficient. 9789# So, we kill variables containing newlines. 9790# Ultrix sh set writes to stderr and can't be redirected directly, 9791# and sets the high bit in the cache file unless we assign to the vars. 9792( 9793 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9794 eval ac_val=\$$ac_var 9795 case $ac_val in #( 9796 *${as_nl}*) 9797 case $ac_var in #( 9798 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9799printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9800 esac 9801 case $ac_var in #( 9802 _ | IFS | as_nl) ;; #( 9803 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9804 *) { eval $ac_var=; unset $ac_var;} ;; 9805 esac ;; 9806 esac 9807 done 9808 9809 (set) 2>&1 | 9810 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9811 *${as_nl}ac_space=\ *) 9812 # `set' does not quote correctly, so add quotes: double-quote 9813 # substitution turns \\\\ into \\, and sed turns \\ into \. 9814 sed -n \ 9815 "s/'/'\\\\''/g; 9816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9817 ;; #( 9818 *) 9819 # `set' quotes correctly as required by POSIX, so do not add quotes. 9820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9821 ;; 9822 esac | 9823 sort 9824) | 9825 sed ' 9826 /^ac_cv_env_/b end 9827 t clear 9828 :clear 9829 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 9830 t end 9831 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9832 :end' >>confcache 9833if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9834 if test -w "$cache_file"; then 9835 if test "x$cache_file" != "x/dev/null"; then 9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9837printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 9838 if test ! -f "$cache_file" || test -h "$cache_file"; then 9839 cat confcache >"$cache_file" 9840 else 9841 case $cache_file in #( 9842 */* | ?:*) 9843 mv -f confcache "$cache_file"$$ && 9844 mv -f "$cache_file"$$ "$cache_file" ;; #( 9845 *) 9846 mv -f confcache "$cache_file" ;; 9847 esac 9848 fi 9849 fi 9850 else 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9852printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 9853 fi 9854fi 9855rm -f confcache 9856 9857test "x$prefix" = xNONE && prefix=$ac_default_prefix 9858# Let make expand exec_prefix. 9859test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9860 9861DEFS=-DHAVE_CONFIG_H 9862 9863ac_libobjs= 9864ac_ltlibobjs= 9865U= 9866for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9867 # 1. Remove the extension, and $U if already installed. 9868 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9869 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 9870 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9871 # will be set to the directory where LIBOBJS objects are built. 9872 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9873 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9874done 9875LIBOBJS=$ac_libobjs 9876 9877LTLIBOBJS=$ac_ltlibobjs 9878 9879 9880 9881: "${CONFIG_STATUS=./config.status}" 9882ac_write_fail=0 9883ac_clean_files_save=$ac_clean_files 9884ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9886printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 9887as_write_fail=0 9888cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9889#! $SHELL 9890# Generated by $as_me. 9891# Run this file to recreate the current configuration. 9892# Compiler output produced by configure, useful for debugging 9893# configure, is in config.log if it exists. 9894 9895debug=false 9896ac_cs_recheck=false 9897ac_cs_silent=false 9898 9899SHELL=\${CONFIG_SHELL-$SHELL} 9900export SHELL 9901_ASEOF 9902cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9903## -------------------- ## 9904## M4sh Initialization. ## 9905## -------------------- ## 9906 9907# Be more Bourne compatible 9908DUALCASE=1; export DUALCASE # for MKS sh 9909as_nop=: 9910if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 9911then : 9912 emulate sh 9913 NULLCMD=: 9914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9915 # is contrary to our usage. Disable this feature. 9916 alias -g '${1+"$@"}'='"$@"' 9917 setopt NO_GLOB_SUBST 9918else $as_nop 9919 case `(set -o) 2>/dev/null` in #( 9920 *posix*) : 9921 set -o posix ;; #( 9922 *) : 9923 ;; 9924esac 9925fi 9926 9927 9928 9929# Reset variables that may have inherited troublesome values from 9930# the environment. 9931 9932# IFS needs to be set, to space, tab, and newline, in precisely that order. 9933# (If _AS_PATH_WALK were called with IFS unset, it would have the 9934# side effect of setting IFS to empty, thus disabling word splitting.) 9935# Quoting is to prevent editors from complaining about space-tab. 9936as_nl=' 9937' 9938export as_nl 9939IFS=" "" $as_nl" 9940 9941PS1='$ ' 9942PS2='> ' 9943PS4='+ ' 9944 9945# Ensure predictable behavior from utilities with locale-dependent output. 9946LC_ALL=C 9947export LC_ALL 9948LANGUAGE=C 9949export LANGUAGE 9950 9951# We cannot yet rely on "unset" to work, but we need these variables 9952# to be unset--not just set to an empty or harmless value--now, to 9953# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 9954# also avoids known problems related to "unset" and subshell syntax 9955# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 9956for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 9957do eval test \${$as_var+y} \ 9958 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9959done 9960 9961# Ensure that fds 0, 1, and 2 are open. 9962if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 9963if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 9964if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 9965 9966# The user is always right. 9967if ${PATH_SEPARATOR+false} :; then 9968 PATH_SEPARATOR=: 9969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9971 PATH_SEPARATOR=';' 9972 } 9973fi 9974 9975 9976# Find who we are. Look in the path if we contain no directory separator. 9977as_myself= 9978case $0 in #(( 9979 *[\\/]* ) as_myself=$0 ;; 9980 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9981for as_dir in $PATH 9982do 9983 IFS=$as_save_IFS 9984 case $as_dir in #((( 9985 '') as_dir=./ ;; 9986 */) ;; 9987 *) as_dir=$as_dir/ ;; 9988 esac 9989 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 9990 done 9991IFS=$as_save_IFS 9992 9993 ;; 9994esac 9995# We did not find ourselves, most probably we were run as `sh COMMAND' 9996# in which case we are not to be found in the path. 9997if test "x$as_myself" = x; then 9998 as_myself=$0 9999fi 10000if test ! -f "$as_myself"; then 10001 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10002 exit 1 10003fi 10004 10005 10006 10007# as_fn_error STATUS ERROR [LINENO LOG_FD] 10008# ---------------------------------------- 10009# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10010# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10011# script with STATUS, using 1 if that was 0. 10012as_fn_error () 10013{ 10014 as_status=$1; test $as_status -eq 0 && as_status=1 10015 if test "$4"; then 10016 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10018 fi 10019 printf "%s\n" "$as_me: error: $2" >&2 10020 as_fn_exit $as_status 10021} # as_fn_error 10022 10023 10024 10025# as_fn_set_status STATUS 10026# ----------------------- 10027# Set $? to STATUS, without forking. 10028as_fn_set_status () 10029{ 10030 return $1 10031} # as_fn_set_status 10032 10033# as_fn_exit STATUS 10034# ----------------- 10035# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10036as_fn_exit () 10037{ 10038 set +e 10039 as_fn_set_status $1 10040 exit $1 10041} # as_fn_exit 10042 10043# as_fn_unset VAR 10044# --------------- 10045# Portably unset VAR. 10046as_fn_unset () 10047{ 10048 { eval $1=; unset $1;} 10049} 10050as_unset=as_fn_unset 10051 10052# as_fn_append VAR VALUE 10053# ---------------------- 10054# Append the text in VALUE to the end of the definition contained in VAR. Take 10055# advantage of any shell optimizations that allow amortized linear growth over 10056# repeated appends, instead of the typical quadratic growth present in naive 10057# implementations. 10058if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 10059then : 10060 eval 'as_fn_append () 10061 { 10062 eval $1+=\$2 10063 }' 10064else $as_nop 10065 as_fn_append () 10066 { 10067 eval $1=\$$1\$2 10068 } 10069fi # as_fn_append 10070 10071# as_fn_arith ARG... 10072# ------------------ 10073# Perform arithmetic evaluation on the ARGs, and store the result in the 10074# global $as_val. Take advantage of shells that can avoid forks. The arguments 10075# must be portable across $(()) and expr. 10076if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 10077then : 10078 eval 'as_fn_arith () 10079 { 10080 as_val=$(( $* )) 10081 }' 10082else $as_nop 10083 as_fn_arith () 10084 { 10085 as_val=`expr "$@" || test $? -eq 1` 10086 } 10087fi # as_fn_arith 10088 10089 10090if expr a : '\(a\)' >/dev/null 2>&1 && 10091 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10092 as_expr=expr 10093else 10094 as_expr=false 10095fi 10096 10097if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10098 as_basename=basename 10099else 10100 as_basename=false 10101fi 10102 10103if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10104 as_dirname=dirname 10105else 10106 as_dirname=false 10107fi 10108 10109as_me=`$as_basename -- "$0" || 10110$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10111 X"$0" : 'X\(//\)$' \| \ 10112 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10113printf "%s\n" X/"$0" | 10114 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10115 s//\1/ 10116 q 10117 } 10118 /^X\/\(\/\/\)$/{ 10119 s//\1/ 10120 q 10121 } 10122 /^X\/\(\/\).*/{ 10123 s//\1/ 10124 q 10125 } 10126 s/.*/./; q'` 10127 10128# Avoid depending upon Character Ranges. 10129as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10130as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10131as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10132as_cr_digits='0123456789' 10133as_cr_alnum=$as_cr_Letters$as_cr_digits 10134 10135 10136# Determine whether it's possible to make 'echo' print without a newline. 10137# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 10138# for compatibility with existing Makefiles. 10139ECHO_C= ECHO_N= ECHO_T= 10140case `echo -n x` in #((((( 10141-n*) 10142 case `echo 'xy\c'` in 10143 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10144 xy) ECHO_C='\c';; 10145 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10146 ECHO_T=' ';; 10147 esac;; 10148*) 10149 ECHO_N='-n';; 10150esac 10151 10152# For backward compatibility with old third-party macros, we provide 10153# the shell variables $as_echo and $as_echo_n. New code should use 10154# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 10155as_echo='printf %s\n' 10156as_echo_n='printf %s' 10157 10158rm -f conf$$ conf$$.exe conf$$.file 10159if test -d conf$$.dir; then 10160 rm -f conf$$.dir/conf$$.file 10161else 10162 rm -f conf$$.dir 10163 mkdir conf$$.dir 2>/dev/null 10164fi 10165if (echo >conf$$.file) 2>/dev/null; then 10166 if ln -s conf$$.file conf$$ 2>/dev/null; then 10167 as_ln_s='ln -s' 10168 # ... but there are two gotchas: 10169 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10170 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10171 # In both cases, we have to default to `cp -pR'. 10172 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10173 as_ln_s='cp -pR' 10174 elif ln conf$$.file conf$$ 2>/dev/null; then 10175 as_ln_s=ln 10176 else 10177 as_ln_s='cp -pR' 10178 fi 10179else 10180 as_ln_s='cp -pR' 10181fi 10182rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10183rmdir conf$$.dir 2>/dev/null 10184 10185 10186# as_fn_mkdir_p 10187# ------------- 10188# Create "$as_dir" as a directory, including parents if necessary. 10189as_fn_mkdir_p () 10190{ 10191 10192 case $as_dir in #( 10193 -*) as_dir=./$as_dir;; 10194 esac 10195 test -d "$as_dir" || eval $as_mkdir_p || { 10196 as_dirs= 10197 while :; do 10198 case $as_dir in #( 10199 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10200 *) as_qdir=$as_dir;; 10201 esac 10202 as_dirs="'$as_qdir' $as_dirs" 10203 as_dir=`$as_dirname -- "$as_dir" || 10204$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10205 X"$as_dir" : 'X\(//\)[^/]' \| \ 10206 X"$as_dir" : 'X\(//\)$' \| \ 10207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10208printf "%s\n" X"$as_dir" | 10209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10210 s//\1/ 10211 q 10212 } 10213 /^X\(\/\/\)[^/].*/{ 10214 s//\1/ 10215 q 10216 } 10217 /^X\(\/\/\)$/{ 10218 s//\1/ 10219 q 10220 } 10221 /^X\(\/\).*/{ 10222 s//\1/ 10223 q 10224 } 10225 s/.*/./; q'` 10226 test -d "$as_dir" && break 10227 done 10228 test -z "$as_dirs" || eval "mkdir $as_dirs" 10229 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10230 10231 10232} # as_fn_mkdir_p 10233if mkdir -p . 2>/dev/null; then 10234 as_mkdir_p='mkdir -p "$as_dir"' 10235else 10236 test -d ./-p && rmdir ./-p 10237 as_mkdir_p=false 10238fi 10239 10240 10241# as_fn_executable_p FILE 10242# ----------------------- 10243# Test if FILE is an executable regular file. 10244as_fn_executable_p () 10245{ 10246 test -f "$1" && test -x "$1" 10247} # as_fn_executable_p 10248as_test_x='test -x' 10249as_executable_p=as_fn_executable_p 10250 10251# Sed expression to map a string onto a valid CPP name. 10252as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10253 10254# Sed expression to map a string onto a valid variable name. 10255as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10256 10257 10258exec 6>&1 10259## ----------------------------------- ## 10260## Main body of $CONFIG_STATUS script. ## 10261## ----------------------------------- ## 10262_ASEOF 10263test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10264 10265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10266# Save the log message, to keep $0 and so on meaningful, and to 10267# report actual input values of CONFIG_FILES etc. instead of their 10268# values after options handling. 10269ac_log=" 10270This file was extended by tcpdump $as_me 4.99.6, which was 10271generated by GNU Autoconf 2.71. Invocation command line was 10272 10273 CONFIG_FILES = $CONFIG_FILES 10274 CONFIG_HEADERS = $CONFIG_HEADERS 10275 CONFIG_LINKS = $CONFIG_LINKS 10276 CONFIG_COMMANDS = $CONFIG_COMMANDS 10277 $ $0 $@ 10278 10279on `(hostname || uname -n) 2>/dev/null | sed 1q` 10280" 10281 10282_ACEOF 10283 10284case $ac_config_files in *" 10285"*) set x $ac_config_files; shift; ac_config_files=$*;; 10286esac 10287 10288case $ac_config_headers in *" 10289"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10290esac 10291 10292 10293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10294# Files that config.status was made for. 10295config_files="$ac_config_files" 10296config_headers="$ac_config_headers" 10297config_commands="$ac_config_commands" 10298 10299_ACEOF 10300 10301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10302ac_cs_usage="\ 10303\`$as_me' instantiates files and other configuration actions 10304from templates according to the current configuration. Unless the files 10305and actions are specified as TAGs, all are instantiated by default. 10306 10307Usage: $0 [OPTION]... [TAG]... 10308 10309 -h, --help print this help, then exit 10310 -V, --version print version number and configuration settings, then exit 10311 --config print configuration, then exit 10312 -q, --quiet, --silent 10313 do not print progress messages 10314 -d, --debug don't remove temporary files 10315 --recheck update $as_me by reconfiguring in the same conditions 10316 --file=FILE[:TEMPLATE] 10317 instantiate the configuration file FILE 10318 --header=FILE[:TEMPLATE] 10319 instantiate the configuration header FILE 10320 10321Configuration files: 10322$config_files 10323 10324Configuration headers: 10325$config_headers 10326 10327Configuration commands: 10328$config_commands 10329 10330Report bugs to the package provider." 10331 10332_ACEOF 10333ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 10334ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 10335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10336ac_cs_config='$ac_cs_config_escaped' 10337ac_cs_version="\\ 10338tcpdump config.status 4.99.6 10339configured by $0, generated by GNU Autoconf 2.71, 10340 with options \\"\$ac_cs_config\\" 10341 10342Copyright (C) 2021 Free Software Foundation, Inc. 10343This config.status script is free software; the Free Software Foundation 10344gives unlimited permission to copy, distribute and modify it." 10345 10346ac_pwd='$ac_pwd' 10347srcdir='$srcdir' 10348INSTALL='$INSTALL' 10349test -n "\$AWK" || AWK=awk 10350_ACEOF 10351 10352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10353# The default lists apply if the user does not specify any file. 10354ac_need_defaults=: 10355while test $# != 0 10356do 10357 case $1 in 10358 --*=?*) 10359 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10360 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10361 ac_shift=: 10362 ;; 10363 --*=) 10364 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10365 ac_optarg= 10366 ac_shift=: 10367 ;; 10368 *) 10369 ac_option=$1 10370 ac_optarg=$2 10371 ac_shift=shift 10372 ;; 10373 esac 10374 10375 case $ac_option in 10376 # Handling of the options. 10377 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10378 ac_cs_recheck=: ;; 10379 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10380 printf "%s\n" "$ac_cs_version"; exit ;; 10381 --config | --confi | --conf | --con | --co | --c ) 10382 printf "%s\n" "$ac_cs_config"; exit ;; 10383 --debug | --debu | --deb | --de | --d | -d ) 10384 debug=: ;; 10385 --file | --fil | --fi | --f ) 10386 $ac_shift 10387 case $ac_optarg in 10388 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10389 '') as_fn_error $? "missing file argument" ;; 10390 esac 10391 as_fn_append CONFIG_FILES " '$ac_optarg'" 10392 ac_need_defaults=false;; 10393 --header | --heade | --head | --hea ) 10394 $ac_shift 10395 case $ac_optarg in 10396 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10397 esac 10398 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10399 ac_need_defaults=false;; 10400 --he | --h) 10401 # Conflict between --help and --header 10402 as_fn_error $? "ambiguous option: \`$1' 10403Try \`$0 --help' for more information.";; 10404 --help | --hel | -h ) 10405 printf "%s\n" "$ac_cs_usage"; exit ;; 10406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10407 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10408 ac_cs_silent=: ;; 10409 10410 # This is an error. 10411 -*) as_fn_error $? "unrecognized option: \`$1' 10412Try \`$0 --help' for more information." ;; 10413 10414 *) as_fn_append ac_config_targets " $1" 10415 ac_need_defaults=false ;; 10416 10417 esac 10418 shift 10419done 10420 10421ac_configure_extra_args= 10422 10423if $ac_cs_silent; then 10424 exec 6>/dev/null 10425 ac_configure_extra_args="$ac_configure_extra_args --silent" 10426fi 10427 10428_ACEOF 10429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10430if \$ac_cs_recheck; then 10431 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10432 shift 10433 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 10434 CONFIG_SHELL='$SHELL' 10435 export CONFIG_SHELL 10436 exec "\$@" 10437fi 10438 10439_ACEOF 10440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10441exec 5>>config.log 10442{ 10443 echo 10444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10445## Running $as_me. ## 10446_ASBOX 10447 printf "%s\n" "$ac_log" 10448} >&5 10449 10450_ACEOF 10451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10452# 10453# INIT-COMMANDS 10454# 10455 10456 10457_ACEOF 10458 10459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10460 10461# Handling of arguments. 10462for ac_config_target in $ac_config_targets 10463do 10464 case $ac_config_target in 10465 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10466 ".devel") CONFIG_COMMANDS="$CONFIG_COMMANDS .devel" ;; 10467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10468 "tcpdump.1") CONFIG_FILES="$CONFIG_FILES tcpdump.1" ;; 10469 10470 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10471 esac 10472done 10473 10474 10475# If the user did not use the arguments to specify the items to instantiate, 10476# then the envvar interface is used. Set only those that are not. 10477# We use the long form for the default assignment because of an extremely 10478# bizarre bug on SunOS 4.1.3. 10479if $ac_need_defaults; then 10480 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 10481 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 10482 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 10483fi 10484 10485# Have a temporary directory for convenience. Make it in the build tree 10486# simply because there is no reason against having it here, and in addition, 10487# creating and moving files from /tmp can sometimes cause problems. 10488# Hook for its removal unless debugging. 10489# Note that there is a small window in which the directory will not be cleaned: 10490# after its creation but before its name has been assigned to `$tmp'. 10491$debug || 10492{ 10493 tmp= ac_tmp= 10494 trap 'exit_status=$? 10495 : "${ac_tmp:=$tmp}" 10496 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10497' 0 10498 trap 'as_fn_exit 1' 1 2 13 15 10499} 10500# Create a (secure) tmp directory for tmp files. 10501 10502{ 10503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10504 test -d "$tmp" 10505} || 10506{ 10507 tmp=./conf$$-$RANDOM 10508 (umask 077 && mkdir "$tmp") 10509} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10510ac_tmp=$tmp 10511 10512# Set up the scripts for CONFIG_FILES section. 10513# No need to generate them if there are no CONFIG_FILES. 10514# This happens for instance with `./config.status config.h'. 10515if test -n "$CONFIG_FILES"; then 10516 10517 10518ac_cr=`echo X | tr X '\015'` 10519# On cygwin, bash can eat \r inside `` if the user requested igncr. 10520# But we know of no other shell where ac_cr would be empty at this 10521# point, so we can use a bashism as a fallback. 10522if test "x$ac_cr" = x; then 10523 eval ac_cr=\$\'\\r\' 10524fi 10525ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10526if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10527 ac_cs_awk_cr='\\r' 10528else 10529 ac_cs_awk_cr=$ac_cr 10530fi 10531 10532echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10533_ACEOF 10534 10535 10536{ 10537 echo "cat >conf$$subs.awk <<_ACEOF" && 10538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10539 echo "_ACEOF" 10540} >conf$$subs.sh || 10541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10542ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10543ac_delim='%!_!# ' 10544for ac_last_try in false false false false false :; do 10545 . ./conf$$subs.sh || 10546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10547 10548 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10549 if test $ac_delim_n = $ac_delim_num; then 10550 break 10551 elif $ac_last_try; then 10552 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10553 else 10554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10555 fi 10556done 10557rm -f conf$$subs.sh 10558 10559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10560cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10561_ACEOF 10562sed -n ' 10563h 10564s/^/S["/; s/!.*/"]=/ 10565p 10566g 10567s/^[^!]*!// 10568:repl 10569t repl 10570s/'"$ac_delim"'$// 10571t delim 10572:nl 10573h 10574s/\(.\{148\}\)..*/\1/ 10575t more1 10576s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10577p 10578n 10579b repl 10580:more1 10581s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10582p 10583g 10584s/.\{148\}// 10585t nl 10586:delim 10587h 10588s/\(.\{148\}\)..*/\1/ 10589t more2 10590s/["\\]/\\&/g; s/^/"/; s/$/"/ 10591p 10592b 10593:more2 10594s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10595p 10596g 10597s/.\{148\}// 10598t delim 10599' <conf$$subs.awk | sed ' 10600/^[^""]/{ 10601 N 10602 s/\n// 10603} 10604' >>$CONFIG_STATUS || ac_write_fail=1 10605rm -f conf$$subs.awk 10606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10607_ACAWK 10608cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10609 for (key in S) S_is_set[key] = 1 10610 FS = "" 10611 10612} 10613{ 10614 line = $ 0 10615 nfields = split(line, field, "@") 10616 substed = 0 10617 len = length(field[1]) 10618 for (i = 2; i < nfields; i++) { 10619 key = field[i] 10620 keylen = length(key) 10621 if (S_is_set[key]) { 10622 value = S[key] 10623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10624 len += length(value) + length(field[++i]) 10625 substed = 1 10626 } else 10627 len += 1 + keylen 10628 } 10629 10630 print line 10631} 10632 10633_ACAWK 10634_ACEOF 10635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10636if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10638else 10639 cat 10640fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10641 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10642_ACEOF 10643 10644# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10645# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10646# trailing colons and then remove the whole line if VPATH becomes empty 10647# (actually we leave an empty line to preserve line numbers). 10648if test "x$srcdir" = x.; then 10649 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10650h 10651s/// 10652s/^/:/ 10653s/[ ]*$/:/ 10654s/:\$(srcdir):/:/g 10655s/:\${srcdir}:/:/g 10656s/:@srcdir@:/:/g 10657s/^:*// 10658s/:*$// 10659x 10660s/\(=[ ]*\).*/\1/ 10661G 10662s/\n// 10663s/^[^=]*=[ ]*$// 10664}' 10665fi 10666 10667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10668fi # test -n "$CONFIG_FILES" 10669 10670# Set up the scripts for CONFIG_HEADERS section. 10671# No need to generate them if there are no CONFIG_HEADERS. 10672# This happens for instance with `./config.status Makefile'. 10673if test -n "$CONFIG_HEADERS"; then 10674cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10675BEGIN { 10676_ACEOF 10677 10678# Transform confdefs.h into an awk script `defines.awk', embedded as 10679# here-document in config.status, that substitutes the proper values into 10680# config.h.in to produce config.h. 10681 10682# Create a delimiter string that does not exist in confdefs.h, to ease 10683# handling of long lines. 10684ac_delim='%!_!# ' 10685for ac_last_try in false false :; do 10686 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10687 if test -z "$ac_tt"; then 10688 break 10689 elif $ac_last_try; then 10690 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10691 else 10692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10693 fi 10694done 10695 10696# For the awk script, D is an array of macro values keyed by name, 10697# likewise P contains macro parameters if any. Preserve backslash 10698# newline sequences. 10699 10700ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10701sed -n ' 10702s/.\{148\}/&'"$ac_delim"'/g 10703t rset 10704:rset 10705s/^[ ]*#[ ]*define[ ][ ]*/ / 10706t def 10707d 10708:def 10709s/\\$// 10710t bsnl 10711s/["\\]/\\&/g 10712s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10713D["\1"]=" \3"/p 10714s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10715d 10716:bsnl 10717s/["\\]/\\&/g 10718s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10719D["\1"]=" \3\\\\\\n"\\/p 10720t cont 10721s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10722t cont 10723d 10724:cont 10725n 10726s/.\{148\}/&'"$ac_delim"'/g 10727t clear 10728:clear 10729s/\\$// 10730t bsnlc 10731s/["\\]/\\&/g; s/^/"/; s/$/"/p 10732d 10733:bsnlc 10734s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10735b cont 10736' <confdefs.h | sed ' 10737s/'"$ac_delim"'/"\\\ 10738"/g' >>$CONFIG_STATUS || ac_write_fail=1 10739 10740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10741 for (key in D) D_is_set[key] = 1 10742 FS = "" 10743} 10744/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10745 line = \$ 0 10746 split(line, arg, " ") 10747 if (arg[1] == "#") { 10748 defundef = arg[2] 10749 mac1 = arg[3] 10750 } else { 10751 defundef = substr(arg[1], 2) 10752 mac1 = arg[2] 10753 } 10754 split(mac1, mac2, "(") #) 10755 macro = mac2[1] 10756 prefix = substr(line, 1, index(line, defundef) - 1) 10757 if (D_is_set[macro]) { 10758 # Preserve the white space surrounding the "#". 10759 print prefix "define", macro P[macro] D[macro] 10760 next 10761 } else { 10762 # Replace #undef with comments. This is necessary, for example, 10763 # in the case of _POSIX_SOURCE, which is predefined and required 10764 # on some systems where configure will not decide to define it. 10765 if (defundef == "undef") { 10766 print "/*", prefix defundef, macro, "*/" 10767 next 10768 } 10769 } 10770} 10771{ print } 10772_ACAWK 10773_ACEOF 10774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10775 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10776fi # test -n "$CONFIG_HEADERS" 10777 10778 10779eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10780shift 10781for ac_tag 10782do 10783 case $ac_tag in 10784 :[FHLC]) ac_mode=$ac_tag; continue;; 10785 esac 10786 case $ac_mode$ac_tag in 10787 :[FHL]*:*);; 10788 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10789 :[FH]-) ac_tag=-:-;; 10790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10791 esac 10792 ac_save_IFS=$IFS 10793 IFS=: 10794 set x $ac_tag 10795 IFS=$ac_save_IFS 10796 shift 10797 ac_file=$1 10798 shift 10799 10800 case $ac_mode in 10801 :L) ac_source=$1;; 10802 :[FH]) 10803 ac_file_inputs= 10804 for ac_f 10805 do 10806 case $ac_f in 10807 -) ac_f="$ac_tmp/stdin";; 10808 *) # Look for the file first in the build tree, then in the source tree 10809 # (if the path is not absolute). The absolute path cannot be DOS-style, 10810 # because $ac_f cannot contain `:'. 10811 test -f "$ac_f" || 10812 case $ac_f in 10813 [\\/$]*) false;; 10814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10815 esac || 10816 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10817 esac 10818 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10819 as_fn_append ac_file_inputs " '$ac_f'" 10820 done 10821 10822 # Let's still pretend it is `configure' which instantiates (i.e., don't 10823 # use $as_me), people would be surprised to read: 10824 # /* config.h. Generated by config.status. */ 10825 configure_input='Generated from '` 10826 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10827 `' by configure.' 10828 if test x"$ac_file" != x-; then 10829 configure_input="$ac_file. $configure_input" 10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10831printf "%s\n" "$as_me: creating $ac_file" >&6;} 10832 fi 10833 # Neutralize special characters interpreted by sed in replacement strings. 10834 case $configure_input in #( 10835 *\&* | *\|* | *\\* ) 10836 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 10837 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10838 *) ac_sed_conf_input=$configure_input;; 10839 esac 10840 10841 case $ac_tag in 10842 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10844 esac 10845 ;; 10846 esac 10847 10848 ac_dir=`$as_dirname -- "$ac_file" || 10849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10850 X"$ac_file" : 'X\(//\)[^/]' \| \ 10851 X"$ac_file" : 'X\(//\)$' \| \ 10852 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10853printf "%s\n" X"$ac_file" | 10854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10855 s//\1/ 10856 q 10857 } 10858 /^X\(\/\/\)[^/].*/{ 10859 s//\1/ 10860 q 10861 } 10862 /^X\(\/\/\)$/{ 10863 s//\1/ 10864 q 10865 } 10866 /^X\(\/\).*/{ 10867 s//\1/ 10868 q 10869 } 10870 s/.*/./; q'` 10871 as_dir="$ac_dir"; as_fn_mkdir_p 10872 ac_builddir=. 10873 10874case "$ac_dir" in 10875.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10876*) 10877 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 10878 # A ".." for each directory in $ac_dir_suffix. 10879 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10880 case $ac_top_builddir_sub in 10881 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10882 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10883 esac ;; 10884esac 10885ac_abs_top_builddir=$ac_pwd 10886ac_abs_builddir=$ac_pwd$ac_dir_suffix 10887# for backward compatibility: 10888ac_top_builddir=$ac_top_build_prefix 10889 10890case $srcdir in 10891 .) # We are building in place. 10892 ac_srcdir=. 10893 ac_top_srcdir=$ac_top_builddir_sub 10894 ac_abs_top_srcdir=$ac_pwd ;; 10895 [\\/]* | ?:[\\/]* ) # Absolute name. 10896 ac_srcdir=$srcdir$ac_dir_suffix; 10897 ac_top_srcdir=$srcdir 10898 ac_abs_top_srcdir=$srcdir ;; 10899 *) # Relative name. 10900 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10901 ac_top_srcdir=$ac_top_build_prefix$srcdir 10902 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10903esac 10904ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10905 10906 10907 case $ac_mode in 10908 :F) 10909 # 10910 # CONFIG_FILE 10911 # 10912 10913 case $INSTALL in 10914 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10915 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10916 esac 10917_ACEOF 10918 10919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10920# If the template does not know about datarootdir, expand it. 10921# FIXME: This hack should be removed a few years after 2.60. 10922ac_datarootdir_hack=; ac_datarootdir_seen= 10923ac_sed_dataroot=' 10924/datarootdir/ { 10925 p 10926 q 10927} 10928/@datadir@/p 10929/@docdir@/p 10930/@infodir@/p 10931/@localedir@/p 10932/@mandir@/p' 10933case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10934*datarootdir*) ac_datarootdir_seen=yes;; 10935*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10937printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10938_ACEOF 10939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10940 ac_datarootdir_hack=' 10941 s&@datadir@&$datadir&g 10942 s&@docdir@&$docdir&g 10943 s&@infodir@&$infodir&g 10944 s&@localedir@&$localedir&g 10945 s&@mandir@&$mandir&g 10946 s&\\\${datarootdir}&$datarootdir&g' ;; 10947esac 10948_ACEOF 10949 10950# Neutralize VPATH when `$srcdir' = `.'. 10951# Shell code in configure.ac might set extrasub. 10952# FIXME: do we really want to maintain this feature? 10953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10954ac_sed_extra="$ac_vpsub 10955$extrasub 10956_ACEOF 10957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10958:t 10959/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10960s|@configure_input@|$ac_sed_conf_input|;t t 10961s&@top_builddir@&$ac_top_builddir_sub&;t t 10962s&@top_build_prefix@&$ac_top_build_prefix&;t t 10963s&@srcdir@&$ac_srcdir&;t t 10964s&@abs_srcdir@&$ac_abs_srcdir&;t t 10965s&@top_srcdir@&$ac_top_srcdir&;t t 10966s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10967s&@builddir@&$ac_builddir&;t t 10968s&@abs_builddir@&$ac_abs_builddir&;t t 10969s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10970s&@INSTALL@&$ac_INSTALL&;t t 10971$ac_datarootdir_hack 10972" 10973eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10975 10976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10979 "$ac_tmp/out"`; test -z "$ac_out"; } && 10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10981which seems to be undefined. Please make sure it is defined" >&5 10982printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10983which seems to be undefined. Please make sure it is defined" >&2;} 10984 10985 rm -f "$ac_tmp/stdin" 10986 case $ac_file in 10987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10989 esac \ 10990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10991 ;; 10992 :H) 10993 # 10994 # CONFIG_HEADER 10995 # 10996 if test x"$ac_file" != x-; then 10997 { 10998 printf "%s\n" "/* $configure_input */" >&1 \ 10999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11000 } >"$ac_tmp/config.h" \ 11001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11004printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 11005 else 11006 rm -f "$ac_file" 11007 mv "$ac_tmp/config.h" "$ac_file" \ 11008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11009 fi 11010 else 11011 printf "%s\n" "/* $configure_input */" >&1 \ 11012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11013 || as_fn_error $? "could not create -" "$LINENO" 5 11014 fi 11015 ;; 11016 11017 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11018printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 11019 ;; 11020 esac 11021 11022 11023 case $ac_file$ac_mode in 11024 ".devel":C) if test -f .devel; then 11025 echo timestamp > stamp-h 11026 cat $srcdir/Makefile-devel-adds >> Makefile 11027 make depend || exit 1 11028fi ;; 11029 11030 esac 11031done # for ac_tag 11032 11033 11034as_fn_exit 0 11035_ACEOF 11036ac_clean_files=$ac_clean_files_save 11037 11038test $ac_write_fail = 0 || 11039 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11040 11041 11042# configure is writing to config.log, and then calls config.status. 11043# config.status does its own redirection, appending to config.log. 11044# Unfortunately, on DOS this fails, as config.log is still kept open 11045# by configure, so config.status won't be able to write to it; its 11046# output is simply discarded. So we exec the FD to /dev/null, 11047# effectively closing config.log, so it can be properly (re)opened and 11048# appended to by config.status. When coming back to configure, we 11049# need to make the FD available again. 11050if test "$no_create" != yes; then 11051 ac_cs_success=: 11052 ac_config_status_args= 11053 test "$silent" = yes && 11054 ac_config_status_args="$ac_config_status_args --quiet" 11055 exec 5>/dev/null 11056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11057 exec 5>>config.log 11058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11059 # would make configure fail if this is the last instruction. 11060 $ac_cs_success || as_fn_exit 1 11061fi 11062if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11064printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11065fi 11066 11067exit 0 11068