configure revision a1806bd8
1ff7e0accSmrg#! /bin/sh 2ff7e0accSmrg# Guess values for system-dependent variables and create Makefiles. 3a1806bd8Smrg# Generated by GNU Autoconf 2.68 for xwininfo 1.1.2. 4ff7e0accSmrg# 5ff7e0accSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6ff7e0accSmrg# 7863f95b1Smrg# 8ff7e0accSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9863f95b1Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10863f95b1Smrg# Foundation, Inc. 11863f95b1Smrg# 12863f95b1Smrg# 13ff7e0accSmrg# This configure script is free software; the Free Software Foundation 14ff7e0accSmrg# gives unlimited permission to copy, distribute and modify it. 15863f95b1Smrg## -------------------- ## 16863f95b1Smrg## M4sh Initialization. ## 17863f95b1Smrg## -------------------- ## 18ff7e0accSmrg 19ff7e0accSmrg# Be more Bourne compatible 20ff7e0accSmrgDUALCASE=1; export DUALCASE # for MKS sh 21863f95b1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22ff7e0accSmrg emulate sh 23ff7e0accSmrg NULLCMD=: 24a005d216Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25ff7e0accSmrg # is contrary to our usage. Disable this feature. 26ff7e0accSmrg alias -g '${1+"$@"}'='"$@"' 27ff7e0accSmrg setopt NO_GLOB_SUBST 28ff7e0accSmrgelse 29863f95b1Smrg case `(set -o) 2>/dev/null` in #( 30863f95b1Smrg *posix*) : 31863f95b1Smrg set -o posix ;; #( 32863f95b1Smrg *) : 33863f95b1Smrg ;; 34ff7e0accSmrgesac 35ff7e0accSmrgfi 36ff7e0accSmrg 37ff7e0accSmrg 38a005d216Smrgas_nl=' 39a005d216Smrg' 40a005d216Smrgexport as_nl 41a005d216Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42a005d216Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45863f95b1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46863f95b1Smrg# but without wasting forks for bash or zsh. 47863f95b1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48863f95b1Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49863f95b1Smrg as_echo='print -r --' 50863f95b1Smrg as_echo_n='print -rn --' 51863f95b1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52a005d216Smrg as_echo='printf %s\n' 53a005d216Smrg as_echo_n='printf %s' 54a005d216Smrgelse 55a005d216Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56a005d216Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57a005d216Smrg as_echo_n='/usr/ucb/echo -n' 58ff7e0accSmrg else 59a005d216Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60a005d216Smrg as_echo_n_body='eval 61a005d216Smrg arg=$1; 62863f95b1Smrg case $arg in #( 63a005d216Smrg *"$as_nl"*) 64a005d216Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65a005d216Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66a005d216Smrg esac; 67a005d216Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68a005d216Smrg ' 69a005d216Smrg export as_echo_n_body 70a005d216Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 71ff7e0accSmrg fi 72a005d216Smrg export as_echo_body 73a005d216Smrg as_echo='sh -c $as_echo_body as_echo' 74a005d216Smrgfi 75a005d216Smrg 76a005d216Smrg# The user is always right. 77a005d216Smrgif test "${PATH_SEPARATOR+set}" != set; then 78a005d216Smrg PATH_SEPARATOR=: 79a005d216Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80a005d216Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81a005d216Smrg PATH_SEPARATOR=';' 82a005d216Smrg } 83ff7e0accSmrgfi 84ff7e0accSmrg 85ff7e0accSmrg 86ff7e0accSmrg# IFS 87ff7e0accSmrg# We need space, tab and new line, in precisely that order. Quoting is 88ff7e0accSmrg# there to prevent editors from complaining about space-tab. 89ff7e0accSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90ff7e0accSmrg# splitting by setting IFS to empty value.) 91ff7e0accSmrgIFS=" "" $as_nl" 92ff7e0accSmrg 93ff7e0accSmrg# Find who we are. Look in the path if we contain no directory separator. 94863f95b1Smrgas_myself= 95863f95b1Smrgcase $0 in #(( 96ff7e0accSmrg *[\\/]* ) as_myself=$0 ;; 97ff7e0accSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98ff7e0accSmrgfor as_dir in $PATH 99ff7e0accSmrgdo 100ff7e0accSmrg IFS=$as_save_IFS 101ff7e0accSmrg test -z "$as_dir" && as_dir=. 102863f95b1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103863f95b1Smrg done 104ff7e0accSmrgIFS=$as_save_IFS 105ff7e0accSmrg 106ff7e0accSmrg ;; 107ff7e0accSmrgesac 108ff7e0accSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109ff7e0accSmrg# in which case we are not to be found in the path. 110ff7e0accSmrgif test "x$as_myself" = x; then 111ff7e0accSmrg as_myself=$0 112ff7e0accSmrgfi 113ff7e0accSmrgif test ! -f "$as_myself"; then 114a005d216Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115863f95b1Smrg exit 1 116ff7e0accSmrgfi 117ff7e0accSmrg 118863f95b1Smrg# Unset variables that we do not need and which cause bugs (e.g. in 119863f95b1Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120863f95b1Smrg# suppresses any "Segmentation fault" message there. '((' could 121863f95b1Smrg# trigger a bug in pdksh 5.2.14. 122863f95b1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123863f95b1Smrgdo eval test x\${$as_var+set} = xset \ 124863f95b1Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125ff7e0accSmrgdone 126ff7e0accSmrgPS1='$ ' 127ff7e0accSmrgPS2='> ' 128ff7e0accSmrgPS4='+ ' 129ff7e0accSmrg 130ff7e0accSmrg# NLS nuisances. 131a005d216SmrgLC_ALL=C 132a005d216Smrgexport LC_ALL 133a005d216SmrgLANGUAGE=C 134a005d216Smrgexport LANGUAGE 135ff7e0accSmrg 136ff7e0accSmrg# CDPATH. 137863f95b1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138ff7e0accSmrg 139ff7e0accSmrgif test "x$CONFIG_SHELL" = x; then 140863f95b1Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141863f95b1Smrg emulate sh 142863f95b1Smrg NULLCMD=: 143863f95b1Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144863f95b1Smrg # is contrary to our usage. Disable this feature. 145863f95b1Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146863f95b1Smrg setopt NO_GLOB_SUBST 147ff7e0accSmrgelse 148863f95b1Smrg case \`(set -o) 2>/dev/null\` in #( 149863f95b1Smrg *posix*) : 150863f95b1Smrg set -o posix ;; #( 151863f95b1Smrg *) : 152863f95b1Smrg ;; 153863f95b1Smrgesac 154ff7e0accSmrgfi 155863f95b1Smrg" 156863f95b1Smrg as_required="as_fn_return () { (exit \$1); } 157863f95b1Smrgas_fn_success () { as_fn_return 0; } 158863f95b1Smrgas_fn_failure () { as_fn_return 1; } 159863f95b1Smrgas_fn_ret_success () { return 0; } 160863f95b1Smrgas_fn_ret_failure () { return 1; } 161ff7e0accSmrg 162ff7e0accSmrgexitcode=0 163863f95b1Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164863f95b1Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165863f95b1Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166863f95b1Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167863f95b1Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168863f95b1Smrg 169863f95b1Smrgelse 170863f95b1Smrg exitcode=1; echo positional parameters were not saved. 171863f95b1Smrgfi 172863f95b1Smrgtest x\$exitcode = x0 || exit 1" 173863f95b1Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174863f95b1Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175863f95b1Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176863f95b1Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177863f95b1Smrgtest \$(( 1 + 1 )) = 2 || exit 1" 178863f95b1Smrg if (eval "$as_required") 2>/dev/null; then : 179863f95b1Smrg as_have_required=yes 180ff7e0accSmrgelse 181863f95b1Smrg as_have_required=no 182ff7e0accSmrgfi 183863f95b1Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184ff7e0accSmrg 185ff7e0accSmrgelse 186863f95b1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187863f95b1Smrgas_found=false 188ff7e0accSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189ff7e0accSmrgdo 190ff7e0accSmrg IFS=$as_save_IFS 191ff7e0accSmrg test -z "$as_dir" && as_dir=. 192863f95b1Smrg as_found=: 193863f95b1Smrg case $as_dir in #( 194ff7e0accSmrg /*) 195ff7e0accSmrg for as_base in sh bash ksh sh5; do 196863f95b1Smrg # Try only shells that exist, to save several forks. 197863f95b1Smrg as_shell=$as_dir/$as_base 198863f95b1Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199863f95b1Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200863f95b1Smrg CONFIG_SHELL=$as_shell as_have_required=yes 201863f95b1Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202863f95b1Smrg break 2 203863f95b1Smrgfi 204863f95b1Smrgfi 205ff7e0accSmrg done;; 206ff7e0accSmrg esac 207863f95b1Smrg as_found=false 208ff7e0accSmrgdone 209863f95b1Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210863f95b1Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211863f95b1Smrg CONFIG_SHELL=$SHELL as_have_required=yes 212863f95b1Smrgfi; } 213ff7e0accSmrgIFS=$as_save_IFS 214ff7e0accSmrg 215ff7e0accSmrg 216863f95b1Smrg if test "x$CONFIG_SHELL" != x; then : 217863f95b1Smrg # We cannot yet assume a decent shell, so we have to provide a 218863f95b1Smrg # neutralization value for shells without unset; and this also 219863f95b1Smrg # works around shells that cannot unset nonexistent variables. 220863f95b1Smrg # Preserve -v and -x to the replacement shell. 221863f95b1Smrg BASH_ENV=/dev/null 222863f95b1Smrg ENV=/dev/null 223863f95b1Smrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224863f95b1Smrg export CONFIG_SHELL 225863f95b1Smrg case $- in # (((( 226863f95b1Smrg *v*x* | *x*v* ) as_opts=-vx ;; 227863f95b1Smrg *v* ) as_opts=-v ;; 228863f95b1Smrg *x* ) as_opts=-x ;; 229863f95b1Smrg * ) as_opts= ;; 230863f95b1Smrg esac 231863f95b1Smrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232ff7e0accSmrgfi 233ff7e0accSmrg 234863f95b1Smrg if test x$as_have_required = xno; then : 235863f95b1Smrg $as_echo "$0: This script requires a shell more modern than all" 236863f95b1Smrg $as_echo "$0: the shells that I found on your system." 237863f95b1Smrg if test x${ZSH_VERSION+set} = xset ; then 238863f95b1Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239863f95b1Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240863f95b1Smrg else 241863f95b1Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242863f95b1Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243863f95b1Smrg$0: about your system, including any error possibly output 244863f95b1Smrg$0: before this message. Then install a modern shell, or 245863f95b1Smrg$0: manually run the script under such a shell if you do 246863f95b1Smrg$0: have one." 247863f95b1Smrg fi 248863f95b1Smrg exit 1 249ff7e0accSmrgfi 250863f95b1Smrgfi 251863f95b1Smrgfi 252863f95b1SmrgSHELL=${CONFIG_SHELL-/bin/sh} 253863f95b1Smrgexport SHELL 254863f95b1Smrg# Unset more variables known to interfere with behavior of common tools. 255863f95b1SmrgCLICOLOR_FORCE= GREP_OPTIONS= 256863f95b1Smrgunset CLICOLOR_FORCE GREP_OPTIONS 257ff7e0accSmrg 258863f95b1Smrg## --------------------- ## 259863f95b1Smrg## M4sh Shell Functions. ## 260863f95b1Smrg## --------------------- ## 261863f95b1Smrg# as_fn_unset VAR 262863f95b1Smrg# --------------- 263863f95b1Smrg# Portably unset VAR. 264863f95b1Smrgas_fn_unset () 265863f95b1Smrg{ 266863f95b1Smrg { eval $1=; unset $1;} 267ff7e0accSmrg} 268863f95b1Smrgas_unset=as_fn_unset 269ff7e0accSmrg 270863f95b1Smrg# as_fn_set_status STATUS 271863f95b1Smrg# ----------------------- 272863f95b1Smrg# Set $? to STATUS, without forking. 273863f95b1Smrgas_fn_set_status () 274863f95b1Smrg{ 275863f95b1Smrg return $1 276863f95b1Smrg} # as_fn_set_status 277ff7e0accSmrg 278863f95b1Smrg# as_fn_exit STATUS 279863f95b1Smrg# ----------------- 280863f95b1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281863f95b1Smrgas_fn_exit () 282863f95b1Smrg{ 283863f95b1Smrg set +e 284863f95b1Smrg as_fn_set_status $1 285863f95b1Smrg exit $1 286863f95b1Smrg} # as_fn_exit 287863f95b1Smrg 288863f95b1Smrg# as_fn_mkdir_p 289863f95b1Smrg# ------------- 290863f95b1Smrg# Create "$as_dir" as a directory, including parents if necessary. 291863f95b1Smrgas_fn_mkdir_p () 292863f95b1Smrg{ 293ff7e0accSmrg 294863f95b1Smrg case $as_dir in #( 295863f95b1Smrg -*) as_dir=./$as_dir;; 296863f95b1Smrg esac 297863f95b1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 298863f95b1Smrg as_dirs= 299863f95b1Smrg while :; do 300863f95b1Smrg case $as_dir in #( 301863f95b1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302863f95b1Smrg *) as_qdir=$as_dir;; 303863f95b1Smrg esac 304863f95b1Smrg as_dirs="'$as_qdir' $as_dirs" 305863f95b1Smrg as_dir=`$as_dirname -- "$as_dir" || 306863f95b1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307863f95b1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308863f95b1Smrg X"$as_dir" : 'X\(//\)$' \| \ 309863f95b1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310863f95b1Smrg$as_echo X"$as_dir" | 311863f95b1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312863f95b1Smrg s//\1/ 313863f95b1Smrg q 314863f95b1Smrg } 315863f95b1Smrg /^X\(\/\/\)[^/].*/{ 316863f95b1Smrg s//\1/ 317863f95b1Smrg q 318863f95b1Smrg } 319863f95b1Smrg /^X\(\/\/\)$/{ 320863f95b1Smrg s//\1/ 321863f95b1Smrg q 322863f95b1Smrg } 323863f95b1Smrg /^X\(\/\).*/{ 324863f95b1Smrg s//\1/ 325863f95b1Smrg q 326863f95b1Smrg } 327863f95b1Smrg s/.*/./; q'` 328863f95b1Smrg test -d "$as_dir" && break 329863f95b1Smrg done 330863f95b1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 331863f95b1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332863f95b1Smrg 333863f95b1Smrg 334863f95b1Smrg} # as_fn_mkdir_p 335863f95b1Smrg# as_fn_append VAR VALUE 336863f95b1Smrg# ---------------------- 337863f95b1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338863f95b1Smrg# advantage of any shell optimizations that allow amortized linear growth over 339863f95b1Smrg# repeated appends, instead of the typical quadratic growth present in naive 340863f95b1Smrg# implementations. 341863f95b1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342863f95b1Smrg eval 'as_fn_append () 343863f95b1Smrg { 344863f95b1Smrg eval $1+=\$2 345863f95b1Smrg }' 346ff7e0accSmrgelse 347863f95b1Smrg as_fn_append () 348863f95b1Smrg { 349863f95b1Smrg eval $1=\$$1\$2 350863f95b1Smrg } 351863f95b1Smrgfi # as_fn_append 352863f95b1Smrg 353863f95b1Smrg# as_fn_arith ARG... 354863f95b1Smrg# ------------------ 355863f95b1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356863f95b1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357863f95b1Smrg# must be portable across $(()) and expr. 358863f95b1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359863f95b1Smrg eval 'as_fn_arith () 360863f95b1Smrg { 361863f95b1Smrg as_val=$(( $* )) 362863f95b1Smrg }' 363ff7e0accSmrgelse 364863f95b1Smrg as_fn_arith () 365863f95b1Smrg { 366863f95b1Smrg as_val=`expr "$@" || test $? -eq 1` 367863f95b1Smrg } 368863f95b1Smrgfi # as_fn_arith 369ff7e0accSmrg 370ff7e0accSmrg 371863f95b1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 372863f95b1Smrg# ---------------------------------------- 373863f95b1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374863f95b1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375863f95b1Smrg# script with STATUS, using 1 if that was 0. 376863f95b1Smrgas_fn_error () 377863f95b1Smrg{ 378863f95b1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 379863f95b1Smrg if test "$4"; then 380863f95b1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382863f95b1Smrg fi 383863f95b1Smrg $as_echo "$as_me: error: $2" >&2 384863f95b1Smrg as_fn_exit $as_status 385863f95b1Smrg} # as_fn_error 386ff7e0accSmrg 387863f95b1Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 388863f95b1Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 389863f95b1Smrg as_expr=expr 390ff7e0accSmrgelse 391863f95b1Smrg as_expr=false 392ff7e0accSmrgfi 393ff7e0accSmrg 394863f95b1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395863f95b1Smrg as_basename=basename 396ff7e0accSmrgelse 397863f95b1Smrg as_basename=false 398ff7e0accSmrgfi 399ff7e0accSmrg 400863f95b1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401863f95b1Smrg as_dirname=dirname 402ff7e0accSmrgelse 403863f95b1Smrg as_dirname=false 404ff7e0accSmrgfi 405ff7e0accSmrg 406863f95b1Smrgas_me=`$as_basename -- "$0" || 407863f95b1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408863f95b1Smrg X"$0" : 'X\(//\)$' \| \ 409863f95b1Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410863f95b1Smrg$as_echo X/"$0" | 411863f95b1Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412863f95b1Smrg s//\1/ 413863f95b1Smrg q 414863f95b1Smrg } 415863f95b1Smrg /^X\/\(\/\/\)$/{ 416863f95b1Smrg s//\1/ 417863f95b1Smrg q 418863f95b1Smrg } 419863f95b1Smrg /^X\/\(\/\).*/{ 420863f95b1Smrg s//\1/ 421863f95b1Smrg q 422863f95b1Smrg } 423863f95b1Smrg s/.*/./; q'` 424ff7e0accSmrg 425863f95b1Smrg# Avoid depending upon Character Ranges. 426863f95b1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427863f95b1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428863f95b1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429863f95b1Smrgas_cr_digits='0123456789' 430863f95b1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 431ff7e0accSmrg 432ff7e0accSmrg 433863f95b1Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434863f95b1Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435863f95b1Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436863f95b1Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437863f95b1Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438ff7e0accSmrg sed -n ' 439ff7e0accSmrg p 440ff7e0accSmrg /[$]LINENO/= 441ff7e0accSmrg ' <$as_myself | 442ff7e0accSmrg sed ' 443ff7e0accSmrg s/[$]LINENO.*/&-/ 444ff7e0accSmrg t lineno 445ff7e0accSmrg b 446ff7e0accSmrg :lineno 447ff7e0accSmrg N 448ff7e0accSmrg :loop 449ff7e0accSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450ff7e0accSmrg t loop 451ff7e0accSmrg s/-\n.*// 452ff7e0accSmrg ' >$as_me.lineno && 453ff7e0accSmrg chmod +x "$as_me.lineno" || 454863f95b1Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455ff7e0accSmrg 456ff7e0accSmrg # Don't try to exec as it changes $[0], causing all sort of problems 457ff7e0accSmrg # (the dirname of $[0] is not the place where we might find the 458ff7e0accSmrg # original and so on. Autoconf is especially sensitive to this). 459ff7e0accSmrg . "./$as_me.lineno" 460ff7e0accSmrg # Exit status is that of the last command. 461ff7e0accSmrg exit 462ff7e0accSmrg} 463ff7e0accSmrg 464ff7e0accSmrgECHO_C= ECHO_N= ECHO_T= 465863f95b1Smrgcase `echo -n x` in #((((( 466ff7e0accSmrg-n*) 467863f95b1Smrg case `echo 'xy\c'` in 468ff7e0accSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469863f95b1Smrg xy) ECHO_C='\c';; 470863f95b1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471863f95b1Smrg ECHO_T=' ';; 472ff7e0accSmrg esac;; 473ff7e0accSmrg*) 474ff7e0accSmrg ECHO_N='-n';; 475ff7e0accSmrgesac 476ff7e0accSmrg 477ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.file 478ff7e0accSmrgif test -d conf$$.dir; then 479ff7e0accSmrg rm -f conf$$.dir/conf$$.file 480ff7e0accSmrgelse 481ff7e0accSmrg rm -f conf$$.dir 482a005d216Smrg mkdir conf$$.dir 2>/dev/null 483a005d216Smrgfi 484a005d216Smrgif (echo >conf$$.file) 2>/dev/null; then 485a005d216Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486a005d216Smrg as_ln_s='ln -s' 487a005d216Smrg # ... but there are two gotchas: 488a005d216Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489a005d216Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490a005d216Smrg # In both cases, we have to default to `cp -p'. 491a005d216Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492a005d216Smrg as_ln_s='cp -p' 493a005d216Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 494a005d216Smrg as_ln_s=ln 495a005d216Smrg else 496ff7e0accSmrg as_ln_s='cp -p' 497a005d216Smrg fi 498ff7e0accSmrgelse 499ff7e0accSmrg as_ln_s='cp -p' 500ff7e0accSmrgfi 501ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502ff7e0accSmrgrmdir conf$$.dir 2>/dev/null 503ff7e0accSmrg 504ff7e0accSmrgif mkdir -p . 2>/dev/null; then 505863f95b1Smrg as_mkdir_p='mkdir -p "$as_dir"' 506ff7e0accSmrgelse 507ff7e0accSmrg test -d ./-p && rmdir ./-p 508ff7e0accSmrg as_mkdir_p=false 509ff7e0accSmrgfi 510ff7e0accSmrg 511ff7e0accSmrgif test -x / >/dev/null 2>&1; then 512ff7e0accSmrg as_test_x='test -x' 513ff7e0accSmrgelse 514ff7e0accSmrg if ls -dL / >/dev/null 2>&1; then 515ff7e0accSmrg as_ls_L_option=L 516ff7e0accSmrg else 517ff7e0accSmrg as_ls_L_option= 518ff7e0accSmrg fi 519ff7e0accSmrg as_test_x=' 520ff7e0accSmrg eval sh -c '\'' 521ff7e0accSmrg if test -d "$1"; then 522a005d216Smrg test -d "$1/."; 523ff7e0accSmrg else 524863f95b1Smrg case $1 in #( 525a005d216Smrg -*)set "./$1";; 526ff7e0accSmrg esac; 527863f95b1Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528ff7e0accSmrg ???[sx]*):;;*)false;;esac;fi 529ff7e0accSmrg '\'' sh 530ff7e0accSmrg ' 531ff7e0accSmrgfi 532ff7e0accSmrgas_executable_p=$as_test_x 533ff7e0accSmrg 534ff7e0accSmrg# Sed expression to map a string onto a valid CPP name. 535ff7e0accSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536ff7e0accSmrg 537ff7e0accSmrg# Sed expression to map a string onto a valid variable name. 538ff7e0accSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539ff7e0accSmrg 540ff7e0accSmrg 541863f95b1Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542863f95b1Smrgexec 6>&1 543ff7e0accSmrg 544ff7e0accSmrg# Name of the host. 545863f95b1Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546ff7e0accSmrg# so uname gets run too. 547ff7e0accSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548ff7e0accSmrg 549ff7e0accSmrg# 550ff7e0accSmrg# Initializations. 551ff7e0accSmrg# 552ff7e0accSmrgac_default_prefix=/usr/local 553ff7e0accSmrgac_clean_files= 554ff7e0accSmrgac_config_libobj_dir=. 555ff7e0accSmrgLIBOBJS= 556ff7e0accSmrgcross_compiling=no 557ff7e0accSmrgsubdirs= 558ff7e0accSmrgMFLAGS= 559ff7e0accSmrgMAKEFLAGS= 560ff7e0accSmrg 561ff7e0accSmrg# Identity of this package. 562ff7e0accSmrgPACKAGE_NAME='xwininfo' 563ff7e0accSmrgPACKAGE_TARNAME='xwininfo' 564a1806bd8SmrgPACKAGE_VERSION='1.1.2' 565a1806bd8SmrgPACKAGE_STRING='xwininfo 1.1.2' 566ff7e0accSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567863f95b1SmrgPACKAGE_URL='' 568ff7e0accSmrg 56910998002Smrg# Factoring default headers for most tests. 57010998002Smrgac_includes_default="\ 57110998002Smrg#include <stdio.h> 57210998002Smrg#ifdef HAVE_SYS_TYPES_H 57310998002Smrg# include <sys/types.h> 57410998002Smrg#endif 57510998002Smrg#ifdef HAVE_SYS_STAT_H 57610998002Smrg# include <sys/stat.h> 57710998002Smrg#endif 57810998002Smrg#ifdef STDC_HEADERS 57910998002Smrg# include <stdlib.h> 58010998002Smrg# include <stddef.h> 58110998002Smrg#else 58210998002Smrg# ifdef HAVE_STDLIB_H 58310998002Smrg# include <stdlib.h> 58410998002Smrg# endif 58510998002Smrg#endif 58610998002Smrg#ifdef HAVE_STRING_H 58710998002Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 58810998002Smrg# include <memory.h> 58910998002Smrg# endif 59010998002Smrg# include <string.h> 59110998002Smrg#endif 59210998002Smrg#ifdef HAVE_STRINGS_H 59310998002Smrg# include <strings.h> 59410998002Smrg#endif 59510998002Smrg#ifdef HAVE_INTTYPES_H 59610998002Smrg# include <inttypes.h> 59710998002Smrg#endif 59810998002Smrg#ifdef HAVE_STDINT_H 59910998002Smrg# include <stdint.h> 60010998002Smrg#endif 60110998002Smrg#ifdef HAVE_UNISTD_H 60210998002Smrg# include <unistd.h> 60310998002Smrg#endif" 60410998002Smrg 60510998002Smrgac_subst_vars='am__EXEEXT_FALSE 60610998002Smrgam__EXEEXT_TRUE 60710998002SmrgLTLIBOBJS 608863f95b1SmrgXLIB_LIBS 609863f95b1SmrgXLIB_CFLAGS 610ff7e0accSmrgXWININFO_LIBS 61110998002SmrgXWININFO_CFLAGS 612863f95b1SmrgLIBOBJS 613863f95b1SmrgAM_BACKSLASH 614863f95b1SmrgAM_DEFAULT_VERBOSITY 615863f95b1SmrgMAN_SUBSTS 616863f95b1SmrgXORG_MAN_PAGE 617ff7e0accSmrgADMIN_MAN_DIR 61810998002SmrgDRIVER_MAN_DIR 61910998002SmrgMISC_MAN_DIR 62010998002SmrgFILE_MAN_DIR 62110998002SmrgLIB_MAN_DIR 62210998002SmrgAPP_MAN_DIR 62310998002SmrgADMIN_MAN_SUFFIX 62410998002SmrgDRIVER_MAN_SUFFIX 62510998002SmrgMISC_MAN_SUFFIX 62610998002SmrgFILE_MAN_SUFFIX 62710998002SmrgLIB_MAN_SUFFIX 62810998002SmrgAPP_MAN_SUFFIX 629863f95b1SmrgSED 63010998002Smrghost_os 63110998002Smrghost_vendor 63210998002Smrghost_cpu 63310998002Smrghost 63410998002Smrgbuild_os 63510998002Smrgbuild_vendor 63610998002Smrgbuild_cpu 63710998002Smrgbuild 638863f95b1SmrgINSTALL_CMD 639863f95b1SmrgPKG_CONFIG 64010998002SmrgCHANGELOG_CMD 641a1806bd8SmrgSTRICT_CFLAGS 64210998002SmrgCWARNFLAGS 64310998002SmrgEGREP 64410998002SmrgGREP 64510998002SmrgCPP 64610998002Smrgam__fastdepCC_FALSE 64710998002Smrgam__fastdepCC_TRUE 64810998002SmrgCCDEPMODE 64910998002SmrgAMDEPBACKSLASH 65010998002SmrgAMDEP_FALSE 65110998002SmrgAMDEP_TRUE 65210998002Smrgam__quote 65310998002Smrgam__include 65410998002SmrgDEPDIR 65510998002SmrgOBJEXT 65610998002SmrgEXEEXT 65710998002Smrgac_ct_CC 65810998002SmrgCPPFLAGS 65910998002SmrgLDFLAGS 66010998002SmrgCFLAGS 66110998002SmrgCC 66210998002SmrgMAINT 66310998002SmrgMAINTAINER_MODE_FALSE 66410998002SmrgMAINTAINER_MODE_TRUE 66510998002Smrgam__untar 66610998002Smrgam__tar 66710998002SmrgAMTAR 66810998002Smrgam__leading_dot 66910998002SmrgSET_MAKE 67010998002SmrgAWK 67110998002Smrgmkdir_p 67210998002SmrgMKDIR_P 67310998002SmrgINSTALL_STRIP_PROGRAM 67410998002SmrgSTRIP 67510998002Smrginstall_sh 67610998002SmrgMAKEINFO 67710998002SmrgAUTOHEADER 67810998002SmrgAUTOMAKE 67910998002SmrgAUTOCONF 68010998002SmrgACLOCAL 68110998002SmrgVERSION 68210998002SmrgPACKAGE 68310998002SmrgCYGPATH_W 68410998002Smrgam__isrc 68510998002SmrgINSTALL_DATA 68610998002SmrgINSTALL_SCRIPT 68710998002SmrgINSTALL_PROGRAM 68810998002Smrgtarget_alias 68910998002Smrghost_alias 69010998002Smrgbuild_alias 69110998002SmrgLIBS 69210998002SmrgECHO_T 69310998002SmrgECHO_N 69410998002SmrgECHO_C 69510998002SmrgDEFS 69610998002Smrgmandir 69710998002Smrglocaledir 69810998002Smrglibdir 69910998002Smrgpsdir 70010998002Smrgpdfdir 70110998002Smrgdvidir 70210998002Smrghtmldir 70310998002Smrginfodir 70410998002Smrgdocdir 70510998002Smrgoldincludedir 70610998002Smrgincludedir 70710998002Smrglocalstatedir 70810998002Smrgsharedstatedir 70910998002Smrgsysconfdir 71010998002Smrgdatadir 71110998002Smrgdatarootdir 71210998002Smrglibexecdir 71310998002Smrgsbindir 71410998002Smrgbindir 71510998002Smrgprogram_transform_name 71610998002Smrgprefix 71710998002Smrgexec_prefix 718863f95b1SmrgPACKAGE_URL 71910998002SmrgPACKAGE_BUGREPORT 72010998002SmrgPACKAGE_STRING 72110998002SmrgPACKAGE_VERSION 72210998002SmrgPACKAGE_TARNAME 72310998002SmrgPACKAGE_NAME 72410998002SmrgPATH_SEPARATOR 72510998002SmrgSHELL' 726ff7e0accSmrgac_subst_files='' 727a005d216Smrgac_user_opts=' 728a005d216Smrgenable_option_checking 729a005d216Smrgenable_maintainer_mode 730a005d216Smrgenable_dependency_tracking 73110998002Smrgenable_strict_compilation 732863f95b1Smrgenable_silent_rules 733863f95b1Smrgwith_xcb_icccm 734a005d216Smrg' 735ff7e0accSmrg ac_precious_vars='build_alias 736ff7e0accSmrghost_alias 737ff7e0accSmrgtarget_alias 738ff7e0accSmrgCC 739ff7e0accSmrgCFLAGS 740ff7e0accSmrgLDFLAGS 741ff7e0accSmrgLIBS 742ff7e0accSmrgCPPFLAGS 74310998002SmrgCPP 744ff7e0accSmrgPKG_CONFIG 745ff7e0accSmrgXWININFO_CFLAGS 746863f95b1SmrgXWININFO_LIBS 747863f95b1SmrgXLIB_CFLAGS 748863f95b1SmrgXLIB_LIBS' 749ff7e0accSmrg 750ff7e0accSmrg 751ff7e0accSmrg# Initialize some variables set by options. 752ff7e0accSmrgac_init_help= 753ff7e0accSmrgac_init_version=false 754a005d216Smrgac_unrecognized_opts= 755a005d216Smrgac_unrecognized_sep= 756ff7e0accSmrg# The variables have the same names as the options, with 757ff7e0accSmrg# dashes changed to underlines. 758ff7e0accSmrgcache_file=/dev/null 759ff7e0accSmrgexec_prefix=NONE 760ff7e0accSmrgno_create= 761ff7e0accSmrgno_recursion= 762ff7e0accSmrgprefix=NONE 763ff7e0accSmrgprogram_prefix=NONE 764ff7e0accSmrgprogram_suffix=NONE 765ff7e0accSmrgprogram_transform_name=s,x,x, 766ff7e0accSmrgsilent= 767ff7e0accSmrgsite= 768ff7e0accSmrgsrcdir= 769ff7e0accSmrgverbose= 770ff7e0accSmrgx_includes=NONE 771ff7e0accSmrgx_libraries=NONE 772ff7e0accSmrg 773ff7e0accSmrg# Installation directory options. 774ff7e0accSmrg# These are left unexpanded so users can "make install exec_prefix=/foo" 775ff7e0accSmrg# and all the variables that are supposed to be based on exec_prefix 776ff7e0accSmrg# by default will actually change. 777ff7e0accSmrg# Use braces instead of parens because sh, perl, etc. also accept them. 778ff7e0accSmrg# (The list follows the same order as the GNU Coding Standards.) 779ff7e0accSmrgbindir='${exec_prefix}/bin' 780ff7e0accSmrgsbindir='${exec_prefix}/sbin' 781ff7e0accSmrglibexecdir='${exec_prefix}/libexec' 782ff7e0accSmrgdatarootdir='${prefix}/share' 783ff7e0accSmrgdatadir='${datarootdir}' 784ff7e0accSmrgsysconfdir='${prefix}/etc' 785ff7e0accSmrgsharedstatedir='${prefix}/com' 786ff7e0accSmrglocalstatedir='${prefix}/var' 787ff7e0accSmrgincludedir='${prefix}/include' 788ff7e0accSmrgoldincludedir='/usr/include' 789ff7e0accSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 790ff7e0accSmrginfodir='${datarootdir}/info' 791ff7e0accSmrghtmldir='${docdir}' 792ff7e0accSmrgdvidir='${docdir}' 793ff7e0accSmrgpdfdir='${docdir}' 794ff7e0accSmrgpsdir='${docdir}' 795ff7e0accSmrglibdir='${exec_prefix}/lib' 796ff7e0accSmrglocaledir='${datarootdir}/locale' 797ff7e0accSmrgmandir='${datarootdir}/man' 798ff7e0accSmrg 799ff7e0accSmrgac_prev= 800ff7e0accSmrgac_dashdash= 801ff7e0accSmrgfor ac_option 802ff7e0accSmrgdo 803ff7e0accSmrg # If the previous option needs an argument, assign it. 804ff7e0accSmrg if test -n "$ac_prev"; then 805ff7e0accSmrg eval $ac_prev=\$ac_option 806ff7e0accSmrg ac_prev= 807ff7e0accSmrg continue 808ff7e0accSmrg fi 809ff7e0accSmrg 810ff7e0accSmrg case $ac_option in 811863f95b1Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 812863f95b1Smrg *=) ac_optarg= ;; 813863f95b1Smrg *) ac_optarg=yes ;; 814ff7e0accSmrg esac 815ff7e0accSmrg 816ff7e0accSmrg # Accept the important Cygnus configure options, so we can diagnose typos. 817ff7e0accSmrg 818ff7e0accSmrg case $ac_dashdash$ac_option in 819ff7e0accSmrg --) 820ff7e0accSmrg ac_dashdash=yes ;; 821ff7e0accSmrg 822ff7e0accSmrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 823ff7e0accSmrg ac_prev=bindir ;; 824ff7e0accSmrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 825ff7e0accSmrg bindir=$ac_optarg ;; 826ff7e0accSmrg 827ff7e0accSmrg -build | --build | --buil | --bui | --bu) 828ff7e0accSmrg ac_prev=build_alias ;; 829ff7e0accSmrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 830ff7e0accSmrg build_alias=$ac_optarg ;; 831ff7e0accSmrg 832ff7e0accSmrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 833ff7e0accSmrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 834ff7e0accSmrg ac_prev=cache_file ;; 835ff7e0accSmrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 836ff7e0accSmrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 837ff7e0accSmrg cache_file=$ac_optarg ;; 838ff7e0accSmrg 839ff7e0accSmrg --config-cache | -C) 840ff7e0accSmrg cache_file=config.cache ;; 841ff7e0accSmrg 842ff7e0accSmrg -datadir | --datadir | --datadi | --datad) 843ff7e0accSmrg ac_prev=datadir ;; 844ff7e0accSmrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 845ff7e0accSmrg datadir=$ac_optarg ;; 846ff7e0accSmrg 847ff7e0accSmrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 848ff7e0accSmrg | --dataroo | --dataro | --datar) 849ff7e0accSmrg ac_prev=datarootdir ;; 850ff7e0accSmrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 851ff7e0accSmrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 852ff7e0accSmrg datarootdir=$ac_optarg ;; 853ff7e0accSmrg 854ff7e0accSmrg -disable-* | --disable-*) 855a005d216Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 856ff7e0accSmrg # Reject names that are not valid shell variable names. 857a005d216Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 858863f95b1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 859a005d216Smrg ac_useropt_orig=$ac_useropt 860a005d216Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 861a005d216Smrg case $ac_user_opts in 862a005d216Smrg *" 863a005d216Smrg"enable_$ac_useropt" 864a005d216Smrg"*) ;; 865a005d216Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 866a005d216Smrg ac_unrecognized_sep=', ';; 867a005d216Smrg esac 868a005d216Smrg eval enable_$ac_useropt=no ;; 869ff7e0accSmrg 870ff7e0accSmrg -docdir | --docdir | --docdi | --doc | --do) 871ff7e0accSmrg ac_prev=docdir ;; 872ff7e0accSmrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 873ff7e0accSmrg docdir=$ac_optarg ;; 874ff7e0accSmrg 875ff7e0accSmrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 876ff7e0accSmrg ac_prev=dvidir ;; 877ff7e0accSmrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 878ff7e0accSmrg dvidir=$ac_optarg ;; 879ff7e0accSmrg 880ff7e0accSmrg -enable-* | --enable-*) 881a005d216Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 882ff7e0accSmrg # Reject names that are not valid shell variable names. 883a005d216Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 884863f95b1Smrg as_fn_error $? "invalid feature name: $ac_useropt" 885a005d216Smrg ac_useropt_orig=$ac_useropt 886a005d216Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 887a005d216Smrg case $ac_user_opts in 888a005d216Smrg *" 889a005d216Smrg"enable_$ac_useropt" 890a005d216Smrg"*) ;; 891a005d216Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 892a005d216Smrg ac_unrecognized_sep=', ';; 893a005d216Smrg esac 894a005d216Smrg eval enable_$ac_useropt=\$ac_optarg ;; 895ff7e0accSmrg 896ff7e0accSmrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 897ff7e0accSmrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 898ff7e0accSmrg | --exec | --exe | --ex) 899ff7e0accSmrg ac_prev=exec_prefix ;; 900ff7e0accSmrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 901ff7e0accSmrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 902ff7e0accSmrg | --exec=* | --exe=* | --ex=*) 903ff7e0accSmrg exec_prefix=$ac_optarg ;; 904ff7e0accSmrg 905ff7e0accSmrg -gas | --gas | --ga | --g) 906ff7e0accSmrg # Obsolete; use --with-gas. 907ff7e0accSmrg with_gas=yes ;; 908ff7e0accSmrg 909ff7e0accSmrg -help | --help | --hel | --he | -h) 910ff7e0accSmrg ac_init_help=long ;; 911ff7e0accSmrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 912ff7e0accSmrg ac_init_help=recursive ;; 913ff7e0accSmrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 914ff7e0accSmrg ac_init_help=short ;; 915ff7e0accSmrg 916ff7e0accSmrg -host | --host | --hos | --ho) 917ff7e0accSmrg ac_prev=host_alias ;; 918ff7e0accSmrg -host=* | --host=* | --hos=* | --ho=*) 919ff7e0accSmrg host_alias=$ac_optarg ;; 920ff7e0accSmrg 921ff7e0accSmrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 922ff7e0accSmrg ac_prev=htmldir ;; 923ff7e0accSmrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 924ff7e0accSmrg | --ht=*) 925ff7e0accSmrg htmldir=$ac_optarg ;; 926ff7e0accSmrg 927ff7e0accSmrg -includedir | --includedir | --includedi | --included | --include \ 928ff7e0accSmrg | --includ | --inclu | --incl | --inc) 929ff7e0accSmrg ac_prev=includedir ;; 930ff7e0accSmrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 931ff7e0accSmrg | --includ=* | --inclu=* | --incl=* | --inc=*) 932ff7e0accSmrg includedir=$ac_optarg ;; 933ff7e0accSmrg 934ff7e0accSmrg -infodir | --infodir | --infodi | --infod | --info | --inf) 935ff7e0accSmrg ac_prev=infodir ;; 936ff7e0accSmrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 937ff7e0accSmrg infodir=$ac_optarg ;; 938ff7e0accSmrg 939ff7e0accSmrg -libdir | --libdir | --libdi | --libd) 940ff7e0accSmrg ac_prev=libdir ;; 941ff7e0accSmrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 942ff7e0accSmrg libdir=$ac_optarg ;; 943ff7e0accSmrg 944ff7e0accSmrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 945ff7e0accSmrg | --libexe | --libex | --libe) 946ff7e0accSmrg ac_prev=libexecdir ;; 947ff7e0accSmrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 948ff7e0accSmrg | --libexe=* | --libex=* | --libe=*) 949ff7e0accSmrg libexecdir=$ac_optarg ;; 950ff7e0accSmrg 951ff7e0accSmrg -localedir | --localedir | --localedi | --localed | --locale) 952ff7e0accSmrg ac_prev=localedir ;; 953ff7e0accSmrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 954ff7e0accSmrg localedir=$ac_optarg ;; 955ff7e0accSmrg 956ff7e0accSmrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 957ff7e0accSmrg | --localstate | --localstat | --localsta | --localst | --locals) 958ff7e0accSmrg ac_prev=localstatedir ;; 959ff7e0accSmrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 960ff7e0accSmrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 961ff7e0accSmrg localstatedir=$ac_optarg ;; 962ff7e0accSmrg 963ff7e0accSmrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 964ff7e0accSmrg ac_prev=mandir ;; 965ff7e0accSmrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 966ff7e0accSmrg mandir=$ac_optarg ;; 967ff7e0accSmrg 968ff7e0accSmrg -nfp | --nfp | --nf) 969ff7e0accSmrg # Obsolete; use --without-fp. 970ff7e0accSmrg with_fp=no ;; 971ff7e0accSmrg 972ff7e0accSmrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 973ff7e0accSmrg | --no-cr | --no-c | -n) 974ff7e0accSmrg no_create=yes ;; 975ff7e0accSmrg 976ff7e0accSmrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 977ff7e0accSmrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 978ff7e0accSmrg no_recursion=yes ;; 979ff7e0accSmrg 980ff7e0accSmrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 981ff7e0accSmrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 982ff7e0accSmrg | --oldin | --oldi | --old | --ol | --o) 983ff7e0accSmrg ac_prev=oldincludedir ;; 984ff7e0accSmrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 985ff7e0accSmrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 986ff7e0accSmrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 987ff7e0accSmrg oldincludedir=$ac_optarg ;; 988ff7e0accSmrg 989ff7e0accSmrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 990ff7e0accSmrg ac_prev=prefix ;; 991ff7e0accSmrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 992ff7e0accSmrg prefix=$ac_optarg ;; 993ff7e0accSmrg 994ff7e0accSmrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 995ff7e0accSmrg | --program-pre | --program-pr | --program-p) 996ff7e0accSmrg ac_prev=program_prefix ;; 997ff7e0accSmrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 998ff7e0accSmrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 999ff7e0accSmrg program_prefix=$ac_optarg ;; 1000ff7e0accSmrg 1001ff7e0accSmrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1002ff7e0accSmrg | --program-suf | --program-su | --program-s) 1003ff7e0accSmrg ac_prev=program_suffix ;; 1004ff7e0accSmrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1005ff7e0accSmrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1006ff7e0accSmrg program_suffix=$ac_optarg ;; 1007ff7e0accSmrg 1008ff7e0accSmrg -program-transform-name | --program-transform-name \ 1009ff7e0accSmrg | --program-transform-nam | --program-transform-na \ 1010ff7e0accSmrg | --program-transform-n | --program-transform- \ 1011ff7e0accSmrg | --program-transform | --program-transfor \ 1012ff7e0accSmrg | --program-transfo | --program-transf \ 1013ff7e0accSmrg | --program-trans | --program-tran \ 1014ff7e0accSmrg | --progr-tra | --program-tr | --program-t) 1015ff7e0accSmrg ac_prev=program_transform_name ;; 1016ff7e0accSmrg -program-transform-name=* | --program-transform-name=* \ 1017ff7e0accSmrg | --program-transform-nam=* | --program-transform-na=* \ 1018ff7e0accSmrg | --program-transform-n=* | --program-transform-=* \ 1019ff7e0accSmrg | --program-transform=* | --program-transfor=* \ 1020ff7e0accSmrg | --program-transfo=* | --program-transf=* \ 1021ff7e0accSmrg | --program-trans=* | --program-tran=* \ 1022ff7e0accSmrg | --progr-tra=* | --program-tr=* | --program-t=*) 1023ff7e0accSmrg program_transform_name=$ac_optarg ;; 1024ff7e0accSmrg 1025ff7e0accSmrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1026ff7e0accSmrg ac_prev=pdfdir ;; 1027ff7e0accSmrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1028ff7e0accSmrg pdfdir=$ac_optarg ;; 1029ff7e0accSmrg 1030ff7e0accSmrg -psdir | --psdir | --psdi | --psd | --ps) 1031ff7e0accSmrg ac_prev=psdir ;; 1032ff7e0accSmrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1033ff7e0accSmrg psdir=$ac_optarg ;; 1034ff7e0accSmrg 1035ff7e0accSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1036ff7e0accSmrg | -silent | --silent | --silen | --sile | --sil) 1037ff7e0accSmrg silent=yes ;; 1038ff7e0accSmrg 1039ff7e0accSmrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1040ff7e0accSmrg ac_prev=sbindir ;; 1041ff7e0accSmrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1042ff7e0accSmrg | --sbi=* | --sb=*) 1043ff7e0accSmrg sbindir=$ac_optarg ;; 1044ff7e0accSmrg 1045ff7e0accSmrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1046ff7e0accSmrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1047ff7e0accSmrg | --sharedst | --shareds | --shared | --share | --shar \ 1048ff7e0accSmrg | --sha | --sh) 1049ff7e0accSmrg ac_prev=sharedstatedir ;; 1050ff7e0accSmrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1051ff7e0accSmrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1052ff7e0accSmrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1053ff7e0accSmrg | --sha=* | --sh=*) 1054ff7e0accSmrg sharedstatedir=$ac_optarg ;; 1055ff7e0accSmrg 1056ff7e0accSmrg -site | --site | --sit) 1057ff7e0accSmrg ac_prev=site ;; 1058ff7e0accSmrg -site=* | --site=* | --sit=*) 1059ff7e0accSmrg site=$ac_optarg ;; 1060ff7e0accSmrg 1061ff7e0accSmrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1062ff7e0accSmrg ac_prev=srcdir ;; 1063ff7e0accSmrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1064ff7e0accSmrg srcdir=$ac_optarg ;; 1065ff7e0accSmrg 1066ff7e0accSmrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1067ff7e0accSmrg | --syscon | --sysco | --sysc | --sys | --sy) 1068ff7e0accSmrg ac_prev=sysconfdir ;; 1069ff7e0accSmrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1070ff7e0accSmrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1071ff7e0accSmrg sysconfdir=$ac_optarg ;; 1072ff7e0accSmrg 1073ff7e0accSmrg -target | --target | --targe | --targ | --tar | --ta | --t) 1074ff7e0accSmrg ac_prev=target_alias ;; 1075ff7e0accSmrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1076ff7e0accSmrg target_alias=$ac_optarg ;; 1077ff7e0accSmrg 1078ff7e0accSmrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1079ff7e0accSmrg verbose=yes ;; 1080ff7e0accSmrg 1081ff7e0accSmrg -version | --version | --versio | --versi | --vers | -V) 1082ff7e0accSmrg ac_init_version=: ;; 1083ff7e0accSmrg 1084ff7e0accSmrg -with-* | --with-*) 1085a005d216Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1086ff7e0accSmrg # Reject names that are not valid shell variable names. 1087a005d216Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1088863f95b1Smrg as_fn_error $? "invalid package name: $ac_useropt" 1089a005d216Smrg ac_useropt_orig=$ac_useropt 1090a005d216Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1091a005d216Smrg case $ac_user_opts in 1092a005d216Smrg *" 1093a005d216Smrg"with_$ac_useropt" 1094a005d216Smrg"*) ;; 1095a005d216Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1096a005d216Smrg ac_unrecognized_sep=', ';; 1097a005d216Smrg esac 1098a005d216Smrg eval with_$ac_useropt=\$ac_optarg ;; 1099ff7e0accSmrg 1100ff7e0accSmrg -without-* | --without-*) 1101a005d216Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1102ff7e0accSmrg # Reject names that are not valid shell variable names. 1103a005d216Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1104863f95b1Smrg as_fn_error $? "invalid package name: $ac_useropt" 1105a005d216Smrg ac_useropt_orig=$ac_useropt 1106a005d216Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1107a005d216Smrg case $ac_user_opts in 1108a005d216Smrg *" 1109a005d216Smrg"with_$ac_useropt" 1110a005d216Smrg"*) ;; 1111a005d216Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1112a005d216Smrg ac_unrecognized_sep=', ';; 1113a005d216Smrg esac 1114a005d216Smrg eval with_$ac_useropt=no ;; 1115ff7e0accSmrg 1116ff7e0accSmrg --x) 1117ff7e0accSmrg # Obsolete; use --with-x. 1118ff7e0accSmrg with_x=yes ;; 1119ff7e0accSmrg 1120ff7e0accSmrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1121ff7e0accSmrg | --x-incl | --x-inc | --x-in | --x-i) 1122ff7e0accSmrg ac_prev=x_includes ;; 1123ff7e0accSmrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1124ff7e0accSmrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1125ff7e0accSmrg x_includes=$ac_optarg ;; 1126ff7e0accSmrg 1127ff7e0accSmrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1128ff7e0accSmrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1129ff7e0accSmrg ac_prev=x_libraries ;; 1130ff7e0accSmrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1131ff7e0accSmrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1132ff7e0accSmrg x_libraries=$ac_optarg ;; 1133ff7e0accSmrg 1134863f95b1Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1135863f95b1SmrgTry \`$0 --help' for more information" 1136ff7e0accSmrg ;; 1137ff7e0accSmrg 1138ff7e0accSmrg *=*) 1139ff7e0accSmrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1140ff7e0accSmrg # Reject names that are not valid shell variable names. 1141863f95b1Smrg case $ac_envvar in #( 1142863f95b1Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1143863f95b1Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1144863f95b1Smrg esac 1145ff7e0accSmrg eval $ac_envvar=\$ac_optarg 1146ff7e0accSmrg export $ac_envvar ;; 1147ff7e0accSmrg 1148ff7e0accSmrg *) 1149ff7e0accSmrg # FIXME: should be removed in autoconf 3.0. 1150a005d216Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1151ff7e0accSmrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1152a005d216Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1153863f95b1Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1154ff7e0accSmrg ;; 1155ff7e0accSmrg 1156ff7e0accSmrg esac 1157ff7e0accSmrgdone 1158ff7e0accSmrg 1159ff7e0accSmrgif test -n "$ac_prev"; then 1160ff7e0accSmrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1161863f95b1Smrg as_fn_error $? "missing argument to $ac_option" 1162ff7e0accSmrgfi 1163ff7e0accSmrg 1164a005d216Smrgif test -n "$ac_unrecognized_opts"; then 1165a005d216Smrg case $enable_option_checking in 1166a005d216Smrg no) ;; 1167863f95b1Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 116810998002Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1169a005d216Smrg esac 1170a005d216Smrgfi 1171a005d216Smrg 1172a005d216Smrg# Check all directory arguments for consistency. 1173ff7e0accSmrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1174ff7e0accSmrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1175ff7e0accSmrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1176ff7e0accSmrg libdir localedir mandir 1177ff7e0accSmrgdo 1178ff7e0accSmrg eval ac_val=\$$ac_var 1179a005d216Smrg # Remove trailing slashes. 1180a005d216Smrg case $ac_val in 1181a005d216Smrg */ ) 1182a005d216Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1183a005d216Smrg eval $ac_var=\$ac_val;; 1184a005d216Smrg esac 1185a005d216Smrg # Be sure to have absolute directory names. 1186ff7e0accSmrg case $ac_val in 1187ff7e0accSmrg [\\/$]* | ?:[\\/]* ) continue;; 1188ff7e0accSmrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1189ff7e0accSmrg esac 1190863f95b1Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1191ff7e0accSmrgdone 1192ff7e0accSmrg 1193ff7e0accSmrg# There might be people who depend on the old broken behavior: `$host' 1194ff7e0accSmrg# used to hold the argument of --host etc. 1195ff7e0accSmrg# FIXME: To remove some day. 1196ff7e0accSmrgbuild=$build_alias 1197ff7e0accSmrghost=$host_alias 1198ff7e0accSmrgtarget=$target_alias 1199ff7e0accSmrg 1200ff7e0accSmrg# FIXME: To remove some day. 1201ff7e0accSmrgif test "x$host_alias" != x; then 1202ff7e0accSmrg if test "x$build_alias" = x; then 1203ff7e0accSmrg cross_compiling=maybe 1204863f95b1Smrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1205863f95b1Smrg If a cross compiler is detected then cross compile mode will be used" >&2 1206ff7e0accSmrg elif test "x$build_alias" != "x$host_alias"; then 1207ff7e0accSmrg cross_compiling=yes 1208ff7e0accSmrg fi 1209ff7e0accSmrgfi 1210ff7e0accSmrg 1211ff7e0accSmrgac_tool_prefix= 1212ff7e0accSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1213ff7e0accSmrg 1214ff7e0accSmrgtest "$silent" = yes && exec 6>/dev/null 1215ff7e0accSmrg 1216ff7e0accSmrg 1217ff7e0accSmrgac_pwd=`pwd` && test -n "$ac_pwd" && 1218ff7e0accSmrgac_ls_di=`ls -di .` && 1219ff7e0accSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1220863f95b1Smrg as_fn_error $? "working directory cannot be determined" 1221ff7e0accSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1222863f95b1Smrg as_fn_error $? "pwd does not report name of working directory" 1223ff7e0accSmrg 1224ff7e0accSmrg 1225ff7e0accSmrg# Find the source files, if location was not specified. 1226ff7e0accSmrgif test -z "$srcdir"; then 1227ff7e0accSmrg ac_srcdir_defaulted=yes 1228ff7e0accSmrg # Try the directory containing this script, then the parent directory. 1229a005d216Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1230a005d216Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1231a005d216Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1232a005d216Smrg X"$as_myself" : 'X\(//\)$' \| \ 1233a005d216Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1234a005d216Smrg$as_echo X"$as_myself" | 1235ff7e0accSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1236ff7e0accSmrg s//\1/ 1237ff7e0accSmrg q 1238ff7e0accSmrg } 1239ff7e0accSmrg /^X\(\/\/\)[^/].*/{ 1240ff7e0accSmrg s//\1/ 1241ff7e0accSmrg q 1242ff7e0accSmrg } 1243ff7e0accSmrg /^X\(\/\/\)$/{ 1244ff7e0accSmrg s//\1/ 1245ff7e0accSmrg q 1246ff7e0accSmrg } 1247ff7e0accSmrg /^X\(\/\).*/{ 1248ff7e0accSmrg s//\1/ 1249ff7e0accSmrg q 1250ff7e0accSmrg } 1251ff7e0accSmrg s/.*/./; q'` 1252ff7e0accSmrg srcdir=$ac_confdir 1253ff7e0accSmrg if test ! -r "$srcdir/$ac_unique_file"; then 1254ff7e0accSmrg srcdir=.. 1255ff7e0accSmrg fi 1256ff7e0accSmrgelse 1257ff7e0accSmrg ac_srcdir_defaulted=no 1258ff7e0accSmrgfi 1259ff7e0accSmrgif test ! -r "$srcdir/$ac_unique_file"; then 1260ff7e0accSmrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1261863f95b1Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1262ff7e0accSmrgfi 1263ff7e0accSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1264ff7e0accSmrgac_abs_confdir=`( 1265863f95b1Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1266ff7e0accSmrg pwd)` 1267ff7e0accSmrg# When building in place, set srcdir=. 1268ff7e0accSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1269ff7e0accSmrg srcdir=. 1270ff7e0accSmrgfi 1271ff7e0accSmrg# Remove unnecessary trailing slashes from srcdir. 1272ff7e0accSmrg# Double slashes in file names in object file debugging info 1273ff7e0accSmrg# mess up M-x gdb in Emacs. 1274ff7e0accSmrgcase $srcdir in 1275ff7e0accSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1276ff7e0accSmrgesac 1277ff7e0accSmrgfor ac_var in $ac_precious_vars; do 1278ff7e0accSmrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1279ff7e0accSmrg eval ac_env_${ac_var}_value=\$${ac_var} 1280ff7e0accSmrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1281ff7e0accSmrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1282ff7e0accSmrgdone 1283ff7e0accSmrg 1284ff7e0accSmrg# 1285ff7e0accSmrg# Report the --help message. 1286ff7e0accSmrg# 1287ff7e0accSmrgif test "$ac_init_help" = "long"; then 1288ff7e0accSmrg # Omit some internal or obsolete options to make the list less imposing. 1289ff7e0accSmrg # This message is too long to be a string in the A/UX 3.1 sh. 1290ff7e0accSmrg cat <<_ACEOF 1291a1806bd8Smrg\`configure' configures xwininfo 1.1.2 to adapt to many kinds of systems. 1292ff7e0accSmrg 1293ff7e0accSmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1294ff7e0accSmrg 1295ff7e0accSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1296ff7e0accSmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1297ff7e0accSmrg 1298ff7e0accSmrgDefaults for the options are specified in brackets. 1299ff7e0accSmrg 1300ff7e0accSmrgConfiguration: 1301ff7e0accSmrg -h, --help display this help and exit 1302ff7e0accSmrg --help=short display options specific to this package 1303ff7e0accSmrg --help=recursive display the short help of all the included packages 1304ff7e0accSmrg -V, --version display version information and exit 1305863f95b1Smrg -q, --quiet, --silent do not print \`checking ...' messages 1306ff7e0accSmrg --cache-file=FILE cache test results in FILE [disabled] 1307ff7e0accSmrg -C, --config-cache alias for \`--cache-file=config.cache' 1308ff7e0accSmrg -n, --no-create do not create output files 1309ff7e0accSmrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1310ff7e0accSmrg 1311ff7e0accSmrgInstallation directories: 1312ff7e0accSmrg --prefix=PREFIX install architecture-independent files in PREFIX 1313a005d216Smrg [$ac_default_prefix] 1314ff7e0accSmrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1315a005d216Smrg [PREFIX] 1316ff7e0accSmrg 1317ff7e0accSmrgBy default, \`make install' will install all the files in 1318ff7e0accSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1319ff7e0accSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1320ff7e0accSmrgfor instance \`--prefix=\$HOME'. 1321ff7e0accSmrg 1322ff7e0accSmrgFor better control, use the options below. 1323ff7e0accSmrg 1324ff7e0accSmrgFine tuning of the installation directories: 1325a005d216Smrg --bindir=DIR user executables [EPREFIX/bin] 1326a005d216Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1327a005d216Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1328a005d216Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1329a005d216Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1330a005d216Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1331a005d216Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1332a005d216Smrg --includedir=DIR C header files [PREFIX/include] 1333a005d216Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1334a005d216Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1335a005d216Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1336a005d216Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1337a005d216Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1338a005d216Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1339a005d216Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/xwininfo] 1340a005d216Smrg --htmldir=DIR html documentation [DOCDIR] 1341a005d216Smrg --dvidir=DIR dvi documentation [DOCDIR] 1342a005d216Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1343a005d216Smrg --psdir=DIR ps documentation [DOCDIR] 1344ff7e0accSmrg_ACEOF 1345ff7e0accSmrg 1346ff7e0accSmrg cat <<\_ACEOF 1347ff7e0accSmrg 1348ff7e0accSmrgProgram names: 1349ff7e0accSmrg --program-prefix=PREFIX prepend PREFIX to installed program names 1350ff7e0accSmrg --program-suffix=SUFFIX append SUFFIX to installed program names 1351ff7e0accSmrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1352ff7e0accSmrg 1353ff7e0accSmrgSystem types: 1354ff7e0accSmrg --build=BUILD configure for building on BUILD [guessed] 1355ff7e0accSmrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1356ff7e0accSmrg_ACEOF 1357ff7e0accSmrgfi 1358ff7e0accSmrg 1359ff7e0accSmrgif test -n "$ac_init_help"; then 1360ff7e0accSmrg case $ac_init_help in 1361a1806bd8Smrg short | recursive ) echo "Configuration of xwininfo 1.1.2:";; 1362ff7e0accSmrg esac 1363ff7e0accSmrg cat <<\_ACEOF 1364ff7e0accSmrg 1365ff7e0accSmrgOptional Features: 1366a005d216Smrg --disable-option-checking ignore unrecognized --enable/--with options 1367ff7e0accSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1368ff7e0accSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1369ff7e0accSmrg --enable-maintainer-mode enable make rules and dependencies not useful 1370ff7e0accSmrg (and sometimes confusing) to the casual installer 1371ff7e0accSmrg --disable-dependency-tracking speeds up one-time build 1372ff7e0accSmrg --enable-dependency-tracking do not reject slow dependency extractors 137310998002Smrg --enable-strict-compilation 137410998002Smrg Enable all warnings from compiler and make them 137510998002Smrg errors (default: disabled) 1376863f95b1Smrg --enable-silent-rules less verbose build output (undo: `make V=1') 1377863f95b1Smrg --disable-silent-rules verbose build output (undo: `make V=0') 1378ff7e0accSmrg 1379ff7e0accSmrgOptional Packages: 1380ff7e0accSmrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1381ff7e0accSmrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1382863f95b1Smrg --with-xcb-icccm use xcb-icccm (default: no) 1383ff7e0accSmrg 1384ff7e0accSmrgSome influential environment variables: 1385ff7e0accSmrg CC C compiler command 1386ff7e0accSmrg CFLAGS C compiler flags 1387ff7e0accSmrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1388ff7e0accSmrg nonstandard directory <lib dir> 1389ff7e0accSmrg LIBS libraries to pass to the linker, e.g. -l<library> 1390863f95b1Smrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1391ff7e0accSmrg you have headers in a nonstandard directory <include dir> 139210998002Smrg CPP C preprocessor 1393ff7e0accSmrg PKG_CONFIG path to pkg-config utility 1394ff7e0accSmrg XWININFO_CFLAGS 1395ff7e0accSmrg C compiler flags for XWININFO, overriding pkg-config 1396ff7e0accSmrg XWININFO_LIBS 1397ff7e0accSmrg linker flags for XWININFO, overriding pkg-config 1398863f95b1Smrg XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config 1399863f95b1Smrg XLIB_LIBS linker flags for XLIB, overriding pkg-config 1400863f95b1Smrg 1401863f95b1SmrgUse these variables to override the choices made by `configure' or to help 1402863f95b1Smrgit to find libraries and programs with nonstandard names/locations. 1403863f95b1Smrg 1404863f95b1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1405863f95b1Smrg_ACEOF 1406863f95b1Smrgac_status=$? 1407863f95b1Smrgfi 1408863f95b1Smrg 1409863f95b1Smrgif test "$ac_init_help" = "recursive"; then 1410863f95b1Smrg # If there are subdirs, report their specific --help. 1411863f95b1Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1412863f95b1Smrg test -d "$ac_dir" || 1413863f95b1Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1414863f95b1Smrg continue 1415863f95b1Smrg ac_builddir=. 1416863f95b1Smrg 1417863f95b1Smrgcase "$ac_dir" in 1418863f95b1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1419863f95b1Smrg*) 1420863f95b1Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1421863f95b1Smrg # A ".." for each directory in $ac_dir_suffix. 1422863f95b1Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1423863f95b1Smrg case $ac_top_builddir_sub in 1424863f95b1Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1425863f95b1Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1426863f95b1Smrg esac ;; 1427863f95b1Smrgesac 1428863f95b1Smrgac_abs_top_builddir=$ac_pwd 1429863f95b1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1430863f95b1Smrg# for backward compatibility: 1431863f95b1Smrgac_top_builddir=$ac_top_build_prefix 1432863f95b1Smrg 1433863f95b1Smrgcase $srcdir in 1434863f95b1Smrg .) # We are building in place. 1435863f95b1Smrg ac_srcdir=. 1436863f95b1Smrg ac_top_srcdir=$ac_top_builddir_sub 1437863f95b1Smrg ac_abs_top_srcdir=$ac_pwd ;; 1438863f95b1Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1439863f95b1Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1440863f95b1Smrg ac_top_srcdir=$srcdir 1441863f95b1Smrg ac_abs_top_srcdir=$srcdir ;; 1442863f95b1Smrg *) # Relative name. 1443863f95b1Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1444863f95b1Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1445863f95b1Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1446863f95b1Smrgesac 1447863f95b1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1448863f95b1Smrg 1449863f95b1Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1450863f95b1Smrg # Check for guested configure. 1451863f95b1Smrg if test -f "$ac_srcdir/configure.gnu"; then 1452863f95b1Smrg echo && 1453863f95b1Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1454863f95b1Smrg elif test -f "$ac_srcdir/configure"; then 1455863f95b1Smrg echo && 1456863f95b1Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1457863f95b1Smrg else 1458863f95b1Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1459863f95b1Smrg fi || ac_status=$? 1460863f95b1Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1461863f95b1Smrg done 1462863f95b1Smrgfi 1463863f95b1Smrg 1464863f95b1Smrgtest -n "$ac_init_help" && exit $ac_status 1465863f95b1Smrgif $ac_init_version; then 1466863f95b1Smrg cat <<\_ACEOF 1467a1806bd8Smrgxwininfo configure 1.1.2 1468863f95b1Smrggenerated by GNU Autoconf 2.68 1469863f95b1Smrg 1470863f95b1SmrgCopyright (C) 2010 Free Software Foundation, Inc. 1471863f95b1SmrgThis configure script is free software; the Free Software Foundation 1472863f95b1Smrggives unlimited permission to copy, distribute and modify it. 1473863f95b1Smrg_ACEOF 1474863f95b1Smrg exit 1475863f95b1Smrgfi 1476863f95b1Smrg 1477863f95b1Smrg## ------------------------ ## 1478863f95b1Smrg## Autoconf initialization. ## 1479863f95b1Smrg## ------------------------ ## 1480863f95b1Smrg 1481863f95b1Smrg# ac_fn_c_try_compile LINENO 1482863f95b1Smrg# -------------------------- 1483863f95b1Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1484863f95b1Smrgac_fn_c_try_compile () 1485863f95b1Smrg{ 1486863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1487863f95b1Smrg rm -f conftest.$ac_objext 1488863f95b1Smrg if { { ac_try="$ac_compile" 1489863f95b1Smrgcase "(($ac_try" in 1490863f95b1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1491863f95b1Smrg *) ac_try_echo=$ac_try;; 1492863f95b1Smrgesac 1493863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1494863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 1495863f95b1Smrg (eval "$ac_compile") 2>conftest.err 1496863f95b1Smrg ac_status=$? 1497863f95b1Smrg if test -s conftest.err; then 1498863f95b1Smrg grep -v '^ *+' conftest.err >conftest.er1 1499863f95b1Smrg cat conftest.er1 >&5 1500863f95b1Smrg mv -f conftest.er1 conftest.err 1501863f95b1Smrg fi 1502863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1503863f95b1Smrg test $ac_status = 0; } && { 1504863f95b1Smrg test -z "$ac_c_werror_flag" || 1505863f95b1Smrg test ! -s conftest.err 1506863f95b1Smrg } && test -s conftest.$ac_objext; then : 1507863f95b1Smrg ac_retval=0 1508863f95b1Smrgelse 1509863f95b1Smrg $as_echo "$as_me: failed program was:" >&5 1510863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5 1511863f95b1Smrg 1512863f95b1Smrg ac_retval=1 1513863f95b1Smrgfi 1514863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1515863f95b1Smrg as_fn_set_status $ac_retval 1516863f95b1Smrg 1517863f95b1Smrg} # ac_fn_c_try_compile 1518863f95b1Smrg 1519863f95b1Smrg# ac_fn_c_try_cpp LINENO 1520863f95b1Smrg# ---------------------- 1521863f95b1Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1522863f95b1Smrgac_fn_c_try_cpp () 1523863f95b1Smrg{ 1524863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1525863f95b1Smrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1526863f95b1Smrgcase "(($ac_try" in 1527863f95b1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1528863f95b1Smrg *) ac_try_echo=$ac_try;; 1529863f95b1Smrgesac 1530863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1531863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 1532863f95b1Smrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1533863f95b1Smrg ac_status=$? 1534863f95b1Smrg if test -s conftest.err; then 1535863f95b1Smrg grep -v '^ *+' conftest.err >conftest.er1 1536863f95b1Smrg cat conftest.er1 >&5 1537863f95b1Smrg mv -f conftest.er1 conftest.err 1538863f95b1Smrg fi 1539863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540863f95b1Smrg test $ac_status = 0; } > conftest.i && { 1541863f95b1Smrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1542863f95b1Smrg test ! -s conftest.err 1543863f95b1Smrg }; then : 1544863f95b1Smrg ac_retval=0 1545863f95b1Smrgelse 1546863f95b1Smrg $as_echo "$as_me: failed program was:" >&5 1547863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5 1548863f95b1Smrg 1549863f95b1Smrg ac_retval=1 1550863f95b1Smrgfi 1551863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552863f95b1Smrg as_fn_set_status $ac_retval 1553863f95b1Smrg 1554863f95b1Smrg} # ac_fn_c_try_cpp 1555863f95b1Smrg 1556863f95b1Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1557863f95b1Smrg# ------------------------------------------------------- 1558863f95b1Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1559863f95b1Smrg# the include files in INCLUDES and setting the cache variable VAR 1560863f95b1Smrg# accordingly. 1561863f95b1Smrgac_fn_c_check_header_mongrel () 1562863f95b1Smrg{ 1563863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1564863f95b1Smrg if eval \${$3+:} false; then : 1565863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1566863f95b1Smrg$as_echo_n "checking for $2... " >&6; } 1567863f95b1Smrgif eval \${$3+:} false; then : 1568863f95b1Smrg $as_echo_n "(cached) " >&6 1569863f95b1Smrgfi 1570863f95b1Smrgeval ac_res=\$$3 1571863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1572863f95b1Smrg$as_echo "$ac_res" >&6; } 1573863f95b1Smrgelse 1574863f95b1Smrg # Is the header compilable? 1575863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1576863f95b1Smrg$as_echo_n "checking $2 usability... " >&6; } 1577863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1578863f95b1Smrg/* end confdefs.h. */ 1579863f95b1Smrg$4 1580863f95b1Smrg#include <$2> 1581863f95b1Smrg_ACEOF 1582863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 1583863f95b1Smrg ac_header_compiler=yes 1584863f95b1Smrgelse 1585863f95b1Smrg ac_header_compiler=no 1586863f95b1Smrgfi 1587863f95b1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1588863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1589863f95b1Smrg$as_echo "$ac_header_compiler" >&6; } 1590863f95b1Smrg 1591863f95b1Smrg# Is the header present? 1592863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1593863f95b1Smrg$as_echo_n "checking $2 presence... " >&6; } 1594863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 1595863f95b1Smrg/* end confdefs.h. */ 1596863f95b1Smrg#include <$2> 1597863f95b1Smrg_ACEOF 1598863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then : 1599863f95b1Smrg ac_header_preproc=yes 1600863f95b1Smrgelse 1601863f95b1Smrg ac_header_preproc=no 1602863f95b1Smrgfi 1603863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext 1604863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1605863f95b1Smrg$as_echo "$ac_header_preproc" >&6; } 1606863f95b1Smrg 1607863f95b1Smrg# So? What about this header? 1608863f95b1Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1609863f95b1Smrg yes:no: ) 1610863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1611863f95b1Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1612863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1613863f95b1Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1614863f95b1Smrg ;; 1615863f95b1Smrg no:yes:* ) 1616863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1617863f95b1Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1618863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1619863f95b1Smrg$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1620863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1621863f95b1Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1622863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1623863f95b1Smrg$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1624863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1625863f95b1Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1626863f95b1Smrg( $as_echo "## ---------------------------------------------------------------------- ## 1627863f95b1Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1628863f95b1Smrg## ---------------------------------------------------------------------- ##" 1629863f95b1Smrg ) | sed "s/^/$as_me: WARNING: /" >&2 1630863f95b1Smrg ;; 1631863f95b1Smrgesac 1632863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633863f95b1Smrg$as_echo_n "checking for $2... " >&6; } 1634863f95b1Smrgif eval \${$3+:} false; then : 1635863f95b1Smrg $as_echo_n "(cached) " >&6 1636863f95b1Smrgelse 1637863f95b1Smrg eval "$3=\$ac_header_compiler" 1638863f95b1Smrgfi 1639863f95b1Smrgeval ac_res=\$$3 1640863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1641863f95b1Smrg$as_echo "$ac_res" >&6; } 1642863f95b1Smrgfi 1643863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644863f95b1Smrg 1645863f95b1Smrg} # ac_fn_c_check_header_mongrel 1646863f95b1Smrg 1647863f95b1Smrg# ac_fn_c_try_run LINENO 1648863f95b1Smrg# ---------------------- 1649863f95b1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1650863f95b1Smrg# that executables *can* be run. 1651863f95b1Smrgac_fn_c_try_run () 1652863f95b1Smrg{ 1653863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654863f95b1Smrg if { { ac_try="$ac_link" 1655863f95b1Smrgcase "(($ac_try" in 1656863f95b1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657863f95b1Smrg *) ac_try_echo=$ac_try;; 1658863f95b1Smrgesac 1659863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 1661863f95b1Smrg (eval "$ac_link") 2>&5 1662863f95b1Smrg ac_status=$? 1663863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664863f95b1Smrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1665863f95b1Smrg { { case "(($ac_try" in 1666863f95b1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667863f95b1Smrg *) ac_try_echo=$ac_try;; 1668863f95b1Smrgesac 1669863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 1671863f95b1Smrg (eval "$ac_try") 2>&5 1672863f95b1Smrg ac_status=$? 1673863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674863f95b1Smrg test $ac_status = 0; }; }; then : 1675863f95b1Smrg ac_retval=0 1676863f95b1Smrgelse 1677863f95b1Smrg $as_echo "$as_me: program exited with status $ac_status" >&5 1678863f95b1Smrg $as_echo "$as_me: failed program was:" >&5 1679863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5 1680863f95b1Smrg 1681863f95b1Smrg ac_retval=$ac_status 1682863f95b1Smrgfi 1683863f95b1Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1684863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685863f95b1Smrg as_fn_set_status $ac_retval 1686863f95b1Smrg 1687863f95b1Smrg} # ac_fn_c_try_run 1688863f95b1Smrg 1689863f95b1Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1690863f95b1Smrg# ------------------------------------------------------- 1691863f95b1Smrg# Tests whether HEADER exists and can be compiled using the include files in 1692863f95b1Smrg# INCLUDES, setting the cache variable VAR accordingly. 1693863f95b1Smrgac_fn_c_check_header_compile () 1694863f95b1Smrg{ 1695863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1697863f95b1Smrg$as_echo_n "checking for $2... " >&6; } 1698863f95b1Smrgif eval \${$3+:} false; then : 1699863f95b1Smrg $as_echo_n "(cached) " >&6 1700863f95b1Smrgelse 1701863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702863f95b1Smrg/* end confdefs.h. */ 1703863f95b1Smrg$4 1704863f95b1Smrg#include <$2> 1705863f95b1Smrg_ACEOF 1706863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 1707863f95b1Smrg eval "$3=yes" 1708863f95b1Smrgelse 1709863f95b1Smrg eval "$3=no" 1710863f95b1Smrgfi 1711863f95b1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1712863f95b1Smrgfi 1713863f95b1Smrgeval ac_res=\$$3 1714863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715863f95b1Smrg$as_echo "$ac_res" >&6; } 1716863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717ff7e0accSmrg 1718863f95b1Smrg} # ac_fn_c_check_header_compile 1719ff7e0accSmrg 1720863f95b1Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1721863f95b1Smrg# --------------------------------------------- 1722863f95b1Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1723863f95b1Smrg# accordingly. 1724863f95b1Smrgac_fn_c_check_decl () 1725863f95b1Smrg{ 1726863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727863f95b1Smrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1728863f95b1Smrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1729863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1730863f95b1Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1731863f95b1Smrgif eval \${$3+:} false; then : 1732863f95b1Smrg $as_echo_n "(cached) " >&6 1733863f95b1Smrgelse 1734863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735863f95b1Smrg/* end confdefs.h. */ 1736863f95b1Smrg$4 1737863f95b1Smrgint 1738863f95b1Smrgmain () 1739863f95b1Smrg{ 1740863f95b1Smrg#ifndef $as_decl_name 1741863f95b1Smrg#ifdef __cplusplus 1742863f95b1Smrg (void) $as_decl_use; 1743863f95b1Smrg#else 1744863f95b1Smrg (void) $as_decl_name; 1745863f95b1Smrg#endif 1746863f95b1Smrg#endif 1747863f95b1Smrg 1748863f95b1Smrg ; 1749863f95b1Smrg return 0; 1750863f95b1Smrg} 1751ff7e0accSmrg_ACEOF 1752863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 1753863f95b1Smrg eval "$3=yes" 1754863f95b1Smrgelse 1755863f95b1Smrg eval "$3=no" 1756ff7e0accSmrgfi 1757863f95b1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1758863f95b1Smrgfi 1759863f95b1Smrgeval ac_res=\$$3 1760863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1761863f95b1Smrg$as_echo "$ac_res" >&6; } 1762863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763ff7e0accSmrg 1764863f95b1Smrg} # ac_fn_c_check_decl 1765ff7e0accSmrg 1766863f95b1Smrg# ac_fn_c_try_link LINENO 1767863f95b1Smrg# ----------------------- 1768863f95b1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1769863f95b1Smrgac_fn_c_try_link () 1770863f95b1Smrg{ 1771863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772863f95b1Smrg rm -f conftest.$ac_objext conftest$ac_exeext 1773863f95b1Smrg if { { ac_try="$ac_link" 1774863f95b1Smrgcase "(($ac_try" in 1775863f95b1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776863f95b1Smrg *) ac_try_echo=$ac_try;; 1777ff7e0accSmrgesac 1778863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 1780863f95b1Smrg (eval "$ac_link") 2>conftest.err 1781863f95b1Smrg ac_status=$? 1782863f95b1Smrg if test -s conftest.err; then 1783863f95b1Smrg grep -v '^ *+' conftest.err >conftest.er1 1784863f95b1Smrg cat conftest.er1 >&5 1785863f95b1Smrg mv -f conftest.er1 conftest.err 1786863f95b1Smrg fi 1787863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788863f95b1Smrg test $ac_status = 0; } && { 1789863f95b1Smrg test -z "$ac_c_werror_flag" || 1790863f95b1Smrg test ! -s conftest.err 1791863f95b1Smrg } && test -s conftest$ac_exeext && { 1792863f95b1Smrg test "$cross_compiling" = yes || 1793863f95b1Smrg $as_test_x conftest$ac_exeext 1794863f95b1Smrg }; then : 1795863f95b1Smrg ac_retval=0 1796863f95b1Smrgelse 1797863f95b1Smrg $as_echo "$as_me: failed program was:" >&5 1798863f95b1Smrgsed 's/^/| /' conftest.$ac_ext >&5 1799ff7e0accSmrg 1800863f95b1Smrg ac_retval=1 1801ff7e0accSmrgfi 1802863f95b1Smrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1803863f95b1Smrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1804863f95b1Smrg # interfere with the next link command; also delete a directory that is 1805863f95b1Smrg # left behind by Apple's compiler. We do this before executing the actions. 1806863f95b1Smrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1807863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808863f95b1Smrg as_fn_set_status $ac_retval 1809ff7e0accSmrg 1810863f95b1Smrg} # ac_fn_c_try_link 1811ff7e0accSmrg 1812863f95b1Smrg# ac_fn_c_check_func LINENO FUNC VAR 1813863f95b1Smrg# ---------------------------------- 1814863f95b1Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly 1815863f95b1Smrgac_fn_c_check_func () 1816863f95b1Smrg{ 1817863f95b1Smrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819863f95b1Smrg$as_echo_n "checking for $2... " >&6; } 1820863f95b1Smrgif eval \${$3+:} false; then : 1821863f95b1Smrg $as_echo_n "(cached) " >&6 1822863f95b1Smrgelse 1823863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824863f95b1Smrg/* end confdefs.h. */ 1825863f95b1Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1826863f95b1Smrg For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1827863f95b1Smrg#define $2 innocuous_$2 1828863f95b1Smrg 1829863f95b1Smrg/* System header to define __stub macros and hopefully few prototypes, 1830863f95b1Smrg which can conflict with char $2 (); below. 1831863f95b1Smrg Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1832863f95b1Smrg <limits.h> exists even on freestanding compilers. */ 1833863f95b1Smrg 1834863f95b1Smrg#ifdef __STDC__ 1835863f95b1Smrg# include <limits.h> 1836863f95b1Smrg#else 1837863f95b1Smrg# include <assert.h> 1838863f95b1Smrg#endif 1839863f95b1Smrg 1840863f95b1Smrg#undef $2 1841863f95b1Smrg 1842863f95b1Smrg/* Override any GCC internal prototype to avoid an error. 1843863f95b1Smrg Use char because int might match the return type of a GCC 1844863f95b1Smrg builtin and then its argument prototype would still apply. */ 1845863f95b1Smrg#ifdef __cplusplus 1846863f95b1Smrgextern "C" 1847863f95b1Smrg#endif 1848863f95b1Smrgchar $2 (); 1849863f95b1Smrg/* The GNU C library defines this for functions which it implements 1850863f95b1Smrg to always fail with ENOSYS. Some functions are actually named 1851863f95b1Smrg something starting with __ and the normal name is an alias. */ 1852863f95b1Smrg#if defined __stub_$2 || defined __stub___$2 1853863f95b1Smrgchoke me 1854863f95b1Smrg#endif 1855863f95b1Smrg 1856863f95b1Smrgint 1857863f95b1Smrgmain () 1858863f95b1Smrg{ 1859863f95b1Smrgreturn $2 (); 1860863f95b1Smrg ; 1861863f95b1Smrg return 0; 1862863f95b1Smrg} 1863ff7e0accSmrg_ACEOF 1864863f95b1Smrgif ac_fn_c_try_link "$LINENO"; then : 1865863f95b1Smrg eval "$3=yes" 1866863f95b1Smrgelse 1867863f95b1Smrg eval "$3=no" 1868ff7e0accSmrgfi 1869863f95b1Smrgrm -f core conftest.err conftest.$ac_objext \ 1870863f95b1Smrg conftest$ac_exeext conftest.$ac_ext 1871863f95b1Smrgfi 1872863f95b1Smrgeval ac_res=\$$3 1873863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874863f95b1Smrg$as_echo "$ac_res" >&6; } 1875863f95b1Smrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876863f95b1Smrg 1877863f95b1Smrg} # ac_fn_c_check_func 1878ff7e0accSmrgcat >config.log <<_ACEOF 1879ff7e0accSmrgThis file contains any messages produced by compilers while 1880ff7e0accSmrgrunning configure, to aid debugging if configure makes a mistake. 1881ff7e0accSmrg 1882a1806bd8SmrgIt was created by xwininfo $as_me 1.1.2, which was 1883863f95b1Smrggenerated by GNU Autoconf 2.68. Invocation command line was 1884ff7e0accSmrg 1885ff7e0accSmrg $ $0 $@ 1886ff7e0accSmrg 1887ff7e0accSmrg_ACEOF 1888ff7e0accSmrgexec 5>>config.log 1889ff7e0accSmrg{ 1890ff7e0accSmrgcat <<_ASUNAME 1891ff7e0accSmrg## --------- ## 1892ff7e0accSmrg## Platform. ## 1893ff7e0accSmrg## --------- ## 1894ff7e0accSmrg 1895ff7e0accSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1896ff7e0accSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1897ff7e0accSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1898ff7e0accSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1899ff7e0accSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1900ff7e0accSmrg 1901ff7e0accSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1902ff7e0accSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1903ff7e0accSmrg 1904ff7e0accSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1905ff7e0accSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1906ff7e0accSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1907ff7e0accSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1908ff7e0accSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1909ff7e0accSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1910ff7e0accSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1911ff7e0accSmrg 1912ff7e0accSmrg_ASUNAME 1913ff7e0accSmrg 1914ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915ff7e0accSmrgfor as_dir in $PATH 1916ff7e0accSmrgdo 1917ff7e0accSmrg IFS=$as_save_IFS 1918ff7e0accSmrg test -z "$as_dir" && as_dir=. 1919863f95b1Smrg $as_echo "PATH: $as_dir" 1920863f95b1Smrg done 1921ff7e0accSmrgIFS=$as_save_IFS 1922ff7e0accSmrg 1923ff7e0accSmrg} >&5 1924ff7e0accSmrg 1925ff7e0accSmrgcat >&5 <<_ACEOF 1926ff7e0accSmrg 1927ff7e0accSmrg 1928ff7e0accSmrg## ----------- ## 1929ff7e0accSmrg## Core tests. ## 1930ff7e0accSmrg## ----------- ## 1931ff7e0accSmrg 1932ff7e0accSmrg_ACEOF 1933ff7e0accSmrg 1934ff7e0accSmrg 1935ff7e0accSmrg# Keep a trace of the command line. 1936ff7e0accSmrg# Strip out --no-create and --no-recursion so they do not pile up. 1937ff7e0accSmrg# Strip out --silent because we don't want to record it for future runs. 1938ff7e0accSmrg# Also quote any args containing shell meta-characters. 1939ff7e0accSmrg# Make two passes to allow for proper duplicate-argument suppression. 1940ff7e0accSmrgac_configure_args= 1941ff7e0accSmrgac_configure_args0= 1942ff7e0accSmrgac_configure_args1= 1943ff7e0accSmrgac_must_keep_next=false 1944ff7e0accSmrgfor ac_pass in 1 2 1945ff7e0accSmrgdo 1946ff7e0accSmrg for ac_arg 1947ff7e0accSmrg do 1948ff7e0accSmrg case $ac_arg in 1949ff7e0accSmrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950ff7e0accSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951ff7e0accSmrg | -silent | --silent | --silen | --sile | --sil) 1952ff7e0accSmrg continue ;; 1953ff7e0accSmrg *\'*) 1954a005d216Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955ff7e0accSmrg esac 1956ff7e0accSmrg case $ac_pass in 1957863f95b1Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958ff7e0accSmrg 2) 1959863f95b1Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1960ff7e0accSmrg if test $ac_must_keep_next = true; then 1961ff7e0accSmrg ac_must_keep_next=false # Got value, back to normal. 1962ff7e0accSmrg else 1963ff7e0accSmrg case $ac_arg in 1964ff7e0accSmrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1965ff7e0accSmrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966ff7e0accSmrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967ff7e0accSmrg | -with-* | --with-* | -without-* | --without-* | --x) 1968ff7e0accSmrg case "$ac_configure_args0 " in 1969ff7e0accSmrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970ff7e0accSmrg esac 1971ff7e0accSmrg ;; 1972ff7e0accSmrg -* ) ac_must_keep_next=true ;; 1973ff7e0accSmrg esac 1974ff7e0accSmrg fi 1975863f95b1Smrg as_fn_append ac_configure_args " '$ac_arg'" 1976ff7e0accSmrg ;; 1977ff7e0accSmrg esac 1978ff7e0accSmrg done 1979ff7e0accSmrgdone 1980863f95b1Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1981863f95b1Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1982ff7e0accSmrg 1983ff7e0accSmrg# When interrupted or exit'd, cleanup temporary files, and complete 1984ff7e0accSmrg# config.log. We remove comments because anyway the quotes in there 1985ff7e0accSmrg# would cause problems or look ugly. 1986ff7e0accSmrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1987ff7e0accSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988ff7e0accSmrgtrap 'exit_status=$? 1989ff7e0accSmrg # Save into config.log some information that might help in debugging. 1990ff7e0accSmrg { 1991ff7e0accSmrg echo 1992ff7e0accSmrg 1993863f95b1Smrg $as_echo "## ---------------- ## 1994ff7e0accSmrg## Cache variables. ## 1995863f95b1Smrg## ---------------- ##" 1996ff7e0accSmrg echo 1997ff7e0accSmrg # The following way of writing the cache mishandles newlines in values, 1998ff7e0accSmrg( 1999ff7e0accSmrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2000ff7e0accSmrg eval ac_val=\$$ac_var 2001ff7e0accSmrg case $ac_val in #( 2002ff7e0accSmrg *${as_nl}*) 2003ff7e0accSmrg case $ac_var in #( 2004863f95b1Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 200510998002Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2006ff7e0accSmrg esac 2007ff7e0accSmrg case $ac_var in #( 2008ff7e0accSmrg _ | IFS | as_nl) ;; #( 2009a005d216Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2010863f95b1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 2011ff7e0accSmrg esac ;; 2012ff7e0accSmrg esac 2013ff7e0accSmrg done 2014ff7e0accSmrg (set) 2>&1 | 2015ff7e0accSmrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2016ff7e0accSmrg *${as_nl}ac_space=\ *) 2017ff7e0accSmrg sed -n \ 2018ff7e0accSmrg "s/'\''/'\''\\\\'\'''\''/g; 2019ff7e0accSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2020ff7e0accSmrg ;; #( 2021ff7e0accSmrg *) 2022ff7e0accSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2023ff7e0accSmrg ;; 2024ff7e0accSmrg esac | 2025ff7e0accSmrg sort 2026ff7e0accSmrg) 2027ff7e0accSmrg echo 2028ff7e0accSmrg 2029863f95b1Smrg $as_echo "## ----------------- ## 2030ff7e0accSmrg## Output variables. ## 2031863f95b1Smrg## ----------------- ##" 2032ff7e0accSmrg echo 2033ff7e0accSmrg for ac_var in $ac_subst_vars 2034ff7e0accSmrg do 2035ff7e0accSmrg eval ac_val=\$$ac_var 2036ff7e0accSmrg case $ac_val in 2037a005d216Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038ff7e0accSmrg esac 2039a005d216Smrg $as_echo "$ac_var='\''$ac_val'\''" 2040ff7e0accSmrg done | sort 2041ff7e0accSmrg echo 2042ff7e0accSmrg 2043ff7e0accSmrg if test -n "$ac_subst_files"; then 2044863f95b1Smrg $as_echo "## ------------------- ## 2045ff7e0accSmrg## File substitutions. ## 2046863f95b1Smrg## ------------------- ##" 2047ff7e0accSmrg echo 2048ff7e0accSmrg for ac_var in $ac_subst_files 2049ff7e0accSmrg do 2050ff7e0accSmrg eval ac_val=\$$ac_var 2051ff7e0accSmrg case $ac_val in 2052a005d216Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2053ff7e0accSmrg esac 2054a005d216Smrg $as_echo "$ac_var='\''$ac_val'\''" 2055ff7e0accSmrg done | sort 2056ff7e0accSmrg echo 2057ff7e0accSmrg fi 2058ff7e0accSmrg 2059ff7e0accSmrg if test -s confdefs.h; then 2060863f95b1Smrg $as_echo "## ----------- ## 2061ff7e0accSmrg## confdefs.h. ## 2062863f95b1Smrg## ----------- ##" 2063ff7e0accSmrg echo 2064ff7e0accSmrg cat confdefs.h 2065ff7e0accSmrg echo 2066ff7e0accSmrg fi 2067ff7e0accSmrg test "$ac_signal" != 0 && 2068a005d216Smrg $as_echo "$as_me: caught signal $ac_signal" 2069a005d216Smrg $as_echo "$as_me: exit $exit_status" 2070ff7e0accSmrg } >&5 2071ff7e0accSmrg rm -f core *.core core.conftest.* && 2072ff7e0accSmrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2073ff7e0accSmrg exit $exit_status 2074ff7e0accSmrg' 0 2075ff7e0accSmrgfor ac_signal in 1 2 13 15; do 2076863f95b1Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2077ff7e0accSmrgdone 2078ff7e0accSmrgac_signal=0 2079ff7e0accSmrg 2080ff7e0accSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 2081ff7e0accSmrgrm -f -r conftest* confdefs.h 2082ff7e0accSmrg 2083863f95b1Smrg$as_echo "/* confdefs.h */" > confdefs.h 2084863f95b1Smrg 2085ff7e0accSmrg# Predefined preprocessor variables. 2086ff7e0accSmrg 2087ff7e0accSmrgcat >>confdefs.h <<_ACEOF 2088ff7e0accSmrg#define PACKAGE_NAME "$PACKAGE_NAME" 2089ff7e0accSmrg_ACEOF 2090ff7e0accSmrg 2091ff7e0accSmrgcat >>confdefs.h <<_ACEOF 2092ff7e0accSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2093ff7e0accSmrg_ACEOF 2094ff7e0accSmrg 2095ff7e0accSmrgcat >>confdefs.h <<_ACEOF 2096ff7e0accSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 2097ff7e0accSmrg_ACEOF 2098ff7e0accSmrg 2099ff7e0accSmrgcat >>confdefs.h <<_ACEOF 2100ff7e0accSmrg#define PACKAGE_STRING "$PACKAGE_STRING" 2101ff7e0accSmrg_ACEOF 2102ff7e0accSmrg 2103ff7e0accSmrgcat >>confdefs.h <<_ACEOF 2104ff7e0accSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2105ff7e0accSmrg_ACEOF 2106ff7e0accSmrg 2107863f95b1Smrgcat >>confdefs.h <<_ACEOF 2108863f95b1Smrg#define PACKAGE_URL "$PACKAGE_URL" 2109863f95b1Smrg_ACEOF 2110863f95b1Smrg 2111ff7e0accSmrg 2112ff7e0accSmrg# Let the site file select an alternate cache file if it wants to. 2113a005d216Smrg# Prefer an explicitly selected file to automatically selected ones. 2114a005d216Smrgac_site_file1=NONE 2115a005d216Smrgac_site_file2=NONE 2116ff7e0accSmrgif test -n "$CONFIG_SITE"; then 2117863f95b1Smrg # We do not want a PATH search for config.site. 2118863f95b1Smrg case $CONFIG_SITE in #(( 2119863f95b1Smrg -*) ac_site_file1=./$CONFIG_SITE;; 2120863f95b1Smrg */*) ac_site_file1=$CONFIG_SITE;; 2121863f95b1Smrg *) ac_site_file1=./$CONFIG_SITE;; 2122863f95b1Smrg esac 2123ff7e0accSmrgelif test "x$prefix" != xNONE; then 2124a005d216Smrg ac_site_file1=$prefix/share/config.site 2125a005d216Smrg ac_site_file2=$prefix/etc/config.site 2126ff7e0accSmrgelse 2127a005d216Smrg ac_site_file1=$ac_default_prefix/share/config.site 2128a005d216Smrg ac_site_file2=$ac_default_prefix/etc/config.site 2129ff7e0accSmrgfi 2130a005d216Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2131ff7e0accSmrgdo 2132a005d216Smrg test "x$ac_site_file" = xNONE && continue 2133863f95b1Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2134863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2135a005d216Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2136ff7e0accSmrg sed 's/^/| /' "$ac_site_file" >&5 2137863f95b1Smrg . "$ac_site_file" \ 2138863f95b1Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2139863f95b1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2140863f95b1Smrgas_fn_error $? "failed to load site script $ac_site_file 2141863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 2142ff7e0accSmrg fi 2143ff7e0accSmrgdone 2144ff7e0accSmrg 2145ff7e0accSmrgif test -r "$cache_file"; then 2146863f95b1Smrg # Some versions of bash will fail to source /dev/null (special files 2147863f95b1Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2148863f95b1Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2149863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2150a005d216Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2151ff7e0accSmrg case $cache_file in 2152ff7e0accSmrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2153ff7e0accSmrg *) . "./$cache_file";; 2154ff7e0accSmrg esac 2155ff7e0accSmrg fi 2156ff7e0accSmrgelse 2157863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2158a005d216Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2159ff7e0accSmrg >$cache_file 2160ff7e0accSmrgfi 2161ff7e0accSmrg 2162ff7e0accSmrg# Check that the precious variables saved in the cache have kept the same 2163ff7e0accSmrg# value. 2164ff7e0accSmrgac_cache_corrupted=false 2165ff7e0accSmrgfor ac_var in $ac_precious_vars; do 2166ff7e0accSmrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2167ff7e0accSmrg eval ac_new_set=\$ac_env_${ac_var}_set 2168ff7e0accSmrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2169ff7e0accSmrg eval ac_new_val=\$ac_env_${ac_var}_value 2170ff7e0accSmrg case $ac_old_set,$ac_new_set in 2171ff7e0accSmrg set,) 2172863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2173a005d216Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2174ff7e0accSmrg ac_cache_corrupted=: ;; 2175ff7e0accSmrg ,set) 2176863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2177a005d216Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2178ff7e0accSmrg ac_cache_corrupted=: ;; 2179ff7e0accSmrg ,);; 2180ff7e0accSmrg *) 2181ff7e0accSmrg if test "x$ac_old_val" != "x$ac_new_val"; then 2182a005d216Smrg # differences in whitespace do not lead to failure. 2183a005d216Smrg ac_old_val_w=`echo x $ac_old_val` 2184a005d216Smrg ac_new_val_w=`echo x $ac_new_val` 2185a005d216Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2186863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2187a005d216Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2188a005d216Smrg ac_cache_corrupted=: 2189a005d216Smrg else 2190863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2191a005d216Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2192a005d216Smrg eval $ac_var=\$ac_old_val 2193a005d216Smrg fi 2194863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2195a005d216Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2196863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2197a005d216Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2198ff7e0accSmrg fi;; 2199ff7e0accSmrg esac 2200ff7e0accSmrg # Pass precious variables to config.status. 2201ff7e0accSmrg if test "$ac_new_set" = set; then 2202ff7e0accSmrg case $ac_new_val in 2203a005d216Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2204ff7e0accSmrg *) ac_arg=$ac_var=$ac_new_val ;; 2205ff7e0accSmrg esac 2206ff7e0accSmrg case " $ac_configure_args " in 2207ff7e0accSmrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2208863f95b1Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2209ff7e0accSmrg esac 2210ff7e0accSmrg fi 2211ff7e0accSmrgdone 2212ff7e0accSmrgif $ac_cache_corrupted; then 2213863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 221410998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2215863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2216a005d216Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2217863f95b1Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2218ff7e0accSmrgfi 2219863f95b1Smrg## -------------------- ## 2220863f95b1Smrg## Main body of script. ## 2221863f95b1Smrg## -------------------- ## 2222ff7e0accSmrg 2223ff7e0accSmrgac_ext=c 2224ff7e0accSmrgac_cpp='$CPP $CPPFLAGS' 2225ff7e0accSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2226ff7e0accSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2227ff7e0accSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2228ff7e0accSmrg 2229ff7e0accSmrg 223010998002Smrgam__api_version='1.11' 2231ff7e0accSmrg 2232ff7e0accSmrgac_aux_dir= 2233ff7e0accSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2234ff7e0accSmrg if test -f "$ac_dir/install-sh"; then 2235ff7e0accSmrg ac_aux_dir=$ac_dir 2236ff7e0accSmrg ac_install_sh="$ac_aux_dir/install-sh -c" 2237ff7e0accSmrg break 2238ff7e0accSmrg elif test -f "$ac_dir/install.sh"; then 2239ff7e0accSmrg ac_aux_dir=$ac_dir 2240ff7e0accSmrg ac_install_sh="$ac_aux_dir/install.sh -c" 2241ff7e0accSmrg break 2242ff7e0accSmrg elif test -f "$ac_dir/shtool"; then 2243ff7e0accSmrg ac_aux_dir=$ac_dir 2244ff7e0accSmrg ac_install_sh="$ac_aux_dir/shtool install -c" 2245ff7e0accSmrg break 2246ff7e0accSmrg fi 2247ff7e0accSmrgdone 2248ff7e0accSmrgif test -z "$ac_aux_dir"; then 2249863f95b1Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2250ff7e0accSmrgfi 2251ff7e0accSmrg 2252ff7e0accSmrg# These three variables are undocumented and unsupported, 2253ff7e0accSmrg# and are intended to be withdrawn in a future Autoconf release. 2254ff7e0accSmrg# They can cause serious problems if a builder's source tree is in a directory 2255ff7e0accSmrg# whose full name contains unusual characters. 2256ff7e0accSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2257ff7e0accSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2258ff7e0accSmrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2259ff7e0accSmrg 2260ff7e0accSmrg 2261ff7e0accSmrg# Find a good install program. We prefer a C program (faster), 2262ff7e0accSmrg# so one script is as good as another. But avoid the broken or 2263ff7e0accSmrg# incompatible versions: 2264ff7e0accSmrg# SysV /etc/install, /usr/sbin/install 2265ff7e0accSmrg# SunOS /usr/etc/install 2266ff7e0accSmrg# IRIX /sbin/install 2267ff7e0accSmrg# AIX /bin/install 2268ff7e0accSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2269ff7e0accSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2270ff7e0accSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2271ff7e0accSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2272ff7e0accSmrg# OS/2's system install, which has a completely different semantic 2273ff7e0accSmrg# ./install, which can be erroneously created by make from ./install.sh. 2274a005d216Smrg# Reject install programs that cannot install multiple files. 2275863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2276a005d216Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2277ff7e0accSmrgif test -z "$INSTALL"; then 2278863f95b1Smrgif ${ac_cv_path_install+:} false; then : 2279a005d216Smrg $as_echo_n "(cached) " >&6 2280ff7e0accSmrgelse 2281ff7e0accSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2282ff7e0accSmrgfor as_dir in $PATH 2283ff7e0accSmrgdo 2284ff7e0accSmrg IFS=$as_save_IFS 2285ff7e0accSmrg test -z "$as_dir" && as_dir=. 2286863f95b1Smrg # Account for people who put trailing slashes in PATH elements. 2287863f95b1Smrgcase $as_dir/ in #(( 2288863f95b1Smrg ./ | .// | /[cC]/* | \ 2289ff7e0accSmrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2290863f95b1Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2291ff7e0accSmrg /usr/ucb/* ) ;; 2292ff7e0accSmrg *) 2293ff7e0accSmrg # OSF1 and SCO ODT 3.0 have their own names for install. 2294ff7e0accSmrg # Don't use installbsd from OSF since it installs stuff as root 2295ff7e0accSmrg # by default. 2296ff7e0accSmrg for ac_prog in ginstall scoinst install; do 2297ff7e0accSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2298ff7e0accSmrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2299ff7e0accSmrg if test $ac_prog = install && 2300ff7e0accSmrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2301ff7e0accSmrg # AIX install. It has an incompatible calling convention. 2302ff7e0accSmrg : 2303ff7e0accSmrg elif test $ac_prog = install && 2304ff7e0accSmrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2305ff7e0accSmrg # program-specific install script used by HP pwplus--don't use. 2306ff7e0accSmrg : 2307ff7e0accSmrg else 2308a005d216Smrg rm -rf conftest.one conftest.two conftest.dir 2309a005d216Smrg echo one > conftest.one 2310a005d216Smrg echo two > conftest.two 2311a005d216Smrg mkdir conftest.dir 2312a005d216Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2313a005d216Smrg test -s conftest.one && test -s conftest.two && 2314a005d216Smrg test -s conftest.dir/conftest.one && 2315a005d216Smrg test -s conftest.dir/conftest.two 2316a005d216Smrg then 2317a005d216Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2318a005d216Smrg break 3 2319a005d216Smrg fi 2320ff7e0accSmrg fi 2321ff7e0accSmrg fi 2322ff7e0accSmrg done 2323ff7e0accSmrg done 2324ff7e0accSmrg ;; 2325ff7e0accSmrgesac 2326a005d216Smrg 2327863f95b1Smrg done 2328ff7e0accSmrgIFS=$as_save_IFS 2329ff7e0accSmrg 2330a005d216Smrgrm -rf conftest.one conftest.two conftest.dir 2331ff7e0accSmrg 2332ff7e0accSmrgfi 2333ff7e0accSmrg if test "${ac_cv_path_install+set}" = set; then 2334ff7e0accSmrg INSTALL=$ac_cv_path_install 2335ff7e0accSmrg else 2336ff7e0accSmrg # As a last resort, use the slow shell script. Don't cache a 2337ff7e0accSmrg # value for INSTALL within a source directory, because that will 2338ff7e0accSmrg # break other packages using the cache if that directory is 2339ff7e0accSmrg # removed, or if the value is a relative name. 2340ff7e0accSmrg INSTALL=$ac_install_sh 2341ff7e0accSmrg fi 2342ff7e0accSmrgfi 2343863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2344a005d216Smrg$as_echo "$INSTALL" >&6; } 2345ff7e0accSmrg 2346ff7e0accSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2347ff7e0accSmrg# It thinks the first close brace ends the variable substitution. 2348ff7e0accSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2349ff7e0accSmrg 2350ff7e0accSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2351ff7e0accSmrg 2352ff7e0accSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2353ff7e0accSmrg 2354863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2355a005d216Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 2356ff7e0accSmrg# Just in case 2357ff7e0accSmrgsleep 1 2358ff7e0accSmrgecho timestamp > conftest.file 235910998002Smrg# Reject unsafe characters in $srcdir or the absolute working directory 236010998002Smrg# name. Accept space and tab only in the latter. 236110998002Smrgam_lf=' 236210998002Smrg' 236310998002Smrgcase `pwd` in 236410998002Smrg *[\\\"\#\$\&\'\`$am_lf]*) 2365863f95b1Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 236610998002Smrgesac 236710998002Smrgcase $srcdir in 236810998002Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2369863f95b1Smrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 237010998002Smrgesac 237110998002Smrg 2372ff7e0accSmrg# Do `set' in a subshell so we don't clobber the current shell's 2373ff7e0accSmrg# arguments. Must try -L first in case configure is actually a 2374ff7e0accSmrg# symlink; some systems play weird games with the mod time of symlinks 2375ff7e0accSmrg# (eg FreeBSD returns the mod time of the symlink's containing 2376ff7e0accSmrg# directory). 2377ff7e0accSmrgif ( 237810998002Smrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2379ff7e0accSmrg if test "$*" = "X"; then 2380ff7e0accSmrg # -L didn't work. 238110998002Smrg set X `ls -t "$srcdir/configure" conftest.file` 2382ff7e0accSmrg fi 2383ff7e0accSmrg rm -f conftest.file 2384ff7e0accSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 2385ff7e0accSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 2386ff7e0accSmrg 2387ff7e0accSmrg # If neither matched, then we have a broken ls. This can happen 2388ff7e0accSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2389ff7e0accSmrg # broken ls alias from the environment. This has actually 2390ff7e0accSmrg # happened. Such a system could not be considered "sane". 2391863f95b1Smrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2392863f95b1Smrgalias in your environment" "$LINENO" 5 2393ff7e0accSmrg fi 2394ff7e0accSmrg 2395ff7e0accSmrg test "$2" = conftest.file 2396ff7e0accSmrg ) 2397ff7e0accSmrgthen 2398ff7e0accSmrg # Ok. 2399ff7e0accSmrg : 2400ff7e0accSmrgelse 2401863f95b1Smrg as_fn_error $? "newly created file is older than distributed files! 2402863f95b1SmrgCheck your system clock" "$LINENO" 5 2403ff7e0accSmrgfi 2404863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2405a005d216Smrg$as_echo "yes" >&6; } 2406ff7e0accSmrgtest "$program_prefix" != NONE && 2407ff7e0accSmrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2408ff7e0accSmrg# Use a double $ so make ignores it. 2409ff7e0accSmrgtest "$program_suffix" != NONE && 2410ff7e0accSmrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2411a005d216Smrg# Double any \ or $. 2412ff7e0accSmrg# By default was `s,x,x', remove it if useless. 2413a005d216Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2414a005d216Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2415ff7e0accSmrg 2416ff7e0accSmrg# expand $ac_aux_dir to an absolute path 2417ff7e0accSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 2418ff7e0accSmrg 241910998002Smrgif test x"${MISSING+set}" != xset; then 242010998002Smrg case $am_aux_dir in 242110998002Smrg *\ * | *\ *) 242210998002Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 242310998002Smrg *) 242410998002Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 242510998002Smrg esac 242610998002Smrgfi 2427ff7e0accSmrg# Use eval to expand $SHELL 2428ff7e0accSmrgif eval "$MISSING --run true"; then 2429ff7e0accSmrg am_missing_run="$MISSING --run " 2430ff7e0accSmrgelse 2431ff7e0accSmrg am_missing_run= 2432863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2433a005d216Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2434ff7e0accSmrgfi 2435ff7e0accSmrg 243610998002Smrgif test x"${install_sh}" != xset; then 243710998002Smrg case $am_aux_dir in 243810998002Smrg *\ * | *\ *) 243910998002Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 244010998002Smrg *) 244110998002Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 244210998002Smrg esac 244310998002Smrgfi 244410998002Smrg 244510998002Smrg# Installed binaries are usually stripped using `strip' when the user 244610998002Smrg# run `make install-strip'. However `strip' might not be the right 244710998002Smrg# tool to use in cross-compilation environments, therefore Automake 244810998002Smrg# will honor the `STRIP' environment variable to overrule this program. 244910998002Smrgif test "$cross_compiling" != no; then 245010998002Smrg if test -n "$ac_tool_prefix"; then 245110998002Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 245210998002Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2453863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 245410998002Smrg$as_echo_n "checking for $ac_word... " >&6; } 2455863f95b1Smrgif ${ac_cv_prog_STRIP+:} false; then : 2456a005d216Smrg $as_echo_n "(cached) " >&6 2457ff7e0accSmrgelse 245810998002Smrg if test -n "$STRIP"; then 245910998002Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 246010998002Smrgelse 246110998002Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 246210998002Smrgfor as_dir in $PATH 2463ff7e0accSmrgdo 2464ff7e0accSmrg IFS=$as_save_IFS 2465ff7e0accSmrg test -z "$as_dir" && as_dir=. 2466863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 246710998002Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 246810998002Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2469863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 247010998002Smrg break 2 247110998002Smrg fi 247210998002Smrgdone 2473863f95b1Smrg done 247410998002SmrgIFS=$as_save_IFS 247510998002Smrg 247610998002Smrgfi 247710998002Smrgfi 247810998002SmrgSTRIP=$ac_cv_prog_STRIP 247910998002Smrgif test -n "$STRIP"; then 2480863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 248110998002Smrg$as_echo "$STRIP" >&6; } 248210998002Smrgelse 2483863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 248410998002Smrg$as_echo "no" >&6; } 248510998002Smrgfi 248610998002Smrg 248710998002Smrg 248810998002Smrgfi 248910998002Smrgif test -z "$ac_cv_prog_STRIP"; then 249010998002Smrg ac_ct_STRIP=$STRIP 249110998002Smrg # Extract the first word of "strip", so it can be a program name with args. 249210998002Smrgset dummy strip; ac_word=$2 2493863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 249410998002Smrg$as_echo_n "checking for $ac_word... " >&6; } 2495863f95b1Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 249610998002Smrg $as_echo_n "(cached) " >&6 249710998002Smrgelse 249810998002Smrg if test -n "$ac_ct_STRIP"; then 249910998002Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 250010998002Smrgelse 250110998002Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 250210998002Smrgfor as_dir in $PATH 250310998002Smrgdo 250410998002Smrg IFS=$as_save_IFS 250510998002Smrg test -z "$as_dir" && as_dir=. 2506863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 250710998002Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 250810998002Smrg ac_cv_prog_ac_ct_STRIP="strip" 2509863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 251010998002Smrg break 2 251110998002Smrg fi 251210998002Smrgdone 2513863f95b1Smrg done 251410998002SmrgIFS=$as_save_IFS 251510998002Smrg 251610998002Smrgfi 251710998002Smrgfi 251810998002Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 251910998002Smrgif test -n "$ac_ct_STRIP"; then 2520863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 252110998002Smrg$as_echo "$ac_ct_STRIP" >&6; } 252210998002Smrgelse 2523863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 252410998002Smrg$as_echo "no" >&6; } 252510998002Smrgfi 252610998002Smrg 252710998002Smrg if test "x$ac_ct_STRIP" = x; then 252810998002Smrg STRIP=":" 252910998002Smrg else 253010998002Smrg case $cross_compiling:$ac_tool_warned in 253110998002Smrgyes:) 2532863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 253310998002Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 253410998002Smrgac_tool_warned=yes ;; 253510998002Smrgesac 253610998002Smrg STRIP=$ac_ct_STRIP 253710998002Smrg fi 253810998002Smrgelse 253910998002Smrg STRIP="$ac_cv_prog_STRIP" 254010998002Smrgfi 254110998002Smrg 254210998002Smrgfi 254310998002SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 254410998002Smrg 2545863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 254610998002Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 254710998002Smrgif test -z "$MKDIR_P"; then 2548863f95b1Smrg if ${ac_cv_path_mkdir+:} false; then : 254910998002Smrg $as_echo_n "(cached) " >&6 255010998002Smrgelse 255110998002Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 255210998002Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 255310998002Smrgdo 255410998002Smrg IFS=$as_save_IFS 255510998002Smrg test -z "$as_dir" && as_dir=. 2556863f95b1Smrg for ac_prog in mkdir gmkdir; do 255710998002Smrg for ac_exec_ext in '' $ac_executable_extensions; do 255810998002Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 255910998002Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 256010998002Smrg 'mkdir (GNU coreutils) '* | \ 256110998002Smrg 'mkdir (coreutils) '* | \ 256210998002Smrg 'mkdir (fileutils) '4.1*) 256310998002Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 256410998002Smrg break 3;; 256510998002Smrg esac 2566ff7e0accSmrg done 2567ff7e0accSmrg done 2568863f95b1Smrg done 2569ff7e0accSmrgIFS=$as_save_IFS 2570ff7e0accSmrg 2571ff7e0accSmrgfi 2572ff7e0accSmrg 2573863f95b1Smrg test -d ./--version && rmdir ./--version 2574ff7e0accSmrg if test "${ac_cv_path_mkdir+set}" = set; then 2575ff7e0accSmrg MKDIR_P="$ac_cv_path_mkdir -p" 2576ff7e0accSmrg else 2577ff7e0accSmrg # As a last resort, use the slow shell script. Don't cache a 2578ff7e0accSmrg # value for MKDIR_P within a source directory, because that will 2579ff7e0accSmrg # break other packages using the cache if that directory is 2580ff7e0accSmrg # removed, or if the value is a relative name. 2581ff7e0accSmrg MKDIR_P="$ac_install_sh -d" 2582ff7e0accSmrg fi 2583ff7e0accSmrgfi 2584863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2585a005d216Smrg$as_echo "$MKDIR_P" >&6; } 2586ff7e0accSmrg 2587ff7e0accSmrgmkdir_p="$MKDIR_P" 2588ff7e0accSmrgcase $mkdir_p in 2589ff7e0accSmrg [\\/$]* | ?:[\\/]*) ;; 2590ff7e0accSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2591ff7e0accSmrgesac 2592ff7e0accSmrg 2593ff7e0accSmrgfor ac_prog in gawk mawk nawk awk 2594ff7e0accSmrgdo 2595ff7e0accSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2596ff7e0accSmrgset dummy $ac_prog; ac_word=$2 2597863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2598a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; } 2599863f95b1Smrgif ${ac_cv_prog_AWK+:} false; then : 2600a005d216Smrg $as_echo_n "(cached) " >&6 2601ff7e0accSmrgelse 2602ff7e0accSmrg if test -n "$AWK"; then 2603ff7e0accSmrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2604ff7e0accSmrgelse 2605ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2606ff7e0accSmrgfor as_dir in $PATH 2607ff7e0accSmrgdo 2608ff7e0accSmrg IFS=$as_save_IFS 2609ff7e0accSmrg test -z "$as_dir" && as_dir=. 2610863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2611ff7e0accSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2612ff7e0accSmrg ac_cv_prog_AWK="$ac_prog" 2613863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2614ff7e0accSmrg break 2 2615ff7e0accSmrg fi 2616ff7e0accSmrgdone 2617863f95b1Smrg done 2618ff7e0accSmrgIFS=$as_save_IFS 2619ff7e0accSmrg 2620ff7e0accSmrgfi 2621ff7e0accSmrgfi 2622ff7e0accSmrgAWK=$ac_cv_prog_AWK 2623ff7e0accSmrgif test -n "$AWK"; then 2624863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2625a005d216Smrg$as_echo "$AWK" >&6; } 2626ff7e0accSmrgelse 2627863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2628a005d216Smrg$as_echo "no" >&6; } 2629ff7e0accSmrgfi 2630ff7e0accSmrg 2631ff7e0accSmrg 2632ff7e0accSmrg test -n "$AWK" && break 2633ff7e0accSmrgdone 2634ff7e0accSmrg 2635863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2636a005d216Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2637a005d216Smrgset x ${MAKE-make} 2638a005d216Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2639863f95b1Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2640a005d216Smrg $as_echo_n "(cached) " >&6 2641ff7e0accSmrgelse 2642ff7e0accSmrg cat >conftest.make <<\_ACEOF 2643ff7e0accSmrgSHELL = /bin/sh 2644ff7e0accSmrgall: 2645ff7e0accSmrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2646ff7e0accSmrg_ACEOF 2647863f95b1Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2648ff7e0accSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2649ff7e0accSmrg *@@@%%%=?*=@@@%%%*) 2650ff7e0accSmrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2651ff7e0accSmrg *) 2652ff7e0accSmrg eval ac_cv_prog_make_${ac_make}_set=no;; 2653ff7e0accSmrgesac 2654ff7e0accSmrgrm -f conftest.make 2655ff7e0accSmrgfi 2656ff7e0accSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2657863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2658a005d216Smrg$as_echo "yes" >&6; } 2659ff7e0accSmrg SET_MAKE= 2660ff7e0accSmrgelse 2661863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2662a005d216Smrg$as_echo "no" >&6; } 2663ff7e0accSmrg SET_MAKE="MAKE=${MAKE-make}" 2664ff7e0accSmrgfi 2665ff7e0accSmrg 2666ff7e0accSmrgrm -rf .tst 2>/dev/null 2667ff7e0accSmrgmkdir .tst 2>/dev/null 2668ff7e0accSmrgif test -d .tst; then 2669ff7e0accSmrg am__leading_dot=. 2670ff7e0accSmrgelse 2671ff7e0accSmrg am__leading_dot=_ 2672ff7e0accSmrgfi 2673ff7e0accSmrgrmdir .tst 2>/dev/null 2674ff7e0accSmrg 2675ff7e0accSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2676ff7e0accSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2677ff7e0accSmrg # is not polluted with repeated "-I." 2678ff7e0accSmrg am__isrc=' -I$(srcdir)' 2679ff7e0accSmrg # test to see if srcdir already configured 2680ff7e0accSmrg if test -f $srcdir/config.status; then 2681863f95b1Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2682ff7e0accSmrg fi 2683ff7e0accSmrgfi 2684ff7e0accSmrg 2685ff7e0accSmrg# test whether we have cygpath 2686ff7e0accSmrgif test -z "$CYGPATH_W"; then 2687ff7e0accSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 2688ff7e0accSmrg CYGPATH_W='cygpath -w' 2689ff7e0accSmrg else 2690ff7e0accSmrg CYGPATH_W=echo 2691ff7e0accSmrg fi 2692ff7e0accSmrgfi 2693ff7e0accSmrg 2694ff7e0accSmrg 2695ff7e0accSmrg# Define the identity of the package. 2696ff7e0accSmrg PACKAGE='xwininfo' 2697a1806bd8Smrg VERSION='1.1.2' 2698ff7e0accSmrg 2699ff7e0accSmrg 2700ff7e0accSmrgcat >>confdefs.h <<_ACEOF 2701ff7e0accSmrg#define PACKAGE "$PACKAGE" 2702ff7e0accSmrg_ACEOF 2703ff7e0accSmrg 2704ff7e0accSmrg 2705ff7e0accSmrgcat >>confdefs.h <<_ACEOF 2706ff7e0accSmrg#define VERSION "$VERSION" 2707ff7e0accSmrg_ACEOF 2708ff7e0accSmrg 2709ff7e0accSmrg# Some tools Automake needs. 2710ff7e0accSmrg 2711ff7e0accSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2712ff7e0accSmrg 2713ff7e0accSmrg 2714ff7e0accSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2715ff7e0accSmrg 2716ff7e0accSmrg 2717ff7e0accSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2718ff7e0accSmrg 2719ff7e0accSmrg 2720ff7e0accSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2721ff7e0accSmrg 2722ff7e0accSmrg 2723ff7e0accSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2724ff7e0accSmrg 2725ff7e0accSmrg# We need awk for the "check" target. The system "awk" is bad on 2726ff7e0accSmrg# some platforms. 2727ff7e0accSmrg# Always define AMTAR for backward compatibility. 2728ff7e0accSmrg 2729ff7e0accSmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2730ff7e0accSmrg 2731ff7e0accSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2732ff7e0accSmrg 2733ff7e0accSmrg 2734ff7e0accSmrg 2735ff7e0accSmrg 2736ff7e0accSmrg 273710998002Smrg 2738863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2739a005d216Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2740ff7e0accSmrg # Check whether --enable-maintainer-mode was given. 2741863f95b1Smrgif test "${enable_maintainer_mode+set}" = set; then : 2742ff7e0accSmrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2743ff7e0accSmrgelse 2744ff7e0accSmrg USE_MAINTAINER_MODE=no 2745ff7e0accSmrgfi 2746ff7e0accSmrg 2747863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2748a005d216Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2749ff7e0accSmrg if test $USE_MAINTAINER_MODE = yes; then 2750ff7e0accSmrg MAINTAINER_MODE_TRUE= 2751ff7e0accSmrg MAINTAINER_MODE_FALSE='#' 2752ff7e0accSmrgelse 2753ff7e0accSmrg MAINTAINER_MODE_TRUE='#' 2754ff7e0accSmrg MAINTAINER_MODE_FALSE= 2755ff7e0accSmrgfi 2756ff7e0accSmrg 2757ff7e0accSmrg MAINT=$MAINTAINER_MODE_TRUE 2758ff7e0accSmrg 2759ff7e0accSmrg 2760ff7e0accSmrg 2761863f95b1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 276210998002Smrg 276310998002Smrg 276410998002Smrg 276510998002Smrg 276610998002Smrg 276710998002Smrg 276810998002Smrg 276910998002Smrg 277010998002Smrg 277110998002Smrg 277210998002Smrg 277310998002Smrg 2774ff7e0accSmrgac_config_headers="$ac_config_headers config.h" 2775ff7e0accSmrg 2776ff7e0accSmrg 2777863f95b1SmrgDEPDIR="${am__leading_dot}deps" 2778863f95b1Smrg 2779863f95b1Smrgac_config_commands="$ac_config_commands depfiles" 2780863f95b1Smrg 2781863f95b1Smrg 2782863f95b1Smrgam_make=${MAKE-make} 2783863f95b1Smrgcat > confinc << 'END' 2784863f95b1Smrgam__doit: 2785863f95b1Smrg @echo this is the am__doit target 2786863f95b1Smrg.PHONY: am__doit 2787863f95b1SmrgEND 2788863f95b1Smrg# If we don't find an include directive, just comment out the code. 2789863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2790863f95b1Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2791863f95b1Smrgam__include="#" 2792863f95b1Smrgam__quote= 2793863f95b1Smrg_am_result=none 2794863f95b1Smrg# First try GNU make style include. 2795863f95b1Smrgecho "include confinc" > confmf 2796863f95b1Smrg# Ignore all kinds of additional output from `make'. 2797863f95b1Smrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2798863f95b1Smrg*the\ am__doit\ target*) 2799863f95b1Smrg am__include=include 2800863f95b1Smrg am__quote= 2801863f95b1Smrg _am_result=GNU 2802863f95b1Smrg ;; 2803863f95b1Smrgesac 2804863f95b1Smrg# Now try BSD make style include. 2805863f95b1Smrgif test "$am__include" = "#"; then 2806863f95b1Smrg echo '.include "confinc"' > confmf 2807863f95b1Smrg case `$am_make -s -f confmf 2> /dev/null` in #( 2808863f95b1Smrg *the\ am__doit\ target*) 2809863f95b1Smrg am__include=.include 2810863f95b1Smrg am__quote="\"" 2811863f95b1Smrg _am_result=BSD 2812863f95b1Smrg ;; 2813863f95b1Smrg esac 2814863f95b1Smrgfi 2815863f95b1Smrg 2816863f95b1Smrg 2817863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2818863f95b1Smrg$as_echo "$_am_result" >&6; } 2819863f95b1Smrgrm -f confinc confmf 2820863f95b1Smrg 2821863f95b1Smrg# Check whether --enable-dependency-tracking was given. 2822863f95b1Smrgif test "${enable_dependency_tracking+set}" = set; then : 2823863f95b1Smrg enableval=$enable_dependency_tracking; 2824863f95b1Smrgfi 2825863f95b1Smrg 2826863f95b1Smrgif test "x$enable_dependency_tracking" != xno; then 2827863f95b1Smrg am_depcomp="$ac_aux_dir/depcomp" 2828863f95b1Smrg AMDEPBACKSLASH='\' 2829863f95b1Smrgfi 2830863f95b1Smrg if test "x$enable_dependency_tracking" != xno; then 2831863f95b1Smrg AMDEP_TRUE= 2832863f95b1Smrg AMDEP_FALSE='#' 2833863f95b1Smrgelse 2834863f95b1Smrg AMDEP_TRUE='#' 2835863f95b1Smrg AMDEP_FALSE= 2836863f95b1Smrgfi 2837863f95b1Smrg 2838863f95b1Smrg 2839ff7e0accSmrgac_ext=c 2840ff7e0accSmrgac_cpp='$CPP $CPPFLAGS' 2841ff7e0accSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2842ff7e0accSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2843ff7e0accSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2844ff7e0accSmrgif test -n "$ac_tool_prefix"; then 2845ff7e0accSmrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2846ff7e0accSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2847863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2848a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; } 2849863f95b1Smrgif ${ac_cv_prog_CC+:} false; then : 2850a005d216Smrg $as_echo_n "(cached) " >&6 2851ff7e0accSmrgelse 2852ff7e0accSmrg if test -n "$CC"; then 2853ff7e0accSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2854ff7e0accSmrgelse 2855ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856ff7e0accSmrgfor as_dir in $PATH 2857ff7e0accSmrgdo 2858ff7e0accSmrg IFS=$as_save_IFS 2859ff7e0accSmrg test -z "$as_dir" && as_dir=. 2860863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2861ff7e0accSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2862ff7e0accSmrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2863863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2864ff7e0accSmrg break 2 2865ff7e0accSmrg fi 2866ff7e0accSmrgdone 2867863f95b1Smrg done 2868ff7e0accSmrgIFS=$as_save_IFS 2869ff7e0accSmrg 2870ff7e0accSmrgfi 2871ff7e0accSmrgfi 2872ff7e0accSmrgCC=$ac_cv_prog_CC 2873ff7e0accSmrgif test -n "$CC"; then 2874863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2875a005d216Smrg$as_echo "$CC" >&6; } 2876ff7e0accSmrgelse 2877863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2878a005d216Smrg$as_echo "no" >&6; } 2879ff7e0accSmrgfi 2880ff7e0accSmrg 2881ff7e0accSmrg 2882ff7e0accSmrgfi 2883ff7e0accSmrgif test -z "$ac_cv_prog_CC"; then 2884ff7e0accSmrg ac_ct_CC=$CC 2885ff7e0accSmrg # Extract the first word of "gcc", so it can be a program name with args. 2886ff7e0accSmrgset dummy gcc; ac_word=$2 2887863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; } 2889863f95b1Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2890a005d216Smrg $as_echo_n "(cached) " >&6 2891ff7e0accSmrgelse 2892ff7e0accSmrg if test -n "$ac_ct_CC"; then 2893ff7e0accSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2894ff7e0accSmrgelse 2895ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896ff7e0accSmrgfor as_dir in $PATH 2897ff7e0accSmrgdo 2898ff7e0accSmrg IFS=$as_save_IFS 2899ff7e0accSmrg test -z "$as_dir" && as_dir=. 2900863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2901ff7e0accSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2902ff7e0accSmrg ac_cv_prog_ac_ct_CC="gcc" 2903863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2904ff7e0accSmrg break 2 2905ff7e0accSmrg fi 2906ff7e0accSmrgdone 2907863f95b1Smrg done 2908ff7e0accSmrgIFS=$as_save_IFS 2909ff7e0accSmrg 2910ff7e0accSmrgfi 2911ff7e0accSmrgfi 2912ff7e0accSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2913ff7e0accSmrgif test -n "$ac_ct_CC"; then 2914863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2915a005d216Smrg$as_echo "$ac_ct_CC" >&6; } 2916ff7e0accSmrgelse 2917863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2918a005d216Smrg$as_echo "no" >&6; } 2919ff7e0accSmrgfi 2920ff7e0accSmrg 2921ff7e0accSmrg if test "x$ac_ct_CC" = x; then 2922ff7e0accSmrg CC="" 2923ff7e0accSmrg else 2924ff7e0accSmrg case $cross_compiling:$ac_tool_warned in 2925ff7e0accSmrgyes:) 2926863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 292710998002Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2928ff7e0accSmrgac_tool_warned=yes ;; 2929ff7e0accSmrgesac 2930ff7e0accSmrg CC=$ac_ct_CC 2931ff7e0accSmrg fi 2932ff7e0accSmrgelse 2933ff7e0accSmrg CC="$ac_cv_prog_CC" 2934ff7e0accSmrgfi 2935ff7e0accSmrg 2936ff7e0accSmrgif test -z "$CC"; then 2937ff7e0accSmrg if test -n "$ac_tool_prefix"; then 2938ff7e0accSmrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2939ff7e0accSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2940863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2941a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; } 2942863f95b1Smrgif ${ac_cv_prog_CC+:} false; then : 2943a005d216Smrg $as_echo_n "(cached) " >&6 2944ff7e0accSmrgelse 2945ff7e0accSmrg if test -n "$CC"; then 2946ff7e0accSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2947ff7e0accSmrgelse 2948ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949ff7e0accSmrgfor as_dir in $PATH 2950ff7e0accSmrgdo 2951ff7e0accSmrg IFS=$as_save_IFS 2952ff7e0accSmrg test -z "$as_dir" && as_dir=. 2953863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2954ff7e0accSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2955ff7e0accSmrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2956863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2957ff7e0accSmrg break 2 2958ff7e0accSmrg fi 2959ff7e0accSmrgdone 2960863f95b1Smrg done 2961ff7e0accSmrgIFS=$as_save_IFS 2962ff7e0accSmrg 2963ff7e0accSmrgfi 2964ff7e0accSmrgfi 2965ff7e0accSmrgCC=$ac_cv_prog_CC 2966ff7e0accSmrgif test -n "$CC"; then 2967863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2968a005d216Smrg$as_echo "$CC" >&6; } 2969ff7e0accSmrgelse 2970863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971a005d216Smrg$as_echo "no" >&6; } 2972ff7e0accSmrgfi 2973ff7e0accSmrg 2974ff7e0accSmrg 2975ff7e0accSmrg fi 2976ff7e0accSmrgfi 2977ff7e0accSmrgif test -z "$CC"; then 2978ff7e0accSmrg # Extract the first word of "cc", so it can be a program name with args. 2979ff7e0accSmrgset dummy cc; ac_word=$2 2980863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; } 2982863f95b1Smrgif ${ac_cv_prog_CC+:} false; then : 2983a005d216Smrg $as_echo_n "(cached) " >&6 2984ff7e0accSmrgelse 2985ff7e0accSmrg if test -n "$CC"; then 2986ff7e0accSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 2987ff7e0accSmrgelse 2988ff7e0accSmrg ac_prog_rejected=no 2989ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990ff7e0accSmrgfor as_dir in $PATH 2991ff7e0accSmrgdo 2992ff7e0accSmrg IFS=$as_save_IFS 2993ff7e0accSmrg test -z "$as_dir" && as_dir=. 2994863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2995ff7e0accSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2996ff7e0accSmrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2997ff7e0accSmrg ac_prog_rejected=yes 2998ff7e0accSmrg continue 2999ff7e0accSmrg fi 3000ff7e0accSmrg ac_cv_prog_CC="cc" 3001863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3002ff7e0accSmrg break 2 3003ff7e0accSmrg fi 3004ff7e0accSmrgdone 3005863f95b1Smrg done 3006ff7e0accSmrgIFS=$as_save_IFS 3007ff7e0accSmrg 3008ff7e0accSmrgif test $ac_prog_rejected = yes; then 3009ff7e0accSmrg # We found a bogon in the path, so make sure we never use it. 3010ff7e0accSmrg set dummy $ac_cv_prog_CC 3011ff7e0accSmrg shift 3012ff7e0accSmrg if test $# != 0; then 3013ff7e0accSmrg # We chose a different compiler from the bogus one. 3014ff7e0accSmrg # However, it has the same basename, so the bogon will be chosen 3015ff7e0accSmrg # first if we set CC to just the basename; use the full file name. 3016ff7e0accSmrg shift 3017ff7e0accSmrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3018ff7e0accSmrg fi 3019ff7e0accSmrgfi 3020ff7e0accSmrgfi 3021ff7e0accSmrgfi 3022ff7e0accSmrgCC=$ac_cv_prog_CC 3023ff7e0accSmrgif test -n "$CC"; then 3024863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3025a005d216Smrg$as_echo "$CC" >&6; } 3026ff7e0accSmrgelse 3027863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028a005d216Smrg$as_echo "no" >&6; } 3029ff7e0accSmrgfi 3030ff7e0accSmrg 3031ff7e0accSmrg 3032ff7e0accSmrgfi 3033ff7e0accSmrgif test -z "$CC"; then 3034ff7e0accSmrg if test -n "$ac_tool_prefix"; then 3035ff7e0accSmrg for ac_prog in cl.exe 3036ff7e0accSmrg do 3037ff7e0accSmrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3038ff7e0accSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3039863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3040a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; } 3041863f95b1Smrgif ${ac_cv_prog_CC+:} false; then : 3042a005d216Smrg $as_echo_n "(cached) " >&6 3043ff7e0accSmrgelse 3044ff7e0accSmrg if test -n "$CC"; then 3045ff7e0accSmrg ac_cv_prog_CC="$CC" # Let the user override the test. 3046ff7e0accSmrgelse 3047ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3048ff7e0accSmrgfor as_dir in $PATH 3049ff7e0accSmrgdo 3050ff7e0accSmrg IFS=$as_save_IFS 3051ff7e0accSmrg test -z "$as_dir" && as_dir=. 3052863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3053ff7e0accSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3054ff7e0accSmrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3055863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3056ff7e0accSmrg break 2 3057ff7e0accSmrg fi 3058ff7e0accSmrgdone 3059863f95b1Smrg done 3060ff7e0accSmrgIFS=$as_save_IFS 3061ff7e0accSmrg 3062ff7e0accSmrgfi 3063ff7e0accSmrgfi 3064ff7e0accSmrgCC=$ac_cv_prog_CC 3065ff7e0accSmrgif test -n "$CC"; then 3066863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3067a005d216Smrg$as_echo "$CC" >&6; } 3068ff7e0accSmrgelse 3069863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070a005d216Smrg$as_echo "no" >&6; } 3071ff7e0accSmrgfi 3072ff7e0accSmrg 3073ff7e0accSmrg 3074ff7e0accSmrg test -n "$CC" && break 3075ff7e0accSmrg done 3076ff7e0accSmrgfi 3077ff7e0accSmrgif test -z "$CC"; then 3078ff7e0accSmrg ac_ct_CC=$CC 3079ff7e0accSmrg for ac_prog in cl.exe 3080ff7e0accSmrgdo 3081ff7e0accSmrg # Extract the first word of "$ac_prog", so it can be a program name with args. 3082ff7e0accSmrgset dummy $ac_prog; ac_word=$2 3083863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084a005d216Smrg$as_echo_n "checking for $ac_word... " >&6; } 3085863f95b1Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 3086a005d216Smrg $as_echo_n "(cached) " >&6 3087ff7e0accSmrgelse 3088ff7e0accSmrg if test -n "$ac_ct_CC"; then 3089ff7e0accSmrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3090ff7e0accSmrgelse 3091ff7e0accSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092ff7e0accSmrgfor as_dir in $PATH 3093ff7e0accSmrgdo 3094ff7e0accSmrg IFS=$as_save_IFS 3095ff7e0accSmrg test -z "$as_dir" && as_dir=. 3096863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 3097ff7e0accSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3098ff7e0accSmrg ac_cv_prog_ac_ct_CC="$ac_prog" 3099863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3100ff7e0accSmrg break 2 3101ff7e0accSmrg fi 3102ff7e0accSmrgdone 3103863f95b1Smrg done 3104ff7e0accSmrgIFS=$as_save_IFS 3105ff7e0accSmrg 3106ff7e0accSmrgfi 3107ff7e0accSmrgfi 3108ff7e0accSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC 3109ff7e0accSmrgif test -n "$ac_ct_CC"; then 3110863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3111a005d216Smrg$as_echo "$ac_ct_CC" >&6; } 3112ff7e0accSmrgelse 3113863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114a005d216Smrg$as_echo "no" >&6; } 3115ff7e0accSmrgfi 3116ff7e0accSmrg 3117ff7e0accSmrg 3118ff7e0accSmrg test -n "$ac_ct_CC" && break 3119ff7e0accSmrgdone 3120ff7e0accSmrg 3121ff7e0accSmrg if test "x$ac_ct_CC" = x; then 3122ff7e0accSmrg CC="" 3123ff7e0accSmrg else 3124ff7e0accSmrg case $cross_compiling:$ac_tool_warned in 3125ff7e0accSmrgyes:) 3126863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 312710998002Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3128ff7e0accSmrgac_tool_warned=yes ;; 3129ff7e0accSmrgesac 3130ff7e0accSmrg CC=$ac_ct_CC 3131ff7e0accSmrg fi 3132ff7e0accSmrgfi 3133ff7e0accSmrg 3134ff7e0accSmrgfi 3135ff7e0accSmrg 3136ff7e0accSmrg 3137863f95b1Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 313810998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3139863f95b1Smrgas_fn_error $? "no acceptable C compiler found in \$PATH 3140863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3141ff7e0accSmrg 3142ff7e0accSmrg# Provide some information about the compiler. 3143863f95b1Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3144a005d216Smrgset X $ac_compile 3145a005d216Smrgac_compiler=$2 3146863f95b1Smrgfor ac_option in --version -v -V -qversion; do 3147863f95b1Smrg { { ac_try="$ac_compiler $ac_option >&5" 3148ff7e0accSmrgcase "(($ac_try" in 3149ff7e0accSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150ff7e0accSmrg *) ac_try_echo=$ac_try;; 3151ff7e0accSmrgesac 3152863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3153863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 3154863f95b1Smrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3155ff7e0accSmrg ac_status=$? 3156863f95b1Smrg if test -s conftest.err; then 3157863f95b1Smrg sed '10a\ 3158863f95b1Smrg... rest of stderr output deleted ... 3159863f95b1Smrg 10q' conftest.err >conftest.er1 3160863f95b1Smrg cat conftest.er1 >&5 3161863f95b1Smrg fi 3162863f95b1Smrg rm -f conftest.er1 conftest.err 3163863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3164863f95b1Smrg test $ac_status = 0; } 3165863f95b1Smrgdone 3166ff7e0accSmrg 3167863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3168ff7e0accSmrg/* end confdefs.h. */ 3169ff7e0accSmrg 3170ff7e0accSmrgint 3171ff7e0accSmrgmain () 3172ff7e0accSmrg{ 3173ff7e0accSmrg 3174ff7e0accSmrg ; 3175ff7e0accSmrg return 0; 3176ff7e0accSmrg} 3177ff7e0accSmrg_ACEOF 3178ff7e0accSmrgac_clean_files_save=$ac_clean_files 3179a005d216Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3180ff7e0accSmrg# Try to create an executable without -o first, disregard a.out. 3181ff7e0accSmrg# It will help us diagnose broken compilers, and finding out an intuition 3182ff7e0accSmrg# of exeext. 3183863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3184863f95b1Smrg$as_echo_n "checking whether the C compiler works... " >&6; } 3185a005d216Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3186a005d216Smrg 3187a005d216Smrg# The possible output files: 3188a005d216Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3189a005d216Smrg 3190ff7e0accSmrgac_rmfiles= 3191ff7e0accSmrgfor ac_file in $ac_files 3192ff7e0accSmrgdo 3193ff7e0accSmrg case $ac_file in 3194a005d216Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3195ff7e0accSmrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3196ff7e0accSmrg esac 3197ff7e0accSmrgdone 3198ff7e0accSmrgrm -f $ac_rmfiles 3199ff7e0accSmrg 3200863f95b1Smrgif { { ac_try="$ac_link_default" 3201ff7e0accSmrgcase "(($ac_try" in 3202ff7e0accSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3203ff7e0accSmrg *) ac_try_echo=$ac_try;; 3204ff7e0accSmrgesac 3205863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3206863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 3207ff7e0accSmrg (eval "$ac_link_default") 2>&5 3208ff7e0accSmrg ac_status=$? 3209863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3210863f95b1Smrg test $ac_status = 0; }; then : 3211ff7e0accSmrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3212ff7e0accSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3213ff7e0accSmrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3214ff7e0accSmrg# so that the user can short-circuit this test for compilers unknown to 3215ff7e0accSmrg# Autoconf. 3216ff7e0accSmrgfor ac_file in $ac_files '' 3217ff7e0accSmrgdo 3218ff7e0accSmrg test -f "$ac_file" || continue 3219ff7e0accSmrg case $ac_file in 3220a005d216Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3221ff7e0accSmrg ;; 3222ff7e0accSmrg [ab].out ) 3223ff7e0accSmrg # We found the default executable, but exeext='' is most 3224ff7e0accSmrg # certainly right. 3225ff7e0accSmrg break;; 3226ff7e0accSmrg *.* ) 3227863f95b1Smrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3228ff7e0accSmrg then :; else 3229ff7e0accSmrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3230ff7e0accSmrg fi 3231ff7e0accSmrg # We set ac_cv_exeext here because the later test for it is not 3232ff7e0accSmrg # safe: cross compilers may not add the suffix if given an `-o' 3233ff7e0accSmrg # argument, so we may need to know it at that point already. 3234ff7e0accSmrg # Even if this section looks crufty: it has the advantage of 3235ff7e0accSmrg # actually working. 3236ff7e0accSmrg break;; 3237ff7e0accSmrg * ) 3238ff7e0accSmrg break;; 3239ff7e0accSmrg esac 3240ff7e0accSmrgdone 3241ff7e0accSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3242ff7e0accSmrg 3243ff7e0accSmrgelse 3244ff7e0accSmrg ac_file='' 3245ff7e0accSmrgfi 3246863f95b1Smrgif test -z "$ac_file"; then : 3247863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3248863f95b1Smrg$as_echo "no" >&6; } 3249863f95b1Smrg$as_echo "$as_me: failed program was:" >&5 3250ff7e0accSmrgsed 's/^/| /' conftest.$ac_ext >&5 3251ff7e0accSmrg 3252863f95b1Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 325310998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3254863f95b1Smrgas_fn_error 77 "C compiler cannot create executables 3255863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3256863f95b1Smrgelse 3257863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3258863f95b1Smrg$as_echo "yes" >&6; } 3259ff7e0accSmrgfi 3260863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3261863f95b1Smrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3262863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3263863f95b1Smrg$as_echo "$ac_file" >&6; } 3264ff7e0accSmrgac_exeext=$ac_cv_exeext 3265ff7e0accSmrg 3266a005d216Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3267ff7e0accSmrgac_clean_files=$ac_clean_files_save 3268863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3269a005d216Smrg$as_echo_n "checking for suffix of executables... " >&6; } 3270863f95b1Smrgif { { ac_try="$ac_link" 3271ff7e0accSmrgcase "(($ac_try" in 3272ff7e0accSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273ff7e0accSmrg *) ac_try_echo=$ac_try;; 3274ff7e0accSmrgesac 3275863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3276863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 3277ff7e0accSmrg (eval "$ac_link") 2>&5 3278ff7e0accSmrg ac_status=$? 3279863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3280863f95b1Smrg test $ac_status = 0; }; then : 3281ff7e0accSmrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3282ff7e0accSmrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3283ff7e0accSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3284ff7e0accSmrg# `rm'. 3285ff7e0accSmrgfor ac_file in conftest.exe conftest conftest.*; do 3286ff7e0accSmrg test -f "$ac_file" || continue 3287ff7e0accSmrg case $ac_file in 3288a005d216Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3289ff7e0accSmrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3290ff7e0accSmrg break;; 3291ff7e0accSmrg * ) break;; 3292ff7e0accSmrg esac 3293ff7e0accSmrgdone 3294ff7e0accSmrgelse 3295863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 329610998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3297863f95b1Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3298863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3299ff7e0accSmrgfi 3300863f95b1Smrgrm -f conftest conftest$ac_cv_exeext 3301863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3302a005d216Smrg$as_echo "$ac_cv_exeext" >&6; } 3303ff7e0accSmrg 3304ff7e0accSmrgrm -f conftest.$ac_ext 3305ff7e0accSmrgEXEEXT=$ac_cv_exeext 3306ff7e0accSmrgac_exeext=$EXEEXT 3307863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3308863f95b1Smrg/* end confdefs.h. */ 3309863f95b1Smrg#include <stdio.h> 3310863f95b1Smrgint 3311863f95b1Smrgmain () 3312863f95b1Smrg{ 3313863f95b1SmrgFILE *f = fopen ("conftest.out", "w"); 3314863f95b1Smrg return ferror (f) || fclose (f) != 0; 3315863f95b1Smrg 3316863f95b1Smrg ; 3317863f95b1Smrg return 0; 3318863f95b1Smrg} 3319863f95b1Smrg_ACEOF 3320863f95b1Smrgac_clean_files="$ac_clean_files conftest.out" 3321863f95b1Smrg# Check that the compiler produces executables we can run. If not, either 3322863f95b1Smrg# the compiler is broken, or we cross compile. 3323863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3324863f95b1Smrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3325863f95b1Smrgif test "$cross_compiling" != yes; then 3326863f95b1Smrg { { ac_try="$ac_link" 3327863f95b1Smrgcase "(($ac_try" in 3328863f95b1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329863f95b1Smrg *) ac_try_echo=$ac_try;; 3330863f95b1Smrgesac 3331863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3332863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 3333863f95b1Smrg (eval "$ac_link") 2>&5 3334863f95b1Smrg ac_status=$? 3335863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336863f95b1Smrg test $ac_status = 0; } 3337863f95b1Smrg if { ac_try='./conftest$ac_cv_exeext' 3338863f95b1Smrg { { case "(($ac_try" in 3339863f95b1Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3340863f95b1Smrg *) ac_try_echo=$ac_try;; 3341863f95b1Smrgesac 3342863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3343863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 3344863f95b1Smrg (eval "$ac_try") 2>&5 3345863f95b1Smrg ac_status=$? 3346863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3347863f95b1Smrg test $ac_status = 0; }; }; then 3348863f95b1Smrg cross_compiling=no 3349863f95b1Smrg else 3350863f95b1Smrg if test "$cross_compiling" = maybe; then 3351863f95b1Smrg cross_compiling=yes 3352863f95b1Smrg else 3353863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354863f95b1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355863f95b1Smrgas_fn_error $? "cannot run C compiled programs. 3356863f95b1SmrgIf you meant to cross compile, use \`--host'. 3357863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3358863f95b1Smrg fi 3359863f95b1Smrg fi 3360863f95b1Smrgfi 3361863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3362863f95b1Smrg$as_echo "$cross_compiling" >&6; } 3363863f95b1Smrg 3364863f95b1Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3365863f95b1Smrgac_clean_files=$ac_clean_files_save 3366863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3367a005d216Smrg$as_echo_n "checking for suffix of object files... " >&6; } 3368863f95b1Smrgif ${ac_cv_objext+:} false; then : 3369a005d216Smrg $as_echo_n "(cached) " >&6 3370ff7e0accSmrgelse 3371863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372ff7e0accSmrg/* end confdefs.h. */ 3373ff7e0accSmrg 3374ff7e0accSmrgint 3375ff7e0accSmrgmain () 3376ff7e0accSmrg{ 3377ff7e0accSmrg 3378ff7e0accSmrg ; 3379ff7e0accSmrg return 0; 3380ff7e0accSmrg} 3381ff7e0accSmrg_ACEOF 3382ff7e0accSmrgrm -f conftest.o conftest.obj 3383863f95b1Smrgif { { ac_try="$ac_compile" 3384ff7e0accSmrgcase "(($ac_try" in 3385ff7e0accSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3386ff7e0accSmrg *) ac_try_echo=$ac_try;; 3387ff7e0accSmrgesac 3388863f95b1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3389863f95b1Smrg$as_echo "$ac_try_echo"; } >&5 3390ff7e0accSmrg (eval "$ac_compile") 2>&5 3391ff7e0accSmrg ac_status=$? 3392863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393863f95b1Smrg test $ac_status = 0; }; then : 3394ff7e0accSmrg for ac_file in conftest.o conftest.obj conftest.*; do 3395ff7e0accSmrg test -f "$ac_file" || continue; 3396ff7e0accSmrg case $ac_file in 3397a005d216Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3398ff7e0accSmrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3399ff7e0accSmrg break;; 3400ff7e0accSmrg esac 3401ff7e0accSmrgdone 3402ff7e0accSmrgelse 3403a005d216Smrg $as_echo "$as_me: failed program was:" >&5 3404ff7e0accSmrgsed 's/^/| /' conftest.$ac_ext >&5 3405ff7e0accSmrg 3406863f95b1Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 340710998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3408863f95b1Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3409863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 3410ff7e0accSmrgfi 3411ff7e0accSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3412ff7e0accSmrgfi 3413863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3414a005d216Smrg$as_echo "$ac_cv_objext" >&6; } 3415ff7e0accSmrgOBJEXT=$ac_cv_objext 3416ff7e0accSmrgac_objext=$OBJEXT 3417863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3418a005d216Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3419863f95b1Smrgif ${ac_cv_c_compiler_gnu+:} false; then : 3420a005d216Smrg $as_echo_n "(cached) " >&6 3421ff7e0accSmrgelse 3422863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423ff7e0accSmrg/* end confdefs.h. */ 3424ff7e0accSmrg 3425ff7e0accSmrgint 3426ff7e0accSmrgmain () 3427ff7e0accSmrg{ 3428ff7e0accSmrg#ifndef __GNUC__ 3429ff7e0accSmrg choke me 3430ff7e0accSmrg#endif 3431ff7e0accSmrg 3432ff7e0accSmrg ; 3433ff7e0accSmrg return 0; 3434ff7e0accSmrg} 3435ff7e0accSmrg_ACEOF 3436863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 3437ff7e0accSmrg ac_compiler_gnu=yes 3438ff7e0accSmrgelse 3439863f95b1Smrg ac_compiler_gnu=no 3440ff7e0accSmrgfi 3441ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3442ff7e0accSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3443ff7e0accSmrg 3444ff7e0accSmrgfi 3445863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3446a005d216Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3447a005d216Smrgif test $ac_compiler_gnu = yes; then 3448a005d216Smrg GCC=yes 3449a005d216Smrgelse 3450a005d216Smrg GCC= 3451a005d216Smrgfi 3452ff7e0accSmrgac_test_CFLAGS=${CFLAGS+set} 3453ff7e0accSmrgac_save_CFLAGS=$CFLAGS 3454863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3455a005d216Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3456863f95b1Smrgif ${ac_cv_prog_cc_g+:} false; then : 3457a005d216Smrg $as_echo_n "(cached) " >&6 3458ff7e0accSmrgelse 3459ff7e0accSmrg ac_save_c_werror_flag=$ac_c_werror_flag 3460ff7e0accSmrg ac_c_werror_flag=yes 3461ff7e0accSmrg ac_cv_prog_cc_g=no 3462ff7e0accSmrg CFLAGS="-g" 3463863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464ff7e0accSmrg/* end confdefs.h. */ 3465ff7e0accSmrg 3466ff7e0accSmrgint 3467ff7e0accSmrgmain () 3468ff7e0accSmrg{ 3469ff7e0accSmrg 3470ff7e0accSmrg ; 3471ff7e0accSmrg return 0; 3472ff7e0accSmrg} 3473ff7e0accSmrg_ACEOF 3474863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 3475ff7e0accSmrg ac_cv_prog_cc_g=yes 3476ff7e0accSmrgelse 3477863f95b1Smrg CFLAGS="" 3478863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479ff7e0accSmrg/* end confdefs.h. */ 3480ff7e0accSmrg 3481ff7e0accSmrgint 3482ff7e0accSmrgmain () 3483ff7e0accSmrg{ 3484ff7e0accSmrg 3485ff7e0accSmrg ; 3486ff7e0accSmrg return 0; 3487ff7e0accSmrg} 3488ff7e0accSmrg_ACEOF 3489863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 3490ff7e0accSmrg 3491863f95b1Smrgelse 3492863f95b1Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3493ff7e0accSmrg CFLAGS="-g" 3494863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495ff7e0accSmrg/* end confdefs.h. */ 3496ff7e0accSmrg 3497ff7e0accSmrgint 3498ff7e0accSmrgmain () 3499ff7e0accSmrg{ 3500ff7e0accSmrg 3501ff7e0accSmrg ; 3502ff7e0accSmrg return 0; 3503ff7e0accSmrg} 3504ff7e0accSmrg_ACEOF 3505863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 3506ff7e0accSmrg ac_cv_prog_cc_g=yes 3507ff7e0accSmrgfi 3508ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509ff7e0accSmrgfi 3510ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3511ff7e0accSmrgfi 3512ff7e0accSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3513ff7e0accSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3514ff7e0accSmrgfi 3515863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3516a005d216Smrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3517ff7e0accSmrgif test "$ac_test_CFLAGS" = set; then 3518ff7e0accSmrg CFLAGS=$ac_save_CFLAGS 3519ff7e0accSmrgelif test $ac_cv_prog_cc_g = yes; then 3520ff7e0accSmrg if test "$GCC" = yes; then 3521ff7e0accSmrg CFLAGS="-g -O2" 3522ff7e0accSmrg else 3523ff7e0accSmrg CFLAGS="-g" 3524ff7e0accSmrg fi 3525ff7e0accSmrgelse 3526ff7e0accSmrg if test "$GCC" = yes; then 3527ff7e0accSmrg CFLAGS="-O2" 3528ff7e0accSmrg else 3529ff7e0accSmrg CFLAGS= 3530ff7e0accSmrg fi 3531ff7e0accSmrgfi 3532863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3533a005d216Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3534863f95b1Smrgif ${ac_cv_prog_cc_c89+:} false; then : 3535a005d216Smrg $as_echo_n "(cached) " >&6 3536ff7e0accSmrgelse 3537ff7e0accSmrg ac_cv_prog_cc_c89=no 3538ff7e0accSmrgac_save_CC=$CC 3539863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3540ff7e0accSmrg/* end confdefs.h. */ 3541ff7e0accSmrg#include <stdarg.h> 3542ff7e0accSmrg#include <stdio.h> 3543ff7e0accSmrg#include <sys/types.h> 3544ff7e0accSmrg#include <sys/stat.h> 3545ff7e0accSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3546ff7e0accSmrgstruct buf { int x; }; 3547ff7e0accSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3548ff7e0accSmrgstatic char *e (p, i) 3549ff7e0accSmrg char **p; 3550ff7e0accSmrg int i; 3551ff7e0accSmrg{ 3552ff7e0accSmrg return p[i]; 3553ff7e0accSmrg} 3554ff7e0accSmrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3555ff7e0accSmrg{ 3556ff7e0accSmrg char *s; 3557ff7e0accSmrg va_list v; 3558ff7e0accSmrg va_start (v,p); 3559ff7e0accSmrg s = g (p, va_arg (v,int)); 3560ff7e0accSmrg va_end (v); 3561ff7e0accSmrg return s; 3562ff7e0accSmrg} 3563ff7e0accSmrg 3564ff7e0accSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3565ff7e0accSmrg function prototypes and stuff, but not '\xHH' hex character constants. 3566ff7e0accSmrg These don't provoke an error unfortunately, instead are silently treated 3567ff7e0accSmrg as 'x'. The following induces an error, until -std is added to get 3568ff7e0accSmrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3569ff7e0accSmrg array size at least. It's necessary to write '\x00'==0 to get something 3570ff7e0accSmrg that's true only with -std. */ 3571ff7e0accSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3572ff7e0accSmrg 3573ff7e0accSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3574ff7e0accSmrg inside strings and character constants. */ 3575ff7e0accSmrg#define FOO(x) 'x' 3576ff7e0accSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3577ff7e0accSmrg 3578ff7e0accSmrgint test (int i, double x); 3579ff7e0accSmrgstruct s1 {int (*f) (int a);}; 3580ff7e0accSmrgstruct s2 {int (*f) (double a);}; 3581ff7e0accSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3582ff7e0accSmrgint argc; 3583ff7e0accSmrgchar **argv; 3584ff7e0accSmrgint 3585ff7e0accSmrgmain () 3586ff7e0accSmrg{ 3587ff7e0accSmrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3588ff7e0accSmrg ; 3589ff7e0accSmrg return 0; 3590ff7e0accSmrg} 3591ff7e0accSmrg_ACEOF 3592ff7e0accSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3593ff7e0accSmrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3594ff7e0accSmrgdo 3595ff7e0accSmrg CC="$ac_save_CC $ac_arg" 3596863f95b1Smrg if ac_fn_c_try_compile "$LINENO"; then : 3597ff7e0accSmrg ac_cv_prog_cc_c89=$ac_arg 3598ff7e0accSmrgfi 3599863f95b1Smrgrm -f core conftest.err conftest.$ac_objext 3600863f95b1Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3601863f95b1Smrgdone 3602863f95b1Smrgrm -f conftest.$ac_ext 3603863f95b1SmrgCC=$ac_save_CC 3604863f95b1Smrg 3605ff7e0accSmrgfi 3606863f95b1Smrg# AC_CACHE_VAL 3607863f95b1Smrgcase "x$ac_cv_prog_cc_c89" in 3608863f95b1Smrg x) 3609863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3610863f95b1Smrg$as_echo "none needed" >&6; } ;; 3611863f95b1Smrg xno) 3612863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3613863f95b1Smrg$as_echo "unsupported" >&6; } ;; 3614863f95b1Smrg *) 3615863f95b1Smrg CC="$CC $ac_cv_prog_cc_c89" 3616863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3617863f95b1Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3618863f95b1Smrgesac 3619863f95b1Smrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3620ff7e0accSmrg 3621863f95b1Smrgfi 3622ff7e0accSmrg 3623863f95b1Smrgac_ext=c 3624863f95b1Smrgac_cpp='$CPP $CPPFLAGS' 3625863f95b1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626863f95b1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627863f95b1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3628ff7e0accSmrg 3629ff7e0accSmrgdepcc="$CC" am_compiler_list= 3630ff7e0accSmrg 3631863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3632a005d216Smrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3633863f95b1Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3634a005d216Smrg $as_echo_n "(cached) " >&6 3635ff7e0accSmrgelse 3636ff7e0accSmrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3637ff7e0accSmrg # We make a subdir and do the tests there. Otherwise we can end up 3638ff7e0accSmrg # making bogus files that we don't know about and never remove. For 3639ff7e0accSmrg # instance it was reported that on HP-UX the gcc test will end up 3640ff7e0accSmrg # making a dummy file named `D' -- because `-MD' means `put the output 3641ff7e0accSmrg # in D'. 3642ff7e0accSmrg mkdir conftest.dir 3643ff7e0accSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 3644ff7e0accSmrg # using a relative directory. 3645ff7e0accSmrg cp "$am_depcomp" conftest.dir 3646ff7e0accSmrg cd conftest.dir 3647ff7e0accSmrg # We will build objects and dependencies in a subdirectory because 3648ff7e0accSmrg # it helps to detect inapplicable dependency modes. For instance 3649ff7e0accSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 3650ff7e0accSmrg # side effect of compilation, but ICC will put the dependencies in 3651ff7e0accSmrg # the current directory while Tru64 will put them in the object 3652ff7e0accSmrg # directory. 3653ff7e0accSmrg mkdir sub 3654ff7e0accSmrg 3655ff7e0accSmrg am_cv_CC_dependencies_compiler_type=none 3656ff7e0accSmrg if test "$am_compiler_list" = ""; then 3657ff7e0accSmrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3658ff7e0accSmrg fi 365910998002Smrg am__universal=false 366010998002Smrg case " $depcc " in #( 366110998002Smrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 366210998002Smrg esac 366310998002Smrg 3664ff7e0accSmrg for depmode in $am_compiler_list; do 3665ff7e0accSmrg # Setup a source with many dependencies, because some compilers 3666ff7e0accSmrg # like to wrap large dependency lists on column 80 (with \), and 3667ff7e0accSmrg # we should not choose a depcomp mode which is confused by this. 3668ff7e0accSmrg # 3669ff7e0accSmrg # We need to recreate these files for each test, as the compiler may 3670ff7e0accSmrg # overwrite some of them when testing with obscure command lines. 3671ff7e0accSmrg # This happens at least with the AIX C compiler. 3672ff7e0accSmrg : > sub/conftest.c 3673ff7e0accSmrg for i in 1 2 3 4 5 6; do 3674ff7e0accSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3675ff7e0accSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3676ff7e0accSmrg # Solaris 8's {/usr,}/bin/sh. 3677ff7e0accSmrg touch sub/conftst$i.h 3678ff7e0accSmrg done 3679ff7e0accSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3680ff7e0accSmrg 368110998002Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 368210998002Smrg # mode. It turns out that the SunPro C++ compiler does not properly 368310998002Smrg # handle `-M -o', and we need to detect this. Also, some Intel 368410998002Smrg # versions had trouble with output in subdirs 368510998002Smrg am__obj=sub/conftest.${OBJEXT-o} 368610998002Smrg am__minus_obj="-o $am__obj" 3687ff7e0accSmrg case $depmode in 368810998002Smrg gcc) 368910998002Smrg # This depmode causes a compiler race in universal mode. 369010998002Smrg test "$am__universal" = false || continue 369110998002Smrg ;; 3692ff7e0accSmrg nosideeffect) 3693ff7e0accSmrg # after this tag, mechanisms are not by side-effect, so they'll 3694ff7e0accSmrg # only be used when explicitly requested 3695ff7e0accSmrg if test "x$enable_dependency_tracking" = xyes; then 3696ff7e0accSmrg continue 3697ff7e0accSmrg else 3698ff7e0accSmrg break 3699ff7e0accSmrg fi 3700ff7e0accSmrg ;; 370110998002Smrg msvisualcpp | msvcmsys) 370210998002Smrg # This compiler won't grok `-c -o', but also, the minuso test has 370310998002Smrg # not run yet. These depmodes are late enough in the game, and 370410998002Smrg # so weak that their functioning should not be impacted. 370510998002Smrg am__obj=conftest.${OBJEXT-o} 370610998002Smrg am__minus_obj= 370710998002Smrg ;; 3708ff7e0accSmrg none) break ;; 3709ff7e0accSmrg esac 3710ff7e0accSmrg if depmode=$depmode \ 371110998002Smrg source=sub/conftest.c object=$am__obj \ 3712ff7e0accSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 371310998002Smrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3714ff7e0accSmrg >/dev/null 2>conftest.err && 3715ff7e0accSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3716ff7e0accSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 371710998002Smrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3718ff7e0accSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3719ff7e0accSmrg # icc doesn't choke on unknown options, it will just issue warnings 3720ff7e0accSmrg # or remarks (even with -Werror). So we grep stderr for any message 3721ff7e0accSmrg # that says an option was ignored or not supported. 3722ff7e0accSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3723ff7e0accSmrg # icc: Command line warning: ignoring option '-M'; no argument required 3724ff7e0accSmrg # The diagnosis changed in icc 8.0: 3725ff7e0accSmrg # icc: Command line remark: option '-MP' not supported 3726ff7e0accSmrg if (grep 'ignoring option' conftest.err || 3727ff7e0accSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3728ff7e0accSmrg am_cv_CC_dependencies_compiler_type=$depmode 3729ff7e0accSmrg break 3730ff7e0accSmrg fi 3731ff7e0accSmrg fi 3732ff7e0accSmrg done 3733ff7e0accSmrg 3734ff7e0accSmrg cd .. 3735ff7e0accSmrg rm -rf conftest.dir 3736ff7e0accSmrgelse 3737ff7e0accSmrg am_cv_CC_dependencies_compiler_type=none 3738ff7e0accSmrgfi 3739ff7e0accSmrg 3740ff7e0accSmrgfi 3741863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3742a005d216Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3743ff7e0accSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3744ff7e0accSmrg 3745ff7e0accSmrg if 3746ff7e0accSmrg test "x$enable_dependency_tracking" != xno \ 3747ff7e0accSmrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3748ff7e0accSmrg am__fastdepCC_TRUE= 3749ff7e0accSmrg am__fastdepCC_FALSE='#' 3750ff7e0accSmrgelse 3751ff7e0accSmrg am__fastdepCC_TRUE='#' 3752ff7e0accSmrg am__fastdepCC_FALSE= 3753ff7e0accSmrgfi 3754ff7e0accSmrg 3755ff7e0accSmrg 375610998002Smrg 375710998002Smrgac_ext=c 375810998002Smrgac_cpp='$CPP $CPPFLAGS' 375910998002Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 376010998002Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 376110998002Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3762863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 376310998002Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 376410998002Smrg# On Suns, sometimes $CPP names a directory. 376510998002Smrgif test -n "$CPP" && test -d "$CPP"; then 376610998002Smrg CPP= 376710998002Smrgfi 376810998002Smrgif test -z "$CPP"; then 3769863f95b1Smrg if ${ac_cv_prog_CPP+:} false; then : 377010998002Smrg $as_echo_n "(cached) " >&6 377110998002Smrgelse 377210998002Smrg # Double quotes because CPP needs to be expanded 377310998002Smrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 377410998002Smrg do 377510998002Smrg ac_preproc_ok=false 377610998002Smrgfor ac_c_preproc_warn_flag in '' yes 377710998002Smrgdo 377810998002Smrg # Use a header file that comes with gcc, so configuring glibc 377910998002Smrg # with a fresh cross-compiler works. 378010998002Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 378110998002Smrg # <limits.h> exists even on freestanding compilers. 378210998002Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 378310998002Smrg # not just through cpp. "Syntax error" is here to catch this case. 3784863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 378510998002Smrg/* end confdefs.h. */ 378610998002Smrg#ifdef __STDC__ 378710998002Smrg# include <limits.h> 378810998002Smrg#else 378910998002Smrg# include <assert.h> 379010998002Smrg#endif 379110998002Smrg Syntax error 379210998002Smrg_ACEOF 3793863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then : 379410998002Smrg 3795863f95b1Smrgelse 379610998002Smrg # Broken: fails on valid input. 379710998002Smrgcontinue 379810998002Smrgfi 3799863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext 380010998002Smrg 380110998002Smrg # OK, works on sane cases. Now check whether nonexistent headers 380210998002Smrg # can be detected and how. 3803863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 380410998002Smrg/* end confdefs.h. */ 380510998002Smrg#include <ac_nonexistent.h> 380610998002Smrg_ACEOF 3807863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then : 380810998002Smrg # Broken: success on invalid input. 380910998002Smrgcontinue 381010998002Smrgelse 381110998002Smrg # Passes both tests. 381210998002Smrgac_preproc_ok=: 381310998002Smrgbreak 381410998002Smrgfi 3815863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext 381610998002Smrg 381710998002Smrgdone 381810998002Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3819863f95b1Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3820863f95b1Smrgif $ac_preproc_ok; then : 382110998002Smrg break 382210998002Smrgfi 382310998002Smrg 382410998002Smrg done 382510998002Smrg ac_cv_prog_CPP=$CPP 382610998002Smrg 382710998002Smrgfi 382810998002Smrg CPP=$ac_cv_prog_CPP 382910998002Smrgelse 383010998002Smrg ac_cv_prog_CPP=$CPP 383110998002Smrgfi 3832863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 383310998002Smrg$as_echo "$CPP" >&6; } 383410998002Smrgac_preproc_ok=false 383510998002Smrgfor ac_c_preproc_warn_flag in '' yes 383610998002Smrgdo 383710998002Smrg # Use a header file that comes with gcc, so configuring glibc 383810998002Smrg # with a fresh cross-compiler works. 383910998002Smrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 384010998002Smrg # <limits.h> exists even on freestanding compilers. 384110998002Smrg # On the NeXT, cc -E runs the code through the compiler's parser, 384210998002Smrg # not just through cpp. "Syntax error" is here to catch this case. 3843863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 384410998002Smrg/* end confdefs.h. */ 384510998002Smrg#ifdef __STDC__ 384610998002Smrg# include <limits.h> 384710998002Smrg#else 384810998002Smrg# include <assert.h> 384910998002Smrg#endif 385010998002Smrg Syntax error 385110998002Smrg_ACEOF 3852863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then : 385310998002Smrg 3854863f95b1Smrgelse 385510998002Smrg # Broken: fails on valid input. 385610998002Smrgcontinue 385710998002Smrgfi 3858863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext 385910998002Smrg 386010998002Smrg # OK, works on sane cases. Now check whether nonexistent headers 386110998002Smrg # can be detected and how. 3862863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 386310998002Smrg/* end confdefs.h. */ 386410998002Smrg#include <ac_nonexistent.h> 386510998002Smrg_ACEOF 3866863f95b1Smrgif ac_fn_c_try_cpp "$LINENO"; then : 386710998002Smrg # Broken: success on invalid input. 386810998002Smrgcontinue 386910998002Smrgelse 387010998002Smrg # Passes both tests. 387110998002Smrgac_preproc_ok=: 387210998002Smrgbreak 387310998002Smrgfi 3874863f95b1Smrgrm -f conftest.err conftest.i conftest.$ac_ext 387510998002Smrg 387610998002Smrgdone 387710998002Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3878863f95b1Smrgrm -f conftest.i conftest.err conftest.$ac_ext 3879863f95b1Smrgif $ac_preproc_ok; then : 3880863f95b1Smrg 388110998002Smrgelse 3882863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 388310998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3884863f95b1Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3885863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 388610998002Smrgfi 388710998002Smrg 388810998002Smrgac_ext=c 388910998002Smrgac_cpp='$CPP $CPPFLAGS' 389010998002Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 389110998002Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 389210998002Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 389310998002Smrg 389410998002Smrg 3895863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 389610998002Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3897863f95b1Smrgif ${ac_cv_path_GREP+:} false; then : 389810998002Smrg $as_echo_n "(cached) " >&6 389910998002Smrgelse 390010998002Smrg if test -z "$GREP"; then 390110998002Smrg ac_path_GREP_found=false 390210998002Smrg # Loop through the user's path and test for each of PROGNAME-LIST 390310998002Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 390410998002Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 390510998002Smrgdo 390610998002Smrg IFS=$as_save_IFS 390710998002Smrg test -z "$as_dir" && as_dir=. 3908863f95b1Smrg for ac_prog in grep ggrep; do 390910998002Smrg for ac_exec_ext in '' $ac_executable_extensions; do 391010998002Smrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 391110998002Smrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 391210998002Smrg# Check for GNU ac_path_GREP and select it if it is found. 391310998002Smrg # Check for GNU $ac_path_GREP 391410998002Smrgcase `"$ac_path_GREP" --version 2>&1` in 391510998002Smrg*GNU*) 391610998002Smrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 391710998002Smrg*) 391810998002Smrg ac_count=0 391910998002Smrg $as_echo_n 0123456789 >"conftest.in" 392010998002Smrg while : 392110998002Smrg do 392210998002Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 392310998002Smrg mv "conftest.tmp" "conftest.in" 392410998002Smrg cp "conftest.in" "conftest.nl" 392510998002Smrg $as_echo 'GREP' >> "conftest.nl" 392610998002Smrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 392710998002Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3928863f95b1Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 392910998002Smrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 393010998002Smrg # Best one so far, save it but keep looking for a better one 393110998002Smrg ac_cv_path_GREP="$ac_path_GREP" 393210998002Smrg ac_path_GREP_max=$ac_count 393310998002Smrg fi 393410998002Smrg # 10*(2^10) chars as input seems more than enough 393510998002Smrg test $ac_count -gt 10 && break 393610998002Smrg done 393710998002Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 393810998002Smrgesac 393910998002Smrg 394010998002Smrg $ac_path_GREP_found && break 3 394110998002Smrg done 394210998002Smrg done 3943863f95b1Smrg done 394410998002SmrgIFS=$as_save_IFS 394510998002Smrg if test -z "$ac_cv_path_GREP"; then 3946863f95b1Smrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 394710998002Smrg fi 394810998002Smrgelse 394910998002Smrg ac_cv_path_GREP=$GREP 395010998002Smrgfi 395110998002Smrg 395210998002Smrgfi 3953863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 395410998002Smrg$as_echo "$ac_cv_path_GREP" >&6; } 395510998002Smrg GREP="$ac_cv_path_GREP" 395610998002Smrg 395710998002Smrg 3958863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 395910998002Smrg$as_echo_n "checking for egrep... " >&6; } 3960863f95b1Smrgif ${ac_cv_path_EGREP+:} false; then : 396110998002Smrg $as_echo_n "(cached) " >&6 396210998002Smrgelse 396310998002Smrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 396410998002Smrg then ac_cv_path_EGREP="$GREP -E" 396510998002Smrg else 396610998002Smrg if test -z "$EGREP"; then 396710998002Smrg ac_path_EGREP_found=false 396810998002Smrg # Loop through the user's path and test for each of PROGNAME-LIST 396910998002Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 397010998002Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 397110998002Smrgdo 397210998002Smrg IFS=$as_save_IFS 397310998002Smrg test -z "$as_dir" && as_dir=. 3974863f95b1Smrg for ac_prog in egrep; do 397510998002Smrg for ac_exec_ext in '' $ac_executable_extensions; do 397610998002Smrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 397710998002Smrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 397810998002Smrg# Check for GNU ac_path_EGREP and select it if it is found. 397910998002Smrg # Check for GNU $ac_path_EGREP 398010998002Smrgcase `"$ac_path_EGREP" --version 2>&1` in 398110998002Smrg*GNU*) 398210998002Smrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 398310998002Smrg*) 398410998002Smrg ac_count=0 398510998002Smrg $as_echo_n 0123456789 >"conftest.in" 398610998002Smrg while : 398710998002Smrg do 398810998002Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 398910998002Smrg mv "conftest.tmp" "conftest.in" 399010998002Smrg cp "conftest.in" "conftest.nl" 399110998002Smrg $as_echo 'EGREP' >> "conftest.nl" 399210998002Smrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 399310998002Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3994863f95b1Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 399510998002Smrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 399610998002Smrg # Best one so far, save it but keep looking for a better one 399710998002Smrg ac_cv_path_EGREP="$ac_path_EGREP" 399810998002Smrg ac_path_EGREP_max=$ac_count 399910998002Smrg fi 400010998002Smrg # 10*(2^10) chars as input seems more than enough 400110998002Smrg test $ac_count -gt 10 && break 400210998002Smrg done 400310998002Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 400410998002Smrgesac 400510998002Smrg 400610998002Smrg $ac_path_EGREP_found && break 3 400710998002Smrg done 400810998002Smrg done 4009863f95b1Smrg done 401010998002SmrgIFS=$as_save_IFS 401110998002Smrg if test -z "$ac_cv_path_EGREP"; then 4012863f95b1Smrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 401310998002Smrg fi 401410998002Smrgelse 401510998002Smrg ac_cv_path_EGREP=$EGREP 401610998002Smrgfi 401710998002Smrg 401810998002Smrg fi 401910998002Smrgfi 4020863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 402110998002Smrg$as_echo "$ac_cv_path_EGREP" >&6; } 402210998002Smrg EGREP="$ac_cv_path_EGREP" 402310998002Smrg 402410998002Smrg 4025863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 402610998002Smrg$as_echo_n "checking for ANSI C header files... " >&6; } 4027863f95b1Smrgif ${ac_cv_header_stdc+:} false; then : 402810998002Smrg $as_echo_n "(cached) " >&6 402910998002Smrgelse 4030863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 403110998002Smrg/* end confdefs.h. */ 403210998002Smrg#include <stdlib.h> 403310998002Smrg#include <stdarg.h> 403410998002Smrg#include <string.h> 403510998002Smrg#include <float.h> 403610998002Smrg 403710998002Smrgint 403810998002Smrgmain () 403910998002Smrg{ 404010998002Smrg 404110998002Smrg ; 404210998002Smrg return 0; 404310998002Smrg} 404410998002Smrg_ACEOF 4045863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 404610998002Smrg ac_cv_header_stdc=yes 404710998002Smrgelse 4048863f95b1Smrg ac_cv_header_stdc=no 404910998002Smrgfi 405010998002Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 405110998002Smrg 405210998002Smrgif test $ac_cv_header_stdc = yes; then 405310998002Smrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4054863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 405510998002Smrg/* end confdefs.h. */ 405610998002Smrg#include <string.h> 405710998002Smrg 405810998002Smrg_ACEOF 405910998002Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4060863f95b1Smrg $EGREP "memchr" >/dev/null 2>&1; then : 4061863f95b1Smrg 406210998002Smrgelse 406310998002Smrg ac_cv_header_stdc=no 406410998002Smrgfi 406510998002Smrgrm -f conftest* 406610998002Smrg 406710998002Smrgfi 406810998002Smrg 406910998002Smrgif test $ac_cv_header_stdc = yes; then 407010998002Smrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4071863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 407210998002Smrg/* end confdefs.h. */ 407310998002Smrg#include <stdlib.h> 407410998002Smrg 407510998002Smrg_ACEOF 407610998002Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4077863f95b1Smrg $EGREP "free" >/dev/null 2>&1; then : 4078863f95b1Smrg 407910998002Smrgelse 408010998002Smrg ac_cv_header_stdc=no 408110998002Smrgfi 408210998002Smrgrm -f conftest* 408310998002Smrg 408410998002Smrgfi 408510998002Smrg 408610998002Smrgif test $ac_cv_header_stdc = yes; then 408710998002Smrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4088863f95b1Smrg if test "$cross_compiling" = yes; then : 408910998002Smrg : 409010998002Smrgelse 4091863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 409210998002Smrg/* end confdefs.h. */ 409310998002Smrg#include <ctype.h> 409410998002Smrg#include <stdlib.h> 409510998002Smrg#if ((' ' & 0x0FF) == 0x020) 409610998002Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 409710998002Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 409810998002Smrg#else 409910998002Smrg# define ISLOWER(c) \ 410010998002Smrg (('a' <= (c) && (c) <= 'i') \ 410110998002Smrg || ('j' <= (c) && (c) <= 'r') \ 410210998002Smrg || ('s' <= (c) && (c) <= 'z')) 410310998002Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 410410998002Smrg#endif 410510998002Smrg 410610998002Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 410710998002Smrgint 410810998002Smrgmain () 410910998002Smrg{ 411010998002Smrg int i; 411110998002Smrg for (i = 0; i < 256; i++) 411210998002Smrg if (XOR (islower (i), ISLOWER (i)) 411310998002Smrg || toupper (i) != TOUPPER (i)) 411410998002Smrg return 2; 411510998002Smrg return 0; 411610998002Smrg} 411710998002Smrg_ACEOF 4118863f95b1Smrgif ac_fn_c_try_run "$LINENO"; then : 411910998002Smrg 4120863f95b1Smrgelse 4121863f95b1Smrg ac_cv_header_stdc=no 412210998002Smrgfi 4123863f95b1Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4124863f95b1Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 412510998002Smrgfi 412610998002Smrg 412710998002Smrgfi 412810998002Smrgfi 4129863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 413010998002Smrg$as_echo "$ac_cv_header_stdc" >&6; } 413110998002Smrgif test $ac_cv_header_stdc = yes; then 413210998002Smrg 4133863f95b1Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 413410998002Smrg 413510998002Smrgfi 413610998002Smrg 413710998002Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4138863f95b1Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4139863f95b1Smrg inttypes.h stdint.h unistd.h 4140863f95b1Smrgdo : 4141863f95b1Smrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4142863f95b1Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4143863f95b1Smrg" 4144863f95b1Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4145863f95b1Smrg cat >>confdefs.h <<_ACEOF 4146863f95b1Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4147863f95b1Smrg_ACEOF 4148863f95b1Smrg 4149863f95b1Smrgfi 4150863f95b1Smrg 4151863f95b1Smrgdone 415210998002Smrg 415310998002Smrg 415410998002Smrg 4155863f95b1Smrg ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4156863f95b1Smrgif test "x$ac_cv_header_minix_config_h" = xyes; then : 4157863f95b1Smrg MINIX=yes 4158863f95b1Smrgelse 4159863f95b1Smrg MINIX= 4160863f95b1Smrgfi 416110998002Smrg 416210998002Smrg 4163863f95b1Smrg if test "$MINIX" = yes; then 416410998002Smrg 4165863f95b1Smrg$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 416610998002Smrg 416710998002Smrg 4168863f95b1Smrg$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 416910998002Smrg 4170863f95b1Smrg 4171863f95b1Smrg$as_echo "#define _MINIX 1" >>confdefs.h 4172863f95b1Smrg 4173863f95b1Smrg fi 4174863f95b1Smrg 4175863f95b1Smrg 4176863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4177863f95b1Smrg$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4178863f95b1Smrgif ${ac_cv_safe_to_define___extensions__+:} false; then : 417910998002Smrg $as_echo_n "(cached) " >&6 418010998002Smrgelse 4181863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 418210998002Smrg/* end confdefs.h. */ 418310998002Smrg 4184863f95b1Smrg# define __EXTENSIONS__ 1 4185863f95b1Smrg $ac_includes_default 4186863f95b1Smrgint 4187863f95b1Smrgmain () 4188863f95b1Smrg{ 4189863f95b1Smrg 4190863f95b1Smrg ; 4191863f95b1Smrg return 0; 4192863f95b1Smrg} 419310998002Smrg_ACEOF 4194863f95b1Smrgif ac_fn_c_try_compile "$LINENO"; then : 4195863f95b1Smrg ac_cv_safe_to_define___extensions__=yes 419610998002Smrgelse 4197863f95b1Smrg ac_cv_safe_to_define___extensions__=no 419810998002Smrgfi 419910998002Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 420010998002Smrgfi 4201863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4202863f95b1Smrg$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4203863f95b1Smrg test $ac_cv_safe_to_define___extensions__ = yes && 4204863f95b1Smrg $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 420510998002Smrg 4206863f95b1Smrg $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4207863f95b1Smrg 4208863f95b1Smrg $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4209863f95b1Smrg 4210863f95b1Smrg $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4211863f95b1Smrg 4212863f95b1Smrg $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 421310998002Smrg 421410998002Smrg 421510998002Smrg 4216863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 421710998002Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4218863f95b1Smrgif ${ac_cv_prog_cc_c99+:} false; then : 421910998002Smrg $as_echo_n "(cached) " >&6 422010998002Smrgelse 422110998002Smrg ac_cv_prog_cc_c99=no 422210998002Smrgac_save_CC=$CC 4223863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 422410998002Smrg/* end confdefs.h. */ 422510998002Smrg#include <stdarg.h> 422610998002Smrg#include <stdbool.h> 422710998002Smrg#include <stdlib.h> 422810998002Smrg#include <wchar.h> 422910998002Smrg#include <stdio.h> 423010998002Smrg 423110998002Smrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 423210998002Smrg#define debug(...) fprintf (stderr, __VA_ARGS__) 423310998002Smrg#define showlist(...) puts (#__VA_ARGS__) 423410998002Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 423510998002Smrgstatic void 423610998002Smrgtest_varargs_macros (void) 423710998002Smrg{ 423810998002Smrg int x = 1234; 423910998002Smrg int y = 5678; 424010998002Smrg debug ("Flag"); 424110998002Smrg debug ("X = %d\n", x); 424210998002Smrg showlist (The first, second, and third items.); 424310998002Smrg report (x>y, "x is %d but y is %d", x, y); 424410998002Smrg} 424510998002Smrg 424610998002Smrg// Check long long types. 424710998002Smrg#define BIG64 18446744073709551615ull 424810998002Smrg#define BIG32 4294967295ul 424910998002Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 425010998002Smrg#if !BIG_OK 425110998002Smrg your preprocessor is broken; 425210998002Smrg#endif 425310998002Smrg#if BIG_OK 425410998002Smrg#else 425510998002Smrg your preprocessor is broken; 425610998002Smrg#endif 425710998002Smrgstatic long long int bignum = -9223372036854775807LL; 425810998002Smrgstatic unsigned long long int ubignum = BIG64; 425910998002Smrg 426010998002Smrgstruct incomplete_array 426110998002Smrg{ 426210998002Smrg int datasize; 426310998002Smrg double data[]; 426410998002Smrg}; 426510998002Smrg 426610998002Smrgstruct named_init { 426710998002Smrg int number; 426810998002Smrg const wchar_t *name; 426910998002Smrg double average; 427010998002Smrg}; 427110998002Smrg 427210998002Smrgtypedef const char *ccp; 427310998002Smrg 427410998002Smrgstatic inline int 427510998002Smrgtest_restrict (ccp restrict text) 427610998002Smrg{ 427710998002Smrg // See if C++-style comments work. 427810998002Smrg // Iterate through items via the restricted pointer. 427910998002Smrg // Also check for declarations in for loops. 428010998002Smrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 428110998002Smrg continue; 428210998002Smrg return 0; 428310998002Smrg} 428410998002Smrg 428510998002Smrg// Check varargs and va_copy. 428610998002Smrgstatic void 428710998002Smrgtest_varargs (const char *format, ...) 428810998002Smrg{ 428910998002Smrg va_list args; 429010998002Smrg va_start (args, format); 429110998002Smrg va_list args_copy; 429210998002Smrg va_copy (args_copy, args); 429310998002Smrg 429410998002Smrg const char *str; 429510998002Smrg int number; 429610998002Smrg float fnumber; 429710998002Smrg 429810998002Smrg while (*format) 429910998002Smrg { 430010998002Smrg switch (*format++) 430110998002Smrg { 430210998002Smrg case 's': // string 430310998002Smrg str = va_arg (args_copy, const char *); 430410998002Smrg break; 430510998002Smrg case 'd': // int 430610998002Smrg number = va_arg (args_copy, int); 430710998002Smrg break; 430810998002Smrg case 'f': // float 430910998002Smrg fnumber = va_arg (args_copy, double); 431010998002Smrg break; 431110998002Smrg default: 431210998002Smrg break; 431310998002Smrg } 431410998002Smrg } 431510998002Smrg va_end (args_copy); 431610998002Smrg va_end (args); 431710998002Smrg} 431810998002Smrg 431910998002Smrgint 432010998002Smrgmain () 432110998002Smrg{ 432210998002Smrg 432310998002Smrg // Check bool. 432410998002Smrg _Bool success = false; 432510998002Smrg 432610998002Smrg // Check restrict. 432710998002Smrg if (test_restrict ("String literal") == 0) 432810998002Smrg success = true; 432910998002Smrg char *restrict newvar = "Another string"; 433010998002Smrg 433110998002Smrg // Check varargs. 433210998002Smrg test_varargs ("s, d' f .", "string", 65, 34.234); 433310998002Smrg test_varargs_macros (); 433410998002Smrg 433510998002Smrg // Check flexible array members. 433610998002Smrg struct incomplete_array *ia = 433710998002Smrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 433810998002Smrg ia->datasize = 10; 433910998002Smrg for (int i = 0; i < ia->datasize; ++i) 434010998002Smrg ia->data[i] = i * 1.234; 434110998002Smrg 434210998002Smrg // Check named initializers. 434310998002Smrg struct named_init ni = { 434410998002Smrg .number = 34, 434510998002Smrg .name = L"Test wide string", 434610998002Smrg .average = 543.34343, 434710998002Smrg }; 434810998002Smrg 434910998002Smrg ni.number = 58; 435010998002Smrg 435110998002Smrg int dynamic_array[ni.number]; 435210998002Smrg dynamic_array[ni.number - 1] = 543; 435310998002Smrg 435410998002Smrg // work around unused variable warnings 435510998002Smrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 435610998002Smrg || dynamic_array[ni.number - 1] != 543); 435710998002Smrg 435810998002Smrg ; 435910998002Smrg return 0; 436010998002Smrg} 436110998002Smrg_ACEOF 436210998002Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 436310998002Smrgdo 436410998002Smrg CC="$ac_save_CC $ac_arg" 4365863f95b1Smrg if ac_fn_c_try_compile "$LINENO"; then : 436610998002Smrg ac_cv_prog_cc_c99=$ac_arg 436710998002Smrgfi 436810998002Smrgrm -f core conftest.err conftest.$ac_objext 436910998002Smrg test "x$ac_cv_prog_cc_c99" != "xno" && break 437010998002Smrgdone 437110998002Smrgrm -f conftest.$ac_ext 437210998002SmrgCC=$ac_save_CC 437310998002Smrg 437410998002Smrgfi 437510998002Smrg# AC_CACHE_VAL 437610998002Smrgcase "x$ac_cv_prog_cc_c99" in 437710998002Smrg x) 4378863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 437910998002Smrg$as_echo "none needed" >&6; } ;; 438010998002Smrg xno) 4381863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 438210998002Smrg$as_echo "unsupported" >&6; } ;; 438310998002Smrg *) 438410998002Smrg CC="$CC $ac_cv_prog_cc_c99" 4385863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 438610998002Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 438710998002Smrgesac 4388863f95b1Smrgif test "x$ac_cv_prog_cc_c99" != xno; then : 4389863f95b1Smrg 4390863f95b1Smrgfi 4391863f95b1Smrg 4392863f95b1Smrg 4393863f95b1Smrg 4394863f95b1Smrg 4395a1806bd8Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4396a1806bd8Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 4397a1806bd8Smrg CLANGCC="yes" 4398a1806bd8Smrgelse 4399a1806bd8Smrg CLANGCC="no" 4400a1806bd8Smrgfi 4401a1806bd8Smrg 4402a1806bd8Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4403a1806bd8Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4404a1806bd8Smrg INTELCC="yes" 4405a1806bd8Smrgelse 4406a1806bd8Smrg INTELCC="no" 4407a1806bd8Smrgfi 4408a1806bd8Smrg 4409a1806bd8Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4410a1806bd8Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4411a1806bd8Smrg SUNCC="yes" 4412a1806bd8Smrgelse 4413a1806bd8Smrg SUNCC="no" 4414a1806bd8Smrgfi 4415a1806bd8Smrg 4416a1806bd8Smrg 4417a1806bd8Smrg 4418a1806bd8Smrg 4419863f95b1Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4420863f95b1Smrg if test -n "$ac_tool_prefix"; then 4421863f95b1Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4422863f95b1Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4423863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4424863f95b1Smrg$as_echo_n "checking for $ac_word... " >&6; } 4425863f95b1Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4426863f95b1Smrg $as_echo_n "(cached) " >&6 4427863f95b1Smrgelse 4428863f95b1Smrg case $PKG_CONFIG in 4429863f95b1Smrg [\\/]* | ?:[\\/]*) 4430863f95b1Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4431863f95b1Smrg ;; 4432863f95b1Smrg *) 4433863f95b1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434863f95b1Smrgfor as_dir in $PATH 4435863f95b1Smrgdo 4436863f95b1Smrg IFS=$as_save_IFS 4437863f95b1Smrg test -z "$as_dir" && as_dir=. 4438863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4439863f95b1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4440863f95b1Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4441863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4442863f95b1Smrg break 2 4443863f95b1Smrg fi 4444863f95b1Smrgdone 4445863f95b1Smrg done 4446863f95b1SmrgIFS=$as_save_IFS 4447863f95b1Smrg 4448863f95b1Smrg ;; 4449863f95b1Smrgesac 4450863f95b1Smrgfi 4451863f95b1SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4452863f95b1Smrgif test -n "$PKG_CONFIG"; then 4453863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4454863f95b1Smrg$as_echo "$PKG_CONFIG" >&6; } 4455863f95b1Smrgelse 4456863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4457863f95b1Smrg$as_echo "no" >&6; } 4458863f95b1Smrgfi 4459863f95b1Smrg 4460863f95b1Smrg 4461863f95b1Smrgfi 4462863f95b1Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4463863f95b1Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4464863f95b1Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 4465863f95b1Smrgset dummy pkg-config; ac_word=$2 4466863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4467863f95b1Smrg$as_echo_n "checking for $ac_word... " >&6; } 4468863f95b1Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4469863f95b1Smrg $as_echo_n "(cached) " >&6 4470863f95b1Smrgelse 4471863f95b1Smrg case $ac_pt_PKG_CONFIG in 4472863f95b1Smrg [\\/]* | ?:[\\/]*) 4473863f95b1Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4474863f95b1Smrg ;; 4475863f95b1Smrg *) 4476863f95b1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4477863f95b1Smrgfor as_dir in $PATH 4478863f95b1Smrgdo 4479863f95b1Smrg IFS=$as_save_IFS 4480863f95b1Smrg test -z "$as_dir" && as_dir=. 4481863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4482863f95b1Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4483863f95b1Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4484863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4485863f95b1Smrg break 2 4486863f95b1Smrg fi 4487863f95b1Smrgdone 4488863f95b1Smrg done 4489863f95b1SmrgIFS=$as_save_IFS 4490863f95b1Smrg 4491863f95b1Smrg ;; 4492863f95b1Smrgesac 4493863f95b1Smrgfi 4494863f95b1Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4495863f95b1Smrgif test -n "$ac_pt_PKG_CONFIG"; then 4496863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4497863f95b1Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4498863f95b1Smrgelse 4499863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4500863f95b1Smrg$as_echo "no" >&6; } 4501863f95b1Smrgfi 450210998002Smrg 4503863f95b1Smrg if test "x$ac_pt_PKG_CONFIG" = x; then 4504863f95b1Smrg PKG_CONFIG="" 4505863f95b1Smrg else 4506863f95b1Smrg case $cross_compiling:$ac_tool_warned in 4507863f95b1Smrgyes:) 4508863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4509863f95b1Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4510863f95b1Smrgac_tool_warned=yes ;; 4511863f95b1Smrgesac 4512863f95b1Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4513863f95b1Smrg fi 4514863f95b1Smrgelse 4515863f95b1Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4516863f95b1Smrgfi 451710998002Smrg 4518863f95b1Smrgfi 4519863f95b1Smrgif test -n "$PKG_CONFIG"; then 4520863f95b1Smrg _pkg_min_version=0.9.0 4521863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4522863f95b1Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4523863f95b1Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4524863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4525863f95b1Smrg$as_echo "yes" >&6; } 4526863f95b1Smrg else 4527863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4528863f95b1Smrg$as_echo "no" >&6; } 4529863f95b1Smrg PKG_CONFIG="" 4530863f95b1Smrg fi 453110998002Smrg 4532863f95b1Smrgfi 453310998002Smrg# Make sure we can run config.sub. 453410998002Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4535863f95b1Smrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 453610998002Smrg 4537863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 453810998002Smrg$as_echo_n "checking build system type... " >&6; } 4539863f95b1Smrgif ${ac_cv_build+:} false; then : 454010998002Smrg $as_echo_n "(cached) " >&6 454110998002Smrgelse 454210998002Smrg ac_build_alias=$build_alias 454310998002Smrgtest "x$ac_build_alias" = x && 454410998002Smrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 454510998002Smrgtest "x$ac_build_alias" = x && 4546863f95b1Smrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 454710998002Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4548863f95b1Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 454910998002Smrg 455010998002Smrgfi 4551863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 455210998002Smrg$as_echo "$ac_cv_build" >&6; } 455310998002Smrgcase $ac_cv_build in 455410998002Smrg*-*-*) ;; 4555863f95b1Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 455610998002Smrgesac 455710998002Smrgbuild=$ac_cv_build 455810998002Smrgac_save_IFS=$IFS; IFS='-' 455910998002Smrgset x $ac_cv_build 456010998002Smrgshift 456110998002Smrgbuild_cpu=$1 456210998002Smrgbuild_vendor=$2 456310998002Smrgshift; shift 456410998002Smrg# Remember, the first character of IFS is used to create $*, 456510998002Smrg# except with old shells: 456610998002Smrgbuild_os=$* 456710998002SmrgIFS=$ac_save_IFS 456810998002Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 456910998002Smrg 457010998002Smrg 4571863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 457210998002Smrg$as_echo_n "checking host system type... " >&6; } 4573863f95b1Smrgif ${ac_cv_host+:} false; then : 457410998002Smrg $as_echo_n "(cached) " >&6 457510998002Smrgelse 457610998002Smrg if test "x$host_alias" = x; then 457710998002Smrg ac_cv_host=$ac_cv_build 457810998002Smrgelse 457910998002Smrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4580863f95b1Smrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 458110998002Smrgfi 458210998002Smrg 458310998002Smrgfi 4584863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 458510998002Smrg$as_echo "$ac_cv_host" >&6; } 458610998002Smrgcase $ac_cv_host in 458710998002Smrg*-*-*) ;; 4588863f95b1Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 458910998002Smrgesac 459010998002Smrghost=$ac_cv_host 459110998002Smrgac_save_IFS=$IFS; IFS='-' 459210998002Smrgset x $ac_cv_host 459310998002Smrgshift 459410998002Smrghost_cpu=$1 459510998002Smrghost_vendor=$2 459610998002Smrgshift; shift 459710998002Smrg# Remember, the first character of IFS is used to create $*, 459810998002Smrg# except with old shells: 459910998002Smrghost_os=$* 460010998002SmrgIFS=$ac_save_IFS 460110998002Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 460210998002Smrg 460310998002Smrg 4604863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4605863f95b1Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4606863f95b1Smrgif ${ac_cv_path_SED+:} false; then : 4607863f95b1Smrg $as_echo_n "(cached) " >&6 4608863f95b1Smrgelse 4609863f95b1Smrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4610863f95b1Smrg for ac_i in 1 2 3 4 5 6 7; do 4611863f95b1Smrg ac_script="$ac_script$as_nl$ac_script" 4612863f95b1Smrg done 4613863f95b1Smrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4614863f95b1Smrg { ac_script=; unset ac_script;} 4615863f95b1Smrg if test -z "$SED"; then 4616863f95b1Smrg ac_path_SED_found=false 4617863f95b1Smrg # Loop through the user's path and test for each of PROGNAME-LIST 4618863f95b1Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4619863f95b1Smrgfor as_dir in $PATH 4620863f95b1Smrgdo 4621863f95b1Smrg IFS=$as_save_IFS 4622863f95b1Smrg test -z "$as_dir" && as_dir=. 4623863f95b1Smrg for ac_prog in sed gsed; do 4624863f95b1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 4625863f95b1Smrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4626863f95b1Smrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4627863f95b1Smrg# Check for GNU ac_path_SED and select it if it is found. 4628863f95b1Smrg # Check for GNU $ac_path_SED 4629863f95b1Smrgcase `"$ac_path_SED" --version 2>&1` in 4630863f95b1Smrg*GNU*) 4631863f95b1Smrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4632863f95b1Smrg*) 4633863f95b1Smrg ac_count=0 4634863f95b1Smrg $as_echo_n 0123456789 >"conftest.in" 4635863f95b1Smrg while : 4636863f95b1Smrg do 4637863f95b1Smrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4638863f95b1Smrg mv "conftest.tmp" "conftest.in" 4639863f95b1Smrg cp "conftest.in" "conftest.nl" 4640863f95b1Smrg $as_echo '' >> "conftest.nl" 4641863f95b1Smrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4642863f95b1Smrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4643863f95b1Smrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4644863f95b1Smrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4645863f95b1Smrg # Best one so far, save it but keep looking for a better one 4646863f95b1Smrg ac_cv_path_SED="$ac_path_SED" 4647863f95b1Smrg ac_path_SED_max=$ac_count 4648863f95b1Smrg fi 4649863f95b1Smrg # 10*(2^10) chars as input seems more than enough 4650863f95b1Smrg test $ac_count -gt 10 && break 4651863f95b1Smrg done 4652863f95b1Smrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4653863f95b1Smrgesac 4654863f95b1Smrg 4655863f95b1Smrg $ac_path_SED_found && break 3 4656863f95b1Smrg done 4657863f95b1Smrg done 4658863f95b1Smrg done 4659863f95b1SmrgIFS=$as_save_IFS 4660863f95b1Smrg if test -z "$ac_cv_path_SED"; then 4661863f95b1Smrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4662863f95b1Smrg fi 4663863f95b1Smrgelse 4664863f95b1Smrg ac_cv_path_SED=$SED 4665863f95b1Smrgfi 4666863f95b1Smrg 4667863f95b1Smrgfi 4668863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4669863f95b1Smrg$as_echo "$ac_cv_path_SED" >&6; } 4670863f95b1Smrg SED="$ac_cv_path_SED" 4671863f95b1Smrg rm -f conftest.sed 4672863f95b1Smrg 4673863f95b1Smrg 467410998002Smrg 467510998002Smrg 467610998002Smrg 4677a1806bd8Smrg 467810998002Smrgif test "x$GCC" = xyes ; then 467910998002Smrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 468010998002Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4681863f95b1Smrg-Wbad-function-cast -Wformat=2" 468210998002Smrg case `$CC -dumpversion` in 468310998002Smrg 3.4.* | 4.*) 468410998002Smrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 468510998002Smrg ;; 468610998002Smrg esac 468710998002Smrgelse 468810998002Smrg if test "x$SUNCC" = "xyes"; then 468910998002Smrg CWARNFLAGS="-v" 469010998002Smrg fi 469110998002Smrgfi 469210998002Smrg 469310998002Smrg 469410998002Smrg 4695863f95b1Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 469610998002Smrg 469710998002Smrg 469810998002Smrg 4699a1806bd8Smrg 470010998002Smrg# Check whether --enable-strict-compilation was given. 4701863f95b1Smrgif test "${enable_strict_compilation+set}" = set; then : 470210998002Smrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 470310998002Smrgelse 470410998002Smrg STRICT_COMPILE=no 470510998002Smrgfi 470610998002Smrg 4707a1806bd8Smrgif test "x$GCC" = xyes ; then 4708a1806bd8Smrg STRICT_CFLAGS="-pedantic -Werror" 4709a1806bd8Smrg # Add -Werror=attributes if supported (gcc 4.2 & later) 4710a1806bd8Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 4711a1806bd8Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 4712a1806bd8Smrg save_CFLAGS="$CFLAGS" 4713a1806bd8Smrg CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes" 4714a1806bd8Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715a1806bd8Smrg/* end confdefs.h. */ 4716a1806bd8Smrgreturn 0; 4717a1806bd8Smrg_ACEOF 4718a1806bd8Smrgif ac_fn_c_try_compile "$LINENO"; then : 4719a1806bd8Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 4720a1806bd8Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4721a1806bd8Smrg$as_echo "yes" >&6; } 4722863f95b1Smrgelse 4723a1806bd8Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4724a1806bd8Smrg$as_echo "no" >&6; } 472510998002Smrgfi 4726a1806bd8Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4727a1806bd8Smrg CFLAGS="$save_CFLAGS" 4728a1806bd8Smrgelif test "x$SUNCC" = "xyes"; then 4729a1806bd8Smrg STRICT_CFLAGS="-errwarn" 4730a1806bd8Smrgelif test "x$INTELCC" = "xyes"; then 4731a1806bd8Smrg STRICT_CFLAGS="-Werror" 473210998002Smrgfi 4733a1806bd8Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4734a1806bd8Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 473510998002Smrgfi 4736a1806bd8Smrg 473710998002Smrg 473810998002Smrg 473910998002Smrg 474010998002Smrg 474110998002Smrgcat >>confdefs.h <<_ACEOF 474210998002Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 474310998002Smrg_ACEOF 474410998002Smrg 474510998002Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 474610998002Smrg if test "x$PVM" = "x"; then 474710998002Smrg PVM="0" 474810998002Smrg fi 474910998002Smrg 475010998002Smrgcat >>confdefs.h <<_ACEOF 475110998002Smrg#define PACKAGE_VERSION_MINOR $PVM 475210998002Smrg_ACEOF 475310998002Smrg 475410998002Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 475510998002Smrg if test "x$PVP" = "x"; then 475610998002Smrg PVP="0" 475710998002Smrg fi 475810998002Smrg 475910998002Smrgcat >>confdefs.h <<_ACEOF 476010998002Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 476110998002Smrg_ACEOF 476210998002Smrg 476310998002Smrg 476410998002Smrg 4765863f95b1SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4766863f95b1Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4767863f95b1Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 476810998002Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 476910998002Smrg 4770863f95b1Smrg 4771863f95b1Smrg 4772863f95b1Smrg 4773863f95b1Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4774863f95b1SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4775863f95b1Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4776863f95b1Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4777863f95b1Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4778863f95b1Smrg 477910998002Smrg 478010998002Smrg 478110998002Smrg 478210998002Smrg 478310998002Smrg 478410998002Smrgif test x$APP_MAN_SUFFIX = x ; then 478510998002Smrg APP_MAN_SUFFIX=1 478610998002Smrgfi 478710998002Smrgif test x$APP_MAN_DIR = x ; then 478810998002Smrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 478910998002Smrgfi 479010998002Smrg 479110998002Smrgif test x$LIB_MAN_SUFFIX = x ; then 479210998002Smrg LIB_MAN_SUFFIX=3 479310998002Smrgfi 479410998002Smrgif test x$LIB_MAN_DIR = x ; then 479510998002Smrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 479610998002Smrgfi 479710998002Smrg 479810998002Smrgif test x$FILE_MAN_SUFFIX = x ; then 479910998002Smrg case $host_os in 480010998002Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 480110998002Smrg *) FILE_MAN_SUFFIX=5 ;; 480210998002Smrg esac 480310998002Smrgfi 480410998002Smrgif test x$FILE_MAN_DIR = x ; then 480510998002Smrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 480610998002Smrgfi 480710998002Smrg 480810998002Smrgif test x$MISC_MAN_SUFFIX = x ; then 480910998002Smrg case $host_os in 481010998002Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 481110998002Smrg *) MISC_MAN_SUFFIX=7 ;; 481210998002Smrg esac 481310998002Smrgfi 481410998002Smrgif test x$MISC_MAN_DIR = x ; then 481510998002Smrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 481610998002Smrgfi 481710998002Smrg 481810998002Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 481910998002Smrg case $host_os in 482010998002Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 482110998002Smrg *) DRIVER_MAN_SUFFIX=4 ;; 482210998002Smrg esac 482310998002Smrgfi 482410998002Smrgif test x$DRIVER_MAN_DIR = x ; then 482510998002Smrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 482610998002Smrgfi 482710998002Smrg 482810998002Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 482910998002Smrg case $host_os in 483010998002Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 483110998002Smrg *) ADMIN_MAN_SUFFIX=8 ;; 483210998002Smrg esac 483310998002Smrgfi 483410998002Smrgif test x$ADMIN_MAN_DIR = x ; then 483510998002Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4836ff7e0accSmrgfi 4837ff7e0accSmrg 4838ff7e0accSmrg 4839ff7e0accSmrg 484010998002Smrg 484110998002Smrg 484210998002Smrg 484310998002Smrg 484410998002Smrg 484510998002Smrg 484610998002Smrg 484710998002Smrg 484810998002Smrg 484910998002Smrg 485010998002Smrg 4851ff7e0accSmrg 4852863f95b1SmrgXORG_MAN_PAGE="X Version 11" 4853863f95b1Smrg 4854863f95b1SmrgMAN_SUBSTS="\ 4855863f95b1Smrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4856863f95b1Smrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4857863f95b1Smrg -e 's|__xservername__|Xorg|g' \ 4858863f95b1Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 4859863f95b1Smrg -e 's|__projectroot__|\$(prefix)|g' \ 4860863f95b1Smrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4861863f95b1Smrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4862863f95b1Smrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4863863f95b1Smrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4864863f95b1Smrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4865863f95b1Smrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4866863f95b1Smrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4867863f95b1Smrg 4868863f95b1Smrg 4869863f95b1Smrg 4870863f95b1Smrg# Check whether --enable-silent-rules was given. 4871863f95b1Smrgif test "${enable_silent_rules+set}" = set; then : 4872863f95b1Smrg enableval=$enable_silent_rules; 4873863f95b1Smrgfi 4874863f95b1Smrg 4875863f95b1Smrgcase $enable_silent_rules in 4876863f95b1Smrgyes) AM_DEFAULT_VERBOSITY=0;; 4877863f95b1Smrgno) AM_DEFAULT_VERBOSITY=1;; 4878863f95b1Smrg*) AM_DEFAULT_VERBOSITY=0;; 4879863f95b1Smrgesac 4880863f95b1SmrgAM_BACKSLASH='\' 4881ff7e0accSmrg 4882ff7e0accSmrg 4883ff7e0accSmrg 4884ff7e0accSmrgfor ac_func in strlcat 4885863f95b1Smrgdo : 4886863f95b1Smrg ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 4887863f95b1Smrgif test "x$ac_cv_func_strlcat" = xyes; then : 4888863f95b1Smrg cat >>confdefs.h <<_ACEOF 4889863f95b1Smrg#define HAVE_STRLCAT 1 4890863f95b1Smrg_ACEOF 4891863f95b1Smrg 4892863f95b1Smrgfi 4893863f95b1Smrgdone 4894863f95b1Smrg 4895863f95b1Smrg 4896863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 4897863f95b1Smrg$as_echo_n "checking for working strnlen... " >&6; } 4898863f95b1Smrgif ${ac_cv_func_strnlen_working+:} false; then : 4899a005d216Smrg $as_echo_n "(cached) " >&6 4900ff7e0accSmrgelse 4901863f95b1Smrg if test "$cross_compiling" = yes; then : 4902863f95b1Smrg # Guess no on AIX systems, yes otherwise. 4903863f95b1Smrg case "$host_os" in 4904863f95b1Smrg aix*) ac_cv_func_strnlen_working=no;; 4905863f95b1Smrg *) ac_cv_func_strnlen_working=yes;; 4906863f95b1Smrg esac 4907863f95b1Smrgelse 4908863f95b1Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4909ff7e0accSmrg/* end confdefs.h. */ 4910863f95b1Smrg$ac_includes_default 4911863f95b1Smrgint 4912863f95b1Smrgmain () 4913863f95b1Smrg{ 4914ff7e0accSmrg 4915863f95b1Smrg#define S "foobar" 4916863f95b1Smrg#define S_LEN (sizeof S - 1) 4917ff7e0accSmrg 4918863f95b1Smrg /* At least one implementation is buggy: that of AIX 4.3 would 4919863f95b1Smrg give strnlen (S, 1) == 3. */ 4920863f95b1Smrg 4921863f95b1Smrg int i; 4922863f95b1Smrg for (i = 0; i < S_LEN + 1; ++i) 4923863f95b1Smrg { 4924863f95b1Smrg int expected = i <= S_LEN ? i : S_LEN; 4925863f95b1Smrg if (strnlen (S, i) != expected) 4926863f95b1Smrg return 1; 4927863f95b1Smrg } 4928863f95b1Smrg return 0; 4929863f95b1Smrg 4930863f95b1Smrg ; 4931863f95b1Smrg return 0; 4932863f95b1Smrg} 4933863f95b1Smrg_ACEOF 4934863f95b1Smrgif ac_fn_c_try_run "$LINENO"; then : 4935863f95b1Smrg ac_cv_func_strnlen_working=yes 4936863f95b1Smrgelse 4937863f95b1Smrg ac_cv_func_strnlen_working=no 4938863f95b1Smrgfi 4939863f95b1Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4940863f95b1Smrg conftest.$ac_objext conftest.beam conftest.$ac_ext 4941863f95b1Smrgfi 4942ff7e0accSmrg 4943863f95b1Smrgfi 4944863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 4945863f95b1Smrg$as_echo "$ac_cv_func_strnlen_working" >&6; } 4946863f95b1Smrgtest $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in 4947863f95b1Smrg *" strnlen.$ac_objext "* ) ;; 4948863f95b1Smrg *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 4949863f95b1Smrg ;; 4950863f95b1Smrgesac 4951863f95b1Smrg 4952863f95b1Smrg 4953863f95b1Smrgif test "x$ac_cv_func_strnlen_working" = xyes; then 4954863f95b1Smrg 4955863f95b1Smrg$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 4956863f95b1Smrg 4957863f95b1Smrgfi 4958863f95b1Smrg 4959863f95b1Smrg# Check for iconv in libc, then libiconv 4960863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv" >&5 4961863f95b1Smrg$as_echo_n "checking for library containing iconv... " >&6; } 4962863f95b1Smrgif ${ac_cv_search_iconv+:} false; then : 4963863f95b1Smrg $as_echo_n "(cached) " >&6 4964863f95b1Smrgelse 4965863f95b1Smrg ac_func_search_save_LIBS=$LIBS 4966863f95b1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 4967863f95b1Smrg/* end confdefs.h. */ 4968ff7e0accSmrg 4969ff7e0accSmrg/* Override any GCC internal prototype to avoid an error. 4970ff7e0accSmrg Use char because int might match the return type of a GCC 4971ff7e0accSmrg builtin and then its argument prototype would still apply. */ 4972ff7e0accSmrg#ifdef __cplusplus 4973ff7e0accSmrgextern "C" 4974ff7e0accSmrg#endif 4975863f95b1Smrgchar iconv (); 4976ff7e0accSmrgint 4977ff7e0accSmrgmain () 4978ff7e0accSmrg{ 4979863f95b1Smrgreturn iconv (); 4980ff7e0accSmrg ; 4981ff7e0accSmrg return 0; 4982ff7e0accSmrg} 4983ff7e0accSmrg_ACEOF 4984863f95b1Smrgfor ac_lib in '' iconv; do 4985863f95b1Smrg if test -z "$ac_lib"; then 4986863f95b1Smrg ac_res="none required" 4987863f95b1Smrg else 4988863f95b1Smrg ac_res=-l$ac_lib 4989863f95b1Smrg LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4990863f95b1Smrg fi 4991863f95b1Smrg if ac_fn_c_try_link "$LINENO"; then : 4992863f95b1Smrg ac_cv_search_iconv=$ac_res 4993ff7e0accSmrgfi 4994863f95b1Smrgrm -f core conftest.err conftest.$ac_objext \ 4995863f95b1Smrg conftest$ac_exeext 4996863f95b1Smrg if ${ac_cv_search_iconv+:} false; then : 4997863f95b1Smrg break 4998ff7e0accSmrgfi 4999863f95b1Smrgdone 5000863f95b1Smrgif ${ac_cv_search_iconv+:} false; then : 5001ff7e0accSmrg 5002863f95b1Smrgelse 5003863f95b1Smrg ac_cv_search_iconv=no 5004ff7e0accSmrgfi 5005863f95b1Smrgrm conftest.$ac_ext 5006863f95b1SmrgLIBS=$ac_func_search_save_LIBS 5007863f95b1Smrgfi 5008863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv" >&5 5009863f95b1Smrg$as_echo "$ac_cv_search_iconv" >&6; } 5010863f95b1Smrgac_res=$ac_cv_search_iconv 5011863f95b1Smrgif test "$ac_res" != no; then : 5012863f95b1Smrg test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5013ff7e0accSmrg 5014863f95b1Smrg$as_echo "#define HAVE_ICONV 1" >>confdefs.h 5015ff7e0accSmrg 5016863f95b1Smrgfi 5017ff7e0accSmrg 5018ff7e0accSmrg 5019863f95b1Smrg# Allow using xcb-icccm, but don't make it the default while the API is 5020863f95b1Smrg# still being changed. 5021863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-icccm library" >&5 5022863f95b1Smrg$as_echo_n "checking whether to use xcb-icccm library... " >&6; } 5023ff7e0accSmrg 5024863f95b1Smrg# Check whether --with-xcb-icccm was given. 5025863f95b1Smrgif test "${with_xcb_icccm+set}" = set; then : 5026863f95b1Smrg withval=$with_xcb_icccm; 5027ff7e0accSmrgelse 5028863f95b1Smrg with_xcb_icccm=no 5029ff7e0accSmrgfi 5030ff7e0accSmrg 5031863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xcb_icccm" >&5 5032863f95b1Smrg$as_echo "$with_xcb_icccm" >&6; } 5033863f95b1Smrgif test "x$with_xcb_icccm" != xno ; then 5034ff7e0accSmrg 5035863f95b1Smrg$as_echo "#define USE_XCB_ICCCM 1" >>confdefs.h 5036863f95b1Smrg 5037a1806bd8Smrg xcb_icccm_pc='xcb-icccm >= 0.3.8' 5038ff7e0accSmrgfi 5039ff7e0accSmrg 5040863f95b1Smrg# Checks for pkg-config packages 5041863f95b1Smrg 5042863f95b1Smrgpkg_failed=no 5043863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWININFO" >&5 5044863f95b1Smrg$as_echo_n "checking for XWININFO... " >&6; } 5045863f95b1Smrg 5046863f95b1Smrgif test -n "$XWININFO_CFLAGS"; then 5047863f95b1Smrg pkg_cv_XWININFO_CFLAGS="$XWININFO_CFLAGS" 5048863f95b1Smrg elif test -n "$PKG_CONFIG"; then 5049863f95b1Smrg if test -n "$PKG_CONFIG" && \ 5050863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5 5051863f95b1Smrg ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5 5052863f95b1Smrg ac_status=$? 5053863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5054863f95b1Smrg test $ac_status = 0; }; then 5055863f95b1Smrg pkg_cv_XWININFO_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null` 5056863f95b1Smrgelse 5057863f95b1Smrg pkg_failed=yes 5058ff7e0accSmrgfi 5059863f95b1Smrg else 5060863f95b1Smrg pkg_failed=untried 5061863f95b1Smrgfi 5062863f95b1Smrgif test -n "$XWININFO_LIBS"; then 5063863f95b1Smrg pkg_cv_XWININFO_LIBS="$XWININFO_LIBS" 5064863f95b1Smrg elif test -n "$PKG_CONFIG"; then 5065863f95b1Smrg if test -n "$PKG_CONFIG" && \ 5066863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5 5067863f95b1Smrg ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5 5068863f95b1Smrg ac_status=$? 5069863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5070863f95b1Smrg test $ac_status = 0; }; then 5071863f95b1Smrg pkg_cv_XWININFO_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null` 5072ff7e0accSmrgelse 5073863f95b1Smrg pkg_failed=yes 5074863f95b1Smrgfi 5075863f95b1Smrg else 5076863f95b1Smrg pkg_failed=untried 5077ff7e0accSmrgfi 5078ff7e0accSmrg 5079863f95b1Smrg 5080863f95b1Smrg 5081863f95b1Smrgif test $pkg_failed = yes; then 5082863f95b1Smrg 5083863f95b1Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5084863f95b1Smrg _pkg_short_errors_supported=yes 5085ff7e0accSmrgelse 5086863f95b1Smrg _pkg_short_errors_supported=no 5087ff7e0accSmrgfi 5088863f95b1Smrg if test $_pkg_short_errors_supported = yes; then 5089863f95b1Smrg XWININFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1` 5090863f95b1Smrg else 5091863f95b1Smrg XWININFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1` 5092863f95b1Smrg fi 5093863f95b1Smrg # Put the nasty error message in config.log where it belongs 5094863f95b1Smrg echo "$XWININFO_PKG_ERRORS" >&5 5095ff7e0accSmrg 5096863f95b1Smrg as_fn_error $? "Package requirements (xcb >= 1.6 xcb-shape ${xcb_icccm_pc}) were not met: 5097863f95b1Smrg 5098863f95b1Smrg$XWININFO_PKG_ERRORS 5099863f95b1Smrg 5100863f95b1SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5101863f95b1Smrginstalled software in a non-standard prefix. 5102863f95b1Smrg 5103863f95b1SmrgAlternatively, you may set the environment variables XWININFO_CFLAGS 5104863f95b1Smrgand XWININFO_LIBS to avoid the need to call pkg-config. 5105863f95b1SmrgSee the pkg-config man page for more details. 5106863f95b1Smrg" "$LINENO" 5 5107863f95b1Smrgelif test $pkg_failed = untried; then 5108863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5109863f95b1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5110863f95b1Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5111863f95b1Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 5112863f95b1Smrgpath to pkg-config. 5113863f95b1Smrg 5114863f95b1SmrgAlternatively, you may set the environment variables XWININFO_CFLAGS 5115863f95b1Smrgand XWININFO_LIBS to avoid the need to call pkg-config. 5116863f95b1SmrgSee the pkg-config man page for more details. 5117ff7e0accSmrg 5118863f95b1SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5119863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 5120863f95b1Smrgelse 5121863f95b1Smrg XWININFO_CFLAGS=$pkg_cv_XWININFO_CFLAGS 5122863f95b1Smrg XWININFO_LIBS=$pkg_cv_XWININFO_LIBS 5123863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5124863f95b1Smrg$as_echo "yes" >&6; } 5125863f95b1Smrg : 5126ff7e0accSmrgfi 5127ff7e0accSmrg 5128863f95b1Smrg# Even when using xcb, xproto is still required for Xfuncproto.h 5129863f95b1Smrg# and libX11 headers for cursorfont.h 5130a005d216Smrg 5131863f95b1Smrgpkg_failed=no 5132863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5 5133863f95b1Smrg$as_echo_n "checking for XLIB... " >&6; } 5134863f95b1Smrg 5135863f95b1Smrgif test -n "$XLIB_CFLAGS"; then 5136863f95b1Smrg pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS" 5137a005d216Smrg elif test -n "$PKG_CONFIG"; then 5138a005d216Smrg if test -n "$PKG_CONFIG" && \ 5139863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 5140863f95b1Smrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 5141ff7e0accSmrg ac_status=$? 5142863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5143863f95b1Smrg test $ac_status = 0; }; then 5144863f95b1Smrg pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 5145ff7e0accSmrgelse 5146ff7e0accSmrg pkg_failed=yes 5147ff7e0accSmrgfi 5148a005d216Smrg else 5149a005d216Smrg pkg_failed=untried 5150ff7e0accSmrgfi 5151863f95b1Smrgif test -n "$XLIB_LIBS"; then 5152863f95b1Smrg pkg_cv_XLIB_LIBS="$XLIB_LIBS" 5153a005d216Smrg elif test -n "$PKG_CONFIG"; then 5154a005d216Smrg if test -n "$PKG_CONFIG" && \ 5155863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 5156863f95b1Smrg ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 5157ff7e0accSmrg ac_status=$? 5158863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5159863f95b1Smrg test $ac_status = 0; }; then 5160863f95b1Smrg pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 5161ff7e0accSmrgelse 5162ff7e0accSmrg pkg_failed=yes 5163ff7e0accSmrgfi 5164a005d216Smrg else 5165a005d216Smrg pkg_failed=untried 5166ff7e0accSmrgfi 5167ff7e0accSmrg 5168a005d216Smrg 5169a005d216Smrg 5170ff7e0accSmrgif test $pkg_failed = yes; then 5171a005d216Smrg 5172a005d216Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5173a005d216Smrg _pkg_short_errors_supported=yes 5174a005d216Smrgelse 5175a005d216Smrg _pkg_short_errors_supported=no 5176a005d216Smrgfi 5177a005d216Smrg if test $_pkg_short_errors_supported = yes; then 5178863f95b1Smrg XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1` 5179a005d216Smrg else 5180863f95b1Smrg XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1` 5181a005d216Smrg fi 5182ff7e0accSmrg # Put the nasty error message in config.log where it belongs 5183863f95b1Smrg echo "$XLIB_PKG_ERRORS" >&5 5184ff7e0accSmrg 5185863f95b1Smrg as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 5186a005d216Smrg 5187863f95b1Smrg$XLIB_PKG_ERRORS 5188a005d216Smrg 5189ff7e0accSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 5190ff7e0accSmrginstalled software in a non-standard prefix. 5191ff7e0accSmrg 5192863f95b1SmrgAlternatively, you may set the environment variables XLIB_CFLAGS 5193863f95b1Smrgand XLIB_LIBS to avoid the need to call pkg-config. 5194a005d216SmrgSee the pkg-config man page for more details. 5195863f95b1Smrg" "$LINENO" 5 5196ff7e0accSmrgelif test $pkg_failed = untried; then 5197863f95b1Smrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 519810998002Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5199863f95b1Smrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5200ff7e0accSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 5201ff7e0accSmrgpath to pkg-config. 5202ff7e0accSmrg 5203863f95b1SmrgAlternatively, you may set the environment variables XLIB_CFLAGS 5204863f95b1Smrgand XLIB_LIBS to avoid the need to call pkg-config. 5205a005d216SmrgSee the pkg-config man page for more details. 5206ff7e0accSmrg 5207a005d216SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 5208863f95b1SmrgSee \`config.log' for more details" "$LINENO" 5; } 5209ff7e0accSmrgelse 5210863f95b1Smrg XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS 5211863f95b1Smrg XLIB_LIBS=$pkg_cv_XLIB_LIBS 5212863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5213a005d216Smrg$as_echo "yes" >&6; } 5214ff7e0accSmrg : 5215ff7e0accSmrgfi 5216863f95b1SmrgXWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}" 5217ff7e0accSmrg 5218a1806bd8Smrgac_config_files="$ac_config_files Makefile man/Makefile" 5219ff7e0accSmrg 5220ff7e0accSmrgcat >confcache <<\_ACEOF 5221ff7e0accSmrg# This file is a shell script that caches the results of configure 5222ff7e0accSmrg# tests run on this system so they can be shared between configure 5223ff7e0accSmrg# scripts and configure runs, see configure's option --config-cache. 5224ff7e0accSmrg# It is not useful on other systems. If it contains results you don't 5225ff7e0accSmrg# want to keep, you may remove or edit it. 5226ff7e0accSmrg# 5227ff7e0accSmrg# config.status only pays attention to the cache file if you give it 5228ff7e0accSmrg# the --recheck option to rerun configure. 5229ff7e0accSmrg# 5230ff7e0accSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 5231ff7e0accSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 5232ff7e0accSmrg# following values. 5233ff7e0accSmrg 5234ff7e0accSmrg_ACEOF 5235ff7e0accSmrg 5236ff7e0accSmrg# The following way of writing the cache mishandles newlines in values, 5237ff7e0accSmrg# but we know of no workaround that is simple, portable, and efficient. 5238ff7e0accSmrg# So, we kill variables containing newlines. 5239ff7e0accSmrg# Ultrix sh set writes to stderr and can't be redirected directly, 5240ff7e0accSmrg# and sets the high bit in the cache file unless we assign to the vars. 5241ff7e0accSmrg( 5242ff7e0accSmrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5243ff7e0accSmrg eval ac_val=\$$ac_var 5244ff7e0accSmrg case $ac_val in #( 5245ff7e0accSmrg *${as_nl}*) 5246ff7e0accSmrg case $ac_var in #( 5247863f95b1Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 524810998002Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5249ff7e0accSmrg esac 5250ff7e0accSmrg case $ac_var in #( 5251ff7e0accSmrg _ | IFS | as_nl) ;; #( 5252a005d216Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5253863f95b1Smrg *) { eval $ac_var=; unset $ac_var;} ;; 5254ff7e0accSmrg esac ;; 5255ff7e0accSmrg esac 5256ff7e0accSmrg done 5257ff7e0accSmrg 5258ff7e0accSmrg (set) 2>&1 | 5259ff7e0accSmrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 5260ff7e0accSmrg *${as_nl}ac_space=\ *) 5261863f95b1Smrg # `set' does not quote correctly, so add quotes: double-quote 5262863f95b1Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 5263ff7e0accSmrg sed -n \ 5264ff7e0accSmrg "s/'/'\\\\''/g; 5265ff7e0accSmrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5266ff7e0accSmrg ;; #( 5267ff7e0accSmrg *) 5268ff7e0accSmrg # `set' quotes correctly as required by POSIX, so do not add quotes. 5269ff7e0accSmrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5270ff7e0accSmrg ;; 5271ff7e0accSmrg esac | 5272ff7e0accSmrg sort 5273ff7e0accSmrg) | 5274ff7e0accSmrg sed ' 5275ff7e0accSmrg /^ac_cv_env_/b end 5276ff7e0accSmrg t clear 5277ff7e0accSmrg :clear 5278ff7e0accSmrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5279ff7e0accSmrg t end 5280ff7e0accSmrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5281ff7e0accSmrg :end' >>confcache 5282ff7e0accSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5283ff7e0accSmrg if test -w "$cache_file"; then 5284863f95b1Smrg if test "x$cache_file" != "x/dev/null"; then 5285863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5286a005d216Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 5287863f95b1Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 5288863f95b1Smrg cat confcache >"$cache_file" 5289863f95b1Smrg else 5290863f95b1Smrg case $cache_file in #( 5291863f95b1Smrg */* | ?:*) 5292863f95b1Smrg mv -f confcache "$cache_file"$$ && 5293863f95b1Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 5294863f95b1Smrg *) 5295863f95b1Smrg mv -f confcache "$cache_file" ;; 5296863f95b1Smrg esac 5297863f95b1Smrg fi 5298863f95b1Smrg fi 5299ff7e0accSmrg else 5300863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5301a005d216Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5302ff7e0accSmrg fi 5303ff7e0accSmrgfi 5304ff7e0accSmrgrm -f confcache 5305ff7e0accSmrg 5306ff7e0accSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 5307ff7e0accSmrg# Let make expand exec_prefix. 5308ff7e0accSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5309ff7e0accSmrg 5310ff7e0accSmrgDEFS=-DHAVE_CONFIG_H 5311ff7e0accSmrg 5312ff7e0accSmrgac_libobjs= 5313ff7e0accSmrgac_ltlibobjs= 5314863f95b1SmrgU= 5315ff7e0accSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5316ff7e0accSmrg # 1. Remove the extension, and $U if already installed. 5317ff7e0accSmrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5318a005d216Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5319ff7e0accSmrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5320ff7e0accSmrg # will be set to the directory where LIBOBJS objects are built. 5321863f95b1Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5322863f95b1Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5323ff7e0accSmrgdone 5324ff7e0accSmrgLIBOBJS=$ac_libobjs 5325ff7e0accSmrg 5326ff7e0accSmrgLTLIBOBJS=$ac_ltlibobjs 5327ff7e0accSmrg 5328ff7e0accSmrg 532910998002Smrg if test -n "$EXEEXT"; then 533010998002Smrg am__EXEEXT_TRUE= 533110998002Smrg am__EXEEXT_FALSE='#' 533210998002Smrgelse 533310998002Smrg am__EXEEXT_TRUE='#' 533410998002Smrg am__EXEEXT_FALSE= 533510998002Smrgfi 533610998002Smrg 5337ff7e0accSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 5338863f95b1Smrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 5339863f95b1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5340ff7e0accSmrgfi 5341ff7e0accSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5342863f95b1Smrg as_fn_error $? "conditional \"AMDEP\" was never defined. 5343863f95b1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5344ff7e0accSmrgfi 5345ff7e0accSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5346863f95b1Smrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 5347863f95b1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5348ff7e0accSmrgfi 5349ff7e0accSmrg 5350863f95b1Smrg: "${CONFIG_STATUS=./config.status}" 5351a005d216Smrgac_write_fail=0 5352ff7e0accSmrgac_clean_files_save=$ac_clean_files 5353ff7e0accSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 5354863f95b1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5355a005d216Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5356863f95b1Smrgas_write_fail=0 5357863f95b1Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5358ff7e0accSmrg#! $SHELL 5359ff7e0accSmrg# Generated by $as_me. 5360ff7e0accSmrg# Run this file to recreate the current configuration. 5361ff7e0accSmrg# Compiler output produced by configure, useful for debugging 5362ff7e0accSmrg# configure, is in config.log if it exists. 5363ff7e0accSmrg 5364ff7e0accSmrgdebug=false 5365ff7e0accSmrgac_cs_recheck=false 5366ff7e0accSmrgac_cs_silent=false 5367ff7e0accSmrg 5368863f95b1SmrgSHELL=\${CONFIG_SHELL-$SHELL} 5369863f95b1Smrgexport SHELL 5370863f95b1Smrg_ASEOF 5371863f95b1Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5372863f95b1Smrg## -------------------- ## 5373863f95b1Smrg## M4sh Initialization. ## 5374863f95b1Smrg## -------------------- ## 5375ff7e0accSmrg 5376ff7e0accSmrg# Be more Bourne compatible 5377ff7e0accSmrgDUALCASE=1; export DUALCASE # for MKS sh 5378863f95b1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5379ff7e0accSmrg emulate sh 5380ff7e0accSmrg NULLCMD=: 5381a005d216Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5382ff7e0accSmrg # is contrary to our usage. Disable this feature. 5383ff7e0accSmrg alias -g '${1+"$@"}'='"$@"' 5384ff7e0accSmrg setopt NO_GLOB_SUBST 5385ff7e0accSmrgelse 5386863f95b1Smrg case `(set -o) 2>/dev/null` in #( 5387863f95b1Smrg *posix*) : 5388863f95b1Smrg set -o posix ;; #( 5389863f95b1Smrg *) : 5390863f95b1Smrg ;; 5391ff7e0accSmrgesac 5392ff7e0accSmrgfi 5393ff7e0accSmrg 5394ff7e0accSmrg 5395a005d216Smrgas_nl=' 5396a005d216Smrg' 5397a005d216Smrgexport as_nl 5398a005d216Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 5399a005d216Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5400a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5401a005d216Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5402863f95b1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 5403863f95b1Smrg# but without wasting forks for bash or zsh. 5404863f95b1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 5405863f95b1Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5406863f95b1Smrg as_echo='print -r --' 5407863f95b1Smrg as_echo_n='print -rn --' 5408863f95b1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5409a005d216Smrg as_echo='printf %s\n' 5410a005d216Smrg as_echo_n='printf %s' 5411a005d216Smrgelse 5412a005d216Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5413a005d216Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5414a005d216Smrg as_echo_n='/usr/ucb/echo -n' 5415ff7e0accSmrg else 5416a005d216Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5417a005d216Smrg as_echo_n_body='eval 5418a005d216Smrg arg=$1; 5419863f95b1Smrg case $arg in #( 5420a005d216Smrg *"$as_nl"*) 5421a005d216Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5422a005d216Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5423a005d216Smrg esac; 5424a005d216Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5425a005d216Smrg ' 5426a005d216Smrg export as_echo_n_body 5427a005d216Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 5428ff7e0accSmrg fi 5429a005d216Smrg export as_echo_body 5430a005d216Smrg as_echo='sh -c $as_echo_body as_echo' 5431a005d216Smrgfi 5432a005d216Smrg 5433a005d216Smrg# The user is always right. 5434a005d216Smrgif test "${PATH_SEPARATOR+set}" != set; then 5435a005d216Smrg PATH_SEPARATOR=: 5436a005d216Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5437a005d216Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5438a005d216Smrg PATH_SEPARATOR=';' 5439a005d216Smrg } 5440ff7e0accSmrgfi 5441ff7e0accSmrg 5442ff7e0accSmrg 5443ff7e0accSmrg# IFS 5444ff7e0accSmrg# We need space, tab and new line, in precisely that order. Quoting is 5445ff7e0accSmrg# there to prevent editors from complaining about space-tab. 5446ff7e0accSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5447ff7e0accSmrg# splitting by setting IFS to empty value.) 5448ff7e0accSmrgIFS=" "" $as_nl" 5449ff7e0accSmrg 5450ff7e0accSmrg# Find who we are. Look in the path if we contain no directory separator. 5451863f95b1Smrgas_myself= 5452863f95b1Smrgcase $0 in #(( 5453ff7e0accSmrg *[\\/]* ) as_myself=$0 ;; 5454ff7e0accSmrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5455ff7e0accSmrgfor as_dir in $PATH 5456ff7e0accSmrgdo 5457ff7e0accSmrg IFS=$as_save_IFS 5458ff7e0accSmrg test -z "$as_dir" && as_dir=. 5459863f95b1Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5460863f95b1Smrg done 5461ff7e0accSmrgIFS=$as_save_IFS 5462ff7e0accSmrg 5463ff7e0accSmrg ;; 5464ff7e0accSmrgesac 5465ff7e0accSmrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5466ff7e0accSmrg# in which case we are not to be found in the path. 5467ff7e0accSmrgif test "x$as_myself" = x; then 5468ff7e0accSmrg as_myself=$0 5469ff7e0accSmrgfi 5470ff7e0accSmrgif test ! -f "$as_myself"; then 5471a005d216Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5472863f95b1Smrg exit 1 5473ff7e0accSmrgfi 5474ff7e0accSmrg 5475863f95b1Smrg# Unset variables that we do not need and which cause bugs (e.g. in 5476863f95b1Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5477863f95b1Smrg# suppresses any "Segmentation fault" message there. '((' could 5478863f95b1Smrg# trigger a bug in pdksh 5.2.14. 5479863f95b1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 5480863f95b1Smrgdo eval test x\${$as_var+set} = xset \ 5481863f95b1Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5482ff7e0accSmrgdone 5483ff7e0accSmrgPS1='$ ' 5484ff7e0accSmrgPS2='> ' 5485ff7e0accSmrgPS4='+ ' 5486ff7e0accSmrg 5487ff7e0accSmrg# NLS nuisances. 5488a005d216SmrgLC_ALL=C 5489a005d216Smrgexport LC_ALL 5490a005d216SmrgLANGUAGE=C 5491a005d216Smrgexport LANGUAGE 5492ff7e0accSmrg 5493863f95b1Smrg# CDPATH. 5494863f95b1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5495863f95b1Smrg 5496863f95b1Smrg 5497863f95b1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 5498863f95b1Smrg# ---------------------------------------- 5499863f95b1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5500863f95b1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5501863f95b1Smrg# script with STATUS, using 1 if that was 0. 5502863f95b1Smrgas_fn_error () 5503863f95b1Smrg{ 5504863f95b1Smrg as_status=$1; test $as_status -eq 0 && as_status=1 5505863f95b1Smrg if test "$4"; then 5506863f95b1Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5507863f95b1Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5508863f95b1Smrg fi 5509863f95b1Smrg $as_echo "$as_me: error: $2" >&2 5510863f95b1Smrg as_fn_exit $as_status 5511863f95b1Smrg} # as_fn_error 5512863f95b1Smrg 5513863f95b1Smrg 5514863f95b1Smrg# as_fn_set_status STATUS 5515863f95b1Smrg# ----------------------- 5516863f95b1Smrg# Set $? to STATUS, without forking. 5517863f95b1Smrgas_fn_set_status () 5518863f95b1Smrg{ 5519863f95b1Smrg return $1 5520863f95b1Smrg} # as_fn_set_status 5521863f95b1Smrg 5522863f95b1Smrg# as_fn_exit STATUS 5523863f95b1Smrg# ----------------- 5524863f95b1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5525863f95b1Smrgas_fn_exit () 5526863f95b1Smrg{ 5527863f95b1Smrg set +e 5528863f95b1Smrg as_fn_set_status $1 5529863f95b1Smrg exit $1 5530863f95b1Smrg} # as_fn_exit 5531863f95b1Smrg 5532863f95b1Smrg# as_fn_unset VAR 5533863f95b1Smrg# --------------- 5534863f95b1Smrg# Portably unset VAR. 5535863f95b1Smrgas_fn_unset () 5536863f95b1Smrg{ 5537863f95b1Smrg { eval $1=; unset $1;} 5538863f95b1Smrg} 5539863f95b1Smrgas_unset=as_fn_unset 5540863f95b1Smrg# as_fn_append VAR VALUE 5541863f95b1Smrg# ---------------------- 5542863f95b1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 5543863f95b1Smrg# advantage of any shell optimizations that allow amortized linear growth over 5544863f95b1Smrg# repeated appends, instead of the typical quadratic growth present in naive 5545863f95b1Smrg# implementations. 5546863f95b1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5547863f95b1Smrg eval 'as_fn_append () 5548863f95b1Smrg { 5549863f95b1Smrg eval $1+=\$2 5550863f95b1Smrg }' 5551863f95b1Smrgelse 5552863f95b1Smrg as_fn_append () 5553863f95b1Smrg { 5554863f95b1Smrg eval $1=\$$1\$2 5555863f95b1Smrg } 5556863f95b1Smrgfi # as_fn_append 5557863f95b1Smrg 5558863f95b1Smrg# as_fn_arith ARG... 5559863f95b1Smrg# ------------------ 5560863f95b1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 5561863f95b1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 5562863f95b1Smrg# must be portable across $(()) and expr. 5563863f95b1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5564863f95b1Smrg eval 'as_fn_arith () 5565863f95b1Smrg { 5566863f95b1Smrg as_val=$(( $* )) 5567863f95b1Smrg }' 5568863f95b1Smrgelse 5569863f95b1Smrg as_fn_arith () 5570863f95b1Smrg { 5571863f95b1Smrg as_val=`expr "$@" || test $? -eq 1` 5572863f95b1Smrg } 5573863f95b1Smrgfi # as_fn_arith 5574863f95b1Smrg 5575863f95b1Smrg 5576ff7e0accSmrgif expr a : '\(a\)' >/dev/null 2>&1 && 5577ff7e0accSmrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5578ff7e0accSmrg as_expr=expr 5579ff7e0accSmrgelse 5580ff7e0accSmrg as_expr=false 5581ff7e0accSmrgfi 5582ff7e0accSmrg 5583ff7e0accSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5584ff7e0accSmrg as_basename=basename 5585ff7e0accSmrgelse 5586ff7e0accSmrg as_basename=false 5587ff7e0accSmrgfi 5588ff7e0accSmrg 5589863f95b1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5590863f95b1Smrg as_dirname=dirname 5591863f95b1Smrgelse 5592863f95b1Smrg as_dirname=false 5593863f95b1Smrgfi 5594ff7e0accSmrg 5595ff7e0accSmrgas_me=`$as_basename -- "$0" || 5596ff7e0accSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5597ff7e0accSmrg X"$0" : 'X\(//\)$' \| \ 5598ff7e0accSmrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5599a005d216Smrg$as_echo X/"$0" | 5600ff7e0accSmrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5601ff7e0accSmrg s//\1/ 5602ff7e0accSmrg q 5603ff7e0accSmrg } 5604ff7e0accSmrg /^X\/\(\/\/\)$/{ 5605ff7e0accSmrg s//\1/ 5606ff7e0accSmrg q 5607ff7e0accSmrg } 5608ff7e0accSmrg /^X\/\(\/\).*/{ 5609ff7e0accSmrg s//\1/ 5610ff7e0accSmrg q 5611ff7e0accSmrg } 5612ff7e0accSmrg s/.*/./; q'` 5613ff7e0accSmrg 5614863f95b1Smrg# Avoid depending upon Character Ranges. 5615863f95b1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5616863f95b1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5617863f95b1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5618863f95b1Smrgas_cr_digits='0123456789' 5619863f95b1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 5620ff7e0accSmrg 5621ff7e0accSmrgECHO_C= ECHO_N= ECHO_T= 5622863f95b1Smrgcase `echo -n x` in #((((( 5623ff7e0accSmrg-n*) 5624863f95b1Smrg case `echo 'xy\c'` in 5625ff7e0accSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5626863f95b1Smrg xy) ECHO_C='\c';; 5627863f95b1Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5628863f95b1Smrg ECHO_T=' ';; 5629ff7e0accSmrg esac;; 5630ff7e0accSmrg*) 5631ff7e0accSmrg ECHO_N='-n';; 5632ff7e0accSmrgesac 5633ff7e0accSmrg 5634ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.file 5635ff7e0accSmrgif test -d conf$$.dir; then 5636ff7e0accSmrg rm -f conf$$.dir/conf$$.file 5637ff7e0accSmrgelse 5638ff7e0accSmrg rm -f conf$$.dir 5639a005d216Smrg mkdir conf$$.dir 2>/dev/null 5640a005d216Smrgfi 5641a005d216Smrgif (echo >conf$$.file) 2>/dev/null; then 5642a005d216Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5643a005d216Smrg as_ln_s='ln -s' 5644a005d216Smrg # ... but there are two gotchas: 5645a005d216Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5646a005d216Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5647a005d216Smrg # In both cases, we have to default to `cp -p'. 5648a005d216Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5649a005d216Smrg as_ln_s='cp -p' 5650a005d216Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 5651a005d216Smrg as_ln_s=ln 5652a005d216Smrg else 5653ff7e0accSmrg as_ln_s='cp -p' 5654a005d216Smrg fi 5655ff7e0accSmrgelse 5656ff7e0accSmrg as_ln_s='cp -p' 5657ff7e0accSmrgfi 5658ff7e0accSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5659ff7e0accSmrgrmdir conf$$.dir 2>/dev/null 5660ff7e0accSmrg 5661863f95b1Smrg 5662863f95b1Smrg# as_fn_mkdir_p 5663863f95b1Smrg# ------------- 5664863f95b1Smrg# Create "$as_dir" as a directory, including parents if necessary. 5665863f95b1Smrgas_fn_mkdir_p () 5666863f95b1Smrg{ 5667863f95b1Smrg 5668863f95b1Smrg case $as_dir in #( 5669863f95b1Smrg -*) as_dir=./$as_dir;; 5670863f95b1Smrg esac 5671863f95b1Smrg test -d "$as_dir" || eval $as_mkdir_p || { 5672863f95b1Smrg as_dirs= 5673863f95b1Smrg while :; do 5674863f95b1Smrg case $as_dir in #( 5675863f95b1Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5676863f95b1Smrg *) as_qdir=$as_dir;; 5677863f95b1Smrg esac 5678863f95b1Smrg as_dirs="'$as_qdir' $as_dirs" 5679863f95b1Smrg as_dir=`$as_dirname -- "$as_dir" || 5680863f95b1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5681863f95b1Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5682863f95b1Smrg X"$as_dir" : 'X\(//\)$' \| \ 5683863f95b1Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5684863f95b1Smrg$as_echo X"$as_dir" | 5685863f95b1Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5686863f95b1Smrg s//\1/ 5687863f95b1Smrg q 5688863f95b1Smrg } 5689863f95b1Smrg /^X\(\/\/\)[^/].*/{ 5690863f95b1Smrg s//\1/ 5691863f95b1Smrg q 5692863f95b1Smrg } 5693863f95b1Smrg /^X\(\/\/\)$/{ 5694863f95b1Smrg s//\1/ 5695863f95b1Smrg q 5696863f95b1Smrg } 5697863f95b1Smrg /^X\(\/\).*/{ 5698863f95b1Smrg s//\1/ 5699863f95b1Smrg q 5700863f95b1Smrg } 5701863f95b1Smrg s/.*/./; q'` 5702863f95b1Smrg test -d "$as_dir" && break 5703863f95b1Smrg done 5704863f95b1Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 5705863f95b1Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5706863f95b1Smrg 5707863f95b1Smrg 5708863f95b1Smrg} # as_fn_mkdir_p 5709ff7e0accSmrgif mkdir -p . 2>/dev/null; then 5710863f95b1Smrg as_mkdir_p='mkdir -p "$as_dir"' 5711ff7e0accSmrgelse 5712ff7e0accSmrg test -d ./-p && rmdir ./-p 5713ff7e0accSmrg as_mkdir_p=false 5714ff7e0accSmrgfi 5715ff7e0accSmrg 5716ff7e0accSmrgif test -x / >/dev/null 2>&1; then 5717ff7e0accSmrg as_test_x='test -x' 5718ff7e0accSmrgelse 5719ff7e0accSmrg if ls -dL / >/dev/null 2>&1; then 5720ff7e0accSmrg as_ls_L_option=L 5721ff7e0accSmrg else 5722ff7e0accSmrg as_ls_L_option= 5723ff7e0accSmrg fi 5724ff7e0accSmrg as_test_x=' 5725ff7e0accSmrg eval sh -c '\'' 5726ff7e0accSmrg if test -d "$1"; then 5727a005d216Smrg test -d "$1/."; 5728ff7e0accSmrg else 5729863f95b1Smrg case $1 in #( 5730a005d216Smrg -*)set "./$1";; 5731ff7e0accSmrg esac; 5732863f95b1Smrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5733ff7e0accSmrg ???[sx]*):;;*)false;;esac;fi 5734ff7e0accSmrg '\'' sh 5735ff7e0accSmrg ' 5736ff7e0accSmrgfi 5737ff7e0accSmrgas_executable_p=$as_test_x 5738ff7e0accSmrg 5739ff7e0accSmrg# Sed expression to map a string onto a valid CPP name. 5740ff7e0accSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5741ff7e0accSmrg 5742ff7e0accSmrg# Sed expression to map a string onto a valid variable name. 5743ff7e0accSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5744ff7e0accSmrg 5745ff7e0accSmrg 5746ff7e0accSmrgexec 6>&1 5747863f95b1Smrg## ----------------------------------- ## 5748863f95b1Smrg## Main body of $CONFIG_STATUS script. ## 5749863f95b1Smrg## ----------------------------------- ## 5750863f95b1Smrg_ASEOF 5751863f95b1Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5752ff7e0accSmrg 5753863f95b1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5754863f95b1Smrg# Save the log message, to keep $0 and so on meaningful, and to 5755ff7e0accSmrg# report actual input values of CONFIG_FILES etc. instead of their 5756ff7e0accSmrg# values after options handling. 5757ff7e0accSmrgac_log=" 5758a1806bd8SmrgThis file was extended by xwininfo $as_me 1.1.2, which was 5759863f95b1Smrggenerated by GNU Autoconf 2.68. Invocation command line was 5760ff7e0accSmrg 5761ff7e0accSmrg CONFIG_FILES = $CONFIG_FILES 5762ff7e0accSmrg CONFIG_HEADERS = $CONFIG_HEADERS 5763ff7e0accSmrg CONFIG_LINKS = $CONFIG_LINKS 5764ff7e0accSmrg CONFIG_COMMANDS = $CONFIG_COMMANDS 5765ff7e0accSmrg $ $0 $@ 5766ff7e0accSmrg 5767ff7e0accSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5768ff7e0accSmrg" 5769ff7e0accSmrg 5770ff7e0accSmrg_ACEOF 5771ff7e0accSmrg 577210998002Smrgcase $ac_config_files in *" 577310998002Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 577410998002Smrgesac 577510998002Smrg 577610998002Smrgcase $ac_config_headers in *" 577710998002Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 577810998002Smrgesac 577910998002Smrg 578010998002Smrg 5781a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5782ff7e0accSmrg# Files that config.status was made for. 5783ff7e0accSmrgconfig_files="$ac_config_files" 5784ff7e0accSmrgconfig_headers="$ac_config_headers" 5785ff7e0accSmrgconfig_commands="$ac_config_commands" 5786ff7e0accSmrg 5787ff7e0accSmrg_ACEOF 5788ff7e0accSmrg 5789a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5790ff7e0accSmrgac_cs_usage="\ 5791863f95b1Smrg\`$as_me' instantiates files and other configuration actions 5792863f95b1Smrgfrom templates according to the current configuration. Unless the files 5793863f95b1Smrgand actions are specified as TAGs, all are instantiated by default. 5794ff7e0accSmrg 5795863f95b1SmrgUsage: $0 [OPTION]... [TAG]... 5796ff7e0accSmrg 5797ff7e0accSmrg -h, --help print this help, then exit 5798ff7e0accSmrg -V, --version print version number and configuration settings, then exit 5799863f95b1Smrg --config print configuration, then exit 580010998002Smrg -q, --quiet, --silent 580110998002Smrg do not print progress messages 5802ff7e0accSmrg -d, --debug don't remove temporary files 5803ff7e0accSmrg --recheck update $as_me by reconfiguring in the same conditions 580410998002Smrg --file=FILE[:TEMPLATE] 5805a005d216Smrg instantiate the configuration file FILE 580610998002Smrg --header=FILE[:TEMPLATE] 5807a005d216Smrg instantiate the configuration header FILE 5808ff7e0accSmrg 5809ff7e0accSmrgConfiguration files: 5810ff7e0accSmrg$config_files 5811ff7e0accSmrg 5812ff7e0accSmrgConfiguration headers: 5813ff7e0accSmrg$config_headers 5814ff7e0accSmrg 5815ff7e0accSmrgConfiguration commands: 5816ff7e0accSmrg$config_commands 5817ff7e0accSmrg 5818863f95b1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 5819ff7e0accSmrg 5820ff7e0accSmrg_ACEOF 5821a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5822863f95b1Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5823ff7e0accSmrgac_cs_version="\\ 5824a1806bd8Smrgxwininfo config.status 1.1.2 5825863f95b1Smrgconfigured by $0, generated by GNU Autoconf 2.68, 5826863f95b1Smrg with options \\"\$ac_cs_config\\" 5827ff7e0accSmrg 5828863f95b1SmrgCopyright (C) 2010 Free Software Foundation, Inc. 5829ff7e0accSmrgThis config.status script is free software; the Free Software Foundation 5830ff7e0accSmrggives unlimited permission to copy, distribute and modify it." 5831ff7e0accSmrg 5832ff7e0accSmrgac_pwd='$ac_pwd' 5833ff7e0accSmrgsrcdir='$srcdir' 5834ff7e0accSmrgINSTALL='$INSTALL' 5835ff7e0accSmrgMKDIR_P='$MKDIR_P' 5836a005d216SmrgAWK='$AWK' 5837a005d216Smrgtest -n "\$AWK" || AWK=awk 5838ff7e0accSmrg_ACEOF 5839ff7e0accSmrg 5840a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5841a005d216Smrg# The default lists apply if the user does not specify any file. 5842ff7e0accSmrgac_need_defaults=: 5843ff7e0accSmrgwhile test $# != 0 5844ff7e0accSmrgdo 5845ff7e0accSmrg case $1 in 5846863f95b1Smrg --*=?*) 5847ff7e0accSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5848ff7e0accSmrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5849ff7e0accSmrg ac_shift=: 5850ff7e0accSmrg ;; 5851863f95b1Smrg --*=) 5852863f95b1Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5853863f95b1Smrg ac_optarg= 5854863f95b1Smrg ac_shift=: 5855863f95b1Smrg ;; 5856ff7e0accSmrg *) 5857ff7e0accSmrg ac_option=$1 5858ff7e0accSmrg ac_optarg=$2 5859ff7e0accSmrg ac_shift=shift 5860ff7e0accSmrg ;; 5861ff7e0accSmrg esac 5862ff7e0accSmrg 5863ff7e0accSmrg case $ac_option in 5864ff7e0accSmrg # Handling of the options. 5865ff7e0accSmrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5866ff7e0accSmrg ac_cs_recheck=: ;; 5867ff7e0accSmrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5868a005d216Smrg $as_echo "$ac_cs_version"; exit ;; 5869863f95b1Smrg --config | --confi | --conf | --con | --co | --c ) 5870863f95b1Smrg $as_echo "$ac_cs_config"; exit ;; 5871ff7e0accSmrg --debug | --debu | --deb | --de | --d | -d ) 5872ff7e0accSmrg debug=: ;; 5873ff7e0accSmrg --file | --fil | --fi | --f ) 5874ff7e0accSmrg $ac_shift 5875a005d216Smrg case $ac_optarg in 5876a005d216Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5877863f95b1Smrg '') as_fn_error $? "missing file argument" ;; 5878a005d216Smrg esac 5879863f95b1Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 5880ff7e0accSmrg ac_need_defaults=false;; 5881ff7e0accSmrg --header | --heade | --head | --hea ) 5882ff7e0accSmrg $ac_shift 5883a005d216Smrg case $ac_optarg in 5884a005d216Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5885a005d216Smrg esac 5886863f95b1Smrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5887ff7e0accSmrg ac_need_defaults=false;; 5888ff7e0accSmrg --he | --h) 5889ff7e0accSmrg # Conflict between --help and --header 5890863f95b1Smrg as_fn_error $? "ambiguous option: \`$1' 5891863f95b1SmrgTry \`$0 --help' for more information.";; 5892ff7e0accSmrg --help | --hel | -h ) 5893a005d216Smrg $as_echo "$ac_cs_usage"; exit ;; 5894ff7e0accSmrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5895ff7e0accSmrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 5896ff7e0accSmrg ac_cs_silent=: ;; 5897ff7e0accSmrg 5898ff7e0accSmrg # This is an error. 5899863f95b1Smrg -*) as_fn_error $? "unrecognized option: \`$1' 5900863f95b1SmrgTry \`$0 --help' for more information." ;; 5901ff7e0accSmrg 5902863f95b1Smrg *) as_fn_append ac_config_targets " $1" 5903ff7e0accSmrg ac_need_defaults=false ;; 5904ff7e0accSmrg 5905ff7e0accSmrg esac 5906ff7e0accSmrg shift 5907ff7e0accSmrgdone 5908ff7e0accSmrg 5909ff7e0accSmrgac_configure_extra_args= 5910ff7e0accSmrg 5911ff7e0accSmrgif $ac_cs_silent; then 5912ff7e0accSmrg exec 6>/dev/null 5913ff7e0accSmrg ac_configure_extra_args="$ac_configure_extra_args --silent" 5914ff7e0accSmrgfi 5915ff7e0accSmrg 5916ff7e0accSmrg_ACEOF 5917a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5918ff7e0accSmrgif \$ac_cs_recheck; then 5919a005d216Smrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5920a005d216Smrg shift 5921a005d216Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5922a005d216Smrg CONFIG_SHELL='$SHELL' 5923ff7e0accSmrg export CONFIG_SHELL 5924a005d216Smrg exec "\$@" 5925ff7e0accSmrgfi 5926ff7e0accSmrg 5927ff7e0accSmrg_ACEOF 5928a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5929ff7e0accSmrgexec 5>>config.log 5930ff7e0accSmrg{ 5931ff7e0accSmrg echo 5932ff7e0accSmrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5933ff7e0accSmrg## Running $as_me. ## 5934ff7e0accSmrg_ASBOX 5935a005d216Smrg $as_echo "$ac_log" 5936ff7e0accSmrg} >&5 5937ff7e0accSmrg 5938ff7e0accSmrg_ACEOF 5939a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5940ff7e0accSmrg# 5941ff7e0accSmrg# INIT-COMMANDS 5942ff7e0accSmrg# 5943ff7e0accSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5944ff7e0accSmrg 5945ff7e0accSmrg_ACEOF 5946ff7e0accSmrg 5947a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5948ff7e0accSmrg 5949ff7e0accSmrg# Handling of arguments. 5950ff7e0accSmrgfor ac_config_target in $ac_config_targets 5951ff7e0accSmrgdo 5952ff7e0accSmrg case $ac_config_target in 5953ff7e0accSmrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5954ff7e0accSmrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5955ff7e0accSmrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5956a1806bd8Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 5957ff7e0accSmrg 5958863f95b1Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5959ff7e0accSmrg esac 5960ff7e0accSmrgdone 5961ff7e0accSmrg 5962ff7e0accSmrg 5963ff7e0accSmrg# If the user did not use the arguments to specify the items to instantiate, 5964ff7e0accSmrg# then the envvar interface is used. Set only those that are not. 5965ff7e0accSmrg# We use the long form for the default assignment because of an extremely 5966ff7e0accSmrg# bizarre bug on SunOS 4.1.3. 5967ff7e0accSmrgif $ac_need_defaults; then 5968ff7e0accSmrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5969ff7e0accSmrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5970ff7e0accSmrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5971ff7e0accSmrgfi 5972ff7e0accSmrg 5973ff7e0accSmrg# Have a temporary directory for convenience. Make it in the build tree 5974ff7e0accSmrg# simply because there is no reason against having it here, and in addition, 5975ff7e0accSmrg# creating and moving files from /tmp can sometimes cause problems. 5976ff7e0accSmrg# Hook for its removal unless debugging. 5977ff7e0accSmrg# Note that there is a small window in which the directory will not be cleaned: 5978ff7e0accSmrg# after its creation but before its name has been assigned to `$tmp'. 5979ff7e0accSmrg$debug || 5980ff7e0accSmrg{ 5981863f95b1Smrg tmp= ac_tmp= 5982ff7e0accSmrg trap 'exit_status=$? 5983863f95b1Smrg : "${ac_tmp:=$tmp}" 5984863f95b1Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5985ff7e0accSmrg' 0 5986863f95b1Smrg trap 'as_fn_exit 1' 1 2 13 15 5987ff7e0accSmrg} 5988ff7e0accSmrg# Create a (secure) tmp directory for tmp files. 5989ff7e0accSmrg 5990ff7e0accSmrg{ 5991ff7e0accSmrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5992863f95b1Smrg test -d "$tmp" 5993ff7e0accSmrg} || 5994ff7e0accSmrg{ 5995ff7e0accSmrg tmp=./conf$$-$RANDOM 5996ff7e0accSmrg (umask 077 && mkdir "$tmp") 5997863f95b1Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5998863f95b1Smrgac_tmp=$tmp 5999ff7e0accSmrg 6000a005d216Smrg# Set up the scripts for CONFIG_FILES section. 6001a005d216Smrg# No need to generate them if there are no CONFIG_FILES. 6002a005d216Smrg# This happens for instance with `./config.status config.h'. 6003ff7e0accSmrgif test -n "$CONFIG_FILES"; then 6004ff7e0accSmrg 6005ff7e0accSmrg 6006863f95b1Smrgac_cr=`echo X | tr X '\015'` 6007863f95b1Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 6008863f95b1Smrg# But we know of no other shell where ac_cr would be empty at this 6009863f95b1Smrg# point, so we can use a bashism as a fallback. 6010863f95b1Smrgif test "x$ac_cr" = x; then 6011863f95b1Smrg eval ac_cr=\$\'\\r\' 6012863f95b1Smrgfi 6013a005d216Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6014a005d216Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6015a005d216Smrg ac_cs_awk_cr='\\r' 6016a005d216Smrgelse 6017a005d216Smrg ac_cs_awk_cr=$ac_cr 6018ff7e0accSmrgfi 6019ff7e0accSmrg 6020863f95b1Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 6021ff7e0accSmrg_ACEOF 6022ff7e0accSmrg 6023ff7e0accSmrg 6024a005d216Smrg{ 6025a005d216Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 6026a005d216Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6027a005d216Smrg echo "_ACEOF" 6028a005d216Smrg} >conf$$subs.sh || 6029863f95b1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6030863f95b1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 6031ff7e0accSmrgac_delim='%!_!# ' 6032ff7e0accSmrgfor ac_last_try in false false false false false :; do 6033a005d216Smrg . ./conf$$subs.sh || 6034863f95b1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6035ff7e0accSmrg 603610998002Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 603710998002Smrg if test $ac_delim_n = $ac_delim_num; then 6038ff7e0accSmrg break 6039ff7e0accSmrg elif $ac_last_try; then 6040863f95b1Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 6041ff7e0accSmrg else 6042ff7e0accSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6043ff7e0accSmrg fi 6044ff7e0accSmrgdone 6045a005d216Smrgrm -f conf$$subs.sh 6046ff7e0accSmrg 6047a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6048863f95b1Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 6049a005d216Smrg_ACEOF 6050a005d216Smrgsed -n ' 6051a005d216Smrgh 6052a005d216Smrgs/^/S["/; s/!.*/"]=/ 6053a005d216Smrgp 6054a005d216Smrgg 6055a005d216Smrgs/^[^!]*!// 6056a005d216Smrg:repl 6057a005d216Smrgt repl 6058a005d216Smrgs/'"$ac_delim"'$// 6059a005d216Smrgt delim 6060a005d216Smrg:nl 6061a005d216Smrgh 6062863f95b1Smrgs/\(.\{148\}\)..*/\1/ 6063a005d216Smrgt more1 6064a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6065a005d216Smrgp 6066a005d216Smrgn 6067a005d216Smrgb repl 6068a005d216Smrg:more1 6069a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6070a005d216Smrgp 6071a005d216Smrgg 6072a005d216Smrgs/.\{148\}// 6073a005d216Smrgt nl 6074a005d216Smrg:delim 6075a005d216Smrgh 6076863f95b1Smrgs/\(.\{148\}\)..*/\1/ 6077a005d216Smrgt more2 6078a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 6079a005d216Smrgp 6080a005d216Smrgb 6081a005d216Smrg:more2 6082a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6083a005d216Smrgp 6084a005d216Smrgg 6085a005d216Smrgs/.\{148\}// 6086a005d216Smrgt delim 6087a005d216Smrg' <conf$$subs.awk | sed ' 6088a005d216Smrg/^[^""]/{ 6089a005d216Smrg N 6090a005d216Smrg s/\n// 6091a005d216Smrg} 6092a005d216Smrg' >>$CONFIG_STATUS || ac_write_fail=1 6093a005d216Smrgrm -f conf$$subs.awk 6094a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6095a005d216Smrg_ACAWK 6096863f95b1Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 6097a005d216Smrg for (key in S) S_is_set[key] = 1 6098a005d216Smrg FS = "" 6099a005d216Smrg 6100a005d216Smrg} 6101a005d216Smrg{ 6102a005d216Smrg line = $ 0 6103a005d216Smrg nfields = split(line, field, "@") 6104a005d216Smrg substed = 0 6105a005d216Smrg len = length(field[1]) 6106a005d216Smrg for (i = 2; i < nfields; i++) { 6107a005d216Smrg key = field[i] 6108a005d216Smrg keylen = length(key) 6109a005d216Smrg if (S_is_set[key]) { 6110a005d216Smrg value = S[key] 6111a005d216Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6112a005d216Smrg len += length(value) + length(field[++i]) 6113a005d216Smrg substed = 1 6114a005d216Smrg } else 6115a005d216Smrg len += 1 + keylen 6116a005d216Smrg } 6117a005d216Smrg 6118a005d216Smrg print line 6119a005d216Smrg} 6120ff7e0accSmrg 6121a005d216Smrg_ACAWK 6122ff7e0accSmrg_ACEOF 6123a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6124a005d216Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6125a005d216Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6126a005d216Smrgelse 6127a005d216Smrg cat 6128863f95b1Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 6129863f95b1Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 6130ff7e0accSmrg_ACEOF 6131ff7e0accSmrg 6132863f95b1Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 6133863f95b1Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 6134ff7e0accSmrg# trailing colons and then remove the whole line if VPATH becomes empty 6135ff7e0accSmrg# (actually we leave an empty line to preserve line numbers). 6136ff7e0accSmrgif test "x$srcdir" = x.; then 6137863f95b1Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 6138863f95b1Smrgh 6139863f95b1Smrgs/// 6140863f95b1Smrgs/^/:/ 6141863f95b1Smrgs/[ ]*$/:/ 6142863f95b1Smrgs/:\$(srcdir):/:/g 6143863f95b1Smrgs/:\${srcdir}:/:/g 6144863f95b1Smrgs/:@srcdir@:/:/g 6145863f95b1Smrgs/^:*// 6146ff7e0accSmrgs/:*$// 6147863f95b1Smrgx 6148863f95b1Smrgs/\(=[ ]*\).*/\1/ 6149863f95b1SmrgG 6150863f95b1Smrgs/\n// 6151ff7e0accSmrgs/^[^=]*=[ ]*$// 6152ff7e0accSmrg}' 6153ff7e0accSmrgfi 6154ff7e0accSmrg 6155a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6156ff7e0accSmrgfi # test -n "$CONFIG_FILES" 6157ff7e0accSmrg 6158a005d216Smrg# Set up the scripts for CONFIG_HEADERS section. 6159a005d216Smrg# No need to generate them if there are no CONFIG_HEADERS. 6160a005d216Smrg# This happens for instance with `./config.status Makefile'. 6161a005d216Smrgif test -n "$CONFIG_HEADERS"; then 6162863f95b1Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 6163a005d216SmrgBEGIN { 6164a005d216Smrg_ACEOF 6165a005d216Smrg 6166a005d216Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as 6167a005d216Smrg# here-document in config.status, that substitutes the proper values into 6168a005d216Smrg# config.h.in to produce config.h. 6169ff7e0accSmrg 6170a005d216Smrg# Create a delimiter string that does not exist in confdefs.h, to ease 6171a005d216Smrg# handling of long lines. 6172a005d216Smrgac_delim='%!_!# ' 6173a005d216Smrgfor ac_last_try in false false :; do 6174863f95b1Smrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 6175863f95b1Smrg if test -z "$ac_tt"; then 6176a005d216Smrg break 6177a005d216Smrg elif $ac_last_try; then 6178863f95b1Smrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6179a005d216Smrg else 6180a005d216Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6181a005d216Smrg fi 6182a005d216Smrgdone 6183a005d216Smrg 6184a005d216Smrg# For the awk script, D is an array of macro values keyed by name, 6185a005d216Smrg# likewise P contains macro parameters if any. Preserve backslash 6186a005d216Smrg# newline sequences. 6187a005d216Smrg 6188a005d216Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6189a005d216Smrgsed -n ' 6190a005d216Smrgs/.\{148\}/&'"$ac_delim"'/g 6191a005d216Smrgt rset 6192a005d216Smrg:rset 6193a005d216Smrgs/^[ ]*#[ ]*define[ ][ ]*/ / 6194a005d216Smrgt def 6195a005d216Smrgd 6196a005d216Smrg:def 6197a005d216Smrgs/\\$// 6198a005d216Smrgt bsnl 6199a005d216Smrgs/["\\]/\\&/g 6200a005d216Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6201a005d216SmrgD["\1"]=" \3"/p 6202a005d216Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6203a005d216Smrgd 6204a005d216Smrg:bsnl 6205a005d216Smrgs/["\\]/\\&/g 6206a005d216Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6207a005d216SmrgD["\1"]=" \3\\\\\\n"\\/p 6208a005d216Smrgt cont 6209a005d216Smrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6210a005d216Smrgt cont 6211a005d216Smrgd 6212a005d216Smrg:cont 6213a005d216Smrgn 6214a005d216Smrgs/.\{148\}/&'"$ac_delim"'/g 6215a005d216Smrgt clear 6216a005d216Smrg:clear 6217a005d216Smrgs/\\$// 6218a005d216Smrgt bsnlc 6219a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 6220a005d216Smrgd 6221a005d216Smrg:bsnlc 6222a005d216Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6223a005d216Smrgb cont 6224a005d216Smrg' <confdefs.h | sed ' 6225a005d216Smrgs/'"$ac_delim"'/"\\\ 6226a005d216Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 6227a005d216Smrg 6228a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6229a005d216Smrg for (key in D) D_is_set[key] = 1 6230a005d216Smrg FS = "" 6231a005d216Smrg} 6232a005d216Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6233a005d216Smrg line = \$ 0 6234a005d216Smrg split(line, arg, " ") 6235a005d216Smrg if (arg[1] == "#") { 6236a005d216Smrg defundef = arg[2] 6237a005d216Smrg mac1 = arg[3] 6238a005d216Smrg } else { 6239a005d216Smrg defundef = substr(arg[1], 2) 6240a005d216Smrg mac1 = arg[2] 6241a005d216Smrg } 6242a005d216Smrg split(mac1, mac2, "(") #) 6243a005d216Smrg macro = mac2[1] 624410998002Smrg prefix = substr(line, 1, index(line, defundef) - 1) 6245a005d216Smrg if (D_is_set[macro]) { 6246a005d216Smrg # Preserve the white space surrounding the "#". 6247a005d216Smrg print prefix "define", macro P[macro] D[macro] 6248a005d216Smrg next 6249a005d216Smrg } else { 6250a005d216Smrg # Replace #undef with comments. This is necessary, for example, 6251a005d216Smrg # in the case of _POSIX_SOURCE, which is predefined and required 6252a005d216Smrg # on some systems where configure will not decide to define it. 6253a005d216Smrg if (defundef == "undef") { 625410998002Smrg print "/*", prefix defundef, macro, "*/" 6255a005d216Smrg next 6256a005d216Smrg } 6257a005d216Smrg } 6258a005d216Smrg} 6259a005d216Smrg{ print } 6260a005d216Smrg_ACAWK 6261a005d216Smrg_ACEOF 6262a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6263863f95b1Smrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6264a005d216Smrgfi # test -n "$CONFIG_HEADERS" 6265a005d216Smrg 6266a005d216Smrg 6267a005d216Smrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6268a005d216Smrgshift 6269a005d216Smrgfor ac_tag 6270ff7e0accSmrgdo 6271ff7e0accSmrg case $ac_tag in 6272ff7e0accSmrg :[FHLC]) ac_mode=$ac_tag; continue;; 6273ff7e0accSmrg esac 6274ff7e0accSmrg case $ac_mode$ac_tag in 6275ff7e0accSmrg :[FHL]*:*);; 6276863f95b1Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6277ff7e0accSmrg :[FH]-) ac_tag=-:-;; 6278ff7e0accSmrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6279ff7e0accSmrg esac 6280ff7e0accSmrg ac_save_IFS=$IFS 6281ff7e0accSmrg IFS=: 6282ff7e0accSmrg set x $ac_tag 6283ff7e0accSmrg IFS=$ac_save_IFS 6284ff7e0accSmrg shift 6285ff7e0accSmrg ac_file=$1 6286ff7e0accSmrg shift 6287ff7e0accSmrg 6288ff7e0accSmrg case $ac_mode in 6289ff7e0accSmrg :L) ac_source=$1;; 6290ff7e0accSmrg :[FH]) 6291ff7e0accSmrg ac_file_inputs= 6292ff7e0accSmrg for ac_f 6293ff7e0accSmrg do 6294ff7e0accSmrg case $ac_f in 6295863f95b1Smrg -) ac_f="$ac_tmp/stdin";; 6296ff7e0accSmrg *) # Look for the file first in the build tree, then in the source tree 6297ff7e0accSmrg # (if the path is not absolute). The absolute path cannot be DOS-style, 6298ff7e0accSmrg # because $ac_f cannot contain `:'. 6299ff7e0accSmrg test -f "$ac_f" || 6300ff7e0accSmrg case $ac_f in 6301ff7e0accSmrg [\\/$]*) false;; 6302ff7e0accSmrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6303ff7e0accSmrg esac || 6304863f95b1Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6305ff7e0accSmrg esac 6306a005d216Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6307863f95b1Smrg as_fn_append ac_file_inputs " '$ac_f'" 6308ff7e0accSmrg done 6309ff7e0accSmrg 6310ff7e0accSmrg # Let's still pretend it is `configure' which instantiates (i.e., don't 6311ff7e0accSmrg # use $as_me), people would be surprised to read: 6312ff7e0accSmrg # /* config.h. Generated by config.status. */ 6313a005d216Smrg configure_input='Generated from '` 6314a005d216Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6315a005d216Smrg `' by configure.' 6316ff7e0accSmrg if test x"$ac_file" != x-; then 6317ff7e0accSmrg configure_input="$ac_file. $configure_input" 6318863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6319a005d216Smrg$as_echo "$as_me: creating $ac_file" >&6;} 6320ff7e0accSmrg fi 6321a005d216Smrg # Neutralize special characters interpreted by sed in replacement strings. 6322a005d216Smrg case $configure_input in #( 6323a005d216Smrg *\&* | *\|* | *\\* ) 6324a005d216Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 6325a005d216Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 6326a005d216Smrg *) ac_sed_conf_input=$configure_input;; 6327a005d216Smrg esac 6328ff7e0accSmrg 6329ff7e0accSmrg case $ac_tag in 6330863f95b1Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6331863f95b1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6332ff7e0accSmrg esac 6333ff7e0accSmrg ;; 6334ff7e0accSmrg esac 6335ff7e0accSmrg 6336ff7e0accSmrg ac_dir=`$as_dirname -- "$ac_file" || 6337ff7e0accSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6338ff7e0accSmrg X"$ac_file" : 'X\(//\)[^/]' \| \ 6339ff7e0accSmrg X"$ac_file" : 'X\(//\)$' \| \ 6340ff7e0accSmrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6341a005d216Smrg$as_echo X"$ac_file" | 6342ff7e0accSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6343ff7e0accSmrg s//\1/ 6344ff7e0accSmrg q 6345ff7e0accSmrg } 6346ff7e0accSmrg /^X\(\/\/\)[^/].*/{ 6347ff7e0accSmrg s//\1/ 6348ff7e0accSmrg q 6349ff7e0accSmrg } 6350ff7e0accSmrg /^X\(\/\/\)$/{ 6351ff7e0accSmrg s//\1/ 6352ff7e0accSmrg q 6353ff7e0accSmrg } 6354ff7e0accSmrg /^X\(\/\).*/{ 6355ff7e0accSmrg s//\1/ 6356ff7e0accSmrg q 6357ff7e0accSmrg } 6358ff7e0accSmrg s/.*/./; q'` 6359863f95b1Smrg as_dir="$ac_dir"; as_fn_mkdir_p 6360ff7e0accSmrg ac_builddir=. 6361ff7e0accSmrg 6362ff7e0accSmrgcase "$ac_dir" in 6363ff7e0accSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6364ff7e0accSmrg*) 6365a005d216Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6366ff7e0accSmrg # A ".." for each directory in $ac_dir_suffix. 6367a005d216Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6368ff7e0accSmrg case $ac_top_builddir_sub in 6369ff7e0accSmrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6370ff7e0accSmrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6371ff7e0accSmrg esac ;; 6372ff7e0accSmrgesac 6373ff7e0accSmrgac_abs_top_builddir=$ac_pwd 6374ff7e0accSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix 6375ff7e0accSmrg# for backward compatibility: 6376ff7e0accSmrgac_top_builddir=$ac_top_build_prefix 6377ff7e0accSmrg 6378ff7e0accSmrgcase $srcdir in 6379ff7e0accSmrg .) # We are building in place. 6380ff7e0accSmrg ac_srcdir=. 6381ff7e0accSmrg ac_top_srcdir=$ac_top_builddir_sub 6382ff7e0accSmrg ac_abs_top_srcdir=$ac_pwd ;; 6383ff7e0accSmrg [\\/]* | ?:[\\/]* ) # Absolute name. 6384ff7e0accSmrg ac_srcdir=$srcdir$ac_dir_suffix; 6385ff7e0accSmrg ac_top_srcdir=$srcdir 6386ff7e0accSmrg ac_abs_top_srcdir=$srcdir ;; 6387ff7e0accSmrg *) # Relative name. 6388ff7e0accSmrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6389ff7e0accSmrg ac_top_srcdir=$ac_top_build_prefix$srcdir 6390ff7e0accSmrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6391ff7e0accSmrgesac 6392ff7e0accSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6393ff7e0accSmrg 6394ff7e0accSmrg 6395ff7e0accSmrg case $ac_mode in 6396ff7e0accSmrg :F) 6397ff7e0accSmrg # 6398ff7e0accSmrg # CONFIG_FILE 6399ff7e0accSmrg # 6400ff7e0accSmrg 6401ff7e0accSmrg case $INSTALL in 6402ff7e0accSmrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6403ff7e0accSmrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6404ff7e0accSmrg esac 6405ff7e0accSmrg ac_MKDIR_P=$MKDIR_P 6406ff7e0accSmrg case $MKDIR_P in 6407ff7e0accSmrg [\\/$]* | ?:[\\/]* ) ;; 6408ff7e0accSmrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6409ff7e0accSmrg esac 6410ff7e0accSmrg_ACEOF 6411ff7e0accSmrg 6412a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6413ff7e0accSmrg# If the template does not know about datarootdir, expand it. 6414ff7e0accSmrg# FIXME: This hack should be removed a few years after 2.60. 6415ff7e0accSmrgac_datarootdir_hack=; ac_datarootdir_seen= 6416a005d216Smrgac_sed_dataroot=' 6417a005d216Smrg/datarootdir/ { 6418ff7e0accSmrg p 6419ff7e0accSmrg q 6420ff7e0accSmrg} 6421ff7e0accSmrg/@datadir@/p 6422ff7e0accSmrg/@docdir@/p 6423ff7e0accSmrg/@infodir@/p 6424ff7e0accSmrg/@localedir@/p 6425863f95b1Smrg/@mandir@/p' 6426a005d216Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6427ff7e0accSmrg*datarootdir*) ac_datarootdir_seen=yes;; 6428ff7e0accSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6429863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6430a005d216Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6431ff7e0accSmrg_ACEOF 6432a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6433ff7e0accSmrg ac_datarootdir_hack=' 6434ff7e0accSmrg s&@datadir@&$datadir&g 6435ff7e0accSmrg s&@docdir@&$docdir&g 6436ff7e0accSmrg s&@infodir@&$infodir&g 6437ff7e0accSmrg s&@localedir@&$localedir&g 6438ff7e0accSmrg s&@mandir@&$mandir&g 6439863f95b1Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 6440ff7e0accSmrgesac 6441ff7e0accSmrg_ACEOF 6442ff7e0accSmrg 6443ff7e0accSmrg# Neutralize VPATH when `$srcdir' = `.'. 6444ff7e0accSmrg# Shell code in configure.ac might set extrasub. 6445ff7e0accSmrg# FIXME: do we really want to maintain this feature? 6446a005d216Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6447a005d216Smrgac_sed_extra="$ac_vpsub 6448ff7e0accSmrg$extrasub 6449ff7e0accSmrg_ACEOF 6450a005d216Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6451ff7e0accSmrg:t 6452ff7e0accSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6453a005d216Smrgs|@configure_input@|$ac_sed_conf_input|;t t 6454ff7e0accSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6455a005d216Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6456ff7e0accSmrgs&@srcdir@&$ac_srcdir&;t t 6457ff7e0accSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6458ff7e0accSmrgs&@top_srcdir@&$ac_top_srcdir&;t t 6459ff7e0accSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6460ff7e0accSmrgs&@builddir@&$ac_builddir&;t t 6461ff7e0accSmrgs&@abs_builddir@&$ac_abs_builddir&;t t 6462ff7e0accSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6463ff7e0accSmrgs&@INSTALL@&$ac_INSTALL&;t t 6464ff7e0accSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6465ff7e0accSmrg$ac_datarootdir_hack 6466a005d216Smrg" 6467863f95b1Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6468863f95b1Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6469ff7e0accSmrg 6470ff7e0accSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6471863f95b1Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6472863f95b1Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6473863f95b1Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 6474863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6475863f95b1Smrgwhich seems to be undefined. Please make sure it is defined" >&5 6476a005d216Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6477863f95b1Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 6478ff7e0accSmrg 6479863f95b1Smrg rm -f "$ac_tmp/stdin" 6480ff7e0accSmrg case $ac_file in 6481863f95b1Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6482863f95b1Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6483a005d216Smrg esac \ 6484863f95b1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6485ff7e0accSmrg ;; 6486ff7e0accSmrg :H) 6487ff7e0accSmrg # 6488ff7e0accSmrg # CONFIG_HEADER 6489ff7e0accSmrg # 6490ff7e0accSmrg if test x"$ac_file" != x-; then 6491a005d216Smrg { 6492a005d216Smrg $as_echo "/* $configure_input */" \ 6493863f95b1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 6494863f95b1Smrg } >"$ac_tmp/config.h" \ 6495863f95b1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6496863f95b1Smrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6497863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6498a005d216Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 6499ff7e0accSmrg else 6500a005d216Smrg rm -f "$ac_file" 6501863f95b1Smrg mv "$ac_tmp/config.h" "$ac_file" \ 6502863f95b1Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6503ff7e0accSmrg fi 6504ff7e0accSmrg else 6505a005d216Smrg $as_echo "/* $configure_input */" \ 6506863f95b1Smrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 6507863f95b1Smrg || as_fn_error $? "could not create -" "$LINENO" 5 6508ff7e0accSmrg fi 6509a005d216Smrg# Compute "$ac_file"'s index in $config_headers. 6510a005d216Smrg_am_arg="$ac_file" 6511ff7e0accSmrg_am_stamp_count=1 6512ff7e0accSmrgfor _am_header in $config_headers :; do 6513ff7e0accSmrg case $_am_header in 6514a005d216Smrg $_am_arg | $_am_arg:* ) 6515ff7e0accSmrg break ;; 6516ff7e0accSmrg * ) 6517ff7e0accSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6518ff7e0accSmrg esac 6519ff7e0accSmrgdone 6520a005d216Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6521a005d216Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6522a005d216Smrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6523a005d216Smrg X"$_am_arg" : 'X\(//\)$' \| \ 6524a005d216Smrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6525a005d216Smrg$as_echo X"$_am_arg" | 6526ff7e0accSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6527ff7e0accSmrg s//\1/ 6528ff7e0accSmrg q 6529ff7e0accSmrg } 6530ff7e0accSmrg /^X\(\/\/\)[^/].*/{ 6531ff7e0accSmrg s//\1/ 6532ff7e0accSmrg q 6533ff7e0accSmrg } 6534ff7e0accSmrg /^X\(\/\/\)$/{ 6535ff7e0accSmrg s//\1/ 6536ff7e0accSmrg q 6537ff7e0accSmrg } 6538ff7e0accSmrg /^X\(\/\).*/{ 6539ff7e0accSmrg s//\1/ 6540ff7e0accSmrg q 6541ff7e0accSmrg } 6542ff7e0accSmrg s/.*/./; q'`/stamp-h$_am_stamp_count 6543ff7e0accSmrg ;; 6544ff7e0accSmrg 6545863f95b1Smrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6546a005d216Smrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6547ff7e0accSmrg ;; 6548ff7e0accSmrg esac 6549ff7e0accSmrg 6550ff7e0accSmrg 6551ff7e0accSmrg case $ac_file$ac_mode in 655210998002Smrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 655310998002Smrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 655410998002Smrg # are listed without --file. Let's play safe and only enable the eval 655510998002Smrg # if we detect the quoting. 655610998002Smrg case $CONFIG_FILES in 655710998002Smrg *\'*) eval set x "$CONFIG_FILES" ;; 655810998002Smrg *) set x $CONFIG_FILES ;; 655910998002Smrg esac 656010998002Smrg shift 656110998002Smrg for mf 656210998002Smrg do 656310998002Smrg # Strip MF so we end up with the name of the file. 656410998002Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 656510998002Smrg # Check whether this is an Automake generated Makefile or not. 656610998002Smrg # We used to match only the files named `Makefile.in', but 656710998002Smrg # some people rename them; so instead we look at the file content. 656810998002Smrg # Grep'ing the first line is not enough: some people post-process 656910998002Smrg # each Makefile.in and add a new line on top of each file to say so. 657010998002Smrg # Grep'ing the whole file is not good either: AIX grep has a line 657110998002Smrg # limit of 2048, but all sed's we know have understand at least 4000. 657210998002Smrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 657310998002Smrg dirpart=`$as_dirname -- "$mf" || 6574ff7e0accSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6575ff7e0accSmrg X"$mf" : 'X\(//\)[^/]' \| \ 6576ff7e0accSmrg X"$mf" : 'X\(//\)$' \| \ 6577ff7e0accSmrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6578a005d216Smrg$as_echo X"$mf" | 6579ff7e0accSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6580ff7e0accSmrg s//\1/ 6581ff7e0accSmrg q 6582ff7e0accSmrg } 6583ff7e0accSmrg /^X\(\/\/\)[^/].*/{ 6584ff7e0accSmrg s//\1/ 6585ff7e0accSmrg q 6586ff7e0accSmrg } 6587ff7e0accSmrg /^X\(\/\/\)$/{ 6588ff7e0accSmrg s//\1/ 6589ff7e0accSmrg q 6590ff7e0accSmrg } 6591ff7e0accSmrg /^X\(\/\).*/{ 6592ff7e0accSmrg s//\1/ 6593ff7e0accSmrg q 6594ff7e0accSmrg } 6595ff7e0accSmrg s/.*/./; q'` 659610998002Smrg else 659710998002Smrg continue 659810998002Smrg fi 659910998002Smrg # Extract the definition of DEPDIR, am__include, and am__quote 660010998002Smrg # from the Makefile without running `make'. 660110998002Smrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 660210998002Smrg test -z "$DEPDIR" && continue 660310998002Smrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 660410998002Smrg test -z "am__include" && continue 660510998002Smrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 660610998002Smrg # When using ansi2knr, U may be empty or an underscore; expand it 660710998002Smrg U=`sed -n 's/^U = //p' < "$mf"` 660810998002Smrg # Find all dependency output files, they are included files with 660910998002Smrg # $(DEPDIR) in their names. We invoke sed twice because it is the 661010998002Smrg # simplest approach to changing $(DEPDIR) to its actual value in the 661110998002Smrg # expansion. 661210998002Smrg for file in `sed -n " 661310998002Smrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 661410998002Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 661510998002Smrg # Make sure the directory exists. 661610998002Smrg test -f "$dirpart/$file" && continue 661710998002Smrg fdir=`$as_dirname -- "$file" || 6618ff7e0accSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6619ff7e0accSmrg X"$file" : 'X\(//\)[^/]' \| \ 6620ff7e0accSmrg X"$file" : 'X\(//\)$' \| \ 6621ff7e0accSmrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6622a005d216Smrg$as_echo X"$file" | 6623ff7e0accSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6624ff7e0accSmrg s//\1/ 6625ff7e0accSmrg q 6626ff7e0accSmrg } 6627ff7e0accSmrg /^X\(\/\/\)[^/].*/{ 6628ff7e0accSmrg s//\1/ 6629ff7e0accSmrg q 6630ff7e0accSmrg } 6631ff7e0accSmrg /^X\(\/\/\)$/{ 6632ff7e0accSmrg s//\1/ 6633ff7e0accSmrg q 6634ff7e0accSmrg } 6635ff7e0accSmrg /^X\(\/\).*/{ 6636ff7e0accSmrg s//\1/ 6637ff7e0accSmrg q 6638ff7e0accSmrg } 6639ff7e0accSmrg s/.*/./; q'` 6640863f95b1Smrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 664110998002Smrg # echo "creating $dirpart/$file" 664210998002Smrg echo '# dummy' > "$dirpart/$file" 664310998002Smrg done 6644ff7e0accSmrg done 664510998002Smrg} 6646ff7e0accSmrg ;; 6647ff7e0accSmrg 6648ff7e0accSmrg esac 6649ff7e0accSmrgdone # for ac_tag 6650ff7e0accSmrg 6651ff7e0accSmrg 6652863f95b1Smrgas_fn_exit 0 6653ff7e0accSmrg_ACEOF 6654ff7e0accSmrgac_clean_files=$ac_clean_files_save 6655ff7e0accSmrg 6656a005d216Smrgtest $ac_write_fail = 0 || 6657863f95b1Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6658a005d216Smrg 6659ff7e0accSmrg 6660ff7e0accSmrg# configure is writing to config.log, and then calls config.status. 6661ff7e0accSmrg# config.status does its own redirection, appending to config.log. 6662ff7e0accSmrg# Unfortunately, on DOS this fails, as config.log is still kept open 6663ff7e0accSmrg# by configure, so config.status won't be able to write to it; its 6664ff7e0accSmrg# output is simply discarded. So we exec the FD to /dev/null, 6665ff7e0accSmrg# effectively closing config.log, so it can be properly (re)opened and 6666ff7e0accSmrg# appended to by config.status. When coming back to configure, we 6667ff7e0accSmrg# need to make the FD available again. 6668ff7e0accSmrgif test "$no_create" != yes; then 6669ff7e0accSmrg ac_cs_success=: 6670ff7e0accSmrg ac_config_status_args= 6671ff7e0accSmrg test "$silent" = yes && 6672ff7e0accSmrg ac_config_status_args="$ac_config_status_args --quiet" 6673ff7e0accSmrg exec 5>/dev/null 6674ff7e0accSmrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6675ff7e0accSmrg exec 5>>config.log 6676ff7e0accSmrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6677ff7e0accSmrg # would make configure fail if this is the last instruction. 6678863f95b1Smrg $ac_cs_success || as_fn_exit 1 6679ff7e0accSmrgfi 6680a005d216Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6681863f95b1Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 668210998002Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6683a005d216Smrgfi 6684ff7e0accSmrg 6685