configure revision 245f6787
1ea6ae205Smrg#! /bin/sh 2ea6ae205Smrg# Guess values for system-dependent variables and create Makefiles. 3245f6787Smrg# Generated by GNU Autoconf 2.68 for mkfontscale 1.0.9. 4ea6ae205Smrg# 5ea6ae205Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6ea6ae205Smrg# 7b6f2c9ccSmrg# 8ea6ae205Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9b6f2c9ccSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10b6f2c9ccSmrg# Foundation, Inc. 11b6f2c9ccSmrg# 12b6f2c9ccSmrg# 13ea6ae205Smrg# This configure script is free software; the Free Software Foundation 14ea6ae205Smrg# gives unlimited permission to copy, distribute and modify it. 15b6f2c9ccSmrg## -------------------- ## 16b6f2c9ccSmrg## M4sh Initialization. ## 17b6f2c9ccSmrg## -------------------- ## 18ea6ae205Smrg 19ea6ae205Smrg# Be more Bourne compatible 20ea6ae205SmrgDUALCASE=1; export DUALCASE # for MKS sh 21b6f2c9ccSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22ea6ae205Smrg emulate sh 23ea6ae205Smrg NULLCMD=: 24e83ac88aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25ea6ae205Smrg # is contrary to our usage. Disable this feature. 26ea6ae205Smrg alias -g '${1+"$@"}'='"$@"' 27ea6ae205Smrg setopt NO_GLOB_SUBST 28ea6ae205Smrgelse 29b6f2c9ccSmrg case `(set -o) 2>/dev/null` in #( 30b6f2c9ccSmrg *posix*) : 31b6f2c9ccSmrg set -o posix ;; #( 32b6f2c9ccSmrg *) : 33b6f2c9ccSmrg ;; 34ea6ae205Smrgesac 35ea6ae205Smrgfi 36ea6ae205Smrg 37ea6ae205Smrg 38e83ac88aSmrgas_nl=' 39e83ac88aSmrg' 40e83ac88aSmrgexport as_nl 41e83ac88aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 42e83ac88aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43e83ac88aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44e83ac88aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45b6f2c9ccSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 46b6f2c9ccSmrg# but without wasting forks for bash or zsh. 47b6f2c9ccSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 48b6f2c9ccSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49b6f2c9ccSmrg as_echo='print -r --' 50b6f2c9ccSmrg as_echo_n='print -rn --' 51b6f2c9ccSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52e83ac88aSmrg as_echo='printf %s\n' 53e83ac88aSmrg as_echo_n='printf %s' 54e83ac88aSmrgelse 55e83ac88aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56e83ac88aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57e83ac88aSmrg as_echo_n='/usr/ucb/echo -n' 58ea6ae205Smrg else 59e83ac88aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60e83ac88aSmrg as_echo_n_body='eval 61e83ac88aSmrg arg=$1; 62b6f2c9ccSmrg case $arg in #( 63e83ac88aSmrg *"$as_nl"*) 64e83ac88aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 65e83ac88aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66e83ac88aSmrg esac; 67e83ac88aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68e83ac88aSmrg ' 69e83ac88aSmrg export as_echo_n_body 70e83ac88aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 71ea6ae205Smrg fi 72e83ac88aSmrg export as_echo_body 73e83ac88aSmrg as_echo='sh -c $as_echo_body as_echo' 74e83ac88aSmrgfi 75e83ac88aSmrg 76e83ac88aSmrg# The user is always right. 77e83ac88aSmrgif test "${PATH_SEPARATOR+set}" != set; then 78e83ac88aSmrg PATH_SEPARATOR=: 79e83ac88aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80e83ac88aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81e83ac88aSmrg PATH_SEPARATOR=';' 82e83ac88aSmrg } 83ea6ae205Smrgfi 84ea6ae205Smrg 85ea6ae205Smrg 86ea6ae205Smrg# IFS 87ea6ae205Smrg# We need space, tab and new line, in precisely that order. Quoting is 88ea6ae205Smrg# there to prevent editors from complaining about space-tab. 89ea6ae205Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90ea6ae205Smrg# splitting by setting IFS to empty value.) 91ea6ae205SmrgIFS=" "" $as_nl" 92ea6ae205Smrg 93ea6ae205Smrg# Find who we are. Look in the path if we contain no directory separator. 94b6f2c9ccSmrgas_myself= 95b6f2c9ccSmrgcase $0 in #(( 96ea6ae205Smrg *[\\/]* ) as_myself=$0 ;; 97ea6ae205Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98ea6ae205Smrgfor as_dir in $PATH 99ea6ae205Smrgdo 100ea6ae205Smrg IFS=$as_save_IFS 101ea6ae205Smrg test -z "$as_dir" && as_dir=. 102b6f2c9ccSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103b6f2c9ccSmrg done 104ea6ae205SmrgIFS=$as_save_IFS 105ea6ae205Smrg 106ea6ae205Smrg ;; 107ea6ae205Smrgesac 108ea6ae205Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 109ea6ae205Smrg# in which case we are not to be found in the path. 110ea6ae205Smrgif test "x$as_myself" = x; then 111ea6ae205Smrg as_myself=$0 112ea6ae205Smrgfi 113ea6ae205Smrgif test ! -f "$as_myself"; then 114e83ac88aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115b6f2c9ccSmrg exit 1 116ea6ae205Smrgfi 117ea6ae205Smrg 118b6f2c9ccSmrg# Unset variables that we do not need and which cause bugs (e.g. in 119b6f2c9ccSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120b6f2c9ccSmrg# suppresses any "Segmentation fault" message there. '((' could 121b6f2c9ccSmrg# trigger a bug in pdksh 5.2.14. 122b6f2c9ccSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 123b6f2c9ccSmrgdo eval test x\${$as_var+set} = xset \ 124b6f2c9ccSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125ea6ae205Smrgdone 126ea6ae205SmrgPS1='$ ' 127ea6ae205SmrgPS2='> ' 128ea6ae205SmrgPS4='+ ' 129ea6ae205Smrg 130ea6ae205Smrg# NLS nuisances. 131e83ac88aSmrgLC_ALL=C 132e83ac88aSmrgexport LC_ALL 133e83ac88aSmrgLANGUAGE=C 134e83ac88aSmrgexport LANGUAGE 135ea6ae205Smrg 136b6f2c9ccSmrg# CDPATH. 137b6f2c9ccSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138b6f2c9ccSmrg 139b6f2c9ccSmrgif test "x$CONFIG_SHELL" = x; then 140b6f2c9ccSmrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141b6f2c9ccSmrg emulate sh 142b6f2c9ccSmrg NULLCMD=: 143b6f2c9ccSmrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144b6f2c9ccSmrg # is contrary to our usage. Disable this feature. 145b6f2c9ccSmrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 146b6f2c9ccSmrg setopt NO_GLOB_SUBST 147b6f2c9ccSmrgelse 148b6f2c9ccSmrg case \`(set -o) 2>/dev/null\` in #( 149b6f2c9ccSmrg *posix*) : 150b6f2c9ccSmrg set -o posix ;; #( 151b6f2c9ccSmrg *) : 152b6f2c9ccSmrg ;; 153b6f2c9ccSmrgesac 154b6f2c9ccSmrgfi 155b6f2c9ccSmrg" 156b6f2c9ccSmrg as_required="as_fn_return () { (exit \$1); } 157b6f2c9ccSmrgas_fn_success () { as_fn_return 0; } 158b6f2c9ccSmrgas_fn_failure () { as_fn_return 1; } 159b6f2c9ccSmrgas_fn_ret_success () { return 0; } 160b6f2c9ccSmrgas_fn_ret_failure () { return 1; } 161b6f2c9ccSmrg 162b6f2c9ccSmrgexitcode=0 163b6f2c9ccSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 164b6f2c9ccSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165b6f2c9ccSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166b6f2c9ccSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167b6f2c9ccSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168b6f2c9ccSmrg 169b6f2c9ccSmrgelse 170b6f2c9ccSmrg exitcode=1; echo positional parameters were not saved. 171b6f2c9ccSmrgfi 172b6f2c9ccSmrgtest x\$exitcode = x0 || exit 1" 173b6f2c9ccSmrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174b6f2c9ccSmrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175b6f2c9ccSmrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176b6f2c9ccSmrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177b6f2c9ccSmrgtest \$(( 1 + 1 )) = 2 || exit 1" 178b6f2c9ccSmrg if (eval "$as_required") 2>/dev/null; then : 179b6f2c9ccSmrg as_have_required=yes 180b6f2c9ccSmrgelse 181b6f2c9ccSmrg as_have_required=no 182b6f2c9ccSmrgfi 183b6f2c9ccSmrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184b6f2c9ccSmrg 185b6f2c9ccSmrgelse 186b6f2c9ccSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187b6f2c9ccSmrgas_found=false 188b6f2c9ccSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189b6f2c9ccSmrgdo 190b6f2c9ccSmrg IFS=$as_save_IFS 191b6f2c9ccSmrg test -z "$as_dir" && as_dir=. 192b6f2c9ccSmrg as_found=: 193b6f2c9ccSmrg case $as_dir in #( 194b6f2c9ccSmrg /*) 195b6f2c9ccSmrg for as_base in sh bash ksh sh5; do 196b6f2c9ccSmrg # Try only shells that exist, to save several forks. 197b6f2c9ccSmrg as_shell=$as_dir/$as_base 198b6f2c9ccSmrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199b6f2c9ccSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200b6f2c9ccSmrg CONFIG_SHELL=$as_shell as_have_required=yes 201b6f2c9ccSmrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202b6f2c9ccSmrg break 2 203b6f2c9ccSmrgfi 204b6f2c9ccSmrgfi 205b6f2c9ccSmrg done;; 206b6f2c9ccSmrg esac 207b6f2c9ccSmrg as_found=false 208b6f2c9ccSmrgdone 209b6f2c9ccSmrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210b6f2c9ccSmrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211b6f2c9ccSmrg CONFIG_SHELL=$SHELL as_have_required=yes 212b6f2c9ccSmrgfi; } 213b6f2c9ccSmrgIFS=$as_save_IFS 214b6f2c9ccSmrg 215b6f2c9ccSmrg 216b6f2c9ccSmrg if test "x$CONFIG_SHELL" != x; then : 217b6f2c9ccSmrg # We cannot yet assume a decent shell, so we have to provide a 218b6f2c9ccSmrg # neutralization value for shells without unset; and this also 219b6f2c9ccSmrg # works around shells that cannot unset nonexistent variables. 220b6f2c9ccSmrg # Preserve -v and -x to the replacement shell. 221b6f2c9ccSmrg BASH_ENV=/dev/null 222b6f2c9ccSmrg ENV=/dev/null 223b6f2c9ccSmrg (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224b6f2c9ccSmrg export CONFIG_SHELL 225b6f2c9ccSmrg case $- in # (((( 226b6f2c9ccSmrg *v*x* | *x*v* ) as_opts=-vx ;; 227b6f2c9ccSmrg *v* ) as_opts=-v ;; 228b6f2c9ccSmrg *x* ) as_opts=-x ;; 229b6f2c9ccSmrg * ) as_opts= ;; 230b6f2c9ccSmrg esac 231b6f2c9ccSmrg exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232b6f2c9ccSmrgfi 233b6f2c9ccSmrg 234b6f2c9ccSmrg if test x$as_have_required = xno; then : 235b6f2c9ccSmrg $as_echo "$0: This script requires a shell more modern than all" 236b6f2c9ccSmrg $as_echo "$0: the shells that I found on your system." 237b6f2c9ccSmrg if test x${ZSH_VERSION+set} = xset ; then 238b6f2c9ccSmrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239b6f2c9ccSmrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240b6f2c9ccSmrg else 241b6f2c9ccSmrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 242b6f2c9ccSmrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 243b6f2c9ccSmrg$0: about your system, including any error possibly output 244b6f2c9ccSmrg$0: before this message. Then install a modern shell, or 245b6f2c9ccSmrg$0: manually run the script under such a shell if you do 246b6f2c9ccSmrg$0: have one." 247b6f2c9ccSmrg fi 248b6f2c9ccSmrg exit 1 249b6f2c9ccSmrgfi 250b6f2c9ccSmrgfi 251b6f2c9ccSmrgfi 252b6f2c9ccSmrgSHELL=${CONFIG_SHELL-/bin/sh} 253b6f2c9ccSmrgexport SHELL 254b6f2c9ccSmrg# Unset more variables known to interfere with behavior of common tools. 255b6f2c9ccSmrgCLICOLOR_FORCE= GREP_OPTIONS= 256b6f2c9ccSmrgunset CLICOLOR_FORCE GREP_OPTIONS 257b6f2c9ccSmrg 258b6f2c9ccSmrg## --------------------- ## 259b6f2c9ccSmrg## M4sh Shell Functions. ## 260b6f2c9ccSmrg## --------------------- ## 261b6f2c9ccSmrg# as_fn_unset VAR 262b6f2c9ccSmrg# --------------- 263b6f2c9ccSmrg# Portably unset VAR. 264b6f2c9ccSmrgas_fn_unset () 265b6f2c9ccSmrg{ 266b6f2c9ccSmrg { eval $1=; unset $1;} 267b6f2c9ccSmrg} 268b6f2c9ccSmrgas_unset=as_fn_unset 269b6f2c9ccSmrg 270b6f2c9ccSmrg# as_fn_set_status STATUS 271b6f2c9ccSmrg# ----------------------- 272b6f2c9ccSmrg# Set $? to STATUS, without forking. 273b6f2c9ccSmrgas_fn_set_status () 274b6f2c9ccSmrg{ 275b6f2c9ccSmrg return $1 276b6f2c9ccSmrg} # as_fn_set_status 277b6f2c9ccSmrg 278b6f2c9ccSmrg# as_fn_exit STATUS 279b6f2c9ccSmrg# ----------------- 280b6f2c9ccSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 281b6f2c9ccSmrgas_fn_exit () 282b6f2c9ccSmrg{ 283b6f2c9ccSmrg set +e 284b6f2c9ccSmrg as_fn_set_status $1 285b6f2c9ccSmrg exit $1 286b6f2c9ccSmrg} # as_fn_exit 287b6f2c9ccSmrg 288b6f2c9ccSmrg# as_fn_mkdir_p 289b6f2c9ccSmrg# ------------- 290b6f2c9ccSmrg# Create "$as_dir" as a directory, including parents if necessary. 291b6f2c9ccSmrgas_fn_mkdir_p () 292b6f2c9ccSmrg{ 293b6f2c9ccSmrg 294b6f2c9ccSmrg case $as_dir in #( 295b6f2c9ccSmrg -*) as_dir=./$as_dir;; 296b6f2c9ccSmrg esac 297b6f2c9ccSmrg test -d "$as_dir" || eval $as_mkdir_p || { 298b6f2c9ccSmrg as_dirs= 299b6f2c9ccSmrg while :; do 300b6f2c9ccSmrg case $as_dir in #( 301b6f2c9ccSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 302b6f2c9ccSmrg *) as_qdir=$as_dir;; 303b6f2c9ccSmrg esac 304b6f2c9ccSmrg as_dirs="'$as_qdir' $as_dirs" 305b6f2c9ccSmrg as_dir=`$as_dirname -- "$as_dir" || 306b6f2c9ccSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 307b6f2c9ccSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 308b6f2c9ccSmrg X"$as_dir" : 'X\(//\)$' \| \ 309b6f2c9ccSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 310b6f2c9ccSmrg$as_echo X"$as_dir" | 311b6f2c9ccSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 312b6f2c9ccSmrg s//\1/ 313b6f2c9ccSmrg q 314b6f2c9ccSmrg } 315b6f2c9ccSmrg /^X\(\/\/\)[^/].*/{ 316b6f2c9ccSmrg s//\1/ 317b6f2c9ccSmrg q 318b6f2c9ccSmrg } 319b6f2c9ccSmrg /^X\(\/\/\)$/{ 320b6f2c9ccSmrg s//\1/ 321b6f2c9ccSmrg q 322b6f2c9ccSmrg } 323b6f2c9ccSmrg /^X\(\/\).*/{ 324b6f2c9ccSmrg s//\1/ 325b6f2c9ccSmrg q 326b6f2c9ccSmrg } 327b6f2c9ccSmrg s/.*/./; q'` 328b6f2c9ccSmrg test -d "$as_dir" && break 329b6f2c9ccSmrg done 330b6f2c9ccSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 331b6f2c9ccSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 332b6f2c9ccSmrg 333b6f2c9ccSmrg 334b6f2c9ccSmrg} # as_fn_mkdir_p 335b6f2c9ccSmrg# as_fn_append VAR VALUE 336b6f2c9ccSmrg# ---------------------- 337b6f2c9ccSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 338b6f2c9ccSmrg# advantage of any shell optimizations that allow amortized linear growth over 339b6f2c9ccSmrg# repeated appends, instead of the typical quadratic growth present in naive 340b6f2c9ccSmrg# implementations. 341b6f2c9ccSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 342b6f2c9ccSmrg eval 'as_fn_append () 343b6f2c9ccSmrg { 344b6f2c9ccSmrg eval $1+=\$2 345b6f2c9ccSmrg }' 346b6f2c9ccSmrgelse 347b6f2c9ccSmrg as_fn_append () 348b6f2c9ccSmrg { 349b6f2c9ccSmrg eval $1=\$$1\$2 350b6f2c9ccSmrg } 351b6f2c9ccSmrgfi # as_fn_append 352b6f2c9ccSmrg 353b6f2c9ccSmrg# as_fn_arith ARG... 354b6f2c9ccSmrg# ------------------ 355b6f2c9ccSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 356b6f2c9ccSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 357b6f2c9ccSmrg# must be portable across $(()) and expr. 358b6f2c9ccSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 359b6f2c9ccSmrg eval 'as_fn_arith () 360b6f2c9ccSmrg { 361b6f2c9ccSmrg as_val=$(( $* )) 362b6f2c9ccSmrg }' 363b6f2c9ccSmrgelse 364b6f2c9ccSmrg as_fn_arith () 365b6f2c9ccSmrg { 366b6f2c9ccSmrg as_val=`expr "$@" || test $? -eq 1` 367b6f2c9ccSmrg } 368b6f2c9ccSmrgfi # as_fn_arith 369b6f2c9ccSmrg 370b6f2c9ccSmrg 371b6f2c9ccSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 372b6f2c9ccSmrg# ---------------------------------------- 373b6f2c9ccSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 374b6f2c9ccSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 375b6f2c9ccSmrg# script with STATUS, using 1 if that was 0. 376b6f2c9ccSmrgas_fn_error () 377b6f2c9ccSmrg{ 378b6f2c9ccSmrg as_status=$1; test $as_status -eq 0 && as_status=1 379b6f2c9ccSmrg if test "$4"; then 380b6f2c9ccSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 381b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 382b6f2c9ccSmrg fi 383b6f2c9ccSmrg $as_echo "$as_me: error: $2" >&2 384b6f2c9ccSmrg as_fn_exit $as_status 385b6f2c9ccSmrg} # as_fn_error 386b6f2c9ccSmrg 387ea6ae205Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 388ea6ae205Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 389ea6ae205Smrg as_expr=expr 390ea6ae205Smrgelse 391ea6ae205Smrg as_expr=false 392ea6ae205Smrgfi 393ea6ae205Smrg 394ea6ae205Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 395ea6ae205Smrg as_basename=basename 396ea6ae205Smrgelse 397ea6ae205Smrg as_basename=false 398ea6ae205Smrgfi 399ea6ae205Smrg 400b6f2c9ccSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 401b6f2c9ccSmrg as_dirname=dirname 402b6f2c9ccSmrgelse 403b6f2c9ccSmrg as_dirname=false 404b6f2c9ccSmrgfi 405ea6ae205Smrg 406ea6ae205Smrgas_me=`$as_basename -- "$0" || 407ea6ae205Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 408ea6ae205Smrg X"$0" : 'X\(//\)$' \| \ 409ea6ae205Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 410e83ac88aSmrg$as_echo X/"$0" | 411ea6ae205Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 412ea6ae205Smrg s//\1/ 413ea6ae205Smrg q 414ea6ae205Smrg } 415ea6ae205Smrg /^X\/\(\/\/\)$/{ 416ea6ae205Smrg s//\1/ 417ea6ae205Smrg q 418ea6ae205Smrg } 419ea6ae205Smrg /^X\/\(\/\).*/{ 420ea6ae205Smrg s//\1/ 421ea6ae205Smrg q 422ea6ae205Smrg } 423ea6ae205Smrg s/.*/./; q'` 424ea6ae205Smrg 425b6f2c9ccSmrg# Avoid depending upon Character Ranges. 426b6f2c9ccSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 427b6f2c9ccSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 428b6f2c9ccSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 429b6f2c9ccSmrgas_cr_digits='0123456789' 430b6f2c9ccSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 431ea6ae205Smrg 432ea6ae205Smrg 433b6f2c9ccSmrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 434b6f2c9ccSmrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 435b6f2c9ccSmrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 436b6f2c9ccSmrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 437b6f2c9ccSmrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 438b6f2c9ccSmrg sed -n ' 439b6f2c9ccSmrg p 440b6f2c9ccSmrg /[$]LINENO/= 441b6f2c9ccSmrg ' <$as_myself | 442b6f2c9ccSmrg sed ' 443b6f2c9ccSmrg s/[$]LINENO.*/&-/ 444b6f2c9ccSmrg t lineno 445b6f2c9ccSmrg b 446b6f2c9ccSmrg :lineno 447b6f2c9ccSmrg N 448b6f2c9ccSmrg :loop 449b6f2c9ccSmrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450b6f2c9ccSmrg t loop 451b6f2c9ccSmrg s/-\n.*// 452b6f2c9ccSmrg ' >$as_me.lineno && 453b6f2c9ccSmrg chmod +x "$as_me.lineno" || 454b6f2c9ccSmrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 455ea6ae205Smrg 456b6f2c9ccSmrg # Don't try to exec as it changes $[0], causing all sort of problems 457b6f2c9ccSmrg # (the dirname of $[0] is not the place where we might find the 458b6f2c9ccSmrg # original and so on. Autoconf is especially sensitive to this). 459b6f2c9ccSmrg . "./$as_me.lineno" 460b6f2c9ccSmrg # Exit status is that of the last command. 461b6f2c9ccSmrg exit 462ea6ae205Smrg} 463ea6ae205Smrg 464b6f2c9ccSmrgECHO_C= ECHO_N= ECHO_T= 465b6f2c9ccSmrgcase `echo -n x` in #((((( 466b6f2c9ccSmrg-n*) 467b6f2c9ccSmrg case `echo 'xy\c'` in 468b6f2c9ccSmrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 469b6f2c9ccSmrg xy) ECHO_C='\c';; 470b6f2c9ccSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 471b6f2c9ccSmrg ECHO_T=' ';; 472b6f2c9ccSmrg esac;; 473b6f2c9ccSmrg*) 474b6f2c9ccSmrg ECHO_N='-n';; 475b6f2c9ccSmrgesac 476ea6ae205Smrg 477b6f2c9ccSmrgrm -f conf$$ conf$$.exe conf$$.file 478b6f2c9ccSmrgif test -d conf$$.dir; then 479b6f2c9ccSmrg rm -f conf$$.dir/conf$$.file 480b6f2c9ccSmrgelse 481b6f2c9ccSmrg rm -f conf$$.dir 482b6f2c9ccSmrg mkdir conf$$.dir 2>/dev/null 483ea6ae205Smrgfi 484b6f2c9ccSmrgif (echo >conf$$.file) 2>/dev/null; then 485b6f2c9ccSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 486b6f2c9ccSmrg as_ln_s='ln -s' 487b6f2c9ccSmrg # ... but there are two gotchas: 488b6f2c9ccSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 489b6f2c9ccSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 490b6f2c9ccSmrg # In both cases, we have to default to `cp -p'. 491b6f2c9ccSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 492b6f2c9ccSmrg as_ln_s='cp -p' 493b6f2c9ccSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 494b6f2c9ccSmrg as_ln_s=ln 495b6f2c9ccSmrg else 496b6f2c9ccSmrg as_ln_s='cp -p' 497b6f2c9ccSmrg fi 498ea6ae205Smrgelse 499b6f2c9ccSmrg as_ln_s='cp -p' 500ea6ae205Smrgfi 501b6f2c9ccSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 502b6f2c9ccSmrgrmdir conf$$.dir 2>/dev/null 503ea6ae205Smrg 504b6f2c9ccSmrgif mkdir -p . 2>/dev/null; then 505b6f2c9ccSmrg as_mkdir_p='mkdir -p "$as_dir"' 506b6f2c9ccSmrgelse 507b6f2c9ccSmrg test -d ./-p && rmdir ./-p 508b6f2c9ccSmrg as_mkdir_p=false 509ea6ae205Smrgfi 510ea6ae205Smrg 511b6f2c9ccSmrgif test -x / >/dev/null 2>&1; then 512b6f2c9ccSmrg as_test_x='test -x' 513ea6ae205Smrgelse 514b6f2c9ccSmrg if ls -dL / >/dev/null 2>&1; then 515b6f2c9ccSmrg as_ls_L_option=L 516b6f2c9ccSmrg else 517b6f2c9ccSmrg as_ls_L_option= 518b6f2c9ccSmrg fi 519b6f2c9ccSmrg as_test_x=' 520b6f2c9ccSmrg eval sh -c '\'' 521b6f2c9ccSmrg if test -d "$1"; then 522b6f2c9ccSmrg test -d "$1/."; 523b6f2c9ccSmrg else 524b6f2c9ccSmrg case $1 in #( 525b6f2c9ccSmrg -*)set "./$1";; 526b6f2c9ccSmrg esac; 527b6f2c9ccSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 528b6f2c9ccSmrg ???[sx]*):;;*)false;;esac;fi 529b6f2c9ccSmrg '\'' sh 530b6f2c9ccSmrg ' 531ea6ae205Smrgfi 532b6f2c9ccSmrgas_executable_p=$as_test_x 533ea6ae205Smrg 534b6f2c9ccSmrg# Sed expression to map a string onto a valid CPP name. 535b6f2c9ccSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 536ea6ae205Smrg 537b6f2c9ccSmrg# Sed expression to map a string onto a valid variable name. 538b6f2c9ccSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 539ea6ae205Smrg 540ea6ae205Smrg 541b6f2c9ccSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null 542b6f2c9ccSmrgexec 6>&1 543ea6ae205Smrg 544ea6ae205Smrg# Name of the host. 545b6f2c9ccSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 546ea6ae205Smrg# so uname gets run too. 547ea6ae205Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 548ea6ae205Smrg 549ea6ae205Smrg# 550ea6ae205Smrg# Initializations. 551ea6ae205Smrg# 552ea6ae205Smrgac_default_prefix=/usr/local 553ea6ae205Smrgac_clean_files= 554ea6ae205Smrgac_config_libobj_dir=. 555ea6ae205SmrgLIBOBJS= 556ea6ae205Smrgcross_compiling=no 557ea6ae205Smrgsubdirs= 558ea6ae205SmrgMFLAGS= 559ea6ae205SmrgMAKEFLAGS= 560ea6ae205Smrg 561ea6ae205Smrg# Identity of this package. 562ea6ae205SmrgPACKAGE_NAME='mkfontscale' 563ea6ae205SmrgPACKAGE_TARNAME='mkfontscale' 564245f6787SmrgPACKAGE_VERSION='1.0.9' 565245f6787SmrgPACKAGE_STRING='mkfontscale 1.0.9' 566ea6ae205SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 567b6f2c9ccSmrgPACKAGE_URL='' 568ea6ae205Smrg 569245f6787Smrgac_unique_file="Makefile.am" 5707978d3cdSmrg# Factoring default headers for most tests. 5717978d3cdSmrgac_includes_default="\ 5727978d3cdSmrg#include <stdio.h> 5737978d3cdSmrg#ifdef HAVE_SYS_TYPES_H 5747978d3cdSmrg# include <sys/types.h> 5757978d3cdSmrg#endif 5767978d3cdSmrg#ifdef HAVE_SYS_STAT_H 5777978d3cdSmrg# include <sys/stat.h> 5787978d3cdSmrg#endif 5797978d3cdSmrg#ifdef STDC_HEADERS 5807978d3cdSmrg# include <stdlib.h> 5817978d3cdSmrg# include <stddef.h> 5827978d3cdSmrg#else 5837978d3cdSmrg# ifdef HAVE_STDLIB_H 5847978d3cdSmrg# include <stdlib.h> 5857978d3cdSmrg# endif 5867978d3cdSmrg#endif 5877978d3cdSmrg#ifdef HAVE_STRING_H 5887978d3cdSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 5897978d3cdSmrg# include <memory.h> 5907978d3cdSmrg# endif 5917978d3cdSmrg# include <string.h> 5927978d3cdSmrg#endif 5937978d3cdSmrg#ifdef HAVE_STRINGS_H 5947978d3cdSmrg# include <strings.h> 5957978d3cdSmrg#endif 5967978d3cdSmrg#ifdef HAVE_INTTYPES_H 5977978d3cdSmrg# include <inttypes.h> 5987978d3cdSmrg#endif 5997978d3cdSmrg#ifdef HAVE_STDINT_H 6007978d3cdSmrg# include <stdint.h> 6017978d3cdSmrg#endif 6027978d3cdSmrg#ifdef HAVE_UNISTD_H 6037978d3cdSmrg# include <unistd.h> 6047978d3cdSmrg#endif" 6057978d3cdSmrg 606e83ac88aSmrgac_subst_vars='am__EXEEXT_FALSE 607e83ac88aSmrgam__EXEEXT_TRUE 608e83ac88aSmrgLTLIBOBJS 609e83ac88aSmrgLIBOBJS 6107978d3cdSmrgLINT_FALSE 611e83ac88aSmrgLINT_TRUE 612e83ac88aSmrgLINT_FLAGS 613e83ac88aSmrgLINT 614e83ac88aSmrgX11_LIBS 615e83ac88aSmrgX11_CFLAGS 616e83ac88aSmrgMKFONTSCALE_LIBS 617e83ac88aSmrgMKFONTSCALE_CFLAGS 618b6f2c9ccSmrgAM_BACKSLASH 619b6f2c9ccSmrgAM_DEFAULT_VERBOSITY 620b6f2c9ccSmrgMAN_SUBSTS 621b6f2c9ccSmrgXORG_MAN_PAGE 622ea6ae205SmrgADMIN_MAN_DIR 623e83ac88aSmrgDRIVER_MAN_DIR 624e83ac88aSmrgMISC_MAN_DIR 625e83ac88aSmrgFILE_MAN_DIR 626e83ac88aSmrgLIB_MAN_DIR 627e83ac88aSmrgAPP_MAN_DIR 628e83ac88aSmrgADMIN_MAN_SUFFIX 629e83ac88aSmrgDRIVER_MAN_SUFFIX 630e83ac88aSmrgMISC_MAN_SUFFIX 631e83ac88aSmrgFILE_MAN_SUFFIX 632e83ac88aSmrgLIB_MAN_SUFFIX 633e83ac88aSmrgAPP_MAN_SUFFIX 634b6f2c9ccSmrgSED 635e83ac88aSmrghost_os 636e83ac88aSmrghost_vendor 637e83ac88aSmrghost_cpu 638e83ac88aSmrghost 639e83ac88aSmrgbuild_os 640e83ac88aSmrgbuild_vendor 641e83ac88aSmrgbuild_cpu 642e83ac88aSmrgbuild 643b6f2c9ccSmrgINSTALL_CMD 644b6f2c9ccSmrgPKG_CONFIG 645e83ac88aSmrgCHANGELOG_CMD 646245f6787SmrgSTRICT_CFLAGS 647e83ac88aSmrgCWARNFLAGS 648e83ac88aSmrgEGREP 649e83ac88aSmrgGREP 650e83ac88aSmrgCPP 651e83ac88aSmrgam__fastdepCC_FALSE 652e83ac88aSmrgam__fastdepCC_TRUE 653e83ac88aSmrgCCDEPMODE 654e83ac88aSmrgAMDEPBACKSLASH 655e83ac88aSmrgAMDEP_FALSE 656e83ac88aSmrgAMDEP_TRUE 657e83ac88aSmrgam__quote 658e83ac88aSmrgam__include 659e83ac88aSmrgDEPDIR 660e83ac88aSmrgOBJEXT 661e83ac88aSmrgEXEEXT 662e83ac88aSmrgac_ct_CC 663e83ac88aSmrgCPPFLAGS 664e83ac88aSmrgLDFLAGS 665e83ac88aSmrgCFLAGS 666e83ac88aSmrgCC 667e83ac88aSmrgMAINT 668e83ac88aSmrgMAINTAINER_MODE_FALSE 669e83ac88aSmrgMAINTAINER_MODE_TRUE 670e83ac88aSmrgam__untar 671e83ac88aSmrgam__tar 672e83ac88aSmrgAMTAR 673e83ac88aSmrgam__leading_dot 674e83ac88aSmrgSET_MAKE 675e83ac88aSmrgAWK 676e83ac88aSmrgmkdir_p 677e83ac88aSmrgMKDIR_P 678e83ac88aSmrgINSTALL_STRIP_PROGRAM 679e83ac88aSmrgSTRIP 680e83ac88aSmrginstall_sh 681e83ac88aSmrgMAKEINFO 682e83ac88aSmrgAUTOHEADER 683e83ac88aSmrgAUTOMAKE 684e83ac88aSmrgAUTOCONF 685e83ac88aSmrgACLOCAL 686e83ac88aSmrgVERSION 687e83ac88aSmrgPACKAGE 688e83ac88aSmrgCYGPATH_W 689e83ac88aSmrgam__isrc 690e83ac88aSmrgINSTALL_DATA 691e83ac88aSmrgINSTALL_SCRIPT 692e83ac88aSmrgINSTALL_PROGRAM 693e83ac88aSmrgtarget_alias 694e83ac88aSmrghost_alias 695e83ac88aSmrgbuild_alias 696e83ac88aSmrgLIBS 697e83ac88aSmrgECHO_T 698e83ac88aSmrgECHO_N 699e83ac88aSmrgECHO_C 700e83ac88aSmrgDEFS 701e83ac88aSmrgmandir 702e83ac88aSmrglocaledir 703e83ac88aSmrglibdir 704e83ac88aSmrgpsdir 705e83ac88aSmrgpdfdir 706e83ac88aSmrgdvidir 707e83ac88aSmrghtmldir 708e83ac88aSmrginfodir 709e83ac88aSmrgdocdir 710e83ac88aSmrgoldincludedir 711e83ac88aSmrgincludedir 712e83ac88aSmrglocalstatedir 713e83ac88aSmrgsharedstatedir 714e83ac88aSmrgsysconfdir 715e83ac88aSmrgdatadir 716e83ac88aSmrgdatarootdir 717e83ac88aSmrglibexecdir 718e83ac88aSmrgsbindir 719e83ac88aSmrgbindir 720e83ac88aSmrgprogram_transform_name 721e83ac88aSmrgprefix 722e83ac88aSmrgexec_prefix 723b6f2c9ccSmrgPACKAGE_URL 724e83ac88aSmrgPACKAGE_BUGREPORT 725e83ac88aSmrgPACKAGE_STRING 726e83ac88aSmrgPACKAGE_VERSION 727e83ac88aSmrgPACKAGE_TARNAME 728e83ac88aSmrgPACKAGE_NAME 729e83ac88aSmrgPATH_SEPARATOR 730e83ac88aSmrgSHELL' 731ea6ae205Smrgac_subst_files='' 732e83ac88aSmrgac_user_opts=' 733e83ac88aSmrgenable_option_checking 734e83ac88aSmrgenable_maintainer_mode 735e83ac88aSmrgenable_dependency_tracking 736e83ac88aSmrgenable_strict_compilation 737b6f2c9ccSmrgenable_silent_rules 738e83ac88aSmrgwith_bzip2 739e83ac88aSmrgwith_lint 740e83ac88aSmrg' 741ea6ae205Smrg ac_precious_vars='build_alias 742ea6ae205Smrghost_alias 743ea6ae205Smrgtarget_alias 744ea6ae205SmrgCC 745ea6ae205SmrgCFLAGS 746ea6ae205SmrgLDFLAGS 747ea6ae205SmrgLIBS 748ea6ae205SmrgCPPFLAGS 7497978d3cdSmrgCPP 750ea6ae205SmrgPKG_CONFIG 751ea6ae205SmrgMKFONTSCALE_CFLAGS 752ea6ae205SmrgMKFONTSCALE_LIBS 753ea6ae205SmrgX11_CFLAGS 754b6f2c9ccSmrgX11_LIBS 755b6f2c9ccSmrgLINT 756b6f2c9ccSmrgLINT_FLAGS' 757ea6ae205Smrg 758ea6ae205Smrg 759ea6ae205Smrg# Initialize some variables set by options. 760ea6ae205Smrgac_init_help= 761ea6ae205Smrgac_init_version=false 762e83ac88aSmrgac_unrecognized_opts= 763e83ac88aSmrgac_unrecognized_sep= 764ea6ae205Smrg# The variables have the same names as the options, with 765ea6ae205Smrg# dashes changed to underlines. 766ea6ae205Smrgcache_file=/dev/null 767ea6ae205Smrgexec_prefix=NONE 768ea6ae205Smrgno_create= 769ea6ae205Smrgno_recursion= 770ea6ae205Smrgprefix=NONE 771ea6ae205Smrgprogram_prefix=NONE 772ea6ae205Smrgprogram_suffix=NONE 773ea6ae205Smrgprogram_transform_name=s,x,x, 774ea6ae205Smrgsilent= 775ea6ae205Smrgsite= 776ea6ae205Smrgsrcdir= 777ea6ae205Smrgverbose= 778ea6ae205Smrgx_includes=NONE 779ea6ae205Smrgx_libraries=NONE 780ea6ae205Smrg 781ea6ae205Smrg# Installation directory options. 782ea6ae205Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 783ea6ae205Smrg# and all the variables that are supposed to be based on exec_prefix 784ea6ae205Smrg# by default will actually change. 785ea6ae205Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 786ea6ae205Smrg# (The list follows the same order as the GNU Coding Standards.) 787ea6ae205Smrgbindir='${exec_prefix}/bin' 788ea6ae205Smrgsbindir='${exec_prefix}/sbin' 789ea6ae205Smrglibexecdir='${exec_prefix}/libexec' 790ea6ae205Smrgdatarootdir='${prefix}/share' 791ea6ae205Smrgdatadir='${datarootdir}' 792ea6ae205Smrgsysconfdir='${prefix}/etc' 793ea6ae205Smrgsharedstatedir='${prefix}/com' 794ea6ae205Smrglocalstatedir='${prefix}/var' 795ea6ae205Smrgincludedir='${prefix}/include' 796ea6ae205Smrgoldincludedir='/usr/include' 797ea6ae205Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798ea6ae205Smrginfodir='${datarootdir}/info' 799ea6ae205Smrghtmldir='${docdir}' 800ea6ae205Smrgdvidir='${docdir}' 801ea6ae205Smrgpdfdir='${docdir}' 802ea6ae205Smrgpsdir='${docdir}' 803ea6ae205Smrglibdir='${exec_prefix}/lib' 804ea6ae205Smrglocaledir='${datarootdir}/locale' 805ea6ae205Smrgmandir='${datarootdir}/man' 806ea6ae205Smrg 807ea6ae205Smrgac_prev= 808ea6ae205Smrgac_dashdash= 809ea6ae205Smrgfor ac_option 810ea6ae205Smrgdo 811ea6ae205Smrg # If the previous option needs an argument, assign it. 812ea6ae205Smrg if test -n "$ac_prev"; then 813ea6ae205Smrg eval $ac_prev=\$ac_option 814ea6ae205Smrg ac_prev= 815ea6ae205Smrg continue 816ea6ae205Smrg fi 817ea6ae205Smrg 818ea6ae205Smrg case $ac_option in 819b6f2c9ccSmrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820b6f2c9ccSmrg *=) ac_optarg= ;; 821b6f2c9ccSmrg *) ac_optarg=yes ;; 822ea6ae205Smrg esac 823ea6ae205Smrg 824ea6ae205Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 825ea6ae205Smrg 826ea6ae205Smrg case $ac_dashdash$ac_option in 827ea6ae205Smrg --) 828ea6ae205Smrg ac_dashdash=yes ;; 829ea6ae205Smrg 830ea6ae205Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 831ea6ae205Smrg ac_prev=bindir ;; 832ea6ae205Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 833ea6ae205Smrg bindir=$ac_optarg ;; 834ea6ae205Smrg 835ea6ae205Smrg -build | --build | --buil | --bui | --bu) 836ea6ae205Smrg ac_prev=build_alias ;; 837ea6ae205Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 838ea6ae205Smrg build_alias=$ac_optarg ;; 839ea6ae205Smrg 840ea6ae205Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 841ea6ae205Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 842ea6ae205Smrg ac_prev=cache_file ;; 843ea6ae205Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 844ea6ae205Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 845ea6ae205Smrg cache_file=$ac_optarg ;; 846ea6ae205Smrg 847ea6ae205Smrg --config-cache | -C) 848ea6ae205Smrg cache_file=config.cache ;; 849ea6ae205Smrg 850ea6ae205Smrg -datadir | --datadir | --datadi | --datad) 851ea6ae205Smrg ac_prev=datadir ;; 852ea6ae205Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 853ea6ae205Smrg datadir=$ac_optarg ;; 854ea6ae205Smrg 855ea6ae205Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 856ea6ae205Smrg | --dataroo | --dataro | --datar) 857ea6ae205Smrg ac_prev=datarootdir ;; 858ea6ae205Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 859ea6ae205Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 860ea6ae205Smrg datarootdir=$ac_optarg ;; 861ea6ae205Smrg 862ea6ae205Smrg -disable-* | --disable-*) 863e83ac88aSmrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 864ea6ae205Smrg # Reject names that are not valid shell variable names. 865e83ac88aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 866b6f2c9ccSmrg as_fn_error $? "invalid feature name: $ac_useropt" 867e83ac88aSmrg ac_useropt_orig=$ac_useropt 868e83ac88aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 869e83ac88aSmrg case $ac_user_opts in 870e83ac88aSmrg *" 871e83ac88aSmrg"enable_$ac_useropt" 872e83ac88aSmrg"*) ;; 873e83ac88aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 874e83ac88aSmrg ac_unrecognized_sep=', ';; 875e83ac88aSmrg esac 876e83ac88aSmrg eval enable_$ac_useropt=no ;; 877ea6ae205Smrg 878ea6ae205Smrg -docdir | --docdir | --docdi | --doc | --do) 879ea6ae205Smrg ac_prev=docdir ;; 880ea6ae205Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 881ea6ae205Smrg docdir=$ac_optarg ;; 882ea6ae205Smrg 883ea6ae205Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 884ea6ae205Smrg ac_prev=dvidir ;; 885ea6ae205Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 886ea6ae205Smrg dvidir=$ac_optarg ;; 887ea6ae205Smrg 888ea6ae205Smrg -enable-* | --enable-*) 889e83ac88aSmrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 890ea6ae205Smrg # Reject names that are not valid shell variable names. 891e83ac88aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892b6f2c9ccSmrg as_fn_error $? "invalid feature name: $ac_useropt" 893e83ac88aSmrg ac_useropt_orig=$ac_useropt 894e83ac88aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895e83ac88aSmrg case $ac_user_opts in 896e83ac88aSmrg *" 897e83ac88aSmrg"enable_$ac_useropt" 898e83ac88aSmrg"*) ;; 899e83ac88aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 900e83ac88aSmrg ac_unrecognized_sep=', ';; 901e83ac88aSmrg esac 902e83ac88aSmrg eval enable_$ac_useropt=\$ac_optarg ;; 903ea6ae205Smrg 904ea6ae205Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 905ea6ae205Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 906ea6ae205Smrg | --exec | --exe | --ex) 907ea6ae205Smrg ac_prev=exec_prefix ;; 908ea6ae205Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 909ea6ae205Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 910ea6ae205Smrg | --exec=* | --exe=* | --ex=*) 911ea6ae205Smrg exec_prefix=$ac_optarg ;; 912ea6ae205Smrg 913ea6ae205Smrg -gas | --gas | --ga | --g) 914ea6ae205Smrg # Obsolete; use --with-gas. 915ea6ae205Smrg with_gas=yes ;; 916ea6ae205Smrg 917ea6ae205Smrg -help | --help | --hel | --he | -h) 918ea6ae205Smrg ac_init_help=long ;; 919ea6ae205Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 920ea6ae205Smrg ac_init_help=recursive ;; 921ea6ae205Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 922ea6ae205Smrg ac_init_help=short ;; 923ea6ae205Smrg 924ea6ae205Smrg -host | --host | --hos | --ho) 925ea6ae205Smrg ac_prev=host_alias ;; 926ea6ae205Smrg -host=* | --host=* | --hos=* | --ho=*) 927ea6ae205Smrg host_alias=$ac_optarg ;; 928ea6ae205Smrg 929ea6ae205Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 930ea6ae205Smrg ac_prev=htmldir ;; 931ea6ae205Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 932ea6ae205Smrg | --ht=*) 933ea6ae205Smrg htmldir=$ac_optarg ;; 934ea6ae205Smrg 935ea6ae205Smrg -includedir | --includedir | --includedi | --included | --include \ 936ea6ae205Smrg | --includ | --inclu | --incl | --inc) 937ea6ae205Smrg ac_prev=includedir ;; 938ea6ae205Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 939ea6ae205Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 940ea6ae205Smrg includedir=$ac_optarg ;; 941ea6ae205Smrg 942ea6ae205Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 943ea6ae205Smrg ac_prev=infodir ;; 944ea6ae205Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 945ea6ae205Smrg infodir=$ac_optarg ;; 946ea6ae205Smrg 947ea6ae205Smrg -libdir | --libdir | --libdi | --libd) 948ea6ae205Smrg ac_prev=libdir ;; 949ea6ae205Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 950ea6ae205Smrg libdir=$ac_optarg ;; 951ea6ae205Smrg 952ea6ae205Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 953ea6ae205Smrg | --libexe | --libex | --libe) 954ea6ae205Smrg ac_prev=libexecdir ;; 955ea6ae205Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 956ea6ae205Smrg | --libexe=* | --libex=* | --libe=*) 957ea6ae205Smrg libexecdir=$ac_optarg ;; 958ea6ae205Smrg 959ea6ae205Smrg -localedir | --localedir | --localedi | --localed | --locale) 960ea6ae205Smrg ac_prev=localedir ;; 961ea6ae205Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 962ea6ae205Smrg localedir=$ac_optarg ;; 963ea6ae205Smrg 964ea6ae205Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 965ea6ae205Smrg | --localstate | --localstat | --localsta | --localst | --locals) 966ea6ae205Smrg ac_prev=localstatedir ;; 967ea6ae205Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 968ea6ae205Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 969ea6ae205Smrg localstatedir=$ac_optarg ;; 970ea6ae205Smrg 971ea6ae205Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 972ea6ae205Smrg ac_prev=mandir ;; 973ea6ae205Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 974ea6ae205Smrg mandir=$ac_optarg ;; 975ea6ae205Smrg 976ea6ae205Smrg -nfp | --nfp | --nf) 977ea6ae205Smrg # Obsolete; use --without-fp. 978ea6ae205Smrg with_fp=no ;; 979ea6ae205Smrg 980ea6ae205Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 981ea6ae205Smrg | --no-cr | --no-c | -n) 982ea6ae205Smrg no_create=yes ;; 983ea6ae205Smrg 984ea6ae205Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 985ea6ae205Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 986ea6ae205Smrg no_recursion=yes ;; 987ea6ae205Smrg 988ea6ae205Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 989ea6ae205Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 990ea6ae205Smrg | --oldin | --oldi | --old | --ol | --o) 991ea6ae205Smrg ac_prev=oldincludedir ;; 992ea6ae205Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 993ea6ae205Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 994ea6ae205Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 995ea6ae205Smrg oldincludedir=$ac_optarg ;; 996ea6ae205Smrg 997ea6ae205Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 998ea6ae205Smrg ac_prev=prefix ;; 999ea6ae205Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1000ea6ae205Smrg prefix=$ac_optarg ;; 1001ea6ae205Smrg 1002ea6ae205Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1003ea6ae205Smrg | --program-pre | --program-pr | --program-p) 1004ea6ae205Smrg ac_prev=program_prefix ;; 1005ea6ae205Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1006ea6ae205Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1007ea6ae205Smrg program_prefix=$ac_optarg ;; 1008ea6ae205Smrg 1009ea6ae205Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1010ea6ae205Smrg | --program-suf | --program-su | --program-s) 1011ea6ae205Smrg ac_prev=program_suffix ;; 1012ea6ae205Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1013ea6ae205Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1014ea6ae205Smrg program_suffix=$ac_optarg ;; 1015ea6ae205Smrg 1016ea6ae205Smrg -program-transform-name | --program-transform-name \ 1017ea6ae205Smrg | --program-transform-nam | --program-transform-na \ 1018ea6ae205Smrg | --program-transform-n | --program-transform- \ 1019ea6ae205Smrg | --program-transform | --program-transfor \ 1020ea6ae205Smrg | --program-transfo | --program-transf \ 1021ea6ae205Smrg | --program-trans | --program-tran \ 1022ea6ae205Smrg | --progr-tra | --program-tr | --program-t) 1023ea6ae205Smrg ac_prev=program_transform_name ;; 1024ea6ae205Smrg -program-transform-name=* | --program-transform-name=* \ 1025ea6ae205Smrg | --program-transform-nam=* | --program-transform-na=* \ 1026ea6ae205Smrg | --program-transform-n=* | --program-transform-=* \ 1027ea6ae205Smrg | --program-transform=* | --program-transfor=* \ 1028ea6ae205Smrg | --program-transfo=* | --program-transf=* \ 1029ea6ae205Smrg | --program-trans=* | --program-tran=* \ 1030ea6ae205Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 1031ea6ae205Smrg program_transform_name=$ac_optarg ;; 1032ea6ae205Smrg 1033ea6ae205Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1034ea6ae205Smrg ac_prev=pdfdir ;; 1035ea6ae205Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1036ea6ae205Smrg pdfdir=$ac_optarg ;; 1037ea6ae205Smrg 1038ea6ae205Smrg -psdir | --psdir | --psdi | --psd | --ps) 1039ea6ae205Smrg ac_prev=psdir ;; 1040ea6ae205Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1041ea6ae205Smrg psdir=$ac_optarg ;; 1042ea6ae205Smrg 1043ea6ae205Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044ea6ae205Smrg | -silent | --silent | --silen | --sile | --sil) 1045ea6ae205Smrg silent=yes ;; 1046ea6ae205Smrg 1047ea6ae205Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1048ea6ae205Smrg ac_prev=sbindir ;; 1049ea6ae205Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1050ea6ae205Smrg | --sbi=* | --sb=*) 1051ea6ae205Smrg sbindir=$ac_optarg ;; 1052ea6ae205Smrg 1053ea6ae205Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1054ea6ae205Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1055ea6ae205Smrg | --sharedst | --shareds | --shared | --share | --shar \ 1056ea6ae205Smrg | --sha | --sh) 1057ea6ae205Smrg ac_prev=sharedstatedir ;; 1058ea6ae205Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1059ea6ae205Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1060ea6ae205Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1061ea6ae205Smrg | --sha=* | --sh=*) 1062ea6ae205Smrg sharedstatedir=$ac_optarg ;; 1063ea6ae205Smrg 1064ea6ae205Smrg -site | --site | --sit) 1065ea6ae205Smrg ac_prev=site ;; 1066ea6ae205Smrg -site=* | --site=* | --sit=*) 1067ea6ae205Smrg site=$ac_optarg ;; 1068ea6ae205Smrg 1069ea6ae205Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1070ea6ae205Smrg ac_prev=srcdir ;; 1071ea6ae205Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1072ea6ae205Smrg srcdir=$ac_optarg ;; 1073ea6ae205Smrg 1074ea6ae205Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1075ea6ae205Smrg | --syscon | --sysco | --sysc | --sys | --sy) 1076ea6ae205Smrg ac_prev=sysconfdir ;; 1077ea6ae205Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1078ea6ae205Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1079ea6ae205Smrg sysconfdir=$ac_optarg ;; 1080ea6ae205Smrg 1081ea6ae205Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 1082ea6ae205Smrg ac_prev=target_alias ;; 1083ea6ae205Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1084ea6ae205Smrg target_alias=$ac_optarg ;; 1085ea6ae205Smrg 1086ea6ae205Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 1087ea6ae205Smrg verbose=yes ;; 1088ea6ae205Smrg 1089ea6ae205Smrg -version | --version | --versio | --versi | --vers | -V) 1090ea6ae205Smrg ac_init_version=: ;; 1091ea6ae205Smrg 1092ea6ae205Smrg -with-* | --with-*) 1093e83ac88aSmrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1094ea6ae205Smrg # Reject names that are not valid shell variable names. 1095e83ac88aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1096b6f2c9ccSmrg as_fn_error $? "invalid package name: $ac_useropt" 1097e83ac88aSmrg ac_useropt_orig=$ac_useropt 1098e83ac88aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099e83ac88aSmrg case $ac_user_opts in 1100e83ac88aSmrg *" 1101e83ac88aSmrg"with_$ac_useropt" 1102e83ac88aSmrg"*) ;; 1103e83ac88aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1104e83ac88aSmrg ac_unrecognized_sep=', ';; 1105e83ac88aSmrg esac 1106e83ac88aSmrg eval with_$ac_useropt=\$ac_optarg ;; 1107ea6ae205Smrg 1108ea6ae205Smrg -without-* | --without-*) 1109e83ac88aSmrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1110ea6ae205Smrg # Reject names that are not valid shell variable names. 1111e83ac88aSmrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112b6f2c9ccSmrg as_fn_error $? "invalid package name: $ac_useropt" 1113e83ac88aSmrg ac_useropt_orig=$ac_useropt 1114e83ac88aSmrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115e83ac88aSmrg case $ac_user_opts in 1116e83ac88aSmrg *" 1117e83ac88aSmrg"with_$ac_useropt" 1118e83ac88aSmrg"*) ;; 1119e83ac88aSmrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1120e83ac88aSmrg ac_unrecognized_sep=', ';; 1121e83ac88aSmrg esac 1122e83ac88aSmrg eval with_$ac_useropt=no ;; 1123ea6ae205Smrg 1124ea6ae205Smrg --x) 1125ea6ae205Smrg # Obsolete; use --with-x. 1126ea6ae205Smrg with_x=yes ;; 1127ea6ae205Smrg 1128ea6ae205Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1129ea6ae205Smrg | --x-incl | --x-inc | --x-in | --x-i) 1130ea6ae205Smrg ac_prev=x_includes ;; 1131ea6ae205Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1132ea6ae205Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1133ea6ae205Smrg x_includes=$ac_optarg ;; 1134ea6ae205Smrg 1135ea6ae205Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1136ea6ae205Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1137ea6ae205Smrg ac_prev=x_libraries ;; 1138ea6ae205Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1139ea6ae205Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1140ea6ae205Smrg x_libraries=$ac_optarg ;; 1141ea6ae205Smrg 1142b6f2c9ccSmrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1143b6f2c9ccSmrgTry \`$0 --help' for more information" 1144ea6ae205Smrg ;; 1145ea6ae205Smrg 1146ea6ae205Smrg *=*) 1147ea6ae205Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1148ea6ae205Smrg # Reject names that are not valid shell variable names. 1149b6f2c9ccSmrg case $ac_envvar in #( 1150b6f2c9ccSmrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1151b6f2c9ccSmrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1152b6f2c9ccSmrg esac 1153ea6ae205Smrg eval $ac_envvar=\$ac_optarg 1154ea6ae205Smrg export $ac_envvar ;; 1155ea6ae205Smrg 1156ea6ae205Smrg *) 1157ea6ae205Smrg # FIXME: should be removed in autoconf 3.0. 1158e83ac88aSmrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1159ea6ae205Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1160e83ac88aSmrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1161b6f2c9ccSmrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1162ea6ae205Smrg ;; 1163ea6ae205Smrg 1164ea6ae205Smrg esac 1165ea6ae205Smrgdone 1166ea6ae205Smrg 1167ea6ae205Smrgif test -n "$ac_prev"; then 1168ea6ae205Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1169b6f2c9ccSmrg as_fn_error $? "missing argument to $ac_option" 1170ea6ae205Smrgfi 1171ea6ae205Smrg 1172e83ac88aSmrgif test -n "$ac_unrecognized_opts"; then 1173e83ac88aSmrg case $enable_option_checking in 1174e83ac88aSmrg no) ;; 1175b6f2c9ccSmrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1176e83ac88aSmrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1177e83ac88aSmrg esac 1178e83ac88aSmrgfi 1179e83ac88aSmrg 1180e83ac88aSmrg# Check all directory arguments for consistency. 1181ea6ae205Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1182ea6ae205Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1183ea6ae205Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1184ea6ae205Smrg libdir localedir mandir 1185ea6ae205Smrgdo 1186ea6ae205Smrg eval ac_val=\$$ac_var 1187e83ac88aSmrg # Remove trailing slashes. 1188e83ac88aSmrg case $ac_val in 1189e83ac88aSmrg */ ) 1190e83ac88aSmrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1191e83ac88aSmrg eval $ac_var=\$ac_val;; 1192e83ac88aSmrg esac 1193e83ac88aSmrg # Be sure to have absolute directory names. 1194ea6ae205Smrg case $ac_val in 1195ea6ae205Smrg [\\/$]* | ?:[\\/]* ) continue;; 1196ea6ae205Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1197ea6ae205Smrg esac 1198b6f2c9ccSmrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1199ea6ae205Smrgdone 1200ea6ae205Smrg 1201ea6ae205Smrg# There might be people who depend on the old broken behavior: `$host' 1202ea6ae205Smrg# used to hold the argument of --host etc. 1203ea6ae205Smrg# FIXME: To remove some day. 1204ea6ae205Smrgbuild=$build_alias 1205ea6ae205Smrghost=$host_alias 1206ea6ae205Smrgtarget=$target_alias 1207ea6ae205Smrg 1208ea6ae205Smrg# FIXME: To remove some day. 1209ea6ae205Smrgif test "x$host_alias" != x; then 1210ea6ae205Smrg if test "x$build_alias" = x; then 1211ea6ae205Smrg cross_compiling=maybe 1212b6f2c9ccSmrg $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1213b6f2c9ccSmrg If a cross compiler is detected then cross compile mode will be used" >&2 1214ea6ae205Smrg elif test "x$build_alias" != "x$host_alias"; then 1215ea6ae205Smrg cross_compiling=yes 1216ea6ae205Smrg fi 1217ea6ae205Smrgfi 1218ea6ae205Smrg 1219ea6ae205Smrgac_tool_prefix= 1220ea6ae205Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1221ea6ae205Smrg 1222ea6ae205Smrgtest "$silent" = yes && exec 6>/dev/null 1223ea6ae205Smrg 1224ea6ae205Smrg 1225ea6ae205Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1226ea6ae205Smrgac_ls_di=`ls -di .` && 1227ea6ae205Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1228b6f2c9ccSmrg as_fn_error $? "working directory cannot be determined" 1229ea6ae205Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1230b6f2c9ccSmrg as_fn_error $? "pwd does not report name of working directory" 1231ea6ae205Smrg 1232ea6ae205Smrg 1233ea6ae205Smrg# Find the source files, if location was not specified. 1234ea6ae205Smrgif test -z "$srcdir"; then 1235ea6ae205Smrg ac_srcdir_defaulted=yes 1236ea6ae205Smrg # Try the directory containing this script, then the parent directory. 1237e83ac88aSmrg ac_confdir=`$as_dirname -- "$as_myself" || 1238e83ac88aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1239e83ac88aSmrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1240e83ac88aSmrg X"$as_myself" : 'X\(//\)$' \| \ 1241e83ac88aSmrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1242e83ac88aSmrg$as_echo X"$as_myself" | 1243ea6ae205Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1244ea6ae205Smrg s//\1/ 1245ea6ae205Smrg q 1246ea6ae205Smrg } 1247ea6ae205Smrg /^X\(\/\/\)[^/].*/{ 1248ea6ae205Smrg s//\1/ 1249ea6ae205Smrg q 1250ea6ae205Smrg } 1251ea6ae205Smrg /^X\(\/\/\)$/{ 1252ea6ae205Smrg s//\1/ 1253ea6ae205Smrg q 1254ea6ae205Smrg } 1255ea6ae205Smrg /^X\(\/\).*/{ 1256ea6ae205Smrg s//\1/ 1257ea6ae205Smrg q 1258ea6ae205Smrg } 1259ea6ae205Smrg s/.*/./; q'` 1260ea6ae205Smrg srcdir=$ac_confdir 1261ea6ae205Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1262ea6ae205Smrg srcdir=.. 1263ea6ae205Smrg fi 1264ea6ae205Smrgelse 1265ea6ae205Smrg ac_srcdir_defaulted=no 1266ea6ae205Smrgfi 1267ea6ae205Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1268ea6ae205Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1269b6f2c9ccSmrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1270ea6ae205Smrgfi 1271ea6ae205Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1272ea6ae205Smrgac_abs_confdir=`( 1273b6f2c9ccSmrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1274ea6ae205Smrg pwd)` 1275ea6ae205Smrg# When building in place, set srcdir=. 1276ea6ae205Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1277ea6ae205Smrg srcdir=. 1278ea6ae205Smrgfi 1279ea6ae205Smrg# Remove unnecessary trailing slashes from srcdir. 1280ea6ae205Smrg# Double slashes in file names in object file debugging info 1281ea6ae205Smrg# mess up M-x gdb in Emacs. 1282ea6ae205Smrgcase $srcdir in 1283ea6ae205Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1284ea6ae205Smrgesac 1285ea6ae205Smrgfor ac_var in $ac_precious_vars; do 1286ea6ae205Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1287ea6ae205Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1288ea6ae205Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1289ea6ae205Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1290ea6ae205Smrgdone 1291ea6ae205Smrg 1292ea6ae205Smrg# 1293ea6ae205Smrg# Report the --help message. 1294ea6ae205Smrg# 1295ea6ae205Smrgif test "$ac_init_help" = "long"; then 1296ea6ae205Smrg # Omit some internal or obsolete options to make the list less imposing. 1297ea6ae205Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1298ea6ae205Smrg cat <<_ACEOF 1299245f6787Smrg\`configure' configures mkfontscale 1.0.9 to adapt to many kinds of systems. 1300ea6ae205Smrg 1301ea6ae205SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1302ea6ae205Smrg 1303ea6ae205SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1304ea6ae205SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1305ea6ae205Smrg 1306ea6ae205SmrgDefaults for the options are specified in brackets. 1307ea6ae205Smrg 1308ea6ae205SmrgConfiguration: 1309ea6ae205Smrg -h, --help display this help and exit 1310ea6ae205Smrg --help=short display options specific to this package 1311ea6ae205Smrg --help=recursive display the short help of all the included packages 1312ea6ae205Smrg -V, --version display version information and exit 1313b6f2c9ccSmrg -q, --quiet, --silent do not print \`checking ...' messages 1314ea6ae205Smrg --cache-file=FILE cache test results in FILE [disabled] 1315ea6ae205Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1316ea6ae205Smrg -n, --no-create do not create output files 1317ea6ae205Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1318ea6ae205Smrg 1319ea6ae205SmrgInstallation directories: 1320ea6ae205Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1321e83ac88aSmrg [$ac_default_prefix] 1322ea6ae205Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1323e83ac88aSmrg [PREFIX] 1324ea6ae205Smrg 1325ea6ae205SmrgBy default, \`make install' will install all the files in 1326ea6ae205Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1327ea6ae205Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1328ea6ae205Smrgfor instance \`--prefix=\$HOME'. 1329ea6ae205Smrg 1330ea6ae205SmrgFor better control, use the options below. 1331ea6ae205Smrg 1332ea6ae205SmrgFine tuning of the installation directories: 1333e83ac88aSmrg --bindir=DIR user executables [EPREFIX/bin] 1334e83ac88aSmrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1335e83ac88aSmrg --libexecdir=DIR program executables [EPREFIX/libexec] 1336e83ac88aSmrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1337e83ac88aSmrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1338e83ac88aSmrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1339e83ac88aSmrg --libdir=DIR object code libraries [EPREFIX/lib] 1340e83ac88aSmrg --includedir=DIR C header files [PREFIX/include] 1341e83ac88aSmrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1342e83ac88aSmrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1343e83ac88aSmrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1344e83ac88aSmrg --infodir=DIR info documentation [DATAROOTDIR/info] 1345e83ac88aSmrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1346e83ac88aSmrg --mandir=DIR man documentation [DATAROOTDIR/man] 1347e83ac88aSmrg --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontscale] 1348e83ac88aSmrg --htmldir=DIR html documentation [DOCDIR] 1349e83ac88aSmrg --dvidir=DIR dvi documentation [DOCDIR] 1350e83ac88aSmrg --pdfdir=DIR pdf documentation [DOCDIR] 1351e83ac88aSmrg --psdir=DIR ps documentation [DOCDIR] 1352ea6ae205Smrg_ACEOF 1353ea6ae205Smrg 1354ea6ae205Smrg cat <<\_ACEOF 1355ea6ae205Smrg 1356ea6ae205SmrgProgram names: 1357ea6ae205Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1358ea6ae205Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1359ea6ae205Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1360ea6ae205Smrg 1361ea6ae205SmrgSystem types: 1362ea6ae205Smrg --build=BUILD configure for building on BUILD [guessed] 1363ea6ae205Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 1364ea6ae205Smrg_ACEOF 1365ea6ae205Smrgfi 1366ea6ae205Smrg 1367ea6ae205Smrgif test -n "$ac_init_help"; then 1368ea6ae205Smrg case $ac_init_help in 1369245f6787Smrg short | recursive ) echo "Configuration of mkfontscale 1.0.9:";; 1370ea6ae205Smrg esac 1371ea6ae205Smrg cat <<\_ACEOF 1372ea6ae205Smrg 1373ea6ae205SmrgOptional Features: 1374e83ac88aSmrg --disable-option-checking ignore unrecognized --enable/--with options 1375ea6ae205Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1376ea6ae205Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1377ea6ae205Smrg --enable-maintainer-mode enable make rules and dependencies not useful 1378ea6ae205Smrg (and sometimes confusing) to the casual installer 1379ea6ae205Smrg --disable-dependency-tracking speeds up one-time build 1380ea6ae205Smrg --enable-dependency-tracking do not reject slow dependency extractors 1381e83ac88aSmrg --enable-strict-compilation 1382e83ac88aSmrg Enable all warnings from compiler and make them 1383e83ac88aSmrg errors (default: disabled) 1384b6f2c9ccSmrg --enable-silent-rules less verbose build output (undo: `make V=1') 1385b6f2c9ccSmrg --disable-silent-rules verbose build output (undo: `make V=0') 1386ea6ae205Smrg 1387ea6ae205SmrgOptional Packages: 1388ea6ae205Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1389ea6ae205Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 13907978d3cdSmrg --with-bzip2 Support bzip2 compressed bitmap fonts 13917978d3cdSmrg --with-lint Use a lint-style source code checker (default: 13927978d3cdSmrg disabled) 1393ea6ae205Smrg 1394ea6ae205SmrgSome influential environment variables: 1395ea6ae205Smrg CC C compiler command 1396ea6ae205Smrg CFLAGS C compiler flags 1397ea6ae205Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1398ea6ae205Smrg nonstandard directory <lib dir> 1399ea6ae205Smrg LIBS libraries to pass to the linker, e.g. -l<library> 1400b6f2c9ccSmrg CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1401ea6ae205Smrg you have headers in a nonstandard directory <include dir> 14027978d3cdSmrg CPP C preprocessor 1403ea6ae205Smrg PKG_CONFIG path to pkg-config utility 1404ea6ae205Smrg MKFONTSCALE_CFLAGS 1405ea6ae205Smrg C compiler flags for MKFONTSCALE, overriding pkg-config 1406ea6ae205Smrg MKFONTSCALE_LIBS 1407ea6ae205Smrg linker flags for MKFONTSCALE, overriding pkg-config 1408ea6ae205Smrg X11_CFLAGS C compiler flags for X11, overriding pkg-config 1409ea6ae205Smrg X11_LIBS linker flags for X11, overriding pkg-config 1410b6f2c9ccSmrg LINT Path to a lint-style command 1411b6f2c9ccSmrg LINT_FLAGS Flags for the lint-style command 1412ea6ae205Smrg 1413ea6ae205SmrgUse these variables to override the choices made by `configure' or to help 1414ea6ae205Smrgit to find libraries and programs with nonstandard names/locations. 1415ea6ae205Smrg 1416ea6ae205SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1417ea6ae205Smrg_ACEOF 1418ea6ae205Smrgac_status=$? 1419ea6ae205Smrgfi 1420ea6ae205Smrg 1421ea6ae205Smrgif test "$ac_init_help" = "recursive"; then 1422ea6ae205Smrg # If there are subdirs, report their specific --help. 1423ea6ae205Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1424e83ac88aSmrg test -d "$ac_dir" || 1425e83ac88aSmrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1426e83ac88aSmrg continue 1427ea6ae205Smrg ac_builddir=. 1428ea6ae205Smrg 1429ea6ae205Smrgcase "$ac_dir" in 1430ea6ae205Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1431ea6ae205Smrg*) 1432e83ac88aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1433ea6ae205Smrg # A ".." for each directory in $ac_dir_suffix. 1434e83ac88aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1435ea6ae205Smrg case $ac_top_builddir_sub in 1436ea6ae205Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1437ea6ae205Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1438ea6ae205Smrg esac ;; 1439ea6ae205Smrgesac 1440ea6ae205Smrgac_abs_top_builddir=$ac_pwd 1441ea6ae205Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1442ea6ae205Smrg# for backward compatibility: 1443ea6ae205Smrgac_top_builddir=$ac_top_build_prefix 1444ea6ae205Smrg 1445ea6ae205Smrgcase $srcdir in 1446ea6ae205Smrg .) # We are building in place. 1447ea6ae205Smrg ac_srcdir=. 1448ea6ae205Smrg ac_top_srcdir=$ac_top_builddir_sub 1449ea6ae205Smrg ac_abs_top_srcdir=$ac_pwd ;; 1450ea6ae205Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1451ea6ae205Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1452ea6ae205Smrg ac_top_srcdir=$srcdir 1453ea6ae205Smrg ac_abs_top_srcdir=$srcdir ;; 1454ea6ae205Smrg *) # Relative name. 1455ea6ae205Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1456ea6ae205Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1457ea6ae205Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1458ea6ae205Smrgesac 1459ea6ae205Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1460ea6ae205Smrg 1461ea6ae205Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1462ea6ae205Smrg # Check for guested configure. 1463ea6ae205Smrg if test -f "$ac_srcdir/configure.gnu"; then 1464ea6ae205Smrg echo && 1465ea6ae205Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1466ea6ae205Smrg elif test -f "$ac_srcdir/configure"; then 1467ea6ae205Smrg echo && 1468ea6ae205Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1469ea6ae205Smrg else 1470e83ac88aSmrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1471ea6ae205Smrg fi || ac_status=$? 1472ea6ae205Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1473ea6ae205Smrg done 1474ea6ae205Smrgfi 1475ea6ae205Smrg 1476ea6ae205Smrgtest -n "$ac_init_help" && exit $ac_status 1477ea6ae205Smrgif $ac_init_version; then 1478ea6ae205Smrg cat <<\_ACEOF 1479245f6787Smrgmkfontscale configure 1.0.9 1480b6f2c9ccSmrggenerated by GNU Autoconf 2.68 1481ea6ae205Smrg 1482b6f2c9ccSmrgCopyright (C) 2010 Free Software Foundation, Inc. 1483ea6ae205SmrgThis configure script is free software; the Free Software Foundation 1484ea6ae205Smrggives unlimited permission to copy, distribute and modify it. 1485ea6ae205Smrg_ACEOF 1486ea6ae205Smrg exit 1487ea6ae205Smrgfi 1488ea6ae205Smrg 1489b6f2c9ccSmrg## ------------------------ ## 1490b6f2c9ccSmrg## Autoconf initialization. ## 1491b6f2c9ccSmrg## ------------------------ ## 1492ea6ae205Smrg 1493b6f2c9ccSmrg# ac_fn_c_try_compile LINENO 1494b6f2c9ccSmrg# -------------------------- 1495b6f2c9ccSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded. 1496b6f2c9ccSmrgac_fn_c_try_compile () 1497ea6ae205Smrg{ 1498b6f2c9ccSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1499b6f2c9ccSmrg rm -f conftest.$ac_objext 1500b6f2c9ccSmrg if { { ac_try="$ac_compile" 1501b6f2c9ccSmrgcase "(($ac_try" in 1502b6f2c9ccSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1503b6f2c9ccSmrg *) ac_try_echo=$ac_try;; 1504b6f2c9ccSmrgesac 1505b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1506b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 1507b6f2c9ccSmrg (eval "$ac_compile") 2>conftest.err 1508b6f2c9ccSmrg ac_status=$? 1509b6f2c9ccSmrg if test -s conftest.err; then 1510b6f2c9ccSmrg grep -v '^ *+' conftest.err >conftest.er1 1511b6f2c9ccSmrg cat conftest.er1 >&5 1512b6f2c9ccSmrg mv -f conftest.er1 conftest.err 1513b6f2c9ccSmrg fi 1514b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1515b6f2c9ccSmrg test $ac_status = 0; } && { 1516b6f2c9ccSmrg test -z "$ac_c_werror_flag" || 1517b6f2c9ccSmrg test ! -s conftest.err 1518b6f2c9ccSmrg } && test -s conftest.$ac_objext; then : 1519b6f2c9ccSmrg ac_retval=0 1520b6f2c9ccSmrgelse 1521b6f2c9ccSmrg $as_echo "$as_me: failed program was:" >&5 1522b6f2c9ccSmrgsed 's/^/| /' conftest.$ac_ext >&5 1523ea6ae205Smrg 1524b6f2c9ccSmrg ac_retval=1 1525b6f2c9ccSmrgfi 1526b6f2c9ccSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1527b6f2c9ccSmrg as_fn_set_status $ac_retval 1528ea6ae205Smrg 1529b6f2c9ccSmrg} # ac_fn_c_try_compile 1530b6f2c9ccSmrg 1531b6f2c9ccSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1532b6f2c9ccSmrg# --------------------------------------------- 1533b6f2c9ccSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1534b6f2c9ccSmrg# accordingly. 1535b6f2c9ccSmrgac_fn_c_check_decl () 1536b6f2c9ccSmrg{ 1537b6f2c9ccSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1538b6f2c9ccSmrg as_decl_name=`echo $2|sed 's/ *(.*//'` 1539b6f2c9ccSmrg as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1540b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1541b6f2c9ccSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1542b6f2c9ccSmrgif eval \${$3+:} false; then : 1543b6f2c9ccSmrg $as_echo_n "(cached) " >&6 1544b6f2c9ccSmrgelse 1545b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1546b6f2c9ccSmrg/* end confdefs.h. */ 1547b6f2c9ccSmrg$4 1548b6f2c9ccSmrgint 1549b6f2c9ccSmrgmain () 1550b6f2c9ccSmrg{ 1551b6f2c9ccSmrg#ifndef $as_decl_name 1552b6f2c9ccSmrg#ifdef __cplusplus 1553b6f2c9ccSmrg (void) $as_decl_use; 1554b6f2c9ccSmrg#else 1555b6f2c9ccSmrg (void) $as_decl_name; 1556b6f2c9ccSmrg#endif 1557b6f2c9ccSmrg#endif 1558b6f2c9ccSmrg 1559b6f2c9ccSmrg ; 1560b6f2c9ccSmrg return 0; 1561b6f2c9ccSmrg} 1562b6f2c9ccSmrg_ACEOF 1563b6f2c9ccSmrgif ac_fn_c_try_compile "$LINENO"; then : 1564b6f2c9ccSmrg eval "$3=yes" 1565b6f2c9ccSmrgelse 1566b6f2c9ccSmrg eval "$3=no" 1567b6f2c9ccSmrgfi 1568b6f2c9ccSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1569b6f2c9ccSmrgfi 1570b6f2c9ccSmrgeval ac_res=\$$3 1571b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1572b6f2c9ccSmrg$as_echo "$ac_res" >&6; } 1573b6f2c9ccSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1574b6f2c9ccSmrg 1575b6f2c9ccSmrg} # ac_fn_c_check_decl 1576b6f2c9ccSmrg 1577b6f2c9ccSmrg# ac_fn_c_try_cpp LINENO 1578b6f2c9ccSmrg# ---------------------- 1579b6f2c9ccSmrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1580b6f2c9ccSmrgac_fn_c_try_cpp () 1581b6f2c9ccSmrg{ 1582b6f2c9ccSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583b6f2c9ccSmrg if { { ac_try="$ac_cpp conftest.$ac_ext" 1584b6f2c9ccSmrgcase "(($ac_try" in 1585b6f2c9ccSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586b6f2c9ccSmrg *) ac_try_echo=$ac_try;; 1587b6f2c9ccSmrgesac 1588b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 1590b6f2c9ccSmrg (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1591b6f2c9ccSmrg ac_status=$? 1592b6f2c9ccSmrg if test -s conftest.err; then 1593b6f2c9ccSmrg grep -v '^ *+' conftest.err >conftest.er1 1594b6f2c9ccSmrg cat conftest.er1 >&5 1595b6f2c9ccSmrg mv -f conftest.er1 conftest.err 1596b6f2c9ccSmrg fi 1597b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598b6f2c9ccSmrg test $ac_status = 0; } > conftest.i && { 1599b6f2c9ccSmrg test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1600b6f2c9ccSmrg test ! -s conftest.err 1601b6f2c9ccSmrg }; then : 1602b6f2c9ccSmrg ac_retval=0 1603b6f2c9ccSmrgelse 1604b6f2c9ccSmrg $as_echo "$as_me: failed program was:" >&5 1605b6f2c9ccSmrgsed 's/^/| /' conftest.$ac_ext >&5 1606b6f2c9ccSmrg 1607b6f2c9ccSmrg ac_retval=1 1608b6f2c9ccSmrgfi 1609b6f2c9ccSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610b6f2c9ccSmrg as_fn_set_status $ac_retval 1611b6f2c9ccSmrg 1612b6f2c9ccSmrg} # ac_fn_c_try_cpp 1613b6f2c9ccSmrg 1614b6f2c9ccSmrg# ac_fn_c_try_run LINENO 1615b6f2c9ccSmrg# ---------------------- 1616b6f2c9ccSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1617b6f2c9ccSmrg# that executables *can* be run. 1618b6f2c9ccSmrgac_fn_c_try_run () 1619b6f2c9ccSmrg{ 1620b6f2c9ccSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621b6f2c9ccSmrg if { { ac_try="$ac_link" 1622b6f2c9ccSmrgcase "(($ac_try" in 1623b6f2c9ccSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624b6f2c9ccSmrg *) ac_try_echo=$ac_try;; 1625b6f2c9ccSmrgesac 1626b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 1628b6f2c9ccSmrg (eval "$ac_link") 2>&5 1629b6f2c9ccSmrg ac_status=$? 1630b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631b6f2c9ccSmrg test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1632b6f2c9ccSmrg { { case "(($ac_try" in 1633b6f2c9ccSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634b6f2c9ccSmrg *) ac_try_echo=$ac_try;; 1635b6f2c9ccSmrgesac 1636b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 1638b6f2c9ccSmrg (eval "$ac_try") 2>&5 1639b6f2c9ccSmrg ac_status=$? 1640b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641b6f2c9ccSmrg test $ac_status = 0; }; }; then : 1642b6f2c9ccSmrg ac_retval=0 1643b6f2c9ccSmrgelse 1644b6f2c9ccSmrg $as_echo "$as_me: program exited with status $ac_status" >&5 1645b6f2c9ccSmrg $as_echo "$as_me: failed program was:" >&5 1646b6f2c9ccSmrgsed 's/^/| /' conftest.$ac_ext >&5 1647b6f2c9ccSmrg 1648b6f2c9ccSmrg ac_retval=$ac_status 1649b6f2c9ccSmrgfi 1650b6f2c9ccSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1651b6f2c9ccSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652b6f2c9ccSmrg as_fn_set_status $ac_retval 1653b6f2c9ccSmrg 1654b6f2c9ccSmrg} # ac_fn_c_try_run 1655b6f2c9ccSmrg 1656b6f2c9ccSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1657b6f2c9ccSmrg# ------------------------------------------------------- 1658b6f2c9ccSmrg# Tests whether HEADER exists and can be compiled using the include files in 1659b6f2c9ccSmrg# INCLUDES, setting the cache variable VAR accordingly. 1660b6f2c9ccSmrgac_fn_c_check_header_compile () 1661b6f2c9ccSmrg{ 1662b6f2c9ccSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1664b6f2c9ccSmrg$as_echo_n "checking for $2... " >&6; } 1665b6f2c9ccSmrgif eval \${$3+:} false; then : 1666b6f2c9ccSmrg $as_echo_n "(cached) " >&6 1667b6f2c9ccSmrgelse 1668b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669b6f2c9ccSmrg/* end confdefs.h. */ 1670b6f2c9ccSmrg$4 1671b6f2c9ccSmrg#include <$2> 1672b6f2c9ccSmrg_ACEOF 1673b6f2c9ccSmrgif ac_fn_c_try_compile "$LINENO"; then : 1674b6f2c9ccSmrg eval "$3=yes" 1675b6f2c9ccSmrgelse 1676b6f2c9ccSmrg eval "$3=no" 1677b6f2c9ccSmrgfi 1678b6f2c9ccSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1679b6f2c9ccSmrgfi 1680b6f2c9ccSmrgeval ac_res=\$$3 1681b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682b6f2c9ccSmrg$as_echo "$ac_res" >&6; } 1683b6f2c9ccSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684b6f2c9ccSmrg 1685b6f2c9ccSmrg} # ac_fn_c_check_header_compile 1686b6f2c9ccSmrg 1687b6f2c9ccSmrg# ac_fn_c_try_link LINENO 1688b6f2c9ccSmrg# ----------------------- 1689b6f2c9ccSmrg# Try to link conftest.$ac_ext, and return whether this succeeded. 1690b6f2c9ccSmrgac_fn_c_try_link () 1691b6f2c9ccSmrg{ 1692b6f2c9ccSmrg as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693b6f2c9ccSmrg rm -f conftest.$ac_objext conftest$ac_exeext 1694b6f2c9ccSmrg if { { ac_try="$ac_link" 1695b6f2c9ccSmrgcase "(($ac_try" in 1696b6f2c9ccSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697b6f2c9ccSmrg *) ac_try_echo=$ac_try;; 1698b6f2c9ccSmrgesac 1699b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 1701b6f2c9ccSmrg (eval "$ac_link") 2>conftest.err 1702b6f2c9ccSmrg ac_status=$? 1703b6f2c9ccSmrg if test -s conftest.err; then 1704b6f2c9ccSmrg grep -v '^ *+' conftest.err >conftest.er1 1705b6f2c9ccSmrg cat conftest.er1 >&5 1706b6f2c9ccSmrg mv -f conftest.er1 conftest.err 1707b6f2c9ccSmrg fi 1708b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709b6f2c9ccSmrg test $ac_status = 0; } && { 1710b6f2c9ccSmrg test -z "$ac_c_werror_flag" || 1711b6f2c9ccSmrg test ! -s conftest.err 1712b6f2c9ccSmrg } && test -s conftest$ac_exeext && { 1713b6f2c9ccSmrg test "$cross_compiling" = yes || 1714b6f2c9ccSmrg $as_test_x conftest$ac_exeext 1715b6f2c9ccSmrg }; then : 1716b6f2c9ccSmrg ac_retval=0 1717b6f2c9ccSmrgelse 1718b6f2c9ccSmrg $as_echo "$as_me: failed program was:" >&5 1719b6f2c9ccSmrgsed 's/^/| /' conftest.$ac_ext >&5 1720b6f2c9ccSmrg 1721b6f2c9ccSmrg ac_retval=1 1722b6f2c9ccSmrgfi 1723b6f2c9ccSmrg # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1724b6f2c9ccSmrg # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1725b6f2c9ccSmrg # interfere with the next link command; also delete a directory that is 1726b6f2c9ccSmrg # left behind by Apple's compiler. We do this before executing the actions. 1727b6f2c9ccSmrg rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1728b6f2c9ccSmrg eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729b6f2c9ccSmrg as_fn_set_status $ac_retval 1730b6f2c9ccSmrg 1731b6f2c9ccSmrg} # ac_fn_c_try_link 1732b6f2c9ccSmrgcat >config.log <<_ACEOF 1733b6f2c9ccSmrgThis file contains any messages produced by compilers while 1734b6f2c9ccSmrgrunning configure, to aid debugging if configure makes a mistake. 1735b6f2c9ccSmrg 1736245f6787SmrgIt was created by mkfontscale $as_me 1.0.9, which was 1737b6f2c9ccSmrggenerated by GNU Autoconf 2.68. Invocation command line was 1738b6f2c9ccSmrg 1739b6f2c9ccSmrg $ $0 $@ 1740b6f2c9ccSmrg 1741b6f2c9ccSmrg_ACEOF 1742b6f2c9ccSmrgexec 5>>config.log 1743b6f2c9ccSmrg{ 1744b6f2c9ccSmrgcat <<_ASUNAME 1745b6f2c9ccSmrg## --------- ## 1746b6f2c9ccSmrg## Platform. ## 1747b6f2c9ccSmrg## --------- ## 1748b6f2c9ccSmrg 1749b6f2c9ccSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1750b6f2c9ccSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1751b6f2c9ccSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1752b6f2c9ccSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1753b6f2c9ccSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1754b6f2c9ccSmrg 1755b6f2c9ccSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1756b6f2c9ccSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1757b6f2c9ccSmrg 1758b6f2c9ccSmrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1759b6f2c9ccSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1760b6f2c9ccSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1761b6f2c9ccSmrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1762b6f2c9ccSmrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1763b6f2c9ccSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1764b6f2c9ccSmrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1765b6f2c9ccSmrg 1766b6f2c9ccSmrg_ASUNAME 1767ea6ae205Smrg 1768ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1769ea6ae205Smrgfor as_dir in $PATH 1770ea6ae205Smrgdo 1771ea6ae205Smrg IFS=$as_save_IFS 1772ea6ae205Smrg test -z "$as_dir" && as_dir=. 1773b6f2c9ccSmrg $as_echo "PATH: $as_dir" 1774b6f2c9ccSmrg done 1775ea6ae205SmrgIFS=$as_save_IFS 1776ea6ae205Smrg 1777ea6ae205Smrg} >&5 1778ea6ae205Smrg 1779ea6ae205Smrgcat >&5 <<_ACEOF 1780ea6ae205Smrg 1781ea6ae205Smrg 1782ea6ae205Smrg## ----------- ## 1783ea6ae205Smrg## Core tests. ## 1784ea6ae205Smrg## ----------- ## 1785ea6ae205Smrg 1786ea6ae205Smrg_ACEOF 1787ea6ae205Smrg 1788ea6ae205Smrg 1789ea6ae205Smrg# Keep a trace of the command line. 1790ea6ae205Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1791ea6ae205Smrg# Strip out --silent because we don't want to record it for future runs. 1792ea6ae205Smrg# Also quote any args containing shell meta-characters. 1793ea6ae205Smrg# Make two passes to allow for proper duplicate-argument suppression. 1794ea6ae205Smrgac_configure_args= 1795ea6ae205Smrgac_configure_args0= 1796ea6ae205Smrgac_configure_args1= 1797ea6ae205Smrgac_must_keep_next=false 1798ea6ae205Smrgfor ac_pass in 1 2 1799ea6ae205Smrgdo 1800ea6ae205Smrg for ac_arg 1801ea6ae205Smrg do 1802ea6ae205Smrg case $ac_arg in 1803ea6ae205Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1804ea6ae205Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1805ea6ae205Smrg | -silent | --silent | --silen | --sile | --sil) 1806ea6ae205Smrg continue ;; 1807ea6ae205Smrg *\'*) 1808e83ac88aSmrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1809ea6ae205Smrg esac 1810ea6ae205Smrg case $ac_pass in 1811b6f2c9ccSmrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1812ea6ae205Smrg 2) 1813b6f2c9ccSmrg as_fn_append ac_configure_args1 " '$ac_arg'" 1814ea6ae205Smrg if test $ac_must_keep_next = true; then 1815ea6ae205Smrg ac_must_keep_next=false # Got value, back to normal. 1816ea6ae205Smrg else 1817ea6ae205Smrg case $ac_arg in 1818ea6ae205Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1819ea6ae205Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1820ea6ae205Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1821ea6ae205Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1822ea6ae205Smrg case "$ac_configure_args0 " in 1823ea6ae205Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1824ea6ae205Smrg esac 1825ea6ae205Smrg ;; 1826ea6ae205Smrg -* ) ac_must_keep_next=true ;; 1827ea6ae205Smrg esac 1828ea6ae205Smrg fi 1829b6f2c9ccSmrg as_fn_append ac_configure_args " '$ac_arg'" 1830ea6ae205Smrg ;; 1831ea6ae205Smrg esac 1832ea6ae205Smrg done 1833ea6ae205Smrgdone 1834b6f2c9ccSmrg{ ac_configure_args0=; unset ac_configure_args0;} 1835b6f2c9ccSmrg{ ac_configure_args1=; unset ac_configure_args1;} 1836ea6ae205Smrg 1837ea6ae205Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1838ea6ae205Smrg# config.log. We remove comments because anyway the quotes in there 1839ea6ae205Smrg# would cause problems or look ugly. 1840ea6ae205Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1841ea6ae205Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1842ea6ae205Smrgtrap 'exit_status=$? 1843ea6ae205Smrg # Save into config.log some information that might help in debugging. 1844ea6ae205Smrg { 1845ea6ae205Smrg echo 1846ea6ae205Smrg 1847b6f2c9ccSmrg $as_echo "## ---------------- ## 1848ea6ae205Smrg## Cache variables. ## 1849b6f2c9ccSmrg## ---------------- ##" 1850ea6ae205Smrg echo 1851ea6ae205Smrg # The following way of writing the cache mishandles newlines in values, 1852ea6ae205Smrg( 1853ea6ae205Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1854ea6ae205Smrg eval ac_val=\$$ac_var 1855ea6ae205Smrg case $ac_val in #( 1856ea6ae205Smrg *${as_nl}*) 1857ea6ae205Smrg case $ac_var in #( 1858b6f2c9ccSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1859e83ac88aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1860ea6ae205Smrg esac 1861ea6ae205Smrg case $ac_var in #( 1862ea6ae205Smrg _ | IFS | as_nl) ;; #( 1863e83ac88aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1864b6f2c9ccSmrg *) { eval $ac_var=; unset $ac_var;} ;; 1865ea6ae205Smrg esac ;; 1866ea6ae205Smrg esac 1867ea6ae205Smrg done 1868ea6ae205Smrg (set) 2>&1 | 1869ea6ae205Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1870ea6ae205Smrg *${as_nl}ac_space=\ *) 1871ea6ae205Smrg sed -n \ 1872ea6ae205Smrg "s/'\''/'\''\\\\'\'''\''/g; 1873ea6ae205Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1874ea6ae205Smrg ;; #( 1875ea6ae205Smrg *) 1876ea6ae205Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1877ea6ae205Smrg ;; 1878ea6ae205Smrg esac | 1879ea6ae205Smrg sort 1880ea6ae205Smrg) 1881ea6ae205Smrg echo 1882ea6ae205Smrg 1883b6f2c9ccSmrg $as_echo "## ----------------- ## 1884ea6ae205Smrg## Output variables. ## 1885b6f2c9ccSmrg## ----------------- ##" 1886ea6ae205Smrg echo 1887ea6ae205Smrg for ac_var in $ac_subst_vars 1888ea6ae205Smrg do 1889ea6ae205Smrg eval ac_val=\$$ac_var 1890ea6ae205Smrg case $ac_val in 1891e83ac88aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1892ea6ae205Smrg esac 1893e83ac88aSmrg $as_echo "$ac_var='\''$ac_val'\''" 1894ea6ae205Smrg done | sort 1895ea6ae205Smrg echo 1896ea6ae205Smrg 1897ea6ae205Smrg if test -n "$ac_subst_files"; then 1898b6f2c9ccSmrg $as_echo "## ------------------- ## 1899ea6ae205Smrg## File substitutions. ## 1900b6f2c9ccSmrg## ------------------- ##" 1901ea6ae205Smrg echo 1902ea6ae205Smrg for ac_var in $ac_subst_files 1903ea6ae205Smrg do 1904ea6ae205Smrg eval ac_val=\$$ac_var 1905ea6ae205Smrg case $ac_val in 1906e83ac88aSmrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1907ea6ae205Smrg esac 1908e83ac88aSmrg $as_echo "$ac_var='\''$ac_val'\''" 1909ea6ae205Smrg done | sort 1910ea6ae205Smrg echo 1911ea6ae205Smrg fi 1912ea6ae205Smrg 1913ea6ae205Smrg if test -s confdefs.h; then 1914b6f2c9ccSmrg $as_echo "## ----------- ## 1915ea6ae205Smrg## confdefs.h. ## 1916b6f2c9ccSmrg## ----------- ##" 1917ea6ae205Smrg echo 1918ea6ae205Smrg cat confdefs.h 1919ea6ae205Smrg echo 1920ea6ae205Smrg fi 1921ea6ae205Smrg test "$ac_signal" != 0 && 1922e83ac88aSmrg $as_echo "$as_me: caught signal $ac_signal" 1923e83ac88aSmrg $as_echo "$as_me: exit $exit_status" 1924ea6ae205Smrg } >&5 1925ea6ae205Smrg rm -f core *.core core.conftest.* && 1926ea6ae205Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1927ea6ae205Smrg exit $exit_status 1928ea6ae205Smrg' 0 1929ea6ae205Smrgfor ac_signal in 1 2 13 15; do 1930b6f2c9ccSmrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1931ea6ae205Smrgdone 1932ea6ae205Smrgac_signal=0 1933ea6ae205Smrg 1934ea6ae205Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1935ea6ae205Smrgrm -f -r conftest* confdefs.h 1936ea6ae205Smrg 1937b6f2c9ccSmrg$as_echo "/* confdefs.h */" > confdefs.h 1938b6f2c9ccSmrg 1939ea6ae205Smrg# Predefined preprocessor variables. 1940ea6ae205Smrg 1941ea6ae205Smrgcat >>confdefs.h <<_ACEOF 1942ea6ae205Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 1943ea6ae205Smrg_ACEOF 1944ea6ae205Smrg 1945ea6ae205Smrgcat >>confdefs.h <<_ACEOF 1946ea6ae205Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1947ea6ae205Smrg_ACEOF 1948ea6ae205Smrg 1949ea6ae205Smrgcat >>confdefs.h <<_ACEOF 1950ea6ae205Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1951ea6ae205Smrg_ACEOF 1952ea6ae205Smrg 1953ea6ae205Smrgcat >>confdefs.h <<_ACEOF 1954ea6ae205Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 1955ea6ae205Smrg_ACEOF 1956ea6ae205Smrg 1957ea6ae205Smrgcat >>confdefs.h <<_ACEOF 1958ea6ae205Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1959ea6ae205Smrg_ACEOF 1960ea6ae205Smrg 1961b6f2c9ccSmrgcat >>confdefs.h <<_ACEOF 1962b6f2c9ccSmrg#define PACKAGE_URL "$PACKAGE_URL" 1963b6f2c9ccSmrg_ACEOF 1964b6f2c9ccSmrg 1965ea6ae205Smrg 1966ea6ae205Smrg# Let the site file select an alternate cache file if it wants to. 1967e83ac88aSmrg# Prefer an explicitly selected file to automatically selected ones. 1968e83ac88aSmrgac_site_file1=NONE 1969e83ac88aSmrgac_site_file2=NONE 1970ea6ae205Smrgif test -n "$CONFIG_SITE"; then 1971b6f2c9ccSmrg # We do not want a PATH search for config.site. 1972b6f2c9ccSmrg case $CONFIG_SITE in #(( 1973b6f2c9ccSmrg -*) ac_site_file1=./$CONFIG_SITE;; 1974b6f2c9ccSmrg */*) ac_site_file1=$CONFIG_SITE;; 1975b6f2c9ccSmrg *) ac_site_file1=./$CONFIG_SITE;; 1976b6f2c9ccSmrg esac 1977ea6ae205Smrgelif test "x$prefix" != xNONE; then 1978e83ac88aSmrg ac_site_file1=$prefix/share/config.site 1979e83ac88aSmrg ac_site_file2=$prefix/etc/config.site 1980ea6ae205Smrgelse 1981e83ac88aSmrg ac_site_file1=$ac_default_prefix/share/config.site 1982e83ac88aSmrg ac_site_file2=$ac_default_prefix/etc/config.site 1983ea6ae205Smrgfi 1984e83ac88aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1985ea6ae205Smrgdo 1986e83ac88aSmrg test "x$ac_site_file" = xNONE && continue 1987b6f2c9ccSmrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1988b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1989e83ac88aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1990ea6ae205Smrg sed 's/^/| /' "$ac_site_file" >&5 1991b6f2c9ccSmrg . "$ac_site_file" \ 1992b6f2c9ccSmrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1993b6f2c9ccSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1994b6f2c9ccSmrgas_fn_error $? "failed to load site script $ac_site_file 1995b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 1996ea6ae205Smrg fi 1997ea6ae205Smrgdone 1998ea6ae205Smrg 1999ea6ae205Smrgif test -r "$cache_file"; then 2000b6f2c9ccSmrg # Some versions of bash will fail to source /dev/null (special files 2001b6f2c9ccSmrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2002b6f2c9ccSmrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2003b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2004e83ac88aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;} 2005ea6ae205Smrg case $cache_file in 2006ea6ae205Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 2007ea6ae205Smrg *) . "./$cache_file";; 2008ea6ae205Smrg esac 2009ea6ae205Smrg fi 2010ea6ae205Smrgelse 2011b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2012e83ac88aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;} 2013ea6ae205Smrg >$cache_file 2014ea6ae205Smrgfi 2015ea6ae205Smrg 2016ea6ae205Smrg# Check that the precious variables saved in the cache have kept the same 2017ea6ae205Smrg# value. 2018ea6ae205Smrgac_cache_corrupted=false 2019ea6ae205Smrgfor ac_var in $ac_precious_vars; do 2020ea6ae205Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 2021ea6ae205Smrg eval ac_new_set=\$ac_env_${ac_var}_set 2022ea6ae205Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 2023ea6ae205Smrg eval ac_new_val=\$ac_env_${ac_var}_value 2024ea6ae205Smrg case $ac_old_set,$ac_new_set in 2025ea6ae205Smrg set,) 2026b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2027e83ac88aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2028ea6ae205Smrg ac_cache_corrupted=: ;; 2029ea6ae205Smrg ,set) 2030b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2031e83ac88aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2032ea6ae205Smrg ac_cache_corrupted=: ;; 2033ea6ae205Smrg ,);; 2034ea6ae205Smrg *) 2035ea6ae205Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 2036e83ac88aSmrg # differences in whitespace do not lead to failure. 2037e83ac88aSmrg ac_old_val_w=`echo x $ac_old_val` 2038e83ac88aSmrg ac_new_val_w=`echo x $ac_new_val` 2039e83ac88aSmrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 2040b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2041e83ac88aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2042e83ac88aSmrg ac_cache_corrupted=: 2043e83ac88aSmrg else 2044b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2045e83ac88aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2046e83ac88aSmrg eval $ac_var=\$ac_old_val 2047e83ac88aSmrg fi 2048b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2049e83ac88aSmrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2050b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2051e83ac88aSmrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2052e83ac88aSmrg fi;; 2053ea6ae205Smrg esac 2054ea6ae205Smrg # Pass precious variables to config.status. 2055ea6ae205Smrg if test "$ac_new_set" = set; then 2056ea6ae205Smrg case $ac_new_val in 2057e83ac88aSmrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2058ea6ae205Smrg *) ac_arg=$ac_var=$ac_new_val ;; 2059ea6ae205Smrg esac 2060ea6ae205Smrg case " $ac_configure_args " in 2061ea6ae205Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2062b6f2c9ccSmrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2063ea6ae205Smrg esac 2064ea6ae205Smrg fi 2065ea6ae205Smrgdone 2066ea6ae205Smrgif $ac_cache_corrupted; then 2067b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2068e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2069b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2070e83ac88aSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2071b6f2c9ccSmrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2072ea6ae205Smrgfi 2073b6f2c9ccSmrg## -------------------- ## 2074b6f2c9ccSmrg## Main body of script. ## 2075b6f2c9ccSmrg## -------------------- ## 2076ea6ae205Smrg 2077ea6ae205Smrgac_ext=c 2078ea6ae205Smrgac_cpp='$CPP $CPPFLAGS' 2079ea6ae205Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2080ea6ae205Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2081ea6ae205Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2082ea6ae205Smrg 2083ea6ae205Smrg 2084245f6787Smrg 2085245f6787Smrgac_config_headers="$ac_config_headers config.h" 2086245f6787Smrg 2087245f6787Smrg 2088245f6787Smrg# Initialize Automake 2089e83ac88aSmrgam__api_version='1.11' 2090ea6ae205Smrg 2091ea6ae205Smrgac_aux_dir= 2092ea6ae205Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2093ea6ae205Smrg if test -f "$ac_dir/install-sh"; then 2094ea6ae205Smrg ac_aux_dir=$ac_dir 2095ea6ae205Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 2096ea6ae205Smrg break 2097ea6ae205Smrg elif test -f "$ac_dir/install.sh"; then 2098ea6ae205Smrg ac_aux_dir=$ac_dir 2099ea6ae205Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 2100ea6ae205Smrg break 2101ea6ae205Smrg elif test -f "$ac_dir/shtool"; then 2102ea6ae205Smrg ac_aux_dir=$ac_dir 2103ea6ae205Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 2104ea6ae205Smrg break 2105ea6ae205Smrg fi 2106ea6ae205Smrgdone 2107ea6ae205Smrgif test -z "$ac_aux_dir"; then 2108b6f2c9ccSmrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2109ea6ae205Smrgfi 2110ea6ae205Smrg 2111ea6ae205Smrg# These three variables are undocumented and unsupported, 2112ea6ae205Smrg# and are intended to be withdrawn in a future Autoconf release. 2113ea6ae205Smrg# They can cause serious problems if a builder's source tree is in a directory 2114ea6ae205Smrg# whose full name contains unusual characters. 2115ea6ae205Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2116ea6ae205Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2117ea6ae205Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2118ea6ae205Smrg 2119ea6ae205Smrg 2120ea6ae205Smrg# Find a good install program. We prefer a C program (faster), 2121ea6ae205Smrg# so one script is as good as another. But avoid the broken or 2122ea6ae205Smrg# incompatible versions: 2123ea6ae205Smrg# SysV /etc/install, /usr/sbin/install 2124ea6ae205Smrg# SunOS /usr/etc/install 2125ea6ae205Smrg# IRIX /sbin/install 2126ea6ae205Smrg# AIX /bin/install 2127ea6ae205Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 2128ea6ae205Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2129ea6ae205Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2130ea6ae205Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2131ea6ae205Smrg# OS/2's system install, which has a completely different semantic 2132ea6ae205Smrg# ./install, which can be erroneously created by make from ./install.sh. 2133e83ac88aSmrg# Reject install programs that cannot install multiple files. 2134b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2135e83ac88aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 2136ea6ae205Smrgif test -z "$INSTALL"; then 2137b6f2c9ccSmrgif ${ac_cv_path_install+:} false; then : 2138e83ac88aSmrg $as_echo_n "(cached) " >&6 2139ea6ae205Smrgelse 2140ea6ae205Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2141ea6ae205Smrgfor as_dir in $PATH 2142ea6ae205Smrgdo 2143ea6ae205Smrg IFS=$as_save_IFS 2144ea6ae205Smrg test -z "$as_dir" && as_dir=. 2145b6f2c9ccSmrg # Account for people who put trailing slashes in PATH elements. 2146b6f2c9ccSmrgcase $as_dir/ in #(( 2147b6f2c9ccSmrg ./ | .// | /[cC]/* | \ 2148ea6ae205Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2149b6f2c9ccSmrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2150ea6ae205Smrg /usr/ucb/* ) ;; 2151ea6ae205Smrg *) 2152ea6ae205Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 2153ea6ae205Smrg # Don't use installbsd from OSF since it installs stuff as root 2154ea6ae205Smrg # by default. 2155ea6ae205Smrg for ac_prog in ginstall scoinst install; do 2156ea6ae205Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2157ea6ae205Smrg if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2158ea6ae205Smrg if test $ac_prog = install && 2159ea6ae205Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2160ea6ae205Smrg # AIX install. It has an incompatible calling convention. 2161ea6ae205Smrg : 2162ea6ae205Smrg elif test $ac_prog = install && 2163ea6ae205Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2164ea6ae205Smrg # program-specific install script used by HP pwplus--don't use. 2165ea6ae205Smrg : 2166ea6ae205Smrg else 2167e83ac88aSmrg rm -rf conftest.one conftest.two conftest.dir 2168e83ac88aSmrg echo one > conftest.one 2169e83ac88aSmrg echo two > conftest.two 2170e83ac88aSmrg mkdir conftest.dir 2171e83ac88aSmrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2172e83ac88aSmrg test -s conftest.one && test -s conftest.two && 2173e83ac88aSmrg test -s conftest.dir/conftest.one && 2174e83ac88aSmrg test -s conftest.dir/conftest.two 2175e83ac88aSmrg then 2176e83ac88aSmrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2177e83ac88aSmrg break 3 2178e83ac88aSmrg fi 2179ea6ae205Smrg fi 2180ea6ae205Smrg fi 2181ea6ae205Smrg done 2182ea6ae205Smrg done 2183ea6ae205Smrg ;; 2184ea6ae205Smrgesac 2185e83ac88aSmrg 2186b6f2c9ccSmrg done 2187ea6ae205SmrgIFS=$as_save_IFS 2188ea6ae205Smrg 2189e83ac88aSmrgrm -rf conftest.one conftest.two conftest.dir 2190ea6ae205Smrg 2191ea6ae205Smrgfi 2192ea6ae205Smrg if test "${ac_cv_path_install+set}" = set; then 2193ea6ae205Smrg INSTALL=$ac_cv_path_install 2194ea6ae205Smrg else 2195ea6ae205Smrg # As a last resort, use the slow shell script. Don't cache a 2196ea6ae205Smrg # value for INSTALL within a source directory, because that will 2197ea6ae205Smrg # break other packages using the cache if that directory is 2198ea6ae205Smrg # removed, or if the value is a relative name. 2199ea6ae205Smrg INSTALL=$ac_install_sh 2200ea6ae205Smrg fi 2201ea6ae205Smrgfi 2202b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2203e83ac88aSmrg$as_echo "$INSTALL" >&6; } 2204ea6ae205Smrg 2205ea6ae205Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2206ea6ae205Smrg# It thinks the first close brace ends the variable substitution. 2207ea6ae205Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2208ea6ae205Smrg 2209ea6ae205Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2210ea6ae205Smrg 2211ea6ae205Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2212ea6ae205Smrg 2213b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2214e83ac88aSmrg$as_echo_n "checking whether build environment is sane... " >&6; } 2215ea6ae205Smrg# Just in case 2216ea6ae205Smrgsleep 1 2217ea6ae205Smrgecho timestamp > conftest.file 2218e83ac88aSmrg# Reject unsafe characters in $srcdir or the absolute working directory 2219e83ac88aSmrg# name. Accept space and tab only in the latter. 2220e83ac88aSmrgam_lf=' 2221e83ac88aSmrg' 2222e83ac88aSmrgcase `pwd` in 2223e83ac88aSmrg *[\\\"\#\$\&\'\`$am_lf]*) 2224b6f2c9ccSmrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2225e83ac88aSmrgesac 2226e83ac88aSmrgcase $srcdir in 2227e83ac88aSmrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2228b6f2c9ccSmrg as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2229e83ac88aSmrgesac 2230e83ac88aSmrg 2231ea6ae205Smrg# Do `set' in a subshell so we don't clobber the current shell's 2232ea6ae205Smrg# arguments. Must try -L first in case configure is actually a 2233ea6ae205Smrg# symlink; some systems play weird games with the mod time of symlinks 2234ea6ae205Smrg# (eg FreeBSD returns the mod time of the symlink's containing 2235ea6ae205Smrg# directory). 2236ea6ae205Smrgif ( 2237e83ac88aSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2238ea6ae205Smrg if test "$*" = "X"; then 2239ea6ae205Smrg # -L didn't work. 2240e83ac88aSmrg set X `ls -t "$srcdir/configure" conftest.file` 2241ea6ae205Smrg fi 2242ea6ae205Smrg rm -f conftest.file 2243ea6ae205Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 2244ea6ae205Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 2245ea6ae205Smrg 2246ea6ae205Smrg # If neither matched, then we have a broken ls. This can happen 2247ea6ae205Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 2248ea6ae205Smrg # broken ls alias from the environment. This has actually 2249ea6ae205Smrg # happened. Such a system could not be considered "sane". 2250b6f2c9ccSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2251b6f2c9ccSmrgalias in your environment" "$LINENO" 5 2252ea6ae205Smrg fi 2253ea6ae205Smrg 2254ea6ae205Smrg test "$2" = conftest.file 2255ea6ae205Smrg ) 2256ea6ae205Smrgthen 2257ea6ae205Smrg # Ok. 2258ea6ae205Smrg : 2259ea6ae205Smrgelse 2260b6f2c9ccSmrg as_fn_error $? "newly created file is older than distributed files! 2261b6f2c9ccSmrgCheck your system clock" "$LINENO" 5 2262ea6ae205Smrgfi 2263b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2264e83ac88aSmrg$as_echo "yes" >&6; } 2265ea6ae205Smrgtest "$program_prefix" != NONE && 2266ea6ae205Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 2267ea6ae205Smrg# Use a double $ so make ignores it. 2268ea6ae205Smrgtest "$program_suffix" != NONE && 2269ea6ae205Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2270e83ac88aSmrg# Double any \ or $. 2271ea6ae205Smrg# By default was `s,x,x', remove it if useless. 2272e83ac88aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2273e83ac88aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2274ea6ae205Smrg 2275ea6ae205Smrg# expand $ac_aux_dir to an absolute path 2276ea6ae205Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 2277ea6ae205Smrg 2278e83ac88aSmrgif test x"${MISSING+set}" != xset; then 2279e83ac88aSmrg case $am_aux_dir in 2280e83ac88aSmrg *\ * | *\ *) 2281e83ac88aSmrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2282e83ac88aSmrg *) 2283e83ac88aSmrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 2284e83ac88aSmrg esac 2285e83ac88aSmrgfi 2286ea6ae205Smrg# Use eval to expand $SHELL 2287ea6ae205Smrgif eval "$MISSING --run true"; then 2288ea6ae205Smrg am_missing_run="$MISSING --run " 2289ea6ae205Smrgelse 2290ea6ae205Smrg am_missing_run= 2291b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2292e83ac88aSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2293e83ac88aSmrgfi 2294e83ac88aSmrg 2295e83ac88aSmrgif test x"${install_sh}" != xset; then 2296e83ac88aSmrg case $am_aux_dir in 2297e83ac88aSmrg *\ * | *\ *) 2298e83ac88aSmrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2299e83ac88aSmrg *) 2300e83ac88aSmrg install_sh="\${SHELL} $am_aux_dir/install-sh" 2301e83ac88aSmrg esac 2302e83ac88aSmrgfi 2303e83ac88aSmrg 2304e83ac88aSmrg# Installed binaries are usually stripped using `strip' when the user 2305e83ac88aSmrg# run `make install-strip'. However `strip' might not be the right 2306e83ac88aSmrg# tool to use in cross-compilation environments, therefore Automake 2307e83ac88aSmrg# will honor the `STRIP' environment variable to overrule this program. 2308e83ac88aSmrgif test "$cross_compiling" != no; then 2309e83ac88aSmrg if test -n "$ac_tool_prefix"; then 2310e83ac88aSmrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2311e83ac88aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2 2312b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2313e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2314b6f2c9ccSmrgif ${ac_cv_prog_STRIP+:} false; then : 2315e83ac88aSmrg $as_echo_n "(cached) " >&6 2316e83ac88aSmrgelse 2317e83ac88aSmrg if test -n "$STRIP"; then 2318e83ac88aSmrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2319e83ac88aSmrgelse 2320e83ac88aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321e83ac88aSmrgfor as_dir in $PATH 2322e83ac88aSmrgdo 2323e83ac88aSmrg IFS=$as_save_IFS 2324e83ac88aSmrg test -z "$as_dir" && as_dir=. 2325b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2326e83ac88aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2327e83ac88aSmrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2328b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2329e83ac88aSmrg break 2 2330e83ac88aSmrg fi 2331e83ac88aSmrgdone 2332b6f2c9ccSmrg done 2333e83ac88aSmrgIFS=$as_save_IFS 2334e83ac88aSmrg 2335e83ac88aSmrgfi 2336e83ac88aSmrgfi 2337e83ac88aSmrgSTRIP=$ac_cv_prog_STRIP 2338e83ac88aSmrgif test -n "$STRIP"; then 2339b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2340e83ac88aSmrg$as_echo "$STRIP" >&6; } 2341e83ac88aSmrgelse 2342b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2343e83ac88aSmrg$as_echo "no" >&6; } 2344e83ac88aSmrgfi 2345e83ac88aSmrg 2346e83ac88aSmrg 2347e83ac88aSmrgfi 2348e83ac88aSmrgif test -z "$ac_cv_prog_STRIP"; then 2349e83ac88aSmrg ac_ct_STRIP=$STRIP 2350e83ac88aSmrg # Extract the first word of "strip", so it can be a program name with args. 2351e83ac88aSmrgset dummy strip; ac_word=$2 2352b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2353e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2354b6f2c9ccSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2355e83ac88aSmrg $as_echo_n "(cached) " >&6 2356e83ac88aSmrgelse 2357e83ac88aSmrg if test -n "$ac_ct_STRIP"; then 2358e83ac88aSmrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2359e83ac88aSmrgelse 2360e83ac88aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361e83ac88aSmrgfor as_dir in $PATH 2362e83ac88aSmrgdo 2363e83ac88aSmrg IFS=$as_save_IFS 2364e83ac88aSmrg test -z "$as_dir" && as_dir=. 2365b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2366e83ac88aSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2367e83ac88aSmrg ac_cv_prog_ac_ct_STRIP="strip" 2368b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2369e83ac88aSmrg break 2 2370e83ac88aSmrg fi 2371e83ac88aSmrgdone 2372b6f2c9ccSmrg done 2373e83ac88aSmrgIFS=$as_save_IFS 2374e83ac88aSmrg 2375e83ac88aSmrgfi 2376e83ac88aSmrgfi 2377e83ac88aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2378e83ac88aSmrgif test -n "$ac_ct_STRIP"; then 2379b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2380e83ac88aSmrg$as_echo "$ac_ct_STRIP" >&6; } 2381e83ac88aSmrgelse 2382b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2383e83ac88aSmrg$as_echo "no" >&6; } 2384e83ac88aSmrgfi 2385e83ac88aSmrg 2386e83ac88aSmrg if test "x$ac_ct_STRIP" = x; then 2387e83ac88aSmrg STRIP=":" 2388e83ac88aSmrg else 2389e83ac88aSmrg case $cross_compiling:$ac_tool_warned in 2390e83ac88aSmrgyes:) 2391b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2392e83ac88aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2393e83ac88aSmrgac_tool_warned=yes ;; 2394e83ac88aSmrgesac 2395e83ac88aSmrg STRIP=$ac_ct_STRIP 2396e83ac88aSmrg fi 2397e83ac88aSmrgelse 2398e83ac88aSmrg STRIP="$ac_cv_prog_STRIP" 2399e83ac88aSmrgfi 2400e83ac88aSmrg 2401ea6ae205Smrgfi 2402e83ac88aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2403ea6ae205Smrg 2404b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2405e83ac88aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2406ea6ae205Smrgif test -z "$MKDIR_P"; then 2407b6f2c9ccSmrg if ${ac_cv_path_mkdir+:} false; then : 2408e83ac88aSmrg $as_echo_n "(cached) " >&6 2409ea6ae205Smrgelse 2410ea6ae205Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411ea6ae205Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2412ea6ae205Smrgdo 2413ea6ae205Smrg IFS=$as_save_IFS 2414ea6ae205Smrg test -z "$as_dir" && as_dir=. 2415b6f2c9ccSmrg for ac_prog in mkdir gmkdir; do 2416ea6ae205Smrg for ac_exec_ext in '' $ac_executable_extensions; do 2417ea6ae205Smrg { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2418ea6ae205Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2419ea6ae205Smrg 'mkdir (GNU coreutils) '* | \ 2420ea6ae205Smrg 'mkdir (coreutils) '* | \ 2421ea6ae205Smrg 'mkdir (fileutils) '4.1*) 2422ea6ae205Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2423ea6ae205Smrg break 3;; 2424ea6ae205Smrg esac 2425ea6ae205Smrg done 2426ea6ae205Smrg done 2427b6f2c9ccSmrg done 2428ea6ae205SmrgIFS=$as_save_IFS 2429ea6ae205Smrg 2430ea6ae205Smrgfi 2431ea6ae205Smrg 2432b6f2c9ccSmrg test -d ./--version && rmdir ./--version 2433ea6ae205Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2434ea6ae205Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2435ea6ae205Smrg else 2436ea6ae205Smrg # As a last resort, use the slow shell script. Don't cache a 2437ea6ae205Smrg # value for MKDIR_P within a source directory, because that will 2438ea6ae205Smrg # break other packages using the cache if that directory is 2439ea6ae205Smrg # removed, or if the value is a relative name. 2440ea6ae205Smrg MKDIR_P="$ac_install_sh -d" 2441ea6ae205Smrg fi 2442ea6ae205Smrgfi 2443b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2444e83ac88aSmrg$as_echo "$MKDIR_P" >&6; } 2445ea6ae205Smrg 2446ea6ae205Smrgmkdir_p="$MKDIR_P" 2447ea6ae205Smrgcase $mkdir_p in 2448ea6ae205Smrg [\\/$]* | ?:[\\/]*) ;; 2449ea6ae205Smrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2450ea6ae205Smrgesac 2451ea6ae205Smrg 2452ea6ae205Smrgfor ac_prog in gawk mawk nawk awk 2453ea6ae205Smrgdo 2454ea6ae205Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2455ea6ae205Smrgset dummy $ac_prog; ac_word=$2 2456b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2457e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2458b6f2c9ccSmrgif ${ac_cv_prog_AWK+:} false; then : 2459e83ac88aSmrg $as_echo_n "(cached) " >&6 2460ea6ae205Smrgelse 2461ea6ae205Smrg if test -n "$AWK"; then 2462ea6ae205Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2463ea6ae205Smrgelse 2464ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2465ea6ae205Smrgfor as_dir in $PATH 2466ea6ae205Smrgdo 2467ea6ae205Smrg IFS=$as_save_IFS 2468ea6ae205Smrg test -z "$as_dir" && as_dir=. 2469b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2470ea6ae205Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2471ea6ae205Smrg ac_cv_prog_AWK="$ac_prog" 2472b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2473ea6ae205Smrg break 2 2474ea6ae205Smrg fi 2475ea6ae205Smrgdone 2476b6f2c9ccSmrg done 2477ea6ae205SmrgIFS=$as_save_IFS 2478ea6ae205Smrg 2479ea6ae205Smrgfi 2480ea6ae205Smrgfi 2481ea6ae205SmrgAWK=$ac_cv_prog_AWK 2482ea6ae205Smrgif test -n "$AWK"; then 2483b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2484e83ac88aSmrg$as_echo "$AWK" >&6; } 2485ea6ae205Smrgelse 2486b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2487e83ac88aSmrg$as_echo "no" >&6; } 2488ea6ae205Smrgfi 2489ea6ae205Smrg 2490ea6ae205Smrg 2491ea6ae205Smrg test -n "$AWK" && break 2492ea6ae205Smrgdone 2493ea6ae205Smrg 2494b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2495e83ac88aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2496e83ac88aSmrgset x ${MAKE-make} 2497e83ac88aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2498b6f2c9ccSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2499e83ac88aSmrg $as_echo_n "(cached) " >&6 2500ea6ae205Smrgelse 2501ea6ae205Smrg cat >conftest.make <<\_ACEOF 2502ea6ae205SmrgSHELL = /bin/sh 2503ea6ae205Smrgall: 2504ea6ae205Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2505ea6ae205Smrg_ACEOF 2506b6f2c9ccSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2507ea6ae205Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2508ea6ae205Smrg *@@@%%%=?*=@@@%%%*) 2509ea6ae205Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2510ea6ae205Smrg *) 2511ea6ae205Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2512ea6ae205Smrgesac 2513ea6ae205Smrgrm -f conftest.make 2514ea6ae205Smrgfi 2515ea6ae205Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2516b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2517e83ac88aSmrg$as_echo "yes" >&6; } 2518ea6ae205Smrg SET_MAKE= 2519ea6ae205Smrgelse 2520b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2521e83ac88aSmrg$as_echo "no" >&6; } 2522ea6ae205Smrg SET_MAKE="MAKE=${MAKE-make}" 2523ea6ae205Smrgfi 2524ea6ae205Smrg 2525ea6ae205Smrgrm -rf .tst 2>/dev/null 2526ea6ae205Smrgmkdir .tst 2>/dev/null 2527ea6ae205Smrgif test -d .tst; then 2528ea6ae205Smrg am__leading_dot=. 2529ea6ae205Smrgelse 2530ea6ae205Smrg am__leading_dot=_ 2531ea6ae205Smrgfi 2532ea6ae205Smrgrmdir .tst 2>/dev/null 2533ea6ae205Smrg 2534ea6ae205Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2535ea6ae205Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2536ea6ae205Smrg # is not polluted with repeated "-I." 2537ea6ae205Smrg am__isrc=' -I$(srcdir)' 2538ea6ae205Smrg # test to see if srcdir already configured 2539ea6ae205Smrg if test -f $srcdir/config.status; then 2540b6f2c9ccSmrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2541ea6ae205Smrg fi 2542ea6ae205Smrgfi 2543ea6ae205Smrg 2544ea6ae205Smrg# test whether we have cygpath 2545ea6ae205Smrgif test -z "$CYGPATH_W"; then 2546ea6ae205Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 2547ea6ae205Smrg CYGPATH_W='cygpath -w' 2548ea6ae205Smrg else 2549ea6ae205Smrg CYGPATH_W=echo 2550ea6ae205Smrg fi 2551ea6ae205Smrgfi 2552ea6ae205Smrg 2553ea6ae205Smrg 2554ea6ae205Smrg# Define the identity of the package. 2555ea6ae205Smrg PACKAGE='mkfontscale' 2556245f6787Smrg VERSION='1.0.9' 2557ea6ae205Smrg 2558ea6ae205Smrg 2559ea6ae205Smrgcat >>confdefs.h <<_ACEOF 2560ea6ae205Smrg#define PACKAGE "$PACKAGE" 2561ea6ae205Smrg_ACEOF 2562ea6ae205Smrg 2563ea6ae205Smrg 2564ea6ae205Smrgcat >>confdefs.h <<_ACEOF 2565ea6ae205Smrg#define VERSION "$VERSION" 2566ea6ae205Smrg_ACEOF 2567ea6ae205Smrg 2568ea6ae205Smrg# Some tools Automake needs. 2569ea6ae205Smrg 2570ea6ae205SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2571ea6ae205Smrg 2572ea6ae205Smrg 2573ea6ae205SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2574ea6ae205Smrg 2575ea6ae205Smrg 2576ea6ae205SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2577ea6ae205Smrg 2578ea6ae205Smrg 2579ea6ae205SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2580ea6ae205Smrg 2581ea6ae205Smrg 2582ea6ae205SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2583ea6ae205Smrg 2584ea6ae205Smrg# We need awk for the "check" target. The system "awk" is bad on 2585ea6ae205Smrg# some platforms. 2586ea6ae205Smrg# Always define AMTAR for backward compatibility. 2587ea6ae205Smrg 2588ea6ae205SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 2589ea6ae205Smrg 2590ea6ae205Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2591ea6ae205Smrg 2592ea6ae205Smrg 2593ea6ae205Smrg 2594ea6ae205Smrg 2595ea6ae205Smrg 2596e83ac88aSmrg 2597b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2598e83ac88aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2599ea6ae205Smrg # Check whether --enable-maintainer-mode was given. 2600b6f2c9ccSmrgif test "${enable_maintainer_mode+set}" = set; then : 2601ea6ae205Smrg enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2602ea6ae205Smrgelse 2603ea6ae205Smrg USE_MAINTAINER_MODE=no 2604ea6ae205Smrgfi 2605ea6ae205Smrg 2606b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2607e83ac88aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; } 2608ea6ae205Smrg if test $USE_MAINTAINER_MODE = yes; then 2609ea6ae205Smrg MAINTAINER_MODE_TRUE= 2610ea6ae205Smrg MAINTAINER_MODE_FALSE='#' 2611ea6ae205Smrgelse 2612ea6ae205Smrg MAINTAINER_MODE_TRUE='#' 2613ea6ae205Smrg MAINTAINER_MODE_FALSE= 2614ea6ae205Smrgfi 2615ea6ae205Smrg 2616ea6ae205Smrg MAINT=$MAINTAINER_MODE_TRUE 2617ea6ae205Smrg 2618ea6ae205Smrg 2619ea6ae205Smrg 2620b6f2c9ccSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2621b6f2c9ccSmrg 2622b6f2c9ccSmrg 2623b6f2c9ccSmrg 2624b6f2c9ccSmrg 2625b6f2c9ccSmrg 2626b6f2c9ccSmrg 2627e83ac88aSmrg 2628e83ac88aSmrg 2629e83ac88aSmrg 2630e83ac88aSmrg 2631e83ac88aSmrg 2632b6f2c9ccSmrgDEPDIR="${am__leading_dot}deps" 2633b6f2c9ccSmrg 2634b6f2c9ccSmrgac_config_commands="$ac_config_commands depfiles" 2635b6f2c9ccSmrg 2636e83ac88aSmrg 2637b6f2c9ccSmrgam_make=${MAKE-make} 2638b6f2c9ccSmrgcat > confinc << 'END' 2639b6f2c9ccSmrgam__doit: 2640b6f2c9ccSmrg @echo this is the am__doit target 2641b6f2c9ccSmrg.PHONY: am__doit 2642b6f2c9ccSmrgEND 2643b6f2c9ccSmrg# If we don't find an include directive, just comment out the code. 2644b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2645b6f2c9ccSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; } 2646b6f2c9ccSmrgam__include="#" 2647b6f2c9ccSmrgam__quote= 2648b6f2c9ccSmrg_am_result=none 2649b6f2c9ccSmrg# First try GNU make style include. 2650b6f2c9ccSmrgecho "include confinc" > confmf 2651b6f2c9ccSmrg# Ignore all kinds of additional output from `make'. 2652b6f2c9ccSmrgcase `$am_make -s -f confmf 2> /dev/null` in #( 2653b6f2c9ccSmrg*the\ am__doit\ target*) 2654b6f2c9ccSmrg am__include=include 2655b6f2c9ccSmrg am__quote= 2656b6f2c9ccSmrg _am_result=GNU 2657b6f2c9ccSmrg ;; 2658b6f2c9ccSmrgesac 2659b6f2c9ccSmrg# Now try BSD make style include. 2660b6f2c9ccSmrgif test "$am__include" = "#"; then 2661b6f2c9ccSmrg echo '.include "confinc"' > confmf 2662b6f2c9ccSmrg case `$am_make -s -f confmf 2> /dev/null` in #( 2663b6f2c9ccSmrg *the\ am__doit\ target*) 2664b6f2c9ccSmrg am__include=.include 2665b6f2c9ccSmrg am__quote="\"" 2666b6f2c9ccSmrg _am_result=BSD 2667b6f2c9ccSmrg ;; 2668b6f2c9ccSmrg esac 2669b6f2c9ccSmrgfi 2670e83ac88aSmrg 2671e83ac88aSmrg 2672b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2673b6f2c9ccSmrg$as_echo "$_am_result" >&6; } 2674b6f2c9ccSmrgrm -f confinc confmf 26757978d3cdSmrg 2676b6f2c9ccSmrg# Check whether --enable-dependency-tracking was given. 2677b6f2c9ccSmrgif test "${enable_dependency_tracking+set}" = set; then : 2678b6f2c9ccSmrg enableval=$enable_dependency_tracking; 2679b6f2c9ccSmrgfi 26807978d3cdSmrg 2681b6f2c9ccSmrgif test "x$enable_dependency_tracking" != xno; then 2682b6f2c9ccSmrg am_depcomp="$ac_aux_dir/depcomp" 2683b6f2c9ccSmrg AMDEPBACKSLASH='\' 2684b6f2c9ccSmrgfi 2685b6f2c9ccSmrg if test "x$enable_dependency_tracking" != xno; then 2686b6f2c9ccSmrg AMDEP_TRUE= 2687b6f2c9ccSmrg AMDEP_FALSE='#' 2688b6f2c9ccSmrgelse 2689b6f2c9ccSmrg AMDEP_TRUE='#' 2690b6f2c9ccSmrg AMDEP_FALSE= 2691b6f2c9ccSmrgfi 26927978d3cdSmrg 26937978d3cdSmrg 2694ea6ae205Smrgac_ext=c 2695ea6ae205Smrgac_cpp='$CPP $CPPFLAGS' 2696ea6ae205Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2697ea6ae205Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2698ea6ae205Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 2699ea6ae205Smrgif test -n "$ac_tool_prefix"; then 2700ea6ae205Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2701ea6ae205Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 2702b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2703e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2704b6f2c9ccSmrgif ${ac_cv_prog_CC+:} false; then : 2705e83ac88aSmrg $as_echo_n "(cached) " >&6 2706ea6ae205Smrgelse 2707ea6ae205Smrg if test -n "$CC"; then 2708ea6ae205Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2709ea6ae205Smrgelse 2710ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711ea6ae205Smrgfor as_dir in $PATH 2712ea6ae205Smrgdo 2713ea6ae205Smrg IFS=$as_save_IFS 2714ea6ae205Smrg test -z "$as_dir" && as_dir=. 2715b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2716ea6ae205Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2717ea6ae205Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 2718b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2719ea6ae205Smrg break 2 2720ea6ae205Smrg fi 2721ea6ae205Smrgdone 2722b6f2c9ccSmrg done 2723ea6ae205SmrgIFS=$as_save_IFS 2724ea6ae205Smrg 2725ea6ae205Smrgfi 2726ea6ae205Smrgfi 2727ea6ae205SmrgCC=$ac_cv_prog_CC 2728ea6ae205Smrgif test -n "$CC"; then 2729b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2730e83ac88aSmrg$as_echo "$CC" >&6; } 2731ea6ae205Smrgelse 2732b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733e83ac88aSmrg$as_echo "no" >&6; } 2734ea6ae205Smrgfi 2735ea6ae205Smrg 2736ea6ae205Smrg 2737ea6ae205Smrgfi 2738ea6ae205Smrgif test -z "$ac_cv_prog_CC"; then 2739ea6ae205Smrg ac_ct_CC=$CC 2740ea6ae205Smrg # Extract the first word of "gcc", so it can be a program name with args. 2741ea6ae205Smrgset dummy gcc; ac_word=$2 2742b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2743e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2744b6f2c9ccSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2745e83ac88aSmrg $as_echo_n "(cached) " >&6 2746ea6ae205Smrgelse 2747ea6ae205Smrg if test -n "$ac_ct_CC"; then 2748ea6ae205Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2749ea6ae205Smrgelse 2750ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2751ea6ae205Smrgfor as_dir in $PATH 2752ea6ae205Smrgdo 2753ea6ae205Smrg IFS=$as_save_IFS 2754ea6ae205Smrg test -z "$as_dir" && as_dir=. 2755b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2756ea6ae205Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2757ea6ae205Smrg ac_cv_prog_ac_ct_CC="gcc" 2758b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2759ea6ae205Smrg break 2 2760ea6ae205Smrg fi 2761ea6ae205Smrgdone 2762b6f2c9ccSmrg done 2763ea6ae205SmrgIFS=$as_save_IFS 2764ea6ae205Smrg 2765ea6ae205Smrgfi 2766ea6ae205Smrgfi 2767ea6ae205Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2768ea6ae205Smrgif test -n "$ac_ct_CC"; then 2769b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2770e83ac88aSmrg$as_echo "$ac_ct_CC" >&6; } 2771ea6ae205Smrgelse 2772b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2773e83ac88aSmrg$as_echo "no" >&6; } 2774ea6ae205Smrgfi 2775ea6ae205Smrg 2776ea6ae205Smrg if test "x$ac_ct_CC" = x; then 2777ea6ae205Smrg CC="" 2778ea6ae205Smrg else 2779ea6ae205Smrg case $cross_compiling:$ac_tool_warned in 2780ea6ae205Smrgyes:) 2781b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2782e83ac88aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2783ea6ae205Smrgac_tool_warned=yes ;; 2784ea6ae205Smrgesac 2785ea6ae205Smrg CC=$ac_ct_CC 2786ea6ae205Smrg fi 2787ea6ae205Smrgelse 2788ea6ae205Smrg CC="$ac_cv_prog_CC" 2789ea6ae205Smrgfi 2790ea6ae205Smrg 2791ea6ae205Smrgif test -z "$CC"; then 2792ea6ae205Smrg if test -n "$ac_tool_prefix"; then 2793ea6ae205Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2794ea6ae205Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 2795b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2797b6f2c9ccSmrgif ${ac_cv_prog_CC+:} false; then : 2798e83ac88aSmrg $as_echo_n "(cached) " >&6 2799ea6ae205Smrgelse 2800ea6ae205Smrg if test -n "$CC"; then 2801ea6ae205Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2802ea6ae205Smrgelse 2803ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2804ea6ae205Smrgfor as_dir in $PATH 2805ea6ae205Smrgdo 2806ea6ae205Smrg IFS=$as_save_IFS 2807ea6ae205Smrg test -z "$as_dir" && as_dir=. 2808b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2809ea6ae205Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2810ea6ae205Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 2811b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2812ea6ae205Smrg break 2 2813ea6ae205Smrg fi 2814ea6ae205Smrgdone 2815b6f2c9ccSmrg done 2816ea6ae205SmrgIFS=$as_save_IFS 2817ea6ae205Smrg 2818ea6ae205Smrgfi 2819ea6ae205Smrgfi 2820ea6ae205SmrgCC=$ac_cv_prog_CC 2821ea6ae205Smrgif test -n "$CC"; then 2822b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2823e83ac88aSmrg$as_echo "$CC" >&6; } 2824ea6ae205Smrgelse 2825b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826e83ac88aSmrg$as_echo "no" >&6; } 2827ea6ae205Smrgfi 2828ea6ae205Smrg 2829ea6ae205Smrg 2830ea6ae205Smrg fi 2831ea6ae205Smrgfi 2832ea6ae205Smrgif test -z "$CC"; then 2833ea6ae205Smrg # Extract the first word of "cc", so it can be a program name with args. 2834ea6ae205Smrgset dummy cc; ac_word=$2 2835b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2837b6f2c9ccSmrgif ${ac_cv_prog_CC+:} false; then : 2838e83ac88aSmrg $as_echo_n "(cached) " >&6 2839ea6ae205Smrgelse 2840ea6ae205Smrg if test -n "$CC"; then 2841ea6ae205Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2842ea6ae205Smrgelse 2843ea6ae205Smrg ac_prog_rejected=no 2844ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845ea6ae205Smrgfor as_dir in $PATH 2846ea6ae205Smrgdo 2847ea6ae205Smrg IFS=$as_save_IFS 2848ea6ae205Smrg test -z "$as_dir" && as_dir=. 2849b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2850ea6ae205Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851ea6ae205Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2852ea6ae205Smrg ac_prog_rejected=yes 2853ea6ae205Smrg continue 2854ea6ae205Smrg fi 2855ea6ae205Smrg ac_cv_prog_CC="cc" 2856b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2857ea6ae205Smrg break 2 2858ea6ae205Smrg fi 2859ea6ae205Smrgdone 2860b6f2c9ccSmrg done 2861ea6ae205SmrgIFS=$as_save_IFS 2862ea6ae205Smrg 2863ea6ae205Smrgif test $ac_prog_rejected = yes; then 2864ea6ae205Smrg # We found a bogon in the path, so make sure we never use it. 2865ea6ae205Smrg set dummy $ac_cv_prog_CC 2866ea6ae205Smrg shift 2867ea6ae205Smrg if test $# != 0; then 2868ea6ae205Smrg # We chose a different compiler from the bogus one. 2869ea6ae205Smrg # However, it has the same basename, so the bogon will be chosen 2870ea6ae205Smrg # first if we set CC to just the basename; use the full file name. 2871ea6ae205Smrg shift 2872ea6ae205Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2873ea6ae205Smrg fi 2874ea6ae205Smrgfi 2875ea6ae205Smrgfi 2876ea6ae205Smrgfi 2877ea6ae205SmrgCC=$ac_cv_prog_CC 2878ea6ae205Smrgif test -n "$CC"; then 2879b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2880e83ac88aSmrg$as_echo "$CC" >&6; } 2881ea6ae205Smrgelse 2882b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2883e83ac88aSmrg$as_echo "no" >&6; } 2884ea6ae205Smrgfi 2885ea6ae205Smrg 2886ea6ae205Smrg 2887ea6ae205Smrgfi 2888ea6ae205Smrgif test -z "$CC"; then 2889ea6ae205Smrg if test -n "$ac_tool_prefix"; then 2890ea6ae205Smrg for ac_prog in cl.exe 2891ea6ae205Smrg do 2892ea6ae205Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2893ea6ae205Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2894b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2896b6f2c9ccSmrgif ${ac_cv_prog_CC+:} false; then : 2897e83ac88aSmrg $as_echo_n "(cached) " >&6 2898ea6ae205Smrgelse 2899ea6ae205Smrg if test -n "$CC"; then 2900ea6ae205Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 2901ea6ae205Smrgelse 2902ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903ea6ae205Smrgfor as_dir in $PATH 2904ea6ae205Smrgdo 2905ea6ae205Smrg IFS=$as_save_IFS 2906ea6ae205Smrg test -z "$as_dir" && as_dir=. 2907b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2908ea6ae205Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2909ea6ae205Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2910b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2911ea6ae205Smrg break 2 2912ea6ae205Smrg fi 2913ea6ae205Smrgdone 2914b6f2c9ccSmrg done 2915ea6ae205SmrgIFS=$as_save_IFS 2916ea6ae205Smrg 2917ea6ae205Smrgfi 2918ea6ae205Smrgfi 2919ea6ae205SmrgCC=$ac_cv_prog_CC 2920ea6ae205Smrgif test -n "$CC"; then 2921b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2922e83ac88aSmrg$as_echo "$CC" >&6; } 2923ea6ae205Smrgelse 2924b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2925e83ac88aSmrg$as_echo "no" >&6; } 2926ea6ae205Smrgfi 2927ea6ae205Smrg 2928ea6ae205Smrg 2929ea6ae205Smrg test -n "$CC" && break 2930ea6ae205Smrg done 2931ea6ae205Smrgfi 2932ea6ae205Smrgif test -z "$CC"; then 2933ea6ae205Smrg ac_ct_CC=$CC 2934ea6ae205Smrg for ac_prog in cl.exe 2935ea6ae205Smrgdo 2936ea6ae205Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2937ea6ae205Smrgset dummy $ac_prog; ac_word=$2 2938b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939e83ac88aSmrg$as_echo_n "checking for $ac_word... " >&6; } 2940b6f2c9ccSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then : 2941e83ac88aSmrg $as_echo_n "(cached) " >&6 2942ea6ae205Smrgelse 2943ea6ae205Smrg if test -n "$ac_ct_CC"; then 2944ea6ae205Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2945ea6ae205Smrgelse 2946ea6ae205Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947ea6ae205Smrgfor as_dir in $PATH 2948ea6ae205Smrgdo 2949ea6ae205Smrg IFS=$as_save_IFS 2950ea6ae205Smrg test -z "$as_dir" && as_dir=. 2951b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 2952ea6ae205Smrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953ea6ae205Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 2954b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955ea6ae205Smrg break 2 2956ea6ae205Smrg fi 2957ea6ae205Smrgdone 2958b6f2c9ccSmrg done 2959ea6ae205SmrgIFS=$as_save_IFS 2960ea6ae205Smrg 2961ea6ae205Smrgfi 2962ea6ae205Smrgfi 2963ea6ae205Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 2964ea6ae205Smrgif test -n "$ac_ct_CC"; then 2965b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2966e83ac88aSmrg$as_echo "$ac_ct_CC" >&6; } 2967ea6ae205Smrgelse 2968b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969e83ac88aSmrg$as_echo "no" >&6; } 2970ea6ae205Smrgfi 2971ea6ae205Smrg 2972ea6ae205Smrg 2973ea6ae205Smrg test -n "$ac_ct_CC" && break 2974ea6ae205Smrgdone 2975ea6ae205Smrg 2976ea6ae205Smrg if test "x$ac_ct_CC" = x; then 2977ea6ae205Smrg CC="" 2978ea6ae205Smrg else 2979ea6ae205Smrg case $cross_compiling:$ac_tool_warned in 2980ea6ae205Smrgyes:) 2981b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2982e83ac88aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2983ea6ae205Smrgac_tool_warned=yes ;; 2984ea6ae205Smrgesac 2985ea6ae205Smrg CC=$ac_ct_CC 2986ea6ae205Smrg fi 2987ea6ae205Smrgfi 2988ea6ae205Smrg 2989ea6ae205Smrgfi 2990ea6ae205Smrg 2991ea6ae205Smrg 2992b6f2c9ccSmrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2993e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2994b6f2c9ccSmrgas_fn_error $? "no acceptable C compiler found in \$PATH 2995b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 2996ea6ae205Smrg 2997ea6ae205Smrg# Provide some information about the compiler. 2998b6f2c9ccSmrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2999e83ac88aSmrgset X $ac_compile 3000e83ac88aSmrgac_compiler=$2 3001b6f2c9ccSmrgfor ac_option in --version -v -V -qversion; do 3002b6f2c9ccSmrg { { ac_try="$ac_compiler $ac_option >&5" 3003ea6ae205Smrgcase "(($ac_try" in 3004ea6ae205Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005ea6ae205Smrg *) ac_try_echo=$ac_try;; 3006ea6ae205Smrgesac 3007b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3008b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 3009b6f2c9ccSmrg (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3010ea6ae205Smrg ac_status=$? 3011b6f2c9ccSmrg if test -s conftest.err; then 3012b6f2c9ccSmrg sed '10a\ 3013b6f2c9ccSmrg... rest of stderr output deleted ... 3014b6f2c9ccSmrg 10q' conftest.err >conftest.er1 3015b6f2c9ccSmrg cat conftest.er1 >&5 3016b6f2c9ccSmrg fi 3017b6f2c9ccSmrg rm -f conftest.er1 conftest.err 3018b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3019b6f2c9ccSmrg test $ac_status = 0; } 3020b6f2c9ccSmrgdone 3021ea6ae205Smrg 3022b6f2c9ccSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3023ea6ae205Smrg/* end confdefs.h. */ 3024ea6ae205Smrg 3025ea6ae205Smrgint 3026ea6ae205Smrgmain () 3027ea6ae205Smrg{ 3028ea6ae205Smrg 3029ea6ae205Smrg ; 3030ea6ae205Smrg return 0; 3031ea6ae205Smrg} 3032ea6ae205Smrg_ACEOF 3033ea6ae205Smrgac_clean_files_save=$ac_clean_files 3034e83ac88aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3035ea6ae205Smrg# Try to create an executable without -o first, disregard a.out. 3036ea6ae205Smrg# It will help us diagnose broken compilers, and finding out an intuition 3037ea6ae205Smrg# of exeext. 3038b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3039b6f2c9ccSmrg$as_echo_n "checking whether the C compiler works... " >&6; } 3040e83ac88aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3041e83ac88aSmrg 3042e83ac88aSmrg# The possible output files: 3043e83ac88aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3044e83ac88aSmrg 3045ea6ae205Smrgac_rmfiles= 3046ea6ae205Smrgfor ac_file in $ac_files 3047ea6ae205Smrgdo 3048ea6ae205Smrg case $ac_file in 3049e83ac88aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3050ea6ae205Smrg * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3051ea6ae205Smrg esac 3052ea6ae205Smrgdone 3053ea6ae205Smrgrm -f $ac_rmfiles 3054ea6ae205Smrg 3055b6f2c9ccSmrgif { { ac_try="$ac_link_default" 3056ea6ae205Smrgcase "(($ac_try" in 3057ea6ae205Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058ea6ae205Smrg *) ac_try_echo=$ac_try;; 3059ea6ae205Smrgesac 3060b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3061b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 3062ea6ae205Smrg (eval "$ac_link_default") 2>&5 3063ea6ae205Smrg ac_status=$? 3064b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065b6f2c9ccSmrg test $ac_status = 0; }; then : 3066ea6ae205Smrg # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3067ea6ae205Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3068ea6ae205Smrg# in a Makefile. We should not override ac_cv_exeext if it was cached, 3069ea6ae205Smrg# so that the user can short-circuit this test for compilers unknown to 3070ea6ae205Smrg# Autoconf. 3071ea6ae205Smrgfor ac_file in $ac_files '' 3072ea6ae205Smrgdo 3073ea6ae205Smrg test -f "$ac_file" || continue 3074ea6ae205Smrg case $ac_file in 3075e83ac88aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3076ea6ae205Smrg ;; 3077ea6ae205Smrg [ab].out ) 3078ea6ae205Smrg # We found the default executable, but exeext='' is most 3079ea6ae205Smrg # certainly right. 3080ea6ae205Smrg break;; 3081ea6ae205Smrg *.* ) 3082b6f2c9ccSmrg if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3083ea6ae205Smrg then :; else 3084ea6ae205Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3085ea6ae205Smrg fi 3086ea6ae205Smrg # We set ac_cv_exeext here because the later test for it is not 3087ea6ae205Smrg # safe: cross compilers may not add the suffix if given an `-o' 3088ea6ae205Smrg # argument, so we may need to know it at that point already. 3089ea6ae205Smrg # Even if this section looks crufty: it has the advantage of 3090ea6ae205Smrg # actually working. 3091ea6ae205Smrg break;; 3092ea6ae205Smrg * ) 3093ea6ae205Smrg break;; 3094ea6ae205Smrg esac 3095ea6ae205Smrgdone 3096ea6ae205Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext= 3097ea6ae205Smrg 3098ea6ae205Smrgelse 3099ea6ae205Smrg ac_file='' 3100ea6ae205Smrgfi 3101b6f2c9ccSmrgif test -z "$ac_file"; then : 3102b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3103b6f2c9ccSmrg$as_echo "no" >&6; } 3104b6f2c9ccSmrg$as_echo "$as_me: failed program was:" >&5 3105ea6ae205Smrgsed 's/^/| /' conftest.$ac_ext >&5 3106ea6ae205Smrg 3107b6f2c9ccSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3108e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109b6f2c9ccSmrgas_fn_error 77 "C compiler cannot create executables 3110b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 3111b6f2c9ccSmrgelse 3112b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3113b6f2c9ccSmrg$as_echo "yes" >&6; } 3114ea6ae205Smrgfi 3115b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3116b6f2c9ccSmrg$as_echo_n "checking for C compiler default output file name... " >&6; } 3117b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3118b6f2c9ccSmrg$as_echo "$ac_file" >&6; } 3119ea6ae205Smrgac_exeext=$ac_cv_exeext 3120ea6ae205Smrg 3121e83ac88aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3122ea6ae205Smrgac_clean_files=$ac_clean_files_save 3123b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3124e83ac88aSmrg$as_echo_n "checking for suffix of executables... " >&6; } 3125b6f2c9ccSmrgif { { ac_try="$ac_link" 3126ea6ae205Smrgcase "(($ac_try" in 3127ea6ae205Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128ea6ae205Smrg *) ac_try_echo=$ac_try;; 3129ea6ae205Smrgesac 3130b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3131b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 3132ea6ae205Smrg (eval "$ac_link") 2>&5 3133ea6ae205Smrg ac_status=$? 3134b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3135b6f2c9ccSmrg test $ac_status = 0; }; then : 3136ea6ae205Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 3137ea6ae205Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3138ea6ae205Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 3139ea6ae205Smrg# `rm'. 3140ea6ae205Smrgfor ac_file in conftest.exe conftest conftest.*; do 3141ea6ae205Smrg test -f "$ac_file" || continue 3142ea6ae205Smrg case $ac_file in 3143e83ac88aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3144ea6ae205Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3145ea6ae205Smrg break;; 3146ea6ae205Smrg * ) break;; 3147ea6ae205Smrg esac 3148ea6ae205Smrgdone 3149ea6ae205Smrgelse 3150b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3151e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3152b6f2c9ccSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link 3153b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 3154ea6ae205Smrgfi 3155b6f2c9ccSmrgrm -f conftest conftest$ac_cv_exeext 3156b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3157e83ac88aSmrg$as_echo "$ac_cv_exeext" >&6; } 3158ea6ae205Smrg 3159ea6ae205Smrgrm -f conftest.$ac_ext 3160ea6ae205SmrgEXEEXT=$ac_cv_exeext 3161ea6ae205Smrgac_exeext=$EXEEXT 3162b6f2c9ccSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3163b6f2c9ccSmrg/* end confdefs.h. */ 3164b6f2c9ccSmrg#include <stdio.h> 3165b6f2c9ccSmrgint 3166b6f2c9ccSmrgmain () 3167b6f2c9ccSmrg{ 3168b6f2c9ccSmrgFILE *f = fopen ("conftest.out", "w"); 3169b6f2c9ccSmrg return ferror (f) || fclose (f) != 0; 3170b6f2c9ccSmrg 3171b6f2c9ccSmrg ; 3172b6f2c9ccSmrg return 0; 3173b6f2c9ccSmrg} 3174b6f2c9ccSmrg_ACEOF 3175b6f2c9ccSmrgac_clean_files="$ac_clean_files conftest.out" 3176b6f2c9ccSmrg# Check that the compiler produces executables we can run. If not, either 3177b6f2c9ccSmrg# the compiler is broken, or we cross compile. 3178b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3179b6f2c9ccSmrg$as_echo_n "checking whether we are cross compiling... " >&6; } 3180b6f2c9ccSmrgif test "$cross_compiling" != yes; then 3181b6f2c9ccSmrg { { ac_try="$ac_link" 3182b6f2c9ccSmrgcase "(($ac_try" in 3183b6f2c9ccSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184b6f2c9ccSmrg *) ac_try_echo=$ac_try;; 3185b6f2c9ccSmrgesac 3186b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3187b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 3188b6f2c9ccSmrg (eval "$ac_link") 2>&5 3189b6f2c9ccSmrg ac_status=$? 3190b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3191b6f2c9ccSmrg test $ac_status = 0; } 3192b6f2c9ccSmrg if { ac_try='./conftest$ac_cv_exeext' 3193b6f2c9ccSmrg { { case "(($ac_try" in 3194b6f2c9ccSmrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195b6f2c9ccSmrg *) ac_try_echo=$ac_try;; 3196b6f2c9ccSmrgesac 3197b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3198b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 3199b6f2c9ccSmrg (eval "$ac_try") 2>&5 3200b6f2c9ccSmrg ac_status=$? 3201b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3202b6f2c9ccSmrg test $ac_status = 0; }; }; then 3203b6f2c9ccSmrg cross_compiling=no 3204b6f2c9ccSmrg else 3205b6f2c9ccSmrg if test "$cross_compiling" = maybe; then 3206b6f2c9ccSmrg cross_compiling=yes 3207b6f2c9ccSmrg else 3208b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209b6f2c9ccSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210b6f2c9ccSmrgas_fn_error $? "cannot run C compiled programs. 3211b6f2c9ccSmrgIf you meant to cross compile, use \`--host'. 3212b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 3213b6f2c9ccSmrg fi 3214b6f2c9ccSmrg fi 3215b6f2c9ccSmrgfi 3216b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3217b6f2c9ccSmrg$as_echo "$cross_compiling" >&6; } 3218b6f2c9ccSmrg 3219b6f2c9ccSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3220b6f2c9ccSmrgac_clean_files=$ac_clean_files_save 3221b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3222e83ac88aSmrg$as_echo_n "checking for suffix of object files... " >&6; } 3223b6f2c9ccSmrgif ${ac_cv_objext+:} false; then : 3224e83ac88aSmrg $as_echo_n "(cached) " >&6 3225ea6ae205Smrgelse 3226b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3227ea6ae205Smrg/* end confdefs.h. */ 3228ea6ae205Smrg 3229ea6ae205Smrgint 3230ea6ae205Smrgmain () 3231ea6ae205Smrg{ 3232ea6ae205Smrg 3233ea6ae205Smrg ; 3234ea6ae205Smrg return 0; 3235ea6ae205Smrg} 3236ea6ae205Smrg_ACEOF 3237ea6ae205Smrgrm -f conftest.o conftest.obj 3238b6f2c9ccSmrgif { { ac_try="$ac_compile" 3239ea6ae205Smrgcase "(($ac_try" in 3240ea6ae205Smrg *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3241ea6ae205Smrg *) ac_try_echo=$ac_try;; 3242ea6ae205Smrgesac 3243b6f2c9ccSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3244b6f2c9ccSmrg$as_echo "$ac_try_echo"; } >&5 3245ea6ae205Smrg (eval "$ac_compile") 2>&5 3246ea6ae205Smrg ac_status=$? 3247b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3248b6f2c9ccSmrg test $ac_status = 0; }; then : 3249ea6ae205Smrg for ac_file in conftest.o conftest.obj conftest.*; do 3250ea6ae205Smrg test -f "$ac_file" || continue; 3251ea6ae205Smrg case $ac_file in 3252e83ac88aSmrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3253ea6ae205Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3254ea6ae205Smrg break;; 3255ea6ae205Smrg esac 3256ea6ae205Smrgdone 3257ea6ae205Smrgelse 3258e83ac88aSmrg $as_echo "$as_me: failed program was:" >&5 3259ea6ae205Smrgsed 's/^/| /' conftest.$ac_ext >&5 3260ea6ae205Smrg 3261b6f2c9ccSmrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3262e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3263b6f2c9ccSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile 3264b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 3265ea6ae205Smrgfi 3266ea6ae205Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 3267ea6ae205Smrgfi 3268b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3269e83ac88aSmrg$as_echo "$ac_cv_objext" >&6; } 3270ea6ae205SmrgOBJEXT=$ac_cv_objext 3271ea6ae205Smrgac_objext=$OBJEXT 3272b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3273e83ac88aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3274b6f2c9ccSmrgif ${ac_cv_c_compiler_gnu+:} false; then : 3275e83ac88aSmrg $as_echo_n "(cached) " >&6 3276ea6ae205Smrgelse 3277b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278ea6ae205Smrg/* end confdefs.h. */ 3279ea6ae205Smrg 3280ea6ae205Smrgint 3281ea6ae205Smrgmain () 3282ea6ae205Smrg{ 3283ea6ae205Smrg#ifndef __GNUC__ 3284ea6ae205Smrg choke me 3285ea6ae205Smrg#endif 3286ea6ae205Smrg 3287ea6ae205Smrg ; 3288ea6ae205Smrg return 0; 3289ea6ae205Smrg} 3290ea6ae205Smrg_ACEOF 3291b6f2c9ccSmrgif ac_fn_c_try_compile "$LINENO"; then : 3292ea6ae205Smrg ac_compiler_gnu=yes 3293ea6ae205Smrgelse 3294b6f2c9ccSmrg ac_compiler_gnu=no 3295ea6ae205Smrgfi 3296ea6ae205Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3297ea6ae205Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 3298ea6ae205Smrg 3299ea6ae205Smrgfi 3300b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3301e83ac88aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3302e83ac88aSmrgif test $ac_compiler_gnu = yes; then 3303e83ac88aSmrg GCC=yes 3304e83ac88aSmrgelse 3305e83ac88aSmrg GCC= 3306e83ac88aSmrgfi 3307ea6ae205Smrgac_test_CFLAGS=${CFLAGS+set} 3308ea6ae205Smrgac_save_CFLAGS=$CFLAGS 3309b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3310e83ac88aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; } 3311b6f2c9ccSmrgif ${ac_cv_prog_cc_g+:} false; then : 3312e83ac88aSmrg $as_echo_n "(cached) " >&6 3313ea6ae205Smrgelse 3314ea6ae205Smrg ac_save_c_werror_flag=$ac_c_werror_flag 3315ea6ae205Smrg ac_c_werror_flag=yes 3316ea6ae205Smrg ac_cv_prog_cc_g=no 3317ea6ae205Smrg CFLAGS="-g" 3318b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3319ea6ae205Smrg/* end confdefs.h. */ 3320ea6ae205Smrg 3321ea6ae205Smrgint 3322ea6ae205Smrgmain () 3323ea6ae205Smrg{ 3324ea6ae205Smrg 3325ea6ae205Smrg ; 3326ea6ae205Smrg return 0; 3327ea6ae205Smrg} 3328ea6ae205Smrg_ACEOF 3329b6f2c9ccSmrgif ac_fn_c_try_compile "$LINENO"; then : 3330ea6ae205Smrg ac_cv_prog_cc_g=yes 3331ea6ae205Smrgelse 3332b6f2c9ccSmrg CFLAGS="" 3333b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3334ea6ae205Smrg/* end confdefs.h. */ 3335ea6ae205Smrg 3336ea6ae205Smrgint 3337ea6ae205Smrgmain () 3338ea6ae205Smrg{ 3339ea6ae205Smrg 3340ea6ae205Smrg ; 3341ea6ae205Smrg return 0; 3342ea6ae205Smrg} 3343ea6ae205Smrg_ACEOF 3344b6f2c9ccSmrgif ac_fn_c_try_compile "$LINENO"; then : 3345ea6ae205Smrg 3346b6f2c9ccSmrgelse 3347b6f2c9ccSmrg ac_c_werror_flag=$ac_save_c_werror_flag 3348ea6ae205Smrg CFLAGS="-g" 3349b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3350ea6ae205Smrg/* end confdefs.h. */ 3351ea6ae205Smrg 3352ea6ae205Smrgint 3353ea6ae205Smrgmain () 3354ea6ae205Smrg{ 3355ea6ae205Smrg 3356ea6ae205Smrg ; 3357ea6ae205Smrg return 0; 3358ea6ae205Smrg} 3359ea6ae205Smrg_ACEOF 3360b6f2c9ccSmrgif ac_fn_c_try_compile "$LINENO"; then : 3361ea6ae205Smrg ac_cv_prog_cc_g=yes 3362ea6ae205Smrgfi 3363ea6ae205Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3364ea6ae205Smrgfi 3365ea6ae205Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3366ea6ae205Smrgfi 3367ea6ae205Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3368ea6ae205Smrg ac_c_werror_flag=$ac_save_c_werror_flag 3369ea6ae205Smrgfi 3370b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3371e83ac88aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; } 3372ea6ae205Smrgif test "$ac_test_CFLAGS" = set; then 3373ea6ae205Smrg CFLAGS=$ac_save_CFLAGS 3374ea6ae205Smrgelif test $ac_cv_prog_cc_g = yes; then 3375ea6ae205Smrg if test "$GCC" = yes; then 3376ea6ae205Smrg CFLAGS="-g -O2" 3377ea6ae205Smrg else 3378ea6ae205Smrg CFLAGS="-g" 3379ea6ae205Smrg fi 3380ea6ae205Smrgelse 3381ea6ae205Smrg if test "$GCC" = yes; then 3382ea6ae205Smrg CFLAGS="-O2" 3383ea6ae205Smrg else 3384ea6ae205Smrg CFLAGS= 3385ea6ae205Smrg fi 3386ea6ae205Smrgfi 3387b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3388e83ac88aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3389b6f2c9ccSmrgif ${ac_cv_prog_cc_c89+:} false; then : 3390e83ac88aSmrg $as_echo_n "(cached) " >&6 3391ea6ae205Smrgelse 3392ea6ae205Smrg ac_cv_prog_cc_c89=no 3393ea6ae205Smrgac_save_CC=$CC 3394b6f2c9ccSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3395ea6ae205Smrg/* end confdefs.h. */ 3396ea6ae205Smrg#include <stdarg.h> 3397ea6ae205Smrg#include <stdio.h> 3398ea6ae205Smrg#include <sys/types.h> 3399ea6ae205Smrg#include <sys/stat.h> 3400ea6ae205Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3401ea6ae205Smrgstruct buf { int x; }; 3402ea6ae205SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 3403ea6ae205Smrgstatic char *e (p, i) 3404ea6ae205Smrg char **p; 3405ea6ae205Smrg int i; 3406ea6ae205Smrg{ 3407ea6ae205Smrg return p[i]; 3408ea6ae205Smrg} 3409ea6ae205Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 3410ea6ae205Smrg{ 3411ea6ae205Smrg char *s; 3412ea6ae205Smrg va_list v; 3413ea6ae205Smrg va_start (v,p); 3414ea6ae205Smrg s = g (p, va_arg (v,int)); 3415ea6ae205Smrg va_end (v); 3416ea6ae205Smrg return s; 3417ea6ae205Smrg} 3418ea6ae205Smrg 3419ea6ae205Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3420ea6ae205Smrg function prototypes and stuff, but not '\xHH' hex character constants. 3421ea6ae205Smrg These don't provoke an error unfortunately, instead are silently treated 3422ea6ae205Smrg as 'x'. The following induces an error, until -std is added to get 3423ea6ae205Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3424ea6ae205Smrg array size at least. It's necessary to write '\x00'==0 to get something 3425ea6ae205Smrg that's true only with -std. */ 3426ea6ae205Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3427ea6ae205Smrg 3428ea6ae205Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3429ea6ae205Smrg inside strings and character constants. */ 3430ea6ae205Smrg#define FOO(x) 'x' 3431ea6ae205Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3432ea6ae205Smrg 3433ea6ae205Smrgint test (int i, double x); 3434ea6ae205Smrgstruct s1 {int (*f) (int a);}; 3435ea6ae205Smrgstruct s2 {int (*f) (double a);}; 3436ea6ae205Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3437ea6ae205Smrgint argc; 3438ea6ae205Smrgchar **argv; 3439ea6ae205Smrgint 3440ea6ae205Smrgmain () 3441ea6ae205Smrg{ 3442ea6ae205Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3443ea6ae205Smrg ; 3444ea6ae205Smrg return 0; 3445ea6ae205Smrg} 3446ea6ae205Smrg_ACEOF 3447ea6ae205Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3448ea6ae205Smrg -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3449ea6ae205Smrgdo 3450ea6ae205Smrg CC="$ac_save_CC $ac_arg" 3451b6f2c9ccSmrg if ac_fn_c_try_compile "$LINENO"; then : 3452ea6ae205Smrg ac_cv_prog_cc_c89=$ac_arg 3453ea6ae205Smrgfi 3454ea6ae205Smrgrm -f core conftest.err conftest.$ac_objext 3455ea6ae205Smrg test "x$ac_cv_prog_cc_c89" != "xno" && break 3456ea6ae205Smrgdone 3457ea6ae205Smrgrm -f conftest.$ac_ext 3458ea6ae205SmrgCC=$ac_save_CC 3459ea6ae205Smrg 3460ea6ae205Smrgfi 3461ea6ae205Smrg# AC_CACHE_VAL 3462ea6ae205Smrgcase "x$ac_cv_prog_cc_c89" in 3463ea6ae205Smrg x) 3464b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3465e83ac88aSmrg$as_echo "none needed" >&6; } ;; 3466ea6ae205Smrg xno) 3467b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3468e83ac88aSmrg$as_echo "unsupported" >&6; } ;; 3469ea6ae205Smrg *) 3470ea6ae205Smrg CC="$CC $ac_cv_prog_cc_c89" 3471b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3472e83ac88aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3473ea6ae205Smrgesac 3474b6f2c9ccSmrgif test "x$ac_cv_prog_cc_c89" != xno; then : 3475ea6ae205Smrg 3476b6f2c9ccSmrgfi 3477ea6ae205Smrg 3478ea6ae205Smrgac_ext=c 3479ea6ae205Smrgac_cpp='$CPP $CPPFLAGS' 3480ea6ae205Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3481ea6ae205Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3482ea6ae205Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3483ea6ae205Smrg 3484ea6ae205Smrgdepcc="$CC" am_compiler_list= 3485ea6ae205Smrg 3486b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3487e83ac88aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; } 3488b6f2c9ccSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then : 3489e83ac88aSmrg $as_echo_n "(cached) " >&6 3490ea6ae205Smrgelse 3491ea6ae205Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3492ea6ae205Smrg # We make a subdir and do the tests there. Otherwise we can end up 3493ea6ae205Smrg # making bogus files that we don't know about and never remove. For 3494ea6ae205Smrg # instance it was reported that on HP-UX the gcc test will end up 3495ea6ae205Smrg # making a dummy file named `D' -- because `-MD' means `put the output 3496ea6ae205Smrg # in D'. 3497ea6ae205Smrg mkdir conftest.dir 3498ea6ae205Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 3499ea6ae205Smrg # using a relative directory. 3500ea6ae205Smrg cp "$am_depcomp" conftest.dir 3501ea6ae205Smrg cd conftest.dir 3502ea6ae205Smrg # We will build objects and dependencies in a subdirectory because 3503ea6ae205Smrg # it helps to detect inapplicable dependency modes. For instance 3504ea6ae205Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 3505ea6ae205Smrg # side effect of compilation, but ICC will put the dependencies in 3506ea6ae205Smrg # the current directory while Tru64 will put them in the object 3507ea6ae205Smrg # directory. 3508ea6ae205Smrg mkdir sub 3509ea6ae205Smrg 3510ea6ae205Smrg am_cv_CC_dependencies_compiler_type=none 3511ea6ae205Smrg if test "$am_compiler_list" = ""; then 3512ea6ae205Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3513ea6ae205Smrg fi 3514e83ac88aSmrg am__universal=false 3515e83ac88aSmrg case " $depcc " in #( 3516e83ac88aSmrg *\ -arch\ *\ -arch\ *) am__universal=true ;; 3517e83ac88aSmrg esac 3518e83ac88aSmrg 3519ea6ae205Smrg for depmode in $am_compiler_list; do 3520ea6ae205Smrg # Setup a source with many dependencies, because some compilers 3521ea6ae205Smrg # like to wrap large dependency lists on column 80 (with \), and 3522ea6ae205Smrg # we should not choose a depcomp mode which is confused by this. 3523ea6ae205Smrg # 3524ea6ae205Smrg # We need to recreate these files for each test, as the compiler may 3525ea6ae205Smrg # overwrite some of them when testing with obscure command lines. 3526ea6ae205Smrg # This happens at least with the AIX C compiler. 3527ea6ae205Smrg : > sub/conftest.c 3528ea6ae205Smrg for i in 1 2 3 4 5 6; do 3529ea6ae205Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 3530ea6ae205Smrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3531ea6ae205Smrg # Solaris 8's {/usr,}/bin/sh. 3532ea6ae205Smrg touch sub/conftst$i.h 3533ea6ae205Smrg done 3534ea6ae205Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3535ea6ae205Smrg 3536e83ac88aSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 3537e83ac88aSmrg # mode. It turns out that the SunPro C++ compiler does not properly 3538e83ac88aSmrg # handle `-M -o', and we need to detect this. Also, some Intel 3539e83ac88aSmrg # versions had trouble with output in subdirs 3540e83ac88aSmrg am__obj=sub/conftest.${OBJEXT-o} 3541e83ac88aSmrg am__minus_obj="-o $am__obj" 3542ea6ae205Smrg case $depmode in 3543e83ac88aSmrg gcc) 3544e83ac88aSmrg # This depmode causes a compiler race in universal mode. 3545e83ac88aSmrg test "$am__universal" = false || continue 3546e83ac88aSmrg ;; 3547ea6ae205Smrg nosideeffect) 3548ea6ae205Smrg # after this tag, mechanisms are not by side-effect, so they'll 3549ea6ae205Smrg # only be used when explicitly requested 3550ea6ae205Smrg if test "x$enable_dependency_tracking" = xyes; then 3551ea6ae205Smrg continue 3552ea6ae205Smrg else 3553ea6ae205Smrg break 3554ea6ae205Smrg fi 3555ea6ae205Smrg ;; 3556e83ac88aSmrg msvisualcpp | msvcmsys) 3557e83ac88aSmrg # This compiler won't grok `-c -o', but also, the minuso test has 3558e83ac88aSmrg # not run yet. These depmodes are late enough in the game, and 3559e83ac88aSmrg # so weak that their functioning should not be impacted. 3560e83ac88aSmrg am__obj=conftest.${OBJEXT-o} 3561e83ac88aSmrg am__minus_obj= 3562e83ac88aSmrg ;; 3563ea6ae205Smrg none) break ;; 3564ea6ae205Smrg esac 3565ea6ae205Smrg if depmode=$depmode \ 3566e83ac88aSmrg source=sub/conftest.c object=$am__obj \ 3567ea6ae205Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3568e83ac88aSmrg $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3569ea6ae205Smrg >/dev/null 2>conftest.err && 3570ea6ae205Smrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3571ea6ae205Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3572e83ac88aSmrg grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3573ea6ae205Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3574ea6ae205Smrg # icc doesn't choke on unknown options, it will just issue warnings 3575ea6ae205Smrg # or remarks (even with -Werror). So we grep stderr for any message 3576ea6ae205Smrg # that says an option was ignored or not supported. 3577ea6ae205Smrg # When given -MP, icc 7.0 and 7.1 complain thusly: 3578ea6ae205Smrg # icc: Command line warning: ignoring option '-M'; no argument required 3579ea6ae205Smrg # The diagnosis changed in icc 8.0: 3580ea6ae205Smrg # icc: Command line remark: option '-MP' not supported 3581ea6ae205Smrg if (grep 'ignoring option' conftest.err || 3582ea6ae205Smrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3583ea6ae205Smrg am_cv_CC_dependencies_compiler_type=$depmode 3584ea6ae205Smrg break 3585ea6ae205Smrg fi 3586ea6ae205Smrg fi 3587ea6ae205Smrg done 3588ea6ae205Smrg 3589ea6ae205Smrg cd .. 3590ea6ae205Smrg rm -rf conftest.dir 3591ea6ae205Smrgelse 3592ea6ae205Smrg am_cv_CC_dependencies_compiler_type=none 3593ea6ae205Smrgfi 3594ea6ae205Smrg 3595ea6ae205Smrgfi 3596b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3597e83ac88aSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3598ea6ae205SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3599ea6ae205Smrg 3600ea6ae205Smrg if 3601ea6ae205Smrg test "x$enable_dependency_tracking" != xno \ 3602ea6ae205Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3603ea6ae205Smrg am__fastdepCC_TRUE= 3604ea6ae205Smrg am__fastdepCC_FALSE='#' 3605ea6ae205Smrgelse 3606ea6ae205Smrg am__fastdepCC_TRUE='#' 3607ea6ae205Smrg am__fastdepCC_FALSE= 3608ea6ae205Smrgfi 3609ea6ae205Smrg 3610ea6ae205Smrg 3611b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3612b6f2c9ccSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3613b6f2c9ccSmrgif ${ac_cv_prog_cc_c99+:} false; then : 3614e83ac88aSmrg $as_echo_n "(cached) " >&6 3615ea6ae205Smrgelse 3616b6f2c9ccSmrg ac_cv_prog_cc_c99=no 3617b6f2c9ccSmrgac_save_CC=$CC 3618b6f2c9ccSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619b6f2c9ccSmrg/* end confdefs.h. */ 3620b6f2c9ccSmrg#include <stdarg.h> 3621b6f2c9ccSmrg#include <stdbool.h> 3622b6f2c9ccSmrg#include <stdlib.h> 3623b6f2c9ccSmrg#include <wchar.h> 3624b6f2c9ccSmrg#include <stdio.h> 3625e83ac88aSmrg 3626b6f2c9ccSmrg// Check varargs macros. These examples are taken from C99 6.10.3.5. 3627b6f2c9ccSmrg#define debug(...) fprintf (stderr, __VA_ARGS__) 3628b6f2c9ccSmrg#define showlist(...) puts (#__VA_ARGS__) 3629b6f2c9ccSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3630b6f2c9ccSmrgstatic void 3631b6f2c9ccSmrgtest_varargs_macros (void) 3632b6f2c9ccSmrg{ 3633b6f2c9ccSmrg int x = 1234; 3634b6f2c9ccSmrg int y = 5678; 3635b6f2c9ccSmrg debug ("Flag"); 3636b6f2c9ccSmrg debug ("X = %d\n", x); 3637b6f2c9ccSmrg showlist (The first, second, and third items.); 3638b6f2c9ccSmrg report (x>y, "x is %d but y is %d", x, y); 3639b6f2c9ccSmrg} 3640e83ac88aSmrg 3641b6f2c9ccSmrg// Check long long types. 3642b6f2c9ccSmrg#define BIG64 18446744073709551615ull 3643b6f2c9ccSmrg#define BIG32 4294967295ul 3644b6f2c9ccSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3645b6f2c9ccSmrg#if !BIG_OK 3646b6f2c9ccSmrg your preprocessor is broken; 3647b6f2c9ccSmrg#endif 3648b6f2c9ccSmrg#if BIG_OK 3649b6f2c9ccSmrg#else 3650b6f2c9ccSmrg your preprocessor is broken; 3651b6f2c9ccSmrg#endif 3652b6f2c9ccSmrgstatic long long int bignum = -9223372036854775807LL; 3653b6f2c9ccSmrgstatic unsigned long long int ubignum = BIG64; 3654e83ac88aSmrg 3655b6f2c9ccSmrgstruct incomplete_array 3656b6f2c9ccSmrg{ 3657b6f2c9ccSmrg int datasize; 3658b6f2c9ccSmrg double data[]; 3659b6f2c9ccSmrg}; 3660e83ac88aSmrg 3661b6f2c9ccSmrgstruct named_init { 3662b6f2c9ccSmrg int number; 3663b6f2c9ccSmrg const wchar_t *name; 3664b6f2c9ccSmrg double average; 3665b6f2c9ccSmrg}; 3666e83ac88aSmrg 3667b6f2c9ccSmrgtypedef const char *ccp; 3668e83ac88aSmrg 3669b6f2c9ccSmrgstatic inline int 3670b6f2c9ccSmrgtest_restrict (ccp restrict text) 3671b6f2c9ccSmrg{ 3672b6f2c9ccSmrg // See if C++-style comments work. 3673b6f2c9ccSmrg // Iterate through items via the restricted pointer. 3674b6f2c9ccSmrg // Also check for declarations in for loops. 3675b6f2c9ccSmrg for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3676b6f2c9ccSmrg continue; 3677b6f2c9ccSmrg return 0; 3678b6f2c9ccSmrg} 3679b6f2c9ccSmrg 3680b6f2c9ccSmrg// Check varargs and va_copy. 3681b6f2c9ccSmrgstatic void 3682b6f2c9ccSmrgtest_varargs (const char *format, ...) 3683b6f2c9ccSmrg{ 3684b6f2c9ccSmrg va_list args; 3685b6f2c9ccSmrg va_start (args, format); 3686b6f2c9ccSmrg va_list args_copy; 3687b6f2c9ccSmrg va_copy (args_copy, args); 3688b6f2c9ccSmrg 3689b6f2c9ccSmrg const char *str; 3690b6f2c9ccSmrg int number; 3691b6f2c9ccSmrg float fnumber; 3692b6f2c9ccSmrg 3693b6f2c9ccSmrg while (*format) 3694b6f2c9ccSmrg { 3695b6f2c9ccSmrg switch (*format++) 3696b6f2c9ccSmrg { 3697b6f2c9ccSmrg case 's': // string 3698b6f2c9ccSmrg str = va_arg (args_copy, const char *); 3699b6f2c9ccSmrg break; 3700b6f2c9ccSmrg case 'd': // int 3701b6f2c9ccSmrg number = va_arg (args_copy, int); 3702b6f2c9ccSmrg break; 3703b6f2c9ccSmrg case 'f': // float 3704b6f2c9ccSmrg fnumber = va_arg (args_copy, double); 3705b6f2c9ccSmrg break; 3706b6f2c9ccSmrg default: 3707b6f2c9ccSmrg break; 3708b6f2c9ccSmrg } 3709b6f2c9ccSmrg } 3710b6f2c9ccSmrg va_end (args_copy); 3711b6f2c9ccSmrg va_end (args); 3712b6f2c9ccSmrg} 3713b6f2c9ccSmrg 3714b6f2c9ccSmrgint 3715b6f2c9ccSmrgmain () 3716b6f2c9ccSmrg{ 3717b6f2c9ccSmrg 3718b6f2c9ccSmrg // Check bool. 3719b6f2c9ccSmrg _Bool success = false; 3720b6f2c9ccSmrg 3721b6f2c9ccSmrg // Check restrict. 3722b6f2c9ccSmrg if (test_restrict ("String literal") == 0) 3723b6f2c9ccSmrg success = true; 3724b6f2c9ccSmrg char *restrict newvar = "Another string"; 3725b6f2c9ccSmrg 3726b6f2c9ccSmrg // Check varargs. 3727b6f2c9ccSmrg test_varargs ("s, d' f .", "string", 65, 34.234); 3728b6f2c9ccSmrg test_varargs_macros (); 3729b6f2c9ccSmrg 3730b6f2c9ccSmrg // Check flexible array members. 3731b6f2c9ccSmrg struct incomplete_array *ia = 3732b6f2c9ccSmrg malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3733b6f2c9ccSmrg ia->datasize = 10; 3734b6f2c9ccSmrg for (int i = 0; i < ia->datasize; ++i) 3735b6f2c9ccSmrg ia->data[i] = i * 1.234; 3736b6f2c9ccSmrg 3737b6f2c9ccSmrg // Check named initializers. 3738b6f2c9ccSmrg struct named_init ni = { 3739b6f2c9ccSmrg .number = 34, 3740b6f2c9ccSmrg .name = L"Test wide string", 3741b6f2c9ccSmrg .average = 543.34343, 3742b6f2c9ccSmrg }; 3743b6f2c9ccSmrg 3744b6f2c9ccSmrg ni.number = 58; 3745b6f2c9ccSmrg 3746b6f2c9ccSmrg int dynamic_array[ni.number]; 3747b6f2c9ccSmrg dynamic_array[ni.number - 1] = 543; 3748b6f2c9ccSmrg 3749b6f2c9ccSmrg // work around unused variable warnings 3750b6f2c9ccSmrg return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3751b6f2c9ccSmrg || dynamic_array[ni.number - 1] != 543); 3752b6f2c9ccSmrg 3753b6f2c9ccSmrg ; 3754b6f2c9ccSmrg return 0; 3755b6f2c9ccSmrg} 3756b6f2c9ccSmrg_ACEOF 3757b6f2c9ccSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3758b6f2c9ccSmrgdo 3759b6f2c9ccSmrg CC="$ac_save_CC $ac_arg" 3760b6f2c9ccSmrg if ac_fn_c_try_compile "$LINENO"; then : 3761b6f2c9ccSmrg ac_cv_prog_cc_c99=$ac_arg 3762b6f2c9ccSmrgfi 3763b6f2c9ccSmrgrm -f core conftest.err conftest.$ac_objext 3764b6f2c9ccSmrg test "x$ac_cv_prog_cc_c99" != "xno" && break 3765b6f2c9ccSmrgdone 3766b6f2c9ccSmrgrm -f conftest.$ac_ext 3767b6f2c9ccSmrgCC=$ac_save_CC 3768b6f2c9ccSmrg 3769b6f2c9ccSmrgfi 3770b6f2c9ccSmrg# AC_CACHE_VAL 3771b6f2c9ccSmrgcase "x$ac_cv_prog_cc_c99" in 3772b6f2c9ccSmrg x) 3773b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3774b6f2c9ccSmrg$as_echo "none needed" >&6; } ;; 3775b6f2c9ccSmrg xno) 3776b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3777b6f2c9ccSmrg$as_echo "unsupported" >&6; } ;; 3778b6f2c9ccSmrg *) 3779b6f2c9ccSmrg CC="$CC $ac_cv_prog_cc_c99" 3780b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3781b6f2c9ccSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3782b6f2c9ccSmrgesac 3783b6f2c9ccSmrgif test "x$ac_cv_prog_cc_c99" != xno; then : 3784b6f2c9ccSmrg 3785b6f2c9ccSmrgfi 3786e83ac88aSmrg 3787e83ac88aSmrg 3788e83ac88aSmrg 3789e83ac88aSmrgac_ext=c 3790e83ac88aSmrgac_cpp='$CPP $CPPFLAGS' 3791e83ac88aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3792e83ac88aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3793e83ac88aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3794b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3795e83ac88aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; } 3796e83ac88aSmrg# On Suns, sometimes $CPP names a directory. 3797e83ac88aSmrgif test -n "$CPP" && test -d "$CPP"; then 3798e83ac88aSmrg CPP= 3799e83ac88aSmrgfi 3800e83ac88aSmrgif test -z "$CPP"; then 3801b6f2c9ccSmrg if ${ac_cv_prog_CPP+:} false; then : 3802e83ac88aSmrg $as_echo_n "(cached) " >&6 3803e83ac88aSmrgelse 3804e83ac88aSmrg # Double quotes because CPP needs to be expanded 3805e83ac88aSmrg for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3806e83ac88aSmrg do 3807e83ac88aSmrg ac_preproc_ok=false 3808e83ac88aSmrgfor ac_c_preproc_warn_flag in '' yes 3809ea6ae205Smrgdo 38107978d3cdSmrg # Use a header file that comes with gcc, so configuring glibc 38117978d3cdSmrg # with a fresh cross-compiler works. 38127978d3cdSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 38137978d3cdSmrg # <limits.h> exists even on freestanding compilers. 38147978d3cdSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 38157978d3cdSmrg # not just through cpp. "Syntax error" is here to catch this case. 3816b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38177978d3cdSmrg/* end confdefs.h. */ 38187978d3cdSmrg#ifdef __STDC__ 38197978d3cdSmrg# include <limits.h> 38207978d3cdSmrg#else 38217978d3cdSmrg# include <assert.h> 38227978d3cdSmrg#endif 38237978d3cdSmrg Syntax error 38247978d3cdSmrg_ACEOF 3825b6f2c9ccSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3826ea6ae205Smrg 3827b6f2c9ccSmrgelse 38287978d3cdSmrg # Broken: fails on valid input. 38297978d3cdSmrgcontinue 3830ea6ae205Smrgfi 3831b6f2c9ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext 3832ea6ae205Smrg 38337978d3cdSmrg # OK, works on sane cases. Now check whether nonexistent headers 38347978d3cdSmrg # can be detected and how. 3835b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38367978d3cdSmrg/* end confdefs.h. */ 38377978d3cdSmrg#include <ac_nonexistent.h> 38387978d3cdSmrg_ACEOF 3839b6f2c9ccSmrgif ac_fn_c_try_cpp "$LINENO"; then : 38407978d3cdSmrg # Broken: success on invalid input. 38417978d3cdSmrgcontinue 38427978d3cdSmrgelse 38437978d3cdSmrg # Passes both tests. 38447978d3cdSmrgac_preproc_ok=: 38457978d3cdSmrgbreak 38467978d3cdSmrgfi 3847b6f2c9ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext 3848ea6ae205Smrg 38497978d3cdSmrgdone 38507978d3cdSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3851b6f2c9ccSmrgrm -f conftest.i conftest.err conftest.$ac_ext 3852b6f2c9ccSmrgif $ac_preproc_ok; then : 38537978d3cdSmrg break 38547978d3cdSmrgfi 3855ea6ae205Smrg 38567978d3cdSmrg done 38577978d3cdSmrg ac_cv_prog_CPP=$CPP 3858ea6ae205Smrg 38597978d3cdSmrgfi 38607978d3cdSmrg CPP=$ac_cv_prog_CPP 3861ea6ae205Smrgelse 38627978d3cdSmrg ac_cv_prog_CPP=$CPP 38637978d3cdSmrgfi 3864b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3865e83ac88aSmrg$as_echo "$CPP" >&6; } 38667978d3cdSmrgac_preproc_ok=false 38677978d3cdSmrgfor ac_c_preproc_warn_flag in '' yes 38687978d3cdSmrgdo 38697978d3cdSmrg # Use a header file that comes with gcc, so configuring glibc 38707978d3cdSmrg # with a fresh cross-compiler works. 38717978d3cdSmrg # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 38727978d3cdSmrg # <limits.h> exists even on freestanding compilers. 38737978d3cdSmrg # On the NeXT, cc -E runs the code through the compiler's parser, 38747978d3cdSmrg # not just through cpp. "Syntax error" is here to catch this case. 3875b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876ea6ae205Smrg/* end confdefs.h. */ 38777978d3cdSmrg#ifdef __STDC__ 38787978d3cdSmrg# include <limits.h> 38797978d3cdSmrg#else 38807978d3cdSmrg# include <assert.h> 3881ea6ae205Smrg#endif 38827978d3cdSmrg Syntax error 3883ea6ae205Smrg_ACEOF 3884b6f2c9ccSmrgif ac_fn_c_try_cpp "$LINENO"; then : 3885ea6ae205Smrg 3886b6f2c9ccSmrgelse 38877978d3cdSmrg # Broken: fails on valid input. 38887978d3cdSmrgcontinue 3889ea6ae205Smrgfi 3890b6f2c9ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext 38917978d3cdSmrg 38927978d3cdSmrg # OK, works on sane cases. Now check whether nonexistent headers 38937978d3cdSmrg # can be detected and how. 3894b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38957978d3cdSmrg/* end confdefs.h. */ 38967978d3cdSmrg#include <ac_nonexistent.h> 3897ea6ae205Smrg_ACEOF 3898b6f2c9ccSmrgif ac_fn_c_try_cpp "$LINENO"; then : 38997978d3cdSmrg # Broken: success on invalid input. 39007978d3cdSmrgcontinue 39017978d3cdSmrgelse 39027978d3cdSmrg # Passes both tests. 39037978d3cdSmrgac_preproc_ok=: 39047978d3cdSmrgbreak 39057978d3cdSmrgfi 3906b6f2c9ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext 3907ea6ae205Smrg 39087978d3cdSmrgdone 39097978d3cdSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3910b6f2c9ccSmrgrm -f conftest.i conftest.err conftest.$ac_ext 3911b6f2c9ccSmrgif $ac_preproc_ok; then : 3912b6f2c9ccSmrg 3913ea6ae205Smrgelse 3914b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3915e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3916b6f2c9ccSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3917b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 3918ea6ae205Smrgfi 3919ea6ae205Smrg 39207978d3cdSmrgac_ext=c 39217978d3cdSmrgac_cpp='$CPP $CPPFLAGS' 39227978d3cdSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 39237978d3cdSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 39247978d3cdSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu 3925ea6ae205Smrg 3926ea6ae205Smrg 3927b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3928e83ac88aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3929b6f2c9ccSmrgif ${ac_cv_path_GREP+:} false; then : 3930e83ac88aSmrg $as_echo_n "(cached) " >&6 39317978d3cdSmrgelse 3932e83ac88aSmrg if test -z "$GREP"; then 39337978d3cdSmrg ac_path_GREP_found=false 3934e83ac88aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 3935e83ac88aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39367978d3cdSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3937ea6ae205Smrgdo 3938ea6ae205Smrg IFS=$as_save_IFS 3939ea6ae205Smrg test -z "$as_dir" && as_dir=. 3940b6f2c9ccSmrg for ac_prog in grep ggrep; do 3941e83ac88aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 3942e83ac88aSmrg ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3943e83ac88aSmrg { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3944e83ac88aSmrg# Check for GNU ac_path_GREP and select it if it is found. 39457978d3cdSmrg # Check for GNU $ac_path_GREP 39467978d3cdSmrgcase `"$ac_path_GREP" --version 2>&1` in 39477978d3cdSmrg*GNU*) 39487978d3cdSmrg ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 39497978d3cdSmrg*) 39507978d3cdSmrg ac_count=0 3951e83ac88aSmrg $as_echo_n 0123456789 >"conftest.in" 39527978d3cdSmrg while : 39537978d3cdSmrg do 39547978d3cdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 39557978d3cdSmrg mv "conftest.tmp" "conftest.in" 39567978d3cdSmrg cp "conftest.in" "conftest.nl" 3957e83ac88aSmrg $as_echo 'GREP' >> "conftest.nl" 39587978d3cdSmrg "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 39597978d3cdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3960b6f2c9ccSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 39617978d3cdSmrg if test $ac_count -gt ${ac_path_GREP_max-0}; then 39627978d3cdSmrg # Best one so far, save it but keep looking for a better one 39637978d3cdSmrg ac_cv_path_GREP="$ac_path_GREP" 39647978d3cdSmrg ac_path_GREP_max=$ac_count 39657978d3cdSmrg fi 39667978d3cdSmrg # 10*(2^10) chars as input seems more than enough 39677978d3cdSmrg test $ac_count -gt 10 && break 39687978d3cdSmrg done 39697978d3cdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 39707978d3cdSmrgesac 39717978d3cdSmrg 3972e83ac88aSmrg $ac_path_GREP_found && break 3 3973e83ac88aSmrg done 39747978d3cdSmrg done 3975b6f2c9ccSmrg done 3976ea6ae205SmrgIFS=$as_save_IFS 3977e83ac88aSmrg if test -z "$ac_cv_path_GREP"; then 3978b6f2c9ccSmrg as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3979e83ac88aSmrg fi 39807978d3cdSmrgelse 39817978d3cdSmrg ac_cv_path_GREP=$GREP 39827978d3cdSmrgfi 39837978d3cdSmrg 39847978d3cdSmrgfi 3985b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3986e83ac88aSmrg$as_echo "$ac_cv_path_GREP" >&6; } 39877978d3cdSmrg GREP="$ac_cv_path_GREP" 39887978d3cdSmrg 39897978d3cdSmrg 3990b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3991e83ac88aSmrg$as_echo_n "checking for egrep... " >&6; } 3992b6f2c9ccSmrgif ${ac_cv_path_EGREP+:} false; then : 3993e83ac88aSmrg $as_echo_n "(cached) " >&6 39947978d3cdSmrgelse 39957978d3cdSmrg if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 39967978d3cdSmrg then ac_cv_path_EGREP="$GREP -E" 39977978d3cdSmrg else 3998e83ac88aSmrg if test -z "$EGREP"; then 39997978d3cdSmrg ac_path_EGREP_found=false 4000e83ac88aSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4001e83ac88aSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40027978d3cdSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 40037978d3cdSmrgdo 40047978d3cdSmrg IFS=$as_save_IFS 40057978d3cdSmrg test -z "$as_dir" && as_dir=. 4006b6f2c9ccSmrg for ac_prog in egrep; do 4007e83ac88aSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4008e83ac88aSmrg ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4009e83ac88aSmrg { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4010e83ac88aSmrg# Check for GNU ac_path_EGREP and select it if it is found. 40117978d3cdSmrg # Check for GNU $ac_path_EGREP 40127978d3cdSmrgcase `"$ac_path_EGREP" --version 2>&1` in 40137978d3cdSmrg*GNU*) 40147978d3cdSmrg ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 40157978d3cdSmrg*) 40167978d3cdSmrg ac_count=0 4017e83ac88aSmrg $as_echo_n 0123456789 >"conftest.in" 40187978d3cdSmrg while : 40197978d3cdSmrg do 40207978d3cdSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 40217978d3cdSmrg mv "conftest.tmp" "conftest.in" 40227978d3cdSmrg cp "conftest.in" "conftest.nl" 4023e83ac88aSmrg $as_echo 'EGREP' >> "conftest.nl" 40247978d3cdSmrg "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 40257978d3cdSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4026b6f2c9ccSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 40277978d3cdSmrg if test $ac_count -gt ${ac_path_EGREP_max-0}; then 40287978d3cdSmrg # Best one so far, save it but keep looking for a better one 40297978d3cdSmrg ac_cv_path_EGREP="$ac_path_EGREP" 40307978d3cdSmrg ac_path_EGREP_max=$ac_count 40317978d3cdSmrg fi 40327978d3cdSmrg # 10*(2^10) chars as input seems more than enough 40337978d3cdSmrg test $ac_count -gt 10 && break 40347978d3cdSmrg done 40357978d3cdSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 40367978d3cdSmrgesac 40377978d3cdSmrg 4038e83ac88aSmrg $ac_path_EGREP_found && break 3 4039e83ac88aSmrg done 40407978d3cdSmrg done 4041b6f2c9ccSmrg done 40427978d3cdSmrgIFS=$as_save_IFS 4043e83ac88aSmrg if test -z "$ac_cv_path_EGREP"; then 4044b6f2c9ccSmrg as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4045e83ac88aSmrg fi 40467978d3cdSmrgelse 40477978d3cdSmrg ac_cv_path_EGREP=$EGREP 40487978d3cdSmrgfi 40497978d3cdSmrg 40507978d3cdSmrg fi 40517978d3cdSmrgfi 4052b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4053e83ac88aSmrg$as_echo "$ac_cv_path_EGREP" >&6; } 40547978d3cdSmrg EGREP="$ac_cv_path_EGREP" 40557978d3cdSmrg 40567978d3cdSmrg 4057b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4058e83ac88aSmrg$as_echo_n "checking for ANSI C header files... " >&6; } 4059b6f2c9ccSmrgif ${ac_cv_header_stdc+:} false; then : 4060e83ac88aSmrg $as_echo_n "(cached) " >&6 40617978d3cdSmrgelse 4062b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40637978d3cdSmrg/* end confdefs.h. */ 40647978d3cdSmrg#include <stdlib.h> 40657978d3cdSmrg#include <stdarg.h> 40667978d3cdSmrg#include <string.h> 40677978d3cdSmrg#include <float.h> 40687978d3cdSmrg 40697978d3cdSmrgint 40707978d3cdSmrgmain () 40717978d3cdSmrg{ 40727978d3cdSmrg 40737978d3cdSmrg ; 40747978d3cdSmrg return 0; 40757978d3cdSmrg} 40767978d3cdSmrg_ACEOF 4077b6f2c9ccSmrgif ac_fn_c_try_compile "$LINENO"; then : 40787978d3cdSmrg ac_cv_header_stdc=yes 40797978d3cdSmrgelse 4080b6f2c9ccSmrg ac_cv_header_stdc=no 40817978d3cdSmrgfi 40827978d3cdSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40837978d3cdSmrg 40847978d3cdSmrgif test $ac_cv_header_stdc = yes; then 40857978d3cdSmrg # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4086b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40877978d3cdSmrg/* end confdefs.h. */ 40887978d3cdSmrg#include <string.h> 40897978d3cdSmrg 40907978d3cdSmrg_ACEOF 40917978d3cdSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4092b6f2c9ccSmrg $EGREP "memchr" >/dev/null 2>&1; then : 4093b6f2c9ccSmrg 40947978d3cdSmrgelse 40957978d3cdSmrg ac_cv_header_stdc=no 40967978d3cdSmrgfi 40977978d3cdSmrgrm -f conftest* 40987978d3cdSmrg 40997978d3cdSmrgfi 41007978d3cdSmrg 41017978d3cdSmrgif test $ac_cv_header_stdc = yes; then 41027978d3cdSmrg # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4103b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41047978d3cdSmrg/* end confdefs.h. */ 41057978d3cdSmrg#include <stdlib.h> 41067978d3cdSmrg 41077978d3cdSmrg_ACEOF 41087978d3cdSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4109b6f2c9ccSmrg $EGREP "free" >/dev/null 2>&1; then : 4110b6f2c9ccSmrg 41117978d3cdSmrgelse 41127978d3cdSmrg ac_cv_header_stdc=no 41137978d3cdSmrgfi 41147978d3cdSmrgrm -f conftest* 41157978d3cdSmrg 41167978d3cdSmrgfi 41177978d3cdSmrg 41187978d3cdSmrgif test $ac_cv_header_stdc = yes; then 41197978d3cdSmrg # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4120b6f2c9ccSmrg if test "$cross_compiling" = yes; then : 41217978d3cdSmrg : 41227978d3cdSmrgelse 4123b6f2c9ccSmrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41247978d3cdSmrg/* end confdefs.h. */ 41257978d3cdSmrg#include <ctype.h> 41267978d3cdSmrg#include <stdlib.h> 41277978d3cdSmrg#if ((' ' & 0x0FF) == 0x020) 41287978d3cdSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41297978d3cdSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41307978d3cdSmrg#else 41317978d3cdSmrg# define ISLOWER(c) \ 41327978d3cdSmrg (('a' <= (c) && (c) <= 'i') \ 41337978d3cdSmrg || ('j' <= (c) && (c) <= 'r') \ 41347978d3cdSmrg || ('s' <= (c) && (c) <= 'z')) 41357978d3cdSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41367978d3cdSmrg#endif 41377978d3cdSmrg 41387978d3cdSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41397978d3cdSmrgint 41407978d3cdSmrgmain () 41417978d3cdSmrg{ 41427978d3cdSmrg int i; 41437978d3cdSmrg for (i = 0; i < 256; i++) 41447978d3cdSmrg if (XOR (islower (i), ISLOWER (i)) 41457978d3cdSmrg || toupper (i) != TOUPPER (i)) 41467978d3cdSmrg return 2; 41477978d3cdSmrg return 0; 41487978d3cdSmrg} 41497978d3cdSmrg_ACEOF 4150b6f2c9ccSmrgif ac_fn_c_try_run "$LINENO"; then : 41517978d3cdSmrg 4152b6f2c9ccSmrgelse 4153b6f2c9ccSmrg ac_cv_header_stdc=no 41547978d3cdSmrgfi 4155b6f2c9ccSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4156b6f2c9ccSmrg conftest.$ac_objext conftest.beam conftest.$ac_ext 41577978d3cdSmrgfi 41587978d3cdSmrg 41597978d3cdSmrgfi 41607978d3cdSmrgfi 4161b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4162e83ac88aSmrg$as_echo "$ac_cv_header_stdc" >&6; } 41637978d3cdSmrgif test $ac_cv_header_stdc = yes; then 41647978d3cdSmrg 4165b6f2c9ccSmrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h 41667978d3cdSmrg 41677978d3cdSmrgfi 41687978d3cdSmrg 41697978d3cdSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting. 41707978d3cdSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41717978d3cdSmrg inttypes.h stdint.h unistd.h 4172b6f2c9ccSmrgdo : 4173b6f2c9ccSmrg as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4174b6f2c9ccSmrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4175b6f2c9ccSmrg" 4176b6f2c9ccSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41777978d3cdSmrg cat >>confdefs.h <<_ACEOF 4178e83ac88aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41797978d3cdSmrg_ACEOF 41807978d3cdSmrg 41817978d3cdSmrgfi 41827978d3cdSmrg 41837978d3cdSmrgdone 41847978d3cdSmrg 41857978d3cdSmrg 4186e83ac88aSmrg 4187e83ac88aSmrg 4188245f6787Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4189245f6787Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then : 4190245f6787Smrg CLANGCC="yes" 4191245f6787Smrgelse 4192245f6787Smrg CLANGCC="no" 4193245f6787Smrgfi 4194245f6787Smrg 4195245f6787Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4196245f6787Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4197245f6787Smrg INTELCC="yes" 4198245f6787Smrgelse 4199245f6787Smrg INTELCC="no" 4200245f6787Smrgfi 4201245f6787Smrg 4202245f6787Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4203245f6787Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4204245f6787Smrg SUNCC="yes" 4205245f6787Smrgelse 4206245f6787Smrg SUNCC="no" 4207245f6787Smrgfi 4208245f6787Smrg 4209245f6787Smrg 4210245f6787Smrg 4211245f6787Smrg 4212b6f2c9ccSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4213b6f2c9ccSmrg if test -n "$ac_tool_prefix"; then 4214b6f2c9ccSmrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4215b6f2c9ccSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4216b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4217b6f2c9ccSmrg$as_echo_n "checking for $ac_word... " >&6; } 4218b6f2c9ccSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then : 4219b6f2c9ccSmrg $as_echo_n "(cached) " >&6 4220b6f2c9ccSmrgelse 4221b6f2c9ccSmrg case $PKG_CONFIG in 4222b6f2c9ccSmrg [\\/]* | ?:[\\/]*) 4223b6f2c9ccSmrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4224b6f2c9ccSmrg ;; 4225b6f2c9ccSmrg *) 4226b6f2c9ccSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4227b6f2c9ccSmrgfor as_dir in $PATH 4228e83ac88aSmrgdo 4229b6f2c9ccSmrg IFS=$as_save_IFS 4230b6f2c9ccSmrg test -z "$as_dir" && as_dir=. 4231b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4232b6f2c9ccSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4233b6f2c9ccSmrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4234b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4235b6f2c9ccSmrg break 2 4236b6f2c9ccSmrg fi 4237b6f2c9ccSmrgdone 4238b6f2c9ccSmrg done 4239b6f2c9ccSmrgIFS=$as_save_IFS 4240b6f2c9ccSmrg 4241b6f2c9ccSmrg ;; 42427978d3cdSmrgesac 4243b6f2c9ccSmrgfi 4244b6f2c9ccSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 4245b6f2c9ccSmrgif test -n "$PKG_CONFIG"; then 4246b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4247b6f2c9ccSmrg$as_echo "$PKG_CONFIG" >&6; } 42487978d3cdSmrgelse 4249b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4250b6f2c9ccSmrg$as_echo "no" >&6; } 42517978d3cdSmrgfi 42527978d3cdSmrg 42537978d3cdSmrg 42547978d3cdSmrgfi 4255b6f2c9ccSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then 4256b6f2c9ccSmrg ac_pt_PKG_CONFIG=$PKG_CONFIG 4257b6f2c9ccSmrg # Extract the first word of "pkg-config", so it can be a program name with args. 4258b6f2c9ccSmrgset dummy pkg-config; ac_word=$2 4259b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4260b6f2c9ccSmrg$as_echo_n "checking for $ac_word... " >&6; } 4261b6f2c9ccSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4262b6f2c9ccSmrg $as_echo_n "(cached) " >&6 4263b6f2c9ccSmrgelse 4264b6f2c9ccSmrg case $ac_pt_PKG_CONFIG in 4265b6f2c9ccSmrg [\\/]* | ?:[\\/]*) 4266b6f2c9ccSmrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4267b6f2c9ccSmrg ;; 4268e83ac88aSmrg *) 4269b6f2c9ccSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4270b6f2c9ccSmrgfor as_dir in $PATH 4271b6f2c9ccSmrgdo 4272b6f2c9ccSmrg IFS=$as_save_IFS 4273b6f2c9ccSmrg test -z "$as_dir" && as_dir=. 4274b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4275b6f2c9ccSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4276b6f2c9ccSmrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4277b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4278b6f2c9ccSmrg break 2 4279b6f2c9ccSmrg fi 4280b6f2c9ccSmrgdone 4281b6f2c9ccSmrg done 4282b6f2c9ccSmrgIFS=$as_save_IFS 4283b6f2c9ccSmrg 4284b6f2c9ccSmrg ;; 4285e83ac88aSmrgesac 4286b6f2c9ccSmrgfi 4287b6f2c9ccSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4288b6f2c9ccSmrgif test -n "$ac_pt_PKG_CONFIG"; then 4289b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4290b6f2c9ccSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4291b6f2c9ccSmrgelse 4292b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4293b6f2c9ccSmrg$as_echo "no" >&6; } 4294b6f2c9ccSmrgfi 42957978d3cdSmrg 4296b6f2c9ccSmrg if test "x$ac_pt_PKG_CONFIG" = x; then 4297b6f2c9ccSmrg PKG_CONFIG="" 4298b6f2c9ccSmrg else 4299b6f2c9ccSmrg case $cross_compiling:$ac_tool_warned in 4300b6f2c9ccSmrgyes:) 4301b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4302b6f2c9ccSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4303b6f2c9ccSmrgac_tool_warned=yes ;; 4304b6f2c9ccSmrgesac 4305b6f2c9ccSmrg PKG_CONFIG=$ac_pt_PKG_CONFIG 4306b6f2c9ccSmrg fi 4307b6f2c9ccSmrgelse 4308b6f2c9ccSmrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4309b6f2c9ccSmrgfi 43107978d3cdSmrg 4311b6f2c9ccSmrgfi 4312b6f2c9ccSmrgif test -n "$PKG_CONFIG"; then 4313b6f2c9ccSmrg _pkg_min_version=0.9.0 4314b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4315b6f2c9ccSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4316b6f2c9ccSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4317b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4318b6f2c9ccSmrg$as_echo "yes" >&6; } 4319b6f2c9ccSmrg else 4320b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4321b6f2c9ccSmrg$as_echo "no" >&6; } 4322b6f2c9ccSmrg PKG_CONFIG="" 4323b6f2c9ccSmrg fi 43247978d3cdSmrg 4325b6f2c9ccSmrgfi 4326e83ac88aSmrg# Make sure we can run config.sub. 4327e83ac88aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4328b6f2c9ccSmrg as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4329e83ac88aSmrg 4330b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4331e83ac88aSmrg$as_echo_n "checking build system type... " >&6; } 4332b6f2c9ccSmrgif ${ac_cv_build+:} false; then : 4333e83ac88aSmrg $as_echo_n "(cached) " >&6 4334e83ac88aSmrgelse 4335e83ac88aSmrg ac_build_alias=$build_alias 4336e83ac88aSmrgtest "x$ac_build_alias" = x && 4337e83ac88aSmrg ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4338e83ac88aSmrgtest "x$ac_build_alias" = x && 4339b6f2c9ccSmrg as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4340e83ac88aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4341b6f2c9ccSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4342e83ac88aSmrg 4343e83ac88aSmrgfi 4344b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4345e83ac88aSmrg$as_echo "$ac_cv_build" >&6; } 4346e83ac88aSmrgcase $ac_cv_build in 4347e83ac88aSmrg*-*-*) ;; 4348b6f2c9ccSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4349e83ac88aSmrgesac 4350e83ac88aSmrgbuild=$ac_cv_build 4351e83ac88aSmrgac_save_IFS=$IFS; IFS='-' 4352e83ac88aSmrgset x $ac_cv_build 4353e83ac88aSmrgshift 4354e83ac88aSmrgbuild_cpu=$1 4355e83ac88aSmrgbuild_vendor=$2 4356e83ac88aSmrgshift; shift 4357e83ac88aSmrg# Remember, the first character of IFS is used to create $*, 4358e83ac88aSmrg# except with old shells: 4359e83ac88aSmrgbuild_os=$* 4360e83ac88aSmrgIFS=$ac_save_IFS 4361e83ac88aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4362e83ac88aSmrg 4363e83ac88aSmrg 4364b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4365e83ac88aSmrg$as_echo_n "checking host system type... " >&6; } 4366b6f2c9ccSmrgif ${ac_cv_host+:} false; then : 4367e83ac88aSmrg $as_echo_n "(cached) " >&6 4368e83ac88aSmrgelse 4369e83ac88aSmrg if test "x$host_alias" = x; then 4370e83ac88aSmrg ac_cv_host=$ac_cv_build 4371e83ac88aSmrgelse 4372e83ac88aSmrg ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4373b6f2c9ccSmrg as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4374e83ac88aSmrgfi 4375e83ac88aSmrg 4376e83ac88aSmrgfi 4377b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4378e83ac88aSmrg$as_echo "$ac_cv_host" >&6; } 4379e83ac88aSmrgcase $ac_cv_host in 4380e83ac88aSmrg*-*-*) ;; 4381b6f2c9ccSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4382e83ac88aSmrgesac 4383e83ac88aSmrghost=$ac_cv_host 4384e83ac88aSmrgac_save_IFS=$IFS; IFS='-' 4385e83ac88aSmrgset x $ac_cv_host 4386e83ac88aSmrgshift 4387e83ac88aSmrghost_cpu=$1 4388e83ac88aSmrghost_vendor=$2 4389e83ac88aSmrgshift; shift 4390e83ac88aSmrg# Remember, the first character of IFS is used to create $*, 4391e83ac88aSmrg# except with old shells: 4392e83ac88aSmrghost_os=$* 4393e83ac88aSmrgIFS=$ac_save_IFS 4394e83ac88aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4395e83ac88aSmrg 4396e83ac88aSmrg 4397b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4398b6f2c9ccSmrg$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4399b6f2c9ccSmrgif ${ac_cv_path_SED+:} false; then : 4400b6f2c9ccSmrg $as_echo_n "(cached) " >&6 4401b6f2c9ccSmrgelse 4402b6f2c9ccSmrg ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4403b6f2c9ccSmrg for ac_i in 1 2 3 4 5 6 7; do 4404b6f2c9ccSmrg ac_script="$ac_script$as_nl$ac_script" 4405b6f2c9ccSmrg done 4406b6f2c9ccSmrg echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4407b6f2c9ccSmrg { ac_script=; unset ac_script;} 4408b6f2c9ccSmrg if test -z "$SED"; then 4409b6f2c9ccSmrg ac_path_SED_found=false 4410b6f2c9ccSmrg # Loop through the user's path and test for each of PROGNAME-LIST 4411b6f2c9ccSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412b6f2c9ccSmrgfor as_dir in $PATH 4413b6f2c9ccSmrgdo 4414b6f2c9ccSmrg IFS=$as_save_IFS 4415b6f2c9ccSmrg test -z "$as_dir" && as_dir=. 4416b6f2c9ccSmrg for ac_prog in sed gsed; do 4417b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 4418b6f2c9ccSmrg ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4419b6f2c9ccSmrg { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4420b6f2c9ccSmrg# Check for GNU ac_path_SED and select it if it is found. 4421b6f2c9ccSmrg # Check for GNU $ac_path_SED 4422b6f2c9ccSmrgcase `"$ac_path_SED" --version 2>&1` in 4423b6f2c9ccSmrg*GNU*) 4424b6f2c9ccSmrg ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4425b6f2c9ccSmrg*) 4426b6f2c9ccSmrg ac_count=0 4427b6f2c9ccSmrg $as_echo_n 0123456789 >"conftest.in" 4428b6f2c9ccSmrg while : 4429b6f2c9ccSmrg do 4430b6f2c9ccSmrg cat "conftest.in" "conftest.in" >"conftest.tmp" 4431b6f2c9ccSmrg mv "conftest.tmp" "conftest.in" 4432b6f2c9ccSmrg cp "conftest.in" "conftest.nl" 4433b6f2c9ccSmrg $as_echo '' >> "conftest.nl" 4434b6f2c9ccSmrg "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4435b6f2c9ccSmrg diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4436b6f2c9ccSmrg as_fn_arith $ac_count + 1 && ac_count=$as_val 4437b6f2c9ccSmrg if test $ac_count -gt ${ac_path_SED_max-0}; then 4438b6f2c9ccSmrg # Best one so far, save it but keep looking for a better one 4439b6f2c9ccSmrg ac_cv_path_SED="$ac_path_SED" 4440b6f2c9ccSmrg ac_path_SED_max=$ac_count 4441b6f2c9ccSmrg fi 4442b6f2c9ccSmrg # 10*(2^10) chars as input seems more than enough 4443b6f2c9ccSmrg test $ac_count -gt 10 && break 4444b6f2c9ccSmrg done 4445b6f2c9ccSmrg rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4446b6f2c9ccSmrgesac 4447b6f2c9ccSmrg 4448b6f2c9ccSmrg $ac_path_SED_found && break 3 4449b6f2c9ccSmrg done 4450b6f2c9ccSmrg done 4451b6f2c9ccSmrg done 4452b6f2c9ccSmrgIFS=$as_save_IFS 4453b6f2c9ccSmrg if test -z "$ac_cv_path_SED"; then 4454b6f2c9ccSmrg as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4455b6f2c9ccSmrg fi 4456b6f2c9ccSmrgelse 4457b6f2c9ccSmrg ac_cv_path_SED=$SED 4458b6f2c9ccSmrgfi 4459b6f2c9ccSmrg 4460b6f2c9ccSmrgfi 4461b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4462b6f2c9ccSmrg$as_echo "$ac_cv_path_SED" >&6; } 4463b6f2c9ccSmrg SED="$ac_cv_path_SED" 4464b6f2c9ccSmrg rm -f conftest.sed 4465b6f2c9ccSmrg 4466b6f2c9ccSmrg 4467e83ac88aSmrg 4468e83ac88aSmrg 4469e83ac88aSmrg 4470245f6787Smrg 4471e83ac88aSmrgif test "x$GCC" = xyes ; then 4472e83ac88aSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4473e83ac88aSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4474b6f2c9ccSmrg-Wbad-function-cast -Wformat=2" 4475e83ac88aSmrg case `$CC -dumpversion` in 4476e83ac88aSmrg 3.4.* | 4.*) 4477e83ac88aSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4478e83ac88aSmrg ;; 4479e83ac88aSmrg esac 4480e83ac88aSmrgelse 4481e83ac88aSmrg if test "x$SUNCC" = "xyes"; then 4482e83ac88aSmrg CWARNFLAGS="-v" 4483e83ac88aSmrg fi 4484e83ac88aSmrgfi 4485e83ac88aSmrg 4486e83ac88aSmrg 4487e83ac88aSmrg 4488b6f2c9ccSmrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4489e83ac88aSmrg 4490e83ac88aSmrg 4491e83ac88aSmrg 4492245f6787Smrg 4493e83ac88aSmrg# Check whether --enable-strict-compilation was given. 4494b6f2c9ccSmrgif test "${enable_strict_compilation+set}" = set; then : 4495e83ac88aSmrg enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4496b6f2c9ccSmrgelse 4497b6f2c9ccSmrg STRICT_COMPILE=no 4498e83ac88aSmrgfi 4499e83ac88aSmrg 4500245f6787Smrgif test "x$GCC" = xyes ; then 4501245f6787Smrg STRICT_CFLAGS="-pedantic -Werror" 4502245f6787Smrg # Add -Werror=attributes if supported (gcc 4.2 & later) 4503245f6787Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 4504245f6787Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 4505245f6787Smrg save_CFLAGS="$CFLAGS" 4506245f6787Smrg CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes" 4507245f6787Smrg cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508245f6787Smrg/* end confdefs.h. */ 4509245f6787Smrgreturn 0; 4510245f6787Smrg_ACEOF 4511245f6787Smrgif ac_fn_c_try_compile "$LINENO"; then : 4512245f6787Smrg STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 4513245f6787Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4514245f6787Smrg$as_echo "yes" >&6; } 4515e83ac88aSmrgelse 4516245f6787Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4517245f6787Smrg$as_echo "no" >&6; } 4518e83ac88aSmrgfi 4519245f6787Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4520245f6787Smrg CFLAGS="$save_CFLAGS" 4521245f6787Smrgelif test "x$SUNCC" = "xyes"; then 4522245f6787Smrg STRICT_CFLAGS="-errwarn" 4523245f6787Smrgelif test "x$INTELCC" = "xyes"; then 4524245f6787Smrg STRICT_CFLAGS="-Werror" 4525e83ac88aSmrgfi 4526245f6787Smrgif test "x$STRICT_COMPILE" = "xyes"; then 4527245f6787Smrg CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4528e83ac88aSmrgfi 4529245f6787Smrg 4530e83ac88aSmrg 4531e83ac88aSmrg 4532e83ac88aSmrg 4533e83ac88aSmrg 4534e83ac88aSmrgcat >>confdefs.h <<_ACEOF 4535e83ac88aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4536e83ac88aSmrg_ACEOF 4537e83ac88aSmrg 4538e83ac88aSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4539e83ac88aSmrg if test "x$PVM" = "x"; then 4540e83ac88aSmrg PVM="0" 4541e83ac88aSmrg fi 4542e83ac88aSmrg 4543e83ac88aSmrgcat >>confdefs.h <<_ACEOF 4544e83ac88aSmrg#define PACKAGE_VERSION_MINOR $PVM 4545e83ac88aSmrg_ACEOF 4546e83ac88aSmrg 4547e83ac88aSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4548e83ac88aSmrg if test "x$PVP" = "x"; then 4549e83ac88aSmrg PVP="0" 4550e83ac88aSmrg fi 4551e83ac88aSmrg 4552e83ac88aSmrgcat >>confdefs.h <<_ACEOF 4553e83ac88aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 4554e83ac88aSmrg_ACEOF 4555e83ac88aSmrg 4556e83ac88aSmrg 4557e83ac88aSmrg 4558b6f2c9ccSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4559b6f2c9ccSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4560b6f2c9ccSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4561e83ac88aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 4562e83ac88aSmrg 4563b6f2c9ccSmrg 4564b6f2c9ccSmrg 4565b6f2c9ccSmrg 4566b6f2c9ccSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4567b6f2c9ccSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4568b6f2c9ccSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4569b6f2c9ccSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4570b6f2c9ccSmrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4571b6f2c9ccSmrg 4572e83ac88aSmrg 4573e83ac88aSmrg 4574e83ac88aSmrg 4575e83ac88aSmrg 4576e83ac88aSmrg 4577e83ac88aSmrgif test x$APP_MAN_SUFFIX = x ; then 4578e83ac88aSmrg APP_MAN_SUFFIX=1 4579e83ac88aSmrgfi 4580e83ac88aSmrgif test x$APP_MAN_DIR = x ; then 4581e83ac88aSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4582e83ac88aSmrgfi 4583e83ac88aSmrg 4584e83ac88aSmrgif test x$LIB_MAN_SUFFIX = x ; then 4585e83ac88aSmrg LIB_MAN_SUFFIX=3 4586e83ac88aSmrgfi 4587e83ac88aSmrgif test x$LIB_MAN_DIR = x ; then 4588e83ac88aSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4589e83ac88aSmrgfi 4590e83ac88aSmrg 4591e83ac88aSmrgif test x$FILE_MAN_SUFFIX = x ; then 4592e83ac88aSmrg case $host_os in 4593e83ac88aSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 4594e83ac88aSmrg *) FILE_MAN_SUFFIX=5 ;; 4595e83ac88aSmrg esac 4596e83ac88aSmrgfi 4597e83ac88aSmrgif test x$FILE_MAN_DIR = x ; then 4598e83ac88aSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4599e83ac88aSmrgfi 4600e83ac88aSmrg 4601e83ac88aSmrgif test x$MISC_MAN_SUFFIX = x ; then 4602e83ac88aSmrg case $host_os in 4603e83ac88aSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 4604e83ac88aSmrg *) MISC_MAN_SUFFIX=7 ;; 4605e83ac88aSmrg esac 4606e83ac88aSmrgfi 4607e83ac88aSmrgif test x$MISC_MAN_DIR = x ; then 4608e83ac88aSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4609e83ac88aSmrgfi 4610e83ac88aSmrg 4611e83ac88aSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 4612e83ac88aSmrg case $host_os in 4613e83ac88aSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 4614e83ac88aSmrg *) DRIVER_MAN_SUFFIX=4 ;; 4615e83ac88aSmrg esac 4616e83ac88aSmrgfi 4617e83ac88aSmrgif test x$DRIVER_MAN_DIR = x ; then 4618e83ac88aSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4619e83ac88aSmrgfi 4620e83ac88aSmrg 4621e83ac88aSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 4622e83ac88aSmrg case $host_os in 4623e83ac88aSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 4624e83ac88aSmrg *) ADMIN_MAN_SUFFIX=8 ;; 4625e83ac88aSmrg esac 4626e83ac88aSmrgfi 4627e83ac88aSmrgif test x$ADMIN_MAN_DIR = x ; then 4628e83ac88aSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4629e83ac88aSmrgfi 4630e83ac88aSmrg 46317978d3cdSmrg 46327978d3cdSmrg 46337978d3cdSmrg 4634e83ac88aSmrg 4635e83ac88aSmrg 4636e83ac88aSmrg 4637e83ac88aSmrg 4638e83ac88aSmrg 4639e83ac88aSmrg 4640e83ac88aSmrg 4641e83ac88aSmrg 4642e83ac88aSmrg 4643e83ac88aSmrg 4644e83ac88aSmrg 4645b6f2c9ccSmrgXORG_MAN_PAGE="X Version 11" 4646b6f2c9ccSmrg 4647b6f2c9ccSmrgMAN_SUBSTS="\ 4648b6f2c9ccSmrg -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4649b6f2c9ccSmrg -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4650b6f2c9ccSmrg -e 's|__xservername__|Xorg|g' \ 4651b6f2c9ccSmrg -e 's|__xconfigfile__|xorg.conf|g' \ 4652b6f2c9ccSmrg -e 's|__projectroot__|\$(prefix)|g' \ 4653b6f2c9ccSmrg -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4654b6f2c9ccSmrg -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4655b6f2c9ccSmrg -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4656b6f2c9ccSmrg -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4657b6f2c9ccSmrg -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4658b6f2c9ccSmrg -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4659b6f2c9ccSmrg -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4660b6f2c9ccSmrg 4661b6f2c9ccSmrg 4662b6f2c9ccSmrg 4663b6f2c9ccSmrg# Check whether --enable-silent-rules was given. 4664b6f2c9ccSmrgif test "${enable_silent_rules+set}" = set; then : 4665b6f2c9ccSmrg enableval=$enable_silent_rules; 4666b6f2c9ccSmrgfi 4667b6f2c9ccSmrg 4668b6f2c9ccSmrgcase $enable_silent_rules in 4669b6f2c9ccSmrgyes) AM_DEFAULT_VERBOSITY=0;; 4670b6f2c9ccSmrgno) AM_DEFAULT_VERBOSITY=1;; 4671b6f2c9ccSmrg*) AM_DEFAULT_VERBOSITY=0;; 4672b6f2c9ccSmrgesac 4673b6f2c9ccSmrgAM_BACKSLASH='\' 4674e83ac88aSmrg 4675e83ac88aSmrg 4676e83ac88aSmrg 4677b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 4678e83ac88aSmrg$as_echo_n "checking for gzopen in -lz... " >&6; } 4679b6f2c9ccSmrgif ${ac_cv_lib_z_gzopen+:} false; then : 4680e83ac88aSmrg $as_echo_n "(cached) " >&6 46817978d3cdSmrgelse 46827978d3cdSmrg ac_check_lib_save_LIBS=$LIBS 46837978d3cdSmrgLIBS="-lz $LIBS" 4684b6f2c9ccSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 46857978d3cdSmrg/* end confdefs.h. */ 46867978d3cdSmrg 46877978d3cdSmrg/* Override any GCC internal prototype to avoid an error. 46887978d3cdSmrg Use char because int might match the return type of a GCC 46897978d3cdSmrg builtin and then its argument prototype would still apply. */ 46907978d3cdSmrg#ifdef __cplusplus 46917978d3cdSmrgextern "C" 46927978d3cdSmrg#endif 46937978d3cdSmrgchar gzopen (); 46947978d3cdSmrgint 46957978d3cdSmrgmain () 46967978d3cdSmrg{ 46977978d3cdSmrgreturn gzopen (); 46987978d3cdSmrg ; 46997978d3cdSmrg return 0; 47007978d3cdSmrg} 47017978d3cdSmrg_ACEOF 4702b6f2c9ccSmrgif ac_fn_c_try_link "$LINENO"; then : 47037978d3cdSmrg ac_cv_lib_z_gzopen=yes 47047978d3cdSmrgelse 4705b6f2c9ccSmrg ac_cv_lib_z_gzopen=no 47067978d3cdSmrgfi 4707b6f2c9ccSmrgrm -f core conftest.err conftest.$ac_objext \ 4708b6f2c9ccSmrg conftest$ac_exeext conftest.$ac_ext 47097978d3cdSmrgLIBS=$ac_check_lib_save_LIBS 47107978d3cdSmrgfi 4711b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 4712e83ac88aSmrg$as_echo "$ac_cv_lib_z_gzopen" >&6; } 4713b6f2c9ccSmrgif test "x$ac_cv_lib_z_gzopen" = xyes; then : 47147978d3cdSmrg cat >>confdefs.h <<_ACEOF 47157978d3cdSmrg#define HAVE_LIBZ 1 47167978d3cdSmrg_ACEOF 47177978d3cdSmrg 47187978d3cdSmrg LIBS="-lz $LIBS" 47197978d3cdSmrg 47207978d3cdSmrgelse 4721b6f2c9ccSmrg as_fn_error $? "zlib is required, but was not found." "$LINENO" 5 47227978d3cdSmrgfi 47237978d3cdSmrg 47247978d3cdSmrg 47257978d3cdSmrg 47267978d3cdSmrg# Check whether --with-bzip2 was given. 4727b6f2c9ccSmrgif test "${with_bzip2+set}" = set; then : 47287978d3cdSmrg withval=$with_bzip2; 47297978d3cdSmrgelse 47307978d3cdSmrg with_bzip2=no 47317978d3cdSmrgfi 47327978d3cdSmrg 47337978d3cdSmrgif test "x$with_bzip2" = xyes; then 4734b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 4735e83ac88aSmrg$as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; } 4736b6f2c9ccSmrgif ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then : 4737e83ac88aSmrg $as_echo_n "(cached) " >&6 47387978d3cdSmrgelse 47397978d3cdSmrg ac_check_lib_save_LIBS=$LIBS 47407978d3cdSmrgLIBS="-lbz2 $LIBS" 4741b6f2c9ccSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext 47427978d3cdSmrg/* end confdefs.h. */ 47437978d3cdSmrg 47447978d3cdSmrg/* Override any GCC internal prototype to avoid an error. 47457978d3cdSmrg Use char because int might match the return type of a GCC 47467978d3cdSmrg builtin and then its argument prototype would still apply. */ 47477978d3cdSmrg#ifdef __cplusplus 47487978d3cdSmrgextern "C" 47497978d3cdSmrg#endif 47507978d3cdSmrgchar BZ2_bzopen (); 47517978d3cdSmrgint 47527978d3cdSmrgmain () 47537978d3cdSmrg{ 47547978d3cdSmrgreturn BZ2_bzopen (); 47557978d3cdSmrg ; 47567978d3cdSmrg return 0; 47577978d3cdSmrg} 47587978d3cdSmrg_ACEOF 4759b6f2c9ccSmrgif ac_fn_c_try_link "$LINENO"; then : 47607978d3cdSmrg ac_cv_lib_bz2_BZ2_bzopen=yes 47617978d3cdSmrgelse 4762b6f2c9ccSmrg ac_cv_lib_bz2_BZ2_bzopen=no 47637978d3cdSmrgfi 4764b6f2c9ccSmrgrm -f core conftest.err conftest.$ac_objext \ 4765b6f2c9ccSmrg conftest$ac_exeext conftest.$ac_ext 47667978d3cdSmrgLIBS=$ac_check_lib_save_LIBS 47677978d3cdSmrgfi 4768b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 4769e83ac88aSmrg$as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 4770b6f2c9ccSmrgif test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then : 47717978d3cdSmrg cat >>confdefs.h <<_ACEOF 47727978d3cdSmrg#define HAVE_LIBBZ2 1 47737978d3cdSmrg_ACEOF 47747978d3cdSmrg 47757978d3cdSmrg LIBS="-lbz2 $LIBS" 47767978d3cdSmrg 47777978d3cdSmrgelse 4778b6f2c9ccSmrg as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 47797978d3cdSmrgfi 47807978d3cdSmrg 47817978d3cdSmrg 4782b6f2c9ccSmrg$as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 47837978d3cdSmrg 47847978d3cdSmrgfi 47857978d3cdSmrg 47867978d3cdSmrg# Checks for pkg-config packages 47877978d3cdSmrg 4788ea6ae205Smrgpkg_failed=no 4789b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKFONTSCALE" >&5 4790e83ac88aSmrg$as_echo_n "checking for MKFONTSCALE... " >&6; } 4791e83ac88aSmrg 4792e83ac88aSmrgif test -n "$MKFONTSCALE_CFLAGS"; then 4793e83ac88aSmrg pkg_cv_MKFONTSCALE_CFLAGS="$MKFONTSCALE_CFLAGS" 4794e83ac88aSmrg elif test -n "$PKG_CONFIG"; then 4795e83ac88aSmrg if test -n "$PKG_CONFIG" && \ 4796b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 4797ea6ae205Smrg ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 4798ea6ae205Smrg ac_status=$? 4799b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4800b6f2c9ccSmrg test $ac_status = 0; }; then 4801ea6ae205Smrg pkg_cv_MKFONTSCALE_CFLAGS=`$PKG_CONFIG --cflags "fontenc freetype2" 2>/dev/null` 4802ea6ae205Smrgelse 4803ea6ae205Smrg pkg_failed=yes 4804ea6ae205Smrgfi 4805e83ac88aSmrg else 4806e83ac88aSmrg pkg_failed=untried 4807ea6ae205Smrgfi 4808e83ac88aSmrgif test -n "$MKFONTSCALE_LIBS"; then 4809e83ac88aSmrg pkg_cv_MKFONTSCALE_LIBS="$MKFONTSCALE_LIBS" 4810e83ac88aSmrg elif test -n "$PKG_CONFIG"; then 4811e83ac88aSmrg if test -n "$PKG_CONFIG" && \ 4812b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc freetype2\""; } >&5 4813ea6ae205Smrg ($PKG_CONFIG --exists --print-errors "fontenc freetype2") 2>&5 4814ea6ae205Smrg ac_status=$? 4815b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4816b6f2c9ccSmrg test $ac_status = 0; }; then 4817ea6ae205Smrg pkg_cv_MKFONTSCALE_LIBS=`$PKG_CONFIG --libs "fontenc freetype2" 2>/dev/null` 4818ea6ae205Smrgelse 4819ea6ae205Smrg pkg_failed=yes 4820ea6ae205Smrgfi 4821e83ac88aSmrg else 4822e83ac88aSmrg pkg_failed=untried 4823ea6ae205Smrgfi 4824ea6ae205Smrg 4825ea6ae205Smrg 4826ea6ae205Smrg 4827e83ac88aSmrgif test $pkg_failed = yes; then 4828ea6ae205Smrg 4829e83ac88aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 4830e83ac88aSmrg _pkg_short_errors_supported=yes 4831ea6ae205Smrgelse 4832e83ac88aSmrg _pkg_short_errors_supported=no 4833ea6ae205Smrgfi 4834e83ac88aSmrg if test $_pkg_short_errors_supported = yes; then 4835e83ac88aSmrg MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc freetype2" 2>&1` 4836e83ac88aSmrg else 4837e83ac88aSmrg MKFONTSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc freetype2" 2>&1` 4838e83ac88aSmrg fi 4839e83ac88aSmrg # Put the nasty error message in config.log where it belongs 4840e83ac88aSmrg echo "$MKFONTSCALE_PKG_ERRORS" >&5 4841ea6ae205Smrg 4842b6f2c9ccSmrg as_fn_error $? "Package requirements (fontenc freetype2) were not met: 4843e83ac88aSmrg 4844e83ac88aSmrg$MKFONTSCALE_PKG_ERRORS 4845e83ac88aSmrg 4846ea6ae205SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 4847ea6ae205Smrginstalled software in a non-standard prefix. 4848ea6ae205Smrg 4849e83ac88aSmrgAlternatively, you may set the environment variables MKFONTSCALE_CFLAGS 4850e83ac88aSmrgand MKFONTSCALE_LIBS to avoid the need to call pkg-config. 4851e83ac88aSmrgSee the pkg-config man page for more details. 4852b6f2c9ccSmrg" "$LINENO" 5 4853ea6ae205Smrgelif test $pkg_failed = untried; then 4854b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4855e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4856b6f2c9ccSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 4857ea6ae205Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 4858ea6ae205Smrgpath to pkg-config. 4859ea6ae205Smrg 4860e83ac88aSmrgAlternatively, you may set the environment variables MKFONTSCALE_CFLAGS 4861e83ac88aSmrgand MKFONTSCALE_LIBS to avoid the need to call pkg-config. 4862e83ac88aSmrgSee the pkg-config man page for more details. 4863ea6ae205Smrg 4864e83ac88aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 4865b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 4866e83ac88aSmrgelse 4867e83ac88aSmrg MKFONTSCALE_CFLAGS=$pkg_cv_MKFONTSCALE_CFLAGS 4868e83ac88aSmrg MKFONTSCALE_LIBS=$pkg_cv_MKFONTSCALE_LIBS 4869b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4870e83ac88aSmrg$as_echo "yes" >&6; } 4871e83ac88aSmrg : 4872ea6ae205Smrgfi 4873ea6ae205Smrg 4874e83ac88aSmrgpkg_failed=no 4875b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 4876e83ac88aSmrg$as_echo_n "checking for X11... " >&6; } 4877e83ac88aSmrg 4878e83ac88aSmrgif test -n "$X11_CFLAGS"; then 4879e83ac88aSmrg pkg_cv_X11_CFLAGS="$X11_CFLAGS" 4880e83ac88aSmrg elif test -n "$PKG_CONFIG"; then 4881e83ac88aSmrg if test -n "$PKG_CONFIG" && \ 4882b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 4883e83ac88aSmrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 4884e83ac88aSmrg ac_status=$? 4885b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4886b6f2c9ccSmrg test $ac_status = 0; }; then 4887e83ac88aSmrg pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 4888e83ac88aSmrgelse 4889e83ac88aSmrg pkg_failed=yes 4890ea6ae205Smrgfi 4891e83ac88aSmrg else 4892e83ac88aSmrg pkg_failed=untried 4893ea6ae205Smrgfi 4894e83ac88aSmrgif test -n "$X11_LIBS"; then 4895e83ac88aSmrg pkg_cv_X11_LIBS="$X11_LIBS" 4896e83ac88aSmrg elif test -n "$PKG_CONFIG"; then 4897e83ac88aSmrg if test -n "$PKG_CONFIG" && \ 4898b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 4899e83ac88aSmrg ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 4900e83ac88aSmrg ac_status=$? 4901b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4902b6f2c9ccSmrg test $ac_status = 0; }; then 4903e83ac88aSmrg pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 4904e83ac88aSmrgelse 4905e83ac88aSmrg pkg_failed=yes 4906ea6ae205Smrgfi 4907e83ac88aSmrg else 4908e83ac88aSmrg pkg_failed=untried 4909ea6ae205Smrgfi 4910ea6ae205Smrg 4911ea6ae205Smrg 4912ea6ae205Smrg 4913e83ac88aSmrgif test $pkg_failed = yes; then 4914ea6ae205Smrg 4915e83ac88aSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 4916e83ac88aSmrg _pkg_short_errors_supported=yes 4917e83ac88aSmrgelse 4918e83ac88aSmrg _pkg_short_errors_supported=no 4919e83ac88aSmrgfi 4920e83ac88aSmrg if test $_pkg_short_errors_supported = yes; then 4921e83ac88aSmrg X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 4922e83ac88aSmrg else 4923e83ac88aSmrg X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 4924e83ac88aSmrg fi 4925e83ac88aSmrg # Put the nasty error message in config.log where it belongs 4926e83ac88aSmrg echo "$X11_PKG_ERRORS" >&5 4927ea6ae205Smrg 4928b6f2c9ccSmrg as_fn_error $? "Package requirements (xproto) were not met: 4929ea6ae205Smrg 4930e83ac88aSmrg$X11_PKG_ERRORS 4931ea6ae205Smrg 4932e83ac88aSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 4933e83ac88aSmrginstalled software in a non-standard prefix. 4934ea6ae205Smrg 4935e83ac88aSmrgAlternatively, you may set the environment variables X11_CFLAGS 4936e83ac88aSmrgand X11_LIBS to avoid the need to call pkg-config. 4937e83ac88aSmrgSee the pkg-config man page for more details. 4938b6f2c9ccSmrg" "$LINENO" 5 4939e83ac88aSmrgelif test $pkg_failed = untried; then 4940b6f2c9ccSmrg { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4941e83ac88aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4942b6f2c9ccSmrgas_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 4943e83ac88aSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 4944e83ac88aSmrgpath to pkg-config. 4945ea6ae205Smrg 4946e83ac88aSmrgAlternatively, you may set the environment variables X11_CFLAGS 4947e83ac88aSmrgand X11_LIBS to avoid the need to call pkg-config. 4948e83ac88aSmrgSee the pkg-config man page for more details. 4949ea6ae205Smrg 4950e83ac88aSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>. 4951b6f2c9ccSmrgSee \`config.log' for more details" "$LINENO" 5; } 4952b6f2c9ccSmrgelse 4953b6f2c9ccSmrg X11_CFLAGS=$pkg_cv_X11_CFLAGS 4954b6f2c9ccSmrg X11_LIBS=$pkg_cv_X11_LIBS 4955b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4956b6f2c9ccSmrg$as_echo "yes" >&6; } 4957b6f2c9ccSmrg : 4958b6f2c9ccSmrgfi 4959ea6ae205Smrg 4960ea6ae205Smrg 4961b6f2c9ccSmrg 4962b6f2c9ccSmrg 4963b6f2c9ccSmrg 4964b6f2c9ccSmrg 4965b6f2c9ccSmrg# Check whether --with-lint was given. 4966b6f2c9ccSmrgif test "${with_lint+set}" = set; then : 4967b6f2c9ccSmrg withval=$with_lint; use_lint=$withval 4968b6f2c9ccSmrgelse 4969b6f2c9ccSmrg use_lint=no 4970b6f2c9ccSmrgfi 4971b6f2c9ccSmrg 4972b6f2c9ccSmrg 4973b6f2c9ccSmrg# Obtain platform specific info like program name and options 4974b6f2c9ccSmrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris 4975b6f2c9ccSmrgcase $host_os in 4976b6f2c9ccSmrg *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 4977b6f2c9ccSmrg lint_name=splint 4978b6f2c9ccSmrg lint_options="-badflag" 4979b6f2c9ccSmrg ;; 4980b6f2c9ccSmrg *freebsd* | *netbsd*) 4981b6f2c9ccSmrg lint_name=lint 4982b6f2c9ccSmrg lint_options="-u -b" 4983b6f2c9ccSmrg ;; 4984b6f2c9ccSmrg *solaris*) 4985b6f2c9ccSmrg lint_name=lint 4986b6f2c9ccSmrg lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 4987b6f2c9ccSmrg ;; 4988b6f2c9ccSmrgesac 4989b6f2c9ccSmrg 4990b6f2c9ccSmrg# Test for the presence of the program (either guessed by the code or spelled out by the user) 4991b6f2c9ccSmrgif test "x$use_lint" = x"yes" ; then 4992b6f2c9ccSmrg # Extract the first word of "$lint_name", so it can be a program name with args. 4993b6f2c9ccSmrgset dummy $lint_name; ac_word=$2 4994b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4995b6f2c9ccSmrg$as_echo_n "checking for $ac_word... " >&6; } 4996b6f2c9ccSmrgif ${ac_cv_path_LINT+:} false; then : 4997b6f2c9ccSmrg $as_echo_n "(cached) " >&6 4998b6f2c9ccSmrgelse 4999b6f2c9ccSmrg case $LINT in 5000b6f2c9ccSmrg [\\/]* | ?:[\\/]*) 5001b6f2c9ccSmrg ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 5002b6f2c9ccSmrg ;; 5003b6f2c9ccSmrg *) 5004b6f2c9ccSmrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5005b6f2c9ccSmrgfor as_dir in $PATH 5006b6f2c9ccSmrgdo 5007b6f2c9ccSmrg IFS=$as_save_IFS 5008b6f2c9ccSmrg test -z "$as_dir" && as_dir=. 5009b6f2c9ccSmrg for ac_exec_ext in '' $ac_executable_extensions; do 5010b6f2c9ccSmrg if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5011b6f2c9ccSmrg ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 5012b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5013b6f2c9ccSmrg break 2 5014b6f2c9ccSmrg fi 5015b6f2c9ccSmrgdone 5016b6f2c9ccSmrg done 5017b6f2c9ccSmrgIFS=$as_save_IFS 5018b6f2c9ccSmrg 5019b6f2c9ccSmrg ;; 5020b6f2c9ccSmrgesac 5021b6f2c9ccSmrgfi 5022b6f2c9ccSmrgLINT=$ac_cv_path_LINT 5023b6f2c9ccSmrgif test -n "$LINT"; then 5024b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 5025b6f2c9ccSmrg$as_echo "$LINT" >&6; } 5026ea6ae205Smrgelse 5027b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5028b6f2c9ccSmrg$as_echo "no" >&6; } 5029ea6ae205Smrgfi 5030ea6ae205Smrg 5031ea6ae205Smrg 5032b6f2c9ccSmrg if test "x$LINT" = "x"; then 5033b6f2c9ccSmrg as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 5034b6f2c9ccSmrg fi 5035b6f2c9ccSmrgelif test "x$use_lint" = x"no" ; then 5036b6f2c9ccSmrg if test "x$LINT" != "x"; then 5037b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 5038b6f2c9ccSmrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 5039b6f2c9ccSmrg fi 5040e83ac88aSmrgelse 5041b6f2c9ccSmrg as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 5042e83ac88aSmrgfi 5043ea6ae205Smrg 5044b6f2c9ccSmrg# User supplied flags override default flags 5045b6f2c9ccSmrgif test "x$LINT_FLAGS" != "x"; then 5046b6f2c9ccSmrg lint_options=$LINT_FLAGS 5047e83ac88aSmrgfi 5048ea6ae205Smrg 5049b6f2c9ccSmrgLINT_FLAGS=$lint_options 5050ea6ae205Smrg 5051b6f2c9ccSmrg if test "x$LINT" != x; then 5052e83ac88aSmrg LINT_TRUE= 5053e83ac88aSmrg LINT_FALSE='#' 5054e83ac88aSmrgelse 5055e83ac88aSmrg LINT_TRUE='#' 5056e83ac88aSmrg LINT_FALSE= 5057e83ac88aSmrgfi 50587978d3cdSmrg 50597978d3cdSmrg 50607978d3cdSmrg 50617978d3cdSmrg 5062245f6787Smrgac_config_files="$ac_config_files Makefile man/Makefile" 5063ea6ae205Smrg 5064ea6ae205Smrgcat >confcache <<\_ACEOF 5065ea6ae205Smrg# This file is a shell script that caches the results of configure 5066ea6ae205Smrg# tests run on this system so they can be shared between configure 5067ea6ae205Smrg# scripts and configure runs, see configure's option --config-cache. 5068ea6ae205Smrg# It is not useful on other systems. If it contains results you don't 5069ea6ae205Smrg# want to keep, you may remove or edit it. 5070ea6ae205Smrg# 5071ea6ae205Smrg# config.status only pays attention to the cache file if you give it 5072ea6ae205Smrg# the --recheck option to rerun configure. 5073ea6ae205Smrg# 5074ea6ae205Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 5075ea6ae205Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 5076ea6ae205Smrg# following values. 5077ea6ae205Smrg 5078ea6ae205Smrg_ACEOF 5079ea6ae205Smrg 5080ea6ae205Smrg# The following way of writing the cache mishandles newlines in values, 5081ea6ae205Smrg# but we know of no workaround that is simple, portable, and efficient. 5082ea6ae205Smrg# So, we kill variables containing newlines. 5083ea6ae205Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 5084ea6ae205Smrg# and sets the high bit in the cache file unless we assign to the vars. 5085ea6ae205Smrg( 5086ea6ae205Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5087ea6ae205Smrg eval ac_val=\$$ac_var 5088ea6ae205Smrg case $ac_val in #( 5089ea6ae205Smrg *${as_nl}*) 5090ea6ae205Smrg case $ac_var in #( 5091b6f2c9ccSmrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5092e83ac88aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5093ea6ae205Smrg esac 5094ea6ae205Smrg case $ac_var in #( 5095ea6ae205Smrg _ | IFS | as_nl) ;; #( 5096e83ac88aSmrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5097b6f2c9ccSmrg *) { eval $ac_var=; unset $ac_var;} ;; 5098ea6ae205Smrg esac ;; 5099ea6ae205Smrg esac 5100ea6ae205Smrg done 5101ea6ae205Smrg 5102ea6ae205Smrg (set) 2>&1 | 5103ea6ae205Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 5104ea6ae205Smrg *${as_nl}ac_space=\ *) 5105b6f2c9ccSmrg # `set' does not quote correctly, so add quotes: double-quote 5106b6f2c9ccSmrg # substitution turns \\\\ into \\, and sed turns \\ into \. 5107ea6ae205Smrg sed -n \ 5108ea6ae205Smrg "s/'/'\\\\''/g; 5109ea6ae205Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5110ea6ae205Smrg ;; #( 5111ea6ae205Smrg *) 5112ea6ae205Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 5113ea6ae205Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5114ea6ae205Smrg ;; 5115ea6ae205Smrg esac | 5116ea6ae205Smrg sort 5117ea6ae205Smrg) | 5118ea6ae205Smrg sed ' 5119ea6ae205Smrg /^ac_cv_env_/b end 5120ea6ae205Smrg t clear 5121ea6ae205Smrg :clear 5122ea6ae205Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5123ea6ae205Smrg t end 5124ea6ae205Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5125ea6ae205Smrg :end' >>confcache 5126ea6ae205Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5127ea6ae205Smrg if test -w "$cache_file"; then 5128b6f2c9ccSmrg if test "x$cache_file" != "x/dev/null"; then 5129b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5130e83ac88aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;} 5131b6f2c9ccSmrg if test ! -f "$cache_file" || test -h "$cache_file"; then 5132b6f2c9ccSmrg cat confcache >"$cache_file" 5133b6f2c9ccSmrg else 5134b6f2c9ccSmrg case $cache_file in #( 5135b6f2c9ccSmrg */* | ?:*) 5136b6f2c9ccSmrg mv -f confcache "$cache_file"$$ && 5137b6f2c9ccSmrg mv -f "$cache_file"$$ "$cache_file" ;; #( 5138b6f2c9ccSmrg *) 5139b6f2c9ccSmrg mv -f confcache "$cache_file" ;; 5140b6f2c9ccSmrg esac 5141b6f2c9ccSmrg fi 5142b6f2c9ccSmrg fi 5143ea6ae205Smrg else 5144b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5145e83ac88aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5146ea6ae205Smrg fi 5147ea6ae205Smrgfi 5148ea6ae205Smrgrm -f confcache 5149ea6ae205Smrg 5150ea6ae205Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 5151ea6ae205Smrg# Let make expand exec_prefix. 5152ea6ae205Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5153ea6ae205Smrg 5154ea6ae205SmrgDEFS=-DHAVE_CONFIG_H 5155ea6ae205Smrg 5156ea6ae205Smrgac_libobjs= 5157ea6ae205Smrgac_ltlibobjs= 5158b6f2c9ccSmrgU= 5159ea6ae205Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5160ea6ae205Smrg # 1. Remove the extension, and $U if already installed. 5161ea6ae205Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5162e83ac88aSmrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5163ea6ae205Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5164ea6ae205Smrg # will be set to the directory where LIBOBJS objects are built. 5165b6f2c9ccSmrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5166b6f2c9ccSmrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5167ea6ae205Smrgdone 5168ea6ae205SmrgLIBOBJS=$ac_libobjs 5169ea6ae205Smrg 5170ea6ae205SmrgLTLIBOBJS=$ac_ltlibobjs 5171ea6ae205Smrg 5172ea6ae205Smrg 5173e83ac88aSmrg if test -n "$EXEEXT"; then 5174e83ac88aSmrg am__EXEEXT_TRUE= 5175e83ac88aSmrg am__EXEEXT_FALSE='#' 5176e83ac88aSmrgelse 5177e83ac88aSmrg am__EXEEXT_TRUE='#' 5178e83ac88aSmrg am__EXEEXT_FALSE= 5179e83ac88aSmrgfi 5180e83ac88aSmrg 5181ea6ae205Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 5182b6f2c9ccSmrg as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 5183b6f2c9ccSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5184ea6ae205Smrgfi 5185ea6ae205Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5186b6f2c9ccSmrg as_fn_error $? "conditional \"AMDEP\" was never defined. 5187b6f2c9ccSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5188ea6ae205Smrgfi 5189ea6ae205Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5190b6f2c9ccSmrg as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 5191b6f2c9ccSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 5192ea6ae205Smrgfi 51937978d3cdSmrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 5194b6f2c9ccSmrg as_fn_error $? "conditional \"LINT\" was never defined. 5195b6f2c9ccSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5 51967978d3cdSmrgfi 5197ea6ae205Smrg 5198b6f2c9ccSmrg: "${CONFIG_STATUS=./config.status}" 5199e83ac88aSmrgac_write_fail=0 5200ea6ae205Smrgac_clean_files_save=$ac_clean_files 5201ea6ae205Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 5202b6f2c9ccSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5203e83ac88aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5204b6f2c9ccSmrgas_write_fail=0 5205b6f2c9ccSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5206ea6ae205Smrg#! $SHELL 5207ea6ae205Smrg# Generated by $as_me. 5208ea6ae205Smrg# Run this file to recreate the current configuration. 5209ea6ae205Smrg# Compiler output produced by configure, useful for debugging 5210ea6ae205Smrg# configure, is in config.log if it exists. 5211ea6ae205Smrg 5212ea6ae205Smrgdebug=false 5213ea6ae205Smrgac_cs_recheck=false 5214ea6ae205Smrgac_cs_silent=false 5215ea6ae205Smrg 5216b6f2c9ccSmrgSHELL=\${CONFIG_SHELL-$SHELL} 5217b6f2c9ccSmrgexport SHELL 5218b6f2c9ccSmrg_ASEOF 5219b6f2c9ccSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5220b6f2c9ccSmrg## -------------------- ## 5221b6f2c9ccSmrg## M4sh Initialization. ## 5222b6f2c9ccSmrg## -------------------- ## 5223ea6ae205Smrg 5224ea6ae205Smrg# Be more Bourne compatible 5225ea6ae205SmrgDUALCASE=1; export DUALCASE # for MKS sh 5226b6f2c9ccSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5227ea6ae205Smrg emulate sh 5228ea6ae205Smrg NULLCMD=: 5229e83ac88aSmrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5230ea6ae205Smrg # is contrary to our usage. Disable this feature. 5231ea6ae205Smrg alias -g '${1+"$@"}'='"$@"' 5232ea6ae205Smrg setopt NO_GLOB_SUBST 5233ea6ae205Smrgelse 5234b6f2c9ccSmrg case `(set -o) 2>/dev/null` in #( 5235b6f2c9ccSmrg *posix*) : 5236b6f2c9ccSmrg set -o posix ;; #( 5237b6f2c9ccSmrg *) : 5238b6f2c9ccSmrg ;; 5239ea6ae205Smrgesac 5240ea6ae205Smrgfi 5241ea6ae205Smrg 5242ea6ae205Smrg 5243e83ac88aSmrgas_nl=' 5244e83ac88aSmrg' 5245e83ac88aSmrgexport as_nl 5246e83ac88aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 5247e83ac88aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5248e83ac88aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5249e83ac88aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5250b6f2c9ccSmrg# Prefer a ksh shell builtin over an external printf program on Solaris, 5251b6f2c9ccSmrg# but without wasting forks for bash or zsh. 5252b6f2c9ccSmrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 5253b6f2c9ccSmrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5254b6f2c9ccSmrg as_echo='print -r --' 5255b6f2c9ccSmrg as_echo_n='print -rn --' 5256b6f2c9ccSmrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5257e83ac88aSmrg as_echo='printf %s\n' 5258e83ac88aSmrg as_echo_n='printf %s' 5259e83ac88aSmrgelse 5260e83ac88aSmrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5261e83ac88aSmrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5262e83ac88aSmrg as_echo_n='/usr/ucb/echo -n' 5263ea6ae205Smrg else 5264e83ac88aSmrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5265e83ac88aSmrg as_echo_n_body='eval 5266e83ac88aSmrg arg=$1; 5267b6f2c9ccSmrg case $arg in #( 5268e83ac88aSmrg *"$as_nl"*) 5269e83ac88aSmrg expr "X$arg" : "X\\(.*\\)$as_nl"; 5270e83ac88aSmrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5271e83ac88aSmrg esac; 5272e83ac88aSmrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5273e83ac88aSmrg ' 5274e83ac88aSmrg export as_echo_n_body 5275e83ac88aSmrg as_echo_n='sh -c $as_echo_n_body as_echo' 5276ea6ae205Smrg fi 5277e83ac88aSmrg export as_echo_body 5278e83ac88aSmrg as_echo='sh -c $as_echo_body as_echo' 5279e83ac88aSmrgfi 5280e83ac88aSmrg 5281e83ac88aSmrg# The user is always right. 5282e83ac88aSmrgif test "${PATH_SEPARATOR+set}" != set; then 5283e83ac88aSmrg PATH_SEPARATOR=: 5284e83ac88aSmrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5285e83ac88aSmrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5286e83ac88aSmrg PATH_SEPARATOR=';' 5287e83ac88aSmrg } 5288ea6ae205Smrgfi 5289ea6ae205Smrg 5290ea6ae205Smrg 5291ea6ae205Smrg# IFS 5292ea6ae205Smrg# We need space, tab and new line, in precisely that order. Quoting is 5293ea6ae205Smrg# there to prevent editors from complaining about space-tab. 5294ea6ae205Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5295ea6ae205Smrg# splitting by setting IFS to empty value.) 5296ea6ae205SmrgIFS=" "" $as_nl" 5297ea6ae205Smrg 5298ea6ae205Smrg# Find who we are. Look in the path if we contain no directory separator. 5299b6f2c9ccSmrgas_myself= 5300b6f2c9ccSmrgcase $0 in #(( 5301ea6ae205Smrg *[\\/]* ) as_myself=$0 ;; 5302ea6ae205Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303ea6ae205Smrgfor as_dir in $PATH 5304ea6ae205Smrgdo 5305ea6ae205Smrg IFS=$as_save_IFS 5306ea6ae205Smrg test -z "$as_dir" && as_dir=. 5307b6f2c9ccSmrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5308b6f2c9ccSmrg done 5309ea6ae205SmrgIFS=$as_save_IFS 5310ea6ae205Smrg 5311ea6ae205Smrg ;; 5312ea6ae205Smrgesac 5313ea6ae205Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 5314ea6ae205Smrg# in which case we are not to be found in the path. 5315ea6ae205Smrgif test "x$as_myself" = x; then 5316ea6ae205Smrg as_myself=$0 5317ea6ae205Smrgfi 5318ea6ae205Smrgif test ! -f "$as_myself"; then 5319e83ac88aSmrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5320b6f2c9ccSmrg exit 1 5321ea6ae205Smrgfi 5322ea6ae205Smrg 5323b6f2c9ccSmrg# Unset variables that we do not need and which cause bugs (e.g. in 5324b6f2c9ccSmrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5325b6f2c9ccSmrg# suppresses any "Segmentation fault" message there. '((' could 5326b6f2c9ccSmrg# trigger a bug in pdksh 5.2.14. 5327b6f2c9ccSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH 5328b6f2c9ccSmrgdo eval test x\${$as_var+set} = xset \ 5329b6f2c9ccSmrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5330ea6ae205Smrgdone 5331ea6ae205SmrgPS1='$ ' 5332ea6ae205SmrgPS2='> ' 5333ea6ae205SmrgPS4='+ ' 5334ea6ae205Smrg 5335ea6ae205Smrg# NLS nuisances. 5336e83ac88aSmrgLC_ALL=C 5337e83ac88aSmrgexport LC_ALL 5338e83ac88aSmrgLANGUAGE=C 5339e83ac88aSmrgexport LANGUAGE 5340ea6ae205Smrg 5341b6f2c9ccSmrg# CDPATH. 5342b6f2c9ccSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5343b6f2c9ccSmrg 5344b6f2c9ccSmrg 5345b6f2c9ccSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 5346b6f2c9ccSmrg# ---------------------------------------- 5347b6f2c9ccSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5348b6f2c9ccSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5349b6f2c9ccSmrg# script with STATUS, using 1 if that was 0. 5350b6f2c9ccSmrgas_fn_error () 5351b6f2c9ccSmrg{ 5352b6f2c9ccSmrg as_status=$1; test $as_status -eq 0 && as_status=1 5353b6f2c9ccSmrg if test "$4"; then 5354b6f2c9ccSmrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5355b6f2c9ccSmrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5356b6f2c9ccSmrg fi 5357b6f2c9ccSmrg $as_echo "$as_me: error: $2" >&2 5358b6f2c9ccSmrg as_fn_exit $as_status 5359b6f2c9ccSmrg} # as_fn_error 5360b6f2c9ccSmrg 5361b6f2c9ccSmrg 5362b6f2c9ccSmrg# as_fn_set_status STATUS 5363b6f2c9ccSmrg# ----------------------- 5364b6f2c9ccSmrg# Set $? to STATUS, without forking. 5365b6f2c9ccSmrgas_fn_set_status () 5366b6f2c9ccSmrg{ 5367b6f2c9ccSmrg return $1 5368b6f2c9ccSmrg} # as_fn_set_status 5369b6f2c9ccSmrg 5370b6f2c9ccSmrg# as_fn_exit STATUS 5371b6f2c9ccSmrg# ----------------- 5372b6f2c9ccSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5373b6f2c9ccSmrgas_fn_exit () 5374b6f2c9ccSmrg{ 5375b6f2c9ccSmrg set +e 5376b6f2c9ccSmrg as_fn_set_status $1 5377b6f2c9ccSmrg exit $1 5378b6f2c9ccSmrg} # as_fn_exit 5379b6f2c9ccSmrg 5380b6f2c9ccSmrg# as_fn_unset VAR 5381b6f2c9ccSmrg# --------------- 5382b6f2c9ccSmrg# Portably unset VAR. 5383b6f2c9ccSmrgas_fn_unset () 5384b6f2c9ccSmrg{ 5385b6f2c9ccSmrg { eval $1=; unset $1;} 5386b6f2c9ccSmrg} 5387b6f2c9ccSmrgas_unset=as_fn_unset 5388b6f2c9ccSmrg# as_fn_append VAR VALUE 5389b6f2c9ccSmrg# ---------------------- 5390b6f2c9ccSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take 5391b6f2c9ccSmrg# advantage of any shell optimizations that allow amortized linear growth over 5392b6f2c9ccSmrg# repeated appends, instead of the typical quadratic growth present in naive 5393b6f2c9ccSmrg# implementations. 5394b6f2c9ccSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5395b6f2c9ccSmrg eval 'as_fn_append () 5396b6f2c9ccSmrg { 5397b6f2c9ccSmrg eval $1+=\$2 5398b6f2c9ccSmrg }' 5399b6f2c9ccSmrgelse 5400b6f2c9ccSmrg as_fn_append () 5401b6f2c9ccSmrg { 5402b6f2c9ccSmrg eval $1=\$$1\$2 5403b6f2c9ccSmrg } 5404b6f2c9ccSmrgfi # as_fn_append 5405b6f2c9ccSmrg 5406b6f2c9ccSmrg# as_fn_arith ARG... 5407b6f2c9ccSmrg# ------------------ 5408b6f2c9ccSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the 5409b6f2c9ccSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 5410b6f2c9ccSmrg# must be portable across $(()) and expr. 5411b6f2c9ccSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5412b6f2c9ccSmrg eval 'as_fn_arith () 5413b6f2c9ccSmrg { 5414b6f2c9ccSmrg as_val=$(( $* )) 5415b6f2c9ccSmrg }' 5416b6f2c9ccSmrgelse 5417b6f2c9ccSmrg as_fn_arith () 5418b6f2c9ccSmrg { 5419b6f2c9ccSmrg as_val=`expr "$@" || test $? -eq 1` 5420b6f2c9ccSmrg } 5421b6f2c9ccSmrgfi # as_fn_arith 5422b6f2c9ccSmrg 5423b6f2c9ccSmrg 5424ea6ae205Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 5425ea6ae205Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 5426ea6ae205Smrg as_expr=expr 5427ea6ae205Smrgelse 5428ea6ae205Smrg as_expr=false 5429ea6ae205Smrgfi 5430ea6ae205Smrg 5431ea6ae205Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5432ea6ae205Smrg as_basename=basename 5433ea6ae205Smrgelse 5434ea6ae205Smrg as_basename=false 5435ea6ae205Smrgfi 5436ea6ae205Smrg 5437b6f2c9ccSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5438b6f2c9ccSmrg as_dirname=dirname 5439b6f2c9ccSmrgelse 5440b6f2c9ccSmrg as_dirname=false 5441b6f2c9ccSmrgfi 5442ea6ae205Smrg 5443ea6ae205Smrgas_me=`$as_basename -- "$0" || 5444ea6ae205Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5445ea6ae205Smrg X"$0" : 'X\(//\)$' \| \ 5446ea6ae205Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 5447e83ac88aSmrg$as_echo X/"$0" | 5448ea6ae205Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 5449ea6ae205Smrg s//\1/ 5450ea6ae205Smrg q 5451ea6ae205Smrg } 5452ea6ae205Smrg /^X\/\(\/\/\)$/{ 5453ea6ae205Smrg s//\1/ 5454ea6ae205Smrg q 5455ea6ae205Smrg } 5456ea6ae205Smrg /^X\/\(\/\).*/{ 5457ea6ae205Smrg s//\1/ 5458ea6ae205Smrg q 5459ea6ae205Smrg } 5460ea6ae205Smrg s/.*/./; q'` 5461ea6ae205Smrg 5462b6f2c9ccSmrg# Avoid depending upon Character Ranges. 5463b6f2c9ccSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 5464b6f2c9ccSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5465b6f2c9ccSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 5466b6f2c9ccSmrgas_cr_digits='0123456789' 5467b6f2c9ccSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits 5468ea6ae205Smrg 5469ea6ae205SmrgECHO_C= ECHO_N= ECHO_T= 5470b6f2c9ccSmrgcase `echo -n x` in #((((( 5471ea6ae205Smrg-n*) 5472b6f2c9ccSmrg case `echo 'xy\c'` in 5473ea6ae205Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5474b6f2c9ccSmrg xy) ECHO_C='\c';; 5475b6f2c9ccSmrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5476b6f2c9ccSmrg ECHO_T=' ';; 5477ea6ae205Smrg esac;; 5478ea6ae205Smrg*) 5479ea6ae205Smrg ECHO_N='-n';; 5480ea6ae205Smrgesac 5481ea6ae205Smrg 5482ea6ae205Smrgrm -f conf$$ conf$$.exe conf$$.file 5483ea6ae205Smrgif test -d conf$$.dir; then 5484ea6ae205Smrg rm -f conf$$.dir/conf$$.file 5485ea6ae205Smrgelse 5486ea6ae205Smrg rm -f conf$$.dir 5487e83ac88aSmrg mkdir conf$$.dir 2>/dev/null 5488e83ac88aSmrgfi 5489e83ac88aSmrgif (echo >conf$$.file) 2>/dev/null; then 5490e83ac88aSmrg if ln -s conf$$.file conf$$ 2>/dev/null; then 5491e83ac88aSmrg as_ln_s='ln -s' 5492e83ac88aSmrg # ... but there are two gotchas: 5493e83ac88aSmrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5494e83ac88aSmrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5495e83ac88aSmrg # In both cases, we have to default to `cp -p'. 5496e83ac88aSmrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5497e83ac88aSmrg as_ln_s='cp -p' 5498e83ac88aSmrg elif ln conf$$.file conf$$ 2>/dev/null; then 5499e83ac88aSmrg as_ln_s=ln 5500e83ac88aSmrg else 5501ea6ae205Smrg as_ln_s='cp -p' 5502e83ac88aSmrg fi 5503ea6ae205Smrgelse 5504ea6ae205Smrg as_ln_s='cp -p' 5505ea6ae205Smrgfi 5506ea6ae205Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5507ea6ae205Smrgrmdir conf$$.dir 2>/dev/null 5508ea6ae205Smrg 5509b6f2c9ccSmrg 5510b6f2c9ccSmrg# as_fn_mkdir_p 5511b6f2c9ccSmrg# ------------- 5512b6f2c9ccSmrg# Create "$as_dir" as a directory, including parents if necessary. 5513b6f2c9ccSmrgas_fn_mkdir_p () 5514b6f2c9ccSmrg{ 5515b6f2c9ccSmrg 5516b6f2c9ccSmrg case $as_dir in #( 5517b6f2c9ccSmrg -*) as_dir=./$as_dir;; 5518b6f2c9ccSmrg esac 5519b6f2c9ccSmrg test -d "$as_dir" || eval $as_mkdir_p || { 5520b6f2c9ccSmrg as_dirs= 5521b6f2c9ccSmrg while :; do 5522b6f2c9ccSmrg case $as_dir in #( 5523b6f2c9ccSmrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5524b6f2c9ccSmrg *) as_qdir=$as_dir;; 5525b6f2c9ccSmrg esac 5526b6f2c9ccSmrg as_dirs="'$as_qdir' $as_dirs" 5527b6f2c9ccSmrg as_dir=`$as_dirname -- "$as_dir" || 5528b6f2c9ccSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5529b6f2c9ccSmrg X"$as_dir" : 'X\(//\)[^/]' \| \ 5530b6f2c9ccSmrg X"$as_dir" : 'X\(//\)$' \| \ 5531b6f2c9ccSmrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5532b6f2c9ccSmrg$as_echo X"$as_dir" | 5533b6f2c9ccSmrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5534b6f2c9ccSmrg s//\1/ 5535b6f2c9ccSmrg q 5536b6f2c9ccSmrg } 5537b6f2c9ccSmrg /^X\(\/\/\)[^/].*/{ 5538b6f2c9ccSmrg s//\1/ 5539b6f2c9ccSmrg q 5540b6f2c9ccSmrg } 5541b6f2c9ccSmrg /^X\(\/\/\)$/{ 5542b6f2c9ccSmrg s//\1/ 5543b6f2c9ccSmrg q 5544b6f2c9ccSmrg } 5545b6f2c9ccSmrg /^X\(\/\).*/{ 5546b6f2c9ccSmrg s//\1/ 5547b6f2c9ccSmrg q 5548b6f2c9ccSmrg } 5549b6f2c9ccSmrg s/.*/./; q'` 5550b6f2c9ccSmrg test -d "$as_dir" && break 5551b6f2c9ccSmrg done 5552b6f2c9ccSmrg test -z "$as_dirs" || eval "mkdir $as_dirs" 5553b6f2c9ccSmrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5554b6f2c9ccSmrg 5555b6f2c9ccSmrg 5556b6f2c9ccSmrg} # as_fn_mkdir_p 5557ea6ae205Smrgif mkdir -p . 2>/dev/null; then 5558b6f2c9ccSmrg as_mkdir_p='mkdir -p "$as_dir"' 5559ea6ae205Smrgelse 5560ea6ae205Smrg test -d ./-p && rmdir ./-p 5561ea6ae205Smrg as_mkdir_p=false 5562ea6ae205Smrgfi 5563ea6ae205Smrg 5564ea6ae205Smrgif test -x / >/dev/null 2>&1; then 5565ea6ae205Smrg as_test_x='test -x' 5566ea6ae205Smrgelse 5567ea6ae205Smrg if ls -dL / >/dev/null 2>&1; then 5568ea6ae205Smrg as_ls_L_option=L 5569ea6ae205Smrg else 5570ea6ae205Smrg as_ls_L_option= 5571ea6ae205Smrg fi 5572ea6ae205Smrg as_test_x=' 5573ea6ae205Smrg eval sh -c '\'' 5574ea6ae205Smrg if test -d "$1"; then 5575e83ac88aSmrg test -d "$1/."; 5576ea6ae205Smrg else 5577b6f2c9ccSmrg case $1 in #( 5578e83ac88aSmrg -*)set "./$1";; 5579ea6ae205Smrg esac; 5580b6f2c9ccSmrg case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5581ea6ae205Smrg ???[sx]*):;;*)false;;esac;fi 5582ea6ae205Smrg '\'' sh 5583ea6ae205Smrg ' 5584ea6ae205Smrgfi 5585ea6ae205Smrgas_executable_p=$as_test_x 5586ea6ae205Smrg 5587ea6ae205Smrg# Sed expression to map a string onto a valid CPP name. 5588ea6ae205Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5589ea6ae205Smrg 5590ea6ae205Smrg# Sed expression to map a string onto a valid variable name. 5591ea6ae205Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5592ea6ae205Smrg 5593ea6ae205Smrg 5594ea6ae205Smrgexec 6>&1 5595b6f2c9ccSmrg## ----------------------------------- ## 5596b6f2c9ccSmrg## Main body of $CONFIG_STATUS script. ## 5597b6f2c9ccSmrg## ----------------------------------- ## 5598b6f2c9ccSmrg_ASEOF 5599b6f2c9ccSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5600ea6ae205Smrg 5601b6f2c9ccSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5602b6f2c9ccSmrg# Save the log message, to keep $0 and so on meaningful, and to 5603ea6ae205Smrg# report actual input values of CONFIG_FILES etc. instead of their 5604ea6ae205Smrg# values after options handling. 5605ea6ae205Smrgac_log=" 5606245f6787SmrgThis file was extended by mkfontscale $as_me 1.0.9, which was 5607b6f2c9ccSmrggenerated by GNU Autoconf 2.68. Invocation command line was 5608ea6ae205Smrg 5609ea6ae205Smrg CONFIG_FILES = $CONFIG_FILES 5610ea6ae205Smrg CONFIG_HEADERS = $CONFIG_HEADERS 5611ea6ae205Smrg CONFIG_LINKS = $CONFIG_LINKS 5612ea6ae205Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 5613ea6ae205Smrg $ $0 $@ 5614ea6ae205Smrg 5615ea6ae205Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 5616ea6ae205Smrg" 5617ea6ae205Smrg 5618ea6ae205Smrg_ACEOF 5619ea6ae205Smrg 5620e83ac88aSmrgcase $ac_config_files in *" 5621e83ac88aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 5622e83ac88aSmrgesac 5623e83ac88aSmrg 5624e83ac88aSmrgcase $ac_config_headers in *" 5625e83ac88aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5626e83ac88aSmrgesac 5627e83ac88aSmrg 5628e83ac88aSmrg 5629e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5630ea6ae205Smrg# Files that config.status was made for. 5631ea6ae205Smrgconfig_files="$ac_config_files" 5632ea6ae205Smrgconfig_headers="$ac_config_headers" 5633ea6ae205Smrgconfig_commands="$ac_config_commands" 5634ea6ae205Smrg 5635ea6ae205Smrg_ACEOF 5636ea6ae205Smrg 5637e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5638ea6ae205Smrgac_cs_usage="\ 5639b6f2c9ccSmrg\`$as_me' instantiates files and other configuration actions 5640b6f2c9ccSmrgfrom templates according to the current configuration. Unless the files 5641b6f2c9ccSmrgand actions are specified as TAGs, all are instantiated by default. 5642ea6ae205Smrg 5643b6f2c9ccSmrgUsage: $0 [OPTION]... [TAG]... 5644ea6ae205Smrg 5645ea6ae205Smrg -h, --help print this help, then exit 5646ea6ae205Smrg -V, --version print version number and configuration settings, then exit 5647b6f2c9ccSmrg --config print configuration, then exit 5648e83ac88aSmrg -q, --quiet, --silent 5649e83ac88aSmrg do not print progress messages 5650ea6ae205Smrg -d, --debug don't remove temporary files 5651ea6ae205Smrg --recheck update $as_me by reconfiguring in the same conditions 5652e83ac88aSmrg --file=FILE[:TEMPLATE] 5653e83ac88aSmrg instantiate the configuration file FILE 5654e83ac88aSmrg --header=FILE[:TEMPLATE] 5655e83ac88aSmrg instantiate the configuration header FILE 5656ea6ae205Smrg 5657ea6ae205SmrgConfiguration files: 5658ea6ae205Smrg$config_files 5659ea6ae205Smrg 5660ea6ae205SmrgConfiguration headers: 5661ea6ae205Smrg$config_headers 5662ea6ae205Smrg 5663ea6ae205SmrgConfiguration commands: 5664ea6ae205Smrg$config_commands 5665ea6ae205Smrg 5666b6f2c9ccSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 5667ea6ae205Smrg 5668ea6ae205Smrg_ACEOF 5669e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5670b6f2c9ccSmrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5671ea6ae205Smrgac_cs_version="\\ 5672245f6787Smrgmkfontscale config.status 1.0.9 5673b6f2c9ccSmrgconfigured by $0, generated by GNU Autoconf 2.68, 5674b6f2c9ccSmrg with options \\"\$ac_cs_config\\" 5675ea6ae205Smrg 5676b6f2c9ccSmrgCopyright (C) 2010 Free Software Foundation, Inc. 5677ea6ae205SmrgThis config.status script is free software; the Free Software Foundation 5678ea6ae205Smrggives unlimited permission to copy, distribute and modify it." 5679ea6ae205Smrg 5680ea6ae205Smrgac_pwd='$ac_pwd' 5681ea6ae205Smrgsrcdir='$srcdir' 5682ea6ae205SmrgINSTALL='$INSTALL' 5683ea6ae205SmrgMKDIR_P='$MKDIR_P' 5684e83ac88aSmrgAWK='$AWK' 5685e83ac88aSmrgtest -n "\$AWK" || AWK=awk 5686ea6ae205Smrg_ACEOF 5687ea6ae205Smrg 5688e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5689e83ac88aSmrg# The default lists apply if the user does not specify any file. 5690ea6ae205Smrgac_need_defaults=: 5691ea6ae205Smrgwhile test $# != 0 5692ea6ae205Smrgdo 5693ea6ae205Smrg case $1 in 5694b6f2c9ccSmrg --*=?*) 5695ea6ae205Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5696ea6ae205Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5697ea6ae205Smrg ac_shift=: 5698ea6ae205Smrg ;; 5699b6f2c9ccSmrg --*=) 5700b6f2c9ccSmrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 5701b6f2c9ccSmrg ac_optarg= 5702b6f2c9ccSmrg ac_shift=: 5703b6f2c9ccSmrg ;; 5704ea6ae205Smrg *) 5705ea6ae205Smrg ac_option=$1 5706ea6ae205Smrg ac_optarg=$2 5707ea6ae205Smrg ac_shift=shift 5708ea6ae205Smrg ;; 5709ea6ae205Smrg esac 5710ea6ae205Smrg 5711ea6ae205Smrg case $ac_option in 5712ea6ae205Smrg # Handling of the options. 5713ea6ae205Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5714ea6ae205Smrg ac_cs_recheck=: ;; 5715ea6ae205Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5716e83ac88aSmrg $as_echo "$ac_cs_version"; exit ;; 5717b6f2c9ccSmrg --config | --confi | --conf | --con | --co | --c ) 5718b6f2c9ccSmrg $as_echo "$ac_cs_config"; exit ;; 5719ea6ae205Smrg --debug | --debu | --deb | --de | --d | -d ) 5720ea6ae205Smrg debug=: ;; 5721ea6ae205Smrg --file | --fil | --fi | --f ) 5722ea6ae205Smrg $ac_shift 5723e83ac88aSmrg case $ac_optarg in 5724e83ac88aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5725b6f2c9ccSmrg '') as_fn_error $? "missing file argument" ;; 5726e83ac88aSmrg esac 5727b6f2c9ccSmrg as_fn_append CONFIG_FILES " '$ac_optarg'" 5728ea6ae205Smrg ac_need_defaults=false;; 5729ea6ae205Smrg --header | --heade | --head | --hea ) 5730ea6ae205Smrg $ac_shift 5731e83ac88aSmrg case $ac_optarg in 5732e83ac88aSmrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5733e83ac88aSmrg esac 5734b6f2c9ccSmrg as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5735ea6ae205Smrg ac_need_defaults=false;; 5736ea6ae205Smrg --he | --h) 5737ea6ae205Smrg # Conflict between --help and --header 5738b6f2c9ccSmrg as_fn_error $? "ambiguous option: \`$1' 5739b6f2c9ccSmrgTry \`$0 --help' for more information.";; 5740ea6ae205Smrg --help | --hel | -h ) 5741e83ac88aSmrg $as_echo "$ac_cs_usage"; exit ;; 5742ea6ae205Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5743ea6ae205Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 5744ea6ae205Smrg ac_cs_silent=: ;; 5745ea6ae205Smrg 5746ea6ae205Smrg # This is an error. 5747b6f2c9ccSmrg -*) as_fn_error $? "unrecognized option: \`$1' 5748b6f2c9ccSmrgTry \`$0 --help' for more information." ;; 5749ea6ae205Smrg 5750b6f2c9ccSmrg *) as_fn_append ac_config_targets " $1" 5751ea6ae205Smrg ac_need_defaults=false ;; 5752ea6ae205Smrg 5753ea6ae205Smrg esac 5754ea6ae205Smrg shift 5755ea6ae205Smrgdone 5756ea6ae205Smrg 5757ea6ae205Smrgac_configure_extra_args= 5758ea6ae205Smrg 5759ea6ae205Smrgif $ac_cs_silent; then 5760ea6ae205Smrg exec 6>/dev/null 5761ea6ae205Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 5762ea6ae205Smrgfi 5763ea6ae205Smrg 5764ea6ae205Smrg_ACEOF 5765e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5766ea6ae205Smrgif \$ac_cs_recheck; then 5767e83ac88aSmrg set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5768e83ac88aSmrg shift 5769e83ac88aSmrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5770e83ac88aSmrg CONFIG_SHELL='$SHELL' 5771ea6ae205Smrg export CONFIG_SHELL 5772e83ac88aSmrg exec "\$@" 5773ea6ae205Smrgfi 5774ea6ae205Smrg 5775ea6ae205Smrg_ACEOF 5776e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5777ea6ae205Smrgexec 5>>config.log 5778ea6ae205Smrg{ 5779ea6ae205Smrg echo 5780ea6ae205Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5781ea6ae205Smrg## Running $as_me. ## 5782ea6ae205Smrg_ASBOX 5783e83ac88aSmrg $as_echo "$ac_log" 5784ea6ae205Smrg} >&5 5785ea6ae205Smrg 5786ea6ae205Smrg_ACEOF 5787e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5788ea6ae205Smrg# 5789ea6ae205Smrg# INIT-COMMANDS 5790ea6ae205Smrg# 5791ea6ae205SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5792ea6ae205Smrg 5793ea6ae205Smrg_ACEOF 5794ea6ae205Smrg 5795e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5796ea6ae205Smrg 5797ea6ae205Smrg# Handling of arguments. 5798ea6ae205Smrgfor ac_config_target in $ac_config_targets 5799ea6ae205Smrgdo 5800ea6ae205Smrg case $ac_config_target in 5801ea6ae205Smrg "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5802ea6ae205Smrg "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5803ea6ae205Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5804245f6787Smrg "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 5805ea6ae205Smrg 5806b6f2c9ccSmrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5807ea6ae205Smrg esac 5808ea6ae205Smrgdone 5809ea6ae205Smrg 5810ea6ae205Smrg 5811ea6ae205Smrg# If the user did not use the arguments to specify the items to instantiate, 5812ea6ae205Smrg# then the envvar interface is used. Set only those that are not. 5813ea6ae205Smrg# We use the long form for the default assignment because of an extremely 5814ea6ae205Smrg# bizarre bug on SunOS 4.1.3. 5815ea6ae205Smrgif $ac_need_defaults; then 5816ea6ae205Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5817ea6ae205Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5818ea6ae205Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5819ea6ae205Smrgfi 5820ea6ae205Smrg 5821ea6ae205Smrg# Have a temporary directory for convenience. Make it in the build tree 5822ea6ae205Smrg# simply because there is no reason against having it here, and in addition, 5823ea6ae205Smrg# creating and moving files from /tmp can sometimes cause problems. 5824ea6ae205Smrg# Hook for its removal unless debugging. 5825ea6ae205Smrg# Note that there is a small window in which the directory will not be cleaned: 5826ea6ae205Smrg# after its creation but before its name has been assigned to `$tmp'. 5827ea6ae205Smrg$debug || 5828ea6ae205Smrg{ 5829b6f2c9ccSmrg tmp= ac_tmp= 5830ea6ae205Smrg trap 'exit_status=$? 5831b6f2c9ccSmrg : "${ac_tmp:=$tmp}" 5832b6f2c9ccSmrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5833ea6ae205Smrg' 0 5834b6f2c9ccSmrg trap 'as_fn_exit 1' 1 2 13 15 5835ea6ae205Smrg} 5836ea6ae205Smrg# Create a (secure) tmp directory for tmp files. 5837ea6ae205Smrg 5838ea6ae205Smrg{ 5839ea6ae205Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5840b6f2c9ccSmrg test -d "$tmp" 5841ea6ae205Smrg} || 5842ea6ae205Smrg{ 5843ea6ae205Smrg tmp=./conf$$-$RANDOM 5844ea6ae205Smrg (umask 077 && mkdir "$tmp") 5845b6f2c9ccSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5846b6f2c9ccSmrgac_tmp=$tmp 5847ea6ae205Smrg 5848e83ac88aSmrg# Set up the scripts for CONFIG_FILES section. 5849e83ac88aSmrg# No need to generate them if there are no CONFIG_FILES. 5850e83ac88aSmrg# This happens for instance with `./config.status config.h'. 5851ea6ae205Smrgif test -n "$CONFIG_FILES"; then 5852ea6ae205Smrg 5853ea6ae205Smrg 5854b6f2c9ccSmrgac_cr=`echo X | tr X '\015'` 5855b6f2c9ccSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 5856b6f2c9ccSmrg# But we know of no other shell where ac_cr would be empty at this 5857b6f2c9ccSmrg# point, so we can use a bashism as a fallback. 5858b6f2c9ccSmrgif test "x$ac_cr" = x; then 5859b6f2c9ccSmrg eval ac_cr=\$\'\\r\' 5860b6f2c9ccSmrgfi 5861e83ac88aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5862e83ac88aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5863e83ac88aSmrg ac_cs_awk_cr='\\r' 5864e83ac88aSmrgelse 5865e83ac88aSmrg ac_cs_awk_cr=$ac_cr 5866ea6ae205Smrgfi 5867ea6ae205Smrg 5868b6f2c9ccSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 5869ea6ae205Smrg_ACEOF 5870ea6ae205Smrg 5871ea6ae205Smrg 5872e83ac88aSmrg{ 5873e83ac88aSmrg echo "cat >conf$$subs.awk <<_ACEOF" && 5874e83ac88aSmrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5875e83ac88aSmrg echo "_ACEOF" 5876e83ac88aSmrg} >conf$$subs.sh || 5877b6f2c9ccSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5878b6f2c9ccSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5879ea6ae205Smrgac_delim='%!_!# ' 5880ea6ae205Smrgfor ac_last_try in false false false false false :; do 5881e83ac88aSmrg . ./conf$$subs.sh || 5882b6f2c9ccSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5883ea6ae205Smrg 5884e83ac88aSmrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5885e83ac88aSmrg if test $ac_delim_n = $ac_delim_num; then 5886ea6ae205Smrg break 5887ea6ae205Smrg elif $ac_last_try; then 5888b6f2c9ccSmrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5889ea6ae205Smrg else 5890ea6ae205Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5891ea6ae205Smrg fi 5892ea6ae205Smrgdone 5893e83ac88aSmrgrm -f conf$$subs.sh 5894ea6ae205Smrg 5895e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5896b6f2c9ccSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 5897e83ac88aSmrg_ACEOF 5898e83ac88aSmrgsed -n ' 5899e83ac88aSmrgh 5900e83ac88aSmrgs/^/S["/; s/!.*/"]=/ 5901e83ac88aSmrgp 5902e83ac88aSmrgg 5903e83ac88aSmrgs/^[^!]*!// 5904e83ac88aSmrg:repl 5905e83ac88aSmrgt repl 5906e83ac88aSmrgs/'"$ac_delim"'$// 5907e83ac88aSmrgt delim 5908e83ac88aSmrg:nl 5909e83ac88aSmrgh 5910b6f2c9ccSmrgs/\(.\{148\}\)..*/\1/ 5911e83ac88aSmrgt more1 5912e83ac88aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5913e83ac88aSmrgp 5914e83ac88aSmrgn 5915e83ac88aSmrgb repl 5916e83ac88aSmrg:more1 5917e83ac88aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5918e83ac88aSmrgp 5919e83ac88aSmrgg 5920e83ac88aSmrgs/.\{148\}// 5921e83ac88aSmrgt nl 5922e83ac88aSmrg:delim 5923e83ac88aSmrgh 5924b6f2c9ccSmrgs/\(.\{148\}\)..*/\1/ 5925e83ac88aSmrgt more2 5926e83ac88aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 5927e83ac88aSmrgp 5928e83ac88aSmrgb 5929e83ac88aSmrg:more2 5930e83ac88aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5931e83ac88aSmrgp 5932e83ac88aSmrgg 5933e83ac88aSmrgs/.\{148\}// 5934e83ac88aSmrgt delim 5935e83ac88aSmrg' <conf$$subs.awk | sed ' 5936e83ac88aSmrg/^[^""]/{ 5937e83ac88aSmrg N 5938e83ac88aSmrg s/\n// 5939e83ac88aSmrg} 5940e83ac88aSmrg' >>$CONFIG_STATUS || ac_write_fail=1 5941e83ac88aSmrgrm -f conf$$subs.awk 5942e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5943e83ac88aSmrg_ACAWK 5944b6f2c9ccSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5945e83ac88aSmrg for (key in S) S_is_set[key] = 1 5946e83ac88aSmrg FS = "" 5947e83ac88aSmrg 5948e83ac88aSmrg} 5949e83ac88aSmrg{ 5950e83ac88aSmrg line = $ 0 5951e83ac88aSmrg nfields = split(line, field, "@") 5952e83ac88aSmrg substed = 0 5953e83ac88aSmrg len = length(field[1]) 5954e83ac88aSmrg for (i = 2; i < nfields; i++) { 5955e83ac88aSmrg key = field[i] 5956e83ac88aSmrg keylen = length(key) 5957e83ac88aSmrg if (S_is_set[key]) { 5958e83ac88aSmrg value = S[key] 5959e83ac88aSmrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5960e83ac88aSmrg len += length(value) + length(field[++i]) 5961e83ac88aSmrg substed = 1 5962e83ac88aSmrg } else 5963e83ac88aSmrg len += 1 + keylen 5964e83ac88aSmrg } 5965e83ac88aSmrg 5966e83ac88aSmrg print line 5967e83ac88aSmrg} 5968ea6ae205Smrg 5969e83ac88aSmrg_ACAWK 5970ea6ae205Smrg_ACEOF 5971e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5972e83ac88aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5973e83ac88aSmrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5974e83ac88aSmrgelse 5975e83ac88aSmrg cat 5976b6f2c9ccSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 5977b6f2c9ccSmrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5978ea6ae205Smrg_ACEOF 5979ea6ae205Smrg 5980b6f2c9ccSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5981b6f2c9ccSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5982ea6ae205Smrg# trailing colons and then remove the whole line if VPATH becomes empty 5983ea6ae205Smrg# (actually we leave an empty line to preserve line numbers). 5984ea6ae205Smrgif test "x$srcdir" = x.; then 5985b6f2c9ccSmrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5986b6f2c9ccSmrgh 5987b6f2c9ccSmrgs/// 5988b6f2c9ccSmrgs/^/:/ 5989b6f2c9ccSmrgs/[ ]*$/:/ 5990b6f2c9ccSmrgs/:\$(srcdir):/:/g 5991b6f2c9ccSmrgs/:\${srcdir}:/:/g 5992b6f2c9ccSmrgs/:@srcdir@:/:/g 5993b6f2c9ccSmrgs/^:*// 5994ea6ae205Smrgs/:*$// 5995b6f2c9ccSmrgx 5996b6f2c9ccSmrgs/\(=[ ]*\).*/\1/ 5997b6f2c9ccSmrgG 5998b6f2c9ccSmrgs/\n// 5999ea6ae205Smrgs/^[^=]*=[ ]*$// 6000ea6ae205Smrg}' 6001ea6ae205Smrgfi 6002ea6ae205Smrg 6003e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6004ea6ae205Smrgfi # test -n "$CONFIG_FILES" 6005ea6ae205Smrg 6006e83ac88aSmrg# Set up the scripts for CONFIG_HEADERS section. 6007e83ac88aSmrg# No need to generate them if there are no CONFIG_HEADERS. 6008e83ac88aSmrg# This happens for instance with `./config.status Makefile'. 6009e83ac88aSmrgif test -n "$CONFIG_HEADERS"; then 6010b6f2c9ccSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK || 6011e83ac88aSmrgBEGIN { 6012e83ac88aSmrg_ACEOF 6013e83ac88aSmrg 6014e83ac88aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as 6015e83ac88aSmrg# here-document in config.status, that substitutes the proper values into 6016e83ac88aSmrg# config.h.in to produce config.h. 6017e83ac88aSmrg 6018e83ac88aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease 6019e83ac88aSmrg# handling of long lines. 6020e83ac88aSmrgac_delim='%!_!# ' 6021e83ac88aSmrgfor ac_last_try in false false :; do 6022b6f2c9ccSmrg ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 6023b6f2c9ccSmrg if test -z "$ac_tt"; then 6024e83ac88aSmrg break 6025e83ac88aSmrg elif $ac_last_try; then 6026b6f2c9ccSmrg as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 6027e83ac88aSmrg else 6028e83ac88aSmrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6029e83ac88aSmrg fi 6030e83ac88aSmrgdone 6031e83ac88aSmrg 6032e83ac88aSmrg# For the awk script, D is an array of macro values keyed by name, 6033e83ac88aSmrg# likewise P contains macro parameters if any. Preserve backslash 6034e83ac88aSmrg# newline sequences. 6035e83ac88aSmrg 6036e83ac88aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6037e83ac88aSmrgsed -n ' 6038e83ac88aSmrgs/.\{148\}/&'"$ac_delim"'/g 6039e83ac88aSmrgt rset 6040e83ac88aSmrg:rset 6041e83ac88aSmrgs/^[ ]*#[ ]*define[ ][ ]*/ / 6042e83ac88aSmrgt def 6043e83ac88aSmrgd 6044e83ac88aSmrg:def 6045e83ac88aSmrgs/\\$// 6046e83ac88aSmrgt bsnl 6047e83ac88aSmrgs/["\\]/\\&/g 6048e83ac88aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6049e83ac88aSmrgD["\1"]=" \3"/p 6050e83ac88aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6051e83ac88aSmrgd 6052e83ac88aSmrg:bsnl 6053e83ac88aSmrgs/["\\]/\\&/g 6054e83ac88aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6055e83ac88aSmrgD["\1"]=" \3\\\\\\n"\\/p 6056e83ac88aSmrgt cont 6057e83ac88aSmrgs/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6058e83ac88aSmrgt cont 6059e83ac88aSmrgd 6060e83ac88aSmrg:cont 6061e83ac88aSmrgn 6062e83ac88aSmrgs/.\{148\}/&'"$ac_delim"'/g 6063e83ac88aSmrgt clear 6064e83ac88aSmrg:clear 6065e83ac88aSmrgs/\\$// 6066e83ac88aSmrgt bsnlc 6067e83ac88aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p 6068e83ac88aSmrgd 6069e83ac88aSmrg:bsnlc 6070e83ac88aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6071e83ac88aSmrgb cont 6072e83ac88aSmrg' <confdefs.h | sed ' 6073e83ac88aSmrgs/'"$ac_delim"'/"\\\ 6074e83ac88aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1 6075e83ac88aSmrg 6076e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6077e83ac88aSmrg for (key in D) D_is_set[key] = 1 6078e83ac88aSmrg FS = "" 6079e83ac88aSmrg} 6080e83ac88aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6081e83ac88aSmrg line = \$ 0 6082e83ac88aSmrg split(line, arg, " ") 6083e83ac88aSmrg if (arg[1] == "#") { 6084e83ac88aSmrg defundef = arg[2] 6085e83ac88aSmrg mac1 = arg[3] 6086e83ac88aSmrg } else { 6087e83ac88aSmrg defundef = substr(arg[1], 2) 6088e83ac88aSmrg mac1 = arg[2] 6089e83ac88aSmrg } 6090e83ac88aSmrg split(mac1, mac2, "(") #) 6091e83ac88aSmrg macro = mac2[1] 6092e83ac88aSmrg prefix = substr(line, 1, index(line, defundef) - 1) 6093e83ac88aSmrg if (D_is_set[macro]) { 6094e83ac88aSmrg # Preserve the white space surrounding the "#". 6095e83ac88aSmrg print prefix "define", macro P[macro] D[macro] 6096e83ac88aSmrg next 6097e83ac88aSmrg } else { 6098e83ac88aSmrg # Replace #undef with comments. This is necessary, for example, 6099e83ac88aSmrg # in the case of _POSIX_SOURCE, which is predefined and required 6100e83ac88aSmrg # on some systems where configure will not decide to define it. 6101e83ac88aSmrg if (defundef == "undef") { 6102e83ac88aSmrg print "/*", prefix defundef, macro, "*/" 6103e83ac88aSmrg next 6104e83ac88aSmrg } 6105e83ac88aSmrg } 6106e83ac88aSmrg} 6107e83ac88aSmrg{ print } 6108e83ac88aSmrg_ACAWK 6109e83ac88aSmrg_ACEOF 6110e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6111b6f2c9ccSmrg as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 6112e83ac88aSmrgfi # test -n "$CONFIG_HEADERS" 6113e83ac88aSmrg 6114ea6ae205Smrg 6115e83ac88aSmrgeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 6116e83ac88aSmrgshift 6117e83ac88aSmrgfor ac_tag 6118ea6ae205Smrgdo 6119ea6ae205Smrg case $ac_tag in 6120ea6ae205Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 6121ea6ae205Smrg esac 6122ea6ae205Smrg case $ac_mode$ac_tag in 6123ea6ae205Smrg :[FHL]*:*);; 6124b6f2c9ccSmrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 6125ea6ae205Smrg :[FH]-) ac_tag=-:-;; 6126ea6ae205Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6127ea6ae205Smrg esac 6128ea6ae205Smrg ac_save_IFS=$IFS 6129ea6ae205Smrg IFS=: 6130ea6ae205Smrg set x $ac_tag 6131ea6ae205Smrg IFS=$ac_save_IFS 6132ea6ae205Smrg shift 6133ea6ae205Smrg ac_file=$1 6134ea6ae205Smrg shift 6135ea6ae205Smrg 6136ea6ae205Smrg case $ac_mode in 6137ea6ae205Smrg :L) ac_source=$1;; 6138ea6ae205Smrg :[FH]) 6139ea6ae205Smrg ac_file_inputs= 6140ea6ae205Smrg for ac_f 6141ea6ae205Smrg do 6142ea6ae205Smrg case $ac_f in 6143b6f2c9ccSmrg -) ac_f="$ac_tmp/stdin";; 6144ea6ae205Smrg *) # Look for the file first in the build tree, then in the source tree 6145ea6ae205Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 6146ea6ae205Smrg # because $ac_f cannot contain `:'. 6147ea6ae205Smrg test -f "$ac_f" || 6148ea6ae205Smrg case $ac_f in 6149ea6ae205Smrg [\\/$]*) false;; 6150ea6ae205Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6151ea6ae205Smrg esac || 6152b6f2c9ccSmrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6153ea6ae205Smrg esac 6154e83ac88aSmrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6155b6f2c9ccSmrg as_fn_append ac_file_inputs " '$ac_f'" 6156ea6ae205Smrg done 6157ea6ae205Smrg 6158ea6ae205Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 6159ea6ae205Smrg # use $as_me), people would be surprised to read: 6160ea6ae205Smrg # /* config.h. Generated by config.status. */ 6161e83ac88aSmrg configure_input='Generated from '` 6162e83ac88aSmrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6163e83ac88aSmrg `' by configure.' 6164ea6ae205Smrg if test x"$ac_file" != x-; then 6165ea6ae205Smrg configure_input="$ac_file. $configure_input" 6166b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6167e83ac88aSmrg$as_echo "$as_me: creating $ac_file" >&6;} 6168ea6ae205Smrg fi 6169e83ac88aSmrg # Neutralize special characters interpreted by sed in replacement strings. 6170e83ac88aSmrg case $configure_input in #( 6171e83ac88aSmrg *\&* | *\|* | *\\* ) 6172e83ac88aSmrg ac_sed_conf_input=`$as_echo "$configure_input" | 6173e83ac88aSmrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 6174e83ac88aSmrg *) ac_sed_conf_input=$configure_input;; 6175e83ac88aSmrg esac 6176ea6ae205Smrg 6177ea6ae205Smrg case $ac_tag in 6178b6f2c9ccSmrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6179b6f2c9ccSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6180ea6ae205Smrg esac 6181ea6ae205Smrg ;; 6182ea6ae205Smrg esac 6183ea6ae205Smrg 6184ea6ae205Smrg ac_dir=`$as_dirname -- "$ac_file" || 6185ea6ae205Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6186ea6ae205Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 6187ea6ae205Smrg X"$ac_file" : 'X\(//\)$' \| \ 6188ea6ae205Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6189e83ac88aSmrg$as_echo X"$ac_file" | 6190ea6ae205Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6191ea6ae205Smrg s//\1/ 6192ea6ae205Smrg q 6193ea6ae205Smrg } 6194ea6ae205Smrg /^X\(\/\/\)[^/].*/{ 6195ea6ae205Smrg s//\1/ 6196ea6ae205Smrg q 6197ea6ae205Smrg } 6198ea6ae205Smrg /^X\(\/\/\)$/{ 6199ea6ae205Smrg s//\1/ 6200ea6ae205Smrg q 6201ea6ae205Smrg } 6202ea6ae205Smrg /^X\(\/\).*/{ 6203ea6ae205Smrg s//\1/ 6204ea6ae205Smrg q 6205ea6ae205Smrg } 6206ea6ae205Smrg s/.*/./; q'` 6207b6f2c9ccSmrg as_dir="$ac_dir"; as_fn_mkdir_p 6208ea6ae205Smrg ac_builddir=. 6209ea6ae205Smrg 6210ea6ae205Smrgcase "$ac_dir" in 6211ea6ae205Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6212ea6ae205Smrg*) 6213e83ac88aSmrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6214ea6ae205Smrg # A ".." for each directory in $ac_dir_suffix. 6215e83ac88aSmrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6216ea6ae205Smrg case $ac_top_builddir_sub in 6217ea6ae205Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6218ea6ae205Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6219ea6ae205Smrg esac ;; 6220ea6ae205Smrgesac 6221ea6ae205Smrgac_abs_top_builddir=$ac_pwd 6222ea6ae205Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 6223ea6ae205Smrg# for backward compatibility: 6224ea6ae205Smrgac_top_builddir=$ac_top_build_prefix 6225ea6ae205Smrg 6226ea6ae205Smrgcase $srcdir in 6227ea6ae205Smrg .) # We are building in place. 6228ea6ae205Smrg ac_srcdir=. 6229ea6ae205Smrg ac_top_srcdir=$ac_top_builddir_sub 6230ea6ae205Smrg ac_abs_top_srcdir=$ac_pwd ;; 6231ea6ae205Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 6232ea6ae205Smrg ac_srcdir=$srcdir$ac_dir_suffix; 6233ea6ae205Smrg ac_top_srcdir=$srcdir 6234ea6ae205Smrg ac_abs_top_srcdir=$srcdir ;; 6235ea6ae205Smrg *) # Relative name. 6236ea6ae205Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6237ea6ae205Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 6238ea6ae205Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6239ea6ae205Smrgesac 6240ea6ae205Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6241ea6ae205Smrg 6242ea6ae205Smrg 6243ea6ae205Smrg case $ac_mode in 6244ea6ae205Smrg :F) 6245ea6ae205Smrg # 6246ea6ae205Smrg # CONFIG_FILE 6247ea6ae205Smrg # 6248ea6ae205Smrg 6249ea6ae205Smrg case $INSTALL in 6250ea6ae205Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6251ea6ae205Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6252ea6ae205Smrg esac 6253ea6ae205Smrg ac_MKDIR_P=$MKDIR_P 6254ea6ae205Smrg case $MKDIR_P in 6255ea6ae205Smrg [\\/$]* | ?:[\\/]* ) ;; 6256ea6ae205Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 6257ea6ae205Smrg esac 6258ea6ae205Smrg_ACEOF 6259ea6ae205Smrg 6260e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6261ea6ae205Smrg# If the template does not know about datarootdir, expand it. 6262ea6ae205Smrg# FIXME: This hack should be removed a few years after 2.60. 6263ea6ae205Smrgac_datarootdir_hack=; ac_datarootdir_seen= 6264e83ac88aSmrgac_sed_dataroot=' 6265e83ac88aSmrg/datarootdir/ { 6266ea6ae205Smrg p 6267ea6ae205Smrg q 6268ea6ae205Smrg} 6269ea6ae205Smrg/@datadir@/p 6270ea6ae205Smrg/@docdir@/p 6271ea6ae205Smrg/@infodir@/p 6272ea6ae205Smrg/@localedir@/p 6273b6f2c9ccSmrg/@mandir@/p' 6274e83ac88aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6275ea6ae205Smrg*datarootdir*) ac_datarootdir_seen=yes;; 6276ea6ae205Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6277b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6278e83ac88aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6279ea6ae205Smrg_ACEOF 6280e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6281ea6ae205Smrg ac_datarootdir_hack=' 6282ea6ae205Smrg s&@datadir@&$datadir&g 6283ea6ae205Smrg s&@docdir@&$docdir&g 6284ea6ae205Smrg s&@infodir@&$infodir&g 6285ea6ae205Smrg s&@localedir@&$localedir&g 6286ea6ae205Smrg s&@mandir@&$mandir&g 6287b6f2c9ccSmrg s&\\\${datarootdir}&$datarootdir&g' ;; 6288ea6ae205Smrgesac 6289ea6ae205Smrg_ACEOF 6290ea6ae205Smrg 6291ea6ae205Smrg# Neutralize VPATH when `$srcdir' = `.'. 6292ea6ae205Smrg# Shell code in configure.ac might set extrasub. 6293ea6ae205Smrg# FIXME: do we really want to maintain this feature? 6294e83ac88aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6295e83ac88aSmrgac_sed_extra="$ac_vpsub 6296ea6ae205Smrg$extrasub 6297ea6ae205Smrg_ACEOF 6298e83ac88aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6299ea6ae205Smrg:t 6300ea6ae205Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6301e83ac88aSmrgs|@configure_input@|$ac_sed_conf_input|;t t 6302ea6ae205Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 6303e83ac88aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 6304ea6ae205Smrgs&@srcdir@&$ac_srcdir&;t t 6305ea6ae205Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 6306ea6ae205Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 6307ea6ae205Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6308ea6ae205Smrgs&@builddir@&$ac_builddir&;t t 6309ea6ae205Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 6310ea6ae205Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6311ea6ae205Smrgs&@INSTALL@&$ac_INSTALL&;t t 6312ea6ae205Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 6313ea6ae205Smrg$ac_datarootdir_hack 6314e83ac88aSmrg" 6315b6f2c9ccSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6316b6f2c9ccSmrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6317ea6ae205Smrg 6318ea6ae205Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6319b6f2c9ccSmrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6320b6f2c9ccSmrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6321b6f2c9ccSmrg "$ac_tmp/out"`; test -z "$ac_out"; } && 6322b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6323b6f2c9ccSmrgwhich seems to be undefined. Please make sure it is defined" >&5 6324e83ac88aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6325b6f2c9ccSmrgwhich seems to be undefined. Please make sure it is defined" >&2;} 6326ea6ae205Smrg 6327b6f2c9ccSmrg rm -f "$ac_tmp/stdin" 6328ea6ae205Smrg case $ac_file in 6329b6f2c9ccSmrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6330b6f2c9ccSmrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6331e83ac88aSmrg esac \ 6332b6f2c9ccSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6333ea6ae205Smrg ;; 6334ea6ae205Smrg :H) 6335ea6ae205Smrg # 6336ea6ae205Smrg # CONFIG_HEADER 6337ea6ae205Smrg # 6338ea6ae205Smrg if test x"$ac_file" != x-; then 6339e83ac88aSmrg { 6340e83ac88aSmrg $as_echo "/* $configure_input */" \ 6341b6f2c9ccSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 6342b6f2c9ccSmrg } >"$ac_tmp/config.h" \ 6343b6f2c9ccSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6344b6f2c9ccSmrg if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6345b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6346e83ac88aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;} 6347ea6ae205Smrg else 6348e83ac88aSmrg rm -f "$ac_file" 6349b6f2c9ccSmrg mv "$ac_tmp/config.h" "$ac_file" \ 6350b6f2c9ccSmrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6351ea6ae205Smrg fi 6352ea6ae205Smrg else 6353e83ac88aSmrg $as_echo "/* $configure_input */" \ 6354b6f2c9ccSmrg && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 6355b6f2c9ccSmrg || as_fn_error $? "could not create -" "$LINENO" 5 6356ea6ae205Smrg fi 6357e83ac88aSmrg# Compute "$ac_file"'s index in $config_headers. 6358e83ac88aSmrg_am_arg="$ac_file" 6359ea6ae205Smrg_am_stamp_count=1 6360ea6ae205Smrgfor _am_header in $config_headers :; do 6361ea6ae205Smrg case $_am_header in 6362e83ac88aSmrg $_am_arg | $_am_arg:* ) 6363ea6ae205Smrg break ;; 6364ea6ae205Smrg * ) 6365ea6ae205Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6366ea6ae205Smrg esac 6367ea6ae205Smrgdone 6368e83ac88aSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 6369e83ac88aSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6370e83ac88aSmrg X"$_am_arg" : 'X\(//\)[^/]' \| \ 6371e83ac88aSmrg X"$_am_arg" : 'X\(//\)$' \| \ 6372e83ac88aSmrg X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 6373e83ac88aSmrg$as_echo X"$_am_arg" | 6374ea6ae205Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6375ea6ae205Smrg s//\1/ 6376ea6ae205Smrg q 6377ea6ae205Smrg } 6378ea6ae205Smrg /^X\(\/\/\)[^/].*/{ 6379ea6ae205Smrg s//\1/ 6380ea6ae205Smrg q 6381ea6ae205Smrg } 6382ea6ae205Smrg /^X\(\/\/\)$/{ 6383ea6ae205Smrg s//\1/ 6384ea6ae205Smrg q 6385ea6ae205Smrg } 6386ea6ae205Smrg /^X\(\/\).*/{ 6387ea6ae205Smrg s//\1/ 6388ea6ae205Smrg q 6389ea6ae205Smrg } 6390ea6ae205Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 6391ea6ae205Smrg ;; 6392ea6ae205Smrg 6393b6f2c9ccSmrg :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6394e83ac88aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;} 6395ea6ae205Smrg ;; 6396ea6ae205Smrg esac 6397ea6ae205Smrg 6398ea6ae205Smrg 6399ea6ae205Smrg case $ac_file$ac_mode in 6400e83ac88aSmrg "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 6401e83ac88aSmrg # Autoconf 2.62 quotes --file arguments for eval, but not when files 6402e83ac88aSmrg # are listed without --file. Let's play safe and only enable the eval 6403e83ac88aSmrg # if we detect the quoting. 6404e83ac88aSmrg case $CONFIG_FILES in 6405e83ac88aSmrg *\'*) eval set x "$CONFIG_FILES" ;; 6406e83ac88aSmrg *) set x $CONFIG_FILES ;; 6407e83ac88aSmrg esac 6408e83ac88aSmrg shift 6409e83ac88aSmrg for mf 6410e83ac88aSmrg do 6411e83ac88aSmrg # Strip MF so we end up with the name of the file. 6412e83ac88aSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 6413e83ac88aSmrg # Check whether this is an Automake generated Makefile or not. 6414e83ac88aSmrg # We used to match only the files named `Makefile.in', but 6415e83ac88aSmrg # some people rename them; so instead we look at the file content. 6416e83ac88aSmrg # Grep'ing the first line is not enough: some people post-process 6417e83ac88aSmrg # each Makefile.in and add a new line on top of each file to say so. 6418e83ac88aSmrg # Grep'ing the whole file is not good either: AIX grep has a line 6419e83ac88aSmrg # limit of 2048, but all sed's we know have understand at least 4000. 6420e83ac88aSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6421e83ac88aSmrg dirpart=`$as_dirname -- "$mf" || 6422ea6ae205Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6423ea6ae205Smrg X"$mf" : 'X\(//\)[^/]' \| \ 6424ea6ae205Smrg X"$mf" : 'X\(//\)$' \| \ 6425ea6ae205Smrg X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6426e83ac88aSmrg$as_echo X"$mf" | 6427ea6ae205Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6428ea6ae205Smrg s//\1/ 6429ea6ae205Smrg q 6430ea6ae205Smrg } 6431ea6ae205Smrg /^X\(\/\/\)[^/].*/{ 6432ea6ae205Smrg s//\1/ 6433ea6ae205Smrg q 6434ea6ae205Smrg } 6435ea6ae205Smrg /^X\(\/\/\)$/{ 6436ea6ae205Smrg s//\1/ 6437ea6ae205Smrg q 6438ea6ae205Smrg } 6439ea6ae205Smrg /^X\(\/\).*/{ 6440ea6ae205Smrg s//\1/ 6441ea6ae205Smrg q 6442ea6ae205Smrg } 6443ea6ae205Smrg s/.*/./; q'` 6444e83ac88aSmrg else 6445e83ac88aSmrg continue 6446e83ac88aSmrg fi 6447e83ac88aSmrg # Extract the definition of DEPDIR, am__include, and am__quote 6448e83ac88aSmrg # from the Makefile without running `make'. 6449e83ac88aSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6450e83ac88aSmrg test -z "$DEPDIR" && continue 6451e83ac88aSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 6452e83ac88aSmrg test -z "am__include" && continue 6453e83ac88aSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6454e83ac88aSmrg # When using ansi2knr, U may be empty or an underscore; expand it 6455e83ac88aSmrg U=`sed -n 's/^U = //p' < "$mf"` 6456e83ac88aSmrg # Find all dependency output files, they are included files with 6457e83ac88aSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 6458e83ac88aSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 6459e83ac88aSmrg # expansion. 6460e83ac88aSmrg for file in `sed -n " 6461e83ac88aSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6462e83ac88aSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6463e83ac88aSmrg # Make sure the directory exists. 6464e83ac88aSmrg test -f "$dirpart/$file" && continue 6465e83ac88aSmrg fdir=`$as_dirname -- "$file" || 6466ea6ae205Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6467ea6ae205Smrg X"$file" : 'X\(//\)[^/]' \| \ 6468ea6ae205Smrg X"$file" : 'X\(//\)$' \| \ 6469ea6ae205Smrg X"$file" : 'X\(/\)' \| . 2>/dev/null || 6470e83ac88aSmrg$as_echo X"$file" | 6471ea6ae205Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6472ea6ae205Smrg s//\1/ 6473ea6ae205Smrg q 6474ea6ae205Smrg } 6475ea6ae205Smrg /^X\(\/\/\)[^/].*/{ 6476ea6ae205Smrg s//\1/ 6477ea6ae205Smrg q 6478ea6ae205Smrg } 6479ea6ae205Smrg /^X\(\/\/\)$/{ 6480ea6ae205Smrg s//\1/ 6481ea6ae205Smrg q 6482ea6ae205Smrg } 6483ea6ae205Smrg /^X\(\/\).*/{ 6484ea6ae205Smrg s//\1/ 6485ea6ae205Smrg q 6486ea6ae205Smrg } 6487ea6ae205Smrg s/.*/./; q'` 6488b6f2c9ccSmrg as_dir=$dirpart/$fdir; as_fn_mkdir_p 6489e83ac88aSmrg # echo "creating $dirpart/$file" 6490e83ac88aSmrg echo '# dummy' > "$dirpart/$file" 6491e83ac88aSmrg done 6492ea6ae205Smrg done 6493e83ac88aSmrg} 6494ea6ae205Smrg ;; 6495ea6ae205Smrg 6496ea6ae205Smrg esac 6497ea6ae205Smrgdone # for ac_tag 6498ea6ae205Smrg 6499ea6ae205Smrg 6500b6f2c9ccSmrgas_fn_exit 0 6501ea6ae205Smrg_ACEOF 6502ea6ae205Smrgac_clean_files=$ac_clean_files_save 6503ea6ae205Smrg 6504e83ac88aSmrgtest $ac_write_fail = 0 || 6505b6f2c9ccSmrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6506e83ac88aSmrg 6507ea6ae205Smrg 6508ea6ae205Smrg# configure is writing to config.log, and then calls config.status. 6509ea6ae205Smrg# config.status does its own redirection, appending to config.log. 6510ea6ae205Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 6511ea6ae205Smrg# by configure, so config.status won't be able to write to it; its 6512ea6ae205Smrg# output is simply discarded. So we exec the FD to /dev/null, 6513ea6ae205Smrg# effectively closing config.log, so it can be properly (re)opened and 6514ea6ae205Smrg# appended to by config.status. When coming back to configure, we 6515ea6ae205Smrg# need to make the FD available again. 6516ea6ae205Smrgif test "$no_create" != yes; then 6517ea6ae205Smrg ac_cs_success=: 6518ea6ae205Smrg ac_config_status_args= 6519ea6ae205Smrg test "$silent" = yes && 6520ea6ae205Smrg ac_config_status_args="$ac_config_status_args --quiet" 6521ea6ae205Smrg exec 5>/dev/null 6522ea6ae205Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6523ea6ae205Smrg exec 5>>config.log 6524ea6ae205Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6525ea6ae205Smrg # would make configure fail if this is the last instruction. 6526b6f2c9ccSmrg $ac_cs_success || as_fn_exit 1 6527ea6ae205Smrgfi 6528e83ac88aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6529b6f2c9ccSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6530e83ac88aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6531e83ac88aSmrgfi 6532ea6ae205Smrg 6533