configure revision 1a054510
114c0a534Smrg#! /bin/sh 214c0a534Smrg# Guess values for system-dependent variables and create Makefiles. 31a054510Smrg# Generated by GNU Autoconf 2.68 for smproxy 1.0.5. 414c0a534Smrg# 514c0a534Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 614c0a534Smrg# 7576bae58Smrg# 8bf2eeab3Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9576bae58Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10576bae58Smrg# Foundation, Inc. 11576bae58Smrg# 12576bae58Smrg# 1314c0a534Smrg# This configure script is free software; the Free Software Foundation 1414c0a534Smrg# gives unlimited permission to copy, distribute and modify it. 15576bae58Smrg## -------------------- ## 16576bae58Smrg## M4sh Initialization. ## 17576bae58Smrg## -------------------- ## 1814c0a534Smrg 19bf2eeab3Smrg# Be more Bourne compatible 20bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh 21576bae58Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 2214c0a534Smrg emulate sh 2314c0a534Smrg NULLCMD=: 24bf2eeab3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2514c0a534Smrg # is contrary to our usage. Disable this feature. 2614c0a534Smrg alias -g '${1+"$@"}'='"$@"' 27bf2eeab3Smrg setopt NO_GLOB_SUBST 28bf2eeab3Smrgelse 29576bae58Smrg case `(set -o) 2>/dev/null` in #( 30576bae58Smrg *posix*) : 31576bae58Smrg set -o posix ;; #( 32576bae58Smrg *) : 33576bae58Smrg ;; 34bf2eeab3Smrgesac 35bf2eeab3Smrgfi 36bf2eeab3Smrg 37bf2eeab3Smrg 38bf2eeab3Smrgas_nl=' 39bf2eeab3Smrg' 40bf2eeab3Smrgexport as_nl 41bf2eeab3Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42bf2eeab3Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45576bae58Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46576bae58Smrg# but without wasting forks for bash or zsh. 47576bae58Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48576bae58Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49576bae58Smrg as_echo='print -r --' 50576bae58Smrg as_echo_n='print -rn --' 51576bae58Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52bf2eeab3Smrg as_echo='printf %s\n' 53bf2eeab3Smrg as_echo_n='printf %s' 54bf2eeab3Smrgelse 55bf2eeab3Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56bf2eeab3Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57bf2eeab3Smrg as_echo_n='/usr/ucb/echo -n' 58bf2eeab3Smrg else 59bf2eeab3Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60bf2eeab3Smrg as_echo_n_body='eval 61bf2eeab3Smrg arg=$1; 62576bae58Smrg case $arg in #( 63bf2eeab3Smrg *"$as_nl"*) 64bf2eeab3Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65bf2eeab3Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66bf2eeab3Smrg esac; 67bf2eeab3Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68bf2eeab3Smrg ' 69bf2eeab3Smrg export as_echo_n_body 70bf2eeab3Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 71bf2eeab3Smrg fi 72bf2eeab3Smrg export as_echo_body 73bf2eeab3Smrg as_echo='sh -c $as_echo_body as_echo' 74bf2eeab3Smrgfi 75bf2eeab3Smrg 76bf2eeab3Smrg# The user is always right. 77bf2eeab3Smrgif test "${PATH_SEPARATOR+set}" != set; then 78bf2eeab3Smrg PATH_SEPARATOR=: 79bf2eeab3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80bf2eeab3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81bf2eeab3Smrg PATH_SEPARATOR=';' 82bf2eeab3Smrg } 8314c0a534Smrgfi 8414c0a534Smrg 8514c0a534Smrg 86bf2eeab3Smrg# IFS 87bf2eeab3Smrg# We need space, tab and new line, in precisely that order. Quoting is 88bf2eeab3Smrg# there to prevent editors from complaining about space-tab. 89bf2eeab3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90bf2eeab3Smrg# splitting by setting IFS to empty value.) 91bf2eeab3SmrgIFS=" "" $as_nl" 92bf2eeab3Smrg 93bf2eeab3Smrg# Find who we are. Look in the path if we contain no directory separator. 94576bae58Smrgas_myself= 95576bae58Smrgcase $0 in #(( 96bf2eeab3Smrg *[\\/]* ) as_myself=$0 ;; 97bf2eeab3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98bf2eeab3Smrgfor as_dir in $PATH 99bf2eeab3Smrgdo 100bf2eeab3Smrg IFS=$as_save_IFS 101bf2eeab3Smrg test -z "$as_dir" && as_dir=. 102576bae58Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103576bae58Smrg done 104bf2eeab3SmrgIFS=$as_save_IFS 105bf2eeab3Smrg 106bf2eeab3Smrg ;; 107bf2eeab3Smrgesac 108bf2eeab3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109bf2eeab3Smrg# in which case we are not to be found in the path. 110bf2eeab3Smrgif test "x$as_myself" = x; then 111bf2eeab3Smrg as_myself=$0 112bf2eeab3Smrgfi 113bf2eeab3Smrgif test ! -f "$as_myself"; then 114bf2eeab3Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115576bae58Smrg exit 1 116bf2eeab3Smrgfi 117bf2eeab3Smrg 118576bae58Smrg# Unset variables that we do not need and which cause bugs (e.g. in 119576bae58Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120576bae58Smrg# suppresses any "Segmentation fault" message there. '((' could 121576bae58Smrg# trigger a bug in pdksh 5.2.14. 122576bae58Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123576bae58Smrgdo eval test x\${$as_var+set} = xset \ 124576bae58Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125bf2eeab3Smrgdone 12614c0a534SmrgPS1='$ ' 12714c0a534SmrgPS2='> ' 12814c0a534SmrgPS4='+ ' 12914c0a534Smrg 13014c0a534Smrg# NLS nuisances. 131bf2eeab3SmrgLC_ALL=C 132bf2eeab3Smrgexport LC_ALL 133bf2eeab3SmrgLANGUAGE=C 134bf2eeab3Smrgexport LANGUAGE 13514c0a534Smrg 136576bae58Smrg# CDPATH. 137576bae58Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138576bae58Smrg 139576bae58Smrgif test "x$CONFIG_SHELL" = x; then 140576bae58Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141576bae58Smrg emulate sh 142576bae58Smrg NULLCMD=: 143576bae58Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144576bae58Smrg # is contrary to our usage. Disable this feature. 145576bae58Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146576bae58Smrg setopt NO_GLOB_SUBST 147576bae58Smrgelse 148576bae58Smrg case \`(set -o) 2>/dev/null\` in #( 149576bae58Smrg *posix*) : 150576bae58Smrg set -o posix ;; #( 151576bae58Smrg *) : 152576bae58Smrg ;; 153576bae58Smrgesac 154576bae58Smrgfi 155576bae58Smrg" 156576bae58Smrg as_required="as_fn_return () { (exit \$1); } 157576bae58Smrgas_fn_success () { as_fn_return 0; } 158576bae58Smrgas_fn_failure () { as_fn_return 1; } 159576bae58Smrgas_fn_ret_success () { return 0; } 160576bae58Smrgas_fn_ret_failure () { return 1; } 161576bae58Smrg 162576bae58Smrgexitcode=0 163576bae58Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164576bae58Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165576bae58Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166576bae58Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167576bae58Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168576bae58Smrg 169576bae58Smrgelse 170576bae58Smrg exitcode=1; echo positional parameters were not saved. 171576bae58Smrgfi 172576bae58Smrgtest x\$exitcode = x0 || exit 1" 173576bae58Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174576bae58Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175576bae58Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176576bae58Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177576bae58Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 178576bae58Smrg if (eval "$as_required") 2>/dev/null; then : 179576bae58Smrg as_have_required=yes 180576bae58Smrgelse 181576bae58Smrg as_have_required=no 182576bae58Smrgfi 183576bae58Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184576bae58Smrg 185576bae58Smrgelse 186576bae58Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187576bae58Smrgas_found=false 188576bae58Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189576bae58Smrgdo 190576bae58Smrg IFS=$as_save_IFS 191576bae58Smrg test -z "$as_dir" && as_dir=. 192576bae58Smrg as_found=: 193576bae58Smrg case $as_dir in #( 194576bae58Smrg /*) 195576bae58Smrg for as_base in sh bash ksh sh5; do 196576bae58Smrg # Try only shells that exist, to save several forks. 197576bae58Smrg as_shell=$as_dir/$as_base 198576bae58Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199576bae58Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200576bae58Smrg CONFIG_SHELL=$as_shell as_have_required=yes 201576bae58Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202576bae58Smrg break 2 203576bae58Smrgfi 204576bae58Smrgfi 205576bae58Smrg done;; 206576bae58Smrg esac 207576bae58Smrg as_found=false 208576bae58Smrgdone 209576bae58Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210576bae58Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211576bae58Smrg CONFIG_SHELL=$SHELL as_have_required=yes 212576bae58Smrgfi; } 213576bae58SmrgIFS=$as_save_IFS 214576bae58Smrg 215576bae58Smrg 216576bae58Smrg if test "x$CONFIG_SHELL" != x; then : 217576bae58Smrg # We cannot yet assume a decent shell, so we have to provide a 218576bae58Smrg # neutralization value for shells without unset; and this also 219576bae58Smrg # works around shells that cannot unset nonexistent variables. 220576bae58Smrg # Preserve -v and -x to the replacement shell. 221576bae58Smrg BASH_ENV=/dev/null 222576bae58Smrg ENV=/dev/null 223576bae58Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224576bae58Smrg export CONFIG_SHELL 225576bae58Smrg case $- in # (((( 226576bae58Smrg *v*x* | *x*v* ) as_opts=-vx ;; 227576bae58Smrg *v* ) as_opts=-v ;; 228576bae58Smrg *x* ) as_opts=-x ;; 229576bae58Smrg * ) as_opts= ;; 230576bae58Smrg esac 231576bae58Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232576bae58Smrgfi 233576bae58Smrg 234576bae58Smrg if test x$as_have_required = xno; then : 235576bae58Smrg $as_echo "$0: This script requires a shell more modern than all" 236576bae58Smrg $as_echo "$0: the shells that I found on your system." 237576bae58Smrg if test x${ZSH_VERSION+set} = xset ; then 238576bae58Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239576bae58Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240576bae58Smrg else 241576bae58Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242576bae58Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243576bae58Smrg$0: about your system, including any error possibly output 244576bae58Smrg$0: before this message. Then install a modern shell, or 245576bae58Smrg$0: manually run the script under such a shell if you do 246576bae58Smrg$0: have one." 247576bae58Smrg fi 248576bae58Smrg exit 1 249576bae58Smrgfi 250576bae58Smrgfi 251576bae58Smrgfi 252576bae58SmrgSHELL=${CONFIG_SHELL-/bin/sh} 253576bae58Smrgexport SHELL 254576bae58Smrg# Unset more variables known to interfere with behavior of common tools. 255576bae58SmrgCLICOLOR_FORCE= GREP_OPTIONS= 256576bae58Smrgunset CLICOLOR_FORCE GREP_OPTIONS 257576bae58Smrg 258576bae58Smrg## --------------------- ## 259576bae58Smrg## M4sh Shell Functions. ## 260576bae58Smrg## --------------------- ## 261576bae58Smrg# as_fn_unset VAR 262576bae58Smrg# --------------- 263576bae58Smrg# Portably unset VAR. 264576bae58Smrgas_fn_unset () 265576bae58Smrg{ 266576bae58Smrg { eval $1=; unset $1;} 267576bae58Smrg} 268576bae58Smrgas_unset=as_fn_unset 269576bae58Smrg 270576bae58Smrg# as_fn_set_status STATUS 271576bae58Smrg# ----------------------- 272576bae58Smrg# Set $? to STATUS, without forking. 273576bae58Smrgas_fn_set_status () 274576bae58Smrg{ 275576bae58Smrg return $1 276576bae58Smrg} # as_fn_set_status 277576bae58Smrg 278576bae58Smrg# as_fn_exit STATUS 279576bae58Smrg# ----------------- 280576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281576bae58Smrgas_fn_exit () 282576bae58Smrg{ 283576bae58Smrg set +e 284576bae58Smrg as_fn_set_status $1 285576bae58Smrg exit $1 286576bae58Smrg} # as_fn_exit 287576bae58Smrg 288576bae58Smrg# as_fn_mkdir_p 289576bae58Smrg# ------------- 290576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary. 291576bae58Smrgas_fn_mkdir_p () 292576bae58Smrg{ 293576bae58Smrg 294576bae58Smrg case $as_dir in #( 295576bae58Smrg -*) as_dir=./$as_dir;; 296576bae58Smrg esac 297576bae58Smrg test -d "$as_dir" || eval $as_mkdir_p || { 298576bae58Smrg as_dirs= 299576bae58Smrg while :; do 300576bae58Smrg case $as_dir in #( 301576bae58Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302576bae58Smrg *) as_qdir=$as_dir;; 303576bae58Smrg esac 304576bae58Smrg as_dirs="'$as_qdir' $as_dirs" 305576bae58Smrg as_dir=`$as_dirname -- "$as_dir" || 306576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307576bae58Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308576bae58Smrg X"$as_dir" : 'X\(//\)$' \| \ 309576bae58Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310576bae58Smrg$as_echo X"$as_dir" | 311576bae58Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312576bae58Smrg s//\1/ 313576bae58Smrg q 314576bae58Smrg } 315576bae58Smrg /^X\(\/\/\)[^/].*/{ 316576bae58Smrg s//\1/ 317576bae58Smrg q 318576bae58Smrg } 319576bae58Smrg /^X\(\/\/\)$/{ 320576bae58Smrg s//\1/ 321576bae58Smrg q 322576bae58Smrg } 323576bae58Smrg /^X\(\/\).*/{ 324576bae58Smrg s//\1/ 325576bae58Smrg q 326576bae58Smrg } 327576bae58Smrg s/.*/./; q'` 328576bae58Smrg test -d "$as_dir" && break 329576bae58Smrg done 330576bae58Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 331576bae58Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332576bae58Smrg 333576bae58Smrg 334576bae58Smrg} # as_fn_mkdir_p 335576bae58Smrg# as_fn_append VAR VALUE 336576bae58Smrg# ---------------------- 337576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over 339576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive 340576bae58Smrg# implementations. 341576bae58Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342576bae58Smrg eval 'as_fn_append () 343576bae58Smrg { 344576bae58Smrg eval $1+=\$2 345576bae58Smrg }' 346576bae58Smrgelse 347576bae58Smrg as_fn_append () 348576bae58Smrg { 349576bae58Smrg eval $1=\$$1\$2 350576bae58Smrg } 351576bae58Smrgfi # as_fn_append 352576bae58Smrg 353576bae58Smrg# as_fn_arith ARG... 354576bae58Smrg# ------------------ 355576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357576bae58Smrg# must be portable across $(()) and expr. 358576bae58Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359576bae58Smrg eval 'as_fn_arith () 360576bae58Smrg { 361576bae58Smrg as_val=$(( $* )) 362576bae58Smrg }' 363576bae58Smrgelse 364576bae58Smrg as_fn_arith () 365576bae58Smrg { 366576bae58Smrg as_val=`expr "$@" || test $? -eq 1` 367576bae58Smrg } 368576bae58Smrgfi # as_fn_arith 369576bae58Smrg 370576bae58Smrg 371576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 372576bae58Smrg# ---------------------------------------- 373576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375576bae58Smrg# script with STATUS, using 1 if that was 0. 376576bae58Smrgas_fn_error () 377576bae58Smrg{ 378576bae58Smrg as_status=$1; test $as_status -eq 0 && as_status=1 379576bae58Smrg if test "$4"; then 380576bae58Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382576bae58Smrg fi 383576bae58Smrg $as_echo "$as_me: error: $2" >&2 384576bae58Smrg as_fn_exit $as_status 385576bae58Smrg} # as_fn_error 386576bae58Smrg 387bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 388bf2eeab3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 38914c0a534Smrg as_expr=expr 39014c0a534Smrgelse 39114c0a534Smrg as_expr=false 39214c0a534Smrgfi 39314c0a534Smrg 394bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 39514c0a534Smrg as_basename=basename 39614c0a534Smrgelse 39714c0a534Smrg as_basename=false 39814c0a534Smrgfi 39914c0a534Smrg 400576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401576bae58Smrg as_dirname=dirname 402576bae58Smrgelse 403576bae58Smrg as_dirname=false 404576bae58Smrgfi 40514c0a534Smrg 406bf2eeab3Smrgas_me=`$as_basename -- "$0" || 40714c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 40814c0a534Smrg X"$0" : 'X\(//\)$' \| \ 409bf2eeab3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410bf2eeab3Smrg$as_echo X/"$0" | 411bf2eeab3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412bf2eeab3Smrg s//\1/ 413bf2eeab3Smrg q 414bf2eeab3Smrg } 415bf2eeab3Smrg /^X\/\(\/\/\)$/{ 416bf2eeab3Smrg s//\1/ 417bf2eeab3Smrg q 418bf2eeab3Smrg } 419bf2eeab3Smrg /^X\/\(\/\).*/{ 420bf2eeab3Smrg s//\1/ 421bf2eeab3Smrg q 422bf2eeab3Smrg } 423bf2eeab3Smrg s/.*/./; q'` 42414c0a534Smrg 425576bae58Smrg# Avoid depending upon Character Ranges. 426576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429576bae58Smrgas_cr_digits='0123456789' 430576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 43114c0a534Smrg 43214c0a534Smrg 433576bae58Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434576bae58Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435576bae58Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436576bae58Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437576bae58Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438576bae58Smrg sed -n ' 439576bae58Smrg p 440576bae58Smrg /[$]LINENO/= 441576bae58Smrg ' <$as_myself | 442576bae58Smrg sed ' 443576bae58Smrg s/[$]LINENO.*/&-/ 444576bae58Smrg t lineno 445576bae58Smrg b 446576bae58Smrg :lineno 447576bae58Smrg N 448576bae58Smrg :loop 449576bae58Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450576bae58Smrg t loop 451576bae58Smrg s/-\n.*// 452576bae58Smrg ' >$as_me.lineno && 453576bae58Smrg chmod +x "$as_me.lineno" || 454576bae58Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 45514c0a534Smrg 456576bae58Smrg # Don't try to exec as it changes $[0], causing all sort of problems 457576bae58Smrg # (the dirname of $[0] is not the place where we might find the 458576bae58Smrg # original and so on. Autoconf is especially sensitive to this). 459576bae58Smrg . "./$as_me.lineno" 460576bae58Smrg # Exit status is that of the last command. 461576bae58Smrg exit 462bf2eeab3Smrg} 46314c0a534Smrg 464576bae58SmrgECHO_C= ECHO_N= ECHO_T= 465576bae58Smrgcase `echo -n x` in #((((( 466576bae58Smrg-n*) 467576bae58Smrg case `echo 'xy\c'` in 468576bae58Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469576bae58Smrg xy) ECHO_C='\c';; 470576bae58Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471576bae58Smrg ECHO_T=' ';; 472576bae58Smrg esac;; 473576bae58Smrg*) 474576bae58Smrg ECHO_N='-n';; 475576bae58Smrgesac 47614c0a534Smrg 477576bae58Smrgrm -f conf$$ conf$$.exe conf$$.file 478576bae58Smrgif test -d conf$$.dir; then 479576bae58Smrg rm -f conf$$.dir/conf$$.file 480576bae58Smrgelse 481576bae58Smrg rm -f conf$$.dir 482576bae58Smrg mkdir conf$$.dir 2>/dev/null 483bf2eeab3Smrgfi 484576bae58Smrgif (echo >conf$$.file) 2>/dev/null; then 485576bae58Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486576bae58Smrg as_ln_s='ln -s' 487576bae58Smrg # ... but there are two gotchas: 488576bae58Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489576bae58Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490576bae58Smrg # In both cases, we have to default to `cp -p'. 491576bae58Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492576bae58Smrg as_ln_s='cp -p' 493576bae58Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 494576bae58Smrg as_ln_s=ln 495576bae58Smrg else 496576bae58Smrg as_ln_s='cp -p' 497576bae58Smrg fi 498bf2eeab3Smrgelse 499576bae58Smrg as_ln_s='cp -p' 500bf2eeab3Smrgfi 501576bae58Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502576bae58Smrgrmdir conf$$.dir 2>/dev/null 503bf2eeab3Smrg 504576bae58Smrgif mkdir -p . 2>/dev/null; then 505576bae58Smrg as_mkdir_p='mkdir -p "$as_dir"' 506576bae58Smrgelse 507576bae58Smrg test -d ./-p && rmdir ./-p 508576bae58Smrg as_mkdir_p=false 509bf2eeab3Smrgfi 510bf2eeab3Smrg 511576bae58Smrgif test -x / >/dev/null 2>&1; then 512576bae58Smrg as_test_x='test -x' 513bf2eeab3Smrgelse 514576bae58Smrg if ls -dL / >/dev/null 2>&1; then 515576bae58Smrg as_ls_L_option=L 516576bae58Smrg else 517576bae58Smrg as_ls_L_option= 518576bae58Smrg fi 519576bae58Smrg as_test_x=' 520576bae58Smrg eval sh -c '\'' 521576bae58Smrg if test -d "$1"; then 522576bae58Smrg test -d "$1/."; 523576bae58Smrg else 524576bae58Smrg case $1 in #( 525576bae58Smrg -*)set "./$1";; 526576bae58Smrg esac; 527576bae58Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528576bae58Smrg ???[sx]*):;;*)false;;esac;fi 529576bae58Smrg '\'' sh 530576bae58Smrg ' 531bf2eeab3Smrgfi 532576bae58Smrgas_executable_p=$as_test_x 533bf2eeab3Smrg 534576bae58Smrg# Sed expression to map a string onto a valid CPP name. 535576bae58Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536bf2eeab3Smrg 537576bae58Smrg# Sed expression to map a string onto a valid variable name. 538576bae58Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539bf2eeab3Smrg 540bf2eeab3Smrg 541576bae58Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542576bae58Smrgexec 6>&1 54314c0a534Smrg 54414c0a534Smrg# Name of the host. 545576bae58Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 54614c0a534Smrg# so uname gets run too. 54714c0a534Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 54814c0a534Smrg 54914c0a534Smrg# 55014c0a534Smrg# Initializations. 55114c0a534Smrg# 55214c0a534Smrgac_default_prefix=/usr/local 553bf2eeab3Smrgac_clean_files= 55414c0a534Smrgac_config_libobj_dir=. 555bf2eeab3SmrgLIBOBJS= 55614c0a534Smrgcross_compiling=no 55714c0a534Smrgsubdirs= 55814c0a534SmrgMFLAGS= 55914c0a534SmrgMAKEFLAGS= 56014c0a534Smrg 56114c0a534Smrg# Identity of this package. 56214c0a534SmrgPACKAGE_NAME='smproxy' 56314c0a534SmrgPACKAGE_TARNAME='smproxy' 5641a054510SmrgPACKAGE_VERSION='1.0.5' 5651a054510SmrgPACKAGE_STRING='smproxy 1.0.5' 56614c0a534SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567576bae58SmrgPACKAGE_URL='' 56814c0a534Smrg 569bf2eeab3Smrg# Factoring default headers for most tests. 570bf2eeab3Smrgac_includes_default="\ 571bf2eeab3Smrg#include <stdio.h> 572bf2eeab3Smrg#ifdef HAVE_SYS_TYPES_H 573bf2eeab3Smrg# include <sys/types.h> 574bf2eeab3Smrg#endif 575bf2eeab3Smrg#ifdef HAVE_SYS_STAT_H 576bf2eeab3Smrg# include <sys/stat.h> 577bf2eeab3Smrg#endif 578bf2eeab3Smrg#ifdef STDC_HEADERS 579bf2eeab3Smrg# include <stdlib.h> 580bf2eeab3Smrg# include <stddef.h> 581bf2eeab3Smrg#else 582bf2eeab3Smrg# ifdef HAVE_STDLIB_H 583bf2eeab3Smrg# include <stdlib.h> 584bf2eeab3Smrg# endif 585bf2eeab3Smrg#endif 586bf2eeab3Smrg#ifdef HAVE_STRING_H 587bf2eeab3Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 588bf2eeab3Smrg# include <memory.h> 589bf2eeab3Smrg# endif 590bf2eeab3Smrg# include <string.h> 591bf2eeab3Smrg#endif 592bf2eeab3Smrg#ifdef HAVE_STRINGS_H 593bf2eeab3Smrg# include <strings.h> 594bf2eeab3Smrg#endif 595bf2eeab3Smrg#ifdef HAVE_INTTYPES_H 596bf2eeab3Smrg# include <inttypes.h> 597bf2eeab3Smrg#endif 598bf2eeab3Smrg#ifdef HAVE_STDINT_H 599bf2eeab3Smrg# include <stdint.h> 600bf2eeab3Smrg#endif 601bf2eeab3Smrg#ifdef HAVE_UNISTD_H 602bf2eeab3Smrg# include <unistd.h> 603bf2eeab3Smrg#endif" 604bf2eeab3Smrg 605bf2eeab3Smrgac_subst_vars='am__EXEEXT_FALSE 606bf2eeab3Smrgam__EXEEXT_TRUE 607bf2eeab3SmrgLTLIBOBJS 608bf2eeab3SmrgLIBOBJS 609bf2eeab3SmrgSMPROXY_LIBS 610bf2eeab3SmrgSMPROXY_CFLAGS 611576bae58SmrgAM_BACKSLASH 612576bae58SmrgAM_DEFAULT_VERBOSITY 613576bae58SmrgMAN_SUBSTS 614576bae58SmrgXORG_MAN_PAGE 615bf2eeab3SmrgADMIN_MAN_DIR 616bf2eeab3SmrgDRIVER_MAN_DIR 617bf2eeab3SmrgMISC_MAN_DIR 618bf2eeab3SmrgFILE_MAN_DIR 619bf2eeab3SmrgLIB_MAN_DIR 620bf2eeab3SmrgAPP_MAN_DIR 621bf2eeab3SmrgADMIN_MAN_SUFFIX 622bf2eeab3SmrgDRIVER_MAN_SUFFIX 623bf2eeab3SmrgMISC_MAN_SUFFIX 624bf2eeab3SmrgFILE_MAN_SUFFIX 625bf2eeab3SmrgLIB_MAN_SUFFIX 626bf2eeab3SmrgAPP_MAN_SUFFIX 627576bae58SmrgSED 628bf2eeab3Smrghost_os 629bf2eeab3Smrghost_vendor 630bf2eeab3Smrghost_cpu 631bf2eeab3Smrghost 632bf2eeab3Smrgbuild_os 633bf2eeab3Smrgbuild_vendor 634bf2eeab3Smrgbuild_cpu 635bf2eeab3Smrgbuild 636576bae58SmrgINSTALL_CMD 637576bae58SmrgPKG_CONFIG 638bf2eeab3SmrgCHANGELOG_CMD 6391a054510SmrgSTRICT_CFLAGS 640bf2eeab3SmrgCWARNFLAGS 641bf2eeab3SmrgEGREP 642bf2eeab3SmrgGREP 643bf2eeab3SmrgCPP 644bf2eeab3Smrgam__fastdepCC_FALSE 645bf2eeab3Smrgam__fastdepCC_TRUE 646bf2eeab3SmrgCCDEPMODE 647bf2eeab3SmrgAMDEPBACKSLASH 648bf2eeab3SmrgAMDEP_FALSE 649bf2eeab3SmrgAMDEP_TRUE 650bf2eeab3Smrgam__quote 651bf2eeab3Smrgam__include 652bf2eeab3SmrgDEPDIR 653bf2eeab3SmrgOBJEXT 654bf2eeab3SmrgEXEEXT 655bf2eeab3Smrgac_ct_CC 656bf2eeab3SmrgCPPFLAGS 657bf2eeab3SmrgLDFLAGS 658bf2eeab3SmrgCFLAGS 659bf2eeab3SmrgCC 660bf2eeab3SmrgMAINT 661bf2eeab3SmrgMAINTAINER_MODE_FALSE 662bf2eeab3SmrgMAINTAINER_MODE_TRUE 663bf2eeab3Smrgam__untar 664bf2eeab3Smrgam__tar 665bf2eeab3SmrgAMTAR 666bf2eeab3Smrgam__leading_dot 667bf2eeab3SmrgSET_MAKE 668bf2eeab3SmrgAWK 669bf2eeab3Smrgmkdir_p 670bf2eeab3SmrgMKDIR_P 671bf2eeab3SmrgINSTALL_STRIP_PROGRAM 672bf2eeab3SmrgSTRIP 673bf2eeab3Smrginstall_sh 674bf2eeab3SmrgMAKEINFO 675bf2eeab3SmrgAUTOHEADER 676bf2eeab3SmrgAUTOMAKE 677bf2eeab3SmrgAUTOCONF 678bf2eeab3SmrgACLOCAL 679bf2eeab3SmrgVERSION 680bf2eeab3SmrgPACKAGE 681bf2eeab3SmrgCYGPATH_W 682bf2eeab3Smrgam__isrc 683bf2eeab3SmrgINSTALL_DATA 684bf2eeab3SmrgINSTALL_SCRIPT 685bf2eeab3SmrgINSTALL_PROGRAM 686bf2eeab3Smrgtarget_alias 687bf2eeab3Smrghost_alias 688bf2eeab3Smrgbuild_alias 689bf2eeab3SmrgLIBS 690bf2eeab3SmrgECHO_T 691bf2eeab3SmrgECHO_N 692bf2eeab3SmrgECHO_C 693bf2eeab3SmrgDEFS 694bf2eeab3Smrgmandir 695bf2eeab3Smrglocaledir 696bf2eeab3Smrglibdir 697bf2eeab3Smrgpsdir 698bf2eeab3Smrgpdfdir 699bf2eeab3Smrgdvidir 700bf2eeab3Smrghtmldir 701bf2eeab3Smrginfodir 702bf2eeab3Smrgdocdir 703bf2eeab3Smrgoldincludedir 704bf2eeab3Smrgincludedir 705bf2eeab3Smrglocalstatedir 706bf2eeab3Smrgsharedstatedir 707bf2eeab3Smrgsysconfdir 708bf2eeab3Smrgdatadir 709bf2eeab3Smrgdatarootdir 710bf2eeab3Smrglibexecdir 711bf2eeab3Smrgsbindir 712bf2eeab3Smrgbindir 713bf2eeab3Smrgprogram_transform_name 714bf2eeab3Smrgprefix 715bf2eeab3Smrgexec_prefix 716576bae58SmrgPACKAGE_URL 717bf2eeab3SmrgPACKAGE_BUGREPORT 718bf2eeab3SmrgPACKAGE_STRING 719bf2eeab3SmrgPACKAGE_VERSION 720bf2eeab3SmrgPACKAGE_TARNAME 721bf2eeab3SmrgPACKAGE_NAME 722bf2eeab3SmrgPATH_SEPARATOR 723bf2eeab3SmrgSHELL' 72414c0a534Smrgac_subst_files='' 725bf2eeab3Smrgac_user_opts=' 726bf2eeab3Smrgenable_option_checking 727bf2eeab3Smrgenable_maintainer_mode 728bf2eeab3Smrgenable_dependency_tracking 729bf2eeab3Smrgenable_strict_compilation 730576bae58Smrgenable_silent_rules 731bf2eeab3Smrg' 732bf2eeab3Smrg ac_precious_vars='build_alias 733bf2eeab3Smrghost_alias 734bf2eeab3Smrgtarget_alias 735bf2eeab3SmrgCC 736bf2eeab3SmrgCFLAGS 737bf2eeab3SmrgLDFLAGS 738bf2eeab3SmrgLIBS 739bf2eeab3SmrgCPPFLAGS 740bf2eeab3SmrgCPP 741bf2eeab3SmrgPKG_CONFIG 742bf2eeab3SmrgSMPROXY_CFLAGS 743bf2eeab3SmrgSMPROXY_LIBS' 744bf2eeab3Smrg 74514c0a534Smrg 74614c0a534Smrg# Initialize some variables set by options. 74714c0a534Smrgac_init_help= 74814c0a534Smrgac_init_version=false 749bf2eeab3Smrgac_unrecognized_opts= 750bf2eeab3Smrgac_unrecognized_sep= 75114c0a534Smrg# The variables have the same names as the options, with 75214c0a534Smrg# dashes changed to underlines. 75314c0a534Smrgcache_file=/dev/null 75414c0a534Smrgexec_prefix=NONE 75514c0a534Smrgno_create= 75614c0a534Smrgno_recursion= 75714c0a534Smrgprefix=NONE 75814c0a534Smrgprogram_prefix=NONE 75914c0a534Smrgprogram_suffix=NONE 76014c0a534Smrgprogram_transform_name=s,x,x, 76114c0a534Smrgsilent= 76214c0a534Smrgsite= 76314c0a534Smrgsrcdir= 76414c0a534Smrgverbose= 76514c0a534Smrgx_includes=NONE 76614c0a534Smrgx_libraries=NONE 76714c0a534Smrg 76814c0a534Smrg# Installation directory options. 76914c0a534Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 77014c0a534Smrg# and all the variables that are supposed to be based on exec_prefix 77114c0a534Smrg# by default will actually change. 77214c0a534Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 773bf2eeab3Smrg# (The list follows the same order as the GNU Coding Standards.) 77414c0a534Smrgbindir='${exec_prefix}/bin' 77514c0a534Smrgsbindir='${exec_prefix}/sbin' 77614c0a534Smrglibexecdir='${exec_prefix}/libexec' 777bf2eeab3Smrgdatarootdir='${prefix}/share' 778bf2eeab3Smrgdatadir='${datarootdir}' 77914c0a534Smrgsysconfdir='${prefix}/etc' 78014c0a534Smrgsharedstatedir='${prefix}/com' 78114c0a534Smrglocalstatedir='${prefix}/var' 78214c0a534Smrgincludedir='${prefix}/include' 78314c0a534Smrgoldincludedir='/usr/include' 784bf2eeab3Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 785bf2eeab3Smrginfodir='${datarootdir}/info' 786bf2eeab3Smrghtmldir='${docdir}' 787bf2eeab3Smrgdvidir='${docdir}' 788bf2eeab3Smrgpdfdir='${docdir}' 789bf2eeab3Smrgpsdir='${docdir}' 790bf2eeab3Smrglibdir='${exec_prefix}/lib' 791bf2eeab3Smrglocaledir='${datarootdir}/locale' 792bf2eeab3Smrgmandir='${datarootdir}/man' 79314c0a534Smrg 79414c0a534Smrgac_prev= 795bf2eeab3Smrgac_dashdash= 79614c0a534Smrgfor ac_option 79714c0a534Smrgdo 79814c0a534Smrg # If the previous option needs an argument, assign it. 79914c0a534Smrg if test -n "$ac_prev"; then 800bf2eeab3Smrg eval $ac_prev=\$ac_option 80114c0a534Smrg ac_prev= 80214c0a534Smrg continue 80314c0a534Smrg fi 80414c0a534Smrg 805bf2eeab3Smrg case $ac_option in 806576bae58Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 807576bae58Smrg *=) ac_optarg= ;; 808576bae58Smrg *) ac_optarg=yes ;; 809bf2eeab3Smrg esac 81014c0a534Smrg 81114c0a534Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 81214c0a534Smrg 813bf2eeab3Smrg case $ac_dashdash$ac_option in 814bf2eeab3Smrg --) 815bf2eeab3Smrg ac_dashdash=yes ;; 81614c0a534Smrg 81714c0a534Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 81814c0a534Smrg ac_prev=bindir ;; 81914c0a534Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 82014c0a534Smrg bindir=$ac_optarg ;; 82114c0a534Smrg 82214c0a534Smrg -build | --build | --buil | --bui | --bu) 82314c0a534Smrg ac_prev=build_alias ;; 82414c0a534Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 82514c0a534Smrg build_alias=$ac_optarg ;; 82614c0a534Smrg 82714c0a534Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 82814c0a534Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 82914c0a534Smrg ac_prev=cache_file ;; 83014c0a534Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 83114c0a534Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 83214c0a534Smrg cache_file=$ac_optarg ;; 83314c0a534Smrg 83414c0a534Smrg --config-cache | -C) 83514c0a534Smrg cache_file=config.cache ;; 83614c0a534Smrg 837bf2eeab3Smrg -datadir | --datadir | --datadi | --datad) 83814c0a534Smrg ac_prev=datadir ;; 839bf2eeab3Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 84014c0a534Smrg datadir=$ac_optarg ;; 84114c0a534Smrg 842bf2eeab3Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 843bf2eeab3Smrg | --dataroo | --dataro | --datar) 844bf2eeab3Smrg ac_prev=datarootdir ;; 845bf2eeab3Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 846bf2eeab3Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 847bf2eeab3Smrg datarootdir=$ac_optarg ;; 848bf2eeab3Smrg 84914c0a534Smrg -disable-* | --disable-*) 850bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 85114c0a534Smrg # Reject names that are not valid shell variable names. 852bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 853576bae58Smrg as_fn_error $? "invalid feature name: $ac_useropt" 854bf2eeab3Smrg ac_useropt_orig=$ac_useropt 855bf2eeab3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 856bf2eeab3Smrg case $ac_user_opts in 857bf2eeab3Smrg *" 858bf2eeab3Smrg"enable_$ac_useropt" 859bf2eeab3Smrg"*) ;; 860bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 861bf2eeab3Smrg ac_unrecognized_sep=', ';; 862bf2eeab3Smrg esac 863bf2eeab3Smrg eval enable_$ac_useropt=no ;; 864bf2eeab3Smrg 865bf2eeab3Smrg -docdir | --docdir | --docdi | --doc | --do) 866bf2eeab3Smrg ac_prev=docdir ;; 867bf2eeab3Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 868bf2eeab3Smrg docdir=$ac_optarg ;; 869bf2eeab3Smrg 870bf2eeab3Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 871bf2eeab3Smrg ac_prev=dvidir ;; 872bf2eeab3Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 873bf2eeab3Smrg dvidir=$ac_optarg ;; 87414c0a534Smrg 87514c0a534Smrg -enable-* | --enable-*) 876bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 87714c0a534Smrg # Reject names that are not valid shell variable names. 878bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879576bae58Smrg as_fn_error $? "invalid feature name: $ac_useropt" 880bf2eeab3Smrg ac_useropt_orig=$ac_useropt 881bf2eeab3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882bf2eeab3Smrg case $ac_user_opts in 883bf2eeab3Smrg *" 884bf2eeab3Smrg"enable_$ac_useropt" 885bf2eeab3Smrg"*) ;; 886bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 887bf2eeab3Smrg ac_unrecognized_sep=', ';; 88814c0a534Smrg esac 889bf2eeab3Smrg eval enable_$ac_useropt=\$ac_optarg ;; 89014c0a534Smrg 89114c0a534Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 89214c0a534Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 89314c0a534Smrg | --exec | --exe | --ex) 89414c0a534Smrg ac_prev=exec_prefix ;; 89514c0a534Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 89614c0a534Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 89714c0a534Smrg | --exec=* | --exe=* | --ex=*) 89814c0a534Smrg exec_prefix=$ac_optarg ;; 89914c0a534Smrg 90014c0a534Smrg -gas | --gas | --ga | --g) 90114c0a534Smrg # Obsolete; use --with-gas. 90214c0a534Smrg with_gas=yes ;; 90314c0a534Smrg 90414c0a534Smrg -help | --help | --hel | --he | -h) 90514c0a534Smrg ac_init_help=long ;; 90614c0a534Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 90714c0a534Smrg ac_init_help=recursive ;; 90814c0a534Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 90914c0a534Smrg ac_init_help=short ;; 91014c0a534Smrg 91114c0a534Smrg -host | --host | --hos | --ho) 91214c0a534Smrg ac_prev=host_alias ;; 91314c0a534Smrg -host=* | --host=* | --hos=* | --ho=*) 91414c0a534Smrg host_alias=$ac_optarg ;; 91514c0a534Smrg 916bf2eeab3Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 917bf2eeab3Smrg ac_prev=htmldir ;; 918bf2eeab3Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 919bf2eeab3Smrg | --ht=*) 920bf2eeab3Smrg htmldir=$ac_optarg ;; 921bf2eeab3Smrg 92214c0a534Smrg -includedir | --includedir | --includedi | --included | --include \ 92314c0a534Smrg | --includ | --inclu | --incl | --inc) 92414c0a534Smrg ac_prev=includedir ;; 92514c0a534Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 92614c0a534Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 92714c0a534Smrg includedir=$ac_optarg ;; 92814c0a534Smrg 92914c0a534Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 93014c0a534Smrg ac_prev=infodir ;; 93114c0a534Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 93214c0a534Smrg infodir=$ac_optarg ;; 93314c0a534Smrg 93414c0a534Smrg -libdir | --libdir | --libdi | --libd) 93514c0a534Smrg ac_prev=libdir ;; 93614c0a534Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 93714c0a534Smrg libdir=$ac_optarg ;; 93814c0a534Smrg 93914c0a534Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 94014c0a534Smrg | --libexe | --libex | --libe) 94114c0a534Smrg ac_prev=libexecdir ;; 94214c0a534Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 94314c0a534Smrg | --libexe=* | --libex=* | --libe=*) 94414c0a534Smrg libexecdir=$ac_optarg ;; 94514c0a534Smrg 946bf2eeab3Smrg -localedir | --localedir | --localedi | --localed | --locale) 947bf2eeab3Smrg ac_prev=localedir ;; 948bf2eeab3Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 949bf2eeab3Smrg localedir=$ac_optarg ;; 950bf2eeab3Smrg 95114c0a534Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 952bf2eeab3Smrg | --localstate | --localstat | --localsta | --localst | --locals) 95314c0a534Smrg ac_prev=localstatedir ;; 95414c0a534Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 955bf2eeab3Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 95614c0a534Smrg localstatedir=$ac_optarg ;; 95714c0a534Smrg 95814c0a534Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 95914c0a534Smrg ac_prev=mandir ;; 96014c0a534Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 96114c0a534Smrg mandir=$ac_optarg ;; 96214c0a534Smrg 96314c0a534Smrg -nfp | --nfp | --nf) 96414c0a534Smrg # Obsolete; use --without-fp. 96514c0a534Smrg with_fp=no ;; 96614c0a534Smrg 96714c0a534Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 96814c0a534Smrg | --no-cr | --no-c | -n) 96914c0a534Smrg no_create=yes ;; 97014c0a534Smrg 97114c0a534Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 97214c0a534Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 97314c0a534Smrg no_recursion=yes ;; 97414c0a534Smrg 97514c0a534Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 97614c0a534Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 97714c0a534Smrg | --oldin | --oldi | --old | --ol | --o) 97814c0a534Smrg ac_prev=oldincludedir ;; 97914c0a534Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 98014c0a534Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 98114c0a534Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 98214c0a534Smrg oldincludedir=$ac_optarg ;; 98314c0a534Smrg 98414c0a534Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 98514c0a534Smrg ac_prev=prefix ;; 98614c0a534Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 98714c0a534Smrg prefix=$ac_optarg ;; 98814c0a534Smrg 98914c0a534Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 99014c0a534Smrg | --program-pre | --program-pr | --program-p) 99114c0a534Smrg ac_prev=program_prefix ;; 99214c0a534Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 99314c0a534Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 99414c0a534Smrg program_prefix=$ac_optarg ;; 99514c0a534Smrg 99614c0a534Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 99714c0a534Smrg | --program-suf | --program-su | --program-s) 99814c0a534Smrg ac_prev=program_suffix ;; 99914c0a534Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 100014c0a534Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 100114c0a534Smrg program_suffix=$ac_optarg ;; 100214c0a534Smrg 100314c0a534Smrg -program-transform-name | --program-transform-name \ 100414c0a534Smrg | --program-transform-nam | --program-transform-na \ 100514c0a534Smrg | --program-transform-n | --program-transform- \ 100614c0a534Smrg | --program-transform | --program-transfor \ 100714c0a534Smrg | --program-transfo | --program-transf \ 100814c0a534Smrg | --program-trans | --program-tran \ 100914c0a534Smrg | --progr-tra | --program-tr | --program-t) 101014c0a534Smrg ac_prev=program_transform_name ;; 101114c0a534Smrg -program-transform-name=* | --program-transform-name=* \ 101214c0a534Smrg | --program-transform-nam=* | --program-transform-na=* \ 101314c0a534Smrg | --program-transform-n=* | --program-transform-=* \ 101414c0a534Smrg | --program-transform=* | --program-transfor=* \ 101514c0a534Smrg | --program-transfo=* | --program-transf=* \ 101614c0a534Smrg | --program-trans=* | --program-tran=* \ 101714c0a534Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 101814c0a534Smrg program_transform_name=$ac_optarg ;; 101914c0a534Smrg 1020bf2eeab3Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1021bf2eeab3Smrg ac_prev=pdfdir ;; 1022bf2eeab3Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1023bf2eeab3Smrg pdfdir=$ac_optarg ;; 1024bf2eeab3Smrg 1025bf2eeab3Smrg -psdir | --psdir | --psdi | --psd | --ps) 1026bf2eeab3Smrg ac_prev=psdir ;; 1027bf2eeab3Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1028bf2eeab3Smrg psdir=$ac_optarg ;; 1029bf2eeab3Smrg 103014c0a534Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 103114c0a534Smrg | -silent | --silent | --silen | --sile | --sil) 103214c0a534Smrg silent=yes ;; 103314c0a534Smrg 103414c0a534Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 103514c0a534Smrg ac_prev=sbindir ;; 103614c0a534Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 103714c0a534Smrg | --sbi=* | --sb=*) 103814c0a534Smrg sbindir=$ac_optarg ;; 103914c0a534Smrg 104014c0a534Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 104114c0a534Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 104214c0a534Smrg | --sharedst | --shareds | --shared | --share | --shar \ 104314c0a534Smrg | --sha | --sh) 104414c0a534Smrg ac_prev=sharedstatedir ;; 104514c0a534Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 104614c0a534Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 104714c0a534Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 104814c0a534Smrg | --sha=* | --sh=*) 104914c0a534Smrg sharedstatedir=$ac_optarg ;; 105014c0a534Smrg 105114c0a534Smrg -site | --site | --sit) 105214c0a534Smrg ac_prev=site ;; 105314c0a534Smrg -site=* | --site=* | --sit=*) 105414c0a534Smrg site=$ac_optarg ;; 105514c0a534Smrg 105614c0a534Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 105714c0a534Smrg ac_prev=srcdir ;; 105814c0a534Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 105914c0a534Smrg srcdir=$ac_optarg ;; 106014c0a534Smrg 106114c0a534Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 106214c0a534Smrg | --syscon | --sysco | --sysc | --sys | --sy) 106314c0a534Smrg ac_prev=sysconfdir ;; 106414c0a534Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 106514c0a534Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 106614c0a534Smrg sysconfdir=$ac_optarg ;; 106714c0a534Smrg 106814c0a534Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 106914c0a534Smrg ac_prev=target_alias ;; 107014c0a534Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 107114c0a534Smrg target_alias=$ac_optarg ;; 107214c0a534Smrg 107314c0a534Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 107414c0a534Smrg verbose=yes ;; 107514c0a534Smrg 107614c0a534Smrg -version | --version | --versio | --versi | --vers | -V) 107714c0a534Smrg ac_init_version=: ;; 107814c0a534Smrg 107914c0a534Smrg -with-* | --with-*) 1080bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 108114c0a534Smrg # Reject names that are not valid shell variable names. 1082bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083576bae58Smrg as_fn_error $? "invalid package name: $ac_useropt" 1084bf2eeab3Smrg ac_useropt_orig=$ac_useropt 1085bf2eeab3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086bf2eeab3Smrg case $ac_user_opts in 1087bf2eeab3Smrg *" 1088bf2eeab3Smrg"with_$ac_useropt" 1089bf2eeab3Smrg"*) ;; 1090bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1091bf2eeab3Smrg ac_unrecognized_sep=', ';; 109214c0a534Smrg esac 1093bf2eeab3Smrg eval with_$ac_useropt=\$ac_optarg ;; 109414c0a534Smrg 109514c0a534Smrg -without-* | --without-*) 1096bf2eeab3Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 109714c0a534Smrg # Reject names that are not valid shell variable names. 1098bf2eeab3Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099576bae58Smrg as_fn_error $? "invalid package name: $ac_useropt" 1100bf2eeab3Smrg ac_useropt_orig=$ac_useropt 1101bf2eeab3Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102bf2eeab3Smrg case $ac_user_opts in 1103bf2eeab3Smrg *" 1104bf2eeab3Smrg"with_$ac_useropt" 1105bf2eeab3Smrg"*) ;; 1106bf2eeab3Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1107bf2eeab3Smrg ac_unrecognized_sep=', ';; 1108bf2eeab3Smrg esac 1109bf2eeab3Smrg eval with_$ac_useropt=no ;; 111014c0a534Smrg 111114c0a534Smrg --x) 111214c0a534Smrg # Obsolete; use --with-x. 111314c0a534Smrg with_x=yes ;; 111414c0a534Smrg 111514c0a534Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 111614c0a534Smrg | --x-incl | --x-inc | --x-in | --x-i) 111714c0a534Smrg ac_prev=x_includes ;; 111814c0a534Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 111914c0a534Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 112014c0a534Smrg x_includes=$ac_optarg ;; 112114c0a534Smrg 112214c0a534Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 112314c0a534Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 112414c0a534Smrg ac_prev=x_libraries ;; 112514c0a534Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 112614c0a534Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 112714c0a534Smrg x_libraries=$ac_optarg ;; 112814c0a534Smrg 1129576bae58Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1130576bae58SmrgTry \`$0 --help' for more information" 113114c0a534Smrg ;; 113214c0a534Smrg 113314c0a534Smrg *=*) 113414c0a534Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 113514c0a534Smrg # Reject names that are not valid shell variable names. 1136576bae58Smrg case $ac_envvar in #( 1137576bae58Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1138576bae58Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1139576bae58Smrg esac 1140bf2eeab3Smrg eval $ac_envvar=\$ac_optarg 114114c0a534Smrg export $ac_envvar ;; 114214c0a534Smrg 114314c0a534Smrg *) 114414c0a534Smrg # FIXME: should be removed in autoconf 3.0. 1145bf2eeab3Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 114614c0a534Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1147bf2eeab3Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1148576bae58Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 114914c0a534Smrg ;; 115014c0a534Smrg 115114c0a534Smrg esac 115214c0a534Smrgdone 115314c0a534Smrg 115414c0a534Smrgif test -n "$ac_prev"; then 115514c0a534Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1156576bae58Smrg as_fn_error $? "missing argument to $ac_option" 115714c0a534Smrgfi 115814c0a534Smrg 1159bf2eeab3Smrgif test -n "$ac_unrecognized_opts"; then 1160bf2eeab3Smrg case $enable_option_checking in 1161bf2eeab3Smrg no) ;; 1162576bae58Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1163bf2eeab3Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 116414c0a534Smrg esac 1165bf2eeab3Smrgfi 116614c0a534Smrg 1167bf2eeab3Smrg# Check all directory arguments for consistency. 1168bf2eeab3Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1169bf2eeab3Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1170bf2eeab3Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1171bf2eeab3Smrg libdir localedir mandir 117214c0a534Smrgdo 1173bf2eeab3Smrg eval ac_val=\$$ac_var 1174bf2eeab3Smrg # Remove trailing slashes. 117514c0a534Smrg case $ac_val in 1176bf2eeab3Smrg */ ) 1177bf2eeab3Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1178bf2eeab3Smrg eval $ac_var=\$ac_val;; 1179bf2eeab3Smrg esac 1180bf2eeab3Smrg # Be sure to have absolute directory names. 1181bf2eeab3Smrg case $ac_val in 1182bf2eeab3Smrg [\\/$]* | ?:[\\/]* ) continue;; 1183bf2eeab3Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 118414c0a534Smrg esac 1185576bae58Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 118614c0a534Smrgdone 118714c0a534Smrg 118814c0a534Smrg# There might be people who depend on the old broken behavior: `$host' 118914c0a534Smrg# used to hold the argument of --host etc. 119014c0a534Smrg# FIXME: To remove some day. 119114c0a534Smrgbuild=$build_alias 119214c0a534Smrghost=$host_alias 119314c0a534Smrgtarget=$target_alias 119414c0a534Smrg 119514c0a534Smrg# FIXME: To remove some day. 119614c0a534Smrgif test "x$host_alias" != x; then 119714c0a534Smrg if test "x$build_alias" = x; then 119814c0a534Smrg cross_compiling=maybe 1199576bae58Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1200576bae58Smrg If a cross compiler is detected then cross compile mode will be used" >&2 120114c0a534Smrg elif test "x$build_alias" != "x$host_alias"; then 120214c0a534Smrg cross_compiling=yes 120314c0a534Smrg fi 120414c0a534Smrgfi 120514c0a534Smrg 120614c0a534Smrgac_tool_prefix= 120714c0a534Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 120814c0a534Smrg 120914c0a534Smrgtest "$silent" = yes && exec 6>/dev/null 121014c0a534Smrg 121114c0a534Smrg 1212bf2eeab3Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1213bf2eeab3Smrgac_ls_di=`ls -di .` && 1214bf2eeab3Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1215576bae58Smrg as_fn_error $? "working directory cannot be determined" 1216bf2eeab3Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1217576bae58Smrg as_fn_error $? "pwd does not report name of working directory" 1218bf2eeab3Smrg 1219bf2eeab3Smrg 1220bf2eeab3Smrg# Find the source files, if location was not specified. 1221bf2eeab3Smrgif test -z "$srcdir"; then 122214c0a534Smrg ac_srcdir_defaulted=yes 1223bf2eeab3Smrg # Try the directory containing this script, then the parent directory. 1224bf2eeab3Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1225bf2eeab3Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1226bf2eeab3Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1227bf2eeab3Smrg X"$as_myself" : 'X\(//\)$' \| \ 1228bf2eeab3Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1229bf2eeab3Smrg$as_echo X"$as_myself" | 1230bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1231bf2eeab3Smrg s//\1/ 1232bf2eeab3Smrg q 1233bf2eeab3Smrg } 1234bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 1235bf2eeab3Smrg s//\1/ 1236bf2eeab3Smrg q 1237bf2eeab3Smrg } 1238bf2eeab3Smrg /^X\(\/\/\)$/{ 1239bf2eeab3Smrg s//\1/ 1240bf2eeab3Smrg q 1241bf2eeab3Smrg } 1242bf2eeab3Smrg /^X\(\/\).*/{ 1243bf2eeab3Smrg s//\1/ 1244bf2eeab3Smrg q 1245bf2eeab3Smrg } 1246bf2eeab3Smrg s/.*/./; q'` 124714c0a534Smrg srcdir=$ac_confdir 1248bf2eeab3Smrg if test ! -r "$srcdir/$ac_unique_file"; then 124914c0a534Smrg srcdir=.. 125014c0a534Smrg fi 125114c0a534Smrgelse 125214c0a534Smrg ac_srcdir_defaulted=no 125314c0a534Smrgfi 1254bf2eeab3Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1255bf2eeab3Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1256576bae58Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 125714c0a534Smrgfi 1258bf2eeab3Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1259bf2eeab3Smrgac_abs_confdir=`( 1260576bae58Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1261bf2eeab3Smrg pwd)` 1262bf2eeab3Smrg# When building in place, set srcdir=. 1263bf2eeab3Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1264bf2eeab3Smrg srcdir=. 1265bf2eeab3Smrgfi 1266bf2eeab3Smrg# Remove unnecessary trailing slashes from srcdir. 1267bf2eeab3Smrg# Double slashes in file names in object file debugging info 1268bf2eeab3Smrg# mess up M-x gdb in Emacs. 1269bf2eeab3Smrgcase $srcdir in 1270bf2eeab3Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1271bf2eeab3Smrgesac 1272bf2eeab3Smrgfor ac_var in $ac_precious_vars; do 1273bf2eeab3Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1274bf2eeab3Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1275bf2eeab3Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1276bf2eeab3Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1277bf2eeab3Smrgdone 127814c0a534Smrg 127914c0a534Smrg# 128014c0a534Smrg# Report the --help message. 128114c0a534Smrg# 128214c0a534Smrgif test "$ac_init_help" = "long"; then 128314c0a534Smrg # Omit some internal or obsolete options to make the list less imposing. 128414c0a534Smrg # This message is too long to be a string in the A/UX 3.1 sh. 128514c0a534Smrg cat <<_ACEOF 12861a054510Smrg\`configure' configures smproxy 1.0.5 to adapt to many kinds of systems. 128714c0a534Smrg 128814c0a534SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 128914c0a534Smrg 129014c0a534SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 129114c0a534SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 129214c0a534Smrg 129314c0a534SmrgDefaults for the options are specified in brackets. 129414c0a534Smrg 129514c0a534SmrgConfiguration: 129614c0a534Smrg -h, --help display this help and exit 129714c0a534Smrg --help=short display options specific to this package 129814c0a534Smrg --help=recursive display the short help of all the included packages 129914c0a534Smrg -V, --version display version information and exit 1300576bae58Smrg -q, --quiet, --silent do not print \`checking ...' messages 130114c0a534Smrg --cache-file=FILE cache test results in FILE [disabled] 130214c0a534Smrg -C, --config-cache alias for \`--cache-file=config.cache' 130314c0a534Smrg -n, --no-create do not create output files 130414c0a534Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 130514c0a534Smrg 130614c0a534SmrgInstallation directories: 130714c0a534Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1308bf2eeab3Smrg [$ac_default_prefix] 130914c0a534Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1310bf2eeab3Smrg [PREFIX] 131114c0a534Smrg 131214c0a534SmrgBy default, \`make install' will install all the files in 131314c0a534Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 131414c0a534Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 131514c0a534Smrgfor instance \`--prefix=\$HOME'. 131614c0a534Smrg 131714c0a534SmrgFor better control, use the options below. 131814c0a534Smrg 131914c0a534SmrgFine tuning of the installation directories: 1320bf2eeab3Smrg --bindir=DIR user executables [EPREFIX/bin] 1321bf2eeab3Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1322bf2eeab3Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1323bf2eeab3Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1324bf2eeab3Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1325bf2eeab3Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1326bf2eeab3Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1327bf2eeab3Smrg --includedir=DIR C header files [PREFIX/include] 1328bf2eeab3Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1329bf2eeab3Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1330bf2eeab3Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1331bf2eeab3Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1332bf2eeab3Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1333bf2eeab3Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1334bf2eeab3Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/smproxy] 1335bf2eeab3Smrg --htmldir=DIR html documentation [DOCDIR] 1336bf2eeab3Smrg --dvidir=DIR dvi documentation [DOCDIR] 1337bf2eeab3Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1338bf2eeab3Smrg --psdir=DIR ps documentation [DOCDIR] 133914c0a534Smrg_ACEOF 134014c0a534Smrg 134114c0a534Smrg cat <<\_ACEOF 134214c0a534Smrg 134314c0a534SmrgProgram names: 134414c0a534Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 134514c0a534Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 134614c0a534Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 134714c0a534Smrg 134814c0a534SmrgSystem types: 134914c0a534Smrg --build=BUILD configure for building on BUILD [guessed] 135014c0a534Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 135114c0a534Smrg_ACEOF 135214c0a534Smrgfi 135314c0a534Smrg 135414c0a534Smrgif test -n "$ac_init_help"; then 135514c0a534Smrg case $ac_init_help in 13561a054510Smrg short | recursive ) echo "Configuration of smproxy 1.0.5:";; 135714c0a534Smrg esac 135814c0a534Smrg cat <<\_ACEOF 135914c0a534Smrg 136014c0a534SmrgOptional Features: 1361bf2eeab3Smrg --disable-option-checking ignore unrecognized --enable/--with options 136214c0a534Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 136314c0a534Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 136414c0a534Smrg --enable-maintainer-mode enable make rules and dependencies not useful 136514c0a534Smrg (and sometimes confusing) to the casual installer 136614c0a534Smrg --disable-dependency-tracking speeds up one-time build 136714c0a534Smrg --enable-dependency-tracking do not reject slow dependency extractors 1368bf2eeab3Smrg --enable-strict-compilation 1369bf2eeab3Smrg Enable all warnings from compiler and make them 1370bf2eeab3Smrg errors (default: disabled) 1371576bae58Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1372576bae58Smrg --disable-silent-rules verbose build output (undo: `make V=0') 137314c0a534Smrg 137414c0a534SmrgSome influential environment variables: 137514c0a534Smrg CC C compiler command 137614c0a534Smrg CFLAGS C compiler flags 137714c0a534Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 137814c0a534Smrg nonstandard directory <lib dir> 1379bf2eeab3Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1380576bae58Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1381bf2eeab3Smrg you have headers in a nonstandard directory <include dir> 1382bf2eeab3Smrg CPP C preprocessor 138314c0a534Smrg PKG_CONFIG path to pkg-config utility 138414c0a534Smrg SMPROXY_CFLAGS 138514c0a534Smrg C compiler flags for SMPROXY, overriding pkg-config 138614c0a534Smrg SMPROXY_LIBS 138714c0a534Smrg linker flags for SMPROXY, overriding pkg-config 138814c0a534Smrg 138914c0a534SmrgUse these variables to override the choices made by `configure' or to help 139014c0a534Smrgit to find libraries and programs with nonstandard names/locations. 139114c0a534Smrg 139214c0a534SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 139314c0a534Smrg_ACEOF 1394bf2eeab3Smrgac_status=$? 139514c0a534Smrgfi 139614c0a534Smrg 139714c0a534Smrgif test "$ac_init_help" = "recursive"; then 139814c0a534Smrg # If there are subdirs, report their specific --help. 139914c0a534Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1400bf2eeab3Smrg test -d "$ac_dir" || 1401bf2eeab3Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1402bf2eeab3Smrg continue 140314c0a534Smrg ac_builddir=. 140414c0a534Smrg 1405bf2eeab3Smrgcase "$ac_dir" in 1406bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1407bf2eeab3Smrg*) 1408bf2eeab3Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1409bf2eeab3Smrg # A ".." for each directory in $ac_dir_suffix. 1410bf2eeab3Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1411bf2eeab3Smrg case $ac_top_builddir_sub in 1412bf2eeab3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1413bf2eeab3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1414bf2eeab3Smrg esac ;; 1415bf2eeab3Smrgesac 1416bf2eeab3Smrgac_abs_top_builddir=$ac_pwd 1417bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1418bf2eeab3Smrg# for backward compatibility: 1419bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix 142014c0a534Smrg 142114c0a534Smrgcase $srcdir in 1422bf2eeab3Smrg .) # We are building in place. 142314c0a534Smrg ac_srcdir=. 1424bf2eeab3Smrg ac_top_srcdir=$ac_top_builddir_sub 1425bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd ;; 1426bf2eeab3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 142714c0a534Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1428bf2eeab3Smrg ac_top_srcdir=$srcdir 1429bf2eeab3Smrg ac_abs_top_srcdir=$srcdir ;; 1430bf2eeab3Smrg *) # Relative name. 1431bf2eeab3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1432bf2eeab3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1433bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 143414c0a534Smrgesac 1435bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1436bf2eeab3Smrg 1437bf2eeab3Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1438bf2eeab3Smrg # Check for guested configure. 1439bf2eeab3Smrg if test -f "$ac_srcdir/configure.gnu"; then 1440bf2eeab3Smrg echo && 1441bf2eeab3Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1442bf2eeab3Smrg elif test -f "$ac_srcdir/configure"; then 1443bf2eeab3Smrg echo && 1444bf2eeab3Smrg $SHELL "$ac_srcdir/configure" --help=recursive 144514c0a534Smrg else 1446bf2eeab3Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1447bf2eeab3Smrg fi || ac_status=$? 1448bf2eeab3Smrg cd "$ac_pwd" || { ac_status=$?; break; } 144914c0a534Smrg done 145014c0a534Smrgfi 145114c0a534Smrg 1452bf2eeab3Smrgtest -n "$ac_init_help" && exit $ac_status 145314c0a534Smrgif $ac_init_version; then 145414c0a534Smrg cat <<\_ACEOF 14551a054510Smrgsmproxy configure 1.0.5 1456576bae58Smrggenerated by GNU Autoconf 2.68 145714c0a534Smrg 1458576bae58SmrgCopyright (C) 2010 Free Software Foundation, Inc. 145914c0a534SmrgThis configure script is free software; the Free Software Foundation 146014c0a534Smrggives unlimited permission to copy, distribute and modify it. 146114c0a534Smrg_ACEOF 1462bf2eeab3Smrg exit 146314c0a534Smrgfi 146414c0a534Smrg 1465576bae58Smrg## ------------------------ ## 1466576bae58Smrg## Autoconf initialization. ## 1467576bae58Smrg## ------------------------ ## 146814c0a534Smrg 1469576bae58Smrg# ac_fn_c_try_compile LINENO 1470576bae58Smrg# -------------------------- 1471576bae58Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1472576bae58Smrgac_fn_c_try_compile () 147314c0a534Smrg{ 1474576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1475576bae58Smrg rm -f conftest.$ac_objext 1476576bae58Smrg if { { ac_try="$ac_compile" 1477576bae58Smrgcase "(($ac_try" in 1478576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1479576bae58Smrg *) ac_try_echo=$ac_try;; 1480576bae58Smrgesac 1481576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1482576bae58Smrg$as_echo "$ac_try_echo"; } >&5 1483576bae58Smrg (eval "$ac_compile") 2>conftest.err 1484576bae58Smrg ac_status=$? 1485576bae58Smrg if test -s conftest.err; then 1486576bae58Smrg grep -v '^ *+' conftest.err >conftest.er1 1487576bae58Smrg cat conftest.er1 >&5 1488576bae58Smrg mv -f conftest.er1 conftest.err 1489576bae58Smrg fi 1490576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1491576bae58Smrg test $ac_status = 0; } && { 1492576bae58Smrg test -z "$ac_c_werror_flag" || 1493576bae58Smrg test ! -s conftest.err 1494576bae58Smrg } && test -s conftest.$ac_objext; then : 1495576bae58Smrg ac_retval=0 1496576bae58Smrgelse 1497576bae58Smrg $as_echo "$as_me: failed program was:" >&5 1498576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5 149914c0a534Smrg 1500576bae58Smrg ac_retval=1 1501576bae58Smrgfi 1502576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1503576bae58Smrg as_fn_set_status $ac_retval 150414c0a534Smrg 1505576bae58Smrg} # ac_fn_c_try_compile 150614c0a534Smrg 1507576bae58Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1508576bae58Smrg# --------------------------------------------- 1509576bae58Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1510576bae58Smrg# accordingly. 1511576bae58Smrgac_fn_c_check_decl () 1512576bae58Smrg{ 1513576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1514576bae58Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1515576bae58Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1516576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1517576bae58Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1518576bae58Smrgif eval \${$3+:} false; then : 1519576bae58Smrg $as_echo_n "(cached) " >&6 1520576bae58Smrgelse 1521576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1522576bae58Smrg/* end confdefs.h. */ 1523576bae58Smrg$4 1524576bae58Smrgint 1525576bae58Smrgmain () 1526576bae58Smrg{ 1527576bae58Smrg#ifndef $as_decl_name 1528576bae58Smrg#ifdef __cplusplus 1529576bae58Smrg (void) $as_decl_use; 1530576bae58Smrg#else 1531576bae58Smrg (void) $as_decl_name; 1532576bae58Smrg#endif 1533576bae58Smrg#endif 1534576bae58Smrg 1535576bae58Smrg ; 1536576bae58Smrg return 0; 1537576bae58Smrg} 1538576bae58Smrg_ACEOF 1539576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then : 1540576bae58Smrg eval "$3=yes" 1541576bae58Smrgelse 1542576bae58Smrg eval "$3=no" 1543576bae58Smrgfi 1544576bae58Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1545576bae58Smrgfi 1546576bae58Smrgeval ac_res=\$$3 1547576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1548576bae58Smrg$as_echo "$ac_res" >&6; } 1549576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550576bae58Smrg 1551576bae58Smrg} # ac_fn_c_check_decl 1552576bae58Smrg 1553576bae58Smrg# ac_fn_c_try_cpp LINENO 1554576bae58Smrg# ---------------------- 1555576bae58Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1556576bae58Smrgac_fn_c_try_cpp () 1557576bae58Smrg{ 1558576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559576bae58Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1560576bae58Smrgcase "(($ac_try" in 1561576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562576bae58Smrg *) ac_try_echo=$ac_try;; 1563576bae58Smrgesac 1564576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565576bae58Smrg$as_echo "$ac_try_echo"; } >&5 1566576bae58Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1567576bae58Smrg ac_status=$? 1568576bae58Smrg if test -s conftest.err; then 1569576bae58Smrg grep -v '^ *+' conftest.err >conftest.er1 1570576bae58Smrg cat conftest.er1 >&5 1571576bae58Smrg mv -f conftest.er1 conftest.err 1572576bae58Smrg fi 1573576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1574576bae58Smrg test $ac_status = 0; } > conftest.i && { 1575576bae58Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1576576bae58Smrg test ! -s conftest.err 1577576bae58Smrg }; then : 1578576bae58Smrg ac_retval=0 1579576bae58Smrgelse 1580576bae58Smrg $as_echo "$as_me: failed program was:" >&5 1581576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5 1582576bae58Smrg 1583576bae58Smrg ac_retval=1 1584576bae58Smrgfi 1585576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1586576bae58Smrg as_fn_set_status $ac_retval 1587576bae58Smrg 1588576bae58Smrg} # ac_fn_c_try_cpp 1589576bae58Smrg 1590576bae58Smrg# ac_fn_c_try_run LINENO 1591576bae58Smrg# ---------------------- 1592576bae58Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1593576bae58Smrg# that executables *can* be run. 1594576bae58Smrgac_fn_c_try_run () 1595576bae58Smrg{ 1596576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597576bae58Smrg if { { ac_try="$ac_link" 1598576bae58Smrgcase "(($ac_try" in 1599576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1600576bae58Smrg *) ac_try_echo=$ac_try;; 1601576bae58Smrgesac 1602576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1603576bae58Smrg$as_echo "$ac_try_echo"; } >&5 1604576bae58Smrg (eval "$ac_link") 2>&5 1605576bae58Smrg ac_status=$? 1606576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607576bae58Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1608576bae58Smrg { { case "(($ac_try" in 1609576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610576bae58Smrg *) ac_try_echo=$ac_try;; 1611576bae58Smrgesac 1612576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613576bae58Smrg$as_echo "$ac_try_echo"; } >&5 1614576bae58Smrg (eval "$ac_try") 2>&5 1615576bae58Smrg ac_status=$? 1616576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617576bae58Smrg test $ac_status = 0; }; }; then : 1618576bae58Smrg ac_retval=0 1619576bae58Smrgelse 1620576bae58Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 1621576bae58Smrg $as_echo "$as_me: failed program was:" >&5 1622576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5 1623576bae58Smrg 1624576bae58Smrg ac_retval=$ac_status 1625576bae58Smrgfi 1626576bae58Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1627576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628576bae58Smrg as_fn_set_status $ac_retval 1629576bae58Smrg 1630576bae58Smrg} # ac_fn_c_try_run 1631576bae58Smrg 1632576bae58Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1633576bae58Smrg# ------------------------------------------------------- 1634576bae58Smrg# Tests whether HEADER exists and can be compiled using the include files in 1635576bae58Smrg# INCLUDES, setting the cache variable VAR accordingly. 1636576bae58Smrgac_fn_c_check_header_compile () 1637576bae58Smrg{ 1638576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640576bae58Smrg$as_echo_n "checking for $2... " >&6; } 1641576bae58Smrgif eval \${$3+:} false; then : 1642576bae58Smrg $as_echo_n "(cached) " >&6 1643576bae58Smrgelse 1644576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1645576bae58Smrg/* end confdefs.h. */ 1646576bae58Smrg$4 1647576bae58Smrg#include <$2> 1648576bae58Smrg_ACEOF 1649576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then : 1650576bae58Smrg eval "$3=yes" 1651576bae58Smrgelse 1652576bae58Smrg eval "$3=no" 1653576bae58Smrgfi 1654576bae58Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1655576bae58Smrgfi 1656576bae58Smrgeval ac_res=\$$3 1657576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1658576bae58Smrg$as_echo "$ac_res" >&6; } 1659576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660576bae58Smrg 1661576bae58Smrg} # ac_fn_c_check_header_compile 1662576bae58Smrg 1663576bae58Smrg# ac_fn_c_try_link LINENO 1664576bae58Smrg# ----------------------- 1665576bae58Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1666576bae58Smrgac_fn_c_try_link () 1667576bae58Smrg{ 1668576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669576bae58Smrg rm -f conftest.$ac_objext conftest$ac_exeext 1670576bae58Smrg if { { ac_try="$ac_link" 1671576bae58Smrgcase "(($ac_try" in 1672576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673576bae58Smrg *) ac_try_echo=$ac_try;; 1674576bae58Smrgesac 1675576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676576bae58Smrg$as_echo "$ac_try_echo"; } >&5 1677576bae58Smrg (eval "$ac_link") 2>conftest.err 1678576bae58Smrg ac_status=$? 1679576bae58Smrg if test -s conftest.err; then 1680576bae58Smrg grep -v '^ *+' conftest.err >conftest.er1 1681576bae58Smrg cat conftest.er1 >&5 1682576bae58Smrg mv -f conftest.er1 conftest.err 1683576bae58Smrg fi 1684576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685576bae58Smrg test $ac_status = 0; } && { 1686576bae58Smrg test -z "$ac_c_werror_flag" || 1687576bae58Smrg test ! -s conftest.err 1688576bae58Smrg } && test -s conftest$ac_exeext && { 1689576bae58Smrg test "$cross_compiling" = yes || 1690576bae58Smrg $as_test_x conftest$ac_exeext 1691576bae58Smrg }; then : 1692576bae58Smrg ac_retval=0 1693576bae58Smrgelse 1694576bae58Smrg $as_echo "$as_me: failed program was:" >&5 1695576bae58Smrgsed 's/^/| /' conftest.$ac_ext >&5 1696576bae58Smrg 1697576bae58Smrg ac_retval=1 1698576bae58Smrgfi 1699576bae58Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1700576bae58Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1701576bae58Smrg # interfere with the next link command; also delete a directory that is 1702576bae58Smrg # left behind by Apple's compiler. We do this before executing the actions. 1703576bae58Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1704576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705576bae58Smrg as_fn_set_status $ac_retval 1706576bae58Smrg 1707576bae58Smrg} # ac_fn_c_try_link 1708576bae58Smrg 1709576bae58Smrg# ac_fn_c_check_func LINENO FUNC VAR 1710576bae58Smrg# ---------------------------------- 1711576bae58Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1712576bae58Smrgac_fn_c_check_func () 1713576bae58Smrg{ 1714576bae58Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716576bae58Smrg$as_echo_n "checking for $2... " >&6; } 1717576bae58Smrgif eval \${$3+:} false; then : 1718576bae58Smrg $as_echo_n "(cached) " >&6 1719576bae58Smrgelse 1720576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721576bae58Smrg/* end confdefs.h. */ 1722576bae58Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1723576bae58Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1724576bae58Smrg#define $2 innocuous_$2 1725576bae58Smrg 1726576bae58Smrg/* System header to define __stub macros and hopefully few prototypes, 1727576bae58Smrg which can conflict with char $2 (); below. 1728576bae58Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1729576bae58Smrg <limits.h> exists even on freestanding compilers. */ 1730576bae58Smrg 1731576bae58Smrg#ifdef __STDC__ 1732576bae58Smrg# include <limits.h> 1733576bae58Smrg#else 1734576bae58Smrg# include <assert.h> 1735576bae58Smrg#endif 1736576bae58Smrg 1737576bae58Smrg#undef $2 1738576bae58Smrg 1739576bae58Smrg/* Override any GCC internal prototype to avoid an error. 1740576bae58Smrg Use char because int might match the return type of a GCC 1741576bae58Smrg builtin and then its argument prototype would still apply. */ 1742576bae58Smrg#ifdef __cplusplus 1743576bae58Smrgextern "C" 1744576bae58Smrg#endif 1745576bae58Smrgchar $2 (); 1746576bae58Smrg/* The GNU C library defines this for functions which it implements 1747576bae58Smrg to always fail with ENOSYS. Some functions are actually named 1748576bae58Smrg something starting with __ and the normal name is an alias. */ 1749576bae58Smrg#if defined __stub_$2 || defined __stub___$2 1750576bae58Smrgchoke me 1751576bae58Smrg#endif 1752576bae58Smrg 1753576bae58Smrgint 1754576bae58Smrgmain () 1755576bae58Smrg{ 1756576bae58Smrgreturn $2 (); 1757576bae58Smrg ; 1758576bae58Smrg return 0; 1759576bae58Smrg} 1760576bae58Smrg_ACEOF 1761576bae58Smrgif ac_fn_c_try_link "$LINENO"; then : 1762576bae58Smrg eval "$3=yes" 1763576bae58Smrgelse 1764576bae58Smrg eval "$3=no" 1765576bae58Smrgfi 1766576bae58Smrgrm -f core conftest.err conftest.$ac_objext \ 1767576bae58Smrg conftest$ac_exeext conftest.$ac_ext 1768576bae58Smrgfi 1769576bae58Smrgeval ac_res=\$$3 1770576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771576bae58Smrg$as_echo "$ac_res" >&6; } 1772576bae58Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773576bae58Smrg 1774576bae58Smrg} # ac_fn_c_check_func 1775576bae58Smrgcat >config.log <<_ACEOF 1776576bae58SmrgThis file contains any messages produced by compilers while 1777576bae58Smrgrunning configure, to aid debugging if configure makes a mistake. 1778576bae58Smrg 17791a054510SmrgIt was created by smproxy $as_me 1.0.5, which was 1780576bae58Smrggenerated by GNU Autoconf 2.68. Invocation command line was 1781576bae58Smrg 1782576bae58Smrg $ $0 $@ 1783576bae58Smrg 1784576bae58Smrg_ACEOF 1785576bae58Smrgexec 5>>config.log 1786576bae58Smrg{ 1787576bae58Smrgcat <<_ASUNAME 1788576bae58Smrg## --------- ## 1789576bae58Smrg## Platform. ## 1790576bae58Smrg## --------- ## 1791576bae58Smrg 1792576bae58Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1793576bae58Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1794576bae58Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1795576bae58Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1796576bae58Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1797576bae58Smrg 1798576bae58Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1799576bae58Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1800576bae58Smrg 1801576bae58Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1802576bae58Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1803576bae58Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1804576bae58Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1805576bae58Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1806576bae58Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1807576bae58Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1808576bae58Smrg 1809576bae58Smrg_ASUNAME 1810576bae58Smrg 1811576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 181214c0a534Smrgfor as_dir in $PATH 181314c0a534Smrgdo 181414c0a534Smrg IFS=$as_save_IFS 181514c0a534Smrg test -z "$as_dir" && as_dir=. 1816576bae58Smrg $as_echo "PATH: $as_dir" 1817576bae58Smrg done 1818bf2eeab3SmrgIFS=$as_save_IFS 181914c0a534Smrg 182014c0a534Smrg} >&5 182114c0a534Smrg 182214c0a534Smrgcat >&5 <<_ACEOF 182314c0a534Smrg 182414c0a534Smrg 182514c0a534Smrg## ----------- ## 182614c0a534Smrg## Core tests. ## 182714c0a534Smrg## ----------- ## 182814c0a534Smrg 182914c0a534Smrg_ACEOF 183014c0a534Smrg 183114c0a534Smrg 183214c0a534Smrg# Keep a trace of the command line. 183314c0a534Smrg# Strip out --no-create and --no-recursion so they do not pile up. 183414c0a534Smrg# Strip out --silent because we don't want to record it for future runs. 183514c0a534Smrg# Also quote any args containing shell meta-characters. 183614c0a534Smrg# Make two passes to allow for proper duplicate-argument suppression. 183714c0a534Smrgac_configure_args= 183814c0a534Smrgac_configure_args0= 183914c0a534Smrgac_configure_args1= 184014c0a534Smrgac_must_keep_next=false 184114c0a534Smrgfor ac_pass in 1 2 184214c0a534Smrgdo 184314c0a534Smrg for ac_arg 184414c0a534Smrg do 184514c0a534Smrg case $ac_arg in 184614c0a534Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 184714c0a534Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 184814c0a534Smrg | -silent | --silent | --silen | --sile | --sil) 184914c0a534Smrg continue ;; 1850bf2eeab3Smrg *\'*) 1851bf2eeab3Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 185214c0a534Smrg esac 185314c0a534Smrg case $ac_pass in 1854576bae58Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 185514c0a534Smrg 2) 1856576bae58Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 185714c0a534Smrg if test $ac_must_keep_next = true; then 185814c0a534Smrg ac_must_keep_next=false # Got value, back to normal. 185914c0a534Smrg else 186014c0a534Smrg case $ac_arg in 186114c0a534Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 186214c0a534Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 186314c0a534Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 186414c0a534Smrg | -with-* | --with-* | -without-* | --without-* | --x) 186514c0a534Smrg case "$ac_configure_args0 " in 186614c0a534Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 186714c0a534Smrg esac 186814c0a534Smrg ;; 186914c0a534Smrg -* ) ac_must_keep_next=true ;; 187014c0a534Smrg esac 187114c0a534Smrg fi 1872576bae58Smrg as_fn_append ac_configure_args " '$ac_arg'" 187314c0a534Smrg ;; 187414c0a534Smrg esac 187514c0a534Smrg done 187614c0a534Smrgdone 1877576bae58Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1878576bae58Smrg{ ac_configure_args1=; unset ac_configure_args1;} 187914c0a534Smrg 188014c0a534Smrg# When interrupted or exit'd, cleanup temporary files, and complete 188114c0a534Smrg# config.log. We remove comments because anyway the quotes in there 188214c0a534Smrg# would cause problems or look ugly. 1883bf2eeab3Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1884bf2eeab3Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 188514c0a534Smrgtrap 'exit_status=$? 188614c0a534Smrg # Save into config.log some information that might help in debugging. 188714c0a534Smrg { 188814c0a534Smrg echo 188914c0a534Smrg 1890576bae58Smrg $as_echo "## ---------------- ## 189114c0a534Smrg## Cache variables. ## 1892576bae58Smrg## ---------------- ##" 189314c0a534Smrg echo 189414c0a534Smrg # The following way of writing the cache mishandles newlines in values, 1895bf2eeab3Smrg( 1896bf2eeab3Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1897bf2eeab3Smrg eval ac_val=\$$ac_var 1898bf2eeab3Smrg case $ac_val in #( 1899bf2eeab3Smrg *${as_nl}*) 1900bf2eeab3Smrg case $ac_var in #( 1901576bae58Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1902bf2eeab3Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1903bf2eeab3Smrg esac 1904bf2eeab3Smrg case $ac_var in #( 1905bf2eeab3Smrg _ | IFS | as_nl) ;; #( 1906bf2eeab3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1907576bae58Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1908bf2eeab3Smrg esac ;; 1909bf2eeab3Smrg esac 1910bf2eeab3Smrg done 191114c0a534Smrg (set) 2>&1 | 1912bf2eeab3Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1913bf2eeab3Smrg *${as_nl}ac_space=\ *) 191414c0a534Smrg sed -n \ 1915bf2eeab3Smrg "s/'\''/'\''\\\\'\'''\''/g; 1916bf2eeab3Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1917bf2eeab3Smrg ;; #( 191814c0a534Smrg *) 1919bf2eeab3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 192014c0a534Smrg ;; 1921bf2eeab3Smrg esac | 1922bf2eeab3Smrg sort 1923bf2eeab3Smrg) 192414c0a534Smrg echo 192514c0a534Smrg 1926576bae58Smrg $as_echo "## ----------------- ## 192714c0a534Smrg## Output variables. ## 1928576bae58Smrg## ----------------- ##" 192914c0a534Smrg echo 193014c0a534Smrg for ac_var in $ac_subst_vars 193114c0a534Smrg do 1932bf2eeab3Smrg eval ac_val=\$$ac_var 1933bf2eeab3Smrg case $ac_val in 1934bf2eeab3Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1935bf2eeab3Smrg esac 1936bf2eeab3Smrg $as_echo "$ac_var='\''$ac_val'\''" 193714c0a534Smrg done | sort 193814c0a534Smrg echo 193914c0a534Smrg 194014c0a534Smrg if test -n "$ac_subst_files"; then 1941576bae58Smrg $as_echo "## ------------------- ## 1942bf2eeab3Smrg## File substitutions. ## 1943576bae58Smrg## ------------------- ##" 194414c0a534Smrg echo 194514c0a534Smrg for ac_var in $ac_subst_files 194614c0a534Smrg do 1947bf2eeab3Smrg eval ac_val=\$$ac_var 1948bf2eeab3Smrg case $ac_val in 1949bf2eeab3Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1950bf2eeab3Smrg esac 1951bf2eeab3Smrg $as_echo "$ac_var='\''$ac_val'\''" 195214c0a534Smrg done | sort 195314c0a534Smrg echo 195414c0a534Smrg fi 195514c0a534Smrg 195614c0a534Smrg if test -s confdefs.h; then 1957576bae58Smrg $as_echo "## ----------- ## 195814c0a534Smrg## confdefs.h. ## 1959576bae58Smrg## ----------- ##" 196014c0a534Smrg echo 1961bf2eeab3Smrg cat confdefs.h 196214c0a534Smrg echo 196314c0a534Smrg fi 196414c0a534Smrg test "$ac_signal" != 0 && 1965bf2eeab3Smrg $as_echo "$as_me: caught signal $ac_signal" 1966bf2eeab3Smrg $as_echo "$as_me: exit $exit_status" 196714c0a534Smrg } >&5 1968bf2eeab3Smrg rm -f core *.core core.conftest.* && 1969bf2eeab3Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 197014c0a534Smrg exit $exit_status 1971bf2eeab3Smrg' 0 197214c0a534Smrgfor ac_signal in 1 2 13 15; do 1973576bae58Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 197414c0a534Smrgdone 197514c0a534Smrgac_signal=0 197614c0a534Smrg 197714c0a534Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1978bf2eeab3Smrgrm -f -r conftest* confdefs.h 197914c0a534Smrg 1980576bae58Smrg$as_echo "/* confdefs.h */" > confdefs.h 1981576bae58Smrg 198214c0a534Smrg# Predefined preprocessor variables. 198314c0a534Smrg 198414c0a534Smrgcat >>confdefs.h <<_ACEOF 198514c0a534Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 198614c0a534Smrg_ACEOF 198714c0a534Smrg 198814c0a534Smrgcat >>confdefs.h <<_ACEOF 198914c0a534Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 199014c0a534Smrg_ACEOF 199114c0a534Smrg 199214c0a534Smrgcat >>confdefs.h <<_ACEOF 199314c0a534Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 199414c0a534Smrg_ACEOF 199514c0a534Smrg 199614c0a534Smrgcat >>confdefs.h <<_ACEOF 199714c0a534Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 199814c0a534Smrg_ACEOF 199914c0a534Smrg 200014c0a534Smrgcat >>confdefs.h <<_ACEOF 200114c0a534Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 200214c0a534Smrg_ACEOF 200314c0a534Smrg 2004576bae58Smrgcat >>confdefs.h <<_ACEOF 2005576bae58Smrg#define PACKAGE_URL "$PACKAGE_URL" 2006576bae58Smrg_ACEOF 2007576bae58Smrg 200814c0a534Smrg 200914c0a534Smrg# Let the site file select an alternate cache file if it wants to. 2010bf2eeab3Smrg# Prefer an explicitly selected file to automatically selected ones. 2011bf2eeab3Smrgac_site_file1=NONE 2012bf2eeab3Smrgac_site_file2=NONE 2013bf2eeab3Smrgif test -n "$CONFIG_SITE"; then 2014576bae58Smrg # We do not want a PATH search for config.site. 2015576bae58Smrg case $CONFIG_SITE in #(( 2016576bae58Smrg -*) ac_site_file1=./$CONFIG_SITE;; 2017576bae58Smrg */*) ac_site_file1=$CONFIG_SITE;; 2018576bae58Smrg *) ac_site_file1=./$CONFIG_SITE;; 2019576bae58Smrg esac 2020bf2eeab3Smrgelif test "x$prefix" != xNONE; then 2021bf2eeab3Smrg ac_site_file1=$prefix/share/config.site 2022bf2eeab3Smrg ac_site_file2=$prefix/etc/config.site 2023bf2eeab3Smrgelse 2024bf2eeab3Smrg ac_site_file1=$ac_default_prefix/share/config.site 2025bf2eeab3Smrg ac_site_file2=$ac_default_prefix/etc/config.site 202614c0a534Smrgfi 2027bf2eeab3Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2028bf2eeab3Smrgdo 2029bf2eeab3Smrg test "x$ac_site_file" = xNONE && continue 2030576bae58Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2031576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2032bf2eeab3Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 203314c0a534Smrg sed 's/^/| /' "$ac_site_file" >&5 2034576bae58Smrg . "$ac_site_file" \ 2035576bae58Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2036576bae58Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2037576bae58Smrgas_fn_error $? "failed to load site script $ac_site_file 2038576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 203914c0a534Smrg fi 204014c0a534Smrgdone 204114c0a534Smrg 204214c0a534Smrgif test -r "$cache_file"; then 2043576bae58Smrg # Some versions of bash will fail to source /dev/null (special files 2044576bae58Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2045576bae58Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2046576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2047bf2eeab3Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 204814c0a534Smrg case $cache_file in 2049bf2eeab3Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2050bf2eeab3Smrg *) . "./$cache_file";; 205114c0a534Smrg esac 205214c0a534Smrg fi 205314c0a534Smrgelse 2054576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2055bf2eeab3Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 205614c0a534Smrg >$cache_file 205714c0a534Smrgfi 205814c0a534Smrg 205914c0a534Smrg# Check that the precious variables saved in the cache have kept the same 206014c0a534Smrg# value. 206114c0a534Smrgac_cache_corrupted=false 2062bf2eeab3Smrgfor ac_var in $ac_precious_vars; do 206314c0a534Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 206414c0a534Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2065bf2eeab3Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2066bf2eeab3Smrg eval ac_new_val=\$ac_env_${ac_var}_value 206714c0a534Smrg case $ac_old_set,$ac_new_set in 206814c0a534Smrg set,) 2069576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2070bf2eeab3Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 207114c0a534Smrg ac_cache_corrupted=: ;; 207214c0a534Smrg ,set) 2073576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2074bf2eeab3Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 207514c0a534Smrg ac_cache_corrupted=: ;; 207614c0a534Smrg ,);; 207714c0a534Smrg *) 207814c0a534Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2079bf2eeab3Smrg # differences in whitespace do not lead to failure. 2080bf2eeab3Smrg ac_old_val_w=`echo x $ac_old_val` 2081bf2eeab3Smrg ac_new_val_w=`echo x $ac_new_val` 2082bf2eeab3Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2083576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2084bf2eeab3Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2085bf2eeab3Smrg ac_cache_corrupted=: 2086bf2eeab3Smrg else 2087576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2088bf2eeab3Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2089bf2eeab3Smrg eval $ac_var=\$ac_old_val 2090bf2eeab3Smrg fi 2091576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2092bf2eeab3Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2093576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2094bf2eeab3Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 209514c0a534Smrg fi;; 209614c0a534Smrg esac 209714c0a534Smrg # Pass precious variables to config.status. 209814c0a534Smrg if test "$ac_new_set" = set; then 209914c0a534Smrg case $ac_new_val in 2100bf2eeab3Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 210114c0a534Smrg *) ac_arg=$ac_var=$ac_new_val ;; 210214c0a534Smrg esac 210314c0a534Smrg case " $ac_configure_args " in 210414c0a534Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2105576bae58Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 210614c0a534Smrg esac 210714c0a534Smrg fi 210814c0a534Smrgdone 210914c0a534Smrgif $ac_cache_corrupted; then 2110576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2111bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2112576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2113bf2eeab3Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2114576bae58Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 211514c0a534Smrgfi 2116576bae58Smrg## -------------------- ## 2117576bae58Smrg## Main body of script. ## 2118576bae58Smrg## -------------------- ## 211914c0a534Smrg 2120bf2eeab3Smrgac_ext=c 2121bf2eeab3Smrgac_cpp='$CPP $CPPFLAGS' 2122bf2eeab3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2123bf2eeab3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2124bf2eeab3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 212514c0a534Smrg 212614c0a534Smrg 2127bf2eeab3Smrgam__api_version='1.11' 212814c0a534Smrg 212914c0a534Smrgac_aux_dir= 2130bf2eeab3Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2131bf2eeab3Smrg if test -f "$ac_dir/install-sh"; then 213214c0a534Smrg ac_aux_dir=$ac_dir 213314c0a534Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 213414c0a534Smrg break 2135bf2eeab3Smrg elif test -f "$ac_dir/install.sh"; then 213614c0a534Smrg ac_aux_dir=$ac_dir 213714c0a534Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 213814c0a534Smrg break 2139bf2eeab3Smrg elif test -f "$ac_dir/shtool"; then 214014c0a534Smrg ac_aux_dir=$ac_dir 214114c0a534Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 214214c0a534Smrg break 214314c0a534Smrg fi 214414c0a534Smrgdone 214514c0a534Smrgif test -z "$ac_aux_dir"; then 2146576bae58Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 214714c0a534Smrgfi 2148bf2eeab3Smrg 2149bf2eeab3Smrg# These three variables are undocumented and unsupported, 2150bf2eeab3Smrg# and are intended to be withdrawn in a future Autoconf release. 2151bf2eeab3Smrg# They can cause serious problems if a builder's source tree is in a directory 2152bf2eeab3Smrg# whose full name contains unusual characters. 2153bf2eeab3Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2154bf2eeab3Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2155bf2eeab3Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2156bf2eeab3Smrg 215714c0a534Smrg 215814c0a534Smrg# Find a good install program. We prefer a C program (faster), 215914c0a534Smrg# so one script is as good as another. But avoid the broken or 216014c0a534Smrg# incompatible versions: 216114c0a534Smrg# SysV /etc/install, /usr/sbin/install 216214c0a534Smrg# SunOS /usr/etc/install 216314c0a534Smrg# IRIX /sbin/install 216414c0a534Smrg# AIX /bin/install 216514c0a534Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 216614c0a534Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 216714c0a534Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 216814c0a534Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 216914c0a534Smrg# OS/2's system install, which has a completely different semantic 217014c0a534Smrg# ./install, which can be erroneously created by make from ./install.sh. 2171bf2eeab3Smrg# Reject install programs that cannot install multiple files. 2172576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2173bf2eeab3Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 217414c0a534Smrgif test -z "$INSTALL"; then 2175576bae58Smrgif ${ac_cv_path_install+:} false; then : 2176bf2eeab3Smrg $as_echo_n "(cached) " >&6 217714c0a534Smrgelse 217814c0a534Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217914c0a534Smrgfor as_dir in $PATH 218014c0a534Smrgdo 218114c0a534Smrg IFS=$as_save_IFS 218214c0a534Smrg test -z "$as_dir" && as_dir=. 2183576bae58Smrg # Account for people who put trailing slashes in PATH elements. 2184576bae58Smrgcase $as_dir/ in #(( 2185576bae58Smrg ./ | .// | /[cC]/* | \ 218614c0a534Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2187576bae58Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 218814c0a534Smrg /usr/ucb/* ) ;; 218914c0a534Smrg *) 219014c0a534Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 219114c0a534Smrg # Don't use installbsd from OSF since it installs stuff as root 219214c0a534Smrg # by default. 219314c0a534Smrg for ac_prog in ginstall scoinst install; do 219414c0a534Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2195bf2eeab3Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 219614c0a534Smrg if test $ac_prog = install && 219714c0a534Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 219814c0a534Smrg # AIX install. It has an incompatible calling convention. 219914c0a534Smrg : 220014c0a534Smrg elif test $ac_prog = install && 220114c0a534Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 220214c0a534Smrg # program-specific install script used by HP pwplus--don't use. 220314c0a534Smrg : 220414c0a534Smrg else 2205bf2eeab3Smrg rm -rf conftest.one conftest.two conftest.dir 2206bf2eeab3Smrg echo one > conftest.one 2207bf2eeab3Smrg echo two > conftest.two 2208bf2eeab3Smrg mkdir conftest.dir 2209bf2eeab3Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2210bf2eeab3Smrg test -s conftest.one && test -s conftest.two && 2211bf2eeab3Smrg test -s conftest.dir/conftest.one && 2212bf2eeab3Smrg test -s conftest.dir/conftest.two 2213bf2eeab3Smrg then 2214bf2eeab3Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2215bf2eeab3Smrg break 3 2216bf2eeab3Smrg fi 221714c0a534Smrg fi 221814c0a534Smrg fi 221914c0a534Smrg done 222014c0a534Smrg done 222114c0a534Smrg ;; 222214c0a534Smrgesac 2223bf2eeab3Smrg 2224576bae58Smrg done 2225bf2eeab3SmrgIFS=$as_save_IFS 222614c0a534Smrg 2227bf2eeab3Smrgrm -rf conftest.one conftest.two conftest.dir 222814c0a534Smrg 222914c0a534Smrgfi 223014c0a534Smrg if test "${ac_cv_path_install+set}" = set; then 223114c0a534Smrg INSTALL=$ac_cv_path_install 223214c0a534Smrg else 2233bf2eeab3Smrg # As a last resort, use the slow shell script. Don't cache a 2234bf2eeab3Smrg # value for INSTALL within a source directory, because that will 223514c0a534Smrg # break other packages using the cache if that directory is 2236bf2eeab3Smrg # removed, or if the value is a relative name. 223714c0a534Smrg INSTALL=$ac_install_sh 223814c0a534Smrg fi 223914c0a534Smrgfi 2240576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2241bf2eeab3Smrg$as_echo "$INSTALL" >&6; } 224214c0a534Smrg 224314c0a534Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 224414c0a534Smrg# It thinks the first close brace ends the variable substitution. 224514c0a534Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 224614c0a534Smrg 224714c0a534Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 224814c0a534Smrg 224914c0a534Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 225014c0a534Smrg 2251576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2252bf2eeab3Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 225314c0a534Smrg# Just in case 225414c0a534Smrgsleep 1 225514c0a534Smrgecho timestamp > conftest.file 2256bf2eeab3Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2257bf2eeab3Smrg# name. Accept space and tab only in the latter. 2258bf2eeab3Smrgam_lf=' 2259bf2eeab3Smrg' 2260bf2eeab3Smrgcase `pwd` in 2261bf2eeab3Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2262576bae58Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2263bf2eeab3Smrgesac 2264bf2eeab3Smrgcase $srcdir in 2265bf2eeab3Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2266576bae58Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2267bf2eeab3Smrgesac 2268bf2eeab3Smrg 226914c0a534Smrg# Do `set' in a subshell so we don't clobber the current shell's 227014c0a534Smrg# arguments. Must try -L first in case configure is actually a 227114c0a534Smrg# symlink; some systems play weird games with the mod time of symlinks 227214c0a534Smrg# (eg FreeBSD returns the mod time of the symlink's containing 227314c0a534Smrg# directory). 227414c0a534Smrgif ( 2275bf2eeab3Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 227614c0a534Smrg if test "$*" = "X"; then 227714c0a534Smrg # -L didn't work. 2278bf2eeab3Smrg set X `ls -t "$srcdir/configure" conftest.file` 227914c0a534Smrg fi 228014c0a534Smrg rm -f conftest.file 228114c0a534Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 228214c0a534Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 228314c0a534Smrg 228414c0a534Smrg # If neither matched, then we have a broken ls. This can happen 228514c0a534Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 228614c0a534Smrg # broken ls alias from the environment. This has actually 228714c0a534Smrg # happened. Such a system could not be considered "sane". 2288576bae58Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2289576bae58Smrgalias in your environment" "$LINENO" 5 229014c0a534Smrg fi 229114c0a534Smrg 229214c0a534Smrg test "$2" = conftest.file 229314c0a534Smrg ) 229414c0a534Smrgthen 229514c0a534Smrg # Ok. 229614c0a534Smrg : 229714c0a534Smrgelse 2298576bae58Smrg as_fn_error $? "newly created file is older than distributed files! 2299576bae58SmrgCheck your system clock" "$LINENO" 5 230014c0a534Smrgfi 2301576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2302bf2eeab3Smrg$as_echo "yes" >&6; } 230314c0a534Smrgtest "$program_prefix" != NONE && 2304bf2eeab3Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 230514c0a534Smrg# Use a double $ so make ignores it. 230614c0a534Smrgtest "$program_suffix" != NONE && 2307bf2eeab3Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2308bf2eeab3Smrg# Double any \ or $. 230914c0a534Smrg# By default was `s,x,x', remove it if useless. 2310bf2eeab3Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2311bf2eeab3Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 231214c0a534Smrg 231314c0a534Smrg# expand $ac_aux_dir to an absolute path 231414c0a534Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 231514c0a534Smrg 2316bf2eeab3Smrgif test x"${MISSING+set}" != xset; then 2317bf2eeab3Smrg case $am_aux_dir in 2318bf2eeab3Smrg *\ * | *\ *) 2319bf2eeab3Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2320bf2eeab3Smrg *) 2321bf2eeab3Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2322bf2eeab3Smrg esac 2323bf2eeab3Smrgfi 232414c0a534Smrg# Use eval to expand $SHELL 232514c0a534Smrgif eval "$MISSING --run true"; then 232614c0a534Smrg am_missing_run="$MISSING --run " 232714c0a534Smrgelse 232814c0a534Smrg am_missing_run= 2329576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2330bf2eeab3Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2331bf2eeab3Smrgfi 2332bf2eeab3Smrg 2333bf2eeab3Smrgif test x"${install_sh}" != xset; then 2334bf2eeab3Smrg case $am_aux_dir in 2335bf2eeab3Smrg *\ * | *\ *) 2336bf2eeab3Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2337bf2eeab3Smrg *) 2338bf2eeab3Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2339bf2eeab3Smrg esac 2340bf2eeab3Smrgfi 2341bf2eeab3Smrg 2342bf2eeab3Smrg# Installed binaries are usually stripped using `strip' when the user 2343bf2eeab3Smrg# run `make install-strip'. However `strip' might not be the right 2344bf2eeab3Smrg# tool to use in cross-compilation environments, therefore Automake 2345bf2eeab3Smrg# will honor the `STRIP' environment variable to overrule this program. 2346bf2eeab3Smrgif test "$cross_compiling" != no; then 2347bf2eeab3Smrg if test -n "$ac_tool_prefix"; then 2348bf2eeab3Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2349bf2eeab3Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2350576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2351bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2352576bae58Smrgif ${ac_cv_prog_STRIP+:} false; then : 2353bf2eeab3Smrg $as_echo_n "(cached) " >&6 2354bf2eeab3Smrgelse 2355bf2eeab3Smrg if test -n "$STRIP"; then 2356bf2eeab3Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2357bf2eeab3Smrgelse 2358bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359bf2eeab3Smrgfor as_dir in $PATH 2360bf2eeab3Smrgdo 2361bf2eeab3Smrg IFS=$as_save_IFS 2362bf2eeab3Smrg test -z "$as_dir" && as_dir=. 2363576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2364bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2365bf2eeab3Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2366576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2367bf2eeab3Smrg break 2 2368bf2eeab3Smrg fi 2369bf2eeab3Smrgdone 2370576bae58Smrg done 2371bf2eeab3SmrgIFS=$as_save_IFS 2372bf2eeab3Smrg 2373bf2eeab3Smrgfi 2374bf2eeab3Smrgfi 2375bf2eeab3SmrgSTRIP=$ac_cv_prog_STRIP 2376bf2eeab3Smrgif test -n "$STRIP"; then 2377576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2378bf2eeab3Smrg$as_echo "$STRIP" >&6; } 2379bf2eeab3Smrgelse 2380576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2381bf2eeab3Smrg$as_echo "no" >&6; } 2382bf2eeab3Smrgfi 2383bf2eeab3Smrg 2384bf2eeab3Smrg 2385bf2eeab3Smrgfi 2386bf2eeab3Smrgif test -z "$ac_cv_prog_STRIP"; then 2387bf2eeab3Smrg ac_ct_STRIP=$STRIP 2388bf2eeab3Smrg # Extract the first word of "strip", so it can be a program name with args. 2389bf2eeab3Smrgset dummy strip; ac_word=$2 2390576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2391bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2392576bae58Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2393bf2eeab3Smrg $as_echo_n "(cached) " >&6 2394bf2eeab3Smrgelse 2395bf2eeab3Smrg if test -n "$ac_ct_STRIP"; then 2396bf2eeab3Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2397bf2eeab3Smrgelse 2398bf2eeab3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399bf2eeab3Smrgfor as_dir in $PATH 2400bf2eeab3Smrgdo 2401bf2eeab3Smrg IFS=$as_save_IFS 2402bf2eeab3Smrg test -z "$as_dir" && as_dir=. 2403576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2404bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2405bf2eeab3Smrg ac_cv_prog_ac_ct_STRIP="strip" 2406576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2407bf2eeab3Smrg break 2 2408bf2eeab3Smrg fi 2409bf2eeab3Smrgdone 2410576bae58Smrg done 2411bf2eeab3SmrgIFS=$as_save_IFS 2412bf2eeab3Smrg 2413bf2eeab3Smrgfi 2414bf2eeab3Smrgfi 2415bf2eeab3Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2416bf2eeab3Smrgif test -n "$ac_ct_STRIP"; then 2417576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2418bf2eeab3Smrg$as_echo "$ac_ct_STRIP" >&6; } 2419bf2eeab3Smrgelse 2420576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2421bf2eeab3Smrg$as_echo "no" >&6; } 2422bf2eeab3Smrgfi 2423bf2eeab3Smrg 2424bf2eeab3Smrg if test "x$ac_ct_STRIP" = x; then 2425bf2eeab3Smrg STRIP=":" 2426bf2eeab3Smrg else 2427bf2eeab3Smrg case $cross_compiling:$ac_tool_warned in 2428bf2eeab3Smrgyes:) 2429576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2430bf2eeab3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2431bf2eeab3Smrgac_tool_warned=yes ;; 2432bf2eeab3Smrgesac 2433bf2eeab3Smrg STRIP=$ac_ct_STRIP 2434bf2eeab3Smrg fi 2435bf2eeab3Smrgelse 2436bf2eeab3Smrg STRIP="$ac_cv_prog_STRIP" 2437bf2eeab3Smrgfi 2438bf2eeab3Smrg 2439bf2eeab3Smrgfi 2440bf2eeab3SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2441bf2eeab3Smrg 2442576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2443bf2eeab3Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2444bf2eeab3Smrgif test -z "$MKDIR_P"; then 2445576bae58Smrg if ${ac_cv_path_mkdir+:} false; then : 2446bf2eeab3Smrg $as_echo_n "(cached) " >&6 2447bf2eeab3Smrgelse 2448bf2eeab3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2449bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2450bf2eeab3Smrgdo 2451bf2eeab3Smrg IFS=$as_save_IFS 2452bf2eeab3Smrg test -z "$as_dir" && as_dir=. 2453576bae58Smrg for ac_prog in mkdir gmkdir; do 2454bf2eeab3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2455bf2eeab3Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2456bf2eeab3Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2457bf2eeab3Smrg 'mkdir (GNU coreutils) '* | \ 2458bf2eeab3Smrg 'mkdir (coreutils) '* | \ 2459bf2eeab3Smrg 'mkdir (fileutils) '4.1*) 2460bf2eeab3Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2461bf2eeab3Smrg break 3;; 2462bf2eeab3Smrg esac 2463bf2eeab3Smrg done 2464bf2eeab3Smrg done 2465576bae58Smrg done 2466bf2eeab3SmrgIFS=$as_save_IFS 2467bf2eeab3Smrg 2468bf2eeab3Smrgfi 2469bf2eeab3Smrg 2470576bae58Smrg test -d ./--version && rmdir ./--version 2471bf2eeab3Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2472bf2eeab3Smrg MKDIR_P="$ac_cv_path_mkdir -p" 247314c0a534Smrg else 2474bf2eeab3Smrg # As a last resort, use the slow shell script. Don't cache a 2475bf2eeab3Smrg # value for MKDIR_P within a source directory, because that will 2476bf2eeab3Smrg # break other packages using the cache if that directory is 2477bf2eeab3Smrg # removed, or if the value is a relative name. 2478bf2eeab3Smrg MKDIR_P="$ac_install_sh -d" 247914c0a534Smrg fi 248014c0a534Smrgfi 2481576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2482bf2eeab3Smrg$as_echo "$MKDIR_P" >&6; } 2483bf2eeab3Smrg 2484bf2eeab3Smrgmkdir_p="$MKDIR_P" 2485bf2eeab3Smrgcase $mkdir_p in 2486bf2eeab3Smrg [\\/$]* | ?:[\\/]*) ;; 2487bf2eeab3Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2488bf2eeab3Smrgesac 248914c0a534Smrg 249014c0a534Smrgfor ac_prog in gawk mawk nawk awk 249114c0a534Smrgdo 249214c0a534Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 249314c0a534Smrgset dummy $ac_prog; ac_word=$2 2494576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2495bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2496576bae58Smrgif ${ac_cv_prog_AWK+:} false; then : 2497bf2eeab3Smrg $as_echo_n "(cached) " >&6 249814c0a534Smrgelse 249914c0a534Smrg if test -n "$AWK"; then 250014c0a534Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 250114c0a534Smrgelse 250214c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 250314c0a534Smrgfor as_dir in $PATH 250414c0a534Smrgdo 250514c0a534Smrg IFS=$as_save_IFS 250614c0a534Smrg test -z "$as_dir" && as_dir=. 2507576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2508bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 250914c0a534Smrg ac_cv_prog_AWK="$ac_prog" 2510576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 251114c0a534Smrg break 2 251214c0a534Smrg fi 251314c0a534Smrgdone 2514576bae58Smrg done 2515bf2eeab3SmrgIFS=$as_save_IFS 251614c0a534Smrg 251714c0a534Smrgfi 251814c0a534Smrgfi 251914c0a534SmrgAWK=$ac_cv_prog_AWK 252014c0a534Smrgif test -n "$AWK"; then 2521576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2522bf2eeab3Smrg$as_echo "$AWK" >&6; } 252314c0a534Smrgelse 2524576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2525bf2eeab3Smrg$as_echo "no" >&6; } 252614c0a534Smrgfi 252714c0a534Smrg 2528bf2eeab3Smrg 252914c0a534Smrg test -n "$AWK" && break 253014c0a534Smrgdone 253114c0a534Smrg 2532576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2533bf2eeab3Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2534bf2eeab3Smrgset x ${MAKE-make} 2535bf2eeab3Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2536576bae58Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2537bf2eeab3Smrg $as_echo_n "(cached) " >&6 253814c0a534Smrgelse 253914c0a534Smrg cat >conftest.make <<\_ACEOF 2540bf2eeab3SmrgSHELL = /bin/sh 254114c0a534Smrgall: 2542bf2eeab3Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 254314c0a534Smrg_ACEOF 2544576bae58Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2545bf2eeab3Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2546bf2eeab3Smrg *@@@%%%=?*=@@@%%%*) 2547bf2eeab3Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2548bf2eeab3Smrg *) 2549bf2eeab3Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2550bf2eeab3Smrgesac 255114c0a534Smrgrm -f conftest.make 255214c0a534Smrgfi 2553bf2eeab3Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2554576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2555bf2eeab3Smrg$as_echo "yes" >&6; } 255614c0a534Smrg SET_MAKE= 255714c0a534Smrgelse 2558576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2559bf2eeab3Smrg$as_echo "no" >&6; } 256014c0a534Smrg SET_MAKE="MAKE=${MAKE-make}" 256114c0a534Smrgfi 256214c0a534Smrg 256314c0a534Smrgrm -rf .tst 2>/dev/null 256414c0a534Smrgmkdir .tst 2>/dev/null 256514c0a534Smrgif test -d .tst; then 256614c0a534Smrg am__leading_dot=. 256714c0a534Smrgelse 256814c0a534Smrg am__leading_dot=_ 256914c0a534Smrgfi 257014c0a534Smrgrmdir .tst 2>/dev/null 257114c0a534Smrg 2572bf2eeab3Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2573bf2eeab3Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2574bf2eeab3Smrg # is not polluted with repeated "-I." 2575bf2eeab3Smrg am__isrc=' -I$(srcdir)' 2576bf2eeab3Smrg # test to see if srcdir already configured 2577bf2eeab3Smrg if test -f $srcdir/config.status; then 2578576bae58Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2579bf2eeab3Smrg fi 258014c0a534Smrgfi 258114c0a534Smrg 258214c0a534Smrg# test whether we have cygpath 258314c0a534Smrgif test -z "$CYGPATH_W"; then 258414c0a534Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 258514c0a534Smrg CYGPATH_W='cygpath -w' 258614c0a534Smrg else 258714c0a534Smrg CYGPATH_W=echo 258814c0a534Smrg fi 258914c0a534Smrgfi 259014c0a534Smrg 259114c0a534Smrg 259214c0a534Smrg# Define the identity of the package. 259314c0a534Smrg PACKAGE='smproxy' 25941a054510Smrg VERSION='1.0.5' 259514c0a534Smrg 259614c0a534Smrg 259714c0a534Smrgcat >>confdefs.h <<_ACEOF 259814c0a534Smrg#define PACKAGE "$PACKAGE" 259914c0a534Smrg_ACEOF 260014c0a534Smrg 260114c0a534Smrg 260214c0a534Smrgcat >>confdefs.h <<_ACEOF 260314c0a534Smrg#define VERSION "$VERSION" 260414c0a534Smrg_ACEOF 260514c0a534Smrg 260614c0a534Smrg# Some tools Automake needs. 260714c0a534Smrg 260814c0a534SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 260914c0a534Smrg 261014c0a534Smrg 261114c0a534SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 261214c0a534Smrg 261314c0a534Smrg 261414c0a534SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 261514c0a534Smrg 261614c0a534Smrg 261714c0a534SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 261814c0a534Smrg 261914c0a534Smrg 262014c0a534SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 262114c0a534Smrg 262214c0a534Smrg# We need awk for the "check" target. The system "awk" is bad on 262314c0a534Smrg# some platforms. 262414c0a534Smrg# Always define AMTAR for backward compatibility. 262514c0a534Smrg 262614c0a534SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 262714c0a534Smrg 262814c0a534Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 262914c0a534Smrg 263014c0a534Smrg 263114c0a534Smrg 263214c0a534Smrg 263314c0a534Smrg 2634bf2eeab3Smrg 2635576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2636bf2eeab3Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2637bf2eeab3Smrg # Check whether --enable-maintainer-mode was given. 2638576bae58Smrgif test "${enable_maintainer_mode+set}" = set; then : 2639bf2eeab3Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 264014c0a534Smrgelse 264114c0a534Smrg USE_MAINTAINER_MODE=no 2642bf2eeab3Smrgfi 264314c0a534Smrg 2644576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2645bf2eeab3Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2646bf2eeab3Smrg if test $USE_MAINTAINER_MODE = yes; then 264714c0a534Smrg MAINTAINER_MODE_TRUE= 264814c0a534Smrg MAINTAINER_MODE_FALSE='#' 264914c0a534Smrgelse 265014c0a534Smrg MAINTAINER_MODE_TRUE='#' 265114c0a534Smrg MAINTAINER_MODE_FALSE= 265214c0a534Smrgfi 265314c0a534Smrg 265414c0a534Smrg MAINT=$MAINTAINER_MODE_TRUE 265514c0a534Smrg 265614c0a534Smrg 265714c0a534Smrg 2658576bae58Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 265914c0a534Smrg 266014c0a534Smrg 2661bf2eeab3Smrg 2662bf2eeab3Smrg 2663bf2eeab3Smrg 2664bf2eeab3Smrg 2665bf2eeab3Smrg 2666bf2eeab3Smrg 2667bf2eeab3Smrg 2668bf2eeab3Smrg 2669bf2eeab3Smrg 2670bf2eeab3Smrg 2671bf2eeab3Smrgac_config_headers="$ac_config_headers config.h" 2672bf2eeab3Smrg 2673bf2eeab3Smrg 2674576bae58SmrgDEPDIR="${am__leading_dot}deps" 267514c0a534Smrg 2676576bae58Smrgac_config_commands="$ac_config_commands depfiles" 2677576bae58Smrg 2678576bae58Smrg 2679576bae58Smrgam_make=${MAKE-make} 2680576bae58Smrgcat > confinc << 'END' 2681576bae58Smrgam__doit: 2682576bae58Smrg @echo this is the am__doit target 2683576bae58Smrg.PHONY: am__doit 2684576bae58SmrgEND 2685576bae58Smrg# If we don't find an include directive, just comment out the code. 2686576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2687576bae58Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2688576bae58Smrgam__include="#" 2689576bae58Smrgam__quote= 2690576bae58Smrg_am_result=none 2691576bae58Smrg# First try GNU make style include. 2692576bae58Smrgecho "include confinc" > confmf 2693576bae58Smrg# Ignore all kinds of additional output from `make'. 2694576bae58Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2695576bae58Smrg*the\ am__doit\ target*) 2696576bae58Smrg am__include=include 2697576bae58Smrg am__quote= 2698576bae58Smrg _am_result=GNU 2699576bae58Smrg ;; 2700576bae58Smrgesac 2701576bae58Smrg# Now try BSD make style include. 2702576bae58Smrgif test "$am__include" = "#"; then 2703576bae58Smrg echo '.include "confinc"' > confmf 2704576bae58Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 2705576bae58Smrg *the\ am__doit\ target*) 2706576bae58Smrg am__include=.include 2707576bae58Smrg am__quote="\"" 2708576bae58Smrg _am_result=BSD 2709576bae58Smrg ;; 2710576bae58Smrg esac 2711576bae58Smrgfi 2712576bae58Smrg 2713576bae58Smrg 2714576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2715576bae58Smrg$as_echo "$_am_result" >&6; } 2716576bae58Smrgrm -f confinc confmf 2717576bae58Smrg 2718576bae58Smrg# Check whether --enable-dependency-tracking was given. 2719576bae58Smrgif test "${enable_dependency_tracking+set}" = set; then : 2720576bae58Smrg enableval=$enable_dependency_tracking; 2721576bae58Smrgfi 2722576bae58Smrg 2723576bae58Smrgif test "x$enable_dependency_tracking" != xno; then 2724576bae58Smrg am_depcomp="$ac_aux_dir/depcomp" 2725576bae58Smrg AMDEPBACKSLASH='\' 2726576bae58Smrgfi 2727576bae58Smrg if test "x$enable_dependency_tracking" != xno; then 2728576bae58Smrg AMDEP_TRUE= 2729576bae58Smrg AMDEP_FALSE='#' 2730576bae58Smrgelse 2731576bae58Smrg AMDEP_TRUE='#' 2732576bae58Smrg AMDEP_FALSE= 2733576bae58Smrgfi 2734576bae58Smrg 2735576bae58Smrg 2736576bae58Smrgac_ext=c 2737576bae58Smrgac_cpp='$CPP $CPPFLAGS' 2738576bae58Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2739576bae58Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2740576bae58Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2741576bae58Smrgif test -n "$ac_tool_prefix"; then 2742576bae58Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2743576bae58Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2744576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2745576bae58Smrg$as_echo_n "checking for $ac_word... " >&6; } 2746576bae58Smrgif ${ac_cv_prog_CC+:} false; then : 2747576bae58Smrg $as_echo_n "(cached) " >&6 2748576bae58Smrgelse 2749576bae58Smrg if test -n "$CC"; then 2750576bae58Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2751576bae58Smrgelse 2752576bae58Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753576bae58Smrgfor as_dir in $PATH 2754576bae58Smrgdo 2755576bae58Smrg IFS=$as_save_IFS 2756576bae58Smrg test -z "$as_dir" && as_dir=. 2757576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2758576bae58Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2759576bae58Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2760576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2761576bae58Smrg break 2 2762576bae58Smrg fi 2763576bae58Smrgdone 2764576bae58Smrg done 2765576bae58SmrgIFS=$as_save_IFS 2766576bae58Smrg 2767576bae58Smrgfi 2768576bae58Smrgfi 2769576bae58SmrgCC=$ac_cv_prog_CC 2770576bae58Smrgif test -n "$CC"; then 2771576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2772576bae58Smrg$as_echo "$CC" >&6; } 2773576bae58Smrgelse 2774576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2775576bae58Smrg$as_echo "no" >&6; } 2776576bae58Smrgfi 277714c0a534Smrg 2778bf2eeab3Smrg 277914c0a534Smrgfi 278014c0a534Smrgif test -z "$ac_cv_prog_CC"; then 278114c0a534Smrg ac_ct_CC=$CC 278214c0a534Smrg # Extract the first word of "gcc", so it can be a program name with args. 278314c0a534Smrgset dummy gcc; ac_word=$2 2784576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2785bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2786576bae58Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2787bf2eeab3Smrg $as_echo_n "(cached) " >&6 278814c0a534Smrgelse 278914c0a534Smrg if test -n "$ac_ct_CC"; then 279014c0a534Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 279114c0a534Smrgelse 279214c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 279314c0a534Smrgfor as_dir in $PATH 279414c0a534Smrgdo 279514c0a534Smrg IFS=$as_save_IFS 279614c0a534Smrg test -z "$as_dir" && as_dir=. 2797576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2798bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 279914c0a534Smrg ac_cv_prog_ac_ct_CC="gcc" 2800576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 280114c0a534Smrg break 2 280214c0a534Smrg fi 280314c0a534Smrgdone 2804576bae58Smrg done 2805bf2eeab3SmrgIFS=$as_save_IFS 280614c0a534Smrg 280714c0a534Smrgfi 280814c0a534Smrgfi 280914c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 281014c0a534Smrgif test -n "$ac_ct_CC"; then 2811576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2812bf2eeab3Smrg$as_echo "$ac_ct_CC" >&6; } 281314c0a534Smrgelse 2814576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815bf2eeab3Smrg$as_echo "no" >&6; } 281614c0a534Smrgfi 281714c0a534Smrg 2818bf2eeab3Smrg if test "x$ac_ct_CC" = x; then 2819bf2eeab3Smrg CC="" 2820bf2eeab3Smrg else 2821bf2eeab3Smrg case $cross_compiling:$ac_tool_warned in 2822bf2eeab3Smrgyes:) 2823576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2824bf2eeab3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2825bf2eeab3Smrgac_tool_warned=yes ;; 2826bf2eeab3Smrgesac 2827bf2eeab3Smrg CC=$ac_ct_CC 2828bf2eeab3Smrg fi 282914c0a534Smrgelse 283014c0a534Smrg CC="$ac_cv_prog_CC" 283114c0a534Smrgfi 283214c0a534Smrg 283314c0a534Smrgif test -z "$CC"; then 2834bf2eeab3Smrg if test -n "$ac_tool_prefix"; then 2835bf2eeab3Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 283614c0a534Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2837576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2838bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2839576bae58Smrgif ${ac_cv_prog_CC+:} false; then : 2840bf2eeab3Smrg $as_echo_n "(cached) " >&6 284114c0a534Smrgelse 284214c0a534Smrg if test -n "$CC"; then 284314c0a534Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 284414c0a534Smrgelse 284514c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 284614c0a534Smrgfor as_dir in $PATH 284714c0a534Smrgdo 284814c0a534Smrg IFS=$as_save_IFS 284914c0a534Smrg test -z "$as_dir" && as_dir=. 2850576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2851bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 285214c0a534Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2853576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 285414c0a534Smrg break 2 285514c0a534Smrg fi 285614c0a534Smrgdone 2857576bae58Smrg done 2858bf2eeab3SmrgIFS=$as_save_IFS 285914c0a534Smrg 286014c0a534Smrgfi 286114c0a534Smrgfi 286214c0a534SmrgCC=$ac_cv_prog_CC 286314c0a534Smrgif test -n "$CC"; then 2864576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2865bf2eeab3Smrg$as_echo "$CC" >&6; } 286614c0a534Smrgelse 2867576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2868bf2eeab3Smrg$as_echo "no" >&6; } 286914c0a534Smrgfi 287014c0a534Smrg 287114c0a534Smrg 2872bf2eeab3Smrg fi 287314c0a534Smrgfi 287414c0a534Smrgif test -z "$CC"; then 287514c0a534Smrg # Extract the first word of "cc", so it can be a program name with args. 287614c0a534Smrgset dummy cc; ac_word=$2 2877576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2879576bae58Smrgif ${ac_cv_prog_CC+:} false; then : 2880bf2eeab3Smrg $as_echo_n "(cached) " >&6 288114c0a534Smrgelse 288214c0a534Smrg if test -n "$CC"; then 288314c0a534Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 288414c0a534Smrgelse 288514c0a534Smrg ac_prog_rejected=no 288614c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 288714c0a534Smrgfor as_dir in $PATH 288814c0a534Smrgdo 288914c0a534Smrg IFS=$as_save_IFS 289014c0a534Smrg test -z "$as_dir" && as_dir=. 2891576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2892bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 289314c0a534Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 289414c0a534Smrg ac_prog_rejected=yes 289514c0a534Smrg continue 289614c0a534Smrg fi 289714c0a534Smrg ac_cv_prog_CC="cc" 2898576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 289914c0a534Smrg break 2 290014c0a534Smrg fi 290114c0a534Smrgdone 2902576bae58Smrg done 2903bf2eeab3SmrgIFS=$as_save_IFS 290414c0a534Smrg 290514c0a534Smrgif test $ac_prog_rejected = yes; then 290614c0a534Smrg # We found a bogon in the path, so make sure we never use it. 290714c0a534Smrg set dummy $ac_cv_prog_CC 290814c0a534Smrg shift 290914c0a534Smrg if test $# != 0; then 291014c0a534Smrg # We chose a different compiler from the bogus one. 291114c0a534Smrg # However, it has the same basename, so the bogon will be chosen 291214c0a534Smrg # first if we set CC to just the basename; use the full file name. 291314c0a534Smrg shift 291414c0a534Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 291514c0a534Smrg fi 291614c0a534Smrgfi 291714c0a534Smrgfi 291814c0a534Smrgfi 291914c0a534SmrgCC=$ac_cv_prog_CC 292014c0a534Smrgif test -n "$CC"; then 2921576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2922bf2eeab3Smrg$as_echo "$CC" >&6; } 292314c0a534Smrgelse 2924576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925bf2eeab3Smrg$as_echo "no" >&6; } 292614c0a534Smrgfi 292714c0a534Smrg 2928bf2eeab3Smrg 292914c0a534Smrgfi 293014c0a534Smrgif test -z "$CC"; then 293114c0a534Smrg if test -n "$ac_tool_prefix"; then 2932bf2eeab3Smrg for ac_prog in cl.exe 293314c0a534Smrg do 293414c0a534Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 293514c0a534Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2936576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2937bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2938576bae58Smrgif ${ac_cv_prog_CC+:} false; then : 2939bf2eeab3Smrg $as_echo_n "(cached) " >&6 294014c0a534Smrgelse 294114c0a534Smrg if test -n "$CC"; then 294214c0a534Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 294314c0a534Smrgelse 294414c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 294514c0a534Smrgfor as_dir in $PATH 294614c0a534Smrgdo 294714c0a534Smrg IFS=$as_save_IFS 294814c0a534Smrg test -z "$as_dir" && as_dir=. 2949576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2950bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 295114c0a534Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2952576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 295314c0a534Smrg break 2 295414c0a534Smrg fi 295514c0a534Smrgdone 2956576bae58Smrg done 2957bf2eeab3SmrgIFS=$as_save_IFS 295814c0a534Smrg 295914c0a534Smrgfi 296014c0a534Smrgfi 296114c0a534SmrgCC=$ac_cv_prog_CC 296214c0a534Smrgif test -n "$CC"; then 2963576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2964bf2eeab3Smrg$as_echo "$CC" >&6; } 296514c0a534Smrgelse 2966576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2967bf2eeab3Smrg$as_echo "no" >&6; } 296814c0a534Smrgfi 296914c0a534Smrg 2970bf2eeab3Smrg 297114c0a534Smrg test -n "$CC" && break 297214c0a534Smrg done 297314c0a534Smrgfi 297414c0a534Smrgif test -z "$CC"; then 297514c0a534Smrg ac_ct_CC=$CC 2976bf2eeab3Smrg for ac_prog in cl.exe 297714c0a534Smrgdo 297814c0a534Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 297914c0a534Smrgset dummy $ac_prog; ac_word=$2 2980576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981bf2eeab3Smrg$as_echo_n "checking for $ac_word... " >&6; } 2982576bae58Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2983bf2eeab3Smrg $as_echo_n "(cached) " >&6 298414c0a534Smrgelse 298514c0a534Smrg if test -n "$ac_ct_CC"; then 298614c0a534Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 298714c0a534Smrgelse 298814c0a534Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 298914c0a534Smrgfor as_dir in $PATH 299014c0a534Smrgdo 299114c0a534Smrg IFS=$as_save_IFS 299214c0a534Smrg test -z "$as_dir" && as_dir=. 2993576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2994bf2eeab3Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 299514c0a534Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2996576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 299714c0a534Smrg break 2 299814c0a534Smrg fi 299914c0a534Smrgdone 3000576bae58Smrg done 3001bf2eeab3SmrgIFS=$as_save_IFS 300214c0a534Smrg 300314c0a534Smrgfi 300414c0a534Smrgfi 300514c0a534Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 300614c0a534Smrgif test -n "$ac_ct_CC"; then 3007576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3008bf2eeab3Smrg$as_echo "$ac_ct_CC" >&6; } 300914c0a534Smrgelse 3010576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011bf2eeab3Smrg$as_echo "no" >&6; } 301214c0a534Smrgfi 301314c0a534Smrg 3014bf2eeab3Smrg 301514c0a534Smrg test -n "$ac_ct_CC" && break 301614c0a534Smrgdone 301714c0a534Smrg 3018bf2eeab3Smrg if test "x$ac_ct_CC" = x; then 3019bf2eeab3Smrg CC="" 3020bf2eeab3Smrg else 3021bf2eeab3Smrg case $cross_compiling:$ac_tool_warned in 3022bf2eeab3Smrgyes:) 3023576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3024bf2eeab3Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3025bf2eeab3Smrgac_tool_warned=yes ;; 3026bf2eeab3Smrgesac 3027bf2eeab3Smrg CC=$ac_ct_CC 3028bf2eeab3Smrg fi 302914c0a534Smrgfi 303014c0a534Smrg 303114c0a534Smrgfi 303214c0a534Smrg 303314c0a534Smrg 3034576bae58Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3035bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3036576bae58Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3037576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 303814c0a534Smrg 303914c0a534Smrg# Provide some information about the compiler. 3040576bae58Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3041bf2eeab3Smrgset X $ac_compile 3042bf2eeab3Smrgac_compiler=$2 3043576bae58Smrgfor ac_option in --version -v -V -qversion; do 3044576bae58Smrg { { ac_try="$ac_compiler $ac_option >&5" 3045bf2eeab3Smrgcase "(($ac_try" in 3046bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3047bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3048bf2eeab3Smrgesac 3049576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3050576bae58Smrg$as_echo "$ac_try_echo"; } >&5 3051576bae58Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 305214c0a534Smrg ac_status=$? 3053576bae58Smrg if test -s conftest.err; then 3054576bae58Smrg sed '10a\ 3055576bae58Smrg... rest of stderr output deleted ... 3056576bae58Smrg 10q' conftest.err >conftest.er1 3057576bae58Smrg cat conftest.er1 >&5 3058576bae58Smrg fi 3059576bae58Smrg rm -f conftest.er1 conftest.err 3060576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3061576bae58Smrg test $ac_status = 0; } 3062576bae58Smrgdone 306314c0a534Smrg 3064576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 306514c0a534Smrg/* end confdefs.h. */ 306614c0a534Smrg 306714c0a534Smrgint 306814c0a534Smrgmain () 306914c0a534Smrg{ 307014c0a534Smrg 307114c0a534Smrg ; 307214c0a534Smrg return 0; 307314c0a534Smrg} 307414c0a534Smrg_ACEOF 307514c0a534Smrgac_clean_files_save=$ac_clean_files 3076bf2eeab3Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 307714c0a534Smrg# Try to create an executable without -o first, disregard a.out. 307814c0a534Smrg# It will help us diagnose broken compilers, and finding out an intuition 307914c0a534Smrg# of exeext. 3080576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3081576bae58Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 3082bf2eeab3Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3083bf2eeab3Smrg 3084bf2eeab3Smrg# The possible output files: 3085bf2eeab3Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3086bf2eeab3Smrg 3087bf2eeab3Smrgac_rmfiles= 3088bf2eeab3Smrgfor ac_file in $ac_files 3089bf2eeab3Smrgdo 3090bf2eeab3Smrg case $ac_file in 3091bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3092bf2eeab3Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3093bf2eeab3Smrg esac 3094bf2eeab3Smrgdone 3095bf2eeab3Smrgrm -f $ac_rmfiles 3096bf2eeab3Smrg 3097576bae58Smrgif { { ac_try="$ac_link_default" 3098bf2eeab3Smrgcase "(($ac_try" in 3099bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3100bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3101bf2eeab3Smrgesac 3102576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3103576bae58Smrg$as_echo "$ac_try_echo"; } >&5 3104bf2eeab3Smrg (eval "$ac_link_default") 2>&5 310514c0a534Smrg ac_status=$? 3106576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3107576bae58Smrg test $ac_status = 0; }; then : 3108bf2eeab3Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3109bf2eeab3Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3110bf2eeab3Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3111bf2eeab3Smrg# so that the user can short-circuit this test for compilers unknown to 3112bf2eeab3Smrg# Autoconf. 3113bf2eeab3Smrgfor ac_file in $ac_files '' 311414c0a534Smrgdo 311514c0a534Smrg test -f "$ac_file" || continue 311614c0a534Smrg case $ac_file in 3117bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 311814c0a534Smrg ;; 311914c0a534Smrg [ab].out ) 312014c0a534Smrg # We found the default executable, but exeext='' is most 312114c0a534Smrg # certainly right. 312214c0a534Smrg break;; 312314c0a534Smrg *.* ) 3124576bae58Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3125bf2eeab3Smrg then :; else 3126bf2eeab3Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3127bf2eeab3Smrg fi 3128bf2eeab3Smrg # We set ac_cv_exeext here because the later test for it is not 3129bf2eeab3Smrg # safe: cross compilers may not add the suffix if given an `-o' 3130bf2eeab3Smrg # argument, so we may need to know it at that point already. 3131bf2eeab3Smrg # Even if this section looks crufty: it has the advantage of 3132bf2eeab3Smrg # actually working. 313314c0a534Smrg break;; 313414c0a534Smrg * ) 313514c0a534Smrg break;; 313614c0a534Smrg esac 313714c0a534Smrgdone 3138bf2eeab3Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3139bf2eeab3Smrg 314014c0a534Smrgelse 3141bf2eeab3Smrg ac_file='' 3142bf2eeab3Smrgfi 3143576bae58Smrgif test -z "$ac_file"; then : 3144576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3145576bae58Smrg$as_echo "no" >&6; } 3146576bae58Smrg$as_echo "$as_me: failed program was:" >&5 314714c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5 314814c0a534Smrg 3149576bae58Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3150bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3151576bae58Smrgas_fn_error 77 "C compiler cannot create executables 3152576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 3153576bae58Smrgelse 3154576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3155576bae58Smrg$as_echo "yes" >&6; } 315614c0a534Smrgfi 3157576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3158576bae58Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3159576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3160576bae58Smrg$as_echo "$ac_file" >&6; } 316114c0a534Smrgac_exeext=$ac_cv_exeext 316214c0a534Smrg 3163bf2eeab3Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 316414c0a534Smrgac_clean_files=$ac_clean_files_save 3165576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3166bf2eeab3Smrg$as_echo_n "checking for suffix of executables... " >&6; } 3167576bae58Smrgif { { ac_try="$ac_link" 3168bf2eeab3Smrgcase "(($ac_try" in 3169bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3170bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3171bf2eeab3Smrgesac 3172576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3173576bae58Smrg$as_echo "$ac_try_echo"; } >&5 3174bf2eeab3Smrg (eval "$ac_link") 2>&5 317514c0a534Smrg ac_status=$? 3176576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177576bae58Smrg test $ac_status = 0; }; then : 317814c0a534Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 317914c0a534Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 318014c0a534Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 318114c0a534Smrg# `rm'. 318214c0a534Smrgfor ac_file in conftest.exe conftest conftest.*; do 318314c0a534Smrg test -f "$ac_file" || continue 318414c0a534Smrg case $ac_file in 3185bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 318614c0a534Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 318714c0a534Smrg break;; 318814c0a534Smrg * ) break;; 318914c0a534Smrg esac 319014c0a534Smrgdone 319114c0a534Smrgelse 3192576bae58Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3193bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3194576bae58Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3195576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 319614c0a534Smrgfi 3197576bae58Smrgrm -f conftest conftest$ac_cv_exeext 3198576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3199bf2eeab3Smrg$as_echo "$ac_cv_exeext" >&6; } 320014c0a534Smrg 320114c0a534Smrgrm -f conftest.$ac_ext 320214c0a534SmrgEXEEXT=$ac_cv_exeext 320314c0a534Smrgac_exeext=$EXEEXT 3204576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3205576bae58Smrg/* end confdefs.h. */ 3206576bae58Smrg#include <stdio.h> 3207576bae58Smrgint 3208576bae58Smrgmain () 3209576bae58Smrg{ 3210576bae58SmrgFILE *f = fopen ("conftest.out", "w"); 3211576bae58Smrg return ferror (f) || fclose (f) != 0; 3212576bae58Smrg 3213576bae58Smrg ; 3214576bae58Smrg return 0; 3215576bae58Smrg} 3216576bae58Smrg_ACEOF 3217576bae58Smrgac_clean_files="$ac_clean_files conftest.out" 3218576bae58Smrg# Check that the compiler produces executables we can run. If not, either 3219576bae58Smrg# the compiler is broken, or we cross compile. 3220576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3221576bae58Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3222576bae58Smrgif test "$cross_compiling" != yes; then 3223576bae58Smrg { { ac_try="$ac_link" 3224576bae58Smrgcase "(($ac_try" in 3225576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3226576bae58Smrg *) ac_try_echo=$ac_try;; 3227576bae58Smrgesac 3228576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3229576bae58Smrg$as_echo "$ac_try_echo"; } >&5 3230576bae58Smrg (eval "$ac_link") 2>&5 3231576bae58Smrg ac_status=$? 3232576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3233576bae58Smrg test $ac_status = 0; } 3234576bae58Smrg if { ac_try='./conftest$ac_cv_exeext' 3235576bae58Smrg { { case "(($ac_try" in 3236576bae58Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237576bae58Smrg *) ac_try_echo=$ac_try;; 3238576bae58Smrgesac 3239576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3240576bae58Smrg$as_echo "$ac_try_echo"; } >&5 3241576bae58Smrg (eval "$ac_try") 2>&5 3242576bae58Smrg ac_status=$? 3243576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3244576bae58Smrg test $ac_status = 0; }; }; then 3245576bae58Smrg cross_compiling=no 3246576bae58Smrg else 3247576bae58Smrg if test "$cross_compiling" = maybe; then 3248576bae58Smrg cross_compiling=yes 3249576bae58Smrg else 3250576bae58Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3251576bae58Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3252576bae58Smrgas_fn_error $? "cannot run C compiled programs. 3253576bae58SmrgIf you meant to cross compile, use \`--host'. 3254576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 3255576bae58Smrg fi 3256576bae58Smrg fi 3257576bae58Smrgfi 3258576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3259576bae58Smrg$as_echo "$cross_compiling" >&6; } 3260576bae58Smrg 3261576bae58Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3262576bae58Smrgac_clean_files=$ac_clean_files_save 3263576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3264bf2eeab3Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3265576bae58Smrgif ${ac_cv_objext+:} false; then : 3266bf2eeab3Smrg $as_echo_n "(cached) " >&6 326714c0a534Smrgelse 3268576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 326914c0a534Smrg/* end confdefs.h. */ 327014c0a534Smrg 327114c0a534Smrgint 327214c0a534Smrgmain () 327314c0a534Smrg{ 327414c0a534Smrg 327514c0a534Smrg ; 327614c0a534Smrg return 0; 327714c0a534Smrg} 327814c0a534Smrg_ACEOF 327914c0a534Smrgrm -f conftest.o conftest.obj 3280576bae58Smrgif { { ac_try="$ac_compile" 3281bf2eeab3Smrgcase "(($ac_try" in 3282bf2eeab3Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3283bf2eeab3Smrg *) ac_try_echo=$ac_try;; 3284bf2eeab3Smrgesac 3285576bae58Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3286576bae58Smrg$as_echo "$ac_try_echo"; } >&5 3287bf2eeab3Smrg (eval "$ac_compile") 2>&5 328814c0a534Smrg ac_status=$? 3289576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3290576bae58Smrg test $ac_status = 0; }; then : 3291bf2eeab3Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3292bf2eeab3Smrg test -f "$ac_file" || continue; 329314c0a534Smrg case $ac_file in 3294bf2eeab3Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 329514c0a534Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 329614c0a534Smrg break;; 329714c0a534Smrg esac 329814c0a534Smrgdone 329914c0a534Smrgelse 3300bf2eeab3Smrg $as_echo "$as_me: failed program was:" >&5 330114c0a534Smrgsed 's/^/| /' conftest.$ac_ext >&5 330214c0a534Smrg 3303576bae58Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3304bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3305576bae58Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3306576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 330714c0a534Smrgfi 330814c0a534Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 330914c0a534Smrgfi 3310576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3311bf2eeab3Smrg$as_echo "$ac_cv_objext" >&6; } 331214c0a534SmrgOBJEXT=$ac_cv_objext 331314c0a534Smrgac_objext=$OBJEXT 3314576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3315bf2eeab3Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3316576bae58Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 3317bf2eeab3Smrg $as_echo_n "(cached) " >&6 331814c0a534Smrgelse 3319576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 332014c0a534Smrg/* end confdefs.h. */ 332114c0a534Smrg 332214c0a534Smrgint 332314c0a534Smrgmain () 332414c0a534Smrg{ 332514c0a534Smrg#ifndef __GNUC__ 332614c0a534Smrg choke me 332714c0a534Smrg#endif 332814c0a534Smrg 332914c0a534Smrg ; 333014c0a534Smrg return 0; 333114c0a534Smrg} 333214c0a534Smrg_ACEOF 3333576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then : 333414c0a534Smrg ac_compiler_gnu=yes 333514c0a534Smrgelse 3336576bae58Smrg ac_compiler_gnu=no 333714c0a534Smrgfi 3338bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 333914c0a534Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 334014c0a534Smrg 334114c0a534Smrgfi 3342576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3343bf2eeab3Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3344bf2eeab3Smrgif test $ac_compiler_gnu = yes; then 3345bf2eeab3Smrg GCC=yes 3346bf2eeab3Smrgelse 3347bf2eeab3Smrg GCC= 3348bf2eeab3Smrgfi 334914c0a534Smrgac_test_CFLAGS=${CFLAGS+set} 335014c0a534Smrgac_save_CFLAGS=$CFLAGS 3351576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3352bf2eeab3Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3353576bae58Smrgif ${ac_cv_prog_cc_g+:} false; then : 3354bf2eeab3Smrg $as_echo_n "(cached) " >&6 335514c0a534Smrgelse 3356bf2eeab3Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3357bf2eeab3Smrg ac_c_werror_flag=yes 3358bf2eeab3Smrg ac_cv_prog_cc_g=no 3359bf2eeab3Smrg CFLAGS="-g" 3360576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 336114c0a534Smrg/* end confdefs.h. */ 336214c0a534Smrg 336314c0a534Smrgint 336414c0a534Smrgmain () 336514c0a534Smrg{ 336614c0a534Smrg 336714c0a534Smrg ; 336814c0a534Smrg return 0; 336914c0a534Smrg} 337014c0a534Smrg_ACEOF 3371576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then : 3372bf2eeab3Smrg ac_cv_prog_cc_g=yes 3373bf2eeab3Smrgelse 3374576bae58Smrg CFLAGS="" 3375576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3376bf2eeab3Smrg/* end confdefs.h. */ 3377bf2eeab3Smrg 3378bf2eeab3Smrgint 3379bf2eeab3Smrgmain () 3380bf2eeab3Smrg{ 3381bf2eeab3Smrg 3382bf2eeab3Smrg ; 3383bf2eeab3Smrg return 0; 3384bf2eeab3Smrg} 3385bf2eeab3Smrg_ACEOF 3386576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then : 3387bf2eeab3Smrg 3388576bae58Smrgelse 3389576bae58Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3390bf2eeab3Smrg CFLAGS="-g" 3391576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3392bf2eeab3Smrg/* end confdefs.h. */ 3393bf2eeab3Smrg 3394bf2eeab3Smrgint 3395bf2eeab3Smrgmain () 3396bf2eeab3Smrg{ 3397bf2eeab3Smrg 3398bf2eeab3Smrg ; 3399bf2eeab3Smrg return 0; 3400bf2eeab3Smrg} 3401bf2eeab3Smrg_ACEOF 3402576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then : 340314c0a534Smrg ac_cv_prog_cc_g=yes 3404bf2eeab3Smrgfi 3405bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3406bf2eeab3Smrgfi 3407bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 340814c0a534Smrgfi 3409bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3410bf2eeab3Smrg ac_c_werror_flag=$ac_save_c_werror_flag 341114c0a534Smrgfi 3412576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3413bf2eeab3Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 341414c0a534Smrgif test "$ac_test_CFLAGS" = set; then 341514c0a534Smrg CFLAGS=$ac_save_CFLAGS 341614c0a534Smrgelif test $ac_cv_prog_cc_g = yes; then 341714c0a534Smrg if test "$GCC" = yes; then 341814c0a534Smrg CFLAGS="-g -O2" 341914c0a534Smrg else 342014c0a534Smrg CFLAGS="-g" 342114c0a534Smrg fi 342214c0a534Smrgelse 342314c0a534Smrg if test "$GCC" = yes; then 342414c0a534Smrg CFLAGS="-O2" 342514c0a534Smrg else 342614c0a534Smrg CFLAGS= 342714c0a534Smrg fi 342814c0a534Smrgfi 3429576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3430bf2eeab3Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3431576bae58Smrgif ${ac_cv_prog_cc_c89+:} false; then : 3432bf2eeab3Smrg $as_echo_n "(cached) " >&6 343314c0a534Smrgelse 3434bf2eeab3Smrg ac_cv_prog_cc_c89=no 343514c0a534Smrgac_save_CC=$CC 3436576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 343714c0a534Smrg/* end confdefs.h. */ 343814c0a534Smrg#include <stdarg.h> 343914c0a534Smrg#include <stdio.h> 344014c0a534Smrg#include <sys/types.h> 344114c0a534Smrg#include <sys/stat.h> 344214c0a534Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 344314c0a534Smrgstruct buf { int x; }; 344414c0a534SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 344514c0a534Smrgstatic char *e (p, i) 344614c0a534Smrg char **p; 344714c0a534Smrg int i; 344814c0a534Smrg{ 344914c0a534Smrg return p[i]; 345014c0a534Smrg} 345114c0a534Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 345214c0a534Smrg{ 345314c0a534Smrg char *s; 345414c0a534Smrg va_list v; 345514c0a534Smrg va_start (v,p); 345614c0a534Smrg s = g (p, va_arg (v,int)); 345714c0a534Smrg va_end (v); 345814c0a534Smrg return s; 345914c0a534Smrg} 346014c0a534Smrg 346114c0a534Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 346214c0a534Smrg function prototypes and stuff, but not '\xHH' hex character constants. 346314c0a534Smrg These don't provoke an error unfortunately, instead are silently treated 3464bf2eeab3Smrg as 'x'. The following induces an error, until -std is added to get 346514c0a534Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 346614c0a534Smrg array size at least. It's necessary to write '\x00'==0 to get something 3467bf2eeab3Smrg that's true only with -std. */ 346814c0a534Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 346914c0a534Smrg 3470bf2eeab3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3471bf2eeab3Smrg inside strings and character constants. */ 3472bf2eeab3Smrg#define FOO(x) 'x' 3473bf2eeab3Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3474bf2eeab3Smrg 347514c0a534Smrgint test (int i, double x); 347614c0a534Smrgstruct s1 {int (*f) (int a);}; 347714c0a534Smrgstruct s2 {int (*f) (double a);}; 347814c0a534Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 347914c0a534Smrgint argc; 348014c0a534Smrgchar **argv; 348114c0a534Smrgint 348214c0a534Smrgmain () 348314c0a534Smrg{ 348414c0a534Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 348514c0a534Smrg ; 348614c0a534Smrg return 0; 348714c0a534Smrg} 348814c0a534Smrg_ACEOF 3489bf2eeab3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3490bf2eeab3Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 349114c0a534Smrgdo 349214c0a534Smrg CC="$ac_save_CC $ac_arg" 3493576bae58Smrg if ac_fn_c_try_compile "$LINENO"; then : 3494bf2eeab3Smrg ac_cv_prog_cc_c89=$ac_arg 349514c0a534Smrgfi 3496bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext 3497bf2eeab3Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 349814c0a534Smrgdone 3499bf2eeab3Smrgrm -f conftest.$ac_ext 350014c0a534SmrgCC=$ac_save_CC 350114c0a534Smrg 350214c0a534Smrgfi 3503bf2eeab3Smrg# AC_CACHE_VAL 3504bf2eeab3Smrgcase "x$ac_cv_prog_cc_c89" in 3505bf2eeab3Smrg x) 3506576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3507bf2eeab3Smrg$as_echo "none needed" >&6; } ;; 3508bf2eeab3Smrg xno) 3509576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3510bf2eeab3Smrg$as_echo "unsupported" >&6; } ;; 351114c0a534Smrg *) 3512bf2eeab3Smrg CC="$CC $ac_cv_prog_cc_c89" 3513576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3514bf2eeab3Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 351514c0a534Smrgesac 3516576bae58Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 351714c0a534Smrg 3518576bae58Smrgfi 351914c0a534Smrg 352014c0a534Smrgac_ext=c 352114c0a534Smrgac_cpp='$CPP $CPPFLAGS' 352214c0a534Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 352314c0a534Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 352414c0a534Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 352514c0a534Smrg 352614c0a534Smrgdepcc="$CC" am_compiler_list= 352714c0a534Smrg 3528576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3529bf2eeab3Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3530576bae58Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3531bf2eeab3Smrg $as_echo_n "(cached) " >&6 353214c0a534Smrgelse 353314c0a534Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 353414c0a534Smrg # We make a subdir and do the tests there. Otherwise we can end up 353514c0a534Smrg # making bogus files that we don't know about and never remove. For 353614c0a534Smrg # instance it was reported that on HP-UX the gcc test will end up 353714c0a534Smrg # making a dummy file named `D' -- because `-MD' means `put the output 353814c0a534Smrg # in D'. 353914c0a534Smrg mkdir conftest.dir 354014c0a534Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 354114c0a534Smrg # using a relative directory. 354214c0a534Smrg cp "$am_depcomp" conftest.dir 354314c0a534Smrg cd conftest.dir 354414c0a534Smrg # We will build objects and dependencies in a subdirectory because 354514c0a534Smrg # it helps to detect inapplicable dependency modes. For instance 354614c0a534Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 354714c0a534Smrg # side effect of compilation, but ICC will put the dependencies in 354814c0a534Smrg # the current directory while Tru64 will put them in the object 354914c0a534Smrg # directory. 355014c0a534Smrg mkdir sub 355114c0a534Smrg 355214c0a534Smrg am_cv_CC_dependencies_compiler_type=none 355314c0a534Smrg if test "$am_compiler_list" = ""; then 355414c0a534Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 355514c0a534Smrg fi 3556bf2eeab3Smrg am__universal=false 3557bf2eeab3Smrg case " $depcc " in #( 3558bf2eeab3Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3559bf2eeab3Smrg esac 3560bf2eeab3Smrg 356114c0a534Smrg for depmode in $am_compiler_list; do 356214c0a534Smrg # Setup a source with many dependencies, because some compilers 356314c0a534Smrg # like to wrap large dependency lists on column 80 (with \), and 356414c0a534Smrg # we should not choose a depcomp mode which is confused by this. 356514c0a534Smrg # 356614c0a534Smrg # We need to recreate these files for each test, as the compiler may 356714c0a534Smrg # overwrite some of them when testing with obscure command lines. 356814c0a534Smrg # This happens at least with the AIX C compiler. 356914c0a534Smrg : > sub/conftest.c 357014c0a534Smrg for i in 1 2 3 4 5 6; do 357114c0a534Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 357214c0a534Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 357314c0a534Smrg # Solaris 8's {/usr,}/bin/sh. 357414c0a534Smrg touch sub/conftst$i.h 357514c0a534Smrg done 357614c0a534Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 357714c0a534Smrg 3578bf2eeab3Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3579bf2eeab3Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3580bf2eeab3Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3581bf2eeab3Smrg # versions had trouble with output in subdirs 3582bf2eeab3Smrg am__obj=sub/conftest.${OBJEXT-o} 3583bf2eeab3Smrg am__minus_obj="-o $am__obj" 358414c0a534Smrg case $depmode in 3585bf2eeab3Smrg gcc) 3586bf2eeab3Smrg # This depmode causes a compiler race in universal mode. 3587bf2eeab3Smrg test "$am__universal" = false || continue 3588bf2eeab3Smrg ;; 358914c0a534Smrg nosideeffect) 359014c0a534Smrg # after this tag, mechanisms are not by side-effect, so they'll 359114c0a534Smrg # only be used when explicitly requested 359214c0a534Smrg if test "x$enable_dependency_tracking" = xyes; then 359314c0a534Smrg continue 359414c0a534Smrg else 359514c0a534Smrg break 359614c0a534Smrg fi 359714c0a534Smrg ;; 3598bf2eeab3Smrg msvisualcpp | msvcmsys) 3599bf2eeab3Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3600bf2eeab3Smrg # not run yet. These depmodes are late enough in the game, and 3601bf2eeab3Smrg # so weak that their functioning should not be impacted. 3602bf2eeab3Smrg am__obj=conftest.${OBJEXT-o} 3603bf2eeab3Smrg am__minus_obj= 3604bf2eeab3Smrg ;; 360514c0a534Smrg none) break ;; 360614c0a534Smrg esac 360714c0a534Smrg if depmode=$depmode \ 3608bf2eeab3Smrg source=sub/conftest.c object=$am__obj \ 360914c0a534Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3610bf2eeab3Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 361114c0a534Smrg >/dev/null 2>conftest.err && 3612bf2eeab3Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 361314c0a534Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3614bf2eeab3Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 361514c0a534Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 361614c0a534Smrg # icc doesn't choke on unknown options, it will just issue warnings 361714c0a534Smrg # or remarks (even with -Werror). So we grep stderr for any message 361814c0a534Smrg # that says an option was ignored or not supported. 361914c0a534Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 362014c0a534Smrg # icc: Command line warning: ignoring option '-M'; no argument required 362114c0a534Smrg # The diagnosis changed in icc 8.0: 362214c0a534Smrg # icc: Command line remark: option '-MP' not supported 362314c0a534Smrg if (grep 'ignoring option' conftest.err || 362414c0a534Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 362514c0a534Smrg am_cv_CC_dependencies_compiler_type=$depmode 362614c0a534Smrg break 362714c0a534Smrg fi 362814c0a534Smrg fi 362914c0a534Smrg done 363014c0a534Smrg 363114c0a534Smrg cd .. 363214c0a534Smrg rm -rf conftest.dir 363314c0a534Smrgelse 363414c0a534Smrg am_cv_CC_dependencies_compiler_type=none 363514c0a534Smrgfi 363614c0a534Smrg 363714c0a534Smrgfi 3638576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3639bf2eeab3Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 364014c0a534SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 364114c0a534Smrg 3642bf2eeab3Smrg if 364314c0a534Smrg test "x$enable_dependency_tracking" != xno \ 364414c0a534Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 364514c0a534Smrg am__fastdepCC_TRUE= 364614c0a534Smrg am__fastdepCC_FALSE='#' 364714c0a534Smrgelse 364814c0a534Smrg am__fastdepCC_TRUE='#' 364914c0a534Smrg am__fastdepCC_FALSE= 365014c0a534Smrgfi 365114c0a534Smrg 365214c0a534Smrg 3653576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3654576bae58Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3655576bae58Smrgif ${ac_cv_prog_cc_c99+:} false; then : 3656bf2eeab3Smrg $as_echo_n "(cached) " >&6 365714c0a534Smrgelse 3658576bae58Smrg ac_cv_prog_cc_c99=no 3659576bae58Smrgac_save_CC=$CC 3660576bae58Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661576bae58Smrg/* end confdefs.h. */ 3662576bae58Smrg#include <stdarg.h> 3663576bae58Smrg#include <stdbool.h> 3664576bae58Smrg#include <stdlib.h> 3665576bae58Smrg#include <wchar.h> 3666576bae58Smrg#include <stdio.h> 3667bf2eeab3Smrg 3668576bae58Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3669576bae58Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3670576bae58Smrg#define showlist(...) puts (#__VA_ARGS__) 3671576bae58Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3672576bae58Smrgstatic void 3673576bae58Smrgtest_varargs_macros (void) 3674576bae58Smrg{ 3675576bae58Smrg int x = 1234; 3676576bae58Smrg int y = 5678; 3677576bae58Smrg debug ("Flag"); 3678576bae58Smrg debug ("X = %d\n", x); 3679576bae58Smrg showlist (The first, second, and third items.); 3680576bae58Smrg report (x>y, "x is %d but y is %d", x, y); 3681576bae58Smrg} 368214c0a534Smrg 3683576bae58Smrg// Check long long types. 3684576bae58Smrg#define BIG64 18446744073709551615ull 3685576bae58Smrg#define BIG32 4294967295ul 3686576bae58Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3687576bae58Smrg#if !BIG_OK 3688576bae58Smrg your preprocessor is broken; 3689576bae58Smrg#endif 3690576bae58Smrg#if BIG_OK 3691576bae58Smrg#else 3692576bae58Smrg your preprocessor is broken; 3693576bae58Smrg#endif 3694576bae58Smrgstatic long long int bignum = -9223372036854775807LL; 3695576bae58Smrgstatic unsigned long long int ubignum = BIG64; 369614c0a534Smrg 3697576bae58Smrgstruct incomplete_array 3698576bae58Smrg{ 3699576bae58Smrg int datasize; 3700576bae58Smrg double data[]; 3701576bae58Smrg}; 370214c0a534Smrg 3703576bae58Smrgstruct named_init { 3704576bae58Smrg int number; 3705576bae58Smrg const wchar_t *name; 3706576bae58Smrg double average; 3707576bae58Smrg}; 370814c0a534Smrg 3709576bae58Smrgtypedef const char *ccp; 371014c0a534Smrg 3711576bae58Smrgstatic inline int 3712576bae58Smrgtest_restrict (ccp restrict text) 3713576bae58Smrg{ 3714576bae58Smrg // See if C++-style comments work. 3715576bae58Smrg // Iterate through items via the restricted pointer. 3716576bae58Smrg // Also check for declarations in for loops. 3717576bae58Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3718576bae58Smrg continue; 3719576bae58Smrg return 0; 3720576bae58Smrg} 372114c0a534Smrg 3722576bae58Smrg// Check varargs and va_copy. 3723576bae58Smrgstatic void 3724576bae58Smrgtest_varargs (const char *format, ...) 3725576bae58Smrg{ 3726576bae58Smrg va_list args; 3727576bae58Smrg va_start (args, format); 3728576bae58Smrg va_list args_copy; 3729576bae58Smrg va_copy (args_copy, args); 373014c0a534Smrg 3731576bae58Smrg const char *str; 3732576bae58Smrg int number; 3733576bae58Smrg float fnumber; 373414c0a534Smrg 3735576bae58Smrg while (*format) 3736576bae58Smrg { 3737576bae58Smrg switch (*format++) 3738576bae58Smrg { 3739576bae58Smrg case 's': // string 3740576bae58Smrg str = va_arg (args_copy, const char *); 3741576bae58Smrg break; 3742576bae58Smrg case 'd': // int 3743576bae58Smrg number = va_arg (args_copy, int); 3744576bae58Smrg break; 3745576bae58Smrg case 'f': // float 3746576bae58Smrg fnumber = va_arg (args_copy, double); 3747576bae58Smrg break; 3748576bae58Smrg default: 3749576bae58Smrg break; 3750576bae58Smrg } 3751576bae58Smrg } 3752576bae58Smrg va_end (args_copy); 3753576bae58Smrg va_end (args); 3754576bae58Smrg} 3755576bae58Smrg 3756576bae58Smrgint 3757576bae58Smrgmain () 3758576bae58Smrg{ 3759576bae58Smrg 3760576bae58Smrg // Check bool. 3761576bae58Smrg _Bool success = false; 3762576bae58Smrg 3763576bae58Smrg // Check restrict. 3764576bae58Smrg if (test_restrict ("String literal") == 0) 3765576bae58Smrg success = true; 3766576bae58Smrg char *restrict newvar = "Another string"; 3767576bae58Smrg 3768576bae58Smrg // Check varargs. 3769576bae58Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 3770576bae58Smrg test_varargs_macros (); 3771576bae58Smrg 3772576bae58Smrg // Check flexible array members. 3773576bae58Smrg struct incomplete_array *ia = 3774576bae58Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3775576bae58Smrg ia->datasize = 10; 3776576bae58Smrg for (int i = 0; i < ia->datasize; ++i) 3777576bae58Smrg ia->data[i] = i * 1.234; 3778576bae58Smrg 3779576bae58Smrg // Check named initializers. 3780576bae58Smrg struct named_init ni = { 3781576bae58Smrg .number = 34, 3782576bae58Smrg .name = L"Test wide string", 3783576bae58Smrg .average = 543.34343, 3784576bae58Smrg }; 3785576bae58Smrg 3786576bae58Smrg ni.number = 58; 3787576bae58Smrg 3788576bae58Smrg int dynamic_array[ni.number]; 3789576bae58Smrg dynamic_array[ni.number - 1] = 543; 3790576bae58Smrg 3791576bae58Smrg // work around unused variable warnings 3792576bae58Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3793576bae58Smrg || dynamic_array[ni.number - 1] != 543); 3794576bae58Smrg 3795576bae58Smrg ; 3796576bae58Smrg return 0; 3797576bae58Smrg} 3798576bae58Smrg_ACEOF 3799576bae58Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3800576bae58Smrgdo 3801576bae58Smrg CC="$ac_save_CC $ac_arg" 3802576bae58Smrg if ac_fn_c_try_compile "$LINENO"; then : 3803576bae58Smrg ac_cv_prog_cc_c99=$ac_arg 3804576bae58Smrgfi 3805576bae58Smrgrm -f core conftest.err conftest.$ac_objext 3806576bae58Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3807576bae58Smrgdone 3808576bae58Smrgrm -f conftest.$ac_ext 3809576bae58SmrgCC=$ac_save_CC 3810576bae58Smrg 3811576bae58Smrgfi 3812576bae58Smrg# AC_CACHE_VAL 3813576bae58Smrgcase "x$ac_cv_prog_cc_c99" in 3814576bae58Smrg x) 3815576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3816576bae58Smrg$as_echo "none needed" >&6; } ;; 3817576bae58Smrg xno) 3818576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3819576bae58Smrg$as_echo "unsupported" >&6; } ;; 3820576bae58Smrg *) 3821576bae58Smrg CC="$CC $ac_cv_prog_cc_c99" 3822576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3823576bae58Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3824576bae58Smrgesac 3825576bae58Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 3826576bae58Smrg 3827576bae58Smrgfi 3828576bae58Smrg 3829576bae58Smrg 3830576bae58Smrg 3831576bae58Smrgac_ext=c 3832576bae58Smrgac_cpp='$CPP $CPPFLAGS' 3833576bae58Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3834576bae58Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3835576bae58Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3836576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3837576bae58Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3838576bae58Smrg# On Suns, sometimes $CPP names a directory. 3839576bae58Smrgif test -n "$CPP" && test -d "$CPP"; then 3840576bae58Smrg CPP= 3841576bae58Smrgfi 3842576bae58Smrgif test -z "$CPP"; then 3843576bae58Smrg if ${ac_cv_prog_CPP+:} false; then : 3844576bae58Smrg $as_echo_n "(cached) " >&6 3845bf2eeab3Smrgelse 3846576bae58Smrg # Double quotes because CPP needs to be expanded 3847576bae58Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3848576bae58Smrg do 3849576bae58Smrg ac_preproc_ok=false 3850576bae58Smrgfor ac_c_preproc_warn_flag in '' yes 3851576bae58Smrgdo 3852576bae58Smrg # Use a header file that comes with gcc, so configuring glibc 3853576bae58Smrg # with a fresh cross-compiler works. 3854576bae58Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3855576bae58Smrg # <limits.h> exists even on freestanding compilers. 3856576bae58Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3857576bae58Smrg # not just through cpp. "Syntax error" is here to catch this case. 3858576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859576bae58Smrg/* end confdefs.h. */ 3860576bae58Smrg#ifdef __STDC__ 3861576bae58Smrg# include <limits.h> 3862576bae58Smrg#else 3863576bae58Smrg# include <assert.h> 3864576bae58Smrg#endif 3865576bae58Smrg Syntax error 3866576bae58Smrg_ACEOF 3867576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3868bf2eeab3Smrg 3869576bae58Smrgelse 3870bf2eeab3Smrg # Broken: fails on valid input. 3871bf2eeab3Smrgcontinue 3872bf2eeab3Smrgfi 3873576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3874bf2eeab3Smrg 3875bf2eeab3Smrg # OK, works on sane cases. Now check whether nonexistent headers 3876bf2eeab3Smrg # can be detected and how. 3877576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3878bf2eeab3Smrg/* end confdefs.h. */ 3879bf2eeab3Smrg#include <ac_nonexistent.h> 3880bf2eeab3Smrg_ACEOF 3881576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3882bf2eeab3Smrg # Broken: success on invalid input. 3883bf2eeab3Smrgcontinue 3884bf2eeab3Smrgelse 3885bf2eeab3Smrg # Passes both tests. 3886bf2eeab3Smrgac_preproc_ok=: 3887bf2eeab3Smrgbreak 3888bf2eeab3Smrgfi 3889576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3890bf2eeab3Smrg 3891bf2eeab3Smrgdone 3892bf2eeab3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3893576bae58Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3894576bae58Smrgif $ac_preproc_ok; then : 3895bf2eeab3Smrg break 3896bf2eeab3Smrgfi 3897bf2eeab3Smrg 3898bf2eeab3Smrg done 3899bf2eeab3Smrg ac_cv_prog_CPP=$CPP 3900bf2eeab3Smrg 3901bf2eeab3Smrgfi 3902bf2eeab3Smrg CPP=$ac_cv_prog_CPP 3903bf2eeab3Smrgelse 3904bf2eeab3Smrg ac_cv_prog_CPP=$CPP 3905bf2eeab3Smrgfi 3906576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3907bf2eeab3Smrg$as_echo "$CPP" >&6; } 3908bf2eeab3Smrgac_preproc_ok=false 3909bf2eeab3Smrgfor ac_c_preproc_warn_flag in '' yes 3910bf2eeab3Smrgdo 3911bf2eeab3Smrg # Use a header file that comes with gcc, so configuring glibc 3912bf2eeab3Smrg # with a fresh cross-compiler works. 3913bf2eeab3Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3914bf2eeab3Smrg # <limits.h> exists even on freestanding compilers. 3915bf2eeab3Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3916bf2eeab3Smrg # not just through cpp. "Syntax error" is here to catch this case. 3917576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3918bf2eeab3Smrg/* end confdefs.h. */ 3919bf2eeab3Smrg#ifdef __STDC__ 3920bf2eeab3Smrg# include <limits.h> 3921bf2eeab3Smrg#else 3922bf2eeab3Smrg# include <assert.h> 3923bf2eeab3Smrg#endif 3924bf2eeab3Smrg Syntax error 3925bf2eeab3Smrg_ACEOF 3926576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3927bf2eeab3Smrg 3928576bae58Smrgelse 3929bf2eeab3Smrg # Broken: fails on valid input. 3930bf2eeab3Smrgcontinue 3931bf2eeab3Smrgfi 3932576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3933bf2eeab3Smrg 3934bf2eeab3Smrg # OK, works on sane cases. Now check whether nonexistent headers 3935bf2eeab3Smrg # can be detected and how. 3936576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937bf2eeab3Smrg/* end confdefs.h. */ 3938bf2eeab3Smrg#include <ac_nonexistent.h> 3939bf2eeab3Smrg_ACEOF 3940576bae58Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3941bf2eeab3Smrg # Broken: success on invalid input. 3942bf2eeab3Smrgcontinue 3943bf2eeab3Smrgelse 3944bf2eeab3Smrg # Passes both tests. 3945bf2eeab3Smrgac_preproc_ok=: 3946bf2eeab3Smrgbreak 3947bf2eeab3Smrgfi 3948576bae58Smrgrm -f conftest.err conftest.i conftest.$ac_ext 3949bf2eeab3Smrg 3950bf2eeab3Smrgdone 3951bf2eeab3Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3952576bae58Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3953576bae58Smrgif $ac_preproc_ok; then : 3954576bae58Smrg 3955bf2eeab3Smrgelse 3956576bae58Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3957bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3958576bae58Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3959576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 3960bf2eeab3Smrgfi 3961bf2eeab3Smrg 3962bf2eeab3Smrgac_ext=c 3963bf2eeab3Smrgac_cpp='$CPP $CPPFLAGS' 3964bf2eeab3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3965bf2eeab3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3966bf2eeab3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3967bf2eeab3Smrg 3968bf2eeab3Smrg 3969576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3970bf2eeab3Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3971576bae58Smrgif ${ac_cv_path_GREP+:} false; then : 3972bf2eeab3Smrg $as_echo_n "(cached) " >&6 3973bf2eeab3Smrgelse 3974bf2eeab3Smrg if test -z "$GREP"; then 3975bf2eeab3Smrg ac_path_GREP_found=false 3976bf2eeab3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3977bf2eeab3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3978bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3979bf2eeab3Smrgdo 3980bf2eeab3Smrg IFS=$as_save_IFS 3981bf2eeab3Smrg test -z "$as_dir" && as_dir=. 3982576bae58Smrg for ac_prog in grep ggrep; do 3983bf2eeab3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3984bf2eeab3Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3985bf2eeab3Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3986bf2eeab3Smrg# Check for GNU ac_path_GREP and select it if it is found. 3987bf2eeab3Smrg # Check for GNU $ac_path_GREP 3988bf2eeab3Smrgcase `"$ac_path_GREP" --version 2>&1` in 3989bf2eeab3Smrg*GNU*) 3990bf2eeab3Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3991bf2eeab3Smrg*) 3992bf2eeab3Smrg ac_count=0 3993bf2eeab3Smrg $as_echo_n 0123456789 >"conftest.in" 3994bf2eeab3Smrg while : 3995bf2eeab3Smrg do 3996bf2eeab3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3997bf2eeab3Smrg mv "conftest.tmp" "conftest.in" 3998bf2eeab3Smrg cp "conftest.in" "conftest.nl" 3999bf2eeab3Smrg $as_echo 'GREP' >> "conftest.nl" 4000bf2eeab3Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4001bf2eeab3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4002576bae58Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4003bf2eeab3Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 4004bf2eeab3Smrg # Best one so far, save it but keep looking for a better one 4005bf2eeab3Smrg ac_cv_path_GREP="$ac_path_GREP" 4006bf2eeab3Smrg ac_path_GREP_max=$ac_count 4007bf2eeab3Smrg fi 4008bf2eeab3Smrg # 10*(2^10) chars as input seems more than enough 4009bf2eeab3Smrg test $ac_count -gt 10 && break 4010bf2eeab3Smrg done 4011bf2eeab3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4012bf2eeab3Smrgesac 4013bf2eeab3Smrg 4014bf2eeab3Smrg $ac_path_GREP_found && break 3 4015bf2eeab3Smrg done 4016bf2eeab3Smrg done 4017576bae58Smrg done 4018bf2eeab3SmrgIFS=$as_save_IFS 4019bf2eeab3Smrg if test -z "$ac_cv_path_GREP"; then 4020576bae58Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4021bf2eeab3Smrg fi 4022bf2eeab3Smrgelse 4023bf2eeab3Smrg ac_cv_path_GREP=$GREP 4024bf2eeab3Smrgfi 4025bf2eeab3Smrg 4026bf2eeab3Smrgfi 4027576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4028bf2eeab3Smrg$as_echo "$ac_cv_path_GREP" >&6; } 4029bf2eeab3Smrg GREP="$ac_cv_path_GREP" 4030bf2eeab3Smrg 4031bf2eeab3Smrg 4032576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4033bf2eeab3Smrg$as_echo_n "checking for egrep... " >&6; } 4034576bae58Smrgif ${ac_cv_path_EGREP+:} false; then : 4035bf2eeab3Smrg $as_echo_n "(cached) " >&6 4036bf2eeab3Smrgelse 4037bf2eeab3Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4038bf2eeab3Smrg then ac_cv_path_EGREP="$GREP -E" 4039bf2eeab3Smrg else 4040bf2eeab3Smrg if test -z "$EGREP"; then 4041bf2eeab3Smrg ac_path_EGREP_found=false 4042bf2eeab3Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4043bf2eeab3Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044bf2eeab3Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4045bf2eeab3Smrgdo 4046bf2eeab3Smrg IFS=$as_save_IFS 4047bf2eeab3Smrg test -z "$as_dir" && as_dir=. 4048576bae58Smrg for ac_prog in egrep; do 4049bf2eeab3Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4050bf2eeab3Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4051bf2eeab3Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4052bf2eeab3Smrg# Check for GNU ac_path_EGREP and select it if it is found. 4053bf2eeab3Smrg # Check for GNU $ac_path_EGREP 4054bf2eeab3Smrgcase `"$ac_path_EGREP" --version 2>&1` in 4055bf2eeab3Smrg*GNU*) 4056bf2eeab3Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4057bf2eeab3Smrg*) 4058bf2eeab3Smrg ac_count=0 4059bf2eeab3Smrg $as_echo_n 0123456789 >"conftest.in" 4060bf2eeab3Smrg while : 4061bf2eeab3Smrg do 4062bf2eeab3Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4063bf2eeab3Smrg mv "conftest.tmp" "conftest.in" 4064bf2eeab3Smrg cp "conftest.in" "conftest.nl" 4065bf2eeab3Smrg $as_echo 'EGREP' >> "conftest.nl" 4066bf2eeab3Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4067bf2eeab3Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4068576bae58Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4069bf2eeab3Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4070bf2eeab3Smrg # Best one so far, save it but keep looking for a better one 4071bf2eeab3Smrg ac_cv_path_EGREP="$ac_path_EGREP" 4072bf2eeab3Smrg ac_path_EGREP_max=$ac_count 4073bf2eeab3Smrg fi 4074bf2eeab3Smrg # 10*(2^10) chars as input seems more than enough 4075bf2eeab3Smrg test $ac_count -gt 10 && break 4076bf2eeab3Smrg done 4077bf2eeab3Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4078bf2eeab3Smrgesac 4079bf2eeab3Smrg 4080bf2eeab3Smrg $ac_path_EGREP_found && break 3 4081bf2eeab3Smrg done 4082bf2eeab3Smrg done 4083576bae58Smrg done 4084bf2eeab3SmrgIFS=$as_save_IFS 4085bf2eeab3Smrg if test -z "$ac_cv_path_EGREP"; then 4086576bae58Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4087bf2eeab3Smrg fi 4088bf2eeab3Smrgelse 4089bf2eeab3Smrg ac_cv_path_EGREP=$EGREP 4090bf2eeab3Smrgfi 4091bf2eeab3Smrg 4092bf2eeab3Smrg fi 4093bf2eeab3Smrgfi 4094576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4095bf2eeab3Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 4096bf2eeab3Smrg EGREP="$ac_cv_path_EGREP" 4097bf2eeab3Smrg 4098bf2eeab3Smrg 4099576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4100bf2eeab3Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 4101576bae58Smrgif ${ac_cv_header_stdc+:} false; then : 4102bf2eeab3Smrg $as_echo_n "(cached) " >&6 4103bf2eeab3Smrgelse 4104576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105bf2eeab3Smrg/* end confdefs.h. */ 4106bf2eeab3Smrg#include <stdlib.h> 4107bf2eeab3Smrg#include <stdarg.h> 4108bf2eeab3Smrg#include <string.h> 4109bf2eeab3Smrg#include <float.h> 4110bf2eeab3Smrg 4111bf2eeab3Smrgint 4112bf2eeab3Smrgmain () 4113bf2eeab3Smrg{ 4114bf2eeab3Smrg 4115bf2eeab3Smrg ; 4116bf2eeab3Smrg return 0; 4117bf2eeab3Smrg} 4118bf2eeab3Smrg_ACEOF 4119576bae58Smrgif ac_fn_c_try_compile "$LINENO"; then : 4120bf2eeab3Smrg ac_cv_header_stdc=yes 4121bf2eeab3Smrgelse 4122576bae58Smrg ac_cv_header_stdc=no 4123bf2eeab3Smrgfi 4124bf2eeab3Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4125bf2eeab3Smrg 4126bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then 4127bf2eeab3Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4128576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129bf2eeab3Smrg/* end confdefs.h. */ 4130bf2eeab3Smrg#include <string.h> 4131bf2eeab3Smrg 4132bf2eeab3Smrg_ACEOF 4133bf2eeab3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4134576bae58Smrg $EGREP "memchr" >/dev/null 2>&1; then : 4135576bae58Smrg 4136bf2eeab3Smrgelse 4137bf2eeab3Smrg ac_cv_header_stdc=no 4138bf2eeab3Smrgfi 4139bf2eeab3Smrgrm -f conftest* 4140bf2eeab3Smrg 4141bf2eeab3Smrgfi 4142bf2eeab3Smrg 4143bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then 4144bf2eeab3Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4145576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146bf2eeab3Smrg/* end confdefs.h. */ 4147bf2eeab3Smrg#include <stdlib.h> 4148bf2eeab3Smrg 4149bf2eeab3Smrg_ACEOF 4150bf2eeab3Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4151576bae58Smrg $EGREP "free" >/dev/null 2>&1; then : 4152576bae58Smrg 4153bf2eeab3Smrgelse 4154bf2eeab3Smrg ac_cv_header_stdc=no 4155bf2eeab3Smrgfi 4156bf2eeab3Smrgrm -f conftest* 4157bf2eeab3Smrg 4158bf2eeab3Smrgfi 4159bf2eeab3Smrg 4160bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then 4161bf2eeab3Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4162576bae58Smrg if test "$cross_compiling" = yes; then : 4163bf2eeab3Smrg : 4164bf2eeab3Smrgelse 4165576bae58Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166bf2eeab3Smrg/* end confdefs.h. */ 4167bf2eeab3Smrg#include <ctype.h> 4168bf2eeab3Smrg#include <stdlib.h> 4169bf2eeab3Smrg#if ((' ' & 0x0FF) == 0x020) 4170bf2eeab3Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4171bf2eeab3Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4172bf2eeab3Smrg#else 4173bf2eeab3Smrg# define ISLOWER(c) \ 4174bf2eeab3Smrg (('a' <= (c) && (c) <= 'i') \ 4175bf2eeab3Smrg || ('j' <= (c) && (c) <= 'r') \ 4176bf2eeab3Smrg || ('s' <= (c) && (c) <= 'z')) 4177bf2eeab3Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4178bf2eeab3Smrg#endif 4179bf2eeab3Smrg 4180bf2eeab3Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4181bf2eeab3Smrgint 4182bf2eeab3Smrgmain () 4183bf2eeab3Smrg{ 4184bf2eeab3Smrg int i; 4185bf2eeab3Smrg for (i = 0; i < 256; i++) 4186bf2eeab3Smrg if (XOR (islower (i), ISLOWER (i)) 4187bf2eeab3Smrg || toupper (i) != TOUPPER (i)) 4188bf2eeab3Smrg return 2; 4189bf2eeab3Smrg return 0; 4190bf2eeab3Smrg} 4191bf2eeab3Smrg_ACEOF 4192576bae58Smrgif ac_fn_c_try_run "$LINENO"; then : 4193bf2eeab3Smrg 4194576bae58Smrgelse 4195576bae58Smrg ac_cv_header_stdc=no 4196bf2eeab3Smrgfi 4197576bae58Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4198576bae58Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4199bf2eeab3Smrgfi 4200bf2eeab3Smrg 4201bf2eeab3Smrgfi 4202bf2eeab3Smrgfi 4203576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4204bf2eeab3Smrg$as_echo "$ac_cv_header_stdc" >&6; } 4205bf2eeab3Smrgif test $ac_cv_header_stdc = yes; then 4206bf2eeab3Smrg 4207576bae58Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4208bf2eeab3Smrg 4209bf2eeab3Smrgfi 4210bf2eeab3Smrg 4211bf2eeab3Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4212bf2eeab3Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4213bf2eeab3Smrg inttypes.h stdint.h unistd.h 4214576bae58Smrgdo : 4215576bae58Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4216576bae58Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4217576bae58Smrg" 4218576bae58Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4219bf2eeab3Smrg cat >>confdefs.h <<_ACEOF 4220bf2eeab3Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4221bf2eeab3Smrg_ACEOF 4222bf2eeab3Smrg 4223bf2eeab3Smrgfi 4224bf2eeab3Smrg 4225bf2eeab3Smrgdone 4226bf2eeab3Smrg 4227bf2eeab3Smrg 4228576bae58Smrg 4229576bae58Smrg 42301a054510Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 42311a054510Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 42321a054510Smrg CLANGCC="yes" 42331a054510Smrgelse 42341a054510Smrg CLANGCC="no" 42351a054510Smrgfi 42361a054510Smrg 42371a054510Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 42381a054510Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 42391a054510Smrg INTELCC="yes" 42401a054510Smrgelse 42411a054510Smrg INTELCC="no" 42421a054510Smrgfi 42431a054510Smrg 42441a054510Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 42451a054510Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 42461a054510Smrg SUNCC="yes" 42471a054510Smrgelse 42481a054510Smrg SUNCC="no" 42491a054510Smrgfi 42501a054510Smrg 42511a054510Smrg 42521a054510Smrg 42531a054510Smrg 4254576bae58Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4255576bae58Smrg if test -n "$ac_tool_prefix"; then 4256576bae58Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4257576bae58Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4258576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4259576bae58Smrg$as_echo_n "checking for $ac_word... " >&6; } 4260576bae58Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4261bf2eeab3Smrg $as_echo_n "(cached) " >&6 4262bf2eeab3Smrgelse 4263576bae58Smrg case $PKG_CONFIG in 4264576bae58Smrg [\\/]* | ?:[\\/]*) 4265576bae58Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4266576bae58Smrg ;; 4267576bae58Smrg *) 4268576bae58Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269576bae58Smrgfor as_dir in $PATH 4270bf2eeab3Smrgdo 4271576bae58Smrg IFS=$as_save_IFS 4272576bae58Smrg test -z "$as_dir" && as_dir=. 4273576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4274576bae58Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4275576bae58Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4276576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4277576bae58Smrg break 2 4278576bae58Smrg fi 4279576bae58Smrgdone 4280576bae58Smrg done 4281576bae58SmrgIFS=$as_save_IFS 4282576bae58Smrg 4283576bae58Smrg ;; 4284bf2eeab3Smrgesac 4285576bae58Smrgfi 4286576bae58SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4287576bae58Smrgif test -n "$PKG_CONFIG"; then 4288576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4289576bae58Smrg$as_echo "$PKG_CONFIG" >&6; } 4290bf2eeab3Smrgelse 4291576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4292576bae58Smrg$as_echo "no" >&6; } 4293bf2eeab3Smrgfi 4294bf2eeab3Smrg 4295bf2eeab3Smrg 4296bf2eeab3Smrgfi 4297576bae58Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4298576bae58Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4299576bae58Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4300576bae58Smrgset dummy pkg-config; ac_word=$2 4301576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4302576bae58Smrg$as_echo_n "checking for $ac_word... " >&6; } 4303576bae58Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4304576bae58Smrg $as_echo_n "(cached) " >&6 4305576bae58Smrgelse 4306576bae58Smrg case $ac_pt_PKG_CONFIG in 4307576bae58Smrg [\\/]* | ?:[\\/]*) 4308576bae58Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4309576bae58Smrg ;; 4310bf2eeab3Smrg *) 4311576bae58Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4312576bae58Smrgfor as_dir in $PATH 4313576bae58Smrgdo 4314576bae58Smrg IFS=$as_save_IFS 4315576bae58Smrg test -z "$as_dir" && as_dir=. 4316576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4317576bae58Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4318576bae58Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4319576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4320576bae58Smrg break 2 4321576bae58Smrg fi 4322576bae58Smrgdone 4323576bae58Smrg done 4324576bae58SmrgIFS=$as_save_IFS 4325576bae58Smrg 4326576bae58Smrg ;; 4327bf2eeab3Smrgesac 4328576bae58Smrgfi 4329576bae58Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4330576bae58Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4331576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4332576bae58Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4333576bae58Smrgelse 4334576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4335576bae58Smrg$as_echo "no" >&6; } 4336576bae58Smrgfi 4337bf2eeab3Smrg 4338576bae58Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4339576bae58Smrg PKG_CONFIG="" 4340576bae58Smrg else 4341576bae58Smrg case $cross_compiling:$ac_tool_warned in 4342576bae58Smrgyes:) 4343576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4344576bae58Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4345576bae58Smrgac_tool_warned=yes ;; 4346576bae58Smrgesac 4347576bae58Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4348576bae58Smrg fi 4349576bae58Smrgelse 4350576bae58Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4351576bae58Smrgfi 4352bf2eeab3Smrg 4353576bae58Smrgfi 4354576bae58Smrgif test -n "$PKG_CONFIG"; then 4355576bae58Smrg _pkg_min_version=0.9.0 4356576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4357576bae58Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4358576bae58Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4359576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4360576bae58Smrg$as_echo "yes" >&6; } 4361576bae58Smrg else 4362576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4363576bae58Smrg$as_echo "no" >&6; } 4364576bae58Smrg PKG_CONFIG="" 4365576bae58Smrg fi 4366bf2eeab3Smrg 4367576bae58Smrgfi 4368bf2eeab3Smrg# Make sure we can run config.sub. 4369bf2eeab3Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4370576bae58Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4371bf2eeab3Smrg 4372576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4373bf2eeab3Smrg$as_echo_n "checking build system type... " >&6; } 4374576bae58Smrgif ${ac_cv_build+:} false; then : 4375bf2eeab3Smrg $as_echo_n "(cached) " >&6 4376bf2eeab3Smrgelse 4377bf2eeab3Smrg ac_build_alias=$build_alias 4378bf2eeab3Smrgtest "x$ac_build_alias" = x && 4379bf2eeab3Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4380bf2eeab3Smrgtest "x$ac_build_alias" = x && 4381576bae58Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4382bf2eeab3Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4383576bae58Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4384bf2eeab3Smrg 4385bf2eeab3Smrgfi 4386576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4387bf2eeab3Smrg$as_echo "$ac_cv_build" >&6; } 4388bf2eeab3Smrgcase $ac_cv_build in 4389bf2eeab3Smrg*-*-*) ;; 4390576bae58Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4391bf2eeab3Smrgesac 4392bf2eeab3Smrgbuild=$ac_cv_build 4393bf2eeab3Smrgac_save_IFS=$IFS; IFS='-' 4394bf2eeab3Smrgset x $ac_cv_build 4395bf2eeab3Smrgshift 4396bf2eeab3Smrgbuild_cpu=$1 4397bf2eeab3Smrgbuild_vendor=$2 4398bf2eeab3Smrgshift; shift 4399bf2eeab3Smrg# Remember, the first character of IFS is used to create $*, 4400bf2eeab3Smrg# except with old shells: 4401bf2eeab3Smrgbuild_os=$* 4402bf2eeab3SmrgIFS=$ac_save_IFS 4403bf2eeab3Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4404bf2eeab3Smrg 4405bf2eeab3Smrg 4406576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4407bf2eeab3Smrg$as_echo_n "checking host system type... " >&6; } 4408576bae58Smrgif ${ac_cv_host+:} false; then : 4409bf2eeab3Smrg $as_echo_n "(cached) " >&6 4410bf2eeab3Smrgelse 4411bf2eeab3Smrg if test "x$host_alias" = x; then 4412bf2eeab3Smrg ac_cv_host=$ac_cv_build 4413bf2eeab3Smrgelse 4414bf2eeab3Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4415576bae58Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4416bf2eeab3Smrgfi 4417bf2eeab3Smrg 4418bf2eeab3Smrgfi 4419576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4420bf2eeab3Smrg$as_echo "$ac_cv_host" >&6; } 4421bf2eeab3Smrgcase $ac_cv_host in 4422bf2eeab3Smrg*-*-*) ;; 4423576bae58Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4424bf2eeab3Smrgesac 4425bf2eeab3Smrghost=$ac_cv_host 4426bf2eeab3Smrgac_save_IFS=$IFS; IFS='-' 4427bf2eeab3Smrgset x $ac_cv_host 4428bf2eeab3Smrgshift 4429bf2eeab3Smrghost_cpu=$1 4430bf2eeab3Smrghost_vendor=$2 4431bf2eeab3Smrgshift; shift 4432bf2eeab3Smrg# Remember, the first character of IFS is used to create $*, 4433bf2eeab3Smrg# except with old shells: 4434bf2eeab3Smrghost_os=$* 4435bf2eeab3SmrgIFS=$ac_save_IFS 4436bf2eeab3Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4437bf2eeab3Smrg 4438bf2eeab3Smrg 4439576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4440576bae58Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4441576bae58Smrgif ${ac_cv_path_SED+:} false; then : 4442bf2eeab3Smrg $as_echo_n "(cached) " >&6 4443bf2eeab3Smrgelse 4444576bae58Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4445576bae58Smrg for ac_i in 1 2 3 4 5 6 7; do 4446576bae58Smrg ac_script="$ac_script$as_nl$ac_script" 4447576bae58Smrg done 4448576bae58Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4449576bae58Smrg { ac_script=; unset ac_script;} 4450576bae58Smrg if test -z "$SED"; then 4451576bae58Smrg ac_path_SED_found=false 4452576bae58Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4453576bae58Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4454576bae58Smrgfor as_dir in $PATH 4455576bae58Smrgdo 4456576bae58Smrg IFS=$as_save_IFS 4457576bae58Smrg test -z "$as_dir" && as_dir=. 4458576bae58Smrg for ac_prog in sed gsed; do 4459576bae58Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4460576bae58Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4461576bae58Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4462576bae58Smrg# Check for GNU ac_path_SED and select it if it is found. 4463576bae58Smrg # Check for GNU $ac_path_SED 4464576bae58Smrgcase `"$ac_path_SED" --version 2>&1` in 4465576bae58Smrg*GNU*) 4466576bae58Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4467576bae58Smrg*) 4468576bae58Smrg ac_count=0 4469576bae58Smrg $as_echo_n 0123456789 >"conftest.in" 4470576bae58Smrg while : 4471576bae58Smrg do 4472576bae58Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4473576bae58Smrg mv "conftest.tmp" "conftest.in" 4474576bae58Smrg cp "conftest.in" "conftest.nl" 4475576bae58Smrg $as_echo '' >> "conftest.nl" 4476576bae58Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4477576bae58Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4478576bae58Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4479576bae58Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4480576bae58Smrg # Best one so far, save it but keep looking for a better one 4481576bae58Smrg ac_cv_path_SED="$ac_path_SED" 4482576bae58Smrg ac_path_SED_max=$ac_count 4483576bae58Smrg fi 4484576bae58Smrg # 10*(2^10) chars as input seems more than enough 4485576bae58Smrg test $ac_count -gt 10 && break 4486576bae58Smrg done 4487576bae58Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4488bf2eeab3Smrgesac 4489576bae58Smrg 4490576bae58Smrg $ac_path_SED_found && break 3 4491576bae58Smrg done 4492576bae58Smrg done 4493576bae58Smrg done 4494576bae58SmrgIFS=$as_save_IFS 4495576bae58Smrg if test -z "$ac_cv_path_SED"; then 4496576bae58Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4497576bae58Smrg fi 4498bf2eeab3Smrgelse 4499576bae58Smrg ac_cv_path_SED=$SED 4500bf2eeab3Smrgfi 4501bf2eeab3Smrg 4502bf2eeab3Smrgfi 4503576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4504576bae58Smrg$as_echo "$ac_cv_path_SED" >&6; } 4505576bae58Smrg SED="$ac_cv_path_SED" 4506576bae58Smrg rm -f conftest.sed 4507576bae58Smrg 4508576bae58Smrg 4509576bae58Smrg 4510576bae58Smrg 4511576bae58Smrg 45121a054510Smrg 4513576bae58Smrgif test "x$GCC" = xyes ; then 4514576bae58Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4515576bae58Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4516576bae58Smrg-Wbad-function-cast -Wformat=2" 4517576bae58Smrg case `$CC -dumpversion` in 4518576bae58Smrg 3.4.* | 4.*) 4519576bae58Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4520576bae58Smrg ;; 4521576bae58Smrg esac 4522576bae58Smrgelse 4523bf2eeab3Smrg if test "x$SUNCC" = "xyes"; then 4524bf2eeab3Smrg CWARNFLAGS="-v" 4525bf2eeab3Smrg fi 4526bf2eeab3Smrgfi 4527bf2eeab3Smrg 4528bf2eeab3Smrg 4529bf2eeab3Smrg 4530576bae58Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4531bf2eeab3Smrg 4532bf2eeab3Smrg 4533bf2eeab3Smrg 45341a054510Smrg 4535bf2eeab3Smrg# Check whether --enable-strict-compilation was given. 4536576bae58Smrgif test "${enable_strict_compilation+set}" = set; then : 4537bf2eeab3Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4538bf2eeab3Smrgelse 4539bf2eeab3Smrg STRICT_COMPILE=no 4540bf2eeab3Smrgfi 4541bf2eeab3Smrg 45421a054510Smrgif test "x$GCC" = xyes ; then 45431a054510Smrg STRICT_CFLAGS="-pedantic -Werror" 45441a054510Smrg # Add -Werror=attributes if supported (gcc 4.2 & later) 45451a054510Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 45461a054510Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 45471a054510Smrg save_CFLAGS="$CFLAGS" 45481a054510Smrg CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes" 45491a054510Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45501a054510Smrg/* end confdefs.h. */ 45511a054510Smrgreturn 0; 45521a054510Smrg_ACEOF 45531a054510Smrgif ac_fn_c_try_compile "$LINENO"; then : 45541a054510Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 45551a054510Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45561a054510Smrg$as_echo "yes" >&6; } 4557bf2eeab3Smrgelse 45581a054510Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45591a054510Smrg$as_echo "no" >&6; } 4560bf2eeab3Smrgfi 45611a054510Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 45621a054510Smrg CFLAGS="$save_CFLAGS" 45631a054510Smrgelif test "x$SUNCC" = "xyes"; then 45641a054510Smrg STRICT_CFLAGS="-errwarn" 45651a054510Smrgelif test "x$INTELCC" = "xyes"; then 45661a054510Smrg STRICT_CFLAGS="-Werror" 4567bf2eeab3Smrgfi 45681a054510Smrgif test "x$STRICT_COMPILE" = "xyes"; then 45691a054510Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4570bf2eeab3Smrgfi 45711a054510Smrg 4572bf2eeab3Smrg 4573bf2eeab3Smrg 4574bf2eeab3Smrg 4575bf2eeab3Smrg 4576bf2eeab3Smrgcat >>confdefs.h <<_ACEOF 4577bf2eeab3Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4578bf2eeab3Smrg_ACEOF 4579bf2eeab3Smrg 4580bf2eeab3Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4581bf2eeab3Smrg if test "x$PVM" = "x"; then 4582bf2eeab3Smrg PVM="0" 4583bf2eeab3Smrg fi 4584bf2eeab3Smrg 4585bf2eeab3Smrgcat >>confdefs.h <<_ACEOF 4586bf2eeab3Smrg#define PACKAGE_VERSION_MINOR $PVM 4587bf2eeab3Smrg_ACEOF 4588bf2eeab3Smrg 4589bf2eeab3Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4590bf2eeab3Smrg if test "x$PVP" = "x"; then 4591bf2eeab3Smrg PVP="0" 4592bf2eeab3Smrg fi 4593bf2eeab3Smrg 4594bf2eeab3Smrgcat >>confdefs.h <<_ACEOF 4595bf2eeab3Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4596bf2eeab3Smrg_ACEOF 4597bf2eeab3Smrg 4598bf2eeab3Smrg 4599bf2eeab3Smrg 4600576bae58SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4601576bae58Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4602576bae58Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4603bf2eeab3Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4604bf2eeab3Smrg 4605576bae58Smrg 4606576bae58Smrg 4607576bae58Smrg 4608576bae58Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4609576bae58SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4610576bae58Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4611576bae58Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4612576bae58Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4613576bae58Smrg 4614bf2eeab3Smrg 4615bf2eeab3Smrg 4616bf2eeab3Smrg 4617bf2eeab3Smrg 4618bf2eeab3Smrg 4619bf2eeab3Smrgif test x$APP_MAN_SUFFIX = x ; then 4620bf2eeab3Smrg APP_MAN_SUFFIX=1 4621bf2eeab3Smrgfi 4622bf2eeab3Smrgif test x$APP_MAN_DIR = x ; then 4623bf2eeab3Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4624bf2eeab3Smrgfi 4625bf2eeab3Smrg 4626bf2eeab3Smrgif test x$LIB_MAN_SUFFIX = x ; then 4627bf2eeab3Smrg LIB_MAN_SUFFIX=3 4628bf2eeab3Smrgfi 4629bf2eeab3Smrgif test x$LIB_MAN_DIR = x ; then 4630bf2eeab3Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4631bf2eeab3Smrgfi 4632bf2eeab3Smrg 4633bf2eeab3Smrgif test x$FILE_MAN_SUFFIX = x ; then 4634bf2eeab3Smrg case $host_os in 4635bf2eeab3Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4636bf2eeab3Smrg *) FILE_MAN_SUFFIX=5 ;; 4637bf2eeab3Smrg esac 4638bf2eeab3Smrgfi 4639bf2eeab3Smrgif test x$FILE_MAN_DIR = x ; then 4640bf2eeab3Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4641bf2eeab3Smrgfi 4642bf2eeab3Smrg 4643bf2eeab3Smrgif test x$MISC_MAN_SUFFIX = x ; then 4644bf2eeab3Smrg case $host_os in 4645bf2eeab3Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4646bf2eeab3Smrg *) MISC_MAN_SUFFIX=7 ;; 4647bf2eeab3Smrg esac 4648bf2eeab3Smrgfi 4649bf2eeab3Smrgif test x$MISC_MAN_DIR = x ; then 4650bf2eeab3Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4651bf2eeab3Smrgfi 4652bf2eeab3Smrg 4653bf2eeab3Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4654bf2eeab3Smrg case $host_os in 4655bf2eeab3Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4656bf2eeab3Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4657bf2eeab3Smrg esac 4658bf2eeab3Smrgfi 4659bf2eeab3Smrgif test x$DRIVER_MAN_DIR = x ; then 4660bf2eeab3Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4661bf2eeab3Smrgfi 4662bf2eeab3Smrg 4663bf2eeab3Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4664bf2eeab3Smrg case $host_os in 4665bf2eeab3Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4666bf2eeab3Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4667bf2eeab3Smrg esac 4668bf2eeab3Smrgfi 4669bf2eeab3Smrgif test x$ADMIN_MAN_DIR = x ; then 4670bf2eeab3Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4671bf2eeab3Smrgfi 4672bf2eeab3Smrg 4673bf2eeab3Smrg 4674bf2eeab3Smrg 4675bf2eeab3Smrg 4676bf2eeab3Smrg 4677bf2eeab3Smrg 4678bf2eeab3Smrg 4679bf2eeab3Smrg 4680bf2eeab3Smrg 4681bf2eeab3Smrg 4682bf2eeab3Smrg 4683bf2eeab3Smrg 4684bf2eeab3Smrg 4685bf2eeab3Smrg 4686bf2eeab3Smrg 4687576bae58SmrgXORG_MAN_PAGE="X Version 11" 4688bf2eeab3Smrg 4689576bae58SmrgMAN_SUBSTS="\ 4690576bae58Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4691576bae58Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4692576bae58Smrg -e 's|__xservername__|Xorg|g' \ 4693576bae58Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 4694576bae58Smrg -e 's|__projectroot__|\$(prefix)|g' \ 4695576bae58Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4696576bae58Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4697576bae58Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4698576bae58Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4699576bae58Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4700576bae58Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4701576bae58Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4702bf2eeab3Smrg 470314c0a534Smrg 470414c0a534Smrg 4705576bae58Smrg# Check whether --enable-silent-rules was given. 4706576bae58Smrgif test "${enable_silent_rules+set}" = set; then : 4707576bae58Smrg enableval=$enable_silent_rules; 470814c0a534Smrgfi 470914c0a534Smrg 4710576bae58Smrgcase $enable_silent_rules in 4711576bae58Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4712576bae58Smrgno) AM_DEFAULT_VERBOSITY=1;; 4713576bae58Smrg*) AM_DEFAULT_VERBOSITY=0;; 4714576bae58Smrgesac 4715576bae58SmrgAM_BACKSLASH='\' 4716576bae58Smrg 4717576bae58Smrg 4718576bae58Smrg 4719576bae58Smrgfor ac_func in mkstemp 4720576bae58Smrgdo : 4721576bae58Smrg ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 4722576bae58Smrgif test "x$ac_cv_func_mkstemp" = xyes; then : 4723576bae58Smrg cat >>confdefs.h <<_ACEOF 4724576bae58Smrg#define HAVE_MKSTEMP 1 4725576bae58Smrg_ACEOF 472614c0a534Smrg 472714c0a534Smrgfi 4728576bae58Smrgdone 4729576bae58Smrg 4730576bae58Smrg 4731576bae58Smrg# Checks for pkg-config packages 473214c0a534Smrg 473314c0a534Smrgpkg_failed=no 4734576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMPROXY" >&5 4735bf2eeab3Smrg$as_echo_n "checking for SMPROXY... " >&6; } 4736bf2eeab3Smrg 4737bf2eeab3Smrgif test -n "$SMPROXY_CFLAGS"; then 4738bf2eeab3Smrg pkg_cv_SMPROXY_CFLAGS="$SMPROXY_CFLAGS" 4739bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then 4740bf2eeab3Smrg if test -n "$PKG_CONFIG" && \ 47411a054510Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 47421a054510Smrg ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 474314c0a534Smrg ac_status=$? 4744576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4745576bae58Smrg test $ac_status = 0; }; then 47461a054510Smrg pkg_cv_SMPROXY_CFLAGS=`$PKG_CONFIG --cflags "sm ice xt xmuu" 2>/dev/null` 474714c0a534Smrgelse 474814c0a534Smrg pkg_failed=yes 474914c0a534Smrgfi 4750bf2eeab3Smrg else 4751bf2eeab3Smrg pkg_failed=untried 475214c0a534Smrgfi 4753bf2eeab3Smrgif test -n "$SMPROXY_LIBS"; then 4754bf2eeab3Smrg pkg_cv_SMPROXY_LIBS="$SMPROXY_LIBS" 4755bf2eeab3Smrg elif test -n "$PKG_CONFIG"; then 4756bf2eeab3Smrg if test -n "$PKG_CONFIG" && \ 47571a054510Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice xt xmuu\""; } >&5 47581a054510Smrg ($PKG_CONFIG --exists --print-errors "sm ice xt xmuu") 2>&5 475914c0a534Smrg ac_status=$? 4760576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4761576bae58Smrg test $ac_status = 0; }; then 47621a054510Smrg pkg_cv_SMPROXY_LIBS=`$PKG_CONFIG --libs "sm ice xt xmuu" 2>/dev/null` 476314c0a534Smrgelse 476414c0a534Smrg pkg_failed=yes 476514c0a534Smrgfi 4766bf2eeab3Smrg else 4767bf2eeab3Smrg pkg_failed=untried 476814c0a534Smrgfi 476914c0a534Smrg 477014c0a534Smrg 477114c0a534Smrg 477214c0a534Smrgif test $pkg_failed = yes; then 477314c0a534Smrg 477414c0a534Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 477514c0a534Smrg _pkg_short_errors_supported=yes 477614c0a534Smrgelse 477714c0a534Smrg _pkg_short_errors_supported=no 477814c0a534Smrgfi 477914c0a534Smrg if test $_pkg_short_errors_supported = yes; then 47801a054510Smrg SMPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice xt xmuu" 2>&1` 478114c0a534Smrg else 47821a054510Smrg SMPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice xt xmuu" 2>&1` 478314c0a534Smrg fi 478414c0a534Smrg # Put the nasty error message in config.log where it belongs 478514c0a534Smrg echo "$SMPROXY_PKG_ERRORS" >&5 478614c0a534Smrg 47871a054510Smrg as_fn_error $? "Package requirements (sm ice xt xmuu) were not met: 478814c0a534Smrg 478914c0a534Smrg$SMPROXY_PKG_ERRORS 479014c0a534Smrg 479114c0a534SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 479214c0a534Smrginstalled software in a non-standard prefix. 479314c0a534Smrg 479414c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS 479514c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config. 479614c0a534SmrgSee the pkg-config man page for more details. 4797576bae58Smrg" "$LINENO" 5 479814c0a534Smrgelif test $pkg_failed = untried; then 4799576bae58Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4800bf2eeab3Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4801576bae58Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 480214c0a534Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 480314c0a534Smrgpath to pkg-config. 480414c0a534Smrg 480514c0a534SmrgAlternatively, you may set the environment variables SMPROXY_CFLAGS 480614c0a534Smrgand SMPROXY_LIBS to avoid the need to call pkg-config. 480714c0a534SmrgSee the pkg-config man page for more details. 480814c0a534Smrg 4809bf2eeab3SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 4810576bae58SmrgSee \`config.log' for more details" "$LINENO" 5; } 481114c0a534Smrgelse 481214c0a534Smrg SMPROXY_CFLAGS=$pkg_cv_SMPROXY_CFLAGS 481314c0a534Smrg SMPROXY_LIBS=$pkg_cv_SMPROXY_LIBS 4814576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4815bf2eeab3Smrg$as_echo "yes" >&6; } 481614c0a534Smrg : 481714c0a534Smrgfi 481814c0a534Smrg 48191a054510Smrgac_config_files="$ac_config_files Makefile man/Makefile" 482014c0a534Smrg 482114c0a534Smrgcat >confcache <<\_ACEOF 482214c0a534Smrg# This file is a shell script that caches the results of configure 482314c0a534Smrg# tests run on this system so they can be shared between configure 482414c0a534Smrg# scripts and configure runs, see configure's option --config-cache. 482514c0a534Smrg# It is not useful on other systems. If it contains results you don't 482614c0a534Smrg# want to keep, you may remove or edit it. 482714c0a534Smrg# 482814c0a534Smrg# config.status only pays attention to the cache file if you give it 482914c0a534Smrg# the --recheck option to rerun configure. 483014c0a534Smrg# 483114c0a534Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 483214c0a534Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 483314c0a534Smrg# following values. 483414c0a534Smrg 483514c0a534Smrg_ACEOF 483614c0a534Smrg 483714c0a534Smrg# The following way of writing the cache mishandles newlines in values, 483814c0a534Smrg# but we know of no workaround that is simple, portable, and efficient. 4839bf2eeab3Smrg# So, we kill variables containing newlines. 484014c0a534Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 484114c0a534Smrg# and sets the high bit in the cache file unless we assign to the vars. 4842bf2eeab3Smrg( 4843bf2eeab3Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4844bf2eeab3Smrg eval ac_val=\$$ac_var 4845bf2eeab3Smrg case $ac_val in #( 4846bf2eeab3Smrg *${as_nl}*) 4847bf2eeab3Smrg case $ac_var in #( 4848576bae58Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4849bf2eeab3Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4850bf2eeab3Smrg esac 4851bf2eeab3Smrg case $ac_var in #( 4852bf2eeab3Smrg _ | IFS | as_nl) ;; #( 4853bf2eeab3Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4854576bae58Smrg *) { eval $ac_var=; unset $ac_var;} ;; 4855bf2eeab3Smrg esac ;; 4856bf2eeab3Smrg esac 4857bf2eeab3Smrg done 4858bf2eeab3Smrg 485914c0a534Smrg (set) 2>&1 | 4860bf2eeab3Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 4861bf2eeab3Smrg *${as_nl}ac_space=\ *) 4862576bae58Smrg # `set' does not quote correctly, so add quotes: double-quote 4863576bae58Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 486414c0a534Smrg sed -n \ 486514c0a534Smrg "s/'/'\\\\''/g; 486614c0a534Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4867bf2eeab3Smrg ;; #( 486814c0a534Smrg *) 486914c0a534Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 4870bf2eeab3Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 487114c0a534Smrg ;; 4872bf2eeab3Smrg esac | 4873bf2eeab3Smrg sort 4874bf2eeab3Smrg) | 487514c0a534Smrg sed ' 4876bf2eeab3Smrg /^ac_cv_env_/b end 487714c0a534Smrg t clear 4878bf2eeab3Smrg :clear 487914c0a534Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 488014c0a534Smrg t end 4881bf2eeab3Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4882bf2eeab3Smrg :end' >>confcache 4883bf2eeab3Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4884bf2eeab3Smrg if test -w "$cache_file"; then 4885576bae58Smrg if test "x$cache_file" != "x/dev/null"; then 4886576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4887bf2eeab3Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 4888576bae58Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 4889576bae58Smrg cat confcache >"$cache_file" 4890576bae58Smrg else 4891576bae58Smrg case $cache_file in #( 4892576bae58Smrg */* | ?:*) 4893576bae58Smrg mv -f confcache "$cache_file"$$ && 4894576bae58Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 4895576bae58Smrg *) 4896576bae58Smrg mv -f confcache "$cache_file" ;; 4897576bae58Smrg esac 4898576bae58Smrg fi 4899576bae58Smrg fi 490014c0a534Smrg else 4901576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4902bf2eeab3Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 490314c0a534Smrg fi 490414c0a534Smrgfi 490514c0a534Smrgrm -f confcache 490614c0a534Smrg 490714c0a534Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 490814c0a534Smrg# Let make expand exec_prefix. 490914c0a534Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 491014c0a534Smrg 491114c0a534SmrgDEFS=-DHAVE_CONFIG_H 491214c0a534Smrg 491314c0a534Smrgac_libobjs= 491414c0a534Smrgac_ltlibobjs= 4915576bae58SmrgU= 491614c0a534Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 491714c0a534Smrg # 1. Remove the extension, and $U if already installed. 4918bf2eeab3Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4919bf2eeab3Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4920bf2eeab3Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4921bf2eeab3Smrg # will be set to the directory where LIBOBJS objects are built. 4922576bae58Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4923576bae58Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 492414c0a534Smrgdone 492514c0a534SmrgLIBOBJS=$ac_libobjs 492614c0a534Smrg 492714c0a534SmrgLTLIBOBJS=$ac_ltlibobjs 492814c0a534Smrg 492914c0a534Smrg 4930bf2eeab3Smrg if test -n "$EXEEXT"; then 4931bf2eeab3Smrg am__EXEEXT_TRUE= 4932bf2eeab3Smrg am__EXEEXT_FALSE='#' 4933bf2eeab3Smrgelse 4934bf2eeab3Smrg am__EXEEXT_TRUE='#' 4935bf2eeab3Smrg am__EXEEXT_FALSE= 4936bf2eeab3Smrgfi 4937bf2eeab3Smrg 493814c0a534Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 4939576bae58Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 4940576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 494114c0a534Smrgfi 494214c0a534Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 4943576bae58Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 4944576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 494514c0a534Smrgfi 494614c0a534Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 4947576bae58Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 4948576bae58SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 494914c0a534Smrgfi 495014c0a534Smrg 4951576bae58Smrg: "${CONFIG_STATUS=./config.status}" 4952bf2eeab3Smrgac_write_fail=0 495314c0a534Smrgac_clean_files_save=$ac_clean_files 495414c0a534Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 4955576bae58Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4956bf2eeab3Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4957576bae58Smrgas_write_fail=0 4958576bae58Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 495914c0a534Smrg#! $SHELL 496014c0a534Smrg# Generated by $as_me. 496114c0a534Smrg# Run this file to recreate the current configuration. 496214c0a534Smrg# Compiler output produced by configure, useful for debugging 496314c0a534Smrg# configure, is in config.log if it exists. 496414c0a534Smrg 496514c0a534Smrgdebug=false 496614c0a534Smrgac_cs_recheck=false 496714c0a534Smrgac_cs_silent=false 496814c0a534Smrg 4969576bae58SmrgSHELL=\${CONFIG_SHELL-$SHELL} 4970576bae58Smrgexport SHELL 4971576bae58Smrg_ASEOF 4972576bae58Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4973576bae58Smrg## -------------------- ## 4974576bae58Smrg## M4sh Initialization. ## 4975576bae58Smrg## -------------------- ## 497614c0a534Smrg 4977bf2eeab3Smrg# Be more Bourne compatible 4978bf2eeab3SmrgDUALCASE=1; export DUALCASE # for MKS sh 4979576bae58Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 498014c0a534Smrg emulate sh 498114c0a534Smrg NULLCMD=: 4982bf2eeab3Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 498314c0a534Smrg # is contrary to our usage. Disable this feature. 498414c0a534Smrg alias -g '${1+"$@"}'='"$@"' 4985bf2eeab3Smrg setopt NO_GLOB_SUBST 4986bf2eeab3Smrgelse 4987576bae58Smrg case `(set -o) 2>/dev/null` in #( 4988576bae58Smrg *posix*) : 4989576bae58Smrg set -o posix ;; #( 4990576bae58Smrg *) : 4991576bae58Smrg ;; 4992bf2eeab3Smrgesac 4993bf2eeab3Smrgfi 4994bf2eeab3Smrg 4995bf2eeab3Smrg 4996bf2eeab3Smrgas_nl=' 4997bf2eeab3Smrg' 4998bf2eeab3Smrgexport as_nl 4999bf2eeab3Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 5000bf2eeab3Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5001bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5002bf2eeab3Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5003576bae58Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 5004576bae58Smrg# but without wasting forks for bash or zsh. 5005576bae58Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 5006576bae58Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5007576bae58Smrg as_echo='print -r --' 5008576bae58Smrg as_echo_n='print -rn --' 5009576bae58Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5010bf2eeab3Smrg as_echo='printf %s\n' 5011bf2eeab3Smrg as_echo_n='printf %s' 5012bf2eeab3Smrgelse 5013bf2eeab3Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5014bf2eeab3Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5015bf2eeab3Smrg as_echo_n='/usr/ucb/echo -n' 5016bf2eeab3Smrg else 5017bf2eeab3Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5018bf2eeab3Smrg as_echo_n_body='eval 5019bf2eeab3Smrg arg=$1; 5020576bae58Smrg case $arg in #( 5021bf2eeab3Smrg *"$as_nl"*) 5022bf2eeab3Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5023bf2eeab3Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5024bf2eeab3Smrg esac; 5025bf2eeab3Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5026bf2eeab3Smrg ' 5027bf2eeab3Smrg export as_echo_n_body 5028bf2eeab3Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 5029bf2eeab3Smrg fi 5030bf2eeab3Smrg export as_echo_body 5031bf2eeab3Smrg as_echo='sh -c $as_echo_body as_echo' 5032bf2eeab3Smrgfi 5033bf2eeab3Smrg 5034bf2eeab3Smrg# The user is always right. 5035bf2eeab3Smrgif test "${PATH_SEPARATOR+set}" != set; then 5036bf2eeab3Smrg PATH_SEPARATOR=: 5037bf2eeab3Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5038bf2eeab3Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5039bf2eeab3Smrg PATH_SEPARATOR=';' 5040bf2eeab3Smrg } 504114c0a534Smrgfi 504214c0a534Smrg 504314c0a534Smrg 5044bf2eeab3Smrg# IFS 5045bf2eeab3Smrg# We need space, tab and new line, in precisely that order. Quoting is 5046bf2eeab3Smrg# there to prevent editors from complaining about space-tab. 5047bf2eeab3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5048bf2eeab3Smrg# splitting by setting IFS to empty value.) 5049bf2eeab3SmrgIFS=" "" $as_nl" 5050bf2eeab3Smrg 5051bf2eeab3Smrg# Find who we are. Look in the path if we contain no directory separator. 5052576bae58Smrgas_myself= 5053576bae58Smrgcase $0 in #(( 5054bf2eeab3Smrg *[\\/]* ) as_myself=$0 ;; 5055bf2eeab3Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5056bf2eeab3Smrgfor as_dir in $PATH 5057bf2eeab3Smrgdo 5058bf2eeab3Smrg IFS=$as_save_IFS 5059bf2eeab3Smrg test -z "$as_dir" && as_dir=. 5060576bae58Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5061576bae58Smrg done 5062bf2eeab3SmrgIFS=$as_save_IFS 5063bf2eeab3Smrg 5064bf2eeab3Smrg ;; 5065bf2eeab3Smrgesac 5066bf2eeab3Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5067bf2eeab3Smrg# in which case we are not to be found in the path. 5068bf2eeab3Smrgif test "x$as_myself" = x; then 5069bf2eeab3Smrg as_myself=$0 5070bf2eeab3Smrgfi 5071bf2eeab3Smrgif test ! -f "$as_myself"; then 5072bf2eeab3Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5073576bae58Smrg exit 1 5074bf2eeab3Smrgfi 5075bf2eeab3Smrg 5076576bae58Smrg# Unset variables that we do not need and which cause bugs (e.g. in 5077576bae58Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5078576bae58Smrg# suppresses any "Segmentation fault" message there. '((' could 5079576bae58Smrg# trigger a bug in pdksh 5.2.14. 5080576bae58Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 5081576bae58Smrgdo eval test x\${$as_var+set} = xset \ 5082576bae58Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5083bf2eeab3Smrgdone 508414c0a534SmrgPS1='$ ' 508514c0a534SmrgPS2='> ' 508614c0a534SmrgPS4='+ ' 508714c0a534Smrg 508814c0a534Smrg# NLS nuisances. 5089bf2eeab3SmrgLC_ALL=C 5090bf2eeab3Smrgexport LC_ALL 5091bf2eeab3SmrgLANGUAGE=C 5092bf2eeab3Smrgexport LANGUAGE 509314c0a534Smrg 5094576bae58Smrg# CDPATH. 5095576bae58Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5096576bae58Smrg 5097576bae58Smrg 5098576bae58Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 5099576bae58Smrg# ---------------------------------------- 5100576bae58Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5101576bae58Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5102576bae58Smrg# script with STATUS, using 1 if that was 0. 5103576bae58Smrgas_fn_error () 5104576bae58Smrg{ 5105576bae58Smrg as_status=$1; test $as_status -eq 0 && as_status=1 5106576bae58Smrg if test "$4"; then 5107576bae58Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5108576bae58Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5109576bae58Smrg fi 5110576bae58Smrg $as_echo "$as_me: error: $2" >&2 5111576bae58Smrg as_fn_exit $as_status 5112576bae58Smrg} # as_fn_error 5113576bae58Smrg 5114576bae58Smrg 5115576bae58Smrg# as_fn_set_status STATUS 5116576bae58Smrg# ----------------------- 5117576bae58Smrg# Set $? to STATUS, without forking. 5118576bae58Smrgas_fn_set_status () 5119576bae58Smrg{ 5120576bae58Smrg return $1 5121576bae58Smrg} # as_fn_set_status 5122576bae58Smrg 5123576bae58Smrg# as_fn_exit STATUS 5124576bae58Smrg# ----------------- 5125576bae58Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5126576bae58Smrgas_fn_exit () 5127576bae58Smrg{ 5128576bae58Smrg set +e 5129576bae58Smrg as_fn_set_status $1 5130576bae58Smrg exit $1 5131576bae58Smrg} # as_fn_exit 5132576bae58Smrg 5133576bae58Smrg# as_fn_unset VAR 5134576bae58Smrg# --------------- 5135576bae58Smrg# Portably unset VAR. 5136576bae58Smrgas_fn_unset () 5137576bae58Smrg{ 5138576bae58Smrg { eval $1=; unset $1;} 5139576bae58Smrg} 5140576bae58Smrgas_unset=as_fn_unset 5141576bae58Smrg# as_fn_append VAR VALUE 5142576bae58Smrg# ---------------------- 5143576bae58Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 5144576bae58Smrg# advantage of any shell optimizations that allow amortized linear growth over 5145576bae58Smrg# repeated appends, instead of the typical quadratic growth present in naive 5146576bae58Smrg# implementations. 5147576bae58Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5148576bae58Smrg eval 'as_fn_append () 5149576bae58Smrg { 5150576bae58Smrg eval $1+=\$2 5151576bae58Smrg }' 5152576bae58Smrgelse 5153576bae58Smrg as_fn_append () 5154576bae58Smrg { 5155576bae58Smrg eval $1=\$$1\$2 5156576bae58Smrg } 5157576bae58Smrgfi # as_fn_append 5158576bae58Smrg 5159576bae58Smrg# as_fn_arith ARG... 5160576bae58Smrg# ------------------ 5161576bae58Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 5162576bae58Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 5163576bae58Smrg# must be portable across $(()) and expr. 5164576bae58Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5165576bae58Smrg eval 'as_fn_arith () 5166576bae58Smrg { 5167576bae58Smrg as_val=$(( $* )) 5168576bae58Smrg }' 5169576bae58Smrgelse 5170576bae58Smrg as_fn_arith () 5171576bae58Smrg { 5172576bae58Smrg as_val=`expr "$@" || test $? -eq 1` 5173576bae58Smrg } 5174576bae58Smrgfi # as_fn_arith 5175576bae58Smrg 5176576bae58Smrg 5177bf2eeab3Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5178bf2eeab3Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 517914c0a534Smrg as_expr=expr 518014c0a534Smrgelse 518114c0a534Smrg as_expr=false 518214c0a534Smrgfi 518314c0a534Smrg 5184bf2eeab3Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 518514c0a534Smrg as_basename=basename 518614c0a534Smrgelse 518714c0a534Smrg as_basename=false 518814c0a534Smrgfi 518914c0a534Smrg 5190576bae58Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5191576bae58Smrg as_dirname=dirname 5192576bae58Smrgelse 5193576bae58Smrg as_dirname=false 5194576bae58Smrgfi 519514c0a534Smrg 5196bf2eeab3Smrgas_me=`$as_basename -- "$0" || 519714c0a534Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 519814c0a534Smrg X"$0" : 'X\(//\)$' \| \ 5199bf2eeab3Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5200bf2eeab3Smrg$as_echo X/"$0" | 5201bf2eeab3Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5202bf2eeab3Smrg s//\1/ 5203bf2eeab3Smrg q 5204bf2eeab3Smrg } 5205bf2eeab3Smrg /^X\/\(\/\/\)$/{ 5206bf2eeab3Smrg s//\1/ 5207bf2eeab3Smrg q 5208bf2eeab3Smrg } 5209bf2eeab3Smrg /^X\/\(\/\).*/{ 5210bf2eeab3Smrg s//\1/ 5211bf2eeab3Smrg q 5212bf2eeab3Smrg } 5213bf2eeab3Smrg s/.*/./; q'` 521414c0a534Smrg 5215576bae58Smrg# Avoid depending upon Character Ranges. 5216576bae58Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5217576bae58Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5218576bae58Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5219576bae58Smrgas_cr_digits='0123456789' 5220576bae58Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 522114c0a534Smrg 5222bf2eeab3SmrgECHO_C= ECHO_N= ECHO_T= 5223576bae58Smrgcase `echo -n x` in #((((( 5224bf2eeab3Smrg-n*) 5225576bae58Smrg case `echo 'xy\c'` in 5226bf2eeab3Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5227576bae58Smrg xy) ECHO_C='\c';; 5228576bae58Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5229576bae58Smrg ECHO_T=' ';; 5230bf2eeab3Smrg esac;; 5231bf2eeab3Smrg*) 5232bf2eeab3Smrg ECHO_N='-n';; 5233bf2eeab3Smrgesac 523414c0a534Smrg 523514c0a534Smrgrm -f conf$$ conf$$.exe conf$$.file 5236bf2eeab3Smrgif test -d conf$$.dir; then 5237bf2eeab3Smrg rm -f conf$$.dir/conf$$.file 5238bf2eeab3Smrgelse 5239bf2eeab3Smrg rm -f conf$$.dir 5240bf2eeab3Smrg mkdir conf$$.dir 2>/dev/null 5241bf2eeab3Smrgfi 5242bf2eeab3Smrgif (echo >conf$$.file) 2>/dev/null; then 5243bf2eeab3Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 524414c0a534Smrg as_ln_s='ln -s' 5245bf2eeab3Smrg # ... but there are two gotchas: 5246bf2eeab3Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5247bf2eeab3Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5248bf2eeab3Smrg # In both cases, we have to default to `cp -p'. 5249bf2eeab3Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5250bf2eeab3Smrg as_ln_s='cp -p' 5251bf2eeab3Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5252bf2eeab3Smrg as_ln_s=ln 5253bf2eeab3Smrg else 5254bf2eeab3Smrg as_ln_s='cp -p' 525514c0a534Smrg fi 525614c0a534Smrgelse 525714c0a534Smrg as_ln_s='cp -p' 525814c0a534Smrgfi 5259bf2eeab3Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5260bf2eeab3Smrgrmdir conf$$.dir 2>/dev/null 526114c0a534Smrg 5262576bae58Smrg 5263576bae58Smrg# as_fn_mkdir_p 5264576bae58Smrg# ------------- 5265576bae58Smrg# Create "$as_dir" as a directory, including parents if necessary. 5266576bae58Smrgas_fn_mkdir_p () 5267576bae58Smrg{ 5268576bae58Smrg 5269576bae58Smrg case $as_dir in #( 5270576bae58Smrg -*) as_dir=./$as_dir;; 5271576bae58Smrg esac 5272576bae58Smrg test -d "$as_dir" || eval $as_mkdir_p || { 5273576bae58Smrg as_dirs= 5274576bae58Smrg while :; do 5275576bae58Smrg case $as_dir in #( 5276576bae58Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5277576bae58Smrg *) as_qdir=$as_dir;; 5278576bae58Smrg esac 5279576bae58Smrg as_dirs="'$as_qdir' $as_dirs" 5280576bae58Smrg as_dir=`$as_dirname -- "$as_dir" || 5281576bae58Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5282576bae58Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5283576bae58Smrg X"$as_dir" : 'X\(//\)$' \| \ 5284576bae58Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5285576bae58Smrg$as_echo X"$as_dir" | 5286576bae58Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5287576bae58Smrg s//\1/ 5288576bae58Smrg q 5289576bae58Smrg } 5290576bae58Smrg /^X\(\/\/\)[^/].*/{ 5291576bae58Smrg s//\1/ 5292576bae58Smrg q 5293576bae58Smrg } 5294576bae58Smrg /^X\(\/\/\)$/{ 5295576bae58Smrg s//\1/ 5296576bae58Smrg q 5297576bae58Smrg } 5298576bae58Smrg /^X\(\/\).*/{ 5299576bae58Smrg s//\1/ 5300576bae58Smrg q 5301576bae58Smrg } 5302576bae58Smrg s/.*/./; q'` 5303576bae58Smrg test -d "$as_dir" && break 5304576bae58Smrg done 5305576bae58Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 5306576bae58Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5307576bae58Smrg 5308576bae58Smrg 5309576bae58Smrg} # as_fn_mkdir_p 531014c0a534Smrgif mkdir -p . 2>/dev/null; then 5311576bae58Smrg as_mkdir_p='mkdir -p "$as_dir"' 531214c0a534Smrgelse 531314c0a534Smrg test -d ./-p && rmdir ./-p 531414c0a534Smrg as_mkdir_p=false 531514c0a534Smrgfi 531614c0a534Smrg 5317bf2eeab3Smrgif test -x / >/dev/null 2>&1; then 5318bf2eeab3Smrg as_test_x='test -x' 5319bf2eeab3Smrgelse 5320bf2eeab3Smrg if ls -dL / >/dev/null 2>&1; then 5321bf2eeab3Smrg as_ls_L_option=L 5322bf2eeab3Smrg else 5323bf2eeab3Smrg as_ls_L_option= 5324bf2eeab3Smrg fi 5325bf2eeab3Smrg as_test_x=' 5326bf2eeab3Smrg eval sh -c '\'' 5327bf2eeab3Smrg if test -d "$1"; then 5328bf2eeab3Smrg test -d "$1/."; 5329bf2eeab3Smrg else 5330576bae58Smrg case $1 in #( 5331bf2eeab3Smrg -*)set "./$1";; 5332bf2eeab3Smrg esac; 5333576bae58Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5334bf2eeab3Smrg ???[sx]*):;;*)false;;esac;fi 5335bf2eeab3Smrg '\'' sh 5336bf2eeab3Smrg ' 5337bf2eeab3Smrgfi 5338bf2eeab3Smrgas_executable_p=$as_test_x 533914c0a534Smrg 534014c0a534Smrg# Sed expression to map a string onto a valid CPP name. 534114c0a534Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 534214c0a534Smrg 534314c0a534Smrg# Sed expression to map a string onto a valid variable name. 534414c0a534Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534514c0a534Smrg 534614c0a534Smrg 534714c0a534Smrgexec 6>&1 5348576bae58Smrg## ----------------------------------- ## 5349576bae58Smrg## Main body of $CONFIG_STATUS script. ## 5350576bae58Smrg## ----------------------------------- ## 5351576bae58Smrg_ASEOF 5352576bae58Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 535314c0a534Smrg 5354576bae58Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5355576bae58Smrg# Save the log message, to keep $0 and so on meaningful, and to 535614c0a534Smrg# report actual input values of CONFIG_FILES etc. instead of their 5357bf2eeab3Smrg# values after options handling. 5358bf2eeab3Smrgac_log=" 53591a054510SmrgThis file was extended by smproxy $as_me 1.0.5, which was 5360576bae58Smrggenerated by GNU Autoconf 2.68. Invocation command line was 536114c0a534Smrg 536214c0a534Smrg CONFIG_FILES = $CONFIG_FILES 536314c0a534Smrg CONFIG_HEADERS = $CONFIG_HEADERS 536414c0a534Smrg CONFIG_LINKS = $CONFIG_LINKS 536514c0a534Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 536614c0a534Smrg $ $0 $@ 536714c0a534Smrg 5368bf2eeab3Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5369bf2eeab3Smrg" 5370bf2eeab3Smrg 537114c0a534Smrg_ACEOF 537214c0a534Smrg 5373bf2eeab3Smrgcase $ac_config_files in *" 5374bf2eeab3Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5375bf2eeab3Smrgesac 537614c0a534Smrg 5377bf2eeab3Smrgcase $ac_config_headers in *" 5378bf2eeab3Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5379bf2eeab3Smrgesac 538014c0a534Smrg 538114c0a534Smrg 5382bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5383bf2eeab3Smrg# Files that config.status was made for. 5384bf2eeab3Smrgconfig_files="$ac_config_files" 5385bf2eeab3Smrgconfig_headers="$ac_config_headers" 5386bf2eeab3Smrgconfig_commands="$ac_config_commands" 538714c0a534Smrg 5388bf2eeab3Smrg_ACEOF 538914c0a534Smrg 5390bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 539114c0a534Smrgac_cs_usage="\ 5392576bae58Smrg\`$as_me' instantiates files and other configuration actions 5393576bae58Smrgfrom templates according to the current configuration. Unless the files 5394576bae58Smrgand actions are specified as TAGs, all are instantiated by default. 539514c0a534Smrg 5396576bae58SmrgUsage: $0 [OPTION]... [TAG]... 539714c0a534Smrg 539814c0a534Smrg -h, --help print this help, then exit 5399bf2eeab3Smrg -V, --version print version number and configuration settings, then exit 5400576bae58Smrg --config print configuration, then exit 5401bf2eeab3Smrg -q, --quiet, --silent 5402bf2eeab3Smrg do not print progress messages 540314c0a534Smrg -d, --debug don't remove temporary files 540414c0a534Smrg --recheck update $as_me by reconfiguring in the same conditions 5405bf2eeab3Smrg --file=FILE[:TEMPLATE] 5406bf2eeab3Smrg instantiate the configuration file FILE 5407bf2eeab3Smrg --header=FILE[:TEMPLATE] 5408bf2eeab3Smrg instantiate the configuration header FILE 540914c0a534Smrg 541014c0a534SmrgConfiguration files: 541114c0a534Smrg$config_files 541214c0a534Smrg 541314c0a534SmrgConfiguration headers: 541414c0a534Smrg$config_headers 541514c0a534Smrg 541614c0a534SmrgConfiguration commands: 541714c0a534Smrg$config_commands 541814c0a534Smrg 5419576bae58SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 542014c0a534Smrg 5421bf2eeab3Smrg_ACEOF 5422bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5423576bae58Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 542414c0a534Smrgac_cs_version="\\ 54251a054510Smrgsmproxy config.status 1.0.5 5426576bae58Smrgconfigured by $0, generated by GNU Autoconf 2.68, 5427576bae58Smrg with options \\"\$ac_cs_config\\" 542814c0a534Smrg 5429576bae58SmrgCopyright (C) 2010 Free Software Foundation, Inc. 543014c0a534SmrgThis config.status script is free software; the Free Software Foundation 543114c0a534Smrggives unlimited permission to copy, distribute and modify it." 5432bf2eeab3Smrg 5433bf2eeab3Smrgac_pwd='$ac_pwd' 5434bf2eeab3Smrgsrcdir='$srcdir' 5435bf2eeab3SmrgINSTALL='$INSTALL' 5436bf2eeab3SmrgMKDIR_P='$MKDIR_P' 5437bf2eeab3SmrgAWK='$AWK' 5438bf2eeab3Smrgtest -n "\$AWK" || AWK=awk 543914c0a534Smrg_ACEOF 544014c0a534Smrg 5441bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5442bf2eeab3Smrg# The default lists apply if the user does not specify any file. 544314c0a534Smrgac_need_defaults=: 544414c0a534Smrgwhile test $# != 0 544514c0a534Smrgdo 544614c0a534Smrg case $1 in 5447576bae58Smrg --*=?*) 5448bf2eeab3Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5449bf2eeab3Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 545014c0a534Smrg ac_shift=: 545114c0a534Smrg ;; 5452576bae58Smrg --*=) 5453576bae58Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5454576bae58Smrg ac_optarg= 5455576bae58Smrg ac_shift=: 5456576bae58Smrg ;; 5457bf2eeab3Smrg *) 545814c0a534Smrg ac_option=$1 545914c0a534Smrg ac_optarg=$2 546014c0a534Smrg ac_shift=shift 546114c0a534Smrg ;; 546214c0a534Smrg esac 546314c0a534Smrg 546414c0a534Smrg case $ac_option in 546514c0a534Smrg # Handling of the options. 546614c0a534Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 546714c0a534Smrg ac_cs_recheck=: ;; 5468bf2eeab3Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5469bf2eeab3Smrg $as_echo "$ac_cs_version"; exit ;; 5470576bae58Smrg --config | --confi | --conf | --con | --co | --c ) 5471576bae58Smrg $as_echo "$ac_cs_config"; exit ;; 5472bf2eeab3Smrg --debug | --debu | --deb | --de | --d | -d ) 547314c0a534Smrg debug=: ;; 547414c0a534Smrg --file | --fil | --fi | --f ) 547514c0a534Smrg $ac_shift 5476bf2eeab3Smrg case $ac_optarg in 5477bf2eeab3Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5478576bae58Smrg '') as_fn_error $? "missing file argument" ;; 5479bf2eeab3Smrg esac 5480576bae58Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 548114c0a534Smrg ac_need_defaults=false;; 548214c0a534Smrg --header | --heade | --head | --hea ) 548314c0a534Smrg $ac_shift 5484bf2eeab3Smrg case $ac_optarg in 5485bf2eeab3Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5486bf2eeab3Smrg esac 5487576bae58Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 548814c0a534Smrg ac_need_defaults=false;; 5489bf2eeab3Smrg --he | --h) 5490bf2eeab3Smrg # Conflict between --help and --header 5491576bae58Smrg as_fn_error $? "ambiguous option: \`$1' 5492576bae58SmrgTry \`$0 --help' for more information.";; 5493bf2eeab3Smrg --help | --hel | -h ) 5494bf2eeab3Smrg $as_echo "$ac_cs_usage"; exit ;; 549514c0a534Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 549614c0a534Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 549714c0a534Smrg ac_cs_silent=: ;; 549814c0a534Smrg 549914c0a534Smrg # This is an error. 5500576bae58Smrg -*) as_fn_error $? "unrecognized option: \`$1' 5501576bae58SmrgTry \`$0 --help' for more information." ;; 550214c0a534Smrg 5503576bae58Smrg *) as_fn_append ac_config_targets " $1" 5504bf2eeab3Smrg ac_need_defaults=false ;; 550514c0a534Smrg 550614c0a534Smrg esac 550714c0a534Smrg shift 550814c0a534Smrgdone 550914c0a534Smrg 551014c0a534Smrgac_configure_extra_args= 551114c0a534Smrg 551214c0a534Smrgif $ac_cs_silent; then 551314c0a534Smrg exec 6>/dev/null 551414c0a534Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 551514c0a534Smrgfi 551614c0a534Smrg 551714c0a534Smrg_ACEOF 5518bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 551914c0a534Smrgif \$ac_cs_recheck; then 5520bf2eeab3Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5521bf2eeab3Smrg shift 5522bf2eeab3Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5523bf2eeab3Smrg CONFIG_SHELL='$SHELL' 5524bf2eeab3Smrg export CONFIG_SHELL 5525bf2eeab3Smrg exec "\$@" 552614c0a534Smrgfi 552714c0a534Smrg 552814c0a534Smrg_ACEOF 5529bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5530bf2eeab3Smrgexec 5>>config.log 5531bf2eeab3Smrg{ 5532bf2eeab3Smrg echo 5533bf2eeab3Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5534bf2eeab3Smrg## Running $as_me. ## 5535bf2eeab3Smrg_ASBOX 5536bf2eeab3Smrg $as_echo "$ac_log" 5537bf2eeab3Smrg} >&5 553814c0a534Smrg 5539bf2eeab3Smrg_ACEOF 5540bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 554114c0a534Smrg# 5542bf2eeab3Smrg# INIT-COMMANDS 554314c0a534Smrg# 554414c0a534SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 554514c0a534Smrg 554614c0a534Smrg_ACEOF 554714c0a534Smrg 5548bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 554914c0a534Smrg 5550bf2eeab3Smrg# Handling of arguments. 555114c0a534Smrgfor ac_config_target in $ac_config_targets 555214c0a534Smrgdo 5553bf2eeab3Smrg case $ac_config_target in 5554bf2eeab3Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5555bf2eeab3Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5556bf2eeab3Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 55571a054510Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 5558bf2eeab3Smrg 5559576bae58Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 556014c0a534Smrg esac 556114c0a534Smrgdone 556214c0a534Smrg 5563bf2eeab3Smrg 556414c0a534Smrg# If the user did not use the arguments to specify the items to instantiate, 556514c0a534Smrg# then the envvar interface is used. Set only those that are not. 556614c0a534Smrg# We use the long form for the default assignment because of an extremely 556714c0a534Smrg# bizarre bug on SunOS 4.1.3. 556814c0a534Smrgif $ac_need_defaults; then 556914c0a534Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 557014c0a534Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 557114c0a534Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 557214c0a534Smrgfi 557314c0a534Smrg 557414c0a534Smrg# Have a temporary directory for convenience. Make it in the build tree 5575bf2eeab3Smrg# simply because there is no reason against having it here, and in addition, 557614c0a534Smrg# creating and moving files from /tmp can sometimes cause problems. 5577bf2eeab3Smrg# Hook for its removal unless debugging. 5578bf2eeab3Smrg# Note that there is a small window in which the directory will not be cleaned: 5579bf2eeab3Smrg# after its creation but before its name has been assigned to `$tmp'. 558014c0a534Smrg$debug || 558114c0a534Smrg{ 5582576bae58Smrg tmp= ac_tmp= 5583bf2eeab3Smrg trap 'exit_status=$? 5584576bae58Smrg : "${ac_tmp:=$tmp}" 5585576bae58Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5586bf2eeab3Smrg' 0 5587576bae58Smrg trap 'as_fn_exit 1' 1 2 13 15 558814c0a534Smrg} 558914c0a534Smrg# Create a (secure) tmp directory for tmp files. 559014c0a534Smrg 559114c0a534Smrg{ 5592bf2eeab3Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5593576bae58Smrg test -d "$tmp" 559414c0a534Smrg} || 559514c0a534Smrg{ 5596bf2eeab3Smrg tmp=./conf$$-$RANDOM 5597bf2eeab3Smrg (umask 077 && mkdir "$tmp") 5598576bae58Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5599576bae58Smrgac_tmp=$tmp 560014c0a534Smrg 5601bf2eeab3Smrg# Set up the scripts for CONFIG_FILES section. 5602bf2eeab3Smrg# No need to generate them if there are no CONFIG_FILES. 5603bf2eeab3Smrg# This happens for instance with `./config.status config.h'. 5604bf2eeab3Smrgif test -n "$CONFIG_FILES"; then 5605bf2eeab3Smrg 5606bf2eeab3Smrg 5607576bae58Smrgac_cr=`echo X | tr X '\015'` 5608576bae58Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 5609576bae58Smrg# But we know of no other shell where ac_cr would be empty at this 5610576bae58Smrg# point, so we can use a bashism as a fallback. 5611576bae58Smrgif test "x$ac_cr" = x; then 5612576bae58Smrg eval ac_cr=\$\'\\r\' 5613576bae58Smrgfi 5614bf2eeab3Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5615bf2eeab3Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5616bf2eeab3Smrg ac_cs_awk_cr='\\r' 5617bf2eeab3Smrgelse 5618bf2eeab3Smrg ac_cs_awk_cr=$ac_cr 5619bf2eeab3Smrgfi 5620bf2eeab3Smrg 5621576bae58Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 562214c0a534Smrg_ACEOF 562314c0a534Smrg 562414c0a534Smrg 5625bf2eeab3Smrg{ 5626bf2eeab3Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 5627bf2eeab3Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5628bf2eeab3Smrg echo "_ACEOF" 5629bf2eeab3Smrg} >conf$$subs.sh || 5630576bae58Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5631576bae58Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5632bf2eeab3Smrgac_delim='%!_!# ' 5633bf2eeab3Smrgfor ac_last_try in false false false false false :; do 5634bf2eeab3Smrg . ./conf$$subs.sh || 5635576bae58Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 563614c0a534Smrg 5637bf2eeab3Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5638bf2eeab3Smrg if test $ac_delim_n = $ac_delim_num; then 5639bf2eeab3Smrg break 5640bf2eeab3Smrg elif $ac_last_try; then 5641576bae58Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5642bf2eeab3Smrg else 5643bf2eeab3Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5644bf2eeab3Smrg fi 5645bf2eeab3Smrgdone 5646bf2eeab3Smrgrm -f conf$$subs.sh 564714c0a534Smrg 5648bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5649576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 565014c0a534Smrg_ACEOF 5651bf2eeab3Smrgsed -n ' 5652bf2eeab3Smrgh 5653bf2eeab3Smrgs/^/S["/; s/!.*/"]=/ 5654bf2eeab3Smrgp 5655bf2eeab3Smrgg 5656bf2eeab3Smrgs/^[^!]*!// 5657bf2eeab3Smrg:repl 5658bf2eeab3Smrgt repl 5659bf2eeab3Smrgs/'"$ac_delim"'$// 5660bf2eeab3Smrgt delim 5661bf2eeab3Smrg:nl 5662bf2eeab3Smrgh 5663576bae58Smrgs/\(.\{148\}\)..*/\1/ 5664bf2eeab3Smrgt more1 5665bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5666bf2eeab3Smrgp 5667bf2eeab3Smrgn 5668bf2eeab3Smrgb repl 5669bf2eeab3Smrg:more1 5670bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5671bf2eeab3Smrgp 5672bf2eeab3Smrgg 5673bf2eeab3Smrgs/.\{148\}// 5674bf2eeab3Smrgt nl 5675bf2eeab3Smrg:delim 5676bf2eeab3Smrgh 5677576bae58Smrgs/\(.\{148\}\)..*/\1/ 5678bf2eeab3Smrgt more2 5679bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 5680bf2eeab3Smrgp 5681bf2eeab3Smrgb 5682bf2eeab3Smrg:more2 5683bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5684bf2eeab3Smrgp 5685bf2eeab3Smrgg 5686bf2eeab3Smrgs/.\{148\}// 5687bf2eeab3Smrgt delim 5688bf2eeab3Smrg' <conf$$subs.awk | sed ' 5689bf2eeab3Smrg/^[^""]/{ 5690bf2eeab3Smrg N 5691bf2eeab3Smrg s/\n// 5692bf2eeab3Smrg} 5693bf2eeab3Smrg' >>$CONFIG_STATUS || ac_write_fail=1 5694bf2eeab3Smrgrm -f conf$$subs.awk 5695bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5696bf2eeab3Smrg_ACAWK 5697576bae58Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5698bf2eeab3Smrg for (key in S) S_is_set[key] = 1 5699bf2eeab3Smrg FS = "" 570014c0a534Smrg 5701bf2eeab3Smrg} 5702bf2eeab3Smrg{ 5703bf2eeab3Smrg line = $ 0 5704bf2eeab3Smrg nfields = split(line, field, "@") 5705bf2eeab3Smrg substed = 0 5706bf2eeab3Smrg len = length(field[1]) 5707bf2eeab3Smrg for (i = 2; i < nfields; i++) { 5708bf2eeab3Smrg key = field[i] 5709bf2eeab3Smrg keylen = length(key) 5710bf2eeab3Smrg if (S_is_set[key]) { 5711bf2eeab3Smrg value = S[key] 5712bf2eeab3Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5713bf2eeab3Smrg len += length(value) + length(field[++i]) 5714bf2eeab3Smrg substed = 1 5715bf2eeab3Smrg } else 5716bf2eeab3Smrg len += 1 + keylen 5717bf2eeab3Smrg } 5718bf2eeab3Smrg 5719bf2eeab3Smrg print line 5720bf2eeab3Smrg} 5721bf2eeab3Smrg 5722bf2eeab3Smrg_ACAWK 5723bf2eeab3Smrg_ACEOF 5724bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5725bf2eeab3Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5726bf2eeab3Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5727bf2eeab3Smrgelse 5728bf2eeab3Smrg cat 5729576bae58Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 5730576bae58Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5731bf2eeab3Smrg_ACEOF 5732bf2eeab3Smrg 5733576bae58Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5734576bae58Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5735bf2eeab3Smrg# trailing colons and then remove the whole line if VPATH becomes empty 5736bf2eeab3Smrg# (actually we leave an empty line to preserve line numbers). 5737bf2eeab3Smrgif test "x$srcdir" = x.; then 5738576bae58Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5739576bae58Smrgh 5740576bae58Smrgs/// 5741576bae58Smrgs/^/:/ 5742576bae58Smrgs/[ ]*$/:/ 5743576bae58Smrgs/:\$(srcdir):/:/g 5744576bae58Smrgs/:\${srcdir}:/:/g 5745576bae58Smrgs/:@srcdir@:/:/g 5746576bae58Smrgs/^:*// 5747bf2eeab3Smrgs/:*$// 5748576bae58Smrgx 5749576bae58Smrgs/\(=[ ]*\).*/\1/ 5750576bae58SmrgG 5751576bae58Smrgs/\n// 5752bf2eeab3Smrgs/^[^=]*=[ ]*$// 5753bf2eeab3Smrg}' 5754bf2eeab3Smrgfi 5755bf2eeab3Smrg 5756bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 575714c0a534Smrgfi # test -n "$CONFIG_FILES" 575814c0a534Smrg 5759bf2eeab3Smrg# Set up the scripts for CONFIG_HEADERS section. 5760bf2eeab3Smrg# No need to generate them if there are no CONFIG_HEADERS. 5761bf2eeab3Smrg# This happens for instance with `./config.status Makefile'. 5762bf2eeab3Smrgif test -n "$CONFIG_HEADERS"; then 5763576bae58Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 5764bf2eeab3SmrgBEGIN { 576514c0a534Smrg_ACEOF 5766bf2eeab3Smrg 5767bf2eeab3Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 5768bf2eeab3Smrg# here-document in config.status, that substitutes the proper values into 5769bf2eeab3Smrg# config.h.in to produce config.h. 5770bf2eeab3Smrg 5771bf2eeab3Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 5772bf2eeab3Smrg# handling of long lines. 5773bf2eeab3Smrgac_delim='%!_!# ' 5774bf2eeab3Smrgfor ac_last_try in false false :; do 5775576bae58Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 5776576bae58Smrg if test -z "$ac_tt"; then 5777bf2eeab3Smrg break 5778bf2eeab3Smrg elif $ac_last_try; then 5779576bae58Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5780bf2eeab3Smrg else 5781bf2eeab3Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5782bf2eeab3Smrg fi 5783bf2eeab3Smrgdone 5784bf2eeab3Smrg 5785bf2eeab3Smrg# For the awk script, D is an array of macro values keyed by name, 5786bf2eeab3Smrg# likewise P contains macro parameters if any. Preserve backslash 5787bf2eeab3Smrg# newline sequences. 5788bf2eeab3Smrg 5789bf2eeab3Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5790bf2eeab3Smrgsed -n ' 5791bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g 5792bf2eeab3Smrgt rset 5793bf2eeab3Smrg:rset 5794bf2eeab3Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 5795bf2eeab3Smrgt def 5796bf2eeab3Smrgd 5797bf2eeab3Smrg:def 5798bf2eeab3Smrgs/\\$// 5799bf2eeab3Smrgt bsnl 5800bf2eeab3Smrgs/["\\]/\\&/g 5801bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5802bf2eeab3SmrgD["\1"]=" \3"/p 5803bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5804bf2eeab3Smrgd 5805bf2eeab3Smrg:bsnl 5806bf2eeab3Smrgs/["\\]/\\&/g 5807bf2eeab3Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5808bf2eeab3SmrgD["\1"]=" \3\\\\\\n"\\/p 5809bf2eeab3Smrgt cont 5810bf2eeab3Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5811bf2eeab3Smrgt cont 5812bf2eeab3Smrgd 5813bf2eeab3Smrg:cont 5814bf2eeab3Smrgn 5815bf2eeab3Smrgs/.\{148\}/&'"$ac_delim"'/g 5816bf2eeab3Smrgt clear 5817bf2eeab3Smrg:clear 5818bf2eeab3Smrgs/\\$// 5819bf2eeab3Smrgt bsnlc 5820bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 5821bf2eeab3Smrgd 5822bf2eeab3Smrg:bsnlc 5823bf2eeab3Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5824bf2eeab3Smrgb cont 5825bf2eeab3Smrg' <confdefs.h | sed ' 5826bf2eeab3Smrgs/'"$ac_delim"'/"\\\ 5827bf2eeab3Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 5828bf2eeab3Smrg 5829bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5830bf2eeab3Smrg for (key in D) D_is_set[key] = 1 5831bf2eeab3Smrg FS = "" 5832bf2eeab3Smrg} 5833bf2eeab3Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5834bf2eeab3Smrg line = \$ 0 5835bf2eeab3Smrg split(line, arg, " ") 5836bf2eeab3Smrg if (arg[1] == "#") { 5837bf2eeab3Smrg defundef = arg[2] 5838bf2eeab3Smrg mac1 = arg[3] 5839bf2eeab3Smrg } else { 5840bf2eeab3Smrg defundef = substr(arg[1], 2) 5841bf2eeab3Smrg mac1 = arg[2] 5842bf2eeab3Smrg } 5843bf2eeab3Smrg split(mac1, mac2, "(") #) 5844bf2eeab3Smrg macro = mac2[1] 5845bf2eeab3Smrg prefix = substr(line, 1, index(line, defundef) - 1) 5846bf2eeab3Smrg if (D_is_set[macro]) { 5847bf2eeab3Smrg # Preserve the white space surrounding the "#". 5848bf2eeab3Smrg print prefix "define", macro P[macro] D[macro] 5849bf2eeab3Smrg next 5850bf2eeab3Smrg } else { 5851bf2eeab3Smrg # Replace #undef with comments. This is necessary, for example, 5852bf2eeab3Smrg # in the case of _POSIX_SOURCE, which is predefined and required 5853bf2eeab3Smrg # on some systems where configure will not decide to define it. 5854bf2eeab3Smrg if (defundef == "undef") { 5855bf2eeab3Smrg print "/*", prefix defundef, macro, "*/" 5856bf2eeab3Smrg next 5857bf2eeab3Smrg } 5858bf2eeab3Smrg } 5859bf2eeab3Smrg} 5860bf2eeab3Smrg{ print } 5861bf2eeab3Smrg_ACAWK 5862bf2eeab3Smrg_ACEOF 5863bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5864576bae58Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 5865bf2eeab3Smrgfi # test -n "$CONFIG_HEADERS" 5866bf2eeab3Smrg 5867bf2eeab3Smrg 5868bf2eeab3Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 5869bf2eeab3Smrgshift 5870bf2eeab3Smrgfor ac_tag 5871bf2eeab3Smrgdo 5872bf2eeab3Smrg case $ac_tag in 5873bf2eeab3Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 5874bf2eeab3Smrg esac 5875bf2eeab3Smrg case $ac_mode$ac_tag in 5876bf2eeab3Smrg :[FHL]*:*);; 5877576bae58Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 5878bf2eeab3Smrg :[FH]-) ac_tag=-:-;; 5879bf2eeab3Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5880bf2eeab3Smrg esac 5881bf2eeab3Smrg ac_save_IFS=$IFS 5882bf2eeab3Smrg IFS=: 5883bf2eeab3Smrg set x $ac_tag 5884bf2eeab3Smrg IFS=$ac_save_IFS 5885bf2eeab3Smrg shift 5886bf2eeab3Smrg ac_file=$1 5887bf2eeab3Smrg shift 5888bf2eeab3Smrg 5889bf2eeab3Smrg case $ac_mode in 5890bf2eeab3Smrg :L) ac_source=$1;; 5891bf2eeab3Smrg :[FH]) 5892bf2eeab3Smrg ac_file_inputs= 5893bf2eeab3Smrg for ac_f 5894bf2eeab3Smrg do 5895bf2eeab3Smrg case $ac_f in 5896576bae58Smrg -) ac_f="$ac_tmp/stdin";; 5897bf2eeab3Smrg *) # Look for the file first in the build tree, then in the source tree 5898bf2eeab3Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 5899bf2eeab3Smrg # because $ac_f cannot contain `:'. 5900bf2eeab3Smrg test -f "$ac_f" || 5901bf2eeab3Smrg case $ac_f in 5902bf2eeab3Smrg [\\/$]*) false;; 5903bf2eeab3Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5904bf2eeab3Smrg esac || 5905576bae58Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 5906bf2eeab3Smrg esac 5907bf2eeab3Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 5908576bae58Smrg as_fn_append ac_file_inputs " '$ac_f'" 5909bf2eeab3Smrg done 5910bf2eeab3Smrg 5911bf2eeab3Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 5912bf2eeab3Smrg # use $as_me), people would be surprised to read: 5913bf2eeab3Smrg # /* config.h. Generated by config.status. */ 5914bf2eeab3Smrg configure_input='Generated from '` 5915bf2eeab3Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 5916bf2eeab3Smrg `' by configure.' 5917bf2eeab3Smrg if test x"$ac_file" != x-; then 5918bf2eeab3Smrg configure_input="$ac_file. $configure_input" 5919576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 5920bf2eeab3Smrg$as_echo "$as_me: creating $ac_file" >&6;} 5921bf2eeab3Smrg fi 5922bf2eeab3Smrg # Neutralize special characters interpreted by sed in replacement strings. 5923bf2eeab3Smrg case $configure_input in #( 5924bf2eeab3Smrg *\&* | *\|* | *\\* ) 5925bf2eeab3Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 5926bf2eeab3Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 5927bf2eeab3Smrg *) ac_sed_conf_input=$configure_input;; 5928bf2eeab3Smrg esac 5929bf2eeab3Smrg 5930bf2eeab3Smrg case $ac_tag in 5931576bae58Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 5932576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5933bf2eeab3Smrg esac 5934bf2eeab3Smrg ;; 593514c0a534Smrg esac 593614c0a534Smrg 5937bf2eeab3Smrg ac_dir=`$as_dirname -- "$ac_file" || 593814c0a534Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 593914c0a534Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 594014c0a534Smrg X"$ac_file" : 'X\(//\)$' \| \ 5941bf2eeab3Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5942bf2eeab3Smrg$as_echo X"$ac_file" | 5943bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5944bf2eeab3Smrg s//\1/ 5945bf2eeab3Smrg q 5946bf2eeab3Smrg } 5947bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 5948bf2eeab3Smrg s//\1/ 5949bf2eeab3Smrg q 5950bf2eeab3Smrg } 5951bf2eeab3Smrg /^X\(\/\/\)$/{ 5952bf2eeab3Smrg s//\1/ 5953bf2eeab3Smrg q 5954bf2eeab3Smrg } 5955bf2eeab3Smrg /^X\(\/\).*/{ 5956bf2eeab3Smrg s//\1/ 5957bf2eeab3Smrg q 5958bf2eeab3Smrg } 5959bf2eeab3Smrg s/.*/./; q'` 5960576bae58Smrg as_dir="$ac_dir"; as_fn_mkdir_p 596114c0a534Smrg ac_builddir=. 596214c0a534Smrg 5963bf2eeab3Smrgcase "$ac_dir" in 5964bf2eeab3Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5965bf2eeab3Smrg*) 5966bf2eeab3Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 5967bf2eeab3Smrg # A ".." for each directory in $ac_dir_suffix. 5968bf2eeab3Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5969bf2eeab3Smrg case $ac_top_builddir_sub in 5970bf2eeab3Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5971bf2eeab3Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5972bf2eeab3Smrg esac ;; 5973bf2eeab3Smrgesac 5974bf2eeab3Smrgac_abs_top_builddir=$ac_pwd 5975bf2eeab3Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 5976bf2eeab3Smrg# for backward compatibility: 5977bf2eeab3Smrgac_top_builddir=$ac_top_build_prefix 597814c0a534Smrg 597914c0a534Smrgcase $srcdir in 5980bf2eeab3Smrg .) # We are building in place. 598114c0a534Smrg ac_srcdir=. 5982bf2eeab3Smrg ac_top_srcdir=$ac_top_builddir_sub 5983bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd ;; 5984bf2eeab3Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 598514c0a534Smrg ac_srcdir=$srcdir$ac_dir_suffix; 5986bf2eeab3Smrg ac_top_srcdir=$srcdir 5987bf2eeab3Smrg ac_abs_top_srcdir=$srcdir ;; 5988bf2eeab3Smrg *) # Relative name. 5989bf2eeab3Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5990bf2eeab3Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 5991bf2eeab3Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 599214c0a534Smrgesac 5993bf2eeab3Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 599414c0a534Smrg 599514c0a534Smrg 5996bf2eeab3Smrg case $ac_mode in 5997bf2eeab3Smrg :F) 5998bf2eeab3Smrg # 5999bf2eeab3Smrg # CONFIG_FILE 6000bf2eeab3Smrg # 600114c0a534Smrg 600214c0a534Smrg case $INSTALL in 600314c0a534Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6004bf2eeab3Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 600514c0a534Smrg esac 6006bf2eeab3Smrg ac_MKDIR_P=$MKDIR_P 6007bf2eeab3Smrg case $MKDIR_P in 6008bf2eeab3Smrg [\\/$]* | ?:[\\/]* ) ;; 6009bf2eeab3Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6010bf2eeab3Smrg esac 6011bf2eeab3Smrg_ACEOF 601214c0a534Smrg 6013bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6014bf2eeab3Smrg# If the template does not know about datarootdir, expand it. 6015bf2eeab3Smrg# FIXME: This hack should be removed a few years after 2.60. 6016bf2eeab3Smrgac_datarootdir_hack=; ac_datarootdir_seen= 6017bf2eeab3Smrgac_sed_dataroot=' 6018bf2eeab3Smrg/datarootdir/ { 6019bf2eeab3Smrg p 6020bf2eeab3Smrg q 6021bf2eeab3Smrg} 6022bf2eeab3Smrg/@datadir@/p 6023bf2eeab3Smrg/@docdir@/p 6024bf2eeab3Smrg/@infodir@/p 6025bf2eeab3Smrg/@localedir@/p 6026576bae58Smrg/@mandir@/p' 6027bf2eeab3Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6028bf2eeab3Smrg*datarootdir*) ac_datarootdir_seen=yes;; 6029bf2eeab3Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6030576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6031bf2eeab3Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6032bf2eeab3Smrg_ACEOF 6033bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6034bf2eeab3Smrg ac_datarootdir_hack=' 6035bf2eeab3Smrg s&@datadir@&$datadir&g 6036bf2eeab3Smrg s&@docdir@&$docdir&g 6037bf2eeab3Smrg s&@infodir@&$infodir&g 6038bf2eeab3Smrg s&@localedir@&$localedir&g 6039bf2eeab3Smrg s&@mandir@&$mandir&g 6040576bae58Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 6041bf2eeab3Smrgesac 604214c0a534Smrg_ACEOF 6043bf2eeab3Smrg 6044bf2eeab3Smrg# Neutralize VPATH when `$srcdir' = `.'. 6045bf2eeab3Smrg# Shell code in configure.ac might set extrasub. 6046bf2eeab3Smrg# FIXME: do we really want to maintain this feature? 6047bf2eeab3Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6048bf2eeab3Smrgac_sed_extra="$ac_vpsub 604914c0a534Smrg$extrasub 605014c0a534Smrg_ACEOF 6051bf2eeab3Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 605214c0a534Smrg:t 605314c0a534Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6054bf2eeab3Smrgs|@configure_input@|$ac_sed_conf_input|;t t 6055bf2eeab3Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6056bf2eeab3Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6057bf2eeab3Smrgs&@srcdir@&$ac_srcdir&;t t 6058bf2eeab3Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6059bf2eeab3Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 6060bf2eeab3Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6061bf2eeab3Smrgs&@builddir@&$ac_builddir&;t t 6062bf2eeab3Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 6063bf2eeab3Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6064bf2eeab3Smrgs&@INSTALL@&$ac_INSTALL&;t t 6065bf2eeab3Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6066bf2eeab3Smrg$ac_datarootdir_hack 6067bf2eeab3Smrg" 6068576bae58Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6069576bae58Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 607014c0a534Smrg 6071bf2eeab3Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6072576bae58Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6073576bae58Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6074576bae58Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 6075576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6076576bae58Smrgwhich seems to be undefined. Please make sure it is defined" >&5 6077bf2eeab3Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6078576bae58Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 607914c0a534Smrg 6080576bae58Smrg rm -f "$ac_tmp/stdin" 608114c0a534Smrg case $ac_file in 6082576bae58Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6083576bae58Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6084bf2eeab3Smrg esac \ 6085576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6086bf2eeab3Smrg ;; 6087bf2eeab3Smrg :H) 6088bf2eeab3Smrg # 6089bf2eeab3Smrg # CONFIG_HEADER 6090bf2eeab3Smrg # 609114c0a534Smrg if test x"$ac_file" != x-; then 6092bf2eeab3Smrg { 6093bf2eeab3Smrg $as_echo "/* $configure_input */" \ 6094576bae58Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 6095576bae58Smrg } >"$ac_tmp/config.h" \ 6096576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6097576bae58Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6098576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6099bf2eeab3Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 610014c0a534Smrg else 6101bf2eeab3Smrg rm -f "$ac_file" 6102576bae58Smrg mv "$ac_tmp/config.h" "$ac_file" \ 6103576bae58Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 610414c0a534Smrg fi 610514c0a534Smrg else 6106bf2eeab3Smrg $as_echo "/* $configure_input */" \ 6107576bae58Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 6108576bae58Smrg || as_fn_error $? "could not create -" "$LINENO" 5 610914c0a534Smrg fi 6110bf2eeab3Smrg# Compute "$ac_file"'s index in $config_headers. 6111bf2eeab3Smrg_am_arg="$ac_file" 611214c0a534Smrg_am_stamp_count=1 611314c0a534Smrgfor _am_header in $config_headers :; do 611414c0a534Smrg case $_am_header in 6115bf2eeab3Smrg $_am_arg | $_am_arg:* ) 611614c0a534Smrg break ;; 611714c0a534Smrg * ) 611814c0a534Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 611914c0a534Smrg esac 612014c0a534Smrgdone 6121bf2eeab3Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6122bf2eeab3Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6123bf2eeab3Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6124bf2eeab3Smrg X"$_am_arg" : 'X\(//\)$' \| \ 6125bf2eeab3Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6126bf2eeab3Smrg$as_echo X"$_am_arg" | 6127bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6128bf2eeab3Smrg s//\1/ 6129bf2eeab3Smrg q 6130bf2eeab3Smrg } 6131bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 6132bf2eeab3Smrg s//\1/ 6133bf2eeab3Smrg q 6134bf2eeab3Smrg } 6135bf2eeab3Smrg /^X\(\/\/\)$/{ 6136bf2eeab3Smrg s//\1/ 6137bf2eeab3Smrg q 6138bf2eeab3Smrg } 6139bf2eeab3Smrg /^X\(\/\).*/{ 6140bf2eeab3Smrg s//\1/ 6141bf2eeab3Smrg q 6142bf2eeab3Smrg } 6143bf2eeab3Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 6144bf2eeab3Smrg ;; 614514c0a534Smrg 6146576bae58Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6147bf2eeab3Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6148bf2eeab3Smrg ;; 6149bf2eeab3Smrg esac 615014c0a534Smrg 615114c0a534Smrg 6152bf2eeab3Smrg case $ac_file$ac_mode in 6153bf2eeab3Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6154bf2eeab3Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6155bf2eeab3Smrg # are listed without --file. Let's play safe and only enable the eval 6156bf2eeab3Smrg # if we detect the quoting. 6157bf2eeab3Smrg case $CONFIG_FILES in 6158bf2eeab3Smrg *\'*) eval set x "$CONFIG_FILES" ;; 6159bf2eeab3Smrg *) set x $CONFIG_FILES ;; 6160bf2eeab3Smrg esac 6161bf2eeab3Smrg shift 6162bf2eeab3Smrg for mf 6163bf2eeab3Smrg do 6164bf2eeab3Smrg # Strip MF so we end up with the name of the file. 6165bf2eeab3Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6166bf2eeab3Smrg # Check whether this is an Automake generated Makefile or not. 6167bf2eeab3Smrg # We used to match only the files named `Makefile.in', but 6168bf2eeab3Smrg # some people rename them; so instead we look at the file content. 6169bf2eeab3Smrg # Grep'ing the first line is not enough: some people post-process 6170bf2eeab3Smrg # each Makefile.in and add a new line on top of each file to say so. 6171bf2eeab3Smrg # Grep'ing the whole file is not good either: AIX grep has a line 6172bf2eeab3Smrg # limit of 2048, but all sed's we know have understand at least 4000. 6173bf2eeab3Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6174bf2eeab3Smrg dirpart=`$as_dirname -- "$mf" || 617514c0a534Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 617614c0a534Smrg X"$mf" : 'X\(//\)[^/]' \| \ 617714c0a534Smrg X"$mf" : 'X\(//\)$' \| \ 6178bf2eeab3Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6179bf2eeab3Smrg$as_echo X"$mf" | 6180bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6181bf2eeab3Smrg s//\1/ 6182bf2eeab3Smrg q 6183bf2eeab3Smrg } 6184bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 6185bf2eeab3Smrg s//\1/ 6186bf2eeab3Smrg q 6187bf2eeab3Smrg } 6188bf2eeab3Smrg /^X\(\/\/\)$/{ 6189bf2eeab3Smrg s//\1/ 6190bf2eeab3Smrg q 6191bf2eeab3Smrg } 6192bf2eeab3Smrg /^X\(\/\).*/{ 6193bf2eeab3Smrg s//\1/ 6194bf2eeab3Smrg q 6195bf2eeab3Smrg } 6196bf2eeab3Smrg s/.*/./; q'` 6197bf2eeab3Smrg else 6198bf2eeab3Smrg continue 6199bf2eeab3Smrg fi 6200bf2eeab3Smrg # Extract the definition of DEPDIR, am__include, and am__quote 6201bf2eeab3Smrg # from the Makefile without running `make'. 6202bf2eeab3Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6203bf2eeab3Smrg test -z "$DEPDIR" && continue 6204bf2eeab3Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6205bf2eeab3Smrg test -z "am__include" && continue 6206bf2eeab3Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6207bf2eeab3Smrg # When using ansi2knr, U may be empty or an underscore; expand it 6208bf2eeab3Smrg U=`sed -n 's/^U = //p' < "$mf"` 6209bf2eeab3Smrg # Find all dependency output files, they are included files with 6210bf2eeab3Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6211bf2eeab3Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 6212bf2eeab3Smrg # expansion. 6213bf2eeab3Smrg for file in `sed -n " 6214bf2eeab3Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6215bf2eeab3Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6216bf2eeab3Smrg # Make sure the directory exists. 6217bf2eeab3Smrg test -f "$dirpart/$file" && continue 6218bf2eeab3Smrg fdir=`$as_dirname -- "$file" || 621914c0a534Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 622014c0a534Smrg X"$file" : 'X\(//\)[^/]' \| \ 622114c0a534Smrg X"$file" : 'X\(//\)$' \| \ 6222bf2eeab3Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6223bf2eeab3Smrg$as_echo X"$file" | 6224bf2eeab3Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6225bf2eeab3Smrg s//\1/ 6226bf2eeab3Smrg q 6227bf2eeab3Smrg } 6228bf2eeab3Smrg /^X\(\/\/\)[^/].*/{ 6229bf2eeab3Smrg s//\1/ 6230bf2eeab3Smrg q 6231bf2eeab3Smrg } 6232bf2eeab3Smrg /^X\(\/\/\)$/{ 6233bf2eeab3Smrg s//\1/ 6234bf2eeab3Smrg q 6235bf2eeab3Smrg } 6236bf2eeab3Smrg /^X\(\/\).*/{ 6237bf2eeab3Smrg s//\1/ 6238bf2eeab3Smrg q 6239bf2eeab3Smrg } 6240bf2eeab3Smrg s/.*/./; q'` 6241576bae58Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 6242bf2eeab3Smrg # echo "creating $dirpart/$file" 6243bf2eeab3Smrg echo '# dummy' > "$dirpart/$file" 6244bf2eeab3Smrg done 624514c0a534Smrg done 6246bf2eeab3Smrg} 624714c0a534Smrg ;; 6248bf2eeab3Smrg 624914c0a534Smrg esac 6250bf2eeab3Smrgdone # for ac_tag 625114c0a534Smrg 625214c0a534Smrg 6253576bae58Smrgas_fn_exit 0 625414c0a534Smrg_ACEOF 625514c0a534Smrgac_clean_files=$ac_clean_files_save 625614c0a534Smrg 6257bf2eeab3Smrgtest $ac_write_fail = 0 || 6258576bae58Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6259bf2eeab3Smrg 626014c0a534Smrg 626114c0a534Smrg# configure is writing to config.log, and then calls config.status. 626214c0a534Smrg# config.status does its own redirection, appending to config.log. 626314c0a534Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 626414c0a534Smrg# by configure, so config.status won't be able to write to it; its 626514c0a534Smrg# output is simply discarded. So we exec the FD to /dev/null, 626614c0a534Smrg# effectively closing config.log, so it can be properly (re)opened and 626714c0a534Smrg# appended to by config.status. When coming back to configure, we 626814c0a534Smrg# need to make the FD available again. 626914c0a534Smrgif test "$no_create" != yes; then 627014c0a534Smrg ac_cs_success=: 627114c0a534Smrg ac_config_status_args= 627214c0a534Smrg test "$silent" = yes && 627314c0a534Smrg ac_config_status_args="$ac_config_status_args --quiet" 627414c0a534Smrg exec 5>/dev/null 627514c0a534Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 627614c0a534Smrg exec 5>>config.log 627714c0a534Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 627814c0a534Smrg # would make configure fail if this is the last instruction. 6279576bae58Smrg $ac_cs_success || as_fn_exit 1 628014c0a534Smrgfi 6281bf2eeab3Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6282576bae58Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6283bf2eeab3Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6284bf2eeab3Smrgfi 628514c0a534Smrg 6286