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