configure revision 2ab73d9f
1a0195d5fSmrg#! /bin/sh
2a0195d5fSmrg# Guess values for system-dependent variables and create Makefiles.
32ab73d9fSmrg# Generated by GNU Autoconf 2.68 for xset 1.2.1.
4a0195d5fSmrg#
5a0195d5fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6a0195d5fSmrg#
76f5dd5c2Smrg#
8a0195d5fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
92ab73d9fSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
102ab73d9fSmrg# Foundation, Inc.
116f5dd5c2Smrg#
126f5dd5c2Smrg#
13a0195d5fSmrg# This configure script is free software; the Free Software Foundation
14a0195d5fSmrg# gives unlimited permission to copy, distribute and modify it.
156f5dd5c2Smrg## -------------------- ##
166f5dd5c2Smrg## M4sh Initialization. ##
176f5dd5c2Smrg## -------------------- ##
18a0195d5fSmrg
19a0195d5fSmrg# Be more Bourne compatible
20a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
216f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22a0195d5fSmrg  emulate sh
23a0195d5fSmrg  NULLCMD=:
246600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
26a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
27a0195d5fSmrg  setopt NO_GLOB_SUBST
28a0195d5fSmrgelse
296f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
306f5dd5c2Smrg  *posix*) :
316f5dd5c2Smrg    set -o posix ;; #(
326f5dd5c2Smrg  *) :
336f5dd5c2Smrg     ;;
34a0195d5fSmrgesac
35a0195d5fSmrgfi
36a0195d5fSmrg
37a0195d5fSmrg
386600fe5bSmrgas_nl='
396600fe5bSmrg'
406600fe5bSmrgexport as_nl
416600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
426600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
436600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
446600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
456f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
466f5dd5c2Smrg# but without wasting forks for bash or zsh.
476f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
486f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
496f5dd5c2Smrg  as_echo='print -r --'
506f5dd5c2Smrg  as_echo_n='print -rn --'
516f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
526600fe5bSmrg  as_echo='printf %s\n'
536600fe5bSmrg  as_echo_n='printf %s'
546600fe5bSmrgelse
556600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
566600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
576600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
58a0195d5fSmrg  else
596600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
606600fe5bSmrg    as_echo_n_body='eval
616600fe5bSmrg      arg=$1;
626f5dd5c2Smrg      case $arg in #(
636600fe5bSmrg      *"$as_nl"*)
646600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
656600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
666600fe5bSmrg      esac;
676600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
686600fe5bSmrg    '
696600fe5bSmrg    export as_echo_n_body
706600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
71a0195d5fSmrg  fi
726600fe5bSmrg  export as_echo_body
736600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
746600fe5bSmrgfi
756600fe5bSmrg
766600fe5bSmrg# The user is always right.
776600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
786600fe5bSmrg  PATH_SEPARATOR=:
796600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
806600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
816600fe5bSmrg      PATH_SEPARATOR=';'
826600fe5bSmrg  }
83a0195d5fSmrgfi
84a0195d5fSmrg
85a0195d5fSmrg
86a0195d5fSmrg# IFS
87a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
88a0195d5fSmrg# there to prevent editors from complaining about space-tab.
89a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90a0195d5fSmrg# splitting by setting IFS to empty value.)
91a0195d5fSmrgIFS=" ""	$as_nl"
92a0195d5fSmrg
93a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
942ab73d9fSmrgas_myself=
956f5dd5c2Smrgcase $0 in #((
96a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
97a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98a0195d5fSmrgfor as_dir in $PATH
99a0195d5fSmrgdo
100a0195d5fSmrg  IFS=$as_save_IFS
101a0195d5fSmrg  test -z "$as_dir" && as_dir=.
1026f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1036f5dd5c2Smrg  done
104a0195d5fSmrgIFS=$as_save_IFS
105a0195d5fSmrg
106a0195d5fSmrg     ;;
107a0195d5fSmrgesac
108a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
109a0195d5fSmrg# in which case we are not to be found in the path.
110a0195d5fSmrgif test "x$as_myself" = x; then
111a0195d5fSmrg  as_myself=$0
112a0195d5fSmrgfi
113a0195d5fSmrgif test ! -f "$as_myself"; then
1146600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1156f5dd5c2Smrg  exit 1
116a0195d5fSmrgfi
117a0195d5fSmrg
1186f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1196f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1206f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
1216f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
1226f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1236f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
1246f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125a0195d5fSmrgdone
126a0195d5fSmrgPS1='$ '
127a0195d5fSmrgPS2='> '
128a0195d5fSmrgPS4='+ '
129a0195d5fSmrg
130a0195d5fSmrg# NLS nuisances.
1316600fe5bSmrgLC_ALL=C
1326600fe5bSmrgexport LC_ALL
1336600fe5bSmrgLANGUAGE=C
1346600fe5bSmrgexport LANGUAGE
135a0195d5fSmrg
1366f5dd5c2Smrg# CDPATH.
1376f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1386f5dd5c2Smrg
1396f5dd5c2Smrgif test "x$CONFIG_SHELL" = x; then
1406f5dd5c2Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
1416f5dd5c2Smrg  emulate sh
1426f5dd5c2Smrg  NULLCMD=:
1436f5dd5c2Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
1446f5dd5c2Smrg  # is contrary to our usage.  Disable this feature.
1456f5dd5c2Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
1466f5dd5c2Smrg  setopt NO_GLOB_SUBST
1476f5dd5c2Smrgelse
1486f5dd5c2Smrg  case \`(set -o) 2>/dev/null\` in #(
1496f5dd5c2Smrg  *posix*) :
1506f5dd5c2Smrg    set -o posix ;; #(
1516f5dd5c2Smrg  *) :
1526f5dd5c2Smrg     ;;
1536f5dd5c2Smrgesac
1546f5dd5c2Smrgfi
1556f5dd5c2Smrg"
1566f5dd5c2Smrg  as_required="as_fn_return () { (exit \$1); }
1576f5dd5c2Smrgas_fn_success () { as_fn_return 0; }
1586f5dd5c2Smrgas_fn_failure () { as_fn_return 1; }
1596f5dd5c2Smrgas_fn_ret_success () { return 0; }
1606f5dd5c2Smrgas_fn_ret_failure () { return 1; }
1616f5dd5c2Smrg
1626f5dd5c2Smrgexitcode=0
1636f5dd5c2Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
1646f5dd5c2Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
1656f5dd5c2Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
1666f5dd5c2Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1676f5dd5c2Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
1686f5dd5c2Smrg
1696f5dd5c2Smrgelse
1706f5dd5c2Smrg  exitcode=1; echo positional parameters were not saved.
1716f5dd5c2Smrgfi
1726f5dd5c2Smrgtest x\$exitcode = x0 || exit 1"
1736f5dd5c2Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
1746f5dd5c2Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
1756f5dd5c2Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1766f5dd5c2Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
1776f5dd5c2Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
1786f5dd5c2Smrg  if (eval "$as_required") 2>/dev/null; then :
1796f5dd5c2Smrg  as_have_required=yes
1806f5dd5c2Smrgelse
1816f5dd5c2Smrg  as_have_required=no
1826f5dd5c2Smrgfi
1836f5dd5c2Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1846f5dd5c2Smrg
1856f5dd5c2Smrgelse
1866f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876f5dd5c2Smrgas_found=false
1886f5dd5c2Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1896f5dd5c2Smrgdo
1906f5dd5c2Smrg  IFS=$as_save_IFS
1916f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
1926f5dd5c2Smrg  as_found=:
1936f5dd5c2Smrg  case $as_dir in #(
1946f5dd5c2Smrg	 /*)
1956f5dd5c2Smrg	   for as_base in sh bash ksh sh5; do
1966f5dd5c2Smrg	     # Try only shells that exist, to save several forks.
1976f5dd5c2Smrg	     as_shell=$as_dir/$as_base
1986f5dd5c2Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1996f5dd5c2Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
2006f5dd5c2Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
2016f5dd5c2Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
2026f5dd5c2Smrg  break 2
2036f5dd5c2Smrgfi
2046f5dd5c2Smrgfi
2056f5dd5c2Smrg	   done;;
2066f5dd5c2Smrg       esac
2076f5dd5c2Smrg  as_found=false
2086f5dd5c2Smrgdone
2096f5dd5c2Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
2106f5dd5c2Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
2116f5dd5c2Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
2126f5dd5c2Smrgfi; }
2136f5dd5c2SmrgIFS=$as_save_IFS
2146f5dd5c2Smrg
2156f5dd5c2Smrg
2166f5dd5c2Smrg      if test "x$CONFIG_SHELL" != x; then :
2176f5dd5c2Smrg  # We cannot yet assume a decent shell, so we have to provide a
2186f5dd5c2Smrg	# neutralization value for shells without unset; and this also
2196f5dd5c2Smrg	# works around shells that cannot unset nonexistent variables.
2202ab73d9fSmrg	# Preserve -v and -x to the replacement shell.
2216f5dd5c2Smrg	BASH_ENV=/dev/null
2226f5dd5c2Smrg	ENV=/dev/null
2236f5dd5c2Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2246f5dd5c2Smrg	export CONFIG_SHELL
2252ab73d9fSmrg	case $- in # ((((
2262ab73d9fSmrg	  *v*x* | *x*v* ) as_opts=-vx ;;
2272ab73d9fSmrg	  *v* ) as_opts=-v ;;
2282ab73d9fSmrg	  *x* ) as_opts=-x ;;
2292ab73d9fSmrg	  * ) as_opts= ;;
2302ab73d9fSmrg	esac
2312ab73d9fSmrg	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
2326f5dd5c2Smrgfi
2336f5dd5c2Smrg
2346f5dd5c2Smrg    if test x$as_have_required = xno; then :
2356f5dd5c2Smrg  $as_echo "$0: This script requires a shell more modern than all"
2366f5dd5c2Smrg  $as_echo "$0: the shells that I found on your system."
2376f5dd5c2Smrg  if test x${ZSH_VERSION+set} = xset ; then
2386f5dd5c2Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
2396f5dd5c2Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
2406f5dd5c2Smrg  else
2416f5dd5c2Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
2426f5dd5c2Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
2436f5dd5c2Smrg$0: about your system, including any error possibly output
2446f5dd5c2Smrg$0: before this message. Then install a modern shell, or
2456f5dd5c2Smrg$0: manually run the script under such a shell if you do
2466f5dd5c2Smrg$0: have one."
2476f5dd5c2Smrg  fi
2486f5dd5c2Smrg  exit 1
2496f5dd5c2Smrgfi
2506f5dd5c2Smrgfi
2516f5dd5c2Smrgfi
2526f5dd5c2SmrgSHELL=${CONFIG_SHELL-/bin/sh}
2536f5dd5c2Smrgexport SHELL
2546f5dd5c2Smrg# Unset more variables known to interfere with behavior of common tools.
2556f5dd5c2SmrgCLICOLOR_FORCE= GREP_OPTIONS=
2566f5dd5c2Smrgunset CLICOLOR_FORCE GREP_OPTIONS
2576f5dd5c2Smrg
2586f5dd5c2Smrg## --------------------- ##
2596f5dd5c2Smrg## M4sh Shell Functions. ##
2606f5dd5c2Smrg## --------------------- ##
2616f5dd5c2Smrg# as_fn_unset VAR
2626f5dd5c2Smrg# ---------------
2636f5dd5c2Smrg# Portably unset VAR.
2646f5dd5c2Smrgas_fn_unset ()
2656f5dd5c2Smrg{
2666f5dd5c2Smrg  { eval $1=; unset $1;}
2676f5dd5c2Smrg}
2686f5dd5c2Smrgas_unset=as_fn_unset
2696f5dd5c2Smrg
2706f5dd5c2Smrg# as_fn_set_status STATUS
2716f5dd5c2Smrg# -----------------------
2726f5dd5c2Smrg# Set $? to STATUS, without forking.
2736f5dd5c2Smrgas_fn_set_status ()
2746f5dd5c2Smrg{
2756f5dd5c2Smrg  return $1
2766f5dd5c2Smrg} # as_fn_set_status
2776f5dd5c2Smrg
2786f5dd5c2Smrg# as_fn_exit STATUS
2796f5dd5c2Smrg# -----------------
2806f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2816f5dd5c2Smrgas_fn_exit ()
2826f5dd5c2Smrg{
2836f5dd5c2Smrg  set +e
2846f5dd5c2Smrg  as_fn_set_status $1
2856f5dd5c2Smrg  exit $1
2866f5dd5c2Smrg} # as_fn_exit
2876f5dd5c2Smrg
2886f5dd5c2Smrg# as_fn_mkdir_p
2896f5dd5c2Smrg# -------------
2906f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
2916f5dd5c2Smrgas_fn_mkdir_p ()
2926f5dd5c2Smrg{
2936f5dd5c2Smrg
2946f5dd5c2Smrg  case $as_dir in #(
2956f5dd5c2Smrg  -*) as_dir=./$as_dir;;
2966f5dd5c2Smrg  esac
2976f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
2986f5dd5c2Smrg    as_dirs=
2996f5dd5c2Smrg    while :; do
3006f5dd5c2Smrg      case $as_dir in #(
3016f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3026f5dd5c2Smrg      *) as_qdir=$as_dir;;
3036f5dd5c2Smrg      esac
3046f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
3056f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
3066f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3076f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
3086f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
3096f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3106f5dd5c2Smrg$as_echo X"$as_dir" |
3116f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3126f5dd5c2Smrg	    s//\1/
3136f5dd5c2Smrg	    q
3146f5dd5c2Smrg	  }
3156f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
3166f5dd5c2Smrg	    s//\1/
3176f5dd5c2Smrg	    q
3186f5dd5c2Smrg	  }
3196f5dd5c2Smrg	  /^X\(\/\/\)$/{
3206f5dd5c2Smrg	    s//\1/
3216f5dd5c2Smrg	    q
3226f5dd5c2Smrg	  }
3236f5dd5c2Smrg	  /^X\(\/\).*/{
3246f5dd5c2Smrg	    s//\1/
3256f5dd5c2Smrg	    q
3266f5dd5c2Smrg	  }
3276f5dd5c2Smrg	  s/.*/./; q'`
3286f5dd5c2Smrg      test -d "$as_dir" && break
3296f5dd5c2Smrg    done
3306f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
3312ab73d9fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3326f5dd5c2Smrg
3336f5dd5c2Smrg
3346f5dd5c2Smrg} # as_fn_mkdir_p
3356f5dd5c2Smrg# as_fn_append VAR VALUE
3366f5dd5c2Smrg# ----------------------
3376f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
3386f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
3396f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
3406f5dd5c2Smrg# implementations.
3416f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3426f5dd5c2Smrg  eval 'as_fn_append ()
3436f5dd5c2Smrg  {
3446f5dd5c2Smrg    eval $1+=\$2
3456f5dd5c2Smrg  }'
3466f5dd5c2Smrgelse
3476f5dd5c2Smrg  as_fn_append ()
3486f5dd5c2Smrg  {
3496f5dd5c2Smrg    eval $1=\$$1\$2
3506f5dd5c2Smrg  }
3516f5dd5c2Smrgfi # as_fn_append
3526f5dd5c2Smrg
3536f5dd5c2Smrg# as_fn_arith ARG...
3546f5dd5c2Smrg# ------------------
3556f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
3566f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
3576f5dd5c2Smrg# must be portable across $(()) and expr.
3586f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3596f5dd5c2Smrg  eval 'as_fn_arith ()
3606f5dd5c2Smrg  {
3616f5dd5c2Smrg    as_val=$(( $* ))
3626f5dd5c2Smrg  }'
3636f5dd5c2Smrgelse
3646f5dd5c2Smrg  as_fn_arith ()
3656f5dd5c2Smrg  {
3666f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
3676f5dd5c2Smrg  }
3686f5dd5c2Smrgfi # as_fn_arith
3696f5dd5c2Smrg
3706f5dd5c2Smrg
3712ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
3722ab73d9fSmrg# ----------------------------------------
3736f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3746f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3752ab73d9fSmrg# script with STATUS, using 1 if that was 0.
3766f5dd5c2Smrgas_fn_error ()
3776f5dd5c2Smrg{
3782ab73d9fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
3792ab73d9fSmrg  if test "$4"; then
3802ab73d9fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3812ab73d9fSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3826f5dd5c2Smrg  fi
3832ab73d9fSmrg  $as_echo "$as_me: error: $2" >&2
3846f5dd5c2Smrg  as_fn_exit $as_status
3856f5dd5c2Smrg} # as_fn_error
3866f5dd5c2Smrg
387a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
388a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389a0195d5fSmrg  as_expr=expr
390a0195d5fSmrgelse
391a0195d5fSmrg  as_expr=false
392a0195d5fSmrgfi
393a0195d5fSmrg
394a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395a0195d5fSmrg  as_basename=basename
396a0195d5fSmrgelse
397a0195d5fSmrg  as_basename=false
398a0195d5fSmrgfi
399a0195d5fSmrg
4006f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4016f5dd5c2Smrg  as_dirname=dirname
4026f5dd5c2Smrgelse
4036f5dd5c2Smrg  as_dirname=false
4046f5dd5c2Smrgfi
405a0195d5fSmrg
406a0195d5fSmrgas_me=`$as_basename -- "$0" ||
407a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
409a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4106600fe5bSmrg$as_echo X/"$0" |
411a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
412a0195d5fSmrg	    s//\1/
413a0195d5fSmrg	    q
414a0195d5fSmrg	  }
415a0195d5fSmrg	  /^X\/\(\/\/\)$/{
416a0195d5fSmrg	    s//\1/
417a0195d5fSmrg	    q
418a0195d5fSmrg	  }
419a0195d5fSmrg	  /^X\/\(\/\).*/{
420a0195d5fSmrg	    s//\1/
421a0195d5fSmrg	    q
422a0195d5fSmrg	  }
423a0195d5fSmrg	  s/.*/./; q'`
424a0195d5fSmrg
4256f5dd5c2Smrg# Avoid depending upon Character Ranges.
4266f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4276f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4286f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4296f5dd5c2Smrgas_cr_digits='0123456789'
4306f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
431a0195d5fSmrg
432a0195d5fSmrg
4336f5dd5c2Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
4346f5dd5c2Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
4356f5dd5c2Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4366f5dd5c2Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4376f5dd5c2Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
4386f5dd5c2Smrg  sed -n '
4396f5dd5c2Smrg    p
4406f5dd5c2Smrg    /[$]LINENO/=
4416f5dd5c2Smrg  ' <$as_myself |
4426f5dd5c2Smrg    sed '
4436f5dd5c2Smrg      s/[$]LINENO.*/&-/
4446f5dd5c2Smrg      t lineno
4456f5dd5c2Smrg      b
4466f5dd5c2Smrg      :lineno
4476f5dd5c2Smrg      N
4486f5dd5c2Smrg      :loop
4496f5dd5c2Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4506f5dd5c2Smrg      t loop
4516f5dd5c2Smrg      s/-\n.*//
4526f5dd5c2Smrg    ' >$as_me.lineno &&
4536f5dd5c2Smrg  chmod +x "$as_me.lineno" ||
4546f5dd5c2Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455a0195d5fSmrg
4566f5dd5c2Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
4576f5dd5c2Smrg  # (the dirname of $[0] is not the place where we might find the
4586f5dd5c2Smrg  # original and so on.  Autoconf is especially sensitive to this).
4596f5dd5c2Smrg  . "./$as_me.lineno"
4606f5dd5c2Smrg  # Exit status is that of the last command.
4616f5dd5c2Smrg  exit
462a0195d5fSmrg}
463a0195d5fSmrg
4646f5dd5c2SmrgECHO_C= ECHO_N= ECHO_T=
4656f5dd5c2Smrgcase `echo -n x` in #(((((
4666f5dd5c2Smrg-n*)
4676f5dd5c2Smrg  case `echo 'xy\c'` in
4686f5dd5c2Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4696f5dd5c2Smrg  xy)  ECHO_C='\c';;
4706f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4716f5dd5c2Smrg       ECHO_T='	';;
4726f5dd5c2Smrg  esac;;
4736f5dd5c2Smrg*)
4746f5dd5c2Smrg  ECHO_N='-n';;
4756f5dd5c2Smrgesac
476a0195d5fSmrg
4776f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.file
4786f5dd5c2Smrgif test -d conf$$.dir; then
4796f5dd5c2Smrg  rm -f conf$$.dir/conf$$.file
4806f5dd5c2Smrgelse
4816f5dd5c2Smrg  rm -f conf$$.dir
4826f5dd5c2Smrg  mkdir conf$$.dir 2>/dev/null
483a0195d5fSmrgfi
4846f5dd5c2Smrgif (echo >conf$$.file) 2>/dev/null; then
4856f5dd5c2Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
4866f5dd5c2Smrg    as_ln_s='ln -s'
4876f5dd5c2Smrg    # ... but there are two gotchas:
4886f5dd5c2Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4896f5dd5c2Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4906f5dd5c2Smrg    # In both cases, we have to default to `cp -p'.
4916f5dd5c2Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4926f5dd5c2Smrg      as_ln_s='cp -p'
4936f5dd5c2Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
4946f5dd5c2Smrg    as_ln_s=ln
4956f5dd5c2Smrg  else
4966f5dd5c2Smrg    as_ln_s='cp -p'
4976f5dd5c2Smrg  fi
498a0195d5fSmrgelse
4996f5dd5c2Smrg  as_ln_s='cp -p'
500a0195d5fSmrgfi
5016f5dd5c2Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5026f5dd5c2Smrgrmdir conf$$.dir 2>/dev/null
503a0195d5fSmrg
5046f5dd5c2Smrgif mkdir -p . 2>/dev/null; then
5056f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5066f5dd5c2Smrgelse
5076f5dd5c2Smrg  test -d ./-p && rmdir ./-p
5086f5dd5c2Smrg  as_mkdir_p=false
509a0195d5fSmrgfi
510a0195d5fSmrg
5116f5dd5c2Smrgif test -x / >/dev/null 2>&1; then
5126f5dd5c2Smrg  as_test_x='test -x'
513a0195d5fSmrgelse
5146f5dd5c2Smrg  if ls -dL / >/dev/null 2>&1; then
5156f5dd5c2Smrg    as_ls_L_option=L
5166f5dd5c2Smrg  else
5176f5dd5c2Smrg    as_ls_L_option=
5186f5dd5c2Smrg  fi
5196f5dd5c2Smrg  as_test_x='
5206f5dd5c2Smrg    eval sh -c '\''
5216f5dd5c2Smrg      if test -d "$1"; then
5226f5dd5c2Smrg	test -d "$1/.";
5236f5dd5c2Smrg      else
5246f5dd5c2Smrg	case $1 in #(
5256f5dd5c2Smrg	-*)set "./$1";;
5266f5dd5c2Smrg	esac;
5276f5dd5c2Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5286f5dd5c2Smrg	???[sx]*):;;*)false;;esac;fi
5296f5dd5c2Smrg    '\'' sh
5306f5dd5c2Smrg  '
531a0195d5fSmrgfi
5326f5dd5c2Smrgas_executable_p=$as_test_x
533a0195d5fSmrg
5346f5dd5c2Smrg# Sed expression to map a string onto a valid CPP name.
5356f5dd5c2Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536a0195d5fSmrg
5376f5dd5c2Smrg# Sed expression to map a string onto a valid variable name.
5386f5dd5c2Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539a0195d5fSmrg
540a0195d5fSmrg
5416f5dd5c2Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
5426f5dd5c2Smrgexec 6>&1
543a0195d5fSmrg
544a0195d5fSmrg# Name of the host.
5452ab73d9fSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546a0195d5fSmrg# so uname gets run too.
547a0195d5fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548a0195d5fSmrg
549a0195d5fSmrg#
550a0195d5fSmrg# Initializations.
551a0195d5fSmrg#
552a0195d5fSmrgac_default_prefix=/usr/local
553a0195d5fSmrgac_clean_files=
554a0195d5fSmrgac_config_libobj_dir=.
555a0195d5fSmrgLIBOBJS=
556a0195d5fSmrgcross_compiling=no
557a0195d5fSmrgsubdirs=
558a0195d5fSmrgMFLAGS=
559a0195d5fSmrgMAKEFLAGS=
560a0195d5fSmrg
561a0195d5fSmrg# Identity of this package.
562a0195d5fSmrgPACKAGE_NAME='xset'
563a0195d5fSmrgPACKAGE_TARNAME='xset'
5642ab73d9fSmrgPACKAGE_VERSION='1.2.1'
5652ab73d9fSmrgPACKAGE_STRING='xset 1.2.1'
566a0195d5fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
5676f5dd5c2SmrgPACKAGE_URL=''
568a0195d5fSmrg
5692ab73d9fSmrgac_unique_file="Makefile.am"
5706600fe5bSmrg# Factoring default headers for most tests.
5716600fe5bSmrgac_includes_default="\
5726600fe5bSmrg#include <stdio.h>
5736600fe5bSmrg#ifdef HAVE_SYS_TYPES_H
5746600fe5bSmrg# include <sys/types.h>
5756600fe5bSmrg#endif
5766600fe5bSmrg#ifdef HAVE_SYS_STAT_H
5776600fe5bSmrg# include <sys/stat.h>
5786600fe5bSmrg#endif
5796600fe5bSmrg#ifdef STDC_HEADERS
5806600fe5bSmrg# include <stdlib.h>
5816600fe5bSmrg# include <stddef.h>
5826600fe5bSmrg#else
5836600fe5bSmrg# ifdef HAVE_STDLIB_H
5846600fe5bSmrg#  include <stdlib.h>
5856600fe5bSmrg# endif
5866600fe5bSmrg#endif
5876600fe5bSmrg#ifdef HAVE_STRING_H
5886600fe5bSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
5896600fe5bSmrg#  include <memory.h>
5906600fe5bSmrg# endif
5916600fe5bSmrg# include <string.h>
5926600fe5bSmrg#endif
5936600fe5bSmrg#ifdef HAVE_STRINGS_H
5946600fe5bSmrg# include <strings.h>
5956600fe5bSmrg#endif
5966600fe5bSmrg#ifdef HAVE_INTTYPES_H
5976600fe5bSmrg# include <inttypes.h>
5986600fe5bSmrg#endif
5996600fe5bSmrg#ifdef HAVE_STDINT_H
6006600fe5bSmrg# include <stdint.h>
6016600fe5bSmrg#endif
6026600fe5bSmrg#ifdef HAVE_UNISTD_H
6036600fe5bSmrg# include <unistd.h>
6046600fe5bSmrg#endif"
6056600fe5bSmrg
6066600fe5bSmrgac_subst_vars='am__EXEEXT_FALSE
6076600fe5bSmrgam__EXEEXT_TRUE
6086600fe5bSmrgLTLIBOBJS
6096600fe5bSmrgLIBOBJS
6106600fe5bSmrgSET_FONTCACHE_LIBS
6116600fe5bSmrgSET_FONTCACHE_CFLAGS
6126600fe5bSmrgSET_XF86MISC_LIBS
6136600fe5bSmrgSET_XF86MISC_CFLAGS
6146600fe5bSmrgSET_XKB_LIBS
6156600fe5bSmrgSET_XKB_CFLAGS
6166600fe5bSmrgSET_XEXT_LIBS
6176600fe5bSmrgSET_XEXT_CFLAGS
6186600fe5bSmrgSET_X11_LIBS
6196600fe5bSmrgSET_X11_CFLAGS
6206600fe5bSmrgXSET_LIBS
6216600fe5bSmrgXSET_CFLAGS
6226f5dd5c2SmrgAM_BACKSLASH
6236f5dd5c2SmrgAM_DEFAULT_VERBOSITY
6246f5dd5c2SmrgMAN_SUBSTS
6256f5dd5c2SmrgXORG_MAN_PAGE
626a0195d5fSmrgADMIN_MAN_DIR
6276600fe5bSmrgDRIVER_MAN_DIR
6286600fe5bSmrgMISC_MAN_DIR
6296600fe5bSmrgFILE_MAN_DIR
6306600fe5bSmrgLIB_MAN_DIR
6316600fe5bSmrgAPP_MAN_DIR
6326600fe5bSmrgADMIN_MAN_SUFFIX
6336600fe5bSmrgDRIVER_MAN_SUFFIX
6346600fe5bSmrgMISC_MAN_SUFFIX
6356600fe5bSmrgFILE_MAN_SUFFIX
6366600fe5bSmrgLIB_MAN_SUFFIX
6376600fe5bSmrgAPP_MAN_SUFFIX
6386f5dd5c2SmrgSED
6396600fe5bSmrghost_os
6406600fe5bSmrghost_vendor
6416600fe5bSmrghost_cpu
6426600fe5bSmrghost
6436600fe5bSmrgbuild_os
6446600fe5bSmrgbuild_vendor
6456600fe5bSmrgbuild_cpu
6466600fe5bSmrgbuild
6476f5dd5c2SmrgINSTALL_CMD
6486f5dd5c2SmrgPKG_CONFIG
6496600fe5bSmrgCHANGELOG_CMD
6506600fe5bSmrgCWARNFLAGS
6516600fe5bSmrgEGREP
6526600fe5bSmrgGREP
6536600fe5bSmrgCPP
6546600fe5bSmrgam__fastdepCC_FALSE
6556600fe5bSmrgam__fastdepCC_TRUE
6566600fe5bSmrgCCDEPMODE
6576600fe5bSmrgAMDEPBACKSLASH
6586600fe5bSmrgAMDEP_FALSE
6596600fe5bSmrgAMDEP_TRUE
6606600fe5bSmrgam__quote
6616600fe5bSmrgam__include
6626600fe5bSmrgDEPDIR
6636600fe5bSmrgOBJEXT
6646600fe5bSmrgEXEEXT
6656600fe5bSmrgac_ct_CC
6666600fe5bSmrgCPPFLAGS
6676600fe5bSmrgLDFLAGS
6686600fe5bSmrgCFLAGS
6696600fe5bSmrgCC
6706600fe5bSmrgMAINT
6716600fe5bSmrgMAINTAINER_MODE_FALSE
6726600fe5bSmrgMAINTAINER_MODE_TRUE
6736600fe5bSmrgam__untar
6746600fe5bSmrgam__tar
6756600fe5bSmrgAMTAR
6766600fe5bSmrgam__leading_dot
6776600fe5bSmrgSET_MAKE
6786600fe5bSmrgAWK
6796600fe5bSmrgmkdir_p
6806600fe5bSmrgMKDIR_P
6816600fe5bSmrgINSTALL_STRIP_PROGRAM
6826600fe5bSmrgSTRIP
6836600fe5bSmrginstall_sh
6846600fe5bSmrgMAKEINFO
6856600fe5bSmrgAUTOHEADER
6866600fe5bSmrgAUTOMAKE
6876600fe5bSmrgAUTOCONF
6886600fe5bSmrgACLOCAL
6896600fe5bSmrgVERSION
6906600fe5bSmrgPACKAGE
6916600fe5bSmrgCYGPATH_W
6926600fe5bSmrgam__isrc
6936600fe5bSmrgINSTALL_DATA
6946600fe5bSmrgINSTALL_SCRIPT
6956600fe5bSmrgINSTALL_PROGRAM
6966600fe5bSmrgtarget_alias
6976600fe5bSmrghost_alias
6986600fe5bSmrgbuild_alias
6996600fe5bSmrgLIBS
7006600fe5bSmrgECHO_T
7016600fe5bSmrgECHO_N
7026600fe5bSmrgECHO_C
7036600fe5bSmrgDEFS
7046600fe5bSmrgmandir
7056600fe5bSmrglocaledir
7066600fe5bSmrglibdir
7076600fe5bSmrgpsdir
7086600fe5bSmrgpdfdir
7096600fe5bSmrgdvidir
7106600fe5bSmrghtmldir
7116600fe5bSmrginfodir
7126600fe5bSmrgdocdir
7136600fe5bSmrgoldincludedir
7146600fe5bSmrgincludedir
7156600fe5bSmrglocalstatedir
7166600fe5bSmrgsharedstatedir
7176600fe5bSmrgsysconfdir
7186600fe5bSmrgdatadir
7196600fe5bSmrgdatarootdir
7206600fe5bSmrglibexecdir
7216600fe5bSmrgsbindir
7226600fe5bSmrgbindir
7236600fe5bSmrgprogram_transform_name
7246600fe5bSmrgprefix
7256600fe5bSmrgexec_prefix
7266f5dd5c2SmrgPACKAGE_URL
7276600fe5bSmrgPACKAGE_BUGREPORT
7286600fe5bSmrgPACKAGE_STRING
7296600fe5bSmrgPACKAGE_VERSION
7306600fe5bSmrgPACKAGE_TARNAME
7316600fe5bSmrgPACKAGE_NAME
7326600fe5bSmrgPATH_SEPARATOR
7336600fe5bSmrgSHELL'
734a0195d5fSmrgac_subst_files=''
7356600fe5bSmrgac_user_opts='
7366600fe5bSmrgenable_option_checking
7376600fe5bSmrgenable_maintainer_mode
7386600fe5bSmrgenable_dependency_tracking
7396600fe5bSmrgenable_strict_compilation
7406f5dd5c2Smrgenable_silent_rules
7416f5dd5c2Smrgwith_xf86misc
7426f5dd5c2Smrgwith_fontcache
7436600fe5bSmrg'
744a0195d5fSmrg      ac_precious_vars='build_alias
745a0195d5fSmrghost_alias
746a0195d5fSmrgtarget_alias
747a0195d5fSmrgCC
748a0195d5fSmrgCFLAGS
749a0195d5fSmrgLDFLAGS
750a0195d5fSmrgLIBS
751a0195d5fSmrgCPPFLAGS
7526600fe5bSmrgCPP
753a0195d5fSmrgPKG_CONFIG
754a0195d5fSmrgXSET_CFLAGS
755a0195d5fSmrgXSET_LIBS
756a0195d5fSmrgSET_X11_CFLAGS
757a0195d5fSmrgSET_X11_LIBS
758a0195d5fSmrgSET_XEXT_CFLAGS
759a0195d5fSmrgSET_XEXT_LIBS
760a0195d5fSmrgSET_XKB_CFLAGS
761a0195d5fSmrgSET_XKB_LIBS
762a0195d5fSmrgSET_XF86MISC_CFLAGS
763a0195d5fSmrgSET_XF86MISC_LIBS
764a0195d5fSmrgSET_FONTCACHE_CFLAGS
7656f5dd5c2SmrgSET_FONTCACHE_LIBS'
766a0195d5fSmrg
767a0195d5fSmrg
768a0195d5fSmrg# Initialize some variables set by options.
769a0195d5fSmrgac_init_help=
770a0195d5fSmrgac_init_version=false
7716600fe5bSmrgac_unrecognized_opts=
7726600fe5bSmrgac_unrecognized_sep=
773a0195d5fSmrg# The variables have the same names as the options, with
774a0195d5fSmrg# dashes changed to underlines.
775a0195d5fSmrgcache_file=/dev/null
776a0195d5fSmrgexec_prefix=NONE
777a0195d5fSmrgno_create=
778a0195d5fSmrgno_recursion=
779a0195d5fSmrgprefix=NONE
780a0195d5fSmrgprogram_prefix=NONE
781a0195d5fSmrgprogram_suffix=NONE
782a0195d5fSmrgprogram_transform_name=s,x,x,
783a0195d5fSmrgsilent=
784a0195d5fSmrgsite=
785a0195d5fSmrgsrcdir=
786a0195d5fSmrgverbose=
787a0195d5fSmrgx_includes=NONE
788a0195d5fSmrgx_libraries=NONE
789a0195d5fSmrg
790a0195d5fSmrg# Installation directory options.
791a0195d5fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
792a0195d5fSmrg# and all the variables that are supposed to be based on exec_prefix
793a0195d5fSmrg# by default will actually change.
794a0195d5fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
795a0195d5fSmrg# (The list follows the same order as the GNU Coding Standards.)
796a0195d5fSmrgbindir='${exec_prefix}/bin'
797a0195d5fSmrgsbindir='${exec_prefix}/sbin'
798a0195d5fSmrglibexecdir='${exec_prefix}/libexec'
799a0195d5fSmrgdatarootdir='${prefix}/share'
800a0195d5fSmrgdatadir='${datarootdir}'
801a0195d5fSmrgsysconfdir='${prefix}/etc'
802a0195d5fSmrgsharedstatedir='${prefix}/com'
803a0195d5fSmrglocalstatedir='${prefix}/var'
804a0195d5fSmrgincludedir='${prefix}/include'
805a0195d5fSmrgoldincludedir='/usr/include'
806a0195d5fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807a0195d5fSmrginfodir='${datarootdir}/info'
808a0195d5fSmrghtmldir='${docdir}'
809a0195d5fSmrgdvidir='${docdir}'
810a0195d5fSmrgpdfdir='${docdir}'
811a0195d5fSmrgpsdir='${docdir}'
812a0195d5fSmrglibdir='${exec_prefix}/lib'
813a0195d5fSmrglocaledir='${datarootdir}/locale'
814a0195d5fSmrgmandir='${datarootdir}/man'
815a0195d5fSmrg
816a0195d5fSmrgac_prev=
817a0195d5fSmrgac_dashdash=
818a0195d5fSmrgfor ac_option
819a0195d5fSmrgdo
820a0195d5fSmrg  # If the previous option needs an argument, assign it.
821a0195d5fSmrg  if test -n "$ac_prev"; then
822a0195d5fSmrg    eval $ac_prev=\$ac_option
823a0195d5fSmrg    ac_prev=
824a0195d5fSmrg    continue
825a0195d5fSmrg  fi
826a0195d5fSmrg
827a0195d5fSmrg  case $ac_option in
8282ab73d9fSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8292ab73d9fSmrg  *=)   ac_optarg= ;;
8302ab73d9fSmrg  *)    ac_optarg=yes ;;
831a0195d5fSmrg  esac
832a0195d5fSmrg
833a0195d5fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
834a0195d5fSmrg
835a0195d5fSmrg  case $ac_dashdash$ac_option in
836a0195d5fSmrg  --)
837a0195d5fSmrg    ac_dashdash=yes ;;
838a0195d5fSmrg
839a0195d5fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
840a0195d5fSmrg    ac_prev=bindir ;;
841a0195d5fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842a0195d5fSmrg    bindir=$ac_optarg ;;
843a0195d5fSmrg
844a0195d5fSmrg  -build | --build | --buil | --bui | --bu)
845a0195d5fSmrg    ac_prev=build_alias ;;
846a0195d5fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847a0195d5fSmrg    build_alias=$ac_optarg ;;
848a0195d5fSmrg
849a0195d5fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
850a0195d5fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851a0195d5fSmrg    ac_prev=cache_file ;;
852a0195d5fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853a0195d5fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854a0195d5fSmrg    cache_file=$ac_optarg ;;
855a0195d5fSmrg
856a0195d5fSmrg  --config-cache | -C)
857a0195d5fSmrg    cache_file=config.cache ;;
858a0195d5fSmrg
859a0195d5fSmrg  -datadir | --datadir | --datadi | --datad)
860a0195d5fSmrg    ac_prev=datadir ;;
861a0195d5fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
862a0195d5fSmrg    datadir=$ac_optarg ;;
863a0195d5fSmrg
864a0195d5fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865a0195d5fSmrg  | --dataroo | --dataro | --datar)
866a0195d5fSmrg    ac_prev=datarootdir ;;
867a0195d5fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868a0195d5fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869a0195d5fSmrg    datarootdir=$ac_optarg ;;
870a0195d5fSmrg
871a0195d5fSmrg  -disable-* | --disable-*)
8726600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873a0195d5fSmrg    # Reject names that are not valid shell variable names.
8746600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8752ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8766600fe5bSmrg    ac_useropt_orig=$ac_useropt
8776600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8786600fe5bSmrg    case $ac_user_opts in
8796600fe5bSmrg      *"
8806600fe5bSmrg"enable_$ac_useropt"
8816600fe5bSmrg"*) ;;
8826600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8836600fe5bSmrg	 ac_unrecognized_sep=', ';;
8846600fe5bSmrg    esac
8856600fe5bSmrg    eval enable_$ac_useropt=no ;;
886a0195d5fSmrg
887a0195d5fSmrg  -docdir | --docdir | --docdi | --doc | --do)
888a0195d5fSmrg    ac_prev=docdir ;;
889a0195d5fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890a0195d5fSmrg    docdir=$ac_optarg ;;
891a0195d5fSmrg
892a0195d5fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893a0195d5fSmrg    ac_prev=dvidir ;;
894a0195d5fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895a0195d5fSmrg    dvidir=$ac_optarg ;;
896a0195d5fSmrg
897a0195d5fSmrg  -enable-* | --enable-*)
8986600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899a0195d5fSmrg    # Reject names that are not valid shell variable names.
9006600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9012ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
9026600fe5bSmrg    ac_useropt_orig=$ac_useropt
9036600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9046600fe5bSmrg    case $ac_user_opts in
9056600fe5bSmrg      *"
9066600fe5bSmrg"enable_$ac_useropt"
9076600fe5bSmrg"*) ;;
9086600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9096600fe5bSmrg	 ac_unrecognized_sep=', ';;
9106600fe5bSmrg    esac
9116600fe5bSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
912a0195d5fSmrg
913a0195d5fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914a0195d5fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915a0195d5fSmrg  | --exec | --exe | --ex)
916a0195d5fSmrg    ac_prev=exec_prefix ;;
917a0195d5fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918a0195d5fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919a0195d5fSmrg  | --exec=* | --exe=* | --ex=*)
920a0195d5fSmrg    exec_prefix=$ac_optarg ;;
921a0195d5fSmrg
922a0195d5fSmrg  -gas | --gas | --ga | --g)
923a0195d5fSmrg    # Obsolete; use --with-gas.
924a0195d5fSmrg    with_gas=yes ;;
925a0195d5fSmrg
926a0195d5fSmrg  -help | --help | --hel | --he | -h)
927a0195d5fSmrg    ac_init_help=long ;;
928a0195d5fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929a0195d5fSmrg    ac_init_help=recursive ;;
930a0195d5fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931a0195d5fSmrg    ac_init_help=short ;;
932a0195d5fSmrg
933a0195d5fSmrg  -host | --host | --hos | --ho)
934a0195d5fSmrg    ac_prev=host_alias ;;
935a0195d5fSmrg  -host=* | --host=* | --hos=* | --ho=*)
936a0195d5fSmrg    host_alias=$ac_optarg ;;
937a0195d5fSmrg
938a0195d5fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939a0195d5fSmrg    ac_prev=htmldir ;;
940a0195d5fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941a0195d5fSmrg  | --ht=*)
942a0195d5fSmrg    htmldir=$ac_optarg ;;
943a0195d5fSmrg
944a0195d5fSmrg  -includedir | --includedir | --includedi | --included | --include \
945a0195d5fSmrg  | --includ | --inclu | --incl | --inc)
946a0195d5fSmrg    ac_prev=includedir ;;
947a0195d5fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948a0195d5fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
949a0195d5fSmrg    includedir=$ac_optarg ;;
950a0195d5fSmrg
951a0195d5fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
952a0195d5fSmrg    ac_prev=infodir ;;
953a0195d5fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954a0195d5fSmrg    infodir=$ac_optarg ;;
955a0195d5fSmrg
956a0195d5fSmrg  -libdir | --libdir | --libdi | --libd)
957a0195d5fSmrg    ac_prev=libdir ;;
958a0195d5fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
959a0195d5fSmrg    libdir=$ac_optarg ;;
960a0195d5fSmrg
961a0195d5fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962a0195d5fSmrg  | --libexe | --libex | --libe)
963a0195d5fSmrg    ac_prev=libexecdir ;;
964a0195d5fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965a0195d5fSmrg  | --libexe=* | --libex=* | --libe=*)
966a0195d5fSmrg    libexecdir=$ac_optarg ;;
967a0195d5fSmrg
968a0195d5fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
969a0195d5fSmrg    ac_prev=localedir ;;
970a0195d5fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971a0195d5fSmrg    localedir=$ac_optarg ;;
972a0195d5fSmrg
973a0195d5fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
974a0195d5fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
975a0195d5fSmrg    ac_prev=localstatedir ;;
976a0195d5fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977a0195d5fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978a0195d5fSmrg    localstatedir=$ac_optarg ;;
979a0195d5fSmrg
980a0195d5fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981a0195d5fSmrg    ac_prev=mandir ;;
982a0195d5fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983a0195d5fSmrg    mandir=$ac_optarg ;;
984a0195d5fSmrg
985a0195d5fSmrg  -nfp | --nfp | --nf)
986a0195d5fSmrg    # Obsolete; use --without-fp.
987a0195d5fSmrg    with_fp=no ;;
988a0195d5fSmrg
989a0195d5fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990a0195d5fSmrg  | --no-cr | --no-c | -n)
991a0195d5fSmrg    no_create=yes ;;
992a0195d5fSmrg
993a0195d5fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994a0195d5fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995a0195d5fSmrg    no_recursion=yes ;;
996a0195d5fSmrg
997a0195d5fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998a0195d5fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999a0195d5fSmrg  | --oldin | --oldi | --old | --ol | --o)
1000a0195d5fSmrg    ac_prev=oldincludedir ;;
1001a0195d5fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002a0195d5fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003a0195d5fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004a0195d5fSmrg    oldincludedir=$ac_optarg ;;
1005a0195d5fSmrg
1006a0195d5fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007a0195d5fSmrg    ac_prev=prefix ;;
1008a0195d5fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009a0195d5fSmrg    prefix=$ac_optarg ;;
1010a0195d5fSmrg
1011a0195d5fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012a0195d5fSmrg  | --program-pre | --program-pr | --program-p)
1013a0195d5fSmrg    ac_prev=program_prefix ;;
1014a0195d5fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015a0195d5fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016a0195d5fSmrg    program_prefix=$ac_optarg ;;
1017a0195d5fSmrg
1018a0195d5fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019a0195d5fSmrg  | --program-suf | --program-su | --program-s)
1020a0195d5fSmrg    ac_prev=program_suffix ;;
1021a0195d5fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022a0195d5fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023a0195d5fSmrg    program_suffix=$ac_optarg ;;
1024a0195d5fSmrg
1025a0195d5fSmrg  -program-transform-name | --program-transform-name \
1026a0195d5fSmrg  | --program-transform-nam | --program-transform-na \
1027a0195d5fSmrg  | --program-transform-n | --program-transform- \
1028a0195d5fSmrg  | --program-transform | --program-transfor \
1029a0195d5fSmrg  | --program-transfo | --program-transf \
1030a0195d5fSmrg  | --program-trans | --program-tran \
1031a0195d5fSmrg  | --progr-tra | --program-tr | --program-t)
1032a0195d5fSmrg    ac_prev=program_transform_name ;;
1033a0195d5fSmrg  -program-transform-name=* | --program-transform-name=* \
1034a0195d5fSmrg  | --program-transform-nam=* | --program-transform-na=* \
1035a0195d5fSmrg  | --program-transform-n=* | --program-transform-=* \
1036a0195d5fSmrg  | --program-transform=* | --program-transfor=* \
1037a0195d5fSmrg  | --program-transfo=* | --program-transf=* \
1038a0195d5fSmrg  | --program-trans=* | --program-tran=* \
1039a0195d5fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1040a0195d5fSmrg    program_transform_name=$ac_optarg ;;
1041a0195d5fSmrg
1042a0195d5fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043a0195d5fSmrg    ac_prev=pdfdir ;;
1044a0195d5fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045a0195d5fSmrg    pdfdir=$ac_optarg ;;
1046a0195d5fSmrg
1047a0195d5fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1048a0195d5fSmrg    ac_prev=psdir ;;
1049a0195d5fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050a0195d5fSmrg    psdir=$ac_optarg ;;
1051a0195d5fSmrg
1052a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil)
1054a0195d5fSmrg    silent=yes ;;
1055a0195d5fSmrg
1056a0195d5fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057a0195d5fSmrg    ac_prev=sbindir ;;
1058a0195d5fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059a0195d5fSmrg  | --sbi=* | --sb=*)
1060a0195d5fSmrg    sbindir=$ac_optarg ;;
1061a0195d5fSmrg
1062a0195d5fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063a0195d5fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064a0195d5fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1065a0195d5fSmrg  | --sha | --sh)
1066a0195d5fSmrg    ac_prev=sharedstatedir ;;
1067a0195d5fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068a0195d5fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069a0195d5fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070a0195d5fSmrg  | --sha=* | --sh=*)
1071a0195d5fSmrg    sharedstatedir=$ac_optarg ;;
1072a0195d5fSmrg
1073a0195d5fSmrg  -site | --site | --sit)
1074a0195d5fSmrg    ac_prev=site ;;
1075a0195d5fSmrg  -site=* | --site=* | --sit=*)
1076a0195d5fSmrg    site=$ac_optarg ;;
1077a0195d5fSmrg
1078a0195d5fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079a0195d5fSmrg    ac_prev=srcdir ;;
1080a0195d5fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081a0195d5fSmrg    srcdir=$ac_optarg ;;
1082a0195d5fSmrg
1083a0195d5fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084a0195d5fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1085a0195d5fSmrg    ac_prev=sysconfdir ;;
1086a0195d5fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087a0195d5fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088a0195d5fSmrg    sysconfdir=$ac_optarg ;;
1089a0195d5fSmrg
1090a0195d5fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1091a0195d5fSmrg    ac_prev=target_alias ;;
1092a0195d5fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093a0195d5fSmrg    target_alias=$ac_optarg ;;
1094a0195d5fSmrg
1095a0195d5fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096a0195d5fSmrg    verbose=yes ;;
1097a0195d5fSmrg
1098a0195d5fSmrg  -version | --version | --versio | --versi | --vers | -V)
1099a0195d5fSmrg    ac_init_version=: ;;
1100a0195d5fSmrg
1101a0195d5fSmrg  -with-* | --with-*)
11026600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103a0195d5fSmrg    # Reject names that are not valid shell variable names.
11046600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11052ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11066600fe5bSmrg    ac_useropt_orig=$ac_useropt
11076600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11086600fe5bSmrg    case $ac_user_opts in
11096600fe5bSmrg      *"
11106600fe5bSmrg"with_$ac_useropt"
11116600fe5bSmrg"*) ;;
11126600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11136600fe5bSmrg	 ac_unrecognized_sep=', ';;
11146600fe5bSmrg    esac
11156600fe5bSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1116a0195d5fSmrg
1117a0195d5fSmrg  -without-* | --without-*)
11186600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119a0195d5fSmrg    # Reject names that are not valid shell variable names.
11206600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11212ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11226600fe5bSmrg    ac_useropt_orig=$ac_useropt
11236600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11246600fe5bSmrg    case $ac_user_opts in
11256600fe5bSmrg      *"
11266600fe5bSmrg"with_$ac_useropt"
11276600fe5bSmrg"*) ;;
11286600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11296600fe5bSmrg	 ac_unrecognized_sep=', ';;
11306600fe5bSmrg    esac
11316600fe5bSmrg    eval with_$ac_useropt=no ;;
1132a0195d5fSmrg
1133a0195d5fSmrg  --x)
1134a0195d5fSmrg    # Obsolete; use --with-x.
1135a0195d5fSmrg    with_x=yes ;;
1136a0195d5fSmrg
1137a0195d5fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138a0195d5fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1139a0195d5fSmrg    ac_prev=x_includes ;;
1140a0195d5fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141a0195d5fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142a0195d5fSmrg    x_includes=$ac_optarg ;;
1143a0195d5fSmrg
1144a0195d5fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145a0195d5fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146a0195d5fSmrg    ac_prev=x_libraries ;;
1147a0195d5fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148a0195d5fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149a0195d5fSmrg    x_libraries=$ac_optarg ;;
1150a0195d5fSmrg
11512ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11522ab73d9fSmrgTry \`$0 --help' for more information"
1153a0195d5fSmrg    ;;
1154a0195d5fSmrg
1155a0195d5fSmrg  *=*)
1156a0195d5fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157a0195d5fSmrg    # Reject names that are not valid shell variable names.
11586f5dd5c2Smrg    case $ac_envvar in #(
11596f5dd5c2Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11602ab73d9fSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11616f5dd5c2Smrg    esac
1162a0195d5fSmrg    eval $ac_envvar=\$ac_optarg
1163a0195d5fSmrg    export $ac_envvar ;;
1164a0195d5fSmrg
1165a0195d5fSmrg  *)
1166a0195d5fSmrg    # FIXME: should be removed in autoconf 3.0.
11676600fe5bSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168a0195d5fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11696600fe5bSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11702ab73d9fSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171a0195d5fSmrg    ;;
1172a0195d5fSmrg
1173a0195d5fSmrg  esac
1174a0195d5fSmrgdone
1175a0195d5fSmrg
1176a0195d5fSmrgif test -n "$ac_prev"; then
1177a0195d5fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11782ab73d9fSmrg  as_fn_error $? "missing argument to $ac_option"
1179a0195d5fSmrgfi
1180a0195d5fSmrg
11816600fe5bSmrgif test -n "$ac_unrecognized_opts"; then
11826600fe5bSmrg  case $enable_option_checking in
11836600fe5bSmrg    no) ;;
11842ab73d9fSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11856600fe5bSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11866600fe5bSmrg  esac
11876600fe5bSmrgfi
11886600fe5bSmrg
11896600fe5bSmrg# Check all directory arguments for consistency.
11906600fe5bSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11916600fe5bSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1192a0195d5fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193a0195d5fSmrg		libdir localedir mandir
1194a0195d5fSmrgdo
1195a0195d5fSmrg  eval ac_val=\$$ac_var
11966600fe5bSmrg  # Remove trailing slashes.
11976600fe5bSmrg  case $ac_val in
11986600fe5bSmrg    */ )
11996600fe5bSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12006600fe5bSmrg      eval $ac_var=\$ac_val;;
12016600fe5bSmrg  esac
12026600fe5bSmrg  # Be sure to have absolute directory names.
1203a0195d5fSmrg  case $ac_val in
1204a0195d5fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1205a0195d5fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206a0195d5fSmrg  esac
12072ab73d9fSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208a0195d5fSmrgdone
1209a0195d5fSmrg
1210a0195d5fSmrg# There might be people who depend on the old broken behavior: `$host'
1211a0195d5fSmrg# used to hold the argument of --host etc.
1212a0195d5fSmrg# FIXME: To remove some day.
1213a0195d5fSmrgbuild=$build_alias
1214a0195d5fSmrghost=$host_alias
1215a0195d5fSmrgtarget=$target_alias
1216a0195d5fSmrg
1217a0195d5fSmrg# FIXME: To remove some day.
1218a0195d5fSmrgif test "x$host_alias" != x; then
1219a0195d5fSmrg  if test "x$build_alias" = x; then
1220a0195d5fSmrg    cross_compiling=maybe
12212ab73d9fSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12222ab73d9fSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1223a0195d5fSmrg  elif test "x$build_alias" != "x$host_alias"; then
1224a0195d5fSmrg    cross_compiling=yes
1225a0195d5fSmrg  fi
1226a0195d5fSmrgfi
1227a0195d5fSmrg
1228a0195d5fSmrgac_tool_prefix=
1229a0195d5fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1230a0195d5fSmrg
1231a0195d5fSmrgtest "$silent" = yes && exec 6>/dev/null
1232a0195d5fSmrg
1233a0195d5fSmrg
1234a0195d5fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1235a0195d5fSmrgac_ls_di=`ls -di .` &&
1236a0195d5fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12372ab73d9fSmrg  as_fn_error $? "working directory cannot be determined"
1238a0195d5fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12392ab73d9fSmrg  as_fn_error $? "pwd does not report name of working directory"
1240a0195d5fSmrg
1241a0195d5fSmrg
1242a0195d5fSmrg# Find the source files, if location was not specified.
1243a0195d5fSmrgif test -z "$srcdir"; then
1244a0195d5fSmrg  ac_srcdir_defaulted=yes
1245a0195d5fSmrg  # Try the directory containing this script, then the parent directory.
12466600fe5bSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12476600fe5bSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12486600fe5bSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12496600fe5bSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12506600fe5bSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12516600fe5bSmrg$as_echo X"$as_myself" |
1252a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253a0195d5fSmrg	    s//\1/
1254a0195d5fSmrg	    q
1255a0195d5fSmrg	  }
1256a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
1257a0195d5fSmrg	    s//\1/
1258a0195d5fSmrg	    q
1259a0195d5fSmrg	  }
1260a0195d5fSmrg	  /^X\(\/\/\)$/{
1261a0195d5fSmrg	    s//\1/
1262a0195d5fSmrg	    q
1263a0195d5fSmrg	  }
1264a0195d5fSmrg	  /^X\(\/\).*/{
1265a0195d5fSmrg	    s//\1/
1266a0195d5fSmrg	    q
1267a0195d5fSmrg	  }
1268a0195d5fSmrg	  s/.*/./; q'`
1269a0195d5fSmrg  srcdir=$ac_confdir
1270a0195d5fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1271a0195d5fSmrg    srcdir=..
1272a0195d5fSmrg  fi
1273a0195d5fSmrgelse
1274a0195d5fSmrg  ac_srcdir_defaulted=no
1275a0195d5fSmrgfi
1276a0195d5fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1277a0195d5fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12782ab73d9fSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1279a0195d5fSmrgfi
1280a0195d5fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1281a0195d5fSmrgac_abs_confdir=`(
12822ab73d9fSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1283a0195d5fSmrg	pwd)`
1284a0195d5fSmrg# When building in place, set srcdir=.
1285a0195d5fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1286a0195d5fSmrg  srcdir=.
1287a0195d5fSmrgfi
1288a0195d5fSmrg# Remove unnecessary trailing slashes from srcdir.
1289a0195d5fSmrg# Double slashes in file names in object file debugging info
1290a0195d5fSmrg# mess up M-x gdb in Emacs.
1291a0195d5fSmrgcase $srcdir in
1292a0195d5fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1293a0195d5fSmrgesac
1294a0195d5fSmrgfor ac_var in $ac_precious_vars; do
1295a0195d5fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1296a0195d5fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1297a0195d5fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1298a0195d5fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1299a0195d5fSmrgdone
1300a0195d5fSmrg
1301a0195d5fSmrg#
1302a0195d5fSmrg# Report the --help message.
1303a0195d5fSmrg#
1304a0195d5fSmrgif test "$ac_init_help" = "long"; then
1305a0195d5fSmrg  # Omit some internal or obsolete options to make the list less imposing.
1306a0195d5fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1307a0195d5fSmrg  cat <<_ACEOF
13082ab73d9fSmrg\`configure' configures xset 1.2.1 to adapt to many kinds of systems.
1309a0195d5fSmrg
1310a0195d5fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1311a0195d5fSmrg
1312a0195d5fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1313a0195d5fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1314a0195d5fSmrg
1315a0195d5fSmrgDefaults for the options are specified in brackets.
1316a0195d5fSmrg
1317a0195d5fSmrgConfiguration:
1318a0195d5fSmrg  -h, --help              display this help and exit
1319a0195d5fSmrg      --help=short        display options specific to this package
1320a0195d5fSmrg      --help=recursive    display the short help of all the included packages
1321a0195d5fSmrg  -V, --version           display version information and exit
13222ab73d9fSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1323a0195d5fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1324a0195d5fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1325a0195d5fSmrg  -n, --no-create         do not create output files
1326a0195d5fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1327a0195d5fSmrg
1328a0195d5fSmrgInstallation directories:
1329a0195d5fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13306600fe5bSmrg                          [$ac_default_prefix]
1331a0195d5fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13326600fe5bSmrg                          [PREFIX]
1333a0195d5fSmrg
1334a0195d5fSmrgBy default, \`make install' will install all the files in
1335a0195d5fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1336a0195d5fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337a0195d5fSmrgfor instance \`--prefix=\$HOME'.
1338a0195d5fSmrg
1339a0195d5fSmrgFor better control, use the options below.
1340a0195d5fSmrg
1341a0195d5fSmrgFine tuning of the installation directories:
13426600fe5bSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13436600fe5bSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13446600fe5bSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13456600fe5bSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13466600fe5bSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13476600fe5bSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13486600fe5bSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13496600fe5bSmrg  --includedir=DIR        C header files [PREFIX/include]
13506600fe5bSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13516600fe5bSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13526600fe5bSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13536600fe5bSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13546600fe5bSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13556600fe5bSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13566600fe5bSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
13576600fe5bSmrg  --htmldir=DIR           html documentation [DOCDIR]
13586600fe5bSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13596600fe5bSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13606600fe5bSmrg  --psdir=DIR             ps documentation [DOCDIR]
1361a0195d5fSmrg_ACEOF
1362a0195d5fSmrg
1363a0195d5fSmrg  cat <<\_ACEOF
1364a0195d5fSmrg
1365a0195d5fSmrgProgram names:
1366a0195d5fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1367a0195d5fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1368a0195d5fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1369a0195d5fSmrg
1370a0195d5fSmrgSystem types:
1371a0195d5fSmrg  --build=BUILD     configure for building on BUILD [guessed]
1372a0195d5fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1373a0195d5fSmrg_ACEOF
1374a0195d5fSmrgfi
1375a0195d5fSmrg
1376a0195d5fSmrgif test -n "$ac_init_help"; then
1377a0195d5fSmrg  case $ac_init_help in
13782ab73d9fSmrg     short | recursive ) echo "Configuration of xset 1.2.1:";;
1379a0195d5fSmrg   esac
1380a0195d5fSmrg  cat <<\_ACEOF
1381a0195d5fSmrg
1382a0195d5fSmrgOptional Features:
13836600fe5bSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1384a0195d5fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385a0195d5fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386a0195d5fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1387a0195d5fSmrg			  (and sometimes confusing) to the casual installer
1388a0195d5fSmrg  --disable-dependency-tracking  speeds up one-time build
1389a0195d5fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
13906600fe5bSmrg  --enable-strict-compilation
13916600fe5bSmrg                          Enable all warnings from compiler and make them
13926600fe5bSmrg                          errors (default: disabled)
13936f5dd5c2Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13946f5dd5c2Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1395a0195d5fSmrg
1396a0195d5fSmrgOptional Packages:
1397a0195d5fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398a0195d5fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
13996f5dd5c2Smrg  --without-xf86misc      Disable xf86misc support.
14006f5dd5c2Smrg  --without-fontcache     Disable fontcache support.
1401a0195d5fSmrg
1402a0195d5fSmrgSome influential environment variables:
1403a0195d5fSmrg  CC          C compiler command
1404a0195d5fSmrg  CFLAGS      C compiler flags
1405a0195d5fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406a0195d5fSmrg              nonstandard directory <lib dir>
1407a0195d5fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14086f5dd5c2Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409a0195d5fSmrg              you have headers in a nonstandard directory <include dir>
14106600fe5bSmrg  CPP         C preprocessor
1411a0195d5fSmrg  PKG_CONFIG  path to pkg-config utility
1412a0195d5fSmrg  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1413a0195d5fSmrg  XSET_LIBS   linker flags for XSET, overriding pkg-config
1414a0195d5fSmrg  SET_X11_CFLAGS
1415a0195d5fSmrg              C compiler flags for SET_X11, overriding pkg-config
1416a0195d5fSmrg  SET_X11_LIBS
1417a0195d5fSmrg              linker flags for SET_X11, overriding pkg-config
1418a0195d5fSmrg  SET_XEXT_CFLAGS
1419a0195d5fSmrg              C compiler flags for SET_XEXT, overriding pkg-config
1420a0195d5fSmrg  SET_XEXT_LIBS
1421a0195d5fSmrg              linker flags for SET_XEXT, overriding pkg-config
1422a0195d5fSmrg  SET_XKB_CFLAGS
1423a0195d5fSmrg              C compiler flags for SET_XKB, overriding pkg-config
1424a0195d5fSmrg  SET_XKB_LIBS
1425a0195d5fSmrg              linker flags for SET_XKB, overriding pkg-config
1426a0195d5fSmrg  SET_XF86MISC_CFLAGS
1427a0195d5fSmrg              C compiler flags for SET_XF86MISC, overriding pkg-config
1428a0195d5fSmrg  SET_XF86MISC_LIBS
1429a0195d5fSmrg              linker flags for SET_XF86MISC, overriding pkg-config
1430a0195d5fSmrg  SET_FONTCACHE_CFLAGS
1431a0195d5fSmrg              C compiler flags for SET_FONTCACHE, overriding pkg-config
1432a0195d5fSmrg  SET_FONTCACHE_LIBS
1433a0195d5fSmrg              linker flags for SET_FONTCACHE, overriding pkg-config
1434a0195d5fSmrg
1435a0195d5fSmrgUse these variables to override the choices made by `configure' or to help
1436a0195d5fSmrgit to find libraries and programs with nonstandard names/locations.
1437a0195d5fSmrg
1438a0195d5fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1439a0195d5fSmrg_ACEOF
1440a0195d5fSmrgac_status=$?
1441a0195d5fSmrgfi
1442a0195d5fSmrg
1443a0195d5fSmrgif test "$ac_init_help" = "recursive"; then
1444a0195d5fSmrg  # If there are subdirs, report their specific --help.
1445a0195d5fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14466600fe5bSmrg    test -d "$ac_dir" ||
14476600fe5bSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14486600fe5bSmrg      continue
1449a0195d5fSmrg    ac_builddir=.
1450a0195d5fSmrg
1451a0195d5fSmrgcase "$ac_dir" in
1452a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453a0195d5fSmrg*)
14546600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
14566600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457a0195d5fSmrg  case $ac_top_builddir_sub in
1458a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460a0195d5fSmrg  esac ;;
1461a0195d5fSmrgesac
1462a0195d5fSmrgac_abs_top_builddir=$ac_pwd
1463a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1464a0195d5fSmrg# for backward compatibility:
1465a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
1466a0195d5fSmrg
1467a0195d5fSmrgcase $srcdir in
1468a0195d5fSmrg  .)  # We are building in place.
1469a0195d5fSmrg    ac_srcdir=.
1470a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
1471a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1472a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1473a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1474a0195d5fSmrg    ac_top_srcdir=$srcdir
1475a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
1476a0195d5fSmrg  *) # Relative name.
1477a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1479a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480a0195d5fSmrgesac
1481a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482a0195d5fSmrg
1483a0195d5fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1484a0195d5fSmrg    # Check for guested configure.
1485a0195d5fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1486a0195d5fSmrg      echo &&
1487a0195d5fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488a0195d5fSmrg    elif test -f "$ac_srcdir/configure"; then
1489a0195d5fSmrg      echo &&
1490a0195d5fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1491a0195d5fSmrg    else
14926600fe5bSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493a0195d5fSmrg    fi || ac_status=$?
1494a0195d5fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1495a0195d5fSmrg  done
1496a0195d5fSmrgfi
1497a0195d5fSmrg
1498a0195d5fSmrgtest -n "$ac_init_help" && exit $ac_status
1499a0195d5fSmrgif $ac_init_version; then
1500a0195d5fSmrg  cat <<\_ACEOF
15012ab73d9fSmrgxset configure 1.2.1
15022ab73d9fSmrggenerated by GNU Autoconf 2.68
1503a0195d5fSmrg
15042ab73d9fSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1505a0195d5fSmrgThis configure script is free software; the Free Software Foundation
1506a0195d5fSmrggives unlimited permission to copy, distribute and modify it.
1507a0195d5fSmrg_ACEOF
1508a0195d5fSmrg  exit
1509a0195d5fSmrgfi
1510a0195d5fSmrg
15116f5dd5c2Smrg## ------------------------ ##
15126f5dd5c2Smrg## Autoconf initialization. ##
15136f5dd5c2Smrg## ------------------------ ##
1514a0195d5fSmrg
15156f5dd5c2Smrg# ac_fn_c_try_compile LINENO
15166f5dd5c2Smrg# --------------------------
15176f5dd5c2Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15186f5dd5c2Smrgac_fn_c_try_compile ()
1519a0195d5fSmrg{
15206f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15216f5dd5c2Smrg  rm -f conftest.$ac_objext
15226f5dd5c2Smrg  if { { ac_try="$ac_compile"
15236f5dd5c2Smrgcase "(($ac_try" in
15246f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15266f5dd5c2Smrgesac
15276f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15286f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15296f5dd5c2Smrg  (eval "$ac_compile") 2>conftest.err
15306f5dd5c2Smrg  ac_status=$?
15316f5dd5c2Smrg  if test -s conftest.err; then
15326f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
15336f5dd5c2Smrg    cat conftest.er1 >&5
15346f5dd5c2Smrg    mv -f conftest.er1 conftest.err
15356f5dd5c2Smrg  fi
15366f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15376f5dd5c2Smrg  test $ac_status = 0; } && {
15386f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
15396f5dd5c2Smrg	 test ! -s conftest.err
15406f5dd5c2Smrg       } && test -s conftest.$ac_objext; then :
15416f5dd5c2Smrg  ac_retval=0
15426f5dd5c2Smrgelse
15436f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
15446f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
1545a0195d5fSmrg
15466f5dd5c2Smrg	ac_retval=1
15476f5dd5c2Smrgfi
15482ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15496f5dd5c2Smrg  as_fn_set_status $ac_retval
1550a0195d5fSmrg
15516f5dd5c2Smrg} # ac_fn_c_try_compile
15526f5dd5c2Smrg
15532ab73d9fSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15542ab73d9fSmrg# ---------------------------------------------
15552ab73d9fSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15562ab73d9fSmrg# accordingly.
15576f5dd5c2Smrgac_fn_c_check_decl ()
15586f5dd5c2Smrg{
15596f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15602ab73d9fSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15612ab73d9fSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15622ab73d9fSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15632ab73d9fSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15642ab73d9fSmrgif eval \${$3+:} false; then :
15656f5dd5c2Smrg  $as_echo_n "(cached) " >&6
15666f5dd5c2Smrgelse
15676f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686f5dd5c2Smrg/* end confdefs.h.  */
15696f5dd5c2Smrg$4
15706f5dd5c2Smrgint
15716f5dd5c2Smrgmain ()
15726f5dd5c2Smrg{
15732ab73d9fSmrg#ifndef $as_decl_name
15742ab73d9fSmrg#ifdef __cplusplus
15752ab73d9fSmrg  (void) $as_decl_use;
15762ab73d9fSmrg#else
15772ab73d9fSmrg  (void) $as_decl_name;
15782ab73d9fSmrg#endif
15796f5dd5c2Smrg#endif
15806f5dd5c2Smrg
15816f5dd5c2Smrg  ;
15826f5dd5c2Smrg  return 0;
15836f5dd5c2Smrg}
15846f5dd5c2Smrg_ACEOF
15856f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
15866f5dd5c2Smrg  eval "$3=yes"
15876f5dd5c2Smrgelse
15886f5dd5c2Smrg  eval "$3=no"
15896f5dd5c2Smrgfi
15906f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15916f5dd5c2Smrgfi
15926f5dd5c2Smrgeval ac_res=\$$3
15936f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15946f5dd5c2Smrg$as_echo "$ac_res" >&6; }
15952ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15966f5dd5c2Smrg
15976f5dd5c2Smrg} # ac_fn_c_check_decl
15986f5dd5c2Smrg
15996f5dd5c2Smrg# ac_fn_c_try_cpp LINENO
16006f5dd5c2Smrg# ----------------------
16016f5dd5c2Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
16026f5dd5c2Smrgac_fn_c_try_cpp ()
16036f5dd5c2Smrg{
16046f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16056f5dd5c2Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
16066f5dd5c2Smrgcase "(($ac_try" in
16076f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16096f5dd5c2Smrgesac
16106f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16116f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16126f5dd5c2Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
16136f5dd5c2Smrg  ac_status=$?
16146f5dd5c2Smrg  if test -s conftest.err; then
16156f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
16166f5dd5c2Smrg    cat conftest.er1 >&5
16176f5dd5c2Smrg    mv -f conftest.er1 conftest.err
16186f5dd5c2Smrg  fi
16196f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202ab73d9fSmrg  test $ac_status = 0; } > conftest.i && {
16216f5dd5c2Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16226f5dd5c2Smrg	 test ! -s conftest.err
16236f5dd5c2Smrg       }; then :
16246f5dd5c2Smrg  ac_retval=0
16256f5dd5c2Smrgelse
16266f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
16276f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
16286f5dd5c2Smrg
16296f5dd5c2Smrg    ac_retval=1
16306f5dd5c2Smrgfi
16312ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16326f5dd5c2Smrg  as_fn_set_status $ac_retval
16336f5dd5c2Smrg
16346f5dd5c2Smrg} # ac_fn_c_try_cpp
16356f5dd5c2Smrg
16366f5dd5c2Smrg# ac_fn_c_try_run LINENO
16376f5dd5c2Smrg# ----------------------
16386f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16396f5dd5c2Smrg# that executables *can* be run.
16406f5dd5c2Smrgac_fn_c_try_run ()
16416f5dd5c2Smrg{
16426f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16436f5dd5c2Smrg  if { { ac_try="$ac_link"
16446f5dd5c2Smrgcase "(($ac_try" in
16456f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16476f5dd5c2Smrgesac
16486f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16496f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16506f5dd5c2Smrg  (eval "$ac_link") 2>&5
16516f5dd5c2Smrg  ac_status=$?
16526f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16536f5dd5c2Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16546f5dd5c2Smrg  { { case "(($ac_try" in
16556f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16576f5dd5c2Smrgesac
16586f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16596f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16606f5dd5c2Smrg  (eval "$ac_try") 2>&5
16616f5dd5c2Smrg  ac_status=$?
16626f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16636f5dd5c2Smrg  test $ac_status = 0; }; }; then :
16646f5dd5c2Smrg  ac_retval=0
16656f5dd5c2Smrgelse
16666f5dd5c2Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16676f5dd5c2Smrg       $as_echo "$as_me: failed program was:" >&5
16686f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
16696f5dd5c2Smrg
16706f5dd5c2Smrg       ac_retval=$ac_status
16716f5dd5c2Smrgfi
16726f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16732ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16746f5dd5c2Smrg  as_fn_set_status $ac_retval
16756f5dd5c2Smrg
16766f5dd5c2Smrg} # ac_fn_c_try_run
16776f5dd5c2Smrg
16786f5dd5c2Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16796f5dd5c2Smrg# -------------------------------------------------------
16806f5dd5c2Smrg# Tests whether HEADER exists and can be compiled using the include files in
16816f5dd5c2Smrg# INCLUDES, setting the cache variable VAR accordingly.
16826f5dd5c2Smrgac_fn_c_check_header_compile ()
16836f5dd5c2Smrg{
16846f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16856f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16866f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
16872ab73d9fSmrgif eval \${$3+:} false; then :
16886f5dd5c2Smrg  $as_echo_n "(cached) " >&6
16896f5dd5c2Smrgelse
16906f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916f5dd5c2Smrg/* end confdefs.h.  */
16926f5dd5c2Smrg$4
16936f5dd5c2Smrg#include <$2>
16946f5dd5c2Smrg_ACEOF
16956f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
16966f5dd5c2Smrg  eval "$3=yes"
16976f5dd5c2Smrgelse
16986f5dd5c2Smrg  eval "$3=no"
16996f5dd5c2Smrgfi
17006f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016f5dd5c2Smrgfi
17026f5dd5c2Smrgeval ac_res=\$$3
17036f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17046f5dd5c2Smrg$as_echo "$ac_res" >&6; }
17052ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17066f5dd5c2Smrg
17076f5dd5c2Smrg} # ac_fn_c_check_header_compile
17086f5dd5c2Smrg
17096f5dd5c2Smrg# ac_fn_c_try_link LINENO
17106f5dd5c2Smrg# -----------------------
17116f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
17126f5dd5c2Smrgac_fn_c_try_link ()
17136f5dd5c2Smrg{
17146f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17156f5dd5c2Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
17166f5dd5c2Smrg  if { { ac_try="$ac_link"
17176f5dd5c2Smrgcase "(($ac_try" in
17186f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
17206f5dd5c2Smrgesac
17216f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17226f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
17236f5dd5c2Smrg  (eval "$ac_link") 2>conftest.err
17246f5dd5c2Smrg  ac_status=$?
17256f5dd5c2Smrg  if test -s conftest.err; then
17266f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
17276f5dd5c2Smrg    cat conftest.er1 >&5
17286f5dd5c2Smrg    mv -f conftest.er1 conftest.err
17296f5dd5c2Smrg  fi
17306f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17316f5dd5c2Smrg  test $ac_status = 0; } && {
17326f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
17336f5dd5c2Smrg	 test ! -s conftest.err
17346f5dd5c2Smrg       } && test -s conftest$ac_exeext && {
17356f5dd5c2Smrg	 test "$cross_compiling" = yes ||
17366f5dd5c2Smrg	 $as_test_x conftest$ac_exeext
17376f5dd5c2Smrg       }; then :
17386f5dd5c2Smrg  ac_retval=0
17396f5dd5c2Smrgelse
17406f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
17416f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
17426f5dd5c2Smrg
17436f5dd5c2Smrg	ac_retval=1
17446f5dd5c2Smrgfi
17456f5dd5c2Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17466f5dd5c2Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17476f5dd5c2Smrg  # interfere with the next link command; also delete a directory that is
17486f5dd5c2Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17496f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17502ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17516f5dd5c2Smrg  as_fn_set_status $ac_retval
17526f5dd5c2Smrg
17536f5dd5c2Smrg} # ac_fn_c_try_link
17546f5dd5c2Smrg
17556f5dd5c2Smrg# ac_fn_c_check_func LINENO FUNC VAR
17566f5dd5c2Smrg# ----------------------------------
17576f5dd5c2Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17586f5dd5c2Smrgac_fn_c_check_func ()
17596f5dd5c2Smrg{
17606f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17616f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17626f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
17632ab73d9fSmrgif eval \${$3+:} false; then :
17646f5dd5c2Smrg  $as_echo_n "(cached) " >&6
17656f5dd5c2Smrgelse
17666f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676f5dd5c2Smrg/* end confdefs.h.  */
17686f5dd5c2Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17696f5dd5c2Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17706f5dd5c2Smrg#define $2 innocuous_$2
17716f5dd5c2Smrg
17726f5dd5c2Smrg/* System header to define __stub macros and hopefully few prototypes,
17736f5dd5c2Smrg    which can conflict with char $2 (); below.
17746f5dd5c2Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17756f5dd5c2Smrg    <limits.h> exists even on freestanding compilers.  */
17766f5dd5c2Smrg
17776f5dd5c2Smrg#ifdef __STDC__
17786f5dd5c2Smrg# include <limits.h>
17796f5dd5c2Smrg#else
17806f5dd5c2Smrg# include <assert.h>
17816f5dd5c2Smrg#endif
17826f5dd5c2Smrg
17836f5dd5c2Smrg#undef $2
17846f5dd5c2Smrg
17856f5dd5c2Smrg/* Override any GCC internal prototype to avoid an error.
17866f5dd5c2Smrg   Use char because int might match the return type of a GCC
17876f5dd5c2Smrg   builtin and then its argument prototype would still apply.  */
17886f5dd5c2Smrg#ifdef __cplusplus
17896f5dd5c2Smrgextern "C"
17906f5dd5c2Smrg#endif
17916f5dd5c2Smrgchar $2 ();
17926f5dd5c2Smrg/* The GNU C library defines this for functions which it implements
17936f5dd5c2Smrg    to always fail with ENOSYS.  Some functions are actually named
17946f5dd5c2Smrg    something starting with __ and the normal name is an alias.  */
17956f5dd5c2Smrg#if defined __stub_$2 || defined __stub___$2
17966f5dd5c2Smrgchoke me
17976f5dd5c2Smrg#endif
17986f5dd5c2Smrg
17996f5dd5c2Smrgint
18006f5dd5c2Smrgmain ()
18016f5dd5c2Smrg{
18026f5dd5c2Smrgreturn $2 ();
18036f5dd5c2Smrg  ;
18046f5dd5c2Smrg  return 0;
18056f5dd5c2Smrg}
18066f5dd5c2Smrg_ACEOF
18076f5dd5c2Smrgif ac_fn_c_try_link "$LINENO"; then :
18086f5dd5c2Smrg  eval "$3=yes"
18096f5dd5c2Smrgelse
18106f5dd5c2Smrg  eval "$3=no"
18116f5dd5c2Smrgfi
18126f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext \
18136f5dd5c2Smrg    conftest$ac_exeext conftest.$ac_ext
18146f5dd5c2Smrgfi
18156f5dd5c2Smrgeval ac_res=\$$3
18166f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18176f5dd5c2Smrg$as_echo "$ac_res" >&6; }
18182ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18196f5dd5c2Smrg
18206f5dd5c2Smrg} # ac_fn_c_check_func
18216f5dd5c2Smrgcat >config.log <<_ACEOF
18226f5dd5c2SmrgThis file contains any messages produced by compilers while
18236f5dd5c2Smrgrunning configure, to aid debugging if configure makes a mistake.
18246f5dd5c2Smrg
18252ab73d9fSmrgIt was created by xset $as_me 1.2.1, which was
18262ab73d9fSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
18276f5dd5c2Smrg
18286f5dd5c2Smrg  $ $0 $@
18296f5dd5c2Smrg
18306f5dd5c2Smrg_ACEOF
18316f5dd5c2Smrgexec 5>>config.log
18326f5dd5c2Smrg{
18336f5dd5c2Smrgcat <<_ASUNAME
18346f5dd5c2Smrg## --------- ##
18356f5dd5c2Smrg## Platform. ##
18366f5dd5c2Smrg## --------- ##
18376f5dd5c2Smrg
18386f5dd5c2Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
18396f5dd5c2Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18406f5dd5c2Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18416f5dd5c2Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18426f5dd5c2Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18436f5dd5c2Smrg
18446f5dd5c2Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18456f5dd5c2Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18466f5dd5c2Smrg
18476f5dd5c2Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18486f5dd5c2Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18496f5dd5c2Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18506f5dd5c2Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18516f5dd5c2Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18526f5dd5c2Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
18536f5dd5c2Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
18546f5dd5c2Smrg
18556f5dd5c2Smrg_ASUNAME
1856a0195d5fSmrg
1857a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858a0195d5fSmrgfor as_dir in $PATH
1859a0195d5fSmrgdo
1860a0195d5fSmrg  IFS=$as_save_IFS
1861a0195d5fSmrg  test -z "$as_dir" && as_dir=.
18626f5dd5c2Smrg    $as_echo "PATH: $as_dir"
18636f5dd5c2Smrg  done
1864a0195d5fSmrgIFS=$as_save_IFS
1865a0195d5fSmrg
1866a0195d5fSmrg} >&5
1867a0195d5fSmrg
1868a0195d5fSmrgcat >&5 <<_ACEOF
1869a0195d5fSmrg
1870a0195d5fSmrg
1871a0195d5fSmrg## ----------- ##
1872a0195d5fSmrg## Core tests. ##
1873a0195d5fSmrg## ----------- ##
1874a0195d5fSmrg
1875a0195d5fSmrg_ACEOF
1876a0195d5fSmrg
1877a0195d5fSmrg
1878a0195d5fSmrg# Keep a trace of the command line.
1879a0195d5fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1880a0195d5fSmrg# Strip out --silent because we don't want to record it for future runs.
1881a0195d5fSmrg# Also quote any args containing shell meta-characters.
1882a0195d5fSmrg# Make two passes to allow for proper duplicate-argument suppression.
1883a0195d5fSmrgac_configure_args=
1884a0195d5fSmrgac_configure_args0=
1885a0195d5fSmrgac_configure_args1=
1886a0195d5fSmrgac_must_keep_next=false
1887a0195d5fSmrgfor ac_pass in 1 2
1888a0195d5fSmrgdo
1889a0195d5fSmrg  for ac_arg
1890a0195d5fSmrg  do
1891a0195d5fSmrg    case $ac_arg in
1892a0195d5fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893a0195d5fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894a0195d5fSmrg    | -silent | --silent | --silen | --sile | --sil)
1895a0195d5fSmrg      continue ;;
1896a0195d5fSmrg    *\'*)
18976600fe5bSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898a0195d5fSmrg    esac
1899a0195d5fSmrg    case $ac_pass in
19006f5dd5c2Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901a0195d5fSmrg    2)
19026f5dd5c2Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1903a0195d5fSmrg      if test $ac_must_keep_next = true; then
1904a0195d5fSmrg	ac_must_keep_next=false # Got value, back to normal.
1905a0195d5fSmrg      else
1906a0195d5fSmrg	case $ac_arg in
1907a0195d5fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1908a0195d5fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909a0195d5fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910a0195d5fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1911a0195d5fSmrg	    case "$ac_configure_args0 " in
1912a0195d5fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913a0195d5fSmrg	    esac
1914a0195d5fSmrg	    ;;
1915a0195d5fSmrg	  -* ) ac_must_keep_next=true ;;
1916a0195d5fSmrg	esac
1917a0195d5fSmrg      fi
19186f5dd5c2Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1919a0195d5fSmrg      ;;
1920a0195d5fSmrg    esac
1921a0195d5fSmrg  done
1922a0195d5fSmrgdone
19236f5dd5c2Smrg{ ac_configure_args0=; unset ac_configure_args0;}
19246f5dd5c2Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1925a0195d5fSmrg
1926a0195d5fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1927a0195d5fSmrg# config.log.  We remove comments because anyway the quotes in there
1928a0195d5fSmrg# would cause problems or look ugly.
1929a0195d5fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1930a0195d5fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931a0195d5fSmrgtrap 'exit_status=$?
1932a0195d5fSmrg  # Save into config.log some information that might help in debugging.
1933a0195d5fSmrg  {
1934a0195d5fSmrg    echo
1935a0195d5fSmrg
19362ab73d9fSmrg    $as_echo "## ---------------- ##
1937a0195d5fSmrg## Cache variables. ##
19382ab73d9fSmrg## ---------------- ##"
1939a0195d5fSmrg    echo
1940a0195d5fSmrg    # The following way of writing the cache mishandles newlines in values,
1941a0195d5fSmrg(
1942a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943a0195d5fSmrg    eval ac_val=\$$ac_var
1944a0195d5fSmrg    case $ac_val in #(
1945a0195d5fSmrg    *${as_nl}*)
1946a0195d5fSmrg      case $ac_var in #(
19476f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19486600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949a0195d5fSmrg      esac
1950a0195d5fSmrg      case $ac_var in #(
1951a0195d5fSmrg      _ | IFS | as_nl) ;; #(
19526600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19536f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1954a0195d5fSmrg      esac ;;
1955a0195d5fSmrg    esac
1956a0195d5fSmrg  done
1957a0195d5fSmrg  (set) 2>&1 |
1958a0195d5fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959a0195d5fSmrg    *${as_nl}ac_space=\ *)
1960a0195d5fSmrg      sed -n \
1961a0195d5fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1962a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963a0195d5fSmrg      ;; #(
1964a0195d5fSmrg    *)
1965a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966a0195d5fSmrg      ;;
1967a0195d5fSmrg    esac |
1968a0195d5fSmrg    sort
1969a0195d5fSmrg)
1970a0195d5fSmrg    echo
1971a0195d5fSmrg
19722ab73d9fSmrg    $as_echo "## ----------------- ##
1973a0195d5fSmrg## Output variables. ##
19742ab73d9fSmrg## ----------------- ##"
1975a0195d5fSmrg    echo
1976a0195d5fSmrg    for ac_var in $ac_subst_vars
1977a0195d5fSmrg    do
1978a0195d5fSmrg      eval ac_val=\$$ac_var
1979a0195d5fSmrg      case $ac_val in
19806600fe5bSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981a0195d5fSmrg      esac
19826600fe5bSmrg      $as_echo "$ac_var='\''$ac_val'\''"
1983a0195d5fSmrg    done | sort
1984a0195d5fSmrg    echo
1985a0195d5fSmrg
1986a0195d5fSmrg    if test -n "$ac_subst_files"; then
19872ab73d9fSmrg      $as_echo "## ------------------- ##
1988a0195d5fSmrg## File substitutions. ##
19892ab73d9fSmrg## ------------------- ##"
1990a0195d5fSmrg      echo
1991a0195d5fSmrg      for ac_var in $ac_subst_files
1992a0195d5fSmrg      do
1993a0195d5fSmrg	eval ac_val=\$$ac_var
1994a0195d5fSmrg	case $ac_val in
19956600fe5bSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996a0195d5fSmrg	esac
19976600fe5bSmrg	$as_echo "$ac_var='\''$ac_val'\''"
1998a0195d5fSmrg      done | sort
1999a0195d5fSmrg      echo
2000a0195d5fSmrg    fi
2001a0195d5fSmrg
2002a0195d5fSmrg    if test -s confdefs.h; then
20032ab73d9fSmrg      $as_echo "## ----------- ##
2004a0195d5fSmrg## confdefs.h. ##
20052ab73d9fSmrg## ----------- ##"
2006a0195d5fSmrg      echo
2007a0195d5fSmrg      cat confdefs.h
2008a0195d5fSmrg      echo
2009a0195d5fSmrg    fi
2010a0195d5fSmrg    test "$ac_signal" != 0 &&
20116600fe5bSmrg      $as_echo "$as_me: caught signal $ac_signal"
20126600fe5bSmrg    $as_echo "$as_me: exit $exit_status"
2013a0195d5fSmrg  } >&5
2014a0195d5fSmrg  rm -f core *.core core.conftest.* &&
2015a0195d5fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016a0195d5fSmrg    exit $exit_status
2017a0195d5fSmrg' 0
2018a0195d5fSmrgfor ac_signal in 1 2 13 15; do
20196f5dd5c2Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020a0195d5fSmrgdone
2021a0195d5fSmrgac_signal=0
2022a0195d5fSmrg
2023a0195d5fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2024a0195d5fSmrgrm -f -r conftest* confdefs.h
2025a0195d5fSmrg
20266f5dd5c2Smrg$as_echo "/* confdefs.h */" > confdefs.h
20276f5dd5c2Smrg
2028a0195d5fSmrg# Predefined preprocessor variables.
2029a0195d5fSmrg
2030a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2031a0195d5fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2032a0195d5fSmrg_ACEOF
2033a0195d5fSmrg
2034a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2035a0195d5fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036a0195d5fSmrg_ACEOF
2037a0195d5fSmrg
2038a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2039a0195d5fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2040a0195d5fSmrg_ACEOF
2041a0195d5fSmrg
2042a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2043a0195d5fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2044a0195d5fSmrg_ACEOF
2045a0195d5fSmrg
2046a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2047a0195d5fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048a0195d5fSmrg_ACEOF
2049a0195d5fSmrg
20506f5dd5c2Smrgcat >>confdefs.h <<_ACEOF
20516f5dd5c2Smrg#define PACKAGE_URL "$PACKAGE_URL"
20526f5dd5c2Smrg_ACEOF
20536f5dd5c2Smrg
2054a0195d5fSmrg
2055a0195d5fSmrg# Let the site file select an alternate cache file if it wants to.
20566600fe5bSmrg# Prefer an explicitly selected file to automatically selected ones.
20576600fe5bSmrgac_site_file1=NONE
20586600fe5bSmrgac_site_file2=NONE
2059a0195d5fSmrgif test -n "$CONFIG_SITE"; then
20602ab73d9fSmrg  # We do not want a PATH search for config.site.
20612ab73d9fSmrg  case $CONFIG_SITE in #((
20622ab73d9fSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
20632ab73d9fSmrg    */*) ac_site_file1=$CONFIG_SITE;;
20642ab73d9fSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
20652ab73d9fSmrg  esac
2066a0195d5fSmrgelif test "x$prefix" != xNONE; then
20676600fe5bSmrg  ac_site_file1=$prefix/share/config.site
20686600fe5bSmrg  ac_site_file2=$prefix/etc/config.site
2069a0195d5fSmrgelse
20706600fe5bSmrg  ac_site_file1=$ac_default_prefix/share/config.site
20716600fe5bSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
2072a0195d5fSmrgfi
20736600fe5bSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074a0195d5fSmrgdo
20756600fe5bSmrg  test "x$ac_site_file" = xNONE && continue
20766f5dd5c2Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
20776f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
20786600fe5bSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079a0195d5fSmrg    sed 's/^/| /' "$ac_site_file" >&5
20802ab73d9fSmrg    . "$ac_site_file" \
20812ab73d9fSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20822ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20832ab73d9fSmrgas_fn_error $? "failed to load site script $ac_site_file
20842ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2085a0195d5fSmrg  fi
2086a0195d5fSmrgdone
2087a0195d5fSmrg
2088a0195d5fSmrgif test -r "$cache_file"; then
20896f5dd5c2Smrg  # Some versions of bash will fail to source /dev/null (special files
20906f5dd5c2Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
20916f5dd5c2Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20926f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20936600fe5bSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2094a0195d5fSmrg    case $cache_file in
2095a0195d5fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096a0195d5fSmrg      *)                      . "./$cache_file";;
2097a0195d5fSmrg    esac
2098a0195d5fSmrg  fi
2099a0195d5fSmrgelse
21006f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
21016600fe5bSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2102a0195d5fSmrg  >$cache_file
2103a0195d5fSmrgfi
2104a0195d5fSmrg
2105a0195d5fSmrg# Check that the precious variables saved in the cache have kept the same
2106a0195d5fSmrg# value.
2107a0195d5fSmrgac_cache_corrupted=false
2108a0195d5fSmrgfor ac_var in $ac_precious_vars; do
2109a0195d5fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110a0195d5fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2111a0195d5fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112a0195d5fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2113a0195d5fSmrg  case $ac_old_set,$ac_new_set in
2114a0195d5fSmrg    set,)
21156f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
21166600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117a0195d5fSmrg      ac_cache_corrupted=: ;;
2118a0195d5fSmrg    ,set)
21196f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
21206600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121a0195d5fSmrg      ac_cache_corrupted=: ;;
2122a0195d5fSmrg    ,);;
2123a0195d5fSmrg    *)
2124a0195d5fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
21256600fe5bSmrg	# differences in whitespace do not lead to failure.
21266600fe5bSmrg	ac_old_val_w=`echo x $ac_old_val`
21276600fe5bSmrg	ac_new_val_w=`echo x $ac_new_val`
21286600fe5bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
21296f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
21306600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
21316600fe5bSmrg	  ac_cache_corrupted=:
21326600fe5bSmrg	else
21336f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
21346600fe5bSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
21356600fe5bSmrg	  eval $ac_var=\$ac_old_val
21366600fe5bSmrg	fi
21376f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
21386600fe5bSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
21396f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
21406600fe5bSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2141a0195d5fSmrg      fi;;
2142a0195d5fSmrg  esac
2143a0195d5fSmrg  # Pass precious variables to config.status.
2144a0195d5fSmrg  if test "$ac_new_set" = set; then
2145a0195d5fSmrg    case $ac_new_val in
21466600fe5bSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147a0195d5fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2148a0195d5fSmrg    esac
2149a0195d5fSmrg    case " $ac_configure_args " in
2150a0195d5fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
21516f5dd5c2Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152a0195d5fSmrg    esac
2153a0195d5fSmrg  fi
2154a0195d5fSmrgdone
2155a0195d5fSmrgif $ac_cache_corrupted; then
21566f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21576600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21586f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
21596600fe5bSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
21602ab73d9fSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161a0195d5fSmrgfi
21626f5dd5c2Smrg## -------------------- ##
21636f5dd5c2Smrg## Main body of script. ##
21646f5dd5c2Smrg## -------------------- ##
2165a0195d5fSmrg
2166a0195d5fSmrgac_ext=c
2167a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
2168a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2171a0195d5fSmrg
2172a0195d5fSmrg
21732ab73d9fSmrg
21742ab73d9fSmrgac_config_headers="$ac_config_headers config.h"
21752ab73d9fSmrg
21762ab73d9fSmrg
21772ab73d9fSmrg# Initialize Automake
21786600fe5bSmrgam__api_version='1.11'
2179a0195d5fSmrg
2180a0195d5fSmrgac_aux_dir=
2181a0195d5fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21822ab73d9fSmrg  if test -f "$ac_dir/install-sh"; then
21832ab73d9fSmrg    ac_aux_dir=$ac_dir
21842ab73d9fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
21852ab73d9fSmrg    break
21862ab73d9fSmrg  elif test -f "$ac_dir/install.sh"; then
21872ab73d9fSmrg    ac_aux_dir=$ac_dir
21882ab73d9fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
21892ab73d9fSmrg    break
21902ab73d9fSmrg  elif test -f "$ac_dir/shtool"; then
21912ab73d9fSmrg    ac_aux_dir=$ac_dir
21922ab73d9fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
21932ab73d9fSmrg    break
21942ab73d9fSmrg  fi
2195a0195d5fSmrgdone
2196a0195d5fSmrgif test -z "$ac_aux_dir"; then
21972ab73d9fSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2198a0195d5fSmrgfi
2199a0195d5fSmrg
2200a0195d5fSmrg# These three variables are undocumented and unsupported,
2201a0195d5fSmrg# and are intended to be withdrawn in a future Autoconf release.
2202a0195d5fSmrg# They can cause serious problems if a builder's source tree is in a directory
2203a0195d5fSmrg# whose full name contains unusual characters.
2204a0195d5fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2205a0195d5fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2206a0195d5fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2207a0195d5fSmrg
2208a0195d5fSmrg
2209a0195d5fSmrg# Find a good install program.  We prefer a C program (faster),
2210a0195d5fSmrg# so one script is as good as another.  But avoid the broken or
2211a0195d5fSmrg# incompatible versions:
2212a0195d5fSmrg# SysV /etc/install, /usr/sbin/install
2213a0195d5fSmrg# SunOS /usr/etc/install
2214a0195d5fSmrg# IRIX /sbin/install
2215a0195d5fSmrg# AIX /bin/install
2216a0195d5fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2217a0195d5fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218a0195d5fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219a0195d5fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220a0195d5fSmrg# OS/2's system install, which has a completely different semantic
2221a0195d5fSmrg# ./install, which can be erroneously created by make from ./install.sh.
22226600fe5bSmrg# Reject install programs that cannot install multiple files.
22236f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22246600fe5bSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2225a0195d5fSmrgif test -z "$INSTALL"; then
22262ab73d9fSmrgif ${ac_cv_path_install+:} false; then :
22276600fe5bSmrg  $as_echo_n "(cached) " >&6
2228a0195d5fSmrgelse
2229a0195d5fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230a0195d5fSmrgfor as_dir in $PATH
2231a0195d5fSmrgdo
2232a0195d5fSmrg  IFS=$as_save_IFS
2233a0195d5fSmrg  test -z "$as_dir" && as_dir=.
22346f5dd5c2Smrg    # Account for people who put trailing slashes in PATH elements.
22356f5dd5c2Smrgcase $as_dir/ in #((
22366f5dd5c2Smrg  ./ | .// | /[cC]/* | \
2237a0195d5fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22386f5dd5c2Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2239a0195d5fSmrg  /usr/ucb/* ) ;;
2240a0195d5fSmrg  *)
2241a0195d5fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2242a0195d5fSmrg    # Don't use installbsd from OSF since it installs stuff as root
2243a0195d5fSmrg    # by default.
2244a0195d5fSmrg    for ac_prog in ginstall scoinst install; do
2245a0195d5fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2246a0195d5fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2247a0195d5fSmrg	  if test $ac_prog = install &&
2248a0195d5fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249a0195d5fSmrg	    # AIX install.  It has an incompatible calling convention.
2250a0195d5fSmrg	    :
2251a0195d5fSmrg	  elif test $ac_prog = install &&
2252a0195d5fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253a0195d5fSmrg	    # program-specific install script used by HP pwplus--don't use.
2254a0195d5fSmrg	    :
2255a0195d5fSmrg	  else
22566600fe5bSmrg	    rm -rf conftest.one conftest.two conftest.dir
22576600fe5bSmrg	    echo one > conftest.one
22586600fe5bSmrg	    echo two > conftest.two
22596600fe5bSmrg	    mkdir conftest.dir
22606600fe5bSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22616600fe5bSmrg	      test -s conftest.one && test -s conftest.two &&
22626600fe5bSmrg	      test -s conftest.dir/conftest.one &&
22636600fe5bSmrg	      test -s conftest.dir/conftest.two
22646600fe5bSmrg	    then
22656600fe5bSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22666600fe5bSmrg	      break 3
22676600fe5bSmrg	    fi
2268a0195d5fSmrg	  fi
2269a0195d5fSmrg	fi
2270a0195d5fSmrg      done
2271a0195d5fSmrg    done
2272a0195d5fSmrg    ;;
2273a0195d5fSmrgesac
22746600fe5bSmrg
22756f5dd5c2Smrg  done
2276a0195d5fSmrgIFS=$as_save_IFS
2277a0195d5fSmrg
22786600fe5bSmrgrm -rf conftest.one conftest.two conftest.dir
2279a0195d5fSmrg
2280a0195d5fSmrgfi
2281a0195d5fSmrg  if test "${ac_cv_path_install+set}" = set; then
2282a0195d5fSmrg    INSTALL=$ac_cv_path_install
2283a0195d5fSmrg  else
2284a0195d5fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2285a0195d5fSmrg    # value for INSTALL within a source directory, because that will
2286a0195d5fSmrg    # break other packages using the cache if that directory is
2287a0195d5fSmrg    # removed, or if the value is a relative name.
2288a0195d5fSmrg    INSTALL=$ac_install_sh
2289a0195d5fSmrg  fi
2290a0195d5fSmrgfi
22916f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22926600fe5bSmrg$as_echo "$INSTALL" >&6; }
2293a0195d5fSmrg
2294a0195d5fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295a0195d5fSmrg# It thinks the first close brace ends the variable substitution.
2296a0195d5fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297a0195d5fSmrg
2298a0195d5fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299a0195d5fSmrg
2300a0195d5fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301a0195d5fSmrg
23026f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
23036600fe5bSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2304a0195d5fSmrg# Just in case
2305a0195d5fSmrgsleep 1
2306a0195d5fSmrgecho timestamp > conftest.file
23076600fe5bSmrg# Reject unsafe characters in $srcdir or the absolute working directory
23086600fe5bSmrg# name.  Accept space and tab only in the latter.
23096600fe5bSmrgam_lf='
23106600fe5bSmrg'
23116600fe5bSmrgcase `pwd` in
23126600fe5bSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
23132ab73d9fSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
23146600fe5bSmrgesac
23156600fe5bSmrgcase $srcdir in
23166600fe5bSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
23172ab73d9fSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
23186600fe5bSmrgesac
23196600fe5bSmrg
2320a0195d5fSmrg# Do `set' in a subshell so we don't clobber the current shell's
2321a0195d5fSmrg# arguments.  Must try -L first in case configure is actually a
2322a0195d5fSmrg# symlink; some systems play weird games with the mod time of symlinks
2323a0195d5fSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2324a0195d5fSmrg# directory).
2325a0195d5fSmrgif (
23266600fe5bSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2327a0195d5fSmrg   if test "$*" = "X"; then
2328a0195d5fSmrg      # -L didn't work.
23296600fe5bSmrg      set X `ls -t "$srcdir/configure" conftest.file`
2330a0195d5fSmrg   fi
2331a0195d5fSmrg   rm -f conftest.file
2332a0195d5fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2333a0195d5fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2334a0195d5fSmrg
2335a0195d5fSmrg      # If neither matched, then we have a broken ls.  This can happen
2336a0195d5fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2337a0195d5fSmrg      # broken ls alias from the environment.  This has actually
2338a0195d5fSmrg      # happened.  Such a system could not be considered "sane".
23392ab73d9fSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
23406f5dd5c2Smrgalias in your environment" "$LINENO" 5
2341a0195d5fSmrg   fi
2342a0195d5fSmrg
2343a0195d5fSmrg   test "$2" = conftest.file
2344a0195d5fSmrg   )
2345a0195d5fSmrgthen
2346a0195d5fSmrg   # Ok.
2347a0195d5fSmrg   :
2348a0195d5fSmrgelse
23492ab73d9fSmrg   as_fn_error $? "newly created file is older than distributed files!
23506f5dd5c2SmrgCheck your system clock" "$LINENO" 5
2351a0195d5fSmrgfi
23526f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23536600fe5bSmrg$as_echo "yes" >&6; }
2354a0195d5fSmrgtest "$program_prefix" != NONE &&
2355a0195d5fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2356a0195d5fSmrg# Use a double $ so make ignores it.
2357a0195d5fSmrgtest "$program_suffix" != NONE &&
2358a0195d5fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
23596600fe5bSmrg# Double any \ or $.
2360a0195d5fSmrg# By default was `s,x,x', remove it if useless.
23616600fe5bSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23626600fe5bSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2363a0195d5fSmrg
2364a0195d5fSmrg# expand $ac_aux_dir to an absolute path
2365a0195d5fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2366a0195d5fSmrg
23676600fe5bSmrgif test x"${MISSING+set}" != xset; then
23686600fe5bSmrg  case $am_aux_dir in
23696600fe5bSmrg  *\ * | *\	*)
23706600fe5bSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23716600fe5bSmrg  *)
23726600fe5bSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23736600fe5bSmrg  esac
23746600fe5bSmrgfi
2375a0195d5fSmrg# Use eval to expand $SHELL
2376a0195d5fSmrgif eval "$MISSING --run true"; then
2377a0195d5fSmrg  am_missing_run="$MISSING --run "
2378a0195d5fSmrgelse
2379a0195d5fSmrg  am_missing_run=
23806f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
23816600fe5bSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23826600fe5bSmrgfi
23836600fe5bSmrg
23846600fe5bSmrgif test x"${install_sh}" != xset; then
23856600fe5bSmrg  case $am_aux_dir in
23866600fe5bSmrg  *\ * | *\	*)
23876600fe5bSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
23886600fe5bSmrg  *)
23896600fe5bSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
23906600fe5bSmrg  esac
23916600fe5bSmrgfi
23926600fe5bSmrg
23936600fe5bSmrg# Installed binaries are usually stripped using `strip' when the user
23946600fe5bSmrg# run `make install-strip'.  However `strip' might not be the right
23956600fe5bSmrg# tool to use in cross-compilation environments, therefore Automake
23966600fe5bSmrg# will honor the `STRIP' environment variable to overrule this program.
23976600fe5bSmrgif test "$cross_compiling" != no; then
23986600fe5bSmrg  if test -n "$ac_tool_prefix"; then
23996600fe5bSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24006600fe5bSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
24016f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24026600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
24032ab73d9fSmrgif ${ac_cv_prog_STRIP+:} false; then :
24046600fe5bSmrg  $as_echo_n "(cached) " >&6
24056600fe5bSmrgelse
24066600fe5bSmrg  if test -n "$STRIP"; then
24076600fe5bSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24086600fe5bSmrgelse
24096600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24106600fe5bSmrgfor as_dir in $PATH
24116600fe5bSmrgdo
24126600fe5bSmrg  IFS=$as_save_IFS
24136600fe5bSmrg  test -z "$as_dir" && as_dir=.
24146f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24156600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24166600fe5bSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
24176f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24186600fe5bSmrg    break 2
24196600fe5bSmrg  fi
24206600fe5bSmrgdone
24216f5dd5c2Smrg  done
24226600fe5bSmrgIFS=$as_save_IFS
24236600fe5bSmrg
24246600fe5bSmrgfi
24256600fe5bSmrgfi
24266600fe5bSmrgSTRIP=$ac_cv_prog_STRIP
24276600fe5bSmrgif test -n "$STRIP"; then
24286f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24296600fe5bSmrg$as_echo "$STRIP" >&6; }
24306600fe5bSmrgelse
24316f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24326600fe5bSmrg$as_echo "no" >&6; }
24336600fe5bSmrgfi
24346600fe5bSmrg
24356600fe5bSmrg
24366600fe5bSmrgfi
24376600fe5bSmrgif test -z "$ac_cv_prog_STRIP"; then
24386600fe5bSmrg  ac_ct_STRIP=$STRIP
24396600fe5bSmrg  # Extract the first word of "strip", so it can be a program name with args.
24406600fe5bSmrgset dummy strip; ac_word=$2
24416f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24426600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
24432ab73d9fSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
24446600fe5bSmrg  $as_echo_n "(cached) " >&6
24456600fe5bSmrgelse
24466600fe5bSmrg  if test -n "$ac_ct_STRIP"; then
24476600fe5bSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24486600fe5bSmrgelse
24496600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24506600fe5bSmrgfor as_dir in $PATH
24516600fe5bSmrgdo
24526600fe5bSmrg  IFS=$as_save_IFS
24536600fe5bSmrg  test -z "$as_dir" && as_dir=.
24546f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24556600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24566600fe5bSmrg    ac_cv_prog_ac_ct_STRIP="strip"
24576f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24586600fe5bSmrg    break 2
24596600fe5bSmrg  fi
24606600fe5bSmrgdone
24616f5dd5c2Smrg  done
24626600fe5bSmrgIFS=$as_save_IFS
24636600fe5bSmrg
24646600fe5bSmrgfi
24656600fe5bSmrgfi
24666600fe5bSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24676600fe5bSmrgif test -n "$ac_ct_STRIP"; then
24686f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24696600fe5bSmrg$as_echo "$ac_ct_STRIP" >&6; }
24706600fe5bSmrgelse
24716f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24726600fe5bSmrg$as_echo "no" >&6; }
24736600fe5bSmrgfi
24746600fe5bSmrg
24756600fe5bSmrg  if test "x$ac_ct_STRIP" = x; then
24766600fe5bSmrg    STRIP=":"
24776600fe5bSmrg  else
24786600fe5bSmrg    case $cross_compiling:$ac_tool_warned in
24796600fe5bSmrgyes:)
24806f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24816600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24826600fe5bSmrgac_tool_warned=yes ;;
24836600fe5bSmrgesac
24846600fe5bSmrg    STRIP=$ac_ct_STRIP
24856600fe5bSmrg  fi
24866600fe5bSmrgelse
24876600fe5bSmrg  STRIP="$ac_cv_prog_STRIP"
2488a0195d5fSmrgfi
2489a0195d5fSmrg
24906600fe5bSmrgfi
24916600fe5bSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24926600fe5bSmrg
24936f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
24946600fe5bSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2495a0195d5fSmrgif test -z "$MKDIR_P"; then
24962ab73d9fSmrg  if ${ac_cv_path_mkdir+:} false; then :
24976600fe5bSmrg  $as_echo_n "(cached) " >&6
2498a0195d5fSmrgelse
2499a0195d5fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500a0195d5fSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2501a0195d5fSmrgdo
2502a0195d5fSmrg  IFS=$as_save_IFS
2503a0195d5fSmrg  test -z "$as_dir" && as_dir=.
25046f5dd5c2Smrg    for ac_prog in mkdir gmkdir; do
2505a0195d5fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2506a0195d5fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2507a0195d5fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2508a0195d5fSmrg	     'mkdir (GNU coreutils) '* | \
2509a0195d5fSmrg	     'mkdir (coreutils) '* | \
2510a0195d5fSmrg	     'mkdir (fileutils) '4.1*)
2511a0195d5fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2512a0195d5fSmrg	       break 3;;
2513a0195d5fSmrg	   esac
2514a0195d5fSmrg	 done
2515a0195d5fSmrg       done
25166f5dd5c2Smrg  done
2517a0195d5fSmrgIFS=$as_save_IFS
2518a0195d5fSmrg
2519a0195d5fSmrgfi
2520a0195d5fSmrg
25216f5dd5c2Smrg  test -d ./--version && rmdir ./--version
2522a0195d5fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2523a0195d5fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2524a0195d5fSmrg  else
2525a0195d5fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2526a0195d5fSmrg    # value for MKDIR_P within a source directory, because that will
2527a0195d5fSmrg    # break other packages using the cache if that directory is
2528a0195d5fSmrg    # removed, or if the value is a relative name.
2529a0195d5fSmrg    MKDIR_P="$ac_install_sh -d"
2530a0195d5fSmrg  fi
2531a0195d5fSmrgfi
25326f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
25336600fe5bSmrg$as_echo "$MKDIR_P" >&6; }
2534a0195d5fSmrg
2535a0195d5fSmrgmkdir_p="$MKDIR_P"
2536a0195d5fSmrgcase $mkdir_p in
2537a0195d5fSmrg  [\\/$]* | ?:[\\/]*) ;;
2538a0195d5fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2539a0195d5fSmrgesac
2540a0195d5fSmrg
2541a0195d5fSmrgfor ac_prog in gawk mawk nawk awk
2542a0195d5fSmrgdo
2543a0195d5fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2544a0195d5fSmrgset dummy $ac_prog; ac_word=$2
25456f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25466600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
25472ab73d9fSmrgif ${ac_cv_prog_AWK+:} false; then :
25486600fe5bSmrg  $as_echo_n "(cached) " >&6
2549a0195d5fSmrgelse
2550a0195d5fSmrg  if test -n "$AWK"; then
2551a0195d5fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2552a0195d5fSmrgelse
2553a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554a0195d5fSmrgfor as_dir in $PATH
2555a0195d5fSmrgdo
2556a0195d5fSmrg  IFS=$as_save_IFS
2557a0195d5fSmrg  test -z "$as_dir" && as_dir=.
25586f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2559a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560a0195d5fSmrg    ac_cv_prog_AWK="$ac_prog"
25616f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562a0195d5fSmrg    break 2
2563a0195d5fSmrg  fi
2564a0195d5fSmrgdone
25656f5dd5c2Smrg  done
2566a0195d5fSmrgIFS=$as_save_IFS
2567a0195d5fSmrg
2568a0195d5fSmrgfi
2569a0195d5fSmrgfi
2570a0195d5fSmrgAWK=$ac_cv_prog_AWK
2571a0195d5fSmrgif test -n "$AWK"; then
25726f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25736600fe5bSmrg$as_echo "$AWK" >&6; }
2574a0195d5fSmrgelse
25756f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25766600fe5bSmrg$as_echo "no" >&6; }
2577a0195d5fSmrgfi
2578a0195d5fSmrg
2579a0195d5fSmrg
2580a0195d5fSmrg  test -n "$AWK" && break
2581a0195d5fSmrgdone
2582a0195d5fSmrg
25836f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25846600fe5bSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25856600fe5bSmrgset x ${MAKE-make}
25866600fe5bSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25872ab73d9fSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
25886600fe5bSmrg  $as_echo_n "(cached) " >&6
2589a0195d5fSmrgelse
2590a0195d5fSmrg  cat >conftest.make <<\_ACEOF
2591a0195d5fSmrgSHELL = /bin/sh
2592a0195d5fSmrgall:
2593a0195d5fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2594a0195d5fSmrg_ACEOF
25952ab73d9fSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2596a0195d5fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2597a0195d5fSmrg  *@@@%%%=?*=@@@%%%*)
2598a0195d5fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2599a0195d5fSmrg  *)
2600a0195d5fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2601a0195d5fSmrgesac
2602a0195d5fSmrgrm -f conftest.make
2603a0195d5fSmrgfi
2604a0195d5fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
26056f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26066600fe5bSmrg$as_echo "yes" >&6; }
2607a0195d5fSmrg  SET_MAKE=
2608a0195d5fSmrgelse
26096f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26106600fe5bSmrg$as_echo "no" >&6; }
2611a0195d5fSmrg  SET_MAKE="MAKE=${MAKE-make}"
2612a0195d5fSmrgfi
2613a0195d5fSmrg
2614a0195d5fSmrgrm -rf .tst 2>/dev/null
2615a0195d5fSmrgmkdir .tst 2>/dev/null
2616a0195d5fSmrgif test -d .tst; then
2617a0195d5fSmrg  am__leading_dot=.
2618a0195d5fSmrgelse
2619a0195d5fSmrg  am__leading_dot=_
2620a0195d5fSmrgfi
2621a0195d5fSmrgrmdir .tst 2>/dev/null
2622a0195d5fSmrg
2623a0195d5fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2624a0195d5fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2625a0195d5fSmrg  # is not polluted with repeated "-I."
2626a0195d5fSmrg  am__isrc=' -I$(srcdir)'
2627a0195d5fSmrg  # test to see if srcdir already configured
2628a0195d5fSmrg  if test -f $srcdir/config.status; then
26292ab73d9fSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2630a0195d5fSmrg  fi
2631a0195d5fSmrgfi
2632a0195d5fSmrg
2633a0195d5fSmrg# test whether we have cygpath
2634a0195d5fSmrgif test -z "$CYGPATH_W"; then
2635a0195d5fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2636a0195d5fSmrg    CYGPATH_W='cygpath -w'
2637a0195d5fSmrg  else
2638a0195d5fSmrg    CYGPATH_W=echo
2639a0195d5fSmrg  fi
2640a0195d5fSmrgfi
2641a0195d5fSmrg
2642a0195d5fSmrg
2643a0195d5fSmrg# Define the identity of the package.
2644a0195d5fSmrg PACKAGE='xset'
26452ab73d9fSmrg VERSION='1.2.1'
2646a0195d5fSmrg
2647a0195d5fSmrg
2648a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2649a0195d5fSmrg#define PACKAGE "$PACKAGE"
2650a0195d5fSmrg_ACEOF
2651a0195d5fSmrg
2652a0195d5fSmrg
2653a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2654a0195d5fSmrg#define VERSION "$VERSION"
2655a0195d5fSmrg_ACEOF
2656a0195d5fSmrg
2657a0195d5fSmrg# Some tools Automake needs.
2658a0195d5fSmrg
2659a0195d5fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2660a0195d5fSmrg
2661a0195d5fSmrg
2662a0195d5fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2663a0195d5fSmrg
2664a0195d5fSmrg
2665a0195d5fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2666a0195d5fSmrg
2667a0195d5fSmrg
2668a0195d5fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2669a0195d5fSmrg
2670a0195d5fSmrg
2671a0195d5fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2672a0195d5fSmrg
2673a0195d5fSmrg# We need awk for the "check" target.  The system "awk" is bad on
2674a0195d5fSmrg# some platforms.
2675a0195d5fSmrg# Always define AMTAR for backward compatibility.
2676a0195d5fSmrg
2677a0195d5fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2678a0195d5fSmrg
2679a0195d5fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2680a0195d5fSmrg
2681a0195d5fSmrg
2682a0195d5fSmrg
2683a0195d5fSmrg
2684a0195d5fSmrg
26856600fe5bSmrg
26866f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26876600fe5bSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2688a0195d5fSmrg    # Check whether --enable-maintainer-mode was given.
26896f5dd5c2Smrgif test "${enable_maintainer_mode+set}" = set; then :
2690a0195d5fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2691a0195d5fSmrgelse
2692a0195d5fSmrg  USE_MAINTAINER_MODE=no
2693a0195d5fSmrgfi
2694a0195d5fSmrg
26956f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
26966600fe5bSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2697a0195d5fSmrg   if test $USE_MAINTAINER_MODE = yes; then
2698a0195d5fSmrg  MAINTAINER_MODE_TRUE=
2699a0195d5fSmrg  MAINTAINER_MODE_FALSE='#'
2700a0195d5fSmrgelse
2701a0195d5fSmrg  MAINTAINER_MODE_TRUE='#'
2702a0195d5fSmrg  MAINTAINER_MODE_FALSE=
2703a0195d5fSmrgfi
2704a0195d5fSmrg
2705a0195d5fSmrg  MAINT=$MAINTAINER_MODE_TRUE
2706a0195d5fSmrg
2707a0195d5fSmrg
2708a0195d5fSmrg
27092ab73d9fSmrg# Require xorg-macros: XORG_MANPAGE_SECTIONS
27106600fe5bSmrg
27116600fe5bSmrg
27126600fe5bSmrg
27136600fe5bSmrg
27146600fe5bSmrg
27156600fe5bSmrg
27166600fe5bSmrg
27176600fe5bSmrg
27186600fe5bSmrg
27196600fe5bSmrg
27206600fe5bSmrg
27216f5dd5c2SmrgDEPDIR="${am__leading_dot}deps"
2722a0195d5fSmrg
27236f5dd5c2Smrgac_config_commands="$ac_config_commands depfiles"
2724a0195d5fSmrg
2725a0195d5fSmrg
27266f5dd5c2Smrgam_make=${MAKE-make}
27276f5dd5c2Smrgcat > confinc << 'END'
27286f5dd5c2Smrgam__doit:
27296f5dd5c2Smrg	@echo this is the am__doit target
27306f5dd5c2Smrg.PHONY: am__doit
27316f5dd5c2SmrgEND
27326f5dd5c2Smrg# If we don't find an include directive, just comment out the code.
27336f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
27346f5dd5c2Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
27356f5dd5c2Smrgam__include="#"
27366f5dd5c2Smrgam__quote=
27376f5dd5c2Smrg_am_result=none
27386f5dd5c2Smrg# First try GNU make style include.
27396f5dd5c2Smrgecho "include confinc" > confmf
27406f5dd5c2Smrg# Ignore all kinds of additional output from `make'.
27416f5dd5c2Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
27426f5dd5c2Smrg*the\ am__doit\ target*)
27436f5dd5c2Smrg  am__include=include
27446f5dd5c2Smrg  am__quote=
27456f5dd5c2Smrg  _am_result=GNU
27466f5dd5c2Smrg  ;;
27476f5dd5c2Smrgesac
27486f5dd5c2Smrg# Now try BSD make style include.
27496f5dd5c2Smrgif test "$am__include" = "#"; then
27506f5dd5c2Smrg   echo '.include "confinc"' > confmf
27516f5dd5c2Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
27526f5dd5c2Smrg   *the\ am__doit\ target*)
27536f5dd5c2Smrg     am__include=.include
27546f5dd5c2Smrg     am__quote="\""
27556f5dd5c2Smrg     _am_result=BSD
27566f5dd5c2Smrg     ;;
27576f5dd5c2Smrg   esac
27586f5dd5c2Smrgfi
27596f5dd5c2Smrg
27606f5dd5c2Smrg
27616f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27626f5dd5c2Smrg$as_echo "$_am_result" >&6; }
27636f5dd5c2Smrgrm -f confinc confmf
27646f5dd5c2Smrg
27656f5dd5c2Smrg# Check whether --enable-dependency-tracking was given.
27666f5dd5c2Smrgif test "${enable_dependency_tracking+set}" = set; then :
27676f5dd5c2Smrg  enableval=$enable_dependency_tracking;
27686f5dd5c2Smrgfi
27696f5dd5c2Smrg
27706f5dd5c2Smrgif test "x$enable_dependency_tracking" != xno; then
27716f5dd5c2Smrg  am_depcomp="$ac_aux_dir/depcomp"
27726f5dd5c2Smrg  AMDEPBACKSLASH='\'
27736f5dd5c2Smrgfi
27746f5dd5c2Smrg if test "x$enable_dependency_tracking" != xno; then
27756f5dd5c2Smrg  AMDEP_TRUE=
27766f5dd5c2Smrg  AMDEP_FALSE='#'
27776f5dd5c2Smrgelse
27786f5dd5c2Smrg  AMDEP_TRUE='#'
27796f5dd5c2Smrg  AMDEP_FALSE=
27806f5dd5c2Smrgfi
27816f5dd5c2Smrg
27826f5dd5c2Smrg
27836f5dd5c2Smrgac_ext=c
27846f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
27856f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27866f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27876f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27886f5dd5c2Smrgif test -n "$ac_tool_prefix"; then
27896f5dd5c2Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27906f5dd5c2Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
27916f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27926f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
27932ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
27946f5dd5c2Smrg  $as_echo_n "(cached) " >&6
27956f5dd5c2Smrgelse
27966f5dd5c2Smrg  if test -n "$CC"; then
27976f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27986f5dd5c2Smrgelse
27996f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28006f5dd5c2Smrgfor as_dir in $PATH
28016f5dd5c2Smrgdo
28026f5dd5c2Smrg  IFS=$as_save_IFS
28036f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
28046f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28056f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28066f5dd5c2Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
28076f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28086f5dd5c2Smrg    break 2
28096f5dd5c2Smrg  fi
28106f5dd5c2Smrgdone
28116f5dd5c2Smrg  done
28126f5dd5c2SmrgIFS=$as_save_IFS
28136f5dd5c2Smrg
28146f5dd5c2Smrgfi
28156f5dd5c2Smrgfi
28166f5dd5c2SmrgCC=$ac_cv_prog_CC
28176f5dd5c2Smrgif test -n "$CC"; then
28186f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28196f5dd5c2Smrg$as_echo "$CC" >&6; }
28206f5dd5c2Smrgelse
28216f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28226f5dd5c2Smrg$as_echo "no" >&6; }
28236f5dd5c2Smrgfi
28246f5dd5c2Smrg
28256f5dd5c2Smrg
28266f5dd5c2Smrgfi
28276f5dd5c2Smrgif test -z "$ac_cv_prog_CC"; then
2828a0195d5fSmrg  ac_ct_CC=$CC
2829a0195d5fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2830a0195d5fSmrgset dummy gcc; ac_word=$2
28316f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28326600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
28332ab73d9fSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
28346600fe5bSmrg  $as_echo_n "(cached) " >&6
2835a0195d5fSmrgelse
2836a0195d5fSmrg  if test -n "$ac_ct_CC"; then
2837a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2838a0195d5fSmrgelse
2839a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840a0195d5fSmrgfor as_dir in $PATH
2841a0195d5fSmrgdo
2842a0195d5fSmrg  IFS=$as_save_IFS
2843a0195d5fSmrg  test -z "$as_dir" && as_dir=.
28446f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2845a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846a0195d5fSmrg    ac_cv_prog_ac_ct_CC="gcc"
28476f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848a0195d5fSmrg    break 2
2849a0195d5fSmrg  fi
2850a0195d5fSmrgdone
28516f5dd5c2Smrg  done
2852a0195d5fSmrgIFS=$as_save_IFS
2853a0195d5fSmrg
2854a0195d5fSmrgfi
2855a0195d5fSmrgfi
2856a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2857a0195d5fSmrgif test -n "$ac_ct_CC"; then
28586f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28596600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
2860a0195d5fSmrgelse
28616f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28626600fe5bSmrg$as_echo "no" >&6; }
2863a0195d5fSmrgfi
2864a0195d5fSmrg
2865a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
2866a0195d5fSmrg    CC=""
2867a0195d5fSmrg  else
2868a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
2869a0195d5fSmrgyes:)
28706f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28716600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872a0195d5fSmrgac_tool_warned=yes ;;
2873a0195d5fSmrgesac
2874a0195d5fSmrg    CC=$ac_ct_CC
2875a0195d5fSmrg  fi
2876a0195d5fSmrgelse
2877a0195d5fSmrg  CC="$ac_cv_prog_CC"
2878a0195d5fSmrgfi
2879a0195d5fSmrg
2880a0195d5fSmrgif test -z "$CC"; then
2881a0195d5fSmrg          if test -n "$ac_tool_prefix"; then
2882a0195d5fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2883a0195d5fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
28846f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28856600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
28862ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
28876600fe5bSmrg  $as_echo_n "(cached) " >&6
2888a0195d5fSmrgelse
2889a0195d5fSmrg  if test -n "$CC"; then
2890a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2891a0195d5fSmrgelse
2892a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893a0195d5fSmrgfor as_dir in $PATH
2894a0195d5fSmrgdo
2895a0195d5fSmrg  IFS=$as_save_IFS
2896a0195d5fSmrg  test -z "$as_dir" && as_dir=.
28976f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2898a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899a0195d5fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
29006f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901a0195d5fSmrg    break 2
2902a0195d5fSmrg  fi
2903a0195d5fSmrgdone
29046f5dd5c2Smrg  done
2905a0195d5fSmrgIFS=$as_save_IFS
2906a0195d5fSmrg
2907a0195d5fSmrgfi
2908a0195d5fSmrgfi
2909a0195d5fSmrgCC=$ac_cv_prog_CC
2910a0195d5fSmrgif test -n "$CC"; then
29116f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29126600fe5bSmrg$as_echo "$CC" >&6; }
2913a0195d5fSmrgelse
29146f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29156600fe5bSmrg$as_echo "no" >&6; }
2916a0195d5fSmrgfi
2917a0195d5fSmrg
2918a0195d5fSmrg
2919a0195d5fSmrg  fi
2920a0195d5fSmrgfi
2921a0195d5fSmrgif test -z "$CC"; then
2922a0195d5fSmrg  # Extract the first word of "cc", so it can be a program name with args.
2923a0195d5fSmrgset dummy cc; ac_word=$2
29246f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29256600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
29262ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
29276600fe5bSmrg  $as_echo_n "(cached) " >&6
2928a0195d5fSmrgelse
2929a0195d5fSmrg  if test -n "$CC"; then
2930a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2931a0195d5fSmrgelse
2932a0195d5fSmrg  ac_prog_rejected=no
2933a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934a0195d5fSmrgfor as_dir in $PATH
2935a0195d5fSmrgdo
2936a0195d5fSmrg  IFS=$as_save_IFS
2937a0195d5fSmrg  test -z "$as_dir" && as_dir=.
29386f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2939a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940a0195d5fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2941a0195d5fSmrg       ac_prog_rejected=yes
2942a0195d5fSmrg       continue
2943a0195d5fSmrg     fi
2944a0195d5fSmrg    ac_cv_prog_CC="cc"
29456f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2946a0195d5fSmrg    break 2
2947a0195d5fSmrg  fi
2948a0195d5fSmrgdone
29496f5dd5c2Smrg  done
2950a0195d5fSmrgIFS=$as_save_IFS
2951a0195d5fSmrg
2952a0195d5fSmrgif test $ac_prog_rejected = yes; then
2953a0195d5fSmrg  # We found a bogon in the path, so make sure we never use it.
2954a0195d5fSmrg  set dummy $ac_cv_prog_CC
2955a0195d5fSmrg  shift
2956a0195d5fSmrg  if test $# != 0; then
2957a0195d5fSmrg    # We chose a different compiler from the bogus one.
2958a0195d5fSmrg    # However, it has the same basename, so the bogon will be chosen
2959a0195d5fSmrg    # first if we set CC to just the basename; use the full file name.
2960a0195d5fSmrg    shift
2961a0195d5fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2962a0195d5fSmrg  fi
2963a0195d5fSmrgfi
2964a0195d5fSmrgfi
2965a0195d5fSmrgfi
2966a0195d5fSmrgCC=$ac_cv_prog_CC
2967a0195d5fSmrgif test -n "$CC"; then
29686f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29696600fe5bSmrg$as_echo "$CC" >&6; }
2970a0195d5fSmrgelse
29716f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29726600fe5bSmrg$as_echo "no" >&6; }
2973a0195d5fSmrgfi
2974a0195d5fSmrg
2975a0195d5fSmrg
2976a0195d5fSmrgfi
2977a0195d5fSmrgif test -z "$CC"; then
2978a0195d5fSmrg  if test -n "$ac_tool_prefix"; then
2979a0195d5fSmrg  for ac_prog in cl.exe
2980a0195d5fSmrg  do
2981a0195d5fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2982a0195d5fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
29836f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29846600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
29852ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
29866600fe5bSmrg  $as_echo_n "(cached) " >&6
2987a0195d5fSmrgelse
2988a0195d5fSmrg  if test -n "$CC"; then
2989a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2990a0195d5fSmrgelse
2991a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992a0195d5fSmrgfor as_dir in $PATH
2993a0195d5fSmrgdo
2994a0195d5fSmrg  IFS=$as_save_IFS
2995a0195d5fSmrg  test -z "$as_dir" && as_dir=.
29966f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2997a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998a0195d5fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29996f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000a0195d5fSmrg    break 2
3001a0195d5fSmrg  fi
3002a0195d5fSmrgdone
30036f5dd5c2Smrg  done
3004a0195d5fSmrgIFS=$as_save_IFS
3005a0195d5fSmrg
3006a0195d5fSmrgfi
3007a0195d5fSmrgfi
3008a0195d5fSmrgCC=$ac_cv_prog_CC
3009a0195d5fSmrgif test -n "$CC"; then
30106f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30116600fe5bSmrg$as_echo "$CC" >&6; }
3012a0195d5fSmrgelse
30136f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30146600fe5bSmrg$as_echo "no" >&6; }
3015a0195d5fSmrgfi
3016a0195d5fSmrg
3017a0195d5fSmrg
3018a0195d5fSmrg    test -n "$CC" && break
3019a0195d5fSmrg  done
3020a0195d5fSmrgfi
3021a0195d5fSmrgif test -z "$CC"; then
3022a0195d5fSmrg  ac_ct_CC=$CC
3023a0195d5fSmrg  for ac_prog in cl.exe
3024a0195d5fSmrgdo
3025a0195d5fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3026a0195d5fSmrgset dummy $ac_prog; ac_word=$2
30276f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30286600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
30292ab73d9fSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30306600fe5bSmrg  $as_echo_n "(cached) " >&6
3031a0195d5fSmrgelse
3032a0195d5fSmrg  if test -n "$ac_ct_CC"; then
3033a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034a0195d5fSmrgelse
3035a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036a0195d5fSmrgfor as_dir in $PATH
3037a0195d5fSmrgdo
3038a0195d5fSmrg  IFS=$as_save_IFS
3039a0195d5fSmrg  test -z "$as_dir" && as_dir=.
30406f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3041a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042a0195d5fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
30436f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044a0195d5fSmrg    break 2
3045a0195d5fSmrg  fi
3046a0195d5fSmrgdone
30476f5dd5c2Smrg  done
3048a0195d5fSmrgIFS=$as_save_IFS
3049a0195d5fSmrg
3050a0195d5fSmrgfi
3051a0195d5fSmrgfi
3052a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3053a0195d5fSmrgif test -n "$ac_ct_CC"; then
30546f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30556600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
3056a0195d5fSmrgelse
30576f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30586600fe5bSmrg$as_echo "no" >&6; }
3059a0195d5fSmrgfi
3060a0195d5fSmrg
3061a0195d5fSmrg
3062a0195d5fSmrg  test -n "$ac_ct_CC" && break
3063a0195d5fSmrgdone
3064a0195d5fSmrg
3065a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
3066a0195d5fSmrg    CC=""
3067a0195d5fSmrg  else
3068a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
3069a0195d5fSmrgyes:)
30706f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30716600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3072a0195d5fSmrgac_tool_warned=yes ;;
3073a0195d5fSmrgesac
3074a0195d5fSmrg    CC=$ac_ct_CC
3075a0195d5fSmrg  fi
3076a0195d5fSmrgfi
3077a0195d5fSmrg
3078a0195d5fSmrgfi
3079a0195d5fSmrg
3080a0195d5fSmrg
30816f5dd5c2Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30826600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30832ab73d9fSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
30842ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
3085a0195d5fSmrg
3086a0195d5fSmrg# Provide some information about the compiler.
30876f5dd5c2Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30886600fe5bSmrgset X $ac_compile
30896600fe5bSmrgac_compiler=$2
30906f5dd5c2Smrgfor ac_option in --version -v -V -qversion; do
30916f5dd5c2Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3092a0195d5fSmrgcase "(($ac_try" in
3093a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3095a0195d5fSmrgesac
30966f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30976f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
30986f5dd5c2Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3099a0195d5fSmrg  ac_status=$?
31006f5dd5c2Smrg  if test -s conftest.err; then
31016f5dd5c2Smrg    sed '10a\
31026f5dd5c2Smrg... rest of stderr output deleted ...
31036f5dd5c2Smrg         10q' conftest.err >conftest.er1
31046f5dd5c2Smrg    cat conftest.er1 >&5
31056f5dd5c2Smrg  fi
31066f5dd5c2Smrg  rm -f conftest.er1 conftest.err
31076f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31086f5dd5c2Smrg  test $ac_status = 0; }
31096f5dd5c2Smrgdone
3110a0195d5fSmrg
31116f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112a0195d5fSmrg/* end confdefs.h.  */
3113a0195d5fSmrg
3114a0195d5fSmrgint
3115a0195d5fSmrgmain ()
3116a0195d5fSmrg{
3117a0195d5fSmrg
3118a0195d5fSmrg  ;
3119a0195d5fSmrg  return 0;
3120a0195d5fSmrg}
3121a0195d5fSmrg_ACEOF
3122a0195d5fSmrgac_clean_files_save=$ac_clean_files
31236600fe5bSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3124a0195d5fSmrg# Try to create an executable without -o first, disregard a.out.
3125a0195d5fSmrg# It will help us diagnose broken compilers, and finding out an intuition
3126a0195d5fSmrg# of exeext.
31276f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
31286f5dd5c2Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
31296600fe5bSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31306600fe5bSmrg
31316600fe5bSmrg# The possible output files:
31326600fe5bSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
31336600fe5bSmrg
3134a0195d5fSmrgac_rmfiles=
3135a0195d5fSmrgfor ac_file in $ac_files
3136a0195d5fSmrgdo
3137a0195d5fSmrg  case $ac_file in
31386600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3139a0195d5fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3140a0195d5fSmrg  esac
3141a0195d5fSmrgdone
3142a0195d5fSmrgrm -f $ac_rmfiles
3143a0195d5fSmrg
31446f5dd5c2Smrgif { { ac_try="$ac_link_default"
3145a0195d5fSmrgcase "(($ac_try" in
3146a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3148a0195d5fSmrgesac
31496f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31506f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3151a0195d5fSmrg  (eval "$ac_link_default") 2>&5
3152a0195d5fSmrg  ac_status=$?
31536f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31546f5dd5c2Smrg  test $ac_status = 0; }; then :
3155a0195d5fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3156a0195d5fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3157a0195d5fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3158a0195d5fSmrg# so that the user can short-circuit this test for compilers unknown to
3159a0195d5fSmrg# Autoconf.
3160a0195d5fSmrgfor ac_file in $ac_files ''
3161a0195d5fSmrgdo
3162a0195d5fSmrg  test -f "$ac_file" || continue
3163a0195d5fSmrg  case $ac_file in
31646600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165a0195d5fSmrg	;;
3166a0195d5fSmrg    [ab].out )
3167a0195d5fSmrg	# We found the default executable, but exeext='' is most
3168a0195d5fSmrg	# certainly right.
3169a0195d5fSmrg	break;;
3170a0195d5fSmrg    *.* )
31716f5dd5c2Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3172a0195d5fSmrg	then :; else
3173a0195d5fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174a0195d5fSmrg	fi
3175a0195d5fSmrg	# We set ac_cv_exeext here because the later test for it is not
3176a0195d5fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3177a0195d5fSmrg	# argument, so we may need to know it at that point already.
3178a0195d5fSmrg	# Even if this section looks crufty: it has the advantage of
3179a0195d5fSmrg	# actually working.
3180a0195d5fSmrg	break;;
3181a0195d5fSmrg    * )
3182a0195d5fSmrg	break;;
3183a0195d5fSmrg  esac
3184a0195d5fSmrgdone
3185a0195d5fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3186a0195d5fSmrg
3187a0195d5fSmrgelse
3188a0195d5fSmrg  ac_file=''
3189a0195d5fSmrgfi
31906f5dd5c2Smrgif test -z "$ac_file"; then :
31916f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31926f5dd5c2Smrg$as_echo "no" >&6; }
31936f5dd5c2Smrg$as_echo "$as_me: failed program was:" >&5
3194a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3195a0195d5fSmrg
31966f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31976600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31982ab73d9fSmrgas_fn_error 77 "C compiler cannot create executables
31992ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
32006f5dd5c2Smrgelse
32016f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32026f5dd5c2Smrg$as_echo "yes" >&6; }
3203a0195d5fSmrgfi
32046f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
32056f5dd5c2Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
32066f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
32076f5dd5c2Smrg$as_echo "$ac_file" >&6; }
3208a0195d5fSmrgac_exeext=$ac_cv_exeext
3209a0195d5fSmrg
32106600fe5bSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3211a0195d5fSmrgac_clean_files=$ac_clean_files_save
32126f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
32136600fe5bSmrg$as_echo_n "checking for suffix of executables... " >&6; }
32146f5dd5c2Smrgif { { ac_try="$ac_link"
3215a0195d5fSmrgcase "(($ac_try" in
3216a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3218a0195d5fSmrgesac
32196f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32206f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3221a0195d5fSmrg  (eval "$ac_link") 2>&5
3222a0195d5fSmrg  ac_status=$?
32236f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32246f5dd5c2Smrg  test $ac_status = 0; }; then :
3225a0195d5fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3226a0195d5fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3227a0195d5fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3228a0195d5fSmrg# `rm'.
3229a0195d5fSmrgfor ac_file in conftest.exe conftest conftest.*; do
3230a0195d5fSmrg  test -f "$ac_file" || continue
3231a0195d5fSmrg  case $ac_file in
32326600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3233a0195d5fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234a0195d5fSmrg	  break;;
3235a0195d5fSmrg    * ) break;;
3236a0195d5fSmrg  esac
3237a0195d5fSmrgdone
3238a0195d5fSmrgelse
32396f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32406600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32412ab73d9fSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
32422ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
3243a0195d5fSmrgfi
32446f5dd5c2Smrgrm -f conftest conftest$ac_cv_exeext
32456f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32466600fe5bSmrg$as_echo "$ac_cv_exeext" >&6; }
3247a0195d5fSmrg
3248a0195d5fSmrgrm -f conftest.$ac_ext
3249a0195d5fSmrgEXEEXT=$ac_cv_exeext
3250a0195d5fSmrgac_exeext=$EXEEXT
32516f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32526f5dd5c2Smrg/* end confdefs.h.  */
32536f5dd5c2Smrg#include <stdio.h>
32546f5dd5c2Smrgint
32556f5dd5c2Smrgmain ()
32566f5dd5c2Smrg{
32576f5dd5c2SmrgFILE *f = fopen ("conftest.out", "w");
32586f5dd5c2Smrg return ferror (f) || fclose (f) != 0;
32596f5dd5c2Smrg
32606f5dd5c2Smrg  ;
32616f5dd5c2Smrg  return 0;
32626f5dd5c2Smrg}
32636f5dd5c2Smrg_ACEOF
32646f5dd5c2Smrgac_clean_files="$ac_clean_files conftest.out"
32656f5dd5c2Smrg# Check that the compiler produces executables we can run.  If not, either
32666f5dd5c2Smrg# the compiler is broken, or we cross compile.
32676f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32686f5dd5c2Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
32696f5dd5c2Smrgif test "$cross_compiling" != yes; then
32706f5dd5c2Smrg  { { ac_try="$ac_link"
32716f5dd5c2Smrgcase "(($ac_try" in
32726f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
32746f5dd5c2Smrgesac
32756f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32766f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
32776f5dd5c2Smrg  (eval "$ac_link") 2>&5
32786f5dd5c2Smrg  ac_status=$?
32796f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32806f5dd5c2Smrg  test $ac_status = 0; }
32816f5dd5c2Smrg  if { ac_try='./conftest$ac_cv_exeext'
32826f5dd5c2Smrg  { { case "(($ac_try" in
32836f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32846f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
32856f5dd5c2Smrgesac
32866f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32876f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
32886f5dd5c2Smrg  (eval "$ac_try") 2>&5
32896f5dd5c2Smrg  ac_status=$?
32906f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32916f5dd5c2Smrg  test $ac_status = 0; }; }; then
32926f5dd5c2Smrg    cross_compiling=no
32936f5dd5c2Smrg  else
32946f5dd5c2Smrg    if test "$cross_compiling" = maybe; then
32956f5dd5c2Smrg	cross_compiling=yes
32966f5dd5c2Smrg    else
32976f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32986f5dd5c2Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32992ab73d9fSmrgas_fn_error $? "cannot run C compiled programs.
33006f5dd5c2SmrgIf you meant to cross compile, use \`--host'.
33012ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
33026f5dd5c2Smrg    fi
33036f5dd5c2Smrg  fi
33046f5dd5c2Smrgfi
33056f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
33066f5dd5c2Smrg$as_echo "$cross_compiling" >&6; }
33076f5dd5c2Smrg
33086f5dd5c2Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
33096f5dd5c2Smrgac_clean_files=$ac_clean_files_save
33106f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
33116600fe5bSmrg$as_echo_n "checking for suffix of object files... " >&6; }
33122ab73d9fSmrgif ${ac_cv_objext+:} false; then :
33136600fe5bSmrg  $as_echo_n "(cached) " >&6
3314a0195d5fSmrgelse
33156f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316a0195d5fSmrg/* end confdefs.h.  */
3317a0195d5fSmrg
3318a0195d5fSmrgint
3319a0195d5fSmrgmain ()
3320a0195d5fSmrg{
3321a0195d5fSmrg
3322a0195d5fSmrg  ;
3323a0195d5fSmrg  return 0;
3324a0195d5fSmrg}
3325a0195d5fSmrg_ACEOF
3326a0195d5fSmrgrm -f conftest.o conftest.obj
33276f5dd5c2Smrgif { { ac_try="$ac_compile"
3328a0195d5fSmrgcase "(($ac_try" in
3329a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3331a0195d5fSmrgesac
33326f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33336f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3334a0195d5fSmrg  (eval "$ac_compile") 2>&5
3335a0195d5fSmrg  ac_status=$?
33366f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33376f5dd5c2Smrg  test $ac_status = 0; }; then :
3338a0195d5fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3339a0195d5fSmrg  test -f "$ac_file" || continue;
3340a0195d5fSmrg  case $ac_file in
33416600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3342a0195d5fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3343a0195d5fSmrg       break;;
3344a0195d5fSmrg  esac
3345a0195d5fSmrgdone
3346a0195d5fSmrgelse
33476600fe5bSmrg  $as_echo "$as_me: failed program was:" >&5
3348a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3349a0195d5fSmrg
33506f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33516600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33522ab73d9fSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
33532ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
3354a0195d5fSmrgfi
3355a0195d5fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3356a0195d5fSmrgfi
33576f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
33586600fe5bSmrg$as_echo "$ac_cv_objext" >&6; }
3359a0195d5fSmrgOBJEXT=$ac_cv_objext
3360a0195d5fSmrgac_objext=$OBJEXT
33616f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
33626600fe5bSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
33632ab73d9fSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
33646600fe5bSmrg  $as_echo_n "(cached) " >&6
3365a0195d5fSmrgelse
33666f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367a0195d5fSmrg/* end confdefs.h.  */
3368a0195d5fSmrg
3369a0195d5fSmrgint
3370a0195d5fSmrgmain ()
3371a0195d5fSmrg{
3372a0195d5fSmrg#ifndef __GNUC__
3373a0195d5fSmrg       choke me
3374a0195d5fSmrg#endif
3375a0195d5fSmrg
3376a0195d5fSmrg  ;
3377a0195d5fSmrg  return 0;
3378a0195d5fSmrg}
3379a0195d5fSmrg_ACEOF
33806f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3381a0195d5fSmrg  ac_compiler_gnu=yes
3382a0195d5fSmrgelse
33836f5dd5c2Smrg  ac_compiler_gnu=no
3384a0195d5fSmrgfi
3385a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386a0195d5fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3387a0195d5fSmrg
3388a0195d5fSmrgfi
33896f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
33906600fe5bSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
33916600fe5bSmrgif test $ac_compiler_gnu = yes; then
33926600fe5bSmrg  GCC=yes
33936600fe5bSmrgelse
33946600fe5bSmrg  GCC=
33956600fe5bSmrgfi
3396a0195d5fSmrgac_test_CFLAGS=${CFLAGS+set}
3397a0195d5fSmrgac_save_CFLAGS=$CFLAGS
33986f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
33996600fe5bSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
34002ab73d9fSmrgif ${ac_cv_prog_cc_g+:} false; then :
34016600fe5bSmrg  $as_echo_n "(cached) " >&6
3402a0195d5fSmrgelse
3403a0195d5fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3404a0195d5fSmrg   ac_c_werror_flag=yes
3405a0195d5fSmrg   ac_cv_prog_cc_g=no
3406a0195d5fSmrg   CFLAGS="-g"
34076f5dd5c2Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408a0195d5fSmrg/* end confdefs.h.  */
3409a0195d5fSmrg
3410a0195d5fSmrgint
3411a0195d5fSmrgmain ()
3412a0195d5fSmrg{
3413a0195d5fSmrg
3414a0195d5fSmrg  ;
3415a0195d5fSmrg  return 0;
3416a0195d5fSmrg}
3417a0195d5fSmrg_ACEOF
34186f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3419a0195d5fSmrg  ac_cv_prog_cc_g=yes
3420a0195d5fSmrgelse
34216f5dd5c2Smrg  CFLAGS=""
34226f5dd5c2Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423a0195d5fSmrg/* end confdefs.h.  */
3424a0195d5fSmrg
3425a0195d5fSmrgint
3426a0195d5fSmrgmain ()
3427a0195d5fSmrg{
3428a0195d5fSmrg
3429a0195d5fSmrg  ;
3430a0195d5fSmrg  return 0;
3431a0195d5fSmrg}
3432a0195d5fSmrg_ACEOF
34336f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3434a0195d5fSmrg
34356f5dd5c2Smrgelse
34366f5dd5c2Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3437a0195d5fSmrg	 CFLAGS="-g"
34386f5dd5c2Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439a0195d5fSmrg/* end confdefs.h.  */
3440a0195d5fSmrg
3441a0195d5fSmrgint
3442a0195d5fSmrgmain ()
3443a0195d5fSmrg{
3444a0195d5fSmrg
3445a0195d5fSmrg  ;
3446a0195d5fSmrg  return 0;
3447a0195d5fSmrg}
3448a0195d5fSmrg_ACEOF
34496f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3450a0195d5fSmrg  ac_cv_prog_cc_g=yes
3451a0195d5fSmrgfi
3452a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453a0195d5fSmrgfi
3454a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455a0195d5fSmrgfi
3456a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457a0195d5fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3458a0195d5fSmrgfi
34596f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
34606600fe5bSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3461a0195d5fSmrgif test "$ac_test_CFLAGS" = set; then
3462a0195d5fSmrg  CFLAGS=$ac_save_CFLAGS
3463a0195d5fSmrgelif test $ac_cv_prog_cc_g = yes; then
3464a0195d5fSmrg  if test "$GCC" = yes; then
3465a0195d5fSmrg    CFLAGS="-g -O2"
3466a0195d5fSmrg  else
3467a0195d5fSmrg    CFLAGS="-g"
3468a0195d5fSmrg  fi
3469a0195d5fSmrgelse
3470a0195d5fSmrg  if test "$GCC" = yes; then
3471a0195d5fSmrg    CFLAGS="-O2"
3472a0195d5fSmrg  else
3473a0195d5fSmrg    CFLAGS=
3474a0195d5fSmrg  fi
3475a0195d5fSmrgfi
34766f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
34776600fe5bSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
34782ab73d9fSmrgif ${ac_cv_prog_cc_c89+:} false; then :
34796600fe5bSmrg  $as_echo_n "(cached) " >&6
3480a0195d5fSmrgelse
3481a0195d5fSmrg  ac_cv_prog_cc_c89=no
3482a0195d5fSmrgac_save_CC=$CC
34836f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484a0195d5fSmrg/* end confdefs.h.  */
3485a0195d5fSmrg#include <stdarg.h>
3486a0195d5fSmrg#include <stdio.h>
3487a0195d5fSmrg#include <sys/types.h>
3488a0195d5fSmrg#include <sys/stat.h>
3489a0195d5fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3490a0195d5fSmrgstruct buf { int x; };
3491a0195d5fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3492a0195d5fSmrgstatic char *e (p, i)
3493a0195d5fSmrg     char **p;
3494a0195d5fSmrg     int i;
3495a0195d5fSmrg{
3496a0195d5fSmrg  return p[i];
3497a0195d5fSmrg}
3498a0195d5fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3499a0195d5fSmrg{
3500a0195d5fSmrg  char *s;
3501a0195d5fSmrg  va_list v;
3502a0195d5fSmrg  va_start (v,p);
3503a0195d5fSmrg  s = g (p, va_arg (v,int));
3504a0195d5fSmrg  va_end (v);
3505a0195d5fSmrg  return s;
3506a0195d5fSmrg}
3507a0195d5fSmrg
3508a0195d5fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3509a0195d5fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3510a0195d5fSmrg   These don't provoke an error unfortunately, instead are silently treated
3511a0195d5fSmrg   as 'x'.  The following induces an error, until -std is added to get
3512a0195d5fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3513a0195d5fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3514a0195d5fSmrg   that's true only with -std.  */
3515a0195d5fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3516a0195d5fSmrg
3517a0195d5fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3518a0195d5fSmrg   inside strings and character constants.  */
3519a0195d5fSmrg#define FOO(x) 'x'
3520a0195d5fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3521a0195d5fSmrg
3522a0195d5fSmrgint test (int i, double x);
3523a0195d5fSmrgstruct s1 {int (*f) (int a);};
3524a0195d5fSmrgstruct s2 {int (*f) (double a);};
3525a0195d5fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3526a0195d5fSmrgint argc;
3527a0195d5fSmrgchar **argv;
3528a0195d5fSmrgint
3529a0195d5fSmrgmain ()
3530a0195d5fSmrg{
3531a0195d5fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3532a0195d5fSmrg  ;
3533a0195d5fSmrg  return 0;
3534a0195d5fSmrg}
3535a0195d5fSmrg_ACEOF
3536a0195d5fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3537a0195d5fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3538a0195d5fSmrgdo
3539a0195d5fSmrg  CC="$ac_save_CC $ac_arg"
35406f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3541a0195d5fSmrg  ac_cv_prog_cc_c89=$ac_arg
3542a0195d5fSmrgfi
3543a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext
3544a0195d5fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3545a0195d5fSmrgdone
3546a0195d5fSmrgrm -f conftest.$ac_ext
3547a0195d5fSmrgCC=$ac_save_CC
3548a0195d5fSmrg
3549a0195d5fSmrgfi
3550a0195d5fSmrg# AC_CACHE_VAL
3551a0195d5fSmrgcase "x$ac_cv_prog_cc_c89" in
3552a0195d5fSmrg  x)
35536f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35546600fe5bSmrg$as_echo "none needed" >&6; } ;;
3555a0195d5fSmrg  xno)
35566f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35576600fe5bSmrg$as_echo "unsupported" >&6; } ;;
3558a0195d5fSmrg  *)
3559a0195d5fSmrg    CC="$CC $ac_cv_prog_cc_c89"
35606f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
35616600fe5bSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3562a0195d5fSmrgesac
35636f5dd5c2Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3564a0195d5fSmrg
35656f5dd5c2Smrgfi
3566a0195d5fSmrg
3567a0195d5fSmrgac_ext=c
3568a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
3569a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3572a0195d5fSmrg
3573a0195d5fSmrgdepcc="$CC"   am_compiler_list=
3574a0195d5fSmrg
35756f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
35766600fe5bSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
35772ab73d9fSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
35786600fe5bSmrg  $as_echo_n "(cached) " >&6
3579a0195d5fSmrgelse
3580a0195d5fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581a0195d5fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3582a0195d5fSmrg  # making bogus files that we don't know about and never remove.  For
3583a0195d5fSmrg  # instance it was reported that on HP-UX the gcc test will end up
3584a0195d5fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3585a0195d5fSmrg  # in D'.
3586a0195d5fSmrg  mkdir conftest.dir
3587a0195d5fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3588a0195d5fSmrg  # using a relative directory.
3589a0195d5fSmrg  cp "$am_depcomp" conftest.dir
3590a0195d5fSmrg  cd conftest.dir
3591a0195d5fSmrg  # We will build objects and dependencies in a subdirectory because
3592a0195d5fSmrg  # it helps to detect inapplicable dependency modes.  For instance
3593a0195d5fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3594a0195d5fSmrg  # side effect of compilation, but ICC will put the dependencies in
3595a0195d5fSmrg  # the current directory while Tru64 will put them in the object
3596a0195d5fSmrg  # directory.
3597a0195d5fSmrg  mkdir sub
3598a0195d5fSmrg
3599a0195d5fSmrg  am_cv_CC_dependencies_compiler_type=none
3600a0195d5fSmrg  if test "$am_compiler_list" = ""; then
3601a0195d5fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3602a0195d5fSmrg  fi
36036600fe5bSmrg  am__universal=false
36046600fe5bSmrg  case " $depcc " in #(
36056600fe5bSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
36066600fe5bSmrg     esac
36076600fe5bSmrg
3608a0195d5fSmrg  for depmode in $am_compiler_list; do
3609a0195d5fSmrg    # Setup a source with many dependencies, because some compilers
3610a0195d5fSmrg    # like to wrap large dependency lists on column 80 (with \), and
3611a0195d5fSmrg    # we should not choose a depcomp mode which is confused by this.
3612a0195d5fSmrg    #
3613a0195d5fSmrg    # We need to recreate these files for each test, as the compiler may
3614a0195d5fSmrg    # overwrite some of them when testing with obscure command lines.
3615a0195d5fSmrg    # This happens at least with the AIX C compiler.
3616a0195d5fSmrg    : > sub/conftest.c
3617a0195d5fSmrg    for i in 1 2 3 4 5 6; do
3618a0195d5fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619a0195d5fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620a0195d5fSmrg      # Solaris 8's {/usr,}/bin/sh.
3621a0195d5fSmrg      touch sub/conftst$i.h
3622a0195d5fSmrg    done
3623a0195d5fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3624a0195d5fSmrg
36256600fe5bSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
36266600fe5bSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
36276600fe5bSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
36286600fe5bSmrg    # versions had trouble with output in subdirs
36296600fe5bSmrg    am__obj=sub/conftest.${OBJEXT-o}
36306600fe5bSmrg    am__minus_obj="-o $am__obj"
3631a0195d5fSmrg    case $depmode in
36326600fe5bSmrg    gcc)
36336600fe5bSmrg      # This depmode causes a compiler race in universal mode.
36346600fe5bSmrg      test "$am__universal" = false || continue
36356600fe5bSmrg      ;;
3636a0195d5fSmrg    nosideeffect)
3637a0195d5fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3638a0195d5fSmrg      # only be used when explicitly requested
3639a0195d5fSmrg      if test "x$enable_dependency_tracking" = xyes; then
3640a0195d5fSmrg	continue
3641a0195d5fSmrg      else
3642a0195d5fSmrg	break
3643a0195d5fSmrg      fi
3644a0195d5fSmrg      ;;
36456600fe5bSmrg    msvisualcpp | msvcmsys)
36466600fe5bSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
36476600fe5bSmrg      # not run yet.  These depmodes are late enough in the game, and
36486600fe5bSmrg      # so weak that their functioning should not be impacted.
36496600fe5bSmrg      am__obj=conftest.${OBJEXT-o}
36506600fe5bSmrg      am__minus_obj=
36516600fe5bSmrg      ;;
3652a0195d5fSmrg    none) break ;;
3653a0195d5fSmrg    esac
3654a0195d5fSmrg    if depmode=$depmode \
36556600fe5bSmrg       source=sub/conftest.c object=$am__obj \
3656a0195d5fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
36576600fe5bSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3658a0195d5fSmrg         >/dev/null 2>conftest.err &&
3659a0195d5fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3660a0195d5fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
36616600fe5bSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3662a0195d5fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663a0195d5fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3664a0195d5fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3665a0195d5fSmrg      # that says an option was ignored or not supported.
3666a0195d5fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3667a0195d5fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3668a0195d5fSmrg      # The diagnosis changed in icc 8.0:
3669a0195d5fSmrg      #   icc: Command line remark: option '-MP' not supported
3670a0195d5fSmrg      if (grep 'ignoring option' conftest.err ||
3671a0195d5fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672a0195d5fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3673a0195d5fSmrg        break
3674a0195d5fSmrg      fi
3675a0195d5fSmrg    fi
3676a0195d5fSmrg  done
3677a0195d5fSmrg
3678a0195d5fSmrg  cd ..
3679a0195d5fSmrg  rm -rf conftest.dir
3680a0195d5fSmrgelse
3681a0195d5fSmrg  am_cv_CC_dependencies_compiler_type=none
3682a0195d5fSmrgfi
3683a0195d5fSmrg
3684a0195d5fSmrgfi
36856f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
36866600fe5bSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3687a0195d5fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3688a0195d5fSmrg
3689a0195d5fSmrg if
3690a0195d5fSmrg  test "x$enable_dependency_tracking" != xno \
3691a0195d5fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3692a0195d5fSmrg  am__fastdepCC_TRUE=
3693a0195d5fSmrg  am__fastdepCC_FALSE='#'
3694a0195d5fSmrgelse
3695a0195d5fSmrg  am__fastdepCC_TRUE='#'
3696a0195d5fSmrg  am__fastdepCC_FALSE=
3697a0195d5fSmrgfi
3698a0195d5fSmrg
3699a0195d5fSmrg
37006f5dd5c2Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
37016f5dd5c2Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
37022ab73d9fSmrgif ${ac_cv_prog_cc_c99+:} false; then :
37036600fe5bSmrg  $as_echo_n "(cached) " >&6
3704a0195d5fSmrgelse
37056f5dd5c2Smrg  ac_cv_prog_cc_c99=no
37066f5dd5c2Smrgac_save_CC=$CC
37076f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37086f5dd5c2Smrg/* end confdefs.h.  */
37096f5dd5c2Smrg#include <stdarg.h>
37106f5dd5c2Smrg#include <stdbool.h>
37116f5dd5c2Smrg#include <stdlib.h>
37126f5dd5c2Smrg#include <wchar.h>
37136f5dd5c2Smrg#include <stdio.h>
37146600fe5bSmrg
37156f5dd5c2Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
37166f5dd5c2Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
37176f5dd5c2Smrg#define showlist(...) puts (#__VA_ARGS__)
37186f5dd5c2Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
37196f5dd5c2Smrgstatic void
37206f5dd5c2Smrgtest_varargs_macros (void)
37216f5dd5c2Smrg{
37226f5dd5c2Smrg  int x = 1234;
37236f5dd5c2Smrg  int y = 5678;
37246f5dd5c2Smrg  debug ("Flag");
37256f5dd5c2Smrg  debug ("X = %d\n", x);
37266f5dd5c2Smrg  showlist (The first, second, and third items.);
37276f5dd5c2Smrg  report (x>y, "x is %d but y is %d", x, y);
37286f5dd5c2Smrg}
3729a0195d5fSmrg
37306f5dd5c2Smrg// Check long long types.
37316f5dd5c2Smrg#define BIG64 18446744073709551615ull
37326f5dd5c2Smrg#define BIG32 4294967295ul
37336f5dd5c2Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
37346f5dd5c2Smrg#if !BIG_OK
37356f5dd5c2Smrg  your preprocessor is broken;
37366f5dd5c2Smrg#endif
37376f5dd5c2Smrg#if BIG_OK
37386f5dd5c2Smrg#else
37396f5dd5c2Smrg  your preprocessor is broken;
37406f5dd5c2Smrg#endif
37416f5dd5c2Smrgstatic long long int bignum = -9223372036854775807LL;
37426f5dd5c2Smrgstatic unsigned long long int ubignum = BIG64;
3743a0195d5fSmrg
37446f5dd5c2Smrgstruct incomplete_array
37456f5dd5c2Smrg{
37466f5dd5c2Smrg  int datasize;
37476f5dd5c2Smrg  double data[];
37486f5dd5c2Smrg};
3749a0195d5fSmrg
37506f5dd5c2Smrgstruct named_init {
37516f5dd5c2Smrg  int number;
37526f5dd5c2Smrg  const wchar_t *name;
37536f5dd5c2Smrg  double average;
37546f5dd5c2Smrg};
3755a0195d5fSmrg
37566f5dd5c2Smrgtypedef const char *ccp;
3757a0195d5fSmrg
37586f5dd5c2Smrgstatic inline int
37596f5dd5c2Smrgtest_restrict (ccp restrict text)
37606f5dd5c2Smrg{
37616f5dd5c2Smrg  // See if C++-style comments work.
37626f5dd5c2Smrg  // Iterate through items via the restricted pointer.
37636f5dd5c2Smrg  // Also check for declarations in for loops.
37646f5dd5c2Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
37656f5dd5c2Smrg    continue;
37666f5dd5c2Smrg  return 0;
37676f5dd5c2Smrg}
3768a0195d5fSmrg
37696f5dd5c2Smrg// Check varargs and va_copy.
37706f5dd5c2Smrgstatic void
37716f5dd5c2Smrgtest_varargs (const char *format, ...)
37726f5dd5c2Smrg{
37736f5dd5c2Smrg  va_list args;
37746f5dd5c2Smrg  va_start (args, format);
37756f5dd5c2Smrg  va_list args_copy;
37766f5dd5c2Smrg  va_copy (args_copy, args);
3777a0195d5fSmrg
37786f5dd5c2Smrg  const char *str;
37796f5dd5c2Smrg  int number;
37806f5dd5c2Smrg  float fnumber;
3781a0195d5fSmrg
37826f5dd5c2Smrg  while (*format)
37836f5dd5c2Smrg    {
37846f5dd5c2Smrg      switch (*format++)
37856f5dd5c2Smrg	{
37866f5dd5c2Smrg	case 's': // string
37876f5dd5c2Smrg	  str = va_arg (args_copy, const char *);
37886f5dd5c2Smrg	  break;
37896f5dd5c2Smrg	case 'd': // int
37906f5dd5c2Smrg	  number = va_arg (args_copy, int);
37916f5dd5c2Smrg	  break;
37926f5dd5c2Smrg	case 'f': // float
37936f5dd5c2Smrg	  fnumber = va_arg (args_copy, double);
37946f5dd5c2Smrg	  break;
37956f5dd5c2Smrg	default:
37966f5dd5c2Smrg	  break;
37976f5dd5c2Smrg	}
37986f5dd5c2Smrg    }
37996f5dd5c2Smrg  va_end (args_copy);
38006f5dd5c2Smrg  va_end (args);
38016f5dd5c2Smrg}
38026f5dd5c2Smrg
38036f5dd5c2Smrgint
38046f5dd5c2Smrgmain ()
38056f5dd5c2Smrg{
38066f5dd5c2Smrg
38076f5dd5c2Smrg  // Check bool.
38086f5dd5c2Smrg  _Bool success = false;
38096f5dd5c2Smrg
38106f5dd5c2Smrg  // Check restrict.
38116f5dd5c2Smrg  if (test_restrict ("String literal") == 0)
38126f5dd5c2Smrg    success = true;
38136f5dd5c2Smrg  char *restrict newvar = "Another string";
38146f5dd5c2Smrg
38156f5dd5c2Smrg  // Check varargs.
38166f5dd5c2Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
38176f5dd5c2Smrg  test_varargs_macros ();
38186f5dd5c2Smrg
38196f5dd5c2Smrg  // Check flexible array members.
38206f5dd5c2Smrg  struct incomplete_array *ia =
38216f5dd5c2Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
38226f5dd5c2Smrg  ia->datasize = 10;
38236f5dd5c2Smrg  for (int i = 0; i < ia->datasize; ++i)
38246f5dd5c2Smrg    ia->data[i] = i * 1.234;
38256f5dd5c2Smrg
38266f5dd5c2Smrg  // Check named initializers.
38276f5dd5c2Smrg  struct named_init ni = {
38286f5dd5c2Smrg    .number = 34,
38296f5dd5c2Smrg    .name = L"Test wide string",
38306f5dd5c2Smrg    .average = 543.34343,
38316f5dd5c2Smrg  };
38326f5dd5c2Smrg
38336f5dd5c2Smrg  ni.number = 58;
38346f5dd5c2Smrg
38356f5dd5c2Smrg  int dynamic_array[ni.number];
38366f5dd5c2Smrg  dynamic_array[ni.number - 1] = 543;
38376f5dd5c2Smrg
38386f5dd5c2Smrg  // work around unused variable warnings
38396f5dd5c2Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
38406f5dd5c2Smrg	  || dynamic_array[ni.number - 1] != 543);
38416f5dd5c2Smrg
38426f5dd5c2Smrg  ;
38436f5dd5c2Smrg  return 0;
38446f5dd5c2Smrg}
38456f5dd5c2Smrg_ACEOF
38466f5dd5c2Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
38476f5dd5c2Smrgdo
38486f5dd5c2Smrg  CC="$ac_save_CC $ac_arg"
38496f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
38506f5dd5c2Smrg  ac_cv_prog_cc_c99=$ac_arg
38516f5dd5c2Smrgfi
38526f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext
38536f5dd5c2Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
38546f5dd5c2Smrgdone
38556f5dd5c2Smrgrm -f conftest.$ac_ext
38566f5dd5c2SmrgCC=$ac_save_CC
38576f5dd5c2Smrg
38586f5dd5c2Smrgfi
38596f5dd5c2Smrg# AC_CACHE_VAL
38606f5dd5c2Smrgcase "x$ac_cv_prog_cc_c99" in
38616f5dd5c2Smrg  x)
38626f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38636f5dd5c2Smrg$as_echo "none needed" >&6; } ;;
38646f5dd5c2Smrg  xno)
38656f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38666f5dd5c2Smrg$as_echo "unsupported" >&6; } ;;
38676f5dd5c2Smrg  *)
38686f5dd5c2Smrg    CC="$CC $ac_cv_prog_cc_c99"
38696f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
38706f5dd5c2Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
38716f5dd5c2Smrgesac
38726f5dd5c2Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
38736f5dd5c2Smrg
38746f5dd5c2Smrgfi
38756f5dd5c2Smrg
38766f5dd5c2Smrg
38776f5dd5c2Smrg
38786f5dd5c2Smrgac_ext=c
38796f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
38806f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38816f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38826f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38836f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
38846f5dd5c2Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
38856f5dd5c2Smrg# On Suns, sometimes $CPP names a directory.
38866f5dd5c2Smrgif test -n "$CPP" && test -d "$CPP"; then
38876f5dd5c2Smrg  CPP=
38886f5dd5c2Smrgfi
38896f5dd5c2Smrgif test -z "$CPP"; then
38902ab73d9fSmrg  if ${ac_cv_prog_CPP+:} false; then :
38916f5dd5c2Smrg  $as_echo_n "(cached) " >&6
38926600fe5bSmrgelse
38936f5dd5c2Smrg      # Double quotes because CPP needs to be expanded
38946f5dd5c2Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
38956f5dd5c2Smrg    do
38966f5dd5c2Smrg      ac_preproc_ok=false
38976f5dd5c2Smrgfor ac_c_preproc_warn_flag in '' yes
38986f5dd5c2Smrgdo
38996f5dd5c2Smrg  # Use a header file that comes with gcc, so configuring glibc
39006f5dd5c2Smrg  # with a fresh cross-compiler works.
39016f5dd5c2Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39026f5dd5c2Smrg  # <limits.h> exists even on freestanding compilers.
39036f5dd5c2Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39046f5dd5c2Smrg  # not just through cpp. "Syntax error" is here to catch this case.
39056f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39066f5dd5c2Smrg/* end confdefs.h.  */
39076f5dd5c2Smrg#ifdef __STDC__
39086f5dd5c2Smrg# include <limits.h>
39096f5dd5c2Smrg#else
39106f5dd5c2Smrg# include <assert.h>
39116f5dd5c2Smrg#endif
39126f5dd5c2Smrg		     Syntax error
39136f5dd5c2Smrg_ACEOF
39146f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39156600fe5bSmrg
39166f5dd5c2Smrgelse
39176600fe5bSmrg  # Broken: fails on valid input.
39186600fe5bSmrgcontinue
39196600fe5bSmrgfi
39202ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39216600fe5bSmrg
39226600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
39236600fe5bSmrg  # can be detected and how.
39246f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39256600fe5bSmrg/* end confdefs.h.  */
39266600fe5bSmrg#include <ac_nonexistent.h>
39276600fe5bSmrg_ACEOF
39286f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39296600fe5bSmrg  # Broken: success on invalid input.
39306600fe5bSmrgcontinue
39316600fe5bSmrgelse
39326600fe5bSmrg  # Passes both tests.
39336600fe5bSmrgac_preproc_ok=:
39346600fe5bSmrgbreak
39356600fe5bSmrgfi
39362ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39376600fe5bSmrg
39386600fe5bSmrgdone
39396600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39402ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
39416f5dd5c2Smrgif $ac_preproc_ok; then :
39426600fe5bSmrg  break
39436600fe5bSmrgfi
39446600fe5bSmrg
39456600fe5bSmrg    done
39466600fe5bSmrg    ac_cv_prog_CPP=$CPP
39476600fe5bSmrg
39486600fe5bSmrgfi
39496600fe5bSmrg  CPP=$ac_cv_prog_CPP
39506600fe5bSmrgelse
39516600fe5bSmrg  ac_cv_prog_CPP=$CPP
39526600fe5bSmrgfi
39536f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
39546600fe5bSmrg$as_echo "$CPP" >&6; }
39556600fe5bSmrgac_preproc_ok=false
39566600fe5bSmrgfor ac_c_preproc_warn_flag in '' yes
39576600fe5bSmrgdo
39586600fe5bSmrg  # Use a header file that comes with gcc, so configuring glibc
39596600fe5bSmrg  # with a fresh cross-compiler works.
39606600fe5bSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39616600fe5bSmrg  # <limits.h> exists even on freestanding compilers.
39626600fe5bSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39636600fe5bSmrg  # not just through cpp. "Syntax error" is here to catch this case.
39646f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39656600fe5bSmrg/* end confdefs.h.  */
39666600fe5bSmrg#ifdef __STDC__
39676600fe5bSmrg# include <limits.h>
39686600fe5bSmrg#else
39696600fe5bSmrg# include <assert.h>
39706600fe5bSmrg#endif
39716600fe5bSmrg		     Syntax error
39726600fe5bSmrg_ACEOF
39736f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39746600fe5bSmrg
39756f5dd5c2Smrgelse
39766600fe5bSmrg  # Broken: fails on valid input.
39776600fe5bSmrgcontinue
39786600fe5bSmrgfi
39792ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39806600fe5bSmrg
39816600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
39826600fe5bSmrg  # can be detected and how.
39836f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39846600fe5bSmrg/* end confdefs.h.  */
39856600fe5bSmrg#include <ac_nonexistent.h>
39866600fe5bSmrg_ACEOF
39876f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39886600fe5bSmrg  # Broken: success on invalid input.
39896600fe5bSmrgcontinue
39906600fe5bSmrgelse
39916600fe5bSmrg  # Passes both tests.
39926600fe5bSmrgac_preproc_ok=:
39936600fe5bSmrgbreak
39946600fe5bSmrgfi
39952ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39966600fe5bSmrg
39976600fe5bSmrgdone
39986600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39992ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
40006f5dd5c2Smrgif $ac_preproc_ok; then :
40016f5dd5c2Smrg
40026600fe5bSmrgelse
40036f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40046600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40052ab73d9fSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
40062ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
40076600fe5bSmrgfi
40086600fe5bSmrg
40096600fe5bSmrgac_ext=c
40106600fe5bSmrgac_cpp='$CPP $CPPFLAGS'
40116600fe5bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40126600fe5bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40136600fe5bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40146600fe5bSmrg
40156600fe5bSmrg
40166f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40176600fe5bSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
40182ab73d9fSmrgif ${ac_cv_path_GREP+:} false; then :
40196600fe5bSmrg  $as_echo_n "(cached) " >&6
40206600fe5bSmrgelse
40216600fe5bSmrg  if test -z "$GREP"; then
40226600fe5bSmrg  ac_path_GREP_found=false
40236600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
40246600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40256600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40266600fe5bSmrgdo
40276600fe5bSmrg  IFS=$as_save_IFS
40286600fe5bSmrg  test -z "$as_dir" && as_dir=.
40296f5dd5c2Smrg    for ac_prog in grep ggrep; do
40306600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40316600fe5bSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
40326600fe5bSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
40336600fe5bSmrg# Check for GNU ac_path_GREP and select it if it is found.
40346600fe5bSmrg  # Check for GNU $ac_path_GREP
40356600fe5bSmrgcase `"$ac_path_GREP" --version 2>&1` in
40366600fe5bSmrg*GNU*)
40376600fe5bSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
40386600fe5bSmrg*)
40396600fe5bSmrg  ac_count=0
40406600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
40416600fe5bSmrg  while :
40426600fe5bSmrg  do
40436600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40446600fe5bSmrg    mv "conftest.tmp" "conftest.in"
40456600fe5bSmrg    cp "conftest.in" "conftest.nl"
40466600fe5bSmrg    $as_echo 'GREP' >> "conftest.nl"
40476600fe5bSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40486600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40496f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40506600fe5bSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
40516600fe5bSmrg      # Best one so far, save it but keep looking for a better one
40526600fe5bSmrg      ac_cv_path_GREP="$ac_path_GREP"
40536600fe5bSmrg      ac_path_GREP_max=$ac_count
40546600fe5bSmrg    fi
40556600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
40566600fe5bSmrg    test $ac_count -gt 10 && break
40576600fe5bSmrg  done
40586600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40596600fe5bSmrgesac
40606600fe5bSmrg
40616600fe5bSmrg      $ac_path_GREP_found && break 3
40626600fe5bSmrg    done
40636600fe5bSmrg  done
40646f5dd5c2Smrg  done
40656600fe5bSmrgIFS=$as_save_IFS
40666600fe5bSmrg  if test -z "$ac_cv_path_GREP"; then
40672ab73d9fSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40686600fe5bSmrg  fi
40696600fe5bSmrgelse
40706600fe5bSmrg  ac_cv_path_GREP=$GREP
40716600fe5bSmrgfi
40726600fe5bSmrg
40736600fe5bSmrgfi
40746f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
40756600fe5bSmrg$as_echo "$ac_cv_path_GREP" >&6; }
40766600fe5bSmrg GREP="$ac_cv_path_GREP"
40776600fe5bSmrg
40786600fe5bSmrg
40796f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
40806600fe5bSmrg$as_echo_n "checking for egrep... " >&6; }
40812ab73d9fSmrgif ${ac_cv_path_EGREP+:} false; then :
40826600fe5bSmrg  $as_echo_n "(cached) " >&6
40836600fe5bSmrgelse
40846600fe5bSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
40856600fe5bSmrg   then ac_cv_path_EGREP="$GREP -E"
40866600fe5bSmrg   else
40876600fe5bSmrg     if test -z "$EGREP"; then
40886600fe5bSmrg  ac_path_EGREP_found=false
40896600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
40906600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40916600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40926600fe5bSmrgdo
40936600fe5bSmrg  IFS=$as_save_IFS
40946600fe5bSmrg  test -z "$as_dir" && as_dir=.
40956f5dd5c2Smrg    for ac_prog in egrep; do
40966600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40976600fe5bSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
40986600fe5bSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
40996600fe5bSmrg# Check for GNU ac_path_EGREP and select it if it is found.
41006600fe5bSmrg  # Check for GNU $ac_path_EGREP
41016600fe5bSmrgcase `"$ac_path_EGREP" --version 2>&1` in
41026600fe5bSmrg*GNU*)
41036600fe5bSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
41046600fe5bSmrg*)
41056600fe5bSmrg  ac_count=0
41066600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
41076600fe5bSmrg  while :
41086600fe5bSmrg  do
41096600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41106600fe5bSmrg    mv "conftest.tmp" "conftest.in"
41116600fe5bSmrg    cp "conftest.in" "conftest.nl"
41126600fe5bSmrg    $as_echo 'EGREP' >> "conftest.nl"
41136600fe5bSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41146600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41156f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41166600fe5bSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
41176600fe5bSmrg      # Best one so far, save it but keep looking for a better one
41186600fe5bSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
41196600fe5bSmrg      ac_path_EGREP_max=$ac_count
41206600fe5bSmrg    fi
41216600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
41226600fe5bSmrg    test $ac_count -gt 10 && break
41236600fe5bSmrg  done
41246600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41256600fe5bSmrgesac
41266600fe5bSmrg
41276600fe5bSmrg      $ac_path_EGREP_found && break 3
41286600fe5bSmrg    done
41296600fe5bSmrg  done
41306f5dd5c2Smrg  done
41316600fe5bSmrgIFS=$as_save_IFS
41326600fe5bSmrg  if test -z "$ac_cv_path_EGREP"; then
41332ab73d9fSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41346600fe5bSmrg  fi
41356600fe5bSmrgelse
41366600fe5bSmrg  ac_cv_path_EGREP=$EGREP
41376600fe5bSmrgfi
41386600fe5bSmrg
41396600fe5bSmrg   fi
41406600fe5bSmrgfi
41416f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
41426600fe5bSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
41436600fe5bSmrg EGREP="$ac_cv_path_EGREP"
41446600fe5bSmrg
41456600fe5bSmrg
41466f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
41476600fe5bSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
41482ab73d9fSmrgif ${ac_cv_header_stdc+:} false; then :
41496600fe5bSmrg  $as_echo_n "(cached) " >&6
41506600fe5bSmrgelse
41516f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41526600fe5bSmrg/* end confdefs.h.  */
41536600fe5bSmrg#include <stdlib.h>
41546600fe5bSmrg#include <stdarg.h>
41556600fe5bSmrg#include <string.h>
41566600fe5bSmrg#include <float.h>
41576600fe5bSmrg
41586600fe5bSmrgint
41596600fe5bSmrgmain ()
41606600fe5bSmrg{
41616600fe5bSmrg
41626600fe5bSmrg  ;
41636600fe5bSmrg  return 0;
41646600fe5bSmrg}
41656600fe5bSmrg_ACEOF
41666f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
41676600fe5bSmrg  ac_cv_header_stdc=yes
41686600fe5bSmrgelse
41696f5dd5c2Smrg  ac_cv_header_stdc=no
41706600fe5bSmrgfi
41716600fe5bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41726600fe5bSmrg
41736600fe5bSmrgif test $ac_cv_header_stdc = yes; then
41746600fe5bSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41756f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41766600fe5bSmrg/* end confdefs.h.  */
41776600fe5bSmrg#include <string.h>
41786600fe5bSmrg
41796600fe5bSmrg_ACEOF
41806600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41816f5dd5c2Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
41826f5dd5c2Smrg
41836600fe5bSmrgelse
41846600fe5bSmrg  ac_cv_header_stdc=no
41856600fe5bSmrgfi
41866600fe5bSmrgrm -f conftest*
41876600fe5bSmrg
41886600fe5bSmrgfi
41896600fe5bSmrg
41906600fe5bSmrgif test $ac_cv_header_stdc = yes; then
41916600fe5bSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41926f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41936600fe5bSmrg/* end confdefs.h.  */
41946600fe5bSmrg#include <stdlib.h>
41956600fe5bSmrg
41966600fe5bSmrg_ACEOF
41976600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41986f5dd5c2Smrg  $EGREP "free" >/dev/null 2>&1; then :
41996f5dd5c2Smrg
42006600fe5bSmrgelse
42016600fe5bSmrg  ac_cv_header_stdc=no
42026600fe5bSmrgfi
42036600fe5bSmrgrm -f conftest*
42046600fe5bSmrg
42056600fe5bSmrgfi
42066600fe5bSmrg
42076600fe5bSmrgif test $ac_cv_header_stdc = yes; then
42086600fe5bSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42096f5dd5c2Smrg  if test "$cross_compiling" = yes; then :
42106600fe5bSmrg  :
42116600fe5bSmrgelse
42126f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42136600fe5bSmrg/* end confdefs.h.  */
42146600fe5bSmrg#include <ctype.h>
42156600fe5bSmrg#include <stdlib.h>
42166600fe5bSmrg#if ((' ' & 0x0FF) == 0x020)
42176600fe5bSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42186600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
42196600fe5bSmrg#else
42206600fe5bSmrg# define ISLOWER(c) \
42216600fe5bSmrg		   (('a' <= (c) && (c) <= 'i') \
42226600fe5bSmrg		     || ('j' <= (c) && (c) <= 'r') \
42236600fe5bSmrg		     || ('s' <= (c) && (c) <= 'z'))
42246600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
42256600fe5bSmrg#endif
42266600fe5bSmrg
42276600fe5bSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42286600fe5bSmrgint
42296600fe5bSmrgmain ()
42306600fe5bSmrg{
42316600fe5bSmrg  int i;
42326600fe5bSmrg  for (i = 0; i < 256; i++)
42336600fe5bSmrg    if (XOR (islower (i), ISLOWER (i))
42346600fe5bSmrg	|| toupper (i) != TOUPPER (i))
42356600fe5bSmrg      return 2;
42366600fe5bSmrg  return 0;
42376600fe5bSmrg}
42386600fe5bSmrg_ACEOF
42396f5dd5c2Smrgif ac_fn_c_try_run "$LINENO"; then :
42406600fe5bSmrg
42416f5dd5c2Smrgelse
42426f5dd5c2Smrg  ac_cv_header_stdc=no
42436600fe5bSmrgfi
42446f5dd5c2Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42456f5dd5c2Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
42466600fe5bSmrgfi
42476600fe5bSmrg
42486600fe5bSmrgfi
42496600fe5bSmrgfi
42506f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
42516600fe5bSmrg$as_echo "$ac_cv_header_stdc" >&6; }
42526600fe5bSmrgif test $ac_cv_header_stdc = yes; then
42536600fe5bSmrg
42546f5dd5c2Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
42556600fe5bSmrg
42566600fe5bSmrgfi
42576600fe5bSmrg
42586600fe5bSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42596600fe5bSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
42606600fe5bSmrg		  inttypes.h stdint.h unistd.h
42616f5dd5c2Smrgdo :
42626f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42636f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
42646f5dd5c2Smrg"
42652ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42666600fe5bSmrg  cat >>confdefs.h <<_ACEOF
42676600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42686600fe5bSmrg_ACEOF
42696600fe5bSmrg
42706600fe5bSmrgfi
42716600fe5bSmrg
42726600fe5bSmrgdone
42736600fe5bSmrg
42746600fe5bSmrg
42756f5dd5c2Smrg
42766f5dd5c2Smrg
42776f5dd5c2Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42786f5dd5c2Smrg	if test -n "$ac_tool_prefix"; then
42796f5dd5c2Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42806f5dd5c2Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42816f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
42826f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
42832ab73d9fSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
42846600fe5bSmrg  $as_echo_n "(cached) " >&6
42856600fe5bSmrgelse
42866f5dd5c2Smrg  case $PKG_CONFIG in
42876f5dd5c2Smrg  [\\/]* | ?:[\\/]*)
42886f5dd5c2Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42896f5dd5c2Smrg  ;;
42906f5dd5c2Smrg  *)
42916f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42926f5dd5c2Smrgfor as_dir in $PATH
42936600fe5bSmrgdo
42946f5dd5c2Smrg  IFS=$as_save_IFS
42956f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
42966f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
42976f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42986f5dd5c2Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42996f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43006f5dd5c2Smrg    break 2
43016f5dd5c2Smrg  fi
43026f5dd5c2Smrgdone
43036f5dd5c2Smrg  done
43046f5dd5c2SmrgIFS=$as_save_IFS
43056f5dd5c2Smrg
43066f5dd5c2Smrg  ;;
43076600fe5bSmrgesac
43086f5dd5c2Smrgfi
43096f5dd5c2SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
43106f5dd5c2Smrgif test -n "$PKG_CONFIG"; then
43116f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
43126f5dd5c2Smrg$as_echo "$PKG_CONFIG" >&6; }
43136600fe5bSmrgelse
43146f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43156f5dd5c2Smrg$as_echo "no" >&6; }
43166600fe5bSmrgfi
43176600fe5bSmrg
43186600fe5bSmrg
43196600fe5bSmrgfi
43206f5dd5c2Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
43216f5dd5c2Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
43226f5dd5c2Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
43236f5dd5c2Smrgset dummy pkg-config; ac_word=$2
43246f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43256f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
43262ab73d9fSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
43276f5dd5c2Smrg  $as_echo_n "(cached) " >&6
43286f5dd5c2Smrgelse
43296f5dd5c2Smrg  case $ac_pt_PKG_CONFIG in
43306f5dd5c2Smrg  [\\/]* | ?:[\\/]*)
43316f5dd5c2Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43326f5dd5c2Smrg  ;;
43336600fe5bSmrg  *)
43346f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43356f5dd5c2Smrgfor as_dir in $PATH
43366f5dd5c2Smrgdo
43376f5dd5c2Smrg  IFS=$as_save_IFS
43386f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
43396f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43406f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43416f5dd5c2Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43426f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43436f5dd5c2Smrg    break 2
43446f5dd5c2Smrg  fi
43456f5dd5c2Smrgdone
43466f5dd5c2Smrg  done
43476f5dd5c2SmrgIFS=$as_save_IFS
43486f5dd5c2Smrg
43496f5dd5c2Smrg  ;;
43506600fe5bSmrgesac
43516f5dd5c2Smrgfi
43526f5dd5c2Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43536f5dd5c2Smrgif test -n "$ac_pt_PKG_CONFIG"; then
43546f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
43556f5dd5c2Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
43566f5dd5c2Smrgelse
43576f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43586f5dd5c2Smrg$as_echo "no" >&6; }
43596f5dd5c2Smrgfi
43606600fe5bSmrg
43616f5dd5c2Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
43626f5dd5c2Smrg    PKG_CONFIG=""
43636f5dd5c2Smrg  else
43646f5dd5c2Smrg    case $cross_compiling:$ac_tool_warned in
43656f5dd5c2Smrgyes:)
43666f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43676f5dd5c2Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43686f5dd5c2Smrgac_tool_warned=yes ;;
43696f5dd5c2Smrgesac
43706f5dd5c2Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
43716f5dd5c2Smrg  fi
43726f5dd5c2Smrgelse
43736f5dd5c2Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43746f5dd5c2Smrgfi
43756600fe5bSmrg
43766f5dd5c2Smrgfi
43776f5dd5c2Smrgif test -n "$PKG_CONFIG"; then
43786f5dd5c2Smrg	_pkg_min_version=0.9.0
43796f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
43806f5dd5c2Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
43816f5dd5c2Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
43826f5dd5c2Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43836f5dd5c2Smrg$as_echo "yes" >&6; }
43846f5dd5c2Smrg	else
43856f5dd5c2Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43866f5dd5c2Smrg$as_echo "no" >&6; }
43876f5dd5c2Smrg		PKG_CONFIG=""
43886f5dd5c2Smrg	fi
43896600fe5bSmrg
43906f5dd5c2Smrgfi
43916600fe5bSmrg# Make sure we can run config.sub.
43926600fe5bSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
43932ab73d9fSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
43946600fe5bSmrg
43956f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
43966600fe5bSmrg$as_echo_n "checking build system type... " >&6; }
43972ab73d9fSmrgif ${ac_cv_build+:} false; then :
43986600fe5bSmrg  $as_echo_n "(cached) " >&6
43996600fe5bSmrgelse
44006600fe5bSmrg  ac_build_alias=$build_alias
44016600fe5bSmrgtest "x$ac_build_alias" = x &&
44026600fe5bSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
44036600fe5bSmrgtest "x$ac_build_alias" = x &&
44042ab73d9fSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
44056600fe5bSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
44062ab73d9fSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
44076600fe5bSmrg
44086600fe5bSmrgfi
44096f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
44106600fe5bSmrg$as_echo "$ac_cv_build" >&6; }
44116600fe5bSmrgcase $ac_cv_build in
44126600fe5bSmrg*-*-*) ;;
44132ab73d9fSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
44146600fe5bSmrgesac
44156600fe5bSmrgbuild=$ac_cv_build
44166600fe5bSmrgac_save_IFS=$IFS; IFS='-'
44176600fe5bSmrgset x $ac_cv_build
44186600fe5bSmrgshift
44196600fe5bSmrgbuild_cpu=$1
44206600fe5bSmrgbuild_vendor=$2
44216600fe5bSmrgshift; shift
44226600fe5bSmrg# Remember, the first character of IFS is used to create $*,
44236600fe5bSmrg# except with old shells:
44246600fe5bSmrgbuild_os=$*
44256600fe5bSmrgIFS=$ac_save_IFS
44266600fe5bSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
44276600fe5bSmrg
44286600fe5bSmrg
44296f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
44306600fe5bSmrg$as_echo_n "checking host system type... " >&6; }
44312ab73d9fSmrgif ${ac_cv_host+:} false; then :
44326600fe5bSmrg  $as_echo_n "(cached) " >&6
44336600fe5bSmrgelse
44346600fe5bSmrg  if test "x$host_alias" = x; then
44356600fe5bSmrg  ac_cv_host=$ac_cv_build
44366600fe5bSmrgelse
44376600fe5bSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
44382ab73d9fSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
44396600fe5bSmrgfi
44406600fe5bSmrg
44416600fe5bSmrgfi
44426f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
44436600fe5bSmrg$as_echo "$ac_cv_host" >&6; }
44446600fe5bSmrgcase $ac_cv_host in
44456600fe5bSmrg*-*-*) ;;
44462ab73d9fSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
44476600fe5bSmrgesac
44486600fe5bSmrghost=$ac_cv_host
44496600fe5bSmrgac_save_IFS=$IFS; IFS='-'
44506600fe5bSmrgset x $ac_cv_host
44516600fe5bSmrgshift
44526600fe5bSmrghost_cpu=$1
44536600fe5bSmrghost_vendor=$2
44546600fe5bSmrgshift; shift
44556600fe5bSmrg# Remember, the first character of IFS is used to create $*,
44566600fe5bSmrg# except with old shells:
44576600fe5bSmrghost_os=$*
44586600fe5bSmrgIFS=$ac_save_IFS
44596600fe5bSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
44606600fe5bSmrg
44616600fe5bSmrg
44626f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
44636f5dd5c2Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
44642ab73d9fSmrgif ${ac_cv_path_SED+:} false; then :
44656600fe5bSmrg  $as_echo_n "(cached) " >&6
44666600fe5bSmrgelse
44676f5dd5c2Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
44686f5dd5c2Smrg     for ac_i in 1 2 3 4 5 6 7; do
44696f5dd5c2Smrg       ac_script="$ac_script$as_nl$ac_script"
44706f5dd5c2Smrg     done
44716f5dd5c2Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
44726f5dd5c2Smrg     { ac_script=; unset ac_script;}
44736f5dd5c2Smrg     if test -z "$SED"; then
44746f5dd5c2Smrg  ac_path_SED_found=false
44756f5dd5c2Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
44766f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44776f5dd5c2Smrgfor as_dir in $PATH
44786f5dd5c2Smrgdo
44796f5dd5c2Smrg  IFS=$as_save_IFS
44806f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
44816f5dd5c2Smrg    for ac_prog in sed gsed; do
44826f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
44836f5dd5c2Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
44846f5dd5c2Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
44856f5dd5c2Smrg# Check for GNU ac_path_SED and select it if it is found.
44866f5dd5c2Smrg  # Check for GNU $ac_path_SED
44876f5dd5c2Smrgcase `"$ac_path_SED" --version 2>&1` in
44886f5dd5c2Smrg*GNU*)
44896f5dd5c2Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
44906f5dd5c2Smrg*)
44916f5dd5c2Smrg  ac_count=0
44926f5dd5c2Smrg  $as_echo_n 0123456789 >"conftest.in"
44936f5dd5c2Smrg  while :
44946f5dd5c2Smrg  do
44956f5dd5c2Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
44966f5dd5c2Smrg    mv "conftest.tmp" "conftest.in"
44976f5dd5c2Smrg    cp "conftest.in" "conftest.nl"
44986f5dd5c2Smrg    $as_echo '' >> "conftest.nl"
44996f5dd5c2Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
45006f5dd5c2Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
45016f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
45026f5dd5c2Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
45036f5dd5c2Smrg      # Best one so far, save it but keep looking for a better one
45046f5dd5c2Smrg      ac_cv_path_SED="$ac_path_SED"
45056f5dd5c2Smrg      ac_path_SED_max=$ac_count
45066f5dd5c2Smrg    fi
45076f5dd5c2Smrg    # 10*(2^10) chars as input seems more than enough
45086f5dd5c2Smrg    test $ac_count -gt 10 && break
45096f5dd5c2Smrg  done
45106f5dd5c2Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
45116600fe5bSmrgesac
45126600fe5bSmrg
45136f5dd5c2Smrg      $ac_path_SED_found && break 3
45146f5dd5c2Smrg    done
45156f5dd5c2Smrg  done
45166f5dd5c2Smrg  done
45176f5dd5c2SmrgIFS=$as_save_IFS
45186f5dd5c2Smrg  if test -z "$ac_cv_path_SED"; then
45192ab73d9fSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
45206f5dd5c2Smrg  fi
45216f5dd5c2Smrgelse
45226f5dd5c2Smrg  ac_cv_path_SED=$SED
45236600fe5bSmrgfi
45246600fe5bSmrg
45256600fe5bSmrgfi
45266f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
45276f5dd5c2Smrg$as_echo "$ac_cv_path_SED" >&6; }
45286f5dd5c2Smrg SED="$ac_cv_path_SED"
45296f5dd5c2Smrg  rm -f conftest.sed
45306f5dd5c2Smrg
45316f5dd5c2Smrg
45326f5dd5c2Smrg
45336f5dd5c2Smrg
45346f5dd5c2Smrg
45356f5dd5c2Smrgif  test "x$GCC" = xyes ; then
45366f5dd5c2Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
45376f5dd5c2Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
45386f5dd5c2Smrg-Wbad-function-cast -Wformat=2"
45396f5dd5c2Smrg    case `$CC -dumpversion` in
45406f5dd5c2Smrg    3.4.* | 4.*)
45416f5dd5c2Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
45426f5dd5c2Smrg	;;
45436f5dd5c2Smrg    esac
45446f5dd5c2Smrgelse
45456f5dd5c2Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45462ab73d9fSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
45476600fe5bSmrg  SUNCC="yes"
45486600fe5bSmrgelse
45496600fe5bSmrg  SUNCC="no"
45506600fe5bSmrgfi
45516600fe5bSmrg
45526600fe5bSmrg    if test "x$SUNCC" = "xyes"; then
45536600fe5bSmrg	CWARNFLAGS="-v"
45546600fe5bSmrg    fi
45556600fe5bSmrgfi
45566600fe5bSmrg
45576600fe5bSmrg
45586600fe5bSmrg
45596f5dd5c2Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
45606600fe5bSmrg
45616600fe5bSmrg
45626600fe5bSmrg
45636600fe5bSmrg# Check whether --enable-strict-compilation was given.
45646f5dd5c2Smrgif test "${enable_strict_compilation+set}" = set; then :
45656600fe5bSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
45666600fe5bSmrgelse
45676600fe5bSmrg  STRICT_COMPILE=no
45686600fe5bSmrgfi
45696600fe5bSmrg
45706600fe5bSmrgif test "x$STRICT_COMPILE" = "xyes"; then
45716f5dd5c2Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
45722ab73d9fSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
45736600fe5bSmrg  SUNCC="yes"
45746600fe5bSmrgelse
45756600fe5bSmrg  SUNCC="no"
45766600fe5bSmrgfi
45776600fe5bSmrg
45786f5dd5c2Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
45792ab73d9fSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
45806600fe5bSmrg  INTELCC="yes"
45816600fe5bSmrgelse
45826600fe5bSmrg  INTELCC="no"
45836600fe5bSmrgfi
45846600fe5bSmrg
45856600fe5bSmrg	if test "x$GCC" = xyes ; then
45866600fe5bSmrg		STRICT_CFLAGS="-pedantic -Werror"
45876600fe5bSmrg	elif test "x$SUNCC" = "xyes"; then
45886600fe5bSmrg		STRICT_CFLAGS="-errwarn"
45896600fe5bSmrg    elif test "x$INTELCC" = "xyes"; then
45906600fe5bSmrg		STRICT_CFLAGS="-Werror"
45916600fe5bSmrg	fi
45926600fe5bSmrgfi
45936600fe5bSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
45946600fe5bSmrg
45956600fe5bSmrg
45966600fe5bSmrg
45976600fe5bSmrg
45986600fe5bSmrgcat >>confdefs.h <<_ACEOF
45996600fe5bSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
46006600fe5bSmrg_ACEOF
46016600fe5bSmrg
46026600fe5bSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
46036600fe5bSmrg	if test "x$PVM" = "x"; then
46046600fe5bSmrg		PVM="0"
46056600fe5bSmrg	fi
46066600fe5bSmrg
46076600fe5bSmrgcat >>confdefs.h <<_ACEOF
46086600fe5bSmrg#define PACKAGE_VERSION_MINOR $PVM
46096600fe5bSmrg_ACEOF
46106600fe5bSmrg
46116600fe5bSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
46126600fe5bSmrg	if test "x$PVP" = "x"; then
46136600fe5bSmrg		PVP="0"
46146600fe5bSmrg	fi
46156600fe5bSmrg
46166600fe5bSmrgcat >>confdefs.h <<_ACEOF
46176600fe5bSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
46186600fe5bSmrg_ACEOF
46196600fe5bSmrg
46206600fe5bSmrg
46216600fe5bSmrg
46226f5dd5c2SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
46236f5dd5c2Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
46246f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
46256600fe5bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
46266600fe5bSmrg
46276f5dd5c2Smrg
46286f5dd5c2Smrg
46296f5dd5c2Smrg
46306f5dd5c2Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
46316f5dd5c2SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
46326f5dd5c2Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
46336f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
46346f5dd5c2Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
46356f5dd5c2Smrg
46366600fe5bSmrg
46376600fe5bSmrg
46386600fe5bSmrg
46396600fe5bSmrg
46406600fe5bSmrg
46416600fe5bSmrgif test x$APP_MAN_SUFFIX = x    ; then
46426600fe5bSmrg    APP_MAN_SUFFIX=1
46436600fe5bSmrgfi
46446600fe5bSmrgif test x$APP_MAN_DIR = x    ; then
46456600fe5bSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
46466600fe5bSmrgfi
46476600fe5bSmrg
46486600fe5bSmrgif test x$LIB_MAN_SUFFIX = x    ; then
46496600fe5bSmrg    LIB_MAN_SUFFIX=3
46506600fe5bSmrgfi
46516600fe5bSmrgif test x$LIB_MAN_DIR = x    ; then
46526600fe5bSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
46536600fe5bSmrgfi
46546600fe5bSmrg
46556600fe5bSmrgif test x$FILE_MAN_SUFFIX = x    ; then
46566600fe5bSmrg    case $host_os in
46576600fe5bSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
46586600fe5bSmrg	*)		FILE_MAN_SUFFIX=5  ;;
46596600fe5bSmrg    esac
46606600fe5bSmrgfi
46616600fe5bSmrgif test x$FILE_MAN_DIR = x    ; then
46626600fe5bSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
46636600fe5bSmrgfi
46646600fe5bSmrg
46656600fe5bSmrgif test x$MISC_MAN_SUFFIX = x    ; then
46666600fe5bSmrg    case $host_os in
46676600fe5bSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
46686600fe5bSmrg	*)		MISC_MAN_SUFFIX=7  ;;
46696600fe5bSmrg    esac
46706600fe5bSmrgfi
46716600fe5bSmrgif test x$MISC_MAN_DIR = x    ; then
46726600fe5bSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
46736600fe5bSmrgfi
46746600fe5bSmrg
46756600fe5bSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
46766600fe5bSmrg    case $host_os in
46776600fe5bSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
46786600fe5bSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
46796600fe5bSmrg    esac
46806600fe5bSmrgfi
46816600fe5bSmrgif test x$DRIVER_MAN_DIR = x    ; then
46826600fe5bSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
46836600fe5bSmrgfi
46846600fe5bSmrg
46856600fe5bSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
46866600fe5bSmrg    case $host_os in
46876600fe5bSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
46886600fe5bSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
46896600fe5bSmrg    esac
46906600fe5bSmrgfi
46916600fe5bSmrgif test x$ADMIN_MAN_DIR = x    ; then
46926600fe5bSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
46936600fe5bSmrgfi
46946600fe5bSmrg
46956600fe5bSmrg
46966600fe5bSmrg
46976600fe5bSmrg
46986600fe5bSmrg
46996600fe5bSmrg
47006600fe5bSmrg
47016600fe5bSmrg
47026600fe5bSmrg
47036600fe5bSmrg
47046600fe5bSmrg
47056600fe5bSmrg
47066600fe5bSmrg
47076600fe5bSmrg
47086600fe5bSmrg
47096f5dd5c2SmrgXORG_MAN_PAGE="X Version 11"
47106600fe5bSmrg
47116f5dd5c2SmrgMAN_SUBSTS="\
47126f5dd5c2Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
47136f5dd5c2Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
47146f5dd5c2Smrg	-e 's|__xservername__|Xorg|g' \
47156f5dd5c2Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
47166f5dd5c2Smrg	-e 's|__projectroot__|\$(prefix)|g' \
47172ab73d9fSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
47186f5dd5c2Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
47196f5dd5c2Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
47206f5dd5c2Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
47216f5dd5c2Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
47226f5dd5c2Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
47236f5dd5c2Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
47246600fe5bSmrg
4725a0195d5fSmrg
4726a0195d5fSmrg
47276f5dd5c2Smrg# Check whether --enable-silent-rules was given.
47286f5dd5c2Smrgif test "${enable_silent_rules+set}" = set; then :
47296f5dd5c2Smrg  enableval=$enable_silent_rules;
4730a0195d5fSmrgfi
4731a0195d5fSmrg
47326f5dd5c2Smrgcase $enable_silent_rules in
47336f5dd5c2Smrgyes) AM_DEFAULT_VERBOSITY=0;;
47346f5dd5c2Smrgno)  AM_DEFAULT_VERBOSITY=1;;
47356f5dd5c2Smrg*)   AM_DEFAULT_VERBOSITY=0;;
47366f5dd5c2Smrgesac
47376f5dd5c2SmrgAM_BACKSLASH='\'
4738a0195d5fSmrg
4739a0195d5fSmrg
4740a0195d5fSmrg
47412ab73d9fSmrg# Checks for system functions
47422ab73d9fSmrgfor ac_func in usleep
47432ab73d9fSmrgdo :
47442ab73d9fSmrg  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
47452ab73d9fSmrgif test "x$ac_cv_func_usleep" = xyes; then :
47462ab73d9fSmrg  cat >>confdefs.h <<_ACEOF
47472ab73d9fSmrg#define HAVE_USLEEP 1
47482ab73d9fSmrg_ACEOF
4749a0195d5fSmrg
47502ab73d9fSmrgfi
4751a0195d5fSmrgdone
4752a0195d5fSmrg
47532ab73d9fSmrg
47542ab73d9fSmrg# Checks for pkg-config packages
47552ab73d9fSmrg
47562ab73d9fSmrgpkg_failed=no
47572ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
47582ab73d9fSmrg$as_echo_n "checking for XSET... " >&6; }
47592ab73d9fSmrg
47602ab73d9fSmrgif test -n "$XSET_CFLAGS"; then
47612ab73d9fSmrg    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
47622ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
47632ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
47642ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu\""; } >&5
47652ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "xmuu") 2>&5
47662ab73d9fSmrg  ac_status=$?
47672ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47682ab73d9fSmrg  test $ac_status = 0; }; then
47692ab73d9fSmrg  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xmuu" 2>/dev/null`
47702ab73d9fSmrgelse
47712ab73d9fSmrg  pkg_failed=yes
4772a0195d5fSmrgfi
47732ab73d9fSmrg else
47742ab73d9fSmrg    pkg_failed=untried
47756f5dd5c2Smrgfi
47762ab73d9fSmrgif test -n "$XSET_LIBS"; then
47772ab73d9fSmrg    pkg_cv_XSET_LIBS="$XSET_LIBS"
47782ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
47792ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
47802ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu\""; } >&5
47812ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "xmuu") 2>&5
47822ab73d9fSmrg  ac_status=$?
47832ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47842ab73d9fSmrg  test $ac_status = 0; }; then
47852ab73d9fSmrg  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xmuu" 2>/dev/null`
4786a0195d5fSmrgelse
47872ab73d9fSmrg  pkg_failed=yes
47882ab73d9fSmrgfi
47892ab73d9fSmrg else
47902ab73d9fSmrg    pkg_failed=untried
4791a0195d5fSmrgfi
4792a0195d5fSmrg
4793a0195d5fSmrg
47946f5dd5c2Smrg
47952ab73d9fSmrgif test $pkg_failed = yes; then
47962ab73d9fSmrg
47972ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47982ab73d9fSmrg        _pkg_short_errors_supported=yes
47996f5dd5c2Smrgelse
48002ab73d9fSmrg        _pkg_short_errors_supported=no
48016f5dd5c2Smrgfi
48022ab73d9fSmrg        if test $_pkg_short_errors_supported = yes; then
48032ab73d9fSmrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu" 2>&1`
48042ab73d9fSmrg        else
48052ab73d9fSmrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu" 2>&1`
48062ab73d9fSmrg        fi
48072ab73d9fSmrg	# Put the nasty error message in config.log where it belongs
48082ab73d9fSmrg	echo "$XSET_PKG_ERRORS" >&5
48096f5dd5c2Smrg
48102ab73d9fSmrg	as_fn_error $? "Package requirements (xmuu) were not met:
48112ab73d9fSmrg
48122ab73d9fSmrg$XSET_PKG_ERRORS
48132ab73d9fSmrg
48142ab73d9fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
48152ab73d9fSmrginstalled software in a non-standard prefix.
48162ab73d9fSmrg
48172ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
48182ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
48192ab73d9fSmrgSee the pkg-config man page for more details.
48202ab73d9fSmrg" "$LINENO" 5
48212ab73d9fSmrgelif test $pkg_failed = untried; then
48222ab73d9fSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48232ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48242ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
48252ab73d9fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
48262ab73d9fSmrgpath to pkg-config.
48272ab73d9fSmrg
48282ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
48292ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
48302ab73d9fSmrgSee the pkg-config man page for more details.
48312ab73d9fSmrg
48322ab73d9fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
48332ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
48346f5dd5c2Smrgelse
48352ab73d9fSmrg	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
48362ab73d9fSmrg	XSET_LIBS=$pkg_cv_XSET_LIBS
48372ab73d9fSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48382ab73d9fSmrg$as_echo "yes" >&6; }
48392ab73d9fSmrg	:
48406f5dd5c2Smrgfi
48416f5dd5c2Smrg
48422ab73d9fSmrg# This is used below to allow <X11/Xlib.h> to be found
48432ab73d9fSmrg
48442ab73d9fSmrgpkg_failed=no
48452ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
48462ab73d9fSmrg$as_echo_n "checking for SET_X11... " >&6; }
48476f5dd5c2Smrg
48482ab73d9fSmrgif test -n "$SET_X11_CFLAGS"; then
48492ab73d9fSmrg    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
48502ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
48512ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
48522ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
48532ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
48542ab73d9fSmrg  ac_status=$?
48552ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48562ab73d9fSmrg  test $ac_status = 0; }; then
48572ab73d9fSmrg  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
48582ab73d9fSmrgelse
48592ab73d9fSmrg  pkg_failed=yes
48606f5dd5c2Smrgfi
48612ab73d9fSmrg else
48622ab73d9fSmrg    pkg_failed=untried
48636f5dd5c2Smrgfi
48642ab73d9fSmrgif test -n "$SET_X11_LIBS"; then
48652ab73d9fSmrg    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
48662ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
48672ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
48682ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
48692ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
48702ab73d9fSmrg  ac_status=$?
48712ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48722ab73d9fSmrg  test $ac_status = 0; }; then
48732ab73d9fSmrg  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
48746f5dd5c2Smrgelse
48752ab73d9fSmrg  pkg_failed=yes
48762ab73d9fSmrgfi
48772ab73d9fSmrg else
48782ab73d9fSmrg    pkg_failed=untried
48796f5dd5c2Smrgfi
48806f5dd5c2Smrg
48816f5dd5c2Smrg
48822ab73d9fSmrg
48832ab73d9fSmrgif test $pkg_failed = yes; then
48842ab73d9fSmrg
48852ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48862ab73d9fSmrg        _pkg_short_errors_supported=yes
48872ab73d9fSmrgelse
48882ab73d9fSmrg        _pkg_short_errors_supported=no
4889a0195d5fSmrgfi
4890a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
4891a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
4892a0195d5fSmrg        else
4893a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
4894a0195d5fSmrg        fi
4895a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
4896a0195d5fSmrg	echo "$SET_X11_PKG_ERRORS" >&5
4897a0195d5fSmrg
48982ab73d9fSmrg	as_fn_error $? "Package requirements (x11) were not met:
4899a0195d5fSmrg
4900a0195d5fSmrg$SET_X11_PKG_ERRORS
4901a0195d5fSmrg
4902a0195d5fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
4903a0195d5fSmrginstalled software in a non-standard prefix.
4904a0195d5fSmrg
4905a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
4906a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
4907a0195d5fSmrgSee the pkg-config man page for more details.
49086f5dd5c2Smrg" "$LINENO" 5
4909a0195d5fSmrgelif test $pkg_failed = untried; then
49106f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49116600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49122ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4913a0195d5fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
4914a0195d5fSmrgpath to pkg-config.
4915a0195d5fSmrg
4916a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
4917a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
4918a0195d5fSmrgSee the pkg-config man page for more details.
4919a0195d5fSmrg
4920a0195d5fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
49212ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
4922a0195d5fSmrgelse
4923a0195d5fSmrg	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
4924a0195d5fSmrg	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
49256f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49266600fe5bSmrg$as_echo "yes" >&6; }
4927a0195d5fSmrg	:
4928a0195d5fSmrgfi
4929a0195d5fSmrg
4930a0195d5fSmrg
4931a0195d5fSmrgpkg_failed=no
49326f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
49336600fe5bSmrg$as_echo_n "checking for SET_XEXT... " >&6; }
4934a0195d5fSmrg
4935a0195d5fSmrgif test -n "$SET_XEXT_CFLAGS"; then
4936a0195d5fSmrg    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
4937a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
4938a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
49396f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
4940a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
4941a0195d5fSmrg  ac_status=$?
49426f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49436f5dd5c2Smrg  test $ac_status = 0; }; then
4944a0195d5fSmrg  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
4945a0195d5fSmrgelse
4946a0195d5fSmrg  pkg_failed=yes
4947a0195d5fSmrgfi
4948a0195d5fSmrg else
4949a0195d5fSmrg    pkg_failed=untried
4950a0195d5fSmrgfi
4951a0195d5fSmrgif test -n "$SET_XEXT_LIBS"; then
4952a0195d5fSmrg    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
4953a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
4954a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
49556f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
4956a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
4957a0195d5fSmrg  ac_status=$?
49586f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49596f5dd5c2Smrg  test $ac_status = 0; }; then
4960a0195d5fSmrg  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
4961a0195d5fSmrgelse
4962a0195d5fSmrg  pkg_failed=yes
4963a0195d5fSmrgfi
4964a0195d5fSmrg else
4965a0195d5fSmrg    pkg_failed=untried
4966a0195d5fSmrgfi
4967a0195d5fSmrg
4968a0195d5fSmrg
4969a0195d5fSmrg
4970a0195d5fSmrgif test $pkg_failed = yes; then
4971a0195d5fSmrg
4972a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4973a0195d5fSmrg        _pkg_short_errors_supported=yes
4974a0195d5fSmrgelse
4975a0195d5fSmrg        _pkg_short_errors_supported=no
4976a0195d5fSmrgfi
4977a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
4978a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
4979a0195d5fSmrg        else
4980a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
4981a0195d5fSmrg        fi
4982a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
4983a0195d5fSmrg	echo "$SET_XEXT_PKG_ERRORS" >&5
4984a0195d5fSmrg
49856f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49866600fe5bSmrg$as_echo "no" >&6; }
4987a0195d5fSmrg                echo "not found"
4988a0195d5fSmrgelif test $pkg_failed = untried; then
4989a0195d5fSmrg	echo "not found"
4990a0195d5fSmrgelse
4991a0195d5fSmrg	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
4992a0195d5fSmrg	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
49936f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49946600fe5bSmrg$as_echo "yes" >&6; }
4995a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
4996a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
49976f5dd5c2Smrg	for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
49986f5dd5c2Smrgdo :
49996f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50006f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
50016f5dd5c2Smrg"
50022ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5003a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
50046600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5005a0195d5fSmrg_ACEOF
5006a0195d5fSmrg
5007a0195d5fSmrgfi
5008a0195d5fSmrg
5009a0195d5fSmrgdone
5010a0195d5fSmrg
5011a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
5012a0195d5fSmrgfi
5013a0195d5fSmrg
5014a0195d5fSmrg
5015a0195d5fSmrgpkg_failed=no
50166f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
50176600fe5bSmrg$as_echo_n "checking for SET_XKB... " >&6; }
5018a0195d5fSmrg
5019a0195d5fSmrgif test -n "$SET_XKB_CFLAGS"; then
5020a0195d5fSmrg    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
5021a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5022a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
50236f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5024a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5025a0195d5fSmrg  ac_status=$?
50266f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50276f5dd5c2Smrg  test $ac_status = 0; }; then
5028a0195d5fSmrg  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5029a0195d5fSmrgelse
5030a0195d5fSmrg  pkg_failed=yes
5031a0195d5fSmrgfi
5032a0195d5fSmrg else
5033a0195d5fSmrg    pkg_failed=untried
5034a0195d5fSmrgfi
5035a0195d5fSmrgif test -n "$SET_XKB_LIBS"; then
5036a0195d5fSmrg    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
5037a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5038a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
50396f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5040a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5041a0195d5fSmrg  ac_status=$?
50426f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50436f5dd5c2Smrg  test $ac_status = 0; }; then
5044a0195d5fSmrg  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5045a0195d5fSmrgelse
5046a0195d5fSmrg  pkg_failed=yes
5047a0195d5fSmrgfi
5048a0195d5fSmrg else
5049a0195d5fSmrg    pkg_failed=untried
5050a0195d5fSmrgfi
5051a0195d5fSmrg
5052a0195d5fSmrg
5053a0195d5fSmrg
5054a0195d5fSmrgif test $pkg_failed = yes; then
5055a0195d5fSmrg
5056a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5057a0195d5fSmrg        _pkg_short_errors_supported=yes
5058a0195d5fSmrgelse
5059a0195d5fSmrg        _pkg_short_errors_supported=no
5060a0195d5fSmrgfi
5061a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5062a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5063a0195d5fSmrg        else
5064a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5065a0195d5fSmrg        fi
5066a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5067a0195d5fSmrg	echo "$SET_XKB_PKG_ERRORS" >&5
5068a0195d5fSmrg
50696f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50706600fe5bSmrg$as_echo "no" >&6; }
5071a0195d5fSmrg                echo "not found"
5072a0195d5fSmrgelif test $pkg_failed = untried; then
5073a0195d5fSmrg	echo "not found"
5074a0195d5fSmrgelse
5075a0195d5fSmrg	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
5076a0195d5fSmrg	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
50776f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50786600fe5bSmrg$as_echo "yes" >&6; }
5079a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
5080a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
50816f5dd5c2Smrg	for ac_header in X11/XKBlib.h
50826f5dd5c2Smrgdo :
50836f5dd5c2Smrg  ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
50846f5dd5c2Smrg"
50852ab73d9fSmrgif test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
5086a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
50876f5dd5c2Smrg#define HAVE_X11_XKBLIB_H 1
5088a0195d5fSmrg_ACEOF
5089a0195d5fSmrg
5090a0195d5fSmrgfi
5091a0195d5fSmrg
5092a0195d5fSmrgdone
5093a0195d5fSmrg
5094a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
5095a0195d5fSmrgfi
5096a0195d5fSmrg
5097a0195d5fSmrg
50986f5dd5c2Smrg# Check whether --with-xf86misc was given.
50996f5dd5c2Smrgif test "${with_xf86misc+set}" = set; then :
51006f5dd5c2Smrg  withval=$with_xf86misc; USE_XF86MISC="$withval"
51016f5dd5c2Smrgelse
51026f5dd5c2Smrg  USE_XF86MISC="yes"
51036f5dd5c2Smrgfi
51046f5dd5c2Smrg
51056f5dd5c2Smrgif test "x$USE_XF86MISC" != "xno" ; then
51066f5dd5c2Smrg
5107a0195d5fSmrgpkg_failed=no
51086f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
51096600fe5bSmrg$as_echo_n "checking for SET_XF86MISC... " >&6; }
5110a0195d5fSmrg
5111a0195d5fSmrgif test -n "$SET_XF86MISC_CFLAGS"; then
5112a0195d5fSmrg    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
5113a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5114a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
51156f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5116a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5117a0195d5fSmrg  ac_status=$?
51186f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51196f5dd5c2Smrg  test $ac_status = 0; }; then
5120a0195d5fSmrg  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
5121a0195d5fSmrgelse
5122a0195d5fSmrg  pkg_failed=yes
5123a0195d5fSmrgfi
5124a0195d5fSmrg else
5125a0195d5fSmrg    pkg_failed=untried
5126a0195d5fSmrgfi
5127a0195d5fSmrgif test -n "$SET_XF86MISC_LIBS"; then
5128a0195d5fSmrg    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
5129a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5130a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
51316f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5132a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5133a0195d5fSmrg  ac_status=$?
51346f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51356f5dd5c2Smrg  test $ac_status = 0; }; then
5136a0195d5fSmrg  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
5137a0195d5fSmrgelse
5138a0195d5fSmrg  pkg_failed=yes
5139a0195d5fSmrgfi
5140a0195d5fSmrg else
5141a0195d5fSmrg    pkg_failed=untried
5142a0195d5fSmrgfi
5143a0195d5fSmrg
5144a0195d5fSmrg
5145a0195d5fSmrg
5146a0195d5fSmrgif test $pkg_failed = yes; then
5147a0195d5fSmrg
5148a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5149a0195d5fSmrg        _pkg_short_errors_supported=yes
5150a0195d5fSmrgelse
5151a0195d5fSmrg        _pkg_short_errors_supported=no
5152a0195d5fSmrgfi
5153a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5154a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1`
5155a0195d5fSmrg        else
5156a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1`
5157a0195d5fSmrg        fi
5158a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5159a0195d5fSmrg	echo "$SET_XF86MISC_PKG_ERRORS" >&5
5160a0195d5fSmrg
51616f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51626600fe5bSmrg$as_echo "no" >&6; }
5163a0195d5fSmrg                echo "not found"
5164a0195d5fSmrgelif test $pkg_failed = untried; then
5165a0195d5fSmrg	echo "not found"
5166a0195d5fSmrgelse
5167a0195d5fSmrg	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
5168a0195d5fSmrg	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
51696f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51706600fe5bSmrg$as_echo "yes" >&6; }
5171a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
51726f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
51736f5dd5c2Smrg		for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
51746f5dd5c2Smrgdo :
51756f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51766f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
5177a0195d5fSmrg#include <X11/Xproto.h>
51786f5dd5c2Smrg"
51792ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5180a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
51816600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5182a0195d5fSmrg_ACEOF
5183a0195d5fSmrg
5184a0195d5fSmrgfi
5185a0195d5fSmrg
5186a0195d5fSmrgdone
5187a0195d5fSmrg
51886f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
51896f5dd5c2Smrgfi
51906f5dd5c2Smrgelse
51916f5dd5c2Smrg        echo "without xf86misc"
51926f5dd5c2Smrgfi
51936f5dd5c2Smrg
51946f5dd5c2Smrg
51956f5dd5c2Smrg# Check whether --with-fontcache was given.
51966f5dd5c2Smrgif test "${with_fontcache+set}" = set; then :
51976f5dd5c2Smrg  withval=$with_fontcache; USE_XFONTCACHE="$withval"
51986f5dd5c2Smrgelse
51996f5dd5c2Smrg  USE_XFONTCACHE="yes"
5200a0195d5fSmrgfi
5201a0195d5fSmrg
52026f5dd5c2Smrgif test "x$USE_XFONTCACHE" != "xno" ; then
5203a0195d5fSmrg
5204a0195d5fSmrgpkg_failed=no
52056f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
52066600fe5bSmrg$as_echo_n "checking for SET_FONTCACHE... " >&6; }
5207a0195d5fSmrg
5208a0195d5fSmrgif test -n "$SET_FONTCACHE_CFLAGS"; then
5209a0195d5fSmrg    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
5210a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5211a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
52126f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
5213a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
5214a0195d5fSmrg  ac_status=$?
52156f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52166f5dd5c2Smrg  test $ac_status = 0; }; then
5217a0195d5fSmrg  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
5218a0195d5fSmrgelse
5219a0195d5fSmrg  pkg_failed=yes
5220a0195d5fSmrgfi
5221a0195d5fSmrg else
5222a0195d5fSmrg    pkg_failed=untried
5223a0195d5fSmrgfi
5224a0195d5fSmrgif test -n "$SET_FONTCACHE_LIBS"; then
5225a0195d5fSmrg    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
5226a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5227a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
52286f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
5229a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
5230a0195d5fSmrg  ac_status=$?
52316f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52326f5dd5c2Smrg  test $ac_status = 0; }; then
52336f5dd5c2Smrg  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
52346600fe5bSmrgelse
52356600fe5bSmrg  pkg_failed=yes
52366600fe5bSmrgfi
52376600fe5bSmrg else
52386600fe5bSmrg    pkg_failed=untried
52396600fe5bSmrgfi
5240a0195d5fSmrg
5241a0195d5fSmrg
5242a0195d5fSmrg
52436600fe5bSmrgif test $pkg_failed = yes; then
5244a0195d5fSmrg
52456600fe5bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52466600fe5bSmrg        _pkg_short_errors_supported=yes
52476600fe5bSmrgelse
52486600fe5bSmrg        _pkg_short_errors_supported=no
52496600fe5bSmrgfi
52506600fe5bSmrg        if test $_pkg_short_errors_supported = yes; then
52516f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfontcache" 2>&1`
52526600fe5bSmrg        else
52536f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfontcache" 2>&1`
52546600fe5bSmrg        fi
52556600fe5bSmrg	# Put the nasty error message in config.log where it belongs
52566f5dd5c2Smrg	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
5257a0195d5fSmrg
52586f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52596600fe5bSmrg$as_echo "no" >&6; }
52606600fe5bSmrg                echo "not found"
52616600fe5bSmrgelif test $pkg_failed = untried; then
52626600fe5bSmrg	echo "not found"
52636600fe5bSmrgelse
52646f5dd5c2Smrg	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
52656f5dd5c2Smrg	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
52666f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52676600fe5bSmrg$as_echo "yes" >&6; }
52686600fe5bSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
52696f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
52706f5dd5c2Smrg		for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
52716f5dd5c2Smrgdo :
52726f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52736f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
52746f5dd5c2Smrg"
52752ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
52766600fe5bSmrg  cat >>confdefs.h <<_ACEOF
52776600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5278a0195d5fSmrg_ACEOF
5279a0195d5fSmrg
52806600fe5bSmrgfi
5281a0195d5fSmrg
52826600fe5bSmrgdone
5283a0195d5fSmrg
52846f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
52856f5dd5c2Smrgfi
52866f5dd5c2Smrgelse
52876f5dd5c2Smrg	echo "without fontcache"
52886600fe5bSmrgfi
52896600fe5bSmrg
52906f5dd5c2SmrgXSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
52916f5dd5c2SmrgXSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
5292a0195d5fSmrg
5293a0195d5fSmrg
5294a0195d5fSmrg
5295a0195d5fSmrg
5296a0195d5fSmrgac_config_files="$ac_config_files Makefile"
5297a0195d5fSmrg
5298a0195d5fSmrgcat >confcache <<\_ACEOF
5299a0195d5fSmrg# This file is a shell script that caches the results of configure
5300a0195d5fSmrg# tests run on this system so they can be shared between configure
5301a0195d5fSmrg# scripts and configure runs, see configure's option --config-cache.
5302a0195d5fSmrg# It is not useful on other systems.  If it contains results you don't
5303a0195d5fSmrg# want to keep, you may remove or edit it.
5304a0195d5fSmrg#
5305a0195d5fSmrg# config.status only pays attention to the cache file if you give it
5306a0195d5fSmrg# the --recheck option to rerun configure.
5307a0195d5fSmrg#
5308a0195d5fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5309a0195d5fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5310a0195d5fSmrg# following values.
5311a0195d5fSmrg
5312a0195d5fSmrg_ACEOF
5313a0195d5fSmrg
5314a0195d5fSmrg# The following way of writing the cache mishandles newlines in values,
5315a0195d5fSmrg# but we know of no workaround that is simple, portable, and efficient.
5316a0195d5fSmrg# So, we kill variables containing newlines.
5317a0195d5fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
5318a0195d5fSmrg# and sets the high bit in the cache file unless we assign to the vars.
5319a0195d5fSmrg(
5320a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5321a0195d5fSmrg    eval ac_val=\$$ac_var
5322a0195d5fSmrg    case $ac_val in #(
5323a0195d5fSmrg    *${as_nl}*)
5324a0195d5fSmrg      case $ac_var in #(
53256f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
53266600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5327a0195d5fSmrg      esac
5328a0195d5fSmrg      case $ac_var in #(
5329a0195d5fSmrg      _ | IFS | as_nl) ;; #(
53306600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
53316f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
5332a0195d5fSmrg      esac ;;
5333a0195d5fSmrg    esac
5334a0195d5fSmrg  done
5335a0195d5fSmrg
5336a0195d5fSmrg  (set) 2>&1 |
5337a0195d5fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5338a0195d5fSmrg    *${as_nl}ac_space=\ *)
53396f5dd5c2Smrg      # `set' does not quote correctly, so add quotes: double-quote
53406f5dd5c2Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5341a0195d5fSmrg      sed -n \
5342a0195d5fSmrg	"s/'/'\\\\''/g;
5343a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5344a0195d5fSmrg      ;; #(
5345a0195d5fSmrg    *)
5346a0195d5fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5347a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5348a0195d5fSmrg      ;;
5349a0195d5fSmrg    esac |
5350a0195d5fSmrg    sort
5351a0195d5fSmrg) |
5352a0195d5fSmrg  sed '
5353a0195d5fSmrg     /^ac_cv_env_/b end
5354a0195d5fSmrg     t clear
5355a0195d5fSmrg     :clear
5356a0195d5fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5357a0195d5fSmrg     t end
5358a0195d5fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5359a0195d5fSmrg     :end' >>confcache
5360a0195d5fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5361a0195d5fSmrg  if test -w "$cache_file"; then
53622ab73d9fSmrg    if test "x$cache_file" != "x/dev/null"; then
53636f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
53646600fe5bSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
53652ab73d9fSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
53662ab73d9fSmrg	cat confcache >"$cache_file"
53672ab73d9fSmrg      else
53682ab73d9fSmrg        case $cache_file in #(
53692ab73d9fSmrg        */* | ?:*)
53702ab73d9fSmrg	  mv -f confcache "$cache_file"$$ &&
53712ab73d9fSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
53722ab73d9fSmrg        *)
53732ab73d9fSmrg	  mv -f confcache "$cache_file" ;;
53742ab73d9fSmrg	esac
53752ab73d9fSmrg      fi
53762ab73d9fSmrg    fi
5377a0195d5fSmrg  else
53786f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
53796600fe5bSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5380a0195d5fSmrg  fi
5381a0195d5fSmrgfi
5382a0195d5fSmrgrm -f confcache
5383a0195d5fSmrg
5384a0195d5fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5385a0195d5fSmrg# Let make expand exec_prefix.
5386a0195d5fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5387a0195d5fSmrg
5388a0195d5fSmrgDEFS=-DHAVE_CONFIG_H
5389a0195d5fSmrg
5390a0195d5fSmrgac_libobjs=
5391a0195d5fSmrgac_ltlibobjs=
53922ab73d9fSmrgU=
5393a0195d5fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5394a0195d5fSmrg  # 1. Remove the extension, and $U if already installed.
5395a0195d5fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53966600fe5bSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5397a0195d5fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5398a0195d5fSmrg  #    will be set to the directory where LIBOBJS objects are built.
53996f5dd5c2Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54006f5dd5c2Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5401a0195d5fSmrgdone
5402a0195d5fSmrgLIBOBJS=$ac_libobjs
5403a0195d5fSmrg
5404a0195d5fSmrgLTLIBOBJS=$ac_ltlibobjs
5405a0195d5fSmrg
5406a0195d5fSmrg
54076600fe5bSmrg if test -n "$EXEEXT"; then
54086600fe5bSmrg  am__EXEEXT_TRUE=
54096600fe5bSmrg  am__EXEEXT_FALSE='#'
54106600fe5bSmrgelse
54116600fe5bSmrg  am__EXEEXT_TRUE='#'
54126600fe5bSmrg  am__EXEEXT_FALSE=
54136600fe5bSmrgfi
54146600fe5bSmrg
5415a0195d5fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
54162ab73d9fSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
54176f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5418a0195d5fSmrgfi
5419a0195d5fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54202ab73d9fSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
54216f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5422a0195d5fSmrgfi
5423a0195d5fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54242ab73d9fSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
54256f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5426a0195d5fSmrgfi
5427a0195d5fSmrg
54282ab73d9fSmrg: "${CONFIG_STATUS=./config.status}"
54296600fe5bSmrgac_write_fail=0
5430a0195d5fSmrgac_clean_files_save=$ac_clean_files
5431a0195d5fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
54326f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
54336600fe5bSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
54346f5dd5c2Smrgas_write_fail=0
54356f5dd5c2Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5436a0195d5fSmrg#! $SHELL
5437a0195d5fSmrg# Generated by $as_me.
5438a0195d5fSmrg# Run this file to recreate the current configuration.
5439a0195d5fSmrg# Compiler output produced by configure, useful for debugging
5440a0195d5fSmrg# configure, is in config.log if it exists.
5441a0195d5fSmrg
5442a0195d5fSmrgdebug=false
5443a0195d5fSmrgac_cs_recheck=false
5444a0195d5fSmrgac_cs_silent=false
5445a0195d5fSmrg
54466f5dd5c2SmrgSHELL=\${CONFIG_SHELL-$SHELL}
54476f5dd5c2Smrgexport SHELL
54486f5dd5c2Smrg_ASEOF
54496f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
54506f5dd5c2Smrg## -------------------- ##
54516f5dd5c2Smrg## M4sh Initialization. ##
54526f5dd5c2Smrg## -------------------- ##
5453a0195d5fSmrg
5454a0195d5fSmrg# Be more Bourne compatible
5455a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
54566f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5457a0195d5fSmrg  emulate sh
5458a0195d5fSmrg  NULLCMD=:
54596600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5460a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
5461a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
5462a0195d5fSmrg  setopt NO_GLOB_SUBST
5463a0195d5fSmrgelse
54646f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
54656f5dd5c2Smrg  *posix*) :
54666f5dd5c2Smrg    set -o posix ;; #(
54676f5dd5c2Smrg  *) :
54686f5dd5c2Smrg     ;;
5469a0195d5fSmrgesac
5470a0195d5fSmrgfi
5471a0195d5fSmrg
5472a0195d5fSmrg
54736600fe5bSmrgas_nl='
54746600fe5bSmrg'
54756600fe5bSmrgexport as_nl
54766600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
54776600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
54786600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
54796600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
54806f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
54816f5dd5c2Smrg# but without wasting forks for bash or zsh.
54826f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
54836f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
54846f5dd5c2Smrg  as_echo='print -r --'
54856f5dd5c2Smrg  as_echo_n='print -rn --'
54866f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54876600fe5bSmrg  as_echo='printf %s\n'
54886600fe5bSmrg  as_echo_n='printf %s'
54896600fe5bSmrgelse
54906600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54916600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54926600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
5493a0195d5fSmrg  else
54946600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
54956600fe5bSmrg    as_echo_n_body='eval
54966600fe5bSmrg      arg=$1;
54976f5dd5c2Smrg      case $arg in #(
54986600fe5bSmrg      *"$as_nl"*)
54996600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
55006600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
55016600fe5bSmrg      esac;
55026600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
55036600fe5bSmrg    '
55046600fe5bSmrg    export as_echo_n_body
55056600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5506a0195d5fSmrg  fi
55076600fe5bSmrg  export as_echo_body
55086600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
55096600fe5bSmrgfi
55106600fe5bSmrg
55116600fe5bSmrg# The user is always right.
55126600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
55136600fe5bSmrg  PATH_SEPARATOR=:
55146600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
55156600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
55166600fe5bSmrg      PATH_SEPARATOR=';'
55176600fe5bSmrg  }
5518a0195d5fSmrgfi
5519a0195d5fSmrg
5520a0195d5fSmrg
5521a0195d5fSmrg# IFS
5522a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
5523a0195d5fSmrg# there to prevent editors from complaining about space-tab.
5524a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5525a0195d5fSmrg# splitting by setting IFS to empty value.)
5526a0195d5fSmrgIFS=" ""	$as_nl"
5527a0195d5fSmrg
5528a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
55292ab73d9fSmrgas_myself=
55306f5dd5c2Smrgcase $0 in #((
5531a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
5532a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533a0195d5fSmrgfor as_dir in $PATH
5534a0195d5fSmrgdo
5535a0195d5fSmrg  IFS=$as_save_IFS
5536a0195d5fSmrg  test -z "$as_dir" && as_dir=.
55376f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55386f5dd5c2Smrg  done
5539a0195d5fSmrgIFS=$as_save_IFS
5540a0195d5fSmrg
5541a0195d5fSmrg     ;;
5542a0195d5fSmrgesac
5543a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5544a0195d5fSmrg# in which case we are not to be found in the path.
5545a0195d5fSmrgif test "x$as_myself" = x; then
5546a0195d5fSmrg  as_myself=$0
5547a0195d5fSmrgfi
5548a0195d5fSmrgif test ! -f "$as_myself"; then
55496600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
55506f5dd5c2Smrg  exit 1
5551a0195d5fSmrgfi
5552a0195d5fSmrg
55536f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
55546f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
55556f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
55566f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
55576f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
55586f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
55596f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5560a0195d5fSmrgdone
5561a0195d5fSmrgPS1='$ '
5562a0195d5fSmrgPS2='> '
5563a0195d5fSmrgPS4='+ '
5564a0195d5fSmrg
5565a0195d5fSmrg# NLS nuisances.
55666600fe5bSmrgLC_ALL=C
55676600fe5bSmrgexport LC_ALL
55686600fe5bSmrgLANGUAGE=C
55696600fe5bSmrgexport LANGUAGE
5570a0195d5fSmrg
55716f5dd5c2Smrg# CDPATH.
55726f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
55736f5dd5c2Smrg
55746f5dd5c2Smrg
55752ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
55762ab73d9fSmrg# ----------------------------------------
55776f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
55786f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
55792ab73d9fSmrg# script with STATUS, using 1 if that was 0.
55806f5dd5c2Smrgas_fn_error ()
55816f5dd5c2Smrg{
55822ab73d9fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
55832ab73d9fSmrg  if test "$4"; then
55842ab73d9fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
55852ab73d9fSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
55866f5dd5c2Smrg  fi
55872ab73d9fSmrg  $as_echo "$as_me: error: $2" >&2
55886f5dd5c2Smrg  as_fn_exit $as_status
55896f5dd5c2Smrg} # as_fn_error
55906f5dd5c2Smrg
55916f5dd5c2Smrg
55926f5dd5c2Smrg# as_fn_set_status STATUS
55936f5dd5c2Smrg# -----------------------
55946f5dd5c2Smrg# Set $? to STATUS, without forking.
55956f5dd5c2Smrgas_fn_set_status ()
55966f5dd5c2Smrg{
55976f5dd5c2Smrg  return $1
55986f5dd5c2Smrg} # as_fn_set_status
55996f5dd5c2Smrg
56006f5dd5c2Smrg# as_fn_exit STATUS
56016f5dd5c2Smrg# -----------------
56026f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
56036f5dd5c2Smrgas_fn_exit ()
56046f5dd5c2Smrg{
56056f5dd5c2Smrg  set +e
56066f5dd5c2Smrg  as_fn_set_status $1
56076f5dd5c2Smrg  exit $1
56086f5dd5c2Smrg} # as_fn_exit
56096f5dd5c2Smrg
56106f5dd5c2Smrg# as_fn_unset VAR
56116f5dd5c2Smrg# ---------------
56126f5dd5c2Smrg# Portably unset VAR.
56136f5dd5c2Smrgas_fn_unset ()
56146f5dd5c2Smrg{
56156f5dd5c2Smrg  { eval $1=; unset $1;}
56166f5dd5c2Smrg}
56176f5dd5c2Smrgas_unset=as_fn_unset
56186f5dd5c2Smrg# as_fn_append VAR VALUE
56196f5dd5c2Smrg# ----------------------
56206f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
56216f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
56226f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
56236f5dd5c2Smrg# implementations.
56246f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
56256f5dd5c2Smrg  eval 'as_fn_append ()
56266f5dd5c2Smrg  {
56276f5dd5c2Smrg    eval $1+=\$2
56286f5dd5c2Smrg  }'
56296f5dd5c2Smrgelse
56306f5dd5c2Smrg  as_fn_append ()
56316f5dd5c2Smrg  {
56326f5dd5c2Smrg    eval $1=\$$1\$2
56336f5dd5c2Smrg  }
56346f5dd5c2Smrgfi # as_fn_append
56356f5dd5c2Smrg
56366f5dd5c2Smrg# as_fn_arith ARG...
56376f5dd5c2Smrg# ------------------
56386f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
56396f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
56406f5dd5c2Smrg# must be portable across $(()) and expr.
56416f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
56426f5dd5c2Smrg  eval 'as_fn_arith ()
56436f5dd5c2Smrg  {
56446f5dd5c2Smrg    as_val=$(( $* ))
56456f5dd5c2Smrg  }'
56466f5dd5c2Smrgelse
56476f5dd5c2Smrg  as_fn_arith ()
56486f5dd5c2Smrg  {
56496f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
56506f5dd5c2Smrg  }
56516f5dd5c2Smrgfi # as_fn_arith
56526f5dd5c2Smrg
56536f5dd5c2Smrg
5654a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5655a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5656a0195d5fSmrg  as_expr=expr
5657a0195d5fSmrgelse
5658a0195d5fSmrg  as_expr=false
5659a0195d5fSmrgfi
5660a0195d5fSmrg
5661a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5662a0195d5fSmrg  as_basename=basename
5663a0195d5fSmrgelse
5664a0195d5fSmrg  as_basename=false
5665a0195d5fSmrgfi
5666a0195d5fSmrg
56676f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56686f5dd5c2Smrg  as_dirname=dirname
56696f5dd5c2Smrgelse
56706f5dd5c2Smrg  as_dirname=false
56716f5dd5c2Smrgfi
5672a0195d5fSmrg
5673a0195d5fSmrgas_me=`$as_basename -- "$0" ||
5674a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5675a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
5676a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56776600fe5bSmrg$as_echo X/"$0" |
5678a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5679a0195d5fSmrg	    s//\1/
5680a0195d5fSmrg	    q
5681a0195d5fSmrg	  }
5682a0195d5fSmrg	  /^X\/\(\/\/\)$/{
5683a0195d5fSmrg	    s//\1/
5684a0195d5fSmrg	    q
5685a0195d5fSmrg	  }
5686a0195d5fSmrg	  /^X\/\(\/\).*/{
5687a0195d5fSmrg	    s//\1/
5688a0195d5fSmrg	    q
5689a0195d5fSmrg	  }
5690a0195d5fSmrg	  s/.*/./; q'`
5691a0195d5fSmrg
56926f5dd5c2Smrg# Avoid depending upon Character Ranges.
56936f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
56946f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56956f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
56966f5dd5c2Smrgas_cr_digits='0123456789'
56976f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5698a0195d5fSmrg
5699a0195d5fSmrgECHO_C= ECHO_N= ECHO_T=
57006f5dd5c2Smrgcase `echo -n x` in #(((((
5701a0195d5fSmrg-n*)
57026f5dd5c2Smrg  case `echo 'xy\c'` in
5703a0195d5fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
57046f5dd5c2Smrg  xy)  ECHO_C='\c';;
57056f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
57066f5dd5c2Smrg       ECHO_T='	';;
5707a0195d5fSmrg  esac;;
5708a0195d5fSmrg*)
5709a0195d5fSmrg  ECHO_N='-n';;
5710a0195d5fSmrgesac
5711a0195d5fSmrg
5712a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.file
5713a0195d5fSmrgif test -d conf$$.dir; then
5714a0195d5fSmrg  rm -f conf$$.dir/conf$$.file
5715a0195d5fSmrgelse
5716a0195d5fSmrg  rm -f conf$$.dir
57176600fe5bSmrg  mkdir conf$$.dir 2>/dev/null
57186600fe5bSmrgfi
57196600fe5bSmrgif (echo >conf$$.file) 2>/dev/null; then
57206600fe5bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
57216600fe5bSmrg    as_ln_s='ln -s'
57226600fe5bSmrg    # ... but there are two gotchas:
57236600fe5bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
57246600fe5bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
57256600fe5bSmrg    # In both cases, we have to default to `cp -p'.
57266600fe5bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
57276600fe5bSmrg      as_ln_s='cp -p'
57286600fe5bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
57296600fe5bSmrg    as_ln_s=ln
57306600fe5bSmrg  else
5731a0195d5fSmrg    as_ln_s='cp -p'
57326600fe5bSmrg  fi
5733a0195d5fSmrgelse
5734a0195d5fSmrg  as_ln_s='cp -p'
5735a0195d5fSmrgfi
5736a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5737a0195d5fSmrgrmdir conf$$.dir 2>/dev/null
5738a0195d5fSmrg
57396f5dd5c2Smrg
57406f5dd5c2Smrg# as_fn_mkdir_p
57416f5dd5c2Smrg# -------------
57426f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
57436f5dd5c2Smrgas_fn_mkdir_p ()
57446f5dd5c2Smrg{
57456f5dd5c2Smrg
57466f5dd5c2Smrg  case $as_dir in #(
57476f5dd5c2Smrg  -*) as_dir=./$as_dir;;
57486f5dd5c2Smrg  esac
57496f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
57506f5dd5c2Smrg    as_dirs=
57516f5dd5c2Smrg    while :; do
57526f5dd5c2Smrg      case $as_dir in #(
57536f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57546f5dd5c2Smrg      *) as_qdir=$as_dir;;
57556f5dd5c2Smrg      esac
57566f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
57576f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
57586f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57596f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
57606f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
57616f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57626f5dd5c2Smrg$as_echo X"$as_dir" |
57636f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57646f5dd5c2Smrg	    s//\1/
57656f5dd5c2Smrg	    q
57666f5dd5c2Smrg	  }
57676f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
57686f5dd5c2Smrg	    s//\1/
57696f5dd5c2Smrg	    q
57706f5dd5c2Smrg	  }
57716f5dd5c2Smrg	  /^X\(\/\/\)$/{
57726f5dd5c2Smrg	    s//\1/
57736f5dd5c2Smrg	    q
57746f5dd5c2Smrg	  }
57756f5dd5c2Smrg	  /^X\(\/\).*/{
57766f5dd5c2Smrg	    s//\1/
57776f5dd5c2Smrg	    q
57786f5dd5c2Smrg	  }
57796f5dd5c2Smrg	  s/.*/./; q'`
57806f5dd5c2Smrg      test -d "$as_dir" && break
57816f5dd5c2Smrg    done
57826f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
57832ab73d9fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57846f5dd5c2Smrg
57856f5dd5c2Smrg
57866f5dd5c2Smrg} # as_fn_mkdir_p
5787a0195d5fSmrgif mkdir -p . 2>/dev/null; then
57886f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5789a0195d5fSmrgelse
5790a0195d5fSmrg  test -d ./-p && rmdir ./-p
5791a0195d5fSmrg  as_mkdir_p=false
5792a0195d5fSmrgfi
5793a0195d5fSmrg
5794a0195d5fSmrgif test -x / >/dev/null 2>&1; then
5795a0195d5fSmrg  as_test_x='test -x'
5796a0195d5fSmrgelse
5797a0195d5fSmrg  if ls -dL / >/dev/null 2>&1; then
5798a0195d5fSmrg    as_ls_L_option=L
5799a0195d5fSmrg  else
5800a0195d5fSmrg    as_ls_L_option=
5801a0195d5fSmrg  fi
5802a0195d5fSmrg  as_test_x='
5803a0195d5fSmrg    eval sh -c '\''
5804a0195d5fSmrg      if test -d "$1"; then
58056600fe5bSmrg	test -d "$1/.";
5806a0195d5fSmrg      else
58076f5dd5c2Smrg	case $1 in #(
58086600fe5bSmrg	-*)set "./$1";;
5809a0195d5fSmrg	esac;
58106f5dd5c2Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5811a0195d5fSmrg	???[sx]*):;;*)false;;esac;fi
5812a0195d5fSmrg    '\'' sh
5813a0195d5fSmrg  '
5814a0195d5fSmrgfi
5815a0195d5fSmrgas_executable_p=$as_test_x
5816a0195d5fSmrg
5817a0195d5fSmrg# Sed expression to map a string onto a valid CPP name.
5818a0195d5fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5819a0195d5fSmrg
5820a0195d5fSmrg# Sed expression to map a string onto a valid variable name.
5821a0195d5fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5822a0195d5fSmrg
5823a0195d5fSmrg
5824a0195d5fSmrgexec 6>&1
58256f5dd5c2Smrg## ----------------------------------- ##
58266f5dd5c2Smrg## Main body of $CONFIG_STATUS script. ##
58276f5dd5c2Smrg## ----------------------------------- ##
58286f5dd5c2Smrg_ASEOF
58296f5dd5c2Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5830a0195d5fSmrg
58316f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58326f5dd5c2Smrg# Save the log message, to keep $0 and so on meaningful, and to
5833a0195d5fSmrg# report actual input values of CONFIG_FILES etc. instead of their
5834a0195d5fSmrg# values after options handling.
5835a0195d5fSmrgac_log="
58362ab73d9fSmrgThis file was extended by xset $as_me 1.2.1, which was
58372ab73d9fSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
5838a0195d5fSmrg
5839a0195d5fSmrg  CONFIG_FILES    = $CONFIG_FILES
5840a0195d5fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5841a0195d5fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5842a0195d5fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5843a0195d5fSmrg  $ $0 $@
5844a0195d5fSmrg
5845a0195d5fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5846a0195d5fSmrg"
5847a0195d5fSmrg
5848a0195d5fSmrg_ACEOF
5849a0195d5fSmrg
58506600fe5bSmrgcase $ac_config_files in *"
58516600fe5bSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
58526600fe5bSmrgesac
58536600fe5bSmrg
58546600fe5bSmrgcase $ac_config_headers in *"
58556600fe5bSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
58566600fe5bSmrgesac
58576600fe5bSmrg
58586600fe5bSmrg
58596600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5860a0195d5fSmrg# Files that config.status was made for.
5861a0195d5fSmrgconfig_files="$ac_config_files"
5862a0195d5fSmrgconfig_headers="$ac_config_headers"
5863a0195d5fSmrgconfig_commands="$ac_config_commands"
5864a0195d5fSmrg
5865a0195d5fSmrg_ACEOF
5866a0195d5fSmrg
58676600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5868a0195d5fSmrgac_cs_usage="\
58696f5dd5c2Smrg\`$as_me' instantiates files and other configuration actions
58706f5dd5c2Smrgfrom templates according to the current configuration.  Unless the files
58716f5dd5c2Smrgand actions are specified as TAGs, all are instantiated by default.
5872a0195d5fSmrg
58736f5dd5c2SmrgUsage: $0 [OPTION]... [TAG]...
5874a0195d5fSmrg
5875a0195d5fSmrg  -h, --help       print this help, then exit
5876a0195d5fSmrg  -V, --version    print version number and configuration settings, then exit
58776f5dd5c2Smrg      --config     print configuration, then exit
58786600fe5bSmrg  -q, --quiet, --silent
58796600fe5bSmrg                   do not print progress messages
5880a0195d5fSmrg  -d, --debug      don't remove temporary files
5881a0195d5fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
58826600fe5bSmrg      --file=FILE[:TEMPLATE]
58836600fe5bSmrg                   instantiate the configuration file FILE
58846600fe5bSmrg      --header=FILE[:TEMPLATE]
58856600fe5bSmrg                   instantiate the configuration header FILE
5886a0195d5fSmrg
5887a0195d5fSmrgConfiguration files:
5888a0195d5fSmrg$config_files
5889a0195d5fSmrg
5890a0195d5fSmrgConfiguration headers:
5891a0195d5fSmrg$config_headers
5892a0195d5fSmrg
5893a0195d5fSmrgConfiguration commands:
5894a0195d5fSmrg$config_commands
5895a0195d5fSmrg
58966f5dd5c2SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5897a0195d5fSmrg
5898a0195d5fSmrg_ACEOF
58996600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59006f5dd5c2Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5901a0195d5fSmrgac_cs_version="\\
59022ab73d9fSmrgxset config.status 1.2.1
59032ab73d9fSmrgconfigured by $0, generated by GNU Autoconf 2.68,
59046f5dd5c2Smrg  with options \\"\$ac_cs_config\\"
5905a0195d5fSmrg
59062ab73d9fSmrgCopyright (C) 2010 Free Software Foundation, Inc.
5907a0195d5fSmrgThis config.status script is free software; the Free Software Foundation
5908a0195d5fSmrggives unlimited permission to copy, distribute and modify it."
5909a0195d5fSmrg
5910a0195d5fSmrgac_pwd='$ac_pwd'
5911a0195d5fSmrgsrcdir='$srcdir'
5912a0195d5fSmrgINSTALL='$INSTALL'
5913a0195d5fSmrgMKDIR_P='$MKDIR_P'
59146600fe5bSmrgAWK='$AWK'
59156600fe5bSmrgtest -n "\$AWK" || AWK=awk
5916a0195d5fSmrg_ACEOF
5917a0195d5fSmrg
59186600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59196600fe5bSmrg# The default lists apply if the user does not specify any file.
5920a0195d5fSmrgac_need_defaults=:
5921a0195d5fSmrgwhile test $# != 0
5922a0195d5fSmrgdo
5923a0195d5fSmrg  case $1 in
59242ab73d9fSmrg  --*=?*)
5925a0195d5fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5926a0195d5fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5927a0195d5fSmrg    ac_shift=:
5928a0195d5fSmrg    ;;
59292ab73d9fSmrg  --*=)
59302ab73d9fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
59312ab73d9fSmrg    ac_optarg=
59322ab73d9fSmrg    ac_shift=:
59332ab73d9fSmrg    ;;
5934a0195d5fSmrg  *)
5935a0195d5fSmrg    ac_option=$1
5936a0195d5fSmrg    ac_optarg=$2
5937a0195d5fSmrg    ac_shift=shift
5938a0195d5fSmrg    ;;
5939a0195d5fSmrg  esac
5940a0195d5fSmrg
5941a0195d5fSmrg  case $ac_option in
5942a0195d5fSmrg  # Handling of the options.
5943a0195d5fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5944a0195d5fSmrg    ac_cs_recheck=: ;;
5945a0195d5fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
59466600fe5bSmrg    $as_echo "$ac_cs_version"; exit ;;
59476f5dd5c2Smrg  --config | --confi | --conf | --con | --co | --c )
59486f5dd5c2Smrg    $as_echo "$ac_cs_config"; exit ;;
5949a0195d5fSmrg  --debug | --debu | --deb | --de | --d | -d )
5950a0195d5fSmrg    debug=: ;;
5951a0195d5fSmrg  --file | --fil | --fi | --f )
5952a0195d5fSmrg    $ac_shift
59536600fe5bSmrg    case $ac_optarg in
59546600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59552ab73d9fSmrg    '') as_fn_error $? "missing file argument" ;;
59566600fe5bSmrg    esac
59576f5dd5c2Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5958a0195d5fSmrg    ac_need_defaults=false;;
5959a0195d5fSmrg  --header | --heade | --head | --hea )
5960a0195d5fSmrg    $ac_shift
59616600fe5bSmrg    case $ac_optarg in
59626600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59636600fe5bSmrg    esac
59646f5dd5c2Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5965a0195d5fSmrg    ac_need_defaults=false;;
5966a0195d5fSmrg  --he | --h)
5967a0195d5fSmrg    # Conflict between --help and --header
59682ab73d9fSmrg    as_fn_error $? "ambiguous option: \`$1'
59696f5dd5c2SmrgTry \`$0 --help' for more information.";;
5970a0195d5fSmrg  --help | --hel | -h )
59716600fe5bSmrg    $as_echo "$ac_cs_usage"; exit ;;
5972a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5973a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5974a0195d5fSmrg    ac_cs_silent=: ;;
5975a0195d5fSmrg
5976a0195d5fSmrg  # This is an error.
59772ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
59786f5dd5c2SmrgTry \`$0 --help' for more information." ;;
5979a0195d5fSmrg
59806f5dd5c2Smrg  *) as_fn_append ac_config_targets " $1"
5981a0195d5fSmrg     ac_need_defaults=false ;;
5982a0195d5fSmrg
5983a0195d5fSmrg  esac
5984a0195d5fSmrg  shift
5985a0195d5fSmrgdone
5986a0195d5fSmrg
5987a0195d5fSmrgac_configure_extra_args=
5988a0195d5fSmrg
5989a0195d5fSmrgif $ac_cs_silent; then
5990a0195d5fSmrg  exec 6>/dev/null
5991a0195d5fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5992a0195d5fSmrgfi
5993a0195d5fSmrg
5994a0195d5fSmrg_ACEOF
59956600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5996a0195d5fSmrgif \$ac_cs_recheck; then
59976600fe5bSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
59986600fe5bSmrg  shift
59996600fe5bSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
60006600fe5bSmrg  CONFIG_SHELL='$SHELL'
6001a0195d5fSmrg  export CONFIG_SHELL
60026600fe5bSmrg  exec "\$@"
6003a0195d5fSmrgfi
6004a0195d5fSmrg
6005a0195d5fSmrg_ACEOF
60066600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6007a0195d5fSmrgexec 5>>config.log
6008a0195d5fSmrg{
6009a0195d5fSmrg  echo
6010a0195d5fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6011a0195d5fSmrg## Running $as_me. ##
6012a0195d5fSmrg_ASBOX
60136600fe5bSmrg  $as_echo "$ac_log"
6014a0195d5fSmrg} >&5
6015a0195d5fSmrg
6016a0195d5fSmrg_ACEOF
60176600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6018a0195d5fSmrg#
6019a0195d5fSmrg# INIT-COMMANDS
6020a0195d5fSmrg#
6021a0195d5fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6022a0195d5fSmrg
6023a0195d5fSmrg_ACEOF
6024a0195d5fSmrg
60256600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6026a0195d5fSmrg
6027a0195d5fSmrg# Handling of arguments.
6028a0195d5fSmrgfor ac_config_target in $ac_config_targets
6029a0195d5fSmrgdo
6030a0195d5fSmrg  case $ac_config_target in
60316f5dd5c2Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
60322ab73d9fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6033a0195d5fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6034a0195d5fSmrg
60352ab73d9fSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6036a0195d5fSmrg  esac
6037a0195d5fSmrgdone
6038a0195d5fSmrg
6039a0195d5fSmrg
6040a0195d5fSmrg# If the user did not use the arguments to specify the items to instantiate,
6041a0195d5fSmrg# then the envvar interface is used.  Set only those that are not.
6042a0195d5fSmrg# We use the long form for the default assignment because of an extremely
6043a0195d5fSmrg# bizarre bug on SunOS 4.1.3.
6044a0195d5fSmrgif $ac_need_defaults; then
6045a0195d5fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6046a0195d5fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6047a0195d5fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6048a0195d5fSmrgfi
6049a0195d5fSmrg
6050a0195d5fSmrg# Have a temporary directory for convenience.  Make it in the build tree
6051a0195d5fSmrg# simply because there is no reason against having it here, and in addition,
6052a0195d5fSmrg# creating and moving files from /tmp can sometimes cause problems.
6053a0195d5fSmrg# Hook for its removal unless debugging.
6054a0195d5fSmrg# Note that there is a small window in which the directory will not be cleaned:
6055a0195d5fSmrg# after its creation but before its name has been assigned to `$tmp'.
6056a0195d5fSmrg$debug ||
6057a0195d5fSmrg{
60582ab73d9fSmrg  tmp= ac_tmp=
6059a0195d5fSmrg  trap 'exit_status=$?
60602ab73d9fSmrg  : "${ac_tmp:=$tmp}"
60612ab73d9fSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6062a0195d5fSmrg' 0
60636f5dd5c2Smrg  trap 'as_fn_exit 1' 1 2 13 15
6064a0195d5fSmrg}
6065a0195d5fSmrg# Create a (secure) tmp directory for tmp files.
6066a0195d5fSmrg
6067a0195d5fSmrg{
6068a0195d5fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
60692ab73d9fSmrg  test -d "$tmp"
6070a0195d5fSmrg}  ||
6071a0195d5fSmrg{
6072a0195d5fSmrg  tmp=./conf$$-$RANDOM
6073a0195d5fSmrg  (umask 077 && mkdir "$tmp")
60742ab73d9fSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
60752ab73d9fSmrgac_tmp=$tmp
6076a0195d5fSmrg
60776600fe5bSmrg# Set up the scripts for CONFIG_FILES section.
60786600fe5bSmrg# No need to generate them if there are no CONFIG_FILES.
60796600fe5bSmrg# This happens for instance with `./config.status config.h'.
6080a0195d5fSmrgif test -n "$CONFIG_FILES"; then
6081a0195d5fSmrg
6082a0195d5fSmrg
60836f5dd5c2Smrgac_cr=`echo X | tr X '\015'`
60846f5dd5c2Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
60856f5dd5c2Smrg# But we know of no other shell where ac_cr would be empty at this
60866f5dd5c2Smrg# point, so we can use a bashism as a fallback.
60876f5dd5c2Smrgif test "x$ac_cr" = x; then
60886f5dd5c2Smrg  eval ac_cr=\$\'\\r\'
60896f5dd5c2Smrgfi
60906600fe5bSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
60916600fe5bSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
60922ab73d9fSmrg  ac_cs_awk_cr='\\r'
60936600fe5bSmrgelse
60946600fe5bSmrg  ac_cs_awk_cr=$ac_cr
6095a0195d5fSmrgfi
6096a0195d5fSmrg
60972ab73d9fSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6098a0195d5fSmrg_ACEOF
6099a0195d5fSmrg
6100a0195d5fSmrg
61016600fe5bSmrg{
61026600fe5bSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
61036600fe5bSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
61046600fe5bSmrg  echo "_ACEOF"
61056600fe5bSmrg} >conf$$subs.sh ||
61062ab73d9fSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
61072ab73d9fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6108a0195d5fSmrgac_delim='%!_!# '
6109a0195d5fSmrgfor ac_last_try in false false false false false :; do
61106600fe5bSmrg  . ./conf$$subs.sh ||
61112ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6112a0195d5fSmrg
61136600fe5bSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
61146600fe5bSmrg  if test $ac_delim_n = $ac_delim_num; then
6115a0195d5fSmrg    break
6116a0195d5fSmrg  elif $ac_last_try; then
61172ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6118a0195d5fSmrg  else
6119a0195d5fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6120a0195d5fSmrg  fi
6121a0195d5fSmrgdone
61226600fe5bSmrgrm -f conf$$subs.sh
6123a0195d5fSmrg
61246600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61252ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
61266600fe5bSmrg_ACEOF
61276600fe5bSmrgsed -n '
61286600fe5bSmrgh
61296600fe5bSmrgs/^/S["/; s/!.*/"]=/
61306600fe5bSmrgp
61316600fe5bSmrgg
61326600fe5bSmrgs/^[^!]*!//
61336600fe5bSmrg:repl
61346600fe5bSmrgt repl
61356600fe5bSmrgs/'"$ac_delim"'$//
61366600fe5bSmrgt delim
61376600fe5bSmrg:nl
61386600fe5bSmrgh
61396f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
61406600fe5bSmrgt more1
61416600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
61426600fe5bSmrgp
61436600fe5bSmrgn
61446600fe5bSmrgb repl
61456600fe5bSmrg:more1
61466600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
61476600fe5bSmrgp
61486600fe5bSmrgg
61496600fe5bSmrgs/.\{148\}//
61506600fe5bSmrgt nl
61516600fe5bSmrg:delim
61526600fe5bSmrgh
61536f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
61546600fe5bSmrgt more2
61556600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
61566600fe5bSmrgp
61576600fe5bSmrgb
61586600fe5bSmrg:more2
61596600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
61606600fe5bSmrgp
61616600fe5bSmrgg
61626600fe5bSmrgs/.\{148\}//
61636600fe5bSmrgt delim
61646600fe5bSmrg' <conf$$subs.awk | sed '
61656600fe5bSmrg/^[^""]/{
61666600fe5bSmrg  N
61676600fe5bSmrg  s/\n//
61686600fe5bSmrg}
61696600fe5bSmrg' >>$CONFIG_STATUS || ac_write_fail=1
61706600fe5bSmrgrm -f conf$$subs.awk
61716600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61726600fe5bSmrg_ACAWK
61732ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
61746600fe5bSmrg  for (key in S) S_is_set[key] = 1
61756600fe5bSmrg  FS = ""
61766600fe5bSmrg
61776600fe5bSmrg}
61786600fe5bSmrg{
61796600fe5bSmrg  line = $ 0
61806600fe5bSmrg  nfields = split(line, field, "@")
61816600fe5bSmrg  substed = 0
61826600fe5bSmrg  len = length(field[1])
61836600fe5bSmrg  for (i = 2; i < nfields; i++) {
61846600fe5bSmrg    key = field[i]
61856600fe5bSmrg    keylen = length(key)
61866600fe5bSmrg    if (S_is_set[key]) {
61876600fe5bSmrg      value = S[key]
61886600fe5bSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
61896600fe5bSmrg      len += length(value) + length(field[++i])
61906600fe5bSmrg      substed = 1
61916600fe5bSmrg    } else
61926600fe5bSmrg      len += 1 + keylen
61936600fe5bSmrg  }
61946600fe5bSmrg
61956600fe5bSmrg  print line
61966600fe5bSmrg}
6197a0195d5fSmrg
61986600fe5bSmrg_ACAWK
6199a0195d5fSmrg_ACEOF
62006600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62016600fe5bSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
62026600fe5bSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
62036600fe5bSmrgelse
62046600fe5bSmrg  cat
62052ab73d9fSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
62062ab73d9fSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6207a0195d5fSmrg_ACEOF
6208a0195d5fSmrg
62092ab73d9fSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
62102ab73d9fSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6211a0195d5fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
6212a0195d5fSmrg# (actually we leave an empty line to preserve line numbers).
6213a0195d5fSmrgif test "x$srcdir" = x.; then
62142ab73d9fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
62152ab73d9fSmrgh
62162ab73d9fSmrgs///
62172ab73d9fSmrgs/^/:/
62182ab73d9fSmrgs/[	 ]*$/:/
62192ab73d9fSmrgs/:\$(srcdir):/:/g
62202ab73d9fSmrgs/:\${srcdir}:/:/g
62212ab73d9fSmrgs/:@srcdir@:/:/g
62222ab73d9fSmrgs/^:*//
6223a0195d5fSmrgs/:*$//
62242ab73d9fSmrgx
62252ab73d9fSmrgs/\(=[	 ]*\).*/\1/
62262ab73d9fSmrgG
62272ab73d9fSmrgs/\n//
6228a0195d5fSmrgs/^[^=]*=[	 ]*$//
6229a0195d5fSmrg}'
6230a0195d5fSmrgfi
6231a0195d5fSmrg
62326600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6233a0195d5fSmrgfi # test -n "$CONFIG_FILES"
6234a0195d5fSmrg
62356600fe5bSmrg# Set up the scripts for CONFIG_HEADERS section.
62366600fe5bSmrg# No need to generate them if there are no CONFIG_HEADERS.
62376600fe5bSmrg# This happens for instance with `./config.status Makefile'.
62386600fe5bSmrgif test -n "$CONFIG_HEADERS"; then
62392ab73d9fSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
62406600fe5bSmrgBEGIN {
62416600fe5bSmrg_ACEOF
62426600fe5bSmrg
62436600fe5bSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
62446600fe5bSmrg# here-document in config.status, that substitutes the proper values into
62456600fe5bSmrg# config.h.in to produce config.h.
62466600fe5bSmrg
62476600fe5bSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
62486600fe5bSmrg# handling of long lines.
62496600fe5bSmrgac_delim='%!_!# '
62506600fe5bSmrgfor ac_last_try in false false :; do
62512ab73d9fSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
62522ab73d9fSmrg  if test -z "$ac_tt"; then
62536600fe5bSmrg    break
62546600fe5bSmrg  elif $ac_last_try; then
62552ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
62566600fe5bSmrg  else
62576600fe5bSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62586600fe5bSmrg  fi
62596600fe5bSmrgdone
62606600fe5bSmrg
62616600fe5bSmrg# For the awk script, D is an array of macro values keyed by name,
62626600fe5bSmrg# likewise P contains macro parameters if any.  Preserve backslash
62636600fe5bSmrg# newline sequences.
62646600fe5bSmrg
62656600fe5bSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
62666600fe5bSmrgsed -n '
62676600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
62686600fe5bSmrgt rset
62696600fe5bSmrg:rset
62706600fe5bSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
62716600fe5bSmrgt def
62726600fe5bSmrgd
62736600fe5bSmrg:def
62746600fe5bSmrgs/\\$//
62756600fe5bSmrgt bsnl
62766600fe5bSmrgs/["\\]/\\&/g
62776600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
62786600fe5bSmrgD["\1"]=" \3"/p
62796600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
62806600fe5bSmrgd
62816600fe5bSmrg:bsnl
62826600fe5bSmrgs/["\\]/\\&/g
62836600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
62846600fe5bSmrgD["\1"]=" \3\\\\\\n"\\/p
62856600fe5bSmrgt cont
62866600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
62876600fe5bSmrgt cont
62886600fe5bSmrgd
62896600fe5bSmrg:cont
62906600fe5bSmrgn
62916600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
62926600fe5bSmrgt clear
62936600fe5bSmrg:clear
62946600fe5bSmrgs/\\$//
62956600fe5bSmrgt bsnlc
62966600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
62976600fe5bSmrgd
62986600fe5bSmrg:bsnlc
62996600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
63006600fe5bSmrgb cont
63016600fe5bSmrg' <confdefs.h | sed '
63026600fe5bSmrgs/'"$ac_delim"'/"\\\
63036600fe5bSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
63046600fe5bSmrg
63056600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63066600fe5bSmrg  for (key in D) D_is_set[key] = 1
63076600fe5bSmrg  FS = ""
63086600fe5bSmrg}
63096600fe5bSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
63106600fe5bSmrg  line = \$ 0
63116600fe5bSmrg  split(line, arg, " ")
63126600fe5bSmrg  if (arg[1] == "#") {
63136600fe5bSmrg    defundef = arg[2]
63146600fe5bSmrg    mac1 = arg[3]
63156600fe5bSmrg  } else {
63166600fe5bSmrg    defundef = substr(arg[1], 2)
63176600fe5bSmrg    mac1 = arg[2]
63186600fe5bSmrg  }
63196600fe5bSmrg  split(mac1, mac2, "(") #)
63206600fe5bSmrg  macro = mac2[1]
63216600fe5bSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
63226600fe5bSmrg  if (D_is_set[macro]) {
63236600fe5bSmrg    # Preserve the white space surrounding the "#".
63246600fe5bSmrg    print prefix "define", macro P[macro] D[macro]
63256600fe5bSmrg    next
63266600fe5bSmrg  } else {
63276600fe5bSmrg    # Replace #undef with comments.  This is necessary, for example,
63286600fe5bSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
63296600fe5bSmrg    # on some systems where configure will not decide to define it.
63306600fe5bSmrg    if (defundef == "undef") {
63316600fe5bSmrg      print "/*", prefix defundef, macro, "*/"
63326600fe5bSmrg      next
63336600fe5bSmrg    }
63346600fe5bSmrg  }
63356600fe5bSmrg}
63366600fe5bSmrg{ print }
63376600fe5bSmrg_ACAWK
63386600fe5bSmrg_ACEOF
63396600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63402ab73d9fSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
63416600fe5bSmrgfi # test -n "$CONFIG_HEADERS"
63426600fe5bSmrg
6343a0195d5fSmrg
63446600fe5bSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
63456600fe5bSmrgshift
63466600fe5bSmrgfor ac_tag
6347a0195d5fSmrgdo
6348a0195d5fSmrg  case $ac_tag in
6349a0195d5fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6350a0195d5fSmrg  esac
6351a0195d5fSmrg  case $ac_mode$ac_tag in
6352a0195d5fSmrg  :[FHL]*:*);;
63532ab73d9fSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6354a0195d5fSmrg  :[FH]-) ac_tag=-:-;;
6355a0195d5fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6356a0195d5fSmrg  esac
6357a0195d5fSmrg  ac_save_IFS=$IFS
6358a0195d5fSmrg  IFS=:
6359a0195d5fSmrg  set x $ac_tag
6360a0195d5fSmrg  IFS=$ac_save_IFS
6361a0195d5fSmrg  shift
6362a0195d5fSmrg  ac_file=$1
6363a0195d5fSmrg  shift
6364a0195d5fSmrg
6365a0195d5fSmrg  case $ac_mode in
6366a0195d5fSmrg  :L) ac_source=$1;;
6367a0195d5fSmrg  :[FH])
6368a0195d5fSmrg    ac_file_inputs=
6369a0195d5fSmrg    for ac_f
6370a0195d5fSmrg    do
6371a0195d5fSmrg      case $ac_f in
63722ab73d9fSmrg      -) ac_f="$ac_tmp/stdin";;
6373a0195d5fSmrg      *) # Look for the file first in the build tree, then in the source tree
6374a0195d5fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6375a0195d5fSmrg	 # because $ac_f cannot contain `:'.
6376a0195d5fSmrg	 test -f "$ac_f" ||
6377a0195d5fSmrg	   case $ac_f in
6378a0195d5fSmrg	   [\\/$]*) false;;
6379a0195d5fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6380a0195d5fSmrg	   esac ||
63812ab73d9fSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6382a0195d5fSmrg      esac
63836600fe5bSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
63846f5dd5c2Smrg      as_fn_append ac_file_inputs " '$ac_f'"
6385a0195d5fSmrg    done
6386a0195d5fSmrg
6387a0195d5fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6388a0195d5fSmrg    # use $as_me), people would be surprised to read:
6389a0195d5fSmrg    #    /* config.h.  Generated by config.status.  */
63906600fe5bSmrg    configure_input='Generated from '`
63916600fe5bSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
63926600fe5bSmrg	`' by configure.'
6393a0195d5fSmrg    if test x"$ac_file" != x-; then
6394a0195d5fSmrg      configure_input="$ac_file.  $configure_input"
63956f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
63966600fe5bSmrg$as_echo "$as_me: creating $ac_file" >&6;}
6397a0195d5fSmrg    fi
63986600fe5bSmrg    # Neutralize special characters interpreted by sed in replacement strings.
63996600fe5bSmrg    case $configure_input in #(
64006600fe5bSmrg    *\&* | *\|* | *\\* )
64016600fe5bSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
64026600fe5bSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
64036600fe5bSmrg    *) ac_sed_conf_input=$configure_input;;
64046600fe5bSmrg    esac
6405a0195d5fSmrg
6406a0195d5fSmrg    case $ac_tag in
64072ab73d9fSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
64082ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6409a0195d5fSmrg    esac
6410a0195d5fSmrg    ;;
6411a0195d5fSmrg  esac
6412a0195d5fSmrg
6413a0195d5fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
6414a0195d5fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6415a0195d5fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6416a0195d5fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
6417a0195d5fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
64186600fe5bSmrg$as_echo X"$ac_file" |
6419a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6420a0195d5fSmrg	    s//\1/
6421a0195d5fSmrg	    q
6422a0195d5fSmrg	  }
6423a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6424a0195d5fSmrg	    s//\1/
6425a0195d5fSmrg	    q
6426a0195d5fSmrg	  }
6427a0195d5fSmrg	  /^X\(\/\/\)$/{
6428a0195d5fSmrg	    s//\1/
6429a0195d5fSmrg	    q
6430a0195d5fSmrg	  }
6431a0195d5fSmrg	  /^X\(\/\).*/{
6432a0195d5fSmrg	    s//\1/
6433a0195d5fSmrg	    q
6434a0195d5fSmrg	  }
6435a0195d5fSmrg	  s/.*/./; q'`
64366f5dd5c2Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
6437a0195d5fSmrg  ac_builddir=.
6438a0195d5fSmrg
6439a0195d5fSmrgcase "$ac_dir" in
6440a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6441a0195d5fSmrg*)
64426600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6443a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
64446600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6445a0195d5fSmrg  case $ac_top_builddir_sub in
6446a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6447a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6448a0195d5fSmrg  esac ;;
6449a0195d5fSmrgesac
6450a0195d5fSmrgac_abs_top_builddir=$ac_pwd
6451a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6452a0195d5fSmrg# for backward compatibility:
6453a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
6454a0195d5fSmrg
6455a0195d5fSmrgcase $srcdir in
6456a0195d5fSmrg  .)  # We are building in place.
6457a0195d5fSmrg    ac_srcdir=.
6458a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
6459a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
6460a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6461a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
6462a0195d5fSmrg    ac_top_srcdir=$srcdir
6463a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
6464a0195d5fSmrg  *) # Relative name.
6465a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6466a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
6467a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6468a0195d5fSmrgesac
6469a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6470a0195d5fSmrg
6471a0195d5fSmrg
6472a0195d5fSmrg  case $ac_mode in
6473a0195d5fSmrg  :F)
6474a0195d5fSmrg  #
6475a0195d5fSmrg  # CONFIG_FILE
6476a0195d5fSmrg  #
6477a0195d5fSmrg
6478a0195d5fSmrg  case $INSTALL in
6479a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6480a0195d5fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6481a0195d5fSmrg  esac
6482a0195d5fSmrg  ac_MKDIR_P=$MKDIR_P
6483a0195d5fSmrg  case $MKDIR_P in
6484a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ;;
6485a0195d5fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6486a0195d5fSmrg  esac
6487a0195d5fSmrg_ACEOF
6488a0195d5fSmrg
64896600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6490a0195d5fSmrg# If the template does not know about datarootdir, expand it.
6491a0195d5fSmrg# FIXME: This hack should be removed a few years after 2.60.
6492a0195d5fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
64936600fe5bSmrgac_sed_dataroot='
64946600fe5bSmrg/datarootdir/ {
6495a0195d5fSmrg  p
6496a0195d5fSmrg  q
6497a0195d5fSmrg}
6498a0195d5fSmrg/@datadir@/p
6499a0195d5fSmrg/@docdir@/p
6500a0195d5fSmrg/@infodir@/p
6501a0195d5fSmrg/@localedir@/p
65026f5dd5c2Smrg/@mandir@/p'
65036600fe5bSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6504a0195d5fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
6505a0195d5fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
65066f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
65076600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6508a0195d5fSmrg_ACEOF
65096600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6510a0195d5fSmrg  ac_datarootdir_hack='
6511a0195d5fSmrg  s&@datadir@&$datadir&g
6512a0195d5fSmrg  s&@docdir@&$docdir&g
6513a0195d5fSmrg  s&@infodir@&$infodir&g
6514a0195d5fSmrg  s&@localedir@&$localedir&g
6515a0195d5fSmrg  s&@mandir@&$mandir&g
65166f5dd5c2Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6517a0195d5fSmrgesac
6518a0195d5fSmrg_ACEOF
6519a0195d5fSmrg
6520a0195d5fSmrg# Neutralize VPATH when `$srcdir' = `.'.
6521a0195d5fSmrg# Shell code in configure.ac might set extrasub.
6522a0195d5fSmrg# FIXME: do we really want to maintain this feature?
65236600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65246600fe5bSmrgac_sed_extra="$ac_vpsub
6525a0195d5fSmrg$extrasub
6526a0195d5fSmrg_ACEOF
65276600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6528a0195d5fSmrg:t
6529a0195d5fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
65306600fe5bSmrgs|@configure_input@|$ac_sed_conf_input|;t t
6531a0195d5fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
65326600fe5bSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6533a0195d5fSmrgs&@srcdir@&$ac_srcdir&;t t
6534a0195d5fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6535a0195d5fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
6536a0195d5fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6537a0195d5fSmrgs&@builddir@&$ac_builddir&;t t
6538a0195d5fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
6539a0195d5fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6540a0195d5fSmrgs&@INSTALL@&$ac_INSTALL&;t t
6541a0195d5fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6542a0195d5fSmrg$ac_datarootdir_hack
65436600fe5bSmrg"
65442ab73d9fSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
65452ab73d9fSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6546a0195d5fSmrg
6547a0195d5fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
65482ab73d9fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
65492ab73d9fSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
65502ab73d9fSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
65516f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
65522ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
65536600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
65542ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
6555a0195d5fSmrg
65562ab73d9fSmrg  rm -f "$ac_tmp/stdin"
6557a0195d5fSmrg  case $ac_file in
65582ab73d9fSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
65592ab73d9fSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
65606600fe5bSmrg  esac \
65612ab73d9fSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6562a0195d5fSmrg ;;
6563a0195d5fSmrg  :H)
6564a0195d5fSmrg  #
6565a0195d5fSmrg  # CONFIG_HEADER
6566a0195d5fSmrg  #
6567a0195d5fSmrg  if test x"$ac_file" != x-; then
65686600fe5bSmrg    {
65696600fe5bSmrg      $as_echo "/* $configure_input  */" \
65702ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
65712ab73d9fSmrg    } >"$ac_tmp/config.h" \
65722ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
65732ab73d9fSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
65746f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
65756600fe5bSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6576a0195d5fSmrg    else
65776600fe5bSmrg      rm -f "$ac_file"
65782ab73d9fSmrg      mv "$ac_tmp/config.h" "$ac_file" \
65792ab73d9fSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6580a0195d5fSmrg    fi
6581a0195d5fSmrg  else
65826600fe5bSmrg    $as_echo "/* $configure_input  */" \
65832ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
65842ab73d9fSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
6585a0195d5fSmrg  fi
65866600fe5bSmrg# Compute "$ac_file"'s index in $config_headers.
65876600fe5bSmrg_am_arg="$ac_file"
6588a0195d5fSmrg_am_stamp_count=1
6589a0195d5fSmrgfor _am_header in $config_headers :; do
6590a0195d5fSmrg  case $_am_header in
6591a0195d5fSmrg    $_am_arg | $_am_arg:* )
6592a0195d5fSmrg      break ;;
6593a0195d5fSmrg    * )
6594a0195d5fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6595a0195d5fSmrg  esac
6596a0195d5fSmrgdone
6597a0195d5fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6598a0195d5fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6599a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6600a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6601a0195d5fSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
66026600fe5bSmrg$as_echo X"$_am_arg" |
6603a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6604a0195d5fSmrg	    s//\1/
6605a0195d5fSmrg	    q
6606a0195d5fSmrg	  }
6607a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6608a0195d5fSmrg	    s//\1/
6609a0195d5fSmrg	    q
6610a0195d5fSmrg	  }
6611a0195d5fSmrg	  /^X\(\/\/\)$/{
6612a0195d5fSmrg	    s//\1/
6613a0195d5fSmrg	    q
6614a0195d5fSmrg	  }
6615a0195d5fSmrg	  /^X\(\/\).*/{
6616a0195d5fSmrg	    s//\1/
6617a0195d5fSmrg	    q
6618a0195d5fSmrg	  }
6619a0195d5fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6620a0195d5fSmrg ;;
6621a0195d5fSmrg
66226f5dd5c2Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
66236600fe5bSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6624a0195d5fSmrg ;;
6625a0195d5fSmrg  esac
6626a0195d5fSmrg
6627a0195d5fSmrg
6628a0195d5fSmrg  case $ac_file$ac_mode in
66296600fe5bSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
66306600fe5bSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
66316600fe5bSmrg  # are listed without --file.  Let's play safe and only enable the eval
66326600fe5bSmrg  # if we detect the quoting.
66336600fe5bSmrg  case $CONFIG_FILES in
66346600fe5bSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
66356600fe5bSmrg  *)   set x $CONFIG_FILES ;;
66366600fe5bSmrg  esac
66376600fe5bSmrg  shift
66386600fe5bSmrg  for mf
66396600fe5bSmrg  do
66406600fe5bSmrg    # Strip MF so we end up with the name of the file.
66416600fe5bSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
66426600fe5bSmrg    # Check whether this is an Automake generated Makefile or not.
66436600fe5bSmrg    # We used to match only the files named `Makefile.in', but
66446600fe5bSmrg    # some people rename them; so instead we look at the file content.
66456600fe5bSmrg    # Grep'ing the first line is not enough: some people post-process
66466600fe5bSmrg    # each Makefile.in and add a new line on top of each file to say so.
66476600fe5bSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
66486600fe5bSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
66496600fe5bSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
66506600fe5bSmrg      dirpart=`$as_dirname -- "$mf" ||
6651a0195d5fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6652a0195d5fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6653a0195d5fSmrg	 X"$mf" : 'X\(//\)$' \| \
6654a0195d5fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
66556600fe5bSmrg$as_echo X"$mf" |
6656a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6657a0195d5fSmrg	    s//\1/
6658a0195d5fSmrg	    q
6659a0195d5fSmrg	  }
6660a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6661a0195d5fSmrg	    s//\1/
6662a0195d5fSmrg	    q
6663a0195d5fSmrg	  }
6664a0195d5fSmrg	  /^X\(\/\/\)$/{
6665a0195d5fSmrg	    s//\1/
6666a0195d5fSmrg	    q
6667a0195d5fSmrg	  }
6668a0195d5fSmrg	  /^X\(\/\).*/{
6669a0195d5fSmrg	    s//\1/
6670a0195d5fSmrg	    q
6671a0195d5fSmrg	  }
6672a0195d5fSmrg	  s/.*/./; q'`
66736600fe5bSmrg    else
66746600fe5bSmrg      continue
66756600fe5bSmrg    fi
66766600fe5bSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
66776600fe5bSmrg    # from the Makefile without running `make'.
66786600fe5bSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
66796600fe5bSmrg    test -z "$DEPDIR" && continue
66806600fe5bSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
66816600fe5bSmrg    test -z "am__include" && continue
66826600fe5bSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
66836600fe5bSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
66846600fe5bSmrg    U=`sed -n 's/^U = //p' < "$mf"`
66856600fe5bSmrg    # Find all dependency output files, they are included files with
66866600fe5bSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
66876600fe5bSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
66886600fe5bSmrg    # expansion.
66896600fe5bSmrg    for file in `sed -n "
66906600fe5bSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
66916600fe5bSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
66926600fe5bSmrg      # Make sure the directory exists.
66936600fe5bSmrg      test -f "$dirpart/$file" && continue
66946600fe5bSmrg      fdir=`$as_dirname -- "$file" ||
6695a0195d5fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6696a0195d5fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6697a0195d5fSmrg	 X"$file" : 'X\(//\)$' \| \
6698a0195d5fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
66996600fe5bSmrg$as_echo X"$file" |
6700a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6701a0195d5fSmrg	    s//\1/
6702a0195d5fSmrg	    q
6703a0195d5fSmrg	  }
6704a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6705a0195d5fSmrg	    s//\1/
6706a0195d5fSmrg	    q
6707a0195d5fSmrg	  }
6708a0195d5fSmrg	  /^X\(\/\/\)$/{
6709a0195d5fSmrg	    s//\1/
6710a0195d5fSmrg	    q
6711a0195d5fSmrg	  }
6712a0195d5fSmrg	  /^X\(\/\).*/{
6713a0195d5fSmrg	    s//\1/
6714a0195d5fSmrg	    q
6715a0195d5fSmrg	  }
6716a0195d5fSmrg	  s/.*/./; q'`
67176f5dd5c2Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
67186600fe5bSmrg      # echo "creating $dirpart/$file"
67196600fe5bSmrg      echo '# dummy' > "$dirpart/$file"
67206600fe5bSmrg    done
6721a0195d5fSmrg  done
67226600fe5bSmrg}
6723a0195d5fSmrg ;;
6724a0195d5fSmrg
6725a0195d5fSmrg  esac
6726a0195d5fSmrgdone # for ac_tag
6727a0195d5fSmrg
6728a0195d5fSmrg
67296f5dd5c2Smrgas_fn_exit 0
6730a0195d5fSmrg_ACEOF
6731a0195d5fSmrgac_clean_files=$ac_clean_files_save
6732a0195d5fSmrg
67336600fe5bSmrgtest $ac_write_fail = 0 ||
67342ab73d9fSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
67356600fe5bSmrg
6736a0195d5fSmrg
6737a0195d5fSmrg# configure is writing to config.log, and then calls config.status.
6738a0195d5fSmrg# config.status does its own redirection, appending to config.log.
6739a0195d5fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6740a0195d5fSmrg# by configure, so config.status won't be able to write to it; its
6741a0195d5fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6742a0195d5fSmrg# effectively closing config.log, so it can be properly (re)opened and
6743a0195d5fSmrg# appended to by config.status.  When coming back to configure, we
6744a0195d5fSmrg# need to make the FD available again.
6745a0195d5fSmrgif test "$no_create" != yes; then
6746a0195d5fSmrg  ac_cs_success=:
6747a0195d5fSmrg  ac_config_status_args=
6748a0195d5fSmrg  test "$silent" = yes &&
6749a0195d5fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6750a0195d5fSmrg  exec 5>/dev/null
6751a0195d5fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6752a0195d5fSmrg  exec 5>>config.log
6753a0195d5fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6754a0195d5fSmrg  # would make configure fail if this is the last instruction.
67552ab73d9fSmrg  $ac_cs_success || as_fn_exit 1
6756a0195d5fSmrgfi
67576600fe5bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
67586f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
67596600fe5bSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
67606600fe5bSmrgfi
6761a0195d5fSmrg
6762