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