configure revision 165cb819
1100ae103Smrg#! /bin/sh 2100ae103Smrg# Guess values for system-dependent variables and create Makefiles. 3165cb819Smrg# Generated by GNU Autoconf 2.65 for xmessage 1.0.3. 4100ae103Smrg# 5100ae103Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6100ae103Smrg# 7165cb819Smrg# 8165cb819Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9165cb819Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10165cb819Smrg# Inc. 11165cb819Smrg# 12165cb819Smrg# 13100ae103Smrg# This configure script is free software; the Free Software Foundation 14100ae103Smrg# gives unlimited permission to copy, distribute and modify it. 15165cb819Smrg## -------------------- ## 16165cb819Smrg## M4sh Initialization. ## 17165cb819Smrg## -------------------- ## 18100ae103Smrg 19165cb819Smrg# Be more Bourne compatible 20165cb819SmrgDUALCASE=1; export DUALCASE # for MKS sh 21165cb819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22100ae103Smrg emulate sh 23100ae103Smrg NULLCMD=: 24165cb819Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25100ae103Smrg # is contrary to our usage. Disable this feature. 26100ae103Smrg alias -g '${1+"$@"}'='"$@"' 27165cb819Smrg setopt NO_GLOB_SUBST 28165cb819Smrgelse 29165cb819Smrg case `(set -o) 2>/dev/null` in #( 30165cb819Smrg *posix*) : 31165cb819Smrg set -o posix ;; #( 32165cb819Smrg *) : 33165cb819Smrg ;; 34165cb819Smrgesac 35100ae103Smrgfi 36100ae103Smrg 37165cb819Smrg 38165cb819Smrgas_nl=' 39165cb819Smrg' 40165cb819Smrgexport as_nl 41165cb819Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42165cb819Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43165cb819Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44165cb819Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45165cb819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46165cb819Smrg# but without wasting forks for bash or zsh. 47165cb819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48165cb819Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49165cb819Smrg as_echo='print -r --' 50165cb819Smrg as_echo_n='print -rn --' 51165cb819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52165cb819Smrg as_echo='printf %s\n' 53165cb819Smrg as_echo_n='printf %s' 54100ae103Smrgelse 55165cb819Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56165cb819Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57165cb819Smrg as_echo_n='/usr/ucb/echo -n' 58165cb819Smrg else 59165cb819Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60165cb819Smrg as_echo_n_body='eval 61165cb819Smrg arg=$1; 62165cb819Smrg case $arg in #( 63165cb819Smrg *"$as_nl"*) 64165cb819Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65165cb819Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66165cb819Smrg esac; 67165cb819Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68165cb819Smrg ' 69165cb819Smrg export as_echo_n_body 70165cb819Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 71165cb819Smrg fi 72165cb819Smrg export as_echo_body 73165cb819Smrg as_echo='sh -c $as_echo_body as_echo' 74165cb819Smrgfi 75165cb819Smrg 76165cb819Smrg# The user is always right. 77165cb819Smrgif test "${PATH_SEPARATOR+set}" != set; then 78165cb819Smrg PATH_SEPARATOR=: 79165cb819Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80165cb819Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81165cb819Smrg PATH_SEPARATOR=';' 82165cb819Smrg } 83100ae103Smrgfi 84100ae103Smrg 85100ae103Smrg 86165cb819Smrg# IFS 87165cb819Smrg# We need space, tab and new line, in precisely that order. Quoting is 88165cb819Smrg# there to prevent editors from complaining about space-tab. 89165cb819Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90165cb819Smrg# splitting by setting IFS to empty value.) 91165cb819SmrgIFS=" "" $as_nl" 92165cb819Smrg 93165cb819Smrg# Find who we are. Look in the path if we contain no directory separator. 94165cb819Smrgcase $0 in #(( 95165cb819Smrg *[\\/]* ) as_myself=$0 ;; 96165cb819Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97165cb819Smrgfor as_dir in $PATH 98165cb819Smrgdo 99165cb819Smrg IFS=$as_save_IFS 100165cb819Smrg test -z "$as_dir" && as_dir=. 101165cb819Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102165cb819Smrg done 103165cb819SmrgIFS=$as_save_IFS 104165cb819Smrg 105165cb819Smrg ;; 106165cb819Smrgesac 107165cb819Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 108165cb819Smrg# in which case we are not to be found in the path. 109165cb819Smrgif test "x$as_myself" = x; then 110165cb819Smrg as_myself=$0 111165cb819Smrgfi 112165cb819Smrgif test ! -f "$as_myself"; then 113165cb819Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114165cb819Smrg exit 1 115165cb819Smrgfi 116165cb819Smrg 117165cb819Smrg# Unset variables that we do not need and which cause bugs (e.g. in 118165cb819Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119165cb819Smrg# suppresses any "Segmentation fault" message there. '((' could 120165cb819Smrg# trigger a bug in pdksh 5.2.14. 121165cb819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 122165cb819Smrgdo eval test x\${$as_var+set} = xset \ 123165cb819Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124165cb819Smrgdone 125100ae103SmrgPS1='$ ' 126100ae103SmrgPS2='> ' 127100ae103SmrgPS4='+ ' 128100ae103Smrg 129100ae103Smrg# NLS nuisances. 130165cb819SmrgLC_ALL=C 131165cb819Smrgexport LC_ALL 132165cb819SmrgLANGUAGE=C 133165cb819Smrgexport LANGUAGE 134165cb819Smrg 135165cb819Smrg# CDPATH. 136165cb819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137165cb819Smrg 138165cb819Smrgif test "x$CONFIG_SHELL" = x; then 139165cb819Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140165cb819Smrg emulate sh 141165cb819Smrg NULLCMD=: 142165cb819Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143165cb819Smrg # is contrary to our usage. Disable this feature. 144165cb819Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 145165cb819Smrg setopt NO_GLOB_SUBST 146165cb819Smrgelse 147165cb819Smrg case \`(set -o) 2>/dev/null\` in #( 148165cb819Smrg *posix*) : 149165cb819Smrg set -o posix ;; #( 150165cb819Smrg *) : 151165cb819Smrg ;; 152165cb819Smrgesac 153165cb819Smrgfi 154165cb819Smrg" 155165cb819Smrg as_required="as_fn_return () { (exit \$1); } 156165cb819Smrgas_fn_success () { as_fn_return 0; } 157165cb819Smrgas_fn_failure () { as_fn_return 1; } 158165cb819Smrgas_fn_ret_success () { return 0; } 159165cb819Smrgas_fn_ret_failure () { return 1; } 160165cb819Smrg 161165cb819Smrgexitcode=0 162165cb819Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 163165cb819Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164165cb819Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165165cb819Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166165cb819Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167165cb819Smrg 168165cb819Smrgelse 169165cb819Smrg exitcode=1; echo positional parameters were not saved. 170165cb819Smrgfi 171165cb819Smrgtest x\$exitcode = x0 || exit 1" 172165cb819Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173165cb819Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174165cb819Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175165cb819Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176165cb819Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 177165cb819Smrg if (eval "$as_required") 2>/dev/null; then : 178165cb819Smrg as_have_required=yes 179165cb819Smrgelse 180165cb819Smrg as_have_required=no 181165cb819Smrgfi 182165cb819Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183165cb819Smrg 184165cb819Smrgelse 185165cb819Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186165cb819Smrgas_found=false 187165cb819Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188100ae103Smrgdo 189165cb819Smrg IFS=$as_save_IFS 190165cb819Smrg test -z "$as_dir" && as_dir=. 191165cb819Smrg as_found=: 192165cb819Smrg case $as_dir in #( 193165cb819Smrg /*) 194165cb819Smrg for as_base in sh bash ksh sh5; do 195165cb819Smrg # Try only shells that exist, to save several forks. 196165cb819Smrg as_shell=$as_dir/$as_base 197165cb819Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198165cb819Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199165cb819Smrg CONFIG_SHELL=$as_shell as_have_required=yes 200165cb819Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201165cb819Smrg break 2 202165cb819Smrgfi 203165cb819Smrgfi 204165cb819Smrg done;; 205165cb819Smrg esac 206165cb819Smrg as_found=false 207165cb819Smrgdone 208165cb819Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209165cb819Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210165cb819Smrg CONFIG_SHELL=$SHELL as_have_required=yes 211165cb819Smrgfi; } 212165cb819SmrgIFS=$as_save_IFS 213165cb819Smrg 214165cb819Smrg 215165cb819Smrg if test "x$CONFIG_SHELL" != x; then : 216165cb819Smrg # We cannot yet assume a decent shell, so we have to provide a 217165cb819Smrg # neutralization value for shells without unset; and this also 218165cb819Smrg # works around shells that cannot unset nonexistent variables. 219165cb819Smrg BASH_ENV=/dev/null 220165cb819Smrg ENV=/dev/null 221165cb819Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222165cb819Smrg export CONFIG_SHELL 223165cb819Smrg exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224165cb819Smrgfi 225165cb819Smrg 226165cb819Smrg if test x$as_have_required = xno; then : 227165cb819Smrg $as_echo "$0: This script requires a shell more modern than all" 228165cb819Smrg $as_echo "$0: the shells that I found on your system." 229165cb819Smrg if test x${ZSH_VERSION+set} = xset ; then 230165cb819Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231165cb819Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232100ae103Smrg else 233165cb819Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 234165cb819Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235165cb819Smrg$0: about your system, including any error possibly output 236165cb819Smrg$0: before this message. Then install a modern shell, or 237165cb819Smrg$0: manually run the script under such a shell if you do 238165cb819Smrg$0: have one." 239100ae103Smrg fi 240165cb819Smrg exit 1 241165cb819Smrgfi 242165cb819Smrgfi 243165cb819Smrgfi 244165cb819SmrgSHELL=${CONFIG_SHELL-/bin/sh} 245165cb819Smrgexport SHELL 246165cb819Smrg# Unset more variables known to interfere with behavior of common tools. 247165cb819SmrgCLICOLOR_FORCE= GREP_OPTIONS= 248165cb819Smrgunset CLICOLOR_FORCE GREP_OPTIONS 249165cb819Smrg 250165cb819Smrg## --------------------- ## 251165cb819Smrg## M4sh Shell Functions. ## 252165cb819Smrg## --------------------- ## 253165cb819Smrg# as_fn_unset VAR 254165cb819Smrg# --------------- 255165cb819Smrg# Portably unset VAR. 256165cb819Smrgas_fn_unset () 257165cb819Smrg{ 258165cb819Smrg { eval $1=; unset $1;} 259165cb819Smrg} 260165cb819Smrgas_unset=as_fn_unset 261165cb819Smrg 262165cb819Smrg# as_fn_set_status STATUS 263165cb819Smrg# ----------------------- 264165cb819Smrg# Set $? to STATUS, without forking. 265165cb819Smrgas_fn_set_status () 266165cb819Smrg{ 267165cb819Smrg return $1 268165cb819Smrg} # as_fn_set_status 269165cb819Smrg 270165cb819Smrg# as_fn_exit STATUS 271165cb819Smrg# ----------------- 272165cb819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273165cb819Smrgas_fn_exit () 274165cb819Smrg{ 275165cb819Smrg set +e 276165cb819Smrg as_fn_set_status $1 277165cb819Smrg exit $1 278165cb819Smrg} # as_fn_exit 279165cb819Smrg 280165cb819Smrg# as_fn_mkdir_p 281165cb819Smrg# ------------- 282165cb819Smrg# Create "$as_dir" as a directory, including parents if necessary. 283165cb819Smrgas_fn_mkdir_p () 284165cb819Smrg{ 285100ae103Smrg 286165cb819Smrg case $as_dir in #( 287165cb819Smrg -*) as_dir=./$as_dir;; 288165cb819Smrg esac 289165cb819Smrg test -d "$as_dir" || eval $as_mkdir_p || { 290165cb819Smrg as_dirs= 291165cb819Smrg while :; do 292165cb819Smrg case $as_dir in #( 293165cb819Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294165cb819Smrg *) as_qdir=$as_dir;; 295165cb819Smrg esac 296165cb819Smrg as_dirs="'$as_qdir' $as_dirs" 297165cb819Smrg as_dir=`$as_dirname -- "$as_dir" || 298165cb819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299165cb819Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 300165cb819Smrg X"$as_dir" : 'X\(//\)$' \| \ 301165cb819Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302165cb819Smrg$as_echo X"$as_dir" | 303165cb819Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304165cb819Smrg s//\1/ 305165cb819Smrg q 306165cb819Smrg } 307165cb819Smrg /^X\(\/\/\)[^/].*/{ 308165cb819Smrg s//\1/ 309165cb819Smrg q 310165cb819Smrg } 311165cb819Smrg /^X\(\/\/\)$/{ 312165cb819Smrg s//\1/ 313165cb819Smrg q 314165cb819Smrg } 315165cb819Smrg /^X\(\/\).*/{ 316165cb819Smrg s//\1/ 317165cb819Smrg q 318165cb819Smrg } 319165cb819Smrg s/.*/./; q'` 320165cb819Smrg test -d "$as_dir" && break 321165cb819Smrg done 322165cb819Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 323165cb819Smrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324165cb819Smrg 325165cb819Smrg 326165cb819Smrg} # as_fn_mkdir_p 327165cb819Smrg# as_fn_append VAR VALUE 328165cb819Smrg# ---------------------- 329165cb819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 330165cb819Smrg# advantage of any shell optimizations that allow amortized linear growth over 331165cb819Smrg# repeated appends, instead of the typical quadratic growth present in naive 332165cb819Smrg# implementations. 333165cb819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334165cb819Smrg eval 'as_fn_append () 335165cb819Smrg { 336165cb819Smrg eval $1+=\$2 337165cb819Smrg }' 338165cb819Smrgelse 339165cb819Smrg as_fn_append () 340165cb819Smrg { 341165cb819Smrg eval $1=\$$1\$2 342165cb819Smrg } 343165cb819Smrgfi # as_fn_append 344165cb819Smrg 345165cb819Smrg# as_fn_arith ARG... 346165cb819Smrg# ------------------ 347165cb819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 348165cb819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 349165cb819Smrg# must be portable across $(()) and expr. 350165cb819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351165cb819Smrg eval 'as_fn_arith () 352165cb819Smrg { 353165cb819Smrg as_val=$(( $* )) 354165cb819Smrg }' 355165cb819Smrgelse 356165cb819Smrg as_fn_arith () 357165cb819Smrg { 358165cb819Smrg as_val=`expr "$@" || test $? -eq 1` 359165cb819Smrg } 360165cb819Smrgfi # as_fn_arith 361165cb819Smrg 362165cb819Smrg 363165cb819Smrg# as_fn_error ERROR [LINENO LOG_FD] 364165cb819Smrg# --------------------------------- 365165cb819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366165cb819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367165cb819Smrg# script with status $?, using 1 if that was 0. 368165cb819Smrgas_fn_error () 369165cb819Smrg{ 370165cb819Smrg as_status=$?; test $as_status -eq 0 && as_status=1 371165cb819Smrg if test "$3"; then 372165cb819Smrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374165cb819Smrg fi 375165cb819Smrg $as_echo "$as_me: error: $1" >&2 376165cb819Smrg as_fn_exit $as_status 377165cb819Smrg} # as_fn_error 378165cb819Smrg 379165cb819Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 380165cb819Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 381100ae103Smrg as_expr=expr 382100ae103Smrgelse 383100ae103Smrg as_expr=false 384100ae103Smrgfi 385100ae103Smrg 386165cb819Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387100ae103Smrg as_basename=basename 388100ae103Smrgelse 389100ae103Smrg as_basename=false 390100ae103Smrgfi 391100ae103Smrg 392165cb819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393165cb819Smrg as_dirname=dirname 394165cb819Smrgelse 395165cb819Smrg as_dirname=false 396165cb819Smrgfi 397100ae103Smrg 398165cb819Smrgas_me=`$as_basename -- "$0" || 399100ae103Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400100ae103Smrg X"$0" : 'X\(//\)$' \| \ 401165cb819Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 402165cb819Smrg$as_echo X/"$0" | 403165cb819Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 404165cb819Smrg s//\1/ 405165cb819Smrg q 406165cb819Smrg } 407165cb819Smrg /^X\/\(\/\/\)$/{ 408165cb819Smrg s//\1/ 409165cb819Smrg q 410165cb819Smrg } 411165cb819Smrg /^X\/\(\/\).*/{ 412165cb819Smrg s//\1/ 413165cb819Smrg q 414165cb819Smrg } 415165cb819Smrg s/.*/./; q'` 416100ae103Smrg 417100ae103Smrg# Avoid depending upon Character Ranges. 418100ae103Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 419100ae103Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420100ae103Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 421100ae103Smrgas_cr_digits='0123456789' 422100ae103Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 423100ae103Smrg 424100ae103Smrg 425165cb819Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 426165cb819Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 427165cb819Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428165cb819Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429165cb819Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430165cb819Smrg sed -n ' 431165cb819Smrg p 432165cb819Smrg /[$]LINENO/= 433165cb819Smrg ' <$as_myself | 434100ae103Smrg sed ' 435165cb819Smrg s/[$]LINENO.*/&-/ 436165cb819Smrg t lineno 437165cb819Smrg b 438165cb819Smrg :lineno 439100ae103Smrg N 440165cb819Smrg :loop 441165cb819Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442100ae103Smrg t loop 443165cb819Smrg s/-\n.*// 444100ae103Smrg ' >$as_me.lineno && 445165cb819Smrg chmod +x "$as_me.lineno" || 446165cb819Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447100ae103Smrg 448100ae103Smrg # Don't try to exec as it changes $[0], causing all sort of problems 449100ae103Smrg # (the dirname of $[0] is not the place where we might find the 450165cb819Smrg # original and so on. Autoconf is especially sensitive to this). 451165cb819Smrg . "./$as_me.lineno" 452100ae103Smrg # Exit status is that of the last command. 453100ae103Smrg exit 454100ae103Smrg} 455100ae103Smrg 456165cb819SmrgECHO_C= ECHO_N= ECHO_T= 457165cb819Smrgcase `echo -n x` in #((((( 458165cb819Smrg-n*) 459165cb819Smrg case `echo 'xy\c'` in 460165cb819Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461165cb819Smrg xy) ECHO_C='\c';; 462165cb819Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463165cb819Smrg ECHO_T=' ';; 464165cb819Smrg esac;; 465165cb819Smrg*) 466165cb819Smrg ECHO_N='-n';; 467100ae103Smrgesac 468100ae103Smrg 469165cb819Smrgrm -f conf$$ conf$$.exe conf$$.file 470165cb819Smrgif test -d conf$$.dir; then 471165cb819Smrg rm -f conf$$.dir/conf$$.file 472100ae103Smrgelse 473165cb819Smrg rm -f conf$$.dir 474165cb819Smrg mkdir conf$$.dir 2>/dev/null 475100ae103Smrgfi 476165cb819Smrgif (echo >conf$$.file) 2>/dev/null; then 477165cb819Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 478100ae103Smrg as_ln_s='ln -s' 479165cb819Smrg # ... but there are two gotchas: 480165cb819Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481165cb819Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482165cb819Smrg # In both cases, we have to default to `cp -p'. 483165cb819Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484165cb819Smrg as_ln_s='cp -p' 485165cb819Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 486165cb819Smrg as_ln_s=ln 487165cb819Smrg else 488165cb819Smrg as_ln_s='cp -p' 489100ae103Smrg fi 490100ae103Smrgelse 491100ae103Smrg as_ln_s='cp -p' 492100ae103Smrgfi 493165cb819Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494165cb819Smrgrmdir conf$$.dir 2>/dev/null 495100ae103Smrg 496100ae103Smrgif mkdir -p . 2>/dev/null; then 497165cb819Smrg as_mkdir_p='mkdir -p "$as_dir"' 498100ae103Smrgelse 499100ae103Smrg test -d ./-p && rmdir ./-p 500100ae103Smrg as_mkdir_p=false 501100ae103Smrgfi 502100ae103Smrg 503165cb819Smrgif test -x / >/dev/null 2>&1; then 504165cb819Smrg as_test_x='test -x' 505165cb819Smrgelse 506165cb819Smrg if ls -dL / >/dev/null 2>&1; then 507165cb819Smrg as_ls_L_option=L 508165cb819Smrg else 509165cb819Smrg as_ls_L_option= 510165cb819Smrg fi 511165cb819Smrg as_test_x=' 512165cb819Smrg eval sh -c '\'' 513165cb819Smrg if test -d "$1"; then 514165cb819Smrg test -d "$1/."; 515165cb819Smrg else 516165cb819Smrg case $1 in #( 517165cb819Smrg -*)set "./$1";; 518165cb819Smrg esac; 519165cb819Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520165cb819Smrg ???[sx]*):;;*)false;;esac;fi 521165cb819Smrg '\'' sh 522165cb819Smrg ' 523165cb819Smrgfi 524165cb819Smrgas_executable_p=$as_test_x 525100ae103Smrg 526100ae103Smrg# Sed expression to map a string onto a valid CPP name. 527100ae103Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528100ae103Smrg 529100ae103Smrg# Sed expression to map a string onto a valid variable name. 530100ae103Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531100ae103Smrg 532100ae103Smrg 533165cb819Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 534165cb819Smrgexec 6>&1 535100ae103Smrg 536100ae103Smrg# Name of the host. 537100ae103Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 538100ae103Smrg# so uname gets run too. 539100ae103Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 540100ae103Smrg 541100ae103Smrg# 542100ae103Smrg# Initializations. 543100ae103Smrg# 544100ae103Smrgac_default_prefix=/usr/local 545165cb819Smrgac_clean_files= 546100ae103Smrgac_config_libobj_dir=. 547165cb819SmrgLIBOBJS= 548100ae103Smrgcross_compiling=no 549100ae103Smrgsubdirs= 550100ae103SmrgMFLAGS= 551100ae103SmrgMAKEFLAGS= 552100ae103Smrg 553100ae103Smrg# Identity of this package. 554100ae103SmrgPACKAGE_NAME='xmessage' 555100ae103SmrgPACKAGE_TARNAME='xmessage' 556165cb819SmrgPACKAGE_VERSION='1.0.3' 557165cb819SmrgPACKAGE_STRING='xmessage 1.0.3' 558100ae103SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 559165cb819SmrgPACKAGE_URL='' 560100ae103Smrg 561165cb819Smrg# Factoring default headers for most tests. 562165cb819Smrgac_includes_default="\ 563165cb819Smrg#include <stdio.h> 564165cb819Smrg#ifdef HAVE_SYS_TYPES_H 565165cb819Smrg# include <sys/types.h> 566165cb819Smrg#endif 567165cb819Smrg#ifdef HAVE_SYS_STAT_H 568165cb819Smrg# include <sys/stat.h> 569165cb819Smrg#endif 570165cb819Smrg#ifdef STDC_HEADERS 571165cb819Smrg# include <stdlib.h> 572165cb819Smrg# include <stddef.h> 573165cb819Smrg#else 574165cb819Smrg# ifdef HAVE_STDLIB_H 575165cb819Smrg# include <stdlib.h> 576165cb819Smrg# endif 577165cb819Smrg#endif 578165cb819Smrg#ifdef HAVE_STRING_H 579165cb819Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 580165cb819Smrg# include <memory.h> 581165cb819Smrg# endif 582165cb819Smrg# include <string.h> 583165cb819Smrg#endif 584165cb819Smrg#ifdef HAVE_STRINGS_H 585165cb819Smrg# include <strings.h> 586165cb819Smrg#endif 587165cb819Smrg#ifdef HAVE_INTTYPES_H 588165cb819Smrg# include <inttypes.h> 589165cb819Smrg#endif 590165cb819Smrg#ifdef HAVE_STDINT_H 591165cb819Smrg# include <stdint.h> 592165cb819Smrg#endif 593165cb819Smrg#ifdef HAVE_UNISTD_H 594165cb819Smrg# include <unistd.h> 595165cb819Smrg#endif" 596165cb819Smrg 597165cb819Smrgac_subst_vars='am__EXEEXT_FALSE 598165cb819Smrgam__EXEEXT_TRUE 599165cb819SmrgLTLIBOBJS 600165cb819SmrgLIBOBJS 601165cb819Smrgappdefaultdir 602165cb819SmrgAPPDEFS_LIBS 603165cb819SmrgAPPDEFS_CFLAGS 604165cb819SmrgXMESSAGE_LIBS 605165cb819SmrgXMESSAGE_CFLAGS 606165cb819SmrgADMIN_MAN_DIR 607165cb819SmrgDRIVER_MAN_DIR 608165cb819SmrgMISC_MAN_DIR 609165cb819SmrgFILE_MAN_DIR 610165cb819SmrgLIB_MAN_DIR 611165cb819SmrgAPP_MAN_DIR 612165cb819SmrgADMIN_MAN_SUFFIX 613165cb819SmrgDRIVER_MAN_SUFFIX 614165cb819SmrgMISC_MAN_SUFFIX 615165cb819SmrgFILE_MAN_SUFFIX 616165cb819SmrgLIB_MAN_SUFFIX 617165cb819SmrgAPP_MAN_SUFFIX 618165cb819Smrghost_os 619165cb819Smrghost_vendor 620165cb819Smrghost_cpu 621165cb819Smrghost 622165cb819Smrgbuild_os 623165cb819Smrgbuild_vendor 624165cb819Smrgbuild_cpu 625165cb819Smrgbuild 626165cb819SmrgINSTALL_CMD 627165cb819SmrgPKG_CONFIG 628165cb819SmrgCHANGELOG_CMD 629165cb819SmrgAM_BACKSLASH 630165cb819SmrgAM_DEFAULT_VERBOSITY 631165cb819SmrgCWARNFLAGS 632165cb819SmrgEGREP 633165cb819SmrgGREP 634165cb819SmrgCPP 635165cb819Smrgam__fastdepCC_FALSE 636165cb819Smrgam__fastdepCC_TRUE 637165cb819SmrgCCDEPMODE 638165cb819SmrgAMDEPBACKSLASH 639165cb819SmrgAMDEP_FALSE 640165cb819SmrgAMDEP_TRUE 641165cb819Smrgam__quote 642165cb819Smrgam__include 643165cb819SmrgDEPDIR 644165cb819SmrgOBJEXT 645165cb819SmrgEXEEXT 646165cb819Smrgac_ct_CC 647165cb819SmrgCPPFLAGS 648165cb819SmrgLDFLAGS 649165cb819SmrgCFLAGS 650165cb819SmrgCC 651165cb819SmrgMAINT 652165cb819SmrgMAINTAINER_MODE_FALSE 653165cb819SmrgMAINTAINER_MODE_TRUE 654165cb819Smrgam__untar 655165cb819Smrgam__tar 656165cb819SmrgAMTAR 657165cb819Smrgam__leading_dot 658165cb819SmrgSET_MAKE 659165cb819SmrgAWK 660165cb819Smrgmkdir_p 661165cb819SmrgMKDIR_P 662165cb819SmrgINSTALL_STRIP_PROGRAM 663165cb819SmrgSTRIP 664165cb819Smrginstall_sh 665165cb819SmrgMAKEINFO 666165cb819SmrgAUTOHEADER 667165cb819SmrgAUTOMAKE 668165cb819SmrgAUTOCONF 669165cb819SmrgACLOCAL 670165cb819SmrgVERSION 671165cb819SmrgPACKAGE 672165cb819SmrgCYGPATH_W 673165cb819Smrgam__isrc 674165cb819SmrgINSTALL_DATA 675165cb819SmrgINSTALL_SCRIPT 676165cb819SmrgINSTALL_PROGRAM 677165cb819Smrgtarget_alias 678165cb819Smrghost_alias 679165cb819Smrgbuild_alias 680165cb819SmrgLIBS 681165cb819SmrgECHO_T 682165cb819SmrgECHO_N 683165cb819SmrgECHO_C 684165cb819SmrgDEFS 685165cb819Smrgmandir 686165cb819Smrglocaledir 687165cb819Smrglibdir 688165cb819Smrgpsdir 689165cb819Smrgpdfdir 690165cb819Smrgdvidir 691165cb819Smrghtmldir 692165cb819Smrginfodir 693165cb819Smrgdocdir 694165cb819Smrgoldincludedir 695165cb819Smrgincludedir 696165cb819Smrglocalstatedir 697165cb819Smrgsharedstatedir 698165cb819Smrgsysconfdir 699165cb819Smrgdatadir 700165cb819Smrgdatarootdir 701165cb819Smrglibexecdir 702165cb819Smrgsbindir 703165cb819Smrgbindir 704165cb819Smrgprogram_transform_name 705165cb819Smrgprefix 706165cb819Smrgexec_prefix 707165cb819SmrgPACKAGE_URL 708165cb819SmrgPACKAGE_BUGREPORT 709165cb819SmrgPACKAGE_STRING 710165cb819SmrgPACKAGE_VERSION 711165cb819SmrgPACKAGE_TARNAME 712165cb819SmrgPACKAGE_NAME 713165cb819SmrgPATH_SEPARATOR 714165cb819SmrgSHELL' 715100ae103Smrgac_subst_files='' 716165cb819Smrgac_user_opts=' 717165cb819Smrgenable_option_checking 718165cb819Smrgenable_maintainer_mode 719165cb819Smrgenable_dependency_tracking 720165cb819Smrgenable_silent_rules 721165cb819Smrgenable_strict_compilation 722165cb819Smrgwith_release_version 723165cb819Smrgwith_appdefaultdir 724165cb819Smrg' 725165cb819Smrg ac_precious_vars='build_alias 726165cb819Smrghost_alias 727165cb819Smrgtarget_alias 728165cb819SmrgCC 729165cb819SmrgCFLAGS 730165cb819SmrgLDFLAGS 731165cb819SmrgLIBS 732165cb819SmrgCPPFLAGS 733165cb819SmrgCPP 734165cb819SmrgPKG_CONFIG 735165cb819SmrgXMESSAGE_CFLAGS 736165cb819SmrgXMESSAGE_LIBS 737165cb819SmrgAPPDEFS_CFLAGS 738165cb819SmrgAPPDEFS_LIBS' 739165cb819Smrg 740100ae103Smrg 741100ae103Smrg# Initialize some variables set by options. 742100ae103Smrgac_init_help= 743100ae103Smrgac_init_version=false 744165cb819Smrgac_unrecognized_opts= 745165cb819Smrgac_unrecognized_sep= 746100ae103Smrg# The variables have the same names as the options, with 747100ae103Smrg# dashes changed to underlines. 748100ae103Smrgcache_file=/dev/null 749100ae103Smrgexec_prefix=NONE 750100ae103Smrgno_create= 751100ae103Smrgno_recursion= 752100ae103Smrgprefix=NONE 753100ae103Smrgprogram_prefix=NONE 754100ae103Smrgprogram_suffix=NONE 755100ae103Smrgprogram_transform_name=s,x,x, 756100ae103Smrgsilent= 757100ae103Smrgsite= 758100ae103Smrgsrcdir= 759100ae103Smrgverbose= 760100ae103Smrgx_includes=NONE 761100ae103Smrgx_libraries=NONE 762100ae103Smrg 763100ae103Smrg# Installation directory options. 764100ae103Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 765100ae103Smrg# and all the variables that are supposed to be based on exec_prefix 766100ae103Smrg# by default will actually change. 767100ae103Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 768165cb819Smrg# (The list follows the same order as the GNU Coding Standards.) 769100ae103Smrgbindir='${exec_prefix}/bin' 770100ae103Smrgsbindir='${exec_prefix}/sbin' 771100ae103Smrglibexecdir='${exec_prefix}/libexec' 772165cb819Smrgdatarootdir='${prefix}/share' 773165cb819Smrgdatadir='${datarootdir}' 774100ae103Smrgsysconfdir='${prefix}/etc' 775100ae103Smrgsharedstatedir='${prefix}/com' 776100ae103Smrglocalstatedir='${prefix}/var' 777100ae103Smrgincludedir='${prefix}/include' 778100ae103Smrgoldincludedir='/usr/include' 779165cb819Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 780165cb819Smrginfodir='${datarootdir}/info' 781165cb819Smrghtmldir='${docdir}' 782165cb819Smrgdvidir='${docdir}' 783165cb819Smrgpdfdir='${docdir}' 784165cb819Smrgpsdir='${docdir}' 785165cb819Smrglibdir='${exec_prefix}/lib' 786165cb819Smrglocaledir='${datarootdir}/locale' 787165cb819Smrgmandir='${datarootdir}/man' 788100ae103Smrg 789100ae103Smrgac_prev= 790165cb819Smrgac_dashdash= 791100ae103Smrgfor ac_option 792100ae103Smrgdo 793100ae103Smrg # If the previous option needs an argument, assign it. 794100ae103Smrg if test -n "$ac_prev"; then 795165cb819Smrg eval $ac_prev=\$ac_option 796100ae103Smrg ac_prev= 797100ae103Smrg continue 798100ae103Smrg fi 799100ae103Smrg 800165cb819Smrg case $ac_option in 801165cb819Smrg *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 802165cb819Smrg *) ac_optarg=yes ;; 803165cb819Smrg esac 804100ae103Smrg 805100ae103Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 806100ae103Smrg 807165cb819Smrg case $ac_dashdash$ac_option in 808165cb819Smrg --) 809165cb819Smrg ac_dashdash=yes ;; 810100ae103Smrg 811100ae103Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 812100ae103Smrg ac_prev=bindir ;; 813100ae103Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 814100ae103Smrg bindir=$ac_optarg ;; 815100ae103Smrg 816100ae103Smrg -build | --build | --buil | --bui | --bu) 817100ae103Smrg ac_prev=build_alias ;; 818100ae103Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 819100ae103Smrg build_alias=$ac_optarg ;; 820100ae103Smrg 821100ae103Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 822100ae103Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 823100ae103Smrg ac_prev=cache_file ;; 824100ae103Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 825100ae103Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 826100ae103Smrg cache_file=$ac_optarg ;; 827100ae103Smrg 828100ae103Smrg --config-cache | -C) 829100ae103Smrg cache_file=config.cache ;; 830100ae103Smrg 831165cb819Smrg -datadir | --datadir | --datadi | --datad) 832100ae103Smrg ac_prev=datadir ;; 833165cb819Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 834100ae103Smrg datadir=$ac_optarg ;; 835100ae103Smrg 836165cb819Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 837165cb819Smrg | --dataroo | --dataro | --datar) 838165cb819Smrg ac_prev=datarootdir ;; 839165cb819Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 840165cb819Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 841165cb819Smrg datarootdir=$ac_optarg ;; 842165cb819Smrg 843100ae103Smrg -disable-* | --disable-*) 844165cb819Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 845100ae103Smrg # Reject names that are not valid shell variable names. 846165cb819Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 847165cb819Smrg as_fn_error "invalid feature name: $ac_useropt" 848165cb819Smrg ac_useropt_orig=$ac_useropt 849165cb819Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 850165cb819Smrg case $ac_user_opts in 851165cb819Smrg *" 852165cb819Smrg"enable_$ac_useropt" 853165cb819Smrg"*) ;; 854165cb819Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 855165cb819Smrg ac_unrecognized_sep=', ';; 856165cb819Smrg esac 857165cb819Smrg eval enable_$ac_useropt=no ;; 858165cb819Smrg 859165cb819Smrg -docdir | --docdir | --docdi | --doc | --do) 860165cb819Smrg ac_prev=docdir ;; 861165cb819Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 862165cb819Smrg docdir=$ac_optarg ;; 863165cb819Smrg 864165cb819Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 865165cb819Smrg ac_prev=dvidir ;; 866165cb819Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 867165cb819Smrg dvidir=$ac_optarg ;; 868100ae103Smrg 869100ae103Smrg -enable-* | --enable-*) 870165cb819Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 871100ae103Smrg # Reject names that are not valid shell variable names. 872165cb819Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 873165cb819Smrg as_fn_error "invalid feature name: $ac_useropt" 874165cb819Smrg ac_useropt_orig=$ac_useropt 875165cb819Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 876165cb819Smrg case $ac_user_opts in 877165cb819Smrg *" 878165cb819Smrg"enable_$ac_useropt" 879165cb819Smrg"*) ;; 880165cb819Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 881165cb819Smrg ac_unrecognized_sep=', ';; 882100ae103Smrg esac 883165cb819Smrg eval enable_$ac_useropt=\$ac_optarg ;; 884100ae103Smrg 885100ae103Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 886100ae103Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 887100ae103Smrg | --exec | --exe | --ex) 888100ae103Smrg ac_prev=exec_prefix ;; 889100ae103Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 890100ae103Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 891100ae103Smrg | --exec=* | --exe=* | --ex=*) 892100ae103Smrg exec_prefix=$ac_optarg ;; 893100ae103Smrg 894100ae103Smrg -gas | --gas | --ga | --g) 895100ae103Smrg # Obsolete; use --with-gas. 896100ae103Smrg with_gas=yes ;; 897100ae103Smrg 898100ae103Smrg -help | --help | --hel | --he | -h) 899100ae103Smrg ac_init_help=long ;; 900100ae103Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 901100ae103Smrg ac_init_help=recursive ;; 902100ae103Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 903100ae103Smrg ac_init_help=short ;; 904100ae103Smrg 905100ae103Smrg -host | --host | --hos | --ho) 906100ae103Smrg ac_prev=host_alias ;; 907100ae103Smrg -host=* | --host=* | --hos=* | --ho=*) 908100ae103Smrg host_alias=$ac_optarg ;; 909100ae103Smrg 910165cb819Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 911165cb819Smrg ac_prev=htmldir ;; 912165cb819Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 913165cb819Smrg | --ht=*) 914165cb819Smrg htmldir=$ac_optarg ;; 915165cb819Smrg 916100ae103Smrg -includedir | --includedir | --includedi | --included | --include \ 917100ae103Smrg | --includ | --inclu | --incl | --inc) 918100ae103Smrg ac_prev=includedir ;; 919100ae103Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 920100ae103Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 921100ae103Smrg includedir=$ac_optarg ;; 922100ae103Smrg 923100ae103Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 924100ae103Smrg ac_prev=infodir ;; 925100ae103Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 926100ae103Smrg infodir=$ac_optarg ;; 927100ae103Smrg 928100ae103Smrg -libdir | --libdir | --libdi | --libd) 929100ae103Smrg ac_prev=libdir ;; 930100ae103Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 931100ae103Smrg libdir=$ac_optarg ;; 932100ae103Smrg 933100ae103Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 934100ae103Smrg | --libexe | --libex | --libe) 935100ae103Smrg ac_prev=libexecdir ;; 936100ae103Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 937100ae103Smrg | --libexe=* | --libex=* | --libe=*) 938100ae103Smrg libexecdir=$ac_optarg ;; 939100ae103Smrg 940165cb819Smrg -localedir | --localedir | --localedi | --localed | --locale) 941165cb819Smrg ac_prev=localedir ;; 942165cb819Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 943165cb819Smrg localedir=$ac_optarg ;; 944165cb819Smrg 945100ae103Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 946165cb819Smrg | --localstate | --localstat | --localsta | --localst | --locals) 947100ae103Smrg ac_prev=localstatedir ;; 948100ae103Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 949165cb819Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 950100ae103Smrg localstatedir=$ac_optarg ;; 951100ae103Smrg 952100ae103Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 953100ae103Smrg ac_prev=mandir ;; 954100ae103Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 955100ae103Smrg mandir=$ac_optarg ;; 956100ae103Smrg 957100ae103Smrg -nfp | --nfp | --nf) 958100ae103Smrg # Obsolete; use --without-fp. 959100ae103Smrg with_fp=no ;; 960100ae103Smrg 961100ae103Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 962100ae103Smrg | --no-cr | --no-c | -n) 963100ae103Smrg no_create=yes ;; 964100ae103Smrg 965100ae103Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 966100ae103Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 967100ae103Smrg no_recursion=yes ;; 968100ae103Smrg 969100ae103Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 970100ae103Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 971100ae103Smrg | --oldin | --oldi | --old | --ol | --o) 972100ae103Smrg ac_prev=oldincludedir ;; 973100ae103Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 974100ae103Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 975100ae103Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 976100ae103Smrg oldincludedir=$ac_optarg ;; 977100ae103Smrg 978100ae103Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 979100ae103Smrg ac_prev=prefix ;; 980100ae103Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 981100ae103Smrg prefix=$ac_optarg ;; 982100ae103Smrg 983100ae103Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 984100ae103Smrg | --program-pre | --program-pr | --program-p) 985100ae103Smrg ac_prev=program_prefix ;; 986100ae103Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 987100ae103Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 988100ae103Smrg program_prefix=$ac_optarg ;; 989100ae103Smrg 990100ae103Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 991100ae103Smrg | --program-suf | --program-su | --program-s) 992100ae103Smrg ac_prev=program_suffix ;; 993100ae103Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 994100ae103Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 995100ae103Smrg program_suffix=$ac_optarg ;; 996100ae103Smrg 997100ae103Smrg -program-transform-name | --program-transform-name \ 998100ae103Smrg | --program-transform-nam | --program-transform-na \ 999100ae103Smrg | --program-transform-n | --program-transform- \ 1000100ae103Smrg | --program-transform | --program-transfor \ 1001100ae103Smrg | --program-transfo | --program-transf \ 1002100ae103Smrg | --program-trans | --program-tran \ 1003100ae103Smrg | --progr-tra | --program-tr | --program-t) 1004100ae103Smrg ac_prev=program_transform_name ;; 1005100ae103Smrg -program-transform-name=* | --program-transform-name=* \ 1006100ae103Smrg | --program-transform-nam=* | --program-transform-na=* \ 1007100ae103Smrg | --program-transform-n=* | --program-transform-=* \ 1008100ae103Smrg | --program-transform=* | --program-transfor=* \ 1009100ae103Smrg | --program-transfo=* | --program-transf=* \ 1010100ae103Smrg | --program-trans=* | --program-tran=* \ 1011100ae103Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1012100ae103Smrg program_transform_name=$ac_optarg ;; 1013100ae103Smrg 1014165cb819Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1015165cb819Smrg ac_prev=pdfdir ;; 1016165cb819Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1017165cb819Smrg pdfdir=$ac_optarg ;; 1018165cb819Smrg 1019165cb819Smrg -psdir | --psdir | --psdi | --psd | --ps) 1020165cb819Smrg ac_prev=psdir ;; 1021165cb819Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1022165cb819Smrg psdir=$ac_optarg ;; 1023165cb819Smrg 1024100ae103Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1025100ae103Smrg | -silent | --silent | --silen | --sile | --sil) 1026100ae103Smrg silent=yes ;; 1027100ae103Smrg 1028100ae103Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1029100ae103Smrg ac_prev=sbindir ;; 1030100ae103Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1031100ae103Smrg | --sbi=* | --sb=*) 1032100ae103Smrg sbindir=$ac_optarg ;; 1033100ae103Smrg 1034100ae103Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1035100ae103Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1036100ae103Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1037100ae103Smrg | --sha | --sh) 1038100ae103Smrg ac_prev=sharedstatedir ;; 1039100ae103Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1040100ae103Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1041100ae103Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1042100ae103Smrg | --sha=* | --sh=*) 1043100ae103Smrg sharedstatedir=$ac_optarg ;; 1044100ae103Smrg 1045100ae103Smrg -site | --site | --sit) 1046100ae103Smrg ac_prev=site ;; 1047100ae103Smrg -site=* | --site=* | --sit=*) 1048100ae103Smrg site=$ac_optarg ;; 1049100ae103Smrg 1050100ae103Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1051100ae103Smrg ac_prev=srcdir ;; 1052100ae103Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1053100ae103Smrg srcdir=$ac_optarg ;; 1054100ae103Smrg 1055100ae103Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1056100ae103Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1057100ae103Smrg ac_prev=sysconfdir ;; 1058100ae103Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1059100ae103Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1060100ae103Smrg sysconfdir=$ac_optarg ;; 1061100ae103Smrg 1062100ae103Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1063100ae103Smrg ac_prev=target_alias ;; 1064100ae103Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1065100ae103Smrg target_alias=$ac_optarg ;; 1066100ae103Smrg 1067100ae103Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1068100ae103Smrg verbose=yes ;; 1069100ae103Smrg 1070100ae103Smrg -version | --version | --versio | --versi | --vers | -V) 1071100ae103Smrg ac_init_version=: ;; 1072100ae103Smrg 1073100ae103Smrg -with-* | --with-*) 1074165cb819Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1075100ae103Smrg # Reject names that are not valid shell variable names. 1076165cb819Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1077165cb819Smrg as_fn_error "invalid package name: $ac_useropt" 1078165cb819Smrg ac_useropt_orig=$ac_useropt 1079165cb819Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1080165cb819Smrg case $ac_user_opts in 1081165cb819Smrg *" 1082165cb819Smrg"with_$ac_useropt" 1083165cb819Smrg"*) ;; 1084165cb819Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1085165cb819Smrg ac_unrecognized_sep=', ';; 1086100ae103Smrg esac 1087165cb819Smrg eval with_$ac_useropt=\$ac_optarg ;; 1088100ae103Smrg 1089100ae103Smrg -without-* | --without-*) 1090165cb819Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1091100ae103Smrg # Reject names that are not valid shell variable names. 1092165cb819Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093165cb819Smrg as_fn_error "invalid package name: $ac_useropt" 1094165cb819Smrg ac_useropt_orig=$ac_useropt 1095165cb819Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096165cb819Smrg case $ac_user_opts in 1097165cb819Smrg *" 1098165cb819Smrg"with_$ac_useropt" 1099165cb819Smrg"*) ;; 1100165cb819Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1101165cb819Smrg ac_unrecognized_sep=', ';; 1102165cb819Smrg esac 1103165cb819Smrg eval with_$ac_useropt=no ;; 1104100ae103Smrg 1105100ae103Smrg --x) 1106100ae103Smrg # Obsolete; use --with-x. 1107100ae103Smrg with_x=yes ;; 1108100ae103Smrg 1109100ae103Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1110100ae103Smrg | --x-incl | --x-inc | --x-in | --x-i) 1111100ae103Smrg ac_prev=x_includes ;; 1112100ae103Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1113100ae103Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1114100ae103Smrg x_includes=$ac_optarg ;; 1115100ae103Smrg 1116100ae103Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1117100ae103Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1118100ae103Smrg ac_prev=x_libraries ;; 1119100ae103Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1120100ae103Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1121100ae103Smrg x_libraries=$ac_optarg ;; 1122100ae103Smrg 1123165cb819Smrg -*) as_fn_error "unrecognized option: \`$ac_option' 1124165cb819SmrgTry \`$0 --help' for more information." 1125100ae103Smrg ;; 1126100ae103Smrg 1127100ae103Smrg *=*) 1128100ae103Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1129100ae103Smrg # Reject names that are not valid shell variable names. 1130165cb819Smrg case $ac_envvar in #( 1131165cb819Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1132165cb819Smrg as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1133165cb819Smrg esac 1134165cb819Smrg eval $ac_envvar=\$ac_optarg 1135100ae103Smrg export $ac_envvar ;; 1136100ae103Smrg 1137100ae103Smrg *) 1138100ae103Smrg # FIXME: should be removed in autoconf 3.0. 1139165cb819Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1140100ae103Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1141165cb819Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1142100ae103Smrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1143100ae103Smrg ;; 1144100ae103Smrg 1145100ae103Smrg esac 1146100ae103Smrgdone 1147100ae103Smrg 1148100ae103Smrgif test -n "$ac_prev"; then 1149100ae103Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1150165cb819Smrg as_fn_error "missing argument to $ac_option" 1151100ae103Smrgfi 1152100ae103Smrg 1153165cb819Smrgif test -n "$ac_unrecognized_opts"; then 1154165cb819Smrg case $enable_option_checking in 1155165cb819Smrg no) ;; 1156165cb819Smrg fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1157165cb819Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1158100ae103Smrg esac 1159165cb819Smrgfi 1160100ae103Smrg 1161165cb819Smrg# Check all directory arguments for consistency. 1162165cb819Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1163165cb819Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1164165cb819Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1165165cb819Smrg libdir localedir mandir 1166100ae103Smrgdo 1167165cb819Smrg eval ac_val=\$$ac_var 1168165cb819Smrg # Remove trailing slashes. 1169165cb819Smrg case $ac_val in 1170165cb819Smrg */ ) 1171165cb819Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1172165cb819Smrg eval $ac_var=\$ac_val;; 1173165cb819Smrg esac 1174165cb819Smrg # Be sure to have absolute directory names. 1175100ae103Smrg case $ac_val in 1176165cb819Smrg [\\/$]* | ?:[\\/]* ) continue;; 1177165cb819Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1178100ae103Smrg esac 1179165cb819Smrg as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1180100ae103Smrgdone 1181100ae103Smrg 1182100ae103Smrg# There might be people who depend on the old broken behavior: `$host' 1183100ae103Smrg# used to hold the argument of --host etc. 1184100ae103Smrg# FIXME: To remove some day. 1185100ae103Smrgbuild=$build_alias 1186100ae103Smrghost=$host_alias 1187100ae103Smrgtarget=$target_alias 1188100ae103Smrg 1189100ae103Smrg# FIXME: To remove some day. 1190100ae103Smrgif test "x$host_alias" != x; then 1191100ae103Smrg if test "x$build_alias" = x; then 1192100ae103Smrg cross_compiling=maybe 1193165cb819Smrg $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1194100ae103Smrg If a cross compiler is detected then cross compile mode will be used." >&2 1195100ae103Smrg elif test "x$build_alias" != "x$host_alias"; then 1196100ae103Smrg cross_compiling=yes 1197100ae103Smrg fi 1198100ae103Smrgfi 1199100ae103Smrg 1200100ae103Smrgac_tool_prefix= 1201100ae103Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1202100ae103Smrg 1203100ae103Smrgtest "$silent" = yes && exec 6>/dev/null 1204100ae103Smrg 1205100ae103Smrg 1206165cb819Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1207165cb819Smrgac_ls_di=`ls -di .` && 1208165cb819Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1209165cb819Smrg as_fn_error "working directory cannot be determined" 1210165cb819Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1211165cb819Smrg as_fn_error "pwd does not report name of working directory" 1212165cb819Smrg 1213165cb819Smrg 1214100ae103Smrg# Find the source files, if location was not specified. 1215100ae103Smrgif test -z "$srcdir"; then 1216100ae103Smrg ac_srcdir_defaulted=yes 1217165cb819Smrg # Try the directory containing this script, then the parent directory. 1218165cb819Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1219165cb819Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1220165cb819Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1221165cb819Smrg X"$as_myself" : 'X\(//\)$' \| \ 1222165cb819Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1223165cb819Smrg$as_echo X"$as_myself" | 1224165cb819Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1225165cb819Smrg s//\1/ 1226165cb819Smrg q 1227165cb819Smrg } 1228165cb819Smrg /^X\(\/\/\)[^/].*/{ 1229165cb819Smrg s//\1/ 1230165cb819Smrg q 1231165cb819Smrg } 1232165cb819Smrg /^X\(\/\/\)$/{ 1233165cb819Smrg s//\1/ 1234165cb819Smrg q 1235165cb819Smrg } 1236165cb819Smrg /^X\(\/\).*/{ 1237165cb819Smrg s//\1/ 1238165cb819Smrg q 1239165cb819Smrg } 1240165cb819Smrg s/.*/./; q'` 1241100ae103Smrg srcdir=$ac_confdir 1242165cb819Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1243100ae103Smrg srcdir=.. 1244100ae103Smrg fi 1245100ae103Smrgelse 1246100ae103Smrg ac_srcdir_defaulted=no 1247100ae103Smrgfi 1248165cb819Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1249165cb819Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1250165cb819Smrg as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1251165cb819Smrgfi 1252165cb819Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1253165cb819Smrgac_abs_confdir=`( 1254165cb819Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1255165cb819Smrg pwd)` 1256165cb819Smrg# When building in place, set srcdir=. 1257165cb819Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1258165cb819Smrg srcdir=. 1259165cb819Smrgfi 1260165cb819Smrg# Remove unnecessary trailing slashes from srcdir. 1261165cb819Smrg# Double slashes in file names in object file debugging info 1262165cb819Smrg# mess up M-x gdb in Emacs. 1263165cb819Smrgcase $srcdir in 1264165cb819Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1265165cb819Smrgesac 1266165cb819Smrgfor ac_var in $ac_precious_vars; do 1267165cb819Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1268165cb819Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1269165cb819Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1270165cb819Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1271165cb819Smrgdone 1272100ae103Smrg 1273100ae103Smrg# 1274100ae103Smrg# Report the --help message. 1275100ae103Smrg# 1276100ae103Smrgif test "$ac_init_help" = "long"; then 1277100ae103Smrg # Omit some internal or obsolete options to make the list less imposing. 1278100ae103Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1279100ae103Smrg cat <<_ACEOF 1280165cb819Smrg\`configure' configures xmessage 1.0.3 to adapt to many kinds of systems. 1281100ae103Smrg 1282100ae103SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1283100ae103Smrg 1284100ae103SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1285100ae103SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1286100ae103Smrg 1287100ae103SmrgDefaults for the options are specified in brackets. 1288100ae103Smrg 1289100ae103SmrgConfiguration: 1290100ae103Smrg -h, --help display this help and exit 1291100ae103Smrg --help=short display options specific to this package 1292100ae103Smrg --help=recursive display the short help of all the included packages 1293100ae103Smrg -V, --version display version information and exit 1294100ae103Smrg -q, --quiet, --silent do not print \`checking...' messages 1295100ae103Smrg --cache-file=FILE cache test results in FILE [disabled] 1296100ae103Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1297100ae103Smrg -n, --no-create do not create output files 1298100ae103Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1299100ae103Smrg 1300100ae103SmrgInstallation directories: 1301100ae103Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1302165cb819Smrg [$ac_default_prefix] 1303100ae103Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1304165cb819Smrg [PREFIX] 1305100ae103Smrg 1306100ae103SmrgBy default, \`make install' will install all the files in 1307100ae103Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1308100ae103Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1309100ae103Smrgfor instance \`--prefix=\$HOME'. 1310100ae103Smrg 1311100ae103SmrgFor better control, use the options below. 1312100ae103Smrg 1313100ae103SmrgFine tuning of the installation directories: 1314165cb819Smrg --bindir=DIR user executables [EPREFIX/bin] 1315165cb819Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1316165cb819Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1317165cb819Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1318165cb819Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1319165cb819Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1320165cb819Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1321165cb819Smrg --includedir=DIR C header files [PREFIX/include] 1322165cb819Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1323165cb819Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1324165cb819Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1325165cb819Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1326165cb819Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1327165cb819Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1328165cb819Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xmessage] 1329165cb819Smrg --htmldir=DIR html documentation [DOCDIR] 1330165cb819Smrg --dvidir=DIR dvi documentation [DOCDIR] 1331165cb819Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1332165cb819Smrg --psdir=DIR ps documentation [DOCDIR] 1333100ae103Smrg_ACEOF 1334100ae103Smrg 1335100ae103Smrg cat <<\_ACEOF 1336100ae103Smrg 1337100ae103SmrgProgram names: 1338100ae103Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1339100ae103Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1340100ae103Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1341100ae103Smrg 1342100ae103SmrgSystem types: 1343100ae103Smrg --build=BUILD configure for building on BUILD [guessed] 1344100ae103Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1345100ae103Smrg_ACEOF 1346100ae103Smrgfi 1347100ae103Smrg 1348100ae103Smrgif test -n "$ac_init_help"; then 1349100ae103Smrg case $ac_init_help in 1350165cb819Smrg short | recursive ) echo "Configuration of xmessage 1.0.3:";; 1351100ae103Smrg esac 1352100ae103Smrg cat <<\_ACEOF 1353100ae103Smrg 1354100ae103SmrgOptional Features: 1355165cb819Smrg --disable-option-checking ignore unrecognized --enable/--with options 1356100ae103Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1357100ae103Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1358100ae103Smrg --enable-maintainer-mode enable make rules and dependencies not useful 1359100ae103Smrg (and sometimes confusing) to the casual installer 1360100ae103Smrg --disable-dependency-tracking speeds up one-time build 1361100ae103Smrg --enable-dependency-tracking do not reject slow dependency extractors 1362165cb819Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1363165cb819Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1364165cb819Smrg --enable-strict-compilation 1365165cb819Smrg Enable all warnings from compiler and make them 1366165cb819Smrg errors (default: disabled) 1367100ae103Smrg 1368100ae103SmrgOptional Packages: 1369100ae103Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1370100ae103Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1371100ae103Smrg --with-release-version=STRING 1372100ae103Smrg Use release version string in package name 1373165cb819Smrg --with-appdefaultdir=<pathname> 1374165cb819Smrg specify directory for app-defaults files (default is 1375165cb819Smrg autodetected) 1376100ae103Smrg 1377100ae103SmrgSome influential environment variables: 1378100ae103Smrg CC C compiler command 1379100ae103Smrg CFLAGS C compiler flags 1380100ae103Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1381100ae103Smrg nonstandard directory <lib dir> 1382165cb819Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1383165cb819Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1384165cb819Smrg you have headers in a nonstandard directory <include dir> 1385165cb819Smrg CPP C preprocessor 1386100ae103Smrg PKG_CONFIG path to pkg-config utility 1387165cb819Smrg XMESSAGE_CFLAGS 1388165cb819Smrg C compiler flags for XMESSAGE, overriding pkg-config 1389165cb819Smrg XMESSAGE_LIBS 1390165cb819Smrg linker flags for XMESSAGE, overriding pkg-config 1391100ae103Smrg APPDEFS_CFLAGS 1392100ae103Smrg C compiler flags for APPDEFS, overriding pkg-config 1393100ae103Smrg APPDEFS_LIBS 1394100ae103Smrg linker flags for APPDEFS, overriding pkg-config 1395100ae103Smrg 1396100ae103SmrgUse these variables to override the choices made by `configure' or to help 1397100ae103Smrgit to find libraries and programs with nonstandard names/locations. 1398100ae103Smrg 1399100ae103SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1400100ae103Smrg_ACEOF 1401165cb819Smrgac_status=$? 1402100ae103Smrgfi 1403100ae103Smrg 1404100ae103Smrgif test "$ac_init_help" = "recursive"; then 1405100ae103Smrg # If there are subdirs, report their specific --help. 1406100ae103Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1407165cb819Smrg test -d "$ac_dir" || 1408165cb819Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1409165cb819Smrg continue 1410100ae103Smrg ac_builddir=. 1411100ae103Smrg 1412165cb819Smrgcase "$ac_dir" in 1413165cb819Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1414165cb819Smrg*) 1415165cb819Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1416165cb819Smrg # A ".." for each directory in $ac_dir_suffix. 1417165cb819Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1418165cb819Smrg case $ac_top_builddir_sub in 1419165cb819Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1420165cb819Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1421165cb819Smrg esac ;; 1422165cb819Smrgesac 1423165cb819Smrgac_abs_top_builddir=$ac_pwd 1424165cb819Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1425165cb819Smrg# for backward compatibility: 1426165cb819Smrgac_top_builddir=$ac_top_build_prefix 1427100ae103Smrg 1428100ae103Smrgcase $srcdir in 1429165cb819Smrg .) # We are building in place. 1430100ae103Smrg ac_srcdir=. 1431165cb819Smrg ac_top_srcdir=$ac_top_builddir_sub 1432165cb819Smrg ac_abs_top_srcdir=$ac_pwd ;; 1433165cb819Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1434100ae103Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1435165cb819Smrg ac_top_srcdir=$srcdir 1436165cb819Smrg ac_abs_top_srcdir=$srcdir ;; 1437165cb819Smrg *) # Relative name. 1438165cb819Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1439165cb819Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1440165cb819Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1441100ae103Smrgesac 1442165cb819Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1443165cb819Smrg 1444165cb819Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1445165cb819Smrg # Check for guested configure. 1446165cb819Smrg if test -f "$ac_srcdir/configure.gnu"; then 1447165cb819Smrg echo && 1448165cb819Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1449165cb819Smrg elif test -f "$ac_srcdir/configure"; then 1450165cb819Smrg echo && 1451165cb819Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1452100ae103Smrg else 1453165cb819Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1454165cb819Smrg fi || ac_status=$? 1455165cb819Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1456100ae103Smrg done 1457100ae103Smrgfi 1458100ae103Smrg 1459165cb819Smrgtest -n "$ac_init_help" && exit $ac_status 1460100ae103Smrgif $ac_init_version; then 1461100ae103Smrg cat <<\_ACEOF 1462165cb819Smrgxmessage configure 1.0.3 1463165cb819Smrggenerated by GNU Autoconf 2.65 1464100ae103Smrg 1465165cb819SmrgCopyright (C) 2009 Free Software Foundation, Inc. 1466100ae103SmrgThis configure script is free software; the Free Software Foundation 1467100ae103Smrggives unlimited permission to copy, distribute and modify it. 1468100ae103Smrg_ACEOF 1469165cb819Smrg exit 1470100ae103Smrgfi 1471100ae103Smrg 1472165cb819Smrg## ------------------------ ## 1473165cb819Smrg## Autoconf initialization. ## 1474165cb819Smrg## ------------------------ ## 1475100ae103Smrg 1476165cb819Smrg# ac_fn_c_try_compile LINENO 1477165cb819Smrg# -------------------------- 1478165cb819Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1479165cb819Smrgac_fn_c_try_compile () 1480100ae103Smrg{ 1481165cb819Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1482165cb819Smrg rm -f conftest.$ac_objext 1483165cb819Smrg if { { ac_try="$ac_compile" 1484165cb819Smrgcase "(($ac_try" in 1485165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1486165cb819Smrg *) ac_try_echo=$ac_try;; 1487165cb819Smrgesac 1488165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1489165cb819Smrg$as_echo "$ac_try_echo"; } >&5 1490165cb819Smrg (eval "$ac_compile") 2>conftest.err 1491165cb819Smrg ac_status=$? 1492165cb819Smrg if test -s conftest.err; then 1493165cb819Smrg grep -v '^ *+' conftest.err >conftest.er1 1494165cb819Smrg cat conftest.er1 >&5 1495165cb819Smrg mv -f conftest.er1 conftest.err 1496165cb819Smrg fi 1497165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1498165cb819Smrg test $ac_status = 0; } && { 1499165cb819Smrg test -z "$ac_c_werror_flag" || 1500165cb819Smrg test ! -s conftest.err 1501165cb819Smrg } && test -s conftest.$ac_objext; then : 1502165cb819Smrg ac_retval=0 1503165cb819Smrgelse 1504165cb819Smrg $as_echo "$as_me: failed program was:" >&5 1505165cb819Smrgsed 's/^/| /' conftest.$ac_ext >&5 1506100ae103Smrg 1507165cb819Smrg ac_retval=1 1508165cb819Smrgfi 1509165cb819Smrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1510165cb819Smrg as_fn_set_status $ac_retval 1511100ae103Smrg 1512165cb819Smrg} # ac_fn_c_try_compile 1513100ae103Smrg 1514165cb819Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR 1515165cb819Smrg# ------------------------------------ 1516165cb819Smrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 1517165cb819Smrgac_fn_c_check_decl () 1518165cb819Smrg{ 1519165cb819Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 1521165cb819Smrg$as_echo_n "checking whether $2 is declared... " >&6; } 1522165cb819Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1523165cb819Smrg $as_echo_n "(cached) " >&6 1524165cb819Smrgelse 1525165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1526165cb819Smrg/* end confdefs.h. */ 1527165cb819Smrg$4 1528165cb819Smrgint 1529165cb819Smrgmain () 1530165cb819Smrg{ 1531165cb819Smrg#ifndef $2 1532165cb819Smrg (void) $2; 1533165cb819Smrg#endif 1534100ae103Smrg 1535165cb819Smrg ; 1536165cb819Smrg return 0; 1537165cb819Smrg} 1538165cb819Smrg_ACEOF 1539165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 1540165cb819Smrg eval "$3=yes" 1541165cb819Smrgelse 1542165cb819Smrg eval "$3=no" 1543165cb819Smrgfi 1544165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1545165cb819Smrgfi 1546165cb819Smrgeval ac_res=\$$3 1547165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1548165cb819Smrg$as_echo "$ac_res" >&6; } 1549165cb819Smrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1550100ae103Smrg 1551165cb819Smrg} # ac_fn_c_check_decl 1552165cb819Smrg 1553165cb819Smrg# ac_fn_c_try_cpp LINENO 1554165cb819Smrg# ---------------------- 1555165cb819Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1556165cb819Smrgac_fn_c_try_cpp () 1557165cb819Smrg{ 1558165cb819Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559165cb819Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1560165cb819Smrgcase "(($ac_try" in 1561165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562165cb819Smrg *) ac_try_echo=$ac_try;; 1563165cb819Smrgesac 1564165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565165cb819Smrg$as_echo "$ac_try_echo"; } >&5 1566165cb819Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1567165cb819Smrg ac_status=$? 1568165cb819Smrg if test -s conftest.err; then 1569165cb819Smrg grep -v '^ *+' conftest.err >conftest.er1 1570165cb819Smrg cat conftest.er1 >&5 1571165cb819Smrg mv -f conftest.er1 conftest.err 1572165cb819Smrg fi 1573165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1574165cb819Smrg test $ac_status = 0; } >/dev/null && { 1575165cb819Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1576165cb819Smrg test ! -s conftest.err 1577165cb819Smrg }; then : 1578165cb819Smrg ac_retval=0 1579165cb819Smrgelse 1580165cb819Smrg $as_echo "$as_me: failed program was:" >&5 1581165cb819Smrgsed 's/^/| /' conftest.$ac_ext >&5 1582165cb819Smrg 1583165cb819Smrg ac_retval=1 1584165cb819Smrgfi 1585165cb819Smrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1586165cb819Smrg as_fn_set_status $ac_retval 1587165cb819Smrg 1588165cb819Smrg} # ac_fn_c_try_cpp 1589165cb819Smrg 1590165cb819Smrg# ac_fn_c_try_run LINENO 1591165cb819Smrg# ---------------------- 1592165cb819Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1593165cb819Smrg# that executables *can* be run. 1594165cb819Smrgac_fn_c_try_run () 1595165cb819Smrg{ 1596165cb819Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597165cb819Smrg if { { ac_try="$ac_link" 1598165cb819Smrgcase "(($ac_try" in 1599165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1600165cb819Smrg *) ac_try_echo=$ac_try;; 1601165cb819Smrgesac 1602165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1603165cb819Smrg$as_echo "$ac_try_echo"; } >&5 1604165cb819Smrg (eval "$ac_link") 2>&5 1605165cb819Smrg ac_status=$? 1606165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607165cb819Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1608165cb819Smrg { { case "(($ac_try" in 1609165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610165cb819Smrg *) ac_try_echo=$ac_try;; 1611165cb819Smrgesac 1612165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613165cb819Smrg$as_echo "$ac_try_echo"; } >&5 1614165cb819Smrg (eval "$ac_try") 2>&5 1615165cb819Smrg ac_status=$? 1616165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617165cb819Smrg test $ac_status = 0; }; }; then : 1618165cb819Smrg ac_retval=0 1619165cb819Smrgelse 1620165cb819Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 1621165cb819Smrg $as_echo "$as_me: failed program was:" >&5 1622165cb819Smrgsed 's/^/| /' conftest.$ac_ext >&5 1623165cb819Smrg 1624165cb819Smrg ac_retval=$ac_status 1625165cb819Smrgfi 1626165cb819Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1627165cb819Smrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1628165cb819Smrg as_fn_set_status $ac_retval 1629165cb819Smrg 1630165cb819Smrg} # ac_fn_c_try_run 1631165cb819Smrg 1632165cb819Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1633165cb819Smrg# ------------------------------------------------------- 1634165cb819Smrg# Tests whether HEADER exists and can be compiled using the include files in 1635165cb819Smrg# INCLUDES, setting the cache variable VAR accordingly. 1636165cb819Smrgac_fn_c_check_header_compile () 1637165cb819Smrg{ 1638165cb819Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640165cb819Smrg$as_echo_n "checking for $2... " >&6; } 1641165cb819Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1642165cb819Smrg $as_echo_n "(cached) " >&6 1643165cb819Smrgelse 1644165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1645165cb819Smrg/* end confdefs.h. */ 1646165cb819Smrg$4 1647165cb819Smrg#include <$2> 1648165cb819Smrg_ACEOF 1649165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 1650165cb819Smrg eval "$3=yes" 1651165cb819Smrgelse 1652165cb819Smrg eval "$3=no" 1653165cb819Smrgfi 1654165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1655165cb819Smrgfi 1656165cb819Smrgeval ac_res=\$$3 1657165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1658165cb819Smrg$as_echo "$ac_res" >&6; } 1659165cb819Smrg eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1660165cb819Smrg 1661165cb819Smrg} # ac_fn_c_check_header_compile 1662165cb819Smrgcat >config.log <<_ACEOF 1663165cb819SmrgThis file contains any messages produced by compilers while 1664165cb819Smrgrunning configure, to aid debugging if configure makes a mistake. 1665165cb819Smrg 1666165cb819SmrgIt was created by xmessage $as_me 1.0.3, which was 1667165cb819Smrggenerated by GNU Autoconf 2.65. Invocation command line was 1668165cb819Smrg 1669165cb819Smrg $ $0 $@ 1670165cb819Smrg 1671165cb819Smrg_ACEOF 1672165cb819Smrgexec 5>>config.log 1673165cb819Smrg{ 1674165cb819Smrgcat <<_ASUNAME 1675165cb819Smrg## --------- ## 1676165cb819Smrg## Platform. ## 1677165cb819Smrg## --------- ## 1678165cb819Smrg 1679165cb819Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1680165cb819Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1681165cb819Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1682165cb819Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1683165cb819Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1684165cb819Smrg 1685165cb819Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1686165cb819Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1687165cb819Smrg 1688165cb819Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1689165cb819Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1690165cb819Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1691165cb819Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1692165cb819Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1693165cb819Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1694165cb819Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1695165cb819Smrg 1696165cb819Smrg_ASUNAME 1697165cb819Smrg 1698165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1699165cb819Smrgfor as_dir in $PATH 1700165cb819Smrgdo 1701165cb819Smrg IFS=$as_save_IFS 1702165cb819Smrg test -z "$as_dir" && as_dir=. 1703165cb819Smrg $as_echo "PATH: $as_dir" 1704165cb819Smrg done 1705165cb819SmrgIFS=$as_save_IFS 1706100ae103Smrg 1707100ae103Smrg} >&5 1708100ae103Smrg 1709100ae103Smrgcat >&5 <<_ACEOF 1710100ae103Smrg 1711100ae103Smrg 1712100ae103Smrg## ----------- ## 1713100ae103Smrg## Core tests. ## 1714100ae103Smrg## ----------- ## 1715100ae103Smrg 1716100ae103Smrg_ACEOF 1717100ae103Smrg 1718100ae103Smrg 1719100ae103Smrg# Keep a trace of the command line. 1720100ae103Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1721100ae103Smrg# Strip out --silent because we don't want to record it for future runs. 1722100ae103Smrg# Also quote any args containing shell meta-characters. 1723100ae103Smrg# Make two passes to allow for proper duplicate-argument suppression. 1724100ae103Smrgac_configure_args= 1725100ae103Smrgac_configure_args0= 1726100ae103Smrgac_configure_args1= 1727100ae103Smrgac_must_keep_next=false 1728100ae103Smrgfor ac_pass in 1 2 1729100ae103Smrgdo 1730100ae103Smrg for ac_arg 1731100ae103Smrg do 1732100ae103Smrg case $ac_arg in 1733100ae103Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1734100ae103Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1735100ae103Smrg | -silent | --silent | --silen | --sile | --sil) 1736100ae103Smrg continue ;; 1737165cb819Smrg *\'*) 1738165cb819Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1739100ae103Smrg esac 1740100ae103Smrg case $ac_pass in 1741165cb819Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1742100ae103Smrg 2) 1743165cb819Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1744100ae103Smrg if test $ac_must_keep_next = true; then 1745100ae103Smrg ac_must_keep_next=false # Got value, back to normal. 1746100ae103Smrg else 1747100ae103Smrg case $ac_arg in 1748100ae103Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1749100ae103Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1750100ae103Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1751100ae103Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1752100ae103Smrg case "$ac_configure_args0 " in 1753100ae103Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1754100ae103Smrg esac 1755100ae103Smrg ;; 1756100ae103Smrg -* ) ac_must_keep_next=true ;; 1757100ae103Smrg esac 1758100ae103Smrg fi 1759165cb819Smrg as_fn_append ac_configure_args " '$ac_arg'" 1760100ae103Smrg ;; 1761100ae103Smrg esac 1762100ae103Smrg done 1763100ae103Smrgdone 1764165cb819Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1765165cb819Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1766100ae103Smrg 1767100ae103Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1768100ae103Smrg# config.log. We remove comments because anyway the quotes in there 1769100ae103Smrg# would cause problems or look ugly. 1770165cb819Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1771165cb819Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1772100ae103Smrgtrap 'exit_status=$? 1773100ae103Smrg # Save into config.log some information that might help in debugging. 1774100ae103Smrg { 1775100ae103Smrg echo 1776100ae103Smrg 1777100ae103Smrg cat <<\_ASBOX 1778100ae103Smrg## ---------------- ## 1779100ae103Smrg## Cache variables. ## 1780100ae103Smrg## ---------------- ## 1781100ae103Smrg_ASBOX 1782100ae103Smrg echo 1783100ae103Smrg # The following way of writing the cache mishandles newlines in values, 1784165cb819Smrg( 1785165cb819Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1786165cb819Smrg eval ac_val=\$$ac_var 1787165cb819Smrg case $ac_val in #( 1788165cb819Smrg *${as_nl}*) 1789165cb819Smrg case $ac_var in #( 1790165cb819Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1791165cb819Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1792165cb819Smrg esac 1793165cb819Smrg case $ac_var in #( 1794165cb819Smrg _ | IFS | as_nl) ;; #( 1795165cb819Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1796165cb819Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1797165cb819Smrg esac ;; 1798165cb819Smrg esac 1799165cb819Smrg done 1800100ae103Smrg (set) 2>&1 | 1801165cb819Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1802165cb819Smrg *${as_nl}ac_space=\ *) 1803100ae103Smrg sed -n \ 1804165cb819Smrg "s/'\''/'\''\\\\'\'''\''/g; 1805165cb819Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1806165cb819Smrg ;; #( 1807100ae103Smrg *) 1808165cb819Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1809100ae103Smrg ;; 1810165cb819Smrg esac | 1811165cb819Smrg sort 1812165cb819Smrg) 1813100ae103Smrg echo 1814100ae103Smrg 1815100ae103Smrg cat <<\_ASBOX 1816100ae103Smrg## ----------------- ## 1817100ae103Smrg## Output variables. ## 1818100ae103Smrg## ----------------- ## 1819100ae103Smrg_ASBOX 1820100ae103Smrg echo 1821100ae103Smrg for ac_var in $ac_subst_vars 1822100ae103Smrg do 1823165cb819Smrg eval ac_val=\$$ac_var 1824165cb819Smrg case $ac_val in 1825165cb819Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1826165cb819Smrg esac 1827165cb819Smrg $as_echo "$ac_var='\''$ac_val'\''" 1828100ae103Smrg done | sort 1829100ae103Smrg echo 1830100ae103Smrg 1831100ae103Smrg if test -n "$ac_subst_files"; then 1832100ae103Smrg cat <<\_ASBOX 1833165cb819Smrg## ------------------- ## 1834165cb819Smrg## File substitutions. ## 1835165cb819Smrg## ------------------- ## 1836100ae103Smrg_ASBOX 1837100ae103Smrg echo 1838100ae103Smrg for ac_var in $ac_subst_files 1839100ae103Smrg do 1840165cb819Smrg eval ac_val=\$$ac_var 1841165cb819Smrg case $ac_val in 1842165cb819Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1843165cb819Smrg esac 1844165cb819Smrg $as_echo "$ac_var='\''$ac_val'\''" 1845100ae103Smrg done | sort 1846100ae103Smrg echo 1847100ae103Smrg fi 1848100ae103Smrg 1849100ae103Smrg if test -s confdefs.h; then 1850100ae103Smrg cat <<\_ASBOX 1851100ae103Smrg## ----------- ## 1852100ae103Smrg## confdefs.h. ## 1853100ae103Smrg## ----------- ## 1854100ae103Smrg_ASBOX 1855100ae103Smrg echo 1856165cb819Smrg cat confdefs.h 1857100ae103Smrg echo 1858100ae103Smrg fi 1859100ae103Smrg test "$ac_signal" != 0 && 1860165cb819Smrg $as_echo "$as_me: caught signal $ac_signal" 1861165cb819Smrg $as_echo "$as_me: exit $exit_status" 1862100ae103Smrg } >&5 1863165cb819Smrg rm -f core *.core core.conftest.* && 1864165cb819Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1865100ae103Smrg exit $exit_status 1866165cb819Smrg' 0 1867100ae103Smrgfor ac_signal in 1 2 13 15; do 1868165cb819Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1869100ae103Smrgdone 1870100ae103Smrgac_signal=0 1871100ae103Smrg 1872100ae103Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1873165cb819Smrgrm -f -r conftest* confdefs.h 1874165cb819Smrg 1875165cb819Smrg$as_echo "/* confdefs.h */" > confdefs.h 1876100ae103Smrg 1877100ae103Smrg# Predefined preprocessor variables. 1878100ae103Smrg 1879100ae103Smrgcat >>confdefs.h <<_ACEOF 1880100ae103Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 1881100ae103Smrg_ACEOF 1882100ae103Smrg 1883100ae103Smrgcat >>confdefs.h <<_ACEOF 1884100ae103Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1885100ae103Smrg_ACEOF 1886100ae103Smrg 1887100ae103Smrgcat >>confdefs.h <<_ACEOF 1888100ae103Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1889100ae103Smrg_ACEOF 1890100ae103Smrg 1891100ae103Smrgcat >>confdefs.h <<_ACEOF 1892100ae103Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 1893100ae103Smrg_ACEOF 1894100ae103Smrg 1895100ae103Smrgcat >>confdefs.h <<_ACEOF 1896100ae103Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1897100ae103Smrg_ACEOF 1898100ae103Smrg 1899165cb819Smrgcat >>confdefs.h <<_ACEOF 1900165cb819Smrg#define PACKAGE_URL "$PACKAGE_URL" 1901165cb819Smrg_ACEOF 1902165cb819Smrg 1903100ae103Smrg 1904100ae103Smrg# Let the site file select an alternate cache file if it wants to. 1905165cb819Smrg# Prefer an explicitly selected file to automatically selected ones. 1906165cb819Smrgac_site_file1=NONE 1907165cb819Smrgac_site_file2=NONE 1908165cb819Smrgif test -n "$CONFIG_SITE"; then 1909165cb819Smrg ac_site_file1=$CONFIG_SITE 1910165cb819Smrgelif test "x$prefix" != xNONE; then 1911165cb819Smrg ac_site_file1=$prefix/share/config.site 1912165cb819Smrg ac_site_file2=$prefix/etc/config.site 1913165cb819Smrgelse 1914165cb819Smrg ac_site_file1=$ac_default_prefix/share/config.site 1915165cb819Smrg ac_site_file2=$ac_default_prefix/etc/config.site 1916100ae103Smrgfi 1917165cb819Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1918165cb819Smrgdo 1919165cb819Smrg test "x$ac_site_file" = xNONE && continue 1920165cb819Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1921165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1922165cb819Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1923100ae103Smrg sed 's/^/| /' "$ac_site_file" >&5 1924100ae103Smrg . "$ac_site_file" 1925100ae103Smrg fi 1926100ae103Smrgdone 1927100ae103Smrg 1928100ae103Smrgif test -r "$cache_file"; then 1929165cb819Smrg # Some versions of bash will fail to source /dev/null (special files 1930165cb819Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1931165cb819Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1932165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1933165cb819Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 1934100ae103Smrg case $cache_file in 1935165cb819Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1936165cb819Smrg *) . "./$cache_file";; 1937100ae103Smrg esac 1938100ae103Smrg fi 1939100ae103Smrgelse 1940165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1941165cb819Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 1942100ae103Smrg >$cache_file 1943100ae103Smrgfi 1944100ae103Smrg 1945100ae103Smrg# Check that the precious variables saved in the cache have kept the same 1946100ae103Smrg# value. 1947100ae103Smrgac_cache_corrupted=false 1948165cb819Smrgfor ac_var in $ac_precious_vars; do 1949100ae103Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 1950100ae103Smrg eval ac_new_set=\$ac_env_${ac_var}_set 1951165cb819Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 1952165cb819Smrg eval ac_new_val=\$ac_env_${ac_var}_value 1953100ae103Smrg case $ac_old_set,$ac_new_set in 1954100ae103Smrg set,) 1955165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1956165cb819Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1957100ae103Smrg ac_cache_corrupted=: ;; 1958100ae103Smrg ,set) 1959165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1960165cb819Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1961100ae103Smrg ac_cache_corrupted=: ;; 1962100ae103Smrg ,);; 1963100ae103Smrg *) 1964100ae103Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 1965165cb819Smrg # differences in whitespace do not lead to failure. 1966165cb819Smrg ac_old_val_w=`echo x $ac_old_val` 1967165cb819Smrg ac_new_val_w=`echo x $ac_new_val` 1968165cb819Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 1969165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1970165cb819Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1971165cb819Smrg ac_cache_corrupted=: 1972165cb819Smrg else 1973165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1974165cb819Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1975165cb819Smrg eval $ac_var=\$ac_old_val 1976165cb819Smrg fi 1977165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1978165cb819Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1979165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1980165cb819Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1981100ae103Smrg fi;; 1982100ae103Smrg esac 1983100ae103Smrg # Pass precious variables to config.status. 1984100ae103Smrg if test "$ac_new_set" = set; then 1985100ae103Smrg case $ac_new_val in 1986165cb819Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1987100ae103Smrg *) ac_arg=$ac_var=$ac_new_val ;; 1988100ae103Smrg esac 1989100ae103Smrg case " $ac_configure_args " in 1990100ae103Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1991165cb819Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1992100ae103Smrg esac 1993100ae103Smrg fi 1994100ae103Smrgdone 1995100ae103Smrgif $ac_cache_corrupted; then 1996165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1997165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1998165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1999165cb819Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2000165cb819Smrg as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2001100ae103Smrgfi 2002165cb819Smrg## -------------------- ## 2003165cb819Smrg## Main body of script. ## 2004165cb819Smrg## -------------------- ## 2005100ae103Smrg 2006100ae103Smrgac_ext=c 2007100ae103Smrgac_cpp='$CPP $CPPFLAGS' 2008100ae103Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2009100ae103Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2010100ae103Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2011100ae103Smrg 2012100ae103Smrg 2013165cb819Smrgam__api_version='1.11' 2014100ae103Smrg 2015100ae103Smrgac_aux_dir= 2016165cb819Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2017165cb819Smrg for ac_t in install-sh install.sh shtool; do 2018165cb819Smrg if test -f "$ac_dir/$ac_t"; then 2019165cb819Smrg ac_aux_dir=$ac_dir 2020165cb819Smrg ac_install_sh="$ac_aux_dir/$ac_t -c" 2021165cb819Smrg break 2 2022165cb819Smrg fi 2023165cb819Smrg done 2024100ae103Smrgdone 2025100ae103Smrgif test -z "$ac_aux_dir"; then 2026165cb819Smrg as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2027100ae103Smrgfi 2028165cb819Smrg 2029165cb819Smrg# These three variables are undocumented and unsupported, 2030165cb819Smrg# and are intended to be withdrawn in a future Autoconf release. 2031165cb819Smrg# They can cause serious problems if a builder's source tree is in a directory 2032165cb819Smrg# whose full name contains unusual characters. 2033165cb819Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2034165cb819Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2035165cb819Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2036165cb819Smrg 2037100ae103Smrg 2038100ae103Smrg# Find a good install program. We prefer a C program (faster), 2039100ae103Smrg# so one script is as good as another. But avoid the broken or 2040100ae103Smrg# incompatible versions: 2041100ae103Smrg# SysV /etc/install, /usr/sbin/install 2042100ae103Smrg# SunOS /usr/etc/install 2043100ae103Smrg# IRIX /sbin/install 2044100ae103Smrg# AIX /bin/install 2045100ae103Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2046100ae103Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2047100ae103Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2048100ae103Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2049100ae103Smrg# OS/2's system install, which has a completely different semantic 2050100ae103Smrg# ./install, which can be erroneously created by make from ./install.sh. 2051165cb819Smrg# Reject install programs that cannot install multiple files. 2052165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2053165cb819Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2054100ae103Smrgif test -z "$INSTALL"; then 2055165cb819Smrgif test "${ac_cv_path_install+set}" = set; then : 2056165cb819Smrg $as_echo_n "(cached) " >&6 2057100ae103Smrgelse 2058100ae103Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2059100ae103Smrgfor as_dir in $PATH 2060100ae103Smrgdo 2061100ae103Smrg IFS=$as_save_IFS 2062100ae103Smrg test -z "$as_dir" && as_dir=. 2063165cb819Smrg # Account for people who put trailing slashes in PATH elements. 2064165cb819Smrgcase $as_dir/ in #(( 2065165cb819Smrg ./ | .// | /[cC]/* | \ 2066100ae103Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2067165cb819Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2068100ae103Smrg /usr/ucb/* ) ;; 2069100ae103Smrg *) 2070100ae103Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 2071100ae103Smrg # Don't use installbsd from OSF since it installs stuff as root 2072100ae103Smrg # by default. 2073100ae103Smrg for ac_prog in ginstall scoinst install; do 2074100ae103Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2075165cb819Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2076100ae103Smrg if test $ac_prog = install && 2077100ae103Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2078100ae103Smrg # AIX install. It has an incompatible calling convention. 2079100ae103Smrg : 2080100ae103Smrg elif test $ac_prog = install && 2081100ae103Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2082100ae103Smrg # program-specific install script used by HP pwplus--don't use. 2083100ae103Smrg : 2084100ae103Smrg else 2085165cb819Smrg rm -rf conftest.one conftest.two conftest.dir 2086165cb819Smrg echo one > conftest.one 2087165cb819Smrg echo two > conftest.two 2088165cb819Smrg mkdir conftest.dir 2089165cb819Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2090165cb819Smrg test -s conftest.one && test -s conftest.two && 2091165cb819Smrg test -s conftest.dir/conftest.one && 2092165cb819Smrg test -s conftest.dir/conftest.two 2093165cb819Smrg then 2094165cb819Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2095165cb819Smrg break 3 2096165cb819Smrg fi 2097100ae103Smrg fi 2098100ae103Smrg fi 2099100ae103Smrg done 2100100ae103Smrg done 2101100ae103Smrg ;; 2102100ae103Smrgesac 2103100ae103Smrg 2104165cb819Smrg done 2105165cb819SmrgIFS=$as_save_IFS 2106165cb819Smrg 2107165cb819Smrgrm -rf conftest.one conftest.two conftest.dir 2108100ae103Smrg 2109100ae103Smrgfi 2110100ae103Smrg if test "${ac_cv_path_install+set}" = set; then 2111100ae103Smrg INSTALL=$ac_cv_path_install 2112100ae103Smrg else 2113165cb819Smrg # As a last resort, use the slow shell script. Don't cache a 2114165cb819Smrg # value for INSTALL within a source directory, because that will 2115100ae103Smrg # break other packages using the cache if that directory is 2116165cb819Smrg # removed, or if the value is a relative name. 2117100ae103Smrg INSTALL=$ac_install_sh 2118100ae103Smrg fi 2119100ae103Smrgfi 2120165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2121165cb819Smrg$as_echo "$INSTALL" >&6; } 2122100ae103Smrg 2123100ae103Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2124100ae103Smrg# It thinks the first close brace ends the variable substitution. 2125100ae103Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2126100ae103Smrg 2127100ae103Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2128100ae103Smrg 2129100ae103Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2130100ae103Smrg 2131165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2132165cb819Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 2133100ae103Smrg# Just in case 2134100ae103Smrgsleep 1 2135100ae103Smrgecho timestamp > conftest.file 2136165cb819Smrg# Reject unsafe characters in $srcdir or the absolute working directory 2137165cb819Smrg# name. Accept space and tab only in the latter. 2138165cb819Smrgam_lf=' 2139165cb819Smrg' 2140165cb819Smrgcase `pwd` in 2141165cb819Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2142165cb819Smrg as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2143165cb819Smrgesac 2144165cb819Smrgcase $srcdir in 2145165cb819Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2146165cb819Smrg as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2147165cb819Smrgesac 2148165cb819Smrg 2149100ae103Smrg# Do `set' in a subshell so we don't clobber the current shell's 2150100ae103Smrg# arguments. Must try -L first in case configure is actually a 2151100ae103Smrg# symlink; some systems play weird games with the mod time of symlinks 2152100ae103Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2153100ae103Smrg# directory). 2154100ae103Smrgif ( 2155165cb819Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2156100ae103Smrg if test "$*" = "X"; then 2157100ae103Smrg # -L didn't work. 2158165cb819Smrg set X `ls -t "$srcdir/configure" conftest.file` 2159100ae103Smrg fi 2160100ae103Smrg rm -f conftest.file 2161100ae103Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 2162100ae103Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 2163100ae103Smrg 2164100ae103Smrg # If neither matched, then we have a broken ls. This can happen 2165100ae103Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2166100ae103Smrg # broken ls alias from the environment. This has actually 2167100ae103Smrg # happened. Such a system could not be considered "sane". 2168165cb819Smrg as_fn_error "ls -t appears to fail. Make sure there is not a broken 2169165cb819Smrgalias in your environment" "$LINENO" 5 2170100ae103Smrg fi 2171100ae103Smrg 2172100ae103Smrg test "$2" = conftest.file 2173100ae103Smrg ) 2174100ae103Smrgthen 2175100ae103Smrg # Ok. 2176100ae103Smrg : 2177100ae103Smrgelse 2178165cb819Smrg as_fn_error "newly created file is older than distributed files! 2179165cb819SmrgCheck your system clock" "$LINENO" 5 2180100ae103Smrgfi 2181165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2182165cb819Smrg$as_echo "yes" >&6; } 2183100ae103Smrgtest "$program_prefix" != NONE && 2184165cb819Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2185100ae103Smrg# Use a double $ so make ignores it. 2186100ae103Smrgtest "$program_suffix" != NONE && 2187165cb819Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2188165cb819Smrg# Double any \ or $. 2189100ae103Smrg# By default was `s,x,x', remove it if useless. 2190165cb819Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2191165cb819Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2192100ae103Smrg 2193100ae103Smrg# expand $ac_aux_dir to an absolute path 2194100ae103Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 2195100ae103Smrg 2196165cb819Smrgif test x"${MISSING+set}" != xset; then 2197165cb819Smrg case $am_aux_dir in 2198165cb819Smrg *\ * | *\ *) 2199165cb819Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2200165cb819Smrg *) 2201165cb819Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2202165cb819Smrg esac 2203165cb819Smrgfi 2204100ae103Smrg# Use eval to expand $SHELL 2205100ae103Smrgif eval "$MISSING --run true"; then 2206100ae103Smrg am_missing_run="$MISSING --run " 2207100ae103Smrgelse 2208100ae103Smrg am_missing_run= 2209165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2210165cb819Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2211165cb819Smrgfi 2212165cb819Smrg 2213165cb819Smrgif test x"${install_sh}" != xset; then 2214165cb819Smrg case $am_aux_dir in 2215165cb819Smrg *\ * | *\ *) 2216165cb819Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2217165cb819Smrg *) 2218165cb819Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2219165cb819Smrg esac 2220165cb819Smrgfi 2221165cb819Smrg 2222165cb819Smrg# Installed binaries are usually stripped using `strip' when the user 2223165cb819Smrg# run `make install-strip'. However `strip' might not be the right 2224165cb819Smrg# tool to use in cross-compilation environments, therefore Automake 2225165cb819Smrg# will honor the `STRIP' environment variable to overrule this program. 2226165cb819Smrgif test "$cross_compiling" != no; then 2227165cb819Smrg if test -n "$ac_tool_prefix"; then 2228165cb819Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2229165cb819Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2230165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2231165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2232165cb819Smrgif test "${ac_cv_prog_STRIP+set}" = set; then : 2233165cb819Smrg $as_echo_n "(cached) " >&6 2234165cb819Smrgelse 2235165cb819Smrg if test -n "$STRIP"; then 2236165cb819Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2237165cb819Smrgelse 2238165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2239165cb819Smrgfor as_dir in $PATH 2240165cb819Smrgdo 2241165cb819Smrg IFS=$as_save_IFS 2242165cb819Smrg test -z "$as_dir" && as_dir=. 2243165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2244165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2245165cb819Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2246165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2247165cb819Smrg break 2 2248165cb819Smrg fi 2249165cb819Smrgdone 2250165cb819Smrg done 2251165cb819SmrgIFS=$as_save_IFS 2252165cb819Smrg 2253165cb819Smrgfi 2254165cb819Smrgfi 2255165cb819SmrgSTRIP=$ac_cv_prog_STRIP 2256165cb819Smrgif test -n "$STRIP"; then 2257165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2258165cb819Smrg$as_echo "$STRIP" >&6; } 2259165cb819Smrgelse 2260165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2261165cb819Smrg$as_echo "no" >&6; } 2262165cb819Smrgfi 2263165cb819Smrg 2264165cb819Smrg 2265165cb819Smrgfi 2266165cb819Smrgif test -z "$ac_cv_prog_STRIP"; then 2267165cb819Smrg ac_ct_STRIP=$STRIP 2268165cb819Smrg # Extract the first word of "strip", so it can be a program name with args. 2269165cb819Smrgset dummy strip; ac_word=$2 2270165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2271165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2272165cb819Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2273165cb819Smrg $as_echo_n "(cached) " >&6 2274165cb819Smrgelse 2275165cb819Smrg if test -n "$ac_ct_STRIP"; then 2276165cb819Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2277165cb819Smrgelse 2278165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2279165cb819Smrgfor as_dir in $PATH 2280165cb819Smrgdo 2281165cb819Smrg IFS=$as_save_IFS 2282165cb819Smrg test -z "$as_dir" && as_dir=. 2283165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2284165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2285165cb819Smrg ac_cv_prog_ac_ct_STRIP="strip" 2286165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2287165cb819Smrg break 2 2288165cb819Smrg fi 2289165cb819Smrgdone 2290165cb819Smrg done 2291165cb819SmrgIFS=$as_save_IFS 2292165cb819Smrg 2293165cb819Smrgfi 2294165cb819Smrgfi 2295165cb819Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2296165cb819Smrgif test -n "$ac_ct_STRIP"; then 2297165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2298165cb819Smrg$as_echo "$ac_ct_STRIP" >&6; } 2299165cb819Smrgelse 2300165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2301165cb819Smrg$as_echo "no" >&6; } 2302165cb819Smrgfi 2303165cb819Smrg 2304165cb819Smrg if test "x$ac_ct_STRIP" = x; then 2305165cb819Smrg STRIP=":" 2306165cb819Smrg else 2307165cb819Smrg case $cross_compiling:$ac_tool_warned in 2308165cb819Smrgyes:) 2309165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2310165cb819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2311165cb819Smrgac_tool_warned=yes ;; 2312165cb819Smrgesac 2313165cb819Smrg STRIP=$ac_ct_STRIP 2314165cb819Smrg fi 2315165cb819Smrgelse 2316165cb819Smrg STRIP="$ac_cv_prog_STRIP" 2317165cb819Smrgfi 2318165cb819Smrg 2319165cb819Smrgfi 2320165cb819SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2321165cb819Smrg 2322165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2323165cb819Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2324165cb819Smrgif test -z "$MKDIR_P"; then 2325165cb819Smrg if test "${ac_cv_path_mkdir+set}" = set; then : 2326165cb819Smrg $as_echo_n "(cached) " >&6 2327165cb819Smrgelse 2328165cb819Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329165cb819Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2330165cb819Smrgdo 2331165cb819Smrg IFS=$as_save_IFS 2332165cb819Smrg test -z "$as_dir" && as_dir=. 2333165cb819Smrg for ac_prog in mkdir gmkdir; do 2334165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2335165cb819Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2336165cb819Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2337165cb819Smrg 'mkdir (GNU coreutils) '* | \ 2338165cb819Smrg 'mkdir (coreutils) '* | \ 2339165cb819Smrg 'mkdir (fileutils) '4.1*) 2340165cb819Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2341165cb819Smrg break 3;; 2342165cb819Smrg esac 2343165cb819Smrg done 2344165cb819Smrg done 2345100ae103Smrg done 2346165cb819SmrgIFS=$as_save_IFS 2347165cb819Smrg 2348165cb819Smrgfi 2349165cb819Smrg 2350165cb819Smrg test -d ./--version && rmdir ./--version 2351165cb819Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2352165cb819Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2353100ae103Smrg else 2354165cb819Smrg # As a last resort, use the slow shell script. Don't cache a 2355165cb819Smrg # value for MKDIR_P within a source directory, because that will 2356165cb819Smrg # break other packages using the cache if that directory is 2357165cb819Smrg # removed, or if the value is a relative name. 2358165cb819Smrg MKDIR_P="$ac_install_sh -d" 2359100ae103Smrg fi 2360100ae103Smrgfi 2361165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2362165cb819Smrg$as_echo "$MKDIR_P" >&6; } 2363165cb819Smrg 2364165cb819Smrgmkdir_p="$MKDIR_P" 2365165cb819Smrgcase $mkdir_p in 2366165cb819Smrg [\\/$]* | ?:[\\/]*) ;; 2367165cb819Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2368165cb819Smrgesac 2369100ae103Smrg 2370100ae103Smrgfor ac_prog in gawk mawk nawk awk 2371100ae103Smrgdo 2372100ae103Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2373100ae103Smrgset dummy $ac_prog; ac_word=$2 2374165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2375165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2376165cb819Smrgif test "${ac_cv_prog_AWK+set}" = set; then : 2377165cb819Smrg $as_echo_n "(cached) " >&6 2378100ae103Smrgelse 2379100ae103Smrg if test -n "$AWK"; then 2380100ae103Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2381100ae103Smrgelse 2382100ae103Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383100ae103Smrgfor as_dir in $PATH 2384100ae103Smrgdo 2385100ae103Smrg IFS=$as_save_IFS 2386100ae103Smrg test -z "$as_dir" && as_dir=. 2387165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2388165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2389100ae103Smrg ac_cv_prog_AWK="$ac_prog" 2390165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2391100ae103Smrg break 2 2392100ae103Smrg fi 2393100ae103Smrgdone 2394165cb819Smrg done 2395165cb819SmrgIFS=$as_save_IFS 2396100ae103Smrg 2397100ae103Smrgfi 2398100ae103Smrgfi 2399100ae103SmrgAWK=$ac_cv_prog_AWK 2400100ae103Smrgif test -n "$AWK"; then 2401165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2402165cb819Smrg$as_echo "$AWK" >&6; } 2403100ae103Smrgelse 2404165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2405165cb819Smrg$as_echo "no" >&6; } 2406100ae103Smrgfi 2407100ae103Smrg 2408165cb819Smrg 2409100ae103Smrg test -n "$AWK" && break 2410100ae103Smrgdone 2411100ae103Smrg 2412165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2413165cb819Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2414165cb819Smrgset x ${MAKE-make} 2415165cb819Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2416165cb819Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2417165cb819Smrg $as_echo_n "(cached) " >&6 2418100ae103Smrgelse 2419100ae103Smrg cat >conftest.make <<\_ACEOF 2420165cb819SmrgSHELL = /bin/sh 2421100ae103Smrgall: 2422165cb819Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2423100ae103Smrg_ACEOF 2424100ae103Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2425165cb819Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2426165cb819Smrg *@@@%%%=?*=@@@%%%*) 2427165cb819Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2428165cb819Smrg *) 2429165cb819Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2430165cb819Smrgesac 2431100ae103Smrgrm -f conftest.make 2432100ae103Smrgfi 2433165cb819Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2434165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2435165cb819Smrg$as_echo "yes" >&6; } 2436100ae103Smrg SET_MAKE= 2437100ae103Smrgelse 2438165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2439165cb819Smrg$as_echo "no" >&6; } 2440100ae103Smrg SET_MAKE="MAKE=${MAKE-make}" 2441100ae103Smrgfi 2442100ae103Smrg 2443100ae103Smrgrm -rf .tst 2>/dev/null 2444100ae103Smrgmkdir .tst 2>/dev/null 2445100ae103Smrgif test -d .tst; then 2446100ae103Smrg am__leading_dot=. 2447100ae103Smrgelse 2448100ae103Smrg am__leading_dot=_ 2449100ae103Smrgfi 2450100ae103Smrgrmdir .tst 2>/dev/null 2451100ae103Smrg 2452165cb819Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2453165cb819Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2454165cb819Smrg # is not polluted with repeated "-I." 2455165cb819Smrg am__isrc=' -I$(srcdir)' 2456165cb819Smrg # test to see if srcdir already configured 2457165cb819Smrg if test -f $srcdir/config.status; then 2458165cb819Smrg as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2459165cb819Smrg fi 2460100ae103Smrgfi 2461100ae103Smrg 2462100ae103Smrg# test whether we have cygpath 2463100ae103Smrgif test -z "$CYGPATH_W"; then 2464100ae103Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 2465100ae103Smrg CYGPATH_W='cygpath -w' 2466100ae103Smrg else 2467100ae103Smrg CYGPATH_W=echo 2468100ae103Smrg fi 2469100ae103Smrgfi 2470100ae103Smrg 2471100ae103Smrg 2472100ae103Smrg# Define the identity of the package. 2473100ae103Smrg PACKAGE='xmessage' 2474165cb819Smrg VERSION='1.0.3' 2475100ae103Smrg 2476100ae103Smrg 2477100ae103Smrgcat >>confdefs.h <<_ACEOF 2478100ae103Smrg#define PACKAGE "$PACKAGE" 2479100ae103Smrg_ACEOF 2480100ae103Smrg 2481100ae103Smrg 2482100ae103Smrgcat >>confdefs.h <<_ACEOF 2483100ae103Smrg#define VERSION "$VERSION" 2484100ae103Smrg_ACEOF 2485100ae103Smrg 2486100ae103Smrg# Some tools Automake needs. 2487100ae103Smrg 2488100ae103SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2489100ae103Smrg 2490100ae103Smrg 2491100ae103SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2492100ae103Smrg 2493100ae103Smrg 2494100ae103SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2495100ae103Smrg 2496100ae103Smrg 2497100ae103SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2498100ae103Smrg 2499100ae103Smrg 2500100ae103SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2501100ae103Smrg 2502165cb819Smrg# We need awk for the "check" target. The system "awk" is bad on 2503165cb819Smrg# some platforms. 2504165cb819Smrg# Always define AMTAR for backward compatibility. 2505100ae103Smrg 2506165cb819SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2507165cb819Smrg 2508165cb819Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2509165cb819Smrg 2510165cb819Smrg 2511165cb819Smrg 2512165cb819Smrg 2513165cb819Smrg 2514165cb819Smrg 2515165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2516165cb819Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2517165cb819Smrg # Check whether --enable-maintainer-mode was given. 2518165cb819Smrgif test "${enable_maintainer_mode+set}" = set; then : 2519165cb819Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2520100ae103Smrgelse 2521165cb819Smrg USE_MAINTAINER_MODE=no 2522100ae103Smrgfi 2523165cb819Smrg 2524165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2525165cb819Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2526165cb819Smrg if test $USE_MAINTAINER_MODE = yes; then 2527165cb819Smrg MAINTAINER_MODE_TRUE= 2528165cb819Smrg MAINTAINER_MODE_FALSE='#' 2529100ae103Smrgelse 2530165cb819Smrg MAINTAINER_MODE_TRUE='#' 2531165cb819Smrg MAINTAINER_MODE_FALSE= 2532100ae103Smrgfi 2533100ae103Smrg 2534165cb819Smrg MAINT=$MAINTAINER_MODE_TRUE 2535100ae103Smrg 2536100ae103Smrg 2537100ae103Smrg 2538165cb819Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS 2539100ae103Smrg 2540100ae103Smrg 2541100ae103Smrg 2542100ae103Smrg 2543100ae103Smrg 2544100ae103Smrg 2545100ae103Smrg 2546100ae103Smrg 2547100ae103Smrg 2548100ae103Smrg 2549165cb819Smrg 2550165cb819SmrgDEPDIR="${am__leading_dot}deps" 2551165cb819Smrg 2552165cb819Smrgac_config_commands="$ac_config_commands depfiles" 2553165cb819Smrg 2554165cb819Smrg 2555165cb819Smrgam_make=${MAKE-make} 2556165cb819Smrgcat > confinc << 'END' 2557165cb819Smrgam__doit: 2558165cb819Smrg @echo this is the am__doit target 2559165cb819Smrg.PHONY: am__doit 2560165cb819SmrgEND 2561165cb819Smrg# If we don't find an include directive, just comment out the code. 2562165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2563165cb819Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2564165cb819Smrgam__include="#" 2565165cb819Smrgam__quote= 2566165cb819Smrg_am_result=none 2567165cb819Smrg# First try GNU make style include. 2568165cb819Smrgecho "include confinc" > confmf 2569165cb819Smrg# Ignore all kinds of additional output from `make'. 2570165cb819Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2571165cb819Smrg*the\ am__doit\ target*) 2572165cb819Smrg am__include=include 2573165cb819Smrg am__quote= 2574165cb819Smrg _am_result=GNU 2575165cb819Smrg ;; 2576165cb819Smrgesac 2577165cb819Smrg# Now try BSD make style include. 2578165cb819Smrgif test "$am__include" = "#"; then 2579165cb819Smrg echo '.include "confinc"' > confmf 2580165cb819Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 2581165cb819Smrg *the\ am__doit\ target*) 2582165cb819Smrg am__include=.include 2583165cb819Smrg am__quote="\"" 2584165cb819Smrg _am_result=BSD 2585165cb819Smrg ;; 2586165cb819Smrg esac 2587100ae103Smrgfi 2588100ae103Smrg 2589100ae103Smrg 2590165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2591165cb819Smrg$as_echo "$_am_result" >&6; } 2592165cb819Smrgrm -f confinc confmf 2593100ae103Smrg 2594165cb819Smrg# Check whether --enable-dependency-tracking was given. 2595165cb819Smrgif test "${enable_dependency_tracking+set}" = set; then : 2596165cb819Smrg enableval=$enable_dependency_tracking; 2597165cb819Smrgfi 2598100ae103Smrg 2599165cb819Smrgif test "x$enable_dependency_tracking" != xno; then 2600165cb819Smrg am_depcomp="$ac_aux_dir/depcomp" 2601165cb819Smrg AMDEPBACKSLASH='\' 2602165cb819Smrgfi 2603165cb819Smrg if test "x$enable_dependency_tracking" != xno; then 2604165cb819Smrg AMDEP_TRUE= 2605165cb819Smrg AMDEP_FALSE='#' 2606165cb819Smrgelse 2607165cb819Smrg AMDEP_TRUE='#' 2608165cb819Smrg AMDEP_FALSE= 2609165cb819Smrgfi 2610100ae103Smrg 2611100ae103Smrg 2612100ae103Smrgac_ext=c 2613100ae103Smrgac_cpp='$CPP $CPPFLAGS' 2614100ae103Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2615100ae103Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2616100ae103Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2617100ae103Smrgif test -n "$ac_tool_prefix"; then 2618100ae103Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2619100ae103Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2620165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2622165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 2623165cb819Smrg $as_echo_n "(cached) " >&6 2624100ae103Smrgelse 2625100ae103Smrg if test -n "$CC"; then 2626100ae103Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2627100ae103Smrgelse 2628100ae103Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629100ae103Smrgfor as_dir in $PATH 2630100ae103Smrgdo 2631100ae103Smrg IFS=$as_save_IFS 2632100ae103Smrg test -z "$as_dir" && as_dir=. 2633165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2634165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635100ae103Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2636165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637100ae103Smrg break 2 2638100ae103Smrg fi 2639100ae103Smrgdone 2640165cb819Smrg done 2641165cb819SmrgIFS=$as_save_IFS 2642100ae103Smrg 2643100ae103Smrgfi 2644100ae103Smrgfi 2645100ae103SmrgCC=$ac_cv_prog_CC 2646100ae103Smrgif test -n "$CC"; then 2647165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2648165cb819Smrg$as_echo "$CC" >&6; } 2649100ae103Smrgelse 2650165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651165cb819Smrg$as_echo "no" >&6; } 2652100ae103Smrgfi 2653100ae103Smrg 2654165cb819Smrg 2655100ae103Smrgfi 2656100ae103Smrgif test -z "$ac_cv_prog_CC"; then 2657100ae103Smrg ac_ct_CC=$CC 2658100ae103Smrg # Extract the first word of "gcc", so it can be a program name with args. 2659100ae103Smrgset dummy gcc; ac_word=$2 2660165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2661165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2662165cb819Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2663165cb819Smrg $as_echo_n "(cached) " >&6 2664100ae103Smrgelse 2665100ae103Smrg if test -n "$ac_ct_CC"; then 2666100ae103Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2667100ae103Smrgelse 2668100ae103Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2669100ae103Smrgfor as_dir in $PATH 2670100ae103Smrgdo 2671100ae103Smrg IFS=$as_save_IFS 2672100ae103Smrg test -z "$as_dir" && as_dir=. 2673165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2674165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2675100ae103Smrg ac_cv_prog_ac_ct_CC="gcc" 2676165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2677100ae103Smrg break 2 2678100ae103Smrg fi 2679100ae103Smrgdone 2680165cb819Smrg done 2681165cb819SmrgIFS=$as_save_IFS 2682100ae103Smrg 2683100ae103Smrgfi 2684100ae103Smrgfi 2685100ae103Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2686100ae103Smrgif test -n "$ac_ct_CC"; then 2687165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2688165cb819Smrg$as_echo "$ac_ct_CC" >&6; } 2689100ae103Smrgelse 2690165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2691165cb819Smrg$as_echo "no" >&6; } 2692100ae103Smrgfi 2693100ae103Smrg 2694165cb819Smrg if test "x$ac_ct_CC" = x; then 2695165cb819Smrg CC="" 2696165cb819Smrg else 2697165cb819Smrg case $cross_compiling:$ac_tool_warned in 2698165cb819Smrgyes:) 2699165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2700165cb819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2701165cb819Smrgac_tool_warned=yes ;; 2702165cb819Smrgesac 2703165cb819Smrg CC=$ac_ct_CC 2704165cb819Smrg fi 2705100ae103Smrgelse 2706100ae103Smrg CC="$ac_cv_prog_CC" 2707100ae103Smrgfi 2708100ae103Smrg 2709100ae103Smrgif test -z "$CC"; then 2710165cb819Smrg if test -n "$ac_tool_prefix"; then 2711165cb819Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2712100ae103Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2713165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2715165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 2716165cb819Smrg $as_echo_n "(cached) " >&6 2717100ae103Smrgelse 2718100ae103Smrg if test -n "$CC"; then 2719100ae103Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2720100ae103Smrgelse 2721100ae103Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722100ae103Smrgfor as_dir in $PATH 2723100ae103Smrgdo 2724100ae103Smrg IFS=$as_save_IFS 2725100ae103Smrg test -z "$as_dir" && as_dir=. 2726165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2727165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2728100ae103Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2729165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730100ae103Smrg break 2 2731100ae103Smrg fi 2732100ae103Smrgdone 2733165cb819Smrg done 2734165cb819SmrgIFS=$as_save_IFS 2735100ae103Smrg 2736100ae103Smrgfi 2737100ae103Smrgfi 2738100ae103SmrgCC=$ac_cv_prog_CC 2739100ae103Smrgif test -n "$CC"; then 2740165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2741165cb819Smrg$as_echo "$CC" >&6; } 2742100ae103Smrgelse 2743165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744165cb819Smrg$as_echo "no" >&6; } 2745100ae103Smrgfi 2746100ae103Smrg 2747100ae103Smrg 2748165cb819Smrg fi 2749100ae103Smrgfi 2750100ae103Smrgif test -z "$CC"; then 2751100ae103Smrg # Extract the first word of "cc", so it can be a program name with args. 2752100ae103Smrgset dummy cc; ac_word=$2 2753165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2755165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 2756165cb819Smrg $as_echo_n "(cached) " >&6 2757100ae103Smrgelse 2758100ae103Smrg if test -n "$CC"; then 2759100ae103Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2760100ae103Smrgelse 2761100ae103Smrg ac_prog_rejected=no 2762100ae103Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763100ae103Smrgfor as_dir in $PATH 2764100ae103Smrgdo 2765100ae103Smrg IFS=$as_save_IFS 2766100ae103Smrg test -z "$as_dir" && as_dir=. 2767165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2768165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2769100ae103Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2770100ae103Smrg ac_prog_rejected=yes 2771100ae103Smrg continue 2772100ae103Smrg fi 2773100ae103Smrg ac_cv_prog_CC="cc" 2774165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2775100ae103Smrg break 2 2776100ae103Smrg fi 2777100ae103Smrgdone 2778165cb819Smrg done 2779165cb819SmrgIFS=$as_save_IFS 2780100ae103Smrg 2781100ae103Smrgif test $ac_prog_rejected = yes; then 2782100ae103Smrg # We found a bogon in the path, so make sure we never use it. 2783100ae103Smrg set dummy $ac_cv_prog_CC 2784100ae103Smrg shift 2785100ae103Smrg if test $# != 0; then 2786100ae103Smrg # We chose a different compiler from the bogus one. 2787100ae103Smrg # However, it has the same basename, so the bogon will be chosen 2788100ae103Smrg # first if we set CC to just the basename; use the full file name. 2789100ae103Smrg shift 2790100ae103Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2791100ae103Smrg fi 2792100ae103Smrgfi 2793100ae103Smrgfi 2794100ae103Smrgfi 2795100ae103SmrgCC=$ac_cv_prog_CC 2796100ae103Smrgif test -n "$CC"; then 2797165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2798165cb819Smrg$as_echo "$CC" >&6; } 2799100ae103Smrgelse 2800165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2801165cb819Smrg$as_echo "no" >&6; } 2802100ae103Smrgfi 2803100ae103Smrg 2804165cb819Smrg 2805100ae103Smrgfi 2806100ae103Smrgif test -z "$CC"; then 2807100ae103Smrg if test -n "$ac_tool_prefix"; then 2808165cb819Smrg for ac_prog in cl.exe 2809100ae103Smrg do 2810100ae103Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2811100ae103Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2812165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2814165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 2815165cb819Smrg $as_echo_n "(cached) " >&6 2816100ae103Smrgelse 2817100ae103Smrg if test -n "$CC"; then 2818100ae103Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2819100ae103Smrgelse 2820100ae103Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821100ae103Smrgfor as_dir in $PATH 2822100ae103Smrgdo 2823100ae103Smrg IFS=$as_save_IFS 2824100ae103Smrg test -z "$as_dir" && as_dir=. 2825165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2826165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2827100ae103Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2828165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2829100ae103Smrg break 2 2830100ae103Smrg fi 2831100ae103Smrgdone 2832165cb819Smrg done 2833165cb819SmrgIFS=$as_save_IFS 2834100ae103Smrg 2835100ae103Smrgfi 2836100ae103Smrgfi 2837100ae103SmrgCC=$ac_cv_prog_CC 2838100ae103Smrgif test -n "$CC"; then 2839165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2840165cb819Smrg$as_echo "$CC" >&6; } 2841100ae103Smrgelse 2842165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843165cb819Smrg$as_echo "no" >&6; } 2844100ae103Smrgfi 2845100ae103Smrg 2846165cb819Smrg 2847100ae103Smrg test -n "$CC" && break 2848100ae103Smrg done 2849100ae103Smrgfi 2850100ae103Smrgif test -z "$CC"; then 2851100ae103Smrg ac_ct_CC=$CC 2852165cb819Smrg for ac_prog in cl.exe 2853100ae103Smrgdo 2854100ae103Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2855100ae103Smrgset dummy $ac_prog; ac_word=$2 2856165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2857165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 2858165cb819Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2859165cb819Smrg $as_echo_n "(cached) " >&6 2860100ae103Smrgelse 2861100ae103Smrg if test -n "$ac_ct_CC"; then 2862100ae103Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2863100ae103Smrgelse 2864100ae103Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865100ae103Smrgfor as_dir in $PATH 2866100ae103Smrgdo 2867100ae103Smrg IFS=$as_save_IFS 2868100ae103Smrg test -z "$as_dir" && as_dir=. 2869165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2870165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2871100ae103Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2872165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2873100ae103Smrg break 2 2874100ae103Smrg fi 2875100ae103Smrgdone 2876165cb819Smrg done 2877165cb819SmrgIFS=$as_save_IFS 2878100ae103Smrg 2879100ae103Smrgfi 2880100ae103Smrgfi 2881100ae103Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2882100ae103Smrgif test -n "$ac_ct_CC"; then 2883165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2884165cb819Smrg$as_echo "$ac_ct_CC" >&6; } 2885100ae103Smrgelse 2886165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2887165cb819Smrg$as_echo "no" >&6; } 2888100ae103Smrgfi 2889100ae103Smrg 2890165cb819Smrg 2891100ae103Smrg test -n "$ac_ct_CC" && break 2892100ae103Smrgdone 2893100ae103Smrg 2894165cb819Smrg if test "x$ac_ct_CC" = x; then 2895165cb819Smrg CC="" 2896165cb819Smrg else 2897165cb819Smrg case $cross_compiling:$ac_tool_warned in 2898165cb819Smrgyes:) 2899165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2900165cb819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2901165cb819Smrgac_tool_warned=yes ;; 2902165cb819Smrgesac 2903165cb819Smrg CC=$ac_ct_CC 2904165cb819Smrg fi 2905100ae103Smrgfi 2906100ae103Smrg 2907100ae103Smrgfi 2908100ae103Smrg 2909100ae103Smrg 2910165cb819Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2911165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2912165cb819Smrgas_fn_error "no acceptable C compiler found in \$PATH 2913165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 2914100ae103Smrg 2915100ae103Smrg# Provide some information about the compiler. 2916165cb819Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2917165cb819Smrgset X $ac_compile 2918165cb819Smrgac_compiler=$2 2919165cb819Smrgfor ac_option in --version -v -V -qversion; do 2920165cb819Smrg { { ac_try="$ac_compiler $ac_option >&5" 2921165cb819Smrgcase "(($ac_try" in 2922165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2923165cb819Smrg *) ac_try_echo=$ac_try;; 2924165cb819Smrgesac 2925165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2926165cb819Smrg$as_echo "$ac_try_echo"; } >&5 2927165cb819Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2928100ae103Smrg ac_status=$? 2929165cb819Smrg if test -s conftest.err; then 2930165cb819Smrg sed '10a\ 2931165cb819Smrg... rest of stderr output deleted ... 2932165cb819Smrg 10q' conftest.err >conftest.er1 2933165cb819Smrg cat conftest.er1 >&5 2934165cb819Smrg fi 2935165cb819Smrg rm -f conftest.er1 conftest.err 2936165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2937165cb819Smrg test $ac_status = 0; } 2938165cb819Smrgdone 2939100ae103Smrg 2940165cb819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 2941100ae103Smrg/* end confdefs.h. */ 2942100ae103Smrg 2943100ae103Smrgint 2944100ae103Smrgmain () 2945100ae103Smrg{ 2946100ae103Smrg 2947100ae103Smrg ; 2948100ae103Smrg return 0; 2949100ae103Smrg} 2950100ae103Smrg_ACEOF 2951100ae103Smrgac_clean_files_save=$ac_clean_files 2952165cb819Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2953100ae103Smrg# Try to create an executable without -o first, disregard a.out. 2954100ae103Smrg# It will help us diagnose broken compilers, and finding out an intuition 2955100ae103Smrg# of exeext. 2956165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2957165cb819Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 2958165cb819Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2959165cb819Smrg 2960165cb819Smrg# The possible output files: 2961165cb819Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2962165cb819Smrg 2963165cb819Smrgac_rmfiles= 2964165cb819Smrgfor ac_file in $ac_files 2965165cb819Smrgdo 2966165cb819Smrg case $ac_file in 2967165cb819Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2968165cb819Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2969165cb819Smrg esac 2970165cb819Smrgdone 2971165cb819Smrgrm -f $ac_rmfiles 2972165cb819Smrg 2973165cb819Smrgif { { ac_try="$ac_link_default" 2974165cb819Smrgcase "(($ac_try" in 2975165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2976165cb819Smrg *) ac_try_echo=$ac_try;; 2977165cb819Smrgesac 2978165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2979165cb819Smrg$as_echo "$ac_try_echo"; } >&5 2980165cb819Smrg (eval "$ac_link_default") 2>&5 2981100ae103Smrg ac_status=$? 2982165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2983165cb819Smrg test $ac_status = 0; }; then : 2984165cb819Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2985165cb819Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2986165cb819Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 2987165cb819Smrg# so that the user can short-circuit this test for compilers unknown to 2988165cb819Smrg# Autoconf. 2989165cb819Smrgfor ac_file in $ac_files '' 2990100ae103Smrgdo 2991100ae103Smrg test -f "$ac_file" || continue 2992100ae103Smrg case $ac_file in 2993165cb819Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2994100ae103Smrg ;; 2995100ae103Smrg [ab].out ) 2996100ae103Smrg # We found the default executable, but exeext='' is most 2997100ae103Smrg # certainly right. 2998100ae103Smrg break;; 2999100ae103Smrg *.* ) 3000165cb819Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3001165cb819Smrg then :; else 3002165cb819Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3003165cb819Smrg fi 3004165cb819Smrg # We set ac_cv_exeext here because the later test for it is not 3005165cb819Smrg # safe: cross compilers may not add the suffix if given an `-o' 3006165cb819Smrg # argument, so we may need to know it at that point already. 3007165cb819Smrg # Even if this section looks crufty: it has the advantage of 3008165cb819Smrg # actually working. 3009100ae103Smrg break;; 3010100ae103Smrg * ) 3011100ae103Smrg break;; 3012100ae103Smrg esac 3013100ae103Smrgdone 3014165cb819Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3015165cb819Smrg 3016100ae103Smrgelse 3017165cb819Smrg ac_file='' 3018165cb819Smrgfi 3019165cb819Smrgif test -z "$ac_file"; then : 3020165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3021165cb819Smrg$as_echo "no" >&6; } 3022165cb819Smrg$as_echo "$as_me: failed program was:" >&5 3023100ae103Smrgsed 's/^/| /' conftest.$ac_ext >&5 3024100ae103Smrg 3025165cb819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3026165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3027165cb819Smrg{ as_fn_set_status 77 3028165cb819Smrgas_fn_error "C compiler cannot create executables 3029165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; }; } 3030165cb819Smrgelse 3031165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3032165cb819Smrg$as_echo "yes" >&6; } 3033100ae103Smrgfi 3034165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3035165cb819Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3036165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3037165cb819Smrg$as_echo "$ac_file" >&6; } 3038100ae103Smrgac_exeext=$ac_cv_exeext 3039100ae103Smrg 3040165cb819Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3041100ae103Smrgac_clean_files=$ac_clean_files_save 3042165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3043165cb819Smrg$as_echo_n "checking for suffix of executables... " >&6; } 3044165cb819Smrgif { { ac_try="$ac_link" 3045165cb819Smrgcase "(($ac_try" in 3046165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3047165cb819Smrg *) ac_try_echo=$ac_try;; 3048165cb819Smrgesac 3049165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3050165cb819Smrg$as_echo "$ac_try_echo"; } >&5 3051165cb819Smrg (eval "$ac_link") 2>&5 3052100ae103Smrg ac_status=$? 3053165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3054165cb819Smrg test $ac_status = 0; }; then : 3055100ae103Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3056100ae103Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3057100ae103Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3058100ae103Smrg# `rm'. 3059100ae103Smrgfor ac_file in conftest.exe conftest conftest.*; do 3060100ae103Smrg test -f "$ac_file" || continue 3061100ae103Smrg case $ac_file in 3062165cb819Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3063100ae103Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3064100ae103Smrg break;; 3065100ae103Smrg * ) break;; 3066100ae103Smrg esac 3067100ae103Smrgdone 3068100ae103Smrgelse 3069165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3070165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3071165cb819Smrgas_fn_error "cannot compute suffix of executables: cannot compile and link 3072165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 3073100ae103Smrgfi 3074165cb819Smrgrm -f conftest conftest$ac_cv_exeext 3075165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3076165cb819Smrg$as_echo "$ac_cv_exeext" >&6; } 3077100ae103Smrg 3078100ae103Smrgrm -f conftest.$ac_ext 3079100ae103SmrgEXEEXT=$ac_cv_exeext 3080100ae103Smrgac_exeext=$EXEEXT 3081165cb819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3082165cb819Smrg/* end confdefs.h. */ 3083165cb819Smrg#include <stdio.h> 3084165cb819Smrgint 3085165cb819Smrgmain () 3086165cb819Smrg{ 3087165cb819SmrgFILE *f = fopen ("conftest.out", "w"); 3088165cb819Smrg return ferror (f) || fclose (f) != 0; 3089165cb819Smrg 3090165cb819Smrg ; 3091165cb819Smrg return 0; 3092165cb819Smrg} 3093100ae103Smrg_ACEOF 3094165cb819Smrgac_clean_files="$ac_clean_files conftest.out" 3095165cb819Smrg# Check that the compiler produces executables we can run. If not, either 3096165cb819Smrg# the compiler is broken, or we cross compile. 3097165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3098165cb819Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3099165cb819Smrgif test "$cross_compiling" != yes; then 3100165cb819Smrg { { ac_try="$ac_link" 3101165cb819Smrgcase "(($ac_try" in 3102165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103165cb819Smrg *) ac_try_echo=$ac_try;; 3104165cb819Smrgesac 3105165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3106165cb819Smrg$as_echo "$ac_try_echo"; } >&5 3107165cb819Smrg (eval "$ac_link") 2>&5 3108165cb819Smrg ac_status=$? 3109165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3110165cb819Smrg test $ac_status = 0; } 3111165cb819Smrg if { ac_try='./conftest$ac_cv_exeext' 3112165cb819Smrg { { case "(($ac_try" in 3113165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114165cb819Smrg *) ac_try_echo=$ac_try;; 3115165cb819Smrgesac 3116165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3117165cb819Smrg$as_echo "$ac_try_echo"; } >&5 3118165cb819Smrg (eval "$ac_try") 2>&5 3119165cb819Smrg ac_status=$? 3120165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3121165cb819Smrg test $ac_status = 0; }; }; then 3122165cb819Smrg cross_compiling=no 3123165cb819Smrg else 3124165cb819Smrg if test "$cross_compiling" = maybe; then 3125165cb819Smrg cross_compiling=yes 3126165cb819Smrg else 3127165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3128165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3129165cb819Smrgas_fn_error "cannot run C compiled programs. 3130165cb819SmrgIf you meant to cross compile, use \`--host'. 3131165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 3132165cb819Smrg fi 3133165cb819Smrg fi 3134165cb819Smrgfi 3135165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3136165cb819Smrg$as_echo "$cross_compiling" >&6; } 3137165cb819Smrg 3138165cb819Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3139165cb819Smrgac_clean_files=$ac_clean_files_save 3140165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3141165cb819Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3142165cb819Smrgif test "${ac_cv_objext+set}" = set; then : 3143165cb819Smrg $as_echo_n "(cached) " >&6 3144165cb819Smrgelse 3145165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3146100ae103Smrg/* end confdefs.h. */ 3147100ae103Smrg 3148100ae103Smrgint 3149100ae103Smrgmain () 3150100ae103Smrg{ 3151100ae103Smrg 3152100ae103Smrg ; 3153100ae103Smrg return 0; 3154100ae103Smrg} 3155100ae103Smrg_ACEOF 3156100ae103Smrgrm -f conftest.o conftest.obj 3157165cb819Smrgif { { ac_try="$ac_compile" 3158165cb819Smrgcase "(($ac_try" in 3159165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160165cb819Smrg *) ac_try_echo=$ac_try;; 3161165cb819Smrgesac 3162165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3163165cb819Smrg$as_echo "$ac_try_echo"; } >&5 3164165cb819Smrg (eval "$ac_compile") 2>&5 3165100ae103Smrg ac_status=$? 3166165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3167165cb819Smrg test $ac_status = 0; }; then : 3168165cb819Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3169165cb819Smrg test -f "$ac_file" || continue; 3170100ae103Smrg case $ac_file in 3171165cb819Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3172100ae103Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3173100ae103Smrg break;; 3174100ae103Smrg esac 3175100ae103Smrgdone 3176100ae103Smrgelse 3177165cb819Smrg $as_echo "$as_me: failed program was:" >&5 3178100ae103Smrgsed 's/^/| /' conftest.$ac_ext >&5 3179100ae103Smrg 3180165cb819Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3181165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3182165cb819Smrgas_fn_error "cannot compute suffix of object files: cannot compile 3183165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 3184100ae103Smrgfi 3185100ae103Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3186100ae103Smrgfi 3187165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3188165cb819Smrg$as_echo "$ac_cv_objext" >&6; } 3189100ae103SmrgOBJEXT=$ac_cv_objext 3190100ae103Smrgac_objext=$OBJEXT 3191165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3192165cb819Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3193165cb819Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then : 3194165cb819Smrg $as_echo_n "(cached) " >&6 3195100ae103Smrgelse 3196165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3197100ae103Smrg/* end confdefs.h. */ 3198100ae103Smrg 3199100ae103Smrgint 3200100ae103Smrgmain () 3201100ae103Smrg{ 3202100ae103Smrg#ifndef __GNUC__ 3203100ae103Smrg choke me 3204100ae103Smrg#endif 3205100ae103Smrg 3206100ae103Smrg ; 3207100ae103Smrg return 0; 3208100ae103Smrg} 3209100ae103Smrg_ACEOF 3210165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 3211100ae103Smrg ac_compiler_gnu=yes 3212100ae103Smrgelse 3213165cb819Smrg ac_compiler_gnu=no 3214100ae103Smrgfi 3215165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3216100ae103Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3217100ae103Smrg 3218100ae103Smrgfi 3219165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3220165cb819Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3221165cb819Smrgif test $ac_compiler_gnu = yes; then 3222165cb819Smrg GCC=yes 3223165cb819Smrgelse 3224165cb819Smrg GCC= 3225165cb819Smrgfi 3226100ae103Smrgac_test_CFLAGS=${CFLAGS+set} 3227100ae103Smrgac_save_CFLAGS=$CFLAGS 3228165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3229165cb819Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3230165cb819Smrgif test "${ac_cv_prog_cc_g+set}" = set; then : 3231165cb819Smrg $as_echo_n "(cached) " >&6 3232165cb819Smrgelse 3233165cb819Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3234165cb819Smrg ac_c_werror_flag=yes 3235165cb819Smrg ac_cv_prog_cc_g=no 3236165cb819Smrg CFLAGS="-g" 3237165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238100ae103Smrg/* end confdefs.h. */ 3239100ae103Smrg 3240100ae103Smrgint 3241100ae103Smrgmain () 3242100ae103Smrg{ 3243100ae103Smrg 3244100ae103Smrg ; 3245100ae103Smrg return 0; 3246100ae103Smrg} 3247100ae103Smrg_ACEOF 3248165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 3249100ae103Smrg ac_cv_prog_cc_g=yes 3250100ae103Smrgelse 3251165cb819Smrg CFLAGS="" 3252165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3253165cb819Smrg/* end confdefs.h. */ 3254165cb819Smrg 3255165cb819Smrgint 3256165cb819Smrgmain () 3257165cb819Smrg{ 3258165cb819Smrg 3259165cb819Smrg ; 3260165cb819Smrg return 0; 3261165cb819Smrg} 3262165cb819Smrg_ACEOF 3263165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 3264165cb819Smrg 3265165cb819Smrgelse 3266165cb819Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3267165cb819Smrg CFLAGS="-g" 3268165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3269165cb819Smrg/* end confdefs.h. */ 3270165cb819Smrg 3271165cb819Smrgint 3272165cb819Smrgmain () 3273165cb819Smrg{ 3274100ae103Smrg 3275165cb819Smrg ; 3276165cb819Smrg return 0; 3277165cb819Smrg} 3278165cb819Smrg_ACEOF 3279165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 3280165cb819Smrg ac_cv_prog_cc_g=yes 3281165cb819Smrgfi 3282165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3283100ae103Smrgfi 3284165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3285100ae103Smrgfi 3286165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3287165cb819Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3288165cb819Smrgfi 3289165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3290165cb819Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3291100ae103Smrgif test "$ac_test_CFLAGS" = set; then 3292100ae103Smrg CFLAGS=$ac_save_CFLAGS 3293100ae103Smrgelif test $ac_cv_prog_cc_g = yes; then 3294100ae103Smrg if test "$GCC" = yes; then 3295100ae103Smrg CFLAGS="-g -O2" 3296100ae103Smrg else 3297100ae103Smrg CFLAGS="-g" 3298100ae103Smrg fi 3299100ae103Smrgelse 3300100ae103Smrg if test "$GCC" = yes; then 3301100ae103Smrg CFLAGS="-O2" 3302100ae103Smrg else 3303100ae103Smrg CFLAGS= 3304100ae103Smrg fi 3305100ae103Smrgfi 3306165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3307165cb819Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3308165cb819Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then : 3309165cb819Smrg $as_echo_n "(cached) " >&6 3310100ae103Smrgelse 3311165cb819Smrg ac_cv_prog_cc_c89=no 3312100ae103Smrgac_save_CC=$CC 3313165cb819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3314100ae103Smrg/* end confdefs.h. */ 3315100ae103Smrg#include <stdarg.h> 3316100ae103Smrg#include <stdio.h> 3317100ae103Smrg#include <sys/types.h> 3318100ae103Smrg#include <sys/stat.h> 3319100ae103Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3320100ae103Smrgstruct buf { int x; }; 3321100ae103SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3322100ae103Smrgstatic char *e (p, i) 3323100ae103Smrg char **p; 3324100ae103Smrg int i; 3325100ae103Smrg{ 3326100ae103Smrg return p[i]; 3327100ae103Smrg} 3328100ae103Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3329100ae103Smrg{ 3330100ae103Smrg char *s; 3331100ae103Smrg va_list v; 3332100ae103Smrg va_start (v,p); 3333100ae103Smrg s = g (p, va_arg (v,int)); 3334100ae103Smrg va_end (v); 3335100ae103Smrg return s; 3336100ae103Smrg} 3337100ae103Smrg 3338100ae103Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3339100ae103Smrg function prototypes and stuff, but not '\xHH' hex character constants. 3340100ae103Smrg These don't provoke an error unfortunately, instead are silently treated 3341165cb819Smrg as 'x'. The following induces an error, until -std is added to get 3342100ae103Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3343100ae103Smrg array size at least. It's necessary to write '\x00'==0 to get something 3344165cb819Smrg that's true only with -std. */ 3345100ae103Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3346100ae103Smrg 3347165cb819Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3348165cb819Smrg inside strings and character constants. */ 3349165cb819Smrg#define FOO(x) 'x' 3350165cb819Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3351165cb819Smrg 3352100ae103Smrgint test (int i, double x); 3353100ae103Smrgstruct s1 {int (*f) (int a);}; 3354100ae103Smrgstruct s2 {int (*f) (double a);}; 3355100ae103Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3356100ae103Smrgint argc; 3357100ae103Smrgchar **argv; 3358100ae103Smrgint 3359100ae103Smrgmain () 3360100ae103Smrg{ 3361100ae103Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3362100ae103Smrg ; 3363100ae103Smrg return 0; 3364100ae103Smrg} 3365100ae103Smrg_ACEOF 3366165cb819Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3367165cb819Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3368100ae103Smrgdo 3369100ae103Smrg CC="$ac_save_CC $ac_arg" 3370165cb819Smrg if ac_fn_c_try_compile "$LINENO"; then : 3371165cb819Smrg ac_cv_prog_cc_c89=$ac_arg 3372100ae103Smrgfi 3373165cb819Smrgrm -f core conftest.err conftest.$ac_objext 3374165cb819Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3375100ae103Smrgdone 3376165cb819Smrgrm -f conftest.$ac_ext 3377100ae103SmrgCC=$ac_save_CC 3378100ae103Smrg 3379100ae103Smrgfi 3380165cb819Smrg# AC_CACHE_VAL 3381165cb819Smrgcase "x$ac_cv_prog_cc_c89" in 3382165cb819Smrg x) 3383165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3384165cb819Smrg$as_echo "none needed" >&6; } ;; 3385165cb819Smrg xno) 3386165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3387165cb819Smrg$as_echo "unsupported" >&6; } ;; 3388100ae103Smrg *) 3389165cb819Smrg CC="$CC $ac_cv_prog_cc_c89" 3390165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3391165cb819Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3392100ae103Smrgesac 3393165cb819Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3394100ae103Smrg 3395165cb819Smrgfi 3396165cb819Smrg 3397165cb819Smrgac_ext=c 3398165cb819Smrgac_cpp='$CPP $CPPFLAGS' 3399165cb819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3400165cb819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3401165cb819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3402165cb819Smrg 3403165cb819Smrgdepcc="$CC" am_compiler_list= 3404165cb819Smrg 3405165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3406165cb819Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3407165cb819Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3408165cb819Smrg $as_echo_n "(cached) " >&6 3409165cb819Smrgelse 3410165cb819Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3411165cb819Smrg # We make a subdir and do the tests there. Otherwise we can end up 3412165cb819Smrg # making bogus files that we don't know about and never remove. For 3413165cb819Smrg # instance it was reported that on HP-UX the gcc test will end up 3414165cb819Smrg # making a dummy file named `D' -- because `-MD' means `put the output 3415165cb819Smrg # in D'. 3416165cb819Smrg mkdir conftest.dir 3417165cb819Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 3418165cb819Smrg # using a relative directory. 3419165cb819Smrg cp "$am_depcomp" conftest.dir 3420165cb819Smrg cd conftest.dir 3421165cb819Smrg # We will build objects and dependencies in a subdirectory because 3422165cb819Smrg # it helps to detect inapplicable dependency modes. For instance 3423165cb819Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 3424165cb819Smrg # side effect of compilation, but ICC will put the dependencies in 3425165cb819Smrg # the current directory while Tru64 will put them in the object 3426165cb819Smrg # directory. 3427165cb819Smrg mkdir sub 3428165cb819Smrg 3429165cb819Smrg am_cv_CC_dependencies_compiler_type=none 3430165cb819Smrg if test "$am_compiler_list" = ""; then 3431165cb819Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3432165cb819Smrg fi 3433165cb819Smrg am__universal=false 3434165cb819Smrg case " $depcc " in #( 3435165cb819Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3436165cb819Smrg esac 3437165cb819Smrg 3438165cb819Smrg for depmode in $am_compiler_list; do 3439165cb819Smrg # Setup a source with many dependencies, because some compilers 3440165cb819Smrg # like to wrap large dependency lists on column 80 (with \), and 3441165cb819Smrg # we should not choose a depcomp mode which is confused by this. 3442165cb819Smrg # 3443165cb819Smrg # We need to recreate these files for each test, as the compiler may 3444165cb819Smrg # overwrite some of them when testing with obscure command lines. 3445165cb819Smrg # This happens at least with the AIX C compiler. 3446165cb819Smrg : > sub/conftest.c 3447165cb819Smrg for i in 1 2 3 4 5 6; do 3448165cb819Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3449165cb819Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3450165cb819Smrg # Solaris 8's {/usr,}/bin/sh. 3451165cb819Smrg touch sub/conftst$i.h 3452165cb819Smrg done 3453165cb819Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3454165cb819Smrg 3455165cb819Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3456165cb819Smrg # mode. It turns out that the SunPro C++ compiler does not properly 3457165cb819Smrg # handle `-M -o', and we need to detect this. Also, some Intel 3458165cb819Smrg # versions had trouble with output in subdirs 3459165cb819Smrg am__obj=sub/conftest.${OBJEXT-o} 3460165cb819Smrg am__minus_obj="-o $am__obj" 3461165cb819Smrg case $depmode in 3462165cb819Smrg gcc) 3463165cb819Smrg # This depmode causes a compiler race in universal mode. 3464165cb819Smrg test "$am__universal" = false || continue 3465165cb819Smrg ;; 3466165cb819Smrg nosideeffect) 3467165cb819Smrg # after this tag, mechanisms are not by side-effect, so they'll 3468165cb819Smrg # only be used when explicitly requested 3469165cb819Smrg if test "x$enable_dependency_tracking" = xyes; then 3470165cb819Smrg continue 3471165cb819Smrg else 3472165cb819Smrg break 3473165cb819Smrg fi 3474165cb819Smrg ;; 3475165cb819Smrg msvisualcpp | msvcmsys) 3476165cb819Smrg # This compiler won't grok `-c -o', but also, the minuso test has 3477165cb819Smrg # not run yet. These depmodes are late enough in the game, and 3478165cb819Smrg # so weak that their functioning should not be impacted. 3479165cb819Smrg am__obj=conftest.${OBJEXT-o} 3480165cb819Smrg am__minus_obj= 3481165cb819Smrg ;; 3482165cb819Smrg none) break ;; 3483165cb819Smrg esac 3484165cb819Smrg if depmode=$depmode \ 3485165cb819Smrg source=sub/conftest.c object=$am__obj \ 3486165cb819Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3487165cb819Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3488165cb819Smrg >/dev/null 2>conftest.err && 3489165cb819Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3490165cb819Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3491165cb819Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3492165cb819Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3493165cb819Smrg # icc doesn't choke on unknown options, it will just issue warnings 3494165cb819Smrg # or remarks (even with -Werror). So we grep stderr for any message 3495165cb819Smrg # that says an option was ignored or not supported. 3496165cb819Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3497165cb819Smrg # icc: Command line warning: ignoring option '-M'; no argument required 3498165cb819Smrg # The diagnosis changed in icc 8.0: 3499165cb819Smrg # icc: Command line remark: option '-MP' not supported 3500165cb819Smrg if (grep 'ignoring option' conftest.err || 3501165cb819Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3502165cb819Smrg am_cv_CC_dependencies_compiler_type=$depmode 3503165cb819Smrg break 3504165cb819Smrg fi 3505165cb819Smrg fi 3506165cb819Smrg done 3507165cb819Smrg 3508165cb819Smrg cd .. 3509165cb819Smrg rm -rf conftest.dir 3510165cb819Smrgelse 3511165cb819Smrg am_cv_CC_dependencies_compiler_type=none 3512165cb819Smrgfi 3513165cb819Smrg 3514165cb819Smrgfi 3515165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3516165cb819Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3517165cb819SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3518165cb819Smrg 3519165cb819Smrg if 3520165cb819Smrg test "x$enable_dependency_tracking" != xno \ 3521165cb819Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3522165cb819Smrg am__fastdepCC_TRUE= 3523165cb819Smrg am__fastdepCC_FALSE='#' 3524165cb819Smrgelse 3525165cb819Smrg am__fastdepCC_TRUE='#' 3526165cb819Smrg am__fastdepCC_FALSE= 3527165cb819Smrgfi 3528165cb819Smrg 3529165cb819Smrg 3530165cb819Smrg 3531165cb819Smrgac_ext=c 3532165cb819Smrgac_cpp='$CPP $CPPFLAGS' 3533165cb819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3534165cb819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3535165cb819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3536165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3537165cb819Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3538165cb819Smrg# On Suns, sometimes $CPP names a directory. 3539165cb819Smrgif test -n "$CPP" && test -d "$CPP"; then 3540165cb819Smrg CPP= 3541165cb819Smrgfi 3542165cb819Smrgif test -z "$CPP"; then 3543165cb819Smrg if test "${ac_cv_prog_CPP+set}" = set; then : 3544165cb819Smrg $as_echo_n "(cached) " >&6 3545165cb819Smrgelse 3546165cb819Smrg # Double quotes because CPP needs to be expanded 3547165cb819Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3548165cb819Smrg do 3549165cb819Smrg ac_preproc_ok=false 3550165cb819Smrgfor ac_c_preproc_warn_flag in '' yes 3551100ae103Smrgdo 3552165cb819Smrg # Use a header file that comes with gcc, so configuring glibc 3553165cb819Smrg # with a fresh cross-compiler works. 3554165cb819Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3555165cb819Smrg # <limits.h> exists even on freestanding compilers. 3556165cb819Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3557165cb819Smrg # not just through cpp. "Syntax error" is here to catch this case. 3558165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3559100ae103Smrg/* end confdefs.h. */ 3560165cb819Smrg#ifdef __STDC__ 3561165cb819Smrg# include <limits.h> 3562165cb819Smrg#else 3563165cb819Smrg# include <assert.h> 3564165cb819Smrg#endif 3565165cb819Smrg Syntax error 3566100ae103Smrg_ACEOF 3567165cb819Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3568100ae103Smrg 3569165cb819Smrgelse 3570165cb819Smrg # Broken: fails on valid input. 3571100ae103Smrgcontinue 3572100ae103Smrgfi 3573165cb819Smrgrm -f conftest.err conftest.$ac_ext 3574165cb819Smrg 3575165cb819Smrg # OK, works on sane cases. Now check whether nonexistent headers 3576165cb819Smrg # can be detected and how. 3577165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578100ae103Smrg/* end confdefs.h. */ 3579165cb819Smrg#include <ac_nonexistent.h> 3580100ae103Smrg_ACEOF 3581165cb819Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3582165cb819Smrg # Broken: success on invalid input. 3583165cb819Smrgcontinue 3584100ae103Smrgelse 3585165cb819Smrg # Passes both tests. 3586165cb819Smrgac_preproc_ok=: 3587165cb819Smrgbreak 3588100ae103Smrgfi 3589165cb819Smrgrm -f conftest.err conftest.$ac_ext 3590165cb819Smrg 3591100ae103Smrgdone 3592165cb819Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3593165cb819Smrgrm -f conftest.err conftest.$ac_ext 3594165cb819Smrgif $ac_preproc_ok; then : 3595165cb819Smrg break 3596100ae103Smrgfi 3597100ae103Smrg 3598165cb819Smrg done 3599165cb819Smrg ac_cv_prog_CPP=$CPP 3600165cb819Smrg 3601165cb819Smrgfi 3602165cb819Smrg CPP=$ac_cv_prog_CPP 3603100ae103Smrgelse 3604165cb819Smrg ac_cv_prog_CPP=$CPP 3605165cb819Smrgfi 3606165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3607165cb819Smrg$as_echo "$CPP" >&6; } 3608165cb819Smrgac_preproc_ok=false 3609165cb819Smrgfor ac_c_preproc_warn_flag in '' yes 3610165cb819Smrgdo 3611165cb819Smrg # Use a header file that comes with gcc, so configuring glibc 3612165cb819Smrg # with a fresh cross-compiler works. 3613165cb819Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3614165cb819Smrg # <limits.h> exists even on freestanding compilers. 3615165cb819Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 3616165cb819Smrg # not just through cpp. "Syntax error" is here to catch this case. 3617165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618165cb819Smrg/* end confdefs.h. */ 3619165cb819Smrg#ifdef __STDC__ 3620165cb819Smrg# include <limits.h> 3621165cb819Smrg#else 3622165cb819Smrg# include <assert.h> 3623165cb819Smrg#endif 3624165cb819Smrg Syntax error 3625165cb819Smrg_ACEOF 3626165cb819Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3627165cb819Smrg 3628165cb819Smrgelse 3629165cb819Smrg # Broken: fails on valid input. 3630165cb819Smrgcontinue 3631165cb819Smrgfi 3632165cb819Smrgrm -f conftest.err conftest.$ac_ext 3633165cb819Smrg 3634165cb819Smrg # OK, works on sane cases. Now check whether nonexistent headers 3635165cb819Smrg # can be detected and how. 3636165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3637165cb819Smrg/* end confdefs.h. */ 3638165cb819Smrg#include <ac_nonexistent.h> 3639165cb819Smrg_ACEOF 3640165cb819Smrgif ac_fn_c_try_cpp "$LINENO"; then : 3641165cb819Smrg # Broken: success on invalid input. 3642165cb819Smrgcontinue 3643165cb819Smrgelse 3644165cb819Smrg # Passes both tests. 3645165cb819Smrgac_preproc_ok=: 3646165cb819Smrgbreak 3647165cb819Smrgfi 3648165cb819Smrgrm -f conftest.err conftest.$ac_ext 3649100ae103Smrg 3650165cb819Smrgdone 3651165cb819Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3652165cb819Smrgrm -f conftest.err conftest.$ac_ext 3653165cb819Smrgif $ac_preproc_ok; then : 3654165cb819Smrg 3655165cb819Smrgelse 3656165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3657165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3658165cb819Smrgas_fn_error "C preprocessor \"$CPP\" fails sanity check 3659165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 3660100ae103Smrgfi 3661165cb819Smrg 3662100ae103Smrgac_ext=c 3663100ae103Smrgac_cpp='$CPP $CPPFLAGS' 3664100ae103Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3665100ae103Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3666100ae103Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3667100ae103Smrg 3668165cb819Smrg 3669165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3670165cb819Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3671165cb819Smrgif test "${ac_cv_path_GREP+set}" = set; then : 3672165cb819Smrg $as_echo_n "(cached) " >&6 3673165cb819Smrgelse 3674165cb819Smrg if test -z "$GREP"; then 3675165cb819Smrg ac_path_GREP_found=false 3676165cb819Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3677165cb819Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3678165cb819Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3679165cb819Smrgdo 3680165cb819Smrg IFS=$as_save_IFS 3681165cb819Smrg test -z "$as_dir" && as_dir=. 3682165cb819Smrg for ac_prog in grep ggrep; do 3683165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3684165cb819Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3685165cb819Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3686165cb819Smrg# Check for GNU ac_path_GREP and select it if it is found. 3687165cb819Smrg # Check for GNU $ac_path_GREP 3688165cb819Smrgcase `"$ac_path_GREP" --version 2>&1` in 3689165cb819Smrg*GNU*) 3690165cb819Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3691165cb819Smrg*) 3692165cb819Smrg ac_count=0 3693165cb819Smrg $as_echo_n 0123456789 >"conftest.in" 3694165cb819Smrg while : 3695165cb819Smrg do 3696165cb819Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3697165cb819Smrg mv "conftest.tmp" "conftest.in" 3698165cb819Smrg cp "conftest.in" "conftest.nl" 3699165cb819Smrg $as_echo 'GREP' >> "conftest.nl" 3700165cb819Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3701165cb819Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3702165cb819Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3703165cb819Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 3704165cb819Smrg # Best one so far, save it but keep looking for a better one 3705165cb819Smrg ac_cv_path_GREP="$ac_path_GREP" 3706165cb819Smrg ac_path_GREP_max=$ac_count 3707165cb819Smrg fi 3708165cb819Smrg # 10*(2^10) chars as input seems more than enough 3709165cb819Smrg test $ac_count -gt 10 && break 3710165cb819Smrg done 3711165cb819Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3712165cb819Smrgesac 3713165cb819Smrg 3714165cb819Smrg $ac_path_GREP_found && break 3 3715165cb819Smrg done 3716165cb819Smrg done 3717165cb819Smrg done 3718165cb819SmrgIFS=$as_save_IFS 3719165cb819Smrg if test -z "$ac_cv_path_GREP"; then 3720165cb819Smrg as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3721165cb819Smrg fi 3722165cb819Smrgelse 3723165cb819Smrg ac_cv_path_GREP=$GREP 3724165cb819Smrgfi 3725165cb819Smrg 3726165cb819Smrgfi 3727165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3728165cb819Smrg$as_echo "$ac_cv_path_GREP" >&6; } 3729165cb819Smrg GREP="$ac_cv_path_GREP" 3730100ae103Smrg 3731100ae103Smrg 3732165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3733165cb819Smrg$as_echo_n "checking for egrep... " >&6; } 3734165cb819Smrgif test "${ac_cv_path_EGREP+set}" = set; then : 3735165cb819Smrg $as_echo_n "(cached) " >&6 3736165cb819Smrgelse 3737165cb819Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3738165cb819Smrg then ac_cv_path_EGREP="$GREP -E" 3739165cb819Smrg else 3740165cb819Smrg if test -z "$EGREP"; then 3741165cb819Smrg ac_path_EGREP_found=false 3742165cb819Smrg # Loop through the user's path and test for each of PROGNAME-LIST 3743165cb819Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3744165cb819Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3745165cb819Smrgdo 3746165cb819Smrg IFS=$as_save_IFS 3747165cb819Smrg test -z "$as_dir" && as_dir=. 3748165cb819Smrg for ac_prog in egrep; do 3749165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3750165cb819Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3751165cb819Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3752165cb819Smrg# Check for GNU ac_path_EGREP and select it if it is found. 3753165cb819Smrg # Check for GNU $ac_path_EGREP 3754165cb819Smrgcase `"$ac_path_EGREP" --version 2>&1` in 3755165cb819Smrg*GNU*) 3756165cb819Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3757165cb819Smrg*) 3758165cb819Smrg ac_count=0 3759165cb819Smrg $as_echo_n 0123456789 >"conftest.in" 3760165cb819Smrg while : 3761165cb819Smrg do 3762165cb819Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 3763165cb819Smrg mv "conftest.tmp" "conftest.in" 3764165cb819Smrg cp "conftest.in" "conftest.nl" 3765165cb819Smrg $as_echo 'EGREP' >> "conftest.nl" 3766165cb819Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3767165cb819Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3768165cb819Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 3769165cb819Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3770165cb819Smrg # Best one so far, save it but keep looking for a better one 3771165cb819Smrg ac_cv_path_EGREP="$ac_path_EGREP" 3772165cb819Smrg ac_path_EGREP_max=$ac_count 3773165cb819Smrg fi 3774165cb819Smrg # 10*(2^10) chars as input seems more than enough 3775165cb819Smrg test $ac_count -gt 10 && break 3776165cb819Smrg done 3777165cb819Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3778165cb819Smrgesac 3779165cb819Smrg 3780165cb819Smrg $ac_path_EGREP_found && break 3 3781165cb819Smrg done 3782165cb819Smrg done 3783165cb819Smrg done 3784165cb819SmrgIFS=$as_save_IFS 3785165cb819Smrg if test -z "$ac_cv_path_EGREP"; then 3786165cb819Smrg as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3787165cb819Smrg fi 3788165cb819Smrgelse 3789165cb819Smrg ac_cv_path_EGREP=$EGREP 3790100ae103Smrgfi 3791165cb819Smrg 3792100ae103Smrg fi 3793100ae103Smrgfi 3794165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3795165cb819Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 3796165cb819Smrg EGREP="$ac_cv_path_EGREP" 3797100ae103Smrg 3798100ae103Smrg 3799165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3800165cb819Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 3801165cb819Smrgif test "${ac_cv_header_stdc+set}" = set; then : 3802165cb819Smrg $as_echo_n "(cached) " >&6 3803165cb819Smrgelse 3804165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805165cb819Smrg/* end confdefs.h. */ 3806165cb819Smrg#include <stdlib.h> 3807165cb819Smrg#include <stdarg.h> 3808165cb819Smrg#include <string.h> 3809165cb819Smrg#include <float.h> 3810100ae103Smrg 3811165cb819Smrgint 3812165cb819Smrgmain () 3813165cb819Smrg{ 3814100ae103Smrg 3815165cb819Smrg ; 3816165cb819Smrg return 0; 3817165cb819Smrg} 3818165cb819Smrg_ACEOF 3819165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 3820165cb819Smrg ac_cv_header_stdc=yes 3821165cb819Smrgelse 3822165cb819Smrg ac_cv_header_stdc=no 3823100ae103Smrgfi 3824165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3825165cb819Smrg 3826165cb819Smrgif test $ac_cv_header_stdc = yes; then 3827165cb819Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3828165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829165cb819Smrg/* end confdefs.h. */ 3830165cb819Smrg#include <string.h> 3831165cb819Smrg 3832165cb819Smrg_ACEOF 3833165cb819Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3834165cb819Smrg $EGREP "memchr" >/dev/null 2>&1; then : 3835165cb819Smrg 3836165cb819Smrgelse 3837165cb819Smrg ac_cv_header_stdc=no 3838165cb819Smrgfi 3839165cb819Smrgrm -f conftest* 3840165cb819Smrg 3841165cb819Smrgfi 3842165cb819Smrg 3843165cb819Smrgif test $ac_cv_header_stdc = yes; then 3844165cb819Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3845165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846165cb819Smrg/* end confdefs.h. */ 3847165cb819Smrg#include <stdlib.h> 3848165cb819Smrg 3849165cb819Smrg_ACEOF 3850165cb819Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3851165cb819Smrg $EGREP "free" >/dev/null 2>&1; then : 3852165cb819Smrg 3853165cb819Smrgelse 3854165cb819Smrg ac_cv_header_stdc=no 3855165cb819Smrgfi 3856165cb819Smrgrm -f conftest* 3857165cb819Smrg 3858165cb819Smrgfi 3859165cb819Smrg 3860165cb819Smrgif test $ac_cv_header_stdc = yes; then 3861165cb819Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3862165cb819Smrg if test "$cross_compiling" = yes; then : 3863165cb819Smrg : 3864165cb819Smrgelse 3865165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3866165cb819Smrg/* end confdefs.h. */ 3867165cb819Smrg#include <ctype.h> 3868165cb819Smrg#include <stdlib.h> 3869165cb819Smrg#if ((' ' & 0x0FF) == 0x020) 3870165cb819Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3871165cb819Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3872165cb819Smrg#else 3873165cb819Smrg# define ISLOWER(c) \ 3874165cb819Smrg (('a' <= (c) && (c) <= 'i') \ 3875165cb819Smrg || ('j' <= (c) && (c) <= 'r') \ 3876165cb819Smrg || ('s' <= (c) && (c) <= 'z')) 3877165cb819Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3878165cb819Smrg#endif 3879165cb819Smrg 3880165cb819Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3881165cb819Smrgint 3882165cb819Smrgmain () 3883165cb819Smrg{ 3884165cb819Smrg int i; 3885165cb819Smrg for (i = 0; i < 256; i++) 3886165cb819Smrg if (XOR (islower (i), ISLOWER (i)) 3887165cb819Smrg || toupper (i) != TOUPPER (i)) 3888165cb819Smrg return 2; 3889165cb819Smrg return 0; 3890165cb819Smrg} 3891165cb819Smrg_ACEOF 3892165cb819Smrgif ac_fn_c_try_run "$LINENO"; then : 3893165cb819Smrg 3894165cb819Smrgelse 3895165cb819Smrg ac_cv_header_stdc=no 3896165cb819Smrgfi 3897165cb819Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3898165cb819Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 3899165cb819Smrgfi 3900165cb819Smrg 3901165cb819Smrgfi 3902165cb819Smrgfi 3903165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3904165cb819Smrg$as_echo "$ac_cv_header_stdc" >&6; } 3905165cb819Smrgif test $ac_cv_header_stdc = yes; then 3906165cb819Smrg 3907165cb819Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3908165cb819Smrg 3909165cb819Smrgfi 3910165cb819Smrg 3911165cb819Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3912165cb819Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3913165cb819Smrg inttypes.h stdint.h unistd.h 3914165cb819Smrgdo : 3915165cb819Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3916165cb819Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3917165cb819Smrg" 3918165cb819Smrgeval as_val=\$$as_ac_Header 3919165cb819Smrg if test "x$as_val" = x""yes; then : 3920165cb819Smrg cat >>confdefs.h <<_ACEOF 3921165cb819Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3922165cb819Smrg_ACEOF 3923165cb819Smrg 3924165cb819Smrgfi 3925165cb819Smrg 3926165cb819Smrgdone 3927165cb819Smrg 3928165cb819Smrg 3929165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3930165cb819Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3931165cb819Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then : 3932165cb819Smrg $as_echo_n "(cached) " >&6 3933165cb819Smrgelse 3934165cb819Smrg ac_cv_prog_cc_c99=no 3935165cb819Smrgac_save_CC=$CC 3936165cb819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937165cb819Smrg/* end confdefs.h. */ 3938165cb819Smrg#include <stdarg.h> 3939165cb819Smrg#include <stdbool.h> 3940165cb819Smrg#include <stdlib.h> 3941165cb819Smrg#include <wchar.h> 3942165cb819Smrg#include <stdio.h> 3943165cb819Smrg 3944165cb819Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3945165cb819Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3946165cb819Smrg#define showlist(...) puts (#__VA_ARGS__) 3947165cb819Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3948165cb819Smrgstatic void 3949165cb819Smrgtest_varargs_macros (void) 3950165cb819Smrg{ 3951165cb819Smrg int x = 1234; 3952165cb819Smrg int y = 5678; 3953165cb819Smrg debug ("Flag"); 3954165cb819Smrg debug ("X = %d\n", x); 3955165cb819Smrg showlist (The first, second, and third items.); 3956165cb819Smrg report (x>y, "x is %d but y is %d", x, y); 3957165cb819Smrg} 3958165cb819Smrg 3959165cb819Smrg// Check long long types. 3960165cb819Smrg#define BIG64 18446744073709551615ull 3961165cb819Smrg#define BIG32 4294967295ul 3962165cb819Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3963165cb819Smrg#if !BIG_OK 3964165cb819Smrg your preprocessor is broken; 3965165cb819Smrg#endif 3966165cb819Smrg#if BIG_OK 3967165cb819Smrg#else 3968165cb819Smrg your preprocessor is broken; 3969165cb819Smrg#endif 3970165cb819Smrgstatic long long int bignum = -9223372036854775807LL; 3971165cb819Smrgstatic unsigned long long int ubignum = BIG64; 3972165cb819Smrg 3973165cb819Smrgstruct incomplete_array 3974165cb819Smrg{ 3975165cb819Smrg int datasize; 3976165cb819Smrg double data[]; 3977165cb819Smrg}; 3978165cb819Smrg 3979165cb819Smrgstruct named_init { 3980165cb819Smrg int number; 3981165cb819Smrg const wchar_t *name; 3982165cb819Smrg double average; 3983165cb819Smrg}; 3984165cb819Smrg 3985165cb819Smrgtypedef const char *ccp; 3986165cb819Smrg 3987165cb819Smrgstatic inline int 3988165cb819Smrgtest_restrict (ccp restrict text) 3989165cb819Smrg{ 3990165cb819Smrg // See if C++-style comments work. 3991165cb819Smrg // Iterate through items via the restricted pointer. 3992165cb819Smrg // Also check for declarations in for loops. 3993165cb819Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3994165cb819Smrg continue; 3995165cb819Smrg return 0; 3996165cb819Smrg} 3997165cb819Smrg 3998165cb819Smrg// Check varargs and va_copy. 3999165cb819Smrgstatic void 4000165cb819Smrgtest_varargs (const char *format, ...) 4001165cb819Smrg{ 4002165cb819Smrg va_list args; 4003165cb819Smrg va_start (args, format); 4004165cb819Smrg va_list args_copy; 4005165cb819Smrg va_copy (args_copy, args); 4006165cb819Smrg 4007165cb819Smrg const char *str; 4008165cb819Smrg int number; 4009165cb819Smrg float fnumber; 4010165cb819Smrg 4011165cb819Smrg while (*format) 4012165cb819Smrg { 4013165cb819Smrg switch (*format++) 4014165cb819Smrg { 4015165cb819Smrg case 's': // string 4016165cb819Smrg str = va_arg (args_copy, const char *); 4017165cb819Smrg break; 4018165cb819Smrg case 'd': // int 4019165cb819Smrg number = va_arg (args_copy, int); 4020165cb819Smrg break; 4021165cb819Smrg case 'f': // float 4022165cb819Smrg fnumber = va_arg (args_copy, double); 4023165cb819Smrg break; 4024165cb819Smrg default: 4025165cb819Smrg break; 4026165cb819Smrg } 4027165cb819Smrg } 4028165cb819Smrg va_end (args_copy); 4029165cb819Smrg va_end (args); 4030165cb819Smrg} 4031165cb819Smrg 4032165cb819Smrgint 4033165cb819Smrgmain () 4034165cb819Smrg{ 4035165cb819Smrg 4036165cb819Smrg // Check bool. 4037165cb819Smrg _Bool success = false; 4038165cb819Smrg 4039165cb819Smrg // Check restrict. 4040165cb819Smrg if (test_restrict ("String literal") == 0) 4041165cb819Smrg success = true; 4042165cb819Smrg char *restrict newvar = "Another string"; 4043165cb819Smrg 4044165cb819Smrg // Check varargs. 4045165cb819Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 4046165cb819Smrg test_varargs_macros (); 4047165cb819Smrg 4048165cb819Smrg // Check flexible array members. 4049165cb819Smrg struct incomplete_array *ia = 4050165cb819Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4051165cb819Smrg ia->datasize = 10; 4052165cb819Smrg for (int i = 0; i < ia->datasize; ++i) 4053165cb819Smrg ia->data[i] = i * 1.234; 4054165cb819Smrg 4055165cb819Smrg // Check named initializers. 4056165cb819Smrg struct named_init ni = { 4057165cb819Smrg .number = 34, 4058165cb819Smrg .name = L"Test wide string", 4059165cb819Smrg .average = 543.34343, 4060165cb819Smrg }; 4061165cb819Smrg 4062165cb819Smrg ni.number = 58; 4063165cb819Smrg 4064165cb819Smrg int dynamic_array[ni.number]; 4065165cb819Smrg dynamic_array[ni.number - 1] = 543; 4066165cb819Smrg 4067165cb819Smrg // work around unused variable warnings 4068165cb819Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4069165cb819Smrg || dynamic_array[ni.number - 1] != 543); 4070165cb819Smrg 4071165cb819Smrg ; 4072165cb819Smrg return 0; 4073165cb819Smrg} 4074165cb819Smrg_ACEOF 4075165cb819Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4076165cb819Smrgdo 4077165cb819Smrg CC="$ac_save_CC $ac_arg" 4078165cb819Smrg if ac_fn_c_try_compile "$LINENO"; then : 4079165cb819Smrg ac_cv_prog_cc_c99=$ac_arg 4080165cb819Smrgfi 4081165cb819Smrgrm -f core conftest.err conftest.$ac_objext 4082165cb819Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 4083165cb819Smrgdone 4084165cb819Smrgrm -f conftest.$ac_ext 4085165cb819SmrgCC=$ac_save_CC 4086165cb819Smrg 4087165cb819Smrgfi 4088165cb819Smrg# AC_CACHE_VAL 4089165cb819Smrgcase "x$ac_cv_prog_cc_c99" in 4090165cb819Smrg x) 4091165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4092165cb819Smrg$as_echo "none needed" >&6; } ;; 4093165cb819Smrg xno) 4094165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4095165cb819Smrg$as_echo "unsupported" >&6; } ;; 4096165cb819Smrg *) 4097165cb819Smrg CC="$CC $ac_cv_prog_cc_c99" 4098165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4099165cb819Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4100165cb819Smrgesac 4101165cb819Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 4102165cb819Smrg 4103165cb819Smrgfi 4104165cb819Smrg 4105165cb819Smrg 4106165cb819Smrg 4107165cb819Smrg 4108165cb819Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4109165cb819Smrg if test -n "$ac_tool_prefix"; then 4110165cb819Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4111165cb819Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4112165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4113165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4114165cb819Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4115165cb819Smrg $as_echo_n "(cached) " >&6 4116165cb819Smrgelse 4117165cb819Smrg case $PKG_CONFIG in 4118165cb819Smrg [\\/]* | ?:[\\/]*) 4119165cb819Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4120165cb819Smrg ;; 4121165cb819Smrg *) 4122165cb819Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4123165cb819Smrgfor as_dir in $PATH 4124165cb819Smrgdo 4125165cb819Smrg IFS=$as_save_IFS 4126165cb819Smrg test -z "$as_dir" && as_dir=. 4127165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4128165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4129165cb819Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4130165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4131165cb819Smrg break 2 4132165cb819Smrg fi 4133165cb819Smrgdone 4134165cb819Smrg done 4135165cb819SmrgIFS=$as_save_IFS 4136165cb819Smrg 4137165cb819Smrg ;; 4138165cb819Smrgesac 4139165cb819Smrgfi 4140165cb819SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4141165cb819Smrgif test -n "$PKG_CONFIG"; then 4142165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4143165cb819Smrg$as_echo "$PKG_CONFIG" >&6; } 4144165cb819Smrgelse 4145165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4146165cb819Smrg$as_echo "no" >&6; } 4147165cb819Smrgfi 4148165cb819Smrg 4149165cb819Smrg 4150165cb819Smrgfi 4151165cb819Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4152165cb819Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4153165cb819Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4154165cb819Smrgset dummy pkg-config; ac_word=$2 4155165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4156165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4157165cb819Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4158165cb819Smrg $as_echo_n "(cached) " >&6 4159165cb819Smrgelse 4160165cb819Smrg case $ac_pt_PKG_CONFIG in 4161165cb819Smrg [\\/]* | ?:[\\/]*) 4162165cb819Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4163165cb819Smrg ;; 4164165cb819Smrg *) 4165165cb819Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4166165cb819Smrgfor as_dir in $PATH 4167165cb819Smrgdo 4168165cb819Smrg IFS=$as_save_IFS 4169165cb819Smrg test -z "$as_dir" && as_dir=. 4170165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4171165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4172165cb819Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4173165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4174165cb819Smrg break 2 4175165cb819Smrg fi 4176165cb819Smrgdone 4177165cb819Smrg done 4178165cb819SmrgIFS=$as_save_IFS 4179165cb819Smrg 4180165cb819Smrg ;; 4181165cb819Smrgesac 4182165cb819Smrgfi 4183165cb819Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4184165cb819Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4185165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4186165cb819Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4187165cb819Smrgelse 4188165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4189165cb819Smrg$as_echo "no" >&6; } 4190165cb819Smrgfi 4191165cb819Smrg 4192165cb819Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4193165cb819Smrg PKG_CONFIG="" 4194165cb819Smrg else 4195165cb819Smrg case $cross_compiling:$ac_tool_warned in 4196165cb819Smrgyes:) 4197165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4198165cb819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4199165cb819Smrgac_tool_warned=yes ;; 4200165cb819Smrgesac 4201165cb819Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4202165cb819Smrg fi 4203165cb819Smrgelse 4204165cb819Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4205165cb819Smrgfi 4206165cb819Smrg 4207165cb819Smrgfi 4208165cb819Smrgif test -n "$PKG_CONFIG"; then 4209165cb819Smrg _pkg_min_version=0.9.0 4210165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4211165cb819Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4212165cb819Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4213165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4214165cb819Smrg$as_echo "yes" >&6; } 4215165cb819Smrg else 4216165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217165cb819Smrg$as_echo "no" >&6; } 4218165cb819Smrg PKG_CONFIG="" 4219165cb819Smrg fi 4220165cb819Smrg 4221165cb819Smrgfi 4222165cb819Smrg# Make sure we can run config.sub. 4223165cb819Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4224165cb819Smrg as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4225165cb819Smrg 4226165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4227165cb819Smrg$as_echo_n "checking build system type... " >&6; } 4228165cb819Smrgif test "${ac_cv_build+set}" = set; then : 4229165cb819Smrg $as_echo_n "(cached) " >&6 4230165cb819Smrgelse 4231165cb819Smrg ac_build_alias=$build_alias 4232165cb819Smrgtest "x$ac_build_alias" = x && 4233165cb819Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4234165cb819Smrgtest "x$ac_build_alias" = x && 4235165cb819Smrg as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 4236165cb819Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4237165cb819Smrg as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4238165cb819Smrg 4239165cb819Smrgfi 4240165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4241165cb819Smrg$as_echo "$ac_cv_build" >&6; } 4242165cb819Smrgcase $ac_cv_build in 4243165cb819Smrg*-*-*) ;; 4244165cb819Smrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 4245165cb819Smrgesac 4246165cb819Smrgbuild=$ac_cv_build 4247165cb819Smrgac_save_IFS=$IFS; IFS='-' 4248165cb819Smrgset x $ac_cv_build 4249165cb819Smrgshift 4250165cb819Smrgbuild_cpu=$1 4251165cb819Smrgbuild_vendor=$2 4252165cb819Smrgshift; shift 4253165cb819Smrg# Remember, the first character of IFS is used to create $*, 4254165cb819Smrg# except with old shells: 4255165cb819Smrgbuild_os=$* 4256165cb819SmrgIFS=$ac_save_IFS 4257165cb819Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4258165cb819Smrg 4259165cb819Smrg 4260165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4261165cb819Smrg$as_echo_n "checking host system type... " >&6; } 4262165cb819Smrgif test "${ac_cv_host+set}" = set; then : 4263165cb819Smrg $as_echo_n "(cached) " >&6 4264165cb819Smrgelse 4265165cb819Smrg if test "x$host_alias" = x; then 4266165cb819Smrg ac_cv_host=$ac_cv_build 4267165cb819Smrgelse 4268165cb819Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4269165cb819Smrg as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4270165cb819Smrgfi 4271165cb819Smrg 4272165cb819Smrgfi 4273165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4274165cb819Smrg$as_echo "$ac_cv_host" >&6; } 4275165cb819Smrgcase $ac_cv_host in 4276165cb819Smrg*-*-*) ;; 4277165cb819Smrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 4278165cb819Smrgesac 4279165cb819Smrghost=$ac_cv_host 4280165cb819Smrgac_save_IFS=$IFS; IFS='-' 4281165cb819Smrgset x $ac_cv_host 4282165cb819Smrgshift 4283165cb819Smrghost_cpu=$1 4284165cb819Smrghost_vendor=$2 4285165cb819Smrgshift; shift 4286165cb819Smrg# Remember, the first character of IFS is used to create $*, 4287165cb819Smrg# except with old shells: 4288165cb819Smrghost_os=$* 4289165cb819SmrgIFS=$ac_save_IFS 4290165cb819Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4291165cb819Smrg 4292165cb819Smrg 4293165cb819Smrg 4294165cb819Smrg 4295165cb819Smrg 4296165cb819Smrgif test "x$GCC" = xyes ; then 4297165cb819Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4298165cb819Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4299165cb819Smrg-Wbad-function-cast" 4300165cb819Smrg case `$CC -dumpversion` in 4301165cb819Smrg 3.4.* | 4.*) 4302165cb819Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4303165cb819Smrg ;; 4304165cb819Smrg esac 4305165cb819Smrgelse 4306165cb819Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4307165cb819Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4308165cb819Smrg SUNCC="yes" 4309165cb819Smrgelse 4310165cb819Smrg SUNCC="no" 4311165cb819Smrgfi 4312165cb819Smrg 4313165cb819Smrg if test "x$SUNCC" = "xyes"; then 4314165cb819Smrg CWARNFLAGS="-v" 4315165cb819Smrg fi 4316165cb819Smrgfi 4317165cb819Smrg 4318165cb819Smrg# Check whether --enable-silent-rules was given. 4319165cb819Smrgif test "${enable_silent_rules+set}" = set; then : 4320165cb819Smrg enableval=$enable_silent_rules; 4321165cb819Smrgfi 4322165cb819Smrg 4323165cb819Smrgcase $enable_silent_rules in 4324165cb819Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4325165cb819Smrgno) AM_DEFAULT_VERBOSITY=1;; 4326165cb819Smrg*) AM_DEFAULT_VERBOSITY=0;; 4327165cb819Smrgesac 4328165cb819SmrgAM_BACKSLASH='\' 4329165cb819Smrg 4330165cb819Smrg 4331165cb819Smrg 4332165cb819Smrg 4333165cb819Smrg 4334165cb819Smrg 4335165cb819Smrg 4336165cb819Smrg# Check whether --enable-strict-compilation was given. 4337165cb819Smrgif test "${enable_strict_compilation+set}" = set; then : 4338165cb819Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4339165cb819Smrgelse 4340165cb819Smrg STRICT_COMPILE=no 4341165cb819Smrgfi 4342165cb819Smrg 4343165cb819Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4344165cb819Smrg ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4345165cb819Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 4346165cb819Smrg SUNCC="yes" 4347165cb819Smrgelse 4348165cb819Smrg SUNCC="no" 4349165cb819Smrgfi 4350165cb819Smrg 4351165cb819Smrg ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4352165cb819Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 4353165cb819Smrg INTELCC="yes" 4354165cb819Smrgelse 4355165cb819Smrg INTELCC="no" 4356165cb819Smrgfi 4357165cb819Smrg 4358165cb819Smrg if test "x$GCC" = xyes ; then 4359165cb819Smrg STRICT_CFLAGS="-pedantic -Werror" 4360165cb819Smrg elif test "x$SUNCC" = "xyes"; then 4361165cb819Smrg STRICT_CFLAGS="-errwarn" 4362165cb819Smrg elif test "x$INTELCC" = "xyes"; then 4363165cb819Smrg STRICT_CFLAGS="-Werror" 4364165cb819Smrg fi 4365165cb819Smrgfi 4366165cb819SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4367165cb819Smrg 4368165cb819Smrg 4369165cb819Smrg 4370165cb819Smrg 4371165cb819Smrg# Check whether --with-release-version was given. 4372165cb819Smrgif test "${with_release_version+set}" = set; then : 4373165cb819Smrg withval=$with_release_version; RELEASE_VERSION="$withval" 4374165cb819Smrgelse 4375165cb819Smrg RELEASE_VERSION="" 4376165cb819Smrgfi 4377165cb819Smrg 4378165cb819Smrg if test "x$RELEASE_VERSION" != "x"; then 4379165cb819Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 4380165cb819Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4381165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 4382165cb819Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4383165cb819Smrg fi 4384165cb819Smrg 4385165cb819Smrgcat >>confdefs.h <<_ACEOF 4386165cb819Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4387165cb819Smrg_ACEOF 4388165cb819Smrg 4389165cb819Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4390165cb819Smrg if test "x$PVM" = "x"; then 4391165cb819Smrg PVM="0" 4392165cb819Smrg fi 4393165cb819Smrg 4394165cb819Smrgcat >>confdefs.h <<_ACEOF 4395165cb819Smrg#define PACKAGE_VERSION_MINOR $PVM 4396165cb819Smrg_ACEOF 4397165cb819Smrg 4398165cb819Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4399165cb819Smrg if test "x$PVP" = "x"; then 4400165cb819Smrg PVP="0" 4401165cb819Smrg fi 4402165cb819Smrg 4403165cb819Smrgcat >>confdefs.h <<_ACEOF 4404165cb819Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4405165cb819Smrg_ACEOF 4406165cb819Smrg 4407165cb819Smrg 4408165cb819Smrg 4409165cb819SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4410165cb819Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4411165cb819Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4412165cb819Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4413165cb819Smrg 4414165cb819Smrg 4415165cb819Smrg 4416165cb819Smrg 4417165cb819Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4418165cb819SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4419165cb819Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4420165cb819Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4421165cb819Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4422165cb819Smrg 4423165cb819Smrg 4424165cb819Smrg 4425165cb819Smrg 4426165cb819Smrg 4427165cb819Smrgif test x$APP_MAN_SUFFIX = x ; then 4428165cb819Smrg APP_MAN_SUFFIX=1 4429165cb819Smrgfi 4430165cb819Smrgif test x$APP_MAN_DIR = x ; then 4431165cb819Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4432165cb819Smrgfi 4433165cb819Smrg 4434165cb819Smrgif test x$LIB_MAN_SUFFIX = x ; then 4435165cb819Smrg LIB_MAN_SUFFIX=3 4436165cb819Smrgfi 4437165cb819Smrgif test x$LIB_MAN_DIR = x ; then 4438165cb819Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4439165cb819Smrgfi 4440165cb819Smrg 4441165cb819Smrgif test x$FILE_MAN_SUFFIX = x ; then 4442165cb819Smrg case $host_os in 4443165cb819Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 4444165cb819Smrg *) FILE_MAN_SUFFIX=5 ;; 4445165cb819Smrg esac 4446165cb819Smrgfi 4447165cb819Smrgif test x$FILE_MAN_DIR = x ; then 4448165cb819Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4449165cb819Smrgfi 4450165cb819Smrg 4451165cb819Smrgif test x$MISC_MAN_SUFFIX = x ; then 4452165cb819Smrg case $host_os in 4453165cb819Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 4454165cb819Smrg *) MISC_MAN_SUFFIX=7 ;; 4455165cb819Smrg esac 4456165cb819Smrgfi 4457165cb819Smrgif test x$MISC_MAN_DIR = x ; then 4458165cb819Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4459165cb819Smrgfi 4460165cb819Smrg 4461165cb819Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 4462165cb819Smrg case $host_os in 4463165cb819Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4464165cb819Smrg *) DRIVER_MAN_SUFFIX=4 ;; 4465165cb819Smrg esac 4466165cb819Smrgfi 4467165cb819Smrgif test x$DRIVER_MAN_DIR = x ; then 4468165cb819Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4469165cb819Smrgfi 4470165cb819Smrg 4471165cb819Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 4472165cb819Smrg case $host_os in 4473165cb819Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4474165cb819Smrg *) ADMIN_MAN_SUFFIX=8 ;; 4475165cb819Smrg esac 4476165cb819Smrgfi 4477165cb819Smrgif test x$ADMIN_MAN_DIR = x ; then 4478165cb819Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4479165cb819Smrgfi 4480165cb819Smrg 4481165cb819Smrg 4482165cb819Smrg 4483165cb819Smrg 4484165cb819Smrg 4485165cb819Smrg 4486165cb819Smrg 4487165cb819Smrg 4488165cb819Smrg 4489165cb819Smrg 4490165cb819Smrg 4491165cb819Smrg 4492165cb819Smrg 4493165cb819Smrg 4494165cb819Smrg 4495165cb819Smrg 4496165cb819Smrg 4497165cb819Smrgac_config_headers="$ac_config_headers config.h" 4498165cb819Smrg 4499165cb819Smrg 4500165cb819Smrgac_ext=c 4501165cb819Smrgac_cpp='$CPP $CPPFLAGS' 4502165cb819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4503165cb819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4504165cb819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 4505165cb819Smrgif test -n "$ac_tool_prefix"; then 4506165cb819Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4507165cb819Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 4508165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4509165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4510165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 4511165cb819Smrg $as_echo_n "(cached) " >&6 4512165cb819Smrgelse 4513165cb819Smrg if test -n "$CC"; then 4514165cb819Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 4515165cb819Smrgelse 4516165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4517165cb819Smrgfor as_dir in $PATH 4518165cb819Smrgdo 4519165cb819Smrg IFS=$as_save_IFS 4520165cb819Smrg test -z "$as_dir" && as_dir=. 4521165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4522165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4523165cb819Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 4524165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4525165cb819Smrg break 2 4526165cb819Smrg fi 4527165cb819Smrgdone 4528165cb819Smrg done 4529165cb819SmrgIFS=$as_save_IFS 4530165cb819Smrg 4531165cb819Smrgfi 4532165cb819Smrgfi 4533165cb819SmrgCC=$ac_cv_prog_CC 4534165cb819Smrgif test -n "$CC"; then 4535165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4536165cb819Smrg$as_echo "$CC" >&6; } 4537165cb819Smrgelse 4538165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4539165cb819Smrg$as_echo "no" >&6; } 4540165cb819Smrgfi 4541165cb819Smrg 4542165cb819Smrg 4543165cb819Smrgfi 4544165cb819Smrgif test -z "$ac_cv_prog_CC"; then 4545165cb819Smrg ac_ct_CC=$CC 4546165cb819Smrg # Extract the first word of "gcc", so it can be a program name with args. 4547165cb819Smrgset dummy gcc; ac_word=$2 4548165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4550165cb819Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4551165cb819Smrg $as_echo_n "(cached) " >&6 4552165cb819Smrgelse 4553165cb819Smrg if test -n "$ac_ct_CC"; then 4554165cb819Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4555165cb819Smrgelse 4556165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557165cb819Smrgfor as_dir in $PATH 4558165cb819Smrgdo 4559165cb819Smrg IFS=$as_save_IFS 4560165cb819Smrg test -z "$as_dir" && as_dir=. 4561165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4562165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4563165cb819Smrg ac_cv_prog_ac_ct_CC="gcc" 4564165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4565165cb819Smrg break 2 4566165cb819Smrg fi 4567165cb819Smrgdone 4568165cb819Smrg done 4569165cb819SmrgIFS=$as_save_IFS 4570165cb819Smrg 4571165cb819Smrgfi 4572165cb819Smrgfi 4573165cb819Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 4574165cb819Smrgif test -n "$ac_ct_CC"; then 4575165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4576165cb819Smrg$as_echo "$ac_ct_CC" >&6; } 4577165cb819Smrgelse 4578165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4579165cb819Smrg$as_echo "no" >&6; } 4580165cb819Smrgfi 4581165cb819Smrg 4582165cb819Smrg if test "x$ac_ct_CC" = x; then 4583165cb819Smrg CC="" 4584165cb819Smrg else 4585165cb819Smrg case $cross_compiling:$ac_tool_warned in 4586165cb819Smrgyes:) 4587165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4588165cb819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4589165cb819Smrgac_tool_warned=yes ;; 4590165cb819Smrgesac 4591165cb819Smrg CC=$ac_ct_CC 4592165cb819Smrg fi 4593165cb819Smrgelse 4594165cb819Smrg CC="$ac_cv_prog_CC" 4595165cb819Smrgfi 4596165cb819Smrg 4597165cb819Smrgif test -z "$CC"; then 4598165cb819Smrg if test -n "$ac_tool_prefix"; then 4599165cb819Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4600165cb819Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 4601165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4602165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4603165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 4604165cb819Smrg $as_echo_n "(cached) " >&6 4605165cb819Smrgelse 4606165cb819Smrg if test -n "$CC"; then 4607165cb819Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 4608165cb819Smrgelse 4609165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610165cb819Smrgfor as_dir in $PATH 4611165cb819Smrgdo 4612165cb819Smrg IFS=$as_save_IFS 4613165cb819Smrg test -z "$as_dir" && as_dir=. 4614165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4615165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4616165cb819Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 4617165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4618165cb819Smrg break 2 4619165cb819Smrg fi 4620165cb819Smrgdone 4621165cb819Smrg done 4622165cb819SmrgIFS=$as_save_IFS 4623165cb819Smrg 4624165cb819Smrgfi 4625165cb819Smrgfi 4626165cb819SmrgCC=$ac_cv_prog_CC 4627165cb819Smrgif test -n "$CC"; then 4628165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4629165cb819Smrg$as_echo "$CC" >&6; } 4630165cb819Smrgelse 4631165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4632165cb819Smrg$as_echo "no" >&6; } 4633165cb819Smrgfi 4634165cb819Smrg 4635165cb819Smrg 4636165cb819Smrg fi 4637165cb819Smrgfi 4638165cb819Smrgif test -z "$CC"; then 4639165cb819Smrg # Extract the first word of "cc", so it can be a program name with args. 4640165cb819Smrgset dummy cc; ac_word=$2 4641165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4643165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 4644165cb819Smrg $as_echo_n "(cached) " >&6 4645165cb819Smrgelse 4646165cb819Smrg if test -n "$CC"; then 4647165cb819Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 4648165cb819Smrgelse 4649165cb819Smrg ac_prog_rejected=no 4650165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4651165cb819Smrgfor as_dir in $PATH 4652165cb819Smrgdo 4653165cb819Smrg IFS=$as_save_IFS 4654165cb819Smrg test -z "$as_dir" && as_dir=. 4655165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4656165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4657165cb819Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4658165cb819Smrg ac_prog_rejected=yes 4659165cb819Smrg continue 4660165cb819Smrg fi 4661165cb819Smrg ac_cv_prog_CC="cc" 4662165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4663165cb819Smrg break 2 4664165cb819Smrg fi 4665165cb819Smrgdone 4666165cb819Smrg done 4667165cb819SmrgIFS=$as_save_IFS 4668165cb819Smrg 4669165cb819Smrgif test $ac_prog_rejected = yes; then 4670165cb819Smrg # We found a bogon in the path, so make sure we never use it. 4671165cb819Smrg set dummy $ac_cv_prog_CC 4672165cb819Smrg shift 4673165cb819Smrg if test $# != 0; then 4674165cb819Smrg # We chose a different compiler from the bogus one. 4675165cb819Smrg # However, it has the same basename, so the bogon will be chosen 4676165cb819Smrg # first if we set CC to just the basename; use the full file name. 4677165cb819Smrg shift 4678165cb819Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4679165cb819Smrg fi 4680165cb819Smrgfi 4681165cb819Smrgfi 4682165cb819Smrgfi 4683165cb819SmrgCC=$ac_cv_prog_CC 4684165cb819Smrgif test -n "$CC"; then 4685165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4686165cb819Smrg$as_echo "$CC" >&6; } 4687165cb819Smrgelse 4688165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4689165cb819Smrg$as_echo "no" >&6; } 4690165cb819Smrgfi 4691165cb819Smrg 4692165cb819Smrg 4693165cb819Smrgfi 4694165cb819Smrgif test -z "$CC"; then 4695165cb819Smrg if test -n "$ac_tool_prefix"; then 4696165cb819Smrg for ac_prog in cl.exe 4697165cb819Smrg do 4698165cb819Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4699165cb819Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 4700165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4701165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4702165cb819Smrgif test "${ac_cv_prog_CC+set}" = set; then : 4703165cb819Smrg $as_echo_n "(cached) " >&6 4704165cb819Smrgelse 4705165cb819Smrg if test -n "$CC"; then 4706165cb819Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 4707165cb819Smrgelse 4708165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4709165cb819Smrgfor as_dir in $PATH 4710165cb819Smrgdo 4711165cb819Smrg IFS=$as_save_IFS 4712165cb819Smrg test -z "$as_dir" && as_dir=. 4713165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4714165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4715165cb819Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4716165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4717165cb819Smrg break 2 4718165cb819Smrg fi 4719165cb819Smrgdone 4720165cb819Smrg done 4721165cb819SmrgIFS=$as_save_IFS 4722165cb819Smrg 4723165cb819Smrgfi 4724165cb819Smrgfi 4725165cb819SmrgCC=$ac_cv_prog_CC 4726165cb819Smrgif test -n "$CC"; then 4727165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4728165cb819Smrg$as_echo "$CC" >&6; } 4729165cb819Smrgelse 4730165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4731165cb819Smrg$as_echo "no" >&6; } 4732165cb819Smrgfi 4733165cb819Smrg 4734165cb819Smrg 4735165cb819Smrg test -n "$CC" && break 4736165cb819Smrg done 4737165cb819Smrgfi 4738165cb819Smrgif test -z "$CC"; then 4739165cb819Smrg ac_ct_CC=$CC 4740165cb819Smrg for ac_prog in cl.exe 4741165cb819Smrgdo 4742165cb819Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 4743165cb819Smrgset dummy $ac_prog; ac_word=$2 4744165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4745165cb819Smrg$as_echo_n "checking for $ac_word... " >&6; } 4746165cb819Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4747165cb819Smrg $as_echo_n "(cached) " >&6 4748165cb819Smrgelse 4749165cb819Smrg if test -n "$ac_ct_CC"; then 4750165cb819Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4751165cb819Smrgelse 4752165cb819Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4753165cb819Smrgfor as_dir in $PATH 4754165cb819Smrgdo 4755165cb819Smrg IFS=$as_save_IFS 4756165cb819Smrg test -z "$as_dir" && as_dir=. 4757165cb819Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4758165cb819Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4759165cb819Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 4760165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4761165cb819Smrg break 2 4762165cb819Smrg fi 4763165cb819Smrgdone 4764165cb819Smrg done 4765165cb819SmrgIFS=$as_save_IFS 4766165cb819Smrg 4767165cb819Smrgfi 4768165cb819Smrgfi 4769165cb819Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 4770165cb819Smrgif test -n "$ac_ct_CC"; then 4771165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4772165cb819Smrg$as_echo "$ac_ct_CC" >&6; } 4773165cb819Smrgelse 4774165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4775165cb819Smrg$as_echo "no" >&6; } 4776165cb819Smrgfi 4777165cb819Smrg 4778165cb819Smrg 4779165cb819Smrg test -n "$ac_ct_CC" && break 4780165cb819Smrgdone 4781165cb819Smrg 4782165cb819Smrg if test "x$ac_ct_CC" = x; then 4783165cb819Smrg CC="" 4784165cb819Smrg else 4785165cb819Smrg case $cross_compiling:$ac_tool_warned in 4786165cb819Smrgyes:) 4787165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4788165cb819Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4789165cb819Smrgac_tool_warned=yes ;; 4790165cb819Smrgesac 4791165cb819Smrg CC=$ac_ct_CC 4792165cb819Smrg fi 4793165cb819Smrgfi 4794165cb819Smrg 4795165cb819Smrgfi 4796165cb819Smrg 4797165cb819Smrg 4798165cb819Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4799165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4800165cb819Smrgas_fn_error "no acceptable C compiler found in \$PATH 4801165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 4802165cb819Smrg 4803165cb819Smrg# Provide some information about the compiler. 4804165cb819Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4805165cb819Smrgset X $ac_compile 4806165cb819Smrgac_compiler=$2 4807165cb819Smrgfor ac_option in --version -v -V -qversion; do 4808165cb819Smrg { { ac_try="$ac_compiler $ac_option >&5" 4809165cb819Smrgcase "(($ac_try" in 4810165cb819Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4811165cb819Smrg *) ac_try_echo=$ac_try;; 4812165cb819Smrgesac 4813165cb819Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4814165cb819Smrg$as_echo "$ac_try_echo"; } >&5 4815165cb819Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4816165cb819Smrg ac_status=$? 4817165cb819Smrg if test -s conftest.err; then 4818165cb819Smrg sed '10a\ 4819165cb819Smrg... rest of stderr output deleted ... 4820165cb819Smrg 10q' conftest.err >conftest.er1 4821165cb819Smrg cat conftest.er1 >&5 4822165cb819Smrg fi 4823165cb819Smrg rm -f conftest.er1 conftest.err 4824165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4825165cb819Smrg test $ac_status = 0; } 4826165cb819Smrgdone 4827165cb819Smrg 4828165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4829165cb819Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4830165cb819Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then : 4831165cb819Smrg $as_echo_n "(cached) " >&6 4832165cb819Smrgelse 4833165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4834165cb819Smrg/* end confdefs.h. */ 4835165cb819Smrg 4836165cb819Smrgint 4837165cb819Smrgmain () 4838165cb819Smrg{ 4839165cb819Smrg#ifndef __GNUC__ 4840165cb819Smrg choke me 4841165cb819Smrg#endif 4842165cb819Smrg 4843165cb819Smrg ; 4844165cb819Smrg return 0; 4845165cb819Smrg} 4846165cb819Smrg_ACEOF 4847165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 4848165cb819Smrg ac_compiler_gnu=yes 4849165cb819Smrgelse 4850165cb819Smrg ac_compiler_gnu=no 4851165cb819Smrgfi 4852165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4853165cb819Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 4854165cb819Smrg 4855165cb819Smrgfi 4856165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4857165cb819Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4858165cb819Smrgif test $ac_compiler_gnu = yes; then 4859165cb819Smrg GCC=yes 4860165cb819Smrgelse 4861165cb819Smrg GCC= 4862165cb819Smrgfi 4863165cb819Smrgac_test_CFLAGS=${CFLAGS+set} 4864165cb819Smrgac_save_CFLAGS=$CFLAGS 4865165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4866165cb819Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 4867165cb819Smrgif test "${ac_cv_prog_cc_g+set}" = set; then : 4868165cb819Smrg $as_echo_n "(cached) " >&6 4869165cb819Smrgelse 4870165cb819Smrg ac_save_c_werror_flag=$ac_c_werror_flag 4871165cb819Smrg ac_c_werror_flag=yes 4872165cb819Smrg ac_cv_prog_cc_g=no 4873165cb819Smrg CFLAGS="-g" 4874165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4875165cb819Smrg/* end confdefs.h. */ 4876165cb819Smrg 4877165cb819Smrgint 4878165cb819Smrgmain () 4879165cb819Smrg{ 4880165cb819Smrg 4881165cb819Smrg ; 4882165cb819Smrg return 0; 4883165cb819Smrg} 4884165cb819Smrg_ACEOF 4885165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 4886165cb819Smrg ac_cv_prog_cc_g=yes 4887165cb819Smrgelse 4888165cb819Smrg CFLAGS="" 4889165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4890165cb819Smrg/* end confdefs.h. */ 4891165cb819Smrg 4892165cb819Smrgint 4893165cb819Smrgmain () 4894165cb819Smrg{ 4895165cb819Smrg 4896165cb819Smrg ; 4897165cb819Smrg return 0; 4898165cb819Smrg} 4899165cb819Smrg_ACEOF 4900165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 4901165cb819Smrg 4902165cb819Smrgelse 4903165cb819Smrg ac_c_werror_flag=$ac_save_c_werror_flag 4904165cb819Smrg CFLAGS="-g" 4905165cb819Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906165cb819Smrg/* end confdefs.h. */ 4907165cb819Smrg 4908165cb819Smrgint 4909165cb819Smrgmain () 4910165cb819Smrg{ 4911165cb819Smrg 4912165cb819Smrg ; 4913165cb819Smrg return 0; 4914165cb819Smrg} 4915165cb819Smrg_ACEOF 4916165cb819Smrgif ac_fn_c_try_compile "$LINENO"; then : 4917165cb819Smrg ac_cv_prog_cc_g=yes 4918165cb819Smrgfi 4919165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4920165cb819Smrgfi 4921165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4922165cb819Smrgfi 4923165cb819Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4924165cb819Smrg ac_c_werror_flag=$ac_save_c_werror_flag 4925165cb819Smrgfi 4926165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4927165cb819Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 4928165cb819Smrgif test "$ac_test_CFLAGS" = set; then 4929165cb819Smrg CFLAGS=$ac_save_CFLAGS 4930165cb819Smrgelif test $ac_cv_prog_cc_g = yes; then 4931165cb819Smrg if test "$GCC" = yes; then 4932165cb819Smrg CFLAGS="-g -O2" 4933165cb819Smrg else 4934165cb819Smrg CFLAGS="-g" 4935165cb819Smrg fi 4936165cb819Smrgelse 4937165cb819Smrg if test "$GCC" = yes; then 4938165cb819Smrg CFLAGS="-O2" 4939165cb819Smrg else 4940165cb819Smrg CFLAGS= 4941165cb819Smrg fi 4942165cb819Smrgfi 4943165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4944165cb819Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4945165cb819Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then : 4946165cb819Smrg $as_echo_n "(cached) " >&6 4947165cb819Smrgelse 4948165cb819Smrg ac_cv_prog_cc_c89=no 4949165cb819Smrgac_save_CC=$CC 4950165cb819Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4951165cb819Smrg/* end confdefs.h. */ 4952165cb819Smrg#include <stdarg.h> 4953165cb819Smrg#include <stdio.h> 4954165cb819Smrg#include <sys/types.h> 4955165cb819Smrg#include <sys/stat.h> 4956165cb819Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4957165cb819Smrgstruct buf { int x; }; 4958165cb819SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 4959165cb819Smrgstatic char *e (p, i) 4960165cb819Smrg char **p; 4961165cb819Smrg int i; 4962165cb819Smrg{ 4963165cb819Smrg return p[i]; 4964165cb819Smrg} 4965165cb819Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 4966165cb819Smrg{ 4967165cb819Smrg char *s; 4968165cb819Smrg va_list v; 4969165cb819Smrg va_start (v,p); 4970165cb819Smrg s = g (p, va_arg (v,int)); 4971165cb819Smrg va_end (v); 4972165cb819Smrg return s; 4973165cb819Smrg} 4974165cb819Smrg 4975165cb819Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4976165cb819Smrg function prototypes and stuff, but not '\xHH' hex character constants. 4977165cb819Smrg These don't provoke an error unfortunately, instead are silently treated 4978165cb819Smrg as 'x'. The following induces an error, until -std is added to get 4979165cb819Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4980165cb819Smrg array size at least. It's necessary to write '\x00'==0 to get something 4981165cb819Smrg that's true only with -std. */ 4982165cb819Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4983100ae103Smrg 4984165cb819Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4985165cb819Smrg inside strings and character constants. */ 4986165cb819Smrg#define FOO(x) 'x' 4987165cb819Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4988100ae103Smrg 4989165cb819Smrgint test (int i, double x); 4990165cb819Smrgstruct s1 {int (*f) (int a);}; 4991165cb819Smrgstruct s2 {int (*f) (double a);}; 4992165cb819Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4993165cb819Smrgint argc; 4994165cb819Smrgchar **argv; 4995165cb819Smrgint 4996165cb819Smrgmain () 4997165cb819Smrg{ 4998165cb819Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4999165cb819Smrg ; 5000165cb819Smrg return 0; 5001165cb819Smrg} 5002165cb819Smrg_ACEOF 5003165cb819Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5004165cb819Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5005165cb819Smrgdo 5006165cb819Smrg CC="$ac_save_CC $ac_arg" 5007165cb819Smrg if ac_fn_c_try_compile "$LINENO"; then : 5008165cb819Smrg ac_cv_prog_cc_c89=$ac_arg 5009100ae103Smrgfi 5010165cb819Smrgrm -f core conftest.err conftest.$ac_objext 5011165cb819Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 5012165cb819Smrgdone 5013165cb819Smrgrm -f conftest.$ac_ext 5014165cb819SmrgCC=$ac_save_CC 5015100ae103Smrg 5016165cb819Smrgfi 5017165cb819Smrg# AC_CACHE_VAL 5018165cb819Smrgcase "x$ac_cv_prog_cc_c89" in 5019165cb819Smrg x) 5020165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5021165cb819Smrg$as_echo "none needed" >&6; } ;; 5022165cb819Smrg xno) 5023165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5024165cb819Smrg$as_echo "unsupported" >&6; } ;; 5025165cb819Smrg *) 5026165cb819Smrg CC="$CC $ac_cv_prog_cc_c89" 5027165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5028165cb819Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5029165cb819Smrgesac 5030165cb819Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 5031100ae103Smrg 5032165cb819Smrgfi 5033100ae103Smrg 5034165cb819Smrgac_ext=c 5035165cb819Smrgac_cpp='$CPP $CPPFLAGS' 5036165cb819Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5037165cb819Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5038165cb819Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 5039100ae103Smrg 5040100ae103Smrgdepcc="$CC" am_compiler_list= 5041100ae103Smrg 5042165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5043165cb819Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 5044165cb819Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 5045165cb819Smrg $as_echo_n "(cached) " >&6 5046100ae103Smrgelse 5047100ae103Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5048100ae103Smrg # We make a subdir and do the tests there. Otherwise we can end up 5049100ae103Smrg # making bogus files that we don't know about and never remove. For 5050100ae103Smrg # instance it was reported that on HP-UX the gcc test will end up 5051100ae103Smrg # making a dummy file named `D' -- because `-MD' means `put the output 5052100ae103Smrg # in D'. 5053100ae103Smrg mkdir conftest.dir 5054100ae103Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 5055100ae103Smrg # using a relative directory. 5056100ae103Smrg cp "$am_depcomp" conftest.dir 5057100ae103Smrg cd conftest.dir 5058100ae103Smrg # We will build objects and dependencies in a subdirectory because 5059100ae103Smrg # it helps to detect inapplicable dependency modes. For instance 5060100ae103Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 5061100ae103Smrg # side effect of compilation, but ICC will put the dependencies in 5062100ae103Smrg # the current directory while Tru64 will put them in the object 5063100ae103Smrg # directory. 5064100ae103Smrg mkdir sub 5065100ae103Smrg 5066100ae103Smrg am_cv_CC_dependencies_compiler_type=none 5067100ae103Smrg if test "$am_compiler_list" = ""; then 5068100ae103Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5069100ae103Smrg fi 5070165cb819Smrg am__universal=false 5071165cb819Smrg case " $depcc " in #( 5072165cb819Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 5073165cb819Smrg esac 5074165cb819Smrg 5075100ae103Smrg for depmode in $am_compiler_list; do 5076100ae103Smrg # Setup a source with many dependencies, because some compilers 5077100ae103Smrg # like to wrap large dependency lists on column 80 (with \), and 5078100ae103Smrg # we should not choose a depcomp mode which is confused by this. 5079100ae103Smrg # 5080100ae103Smrg # We need to recreate these files for each test, as the compiler may 5081100ae103Smrg # overwrite some of them when testing with obscure command lines. 5082100ae103Smrg # This happens at least with the AIX C compiler. 5083100ae103Smrg : > sub/conftest.c 5084100ae103Smrg for i in 1 2 3 4 5 6; do 5085100ae103Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 5086100ae103Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5087100ae103Smrg # Solaris 8's {/usr,}/bin/sh. 5088100ae103Smrg touch sub/conftst$i.h 5089100ae103Smrg done 5090100ae103Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5091100ae103Smrg 5092165cb819Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 5093165cb819Smrg # mode. It turns out that the SunPro C++ compiler does not properly 5094165cb819Smrg # handle `-M -o', and we need to detect this. Also, some Intel 5095165cb819Smrg # versions had trouble with output in subdirs 5096165cb819Smrg am__obj=sub/conftest.${OBJEXT-o} 5097165cb819Smrg am__minus_obj="-o $am__obj" 5098100ae103Smrg case $depmode in 5099165cb819Smrg gcc) 5100165cb819Smrg # This depmode causes a compiler race in universal mode. 5101165cb819Smrg test "$am__universal" = false || continue 5102165cb819Smrg ;; 5103100ae103Smrg nosideeffect) 5104100ae103Smrg # after this tag, mechanisms are not by side-effect, so they'll 5105100ae103Smrg # only be used when explicitly requested 5106100ae103Smrg if test "x$enable_dependency_tracking" = xyes; then 5107100ae103Smrg continue 5108100ae103Smrg else 5109100ae103Smrg break 5110100ae103Smrg fi 5111100ae103Smrg ;; 5112165cb819Smrg msvisualcpp | msvcmsys) 5113165cb819Smrg # This compiler won't grok `-c -o', but also, the minuso test has 5114165cb819Smrg # not run yet. These depmodes are late enough in the game, and 5115165cb819Smrg # so weak that their functioning should not be impacted. 5116165cb819Smrg am__obj=conftest.${OBJEXT-o} 5117165cb819Smrg am__minus_obj= 5118165cb819Smrg ;; 5119100ae103Smrg none) break ;; 5120100ae103Smrg esac 5121100ae103Smrg if depmode=$depmode \ 5122165cb819Smrg source=sub/conftest.c object=$am__obj \ 5123100ae103Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5124165cb819Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5125100ae103Smrg >/dev/null 2>conftest.err && 5126165cb819Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5127100ae103Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5128165cb819Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5129100ae103Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5130100ae103Smrg # icc doesn't choke on unknown options, it will just issue warnings 5131100ae103Smrg # or remarks (even with -Werror). So we grep stderr for any message 5132100ae103Smrg # that says an option was ignored or not supported. 5133100ae103Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 5134100ae103Smrg # icc: Command line warning: ignoring option '-M'; no argument required 5135100ae103Smrg # The diagnosis changed in icc 8.0: 5136100ae103Smrg # icc: Command line remark: option '-MP' not supported 5137100ae103Smrg if (grep 'ignoring option' conftest.err || 5138100ae103Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5139100ae103Smrg am_cv_CC_dependencies_compiler_type=$depmode 5140100ae103Smrg break 5141100ae103Smrg fi 5142100ae103Smrg fi 5143100ae103Smrg done 5144100ae103Smrg 5145100ae103Smrg cd .. 5146100ae103Smrg rm -rf conftest.dir 5147100ae103Smrgelse 5148100ae103Smrg am_cv_CC_dependencies_compiler_type=none 5149100ae103Smrgfi 5150100ae103Smrg 5151100ae103Smrgfi 5152165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5153165cb819Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5154100ae103SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5155100ae103Smrg 5156165cb819Smrg if 5157100ae103Smrg test "x$enable_dependency_tracking" != xno \ 5158100ae103Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5159100ae103Smrg am__fastdepCC_TRUE= 5160100ae103Smrg am__fastdepCC_FALSE='#' 5161100ae103Smrgelse 5162100ae103Smrg am__fastdepCC_TRUE='#' 5163100ae103Smrg am__fastdepCC_FALSE= 5164100ae103Smrgfi 5165100ae103Smrg 5166100ae103Smrg 5167100ae103Smrg 5168100ae103Smrg 5169100ae103Smrg 5170100ae103Smrg# Checks for pkg-config packages 5171100ae103Smrg 5172100ae103Smrgpkg_failed=no 5173165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMESSAGE" >&5 5174165cb819Smrg$as_echo_n "checking for XMESSAGE... " >&6; } 5175165cb819Smrg 5176165cb819Smrgif test -n "$XMESSAGE_CFLAGS"; then 5177165cb819Smrg pkg_cv_XMESSAGE_CFLAGS="$XMESSAGE_CFLAGS" 5178165cb819Smrg elif test -n "$PKG_CONFIG"; then 5179165cb819Smrg if test -n "$PKG_CONFIG" && \ 5180165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 5181165cb819Smrg ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 5182100ae103Smrg ac_status=$? 5183165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5184165cb819Smrg test $ac_status = 0; }; then 5185165cb819Smrg pkg_cv_XMESSAGE_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null` 5186100ae103Smrgelse 5187100ae103Smrg pkg_failed=yes 5188100ae103Smrgfi 5189165cb819Smrg else 5190165cb819Smrg pkg_failed=untried 5191100ae103Smrgfi 5192165cb819Smrgif test -n "$XMESSAGE_LIBS"; then 5193165cb819Smrg pkg_cv_XMESSAGE_LIBS="$XMESSAGE_LIBS" 5194165cb819Smrg elif test -n "$PKG_CONFIG"; then 5195165cb819Smrg if test -n "$PKG_CONFIG" && \ 5196165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5 5197165cb819Smrg ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5 5198100ae103Smrg ac_status=$? 5199165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5200165cb819Smrg test $ac_status = 0; }; then 5201165cb819Smrg pkg_cv_XMESSAGE_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null` 5202100ae103Smrgelse 5203100ae103Smrg pkg_failed=yes 5204100ae103Smrgfi 5205165cb819Smrg else 5206165cb819Smrg pkg_failed=untried 5207100ae103Smrgfi 5208100ae103Smrg 5209100ae103Smrg 5210100ae103Smrg 5211100ae103Smrgif test $pkg_failed = yes; then 5212100ae103Smrg 5213100ae103Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5214100ae103Smrg _pkg_short_errors_supported=yes 5215100ae103Smrgelse 5216100ae103Smrg _pkg_short_errors_supported=no 5217100ae103Smrgfi 5218100ae103Smrg if test $_pkg_short_errors_supported = yes; then 5219165cb819Smrg XMESSAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1` 5220100ae103Smrg else 5221165cb819Smrg XMESSAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1` 5222100ae103Smrg fi 5223100ae103Smrg # Put the nasty error message in config.log where it belongs 5224165cb819Smrg echo "$XMESSAGE_PKG_ERRORS" >&5 5225100ae103Smrg 5226165cb819Smrg as_fn_error "Package requirements (xaw7) were not met: 5227100ae103Smrg 5228165cb819Smrg$XMESSAGE_PKG_ERRORS 5229100ae103Smrg 5230165cb819SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5231165cb819Smrginstalled software in a non-standard prefix. 5232100ae103Smrg 5233165cb819SmrgAlternatively, you may set the environment variables XMESSAGE_CFLAGS 5234165cb819Smrgand XMESSAGE_LIBS to avoid the need to call pkg-config. 5235165cb819SmrgSee the pkg-config man page for more details. 5236165cb819Smrg" "$LINENO" 5 5237100ae103Smrgelif test $pkg_failed = untried; then 5238165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5239165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5240165cb819Smrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 5241165cb819Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5242165cb819Smrgpath to pkg-config. 5243100ae103Smrg 5244165cb819SmrgAlternatively, you may set the environment variables XMESSAGE_CFLAGS 5245165cb819Smrgand XMESSAGE_LIBS to avoid the need to call pkg-config. 5246165cb819SmrgSee the pkg-config man page for more details. 5247100ae103Smrg 5248165cb819SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5249165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 5250100ae103Smrgelse 5251165cb819Smrg XMESSAGE_CFLAGS=$pkg_cv_XMESSAGE_CFLAGS 5252165cb819Smrg XMESSAGE_LIBS=$pkg_cv_XMESSAGE_LIBS 5253165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5254165cb819Smrg$as_echo "yes" >&6; } 5255165cb819Smrg : 5256100ae103Smrgfi 5257100ae103Smrg 5258100ae103Smrg 5259100ae103Smrgpkg_failed=no 5260165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 5261165cb819Smrg$as_echo_n "checking for APPDEFS... " >&6; } 5262165cb819Smrg 5263165cb819Smrgif test -n "$APPDEFS_CFLAGS"; then 5264165cb819Smrg pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 5265165cb819Smrg elif test -n "$PKG_CONFIG"; then 5266165cb819Smrg if test -n "$PKG_CONFIG" && \ 5267165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 5268100ae103Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 5269100ae103Smrg ac_status=$? 5270165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5271165cb819Smrg test $ac_status = 0; }; then 5272100ae103Smrg pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 5273100ae103Smrgelse 5274100ae103Smrg pkg_failed=yes 5275100ae103Smrgfi 5276165cb819Smrg else 5277165cb819Smrg pkg_failed=untried 5278100ae103Smrgfi 5279165cb819Smrgif test -n "$APPDEFS_LIBS"; then 5280165cb819Smrg pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 5281165cb819Smrg elif test -n "$PKG_CONFIG"; then 5282165cb819Smrg if test -n "$PKG_CONFIG" && \ 5283165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 5284100ae103Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 5285100ae103Smrg ac_status=$? 5286165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5287165cb819Smrg test $ac_status = 0; }; then 5288100ae103Smrg pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 5289100ae103Smrgelse 5290100ae103Smrg pkg_failed=yes 5291100ae103Smrgfi 5292165cb819Smrg else 5293165cb819Smrg pkg_failed=untried 5294100ae103Smrgfi 5295100ae103Smrg 5296100ae103Smrg 5297100ae103Smrg 5298100ae103Smrgif test $pkg_failed = yes; then 5299100ae103Smrg 5300100ae103Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5301100ae103Smrg _pkg_short_errors_supported=yes 5302100ae103Smrgelse 5303100ae103Smrg _pkg_short_errors_supported=no 5304100ae103Smrgfi 5305100ae103Smrg if test $_pkg_short_errors_supported = yes; then 5306165cb819Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1` 5307100ae103Smrg else 5308165cb819Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1` 5309100ae103Smrg fi 5310100ae103Smrg # Put the nasty error message in config.log where it belongs 5311100ae103Smrg echo "$APPDEFS_PKG_ERRORS" >&5 5312100ae103Smrg 5313165cb819Smrg as_fn_error "Package requirements (xt) were not met: 5314100ae103Smrg 5315100ae103Smrg$APPDEFS_PKG_ERRORS 5316100ae103Smrg 5317100ae103SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5318100ae103Smrginstalled software in a non-standard prefix. 5319100ae103Smrg 5320100ae103SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5321100ae103Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5322100ae103SmrgSee the pkg-config man page for more details. 5323165cb819Smrg" "$LINENO" 5 5324100ae103Smrgelif test $pkg_failed = untried; then 5325165cb819Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5326165cb819Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5327165cb819Smrgas_fn_error "The pkg-config script could not be found or is too old. Make sure it 5328100ae103Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5329100ae103Smrgpath to pkg-config. 5330100ae103Smrg 5331100ae103SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 5332100ae103Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 5333100ae103SmrgSee the pkg-config man page for more details. 5334100ae103Smrg 5335165cb819SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5336165cb819SmrgSee \`config.log' for more details." "$LINENO" 5; } 5337100ae103Smrgelse 5338100ae103Smrg APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 5339100ae103Smrg APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 5340165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5341165cb819Smrg$as_echo "yes" >&6; } 5342100ae103Smrg : 5343100ae103Smrgfi 5344165cb819Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 5345100ae103Smrg 5346165cb819Smrg# Check whether --with-appdefaultdir was given. 5347165cb819Smrgif test "${with_appdefaultdir+set}" = set; then : 5348165cb819Smrg withval=$with_appdefaultdir; appdefaultdir="$withval" 5349100ae103Smrgelse 5350165cb819Smrg appdefaultdir="${xt_appdefaultdir}" 5351100ae103Smrgfi 5352100ae103Smrg 5353100ae103Smrg 5354100ae103Smrg 5355100ae103Smrg 5356165cb819Smrgac_config_files="$ac_config_files Makefile" 5357100ae103Smrg 5358100ae103Smrgcat >confcache <<\_ACEOF 5359100ae103Smrg# This file is a shell script that caches the results of configure 5360100ae103Smrg# tests run on this system so they can be shared between configure 5361100ae103Smrg# scripts and configure runs, see configure's option --config-cache. 5362100ae103Smrg# It is not useful on other systems. If it contains results you don't 5363100ae103Smrg# want to keep, you may remove or edit it. 5364100ae103Smrg# 5365100ae103Smrg# config.status only pays attention to the cache file if you give it 5366100ae103Smrg# the --recheck option to rerun configure. 5367100ae103Smrg# 5368100ae103Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 5369100ae103Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 5370100ae103Smrg# following values. 5371100ae103Smrg 5372100ae103Smrg_ACEOF 5373100ae103Smrg 5374100ae103Smrg# The following way of writing the cache mishandles newlines in values, 5375100ae103Smrg# but we know of no workaround that is simple, portable, and efficient. 5376165cb819Smrg# So, we kill variables containing newlines. 5377100ae103Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 5378100ae103Smrg# and sets the high bit in the cache file unless we assign to the vars. 5379165cb819Smrg( 5380165cb819Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5381165cb819Smrg eval ac_val=\$$ac_var 5382165cb819Smrg case $ac_val in #( 5383165cb819Smrg *${as_nl}*) 5384165cb819Smrg case $ac_var in #( 5385165cb819Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5386165cb819Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5387165cb819Smrg esac 5388165cb819Smrg case $ac_var in #( 5389165cb819Smrg _ | IFS | as_nl) ;; #( 5390165cb819Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5391165cb819Smrg *) { eval $ac_var=; unset $ac_var;} ;; 5392165cb819Smrg esac ;; 5393165cb819Smrg esac 5394165cb819Smrg done 5395165cb819Smrg 5396100ae103Smrg (set) 2>&1 | 5397165cb819Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 5398165cb819Smrg *${as_nl}ac_space=\ *) 5399165cb819Smrg # `set' does not quote correctly, so add quotes: double-quote 5400165cb819Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 5401100ae103Smrg sed -n \ 5402100ae103Smrg "s/'/'\\\\''/g; 5403100ae103Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5404165cb819Smrg ;; #( 5405100ae103Smrg *) 5406100ae103Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 5407165cb819Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5408100ae103Smrg ;; 5409165cb819Smrg esac | 5410165cb819Smrg sort 5411165cb819Smrg) | 5412100ae103Smrg sed ' 5413165cb819Smrg /^ac_cv_env_/b end 5414100ae103Smrg t clear 5415165cb819Smrg :clear 5416100ae103Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5417100ae103Smrg t end 5418165cb819Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5419165cb819Smrg :end' >>confcache 5420165cb819Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5421165cb819Smrg if test -w "$cache_file"; then 5422165cb819Smrg test "x$cache_file" != "x/dev/null" && 5423165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5424165cb819Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 5425100ae103Smrg cat confcache >$cache_file 5426100ae103Smrg else 5427165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5428165cb819Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5429100ae103Smrg fi 5430100ae103Smrgfi 5431100ae103Smrgrm -f confcache 5432100ae103Smrg 5433100ae103Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 5434100ae103Smrg# Let make expand exec_prefix. 5435100ae103Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5436100ae103Smrg 5437100ae103SmrgDEFS=-DHAVE_CONFIG_H 5438100ae103Smrg 5439100ae103Smrgac_libobjs= 5440100ae103Smrgac_ltlibobjs= 5441100ae103Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5442100ae103Smrg # 1. Remove the extension, and $U if already installed. 5443165cb819Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5444165cb819Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5445165cb819Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5446165cb819Smrg # will be set to the directory where LIBOBJS objects are built. 5447165cb819Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5448165cb819Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5449100ae103Smrgdone 5450100ae103SmrgLIBOBJS=$ac_libobjs 5451100ae103Smrg 5452100ae103SmrgLTLIBOBJS=$ac_ltlibobjs 5453100ae103Smrg 5454100ae103Smrg 5455165cb819Smrg if test -n "$EXEEXT"; then 5456165cb819Smrg am__EXEEXT_TRUE= 5457165cb819Smrg am__EXEEXT_FALSE='#' 5458165cb819Smrgelse 5459165cb819Smrg am__EXEEXT_TRUE='#' 5460165cb819Smrg am__EXEEXT_FALSE= 5461165cb819Smrgfi 5462165cb819Smrg 5463100ae103Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 5464165cb819Smrg as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 5465165cb819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5466100ae103Smrgfi 5467100ae103Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5468165cb819Smrg as_fn_error "conditional \"AMDEP\" was never defined. 5469165cb819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5470100ae103Smrgfi 5471100ae103Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5472165cb819Smrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 5473165cb819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5474100ae103Smrgfi 5475165cb819Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5476165cb819Smrg as_fn_error "conditional \"am__fastdepCC\" was never defined. 5477165cb819SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5478100ae103Smrgfi 5479100ae103Smrg 5480100ae103Smrg: ${CONFIG_STATUS=./config.status} 5481165cb819Smrgac_write_fail=0 5482100ae103Smrgac_clean_files_save=$ac_clean_files 5483100ae103Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 5484165cb819Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5485165cb819Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5486165cb819Smrgas_write_fail=0 5487165cb819Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5488100ae103Smrg#! $SHELL 5489100ae103Smrg# Generated by $as_me. 5490100ae103Smrg# Run this file to recreate the current configuration. 5491100ae103Smrg# Compiler output produced by configure, useful for debugging 5492100ae103Smrg# configure, is in config.log if it exists. 5493100ae103Smrg 5494100ae103Smrgdebug=false 5495100ae103Smrgac_cs_recheck=false 5496100ae103Smrgac_cs_silent=false 5497100ae103Smrg 5498165cb819SmrgSHELL=\${CONFIG_SHELL-$SHELL} 5499165cb819Smrgexport SHELL 5500165cb819Smrg_ASEOF 5501165cb819Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5502165cb819Smrg## -------------------- ## 5503165cb819Smrg## M4sh Initialization. ## 5504165cb819Smrg## -------------------- ## 5505165cb819Smrg 5506165cb819Smrg# Be more Bourne compatible 5507165cb819SmrgDUALCASE=1; export DUALCASE # for MKS sh 5508165cb819Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5509100ae103Smrg emulate sh 5510100ae103Smrg NULLCMD=: 5511165cb819Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5512100ae103Smrg # is contrary to our usage. Disable this feature. 5513100ae103Smrg alias -g '${1+"$@"}'='"$@"' 5514165cb819Smrg setopt NO_GLOB_SUBST 5515165cb819Smrgelse 5516165cb819Smrg case `(set -o) 2>/dev/null` in #( 5517165cb819Smrg *posix*) : 5518165cb819Smrg set -o posix ;; #( 5519165cb819Smrg *) : 5520165cb819Smrg ;; 5521165cb819Smrgesac 5522100ae103Smrgfi 5523100ae103Smrg 5524165cb819Smrg 5525165cb819Smrgas_nl=' 5526165cb819Smrg' 5527165cb819Smrgexport as_nl 5528165cb819Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 5529165cb819Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5530165cb819Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5531165cb819Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5532165cb819Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 5533165cb819Smrg# but without wasting forks for bash or zsh. 5534165cb819Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 5535165cb819Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5536165cb819Smrg as_echo='print -r --' 5537165cb819Smrg as_echo_n='print -rn --' 5538165cb819Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5539165cb819Smrg as_echo='printf %s\n' 5540165cb819Smrg as_echo_n='printf %s' 5541100ae103Smrgelse 5542165cb819Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5543165cb819Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5544165cb819Smrg as_echo_n='/usr/ucb/echo -n' 5545165cb819Smrg else 5546165cb819Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5547165cb819Smrg as_echo_n_body='eval 5548165cb819Smrg arg=$1; 5549165cb819Smrg case $arg in #( 5550165cb819Smrg *"$as_nl"*) 5551165cb819Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5552165cb819Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5553165cb819Smrg esac; 5554165cb819Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5555165cb819Smrg ' 5556165cb819Smrg export as_echo_n_body 5557165cb819Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 5558165cb819Smrg fi 5559165cb819Smrg export as_echo_body 5560165cb819Smrg as_echo='sh -c $as_echo_body as_echo' 5561165cb819Smrgfi 5562165cb819Smrg 5563165cb819Smrg# The user is always right. 5564165cb819Smrgif test "${PATH_SEPARATOR+set}" != set; then 5565165cb819Smrg PATH_SEPARATOR=: 5566165cb819Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5567165cb819Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5568165cb819Smrg PATH_SEPARATOR=';' 5569165cb819Smrg } 5570100ae103Smrgfi 5571100ae103Smrg 5572100ae103Smrg 5573165cb819Smrg# IFS 5574165cb819Smrg# We need space, tab and new line, in precisely that order. Quoting is 5575165cb819Smrg# there to prevent editors from complaining about space-tab. 5576165cb819Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5577165cb819Smrg# splitting by setting IFS to empty value.) 5578165cb819SmrgIFS=" "" $as_nl" 5579165cb819Smrg 5580165cb819Smrg# Find who we are. Look in the path if we contain no directory separator. 5581165cb819Smrgcase $0 in #(( 5582165cb819Smrg *[\\/]* ) as_myself=$0 ;; 5583165cb819Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5584165cb819Smrgfor as_dir in $PATH 5585165cb819Smrgdo 5586165cb819Smrg IFS=$as_save_IFS 5587165cb819Smrg test -z "$as_dir" && as_dir=. 5588165cb819Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5589165cb819Smrg done 5590165cb819SmrgIFS=$as_save_IFS 5591165cb819Smrg 5592165cb819Smrg ;; 5593165cb819Smrgesac 5594165cb819Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5595165cb819Smrg# in which case we are not to be found in the path. 5596165cb819Smrgif test "x$as_myself" = x; then 5597165cb819Smrg as_myself=$0 5598165cb819Smrgfi 5599165cb819Smrgif test ! -f "$as_myself"; then 5600165cb819Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5601165cb819Smrg exit 1 5602165cb819Smrgfi 5603165cb819Smrg 5604165cb819Smrg# Unset variables that we do not need and which cause bugs (e.g. in 5605165cb819Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5606165cb819Smrg# suppresses any "Segmentation fault" message there. '((' could 5607165cb819Smrg# trigger a bug in pdksh 5.2.14. 5608165cb819Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 5609165cb819Smrgdo eval test x\${$as_var+set} = xset \ 5610165cb819Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5611165cb819Smrgdone 5612100ae103SmrgPS1='$ ' 5613100ae103SmrgPS2='> ' 5614100ae103SmrgPS4='+ ' 5615100ae103Smrg 5616100ae103Smrg# NLS nuisances. 5617165cb819SmrgLC_ALL=C 5618165cb819Smrgexport LC_ALL 5619165cb819SmrgLANGUAGE=C 5620165cb819Smrgexport LANGUAGE 5621165cb819Smrg 5622165cb819Smrg# CDPATH. 5623165cb819Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5624165cb819Smrg 5625165cb819Smrg 5626165cb819Smrg# as_fn_error ERROR [LINENO LOG_FD] 5627165cb819Smrg# --------------------------------- 5628165cb819Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5629165cb819Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5630165cb819Smrg# script with status $?, using 1 if that was 0. 5631165cb819Smrgas_fn_error () 5632165cb819Smrg{ 5633165cb819Smrg as_status=$?; test $as_status -eq 0 && as_status=1 5634165cb819Smrg if test "$3"; then 5635165cb819Smrg as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5636165cb819Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 5637100ae103Smrg fi 5638165cb819Smrg $as_echo "$as_me: error: $1" >&2 5639165cb819Smrg as_fn_exit $as_status 5640165cb819Smrg} # as_fn_error 5641165cb819Smrg 5642165cb819Smrg 5643165cb819Smrg# as_fn_set_status STATUS 5644165cb819Smrg# ----------------------- 5645165cb819Smrg# Set $? to STATUS, without forking. 5646165cb819Smrgas_fn_set_status () 5647165cb819Smrg{ 5648165cb819Smrg return $1 5649165cb819Smrg} # as_fn_set_status 5650165cb819Smrg 5651165cb819Smrg# as_fn_exit STATUS 5652165cb819Smrg# ----------------- 5653165cb819Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5654165cb819Smrgas_fn_exit () 5655165cb819Smrg{ 5656165cb819Smrg set +e 5657165cb819Smrg as_fn_set_status $1 5658165cb819Smrg exit $1 5659165cb819Smrg} # as_fn_exit 5660165cb819Smrg 5661165cb819Smrg# as_fn_unset VAR 5662165cb819Smrg# --------------- 5663165cb819Smrg# Portably unset VAR. 5664165cb819Smrgas_fn_unset () 5665165cb819Smrg{ 5666165cb819Smrg { eval $1=; unset $1;} 5667165cb819Smrg} 5668165cb819Smrgas_unset=as_fn_unset 5669165cb819Smrg# as_fn_append VAR VALUE 5670165cb819Smrg# ---------------------- 5671165cb819Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 5672165cb819Smrg# advantage of any shell optimizations that allow amortized linear growth over 5673165cb819Smrg# repeated appends, instead of the typical quadratic growth present in naive 5674165cb819Smrg# implementations. 5675165cb819Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5676165cb819Smrg eval 'as_fn_append () 5677165cb819Smrg { 5678165cb819Smrg eval $1+=\$2 5679165cb819Smrg }' 5680165cb819Smrgelse 5681165cb819Smrg as_fn_append () 5682165cb819Smrg { 5683165cb819Smrg eval $1=\$$1\$2 5684165cb819Smrg } 5685165cb819Smrgfi # as_fn_append 5686165cb819Smrg 5687165cb819Smrg# as_fn_arith ARG... 5688165cb819Smrg# ------------------ 5689165cb819Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 5690165cb819Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 5691165cb819Smrg# must be portable across $(()) and expr. 5692165cb819Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5693165cb819Smrg eval 'as_fn_arith () 5694165cb819Smrg { 5695165cb819Smrg as_val=$(( $* )) 5696165cb819Smrg }' 5697165cb819Smrgelse 5698165cb819Smrg as_fn_arith () 5699165cb819Smrg { 5700165cb819Smrg as_val=`expr "$@" || test $? -eq 1` 5701165cb819Smrg } 5702165cb819Smrgfi # as_fn_arith 5703165cb819Smrg 5704100ae103Smrg 5705165cb819Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5706165cb819Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5707100ae103Smrg as_expr=expr 5708100ae103Smrgelse 5709100ae103Smrg as_expr=false 5710100ae103Smrgfi 5711100ae103Smrg 5712165cb819Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5713100ae103Smrg as_basename=basename 5714100ae103Smrgelse 5715100ae103Smrg as_basename=false 5716100ae103Smrgfi 5717100ae103Smrg 5718165cb819Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5719165cb819Smrg as_dirname=dirname 5720165cb819Smrgelse 5721165cb819Smrg as_dirname=false 5722165cb819Smrgfi 5723100ae103Smrg 5724165cb819Smrgas_me=`$as_basename -- "$0" || 5725100ae103Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5726100ae103Smrg X"$0" : 'X\(//\)$' \| \ 5727165cb819Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5728165cb819Smrg$as_echo X/"$0" | 5729165cb819Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5730165cb819Smrg s//\1/ 5731165cb819Smrg q 5732165cb819Smrg } 5733165cb819Smrg /^X\/\(\/\/\)$/{ 5734165cb819Smrg s//\1/ 5735165cb819Smrg q 5736165cb819Smrg } 5737165cb819Smrg /^X\/\(\/\).*/{ 5738165cb819Smrg s//\1/ 5739165cb819Smrg q 5740165cb819Smrg } 5741165cb819Smrg s/.*/./; q'` 5742100ae103Smrg 5743100ae103Smrg# Avoid depending upon Character Ranges. 5744100ae103Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5745100ae103Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5746100ae103Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5747100ae103Smrgas_cr_digits='0123456789' 5748100ae103Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 5749100ae103Smrg 5750165cb819SmrgECHO_C= ECHO_N= ECHO_T= 5751165cb819Smrgcase `echo -n x` in #((((( 5752165cb819Smrg-n*) 5753165cb819Smrg case `echo 'xy\c'` in 5754165cb819Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5755165cb819Smrg xy) ECHO_C='\c';; 5756165cb819Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5757165cb819Smrg ECHO_T=' ';; 5758165cb819Smrg esac;; 5759165cb819Smrg*) 5760165cb819Smrg ECHO_N='-n';; 5761100ae103Smrgesac 5762100ae103Smrg 5763165cb819Smrgrm -f conf$$ conf$$.exe conf$$.file 5764165cb819Smrgif test -d conf$$.dir; then 5765165cb819Smrg rm -f conf$$.dir/conf$$.file 5766100ae103Smrgelse 5767165cb819Smrg rm -f conf$$.dir 5768165cb819Smrg mkdir conf$$.dir 2>/dev/null 5769100ae103Smrgfi 5770165cb819Smrgif (echo >conf$$.file) 2>/dev/null; then 5771165cb819Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5772100ae103Smrg as_ln_s='ln -s' 5773165cb819Smrg # ... but there are two gotchas: 5774165cb819Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5775165cb819Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5776165cb819Smrg # In both cases, we have to default to `cp -p'. 5777165cb819Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5778165cb819Smrg as_ln_s='cp -p' 5779165cb819Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5780165cb819Smrg as_ln_s=ln 5781165cb819Smrg else 5782165cb819Smrg as_ln_s='cp -p' 5783100ae103Smrg fi 5784100ae103Smrgelse 5785100ae103Smrg as_ln_s='cp -p' 5786100ae103Smrgfi 5787165cb819Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5788165cb819Smrgrmdir conf$$.dir 2>/dev/null 5789165cb819Smrg 5790165cb819Smrg 5791165cb819Smrg# as_fn_mkdir_p 5792165cb819Smrg# ------------- 5793165cb819Smrg# Create "$as_dir" as a directory, including parents if necessary. 5794165cb819Smrgas_fn_mkdir_p () 5795165cb819Smrg{ 5796165cb819Smrg 5797165cb819Smrg case $as_dir in #( 5798165cb819Smrg -*) as_dir=./$as_dir;; 5799165cb819Smrg esac 5800165cb819Smrg test -d "$as_dir" || eval $as_mkdir_p || { 5801165cb819Smrg as_dirs= 5802165cb819Smrg while :; do 5803165cb819Smrg case $as_dir in #( 5804165cb819Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5805165cb819Smrg *) as_qdir=$as_dir;; 5806165cb819Smrg esac 5807165cb819Smrg as_dirs="'$as_qdir' $as_dirs" 5808165cb819Smrg as_dir=`$as_dirname -- "$as_dir" || 5809165cb819Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5810165cb819Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5811165cb819Smrg X"$as_dir" : 'X\(//\)$' \| \ 5812165cb819Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5813165cb819Smrg$as_echo X"$as_dir" | 5814165cb819Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5815165cb819Smrg s//\1/ 5816165cb819Smrg q 5817165cb819Smrg } 5818165cb819Smrg /^X\(\/\/\)[^/].*/{ 5819165cb819Smrg s//\1/ 5820165cb819Smrg q 5821165cb819Smrg } 5822165cb819Smrg /^X\(\/\/\)$/{ 5823165cb819Smrg s//\1/ 5824165cb819Smrg q 5825165cb819Smrg } 5826165cb819Smrg /^X\(\/\).*/{ 5827165cb819Smrg s//\1/ 5828165cb819Smrg q 5829165cb819Smrg } 5830165cb819Smrg s/.*/./; q'` 5831165cb819Smrg test -d "$as_dir" && break 5832165cb819Smrg done 5833165cb819Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 5834165cb819Smrg } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 5835165cb819Smrg 5836100ae103Smrg 5837165cb819Smrg} # as_fn_mkdir_p 5838100ae103Smrgif mkdir -p . 2>/dev/null; then 5839165cb819Smrg as_mkdir_p='mkdir -p "$as_dir"' 5840100ae103Smrgelse 5841100ae103Smrg test -d ./-p && rmdir ./-p 5842100ae103Smrg as_mkdir_p=false 5843100ae103Smrgfi 5844100ae103Smrg 5845165cb819Smrgif test -x / >/dev/null 2>&1; then 5846165cb819Smrg as_test_x='test -x' 5847165cb819Smrgelse 5848165cb819Smrg if ls -dL / >/dev/null 2>&1; then 5849165cb819Smrg as_ls_L_option=L 5850165cb819Smrg else 5851165cb819Smrg as_ls_L_option= 5852165cb819Smrg fi 5853165cb819Smrg as_test_x=' 5854165cb819Smrg eval sh -c '\'' 5855165cb819Smrg if test -d "$1"; then 5856165cb819Smrg test -d "$1/."; 5857165cb819Smrg else 5858165cb819Smrg case $1 in #( 5859165cb819Smrg -*)set "./$1";; 5860165cb819Smrg esac; 5861165cb819Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5862165cb819Smrg ???[sx]*):;;*)false;;esac;fi 5863165cb819Smrg '\'' sh 5864165cb819Smrg ' 5865165cb819Smrgfi 5866165cb819Smrgas_executable_p=$as_test_x 5867100ae103Smrg 5868100ae103Smrg# Sed expression to map a string onto a valid CPP name. 5869100ae103Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5870100ae103Smrg 5871100ae103Smrg# Sed expression to map a string onto a valid variable name. 5872100ae103Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5873100ae103Smrg 5874100ae103Smrg 5875100ae103Smrgexec 6>&1 5876165cb819Smrg## ----------------------------------- ## 5877165cb819Smrg## Main body of $CONFIG_STATUS script. ## 5878165cb819Smrg## ----------------------------------- ## 5879165cb819Smrg_ASEOF 5880165cb819Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5881165cb819Smrg 5882165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5883165cb819Smrg# Save the log message, to keep $0 and so on meaningful, and to 5884100ae103Smrg# report actual input values of CONFIG_FILES etc. instead of their 5885165cb819Smrg# values after options handling. 5886165cb819Smrgac_log=" 5887165cb819SmrgThis file was extended by xmessage $as_me 1.0.3, which was 5888165cb819Smrggenerated by GNU Autoconf 2.65. Invocation command line was 5889100ae103Smrg 5890100ae103Smrg CONFIG_FILES = $CONFIG_FILES 5891100ae103Smrg CONFIG_HEADERS = $CONFIG_HEADERS 5892100ae103Smrg CONFIG_LINKS = $CONFIG_LINKS 5893100ae103Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 5894100ae103Smrg $ $0 $@ 5895100ae103Smrg 5896165cb819Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5897165cb819Smrg" 5898165cb819Smrg 5899100ae103Smrg_ACEOF 5900100ae103Smrg 5901165cb819Smrgcase $ac_config_files in *" 5902165cb819Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5903165cb819Smrgesac 5904100ae103Smrg 5905165cb819Smrgcase $ac_config_headers in *" 5906165cb819Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5907165cb819Smrgesac 5908100ae103Smrg 5909100ae103Smrg 5910165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5911165cb819Smrg# Files that config.status was made for. 5912165cb819Smrgconfig_files="$ac_config_files" 5913165cb819Smrgconfig_headers="$ac_config_headers" 5914165cb819Smrgconfig_commands="$ac_config_commands" 5915100ae103Smrg 5916165cb819Smrg_ACEOF 5917100ae103Smrg 5918165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5919100ae103Smrgac_cs_usage="\ 5920165cb819Smrg\`$as_me' instantiates files and other configuration actions 5921165cb819Smrgfrom templates according to the current configuration. Unless the files 5922165cb819Smrgand actions are specified as TAGs, all are instantiated by default. 5923100ae103Smrg 5924165cb819SmrgUsage: $0 [OPTION]... [TAG]... 5925100ae103Smrg 5926100ae103Smrg -h, --help print this help, then exit 5927165cb819Smrg -V, --version print version number and configuration settings, then exit 5928165cb819Smrg --config print configuration, then exit 5929165cb819Smrg -q, --quiet, --silent 5930165cb819Smrg do not print progress messages 5931100ae103Smrg -d, --debug don't remove temporary files 5932100ae103Smrg --recheck update $as_me by reconfiguring in the same conditions 5933165cb819Smrg --file=FILE[:TEMPLATE] 5934165cb819Smrg instantiate the configuration file FILE 5935165cb819Smrg --header=FILE[:TEMPLATE] 5936165cb819Smrg instantiate the configuration header FILE 5937100ae103Smrg 5938100ae103SmrgConfiguration files: 5939100ae103Smrg$config_files 5940100ae103Smrg 5941100ae103SmrgConfiguration headers: 5942100ae103Smrg$config_headers 5943100ae103Smrg 5944100ae103SmrgConfiguration commands: 5945100ae103Smrg$config_commands 5946100ae103Smrg 5947165cb819SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 5948100ae103Smrg 5949165cb819Smrg_ACEOF 5950165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5951165cb819Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5952100ae103Smrgac_cs_version="\\ 5953165cb819Smrgxmessage config.status 1.0.3 5954165cb819Smrgconfigured by $0, generated by GNU Autoconf 2.65, 5955165cb819Smrg with options \\"\$ac_cs_config\\" 5956100ae103Smrg 5957165cb819SmrgCopyright (C) 2009 Free Software Foundation, Inc. 5958100ae103SmrgThis config.status script is free software; the Free Software Foundation 5959100ae103Smrggives unlimited permission to copy, distribute and modify it." 5960165cb819Smrg 5961165cb819Smrgac_pwd='$ac_pwd' 5962165cb819Smrgsrcdir='$srcdir' 5963165cb819SmrgINSTALL='$INSTALL' 5964165cb819SmrgMKDIR_P='$MKDIR_P' 5965165cb819SmrgAWK='$AWK' 5966165cb819Smrgtest -n "\$AWK" || AWK=awk 5967100ae103Smrg_ACEOF 5968100ae103Smrg 5969165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5970165cb819Smrg# The default lists apply if the user does not specify any file. 5971100ae103Smrgac_need_defaults=: 5972100ae103Smrgwhile test $# != 0 5973100ae103Smrgdo 5974100ae103Smrg case $1 in 5975100ae103Smrg --*=*) 5976165cb819Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5977165cb819Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5978100ae103Smrg ac_shift=: 5979100ae103Smrg ;; 5980165cb819Smrg *) 5981100ae103Smrg ac_option=$1 5982100ae103Smrg ac_optarg=$2 5983100ae103Smrg ac_shift=shift 5984100ae103Smrg ;; 5985100ae103Smrg esac 5986100ae103Smrg 5987100ae103Smrg case $ac_option in 5988100ae103Smrg # Handling of the options. 5989100ae103Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5990100ae103Smrg ac_cs_recheck=: ;; 5991165cb819Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5992165cb819Smrg $as_echo "$ac_cs_version"; exit ;; 5993165cb819Smrg --config | --confi | --conf | --con | --co | --c ) 5994165cb819Smrg $as_echo "$ac_cs_config"; exit ;; 5995165cb819Smrg --debug | --debu | --deb | --de | --d | -d ) 5996100ae103Smrg debug=: ;; 5997100ae103Smrg --file | --fil | --fi | --f ) 5998100ae103Smrg $ac_shift 5999165cb819Smrg case $ac_optarg in 6000165cb819Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6001165cb819Smrg esac 6002165cb819Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 6003100ae103Smrg ac_need_defaults=false;; 6004100ae103Smrg --header | --heade | --head | --hea ) 6005100ae103Smrg $ac_shift 6006165cb819Smrg case $ac_optarg in 6007165cb819Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6008165cb819Smrg esac 6009165cb819Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 6010100ae103Smrg ac_need_defaults=false;; 6011165cb819Smrg --he | --h) 6012165cb819Smrg # Conflict between --help and --header 6013165cb819Smrg as_fn_error "ambiguous option: \`$1' 6014165cb819SmrgTry \`$0 --help' for more information.";; 6015165cb819Smrg --help | --hel | -h ) 6016165cb819Smrg $as_echo "$ac_cs_usage"; exit ;; 6017100ae103Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6018100ae103Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 6019100ae103Smrg ac_cs_silent=: ;; 6020100ae103Smrg 6021100ae103Smrg # This is an error. 6022165cb819Smrg -*) as_fn_error "unrecognized option: \`$1' 6023165cb819SmrgTry \`$0 --help' for more information." ;; 6024100ae103Smrg 6025165cb819Smrg *) as_fn_append ac_config_targets " $1" 6026165cb819Smrg ac_need_defaults=false ;; 6027100ae103Smrg 6028100ae103Smrg esac 6029100ae103Smrg shift 6030100ae103Smrgdone 6031100ae103Smrg 6032100ae103Smrgac_configure_extra_args= 6033100ae103Smrg 6034100ae103Smrgif $ac_cs_silent; then 6035100ae103Smrg exec 6>/dev/null 6036100ae103Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 6037100ae103Smrgfi 6038100ae103Smrg 6039100ae103Smrg_ACEOF 6040165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6041100ae103Smrgif \$ac_cs_recheck; then 6042165cb819Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6043165cb819Smrg shift 6044165cb819Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6045165cb819Smrg CONFIG_SHELL='$SHELL' 6046165cb819Smrg export CONFIG_SHELL 6047165cb819Smrg exec "\$@" 6048100ae103Smrgfi 6049100ae103Smrg 6050100ae103Smrg_ACEOF 6051165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6052165cb819Smrgexec 5>>config.log 6053165cb819Smrg{ 6054165cb819Smrg echo 6055165cb819Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6056165cb819Smrg## Running $as_me. ## 6057165cb819Smrg_ASBOX 6058165cb819Smrg $as_echo "$ac_log" 6059165cb819Smrg} >&5 6060100ae103Smrg 6061165cb819Smrg_ACEOF 6062165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6063100ae103Smrg# 6064165cb819Smrg# INIT-COMMANDS 6065100ae103Smrg# 6066100ae103SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6067100ae103Smrg 6068100ae103Smrg_ACEOF 6069100ae103Smrg 6070165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6071100ae103Smrg 6072165cb819Smrg# Handling of arguments. 6073100ae103Smrgfor ac_config_target in $ac_config_targets 6074100ae103Smrgdo 6075165cb819Smrg case $ac_config_target in 6076165cb819Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6077165cb819Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6078165cb819Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6079165cb819Smrg 6080165cb819Smrg *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 6081100ae103Smrg esac 6082100ae103Smrgdone 6083100ae103Smrg 6084165cb819Smrg 6085100ae103Smrg# If the user did not use the arguments to specify the items to instantiate, 6086100ae103Smrg# then the envvar interface is used. Set only those that are not. 6087100ae103Smrg# We use the long form for the default assignment because of an extremely 6088100ae103Smrg# bizarre bug on SunOS 4.1.3. 6089100ae103Smrgif $ac_need_defaults; then 6090100ae103Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6091100ae103Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6092100ae103Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6093100ae103Smrgfi 6094100ae103Smrg 6095100ae103Smrg# Have a temporary directory for convenience. Make it in the build tree 6096165cb819Smrg# simply because there is no reason against having it here, and in addition, 6097100ae103Smrg# creating and moving files from /tmp can sometimes cause problems. 6098165cb819Smrg# Hook for its removal unless debugging. 6099165cb819Smrg# Note that there is a small window in which the directory will not be cleaned: 6100165cb819Smrg# after its creation but before its name has been assigned to `$tmp'. 6101100ae103Smrg$debug || 6102100ae103Smrg{ 6103165cb819Smrg tmp= 6104165cb819Smrg trap 'exit_status=$? 6105165cb819Smrg { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6106165cb819Smrg' 0 6107165cb819Smrg trap 'as_fn_exit 1' 1 2 13 15 6108100ae103Smrg} 6109100ae103Smrg# Create a (secure) tmp directory for tmp files. 6110100ae103Smrg 6111100ae103Smrg{ 6112165cb819Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6113100ae103Smrg test -n "$tmp" && test -d "$tmp" 6114100ae103Smrg} || 6115100ae103Smrg{ 6116165cb819Smrg tmp=./conf$$-$RANDOM 6117165cb819Smrg (umask 077 && mkdir "$tmp") 6118165cb819Smrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 6119165cb819Smrg 6120165cb819Smrg# Set up the scripts for CONFIG_FILES section. 6121165cb819Smrg# No need to generate them if there are no CONFIG_FILES. 6122165cb819Smrg# This happens for instance with `./config.status config.h'. 6123165cb819Smrgif test -n "$CONFIG_FILES"; then 6124165cb819Smrg 6125165cb819Smrg 6126165cb819Smrgac_cr=`echo X | tr X '\015'` 6127165cb819Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 6128165cb819Smrg# But we know of no other shell where ac_cr would be empty at this 6129165cb819Smrg# point, so we can use a bashism as a fallback. 6130165cb819Smrgif test "x$ac_cr" = x; then 6131165cb819Smrg eval ac_cr=\$\'\\r\' 6132165cb819Smrgfi 6133165cb819Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6134165cb819Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6135165cb819Smrg ac_cs_awk_cr='\r' 6136165cb819Smrgelse 6137165cb819Smrg ac_cs_awk_cr=$ac_cr 6138165cb819Smrgfi 6139165cb819Smrg 6140165cb819Smrgecho 'BEGIN {' >"$tmp/subs1.awk" && 6141165cb819Smrg_ACEOF 6142165cb819Smrg 6143165cb819Smrg 6144165cb819Smrg{ 6145165cb819Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 6146165cb819Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6147165cb819Smrg echo "_ACEOF" 6148165cb819Smrg} >conf$$subs.sh || 6149165cb819Smrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6150165cb819Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 6151165cb819Smrgac_delim='%!_!# ' 6152165cb819Smrgfor ac_last_try in false false false false false :; do 6153165cb819Smrg . ./conf$$subs.sh || 6154165cb819Smrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6155165cb819Smrg 6156165cb819Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6157165cb819Smrg if test $ac_delim_n = $ac_delim_num; then 6158165cb819Smrg break 6159165cb819Smrg elif $ac_last_try; then 6160165cb819Smrg as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6161165cb819Smrg else 6162165cb819Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6163165cb819Smrg fi 6164165cb819Smrgdone 6165165cb819Smrgrm -f conf$$subs.sh 6166165cb819Smrg 6167165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6168165cb819Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6169165cb819Smrg_ACEOF 6170165cb819Smrgsed -n ' 6171165cb819Smrgh 6172165cb819Smrgs/^/S["/; s/!.*/"]=/ 6173165cb819Smrgp 6174165cb819Smrgg 6175165cb819Smrgs/^[^!]*!// 6176165cb819Smrg:repl 6177165cb819Smrgt repl 6178165cb819Smrgs/'"$ac_delim"'$// 6179165cb819Smrgt delim 6180165cb819Smrg:nl 6181165cb819Smrgh 6182165cb819Smrgs/\(.\{148\}\)..*/\1/ 6183165cb819Smrgt more1 6184165cb819Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6185165cb819Smrgp 6186165cb819Smrgn 6187165cb819Smrgb repl 6188165cb819Smrg:more1 6189165cb819Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6190165cb819Smrgp 6191165cb819Smrgg 6192165cb819Smrgs/.\{148\}// 6193165cb819Smrgt nl 6194165cb819Smrg:delim 6195165cb819Smrgh 6196165cb819Smrgs/\(.\{148\}\)..*/\1/ 6197165cb819Smrgt more2 6198165cb819Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 6199165cb819Smrgp 6200165cb819Smrgb 6201165cb819Smrg:more2 6202165cb819Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6203165cb819Smrgp 6204165cb819Smrgg 6205165cb819Smrgs/.\{148\}// 6206165cb819Smrgt delim 6207165cb819Smrg' <conf$$subs.awk | sed ' 6208165cb819Smrg/^[^""]/{ 6209165cb819Smrg N 6210165cb819Smrg s/\n// 6211165cb819Smrg} 6212165cb819Smrg' >>$CONFIG_STATUS || ac_write_fail=1 6213165cb819Smrgrm -f conf$$subs.awk 6214165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6215165cb819Smrg_ACAWK 6216165cb819Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK && 6217165cb819Smrg for (key in S) S_is_set[key] = 1 6218165cb819Smrg FS = "" 6219165cb819Smrg 6220165cb819Smrg} 6221100ae103Smrg{ 6222165cb819Smrg line = $ 0 6223165cb819Smrg nfields = split(line, field, "@") 6224165cb819Smrg substed = 0 6225165cb819Smrg len = length(field[1]) 6226165cb819Smrg for (i = 2; i < nfields; i++) { 6227165cb819Smrg key = field[i] 6228165cb819Smrg keylen = length(key) 6229165cb819Smrg if (S_is_set[key]) { 6230165cb819Smrg value = S[key] 6231165cb819Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6232165cb819Smrg len += length(value) + length(field[++i]) 6233165cb819Smrg substed = 1 6234165cb819Smrg } else 6235165cb819Smrg len += 1 + keylen 6236165cb819Smrg } 6237165cb819Smrg 6238165cb819Smrg print line 6239100ae103Smrg} 6240100ae103Smrg 6241165cb819Smrg_ACAWK 6242165cb819Smrg_ACEOF 6243165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6244165cb819Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6245165cb819Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6246165cb819Smrgelse 6247165cb819Smrg cat 6248165cb819Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6249165cb819Smrg || as_fn_error "could not setup config files machinery" "$LINENO" 5 6250100ae103Smrg_ACEOF 6251100ae103Smrg 6252165cb819Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 6253165cb819Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6254165cb819Smrg# trailing colons and then remove the whole line if VPATH becomes empty 6255165cb819Smrg# (actually we leave an empty line to preserve line numbers). 6256165cb819Smrgif test "x$srcdir" = x.; then 6257165cb819Smrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6258165cb819Smrgs/:*\$(srcdir):*/:/ 6259165cb819Smrgs/:*\${srcdir}:*/:/ 6260165cb819Smrgs/:*@srcdir@:*/:/ 6261165cb819Smrgs/^\([^=]*=[ ]*\):*/\1/ 6262165cb819Smrgs/:*$// 6263165cb819Smrgs/^[^=]*=[ ]*$// 6264165cb819Smrg}' 6265165cb819Smrgfi 6266100ae103Smrg 6267165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6268165cb819Smrgfi # test -n "$CONFIG_FILES" 6269100ae103Smrg 6270165cb819Smrg# Set up the scripts for CONFIG_HEADERS section. 6271165cb819Smrg# No need to generate them if there are no CONFIG_HEADERS. 6272165cb819Smrg# This happens for instance with `./config.status Makefile'. 6273165cb819Smrgif test -n "$CONFIG_HEADERS"; then 6274165cb819Smrgcat >"$tmp/defines.awk" <<\_ACAWK || 6275165cb819SmrgBEGIN { 6276100ae103Smrg_ACEOF 6277100ae103Smrg 6278165cb819Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 6279165cb819Smrg# here-document in config.status, that substitutes the proper values into 6280165cb819Smrg# config.h.in to produce config.h. 6281165cb819Smrg 6282165cb819Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 6283165cb819Smrg# handling of long lines. 6284165cb819Smrgac_delim='%!_!# ' 6285165cb819Smrgfor ac_last_try in false false :; do 6286165cb819Smrg ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6287165cb819Smrg if test -z "$ac_t"; then 6288165cb819Smrg break 6289165cb819Smrg elif $ac_last_try; then 6290165cb819Smrg as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 6291165cb819Smrg else 6292165cb819Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6293100ae103Smrg fi 6294165cb819Smrgdone 6295100ae103Smrg 6296165cb819Smrg# For the awk script, D is an array of macro values keyed by name, 6297165cb819Smrg# likewise P contains macro parameters if any. Preserve backslash 6298165cb819Smrg# newline sequences. 6299165cb819Smrg 6300165cb819Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6301165cb819Smrgsed -n ' 6302165cb819Smrgs/.\{148\}/&'"$ac_delim"'/g 6303165cb819Smrgt rset 6304165cb819Smrg:rset 6305165cb819Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 6306165cb819Smrgt def 6307165cb819Smrgd 6308165cb819Smrg:def 6309165cb819Smrgs/\\$// 6310165cb819Smrgt bsnl 6311165cb819Smrgs/["\\]/\\&/g 6312165cb819Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6313165cb819SmrgD["\1"]=" \3"/p 6314165cb819Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6315165cb819Smrgd 6316165cb819Smrg:bsnl 6317165cb819Smrgs/["\\]/\\&/g 6318165cb819Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6319165cb819SmrgD["\1"]=" \3\\\\\\n"\\/p 6320165cb819Smrgt cont 6321165cb819Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6322165cb819Smrgt cont 6323165cb819Smrgd 6324165cb819Smrg:cont 6325165cb819Smrgn 6326165cb819Smrgs/.\{148\}/&'"$ac_delim"'/g 6327165cb819Smrgt clear 6328165cb819Smrg:clear 6329165cb819Smrgs/\\$// 6330165cb819Smrgt bsnlc 6331165cb819Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 6332165cb819Smrgd 6333165cb819Smrg:bsnlc 6334165cb819Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6335165cb819Smrgb cont 6336165cb819Smrg' <confdefs.h | sed ' 6337165cb819Smrgs/'"$ac_delim"'/"\\\ 6338165cb819Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 6339165cb819Smrg 6340165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6341165cb819Smrg for (key in D) D_is_set[key] = 1 6342165cb819Smrg FS = "" 6343165cb819Smrg} 6344165cb819Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6345165cb819Smrg line = \$ 0 6346165cb819Smrg split(line, arg, " ") 6347165cb819Smrg if (arg[1] == "#") { 6348165cb819Smrg defundef = arg[2] 6349165cb819Smrg mac1 = arg[3] 6350165cb819Smrg } else { 6351165cb819Smrg defundef = substr(arg[1], 2) 6352165cb819Smrg mac1 = arg[2] 6353165cb819Smrg } 6354165cb819Smrg split(mac1, mac2, "(") #) 6355165cb819Smrg macro = mac2[1] 6356165cb819Smrg prefix = substr(line, 1, index(line, defundef) - 1) 6357165cb819Smrg if (D_is_set[macro]) { 6358165cb819Smrg # Preserve the white space surrounding the "#". 6359165cb819Smrg print prefix "define", macro P[macro] D[macro] 6360165cb819Smrg next 6361165cb819Smrg } else { 6362165cb819Smrg # Replace #undef with comments. This is necessary, for example, 6363165cb819Smrg # in the case of _POSIX_SOURCE, which is predefined and required 6364165cb819Smrg # on some systems where configure will not decide to define it. 6365165cb819Smrg if (defundef == "undef") { 6366165cb819Smrg print "/*", prefix defundef, macro, "*/" 6367165cb819Smrg next 6368165cb819Smrg } 6369165cb819Smrg } 6370165cb819Smrg} 6371165cb819Smrg{ print } 6372165cb819Smrg_ACAWK 6373100ae103Smrg_ACEOF 6374165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6375165cb819Smrg as_fn_error "could not setup config headers machinery" "$LINENO" 5 6376165cb819Smrgfi # test -n "$CONFIG_HEADERS" 6377165cb819Smrg 6378165cb819Smrg 6379165cb819Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6380165cb819Smrgshift 6381165cb819Smrgfor ac_tag 6382165cb819Smrgdo 6383165cb819Smrg case $ac_tag in 6384165cb819Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 6385165cb819Smrg esac 6386165cb819Smrg case $ac_mode$ac_tag in 6387165cb819Smrg :[FHL]*:*);; 6388165cb819Smrg :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 6389165cb819Smrg :[FH]-) ac_tag=-:-;; 6390165cb819Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6391165cb819Smrg esac 6392165cb819Smrg ac_save_IFS=$IFS 6393165cb819Smrg IFS=: 6394165cb819Smrg set x $ac_tag 6395165cb819Smrg IFS=$ac_save_IFS 6396165cb819Smrg shift 6397165cb819Smrg ac_file=$1 6398165cb819Smrg shift 6399165cb819Smrg 6400165cb819Smrg case $ac_mode in 6401165cb819Smrg :L) ac_source=$1;; 6402165cb819Smrg :[FH]) 6403165cb819Smrg ac_file_inputs= 6404165cb819Smrg for ac_f 6405165cb819Smrg do 6406165cb819Smrg case $ac_f in 6407165cb819Smrg -) ac_f="$tmp/stdin";; 6408165cb819Smrg *) # Look for the file first in the build tree, then in the source tree 6409165cb819Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 6410165cb819Smrg # because $ac_f cannot contain `:'. 6411165cb819Smrg test -f "$ac_f" || 6412165cb819Smrg case $ac_f in 6413165cb819Smrg [\\/$]*) false;; 6414165cb819Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6415165cb819Smrg esac || 6416165cb819Smrg as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6417165cb819Smrg esac 6418165cb819Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6419165cb819Smrg as_fn_append ac_file_inputs " '$ac_f'" 6420165cb819Smrg done 6421165cb819Smrg 6422165cb819Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 6423165cb819Smrg # use $as_me), people would be surprised to read: 6424165cb819Smrg # /* config.h. Generated by config.status. */ 6425165cb819Smrg configure_input='Generated from '` 6426165cb819Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6427165cb819Smrg `' by configure.' 6428165cb819Smrg if test x"$ac_file" != x-; then 6429165cb819Smrg configure_input="$ac_file. $configure_input" 6430165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6431165cb819Smrg$as_echo "$as_me: creating $ac_file" >&6;} 6432165cb819Smrg fi 6433165cb819Smrg # Neutralize special characters interpreted by sed in replacement strings. 6434165cb819Smrg case $configure_input in #( 6435165cb819Smrg *\&* | *\|* | *\\* ) 6436165cb819Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 6437165cb819Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 6438165cb819Smrg *) ac_sed_conf_input=$configure_input;; 6439165cb819Smrg esac 6440165cb819Smrg 6441165cb819Smrg case $ac_tag in 6442165cb819Smrg *:-:* | *:-) cat >"$tmp/stdin" \ 6443165cb819Smrg || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 6444165cb819Smrg esac 6445165cb819Smrg ;; 6446100ae103Smrg esac 6447100ae103Smrg 6448165cb819Smrg ac_dir=`$as_dirname -- "$ac_file" || 6449100ae103Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6450100ae103Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 6451100ae103Smrg X"$ac_file" : 'X\(//\)$' \| \ 6452165cb819Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6453165cb819Smrg$as_echo X"$ac_file" | 6454165cb819Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6455165cb819Smrg s//\1/ 6456165cb819Smrg q 6457165cb819Smrg } 6458165cb819Smrg /^X\(\/\/\)[^/].*/{ 6459165cb819Smrg s//\1/ 6460165cb819Smrg q 6461165cb819Smrg } 6462165cb819Smrg /^X\(\/\/\)$/{ 6463165cb819Smrg s//\1/ 6464165cb819Smrg q 6465165cb819Smrg } 6466165cb819Smrg /^X\(\/\).*/{ 6467165cb819Smrg s//\1/ 6468165cb819Smrg q 6469165cb819Smrg } 6470165cb819Smrg s/.*/./; q'` 6471165cb819Smrg as_dir="$ac_dir"; as_fn_mkdir_p 6472100ae103Smrg ac_builddir=. 6473100ae103Smrg 6474165cb819Smrgcase "$ac_dir" in 6475165cb819Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6476165cb819Smrg*) 6477165cb819Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6478165cb819Smrg # A ".." for each directory in $ac_dir_suffix. 6479165cb819Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6480165cb819Smrg case $ac_top_builddir_sub in 6481165cb819Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6482165cb819Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6483165cb819Smrg esac ;; 6484165cb819Smrgesac 6485165cb819Smrgac_abs_top_builddir=$ac_pwd 6486165cb819Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 6487165cb819Smrg# for backward compatibility: 6488165cb819Smrgac_top_builddir=$ac_top_build_prefix 6489100ae103Smrg 6490100ae103Smrgcase $srcdir in 6491165cb819Smrg .) # We are building in place. 6492100ae103Smrg ac_srcdir=. 6493165cb819Smrg ac_top_srcdir=$ac_top_builddir_sub 6494165cb819Smrg ac_abs_top_srcdir=$ac_pwd ;; 6495165cb819Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 6496100ae103Smrg ac_srcdir=$srcdir$ac_dir_suffix; 6497165cb819Smrg ac_top_srcdir=$srcdir 6498165cb819Smrg ac_abs_top_srcdir=$srcdir ;; 6499165cb819Smrg *) # Relative name. 6500165cb819Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6501165cb819Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 6502165cb819Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6503100ae103Smrgesac 6504165cb819Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6505100ae103Smrg 6506100ae103Smrg 6507165cb819Smrg case $ac_mode in 6508165cb819Smrg :F) 6509165cb819Smrg # 6510165cb819Smrg # CONFIG_FILE 6511165cb819Smrg # 6512100ae103Smrg 6513100ae103Smrg case $INSTALL in 6514100ae103Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6515165cb819Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6516165cb819Smrg esac 6517165cb819Smrg ac_MKDIR_P=$MKDIR_P 6518165cb819Smrg case $MKDIR_P in 6519165cb819Smrg [\\/$]* | ?:[\\/]* ) ;; 6520165cb819Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6521100ae103Smrg esac 6522165cb819Smrg_ACEOF 6523100ae103Smrg 6524165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6525165cb819Smrg# If the template does not know about datarootdir, expand it. 6526165cb819Smrg# FIXME: This hack should be removed a few years after 2.60. 6527165cb819Smrgac_datarootdir_hack=; ac_datarootdir_seen= 6528165cb819Smrgac_sed_dataroot=' 6529165cb819Smrg/datarootdir/ { 6530165cb819Smrg p 6531165cb819Smrg q 6532165cb819Smrg} 6533165cb819Smrg/@datadir@/p 6534165cb819Smrg/@docdir@/p 6535165cb819Smrg/@infodir@/p 6536165cb819Smrg/@localedir@/p 6537165cb819Smrg/@mandir@/p' 6538165cb819Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6539165cb819Smrg*datarootdir*) ac_datarootdir_seen=yes;; 6540165cb819Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6541165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6542165cb819Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6543165cb819Smrg_ACEOF 6544165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6545165cb819Smrg ac_datarootdir_hack=' 6546165cb819Smrg s&@datadir@&$datadir&g 6547165cb819Smrg s&@docdir@&$docdir&g 6548165cb819Smrg s&@infodir@&$infodir&g 6549165cb819Smrg s&@localedir@&$localedir&g 6550165cb819Smrg s&@mandir@&$mandir&g 6551165cb819Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 6552165cb819Smrgesac 6553100ae103Smrg_ACEOF 6554165cb819Smrg 6555165cb819Smrg# Neutralize VPATH when `$srcdir' = `.'. 6556165cb819Smrg# Shell code in configure.ac might set extrasub. 6557165cb819Smrg# FIXME: do we really want to maintain this feature? 6558165cb819Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6559165cb819Smrgac_sed_extra="$ac_vpsub 6560100ae103Smrg$extrasub 6561100ae103Smrg_ACEOF 6562165cb819Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6563100ae103Smrg:t 6564100ae103Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6565165cb819Smrgs|@configure_input@|$ac_sed_conf_input|;t t 6566165cb819Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6567165cb819Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6568165cb819Smrgs&@srcdir@&$ac_srcdir&;t t 6569165cb819Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6570165cb819Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 6571165cb819Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6572165cb819Smrgs&@builddir@&$ac_builddir&;t t 6573165cb819Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 6574165cb819Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6575165cb819Smrgs&@INSTALL@&$ac_INSTALL&;t t 6576165cb819Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6577165cb819Smrg$ac_datarootdir_hack 6578165cb819Smrg" 6579165cb819Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6580165cb819Smrg || as_fn_error "could not create $ac_file" "$LINENO" 5 6581165cb819Smrg 6582165cb819Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6583165cb819Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6584165cb819Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6585165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6586165cb819Smrgwhich seems to be undefined. Please make sure it is defined." >&5 6587165cb819Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6588165cb819Smrgwhich seems to be undefined. Please make sure it is defined." >&2;} 6589165cb819Smrg 6590165cb819Smrg rm -f "$tmp/stdin" 6591100ae103Smrg case $ac_file in 6592165cb819Smrg -) cat "$tmp/out" && rm -f "$tmp/out";; 6593165cb819Smrg *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6594165cb819Smrg esac \ 6595165cb819Smrg || as_fn_error "could not create $ac_file" "$LINENO" 5 6596165cb819Smrg ;; 6597165cb819Smrg :H) 6598165cb819Smrg # 6599165cb819Smrg # CONFIG_HEADER 6600165cb819Smrg # 6601100ae103Smrg if test x"$ac_file" != x-; then 6602165cb819Smrg { 6603165cb819Smrg $as_echo "/* $configure_input */" \ 6604165cb819Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6605165cb819Smrg } >"$tmp/config.h" \ 6606165cb819Smrg || as_fn_error "could not create $ac_file" "$LINENO" 5 6607165cb819Smrg if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6608165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6609165cb819Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 6610100ae103Smrg else 6611165cb819Smrg rm -f "$ac_file" 6612165cb819Smrg mv "$tmp/config.h" "$ac_file" \ 6613165cb819Smrg || as_fn_error "could not create $ac_file" "$LINENO" 5 6614100ae103Smrg fi 6615100ae103Smrg else 6616165cb819Smrg $as_echo "/* $configure_input */" \ 6617165cb819Smrg && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6618165cb819Smrg || as_fn_error "could not create -" "$LINENO" 5 6619100ae103Smrg fi 6620165cb819Smrg# Compute "$ac_file"'s index in $config_headers. 6621165cb819Smrg_am_arg="$ac_file" 6622100ae103Smrg_am_stamp_count=1 6623100ae103Smrgfor _am_header in $config_headers :; do 6624100ae103Smrg case $_am_header in 6625165cb819Smrg $_am_arg | $_am_arg:* ) 6626100ae103Smrg break ;; 6627100ae103Smrg * ) 6628100ae103Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6629100ae103Smrg esac 6630100ae103Smrgdone 6631165cb819Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6632165cb819Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6633165cb819Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6634165cb819Smrg X"$_am_arg" : 'X\(//\)$' \| \ 6635165cb819Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6636165cb819Smrg$as_echo X"$_am_arg" | 6637165cb819Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6638165cb819Smrg s//\1/ 6639165cb819Smrg q 6640165cb819Smrg } 6641165cb819Smrg /^X\(\/\/\)[^/].*/{ 6642165cb819Smrg s//\1/ 6643165cb819Smrg q 6644165cb819Smrg } 6645165cb819Smrg /^X\(\/\/\)$/{ 6646165cb819Smrg s//\1/ 6647165cb819Smrg q 6648165cb819Smrg } 6649165cb819Smrg /^X\(\/\).*/{ 6650165cb819Smrg s//\1/ 6651165cb819Smrg q 6652165cb819Smrg } 6653165cb819Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 6654165cb819Smrg ;; 6655100ae103Smrg 6656165cb819Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6657165cb819Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6658165cb819Smrg ;; 6659165cb819Smrg esac 6660100ae103Smrg 6661100ae103Smrg 6662165cb819Smrg case $ac_file$ac_mode in 6663165cb819Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6664165cb819Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6665165cb819Smrg # are listed without --file. Let's play safe and only enable the eval 6666165cb819Smrg # if we detect the quoting. 6667165cb819Smrg case $CONFIG_FILES in 6668165cb819Smrg *\'*) eval set x "$CONFIG_FILES" ;; 6669165cb819Smrg *) set x $CONFIG_FILES ;; 6670165cb819Smrg esac 6671165cb819Smrg shift 6672165cb819Smrg for mf 6673165cb819Smrg do 6674165cb819Smrg # Strip MF so we end up with the name of the file. 6675165cb819Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6676165cb819Smrg # Check whether this is an Automake generated Makefile or not. 6677165cb819Smrg # We used to match only the files named `Makefile.in', but 6678165cb819Smrg # some people rename them; so instead we look at the file content. 6679165cb819Smrg # Grep'ing the first line is not enough: some people post-process 6680165cb819Smrg # each Makefile.in and add a new line on top of each file to say so. 6681165cb819Smrg # Grep'ing the whole file is not good either: AIX grep has a line 6682165cb819Smrg # limit of 2048, but all sed's we know have understand at least 4000. 6683165cb819Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6684165cb819Smrg dirpart=`$as_dirname -- "$mf" || 6685100ae103Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6686100ae103Smrg X"$mf" : 'X\(//\)[^/]' \| \ 6687100ae103Smrg X"$mf" : 'X\(//\)$' \| \ 6688165cb819Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6689165cb819Smrg$as_echo X"$mf" | 6690165cb819Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6691165cb819Smrg s//\1/ 6692165cb819Smrg q 6693165cb819Smrg } 6694165cb819Smrg /^X\(\/\/\)[^/].*/{ 6695165cb819Smrg s//\1/ 6696165cb819Smrg q 6697165cb819Smrg } 6698165cb819Smrg /^X\(\/\/\)$/{ 6699165cb819Smrg s//\1/ 6700165cb819Smrg q 6701165cb819Smrg } 6702165cb819Smrg /^X\(\/\).*/{ 6703165cb819Smrg s//\1/ 6704165cb819Smrg q 6705165cb819Smrg } 6706165cb819Smrg s/.*/./; q'` 6707165cb819Smrg else 6708165cb819Smrg continue 6709165cb819Smrg fi 6710165cb819Smrg # Extract the definition of DEPDIR, am__include, and am__quote 6711165cb819Smrg # from the Makefile without running `make'. 6712165cb819Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6713165cb819Smrg test -z "$DEPDIR" && continue 6714165cb819Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6715165cb819Smrg test -z "am__include" && continue 6716165cb819Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6717165cb819Smrg # When using ansi2knr, U may be empty or an underscore; expand it 6718165cb819Smrg U=`sed -n 's/^U = //p' < "$mf"` 6719165cb819Smrg # Find all dependency output files, they are included files with 6720165cb819Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6721165cb819Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 6722165cb819Smrg # expansion. 6723165cb819Smrg for file in `sed -n " 6724165cb819Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6725165cb819Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6726165cb819Smrg # Make sure the directory exists. 6727165cb819Smrg test -f "$dirpart/$file" && continue 6728165cb819Smrg fdir=`$as_dirname -- "$file" || 6729100ae103Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6730100ae103Smrg X"$file" : 'X\(//\)[^/]' \| \ 6731100ae103Smrg X"$file" : 'X\(//\)$' \| \ 6732165cb819Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6733165cb819Smrg$as_echo X"$file" | 6734165cb819Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6735165cb819Smrg s//\1/ 6736165cb819Smrg q 6737165cb819Smrg } 6738165cb819Smrg /^X\(\/\/\)[^/].*/{ 6739165cb819Smrg s//\1/ 6740165cb819Smrg q 6741165cb819Smrg } 6742165cb819Smrg /^X\(\/\/\)$/{ 6743165cb819Smrg s//\1/ 6744165cb819Smrg q 6745165cb819Smrg } 6746165cb819Smrg /^X\(\/\).*/{ 6747165cb819Smrg s//\1/ 6748165cb819Smrg q 6749165cb819Smrg } 6750165cb819Smrg s/.*/./; q'` 6751165cb819Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 6752165cb819Smrg # echo "creating $dirpart/$file" 6753165cb819Smrg echo '# dummy' > "$dirpart/$file" 6754100ae103Smrg done 6755100ae103Smrg done 6756165cb819Smrg} 6757100ae103Smrg ;; 6758165cb819Smrg 6759100ae103Smrg esac 6760165cb819Smrgdone # for ac_tag 6761100ae103Smrg 6762100ae103Smrg 6763165cb819Smrgas_fn_exit 0 6764100ae103Smrg_ACEOF 6765100ae103Smrgac_clean_files=$ac_clean_files_save 6766100ae103Smrg 6767165cb819Smrgtest $ac_write_fail = 0 || 6768165cb819Smrg as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 6769165cb819Smrg 6770100ae103Smrg 6771100ae103Smrg# configure is writing to config.log, and then calls config.status. 6772100ae103Smrg# config.status does its own redirection, appending to config.log. 6773100ae103Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 6774100ae103Smrg# by configure, so config.status won't be able to write to it; its 6775100ae103Smrg# output is simply discarded. So we exec the FD to /dev/null, 6776100ae103Smrg# effectively closing config.log, so it can be properly (re)opened and 6777100ae103Smrg# appended to by config.status. When coming back to configure, we 6778100ae103Smrg# need to make the FD available again. 6779100ae103Smrgif test "$no_create" != yes; then 6780100ae103Smrg ac_cs_success=: 6781100ae103Smrg ac_config_status_args= 6782100ae103Smrg test "$silent" = yes && 6783100ae103Smrg ac_config_status_args="$ac_config_status_args --quiet" 6784100ae103Smrg exec 5>/dev/null 6785100ae103Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6786100ae103Smrg exec 5>>config.log 6787100ae103Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6788100ae103Smrg # would make configure fail if this is the last instruction. 6789165cb819Smrg $ac_cs_success || as_fn_exit $? 6790165cb819Smrgfi 6791165cb819Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6792165cb819Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6793165cb819Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6794100ae103Smrgfi 6795100ae103Smrg 6796