configure revision 2adc0320
17a0395d0Smrg#! /bin/sh
27a0395d0Smrg# Guess values for system-dependent variables and create Makefiles.
32adc0320Smrg# Generated by GNU Autoconf 2.68 for xauth 1.0.5.
47a0395d0Smrg#
57a0395d0Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
67a0395d0Smrg#
72adc0320Smrg#
87a0395d0Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
92adc0320Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
102adc0320Smrg# Foundation, Inc.
112adc0320Smrg#
122adc0320Smrg#
137a0395d0Smrg# This configure script is free software; the Free Software Foundation
147a0395d0Smrg# gives unlimited permission to copy, distribute and modify it.
152adc0320Smrg## -------------------- ##
162adc0320Smrg## M4sh Initialization. ##
172adc0320Smrg## -------------------- ##
187a0395d0Smrg
197a0395d0Smrg# Be more Bourne compatible
207a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
212adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
227a0395d0Smrg  emulate sh
237a0395d0Smrg  NULLCMD=:
247366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
257a0395d0Smrg  # is contrary to our usage.  Disable this feature.
267a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
277a0395d0Smrg  setopt NO_GLOB_SUBST
287a0395d0Smrgelse
292adc0320Smrg  case `(set -o) 2>/dev/null` in #(
302adc0320Smrg  *posix*) :
312adc0320Smrg    set -o posix ;; #(
322adc0320Smrg  *) :
332adc0320Smrg     ;;
347a0395d0Smrgesac
357a0395d0Smrgfi
367a0395d0Smrg
377a0395d0Smrg
387366012aSmrgas_nl='
397366012aSmrg'
407366012aSmrgexport as_nl
417366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
427366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
437366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
447366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
452adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
462adc0320Smrg# but without wasting forks for bash or zsh.
472adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
482adc0320Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
492adc0320Smrg  as_echo='print -r --'
502adc0320Smrg  as_echo_n='print -rn --'
512adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
527366012aSmrg  as_echo='printf %s\n'
537366012aSmrg  as_echo_n='printf %s'
547366012aSmrgelse
557366012aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
567366012aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
577366012aSmrg    as_echo_n='/usr/ucb/echo -n'
587a0395d0Smrg  else
597366012aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
607366012aSmrg    as_echo_n_body='eval
617366012aSmrg      arg=$1;
622adc0320Smrg      case $arg in #(
637366012aSmrg      *"$as_nl"*)
647366012aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
657366012aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
667366012aSmrg      esac;
677366012aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
687366012aSmrg    '
697366012aSmrg    export as_echo_n_body
707366012aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
717a0395d0Smrg  fi
727366012aSmrg  export as_echo_body
737366012aSmrg  as_echo='sh -c $as_echo_body as_echo'
747366012aSmrgfi
757366012aSmrg
767366012aSmrg# The user is always right.
777366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then
787366012aSmrg  PATH_SEPARATOR=:
797366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
807366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
817366012aSmrg      PATH_SEPARATOR=';'
827366012aSmrg  }
837a0395d0Smrgfi
847a0395d0Smrg
857a0395d0Smrg
867a0395d0Smrg# IFS
877a0395d0Smrg# We need space, tab and new line, in precisely that order.  Quoting is
887a0395d0Smrg# there to prevent editors from complaining about space-tab.
897a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
907a0395d0Smrg# splitting by setting IFS to empty value.)
917a0395d0SmrgIFS=" ""	$as_nl"
927a0395d0Smrg
937a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
942adc0320Smrgas_myself=
952adc0320Smrgcase $0 in #((
967a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
977a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987a0395d0Smrgfor as_dir in $PATH
997a0395d0Smrgdo
1007a0395d0Smrg  IFS=$as_save_IFS
1017a0395d0Smrg  test -z "$as_dir" && as_dir=.
1022adc0320Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1032adc0320Smrg  done
1047a0395d0SmrgIFS=$as_save_IFS
1057a0395d0Smrg
1067a0395d0Smrg     ;;
1077a0395d0Smrgesac
1087a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1097a0395d0Smrg# in which case we are not to be found in the path.
1107a0395d0Smrgif test "x$as_myself" = x; then
1117a0395d0Smrg  as_myself=$0
1127a0395d0Smrgfi
1137a0395d0Smrgif test ! -f "$as_myself"; then
1147366012aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1152adc0320Smrg  exit 1
1167a0395d0Smrgfi
1177a0395d0Smrg
1182adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1192adc0320Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1202adc0320Smrg# suppresses any "Segmentation fault" message there.  '((' could
1212adc0320Smrg# trigger a bug in pdksh 5.2.14.
1222adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1232adc0320Smrgdo eval test x\${$as_var+set} = xset \
1242adc0320Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1257a0395d0Smrgdone
1267a0395d0SmrgPS1='$ '
1277a0395d0SmrgPS2='> '
1287a0395d0SmrgPS4='+ '
1297a0395d0Smrg
1307a0395d0Smrg# NLS nuisances.
1317366012aSmrgLC_ALL=C
1327366012aSmrgexport LC_ALL
1337366012aSmrgLANGUAGE=C
1347366012aSmrgexport LANGUAGE
1357a0395d0Smrg
1362adc0320Smrg# CDPATH.
1372adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1382adc0320Smrg
1392adc0320Smrgif test "x$CONFIG_SHELL" = x; then
1402adc0320Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1412adc0320Smrg  emulate sh
1422adc0320Smrg  NULLCMD=:
1432adc0320Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1442adc0320Smrg  # is contrary to our usage.  Disable this feature.
1452adc0320Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1462adc0320Smrg  setopt NO_GLOB_SUBST
1472adc0320Smrgelse
1482adc0320Smrg  case \`(set -o) 2>/dev/null\` in #(
1492adc0320Smrg  *posix*) :
1502adc0320Smrg    set -o posix ;; #(
1512adc0320Smrg  *) :
1522adc0320Smrg     ;;
1532adc0320Smrgesac
1542adc0320Smrgfi
1552adc0320Smrg"
1562adc0320Smrg  as_required="as_fn_return () { (exit \$1); }
1572adc0320Smrgas_fn_success () { as_fn_return 0; }
1582adc0320Smrgas_fn_failure () { as_fn_return 1; }
1592adc0320Smrgas_fn_ret_success () { return 0; }
1602adc0320Smrgas_fn_ret_failure () { return 1; }
1612adc0320Smrg
1622adc0320Smrgexitcode=0
1632adc0320Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1642adc0320Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1652adc0320Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1662adc0320Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1672adc0320Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1682adc0320Smrg
1692adc0320Smrgelse
1702adc0320Smrg  exitcode=1; echo positional parameters were not saved.
1712adc0320Smrgfi
1722adc0320Smrgtest x\$exitcode = x0 || exit 1"
1732adc0320Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1742adc0320Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1752adc0320Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1762adc0320Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1772adc0320Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1782adc0320Smrg  if (eval "$as_required") 2>/dev/null; then :
1792adc0320Smrg  as_have_required=yes
1802adc0320Smrgelse
1812adc0320Smrg  as_have_required=no
1822adc0320Smrgfi
1832adc0320Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1842adc0320Smrg
1852adc0320Smrgelse
1862adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872adc0320Smrgas_found=false
1882adc0320Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1892adc0320Smrgdo
1902adc0320Smrg  IFS=$as_save_IFS
1912adc0320Smrg  test -z "$as_dir" && as_dir=.
1922adc0320Smrg  as_found=:
1932adc0320Smrg  case $as_dir in #(
1942adc0320Smrg	 /*)
1952adc0320Smrg	   for as_base in sh bash ksh sh5; do
1962adc0320Smrg	     # Try only shells that exist, to save several forks.
1972adc0320Smrg	     as_shell=$as_dir/$as_base
1982adc0320Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1992adc0320Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2002adc0320Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2012adc0320Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2022adc0320Smrg  break 2
2032adc0320Smrgfi
2042adc0320Smrgfi
2052adc0320Smrg	   done;;
2062adc0320Smrg       esac
2072adc0320Smrg  as_found=false
2082adc0320Smrgdone
2092adc0320Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2102adc0320Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2112adc0320Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2122adc0320Smrgfi; }
2132adc0320SmrgIFS=$as_save_IFS
2142adc0320Smrg
2152adc0320Smrg
2162adc0320Smrg      if test "x$CONFIG_SHELL" != x; then :
2172adc0320Smrg  # We cannot yet assume a decent shell, so we have to provide a
2182adc0320Smrg	# neutralization value for shells without unset; and this also
2192adc0320Smrg	# works around shells that cannot unset nonexistent variables.
2202adc0320Smrg	# Preserve -v and -x to the replacement shell.
2212adc0320Smrg	BASH_ENV=/dev/null
2222adc0320Smrg	ENV=/dev/null
2232adc0320Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2242adc0320Smrg	export CONFIG_SHELL
2252adc0320Smrg	case $- in # ((((
2262adc0320Smrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2272adc0320Smrg	  *v* ) as_opts=-v ;;
2282adc0320Smrg	  *x* ) as_opts=-x ;;
2292adc0320Smrg	  * ) as_opts= ;;
2302adc0320Smrg	esac
2312adc0320Smrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2322adc0320Smrgfi
2332adc0320Smrg
2342adc0320Smrg    if test x$as_have_required = xno; then :
2352adc0320Smrg  $as_echo "$0: This script requires a shell more modern than all"
2362adc0320Smrg  $as_echo "$0: the shells that I found on your system."
2372adc0320Smrg  if test x${ZSH_VERSION+set} = xset ; then
2382adc0320Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2392adc0320Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2402adc0320Smrg  else
2412adc0320Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2422adc0320Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2432adc0320Smrg$0: about your system, including any error possibly output
2442adc0320Smrg$0: before this message. Then install a modern shell, or
2452adc0320Smrg$0: manually run the script under such a shell if you do
2462adc0320Smrg$0: have one."
2472adc0320Smrg  fi
2482adc0320Smrg  exit 1
2492adc0320Smrgfi
2502adc0320Smrgfi
2512adc0320Smrgfi
2522adc0320SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2532adc0320Smrgexport SHELL
2542adc0320Smrg# Unset more variables known to interfere with behavior of common tools.
2552adc0320SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2562adc0320Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2572adc0320Smrg
2582adc0320Smrg## --------------------- ##
2592adc0320Smrg## M4sh Shell Functions. ##
2602adc0320Smrg## --------------------- ##
2612adc0320Smrg# as_fn_unset VAR
2622adc0320Smrg# ---------------
2632adc0320Smrg# Portably unset VAR.
2642adc0320Smrgas_fn_unset ()
2652adc0320Smrg{
2662adc0320Smrg  { eval $1=; unset $1;}
2672adc0320Smrg}
2682adc0320Smrgas_unset=as_fn_unset
2692adc0320Smrg
2702adc0320Smrg# as_fn_set_status STATUS
2712adc0320Smrg# -----------------------
2722adc0320Smrg# Set $? to STATUS, without forking.
2732adc0320Smrgas_fn_set_status ()
2742adc0320Smrg{
2752adc0320Smrg  return $1
2762adc0320Smrg} # as_fn_set_status
2772adc0320Smrg
2782adc0320Smrg# as_fn_exit STATUS
2792adc0320Smrg# -----------------
2802adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2812adc0320Smrgas_fn_exit ()
2822adc0320Smrg{
2832adc0320Smrg  set +e
2842adc0320Smrg  as_fn_set_status $1
2852adc0320Smrg  exit $1
2862adc0320Smrg} # as_fn_exit
2872adc0320Smrg
2882adc0320Smrg# as_fn_mkdir_p
2892adc0320Smrg# -------------
2902adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
2912adc0320Smrgas_fn_mkdir_p ()
2922adc0320Smrg{
2932adc0320Smrg
2942adc0320Smrg  case $as_dir in #(
2952adc0320Smrg  -*) as_dir=./$as_dir;;
2962adc0320Smrg  esac
2972adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2982adc0320Smrg    as_dirs=
2992adc0320Smrg    while :; do
3002adc0320Smrg      case $as_dir in #(
3012adc0320Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3022adc0320Smrg      *) as_qdir=$as_dir;;
3032adc0320Smrg      esac
3042adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
3052adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3062adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3072adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3082adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3092adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3102adc0320Smrg$as_echo X"$as_dir" |
3112adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3122adc0320Smrg	    s//\1/
3132adc0320Smrg	    q
3142adc0320Smrg	  }
3152adc0320Smrg	  /^X\(\/\/\)[^/].*/{
3162adc0320Smrg	    s//\1/
3172adc0320Smrg	    q
3182adc0320Smrg	  }
3192adc0320Smrg	  /^X\(\/\/\)$/{
3202adc0320Smrg	    s//\1/
3212adc0320Smrg	    q
3222adc0320Smrg	  }
3232adc0320Smrg	  /^X\(\/\).*/{
3242adc0320Smrg	    s//\1/
3252adc0320Smrg	    q
3262adc0320Smrg	  }
3272adc0320Smrg	  s/.*/./; q'`
3282adc0320Smrg      test -d "$as_dir" && break
3292adc0320Smrg    done
3302adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3312adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3322adc0320Smrg
3332adc0320Smrg
3342adc0320Smrg} # as_fn_mkdir_p
3352adc0320Smrg# as_fn_append VAR VALUE
3362adc0320Smrg# ----------------------
3372adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3382adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
3392adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
3402adc0320Smrg# implementations.
3412adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3422adc0320Smrg  eval 'as_fn_append ()
3432adc0320Smrg  {
3442adc0320Smrg    eval $1+=\$2
3452adc0320Smrg  }'
3462adc0320Smrgelse
3472adc0320Smrg  as_fn_append ()
3482adc0320Smrg  {
3492adc0320Smrg    eval $1=\$$1\$2
3502adc0320Smrg  }
3512adc0320Smrgfi # as_fn_append
3522adc0320Smrg
3532adc0320Smrg# as_fn_arith ARG...
3542adc0320Smrg# ------------------
3552adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3562adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3572adc0320Smrg# must be portable across $(()) and expr.
3582adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3592adc0320Smrg  eval 'as_fn_arith ()
3602adc0320Smrg  {
3612adc0320Smrg    as_val=$(( $* ))
3622adc0320Smrg  }'
3632adc0320Smrgelse
3642adc0320Smrg  as_fn_arith ()
3652adc0320Smrg  {
3662adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
3672adc0320Smrg  }
3682adc0320Smrgfi # as_fn_arith
3692adc0320Smrg
3702adc0320Smrg
3712adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3722adc0320Smrg# ----------------------------------------
3732adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3742adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3752adc0320Smrg# script with STATUS, using 1 if that was 0.
3762adc0320Smrgas_fn_error ()
3772adc0320Smrg{
3782adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
3792adc0320Smrg  if test "$4"; then
3802adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3812adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3822adc0320Smrg  fi
3832adc0320Smrg  $as_echo "$as_me: error: $2" >&2
3842adc0320Smrg  as_fn_exit $as_status
3852adc0320Smrg} # as_fn_error
3862adc0320Smrg
3877a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
3887a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3897a0395d0Smrg  as_expr=expr
3907a0395d0Smrgelse
3917a0395d0Smrg  as_expr=false
3927a0395d0Smrgfi
3937a0395d0Smrg
3947a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3957a0395d0Smrg  as_basename=basename
3967a0395d0Smrgelse
3977a0395d0Smrg  as_basename=false
3987a0395d0Smrgfi
3997a0395d0Smrg
4002adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4012adc0320Smrg  as_dirname=dirname
4022adc0320Smrgelse
4032adc0320Smrg  as_dirname=false
4042adc0320Smrgfi
4057a0395d0Smrg
4067a0395d0Smrgas_me=`$as_basename -- "$0" ||
4077a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4087a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
4097a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4107366012aSmrg$as_echo X/"$0" |
4117a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
4127a0395d0Smrg	    s//\1/
4137a0395d0Smrg	    q
4147a0395d0Smrg	  }
4157a0395d0Smrg	  /^X\/\(\/\/\)$/{
4167a0395d0Smrg	    s//\1/
4177a0395d0Smrg	    q
4187a0395d0Smrg	  }
4197a0395d0Smrg	  /^X\/\(\/\).*/{
4207a0395d0Smrg	    s//\1/
4217a0395d0Smrg	    q
4227a0395d0Smrg	  }
4237a0395d0Smrg	  s/.*/./; q'`
4247a0395d0Smrg
4252adc0320Smrg# Avoid depending upon Character Ranges.
4262adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4272adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4282adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4292adc0320Smrgas_cr_digits='0123456789'
4302adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4317a0395d0Smrg
4327a0395d0Smrg
4332adc0320Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4342adc0320Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4352adc0320Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4362adc0320Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4372adc0320Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4382adc0320Smrg  sed -n '
4392adc0320Smrg    p
4402adc0320Smrg    /[$]LINENO/=
4412adc0320Smrg  ' <$as_myself |
4422adc0320Smrg    sed '
4432adc0320Smrg      s/[$]LINENO.*/&-/
4442adc0320Smrg      t lineno
4452adc0320Smrg      b
4462adc0320Smrg      :lineno
4472adc0320Smrg      N
4482adc0320Smrg      :loop
4492adc0320Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4502adc0320Smrg      t loop
4512adc0320Smrg      s/-\n.*//
4522adc0320Smrg    ' >$as_me.lineno &&
4532adc0320Smrg  chmod +x "$as_me.lineno" ||
4542adc0320Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4557a0395d0Smrg
4562adc0320Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4572adc0320Smrg  # (the dirname of $[0] is not the place where we might find the
4582adc0320Smrg  # original and so on.  Autoconf is especially sensitive to this).
4592adc0320Smrg  . "./$as_me.lineno"
4602adc0320Smrg  # Exit status is that of the last command.
4612adc0320Smrg  exit
4627a0395d0Smrg}
4637a0395d0Smrg
4642adc0320SmrgECHO_C= ECHO_N= ECHO_T=
4652adc0320Smrgcase `echo -n x` in #(((((
4662adc0320Smrg-n*)
4672adc0320Smrg  case `echo 'xy\c'` in
4682adc0320Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4692adc0320Smrg  xy)  ECHO_C='\c';;
4702adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4712adc0320Smrg       ECHO_T='	';;
4722adc0320Smrg  esac;;
4732adc0320Smrg*)
4742adc0320Smrg  ECHO_N='-n';;
4752adc0320Smrgesac
4767a0395d0Smrg
4772adc0320Smrgrm -f conf$$ conf$$.exe conf$$.file
4782adc0320Smrgif test -d conf$$.dir; then
4792adc0320Smrg  rm -f conf$$.dir/conf$$.file
4802adc0320Smrgelse
4812adc0320Smrg  rm -f conf$$.dir
4822adc0320Smrg  mkdir conf$$.dir 2>/dev/null
4837a0395d0Smrgfi
4842adc0320Smrgif (echo >conf$$.file) 2>/dev/null; then
4852adc0320Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4862adc0320Smrg    as_ln_s='ln -s'
4872adc0320Smrg    # ... but there are two gotchas:
4882adc0320Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4892adc0320Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4902adc0320Smrg    # In both cases, we have to default to `cp -p'.
4912adc0320Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4922adc0320Smrg      as_ln_s='cp -p'
4932adc0320Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4942adc0320Smrg    as_ln_s=ln
4952adc0320Smrg  else
4962adc0320Smrg    as_ln_s='cp -p'
4972adc0320Smrg  fi
4987a0395d0Smrgelse
4992adc0320Smrg  as_ln_s='cp -p'
5007a0395d0Smrgfi
5012adc0320Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5022adc0320Smrgrmdir conf$$.dir 2>/dev/null
5037a0395d0Smrg
5042adc0320Smrgif mkdir -p . 2>/dev/null; then
5052adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5062adc0320Smrgelse
5072adc0320Smrg  test -d ./-p && rmdir ./-p
5082adc0320Smrg  as_mkdir_p=false
5097a0395d0Smrgfi
5107a0395d0Smrg
5112adc0320Smrgif test -x / >/dev/null 2>&1; then
5122adc0320Smrg  as_test_x='test -x'
5137a0395d0Smrgelse
5142adc0320Smrg  if ls -dL / >/dev/null 2>&1; then
5152adc0320Smrg    as_ls_L_option=L
5162adc0320Smrg  else
5172adc0320Smrg    as_ls_L_option=
5182adc0320Smrg  fi
5192adc0320Smrg  as_test_x='
5202adc0320Smrg    eval sh -c '\''
5212adc0320Smrg      if test -d "$1"; then
5222adc0320Smrg	test -d "$1/.";
5232adc0320Smrg      else
5242adc0320Smrg	case $1 in #(
5252adc0320Smrg	-*)set "./$1";;
5262adc0320Smrg	esac;
5272adc0320Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5282adc0320Smrg	???[sx]*):;;*)false;;esac;fi
5292adc0320Smrg    '\'' sh
5302adc0320Smrg  '
5317a0395d0Smrgfi
5322adc0320Smrgas_executable_p=$as_test_x
5337a0395d0Smrg
5342adc0320Smrg# Sed expression to map a string onto a valid CPP name.
5352adc0320Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5367a0395d0Smrg
5372adc0320Smrg# Sed expression to map a string onto a valid variable name.
5382adc0320Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5397a0395d0Smrg
5407a0395d0Smrg
5412adc0320Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5422adc0320Smrgexec 6>&1
5437a0395d0Smrg
5447a0395d0Smrg# Name of the host.
5452adc0320Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5467a0395d0Smrg# so uname gets run too.
5477a0395d0Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5487a0395d0Smrg
5497a0395d0Smrg#
5507a0395d0Smrg# Initializations.
5517a0395d0Smrg#
5527a0395d0Smrgac_default_prefix=/usr/local
5537a0395d0Smrgac_clean_files=
5547a0395d0Smrgac_config_libobj_dir=.
5557a0395d0SmrgLIBOBJS=
5567a0395d0Smrgcross_compiling=no
5577a0395d0Smrgsubdirs=
5587a0395d0SmrgMFLAGS=
5597a0395d0SmrgMAKEFLAGS=
5607a0395d0Smrg
5617a0395d0Smrg# Identity of this package.
5627a0395d0SmrgPACKAGE_NAME='xauth'
5637a0395d0SmrgPACKAGE_TARNAME='xauth'
5642adc0320SmrgPACKAGE_VERSION='1.0.5'
5652adc0320SmrgPACKAGE_STRING='xauth 1.0.5'
5667a0395d0SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5672adc0320SmrgPACKAGE_URL=''
5687a0395d0Smrg
5697a0395d0Smrg# Factoring default headers for most tests.
5707a0395d0Smrgac_includes_default="\
5717a0395d0Smrg#include <stdio.h>
5727a0395d0Smrg#ifdef HAVE_SYS_TYPES_H
5737a0395d0Smrg# include <sys/types.h>
5747a0395d0Smrg#endif
5757a0395d0Smrg#ifdef HAVE_SYS_STAT_H
5767a0395d0Smrg# include <sys/stat.h>
5777a0395d0Smrg#endif
5787a0395d0Smrg#ifdef STDC_HEADERS
5797a0395d0Smrg# include <stdlib.h>
5807a0395d0Smrg# include <stddef.h>
5817a0395d0Smrg#else
5827a0395d0Smrg# ifdef HAVE_STDLIB_H
5837a0395d0Smrg#  include <stdlib.h>
5847a0395d0Smrg# endif
5857a0395d0Smrg#endif
5867a0395d0Smrg#ifdef HAVE_STRING_H
5877a0395d0Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5887a0395d0Smrg#  include <memory.h>
5897a0395d0Smrg# endif
5907a0395d0Smrg# include <string.h>
5917a0395d0Smrg#endif
5927a0395d0Smrg#ifdef HAVE_STRINGS_H
5937a0395d0Smrg# include <strings.h>
5947a0395d0Smrg#endif
5957a0395d0Smrg#ifdef HAVE_INTTYPES_H
5967a0395d0Smrg# include <inttypes.h>
5977a0395d0Smrg#endif
5987a0395d0Smrg#ifdef HAVE_STDINT_H
5997a0395d0Smrg# include <stdint.h>
6007a0395d0Smrg#endif
6017a0395d0Smrg#ifdef HAVE_UNISTD_H
6027a0395d0Smrg# include <unistd.h>
6037a0395d0Smrg#endif"
6047a0395d0Smrg
6057366012aSmrgac_subst_vars='am__EXEEXT_FALSE
6067366012aSmrgam__EXEEXT_TRUE
6077366012aSmrgLTLIBOBJS
6087366012aSmrgLIBOBJS
6097a0395d0SmrgLINT_FALSE
6107366012aSmrgLINT_TRUE
6117366012aSmrgLINT_FLAGS
6127366012aSmrgLINT
6137366012aSmrgXAUTH_LIBS
6147366012aSmrgXAUTH_CFLAGS
6152adc0320SmrgAM_BACKSLASH
6162adc0320SmrgAM_DEFAULT_VERBOSITY
6172adc0320SmrgMAN_SUBSTS
6182adc0320SmrgXORG_MAN_PAGE
6197a0395d0SmrgADMIN_MAN_DIR
6207366012aSmrgDRIVER_MAN_DIR
6217366012aSmrgMISC_MAN_DIR
6227366012aSmrgFILE_MAN_DIR
6237366012aSmrgLIB_MAN_DIR
6247366012aSmrgAPP_MAN_DIR
6257366012aSmrgADMIN_MAN_SUFFIX
6267366012aSmrgDRIVER_MAN_SUFFIX
6277366012aSmrgMISC_MAN_SUFFIX
6287366012aSmrgFILE_MAN_SUFFIX
6297366012aSmrgLIB_MAN_SUFFIX
6307366012aSmrgAPP_MAN_SUFFIX
6312adc0320SmrgSED
6327366012aSmrghost_os
6337366012aSmrghost_vendor
6347366012aSmrghost_cpu
6357366012aSmrghost
6367366012aSmrgbuild_os
6377366012aSmrgbuild_vendor
6387366012aSmrgbuild_cpu
6397366012aSmrgbuild
6402adc0320SmrgINSTALL_CMD
6412adc0320SmrgPKG_CONFIG
6427366012aSmrgCHANGELOG_CMD
6437366012aSmrgCWARNFLAGS
6447366012aSmrgEGREP
6457366012aSmrgGREP
6467366012aSmrgCPP
6477366012aSmrgam__fastdepCC_FALSE
6487366012aSmrgam__fastdepCC_TRUE
6497366012aSmrgCCDEPMODE
6507366012aSmrgAMDEPBACKSLASH
6517366012aSmrgAMDEP_FALSE
6527366012aSmrgAMDEP_TRUE
6537366012aSmrgam__quote
6547366012aSmrgam__include
6557366012aSmrgDEPDIR
6567366012aSmrgOBJEXT
6577366012aSmrgEXEEXT
6587366012aSmrgac_ct_CC
6597366012aSmrgCPPFLAGS
6607366012aSmrgLDFLAGS
6617366012aSmrgCFLAGS
6627366012aSmrgCC
6637366012aSmrgMAINT
6647366012aSmrgMAINTAINER_MODE_FALSE
6657366012aSmrgMAINTAINER_MODE_TRUE
6667366012aSmrgam__untar
6677366012aSmrgam__tar
6687366012aSmrgAMTAR
6697366012aSmrgam__leading_dot
6707366012aSmrgSET_MAKE
6717366012aSmrgAWK
6727366012aSmrgmkdir_p
6737366012aSmrgMKDIR_P
6747366012aSmrgINSTALL_STRIP_PROGRAM
6757366012aSmrgSTRIP
6767366012aSmrginstall_sh
6777366012aSmrgMAKEINFO
6787366012aSmrgAUTOHEADER
6797366012aSmrgAUTOMAKE
6807366012aSmrgAUTOCONF
6817366012aSmrgACLOCAL
6827366012aSmrgVERSION
6837366012aSmrgPACKAGE
6847366012aSmrgCYGPATH_W
6857366012aSmrgam__isrc
6867366012aSmrgINSTALL_DATA
6877366012aSmrgINSTALL_SCRIPT
6887366012aSmrgINSTALL_PROGRAM
6897366012aSmrgtarget_alias
6907366012aSmrghost_alias
6917366012aSmrgbuild_alias
6927366012aSmrgLIBS
6937366012aSmrgECHO_T
6947366012aSmrgECHO_N
6957366012aSmrgECHO_C
6967366012aSmrgDEFS
6977366012aSmrgmandir
6987366012aSmrglocaledir
6997366012aSmrglibdir
7007366012aSmrgpsdir
7017366012aSmrgpdfdir
7027366012aSmrgdvidir
7037366012aSmrghtmldir
7047366012aSmrginfodir
7057366012aSmrgdocdir
7067366012aSmrgoldincludedir
7077366012aSmrgincludedir
7087366012aSmrglocalstatedir
7097366012aSmrgsharedstatedir
7107366012aSmrgsysconfdir
7117366012aSmrgdatadir
7127366012aSmrgdatarootdir
7137366012aSmrglibexecdir
7147366012aSmrgsbindir
7157366012aSmrgbindir
7167366012aSmrgprogram_transform_name
7177366012aSmrgprefix
7187366012aSmrgexec_prefix
7192adc0320SmrgPACKAGE_URL
7207366012aSmrgPACKAGE_BUGREPORT
7217366012aSmrgPACKAGE_STRING
7227366012aSmrgPACKAGE_VERSION
7237366012aSmrgPACKAGE_TARNAME
7247366012aSmrgPACKAGE_NAME
7257366012aSmrgPATH_SEPARATOR
7267366012aSmrgSHELL'
7277a0395d0Smrgac_subst_files=''
7287366012aSmrgac_user_opts='
7297366012aSmrgenable_option_checking
7307366012aSmrgenable_maintainer_mode
7317366012aSmrgenable_dependency_tracking
7327366012aSmrgenable_strict_compilation
7332adc0320Smrgenable_silent_rules
7347366012aSmrgenable_unix_transport
7357366012aSmrgenable_tcp_transport
7367366012aSmrgenable_ipv6
7377366012aSmrgenable_local_transport
7387366012aSmrgwith_lint
7397366012aSmrg'
7407a0395d0Smrg      ac_precious_vars='build_alias
7417a0395d0Smrghost_alias
7427a0395d0Smrgtarget_alias
7437a0395d0SmrgCC
7447a0395d0SmrgCFLAGS
7457a0395d0SmrgLDFLAGS
7467a0395d0SmrgLIBS
7477a0395d0SmrgCPPFLAGS
7487a0395d0SmrgCPP
7497a0395d0SmrgPKG_CONFIG
7507a0395d0SmrgXAUTH_CFLAGS
7512adc0320SmrgXAUTH_LIBS
7522adc0320SmrgLINT
7532adc0320SmrgLINT_FLAGS'
7547a0395d0Smrg
7557a0395d0Smrg
7567a0395d0Smrg# Initialize some variables set by options.
7577a0395d0Smrgac_init_help=
7587a0395d0Smrgac_init_version=false
7597366012aSmrgac_unrecognized_opts=
7607366012aSmrgac_unrecognized_sep=
7617a0395d0Smrg# The variables have the same names as the options, with
7627a0395d0Smrg# dashes changed to underlines.
7637a0395d0Smrgcache_file=/dev/null
7647a0395d0Smrgexec_prefix=NONE
7657a0395d0Smrgno_create=
7667a0395d0Smrgno_recursion=
7677a0395d0Smrgprefix=NONE
7687a0395d0Smrgprogram_prefix=NONE
7697a0395d0Smrgprogram_suffix=NONE
7707a0395d0Smrgprogram_transform_name=s,x,x,
7717a0395d0Smrgsilent=
7727a0395d0Smrgsite=
7737a0395d0Smrgsrcdir=
7747a0395d0Smrgverbose=
7757a0395d0Smrgx_includes=NONE
7767a0395d0Smrgx_libraries=NONE
7777a0395d0Smrg
7787a0395d0Smrg# Installation directory options.
7797a0395d0Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
7807a0395d0Smrg# and all the variables that are supposed to be based on exec_prefix
7817a0395d0Smrg# by default will actually change.
7827a0395d0Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
7837a0395d0Smrg# (The list follows the same order as the GNU Coding Standards.)
7847a0395d0Smrgbindir='${exec_prefix}/bin'
7857a0395d0Smrgsbindir='${exec_prefix}/sbin'
7867a0395d0Smrglibexecdir='${exec_prefix}/libexec'
7877a0395d0Smrgdatarootdir='${prefix}/share'
7887a0395d0Smrgdatadir='${datarootdir}'
7897a0395d0Smrgsysconfdir='${prefix}/etc'
7907a0395d0Smrgsharedstatedir='${prefix}/com'
7917a0395d0Smrglocalstatedir='${prefix}/var'
7927a0395d0Smrgincludedir='${prefix}/include'
7937a0395d0Smrgoldincludedir='/usr/include'
7947a0395d0Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
7957a0395d0Smrginfodir='${datarootdir}/info'
7967a0395d0Smrghtmldir='${docdir}'
7977a0395d0Smrgdvidir='${docdir}'
7987a0395d0Smrgpdfdir='${docdir}'
7997a0395d0Smrgpsdir='${docdir}'
8007a0395d0Smrglibdir='${exec_prefix}/lib'
8017a0395d0Smrglocaledir='${datarootdir}/locale'
8027a0395d0Smrgmandir='${datarootdir}/man'
8037a0395d0Smrg
8047a0395d0Smrgac_prev=
8057a0395d0Smrgac_dashdash=
8067a0395d0Smrgfor ac_option
8077a0395d0Smrgdo
8087a0395d0Smrg  # If the previous option needs an argument, assign it.
8097a0395d0Smrg  if test -n "$ac_prev"; then
8107a0395d0Smrg    eval $ac_prev=\$ac_option
8117a0395d0Smrg    ac_prev=
8127a0395d0Smrg    continue
8137a0395d0Smrg  fi
8147a0395d0Smrg
8157a0395d0Smrg  case $ac_option in
8162adc0320Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8172adc0320Smrg  *=)   ac_optarg= ;;
8182adc0320Smrg  *)    ac_optarg=yes ;;
8197a0395d0Smrg  esac
8207a0395d0Smrg
8217a0395d0Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8227a0395d0Smrg
8237a0395d0Smrg  case $ac_dashdash$ac_option in
8247a0395d0Smrg  --)
8257a0395d0Smrg    ac_dashdash=yes ;;
8267a0395d0Smrg
8277a0395d0Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8287a0395d0Smrg    ac_prev=bindir ;;
8297a0395d0Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8307a0395d0Smrg    bindir=$ac_optarg ;;
8317a0395d0Smrg
8327a0395d0Smrg  -build | --build | --buil | --bui | --bu)
8337a0395d0Smrg    ac_prev=build_alias ;;
8347a0395d0Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8357a0395d0Smrg    build_alias=$ac_optarg ;;
8367a0395d0Smrg
8377a0395d0Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8387a0395d0Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8397a0395d0Smrg    ac_prev=cache_file ;;
8407a0395d0Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8417a0395d0Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8427a0395d0Smrg    cache_file=$ac_optarg ;;
8437a0395d0Smrg
8447a0395d0Smrg  --config-cache | -C)
8457a0395d0Smrg    cache_file=config.cache ;;
8467a0395d0Smrg
8477a0395d0Smrg  -datadir | --datadir | --datadi | --datad)
8487a0395d0Smrg    ac_prev=datadir ;;
8497a0395d0Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8507a0395d0Smrg    datadir=$ac_optarg ;;
8517a0395d0Smrg
8527a0395d0Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8537a0395d0Smrg  | --dataroo | --dataro | --datar)
8547a0395d0Smrg    ac_prev=datarootdir ;;
8557a0395d0Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8567a0395d0Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8577a0395d0Smrg    datarootdir=$ac_optarg ;;
8587a0395d0Smrg
8597a0395d0Smrg  -disable-* | --disable-*)
8607366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8617a0395d0Smrg    # Reject names that are not valid shell variable names.
8627366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8632adc0320Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8647366012aSmrg    ac_useropt_orig=$ac_useropt
8657366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8667366012aSmrg    case $ac_user_opts in
8677366012aSmrg      *"
8687366012aSmrg"enable_$ac_useropt"
8697366012aSmrg"*) ;;
8707366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8717366012aSmrg	 ac_unrecognized_sep=', ';;
8727366012aSmrg    esac
8737366012aSmrg    eval enable_$ac_useropt=no ;;
8747a0395d0Smrg
8757a0395d0Smrg  -docdir | --docdir | --docdi | --doc | --do)
8767a0395d0Smrg    ac_prev=docdir ;;
8777a0395d0Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
8787a0395d0Smrg    docdir=$ac_optarg ;;
8797a0395d0Smrg
8807a0395d0Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
8817a0395d0Smrg    ac_prev=dvidir ;;
8827a0395d0Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
8837a0395d0Smrg    dvidir=$ac_optarg ;;
8847a0395d0Smrg
8857a0395d0Smrg  -enable-* | --enable-*)
8867366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8877a0395d0Smrg    # Reject names that are not valid shell variable names.
8887366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8892adc0320Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
8907366012aSmrg    ac_useropt_orig=$ac_useropt
8917366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8927366012aSmrg    case $ac_user_opts in
8937366012aSmrg      *"
8947366012aSmrg"enable_$ac_useropt"
8957366012aSmrg"*) ;;
8967366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
8977366012aSmrg	 ac_unrecognized_sep=', ';;
8987366012aSmrg    esac
8997366012aSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9007a0395d0Smrg
9017a0395d0Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9027a0395d0Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9037a0395d0Smrg  | --exec | --exe | --ex)
9047a0395d0Smrg    ac_prev=exec_prefix ;;
9057a0395d0Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9067a0395d0Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9077a0395d0Smrg  | --exec=* | --exe=* | --ex=*)
9087a0395d0Smrg    exec_prefix=$ac_optarg ;;
9097a0395d0Smrg
9107a0395d0Smrg  -gas | --gas | --ga | --g)
9117a0395d0Smrg    # Obsolete; use --with-gas.
9127a0395d0Smrg    with_gas=yes ;;
9137a0395d0Smrg
9147a0395d0Smrg  -help | --help | --hel | --he | -h)
9157a0395d0Smrg    ac_init_help=long ;;
9167a0395d0Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9177a0395d0Smrg    ac_init_help=recursive ;;
9187a0395d0Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9197a0395d0Smrg    ac_init_help=short ;;
9207a0395d0Smrg
9217a0395d0Smrg  -host | --host | --hos | --ho)
9227a0395d0Smrg    ac_prev=host_alias ;;
9237a0395d0Smrg  -host=* | --host=* | --hos=* | --ho=*)
9247a0395d0Smrg    host_alias=$ac_optarg ;;
9257a0395d0Smrg
9267a0395d0Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9277a0395d0Smrg    ac_prev=htmldir ;;
9287a0395d0Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9297a0395d0Smrg  | --ht=*)
9307a0395d0Smrg    htmldir=$ac_optarg ;;
9317a0395d0Smrg
9327a0395d0Smrg  -includedir | --includedir | --includedi | --included | --include \
9337a0395d0Smrg  | --includ | --inclu | --incl | --inc)
9347a0395d0Smrg    ac_prev=includedir ;;
9357a0395d0Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9367a0395d0Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9377a0395d0Smrg    includedir=$ac_optarg ;;
9387a0395d0Smrg
9397a0395d0Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9407a0395d0Smrg    ac_prev=infodir ;;
9417a0395d0Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9427a0395d0Smrg    infodir=$ac_optarg ;;
9437a0395d0Smrg
9447a0395d0Smrg  -libdir | --libdir | --libdi | --libd)
9457a0395d0Smrg    ac_prev=libdir ;;
9467a0395d0Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9477a0395d0Smrg    libdir=$ac_optarg ;;
9487a0395d0Smrg
9497a0395d0Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9507a0395d0Smrg  | --libexe | --libex | --libe)
9517a0395d0Smrg    ac_prev=libexecdir ;;
9527a0395d0Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9537a0395d0Smrg  | --libexe=* | --libex=* | --libe=*)
9547a0395d0Smrg    libexecdir=$ac_optarg ;;
9557a0395d0Smrg
9567a0395d0Smrg  -localedir | --localedir | --localedi | --localed | --locale)
9577a0395d0Smrg    ac_prev=localedir ;;
9587a0395d0Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9597a0395d0Smrg    localedir=$ac_optarg ;;
9607a0395d0Smrg
9617a0395d0Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9627a0395d0Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
9637a0395d0Smrg    ac_prev=localstatedir ;;
9647a0395d0Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9657a0395d0Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9667a0395d0Smrg    localstatedir=$ac_optarg ;;
9677a0395d0Smrg
9687a0395d0Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9697a0395d0Smrg    ac_prev=mandir ;;
9707a0395d0Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9717a0395d0Smrg    mandir=$ac_optarg ;;
9727a0395d0Smrg
9737a0395d0Smrg  -nfp | --nfp | --nf)
9747a0395d0Smrg    # Obsolete; use --without-fp.
9757a0395d0Smrg    with_fp=no ;;
9767a0395d0Smrg
9777a0395d0Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
9787a0395d0Smrg  | --no-cr | --no-c | -n)
9797a0395d0Smrg    no_create=yes ;;
9807a0395d0Smrg
9817a0395d0Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
9827a0395d0Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
9837a0395d0Smrg    no_recursion=yes ;;
9847a0395d0Smrg
9857a0395d0Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
9867a0395d0Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
9877a0395d0Smrg  | --oldin | --oldi | --old | --ol | --o)
9887a0395d0Smrg    ac_prev=oldincludedir ;;
9897a0395d0Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
9907a0395d0Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
9917a0395d0Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9927a0395d0Smrg    oldincludedir=$ac_optarg ;;
9937a0395d0Smrg
9947a0395d0Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9957a0395d0Smrg    ac_prev=prefix ;;
9967a0395d0Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9977a0395d0Smrg    prefix=$ac_optarg ;;
9987a0395d0Smrg
9997a0395d0Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10007a0395d0Smrg  | --program-pre | --program-pr | --program-p)
10017a0395d0Smrg    ac_prev=program_prefix ;;
10027a0395d0Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10037a0395d0Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10047a0395d0Smrg    program_prefix=$ac_optarg ;;
10057a0395d0Smrg
10067a0395d0Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10077a0395d0Smrg  | --program-suf | --program-su | --program-s)
10087a0395d0Smrg    ac_prev=program_suffix ;;
10097a0395d0Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10107a0395d0Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10117a0395d0Smrg    program_suffix=$ac_optarg ;;
10127a0395d0Smrg
10137a0395d0Smrg  -program-transform-name | --program-transform-name \
10147a0395d0Smrg  | --program-transform-nam | --program-transform-na \
10157a0395d0Smrg  | --program-transform-n | --program-transform- \
10167a0395d0Smrg  | --program-transform | --program-transfor \
10177a0395d0Smrg  | --program-transfo | --program-transf \
10187a0395d0Smrg  | --program-trans | --program-tran \
10197a0395d0Smrg  | --progr-tra | --program-tr | --program-t)
10207a0395d0Smrg    ac_prev=program_transform_name ;;
10217a0395d0Smrg  -program-transform-name=* | --program-transform-name=* \
10227a0395d0Smrg  | --program-transform-nam=* | --program-transform-na=* \
10237a0395d0Smrg  | --program-transform-n=* | --program-transform-=* \
10247a0395d0Smrg  | --program-transform=* | --program-transfor=* \
10257a0395d0Smrg  | --program-transfo=* | --program-transf=* \
10267a0395d0Smrg  | --program-trans=* | --program-tran=* \
10277a0395d0Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10287a0395d0Smrg    program_transform_name=$ac_optarg ;;
10297a0395d0Smrg
10307a0395d0Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10317a0395d0Smrg    ac_prev=pdfdir ;;
10327a0395d0Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10337a0395d0Smrg    pdfdir=$ac_optarg ;;
10347a0395d0Smrg
10357a0395d0Smrg  -psdir | --psdir | --psdi | --psd | --ps)
10367a0395d0Smrg    ac_prev=psdir ;;
10377a0395d0Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10387a0395d0Smrg    psdir=$ac_optarg ;;
10397a0395d0Smrg
10407a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10417a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil)
10427a0395d0Smrg    silent=yes ;;
10437a0395d0Smrg
10447a0395d0Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10457a0395d0Smrg    ac_prev=sbindir ;;
10467a0395d0Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10477a0395d0Smrg  | --sbi=* | --sb=*)
10487a0395d0Smrg    sbindir=$ac_optarg ;;
10497a0395d0Smrg
10507a0395d0Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10517a0395d0Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10527a0395d0Smrg  | --sharedst | --shareds | --shared | --share | --shar \
10537a0395d0Smrg  | --sha | --sh)
10547a0395d0Smrg    ac_prev=sharedstatedir ;;
10557a0395d0Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10567a0395d0Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10577a0395d0Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10587a0395d0Smrg  | --sha=* | --sh=*)
10597a0395d0Smrg    sharedstatedir=$ac_optarg ;;
10607a0395d0Smrg
10617a0395d0Smrg  -site | --site | --sit)
10627a0395d0Smrg    ac_prev=site ;;
10637a0395d0Smrg  -site=* | --site=* | --sit=*)
10647a0395d0Smrg    site=$ac_optarg ;;
10657a0395d0Smrg
10667a0395d0Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10677a0395d0Smrg    ac_prev=srcdir ;;
10687a0395d0Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10697a0395d0Smrg    srcdir=$ac_optarg ;;
10707a0395d0Smrg
10717a0395d0Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10727a0395d0Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
10737a0395d0Smrg    ac_prev=sysconfdir ;;
10747a0395d0Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
10757a0395d0Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
10767a0395d0Smrg    sysconfdir=$ac_optarg ;;
10777a0395d0Smrg
10787a0395d0Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
10797a0395d0Smrg    ac_prev=target_alias ;;
10807a0395d0Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
10817a0395d0Smrg    target_alias=$ac_optarg ;;
10827a0395d0Smrg
10837a0395d0Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
10847a0395d0Smrg    verbose=yes ;;
10857a0395d0Smrg
10867a0395d0Smrg  -version | --version | --versio | --versi | --vers | -V)
10877a0395d0Smrg    ac_init_version=: ;;
10887a0395d0Smrg
10897a0395d0Smrg  -with-* | --with-*)
10907366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10917a0395d0Smrg    # Reject names that are not valid shell variable names.
10927366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
10932adc0320Smrg      as_fn_error $? "invalid package name: $ac_useropt"
10947366012aSmrg    ac_useropt_orig=$ac_useropt
10957366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10967366012aSmrg    case $ac_user_opts in
10977366012aSmrg      *"
10987366012aSmrg"with_$ac_useropt"
10997366012aSmrg"*) ;;
11007366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11017366012aSmrg	 ac_unrecognized_sep=', ';;
11027366012aSmrg    esac
11037366012aSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11047a0395d0Smrg
11057a0395d0Smrg  -without-* | --without-*)
11067366012aSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11077a0395d0Smrg    # Reject names that are not valid shell variable names.
11087366012aSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11092adc0320Smrg      as_fn_error $? "invalid package name: $ac_useropt"
11107366012aSmrg    ac_useropt_orig=$ac_useropt
11117366012aSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11127366012aSmrg    case $ac_user_opts in
11137366012aSmrg      *"
11147366012aSmrg"with_$ac_useropt"
11157366012aSmrg"*) ;;
11167366012aSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11177366012aSmrg	 ac_unrecognized_sep=', ';;
11187366012aSmrg    esac
11197366012aSmrg    eval with_$ac_useropt=no ;;
11207a0395d0Smrg
11217a0395d0Smrg  --x)
11227a0395d0Smrg    # Obsolete; use --with-x.
11237a0395d0Smrg    with_x=yes ;;
11247a0395d0Smrg
11257a0395d0Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11267a0395d0Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11277a0395d0Smrg    ac_prev=x_includes ;;
11287a0395d0Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11297a0395d0Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11307a0395d0Smrg    x_includes=$ac_optarg ;;
11317a0395d0Smrg
11327a0395d0Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11337a0395d0Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11347a0395d0Smrg    ac_prev=x_libraries ;;
11357a0395d0Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11367a0395d0Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11377a0395d0Smrg    x_libraries=$ac_optarg ;;
11387a0395d0Smrg
11392adc0320Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11402adc0320SmrgTry \`$0 --help' for more information"
11417a0395d0Smrg    ;;
11427a0395d0Smrg
11437a0395d0Smrg  *=*)
11447a0395d0Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11457a0395d0Smrg    # Reject names that are not valid shell variable names.
11462adc0320Smrg    case $ac_envvar in #(
11472adc0320Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11482adc0320Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11492adc0320Smrg    esac
11507a0395d0Smrg    eval $ac_envvar=\$ac_optarg
11517a0395d0Smrg    export $ac_envvar ;;
11527a0395d0Smrg
11537a0395d0Smrg  *)
11547a0395d0Smrg    # FIXME: should be removed in autoconf 3.0.
11557366012aSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11567a0395d0Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11577366012aSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11582adc0320Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11597a0395d0Smrg    ;;
11607a0395d0Smrg
11617a0395d0Smrg  esac
11627a0395d0Smrgdone
11637a0395d0Smrg
11647a0395d0Smrgif test -n "$ac_prev"; then
11657a0395d0Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11662adc0320Smrg  as_fn_error $? "missing argument to $ac_option"
11677a0395d0Smrgfi
11687a0395d0Smrg
11697366012aSmrgif test -n "$ac_unrecognized_opts"; then
11707366012aSmrg  case $enable_option_checking in
11717366012aSmrg    no) ;;
11722adc0320Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11737366012aSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11747366012aSmrg  esac
11757366012aSmrgfi
11767366012aSmrg
11777366012aSmrg# Check all directory arguments for consistency.
11787a0395d0Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11797a0395d0Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
11807a0395d0Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
11817a0395d0Smrg		libdir localedir mandir
11827a0395d0Smrgdo
11837a0395d0Smrg  eval ac_val=\$$ac_var
11847366012aSmrg  # Remove trailing slashes.
11857366012aSmrg  case $ac_val in
11867366012aSmrg    */ )
11877366012aSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
11887366012aSmrg      eval $ac_var=\$ac_val;;
11897366012aSmrg  esac
11907366012aSmrg  # Be sure to have absolute directory names.
11917a0395d0Smrg  case $ac_val in
11927a0395d0Smrg    [\\/$]* | ?:[\\/]* )  continue;;
11937a0395d0Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11947a0395d0Smrg  esac
11952adc0320Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11967a0395d0Smrgdone
11977a0395d0Smrg
11987a0395d0Smrg# There might be people who depend on the old broken behavior: `$host'
11997a0395d0Smrg# used to hold the argument of --host etc.
12007a0395d0Smrg# FIXME: To remove some day.
12017a0395d0Smrgbuild=$build_alias
12027a0395d0Smrghost=$host_alias
12037a0395d0Smrgtarget=$target_alias
12047a0395d0Smrg
12057a0395d0Smrg# FIXME: To remove some day.
12067a0395d0Smrgif test "x$host_alias" != x; then
12077a0395d0Smrg  if test "x$build_alias" = x; then
12087a0395d0Smrg    cross_compiling=maybe
12092adc0320Smrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12102adc0320Smrg    If a cross compiler is detected then cross compile mode will be used" >&2
12117a0395d0Smrg  elif test "x$build_alias" != "x$host_alias"; then
12127a0395d0Smrg    cross_compiling=yes
12137a0395d0Smrg  fi
12147a0395d0Smrgfi
12157a0395d0Smrg
12167a0395d0Smrgac_tool_prefix=
12177a0395d0Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12187a0395d0Smrg
12197a0395d0Smrgtest "$silent" = yes && exec 6>/dev/null
12207a0395d0Smrg
12217a0395d0Smrg
12227a0395d0Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12237a0395d0Smrgac_ls_di=`ls -di .` &&
12247a0395d0Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12252adc0320Smrg  as_fn_error $? "working directory cannot be determined"
12267a0395d0Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12272adc0320Smrg  as_fn_error $? "pwd does not report name of working directory"
12287a0395d0Smrg
12297a0395d0Smrg
12307a0395d0Smrg# Find the source files, if location was not specified.
12317a0395d0Smrgif test -z "$srcdir"; then
12327a0395d0Smrg  ac_srcdir_defaulted=yes
12337a0395d0Smrg  # Try the directory containing this script, then the parent directory.
12347366012aSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12357366012aSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12367366012aSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12377366012aSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12387366012aSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12397366012aSmrg$as_echo X"$as_myself" |
12407a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12417a0395d0Smrg	    s//\1/
12427a0395d0Smrg	    q
12437a0395d0Smrg	  }
12447a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
12457a0395d0Smrg	    s//\1/
12467a0395d0Smrg	    q
12477a0395d0Smrg	  }
12487a0395d0Smrg	  /^X\(\/\/\)$/{
12497a0395d0Smrg	    s//\1/
12507a0395d0Smrg	    q
12517a0395d0Smrg	  }
12527a0395d0Smrg	  /^X\(\/\).*/{
12537a0395d0Smrg	    s//\1/
12547a0395d0Smrg	    q
12557a0395d0Smrg	  }
12567a0395d0Smrg	  s/.*/./; q'`
12577a0395d0Smrg  srcdir=$ac_confdir
12587a0395d0Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
12597a0395d0Smrg    srcdir=..
12607a0395d0Smrg  fi
12617a0395d0Smrgelse
12627a0395d0Smrg  ac_srcdir_defaulted=no
12637a0395d0Smrgfi
12647a0395d0Smrgif test ! -r "$srcdir/$ac_unique_file"; then
12657a0395d0Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12662adc0320Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12677a0395d0Smrgfi
12687a0395d0Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12697a0395d0Smrgac_abs_confdir=`(
12702adc0320Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12717a0395d0Smrg	pwd)`
12727a0395d0Smrg# When building in place, set srcdir=.
12737a0395d0Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
12747a0395d0Smrg  srcdir=.
12757a0395d0Smrgfi
12767a0395d0Smrg# Remove unnecessary trailing slashes from srcdir.
12777a0395d0Smrg# Double slashes in file names in object file debugging info
12787a0395d0Smrg# mess up M-x gdb in Emacs.
12797a0395d0Smrgcase $srcdir in
12807a0395d0Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
12817a0395d0Smrgesac
12827a0395d0Smrgfor ac_var in $ac_precious_vars; do
12837a0395d0Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
12847a0395d0Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
12857a0395d0Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
12867a0395d0Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
12877a0395d0Smrgdone
12887a0395d0Smrg
12897a0395d0Smrg#
12907a0395d0Smrg# Report the --help message.
12917a0395d0Smrg#
12927a0395d0Smrgif test "$ac_init_help" = "long"; then
12937a0395d0Smrg  # Omit some internal or obsolete options to make the list less imposing.
12947a0395d0Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
12957a0395d0Smrg  cat <<_ACEOF
12962adc0320Smrg\`configure' configures xauth 1.0.5 to adapt to many kinds of systems.
12977a0395d0Smrg
12987a0395d0SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
12997a0395d0Smrg
13007a0395d0SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13017a0395d0SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13027a0395d0Smrg
13037a0395d0SmrgDefaults for the options are specified in brackets.
13047a0395d0Smrg
13057a0395d0SmrgConfiguration:
13067a0395d0Smrg  -h, --help              display this help and exit
13077a0395d0Smrg      --help=short        display options specific to this package
13087a0395d0Smrg      --help=recursive    display the short help of all the included packages
13097a0395d0Smrg  -V, --version           display version information and exit
13102adc0320Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
13117a0395d0Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13127a0395d0Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13137a0395d0Smrg  -n, --no-create         do not create output files
13147a0395d0Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13157a0395d0Smrg
13167a0395d0SmrgInstallation directories:
13177a0395d0Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13187366012aSmrg                          [$ac_default_prefix]
13197a0395d0Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13207366012aSmrg                          [PREFIX]
13217a0395d0Smrg
13227a0395d0SmrgBy default, \`make install' will install all the files in
13237a0395d0Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13247a0395d0Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13257a0395d0Smrgfor instance \`--prefix=\$HOME'.
13267a0395d0Smrg
13277a0395d0SmrgFor better control, use the options below.
13287a0395d0Smrg
13297a0395d0SmrgFine tuning of the installation directories:
13307366012aSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13317366012aSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13327366012aSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13337366012aSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13347366012aSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13357366012aSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13367366012aSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13377366012aSmrg  --includedir=DIR        C header files [PREFIX/include]
13387366012aSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13397366012aSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13407366012aSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13417366012aSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13427366012aSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13437366012aSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13447366012aSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xauth]
13457366012aSmrg  --htmldir=DIR           html documentation [DOCDIR]
13467366012aSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13477366012aSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13487366012aSmrg  --psdir=DIR             ps documentation [DOCDIR]
13497a0395d0Smrg_ACEOF
13507a0395d0Smrg
13517a0395d0Smrg  cat <<\_ACEOF
13527a0395d0Smrg
13537a0395d0SmrgProgram names:
13547a0395d0Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13557a0395d0Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13567a0395d0Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13577a0395d0Smrg
13587a0395d0SmrgSystem types:
13597a0395d0Smrg  --build=BUILD     configure for building on BUILD [guessed]
13607a0395d0Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13617a0395d0Smrg_ACEOF
13627a0395d0Smrgfi
13637a0395d0Smrg
13647a0395d0Smrgif test -n "$ac_init_help"; then
13657a0395d0Smrg  case $ac_init_help in
13662adc0320Smrg     short | recursive ) echo "Configuration of xauth 1.0.5:";;
13677a0395d0Smrg   esac
13687a0395d0Smrg  cat <<\_ACEOF
13697a0395d0Smrg
13707a0395d0SmrgOptional Features:
13717366012aSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
13727a0395d0Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
13737a0395d0Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
13747a0395d0Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
13757a0395d0Smrg			  (and sometimes confusing) to the casual installer
13767a0395d0Smrg  --disable-dependency-tracking  speeds up one-time build
13777a0395d0Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
13787366012aSmrg  --enable-strict-compilation
13797366012aSmrg                          Enable all warnings from compiler and make them
13807366012aSmrg                          errors (default: disabled)
13812adc0320Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13822adc0320Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
13837a0395d0Smrg  --enable-unix-transport Enable UNIX domain socket transport
13847a0395d0Smrg  --enable-tcp-transport  Enable TCP socket transport
13857366012aSmrg  --enable-ipv6           Enable IPv6 support
13867a0395d0Smrg  --enable-local-transport
13877a0395d0Smrg                          Enable os-specific local transport
13887a0395d0Smrg
13897a0395d0SmrgOptional Packages:
13907a0395d0Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
13917a0395d0Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
13927366012aSmrg  --with-lint             Use a lint-style source code checker (default:
13937366012aSmrg                          disabled)
13947a0395d0Smrg
13957a0395d0SmrgSome influential environment variables:
13967a0395d0Smrg  CC          C compiler command
13977a0395d0Smrg  CFLAGS      C compiler flags
13987a0395d0Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
13997a0395d0Smrg              nonstandard directory <lib dir>
14007a0395d0Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14012adc0320Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14027a0395d0Smrg              you have headers in a nonstandard directory <include dir>
14037a0395d0Smrg  CPP         C preprocessor
14047a0395d0Smrg  PKG_CONFIG  path to pkg-config utility
14057a0395d0Smrg  XAUTH_CFLAGS
14067a0395d0Smrg              C compiler flags for XAUTH, overriding pkg-config
14077a0395d0Smrg  XAUTH_LIBS  linker flags for XAUTH, overriding pkg-config
14082adc0320Smrg  LINT        Path to a lint-style command
14092adc0320Smrg  LINT_FLAGS  Flags for the lint-style command
14107a0395d0Smrg
14117a0395d0SmrgUse these variables to override the choices made by `configure' or to help
14127a0395d0Smrgit to find libraries and programs with nonstandard names/locations.
14137a0395d0Smrg
14147a0395d0SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14157a0395d0Smrg_ACEOF
14167a0395d0Smrgac_status=$?
14177a0395d0Smrgfi
14187a0395d0Smrg
14197a0395d0Smrgif test "$ac_init_help" = "recursive"; then
14207a0395d0Smrg  # If there are subdirs, report their specific --help.
14217a0395d0Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14227366012aSmrg    test -d "$ac_dir" ||
14237366012aSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14247366012aSmrg      continue
14257a0395d0Smrg    ac_builddir=.
14267a0395d0Smrg
14277a0395d0Smrgcase "$ac_dir" in
14287a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14297a0395d0Smrg*)
14307366012aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14317a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
14327366012aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14337a0395d0Smrg  case $ac_top_builddir_sub in
14347a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14357a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14367a0395d0Smrg  esac ;;
14377a0395d0Smrgesac
14387a0395d0Smrgac_abs_top_builddir=$ac_pwd
14397a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14407a0395d0Smrg# for backward compatibility:
14417a0395d0Smrgac_top_builddir=$ac_top_build_prefix
14427a0395d0Smrg
14437a0395d0Smrgcase $srcdir in
14447a0395d0Smrg  .)  # We are building in place.
14457a0395d0Smrg    ac_srcdir=.
14467a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
14477a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
14487a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14497a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
14507a0395d0Smrg    ac_top_srcdir=$srcdir
14517a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
14527a0395d0Smrg  *) # Relative name.
14537a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14547a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14557a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14567a0395d0Smrgesac
14577a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14587a0395d0Smrg
14597a0395d0Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
14607a0395d0Smrg    # Check for guested configure.
14617a0395d0Smrg    if test -f "$ac_srcdir/configure.gnu"; then
14627a0395d0Smrg      echo &&
14637a0395d0Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14647a0395d0Smrg    elif test -f "$ac_srcdir/configure"; then
14657a0395d0Smrg      echo &&
14667a0395d0Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
14677a0395d0Smrg    else
14687366012aSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14697a0395d0Smrg    fi || ac_status=$?
14707a0395d0Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
14717a0395d0Smrg  done
14727a0395d0Smrgfi
14737a0395d0Smrg
14747a0395d0Smrgtest -n "$ac_init_help" && exit $ac_status
14757a0395d0Smrgif $ac_init_version; then
14767a0395d0Smrg  cat <<\_ACEOF
14772adc0320Smrgxauth configure 1.0.5
14782adc0320Smrggenerated by GNU Autoconf 2.68
14797a0395d0Smrg
14802adc0320SmrgCopyright (C) 2010 Free Software Foundation, Inc.
14817a0395d0SmrgThis configure script is free software; the Free Software Foundation
14827a0395d0Smrggives unlimited permission to copy, distribute and modify it.
14837a0395d0Smrg_ACEOF
14847a0395d0Smrg  exit
14857a0395d0Smrgfi
14867a0395d0Smrg
14872adc0320Smrg## ------------------------ ##
14882adc0320Smrg## Autoconf initialization. ##
14892adc0320Smrg## ------------------------ ##
14907a0395d0Smrg
14912adc0320Smrg# ac_fn_c_try_compile LINENO
14922adc0320Smrg# --------------------------
14932adc0320Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
14942adc0320Smrgac_fn_c_try_compile ()
14957a0395d0Smrg{
14962adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14972adc0320Smrg  rm -f conftest.$ac_objext
14982adc0320Smrg  if { { ac_try="$ac_compile"
14992adc0320Smrgcase "(($ac_try" in
15002adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012adc0320Smrg  *) ac_try_echo=$ac_try;;
15022adc0320Smrgesac
15032adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15042adc0320Smrg$as_echo "$ac_try_echo"; } >&5
15052adc0320Smrg  (eval "$ac_compile") 2>conftest.err
15062adc0320Smrg  ac_status=$?
15072adc0320Smrg  if test -s conftest.err; then
15082adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
15092adc0320Smrg    cat conftest.er1 >&5
15102adc0320Smrg    mv -f conftest.er1 conftest.err
15112adc0320Smrg  fi
15122adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15132adc0320Smrg  test $ac_status = 0; } && {
15142adc0320Smrg	 test -z "$ac_c_werror_flag" ||
15152adc0320Smrg	 test ! -s conftest.err
15162adc0320Smrg       } && test -s conftest.$ac_objext; then :
15172adc0320Smrg  ac_retval=0
15182adc0320Smrgelse
15192adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
15202adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
15217a0395d0Smrg
15222adc0320Smrg	ac_retval=1
15232adc0320Smrgfi
15242adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15252adc0320Smrg  as_fn_set_status $ac_retval
15267a0395d0Smrg
15272adc0320Smrg} # ac_fn_c_try_compile
15282adc0320Smrg
15292adc0320Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15302adc0320Smrg# ---------------------------------------------
15312adc0320Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15322adc0320Smrg# accordingly.
15332adc0320Smrgac_fn_c_check_decl ()
15342adc0320Smrg{
15352adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15362adc0320Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15372adc0320Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15382adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15392adc0320Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15402adc0320Smrgif eval \${$3+:} false; then :
15412adc0320Smrg  $as_echo_n "(cached) " >&6
15422adc0320Smrgelse
15432adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442adc0320Smrg/* end confdefs.h.  */
15452adc0320Smrg$4
15462adc0320Smrgint
15472adc0320Smrgmain ()
15482adc0320Smrg{
15492adc0320Smrg#ifndef $as_decl_name
15502adc0320Smrg#ifdef __cplusplus
15512adc0320Smrg  (void) $as_decl_use;
15522adc0320Smrg#else
15532adc0320Smrg  (void) $as_decl_name;
15542adc0320Smrg#endif
15552adc0320Smrg#endif
15562adc0320Smrg
15572adc0320Smrg  ;
15582adc0320Smrg  return 0;
15592adc0320Smrg}
15602adc0320Smrg_ACEOF
15612adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
15622adc0320Smrg  eval "$3=yes"
15632adc0320Smrgelse
15642adc0320Smrg  eval "$3=no"
15652adc0320Smrgfi
15662adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672adc0320Smrgfi
15682adc0320Smrgeval ac_res=\$$3
15692adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15702adc0320Smrg$as_echo "$ac_res" >&6; }
15712adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15722adc0320Smrg
15732adc0320Smrg} # ac_fn_c_check_decl
15742adc0320Smrg
15752adc0320Smrg# ac_fn_c_try_cpp LINENO
15762adc0320Smrg# ----------------------
15772adc0320Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
15782adc0320Smrgac_fn_c_try_cpp ()
15792adc0320Smrg{
15802adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15812adc0320Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
15822adc0320Smrgcase "(($ac_try" in
15832adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842adc0320Smrg  *) ac_try_echo=$ac_try;;
15852adc0320Smrgesac
15862adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15872adc0320Smrg$as_echo "$ac_try_echo"; } >&5
15882adc0320Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
15892adc0320Smrg  ac_status=$?
15902adc0320Smrg  if test -s conftest.err; then
15912adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
15922adc0320Smrg    cat conftest.er1 >&5
15932adc0320Smrg    mv -f conftest.er1 conftest.err
15942adc0320Smrg  fi
15952adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15962adc0320Smrg  test $ac_status = 0; } > conftest.i && {
15972adc0320Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15982adc0320Smrg	 test ! -s conftest.err
15992adc0320Smrg       }; then :
16002adc0320Smrg  ac_retval=0
16012adc0320Smrgelse
16022adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
16032adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
16042adc0320Smrg
16052adc0320Smrg    ac_retval=1
16062adc0320Smrgfi
16072adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16082adc0320Smrg  as_fn_set_status $ac_retval
16092adc0320Smrg
16102adc0320Smrg} # ac_fn_c_try_cpp
16112adc0320Smrg
16122adc0320Smrg# ac_fn_c_try_run LINENO
16132adc0320Smrg# ----------------------
16142adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16152adc0320Smrg# that executables *can* be run.
16162adc0320Smrgac_fn_c_try_run ()
16172adc0320Smrg{
16182adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16192adc0320Smrg  if { { ac_try="$ac_link"
16202adc0320Smrgcase "(($ac_try" in
16212adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222adc0320Smrg  *) ac_try_echo=$ac_try;;
16232adc0320Smrgesac
16242adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16252adc0320Smrg$as_echo "$ac_try_echo"; } >&5
16262adc0320Smrg  (eval "$ac_link") 2>&5
16272adc0320Smrg  ac_status=$?
16282adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16292adc0320Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16302adc0320Smrg  { { case "(($ac_try" in
16312adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322adc0320Smrg  *) ac_try_echo=$ac_try;;
16332adc0320Smrgesac
16342adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16352adc0320Smrg$as_echo "$ac_try_echo"; } >&5
16362adc0320Smrg  (eval "$ac_try") 2>&5
16372adc0320Smrg  ac_status=$?
16382adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16392adc0320Smrg  test $ac_status = 0; }; }; then :
16402adc0320Smrg  ac_retval=0
16412adc0320Smrgelse
16422adc0320Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16432adc0320Smrg       $as_echo "$as_me: failed program was:" >&5
16442adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
16452adc0320Smrg
16462adc0320Smrg       ac_retval=$ac_status
16472adc0320Smrgfi
16482adc0320Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16492adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16502adc0320Smrg  as_fn_set_status $ac_retval
16512adc0320Smrg
16522adc0320Smrg} # ac_fn_c_try_run
16532adc0320Smrg
16542adc0320Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16552adc0320Smrg# -------------------------------------------------------
16562adc0320Smrg# Tests whether HEADER exists and can be compiled using the include files in
16572adc0320Smrg# INCLUDES, setting the cache variable VAR accordingly.
16582adc0320Smrgac_fn_c_check_header_compile ()
16592adc0320Smrg{
16602adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16612adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16622adc0320Smrg$as_echo_n "checking for $2... " >&6; }
16632adc0320Smrgif eval \${$3+:} false; then :
16642adc0320Smrg  $as_echo_n "(cached) " >&6
16652adc0320Smrgelse
16662adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672adc0320Smrg/* end confdefs.h.  */
16682adc0320Smrg$4
16692adc0320Smrg#include <$2>
16702adc0320Smrg_ACEOF
16712adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
16722adc0320Smrg  eval "$3=yes"
16732adc0320Smrgelse
16742adc0320Smrg  eval "$3=no"
16752adc0320Smrgfi
16762adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772adc0320Smrgfi
16782adc0320Smrgeval ac_res=\$$3
16792adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16802adc0320Smrg$as_echo "$ac_res" >&6; }
16812adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16822adc0320Smrg
16832adc0320Smrg} # ac_fn_c_check_header_compile
16842adc0320Smrg
16852adc0320Smrg# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
16862adc0320Smrg# -------------------------------------------------------
16872adc0320Smrg# Tests whether HEADER exists, giving a warning if it cannot be compiled using
16882adc0320Smrg# the include files in INCLUDES and setting the cache variable VAR
16892adc0320Smrg# accordingly.
16902adc0320Smrgac_fn_c_check_header_mongrel ()
16912adc0320Smrg{
16922adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16932adc0320Smrg  if eval \${$3+:} false; then :
16942adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16952adc0320Smrg$as_echo_n "checking for $2... " >&6; }
16962adc0320Smrgif eval \${$3+:} false; then :
16972adc0320Smrg  $as_echo_n "(cached) " >&6
16982adc0320Smrgfi
16992adc0320Smrgeval ac_res=\$$3
17002adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17012adc0320Smrg$as_echo "$ac_res" >&6; }
17022adc0320Smrgelse
17032adc0320Smrg  # Is the header compilable?
17042adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
17052adc0320Smrg$as_echo_n "checking $2 usability... " >&6; }
17062adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17072adc0320Smrg/* end confdefs.h.  */
17082adc0320Smrg$4
17092adc0320Smrg#include <$2>
17102adc0320Smrg_ACEOF
17112adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
17122adc0320Smrg  ac_header_compiler=yes
17132adc0320Smrgelse
17142adc0320Smrg  ac_header_compiler=no
17152adc0320Smrgfi
17162adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
17182adc0320Smrg$as_echo "$ac_header_compiler" >&6; }
17192adc0320Smrg
17202adc0320Smrg# Is the header present?
17212adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
17222adc0320Smrg$as_echo_n "checking $2 presence... " >&6; }
17232adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242adc0320Smrg/* end confdefs.h.  */
17252adc0320Smrg#include <$2>
17262adc0320Smrg_ACEOF
17272adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
17282adc0320Smrg  ac_header_preproc=yes
17292adc0320Smrgelse
17302adc0320Smrg  ac_header_preproc=no
17312adc0320Smrgfi
17322adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
17332adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
17342adc0320Smrg$as_echo "$ac_header_preproc" >&6; }
17352adc0320Smrg
17362adc0320Smrg# So?  What about this header?
17372adc0320Smrgcase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
17382adc0320Smrg  yes:no: )
17392adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
17402adc0320Smrg$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
17412adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
17422adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
17432adc0320Smrg    ;;
17442adc0320Smrg  no:yes:* )
17452adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
17462adc0320Smrg$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
17472adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
17482adc0320Smrg$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
17492adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
17502adc0320Smrg$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
17512adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
17522adc0320Smrg$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
17532adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
17542adc0320Smrg$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
17552adc0320Smrg( $as_echo "## ---------------------------------------------------------------------- ##
17562adc0320Smrg## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
17572adc0320Smrg## ---------------------------------------------------------------------- ##"
17582adc0320Smrg     ) | sed "s/^/$as_me: WARNING:     /" >&2
17592adc0320Smrg    ;;
17602adc0320Smrgesac
17612adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17622adc0320Smrg$as_echo_n "checking for $2... " >&6; }
17632adc0320Smrgif eval \${$3+:} false; then :
17642adc0320Smrg  $as_echo_n "(cached) " >&6
17652adc0320Smrgelse
17662adc0320Smrg  eval "$3=\$ac_header_compiler"
17672adc0320Smrgfi
17682adc0320Smrgeval ac_res=\$$3
17692adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17702adc0320Smrg$as_echo "$ac_res" >&6; }
17712adc0320Smrgfi
17722adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17732adc0320Smrg
17742adc0320Smrg} # ac_fn_c_check_header_mongrel
17752adc0320Smrg
17762adc0320Smrg# ac_fn_c_try_link LINENO
17772adc0320Smrg# -----------------------
17782adc0320Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
17792adc0320Smrgac_fn_c_try_link ()
17802adc0320Smrg{
17812adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17822adc0320Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
17832adc0320Smrg  if { { ac_try="$ac_link"
17842adc0320Smrgcase "(($ac_try" in
17852adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862adc0320Smrg  *) ac_try_echo=$ac_try;;
17872adc0320Smrgesac
17882adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17892adc0320Smrg$as_echo "$ac_try_echo"; } >&5
17902adc0320Smrg  (eval "$ac_link") 2>conftest.err
17912adc0320Smrg  ac_status=$?
17922adc0320Smrg  if test -s conftest.err; then
17932adc0320Smrg    grep -v '^ *+' conftest.err >conftest.er1
17942adc0320Smrg    cat conftest.er1 >&5
17952adc0320Smrg    mv -f conftest.er1 conftest.err
17962adc0320Smrg  fi
17972adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17982adc0320Smrg  test $ac_status = 0; } && {
17992adc0320Smrg	 test -z "$ac_c_werror_flag" ||
18002adc0320Smrg	 test ! -s conftest.err
18012adc0320Smrg       } && test -s conftest$ac_exeext && {
18022adc0320Smrg	 test "$cross_compiling" = yes ||
18032adc0320Smrg	 $as_test_x conftest$ac_exeext
18042adc0320Smrg       }; then :
18052adc0320Smrg  ac_retval=0
18062adc0320Smrgelse
18072adc0320Smrg  $as_echo "$as_me: failed program was:" >&5
18082adc0320Smrgsed 's/^/| /' conftest.$ac_ext >&5
18092adc0320Smrg
18102adc0320Smrg	ac_retval=1
18112adc0320Smrgfi
18122adc0320Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
18132adc0320Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
18142adc0320Smrg  # interfere with the next link command; also delete a directory that is
18152adc0320Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
18162adc0320Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
18172adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18182adc0320Smrg  as_fn_set_status $ac_retval
18192adc0320Smrg
18202adc0320Smrg} # ac_fn_c_try_link
18212adc0320Smrg
18222adc0320Smrg# ac_fn_c_check_func LINENO FUNC VAR
18232adc0320Smrg# ----------------------------------
18242adc0320Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
18252adc0320Smrgac_fn_c_check_func ()
18262adc0320Smrg{
18272adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18282adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18292adc0320Smrg$as_echo_n "checking for $2... " >&6; }
18302adc0320Smrgif eval \${$3+:} false; then :
18312adc0320Smrg  $as_echo_n "(cached) " >&6
18322adc0320Smrgelse
18332adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342adc0320Smrg/* end confdefs.h.  */
18352adc0320Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
18362adc0320Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18372adc0320Smrg#define $2 innocuous_$2
18382adc0320Smrg
18392adc0320Smrg/* System header to define __stub macros and hopefully few prototypes,
18402adc0320Smrg    which can conflict with char $2 (); below.
18412adc0320Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18422adc0320Smrg    <limits.h> exists even on freestanding compilers.  */
18432adc0320Smrg
18442adc0320Smrg#ifdef __STDC__
18452adc0320Smrg# include <limits.h>
18462adc0320Smrg#else
18472adc0320Smrg# include <assert.h>
18482adc0320Smrg#endif
18492adc0320Smrg
18502adc0320Smrg#undef $2
18512adc0320Smrg
18522adc0320Smrg/* Override any GCC internal prototype to avoid an error.
18532adc0320Smrg   Use char because int might match the return type of a GCC
18542adc0320Smrg   builtin and then its argument prototype would still apply.  */
18552adc0320Smrg#ifdef __cplusplus
18562adc0320Smrgextern "C"
18572adc0320Smrg#endif
18582adc0320Smrgchar $2 ();
18592adc0320Smrg/* The GNU C library defines this for functions which it implements
18602adc0320Smrg    to always fail with ENOSYS.  Some functions are actually named
18612adc0320Smrg    something starting with __ and the normal name is an alias.  */
18622adc0320Smrg#if defined __stub_$2 || defined __stub___$2
18632adc0320Smrgchoke me
18642adc0320Smrg#endif
18652adc0320Smrg
18662adc0320Smrgint
18672adc0320Smrgmain ()
18682adc0320Smrg{
18692adc0320Smrgreturn $2 ();
18702adc0320Smrg  ;
18712adc0320Smrg  return 0;
18722adc0320Smrg}
18732adc0320Smrg_ACEOF
18742adc0320Smrgif ac_fn_c_try_link "$LINENO"; then :
18752adc0320Smrg  eval "$3=yes"
18762adc0320Smrgelse
18772adc0320Smrg  eval "$3=no"
18782adc0320Smrgfi
18792adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
18802adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
18812adc0320Smrgfi
18822adc0320Smrgeval ac_res=\$$3
18832adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18842adc0320Smrg$as_echo "$ac_res" >&6; }
18852adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18862adc0320Smrg
18872adc0320Smrg} # ac_fn_c_check_func
18882adc0320Smrg
18892adc0320Smrg# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
18902adc0320Smrg# ----------------------------------------------------
18912adc0320Smrg# Tries to find if the field MEMBER exists in type AGGR, after including
18922adc0320Smrg# INCLUDES, setting cache variable VAR accordingly.
18932adc0320Smrgac_fn_c_check_member ()
18942adc0320Smrg{
18952adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18962adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
18972adc0320Smrg$as_echo_n "checking for $2.$3... " >&6; }
18982adc0320Smrgif eval \${$4+:} false; then :
18992adc0320Smrg  $as_echo_n "(cached) " >&6
19002adc0320Smrgelse
19012adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19022adc0320Smrg/* end confdefs.h.  */
19032adc0320Smrg$5
19042adc0320Smrgint
19052adc0320Smrgmain ()
19062adc0320Smrg{
19072adc0320Smrgstatic $2 ac_aggr;
19082adc0320Smrgif (ac_aggr.$3)
19092adc0320Smrgreturn 0;
19102adc0320Smrg  ;
19112adc0320Smrg  return 0;
19122adc0320Smrg}
19132adc0320Smrg_ACEOF
19142adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19152adc0320Smrg  eval "$4=yes"
19162adc0320Smrgelse
19172adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182adc0320Smrg/* end confdefs.h.  */
19192adc0320Smrg$5
19202adc0320Smrgint
19212adc0320Smrgmain ()
19222adc0320Smrg{
19232adc0320Smrgstatic $2 ac_aggr;
19242adc0320Smrgif (sizeof ac_aggr.$3)
19252adc0320Smrgreturn 0;
19262adc0320Smrg  ;
19272adc0320Smrg  return 0;
19282adc0320Smrg}
19292adc0320Smrg_ACEOF
19302adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19312adc0320Smrg  eval "$4=yes"
19322adc0320Smrgelse
19332adc0320Smrg  eval "$4=no"
19342adc0320Smrgfi
19352adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362adc0320Smrgfi
19372adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19382adc0320Smrgfi
19392adc0320Smrgeval ac_res=\$$4
19402adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19412adc0320Smrg$as_echo "$ac_res" >&6; }
19422adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19432adc0320Smrg
19442adc0320Smrg} # ac_fn_c_check_member
19452adc0320Smrg
19462adc0320Smrg# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
19472adc0320Smrg# -------------------------------------------
19482adc0320Smrg# Tests whether TYPE exists after having included INCLUDES, setting cache
19492adc0320Smrg# variable VAR accordingly.
19502adc0320Smrgac_fn_c_check_type ()
19512adc0320Smrg{
19522adc0320Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19532adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19542adc0320Smrg$as_echo_n "checking for $2... " >&6; }
19552adc0320Smrgif eval \${$3+:} false; then :
19562adc0320Smrg  $as_echo_n "(cached) " >&6
19572adc0320Smrgelse
19582adc0320Smrg  eval "$3=no"
19592adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602adc0320Smrg/* end confdefs.h.  */
19612adc0320Smrg$4
19622adc0320Smrgint
19632adc0320Smrgmain ()
19642adc0320Smrg{
19652adc0320Smrgif (sizeof ($2))
19662adc0320Smrg	 return 0;
19672adc0320Smrg  ;
19682adc0320Smrg  return 0;
19692adc0320Smrg}
19702adc0320Smrg_ACEOF
19712adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19722adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19732adc0320Smrg/* end confdefs.h.  */
19742adc0320Smrg$4
19752adc0320Smrgint
19762adc0320Smrgmain ()
19772adc0320Smrg{
19782adc0320Smrgif (sizeof (($2)))
19792adc0320Smrg	    return 0;
19802adc0320Smrg  ;
19812adc0320Smrg  return 0;
19822adc0320Smrg}
19832adc0320Smrg_ACEOF
19842adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
19852adc0320Smrg
19862adc0320Smrgelse
19872adc0320Smrg  eval "$3=yes"
19882adc0320Smrgfi
19892adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902adc0320Smrgfi
19912adc0320Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922adc0320Smrgfi
19932adc0320Smrgeval ac_res=\$$3
19942adc0320Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19952adc0320Smrg$as_echo "$ac_res" >&6; }
19962adc0320Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19972adc0320Smrg
19982adc0320Smrg} # ac_fn_c_check_type
19992adc0320Smrgcat >config.log <<_ACEOF
20002adc0320SmrgThis file contains any messages produced by compilers while
20012adc0320Smrgrunning configure, to aid debugging if configure makes a mistake.
20022adc0320Smrg
20032adc0320SmrgIt was created by xauth $as_me 1.0.5, which was
20042adc0320Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
20052adc0320Smrg
20062adc0320Smrg  $ $0 $@
20072adc0320Smrg
20082adc0320Smrg_ACEOF
20092adc0320Smrgexec 5>>config.log
20102adc0320Smrg{
20112adc0320Smrgcat <<_ASUNAME
20122adc0320Smrg## --------- ##
20132adc0320Smrg## Platform. ##
20142adc0320Smrg## --------- ##
20152adc0320Smrg
20162adc0320Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
20172adc0320Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
20182adc0320Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
20192adc0320Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
20202adc0320Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
20212adc0320Smrg
20222adc0320Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
20232adc0320Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
20242adc0320Smrg
20252adc0320Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
20262adc0320Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
20272adc0320Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
20282adc0320Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
20292adc0320Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
20302adc0320Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
20312adc0320Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
20322adc0320Smrg
20332adc0320Smrg_ASUNAME
20347a0395d0Smrg
20357a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20367a0395d0Smrgfor as_dir in $PATH
20377a0395d0Smrgdo
20387a0395d0Smrg  IFS=$as_save_IFS
20397a0395d0Smrg  test -z "$as_dir" && as_dir=.
20402adc0320Smrg    $as_echo "PATH: $as_dir"
20412adc0320Smrg  done
20427a0395d0SmrgIFS=$as_save_IFS
20437a0395d0Smrg
20447a0395d0Smrg} >&5
20457a0395d0Smrg
20467a0395d0Smrgcat >&5 <<_ACEOF
20477a0395d0Smrg
20487a0395d0Smrg
20497a0395d0Smrg## ----------- ##
20507a0395d0Smrg## Core tests. ##
20517a0395d0Smrg## ----------- ##
20527a0395d0Smrg
20537a0395d0Smrg_ACEOF
20547a0395d0Smrg
20557a0395d0Smrg
20567a0395d0Smrg# Keep a trace of the command line.
20577a0395d0Smrg# Strip out --no-create and --no-recursion so they do not pile up.
20587a0395d0Smrg# Strip out --silent because we don't want to record it for future runs.
20597a0395d0Smrg# Also quote any args containing shell meta-characters.
20607a0395d0Smrg# Make two passes to allow for proper duplicate-argument suppression.
20617a0395d0Smrgac_configure_args=
20627a0395d0Smrgac_configure_args0=
20637a0395d0Smrgac_configure_args1=
20647a0395d0Smrgac_must_keep_next=false
20657a0395d0Smrgfor ac_pass in 1 2
20667a0395d0Smrgdo
20677a0395d0Smrg  for ac_arg
20687a0395d0Smrg  do
20697a0395d0Smrg    case $ac_arg in
20707a0395d0Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
20717a0395d0Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20727a0395d0Smrg    | -silent | --silent | --silen | --sile | --sil)
20737a0395d0Smrg      continue ;;
20747a0395d0Smrg    *\'*)
20757366012aSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20767a0395d0Smrg    esac
20777a0395d0Smrg    case $ac_pass in
20782adc0320Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
20797a0395d0Smrg    2)
20802adc0320Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
20817a0395d0Smrg      if test $ac_must_keep_next = true; then
20827a0395d0Smrg	ac_must_keep_next=false # Got value, back to normal.
20837a0395d0Smrg      else
20847a0395d0Smrg	case $ac_arg in
20857a0395d0Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
20867a0395d0Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
20877a0395d0Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
20887a0395d0Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
20897a0395d0Smrg	    case "$ac_configure_args0 " in
20907a0395d0Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
20917a0395d0Smrg	    esac
20927a0395d0Smrg	    ;;
20937a0395d0Smrg	  -* ) ac_must_keep_next=true ;;
20947a0395d0Smrg	esac
20957a0395d0Smrg      fi
20962adc0320Smrg      as_fn_append ac_configure_args " '$ac_arg'"
20977a0395d0Smrg      ;;
20987a0395d0Smrg    esac
20997a0395d0Smrg  done
21007a0395d0Smrgdone
21012adc0320Smrg{ ac_configure_args0=; unset ac_configure_args0;}
21022adc0320Smrg{ ac_configure_args1=; unset ac_configure_args1;}
21037a0395d0Smrg
21047a0395d0Smrg# When interrupted or exit'd, cleanup temporary files, and complete
21057a0395d0Smrg# config.log.  We remove comments because anyway the quotes in there
21067a0395d0Smrg# would cause problems or look ugly.
21077a0395d0Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
21087a0395d0Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
21097a0395d0Smrgtrap 'exit_status=$?
21107a0395d0Smrg  # Save into config.log some information that might help in debugging.
21117a0395d0Smrg  {
21127a0395d0Smrg    echo
21137a0395d0Smrg
21142adc0320Smrg    $as_echo "## ---------------- ##
21157a0395d0Smrg## Cache variables. ##
21162adc0320Smrg## ---------------- ##"
21177a0395d0Smrg    echo
21187a0395d0Smrg    # The following way of writing the cache mishandles newlines in values,
21197a0395d0Smrg(
21207a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
21217a0395d0Smrg    eval ac_val=\$$ac_var
21227a0395d0Smrg    case $ac_val in #(
21237a0395d0Smrg    *${as_nl}*)
21247a0395d0Smrg      case $ac_var in #(
21252adc0320Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21267366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21277a0395d0Smrg      esac
21287a0395d0Smrg      case $ac_var in #(
21297a0395d0Smrg      _ | IFS | as_nl) ;; #(
21307366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21312adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
21327a0395d0Smrg      esac ;;
21337a0395d0Smrg    esac
21347a0395d0Smrg  done
21357a0395d0Smrg  (set) 2>&1 |
21367a0395d0Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
21377a0395d0Smrg    *${as_nl}ac_space=\ *)
21387a0395d0Smrg      sed -n \
21397a0395d0Smrg	"s/'\''/'\''\\\\'\'''\''/g;
21407a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
21417a0395d0Smrg      ;; #(
21427a0395d0Smrg    *)
21437a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21447a0395d0Smrg      ;;
21457a0395d0Smrg    esac |
21467a0395d0Smrg    sort
21477a0395d0Smrg)
21487a0395d0Smrg    echo
21497a0395d0Smrg
21502adc0320Smrg    $as_echo "## ----------------- ##
21517a0395d0Smrg## Output variables. ##
21522adc0320Smrg## ----------------- ##"
21537a0395d0Smrg    echo
21547a0395d0Smrg    for ac_var in $ac_subst_vars
21557a0395d0Smrg    do
21567a0395d0Smrg      eval ac_val=\$$ac_var
21577a0395d0Smrg      case $ac_val in
21587366012aSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21597a0395d0Smrg      esac
21607366012aSmrg      $as_echo "$ac_var='\''$ac_val'\''"
21617a0395d0Smrg    done | sort
21627a0395d0Smrg    echo
21637a0395d0Smrg
21647a0395d0Smrg    if test -n "$ac_subst_files"; then
21652adc0320Smrg      $as_echo "## ------------------- ##
21667a0395d0Smrg## File substitutions. ##
21672adc0320Smrg## ------------------- ##"
21687a0395d0Smrg      echo
21697a0395d0Smrg      for ac_var in $ac_subst_files
21707a0395d0Smrg      do
21717a0395d0Smrg	eval ac_val=\$$ac_var
21727a0395d0Smrg	case $ac_val in
21737366012aSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
21747a0395d0Smrg	esac
21757366012aSmrg	$as_echo "$ac_var='\''$ac_val'\''"
21767a0395d0Smrg      done | sort
21777a0395d0Smrg      echo
21787a0395d0Smrg    fi
21797a0395d0Smrg
21807a0395d0Smrg    if test -s confdefs.h; then
21812adc0320Smrg      $as_echo "## ----------- ##
21827a0395d0Smrg## confdefs.h. ##
21832adc0320Smrg## ----------- ##"
21847a0395d0Smrg      echo
21857a0395d0Smrg      cat confdefs.h
21867a0395d0Smrg      echo
21877a0395d0Smrg    fi
21887a0395d0Smrg    test "$ac_signal" != 0 &&
21897366012aSmrg      $as_echo "$as_me: caught signal $ac_signal"
21907366012aSmrg    $as_echo "$as_me: exit $exit_status"
21917a0395d0Smrg  } >&5
21927a0395d0Smrg  rm -f core *.core core.conftest.* &&
21937a0395d0Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
21947a0395d0Smrg    exit $exit_status
21957a0395d0Smrg' 0
21967a0395d0Smrgfor ac_signal in 1 2 13 15; do
21972adc0320Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
21987a0395d0Smrgdone
21997a0395d0Smrgac_signal=0
22007a0395d0Smrg
22017a0395d0Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
22027a0395d0Smrgrm -f -r conftest* confdefs.h
22037a0395d0Smrg
22042adc0320Smrg$as_echo "/* confdefs.h */" > confdefs.h
22052adc0320Smrg
22067a0395d0Smrg# Predefined preprocessor variables.
22077a0395d0Smrg
22087a0395d0Smrgcat >>confdefs.h <<_ACEOF
22097a0395d0Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
22107a0395d0Smrg_ACEOF
22117a0395d0Smrg
22127a0395d0Smrgcat >>confdefs.h <<_ACEOF
22137a0395d0Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
22147a0395d0Smrg_ACEOF
22157a0395d0Smrg
22167a0395d0Smrgcat >>confdefs.h <<_ACEOF
22177a0395d0Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
22187a0395d0Smrg_ACEOF
22197a0395d0Smrg
22207a0395d0Smrgcat >>confdefs.h <<_ACEOF
22217a0395d0Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
22227a0395d0Smrg_ACEOF
22237a0395d0Smrg
22247a0395d0Smrgcat >>confdefs.h <<_ACEOF
22257a0395d0Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
22267a0395d0Smrg_ACEOF
22277a0395d0Smrg
22282adc0320Smrgcat >>confdefs.h <<_ACEOF
22292adc0320Smrg#define PACKAGE_URL "$PACKAGE_URL"
22302adc0320Smrg_ACEOF
22312adc0320Smrg
22327a0395d0Smrg
22337a0395d0Smrg# Let the site file select an alternate cache file if it wants to.
22347366012aSmrg# Prefer an explicitly selected file to automatically selected ones.
22357366012aSmrgac_site_file1=NONE
22367366012aSmrgac_site_file2=NONE
22377a0395d0Smrgif test -n "$CONFIG_SITE"; then
22382adc0320Smrg  # We do not want a PATH search for config.site.
22392adc0320Smrg  case $CONFIG_SITE in #((
22402adc0320Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
22412adc0320Smrg    */*) ac_site_file1=$CONFIG_SITE;;
22422adc0320Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
22432adc0320Smrg  esac
22447a0395d0Smrgelif test "x$prefix" != xNONE; then
22457366012aSmrg  ac_site_file1=$prefix/share/config.site
22467366012aSmrg  ac_site_file2=$prefix/etc/config.site
22477a0395d0Smrgelse
22487366012aSmrg  ac_site_file1=$ac_default_prefix/share/config.site
22497366012aSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
22507a0395d0Smrgfi
22517366012aSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
22527a0395d0Smrgdo
22537366012aSmrg  test "x$ac_site_file" = xNONE && continue
22542adc0320Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
22552adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
22567366012aSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
22577a0395d0Smrg    sed 's/^/| /' "$ac_site_file" >&5
22582adc0320Smrg    . "$ac_site_file" \
22592adc0320Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22602adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22612adc0320Smrgas_fn_error $? "failed to load site script $ac_site_file
22622adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
22637a0395d0Smrg  fi
22647a0395d0Smrgdone
22657a0395d0Smrg
22667a0395d0Smrgif test -r "$cache_file"; then
22672adc0320Smrg  # Some versions of bash will fail to source /dev/null (special files
22682adc0320Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
22692adc0320Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
22702adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
22717366012aSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
22727a0395d0Smrg    case $cache_file in
22737a0395d0Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
22747a0395d0Smrg      *)                      . "./$cache_file";;
22757a0395d0Smrg    esac
22767a0395d0Smrg  fi
22777a0395d0Smrgelse
22782adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
22797366012aSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
22807a0395d0Smrg  >$cache_file
22817a0395d0Smrgfi
22827a0395d0Smrg
22837a0395d0Smrg# Check that the precious variables saved in the cache have kept the same
22847a0395d0Smrg# value.
22857a0395d0Smrgac_cache_corrupted=false
22867a0395d0Smrgfor ac_var in $ac_precious_vars; do
22877a0395d0Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
22887a0395d0Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
22897a0395d0Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
22907a0395d0Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
22917a0395d0Smrg  case $ac_old_set,$ac_new_set in
22927a0395d0Smrg    set,)
22932adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
22947366012aSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
22957a0395d0Smrg      ac_cache_corrupted=: ;;
22967a0395d0Smrg    ,set)
22972adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
22987366012aSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
22997a0395d0Smrg      ac_cache_corrupted=: ;;
23007a0395d0Smrg    ,);;
23017a0395d0Smrg    *)
23027a0395d0Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
23037366012aSmrg	# differences in whitespace do not lead to failure.
23047366012aSmrg	ac_old_val_w=`echo x $ac_old_val`
23057366012aSmrg	ac_new_val_w=`echo x $ac_new_val`
23067366012aSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
23072adc0320Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
23087366012aSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
23097366012aSmrg	  ac_cache_corrupted=:
23107366012aSmrg	else
23112adc0320Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
23127366012aSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
23137366012aSmrg	  eval $ac_var=\$ac_old_val
23147366012aSmrg	fi
23152adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
23167366012aSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
23172adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
23187366012aSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
23197a0395d0Smrg      fi;;
23202adc0320Smrg  esac
23212adc0320Smrg  # Pass precious variables to config.status.
23222adc0320Smrg  if test "$ac_new_set" = set; then
23232adc0320Smrg    case $ac_new_val in
23242adc0320Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
23252adc0320Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
23262adc0320Smrg    esac
23272adc0320Smrg    case " $ac_configure_args " in
23282adc0320Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
23292adc0320Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
23302adc0320Smrg    esac
23312adc0320Smrg  fi
23322adc0320Smrgdone
23332adc0320Smrgif $ac_cache_corrupted; then
23342adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23352adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23362adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
23372adc0320Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
23382adc0320Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
23392adc0320Smrgfi
23402adc0320Smrg## -------------------- ##
23412adc0320Smrg## Main body of script. ##
23422adc0320Smrg## -------------------- ##
23437a0395d0Smrg
23447a0395d0Smrgac_ext=c
23457a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
23467a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23477a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23487a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
23497a0395d0Smrg
23507a0395d0Smrg
23517366012aSmrgam__api_version='1.11'
23527a0395d0Smrg
23537a0395d0Smrgac_aux_dir=
23547a0395d0Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
23557a0395d0Smrg  if test -f "$ac_dir/install-sh"; then
23567a0395d0Smrg    ac_aux_dir=$ac_dir
23577a0395d0Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
23587a0395d0Smrg    break
23597a0395d0Smrg  elif test -f "$ac_dir/install.sh"; then
23607a0395d0Smrg    ac_aux_dir=$ac_dir
23617a0395d0Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
23627a0395d0Smrg    break
23637a0395d0Smrg  elif test -f "$ac_dir/shtool"; then
23647a0395d0Smrg    ac_aux_dir=$ac_dir
23657a0395d0Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
23667a0395d0Smrg    break
23677a0395d0Smrg  fi
23687a0395d0Smrgdone
23697a0395d0Smrgif test -z "$ac_aux_dir"; then
23702adc0320Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
23717a0395d0Smrgfi
23727a0395d0Smrg
23737a0395d0Smrg# These three variables are undocumented and unsupported,
23747a0395d0Smrg# and are intended to be withdrawn in a future Autoconf release.
23757a0395d0Smrg# They can cause serious problems if a builder's source tree is in a directory
23767a0395d0Smrg# whose full name contains unusual characters.
23777a0395d0Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
23787a0395d0Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
23797a0395d0Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
23807a0395d0Smrg
23817a0395d0Smrg
23827a0395d0Smrg# Find a good install program.  We prefer a C program (faster),
23837a0395d0Smrg# so one script is as good as another.  But avoid the broken or
23847a0395d0Smrg# incompatible versions:
23857a0395d0Smrg# SysV /etc/install, /usr/sbin/install
23867a0395d0Smrg# SunOS /usr/etc/install
23877a0395d0Smrg# IRIX /sbin/install
23887a0395d0Smrg# AIX /bin/install
23897a0395d0Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
23907a0395d0Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
23917a0395d0Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
23927a0395d0Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23937a0395d0Smrg# OS/2's system install, which has a completely different semantic
23947a0395d0Smrg# ./install, which can be erroneously created by make from ./install.sh.
23957366012aSmrg# Reject install programs that cannot install multiple files.
23962adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
23977366012aSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
23987a0395d0Smrgif test -z "$INSTALL"; then
23992adc0320Smrgif ${ac_cv_path_install+:} false; then :
24007366012aSmrg  $as_echo_n "(cached) " >&6
24017a0395d0Smrgelse
24027a0395d0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24037a0395d0Smrgfor as_dir in $PATH
24047a0395d0Smrgdo
24057a0395d0Smrg  IFS=$as_save_IFS
24067a0395d0Smrg  test -z "$as_dir" && as_dir=.
24072adc0320Smrg    # Account for people who put trailing slashes in PATH elements.
24082adc0320Smrgcase $as_dir/ in #((
24092adc0320Smrg  ./ | .// | /[cC]/* | \
24107a0395d0Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
24112adc0320Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
24127a0395d0Smrg  /usr/ucb/* ) ;;
24137a0395d0Smrg  *)
24147a0395d0Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
24157a0395d0Smrg    # Don't use installbsd from OSF since it installs stuff as root
24167a0395d0Smrg    # by default.
24177a0395d0Smrg    for ac_prog in ginstall scoinst install; do
24187a0395d0Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
24197a0395d0Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
24207a0395d0Smrg	  if test $ac_prog = install &&
24217a0395d0Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24227a0395d0Smrg	    # AIX install.  It has an incompatible calling convention.
24237a0395d0Smrg	    :
24247a0395d0Smrg	  elif test $ac_prog = install &&
24257a0395d0Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24267a0395d0Smrg	    # program-specific install script used by HP pwplus--don't use.
24277a0395d0Smrg	    :
24287a0395d0Smrg	  else
24297366012aSmrg	    rm -rf conftest.one conftest.two conftest.dir
24307366012aSmrg	    echo one > conftest.one
24317366012aSmrg	    echo two > conftest.two
24327366012aSmrg	    mkdir conftest.dir
24337366012aSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
24347366012aSmrg	      test -s conftest.one && test -s conftest.two &&
24357366012aSmrg	      test -s conftest.dir/conftest.one &&
24367366012aSmrg	      test -s conftest.dir/conftest.two
24377366012aSmrg	    then
24387366012aSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
24397366012aSmrg	      break 3
24407366012aSmrg	    fi
24417a0395d0Smrg	  fi
24427a0395d0Smrg	fi
24437a0395d0Smrg      done
24447a0395d0Smrg    done
24457a0395d0Smrg    ;;
24467a0395d0Smrgesac
24477366012aSmrg
24482adc0320Smrg  done
24497a0395d0SmrgIFS=$as_save_IFS
24507a0395d0Smrg
24517366012aSmrgrm -rf conftest.one conftest.two conftest.dir
24527a0395d0Smrg
24537a0395d0Smrgfi
24547a0395d0Smrg  if test "${ac_cv_path_install+set}" = set; then
24557a0395d0Smrg    INSTALL=$ac_cv_path_install
24567a0395d0Smrg  else
24577a0395d0Smrg    # As a last resort, use the slow shell script.  Don't cache a
24587a0395d0Smrg    # value for INSTALL within a source directory, because that will
24597a0395d0Smrg    # break other packages using the cache if that directory is
24607a0395d0Smrg    # removed, or if the value is a relative name.
24617a0395d0Smrg    INSTALL=$ac_install_sh
24627a0395d0Smrg  fi
24637a0395d0Smrgfi
24642adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
24657366012aSmrg$as_echo "$INSTALL" >&6; }
24667a0395d0Smrg
24677a0395d0Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
24687a0395d0Smrg# It thinks the first close brace ends the variable substitution.
24697a0395d0Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
24707a0395d0Smrg
24717a0395d0Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
24727a0395d0Smrg
24737a0395d0Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
24747a0395d0Smrg
24752adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
24767366012aSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
24777a0395d0Smrg# Just in case
24787a0395d0Smrgsleep 1
24797a0395d0Smrgecho timestamp > conftest.file
24807366012aSmrg# Reject unsafe characters in $srcdir or the absolute working directory
24817366012aSmrg# name.  Accept space and tab only in the latter.
24827366012aSmrgam_lf='
24837366012aSmrg'
24847366012aSmrgcase `pwd` in
24857366012aSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
24862adc0320Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
24877366012aSmrgesac
24887366012aSmrgcase $srcdir in
24897366012aSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
24902adc0320Smrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
24917366012aSmrgesac
24927366012aSmrg
24937366012aSmrg# Do `set' in a subshell so we don't clobber the current shell's
24947366012aSmrg# arguments.  Must try -L first in case configure is actually a
24957366012aSmrg# symlink; some systems play weird games with the mod time of symlinks
24967366012aSmrg# (eg FreeBSD returns the mod time of the symlink's containing
24977366012aSmrg# directory).
24987366012aSmrgif (
24997366012aSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
25007a0395d0Smrg   if test "$*" = "X"; then
25017a0395d0Smrg      # -L didn't work.
25027366012aSmrg      set X `ls -t "$srcdir/configure" conftest.file`
25037a0395d0Smrg   fi
25047a0395d0Smrg   rm -f conftest.file
25057a0395d0Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
25067a0395d0Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
25077a0395d0Smrg
25087a0395d0Smrg      # If neither matched, then we have a broken ls.  This can happen
25097a0395d0Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
25107a0395d0Smrg      # broken ls alias from the environment.  This has actually
25117a0395d0Smrg      # happened.  Such a system could not be considered "sane".
25122adc0320Smrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
25132adc0320Smrgalias in your environment" "$LINENO" 5
25147a0395d0Smrg   fi
25157a0395d0Smrg
25167a0395d0Smrg   test "$2" = conftest.file
25177a0395d0Smrg   )
25187a0395d0Smrgthen
25197a0395d0Smrg   # Ok.
25207a0395d0Smrg   :
25217a0395d0Smrgelse
25222adc0320Smrg   as_fn_error $? "newly created file is older than distributed files!
25232adc0320SmrgCheck your system clock" "$LINENO" 5
25247a0395d0Smrgfi
25252adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25267366012aSmrg$as_echo "yes" >&6; }
25277a0395d0Smrgtest "$program_prefix" != NONE &&
25287a0395d0Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
25297a0395d0Smrg# Use a double $ so make ignores it.
25307a0395d0Smrgtest "$program_suffix" != NONE &&
25317a0395d0Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
25327366012aSmrg# Double any \ or $.
25337a0395d0Smrg# By default was `s,x,x', remove it if useless.
25347366012aSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
25357366012aSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
25367a0395d0Smrg
25377a0395d0Smrg# expand $ac_aux_dir to an absolute path
25387a0395d0Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
25397a0395d0Smrg
25407366012aSmrgif test x"${MISSING+set}" != xset; then
25417366012aSmrg  case $am_aux_dir in
25427366012aSmrg  *\ * | *\	*)
25437366012aSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
25447366012aSmrg  *)
25457366012aSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
25467366012aSmrg  esac
25477366012aSmrgfi
25487a0395d0Smrg# Use eval to expand $SHELL
25497a0395d0Smrgif eval "$MISSING --run true"; then
25507a0395d0Smrg  am_missing_run="$MISSING --run "
25517a0395d0Smrgelse
25527a0395d0Smrg  am_missing_run=
25532adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
25547366012aSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
25557366012aSmrgfi
25567366012aSmrg
25577366012aSmrgif test x"${install_sh}" != xset; then
25587366012aSmrg  case $am_aux_dir in
25597366012aSmrg  *\ * | *\	*)
25607366012aSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
25617366012aSmrg  *)
25627366012aSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
25637366012aSmrg  esac
25647366012aSmrgfi
25657366012aSmrg
25667366012aSmrg# Installed binaries are usually stripped using `strip' when the user
25677366012aSmrg# run `make install-strip'.  However `strip' might not be the right
25687366012aSmrg# tool to use in cross-compilation environments, therefore Automake
25697366012aSmrg# will honor the `STRIP' environment variable to overrule this program.
25707366012aSmrgif test "$cross_compiling" != no; then
25717366012aSmrg  if test -n "$ac_tool_prefix"; then
25727366012aSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
25737366012aSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
25742adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25757366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
25762adc0320Smrgif ${ac_cv_prog_STRIP+:} false; then :
25777366012aSmrg  $as_echo_n "(cached) " >&6
25787366012aSmrgelse
25797366012aSmrg  if test -n "$STRIP"; then
25807366012aSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
25817366012aSmrgelse
25827366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25837366012aSmrgfor as_dir in $PATH
25847366012aSmrgdo
25857366012aSmrg  IFS=$as_save_IFS
25867366012aSmrg  test -z "$as_dir" && as_dir=.
25872adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
25887366012aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25897366012aSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
25902adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25917366012aSmrg    break 2
25927366012aSmrg  fi
25937366012aSmrgdone
25942adc0320Smrg  done
25957366012aSmrgIFS=$as_save_IFS
25967366012aSmrg
25977366012aSmrgfi
25987366012aSmrgfi
25997366012aSmrgSTRIP=$ac_cv_prog_STRIP
26007366012aSmrgif test -n "$STRIP"; then
26012adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
26027366012aSmrg$as_echo "$STRIP" >&6; }
26037366012aSmrgelse
26042adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26057366012aSmrg$as_echo "no" >&6; }
26067366012aSmrgfi
26077366012aSmrg
26087366012aSmrg
26097366012aSmrgfi
26107366012aSmrgif test -z "$ac_cv_prog_STRIP"; then
26117366012aSmrg  ac_ct_STRIP=$STRIP
26127366012aSmrg  # Extract the first word of "strip", so it can be a program name with args.
26137366012aSmrgset dummy strip; ac_word=$2
26142adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26157366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
26162adc0320Smrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26177366012aSmrg  $as_echo_n "(cached) " >&6
26187366012aSmrgelse
26197366012aSmrg  if test -n "$ac_ct_STRIP"; then
26207366012aSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
26217366012aSmrgelse
26227366012aSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26237366012aSmrgfor as_dir in $PATH
26247366012aSmrgdo
26257366012aSmrg  IFS=$as_save_IFS
26267366012aSmrg  test -z "$as_dir" && as_dir=.
26272adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
26287366012aSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26297366012aSmrg    ac_cv_prog_ac_ct_STRIP="strip"
26302adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26317366012aSmrg    break 2
26327366012aSmrg  fi
26337366012aSmrgdone
26342adc0320Smrg  done
26357366012aSmrgIFS=$as_save_IFS
26367366012aSmrg
26377366012aSmrgfi
26387366012aSmrgfi
26397366012aSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
26407366012aSmrgif test -n "$ac_ct_STRIP"; then
26412adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
26427366012aSmrg$as_echo "$ac_ct_STRIP" >&6; }
26437366012aSmrgelse
26442adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26457366012aSmrg$as_echo "no" >&6; }
26467366012aSmrgfi
26477366012aSmrg
26487366012aSmrg  if test "x$ac_ct_STRIP" = x; then
26497366012aSmrg    STRIP=":"
26507366012aSmrg  else
26517366012aSmrg    case $cross_compiling:$ac_tool_warned in
26527366012aSmrgyes:)
26532adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26547366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26557366012aSmrgac_tool_warned=yes ;;
26567366012aSmrgesac
26577366012aSmrg    STRIP=$ac_ct_STRIP
26587366012aSmrg  fi
26597366012aSmrgelse
26607366012aSmrg  STRIP="$ac_cv_prog_STRIP"
26617a0395d0Smrgfi
26627a0395d0Smrg
26637366012aSmrgfi
26647366012aSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
26657366012aSmrg
26662adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
26677366012aSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
26687a0395d0Smrgif test -z "$MKDIR_P"; then
26692adc0320Smrg  if ${ac_cv_path_mkdir+:} false; then :
26707366012aSmrg  $as_echo_n "(cached) " >&6
26717a0395d0Smrgelse
26727a0395d0Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26737a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
26747a0395d0Smrgdo
26757a0395d0Smrg  IFS=$as_save_IFS
26767a0395d0Smrg  test -z "$as_dir" && as_dir=.
26772adc0320Smrg    for ac_prog in mkdir gmkdir; do
26787a0395d0Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
26797a0395d0Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
26807a0395d0Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
26817a0395d0Smrg	     'mkdir (GNU coreutils) '* | \
26827a0395d0Smrg	     'mkdir (coreutils) '* | \
26837a0395d0Smrg	     'mkdir (fileutils) '4.1*)
26847a0395d0Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
26857a0395d0Smrg	       break 3;;
26867a0395d0Smrg	   esac
26877a0395d0Smrg	 done
26887a0395d0Smrg       done
26892adc0320Smrg  done
26907a0395d0SmrgIFS=$as_save_IFS
26917a0395d0Smrg
26927a0395d0Smrgfi
26937a0395d0Smrg
26942adc0320Smrg  test -d ./--version && rmdir ./--version
26957a0395d0Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
26967a0395d0Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
26977a0395d0Smrg  else
26987a0395d0Smrg    # As a last resort, use the slow shell script.  Don't cache a
26997a0395d0Smrg    # value for MKDIR_P within a source directory, because that will
27007a0395d0Smrg    # break other packages using the cache if that directory is
27017a0395d0Smrg    # removed, or if the value is a relative name.
27027a0395d0Smrg    MKDIR_P="$ac_install_sh -d"
27037a0395d0Smrg  fi
27047a0395d0Smrgfi
27052adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
27067366012aSmrg$as_echo "$MKDIR_P" >&6; }
27077a0395d0Smrg
27087a0395d0Smrgmkdir_p="$MKDIR_P"
27097a0395d0Smrgcase $mkdir_p in
27107a0395d0Smrg  [\\/$]* | ?:[\\/]*) ;;
27117a0395d0Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
27127a0395d0Smrgesac
27137a0395d0Smrg
27147a0395d0Smrgfor ac_prog in gawk mawk nawk awk
27157a0395d0Smrgdo
27167a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
27177a0395d0Smrgset dummy $ac_prog; ac_word=$2
27182adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27197366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
27202adc0320Smrgif ${ac_cv_prog_AWK+:} false; then :
27217366012aSmrg  $as_echo_n "(cached) " >&6
27227a0395d0Smrgelse
27237a0395d0Smrg  if test -n "$AWK"; then
27247a0395d0Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
27257a0395d0Smrgelse
27267a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27277a0395d0Smrgfor as_dir in $PATH
27287a0395d0Smrgdo
27297a0395d0Smrg  IFS=$as_save_IFS
27307a0395d0Smrg  test -z "$as_dir" && as_dir=.
27312adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
27327a0395d0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27337a0395d0Smrg    ac_cv_prog_AWK="$ac_prog"
27342adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27357a0395d0Smrg    break 2
27367a0395d0Smrg  fi
27377a0395d0Smrgdone
27382adc0320Smrg  done
27397a0395d0SmrgIFS=$as_save_IFS
27407a0395d0Smrg
27417a0395d0Smrgfi
27427a0395d0Smrgfi
27437a0395d0SmrgAWK=$ac_cv_prog_AWK
27447a0395d0Smrgif test -n "$AWK"; then
27452adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
27467366012aSmrg$as_echo "$AWK" >&6; }
27477a0395d0Smrgelse
27482adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27497366012aSmrg$as_echo "no" >&6; }
27507a0395d0Smrgfi
27517a0395d0Smrg
27527a0395d0Smrg
27537a0395d0Smrg  test -n "$AWK" && break
27547a0395d0Smrgdone
27557a0395d0Smrg
27562adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
27577366012aSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
27587366012aSmrgset x ${MAKE-make}
27597366012aSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
27602adc0320Smrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
27617366012aSmrg  $as_echo_n "(cached) " >&6
27627a0395d0Smrgelse
27637a0395d0Smrg  cat >conftest.make <<\_ACEOF
27647a0395d0SmrgSHELL = /bin/sh
27657a0395d0Smrgall:
27667a0395d0Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
27677a0395d0Smrg_ACEOF
27682adc0320Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
27697a0395d0Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
27707a0395d0Smrg  *@@@%%%=?*=@@@%%%*)
27717a0395d0Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
27727a0395d0Smrg  *)
27737a0395d0Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
27747a0395d0Smrgesac
27757a0395d0Smrgrm -f conftest.make
27767a0395d0Smrgfi
27777a0395d0Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
27782adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27797366012aSmrg$as_echo "yes" >&6; }
27807a0395d0Smrg  SET_MAKE=
27817a0395d0Smrgelse
27822adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27837366012aSmrg$as_echo "no" >&6; }
27847a0395d0Smrg  SET_MAKE="MAKE=${MAKE-make}"
27857a0395d0Smrgfi
27867a0395d0Smrg
27877a0395d0Smrgrm -rf .tst 2>/dev/null
27887a0395d0Smrgmkdir .tst 2>/dev/null
27897a0395d0Smrgif test -d .tst; then
27907a0395d0Smrg  am__leading_dot=.
27917a0395d0Smrgelse
27927a0395d0Smrg  am__leading_dot=_
27937a0395d0Smrgfi
27947a0395d0Smrgrmdir .tst 2>/dev/null
27957a0395d0Smrg
27967a0395d0Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
27977a0395d0Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
27987a0395d0Smrg  # is not polluted with repeated "-I."
27997a0395d0Smrg  am__isrc=' -I$(srcdir)'
28007a0395d0Smrg  # test to see if srcdir already configured
28017a0395d0Smrg  if test -f $srcdir/config.status; then
28022adc0320Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
28037a0395d0Smrg  fi
28047a0395d0Smrgfi
28057a0395d0Smrg
28067a0395d0Smrg# test whether we have cygpath
28077a0395d0Smrgif test -z "$CYGPATH_W"; then
28087a0395d0Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
28097a0395d0Smrg    CYGPATH_W='cygpath -w'
28107a0395d0Smrg  else
28117a0395d0Smrg    CYGPATH_W=echo
28127a0395d0Smrg  fi
28137a0395d0Smrgfi
28147a0395d0Smrg
28157a0395d0Smrg
28167a0395d0Smrg# Define the identity of the package.
28177a0395d0Smrg PACKAGE='xauth'
28182adc0320Smrg VERSION='1.0.5'
28197a0395d0Smrg
28207a0395d0Smrg
28217a0395d0Smrgcat >>confdefs.h <<_ACEOF
28227a0395d0Smrg#define PACKAGE "$PACKAGE"
28237a0395d0Smrg_ACEOF
28247a0395d0Smrg
28257a0395d0Smrg
28267a0395d0Smrgcat >>confdefs.h <<_ACEOF
28277a0395d0Smrg#define VERSION "$VERSION"
28287a0395d0Smrg_ACEOF
28297a0395d0Smrg
28307a0395d0Smrg# Some tools Automake needs.
28317a0395d0Smrg
28327a0395d0SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
28337a0395d0Smrg
28347a0395d0Smrg
28357a0395d0SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
28367a0395d0Smrg
28377a0395d0Smrg
28387a0395d0SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
28397a0395d0Smrg
28407a0395d0Smrg
28417a0395d0SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
28427a0395d0Smrg
28437a0395d0Smrg
28447a0395d0SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
28457a0395d0Smrg
28467a0395d0Smrg# We need awk for the "check" target.  The system "awk" is bad on
28477a0395d0Smrg# some platforms.
28487a0395d0Smrg# Always define AMTAR for backward compatibility.
28497a0395d0Smrg
28507a0395d0SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
28517a0395d0Smrg
28527a0395d0Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
28537a0395d0Smrg
28547a0395d0Smrg
28557a0395d0Smrg
28567a0395d0Smrg
28577a0395d0Smrg
28587366012aSmrg
28592adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28607366012aSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28617a0395d0Smrg    # Check whether --enable-maintainer-mode was given.
28622adc0320Smrgif test "${enable_maintainer_mode+set}" = set; then :
28637a0395d0Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
28647a0395d0Smrgelse
28657a0395d0Smrg  USE_MAINTAINER_MODE=no
28667a0395d0Smrgfi
28677a0395d0Smrg
28682adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
28697366012aSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
28707a0395d0Smrg   if test $USE_MAINTAINER_MODE = yes; then
28717a0395d0Smrg  MAINTAINER_MODE_TRUE=
28727a0395d0Smrg  MAINTAINER_MODE_FALSE='#'
28737a0395d0Smrgelse
28747a0395d0Smrg  MAINTAINER_MODE_TRUE='#'
28757a0395d0Smrg  MAINTAINER_MODE_FALSE=
28767a0395d0Smrgfi
28777a0395d0Smrg
28787a0395d0Smrg  MAINT=$MAINTAINER_MODE_TRUE
28797a0395d0Smrg
28807a0395d0Smrg
28817a0395d0Smrg
28827a0395d0Smrgac_config_headers="$ac_config_headers config.h"
28837a0395d0Smrg
28847a0395d0Smrg
28852adc0320Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
28862adc0320Smrg
28872adc0320Smrg
28887366012aSmrg
28897366012aSmrg
28907366012aSmrg
28917366012aSmrg
28927366012aSmrg
28937366012aSmrg
28947366012aSmrg
28957366012aSmrg
28967a0395d0Smrg
28972adc0320SmrgDEPDIR="${am__leading_dot}deps"
28982adc0320Smrg
28992adc0320Smrgac_config_commands="$ac_config_commands depfiles"
29002adc0320Smrg
29012adc0320Smrg
29022adc0320Smrgam_make=${MAKE-make}
29032adc0320Smrgcat > confinc << 'END'
29042adc0320Smrgam__doit:
29052adc0320Smrg	@echo this is the am__doit target
29062adc0320Smrg.PHONY: am__doit
29072adc0320SmrgEND
29082adc0320Smrg# If we don't find an include directive, just comment out the code.
29092adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
29102adc0320Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
29112adc0320Smrgam__include="#"
29122adc0320Smrgam__quote=
29132adc0320Smrg_am_result=none
29142adc0320Smrg# First try GNU make style include.
29152adc0320Smrgecho "include confinc" > confmf
29162adc0320Smrg# Ignore all kinds of additional output from `make'.
29172adc0320Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
29182adc0320Smrg*the\ am__doit\ target*)
29192adc0320Smrg  am__include=include
29202adc0320Smrg  am__quote=
29212adc0320Smrg  _am_result=GNU
29222adc0320Smrg  ;;
29232adc0320Smrgesac
29242adc0320Smrg# Now try BSD make style include.
29252adc0320Smrgif test "$am__include" = "#"; then
29262adc0320Smrg   echo '.include "confinc"' > confmf
29272adc0320Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
29282adc0320Smrg   *the\ am__doit\ target*)
29292adc0320Smrg     am__include=.include
29302adc0320Smrg     am__quote="\""
29312adc0320Smrg     _am_result=BSD
29322adc0320Smrg     ;;
29332adc0320Smrg   esac
29342adc0320Smrgfi
29352adc0320Smrg
29362adc0320Smrg
29372adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
29382adc0320Smrg$as_echo "$_am_result" >&6; }
29392adc0320Smrgrm -f confinc confmf
29402adc0320Smrg
29412adc0320Smrg# Check whether --enable-dependency-tracking was given.
29422adc0320Smrgif test "${enable_dependency_tracking+set}" = set; then :
29432adc0320Smrg  enableval=$enable_dependency_tracking;
29442adc0320Smrgfi
29457a0395d0Smrg
29462adc0320Smrgif test "x$enable_dependency_tracking" != xno; then
29472adc0320Smrg  am_depcomp="$ac_aux_dir/depcomp"
29482adc0320Smrg  AMDEPBACKSLASH='\'
29492adc0320Smrgfi
29502adc0320Smrg if test "x$enable_dependency_tracking" != xno; then
29512adc0320Smrg  AMDEP_TRUE=
29522adc0320Smrg  AMDEP_FALSE='#'
29532adc0320Smrgelse
29542adc0320Smrg  AMDEP_TRUE='#'
29552adc0320Smrg  AMDEP_FALSE=
29562adc0320Smrgfi
29577a0395d0Smrg
29587a0395d0Smrg
29597a0395d0Smrgac_ext=c
29607a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
29617a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29627a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29637a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
29647a0395d0Smrgif test -n "$ac_tool_prefix"; then
29657a0395d0Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
29667a0395d0Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
29672adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29687366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
29692adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
29707366012aSmrg  $as_echo_n "(cached) " >&6
29717a0395d0Smrgelse
29727a0395d0Smrg  if test -n "$CC"; then
29737a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
29747a0395d0Smrgelse
29757a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29767a0395d0Smrgfor as_dir in $PATH
29777a0395d0Smrgdo
29787a0395d0Smrg  IFS=$as_save_IFS
29797a0395d0Smrg  test -z "$as_dir" && as_dir=.
29802adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
29817a0395d0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29827a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
29832adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29847a0395d0Smrg    break 2
29857a0395d0Smrg  fi
29867a0395d0Smrgdone
29872adc0320Smrg  done
29887a0395d0SmrgIFS=$as_save_IFS
29897a0395d0Smrg
29907a0395d0Smrgfi
29917a0395d0Smrgfi
29927a0395d0SmrgCC=$ac_cv_prog_CC
29937a0395d0Smrgif test -n "$CC"; then
29942adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29957366012aSmrg$as_echo "$CC" >&6; }
29967a0395d0Smrgelse
29972adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987366012aSmrg$as_echo "no" >&6; }
29997a0395d0Smrgfi
30007a0395d0Smrg
30017a0395d0Smrg
30027a0395d0Smrgfi
30037a0395d0Smrgif test -z "$ac_cv_prog_CC"; then
30047a0395d0Smrg  ac_ct_CC=$CC
30057a0395d0Smrg  # Extract the first word of "gcc", so it can be a program name with args.
30067a0395d0Smrgset dummy gcc; ac_word=$2
30072adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30087366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
30092adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30107366012aSmrg  $as_echo_n "(cached) " >&6
30117a0395d0Smrgelse
30127a0395d0Smrg  if test -n "$ac_ct_CC"; then
30137a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30147a0395d0Smrgelse
30157a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30167a0395d0Smrgfor as_dir in $PATH
30177a0395d0Smrgdo
30187a0395d0Smrg  IFS=$as_save_IFS
30197a0395d0Smrg  test -z "$as_dir" && as_dir=.
30202adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30217a0395d0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30227a0395d0Smrg    ac_cv_prog_ac_ct_CC="gcc"
30232adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30247a0395d0Smrg    break 2
30257a0395d0Smrg  fi
30267a0395d0Smrgdone
30272adc0320Smrg  done
30287a0395d0SmrgIFS=$as_save_IFS
30297a0395d0Smrg
30307a0395d0Smrgfi
30317a0395d0Smrgfi
30327a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
30337a0395d0Smrgif test -n "$ac_ct_CC"; then
30342adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30357366012aSmrg$as_echo "$ac_ct_CC" >&6; }
30367a0395d0Smrgelse
30372adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30387366012aSmrg$as_echo "no" >&6; }
30397a0395d0Smrgfi
30407a0395d0Smrg
30417a0395d0Smrg  if test "x$ac_ct_CC" = x; then
30427a0395d0Smrg    CC=""
30437a0395d0Smrg  else
30447a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
30457a0395d0Smrgyes:)
30462adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30477366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30487a0395d0Smrgac_tool_warned=yes ;;
30497a0395d0Smrgesac
30507a0395d0Smrg    CC=$ac_ct_CC
30517a0395d0Smrg  fi
30527a0395d0Smrgelse
30537a0395d0Smrg  CC="$ac_cv_prog_CC"
30547a0395d0Smrgfi
30557a0395d0Smrg
30567a0395d0Smrgif test -z "$CC"; then
30577a0395d0Smrg          if test -n "$ac_tool_prefix"; then
30587a0395d0Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30597a0395d0Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
30602adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30617366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
30622adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
30637366012aSmrg  $as_echo_n "(cached) " >&6
30647a0395d0Smrgelse
30657a0395d0Smrg  if test -n "$CC"; then
30667a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
30677a0395d0Smrgelse
30687a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30697a0395d0Smrgfor as_dir in $PATH
30707a0395d0Smrgdo
30717a0395d0Smrg  IFS=$as_save_IFS
30727a0395d0Smrg  test -z "$as_dir" && as_dir=.
30732adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
30747a0395d0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30757a0395d0Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
30762adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30777a0395d0Smrg    break 2
30787a0395d0Smrg  fi
30797a0395d0Smrgdone
30802adc0320Smrg  done
30817a0395d0SmrgIFS=$as_save_IFS
30827a0395d0Smrg
30837a0395d0Smrgfi
30847a0395d0Smrgfi
30857a0395d0SmrgCC=$ac_cv_prog_CC
30867a0395d0Smrgif test -n "$CC"; then
30872adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30887366012aSmrg$as_echo "$CC" >&6; }
30897a0395d0Smrgelse
30902adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30917366012aSmrg$as_echo "no" >&6; }
30927a0395d0Smrgfi
30937a0395d0Smrg
30947a0395d0Smrg
30957a0395d0Smrg  fi
30967a0395d0Smrgfi
30977a0395d0Smrgif test -z "$CC"; then
30987a0395d0Smrg  # Extract the first word of "cc", so it can be a program name with args.
30997a0395d0Smrgset dummy cc; ac_word=$2
31002adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31017366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31022adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
31037366012aSmrg  $as_echo_n "(cached) " >&6
31047a0395d0Smrgelse
31057a0395d0Smrg  if test -n "$CC"; then
31067a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31077a0395d0Smrgelse
31087a0395d0Smrg  ac_prog_rejected=no
31097a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31107a0395d0Smrgfor as_dir in $PATH
31117a0395d0Smrgdo
31127a0395d0Smrg  IFS=$as_save_IFS
31137a0395d0Smrg  test -z "$as_dir" && as_dir=.
31142adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31157a0395d0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31167a0395d0Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31177a0395d0Smrg       ac_prog_rejected=yes
31187a0395d0Smrg       continue
31197a0395d0Smrg     fi
31207a0395d0Smrg    ac_cv_prog_CC="cc"
31212adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31227a0395d0Smrg    break 2
31237a0395d0Smrg  fi
31247a0395d0Smrgdone
31252adc0320Smrg  done
31267a0395d0SmrgIFS=$as_save_IFS
31277a0395d0Smrg
31287a0395d0Smrgif test $ac_prog_rejected = yes; then
31297a0395d0Smrg  # We found a bogon in the path, so make sure we never use it.
31307a0395d0Smrg  set dummy $ac_cv_prog_CC
31317a0395d0Smrg  shift
31327a0395d0Smrg  if test $# != 0; then
31337a0395d0Smrg    # We chose a different compiler from the bogus one.
31347a0395d0Smrg    # However, it has the same basename, so the bogon will be chosen
31357a0395d0Smrg    # first if we set CC to just the basename; use the full file name.
31367a0395d0Smrg    shift
31377a0395d0Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
31387a0395d0Smrg  fi
31397a0395d0Smrgfi
31407a0395d0Smrgfi
31417a0395d0Smrgfi
31427a0395d0SmrgCC=$ac_cv_prog_CC
31437a0395d0Smrgif test -n "$CC"; then
31442adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31457366012aSmrg$as_echo "$CC" >&6; }
31467a0395d0Smrgelse
31472adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31487366012aSmrg$as_echo "no" >&6; }
31497a0395d0Smrgfi
31507a0395d0Smrg
31517a0395d0Smrg
31527a0395d0Smrgfi
31537a0395d0Smrgif test -z "$CC"; then
31547a0395d0Smrg  if test -n "$ac_tool_prefix"; then
31557a0395d0Smrg  for ac_prog in cl.exe
31567a0395d0Smrg  do
31577a0395d0Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31587a0395d0Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
31592adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31607366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
31612adc0320Smrgif ${ac_cv_prog_CC+:} false; then :
31627366012aSmrg  $as_echo_n "(cached) " >&6
31637a0395d0Smrgelse
31647a0395d0Smrg  if test -n "$CC"; then
31657a0395d0Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
31667a0395d0Smrgelse
31677a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31687a0395d0Smrgfor as_dir in $PATH
31697a0395d0Smrgdo
31707a0395d0Smrg  IFS=$as_save_IFS
31717a0395d0Smrg  test -z "$as_dir" && as_dir=.
31722adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
31737a0395d0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31747a0395d0Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
31752adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31767a0395d0Smrg    break 2
31777a0395d0Smrg  fi
31787a0395d0Smrgdone
31792adc0320Smrg  done
31807a0395d0SmrgIFS=$as_save_IFS
31817a0395d0Smrg
31827a0395d0Smrgfi
31837a0395d0Smrgfi
31847a0395d0SmrgCC=$ac_cv_prog_CC
31857a0395d0Smrgif test -n "$CC"; then
31862adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
31877366012aSmrg$as_echo "$CC" >&6; }
31887a0395d0Smrgelse
31892adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31907366012aSmrg$as_echo "no" >&6; }
31917a0395d0Smrgfi
31927a0395d0Smrg
31937a0395d0Smrg
31947a0395d0Smrg    test -n "$CC" && break
31957a0395d0Smrg  done
31967a0395d0Smrgfi
31977a0395d0Smrgif test -z "$CC"; then
31987a0395d0Smrg  ac_ct_CC=$CC
31997a0395d0Smrg  for ac_prog in cl.exe
32007a0395d0Smrgdo
32017a0395d0Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
32027a0395d0Smrgset dummy $ac_prog; ac_word=$2
32032adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32047366012aSmrg$as_echo_n "checking for $ac_word... " >&6; }
32052adc0320Smrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
32067366012aSmrg  $as_echo_n "(cached) " >&6
32077a0395d0Smrgelse
32087a0395d0Smrg  if test -n "$ac_ct_CC"; then
32097a0395d0Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32107a0395d0Smrgelse
32117a0395d0Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32127a0395d0Smrgfor as_dir in $PATH
32137a0395d0Smrgdo
32147a0395d0Smrg  IFS=$as_save_IFS
32157a0395d0Smrg  test -z "$as_dir" && as_dir=.
32162adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
32177a0395d0Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32187a0395d0Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
32192adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32207a0395d0Smrg    break 2
32217a0395d0Smrg  fi
32227a0395d0Smrgdone
32232adc0320Smrg  done
32247a0395d0SmrgIFS=$as_save_IFS
32257a0395d0Smrg
32267a0395d0Smrgfi
32277a0395d0Smrgfi
32287a0395d0Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
32297a0395d0Smrgif test -n "$ac_ct_CC"; then
32302adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
32317366012aSmrg$as_echo "$ac_ct_CC" >&6; }
32327a0395d0Smrgelse
32332adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32347366012aSmrg$as_echo "no" >&6; }
32357a0395d0Smrgfi
32367a0395d0Smrg
32377a0395d0Smrg
32387a0395d0Smrg  test -n "$ac_ct_CC" && break
32397a0395d0Smrgdone
32407a0395d0Smrg
32417a0395d0Smrg  if test "x$ac_ct_CC" = x; then
32427a0395d0Smrg    CC=""
32437a0395d0Smrg  else
32447a0395d0Smrg    case $cross_compiling:$ac_tool_warned in
32457a0395d0Smrgyes:)
32462adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32477366012aSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32487a0395d0Smrgac_tool_warned=yes ;;
32497a0395d0Smrgesac
32507a0395d0Smrg    CC=$ac_ct_CC
32517a0395d0Smrg  fi
32527a0395d0Smrgfi
32537a0395d0Smrg
32547a0395d0Smrgfi
32557a0395d0Smrg
32567a0395d0Smrg
32572adc0320Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32587366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32592adc0320Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
32602adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
32617a0395d0Smrg
32627a0395d0Smrg# Provide some information about the compiler.
32632adc0320Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
32647366012aSmrgset X $ac_compile
32657366012aSmrgac_compiler=$2
32662adc0320Smrgfor ac_option in --version -v -V -qversion; do
32672adc0320Smrg  { { ac_try="$ac_compiler $ac_option >&5"
32687a0395d0Smrgcase "(($ac_try" in
32697a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32707a0395d0Smrg  *) ac_try_echo=$ac_try;;
32717a0395d0Smrgesac
32722adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32732adc0320Smrg$as_echo "$ac_try_echo"; } >&5
32742adc0320Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32757a0395d0Smrg  ac_status=$?
32762adc0320Smrg  if test -s conftest.err; then
32772adc0320Smrg    sed '10a\
32782adc0320Smrg... rest of stderr output deleted ...
32792adc0320Smrg         10q' conftest.err >conftest.er1
32802adc0320Smrg    cat conftest.er1 >&5
32812adc0320Smrg  fi
32822adc0320Smrg  rm -f conftest.er1 conftest.err
32832adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32842adc0320Smrg  test $ac_status = 0; }
32852adc0320Smrgdone
32867a0395d0Smrg
32872adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32887a0395d0Smrg/* end confdefs.h.  */
32897a0395d0Smrg
32907a0395d0Smrgint
32917a0395d0Smrgmain ()
32927a0395d0Smrg{
32937a0395d0Smrg
32947a0395d0Smrg  ;
32957a0395d0Smrg  return 0;
32967a0395d0Smrg}
32977a0395d0Smrg_ACEOF
32987a0395d0Smrgac_clean_files_save=$ac_clean_files
32997366012aSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
33007a0395d0Smrg# Try to create an executable without -o first, disregard a.out.
33017a0395d0Smrg# It will help us diagnose broken compilers, and finding out an intuition
33027a0395d0Smrg# of exeext.
33032adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
33042adc0320Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
33057366012aSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
33067366012aSmrg
33077366012aSmrg# The possible output files:
33087366012aSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
33097366012aSmrg
33107a0395d0Smrgac_rmfiles=
33117a0395d0Smrgfor ac_file in $ac_files
33127a0395d0Smrgdo
33137a0395d0Smrg  case $ac_file in
33147366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
33157a0395d0Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
33167a0395d0Smrg  esac
33177a0395d0Smrgdone
33187a0395d0Smrgrm -f $ac_rmfiles
33197a0395d0Smrg
33202adc0320Smrgif { { ac_try="$ac_link_default"
33217a0395d0Smrgcase "(($ac_try" in
33227a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237a0395d0Smrg  *) ac_try_echo=$ac_try;;
33247a0395d0Smrgesac
33252adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33262adc0320Smrg$as_echo "$ac_try_echo"; } >&5
33277a0395d0Smrg  (eval "$ac_link_default") 2>&5
33287a0395d0Smrg  ac_status=$?
33292adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33302adc0320Smrg  test $ac_status = 0; }; then :
33317a0395d0Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
33327a0395d0Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
33337a0395d0Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
33347a0395d0Smrg# so that the user can short-circuit this test for compilers unknown to
33357a0395d0Smrg# Autoconf.
33367a0395d0Smrgfor ac_file in $ac_files ''
33377a0395d0Smrgdo
33387a0395d0Smrg  test -f "$ac_file" || continue
33397a0395d0Smrg  case $ac_file in
33407366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
33417a0395d0Smrg	;;
33427a0395d0Smrg    [ab].out )
33437a0395d0Smrg	# We found the default executable, but exeext='' is most
33447a0395d0Smrg	# certainly right.
33457a0395d0Smrg	break;;
33467a0395d0Smrg    *.* )
33472adc0320Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
33487a0395d0Smrg	then :; else
33497a0395d0Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
33507a0395d0Smrg	fi
33517a0395d0Smrg	# We set ac_cv_exeext here because the later test for it is not
33527a0395d0Smrg	# safe: cross compilers may not add the suffix if given an `-o'
33537a0395d0Smrg	# argument, so we may need to know it at that point already.
33547a0395d0Smrg	# Even if this section looks crufty: it has the advantage of
33557a0395d0Smrg	# actually working.
33567a0395d0Smrg	break;;
33577a0395d0Smrg    * )
33587a0395d0Smrg	break;;
33597a0395d0Smrg  esac
33607a0395d0Smrgdone
33617a0395d0Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
33627a0395d0Smrg
33637a0395d0Smrgelse
33647a0395d0Smrg  ac_file=''
33657a0395d0Smrgfi
33662adc0320Smrgif test -z "$ac_file"; then :
33672adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33682adc0320Smrg$as_echo "no" >&6; }
33692adc0320Smrg$as_echo "$as_me: failed program was:" >&5
33707a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
33717a0395d0Smrg
33722adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33737366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33742adc0320Smrgas_fn_error 77 "C compiler cannot create executables
33752adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
33762adc0320Smrgelse
33772adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33782adc0320Smrg$as_echo "yes" >&6; }
33797a0395d0Smrgfi
33802adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
33812adc0320Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
33822adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
33832adc0320Smrg$as_echo "$ac_file" >&6; }
33847a0395d0Smrgac_exeext=$ac_cv_exeext
33857a0395d0Smrg
33867366012aSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
33877a0395d0Smrgac_clean_files=$ac_clean_files_save
33882adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
33897366012aSmrg$as_echo_n "checking for suffix of executables... " >&6; }
33902adc0320Smrgif { { ac_try="$ac_link"
33917a0395d0Smrgcase "(($ac_try" in
33927a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33937a0395d0Smrg  *) ac_try_echo=$ac_try;;
33947a0395d0Smrgesac
33952adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33962adc0320Smrg$as_echo "$ac_try_echo"; } >&5
33977a0395d0Smrg  (eval "$ac_link") 2>&5
33987a0395d0Smrg  ac_status=$?
33992adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34002adc0320Smrg  test $ac_status = 0; }; then :
34017a0395d0Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
34027a0395d0Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
34037a0395d0Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
34047a0395d0Smrg# `rm'.
34057a0395d0Smrgfor ac_file in conftest.exe conftest conftest.*; do
34067a0395d0Smrg  test -f "$ac_file" || continue
34077a0395d0Smrg  case $ac_file in
34087366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
34097a0395d0Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
34107a0395d0Smrg	  break;;
34117a0395d0Smrg    * ) break;;
34127a0395d0Smrg  esac
34137a0395d0Smrgdone
34147a0395d0Smrgelse
34152adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34167366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34172adc0320Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
34182adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
34197a0395d0Smrgfi
34202adc0320Smrgrm -f conftest conftest$ac_cv_exeext
34212adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
34227366012aSmrg$as_echo "$ac_cv_exeext" >&6; }
34237a0395d0Smrg
34247a0395d0Smrgrm -f conftest.$ac_ext
34257a0395d0SmrgEXEEXT=$ac_cv_exeext
34267a0395d0Smrgac_exeext=$EXEEXT
34272adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
34282adc0320Smrg/* end confdefs.h.  */
34292adc0320Smrg#include <stdio.h>
34302adc0320Smrgint
34312adc0320Smrgmain ()
34322adc0320Smrg{
34332adc0320SmrgFILE *f = fopen ("conftest.out", "w");
34342adc0320Smrg return ferror (f) || fclose (f) != 0;
34352adc0320Smrg
34362adc0320Smrg  ;
34372adc0320Smrg  return 0;
34382adc0320Smrg}
34392adc0320Smrg_ACEOF
34402adc0320Smrgac_clean_files="$ac_clean_files conftest.out"
34412adc0320Smrg# Check that the compiler produces executables we can run.  If not, either
34422adc0320Smrg# the compiler is broken, or we cross compile.
34432adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
34442adc0320Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
34452adc0320Smrgif test "$cross_compiling" != yes; then
34462adc0320Smrg  { { ac_try="$ac_link"
34472adc0320Smrgcase "(($ac_try" in
34482adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34492adc0320Smrg  *) ac_try_echo=$ac_try;;
34502adc0320Smrgesac
34512adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34522adc0320Smrg$as_echo "$ac_try_echo"; } >&5
34532adc0320Smrg  (eval "$ac_link") 2>&5
34542adc0320Smrg  ac_status=$?
34552adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34562adc0320Smrg  test $ac_status = 0; }
34572adc0320Smrg  if { ac_try='./conftest$ac_cv_exeext'
34582adc0320Smrg  { { case "(($ac_try" in
34592adc0320Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602adc0320Smrg  *) ac_try_echo=$ac_try;;
34612adc0320Smrgesac
34622adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
34632adc0320Smrg$as_echo "$ac_try_echo"; } >&5
34642adc0320Smrg  (eval "$ac_try") 2>&5
34652adc0320Smrg  ac_status=$?
34662adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34672adc0320Smrg  test $ac_status = 0; }; }; then
34682adc0320Smrg    cross_compiling=no
34692adc0320Smrg  else
34702adc0320Smrg    if test "$cross_compiling" = maybe; then
34712adc0320Smrg	cross_compiling=yes
34722adc0320Smrg    else
34732adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34742adc0320Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34752adc0320Smrgas_fn_error $? "cannot run C compiled programs.
34762adc0320SmrgIf you meant to cross compile, use \`--host'.
34772adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
34782adc0320Smrg    fi
34792adc0320Smrg  fi
34802adc0320Smrgfi
34812adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
34822adc0320Smrg$as_echo "$cross_compiling" >&6; }
34832adc0320Smrg
34842adc0320Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
34852adc0320Smrgac_clean_files=$ac_clean_files_save
34862adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
34877366012aSmrg$as_echo_n "checking for suffix of object files... " >&6; }
34882adc0320Smrgif ${ac_cv_objext+:} false; then :
34897366012aSmrg  $as_echo_n "(cached) " >&6
34907a0395d0Smrgelse
34912adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34927a0395d0Smrg/* end confdefs.h.  */
34937a0395d0Smrg
34947a0395d0Smrgint
34957a0395d0Smrgmain ()
34967a0395d0Smrg{
34977a0395d0Smrg
34987a0395d0Smrg  ;
34997a0395d0Smrg  return 0;
35007a0395d0Smrg}
35017a0395d0Smrg_ACEOF
35027a0395d0Smrgrm -f conftest.o conftest.obj
35032adc0320Smrgif { { ac_try="$ac_compile"
35047a0395d0Smrgcase "(($ac_try" in
35057a0395d0Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35067a0395d0Smrg  *) ac_try_echo=$ac_try;;
35077a0395d0Smrgesac
35082adc0320Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
35092adc0320Smrg$as_echo "$ac_try_echo"; } >&5
35107a0395d0Smrg  (eval "$ac_compile") 2>&5
35117a0395d0Smrg  ac_status=$?
35122adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35132adc0320Smrg  test $ac_status = 0; }; then :
35147a0395d0Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
35157a0395d0Smrg  test -f "$ac_file" || continue;
35167a0395d0Smrg  case $ac_file in
35177366012aSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
35187a0395d0Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
35197a0395d0Smrg       break;;
35207a0395d0Smrg  esac
35217a0395d0Smrgdone
35227a0395d0Smrgelse
35237366012aSmrg  $as_echo "$as_me: failed program was:" >&5
35247a0395d0Smrgsed 's/^/| /' conftest.$ac_ext >&5
35257a0395d0Smrg
35262adc0320Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35277366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35282adc0320Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
35292adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
35307a0395d0Smrgfi
35317a0395d0Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
35327a0395d0Smrgfi
35332adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
35347366012aSmrg$as_echo "$ac_cv_objext" >&6; }
35357a0395d0SmrgOBJEXT=$ac_cv_objext
35367a0395d0Smrgac_objext=$OBJEXT
35372adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
35387366012aSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
35392adc0320Smrgif ${ac_cv_c_compiler_gnu+:} false; then :
35407366012aSmrg  $as_echo_n "(cached) " >&6
35417a0395d0Smrgelse
35422adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35437a0395d0Smrg/* end confdefs.h.  */
35447a0395d0Smrg
35457a0395d0Smrgint
35467a0395d0Smrgmain ()
35477a0395d0Smrg{
35487a0395d0Smrg#ifndef __GNUC__
35497a0395d0Smrg       choke me
35507a0395d0Smrg#endif
35517a0395d0Smrg
35527a0395d0Smrg  ;
35537a0395d0Smrg  return 0;
35547a0395d0Smrg}
35557a0395d0Smrg_ACEOF
35562adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
35577a0395d0Smrg  ac_compiler_gnu=yes
35587a0395d0Smrgelse
35592adc0320Smrg  ac_compiler_gnu=no
35607a0395d0Smrgfi
35617a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35627a0395d0Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
35637a0395d0Smrg
35647a0395d0Smrgfi
35652adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
35667366012aSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35677366012aSmrgif test $ac_compiler_gnu = yes; then
35687366012aSmrg  GCC=yes
35697366012aSmrgelse
35707366012aSmrg  GCC=
35717366012aSmrgfi
35727a0395d0Smrgac_test_CFLAGS=${CFLAGS+set}
35737a0395d0Smrgac_save_CFLAGS=$CFLAGS
35742adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
35757366012aSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
35762adc0320Smrgif ${ac_cv_prog_cc_g+:} false; then :
35777366012aSmrg  $as_echo_n "(cached) " >&6
35787a0395d0Smrgelse
35797a0395d0Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
35807a0395d0Smrg   ac_c_werror_flag=yes
35817a0395d0Smrg   ac_cv_prog_cc_g=no
35827a0395d0Smrg   CFLAGS="-g"
35832adc0320Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35847a0395d0Smrg/* end confdefs.h.  */
35857a0395d0Smrg
35867a0395d0Smrgint
35877a0395d0Smrgmain ()
35887a0395d0Smrg{
35897a0395d0Smrg
35907a0395d0Smrg  ;
35917a0395d0Smrg  return 0;
35927a0395d0Smrg}
35937a0395d0Smrg_ACEOF
35942adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
35957a0395d0Smrg  ac_cv_prog_cc_g=yes
35967a0395d0Smrgelse
35972adc0320Smrg  CFLAGS=""
35982adc0320Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35997a0395d0Smrg/* end confdefs.h.  */
36007a0395d0Smrg
36017a0395d0Smrgint
36027a0395d0Smrgmain ()
36037a0395d0Smrg{
36047a0395d0Smrg
36057a0395d0Smrg  ;
36067a0395d0Smrg  return 0;
36077a0395d0Smrg}
36087a0395d0Smrg_ACEOF
36092adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36107a0395d0Smrg
36112adc0320Smrgelse
36122adc0320Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
36137a0395d0Smrg	 CFLAGS="-g"
36142adc0320Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36157a0395d0Smrg/* end confdefs.h.  */
36167a0395d0Smrg
36172adc0320Smrgint
36182adc0320Smrgmain ()
36192adc0320Smrg{
36207a0395d0Smrg
36212adc0320Smrg  ;
36222adc0320Smrg  return 0;
36232adc0320Smrg}
36242adc0320Smrg_ACEOF
36252adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
36262adc0320Smrg  ac_cv_prog_cc_g=yes
36277a0395d0Smrgfi
36287a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36297a0395d0Smrgfi
36307a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36317a0395d0Smrgfi
36327a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36337a0395d0Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
36347a0395d0Smrgfi
36352adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
36367366012aSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
36377a0395d0Smrgif test "$ac_test_CFLAGS" = set; then
36387a0395d0Smrg  CFLAGS=$ac_save_CFLAGS
36397a0395d0Smrgelif test $ac_cv_prog_cc_g = yes; then
36407a0395d0Smrg  if test "$GCC" = yes; then
36417a0395d0Smrg    CFLAGS="-g -O2"
36427a0395d0Smrg  else
36437a0395d0Smrg    CFLAGS="-g"
36447a0395d0Smrg  fi
36457a0395d0Smrgelse
36467a0395d0Smrg  if test "$GCC" = yes; then
36477a0395d0Smrg    CFLAGS="-O2"
36487a0395d0Smrg  else
36497a0395d0Smrg    CFLAGS=
36507a0395d0Smrg  fi
36517a0395d0Smrgfi
36522adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
36537366012aSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
36542adc0320Smrgif ${ac_cv_prog_cc_c89+:} false; then :
36557366012aSmrg  $as_echo_n "(cached) " >&6
36567a0395d0Smrgelse
36577a0395d0Smrg  ac_cv_prog_cc_c89=no
36587a0395d0Smrgac_save_CC=$CC
36592adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36607a0395d0Smrg/* end confdefs.h.  */
36617a0395d0Smrg#include <stdarg.h>
36627a0395d0Smrg#include <stdio.h>
36637a0395d0Smrg#include <sys/types.h>
36647a0395d0Smrg#include <sys/stat.h>
36657a0395d0Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
36667a0395d0Smrgstruct buf { int x; };
36677a0395d0SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
36687a0395d0Smrgstatic char *e (p, i)
36697a0395d0Smrg     char **p;
36707a0395d0Smrg     int i;
36717a0395d0Smrg{
36727a0395d0Smrg  return p[i];
36737a0395d0Smrg}
36747a0395d0Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
36757a0395d0Smrg{
36767a0395d0Smrg  char *s;
36777a0395d0Smrg  va_list v;
36787a0395d0Smrg  va_start (v,p);
36797a0395d0Smrg  s = g (p, va_arg (v,int));
36807a0395d0Smrg  va_end (v);
36817a0395d0Smrg  return s;
36827a0395d0Smrg}
36837a0395d0Smrg
36847a0395d0Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
36857a0395d0Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
36867a0395d0Smrg   These don't provoke an error unfortunately, instead are silently treated
36877a0395d0Smrg   as 'x'.  The following induces an error, until -std is added to get
36887a0395d0Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
36897a0395d0Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
36907a0395d0Smrg   that's true only with -std.  */
36917a0395d0Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
36927a0395d0Smrg
36937a0395d0Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
36947a0395d0Smrg   inside strings and character constants.  */
36957a0395d0Smrg#define FOO(x) 'x'
36967a0395d0Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
36977a0395d0Smrg
36987a0395d0Smrgint test (int i, double x);
36997a0395d0Smrgstruct s1 {int (*f) (int a);};
37007a0395d0Smrgstruct s2 {int (*f) (double a);};
37017a0395d0Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
37027a0395d0Smrgint argc;
37037a0395d0Smrgchar **argv;
37047a0395d0Smrgint
37057a0395d0Smrgmain ()
37067a0395d0Smrg{
37077a0395d0Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
37087a0395d0Smrg  ;
37097a0395d0Smrg  return 0;
37107a0395d0Smrg}
37117a0395d0Smrg_ACEOF
37127a0395d0Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
37137a0395d0Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
37147a0395d0Smrgdo
37157a0395d0Smrg  CC="$ac_save_CC $ac_arg"
37162adc0320Smrg  if ac_fn_c_try_compile "$LINENO"; then :
37177a0395d0Smrg  ac_cv_prog_cc_c89=$ac_arg
37187a0395d0Smrgfi
37197a0395d0Smrgrm -f core conftest.err conftest.$ac_objext
37207a0395d0Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
37217a0395d0Smrgdone
37227a0395d0Smrgrm -f conftest.$ac_ext
37237a0395d0SmrgCC=$ac_save_CC
37247a0395d0Smrg
37257a0395d0Smrgfi
37267a0395d0Smrg# AC_CACHE_VAL
37277a0395d0Smrgcase "x$ac_cv_prog_cc_c89" in
37287a0395d0Smrg  x)
37292adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
37307366012aSmrg$as_echo "none needed" >&6; } ;;
37317a0395d0Smrg  xno)
37322adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
37337366012aSmrg$as_echo "unsupported" >&6; } ;;
37347a0395d0Smrg  *)
37357a0395d0Smrg    CC="$CC $ac_cv_prog_cc_c89"
37362adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
37377366012aSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
37387a0395d0Smrgesac
37392adc0320Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
37407a0395d0Smrg
37412adc0320Smrgfi
37427a0395d0Smrg
37437a0395d0Smrgac_ext=c
37447a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
37457a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37467a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37477a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
37487a0395d0Smrg
37497a0395d0Smrgdepcc="$CC"   am_compiler_list=
37507a0395d0Smrg
37512adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
37527366012aSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
37532adc0320Smrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
37547366012aSmrg  $as_echo_n "(cached) " >&6
37557a0395d0Smrgelse
37567a0395d0Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37577a0395d0Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
37587a0395d0Smrg  # making bogus files that we don't know about and never remove.  For
37597a0395d0Smrg  # instance it was reported that on HP-UX the gcc test will end up
37607a0395d0Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
37617a0395d0Smrg  # in D'.
37627a0395d0Smrg  mkdir conftest.dir
37637a0395d0Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
37647a0395d0Smrg  # using a relative directory.
37657a0395d0Smrg  cp "$am_depcomp" conftest.dir
37667a0395d0Smrg  cd conftest.dir
37677a0395d0Smrg  # We will build objects and dependencies in a subdirectory because
37687a0395d0Smrg  # it helps to detect inapplicable dependency modes.  For instance
37697a0395d0Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
37707a0395d0Smrg  # side effect of compilation, but ICC will put the dependencies in
37717a0395d0Smrg  # the current directory while Tru64 will put them in the object
37727a0395d0Smrg  # directory.
37737a0395d0Smrg  mkdir sub
37747a0395d0Smrg
37757a0395d0Smrg  am_cv_CC_dependencies_compiler_type=none
37767a0395d0Smrg  if test "$am_compiler_list" = ""; then
37777a0395d0Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
37787a0395d0Smrg  fi
37797366012aSmrg  am__universal=false
37807366012aSmrg  case " $depcc " in #(
37817366012aSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
37827366012aSmrg     esac
37837366012aSmrg
37847a0395d0Smrg  for depmode in $am_compiler_list; do
37857a0395d0Smrg    # Setup a source with many dependencies, because some compilers
37867a0395d0Smrg    # like to wrap large dependency lists on column 80 (with \), and
37877a0395d0Smrg    # we should not choose a depcomp mode which is confused by this.
37887a0395d0Smrg    #
37897a0395d0Smrg    # We need to recreate these files for each test, as the compiler may
37907a0395d0Smrg    # overwrite some of them when testing with obscure command lines.
37917a0395d0Smrg    # This happens at least with the AIX C compiler.
37927a0395d0Smrg    : > sub/conftest.c
37937a0395d0Smrg    for i in 1 2 3 4 5 6; do
37947a0395d0Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
37957a0395d0Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
37967a0395d0Smrg      # Solaris 8's {/usr,}/bin/sh.
37977a0395d0Smrg      touch sub/conftst$i.h
37987a0395d0Smrg    done
37997a0395d0Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
38007a0395d0Smrg
38012adc0320Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
38022adc0320Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
38032adc0320Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
38042adc0320Smrg    # versions had trouble with output in subdirs
38052adc0320Smrg    am__obj=sub/conftest.${OBJEXT-o}
38062adc0320Smrg    am__minus_obj="-o $am__obj"
38072adc0320Smrg    case $depmode in
38082adc0320Smrg    gcc)
38092adc0320Smrg      # This depmode causes a compiler race in universal mode.
38102adc0320Smrg      test "$am__universal" = false || continue
38112adc0320Smrg      ;;
38122adc0320Smrg    nosideeffect)
38132adc0320Smrg      # after this tag, mechanisms are not by side-effect, so they'll
38142adc0320Smrg      # only be used when explicitly requested
38152adc0320Smrg      if test "x$enable_dependency_tracking" = xyes; then
38162adc0320Smrg	continue
38172adc0320Smrg      else
38182adc0320Smrg	break
38192adc0320Smrg      fi
38202adc0320Smrg      ;;
38212adc0320Smrg    msvisualcpp | msvcmsys)
38222adc0320Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
38232adc0320Smrg      # not run yet.  These depmodes are late enough in the game, and
38242adc0320Smrg      # so weak that their functioning should not be impacted.
38252adc0320Smrg      am__obj=conftest.${OBJEXT-o}
38262adc0320Smrg      am__minus_obj=
38272adc0320Smrg      ;;
38282adc0320Smrg    none) break ;;
38292adc0320Smrg    esac
38302adc0320Smrg    if depmode=$depmode \
38312adc0320Smrg       source=sub/conftest.c object=$am__obj \
38322adc0320Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
38332adc0320Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
38342adc0320Smrg         >/dev/null 2>conftest.err &&
38352adc0320Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
38362adc0320Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
38372adc0320Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
38382adc0320Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
38392adc0320Smrg      # icc doesn't choke on unknown options, it will just issue warnings
38402adc0320Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
38412adc0320Smrg      # that says an option was ignored or not supported.
38422adc0320Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
38432adc0320Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
38442adc0320Smrg      # The diagnosis changed in icc 8.0:
38452adc0320Smrg      #   icc: Command line remark: option '-MP' not supported
38462adc0320Smrg      if (grep 'ignoring option' conftest.err ||
38472adc0320Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
38482adc0320Smrg        am_cv_CC_dependencies_compiler_type=$depmode
38492adc0320Smrg        break
38502adc0320Smrg      fi
38512adc0320Smrg    fi
38522adc0320Smrg  done
38532adc0320Smrg
38542adc0320Smrg  cd ..
38552adc0320Smrg  rm -rf conftest.dir
38562adc0320Smrgelse
38572adc0320Smrg  am_cv_CC_dependencies_compiler_type=none
38582adc0320Smrgfi
38592adc0320Smrg
38602adc0320Smrgfi
38612adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
38622adc0320Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
38632adc0320SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
38642adc0320Smrg
38652adc0320Smrg if
38662adc0320Smrg  test "x$enable_dependency_tracking" != xno \
38672adc0320Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
38682adc0320Smrg  am__fastdepCC_TRUE=
38692adc0320Smrg  am__fastdepCC_FALSE='#'
38702adc0320Smrgelse
38712adc0320Smrg  am__fastdepCC_TRUE='#'
38722adc0320Smrg  am__fastdepCC_FALSE=
38732adc0320Smrgfi
38742adc0320Smrg
38752adc0320Smrg
38762adc0320Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
38772adc0320Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
38782adc0320Smrgif ${ac_cv_prog_cc_c99+:} false; then :
38792adc0320Smrg  $as_echo_n "(cached) " >&6
38802adc0320Smrgelse
38812adc0320Smrg  ac_cv_prog_cc_c99=no
38822adc0320Smrgac_save_CC=$CC
38832adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
38842adc0320Smrg/* end confdefs.h.  */
38852adc0320Smrg#include <stdarg.h>
38862adc0320Smrg#include <stdbool.h>
38872adc0320Smrg#include <stdlib.h>
38882adc0320Smrg#include <wchar.h>
38892adc0320Smrg#include <stdio.h>
38902adc0320Smrg
38912adc0320Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
38922adc0320Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
38932adc0320Smrg#define showlist(...) puts (#__VA_ARGS__)
38942adc0320Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
38952adc0320Smrgstatic void
38962adc0320Smrgtest_varargs_macros (void)
38972adc0320Smrg{
38982adc0320Smrg  int x = 1234;
38992adc0320Smrg  int y = 5678;
39002adc0320Smrg  debug ("Flag");
39012adc0320Smrg  debug ("X = %d\n", x);
39022adc0320Smrg  showlist (The first, second, and third items.);
39032adc0320Smrg  report (x>y, "x is %d but y is %d", x, y);
39042adc0320Smrg}
39052adc0320Smrg
39062adc0320Smrg// Check long long types.
39072adc0320Smrg#define BIG64 18446744073709551615ull
39082adc0320Smrg#define BIG32 4294967295ul
39092adc0320Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
39102adc0320Smrg#if !BIG_OK
39112adc0320Smrg  your preprocessor is broken;
39122adc0320Smrg#endif
39132adc0320Smrg#if BIG_OK
39142adc0320Smrg#else
39152adc0320Smrg  your preprocessor is broken;
39162adc0320Smrg#endif
39172adc0320Smrgstatic long long int bignum = -9223372036854775807LL;
39182adc0320Smrgstatic unsigned long long int ubignum = BIG64;
39192adc0320Smrg
39202adc0320Smrgstruct incomplete_array
39212adc0320Smrg{
39222adc0320Smrg  int datasize;
39232adc0320Smrg  double data[];
39242adc0320Smrg};
39252adc0320Smrg
39262adc0320Smrgstruct named_init {
39272adc0320Smrg  int number;
39282adc0320Smrg  const wchar_t *name;
39292adc0320Smrg  double average;
39302adc0320Smrg};
39312adc0320Smrg
39322adc0320Smrgtypedef const char *ccp;
39332adc0320Smrg
39342adc0320Smrgstatic inline int
39352adc0320Smrgtest_restrict (ccp restrict text)
39362adc0320Smrg{
39372adc0320Smrg  // See if C++-style comments work.
39382adc0320Smrg  // Iterate through items via the restricted pointer.
39392adc0320Smrg  // Also check for declarations in for loops.
39402adc0320Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
39412adc0320Smrg    continue;
39422adc0320Smrg  return 0;
39432adc0320Smrg}
39442adc0320Smrg
39452adc0320Smrg// Check varargs and va_copy.
39462adc0320Smrgstatic void
39472adc0320Smrgtest_varargs (const char *format, ...)
39482adc0320Smrg{
39492adc0320Smrg  va_list args;
39502adc0320Smrg  va_start (args, format);
39512adc0320Smrg  va_list args_copy;
39522adc0320Smrg  va_copy (args_copy, args);
39532adc0320Smrg
39542adc0320Smrg  const char *str;
39552adc0320Smrg  int number;
39562adc0320Smrg  float fnumber;
39572adc0320Smrg
39582adc0320Smrg  while (*format)
39592adc0320Smrg    {
39602adc0320Smrg      switch (*format++)
39612adc0320Smrg	{
39622adc0320Smrg	case 's': // string
39632adc0320Smrg	  str = va_arg (args_copy, const char *);
39642adc0320Smrg	  break;
39652adc0320Smrg	case 'd': // int
39662adc0320Smrg	  number = va_arg (args_copy, int);
39672adc0320Smrg	  break;
39682adc0320Smrg	case 'f': // float
39692adc0320Smrg	  fnumber = va_arg (args_copy, double);
39702adc0320Smrg	  break;
39712adc0320Smrg	default:
39722adc0320Smrg	  break;
39732adc0320Smrg	}
39742adc0320Smrg    }
39752adc0320Smrg  va_end (args_copy);
39762adc0320Smrg  va_end (args);
39772adc0320Smrg}
39782adc0320Smrg
39792adc0320Smrgint
39802adc0320Smrgmain ()
39812adc0320Smrg{
39827a0395d0Smrg
39832adc0320Smrg  // Check bool.
39842adc0320Smrg  _Bool success = false;
39857a0395d0Smrg
39862adc0320Smrg  // Check restrict.
39872adc0320Smrg  if (test_restrict ("String literal") == 0)
39882adc0320Smrg    success = true;
39892adc0320Smrg  char *restrict newvar = "Another string";
39907a0395d0Smrg
39912adc0320Smrg  // Check varargs.
39922adc0320Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
39932adc0320Smrg  test_varargs_macros ();
39947a0395d0Smrg
39952adc0320Smrg  // Check flexible array members.
39962adc0320Smrg  struct incomplete_array *ia =
39972adc0320Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
39982adc0320Smrg  ia->datasize = 10;
39992adc0320Smrg  for (int i = 0; i < ia->datasize; ++i)
40002adc0320Smrg    ia->data[i] = i * 1.234;
40017a0395d0Smrg
40022adc0320Smrg  // Check named initializers.
40032adc0320Smrg  struct named_init ni = {
40042adc0320Smrg    .number = 34,
40052adc0320Smrg    .name = L"Test wide string",
40062adc0320Smrg    .average = 543.34343,
40072adc0320Smrg  };
40087366012aSmrg
40092adc0320Smrg  ni.number = 58;
40107a0395d0Smrg
40112adc0320Smrg  int dynamic_array[ni.number];
40122adc0320Smrg  dynamic_array[ni.number - 1] = 543;
40137a0395d0Smrg
40142adc0320Smrg  // work around unused variable warnings
40152adc0320Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
40162adc0320Smrg	  || dynamic_array[ni.number - 1] != 543);
40177a0395d0Smrg
40182adc0320Smrg  ;
40192adc0320Smrg  return 0;
40202adc0320Smrg}
40212adc0320Smrg_ACEOF
40222adc0320Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
40232adc0320Smrgdo
40242adc0320Smrg  CC="$ac_save_CC $ac_arg"
40252adc0320Smrg  if ac_fn_c_try_compile "$LINENO"; then :
40262adc0320Smrg  ac_cv_prog_cc_c99=$ac_arg
40272adc0320Smrgfi
40282adc0320Smrgrm -f core conftest.err conftest.$ac_objext
40292adc0320Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
40302adc0320Smrgdone
40312adc0320Smrgrm -f conftest.$ac_ext
40322adc0320SmrgCC=$ac_save_CC
40337a0395d0Smrg
40342adc0320Smrgfi
40352adc0320Smrg# AC_CACHE_VAL
40362adc0320Smrgcase "x$ac_cv_prog_cc_c99" in
40372adc0320Smrg  x)
40382adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
40392adc0320Smrg$as_echo "none needed" >&6; } ;;
40402adc0320Smrg  xno)
40412adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
40422adc0320Smrg$as_echo "unsupported" >&6; } ;;
40432adc0320Smrg  *)
40442adc0320Smrg    CC="$CC $ac_cv_prog_cc_c99"
40452adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
40462adc0320Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
40472adc0320Smrgesac
40482adc0320Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
40497a0395d0Smrg
40502adc0320Smrgfi
40517a0395d0Smrg
40527a0395d0Smrg
40537a0395d0Smrg
40547366012aSmrgac_ext=c
40557366012aSmrgac_cpp='$CPP $CPPFLAGS'
40567366012aSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40577366012aSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40587366012aSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40592adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
40607366012aSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
40617366012aSmrg# On Suns, sometimes $CPP names a directory.
40627366012aSmrgif test -n "$CPP" && test -d "$CPP"; then
40637366012aSmrg  CPP=
40647366012aSmrgfi
40657366012aSmrgif test -z "$CPP"; then
40662adc0320Smrg  if ${ac_cv_prog_CPP+:} false; then :
40677366012aSmrg  $as_echo_n "(cached) " >&6
40687a0395d0Smrgelse
40697366012aSmrg      # Double quotes because CPP needs to be expanded
40707366012aSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
40717366012aSmrg    do
40727366012aSmrg      ac_preproc_ok=false
40737366012aSmrgfor ac_c_preproc_warn_flag in '' yes
40747366012aSmrgdo
40757366012aSmrg  # Use a header file that comes with gcc, so configuring glibc
40767366012aSmrg  # with a fresh cross-compiler works.
40777366012aSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40787366012aSmrg  # <limits.h> exists even on freestanding compilers.
40797366012aSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
40807366012aSmrg  # not just through cpp. "Syntax error" is here to catch this case.
40812adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40827a0395d0Smrg/* end confdefs.h.  */
40837a0395d0Smrg#ifdef __STDC__
40847a0395d0Smrg# include <limits.h>
40857a0395d0Smrg#else
40867a0395d0Smrg# include <assert.h>
40877a0395d0Smrg#endif
40887a0395d0Smrg		     Syntax error
40897a0395d0Smrg_ACEOF
40902adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
40917a0395d0Smrg
40922adc0320Smrgelse
40937a0395d0Smrg  # Broken: fails on valid input.
40947a0395d0Smrgcontinue
40957a0395d0Smrgfi
40962adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
40977a0395d0Smrg
40987a0395d0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
40997a0395d0Smrg  # can be detected and how.
41002adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41017a0395d0Smrg/* end confdefs.h.  */
41027a0395d0Smrg#include <ac_nonexistent.h>
41037a0395d0Smrg_ACEOF
41042adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41057a0395d0Smrg  # Broken: success on invalid input.
41067a0395d0Smrgcontinue
41077a0395d0Smrgelse
41087a0395d0Smrg  # Passes both tests.
41097a0395d0Smrgac_preproc_ok=:
41107a0395d0Smrgbreak
41117a0395d0Smrgfi
41122adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41137a0395d0Smrg
41147a0395d0Smrgdone
41157a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
41162adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext
41172adc0320Smrgif $ac_preproc_ok; then :
41187a0395d0Smrg  break
41197a0395d0Smrgfi
41207a0395d0Smrg
41217a0395d0Smrg    done
41227a0395d0Smrg    ac_cv_prog_CPP=$CPP
41237a0395d0Smrg
41247a0395d0Smrgfi
41257a0395d0Smrg  CPP=$ac_cv_prog_CPP
41267a0395d0Smrgelse
41277a0395d0Smrg  ac_cv_prog_CPP=$CPP
41287a0395d0Smrgfi
41292adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
41307366012aSmrg$as_echo "$CPP" >&6; }
41317a0395d0Smrgac_preproc_ok=false
41327a0395d0Smrgfor ac_c_preproc_warn_flag in '' yes
41337a0395d0Smrgdo
41347a0395d0Smrg  # Use a header file that comes with gcc, so configuring glibc
41357a0395d0Smrg  # with a fresh cross-compiler works.
41367a0395d0Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41377a0395d0Smrg  # <limits.h> exists even on freestanding compilers.
41382adc0320Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
41392adc0320Smrg  # not just through cpp. "Syntax error" is here to catch this case.
41402adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41412adc0320Smrg/* end confdefs.h.  */
41422adc0320Smrg#ifdef __STDC__
41432adc0320Smrg# include <limits.h>
41442adc0320Smrg#else
41452adc0320Smrg# include <assert.h>
41462adc0320Smrg#endif
41472adc0320Smrg		     Syntax error
41482adc0320Smrg_ACEOF
41492adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41507a0395d0Smrg
41512adc0320Smrgelse
41527a0395d0Smrg  # Broken: fails on valid input.
41537a0395d0Smrgcontinue
41547a0395d0Smrgfi
41552adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41567a0395d0Smrg
41577a0395d0Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
41587a0395d0Smrg  # can be detected and how.
41592adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41607a0395d0Smrg/* end confdefs.h.  */
41617a0395d0Smrg#include <ac_nonexistent.h>
41627a0395d0Smrg_ACEOF
41632adc0320Smrgif ac_fn_c_try_cpp "$LINENO"; then :
41647a0395d0Smrg  # Broken: success on invalid input.
41657a0395d0Smrgcontinue
41667a0395d0Smrgelse
41677a0395d0Smrg  # Passes both tests.
41687a0395d0Smrgac_preproc_ok=:
41697a0395d0Smrgbreak
41707a0395d0Smrgfi
41712adc0320Smrgrm -f conftest.err conftest.i conftest.$ac_ext
41727a0395d0Smrg
41737a0395d0Smrgdone
41747a0395d0Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
41752adc0320Smrgrm -f conftest.i conftest.err conftest.$ac_ext
41762adc0320Smrgif $ac_preproc_ok; then :
41772adc0320Smrg
41787a0395d0Smrgelse
41792adc0320Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41807366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41812adc0320Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
41822adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
41837a0395d0Smrgfi
41847a0395d0Smrg
41857a0395d0Smrgac_ext=c
41867a0395d0Smrgac_cpp='$CPP $CPPFLAGS'
41877a0395d0Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41887a0395d0Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41897a0395d0Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41907a0395d0Smrg
41917a0395d0Smrg
41922adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
41937366012aSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
41942adc0320Smrgif ${ac_cv_path_GREP+:} false; then :
41957366012aSmrg  $as_echo_n "(cached) " >&6
41967a0395d0Smrgelse
41977366012aSmrg  if test -z "$GREP"; then
41987a0395d0Smrg  ac_path_GREP_found=false
41997366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
42007366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42017a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42027a0395d0Smrgdo
42037a0395d0Smrg  IFS=$as_save_IFS
42047a0395d0Smrg  test -z "$as_dir" && as_dir=.
42052adc0320Smrg    for ac_prog in grep ggrep; do
42067366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
42077366012aSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
42087366012aSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
42097366012aSmrg# Check for GNU ac_path_GREP and select it if it is found.
42107a0395d0Smrg  # Check for GNU $ac_path_GREP
42117a0395d0Smrgcase `"$ac_path_GREP" --version 2>&1` in
42127a0395d0Smrg*GNU*)
42137a0395d0Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
42147a0395d0Smrg*)
42157a0395d0Smrg  ac_count=0
42167366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
42177a0395d0Smrg  while :
42187a0395d0Smrg  do
42197a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
42207a0395d0Smrg    mv "conftest.tmp" "conftest.in"
42217a0395d0Smrg    cp "conftest.in" "conftest.nl"
42227366012aSmrg    $as_echo 'GREP' >> "conftest.nl"
42237a0395d0Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42247a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42252adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
42267a0395d0Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
42277a0395d0Smrg      # Best one so far, save it but keep looking for a better one
42287a0395d0Smrg      ac_cv_path_GREP="$ac_path_GREP"
42297a0395d0Smrg      ac_path_GREP_max=$ac_count
42307a0395d0Smrg    fi
42317a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
42327a0395d0Smrg    test $ac_count -gt 10 && break
42337a0395d0Smrg  done
42347a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42357a0395d0Smrgesac
42367a0395d0Smrg
42377366012aSmrg      $ac_path_GREP_found && break 3
42387366012aSmrg    done
42397a0395d0Smrg  done
42402adc0320Smrg  done
42417a0395d0SmrgIFS=$as_save_IFS
42427366012aSmrg  if test -z "$ac_cv_path_GREP"; then
42432adc0320Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42447366012aSmrg  fi
42457a0395d0Smrgelse
42467a0395d0Smrg  ac_cv_path_GREP=$GREP
42477a0395d0Smrgfi
42487a0395d0Smrg
42497a0395d0Smrgfi
42502adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
42517366012aSmrg$as_echo "$ac_cv_path_GREP" >&6; }
42527a0395d0Smrg GREP="$ac_cv_path_GREP"
42537a0395d0Smrg
42547a0395d0Smrg
42552adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
42567366012aSmrg$as_echo_n "checking for egrep... " >&6; }
42572adc0320Smrgif ${ac_cv_path_EGREP+:} false; then :
42587366012aSmrg  $as_echo_n "(cached) " >&6
42597a0395d0Smrgelse
42607a0395d0Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
42617a0395d0Smrg   then ac_cv_path_EGREP="$GREP -E"
42627a0395d0Smrg   else
42637366012aSmrg     if test -z "$EGREP"; then
42647a0395d0Smrg  ac_path_EGREP_found=false
42657366012aSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
42667366012aSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42677a0395d0Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42687a0395d0Smrgdo
42697a0395d0Smrg  IFS=$as_save_IFS
42707a0395d0Smrg  test -z "$as_dir" && as_dir=.
42712adc0320Smrg    for ac_prog in egrep; do
42727366012aSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
42737366012aSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
42747366012aSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
42757366012aSmrg# Check for GNU ac_path_EGREP and select it if it is found.
42767a0395d0Smrg  # Check for GNU $ac_path_EGREP
42777a0395d0Smrgcase `"$ac_path_EGREP" --version 2>&1` in
42787a0395d0Smrg*GNU*)
42797a0395d0Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
42807a0395d0Smrg*)
42817a0395d0Smrg  ac_count=0
42827366012aSmrg  $as_echo_n 0123456789 >"conftest.in"
42837a0395d0Smrg  while :
42847a0395d0Smrg  do
42857a0395d0Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
42867a0395d0Smrg    mv "conftest.tmp" "conftest.in"
42877a0395d0Smrg    cp "conftest.in" "conftest.nl"
42887366012aSmrg    $as_echo 'EGREP' >> "conftest.nl"
42897a0395d0Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42907a0395d0Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42912adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
42927a0395d0Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
42937a0395d0Smrg      # Best one so far, save it but keep looking for a better one
42947a0395d0Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
42957a0395d0Smrg      ac_path_EGREP_max=$ac_count
42967a0395d0Smrg    fi
42977a0395d0Smrg    # 10*(2^10) chars as input seems more than enough
42987a0395d0Smrg    test $ac_count -gt 10 && break
42997a0395d0Smrg  done
43007a0395d0Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43017a0395d0Smrgesac
43027a0395d0Smrg
43037366012aSmrg      $ac_path_EGREP_found && break 3
43047366012aSmrg    done
43057a0395d0Smrg  done
43062adc0320Smrg  done
43077a0395d0SmrgIFS=$as_save_IFS
43087366012aSmrg  if test -z "$ac_cv_path_EGREP"; then
43092adc0320Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
43107366012aSmrg  fi
43117a0395d0Smrgelse
43127a0395d0Smrg  ac_cv_path_EGREP=$EGREP
43137a0395d0Smrgfi
43147a0395d0Smrg
43157a0395d0Smrg   fi
43167a0395d0Smrgfi
43172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
43187366012aSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
43197a0395d0Smrg EGREP="$ac_cv_path_EGREP"
43207a0395d0Smrg
43217a0395d0Smrg
43222adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
43237366012aSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
43242adc0320Smrgif ${ac_cv_header_stdc+:} false; then :
43257366012aSmrg  $as_echo_n "(cached) " >&6
43267a0395d0Smrgelse
43272adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43287a0395d0Smrg/* end confdefs.h.  */
43297a0395d0Smrg#include <stdlib.h>
43307a0395d0Smrg#include <stdarg.h>
43317a0395d0Smrg#include <string.h>
43327a0395d0Smrg#include <float.h>
43337a0395d0Smrg
43347a0395d0Smrgint
43357a0395d0Smrgmain ()
43367a0395d0Smrg{
43377a0395d0Smrg
43387a0395d0Smrg  ;
43397a0395d0Smrg  return 0;
43407a0395d0Smrg}
43417a0395d0Smrg_ACEOF
43422adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
43437a0395d0Smrg  ac_cv_header_stdc=yes
43447a0395d0Smrgelse
43452adc0320Smrg  ac_cv_header_stdc=no
43467a0395d0Smrgfi
43477a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43487a0395d0Smrg
43497a0395d0Smrgif test $ac_cv_header_stdc = yes; then
43507a0395d0Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
43512adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43527a0395d0Smrg/* end confdefs.h.  */
43537a0395d0Smrg#include <string.h>
43547a0395d0Smrg
43557a0395d0Smrg_ACEOF
43567a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43572adc0320Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
43582adc0320Smrg
43597a0395d0Smrgelse
43607a0395d0Smrg  ac_cv_header_stdc=no
43617a0395d0Smrgfi
43627a0395d0Smrgrm -f conftest*
43637a0395d0Smrg
43647a0395d0Smrgfi
43657a0395d0Smrg
43667a0395d0Smrgif test $ac_cv_header_stdc = yes; then
43677a0395d0Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
43682adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43697a0395d0Smrg/* end confdefs.h.  */
43707a0395d0Smrg#include <stdlib.h>
43717a0395d0Smrg
43727a0395d0Smrg_ACEOF
43737a0395d0Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43742adc0320Smrg  $EGREP "free" >/dev/null 2>&1; then :
43752adc0320Smrg
43767a0395d0Smrgelse
43777a0395d0Smrg  ac_cv_header_stdc=no
43787a0395d0Smrgfi
43797a0395d0Smrgrm -f conftest*
43807a0395d0Smrg
43817a0395d0Smrgfi
43827a0395d0Smrg
43837a0395d0Smrgif test $ac_cv_header_stdc = yes; then
43847a0395d0Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
43852adc0320Smrg  if test "$cross_compiling" = yes; then :
43867a0395d0Smrg  :
43877a0395d0Smrgelse
43882adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43897a0395d0Smrg/* end confdefs.h.  */
43907a0395d0Smrg#include <ctype.h>
43917a0395d0Smrg#include <stdlib.h>
43927a0395d0Smrg#if ((' ' & 0x0FF) == 0x020)
43937a0395d0Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
43947a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
43957a0395d0Smrg#else
43967a0395d0Smrg# define ISLOWER(c) \
43977a0395d0Smrg		   (('a' <= (c) && (c) <= 'i') \
43987a0395d0Smrg		     || ('j' <= (c) && (c) <= 'r') \
43997a0395d0Smrg		     || ('s' <= (c) && (c) <= 'z'))
44007a0395d0Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
44017a0395d0Smrg#endif
44027a0395d0Smrg
44037a0395d0Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
44047a0395d0Smrgint
44057a0395d0Smrgmain ()
44067a0395d0Smrg{
44077a0395d0Smrg  int i;
44087a0395d0Smrg  for (i = 0; i < 256; i++)
44097a0395d0Smrg    if (XOR (islower (i), ISLOWER (i))
44107a0395d0Smrg	|| toupper (i) != TOUPPER (i))
44117a0395d0Smrg      return 2;
44127a0395d0Smrg  return 0;
44137a0395d0Smrg}
44147a0395d0Smrg_ACEOF
44152adc0320Smrgif ac_fn_c_try_run "$LINENO"; then :
44167a0395d0Smrg
44172adc0320Smrgelse
44182adc0320Smrg  ac_cv_header_stdc=no
44197a0395d0Smrgfi
44202adc0320Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
44212adc0320Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
44227a0395d0Smrgfi
44237a0395d0Smrg
44247a0395d0Smrgfi
44257a0395d0Smrgfi
44262adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
44277366012aSmrg$as_echo "$ac_cv_header_stdc" >&6; }
44287a0395d0Smrgif test $ac_cv_header_stdc = yes; then
44297a0395d0Smrg
44302adc0320Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
44317366012aSmrg
44327366012aSmrgfi
44337366012aSmrg
44347366012aSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
44357366012aSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
44367366012aSmrg		  inttypes.h stdint.h unistd.h
44372adc0320Smrgdo :
44382adc0320Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44392adc0320Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
44402adc0320Smrg"
44412adc0320Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44427366012aSmrg  cat >>confdefs.h <<_ACEOF
44437366012aSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44447366012aSmrg_ACEOF
44457366012aSmrg
44467366012aSmrgfi
44477366012aSmrg
44487366012aSmrgdone
44497366012aSmrg
44507366012aSmrg
44517366012aSmrg
44527366012aSmrg
44532adc0320Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44542adc0320Smrg	if test -n "$ac_tool_prefix"; then
44552adc0320Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44562adc0320Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44572adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44582adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
44592adc0320Smrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
44602adc0320Smrg  $as_echo_n "(cached) " >&6
44612adc0320Smrgelse
44622adc0320Smrg  case $PKG_CONFIG in
44632adc0320Smrg  [\\/]* | ?:[\\/]*)
44642adc0320Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44652adc0320Smrg  ;;
44662adc0320Smrg  *)
44672adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44682adc0320Smrgfor as_dir in $PATH
44697366012aSmrgdo
44702adc0320Smrg  IFS=$as_save_IFS
44712adc0320Smrg  test -z "$as_dir" && as_dir=.
44722adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
44732adc0320Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44742adc0320Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44752adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44762adc0320Smrg    break 2
44772adc0320Smrg  fi
44782adc0320Smrgdone
44792adc0320Smrg  done
44802adc0320SmrgIFS=$as_save_IFS
44812adc0320Smrg
44822adc0320Smrg  ;;
44837366012aSmrgesac
44842adc0320Smrgfi
44852adc0320SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
44862adc0320Smrgif test -n "$PKG_CONFIG"; then
44872adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
44882adc0320Smrg$as_echo "$PKG_CONFIG" >&6; }
44897366012aSmrgelse
44902adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44912adc0320Smrg$as_echo "no" >&6; }
44927366012aSmrgfi
44937366012aSmrg
44947366012aSmrg
44957366012aSmrgfi
44962adc0320Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
44972adc0320Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
44982adc0320Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
44992adc0320Smrgset dummy pkg-config; ac_word=$2
45002adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45012adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
45022adc0320Smrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
45032adc0320Smrg  $as_echo_n "(cached) " >&6
45042adc0320Smrgelse
45052adc0320Smrg  case $ac_pt_PKG_CONFIG in
45062adc0320Smrg  [\\/]* | ?:[\\/]*)
45072adc0320Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45082adc0320Smrg  ;;
45097366012aSmrg  *)
45102adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45112adc0320Smrgfor as_dir in $PATH
45122adc0320Smrgdo
45132adc0320Smrg  IFS=$as_save_IFS
45142adc0320Smrg  test -z "$as_dir" && as_dir=.
45152adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
45162adc0320Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45172adc0320Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45182adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45192adc0320Smrg    break 2
45202adc0320Smrg  fi
45212adc0320Smrgdone
45222adc0320Smrg  done
45232adc0320SmrgIFS=$as_save_IFS
45242adc0320Smrg
45252adc0320Smrg  ;;
45267366012aSmrgesac
45272adc0320Smrgfi
45282adc0320Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45292adc0320Smrgif test -n "$ac_pt_PKG_CONFIG"; then
45302adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
45312adc0320Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
45322adc0320Smrgelse
45332adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45342adc0320Smrg$as_echo "no" >&6; }
45352adc0320Smrgfi
45367366012aSmrg
45372adc0320Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
45382adc0320Smrg    PKG_CONFIG=""
45392adc0320Smrg  else
45402adc0320Smrg    case $cross_compiling:$ac_tool_warned in
45412adc0320Smrgyes:)
45422adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
45432adc0320Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45442adc0320Smrgac_tool_warned=yes ;;
45452adc0320Smrgesac
45462adc0320Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
45472adc0320Smrg  fi
45482adc0320Smrgelse
45492adc0320Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45502adc0320Smrgfi
45517366012aSmrg
45522adc0320Smrgfi
45532adc0320Smrgif test -n "$PKG_CONFIG"; then
45542adc0320Smrg	_pkg_min_version=0.9.0
45552adc0320Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
45562adc0320Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
45572adc0320Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
45582adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45592adc0320Smrg$as_echo "yes" >&6; }
45602adc0320Smrg	else
45612adc0320Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45622adc0320Smrg$as_echo "no" >&6; }
45632adc0320Smrg		PKG_CONFIG=""
45642adc0320Smrg	fi
45657366012aSmrg
45662adc0320Smrgfi
45677366012aSmrg# Make sure we can run config.sub.
45687366012aSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
45692adc0320Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
45707366012aSmrg
45712adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
45727366012aSmrg$as_echo_n "checking build system type... " >&6; }
45732adc0320Smrgif ${ac_cv_build+:} false; then :
45747366012aSmrg  $as_echo_n "(cached) " >&6
45757366012aSmrgelse
45767366012aSmrg  ac_build_alias=$build_alias
45777366012aSmrgtest "x$ac_build_alias" = x &&
45787366012aSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
45797366012aSmrgtest "x$ac_build_alias" = x &&
45802adc0320Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
45817366012aSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
45822adc0320Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
45837366012aSmrg
45847366012aSmrgfi
45852adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
45867366012aSmrg$as_echo "$ac_cv_build" >&6; }
45877366012aSmrgcase $ac_cv_build in
45887366012aSmrg*-*-*) ;;
45892adc0320Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
45907366012aSmrgesac
45917366012aSmrgbuild=$ac_cv_build
45927366012aSmrgac_save_IFS=$IFS; IFS='-'
45937366012aSmrgset x $ac_cv_build
45947366012aSmrgshift
45957366012aSmrgbuild_cpu=$1
45967366012aSmrgbuild_vendor=$2
45977366012aSmrgshift; shift
45987366012aSmrg# Remember, the first character of IFS is used to create $*,
45997366012aSmrg# except with old shells:
46007366012aSmrgbuild_os=$*
46017366012aSmrgIFS=$ac_save_IFS
46027366012aSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
46037366012aSmrg
46047366012aSmrg
46052adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
46067366012aSmrg$as_echo_n "checking host system type... " >&6; }
46072adc0320Smrgif ${ac_cv_host+:} false; then :
46087366012aSmrg  $as_echo_n "(cached) " >&6
46097366012aSmrgelse
46107366012aSmrg  if test "x$host_alias" = x; then
46117366012aSmrg  ac_cv_host=$ac_cv_build
46127366012aSmrgelse
46137366012aSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
46142adc0320Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
46157366012aSmrgfi
46167366012aSmrg
46177366012aSmrgfi
46182adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
46197366012aSmrg$as_echo "$ac_cv_host" >&6; }
46207366012aSmrgcase $ac_cv_host in
46217366012aSmrg*-*-*) ;;
46222adc0320Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
46237366012aSmrgesac
46247366012aSmrghost=$ac_cv_host
46257366012aSmrgac_save_IFS=$IFS; IFS='-'
46267366012aSmrgset x $ac_cv_host
46277366012aSmrgshift
46287366012aSmrghost_cpu=$1
46297366012aSmrghost_vendor=$2
46307366012aSmrgshift; shift
46317366012aSmrg# Remember, the first character of IFS is used to create $*,
46327366012aSmrg# except with old shells:
46337366012aSmrghost_os=$*
46347366012aSmrgIFS=$ac_save_IFS
46357366012aSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
46367366012aSmrg
46377366012aSmrg
46382adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
46392adc0320Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
46402adc0320Smrgif ${ac_cv_path_SED+:} false; then :
46417366012aSmrg  $as_echo_n "(cached) " >&6
46427366012aSmrgelse
46432adc0320Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
46442adc0320Smrg     for ac_i in 1 2 3 4 5 6 7; do
46452adc0320Smrg       ac_script="$ac_script$as_nl$ac_script"
46462adc0320Smrg     done
46472adc0320Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
46482adc0320Smrg     { ac_script=; unset ac_script;}
46492adc0320Smrg     if test -z "$SED"; then
46502adc0320Smrg  ac_path_SED_found=false
46512adc0320Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
46522adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46532adc0320Smrgfor as_dir in $PATH
46542adc0320Smrgdo
46552adc0320Smrg  IFS=$as_save_IFS
46562adc0320Smrg  test -z "$as_dir" && as_dir=.
46572adc0320Smrg    for ac_prog in sed gsed; do
46582adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
46592adc0320Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
46602adc0320Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
46612adc0320Smrg# Check for GNU ac_path_SED and select it if it is found.
46622adc0320Smrg  # Check for GNU $ac_path_SED
46632adc0320Smrgcase `"$ac_path_SED" --version 2>&1` in
46642adc0320Smrg*GNU*)
46652adc0320Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
46662adc0320Smrg*)
46672adc0320Smrg  ac_count=0
46682adc0320Smrg  $as_echo_n 0123456789 >"conftest.in"
46692adc0320Smrg  while :
46702adc0320Smrg  do
46712adc0320Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
46722adc0320Smrg    mv "conftest.tmp" "conftest.in"
46732adc0320Smrg    cp "conftest.in" "conftest.nl"
46742adc0320Smrg    $as_echo '' >> "conftest.nl"
46752adc0320Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
46762adc0320Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46772adc0320Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
46782adc0320Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
46792adc0320Smrg      # Best one so far, save it but keep looking for a better one
46802adc0320Smrg      ac_cv_path_SED="$ac_path_SED"
46812adc0320Smrg      ac_path_SED_max=$ac_count
46822adc0320Smrg    fi
46832adc0320Smrg    # 10*(2^10) chars as input seems more than enough
46842adc0320Smrg    test $ac_count -gt 10 && break
46852adc0320Smrg  done
46862adc0320Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46877366012aSmrgesac
46887366012aSmrg
46892adc0320Smrg      $ac_path_SED_found && break 3
46902adc0320Smrg    done
46912adc0320Smrg  done
46922adc0320Smrg  done
46932adc0320SmrgIFS=$as_save_IFS
46942adc0320Smrg  if test -z "$ac_cv_path_SED"; then
46952adc0320Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
46962adc0320Smrg  fi
46977366012aSmrgelse
46982adc0320Smrg  ac_cv_path_SED=$SED
46997366012aSmrgfi
47007366012aSmrg
47017366012aSmrgfi
47022adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
47032adc0320Smrg$as_echo "$ac_cv_path_SED" >&6; }
47042adc0320Smrg SED="$ac_cv_path_SED"
47052adc0320Smrg  rm -f conftest.sed
47067366012aSmrg
47077366012aSmrg
47087366012aSmrg
47097366012aSmrg
47107366012aSmrg
47112adc0320Smrgif  test "x$GCC" = xyes ; then
47122adc0320Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
47132adc0320Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
47142adc0320Smrg-Wbad-function-cast -Wformat=2"
47152adc0320Smrg    case `$CC -dumpversion` in
47162adc0320Smrg    3.4.* | 4.*)
47172adc0320Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
47182adc0320Smrg	;;
47192adc0320Smrg    esac
47207366012aSmrgelse
47212adc0320Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
47222adc0320Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
47237366012aSmrg  SUNCC="yes"
47247366012aSmrgelse
47257366012aSmrg  SUNCC="no"
47267366012aSmrgfi
47277366012aSmrg
47282adc0320Smrg    if test "x$SUNCC" = "xyes"; then
47292adc0320Smrg	CWARNFLAGS="-v"
47302adc0320Smrg    fi
47312adc0320Smrgfi
47322adc0320Smrg
47332adc0320Smrg
47342adc0320Smrg
47352adc0320Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
47362adc0320Smrg
47372adc0320Smrg
47387366012aSmrg
47392adc0320Smrg# Check whether --enable-strict-compilation was given.
47402adc0320Smrgif test "${enable_strict_compilation+set}" = set; then :
47412adc0320Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
47422adc0320Smrgelse
47432adc0320Smrg  STRICT_COMPILE=no
47447366012aSmrgfi
47457366012aSmrg
47462adc0320Smrgif test "x$STRICT_COMPILE" = "xyes"; then
47472adc0320Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
47482adc0320Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
47492adc0320Smrg  SUNCC="yes"
47502adc0320Smrgelse
47512adc0320Smrg  SUNCC="no"
47527366012aSmrgfi
47532adc0320Smrg
47542adc0320Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
47552adc0320Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
47567366012aSmrg  INTELCC="yes"
47577366012aSmrgelse
47587366012aSmrg  INTELCC="no"
47597366012aSmrgfi
47607366012aSmrg
47617366012aSmrg	if test "x$GCC" = xyes ; then
47627366012aSmrg		STRICT_CFLAGS="-pedantic -Werror"
47637366012aSmrg	elif test "x$SUNCC" = "xyes"; then
47647366012aSmrg		STRICT_CFLAGS="-errwarn"
47657366012aSmrg    elif test "x$INTELCC" = "xyes"; then
47667366012aSmrg		STRICT_CFLAGS="-Werror"
47677366012aSmrg	fi
47687366012aSmrgfi
47697366012aSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
47707366012aSmrg
47717366012aSmrg
47727366012aSmrg
47737366012aSmrg
47747366012aSmrgcat >>confdefs.h <<_ACEOF
47757366012aSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
47767366012aSmrg_ACEOF
47777366012aSmrg
47787366012aSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
47797366012aSmrg	if test "x$PVM" = "x"; then
47807366012aSmrg		PVM="0"
47817366012aSmrg	fi
47827366012aSmrg
47837366012aSmrgcat >>confdefs.h <<_ACEOF
47847366012aSmrg#define PACKAGE_VERSION_MINOR $PVM
47857366012aSmrg_ACEOF
47867366012aSmrg
47877366012aSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
47887366012aSmrg	if test "x$PVP" = "x"; then
47897366012aSmrg		PVP="0"
47907366012aSmrg	fi
47917366012aSmrg
47927366012aSmrgcat >>confdefs.h <<_ACEOF
47937366012aSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
47947366012aSmrg_ACEOF
47957366012aSmrg
47967366012aSmrg
47977366012aSmrg
47982adc0320SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
47992adc0320Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
48002adc0320Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
48017366012aSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
48027366012aSmrg
48032adc0320Smrg
48042adc0320Smrg
48052adc0320Smrg
48062adc0320Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
48072adc0320SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
48082adc0320Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
48092adc0320Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
48102adc0320Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
48112adc0320Smrg
48127366012aSmrg
48137366012aSmrg
48147366012aSmrg
48157366012aSmrg
48167366012aSmrg
48177366012aSmrgif test x$APP_MAN_SUFFIX = x    ; then
48187366012aSmrg    APP_MAN_SUFFIX=1
48197366012aSmrgfi
48207366012aSmrgif test x$APP_MAN_DIR = x    ; then
48217366012aSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
48227366012aSmrgfi
48237366012aSmrg
48247366012aSmrgif test x$LIB_MAN_SUFFIX = x    ; then
48257366012aSmrg    LIB_MAN_SUFFIX=3
48267366012aSmrgfi
48277366012aSmrgif test x$LIB_MAN_DIR = x    ; then
48287366012aSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
48297366012aSmrgfi
48307366012aSmrg
48317366012aSmrgif test x$FILE_MAN_SUFFIX = x    ; then
48327366012aSmrg    case $host_os in
48337366012aSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
48347366012aSmrg	*)		FILE_MAN_SUFFIX=5  ;;
48357366012aSmrg    esac
48367366012aSmrgfi
48377366012aSmrgif test x$FILE_MAN_DIR = x    ; then
48387366012aSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
48397366012aSmrgfi
48407366012aSmrg
48417366012aSmrgif test x$MISC_MAN_SUFFIX = x    ; then
48427366012aSmrg    case $host_os in
48437366012aSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
48447366012aSmrg	*)		MISC_MAN_SUFFIX=7  ;;
48457366012aSmrg    esac
48467366012aSmrgfi
48477366012aSmrgif test x$MISC_MAN_DIR = x    ; then
48487366012aSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
48497366012aSmrgfi
48507366012aSmrg
48517366012aSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
48527366012aSmrg    case $host_os in
48537366012aSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
48547366012aSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
48557366012aSmrg    esac
48567366012aSmrgfi
48577366012aSmrgif test x$DRIVER_MAN_DIR = x    ; then
48587366012aSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
48597366012aSmrgfi
48607366012aSmrg
48617366012aSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
48627366012aSmrg    case $host_os in
48637366012aSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
48647366012aSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
48657366012aSmrg    esac
48667366012aSmrgfi
48677366012aSmrgif test x$ADMIN_MAN_DIR = x    ; then
48687366012aSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
48697366012aSmrgfi
48707366012aSmrg
48717366012aSmrg
48727366012aSmrg
48737366012aSmrg
48747366012aSmrg
48757a0395d0Smrg
48767a0395d0Smrg
48777a0395d0Smrg
48787a0395d0Smrg
48797a0395d0Smrg
48807a0395d0Smrg
48817a0395d0Smrg
48827a0395d0Smrg
48837a0395d0Smrg
48847a0395d0Smrg
48852adc0320SmrgXORG_MAN_PAGE="X Version 11"
48862adc0320Smrg
48872adc0320SmrgMAN_SUBSTS="\
48882adc0320Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
48892adc0320Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
48902adc0320Smrg	-e 's|__xservername__|Xorg|g' \
48912adc0320Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
48922adc0320Smrg	-e 's|__projectroot__|\$(prefix)|g' \
48932adc0320Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
48942adc0320Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
48952adc0320Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
48962adc0320Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
48972adc0320Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
48982adc0320Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
48992adc0320Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
49002adc0320Smrg
49012adc0320Smrg
49022adc0320Smrg
49032adc0320Smrg# Check whether --enable-silent-rules was given.
49042adc0320Smrgif test "${enable_silent_rules+set}" = set; then :
49052adc0320Smrg  enableval=$enable_silent_rules;
49062adc0320Smrgfi
49072adc0320Smrg
49082adc0320Smrgcase $enable_silent_rules in
49092adc0320Smrgyes) AM_DEFAULT_VERBOSITY=0;;
49102adc0320Smrgno)  AM_DEFAULT_VERBOSITY=1;;
49112adc0320Smrg*)   AM_DEFAULT_VERBOSITY=0;;
49122adc0320Smrgesac
49132adc0320SmrgAM_BACKSLASH='\'
49142adc0320Smrg
49157a0395d0Smrg
49167366012aSmrg
49172adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
49187366012aSmrg$as_echo_n "checking return type of signal handlers... " >&6; }
49192adc0320Smrgif ${ac_cv_type_signal+:} false; then :
49207366012aSmrg  $as_echo_n "(cached) " >&6
49217a0395d0Smrgelse
49222adc0320Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49237a0395d0Smrg/* end confdefs.h.  */
49247366012aSmrg#include <sys/types.h>
49257366012aSmrg#include <signal.h>
49267a0395d0Smrg
49277366012aSmrgint
49287366012aSmrgmain ()
49297366012aSmrg{
49307366012aSmrgreturn *(signal (0, 0)) (0) == 1;
49317366012aSmrg  ;
49327366012aSmrg  return 0;
49337366012aSmrg}
49347a0395d0Smrg_ACEOF
49352adc0320Smrgif ac_fn_c_try_compile "$LINENO"; then :
49367366012aSmrg  ac_cv_type_signal=int
49377a0395d0Smrgelse
49382adc0320Smrg  ac_cv_type_signal=void
49397a0395d0Smrgfi
49407a0395d0Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49417a0395d0Smrgfi
49422adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
49437366012aSmrg$as_echo "$ac_cv_type_signal" >&6; }
49447a0395d0Smrg
49457366012aSmrgcat >>confdefs.h <<_ACEOF
49467366012aSmrg#define RETSIGTYPE $ac_cv_type_signal
49477366012aSmrg_ACEOF
49487a0395d0Smrg
49497a0395d0Smrg
49507a0395d0Smrg
49517a0395d0Smrgfor ac_header in net/errno.h
49522adc0320Smrgdo :
49532adc0320Smrg  ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default"
49542adc0320Smrgif test "x$ac_cv_header_net_errno_h" = xyes; then :
49552adc0320Smrg  cat >>confdefs.h <<_ACEOF
49562adc0320Smrg#define HAVE_NET_ERRNO_H 1
49577a0395d0Smrg_ACEOF
49587a0395d0Smrg
49597a0395d0Smrgfi
49607a0395d0Smrg
49612adc0320Smrgdone
49627a0395d0Smrg
49637a0395d0Smrg
49642adc0320Smrgfor ac_func in strlcpy
49652adc0320Smrgdo :
49662adc0320Smrg  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
49672adc0320Smrgif test "x$ac_cv_func_strlcpy" = xyes; then :
49687a0395d0Smrg  cat >>confdefs.h <<_ACEOF
49692adc0320Smrg#define HAVE_STRLCPY 1
49707a0395d0Smrg_ACEOF
49717a0395d0Smrg
49727a0395d0Smrgfi
49737a0395d0Smrgdone
49747a0395d0Smrg
49757a0395d0Smrg
49767a0395d0Smrg# Checks for pkg-config packages
49777a0395d0Smrg
49787a0395d0Smrgpkg_failed=no
49792adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XAUTH" >&5
49807366012aSmrg$as_echo_n "checking for XAUTH... " >&6; }
49817a0395d0Smrg
49827a0395d0Smrgif test -n "$XAUTH_CFLAGS"; then
49837a0395d0Smrg    pkg_cv_XAUTH_CFLAGS="$XAUTH_CFLAGS"
49847a0395d0Smrg elif test -n "$PKG_CONFIG"; then
49857a0395d0Smrg    if test -n "$PKG_CONFIG" && \
49862adc0320Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5
49877a0395d0Smrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5
49887a0395d0Smrg  ac_status=$?
49892adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49902adc0320Smrg  test $ac_status = 0; }; then
49917a0395d0Smrg  pkg_cv_XAUTH_CFLAGS=`$PKG_CONFIG --cflags "x11 xau xext xmuu" 2>/dev/null`
49927a0395d0Smrgelse
49937a0395d0Smrg  pkg_failed=yes
49947a0395d0Smrgfi
49957a0395d0Smrg else
49967a0395d0Smrg    pkg_failed=untried
49977a0395d0Smrgfi
49987a0395d0Smrgif test -n "$XAUTH_LIBS"; then
49997a0395d0Smrg    pkg_cv_XAUTH_LIBS="$XAUTH_LIBS"
50007a0395d0Smrg elif test -n "$PKG_CONFIG"; then
50017a0395d0Smrg    if test -n "$PKG_CONFIG" && \
50022adc0320Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xau xext xmuu\""; } >&5
50037a0395d0Smrg  ($PKG_CONFIG --exists --print-errors "x11 xau xext xmuu") 2>&5
50047a0395d0Smrg  ac_status=$?
50052adc0320Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50062adc0320Smrg  test $ac_status = 0; }; then
50077a0395d0Smrg  pkg_cv_XAUTH_LIBS=`$PKG_CONFIG --libs "x11 xau xext xmuu" 2>/dev/null`
50087a0395d0Smrgelse
50097a0395d0Smrg  pkg_failed=yes
50107a0395d0Smrgfi
50117a0395d0Smrg else
50127a0395d0Smrg    pkg_failed=untried
50137a0395d0Smrgfi
50147a0395d0Smrg
50157a0395d0Smrg
50167a0395d0Smrg
50177a0395d0Smrgif test $pkg_failed = yes; then
50187a0395d0Smrg
50197a0395d0Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50207a0395d0Smrg        _pkg_short_errors_supported=yes
50217a0395d0Smrgelse
50227a0395d0Smrg        _pkg_short_errors_supported=no
50237a0395d0Smrgfi
50247a0395d0Smrg        if test $_pkg_short_errors_supported = yes; then
50257a0395d0Smrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xau xext xmuu" 2>&1`
50267a0395d0Smrg        else
50277a0395d0Smrg	        XAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xau xext xmuu" 2>&1`
50287a0395d0Smrg        fi
50297a0395d0Smrg	# Put the nasty error message in config.log where it belongs
50307a0395d0Smrg	echo "$XAUTH_PKG_ERRORS" >&5
50317a0395d0Smrg
50322adc0320Smrg	as_fn_error $? "Package requirements (x11 xau xext xmuu) were not met:
50337a0395d0Smrg
50347a0395d0Smrg$XAUTH_PKG_ERRORS
50357a0395d0Smrg
50367a0395d0SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
50377a0395d0Smrginstalled software in a non-standard prefix.
50387a0395d0Smrg
50397a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
50407a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
50417a0395d0SmrgSee the pkg-config man page for more details.
50422adc0320Smrg" "$LINENO" 5
50437a0395d0Smrgelif test $pkg_failed = untried; then
50442adc0320Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50457366012aSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50462adc0320Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
50477a0395d0Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
50487a0395d0Smrgpath to pkg-config.
50497a0395d0Smrg
50507a0395d0SmrgAlternatively, you may set the environment variables XAUTH_CFLAGS
50517a0395d0Smrgand XAUTH_LIBS to avoid the need to call pkg-config.
50527a0395d0SmrgSee the pkg-config man page for more details.
50537a0395d0Smrg
50547a0395d0SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
50552adc0320SmrgSee \`config.log' for more details" "$LINENO" 5; }
50567a0395d0Smrgelse
50577a0395d0Smrg	XAUTH_CFLAGS=$pkg_cv_XAUTH_CFLAGS
50587a0395d0Smrg	XAUTH_LIBS=$pkg_cv_XAUTH_LIBS
50592adc0320Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50607366012aSmrg$as_echo "yes" >&6; }
50617a0395d0Smrg	:
50627a0395d0Smrgfi
50637a0395d0Smrg
50647a0395d0Smrg# Transport selection macro from xtrans.m4
50657a0395d0Smrg# Needed to set *CONN defines for gethost.c & parsedpy.c
50667a0395d0Smrg
50677a0395d0Smrg
50687a0395d0Smrg
50697366012aSmrg case $host_os in
50707366012aSmrg	mingw*)	unixdef="no"   ;;
50717366012aSmrg	*)	unixdef="yes"  ;;
50727366012aSmrg esac
50737a0395d0Smrg # Check whether --enable-unix-transport was given.
50742adc0320Smrgif test "${enable_unix_transport+set}" = set; then :
50757a0395d0Smrg  enableval=$enable_unix_transport; UNIXCONN=$enableval
50767a0395d0Smrgelse
50777366012aSmrg  UNIXCONN=$unixdef
50787a0395d0Smrgfi
50797a0395d0Smrg
50802adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
50817366012aSmrg$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
50827a0395d0Smrg if test "$UNIXCONN" = "yes"; then
50837a0395d0Smrg
50842adc0320Smrg$as_echo "#define UNIXCONN 1" >>confdefs.h
50857a0395d0Smrg
50867a0395d0Smrg fi
50872adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
50887366012aSmrg$as_echo "$UNIXCONN" >&6; }
50897366012aSmrg # Check whether --enable-tcp-transport was given.
50902adc0320Smrgif test "${enable_tcp_transport+set}" = set; then :
50917366012aSmrg  enableval=$enable_tcp_transport; TCPCONN=$enableval
50927366012aSmrgelse
50937366012aSmrg  TCPCONN=yes
50947366012aSmrgfi
50957366012aSmrg
50962adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
50977366012aSmrg$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
50982adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
50997366012aSmrg$as_echo "$TCPCONN" >&6; }
51007a0395d0Smrg if test "$TCPCONN" = "yes"; then
51017a0395d0Smrg
51022adc0320Smrg$as_echo "#define TCPCONN 1" >>confdefs.h
51037a0395d0Smrg
51047a0395d0Smrg
51057a0395d0Smrg # SVR4 hides these in libraries other than libc
51062adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
51077366012aSmrg$as_echo_n "checking for library containing socket... " >&6; }
51082adc0320Smrgif ${ac_cv_search_socket+:} false; then :
51097366012aSmrg  $as_echo_n "(cached) " >&6
51107a0395d0Smrgelse
51117a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
51122adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
51137a0395d0Smrg/* end confdefs.h.  */
51147a0395d0Smrg
51157a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
51167a0395d0Smrg   Use char because int might match the return type of a GCC
51177a0395d0Smrg   builtin and then its argument prototype would still apply.  */
51187a0395d0Smrg#ifdef __cplusplus
51197a0395d0Smrgextern "C"
51207a0395d0Smrg#endif
51217a0395d0Smrgchar socket ();
51227a0395d0Smrgint
51237a0395d0Smrgmain ()
51247a0395d0Smrg{
51257a0395d0Smrgreturn socket ();
51267a0395d0Smrg  ;
51277a0395d0Smrg  return 0;
51287a0395d0Smrg}
51297a0395d0Smrg_ACEOF
51307a0395d0Smrgfor ac_lib in '' socket; do
51317a0395d0Smrg  if test -z "$ac_lib"; then
51327a0395d0Smrg    ac_res="none required"
51337a0395d0Smrg  else
51347a0395d0Smrg    ac_res=-l$ac_lib
51357a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51362adc0320Smrg  fi
51372adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
51382adc0320Smrg  ac_cv_search_socket=$ac_res
51397a0395d0Smrgfi
51402adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
51412adc0320Smrg    conftest$ac_exeext
51422adc0320Smrg  if ${ac_cv_search_socket+:} false; then :
51437a0395d0Smrg  break
51447a0395d0Smrgfi
51457a0395d0Smrgdone
51462adc0320Smrgif ${ac_cv_search_socket+:} false; then :
51472adc0320Smrg
51487a0395d0Smrgelse
51497a0395d0Smrg  ac_cv_search_socket=no
51507a0395d0Smrgfi
51517a0395d0Smrgrm conftest.$ac_ext
51527a0395d0SmrgLIBS=$ac_func_search_save_LIBS
51537a0395d0Smrgfi
51542adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
51557366012aSmrg$as_echo "$ac_cv_search_socket" >&6; }
51567a0395d0Smrgac_res=$ac_cv_search_socket
51572adc0320Smrgif test "$ac_res" != no; then :
51587a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51597a0395d0Smrg
51607a0395d0Smrgfi
51617a0395d0Smrg
51622adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
51637366012aSmrg$as_echo_n "checking for library containing gethostbyname... " >&6; }
51642adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
51657366012aSmrg  $as_echo_n "(cached) " >&6
51667a0395d0Smrgelse
51677a0395d0Smrg  ac_func_search_save_LIBS=$LIBS
51682adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
51697a0395d0Smrg/* end confdefs.h.  */
51707a0395d0Smrg
51717a0395d0Smrg/* Override any GCC internal prototype to avoid an error.
51727a0395d0Smrg   Use char because int might match the return type of a GCC
51737a0395d0Smrg   builtin and then its argument prototype would still apply.  */
51747a0395d0Smrg#ifdef __cplusplus
51757a0395d0Smrgextern "C"
51767a0395d0Smrg#endif
51777a0395d0Smrgchar gethostbyname ();
51787a0395d0Smrgint
51797a0395d0Smrgmain ()
51807a0395d0Smrg{
51817a0395d0Smrgreturn gethostbyname ();
51827a0395d0Smrg  ;
51837a0395d0Smrg  return 0;
51847a0395d0Smrg}
51857a0395d0Smrg_ACEOF
51867a0395d0Smrgfor ac_lib in '' nsl; do
51877a0395d0Smrg  if test -z "$ac_lib"; then
51887a0395d0Smrg    ac_res="none required"
51897a0395d0Smrg  else
51907a0395d0Smrg    ac_res=-l$ac_lib
51917a0395d0Smrg    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51927a0395d0Smrg  fi
51932adc0320Smrg  if ac_fn_c_try_link "$LINENO"; then :
51947a0395d0Smrg  ac_cv_search_gethostbyname=$ac_res
51957a0395d0Smrgfi
51962adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
51972adc0320Smrg    conftest$ac_exeext
51982adc0320Smrg  if ${ac_cv_search_gethostbyname+:} false; then :
51997a0395d0Smrg  break
52007a0395d0Smrgfi
52017a0395d0Smrgdone
52022adc0320Smrgif ${ac_cv_search_gethostbyname+:} false; then :
52032adc0320Smrg
52047a0395d0Smrgelse
52057a0395d0Smrg  ac_cv_search_gethostbyname=no
52067a0395d0Smrgfi
52077a0395d0Smrgrm conftest.$ac_ext
52087a0395d0SmrgLIBS=$ac_func_search_save_LIBS
52097a0395d0Smrgfi
52102adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
52117366012aSmrg$as_echo "$ac_cv_search_gethostbyname" >&6; }
52127a0395d0Smrgac_res=$ac_cv_search_gethostbyname
52132adc0320Smrgif test "$ac_res" != no; then :
52147a0395d0Smrg  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52157a0395d0Smrg
52167a0395d0Smrgfi
52177a0395d0Smrg
52182adc0320Smrg if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
52192adc0320Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
52207366012aSmrg$as_echo_n "checking for main in -lws2_32... " >&6; }
52212adc0320Smrgif ${ac_cv_lib_ws2_32_main+:} false; then :
52227366012aSmrg  $as_echo_n "(cached) " >&6
52237366012aSmrgelse
52247366012aSmrg  ac_check_lib_save_LIBS=$LIBS
52257366012aSmrgLIBS="-lws2_32  $LIBS"
52262adc0320Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
52277366012aSmrg/* end confdefs.h.  */
52287366012aSmrg
52297366012aSmrg
52307366012aSmrgint
52317366012aSmrgmain ()
52327366012aSmrg{
52337366012aSmrgreturn main ();
52347366012aSmrg  ;
52357366012aSmrg  return 0;
52367366012aSmrg}
52377366012aSmrg_ACEOF
52382adc0320Smrgif ac_fn_c_try_link "$LINENO"; then :
52397366012aSmrg  ac_cv_lib_ws2_32_main=yes
52407366012aSmrgelse
52412adc0320Smrg  ac_cv_lib_ws2_32_main=no
52427366012aSmrgfi
52432adc0320Smrgrm -f core conftest.err conftest.$ac_objext \
52442adc0320Smrg    conftest$ac_exeext conftest.$ac_ext
52457366012aSmrgLIBS=$ac_check_lib_save_LIBS
52467366012aSmrgfi
52472adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
52487366012aSmrg$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
52492adc0320Smrgif test "x$ac_cv_lib_ws2_32_main" = xyes; then :
52507366012aSmrg  cat >>confdefs.h <<_ACEOF
52517366012aSmrg#define HAVE_LIBWS2_32 1
52527366012aSmrg_ACEOF
52537366012aSmrg
52547366012aSmrg  LIBS="-lws2_32 $LIBS"
52557366012aSmrg
52567366012aSmrgfi
52577366012aSmrgac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
52587366012aSmrg
52592adc0320Smrg fi
52607366012aSmrg
52617a0395d0Smrg # Needs to come after above checks for libsocket & libnsl for SVR4 systems
52627a0395d0Smrg # Check whether --enable-ipv6 was given.
52632adc0320Smrgif test "${enable_ipv6+set}" = set; then :
52647a0395d0Smrg  enableval=$enable_ipv6; IPV6CONN=$enableval
52657a0395d0Smrgelse
52662adc0320Smrg  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
52672adc0320Smrgif test "x$ac_cv_func_getaddrinfo" = xyes; then :
52687a0395d0Smrg  IPV6CONN=yes
52697a0395d0Smrgelse
52707a0395d0Smrg  IPV6CONN=no
52717a0395d0Smrgfi
52727a0395d0Smrg
52737a0395d0Smrgfi
52747a0395d0Smrg
52752adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
52767366012aSmrg$as_echo_n "checking if IPv6 support should be built... " >&6; }
52777a0395d0Smrg if test "$IPV6CONN" = "yes"; then
52787a0395d0Smrg
52792adc0320Smrg$as_echo "#define IPv6 1" >>confdefs.h
52807a0395d0Smrg
52817a0395d0Smrg fi
52822adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
52837366012aSmrg$as_echo "$IPV6CONN" >&6; }
52847a0395d0Smrg
52857a0395d0Smrg # 4.3BSD-Reno added a new member to struct sockaddr_in
52862adc0320Smrg ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
52877a0395d0Smrg#include <sys/types.h>
52887a0395d0Smrg#include <sys/socket.h>
52897a0395d0Smrg#include <netinet/in.h>
52907a0395d0Smrg
52912adc0320Smrg"
52922adc0320Smrgif test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
52937a0395d0Smrg
52942adc0320Smrg$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
52957366012aSmrg
52962adc0320Smrgfi
52977366012aSmrg
52987366012aSmrg
52992adc0320Smrg # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
53002adc0320Smrg ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
53012adc0320Smrg$ac_includes_default
53022adc0320Smrg#include <sys/socket.h>
53032adc0320Smrg"
53042adc0320Smrgif test "x$ac_cv_type_socklen_t" = xyes; then :
53057366012aSmrg
53062adc0320Smrgcat >>confdefs.h <<_ACEOF
53072adc0320Smrg#define HAVE_SOCKLEN_T 1
53087366012aSmrg_ACEOF
53097366012aSmrg
53107366012aSmrg
53117366012aSmrgfi
53127366012aSmrg
53137366012aSmrg
53147366012aSmrg
53152adc0320Smrg fi
53162adc0320Smrg case $host_os in
53172adc0320Smrg	solaris*|sco*|sysv4*)	localdef="yes" ;;
53182adc0320Smrg	*)			localdef="no"  ;;
53192adc0320Smrg esac
53202adc0320Smrg # Check whether --enable-local-transport was given.
53212adc0320Smrgif test "${enable_local_transport+set}" = set; then :
53222adc0320Smrg  enableval=$enable_local_transport; LOCALCONN=$enableval
53237366012aSmrgelse
53242adc0320Smrg  LOCALCONN=$localdef
53252adc0320Smrgfi
53267366012aSmrg
53272adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
53282adc0320Smrg$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
53292adc0320Smrg { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
53302adc0320Smrg$as_echo "$LOCALCONN" >&6; }
53312adc0320Smrg if test "$LOCALCONN" = "yes"; then
53327a0395d0Smrg
53332adc0320Smrg$as_echo "#define LOCALCONN 1" >>confdefs.h
53347a0395d0Smrg
53352adc0320Smrg fi
53367a0395d0Smrg
53377a0395d0Smrg
53387366012aSmrg
53397366012aSmrg
53407a0395d0Smrg
53417a0395d0Smrg
53427a0395d0Smrg
53437366012aSmrg
53442adc0320Smrg# Check whether --with-lint was given.
53452adc0320Smrgif test "${with_lint+set}" = set; then :
53462adc0320Smrg  withval=$with_lint; use_lint=$withval
53472adc0320Smrgelse
53482adc0320Smrg  use_lint=no
53497a0395d0Smrgfi
53507a0395d0Smrg
53517a0395d0Smrg
53522adc0320Smrg# Obtain platform specific info like program name and options
53532adc0320Smrg# The lint program on FreeBSD and NetBSD is different from the one on Solaris
53542adc0320Smrgcase $host_os in
53552adc0320Smrg  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
53562adc0320Smrg	lint_name=splint
53572adc0320Smrg	lint_options="-badflag"
53582adc0320Smrg	;;
53592adc0320Smrg  *freebsd* | *netbsd*)
53602adc0320Smrg	lint_name=lint
53612adc0320Smrg	lint_options="-u -b"
53622adc0320Smrg	;;
53632adc0320Smrg  *solaris*)
53642adc0320Smrg	lint_name=lint
53652adc0320Smrg	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
53662adc0320Smrg	;;
53672adc0320Smrgesac
53687366012aSmrg
53692adc0320Smrg# Test for the presence of the program (either guessed by the code or spelled out by the user)
53702adc0320Smrgif test "x$use_lint" = x"yes" ; then
53712adc0320Smrg   # Extract the first word of "$lint_name", so it can be a program name with args.
53722adc0320Smrgset dummy $lint_name; ac_word=$2
53732adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53742adc0320Smrg$as_echo_n "checking for $ac_word... " >&6; }
53752adc0320Smrgif ${ac_cv_path_LINT+:} false; then :
53762adc0320Smrg  $as_echo_n "(cached) " >&6
53772adc0320Smrgelse
53782adc0320Smrg  case $LINT in
53792adc0320Smrg  [\\/]* | ?:[\\/]*)
53802adc0320Smrg  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
53812adc0320Smrg  ;;
53822adc0320Smrg  *)
53832adc0320Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53842adc0320Smrgfor as_dir in $PATH
53852adc0320Smrgdo
53862adc0320Smrg  IFS=$as_save_IFS
53872adc0320Smrg  test -z "$as_dir" && as_dir=.
53882adc0320Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
53892adc0320Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53902adc0320Smrg    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
53912adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53922adc0320Smrg    break 2
53932adc0320Smrg  fi
53942adc0320Smrgdone
53952adc0320Smrg  done
53962adc0320SmrgIFS=$as_save_IFS
53972adc0320Smrg
53982adc0320Smrg  ;;
53992adc0320Smrgesac
54002adc0320Smrgfi
54012adc0320SmrgLINT=$ac_cv_path_LINT
54022adc0320Smrgif test -n "$LINT"; then
54032adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
54042adc0320Smrg$as_echo "$LINT" >&6; }
54057a0395d0Smrgelse
54062adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54072adc0320Smrg$as_echo "no" >&6; }
54087a0395d0Smrgfi
54097a0395d0Smrg
54107a0395d0Smrg
54112adc0320Smrg   if test "x$LINT" = "x"; then
54122adc0320Smrg        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
54132adc0320Smrg   fi
54142adc0320Smrgelif test "x$use_lint" = x"no" ; then
54152adc0320Smrg   if test "x$LINT" != "x"; then
54162adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
54172adc0320Smrg$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
54182adc0320Smrg   fi
54197a0395d0Smrgelse
54202adc0320Smrg   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
54217a0395d0Smrgfi
54227a0395d0Smrg
54232adc0320Smrg# User supplied flags override default flags
54242adc0320Smrgif test "x$LINT_FLAGS" != "x"; then
54252adc0320Smrg   lint_options=$LINT_FLAGS
54267a0395d0Smrgfi
54277a0395d0Smrg
54282adc0320SmrgLINT_FLAGS=$lint_options
54297a0395d0Smrg
54302adc0320Smrg if test "x$LINT" != x; then
54317a0395d0Smrg  LINT_TRUE=
54327a0395d0Smrg  LINT_FALSE='#'
54337a0395d0Smrgelse
54347a0395d0Smrg  LINT_TRUE='#'
54357a0395d0Smrg  LINT_FALSE=
54367a0395d0Smrgfi
54377a0395d0Smrg
54387a0395d0Smrg
54397a0395d0Smrg
54407a0395d0Smrg
54417a0395d0Smrgac_config_files="$ac_config_files Makefile"
54427a0395d0Smrg
54437a0395d0Smrgcat >confcache <<\_ACEOF
54447a0395d0Smrg# This file is a shell script that caches the results of configure
54457a0395d0Smrg# tests run on this system so they can be shared between configure
54467a0395d0Smrg# scripts and configure runs, see configure's option --config-cache.
54477a0395d0Smrg# It is not useful on other systems.  If it contains results you don't
54487a0395d0Smrg# want to keep, you may remove or edit it.
54497a0395d0Smrg#
54507a0395d0Smrg# config.status only pays attention to the cache file if you give it
54517a0395d0Smrg# the --recheck option to rerun configure.
54527a0395d0Smrg#
54537a0395d0Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
54547a0395d0Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
54557a0395d0Smrg# following values.
54567a0395d0Smrg
54577a0395d0Smrg_ACEOF
54587a0395d0Smrg
54597a0395d0Smrg# The following way of writing the cache mishandles newlines in values,
54607a0395d0Smrg# but we know of no workaround that is simple, portable, and efficient.
54617a0395d0Smrg# So, we kill variables containing newlines.
54627a0395d0Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
54637a0395d0Smrg# and sets the high bit in the cache file unless we assign to the vars.
54647a0395d0Smrg(
54657a0395d0Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
54667a0395d0Smrg    eval ac_val=\$$ac_var
54677a0395d0Smrg    case $ac_val in #(
54687a0395d0Smrg    *${as_nl}*)
54697a0395d0Smrg      case $ac_var in #(
54702adc0320Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
54717366012aSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
54727a0395d0Smrg      esac
54737a0395d0Smrg      case $ac_var in #(
54747a0395d0Smrg      _ | IFS | as_nl) ;; #(
54757366012aSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
54762adc0320Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
54777a0395d0Smrg      esac ;;
54787a0395d0Smrg    esac
54797a0395d0Smrg  done
54807a0395d0Smrg
54817a0395d0Smrg  (set) 2>&1 |
54827a0395d0Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
54837a0395d0Smrg    *${as_nl}ac_space=\ *)
54842adc0320Smrg      # `set' does not quote correctly, so add quotes: double-quote
54852adc0320Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
54867a0395d0Smrg      sed -n \
54877a0395d0Smrg	"s/'/'\\\\''/g;
54887a0395d0Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
54897a0395d0Smrg      ;; #(
54907a0395d0Smrg    *)
54917a0395d0Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
54927a0395d0Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
54937a0395d0Smrg      ;;
54947a0395d0Smrg    esac |
54957a0395d0Smrg    sort
54967a0395d0Smrg) |
54977a0395d0Smrg  sed '
54987a0395d0Smrg     /^ac_cv_env_/b end
54997a0395d0Smrg     t clear
55007a0395d0Smrg     :clear
55017a0395d0Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55027a0395d0Smrg     t end
55037a0395d0Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55047a0395d0Smrg     :end' >>confcache
55057a0395d0Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55067a0395d0Smrg  if test -w "$cache_file"; then
55072adc0320Smrg    if test "x$cache_file" != "x/dev/null"; then
55082adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55097366012aSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
55102adc0320Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
55112adc0320Smrg	cat confcache >"$cache_file"
55122adc0320Smrg      else
55132adc0320Smrg        case $cache_file in #(
55142adc0320Smrg        */* | ?:*)
55152adc0320Smrg	  mv -f confcache "$cache_file"$$ &&
55162adc0320Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
55172adc0320Smrg        *)
55182adc0320Smrg	  mv -f confcache "$cache_file" ;;
55192adc0320Smrg	esac
55202adc0320Smrg      fi
55212adc0320Smrg    fi
55227a0395d0Smrg  else
55232adc0320Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55247366012aSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55257a0395d0Smrg  fi
55267a0395d0Smrgfi
55277a0395d0Smrgrm -f confcache
55287a0395d0Smrg
55297a0395d0Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
55307a0395d0Smrg# Let make expand exec_prefix.
55317a0395d0Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55327a0395d0Smrg
55337a0395d0SmrgDEFS=-DHAVE_CONFIG_H
55347a0395d0Smrg
55357a0395d0Smrgac_libobjs=
55367a0395d0Smrgac_ltlibobjs=
55372adc0320SmrgU=
55387a0395d0Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55397a0395d0Smrg  # 1. Remove the extension, and $U if already installed.
55407a0395d0Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55417366012aSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
55427a0395d0Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
55437a0395d0Smrg  #    will be set to the directory where LIBOBJS objects are built.
55442adc0320Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55452adc0320Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
55467a0395d0Smrgdone
55477a0395d0SmrgLIBOBJS=$ac_libobjs
55487a0395d0Smrg
55497a0395d0SmrgLTLIBOBJS=$ac_ltlibobjs
55507a0395d0Smrg
55517a0395d0Smrg
55527366012aSmrg if test -n "$EXEEXT"; then
55537366012aSmrg  am__EXEEXT_TRUE=
55547366012aSmrg  am__EXEEXT_FALSE='#'
55557366012aSmrgelse
55567366012aSmrg  am__EXEEXT_TRUE='#'
55577366012aSmrg  am__EXEEXT_FALSE=
55587366012aSmrgfi
55597366012aSmrg
55607a0395d0Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
55612adc0320Smrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
55622adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
55637a0395d0Smrgfi
55647a0395d0Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
55652adc0320Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
55662adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
55677a0395d0Smrgfi
55687a0395d0Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
55692adc0320Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
55702adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
55717a0395d0Smrgfi
55727a0395d0Smrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
55732adc0320Smrg  as_fn_error $? "conditional \"LINT\" was never defined.
55742adc0320SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
55757a0395d0Smrgfi
55767a0395d0Smrg
55772adc0320Smrg: "${CONFIG_STATUS=./config.status}"
55787366012aSmrgac_write_fail=0
55797a0395d0Smrgac_clean_files_save=$ac_clean_files
55807a0395d0Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
55812adc0320Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
55827366012aSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
55832adc0320Smrgas_write_fail=0
55842adc0320Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
55857a0395d0Smrg#! $SHELL
55867a0395d0Smrg# Generated by $as_me.
55877a0395d0Smrg# Run this file to recreate the current configuration.
55887a0395d0Smrg# Compiler output produced by configure, useful for debugging
55897a0395d0Smrg# configure, is in config.log if it exists.
55907a0395d0Smrg
55917a0395d0Smrgdebug=false
55927a0395d0Smrgac_cs_recheck=false
55937a0395d0Smrgac_cs_silent=false
55947a0395d0Smrg
55952adc0320SmrgSHELL=\${CONFIG_SHELL-$SHELL}
55962adc0320Smrgexport SHELL
55972adc0320Smrg_ASEOF
55982adc0320Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
55992adc0320Smrg## -------------------- ##
56002adc0320Smrg## M4sh Initialization. ##
56012adc0320Smrg## -------------------- ##
56027a0395d0Smrg
56037a0395d0Smrg# Be more Bourne compatible
56047a0395d0SmrgDUALCASE=1; export DUALCASE # for MKS sh
56052adc0320Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
56067a0395d0Smrg  emulate sh
56077a0395d0Smrg  NULLCMD=:
56087366012aSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
56097a0395d0Smrg  # is contrary to our usage.  Disable this feature.
56107a0395d0Smrg  alias -g '${1+"$@"}'='"$@"'
56117a0395d0Smrg  setopt NO_GLOB_SUBST
56127a0395d0Smrgelse
56132adc0320Smrg  case `(set -o) 2>/dev/null` in #(
56142adc0320Smrg  *posix*) :
56152adc0320Smrg    set -o posix ;; #(
56162adc0320Smrg  *) :
56172adc0320Smrg     ;;
56187a0395d0Smrgesac
56197a0395d0Smrgfi
56207a0395d0Smrg
56217a0395d0Smrg
56227366012aSmrgas_nl='
56237366012aSmrg'
56247366012aSmrgexport as_nl
56257366012aSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
56267366012aSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56277366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56287366012aSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
56292adc0320Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
56302adc0320Smrg# but without wasting forks for bash or zsh.
56312adc0320Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
56322adc0320Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
56332adc0320Smrg  as_echo='print -r --'
56342adc0320Smrg  as_echo_n='print -rn --'
56352adc0320Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56367366012aSmrg  as_echo='printf %s\n'
56377366012aSmrg  as_echo_n='printf %s'
56387366012aSmrgelse
56397366012aSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56407366012aSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56417366012aSmrg    as_echo_n='/usr/ucb/echo -n'
56427a0395d0Smrg  else
56437366012aSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56447366012aSmrg    as_echo_n_body='eval
56457366012aSmrg      arg=$1;
56462adc0320Smrg      case $arg in #(
56477366012aSmrg      *"$as_nl"*)
56487366012aSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
56497366012aSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
56507366012aSmrg      esac;
56517366012aSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
56527366012aSmrg    '
56537366012aSmrg    export as_echo_n_body
56547366012aSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
56557a0395d0Smrg  fi
56567366012aSmrg  export as_echo_body
56577366012aSmrg  as_echo='sh -c $as_echo_body as_echo'
56587366012aSmrgfi
56597366012aSmrg
56607366012aSmrg# The user is always right.
56617366012aSmrgif test "${PATH_SEPARATOR+set}" != set; then
56627366012aSmrg  PATH_SEPARATOR=:
56637366012aSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
56647366012aSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
56657366012aSmrg      PATH_SEPARATOR=';'
56667366012aSmrg  }
56677a0395d0Smrgfi
56687a0395d0Smrg
56697a0395d0Smrg
56707a0395d0Smrg# IFS
56717a0395d0Smrg# We need space, tab and new line, in precisely that order.  Quoting is
56727a0395d0Smrg# there to prevent editors from complaining about space-tab.
56737a0395d0Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
56747a0395d0Smrg# splitting by setting IFS to empty value.)
56757a0395d0SmrgIFS=" ""	$as_nl"
56767a0395d0Smrg
56777a0395d0Smrg# Find who we are.  Look in the path if we contain no directory separator.
56782adc0320Smrgas_myself=
56792adc0320Smrgcase $0 in #((
56807a0395d0Smrg  *[\\/]* ) as_myself=$0 ;;
56817a0395d0Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56827a0395d0Smrgfor as_dir in $PATH
56837a0395d0Smrgdo
56847a0395d0Smrg  IFS=$as_save_IFS
56857a0395d0Smrg  test -z "$as_dir" && as_dir=.
56862adc0320Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56872adc0320Smrg  done
56887a0395d0SmrgIFS=$as_save_IFS
56897a0395d0Smrg
56907a0395d0Smrg     ;;
56917a0395d0Smrgesac
56927a0395d0Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
56937a0395d0Smrg# in which case we are not to be found in the path.
56947a0395d0Smrgif test "x$as_myself" = x; then
56957a0395d0Smrg  as_myself=$0
56967a0395d0Smrgfi
56977a0395d0Smrgif test ! -f "$as_myself"; then
56987366012aSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56992adc0320Smrg  exit 1
57007a0395d0Smrgfi
57017a0395d0Smrg
57022adc0320Smrg# Unset variables that we do not need and which cause bugs (e.g. in
57032adc0320Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
57042adc0320Smrg# suppresses any "Segmentation fault" message there.  '((' could
57052adc0320Smrg# trigger a bug in pdksh 5.2.14.
57062adc0320Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
57072adc0320Smrgdo eval test x\${$as_var+set} = xset \
57082adc0320Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
57097a0395d0Smrgdone
57107a0395d0SmrgPS1='$ '
57117a0395d0SmrgPS2='> '
57127a0395d0SmrgPS4='+ '
57137a0395d0Smrg
57147a0395d0Smrg# NLS nuisances.
57157366012aSmrgLC_ALL=C
57167366012aSmrgexport LC_ALL
57177366012aSmrgLANGUAGE=C
57187366012aSmrgexport LANGUAGE
57197a0395d0Smrg
57202adc0320Smrg# CDPATH.
57212adc0320Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
57222adc0320Smrg
57232adc0320Smrg
57242adc0320Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
57252adc0320Smrg# ----------------------------------------
57262adc0320Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
57272adc0320Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
57282adc0320Smrg# script with STATUS, using 1 if that was 0.
57292adc0320Smrgas_fn_error ()
57302adc0320Smrg{
57312adc0320Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
57322adc0320Smrg  if test "$4"; then
57332adc0320Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
57342adc0320Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57352adc0320Smrg  fi
57362adc0320Smrg  $as_echo "$as_me: error: $2" >&2
57372adc0320Smrg  as_fn_exit $as_status
57382adc0320Smrg} # as_fn_error
57392adc0320Smrg
57402adc0320Smrg
57412adc0320Smrg# as_fn_set_status STATUS
57422adc0320Smrg# -----------------------
57432adc0320Smrg# Set $? to STATUS, without forking.
57442adc0320Smrgas_fn_set_status ()
57452adc0320Smrg{
57462adc0320Smrg  return $1
57472adc0320Smrg} # as_fn_set_status
57482adc0320Smrg
57492adc0320Smrg# as_fn_exit STATUS
57502adc0320Smrg# -----------------
57512adc0320Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
57522adc0320Smrgas_fn_exit ()
57532adc0320Smrg{
57542adc0320Smrg  set +e
57552adc0320Smrg  as_fn_set_status $1
57562adc0320Smrg  exit $1
57572adc0320Smrg} # as_fn_exit
57582adc0320Smrg
57592adc0320Smrg# as_fn_unset VAR
57602adc0320Smrg# ---------------
57612adc0320Smrg# Portably unset VAR.
57622adc0320Smrgas_fn_unset ()
57632adc0320Smrg{
57642adc0320Smrg  { eval $1=; unset $1;}
57652adc0320Smrg}
57662adc0320Smrgas_unset=as_fn_unset
57672adc0320Smrg# as_fn_append VAR VALUE
57682adc0320Smrg# ----------------------
57692adc0320Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
57702adc0320Smrg# advantage of any shell optimizations that allow amortized linear growth over
57712adc0320Smrg# repeated appends, instead of the typical quadratic growth present in naive
57722adc0320Smrg# implementations.
57732adc0320Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
57742adc0320Smrg  eval 'as_fn_append ()
57752adc0320Smrg  {
57762adc0320Smrg    eval $1+=\$2
57772adc0320Smrg  }'
57782adc0320Smrgelse
57792adc0320Smrg  as_fn_append ()
57802adc0320Smrg  {
57812adc0320Smrg    eval $1=\$$1\$2
57822adc0320Smrg  }
57832adc0320Smrgfi # as_fn_append
57842adc0320Smrg
57852adc0320Smrg# as_fn_arith ARG...
57862adc0320Smrg# ------------------
57872adc0320Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
57882adc0320Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
57892adc0320Smrg# must be portable across $(()) and expr.
57902adc0320Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
57912adc0320Smrg  eval 'as_fn_arith ()
57922adc0320Smrg  {
57932adc0320Smrg    as_val=$(( $* ))
57942adc0320Smrg  }'
57952adc0320Smrgelse
57962adc0320Smrg  as_fn_arith ()
57972adc0320Smrg  {
57982adc0320Smrg    as_val=`expr "$@" || test $? -eq 1`
57992adc0320Smrg  }
58002adc0320Smrgfi # as_fn_arith
58012adc0320Smrg
58022adc0320Smrg
58037a0395d0Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
58047a0395d0Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
58057a0395d0Smrg  as_expr=expr
58067a0395d0Smrgelse
58077a0395d0Smrg  as_expr=false
58087a0395d0Smrgfi
58097a0395d0Smrg
58107a0395d0Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
58117a0395d0Smrg  as_basename=basename
58127a0395d0Smrgelse
58137a0395d0Smrg  as_basename=false
58147a0395d0Smrgfi
58157a0395d0Smrg
58162adc0320Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
58172adc0320Smrg  as_dirname=dirname
58182adc0320Smrgelse
58192adc0320Smrg  as_dirname=false
58202adc0320Smrgfi
58217a0395d0Smrg
58227a0395d0Smrgas_me=`$as_basename -- "$0" ||
58237a0395d0Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
58247a0395d0Smrg	 X"$0" : 'X\(//\)$' \| \
58257a0395d0Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
58267366012aSmrg$as_echo X/"$0" |
58277a0395d0Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
58287a0395d0Smrg	    s//\1/
58297a0395d0Smrg	    q
58307a0395d0Smrg	  }
58317a0395d0Smrg	  /^X\/\(\/\/\)$/{
58327a0395d0Smrg	    s//\1/
58337a0395d0Smrg	    q
58347a0395d0Smrg	  }
58357a0395d0Smrg	  /^X\/\(\/\).*/{
58367a0395d0Smrg	    s//\1/
58377a0395d0Smrg	    q
58387a0395d0Smrg	  }
58397a0395d0Smrg	  s/.*/./; q'`
58407a0395d0Smrg
58412adc0320Smrg# Avoid depending upon Character Ranges.
58422adc0320Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
58432adc0320Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
58442adc0320Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
58452adc0320Smrgas_cr_digits='0123456789'
58462adc0320Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
58477a0395d0Smrg
58487a0395d0SmrgECHO_C= ECHO_N= ECHO_T=
58492adc0320Smrgcase `echo -n x` in #(((((
58507a0395d0Smrg-n*)
58512adc0320Smrg  case `echo 'xy\c'` in
58527a0395d0Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
58532adc0320Smrg  xy)  ECHO_C='\c';;
58542adc0320Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
58552adc0320Smrg       ECHO_T='	';;
58567a0395d0Smrg  esac;;
58577a0395d0Smrg*)
58587a0395d0Smrg  ECHO_N='-n';;
58597a0395d0Smrgesac
58607a0395d0Smrg
58617a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.file
58627a0395d0Smrgif test -d conf$$.dir; then
58637a0395d0Smrg  rm -f conf$$.dir/conf$$.file
58647a0395d0Smrgelse
58657a0395d0Smrg  rm -f conf$$.dir
58667366012aSmrg  mkdir conf$$.dir 2>/dev/null
58677366012aSmrgfi
58687366012aSmrgif (echo >conf$$.file) 2>/dev/null; then
58697366012aSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
58707366012aSmrg    as_ln_s='ln -s'
58717366012aSmrg    # ... but there are two gotchas:
58727366012aSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
58737366012aSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
58747366012aSmrg    # In both cases, we have to default to `cp -p'.
58757366012aSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
58767366012aSmrg      as_ln_s='cp -p'
58777366012aSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
58787366012aSmrg    as_ln_s=ln
58797366012aSmrg  else
58807a0395d0Smrg    as_ln_s='cp -p'
58817366012aSmrg  fi
58827a0395d0Smrgelse
58837a0395d0Smrg  as_ln_s='cp -p'
58847a0395d0Smrgfi
58857a0395d0Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
58867a0395d0Smrgrmdir conf$$.dir 2>/dev/null
58877a0395d0Smrg
58882adc0320Smrg
58892adc0320Smrg# as_fn_mkdir_p
58902adc0320Smrg# -------------
58912adc0320Smrg# Create "$as_dir" as a directory, including parents if necessary.
58922adc0320Smrgas_fn_mkdir_p ()
58932adc0320Smrg{
58942adc0320Smrg
58952adc0320Smrg  case $as_dir in #(
58962adc0320Smrg  -*) as_dir=./$as_dir;;
58972adc0320Smrg  esac
58982adc0320Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
58992adc0320Smrg    as_dirs=
59002adc0320Smrg    while :; do
59012adc0320Smrg      case $as_dir in #(
59022adc0320Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
59032adc0320Smrg      *) as_qdir=$as_dir;;
59042adc0320Smrg      esac
59052adc0320Smrg      as_dirs="'$as_qdir' $as_dirs"
59062adc0320Smrg      as_dir=`$as_dirname -- "$as_dir" ||
59072adc0320Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59082adc0320Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
59092adc0320Smrg	 X"$as_dir" : 'X\(//\)$' \| \
59102adc0320Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
59112adc0320Smrg$as_echo X"$as_dir" |
59122adc0320Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59132adc0320Smrg	    s//\1/
59142adc0320Smrg	    q
59152adc0320Smrg	  }
59162adc0320Smrg	  /^X\(\/\/\)[^/].*/{
59172adc0320Smrg	    s//\1/
59182adc0320Smrg	    q
59192adc0320Smrg	  }
59202adc0320Smrg	  /^X\(\/\/\)$/{
59212adc0320Smrg	    s//\1/
59222adc0320Smrg	    q
59232adc0320Smrg	  }
59242adc0320Smrg	  /^X\(\/\).*/{
59252adc0320Smrg	    s//\1/
59262adc0320Smrg	    q
59272adc0320Smrg	  }
59282adc0320Smrg	  s/.*/./; q'`
59292adc0320Smrg      test -d "$as_dir" && break
59302adc0320Smrg    done
59312adc0320Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
59322adc0320Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
59332adc0320Smrg
59342adc0320Smrg
59352adc0320Smrg} # as_fn_mkdir_p
59367a0395d0Smrgif mkdir -p . 2>/dev/null; then
59372adc0320Smrg  as_mkdir_p='mkdir -p "$as_dir"'
59387a0395d0Smrgelse
59397a0395d0Smrg  test -d ./-p && rmdir ./-p
59407a0395d0Smrg  as_mkdir_p=false
59417a0395d0Smrgfi
59427a0395d0Smrg
59437a0395d0Smrgif test -x / >/dev/null 2>&1; then
59447a0395d0Smrg  as_test_x='test -x'
59457a0395d0Smrgelse
59467a0395d0Smrg  if ls -dL / >/dev/null 2>&1; then
59477a0395d0Smrg    as_ls_L_option=L
59487a0395d0Smrg  else
59497a0395d0Smrg    as_ls_L_option=
59507a0395d0Smrg  fi
59517a0395d0Smrg  as_test_x='
59527a0395d0Smrg    eval sh -c '\''
59537a0395d0Smrg      if test -d "$1"; then
59547366012aSmrg	test -d "$1/.";
59557a0395d0Smrg      else
59562adc0320Smrg	case $1 in #(
59577366012aSmrg	-*)set "./$1";;
59587a0395d0Smrg	esac;
59592adc0320Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
59607a0395d0Smrg	???[sx]*):;;*)false;;esac;fi
59617a0395d0Smrg    '\'' sh
59627a0395d0Smrg  '
59637a0395d0Smrgfi
59647a0395d0Smrgas_executable_p=$as_test_x
59657a0395d0Smrg
59667a0395d0Smrg# Sed expression to map a string onto a valid CPP name.
59677a0395d0Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
59687a0395d0Smrg
59697a0395d0Smrg# Sed expression to map a string onto a valid variable name.
59707a0395d0Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59717a0395d0Smrg
59727a0395d0Smrg
59737a0395d0Smrgexec 6>&1
59742adc0320Smrg## ----------------------------------- ##
59752adc0320Smrg## Main body of $CONFIG_STATUS script. ##
59762adc0320Smrg## ----------------------------------- ##
59772adc0320Smrg_ASEOF
59782adc0320Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
59797a0395d0Smrg
59802adc0320Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59812adc0320Smrg# Save the log message, to keep $0 and so on meaningful, and to
59827a0395d0Smrg# report actual input values of CONFIG_FILES etc. instead of their
59837a0395d0Smrg# values after options handling.
59847a0395d0Smrgac_log="
59852adc0320SmrgThis file was extended by xauth $as_me 1.0.5, which was
59862adc0320Smrggenerated by GNU Autoconf 2.68.  Invocation command line was
59877a0395d0Smrg
59887a0395d0Smrg  CONFIG_FILES    = $CONFIG_FILES
59897a0395d0Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
59907a0395d0Smrg  CONFIG_LINKS    = $CONFIG_LINKS
59917a0395d0Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
59927a0395d0Smrg  $ $0 $@
59937a0395d0Smrg
59947a0395d0Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
59957a0395d0Smrg"
59967a0395d0Smrg
59977a0395d0Smrg_ACEOF
59987a0395d0Smrg
59997366012aSmrgcase $ac_config_files in *"
60007366012aSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
60017366012aSmrgesac
60027366012aSmrg
60037366012aSmrgcase $ac_config_headers in *"
60047366012aSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
60057366012aSmrgesac
60067366012aSmrg
60077366012aSmrg
60087366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60097a0395d0Smrg# Files that config.status was made for.
60107a0395d0Smrgconfig_files="$ac_config_files"
60117a0395d0Smrgconfig_headers="$ac_config_headers"
60127a0395d0Smrgconfig_commands="$ac_config_commands"
60137a0395d0Smrg
60147a0395d0Smrg_ACEOF
60157a0395d0Smrg
60167366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60177a0395d0Smrgac_cs_usage="\
60182adc0320Smrg\`$as_me' instantiates files and other configuration actions
60192adc0320Smrgfrom templates according to the current configuration.  Unless the files
60202adc0320Smrgand actions are specified as TAGs, all are instantiated by default.
60217a0395d0Smrg
60222adc0320SmrgUsage: $0 [OPTION]... [TAG]...
60237a0395d0Smrg
60247a0395d0Smrg  -h, --help       print this help, then exit
60257a0395d0Smrg  -V, --version    print version number and configuration settings, then exit
60262adc0320Smrg      --config     print configuration, then exit
60277366012aSmrg  -q, --quiet, --silent
60287366012aSmrg                   do not print progress messages
60297a0395d0Smrg  -d, --debug      don't remove temporary files
60307a0395d0Smrg      --recheck    update $as_me by reconfiguring in the same conditions
60317366012aSmrg      --file=FILE[:TEMPLATE]
60327366012aSmrg                   instantiate the configuration file FILE
60337366012aSmrg      --header=FILE[:TEMPLATE]
60347366012aSmrg                   instantiate the configuration header FILE
60357a0395d0Smrg
60367a0395d0SmrgConfiguration files:
60377a0395d0Smrg$config_files
60387a0395d0Smrg
60397a0395d0SmrgConfiguration headers:
60407a0395d0Smrg$config_headers
60417a0395d0Smrg
60427a0395d0SmrgConfiguration commands:
60437a0395d0Smrg$config_commands
60447a0395d0Smrg
60452adc0320SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
60467a0395d0Smrg
60477a0395d0Smrg_ACEOF
60487366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
60492adc0320Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
60507a0395d0Smrgac_cs_version="\\
60512adc0320Smrgxauth config.status 1.0.5
60522adc0320Smrgconfigured by $0, generated by GNU Autoconf 2.68,
60532adc0320Smrg  with options \\"\$ac_cs_config\\"
60547a0395d0Smrg
60552adc0320SmrgCopyright (C) 2010 Free Software Foundation, Inc.
60567a0395d0SmrgThis config.status script is free software; the Free Software Foundation
60577a0395d0Smrggives unlimited permission to copy, distribute and modify it."
60587a0395d0Smrg
60597a0395d0Smrgac_pwd='$ac_pwd'
60607a0395d0Smrgsrcdir='$srcdir'
60617a0395d0SmrgINSTALL='$INSTALL'
60627a0395d0SmrgMKDIR_P='$MKDIR_P'
60637366012aSmrgAWK='$AWK'
60647366012aSmrgtest -n "\$AWK" || AWK=awk
60657a0395d0Smrg_ACEOF
60667a0395d0Smrg
60677366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
60687366012aSmrg# The default lists apply if the user does not specify any file.
60697a0395d0Smrgac_need_defaults=:
60707a0395d0Smrgwhile test $# != 0
60717a0395d0Smrgdo
60727a0395d0Smrg  case $1 in
60732adc0320Smrg  --*=?*)
60747a0395d0Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
60757a0395d0Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
60767a0395d0Smrg    ac_shift=:
60777a0395d0Smrg    ;;
60782adc0320Smrg  --*=)
60792adc0320Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
60802adc0320Smrg    ac_optarg=
60812adc0320Smrg    ac_shift=:
60822adc0320Smrg    ;;
60837a0395d0Smrg  *)
60847a0395d0Smrg    ac_option=$1
60857a0395d0Smrg    ac_optarg=$2
60867a0395d0Smrg    ac_shift=shift
60877a0395d0Smrg    ;;
60887a0395d0Smrg  esac
60897a0395d0Smrg
60907a0395d0Smrg  case $ac_option in
60917a0395d0Smrg  # Handling of the options.
60927a0395d0Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
60937a0395d0Smrg    ac_cs_recheck=: ;;
60947a0395d0Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
60957366012aSmrg    $as_echo "$ac_cs_version"; exit ;;
60962adc0320Smrg  --config | --confi | --conf | --con | --co | --c )
60972adc0320Smrg    $as_echo "$ac_cs_config"; exit ;;
60987a0395d0Smrg  --debug | --debu | --deb | --de | --d | -d )
60997a0395d0Smrg    debug=: ;;
61007a0395d0Smrg  --file | --fil | --fi | --f )
61017a0395d0Smrg    $ac_shift
61027366012aSmrg    case $ac_optarg in
61037366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61042adc0320Smrg    '') as_fn_error $? "missing file argument" ;;
61057366012aSmrg    esac
61062adc0320Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
61077a0395d0Smrg    ac_need_defaults=false;;
61087a0395d0Smrg  --header | --heade | --head | --hea )
61097a0395d0Smrg    $ac_shift
61107366012aSmrg    case $ac_optarg in
61117366012aSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
61127366012aSmrg    esac
61132adc0320Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
61147a0395d0Smrg    ac_need_defaults=false;;
61157a0395d0Smrg  --he | --h)
61167a0395d0Smrg    # Conflict between --help and --header
61172adc0320Smrg    as_fn_error $? "ambiguous option: \`$1'
61182adc0320SmrgTry \`$0 --help' for more information.";;
61197a0395d0Smrg  --help | --hel | -h )
61207366012aSmrg    $as_echo "$ac_cs_usage"; exit ;;
61217a0395d0Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
61227a0395d0Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
61237a0395d0Smrg    ac_cs_silent=: ;;
61247a0395d0Smrg
61257a0395d0Smrg  # This is an error.
61262adc0320Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
61272adc0320SmrgTry \`$0 --help' for more information." ;;
61287a0395d0Smrg
61292adc0320Smrg  *) as_fn_append ac_config_targets " $1"
61307a0395d0Smrg     ac_need_defaults=false ;;
61317a0395d0Smrg
61327a0395d0Smrg  esac
61337a0395d0Smrg  shift
61347a0395d0Smrgdone
61357a0395d0Smrg
61367a0395d0Smrgac_configure_extra_args=
61377a0395d0Smrg
61387a0395d0Smrgif $ac_cs_silent; then
61397a0395d0Smrg  exec 6>/dev/null
61407a0395d0Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
61417a0395d0Smrgfi
61427a0395d0Smrg
61437a0395d0Smrg_ACEOF
61447366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61457a0395d0Smrgif \$ac_cs_recheck; then
61467366012aSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
61477366012aSmrg  shift
61487366012aSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
61497366012aSmrg  CONFIG_SHELL='$SHELL'
61507a0395d0Smrg  export CONFIG_SHELL
61517366012aSmrg  exec "\$@"
61527a0395d0Smrgfi
61537a0395d0Smrg
61547a0395d0Smrg_ACEOF
61557366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61567a0395d0Smrgexec 5>>config.log
61577a0395d0Smrg{
61587a0395d0Smrg  echo
61597a0395d0Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
61607a0395d0Smrg## Running $as_me. ##
61617a0395d0Smrg_ASBOX
61627366012aSmrg  $as_echo "$ac_log"
61637a0395d0Smrg} >&5
61647a0395d0Smrg
61657a0395d0Smrg_ACEOF
61667366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61677a0395d0Smrg#
61687a0395d0Smrg# INIT-COMMANDS
61697a0395d0Smrg#
61707a0395d0SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
61717a0395d0Smrg
61727a0395d0Smrg_ACEOF
61737a0395d0Smrg
61747366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61757a0395d0Smrg
61767a0395d0Smrg# Handling of arguments.
61777a0395d0Smrgfor ac_config_target in $ac_config_targets
61787a0395d0Smrgdo
61797a0395d0Smrg  case $ac_config_target in
61807a0395d0Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
61817a0395d0Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
61827a0395d0Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
61837a0395d0Smrg
61842adc0320Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
61857a0395d0Smrg  esac
61867a0395d0Smrgdone
61877a0395d0Smrg
61887a0395d0Smrg
61897a0395d0Smrg# If the user did not use the arguments to specify the items to instantiate,
61907a0395d0Smrg# then the envvar interface is used.  Set only those that are not.
61917a0395d0Smrg# We use the long form for the default assignment because of an extremely
61927a0395d0Smrg# bizarre bug on SunOS 4.1.3.
61937a0395d0Smrgif $ac_need_defaults; then
61947a0395d0Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
61957a0395d0Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
61967a0395d0Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
61977a0395d0Smrgfi
61987a0395d0Smrg
61997a0395d0Smrg# Have a temporary directory for convenience.  Make it in the build tree
62007a0395d0Smrg# simply because there is no reason against having it here, and in addition,
62017a0395d0Smrg# creating and moving files from /tmp can sometimes cause problems.
62027a0395d0Smrg# Hook for its removal unless debugging.
62037a0395d0Smrg# Note that there is a small window in which the directory will not be cleaned:
62047a0395d0Smrg# after its creation but before its name has been assigned to `$tmp'.
62057a0395d0Smrg$debug ||
62067a0395d0Smrg{
62072adc0320Smrg  tmp= ac_tmp=
62087a0395d0Smrg  trap 'exit_status=$?
62092adc0320Smrg  : "${ac_tmp:=$tmp}"
62102adc0320Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
62117a0395d0Smrg' 0
62122adc0320Smrg  trap 'as_fn_exit 1' 1 2 13 15
62137a0395d0Smrg}
62147a0395d0Smrg# Create a (secure) tmp directory for tmp files.
62157a0395d0Smrg
62167a0395d0Smrg{
62177a0395d0Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
62182adc0320Smrg  test -d "$tmp"
62197a0395d0Smrg}  ||
62207a0395d0Smrg{
62217a0395d0Smrg  tmp=./conf$$-$RANDOM
62227a0395d0Smrg  (umask 077 && mkdir "$tmp")
62232adc0320Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
62242adc0320Smrgac_tmp=$tmp
62257a0395d0Smrg
62267366012aSmrg# Set up the scripts for CONFIG_FILES section.
62277366012aSmrg# No need to generate them if there are no CONFIG_FILES.
62287366012aSmrg# This happens for instance with `./config.status config.h'.
62297a0395d0Smrgif test -n "$CONFIG_FILES"; then
62307a0395d0Smrg
62317a0395d0Smrg
62322adc0320Smrgac_cr=`echo X | tr X '\015'`
62332adc0320Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
62342adc0320Smrg# But we know of no other shell where ac_cr would be empty at this
62352adc0320Smrg# point, so we can use a bashism as a fallback.
62362adc0320Smrgif test "x$ac_cr" = x; then
62372adc0320Smrg  eval ac_cr=\$\'\\r\'
62382adc0320Smrgfi
62397366012aSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
62407366012aSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
62417366012aSmrg  ac_cs_awk_cr='\\r'
62427366012aSmrgelse
62437366012aSmrg  ac_cs_awk_cr=$ac_cr
62447a0395d0Smrgfi
62457a0395d0Smrg
62462adc0320Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
62477a0395d0Smrg_ACEOF
62487a0395d0Smrg
62497a0395d0Smrg
62507366012aSmrg{
62517366012aSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
62527366012aSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
62537366012aSmrg  echo "_ACEOF"
62547366012aSmrg} >conf$$subs.sh ||
62552adc0320Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
62562adc0320Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
62577a0395d0Smrgac_delim='%!_!# '
62587a0395d0Smrgfor ac_last_try in false false false false false :; do
62597366012aSmrg  . ./conf$$subs.sh ||
62602adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
62617a0395d0Smrg
62627366012aSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
62637366012aSmrg  if test $ac_delim_n = $ac_delim_num; then
62647a0395d0Smrg    break
62657a0395d0Smrg  elif $ac_last_try; then
62662adc0320Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
62677a0395d0Smrg  else
62687a0395d0Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62697a0395d0Smrg  fi
62707a0395d0Smrgdone
62717366012aSmrgrm -f conf$$subs.sh
62727a0395d0Smrg
62737366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
62742adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
62757366012aSmrg_ACEOF
62767366012aSmrgsed -n '
62777366012aSmrgh
62787366012aSmrgs/^/S["/; s/!.*/"]=/
62797366012aSmrgp
62807366012aSmrgg
62817366012aSmrgs/^[^!]*!//
62827366012aSmrg:repl
62837366012aSmrgt repl
62847366012aSmrgs/'"$ac_delim"'$//
62857366012aSmrgt delim
62867366012aSmrg:nl
62877366012aSmrgh
62882adc0320Smrgs/\(.\{148\}\)..*/\1/
62897366012aSmrgt more1
62907366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
62917366012aSmrgp
62927366012aSmrgn
62937366012aSmrgb repl
62947366012aSmrg:more1
62957366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
62967366012aSmrgp
62977366012aSmrgg
62987366012aSmrgs/.\{148\}//
62997366012aSmrgt nl
63007366012aSmrg:delim
63017366012aSmrgh
63022adc0320Smrgs/\(.\{148\}\)..*/\1/
63037366012aSmrgt more2
63047366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
63057366012aSmrgp
63067366012aSmrgb
63077366012aSmrg:more2
63087366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
63097366012aSmrgp
63107366012aSmrgg
63117366012aSmrgs/.\{148\}//
63127366012aSmrgt delim
63137366012aSmrg' <conf$$subs.awk | sed '
63147366012aSmrg/^[^""]/{
63157366012aSmrg  N
63167366012aSmrg  s/\n//
63177366012aSmrg}
63187366012aSmrg' >>$CONFIG_STATUS || ac_write_fail=1
63197366012aSmrgrm -f conf$$subs.awk
63207366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63217366012aSmrg_ACAWK
63222adc0320Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
63237366012aSmrg  for (key in S) S_is_set[key] = 1
63247366012aSmrg  FS = ""
63257366012aSmrg
63267366012aSmrg}
63277366012aSmrg{
63287366012aSmrg  line = $ 0
63297366012aSmrg  nfields = split(line, field, "@")
63307366012aSmrg  substed = 0
63317366012aSmrg  len = length(field[1])
63327366012aSmrg  for (i = 2; i < nfields; i++) {
63337366012aSmrg    key = field[i]
63347366012aSmrg    keylen = length(key)
63357366012aSmrg    if (S_is_set[key]) {
63367366012aSmrg      value = S[key]
63377366012aSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
63387366012aSmrg      len += length(value) + length(field[++i])
63397366012aSmrg      substed = 1
63407366012aSmrg    } else
63417366012aSmrg      len += 1 + keylen
63427366012aSmrg  }
63437366012aSmrg
63447366012aSmrg  print line
63457366012aSmrg}
63467a0395d0Smrg
63477366012aSmrg_ACAWK
63487a0395d0Smrg_ACEOF
63497366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63507366012aSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
63517366012aSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
63527366012aSmrgelse
63537366012aSmrg  cat
63542adc0320Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
63552adc0320Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
63567a0395d0Smrg_ACEOF
63577a0395d0Smrg
63582adc0320Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
63592adc0320Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
63607a0395d0Smrg# trailing colons and then remove the whole line if VPATH becomes empty
63617a0395d0Smrg# (actually we leave an empty line to preserve line numbers).
63627a0395d0Smrgif test "x$srcdir" = x.; then
63632adc0320Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
63642adc0320Smrgh
63652adc0320Smrgs///
63662adc0320Smrgs/^/:/
63672adc0320Smrgs/[	 ]*$/:/
63682adc0320Smrgs/:\$(srcdir):/:/g
63692adc0320Smrgs/:\${srcdir}:/:/g
63702adc0320Smrgs/:@srcdir@:/:/g
63712adc0320Smrgs/^:*//
63727a0395d0Smrgs/:*$//
63732adc0320Smrgx
63742adc0320Smrgs/\(=[	 ]*\).*/\1/
63752adc0320SmrgG
63762adc0320Smrgs/\n//
63777a0395d0Smrgs/^[^=]*=[	 ]*$//
63787a0395d0Smrg}'
63797a0395d0Smrgfi
63807a0395d0Smrg
63817366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63827a0395d0Smrgfi # test -n "$CONFIG_FILES"
63837a0395d0Smrg
63847366012aSmrg# Set up the scripts for CONFIG_HEADERS section.
63857366012aSmrg# No need to generate them if there are no CONFIG_HEADERS.
63867366012aSmrg# This happens for instance with `./config.status Makefile'.
63877366012aSmrgif test -n "$CONFIG_HEADERS"; then
63882adc0320Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
63897366012aSmrgBEGIN {
63907366012aSmrg_ACEOF
63917366012aSmrg
63927366012aSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
63937366012aSmrg# here-document in config.status, that substitutes the proper values into
63947366012aSmrg# config.h.in to produce config.h.
63957366012aSmrg
63967366012aSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
63977366012aSmrg# handling of long lines.
63987366012aSmrgac_delim='%!_!# '
63997366012aSmrgfor ac_last_try in false false :; do
64002adc0320Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
64012adc0320Smrg  if test -z "$ac_tt"; then
64027366012aSmrg    break
64037366012aSmrg  elif $ac_last_try; then
64042adc0320Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
64057366012aSmrg  else
64067366012aSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
64077366012aSmrg  fi
64087366012aSmrgdone
64097366012aSmrg
64107366012aSmrg# For the awk script, D is an array of macro values keyed by name,
64117366012aSmrg# likewise P contains macro parameters if any.  Preserve backslash
64127366012aSmrg# newline sequences.
64137366012aSmrg
64147366012aSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
64157366012aSmrgsed -n '
64167366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
64177366012aSmrgt rset
64187366012aSmrg:rset
64197366012aSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
64207366012aSmrgt def
64217366012aSmrgd
64227366012aSmrg:def
64237366012aSmrgs/\\$//
64247366012aSmrgt bsnl
64257366012aSmrgs/["\\]/\\&/g
64267366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
64277366012aSmrgD["\1"]=" \3"/p
64287366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
64297366012aSmrgd
64307366012aSmrg:bsnl
64317366012aSmrgs/["\\]/\\&/g
64327366012aSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
64337366012aSmrgD["\1"]=" \3\\\\\\n"\\/p
64347366012aSmrgt cont
64357366012aSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
64367366012aSmrgt cont
64377366012aSmrgd
64387366012aSmrg:cont
64397366012aSmrgn
64407366012aSmrgs/.\{148\}/&'"$ac_delim"'/g
64417366012aSmrgt clear
64427366012aSmrg:clear
64437366012aSmrgs/\\$//
64447366012aSmrgt bsnlc
64457366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
64467366012aSmrgd
64477366012aSmrg:bsnlc
64487366012aSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
64497366012aSmrgb cont
64507366012aSmrg' <confdefs.h | sed '
64517366012aSmrgs/'"$ac_delim"'/"\\\
64527366012aSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
64537366012aSmrg
64547366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
64557366012aSmrg  for (key in D) D_is_set[key] = 1
64567366012aSmrg  FS = ""
64577366012aSmrg}
64587366012aSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
64597366012aSmrg  line = \$ 0
64607366012aSmrg  split(line, arg, " ")
64617366012aSmrg  if (arg[1] == "#") {
64627366012aSmrg    defundef = arg[2]
64637366012aSmrg    mac1 = arg[3]
64647366012aSmrg  } else {
64657366012aSmrg    defundef = substr(arg[1], 2)
64667366012aSmrg    mac1 = arg[2]
64677366012aSmrg  }
64687366012aSmrg  split(mac1, mac2, "(") #)
64697366012aSmrg  macro = mac2[1]
64707366012aSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
64717366012aSmrg  if (D_is_set[macro]) {
64727366012aSmrg    # Preserve the white space surrounding the "#".
64737366012aSmrg    print prefix "define", macro P[macro] D[macro]
64747366012aSmrg    next
64757366012aSmrg  } else {
64767366012aSmrg    # Replace #undef with comments.  This is necessary, for example,
64777366012aSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
64787366012aSmrg    # on some systems where configure will not decide to define it.
64797366012aSmrg    if (defundef == "undef") {
64807366012aSmrg      print "/*", prefix defundef, macro, "*/"
64817366012aSmrg      next
64827366012aSmrg    }
64837366012aSmrg  }
64847366012aSmrg}
64857366012aSmrg{ print }
64867366012aSmrg_ACAWK
64877366012aSmrg_ACEOF
64887366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64892adc0320Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
64907366012aSmrgfi # test -n "$CONFIG_HEADERS"
64917366012aSmrg
64927a0395d0Smrg
64937366012aSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
64947366012aSmrgshift
64957366012aSmrgfor ac_tag
64967a0395d0Smrgdo
64977a0395d0Smrg  case $ac_tag in
64987a0395d0Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
64997a0395d0Smrg  esac
65007a0395d0Smrg  case $ac_mode$ac_tag in
65017a0395d0Smrg  :[FHL]*:*);;
65022adc0320Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
65037a0395d0Smrg  :[FH]-) ac_tag=-:-;;
65047a0395d0Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
65057a0395d0Smrg  esac
65067a0395d0Smrg  ac_save_IFS=$IFS
65077a0395d0Smrg  IFS=:
65087a0395d0Smrg  set x $ac_tag
65097a0395d0Smrg  IFS=$ac_save_IFS
65107a0395d0Smrg  shift
65117a0395d0Smrg  ac_file=$1
65127a0395d0Smrg  shift
65137a0395d0Smrg
65147a0395d0Smrg  case $ac_mode in
65157a0395d0Smrg  :L) ac_source=$1;;
65167a0395d0Smrg  :[FH])
65177a0395d0Smrg    ac_file_inputs=
65187a0395d0Smrg    for ac_f
65197a0395d0Smrg    do
65207a0395d0Smrg      case $ac_f in
65212adc0320Smrg      -) ac_f="$ac_tmp/stdin";;
65227a0395d0Smrg      *) # Look for the file first in the build tree, then in the source tree
65237a0395d0Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
65247a0395d0Smrg	 # because $ac_f cannot contain `:'.
65257a0395d0Smrg	 test -f "$ac_f" ||
65267a0395d0Smrg	   case $ac_f in
65277a0395d0Smrg	   [\\/$]*) false;;
65287a0395d0Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
65297a0395d0Smrg	   esac ||
65302adc0320Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
65317a0395d0Smrg      esac
65327366012aSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
65332adc0320Smrg      as_fn_append ac_file_inputs " '$ac_f'"
65347a0395d0Smrg    done
65357a0395d0Smrg
65367a0395d0Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
65377a0395d0Smrg    # use $as_me), people would be surprised to read:
65387a0395d0Smrg    #    /* config.h.  Generated by config.status.  */
65397366012aSmrg    configure_input='Generated from '`
65407366012aSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
65417366012aSmrg	`' by configure.'
65427a0395d0Smrg    if test x"$ac_file" != x-; then
65437a0395d0Smrg      configure_input="$ac_file.  $configure_input"
65442adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
65457366012aSmrg$as_echo "$as_me: creating $ac_file" >&6;}
65467a0395d0Smrg    fi
65477366012aSmrg    # Neutralize special characters interpreted by sed in replacement strings.
65487366012aSmrg    case $configure_input in #(
65497366012aSmrg    *\&* | *\|* | *\\* )
65507366012aSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
65517366012aSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
65527366012aSmrg    *) ac_sed_conf_input=$configure_input;;
65537366012aSmrg    esac
65547a0395d0Smrg
65557a0395d0Smrg    case $ac_tag in
65562adc0320Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
65572adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
65587a0395d0Smrg    esac
65597a0395d0Smrg    ;;
65607a0395d0Smrg  esac
65617a0395d0Smrg
65627a0395d0Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
65637a0395d0Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65647a0395d0Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
65657a0395d0Smrg	 X"$ac_file" : 'X\(//\)$' \| \
65667a0395d0Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
65677366012aSmrg$as_echo X"$ac_file" |
65687a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65697a0395d0Smrg	    s//\1/
65707a0395d0Smrg	    q
65717a0395d0Smrg	  }
65727a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
65737a0395d0Smrg	    s//\1/
65747a0395d0Smrg	    q
65757a0395d0Smrg	  }
65767a0395d0Smrg	  /^X\(\/\/\)$/{
65777a0395d0Smrg	    s//\1/
65787a0395d0Smrg	    q
65797a0395d0Smrg	  }
65807a0395d0Smrg	  /^X\(\/\).*/{
65817a0395d0Smrg	    s//\1/
65827a0395d0Smrg	    q
65837a0395d0Smrg	  }
65847a0395d0Smrg	  s/.*/./; q'`
65852adc0320Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
65867a0395d0Smrg  ac_builddir=.
65877a0395d0Smrg
65887a0395d0Smrgcase "$ac_dir" in
65897a0395d0Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
65907a0395d0Smrg*)
65917366012aSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
65927a0395d0Smrg  # A ".." for each directory in $ac_dir_suffix.
65937366012aSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
65947a0395d0Smrg  case $ac_top_builddir_sub in
65957a0395d0Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
65967a0395d0Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
65977a0395d0Smrg  esac ;;
65987a0395d0Smrgesac
65997a0395d0Smrgac_abs_top_builddir=$ac_pwd
66007a0395d0Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
66017a0395d0Smrg# for backward compatibility:
66027a0395d0Smrgac_top_builddir=$ac_top_build_prefix
66037a0395d0Smrg
66047a0395d0Smrgcase $srcdir in
66057a0395d0Smrg  .)  # We are building in place.
66067a0395d0Smrg    ac_srcdir=.
66077a0395d0Smrg    ac_top_srcdir=$ac_top_builddir_sub
66087a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd ;;
66097a0395d0Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
66107a0395d0Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
66117a0395d0Smrg    ac_top_srcdir=$srcdir
66127a0395d0Smrg    ac_abs_top_srcdir=$srcdir ;;
66137a0395d0Smrg  *) # Relative name.
66147a0395d0Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
66157a0395d0Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
66167a0395d0Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
66177a0395d0Smrgesac
66187a0395d0Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
66197a0395d0Smrg
66207a0395d0Smrg
66217a0395d0Smrg  case $ac_mode in
66227a0395d0Smrg  :F)
66237a0395d0Smrg  #
66247a0395d0Smrg  # CONFIG_FILE
66257a0395d0Smrg  #
66267a0395d0Smrg
66277a0395d0Smrg  case $INSTALL in
66287a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
66297a0395d0Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
66307a0395d0Smrg  esac
66317a0395d0Smrg  ac_MKDIR_P=$MKDIR_P
66327a0395d0Smrg  case $MKDIR_P in
66337a0395d0Smrg  [\\/$]* | ?:[\\/]* ) ;;
66347a0395d0Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
66357a0395d0Smrg  esac
66367a0395d0Smrg_ACEOF
66377a0395d0Smrg
66387366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
66397a0395d0Smrg# If the template does not know about datarootdir, expand it.
66407a0395d0Smrg# FIXME: This hack should be removed a few years after 2.60.
66417a0395d0Smrgac_datarootdir_hack=; ac_datarootdir_seen=
66427366012aSmrgac_sed_dataroot='
66437366012aSmrg/datarootdir/ {
66447a0395d0Smrg  p
66457a0395d0Smrg  q
66467a0395d0Smrg}
66477a0395d0Smrg/@datadir@/p
66487a0395d0Smrg/@docdir@/p
66497a0395d0Smrg/@infodir@/p
66507a0395d0Smrg/@localedir@/p
66512adc0320Smrg/@mandir@/p'
66527366012aSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
66537a0395d0Smrg*datarootdir*) ac_datarootdir_seen=yes;;
66547a0395d0Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
66552adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
66567366012aSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
66577a0395d0Smrg_ACEOF
66587366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
66597a0395d0Smrg  ac_datarootdir_hack='
66607a0395d0Smrg  s&@datadir@&$datadir&g
66617a0395d0Smrg  s&@docdir@&$docdir&g
66627a0395d0Smrg  s&@infodir@&$infodir&g
66637a0395d0Smrg  s&@localedir@&$localedir&g
66647a0395d0Smrg  s&@mandir@&$mandir&g
66652adc0320Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
66667a0395d0Smrgesac
66677a0395d0Smrg_ACEOF
66687a0395d0Smrg
66697a0395d0Smrg# Neutralize VPATH when `$srcdir' = `.'.
66707a0395d0Smrg# Shell code in configure.ac might set extrasub.
66717a0395d0Smrg# FIXME: do we really want to maintain this feature?
66727366012aSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
66737366012aSmrgac_sed_extra="$ac_vpsub
66747a0395d0Smrg$extrasub
66757a0395d0Smrg_ACEOF
66767366012aSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
66777a0395d0Smrg:t
66787a0395d0Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
66797366012aSmrgs|@configure_input@|$ac_sed_conf_input|;t t
66807a0395d0Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
66817366012aSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
66827a0395d0Smrgs&@srcdir@&$ac_srcdir&;t t
66837a0395d0Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
66847a0395d0Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
66857a0395d0Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
66867a0395d0Smrgs&@builddir@&$ac_builddir&;t t
66877a0395d0Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
66887a0395d0Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
66897a0395d0Smrgs&@INSTALL@&$ac_INSTALL&;t t
66907a0395d0Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
66917a0395d0Smrg$ac_datarootdir_hack
66927366012aSmrg"
66932adc0320Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
66942adc0320Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
66957a0395d0Smrg
66967a0395d0Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
66972adc0320Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
66982adc0320Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
66992adc0320Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
67002adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67012adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
67027366012aSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
67032adc0320Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
67047a0395d0Smrg
67052adc0320Smrg  rm -f "$ac_tmp/stdin"
67067a0395d0Smrg  case $ac_file in
67072adc0320Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
67082adc0320Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
67097366012aSmrg  esac \
67102adc0320Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
67117a0395d0Smrg ;;
67127a0395d0Smrg  :H)
67137a0395d0Smrg  #
67147a0395d0Smrg  # CONFIG_HEADER
67157a0395d0Smrg  #
67167a0395d0Smrg  if test x"$ac_file" != x-; then
67177366012aSmrg    {
67187366012aSmrg      $as_echo "/* $configure_input  */" \
67192adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
67202adc0320Smrg    } >"$ac_tmp/config.h" \
67212adc0320Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
67222adc0320Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
67232adc0320Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
67247366012aSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
67257a0395d0Smrg    else
67267366012aSmrg      rm -f "$ac_file"
67272adc0320Smrg      mv "$ac_tmp/config.h" "$ac_file" \
67282adc0320Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
67297a0395d0Smrg    fi
67307a0395d0Smrg  else
67317366012aSmrg    $as_echo "/* $configure_input  */" \
67322adc0320Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
67332adc0320Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
67347a0395d0Smrg  fi
67357366012aSmrg# Compute "$ac_file"'s index in $config_headers.
67367366012aSmrg_am_arg="$ac_file"
67377a0395d0Smrg_am_stamp_count=1
67387a0395d0Smrgfor _am_header in $config_headers :; do
67397a0395d0Smrg  case $_am_header in
67407a0395d0Smrg    $_am_arg | $_am_arg:* )
67417a0395d0Smrg      break ;;
67427a0395d0Smrg    * )
67437a0395d0Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
67447a0395d0Smrg  esac
67457a0395d0Smrgdone
67467a0395d0Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
67477a0395d0Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67487a0395d0Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
67497a0395d0Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
67507a0395d0Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
67517366012aSmrg$as_echo X"$_am_arg" |
67527a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67537a0395d0Smrg	    s//\1/
67547a0395d0Smrg	    q
67557a0395d0Smrg	  }
67567a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
67577a0395d0Smrg	    s//\1/
67587a0395d0Smrg	    q
67597a0395d0Smrg	  }
67607a0395d0Smrg	  /^X\(\/\/\)$/{
67617a0395d0Smrg	    s//\1/
67627a0395d0Smrg	    q
67637a0395d0Smrg	  }
67647a0395d0Smrg	  /^X\(\/\).*/{
67657a0395d0Smrg	    s//\1/
67667a0395d0Smrg	    q
67677a0395d0Smrg	  }
67687a0395d0Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
67697a0395d0Smrg ;;
67707a0395d0Smrg
67712adc0320Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
67727366012aSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
67737a0395d0Smrg ;;
67747a0395d0Smrg  esac
67757a0395d0Smrg
67767a0395d0Smrg
67777a0395d0Smrg  case $ac_file$ac_mode in
67787366012aSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
67797366012aSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
67807366012aSmrg  # are listed without --file.  Let's play safe and only enable the eval
67817366012aSmrg  # if we detect the quoting.
67827366012aSmrg  case $CONFIG_FILES in
67837366012aSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
67847366012aSmrg  *)   set x $CONFIG_FILES ;;
67857366012aSmrg  esac
67867366012aSmrg  shift
67877366012aSmrg  for mf
67887366012aSmrg  do
67897366012aSmrg    # Strip MF so we end up with the name of the file.
67907366012aSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
67917366012aSmrg    # Check whether this is an Automake generated Makefile or not.
67927366012aSmrg    # We used to match only the files named `Makefile.in', but
67937366012aSmrg    # some people rename them; so instead we look at the file content.
67947366012aSmrg    # Grep'ing the first line is not enough: some people post-process
67957366012aSmrg    # each Makefile.in and add a new line on top of each file to say so.
67967366012aSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
67977366012aSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
67987366012aSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
67997366012aSmrg      dirpart=`$as_dirname -- "$mf" ||
68007a0395d0Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68017a0395d0Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
68027a0395d0Smrg	 X"$mf" : 'X\(//\)$' \| \
68037a0395d0Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
68047366012aSmrg$as_echo X"$mf" |
68057a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68067a0395d0Smrg	    s//\1/
68077a0395d0Smrg	    q
68087a0395d0Smrg	  }
68097a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
68107a0395d0Smrg	    s//\1/
68117a0395d0Smrg	    q
68127a0395d0Smrg	  }
68137a0395d0Smrg	  /^X\(\/\/\)$/{
68147a0395d0Smrg	    s//\1/
68157a0395d0Smrg	    q
68167a0395d0Smrg	  }
68177a0395d0Smrg	  /^X\(\/\).*/{
68187a0395d0Smrg	    s//\1/
68197a0395d0Smrg	    q
68207a0395d0Smrg	  }
68217a0395d0Smrg	  s/.*/./; q'`
68227366012aSmrg    else
68237366012aSmrg      continue
68247366012aSmrg    fi
68257366012aSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
68267366012aSmrg    # from the Makefile without running `make'.
68277366012aSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
68287366012aSmrg    test -z "$DEPDIR" && continue
68297366012aSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
68307366012aSmrg    test -z "am__include" && continue
68317366012aSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
68327366012aSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
68337366012aSmrg    U=`sed -n 's/^U = //p' < "$mf"`
68347366012aSmrg    # Find all dependency output files, they are included files with
68357366012aSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
68367366012aSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
68377366012aSmrg    # expansion.
68387366012aSmrg    for file in `sed -n "
68397366012aSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
68407366012aSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
68417366012aSmrg      # Make sure the directory exists.
68427366012aSmrg      test -f "$dirpart/$file" && continue
68437366012aSmrg      fdir=`$as_dirname -- "$file" ||
68447a0395d0Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
68457a0395d0Smrg	 X"$file" : 'X\(//\)[^/]' \| \
68467a0395d0Smrg	 X"$file" : 'X\(//\)$' \| \
68477a0395d0Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
68487366012aSmrg$as_echo X"$file" |
68497a0395d0Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
68507a0395d0Smrg	    s//\1/
68517a0395d0Smrg	    q
68527a0395d0Smrg	  }
68537a0395d0Smrg	  /^X\(\/\/\)[^/].*/{
68547a0395d0Smrg	    s//\1/
68557a0395d0Smrg	    q
68567a0395d0Smrg	  }
68577a0395d0Smrg	  /^X\(\/\/\)$/{
68587a0395d0Smrg	    s//\1/
68597a0395d0Smrg	    q
68607a0395d0Smrg	  }
68617a0395d0Smrg	  /^X\(\/\).*/{
68627a0395d0Smrg	    s//\1/
68637a0395d0Smrg	    q
68647a0395d0Smrg	  }
68657a0395d0Smrg	  s/.*/./; q'`
68662adc0320Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
68677366012aSmrg      # echo "creating $dirpart/$file"
68687366012aSmrg      echo '# dummy' > "$dirpart/$file"
68697366012aSmrg    done
68707a0395d0Smrg  done
68717366012aSmrg}
68727a0395d0Smrg ;;
68737a0395d0Smrg
68747a0395d0Smrg  esac
68757a0395d0Smrgdone # for ac_tag
68767a0395d0Smrg
68777a0395d0Smrg
68782adc0320Smrgas_fn_exit 0
68797a0395d0Smrg_ACEOF
68807a0395d0Smrgac_clean_files=$ac_clean_files_save
68817a0395d0Smrg
68827366012aSmrgtest $ac_write_fail = 0 ||
68832adc0320Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
68847366012aSmrg
68857a0395d0Smrg
68867a0395d0Smrg# configure is writing to config.log, and then calls config.status.
68877a0395d0Smrg# config.status does its own redirection, appending to config.log.
68887a0395d0Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
68897a0395d0Smrg# by configure, so config.status won't be able to write to it; its
68907a0395d0Smrg# output is simply discarded.  So we exec the FD to /dev/null,
68917a0395d0Smrg# effectively closing config.log, so it can be properly (re)opened and
68927a0395d0Smrg# appended to by config.status.  When coming back to configure, we
68937a0395d0Smrg# need to make the FD available again.
68947a0395d0Smrgif test "$no_create" != yes; then
68957a0395d0Smrg  ac_cs_success=:
68967a0395d0Smrg  ac_config_status_args=
68977a0395d0Smrg  test "$silent" = yes &&
68987a0395d0Smrg    ac_config_status_args="$ac_config_status_args --quiet"
68997a0395d0Smrg  exec 5>/dev/null
69007a0395d0Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
69017a0395d0Smrg  exec 5>>config.log
69027a0395d0Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
69037a0395d0Smrg  # would make configure fail if this is the last instruction.
69042adc0320Smrg  $ac_cs_success || as_fn_exit 1
69057a0395d0Smrgfi
69067366012aSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
69072adc0320Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
69087366012aSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
69097366012aSmrgfi
69107a0395d0Smrg
6911