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