configure revision 9fa8ffe7
1ffab5952Smrg#! /bin/sh 2ffab5952Smrg# Guess values for system-dependent variables and create Makefiles. 39fa8ffe7Smrg# Generated by GNU Autoconf 2.69 for util-macros 1.19.2. 4ffab5952Smrg# 5ffab5952Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6ffab5952Smrg# 7ffab5952Smrg# 867e4e4deSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9ffab5952Smrg# 10ffab5952Smrg# 11ffab5952Smrg# This configure script is free software; the Free Software Foundation 12ffab5952Smrg# gives unlimited permission to copy, distribute and modify it. 13ffab5952Smrg## -------------------- ## 14ffab5952Smrg## M4sh Initialization. ## 15ffab5952Smrg## -------------------- ## 16ffab5952Smrg 17ffab5952Smrg# Be more Bourne compatible 18ffab5952SmrgDUALCASE=1; export DUALCASE # for MKS sh 19ffab5952Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20ffab5952Smrg emulate sh 21ffab5952Smrg NULLCMD=: 22ffab5952Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23ffab5952Smrg # is contrary to our usage. Disable this feature. 24ffab5952Smrg alias -g '${1+"$@"}'='"$@"' 25ffab5952Smrg setopt NO_GLOB_SUBST 26ffab5952Smrgelse 27ffab5952Smrg case `(set -o) 2>/dev/null` in #( 28ffab5952Smrg *posix*) : 29ffab5952Smrg set -o posix ;; #( 30ffab5952Smrg *) : 31ffab5952Smrg ;; 32ffab5952Smrgesac 33ffab5952Smrgfi 34ffab5952Smrg 35ffab5952Smrg 36ffab5952Smrgas_nl=' 37ffab5952Smrg' 38ffab5952Smrgexport as_nl 39ffab5952Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 40ffab5952Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43ffab5952Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 44ffab5952Smrg# but without wasting forks for bash or zsh. 45ffab5952Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 46ffab5952Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47ffab5952Smrg as_echo='print -r --' 48ffab5952Smrg as_echo_n='print -rn --' 49ffab5952Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50ffab5952Smrg as_echo='printf %s\n' 51ffab5952Smrg as_echo_n='printf %s' 52ffab5952Smrgelse 53ffab5952Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54ffab5952Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55ffab5952Smrg as_echo_n='/usr/ucb/echo -n' 56ffab5952Smrg else 57ffab5952Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58ffab5952Smrg as_echo_n_body='eval 59ffab5952Smrg arg=$1; 60ffab5952Smrg case $arg in #( 61ffab5952Smrg *"$as_nl"*) 62ffab5952Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 63ffab5952Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64ffab5952Smrg esac; 65ffab5952Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66ffab5952Smrg ' 67ffab5952Smrg export as_echo_n_body 68ffab5952Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 69ffab5952Smrg fi 70ffab5952Smrg export as_echo_body 71ffab5952Smrg as_echo='sh -c $as_echo_body as_echo' 72ffab5952Smrgfi 73ffab5952Smrg 74ffab5952Smrg# The user is always right. 75ffab5952Smrgif test "${PATH_SEPARATOR+set}" != set; then 76ffab5952Smrg PATH_SEPARATOR=: 77ffab5952Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78ffab5952Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79ffab5952Smrg PATH_SEPARATOR=';' 80ffab5952Smrg } 81ffab5952Smrgfi 82ffab5952Smrg 83ffab5952Smrg 84ffab5952Smrg# IFS 85ffab5952Smrg# We need space, tab and new line, in precisely that order. Quoting is 86ffab5952Smrg# there to prevent editors from complaining about space-tab. 87ffab5952Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88ffab5952Smrg# splitting by setting IFS to empty value.) 89ffab5952SmrgIFS=" "" $as_nl" 90ffab5952Smrg 91ffab5952Smrg# Find who we are. Look in the path if we contain no directory separator. 92ffab5952Smrgas_myself= 93ffab5952Smrgcase $0 in #(( 94ffab5952Smrg *[\\/]* ) as_myself=$0 ;; 95ffab5952Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96ffab5952Smrgfor as_dir in $PATH 97ffab5952Smrgdo 98ffab5952Smrg IFS=$as_save_IFS 99ffab5952Smrg test -z "$as_dir" && as_dir=. 100ffab5952Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101ffab5952Smrg done 102ffab5952SmrgIFS=$as_save_IFS 103ffab5952Smrg 104ffab5952Smrg ;; 105ffab5952Smrgesac 106ffab5952Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 107ffab5952Smrg# in which case we are not to be found in the path. 108ffab5952Smrgif test "x$as_myself" = x; then 109ffab5952Smrg as_myself=$0 110ffab5952Smrgfi 111ffab5952Smrgif test ! -f "$as_myself"; then 112ffab5952Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113ffab5952Smrg exit 1 114ffab5952Smrgfi 115ffab5952Smrg 116ffab5952Smrg# Unset variables that we do not need and which cause bugs (e.g. in 117ffab5952Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118ffab5952Smrg# suppresses any "Segmentation fault" message there. '((' could 119ffab5952Smrg# trigger a bug in pdksh 5.2.14. 120ffab5952Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 121ffab5952Smrgdo eval test x\${$as_var+set} = xset \ 122ffab5952Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123ffab5952Smrgdone 124ffab5952SmrgPS1='$ ' 125ffab5952SmrgPS2='> ' 126ffab5952SmrgPS4='+ ' 127ffab5952Smrg 128ffab5952Smrg# NLS nuisances. 129ffab5952SmrgLC_ALL=C 130ffab5952Smrgexport LC_ALL 131ffab5952SmrgLANGUAGE=C 132ffab5952Smrgexport LANGUAGE 133ffab5952Smrg 134ffab5952Smrg# CDPATH. 135ffab5952Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136ffab5952Smrg 13767e4e4deSmrg# Use a proper internal environment variable to ensure we don't fall 13867e4e4deSmrg # into an infinite loop, continuously re-executing ourselves. 13967e4e4deSmrg if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 14067e4e4deSmrg _as_can_reexec=no; export _as_can_reexec; 14167e4e4deSmrg # We cannot yet assume a decent shell, so we have to provide a 14267e4e4deSmrg# neutralization value for shells without unset; and this also 14367e4e4deSmrg# works around shells that cannot unset nonexistent variables. 14467e4e4deSmrg# Preserve -v and -x to the replacement shell. 14567e4e4deSmrgBASH_ENV=/dev/null 14667e4e4deSmrgENV=/dev/null 14767e4e4deSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 14867e4e4deSmrgcase $- in # (((( 14967e4e4deSmrg *v*x* | *x*v* ) as_opts=-vx ;; 15067e4e4deSmrg *v* ) as_opts=-v ;; 15167e4e4deSmrg *x* ) as_opts=-x ;; 15267e4e4deSmrg * ) as_opts= ;; 15367e4e4deSmrgesac 15467e4e4deSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 15567e4e4deSmrg# Admittedly, this is quite paranoid, since all the known shells bail 15667e4e4deSmrg# out after a failed `exec'. 15767e4e4deSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 15867e4e4deSmrgas_fn_exit 255 15967e4e4deSmrg fi 16067e4e4deSmrg # We don't want this to propagate to other subprocesses. 16167e4e4deSmrg { _as_can_reexec=; unset _as_can_reexec;} 162ffab5952Smrgif test "x$CONFIG_SHELL" = x; then 163ffab5952Smrg as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164ffab5952Smrg emulate sh 165ffab5952Smrg NULLCMD=: 166ffab5952Smrg # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167ffab5952Smrg # is contrary to our usage. Disable this feature. 168ffab5952Smrg alias -g '\${1+\"\$@\"}'='\"\$@\"' 169ffab5952Smrg setopt NO_GLOB_SUBST 170ffab5952Smrgelse 171ffab5952Smrg case \`(set -o) 2>/dev/null\` in #( 172ffab5952Smrg *posix*) : 173ffab5952Smrg set -o posix ;; #( 174ffab5952Smrg *) : 175ffab5952Smrg ;; 176ffab5952Smrgesac 177ffab5952Smrgfi 178ffab5952Smrg" 179ffab5952Smrg as_required="as_fn_return () { (exit \$1); } 180ffab5952Smrgas_fn_success () { as_fn_return 0; } 181ffab5952Smrgas_fn_failure () { as_fn_return 1; } 182ffab5952Smrgas_fn_ret_success () { return 0; } 183ffab5952Smrgas_fn_ret_failure () { return 1; } 184ffab5952Smrg 185ffab5952Smrgexitcode=0 186ffab5952Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; } 187ffab5952Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188ffab5952Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189ffab5952Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190ffab5952Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191ffab5952Smrg 192ffab5952Smrgelse 193ffab5952Smrg exitcode=1; echo positional parameters were not saved. 194ffab5952Smrgfi 19567e4e4deSmrgtest x\$exitcode = x0 || exit 1 19667e4e4deSmrgtest -x / || exit 1" 197ffab5952Smrg as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198ffab5952Smrg as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199ffab5952Smrg eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200ffab5952Smrg test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 201ffab5952Smrg if (eval "$as_required") 2>/dev/null; then : 202ffab5952Smrg as_have_required=yes 203ffab5952Smrgelse 204ffab5952Smrg as_have_required=no 205ffab5952Smrgfi 206ffab5952Smrg if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 207ffab5952Smrg 208ffab5952Smrgelse 209ffab5952Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 210ffab5952Smrgas_found=false 211ffab5952Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 212ffab5952Smrgdo 213ffab5952Smrg IFS=$as_save_IFS 214ffab5952Smrg test -z "$as_dir" && as_dir=. 215ffab5952Smrg as_found=: 216ffab5952Smrg case $as_dir in #( 217ffab5952Smrg /*) 218ffab5952Smrg for as_base in sh bash ksh sh5; do 219ffab5952Smrg # Try only shells that exist, to save several forks. 220ffab5952Smrg as_shell=$as_dir/$as_base 221ffab5952Smrg if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222ffab5952Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 223ffab5952Smrg CONFIG_SHELL=$as_shell as_have_required=yes 224ffab5952Smrg if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 225ffab5952Smrg break 2 226ffab5952Smrgfi 227ffab5952Smrgfi 228ffab5952Smrg done;; 229ffab5952Smrg esac 230ffab5952Smrg as_found=false 231ffab5952Smrgdone 232ffab5952Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 233ffab5952Smrg { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 234ffab5952Smrg CONFIG_SHELL=$SHELL as_have_required=yes 235ffab5952Smrgfi; } 236ffab5952SmrgIFS=$as_save_IFS 237ffab5952Smrg 238ffab5952Smrg 239ffab5952Smrg if test "x$CONFIG_SHELL" != x; then : 24067e4e4deSmrg export CONFIG_SHELL 24167e4e4deSmrg # We cannot yet assume a decent shell, so we have to provide a 24267e4e4deSmrg# neutralization value for shells without unset; and this also 24367e4e4deSmrg# works around shells that cannot unset nonexistent variables. 24467e4e4deSmrg# Preserve -v and -x to the replacement shell. 24567e4e4deSmrgBASH_ENV=/dev/null 24667e4e4deSmrgENV=/dev/null 24767e4e4deSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 24867e4e4deSmrgcase $- in # (((( 24967e4e4deSmrg *v*x* | *x*v* ) as_opts=-vx ;; 25067e4e4deSmrg *v* ) as_opts=-v ;; 25167e4e4deSmrg *x* ) as_opts=-x ;; 25267e4e4deSmrg * ) as_opts= ;; 25367e4e4deSmrgesac 25467e4e4deSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 25567e4e4deSmrg# Admittedly, this is quite paranoid, since all the known shells bail 25667e4e4deSmrg# out after a failed `exec'. 25767e4e4deSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 25867e4e4deSmrgexit 255 259ffab5952Smrgfi 260ffab5952Smrg 261ffab5952Smrg if test x$as_have_required = xno; then : 262ffab5952Smrg $as_echo "$0: This script requires a shell more modern than all" 263ffab5952Smrg $as_echo "$0: the shells that I found on your system." 264ffab5952Smrg if test x${ZSH_VERSION+set} = xset ; then 265ffab5952Smrg $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 266ffab5952Smrg $as_echo "$0: be upgraded to zsh 4.3.4 or later." 267ffab5952Smrg else 268ffab5952Smrg $as_echo "$0: Please tell bug-autoconf@gnu.org and 269ffab5952Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 270ffab5952Smrg$0: about your system, including any error possibly output 271ffab5952Smrg$0: before this message. Then install a modern shell, or 272ffab5952Smrg$0: manually run the script under such a shell if you do 273ffab5952Smrg$0: have one." 274ffab5952Smrg fi 275ffab5952Smrg exit 1 276ffab5952Smrgfi 277ffab5952Smrgfi 278ffab5952Smrgfi 279ffab5952SmrgSHELL=${CONFIG_SHELL-/bin/sh} 280ffab5952Smrgexport SHELL 281ffab5952Smrg# Unset more variables known to interfere with behavior of common tools. 282ffab5952SmrgCLICOLOR_FORCE= GREP_OPTIONS= 283ffab5952Smrgunset CLICOLOR_FORCE GREP_OPTIONS 284ffab5952Smrg 285ffab5952Smrg## --------------------- ## 286ffab5952Smrg## M4sh Shell Functions. ## 287ffab5952Smrg## --------------------- ## 288ffab5952Smrg# as_fn_unset VAR 289ffab5952Smrg# --------------- 290ffab5952Smrg# Portably unset VAR. 291ffab5952Smrgas_fn_unset () 292ffab5952Smrg{ 293ffab5952Smrg { eval $1=; unset $1;} 294ffab5952Smrg} 295ffab5952Smrgas_unset=as_fn_unset 296ffab5952Smrg 297ffab5952Smrg# as_fn_set_status STATUS 298ffab5952Smrg# ----------------------- 299ffab5952Smrg# Set $? to STATUS, without forking. 300ffab5952Smrgas_fn_set_status () 301ffab5952Smrg{ 302ffab5952Smrg return $1 303ffab5952Smrg} # as_fn_set_status 304ffab5952Smrg 305ffab5952Smrg# as_fn_exit STATUS 306ffab5952Smrg# ----------------- 307ffab5952Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308ffab5952Smrgas_fn_exit () 309ffab5952Smrg{ 310ffab5952Smrg set +e 311ffab5952Smrg as_fn_set_status $1 312ffab5952Smrg exit $1 313ffab5952Smrg} # as_fn_exit 314ffab5952Smrg 315ffab5952Smrg# as_fn_mkdir_p 316ffab5952Smrg# ------------- 317ffab5952Smrg# Create "$as_dir" as a directory, including parents if necessary. 318ffab5952Smrgas_fn_mkdir_p () 319ffab5952Smrg{ 320ffab5952Smrg 321ffab5952Smrg case $as_dir in #( 322ffab5952Smrg -*) as_dir=./$as_dir;; 323ffab5952Smrg esac 324ffab5952Smrg test -d "$as_dir" || eval $as_mkdir_p || { 325ffab5952Smrg as_dirs= 326ffab5952Smrg while :; do 327ffab5952Smrg case $as_dir in #( 328ffab5952Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329ffab5952Smrg *) as_qdir=$as_dir;; 330ffab5952Smrg esac 331ffab5952Smrg as_dirs="'$as_qdir' $as_dirs" 332ffab5952Smrg as_dir=`$as_dirname -- "$as_dir" || 333ffab5952Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334ffab5952Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 335ffab5952Smrg X"$as_dir" : 'X\(//\)$' \| \ 336ffab5952Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337ffab5952Smrg$as_echo X"$as_dir" | 338ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339ffab5952Smrg s//\1/ 340ffab5952Smrg q 341ffab5952Smrg } 342ffab5952Smrg /^X\(\/\/\)[^/].*/{ 343ffab5952Smrg s//\1/ 344ffab5952Smrg q 345ffab5952Smrg } 346ffab5952Smrg /^X\(\/\/\)$/{ 347ffab5952Smrg s//\1/ 348ffab5952Smrg q 349ffab5952Smrg } 350ffab5952Smrg /^X\(\/\).*/{ 351ffab5952Smrg s//\1/ 352ffab5952Smrg q 353ffab5952Smrg } 354ffab5952Smrg s/.*/./; q'` 355ffab5952Smrg test -d "$as_dir" && break 356ffab5952Smrg done 357ffab5952Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 358ffab5952Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359ffab5952Smrg 360ffab5952Smrg 361ffab5952Smrg} # as_fn_mkdir_p 36267e4e4deSmrg 36367e4e4deSmrg# as_fn_executable_p FILE 36467e4e4deSmrg# ----------------------- 36567e4e4deSmrg# Test if FILE is an executable regular file. 36667e4e4deSmrgas_fn_executable_p () 36767e4e4deSmrg{ 36867e4e4deSmrg test -f "$1" && test -x "$1" 36967e4e4deSmrg} # as_fn_executable_p 370ffab5952Smrg# as_fn_append VAR VALUE 371ffab5952Smrg# ---------------------- 372ffab5952Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 373ffab5952Smrg# advantage of any shell optimizations that allow amortized linear growth over 374ffab5952Smrg# repeated appends, instead of the typical quadratic growth present in naive 375ffab5952Smrg# implementations. 376ffab5952Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377ffab5952Smrg eval 'as_fn_append () 378ffab5952Smrg { 379ffab5952Smrg eval $1+=\$2 380ffab5952Smrg }' 381ffab5952Smrgelse 382ffab5952Smrg as_fn_append () 383ffab5952Smrg { 384ffab5952Smrg eval $1=\$$1\$2 385ffab5952Smrg } 386ffab5952Smrgfi # as_fn_append 387ffab5952Smrg 388ffab5952Smrg# as_fn_arith ARG... 389ffab5952Smrg# ------------------ 390ffab5952Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 391ffab5952Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 392ffab5952Smrg# must be portable across $(()) and expr. 393ffab5952Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394ffab5952Smrg eval 'as_fn_arith () 395ffab5952Smrg { 396ffab5952Smrg as_val=$(( $* )) 397ffab5952Smrg }' 398ffab5952Smrgelse 399ffab5952Smrg as_fn_arith () 400ffab5952Smrg { 401ffab5952Smrg as_val=`expr "$@" || test $? -eq 1` 402ffab5952Smrg } 403ffab5952Smrgfi # as_fn_arith 404ffab5952Smrg 405ffab5952Smrg 406ffab5952Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 407ffab5952Smrg# ---------------------------------------- 408ffab5952Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409ffab5952Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410ffab5952Smrg# script with STATUS, using 1 if that was 0. 411ffab5952Smrgas_fn_error () 412ffab5952Smrg{ 413ffab5952Smrg as_status=$1; test $as_status -eq 0 && as_status=1 414ffab5952Smrg if test "$4"; then 415ffab5952Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417ffab5952Smrg fi 418ffab5952Smrg $as_echo "$as_me: error: $2" >&2 419ffab5952Smrg as_fn_exit $as_status 420ffab5952Smrg} # as_fn_error 421ffab5952Smrg 422ffab5952Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 423ffab5952Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 424ffab5952Smrg as_expr=expr 425ffab5952Smrgelse 426ffab5952Smrg as_expr=false 427ffab5952Smrgfi 428ffab5952Smrg 429ffab5952Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430ffab5952Smrg as_basename=basename 431ffab5952Smrgelse 432ffab5952Smrg as_basename=false 433ffab5952Smrgfi 434ffab5952Smrg 435ffab5952Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436ffab5952Smrg as_dirname=dirname 437ffab5952Smrgelse 438ffab5952Smrg as_dirname=false 439ffab5952Smrgfi 440ffab5952Smrg 441ffab5952Smrgas_me=`$as_basename -- "$0" || 442ffab5952Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443ffab5952Smrg X"$0" : 'X\(//\)$' \| \ 444ffab5952Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 445ffab5952Smrg$as_echo X/"$0" | 446ffab5952Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 447ffab5952Smrg s//\1/ 448ffab5952Smrg q 449ffab5952Smrg } 450ffab5952Smrg /^X\/\(\/\/\)$/{ 451ffab5952Smrg s//\1/ 452ffab5952Smrg q 453ffab5952Smrg } 454ffab5952Smrg /^X\/\(\/\).*/{ 455ffab5952Smrg s//\1/ 456ffab5952Smrg q 457ffab5952Smrg } 458ffab5952Smrg s/.*/./; q'` 459ffab5952Smrg 460ffab5952Smrg# Avoid depending upon Character Ranges. 461ffab5952Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 462ffab5952Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463ffab5952Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 464ffab5952Smrgas_cr_digits='0123456789' 465ffab5952Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 466ffab5952Smrg 467ffab5952Smrg 468ffab5952Smrg as_lineno_1=$LINENO as_lineno_1a=$LINENO 469ffab5952Smrg as_lineno_2=$LINENO as_lineno_2a=$LINENO 470ffab5952Smrg eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471ffab5952Smrg test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472ffab5952Smrg # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473ffab5952Smrg sed -n ' 474ffab5952Smrg p 475ffab5952Smrg /[$]LINENO/= 476ffab5952Smrg ' <$as_myself | 477ffab5952Smrg sed ' 478ffab5952Smrg s/[$]LINENO.*/&-/ 479ffab5952Smrg t lineno 480ffab5952Smrg b 481ffab5952Smrg :lineno 482ffab5952Smrg N 483ffab5952Smrg :loop 484ffab5952Smrg s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485ffab5952Smrg t loop 486ffab5952Smrg s/-\n.*// 487ffab5952Smrg ' >$as_me.lineno && 488ffab5952Smrg chmod +x "$as_me.lineno" || 489ffab5952Smrg { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490ffab5952Smrg 49167e4e4deSmrg # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 49267e4e4deSmrg # already done that, so ensure we don't try to do so again and fall 49367e4e4deSmrg # in an infinite loop. This has already happened in practice. 49467e4e4deSmrg _as_can_reexec=no; export _as_can_reexec 495ffab5952Smrg # Don't try to exec as it changes $[0], causing all sort of problems 496ffab5952Smrg # (the dirname of $[0] is not the place where we might find the 497ffab5952Smrg # original and so on. Autoconf is especially sensitive to this). 498ffab5952Smrg . "./$as_me.lineno" 499ffab5952Smrg # Exit status is that of the last command. 500ffab5952Smrg exit 501ffab5952Smrg} 502ffab5952Smrg 503ffab5952SmrgECHO_C= ECHO_N= ECHO_T= 504ffab5952Smrgcase `echo -n x` in #((((( 505ffab5952Smrg-n*) 506ffab5952Smrg case `echo 'xy\c'` in 507ffab5952Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508ffab5952Smrg xy) ECHO_C='\c';; 509ffab5952Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510ffab5952Smrg ECHO_T=' ';; 511ffab5952Smrg esac;; 512ffab5952Smrg*) 513ffab5952Smrg ECHO_N='-n';; 514ffab5952Smrgesac 515ffab5952Smrg 516ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.file 517ffab5952Smrgif test -d conf$$.dir; then 518ffab5952Smrg rm -f conf$$.dir/conf$$.file 519ffab5952Smrgelse 520ffab5952Smrg rm -f conf$$.dir 521ffab5952Smrg mkdir conf$$.dir 2>/dev/null 522ffab5952Smrgfi 523ffab5952Smrgif (echo >conf$$.file) 2>/dev/null; then 524ffab5952Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 525ffab5952Smrg as_ln_s='ln -s' 526ffab5952Smrg # ... but there are two gotchas: 527ffab5952Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528ffab5952Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52967e4e4deSmrg # In both cases, we have to default to `cp -pR'. 530ffab5952Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 53167e4e4deSmrg as_ln_s='cp -pR' 532ffab5952Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 533ffab5952Smrg as_ln_s=ln 534ffab5952Smrg else 53567e4e4deSmrg as_ln_s='cp -pR' 536ffab5952Smrg fi 537ffab5952Smrgelse 53867e4e4deSmrg as_ln_s='cp -pR' 539ffab5952Smrgfi 540ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541ffab5952Smrgrmdir conf$$.dir 2>/dev/null 542ffab5952Smrg 543ffab5952Smrgif mkdir -p . 2>/dev/null; then 544ffab5952Smrg as_mkdir_p='mkdir -p "$as_dir"' 545ffab5952Smrgelse 546ffab5952Smrg test -d ./-p && rmdir ./-p 547ffab5952Smrg as_mkdir_p=false 548ffab5952Smrgfi 549ffab5952Smrg 55067e4e4deSmrgas_test_x='test -x' 55167e4e4deSmrgas_executable_p=as_fn_executable_p 552ffab5952Smrg 553ffab5952Smrg# Sed expression to map a string onto a valid CPP name. 554ffab5952Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555ffab5952Smrg 556ffab5952Smrg# Sed expression to map a string onto a valid variable name. 557ffab5952Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558ffab5952Smrg 559ffab5952Smrg 560ffab5952Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null 561ffab5952Smrgexec 6>&1 562ffab5952Smrg 563ffab5952Smrg# Name of the host. 564ffab5952Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565ffab5952Smrg# so uname gets run too. 566ffab5952Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567ffab5952Smrg 568ffab5952Smrg# 569ffab5952Smrg# Initializations. 570ffab5952Smrg# 571ffab5952Smrgac_default_prefix=/usr/local 572ffab5952Smrgac_clean_files= 573ffab5952Smrgac_config_libobj_dir=. 574ffab5952SmrgLIBOBJS= 575ffab5952Smrgcross_compiling=no 576ffab5952Smrgsubdirs= 577ffab5952SmrgMFLAGS= 578ffab5952SmrgMAKEFLAGS= 579ffab5952Smrg 580ffab5952Smrg# Identity of this package. 581ffab5952SmrgPACKAGE_NAME='util-macros' 582ffab5952SmrgPACKAGE_TARNAME='util-macros' 5839fa8ffe7SmrgPACKAGE_VERSION='1.19.2' 5849fa8ffe7SmrgPACKAGE_STRING='util-macros 1.19.2' 585ffab5952SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 586ffab5952SmrgPACKAGE_URL='' 587ffab5952Smrg 588ffab5952Smrgac_unique_file="Makefile.am" 589ffab5952Smrgac_subst_vars='LTLIBOBJS 590ffab5952SmrgLIBOBJS 591ffab5952SmrgCHANGELOG_CMD 59267e4e4deSmrgAM_BACKSLASH 59367e4e4deSmrgAM_DEFAULT_VERBOSITY 59467e4e4deSmrgAM_DEFAULT_V 59567e4e4deSmrgAM_V 596ffab5952Smrgam__untar 597ffab5952Smrgam__tar 598ffab5952SmrgAMTAR 599ffab5952Smrgam__leading_dot 600ffab5952SmrgSET_MAKE 601ffab5952SmrgAWK 602ffab5952Smrgmkdir_p 603ffab5952SmrgMKDIR_P 604ffab5952SmrgINSTALL_STRIP_PROGRAM 605ffab5952SmrgSTRIP 606ffab5952Smrginstall_sh 607ffab5952SmrgMAKEINFO 608ffab5952SmrgAUTOHEADER 609ffab5952SmrgAUTOMAKE 610ffab5952SmrgAUTOCONF 611ffab5952SmrgACLOCAL 612ffab5952SmrgVERSION 613ffab5952SmrgPACKAGE 614ffab5952SmrgCYGPATH_W 615ffab5952Smrgam__isrc 616ffab5952SmrgINSTALL_DATA 617ffab5952SmrgINSTALL_SCRIPT 618ffab5952SmrgINSTALL_PROGRAM 619ffab5952Smrgtarget_alias 620ffab5952Smrghost_alias 621ffab5952Smrgbuild_alias 622ffab5952SmrgLIBS 623ffab5952SmrgECHO_T 624ffab5952SmrgECHO_N 625ffab5952SmrgECHO_C 626ffab5952SmrgDEFS 627ffab5952Smrgmandir 628ffab5952Smrglocaledir 629ffab5952Smrglibdir 630ffab5952Smrgpsdir 631ffab5952Smrgpdfdir 632ffab5952Smrgdvidir 633ffab5952Smrghtmldir 634ffab5952Smrginfodir 635ffab5952Smrgdocdir 636ffab5952Smrgoldincludedir 637ffab5952Smrgincludedir 638ffab5952Smrglocalstatedir 639ffab5952Smrgsharedstatedir 640ffab5952Smrgsysconfdir 641ffab5952Smrgdatadir 642ffab5952Smrgdatarootdir 643ffab5952Smrglibexecdir 644ffab5952Smrgsbindir 645ffab5952Smrgbindir 646ffab5952Smrgprogram_transform_name 647ffab5952Smrgprefix 648ffab5952Smrgexec_prefix 649ffab5952SmrgPACKAGE_URL 650ffab5952SmrgPACKAGE_BUGREPORT 651ffab5952SmrgPACKAGE_STRING 652ffab5952SmrgPACKAGE_VERSION 653ffab5952SmrgPACKAGE_TARNAME 654ffab5952SmrgPACKAGE_NAME 655ffab5952SmrgPATH_SEPARATOR 656ffab5952SmrgSHELL' 657ffab5952Smrgac_subst_files='' 658ffab5952Smrgac_user_opts=' 659ffab5952Smrgenable_option_checking 66067e4e4deSmrgenable_silent_rules 661ffab5952Smrg' 662ffab5952Smrg ac_precious_vars='build_alias 663ffab5952Smrghost_alias 664ffab5952Smrgtarget_alias' 665ffab5952Smrg 666ffab5952Smrg 667ffab5952Smrg# Initialize some variables set by options. 668ffab5952Smrgac_init_help= 669ffab5952Smrgac_init_version=false 670ffab5952Smrgac_unrecognized_opts= 671ffab5952Smrgac_unrecognized_sep= 672ffab5952Smrg# The variables have the same names as the options, with 673ffab5952Smrg# dashes changed to underlines. 674ffab5952Smrgcache_file=/dev/null 675ffab5952Smrgexec_prefix=NONE 676ffab5952Smrgno_create= 677ffab5952Smrgno_recursion= 678ffab5952Smrgprefix=NONE 679ffab5952Smrgprogram_prefix=NONE 680ffab5952Smrgprogram_suffix=NONE 681ffab5952Smrgprogram_transform_name=s,x,x, 682ffab5952Smrgsilent= 683ffab5952Smrgsite= 684ffab5952Smrgsrcdir= 685ffab5952Smrgverbose= 686ffab5952Smrgx_includes=NONE 687ffab5952Smrgx_libraries=NONE 688ffab5952Smrg 689ffab5952Smrg# Installation directory options. 690ffab5952Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 691ffab5952Smrg# and all the variables that are supposed to be based on exec_prefix 692ffab5952Smrg# by default will actually change. 693ffab5952Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 694ffab5952Smrg# (The list follows the same order as the GNU Coding Standards.) 695ffab5952Smrgbindir='${exec_prefix}/bin' 696ffab5952Smrgsbindir='${exec_prefix}/sbin' 697ffab5952Smrglibexecdir='${exec_prefix}/libexec' 698ffab5952Smrgdatarootdir='${prefix}/share' 699ffab5952Smrgdatadir='${datarootdir}' 700ffab5952Smrgsysconfdir='${prefix}/etc' 701ffab5952Smrgsharedstatedir='${prefix}/com' 702ffab5952Smrglocalstatedir='${prefix}/var' 703ffab5952Smrgincludedir='${prefix}/include' 704ffab5952Smrgoldincludedir='/usr/include' 705ffab5952Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 706ffab5952Smrginfodir='${datarootdir}/info' 707ffab5952Smrghtmldir='${docdir}' 708ffab5952Smrgdvidir='${docdir}' 709ffab5952Smrgpdfdir='${docdir}' 710ffab5952Smrgpsdir='${docdir}' 711ffab5952Smrglibdir='${exec_prefix}/lib' 712ffab5952Smrglocaledir='${datarootdir}/locale' 713ffab5952Smrgmandir='${datarootdir}/man' 714ffab5952Smrg 715ffab5952Smrgac_prev= 716ffab5952Smrgac_dashdash= 717ffab5952Smrgfor ac_option 718ffab5952Smrgdo 719ffab5952Smrg # If the previous option needs an argument, assign it. 720ffab5952Smrg if test -n "$ac_prev"; then 721ffab5952Smrg eval $ac_prev=\$ac_option 722ffab5952Smrg ac_prev= 723ffab5952Smrg continue 724ffab5952Smrg fi 725ffab5952Smrg 726ffab5952Smrg case $ac_option in 727ffab5952Smrg *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 728ffab5952Smrg *=) ac_optarg= ;; 729ffab5952Smrg *) ac_optarg=yes ;; 730ffab5952Smrg esac 731ffab5952Smrg 732ffab5952Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 733ffab5952Smrg 734ffab5952Smrg case $ac_dashdash$ac_option in 735ffab5952Smrg --) 736ffab5952Smrg ac_dashdash=yes ;; 737ffab5952Smrg 738ffab5952Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 739ffab5952Smrg ac_prev=bindir ;; 740ffab5952Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 741ffab5952Smrg bindir=$ac_optarg ;; 742ffab5952Smrg 743ffab5952Smrg -build | --build | --buil | --bui | --bu) 744ffab5952Smrg ac_prev=build_alias ;; 745ffab5952Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 746ffab5952Smrg build_alias=$ac_optarg ;; 747ffab5952Smrg 748ffab5952Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 749ffab5952Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 750ffab5952Smrg ac_prev=cache_file ;; 751ffab5952Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 752ffab5952Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 753ffab5952Smrg cache_file=$ac_optarg ;; 754ffab5952Smrg 755ffab5952Smrg --config-cache | -C) 756ffab5952Smrg cache_file=config.cache ;; 757ffab5952Smrg 758ffab5952Smrg -datadir | --datadir | --datadi | --datad) 759ffab5952Smrg ac_prev=datadir ;; 760ffab5952Smrg -datadir=* | --datadir=* | --datadi=* | --datad=*) 761ffab5952Smrg datadir=$ac_optarg ;; 762ffab5952Smrg 763ffab5952Smrg -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 764ffab5952Smrg | --dataroo | --dataro | --datar) 765ffab5952Smrg ac_prev=datarootdir ;; 766ffab5952Smrg -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 767ffab5952Smrg | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 768ffab5952Smrg datarootdir=$ac_optarg ;; 769ffab5952Smrg 770ffab5952Smrg -disable-* | --disable-*) 771ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 772ffab5952Smrg # Reject names that are not valid shell variable names. 773ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 774ffab5952Smrg as_fn_error $? "invalid feature name: $ac_useropt" 775ffab5952Smrg ac_useropt_orig=$ac_useropt 776ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 777ffab5952Smrg case $ac_user_opts in 778ffab5952Smrg *" 779ffab5952Smrg"enable_$ac_useropt" 780ffab5952Smrg"*) ;; 781ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 782ffab5952Smrg ac_unrecognized_sep=', ';; 783ffab5952Smrg esac 784ffab5952Smrg eval enable_$ac_useropt=no ;; 785ffab5952Smrg 786ffab5952Smrg -docdir | --docdir | --docdi | --doc | --do) 787ffab5952Smrg ac_prev=docdir ;; 788ffab5952Smrg -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 789ffab5952Smrg docdir=$ac_optarg ;; 790ffab5952Smrg 791ffab5952Smrg -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 792ffab5952Smrg ac_prev=dvidir ;; 793ffab5952Smrg -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 794ffab5952Smrg dvidir=$ac_optarg ;; 795ffab5952Smrg 796ffab5952Smrg -enable-* | --enable-*) 797ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 798ffab5952Smrg # Reject names that are not valid shell variable names. 799ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 800ffab5952Smrg as_fn_error $? "invalid feature name: $ac_useropt" 801ffab5952Smrg ac_useropt_orig=$ac_useropt 802ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 803ffab5952Smrg case $ac_user_opts in 804ffab5952Smrg *" 805ffab5952Smrg"enable_$ac_useropt" 806ffab5952Smrg"*) ;; 807ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 808ffab5952Smrg ac_unrecognized_sep=', ';; 809ffab5952Smrg esac 810ffab5952Smrg eval enable_$ac_useropt=\$ac_optarg ;; 811ffab5952Smrg 812ffab5952Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 813ffab5952Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 814ffab5952Smrg | --exec | --exe | --ex) 815ffab5952Smrg ac_prev=exec_prefix ;; 816ffab5952Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 817ffab5952Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 818ffab5952Smrg | --exec=* | --exe=* | --ex=*) 819ffab5952Smrg exec_prefix=$ac_optarg ;; 820ffab5952Smrg 821ffab5952Smrg -gas | --gas | --ga | --g) 822ffab5952Smrg # Obsolete; use --with-gas. 823ffab5952Smrg with_gas=yes ;; 824ffab5952Smrg 825ffab5952Smrg -help | --help | --hel | --he | -h) 826ffab5952Smrg ac_init_help=long ;; 827ffab5952Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 828ffab5952Smrg ac_init_help=recursive ;; 829ffab5952Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 830ffab5952Smrg ac_init_help=short ;; 831ffab5952Smrg 832ffab5952Smrg -host | --host | --hos | --ho) 833ffab5952Smrg ac_prev=host_alias ;; 834ffab5952Smrg -host=* | --host=* | --hos=* | --ho=*) 835ffab5952Smrg host_alias=$ac_optarg ;; 836ffab5952Smrg 837ffab5952Smrg -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 838ffab5952Smrg ac_prev=htmldir ;; 839ffab5952Smrg -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 840ffab5952Smrg | --ht=*) 841ffab5952Smrg htmldir=$ac_optarg ;; 842ffab5952Smrg 843ffab5952Smrg -includedir | --includedir | --includedi | --included | --include \ 844ffab5952Smrg | --includ | --inclu | --incl | --inc) 845ffab5952Smrg ac_prev=includedir ;; 846ffab5952Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 847ffab5952Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 848ffab5952Smrg includedir=$ac_optarg ;; 849ffab5952Smrg 850ffab5952Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 851ffab5952Smrg ac_prev=infodir ;; 852ffab5952Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 853ffab5952Smrg infodir=$ac_optarg ;; 854ffab5952Smrg 855ffab5952Smrg -libdir | --libdir | --libdi | --libd) 856ffab5952Smrg ac_prev=libdir ;; 857ffab5952Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 858ffab5952Smrg libdir=$ac_optarg ;; 859ffab5952Smrg 860ffab5952Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 861ffab5952Smrg | --libexe | --libex | --libe) 862ffab5952Smrg ac_prev=libexecdir ;; 863ffab5952Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 864ffab5952Smrg | --libexe=* | --libex=* | --libe=*) 865ffab5952Smrg libexecdir=$ac_optarg ;; 866ffab5952Smrg 867ffab5952Smrg -localedir | --localedir | --localedi | --localed | --locale) 868ffab5952Smrg ac_prev=localedir ;; 869ffab5952Smrg -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 870ffab5952Smrg localedir=$ac_optarg ;; 871ffab5952Smrg 872ffab5952Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 873ffab5952Smrg | --localstate | --localstat | --localsta | --localst | --locals) 874ffab5952Smrg ac_prev=localstatedir ;; 875ffab5952Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 876ffab5952Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 877ffab5952Smrg localstatedir=$ac_optarg ;; 878ffab5952Smrg 879ffab5952Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 880ffab5952Smrg ac_prev=mandir ;; 881ffab5952Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 882ffab5952Smrg mandir=$ac_optarg ;; 883ffab5952Smrg 884ffab5952Smrg -nfp | --nfp | --nf) 885ffab5952Smrg # Obsolete; use --without-fp. 886ffab5952Smrg with_fp=no ;; 887ffab5952Smrg 888ffab5952Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 889ffab5952Smrg | --no-cr | --no-c | -n) 890ffab5952Smrg no_create=yes ;; 891ffab5952Smrg 892ffab5952Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 893ffab5952Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 894ffab5952Smrg no_recursion=yes ;; 895ffab5952Smrg 896ffab5952Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 897ffab5952Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 898ffab5952Smrg | --oldin | --oldi | --old | --ol | --o) 899ffab5952Smrg ac_prev=oldincludedir ;; 900ffab5952Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 901ffab5952Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 902ffab5952Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 903ffab5952Smrg oldincludedir=$ac_optarg ;; 904ffab5952Smrg 905ffab5952Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 906ffab5952Smrg ac_prev=prefix ;; 907ffab5952Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 908ffab5952Smrg prefix=$ac_optarg ;; 909ffab5952Smrg 910ffab5952Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 911ffab5952Smrg | --program-pre | --program-pr | --program-p) 912ffab5952Smrg ac_prev=program_prefix ;; 913ffab5952Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 914ffab5952Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 915ffab5952Smrg program_prefix=$ac_optarg ;; 916ffab5952Smrg 917ffab5952Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 918ffab5952Smrg | --program-suf | --program-su | --program-s) 919ffab5952Smrg ac_prev=program_suffix ;; 920ffab5952Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 921ffab5952Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 922ffab5952Smrg program_suffix=$ac_optarg ;; 923ffab5952Smrg 924ffab5952Smrg -program-transform-name | --program-transform-name \ 925ffab5952Smrg | --program-transform-nam | --program-transform-na \ 926ffab5952Smrg | --program-transform-n | --program-transform- \ 927ffab5952Smrg | --program-transform | --program-transfor \ 928ffab5952Smrg | --program-transfo | --program-transf \ 929ffab5952Smrg | --program-trans | --program-tran \ 930ffab5952Smrg | --progr-tra | --program-tr | --program-t) 931ffab5952Smrg ac_prev=program_transform_name ;; 932ffab5952Smrg -program-transform-name=* | --program-transform-name=* \ 933ffab5952Smrg | --program-transform-nam=* | --program-transform-na=* \ 934ffab5952Smrg | --program-transform-n=* | --program-transform-=* \ 935ffab5952Smrg | --program-transform=* | --program-transfor=* \ 936ffab5952Smrg | --program-transfo=* | --program-transf=* \ 937ffab5952Smrg | --program-trans=* | --program-tran=* \ 938ffab5952Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 939ffab5952Smrg program_transform_name=$ac_optarg ;; 940ffab5952Smrg 941ffab5952Smrg -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 942ffab5952Smrg ac_prev=pdfdir ;; 943ffab5952Smrg -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 944ffab5952Smrg pdfdir=$ac_optarg ;; 945ffab5952Smrg 946ffab5952Smrg -psdir | --psdir | --psdi | --psd | --ps) 947ffab5952Smrg ac_prev=psdir ;; 948ffab5952Smrg -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 949ffab5952Smrg psdir=$ac_optarg ;; 950ffab5952Smrg 951ffab5952Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 952ffab5952Smrg | -silent | --silent | --silen | --sile | --sil) 953ffab5952Smrg silent=yes ;; 954ffab5952Smrg 955ffab5952Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 956ffab5952Smrg ac_prev=sbindir ;; 957ffab5952Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 958ffab5952Smrg | --sbi=* | --sb=*) 959ffab5952Smrg sbindir=$ac_optarg ;; 960ffab5952Smrg 961ffab5952Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 962ffab5952Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 963ffab5952Smrg | --sharedst | --shareds | --shared | --share | --shar \ 964ffab5952Smrg | --sha | --sh) 965ffab5952Smrg ac_prev=sharedstatedir ;; 966ffab5952Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 967ffab5952Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 968ffab5952Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 969ffab5952Smrg | --sha=* | --sh=*) 970ffab5952Smrg sharedstatedir=$ac_optarg ;; 971ffab5952Smrg 972ffab5952Smrg -site | --site | --sit) 973ffab5952Smrg ac_prev=site ;; 974ffab5952Smrg -site=* | --site=* | --sit=*) 975ffab5952Smrg site=$ac_optarg ;; 976ffab5952Smrg 977ffab5952Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 978ffab5952Smrg ac_prev=srcdir ;; 979ffab5952Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 980ffab5952Smrg srcdir=$ac_optarg ;; 981ffab5952Smrg 982ffab5952Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 983ffab5952Smrg | --syscon | --sysco | --sysc | --sys | --sy) 984ffab5952Smrg ac_prev=sysconfdir ;; 985ffab5952Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 986ffab5952Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 987ffab5952Smrg sysconfdir=$ac_optarg ;; 988ffab5952Smrg 989ffab5952Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 990ffab5952Smrg ac_prev=target_alias ;; 991ffab5952Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 992ffab5952Smrg target_alias=$ac_optarg ;; 993ffab5952Smrg 994ffab5952Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 995ffab5952Smrg verbose=yes ;; 996ffab5952Smrg 997ffab5952Smrg -version | --version | --versio | --versi | --vers | -V) 998ffab5952Smrg ac_init_version=: ;; 999ffab5952Smrg 1000ffab5952Smrg -with-* | --with-*) 1001ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1002ffab5952Smrg # Reject names that are not valid shell variable names. 1003ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1004ffab5952Smrg as_fn_error $? "invalid package name: $ac_useropt" 1005ffab5952Smrg ac_useropt_orig=$ac_useropt 1006ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1007ffab5952Smrg case $ac_user_opts in 1008ffab5952Smrg *" 1009ffab5952Smrg"with_$ac_useropt" 1010ffab5952Smrg"*) ;; 1011ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1012ffab5952Smrg ac_unrecognized_sep=', ';; 1013ffab5952Smrg esac 1014ffab5952Smrg eval with_$ac_useropt=\$ac_optarg ;; 1015ffab5952Smrg 1016ffab5952Smrg -without-* | --without-*) 1017ffab5952Smrg ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1018ffab5952Smrg # Reject names that are not valid shell variable names. 1019ffab5952Smrg expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1020ffab5952Smrg as_fn_error $? "invalid package name: $ac_useropt" 1021ffab5952Smrg ac_useropt_orig=$ac_useropt 1022ffab5952Smrg ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1023ffab5952Smrg case $ac_user_opts in 1024ffab5952Smrg *" 1025ffab5952Smrg"with_$ac_useropt" 1026ffab5952Smrg"*) ;; 1027ffab5952Smrg *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1028ffab5952Smrg ac_unrecognized_sep=', ';; 1029ffab5952Smrg esac 1030ffab5952Smrg eval with_$ac_useropt=no ;; 1031ffab5952Smrg 1032ffab5952Smrg --x) 1033ffab5952Smrg # Obsolete; use --with-x. 1034ffab5952Smrg with_x=yes ;; 1035ffab5952Smrg 1036ffab5952Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1037ffab5952Smrg | --x-incl | --x-inc | --x-in | --x-i) 1038ffab5952Smrg ac_prev=x_includes ;; 1039ffab5952Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1040ffab5952Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1041ffab5952Smrg x_includes=$ac_optarg ;; 1042ffab5952Smrg 1043ffab5952Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1044ffab5952Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1045ffab5952Smrg ac_prev=x_libraries ;; 1046ffab5952Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1047ffab5952Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1048ffab5952Smrg x_libraries=$ac_optarg ;; 1049ffab5952Smrg 1050ffab5952Smrg -*) as_fn_error $? "unrecognized option: \`$ac_option' 1051ffab5952SmrgTry \`$0 --help' for more information" 1052ffab5952Smrg ;; 1053ffab5952Smrg 1054ffab5952Smrg *=*) 1055ffab5952Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1056ffab5952Smrg # Reject names that are not valid shell variable names. 1057ffab5952Smrg case $ac_envvar in #( 1058ffab5952Smrg '' | [0-9]* | *[!_$as_cr_alnum]* ) 1059ffab5952Smrg as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1060ffab5952Smrg esac 1061ffab5952Smrg eval $ac_envvar=\$ac_optarg 1062ffab5952Smrg export $ac_envvar ;; 1063ffab5952Smrg 1064ffab5952Smrg *) 1065ffab5952Smrg # FIXME: should be removed in autoconf 3.0. 1066ffab5952Smrg $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1067ffab5952Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1068ffab5952Smrg $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1069ffab5952Smrg : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1070ffab5952Smrg ;; 1071ffab5952Smrg 1072ffab5952Smrg esac 1073ffab5952Smrgdone 1074ffab5952Smrg 1075ffab5952Smrgif test -n "$ac_prev"; then 1076ffab5952Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1077ffab5952Smrg as_fn_error $? "missing argument to $ac_option" 1078ffab5952Smrgfi 1079ffab5952Smrg 1080ffab5952Smrgif test -n "$ac_unrecognized_opts"; then 1081ffab5952Smrg case $enable_option_checking in 1082ffab5952Smrg no) ;; 1083ffab5952Smrg fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1084ffab5952Smrg *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1085ffab5952Smrg esac 1086ffab5952Smrgfi 1087ffab5952Smrg 1088ffab5952Smrg# Check all directory arguments for consistency. 1089ffab5952Smrgfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1090ffab5952Smrg datadir sysconfdir sharedstatedir localstatedir includedir \ 1091ffab5952Smrg oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1092ffab5952Smrg libdir localedir mandir 1093ffab5952Smrgdo 1094ffab5952Smrg eval ac_val=\$$ac_var 1095ffab5952Smrg # Remove trailing slashes. 1096ffab5952Smrg case $ac_val in 1097ffab5952Smrg */ ) 1098ffab5952Smrg ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1099ffab5952Smrg eval $ac_var=\$ac_val;; 1100ffab5952Smrg esac 1101ffab5952Smrg # Be sure to have absolute directory names. 1102ffab5952Smrg case $ac_val in 1103ffab5952Smrg [\\/$]* | ?:[\\/]* ) continue;; 1104ffab5952Smrg NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1105ffab5952Smrg esac 1106ffab5952Smrg as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1107ffab5952Smrgdone 1108ffab5952Smrg 1109ffab5952Smrg# There might be people who depend on the old broken behavior: `$host' 1110ffab5952Smrg# used to hold the argument of --host etc. 1111ffab5952Smrg# FIXME: To remove some day. 1112ffab5952Smrgbuild=$build_alias 1113ffab5952Smrghost=$host_alias 1114ffab5952Smrgtarget=$target_alias 1115ffab5952Smrg 1116ffab5952Smrg# FIXME: To remove some day. 1117ffab5952Smrgif test "x$host_alias" != x; then 1118ffab5952Smrg if test "x$build_alias" = x; then 1119ffab5952Smrg cross_compiling=maybe 1120ffab5952Smrg elif test "x$build_alias" != "x$host_alias"; then 1121ffab5952Smrg cross_compiling=yes 1122ffab5952Smrg fi 1123ffab5952Smrgfi 1124ffab5952Smrg 1125ffab5952Smrgac_tool_prefix= 1126ffab5952Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 1127ffab5952Smrg 1128ffab5952Smrgtest "$silent" = yes && exec 6>/dev/null 1129ffab5952Smrg 1130ffab5952Smrg 1131ffab5952Smrgac_pwd=`pwd` && test -n "$ac_pwd" && 1132ffab5952Smrgac_ls_di=`ls -di .` && 1133ffab5952Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1134ffab5952Smrg as_fn_error $? "working directory cannot be determined" 1135ffab5952Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1136ffab5952Smrg as_fn_error $? "pwd does not report name of working directory" 1137ffab5952Smrg 1138ffab5952Smrg 1139ffab5952Smrg# Find the source files, if location was not specified. 1140ffab5952Smrgif test -z "$srcdir"; then 1141ffab5952Smrg ac_srcdir_defaulted=yes 1142ffab5952Smrg # Try the directory containing this script, then the parent directory. 1143ffab5952Smrg ac_confdir=`$as_dirname -- "$as_myself" || 1144ffab5952Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1145ffab5952Smrg X"$as_myself" : 'X\(//\)[^/]' \| \ 1146ffab5952Smrg X"$as_myself" : 'X\(//\)$' \| \ 1147ffab5952Smrg X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1148ffab5952Smrg$as_echo X"$as_myself" | 1149ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1150ffab5952Smrg s//\1/ 1151ffab5952Smrg q 1152ffab5952Smrg } 1153ffab5952Smrg /^X\(\/\/\)[^/].*/{ 1154ffab5952Smrg s//\1/ 1155ffab5952Smrg q 1156ffab5952Smrg } 1157ffab5952Smrg /^X\(\/\/\)$/{ 1158ffab5952Smrg s//\1/ 1159ffab5952Smrg q 1160ffab5952Smrg } 1161ffab5952Smrg /^X\(\/\).*/{ 1162ffab5952Smrg s//\1/ 1163ffab5952Smrg q 1164ffab5952Smrg } 1165ffab5952Smrg s/.*/./; q'` 1166ffab5952Smrg srcdir=$ac_confdir 1167ffab5952Smrg if test ! -r "$srcdir/$ac_unique_file"; then 1168ffab5952Smrg srcdir=.. 1169ffab5952Smrg fi 1170ffab5952Smrgelse 1171ffab5952Smrg ac_srcdir_defaulted=no 1172ffab5952Smrgfi 1173ffab5952Smrgif test ! -r "$srcdir/$ac_unique_file"; then 1174ffab5952Smrg test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1175ffab5952Smrg as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1176ffab5952Smrgfi 1177ffab5952Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1178ffab5952Smrgac_abs_confdir=`( 1179ffab5952Smrg cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1180ffab5952Smrg pwd)` 1181ffab5952Smrg# When building in place, set srcdir=. 1182ffab5952Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then 1183ffab5952Smrg srcdir=. 1184ffab5952Smrgfi 1185ffab5952Smrg# Remove unnecessary trailing slashes from srcdir. 1186ffab5952Smrg# Double slashes in file names in object file debugging info 1187ffab5952Smrg# mess up M-x gdb in Emacs. 1188ffab5952Smrgcase $srcdir in 1189ffab5952Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1190ffab5952Smrgesac 1191ffab5952Smrgfor ac_var in $ac_precious_vars; do 1192ffab5952Smrg eval ac_env_${ac_var}_set=\${${ac_var}+set} 1193ffab5952Smrg eval ac_env_${ac_var}_value=\$${ac_var} 1194ffab5952Smrg eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1195ffab5952Smrg eval ac_cv_env_${ac_var}_value=\$${ac_var} 1196ffab5952Smrgdone 1197ffab5952Smrg 1198ffab5952Smrg# 1199ffab5952Smrg# Report the --help message. 1200ffab5952Smrg# 1201ffab5952Smrgif test "$ac_init_help" = "long"; then 1202ffab5952Smrg # Omit some internal or obsolete options to make the list less imposing. 1203ffab5952Smrg # This message is too long to be a string in the A/UX 3.1 sh. 1204ffab5952Smrg cat <<_ACEOF 12059fa8ffe7Smrg\`configure' configures util-macros 1.19.2 to adapt to many kinds of systems. 1206ffab5952Smrg 1207ffab5952SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 1208ffab5952Smrg 1209ffab5952SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1210ffab5952SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 1211ffab5952Smrg 1212ffab5952SmrgDefaults for the options are specified in brackets. 1213ffab5952Smrg 1214ffab5952SmrgConfiguration: 1215ffab5952Smrg -h, --help display this help and exit 1216ffab5952Smrg --help=short display options specific to this package 1217ffab5952Smrg --help=recursive display the short help of all the included packages 1218ffab5952Smrg -V, --version display version information and exit 1219ffab5952Smrg -q, --quiet, --silent do not print \`checking ...' messages 1220ffab5952Smrg --cache-file=FILE cache test results in FILE [disabled] 1221ffab5952Smrg -C, --config-cache alias for \`--cache-file=config.cache' 1222ffab5952Smrg -n, --no-create do not create output files 1223ffab5952Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1224ffab5952Smrg 1225ffab5952SmrgInstallation directories: 1226ffab5952Smrg --prefix=PREFIX install architecture-independent files in PREFIX 1227ffab5952Smrg [$ac_default_prefix] 1228ffab5952Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1229ffab5952Smrg [PREFIX] 1230ffab5952Smrg 1231ffab5952SmrgBy default, \`make install' will install all the files in 1232ffab5952Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1233ffab5952Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1234ffab5952Smrgfor instance \`--prefix=\$HOME'. 1235ffab5952Smrg 1236ffab5952SmrgFor better control, use the options below. 1237ffab5952Smrg 1238ffab5952SmrgFine tuning of the installation directories: 1239ffab5952Smrg --bindir=DIR user executables [EPREFIX/bin] 1240ffab5952Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 1241ffab5952Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 1242ffab5952Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1243ffab5952Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1244ffab5952Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1245ffab5952Smrg --libdir=DIR object code libraries [EPREFIX/lib] 1246ffab5952Smrg --includedir=DIR C header files [PREFIX/include] 1247ffab5952Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 1248ffab5952Smrg --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1249ffab5952Smrg --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1250ffab5952Smrg --infodir=DIR info documentation [DATAROOTDIR/info] 1251ffab5952Smrg --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1252ffab5952Smrg --mandir=DIR man documentation [DATAROOTDIR/man] 1253ffab5952Smrg --docdir=DIR documentation root [DATAROOTDIR/doc/util-macros] 1254ffab5952Smrg --htmldir=DIR html documentation [DOCDIR] 1255ffab5952Smrg --dvidir=DIR dvi documentation [DOCDIR] 1256ffab5952Smrg --pdfdir=DIR pdf documentation [DOCDIR] 1257ffab5952Smrg --psdir=DIR ps documentation [DOCDIR] 1258ffab5952Smrg_ACEOF 1259ffab5952Smrg 1260ffab5952Smrg cat <<\_ACEOF 1261ffab5952Smrg 1262ffab5952SmrgProgram names: 1263ffab5952Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 1264ffab5952Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 1265ffab5952Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1266ffab5952Smrg_ACEOF 1267ffab5952Smrgfi 1268ffab5952Smrg 1269ffab5952Smrgif test -n "$ac_init_help"; then 1270ffab5952Smrg case $ac_init_help in 12719fa8ffe7Smrg short | recursive ) echo "Configuration of util-macros 1.19.2:";; 1272ffab5952Smrg esac 1273ffab5952Smrg cat <<\_ACEOF 1274ffab5952Smrg 127567e4e4deSmrgOptional Features: 127667e4e4deSmrg --disable-option-checking ignore unrecognized --enable/--with options 127767e4e4deSmrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 127867e4e4deSmrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 127967e4e4deSmrg --enable-silent-rules less verbose build output (undo: "make V=1") 128067e4e4deSmrg --disable-silent-rules verbose build output (undo: "make V=0") 128167e4e4deSmrg 1282ffab5952SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1283ffab5952Smrg_ACEOF 1284ffab5952Smrgac_status=$? 1285ffab5952Smrgfi 1286ffab5952Smrg 1287ffab5952Smrgif test "$ac_init_help" = "recursive"; then 1288ffab5952Smrg # If there are subdirs, report their specific --help. 1289ffab5952Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1290ffab5952Smrg test -d "$ac_dir" || 1291ffab5952Smrg { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1292ffab5952Smrg continue 1293ffab5952Smrg ac_builddir=. 1294ffab5952Smrg 1295ffab5952Smrgcase "$ac_dir" in 1296ffab5952Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1297ffab5952Smrg*) 1298ffab5952Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1299ffab5952Smrg # A ".." for each directory in $ac_dir_suffix. 1300ffab5952Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1301ffab5952Smrg case $ac_top_builddir_sub in 1302ffab5952Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1303ffab5952Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1304ffab5952Smrg esac ;; 1305ffab5952Smrgesac 1306ffab5952Smrgac_abs_top_builddir=$ac_pwd 1307ffab5952Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 1308ffab5952Smrg# for backward compatibility: 1309ffab5952Smrgac_top_builddir=$ac_top_build_prefix 1310ffab5952Smrg 1311ffab5952Smrgcase $srcdir in 1312ffab5952Smrg .) # We are building in place. 1313ffab5952Smrg ac_srcdir=. 1314ffab5952Smrg ac_top_srcdir=$ac_top_builddir_sub 1315ffab5952Smrg ac_abs_top_srcdir=$ac_pwd ;; 1316ffab5952Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 1317ffab5952Smrg ac_srcdir=$srcdir$ac_dir_suffix; 1318ffab5952Smrg ac_top_srcdir=$srcdir 1319ffab5952Smrg ac_abs_top_srcdir=$srcdir ;; 1320ffab5952Smrg *) # Relative name. 1321ffab5952Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1322ffab5952Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 1323ffab5952Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1324ffab5952Smrgesac 1325ffab5952Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1326ffab5952Smrg 1327ffab5952Smrg cd "$ac_dir" || { ac_status=$?; continue; } 1328ffab5952Smrg # Check for guested configure. 1329ffab5952Smrg if test -f "$ac_srcdir/configure.gnu"; then 1330ffab5952Smrg echo && 1331ffab5952Smrg $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1332ffab5952Smrg elif test -f "$ac_srcdir/configure"; then 1333ffab5952Smrg echo && 1334ffab5952Smrg $SHELL "$ac_srcdir/configure" --help=recursive 1335ffab5952Smrg else 1336ffab5952Smrg $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1337ffab5952Smrg fi || ac_status=$? 1338ffab5952Smrg cd "$ac_pwd" || { ac_status=$?; break; } 1339ffab5952Smrg done 1340ffab5952Smrgfi 1341ffab5952Smrg 1342ffab5952Smrgtest -n "$ac_init_help" && exit $ac_status 1343ffab5952Smrgif $ac_init_version; then 1344ffab5952Smrg cat <<\_ACEOF 13459fa8ffe7Smrgutil-macros configure 1.19.2 134667e4e4deSmrggenerated by GNU Autoconf 2.69 1347ffab5952Smrg 134867e4e4deSmrgCopyright (C) 2012 Free Software Foundation, Inc. 1349ffab5952SmrgThis configure script is free software; the Free Software Foundation 1350ffab5952Smrggives unlimited permission to copy, distribute and modify it. 1351ffab5952Smrg_ACEOF 1352ffab5952Smrg exit 1353ffab5952Smrgfi 1354ffab5952Smrg 1355ffab5952Smrg## ------------------------ ## 1356ffab5952Smrg## Autoconf initialization. ## 1357ffab5952Smrg## ------------------------ ## 1358ffab5952Smrgcat >config.log <<_ACEOF 1359ffab5952SmrgThis file contains any messages produced by compilers while 1360ffab5952Smrgrunning configure, to aid debugging if configure makes a mistake. 1361ffab5952Smrg 13629fa8ffe7SmrgIt was created by util-macros $as_me 1.19.2, which was 136367e4e4deSmrggenerated by GNU Autoconf 2.69. Invocation command line was 1364ffab5952Smrg 1365ffab5952Smrg $ $0 $@ 1366ffab5952Smrg 1367ffab5952Smrg_ACEOF 1368ffab5952Smrgexec 5>>config.log 1369ffab5952Smrg{ 1370ffab5952Smrgcat <<_ASUNAME 1371ffab5952Smrg## --------- ## 1372ffab5952Smrg## Platform. ## 1373ffab5952Smrg## --------- ## 1374ffab5952Smrg 1375ffab5952Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1376ffab5952Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1377ffab5952Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1378ffab5952Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1379ffab5952Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1380ffab5952Smrg 1381ffab5952Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1382ffab5952Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1383ffab5952Smrg 1384ffab5952Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1385ffab5952Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1386ffab5952Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1387ffab5952Smrg/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1388ffab5952Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1389ffab5952Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1390ffab5952Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1391ffab5952Smrg 1392ffab5952Smrg_ASUNAME 1393ffab5952Smrg 1394ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1395ffab5952Smrgfor as_dir in $PATH 1396ffab5952Smrgdo 1397ffab5952Smrg IFS=$as_save_IFS 1398ffab5952Smrg test -z "$as_dir" && as_dir=. 1399ffab5952Smrg $as_echo "PATH: $as_dir" 1400ffab5952Smrg done 1401ffab5952SmrgIFS=$as_save_IFS 1402ffab5952Smrg 1403ffab5952Smrg} >&5 1404ffab5952Smrg 1405ffab5952Smrgcat >&5 <<_ACEOF 1406ffab5952Smrg 1407ffab5952Smrg 1408ffab5952Smrg## ----------- ## 1409ffab5952Smrg## Core tests. ## 1410ffab5952Smrg## ----------- ## 1411ffab5952Smrg 1412ffab5952Smrg_ACEOF 1413ffab5952Smrg 1414ffab5952Smrg 1415ffab5952Smrg# Keep a trace of the command line. 1416ffab5952Smrg# Strip out --no-create and --no-recursion so they do not pile up. 1417ffab5952Smrg# Strip out --silent because we don't want to record it for future runs. 1418ffab5952Smrg# Also quote any args containing shell meta-characters. 1419ffab5952Smrg# Make two passes to allow for proper duplicate-argument suppression. 1420ffab5952Smrgac_configure_args= 1421ffab5952Smrgac_configure_args0= 1422ffab5952Smrgac_configure_args1= 1423ffab5952Smrgac_must_keep_next=false 1424ffab5952Smrgfor ac_pass in 1 2 1425ffab5952Smrgdo 1426ffab5952Smrg for ac_arg 1427ffab5952Smrg do 1428ffab5952Smrg case $ac_arg in 1429ffab5952Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1430ffab5952Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1431ffab5952Smrg | -silent | --silent | --silen | --sile | --sil) 1432ffab5952Smrg continue ;; 1433ffab5952Smrg *\'*) 1434ffab5952Smrg ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1435ffab5952Smrg esac 1436ffab5952Smrg case $ac_pass in 1437ffab5952Smrg 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1438ffab5952Smrg 2) 1439ffab5952Smrg as_fn_append ac_configure_args1 " '$ac_arg'" 1440ffab5952Smrg if test $ac_must_keep_next = true; then 1441ffab5952Smrg ac_must_keep_next=false # Got value, back to normal. 1442ffab5952Smrg else 1443ffab5952Smrg case $ac_arg in 1444ffab5952Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 1445ffab5952Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1446ffab5952Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1447ffab5952Smrg | -with-* | --with-* | -without-* | --without-* | --x) 1448ffab5952Smrg case "$ac_configure_args0 " in 1449ffab5952Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1450ffab5952Smrg esac 1451ffab5952Smrg ;; 1452ffab5952Smrg -* ) ac_must_keep_next=true ;; 1453ffab5952Smrg esac 1454ffab5952Smrg fi 1455ffab5952Smrg as_fn_append ac_configure_args " '$ac_arg'" 1456ffab5952Smrg ;; 1457ffab5952Smrg esac 1458ffab5952Smrg done 1459ffab5952Smrgdone 1460ffab5952Smrg{ ac_configure_args0=; unset ac_configure_args0;} 1461ffab5952Smrg{ ac_configure_args1=; unset ac_configure_args1;} 1462ffab5952Smrg 1463ffab5952Smrg# When interrupted or exit'd, cleanup temporary files, and complete 1464ffab5952Smrg# config.log. We remove comments because anyway the quotes in there 1465ffab5952Smrg# would cause problems or look ugly. 1466ffab5952Smrg# WARNING: Use '\'' to represent an apostrophe within the trap. 1467ffab5952Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1468ffab5952Smrgtrap 'exit_status=$? 1469ffab5952Smrg # Save into config.log some information that might help in debugging. 1470ffab5952Smrg { 1471ffab5952Smrg echo 1472ffab5952Smrg 1473ffab5952Smrg $as_echo "## ---------------- ## 1474ffab5952Smrg## Cache variables. ## 1475ffab5952Smrg## ---------------- ##" 1476ffab5952Smrg echo 1477ffab5952Smrg # The following way of writing the cache mishandles newlines in values, 1478ffab5952Smrg( 1479ffab5952Smrg for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1480ffab5952Smrg eval ac_val=\$$ac_var 1481ffab5952Smrg case $ac_val in #( 1482ffab5952Smrg *${as_nl}*) 1483ffab5952Smrg case $ac_var in #( 1484ffab5952Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1485ffab5952Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1486ffab5952Smrg esac 1487ffab5952Smrg case $ac_var in #( 1488ffab5952Smrg _ | IFS | as_nl) ;; #( 1489ffab5952Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1490ffab5952Smrg *) { eval $ac_var=; unset $ac_var;} ;; 1491ffab5952Smrg esac ;; 1492ffab5952Smrg esac 1493ffab5952Smrg done 1494ffab5952Smrg (set) 2>&1 | 1495ffab5952Smrg case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1496ffab5952Smrg *${as_nl}ac_space=\ *) 1497ffab5952Smrg sed -n \ 1498ffab5952Smrg "s/'\''/'\''\\\\'\'''\''/g; 1499ffab5952Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1500ffab5952Smrg ;; #( 1501ffab5952Smrg *) 1502ffab5952Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1503ffab5952Smrg ;; 1504ffab5952Smrg esac | 1505ffab5952Smrg sort 1506ffab5952Smrg) 1507ffab5952Smrg echo 1508ffab5952Smrg 1509ffab5952Smrg $as_echo "## ----------------- ## 1510ffab5952Smrg## Output variables. ## 1511ffab5952Smrg## ----------------- ##" 1512ffab5952Smrg echo 1513ffab5952Smrg for ac_var in $ac_subst_vars 1514ffab5952Smrg do 1515ffab5952Smrg eval ac_val=\$$ac_var 1516ffab5952Smrg case $ac_val in 1517ffab5952Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1518ffab5952Smrg esac 1519ffab5952Smrg $as_echo "$ac_var='\''$ac_val'\''" 1520ffab5952Smrg done | sort 1521ffab5952Smrg echo 1522ffab5952Smrg 1523ffab5952Smrg if test -n "$ac_subst_files"; then 1524ffab5952Smrg $as_echo "## ------------------- ## 1525ffab5952Smrg## File substitutions. ## 1526ffab5952Smrg## ------------------- ##" 1527ffab5952Smrg echo 1528ffab5952Smrg for ac_var in $ac_subst_files 1529ffab5952Smrg do 1530ffab5952Smrg eval ac_val=\$$ac_var 1531ffab5952Smrg case $ac_val in 1532ffab5952Smrg *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1533ffab5952Smrg esac 1534ffab5952Smrg $as_echo "$ac_var='\''$ac_val'\''" 1535ffab5952Smrg done | sort 1536ffab5952Smrg echo 1537ffab5952Smrg fi 1538ffab5952Smrg 1539ffab5952Smrg if test -s confdefs.h; then 1540ffab5952Smrg $as_echo "## ----------- ## 1541ffab5952Smrg## confdefs.h. ## 1542ffab5952Smrg## ----------- ##" 1543ffab5952Smrg echo 1544ffab5952Smrg cat confdefs.h 1545ffab5952Smrg echo 1546ffab5952Smrg fi 1547ffab5952Smrg test "$ac_signal" != 0 && 1548ffab5952Smrg $as_echo "$as_me: caught signal $ac_signal" 1549ffab5952Smrg $as_echo "$as_me: exit $exit_status" 1550ffab5952Smrg } >&5 1551ffab5952Smrg rm -f core *.core core.conftest.* && 1552ffab5952Smrg rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1553ffab5952Smrg exit $exit_status 1554ffab5952Smrg' 0 1555ffab5952Smrgfor ac_signal in 1 2 13 15; do 1556ffab5952Smrg trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1557ffab5952Smrgdone 1558ffab5952Smrgac_signal=0 1559ffab5952Smrg 1560ffab5952Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 1561ffab5952Smrgrm -f -r conftest* confdefs.h 1562ffab5952Smrg 1563ffab5952Smrg$as_echo "/* confdefs.h */" > confdefs.h 1564ffab5952Smrg 1565ffab5952Smrg# Predefined preprocessor variables. 1566ffab5952Smrg 1567ffab5952Smrgcat >>confdefs.h <<_ACEOF 1568ffab5952Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 1569ffab5952Smrg_ACEOF 1570ffab5952Smrg 1571ffab5952Smrgcat >>confdefs.h <<_ACEOF 1572ffab5952Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1573ffab5952Smrg_ACEOF 1574ffab5952Smrg 1575ffab5952Smrgcat >>confdefs.h <<_ACEOF 1576ffab5952Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 1577ffab5952Smrg_ACEOF 1578ffab5952Smrg 1579ffab5952Smrgcat >>confdefs.h <<_ACEOF 1580ffab5952Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 1581ffab5952Smrg_ACEOF 1582ffab5952Smrg 1583ffab5952Smrgcat >>confdefs.h <<_ACEOF 1584ffab5952Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1585ffab5952Smrg_ACEOF 1586ffab5952Smrg 1587ffab5952Smrgcat >>confdefs.h <<_ACEOF 1588ffab5952Smrg#define PACKAGE_URL "$PACKAGE_URL" 1589ffab5952Smrg_ACEOF 1590ffab5952Smrg 1591ffab5952Smrg 1592ffab5952Smrg# Let the site file select an alternate cache file if it wants to. 1593ffab5952Smrg# Prefer an explicitly selected file to automatically selected ones. 1594ffab5952Smrgac_site_file1=NONE 1595ffab5952Smrgac_site_file2=NONE 1596ffab5952Smrgif test -n "$CONFIG_SITE"; then 1597ffab5952Smrg # We do not want a PATH search for config.site. 1598ffab5952Smrg case $CONFIG_SITE in #(( 1599ffab5952Smrg -*) ac_site_file1=./$CONFIG_SITE;; 1600ffab5952Smrg */*) ac_site_file1=$CONFIG_SITE;; 1601ffab5952Smrg *) ac_site_file1=./$CONFIG_SITE;; 1602ffab5952Smrg esac 1603ffab5952Smrgelif test "x$prefix" != xNONE; then 1604ffab5952Smrg ac_site_file1=$prefix/share/config.site 1605ffab5952Smrg ac_site_file2=$prefix/etc/config.site 1606ffab5952Smrgelse 1607ffab5952Smrg ac_site_file1=$ac_default_prefix/share/config.site 1608ffab5952Smrg ac_site_file2=$ac_default_prefix/etc/config.site 1609ffab5952Smrgfi 1610ffab5952Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 1611ffab5952Smrgdo 1612ffab5952Smrg test "x$ac_site_file" = xNONE && continue 1613ffab5952Smrg if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1614ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1615ffab5952Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1616ffab5952Smrg sed 's/^/| /' "$ac_site_file" >&5 1617ffab5952Smrg . "$ac_site_file" \ 1618ffab5952Smrg || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1619ffab5952Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1620ffab5952Smrgas_fn_error $? "failed to load site script $ac_site_file 1621ffab5952SmrgSee \`config.log' for more details" "$LINENO" 5; } 1622ffab5952Smrg fi 1623ffab5952Smrgdone 1624ffab5952Smrg 1625ffab5952Smrgif test -r "$cache_file"; then 1626ffab5952Smrg # Some versions of bash will fail to source /dev/null (special files 1627ffab5952Smrg # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1628ffab5952Smrg if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1629ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1630ffab5952Smrg$as_echo "$as_me: loading cache $cache_file" >&6;} 1631ffab5952Smrg case $cache_file in 1632ffab5952Smrg [\\/]* | ?:[\\/]* ) . "$cache_file";; 1633ffab5952Smrg *) . "./$cache_file";; 1634ffab5952Smrg esac 1635ffab5952Smrg fi 1636ffab5952Smrgelse 1637ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1638ffab5952Smrg$as_echo "$as_me: creating cache $cache_file" >&6;} 1639ffab5952Smrg >$cache_file 1640ffab5952Smrgfi 1641ffab5952Smrg 1642ffab5952Smrg# Check that the precious variables saved in the cache have kept the same 1643ffab5952Smrg# value. 1644ffab5952Smrgac_cache_corrupted=false 1645ffab5952Smrgfor ac_var in $ac_precious_vars; do 1646ffab5952Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 1647ffab5952Smrg eval ac_new_set=\$ac_env_${ac_var}_set 1648ffab5952Smrg eval ac_old_val=\$ac_cv_env_${ac_var}_value 1649ffab5952Smrg eval ac_new_val=\$ac_env_${ac_var}_value 1650ffab5952Smrg case $ac_old_set,$ac_new_set in 1651ffab5952Smrg set,) 1652ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1653ffab5952Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1654ffab5952Smrg ac_cache_corrupted=: ;; 1655ffab5952Smrg ,set) 1656ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1657ffab5952Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1658ffab5952Smrg ac_cache_corrupted=: ;; 1659ffab5952Smrg ,);; 1660ffab5952Smrg *) 1661ffab5952Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 1662ffab5952Smrg # differences in whitespace do not lead to failure. 1663ffab5952Smrg ac_old_val_w=`echo x $ac_old_val` 1664ffab5952Smrg ac_new_val_w=`echo x $ac_new_val` 1665ffab5952Smrg if test "$ac_old_val_w" != "$ac_new_val_w"; then 1666ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1667ffab5952Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1668ffab5952Smrg ac_cache_corrupted=: 1669ffab5952Smrg else 1670ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1671ffab5952Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1672ffab5952Smrg eval $ac_var=\$ac_old_val 1673ffab5952Smrg fi 1674ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1675ffab5952Smrg$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1676ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1677ffab5952Smrg$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1678ffab5952Smrg fi;; 1679ffab5952Smrg esac 1680ffab5952Smrg # Pass precious variables to config.status. 1681ffab5952Smrg if test "$ac_new_set" = set; then 1682ffab5952Smrg case $ac_new_val in 1683ffab5952Smrg *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1684ffab5952Smrg *) ac_arg=$ac_var=$ac_new_val ;; 1685ffab5952Smrg esac 1686ffab5952Smrg case " $ac_configure_args " in 1687ffab5952Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1688ffab5952Smrg *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1689ffab5952Smrg esac 1690ffab5952Smrg fi 1691ffab5952Smrgdone 1692ffab5952Smrgif $ac_cache_corrupted; then 1693ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1694ffab5952Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1695ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1696ffab5952Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1697ffab5952Smrg as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1698ffab5952Smrgfi 1699ffab5952Smrg## -------------------- ## 1700ffab5952Smrg## Main body of script. ## 1701ffab5952Smrg## -------------------- ## 1702ffab5952Smrg 1703ffab5952Smrgac_ext=c 1704ffab5952Smrgac_cpp='$CPP $CPPFLAGS' 1705ffab5952Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1706ffab5952Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1707ffab5952Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 1708ffab5952Smrg 1709ffab5952Smrg 1710ffab5952Smrg 171167e4e4deSmrgam__api_version='1.15' 1712ffab5952Smrg 1713ffab5952Smrgac_aux_dir= 1714ffab5952Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1715ffab5952Smrg if test -f "$ac_dir/install-sh"; then 1716ffab5952Smrg ac_aux_dir=$ac_dir 1717ffab5952Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 1718ffab5952Smrg break 1719ffab5952Smrg elif test -f "$ac_dir/install.sh"; then 1720ffab5952Smrg ac_aux_dir=$ac_dir 1721ffab5952Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 1722ffab5952Smrg break 1723ffab5952Smrg elif test -f "$ac_dir/shtool"; then 1724ffab5952Smrg ac_aux_dir=$ac_dir 1725ffab5952Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 1726ffab5952Smrg break 1727ffab5952Smrg fi 1728ffab5952Smrgdone 1729ffab5952Smrgif test -z "$ac_aux_dir"; then 1730ffab5952Smrg as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 1731ffab5952Smrgfi 1732ffab5952Smrg 1733ffab5952Smrg# These three variables are undocumented and unsupported, 1734ffab5952Smrg# and are intended to be withdrawn in a future Autoconf release. 1735ffab5952Smrg# They can cause serious problems if a builder's source tree is in a directory 1736ffab5952Smrg# whose full name contains unusual characters. 1737ffab5952Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1738ffab5952Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1739ffab5952Smrgac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1740ffab5952Smrg 1741ffab5952Smrg 1742ffab5952Smrg# Find a good install program. We prefer a C program (faster), 1743ffab5952Smrg# so one script is as good as another. But avoid the broken or 1744ffab5952Smrg# incompatible versions: 1745ffab5952Smrg# SysV /etc/install, /usr/sbin/install 1746ffab5952Smrg# SunOS /usr/etc/install 1747ffab5952Smrg# IRIX /sbin/install 1748ffab5952Smrg# AIX /bin/install 1749ffab5952Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 1750ffab5952Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1751ffab5952Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1752ffab5952Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1753ffab5952Smrg# OS/2's system install, which has a completely different semantic 1754ffab5952Smrg# ./install, which can be erroneously created by make from ./install.sh. 1755ffab5952Smrg# Reject install programs that cannot install multiple files. 1756ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 1757ffab5952Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; } 1758ffab5952Smrgif test -z "$INSTALL"; then 1759ffab5952Smrgif ${ac_cv_path_install+:} false; then : 1760ffab5952Smrg $as_echo_n "(cached) " >&6 1761ffab5952Smrgelse 1762ffab5952Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1763ffab5952Smrgfor as_dir in $PATH 1764ffab5952Smrgdo 1765ffab5952Smrg IFS=$as_save_IFS 1766ffab5952Smrg test -z "$as_dir" && as_dir=. 1767ffab5952Smrg # Account for people who put trailing slashes in PATH elements. 1768ffab5952Smrgcase $as_dir/ in #(( 1769ffab5952Smrg ./ | .// | /[cC]/* | \ 1770ffab5952Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1771ffab5952Smrg ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 1772ffab5952Smrg /usr/ucb/* ) ;; 1773ffab5952Smrg *) 1774ffab5952Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 1775ffab5952Smrg # Don't use installbsd from OSF since it installs stuff as root 1776ffab5952Smrg # by default. 1777ffab5952Smrg for ac_prog in ginstall scoinst install; do 1778ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 177967e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1780ffab5952Smrg if test $ac_prog = install && 1781ffab5952Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1782ffab5952Smrg # AIX install. It has an incompatible calling convention. 1783ffab5952Smrg : 1784ffab5952Smrg elif test $ac_prog = install && 1785ffab5952Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1786ffab5952Smrg # program-specific install script used by HP pwplus--don't use. 1787ffab5952Smrg : 1788ffab5952Smrg else 1789ffab5952Smrg rm -rf conftest.one conftest.two conftest.dir 1790ffab5952Smrg echo one > conftest.one 1791ffab5952Smrg echo two > conftest.two 1792ffab5952Smrg mkdir conftest.dir 1793ffab5952Smrg if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1794ffab5952Smrg test -s conftest.one && test -s conftest.two && 1795ffab5952Smrg test -s conftest.dir/conftest.one && 1796ffab5952Smrg test -s conftest.dir/conftest.two 1797ffab5952Smrg then 1798ffab5952Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1799ffab5952Smrg break 3 1800ffab5952Smrg fi 1801ffab5952Smrg fi 1802ffab5952Smrg fi 1803ffab5952Smrg done 1804ffab5952Smrg done 1805ffab5952Smrg ;; 1806ffab5952Smrgesac 1807ffab5952Smrg 1808ffab5952Smrg done 1809ffab5952SmrgIFS=$as_save_IFS 1810ffab5952Smrg 1811ffab5952Smrgrm -rf conftest.one conftest.two conftest.dir 1812ffab5952Smrg 1813ffab5952Smrgfi 1814ffab5952Smrg if test "${ac_cv_path_install+set}" = set; then 1815ffab5952Smrg INSTALL=$ac_cv_path_install 1816ffab5952Smrg else 1817ffab5952Smrg # As a last resort, use the slow shell script. Don't cache a 1818ffab5952Smrg # value for INSTALL within a source directory, because that will 1819ffab5952Smrg # break other packages using the cache if that directory is 1820ffab5952Smrg # removed, or if the value is a relative name. 1821ffab5952Smrg INSTALL=$ac_install_sh 1822ffab5952Smrg fi 1823ffab5952Smrgfi 1824ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 1825ffab5952Smrg$as_echo "$INSTALL" >&6; } 1826ffab5952Smrg 1827ffab5952Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1828ffab5952Smrg# It thinks the first close brace ends the variable substitution. 1829ffab5952Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1830ffab5952Smrg 1831ffab5952Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1832ffab5952Smrg 1833ffab5952Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1834ffab5952Smrg 1835ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 1836ffab5952Smrg$as_echo_n "checking whether build environment is sane... " >&6; } 1837ffab5952Smrg# Reject unsafe characters in $srcdir or the absolute working directory 1838ffab5952Smrg# name. Accept space and tab only in the latter. 1839ffab5952Smrgam_lf=' 1840ffab5952Smrg' 1841ffab5952Smrgcase `pwd` in 1842ffab5952Smrg *[\\\"\#\$\&\'\`$am_lf]*) 1843ffab5952Smrg as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 1844ffab5952Smrgesac 1845ffab5952Smrgcase $srcdir in 1846ffab5952Smrg *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 184767e4e4deSmrg as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 1848ffab5952Smrgesac 1849ffab5952Smrg 185067e4e4deSmrg# Do 'set' in a subshell so we don't clobber the current shell's 1851ffab5952Smrg# arguments. Must try -L first in case configure is actually a 1852ffab5952Smrg# symlink; some systems play weird games with the mod time of symlinks 1853ffab5952Smrg# (eg FreeBSD returns the mod time of the symlink's containing 1854ffab5952Smrg# directory). 1855ffab5952Smrgif ( 185667e4e4deSmrg am_has_slept=no 185767e4e4deSmrg for am_try in 1 2; do 185867e4e4deSmrg echo "timestamp, slept: $am_has_slept" > conftest.file 185967e4e4deSmrg set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 186067e4e4deSmrg if test "$*" = "X"; then 186167e4e4deSmrg # -L didn't work. 186267e4e4deSmrg set X `ls -t "$srcdir/configure" conftest.file` 186367e4e4deSmrg fi 186467e4e4deSmrg if test "$*" != "X $srcdir/configure conftest.file" \ 186567e4e4deSmrg && test "$*" != "X conftest.file $srcdir/configure"; then 186667e4e4deSmrg 186767e4e4deSmrg # If neither matched, then we have a broken ls. This can happen 186867e4e4deSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 186967e4e4deSmrg # broken ls alias from the environment. This has actually 187067e4e4deSmrg # happened. Such a system could not be considered "sane". 187167e4e4deSmrg as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 187267e4e4deSmrg alias in your environment" "$LINENO" 5 187367e4e4deSmrg fi 187467e4e4deSmrg if test "$2" = conftest.file || test $am_try -eq 2; then 187567e4e4deSmrg break 187667e4e4deSmrg fi 187767e4e4deSmrg # Just in case. 187867e4e4deSmrg sleep 1 187967e4e4deSmrg am_has_slept=yes 188067e4e4deSmrg done 1881ffab5952Smrg test "$2" = conftest.file 1882ffab5952Smrg ) 1883ffab5952Smrgthen 1884ffab5952Smrg # Ok. 1885ffab5952Smrg : 1886ffab5952Smrgelse 1887ffab5952Smrg as_fn_error $? "newly created file is older than distributed files! 1888ffab5952SmrgCheck your system clock" "$LINENO" 5 1889ffab5952Smrgfi 1890ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 1891ffab5952Smrg$as_echo "yes" >&6; } 189267e4e4deSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and 189367e4e4deSmrg# generated files are strictly newer. 189467e4e4deSmrgam_sleep_pid= 189567e4e4deSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then 189667e4e4deSmrg ( sleep 1 ) & 189767e4e4deSmrg am_sleep_pid=$! 189867e4e4deSmrgfi 189967e4e4deSmrg 190067e4e4deSmrgrm -f conftest.file 190167e4e4deSmrg 1902ffab5952Smrgtest "$program_prefix" != NONE && 1903ffab5952Smrg program_transform_name="s&^&$program_prefix&;$program_transform_name" 1904ffab5952Smrg# Use a double $ so make ignores it. 1905ffab5952Smrgtest "$program_suffix" != NONE && 1906ffab5952Smrg program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1907ffab5952Smrg# Double any \ or $. 1908ffab5952Smrg# By default was `s,x,x', remove it if useless. 1909ffab5952Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 1910ffab5952Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 1911ffab5952Smrg 191267e4e4deSmrg# Expand $ac_aux_dir to an absolute path. 191367e4e4deSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd` 1914ffab5952Smrg 1915ffab5952Smrgif test x"${MISSING+set}" != xset; then 1916ffab5952Smrg case $am_aux_dir in 1917ffab5952Smrg *\ * | *\ *) 1918ffab5952Smrg MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 1919ffab5952Smrg *) 1920ffab5952Smrg MISSING="\${SHELL} $am_aux_dir/missing" ;; 1921ffab5952Smrg esac 1922ffab5952Smrgfi 1923ffab5952Smrg# Use eval to expand $SHELL 192467e4e4deSmrgif eval "$MISSING --is-lightweight"; then 192567e4e4deSmrg am_missing_run="$MISSING " 1926ffab5952Smrgelse 1927ffab5952Smrg am_missing_run= 192867e4e4deSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 192967e4e4deSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 1930ffab5952Smrgfi 1931ffab5952Smrg 193267e4e4deSmrgif test x"${install_sh+set}" != xset; then 1933ffab5952Smrg case $am_aux_dir in 1934ffab5952Smrg *\ * | *\ *) 1935ffab5952Smrg install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 1936ffab5952Smrg *) 1937ffab5952Smrg install_sh="\${SHELL} $am_aux_dir/install-sh" 1938ffab5952Smrg esac 1939ffab5952Smrgfi 1940ffab5952Smrg 194167e4e4deSmrg# Installed binaries are usually stripped using 'strip' when the user 194267e4e4deSmrg# run "make install-strip". However 'strip' might not be the right 1943ffab5952Smrg# tool to use in cross-compilation environments, therefore Automake 194467e4e4deSmrg# will honor the 'STRIP' environment variable to overrule this program. 1945ffab5952Smrgif test "$cross_compiling" != no; then 1946ffab5952Smrg if test -n "$ac_tool_prefix"; then 1947ffab5952Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1948ffab5952Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 1949ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1950ffab5952Smrg$as_echo_n "checking for $ac_word... " >&6; } 1951ffab5952Smrgif ${ac_cv_prog_STRIP+:} false; then : 1952ffab5952Smrg $as_echo_n "(cached) " >&6 1953ffab5952Smrgelse 1954ffab5952Smrg if test -n "$STRIP"; then 1955ffab5952Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1956ffab5952Smrgelse 1957ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1958ffab5952Smrgfor as_dir in $PATH 1959ffab5952Smrgdo 1960ffab5952Smrg IFS=$as_save_IFS 1961ffab5952Smrg test -z "$as_dir" && as_dir=. 1962ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 196367e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1964ffab5952Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1965ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1966ffab5952Smrg break 2 1967ffab5952Smrg fi 1968ffab5952Smrgdone 1969ffab5952Smrg done 1970ffab5952SmrgIFS=$as_save_IFS 1971ffab5952Smrg 1972ffab5952Smrgfi 1973ffab5952Smrgfi 1974ffab5952SmrgSTRIP=$ac_cv_prog_STRIP 1975ffab5952Smrgif test -n "$STRIP"; then 1976ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 1977ffab5952Smrg$as_echo "$STRIP" >&6; } 1978ffab5952Smrgelse 1979ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1980ffab5952Smrg$as_echo "no" >&6; } 1981ffab5952Smrgfi 1982ffab5952Smrg 1983ffab5952Smrg 1984ffab5952Smrgfi 1985ffab5952Smrgif test -z "$ac_cv_prog_STRIP"; then 1986ffab5952Smrg ac_ct_STRIP=$STRIP 1987ffab5952Smrg # Extract the first word of "strip", so it can be a program name with args. 1988ffab5952Smrgset dummy strip; ac_word=$2 1989ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1990ffab5952Smrg$as_echo_n "checking for $ac_word... " >&6; } 1991ffab5952Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then : 1992ffab5952Smrg $as_echo_n "(cached) " >&6 1993ffab5952Smrgelse 1994ffab5952Smrg if test -n "$ac_ct_STRIP"; then 1995ffab5952Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1996ffab5952Smrgelse 1997ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1998ffab5952Smrgfor as_dir in $PATH 1999ffab5952Smrgdo 2000ffab5952Smrg IFS=$as_save_IFS 2001ffab5952Smrg test -z "$as_dir" && as_dir=. 2002ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 200367e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2004ffab5952Smrg ac_cv_prog_ac_ct_STRIP="strip" 2005ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2006ffab5952Smrg break 2 2007ffab5952Smrg fi 2008ffab5952Smrgdone 2009ffab5952Smrg done 2010ffab5952SmrgIFS=$as_save_IFS 2011ffab5952Smrg 2012ffab5952Smrgfi 2013ffab5952Smrgfi 2014ffab5952Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2015ffab5952Smrgif test -n "$ac_ct_STRIP"; then 2016ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2017ffab5952Smrg$as_echo "$ac_ct_STRIP" >&6; } 2018ffab5952Smrgelse 2019ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2020ffab5952Smrg$as_echo "no" >&6; } 2021ffab5952Smrgfi 2022ffab5952Smrg 2023ffab5952Smrg if test "x$ac_ct_STRIP" = x; then 2024ffab5952Smrg STRIP=":" 2025ffab5952Smrg else 2026ffab5952Smrg case $cross_compiling:$ac_tool_warned in 2027ffab5952Smrgyes:) 2028ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2029ffab5952Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2030ffab5952Smrgac_tool_warned=yes ;; 2031ffab5952Smrgesac 2032ffab5952Smrg STRIP=$ac_ct_STRIP 2033ffab5952Smrg fi 2034ffab5952Smrgelse 2035ffab5952Smrg STRIP="$ac_cv_prog_STRIP" 2036ffab5952Smrgfi 2037ffab5952Smrg 2038ffab5952Smrgfi 2039ffab5952SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2040ffab5952Smrg 2041ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2042ffab5952Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2043ffab5952Smrgif test -z "$MKDIR_P"; then 2044ffab5952Smrg if ${ac_cv_path_mkdir+:} false; then : 2045ffab5952Smrg $as_echo_n "(cached) " >&6 2046ffab5952Smrgelse 2047ffab5952Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2048ffab5952Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2049ffab5952Smrgdo 2050ffab5952Smrg IFS=$as_save_IFS 2051ffab5952Smrg test -z "$as_dir" && as_dir=. 2052ffab5952Smrg for ac_prog in mkdir gmkdir; do 2053ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 205467e4e4deSmrg as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2055ffab5952Smrg case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2056ffab5952Smrg 'mkdir (GNU coreutils) '* | \ 2057ffab5952Smrg 'mkdir (coreutils) '* | \ 2058ffab5952Smrg 'mkdir (fileutils) '4.1*) 2059ffab5952Smrg ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2060ffab5952Smrg break 3;; 2061ffab5952Smrg esac 2062ffab5952Smrg done 2063ffab5952Smrg done 2064ffab5952Smrg done 2065ffab5952SmrgIFS=$as_save_IFS 2066ffab5952Smrg 2067ffab5952Smrgfi 2068ffab5952Smrg 2069ffab5952Smrg test -d ./--version && rmdir ./--version 2070ffab5952Smrg if test "${ac_cv_path_mkdir+set}" = set; then 2071ffab5952Smrg MKDIR_P="$ac_cv_path_mkdir -p" 2072ffab5952Smrg else 2073ffab5952Smrg # As a last resort, use the slow shell script. Don't cache a 2074ffab5952Smrg # value for MKDIR_P within a source directory, because that will 2075ffab5952Smrg # break other packages using the cache if that directory is 2076ffab5952Smrg # removed, or if the value is a relative name. 2077ffab5952Smrg MKDIR_P="$ac_install_sh -d" 2078ffab5952Smrg fi 2079ffab5952Smrgfi 2080ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2081ffab5952Smrg$as_echo "$MKDIR_P" >&6; } 2082ffab5952Smrg 2083ffab5952Smrgfor ac_prog in gawk mawk nawk awk 2084ffab5952Smrgdo 2085ffab5952Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 2086ffab5952Smrgset dummy $ac_prog; ac_word=$2 2087ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2088ffab5952Smrg$as_echo_n "checking for $ac_word... " >&6; } 2089ffab5952Smrgif ${ac_cv_prog_AWK+:} false; then : 2090ffab5952Smrg $as_echo_n "(cached) " >&6 2091ffab5952Smrgelse 2092ffab5952Smrg if test -n "$AWK"; then 2093ffab5952Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 2094ffab5952Smrgelse 2095ffab5952Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2096ffab5952Smrgfor as_dir in $PATH 2097ffab5952Smrgdo 2098ffab5952Smrg IFS=$as_save_IFS 2099ffab5952Smrg test -z "$as_dir" && as_dir=. 2100ffab5952Smrg for ac_exec_ext in '' $ac_executable_extensions; do 210167e4e4deSmrg if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2102ffab5952Smrg ac_cv_prog_AWK="$ac_prog" 2103ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2104ffab5952Smrg break 2 2105ffab5952Smrg fi 2106ffab5952Smrgdone 2107ffab5952Smrg done 2108ffab5952SmrgIFS=$as_save_IFS 2109ffab5952Smrg 2110ffab5952Smrgfi 2111ffab5952Smrgfi 2112ffab5952SmrgAWK=$ac_cv_prog_AWK 2113ffab5952Smrgif test -n "$AWK"; then 2114ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2115ffab5952Smrg$as_echo "$AWK" >&6; } 2116ffab5952Smrgelse 2117ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2118ffab5952Smrg$as_echo "no" >&6; } 2119ffab5952Smrgfi 2120ffab5952Smrg 2121ffab5952Smrg 2122ffab5952Smrg test -n "$AWK" && break 2123ffab5952Smrgdone 2124ffab5952Smrg 2125ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2126ffab5952Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2127ffab5952Smrgset x ${MAKE-make} 2128ffab5952Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2129ffab5952Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2130ffab5952Smrg $as_echo_n "(cached) " >&6 2131ffab5952Smrgelse 2132ffab5952Smrg cat >conftest.make <<\_ACEOF 2133ffab5952SmrgSHELL = /bin/sh 2134ffab5952Smrgall: 2135ffab5952Smrg @echo '@@@%%%=$(MAKE)=@@@%%%' 2136ffab5952Smrg_ACEOF 2137ffab5952Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2138ffab5952Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in 2139ffab5952Smrg *@@@%%%=?*=@@@%%%*) 2140ffab5952Smrg eval ac_cv_prog_make_${ac_make}_set=yes;; 2141ffab5952Smrg *) 2142ffab5952Smrg eval ac_cv_prog_make_${ac_make}_set=no;; 2143ffab5952Smrgesac 2144ffab5952Smrgrm -f conftest.make 2145ffab5952Smrgfi 2146ffab5952Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2147ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2148ffab5952Smrg$as_echo "yes" >&6; } 2149ffab5952Smrg SET_MAKE= 2150ffab5952Smrgelse 2151ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2152ffab5952Smrg$as_echo "no" >&6; } 2153ffab5952Smrg SET_MAKE="MAKE=${MAKE-make}" 2154ffab5952Smrgfi 2155ffab5952Smrg 2156ffab5952Smrgrm -rf .tst 2>/dev/null 2157ffab5952Smrgmkdir .tst 2>/dev/null 2158ffab5952Smrgif test -d .tst; then 2159ffab5952Smrg am__leading_dot=. 2160ffab5952Smrgelse 2161ffab5952Smrg am__leading_dot=_ 2162ffab5952Smrgfi 2163ffab5952Smrgrmdir .tst 2>/dev/null 2164ffab5952Smrg 216567e4e4deSmrg# Check whether --enable-silent-rules was given. 216667e4e4deSmrgif test "${enable_silent_rules+set}" = set; then : 216767e4e4deSmrg enableval=$enable_silent_rules; 216867e4e4deSmrgfi 216967e4e4deSmrg 217067e4e4deSmrgcase $enable_silent_rules in # ((( 217167e4e4deSmrg yes) AM_DEFAULT_VERBOSITY=0;; 217267e4e4deSmrg no) AM_DEFAULT_VERBOSITY=1;; 217367e4e4deSmrg *) AM_DEFAULT_VERBOSITY=1;; 217467e4e4deSmrgesac 217567e4e4deSmrgam_make=${MAKE-make} 217667e4e4deSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 217767e4e4deSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 217867e4e4deSmrgif ${am_cv_make_support_nested_variables+:} false; then : 217967e4e4deSmrg $as_echo_n "(cached) " >&6 218067e4e4deSmrgelse 218167e4e4deSmrg if $as_echo 'TRUE=$(BAR$(V)) 218267e4e4deSmrgBAR0=false 218367e4e4deSmrgBAR1=true 218467e4e4deSmrgV=1 218567e4e4deSmrgam__doit: 218667e4e4deSmrg @$(TRUE) 218767e4e4deSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 218867e4e4deSmrg am_cv_make_support_nested_variables=yes 218967e4e4deSmrgelse 219067e4e4deSmrg am_cv_make_support_nested_variables=no 219167e4e4deSmrgfi 219267e4e4deSmrgfi 219367e4e4deSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 219467e4e4deSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; } 219567e4e4deSmrgif test $am_cv_make_support_nested_variables = yes; then 219667e4e4deSmrg AM_V='$(V)' 219767e4e4deSmrg AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 219867e4e4deSmrgelse 219967e4e4deSmrg AM_V=$AM_DEFAULT_VERBOSITY 220067e4e4deSmrg AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 220167e4e4deSmrgfi 220267e4e4deSmrgAM_BACKSLASH='\' 220367e4e4deSmrg 2204ffab5952Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 2205ffab5952Smrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2206ffab5952Smrg # is not polluted with repeated "-I." 2207ffab5952Smrg am__isrc=' -I$(srcdir)' 2208ffab5952Smrg # test to see if srcdir already configured 2209ffab5952Smrg if test -f $srcdir/config.status; then 2210ffab5952Smrg as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2211ffab5952Smrg fi 2212ffab5952Smrgfi 2213ffab5952Smrg 2214ffab5952Smrg# test whether we have cygpath 2215ffab5952Smrgif test -z "$CYGPATH_W"; then 2216ffab5952Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 2217ffab5952Smrg CYGPATH_W='cygpath -w' 2218ffab5952Smrg else 2219ffab5952Smrg CYGPATH_W=echo 2220ffab5952Smrg fi 2221ffab5952Smrgfi 2222ffab5952Smrg 2223ffab5952Smrg 2224ffab5952Smrg# Define the identity of the package. 2225ffab5952Smrg PACKAGE='util-macros' 22269fa8ffe7Smrg VERSION='1.19.2' 2227ffab5952Smrg 2228ffab5952Smrg 2229ffab5952Smrgcat >>confdefs.h <<_ACEOF 2230ffab5952Smrg#define PACKAGE "$PACKAGE" 2231ffab5952Smrg_ACEOF 2232ffab5952Smrg 2233ffab5952Smrg 2234ffab5952Smrgcat >>confdefs.h <<_ACEOF 2235ffab5952Smrg#define VERSION "$VERSION" 2236ffab5952Smrg_ACEOF 2237ffab5952Smrg 2238ffab5952Smrg# Some tools Automake needs. 2239ffab5952Smrg 2240ffab5952SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2241ffab5952Smrg 2242ffab5952Smrg 2243ffab5952SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2244ffab5952Smrg 2245ffab5952Smrg 2246ffab5952SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2247ffab5952Smrg 2248ffab5952Smrg 2249ffab5952SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2250ffab5952Smrg 2251ffab5952Smrg 2252ffab5952SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2253ffab5952Smrg 225467e4e4deSmrg# For better backward compatibility. To be removed once Automake 1.9.x 225567e4e4deSmrg# dies out for good. For more background, see: 225667e4e4deSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 225767e4e4deSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 225867e4e4deSmrgmkdir_p='$(MKDIR_P)' 225967e4e4deSmrg 226067e4e4deSmrg# We need awk for the "check" target (and possibly the TAP driver). The 226167e4e4deSmrg# system "awk" is bad on some platforms. 226243c16309Smrg# Always define AMTAR for backward compatibility. Yes, it's still used 226343c16309Smrg# in the wild :-( We should find a proper way to deprecate it ... 226443c16309SmrgAMTAR='$${TAR-tar}' 2265ffab5952Smrg 226667e4e4deSmrg 226767e4e4deSmrg# We'll loop over all known methods to create a tar archive until one works. 226867e4e4deSmrg_am_tools='gnutar pax cpio none' 226967e4e4deSmrg 227043c16309Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2271ffab5952Smrg 2272ffab5952Smrg 2273ffab5952Smrg 2274ffab5952Smrg 2275ffab5952Smrg 2276ffab5952Smrg 227767e4e4deSmrg# POSIX will say in a future version that running "rm -f" with no argument 227867e4e4deSmrg# is OK; and we want to be able to make that assumption in our Makefile 227967e4e4deSmrg# recipes. So use an aggressive probe to check that the usage we want is 228067e4e4deSmrg# actually supported "in the wild" to an acceptable degree. 228167e4e4deSmrg# See automake bug#10828. 228267e4e4deSmrg# To make any issue more visible, cause the running configure to be aborted 228367e4e4deSmrg# by default if the 'rm' program in use doesn't match our expectations; the 228467e4e4deSmrg# user can still override this though. 228567e4e4deSmrgif rm -f && rm -fr && rm -rf; then : OK; else 228667e4e4deSmrg cat >&2 <<'END' 228767e4e4deSmrgOops! 228867e4e4deSmrg 228967e4e4deSmrgYour 'rm' program seems unable to run without file operands specified 229067e4e4deSmrgon the command line, even when the '-f' option is present. This is contrary 229167e4e4deSmrgto the behaviour of most rm programs out there, and not conforming with 229267e4e4deSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 229367e4e4deSmrg 229467e4e4deSmrgPlease tell bug-automake@gnu.org about your system, including the value 229567e4e4deSmrgof your $PATH and any error possibly output before this message. This 229667e4e4deSmrgcan help us improve future automake versions. 229767e4e4deSmrg 229867e4e4deSmrgEND 229967e4e4deSmrg if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 230067e4e4deSmrg echo 'Configuration will proceed anyway, since you have set the' >&2 230167e4e4deSmrg echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 230267e4e4deSmrg echo >&2 230367e4e4deSmrg else 230467e4e4deSmrg cat >&2 <<'END' 230567e4e4deSmrgAborting the configuration process, to ensure you take notice of the issue. 230667e4e4deSmrg 230767e4e4deSmrgYou can download and install GNU coreutils to get an 'rm' implementation 230867e4e4deSmrgthat behaves properly: <http://www.gnu.org/software/coreutils/>. 230967e4e4deSmrg 231067e4e4deSmrgIf you want to complete the configuration process using your problematic 231167e4e4deSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 231267e4e4deSmrgto "yes", and re-run configure. 231367e4e4deSmrg 231467e4e4deSmrgEND 231567e4e4deSmrg as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 231667e4e4deSmrg fi 231767e4e4deSmrgfi 231867e4e4deSmrg 231967e4e4deSmrg 2320ffab5952Smrg# Checks for programs. 2321ffab5952Smrg 2322ffab5952Smrg 2323ffab5952Smrg# This is the package that installs xorgversion.m4 as part of xorg-macros.m4. 2324ffab5952Smrg# In order to use xorgversion.m4 here, we include it explicitly. 2325ffab5952Smrg 2326ffab5952Smrg# XORG_RELEASE_VERSION 2327ffab5952Smrg# -------------------- 2328ffab5952Smrg# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 2329ffab5952Smrg 2330ffab5952Smrg 2331ffab5952Smrg 2332ffab5952Smrg# XORG_CHANGELOG() 2333ffab5952Smrg# ---------------- 2334ffab5952Smrg# Minimum version: 1.2.0 2335ffab5952Smrg# 2336ffab5952Smrg# Defines the variable CHANGELOG_CMD as the command to generate 2337ffab5952Smrg# ChangeLog from git. 2338ffab5952Smrg# 2339ffab5952Smrg# 2340ffab5952Smrg # XORG_CHANGELOG 2341ffab5952Smrg 2342ffab5952Smrg 2343ffab5952Smrg 2344ffab5952Smrg 2345ffab5952Smrgcat >>confdefs.h <<_ACEOF 2346ffab5952Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 2347ffab5952Smrg_ACEOF 2348ffab5952Smrg 2349ffab5952Smrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 2350ffab5952Smrg if test "x$PVM" = "x"; then 2351ffab5952Smrg PVM="0" 2352ffab5952Smrg fi 2353ffab5952Smrg 2354ffab5952Smrgcat >>confdefs.h <<_ACEOF 2355ffab5952Smrg#define PACKAGE_VERSION_MINOR $PVM 2356ffab5952Smrg_ACEOF 2357ffab5952Smrg 2358ffab5952Smrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 2359ffab5952Smrg if test "x$PVP" = "x"; then 2360ffab5952Smrg PVP="0" 2361ffab5952Smrg fi 2362ffab5952Smrg 2363ffab5952Smrgcat >>confdefs.h <<_ACEOF 2364ffab5952Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP 2365ffab5952Smrg_ACEOF 2366ffab5952Smrg 2367ffab5952Smrg 2368ffab5952Smrg 23699fa8ffe7SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 2370ffab5952Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 23719fa8ffe7Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 23729fa8ffe7Smrgtouch \$(top_srcdir)/ChangeLog; \ 23739fa8ffe7Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 2374ffab5952Smrg 2375ffab5952Smrg 2376ffab5952Smrg 2377ffab5952Smrgac_config_files="$ac_config_files xorg-macros.pc Makefile xorg-macros.m4:xorg-macros.m4.in:xorgversion.m4" 2378ffab5952Smrg 2379ffab5952Smrgcat >confcache <<\_ACEOF 2380ffab5952Smrg# This file is a shell script that caches the results of configure 2381ffab5952Smrg# tests run on this system so they can be shared between configure 2382ffab5952Smrg# scripts and configure runs, see configure's option --config-cache. 2383ffab5952Smrg# It is not useful on other systems. If it contains results you don't 2384ffab5952Smrg# want to keep, you may remove or edit it. 2385ffab5952Smrg# 2386ffab5952Smrg# config.status only pays attention to the cache file if you give it 2387ffab5952Smrg# the --recheck option to rerun configure. 2388ffab5952Smrg# 2389ffab5952Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 2390ffab5952Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 2391ffab5952Smrg# following values. 2392ffab5952Smrg 2393ffab5952Smrg_ACEOF 2394ffab5952Smrg 2395ffab5952Smrg# The following way of writing the cache mishandles newlines in values, 2396ffab5952Smrg# but we know of no workaround that is simple, portable, and efficient. 2397ffab5952Smrg# So, we kill variables containing newlines. 2398ffab5952Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 2399ffab5952Smrg# and sets the high bit in the cache file unless we assign to the vars. 2400ffab5952Smrg( 2401ffab5952Smrg for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 2402ffab5952Smrg eval ac_val=\$$ac_var 2403ffab5952Smrg case $ac_val in #( 2404ffab5952Smrg *${as_nl}*) 2405ffab5952Smrg case $ac_var in #( 2406ffab5952Smrg *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2407ffab5952Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2408ffab5952Smrg esac 2409ffab5952Smrg case $ac_var in #( 2410ffab5952Smrg _ | IFS | as_nl) ;; #( 2411ffab5952Smrg BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2412ffab5952Smrg *) { eval $ac_var=; unset $ac_var;} ;; 2413ffab5952Smrg esac ;; 2414ffab5952Smrg esac 2415ffab5952Smrg done 2416ffab5952Smrg 2417ffab5952Smrg (set) 2>&1 | 2418ffab5952Smrg case $as_nl`(ac_space=' '; set) 2>&1` in #( 2419ffab5952Smrg *${as_nl}ac_space=\ *) 2420ffab5952Smrg # `set' does not quote correctly, so add quotes: double-quote 2421ffab5952Smrg # substitution turns \\\\ into \\, and sed turns \\ into \. 2422ffab5952Smrg sed -n \ 2423ffab5952Smrg "s/'/'\\\\''/g; 2424ffab5952Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2425ffab5952Smrg ;; #( 2426ffab5952Smrg *) 2427ffab5952Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 2428ffab5952Smrg sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2429ffab5952Smrg ;; 2430ffab5952Smrg esac | 2431ffab5952Smrg sort 2432ffab5952Smrg) | 2433ffab5952Smrg sed ' 2434ffab5952Smrg /^ac_cv_env_/b end 2435ffab5952Smrg t clear 2436ffab5952Smrg :clear 2437ffab5952Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2438ffab5952Smrg t end 2439ffab5952Smrg s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2440ffab5952Smrg :end' >>confcache 2441ffab5952Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 2442ffab5952Smrg if test -w "$cache_file"; then 2443ffab5952Smrg if test "x$cache_file" != "x/dev/null"; then 2444ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 2445ffab5952Smrg$as_echo "$as_me: updating cache $cache_file" >&6;} 2446ffab5952Smrg if test ! -f "$cache_file" || test -h "$cache_file"; then 2447ffab5952Smrg cat confcache >"$cache_file" 2448ffab5952Smrg else 2449ffab5952Smrg case $cache_file in #( 2450ffab5952Smrg */* | ?:*) 2451ffab5952Smrg mv -f confcache "$cache_file"$$ && 2452ffab5952Smrg mv -f "$cache_file"$$ "$cache_file" ;; #( 2453ffab5952Smrg *) 2454ffab5952Smrg mv -f confcache "$cache_file" ;; 2455ffab5952Smrg esac 2456ffab5952Smrg fi 2457ffab5952Smrg fi 2458ffab5952Smrg else 2459ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 2460ffab5952Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 2461ffab5952Smrg fi 2462ffab5952Smrgfi 2463ffab5952Smrgrm -f confcache 2464ffab5952Smrg 2465ffab5952Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 2466ffab5952Smrg# Let make expand exec_prefix. 2467ffab5952Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2468ffab5952Smrg 2469ffab5952Smrg# Transform confdefs.h into DEFS. 2470ffab5952Smrg# Protect against shell expansion while executing Makefile rules. 2471ffab5952Smrg# Protect against Makefile macro expansion. 2472ffab5952Smrg# 2473ffab5952Smrg# If the first sed substitution is executed (which looks for macros that 2474ffab5952Smrg# take arguments), then branch to the quote section. Otherwise, 2475ffab5952Smrg# look for a macro that doesn't take arguments. 2476ffab5952Smrgac_script=' 2477ffab5952Smrg:mline 2478ffab5952Smrg/\\$/{ 2479ffab5952Smrg N 2480ffab5952Smrg s,\\\n,, 2481ffab5952Smrg b mline 2482ffab5952Smrg} 2483ffab5952Smrgt clear 2484ffab5952Smrg:clear 2485ffab5952Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 2486ffab5952Smrgt quote 2487ffab5952Smrgs/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 2488ffab5952Smrgt quote 2489ffab5952Smrgb any 2490ffab5952Smrg:quote 2491ffab5952Smrgs/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 2492ffab5952Smrgs/\[/\\&/g 2493ffab5952Smrgs/\]/\\&/g 2494ffab5952Smrgs/\$/$$/g 2495ffab5952SmrgH 2496ffab5952Smrg:any 2497ffab5952Smrg${ 2498ffab5952Smrg g 2499ffab5952Smrg s/^\n// 2500ffab5952Smrg s/\n/ /g 2501ffab5952Smrg p 2502ffab5952Smrg} 2503ffab5952Smrg' 2504ffab5952SmrgDEFS=`sed -n "$ac_script" confdefs.h` 2505ffab5952Smrg 2506ffab5952Smrg 2507ffab5952Smrgac_libobjs= 2508ffab5952Smrgac_ltlibobjs= 2509ffab5952SmrgU= 2510ffab5952Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2511ffab5952Smrg # 1. Remove the extension, and $U if already installed. 2512ffab5952Smrg ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 2513ffab5952Smrg ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 2514ffab5952Smrg # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 2515ffab5952Smrg # will be set to the directory where LIBOBJS objects are built. 2516ffab5952Smrg as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 2517ffab5952Smrg as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 2518ffab5952Smrgdone 2519ffab5952SmrgLIBOBJS=$ac_libobjs 2520ffab5952Smrg 2521ffab5952SmrgLTLIBOBJS=$ac_ltlibobjs 2522ffab5952Smrg 2523ffab5952Smrg 252467e4e4deSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 252567e4e4deSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; } 252667e4e4deSmrg if test -n "$am_sleep_pid"; then 252767e4e4deSmrg # Hide warnings about reused PIDs. 252867e4e4deSmrg wait $am_sleep_pid 2>/dev/null 252967e4e4deSmrg fi 253067e4e4deSmrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 253167e4e4deSmrg$as_echo "done" >&6; } 2532ffab5952Smrg 2533ffab5952Smrg 2534ffab5952Smrg: "${CONFIG_STATUS=./config.status}" 2535ffab5952Smrgac_write_fail=0 2536ffab5952Smrgac_clean_files_save=$ac_clean_files 2537ffab5952Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 2538ffab5952Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 2539ffab5952Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 2540ffab5952Smrgas_write_fail=0 2541ffab5952Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 2542ffab5952Smrg#! $SHELL 2543ffab5952Smrg# Generated by $as_me. 2544ffab5952Smrg# Run this file to recreate the current configuration. 2545ffab5952Smrg# Compiler output produced by configure, useful for debugging 2546ffab5952Smrg# configure, is in config.log if it exists. 2547ffab5952Smrg 2548ffab5952Smrgdebug=false 2549ffab5952Smrgac_cs_recheck=false 2550ffab5952Smrgac_cs_silent=false 2551ffab5952Smrg 2552ffab5952SmrgSHELL=\${CONFIG_SHELL-$SHELL} 2553ffab5952Smrgexport SHELL 2554ffab5952Smrg_ASEOF 2555ffab5952Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 2556ffab5952Smrg## -------------------- ## 2557ffab5952Smrg## M4sh Initialization. ## 2558ffab5952Smrg## -------------------- ## 2559ffab5952Smrg 2560ffab5952Smrg# Be more Bourne compatible 2561ffab5952SmrgDUALCASE=1; export DUALCASE # for MKS sh 2562ffab5952Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 2563ffab5952Smrg emulate sh 2564ffab5952Smrg NULLCMD=: 2565ffab5952Smrg # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 2566ffab5952Smrg # is contrary to our usage. Disable this feature. 2567ffab5952Smrg alias -g '${1+"$@"}'='"$@"' 2568ffab5952Smrg setopt NO_GLOB_SUBST 2569ffab5952Smrgelse 2570ffab5952Smrg case `(set -o) 2>/dev/null` in #( 2571ffab5952Smrg *posix*) : 2572ffab5952Smrg set -o posix ;; #( 2573ffab5952Smrg *) : 2574ffab5952Smrg ;; 2575ffab5952Smrgesac 2576ffab5952Smrgfi 2577ffab5952Smrg 2578ffab5952Smrg 2579ffab5952Smrgas_nl=' 2580ffab5952Smrg' 2581ffab5952Smrgexport as_nl 2582ffab5952Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf. 2583ffab5952Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2584ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 2585ffab5952Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 2586ffab5952Smrg# Prefer a ksh shell builtin over an external printf program on Solaris, 2587ffab5952Smrg# but without wasting forks for bash or zsh. 2588ffab5952Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \ 2589ffab5952Smrg && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 2590ffab5952Smrg as_echo='print -r --' 2591ffab5952Smrg as_echo_n='print -rn --' 2592ffab5952Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 2593ffab5952Smrg as_echo='printf %s\n' 2594ffab5952Smrg as_echo_n='printf %s' 2595ffab5952Smrgelse 2596ffab5952Smrg if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 2597ffab5952Smrg as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 2598ffab5952Smrg as_echo_n='/usr/ucb/echo -n' 2599ffab5952Smrg else 2600ffab5952Smrg as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 2601ffab5952Smrg as_echo_n_body='eval 2602ffab5952Smrg arg=$1; 2603ffab5952Smrg case $arg in #( 2604ffab5952Smrg *"$as_nl"*) 2605ffab5952Smrg expr "X$arg" : "X\\(.*\\)$as_nl"; 2606ffab5952Smrg arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 2607ffab5952Smrg esac; 2608ffab5952Smrg expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 2609ffab5952Smrg ' 2610ffab5952Smrg export as_echo_n_body 2611ffab5952Smrg as_echo_n='sh -c $as_echo_n_body as_echo' 2612ffab5952Smrg fi 2613ffab5952Smrg export as_echo_body 2614ffab5952Smrg as_echo='sh -c $as_echo_body as_echo' 2615ffab5952Smrgfi 2616ffab5952Smrg 2617ffab5952Smrg# The user is always right. 2618ffab5952Smrgif test "${PATH_SEPARATOR+set}" != set; then 2619ffab5952Smrg PATH_SEPARATOR=: 2620ffab5952Smrg (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 2621ffab5952Smrg (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 2622ffab5952Smrg PATH_SEPARATOR=';' 2623ffab5952Smrg } 2624ffab5952Smrgfi 2625ffab5952Smrg 2626ffab5952Smrg 2627ffab5952Smrg# IFS 2628ffab5952Smrg# We need space, tab and new line, in precisely that order. Quoting is 2629ffab5952Smrg# there to prevent editors from complaining about space-tab. 2630ffab5952Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word 2631ffab5952Smrg# splitting by setting IFS to empty value.) 2632ffab5952SmrgIFS=" "" $as_nl" 2633ffab5952Smrg 2634ffab5952Smrg# Find who we are. Look in the path if we contain no directory separator. 2635ffab5952Smrgas_myself= 2636ffab5952Smrgcase $0 in #(( 2637ffab5952Smrg *[\\/]* ) as_myself=$0 ;; 2638ffab5952Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639ffab5952Smrgfor as_dir in $PATH 2640ffab5952Smrgdo 2641ffab5952Smrg IFS=$as_save_IFS 2642ffab5952Smrg test -z "$as_dir" && as_dir=. 2643ffab5952Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2644ffab5952Smrg done 2645ffab5952SmrgIFS=$as_save_IFS 2646ffab5952Smrg 2647ffab5952Smrg ;; 2648ffab5952Smrgesac 2649ffab5952Smrg# We did not find ourselves, most probably we were run as `sh COMMAND' 2650ffab5952Smrg# in which case we are not to be found in the path. 2651ffab5952Smrgif test "x$as_myself" = x; then 2652ffab5952Smrg as_myself=$0 2653ffab5952Smrgfi 2654ffab5952Smrgif test ! -f "$as_myself"; then 2655ffab5952Smrg $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 2656ffab5952Smrg exit 1 2657ffab5952Smrgfi 2658ffab5952Smrg 2659ffab5952Smrg# Unset variables that we do not need and which cause bugs (e.g. in 2660ffab5952Smrg# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 2661ffab5952Smrg# suppresses any "Segmentation fault" message there. '((' could 2662ffab5952Smrg# trigger a bug in pdksh 5.2.14. 2663ffab5952Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH 2664ffab5952Smrgdo eval test x\${$as_var+set} = xset \ 2665ffab5952Smrg && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 2666ffab5952Smrgdone 2667ffab5952SmrgPS1='$ ' 2668ffab5952SmrgPS2='> ' 2669ffab5952SmrgPS4='+ ' 2670ffab5952Smrg 2671ffab5952Smrg# NLS nuisances. 2672ffab5952SmrgLC_ALL=C 2673ffab5952Smrgexport LC_ALL 2674ffab5952SmrgLANGUAGE=C 2675ffab5952Smrgexport LANGUAGE 2676ffab5952Smrg 2677ffab5952Smrg# CDPATH. 2678ffab5952Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 2679ffab5952Smrg 2680ffab5952Smrg 2681ffab5952Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD] 2682ffab5952Smrg# ---------------------------------------- 2683ffab5952Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 2684ffab5952Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 2685ffab5952Smrg# script with STATUS, using 1 if that was 0. 2686ffab5952Smrgas_fn_error () 2687ffab5952Smrg{ 2688ffab5952Smrg as_status=$1; test $as_status -eq 0 && as_status=1 2689ffab5952Smrg if test "$4"; then 2690ffab5952Smrg as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2691ffab5952Smrg $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 2692ffab5952Smrg fi 2693ffab5952Smrg $as_echo "$as_me: error: $2" >&2 2694ffab5952Smrg as_fn_exit $as_status 2695ffab5952Smrg} # as_fn_error 2696ffab5952Smrg 2697ffab5952Smrg 2698ffab5952Smrg# as_fn_set_status STATUS 2699ffab5952Smrg# ----------------------- 2700ffab5952Smrg# Set $? to STATUS, without forking. 2701ffab5952Smrgas_fn_set_status () 2702ffab5952Smrg{ 2703ffab5952Smrg return $1 2704ffab5952Smrg} # as_fn_set_status 2705ffab5952Smrg 2706ffab5952Smrg# as_fn_exit STATUS 2707ffab5952Smrg# ----------------- 2708ffab5952Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 2709ffab5952Smrgas_fn_exit () 2710ffab5952Smrg{ 2711ffab5952Smrg set +e 2712ffab5952Smrg as_fn_set_status $1 2713ffab5952Smrg exit $1 2714ffab5952Smrg} # as_fn_exit 2715ffab5952Smrg 2716ffab5952Smrg# as_fn_unset VAR 2717ffab5952Smrg# --------------- 2718ffab5952Smrg# Portably unset VAR. 2719ffab5952Smrgas_fn_unset () 2720ffab5952Smrg{ 2721ffab5952Smrg { eval $1=; unset $1;} 2722ffab5952Smrg} 2723ffab5952Smrgas_unset=as_fn_unset 2724ffab5952Smrg# as_fn_append VAR VALUE 2725ffab5952Smrg# ---------------------- 2726ffab5952Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take 2727ffab5952Smrg# advantage of any shell optimizations that allow amortized linear growth over 2728ffab5952Smrg# repeated appends, instead of the typical quadratic growth present in naive 2729ffab5952Smrg# implementations. 2730ffab5952Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 2731ffab5952Smrg eval 'as_fn_append () 2732ffab5952Smrg { 2733ffab5952Smrg eval $1+=\$2 2734ffab5952Smrg }' 2735ffab5952Smrgelse 2736ffab5952Smrg as_fn_append () 2737ffab5952Smrg { 2738ffab5952Smrg eval $1=\$$1\$2 2739ffab5952Smrg } 2740ffab5952Smrgfi # as_fn_append 2741ffab5952Smrg 2742ffab5952Smrg# as_fn_arith ARG... 2743ffab5952Smrg# ------------------ 2744ffab5952Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the 2745ffab5952Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments 2746ffab5952Smrg# must be portable across $(()) and expr. 2747ffab5952Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 2748ffab5952Smrg eval 'as_fn_arith () 2749ffab5952Smrg { 2750ffab5952Smrg as_val=$(( $* )) 2751ffab5952Smrg }' 2752ffab5952Smrgelse 2753ffab5952Smrg as_fn_arith () 2754ffab5952Smrg { 2755ffab5952Smrg as_val=`expr "$@" || test $? -eq 1` 2756ffab5952Smrg } 2757ffab5952Smrgfi # as_fn_arith 2758ffab5952Smrg 2759ffab5952Smrg 2760ffab5952Smrgif expr a : '\(a\)' >/dev/null 2>&1 && 2761ffab5952Smrg test "X`expr 00001 : '.*\(...\)'`" = X001; then 2762ffab5952Smrg as_expr=expr 2763ffab5952Smrgelse 2764ffab5952Smrg as_expr=false 2765ffab5952Smrgfi 2766ffab5952Smrg 2767ffab5952Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 2768ffab5952Smrg as_basename=basename 2769ffab5952Smrgelse 2770ffab5952Smrg as_basename=false 2771ffab5952Smrgfi 2772ffab5952Smrg 2773ffab5952Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 2774ffab5952Smrg as_dirname=dirname 2775ffab5952Smrgelse 2776ffab5952Smrg as_dirname=false 2777ffab5952Smrgfi 2778ffab5952Smrg 2779ffab5952Smrgas_me=`$as_basename -- "$0" || 2780ffab5952Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2781ffab5952Smrg X"$0" : 'X\(//\)$' \| \ 2782ffab5952Smrg X"$0" : 'X\(/\)' \| . 2>/dev/null || 2783ffab5952Smrg$as_echo X/"$0" | 2784ffab5952Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ 2785ffab5952Smrg s//\1/ 2786ffab5952Smrg q 2787ffab5952Smrg } 2788ffab5952Smrg /^X\/\(\/\/\)$/{ 2789ffab5952Smrg s//\1/ 2790ffab5952Smrg q 2791ffab5952Smrg } 2792ffab5952Smrg /^X\/\(\/\).*/{ 2793ffab5952Smrg s//\1/ 2794ffab5952Smrg q 2795ffab5952Smrg } 2796ffab5952Smrg s/.*/./; q'` 2797ffab5952Smrg 2798ffab5952Smrg# Avoid depending upon Character Ranges. 2799ffab5952Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 2800ffab5952Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2801ffab5952Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 2802ffab5952Smrgas_cr_digits='0123456789' 2803ffab5952Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 2804ffab5952Smrg 2805ffab5952SmrgECHO_C= ECHO_N= ECHO_T= 2806ffab5952Smrgcase `echo -n x` in #((((( 2807ffab5952Smrg-n*) 2808ffab5952Smrg case `echo 'xy\c'` in 2809ffab5952Smrg *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2810ffab5952Smrg xy) ECHO_C='\c';; 2811ffab5952Smrg *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 2812ffab5952Smrg ECHO_T=' ';; 2813ffab5952Smrg esac;; 2814ffab5952Smrg*) 2815ffab5952Smrg ECHO_N='-n';; 2816ffab5952Smrgesac 2817ffab5952Smrg 2818ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.file 2819ffab5952Smrgif test -d conf$$.dir; then 2820ffab5952Smrg rm -f conf$$.dir/conf$$.file 2821ffab5952Smrgelse 2822ffab5952Smrg rm -f conf$$.dir 2823ffab5952Smrg mkdir conf$$.dir 2>/dev/null 2824ffab5952Smrgfi 2825ffab5952Smrgif (echo >conf$$.file) 2>/dev/null; then 2826ffab5952Smrg if ln -s conf$$.file conf$$ 2>/dev/null; then 2827ffab5952Smrg as_ln_s='ln -s' 2828ffab5952Smrg # ... but there are two gotchas: 2829ffab5952Smrg # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 2830ffab5952Smrg # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 283167e4e4deSmrg # In both cases, we have to default to `cp -pR'. 2832ffab5952Smrg ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 283367e4e4deSmrg as_ln_s='cp -pR' 2834ffab5952Smrg elif ln conf$$.file conf$$ 2>/dev/null; then 2835ffab5952Smrg as_ln_s=ln 2836ffab5952Smrg else 283767e4e4deSmrg as_ln_s='cp -pR' 2838ffab5952Smrg fi 2839ffab5952Smrgelse 284067e4e4deSmrg as_ln_s='cp -pR' 2841ffab5952Smrgfi 2842ffab5952Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 2843ffab5952Smrgrmdir conf$$.dir 2>/dev/null 2844ffab5952Smrg 2845ffab5952Smrg 2846ffab5952Smrg# as_fn_mkdir_p 2847ffab5952Smrg# ------------- 2848ffab5952Smrg# Create "$as_dir" as a directory, including parents if necessary. 2849ffab5952Smrgas_fn_mkdir_p () 2850ffab5952Smrg{ 2851ffab5952Smrg 2852ffab5952Smrg case $as_dir in #( 2853ffab5952Smrg -*) as_dir=./$as_dir;; 2854ffab5952Smrg esac 2855ffab5952Smrg test -d "$as_dir" || eval $as_mkdir_p || { 2856ffab5952Smrg as_dirs= 2857ffab5952Smrg while :; do 2858ffab5952Smrg case $as_dir in #( 2859ffab5952Smrg *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 2860ffab5952Smrg *) as_qdir=$as_dir;; 2861ffab5952Smrg esac 2862ffab5952Smrg as_dirs="'$as_qdir' $as_dirs" 2863ffab5952Smrg as_dir=`$as_dirname -- "$as_dir" || 2864ffab5952Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2865ffab5952Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 2866ffab5952Smrg X"$as_dir" : 'X\(//\)$' \| \ 2867ffab5952Smrg X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 2868ffab5952Smrg$as_echo X"$as_dir" | 2869ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2870ffab5952Smrg s//\1/ 2871ffab5952Smrg q 2872ffab5952Smrg } 2873ffab5952Smrg /^X\(\/\/\)[^/].*/{ 2874ffab5952Smrg s//\1/ 2875ffab5952Smrg q 2876ffab5952Smrg } 2877ffab5952Smrg /^X\(\/\/\)$/{ 2878ffab5952Smrg s//\1/ 2879ffab5952Smrg q 2880ffab5952Smrg } 2881ffab5952Smrg /^X\(\/\).*/{ 2882ffab5952Smrg s//\1/ 2883ffab5952Smrg q 2884ffab5952Smrg } 2885ffab5952Smrg s/.*/./; q'` 2886ffab5952Smrg test -d "$as_dir" && break 2887ffab5952Smrg done 2888ffab5952Smrg test -z "$as_dirs" || eval "mkdir $as_dirs" 2889ffab5952Smrg } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 2890ffab5952Smrg 2891ffab5952Smrg 2892ffab5952Smrg} # as_fn_mkdir_p 2893ffab5952Smrgif mkdir -p . 2>/dev/null; then 2894ffab5952Smrg as_mkdir_p='mkdir -p "$as_dir"' 2895ffab5952Smrgelse 2896ffab5952Smrg test -d ./-p && rmdir ./-p 2897ffab5952Smrg as_mkdir_p=false 2898ffab5952Smrgfi 2899ffab5952Smrg 290067e4e4deSmrg 290167e4e4deSmrg# as_fn_executable_p FILE 290267e4e4deSmrg# ----------------------- 290367e4e4deSmrg# Test if FILE is an executable regular file. 290467e4e4deSmrgas_fn_executable_p () 290567e4e4deSmrg{ 290667e4e4deSmrg test -f "$1" && test -x "$1" 290767e4e4deSmrg} # as_fn_executable_p 290867e4e4deSmrgas_test_x='test -x' 290967e4e4deSmrgas_executable_p=as_fn_executable_p 2910ffab5952Smrg 2911ffab5952Smrg# Sed expression to map a string onto a valid CPP name. 2912ffab5952Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 2913ffab5952Smrg 2914ffab5952Smrg# Sed expression to map a string onto a valid variable name. 2915ffab5952Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 2916ffab5952Smrg 2917ffab5952Smrg 2918ffab5952Smrgexec 6>&1 2919ffab5952Smrg## ----------------------------------- ## 2920ffab5952Smrg## Main body of $CONFIG_STATUS script. ## 2921ffab5952Smrg## ----------------------------------- ## 2922ffab5952Smrg_ASEOF 2923ffab5952Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 2924ffab5952Smrg 2925ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 2926ffab5952Smrg# Save the log message, to keep $0 and so on meaningful, and to 2927ffab5952Smrg# report actual input values of CONFIG_FILES etc. instead of their 2928ffab5952Smrg# values after options handling. 2929ffab5952Smrgac_log=" 29309fa8ffe7SmrgThis file was extended by util-macros $as_me 1.19.2, which was 293167e4e4deSmrggenerated by GNU Autoconf 2.69. Invocation command line was 2932ffab5952Smrg 2933ffab5952Smrg CONFIG_FILES = $CONFIG_FILES 2934ffab5952Smrg CONFIG_HEADERS = $CONFIG_HEADERS 2935ffab5952Smrg CONFIG_LINKS = $CONFIG_LINKS 2936ffab5952Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 2937ffab5952Smrg $ $0 $@ 2938ffab5952Smrg 2939ffab5952Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q` 2940ffab5952Smrg" 2941ffab5952Smrg 2942ffab5952Smrg_ACEOF 2943ffab5952Smrg 2944ffab5952Smrgcase $ac_config_files in *" 2945ffab5952Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;; 2946ffab5952Smrgesac 2947ffab5952Smrg 2948ffab5952Smrg 2949ffab5952Smrg 2950ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 2951ffab5952Smrg# Files that config.status was made for. 2952ffab5952Smrgconfig_files="$ac_config_files" 2953ffab5952Smrg 2954ffab5952Smrg_ACEOF 2955ffab5952Smrg 2956ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 2957ffab5952Smrgac_cs_usage="\ 2958ffab5952Smrg\`$as_me' instantiates files and other configuration actions 2959ffab5952Smrgfrom templates according to the current configuration. Unless the files 2960ffab5952Smrgand actions are specified as TAGs, all are instantiated by default. 2961ffab5952Smrg 2962ffab5952SmrgUsage: $0 [OPTION]... [TAG]... 2963ffab5952Smrg 2964ffab5952Smrg -h, --help print this help, then exit 2965ffab5952Smrg -V, --version print version number and configuration settings, then exit 2966ffab5952Smrg --config print configuration, then exit 2967ffab5952Smrg -q, --quiet, --silent 2968ffab5952Smrg do not print progress messages 2969ffab5952Smrg -d, --debug don't remove temporary files 2970ffab5952Smrg --recheck update $as_me by reconfiguring in the same conditions 2971ffab5952Smrg --file=FILE[:TEMPLATE] 2972ffab5952Smrg instantiate the configuration file FILE 2973ffab5952Smrg 2974ffab5952SmrgConfiguration files: 2975ffab5952Smrg$config_files 2976ffab5952Smrg 2977ffab5952SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 2978ffab5952Smrg 2979ffab5952Smrg_ACEOF 2980ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 2981ffab5952Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 2982ffab5952Smrgac_cs_version="\\ 29839fa8ffe7Smrgutil-macros config.status 1.19.2 298467e4e4deSmrgconfigured by $0, generated by GNU Autoconf 2.69, 2985ffab5952Smrg with options \\"\$ac_cs_config\\" 2986ffab5952Smrg 298767e4e4deSmrgCopyright (C) 2012 Free Software Foundation, Inc. 2988ffab5952SmrgThis config.status script is free software; the Free Software Foundation 2989ffab5952Smrggives unlimited permission to copy, distribute and modify it." 2990ffab5952Smrg 2991ffab5952Smrgac_pwd='$ac_pwd' 2992ffab5952Smrgsrcdir='$srcdir' 2993ffab5952SmrgINSTALL='$INSTALL' 2994ffab5952SmrgMKDIR_P='$MKDIR_P' 2995ffab5952SmrgAWK='$AWK' 2996ffab5952Smrgtest -n "\$AWK" || AWK=awk 2997ffab5952Smrg_ACEOF 2998ffab5952Smrg 2999ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3000ffab5952Smrg# The default lists apply if the user does not specify any file. 3001ffab5952Smrgac_need_defaults=: 3002ffab5952Smrgwhile test $# != 0 3003ffab5952Smrgdo 3004ffab5952Smrg case $1 in 3005ffab5952Smrg --*=?*) 3006ffab5952Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 3007ffab5952Smrg ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 3008ffab5952Smrg ac_shift=: 3009ffab5952Smrg ;; 3010ffab5952Smrg --*=) 3011ffab5952Smrg ac_option=`expr "X$1" : 'X\([^=]*\)='` 3012ffab5952Smrg ac_optarg= 3013ffab5952Smrg ac_shift=: 3014ffab5952Smrg ;; 3015ffab5952Smrg *) 3016ffab5952Smrg ac_option=$1 3017ffab5952Smrg ac_optarg=$2 3018ffab5952Smrg ac_shift=shift 3019ffab5952Smrg ;; 3020ffab5952Smrg esac 3021ffab5952Smrg 3022ffab5952Smrg case $ac_option in 3023ffab5952Smrg # Handling of the options. 3024ffab5952Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3025ffab5952Smrg ac_cs_recheck=: ;; 3026ffab5952Smrg --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 3027ffab5952Smrg $as_echo "$ac_cs_version"; exit ;; 3028ffab5952Smrg --config | --confi | --conf | --con | --co | --c ) 3029ffab5952Smrg $as_echo "$ac_cs_config"; exit ;; 3030ffab5952Smrg --debug | --debu | --deb | --de | --d | -d ) 3031ffab5952Smrg debug=: ;; 3032ffab5952Smrg --file | --fil | --fi | --f ) 3033ffab5952Smrg $ac_shift 3034ffab5952Smrg case $ac_optarg in 3035ffab5952Smrg *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 3036ffab5952Smrg '') as_fn_error $? "missing file argument" ;; 3037ffab5952Smrg esac 3038ffab5952Smrg as_fn_append CONFIG_FILES " '$ac_optarg'" 3039ffab5952Smrg ac_need_defaults=false;; 3040ffab5952Smrg --he | --h | --help | --hel | -h ) 3041ffab5952Smrg $as_echo "$ac_cs_usage"; exit ;; 3042ffab5952Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3043ffab5952Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 3044ffab5952Smrg ac_cs_silent=: ;; 3045ffab5952Smrg 3046ffab5952Smrg # This is an error. 3047ffab5952Smrg -*) as_fn_error $? "unrecognized option: \`$1' 3048ffab5952SmrgTry \`$0 --help' for more information." ;; 3049ffab5952Smrg 3050ffab5952Smrg *) as_fn_append ac_config_targets " $1" 3051ffab5952Smrg ac_need_defaults=false ;; 3052ffab5952Smrg 3053ffab5952Smrg esac 3054ffab5952Smrg shift 3055ffab5952Smrgdone 3056ffab5952Smrg 3057ffab5952Smrgac_configure_extra_args= 3058ffab5952Smrg 3059ffab5952Smrgif $ac_cs_silent; then 3060ffab5952Smrg exec 6>/dev/null 3061ffab5952Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 3062ffab5952Smrgfi 3063ffab5952Smrg 3064ffab5952Smrg_ACEOF 3065ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3066ffab5952Smrgif \$ac_cs_recheck; then 306767e4e4deSmrg set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3068ffab5952Smrg shift 3069ffab5952Smrg \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 3070ffab5952Smrg CONFIG_SHELL='$SHELL' 3071ffab5952Smrg export CONFIG_SHELL 3072ffab5952Smrg exec "\$@" 3073ffab5952Smrgfi 3074ffab5952Smrg 3075ffab5952Smrg_ACEOF 3076ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3077ffab5952Smrgexec 5>>config.log 3078ffab5952Smrg{ 3079ffab5952Smrg echo 3080ffab5952Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3081ffab5952Smrg## Running $as_me. ## 3082ffab5952Smrg_ASBOX 3083ffab5952Smrg $as_echo "$ac_log" 3084ffab5952Smrg} >&5 3085ffab5952Smrg 3086ffab5952Smrg_ACEOF 3087ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3088ffab5952Smrg_ACEOF 3089ffab5952Smrg 3090ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3091ffab5952Smrg 3092ffab5952Smrg# Handling of arguments. 3093ffab5952Smrgfor ac_config_target in $ac_config_targets 3094ffab5952Smrgdo 3095ffab5952Smrg case $ac_config_target in 3096ffab5952Smrg "xorg-macros.pc") CONFIG_FILES="$CONFIG_FILES xorg-macros.pc" ;; 3097ffab5952Smrg "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3098ffab5952Smrg "xorg-macros.m4") CONFIG_FILES="$CONFIG_FILES xorg-macros.m4:xorg-macros.m4.in:xorgversion.m4" ;; 3099ffab5952Smrg 3100ffab5952Smrg *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 3101ffab5952Smrg esac 3102ffab5952Smrgdone 3103ffab5952Smrg 3104ffab5952Smrg 3105ffab5952Smrg# If the user did not use the arguments to specify the items to instantiate, 3106ffab5952Smrg# then the envvar interface is used. Set only those that are not. 3107ffab5952Smrg# We use the long form for the default assignment because of an extremely 3108ffab5952Smrg# bizarre bug on SunOS 4.1.3. 3109ffab5952Smrgif $ac_need_defaults; then 3110ffab5952Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3111ffab5952Smrgfi 3112ffab5952Smrg 3113ffab5952Smrg# Have a temporary directory for convenience. Make it in the build tree 3114ffab5952Smrg# simply because there is no reason against having it here, and in addition, 3115ffab5952Smrg# creating and moving files from /tmp can sometimes cause problems. 3116ffab5952Smrg# Hook for its removal unless debugging. 3117ffab5952Smrg# Note that there is a small window in which the directory will not be cleaned: 3118ffab5952Smrg# after its creation but before its name has been assigned to `$tmp'. 3119ffab5952Smrg$debug || 3120ffab5952Smrg{ 3121ffab5952Smrg tmp= ac_tmp= 3122ffab5952Smrg trap 'exit_status=$? 3123ffab5952Smrg : "${ac_tmp:=$tmp}" 3124ffab5952Smrg { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 3125ffab5952Smrg' 0 3126ffab5952Smrg trap 'as_fn_exit 1' 1 2 13 15 3127ffab5952Smrg} 3128ffab5952Smrg# Create a (secure) tmp directory for tmp files. 3129ffab5952Smrg 3130ffab5952Smrg{ 3131ffab5952Smrg tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 3132ffab5952Smrg test -d "$tmp" 3133ffab5952Smrg} || 3134ffab5952Smrg{ 3135ffab5952Smrg tmp=./conf$$-$RANDOM 3136ffab5952Smrg (umask 077 && mkdir "$tmp") 3137ffab5952Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 3138ffab5952Smrgac_tmp=$tmp 3139ffab5952Smrg 3140ffab5952Smrg# Set up the scripts for CONFIG_FILES section. 3141ffab5952Smrg# No need to generate them if there are no CONFIG_FILES. 3142ffab5952Smrg# This happens for instance with `./config.status config.h'. 3143ffab5952Smrgif test -n "$CONFIG_FILES"; then 3144ffab5952Smrg 3145ffab5952Smrg 3146ffab5952Smrgac_cr=`echo X | tr X '\015'` 3147ffab5952Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr. 3148ffab5952Smrg# But we know of no other shell where ac_cr would be empty at this 3149ffab5952Smrg# point, so we can use a bashism as a fallback. 3150ffab5952Smrgif test "x$ac_cr" = x; then 3151ffab5952Smrg eval ac_cr=\$\'\\r\' 3152ffab5952Smrgfi 3153ffab5952Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 3154ffab5952Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 3155ffab5952Smrg ac_cs_awk_cr='\\r' 3156ffab5952Smrgelse 3157ffab5952Smrg ac_cs_awk_cr=$ac_cr 3158ffab5952Smrgfi 3159ffab5952Smrg 3160ffab5952Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 3161ffab5952Smrg_ACEOF 3162ffab5952Smrg 3163ffab5952Smrg 3164ffab5952Smrg{ 3165ffab5952Smrg echo "cat >conf$$subs.awk <<_ACEOF" && 3166ffab5952Smrg echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 3167ffab5952Smrg echo "_ACEOF" 3168ffab5952Smrg} >conf$$subs.sh || 3169ffab5952Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3170ffab5952Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 3171ffab5952Smrgac_delim='%!_!# ' 3172ffab5952Smrgfor ac_last_try in false false false false false :; do 3173ffab5952Smrg . ./conf$$subs.sh || 3174ffab5952Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3175ffab5952Smrg 3176ffab5952Smrg ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 3177ffab5952Smrg if test $ac_delim_n = $ac_delim_num; then 3178ffab5952Smrg break 3179ffab5952Smrg elif $ac_last_try; then 3180ffab5952Smrg as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 3181ffab5952Smrg else 3182ffab5952Smrg ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 3183ffab5952Smrg fi 3184ffab5952Smrgdone 3185ffab5952Smrgrm -f conf$$subs.sh 3186ffab5952Smrg 3187ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3188ffab5952Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 3189ffab5952Smrg_ACEOF 3190ffab5952Smrgsed -n ' 3191ffab5952Smrgh 3192ffab5952Smrgs/^/S["/; s/!.*/"]=/ 3193ffab5952Smrgp 3194ffab5952Smrgg 3195ffab5952Smrgs/^[^!]*!// 3196ffab5952Smrg:repl 3197ffab5952Smrgt repl 3198ffab5952Smrgs/'"$ac_delim"'$// 3199ffab5952Smrgt delim 3200ffab5952Smrg:nl 3201ffab5952Smrgh 3202ffab5952Smrgs/\(.\{148\}\)..*/\1/ 3203ffab5952Smrgt more1 3204ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 3205ffab5952Smrgp 3206ffab5952Smrgn 3207ffab5952Smrgb repl 3208ffab5952Smrg:more1 3209ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 3210ffab5952Smrgp 3211ffab5952Smrgg 3212ffab5952Smrgs/.\{148\}// 3213ffab5952Smrgt nl 3214ffab5952Smrg:delim 3215ffab5952Smrgh 3216ffab5952Smrgs/\(.\{148\}\)..*/\1/ 3217ffab5952Smrgt more2 3218ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/ 3219ffab5952Smrgp 3220ffab5952Smrgb 3221ffab5952Smrg:more2 3222ffab5952Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/ 3223ffab5952Smrgp 3224ffab5952Smrgg 3225ffab5952Smrgs/.\{148\}// 3226ffab5952Smrgt delim 3227ffab5952Smrg' <conf$$subs.awk | sed ' 3228ffab5952Smrg/^[^""]/{ 3229ffab5952Smrg N 3230ffab5952Smrg s/\n// 3231ffab5952Smrg} 3232ffab5952Smrg' >>$CONFIG_STATUS || ac_write_fail=1 3233ffab5952Smrgrm -f conf$$subs.awk 3234ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3235ffab5952Smrg_ACAWK 3236ffab5952Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 3237ffab5952Smrg for (key in S) S_is_set[key] = 1 3238ffab5952Smrg FS = "" 3239ffab5952Smrg 3240ffab5952Smrg} 3241ffab5952Smrg{ 3242ffab5952Smrg line = $ 0 3243ffab5952Smrg nfields = split(line, field, "@") 3244ffab5952Smrg substed = 0 3245ffab5952Smrg len = length(field[1]) 3246ffab5952Smrg for (i = 2; i < nfields; i++) { 3247ffab5952Smrg key = field[i] 3248ffab5952Smrg keylen = length(key) 3249ffab5952Smrg if (S_is_set[key]) { 3250ffab5952Smrg value = S[key] 3251ffab5952Smrg line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 3252ffab5952Smrg len += length(value) + length(field[++i]) 3253ffab5952Smrg substed = 1 3254ffab5952Smrg } else 3255ffab5952Smrg len += 1 + keylen 3256ffab5952Smrg } 3257ffab5952Smrg 3258ffab5952Smrg print line 3259ffab5952Smrg} 3260ffab5952Smrg 3261ffab5952Smrg_ACAWK 3262ffab5952Smrg_ACEOF 3263ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3264ffab5952Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 3265ffab5952Smrg sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 3266ffab5952Smrgelse 3267ffab5952Smrg cat 3268ffab5952Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 3269ffab5952Smrg || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 3270ffab5952Smrg_ACEOF 3271ffab5952Smrg 3272ffab5952Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 3273ffab5952Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 3274ffab5952Smrg# trailing colons and then remove the whole line if VPATH becomes empty 3275ffab5952Smrg# (actually we leave an empty line to preserve line numbers). 3276ffab5952Smrgif test "x$srcdir" = x.; then 3277ffab5952Smrg ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 3278ffab5952Smrgh 3279ffab5952Smrgs/// 3280ffab5952Smrgs/^/:/ 3281ffab5952Smrgs/[ ]*$/:/ 3282ffab5952Smrgs/:\$(srcdir):/:/g 3283ffab5952Smrgs/:\${srcdir}:/:/g 3284ffab5952Smrgs/:@srcdir@:/:/g 3285ffab5952Smrgs/^:*// 3286ffab5952Smrgs/:*$// 3287ffab5952Smrgx 3288ffab5952Smrgs/\(=[ ]*\).*/\1/ 3289ffab5952SmrgG 3290ffab5952Smrgs/\n// 3291ffab5952Smrgs/^[^=]*=[ ]*$// 3292ffab5952Smrg}' 3293ffab5952Smrgfi 3294ffab5952Smrg 3295ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3296ffab5952Smrgfi # test -n "$CONFIG_FILES" 3297ffab5952Smrg 3298ffab5952Smrg 3299ffab5952Smrgeval set X " :F $CONFIG_FILES " 3300ffab5952Smrgshift 3301ffab5952Smrgfor ac_tag 3302ffab5952Smrgdo 3303ffab5952Smrg case $ac_tag in 3304ffab5952Smrg :[FHLC]) ac_mode=$ac_tag; continue;; 3305ffab5952Smrg esac 3306ffab5952Smrg case $ac_mode$ac_tag in 3307ffab5952Smrg :[FHL]*:*);; 3308ffab5952Smrg :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 3309ffab5952Smrg :[FH]-) ac_tag=-:-;; 3310ffab5952Smrg :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 3311ffab5952Smrg esac 3312ffab5952Smrg ac_save_IFS=$IFS 3313ffab5952Smrg IFS=: 3314ffab5952Smrg set x $ac_tag 3315ffab5952Smrg IFS=$ac_save_IFS 3316ffab5952Smrg shift 3317ffab5952Smrg ac_file=$1 3318ffab5952Smrg shift 3319ffab5952Smrg 3320ffab5952Smrg case $ac_mode in 3321ffab5952Smrg :L) ac_source=$1;; 3322ffab5952Smrg :[FH]) 3323ffab5952Smrg ac_file_inputs= 3324ffab5952Smrg for ac_f 3325ffab5952Smrg do 3326ffab5952Smrg case $ac_f in 3327ffab5952Smrg -) ac_f="$ac_tmp/stdin";; 3328ffab5952Smrg *) # Look for the file first in the build tree, then in the source tree 3329ffab5952Smrg # (if the path is not absolute). The absolute path cannot be DOS-style, 3330ffab5952Smrg # because $ac_f cannot contain `:'. 3331ffab5952Smrg test -f "$ac_f" || 3332ffab5952Smrg case $ac_f in 3333ffab5952Smrg [\\/$]*) false;; 3334ffab5952Smrg *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 3335ffab5952Smrg esac || 3336ffab5952Smrg as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 3337ffab5952Smrg esac 3338ffab5952Smrg case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 3339ffab5952Smrg as_fn_append ac_file_inputs " '$ac_f'" 3340ffab5952Smrg done 3341ffab5952Smrg 3342ffab5952Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 3343ffab5952Smrg # use $as_me), people would be surprised to read: 3344ffab5952Smrg # /* config.h. Generated by config.status. */ 3345ffab5952Smrg configure_input='Generated from '` 3346ffab5952Smrg $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 3347ffab5952Smrg `' by configure.' 3348ffab5952Smrg if test x"$ac_file" != x-; then 3349ffab5952Smrg configure_input="$ac_file. $configure_input" 3350ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 3351ffab5952Smrg$as_echo "$as_me: creating $ac_file" >&6;} 3352ffab5952Smrg fi 3353ffab5952Smrg # Neutralize special characters interpreted by sed in replacement strings. 3354ffab5952Smrg case $configure_input in #( 3355ffab5952Smrg *\&* | *\|* | *\\* ) 3356ffab5952Smrg ac_sed_conf_input=`$as_echo "$configure_input" | 3357ffab5952Smrg sed 's/[\\\\&|]/\\\\&/g'`;; #( 3358ffab5952Smrg *) ac_sed_conf_input=$configure_input;; 3359ffab5952Smrg esac 3360ffab5952Smrg 3361ffab5952Smrg case $ac_tag in 3362ffab5952Smrg *:-:* | *:-) cat >"$ac_tmp/stdin" \ 3363ffab5952Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 3364ffab5952Smrg esac 3365ffab5952Smrg ;; 3366ffab5952Smrg esac 3367ffab5952Smrg 3368ffab5952Smrg ac_dir=`$as_dirname -- "$ac_file" || 3369ffab5952Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3370ffab5952Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 3371ffab5952Smrg X"$ac_file" : 'X\(//\)$' \| \ 3372ffab5952Smrg X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 3373ffab5952Smrg$as_echo X"$ac_file" | 3374ffab5952Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3375ffab5952Smrg s//\1/ 3376ffab5952Smrg q 3377ffab5952Smrg } 3378ffab5952Smrg /^X\(\/\/\)[^/].*/{ 3379ffab5952Smrg s//\1/ 3380ffab5952Smrg q 3381ffab5952Smrg } 3382ffab5952Smrg /^X\(\/\/\)$/{ 3383ffab5952Smrg s//\1/ 3384ffab5952Smrg q 3385ffab5952Smrg } 3386ffab5952Smrg /^X\(\/\).*/{ 3387ffab5952Smrg s//\1/ 3388ffab5952Smrg q 3389ffab5952Smrg } 3390ffab5952Smrg s/.*/./; q'` 3391ffab5952Smrg as_dir="$ac_dir"; as_fn_mkdir_p 3392ffab5952Smrg ac_builddir=. 3393ffab5952Smrg 3394ffab5952Smrgcase "$ac_dir" in 3395ffab5952Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 3396ffab5952Smrg*) 3397ffab5952Smrg ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 3398ffab5952Smrg # A ".." for each directory in $ac_dir_suffix. 3399ffab5952Smrg ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 3400ffab5952Smrg case $ac_top_builddir_sub in 3401ffab5952Smrg "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 3402ffab5952Smrg *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 3403ffab5952Smrg esac ;; 3404ffab5952Smrgesac 3405ffab5952Smrgac_abs_top_builddir=$ac_pwd 3406ffab5952Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix 3407ffab5952Smrg# for backward compatibility: 3408ffab5952Smrgac_top_builddir=$ac_top_build_prefix 3409ffab5952Smrg 3410ffab5952Smrgcase $srcdir in 3411ffab5952Smrg .) # We are building in place. 3412ffab5952Smrg ac_srcdir=. 3413ffab5952Smrg ac_top_srcdir=$ac_top_builddir_sub 3414ffab5952Smrg ac_abs_top_srcdir=$ac_pwd ;; 3415ffab5952Smrg [\\/]* | ?:[\\/]* ) # Absolute name. 3416ffab5952Smrg ac_srcdir=$srcdir$ac_dir_suffix; 3417ffab5952Smrg ac_top_srcdir=$srcdir 3418ffab5952Smrg ac_abs_top_srcdir=$srcdir ;; 3419ffab5952Smrg *) # Relative name. 3420ffab5952Smrg ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 3421ffab5952Smrg ac_top_srcdir=$ac_top_build_prefix$srcdir 3422ffab5952Smrg ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 3423ffab5952Smrgesac 3424ffab5952Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 3425ffab5952Smrg 3426ffab5952Smrg 3427ffab5952Smrg case $ac_mode in 3428ffab5952Smrg :F) 3429ffab5952Smrg # 3430ffab5952Smrg # CONFIG_FILE 3431ffab5952Smrg # 3432ffab5952Smrg 3433ffab5952Smrg case $INSTALL in 3434ffab5952Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 3435ffab5952Smrg *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 3436ffab5952Smrg esac 3437ffab5952Smrg ac_MKDIR_P=$MKDIR_P 3438ffab5952Smrg case $MKDIR_P in 3439ffab5952Smrg [\\/$]* | ?:[\\/]* ) ;; 3440ffab5952Smrg */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 3441ffab5952Smrg esac 3442ffab5952Smrg_ACEOF 3443ffab5952Smrg 3444ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3445ffab5952Smrg# If the template does not know about datarootdir, expand it. 3446ffab5952Smrg# FIXME: This hack should be removed a few years after 2.60. 3447ffab5952Smrgac_datarootdir_hack=; ac_datarootdir_seen= 3448ffab5952Smrgac_sed_dataroot=' 3449ffab5952Smrg/datarootdir/ { 3450ffab5952Smrg p 3451ffab5952Smrg q 3452ffab5952Smrg} 3453ffab5952Smrg/@datadir@/p 3454ffab5952Smrg/@docdir@/p 3455ffab5952Smrg/@infodir@/p 3456ffab5952Smrg/@localedir@/p 3457ffab5952Smrg/@mandir@/p' 3458ffab5952Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 3459ffab5952Smrg*datarootdir*) ac_datarootdir_seen=yes;; 3460ffab5952Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 3461ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 3462ffab5952Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 3463ffab5952Smrg_ACEOF 3464ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3465ffab5952Smrg ac_datarootdir_hack=' 3466ffab5952Smrg s&@datadir@&$datadir&g 3467ffab5952Smrg s&@docdir@&$docdir&g 3468ffab5952Smrg s&@infodir@&$infodir&g 3469ffab5952Smrg s&@localedir@&$localedir&g 3470ffab5952Smrg s&@mandir@&$mandir&g 3471ffab5952Smrg s&\\\${datarootdir}&$datarootdir&g' ;; 3472ffab5952Smrgesac 3473ffab5952Smrg_ACEOF 3474ffab5952Smrg 3475ffab5952Smrg# Neutralize VPATH when `$srcdir' = `.'. 3476ffab5952Smrg# Shell code in configure.ac might set extrasub. 3477ffab5952Smrg# FIXME: do we really want to maintain this feature? 3478ffab5952Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3479ffab5952Smrgac_sed_extra="$ac_vpsub 3480ffab5952Smrg$extrasub 3481ffab5952Smrg_ACEOF 3482ffab5952Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3483ffab5952Smrg:t 3484ffab5952Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3485ffab5952Smrgs|@configure_input@|$ac_sed_conf_input|;t t 3486ffab5952Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t 3487ffab5952Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t 3488ffab5952Smrgs&@srcdir@&$ac_srcdir&;t t 3489ffab5952Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t 3490ffab5952Smrgs&@top_srcdir@&$ac_top_srcdir&;t t 3491ffab5952Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 3492ffab5952Smrgs&@builddir@&$ac_builddir&;t t 3493ffab5952Smrgs&@abs_builddir@&$ac_abs_builddir&;t t 3494ffab5952Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t 3495ffab5952Smrgs&@INSTALL@&$ac_INSTALL&;t t 3496ffab5952Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t 3497ffab5952Smrg$ac_datarootdir_hack 3498ffab5952Smrg" 3499ffab5952Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 3500ffab5952Smrg >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 3501ffab5952Smrg 3502ffab5952Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 3503ffab5952Smrg { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 3504ffab5952Smrg { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 3505ffab5952Smrg "$ac_tmp/out"`; test -z "$ac_out"; } && 3506ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3507ffab5952Smrgwhich seems to be undefined. Please make sure it is defined" >&5 3508ffab5952Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3509ffab5952Smrgwhich seems to be undefined. Please make sure it is defined" >&2;} 3510ffab5952Smrg 3511ffab5952Smrg rm -f "$ac_tmp/stdin" 3512ffab5952Smrg case $ac_file in 3513ffab5952Smrg -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 3514ffab5952Smrg *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 3515ffab5952Smrg esac \ 3516ffab5952Smrg || as_fn_error $? "could not create $ac_file" "$LINENO" 5 3517ffab5952Smrg ;; 3518ffab5952Smrg 3519ffab5952Smrg 3520ffab5952Smrg 3521ffab5952Smrg esac 3522ffab5952Smrg 3523ffab5952Smrgdone # for ac_tag 3524ffab5952Smrg 3525ffab5952Smrg 3526ffab5952Smrgas_fn_exit 0 3527ffab5952Smrg_ACEOF 3528ffab5952Smrgac_clean_files=$ac_clean_files_save 3529ffab5952Smrg 3530ffab5952Smrgtest $ac_write_fail = 0 || 3531ffab5952Smrg as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 3532ffab5952Smrg 3533ffab5952Smrg 3534ffab5952Smrg# configure is writing to config.log, and then calls config.status. 3535ffab5952Smrg# config.status does its own redirection, appending to config.log. 3536ffab5952Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 3537ffab5952Smrg# by configure, so config.status won't be able to write to it; its 3538ffab5952Smrg# output is simply discarded. So we exec the FD to /dev/null, 3539ffab5952Smrg# effectively closing config.log, so it can be properly (re)opened and 3540ffab5952Smrg# appended to by config.status. When coming back to configure, we 3541ffab5952Smrg# need to make the FD available again. 3542ffab5952Smrgif test "$no_create" != yes; then 3543ffab5952Smrg ac_cs_success=: 3544ffab5952Smrg ac_config_status_args= 3545ffab5952Smrg test "$silent" = yes && 3546ffab5952Smrg ac_config_status_args="$ac_config_status_args --quiet" 3547ffab5952Smrg exec 5>/dev/null 3548ffab5952Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 3549ffab5952Smrg exec 5>>config.log 3550ffab5952Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 3551ffab5952Smrg # would make configure fail if this is the last instruction. 3552ffab5952Smrg $ac_cs_success || as_fn_exit 1 3553ffab5952Smrgfi 3554ffab5952Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 3555ffab5952Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 3556ffab5952Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 3557ffab5952Smrgfi 3558ffab5952Smrg 3559