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