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