configure revision 5bd32fd1
18b22bf3fSmrg#! /bin/sh
28b22bf3fSmrg# Guess values for system-dependent variables and create Makefiles.
35bd32fd1Smrg# Generated by GNU Autoconf 2.68 for xrdb 1.0.7.
48b22bf3fSmrg#
58b22bf3fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
68b22bf3fSmrg#
75bd32fd1Smrg#
88b22bf3fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
95bd32fd1Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
105bd32fd1Smrg# Foundation, Inc.
115bd32fd1Smrg#
125bd32fd1Smrg#
138b22bf3fSmrg# This configure script is free software; the Free Software Foundation
148b22bf3fSmrg# gives unlimited permission to copy, distribute and modify it.
155bd32fd1Smrg## -------------------- ##
165bd32fd1Smrg## M4sh Initialization. ##
175bd32fd1Smrg## -------------------- ##
188b22bf3fSmrg
198b22bf3fSmrg# Be more Bourne compatible
208b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh
215bd32fd1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
228b22bf3fSmrg  emulate sh
238b22bf3fSmrg  NULLCMD=:
2496a81b41Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
258b22bf3fSmrg  # is contrary to our usage.  Disable this feature.
268b22bf3fSmrg  alias -g '${1+"$@"}'='"$@"'
278b22bf3fSmrg  setopt NO_GLOB_SUBST
288b22bf3fSmrgelse
295bd32fd1Smrg  case `(set -o) 2>/dev/null` in #(
305bd32fd1Smrg  *posix*) :
315bd32fd1Smrg    set -o posix ;; #(
325bd32fd1Smrg  *) :
335bd32fd1Smrg     ;;
348b22bf3fSmrgesac
358b22bf3fSmrgfi
368b22bf3fSmrg
378b22bf3fSmrg
3896a81b41Smrgas_nl='
3996a81b41Smrg'
4096a81b41Smrgexport as_nl
4196a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4296a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4396a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4496a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
455bd32fd1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
465bd32fd1Smrg# but without wasting forks for bash or zsh.
475bd32fd1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
485bd32fd1Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
495bd32fd1Smrg  as_echo='print -r --'
505bd32fd1Smrg  as_echo_n='print -rn --'
515bd32fd1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5296a81b41Smrg  as_echo='printf %s\n'
5396a81b41Smrg  as_echo_n='printf %s'
5496a81b41Smrgelse
5596a81b41Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5696a81b41Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5796a81b41Smrg    as_echo_n='/usr/ucb/echo -n'
588b22bf3fSmrg  else
5996a81b41Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6096a81b41Smrg    as_echo_n_body='eval
6196a81b41Smrg      arg=$1;
625bd32fd1Smrg      case $arg in #(
6396a81b41Smrg      *"$as_nl"*)
6496a81b41Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6596a81b41Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6696a81b41Smrg      esac;
6796a81b41Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6896a81b41Smrg    '
6996a81b41Smrg    export as_echo_n_body
7096a81b41Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
718b22bf3fSmrg  fi
7296a81b41Smrg  export as_echo_body
7396a81b41Smrg  as_echo='sh -c $as_echo_body as_echo'
7496a81b41Smrgfi
7596a81b41Smrg
7696a81b41Smrg# The user is always right.
7796a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then
7896a81b41Smrg  PATH_SEPARATOR=:
7996a81b41Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8096a81b41Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8196a81b41Smrg      PATH_SEPARATOR=';'
8296a81b41Smrg  }
838b22bf3fSmrgfi
848b22bf3fSmrg
858b22bf3fSmrg
868b22bf3fSmrg# IFS
878b22bf3fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
888b22bf3fSmrg# there to prevent editors from complaining about space-tab.
898b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
908b22bf3fSmrg# splitting by setting IFS to empty value.)
918b22bf3fSmrgIFS=" ""	$as_nl"
928b22bf3fSmrg
938b22bf3fSmrg# Find who we are.  Look in the path if we contain no directory separator.
945bd32fd1Smrgas_myself=
955bd32fd1Smrgcase $0 in #((
968b22bf3fSmrg  *[\\/]* ) as_myself=$0 ;;
978b22bf3fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
988b22bf3fSmrgfor as_dir in $PATH
998b22bf3fSmrgdo
1008b22bf3fSmrg  IFS=$as_save_IFS
1018b22bf3fSmrg  test -z "$as_dir" && as_dir=.
1025bd32fd1Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1035bd32fd1Smrg  done
1048b22bf3fSmrgIFS=$as_save_IFS
1058b22bf3fSmrg
1068b22bf3fSmrg     ;;
1078b22bf3fSmrgesac
1088b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1098b22bf3fSmrg# in which case we are not to be found in the path.
1108b22bf3fSmrgif test "x$as_myself" = x; then
1118b22bf3fSmrg  as_myself=$0
1128b22bf3fSmrgfi
1138b22bf3fSmrgif test ! -f "$as_myself"; then
11496a81b41Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1155bd32fd1Smrg  exit 1
1168b22bf3fSmrgfi
1178b22bf3fSmrg
1185bd32fd1Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1195bd32fd1Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1205bd32fd1Smrg# suppresses any "Segmentation fault" message there.  '((' could
1215bd32fd1Smrg# trigger a bug in pdksh 5.2.14.
1225bd32fd1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1235bd32fd1Smrgdo eval test x\${$as_var+set} = xset \
1245bd32fd1Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1258b22bf3fSmrgdone
1268b22bf3fSmrgPS1='$ '
1278b22bf3fSmrgPS2='> '
1288b22bf3fSmrgPS4='+ '
1298b22bf3fSmrg
1308b22bf3fSmrg# NLS nuisances.
13196a81b41SmrgLC_ALL=C
13296a81b41Smrgexport LC_ALL
13396a81b41SmrgLANGUAGE=C
13496a81b41Smrgexport LANGUAGE
1358b22bf3fSmrg
1365bd32fd1Smrg# CDPATH.
1375bd32fd1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1385bd32fd1Smrg
1395bd32fd1Smrgif test "x$CONFIG_SHELL" = x; then
1405bd32fd1Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1415bd32fd1Smrg  emulate sh
1425bd32fd1Smrg  NULLCMD=:
1435bd32fd1Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1445bd32fd1Smrg  # is contrary to our usage.  Disable this feature.
1455bd32fd1Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1465bd32fd1Smrg  setopt NO_GLOB_SUBST
1475bd32fd1Smrgelse
1485bd32fd1Smrg  case \`(set -o) 2>/dev/null\` in #(
1495bd32fd1Smrg  *posix*) :
1505bd32fd1Smrg    set -o posix ;; #(
1515bd32fd1Smrg  *) :
1525bd32fd1Smrg     ;;
1535bd32fd1Smrgesac
1545bd32fd1Smrgfi
1555bd32fd1Smrg"
1565bd32fd1Smrg  as_required="as_fn_return () { (exit \$1); }
1575bd32fd1Smrgas_fn_success () { as_fn_return 0; }
1585bd32fd1Smrgas_fn_failure () { as_fn_return 1; }
1595bd32fd1Smrgas_fn_ret_success () { return 0; }
1605bd32fd1Smrgas_fn_ret_failure () { return 1; }
1615bd32fd1Smrg
1625bd32fd1Smrgexitcode=0
1635bd32fd1Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1645bd32fd1Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1655bd32fd1Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1665bd32fd1Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1675bd32fd1Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1685bd32fd1Smrg
1695bd32fd1Smrgelse
1705bd32fd1Smrg  exitcode=1; echo positional parameters were not saved.
1715bd32fd1Smrgfi
1725bd32fd1Smrgtest x\$exitcode = x0 || exit 1"
1735bd32fd1Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1745bd32fd1Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1755bd32fd1Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1765bd32fd1Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1775bd32fd1Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1785bd32fd1Smrg  if (eval "$as_required") 2>/dev/null; then :
1795bd32fd1Smrg  as_have_required=yes
1805bd32fd1Smrgelse
1815bd32fd1Smrg  as_have_required=no
1825bd32fd1Smrgfi
1835bd32fd1Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1845bd32fd1Smrg
1855bd32fd1Smrgelse
1865bd32fd1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875bd32fd1Smrgas_found=false
1885bd32fd1Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1895bd32fd1Smrgdo
1905bd32fd1Smrg  IFS=$as_save_IFS
1915bd32fd1Smrg  test -z "$as_dir" && as_dir=.
1925bd32fd1Smrg  as_found=:
1935bd32fd1Smrg  case $as_dir in #(
1945bd32fd1Smrg	 /*)
1955bd32fd1Smrg	   for as_base in sh bash ksh sh5; do
1965bd32fd1Smrg	     # Try only shells that exist, to save several forks.
1975bd32fd1Smrg	     as_shell=$as_dir/$as_base
1985bd32fd1Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1995bd32fd1Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2005bd32fd1Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2015bd32fd1Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2025bd32fd1Smrg  break 2
2035bd32fd1Smrgfi
2045bd32fd1Smrgfi
2055bd32fd1Smrg	   done;;
2065bd32fd1Smrg       esac
2075bd32fd1Smrg  as_found=false
2085bd32fd1Smrgdone
2095bd32fd1Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2105bd32fd1Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2115bd32fd1Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2125bd32fd1Smrgfi; }
2135bd32fd1SmrgIFS=$as_save_IFS
2145bd32fd1Smrg
2155bd32fd1Smrg
2165bd32fd1Smrg      if test "x$CONFIG_SHELL" != x; then :
2175bd32fd1Smrg  # We cannot yet assume a decent shell, so we have to provide a
2185bd32fd1Smrg	# neutralization value for shells without unset; and this also
2195bd32fd1Smrg	# works around shells that cannot unset nonexistent variables.
2205bd32fd1Smrg	# Preserve -v and -x to the replacement shell.
2215bd32fd1Smrg	BASH_ENV=/dev/null
2225bd32fd1Smrg	ENV=/dev/null
2235bd32fd1Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2245bd32fd1Smrg	export CONFIG_SHELL
2255bd32fd1Smrg	case $- in # ((((
2265bd32fd1Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2275bd32fd1Smrg	  *v* ) as_opts=-v ;;
2285bd32fd1Smrg	  *x* ) as_opts=-x ;;
2295bd32fd1Smrg	  * ) as_opts= ;;
2305bd32fd1Smrg	esac
2315bd32fd1Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2325bd32fd1Smrgfi
2335bd32fd1Smrg
2345bd32fd1Smrg    if test x$as_have_required = xno; then :
2355bd32fd1Smrg  $as_echo "$0: This script requires a shell more modern than all"
2365bd32fd1Smrg  $as_echo "$0: the shells that I found on your system."
2375bd32fd1Smrg  if test x${ZSH_VERSION+set} = xset ; then
2385bd32fd1Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2395bd32fd1Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2405bd32fd1Smrg  else
2415bd32fd1Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2425bd32fd1Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2435bd32fd1Smrg$0: about your system, including any error possibly output
2445bd32fd1Smrg$0: before this message. Then install a modern shell, or
2455bd32fd1Smrg$0: manually run the script under such a shell if you do
2465bd32fd1Smrg$0: have one."
2475bd32fd1Smrg  fi
2485bd32fd1Smrg  exit 1
2495bd32fd1Smrgfi
2505bd32fd1Smrgfi
2515bd32fd1Smrgfi
2525bd32fd1SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2535bd32fd1Smrgexport SHELL
2545bd32fd1Smrg# Unset more variables known to interfere with behavior of common tools.
2555bd32fd1SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2565bd32fd1Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2575bd32fd1Smrg
2585bd32fd1Smrg## --------------------- ##
2595bd32fd1Smrg## M4sh Shell Functions. ##
2605bd32fd1Smrg## --------------------- ##
2615bd32fd1Smrg# as_fn_unset VAR
2625bd32fd1Smrg# ---------------
2635bd32fd1Smrg# Portably unset VAR.
2645bd32fd1Smrgas_fn_unset ()
2655bd32fd1Smrg{
2665bd32fd1Smrg  { eval $1=; unset $1;}
2675bd32fd1Smrg}
2685bd32fd1Smrgas_unset=as_fn_unset
2695bd32fd1Smrg
2705bd32fd1Smrg# as_fn_set_status STATUS
2715bd32fd1Smrg# -----------------------
2725bd32fd1Smrg# Set $? to STATUS, without forking.
2735bd32fd1Smrgas_fn_set_status ()
2745bd32fd1Smrg{
2755bd32fd1Smrg  return $1
2765bd32fd1Smrg} # as_fn_set_status
2775bd32fd1Smrg
2785bd32fd1Smrg# as_fn_exit STATUS
2795bd32fd1Smrg# -----------------
2805bd32fd1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2815bd32fd1Smrgas_fn_exit ()
2825bd32fd1Smrg{
2835bd32fd1Smrg  set +e
2845bd32fd1Smrg  as_fn_set_status $1
2855bd32fd1Smrg  exit $1
2865bd32fd1Smrg} # as_fn_exit
2875bd32fd1Smrg
2885bd32fd1Smrg# as_fn_mkdir_p
2895bd32fd1Smrg# -------------
2905bd32fd1Smrg# Create "$as_dir" as a directory, including parents if necessary.
2915bd32fd1Smrgas_fn_mkdir_p ()
2925bd32fd1Smrg{
2935bd32fd1Smrg
2945bd32fd1Smrg  case $as_dir in #(
2955bd32fd1Smrg  -*) as_dir=./$as_dir;;
2965bd32fd1Smrg  esac
2975bd32fd1Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2985bd32fd1Smrg    as_dirs=
2995bd32fd1Smrg    while :; do
3005bd32fd1Smrg      case $as_dir in #(
3015bd32fd1Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3025bd32fd1Smrg      *) as_qdir=$as_dir;;
3035bd32fd1Smrg      esac
3045bd32fd1Smrg      as_dirs="'$as_qdir' $as_dirs"
3055bd32fd1Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3065bd32fd1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3075bd32fd1Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3085bd32fd1Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3095bd32fd1Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3105bd32fd1Smrg$as_echo X"$as_dir" |
3115bd32fd1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3125bd32fd1Smrg	    s//\1/
3135bd32fd1Smrg	    q
3145bd32fd1Smrg	  }
3155bd32fd1Smrg	  /^X\(\/\/\)[^/].*/{
3165bd32fd1Smrg	    s//\1/
3175bd32fd1Smrg	    q
3185bd32fd1Smrg	  }
3195bd32fd1Smrg	  /^X\(\/\/\)$/{
3205bd32fd1Smrg	    s//\1/
3215bd32fd1Smrg	    q
3225bd32fd1Smrg	  }
3235bd32fd1Smrg	  /^X\(\/\).*/{
3245bd32fd1Smrg	    s//\1/
3255bd32fd1Smrg	    q
3265bd32fd1Smrg	  }
3275bd32fd1Smrg	  s/.*/./; q'`
3285bd32fd1Smrg      test -d "$as_dir" && break
3295bd32fd1Smrg    done
3305bd32fd1Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3315bd32fd1Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3325bd32fd1Smrg
3335bd32fd1Smrg
3345bd32fd1Smrg} # as_fn_mkdir_p
3355bd32fd1Smrg# as_fn_append VAR VALUE
3365bd32fd1Smrg# ----------------------
3375bd32fd1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3385bd32fd1Smrg# advantage of any shell optimizations that allow amortized linear growth over
3395bd32fd1Smrg# repeated appends, instead of the typical quadratic growth present in naive
3405bd32fd1Smrg# implementations.
3415bd32fd1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3425bd32fd1Smrg  eval 'as_fn_append ()
3435bd32fd1Smrg  {
3445bd32fd1Smrg    eval $1+=\$2
3455bd32fd1Smrg  }'
3465bd32fd1Smrgelse
3475bd32fd1Smrg  as_fn_append ()
3485bd32fd1Smrg  {
3495bd32fd1Smrg    eval $1=\$$1\$2
3505bd32fd1Smrg  }
3515bd32fd1Smrgfi # as_fn_append
3525bd32fd1Smrg
3535bd32fd1Smrg# as_fn_arith ARG...
3545bd32fd1Smrg# ------------------
3555bd32fd1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3565bd32fd1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3575bd32fd1Smrg# must be portable across $(()) and expr.
3585bd32fd1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3595bd32fd1Smrg  eval 'as_fn_arith ()
3605bd32fd1Smrg  {
3615bd32fd1Smrg    as_val=$(( $* ))
3625bd32fd1Smrg  }'
3635bd32fd1Smrgelse
3645bd32fd1Smrg  as_fn_arith ()
3655bd32fd1Smrg  {
3665bd32fd1Smrg    as_val=`expr "$@" || test $? -eq 1`
3675bd32fd1Smrg  }
3685bd32fd1Smrgfi # as_fn_arith
3695bd32fd1Smrg
3705bd32fd1Smrg
3715bd32fd1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3725bd32fd1Smrg# ----------------------------------------
3735bd32fd1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3745bd32fd1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3755bd32fd1Smrg# script with STATUS, using 1 if that was 0.
3765bd32fd1Smrgas_fn_error ()
3775bd32fd1Smrg{
3785bd32fd1Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
3795bd32fd1Smrg  if test "$4"; then
3805bd32fd1Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3815bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3825bd32fd1Smrg  fi
3835bd32fd1Smrg  $as_echo "$as_me: error: $2" >&2
3845bd32fd1Smrg  as_fn_exit $as_status
3855bd32fd1Smrg} # as_fn_error
3865bd32fd1Smrg
3878b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3888b22bf3fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3898b22bf3fSmrg  as_expr=expr
3908b22bf3fSmrgelse
3918b22bf3fSmrg  as_expr=false
3928b22bf3fSmrgfi
3938b22bf3fSmrg
3948b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3958b22bf3fSmrg  as_basename=basename
3968b22bf3fSmrgelse
3978b22bf3fSmrg  as_basename=false
3988b22bf3fSmrgfi
3998b22bf3fSmrg
4005bd32fd1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4015bd32fd1Smrg  as_dirname=dirname
4025bd32fd1Smrgelse
4035bd32fd1Smrg  as_dirname=false
4045bd32fd1Smrgfi
4058b22bf3fSmrg
4068b22bf3fSmrgas_me=`$as_basename -- "$0" ||
4078b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4088b22bf3fSmrg	 X"$0" : 'X\(//\)$' \| \
4098b22bf3fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41096a81b41Smrg$as_echo X/"$0" |
4118b22bf3fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4128b22bf3fSmrg	    s//\1/
4138b22bf3fSmrg	    q
4148b22bf3fSmrg	  }
4158b22bf3fSmrg	  /^X\/\(\/\/\)$/{
4168b22bf3fSmrg	    s//\1/
4178b22bf3fSmrg	    q
4188b22bf3fSmrg	  }
4198b22bf3fSmrg	  /^X\/\(\/\).*/{
4208b22bf3fSmrg	    s//\1/
4218b22bf3fSmrg	    q
4228b22bf3fSmrg	  }
4238b22bf3fSmrg	  s/.*/./; q'`
4248b22bf3fSmrg
4255bd32fd1Smrg# Avoid depending upon Character Ranges.
4265bd32fd1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4275bd32fd1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4285bd32fd1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4295bd32fd1Smrgas_cr_digits='0123456789'
4305bd32fd1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4318b22bf3fSmrg
4328b22bf3fSmrg
4335bd32fd1Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4345bd32fd1Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4355bd32fd1Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4365bd32fd1Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4375bd32fd1Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4385bd32fd1Smrg  sed -n '
4395bd32fd1Smrg    p
4405bd32fd1Smrg    /[$]LINENO/=
4415bd32fd1Smrg  ' <$as_myself |
4425bd32fd1Smrg    sed '
4435bd32fd1Smrg      s/[$]LINENO.*/&-/
4445bd32fd1Smrg      t lineno
4455bd32fd1Smrg      b
4465bd32fd1Smrg      :lineno
4475bd32fd1Smrg      N
4485bd32fd1Smrg      :loop
4495bd32fd1Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4505bd32fd1Smrg      t loop
4515bd32fd1Smrg      s/-\n.*//
4525bd32fd1Smrg    ' >$as_me.lineno &&
4535bd32fd1Smrg  chmod +x "$as_me.lineno" ||
4545bd32fd1Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4558b22bf3fSmrg
4565bd32fd1Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4575bd32fd1Smrg  # (the dirname of $[0] is not the place where we might find the
4585bd32fd1Smrg  # original and so on.  Autoconf is especially sensitive to this).
4595bd32fd1Smrg  . "./$as_me.lineno"
4605bd32fd1Smrg  # Exit status is that of the last command.
4615bd32fd1Smrg  exit
4628b22bf3fSmrg}
4638b22bf3fSmrg
4645bd32fd1SmrgECHO_C= ECHO_N= ECHO_T=
4655bd32fd1Smrgcase `echo -n x` in #(((((
4665bd32fd1Smrg-n*)
4675bd32fd1Smrg  case `echo 'xy\c'` in
4685bd32fd1Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4695bd32fd1Smrg  xy)  ECHO_C='\c';;
4705bd32fd1Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4715bd32fd1Smrg       ECHO_T='	';;
4725bd32fd1Smrg  esac;;
4735bd32fd1Smrg*)
4745bd32fd1Smrg  ECHO_N='-n';;
4755bd32fd1Smrgesac
4768b22bf3fSmrg
4775bd32fd1Smrgrm -f conf$$ conf$$.exe conf$$.file
4785bd32fd1Smrgif test -d conf$$.dir; then
4795bd32fd1Smrg  rm -f conf$$.dir/conf$$.file
4805bd32fd1Smrgelse
4815bd32fd1Smrg  rm -f conf$$.dir
4825bd32fd1Smrg  mkdir conf$$.dir 2>/dev/null
4838b22bf3fSmrgfi
4845bd32fd1Smrgif (echo >conf$$.file) 2>/dev/null; then
4855bd32fd1Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4865bd32fd1Smrg    as_ln_s='ln -s'
4875bd32fd1Smrg    # ... but there are two gotchas:
4885bd32fd1Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4895bd32fd1Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4905bd32fd1Smrg    # In both cases, we have to default to `cp -p'.
4915bd32fd1Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4925bd32fd1Smrg      as_ln_s='cp -p'
4935bd32fd1Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4945bd32fd1Smrg    as_ln_s=ln
4955bd32fd1Smrg  else
4965bd32fd1Smrg    as_ln_s='cp -p'
4975bd32fd1Smrg  fi
4988b22bf3fSmrgelse
4995bd32fd1Smrg  as_ln_s='cp -p'
5008b22bf3fSmrgfi
5015bd32fd1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5025bd32fd1Smrgrmdir conf$$.dir 2>/dev/null
5038b22bf3fSmrg
5045bd32fd1Smrgif mkdir -p . 2>/dev/null; then
5055bd32fd1Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5065bd32fd1Smrgelse
5075bd32fd1Smrg  test -d ./-p && rmdir ./-p
5085bd32fd1Smrg  as_mkdir_p=false
5098b22bf3fSmrgfi
5108b22bf3fSmrg
5115bd32fd1Smrgif test -x / >/dev/null 2>&1; then
5125bd32fd1Smrg  as_test_x='test -x'
5138b22bf3fSmrgelse
5145bd32fd1Smrg  if ls -dL / >/dev/null 2>&1; then
5155bd32fd1Smrg    as_ls_L_option=L
5165bd32fd1Smrg  else
5175bd32fd1Smrg    as_ls_L_option=
5185bd32fd1Smrg  fi
5195bd32fd1Smrg  as_test_x='
5205bd32fd1Smrg    eval sh -c '\''
5215bd32fd1Smrg      if test -d "$1"; then
5225bd32fd1Smrg	test -d "$1/.";
5235bd32fd1Smrg      else
5245bd32fd1Smrg	case $1 in #(
5255bd32fd1Smrg	-*)set "./$1";;
5265bd32fd1Smrg	esac;
5275bd32fd1Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5285bd32fd1Smrg	???[sx]*):;;*)false;;esac;fi
5295bd32fd1Smrg    '\'' sh
5305bd32fd1Smrg  '
5318b22bf3fSmrgfi
5325bd32fd1Smrgas_executable_p=$as_test_x
5338b22bf3fSmrg
5345bd32fd1Smrg# Sed expression to map a string onto a valid CPP name.
5355bd32fd1Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5368b22bf3fSmrg
5375bd32fd1Smrg# Sed expression to map a string onto a valid variable name.
5385bd32fd1Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5398b22bf3fSmrg
5408b22bf3fSmrg
5415bd32fd1Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5425bd32fd1Smrgexec 6>&1
5438b22bf3fSmrg
5448b22bf3fSmrg# Name of the host.
5455bd32fd1Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5468b22bf3fSmrg# so uname gets run too.
5478b22bf3fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5488b22bf3fSmrg
5498b22bf3fSmrg#
5508b22bf3fSmrg# Initializations.
5518b22bf3fSmrg#
5528b22bf3fSmrgac_default_prefix=/usr/local
5538b22bf3fSmrgac_clean_files=
5548b22bf3fSmrgac_config_libobj_dir=.
5558b22bf3fSmrgLIBOBJS=
5568b22bf3fSmrgcross_compiling=no
5578b22bf3fSmrgsubdirs=
5588b22bf3fSmrgMFLAGS=
5598b22bf3fSmrgMAKEFLAGS=
5608b22bf3fSmrg
5618b22bf3fSmrg# Identity of this package.
5628b22bf3fSmrgPACKAGE_NAME='xrdb'
5638b22bf3fSmrgPACKAGE_TARNAME='xrdb'
5645bd32fd1SmrgPACKAGE_VERSION='1.0.7'
5655bd32fd1SmrgPACKAGE_STRING='xrdb 1.0.7'
5668b22bf3fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5675bd32fd1SmrgPACKAGE_URL=''
5688b22bf3fSmrg
5695bd32fd1Smrgac_unique_file="Makefile.am"
5708b22bf3fSmrg# Factoring default headers for most tests.
5718b22bf3fSmrgac_includes_default="\
5728b22bf3fSmrg#include <stdio.h>
5738b22bf3fSmrg#ifdef HAVE_SYS_TYPES_H
5748b22bf3fSmrg# include <sys/types.h>
5758b22bf3fSmrg#endif
5768b22bf3fSmrg#ifdef HAVE_SYS_STAT_H
5778b22bf3fSmrg# include <sys/stat.h>
5788b22bf3fSmrg#endif
5798b22bf3fSmrg#ifdef STDC_HEADERS
5808b22bf3fSmrg# include <stdlib.h>
5818b22bf3fSmrg# include <stddef.h>
5828b22bf3fSmrg#else
5838b22bf3fSmrg# ifdef HAVE_STDLIB_H
5848b22bf3fSmrg#  include <stdlib.h>
5858b22bf3fSmrg# endif
5868b22bf3fSmrg#endif
5878b22bf3fSmrg#ifdef HAVE_STRING_H
5888b22bf3fSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5898b22bf3fSmrg#  include <memory.h>
5908b22bf3fSmrg# endif
5918b22bf3fSmrg# include <string.h>
5928b22bf3fSmrg#endif
5938b22bf3fSmrg#ifdef HAVE_STRINGS_H
5948b22bf3fSmrg# include <strings.h>
5958b22bf3fSmrg#endif
5968b22bf3fSmrg#ifdef HAVE_INTTYPES_H
5978b22bf3fSmrg# include <inttypes.h>
5988b22bf3fSmrg#endif
5998b22bf3fSmrg#ifdef HAVE_STDINT_H
6008b22bf3fSmrg# include <stdint.h>
6018b22bf3fSmrg#endif
6028b22bf3fSmrg#ifdef HAVE_UNISTD_H
6038b22bf3fSmrg# include <unistd.h>
6048b22bf3fSmrg#endif"
6058b22bf3fSmrg
60696a81b41Smrgac_subst_vars='am__EXEEXT_FALSE
60796a81b41Smrgam__EXEEXT_TRUE
60896a81b41SmrgLTLIBOBJS
60996a81b41SmrgLIBOBJS
6108b22bf3fSmrgXRDB_LIBS
61196a81b41SmrgXRDB_CFLAGS
61296a81b41SmrgCPP_PATH
6135bd32fd1SmrgAM_BACKSLASH
6145bd32fd1SmrgAM_DEFAULT_VERBOSITY
6155bd32fd1SmrgMAN_SUBSTS
6165bd32fd1SmrgXORG_MAN_PAGE
6178b22bf3fSmrgADMIN_MAN_DIR
61896a81b41SmrgDRIVER_MAN_DIR
61996a81b41SmrgMISC_MAN_DIR
62096a81b41SmrgFILE_MAN_DIR
62196a81b41SmrgLIB_MAN_DIR
62296a81b41SmrgAPP_MAN_DIR
62396a81b41SmrgADMIN_MAN_SUFFIX
62496a81b41SmrgDRIVER_MAN_SUFFIX
62596a81b41SmrgMISC_MAN_SUFFIX
62696a81b41SmrgFILE_MAN_SUFFIX
62796a81b41SmrgLIB_MAN_SUFFIX
62896a81b41SmrgAPP_MAN_SUFFIX
6295bd32fd1SmrgSED
63096a81b41Smrghost_os
63196a81b41Smrghost_vendor
63296a81b41Smrghost_cpu
63396a81b41Smrghost
63496a81b41Smrgbuild_os
63596a81b41Smrgbuild_vendor
63696a81b41Smrgbuild_cpu
63796a81b41Smrgbuild
6385bd32fd1SmrgINSTALL_CMD
6395bd32fd1SmrgPKG_CONFIG
64096a81b41SmrgCHANGELOG_CMD
64196a81b41SmrgCWARNFLAGS
64296a81b41SmrgEGREP
64396a81b41SmrgGREP
64496a81b41SmrgCPP
64596a81b41Smrgam__fastdepCC_FALSE
64696a81b41Smrgam__fastdepCC_TRUE
64796a81b41SmrgCCDEPMODE
64896a81b41SmrgAMDEPBACKSLASH
64996a81b41SmrgAMDEP_FALSE
65096a81b41SmrgAMDEP_TRUE
65196a81b41Smrgam__quote
65296a81b41Smrgam__include
65396a81b41SmrgDEPDIR
65496a81b41SmrgOBJEXT
65596a81b41SmrgEXEEXT
65696a81b41Smrgac_ct_CC
65796a81b41SmrgCPPFLAGS
65896a81b41SmrgLDFLAGS
65996a81b41SmrgCFLAGS
66096a81b41SmrgCC
66196a81b41SmrgMAINT
66296a81b41SmrgMAINTAINER_MODE_FALSE
66396a81b41SmrgMAINTAINER_MODE_TRUE
66496a81b41Smrgam__untar
66596a81b41Smrgam__tar
66696a81b41SmrgAMTAR
66796a81b41Smrgam__leading_dot
66896a81b41SmrgSET_MAKE
66996a81b41SmrgAWK
67096a81b41Smrgmkdir_p
67196a81b41SmrgMKDIR_P
67296a81b41SmrgINSTALL_STRIP_PROGRAM
67396a81b41SmrgSTRIP
67496a81b41Smrginstall_sh
67596a81b41SmrgMAKEINFO
67696a81b41SmrgAUTOHEADER
67796a81b41SmrgAUTOMAKE
67896a81b41SmrgAUTOCONF
67996a81b41SmrgACLOCAL
68096a81b41SmrgVERSION
68196a81b41SmrgPACKAGE
68296a81b41SmrgCYGPATH_W
68396a81b41Smrgam__isrc
68496a81b41SmrgINSTALL_DATA
68596a81b41SmrgINSTALL_SCRIPT
68696a81b41SmrgINSTALL_PROGRAM
68796a81b41Smrgtarget_alias
68896a81b41Smrghost_alias
68996a81b41Smrgbuild_alias
69096a81b41SmrgLIBS
69196a81b41SmrgECHO_T
69296a81b41SmrgECHO_N
69396a81b41SmrgECHO_C
69496a81b41SmrgDEFS
69596a81b41Smrgmandir
69696a81b41Smrglocaledir
69796a81b41Smrglibdir
69896a81b41Smrgpsdir
69996a81b41Smrgpdfdir
70096a81b41Smrgdvidir
70196a81b41Smrghtmldir
70296a81b41Smrginfodir
70396a81b41Smrgdocdir
70496a81b41Smrgoldincludedir
70596a81b41Smrgincludedir
70696a81b41Smrglocalstatedir
70796a81b41Smrgsharedstatedir
70896a81b41Smrgsysconfdir
70996a81b41Smrgdatadir
71096a81b41Smrgdatarootdir
71196a81b41Smrglibexecdir
71296a81b41Smrgsbindir
71396a81b41Smrgbindir
71496a81b41Smrgprogram_transform_name
71596a81b41Smrgprefix
71696a81b41Smrgexec_prefix
7175bd32fd1SmrgPACKAGE_URL
71896a81b41SmrgPACKAGE_BUGREPORT
71996a81b41SmrgPACKAGE_STRING
72096a81b41SmrgPACKAGE_VERSION
72196a81b41SmrgPACKAGE_TARNAME
72296a81b41SmrgPACKAGE_NAME
72396a81b41SmrgPATH_SEPARATOR
72496a81b41SmrgSHELL'
7258b22bf3fSmrgac_subst_files=''
72696a81b41Smrgac_user_opts='
72796a81b41Smrgenable_option_checking
72896a81b41Smrgenable_maintainer_mode
72996a81b41Smrgenable_dependency_tracking
73096a81b41Smrgenable_strict_compilation
7315bd32fd1Smrgenable_silent_rules
73296a81b41Smrgwith_cpp
73396a81b41Smrg'
7348b22bf3fSmrg      ac_precious_vars='build_alias
7358b22bf3fSmrghost_alias
7368b22bf3fSmrgtarget_alias
7378b22bf3fSmrgCC
7388b22bf3fSmrgCFLAGS
7398b22bf3fSmrgLDFLAGS
7408b22bf3fSmrgLIBS
7418b22bf3fSmrgCPPFLAGS
7428b22bf3fSmrgCPP
7438b22bf3fSmrgPKG_CONFIG
7448b22bf3fSmrgXRDB_CFLAGS
7458b22bf3fSmrgXRDB_LIBS'
7468b22bf3fSmrg
7478b22bf3fSmrg
7488b22bf3fSmrg# Initialize some variables set by options.
7498b22bf3fSmrgac_init_help=
7508b22bf3fSmrgac_init_version=false
75196a81b41Smrgac_unrecognized_opts=
75296a81b41Smrgac_unrecognized_sep=
7538b22bf3fSmrg# The variables have the same names as the options, with
7548b22bf3fSmrg# dashes changed to underlines.
7558b22bf3fSmrgcache_file=/dev/null
7568b22bf3fSmrgexec_prefix=NONE
7578b22bf3fSmrgno_create=
7588b22bf3fSmrgno_recursion=
7598b22bf3fSmrgprefix=NONE
7608b22bf3fSmrgprogram_prefix=NONE
7618b22bf3fSmrgprogram_suffix=NONE
7628b22bf3fSmrgprogram_transform_name=s,x,x,
7638b22bf3fSmrgsilent=
7648b22bf3fSmrgsite=
7658b22bf3fSmrgsrcdir=
7668b22bf3fSmrgverbose=
7678b22bf3fSmrgx_includes=NONE
7688b22bf3fSmrgx_libraries=NONE
7698b22bf3fSmrg
7708b22bf3fSmrg# Installation directory options.
7718b22bf3fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
7728b22bf3fSmrg# and all the variables that are supposed to be based on exec_prefix
7738b22bf3fSmrg# by default will actually change.
7748b22bf3fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
7758b22bf3fSmrg# (The list follows the same order as the GNU Coding Standards.)
7768b22bf3fSmrgbindir='${exec_prefix}/bin'
7778b22bf3fSmrgsbindir='${exec_prefix}/sbin'
7788b22bf3fSmrglibexecdir='${exec_prefix}/libexec'
7798b22bf3fSmrgdatarootdir='${prefix}/share'
7808b22bf3fSmrgdatadir='${datarootdir}'
7818b22bf3fSmrgsysconfdir='${prefix}/etc'
7828b22bf3fSmrgsharedstatedir='${prefix}/com'
7838b22bf3fSmrglocalstatedir='${prefix}/var'
7848b22bf3fSmrgincludedir='${prefix}/include'
7858b22bf3fSmrgoldincludedir='/usr/include'
7868b22bf3fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7878b22bf3fSmrginfodir='${datarootdir}/info'
7888b22bf3fSmrghtmldir='${docdir}'
7898b22bf3fSmrgdvidir='${docdir}'
7908b22bf3fSmrgpdfdir='${docdir}'
7918b22bf3fSmrgpsdir='${docdir}'
7928b22bf3fSmrglibdir='${exec_prefix}/lib'
7938b22bf3fSmrglocaledir='${datarootdir}/locale'
7948b22bf3fSmrgmandir='${datarootdir}/man'
7958b22bf3fSmrg
7968b22bf3fSmrgac_prev=
7978b22bf3fSmrgac_dashdash=
7988b22bf3fSmrgfor ac_option
7998b22bf3fSmrgdo
8008b22bf3fSmrg  # If the previous option needs an argument, assign it.
8018b22bf3fSmrg  if test -n "$ac_prev"; then
8028b22bf3fSmrg    eval $ac_prev=\$ac_option
8038b22bf3fSmrg    ac_prev=
8048b22bf3fSmrg    continue
8058b22bf3fSmrg  fi
8068b22bf3fSmrg
8078b22bf3fSmrg  case $ac_option in
8085bd32fd1Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8095bd32fd1Smrg  *=)   ac_optarg= ;;
8105bd32fd1Smrg  *)    ac_optarg=yes ;;
8118b22bf3fSmrg  esac
8128b22bf3fSmrg
8138b22bf3fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8148b22bf3fSmrg
8158b22bf3fSmrg  case $ac_dashdash$ac_option in
8168b22bf3fSmrg  --)
8178b22bf3fSmrg    ac_dashdash=yes ;;
8188b22bf3fSmrg
8198b22bf3fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8208b22bf3fSmrg    ac_prev=bindir ;;
8218b22bf3fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8228b22bf3fSmrg    bindir=$ac_optarg ;;
8238b22bf3fSmrg
8248b22bf3fSmrg  -build | --build | --buil | --bui | --bu)
8258b22bf3fSmrg    ac_prev=build_alias ;;
8268b22bf3fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8278b22bf3fSmrg    build_alias=$ac_optarg ;;
8288b22bf3fSmrg
8298b22bf3fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8308b22bf3fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8318b22bf3fSmrg    ac_prev=cache_file ;;
8328b22bf3fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8338b22bf3fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8348b22bf3fSmrg    cache_file=$ac_optarg ;;
8358b22bf3fSmrg
8368b22bf3fSmrg  --config-cache | -C)
8378b22bf3fSmrg    cache_file=config.cache ;;
8388b22bf3fSmrg
8398b22bf3fSmrg  -datadir | --datadir | --datadi | --datad)
8408b22bf3fSmrg    ac_prev=datadir ;;
8418b22bf3fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8428b22bf3fSmrg    datadir=$ac_optarg ;;
8438b22bf3fSmrg
8448b22bf3fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8458b22bf3fSmrg  | --dataroo | --dataro | --datar)
8468b22bf3fSmrg    ac_prev=datarootdir ;;
8478b22bf3fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8488b22bf3fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8498b22bf3fSmrg    datarootdir=$ac_optarg ;;
8508b22bf3fSmrg
8518b22bf3fSmrg  -disable-* | --disable-*)
85296a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8538b22bf3fSmrg    # Reject names that are not valid shell variable names.
85496a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8555bd32fd1Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
85696a81b41Smrg    ac_useropt_orig=$ac_useropt
85796a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
85896a81b41Smrg    case $ac_user_opts in
85996a81b41Smrg      *"
86096a81b41Smrg"enable_$ac_useropt"
86196a81b41Smrg"*) ;;
86296a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
86396a81b41Smrg	 ac_unrecognized_sep=', ';;
86496a81b41Smrg    esac
86596a81b41Smrg    eval enable_$ac_useropt=no ;;
8668b22bf3fSmrg
8678b22bf3fSmrg  -docdir | --docdir | --docdi | --doc | --do)
8688b22bf3fSmrg    ac_prev=docdir ;;
8698b22bf3fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8708b22bf3fSmrg    docdir=$ac_optarg ;;
8718b22bf3fSmrg
8728b22bf3fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8738b22bf3fSmrg    ac_prev=dvidir ;;
8748b22bf3fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8758b22bf3fSmrg    dvidir=$ac_optarg ;;
8768b22bf3fSmrg
8778b22bf3fSmrg  -enable-* | --enable-*)
87896a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8798b22bf3fSmrg    # Reject names that are not valid shell variable names.
88096a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8815bd32fd1Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
88296a81b41Smrg    ac_useropt_orig=$ac_useropt
88396a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
88496a81b41Smrg    case $ac_user_opts in
88596a81b41Smrg      *"
88696a81b41Smrg"enable_$ac_useropt"
88796a81b41Smrg"*) ;;
88896a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
88996a81b41Smrg	 ac_unrecognized_sep=', ';;
89096a81b41Smrg    esac
89196a81b41Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
8928b22bf3fSmrg
8938b22bf3fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8948b22bf3fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8958b22bf3fSmrg  | --exec | --exe | --ex)
8968b22bf3fSmrg    ac_prev=exec_prefix ;;
8978b22bf3fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8988b22bf3fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8998b22bf3fSmrg  | --exec=* | --exe=* | --ex=*)
9008b22bf3fSmrg    exec_prefix=$ac_optarg ;;
9018b22bf3fSmrg
9028b22bf3fSmrg  -gas | --gas | --ga | --g)
9038b22bf3fSmrg    # Obsolete; use --with-gas.
9048b22bf3fSmrg    with_gas=yes ;;
9058b22bf3fSmrg
9068b22bf3fSmrg  -help | --help | --hel | --he | -h)
9078b22bf3fSmrg    ac_init_help=long ;;
9088b22bf3fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9098b22bf3fSmrg    ac_init_help=recursive ;;
9108b22bf3fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9118b22bf3fSmrg    ac_init_help=short ;;
9128b22bf3fSmrg
9138b22bf3fSmrg  -host | --host | --hos | --ho)
9148b22bf3fSmrg    ac_prev=host_alias ;;
9158b22bf3fSmrg  -host=* | --host=* | --hos=* | --ho=*)
9168b22bf3fSmrg    host_alias=$ac_optarg ;;
9178b22bf3fSmrg
9188b22bf3fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9198b22bf3fSmrg    ac_prev=htmldir ;;
9208b22bf3fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9218b22bf3fSmrg  | --ht=*)
9228b22bf3fSmrg    htmldir=$ac_optarg ;;
9238b22bf3fSmrg
9248b22bf3fSmrg  -includedir | --includedir | --includedi | --included | --include \
9258b22bf3fSmrg  | --includ | --inclu | --incl | --inc)
9268b22bf3fSmrg    ac_prev=includedir ;;
9278b22bf3fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9288b22bf3fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9298b22bf3fSmrg    includedir=$ac_optarg ;;
9308b22bf3fSmrg
9318b22bf3fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9328b22bf3fSmrg    ac_prev=infodir ;;
9338b22bf3fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9348b22bf3fSmrg    infodir=$ac_optarg ;;
9358b22bf3fSmrg
9368b22bf3fSmrg  -libdir | --libdir | --libdi | --libd)
9378b22bf3fSmrg    ac_prev=libdir ;;
9388b22bf3fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9398b22bf3fSmrg    libdir=$ac_optarg ;;
9408b22bf3fSmrg
9418b22bf3fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9428b22bf3fSmrg  | --libexe | --libex | --libe)
9438b22bf3fSmrg    ac_prev=libexecdir ;;
9448b22bf3fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9458b22bf3fSmrg  | --libexe=* | --libex=* | --libe=*)
9468b22bf3fSmrg    libexecdir=$ac_optarg ;;
9478b22bf3fSmrg
9488b22bf3fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
9498b22bf3fSmrg    ac_prev=localedir ;;
9508b22bf3fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9518b22bf3fSmrg    localedir=$ac_optarg ;;
9528b22bf3fSmrg
9538b22bf3fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9548b22bf3fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9558b22bf3fSmrg    ac_prev=localstatedir ;;
9568b22bf3fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9578b22bf3fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9588b22bf3fSmrg    localstatedir=$ac_optarg ;;
9598b22bf3fSmrg
9608b22bf3fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9618b22bf3fSmrg    ac_prev=mandir ;;
9628b22bf3fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9638b22bf3fSmrg    mandir=$ac_optarg ;;
9648b22bf3fSmrg
9658b22bf3fSmrg  -nfp | --nfp | --nf)
9668b22bf3fSmrg    # Obsolete; use --without-fp.
9678b22bf3fSmrg    with_fp=no ;;
9688b22bf3fSmrg
9698b22bf3fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9708b22bf3fSmrg  | --no-cr | --no-c | -n)
9718b22bf3fSmrg    no_create=yes ;;
9728b22bf3fSmrg
9738b22bf3fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9748b22bf3fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9758b22bf3fSmrg    no_recursion=yes ;;
9768b22bf3fSmrg
9778b22bf3fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9788b22bf3fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9798b22bf3fSmrg  | --oldin | --oldi | --old | --ol | --o)
9808b22bf3fSmrg    ac_prev=oldincludedir ;;
9818b22bf3fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9828b22bf3fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9838b22bf3fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9848b22bf3fSmrg    oldincludedir=$ac_optarg ;;
9858b22bf3fSmrg
9868b22bf3fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9878b22bf3fSmrg    ac_prev=prefix ;;
9888b22bf3fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9898b22bf3fSmrg    prefix=$ac_optarg ;;
9908b22bf3fSmrg
9918b22bf3fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
9928b22bf3fSmrg  | --program-pre | --program-pr | --program-p)
9938b22bf3fSmrg    ac_prev=program_prefix ;;
9948b22bf3fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
9958b22bf3fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9968b22bf3fSmrg    program_prefix=$ac_optarg ;;
9978b22bf3fSmrg
9988b22bf3fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
9998b22bf3fSmrg  | --program-suf | --program-su | --program-s)
10008b22bf3fSmrg    ac_prev=program_suffix ;;
10018b22bf3fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10028b22bf3fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10038b22bf3fSmrg    program_suffix=$ac_optarg ;;
10048b22bf3fSmrg
10058b22bf3fSmrg  -program-transform-name | --program-transform-name \
10068b22bf3fSmrg  | --program-transform-nam | --program-transform-na \
10078b22bf3fSmrg  | --program-transform-n | --program-transform- \
10088b22bf3fSmrg  | --program-transform | --program-transfor \
10098b22bf3fSmrg  | --program-transfo | --program-transf \
10108b22bf3fSmrg  | --program-trans | --program-tran \
10118b22bf3fSmrg  | --progr-tra | --program-tr | --program-t)
10128b22bf3fSmrg    ac_prev=program_transform_name ;;
10138b22bf3fSmrg  -program-transform-name=* | --program-transform-name=* \
10148b22bf3fSmrg  | --program-transform-nam=* | --program-transform-na=* \
10158b22bf3fSmrg  | --program-transform-n=* | --program-transform-=* \
10168b22bf3fSmrg  | --program-transform=* | --program-transfor=* \
10178b22bf3fSmrg  | --program-transfo=* | --program-transf=* \
10188b22bf3fSmrg  | --program-trans=* | --program-tran=* \
10198b22bf3fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10208b22bf3fSmrg    program_transform_name=$ac_optarg ;;
10218b22bf3fSmrg
10228b22bf3fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10238b22bf3fSmrg    ac_prev=pdfdir ;;
10248b22bf3fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10258b22bf3fSmrg    pdfdir=$ac_optarg ;;
10268b22bf3fSmrg
10278b22bf3fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
10288b22bf3fSmrg    ac_prev=psdir ;;
10298b22bf3fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10308b22bf3fSmrg    psdir=$ac_optarg ;;
10318b22bf3fSmrg
10328b22bf3fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10338b22bf3fSmrg  | -silent | --silent | --silen | --sile | --sil)
10348b22bf3fSmrg    silent=yes ;;
10358b22bf3fSmrg
10368b22bf3fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10378b22bf3fSmrg    ac_prev=sbindir ;;
10388b22bf3fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10398b22bf3fSmrg  | --sbi=* | --sb=*)
10408b22bf3fSmrg    sbindir=$ac_optarg ;;
10418b22bf3fSmrg
10428b22bf3fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10438b22bf3fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10448b22bf3fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
10458b22bf3fSmrg  | --sha | --sh)
10468b22bf3fSmrg    ac_prev=sharedstatedir ;;
10478b22bf3fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10488b22bf3fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10498b22bf3fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10508b22bf3fSmrg  | --sha=* | --sh=*)
10518b22bf3fSmrg    sharedstatedir=$ac_optarg ;;
10528b22bf3fSmrg
10538b22bf3fSmrg  -site | --site | --sit)
10548b22bf3fSmrg    ac_prev=site ;;
10558b22bf3fSmrg  -site=* | --site=* | --sit=*)
10568b22bf3fSmrg    site=$ac_optarg ;;
10578b22bf3fSmrg
10588b22bf3fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10598b22bf3fSmrg    ac_prev=srcdir ;;
10608b22bf3fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10618b22bf3fSmrg    srcdir=$ac_optarg ;;
10628b22bf3fSmrg
10638b22bf3fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10648b22bf3fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
10658b22bf3fSmrg    ac_prev=sysconfdir ;;
10668b22bf3fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10678b22bf3fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10688b22bf3fSmrg    sysconfdir=$ac_optarg ;;
10698b22bf3fSmrg
10708b22bf3fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
10718b22bf3fSmrg    ac_prev=target_alias ;;
10728b22bf3fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10738b22bf3fSmrg    target_alias=$ac_optarg ;;
10748b22bf3fSmrg
10758b22bf3fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10768b22bf3fSmrg    verbose=yes ;;
10778b22bf3fSmrg
10788b22bf3fSmrg  -version | --version | --versio | --versi | --vers | -V)
10798b22bf3fSmrg    ac_init_version=: ;;
10808b22bf3fSmrg
10818b22bf3fSmrg  -with-* | --with-*)
108296a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10838b22bf3fSmrg    # Reject names that are not valid shell variable names.
108496a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10855bd32fd1Smrg      as_fn_error $? "invalid package name: $ac_useropt"
108696a81b41Smrg    ac_useropt_orig=$ac_useropt
108796a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
108896a81b41Smrg    case $ac_user_opts in
108996a81b41Smrg      *"
109096a81b41Smrg"with_$ac_useropt"
109196a81b41Smrg"*) ;;
109296a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
109396a81b41Smrg	 ac_unrecognized_sep=', ';;
109496a81b41Smrg    esac
109596a81b41Smrg    eval with_$ac_useropt=\$ac_optarg ;;
10968b22bf3fSmrg
10978b22bf3fSmrg  -without-* | --without-*)
109896a81b41Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10998b22bf3fSmrg    # Reject names that are not valid shell variable names.
110096a81b41Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11015bd32fd1Smrg      as_fn_error $? "invalid package name: $ac_useropt"
110296a81b41Smrg    ac_useropt_orig=$ac_useropt
110396a81b41Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
110496a81b41Smrg    case $ac_user_opts in
110596a81b41Smrg      *"
110696a81b41Smrg"with_$ac_useropt"
110796a81b41Smrg"*) ;;
110896a81b41Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
110996a81b41Smrg	 ac_unrecognized_sep=', ';;
111096a81b41Smrg    esac
111196a81b41Smrg    eval with_$ac_useropt=no ;;
11128b22bf3fSmrg
11138b22bf3fSmrg  --x)
11148b22bf3fSmrg    # Obsolete; use --with-x.
11158b22bf3fSmrg    with_x=yes ;;
11168b22bf3fSmrg
11178b22bf3fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11188b22bf3fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
11198b22bf3fSmrg    ac_prev=x_includes ;;
11208b22bf3fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11218b22bf3fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11228b22bf3fSmrg    x_includes=$ac_optarg ;;
11238b22bf3fSmrg
11248b22bf3fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11258b22bf3fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11268b22bf3fSmrg    ac_prev=x_libraries ;;
11278b22bf3fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11288b22bf3fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11298b22bf3fSmrg    x_libraries=$ac_optarg ;;
11308b22bf3fSmrg
11315bd32fd1Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11325bd32fd1SmrgTry \`$0 --help' for more information"
11338b22bf3fSmrg    ;;
11348b22bf3fSmrg
11358b22bf3fSmrg  *=*)
11368b22bf3fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11378b22bf3fSmrg    # Reject names that are not valid shell variable names.
11385bd32fd1Smrg    case $ac_envvar in #(
11395bd32fd1Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11405bd32fd1Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11415bd32fd1Smrg    esac
11428b22bf3fSmrg    eval $ac_envvar=\$ac_optarg
11438b22bf3fSmrg    export $ac_envvar ;;
11448b22bf3fSmrg
11458b22bf3fSmrg  *)
11468b22bf3fSmrg    # FIXME: should be removed in autoconf 3.0.
114796a81b41Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11488b22bf3fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
114996a81b41Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11505bd32fd1Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11518b22bf3fSmrg    ;;
11528b22bf3fSmrg
11538b22bf3fSmrg  esac
11548b22bf3fSmrgdone
11558b22bf3fSmrg
11568b22bf3fSmrgif test -n "$ac_prev"; then
11578b22bf3fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11585bd32fd1Smrg  as_fn_error $? "missing argument to $ac_option"
11598b22bf3fSmrgfi
11608b22bf3fSmrg
116196a81b41Smrgif test -n "$ac_unrecognized_opts"; then
116296a81b41Smrg  case $enable_option_checking in
116396a81b41Smrg    no) ;;
11645bd32fd1Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
116596a81b41Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
116696a81b41Smrg  esac
116796a81b41Smrgfi
116896a81b41Smrg
116996a81b41Smrg# Check all directory arguments for consistency.
11708b22bf3fSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11718b22bf3fSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
11728b22bf3fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11738b22bf3fSmrg		libdir localedir mandir
11748b22bf3fSmrgdo
11758b22bf3fSmrg  eval ac_val=\$$ac_var
117696a81b41Smrg  # Remove trailing slashes.
117796a81b41Smrg  case $ac_val in
117896a81b41Smrg    */ )
117996a81b41Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
118096a81b41Smrg      eval $ac_var=\$ac_val;;
118196a81b41Smrg  esac
118296a81b41Smrg  # Be sure to have absolute directory names.
11838b22bf3fSmrg  case $ac_val in
11848b22bf3fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
11858b22bf3fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11868b22bf3fSmrg  esac
11875bd32fd1Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11888b22bf3fSmrgdone
11898b22bf3fSmrg
11908b22bf3fSmrg# There might be people who depend on the old broken behavior: `$host'
11918b22bf3fSmrg# used to hold the argument of --host etc.
11928b22bf3fSmrg# FIXME: To remove some day.
11938b22bf3fSmrgbuild=$build_alias
11948b22bf3fSmrghost=$host_alias
11958b22bf3fSmrgtarget=$target_alias
11968b22bf3fSmrg
11978b22bf3fSmrg# FIXME: To remove some day.
11988b22bf3fSmrgif test "x$host_alias" != x; then
11998b22bf3fSmrg  if test "x$build_alias" = x; then
12008b22bf3fSmrg    cross_compiling=maybe
12015bd32fd1Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12025bd32fd1Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
12038b22bf3fSmrg  elif test "x$build_alias" != "x$host_alias"; then
12048b22bf3fSmrg    cross_compiling=yes
12058b22bf3fSmrg  fi
12068b22bf3fSmrgfi
12078b22bf3fSmrg
12088b22bf3fSmrgac_tool_prefix=
12098b22bf3fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12108b22bf3fSmrg
12118b22bf3fSmrgtest "$silent" = yes && exec 6>/dev/null
12128b22bf3fSmrg
12138b22bf3fSmrg
12148b22bf3fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12158b22bf3fSmrgac_ls_di=`ls -di .` &&
12168b22bf3fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12175bd32fd1Smrg  as_fn_error $? "working directory cannot be determined"
12188b22bf3fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12195bd32fd1Smrg  as_fn_error $? "pwd does not report name of working directory"
12208b22bf3fSmrg
12218b22bf3fSmrg
12228b22bf3fSmrg# Find the source files, if location was not specified.
12238b22bf3fSmrgif test -z "$srcdir"; then
12248b22bf3fSmrg  ac_srcdir_defaulted=yes
12258b22bf3fSmrg  # Try the directory containing this script, then the parent directory.
122696a81b41Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
122796a81b41Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
122896a81b41Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
122996a81b41Smrg	 X"$as_myself" : 'X\(//\)$' \| \
123096a81b41Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
123196a81b41Smrg$as_echo X"$as_myself" |
12328b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12338b22bf3fSmrg	    s//\1/
12348b22bf3fSmrg	    q
12358b22bf3fSmrg	  }
12368b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
12378b22bf3fSmrg	    s//\1/
12388b22bf3fSmrg	    q
12398b22bf3fSmrg	  }
12408b22bf3fSmrg	  /^X\(\/\/\)$/{
12418b22bf3fSmrg	    s//\1/
12428b22bf3fSmrg	    q
12438b22bf3fSmrg	  }
12448b22bf3fSmrg	  /^X\(\/\).*/{
12458b22bf3fSmrg	    s//\1/
12468b22bf3fSmrg	    q
12478b22bf3fSmrg	  }
12488b22bf3fSmrg	  s/.*/./; q'`
12498b22bf3fSmrg  srcdir=$ac_confdir
12508b22bf3fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12518b22bf3fSmrg    srcdir=..
12528b22bf3fSmrg  fi
12538b22bf3fSmrgelse
12548b22bf3fSmrg  ac_srcdir_defaulted=no
12558b22bf3fSmrgfi
12568b22bf3fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
12578b22bf3fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12585bd32fd1Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12598b22bf3fSmrgfi
12608b22bf3fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12618b22bf3fSmrgac_abs_confdir=`(
12625bd32fd1Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12638b22bf3fSmrg	pwd)`
12648b22bf3fSmrg# When building in place, set srcdir=.
12658b22bf3fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12668b22bf3fSmrg  srcdir=.
12678b22bf3fSmrgfi
12688b22bf3fSmrg# Remove unnecessary trailing slashes from srcdir.
12698b22bf3fSmrg# Double slashes in file names in object file debugging info
12708b22bf3fSmrg# mess up M-x gdb in Emacs.
12718b22bf3fSmrgcase $srcdir in
12728b22bf3fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12738b22bf3fSmrgesac
12748b22bf3fSmrgfor ac_var in $ac_precious_vars; do
12758b22bf3fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12768b22bf3fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
12778b22bf3fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12788b22bf3fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12798b22bf3fSmrgdone
12808b22bf3fSmrg
12818b22bf3fSmrg#
12828b22bf3fSmrg# Report the --help message.
12838b22bf3fSmrg#
12848b22bf3fSmrgif test "$ac_init_help" = "long"; then
12858b22bf3fSmrg  # Omit some internal or obsolete options to make the list less imposing.
12868b22bf3fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
12878b22bf3fSmrg  cat <<_ACEOF
12885bd32fd1Smrg\`configure' configures xrdb 1.0.7 to adapt to many kinds of systems.
12898b22bf3fSmrg
12908b22bf3fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
12918b22bf3fSmrg
12928b22bf3fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
12938b22bf3fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
12948b22bf3fSmrg
12958b22bf3fSmrgDefaults for the options are specified in brackets.
12968b22bf3fSmrg
12978b22bf3fSmrgConfiguration:
12988b22bf3fSmrg  -h, --help              display this help and exit
12998b22bf3fSmrg      --help=short        display options specific to this package
13008b22bf3fSmrg      --help=recursive    display the short help of all the included packages
13018b22bf3fSmrg  -V, --version           display version information and exit
13025bd32fd1Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
13038b22bf3fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
13048b22bf3fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13058b22bf3fSmrg  -n, --no-create         do not create output files
13068b22bf3fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13078b22bf3fSmrg
13088b22bf3fSmrgInstallation directories:
13098b22bf3fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
131096a81b41Smrg                          [$ac_default_prefix]
13118b22bf3fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
131296a81b41Smrg                          [PREFIX]
13138b22bf3fSmrg
13148b22bf3fSmrgBy default, \`make install' will install all the files in
13158b22bf3fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13168b22bf3fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13178b22bf3fSmrgfor instance \`--prefix=\$HOME'.
13188b22bf3fSmrg
13198b22bf3fSmrgFor better control, use the options below.
13208b22bf3fSmrg
13218b22bf3fSmrgFine tuning of the installation directories:
132296a81b41Smrg  --bindir=DIR            user executables [EPREFIX/bin]
132396a81b41Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
132496a81b41Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
132596a81b41Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
132696a81b41Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
132796a81b41Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
132896a81b41Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
132996a81b41Smrg  --includedir=DIR        C header files [PREFIX/include]
133096a81b41Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
133196a81b41Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
133296a81b41Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
133396a81b41Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
133496a81b41Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
133596a81b41Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
133696a81b41Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xrdb]
133796a81b41Smrg  --htmldir=DIR           html documentation [DOCDIR]
133896a81b41Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
133996a81b41Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
134096a81b41Smrg  --psdir=DIR             ps documentation [DOCDIR]
13418b22bf3fSmrg_ACEOF
13428b22bf3fSmrg
13438b22bf3fSmrg  cat <<\_ACEOF
13448b22bf3fSmrg
13458b22bf3fSmrgProgram names:
13468b22bf3fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13478b22bf3fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13488b22bf3fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13498b22bf3fSmrg
13508b22bf3fSmrgSystem types:
13518b22bf3fSmrg  --build=BUILD     configure for building on BUILD [guessed]
13528b22bf3fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13538b22bf3fSmrg_ACEOF
13548b22bf3fSmrgfi
13558b22bf3fSmrg
13568b22bf3fSmrgif test -n "$ac_init_help"; then
13578b22bf3fSmrg  case $ac_init_help in
13585bd32fd1Smrg     short | recursive ) echo "Configuration of xrdb 1.0.7:";;
13598b22bf3fSmrg   esac
13608b22bf3fSmrg  cat <<\_ACEOF
13618b22bf3fSmrg
13628b22bf3fSmrgOptional Features:
136396a81b41Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
13648b22bf3fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13658b22bf3fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13668b22bf3fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
13678b22bf3fSmrg			  (and sometimes confusing) to the casual installer
13688b22bf3fSmrg  --disable-dependency-tracking  speeds up one-time build
13698b22bf3fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
137096a81b41Smrg  --enable-strict-compilation
137196a81b41Smrg                          Enable all warnings from compiler and make them
137296a81b41Smrg                          errors (default: disabled)
13735bd32fd1Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13745bd32fd1Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
13758b22bf3fSmrg
13768b22bf3fSmrgOptional Packages:
13778b22bf3fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
13788b22bf3fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
137996a81b41Smrg  --with-cpp=path         comma-separated list of paths to cpp command for
138096a81b41Smrg                          xrdb to use at runtime
13818b22bf3fSmrg
13828b22bf3fSmrgSome influential environment variables:
13838b22bf3fSmrg  CC          C compiler command
13848b22bf3fSmrg  CFLAGS      C compiler flags
13858b22bf3fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13868b22bf3fSmrg              nonstandard directory <lib dir>
13878b22bf3fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
13885bd32fd1Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
13898b22bf3fSmrg              you have headers in a nonstandard directory <include dir>
13908b22bf3fSmrg  CPP         C preprocessor
13918b22bf3fSmrg  PKG_CONFIG  path to pkg-config utility
13928b22bf3fSmrg  XRDB_CFLAGS C compiler flags for XRDB, overriding pkg-config
13938b22bf3fSmrg  XRDB_LIBS   linker flags for XRDB, overriding pkg-config
13948b22bf3fSmrg
13958b22bf3fSmrgUse these variables to override the choices made by `configure' or to help
13968b22bf3fSmrgit to find libraries and programs with nonstandard names/locations.
13978b22bf3fSmrg
13988b22bf3fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
13998b22bf3fSmrg_ACEOF
14008b22bf3fSmrgac_status=$?
14018b22bf3fSmrgfi
14028b22bf3fSmrg
14038b22bf3fSmrgif test "$ac_init_help" = "recursive"; then
14048b22bf3fSmrg  # If there are subdirs, report their specific --help.
14058b22bf3fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
140696a81b41Smrg    test -d "$ac_dir" ||
140796a81b41Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
140896a81b41Smrg      continue
14098b22bf3fSmrg    ac_builddir=.
14108b22bf3fSmrg
14118b22bf3fSmrgcase "$ac_dir" in
14128b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14138b22bf3fSmrg*)
141496a81b41Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14158b22bf3fSmrg  # A ".." for each directory in $ac_dir_suffix.
141696a81b41Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14178b22bf3fSmrg  case $ac_top_builddir_sub in
14188b22bf3fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14198b22bf3fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14208b22bf3fSmrg  esac ;;
14218b22bf3fSmrgesac
14228b22bf3fSmrgac_abs_top_builddir=$ac_pwd
14238b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14248b22bf3fSmrg# for backward compatibility:
14258b22bf3fSmrgac_top_builddir=$ac_top_build_prefix
14268b22bf3fSmrg
14278b22bf3fSmrgcase $srcdir in
14288b22bf3fSmrg  .)  # We are building in place.
14298b22bf3fSmrg    ac_srcdir=.
14308b22bf3fSmrg    ac_top_srcdir=$ac_top_builddir_sub
14318b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
14328b22bf3fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14338b22bf3fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
14348b22bf3fSmrg    ac_top_srcdir=$srcdir
14358b22bf3fSmrg    ac_abs_top_srcdir=$srcdir ;;
14368b22bf3fSmrg  *) # Relative name.
14378b22bf3fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14388b22bf3fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14398b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14408b22bf3fSmrgesac
14418b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14428b22bf3fSmrg
14438b22bf3fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
14448b22bf3fSmrg    # Check for guested configure.
14458b22bf3fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
14468b22bf3fSmrg      echo &&
14478b22bf3fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14488b22bf3fSmrg    elif test -f "$ac_srcdir/configure"; then
14498b22bf3fSmrg      echo &&
14508b22bf3fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14518b22bf3fSmrg    else
145296a81b41Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14538b22bf3fSmrg    fi || ac_status=$?
14548b22bf3fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
14558b22bf3fSmrg  done
14568b22bf3fSmrgfi
14578b22bf3fSmrg
14588b22bf3fSmrgtest -n "$ac_init_help" && exit $ac_status
14598b22bf3fSmrgif $ac_init_version; then
14608b22bf3fSmrg  cat <<\_ACEOF
14615bd32fd1Smrgxrdb configure 1.0.7
14625bd32fd1Smrggenerated by GNU Autoconf 2.68
14638b22bf3fSmrg
14645bd32fd1SmrgCopyright (C) 2010 Free Software Foundation, Inc.
14658b22bf3fSmrgThis configure script is free software; the Free Software Foundation
14668b22bf3fSmrggives unlimited permission to copy, distribute and modify it.
14678b22bf3fSmrg_ACEOF
14688b22bf3fSmrg  exit
14698b22bf3fSmrgfi
14708b22bf3fSmrg
14715bd32fd1Smrg## ------------------------ ##
14725bd32fd1Smrg## Autoconf initialization. ##
14735bd32fd1Smrg## ------------------------ ##
14748b22bf3fSmrg
14755bd32fd1Smrg# ac_fn_c_try_compile LINENO
14765bd32fd1Smrg# --------------------------
14775bd32fd1Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
14785bd32fd1Smrgac_fn_c_try_compile ()
14798b22bf3fSmrg{
14805bd32fd1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14815bd32fd1Smrg  rm -f conftest.$ac_objext
14825bd32fd1Smrg  if { { ac_try="$ac_compile"
14835bd32fd1Smrgcase "(($ac_try" in
14845bd32fd1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14855bd32fd1Smrg  *) ac_try_echo=$ac_try;;
14865bd32fd1Smrgesac
14875bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14885bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
14895bd32fd1Smrg  (eval "$ac_compile") 2>conftest.err
14905bd32fd1Smrg  ac_status=$?
14915bd32fd1Smrg  if test -s conftest.err; then
14925bd32fd1Smrg    grep -v '^ *+' conftest.err >conftest.er1
14935bd32fd1Smrg    cat conftest.er1 >&5
14945bd32fd1Smrg    mv -f conftest.er1 conftest.err
14955bd32fd1Smrg  fi
14965bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14975bd32fd1Smrg  test $ac_status = 0; } && {
14985bd32fd1Smrg	 test -z "$ac_c_werror_flag" ||
14995bd32fd1Smrg	 test ! -s conftest.err
15005bd32fd1Smrg       } && test -s conftest.$ac_objext; then :
15015bd32fd1Smrg  ac_retval=0
15025bd32fd1Smrgelse
15035bd32fd1Smrg  $as_echo "$as_me: failed program was:" >&5
15045bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5
15058b22bf3fSmrg
15065bd32fd1Smrg	ac_retval=1
15075bd32fd1Smrgfi
15085bd32fd1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15095bd32fd1Smrg  as_fn_set_status $ac_retval
15108b22bf3fSmrg
15115bd32fd1Smrg} # ac_fn_c_try_compile
15128b22bf3fSmrg
15135bd32fd1Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15145bd32fd1Smrg# ---------------------------------------------
15155bd32fd1Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15165bd32fd1Smrg# accordingly.
15175bd32fd1Smrgac_fn_c_check_decl ()
15185bd32fd1Smrg{
15195bd32fd1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15205bd32fd1Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15215bd32fd1Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15225bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15235bd32fd1Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15245bd32fd1Smrgif eval \${$3+:} false; then :
15255bd32fd1Smrg  $as_echo_n "(cached) " >&6
15265bd32fd1Smrgelse
15275bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285bd32fd1Smrg/* end confdefs.h.  */
15295bd32fd1Smrg$4
15305bd32fd1Smrgint
15315bd32fd1Smrgmain ()
15325bd32fd1Smrg{
15335bd32fd1Smrg#ifndef $as_decl_name
15345bd32fd1Smrg#ifdef __cplusplus
15355bd32fd1Smrg  (void) $as_decl_use;
15365bd32fd1Smrg#else
15375bd32fd1Smrg  (void) $as_decl_name;
15385bd32fd1Smrg#endif
15395bd32fd1Smrg#endif
15405bd32fd1Smrg
15415bd32fd1Smrg  ;
15425bd32fd1Smrg  return 0;
15435bd32fd1Smrg}
15445bd32fd1Smrg_ACEOF
15455bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
15465bd32fd1Smrg  eval "$3=yes"
15475bd32fd1Smrgelse
15485bd32fd1Smrg  eval "$3=no"
15495bd32fd1Smrgfi
15505bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15515bd32fd1Smrgfi
15525bd32fd1Smrgeval ac_res=\$$3
15535bd32fd1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15545bd32fd1Smrg$as_echo "$ac_res" >&6; }
15555bd32fd1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15565bd32fd1Smrg
15575bd32fd1Smrg} # ac_fn_c_check_decl
15585bd32fd1Smrg
15595bd32fd1Smrg# ac_fn_c_try_cpp LINENO
15605bd32fd1Smrg# ----------------------
15615bd32fd1Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15625bd32fd1Smrgac_fn_c_try_cpp ()
15635bd32fd1Smrg{
15645bd32fd1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15655bd32fd1Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15665bd32fd1Smrgcase "(($ac_try" in
15675bd32fd1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685bd32fd1Smrg  *) ac_try_echo=$ac_try;;
15695bd32fd1Smrgesac
15705bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15715bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
15725bd32fd1Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15735bd32fd1Smrg  ac_status=$?
15745bd32fd1Smrg  if test -s conftest.err; then
15755bd32fd1Smrg    grep -v '^ *+' conftest.err >conftest.er1
15765bd32fd1Smrg    cat conftest.er1 >&5
15775bd32fd1Smrg    mv -f conftest.er1 conftest.err
15785bd32fd1Smrg  fi
15795bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15805bd32fd1Smrg  test $ac_status = 0; } > conftest.i && {
15815bd32fd1Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15825bd32fd1Smrg	 test ! -s conftest.err
15835bd32fd1Smrg       }; then :
15845bd32fd1Smrg  ac_retval=0
15855bd32fd1Smrgelse
15865bd32fd1Smrg  $as_echo "$as_me: failed program was:" >&5
15875bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5
15885bd32fd1Smrg
15895bd32fd1Smrg    ac_retval=1
15905bd32fd1Smrgfi
15915bd32fd1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15925bd32fd1Smrg  as_fn_set_status $ac_retval
15935bd32fd1Smrg
15945bd32fd1Smrg} # ac_fn_c_try_cpp
15955bd32fd1Smrg
15965bd32fd1Smrg# ac_fn_c_try_run LINENO
15975bd32fd1Smrg# ----------------------
15985bd32fd1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
15995bd32fd1Smrg# that executables *can* be run.
16005bd32fd1Smrgac_fn_c_try_run ()
16015bd32fd1Smrg{
16025bd32fd1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16035bd32fd1Smrg  if { { ac_try="$ac_link"
16045bd32fd1Smrgcase "(($ac_try" in
16055bd32fd1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065bd32fd1Smrg  *) ac_try_echo=$ac_try;;
16075bd32fd1Smrgesac
16085bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16095bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
16105bd32fd1Smrg  (eval "$ac_link") 2>&5
16115bd32fd1Smrg  ac_status=$?
16125bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16135bd32fd1Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16145bd32fd1Smrg  { { case "(($ac_try" in
16155bd32fd1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165bd32fd1Smrg  *) ac_try_echo=$ac_try;;
16175bd32fd1Smrgesac
16185bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16195bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
16205bd32fd1Smrg  (eval "$ac_try") 2>&5
16215bd32fd1Smrg  ac_status=$?
16225bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16235bd32fd1Smrg  test $ac_status = 0; }; }; then :
16245bd32fd1Smrg  ac_retval=0
16255bd32fd1Smrgelse
16265bd32fd1Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16275bd32fd1Smrg       $as_echo "$as_me: failed program was:" >&5
16285bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5
16295bd32fd1Smrg
16305bd32fd1Smrg       ac_retval=$ac_status
16315bd32fd1Smrgfi
16325bd32fd1Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16335bd32fd1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16345bd32fd1Smrg  as_fn_set_status $ac_retval
16355bd32fd1Smrg
16365bd32fd1Smrg} # ac_fn_c_try_run
16375bd32fd1Smrg
16385bd32fd1Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16395bd32fd1Smrg# -------------------------------------------------------
16405bd32fd1Smrg# Tests whether HEADER exists and can be compiled using the include files in
16415bd32fd1Smrg# INCLUDES, setting the cache variable VAR accordingly.
16425bd32fd1Smrgac_fn_c_check_header_compile ()
16435bd32fd1Smrg{
16445bd32fd1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16455bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16465bd32fd1Smrg$as_echo_n "checking for $2... " >&6; }
16475bd32fd1Smrgif eval \${$3+:} false; then :
16485bd32fd1Smrg  $as_echo_n "(cached) " >&6
16495bd32fd1Smrgelse
16505bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515bd32fd1Smrg/* end confdefs.h.  */
16525bd32fd1Smrg$4
16535bd32fd1Smrg#include <$2>
16545bd32fd1Smrg_ACEOF
16555bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
16565bd32fd1Smrg  eval "$3=yes"
16575bd32fd1Smrgelse
16585bd32fd1Smrg  eval "$3=no"
16595bd32fd1Smrgfi
16605bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615bd32fd1Smrgfi
16625bd32fd1Smrgeval ac_res=\$$3
16635bd32fd1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16645bd32fd1Smrg$as_echo "$ac_res" >&6; }
16655bd32fd1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16665bd32fd1Smrg
16675bd32fd1Smrg} # ac_fn_c_check_header_compile
16685bd32fd1Smrg
16695bd32fd1Smrg# ac_fn_c_try_link LINENO
16705bd32fd1Smrg# -----------------------
16715bd32fd1Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16725bd32fd1Smrgac_fn_c_try_link ()
16735bd32fd1Smrg{
16745bd32fd1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16755bd32fd1Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
16765bd32fd1Smrg  if { { ac_try="$ac_link"
16775bd32fd1Smrgcase "(($ac_try" in
16785bd32fd1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795bd32fd1Smrg  *) ac_try_echo=$ac_try;;
16805bd32fd1Smrgesac
16815bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16825bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
16835bd32fd1Smrg  (eval "$ac_link") 2>conftest.err
16845bd32fd1Smrg  ac_status=$?
16855bd32fd1Smrg  if test -s conftest.err; then
16865bd32fd1Smrg    grep -v '^ *+' conftest.err >conftest.er1
16875bd32fd1Smrg    cat conftest.er1 >&5
16885bd32fd1Smrg    mv -f conftest.er1 conftest.err
16895bd32fd1Smrg  fi
16905bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16915bd32fd1Smrg  test $ac_status = 0; } && {
16925bd32fd1Smrg	 test -z "$ac_c_werror_flag" ||
16935bd32fd1Smrg	 test ! -s conftest.err
16945bd32fd1Smrg       } && test -s conftest$ac_exeext && {
16955bd32fd1Smrg	 test "$cross_compiling" = yes ||
16965bd32fd1Smrg	 $as_test_x conftest$ac_exeext
16975bd32fd1Smrg       }; then :
16985bd32fd1Smrg  ac_retval=0
16995bd32fd1Smrgelse
17005bd32fd1Smrg  $as_echo "$as_me: failed program was:" >&5
17015bd32fd1Smrgsed 's/^/| /' conftest.$ac_ext >&5
17025bd32fd1Smrg
17035bd32fd1Smrg	ac_retval=1
17045bd32fd1Smrgfi
17055bd32fd1Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17065bd32fd1Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17075bd32fd1Smrg  # interfere with the next link command; also delete a directory that is
17085bd32fd1Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17095bd32fd1Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17105bd32fd1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17115bd32fd1Smrg  as_fn_set_status $ac_retval
17125bd32fd1Smrg
17135bd32fd1Smrg} # ac_fn_c_try_link
17145bd32fd1Smrg
17155bd32fd1Smrg# ac_fn_c_check_func LINENO FUNC VAR
17165bd32fd1Smrg# ----------------------------------
17175bd32fd1Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17185bd32fd1Smrgac_fn_c_check_func ()
17195bd32fd1Smrg{
17205bd32fd1Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17215bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17225bd32fd1Smrg$as_echo_n "checking for $2... " >&6; }
17235bd32fd1Smrgif eval \${$3+:} false; then :
17245bd32fd1Smrg  $as_echo_n "(cached) " >&6
17255bd32fd1Smrgelse
17265bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275bd32fd1Smrg/* end confdefs.h.  */
17285bd32fd1Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17295bd32fd1Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17305bd32fd1Smrg#define $2 innocuous_$2
17315bd32fd1Smrg
17325bd32fd1Smrg/* System header to define __stub macros and hopefully few prototypes,
17335bd32fd1Smrg    which can conflict with char $2 (); below.
17345bd32fd1Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17355bd32fd1Smrg    <limits.h> exists even on freestanding compilers.  */
17365bd32fd1Smrg
17375bd32fd1Smrg#ifdef __STDC__
17385bd32fd1Smrg# include <limits.h>
17395bd32fd1Smrg#else
17405bd32fd1Smrg# include <assert.h>
17415bd32fd1Smrg#endif
17425bd32fd1Smrg
17435bd32fd1Smrg#undef $2
17445bd32fd1Smrg
17455bd32fd1Smrg/* Override any GCC internal prototype to avoid an error.
17465bd32fd1Smrg   Use char because int might match the return type of a GCC
17475bd32fd1Smrg   builtin and then its argument prototype would still apply.  */
17485bd32fd1Smrg#ifdef __cplusplus
17495bd32fd1Smrgextern "C"
17505bd32fd1Smrg#endif
17515bd32fd1Smrgchar $2 ();
17525bd32fd1Smrg/* The GNU C library defines this for functions which it implements
17535bd32fd1Smrg    to always fail with ENOSYS.  Some functions are actually named
17545bd32fd1Smrg    something starting with __ and the normal name is an alias.  */
17555bd32fd1Smrg#if defined __stub_$2 || defined __stub___$2
17565bd32fd1Smrgchoke me
17575bd32fd1Smrg#endif
17585bd32fd1Smrg
17595bd32fd1Smrgint
17605bd32fd1Smrgmain ()
17615bd32fd1Smrg{
17625bd32fd1Smrgreturn $2 ();
17635bd32fd1Smrg  ;
17645bd32fd1Smrg  return 0;
17655bd32fd1Smrg}
17665bd32fd1Smrg_ACEOF
17675bd32fd1Smrgif ac_fn_c_try_link "$LINENO"; then :
17685bd32fd1Smrg  eval "$3=yes"
17695bd32fd1Smrgelse
17705bd32fd1Smrg  eval "$3=no"
17715bd32fd1Smrgfi
17725bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext \
17735bd32fd1Smrg    conftest$ac_exeext conftest.$ac_ext
17745bd32fd1Smrgfi
17755bd32fd1Smrgeval ac_res=\$$3
17765bd32fd1Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17775bd32fd1Smrg$as_echo "$ac_res" >&6; }
17785bd32fd1Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17795bd32fd1Smrg
17805bd32fd1Smrg} # ac_fn_c_check_func
17815bd32fd1Smrgcat >config.log <<_ACEOF
17825bd32fd1SmrgThis file contains any messages produced by compilers while
17835bd32fd1Smrgrunning configure, to aid debugging if configure makes a mistake.
17845bd32fd1Smrg
17855bd32fd1SmrgIt was created by xrdb $as_me 1.0.7, which was
17865bd32fd1Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
17875bd32fd1Smrg
17885bd32fd1Smrg  $ $0 $@
17895bd32fd1Smrg
17905bd32fd1Smrg_ACEOF
17915bd32fd1Smrgexec 5>>config.log
17925bd32fd1Smrg{
17935bd32fd1Smrgcat <<_ASUNAME
17945bd32fd1Smrg## --------- ##
17955bd32fd1Smrg## Platform. ##
17965bd32fd1Smrg## --------- ##
17975bd32fd1Smrg
17985bd32fd1Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
17995bd32fd1Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18005bd32fd1Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18015bd32fd1Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18025bd32fd1Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18035bd32fd1Smrg
18045bd32fd1Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18055bd32fd1Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18065bd32fd1Smrg
18075bd32fd1Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18085bd32fd1Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18095bd32fd1Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18105bd32fd1Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18115bd32fd1Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18125bd32fd1Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
18135bd32fd1Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
18145bd32fd1Smrg
18155bd32fd1Smrg_ASUNAME
18165bd32fd1Smrg
18175bd32fd1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185bd32fd1Smrgfor as_dir in $PATH
18198b22bf3fSmrgdo
18208b22bf3fSmrg  IFS=$as_save_IFS
18218b22bf3fSmrg  test -z "$as_dir" && as_dir=.
18225bd32fd1Smrg    $as_echo "PATH: $as_dir"
18235bd32fd1Smrg  done
18248b22bf3fSmrgIFS=$as_save_IFS
18258b22bf3fSmrg
18268b22bf3fSmrg} >&5
18278b22bf3fSmrg
18288b22bf3fSmrgcat >&5 <<_ACEOF
18298b22bf3fSmrg
18308b22bf3fSmrg
18318b22bf3fSmrg## ----------- ##
18328b22bf3fSmrg## Core tests. ##
18338b22bf3fSmrg## ----------- ##
18348b22bf3fSmrg
18358b22bf3fSmrg_ACEOF
18368b22bf3fSmrg
18378b22bf3fSmrg
18388b22bf3fSmrg# Keep a trace of the command line.
18398b22bf3fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
18408b22bf3fSmrg# Strip out --silent because we don't want to record it for future runs.
18418b22bf3fSmrg# Also quote any args containing shell meta-characters.
18428b22bf3fSmrg# Make two passes to allow for proper duplicate-argument suppression.
18438b22bf3fSmrgac_configure_args=
18448b22bf3fSmrgac_configure_args0=
18458b22bf3fSmrgac_configure_args1=
18468b22bf3fSmrgac_must_keep_next=false
18478b22bf3fSmrgfor ac_pass in 1 2
18488b22bf3fSmrgdo
18498b22bf3fSmrg  for ac_arg
18508b22bf3fSmrg  do
18518b22bf3fSmrg    case $ac_arg in
18528b22bf3fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18538b22bf3fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18548b22bf3fSmrg    | -silent | --silent | --silen | --sile | --sil)
18558b22bf3fSmrg      continue ;;
18568b22bf3fSmrg    *\'*)
185796a81b41Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18588b22bf3fSmrg    esac
18598b22bf3fSmrg    case $ac_pass in
18605bd32fd1Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18618b22bf3fSmrg    2)
18625bd32fd1Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18638b22bf3fSmrg      if test $ac_must_keep_next = true; then
18648b22bf3fSmrg	ac_must_keep_next=false # Got value, back to normal.
18658b22bf3fSmrg      else
18668b22bf3fSmrg	case $ac_arg in
18678b22bf3fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
18688b22bf3fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18698b22bf3fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18708b22bf3fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
18718b22bf3fSmrg	    case "$ac_configure_args0 " in
18728b22bf3fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18738b22bf3fSmrg	    esac
18748b22bf3fSmrg	    ;;
18758b22bf3fSmrg	  -* ) ac_must_keep_next=true ;;
18768b22bf3fSmrg	esac
18778b22bf3fSmrg      fi
18785bd32fd1Smrg      as_fn_append ac_configure_args " '$ac_arg'"
18798b22bf3fSmrg      ;;
18808b22bf3fSmrg    esac
18818b22bf3fSmrg  done
18828b22bf3fSmrgdone
18835bd32fd1Smrg{ ac_configure_args0=; unset ac_configure_args0;}
18845bd32fd1Smrg{ ac_configure_args1=; unset ac_configure_args1;}
18858b22bf3fSmrg
18868b22bf3fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
18878b22bf3fSmrg# config.log.  We remove comments because anyway the quotes in there
18888b22bf3fSmrg# would cause problems or look ugly.
18898b22bf3fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
18908b22bf3fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18918b22bf3fSmrgtrap 'exit_status=$?
18928b22bf3fSmrg  # Save into config.log some information that might help in debugging.
18938b22bf3fSmrg  {
18948b22bf3fSmrg    echo
18958b22bf3fSmrg
18965bd32fd1Smrg    $as_echo "## ---------------- ##
18978b22bf3fSmrg## Cache variables. ##
18985bd32fd1Smrg## ---------------- ##"
18998b22bf3fSmrg    echo
19008b22bf3fSmrg    # The following way of writing the cache mishandles newlines in values,
19018b22bf3fSmrg(
19028b22bf3fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
19038b22bf3fSmrg    eval ac_val=\$$ac_var
19048b22bf3fSmrg    case $ac_val in #(
19058b22bf3fSmrg    *${as_nl}*)
19068b22bf3fSmrg      case $ac_var in #(
19075bd32fd1Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
190896a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19098b22bf3fSmrg      esac
19108b22bf3fSmrg      case $ac_var in #(
19118b22bf3fSmrg      _ | IFS | as_nl) ;; #(
191296a81b41Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19135bd32fd1Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
19148b22bf3fSmrg      esac ;;
19158b22bf3fSmrg    esac
19168b22bf3fSmrg  done
19178b22bf3fSmrg  (set) 2>&1 |
19188b22bf3fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
19198b22bf3fSmrg    *${as_nl}ac_space=\ *)
19208b22bf3fSmrg      sed -n \
19218b22bf3fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
19228b22bf3fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
19238b22bf3fSmrg      ;; #(
19248b22bf3fSmrg    *)
19258b22bf3fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19268b22bf3fSmrg      ;;
19278b22bf3fSmrg    esac |
19288b22bf3fSmrg    sort
19298b22bf3fSmrg)
19308b22bf3fSmrg    echo
19318b22bf3fSmrg
19325bd32fd1Smrg    $as_echo "## ----------------- ##
19338b22bf3fSmrg## Output variables. ##
19345bd32fd1Smrg## ----------------- ##"
19358b22bf3fSmrg    echo
19368b22bf3fSmrg    for ac_var in $ac_subst_vars
19378b22bf3fSmrg    do
19388b22bf3fSmrg      eval ac_val=\$$ac_var
19398b22bf3fSmrg      case $ac_val in
194096a81b41Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19418b22bf3fSmrg      esac
194296a81b41Smrg      $as_echo "$ac_var='\''$ac_val'\''"
19438b22bf3fSmrg    done | sort
19448b22bf3fSmrg    echo
19458b22bf3fSmrg
19468b22bf3fSmrg    if test -n "$ac_subst_files"; then
19475bd32fd1Smrg      $as_echo "## ------------------- ##
19488b22bf3fSmrg## File substitutions. ##
19495bd32fd1Smrg## ------------------- ##"
19508b22bf3fSmrg      echo
19518b22bf3fSmrg      for ac_var in $ac_subst_files
19528b22bf3fSmrg      do
19538b22bf3fSmrg	eval ac_val=\$$ac_var
19548b22bf3fSmrg	case $ac_val in
195596a81b41Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
19568b22bf3fSmrg	esac
195796a81b41Smrg	$as_echo "$ac_var='\''$ac_val'\''"
19588b22bf3fSmrg      done | sort
19598b22bf3fSmrg      echo
19608b22bf3fSmrg    fi
19618b22bf3fSmrg
19628b22bf3fSmrg    if test -s confdefs.h; then
19635bd32fd1Smrg      $as_echo "## ----------- ##
19648b22bf3fSmrg## confdefs.h. ##
19655bd32fd1Smrg## ----------- ##"
19668b22bf3fSmrg      echo
19678b22bf3fSmrg      cat confdefs.h
19688b22bf3fSmrg      echo
19698b22bf3fSmrg    fi
19708b22bf3fSmrg    test "$ac_signal" != 0 &&
197196a81b41Smrg      $as_echo "$as_me: caught signal $ac_signal"
197296a81b41Smrg    $as_echo "$as_me: exit $exit_status"
19738b22bf3fSmrg  } >&5
19748b22bf3fSmrg  rm -f core *.core core.conftest.* &&
19758b22bf3fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
19768b22bf3fSmrg    exit $exit_status
19778b22bf3fSmrg' 0
19788b22bf3fSmrgfor ac_signal in 1 2 13 15; do
19795bd32fd1Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
19808b22bf3fSmrgdone
19818b22bf3fSmrgac_signal=0
19828b22bf3fSmrg
19838b22bf3fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
19848b22bf3fSmrgrm -f -r conftest* confdefs.h
19858b22bf3fSmrg
19865bd32fd1Smrg$as_echo "/* confdefs.h */" > confdefs.h
19875bd32fd1Smrg
19888b22bf3fSmrg# Predefined preprocessor variables.
19898b22bf3fSmrg
19908b22bf3fSmrgcat >>confdefs.h <<_ACEOF
19918b22bf3fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
19928b22bf3fSmrg_ACEOF
19938b22bf3fSmrg
19948b22bf3fSmrgcat >>confdefs.h <<_ACEOF
19958b22bf3fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
19968b22bf3fSmrg_ACEOF
19978b22bf3fSmrg
19988b22bf3fSmrgcat >>confdefs.h <<_ACEOF
19998b22bf3fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
20008b22bf3fSmrg_ACEOF
20018b22bf3fSmrg
20028b22bf3fSmrgcat >>confdefs.h <<_ACEOF
20038b22bf3fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
20048b22bf3fSmrg_ACEOF
20058b22bf3fSmrg
20068b22bf3fSmrgcat >>confdefs.h <<_ACEOF
20078b22bf3fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
20088b22bf3fSmrg_ACEOF
20098b22bf3fSmrg
20105bd32fd1Smrgcat >>confdefs.h <<_ACEOF
20115bd32fd1Smrg#define PACKAGE_URL "$PACKAGE_URL"
20125bd32fd1Smrg_ACEOF
20135bd32fd1Smrg
20148b22bf3fSmrg
20158b22bf3fSmrg# Let the site file select an alternate cache file if it wants to.
201696a81b41Smrg# Prefer an explicitly selected file to automatically selected ones.
201796a81b41Smrgac_site_file1=NONE
201896a81b41Smrgac_site_file2=NONE
20198b22bf3fSmrgif test -n "$CONFIG_SITE"; then
20205bd32fd1Smrg  # We do not want a PATH search for config.site.
20215bd32fd1Smrg  case $CONFIG_SITE in #((
20225bd32fd1Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
20235bd32fd1Smrg    */*) ac_site_file1=$CONFIG_SITE;;
20245bd32fd1Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
20255bd32fd1Smrg  esac
20268b22bf3fSmrgelif test "x$prefix" != xNONE; then
202796a81b41Smrg  ac_site_file1=$prefix/share/config.site
202896a81b41Smrg  ac_site_file2=$prefix/etc/config.site
20298b22bf3fSmrgelse
203096a81b41Smrg  ac_site_file1=$ac_default_prefix/share/config.site
203196a81b41Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
20328b22bf3fSmrgfi
203396a81b41Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
20348b22bf3fSmrgdo
203596a81b41Smrg  test "x$ac_site_file" = xNONE && continue
20365bd32fd1Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
20375bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
203896a81b41Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
20398b22bf3fSmrg    sed 's/^/| /' "$ac_site_file" >&5
20405bd32fd1Smrg    . "$ac_site_file" \
20415bd32fd1Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20425bd32fd1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20435bd32fd1Smrgas_fn_error $? "failed to load site script $ac_site_file
20445bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
20458b22bf3fSmrg  fi
20468b22bf3fSmrgdone
20478b22bf3fSmrg
20488b22bf3fSmrgif test -r "$cache_file"; then
20495bd32fd1Smrg  # Some versions of bash will fail to source /dev/null (special files
20505bd32fd1Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
20515bd32fd1Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20525bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
205396a81b41Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
20548b22bf3fSmrg    case $cache_file in
20558b22bf3fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
20568b22bf3fSmrg      *)                      . "./$cache_file";;
20578b22bf3fSmrg    esac
20588b22bf3fSmrg  fi
20598b22bf3fSmrgelse
20605bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
206196a81b41Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
20628b22bf3fSmrg  >$cache_file
20638b22bf3fSmrgfi
20648b22bf3fSmrg
20658b22bf3fSmrg# Check that the precious variables saved in the cache have kept the same
20668b22bf3fSmrg# value.
20678b22bf3fSmrgac_cache_corrupted=false
20688b22bf3fSmrgfor ac_var in $ac_precious_vars; do
20698b22bf3fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
20708b22bf3fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
20718b22bf3fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
20728b22bf3fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
20738b22bf3fSmrg  case $ac_old_set,$ac_new_set in
20748b22bf3fSmrg    set,)
20755bd32fd1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
207696a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
20778b22bf3fSmrg      ac_cache_corrupted=: ;;
20788b22bf3fSmrg    ,set)
20795bd32fd1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
208096a81b41Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
20818b22bf3fSmrg      ac_cache_corrupted=: ;;
20828b22bf3fSmrg    ,);;
20838b22bf3fSmrg    *)
20848b22bf3fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
208596a81b41Smrg	# differences in whitespace do not lead to failure.
208696a81b41Smrg	ac_old_val_w=`echo x $ac_old_val`
208796a81b41Smrg	ac_new_val_w=`echo x $ac_new_val`
208896a81b41Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
20895bd32fd1Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
209096a81b41Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
209196a81b41Smrg	  ac_cache_corrupted=:
209296a81b41Smrg	else
20935bd32fd1Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
209496a81b41Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
209596a81b41Smrg	  eval $ac_var=\$ac_old_val
209696a81b41Smrg	fi
20975bd32fd1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
209896a81b41Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
20995bd32fd1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
210096a81b41Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
21018b22bf3fSmrg      fi;;
21028b22bf3fSmrg  esac
21038b22bf3fSmrg  # Pass precious variables to config.status.
21048b22bf3fSmrg  if test "$ac_new_set" = set; then
21058b22bf3fSmrg    case $ac_new_val in
210696a81b41Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
21078b22bf3fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
21088b22bf3fSmrg    esac
21098b22bf3fSmrg    case " $ac_configure_args " in
21108b22bf3fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
21115bd32fd1Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
21128b22bf3fSmrg    esac
21138b22bf3fSmrg  fi
21148b22bf3fSmrgdone
21158b22bf3fSmrgif $ac_cache_corrupted; then
21165bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
211796a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21185bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
211996a81b41Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
21205bd32fd1Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
21218b22bf3fSmrgfi
21225bd32fd1Smrg## -------------------- ##
21235bd32fd1Smrg## Main body of script. ##
21245bd32fd1Smrg## -------------------- ##
21258b22bf3fSmrg
21268b22bf3fSmrgac_ext=c
21278b22bf3fSmrgac_cpp='$CPP $CPPFLAGS'
21288b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21298b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
21318b22bf3fSmrg
21328b22bf3fSmrg
21335bd32fd1Smrg
21345bd32fd1Smrgac_config_headers="$ac_config_headers config.h"
21355bd32fd1Smrg
21365bd32fd1Smrg
21375bd32fd1Smrg# Initialize Automake
213896a81b41Smrgam__api_version='1.11'
21398b22bf3fSmrg
21408b22bf3fSmrgac_aux_dir=
21418b22bf3fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21428b22bf3fSmrg  if test -f "$ac_dir/install-sh"; then
21438b22bf3fSmrg    ac_aux_dir=$ac_dir
21448b22bf3fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
21458b22bf3fSmrg    break
21468b22bf3fSmrg  elif test -f "$ac_dir/install.sh"; then
21478b22bf3fSmrg    ac_aux_dir=$ac_dir
21488b22bf3fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
21498b22bf3fSmrg    break
21508b22bf3fSmrg  elif test -f "$ac_dir/shtool"; then
21518b22bf3fSmrg    ac_aux_dir=$ac_dir
21528b22bf3fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
21538b22bf3fSmrg    break
21548b22bf3fSmrg  fi
21558b22bf3fSmrgdone
21568b22bf3fSmrgif test -z "$ac_aux_dir"; then
21575bd32fd1Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
21588b22bf3fSmrgfi
21598b22bf3fSmrg
21608b22bf3fSmrg# These three variables are undocumented and unsupported,
21618b22bf3fSmrg# and are intended to be withdrawn in a future Autoconf release.
21628b22bf3fSmrg# They can cause serious problems if a builder's source tree is in a directory
21638b22bf3fSmrg# whose full name contains unusual characters.
21648b22bf3fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
21658b22bf3fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
21668b22bf3fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
21678b22bf3fSmrg
21688b22bf3fSmrg
21698b22bf3fSmrg# Find a good install program.  We prefer a C program (faster),
21708b22bf3fSmrg# so one script is as good as another.  But avoid the broken or
21718b22bf3fSmrg# incompatible versions:
21728b22bf3fSmrg# SysV /etc/install, /usr/sbin/install
21738b22bf3fSmrg# SunOS /usr/etc/install
21748b22bf3fSmrg# IRIX /sbin/install
21758b22bf3fSmrg# AIX /bin/install
21768b22bf3fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
21778b22bf3fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21788b22bf3fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
21798b22bf3fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
21808b22bf3fSmrg# OS/2's system install, which has a completely different semantic
21818b22bf3fSmrg# ./install, which can be erroneously created by make from ./install.sh.
218296a81b41Smrg# Reject install programs that cannot install multiple files.
21835bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
218496a81b41Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
21858b22bf3fSmrgif test -z "$INSTALL"; then
21865bd32fd1Smrgif ${ac_cv_path_install+:} false; then :
218796a81b41Smrg  $as_echo_n "(cached) " >&6
21888b22bf3fSmrgelse
21898b22bf3fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21908b22bf3fSmrgfor as_dir in $PATH
21918b22bf3fSmrgdo
21928b22bf3fSmrg  IFS=$as_save_IFS
21938b22bf3fSmrg  test -z "$as_dir" && as_dir=.
21945bd32fd1Smrg    # Account for people who put trailing slashes in PATH elements.
21955bd32fd1Smrgcase $as_dir/ in #((
21965bd32fd1Smrg  ./ | .// | /[cC]/* | \
21978b22bf3fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21985bd32fd1Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
21998b22bf3fSmrg  /usr/ucb/* ) ;;
22008b22bf3fSmrg  *)
22018b22bf3fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
22028b22bf3fSmrg    # Don't use installbsd from OSF since it installs stuff as root
22038b22bf3fSmrg    # by default.
22048b22bf3fSmrg    for ac_prog in ginstall scoinst install; do
22058b22bf3fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
22068b22bf3fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
22078b22bf3fSmrg	  if test $ac_prog = install &&
22088b22bf3fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22098b22bf3fSmrg	    # AIX install.  It has an incompatible calling convention.
22108b22bf3fSmrg	    :
22118b22bf3fSmrg	  elif test $ac_prog = install &&
22128b22bf3fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22138b22bf3fSmrg	    # program-specific install script used by HP pwplus--don't use.
22148b22bf3fSmrg	    :
22158b22bf3fSmrg	  else
221696a81b41Smrg	    rm -rf conftest.one conftest.two conftest.dir
221796a81b41Smrg	    echo one > conftest.one
221896a81b41Smrg	    echo two > conftest.two
221996a81b41Smrg	    mkdir conftest.dir
222096a81b41Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
222196a81b41Smrg	      test -s conftest.one && test -s conftest.two &&
222296a81b41Smrg	      test -s conftest.dir/conftest.one &&
222396a81b41Smrg	      test -s conftest.dir/conftest.two
222496a81b41Smrg	    then
222596a81b41Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
222696a81b41Smrg	      break 3
222796a81b41Smrg	    fi
22288b22bf3fSmrg	  fi
22298b22bf3fSmrg	fi
22308b22bf3fSmrg      done
22318b22bf3fSmrg    done
22328b22bf3fSmrg    ;;
22338b22bf3fSmrgesac
223496a81b41Smrg
22355bd32fd1Smrg  done
22368b22bf3fSmrgIFS=$as_save_IFS
22378b22bf3fSmrg
223896a81b41Smrgrm -rf conftest.one conftest.two conftest.dir
22398b22bf3fSmrg
22408b22bf3fSmrgfi
22418b22bf3fSmrg  if test "${ac_cv_path_install+set}" = set; then
22428b22bf3fSmrg    INSTALL=$ac_cv_path_install
22438b22bf3fSmrg  else
22448b22bf3fSmrg    # As a last resort, use the slow shell script.  Don't cache a
22458b22bf3fSmrg    # value for INSTALL within a source directory, because that will
22468b22bf3fSmrg    # break other packages using the cache if that directory is
22478b22bf3fSmrg    # removed, or if the value is a relative name.
22488b22bf3fSmrg    INSTALL=$ac_install_sh
22498b22bf3fSmrg  fi
22508b22bf3fSmrgfi
22515bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
225296a81b41Smrg$as_echo "$INSTALL" >&6; }
22538b22bf3fSmrg
22548b22bf3fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22558b22bf3fSmrg# It thinks the first close brace ends the variable substitution.
22568b22bf3fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22578b22bf3fSmrg
22588b22bf3fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22598b22bf3fSmrg
22608b22bf3fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22618b22bf3fSmrg
22625bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
226396a81b41Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
22648b22bf3fSmrg# Just in case
22658b22bf3fSmrgsleep 1
22668b22bf3fSmrgecho timestamp > conftest.file
226796a81b41Smrg# Reject unsafe characters in $srcdir or the absolute working directory
226896a81b41Smrg# name.  Accept space and tab only in the latter.
226996a81b41Smrgam_lf='
227096a81b41Smrg'
227196a81b41Smrgcase `pwd` in
227296a81b41Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
22735bd32fd1Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
227496a81b41Smrgesac
227596a81b41Smrgcase $srcdir in
227696a81b41Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
22775bd32fd1Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
227896a81b41Smrgesac
227996a81b41Smrg
22808b22bf3fSmrg# Do `set' in a subshell so we don't clobber the current shell's
22818b22bf3fSmrg# arguments.  Must try -L first in case configure is actually a
22828b22bf3fSmrg# symlink; some systems play weird games with the mod time of symlinks
22838b22bf3fSmrg# (eg FreeBSD returns the mod time of the symlink's containing
22848b22bf3fSmrg# directory).
22858b22bf3fSmrgif (
228696a81b41Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
22878b22bf3fSmrg   if test "$*" = "X"; then
22888b22bf3fSmrg      # -L didn't work.
228996a81b41Smrg      set X `ls -t "$srcdir/configure" conftest.file`
22908b22bf3fSmrg   fi
22918b22bf3fSmrg   rm -f conftest.file
22928b22bf3fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
22938b22bf3fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
22948b22bf3fSmrg
22958b22bf3fSmrg      # If neither matched, then we have a broken ls.  This can happen
22968b22bf3fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
22978b22bf3fSmrg      # broken ls alias from the environment.  This has actually
22988b22bf3fSmrg      # happened.  Such a system could not be considered "sane".
22995bd32fd1Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
23005bd32fd1Smrgalias in your environment" "$LINENO" 5
23018b22bf3fSmrg   fi
23028b22bf3fSmrg
23038b22bf3fSmrg   test "$2" = conftest.file
23048b22bf3fSmrg   )
23058b22bf3fSmrgthen
23068b22bf3fSmrg   # Ok.
23078b22bf3fSmrg   :
23088b22bf3fSmrgelse
23095bd32fd1Smrg   as_fn_error $? "newly created file is older than distributed files!
23105bd32fd1SmrgCheck your system clock" "$LINENO" 5
23118b22bf3fSmrgfi
23125bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
231396a81b41Smrg$as_echo "yes" >&6; }
23148b22bf3fSmrgtest "$program_prefix" != NONE &&
23158b22bf3fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
23168b22bf3fSmrg# Use a double $ so make ignores it.
23178b22bf3fSmrgtest "$program_suffix" != NONE &&
23188b22bf3fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
231996a81b41Smrg# Double any \ or $.
23208b22bf3fSmrg# By default was `s,x,x', remove it if useless.
232196a81b41Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
232296a81b41Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
23238b22bf3fSmrg
23248b22bf3fSmrg# expand $ac_aux_dir to an absolute path
23258b22bf3fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
23268b22bf3fSmrg
232796a81b41Smrgif test x"${MISSING+set}" != xset; then
232896a81b41Smrg  case $am_aux_dir in
232996a81b41Smrg  *\ * | *\	*)
233096a81b41Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
233196a81b41Smrg  *)
233296a81b41Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
233396a81b41Smrg  esac
233496a81b41Smrgfi
23358b22bf3fSmrg# Use eval to expand $SHELL
23368b22bf3fSmrgif eval "$MISSING --run true"; then
23378b22bf3fSmrg  am_missing_run="$MISSING --run "
23388b22bf3fSmrgelse
23398b22bf3fSmrg  am_missing_run=
23405bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
234196a81b41Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23428b22bf3fSmrgfi
23438b22bf3fSmrg
234496a81b41Smrgif test x"${install_sh}" != xset; then
234596a81b41Smrg  case $am_aux_dir in
234696a81b41Smrg  *\ * | *\	*)
234796a81b41Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
234896a81b41Smrg  *)
234996a81b41Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
235096a81b41Smrg  esac
235196a81b41Smrgfi
235296a81b41Smrg
235396a81b41Smrg# Installed binaries are usually stripped using `strip' when the user
235496a81b41Smrg# run `make install-strip'.  However `strip' might not be the right
235596a81b41Smrg# tool to use in cross-compilation environments, therefore Automake
235696a81b41Smrg# will honor the `STRIP' environment variable to overrule this program.
235796a81b41Smrgif test "$cross_compiling" != no; then
235896a81b41Smrg  if test -n "$ac_tool_prefix"; then
235996a81b41Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
236096a81b41Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
23615bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
236296a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
23635bd32fd1Smrgif ${ac_cv_prog_STRIP+:} false; then :
236496a81b41Smrg  $as_echo_n "(cached) " >&6
236596a81b41Smrgelse
236696a81b41Smrg  if test -n "$STRIP"; then
236796a81b41Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
236896a81b41Smrgelse
236996a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
237096a81b41Smrgfor as_dir in $PATH
237196a81b41Smrgdo
237296a81b41Smrg  IFS=$as_save_IFS
237396a81b41Smrg  test -z "$as_dir" && as_dir=.
23745bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
237596a81b41Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
237696a81b41Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23775bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
237896a81b41Smrg    break 2
237996a81b41Smrg  fi
238096a81b41Smrgdone
23815bd32fd1Smrg  done
238296a81b41SmrgIFS=$as_save_IFS
238396a81b41Smrg
238496a81b41Smrgfi
238596a81b41Smrgfi
238696a81b41SmrgSTRIP=$ac_cv_prog_STRIP
238796a81b41Smrgif test -n "$STRIP"; then
23885bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
238996a81b41Smrg$as_echo "$STRIP" >&6; }
239096a81b41Smrgelse
23915bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
239296a81b41Smrg$as_echo "no" >&6; }
239396a81b41Smrgfi
239496a81b41Smrg
239596a81b41Smrg
239696a81b41Smrgfi
239796a81b41Smrgif test -z "$ac_cv_prog_STRIP"; then
239896a81b41Smrg  ac_ct_STRIP=$STRIP
239996a81b41Smrg  # Extract the first word of "strip", so it can be a program name with args.
240096a81b41Smrgset dummy strip; ac_word=$2
24015bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
240296a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
24035bd32fd1Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
240496a81b41Smrg  $as_echo_n "(cached) " >&6
240596a81b41Smrgelse
240696a81b41Smrg  if test -n "$ac_ct_STRIP"; then
240796a81b41Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
240896a81b41Smrgelse
240996a81b41Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241096a81b41Smrgfor as_dir in $PATH
241196a81b41Smrgdo
241296a81b41Smrg  IFS=$as_save_IFS
241396a81b41Smrg  test -z "$as_dir" && as_dir=.
24145bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
241596a81b41Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
241696a81b41Smrg    ac_cv_prog_ac_ct_STRIP="strip"
24175bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
241896a81b41Smrg    break 2
241996a81b41Smrg  fi
242096a81b41Smrgdone
24215bd32fd1Smrg  done
242296a81b41SmrgIFS=$as_save_IFS
242396a81b41Smrg
242496a81b41Smrgfi
242596a81b41Smrgfi
242696a81b41Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
242796a81b41Smrgif test -n "$ac_ct_STRIP"; then
24285bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
242996a81b41Smrg$as_echo "$ac_ct_STRIP" >&6; }
243096a81b41Smrgelse
24315bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
243296a81b41Smrg$as_echo "no" >&6; }
243396a81b41Smrgfi
243496a81b41Smrg
243596a81b41Smrg  if test "x$ac_ct_STRIP" = x; then
243696a81b41Smrg    STRIP=":"
243796a81b41Smrg  else
243896a81b41Smrg    case $cross_compiling:$ac_tool_warned in
243996a81b41Smrgyes:)
24405bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
244196a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
244296a81b41Smrgac_tool_warned=yes ;;
244396a81b41Smrgesac
244496a81b41Smrg    STRIP=$ac_ct_STRIP
244596a81b41Smrg  fi
244696a81b41Smrgelse
244796a81b41Smrg  STRIP="$ac_cv_prog_STRIP"
244896a81b41Smrgfi
244996a81b41Smrg
245096a81b41Smrgfi
245196a81b41SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
245296a81b41Smrg
24535bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
245496a81b41Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
245596a81b41Smrgif test -z "$MKDIR_P"; then
24565bd32fd1Smrg  if ${ac_cv_path_mkdir+:} false; then :
245796a81b41Smrg  $as_echo_n "(cached) " >&6
245896a81b41Smrgelse
245996a81b41Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
246096a81b41Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
24618b22bf3fSmrgdo
24628b22bf3fSmrg  IFS=$as_save_IFS
24638b22bf3fSmrg  test -z "$as_dir" && as_dir=.
24645bd32fd1Smrg    for ac_prog in mkdir gmkdir; do
24658b22bf3fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
24668b22bf3fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
24678b22bf3fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
24688b22bf3fSmrg	     'mkdir (GNU coreutils) '* | \
24698b22bf3fSmrg	     'mkdir (coreutils) '* | \
24708b22bf3fSmrg	     'mkdir (fileutils) '4.1*)
24718b22bf3fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
24728b22bf3fSmrg	       break 3;;
24738b22bf3fSmrg	   esac
24748b22bf3fSmrg	 done
24758b22bf3fSmrg       done
24765bd32fd1Smrg  done
24778b22bf3fSmrgIFS=$as_save_IFS
24788b22bf3fSmrg
24798b22bf3fSmrgfi
24808b22bf3fSmrg
24815bd32fd1Smrg  test -d ./--version && rmdir ./--version
24828b22bf3fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
24838b22bf3fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
24848b22bf3fSmrg  else
24858b22bf3fSmrg    # As a last resort, use the slow shell script.  Don't cache a
24868b22bf3fSmrg    # value for MKDIR_P within a source directory, because that will
24878b22bf3fSmrg    # break other packages using the cache if that directory is
24888b22bf3fSmrg    # removed, or if the value is a relative name.
24898b22bf3fSmrg    MKDIR_P="$ac_install_sh -d"
24908b22bf3fSmrg  fi
24918b22bf3fSmrgfi
24925bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
249396a81b41Smrg$as_echo "$MKDIR_P" >&6; }
24948b22bf3fSmrg
24958b22bf3fSmrgmkdir_p="$MKDIR_P"
24968b22bf3fSmrgcase $mkdir_p in
24978b22bf3fSmrg  [\\/$]* | ?:[\\/]*) ;;
24988b22bf3fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
24998b22bf3fSmrgesac
25008b22bf3fSmrg
25018b22bf3fSmrgfor ac_prog in gawk mawk nawk awk
25028b22bf3fSmrgdo
25038b22bf3fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
25048b22bf3fSmrgset dummy $ac_prog; ac_word=$2
25055bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
250696a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
25075bd32fd1Smrgif ${ac_cv_prog_AWK+:} false; then :
250896a81b41Smrg  $as_echo_n "(cached) " >&6
25098b22bf3fSmrgelse
25108b22bf3fSmrg  if test -n "$AWK"; then
25118b22bf3fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
25128b22bf3fSmrgelse
25138b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25148b22bf3fSmrgfor as_dir in $PATH
25158b22bf3fSmrgdo
25168b22bf3fSmrg  IFS=$as_save_IFS
25178b22bf3fSmrg  test -z "$as_dir" && as_dir=.
25185bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
25198b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25208b22bf3fSmrg    ac_cv_prog_AWK="$ac_prog"
25215bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25228b22bf3fSmrg    break 2
25238b22bf3fSmrg  fi
25248b22bf3fSmrgdone
25255bd32fd1Smrg  done
25268b22bf3fSmrgIFS=$as_save_IFS
25278b22bf3fSmrg
25288b22bf3fSmrgfi
25298b22bf3fSmrgfi
25308b22bf3fSmrgAWK=$ac_cv_prog_AWK
25318b22bf3fSmrgif test -n "$AWK"; then
25325bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
253396a81b41Smrg$as_echo "$AWK" >&6; }
25348b22bf3fSmrgelse
25355bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
253696a81b41Smrg$as_echo "no" >&6; }
25378b22bf3fSmrgfi
25388b22bf3fSmrg
25398b22bf3fSmrg
25408b22bf3fSmrg  test -n "$AWK" && break
25418b22bf3fSmrgdone
25428b22bf3fSmrg
25435bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
254496a81b41Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
254596a81b41Smrgset x ${MAKE-make}
254696a81b41Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25475bd32fd1Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
254896a81b41Smrg  $as_echo_n "(cached) " >&6
25498b22bf3fSmrgelse
25508b22bf3fSmrg  cat >conftest.make <<\_ACEOF
25518b22bf3fSmrgSHELL = /bin/sh
25528b22bf3fSmrgall:
25538b22bf3fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
25548b22bf3fSmrg_ACEOF
25555bd32fd1Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25568b22bf3fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
25578b22bf3fSmrg  *@@@%%%=?*=@@@%%%*)
25588b22bf3fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
25598b22bf3fSmrg  *)
25608b22bf3fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
25618b22bf3fSmrgesac
25628b22bf3fSmrgrm -f conftest.make
25638b22bf3fSmrgfi
25648b22bf3fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25655bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
256696a81b41Smrg$as_echo "yes" >&6; }
25678b22bf3fSmrg  SET_MAKE=
25688b22bf3fSmrgelse
25695bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
257096a81b41Smrg$as_echo "no" >&6; }
25718b22bf3fSmrg  SET_MAKE="MAKE=${MAKE-make}"
25728b22bf3fSmrgfi
25738b22bf3fSmrg
25748b22bf3fSmrgrm -rf .tst 2>/dev/null
25758b22bf3fSmrgmkdir .tst 2>/dev/null
25768b22bf3fSmrgif test -d .tst; then
25778b22bf3fSmrg  am__leading_dot=.
25788b22bf3fSmrgelse
25798b22bf3fSmrg  am__leading_dot=_
25808b22bf3fSmrgfi
25818b22bf3fSmrgrmdir .tst 2>/dev/null
25828b22bf3fSmrg
25838b22bf3fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
25848b22bf3fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
25858b22bf3fSmrg  # is not polluted with repeated "-I."
25868b22bf3fSmrg  am__isrc=' -I$(srcdir)'
25878b22bf3fSmrg  # test to see if srcdir already configured
25888b22bf3fSmrg  if test -f $srcdir/config.status; then
25895bd32fd1Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
25908b22bf3fSmrg  fi
25918b22bf3fSmrgfi
25928b22bf3fSmrg
25938b22bf3fSmrg# test whether we have cygpath
25948b22bf3fSmrgif test -z "$CYGPATH_W"; then
25958b22bf3fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
25968b22bf3fSmrg    CYGPATH_W='cygpath -w'
25978b22bf3fSmrg  else
25988b22bf3fSmrg    CYGPATH_W=echo
25998b22bf3fSmrg  fi
26008b22bf3fSmrgfi
26018b22bf3fSmrg
26028b22bf3fSmrg
26038b22bf3fSmrg# Define the identity of the package.
26048b22bf3fSmrg PACKAGE='xrdb'
26055bd32fd1Smrg VERSION='1.0.7'
26068b22bf3fSmrg
26078b22bf3fSmrg
26088b22bf3fSmrgcat >>confdefs.h <<_ACEOF
26098b22bf3fSmrg#define PACKAGE "$PACKAGE"
26108b22bf3fSmrg_ACEOF
26118b22bf3fSmrg
26128b22bf3fSmrg
26138b22bf3fSmrgcat >>confdefs.h <<_ACEOF
26148b22bf3fSmrg#define VERSION "$VERSION"
26158b22bf3fSmrg_ACEOF
26168b22bf3fSmrg
26178b22bf3fSmrg# Some tools Automake needs.
26188b22bf3fSmrg
26198b22bf3fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
26208b22bf3fSmrg
26218b22bf3fSmrg
26228b22bf3fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
26238b22bf3fSmrg
26248b22bf3fSmrg
26258b22bf3fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
26268b22bf3fSmrg
26278b22bf3fSmrg
26288b22bf3fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
26298b22bf3fSmrg
26308b22bf3fSmrg
26318b22bf3fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
26328b22bf3fSmrg
26338b22bf3fSmrg# We need awk for the "check" target.  The system "awk" is bad on
26348b22bf3fSmrg# some platforms.
26358b22bf3fSmrg# Always define AMTAR for backward compatibility.
26368b22bf3fSmrg
26378b22bf3fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
26388b22bf3fSmrg
26398b22bf3fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
26408b22bf3fSmrg
26418b22bf3fSmrg
26428b22bf3fSmrg
26438b22bf3fSmrg
26448b22bf3fSmrg
264596a81b41Smrg
26465bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
264796a81b41Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26488b22bf3fSmrg    # Check whether --enable-maintainer-mode was given.
26495bd32fd1Smrgif test "${enable_maintainer_mode+set}" = set; then :
26508b22bf3fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26518b22bf3fSmrgelse
26528b22bf3fSmrg  USE_MAINTAINER_MODE=no
26538b22bf3fSmrgfi
26548b22bf3fSmrg
26555bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
265696a81b41Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
26578b22bf3fSmrg   if test $USE_MAINTAINER_MODE = yes; then
26588b22bf3fSmrg  MAINTAINER_MODE_TRUE=
26598b22bf3fSmrg  MAINTAINER_MODE_FALSE='#'
26608b22bf3fSmrgelse
26618b22bf3fSmrg  MAINTAINER_MODE_TRUE='#'
26628b22bf3fSmrg  MAINTAINER_MODE_FALSE=
26638b22bf3fSmrgfi
26648b22bf3fSmrg
26658b22bf3fSmrg  MAINT=$MAINTAINER_MODE_TRUE
26668b22bf3fSmrg
26678b22bf3fSmrg
26688b22bf3fSmrg
26695bd32fd1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
26708b22bf3fSmrg
267196a81b41Smrg
267296a81b41Smrg
267396a81b41Smrg
267496a81b41Smrg
267596a81b41Smrg
267696a81b41Smrg
267796a81b41Smrg
267896a81b41Smrg
267996a81b41Smrg
268096a81b41Smrg
26815bd32fd1SmrgDEPDIR="${am__leading_dot}deps"
268296a81b41Smrg
26835bd32fd1Smrgac_config_commands="$ac_config_commands depfiles"
268496a81b41Smrg
26855bd32fd1Smrg
26865bd32fd1Smrgam_make=${MAKE-make}
26875bd32fd1Smrgcat > confinc << 'END'
26885bd32fd1Smrgam__doit:
26895bd32fd1Smrg	@echo this is the am__doit target
26905bd32fd1Smrg.PHONY: am__doit
26915bd32fd1SmrgEND
26925bd32fd1Smrg# If we don't find an include directive, just comment out the code.
26935bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
26945bd32fd1Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
26955bd32fd1Smrgam__include="#"
26965bd32fd1Smrgam__quote=
26975bd32fd1Smrg_am_result=none
26985bd32fd1Smrg# First try GNU make style include.
26995bd32fd1Smrgecho "include confinc" > confmf
27005bd32fd1Smrg# Ignore all kinds of additional output from `make'.
27015bd32fd1Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
27025bd32fd1Smrg*the\ am__doit\ target*)
27035bd32fd1Smrg  am__include=include
27045bd32fd1Smrg  am__quote=
27055bd32fd1Smrg  _am_result=GNU
27065bd32fd1Smrg  ;;
27075bd32fd1Smrgesac
27085bd32fd1Smrg# Now try BSD make style include.
27095bd32fd1Smrgif test "$am__include" = "#"; then
27105bd32fd1Smrg   echo '.include "confinc"' > confmf
27115bd32fd1Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
27125bd32fd1Smrg   *the\ am__doit\ target*)
27135bd32fd1Smrg     am__include=.include
27145bd32fd1Smrg     am__quote="\""
27155bd32fd1Smrg     _am_result=BSD
27165bd32fd1Smrg     ;;
27175bd32fd1Smrg   esac
27185bd32fd1Smrgfi
27195bd32fd1Smrg
27205bd32fd1Smrg
27215bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27225bd32fd1Smrg$as_echo "$_am_result" >&6; }
27235bd32fd1Smrgrm -f confinc confmf
27245bd32fd1Smrg
27255bd32fd1Smrg# Check whether --enable-dependency-tracking was given.
27265bd32fd1Smrgif test "${enable_dependency_tracking+set}" = set; then :
27275bd32fd1Smrg  enableval=$enable_dependency_tracking;
27285bd32fd1Smrgfi
27295bd32fd1Smrg
27305bd32fd1Smrgif test "x$enable_dependency_tracking" != xno; then
27315bd32fd1Smrg  am_depcomp="$ac_aux_dir/depcomp"
27325bd32fd1Smrg  AMDEPBACKSLASH='\'
27335bd32fd1Smrgfi
27345bd32fd1Smrg if test "x$enable_dependency_tracking" != xno; then
27355bd32fd1Smrg  AMDEP_TRUE=
27365bd32fd1Smrg  AMDEP_FALSE='#'
27375bd32fd1Smrgelse
27385bd32fd1Smrg  AMDEP_TRUE='#'
27395bd32fd1Smrg  AMDEP_FALSE=
27405bd32fd1Smrgfi
27415bd32fd1Smrg
27425bd32fd1Smrg
27435bd32fd1Smrgac_ext=c
27445bd32fd1Smrgac_cpp='$CPP $CPPFLAGS'
27455bd32fd1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27465bd32fd1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27475bd32fd1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27485bd32fd1Smrgif test -n "$ac_tool_prefix"; then
27495bd32fd1Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27505bd32fd1Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
27515bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27525bd32fd1Smrg$as_echo_n "checking for $ac_word... " >&6; }
27535bd32fd1Smrgif ${ac_cv_prog_CC+:} false; then :
27545bd32fd1Smrg  $as_echo_n "(cached) " >&6
27555bd32fd1Smrgelse
27565bd32fd1Smrg  if test -n "$CC"; then
27575bd32fd1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27585bd32fd1Smrgelse
27595bd32fd1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27605bd32fd1Smrgfor as_dir in $PATH
27615bd32fd1Smrgdo
27625bd32fd1Smrg  IFS=$as_save_IFS
27635bd32fd1Smrg  test -z "$as_dir" && as_dir=.
27645bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27655bd32fd1Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27665bd32fd1Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
27675bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27685bd32fd1Smrg    break 2
27695bd32fd1Smrg  fi
27705bd32fd1Smrgdone
27715bd32fd1Smrg  done
27725bd32fd1SmrgIFS=$as_save_IFS
27738b22bf3fSmrg
27748b22bf3fSmrgfi
27755bd32fd1Smrgfi
27768b22bf3fSmrgCC=$ac_cv_prog_CC
27778b22bf3fSmrgif test -n "$CC"; then
27785bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
277996a81b41Smrg$as_echo "$CC" >&6; }
27808b22bf3fSmrgelse
27815bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
278296a81b41Smrg$as_echo "no" >&6; }
27838b22bf3fSmrgfi
27848b22bf3fSmrg
27858b22bf3fSmrg
27868b22bf3fSmrgfi
27878b22bf3fSmrgif test -z "$ac_cv_prog_CC"; then
27888b22bf3fSmrg  ac_ct_CC=$CC
27898b22bf3fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
27908b22bf3fSmrgset dummy gcc; ac_word=$2
27915bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
279296a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
27935bd32fd1Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
279496a81b41Smrg  $as_echo_n "(cached) " >&6
27958b22bf3fSmrgelse
27968b22bf3fSmrg  if test -n "$ac_ct_CC"; then
27978b22bf3fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27988b22bf3fSmrgelse
27998b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28008b22bf3fSmrgfor as_dir in $PATH
28018b22bf3fSmrgdo
28028b22bf3fSmrg  IFS=$as_save_IFS
28038b22bf3fSmrg  test -z "$as_dir" && as_dir=.
28045bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28058b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28068b22bf3fSmrg    ac_cv_prog_ac_ct_CC="gcc"
28075bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28088b22bf3fSmrg    break 2
28098b22bf3fSmrg  fi
28108b22bf3fSmrgdone
28115bd32fd1Smrg  done
28128b22bf3fSmrgIFS=$as_save_IFS
28138b22bf3fSmrg
28148b22bf3fSmrgfi
28158b22bf3fSmrgfi
28168b22bf3fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
28178b22bf3fSmrgif test -n "$ac_ct_CC"; then
28185bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
281996a81b41Smrg$as_echo "$ac_ct_CC" >&6; }
28208b22bf3fSmrgelse
28215bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
282296a81b41Smrg$as_echo "no" >&6; }
28238b22bf3fSmrgfi
28248b22bf3fSmrg
28258b22bf3fSmrg  if test "x$ac_ct_CC" = x; then
28268b22bf3fSmrg    CC=""
28278b22bf3fSmrg  else
28288b22bf3fSmrg    case $cross_compiling:$ac_tool_warned in
28298b22bf3fSmrgyes:)
28305bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
283196a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28328b22bf3fSmrgac_tool_warned=yes ;;
28338b22bf3fSmrgesac
28348b22bf3fSmrg    CC=$ac_ct_CC
28358b22bf3fSmrg  fi
28368b22bf3fSmrgelse
28378b22bf3fSmrg  CC="$ac_cv_prog_CC"
28388b22bf3fSmrgfi
28398b22bf3fSmrg
28408b22bf3fSmrgif test -z "$CC"; then
28418b22bf3fSmrg          if test -n "$ac_tool_prefix"; then
28428b22bf3fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
28438b22bf3fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
28445bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
284596a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
28465bd32fd1Smrgif ${ac_cv_prog_CC+:} false; then :
284796a81b41Smrg  $as_echo_n "(cached) " >&6
28488b22bf3fSmrgelse
28498b22bf3fSmrg  if test -n "$CC"; then
28508b22bf3fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28518b22bf3fSmrgelse
28528b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28538b22bf3fSmrgfor as_dir in $PATH
28548b22bf3fSmrgdo
28558b22bf3fSmrg  IFS=$as_save_IFS
28568b22bf3fSmrg  test -z "$as_dir" && as_dir=.
28575bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28588b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28598b22bf3fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
28605bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28618b22bf3fSmrg    break 2
28628b22bf3fSmrg  fi
28638b22bf3fSmrgdone
28645bd32fd1Smrg  done
28658b22bf3fSmrgIFS=$as_save_IFS
28668b22bf3fSmrg
28678b22bf3fSmrgfi
28688b22bf3fSmrgfi
28698b22bf3fSmrgCC=$ac_cv_prog_CC
28708b22bf3fSmrgif test -n "$CC"; then
28715bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
287296a81b41Smrg$as_echo "$CC" >&6; }
28738b22bf3fSmrgelse
28745bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
287596a81b41Smrg$as_echo "no" >&6; }
28768b22bf3fSmrgfi
28778b22bf3fSmrg
28788b22bf3fSmrg
28798b22bf3fSmrg  fi
28808b22bf3fSmrgfi
28818b22bf3fSmrgif test -z "$CC"; then
28828b22bf3fSmrg  # Extract the first word of "cc", so it can be a program name with args.
28838b22bf3fSmrgset dummy cc; ac_word=$2
28845bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
288596a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
28865bd32fd1Smrgif ${ac_cv_prog_CC+:} false; then :
288796a81b41Smrg  $as_echo_n "(cached) " >&6
28888b22bf3fSmrgelse
28898b22bf3fSmrg  if test -n "$CC"; then
28908b22bf3fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
28918b22bf3fSmrgelse
28928b22bf3fSmrg  ac_prog_rejected=no
28938b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28948b22bf3fSmrgfor as_dir in $PATH
28958b22bf3fSmrgdo
28968b22bf3fSmrg  IFS=$as_save_IFS
28978b22bf3fSmrg  test -z "$as_dir" && as_dir=.
28985bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28998b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29008b22bf3fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
29018b22bf3fSmrg       ac_prog_rejected=yes
29028b22bf3fSmrg       continue
29038b22bf3fSmrg     fi
29048b22bf3fSmrg    ac_cv_prog_CC="cc"
29055bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29068b22bf3fSmrg    break 2
29078b22bf3fSmrg  fi
29088b22bf3fSmrgdone
29095bd32fd1Smrg  done
29108b22bf3fSmrgIFS=$as_save_IFS
29118b22bf3fSmrg
29128b22bf3fSmrgif test $ac_prog_rejected = yes; then
29138b22bf3fSmrg  # We found a bogon in the path, so make sure we never use it.
29148b22bf3fSmrg  set dummy $ac_cv_prog_CC
29158b22bf3fSmrg  shift
29168b22bf3fSmrg  if test $# != 0; then
29178b22bf3fSmrg    # We chose a different compiler from the bogus one.
29188b22bf3fSmrg    # However, it has the same basename, so the bogon will be chosen
29198b22bf3fSmrg    # first if we set CC to just the basename; use the full file name.
29208b22bf3fSmrg    shift
29218b22bf3fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
29228b22bf3fSmrg  fi
29238b22bf3fSmrgfi
29248b22bf3fSmrgfi
29258b22bf3fSmrgfi
29268b22bf3fSmrgCC=$ac_cv_prog_CC
29278b22bf3fSmrgif test -n "$CC"; then
29285bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
292996a81b41Smrg$as_echo "$CC" >&6; }
29308b22bf3fSmrgelse
29315bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
293296a81b41Smrg$as_echo "no" >&6; }
29338b22bf3fSmrgfi
29348b22bf3fSmrg
29358b22bf3fSmrg
29368b22bf3fSmrgfi
29378b22bf3fSmrgif test -z "$CC"; then
29388b22bf3fSmrg  if test -n "$ac_tool_prefix"; then
29398b22bf3fSmrg  for ac_prog in cl.exe
29408b22bf3fSmrg  do
29418b22bf3fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29428b22bf3fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
29435bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
294496a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
29455bd32fd1Smrgif ${ac_cv_prog_CC+:} false; then :
294696a81b41Smrg  $as_echo_n "(cached) " >&6
29478b22bf3fSmrgelse
29488b22bf3fSmrg  if test -n "$CC"; then
29498b22bf3fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29508b22bf3fSmrgelse
29518b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29528b22bf3fSmrgfor as_dir in $PATH
29538b22bf3fSmrgdo
29548b22bf3fSmrg  IFS=$as_save_IFS
29558b22bf3fSmrg  test -z "$as_dir" && as_dir=.
29565bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
29578b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29588b22bf3fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29595bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29608b22bf3fSmrg    break 2
29618b22bf3fSmrg  fi
29628b22bf3fSmrgdone
29635bd32fd1Smrg  done
29648b22bf3fSmrgIFS=$as_save_IFS
29658b22bf3fSmrg
29668b22bf3fSmrgfi
29678b22bf3fSmrgfi
29688b22bf3fSmrgCC=$ac_cv_prog_CC
29698b22bf3fSmrgif test -n "$CC"; then
29705bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
297196a81b41Smrg$as_echo "$CC" >&6; }
29728b22bf3fSmrgelse
29735bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
297496a81b41Smrg$as_echo "no" >&6; }
29758b22bf3fSmrgfi
29768b22bf3fSmrg
29778b22bf3fSmrg
29788b22bf3fSmrg    test -n "$CC" && break
29798b22bf3fSmrg  done
29808b22bf3fSmrgfi
29818b22bf3fSmrgif test -z "$CC"; then
29828b22bf3fSmrg  ac_ct_CC=$CC
29838b22bf3fSmrg  for ac_prog in cl.exe
29848b22bf3fSmrgdo
29858b22bf3fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
29868b22bf3fSmrgset dummy $ac_prog; ac_word=$2
29875bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
298896a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
29895bd32fd1Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
299096a81b41Smrg  $as_echo_n "(cached) " >&6
29918b22bf3fSmrgelse
29928b22bf3fSmrg  if test -n "$ac_ct_CC"; then
29938b22bf3fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
29948b22bf3fSmrgelse
29958b22bf3fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29968b22bf3fSmrgfor as_dir in $PATH
29978b22bf3fSmrgdo
29988b22bf3fSmrg  IFS=$as_save_IFS
29998b22bf3fSmrg  test -z "$as_dir" && as_dir=.
30005bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30018b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30028b22bf3fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
30035bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30048b22bf3fSmrg    break 2
30058b22bf3fSmrg  fi
30068b22bf3fSmrgdone
30075bd32fd1Smrg  done
30088b22bf3fSmrgIFS=$as_save_IFS
30098b22bf3fSmrg
30108b22bf3fSmrgfi
30118b22bf3fSmrgfi
30128b22bf3fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30138b22bf3fSmrgif test -n "$ac_ct_CC"; then
30145bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
301596a81b41Smrg$as_echo "$ac_ct_CC" >&6; }
30168b22bf3fSmrgelse
30175bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
301896a81b41Smrg$as_echo "no" >&6; }
30198b22bf3fSmrgfi
30208b22bf3fSmrg
30218b22bf3fSmrg
30228b22bf3fSmrg  test -n "$ac_ct_CC" && break
30238b22bf3fSmrgdone
30248b22bf3fSmrg
30258b22bf3fSmrg  if test "x$ac_ct_CC" = x; then
30268b22bf3fSmrg    CC=""
30278b22bf3fSmrg  else
30288b22bf3fSmrg    case $cross_compiling:$ac_tool_warned in
30298b22bf3fSmrgyes:)
30305bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
303196a81b41Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30328b22bf3fSmrgac_tool_warned=yes ;;
30338b22bf3fSmrgesac
30348b22bf3fSmrg    CC=$ac_ct_CC
30358b22bf3fSmrg  fi
30368b22bf3fSmrgfi
30378b22bf3fSmrg
30388b22bf3fSmrgfi
30398b22bf3fSmrg
30408b22bf3fSmrg
30415bd32fd1Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
304296a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30435bd32fd1Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
30445bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
30458b22bf3fSmrg
30468b22bf3fSmrg# Provide some information about the compiler.
30475bd32fd1Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
304896a81b41Smrgset X $ac_compile
304996a81b41Smrgac_compiler=$2
30505bd32fd1Smrgfor ac_option in --version -v -V -qversion; do
30515bd32fd1Smrg  { { ac_try="$ac_compiler $ac_option >&5"
30528b22bf3fSmrgcase "(($ac_try" in
30538b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30548b22bf3fSmrg  *) ac_try_echo=$ac_try;;
30558b22bf3fSmrgesac
30565bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30575bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
30585bd32fd1Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
30598b22bf3fSmrg  ac_status=$?
30605bd32fd1Smrg  if test -s conftest.err; then
30615bd32fd1Smrg    sed '10a\
30625bd32fd1Smrg... rest of stderr output deleted ...
30635bd32fd1Smrg         10q' conftest.err >conftest.er1
30645bd32fd1Smrg    cat conftest.er1 >&5
30655bd32fd1Smrg  fi
30665bd32fd1Smrg  rm -f conftest.er1 conftest.err
30675bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30685bd32fd1Smrg  test $ac_status = 0; }
30695bd32fd1Smrgdone
30708b22bf3fSmrg
30715bd32fd1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
30728b22bf3fSmrg/* end confdefs.h.  */
30738b22bf3fSmrg
30748b22bf3fSmrgint
30758b22bf3fSmrgmain ()
30768b22bf3fSmrg{
30778b22bf3fSmrg
30788b22bf3fSmrg  ;
30798b22bf3fSmrg  return 0;
30808b22bf3fSmrg}
30818b22bf3fSmrg_ACEOF
30828b22bf3fSmrgac_clean_files_save=$ac_clean_files
308396a81b41Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
30848b22bf3fSmrg# Try to create an executable without -o first, disregard a.out.
30858b22bf3fSmrg# It will help us diagnose broken compilers, and finding out an intuition
30868b22bf3fSmrg# of exeext.
30875bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
30885bd32fd1Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
308996a81b41Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
309096a81b41Smrg
309196a81b41Smrg# The possible output files:
309296a81b41Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
309396a81b41Smrg
30948b22bf3fSmrgac_rmfiles=
30958b22bf3fSmrgfor ac_file in $ac_files
30968b22bf3fSmrgdo
30978b22bf3fSmrg  case $ac_file in
309896a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
30998b22bf3fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
31008b22bf3fSmrg  esac
31018b22bf3fSmrgdone
31028b22bf3fSmrgrm -f $ac_rmfiles
31038b22bf3fSmrg
31045bd32fd1Smrgif { { ac_try="$ac_link_default"
31058b22bf3fSmrgcase "(($ac_try" in
31068b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31078b22bf3fSmrg  *) ac_try_echo=$ac_try;;
31088b22bf3fSmrgesac
31095bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31105bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
31118b22bf3fSmrg  (eval "$ac_link_default") 2>&5
31128b22bf3fSmrg  ac_status=$?
31135bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31145bd32fd1Smrg  test $ac_status = 0; }; then :
31158b22bf3fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
31168b22bf3fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
31178b22bf3fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
31188b22bf3fSmrg# so that the user can short-circuit this test for compilers unknown to
31198b22bf3fSmrg# Autoconf.
31208b22bf3fSmrgfor ac_file in $ac_files ''
31218b22bf3fSmrgdo
31228b22bf3fSmrg  test -f "$ac_file" || continue
31238b22bf3fSmrg  case $ac_file in
312496a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
31258b22bf3fSmrg	;;
31268b22bf3fSmrg    [ab].out )
31278b22bf3fSmrg	# We found the default executable, but exeext='' is most
31288b22bf3fSmrg	# certainly right.
31298b22bf3fSmrg	break;;
31308b22bf3fSmrg    *.* )
31315bd32fd1Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
31328b22bf3fSmrg	then :; else
31338b22bf3fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31348b22bf3fSmrg	fi
31358b22bf3fSmrg	# We set ac_cv_exeext here because the later test for it is not
31368b22bf3fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
31378b22bf3fSmrg	# argument, so we may need to know it at that point already.
31388b22bf3fSmrg	# Even if this section looks crufty: it has the advantage of
31398b22bf3fSmrg	# actually working.
31408b22bf3fSmrg	break;;
31418b22bf3fSmrg    * )
31428b22bf3fSmrg	break;;
31438b22bf3fSmrg  esac
31448b22bf3fSmrgdone
31458b22bf3fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
31468b22bf3fSmrg
31478b22bf3fSmrgelse
31488b22bf3fSmrg  ac_file=''
31498b22bf3fSmrgfi
31505bd32fd1Smrgif test -z "$ac_file"; then :
31515bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31525bd32fd1Smrg$as_echo "no" >&6; }
31535bd32fd1Smrg$as_echo "$as_me: failed program was:" >&5
31548b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
31558b22bf3fSmrg
31565bd32fd1Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
315796a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31585bd32fd1Smrgas_fn_error 77 "C compiler cannot create executables
31595bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
31605bd32fd1Smrgelse
31615bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31625bd32fd1Smrg$as_echo "yes" >&6; }
31638b22bf3fSmrgfi
31645bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
31655bd32fd1Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
31665bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
31675bd32fd1Smrg$as_echo "$ac_file" >&6; }
31688b22bf3fSmrgac_exeext=$ac_cv_exeext
31698b22bf3fSmrg
317096a81b41Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
31718b22bf3fSmrgac_clean_files=$ac_clean_files_save
31725bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
317396a81b41Smrg$as_echo_n "checking for suffix of executables... " >&6; }
31745bd32fd1Smrgif { { ac_try="$ac_link"
31758b22bf3fSmrgcase "(($ac_try" in
31768b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778b22bf3fSmrg  *) ac_try_echo=$ac_try;;
31788b22bf3fSmrgesac
31795bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31805bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
31818b22bf3fSmrg  (eval "$ac_link") 2>&5
31828b22bf3fSmrg  ac_status=$?
31835bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31845bd32fd1Smrg  test $ac_status = 0; }; then :
31858b22bf3fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
31868b22bf3fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
31878b22bf3fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
31888b22bf3fSmrg# `rm'.
31898b22bf3fSmrgfor ac_file in conftest.exe conftest conftest.*; do
31908b22bf3fSmrg  test -f "$ac_file" || continue
31918b22bf3fSmrg  case $ac_file in
319296a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31938b22bf3fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
31948b22bf3fSmrg	  break;;
31958b22bf3fSmrg    * ) break;;
31968b22bf3fSmrg  esac
31978b22bf3fSmrgdone
31988b22bf3fSmrgelse
31995bd32fd1Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
320096a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32015bd32fd1Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
32025bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
32038b22bf3fSmrgfi
32045bd32fd1Smrgrm -f conftest conftest$ac_cv_exeext
32055bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
320696a81b41Smrg$as_echo "$ac_cv_exeext" >&6; }
32078b22bf3fSmrg
32088b22bf3fSmrgrm -f conftest.$ac_ext
32098b22bf3fSmrgEXEEXT=$ac_cv_exeext
32108b22bf3fSmrgac_exeext=$EXEEXT
32115bd32fd1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32125bd32fd1Smrg/* end confdefs.h.  */
32135bd32fd1Smrg#include <stdio.h>
32145bd32fd1Smrgint
32155bd32fd1Smrgmain ()
32165bd32fd1Smrg{
32175bd32fd1SmrgFILE *f = fopen ("conftest.out", "w");
32185bd32fd1Smrg return ferror (f) || fclose (f) != 0;
32195bd32fd1Smrg
32205bd32fd1Smrg  ;
32215bd32fd1Smrg  return 0;
32225bd32fd1Smrg}
32235bd32fd1Smrg_ACEOF
32245bd32fd1Smrgac_clean_files="$ac_clean_files conftest.out"
32255bd32fd1Smrg# Check that the compiler produces executables we can run.  If not, either
32265bd32fd1Smrg# the compiler is broken, or we cross compile.
32275bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32285bd32fd1Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
32295bd32fd1Smrgif test "$cross_compiling" != yes; then
32305bd32fd1Smrg  { { ac_try="$ac_link"
32315bd32fd1Smrgcase "(($ac_try" in
32325bd32fd1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335bd32fd1Smrg  *) ac_try_echo=$ac_try;;
32345bd32fd1Smrgesac
32355bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32365bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
32375bd32fd1Smrg  (eval "$ac_link") 2>&5
32385bd32fd1Smrg  ac_status=$?
32395bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32405bd32fd1Smrg  test $ac_status = 0; }
32415bd32fd1Smrg  if { ac_try='./conftest$ac_cv_exeext'
32425bd32fd1Smrg  { { case "(($ac_try" in
32435bd32fd1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445bd32fd1Smrg  *) ac_try_echo=$ac_try;;
32455bd32fd1Smrgesac
32465bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32475bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
32485bd32fd1Smrg  (eval "$ac_try") 2>&5
32495bd32fd1Smrg  ac_status=$?
32505bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32515bd32fd1Smrg  test $ac_status = 0; }; }; then
32525bd32fd1Smrg    cross_compiling=no
32535bd32fd1Smrg  else
32545bd32fd1Smrg    if test "$cross_compiling" = maybe; then
32555bd32fd1Smrg	cross_compiling=yes
32565bd32fd1Smrg    else
32575bd32fd1Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32585bd32fd1Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32595bd32fd1Smrgas_fn_error $? "cannot run C compiled programs.
32605bd32fd1SmrgIf you meant to cross compile, use \`--host'.
32615bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
32625bd32fd1Smrg    fi
32635bd32fd1Smrg  fi
32645bd32fd1Smrgfi
32655bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
32665bd32fd1Smrg$as_echo "$cross_compiling" >&6; }
32675bd32fd1Smrg
32685bd32fd1Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
32695bd32fd1Smrgac_clean_files=$ac_clean_files_save
32705bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
327196a81b41Smrg$as_echo_n "checking for suffix of object files... " >&6; }
32725bd32fd1Smrgif ${ac_cv_objext+:} false; then :
327396a81b41Smrg  $as_echo_n "(cached) " >&6
32748b22bf3fSmrgelse
32755bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32768b22bf3fSmrg/* end confdefs.h.  */
32778b22bf3fSmrg
32788b22bf3fSmrgint
32798b22bf3fSmrgmain ()
32808b22bf3fSmrg{
32818b22bf3fSmrg
32828b22bf3fSmrg  ;
32838b22bf3fSmrg  return 0;
32848b22bf3fSmrg}
32858b22bf3fSmrg_ACEOF
32868b22bf3fSmrgrm -f conftest.o conftest.obj
32875bd32fd1Smrgif { { ac_try="$ac_compile"
32888b22bf3fSmrgcase "(($ac_try" in
32898b22bf3fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32908b22bf3fSmrg  *) ac_try_echo=$ac_try;;
32918b22bf3fSmrgesac
32925bd32fd1Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32935bd32fd1Smrg$as_echo "$ac_try_echo"; } >&5
32948b22bf3fSmrg  (eval "$ac_compile") 2>&5
32958b22bf3fSmrg  ac_status=$?
32965bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32975bd32fd1Smrg  test $ac_status = 0; }; then :
32988b22bf3fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
32998b22bf3fSmrg  test -f "$ac_file" || continue;
33008b22bf3fSmrg  case $ac_file in
330196a81b41Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
33028b22bf3fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
33038b22bf3fSmrg       break;;
33048b22bf3fSmrg  esac
33058b22bf3fSmrgdone
33068b22bf3fSmrgelse
330796a81b41Smrg  $as_echo "$as_me: failed program was:" >&5
33088b22bf3fSmrgsed 's/^/| /' conftest.$ac_ext >&5
33098b22bf3fSmrg
33105bd32fd1Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
331196a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33125bd32fd1Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
33135bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
33148b22bf3fSmrgfi
33158b22bf3fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
33168b22bf3fSmrgfi
33175bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
331896a81b41Smrg$as_echo "$ac_cv_objext" >&6; }
33198b22bf3fSmrgOBJEXT=$ac_cv_objext
33208b22bf3fSmrgac_objext=$OBJEXT
33215bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
332296a81b41Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
33235bd32fd1Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
332496a81b41Smrg  $as_echo_n "(cached) " >&6
33258b22bf3fSmrgelse
33265bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33278b22bf3fSmrg/* end confdefs.h.  */
33288b22bf3fSmrg
33298b22bf3fSmrgint
33308b22bf3fSmrgmain ()
33318b22bf3fSmrg{
33328b22bf3fSmrg#ifndef __GNUC__
33338b22bf3fSmrg       choke me
33348b22bf3fSmrg#endif
33358b22bf3fSmrg
33368b22bf3fSmrg  ;
33378b22bf3fSmrg  return 0;
33388b22bf3fSmrg}
33398b22bf3fSmrg_ACEOF
33405bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
33418b22bf3fSmrg  ac_compiler_gnu=yes
33428b22bf3fSmrgelse
33435bd32fd1Smrg  ac_compiler_gnu=no
33448b22bf3fSmrgfi
33458b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33468b22bf3fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
33478b22bf3fSmrg
33488b22bf3fSmrgfi
33495bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
335096a81b41Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
335196a81b41Smrgif test $ac_compiler_gnu = yes; then
335296a81b41Smrg  GCC=yes
335396a81b41Smrgelse
335496a81b41Smrg  GCC=
335596a81b41Smrgfi
33568b22bf3fSmrgac_test_CFLAGS=${CFLAGS+set}
33578b22bf3fSmrgac_save_CFLAGS=$CFLAGS
33585bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
335996a81b41Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
33605bd32fd1Smrgif ${ac_cv_prog_cc_g+:} false; then :
336196a81b41Smrg  $as_echo_n "(cached) " >&6
33628b22bf3fSmrgelse
33638b22bf3fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
33648b22bf3fSmrg   ac_c_werror_flag=yes
33658b22bf3fSmrg   ac_cv_prog_cc_g=no
33668b22bf3fSmrg   CFLAGS="-g"
33675bd32fd1Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33688b22bf3fSmrg/* end confdefs.h.  */
33698b22bf3fSmrg
33708b22bf3fSmrgint
33718b22bf3fSmrgmain ()
33728b22bf3fSmrg{
33738b22bf3fSmrg
33748b22bf3fSmrg  ;
33758b22bf3fSmrg  return 0;
33768b22bf3fSmrg}
33778b22bf3fSmrg_ACEOF
33785bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
33798b22bf3fSmrg  ac_cv_prog_cc_g=yes
33808b22bf3fSmrgelse
33815bd32fd1Smrg  CFLAGS=""
33825bd32fd1Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33838b22bf3fSmrg/* end confdefs.h.  */
33848b22bf3fSmrg
33858b22bf3fSmrgint
33868b22bf3fSmrgmain ()
33878b22bf3fSmrg{
33888b22bf3fSmrg
33898b22bf3fSmrg  ;
33908b22bf3fSmrg  return 0;
33918b22bf3fSmrg}
33928b22bf3fSmrg_ACEOF
33935bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
33948b22bf3fSmrg
33955bd32fd1Smrgelse
33965bd32fd1Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
33978b22bf3fSmrg	 CFLAGS="-g"
33985bd32fd1Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33998b22bf3fSmrg/* end confdefs.h.  */
34008b22bf3fSmrg
34018b22bf3fSmrgint
34028b22bf3fSmrgmain ()
34038b22bf3fSmrg{
34048b22bf3fSmrg
34058b22bf3fSmrg  ;
34068b22bf3fSmrg  return 0;
34078b22bf3fSmrg}
34088b22bf3fSmrg_ACEOF
34095bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
34108b22bf3fSmrg  ac_cv_prog_cc_g=yes
34118b22bf3fSmrgfi
34128b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34138b22bf3fSmrgfi
34148b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34158b22bf3fSmrgfi
34168b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34178b22bf3fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
34188b22bf3fSmrgfi
34195bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
342096a81b41Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
34218b22bf3fSmrgif test "$ac_test_CFLAGS" = set; then
34228b22bf3fSmrg  CFLAGS=$ac_save_CFLAGS
34238b22bf3fSmrgelif test $ac_cv_prog_cc_g = yes; then
34248b22bf3fSmrg  if test "$GCC" = yes; then
34258b22bf3fSmrg    CFLAGS="-g -O2"
34268b22bf3fSmrg  else
34278b22bf3fSmrg    CFLAGS="-g"
34288b22bf3fSmrg  fi
34298b22bf3fSmrgelse
34308b22bf3fSmrg  if test "$GCC" = yes; then
34318b22bf3fSmrg    CFLAGS="-O2"
34328b22bf3fSmrg  else
34338b22bf3fSmrg    CFLAGS=
34348b22bf3fSmrg  fi
34358b22bf3fSmrgfi
34365bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
343796a81b41Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
34385bd32fd1Smrgif ${ac_cv_prog_cc_c89+:} false; then :
343996a81b41Smrg  $as_echo_n "(cached) " >&6
34408b22bf3fSmrgelse
34418b22bf3fSmrg  ac_cv_prog_cc_c89=no
34428b22bf3fSmrgac_save_CC=$CC
34435bd32fd1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34448b22bf3fSmrg/* end confdefs.h.  */
34458b22bf3fSmrg#include <stdarg.h>
34468b22bf3fSmrg#include <stdio.h>
34478b22bf3fSmrg#include <sys/types.h>
34488b22bf3fSmrg#include <sys/stat.h>
34498b22bf3fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
34508b22bf3fSmrgstruct buf { int x; };
34518b22bf3fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
34528b22bf3fSmrgstatic char *e (p, i)
34538b22bf3fSmrg     char **p;
34548b22bf3fSmrg     int i;
34558b22bf3fSmrg{
34568b22bf3fSmrg  return p[i];
34578b22bf3fSmrg}
34588b22bf3fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
34598b22bf3fSmrg{
34608b22bf3fSmrg  char *s;
34618b22bf3fSmrg  va_list v;
34628b22bf3fSmrg  va_start (v,p);
34638b22bf3fSmrg  s = g (p, va_arg (v,int));
34648b22bf3fSmrg  va_end (v);
34658b22bf3fSmrg  return s;
34668b22bf3fSmrg}
34678b22bf3fSmrg
34688b22bf3fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
34698b22bf3fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
34708b22bf3fSmrg   These don't provoke an error unfortunately, instead are silently treated
34718b22bf3fSmrg   as 'x'.  The following induces an error, until -std is added to get
34728b22bf3fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
34738b22bf3fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
34748b22bf3fSmrg   that's true only with -std.  */
34758b22bf3fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
34768b22bf3fSmrg
34778b22bf3fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
34788b22bf3fSmrg   inside strings and character constants.  */
34798b22bf3fSmrg#define FOO(x) 'x'
34808b22bf3fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
34818b22bf3fSmrg
34828b22bf3fSmrgint test (int i, double x);
34838b22bf3fSmrgstruct s1 {int (*f) (int a);};
34848b22bf3fSmrgstruct s2 {int (*f) (double a);};
34858b22bf3fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
34868b22bf3fSmrgint argc;
34878b22bf3fSmrgchar **argv;
34888b22bf3fSmrgint
34898b22bf3fSmrgmain ()
34908b22bf3fSmrg{
34918b22bf3fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
34928b22bf3fSmrg  ;
34938b22bf3fSmrg  return 0;
34948b22bf3fSmrg}
34958b22bf3fSmrg_ACEOF
34968b22bf3fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
34978b22bf3fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
34988b22bf3fSmrgdo
34998b22bf3fSmrg  CC="$ac_save_CC $ac_arg"
35005bd32fd1Smrg  if ac_fn_c_try_compile "$LINENO"; then :
35018b22bf3fSmrg  ac_cv_prog_cc_c89=$ac_arg
35028b22bf3fSmrgfi
35038b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext
35048b22bf3fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
35058b22bf3fSmrgdone
35068b22bf3fSmrgrm -f conftest.$ac_ext
35078b22bf3fSmrgCC=$ac_save_CC
35088b22bf3fSmrg
35098b22bf3fSmrgfi
35108b22bf3fSmrg# AC_CACHE_VAL
35118b22bf3fSmrgcase "x$ac_cv_prog_cc_c89" in
35128b22bf3fSmrg  x)
35135bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
351496a81b41Smrg$as_echo "none needed" >&6; } ;;
35158b22bf3fSmrg  xno)
35165bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
351796a81b41Smrg$as_echo "unsupported" >&6; } ;;
35188b22bf3fSmrg  *)
35198b22bf3fSmrg    CC="$CC $ac_cv_prog_cc_c89"
35205bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
352196a81b41Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
35228b22bf3fSmrgesac
35235bd32fd1Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
35248b22bf3fSmrg
35255bd32fd1Smrgfi
35268b22bf3fSmrg
35278b22bf3fSmrgac_ext=c
35288b22bf3fSmrgac_cpp='$CPP $CPPFLAGS'
35298b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35308b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35318b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
35328b22bf3fSmrg
35338b22bf3fSmrgdepcc="$CC"   am_compiler_list=
35348b22bf3fSmrg
35355bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
353696a81b41Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
35375bd32fd1Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
353896a81b41Smrg  $as_echo_n "(cached) " >&6
35398b22bf3fSmrgelse
35408b22bf3fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35418b22bf3fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
35428b22bf3fSmrg  # making bogus files that we don't know about and never remove.  For
35438b22bf3fSmrg  # instance it was reported that on HP-UX the gcc test will end up
35448b22bf3fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
35458b22bf3fSmrg  # in D'.
35468b22bf3fSmrg  mkdir conftest.dir
35478b22bf3fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
35488b22bf3fSmrg  # using a relative directory.
35498b22bf3fSmrg  cp "$am_depcomp" conftest.dir
35508b22bf3fSmrg  cd conftest.dir
35518b22bf3fSmrg  # We will build objects and dependencies in a subdirectory because
35528b22bf3fSmrg  # it helps to detect inapplicable dependency modes.  For instance
35538b22bf3fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
35548b22bf3fSmrg  # side effect of compilation, but ICC will put the dependencies in
35558b22bf3fSmrg  # the current directory while Tru64 will put them in the object
35568b22bf3fSmrg  # directory.
35578b22bf3fSmrg  mkdir sub
35588b22bf3fSmrg
35598b22bf3fSmrg  am_cv_CC_dependencies_compiler_type=none
35608b22bf3fSmrg  if test "$am_compiler_list" = ""; then
35618b22bf3fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
35628b22bf3fSmrg  fi
356396a81b41Smrg  am__universal=false
356496a81b41Smrg  case " $depcc " in #(
356596a81b41Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
356696a81b41Smrg     esac
356796a81b41Smrg
35688b22bf3fSmrg  for depmode in $am_compiler_list; do
35698b22bf3fSmrg    # Setup a source with many dependencies, because some compilers
35708b22bf3fSmrg    # like to wrap large dependency lists on column 80 (with \), and
35718b22bf3fSmrg    # we should not choose a depcomp mode which is confused by this.
35728b22bf3fSmrg    #
35738b22bf3fSmrg    # We need to recreate these files for each test, as the compiler may
35748b22bf3fSmrg    # overwrite some of them when testing with obscure command lines.
35758b22bf3fSmrg    # This happens at least with the AIX C compiler.
35768b22bf3fSmrg    : > sub/conftest.c
35778b22bf3fSmrg    for i in 1 2 3 4 5 6; do
35788b22bf3fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
35798b22bf3fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
35808b22bf3fSmrg      # Solaris 8's {/usr,}/bin/sh.
35818b22bf3fSmrg      touch sub/conftst$i.h
35828b22bf3fSmrg    done
35838b22bf3fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
35848b22bf3fSmrg
358596a81b41Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
358696a81b41Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
358796a81b41Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
358896a81b41Smrg    # versions had trouble with output in subdirs
358996a81b41Smrg    am__obj=sub/conftest.${OBJEXT-o}
359096a81b41Smrg    am__minus_obj="-o $am__obj"
35918b22bf3fSmrg    case $depmode in
359296a81b41Smrg    gcc)
359396a81b41Smrg      # This depmode causes a compiler race in universal mode.
359496a81b41Smrg      test "$am__universal" = false || continue
359596a81b41Smrg      ;;
35968b22bf3fSmrg    nosideeffect)
35978b22bf3fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
35988b22bf3fSmrg      # only be used when explicitly requested
35998b22bf3fSmrg      if test "x$enable_dependency_tracking" = xyes; then
36008b22bf3fSmrg	continue
36018b22bf3fSmrg      else
36028b22bf3fSmrg	break
36038b22bf3fSmrg      fi
36048b22bf3fSmrg      ;;
360596a81b41Smrg    msvisualcpp | msvcmsys)
360696a81b41Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
360796a81b41Smrg      # not run yet.  These depmodes are late enough in the game, and
360896a81b41Smrg      # so weak that their functioning should not be impacted.
360996a81b41Smrg      am__obj=conftest.${OBJEXT-o}
361096a81b41Smrg      am__minus_obj=
361196a81b41Smrg      ;;
36128b22bf3fSmrg    none) break ;;
36138b22bf3fSmrg    esac
36148b22bf3fSmrg    if depmode=$depmode \
361596a81b41Smrg       source=sub/conftest.c object=$am__obj \
36168b22bf3fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
361796a81b41Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
36188b22bf3fSmrg         >/dev/null 2>conftest.err &&
36198b22bf3fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
36208b22bf3fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
362196a81b41Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
36228b22bf3fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
36238b22bf3fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
36248b22bf3fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
36258b22bf3fSmrg      # that says an option was ignored or not supported.
36268b22bf3fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
36278b22bf3fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
36288b22bf3fSmrg      # The diagnosis changed in icc 8.0:
36298b22bf3fSmrg      #   icc: Command line remark: option '-MP' not supported
36308b22bf3fSmrg      if (grep 'ignoring option' conftest.err ||
36318b22bf3fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
36328b22bf3fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
36338b22bf3fSmrg        break
36348b22bf3fSmrg      fi
36358b22bf3fSmrg    fi
36368b22bf3fSmrg  done
36378b22bf3fSmrg
36388b22bf3fSmrg  cd ..
36398b22bf3fSmrg  rm -rf conftest.dir
36408b22bf3fSmrgelse
36418b22bf3fSmrg  am_cv_CC_dependencies_compiler_type=none
36428b22bf3fSmrgfi
36438b22bf3fSmrg
36448b22bf3fSmrgfi
36455bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
364696a81b41Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
36478b22bf3fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
36488b22bf3fSmrg
36498b22bf3fSmrg if
36508b22bf3fSmrg  test "x$enable_dependency_tracking" != xno \
36518b22bf3fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
36528b22bf3fSmrg  am__fastdepCC_TRUE=
36538b22bf3fSmrg  am__fastdepCC_FALSE='#'
36548b22bf3fSmrgelse
36558b22bf3fSmrg  am__fastdepCC_TRUE='#'
36568b22bf3fSmrg  am__fastdepCC_FALSE=
36578b22bf3fSmrgfi
36588b22bf3fSmrg
36598b22bf3fSmrg
36605bd32fd1Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
36615bd32fd1Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
36625bd32fd1Smrgif ${ac_cv_prog_cc_c99+:} false; then :
366396a81b41Smrg  $as_echo_n "(cached) " >&6
36648b22bf3fSmrgelse
36655bd32fd1Smrg  ac_cv_prog_cc_c99=no
36665bd32fd1Smrgac_save_CC=$CC
36675bd32fd1Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36685bd32fd1Smrg/* end confdefs.h.  */
36695bd32fd1Smrg#include <stdarg.h>
36705bd32fd1Smrg#include <stdbool.h>
36715bd32fd1Smrg#include <stdlib.h>
36725bd32fd1Smrg#include <wchar.h>
36735bd32fd1Smrg#include <stdio.h>
36748b22bf3fSmrg
36755bd32fd1Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
36765bd32fd1Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
36775bd32fd1Smrg#define showlist(...) puts (#__VA_ARGS__)
36785bd32fd1Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
36795bd32fd1Smrgstatic void
36805bd32fd1Smrgtest_varargs_macros (void)
36815bd32fd1Smrg{
36825bd32fd1Smrg  int x = 1234;
36835bd32fd1Smrg  int y = 5678;
36845bd32fd1Smrg  debug ("Flag");
36855bd32fd1Smrg  debug ("X = %d\n", x);
36865bd32fd1Smrg  showlist (The first, second, and third items.);
36875bd32fd1Smrg  report (x>y, "x is %d but y is %d", x, y);
36885bd32fd1Smrg}
36898b22bf3fSmrg
36905bd32fd1Smrg// Check long long types.
36915bd32fd1Smrg#define BIG64 18446744073709551615ull
36925bd32fd1Smrg#define BIG32 4294967295ul
36935bd32fd1Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
36945bd32fd1Smrg#if !BIG_OK
36955bd32fd1Smrg  your preprocessor is broken;
36965bd32fd1Smrg#endif
36975bd32fd1Smrg#if BIG_OK
36985bd32fd1Smrg#else
36995bd32fd1Smrg  your preprocessor is broken;
37005bd32fd1Smrg#endif
37015bd32fd1Smrgstatic long long int bignum = -9223372036854775807LL;
37025bd32fd1Smrgstatic unsigned long long int ubignum = BIG64;
37038b22bf3fSmrg
37045bd32fd1Smrgstruct incomplete_array
37055bd32fd1Smrg{
37065bd32fd1Smrg  int datasize;
37075bd32fd1Smrg  double data[];
37085bd32fd1Smrg};
37098b22bf3fSmrg
37105bd32fd1Smrgstruct named_init {
37115bd32fd1Smrg  int number;
37125bd32fd1Smrg  const wchar_t *name;
37135bd32fd1Smrg  double average;
37145bd32fd1Smrg};
37158b22bf3fSmrg
37165bd32fd1Smrgtypedef const char *ccp;
37178b22bf3fSmrg
37185bd32fd1Smrgstatic inline int
37195bd32fd1Smrgtest_restrict (ccp restrict text)
37205bd32fd1Smrg{
37215bd32fd1Smrg  // See if C++-style comments work.
37225bd32fd1Smrg  // Iterate through items via the restricted pointer.
37235bd32fd1Smrg  // Also check for declarations in for loops.
37245bd32fd1Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
37255bd32fd1Smrg    continue;
37265bd32fd1Smrg  return 0;
37275bd32fd1Smrg}
37288b22bf3fSmrg
37295bd32fd1Smrg// Check varargs and va_copy.
37305bd32fd1Smrgstatic void
37315bd32fd1Smrgtest_varargs (const char *format, ...)
37325bd32fd1Smrg{
37335bd32fd1Smrg  va_list args;
37345bd32fd1Smrg  va_start (args, format);
37355bd32fd1Smrg  va_list args_copy;
37365bd32fd1Smrg  va_copy (args_copy, args);
37378b22bf3fSmrg
37385bd32fd1Smrg  const char *str;
37395bd32fd1Smrg  int number;
37405bd32fd1Smrg  float fnumber;
37418b22bf3fSmrg
37425bd32fd1Smrg  while (*format)
37435bd32fd1Smrg    {
37445bd32fd1Smrg      switch (*format++)
37455bd32fd1Smrg	{
37465bd32fd1Smrg	case 's': // string
37475bd32fd1Smrg	  str = va_arg (args_copy, const char *);
37485bd32fd1Smrg	  break;
37495bd32fd1Smrg	case 'd': // int
37505bd32fd1Smrg	  number = va_arg (args_copy, int);
37515bd32fd1Smrg	  break;
37525bd32fd1Smrg	case 'f': // float
37535bd32fd1Smrg	  fnumber = va_arg (args_copy, double);
37545bd32fd1Smrg	  break;
37555bd32fd1Smrg	default:
37565bd32fd1Smrg	  break;
37575bd32fd1Smrg	}
37585bd32fd1Smrg    }
37595bd32fd1Smrg  va_end (args_copy);
37605bd32fd1Smrg  va_end (args);
37615bd32fd1Smrg}
37625bd32fd1Smrg
37635bd32fd1Smrgint
37645bd32fd1Smrgmain ()
37655bd32fd1Smrg{
37665bd32fd1Smrg
37675bd32fd1Smrg  // Check bool.
37685bd32fd1Smrg  _Bool success = false;
37695bd32fd1Smrg
37705bd32fd1Smrg  // Check restrict.
37715bd32fd1Smrg  if (test_restrict ("String literal") == 0)
37725bd32fd1Smrg    success = true;
37735bd32fd1Smrg  char *restrict newvar = "Another string";
37745bd32fd1Smrg
37755bd32fd1Smrg  // Check varargs.
37765bd32fd1Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
37775bd32fd1Smrg  test_varargs_macros ();
37785bd32fd1Smrg
37795bd32fd1Smrg  // Check flexible array members.
37805bd32fd1Smrg  struct incomplete_array *ia =
37815bd32fd1Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
37825bd32fd1Smrg  ia->datasize = 10;
37835bd32fd1Smrg  for (int i = 0; i < ia->datasize; ++i)
37845bd32fd1Smrg    ia->data[i] = i * 1.234;
37855bd32fd1Smrg
37865bd32fd1Smrg  // Check named initializers.
37875bd32fd1Smrg  struct named_init ni = {
37885bd32fd1Smrg    .number = 34,
37895bd32fd1Smrg    .name = L"Test wide string",
37905bd32fd1Smrg    .average = 543.34343,
37915bd32fd1Smrg  };
37925bd32fd1Smrg
37935bd32fd1Smrg  ni.number = 58;
37945bd32fd1Smrg
37955bd32fd1Smrg  int dynamic_array[ni.number];
37965bd32fd1Smrg  dynamic_array[ni.number - 1] = 543;
37975bd32fd1Smrg
37985bd32fd1Smrg  // work around unused variable warnings
37995bd32fd1Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
38005bd32fd1Smrg	  || dynamic_array[ni.number - 1] != 543);
38015bd32fd1Smrg
38025bd32fd1Smrg  ;
38035bd32fd1Smrg  return 0;
38045bd32fd1Smrg}
38055bd32fd1Smrg_ACEOF
38065bd32fd1Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
38075bd32fd1Smrgdo
38085bd32fd1Smrg  CC="$ac_save_CC $ac_arg"
38095bd32fd1Smrg  if ac_fn_c_try_compile "$LINENO"; then :
38105bd32fd1Smrg  ac_cv_prog_cc_c99=$ac_arg
38115bd32fd1Smrgfi
38125bd32fd1Smrgrm -f core conftest.err conftest.$ac_objext
38135bd32fd1Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
38145bd32fd1Smrgdone
38155bd32fd1Smrgrm -f conftest.$ac_ext
38165bd32fd1SmrgCC=$ac_save_CC
38175bd32fd1Smrg
38185bd32fd1Smrgfi
38195bd32fd1Smrg# AC_CACHE_VAL
38205bd32fd1Smrgcase "x$ac_cv_prog_cc_c99" in
38215bd32fd1Smrg  x)
38225bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38235bd32fd1Smrg$as_echo "none needed" >&6; } ;;
38245bd32fd1Smrg  xno)
38255bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38265bd32fd1Smrg$as_echo "unsupported" >&6; } ;;
38275bd32fd1Smrg  *)
38285bd32fd1Smrg    CC="$CC $ac_cv_prog_cc_c99"
38295bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
38305bd32fd1Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
38315bd32fd1Smrgesac
38325bd32fd1Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
38335bd32fd1Smrg
38345bd32fd1Smrgfi
38355bd32fd1Smrg
38365bd32fd1Smrg
38375bd32fd1Smrg
38385bd32fd1Smrgac_ext=c
38395bd32fd1Smrgac_cpp='$CPP $CPPFLAGS'
38405bd32fd1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38415bd32fd1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38425bd32fd1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38435bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
38445bd32fd1Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
38455bd32fd1Smrg# On Suns, sometimes $CPP names a directory.
38465bd32fd1Smrgif test -n "$CPP" && test -d "$CPP"; then
38475bd32fd1Smrg  CPP=
38485bd32fd1Smrgfi
38495bd32fd1Smrgif test -z "$CPP"; then
38505bd32fd1Smrg  if ${ac_cv_prog_CPP+:} false; then :
38515bd32fd1Smrg  $as_echo_n "(cached) " >&6
38525bd32fd1Smrgelse
38535bd32fd1Smrg      # Double quotes because CPP needs to be expanded
38545bd32fd1Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
38555bd32fd1Smrg    do
38565bd32fd1Smrg      ac_preproc_ok=false
38575bd32fd1Smrgfor ac_c_preproc_warn_flag in '' yes
38585bd32fd1Smrgdo
38595bd32fd1Smrg  # Use a header file that comes with gcc, so configuring glibc
38605bd32fd1Smrg  # with a fresh cross-compiler works.
38615bd32fd1Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38625bd32fd1Smrg  # <limits.h> exists even on freestanding compilers.
38635bd32fd1Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
38645bd32fd1Smrg  # not just through cpp. "Syntax error" is here to catch this case.
38655bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38665bd32fd1Smrg/* end confdefs.h.  */
38675bd32fd1Smrg#ifdef __STDC__
38685bd32fd1Smrg# include <limits.h>
38695bd32fd1Smrg#else
38705bd32fd1Smrg# include <assert.h>
38715bd32fd1Smrg#endif
38725bd32fd1Smrg		     Syntax error
38735bd32fd1Smrg_ACEOF
38745bd32fd1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38758b22bf3fSmrg
38765bd32fd1Smrgelse
38775bd32fd1Smrg  # Broken: fails on valid input.
38785bd32fd1Smrgcontinue
38795bd32fd1Smrgfi
38805bd32fd1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
38818b22bf3fSmrg
38828b22bf3fSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
38838b22bf3fSmrg  # can be detected and how.
38845bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38858b22bf3fSmrg/* end confdefs.h.  */
38868b22bf3fSmrg#include <ac_nonexistent.h>
38878b22bf3fSmrg_ACEOF
38885bd32fd1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
38898b22bf3fSmrg  # Broken: success on invalid input.
38908b22bf3fSmrgcontinue
38918b22bf3fSmrgelse
38928b22bf3fSmrg  # Passes both tests.
38938b22bf3fSmrgac_preproc_ok=:
38948b22bf3fSmrgbreak
38958b22bf3fSmrgfi
38965bd32fd1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
38978b22bf3fSmrg
38988b22bf3fSmrgdone
38998b22bf3fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39005bd32fd1Smrgrm -f conftest.i conftest.err conftest.$ac_ext
39015bd32fd1Smrgif $ac_preproc_ok; then :
39028b22bf3fSmrg  break
39038b22bf3fSmrgfi
39048b22bf3fSmrg
39058b22bf3fSmrg    done
39068b22bf3fSmrg    ac_cv_prog_CPP=$CPP
39078b22bf3fSmrg
39088b22bf3fSmrgfi
39098b22bf3fSmrg  CPP=$ac_cv_prog_CPP
39108b22bf3fSmrgelse
39118b22bf3fSmrg  ac_cv_prog_CPP=$CPP
39128b22bf3fSmrgfi
39135bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
391496a81b41Smrg$as_echo "$CPP" >&6; }
39158b22bf3fSmrgac_preproc_ok=false
39168b22bf3fSmrgfor ac_c_preproc_warn_flag in '' yes
39178b22bf3fSmrgdo
39188b22bf3fSmrg  # Use a header file that comes with gcc, so configuring glibc
39198b22bf3fSmrg  # with a fresh cross-compiler works.
39208b22bf3fSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39218b22bf3fSmrg  # <limits.h> exists even on freestanding compilers.
39228b22bf3fSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39238b22bf3fSmrg  # not just through cpp. "Syntax error" is here to catch this case.
39245bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39258b22bf3fSmrg/* end confdefs.h.  */
39268b22bf3fSmrg#ifdef __STDC__
39278b22bf3fSmrg# include <limits.h>
39288b22bf3fSmrg#else
39298b22bf3fSmrg# include <assert.h>
39308b22bf3fSmrg#endif
39318b22bf3fSmrg		     Syntax error
39328b22bf3fSmrg_ACEOF
39335bd32fd1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39348b22bf3fSmrg
39355bd32fd1Smrgelse
39368b22bf3fSmrg  # Broken: fails on valid input.
39378b22bf3fSmrgcontinue
39388b22bf3fSmrgfi
39395bd32fd1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
39408b22bf3fSmrg
39418b22bf3fSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
39428b22bf3fSmrg  # can be detected and how.
39435bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39448b22bf3fSmrg/* end confdefs.h.  */
39458b22bf3fSmrg#include <ac_nonexistent.h>
39468b22bf3fSmrg_ACEOF
39475bd32fd1Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39488b22bf3fSmrg  # Broken: success on invalid input.
39498b22bf3fSmrgcontinue
39508b22bf3fSmrgelse
39518b22bf3fSmrg  # Passes both tests.
39528b22bf3fSmrgac_preproc_ok=:
39538b22bf3fSmrgbreak
39548b22bf3fSmrgfi
39555bd32fd1Smrgrm -f conftest.err conftest.i conftest.$ac_ext
39568b22bf3fSmrg
39578b22bf3fSmrgdone
39588b22bf3fSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39595bd32fd1Smrgrm -f conftest.i conftest.err conftest.$ac_ext
39605bd32fd1Smrgif $ac_preproc_ok; then :
39615bd32fd1Smrg
39628b22bf3fSmrgelse
39635bd32fd1Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
396496a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39655bd32fd1Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
39665bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
39678b22bf3fSmrgfi
39688b22bf3fSmrg
39698b22bf3fSmrgac_ext=c
39708b22bf3fSmrgac_cpp='$CPP $CPPFLAGS'
39718b22bf3fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39728b22bf3fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39738b22bf3fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
39748b22bf3fSmrg
39758b22bf3fSmrg
39765bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
397796a81b41Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
39785bd32fd1Smrgif ${ac_cv_path_GREP+:} false; then :
397996a81b41Smrg  $as_echo_n "(cached) " >&6
39808b22bf3fSmrgelse
398196a81b41Smrg  if test -z "$GREP"; then
39828b22bf3fSmrg  ac_path_GREP_found=false
398396a81b41Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
398496a81b41Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39858b22bf3fSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
39868b22bf3fSmrgdo
39878b22bf3fSmrg  IFS=$as_save_IFS
39888b22bf3fSmrg  test -z "$as_dir" && as_dir=.
39895bd32fd1Smrg    for ac_prog in grep ggrep; do
399096a81b41Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
399196a81b41Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
399296a81b41Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
399396a81b41Smrg# Check for GNU ac_path_GREP and select it if it is found.
39948b22bf3fSmrg  # Check for GNU $ac_path_GREP
39958b22bf3fSmrgcase `"$ac_path_GREP" --version 2>&1` in
39968b22bf3fSmrg*GNU*)
39978b22bf3fSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
39988b22bf3fSmrg*)
39998b22bf3fSmrg  ac_count=0
400096a81b41Smrg  $as_echo_n 0123456789 >"conftest.in"
40018b22bf3fSmrg  while :
40028b22bf3fSmrg  do
40038b22bf3fSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40048b22bf3fSmrg    mv "conftest.tmp" "conftest.in"
40058b22bf3fSmrg    cp "conftest.in" "conftest.nl"
400696a81b41Smrg    $as_echo 'GREP' >> "conftest.nl"
40078b22bf3fSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40088b22bf3fSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40095bd32fd1Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40108b22bf3fSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
40118b22bf3fSmrg      # Best one so far, save it but keep looking for a better one
40128b22bf3fSmrg      ac_cv_path_GREP="$ac_path_GREP"
40138b22bf3fSmrg      ac_path_GREP_max=$ac_count
40148b22bf3fSmrg    fi
40158b22bf3fSmrg    # 10*(2^10) chars as input seems more than enough
40168b22bf3fSmrg    test $ac_count -gt 10 && break
40178b22bf3fSmrg  done
40188b22bf3fSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40198b22bf3fSmrgesac
40208b22bf3fSmrg
402196a81b41Smrg      $ac_path_GREP_found && break 3
402296a81b41Smrg    done
40238b22bf3fSmrg  done
40245bd32fd1Smrg  done
40258b22bf3fSmrgIFS=$as_save_IFS
402696a81b41Smrg  if test -z "$ac_cv_path_GREP"; then
40275bd32fd1Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
402896a81b41Smrg  fi
40298b22bf3fSmrgelse
40308b22bf3fSmrg  ac_cv_path_GREP=$GREP
40318b22bf3fSmrgfi
40328b22bf3fSmrg
40338b22bf3fSmrgfi
40345bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
403596a81b41Smrg$as_echo "$ac_cv_path_GREP" >&6; }
40368b22bf3fSmrg GREP="$ac_cv_path_GREP"
40378b22bf3fSmrg
40388b22bf3fSmrg
40395bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
404096a81b41Smrg$as_echo_n "checking for egrep... " >&6; }
40415bd32fd1Smrgif ${ac_cv_path_EGREP+:} false; then :
404296a81b41Smrg  $as_echo_n "(cached) " >&6
40438b22bf3fSmrgelse
40448b22bf3fSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
40458b22bf3fSmrg   then ac_cv_path_EGREP="$GREP -E"
40468b22bf3fSmrg   else
404796a81b41Smrg     if test -z "$EGREP"; then
40488b22bf3fSmrg  ac_path_EGREP_found=false
404996a81b41Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
405096a81b41Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40518b22bf3fSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40528b22bf3fSmrgdo
40538b22bf3fSmrg  IFS=$as_save_IFS
40548b22bf3fSmrg  test -z "$as_dir" && as_dir=.
40555bd32fd1Smrg    for ac_prog in egrep; do
405696a81b41Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
405796a81b41Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
405896a81b41Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
405996a81b41Smrg# Check for GNU ac_path_EGREP and select it if it is found.
40608b22bf3fSmrg  # Check for GNU $ac_path_EGREP
40618b22bf3fSmrgcase `"$ac_path_EGREP" --version 2>&1` in
40628b22bf3fSmrg*GNU*)
40638b22bf3fSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
40648b22bf3fSmrg*)
40658b22bf3fSmrg  ac_count=0
406696a81b41Smrg  $as_echo_n 0123456789 >"conftest.in"
40678b22bf3fSmrg  while :
40688b22bf3fSmrg  do
40698b22bf3fSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40708b22bf3fSmrg    mv "conftest.tmp" "conftest.in"
40718b22bf3fSmrg    cp "conftest.in" "conftest.nl"
407296a81b41Smrg    $as_echo 'EGREP' >> "conftest.nl"
40738b22bf3fSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40748b22bf3fSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40755bd32fd1Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40768b22bf3fSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
40778b22bf3fSmrg      # Best one so far, save it but keep looking for a better one
40788b22bf3fSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
40798b22bf3fSmrg      ac_path_EGREP_max=$ac_count
40808b22bf3fSmrg    fi
40818b22bf3fSmrg    # 10*(2^10) chars as input seems more than enough
40828b22bf3fSmrg    test $ac_count -gt 10 && break
40838b22bf3fSmrg  done
40848b22bf3fSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40858b22bf3fSmrgesac
40868b22bf3fSmrg
408796a81b41Smrg      $ac_path_EGREP_found && break 3
408896a81b41Smrg    done
40898b22bf3fSmrg  done
40905bd32fd1Smrg  done
40918b22bf3fSmrgIFS=$as_save_IFS
409296a81b41Smrg  if test -z "$ac_cv_path_EGREP"; then
40935bd32fd1Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
409496a81b41Smrg  fi
40958b22bf3fSmrgelse
40968b22bf3fSmrg  ac_cv_path_EGREP=$EGREP
40978b22bf3fSmrgfi
40988b22bf3fSmrg
40998b22bf3fSmrg   fi
41008b22bf3fSmrgfi
41015bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
410296a81b41Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
41038b22bf3fSmrg EGREP="$ac_cv_path_EGREP"
41048b22bf3fSmrg
41058b22bf3fSmrg
41065bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
410796a81b41Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
41085bd32fd1Smrgif ${ac_cv_header_stdc+:} false; then :
410996a81b41Smrg  $as_echo_n "(cached) " >&6
41108b22bf3fSmrgelse
41115bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41128b22bf3fSmrg/* end confdefs.h.  */
41138b22bf3fSmrg#include <stdlib.h>
41148b22bf3fSmrg#include <stdarg.h>
41158b22bf3fSmrg#include <string.h>
41168b22bf3fSmrg#include <float.h>
41178b22bf3fSmrg
41188b22bf3fSmrgint
41198b22bf3fSmrgmain ()
41208b22bf3fSmrg{
41218b22bf3fSmrg
41228b22bf3fSmrg  ;
41238b22bf3fSmrg  return 0;
41248b22bf3fSmrg}
41258b22bf3fSmrg_ACEOF
41265bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
41278b22bf3fSmrg  ac_cv_header_stdc=yes
41288b22bf3fSmrgelse
41295bd32fd1Smrg  ac_cv_header_stdc=no
41308b22bf3fSmrgfi
41318b22bf3fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41328b22bf3fSmrg
41338b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
41348b22bf3fSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41355bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41368b22bf3fSmrg/* end confdefs.h.  */
41378b22bf3fSmrg#include <string.h>
41388b22bf3fSmrg
41398b22bf3fSmrg_ACEOF
41408b22bf3fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41415bd32fd1Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
41425bd32fd1Smrg
41438b22bf3fSmrgelse
41448b22bf3fSmrg  ac_cv_header_stdc=no
41458b22bf3fSmrgfi
41468b22bf3fSmrgrm -f conftest*
41478b22bf3fSmrg
41488b22bf3fSmrgfi
41498b22bf3fSmrg
41508b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
41518b22bf3fSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41525bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41538b22bf3fSmrg/* end confdefs.h.  */
41548b22bf3fSmrg#include <stdlib.h>
41558b22bf3fSmrg
41568b22bf3fSmrg_ACEOF
41578b22bf3fSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41585bd32fd1Smrg  $EGREP "free" >/dev/null 2>&1; then :
41595bd32fd1Smrg
41608b22bf3fSmrgelse
41618b22bf3fSmrg  ac_cv_header_stdc=no
41628b22bf3fSmrgfi
41638b22bf3fSmrgrm -f conftest*
41648b22bf3fSmrg
41658b22bf3fSmrgfi
41668b22bf3fSmrg
41678b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
41688b22bf3fSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
41695bd32fd1Smrg  if test "$cross_compiling" = yes; then :
41708b22bf3fSmrg  :
41718b22bf3fSmrgelse
41725bd32fd1Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41738b22bf3fSmrg/* end confdefs.h.  */
41748b22bf3fSmrg#include <ctype.h>
41758b22bf3fSmrg#include <stdlib.h>
41768b22bf3fSmrg#if ((' ' & 0x0FF) == 0x020)
41778b22bf3fSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
41788b22bf3fSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
41798b22bf3fSmrg#else
41808b22bf3fSmrg# define ISLOWER(c) \
41818b22bf3fSmrg		   (('a' <= (c) && (c) <= 'i') \
41828b22bf3fSmrg		     || ('j' <= (c) && (c) <= 'r') \
41838b22bf3fSmrg		     || ('s' <= (c) && (c) <= 'z'))
41848b22bf3fSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
41858b22bf3fSmrg#endif
41868b22bf3fSmrg
41878b22bf3fSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
41888b22bf3fSmrgint
41898b22bf3fSmrgmain ()
41908b22bf3fSmrg{
41918b22bf3fSmrg  int i;
41928b22bf3fSmrg  for (i = 0; i < 256; i++)
41938b22bf3fSmrg    if (XOR (islower (i), ISLOWER (i))
41948b22bf3fSmrg	|| toupper (i) != TOUPPER (i))
41958b22bf3fSmrg      return 2;
41968b22bf3fSmrg  return 0;
41978b22bf3fSmrg}
41988b22bf3fSmrg_ACEOF
41995bd32fd1Smrgif ac_fn_c_try_run "$LINENO"; then :
42008b22bf3fSmrg
42015bd32fd1Smrgelse
42025bd32fd1Smrg  ac_cv_header_stdc=no
42038b22bf3fSmrgfi
42045bd32fd1Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42055bd32fd1Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
42068b22bf3fSmrgfi
42078b22bf3fSmrg
42088b22bf3fSmrgfi
42098b22bf3fSmrgfi
42105bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
421196a81b41Smrg$as_echo "$ac_cv_header_stdc" >&6; }
42128b22bf3fSmrgif test $ac_cv_header_stdc = yes; then
42138b22bf3fSmrg
42145bd32fd1Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
42158b22bf3fSmrg
42168b22bf3fSmrgfi
42178b22bf3fSmrg
42188b22bf3fSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42198b22bf3fSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
42208b22bf3fSmrg		  inttypes.h stdint.h unistd.h
42215bd32fd1Smrgdo :
42225bd32fd1Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42235bd32fd1Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
42245bd32fd1Smrg"
42255bd32fd1Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42268b22bf3fSmrg  cat >>confdefs.h <<_ACEOF
422796a81b41Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42288b22bf3fSmrg_ACEOF
42298b22bf3fSmrg
42308b22bf3fSmrgfi
42318b22bf3fSmrg
42328b22bf3fSmrgdone
42338b22bf3fSmrg
42348b22bf3fSmrg
42355bd32fd1Smrg
42365bd32fd1Smrg
42375bd32fd1Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42385bd32fd1Smrg	if test -n "$ac_tool_prefix"; then
42395bd32fd1Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42405bd32fd1Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42415bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42425bd32fd1Smrg$as_echo_n "checking for $ac_word... " >&6; }
42435bd32fd1Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
424496a81b41Smrg  $as_echo_n "(cached) " >&6
42458b22bf3fSmrgelse
42465bd32fd1Smrg  case $PKG_CONFIG in
42475bd32fd1Smrg  [\\/]* | ?:[\\/]*)
42485bd32fd1Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42495bd32fd1Smrg  ;;
42505bd32fd1Smrg  *)
42515bd32fd1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42525bd32fd1Smrgfor as_dir in $PATH
425396a81b41Smrgdo
42545bd32fd1Smrg  IFS=$as_save_IFS
42555bd32fd1Smrg  test -z "$as_dir" && as_dir=.
42565bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
42575bd32fd1Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42585bd32fd1Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42595bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42605bd32fd1Smrg    break 2
42615bd32fd1Smrg  fi
42625bd32fd1Smrgdone
42635bd32fd1Smrg  done
42645bd32fd1SmrgIFS=$as_save_IFS
42655bd32fd1Smrg
42665bd32fd1Smrg  ;;
42678b22bf3fSmrgesac
42685bd32fd1Smrgfi
42695bd32fd1SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
42705bd32fd1Smrgif test -n "$PKG_CONFIG"; then
42715bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
42725bd32fd1Smrg$as_echo "$PKG_CONFIG" >&6; }
42738b22bf3fSmrgelse
42745bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42755bd32fd1Smrg$as_echo "no" >&6; }
42768b22bf3fSmrgfi
42778b22bf3fSmrg
42788b22bf3fSmrg
42798b22bf3fSmrgfi
42805bd32fd1Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
42815bd32fd1Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
42825bd32fd1Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
42835bd32fd1Smrgset dummy pkg-config; ac_word=$2
42845bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42855bd32fd1Smrg$as_echo_n "checking for $ac_word... " >&6; }
42865bd32fd1Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
42875bd32fd1Smrg  $as_echo_n "(cached) " >&6
42885bd32fd1Smrgelse
42895bd32fd1Smrg  case $ac_pt_PKG_CONFIG in
42905bd32fd1Smrg  [\\/]* | ?:[\\/]*)
42915bd32fd1Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42925bd32fd1Smrg  ;;
429396a81b41Smrg  *)
42945bd32fd1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42955bd32fd1Smrgfor as_dir in $PATH
42965bd32fd1Smrgdo
42975bd32fd1Smrg  IFS=$as_save_IFS
42985bd32fd1Smrg  test -z "$as_dir" && as_dir=.
42995bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43005bd32fd1Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43015bd32fd1Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43025bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43035bd32fd1Smrg    break 2
43045bd32fd1Smrg  fi
43055bd32fd1Smrgdone
43065bd32fd1Smrg  done
43075bd32fd1SmrgIFS=$as_save_IFS
43085bd32fd1Smrg
43095bd32fd1Smrg  ;;
431096a81b41Smrgesac
43115bd32fd1Smrgfi
43125bd32fd1Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43135bd32fd1Smrgif test -n "$ac_pt_PKG_CONFIG"; then
43145bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
43155bd32fd1Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
43165bd32fd1Smrgelse
43175bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43185bd32fd1Smrg$as_echo "no" >&6; }
43195bd32fd1Smrgfi
43208b22bf3fSmrg
43215bd32fd1Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
43225bd32fd1Smrg    PKG_CONFIG=""
43235bd32fd1Smrg  else
43245bd32fd1Smrg    case $cross_compiling:$ac_tool_warned in
43255bd32fd1Smrgyes:)
43265bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43275bd32fd1Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43285bd32fd1Smrgac_tool_warned=yes ;;
43295bd32fd1Smrgesac
43305bd32fd1Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
43315bd32fd1Smrg  fi
43325bd32fd1Smrgelse
43335bd32fd1Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43345bd32fd1Smrgfi
43358b22bf3fSmrg
43365bd32fd1Smrgfi
43375bd32fd1Smrgif test -n "$PKG_CONFIG"; then
43385bd32fd1Smrg	_pkg_min_version=0.9.0
43395bd32fd1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
43405bd32fd1Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
43415bd32fd1Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43425bd32fd1Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43435bd32fd1Smrg$as_echo "yes" >&6; }
43445bd32fd1Smrg	else
43455bd32fd1Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43465bd32fd1Smrg$as_echo "no" >&6; }
43475bd32fd1Smrg		PKG_CONFIG=""
43485bd32fd1Smrg	fi
434996a81b41Smrg
43505bd32fd1Smrgfi
435196a81b41Smrg# Make sure we can run config.sub.
435296a81b41Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
43535bd32fd1Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
435496a81b41Smrg
43555bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
435696a81b41Smrg$as_echo_n "checking build system type... " >&6; }
43575bd32fd1Smrgif ${ac_cv_build+:} false; then :
435896a81b41Smrg  $as_echo_n "(cached) " >&6
435996a81b41Smrgelse
436096a81b41Smrg  ac_build_alias=$build_alias
436196a81b41Smrgtest "x$ac_build_alias" = x &&
436296a81b41Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
436396a81b41Smrgtest "x$ac_build_alias" = x &&
43645bd32fd1Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
436596a81b41Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
43665bd32fd1Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
436796a81b41Smrg
436896a81b41Smrgfi
43695bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
437096a81b41Smrg$as_echo "$ac_cv_build" >&6; }
437196a81b41Smrgcase $ac_cv_build in
437296a81b41Smrg*-*-*) ;;
43735bd32fd1Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
437496a81b41Smrgesac
437596a81b41Smrgbuild=$ac_cv_build
437696a81b41Smrgac_save_IFS=$IFS; IFS='-'
437796a81b41Smrgset x $ac_cv_build
437896a81b41Smrgshift
437996a81b41Smrgbuild_cpu=$1
438096a81b41Smrgbuild_vendor=$2
438196a81b41Smrgshift; shift
438296a81b41Smrg# Remember, the first character of IFS is used to create $*,
438396a81b41Smrg# except with old shells:
438496a81b41Smrgbuild_os=$*
438596a81b41SmrgIFS=$ac_save_IFS
438696a81b41Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
438796a81b41Smrg
438896a81b41Smrg
43895bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
439096a81b41Smrg$as_echo_n "checking host system type... " >&6; }
43915bd32fd1Smrgif ${ac_cv_host+:} false; then :
439296a81b41Smrg  $as_echo_n "(cached) " >&6
439396a81b41Smrgelse
439496a81b41Smrg  if test "x$host_alias" = x; then
439596a81b41Smrg  ac_cv_host=$ac_cv_build
439696a81b41Smrgelse
439796a81b41Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
43985bd32fd1Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
439996a81b41Smrgfi
440096a81b41Smrg
440196a81b41Smrgfi
44025bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
440396a81b41Smrg$as_echo "$ac_cv_host" >&6; }
440496a81b41Smrgcase $ac_cv_host in
440596a81b41Smrg*-*-*) ;;
44065bd32fd1Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
440796a81b41Smrgesac
440896a81b41Smrghost=$ac_cv_host
440996a81b41Smrgac_save_IFS=$IFS; IFS='-'
441096a81b41Smrgset x $ac_cv_host
441196a81b41Smrgshift
441296a81b41Smrghost_cpu=$1
441396a81b41Smrghost_vendor=$2
441496a81b41Smrgshift; shift
441596a81b41Smrg# Remember, the first character of IFS is used to create $*,
441696a81b41Smrg# except with old shells:
441796a81b41Smrghost_os=$*
441896a81b41SmrgIFS=$ac_save_IFS
441996a81b41Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
442096a81b41Smrg
442196a81b41Smrg
44225bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
44235bd32fd1Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
44245bd32fd1Smrgif ${ac_cv_path_SED+:} false; then :
442596a81b41Smrg  $as_echo_n "(cached) " >&6
442696a81b41Smrgelse
44275bd32fd1Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
44285bd32fd1Smrg     for ac_i in 1 2 3 4 5 6 7; do
44295bd32fd1Smrg       ac_script="$ac_script$as_nl$ac_script"
44305bd32fd1Smrg     done
44315bd32fd1Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
44325bd32fd1Smrg     { ac_script=; unset ac_script;}
44335bd32fd1Smrg     if test -z "$SED"; then
44345bd32fd1Smrg  ac_path_SED_found=false
44355bd32fd1Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
44365bd32fd1Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44375bd32fd1Smrgfor as_dir in $PATH
44385bd32fd1Smrgdo
44395bd32fd1Smrg  IFS=$as_save_IFS
44405bd32fd1Smrg  test -z "$as_dir" && as_dir=.
44415bd32fd1Smrg    for ac_prog in sed gsed; do
44425bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
44435bd32fd1Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
44445bd32fd1Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
44455bd32fd1Smrg# Check for GNU ac_path_SED and select it if it is found.
44465bd32fd1Smrg  # Check for GNU $ac_path_SED
44475bd32fd1Smrgcase `"$ac_path_SED" --version 2>&1` in
44485bd32fd1Smrg*GNU*)
44495bd32fd1Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
44505bd32fd1Smrg*)
44515bd32fd1Smrg  ac_count=0
44525bd32fd1Smrg  $as_echo_n 0123456789 >"conftest.in"
44535bd32fd1Smrg  while :
44545bd32fd1Smrg  do
44555bd32fd1Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
44565bd32fd1Smrg    mv "conftest.tmp" "conftest.in"
44575bd32fd1Smrg    cp "conftest.in" "conftest.nl"
44585bd32fd1Smrg    $as_echo '' >> "conftest.nl"
44595bd32fd1Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
44605bd32fd1Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
44615bd32fd1Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
44625bd32fd1Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
44635bd32fd1Smrg      # Best one so far, save it but keep looking for a better one
44645bd32fd1Smrg      ac_cv_path_SED="$ac_path_SED"
44655bd32fd1Smrg      ac_path_SED_max=$ac_count
44665bd32fd1Smrg    fi
44675bd32fd1Smrg    # 10*(2^10) chars as input seems more than enough
44685bd32fd1Smrg    test $ac_count -gt 10 && break
44695bd32fd1Smrg  done
44705bd32fd1Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
447196a81b41Smrgesac
447296a81b41Smrg
44735bd32fd1Smrg      $ac_path_SED_found && break 3
44745bd32fd1Smrg    done
44755bd32fd1Smrg  done
44765bd32fd1Smrg  done
44775bd32fd1SmrgIFS=$as_save_IFS
44785bd32fd1Smrg  if test -z "$ac_cv_path_SED"; then
44795bd32fd1Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
44805bd32fd1Smrg  fi
448196a81b41Smrgelse
44825bd32fd1Smrg  ac_cv_path_SED=$SED
448396a81b41Smrgfi
448496a81b41Smrg
448596a81b41Smrgfi
44865bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
44875bd32fd1Smrg$as_echo "$ac_cv_path_SED" >&6; }
44885bd32fd1Smrg SED="$ac_cv_path_SED"
44895bd32fd1Smrg  rm -f conftest.sed
449096a81b41Smrg
449196a81b41Smrg
449296a81b41Smrg
449396a81b41Smrg
449496a81b41Smrg
44955bd32fd1Smrgif  test "x$GCC" = xyes ; then
44965bd32fd1Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
44975bd32fd1Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
44985bd32fd1Smrg-Wbad-function-cast -Wformat=2"
44995bd32fd1Smrg    case `$CC -dumpversion` in
45005bd32fd1Smrg    3.4.* | 4.*)
45015bd32fd1Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
45025bd32fd1Smrg	;;
45035bd32fd1Smrg    esac
450496a81b41Smrgelse
45055bd32fd1Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45065bd32fd1Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
450796a81b41Smrg  SUNCC="yes"
450896a81b41Smrgelse
450996a81b41Smrg  SUNCC="no"
451096a81b41Smrgfi
451196a81b41Smrg
45125bd32fd1Smrg    if test "x$SUNCC" = "xyes"; then
45135bd32fd1Smrg	CWARNFLAGS="-v"
45145bd32fd1Smrg    fi
45155bd32fd1Smrgfi
45165bd32fd1Smrg
45175bd32fd1Smrg
45185bd32fd1Smrg
45195bd32fd1Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
45205bd32fd1Smrg
45215bd32fd1Smrg
452296a81b41Smrg
45235bd32fd1Smrg# Check whether --enable-strict-compilation was given.
45245bd32fd1Smrgif test "${enable_strict_compilation+set}" = set; then :
45255bd32fd1Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
45265bd32fd1Smrgelse
45275bd32fd1Smrg  STRICT_COMPILE=no
452896a81b41Smrgfi
452996a81b41Smrg
45305bd32fd1Smrgif test "x$STRICT_COMPILE" = "xyes"; then
45315bd32fd1Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45325bd32fd1Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
45335bd32fd1Smrg  SUNCC="yes"
45345bd32fd1Smrgelse
45355bd32fd1Smrg  SUNCC="no"
453696a81b41Smrgfi
45375bd32fd1Smrg
45385bd32fd1Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
45395bd32fd1Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
454096a81b41Smrg  INTELCC="yes"
454196a81b41Smrgelse
454296a81b41Smrg  INTELCC="no"
454396a81b41Smrgfi
454496a81b41Smrg
454596a81b41Smrg	if test "x$GCC" = xyes ; then
454696a81b41Smrg		STRICT_CFLAGS="-pedantic -Werror"
454796a81b41Smrg	elif test "x$SUNCC" = "xyes"; then
454896a81b41Smrg		STRICT_CFLAGS="-errwarn"
454996a81b41Smrg    elif test "x$INTELCC" = "xyes"; then
455096a81b41Smrg		STRICT_CFLAGS="-Werror"
455196a81b41Smrg	fi
455296a81b41Smrgfi
455396a81b41SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
455496a81b41Smrg
455596a81b41Smrg
455696a81b41Smrg
455796a81b41Smrg
455896a81b41Smrgcat >>confdefs.h <<_ACEOF
455996a81b41Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
456096a81b41Smrg_ACEOF
456196a81b41Smrg
456296a81b41Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
456396a81b41Smrg	if test "x$PVM" = "x"; then
456496a81b41Smrg		PVM="0"
456596a81b41Smrg	fi
456696a81b41Smrg
456796a81b41Smrgcat >>confdefs.h <<_ACEOF
456896a81b41Smrg#define PACKAGE_VERSION_MINOR $PVM
456996a81b41Smrg_ACEOF
457096a81b41Smrg
457196a81b41Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
457296a81b41Smrg	if test "x$PVP" = "x"; then
457396a81b41Smrg		PVP="0"
457496a81b41Smrg	fi
457596a81b41Smrg
457696a81b41Smrgcat >>confdefs.h <<_ACEOF
457796a81b41Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
457896a81b41Smrg_ACEOF
457996a81b41Smrg
458096a81b41Smrg
458196a81b41Smrg
45825bd32fd1SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
45835bd32fd1Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
45845bd32fd1Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
458596a81b41Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
458696a81b41Smrg
45875bd32fd1Smrg
45885bd32fd1Smrg
45895bd32fd1Smrg
45905bd32fd1Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
45915bd32fd1SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
45925bd32fd1Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
45935bd32fd1Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
45945bd32fd1Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
45955bd32fd1Smrg
459696a81b41Smrg
459796a81b41Smrg
459896a81b41Smrg
459996a81b41Smrg
460096a81b41Smrg
460196a81b41Smrgif test x$APP_MAN_SUFFIX = x    ; then
460296a81b41Smrg    APP_MAN_SUFFIX=1
460396a81b41Smrgfi
460496a81b41Smrgif test x$APP_MAN_DIR = x    ; then
460596a81b41Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
460696a81b41Smrgfi
460796a81b41Smrg
460896a81b41Smrgif test x$LIB_MAN_SUFFIX = x    ; then
460996a81b41Smrg    LIB_MAN_SUFFIX=3
461096a81b41Smrgfi
461196a81b41Smrgif test x$LIB_MAN_DIR = x    ; then
461296a81b41Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
461396a81b41Smrgfi
461496a81b41Smrg
461596a81b41Smrgif test x$FILE_MAN_SUFFIX = x    ; then
461696a81b41Smrg    case $host_os in
461796a81b41Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
461896a81b41Smrg	*)		FILE_MAN_SUFFIX=5  ;;
461996a81b41Smrg    esac
462096a81b41Smrgfi
462196a81b41Smrgif test x$FILE_MAN_DIR = x    ; then
462296a81b41Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
462396a81b41Smrgfi
462496a81b41Smrg
462596a81b41Smrgif test x$MISC_MAN_SUFFIX = x    ; then
462696a81b41Smrg    case $host_os in
462796a81b41Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
462896a81b41Smrg	*)		MISC_MAN_SUFFIX=7  ;;
462996a81b41Smrg    esac
463096a81b41Smrgfi
463196a81b41Smrgif test x$MISC_MAN_DIR = x    ; then
463296a81b41Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
463396a81b41Smrgfi
463496a81b41Smrg
463596a81b41Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
463696a81b41Smrg    case $host_os in
463796a81b41Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
463896a81b41Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
463996a81b41Smrg    esac
464096a81b41Smrgfi
464196a81b41Smrgif test x$DRIVER_MAN_DIR = x    ; then
464296a81b41Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
464396a81b41Smrgfi
464496a81b41Smrg
464596a81b41Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
464696a81b41Smrg    case $host_os in
464796a81b41Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
464896a81b41Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
464996a81b41Smrg    esac
465096a81b41Smrgfi
465196a81b41Smrgif test x$ADMIN_MAN_DIR = x    ; then
465296a81b41Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
465396a81b41Smrgfi
465496a81b41Smrg
465596a81b41Smrg
465696a81b41Smrg
465796a81b41Smrg
465896a81b41Smrg
465996a81b41Smrg
466096a81b41Smrg
466196a81b41Smrg
466296a81b41Smrg
466396a81b41Smrg
466496a81b41Smrg
466596a81b41Smrg
466696a81b41Smrg
466796a81b41Smrg
466896a81b41Smrg
46695bd32fd1SmrgXORG_MAN_PAGE="X Version 11"
467096a81b41Smrg
46715bd32fd1SmrgMAN_SUBSTS="\
46725bd32fd1Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
46735bd32fd1Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
46745bd32fd1Smrg	-e 's|__xservername__|Xorg|g' \
46755bd32fd1Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
46765bd32fd1Smrg	-e 's|__projectroot__|\$(prefix)|g' \
46775bd32fd1Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
46785bd32fd1Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
46795bd32fd1Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
46805bd32fd1Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
46815bd32fd1Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
46825bd32fd1Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
46835bd32fd1Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
468496a81b41Smrg
468596a81b41Smrg
468696a81b41Smrg
46875bd32fd1Smrg# Check whether --enable-silent-rules was given.
46885bd32fd1Smrgif test "${enable_silent_rules+set}" = set; then :
46895bd32fd1Smrg  enableval=$enable_silent_rules;
46905bd32fd1Smrgfi
469196a81b41Smrg
46925bd32fd1Smrgcase $enable_silent_rules in
46935bd32fd1Smrgyes) AM_DEFAULT_VERBOSITY=0;;
46945bd32fd1Smrgno)  AM_DEFAULT_VERBOSITY=1;;
46955bd32fd1Smrg*)   AM_DEFAULT_VERBOSITY=0;;
469696a81b41Smrgesac
46975bd32fd1SmrgAM_BACKSLASH='\'
469896a81b41Smrg
469996a81b41Smrg
470096a81b41Smrg
47015bd32fd1Smrgac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
47025bd32fd1Smrgif test "x$ac_cv_func_mkstemp" = xyes; then :
47035bd32fd1Smrg
47045bd32fd1Smrg$as_echo "#define HAS_MKSTEMP 1" >>confdefs.h
470596a81b41Smrg
470696a81b41Smrgfi
470796a81b41Smrg
470896a81b41Smrg
470996a81b41Smrg# Find MAXHOSTNAMELEN definition
471096a81b41Smrg# Common hidey holes:
471196a81b41Smrg#  BSD & Linux - <sys/param.h>
471296a81b41Smrg#  Solaris - <netdb.h>
471396a81b41Smrg
47145bd32fd1Smrgac_fn_c_check_decl "$LINENO" "MAXHOSTNAMELEN" "ac_cv_have_decl_MAXHOSTNAMELEN" "$ac_includes_default"
47155bd32fd1Smrgif test "x$ac_cv_have_decl_MAXHOSTNAMELEN" = xyes; then :
471696a81b41Smrg  FOUND_MAXHOSTNAMELEN=yes
471796a81b41Smrgfi
471896a81b41Smrg
471996a81b41Smrg
472096a81b41Smrgif test x$FOUND_MAXHOSTNAMELEN != xyes ; then
47215bd32fd1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for header that defines MAXHOSTNAMELEN" >&5
472296a81b41Smrg$as_echo_n "checking for header that defines MAXHOSTNAMELEN... " >&6; }
472396a81b41Smrg
472496a81b41Smrg	FOUND_MAXHOSTNAMELEN='not found'
472596a81b41Smrg
47265bd32fd1Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
472796a81b41Smrg/* end confdefs.h.  */
472896a81b41Smrg#include <sys/param.h>
472996a81b41Smrgint
473096a81b41Smrgmain ()
473196a81b41Smrg{
473296a81b41Smrgint h = MAXHOSTNAMELEN;
473396a81b41Smrg  ;
473496a81b41Smrg  return 0;
473596a81b41Smrg}
473696a81b41Smrg_ACEOF
47375bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
473896a81b41Smrg  FOUND_MAXHOSTNAMELEN='sys/param.h'
473996a81b41Smrg
47405bd32fd1Smrg$as_echo "#define NEED_SYS_PARAM_H 1" >>confdefs.h
474196a81b41Smrg
474296a81b41Smrgfi
474396a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
474496a81b41Smrg
47455bd32fd1Smrg	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
474696a81b41Smrg/* end confdefs.h.  */
474796a81b41Smrg#include <netdb.h>
474896a81b41Smrgint
474996a81b41Smrgmain ()
475096a81b41Smrg{
475196a81b41Smrgint h = MAXHOSTNAMELEN;
475296a81b41Smrg  ;
475396a81b41Smrg  return 0;
475496a81b41Smrg}
475596a81b41Smrg_ACEOF
47565bd32fd1Smrgif ac_fn_c_try_compile "$LINENO"; then :
475796a81b41Smrg  FOUND_MAXHOSTNAMELEN='netdb.h'
475896a81b41Smrg
47595bd32fd1Smrg$as_echo "#define NEED_NETDB_H 1" >>confdefs.h
476096a81b41Smrg
476196a81b41Smrgfi
476296a81b41Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
476396a81b41Smrg
47645bd32fd1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOUND_MAXHOSTNAMELEN" >&5
476596a81b41Smrg$as_echo "$FOUND_MAXHOSTNAMELEN" >&6; }
476696a81b41Smrgfi
476796a81b41Smrg
476896a81b41Smrg# xrdb needs to know where to find cpp at runtime - previously set as CppCmd
476996a81b41Smrg# in Imake config files for each OS
477096a81b41Smrg
477196a81b41Smrg# Check whether --with-cpp was given.
47725bd32fd1Smrgif test "${with_cpp+set}" = set; then :
47735bd32fd1Smrg  withval=$with_cpp; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpp" >&5
477496a81b41Smrg$as_echo_n "checking for cpp... " >&6; }
477596a81b41Smrg	CPP_PATH=$withval
47765bd32fd1Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: --with-cpp specified $CPP_PATH" >&5
477796a81b41Smrg$as_echo "--with-cpp specified $CPP_PATH" >&6; }
477896a81b41Smrgelse
477996a81b41Smrg  # Extract the first word of "cpp", so it can be a program name with args.
47808b22bf3fSmrgset dummy cpp; ac_word=$2
47815bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
478296a81b41Smrg$as_echo_n "checking for $ac_word... " >&6; }
47835bd32fd1Smrgif ${ac_cv_path_CPP_PATH+:} false; then :
478496a81b41Smrg  $as_echo_n "(cached) " >&6
47858b22bf3fSmrgelse
47868b22bf3fSmrg  case $CPP_PATH in
47878b22bf3fSmrg  [\\/]* | ?:[\\/]*)
47888b22bf3fSmrg  ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
47898b22bf3fSmrg  ;;
47908b22bf3fSmrg  *)
47918b22bf3fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47928b22bf3fSmrgas_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
47938b22bf3fSmrgfor as_dir in $as_dummy
47948b22bf3fSmrgdo
47958b22bf3fSmrg  IFS=$as_save_IFS
47968b22bf3fSmrg  test -z "$as_dir" && as_dir=.
47975bd32fd1Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
47988b22bf3fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47998b22bf3fSmrg    ac_cv_path_CPP_PATH="$as_dir/$ac_word$ac_exec_ext"
48005bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48018b22bf3fSmrg    break 2
48028b22bf3fSmrg  fi
48038b22bf3fSmrgdone
48045bd32fd1Smrg  done
48058b22bf3fSmrgIFS=$as_save_IFS
48068b22bf3fSmrg
48078b22bf3fSmrg  test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="cpp"
48088b22bf3fSmrg  ;;
48098b22bf3fSmrgesac
48108b22bf3fSmrgfi
48118b22bf3fSmrgCPP_PATH=$ac_cv_path_CPP_PATH
48128b22bf3fSmrgif test -n "$CPP_PATH"; then
48135bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_PATH" >&5
481496a81b41Smrg$as_echo "$CPP_PATH" >&6; }
48158b22bf3fSmrgelse
48165bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
481796a81b41Smrg$as_echo "no" >&6; }
48185bd32fd1Smrgfi
48195bd32fd1Smrg
48208b22bf3fSmrg
48218b22bf3fSmrgfi
48228b22bf3fSmrg
48235bd32fd1SmrgCPP_PATH=`echo ${CPP_PATH} | sed 's/,/\\",\\"/g'`
48245bd32fd1Smrg
48255bd32fd1Smrgcat >>confdefs.h <<_ACEOF
48265bd32fd1Smrg#define CPP "$CPP_PATH"
48275bd32fd1Smrg_ACEOF
48285bd32fd1Smrg
48295bd32fd1Smrg
48305bd32fd1Smrg# Checks for pkg-config packages
48315bd32fd1Smrg
483296a81b41Smrgpkg_failed=no
48335bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRDB" >&5
483496a81b41Smrg$as_echo_n "checking for XRDB... " >&6; }
483596a81b41Smrg
483696a81b41Smrgif test -n "$XRDB_CFLAGS"; then
483796a81b41Smrg    pkg_cv_XRDB_CFLAGS="$XRDB_CFLAGS"
483896a81b41Smrg elif test -n "$PKG_CONFIG"; then
483996a81b41Smrg    if test -n "$PKG_CONFIG" && \
48405bd32fd1Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11\""; } >&5
484196a81b41Smrg  ($PKG_CONFIG --exists --print-errors "xmuu x11") 2>&5
484296a81b41Smrg  ac_status=$?
48435bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48445bd32fd1Smrg  test $ac_status = 0; }; then
484596a81b41Smrg  pkg_cv_XRDB_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11" 2>/dev/null`
484696a81b41Smrgelse
484796a81b41Smrg  pkg_failed=yes
48488b22bf3fSmrgfi
484996a81b41Smrg else
485096a81b41Smrg    pkg_failed=untried
48518b22bf3fSmrgfi
485296a81b41Smrgif test -n "$XRDB_LIBS"; then
485396a81b41Smrg    pkg_cv_XRDB_LIBS="$XRDB_LIBS"
485496a81b41Smrg elif test -n "$PKG_CONFIG"; then
485596a81b41Smrg    if test -n "$PKG_CONFIG" && \
48565bd32fd1Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11\""; } >&5
485796a81b41Smrg  ($PKG_CONFIG --exists --print-errors "xmuu x11") 2>&5
485896a81b41Smrg  ac_status=$?
48595bd32fd1Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48605bd32fd1Smrg  test $ac_status = 0; }; then
486196a81b41Smrg  pkg_cv_XRDB_LIBS=`$PKG_CONFIG --libs "xmuu x11" 2>/dev/null`
486296a81b41Smrgelse
486396a81b41Smrg  pkg_failed=yes
48648b22bf3fSmrgfi
486596a81b41Smrg else
486696a81b41Smrg    pkg_failed=untried
48678b22bf3fSmrgfi
48688b22bf3fSmrg
48698b22bf3fSmrg
48708b22bf3fSmrg
487196a81b41Smrgif test $pkg_failed = yes; then
48728b22bf3fSmrg
487396a81b41Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
487496a81b41Smrg        _pkg_short_errors_supported=yes
487596a81b41Smrgelse
487696a81b41Smrg        _pkg_short_errors_supported=no
487796a81b41Smrgfi
487896a81b41Smrg        if test $_pkg_short_errors_supported = yes; then
487996a81b41Smrg	        XRDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu x11" 2>&1`
488096a81b41Smrg        else
488196a81b41Smrg	        XRDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu x11" 2>&1`
488296a81b41Smrg        fi
488396a81b41Smrg	# Put the nasty error message in config.log where it belongs
488496a81b41Smrg	echo "$XRDB_PKG_ERRORS" >&5
48858b22bf3fSmrg
48865bd32fd1Smrg	as_fn_error $? "Package requirements (xmuu x11) were not met:
48878b22bf3fSmrg
488896a81b41Smrg$XRDB_PKG_ERRORS
48898b22bf3fSmrg
489096a81b41SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
489196a81b41Smrginstalled software in a non-standard prefix.
48928b22bf3fSmrg
489396a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS
489496a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config.
489596a81b41SmrgSee the pkg-config man page for more details.
48965bd32fd1Smrg" "$LINENO" 5
489796a81b41Smrgelif test $pkg_failed = untried; then
48985bd32fd1Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
489996a81b41Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49005bd32fd1Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
490196a81b41Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
490296a81b41Smrgpath to pkg-config.
49038b22bf3fSmrg
490496a81b41SmrgAlternatively, you may set the environment variables XRDB_CFLAGS
490596a81b41Smrgand XRDB_LIBS to avoid the need to call pkg-config.
490696a81b41SmrgSee the pkg-config man page for more details.
49078b22bf3fSmrg
490896a81b41SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
49095bd32fd1SmrgSee \`config.log' for more details" "$LINENO" 5; }
49108b22bf3fSmrgelse
491196a81b41Smrg	XRDB_CFLAGS=$pkg_cv_XRDB_CFLAGS
491296a81b41Smrg	XRDB_LIBS=$pkg_cv_XRDB_LIBS
49135bd32fd1Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
491496a81b41Smrg$as_echo "yes" >&6; }
491596a81b41Smrg	:
49168b22bf3fSmrgfi
49178b22bf3fSmrg
49188b22bf3fSmrgac_config_files="$ac_config_files Makefile"
49198b22bf3fSmrg
49208b22bf3fSmrgcat >confcache <<\_ACEOF
49218b22bf3fSmrg# This file is a shell script that caches the results of configure
49228b22bf3fSmrg# tests run on this system so they can be shared between configure
49238b22bf3fSmrg# scripts and configure runs, see configure's option --config-cache.
49248b22bf3fSmrg# It is not useful on other systems.  If it contains results you don't
49258b22bf3fSmrg# want to keep, you may remove or edit it.
49268b22bf3fSmrg#
49278b22bf3fSmrg# config.status only pays attention to the cache file if you give it
49288b22bf3fSmrg# the --recheck option to rerun configure.
49298b22bf3fSmrg#
49308b22bf3fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
49318b22bf3fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
49328b22bf3fSmrg# following values.
49338b22bf3fSmrg
49348b22bf3fSmrg_ACEOF
49358b22bf3fSmrg
49368b22bf3fSmrg# The following way of writing the cache mishandles newlines in values,
49378b22bf3fSmrg# but we know of no workaround that is simple, portable, and efficient.
49388b22bf3fSmrg# So, we kill variables containing newlines.
49398b22bf3fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
49408b22bf3fSmrg# and sets the high bit in the cache file unless we assign to the vars.
49418b22bf3fSmrg(
49428b22bf3fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49438b22bf3fSmrg    eval ac_val=\$$ac_var
49448b22bf3fSmrg    case $ac_val in #(
49458b22bf3fSmrg    *${as_nl}*)
49468b22bf3fSmrg      case $ac_var in #(
49475bd32fd1Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
494896a81b41Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
49498b22bf3fSmrg      esac
49508b22bf3fSmrg      case $ac_var in #(
49518b22bf3fSmrg      _ | IFS | as_nl) ;; #(
495296a81b41Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
49535bd32fd1Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
49548b22bf3fSmrg      esac ;;
49558b22bf3fSmrg    esac
49568b22bf3fSmrg  done
49578b22bf3fSmrg
49588b22bf3fSmrg  (set) 2>&1 |
49598b22bf3fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
49608b22bf3fSmrg    *${as_nl}ac_space=\ *)
49615bd32fd1Smrg      # `set' does not quote correctly, so add quotes: double-quote
49625bd32fd1Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
49638b22bf3fSmrg      sed -n \
49648b22bf3fSmrg	"s/'/'\\\\''/g;
49658b22bf3fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49668b22bf3fSmrg      ;; #(
49678b22bf3fSmrg    *)
49688b22bf3fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
49698b22bf3fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49708b22bf3fSmrg      ;;
49718b22bf3fSmrg    esac |
49728b22bf3fSmrg    sort
49738b22bf3fSmrg) |
49748b22bf3fSmrg  sed '
49758b22bf3fSmrg     /^ac_cv_env_/b end
49768b22bf3fSmrg     t clear
49778b22bf3fSmrg     :clear
49788b22bf3fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49798b22bf3fSmrg     t end
49808b22bf3fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49818b22bf3fSmrg     :end' >>confcache
49828b22bf3fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49838b22bf3fSmrg  if test -w "$cache_file"; then
49845bd32fd1Smrg    if test "x$cache_file" != "x/dev/null"; then
49855bd32fd1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
498696a81b41Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
49875bd32fd1Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
49885bd32fd1Smrg	cat confcache >"$cache_file"
49895bd32fd1Smrg      else
49905bd32fd1Smrg        case $cache_file in #(
49915bd32fd1Smrg        */* | ?:*)
49925bd32fd1Smrg	  mv -f confcache "$cache_file"$$ &&
49935bd32fd1Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
49945bd32fd1Smrg        *)
49955bd32fd1Smrg	  mv -f confcache "$cache_file" ;;
49965bd32fd1Smrg	esac
49975bd32fd1Smrg      fi
49985bd32fd1Smrg    fi
49998b22bf3fSmrg  else
50005bd32fd1Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
500196a81b41Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50028b22bf3fSmrg  fi
50038b22bf3fSmrgfi
50048b22bf3fSmrgrm -f confcache
50058b22bf3fSmrg
50068b22bf3fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
50078b22bf3fSmrg# Let make expand exec_prefix.
50088b22bf3fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50098b22bf3fSmrg
50108b22bf3fSmrgDEFS=-DHAVE_CONFIG_H
50118b22bf3fSmrg
50128b22bf3fSmrgac_libobjs=
50138b22bf3fSmrgac_ltlibobjs=
50145bd32fd1SmrgU=
50158b22bf3fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50168b22bf3fSmrg  # 1. Remove the extension, and $U if already installed.
50178b22bf3fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
501896a81b41Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
50198b22bf3fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
50208b22bf3fSmrg  #    will be set to the directory where LIBOBJS objects are built.
50215bd32fd1Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50225bd32fd1Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
50238b22bf3fSmrgdone
50248b22bf3fSmrgLIBOBJS=$ac_libobjs
50258b22bf3fSmrg
50268b22bf3fSmrgLTLIBOBJS=$ac_ltlibobjs
50278b22bf3fSmrg
50288b22bf3fSmrg
502996a81b41Smrg if test -n "$EXEEXT"; then
503096a81b41Smrg  am__EXEEXT_TRUE=
503196a81b41Smrg  am__EXEEXT_FALSE='#'
503296a81b41Smrgelse
503396a81b41Smrg  am__EXEEXT_TRUE='#'
503496a81b41Smrg  am__EXEEXT_FALSE=
503596a81b41Smrgfi
503696a81b41Smrg
50378b22bf3fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
50385bd32fd1Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
50395bd32fd1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
50408b22bf3fSmrgfi
50418b22bf3fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
50425bd32fd1Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
50435bd32fd1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
50448b22bf3fSmrgfi
50458b22bf3fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50465bd32fd1Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
50475bd32fd1SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
50488b22bf3fSmrgfi
50498b22bf3fSmrg
50505bd32fd1Smrg: "${CONFIG_STATUS=./config.status}"
505196a81b41Smrgac_write_fail=0
50528b22bf3fSmrgac_clean_files_save=$ac_clean_files
50538b22bf3fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
50545bd32fd1Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
505596a81b41Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50565bd32fd1Smrgas_write_fail=0
50575bd32fd1Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
50588b22bf3fSmrg#! $SHELL
50598b22bf3fSmrg# Generated by $as_me.
50608b22bf3fSmrg# Run this file to recreate the current configuration.
50618b22bf3fSmrg# Compiler output produced by configure, useful for debugging
50628b22bf3fSmrg# configure, is in config.log if it exists.
50638b22bf3fSmrg
50648b22bf3fSmrgdebug=false
50658b22bf3fSmrgac_cs_recheck=false
50668b22bf3fSmrgac_cs_silent=false
50678b22bf3fSmrg
50685bd32fd1SmrgSHELL=\${CONFIG_SHELL-$SHELL}
50695bd32fd1Smrgexport SHELL
50705bd32fd1Smrg_ASEOF
50715bd32fd1Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
50725bd32fd1Smrg## -------------------- ##
50735bd32fd1Smrg## M4sh Initialization. ##
50745bd32fd1Smrg## -------------------- ##
50758b22bf3fSmrg
50768b22bf3fSmrg# Be more Bourne compatible
50778b22bf3fSmrgDUALCASE=1; export DUALCASE # for MKS sh
50785bd32fd1Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
50798b22bf3fSmrg  emulate sh
50808b22bf3fSmrg  NULLCMD=:
508196a81b41Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50828b22bf3fSmrg  # is contrary to our usage.  Disable this feature.
50838b22bf3fSmrg  alias -g '${1+"$@"}'='"$@"'
50848b22bf3fSmrg  setopt NO_GLOB_SUBST
50858b22bf3fSmrgelse
50865bd32fd1Smrg  case `(set -o) 2>/dev/null` in #(
50875bd32fd1Smrg  *posix*) :
50885bd32fd1Smrg    set -o posix ;; #(
50895bd32fd1Smrg  *) :
50905bd32fd1Smrg     ;;
50918b22bf3fSmrgesac
50928b22bf3fSmrgfi
50938b22bf3fSmrg
50948b22bf3fSmrg
509596a81b41Smrgas_nl='
509696a81b41Smrg'
509796a81b41Smrgexport as_nl
509896a81b41Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
509996a81b41Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
510096a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
510196a81b41Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51025bd32fd1Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
51035bd32fd1Smrg# but without wasting forks for bash or zsh.
51045bd32fd1Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
51055bd32fd1Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51065bd32fd1Smrg  as_echo='print -r --'
51075bd32fd1Smrg  as_echo_n='print -rn --'
51085bd32fd1Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
510996a81b41Smrg  as_echo='printf %s\n'
511096a81b41Smrg  as_echo_n='printf %s'
511196a81b41Smrgelse
511296a81b41Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
511396a81b41Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
511496a81b41Smrg    as_echo_n='/usr/ucb/echo -n'
51158b22bf3fSmrg  else
511696a81b41Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
511796a81b41Smrg    as_echo_n_body='eval
511896a81b41Smrg      arg=$1;
51195bd32fd1Smrg      case $arg in #(
512096a81b41Smrg      *"$as_nl"*)
512196a81b41Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
512296a81b41Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
512396a81b41Smrg      esac;
512496a81b41Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
512596a81b41Smrg    '
512696a81b41Smrg    export as_echo_n_body
512796a81b41Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
51288b22bf3fSmrg  fi
512996a81b41Smrg  export as_echo_body
513096a81b41Smrg  as_echo='sh -c $as_echo_body as_echo'
513196a81b41Smrgfi
513296a81b41Smrg
513396a81b41Smrg# The user is always right.
513496a81b41Smrgif test "${PATH_SEPARATOR+set}" != set; then
513596a81b41Smrg  PATH_SEPARATOR=:
513696a81b41Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
513796a81b41Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
513896a81b41Smrg      PATH_SEPARATOR=';'
513996a81b41Smrg  }
51408b22bf3fSmrgfi
51418b22bf3fSmrg
51428b22bf3fSmrg
51438b22bf3fSmrg# IFS
51448b22bf3fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
51458b22bf3fSmrg# there to prevent editors from complaining about space-tab.
51468b22bf3fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
51478b22bf3fSmrg# splitting by setting IFS to empty value.)
51488b22bf3fSmrgIFS=" ""	$as_nl"
51498b22bf3fSmrg
51508b22bf3fSmrg# Find who we are.  Look in the path if we contain no directory separator.
51515bd32fd1Smrgas_myself=
51525bd32fd1Smrgcase $0 in #((
51538b22bf3fSmrg  *[\\/]* ) as_myself=$0 ;;
51548b22bf3fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51558b22bf3fSmrgfor as_dir in $PATH
51568b22bf3fSmrgdo
51578b22bf3fSmrg  IFS=$as_save_IFS
51588b22bf3fSmrg  test -z "$as_dir" && as_dir=.
51595bd32fd1Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51605bd32fd1Smrg  done
51618b22bf3fSmrgIFS=$as_save_IFS
51628b22bf3fSmrg
51638b22bf3fSmrg     ;;
51648b22bf3fSmrgesac
51658b22bf3fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
51668b22bf3fSmrg# in which case we are not to be found in the path.
51678b22bf3fSmrgif test "x$as_myself" = x; then
51688b22bf3fSmrg  as_myself=$0
51698b22bf3fSmrgfi
51708b22bf3fSmrgif test ! -f "$as_myself"; then
517196a81b41Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51725bd32fd1Smrg  exit 1
51738b22bf3fSmrgfi
51748b22bf3fSmrg
51755bd32fd1Smrg# Unset variables that we do not need and which cause bugs (e.g. in
51765bd32fd1Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
51775bd32fd1Smrg# suppresses any "Segmentation fault" message there.  '((' could
51785bd32fd1Smrg# trigger a bug in pdksh 5.2.14.
51795bd32fd1Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
51805bd32fd1Smrgdo eval test x\${$as_var+set} = xset \
51815bd32fd1Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
51828b22bf3fSmrgdone
51838b22bf3fSmrgPS1='$ '
51848b22bf3fSmrgPS2='> '
51858b22bf3fSmrgPS4='+ '
51868b22bf3fSmrg
51878b22bf3fSmrg# NLS nuisances.
518896a81b41SmrgLC_ALL=C
518996a81b41Smrgexport LC_ALL
519096a81b41SmrgLANGUAGE=C
519196a81b41Smrgexport LANGUAGE
51928b22bf3fSmrg
51935bd32fd1Smrg# CDPATH.
51945bd32fd1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51955bd32fd1Smrg
51965bd32fd1Smrg
51975bd32fd1Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
51985bd32fd1Smrg# ----------------------------------------
51995bd32fd1Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
52005bd32fd1Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
52015bd32fd1Smrg# script with STATUS, using 1 if that was 0.
52025bd32fd1Smrgas_fn_error ()
52035bd32fd1Smrg{
52045bd32fd1Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
52055bd32fd1Smrg  if test "$4"; then
52065bd32fd1Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
52075bd32fd1Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
52085bd32fd1Smrg  fi
52095bd32fd1Smrg  $as_echo "$as_me: error: $2" >&2
52105bd32fd1Smrg  as_fn_exit $as_status
52115bd32fd1Smrg} # as_fn_error
52125bd32fd1Smrg
52135bd32fd1Smrg
52145bd32fd1Smrg# as_fn_set_status STATUS
52155bd32fd1Smrg# -----------------------
52165bd32fd1Smrg# Set $? to STATUS, without forking.
52175bd32fd1Smrgas_fn_set_status ()
52185bd32fd1Smrg{
52195bd32fd1Smrg  return $1
52205bd32fd1Smrg} # as_fn_set_status
52215bd32fd1Smrg
52225bd32fd1Smrg# as_fn_exit STATUS
52235bd32fd1Smrg# -----------------
52245bd32fd1Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
52255bd32fd1Smrgas_fn_exit ()
52265bd32fd1Smrg{
52275bd32fd1Smrg  set +e
52285bd32fd1Smrg  as_fn_set_status $1
52295bd32fd1Smrg  exit $1
52305bd32fd1Smrg} # as_fn_exit
52315bd32fd1Smrg
52325bd32fd1Smrg# as_fn_unset VAR
52335bd32fd1Smrg# ---------------
52345bd32fd1Smrg# Portably unset VAR.
52355bd32fd1Smrgas_fn_unset ()
52365bd32fd1Smrg{
52375bd32fd1Smrg  { eval $1=; unset $1;}
52385bd32fd1Smrg}
52395bd32fd1Smrgas_unset=as_fn_unset
52405bd32fd1Smrg# as_fn_append VAR VALUE
52415bd32fd1Smrg# ----------------------
52425bd32fd1Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
52435bd32fd1Smrg# advantage of any shell optimizations that allow amortized linear growth over
52445bd32fd1Smrg# repeated appends, instead of the typical quadratic growth present in naive
52455bd32fd1Smrg# implementations.
52465bd32fd1Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
52475bd32fd1Smrg  eval 'as_fn_append ()
52485bd32fd1Smrg  {
52495bd32fd1Smrg    eval $1+=\$2
52505bd32fd1Smrg  }'
52515bd32fd1Smrgelse
52525bd32fd1Smrg  as_fn_append ()
52535bd32fd1Smrg  {
52545bd32fd1Smrg    eval $1=\$$1\$2
52555bd32fd1Smrg  }
52565bd32fd1Smrgfi # as_fn_append
52575bd32fd1Smrg
52585bd32fd1Smrg# as_fn_arith ARG...
52595bd32fd1Smrg# ------------------
52605bd32fd1Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
52615bd32fd1Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
52625bd32fd1Smrg# must be portable across $(()) and expr.
52635bd32fd1Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
52645bd32fd1Smrg  eval 'as_fn_arith ()
52655bd32fd1Smrg  {
52665bd32fd1Smrg    as_val=$(( $* ))
52675bd32fd1Smrg  }'
52685bd32fd1Smrgelse
52695bd32fd1Smrg  as_fn_arith ()
52705bd32fd1Smrg  {
52715bd32fd1Smrg    as_val=`expr "$@" || test $? -eq 1`
52725bd32fd1Smrg  }
52735bd32fd1Smrgfi # as_fn_arith
52745bd32fd1Smrg
52755bd32fd1Smrg
52768b22bf3fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
52778b22bf3fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
52788b22bf3fSmrg  as_expr=expr
52798b22bf3fSmrgelse
52808b22bf3fSmrg  as_expr=false
52818b22bf3fSmrgfi
52828b22bf3fSmrg
52838b22bf3fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
52848b22bf3fSmrg  as_basename=basename
52858b22bf3fSmrgelse
52868b22bf3fSmrg  as_basename=false
52878b22bf3fSmrgfi
52888b22bf3fSmrg
52895bd32fd1Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
52905bd32fd1Smrg  as_dirname=dirname
52915bd32fd1Smrgelse
52925bd32fd1Smrg  as_dirname=false
52935bd32fd1Smrgfi
52948b22bf3fSmrg
52958b22bf3fSmrgas_me=`$as_basename -- "$0" ||
52968b22bf3fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52978b22bf3fSmrg	 X"$0" : 'X\(//\)$' \| \
52988b22bf3fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
529996a81b41Smrg$as_echo X/"$0" |
53008b22bf3fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
53018b22bf3fSmrg	    s//\1/
53028b22bf3fSmrg	    q
53038b22bf3fSmrg	  }
53048b22bf3fSmrg	  /^X\/\(\/\/\)$/{
53058b22bf3fSmrg	    s//\1/
53068b22bf3fSmrg	    q
53078b22bf3fSmrg	  }
53088b22bf3fSmrg	  /^X\/\(\/\).*/{
53098b22bf3fSmrg	    s//\1/
53108b22bf3fSmrg	    q
53118b22bf3fSmrg	  }
53128b22bf3fSmrg	  s/.*/./; q'`
53138b22bf3fSmrg
53145bd32fd1Smrg# Avoid depending upon Character Ranges.
53155bd32fd1Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
53165bd32fd1Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53175bd32fd1Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
53185bd32fd1Smrgas_cr_digits='0123456789'
53195bd32fd1Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
53208b22bf3fSmrg
53218b22bf3fSmrgECHO_C= ECHO_N= ECHO_T=
53225bd32fd1Smrgcase `echo -n x` in #(((((
53238b22bf3fSmrg-n*)
53245bd32fd1Smrg  case `echo 'xy\c'` in
53258b22bf3fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
53265bd32fd1Smrg  xy)  ECHO_C='\c';;
53275bd32fd1Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
53285bd32fd1Smrg       ECHO_T='	';;
53298b22bf3fSmrg  esac;;
53308b22bf3fSmrg*)
53318b22bf3fSmrg  ECHO_N='-n';;
53328b22bf3fSmrgesac
53338b22bf3fSmrg
53348b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.file
53358b22bf3fSmrgif test -d conf$$.dir; then
53368b22bf3fSmrg  rm -f conf$$.dir/conf$$.file
53378b22bf3fSmrgelse
53388b22bf3fSmrg  rm -f conf$$.dir
533996a81b41Smrg  mkdir conf$$.dir 2>/dev/null
534096a81b41Smrgfi
534196a81b41Smrgif (echo >conf$$.file) 2>/dev/null; then
534296a81b41Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
534396a81b41Smrg    as_ln_s='ln -s'
534496a81b41Smrg    # ... but there are two gotchas:
534596a81b41Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
534696a81b41Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534796a81b41Smrg    # In both cases, we have to default to `cp -p'.
534896a81b41Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534996a81b41Smrg      as_ln_s='cp -p'
535096a81b41Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
535196a81b41Smrg    as_ln_s=ln
535296a81b41Smrg  else
53538b22bf3fSmrg    as_ln_s='cp -p'
535496a81b41Smrg  fi
53558b22bf3fSmrgelse
53568b22bf3fSmrg  as_ln_s='cp -p'
53578b22bf3fSmrgfi
53588b22bf3fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53598b22bf3fSmrgrmdir conf$$.dir 2>/dev/null
53608b22bf3fSmrg
53615bd32fd1Smrg
53625bd32fd1Smrg# as_fn_mkdir_p
53635bd32fd1Smrg# -------------
53645bd32fd1Smrg# Create "$as_dir" as a directory, including parents if necessary.
53655bd32fd1Smrgas_fn_mkdir_p ()
53665bd32fd1Smrg{
53675bd32fd1Smrg
53685bd32fd1Smrg  case $as_dir in #(
53695bd32fd1Smrg  -*) as_dir=./$as_dir;;
53705bd32fd1Smrg  esac
53715bd32fd1Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
53725bd32fd1Smrg    as_dirs=
53735bd32fd1Smrg    while :; do
53745bd32fd1Smrg      case $as_dir in #(
53755bd32fd1Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
53765bd32fd1Smrg      *) as_qdir=$as_dir;;
53775bd32fd1Smrg      esac
53785bd32fd1Smrg      as_dirs="'$as_qdir' $as_dirs"
53795bd32fd1Smrg      as_dir=`$as_dirname -- "$as_dir" ||
53805bd32fd1Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53815bd32fd1Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
53825bd32fd1Smrg	 X"$as_dir" : 'X\(//\)$' \| \
53835bd32fd1Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
53845bd32fd1Smrg$as_echo X"$as_dir" |
53855bd32fd1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
53865bd32fd1Smrg	    s//\1/
53875bd32fd1Smrg	    q
53885bd32fd1Smrg	  }
53895bd32fd1Smrg	  /^X\(\/\/\)[^/].*/{
53905bd32fd1Smrg	    s//\1/
53915bd32fd1Smrg	    q
53925bd32fd1Smrg	  }
53935bd32fd1Smrg	  /^X\(\/\/\)$/{
53945bd32fd1Smrg	    s//\1/
53955bd32fd1Smrg	    q
53965bd32fd1Smrg	  }
53975bd32fd1Smrg	  /^X\(\/\).*/{
53985bd32fd1Smrg	    s//\1/
53995bd32fd1Smrg	    q
54005bd32fd1Smrg	  }
54015bd32fd1Smrg	  s/.*/./; q'`
54025bd32fd1Smrg      test -d "$as_dir" && break
54035bd32fd1Smrg    done
54045bd32fd1Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
54055bd32fd1Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
54065bd32fd1Smrg
54075bd32fd1Smrg
54085bd32fd1Smrg} # as_fn_mkdir_p
54098b22bf3fSmrgif mkdir -p . 2>/dev/null; then
54105bd32fd1Smrg  as_mkdir_p='mkdir -p "$as_dir"'
54118b22bf3fSmrgelse
54128b22bf3fSmrg  test -d ./-p && rmdir ./-p
54138b22bf3fSmrg  as_mkdir_p=false
54148b22bf3fSmrgfi
54158b22bf3fSmrg
54168b22bf3fSmrgif test -x / >/dev/null 2>&1; then
54178b22bf3fSmrg  as_test_x='test -x'
54188b22bf3fSmrgelse
54198b22bf3fSmrg  if ls -dL / >/dev/null 2>&1; then
54208b22bf3fSmrg    as_ls_L_option=L
54218b22bf3fSmrg  else
54228b22bf3fSmrg    as_ls_L_option=
54238b22bf3fSmrg  fi
54248b22bf3fSmrg  as_test_x='
54258b22bf3fSmrg    eval sh -c '\''
54268b22bf3fSmrg      if test -d "$1"; then
542796a81b41Smrg	test -d "$1/.";
54288b22bf3fSmrg      else
54295bd32fd1Smrg	case $1 in #(
543096a81b41Smrg	-*)set "./$1";;
54318b22bf3fSmrg	esac;
54325bd32fd1Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
54338b22bf3fSmrg	???[sx]*):;;*)false;;esac;fi
54348b22bf3fSmrg    '\'' sh
54358b22bf3fSmrg  '
54368b22bf3fSmrgfi
54378b22bf3fSmrgas_executable_p=$as_test_x
54388b22bf3fSmrg
54398b22bf3fSmrg# Sed expression to map a string onto a valid CPP name.
54408b22bf3fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54418b22bf3fSmrg
54428b22bf3fSmrg# Sed expression to map a string onto a valid variable name.
54438b22bf3fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54448b22bf3fSmrg
54458b22bf3fSmrg
54468b22bf3fSmrgexec 6>&1
54475bd32fd1Smrg## ----------------------------------- ##
54485bd32fd1Smrg## Main body of $CONFIG_STATUS script. ##
54495bd32fd1Smrg## ----------------------------------- ##
54505bd32fd1Smrg_ASEOF
54515bd32fd1Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
54528b22bf3fSmrg
54535bd32fd1Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54545bd32fd1Smrg# Save the log message, to keep $0 and so on meaningful, and to
54558b22bf3fSmrg# report actual input values of CONFIG_FILES etc. instead of their
54568b22bf3fSmrg# values after options handling.
54578b22bf3fSmrgac_log="
54585bd32fd1SmrgThis file was extended by xrdb $as_me 1.0.7, which was
54595bd32fd1Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
54608b22bf3fSmrg
54618b22bf3fSmrg  CONFIG_FILES    = $CONFIG_FILES
54628b22bf3fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
54638b22bf3fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
54648b22bf3fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
54658b22bf3fSmrg  $ $0 $@
54668b22bf3fSmrg
54678b22bf3fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
54688b22bf3fSmrg"
54698b22bf3fSmrg
54708b22bf3fSmrg_ACEOF
54718b22bf3fSmrg
547296a81b41Smrgcase $ac_config_files in *"
547396a81b41Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
547496a81b41Smrgesac
547596a81b41Smrg
547696a81b41Smrgcase $ac_config_headers in *"
547796a81b41Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
547896a81b41Smrgesac
547996a81b41Smrg
548096a81b41Smrg
548196a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54828b22bf3fSmrg# Files that config.status was made for.
54838b22bf3fSmrgconfig_files="$ac_config_files"
54848b22bf3fSmrgconfig_headers="$ac_config_headers"
54858b22bf3fSmrgconfig_commands="$ac_config_commands"
54868b22bf3fSmrg
54878b22bf3fSmrg_ACEOF
54888b22bf3fSmrg
548996a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54908b22bf3fSmrgac_cs_usage="\
54915bd32fd1Smrg\`$as_me' instantiates files and other configuration actions
54925bd32fd1Smrgfrom templates according to the current configuration.  Unless the files
54935bd32fd1Smrgand actions are specified as TAGs, all are instantiated by default.
54948b22bf3fSmrg
54955bd32fd1SmrgUsage: $0 [OPTION]... [TAG]...
54968b22bf3fSmrg
54978b22bf3fSmrg  -h, --help       print this help, then exit
54988b22bf3fSmrg  -V, --version    print version number and configuration settings, then exit
54995bd32fd1Smrg      --config     print configuration, then exit
550096a81b41Smrg  -q, --quiet, --silent
550196a81b41Smrg                   do not print progress messages
55028b22bf3fSmrg  -d, --debug      don't remove temporary files
55038b22bf3fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
550496a81b41Smrg      --file=FILE[:TEMPLATE]
550596a81b41Smrg                   instantiate the configuration file FILE
550696a81b41Smrg      --header=FILE[:TEMPLATE]
550796a81b41Smrg                   instantiate the configuration header FILE
55088b22bf3fSmrg
55098b22bf3fSmrgConfiguration files:
55108b22bf3fSmrg$config_files
55118b22bf3fSmrg
55128b22bf3fSmrgConfiguration headers:
55138b22bf3fSmrg$config_headers
55148b22bf3fSmrg
55158b22bf3fSmrgConfiguration commands:
55168b22bf3fSmrg$config_commands
55178b22bf3fSmrg
55185bd32fd1SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
55198b22bf3fSmrg
55208b22bf3fSmrg_ACEOF
552196a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55225bd32fd1Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
55238b22bf3fSmrgac_cs_version="\\
55245bd32fd1Smrgxrdb config.status 1.0.7
55255bd32fd1Smrgconfigured by $0, generated by GNU Autoconf 2.68,
55265bd32fd1Smrg  with options \\"\$ac_cs_config\\"
55278b22bf3fSmrg
55285bd32fd1SmrgCopyright (C) 2010 Free Software Foundation, Inc.
55298b22bf3fSmrgThis config.status script is free software; the Free Software Foundation
55308b22bf3fSmrggives unlimited permission to copy, distribute and modify it."
55318b22bf3fSmrg
55328b22bf3fSmrgac_pwd='$ac_pwd'
55338b22bf3fSmrgsrcdir='$srcdir'
55348b22bf3fSmrgINSTALL='$INSTALL'
55358b22bf3fSmrgMKDIR_P='$MKDIR_P'
553696a81b41SmrgAWK='$AWK'
553796a81b41Smrgtest -n "\$AWK" || AWK=awk
55388b22bf3fSmrg_ACEOF
55398b22bf3fSmrg
554096a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
554196a81b41Smrg# The default lists apply if the user does not specify any file.
55428b22bf3fSmrgac_need_defaults=:
55438b22bf3fSmrgwhile test $# != 0
55448b22bf3fSmrgdo
55458b22bf3fSmrg  case $1 in
55465bd32fd1Smrg  --*=?*)
55478b22bf3fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
55488b22bf3fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
55498b22bf3fSmrg    ac_shift=:
55508b22bf3fSmrg    ;;
55515bd32fd1Smrg  --*=)
55525bd32fd1Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
55535bd32fd1Smrg    ac_optarg=
55545bd32fd1Smrg    ac_shift=:
55555bd32fd1Smrg    ;;
55568b22bf3fSmrg  *)
55578b22bf3fSmrg    ac_option=$1
55588b22bf3fSmrg    ac_optarg=$2
55598b22bf3fSmrg    ac_shift=shift
55608b22bf3fSmrg    ;;
55618b22bf3fSmrg  esac
55628b22bf3fSmrg
55638b22bf3fSmrg  case $ac_option in
55648b22bf3fSmrg  # Handling of the options.
55658b22bf3fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
55668b22bf3fSmrg    ac_cs_recheck=: ;;
55678b22bf3fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
556896a81b41Smrg    $as_echo "$ac_cs_version"; exit ;;
55695bd32fd1Smrg  --config | --confi | --conf | --con | --co | --c )
55705bd32fd1Smrg    $as_echo "$ac_cs_config"; exit ;;
55718b22bf3fSmrg  --debug | --debu | --deb | --de | --d | -d )
55728b22bf3fSmrg    debug=: ;;
55738b22bf3fSmrg  --file | --fil | --fi | --f )
55748b22bf3fSmrg    $ac_shift
557596a81b41Smrg    case $ac_optarg in
557696a81b41Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
55775bd32fd1Smrg    '') as_fn_error $? "missing file argument" ;;
557896a81b41Smrg    esac
55795bd32fd1Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
55808b22bf3fSmrg    ac_need_defaults=false;;
55818b22bf3fSmrg  --header | --heade | --head | --hea )
55828b22bf3fSmrg    $ac_shift
558396a81b41Smrg    case $ac_optarg in
558496a81b41Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
558596a81b41Smrg    esac
55865bd32fd1Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
55878b22bf3fSmrg    ac_need_defaults=false;;
55888b22bf3fSmrg  --he | --h)
55898b22bf3fSmrg    # Conflict between --help and --header
55905bd32fd1Smrg    as_fn_error $? "ambiguous option: \`$1'
55915bd32fd1SmrgTry \`$0 --help' for more information.";;
55928b22bf3fSmrg  --help | --hel | -h )
559396a81b41Smrg    $as_echo "$ac_cs_usage"; exit ;;
55948b22bf3fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
55958b22bf3fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
55968b22bf3fSmrg    ac_cs_silent=: ;;
55978b22bf3fSmrg
55988b22bf3fSmrg  # This is an error.
55995bd32fd1Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
56005bd32fd1SmrgTry \`$0 --help' for more information." ;;
56018b22bf3fSmrg
56025bd32fd1Smrg  *) as_fn_append ac_config_targets " $1"
56038b22bf3fSmrg     ac_need_defaults=false ;;
56048b22bf3fSmrg
56058b22bf3fSmrg  esac
56068b22bf3fSmrg  shift
56078b22bf3fSmrgdone
56088b22bf3fSmrg
56098b22bf3fSmrgac_configure_extra_args=
56108b22bf3fSmrg
56118b22bf3fSmrgif $ac_cs_silent; then
56128b22bf3fSmrg  exec 6>/dev/null
56138b22bf3fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
56148b22bf3fSmrgfi
56158b22bf3fSmrg
56168b22bf3fSmrg_ACEOF
561796a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56188b22bf3fSmrgif \$ac_cs_recheck; then
561996a81b41Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
562096a81b41Smrg  shift
562196a81b41Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
562296a81b41Smrg  CONFIG_SHELL='$SHELL'
56238b22bf3fSmrg  export CONFIG_SHELL
562496a81b41Smrg  exec "\$@"
56258b22bf3fSmrgfi
56268b22bf3fSmrg
56278b22bf3fSmrg_ACEOF
562896a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56298b22bf3fSmrgexec 5>>config.log
56308b22bf3fSmrg{
56318b22bf3fSmrg  echo
56328b22bf3fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56338b22bf3fSmrg## Running $as_me. ##
56348b22bf3fSmrg_ASBOX
563596a81b41Smrg  $as_echo "$ac_log"
56368b22bf3fSmrg} >&5
56378b22bf3fSmrg
56388b22bf3fSmrg_ACEOF
563996a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56408b22bf3fSmrg#
56418b22bf3fSmrg# INIT-COMMANDS
56428b22bf3fSmrg#
56438b22bf3fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
56448b22bf3fSmrg
56458b22bf3fSmrg_ACEOF
56468b22bf3fSmrg
564796a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56488b22bf3fSmrg
56498b22bf3fSmrg# Handling of arguments.
56508b22bf3fSmrgfor ac_config_target in $ac_config_targets
56518b22bf3fSmrgdo
56528b22bf3fSmrg  case $ac_config_target in
56538b22bf3fSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
56548b22bf3fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
56558b22bf3fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56568b22bf3fSmrg
56575bd32fd1Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
56588b22bf3fSmrg  esac
56598b22bf3fSmrgdone
56608b22bf3fSmrg
56618b22bf3fSmrg
56628b22bf3fSmrg# If the user did not use the arguments to specify the items to instantiate,
56638b22bf3fSmrg# then the envvar interface is used.  Set only those that are not.
56648b22bf3fSmrg# We use the long form for the default assignment because of an extremely
56658b22bf3fSmrg# bizarre bug on SunOS 4.1.3.
56668b22bf3fSmrgif $ac_need_defaults; then
56678b22bf3fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56688b22bf3fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56698b22bf3fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56708b22bf3fSmrgfi
56718b22bf3fSmrg
56728b22bf3fSmrg# Have a temporary directory for convenience.  Make it in the build tree
56738b22bf3fSmrg# simply because there is no reason against having it here, and in addition,
56748b22bf3fSmrg# creating and moving files from /tmp can sometimes cause problems.
56758b22bf3fSmrg# Hook for its removal unless debugging.
56768b22bf3fSmrg# Note that there is a small window in which the directory will not be cleaned:
56778b22bf3fSmrg# after its creation but before its name has been assigned to `$tmp'.
56788b22bf3fSmrg$debug ||
56798b22bf3fSmrg{
56805bd32fd1Smrg  tmp= ac_tmp=
56818b22bf3fSmrg  trap 'exit_status=$?
56825bd32fd1Smrg  : "${ac_tmp:=$tmp}"
56835bd32fd1Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
56848b22bf3fSmrg' 0
56855bd32fd1Smrg  trap 'as_fn_exit 1' 1 2 13 15
56868b22bf3fSmrg}
56878b22bf3fSmrg# Create a (secure) tmp directory for tmp files.
56888b22bf3fSmrg
56898b22bf3fSmrg{
56908b22bf3fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
56915bd32fd1Smrg  test -d "$tmp"
56928b22bf3fSmrg}  ||
56938b22bf3fSmrg{
56948b22bf3fSmrg  tmp=./conf$$-$RANDOM
56958b22bf3fSmrg  (umask 077 && mkdir "$tmp")
56965bd32fd1Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
56975bd32fd1Smrgac_tmp=$tmp
56988b22bf3fSmrg
569996a81b41Smrg# Set up the scripts for CONFIG_FILES section.
570096a81b41Smrg# No need to generate them if there are no CONFIG_FILES.
570196a81b41Smrg# This happens for instance with `./config.status config.h'.
57028b22bf3fSmrgif test -n "$CONFIG_FILES"; then
57038b22bf3fSmrg
57048b22bf3fSmrg
57055bd32fd1Smrgac_cr=`echo X | tr X '\015'`
57065bd32fd1Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
57075bd32fd1Smrg# But we know of no other shell where ac_cr would be empty at this
57085bd32fd1Smrg# point, so we can use a bashism as a fallback.
57095bd32fd1Smrgif test "x$ac_cr" = x; then
57105bd32fd1Smrg  eval ac_cr=\$\'\\r\'
57115bd32fd1Smrgfi
571296a81b41Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
571396a81b41Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
571496a81b41Smrg  ac_cs_awk_cr='\\r'
571596a81b41Smrgelse
571696a81b41Smrg  ac_cs_awk_cr=$ac_cr
57178b22bf3fSmrgfi
57188b22bf3fSmrg
57195bd32fd1Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
57208b22bf3fSmrg_ACEOF
57218b22bf3fSmrg
57228b22bf3fSmrg
572396a81b41Smrg{
572496a81b41Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
572596a81b41Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
572696a81b41Smrg  echo "_ACEOF"
572796a81b41Smrg} >conf$$subs.sh ||
57285bd32fd1Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57295bd32fd1Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
57308b22bf3fSmrgac_delim='%!_!# '
57318b22bf3fSmrgfor ac_last_try in false false false false false :; do
573296a81b41Smrg  . ./conf$$subs.sh ||
57335bd32fd1Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57348b22bf3fSmrg
573596a81b41Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
573696a81b41Smrg  if test $ac_delim_n = $ac_delim_num; then
57378b22bf3fSmrg    break
57388b22bf3fSmrg  elif $ac_last_try; then
57395bd32fd1Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57408b22bf3fSmrg  else
57418b22bf3fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57428b22bf3fSmrg  fi
57438b22bf3fSmrgdone
574496a81b41Smrgrm -f conf$$subs.sh
57458b22bf3fSmrg
574696a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57475bd32fd1Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
574896a81b41Smrg_ACEOF
574996a81b41Smrgsed -n '
575096a81b41Smrgh
575196a81b41Smrgs/^/S["/; s/!.*/"]=/
575296a81b41Smrgp
575396a81b41Smrgg
575496a81b41Smrgs/^[^!]*!//
575596a81b41Smrg:repl
575696a81b41Smrgt repl
575796a81b41Smrgs/'"$ac_delim"'$//
575896a81b41Smrgt delim
575996a81b41Smrg:nl
576096a81b41Smrgh
57615bd32fd1Smrgs/\(.\{148\}\)..*/\1/
576296a81b41Smrgt more1
576396a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
576496a81b41Smrgp
576596a81b41Smrgn
576696a81b41Smrgb repl
576796a81b41Smrg:more1
576896a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
576996a81b41Smrgp
577096a81b41Smrgg
577196a81b41Smrgs/.\{148\}//
577296a81b41Smrgt nl
577396a81b41Smrg:delim
577496a81b41Smrgh
57755bd32fd1Smrgs/\(.\{148\}\)..*/\1/
577696a81b41Smrgt more2
577796a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
577896a81b41Smrgp
577996a81b41Smrgb
578096a81b41Smrg:more2
578196a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
578296a81b41Smrgp
578396a81b41Smrgg
578496a81b41Smrgs/.\{148\}//
578596a81b41Smrgt delim
578696a81b41Smrg' <conf$$subs.awk | sed '
578796a81b41Smrg/^[^""]/{
578896a81b41Smrg  N
578996a81b41Smrg  s/\n//
579096a81b41Smrg}
579196a81b41Smrg' >>$CONFIG_STATUS || ac_write_fail=1
579296a81b41Smrgrm -f conf$$subs.awk
579396a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
579496a81b41Smrg_ACAWK
57955bd32fd1Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
579696a81b41Smrg  for (key in S) S_is_set[key] = 1
579796a81b41Smrg  FS = ""
579896a81b41Smrg
579996a81b41Smrg}
580096a81b41Smrg{
580196a81b41Smrg  line = $ 0
580296a81b41Smrg  nfields = split(line, field, "@")
580396a81b41Smrg  substed = 0
580496a81b41Smrg  len = length(field[1])
580596a81b41Smrg  for (i = 2; i < nfields; i++) {
580696a81b41Smrg    key = field[i]
580796a81b41Smrg    keylen = length(key)
580896a81b41Smrg    if (S_is_set[key]) {
580996a81b41Smrg      value = S[key]
581096a81b41Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
581196a81b41Smrg      len += length(value) + length(field[++i])
581296a81b41Smrg      substed = 1
581396a81b41Smrg    } else
581496a81b41Smrg      len += 1 + keylen
581596a81b41Smrg  }
581696a81b41Smrg
581796a81b41Smrg  print line
581896a81b41Smrg}
58198b22bf3fSmrg
582096a81b41Smrg_ACAWK
58218b22bf3fSmrg_ACEOF
582296a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
582396a81b41Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
582496a81b41Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
582596a81b41Smrgelse
582696a81b41Smrg  cat
58275bd32fd1Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
58285bd32fd1Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
58298b22bf3fSmrg_ACEOF
58308b22bf3fSmrg
58315bd32fd1Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
58325bd32fd1Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
58338b22bf3fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
58348b22bf3fSmrg# (actually we leave an empty line to preserve line numbers).
58358b22bf3fSmrgif test "x$srcdir" = x.; then
58365bd32fd1Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
58375bd32fd1Smrgh
58385bd32fd1Smrgs///
58395bd32fd1Smrgs/^/:/
58405bd32fd1Smrgs/[	 ]*$/:/
58415bd32fd1Smrgs/:\$(srcdir):/:/g
58425bd32fd1Smrgs/:\${srcdir}:/:/g
58435bd32fd1Smrgs/:@srcdir@:/:/g
58445bd32fd1Smrgs/^:*//
58458b22bf3fSmrgs/:*$//
58465bd32fd1Smrgx
58475bd32fd1Smrgs/\(=[	 ]*\).*/\1/
58485bd32fd1SmrgG
58495bd32fd1Smrgs/\n//
58508b22bf3fSmrgs/^[^=]*=[	 ]*$//
58518b22bf3fSmrg}'
58528b22bf3fSmrgfi
58538b22bf3fSmrg
585496a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58558b22bf3fSmrgfi # test -n "$CONFIG_FILES"
58568b22bf3fSmrg
585796a81b41Smrg# Set up the scripts for CONFIG_HEADERS section.
585896a81b41Smrg# No need to generate them if there are no CONFIG_HEADERS.
585996a81b41Smrg# This happens for instance with `./config.status Makefile'.
586096a81b41Smrgif test -n "$CONFIG_HEADERS"; then
58615bd32fd1Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
586296a81b41SmrgBEGIN {
586396a81b41Smrg_ACEOF
586496a81b41Smrg
586596a81b41Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
586696a81b41Smrg# here-document in config.status, that substitutes the proper values into
586796a81b41Smrg# config.h.in to produce config.h.
586896a81b41Smrg
586996a81b41Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
587096a81b41Smrg# handling of long lines.
587196a81b41Smrgac_delim='%!_!# '
587296a81b41Smrgfor ac_last_try in false false :; do
58735bd32fd1Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
58745bd32fd1Smrg  if test -z "$ac_tt"; then
587596a81b41Smrg    break
587696a81b41Smrg  elif $ac_last_try; then
58775bd32fd1Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
587896a81b41Smrg  else
587996a81b41Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
588096a81b41Smrg  fi
588196a81b41Smrgdone
588296a81b41Smrg
588396a81b41Smrg# For the awk script, D is an array of macro values keyed by name,
588496a81b41Smrg# likewise P contains macro parameters if any.  Preserve backslash
588596a81b41Smrg# newline sequences.
588696a81b41Smrg
588796a81b41Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
588896a81b41Smrgsed -n '
588996a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g
589096a81b41Smrgt rset
589196a81b41Smrg:rset
589296a81b41Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
589396a81b41Smrgt def
589496a81b41Smrgd
589596a81b41Smrg:def
589696a81b41Smrgs/\\$//
589796a81b41Smrgt bsnl
589896a81b41Smrgs/["\\]/\\&/g
589996a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
590096a81b41SmrgD["\1"]=" \3"/p
590196a81b41Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
590296a81b41Smrgd
590396a81b41Smrg:bsnl
590496a81b41Smrgs/["\\]/\\&/g
590596a81b41Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
590696a81b41SmrgD["\1"]=" \3\\\\\\n"\\/p
590796a81b41Smrgt cont
590896a81b41Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
590996a81b41Smrgt cont
591096a81b41Smrgd
591196a81b41Smrg:cont
591296a81b41Smrgn
591396a81b41Smrgs/.\{148\}/&'"$ac_delim"'/g
591496a81b41Smrgt clear
591596a81b41Smrg:clear
591696a81b41Smrgs/\\$//
591796a81b41Smrgt bsnlc
591896a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
591996a81b41Smrgd
592096a81b41Smrg:bsnlc
592196a81b41Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
592296a81b41Smrgb cont
592396a81b41Smrg' <confdefs.h | sed '
592496a81b41Smrgs/'"$ac_delim"'/"\\\
592596a81b41Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
592696a81b41Smrg
592796a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
592896a81b41Smrg  for (key in D) D_is_set[key] = 1
592996a81b41Smrg  FS = ""
593096a81b41Smrg}
593196a81b41Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
593296a81b41Smrg  line = \$ 0
593396a81b41Smrg  split(line, arg, " ")
593496a81b41Smrg  if (arg[1] == "#") {
593596a81b41Smrg    defundef = arg[2]
593696a81b41Smrg    mac1 = arg[3]
593796a81b41Smrg  } else {
593896a81b41Smrg    defundef = substr(arg[1], 2)
593996a81b41Smrg    mac1 = arg[2]
594096a81b41Smrg  }
594196a81b41Smrg  split(mac1, mac2, "(") #)
594296a81b41Smrg  macro = mac2[1]
594396a81b41Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
594496a81b41Smrg  if (D_is_set[macro]) {
594596a81b41Smrg    # Preserve the white space surrounding the "#".
594696a81b41Smrg    print prefix "define", macro P[macro] D[macro]
594796a81b41Smrg    next
594896a81b41Smrg  } else {
594996a81b41Smrg    # Replace #undef with comments.  This is necessary, for example,
595096a81b41Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
595196a81b41Smrg    # on some systems where configure will not decide to define it.
595296a81b41Smrg    if (defundef == "undef") {
595396a81b41Smrg      print "/*", prefix defundef, macro, "*/"
595496a81b41Smrg      next
595596a81b41Smrg    }
595696a81b41Smrg  }
595796a81b41Smrg}
595896a81b41Smrg{ print }
595996a81b41Smrg_ACAWK
596096a81b41Smrg_ACEOF
596196a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59625bd32fd1Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
596396a81b41Smrgfi # test -n "$CONFIG_HEADERS"
596496a81b41Smrg
59658b22bf3fSmrg
596696a81b41Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
596796a81b41Smrgshift
596896a81b41Smrgfor ac_tag
59698b22bf3fSmrgdo
59708b22bf3fSmrg  case $ac_tag in
59718b22bf3fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
59728b22bf3fSmrg  esac
59738b22bf3fSmrg  case $ac_mode$ac_tag in
59748b22bf3fSmrg  :[FHL]*:*);;
59755bd32fd1Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
59768b22bf3fSmrg  :[FH]-) ac_tag=-:-;;
59778b22bf3fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
59788b22bf3fSmrg  esac
59798b22bf3fSmrg  ac_save_IFS=$IFS
59808b22bf3fSmrg  IFS=:
59818b22bf3fSmrg  set x $ac_tag
59828b22bf3fSmrg  IFS=$ac_save_IFS
59838b22bf3fSmrg  shift
59848b22bf3fSmrg  ac_file=$1
59858b22bf3fSmrg  shift
59868b22bf3fSmrg
59878b22bf3fSmrg  case $ac_mode in
59888b22bf3fSmrg  :L) ac_source=$1;;
59898b22bf3fSmrg  :[FH])
59908b22bf3fSmrg    ac_file_inputs=
59918b22bf3fSmrg    for ac_f
59928b22bf3fSmrg    do
59938b22bf3fSmrg      case $ac_f in
59945bd32fd1Smrg      -) ac_f="$ac_tmp/stdin";;
59958b22bf3fSmrg      *) # Look for the file first in the build tree, then in the source tree
59968b22bf3fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
59978b22bf3fSmrg	 # because $ac_f cannot contain `:'.
59988b22bf3fSmrg	 test -f "$ac_f" ||
59998b22bf3fSmrg	   case $ac_f in
60008b22bf3fSmrg	   [\\/$]*) false;;
60018b22bf3fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
60028b22bf3fSmrg	   esac ||
60035bd32fd1Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
60048b22bf3fSmrg      esac
600596a81b41Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
60065bd32fd1Smrg      as_fn_append ac_file_inputs " '$ac_f'"
60078b22bf3fSmrg    done
60088b22bf3fSmrg
60098b22bf3fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
60108b22bf3fSmrg    # use $as_me), people would be surprised to read:
60118b22bf3fSmrg    #    /* config.h.  Generated by config.status.  */
601296a81b41Smrg    configure_input='Generated from '`
601396a81b41Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
601496a81b41Smrg	`' by configure.'
60158b22bf3fSmrg    if test x"$ac_file" != x-; then
60168b22bf3fSmrg      configure_input="$ac_file.  $configure_input"
60175bd32fd1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
601896a81b41Smrg$as_echo "$as_me: creating $ac_file" >&6;}
60198b22bf3fSmrg    fi
602096a81b41Smrg    # Neutralize special characters interpreted by sed in replacement strings.
602196a81b41Smrg    case $configure_input in #(
602296a81b41Smrg    *\&* | *\|* | *\\* )
602396a81b41Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
602496a81b41Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
602596a81b41Smrg    *) ac_sed_conf_input=$configure_input;;
602696a81b41Smrg    esac
60278b22bf3fSmrg
60288b22bf3fSmrg    case $ac_tag in
60295bd32fd1Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
60305bd32fd1Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
60318b22bf3fSmrg    esac
60328b22bf3fSmrg    ;;
60338b22bf3fSmrg  esac
60348b22bf3fSmrg
60358b22bf3fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
60368b22bf3fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
60378b22bf3fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
60388b22bf3fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
60398b22bf3fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
604096a81b41Smrg$as_echo X"$ac_file" |
60418b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
60428b22bf3fSmrg	    s//\1/
60438b22bf3fSmrg	    q
60448b22bf3fSmrg	  }
60458b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
60468b22bf3fSmrg	    s//\1/
60478b22bf3fSmrg	    q
60488b22bf3fSmrg	  }
60498b22bf3fSmrg	  /^X\(\/\/\)$/{
60508b22bf3fSmrg	    s//\1/
60518b22bf3fSmrg	    q
60528b22bf3fSmrg	  }
60538b22bf3fSmrg	  /^X\(\/\).*/{
60548b22bf3fSmrg	    s//\1/
60558b22bf3fSmrg	    q
60568b22bf3fSmrg	  }
60578b22bf3fSmrg	  s/.*/./; q'`
60585bd32fd1Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
60598b22bf3fSmrg  ac_builddir=.
60608b22bf3fSmrg
60618b22bf3fSmrgcase "$ac_dir" in
60628b22bf3fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
60638b22bf3fSmrg*)
606496a81b41Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
60658b22bf3fSmrg  # A ".." for each directory in $ac_dir_suffix.
606696a81b41Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
60678b22bf3fSmrg  case $ac_top_builddir_sub in
60688b22bf3fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
60698b22bf3fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
60708b22bf3fSmrg  esac ;;
60718b22bf3fSmrgesac
60728b22bf3fSmrgac_abs_top_builddir=$ac_pwd
60738b22bf3fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
60748b22bf3fSmrg# for backward compatibility:
60758b22bf3fSmrgac_top_builddir=$ac_top_build_prefix
60768b22bf3fSmrg
60778b22bf3fSmrgcase $srcdir in
60788b22bf3fSmrg  .)  # We are building in place.
60798b22bf3fSmrg    ac_srcdir=.
60808b22bf3fSmrg    ac_top_srcdir=$ac_top_builddir_sub
60818b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
60828b22bf3fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
60838b22bf3fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
60848b22bf3fSmrg    ac_top_srcdir=$srcdir
60858b22bf3fSmrg    ac_abs_top_srcdir=$srcdir ;;
60868b22bf3fSmrg  *) # Relative name.
60878b22bf3fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
60888b22bf3fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
60898b22bf3fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
60908b22bf3fSmrgesac
60918b22bf3fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
60928b22bf3fSmrg
60938b22bf3fSmrg
60948b22bf3fSmrg  case $ac_mode in
60958b22bf3fSmrg  :F)
60968b22bf3fSmrg  #
60978b22bf3fSmrg  # CONFIG_FILE
60988b22bf3fSmrg  #
60998b22bf3fSmrg
61008b22bf3fSmrg  case $INSTALL in
61018b22bf3fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
61028b22bf3fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
61038b22bf3fSmrg  esac
61048b22bf3fSmrg  ac_MKDIR_P=$MKDIR_P
61058b22bf3fSmrg  case $MKDIR_P in
61068b22bf3fSmrg  [\\/$]* | ?:[\\/]* ) ;;
61078b22bf3fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
61088b22bf3fSmrg  esac
61098b22bf3fSmrg_ACEOF
61108b22bf3fSmrg
611196a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61128b22bf3fSmrg# If the template does not know about datarootdir, expand it.
61138b22bf3fSmrg# FIXME: This hack should be removed a few years after 2.60.
61148b22bf3fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
611596a81b41Smrgac_sed_dataroot='
611696a81b41Smrg/datarootdir/ {
61178b22bf3fSmrg  p
61188b22bf3fSmrg  q
61198b22bf3fSmrg}
61208b22bf3fSmrg/@datadir@/p
61218b22bf3fSmrg/@docdir@/p
61228b22bf3fSmrg/@infodir@/p
61238b22bf3fSmrg/@localedir@/p
61245bd32fd1Smrg/@mandir@/p'
612596a81b41Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
61268b22bf3fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
61278b22bf3fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
61285bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
612996a81b41Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
61308b22bf3fSmrg_ACEOF
613196a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61328b22bf3fSmrg  ac_datarootdir_hack='
61338b22bf3fSmrg  s&@datadir@&$datadir&g
61348b22bf3fSmrg  s&@docdir@&$docdir&g
61358b22bf3fSmrg  s&@infodir@&$infodir&g
61368b22bf3fSmrg  s&@localedir@&$localedir&g
61378b22bf3fSmrg  s&@mandir@&$mandir&g
61385bd32fd1Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
61398b22bf3fSmrgesac
61408b22bf3fSmrg_ACEOF
61418b22bf3fSmrg
61428b22bf3fSmrg# Neutralize VPATH when `$srcdir' = `.'.
61438b22bf3fSmrg# Shell code in configure.ac might set extrasub.
61448b22bf3fSmrg# FIXME: do we really want to maintain this feature?
614596a81b41Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
614696a81b41Smrgac_sed_extra="$ac_vpsub
61478b22bf3fSmrg$extrasub
61488b22bf3fSmrg_ACEOF
614996a81b41Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61508b22bf3fSmrg:t
61518b22bf3fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
615296a81b41Smrgs|@configure_input@|$ac_sed_conf_input|;t t
61538b22bf3fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
615496a81b41Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
61558b22bf3fSmrgs&@srcdir@&$ac_srcdir&;t t
61568b22bf3fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
61578b22bf3fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
61588b22bf3fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
61598b22bf3fSmrgs&@builddir@&$ac_builddir&;t t
61608b22bf3fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
61618b22bf3fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
61628b22bf3fSmrgs&@INSTALL@&$ac_INSTALL&;t t
61638b22bf3fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
61648b22bf3fSmrg$ac_datarootdir_hack
616596a81b41Smrg"
61665bd32fd1Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
61675bd32fd1Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61688b22bf3fSmrg
61698b22bf3fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
61705bd32fd1Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
61715bd32fd1Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
61725bd32fd1Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
61735bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
61745bd32fd1Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
617596a81b41Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
61765bd32fd1Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
61778b22bf3fSmrg
61785bd32fd1Smrg  rm -f "$ac_tmp/stdin"
61798b22bf3fSmrg  case $ac_file in
61805bd32fd1Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
61815bd32fd1Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
618296a81b41Smrg  esac \
61835bd32fd1Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61848b22bf3fSmrg ;;
61858b22bf3fSmrg  :H)
61868b22bf3fSmrg  #
61878b22bf3fSmrg  # CONFIG_HEADER
61888b22bf3fSmrg  #
61898b22bf3fSmrg  if test x"$ac_file" != x-; then
619096a81b41Smrg    {
619196a81b41Smrg      $as_echo "/* $configure_input  */" \
61925bd32fd1Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
61935bd32fd1Smrg    } >"$ac_tmp/config.h" \
61945bd32fd1Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
61955bd32fd1Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
61965bd32fd1Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
619796a81b41Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
61988b22bf3fSmrg    else
619996a81b41Smrg      rm -f "$ac_file"
62005bd32fd1Smrg      mv "$ac_tmp/config.h" "$ac_file" \
62015bd32fd1Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
62028b22bf3fSmrg    fi
62038b22bf3fSmrg  else
620496a81b41Smrg    $as_echo "/* $configure_input  */" \
62055bd32fd1Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
62065bd32fd1Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
62078b22bf3fSmrg  fi
620896a81b41Smrg# Compute "$ac_file"'s index in $config_headers.
620996a81b41Smrg_am_arg="$ac_file"
62108b22bf3fSmrg_am_stamp_count=1
62118b22bf3fSmrgfor _am_header in $config_headers :; do
62128b22bf3fSmrg  case $_am_header in
621396a81b41Smrg    $_am_arg | $_am_arg:* )
62148b22bf3fSmrg      break ;;
62158b22bf3fSmrg    * )
62168b22bf3fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
62178b22bf3fSmrg  esac
62188b22bf3fSmrgdone
621996a81b41Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
622096a81b41Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
622196a81b41Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
622296a81b41Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
622396a81b41Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
622496a81b41Smrg$as_echo X"$_am_arg" |
62258b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62268b22bf3fSmrg	    s//\1/
62278b22bf3fSmrg	    q
62288b22bf3fSmrg	  }
62298b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
62308b22bf3fSmrg	    s//\1/
62318b22bf3fSmrg	    q
62328b22bf3fSmrg	  }
62338b22bf3fSmrg	  /^X\(\/\/\)$/{
62348b22bf3fSmrg	    s//\1/
62358b22bf3fSmrg	    q
62368b22bf3fSmrg	  }
62378b22bf3fSmrg	  /^X\(\/\).*/{
62388b22bf3fSmrg	    s//\1/
62398b22bf3fSmrg	    q
62408b22bf3fSmrg	  }
62418b22bf3fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
62428b22bf3fSmrg ;;
62438b22bf3fSmrg
62445bd32fd1Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
624596a81b41Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
62468b22bf3fSmrg ;;
62478b22bf3fSmrg  esac
62488b22bf3fSmrg
62498b22bf3fSmrg
62508b22bf3fSmrg  case $ac_file$ac_mode in
625196a81b41Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
625296a81b41Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
625396a81b41Smrg  # are listed without --file.  Let's play safe and only enable the eval
625496a81b41Smrg  # if we detect the quoting.
625596a81b41Smrg  case $CONFIG_FILES in
625696a81b41Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
625796a81b41Smrg  *)   set x $CONFIG_FILES ;;
625896a81b41Smrg  esac
625996a81b41Smrg  shift
626096a81b41Smrg  for mf
626196a81b41Smrg  do
626296a81b41Smrg    # Strip MF so we end up with the name of the file.
626396a81b41Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
626496a81b41Smrg    # Check whether this is an Automake generated Makefile or not.
626596a81b41Smrg    # We used to match only the files named `Makefile.in', but
626696a81b41Smrg    # some people rename them; so instead we look at the file content.
626796a81b41Smrg    # Grep'ing the first line is not enough: some people post-process
626896a81b41Smrg    # each Makefile.in and add a new line on top of each file to say so.
626996a81b41Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
627096a81b41Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
627196a81b41Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
627296a81b41Smrg      dirpart=`$as_dirname -- "$mf" ||
62738b22bf3fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
62748b22bf3fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
62758b22bf3fSmrg	 X"$mf" : 'X\(//\)$' \| \
62768b22bf3fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
627796a81b41Smrg$as_echo X"$mf" |
62788b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
62798b22bf3fSmrg	    s//\1/
62808b22bf3fSmrg	    q
62818b22bf3fSmrg	  }
62828b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
62838b22bf3fSmrg	    s//\1/
62848b22bf3fSmrg	    q
62858b22bf3fSmrg	  }
62868b22bf3fSmrg	  /^X\(\/\/\)$/{
62878b22bf3fSmrg	    s//\1/
62888b22bf3fSmrg	    q
62898b22bf3fSmrg	  }
62908b22bf3fSmrg	  /^X\(\/\).*/{
62918b22bf3fSmrg	    s//\1/
62928b22bf3fSmrg	    q
62938b22bf3fSmrg	  }
62948b22bf3fSmrg	  s/.*/./; q'`
629596a81b41Smrg    else
629696a81b41Smrg      continue
629796a81b41Smrg    fi
629896a81b41Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
629996a81b41Smrg    # from the Makefile without running `make'.
630096a81b41Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
630196a81b41Smrg    test -z "$DEPDIR" && continue
630296a81b41Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
630396a81b41Smrg    test -z "am__include" && continue
630496a81b41Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
630596a81b41Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
630696a81b41Smrg    U=`sed -n 's/^U = //p' < "$mf"`
630796a81b41Smrg    # Find all dependency output files, they are included files with
630896a81b41Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
630996a81b41Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
631096a81b41Smrg    # expansion.
631196a81b41Smrg    for file in `sed -n "
631296a81b41Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
631396a81b41Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
631496a81b41Smrg      # Make sure the directory exists.
631596a81b41Smrg      test -f "$dirpart/$file" && continue
631696a81b41Smrg      fdir=`$as_dirname -- "$file" ||
63178b22bf3fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63188b22bf3fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
63198b22bf3fSmrg	 X"$file" : 'X\(//\)$' \| \
63208b22bf3fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
632196a81b41Smrg$as_echo X"$file" |
63228b22bf3fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63238b22bf3fSmrg	    s//\1/
63248b22bf3fSmrg	    q
63258b22bf3fSmrg	  }
63268b22bf3fSmrg	  /^X\(\/\/\)[^/].*/{
63278b22bf3fSmrg	    s//\1/
63288b22bf3fSmrg	    q
63298b22bf3fSmrg	  }
63308b22bf3fSmrg	  /^X\(\/\/\)$/{
63318b22bf3fSmrg	    s//\1/
63328b22bf3fSmrg	    q
63338b22bf3fSmrg	  }
63348b22bf3fSmrg	  /^X\(\/\).*/{
63358b22bf3fSmrg	    s//\1/
63368b22bf3fSmrg	    q
63378b22bf3fSmrg	  }
63388b22bf3fSmrg	  s/.*/./; q'`
63395bd32fd1Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
634096a81b41Smrg      # echo "creating $dirpart/$file"
634196a81b41Smrg      echo '# dummy' > "$dirpart/$file"
634296a81b41Smrg    done
63438b22bf3fSmrg  done
634496a81b41Smrg}
63458b22bf3fSmrg ;;
63468b22bf3fSmrg
63478b22bf3fSmrg  esac
63488b22bf3fSmrgdone # for ac_tag
63498b22bf3fSmrg
63508b22bf3fSmrg
63515bd32fd1Smrgas_fn_exit 0
63528b22bf3fSmrg_ACEOF
63538b22bf3fSmrgac_clean_files=$ac_clean_files_save
63548b22bf3fSmrg
635596a81b41Smrgtest $ac_write_fail = 0 ||
63565bd32fd1Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
635796a81b41Smrg
63588b22bf3fSmrg
63598b22bf3fSmrg# configure is writing to config.log, and then calls config.status.
63608b22bf3fSmrg# config.status does its own redirection, appending to config.log.
63618b22bf3fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
63628b22bf3fSmrg# by configure, so config.status won't be able to write to it; its
63638b22bf3fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
63648b22bf3fSmrg# effectively closing config.log, so it can be properly (re)opened and
63658b22bf3fSmrg# appended to by config.status.  When coming back to configure, we
63668b22bf3fSmrg# need to make the FD available again.
63678b22bf3fSmrgif test "$no_create" != yes; then
63688b22bf3fSmrg  ac_cs_success=:
63698b22bf3fSmrg  ac_config_status_args=
63708b22bf3fSmrg  test "$silent" = yes &&
63718b22bf3fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
63728b22bf3fSmrg  exec 5>/dev/null
63738b22bf3fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
63748b22bf3fSmrg  exec 5>>config.log
63758b22bf3fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
63768b22bf3fSmrg  # would make configure fail if this is the last instruction.
63775bd32fd1Smrg  $ac_cs_success || as_fn_exit 1
63788b22bf3fSmrgfi
637996a81b41Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
63805bd32fd1Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
638196a81b41Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
638296a81b41Smrgfi
63838b22bf3fSmrg
6384