1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error STATUS ERROR [LINENO LOG_FD] 360# ---------------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with STATUS, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$1; test $as_status -eq 0 && as_status=1 367 if test "$4"; then 368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 370 fi 371 $as_echo "$as_me: error: $2" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529test -n "$DJDIR" || exec 7<&0 </dev/null 530exec 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME= 551PACKAGE_TARNAME= 552PACKAGE_VERSION= 553PACKAGE_STRING= 554PACKAGE_BUGREPORT= 555PACKAGE_URL= 556 557ac_unique_file="aprsc.c" 558# Factoring default headers for most tests. 559ac_includes_default="\ 560#include <stdio.h> 561#ifdef HAVE_SYS_TYPES_H 562# include <sys/types.h> 563#endif 564#ifdef HAVE_SYS_STAT_H 565# include <sys/stat.h> 566#endif 567#ifdef STDC_HEADERS 568# include <stdlib.h> 569# include <stddef.h> 570#else 571# ifdef HAVE_STDLIB_H 572# include <stdlib.h> 573# endif 574#endif 575#ifdef HAVE_STRING_H 576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 577# include <memory.h> 578# endif 579# include <string.h> 580#endif 581#ifdef HAVE_STRINGS_H 582# include <strings.h> 583#endif 584#ifdef HAVE_INTTYPES_H 585# include <inttypes.h> 586#endif 587#ifdef HAVE_STDINT_H 588# include <stdint.h> 589#endif 590#ifdef HAVE_UNISTD_H 591# include <unistd.h> 592#endif" 593 594ac_subst_vars='LTLIBOBJS 595LIBCRYPTO 596LIBSSL 597LIBZ 598LIBRT 599LIBOBJS 600LIBSOCKET 601LIBGETNAMEINFO 602LIBPTHREAD 603LIBM 604LIBCAP 605LIBEVENT 606ifGNUmake 607CFLAGS_ARCH 608LD 609EGREP 610GREP 611CPP 612OBJEXT 613EXEEXT 614ac_ct_CC 615CPPFLAGS 616LDFLAGS 617CFLAGS 618CC 619SET_MAKE 620target_alias 621host_alias 622build_alias 623LIBS 624ECHO_T 625ECHO_N 626ECHO_C 627DEFS 628mandir 629localedir 630libdir 631psdir 632pdfdir 633dvidir 634htmldir 635infodir 636docdir 637oldincludedir 638includedir 639localstatedir 640sharedstatedir 641sysconfdir 642datadir 643datarootdir 644libexecdir 645sbindir 646bindir 647program_transform_name 648prefix 649exec_prefix 650PACKAGE_URL 651PACKAGE_BUGREPORT 652PACKAGE_STRING 653PACKAGE_VERSION 654PACKAGE_TARNAME 655PACKAGE_NAME 656PATH_SEPARATOR 657SHELL' 658ac_subst_files='' 659ac_user_opts=' 660enable_option_checking 661enable_static_libevent 662with_ipv6_replacement_libc 663with_openssl 664' 665 ac_precious_vars='build_alias 666host_alias 667target_alias 668CC 669CFLAGS 670LDFLAGS 671LIBS 672CPPFLAGS 673CPP' 674 675 676# Initialize some variables set by options. 677ac_init_help= 678ac_init_version=false 679ac_unrecognized_opts= 680ac_unrecognized_sep= 681# The variables have the same names as the options, with 682# dashes changed to underlines. 683cache_file=/dev/null 684exec_prefix=NONE 685no_create= 686no_recursion= 687prefix=NONE 688program_prefix=NONE 689program_suffix=NONE 690program_transform_name=s,x,x, 691silent= 692site= 693srcdir= 694verbose= 695x_includes=NONE 696x_libraries=NONE 697 698# Installation directory options. 699# These are left unexpanded so users can "make install exec_prefix=/foo" 700# and all the variables that are supposed to be based on exec_prefix 701# by default will actually change. 702# Use braces instead of parens because sh, perl, etc. also accept them. 703# (The list follows the same order as the GNU Coding Standards.) 704bindir='${exec_prefix}/bin' 705sbindir='${exec_prefix}/sbin' 706libexecdir='${exec_prefix}/libexec' 707datarootdir='${prefix}/share' 708datadir='${datarootdir}' 709sysconfdir='${prefix}/etc' 710sharedstatedir='${prefix}/com' 711localstatedir='${prefix}/var' 712includedir='${prefix}/include' 713oldincludedir='/usr/include' 714docdir='${datarootdir}/doc/${PACKAGE}' 715infodir='${datarootdir}/info' 716htmldir='${docdir}' 717dvidir='${docdir}' 718pdfdir='${docdir}' 719psdir='${docdir}' 720libdir='${exec_prefix}/lib' 721localedir='${datarootdir}/locale' 722mandir='${datarootdir}/man' 723 724ac_prev= 725ac_dashdash= 726for ac_option 727do 728 # If the previous option needs an argument, assign it. 729 if test -n "$ac_prev"; then 730 eval $ac_prev=\$ac_option 731 ac_prev= 732 continue 733 fi 734 735 case $ac_option in 736 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 737 *=) ac_optarg= ;; 738 *) ac_optarg=yes ;; 739 esac 740 741 # Accept the important Cygnus configure options, so we can diagnose typos. 742 743 case $ac_dashdash$ac_option in 744 --) 745 ac_dashdash=yes ;; 746 747 -bindir | --bindir | --bindi | --bind | --bin | --bi) 748 ac_prev=bindir ;; 749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 750 bindir=$ac_optarg ;; 751 752 -build | --build | --buil | --bui | --bu) 753 ac_prev=build_alias ;; 754 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 755 build_alias=$ac_optarg ;; 756 757 -cache-file | --cache-file | --cache-fil | --cache-fi \ 758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 759 ac_prev=cache_file ;; 760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 762 cache_file=$ac_optarg ;; 763 764 --config-cache | -C) 765 cache_file=config.cache ;; 766 767 -datadir | --datadir | --datadi | --datad) 768 ac_prev=datadir ;; 769 -datadir=* | --datadir=* | --datadi=* | --datad=*) 770 datadir=$ac_optarg ;; 771 772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 773 | --dataroo | --dataro | --datar) 774 ac_prev=datarootdir ;; 775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 777 datarootdir=$ac_optarg ;; 778 779 -disable-* | --disable-*) 780 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 781 # Reject names that are not valid shell variable names. 782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 783 as_fn_error $? "invalid feature name: $ac_useropt" 784 ac_useropt_orig=$ac_useropt 785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 786 case $ac_user_opts in 787 *" 788"enable_$ac_useropt" 789"*) ;; 790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 791 ac_unrecognized_sep=', ';; 792 esac 793 eval enable_$ac_useropt=no ;; 794 795 -docdir | --docdir | --docdi | --doc | --do) 796 ac_prev=docdir ;; 797 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 798 docdir=$ac_optarg ;; 799 800 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 801 ac_prev=dvidir ;; 802 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 803 dvidir=$ac_optarg ;; 804 805 -enable-* | --enable-*) 806 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 807 # Reject names that are not valid shell variable names. 808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 809 as_fn_error $? "invalid feature name: $ac_useropt" 810 ac_useropt_orig=$ac_useropt 811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 812 case $ac_user_opts in 813 *" 814"enable_$ac_useropt" 815"*) ;; 816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 817 ac_unrecognized_sep=', ';; 818 esac 819 eval enable_$ac_useropt=\$ac_optarg ;; 820 821 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 822 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 823 | --exec | --exe | --ex) 824 ac_prev=exec_prefix ;; 825 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 826 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 827 | --exec=* | --exe=* | --ex=*) 828 exec_prefix=$ac_optarg ;; 829 830 -gas | --gas | --ga | --g) 831 # Obsolete; use --with-gas. 832 with_gas=yes ;; 833 834 -help | --help | --hel | --he | -h) 835 ac_init_help=long ;; 836 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 837 ac_init_help=recursive ;; 838 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 839 ac_init_help=short ;; 840 841 -host | --host | --hos | --ho) 842 ac_prev=host_alias ;; 843 -host=* | --host=* | --hos=* | --ho=*) 844 host_alias=$ac_optarg ;; 845 846 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 847 ac_prev=htmldir ;; 848 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 849 | --ht=*) 850 htmldir=$ac_optarg ;; 851 852 -includedir | --includedir | --includedi | --included | --include \ 853 | --includ | --inclu | --incl | --inc) 854 ac_prev=includedir ;; 855 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 856 | --includ=* | --inclu=* | --incl=* | --inc=*) 857 includedir=$ac_optarg ;; 858 859 -infodir | --infodir | --infodi | --infod | --info | --inf) 860 ac_prev=infodir ;; 861 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 862 infodir=$ac_optarg ;; 863 864 -libdir | --libdir | --libdi | --libd) 865 ac_prev=libdir ;; 866 -libdir=* | --libdir=* | --libdi=* | --libd=*) 867 libdir=$ac_optarg ;; 868 869 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 870 | --libexe | --libex | --libe) 871 ac_prev=libexecdir ;; 872 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 873 | --libexe=* | --libex=* | --libe=*) 874 libexecdir=$ac_optarg ;; 875 876 -localedir | --localedir | --localedi | --localed | --locale) 877 ac_prev=localedir ;; 878 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 879 localedir=$ac_optarg ;; 880 881 -localstatedir | --localstatedir | --localstatedi | --localstated \ 882 | --localstate | --localstat | --localsta | --localst | --locals) 883 ac_prev=localstatedir ;; 884 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 885 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 886 localstatedir=$ac_optarg ;; 887 888 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 889 ac_prev=mandir ;; 890 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 891 mandir=$ac_optarg ;; 892 893 -nfp | --nfp | --nf) 894 # Obsolete; use --without-fp. 895 with_fp=no ;; 896 897 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 898 | --no-cr | --no-c | -n) 899 no_create=yes ;; 900 901 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 902 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 903 no_recursion=yes ;; 904 905 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 906 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 907 | --oldin | --oldi | --old | --ol | --o) 908 ac_prev=oldincludedir ;; 909 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 910 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 911 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 912 oldincludedir=$ac_optarg ;; 913 914 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 915 ac_prev=prefix ;; 916 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 917 prefix=$ac_optarg ;; 918 919 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 920 | --program-pre | --program-pr | --program-p) 921 ac_prev=program_prefix ;; 922 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 923 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 924 program_prefix=$ac_optarg ;; 925 926 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 927 | --program-suf | --program-su | --program-s) 928 ac_prev=program_suffix ;; 929 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 930 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 931 program_suffix=$ac_optarg ;; 932 933 -program-transform-name | --program-transform-name \ 934 | --program-transform-nam | --program-transform-na \ 935 | --program-transform-n | --program-transform- \ 936 | --program-transform | --program-transfor \ 937 | --program-transfo | --program-transf \ 938 | --program-trans | --program-tran \ 939 | --progr-tra | --program-tr | --program-t) 940 ac_prev=program_transform_name ;; 941 -program-transform-name=* | --program-transform-name=* \ 942 | --program-transform-nam=* | --program-transform-na=* \ 943 | --program-transform-n=* | --program-transform-=* \ 944 | --program-transform=* | --program-transfor=* \ 945 | --program-transfo=* | --program-transf=* \ 946 | --program-trans=* | --program-tran=* \ 947 | --progr-tra=* | --program-tr=* | --program-t=*) 948 program_transform_name=$ac_optarg ;; 949 950 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 951 ac_prev=pdfdir ;; 952 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 953 pdfdir=$ac_optarg ;; 954 955 -psdir | --psdir | --psdi | --psd | --ps) 956 ac_prev=psdir ;; 957 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 958 psdir=$ac_optarg ;; 959 960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 961 | -silent | --silent | --silen | --sile | --sil) 962 silent=yes ;; 963 964 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 965 ac_prev=sbindir ;; 966 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 967 | --sbi=* | --sb=*) 968 sbindir=$ac_optarg ;; 969 970 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 971 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 972 | --sharedst | --shareds | --shared | --share | --shar \ 973 | --sha | --sh) 974 ac_prev=sharedstatedir ;; 975 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 976 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 977 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 978 | --sha=* | --sh=*) 979 sharedstatedir=$ac_optarg ;; 980 981 -site | --site | --sit) 982 ac_prev=site ;; 983 -site=* | --site=* | --sit=*) 984 site=$ac_optarg ;; 985 986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 987 ac_prev=srcdir ;; 988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 989 srcdir=$ac_optarg ;; 990 991 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 992 | --syscon | --sysco | --sysc | --sys | --sy) 993 ac_prev=sysconfdir ;; 994 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 995 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 996 sysconfdir=$ac_optarg ;; 997 998 -target | --target | --targe | --targ | --tar | --ta | --t) 999 ac_prev=target_alias ;; 1000 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1001 target_alias=$ac_optarg ;; 1002 1003 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1004 verbose=yes ;; 1005 1006 -version | --version | --versio | --versi | --vers | -V) 1007 ac_init_version=: ;; 1008 1009 -with-* | --with-*) 1010 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1011 # Reject names that are not valid shell variable names. 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1013 as_fn_error $? "invalid package name: $ac_useropt" 1014 ac_useropt_orig=$ac_useropt 1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1016 case $ac_user_opts in 1017 *" 1018"with_$ac_useropt" 1019"*) ;; 1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1021 ac_unrecognized_sep=', ';; 1022 esac 1023 eval with_$ac_useropt=\$ac_optarg ;; 1024 1025 -without-* | --without-*) 1026 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1029 as_fn_error $? "invalid package name: $ac_useropt" 1030 ac_useropt_orig=$ac_useropt 1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1032 case $ac_user_opts in 1033 *" 1034"with_$ac_useropt" 1035"*) ;; 1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1037 ac_unrecognized_sep=', ';; 1038 esac 1039 eval with_$ac_useropt=no ;; 1040 1041 --x) 1042 # Obsolete; use --with-x. 1043 with_x=yes ;; 1044 1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1046 | --x-incl | --x-inc | --x-in | --x-i) 1047 ac_prev=x_includes ;; 1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1050 x_includes=$ac_optarg ;; 1051 1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1054 ac_prev=x_libraries ;; 1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1057 x_libraries=$ac_optarg ;; 1058 1059 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1060Try \`$0 --help' for more information" 1061 ;; 1062 1063 *=*) 1064 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1065 # Reject names that are not valid shell variable names. 1066 case $ac_envvar in #( 1067 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1068 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1069 esac 1070 eval $ac_envvar=\$ac_optarg 1071 export $ac_envvar ;; 1072 1073 *) 1074 # FIXME: should be removed in autoconf 3.0. 1075 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1077 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1079 ;; 1080 1081 esac 1082done 1083 1084if test -n "$ac_prev"; then 1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1086 as_fn_error $? "missing argument to $ac_option" 1087fi 1088 1089if test -n "$ac_unrecognized_opts"; then 1090 case $enable_option_checking in 1091 no) ;; 1092 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1093 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1094 esac 1095fi 1096 1097# Check all directory arguments for consistency. 1098for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1099 datadir sysconfdir sharedstatedir localstatedir includedir \ 1100 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1101 libdir localedir mandir 1102do 1103 eval ac_val=\$$ac_var 1104 # Remove trailing slashes. 1105 case $ac_val in 1106 */ ) 1107 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1108 eval $ac_var=\$ac_val;; 1109 esac 1110 # Be sure to have absolute directory names. 1111 case $ac_val in 1112 [\\/$]* | ?:[\\/]* ) continue;; 1113 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1114 esac 1115 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1116done 1117 1118# There might be people who depend on the old broken behavior: `$host' 1119# used to hold the argument of --host etc. 1120# FIXME: To remove some day. 1121build=$build_alias 1122host=$host_alias 1123target=$target_alias 1124 1125# FIXME: To remove some day. 1126if test "x$host_alias" != x; then 1127 if test "x$build_alias" = x; then 1128 cross_compiling=maybe 1129 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1130 If a cross compiler is detected then cross compile mode will be used" >&2 1131 elif test "x$build_alias" != "x$host_alias"; then 1132 cross_compiling=yes 1133 fi 1134fi 1135 1136ac_tool_prefix= 1137test -n "$host_alias" && ac_tool_prefix=$host_alias- 1138 1139test "$silent" = yes && exec 6>/dev/null 1140 1141 1142ac_pwd=`pwd` && test -n "$ac_pwd" && 1143ac_ls_di=`ls -di .` && 1144ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1145 as_fn_error $? "working directory cannot be determined" 1146test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1147 as_fn_error $? "pwd does not report name of working directory" 1148 1149 1150# Find the source files, if location was not specified. 1151if test -z "$srcdir"; then 1152 ac_srcdir_defaulted=yes 1153 # Try the directory containing this script, then the parent directory. 1154 ac_confdir=`$as_dirname -- "$as_myself" || 1155$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1156 X"$as_myself" : 'X\(//\)[^/]' \| \ 1157 X"$as_myself" : 'X\(//\)$' \| \ 1158 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1159$as_echo X"$as_myself" | 1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1161 s//\1/ 1162 q 1163 } 1164 /^X\(\/\/\)[^/].*/{ 1165 s//\1/ 1166 q 1167 } 1168 /^X\(\/\/\)$/{ 1169 s//\1/ 1170 q 1171 } 1172 /^X\(\/\).*/{ 1173 s//\1/ 1174 q 1175 } 1176 s/.*/./; q'` 1177 srcdir=$ac_confdir 1178 if test ! -r "$srcdir/$ac_unique_file"; then 1179 srcdir=.. 1180 fi 1181else 1182 ac_srcdir_defaulted=no 1183fi 1184if test ! -r "$srcdir/$ac_unique_file"; then 1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1186 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1187fi 1188ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1189ac_abs_confdir=`( 1190 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1191 pwd)` 1192# When building in place, set srcdir=. 1193if test "$ac_abs_confdir" = "$ac_pwd"; then 1194 srcdir=. 1195fi 1196# Remove unnecessary trailing slashes from srcdir. 1197# Double slashes in file names in object file debugging info 1198# mess up M-x gdb in Emacs. 1199case $srcdir in 1200*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1201esac 1202for ac_var in $ac_precious_vars; do 1203 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1204 eval ac_env_${ac_var}_value=\$${ac_var} 1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1206 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1207done 1208 1209# 1210# Report the --help message. 1211# 1212if test "$ac_init_help" = "long"; then 1213 # Omit some internal or obsolete options to make the list less imposing. 1214 # This message is too long to be a string in the A/UX 3.1 sh. 1215 cat <<_ACEOF 1216\`configure' configures this package to adapt to many kinds of systems. 1217 1218Usage: $0 [OPTION]... [VAR=VALUE]... 1219 1220To assign environment variables (e.g., CC, CFLAGS...), specify them as 1221VAR=VALUE. See below for descriptions of some of the useful variables. 1222 1223Defaults for the options are specified in brackets. 1224 1225Configuration: 1226 -h, --help display this help and exit 1227 --help=short display options specific to this package 1228 --help=recursive display the short help of all the included packages 1229 -V, --version display version information and exit 1230 -q, --quiet, --silent do not print \`checking ...' messages 1231 --cache-file=FILE cache test results in FILE [disabled] 1232 -C, --config-cache alias for \`--cache-file=config.cache' 1233 -n, --no-create do not create output files 1234 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1235 1236Installation directories: 1237 --prefix=PREFIX install architecture-independent files in PREFIX 1238 [$ac_default_prefix] 1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1240 [PREFIX] 1241 1242By default, \`make install' will install all the files in 1243\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1244an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1245for instance \`--prefix=\$HOME'. 1246 1247For better control, use the options below. 1248 1249Fine tuning of the installation directories: 1250 --bindir=DIR user executables [EPREFIX/bin] 1251 --sbindir=DIR system admin executables [EPREFIX/sbin] 1252 --libexecdir=DIR program executables [EPREFIX/libexec] 1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1256 --libdir=DIR object code libraries [EPREFIX/lib] 1257 --includedir=DIR C header files [PREFIX/include] 1258 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1261 --infodir=DIR info documentation [DATAROOTDIR/info] 1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1263 --mandir=DIR man documentation [DATAROOTDIR/man] 1264 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1265 --htmldir=DIR html documentation [DOCDIR] 1266 --dvidir=DIR dvi documentation [DOCDIR] 1267 --pdfdir=DIR pdf documentation [DOCDIR] 1268 --psdir=DIR ps documentation [DOCDIR] 1269_ACEOF 1270 1271 cat <<\_ACEOF 1272_ACEOF 1273fi 1274 1275if test -n "$ac_init_help"; then 1276 1277 cat <<\_ACEOF 1278 1279Optional Features: 1280 --disable-option-checking ignore unrecognized --enable/--with options 1281 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1282 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1283 --enable-static-libevent=path 1284 link against static libevent.a [default=do not] 1285 1286Optional Packages: 1287 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1288 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1289 --with-ipv6-replacement-libc If system has broken getaddrinfo() and friends 1290 --with-openssl=DIR Include OpenSSL support (requires OpenSSL >= 0.9.7) 1291 1292Some influential environment variables: 1293 CC C compiler command 1294 CFLAGS C compiler flags 1295 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1296 nonstandard directory <lib dir> 1297 LIBS libraries to pass to the linker, e.g. -l<library> 1298 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1299 you have headers in a nonstandard directory <include dir> 1300 CPP C preprocessor 1301 1302Use these variables to override the choices made by `configure' or to help 1303it to find libraries and programs with nonstandard names/locations. 1304 1305Report bugs to the package provider. 1306_ACEOF 1307ac_status=$? 1308fi 1309 1310if test "$ac_init_help" = "recursive"; then 1311 # If there are subdirs, report their specific --help. 1312 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1313 test -d "$ac_dir" || 1314 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1315 continue 1316 ac_builddir=. 1317 1318case "$ac_dir" in 1319.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1320*) 1321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1322 # A ".." for each directory in $ac_dir_suffix. 1323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1324 case $ac_top_builddir_sub in 1325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1327 esac ;; 1328esac 1329ac_abs_top_builddir=$ac_pwd 1330ac_abs_builddir=$ac_pwd$ac_dir_suffix 1331# for backward compatibility: 1332ac_top_builddir=$ac_top_build_prefix 1333 1334case $srcdir in 1335 .) # We are building in place. 1336 ac_srcdir=. 1337 ac_top_srcdir=$ac_top_builddir_sub 1338 ac_abs_top_srcdir=$ac_pwd ;; 1339 [\\/]* | ?:[\\/]* ) # Absolute name. 1340 ac_srcdir=$srcdir$ac_dir_suffix; 1341 ac_top_srcdir=$srcdir 1342 ac_abs_top_srcdir=$srcdir ;; 1343 *) # Relative name. 1344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1345 ac_top_srcdir=$ac_top_build_prefix$srcdir 1346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1347esac 1348ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1349 1350 cd "$ac_dir" || { ac_status=$?; continue; } 1351 # Check for guested configure. 1352 if test -f "$ac_srcdir/configure.gnu"; then 1353 echo && 1354 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1355 elif test -f "$ac_srcdir/configure"; then 1356 echo && 1357 $SHELL "$ac_srcdir/configure" --help=recursive 1358 else 1359 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1360 fi || ac_status=$? 1361 cd "$ac_pwd" || { ac_status=$?; break; } 1362 done 1363fi 1364 1365test -n "$ac_init_help" && exit $ac_status 1366if $ac_init_version; then 1367 cat <<\_ACEOF 1368configure 1369generated by GNU Autoconf 2.67 1370 1371Copyright (C) 2010 Free Software Foundation, Inc. 1372This configure script is free software; the Free Software Foundation 1373gives unlimited permission to copy, distribute and modify it. 1374_ACEOF 1375 exit 1376fi 1377 1378## ------------------------ ## 1379## Autoconf initialization. ## 1380## ------------------------ ## 1381 1382# ac_fn_c_try_compile LINENO 1383# -------------------------- 1384# Try to compile conftest.$ac_ext, and return whether this succeeded. 1385ac_fn_c_try_compile () 1386{ 1387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1388 rm -f conftest.$ac_objext 1389 if { { ac_try="$ac_compile" 1390case "(($ac_try" in 1391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1392 *) ac_try_echo=$ac_try;; 1393esac 1394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1395$as_echo "$ac_try_echo"; } >&5 1396 (eval "$ac_compile") 2>conftest.err 1397 ac_status=$? 1398 if test -s conftest.err; then 1399 grep -v '^ *+' conftest.err >conftest.er1 1400 cat conftest.er1 >&5 1401 mv -f conftest.er1 conftest.err 1402 fi 1403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1404 test $ac_status = 0; } && { 1405 test -z "$ac_c_werror_flag" || 1406 test ! -s conftest.err 1407 } && test -s conftest.$ac_objext; then : 1408 ac_retval=0 1409else 1410 $as_echo "$as_me: failed program was:" >&5 1411sed 's/^/| /' conftest.$ac_ext >&5 1412 1413 ac_retval=1 1414fi 1415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1416 as_fn_set_status $ac_retval 1417 1418} # ac_fn_c_try_compile 1419 1420# ac_fn_c_try_cpp LINENO 1421# ---------------------- 1422# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1423ac_fn_c_try_cpp () 1424{ 1425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1426 if { { ac_try="$ac_cpp conftest.$ac_ext" 1427case "(($ac_try" in 1428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1429 *) ac_try_echo=$ac_try;; 1430esac 1431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1432$as_echo "$ac_try_echo"; } >&5 1433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1434 ac_status=$? 1435 if test -s conftest.err; then 1436 grep -v '^ *+' conftest.err >conftest.er1 1437 cat conftest.er1 >&5 1438 mv -f conftest.er1 conftest.err 1439 fi 1440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1441 test $ac_status = 0; } > conftest.i && { 1442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1443 test ! -s conftest.err 1444 }; then : 1445 ac_retval=0 1446else 1447 $as_echo "$as_me: failed program was:" >&5 1448sed 's/^/| /' conftest.$ac_ext >&5 1449 1450 ac_retval=1 1451fi 1452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1453 as_fn_set_status $ac_retval 1454 1455} # ac_fn_c_try_cpp 1456 1457# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1458# ------------------------------------------------------- 1459# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1460# the include files in INCLUDES and setting the cache variable VAR 1461# accordingly. 1462ac_fn_c_check_header_mongrel () 1463{ 1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1465 if eval "test \"\${$3+set}\"" = set; then : 1466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1467$as_echo_n "checking for $2... " >&6; } 1468if eval "test \"\${$3+set}\"" = set; then : 1469 $as_echo_n "(cached) " >&6 1470fi 1471eval ac_res=\$$3 1472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1473$as_echo "$ac_res" >&6; } 1474else 1475 # Is the header compilable? 1476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1477$as_echo_n "checking $2 usability... " >&6; } 1478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1479/* end confdefs.h. */ 1480$4 1481#include <$2> 1482_ACEOF 1483if ac_fn_c_try_compile "$LINENO"; then : 1484 ac_header_compiler=yes 1485else 1486 ac_header_compiler=no 1487fi 1488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1490$as_echo "$ac_header_compiler" >&6; } 1491 1492# Is the header present? 1493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1494$as_echo_n "checking $2 presence... " >&6; } 1495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1496/* end confdefs.h. */ 1497#include <$2> 1498_ACEOF 1499if ac_fn_c_try_cpp "$LINENO"; then : 1500 ac_header_preproc=yes 1501else 1502 ac_header_preproc=no 1503fi 1504rm -f conftest.err conftest.i conftest.$ac_ext 1505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1506$as_echo "$ac_header_preproc" >&6; } 1507 1508# So? What about this header? 1509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1510 yes:no: ) 1511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1512$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1514$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1515 ;; 1516 no:yes:* ) 1517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1518$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1520$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1522$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1524$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1526$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1527 ;; 1528esac 1529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1530$as_echo_n "checking for $2... " >&6; } 1531if eval "test \"\${$3+set}\"" = set; then : 1532 $as_echo_n "(cached) " >&6 1533else 1534 eval "$3=\$ac_header_compiler" 1535fi 1536eval ac_res=\$$3 1537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1538$as_echo "$ac_res" >&6; } 1539fi 1540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1541 1542} # ac_fn_c_check_header_mongrel 1543 1544# ac_fn_c_try_run LINENO 1545# ---------------------- 1546# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1547# that executables *can* be run. 1548ac_fn_c_try_run () 1549{ 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 if { { ac_try="$ac_link" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_link") 2>&5 1559 ac_status=$? 1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1561 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1562 { { case "(($ac_try" in 1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1564 *) ac_try_echo=$ac_try;; 1565esac 1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1567$as_echo "$ac_try_echo"; } >&5 1568 (eval "$ac_try") 2>&5 1569 ac_status=$? 1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1571 test $ac_status = 0; }; }; then : 1572 ac_retval=0 1573else 1574 $as_echo "$as_me: program exited with status $ac_status" >&5 1575 $as_echo "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=$ac_status 1579fi 1580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1582 as_fn_set_status $ac_retval 1583 1584} # ac_fn_c_try_run 1585 1586# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1587# ------------------------------------------------------- 1588# Tests whether HEADER exists and can be compiled using the include files in 1589# INCLUDES, setting the cache variable VAR accordingly. 1590ac_fn_c_check_header_compile () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1594$as_echo_n "checking for $2... " >&6; } 1595if eval "test \"\${$3+set}\"" = set; then : 1596 $as_echo_n "(cached) " >&6 1597else 1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1599/* end confdefs.h. */ 1600$4 1601#include <$2> 1602_ACEOF 1603if ac_fn_c_try_compile "$LINENO"; then : 1604 eval "$3=yes" 1605else 1606 eval "$3=no" 1607fi 1608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1609fi 1610eval ac_res=\$$3 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1612$as_echo "$ac_res" >&6; } 1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1614 1615} # ac_fn_c_check_header_compile 1616 1617# ac_fn_c_try_link LINENO 1618# ----------------------- 1619# Try to link conftest.$ac_ext, and return whether this succeeded. 1620ac_fn_c_try_link () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 rm -f conftest.$ac_objext conftest$ac_exeext 1624 if { { ac_try="$ac_link" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_link") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } && { 1640 test -z "$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 } && test -s conftest$ac_exeext && { 1643 test "$cross_compiling" = yes || 1644 $as_test_x conftest$ac_exeext 1645 }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: failed program was:" >&5 1649sed 's/^/| /' conftest.$ac_ext >&5 1650 1651 ac_retval=1 1652fi 1653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1655 # interfere with the next link command; also delete a directory that is 1656 # left behind by Apple's compiler. We do this before executing the actions. 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_link 1662 1663# ac_fn_c_check_func LINENO FUNC VAR 1664# ---------------------------------- 1665# Tests whether FUNC exists, setting the cache variable VAR accordingly 1666ac_fn_c_check_func () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1670$as_echo_n "checking for $2... " >&6; } 1671if eval "test \"\${$3+set}\"" = set; then : 1672 $as_echo_n "(cached) " >&6 1673else 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1677 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1678#define $2 innocuous_$2 1679 1680/* System header to define __stub macros and hopefully few prototypes, 1681 which can conflict with char $2 (); below. 1682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1683 <limits.h> exists even on freestanding compilers. */ 1684 1685#ifdef __STDC__ 1686# include <limits.h> 1687#else 1688# include <assert.h> 1689#endif 1690 1691#undef $2 1692 1693/* Override any GCC internal prototype to avoid an error. 1694 Use char because int might match the return type of a GCC 1695 builtin and then its argument prototype would still apply. */ 1696#ifdef __cplusplus 1697extern "C" 1698#endif 1699char $2 (); 1700/* The GNU C library defines this for functions which it implements 1701 to always fail with ENOSYS. Some functions are actually named 1702 something starting with __ and the normal name is an alias. */ 1703#if defined __stub_$2 || defined __stub___$2 1704choke me 1705#endif 1706 1707int 1708main () 1709{ 1710return $2 (); 1711 ; 1712 return 0; 1713} 1714_ACEOF 1715if ac_fn_c_try_link "$LINENO"; then : 1716 eval "$3=yes" 1717else 1718 eval "$3=no" 1719fi 1720rm -f core conftest.err conftest.$ac_objext \ 1721 conftest$ac_exeext conftest.$ac_ext 1722fi 1723eval ac_res=\$$3 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725$as_echo "$ac_res" >&6; } 1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1727 1728} # ac_fn_c_check_func 1729cat >config.log <<_ACEOF 1730This file contains any messages produced by compilers while 1731running configure, to aid debugging if configure makes a mistake. 1732 1733It was created by $as_me, which was 1734generated by GNU Autoconf 2.67. Invocation command line was 1735 1736 $ $0 $@ 1737 1738_ACEOF 1739exec 5>>config.log 1740{ 1741cat <<_ASUNAME 1742## --------- ## 1743## Platform. ## 1744## --------- ## 1745 1746hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1747uname -m = `(uname -m) 2>/dev/null || echo unknown` 1748uname -r = `(uname -r) 2>/dev/null || echo unknown` 1749uname -s = `(uname -s) 2>/dev/null || echo unknown` 1750uname -v = `(uname -v) 2>/dev/null || echo unknown` 1751 1752/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1753/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1754 1755/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1756/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1757/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1758/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1759/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1760/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1761/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1762 1763_ASUNAME 1764 1765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1766for as_dir in $PATH 1767do 1768 IFS=$as_save_IFS 1769 test -z "$as_dir" && as_dir=. 1770 $as_echo "PATH: $as_dir" 1771 done 1772IFS=$as_save_IFS 1773 1774} >&5 1775 1776cat >&5 <<_ACEOF 1777 1778 1779## ----------- ## 1780## Core tests. ## 1781## ----------- ## 1782 1783_ACEOF 1784 1785 1786# Keep a trace of the command line. 1787# Strip out --no-create and --no-recursion so they do not pile up. 1788# Strip out --silent because we don't want to record it for future runs. 1789# Also quote any args containing shell meta-characters. 1790# Make two passes to allow for proper duplicate-argument suppression. 1791ac_configure_args= 1792ac_configure_args0= 1793ac_configure_args1= 1794ac_must_keep_next=false 1795for ac_pass in 1 2 1796do 1797 for ac_arg 1798 do 1799 case $ac_arg in 1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1802 | -silent | --silent | --silen | --sile | --sil) 1803 continue ;; 1804 *\'*) 1805 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1806 esac 1807 case $ac_pass in 1808 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1809 2) 1810 as_fn_append ac_configure_args1 " '$ac_arg'" 1811 if test $ac_must_keep_next = true; then 1812 ac_must_keep_next=false # Got value, back to normal. 1813 else 1814 case $ac_arg in 1815 *=* | --config-cache | -C | -disable-* | --disable-* \ 1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1818 | -with-* | --with-* | -without-* | --without-* | --x) 1819 case "$ac_configure_args0 " in 1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1821 esac 1822 ;; 1823 -* ) ac_must_keep_next=true ;; 1824 esac 1825 fi 1826 as_fn_append ac_configure_args " '$ac_arg'" 1827 ;; 1828 esac 1829 done 1830done 1831{ ac_configure_args0=; unset ac_configure_args0;} 1832{ ac_configure_args1=; unset ac_configure_args1;} 1833 1834# When interrupted or exit'd, cleanup temporary files, and complete 1835# config.log. We remove comments because anyway the quotes in there 1836# would cause problems or look ugly. 1837# WARNING: Use '\'' to represent an apostrophe within the trap. 1838# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1839trap 'exit_status=$? 1840 # Save into config.log some information that might help in debugging. 1841 { 1842 echo 1843 1844 $as_echo "## ---------------- ## 1845## Cache variables. ## 1846## ---------------- ##" 1847 echo 1848 # The following way of writing the cache mishandles newlines in values, 1849( 1850 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1851 eval ac_val=\$$ac_var 1852 case $ac_val in #( 1853 *${as_nl}*) 1854 case $ac_var in #( 1855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1856$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1857 esac 1858 case $ac_var in #( 1859 _ | IFS | as_nl) ;; #( 1860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1861 *) { eval $ac_var=; unset $ac_var;} ;; 1862 esac ;; 1863 esac 1864 done 1865 (set) 2>&1 | 1866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1867 *${as_nl}ac_space=\ *) 1868 sed -n \ 1869 "s/'\''/'\''\\\\'\'''\''/g; 1870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1871 ;; #( 1872 *) 1873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1874 ;; 1875 esac | 1876 sort 1877) 1878 echo 1879 1880 $as_echo "## ----------------- ## 1881## Output variables. ## 1882## ----------------- ##" 1883 echo 1884 for ac_var in $ac_subst_vars 1885 do 1886 eval ac_val=\$$ac_var 1887 case $ac_val in 1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1889 esac 1890 $as_echo "$ac_var='\''$ac_val'\''" 1891 done | sort 1892 echo 1893 1894 if test -n "$ac_subst_files"; then 1895 $as_echo "## ------------------- ## 1896## File substitutions. ## 1897## ------------------- ##" 1898 echo 1899 for ac_var in $ac_subst_files 1900 do 1901 eval ac_val=\$$ac_var 1902 case $ac_val in 1903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1904 esac 1905 $as_echo "$ac_var='\''$ac_val'\''" 1906 done | sort 1907 echo 1908 fi 1909 1910 if test -s confdefs.h; then 1911 $as_echo "## ----------- ## 1912## confdefs.h. ## 1913## ----------- ##" 1914 echo 1915 cat confdefs.h 1916 echo 1917 fi 1918 test "$ac_signal" != 0 && 1919 $as_echo "$as_me: caught signal $ac_signal" 1920 $as_echo "$as_me: exit $exit_status" 1921 } >&5 1922 rm -f core *.core core.conftest.* && 1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1924 exit $exit_status 1925' 0 1926for ac_signal in 1 2 13 15; do 1927 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1928done 1929ac_signal=0 1930 1931# confdefs.h avoids OS command line length limits that DEFS can exceed. 1932rm -f -r conftest* confdefs.h 1933 1934$as_echo "/* confdefs.h */" > confdefs.h 1935 1936# Predefined preprocessor variables. 1937 1938cat >>confdefs.h <<_ACEOF 1939#define PACKAGE_NAME "$PACKAGE_NAME" 1940_ACEOF 1941 1942cat >>confdefs.h <<_ACEOF 1943#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1944_ACEOF 1945 1946cat >>confdefs.h <<_ACEOF 1947#define PACKAGE_VERSION "$PACKAGE_VERSION" 1948_ACEOF 1949 1950cat >>confdefs.h <<_ACEOF 1951#define PACKAGE_STRING "$PACKAGE_STRING" 1952_ACEOF 1953 1954cat >>confdefs.h <<_ACEOF 1955#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1956_ACEOF 1957 1958cat >>confdefs.h <<_ACEOF 1959#define PACKAGE_URL "$PACKAGE_URL" 1960_ACEOF 1961 1962 1963# Let the site file select an alternate cache file if it wants to. 1964# Prefer an explicitly selected file to automatically selected ones. 1965ac_site_file1=NONE 1966ac_site_file2=NONE 1967if test -n "$CONFIG_SITE"; then 1968 # We do not want a PATH search for config.site. 1969 case $CONFIG_SITE in #(( 1970 -*) ac_site_file1=./$CONFIG_SITE;; 1971 */*) ac_site_file1=$CONFIG_SITE;; 1972 *) ac_site_file1=./$CONFIG_SITE;; 1973 esac 1974elif test "x$prefix" != xNONE; then 1975 ac_site_file1=$prefix/share/config.site 1976 ac_site_file2=$prefix/etc/config.site 1977else 1978 ac_site_file1=$ac_default_prefix/share/config.site 1979 ac_site_file2=$ac_default_prefix/etc/config.site 1980fi 1981for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1982do 1983 test "x$ac_site_file" = xNONE && continue 1984 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1986$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1987 sed 's/^/| /' "$ac_site_file" >&5 1988 . "$ac_site_file" \ 1989 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1991as_fn_error $? "failed to load site script $ac_site_file 1992See \`config.log' for more details" "$LINENO" 5 ; } 1993 fi 1994done 1995 1996if test -r "$cache_file"; then 1997 # Some versions of bash will fail to source /dev/null (special files 1998 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1999 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2001$as_echo "$as_me: loading cache $cache_file" >&6;} 2002 case $cache_file in 2003 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2004 *) . "./$cache_file";; 2005 esac 2006 fi 2007else 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2009$as_echo "$as_me: creating cache $cache_file" >&6;} 2010 >$cache_file 2011fi 2012 2013# Check that the precious variables saved in the cache have kept the same 2014# value. 2015ac_cache_corrupted=false 2016for ac_var in $ac_precious_vars; do 2017 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2018 eval ac_new_set=\$ac_env_${ac_var}_set 2019 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2020 eval ac_new_val=\$ac_env_${ac_var}_value 2021 case $ac_old_set,$ac_new_set in 2022 set,) 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2024$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2025 ac_cache_corrupted=: ;; 2026 ,set) 2027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2028$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2029 ac_cache_corrupted=: ;; 2030 ,);; 2031 *) 2032 if test "x$ac_old_val" != "x$ac_new_val"; then 2033 # differences in whitespace do not lead to failure. 2034 ac_old_val_w=`echo x $ac_old_val` 2035 ac_new_val_w=`echo x $ac_new_val` 2036 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2038$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2039 ac_cache_corrupted=: 2040 else 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2042$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2043 eval $ac_var=\$ac_old_val 2044 fi 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2046$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2048$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2049 fi;; 2050 esac 2051 # Pass precious variables to config.status. 2052 if test "$ac_new_set" = set; then 2053 case $ac_new_val in 2054 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2055 *) ac_arg=$ac_var=$ac_new_val ;; 2056 esac 2057 case " $ac_configure_args " in 2058 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2059 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2060 esac 2061 fi 2062done 2063if $ac_cache_corrupted; then 2064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2067$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2068 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2069fi 2070## -------------------- ## 2071## Main body of script. ## 2072## -------------------- ## 2073 2074ac_ext=c 2075ac_cpp='$CPP $CPPFLAGS' 2076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2078ac_compiler_gnu=$ac_cv_c_compiler_gnu 2079 2080 2081 2082 2083VERSION="`cat VERSION`" 2084PACKAGE=aprsc 2085 2086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2087$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2088set x ${MAKE-make} 2089ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2090if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2091 $as_echo_n "(cached) " >&6 2092else 2093 cat >conftest.make <<\_ACEOF 2094SHELL = /bin/sh 2095all: 2096 @echo '@@@%%%=$(MAKE)=@@@%%%' 2097_ACEOF 2098# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2099case `${MAKE-make} -f conftest.make 2>/dev/null` in 2100 *@@@%%%=?*=@@@%%%*) 2101 eval ac_cv_prog_make_${ac_make}_set=yes;; 2102 *) 2103 eval ac_cv_prog_make_${ac_make}_set=no;; 2104esac 2105rm -f conftest.make 2106fi 2107if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2109$as_echo "yes" >&6; } 2110 SET_MAKE= 2111else 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2113$as_echo "no" >&6; } 2114 SET_MAKE="MAKE=${MAKE-make}" 2115fi 2116 2117 2118ac_config_headers="$ac_config_headers ac-hdrs.h" 2119 2120 2121ac_ext=c 2122ac_cpp='$CPP $CPPFLAGS' 2123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2125ac_compiler_gnu=$ac_cv_c_compiler_gnu 2126if test -n "$ac_tool_prefix"; then 2127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2128set dummy ${ac_tool_prefix}gcc; ac_word=$2 2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2130$as_echo_n "checking for $ac_word... " >&6; } 2131if test "${ac_cv_prog_CC+set}" = set; then : 2132 $as_echo_n "(cached) " >&6 2133else 2134 if test -n "$CC"; then 2135 ac_cv_prog_CC="$CC" # Let the user override the test. 2136else 2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 for ac_exec_ext in '' $ac_executable_extensions; do 2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2144 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2146 break 2 2147 fi 2148done 2149 done 2150IFS=$as_save_IFS 2151 2152fi 2153fi 2154CC=$ac_cv_prog_CC 2155if test -n "$CC"; then 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2157$as_echo "$CC" >&6; } 2158else 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2160$as_echo "no" >&6; } 2161fi 2162 2163 2164fi 2165if test -z "$ac_cv_prog_CC"; then 2166 ac_ct_CC=$CC 2167 # Extract the first word of "gcc", so it can be a program name with args. 2168set dummy gcc; ac_word=$2 2169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2170$as_echo_n "checking for $ac_word... " >&6; } 2171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2172 $as_echo_n "(cached) " >&6 2173else 2174 if test -n "$ac_ct_CC"; then 2175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2176else 2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2178for as_dir in $PATH 2179do 2180 IFS=$as_save_IFS 2181 test -z "$as_dir" && as_dir=. 2182 for ac_exec_ext in '' $ac_executable_extensions; do 2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2184 ac_cv_prog_ac_ct_CC="gcc" 2185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2186 break 2 2187 fi 2188done 2189 done 2190IFS=$as_save_IFS 2191 2192fi 2193fi 2194ac_ct_CC=$ac_cv_prog_ac_ct_CC 2195if test -n "$ac_ct_CC"; then 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2197$as_echo "$ac_ct_CC" >&6; } 2198else 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2200$as_echo "no" >&6; } 2201fi 2202 2203 if test "x$ac_ct_CC" = x; then 2204 CC="" 2205 else 2206 case $cross_compiling:$ac_tool_warned in 2207yes:) 2208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2210ac_tool_warned=yes ;; 2211esac 2212 CC=$ac_ct_CC 2213 fi 2214else 2215 CC="$ac_cv_prog_CC" 2216fi 2217 2218if test -z "$CC"; then 2219 if test -n "$ac_tool_prefix"; then 2220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2221set dummy ${ac_tool_prefix}cc; ac_word=$2 2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2223$as_echo_n "checking for $ac_word... " >&6; } 2224if test "${ac_cv_prog_CC+set}" = set; then : 2225 $as_echo_n "(cached) " >&6 2226else 2227 if test -n "$CC"; then 2228 ac_cv_prog_CC="$CC" # Let the user override the test. 2229else 2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2231for as_dir in $PATH 2232do 2233 IFS=$as_save_IFS 2234 test -z "$as_dir" && as_dir=. 2235 for ac_exec_ext in '' $ac_executable_extensions; do 2236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2237 ac_cv_prog_CC="${ac_tool_prefix}cc" 2238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2239 break 2 2240 fi 2241done 2242 done 2243IFS=$as_save_IFS 2244 2245fi 2246fi 2247CC=$ac_cv_prog_CC 2248if test -n "$CC"; then 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2250$as_echo "$CC" >&6; } 2251else 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2253$as_echo "no" >&6; } 2254fi 2255 2256 2257 fi 2258fi 2259if test -z "$CC"; then 2260 # Extract the first word of "cc", so it can be a program name with args. 2261set dummy cc; ac_word=$2 2262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2263$as_echo_n "checking for $ac_word... " >&6; } 2264if test "${ac_cv_prog_CC+set}" = set; then : 2265 $as_echo_n "(cached) " >&6 2266else 2267 if test -n "$CC"; then 2268 ac_cv_prog_CC="$CC" # Let the user override the test. 2269else 2270 ac_prog_rejected=no 2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2272for as_dir in $PATH 2273do 2274 IFS=$as_save_IFS 2275 test -z "$as_dir" && as_dir=. 2276 for ac_exec_ext in '' $ac_executable_extensions; do 2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2279 ac_prog_rejected=yes 2280 continue 2281 fi 2282 ac_cv_prog_CC="cc" 2283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2284 break 2 2285 fi 2286done 2287 done 2288IFS=$as_save_IFS 2289 2290if test $ac_prog_rejected = yes; then 2291 # We found a bogon in the path, so make sure we never use it. 2292 set dummy $ac_cv_prog_CC 2293 shift 2294 if test $# != 0; then 2295 # We chose a different compiler from the bogus one. 2296 # However, it has the same basename, so the bogon will be chosen 2297 # first if we set CC to just the basename; use the full file name. 2298 shift 2299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2300 fi 2301fi 2302fi 2303fi 2304CC=$ac_cv_prog_CC 2305if test -n "$CC"; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2307$as_echo "$CC" >&6; } 2308else 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2310$as_echo "no" >&6; } 2311fi 2312 2313 2314fi 2315if test -z "$CC"; then 2316 if test -n "$ac_tool_prefix"; then 2317 for ac_prog in cl.exe 2318 do 2319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2320set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2322$as_echo_n "checking for $ac_word... " >&6; } 2323if test "${ac_cv_prog_CC+set}" = set; then : 2324 $as_echo_n "(cached) " >&6 2325else 2326 if test -n "$CC"; then 2327 ac_cv_prog_CC="$CC" # Let the user override the test. 2328else 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2330for as_dir in $PATH 2331do 2332 IFS=$as_save_IFS 2333 test -z "$as_dir" && as_dir=. 2334 for ac_exec_ext in '' $ac_executable_extensions; do 2335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2338 break 2 2339 fi 2340done 2341 done 2342IFS=$as_save_IFS 2343 2344fi 2345fi 2346CC=$ac_cv_prog_CC 2347if test -n "$CC"; then 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2349$as_echo "$CC" >&6; } 2350else 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2352$as_echo "no" >&6; } 2353fi 2354 2355 2356 test -n "$CC" && break 2357 done 2358fi 2359if test -z "$CC"; then 2360 ac_ct_CC=$CC 2361 for ac_prog in cl.exe 2362do 2363 # Extract the first word of "$ac_prog", so it can be a program name with args. 2364set dummy $ac_prog; ac_word=$2 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2366$as_echo_n "checking for $ac_word... " >&6; } 2367if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2368 $as_echo_n "(cached) " >&6 2369else 2370 if test -n "$ac_ct_CC"; then 2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2372else 2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2374for as_dir in $PATH 2375do 2376 IFS=$as_save_IFS 2377 test -z "$as_dir" && as_dir=. 2378 for ac_exec_ext in '' $ac_executable_extensions; do 2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2380 ac_cv_prog_ac_ct_CC="$ac_prog" 2381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2382 break 2 2383 fi 2384done 2385 done 2386IFS=$as_save_IFS 2387 2388fi 2389fi 2390ac_ct_CC=$ac_cv_prog_ac_ct_CC 2391if test -n "$ac_ct_CC"; then 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2393$as_echo "$ac_ct_CC" >&6; } 2394else 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2396$as_echo "no" >&6; } 2397fi 2398 2399 2400 test -n "$ac_ct_CC" && break 2401done 2402 2403 if test "x$ac_ct_CC" = x; then 2404 CC="" 2405 else 2406 case $cross_compiling:$ac_tool_warned in 2407yes:) 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2410ac_tool_warned=yes ;; 2411esac 2412 CC=$ac_ct_CC 2413 fi 2414fi 2415 2416fi 2417 2418 2419test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2421as_fn_error $? "no acceptable C compiler found in \$PATH 2422See \`config.log' for more details" "$LINENO" 5 ; } 2423 2424# Provide some information about the compiler. 2425$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2426set X $ac_compile 2427ac_compiler=$2 2428for ac_option in --version -v -V -qversion; do 2429 { { ac_try="$ac_compiler $ac_option >&5" 2430case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433esac 2434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2435$as_echo "$ac_try_echo"; } >&5 2436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2437 ac_status=$? 2438 if test -s conftest.err; then 2439 sed '10a\ 2440... rest of stderr output deleted ... 2441 10q' conftest.err >conftest.er1 2442 cat conftest.er1 >&5 2443 fi 2444 rm -f conftest.er1 conftest.err 2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2446 test $ac_status = 0; } 2447done 2448 2449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2450/* end confdefs.h. */ 2451 2452int 2453main () 2454{ 2455 2456 ; 2457 return 0; 2458} 2459_ACEOF 2460ac_clean_files_save=$ac_clean_files 2461ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2462# Try to create an executable without -o first, disregard a.out. 2463# It will help us diagnose broken compilers, and finding out an intuition 2464# of exeext. 2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2466$as_echo_n "checking whether the C compiler works... " >&6; } 2467ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2468 2469# The possible output files: 2470ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2471 2472ac_rmfiles= 2473for ac_file in $ac_files 2474do 2475 case $ac_file in 2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2477 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2478 esac 2479done 2480rm -f $ac_rmfiles 2481 2482if { { ac_try="$ac_link_default" 2483case "(($ac_try" in 2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2485 *) ac_try_echo=$ac_try;; 2486esac 2487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2488$as_echo "$ac_try_echo"; } >&5 2489 (eval "$ac_link_default") 2>&5 2490 ac_status=$? 2491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2492 test $ac_status = 0; }; then : 2493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2494# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2495# in a Makefile. We should not override ac_cv_exeext if it was cached, 2496# so that the user can short-circuit this test for compilers unknown to 2497# Autoconf. 2498for ac_file in $ac_files '' 2499do 2500 test -f "$ac_file" || continue 2501 case $ac_file in 2502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2503 ;; 2504 [ab].out ) 2505 # We found the default executable, but exeext='' is most 2506 # certainly right. 2507 break;; 2508 *.* ) 2509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2510 then :; else 2511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2512 fi 2513 # We set ac_cv_exeext here because the later test for it is not 2514 # safe: cross compilers may not add the suffix if given an `-o' 2515 # argument, so we may need to know it at that point already. 2516 # Even if this section looks crufty: it has the advantage of 2517 # actually working. 2518 break;; 2519 * ) 2520 break;; 2521 esac 2522done 2523test "$ac_cv_exeext" = no && ac_cv_exeext= 2524 2525else 2526 ac_file='' 2527fi 2528if test -z "$ac_file"; then : 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2530$as_echo "no" >&6; } 2531$as_echo "$as_me: failed program was:" >&5 2532sed 's/^/| /' conftest.$ac_ext >&5 2533 2534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2536as_fn_error 77 "C compiler cannot create executables 2537See \`config.log' for more details" "$LINENO" 5 ; } 2538else 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2540$as_echo "yes" >&6; } 2541fi 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2543$as_echo_n "checking for C compiler default output file name... " >&6; } 2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2545$as_echo "$ac_file" >&6; } 2546ac_exeext=$ac_cv_exeext 2547 2548rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2549ac_clean_files=$ac_clean_files_save 2550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2551$as_echo_n "checking for suffix of executables... " >&6; } 2552if { { ac_try="$ac_link" 2553case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556esac 2557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2558$as_echo "$ac_try_echo"; } >&5 2559 (eval "$ac_link") 2>&5 2560 ac_status=$? 2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2562 test $ac_status = 0; }; then : 2563 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2564# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2565# work properly (i.e., refer to `conftest.exe'), while it won't with 2566# `rm'. 2567for ac_file in conftest.exe conftest conftest.*; do 2568 test -f "$ac_file" || continue 2569 case $ac_file in 2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2572 break;; 2573 * ) break;; 2574 esac 2575done 2576else 2577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2579as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2580See \`config.log' for more details" "$LINENO" 5 ; } 2581fi 2582rm -f conftest conftest$ac_cv_exeext 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2584$as_echo "$ac_cv_exeext" >&6; } 2585 2586rm -f conftest.$ac_ext 2587EXEEXT=$ac_cv_exeext 2588ac_exeext=$EXEEXT 2589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2590/* end confdefs.h. */ 2591#include <stdio.h> 2592int 2593main () 2594{ 2595FILE *f = fopen ("conftest.out", "w"); 2596 return ferror (f) || fclose (f) != 0; 2597 2598 ; 2599 return 0; 2600} 2601_ACEOF 2602ac_clean_files="$ac_clean_files conftest.out" 2603# Check that the compiler produces executables we can run. If not, either 2604# the compiler is broken, or we cross compile. 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2606$as_echo_n "checking whether we are cross compiling... " >&6; } 2607if test "$cross_compiling" != yes; then 2608 { { ac_try="$ac_link" 2609case "(($ac_try" in 2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2611 *) ac_try_echo=$ac_try;; 2612esac 2613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2614$as_echo "$ac_try_echo"; } >&5 2615 (eval "$ac_link") 2>&5 2616 ac_status=$? 2617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2618 test $ac_status = 0; } 2619 if { ac_try='./conftest$ac_cv_exeext' 2620 { { case "(($ac_try" in 2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2622 *) ac_try_echo=$ac_try;; 2623esac 2624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2625$as_echo "$ac_try_echo"; } >&5 2626 (eval "$ac_try") 2>&5 2627 ac_status=$? 2628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2629 test $ac_status = 0; }; }; then 2630 cross_compiling=no 2631 else 2632 if test "$cross_compiling" = maybe; then 2633 cross_compiling=yes 2634 else 2635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2637as_fn_error $? "cannot run C compiled programs. 2638If you meant to cross compile, use \`--host'. 2639See \`config.log' for more details" "$LINENO" 5 ; } 2640 fi 2641 fi 2642fi 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2644$as_echo "$cross_compiling" >&6; } 2645 2646rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2647ac_clean_files=$ac_clean_files_save 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2649$as_echo_n "checking for suffix of object files... " >&6; } 2650if test "${ac_cv_objext+set}" = set; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2654/* end confdefs.h. */ 2655 2656int 2657main () 2658{ 2659 2660 ; 2661 return 0; 2662} 2663_ACEOF 2664rm -f conftest.o conftest.obj 2665if { { ac_try="$ac_compile" 2666case "(($ac_try" in 2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2668 *) ac_try_echo=$ac_try;; 2669esac 2670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2671$as_echo "$ac_try_echo"; } >&5 2672 (eval "$ac_compile") 2>&5 2673 ac_status=$? 2674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2675 test $ac_status = 0; }; then : 2676 for ac_file in conftest.o conftest.obj conftest.*; do 2677 test -f "$ac_file" || continue; 2678 case $ac_file in 2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2681 break;; 2682 esac 2683done 2684else 2685 $as_echo "$as_me: failed program was:" >&5 2686sed 's/^/| /' conftest.$ac_ext >&5 2687 2688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2690as_fn_error $? "cannot compute suffix of object files: cannot compile 2691See \`config.log' for more details" "$LINENO" 5 ; } 2692fi 2693rm -f conftest.$ac_cv_objext conftest.$ac_ext 2694fi 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2696$as_echo "$ac_cv_objext" >&6; } 2697OBJEXT=$ac_cv_objext 2698ac_objext=$OBJEXT 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2700$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2701if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2702 $as_echo_n "(cached) " >&6 2703else 2704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2705/* end confdefs.h. */ 2706 2707int 2708main () 2709{ 2710#ifndef __GNUC__ 2711 choke me 2712#endif 2713 2714 ; 2715 return 0; 2716} 2717_ACEOF 2718if ac_fn_c_try_compile "$LINENO"; then : 2719 ac_compiler_gnu=yes 2720else 2721 ac_compiler_gnu=no 2722fi 2723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2724ac_cv_c_compiler_gnu=$ac_compiler_gnu 2725 2726fi 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2728$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2729if test $ac_compiler_gnu = yes; then 2730 GCC=yes 2731else 2732 GCC= 2733fi 2734ac_test_CFLAGS=${CFLAGS+set} 2735ac_save_CFLAGS=$CFLAGS 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2737$as_echo_n "checking whether $CC accepts -g... " >&6; } 2738if test "${ac_cv_prog_cc_g+set}" = set; then : 2739 $as_echo_n "(cached) " >&6 2740else 2741 ac_save_c_werror_flag=$ac_c_werror_flag 2742 ac_c_werror_flag=yes 2743 ac_cv_prog_cc_g=no 2744 CFLAGS="-g" 2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2746/* end confdefs.h. */ 2747 2748int 2749main () 2750{ 2751 2752 ; 2753 return 0; 2754} 2755_ACEOF 2756if ac_fn_c_try_compile "$LINENO"; then : 2757 ac_cv_prog_cc_g=yes 2758else 2759 CFLAGS="" 2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2761/* end confdefs.h. */ 2762 2763int 2764main () 2765{ 2766 2767 ; 2768 return 0; 2769} 2770_ACEOF 2771if ac_fn_c_try_compile "$LINENO"; then : 2772 2773else 2774 ac_c_werror_flag=$ac_save_c_werror_flag 2775 CFLAGS="-g" 2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2777/* end confdefs.h. */ 2778 2779int 2780main () 2781{ 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787if ac_fn_c_try_compile "$LINENO"; then : 2788 ac_cv_prog_cc_g=yes 2789fi 2790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2791fi 2792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2793fi 2794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2795 ac_c_werror_flag=$ac_save_c_werror_flag 2796fi 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2798$as_echo "$ac_cv_prog_cc_g" >&6; } 2799if test "$ac_test_CFLAGS" = set; then 2800 CFLAGS=$ac_save_CFLAGS 2801elif test $ac_cv_prog_cc_g = yes; then 2802 if test "$GCC" = yes; then 2803 CFLAGS="-g -O2" 2804 else 2805 CFLAGS="-g" 2806 fi 2807else 2808 if test "$GCC" = yes; then 2809 CFLAGS="-O2" 2810 else 2811 CFLAGS= 2812 fi 2813fi 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2815$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2816if test "${ac_cv_prog_cc_c89+set}" = set; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 ac_cv_prog_cc_c89=no 2820ac_save_CC=$CC 2821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2822/* end confdefs.h. */ 2823#include <stdarg.h> 2824#include <stdio.h> 2825#include <sys/types.h> 2826#include <sys/stat.h> 2827/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2828struct buf { int x; }; 2829FILE * (*rcsopen) (struct buf *, struct stat *, int); 2830static char *e (p, i) 2831 char **p; 2832 int i; 2833{ 2834 return p[i]; 2835} 2836static char *f (char * (*g) (char **, int), char **p, ...) 2837{ 2838 char *s; 2839 va_list v; 2840 va_start (v,p); 2841 s = g (p, va_arg (v,int)); 2842 va_end (v); 2843 return s; 2844} 2845 2846/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2847 function prototypes and stuff, but not '\xHH' hex character constants. 2848 These don't provoke an error unfortunately, instead are silently treated 2849 as 'x'. The following induces an error, until -std is added to get 2850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2851 array size at least. It's necessary to write '\x00'==0 to get something 2852 that's true only with -std. */ 2853int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2854 2855/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2856 inside strings and character constants. */ 2857#define FOO(x) 'x' 2858int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2859 2860int test (int i, double x); 2861struct s1 {int (*f) (int a);}; 2862struct s2 {int (*f) (double a);}; 2863int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2864int argc; 2865char **argv; 2866int 2867main () 2868{ 2869return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2870 ; 2871 return 0; 2872} 2873_ACEOF 2874for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2876do 2877 CC="$ac_save_CC $ac_arg" 2878 if ac_fn_c_try_compile "$LINENO"; then : 2879 ac_cv_prog_cc_c89=$ac_arg 2880fi 2881rm -f core conftest.err conftest.$ac_objext 2882 test "x$ac_cv_prog_cc_c89" != "xno" && break 2883done 2884rm -f conftest.$ac_ext 2885CC=$ac_save_CC 2886 2887fi 2888# AC_CACHE_VAL 2889case "x$ac_cv_prog_cc_c89" in 2890 x) 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2892$as_echo "none needed" >&6; } ;; 2893 xno) 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2895$as_echo "unsupported" >&6; } ;; 2896 *) 2897 CC="$CC $ac_cv_prog_cc_c89" 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2899$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2900esac 2901if test "x$ac_cv_prog_cc_c89" != xno; then : 2902 2903fi 2904 2905ac_ext=c 2906ac_cpp='$CPP $CPPFLAGS' 2907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2909ac_compiler_gnu=$ac_cv_c_compiler_gnu 2910 2911 2912ac_ext=c 2913ac_cpp='$CPP $CPPFLAGS' 2914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2916ac_compiler_gnu=$ac_cv_c_compiler_gnu 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 2918$as_echo_n "checking how to run the C preprocessor... " >&6; } 2919# On Suns, sometimes $CPP names a directory. 2920if test -n "$CPP" && test -d "$CPP"; then 2921 CPP= 2922fi 2923if test -z "$CPP"; then 2924 if test "${ac_cv_prog_CPP+set}" = set; then : 2925 $as_echo_n "(cached) " >&6 2926else 2927 # Double quotes because CPP needs to be expanded 2928 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2929 do 2930 ac_preproc_ok=false 2931for ac_c_preproc_warn_flag in '' yes 2932do 2933 # Use a header file that comes with gcc, so configuring glibc 2934 # with a fresh cross-compiler works. 2935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2936 # <limits.h> exists even on freestanding compilers. 2937 # On the NeXT, cc -E runs the code through the compiler's parser, 2938 # not just through cpp. "Syntax error" is here to catch this case. 2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2940/* end confdefs.h. */ 2941#ifdef __STDC__ 2942# include <limits.h> 2943#else 2944# include <assert.h> 2945#endif 2946 Syntax error 2947_ACEOF 2948if ac_fn_c_try_cpp "$LINENO"; then : 2949 2950else 2951 # Broken: fails on valid input. 2952continue 2953fi 2954rm -f conftest.err conftest.i conftest.$ac_ext 2955 2956 # OK, works on sane cases. Now check whether nonexistent headers 2957 # can be detected and how. 2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2959/* end confdefs.h. */ 2960#include <ac_nonexistent.h> 2961_ACEOF 2962if ac_fn_c_try_cpp "$LINENO"; then : 2963 # Broken: success on invalid input. 2964continue 2965else 2966 # Passes both tests. 2967ac_preproc_ok=: 2968break 2969fi 2970rm -f conftest.err conftest.i conftest.$ac_ext 2971 2972done 2973# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2974rm -f conftest.i conftest.err conftest.$ac_ext 2975if $ac_preproc_ok; then : 2976 break 2977fi 2978 2979 done 2980 ac_cv_prog_CPP=$CPP 2981 2982fi 2983 CPP=$ac_cv_prog_CPP 2984else 2985 ac_cv_prog_CPP=$CPP 2986fi 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 2988$as_echo "$CPP" >&6; } 2989ac_preproc_ok=false 2990for ac_c_preproc_warn_flag in '' yes 2991do 2992 # Use a header file that comes with gcc, so configuring glibc 2993 # with a fresh cross-compiler works. 2994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2995 # <limits.h> exists even on freestanding compilers. 2996 # On the NeXT, cc -E runs the code through the compiler's parser, 2997 # not just through cpp. "Syntax error" is here to catch this case. 2998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2999/* end confdefs.h. */ 3000#ifdef __STDC__ 3001# include <limits.h> 3002#else 3003# include <assert.h> 3004#endif 3005 Syntax error 3006_ACEOF 3007if ac_fn_c_try_cpp "$LINENO"; then : 3008 3009else 3010 # Broken: fails on valid input. 3011continue 3012fi 3013rm -f conftest.err conftest.i conftest.$ac_ext 3014 3015 # OK, works on sane cases. Now check whether nonexistent headers 3016 # can be detected and how. 3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3018/* end confdefs.h. */ 3019#include <ac_nonexistent.h> 3020_ACEOF 3021if ac_fn_c_try_cpp "$LINENO"; then : 3022 # Broken: success on invalid input. 3023continue 3024else 3025 # Passes both tests. 3026ac_preproc_ok=: 3027break 3028fi 3029rm -f conftest.err conftest.i conftest.$ac_ext 3030 3031done 3032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3033rm -f conftest.i conftest.err conftest.$ac_ext 3034if $ac_preproc_ok; then : 3035 3036else 3037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3039as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3040See \`config.log' for more details" "$LINENO" 5 ; } 3041fi 3042 3043ac_ext=c 3044ac_cpp='$CPP $CPPFLAGS' 3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3047ac_compiler_gnu=$ac_cv_c_compiler_gnu 3048 3049 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3051$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3052if test "${ac_cv_path_GREP+set}" = set; then : 3053 $as_echo_n "(cached) " >&6 3054else 3055 if test -z "$GREP"; then 3056 ac_path_GREP_found=false 3057 # Loop through the user's path and test for each of PROGNAME-LIST 3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_prog in grep ggrep; do 3064 for ac_exec_ext in '' $ac_executable_extensions; do 3065 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3066 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3067# Check for GNU ac_path_GREP and select it if it is found. 3068 # Check for GNU $ac_path_GREP 3069case `"$ac_path_GREP" --version 2>&1` in 3070*GNU*) 3071 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3072*) 3073 ac_count=0 3074 $as_echo_n 0123456789 >"conftest.in" 3075 while : 3076 do 3077 cat "conftest.in" "conftest.in" >"conftest.tmp" 3078 mv "conftest.tmp" "conftest.in" 3079 cp "conftest.in" "conftest.nl" 3080 $as_echo 'GREP' >> "conftest.nl" 3081 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3083 as_fn_arith $ac_count + 1 && ac_count=$as_val 3084 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3085 # Best one so far, save it but keep looking for a better one 3086 ac_cv_path_GREP="$ac_path_GREP" 3087 ac_path_GREP_max=$ac_count 3088 fi 3089 # 10*(2^10) chars as input seems more than enough 3090 test $ac_count -gt 10 && break 3091 done 3092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3093esac 3094 3095 $ac_path_GREP_found && break 3 3096 done 3097 done 3098 done 3099IFS=$as_save_IFS 3100 if test -z "$ac_cv_path_GREP"; then 3101 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3102 fi 3103else 3104 ac_cv_path_GREP=$GREP 3105fi 3106 3107fi 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3109$as_echo "$ac_cv_path_GREP" >&6; } 3110 GREP="$ac_cv_path_GREP" 3111 3112 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3114$as_echo_n "checking for egrep... " >&6; } 3115if test "${ac_cv_path_EGREP+set}" = set; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3119 then ac_cv_path_EGREP="$GREP -E" 3120 else 3121 if test -z "$EGREP"; then 3122 ac_path_EGREP_found=false 3123 # Loop through the user's path and test for each of PROGNAME-LIST 3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_prog in egrep; do 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3132 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3133# Check for GNU ac_path_EGREP and select it if it is found. 3134 # Check for GNU $ac_path_EGREP 3135case `"$ac_path_EGREP" --version 2>&1` in 3136*GNU*) 3137 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3138*) 3139 ac_count=0 3140 $as_echo_n 0123456789 >"conftest.in" 3141 while : 3142 do 3143 cat "conftest.in" "conftest.in" >"conftest.tmp" 3144 mv "conftest.tmp" "conftest.in" 3145 cp "conftest.in" "conftest.nl" 3146 $as_echo 'EGREP' >> "conftest.nl" 3147 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3149 as_fn_arith $ac_count + 1 && ac_count=$as_val 3150 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3151 # Best one so far, save it but keep looking for a better one 3152 ac_cv_path_EGREP="$ac_path_EGREP" 3153 ac_path_EGREP_max=$ac_count 3154 fi 3155 # 10*(2^10) chars as input seems more than enough 3156 test $ac_count -gt 10 && break 3157 done 3158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3159esac 3160 3161 $ac_path_EGREP_found && break 3 3162 done 3163 done 3164 done 3165IFS=$as_save_IFS 3166 if test -z "$ac_cv_path_EGREP"; then 3167 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3168 fi 3169else 3170 ac_cv_path_EGREP=$EGREP 3171fi 3172 3173 fi 3174fi 3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3176$as_echo "$ac_cv_path_EGREP" >&6; } 3177 EGREP="$ac_cv_path_EGREP" 3178 3179 3180if test $ac_cv_c_compiler_gnu = yes; then 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 3182$as_echo_n "checking whether $CC needs -traditional... " >&6; } 3183if test "${ac_cv_prog_gcc_traditional+set}" = set; then : 3184 $as_echo_n "(cached) " >&6 3185else 3186 ac_pattern="Autoconf.*'x'" 3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3188/* end confdefs.h. */ 3189#include <sgtty.h> 3190Autoconf TIOCGETP 3191_ACEOF 3192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3193 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 3194 ac_cv_prog_gcc_traditional=yes 3195else 3196 ac_cv_prog_gcc_traditional=no 3197fi 3198rm -f conftest* 3199 3200 3201 if test $ac_cv_prog_gcc_traditional = no; then 3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3203/* end confdefs.h. */ 3204#include <termio.h> 3205Autoconf TCGETA 3206_ACEOF 3207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3208 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 3209 ac_cv_prog_gcc_traditional=yes 3210fi 3211rm -f conftest* 3212 3213 fi 3214fi 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 3216$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 3217 if test $ac_cv_prog_gcc_traditional = yes; then 3218 CC="$CC -traditional" 3219 fi 3220fi 3221 3222 3223 3224if test -z "$LD" ; then 3225 LD="$CC" 3226fi 3227LD="$LD" 3228 3229 3230MACHINE="`uname -m`" 3231if test "$MACHINE" == "i686" -o "$MACHINE" == "i386"; then 3232 CFLAGS_ARCH="-march=i686" 3233fi 3234OS="`uname`" 3235if test "$OS" == "Darwin"; then 3236 CFLAGS_ARCH="" 3237fi 3238 3239 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 3241$as_echo_n "checking for GNU make... " >&6; } 3242if test "${_cv_gnu_make_command+set}" = set; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 _cv_gnu_make_command='' ; 3246 for a in "$MAKE" make gmake gnumake ; do 3247 if test -z "$a" ; then continue ; fi ; 3248 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 3249 _cv_gnu_make_command=$a ; 3250 break; 3251 fi 3252 done ; 3253 3254fi 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 3256$as_echo "$_cv_gnu_make_command" >&6; } ; 3257 if test "x$_cv_gnu_make_command" != "x" ; then 3258 ifGNUmake='' ; 3259 else 3260 ifGNUmake='#' ; 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 3262$as_echo "\"Not found\"" >&6; }; 3263 fi 3264 3265 3266 3267# Check whether --enable-static-libevent was given. 3268if test "${enable_static_libevent+set}" = set; then : 3269 enableval=$enable_static_libevent; static_libevent=$enableval 3270fi 3271 3272 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3274$as_echo_n "checking for ANSI C header files... " >&6; } 3275if test "${ac_cv_header_stdc+set}" = set; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3279/* end confdefs.h. */ 3280#include <stdlib.h> 3281#include <stdarg.h> 3282#include <string.h> 3283#include <float.h> 3284 3285int 3286main () 3287{ 3288 3289 ; 3290 return 0; 3291} 3292_ACEOF 3293if ac_fn_c_try_compile "$LINENO"; then : 3294 ac_cv_header_stdc=yes 3295else 3296 ac_cv_header_stdc=no 3297fi 3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3299 3300if test $ac_cv_header_stdc = yes; then 3301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3303/* end confdefs.h. */ 3304#include <string.h> 3305 3306_ACEOF 3307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3308 $EGREP "memchr" >/dev/null 2>&1; then : 3309 3310else 3311 ac_cv_header_stdc=no 3312fi 3313rm -f conftest* 3314 3315fi 3316 3317if test $ac_cv_header_stdc = yes; then 3318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3320/* end confdefs.h. */ 3321#include <stdlib.h> 3322 3323_ACEOF 3324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3325 $EGREP "free" >/dev/null 2>&1; then : 3326 3327else 3328 ac_cv_header_stdc=no 3329fi 3330rm -f conftest* 3331 3332fi 3333 3334if test $ac_cv_header_stdc = yes; then 3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3336 if test "$cross_compiling" = yes; then : 3337 : 3338else 3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341#include <ctype.h> 3342#include <stdlib.h> 3343#if ((' ' & 0x0FF) == 0x020) 3344# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3345# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3346#else 3347# define ISLOWER(c) \ 3348 (('a' <= (c) && (c) <= 'i') \ 3349 || ('j' <= (c) && (c) <= 'r') \ 3350 || ('s' <= (c) && (c) <= 'z')) 3351# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3352#endif 3353 3354#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3355int 3356main () 3357{ 3358 int i; 3359 for (i = 0; i < 256; i++) 3360 if (XOR (islower (i), ISLOWER (i)) 3361 || toupper (i) != TOUPPER (i)) 3362 return 2; 3363 return 0; 3364} 3365_ACEOF 3366if ac_fn_c_try_run "$LINENO"; then : 3367 3368else 3369 ac_cv_header_stdc=no 3370fi 3371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3372 conftest.$ac_objext conftest.beam conftest.$ac_ext 3373fi 3374 3375fi 3376fi 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3378$as_echo "$ac_cv_header_stdc" >&6; } 3379if test $ac_cv_header_stdc = yes; then 3380 3381$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3382 3383fi 3384 3385# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3386for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3387 inttypes.h stdint.h unistd.h 3388do : 3389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3390ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3391" 3392if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3393 cat >>confdefs.h <<_ACEOF 3394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3395_ACEOF 3396 3397fi 3398 3399done 3400 3401 3402ac_fn_c_check_header_mongrel "$LINENO" "event2/event.h" "ac_cv_header_event2_event_h" "$ac_includes_default" 3403if test "x$ac_cv_header_event2_event_h" = x""yes; then : 3404 3405else 3406 as_fn_error $? "libevent2 header not found - remember to install the development package too" "$LINENO" 5 3407fi 3408 3409 3410ac_fn_c_check_header_mongrel "$LINENO" "event2/http.h" "ac_cv_header_event2_http_h" "$ac_includes_default" 3411if test "x$ac_cv_header_event2_http_h" = x""yes; then : 3412 3413else 3414 as_fn_error $? "libevent2 http header not found - remember to install the development package too" "$LINENO" 5 3415fi 3416 3417 3418ac_fn_c_check_header_mongrel "$LINENO" "event2/buffer.h" "ac_cv_header_event2_buffer_h" "$ac_includes_default" 3419if test "x$ac_cv_header_event2_buffer_h" = x""yes; then : 3420 3421else 3422 as_fn_error $? "libevent2 buffer header not found - remember to install the development package too" "$LINENO" 5 3423fi 3424 3425 3426 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for event_base_new in -levent" >&5 3428$as_echo_n "checking for event_base_new in -levent... " >&6; } 3429if test "${ac_cv_lib_event_event_base_new+set}" = set; then : 3430 $as_echo_n "(cached) " >&6 3431else 3432 ac_check_lib_save_LIBS=$LIBS 3433LIBS="-levent $LIBS" 3434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3435/* end confdefs.h. */ 3436 3437/* Override any GCC internal prototype to avoid an error. 3438 Use char because int might match the return type of a GCC 3439 builtin and then its argument prototype would still apply. */ 3440#ifdef __cplusplus 3441extern "C" 3442#endif 3443char event_base_new (); 3444int 3445main () 3446{ 3447return event_base_new (); 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452if ac_fn_c_try_link "$LINENO"; then : 3453 ac_cv_lib_event_event_base_new=yes 3454else 3455 ac_cv_lib_event_event_base_new=no 3456fi 3457rm -f core conftest.err conftest.$ac_objext \ 3458 conftest$ac_exeext conftest.$ac_ext 3459LIBS=$ac_check_lib_save_LIBS 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_event_base_new" >&5 3462$as_echo "$ac_cv_lib_event_event_base_new" >&6; } 3463if test "x$ac_cv_lib_event_event_base_new" = x""yes; then : 3464 LIBEVENT="-levent" 3465else 3466 as_fn_error $? "libevent2 not found" "$LINENO" 5 3467fi 3468 3469 3470if test "x$static_libevent" != x; then : 3471 LIBEVENT="$static_libevent" 3472fi 3473 3474for ac_header in sys/capability.h 3475do : 3476 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default" 3477if test "x$ac_cv_header_sys_capability_h" = x""yes; then : 3478 cat >>confdefs.h <<_ACEOF 3479#define HAVE_SYS_CAPABILITY_H 1 3480_ACEOF 3481 3482$as_echo "#define HAVE_CAPABILITY_H /**/" >>confdefs.h 3483 3484fi 3485 3486done 3487 3488for ac_header in sys/prctl.h 3489do : 3490 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 3491if test "x$ac_cv_header_sys_prctl_h" = x""yes; then : 3492 cat >>confdefs.h <<_ACEOF 3493#define HAVE_SYS_PRCTL_H 1 3494_ACEOF 3495 3496$as_echo "#define HAVE_PRCTL_H /**/" >>confdefs.h 3497 3498fi 3499 3500done 3501 3502 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 3504$as_echo_n "checking for cap_init in -lcap... " >&6; } 3505if test "${ac_cv_lib_cap_cap_init+set}" = set; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 ac_check_lib_save_LIBS=$LIBS 3509LIBS="-lcap $LIBS" 3510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3511/* end confdefs.h. */ 3512 3513/* Override any GCC internal prototype to avoid an error. 3514 Use char because int might match the return type of a GCC 3515 builtin and then its argument prototype would still apply. */ 3516#ifdef __cplusplus 3517extern "C" 3518#endif 3519char cap_init (); 3520int 3521main () 3522{ 3523return cap_init (); 3524 ; 3525 return 0; 3526} 3527_ACEOF 3528if ac_fn_c_try_link "$LINENO"; then : 3529 ac_cv_lib_cap_cap_init=yes 3530else 3531 ac_cv_lib_cap_cap_init=no 3532fi 3533rm -f core conftest.err conftest.$ac_objext \ 3534 conftest$ac_exeext conftest.$ac_ext 3535LIBS=$ac_check_lib_save_LIBS 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 3538$as_echo "$ac_cv_lib_cap_cap_init" >&6; } 3539if test "x$ac_cv_lib_cap_cap_init" = x""yes; then : 3540 LIBCAP="-lcap" 3541fi 3542 3543 3544for ac_header in sys/eventfd.h 3545do : 3546 ac_fn_c_check_header_mongrel "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" 3547if test "x$ac_cv_header_sys_eventfd_h" = x""yes; then : 3548 cat >>confdefs.h <<_ACEOF 3549#define HAVE_SYS_EVENTFD_H 1 3550_ACEOF 3551 3552$as_echo "#define HAVE_EVENTFD_H /**/" >>confdefs.h 3553 3554fi 3555 3556done 3557 3558 3559for ac_header in alloca.h 3560do : 3561 ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 3562if test "x$ac_cv_header_alloca_h" = x""yes; then : 3563 cat >>confdefs.h <<_ACEOF 3564#define HAVE_ALLOCA_H 1 3565_ACEOF 3566 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 3567 3568fi 3569 3570done 3571 3572for ac_header in poll.h 3573do : 3574 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 3575if test "x$ac_cv_header_poll_h" = x""yes; then : 3576 cat >>confdefs.h <<_ACEOF 3577#define HAVE_POLL_H 1 3578_ACEOF 3579 $as_echo "#define HAVE_POLL_H 1" >>confdefs.h 3580 3581fi 3582 3583done 3584 3585for ac_header in sys/epoll.h 3586do : 3587 ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" 3588if test "x$ac_cv_header_sys_epoll_h" = x""yes; then : 3589 cat >>confdefs.h <<_ACEOF 3590#define HAVE_SYS_EPOLL_H 1 3591_ACEOF 3592 $as_echo "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h 3593 3594fi 3595 3596done 3597 3598 3599for ac_header in netinet/sctp.h 3600do : 3601 ac_fn_c_check_header_mongrel "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default" 3602if test "x$ac_cv_header_netinet_sctp_h" = x""yes; then : 3603 cat >>confdefs.h <<_ACEOF 3604#define HAVE_NETINET_SCTP_H 1 3605_ACEOF 3606 $as_echo "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h 3607 3608fi 3609 3610done 3611 3612 3613 3614 3615for ac_func in atan2f 3616do : 3617 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f" 3618if test "x$ac_cv_func_atan2f" = x""yes; then : 3619 cat >>confdefs.h <<_ACEOF 3620#define HAVE_ATAN2F 1 3621_ACEOF 3622 3623else 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5 3625$as_echo_n "checking for atan2f in -lm... " >&6; } 3626if test "${ac_cv_lib_m_atan2f+set}" = set; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 ac_check_lib_save_LIBS=$LIBS 3630LIBS="-lm $LIBS" 3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3632/* end confdefs.h. */ 3633 3634/* Override any GCC internal prototype to avoid an error. 3635 Use char because int might match the return type of a GCC 3636 builtin and then its argument prototype would still apply. */ 3637#ifdef __cplusplus 3638extern "C" 3639#endif 3640char atan2f (); 3641int 3642main () 3643{ 3644return atan2f (); 3645 ; 3646 return 0; 3647} 3648_ACEOF 3649if ac_fn_c_try_link "$LINENO"; then : 3650 ac_cv_lib_m_atan2f=yes 3651else 3652 ac_cv_lib_m_atan2f=no 3653fi 3654rm -f core conftest.err conftest.$ac_objext \ 3655 conftest$ac_exeext conftest.$ac_ext 3656LIBS=$ac_check_lib_save_LIBS 3657fi 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2f" >&5 3659$as_echo "$ac_cv_lib_m_atan2f" >&6; } 3660if test "x$ac_cv_lib_m_atan2f" = x""yes; then : 3661 LIBM="-lm" 3662fi 3663 3664fi 3665done 3666 3667 3668 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5 3670$as_echo_n "checking for pthread_exit in -lpthread... " >&6; } 3671if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then : 3672 $as_echo_n "(cached) " >&6 3673else 3674 ac_check_lib_save_LIBS=$LIBS 3675LIBS="-lpthread $LIBS" 3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678 3679/* Override any GCC internal prototype to avoid an error. 3680 Use char because int might match the return type of a GCC 3681 builtin and then its argument prototype would still apply. */ 3682#ifdef __cplusplus 3683extern "C" 3684#endif 3685char pthread_exit (); 3686int 3687main () 3688{ 3689return pthread_exit (); 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694if ac_fn_c_try_link "$LINENO"; then : 3695 ac_cv_lib_pthread_pthread_exit=yes 3696else 3697 ac_cv_lib_pthread_pthread_exit=no 3698fi 3699rm -f core conftest.err conftest.$ac_objext \ 3700 conftest$ac_exeext conftest.$ac_ext 3701LIBS=$ac_check_lib_save_LIBS 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5 3704$as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; } 3705if test "x$ac_cv_lib_pthread_pthread_exit" = x""yes; then : 3706 LIBPTHREAD="-lpthread" 3707fi 3708 3709 3710 3711for ac_func in getnameinfo 3712do : 3713 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 3714if test "x$ac_cv_func_getnameinfo" = x""yes; then : 3715 cat >>confdefs.h <<_ACEOF 3716#define HAVE_GETNAMEINFO 1 3717_ACEOF 3718 3719else 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lnsl" >&5 3721$as_echo_n "checking for getnameinfo in -lnsl... " >&6; } 3722if test "${ac_cv_lib_nsl_getnameinfo+set}" = set; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 ac_check_lib_save_LIBS=$LIBS 3726LIBS="-lnsl $LIBS" 3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728/* end confdefs.h. */ 3729 3730/* Override any GCC internal prototype to avoid an error. 3731 Use char because int might match the return type of a GCC 3732 builtin and then its argument prototype would still apply. */ 3733#ifdef __cplusplus 3734extern "C" 3735#endif 3736char getnameinfo (); 3737int 3738main () 3739{ 3740return getnameinfo (); 3741 ; 3742 return 0; 3743} 3744_ACEOF 3745if ac_fn_c_try_link "$LINENO"; then : 3746 ac_cv_lib_nsl_getnameinfo=yes 3747else 3748 ac_cv_lib_nsl_getnameinfo=no 3749fi 3750rm -f core conftest.err conftest.$ac_objext \ 3751 conftest$ac_exeext conftest.$ac_ext 3752LIBS=$ac_check_lib_save_LIBS 3753fi 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_getnameinfo" >&5 3755$as_echo "$ac_cv_lib_nsl_getnameinfo" >&6; } 3756if test "x$ac_cv_lib_nsl_getnameinfo" = x""yes; then : 3757 LIBGETNAMEINFO="-lnsl" 3758fi 3759 3760fi 3761done 3762 3763 3764ac_cv_libsocket_both=1 3765ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 3766if test "x$ac_cv_func_connect" = x""yes; then : 3767 ac_cv_libsocket_both=0 3768fi 3769 3770ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 3771if test "x$ac_cv_func_gethostbyname" = x""yes; then : 3772 ac_cv_libsocket_both=0 3773fi 3774 3775if test "$ac_cv_libsocket_both" = 1 ; then 3776 # Check cache 3777 if test "$ac_cv_func_socket_lxnet" = yes ; then 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: need -lxnet library (cached)" >&5 3779$as_echo "need -lxnet library (cached)" >&6; } 3780 LIBSOCKET="-lnsl -lsocket -lxnet" 3781 else 3782 if test "$ac_cv_func_socket_lsocket" = yes ; then 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: need -lsocket library (cached)" >&5 3784$as_echo "need -lsocket library (cached)" >&6; } 3785 LIBSOCKET="-lsocket" 3786 if test "$ac_cv_func_gethostbyname_lnsl" = yes ; then 3787 LIBSOCKET="-lnsl -lsocket" 3788 fi 3789 else 3790 # Well, will this work ? SysVR4, but not Sun Solaris ? 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lxnet" >&5 3792$as_echo_n "checking for connect in -lxnet... " >&6; } 3793if test "${ac_cv_lib_xnet_connect+set}" = set; then : 3794 $as_echo_n "(cached) " >&6 3795else 3796 ac_check_lib_save_LIBS=$LIBS 3797LIBS="-lxnet $LIBS" 3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800 3801/* Override any GCC internal prototype to avoid an error. 3802 Use char because int might match the return type of a GCC 3803 builtin and then its argument prototype would still apply. */ 3804#ifdef __cplusplus 3805extern "C" 3806#endif 3807char connect (); 3808int 3809main () 3810{ 3811return connect (); 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_c_try_link "$LINENO"; then : 3817 ac_cv_lib_xnet_connect=yes 3818else 3819 ac_cv_lib_xnet_connect=no 3820fi 3821rm -f core conftest.err conftest.$ac_objext \ 3822 conftest$ac_exeext conftest.$ac_ext 3823LIBS=$ac_check_lib_save_LIBS 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_connect" >&5 3826$as_echo "$ac_cv_lib_xnet_connect" >&6; } 3827if test "x$ac_cv_lib_xnet_connect" = x""yes; then : 3828 LIBSOCKET="-lnsl -lsocket -lxnet" 3829 ac_cv_func_socket_lsocket=no 3830 ac_cv_func_socket_lxnet=yes 3831else 3832 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 3834$as_echo_n "checking for connect in -lsocket... " >&6; } 3835if test "${ac_cv_lib_socket_connect+set}" = set; then : 3836 $as_echo_n "(cached) " >&6 3837else 3838 ac_check_lib_save_LIBS=$LIBS 3839LIBS="-lsocket $LIBS" 3840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3841/* end confdefs.h. */ 3842 3843/* Override any GCC internal prototype to avoid an error. 3844 Use char because int might match the return type of a GCC 3845 builtin and then its argument prototype would still apply. */ 3846#ifdef __cplusplus 3847extern "C" 3848#endif 3849char connect (); 3850int 3851main () 3852{ 3853return connect (); 3854 ; 3855 return 0; 3856} 3857_ACEOF 3858if ac_fn_c_try_link "$LINENO"; then : 3859 ac_cv_lib_socket_connect=yes 3860else 3861 ac_cv_lib_socket_connect=no 3862fi 3863rm -f core conftest.err conftest.$ac_objext \ 3864 conftest$ac_exeext conftest.$ac_ext 3865LIBS=$ac_check_lib_save_LIBS 3866fi 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 3868$as_echo "$ac_cv_lib_socket_connect" >&6; } 3869if test "x$ac_cv_lib_socket_connect" = x""yes; then : 3870 LIBSOCKET="-lsocket" 3871 ac_cv_func_socket_lsocket=yes 3872else 3873 ac_cv_func_socket_lsocket=no 3874fi 3875 3876 if test "$ac_cv_func_socket_lsocket" = yes ; then 3877 t_oldLibs="$LIBS" 3878 LIBS="$LIBS -lsocket" 3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3880/* end confdefs.h. */ 3881 3882int 3883main () 3884{ 3885gethostbyname(); 3886 ; 3887 return 0; 3888} 3889_ACEOF 3890if ac_fn_c_try_link "$LINENO"; then : 3891 3892else 3893 3894 LIBS="$LIBS -lnsl" # Add this Solaris library.. 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897 3898int 3899main () 3900{ 3901gethostbyname(); 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906if ac_fn_c_try_link "$LINENO"; then : 3907 3908 LIBSOCKET="-lsocket -lnsl" 3909 ac_cv_func_gethostbyname_lnsl=yes 3910 3911else 3912 3913 as_fn_error $? "Weird, '$LIBS' not enough to find gethostnyname() ?!" "$LINENO" 5 3914 3915fi 3916rm -f core conftest.err conftest.$ac_objext \ 3917 conftest$ac_exeext conftest.$ac_ext 3918 3919fi 3920rm -f core conftest.err conftest.$ac_objext \ 3921 conftest$ac_exeext conftest.$ac_ext 3922 LIBS="$t_oldLibs" 3923 fi 3924 3925fi 3926 3927 fi 3928 fi 3929fi 3930 3931# See about the routines that possibly exist at the libraries.. 3932LIBS="$t_oldLibs $LIBSOCKET" 3933for ac_func in socket socketpair 3934do : 3935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 3936ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 3937if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 3938 cat >>confdefs.h <<_ACEOF 3939#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 3940_ACEOF 3941 3942fi 3943done 3944 3945LIBS="$t_oldLibs" 3946 3947if test "$ac_cv_func_socket" = no -a "$LIBSOCKET" != ""; then 3948 LIBS="$LIBS $LIBSOCKET" 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950/* end confdefs.h. */ 3951 3952int 3953main () 3954{ 3955socket(); 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960if ac_fn_c_try_link "$LINENO"; then : 3961 ac_cv_func_socket=yes 3962fi 3963rm -f core conftest.err conftest.$ac_objext \ 3964 conftest$ac_exeext conftest.$ac_ext 3965 if test $ac_cv_func_socket = yes; then 3966 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h 3967 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Has socket() when using $LIBSOCKET" >&5 3969$as_echo "Has socket() when using $LIBSOCKET" >&6; } 3970 fi 3971 LIBS="$t_oldLibs" 3972fi 3973if test "$ac_cv_func_socketpair" = no -a "$LIBSOCKET" != ""; then 3974 LIBS="$LIBS $LIBSOCKET" 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977 3978int 3979main () 3980{ 3981socketpair(); 3982 ; 3983 return 0; 3984} 3985_ACEOF 3986if ac_fn_c_try_link "$LINENO"; then : 3987 ac_cv_func_socketpair=yes 3988fi 3989rm -f core conftest.err conftest.$ac_objext \ 3990 conftest$ac_exeext conftest.$ac_ext 3991 if test $ac_cv_func_socketpair = yes; then 3992 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h 3993 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Has socketpair() when using $LIBSOCKET" >&5 3995$as_echo "Has socketpair() when using $LIBSOCKET" >&6; } 3996 fi 3997 LIBS="$t_oldLibs" 3998fi 3999 4000ac_with_ipv6_replacement_libc=0 4001 4002# Check whether --with-ipv6-replacement-libc was given. 4003if test "${with_ipv6_replacement_libc+set}" = set; then : 4004 withval=$with_ipv6_replacement_libc; ac_with_ipv6_replacement_libc=1 4005fi 4006 4007 4008LIBS="$LIBSOCKET $LIBS" 4009for ac_func in getnameinfo gai_strerror inet_ntop inet_pton 4010do : 4011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4012ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4013if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4014 cat >>confdefs.h <<_ACEOF 4015#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4016_ACEOF 4017 4018fi 4019done 4020 4021LIBS="$t_oldLibs" 4022 4023 4024t_oldLibs="$LIBS" 4025LIBS="$LIBS $LIBSOCKET" 4026 4027# Following stuff may exist in our LIBC, or in separate -linet6 4028# AC_CHECK_FUNCS(inet_ntop inet_pton getaddrinfo getnameinfo gai_strerror) 4029# If not found in LIBC, try to use -linet6, if it fails too, 4030# THEN call the AC_REPLACE_FUNCS() 4031if test "$ac_cv_func_gai_strerror" = no ; then 4032 LIBS="$LIBS -linet6" 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036int 4037main () 4038{ 4039gai_strerror(); 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044if ac_fn_c_try_link "$LINENO"; then : 4045 ac_cv_func_gai_strerror=yes 4046fi 4047rm -f core conftest.err conftest.$ac_objext \ 4048 conftest$ac_exeext conftest.$ac_ext 4049 LIBS="$t_oldLibs" 4050 if test "$ac_cv_func_gai_strerror" = yes; then 4051 LIBSOCKET="$LIBSOCKET -linet6" 4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Has IPv6 API gai_strerror() when using $LIBSOCKET" >&5 4053$as_echo "Has IPv6 API gai_strerror() when using $LIBSOCKET" >&6; } 4054 else 4055 case " $LIBOBJS " in 4056 *" inet_ntop.$ac_objext "* ) ;; 4057 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 4058 ;; 4059esac 4060 4061 case " $LIBOBJS " in 4062 *" inet_pton.$ac_objext "* ) ;; 4063 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 4064 ;; 4065esac 4066 4067 case " $LIBOBJS " in 4068 *" getnameinfo.$ac_objext "* ) ;; 4069 *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 4070 ;; 4071esac 4072 4073 case " $LIBOBJS " in 4074 *" gai_strerror.$ac_objext "* ) ;; 4075 *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 4076 ;; 4077esac 4078 4079 fi 4080fi 4081 4082LIBS="$t_oldLibs" 4083 4084LIBS="$LIBS" 4085 4086 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5 4088$as_echo_n "checking for __sync_fetch_and_add... " >&6; } 4089if test "${ac_cv_func_sync_fetch_and_add+set}" = set; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094 4095int 4096main () 4097{ 4098long long x;__sync_fetch_and_add(&x,1); 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103if ac_fn_c_try_link "$LINENO"; then : 4104 ac_cv_func_sync_fetch_and_add=yes 4105else 4106 ac_cv_func_sync_fetch_and_add=no 4107fi 4108rm -f core conftest.err conftest.$ac_objext \ 4109 conftest$ac_exeext conftest.$ac_ext 4110fi 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5 4112$as_echo "$ac_cv_func_sync_fetch_and_add" >&6; } 4113if test "$ac_cv_func_sync_fetch_and_add" = yes; then 4114 4115$as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h 4116 4117fi 4118 4119 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 4121$as_echo_n "checking for library containing clock_gettime... " >&6; } 4122if test "${ac_cv_search_clock_gettime+set}" = set; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 ac_func_search_save_LIBS=$LIBS 4126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4127/* end confdefs.h. */ 4128 4129/* Override any GCC internal prototype to avoid an error. 4130 Use char because int might match the return type of a GCC 4131 builtin and then its argument prototype would still apply. */ 4132#ifdef __cplusplus 4133extern "C" 4134#endif 4135char clock_gettime (); 4136int 4137main () 4138{ 4139return clock_gettime (); 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144for ac_lib in '' rt; do 4145 if test -z "$ac_lib"; then 4146 ac_res="none required" 4147 else 4148 ac_res=-l$ac_lib 4149 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4150 fi 4151 if ac_fn_c_try_link "$LINENO"; then : 4152 ac_cv_search_clock_gettime=$ac_res 4153fi 4154rm -f core conftest.err conftest.$ac_objext \ 4155 conftest$ac_exeext 4156 if test "${ac_cv_search_clock_gettime+set}" = set; then : 4157 break 4158fi 4159done 4160if test "${ac_cv_search_clock_gettime+set}" = set; then : 4161 4162else 4163 ac_cv_search_clock_gettime=no 4164fi 4165rm conftest.$ac_ext 4166LIBS=$ac_func_search_save_LIBS 4167fi 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 4169$as_echo "$ac_cv_search_clock_gettime" >&6; } 4170ac_res=$ac_cv_search_clock_gettime 4171if test "$ac_res" != no; then : 4172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4173 4174 4175$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 4176 4177 4178fi 4179 4180 4181if test "$ac_cv_search_clock_gettime" = "-lrt"; then 4182 LIBRT="-lrt" 4183fi 4184 4185for ac_func in setenv putenv 4186do : 4187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4188ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4189if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4190 cat >>confdefs.h <<_ACEOF 4191#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4192_ACEOF 4193 4194fi 4195done 4196 4197 4198 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5 4200$as_echo_n "checking for library containing deflate... " >&6; } 4201if test "${ac_cv_search_deflate+set}" = set; then : 4202 $as_echo_n "(cached) " >&6 4203else 4204 ac_func_search_save_LIBS=$LIBS 4205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4206/* end confdefs.h. */ 4207 4208/* Override any GCC internal prototype to avoid an error. 4209 Use char because int might match the return type of a GCC 4210 builtin and then its argument prototype would still apply. */ 4211#ifdef __cplusplus 4212extern "C" 4213#endif 4214char deflate (); 4215int 4216main () 4217{ 4218return deflate (); 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223for ac_lib in '' z; do 4224 if test -z "$ac_lib"; then 4225 ac_res="none required" 4226 else 4227 ac_res=-l$ac_lib 4228 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4229 fi 4230 if ac_fn_c_try_link "$LINENO"; then : 4231 ac_cv_search_deflate=$ac_res 4232fi 4233rm -f core conftest.err conftest.$ac_objext \ 4234 conftest$ac_exeext 4235 if test "${ac_cv_search_deflate+set}" = set; then : 4236 break 4237fi 4238done 4239if test "${ac_cv_search_deflate+set}" = set; then : 4240 4241else 4242 ac_cv_search_deflate=no 4243fi 4244rm conftest.$ac_ext 4245LIBS=$ac_func_search_save_LIBS 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5 4248$as_echo "$ac_cv_search_deflate" >&6; } 4249ac_res=$ac_cv_search_deflate 4250if test "$ac_res" != no; then : 4251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4252 4253 for ac_header in zlib.h 4254do : 4255 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 4256if test "x$ac_cv_header_zlib_h" = x""yes; then : 4257 cat >>confdefs.h <<_ACEOF 4258#define HAVE_ZLIB_H 1 4259_ACEOF 4260 4261$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 4262 4263fi 4264 4265done 4266 4267 4268fi 4269 4270 4271if test "$ac_cv_search_deflate" = "-lz"; then 4272 LIBZ="-lz" 4273fi 4274 4275 4276# Check whether --with-openssl was given. 4277if test "${with_openssl+set}" = set; then : 4278 withval=$with_openssl; with_openssl=$withval 4279else 4280 with_openssl=no 4281fi 4282 4283 4284 4285if test "$with_openssl" != "no" ; then 4286 for ac_header in openssl/ssl.h 4287do : 4288 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 4289if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then : 4290 cat >>confdefs.h <<_ACEOF 4291#define HAVE_OPENSSL_SSL_H 1 4292_ACEOF 4293 4294fi 4295 4296done 4297 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TLSv1_server_method" >&5 4299$as_echo_n "checking for library containing TLSv1_server_method... " >&6; } 4300if test "${ac_cv_search_TLSv1_server_method+set}" = set; then : 4301 $as_echo_n "(cached) " >&6 4302else 4303 ac_func_search_save_LIBS=$LIBS 4304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4305/* end confdefs.h. */ 4306 4307/* Override any GCC internal prototype to avoid an error. 4308 Use char because int might match the return type of a GCC 4309 builtin and then its argument prototype would still apply. */ 4310#ifdef __cplusplus 4311extern "C" 4312#endif 4313char TLSv1_server_method (); 4314int 4315main () 4316{ 4317return TLSv1_server_method (); 4318 ; 4319 return 0; 4320} 4321_ACEOF 4322for ac_lib in '' ssl; do 4323 if test -z "$ac_lib"; then 4324 ac_res="none required" 4325 else 4326 ac_res=-l$ac_lib 4327 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4328 fi 4329 if ac_fn_c_try_link "$LINENO"; then : 4330 ac_cv_search_TLSv1_server_method=$ac_res 4331fi 4332rm -f core conftest.err conftest.$ac_objext \ 4333 conftest$ac_exeext 4334 if test "${ac_cv_search_TLSv1_server_method+set}" = set; then : 4335 break 4336fi 4337done 4338if test "${ac_cv_search_TLSv1_server_method+set}" = set; then : 4339 4340else 4341 ac_cv_search_TLSv1_server_method=no 4342fi 4343rm conftest.$ac_ext 4344LIBS=$ac_func_search_save_LIBS 4345fi 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TLSv1_server_method" >&5 4347$as_echo "$ac_cv_search_TLSv1_server_method" >&6; } 4348ac_res=$ac_cv_search_TLSv1_server_method 4349if test "$ac_res" != no; then : 4350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4351 4352$as_echo "#define HAVE_TLSV1_SERVER_METHOD 1" >>confdefs.h 4353 4354fi 4355 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing X509_free" >&5 4357$as_echo_n "checking for library containing X509_free... " >&6; } 4358if test "${ac_cv_search_X509_free+set}" = set; then : 4359 $as_echo_n "(cached) " >&6 4360else 4361 ac_func_search_save_LIBS=$LIBS 4362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4363/* end confdefs.h. */ 4364 4365/* Override any GCC internal prototype to avoid an error. 4366 Use char because int might match the return type of a GCC 4367 builtin and then its argument prototype would still apply. */ 4368#ifdef __cplusplus 4369extern "C" 4370#endif 4371char X509_free (); 4372int 4373main () 4374{ 4375return X509_free (); 4376 ; 4377 return 0; 4378} 4379_ACEOF 4380for ac_lib in '' crypto; do 4381 if test -z "$ac_lib"; then 4382 ac_res="none required" 4383 else 4384 ac_res=-l$ac_lib 4385 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4386 fi 4387 if ac_fn_c_try_link "$LINENO"; then : 4388 ac_cv_search_X509_free=$ac_res 4389fi 4390rm -f core conftest.err conftest.$ac_objext \ 4391 conftest$ac_exeext 4392 if test "${ac_cv_search_X509_free+set}" = set; then : 4393 break 4394fi 4395done 4396if test "${ac_cv_search_X509_free+set}" = set; then : 4397 4398else 4399 ac_cv_search_X509_free=no 4400fi 4401rm conftest.$ac_ext 4402LIBS=$ac_func_search_save_LIBS 4403fi 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_X509_free" >&5 4405$as_echo "$ac_cv_search_X509_free" >&6; } 4406ac_res=$ac_cv_search_X509_free 4407if test "$ac_res" != no; then : 4408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4409 4410$as_echo "#define HAVE_X509_FREE 1" >>confdefs.h 4411 4412fi 4413 4414 4415 if test "$ac_cv_search_TLSv1_server_method" = "-lssl"; then 4416 LIBSSL="-lssl" 4417 fi 4418 if test "$ac_cv_search_X509_free" = "-lcrypto"; then 4419 LIBCRYPTO="-lcrypto" 4420 fi 4421fi 4422 4423ac_config_files="$ac_config_files Makefile" 4424 4425cat >confcache <<\_ACEOF 4426# This file is a shell script that caches the results of configure 4427# tests run on this system so they can be shared between configure 4428# scripts and configure runs, see configure's option --config-cache. 4429# It is not useful on other systems. If it contains results you don't 4430# want to keep, you may remove or edit it. 4431# 4432# config.status only pays attention to the cache file if you give it 4433# the --recheck option to rerun configure. 4434# 4435# `ac_cv_env_foo' variables (set or unset) will be overridden when 4436# loading this file, other *unset* `ac_cv_foo' will be assigned the 4437# following values. 4438 4439_ACEOF 4440 4441# The following way of writing the cache mishandles newlines in values, 4442# but we know of no workaround that is simple, portable, and efficient. 4443# So, we kill variables containing newlines. 4444# Ultrix sh set writes to stderr and can't be redirected directly, 4445# and sets the high bit in the cache file unless we assign to the vars. 4446( 4447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4448 eval ac_val=\$$ac_var 4449 case $ac_val in #( 4450 *${as_nl}*) 4451 case $ac_var in #( 4452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4453$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4454 esac 4455 case $ac_var in #( 4456 _ | IFS | as_nl) ;; #( 4457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4458 *) { eval $ac_var=; unset $ac_var;} ;; 4459 esac ;; 4460 esac 4461 done 4462 4463 (set) 2>&1 | 4464 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4465 *${as_nl}ac_space=\ *) 4466 # `set' does not quote correctly, so add quotes: double-quote 4467 # substitution turns \\\\ into \\, and sed turns \\ into \. 4468 sed -n \ 4469 "s/'/'\\\\''/g; 4470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4471 ;; #( 4472 *) 4473 # `set' quotes correctly as required by POSIX, so do not add quotes. 4474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4475 ;; 4476 esac | 4477 sort 4478) | 4479 sed ' 4480 /^ac_cv_env_/b end 4481 t clear 4482 :clear 4483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4484 t end 4485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4486 :end' >>confcache 4487if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4488 if test -w "$cache_file"; then 4489 test "x$cache_file" != "x/dev/null" && 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4491$as_echo "$as_me: updating cache $cache_file" >&6;} 4492 cat confcache >$cache_file 4493 else 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4495$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4496 fi 4497fi 4498rm -f confcache 4499 4500test "x$prefix" = xNONE && prefix=$ac_default_prefix 4501# Let make expand exec_prefix. 4502test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4503 4504DEFS=-DHAVE_CONFIG_H 4505 4506ac_libobjs= 4507ac_ltlibobjs= 4508U= 4509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4510 # 1. Remove the extension, and $U if already installed. 4511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4512 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4514 # will be set to the directory where LIBOBJS objects are built. 4515 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4516 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4517done 4518LIBOBJS=$ac_libobjs 4519 4520LTLIBOBJS=$ac_ltlibobjs 4521 4522 4523 4524: ${CONFIG_STATUS=./config.status} 4525ac_write_fail=0 4526ac_clean_files_save=$ac_clean_files 4527ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4529$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4530as_write_fail=0 4531cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4532#! $SHELL 4533# Generated by $as_me. 4534# Run this file to recreate the current configuration. 4535# Compiler output produced by configure, useful for debugging 4536# configure, is in config.log if it exists. 4537 4538debug=false 4539ac_cs_recheck=false 4540ac_cs_silent=false 4541 4542SHELL=\${CONFIG_SHELL-$SHELL} 4543export SHELL 4544_ASEOF 4545cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4546## -------------------- ## 4547## M4sh Initialization. ## 4548## -------------------- ## 4549 4550# Be more Bourne compatible 4551DUALCASE=1; export DUALCASE # for MKS sh 4552if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4553 emulate sh 4554 NULLCMD=: 4555 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4556 # is contrary to our usage. Disable this feature. 4557 alias -g '${1+"$@"}'='"$@"' 4558 setopt NO_GLOB_SUBST 4559else 4560 case `(set -o) 2>/dev/null` in #( 4561 *posix*) : 4562 set -o posix ;; #( 4563 *) : 4564 ;; 4565esac 4566fi 4567 4568 4569as_nl=' 4570' 4571export as_nl 4572# Printing a long string crashes Solaris 7 /usr/bin/printf. 4573as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4574as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4575as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4576# Prefer a ksh shell builtin over an external printf program on Solaris, 4577# but without wasting forks for bash or zsh. 4578if test -z "$BASH_VERSION$ZSH_VERSION" \ 4579 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4580 as_echo='print -r --' 4581 as_echo_n='print -rn --' 4582elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4583 as_echo='printf %s\n' 4584 as_echo_n='printf %s' 4585else 4586 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 4587 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 4588 as_echo_n='/usr/ucb/echo -n' 4589 else 4590 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 4591 as_echo_n_body='eval 4592 arg=$1; 4593 case $arg in #( 4594 *"$as_nl"*) 4595 expr "X$arg" : "X\\(.*\\)$as_nl"; 4596 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 4597 esac; 4598 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 4599 ' 4600 export as_echo_n_body 4601 as_echo_n='sh -c $as_echo_n_body as_echo' 4602 fi 4603 export as_echo_body 4604 as_echo='sh -c $as_echo_body as_echo' 4605fi 4606 4607# The user is always right. 4608if test "${PATH_SEPARATOR+set}" != set; then 4609 PATH_SEPARATOR=: 4610 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4611 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4612 PATH_SEPARATOR=';' 4613 } 4614fi 4615 4616 4617# IFS 4618# We need space, tab and new line, in precisely that order. Quoting is 4619# there to prevent editors from complaining about space-tab. 4620# (If _AS_PATH_WALK were called with IFS unset, it would disable word 4621# splitting by setting IFS to empty value.) 4622IFS=" "" $as_nl" 4623 4624# Find who we are. Look in the path if we contain no directory separator. 4625case $0 in #(( 4626 *[\\/]* ) as_myself=$0 ;; 4627 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4633 done 4634IFS=$as_save_IFS 4635 4636 ;; 4637esac 4638# We did not find ourselves, most probably we were run as `sh COMMAND' 4639# in which case we are not to be found in the path. 4640if test "x$as_myself" = x; then 4641 as_myself=$0 4642fi 4643if test ! -f "$as_myself"; then 4644 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4645 exit 1 4646fi 4647 4648# Unset variables that we do not need and which cause bugs (e.g. in 4649# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 4650# suppresses any "Segmentation fault" message there. '((' could 4651# trigger a bug in pdksh 5.2.14. 4652for as_var in BASH_ENV ENV MAIL MAILPATH 4653do eval test x\${$as_var+set} = xset \ 4654 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4655done 4656PS1='$ ' 4657PS2='> ' 4658PS4='+ ' 4659 4660# NLS nuisances. 4661LC_ALL=C 4662export LC_ALL 4663LANGUAGE=C 4664export LANGUAGE 4665 4666# CDPATH. 4667(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4668 4669 4670# as_fn_error STATUS ERROR [LINENO LOG_FD] 4671# ---------------------------------------- 4672# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4673# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4674# script with STATUS, using 1 if that was 0. 4675as_fn_error () 4676{ 4677 as_status=$1; test $as_status -eq 0 && as_status=1 4678 if test "$4"; then 4679 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4680 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4681 fi 4682 $as_echo "$as_me: error: $2" >&2 4683 as_fn_exit $as_status 4684} # as_fn_error 4685 4686 4687# as_fn_set_status STATUS 4688# ----------------------- 4689# Set $? to STATUS, without forking. 4690as_fn_set_status () 4691{ 4692 return $1 4693} # as_fn_set_status 4694 4695# as_fn_exit STATUS 4696# ----------------- 4697# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4698as_fn_exit () 4699{ 4700 set +e 4701 as_fn_set_status $1 4702 exit $1 4703} # as_fn_exit 4704 4705# as_fn_unset VAR 4706# --------------- 4707# Portably unset VAR. 4708as_fn_unset () 4709{ 4710 { eval $1=; unset $1;} 4711} 4712as_unset=as_fn_unset 4713# as_fn_append VAR VALUE 4714# ---------------------- 4715# Append the text in VALUE to the end of the definition contained in VAR. Take 4716# advantage of any shell optimizations that allow amortized linear growth over 4717# repeated appends, instead of the typical quadratic growth present in naive 4718# implementations. 4719if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 4720 eval 'as_fn_append () 4721 { 4722 eval $1+=\$2 4723 }' 4724else 4725 as_fn_append () 4726 { 4727 eval $1=\$$1\$2 4728 } 4729fi # as_fn_append 4730 4731# as_fn_arith ARG... 4732# ------------------ 4733# Perform arithmetic evaluation on the ARGs, and store the result in the 4734# global $as_val. Take advantage of shells that can avoid forks. The arguments 4735# must be portable across $(()) and expr. 4736if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 4737 eval 'as_fn_arith () 4738 { 4739 as_val=$(( $* )) 4740 }' 4741else 4742 as_fn_arith () 4743 { 4744 as_val=`expr "$@" || test $? -eq 1` 4745 } 4746fi # as_fn_arith 4747 4748 4749if expr a : '\(a\)' >/dev/null 2>&1 && 4750 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4751 as_expr=expr 4752else 4753 as_expr=false 4754fi 4755 4756if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4757 as_basename=basename 4758else 4759 as_basename=false 4760fi 4761 4762if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4763 as_dirname=dirname 4764else 4765 as_dirname=false 4766fi 4767 4768as_me=`$as_basename -- "$0" || 4769$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4770 X"$0" : 'X\(//\)$' \| \ 4771 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4772$as_echo X/"$0" | 4773 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4774 s//\1/ 4775 q 4776 } 4777 /^X\/\(\/\/\)$/{ 4778 s//\1/ 4779 q 4780 } 4781 /^X\/\(\/\).*/{ 4782 s//\1/ 4783 q 4784 } 4785 s/.*/./; q'` 4786 4787# Avoid depending upon Character Ranges. 4788as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4789as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4790as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4791as_cr_digits='0123456789' 4792as_cr_alnum=$as_cr_Letters$as_cr_digits 4793 4794ECHO_C= ECHO_N= ECHO_T= 4795case `echo -n x` in #((((( 4796-n*) 4797 case `echo 'xy\c'` in 4798 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4799 xy) ECHO_C='\c';; 4800 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4801 ECHO_T=' ';; 4802 esac;; 4803*) 4804 ECHO_N='-n';; 4805esac 4806 4807rm -f conf$$ conf$$.exe conf$$.file 4808if test -d conf$$.dir; then 4809 rm -f conf$$.dir/conf$$.file 4810else 4811 rm -f conf$$.dir 4812 mkdir conf$$.dir 2>/dev/null 4813fi 4814if (echo >conf$$.file) 2>/dev/null; then 4815 if ln -s conf$$.file conf$$ 2>/dev/null; then 4816 as_ln_s='ln -s' 4817 # ... but there are two gotchas: 4818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4820 # In both cases, we have to default to `cp -p'. 4821 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4822 as_ln_s='cp -p' 4823 elif ln conf$$.file conf$$ 2>/dev/null; then 4824 as_ln_s=ln 4825 else 4826 as_ln_s='cp -p' 4827 fi 4828else 4829 as_ln_s='cp -p' 4830fi 4831rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4832rmdir conf$$.dir 2>/dev/null 4833 4834 4835# as_fn_mkdir_p 4836# ------------- 4837# Create "$as_dir" as a directory, including parents if necessary. 4838as_fn_mkdir_p () 4839{ 4840 4841 case $as_dir in #( 4842 -*) as_dir=./$as_dir;; 4843 esac 4844 test -d "$as_dir" || eval $as_mkdir_p || { 4845 as_dirs= 4846 while :; do 4847 case $as_dir in #( 4848 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 4849 *) as_qdir=$as_dir;; 4850 esac 4851 as_dirs="'$as_qdir' $as_dirs" 4852 as_dir=`$as_dirname -- "$as_dir" || 4853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4854 X"$as_dir" : 'X\(//\)[^/]' \| \ 4855 X"$as_dir" : 'X\(//\)$' \| \ 4856 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4857$as_echo X"$as_dir" | 4858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4859 s//\1/ 4860 q 4861 } 4862 /^X\(\/\/\)[^/].*/{ 4863 s//\1/ 4864 q 4865 } 4866 /^X\(\/\/\)$/{ 4867 s//\1/ 4868 q 4869 } 4870 /^X\(\/\).*/{ 4871 s//\1/ 4872 q 4873 } 4874 s/.*/./; q'` 4875 test -d "$as_dir" && break 4876 done 4877 test -z "$as_dirs" || eval "mkdir $as_dirs" 4878 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 4879 4880 4881} # as_fn_mkdir_p 4882if mkdir -p . 2>/dev/null; then 4883 as_mkdir_p='mkdir -p "$as_dir"' 4884else 4885 test -d ./-p && rmdir ./-p 4886 as_mkdir_p=false 4887fi 4888 4889if test -x / >/dev/null 2>&1; then 4890 as_test_x='test -x' 4891else 4892 if ls -dL / >/dev/null 2>&1; then 4893 as_ls_L_option=L 4894 else 4895 as_ls_L_option= 4896 fi 4897 as_test_x=' 4898 eval sh -c '\'' 4899 if test -d "$1"; then 4900 test -d "$1/."; 4901 else 4902 case $1 in #( 4903 -*)set "./$1";; 4904 esac; 4905 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 4906 ???[sx]*):;;*)false;;esac;fi 4907 '\'' sh 4908 ' 4909fi 4910as_executable_p=$as_test_x 4911 4912# Sed expression to map a string onto a valid CPP name. 4913as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4914 4915# Sed expression to map a string onto a valid variable name. 4916as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4917 4918 4919exec 6>&1 4920## ----------------------------------- ## 4921## Main body of $CONFIG_STATUS script. ## 4922## ----------------------------------- ## 4923_ASEOF 4924test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4925 4926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4927# Save the log message, to keep $0 and so on meaningful, and to 4928# report actual input values of CONFIG_FILES etc. instead of their 4929# values after options handling. 4930ac_log=" 4931This file was extended by $as_me, which was 4932generated by GNU Autoconf 2.67. Invocation command line was 4933 4934 CONFIG_FILES = $CONFIG_FILES 4935 CONFIG_HEADERS = $CONFIG_HEADERS 4936 CONFIG_LINKS = $CONFIG_LINKS 4937 CONFIG_COMMANDS = $CONFIG_COMMANDS 4938 $ $0 $@ 4939 4940on `(hostname || uname -n) 2>/dev/null | sed 1q` 4941" 4942 4943_ACEOF 4944 4945case $ac_config_files in *" 4946"*) set x $ac_config_files; shift; ac_config_files=$*;; 4947esac 4948 4949case $ac_config_headers in *" 4950"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 4951esac 4952 4953 4954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4955# Files that config.status was made for. 4956config_files="$ac_config_files" 4957config_headers="$ac_config_headers" 4958 4959_ACEOF 4960 4961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4962ac_cs_usage="\ 4963\`$as_me' instantiates files and other configuration actions 4964from templates according to the current configuration. Unless the files 4965and actions are specified as TAGs, all are instantiated by default. 4966 4967Usage: $0 [OPTION]... [TAG]... 4968 4969 -h, --help print this help, then exit 4970 -V, --version print version number and configuration settings, then exit 4971 --config print configuration, then exit 4972 -q, --quiet, --silent 4973 do not print progress messages 4974 -d, --debug don't remove temporary files 4975 --recheck update $as_me by reconfiguring in the same conditions 4976 --file=FILE[:TEMPLATE] 4977 instantiate the configuration file FILE 4978 --header=FILE[:TEMPLATE] 4979 instantiate the configuration header FILE 4980 4981Configuration files: 4982$config_files 4983 4984Configuration headers: 4985$config_headers 4986 4987Report bugs to the package provider." 4988 4989_ACEOF 4990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4991ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4992ac_cs_version="\\ 4993config.status 4994configured by $0, generated by GNU Autoconf 2.67, 4995 with options \\"\$ac_cs_config\\" 4996 4997Copyright (C) 2010 Free Software Foundation, Inc. 4998This config.status script is free software; the Free Software Foundation 4999gives unlimited permission to copy, distribute and modify it." 5000 5001ac_pwd='$ac_pwd' 5002srcdir='$srcdir' 5003test -n "\$AWK" || AWK=awk 5004_ACEOF 5005 5006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5007# The default lists apply if the user does not specify any file. 5008ac_need_defaults=: 5009while test $# != 0 5010do 5011 case $1 in 5012 --*=?*) 5013 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5015 ac_shift=: 5016 ;; 5017 --*=) 5018 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5019 ac_optarg= 5020 ac_shift=: 5021 ;; 5022 *) 5023 ac_option=$1 5024 ac_optarg=$2 5025 ac_shift=shift 5026 ;; 5027 esac 5028 5029 case $ac_option in 5030 # Handling of the options. 5031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5032 ac_cs_recheck=: ;; 5033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5034 $as_echo "$ac_cs_version"; exit ;; 5035 --config | --confi | --conf | --con | --co | --c ) 5036 $as_echo "$ac_cs_config"; exit ;; 5037 --debug | --debu | --deb | --de | --d | -d ) 5038 debug=: ;; 5039 --file | --fil | --fi | --f ) 5040 $ac_shift 5041 case $ac_optarg in 5042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5043 '') as_fn_error $? "missing file argument" ;; 5044 esac 5045 as_fn_append CONFIG_FILES " '$ac_optarg'" 5046 ac_need_defaults=false;; 5047 --header | --heade | --head | --hea ) 5048 $ac_shift 5049 case $ac_optarg in 5050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5051 esac 5052 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5053 ac_need_defaults=false;; 5054 --he | --h) 5055 # Conflict between --help and --header 5056 as_fn_error $? "ambiguous option: \`$1' 5057Try \`$0 --help' for more information.";; 5058 --help | --hel | -h ) 5059 $as_echo "$ac_cs_usage"; exit ;; 5060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5061 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5062 ac_cs_silent=: ;; 5063 5064 # This is an error. 5065 -*) as_fn_error $? "unrecognized option: \`$1' 5066Try \`$0 --help' for more information." ;; 5067 5068 *) as_fn_append ac_config_targets " $1" 5069 ac_need_defaults=false ;; 5070 5071 esac 5072 shift 5073done 5074 5075ac_configure_extra_args= 5076 5077if $ac_cs_silent; then 5078 exec 6>/dev/null 5079 ac_configure_extra_args="$ac_configure_extra_args --silent" 5080fi 5081 5082_ACEOF 5083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5084if \$ac_cs_recheck; then 5085 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5086 shift 5087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5088 CONFIG_SHELL='$SHELL' 5089 export CONFIG_SHELL 5090 exec "\$@" 5091fi 5092 5093_ACEOF 5094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5095exec 5>>config.log 5096{ 5097 echo 5098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5099## Running $as_me. ## 5100_ASBOX 5101 $as_echo "$ac_log" 5102} >&5 5103 5104_ACEOF 5105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5106_ACEOF 5107 5108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5109 5110# Handling of arguments. 5111for ac_config_target in $ac_config_targets 5112do 5113 case $ac_config_target in 5114 "ac-hdrs.h") CONFIG_HEADERS="$CONFIG_HEADERS ac-hdrs.h" ;; 5115 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5116 5117 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 5118 esac 5119done 5120 5121 5122# If the user did not use the arguments to specify the items to instantiate, 5123# then the envvar interface is used. Set only those that are not. 5124# We use the long form for the default assignment because of an extremely 5125# bizarre bug on SunOS 4.1.3. 5126if $ac_need_defaults; then 5127 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5128 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5129fi 5130 5131# Have a temporary directory for convenience. Make it in the build tree 5132# simply because there is no reason against having it here, and in addition, 5133# creating and moving files from /tmp can sometimes cause problems. 5134# Hook for its removal unless debugging. 5135# Note that there is a small window in which the directory will not be cleaned: 5136# after its creation but before its name has been assigned to `$tmp'. 5137$debug || 5138{ 5139 tmp= 5140 trap 'exit_status=$? 5141 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5142' 0 5143 trap 'as_fn_exit 1' 1 2 13 15 5144} 5145# Create a (secure) tmp directory for tmp files. 5146 5147{ 5148 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5149 test -n "$tmp" && test -d "$tmp" 5150} || 5151{ 5152 tmp=./conf$$-$RANDOM 5153 (umask 077 && mkdir "$tmp") 5154} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5155 5156# Set up the scripts for CONFIG_FILES section. 5157# No need to generate them if there are no CONFIG_FILES. 5158# This happens for instance with `./config.status config.h'. 5159if test -n "$CONFIG_FILES"; then 5160 5161 5162ac_cr=`echo X | tr X '\015'` 5163# On cygwin, bash can eat \r inside `` if the user requested igncr. 5164# But we know of no other shell where ac_cr would be empty at this 5165# point, so we can use a bashism as a fallback. 5166if test "x$ac_cr" = x; then 5167 eval ac_cr=\$\'\\r\' 5168fi 5169ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5170if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5171 ac_cs_awk_cr='\\r' 5172else 5173 ac_cs_awk_cr=$ac_cr 5174fi 5175 5176echo 'BEGIN {' >"$tmp/subs1.awk" && 5177_ACEOF 5178 5179 5180{ 5181 echo "cat >conf$$subs.awk <<_ACEOF" && 5182 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5183 echo "_ACEOF" 5184} >conf$$subs.sh || 5185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5186ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5187ac_delim='%!_!# ' 5188for ac_last_try in false false false false false :; do 5189 . ./conf$$subs.sh || 5190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5191 5192 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5193 if test $ac_delim_n = $ac_delim_num; then 5194 break 5195 elif $ac_last_try; then 5196 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5197 else 5198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5199 fi 5200done 5201rm -f conf$$subs.sh 5202 5203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5204cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 5205_ACEOF 5206sed -n ' 5207h 5208s/^/S["/; s/!.*/"]=/ 5209p 5210g 5211s/^[^!]*!// 5212:repl 5213t repl 5214s/'"$ac_delim"'$// 5215t delim 5216:nl 5217h 5218s/\(.\{148\}\)..*/\1/ 5219t more1 5220s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5221p 5222n 5223b repl 5224:more1 5225s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5226p 5227g 5228s/.\{148\}// 5229t nl 5230:delim 5231h 5232s/\(.\{148\}\)..*/\1/ 5233t more2 5234s/["\\]/\\&/g; s/^/"/; s/$/"/ 5235p 5236b 5237:more2 5238s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5239p 5240g 5241s/.\{148\}// 5242t delim 5243' <conf$$subs.awk | sed ' 5244/^[^""]/{ 5245 N 5246 s/\n// 5247} 5248' >>$CONFIG_STATUS || ac_write_fail=1 5249rm -f conf$$subs.awk 5250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5251_ACAWK 5252cat >>"\$tmp/subs1.awk" <<_ACAWK && 5253 for (key in S) S_is_set[key] = 1 5254 FS = "" 5255 5256} 5257{ 5258 line = $ 0 5259 nfields = split(line, field, "@") 5260 substed = 0 5261 len = length(field[1]) 5262 for (i = 2; i < nfields; i++) { 5263 key = field[i] 5264 keylen = length(key) 5265 if (S_is_set[key]) { 5266 value = S[key] 5267 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5268 len += length(value) + length(field[++i]) 5269 substed = 1 5270 } else 5271 len += 1 + keylen 5272 } 5273 5274 print line 5275} 5276 5277_ACAWK 5278_ACEOF 5279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5280if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5281 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5282else 5283 cat 5284fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 5285 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5286_ACEOF 5287 5288# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5289# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5290# trailing colons and then remove the whole line if VPATH becomes empty 5291# (actually we leave an empty line to preserve line numbers). 5292if test "x$srcdir" = x.; then 5293 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5294h 5295s/// 5296s/^/:/ 5297s/[ ]*$/:/ 5298s/:\$(srcdir):/:/g 5299s/:\${srcdir}:/:/g 5300s/:@srcdir@:/:/g 5301s/^:*// 5302s/:*$// 5303x 5304s/\(=[ ]*\).*/\1/ 5305G 5306s/\n// 5307s/^[^=]*=[ ]*$// 5308}' 5309fi 5310 5311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5312fi # test -n "$CONFIG_FILES" 5313 5314# Set up the scripts for CONFIG_HEADERS section. 5315# No need to generate them if there are no CONFIG_HEADERS. 5316# This happens for instance with `./config.status Makefile'. 5317if test -n "$CONFIG_HEADERS"; then 5318cat >"$tmp/defines.awk" <<\_ACAWK || 5319BEGIN { 5320_ACEOF 5321 5322# Transform confdefs.h into an awk script `defines.awk', embedded as 5323# here-document in config.status, that substitutes the proper values into 5324# config.h.in to produce config.h. 5325 5326# Create a delimiter string that does not exist in confdefs.h, to ease 5327# handling of long lines. 5328ac_delim='%!_!# ' 5329for ac_last_try in false false :; do 5330 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 5331 if test -z "$ac_t"; then 5332 break 5333 elif $ac_last_try; then 5334 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5335 else 5336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5337 fi 5338done 5339 5340# For the awk script, D is an array of macro values keyed by name, 5341# likewise P contains macro parameters if any. Preserve backslash 5342# newline sequences. 5343 5344ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5345sed -n ' 5346s/.\{148\}/&'"$ac_delim"'/g 5347t rset 5348:rset 5349s/^[ ]*#[ ]*define[ ][ ]*/ / 5350t def 5351d 5352:def 5353s/\\$// 5354t bsnl 5355s/["\\]/\\&/g 5356s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5357D["\1"]=" \3"/p 5358s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5359d 5360:bsnl 5361s/["\\]/\\&/g 5362s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5363D["\1"]=" \3\\\\\\n"\\/p 5364t cont 5365s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5366t cont 5367d 5368:cont 5369n 5370s/.\{148\}/&'"$ac_delim"'/g 5371t clear 5372:clear 5373s/\\$// 5374t bsnlc 5375s/["\\]/\\&/g; s/^/"/; s/$/"/p 5376d 5377:bsnlc 5378s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5379b cont 5380' <confdefs.h | sed ' 5381s/'"$ac_delim"'/"\\\ 5382"/g' >>$CONFIG_STATUS || ac_write_fail=1 5383 5384cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5385 for (key in D) D_is_set[key] = 1 5386 FS = "" 5387} 5388/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5389 line = \$ 0 5390 split(line, arg, " ") 5391 if (arg[1] == "#") { 5392 defundef = arg[2] 5393 mac1 = arg[3] 5394 } else { 5395 defundef = substr(arg[1], 2) 5396 mac1 = arg[2] 5397 } 5398 split(mac1, mac2, "(") #) 5399 macro = mac2[1] 5400 prefix = substr(line, 1, index(line, defundef) - 1) 5401 if (D_is_set[macro]) { 5402 # Preserve the white space surrounding the "#". 5403 print prefix "define", macro P[macro] D[macro] 5404 next 5405 } else { 5406 # Replace #undef with comments. This is necessary, for example, 5407 # in the case of _POSIX_SOURCE, which is predefined and required 5408 # on some systems where configure will not decide to define it. 5409 if (defundef == "undef") { 5410 print "/*", prefix defundef, macro, "*/" 5411 next 5412 } 5413 } 5414} 5415{ print } 5416_ACAWK 5417_ACEOF 5418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5419 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 5420fi # test -n "$CONFIG_HEADERS" 5421 5422 5423eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 5424shift 5425for ac_tag 5426do 5427 case $ac_tag in 5428 :[FHLC]) ac_mode=$ac_tag; continue;; 5429 esac 5430 case $ac_mode$ac_tag in 5431 :[FHL]*:*);; 5432 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 5433 :[FH]-) ac_tag=-:-;; 5434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5435 esac 5436 ac_save_IFS=$IFS 5437 IFS=: 5438 set x $ac_tag 5439 IFS=$ac_save_IFS 5440 shift 5441 ac_file=$1 5442 shift 5443 5444 case $ac_mode in 5445 :L) ac_source=$1;; 5446 :[FH]) 5447 ac_file_inputs= 5448 for ac_f 5449 do 5450 case $ac_f in 5451 -) ac_f="$tmp/stdin";; 5452 *) # Look for the file first in the build tree, then in the source tree 5453 # (if the path is not absolute). The absolute path cannot be DOS-style, 5454 # because $ac_f cannot contain `:'. 5455 test -f "$ac_f" || 5456 case $ac_f in 5457 [\\/$]*) false;; 5458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5459 esac || 5460 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 5461 esac 5462 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5463 as_fn_append ac_file_inputs " '$ac_f'" 5464 done 5465 5466 # Let's still pretend it is `configure' which instantiates (i.e., don't 5467 # use $as_me), people would be surprised to read: 5468 # /* config.h. Generated by config.status. */ 5469 configure_input='Generated from '` 5470 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5471 `' by configure.' 5472 if test x"$ac_file" != x-; then 5473 configure_input="$ac_file. $configure_input" 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 5475$as_echo "$as_me: creating $ac_file" >&6;} 5476 fi 5477 # Neutralize special characters interpreted by sed in replacement strings. 5478 case $configure_input in #( 5479 *\&* | *\|* | *\\* ) 5480 ac_sed_conf_input=`$as_echo "$configure_input" | 5481 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5482 *) ac_sed_conf_input=$configure_input;; 5483 esac 5484 5485 case $ac_tag in 5486 *:-:* | *:-) cat >"$tmp/stdin" \ 5487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5488 esac 5489 ;; 5490 esac 5491 5492 ac_dir=`$as_dirname -- "$ac_file" || 5493$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5494 X"$ac_file" : 'X\(//\)[^/]' \| \ 5495 X"$ac_file" : 'X\(//\)$' \| \ 5496 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5497$as_echo X"$ac_file" | 5498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5499 s//\1/ 5500 q 5501 } 5502 /^X\(\/\/\)[^/].*/{ 5503 s//\1/ 5504 q 5505 } 5506 /^X\(\/\/\)$/{ 5507 s//\1/ 5508 q 5509 } 5510 /^X\(\/\).*/{ 5511 s//\1/ 5512 q 5513 } 5514 s/.*/./; q'` 5515 as_dir="$ac_dir"; as_fn_mkdir_p 5516 ac_builddir=. 5517 5518case "$ac_dir" in 5519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5520*) 5521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 5522 # A ".." for each directory in $ac_dir_suffix. 5523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5524 case $ac_top_builddir_sub in 5525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5527 esac ;; 5528esac 5529ac_abs_top_builddir=$ac_pwd 5530ac_abs_builddir=$ac_pwd$ac_dir_suffix 5531# for backward compatibility: 5532ac_top_builddir=$ac_top_build_prefix 5533 5534case $srcdir in 5535 .) # We are building in place. 5536 ac_srcdir=. 5537 ac_top_srcdir=$ac_top_builddir_sub 5538 ac_abs_top_srcdir=$ac_pwd ;; 5539 [\\/]* | ?:[\\/]* ) # Absolute name. 5540 ac_srcdir=$srcdir$ac_dir_suffix; 5541 ac_top_srcdir=$srcdir 5542 ac_abs_top_srcdir=$srcdir ;; 5543 *) # Relative name. 5544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5545 ac_top_srcdir=$ac_top_build_prefix$srcdir 5546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5547esac 5548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5549 5550 5551 case $ac_mode in 5552 :F) 5553 # 5554 # CONFIG_FILE 5555 # 5556 5557_ACEOF 5558 5559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5560# If the template does not know about datarootdir, expand it. 5561# FIXME: This hack should be removed a few years after 2.60. 5562ac_datarootdir_hack=; ac_datarootdir_seen= 5563ac_sed_dataroot=' 5564/datarootdir/ { 5565 p 5566 q 5567} 5568/@datadir@/p 5569/@docdir@/p 5570/@infodir@/p 5571/@localedir@/p 5572/@mandir@/p' 5573case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 5574*datarootdir*) ac_datarootdir_seen=yes;; 5575*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5577$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5578_ACEOF 5579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5580 ac_datarootdir_hack=' 5581 s&@datadir@&$datadir&g 5582 s&@docdir@&$docdir&g 5583 s&@infodir@&$infodir&g 5584 s&@localedir@&$localedir&g 5585 s&@mandir@&$mandir&g 5586 s&\\\${datarootdir}&$datarootdir&g' ;; 5587esac 5588_ACEOF 5589 5590# Neutralize VPATH when `$srcdir' = `.'. 5591# Shell code in configure.ac might set extrasub. 5592# FIXME: do we really want to maintain this feature? 5593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5594ac_sed_extra="$ac_vpsub 5595$extrasub 5596_ACEOF 5597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5598:t 5599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5600s|@configure_input@|$ac_sed_conf_input|;t t 5601s&@top_builddir@&$ac_top_builddir_sub&;t t 5602s&@top_build_prefix@&$ac_top_build_prefix&;t t 5603s&@srcdir@&$ac_srcdir&;t t 5604s&@abs_srcdir@&$ac_abs_srcdir&;t t 5605s&@top_srcdir@&$ac_top_srcdir&;t t 5606s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 5607s&@builddir@&$ac_builddir&;t t 5608s&@abs_builddir@&$ac_abs_builddir&;t t 5609s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5610$ac_datarootdir_hack 5611" 5612eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 5613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5614 5615test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5616 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 5617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5619which seems to be undefined. Please make sure it is defined" >&5 5620$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5621which seems to be undefined. Please make sure it is defined" >&2;} 5622 5623 rm -f "$tmp/stdin" 5624 case $ac_file in 5625 -) cat "$tmp/out" && rm -f "$tmp/out";; 5626 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 5627 esac \ 5628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5629 ;; 5630 :H) 5631 # 5632 # CONFIG_HEADER 5633 # 5634 if test x"$ac_file" != x-; then 5635 { 5636 $as_echo "/* $configure_input */" \ 5637 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 5638 } >"$tmp/config.h" \ 5639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5640 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5642$as_echo "$as_me: $ac_file is unchanged" >&6;} 5643 else 5644 rm -f "$ac_file" 5645 mv "$tmp/config.h" "$ac_file" \ 5646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5647 fi 5648 else 5649 $as_echo "/* $configure_input */" \ 5650 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 5651 || as_fn_error $? "could not create -" "$LINENO" 5 5652 fi 5653 ;; 5654 5655 5656 esac 5657 5658done # for ac_tag 5659 5660 5661as_fn_exit 0 5662_ACEOF 5663ac_clean_files=$ac_clean_files_save 5664 5665test $ac_write_fail = 0 || 5666 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 5667 5668 5669# configure is writing to config.log, and then calls config.status. 5670# config.status does its own redirection, appending to config.log. 5671# Unfortunately, on DOS this fails, as config.log is still kept open 5672# by configure, so config.status won't be able to write to it; its 5673# output is simply discarded. So we exec the FD to /dev/null, 5674# effectively closing config.log, so it can be properly (re)opened and 5675# appended to by config.status. When coming back to configure, we 5676# need to make the FD available again. 5677if test "$no_create" != yes; then 5678 ac_cs_success=: 5679 ac_config_status_args= 5680 test "$silent" = yes && 5681 ac_config_status_args="$ac_config_status_args --quiet" 5682 exec 5>/dev/null 5683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5684 exec 5>>config.log 5685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5686 # would make configure fail if this is the last instruction. 5687 $ac_cs_success || as_fn_exit 1 5688fi 5689if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5691$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5692fi 5693 5694 5695if test "$_cv_gnu_make_command" != "" -a "$_cv_gnu_make_command" != "make" ; then 5696 mv Makefile GNUmakefile 5697 echo all clean distclean install: > Makefile ; 5698 echo \ $_cv_gnu_make_command \$@ >> Makefile; 5699fi 5700 5701