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