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