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