configure revision ff6cf368
1a0195d5fSmrg#! /bin/sh
2a0195d5fSmrg# Guess values for system-dependent variables and create Makefiles.
3ff6cf368Smrg# Generated by GNU Autoconf 2.68 for xset 1.2.2.
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'
564ff6cf368SmrgPACKAGE_VERSION='1.2.2'
565ff6cf368SmrgPACKAGE_STRING='xset 1.2.2'
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
650ff6cf368SmrgSTRICT_CFLAGS
6516600fe5bSmrgCWARNFLAGS
6526600fe5bSmrgEGREP
6536600fe5bSmrgGREP
6546600fe5bSmrgCPP
6556600fe5bSmrgam__fastdepCC_FALSE
6566600fe5bSmrgam__fastdepCC_TRUE
6576600fe5bSmrgCCDEPMODE
6586600fe5bSmrgAMDEPBACKSLASH
6596600fe5bSmrgAMDEP_FALSE
6606600fe5bSmrgAMDEP_TRUE
6616600fe5bSmrgam__quote
6626600fe5bSmrgam__include
6636600fe5bSmrgDEPDIR
6646600fe5bSmrgOBJEXT
6656600fe5bSmrgEXEEXT
6666600fe5bSmrgac_ct_CC
6676600fe5bSmrgCPPFLAGS
6686600fe5bSmrgLDFLAGS
6696600fe5bSmrgCFLAGS
6706600fe5bSmrgCC
6716600fe5bSmrgMAINT
6726600fe5bSmrgMAINTAINER_MODE_FALSE
6736600fe5bSmrgMAINTAINER_MODE_TRUE
6746600fe5bSmrgam__untar
6756600fe5bSmrgam__tar
6766600fe5bSmrgAMTAR
6776600fe5bSmrgam__leading_dot
6786600fe5bSmrgSET_MAKE
6796600fe5bSmrgAWK
6806600fe5bSmrgmkdir_p
6816600fe5bSmrgMKDIR_P
6826600fe5bSmrgINSTALL_STRIP_PROGRAM
6836600fe5bSmrgSTRIP
6846600fe5bSmrginstall_sh
6856600fe5bSmrgMAKEINFO
6866600fe5bSmrgAUTOHEADER
6876600fe5bSmrgAUTOMAKE
6886600fe5bSmrgAUTOCONF
6896600fe5bSmrgACLOCAL
6906600fe5bSmrgVERSION
6916600fe5bSmrgPACKAGE
6926600fe5bSmrgCYGPATH_W
6936600fe5bSmrgam__isrc
6946600fe5bSmrgINSTALL_DATA
6956600fe5bSmrgINSTALL_SCRIPT
6966600fe5bSmrgINSTALL_PROGRAM
6976600fe5bSmrgtarget_alias
6986600fe5bSmrghost_alias
6996600fe5bSmrgbuild_alias
7006600fe5bSmrgLIBS
7016600fe5bSmrgECHO_T
7026600fe5bSmrgECHO_N
7036600fe5bSmrgECHO_C
7046600fe5bSmrgDEFS
7056600fe5bSmrgmandir
7066600fe5bSmrglocaledir
7076600fe5bSmrglibdir
7086600fe5bSmrgpsdir
7096600fe5bSmrgpdfdir
7106600fe5bSmrgdvidir
7116600fe5bSmrghtmldir
7126600fe5bSmrginfodir
7136600fe5bSmrgdocdir
7146600fe5bSmrgoldincludedir
7156600fe5bSmrgincludedir
7166600fe5bSmrglocalstatedir
7176600fe5bSmrgsharedstatedir
7186600fe5bSmrgsysconfdir
7196600fe5bSmrgdatadir
7206600fe5bSmrgdatarootdir
7216600fe5bSmrglibexecdir
7226600fe5bSmrgsbindir
7236600fe5bSmrgbindir
7246600fe5bSmrgprogram_transform_name
7256600fe5bSmrgprefix
7266600fe5bSmrgexec_prefix
7276f5dd5c2SmrgPACKAGE_URL
7286600fe5bSmrgPACKAGE_BUGREPORT
7296600fe5bSmrgPACKAGE_STRING
7306600fe5bSmrgPACKAGE_VERSION
7316600fe5bSmrgPACKAGE_TARNAME
7326600fe5bSmrgPACKAGE_NAME
7336600fe5bSmrgPATH_SEPARATOR
7346600fe5bSmrgSHELL'
735a0195d5fSmrgac_subst_files=''
7366600fe5bSmrgac_user_opts='
7376600fe5bSmrgenable_option_checking
7386600fe5bSmrgenable_maintainer_mode
7396600fe5bSmrgenable_dependency_tracking
7406600fe5bSmrgenable_strict_compilation
7416f5dd5c2Smrgenable_silent_rules
7426f5dd5c2Smrgwith_xf86misc
7436f5dd5c2Smrgwith_fontcache
7446600fe5bSmrg'
745a0195d5fSmrg      ac_precious_vars='build_alias
746a0195d5fSmrghost_alias
747a0195d5fSmrgtarget_alias
748a0195d5fSmrgCC
749a0195d5fSmrgCFLAGS
750a0195d5fSmrgLDFLAGS
751a0195d5fSmrgLIBS
752a0195d5fSmrgCPPFLAGS
7536600fe5bSmrgCPP
754a0195d5fSmrgPKG_CONFIG
755a0195d5fSmrgXSET_CFLAGS
756a0195d5fSmrgXSET_LIBS
757a0195d5fSmrgSET_X11_CFLAGS
758a0195d5fSmrgSET_X11_LIBS
759a0195d5fSmrgSET_XEXT_CFLAGS
760a0195d5fSmrgSET_XEXT_LIBS
761a0195d5fSmrgSET_XKB_CFLAGS
762a0195d5fSmrgSET_XKB_LIBS
763a0195d5fSmrgSET_XF86MISC_CFLAGS
764a0195d5fSmrgSET_XF86MISC_LIBS
765a0195d5fSmrgSET_FONTCACHE_CFLAGS
7666f5dd5c2SmrgSET_FONTCACHE_LIBS'
767a0195d5fSmrg
768a0195d5fSmrg
769a0195d5fSmrg# Initialize some variables set by options.
770a0195d5fSmrgac_init_help=
771a0195d5fSmrgac_init_version=false
7726600fe5bSmrgac_unrecognized_opts=
7736600fe5bSmrgac_unrecognized_sep=
774a0195d5fSmrg# The variables have the same names as the options, with
775a0195d5fSmrg# dashes changed to underlines.
776a0195d5fSmrgcache_file=/dev/null
777a0195d5fSmrgexec_prefix=NONE
778a0195d5fSmrgno_create=
779a0195d5fSmrgno_recursion=
780a0195d5fSmrgprefix=NONE
781a0195d5fSmrgprogram_prefix=NONE
782a0195d5fSmrgprogram_suffix=NONE
783a0195d5fSmrgprogram_transform_name=s,x,x,
784a0195d5fSmrgsilent=
785a0195d5fSmrgsite=
786a0195d5fSmrgsrcdir=
787a0195d5fSmrgverbose=
788a0195d5fSmrgx_includes=NONE
789a0195d5fSmrgx_libraries=NONE
790a0195d5fSmrg
791a0195d5fSmrg# Installation directory options.
792a0195d5fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
793a0195d5fSmrg# and all the variables that are supposed to be based on exec_prefix
794a0195d5fSmrg# by default will actually change.
795a0195d5fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
796a0195d5fSmrg# (The list follows the same order as the GNU Coding Standards.)
797a0195d5fSmrgbindir='${exec_prefix}/bin'
798a0195d5fSmrgsbindir='${exec_prefix}/sbin'
799a0195d5fSmrglibexecdir='${exec_prefix}/libexec'
800a0195d5fSmrgdatarootdir='${prefix}/share'
801a0195d5fSmrgdatadir='${datarootdir}'
802a0195d5fSmrgsysconfdir='${prefix}/etc'
803a0195d5fSmrgsharedstatedir='${prefix}/com'
804a0195d5fSmrglocalstatedir='${prefix}/var'
805a0195d5fSmrgincludedir='${prefix}/include'
806a0195d5fSmrgoldincludedir='/usr/include'
807a0195d5fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
808a0195d5fSmrginfodir='${datarootdir}/info'
809a0195d5fSmrghtmldir='${docdir}'
810a0195d5fSmrgdvidir='${docdir}'
811a0195d5fSmrgpdfdir='${docdir}'
812a0195d5fSmrgpsdir='${docdir}'
813a0195d5fSmrglibdir='${exec_prefix}/lib'
814a0195d5fSmrglocaledir='${datarootdir}/locale'
815a0195d5fSmrgmandir='${datarootdir}/man'
816a0195d5fSmrg
817a0195d5fSmrgac_prev=
818a0195d5fSmrgac_dashdash=
819a0195d5fSmrgfor ac_option
820a0195d5fSmrgdo
821a0195d5fSmrg  # If the previous option needs an argument, assign it.
822a0195d5fSmrg  if test -n "$ac_prev"; then
823a0195d5fSmrg    eval $ac_prev=\$ac_option
824a0195d5fSmrg    ac_prev=
825a0195d5fSmrg    continue
826a0195d5fSmrg  fi
827a0195d5fSmrg
828a0195d5fSmrg  case $ac_option in
8292ab73d9fSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8302ab73d9fSmrg  *=)   ac_optarg= ;;
8312ab73d9fSmrg  *)    ac_optarg=yes ;;
832a0195d5fSmrg  esac
833a0195d5fSmrg
834a0195d5fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
835a0195d5fSmrg
836a0195d5fSmrg  case $ac_dashdash$ac_option in
837a0195d5fSmrg  --)
838a0195d5fSmrg    ac_dashdash=yes ;;
839a0195d5fSmrg
840a0195d5fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
841a0195d5fSmrg    ac_prev=bindir ;;
842a0195d5fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
843a0195d5fSmrg    bindir=$ac_optarg ;;
844a0195d5fSmrg
845a0195d5fSmrg  -build | --build | --buil | --bui | --bu)
846a0195d5fSmrg    ac_prev=build_alias ;;
847a0195d5fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
848a0195d5fSmrg    build_alias=$ac_optarg ;;
849a0195d5fSmrg
850a0195d5fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
851a0195d5fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
852a0195d5fSmrg    ac_prev=cache_file ;;
853a0195d5fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
854a0195d5fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
855a0195d5fSmrg    cache_file=$ac_optarg ;;
856a0195d5fSmrg
857a0195d5fSmrg  --config-cache | -C)
858a0195d5fSmrg    cache_file=config.cache ;;
859a0195d5fSmrg
860a0195d5fSmrg  -datadir | --datadir | --datadi | --datad)
861a0195d5fSmrg    ac_prev=datadir ;;
862a0195d5fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
863a0195d5fSmrg    datadir=$ac_optarg ;;
864a0195d5fSmrg
865a0195d5fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
866a0195d5fSmrg  | --dataroo | --dataro | --datar)
867a0195d5fSmrg    ac_prev=datarootdir ;;
868a0195d5fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
869a0195d5fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
870a0195d5fSmrg    datarootdir=$ac_optarg ;;
871a0195d5fSmrg
872a0195d5fSmrg  -disable-* | --disable-*)
8736600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
874a0195d5fSmrg    # Reject names that are not valid shell variable names.
8756600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
8762ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
8776600fe5bSmrg    ac_useropt_orig=$ac_useropt
8786600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
8796600fe5bSmrg    case $ac_user_opts in
8806600fe5bSmrg      *"
8816600fe5bSmrg"enable_$ac_useropt"
8826600fe5bSmrg"*) ;;
8836600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
8846600fe5bSmrg	 ac_unrecognized_sep=', ';;
8856600fe5bSmrg    esac
8866600fe5bSmrg    eval enable_$ac_useropt=no ;;
887a0195d5fSmrg
888a0195d5fSmrg  -docdir | --docdir | --docdi | --doc | --do)
889a0195d5fSmrg    ac_prev=docdir ;;
890a0195d5fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891a0195d5fSmrg    docdir=$ac_optarg ;;
892a0195d5fSmrg
893a0195d5fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894a0195d5fSmrg    ac_prev=dvidir ;;
895a0195d5fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896a0195d5fSmrg    dvidir=$ac_optarg ;;
897a0195d5fSmrg
898a0195d5fSmrg  -enable-* | --enable-*)
8996600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
900a0195d5fSmrg    # Reject names that are not valid shell variable names.
9016600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
9022ab73d9fSmrg      as_fn_error $? "invalid feature name: $ac_useropt"
9036600fe5bSmrg    ac_useropt_orig=$ac_useropt
9046600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
9056600fe5bSmrg    case $ac_user_opts in
9066600fe5bSmrg      *"
9076600fe5bSmrg"enable_$ac_useropt"
9086600fe5bSmrg"*) ;;
9096600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
9106600fe5bSmrg	 ac_unrecognized_sep=', ';;
9116600fe5bSmrg    esac
9126600fe5bSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
913a0195d5fSmrg
914a0195d5fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915a0195d5fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916a0195d5fSmrg  | --exec | --exe | --ex)
917a0195d5fSmrg    ac_prev=exec_prefix ;;
918a0195d5fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919a0195d5fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920a0195d5fSmrg  | --exec=* | --exe=* | --ex=*)
921a0195d5fSmrg    exec_prefix=$ac_optarg ;;
922a0195d5fSmrg
923a0195d5fSmrg  -gas | --gas | --ga | --g)
924a0195d5fSmrg    # Obsolete; use --with-gas.
925a0195d5fSmrg    with_gas=yes ;;
926a0195d5fSmrg
927a0195d5fSmrg  -help | --help | --hel | --he | -h)
928a0195d5fSmrg    ac_init_help=long ;;
929a0195d5fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930a0195d5fSmrg    ac_init_help=recursive ;;
931a0195d5fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932a0195d5fSmrg    ac_init_help=short ;;
933a0195d5fSmrg
934a0195d5fSmrg  -host | --host | --hos | --ho)
935a0195d5fSmrg    ac_prev=host_alias ;;
936a0195d5fSmrg  -host=* | --host=* | --hos=* | --ho=*)
937a0195d5fSmrg    host_alias=$ac_optarg ;;
938a0195d5fSmrg
939a0195d5fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940a0195d5fSmrg    ac_prev=htmldir ;;
941a0195d5fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942a0195d5fSmrg  | --ht=*)
943a0195d5fSmrg    htmldir=$ac_optarg ;;
944a0195d5fSmrg
945a0195d5fSmrg  -includedir | --includedir | --includedi | --included | --include \
946a0195d5fSmrg  | --includ | --inclu | --incl | --inc)
947a0195d5fSmrg    ac_prev=includedir ;;
948a0195d5fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949a0195d5fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
950a0195d5fSmrg    includedir=$ac_optarg ;;
951a0195d5fSmrg
952a0195d5fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
953a0195d5fSmrg    ac_prev=infodir ;;
954a0195d5fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955a0195d5fSmrg    infodir=$ac_optarg ;;
956a0195d5fSmrg
957a0195d5fSmrg  -libdir | --libdir | --libdi | --libd)
958a0195d5fSmrg    ac_prev=libdir ;;
959a0195d5fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
960a0195d5fSmrg    libdir=$ac_optarg ;;
961a0195d5fSmrg
962a0195d5fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963a0195d5fSmrg  | --libexe | --libex | --libe)
964a0195d5fSmrg    ac_prev=libexecdir ;;
965a0195d5fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966a0195d5fSmrg  | --libexe=* | --libex=* | --libe=*)
967a0195d5fSmrg    libexecdir=$ac_optarg ;;
968a0195d5fSmrg
969a0195d5fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
970a0195d5fSmrg    ac_prev=localedir ;;
971a0195d5fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972a0195d5fSmrg    localedir=$ac_optarg ;;
973a0195d5fSmrg
974a0195d5fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
975a0195d5fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
976a0195d5fSmrg    ac_prev=localstatedir ;;
977a0195d5fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978a0195d5fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979a0195d5fSmrg    localstatedir=$ac_optarg ;;
980a0195d5fSmrg
981a0195d5fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982a0195d5fSmrg    ac_prev=mandir ;;
983a0195d5fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984a0195d5fSmrg    mandir=$ac_optarg ;;
985a0195d5fSmrg
986a0195d5fSmrg  -nfp | --nfp | --nf)
987a0195d5fSmrg    # Obsolete; use --without-fp.
988a0195d5fSmrg    with_fp=no ;;
989a0195d5fSmrg
990a0195d5fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991a0195d5fSmrg  | --no-cr | --no-c | -n)
992a0195d5fSmrg    no_create=yes ;;
993a0195d5fSmrg
994a0195d5fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995a0195d5fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996a0195d5fSmrg    no_recursion=yes ;;
997a0195d5fSmrg
998a0195d5fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999a0195d5fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000a0195d5fSmrg  | --oldin | --oldi | --old | --ol | --o)
1001a0195d5fSmrg    ac_prev=oldincludedir ;;
1002a0195d5fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003a0195d5fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004a0195d5fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005a0195d5fSmrg    oldincludedir=$ac_optarg ;;
1006a0195d5fSmrg
1007a0195d5fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008a0195d5fSmrg    ac_prev=prefix ;;
1009a0195d5fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010a0195d5fSmrg    prefix=$ac_optarg ;;
1011a0195d5fSmrg
1012a0195d5fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013a0195d5fSmrg  | --program-pre | --program-pr | --program-p)
1014a0195d5fSmrg    ac_prev=program_prefix ;;
1015a0195d5fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016a0195d5fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017a0195d5fSmrg    program_prefix=$ac_optarg ;;
1018a0195d5fSmrg
1019a0195d5fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020a0195d5fSmrg  | --program-suf | --program-su | --program-s)
1021a0195d5fSmrg    ac_prev=program_suffix ;;
1022a0195d5fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023a0195d5fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024a0195d5fSmrg    program_suffix=$ac_optarg ;;
1025a0195d5fSmrg
1026a0195d5fSmrg  -program-transform-name | --program-transform-name \
1027a0195d5fSmrg  | --program-transform-nam | --program-transform-na \
1028a0195d5fSmrg  | --program-transform-n | --program-transform- \
1029a0195d5fSmrg  | --program-transform | --program-transfor \
1030a0195d5fSmrg  | --program-transfo | --program-transf \
1031a0195d5fSmrg  | --program-trans | --program-tran \
1032a0195d5fSmrg  | --progr-tra | --program-tr | --program-t)
1033a0195d5fSmrg    ac_prev=program_transform_name ;;
1034a0195d5fSmrg  -program-transform-name=* | --program-transform-name=* \
1035a0195d5fSmrg  | --program-transform-nam=* | --program-transform-na=* \
1036a0195d5fSmrg  | --program-transform-n=* | --program-transform-=* \
1037a0195d5fSmrg  | --program-transform=* | --program-transfor=* \
1038a0195d5fSmrg  | --program-transfo=* | --program-transf=* \
1039a0195d5fSmrg  | --program-trans=* | --program-tran=* \
1040a0195d5fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1041a0195d5fSmrg    program_transform_name=$ac_optarg ;;
1042a0195d5fSmrg
1043a0195d5fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044a0195d5fSmrg    ac_prev=pdfdir ;;
1045a0195d5fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046a0195d5fSmrg    pdfdir=$ac_optarg ;;
1047a0195d5fSmrg
1048a0195d5fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1049a0195d5fSmrg    ac_prev=psdir ;;
1050a0195d5fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051a0195d5fSmrg    psdir=$ac_optarg ;;
1052a0195d5fSmrg
1053a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil)
1055a0195d5fSmrg    silent=yes ;;
1056a0195d5fSmrg
1057a0195d5fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058a0195d5fSmrg    ac_prev=sbindir ;;
1059a0195d5fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060a0195d5fSmrg  | --sbi=* | --sb=*)
1061a0195d5fSmrg    sbindir=$ac_optarg ;;
1062a0195d5fSmrg
1063a0195d5fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064a0195d5fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065a0195d5fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1066a0195d5fSmrg  | --sha | --sh)
1067a0195d5fSmrg    ac_prev=sharedstatedir ;;
1068a0195d5fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069a0195d5fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070a0195d5fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071a0195d5fSmrg  | --sha=* | --sh=*)
1072a0195d5fSmrg    sharedstatedir=$ac_optarg ;;
1073a0195d5fSmrg
1074a0195d5fSmrg  -site | --site | --sit)
1075a0195d5fSmrg    ac_prev=site ;;
1076a0195d5fSmrg  -site=* | --site=* | --sit=*)
1077a0195d5fSmrg    site=$ac_optarg ;;
1078a0195d5fSmrg
1079a0195d5fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080a0195d5fSmrg    ac_prev=srcdir ;;
1081a0195d5fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082a0195d5fSmrg    srcdir=$ac_optarg ;;
1083a0195d5fSmrg
1084a0195d5fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085a0195d5fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1086a0195d5fSmrg    ac_prev=sysconfdir ;;
1087a0195d5fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088a0195d5fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089a0195d5fSmrg    sysconfdir=$ac_optarg ;;
1090a0195d5fSmrg
1091a0195d5fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1092a0195d5fSmrg    ac_prev=target_alias ;;
1093a0195d5fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094a0195d5fSmrg    target_alias=$ac_optarg ;;
1095a0195d5fSmrg
1096a0195d5fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097a0195d5fSmrg    verbose=yes ;;
1098a0195d5fSmrg
1099a0195d5fSmrg  -version | --version | --versio | --versi | --vers | -V)
1100a0195d5fSmrg    ac_init_version=: ;;
1101a0195d5fSmrg
1102a0195d5fSmrg  -with-* | --with-*)
11036600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104a0195d5fSmrg    # Reject names that are not valid shell variable names.
11056600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11062ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11076600fe5bSmrg    ac_useropt_orig=$ac_useropt
11086600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11096600fe5bSmrg    case $ac_user_opts in
11106600fe5bSmrg      *"
11116600fe5bSmrg"with_$ac_useropt"
11126600fe5bSmrg"*) ;;
11136600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
11146600fe5bSmrg	 ac_unrecognized_sep=', ';;
11156600fe5bSmrg    esac
11166600fe5bSmrg    eval with_$ac_useropt=\$ac_optarg ;;
1117a0195d5fSmrg
1118a0195d5fSmrg  -without-* | --without-*)
11196600fe5bSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120a0195d5fSmrg    # Reject names that are not valid shell variable names.
11216600fe5bSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
11222ab73d9fSmrg      as_fn_error $? "invalid package name: $ac_useropt"
11236600fe5bSmrg    ac_useropt_orig=$ac_useropt
11246600fe5bSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
11256600fe5bSmrg    case $ac_user_opts in
11266600fe5bSmrg      *"
11276600fe5bSmrg"with_$ac_useropt"
11286600fe5bSmrg"*) ;;
11296600fe5bSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
11306600fe5bSmrg	 ac_unrecognized_sep=', ';;
11316600fe5bSmrg    esac
11326600fe5bSmrg    eval with_$ac_useropt=no ;;
1133a0195d5fSmrg
1134a0195d5fSmrg  --x)
1135a0195d5fSmrg    # Obsolete; use --with-x.
1136a0195d5fSmrg    with_x=yes ;;
1137a0195d5fSmrg
1138a0195d5fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1139a0195d5fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1140a0195d5fSmrg    ac_prev=x_includes ;;
1141a0195d5fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1142a0195d5fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1143a0195d5fSmrg    x_includes=$ac_optarg ;;
1144a0195d5fSmrg
1145a0195d5fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1146a0195d5fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1147a0195d5fSmrg    ac_prev=x_libraries ;;
1148a0195d5fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1149a0195d5fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1150a0195d5fSmrg    x_libraries=$ac_optarg ;;
1151a0195d5fSmrg
11522ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
11532ab73d9fSmrgTry \`$0 --help' for more information"
1154a0195d5fSmrg    ;;
1155a0195d5fSmrg
1156a0195d5fSmrg  *=*)
1157a0195d5fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1158a0195d5fSmrg    # Reject names that are not valid shell variable names.
11596f5dd5c2Smrg    case $ac_envvar in #(
11606f5dd5c2Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
11612ab73d9fSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
11626f5dd5c2Smrg    esac
1163a0195d5fSmrg    eval $ac_envvar=\$ac_optarg
1164a0195d5fSmrg    export $ac_envvar ;;
1165a0195d5fSmrg
1166a0195d5fSmrg  *)
1167a0195d5fSmrg    # FIXME: should be removed in autoconf 3.0.
11686600fe5bSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1169a0195d5fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11706600fe5bSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11712ab73d9fSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1172a0195d5fSmrg    ;;
1173a0195d5fSmrg
1174a0195d5fSmrg  esac
1175a0195d5fSmrgdone
1176a0195d5fSmrg
1177a0195d5fSmrgif test -n "$ac_prev"; then
1178a0195d5fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11792ab73d9fSmrg  as_fn_error $? "missing argument to $ac_option"
1180a0195d5fSmrgfi
1181a0195d5fSmrg
11826600fe5bSmrgif test -n "$ac_unrecognized_opts"; then
11836600fe5bSmrg  case $enable_option_checking in
11846600fe5bSmrg    no) ;;
11852ab73d9fSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11866600fe5bSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11876600fe5bSmrg  esac
11886600fe5bSmrgfi
11896600fe5bSmrg
11906600fe5bSmrg# Check all directory arguments for consistency.
11916600fe5bSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
11926600fe5bSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1193a0195d5fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194a0195d5fSmrg		libdir localedir mandir
1195a0195d5fSmrgdo
1196a0195d5fSmrg  eval ac_val=\$$ac_var
11976600fe5bSmrg  # Remove trailing slashes.
11986600fe5bSmrg  case $ac_val in
11996600fe5bSmrg    */ )
12006600fe5bSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
12016600fe5bSmrg      eval $ac_var=\$ac_val;;
12026600fe5bSmrg  esac
12036600fe5bSmrg  # Be sure to have absolute directory names.
1204a0195d5fSmrg  case $ac_val in
1205a0195d5fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1206a0195d5fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207a0195d5fSmrg  esac
12082ab73d9fSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1209a0195d5fSmrgdone
1210a0195d5fSmrg
1211a0195d5fSmrg# There might be people who depend on the old broken behavior: `$host'
1212a0195d5fSmrg# used to hold the argument of --host etc.
1213a0195d5fSmrg# FIXME: To remove some day.
1214a0195d5fSmrgbuild=$build_alias
1215a0195d5fSmrghost=$host_alias
1216a0195d5fSmrgtarget=$target_alias
1217a0195d5fSmrg
1218a0195d5fSmrg# FIXME: To remove some day.
1219a0195d5fSmrgif test "x$host_alias" != x; then
1220a0195d5fSmrg  if test "x$build_alias" = x; then
1221a0195d5fSmrg    cross_compiling=maybe
12222ab73d9fSmrg    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
12232ab73d9fSmrg    If a cross compiler is detected then cross compile mode will be used" >&2
1224a0195d5fSmrg  elif test "x$build_alias" != "x$host_alias"; then
1225a0195d5fSmrg    cross_compiling=yes
1226a0195d5fSmrg  fi
1227a0195d5fSmrgfi
1228a0195d5fSmrg
1229a0195d5fSmrgac_tool_prefix=
1230a0195d5fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1231a0195d5fSmrg
1232a0195d5fSmrgtest "$silent" = yes && exec 6>/dev/null
1233a0195d5fSmrg
1234a0195d5fSmrg
1235a0195d5fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1236a0195d5fSmrgac_ls_di=`ls -di .` &&
1237a0195d5fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12382ab73d9fSmrg  as_fn_error $? "working directory cannot be determined"
1239a0195d5fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12402ab73d9fSmrg  as_fn_error $? "pwd does not report name of working directory"
1241a0195d5fSmrg
1242a0195d5fSmrg
1243a0195d5fSmrg# Find the source files, if location was not specified.
1244a0195d5fSmrgif test -z "$srcdir"; then
1245a0195d5fSmrg  ac_srcdir_defaulted=yes
1246a0195d5fSmrg  # Try the directory containing this script, then the parent directory.
12476600fe5bSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
12486600fe5bSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12496600fe5bSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
12506600fe5bSmrg	 X"$as_myself" : 'X\(//\)$' \| \
12516600fe5bSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
12526600fe5bSmrg$as_echo X"$as_myself" |
1253a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254a0195d5fSmrg	    s//\1/
1255a0195d5fSmrg	    q
1256a0195d5fSmrg	  }
1257a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
1258a0195d5fSmrg	    s//\1/
1259a0195d5fSmrg	    q
1260a0195d5fSmrg	  }
1261a0195d5fSmrg	  /^X\(\/\/\)$/{
1262a0195d5fSmrg	    s//\1/
1263a0195d5fSmrg	    q
1264a0195d5fSmrg	  }
1265a0195d5fSmrg	  /^X\(\/\).*/{
1266a0195d5fSmrg	    s//\1/
1267a0195d5fSmrg	    q
1268a0195d5fSmrg	  }
1269a0195d5fSmrg	  s/.*/./; q'`
1270a0195d5fSmrg  srcdir=$ac_confdir
1271a0195d5fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
1272a0195d5fSmrg    srcdir=..
1273a0195d5fSmrg  fi
1274a0195d5fSmrgelse
1275a0195d5fSmrg  ac_srcdir_defaulted=no
1276a0195d5fSmrgfi
1277a0195d5fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1278a0195d5fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12792ab73d9fSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1280a0195d5fSmrgfi
1281a0195d5fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1282a0195d5fSmrgac_abs_confdir=`(
12832ab73d9fSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284a0195d5fSmrg	pwd)`
1285a0195d5fSmrg# When building in place, set srcdir=.
1286a0195d5fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1287a0195d5fSmrg  srcdir=.
1288a0195d5fSmrgfi
1289a0195d5fSmrg# Remove unnecessary trailing slashes from srcdir.
1290a0195d5fSmrg# Double slashes in file names in object file debugging info
1291a0195d5fSmrg# mess up M-x gdb in Emacs.
1292a0195d5fSmrgcase $srcdir in
1293a0195d5fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294a0195d5fSmrgesac
1295a0195d5fSmrgfor ac_var in $ac_precious_vars; do
1296a0195d5fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1297a0195d5fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1298a0195d5fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1299a0195d5fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300a0195d5fSmrgdone
1301a0195d5fSmrg
1302a0195d5fSmrg#
1303a0195d5fSmrg# Report the --help message.
1304a0195d5fSmrg#
1305a0195d5fSmrgif test "$ac_init_help" = "long"; then
1306a0195d5fSmrg  # Omit some internal or obsolete options to make the list less imposing.
1307a0195d5fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1308a0195d5fSmrg  cat <<_ACEOF
1309ff6cf368Smrg\`configure' configures xset 1.2.2 to adapt to many kinds of systems.
1310a0195d5fSmrg
1311a0195d5fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1312a0195d5fSmrg
1313a0195d5fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1314a0195d5fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1315a0195d5fSmrg
1316a0195d5fSmrgDefaults for the options are specified in brackets.
1317a0195d5fSmrg
1318a0195d5fSmrgConfiguration:
1319a0195d5fSmrg  -h, --help              display this help and exit
1320a0195d5fSmrg      --help=short        display options specific to this package
1321a0195d5fSmrg      --help=recursive    display the short help of all the included packages
1322a0195d5fSmrg  -V, --version           display version information and exit
13232ab73d9fSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
1324a0195d5fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1325a0195d5fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1326a0195d5fSmrg  -n, --no-create         do not create output files
1327a0195d5fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1328a0195d5fSmrg
1329a0195d5fSmrgInstallation directories:
1330a0195d5fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
13316600fe5bSmrg                          [$ac_default_prefix]
1332a0195d5fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
13336600fe5bSmrg                          [PREFIX]
1334a0195d5fSmrg
1335a0195d5fSmrgBy default, \`make install' will install all the files in
1336a0195d5fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1337a0195d5fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1338a0195d5fSmrgfor instance \`--prefix=\$HOME'.
1339a0195d5fSmrg
1340a0195d5fSmrgFor better control, use the options below.
1341a0195d5fSmrg
1342a0195d5fSmrgFine tuning of the installation directories:
13436600fe5bSmrg  --bindir=DIR            user executables [EPREFIX/bin]
13446600fe5bSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
13456600fe5bSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
13466600fe5bSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
13476600fe5bSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
13486600fe5bSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
13496600fe5bSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
13506600fe5bSmrg  --includedir=DIR        C header files [PREFIX/include]
13516600fe5bSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
13526600fe5bSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
13536600fe5bSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
13546600fe5bSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
13556600fe5bSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
13566600fe5bSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
13576600fe5bSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
13586600fe5bSmrg  --htmldir=DIR           html documentation [DOCDIR]
13596600fe5bSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
13606600fe5bSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
13616600fe5bSmrg  --psdir=DIR             ps documentation [DOCDIR]
1362a0195d5fSmrg_ACEOF
1363a0195d5fSmrg
1364a0195d5fSmrg  cat <<\_ACEOF
1365a0195d5fSmrg
1366a0195d5fSmrgProgram names:
1367a0195d5fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1368a0195d5fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1369a0195d5fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1370a0195d5fSmrg
1371a0195d5fSmrgSystem types:
1372a0195d5fSmrg  --build=BUILD     configure for building on BUILD [guessed]
1373a0195d5fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1374a0195d5fSmrg_ACEOF
1375a0195d5fSmrgfi
1376a0195d5fSmrg
1377a0195d5fSmrgif test -n "$ac_init_help"; then
1378a0195d5fSmrg  case $ac_init_help in
1379ff6cf368Smrg     short | recursive ) echo "Configuration of xset 1.2.2:";;
1380a0195d5fSmrg   esac
1381a0195d5fSmrg  cat <<\_ACEOF
1382a0195d5fSmrg
1383a0195d5fSmrgOptional Features:
13846600fe5bSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
1385a0195d5fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1386a0195d5fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1387a0195d5fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
1388a0195d5fSmrg			  (and sometimes confusing) to the casual installer
1389a0195d5fSmrg  --disable-dependency-tracking  speeds up one-time build
1390a0195d5fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
13916600fe5bSmrg  --enable-strict-compilation
13926600fe5bSmrg                          Enable all warnings from compiler and make them
13936600fe5bSmrg                          errors (default: disabled)
13946f5dd5c2Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
13956f5dd5c2Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1396a0195d5fSmrg
1397a0195d5fSmrgOptional Packages:
1398a0195d5fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399a0195d5fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14006f5dd5c2Smrg  --without-xf86misc      Disable xf86misc support.
14016f5dd5c2Smrg  --without-fontcache     Disable fontcache support.
1402a0195d5fSmrg
1403a0195d5fSmrgSome influential environment variables:
1404a0195d5fSmrg  CC          C compiler command
1405a0195d5fSmrg  CFLAGS      C compiler flags
1406a0195d5fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1407a0195d5fSmrg              nonstandard directory <lib dir>
1408a0195d5fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14096f5dd5c2Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1410a0195d5fSmrg              you have headers in a nonstandard directory <include dir>
14116600fe5bSmrg  CPP         C preprocessor
1412a0195d5fSmrg  PKG_CONFIG  path to pkg-config utility
1413a0195d5fSmrg  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1414a0195d5fSmrg  XSET_LIBS   linker flags for XSET, overriding pkg-config
1415a0195d5fSmrg  SET_X11_CFLAGS
1416a0195d5fSmrg              C compiler flags for SET_X11, overriding pkg-config
1417a0195d5fSmrg  SET_X11_LIBS
1418a0195d5fSmrg              linker flags for SET_X11, overriding pkg-config
1419a0195d5fSmrg  SET_XEXT_CFLAGS
1420a0195d5fSmrg              C compiler flags for SET_XEXT, overriding pkg-config
1421a0195d5fSmrg  SET_XEXT_LIBS
1422a0195d5fSmrg              linker flags for SET_XEXT, overriding pkg-config
1423a0195d5fSmrg  SET_XKB_CFLAGS
1424a0195d5fSmrg              C compiler flags for SET_XKB, overriding pkg-config
1425a0195d5fSmrg  SET_XKB_LIBS
1426a0195d5fSmrg              linker flags for SET_XKB, overriding pkg-config
1427a0195d5fSmrg  SET_XF86MISC_CFLAGS
1428a0195d5fSmrg              C compiler flags for SET_XF86MISC, overriding pkg-config
1429a0195d5fSmrg  SET_XF86MISC_LIBS
1430a0195d5fSmrg              linker flags for SET_XF86MISC, overriding pkg-config
1431a0195d5fSmrg  SET_FONTCACHE_CFLAGS
1432a0195d5fSmrg              C compiler flags for SET_FONTCACHE, overriding pkg-config
1433a0195d5fSmrg  SET_FONTCACHE_LIBS
1434a0195d5fSmrg              linker flags for SET_FONTCACHE, overriding pkg-config
1435a0195d5fSmrg
1436a0195d5fSmrgUse these variables to override the choices made by `configure' or to help
1437a0195d5fSmrgit to find libraries and programs with nonstandard names/locations.
1438a0195d5fSmrg
1439a0195d5fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1440a0195d5fSmrg_ACEOF
1441a0195d5fSmrgac_status=$?
1442a0195d5fSmrgfi
1443a0195d5fSmrg
1444a0195d5fSmrgif test "$ac_init_help" = "recursive"; then
1445a0195d5fSmrg  # If there are subdirs, report their specific --help.
1446a0195d5fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
14476600fe5bSmrg    test -d "$ac_dir" ||
14486600fe5bSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
14496600fe5bSmrg      continue
1450a0195d5fSmrg    ac_builddir=.
1451a0195d5fSmrg
1452a0195d5fSmrgcase "$ac_dir" in
1453a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454a0195d5fSmrg*)
14556600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
14576600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458a0195d5fSmrg  case $ac_top_builddir_sub in
1459a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461a0195d5fSmrg  esac ;;
1462a0195d5fSmrgesac
1463a0195d5fSmrgac_abs_top_builddir=$ac_pwd
1464a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1465a0195d5fSmrg# for backward compatibility:
1466a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
1467a0195d5fSmrg
1468a0195d5fSmrgcase $srcdir in
1469a0195d5fSmrg  .)  # We are building in place.
1470a0195d5fSmrg    ac_srcdir=.
1471a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
1472a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1473a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1474a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
1475a0195d5fSmrg    ac_top_srcdir=$srcdir
1476a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
1477a0195d5fSmrg  *) # Relative name.
1478a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1480a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481a0195d5fSmrgesac
1482a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483a0195d5fSmrg
1484a0195d5fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1485a0195d5fSmrg    # Check for guested configure.
1486a0195d5fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1487a0195d5fSmrg      echo &&
1488a0195d5fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489a0195d5fSmrg    elif test -f "$ac_srcdir/configure"; then
1490a0195d5fSmrg      echo &&
1491a0195d5fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
1492a0195d5fSmrg    else
14936600fe5bSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494a0195d5fSmrg    fi || ac_status=$?
1495a0195d5fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
1496a0195d5fSmrg  done
1497a0195d5fSmrgfi
1498a0195d5fSmrg
1499a0195d5fSmrgtest -n "$ac_init_help" && exit $ac_status
1500a0195d5fSmrgif $ac_init_version; then
1501a0195d5fSmrg  cat <<\_ACEOF
1502ff6cf368Smrgxset configure 1.2.2
15032ab73d9fSmrggenerated by GNU Autoconf 2.68
1504a0195d5fSmrg
15052ab73d9fSmrgCopyright (C) 2010 Free Software Foundation, Inc.
1506a0195d5fSmrgThis configure script is free software; the Free Software Foundation
1507a0195d5fSmrggives unlimited permission to copy, distribute and modify it.
1508a0195d5fSmrg_ACEOF
1509a0195d5fSmrg  exit
1510a0195d5fSmrgfi
1511a0195d5fSmrg
15126f5dd5c2Smrg## ------------------------ ##
15136f5dd5c2Smrg## Autoconf initialization. ##
15146f5dd5c2Smrg## ------------------------ ##
1515a0195d5fSmrg
15166f5dd5c2Smrg# ac_fn_c_try_compile LINENO
15176f5dd5c2Smrg# --------------------------
15186f5dd5c2Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
15196f5dd5c2Smrgac_fn_c_try_compile ()
1520a0195d5fSmrg{
15216f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15226f5dd5c2Smrg  rm -f conftest.$ac_objext
15236f5dd5c2Smrg  if { { ac_try="$ac_compile"
15246f5dd5c2Smrgcase "(($ac_try" in
15256f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
15276f5dd5c2Smrgesac
15286f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15296f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
15306f5dd5c2Smrg  (eval "$ac_compile") 2>conftest.err
15316f5dd5c2Smrg  ac_status=$?
15326f5dd5c2Smrg  if test -s conftest.err; then
15336f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
15346f5dd5c2Smrg    cat conftest.er1 >&5
15356f5dd5c2Smrg    mv -f conftest.er1 conftest.err
15366f5dd5c2Smrg  fi
15376f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15386f5dd5c2Smrg  test $ac_status = 0; } && {
15396f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
15406f5dd5c2Smrg	 test ! -s conftest.err
15416f5dd5c2Smrg       } && test -s conftest.$ac_objext; then :
15426f5dd5c2Smrg  ac_retval=0
15436f5dd5c2Smrgelse
15446f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
15456f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
1546a0195d5fSmrg
15476f5dd5c2Smrg	ac_retval=1
15486f5dd5c2Smrgfi
15492ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15506f5dd5c2Smrg  as_fn_set_status $ac_retval
1551a0195d5fSmrg
15526f5dd5c2Smrg} # ac_fn_c_try_compile
15536f5dd5c2Smrg
15542ab73d9fSmrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
15552ab73d9fSmrg# ---------------------------------------------
15562ab73d9fSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
15572ab73d9fSmrg# accordingly.
15586f5dd5c2Smrgac_fn_c_check_decl ()
15596f5dd5c2Smrg{
15606f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15612ab73d9fSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
15622ab73d9fSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
15632ab73d9fSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
15642ab73d9fSmrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
15652ab73d9fSmrgif eval \${$3+:} false; then :
15666f5dd5c2Smrg  $as_echo_n "(cached) " >&6
15676f5dd5c2Smrgelse
15686f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696f5dd5c2Smrg/* end confdefs.h.  */
15706f5dd5c2Smrg$4
15716f5dd5c2Smrgint
15726f5dd5c2Smrgmain ()
15736f5dd5c2Smrg{
15742ab73d9fSmrg#ifndef $as_decl_name
15752ab73d9fSmrg#ifdef __cplusplus
15762ab73d9fSmrg  (void) $as_decl_use;
15772ab73d9fSmrg#else
15782ab73d9fSmrg  (void) $as_decl_name;
15792ab73d9fSmrg#endif
15806f5dd5c2Smrg#endif
15816f5dd5c2Smrg
15826f5dd5c2Smrg  ;
15836f5dd5c2Smrg  return 0;
15846f5dd5c2Smrg}
15856f5dd5c2Smrg_ACEOF
15866f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
15876f5dd5c2Smrg  eval "$3=yes"
15886f5dd5c2Smrgelse
15896f5dd5c2Smrg  eval "$3=no"
15906f5dd5c2Smrgfi
15916f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926f5dd5c2Smrgfi
15936f5dd5c2Smrgeval ac_res=\$$3
15946f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15956f5dd5c2Smrg$as_echo "$ac_res" >&6; }
15962ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15976f5dd5c2Smrg
15986f5dd5c2Smrg} # ac_fn_c_check_decl
15996f5dd5c2Smrg
16006f5dd5c2Smrg# ac_fn_c_try_cpp LINENO
16016f5dd5c2Smrg# ----------------------
16026f5dd5c2Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
16036f5dd5c2Smrgac_fn_c_try_cpp ()
16046f5dd5c2Smrg{
16056f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16066f5dd5c2Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
16076f5dd5c2Smrgcase "(($ac_try" in
16086f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16106f5dd5c2Smrgesac
16116f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16126f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16136f5dd5c2Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
16146f5dd5c2Smrg  ac_status=$?
16156f5dd5c2Smrg  if test -s conftest.err; then
16166f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
16176f5dd5c2Smrg    cat conftest.er1 >&5
16186f5dd5c2Smrg    mv -f conftest.er1 conftest.err
16196f5dd5c2Smrg  fi
16206f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16212ab73d9fSmrg  test $ac_status = 0; } > conftest.i && {
16226f5dd5c2Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16236f5dd5c2Smrg	 test ! -s conftest.err
16246f5dd5c2Smrg       }; then :
16256f5dd5c2Smrg  ac_retval=0
16266f5dd5c2Smrgelse
16276f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
16286f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
16296f5dd5c2Smrg
16306f5dd5c2Smrg    ac_retval=1
16316f5dd5c2Smrgfi
16322ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16336f5dd5c2Smrg  as_fn_set_status $ac_retval
16346f5dd5c2Smrg
16356f5dd5c2Smrg} # ac_fn_c_try_cpp
16366f5dd5c2Smrg
16376f5dd5c2Smrg# ac_fn_c_try_run LINENO
16386f5dd5c2Smrg# ----------------------
16396f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16406f5dd5c2Smrg# that executables *can* be run.
16416f5dd5c2Smrgac_fn_c_try_run ()
16426f5dd5c2Smrg{
16436f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16446f5dd5c2Smrg  if { { ac_try="$ac_link"
16456f5dd5c2Smrgcase "(($ac_try" in
16466f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16486f5dd5c2Smrgesac
16496f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16506f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16516f5dd5c2Smrg  (eval "$ac_link") 2>&5
16526f5dd5c2Smrg  ac_status=$?
16536f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16546f5dd5c2Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
16556f5dd5c2Smrg  { { case "(($ac_try" in
16566f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
16586f5dd5c2Smrgesac
16596f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16606f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
16616f5dd5c2Smrg  (eval "$ac_try") 2>&5
16626f5dd5c2Smrg  ac_status=$?
16636f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16646f5dd5c2Smrg  test $ac_status = 0; }; }; then :
16656f5dd5c2Smrg  ac_retval=0
16666f5dd5c2Smrgelse
16676f5dd5c2Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
16686f5dd5c2Smrg       $as_echo "$as_me: failed program was:" >&5
16696f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
16706f5dd5c2Smrg
16716f5dd5c2Smrg       ac_retval=$ac_status
16726f5dd5c2Smrgfi
16736f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
16742ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16756f5dd5c2Smrg  as_fn_set_status $ac_retval
16766f5dd5c2Smrg
16776f5dd5c2Smrg} # ac_fn_c_try_run
16786f5dd5c2Smrg
16796f5dd5c2Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16806f5dd5c2Smrg# -------------------------------------------------------
16816f5dd5c2Smrg# Tests whether HEADER exists and can be compiled using the include files in
16826f5dd5c2Smrg# INCLUDES, setting the cache variable VAR accordingly.
16836f5dd5c2Smrgac_fn_c_check_header_compile ()
16846f5dd5c2Smrg{
16856f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16866f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16876f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
16882ab73d9fSmrgif eval \${$3+:} false; then :
16896f5dd5c2Smrg  $as_echo_n "(cached) " >&6
16906f5dd5c2Smrgelse
16916f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926f5dd5c2Smrg/* end confdefs.h.  */
16936f5dd5c2Smrg$4
16946f5dd5c2Smrg#include <$2>
16956f5dd5c2Smrg_ACEOF
16966f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
16976f5dd5c2Smrg  eval "$3=yes"
16986f5dd5c2Smrgelse
16996f5dd5c2Smrg  eval "$3=no"
17006f5dd5c2Smrgfi
17016f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026f5dd5c2Smrgfi
17036f5dd5c2Smrgeval ac_res=\$$3
17046f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17056f5dd5c2Smrg$as_echo "$ac_res" >&6; }
17062ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17076f5dd5c2Smrg
17086f5dd5c2Smrg} # ac_fn_c_check_header_compile
17096f5dd5c2Smrg
17106f5dd5c2Smrg# ac_fn_c_try_link LINENO
17116f5dd5c2Smrg# -----------------------
17126f5dd5c2Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
17136f5dd5c2Smrgac_fn_c_try_link ()
17146f5dd5c2Smrg{
17156f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17166f5dd5c2Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
17176f5dd5c2Smrg  if { { ac_try="$ac_link"
17186f5dd5c2Smrgcase "(($ac_try" in
17196f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
17216f5dd5c2Smrgesac
17226f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17236f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
17246f5dd5c2Smrg  (eval "$ac_link") 2>conftest.err
17256f5dd5c2Smrg  ac_status=$?
17266f5dd5c2Smrg  if test -s conftest.err; then
17276f5dd5c2Smrg    grep -v '^ *+' conftest.err >conftest.er1
17286f5dd5c2Smrg    cat conftest.er1 >&5
17296f5dd5c2Smrg    mv -f conftest.er1 conftest.err
17306f5dd5c2Smrg  fi
17316f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17326f5dd5c2Smrg  test $ac_status = 0; } && {
17336f5dd5c2Smrg	 test -z "$ac_c_werror_flag" ||
17346f5dd5c2Smrg	 test ! -s conftest.err
17356f5dd5c2Smrg       } && test -s conftest$ac_exeext && {
17366f5dd5c2Smrg	 test "$cross_compiling" = yes ||
17376f5dd5c2Smrg	 $as_test_x conftest$ac_exeext
17386f5dd5c2Smrg       }; then :
17396f5dd5c2Smrg  ac_retval=0
17406f5dd5c2Smrgelse
17416f5dd5c2Smrg  $as_echo "$as_me: failed program was:" >&5
17426f5dd5c2Smrgsed 's/^/| /' conftest.$ac_ext >&5
17436f5dd5c2Smrg
17446f5dd5c2Smrg	ac_retval=1
17456f5dd5c2Smrgfi
17466f5dd5c2Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17476f5dd5c2Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17486f5dd5c2Smrg  # interfere with the next link command; also delete a directory that is
17496f5dd5c2Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
17506f5dd5c2Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17512ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17526f5dd5c2Smrg  as_fn_set_status $ac_retval
17536f5dd5c2Smrg
17546f5dd5c2Smrg} # ac_fn_c_try_link
17556f5dd5c2Smrg
17566f5dd5c2Smrg# ac_fn_c_check_func LINENO FUNC VAR
17576f5dd5c2Smrg# ----------------------------------
17586f5dd5c2Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17596f5dd5c2Smrgac_fn_c_check_func ()
17606f5dd5c2Smrg{
17616f5dd5c2Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17626f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17636f5dd5c2Smrg$as_echo_n "checking for $2... " >&6; }
17642ab73d9fSmrgif eval \${$3+:} false; then :
17656f5dd5c2Smrg  $as_echo_n "(cached) " >&6
17666f5dd5c2Smrgelse
17676f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686f5dd5c2Smrg/* end confdefs.h.  */
17696f5dd5c2Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17706f5dd5c2Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17716f5dd5c2Smrg#define $2 innocuous_$2
17726f5dd5c2Smrg
17736f5dd5c2Smrg/* System header to define __stub macros and hopefully few prototypes,
17746f5dd5c2Smrg    which can conflict with char $2 (); below.
17756f5dd5c2Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17766f5dd5c2Smrg    <limits.h> exists even on freestanding compilers.  */
17776f5dd5c2Smrg
17786f5dd5c2Smrg#ifdef __STDC__
17796f5dd5c2Smrg# include <limits.h>
17806f5dd5c2Smrg#else
17816f5dd5c2Smrg# include <assert.h>
17826f5dd5c2Smrg#endif
17836f5dd5c2Smrg
17846f5dd5c2Smrg#undef $2
17856f5dd5c2Smrg
17866f5dd5c2Smrg/* Override any GCC internal prototype to avoid an error.
17876f5dd5c2Smrg   Use char because int might match the return type of a GCC
17886f5dd5c2Smrg   builtin and then its argument prototype would still apply.  */
17896f5dd5c2Smrg#ifdef __cplusplus
17906f5dd5c2Smrgextern "C"
17916f5dd5c2Smrg#endif
17926f5dd5c2Smrgchar $2 ();
17936f5dd5c2Smrg/* The GNU C library defines this for functions which it implements
17946f5dd5c2Smrg    to always fail with ENOSYS.  Some functions are actually named
17956f5dd5c2Smrg    something starting with __ and the normal name is an alias.  */
17966f5dd5c2Smrg#if defined __stub_$2 || defined __stub___$2
17976f5dd5c2Smrgchoke me
17986f5dd5c2Smrg#endif
17996f5dd5c2Smrg
18006f5dd5c2Smrgint
18016f5dd5c2Smrgmain ()
18026f5dd5c2Smrg{
18036f5dd5c2Smrgreturn $2 ();
18046f5dd5c2Smrg  ;
18056f5dd5c2Smrg  return 0;
18066f5dd5c2Smrg}
18076f5dd5c2Smrg_ACEOF
18086f5dd5c2Smrgif ac_fn_c_try_link "$LINENO"; then :
18096f5dd5c2Smrg  eval "$3=yes"
18106f5dd5c2Smrgelse
18116f5dd5c2Smrg  eval "$3=no"
18126f5dd5c2Smrgfi
18136f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext \
18146f5dd5c2Smrg    conftest$ac_exeext conftest.$ac_ext
18156f5dd5c2Smrgfi
18166f5dd5c2Smrgeval ac_res=\$$3
18176f5dd5c2Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18186f5dd5c2Smrg$as_echo "$ac_res" >&6; }
18192ab73d9fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18206f5dd5c2Smrg
18216f5dd5c2Smrg} # ac_fn_c_check_func
18226f5dd5c2Smrgcat >config.log <<_ACEOF
18236f5dd5c2SmrgThis file contains any messages produced by compilers while
18246f5dd5c2Smrgrunning configure, to aid debugging if configure makes a mistake.
18256f5dd5c2Smrg
1826ff6cf368SmrgIt was created by xset $as_me 1.2.2, which was
18272ab73d9fSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
18286f5dd5c2Smrg
18296f5dd5c2Smrg  $ $0 $@
18306f5dd5c2Smrg
18316f5dd5c2Smrg_ACEOF
18326f5dd5c2Smrgexec 5>>config.log
18336f5dd5c2Smrg{
18346f5dd5c2Smrgcat <<_ASUNAME
18356f5dd5c2Smrg## --------- ##
18366f5dd5c2Smrg## Platform. ##
18376f5dd5c2Smrg## --------- ##
18386f5dd5c2Smrg
18396f5dd5c2Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
18406f5dd5c2Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
18416f5dd5c2Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
18426f5dd5c2Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
18436f5dd5c2Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
18446f5dd5c2Smrg
18456f5dd5c2Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
18466f5dd5c2Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
18476f5dd5c2Smrg
18486f5dd5c2Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
18496f5dd5c2Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
18506f5dd5c2Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
18516f5dd5c2Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
18526f5dd5c2Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
18536f5dd5c2Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
18546f5dd5c2Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
18556f5dd5c2Smrg
18566f5dd5c2Smrg_ASUNAME
1857a0195d5fSmrg
1858a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859a0195d5fSmrgfor as_dir in $PATH
1860a0195d5fSmrgdo
1861a0195d5fSmrg  IFS=$as_save_IFS
1862a0195d5fSmrg  test -z "$as_dir" && as_dir=.
18636f5dd5c2Smrg    $as_echo "PATH: $as_dir"
18646f5dd5c2Smrg  done
1865a0195d5fSmrgIFS=$as_save_IFS
1866a0195d5fSmrg
1867a0195d5fSmrg} >&5
1868a0195d5fSmrg
1869a0195d5fSmrgcat >&5 <<_ACEOF
1870a0195d5fSmrg
1871a0195d5fSmrg
1872a0195d5fSmrg## ----------- ##
1873a0195d5fSmrg## Core tests. ##
1874a0195d5fSmrg## ----------- ##
1875a0195d5fSmrg
1876a0195d5fSmrg_ACEOF
1877a0195d5fSmrg
1878a0195d5fSmrg
1879a0195d5fSmrg# Keep a trace of the command line.
1880a0195d5fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1881a0195d5fSmrg# Strip out --silent because we don't want to record it for future runs.
1882a0195d5fSmrg# Also quote any args containing shell meta-characters.
1883a0195d5fSmrg# Make two passes to allow for proper duplicate-argument suppression.
1884a0195d5fSmrgac_configure_args=
1885a0195d5fSmrgac_configure_args0=
1886a0195d5fSmrgac_configure_args1=
1887a0195d5fSmrgac_must_keep_next=false
1888a0195d5fSmrgfor ac_pass in 1 2
1889a0195d5fSmrgdo
1890a0195d5fSmrg  for ac_arg
1891a0195d5fSmrg  do
1892a0195d5fSmrg    case $ac_arg in
1893a0195d5fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1894a0195d5fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1895a0195d5fSmrg    | -silent | --silent | --silen | --sile | --sil)
1896a0195d5fSmrg      continue ;;
1897a0195d5fSmrg    *\'*)
18986600fe5bSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1899a0195d5fSmrg    esac
1900a0195d5fSmrg    case $ac_pass in
19016f5dd5c2Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902a0195d5fSmrg    2)
19036f5dd5c2Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1904a0195d5fSmrg      if test $ac_must_keep_next = true; then
1905a0195d5fSmrg	ac_must_keep_next=false # Got value, back to normal.
1906a0195d5fSmrg      else
1907a0195d5fSmrg	case $ac_arg in
1908a0195d5fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1909a0195d5fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1910a0195d5fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1911a0195d5fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1912a0195d5fSmrg	    case "$ac_configure_args0 " in
1913a0195d5fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1914a0195d5fSmrg	    esac
1915a0195d5fSmrg	    ;;
1916a0195d5fSmrg	  -* ) ac_must_keep_next=true ;;
1917a0195d5fSmrg	esac
1918a0195d5fSmrg      fi
19196f5dd5c2Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1920a0195d5fSmrg      ;;
1921a0195d5fSmrg    esac
1922a0195d5fSmrg  done
1923a0195d5fSmrgdone
19246f5dd5c2Smrg{ ac_configure_args0=; unset ac_configure_args0;}
19256f5dd5c2Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1926a0195d5fSmrg
1927a0195d5fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1928a0195d5fSmrg# config.log.  We remove comments because anyway the quotes in there
1929a0195d5fSmrg# would cause problems or look ugly.
1930a0195d5fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1931a0195d5fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1932a0195d5fSmrgtrap 'exit_status=$?
1933a0195d5fSmrg  # Save into config.log some information that might help in debugging.
1934a0195d5fSmrg  {
1935a0195d5fSmrg    echo
1936a0195d5fSmrg
19372ab73d9fSmrg    $as_echo "## ---------------- ##
1938a0195d5fSmrg## Cache variables. ##
19392ab73d9fSmrg## ---------------- ##"
1940a0195d5fSmrg    echo
1941a0195d5fSmrg    # The following way of writing the cache mishandles newlines in values,
1942a0195d5fSmrg(
1943a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1944a0195d5fSmrg    eval ac_val=\$$ac_var
1945a0195d5fSmrg    case $ac_val in #(
1946a0195d5fSmrg    *${as_nl}*)
1947a0195d5fSmrg      case $ac_var in #(
19486f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19496600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1950a0195d5fSmrg      esac
1951a0195d5fSmrg      case $ac_var in #(
1952a0195d5fSmrg      _ | IFS | as_nl) ;; #(
19536600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19546f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1955a0195d5fSmrg      esac ;;
1956a0195d5fSmrg    esac
1957a0195d5fSmrg  done
1958a0195d5fSmrg  (set) 2>&1 |
1959a0195d5fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1960a0195d5fSmrg    *${as_nl}ac_space=\ *)
1961a0195d5fSmrg      sed -n \
1962a0195d5fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1963a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1964a0195d5fSmrg      ;; #(
1965a0195d5fSmrg    *)
1966a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967a0195d5fSmrg      ;;
1968a0195d5fSmrg    esac |
1969a0195d5fSmrg    sort
1970a0195d5fSmrg)
1971a0195d5fSmrg    echo
1972a0195d5fSmrg
19732ab73d9fSmrg    $as_echo "## ----------------- ##
1974a0195d5fSmrg## Output variables. ##
19752ab73d9fSmrg## ----------------- ##"
1976a0195d5fSmrg    echo
1977a0195d5fSmrg    for ac_var in $ac_subst_vars
1978a0195d5fSmrg    do
1979a0195d5fSmrg      eval ac_val=\$$ac_var
1980a0195d5fSmrg      case $ac_val in
19816600fe5bSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982a0195d5fSmrg      esac
19836600fe5bSmrg      $as_echo "$ac_var='\''$ac_val'\''"
1984a0195d5fSmrg    done | sort
1985a0195d5fSmrg    echo
1986a0195d5fSmrg
1987a0195d5fSmrg    if test -n "$ac_subst_files"; then
19882ab73d9fSmrg      $as_echo "## ------------------- ##
1989a0195d5fSmrg## File substitutions. ##
19902ab73d9fSmrg## ------------------- ##"
1991a0195d5fSmrg      echo
1992a0195d5fSmrg      for ac_var in $ac_subst_files
1993a0195d5fSmrg      do
1994a0195d5fSmrg	eval ac_val=\$$ac_var
1995a0195d5fSmrg	case $ac_val in
19966600fe5bSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997a0195d5fSmrg	esac
19986600fe5bSmrg	$as_echo "$ac_var='\''$ac_val'\''"
1999a0195d5fSmrg      done | sort
2000a0195d5fSmrg      echo
2001a0195d5fSmrg    fi
2002a0195d5fSmrg
2003a0195d5fSmrg    if test -s confdefs.h; then
20042ab73d9fSmrg      $as_echo "## ----------- ##
2005a0195d5fSmrg## confdefs.h. ##
20062ab73d9fSmrg## ----------- ##"
2007a0195d5fSmrg      echo
2008a0195d5fSmrg      cat confdefs.h
2009a0195d5fSmrg      echo
2010a0195d5fSmrg    fi
2011a0195d5fSmrg    test "$ac_signal" != 0 &&
20126600fe5bSmrg      $as_echo "$as_me: caught signal $ac_signal"
20136600fe5bSmrg    $as_echo "$as_me: exit $exit_status"
2014a0195d5fSmrg  } >&5
2015a0195d5fSmrg  rm -f core *.core core.conftest.* &&
2016a0195d5fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2017a0195d5fSmrg    exit $exit_status
2018a0195d5fSmrg' 0
2019a0195d5fSmrgfor ac_signal in 1 2 13 15; do
20206f5dd5c2Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2021a0195d5fSmrgdone
2022a0195d5fSmrgac_signal=0
2023a0195d5fSmrg
2024a0195d5fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2025a0195d5fSmrgrm -f -r conftest* confdefs.h
2026a0195d5fSmrg
20276f5dd5c2Smrg$as_echo "/* confdefs.h */" > confdefs.h
20286f5dd5c2Smrg
2029a0195d5fSmrg# Predefined preprocessor variables.
2030a0195d5fSmrg
2031a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2032a0195d5fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
2033a0195d5fSmrg_ACEOF
2034a0195d5fSmrg
2035a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2036a0195d5fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2037a0195d5fSmrg_ACEOF
2038a0195d5fSmrg
2039a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2040a0195d5fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2041a0195d5fSmrg_ACEOF
2042a0195d5fSmrg
2043a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2044a0195d5fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
2045a0195d5fSmrg_ACEOF
2046a0195d5fSmrg
2047a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2048a0195d5fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2049a0195d5fSmrg_ACEOF
2050a0195d5fSmrg
20516f5dd5c2Smrgcat >>confdefs.h <<_ACEOF
20526f5dd5c2Smrg#define PACKAGE_URL "$PACKAGE_URL"
20536f5dd5c2Smrg_ACEOF
20546f5dd5c2Smrg
2055a0195d5fSmrg
2056a0195d5fSmrg# Let the site file select an alternate cache file if it wants to.
20576600fe5bSmrg# Prefer an explicitly selected file to automatically selected ones.
20586600fe5bSmrgac_site_file1=NONE
20596600fe5bSmrgac_site_file2=NONE
2060a0195d5fSmrgif test -n "$CONFIG_SITE"; then
20612ab73d9fSmrg  # We do not want a PATH search for config.site.
20622ab73d9fSmrg  case $CONFIG_SITE in #((
20632ab73d9fSmrg    -*)  ac_site_file1=./$CONFIG_SITE;;
20642ab73d9fSmrg    */*) ac_site_file1=$CONFIG_SITE;;
20652ab73d9fSmrg    *)   ac_site_file1=./$CONFIG_SITE;;
20662ab73d9fSmrg  esac
2067a0195d5fSmrgelif test "x$prefix" != xNONE; then
20686600fe5bSmrg  ac_site_file1=$prefix/share/config.site
20696600fe5bSmrg  ac_site_file2=$prefix/etc/config.site
2070a0195d5fSmrgelse
20716600fe5bSmrg  ac_site_file1=$ac_default_prefix/share/config.site
20726600fe5bSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
2073a0195d5fSmrgfi
20746600fe5bSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075a0195d5fSmrgdo
20766600fe5bSmrg  test "x$ac_site_file" = xNONE && continue
20776f5dd5c2Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
20786f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
20796600fe5bSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2080a0195d5fSmrg    sed 's/^/| /' "$ac_site_file" >&5
20812ab73d9fSmrg    . "$ac_site_file" \
20822ab73d9fSmrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20832ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20842ab73d9fSmrgas_fn_error $? "failed to load site script $ac_site_file
20852ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
2086a0195d5fSmrg  fi
2087a0195d5fSmrgdone
2088a0195d5fSmrg
2089a0195d5fSmrgif test -r "$cache_file"; then
20906f5dd5c2Smrg  # Some versions of bash will fail to source /dev/null (special files
20916f5dd5c2Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
20926f5dd5c2Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
20936f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
20946600fe5bSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2095a0195d5fSmrg    case $cache_file in
2096a0195d5fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097a0195d5fSmrg      *)                      . "./$cache_file";;
2098a0195d5fSmrg    esac
2099a0195d5fSmrg  fi
2100a0195d5fSmrgelse
21016f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
21026600fe5bSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2103a0195d5fSmrg  >$cache_file
2104a0195d5fSmrgfi
2105a0195d5fSmrg
2106a0195d5fSmrg# Check that the precious variables saved in the cache have kept the same
2107a0195d5fSmrg# value.
2108a0195d5fSmrgac_cache_corrupted=false
2109a0195d5fSmrgfor ac_var in $ac_precious_vars; do
2110a0195d5fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111a0195d5fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2112a0195d5fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113a0195d5fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2114a0195d5fSmrg  case $ac_old_set,$ac_new_set in
2115a0195d5fSmrg    set,)
21166f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
21176600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118a0195d5fSmrg      ac_cache_corrupted=: ;;
2119a0195d5fSmrg    ,set)
21206f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
21216600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122a0195d5fSmrg      ac_cache_corrupted=: ;;
2123a0195d5fSmrg    ,);;
2124a0195d5fSmrg    *)
2125a0195d5fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
21266600fe5bSmrg	# differences in whitespace do not lead to failure.
21276600fe5bSmrg	ac_old_val_w=`echo x $ac_old_val`
21286600fe5bSmrg	ac_new_val_w=`echo x $ac_new_val`
21296600fe5bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
21306f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
21316600fe5bSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
21326600fe5bSmrg	  ac_cache_corrupted=:
21336600fe5bSmrg	else
21346f5dd5c2Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
21356600fe5bSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
21366600fe5bSmrg	  eval $ac_var=\$ac_old_val
21376600fe5bSmrg	fi
21386f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
21396600fe5bSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
21406f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
21416600fe5bSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2142a0195d5fSmrg      fi;;
2143a0195d5fSmrg  esac
2144a0195d5fSmrg  # Pass precious variables to config.status.
2145a0195d5fSmrg  if test "$ac_new_set" = set; then
2146a0195d5fSmrg    case $ac_new_val in
21476600fe5bSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148a0195d5fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2149a0195d5fSmrg    esac
2150a0195d5fSmrg    case " $ac_configure_args " in
2151a0195d5fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
21526f5dd5c2Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153a0195d5fSmrg    esac
2154a0195d5fSmrg  fi
2155a0195d5fSmrgdone
2156a0195d5fSmrgif $ac_cache_corrupted; then
21576f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21586600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21596f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
21606600fe5bSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
21612ab73d9fSmrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162a0195d5fSmrgfi
21636f5dd5c2Smrg## -------------------- ##
21646f5dd5c2Smrg## Main body of script. ##
21656f5dd5c2Smrg## -------------------- ##
2166a0195d5fSmrg
2167a0195d5fSmrgac_ext=c
2168a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
2169a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2172a0195d5fSmrg
2173a0195d5fSmrg
21742ab73d9fSmrg
21752ab73d9fSmrgac_config_headers="$ac_config_headers config.h"
21762ab73d9fSmrg
21772ab73d9fSmrg
21782ab73d9fSmrg# Initialize Automake
21796600fe5bSmrgam__api_version='1.11'
2180a0195d5fSmrg
2181a0195d5fSmrgac_aux_dir=
2182a0195d5fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
21832ab73d9fSmrg  if test -f "$ac_dir/install-sh"; then
21842ab73d9fSmrg    ac_aux_dir=$ac_dir
21852ab73d9fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
21862ab73d9fSmrg    break
21872ab73d9fSmrg  elif test -f "$ac_dir/install.sh"; then
21882ab73d9fSmrg    ac_aux_dir=$ac_dir
21892ab73d9fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
21902ab73d9fSmrg    break
21912ab73d9fSmrg  elif test -f "$ac_dir/shtool"; then
21922ab73d9fSmrg    ac_aux_dir=$ac_dir
21932ab73d9fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
21942ab73d9fSmrg    break
21952ab73d9fSmrg  fi
2196a0195d5fSmrgdone
2197a0195d5fSmrgif test -z "$ac_aux_dir"; then
21982ab73d9fSmrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2199a0195d5fSmrgfi
2200a0195d5fSmrg
2201a0195d5fSmrg# These three variables are undocumented and unsupported,
2202a0195d5fSmrg# and are intended to be withdrawn in a future Autoconf release.
2203a0195d5fSmrg# They can cause serious problems if a builder's source tree is in a directory
2204a0195d5fSmrg# whose full name contains unusual characters.
2205a0195d5fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2206a0195d5fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2207a0195d5fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2208a0195d5fSmrg
2209a0195d5fSmrg
2210a0195d5fSmrg# Find a good install program.  We prefer a C program (faster),
2211a0195d5fSmrg# so one script is as good as another.  But avoid the broken or
2212a0195d5fSmrg# incompatible versions:
2213a0195d5fSmrg# SysV /etc/install, /usr/sbin/install
2214a0195d5fSmrg# SunOS /usr/etc/install
2215a0195d5fSmrg# IRIX /sbin/install
2216a0195d5fSmrg# AIX /bin/install
2217a0195d5fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2218a0195d5fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2219a0195d5fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2220a0195d5fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2221a0195d5fSmrg# OS/2's system install, which has a completely different semantic
2222a0195d5fSmrg# ./install, which can be erroneously created by make from ./install.sh.
22236600fe5bSmrg# Reject install programs that cannot install multiple files.
22246f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22256600fe5bSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2226a0195d5fSmrgif test -z "$INSTALL"; then
22272ab73d9fSmrgif ${ac_cv_path_install+:} false; then :
22286600fe5bSmrg  $as_echo_n "(cached) " >&6
2229a0195d5fSmrgelse
2230a0195d5fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231a0195d5fSmrgfor as_dir in $PATH
2232a0195d5fSmrgdo
2233a0195d5fSmrg  IFS=$as_save_IFS
2234a0195d5fSmrg  test -z "$as_dir" && as_dir=.
22356f5dd5c2Smrg    # Account for people who put trailing slashes in PATH elements.
22366f5dd5c2Smrgcase $as_dir/ in #((
22376f5dd5c2Smrg  ./ | .// | /[cC]/* | \
2238a0195d5fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22396f5dd5c2Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2240a0195d5fSmrg  /usr/ucb/* ) ;;
2241a0195d5fSmrg  *)
2242a0195d5fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2243a0195d5fSmrg    # Don't use installbsd from OSF since it installs stuff as root
2244a0195d5fSmrg    # by default.
2245a0195d5fSmrg    for ac_prog in ginstall scoinst install; do
2246a0195d5fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
2247a0195d5fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2248a0195d5fSmrg	  if test $ac_prog = install &&
2249a0195d5fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2250a0195d5fSmrg	    # AIX install.  It has an incompatible calling convention.
2251a0195d5fSmrg	    :
2252a0195d5fSmrg	  elif test $ac_prog = install &&
2253a0195d5fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2254a0195d5fSmrg	    # program-specific install script used by HP pwplus--don't use.
2255a0195d5fSmrg	    :
2256a0195d5fSmrg	  else
22576600fe5bSmrg	    rm -rf conftest.one conftest.two conftest.dir
22586600fe5bSmrg	    echo one > conftest.one
22596600fe5bSmrg	    echo two > conftest.two
22606600fe5bSmrg	    mkdir conftest.dir
22616600fe5bSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
22626600fe5bSmrg	      test -s conftest.one && test -s conftest.two &&
22636600fe5bSmrg	      test -s conftest.dir/conftest.one &&
22646600fe5bSmrg	      test -s conftest.dir/conftest.two
22656600fe5bSmrg	    then
22666600fe5bSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22676600fe5bSmrg	      break 3
22686600fe5bSmrg	    fi
2269a0195d5fSmrg	  fi
2270a0195d5fSmrg	fi
2271a0195d5fSmrg      done
2272a0195d5fSmrg    done
2273a0195d5fSmrg    ;;
2274a0195d5fSmrgesac
22756600fe5bSmrg
22766f5dd5c2Smrg  done
2277a0195d5fSmrgIFS=$as_save_IFS
2278a0195d5fSmrg
22796600fe5bSmrgrm -rf conftest.one conftest.two conftest.dir
2280a0195d5fSmrg
2281a0195d5fSmrgfi
2282a0195d5fSmrg  if test "${ac_cv_path_install+set}" = set; then
2283a0195d5fSmrg    INSTALL=$ac_cv_path_install
2284a0195d5fSmrg  else
2285a0195d5fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2286a0195d5fSmrg    # value for INSTALL within a source directory, because that will
2287a0195d5fSmrg    # break other packages using the cache if that directory is
2288a0195d5fSmrg    # removed, or if the value is a relative name.
2289a0195d5fSmrg    INSTALL=$ac_install_sh
2290a0195d5fSmrg  fi
2291a0195d5fSmrgfi
22926f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
22936600fe5bSmrg$as_echo "$INSTALL" >&6; }
2294a0195d5fSmrg
2295a0195d5fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2296a0195d5fSmrg# It thinks the first close brace ends the variable substitution.
2297a0195d5fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2298a0195d5fSmrg
2299a0195d5fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2300a0195d5fSmrg
2301a0195d5fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2302a0195d5fSmrg
23036f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
23046600fe5bSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
2305a0195d5fSmrg# Just in case
2306a0195d5fSmrgsleep 1
2307a0195d5fSmrgecho timestamp > conftest.file
23086600fe5bSmrg# Reject unsafe characters in $srcdir or the absolute working directory
23096600fe5bSmrg# name.  Accept space and tab only in the latter.
23106600fe5bSmrgam_lf='
23116600fe5bSmrg'
23126600fe5bSmrgcase `pwd` in
23136600fe5bSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
23142ab73d9fSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
23156600fe5bSmrgesac
23166600fe5bSmrgcase $srcdir in
23176600fe5bSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
23182ab73d9fSmrg    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
23196600fe5bSmrgesac
23206600fe5bSmrg
2321a0195d5fSmrg# Do `set' in a subshell so we don't clobber the current shell's
2322a0195d5fSmrg# arguments.  Must try -L first in case configure is actually a
2323a0195d5fSmrg# symlink; some systems play weird games with the mod time of symlinks
2324a0195d5fSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2325a0195d5fSmrg# directory).
2326a0195d5fSmrgif (
23276600fe5bSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2328a0195d5fSmrg   if test "$*" = "X"; then
2329a0195d5fSmrg      # -L didn't work.
23306600fe5bSmrg      set X `ls -t "$srcdir/configure" conftest.file`
2331a0195d5fSmrg   fi
2332a0195d5fSmrg   rm -f conftest.file
2333a0195d5fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2334a0195d5fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2335a0195d5fSmrg
2336a0195d5fSmrg      # If neither matched, then we have a broken ls.  This can happen
2337a0195d5fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2338a0195d5fSmrg      # broken ls alias from the environment.  This has actually
2339a0195d5fSmrg      # happened.  Such a system could not be considered "sane".
23402ab73d9fSmrg      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
23416f5dd5c2Smrgalias in your environment" "$LINENO" 5
2342a0195d5fSmrg   fi
2343a0195d5fSmrg
2344a0195d5fSmrg   test "$2" = conftest.file
2345a0195d5fSmrg   )
2346a0195d5fSmrgthen
2347a0195d5fSmrg   # Ok.
2348a0195d5fSmrg   :
2349a0195d5fSmrgelse
23502ab73d9fSmrg   as_fn_error $? "newly created file is older than distributed files!
23516f5dd5c2SmrgCheck your system clock" "$LINENO" 5
2352a0195d5fSmrgfi
23536f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23546600fe5bSmrg$as_echo "yes" >&6; }
2355a0195d5fSmrgtest "$program_prefix" != NONE &&
2356a0195d5fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2357a0195d5fSmrg# Use a double $ so make ignores it.
2358a0195d5fSmrgtest "$program_suffix" != NONE &&
2359a0195d5fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
23606600fe5bSmrg# Double any \ or $.
2361a0195d5fSmrg# By default was `s,x,x', remove it if useless.
23626600fe5bSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23636600fe5bSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2364a0195d5fSmrg
2365a0195d5fSmrg# expand $ac_aux_dir to an absolute path
2366a0195d5fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2367a0195d5fSmrg
23686600fe5bSmrgif test x"${MISSING+set}" != xset; then
23696600fe5bSmrg  case $am_aux_dir in
23706600fe5bSmrg  *\ * | *\	*)
23716600fe5bSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
23726600fe5bSmrg  *)
23736600fe5bSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
23746600fe5bSmrg  esac
23756600fe5bSmrgfi
2376a0195d5fSmrg# Use eval to expand $SHELL
2377a0195d5fSmrgif eval "$MISSING --run true"; then
2378a0195d5fSmrg  am_missing_run="$MISSING --run "
2379a0195d5fSmrgelse
2380a0195d5fSmrg  am_missing_run=
23816f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
23826600fe5bSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23836600fe5bSmrgfi
23846600fe5bSmrg
23856600fe5bSmrgif test x"${install_sh}" != xset; then
23866600fe5bSmrg  case $am_aux_dir in
23876600fe5bSmrg  *\ * | *\	*)
23886600fe5bSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
23896600fe5bSmrg  *)
23906600fe5bSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
23916600fe5bSmrg  esac
23926600fe5bSmrgfi
23936600fe5bSmrg
23946600fe5bSmrg# Installed binaries are usually stripped using `strip' when the user
23956600fe5bSmrg# run `make install-strip'.  However `strip' might not be the right
23966600fe5bSmrg# tool to use in cross-compilation environments, therefore Automake
23976600fe5bSmrg# will honor the `STRIP' environment variable to overrule this program.
23986600fe5bSmrgif test "$cross_compiling" != no; then
23996600fe5bSmrg  if test -n "$ac_tool_prefix"; then
24006600fe5bSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24016600fe5bSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
24026f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24036600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
24042ab73d9fSmrgif ${ac_cv_prog_STRIP+:} false; then :
24056600fe5bSmrg  $as_echo_n "(cached) " >&6
24066600fe5bSmrgelse
24076600fe5bSmrg  if test -n "$STRIP"; then
24086600fe5bSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24096600fe5bSmrgelse
24106600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24116600fe5bSmrgfor as_dir in $PATH
24126600fe5bSmrgdo
24136600fe5bSmrg  IFS=$as_save_IFS
24146600fe5bSmrg  test -z "$as_dir" && as_dir=.
24156f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24166600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24176600fe5bSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
24186f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24196600fe5bSmrg    break 2
24206600fe5bSmrg  fi
24216600fe5bSmrgdone
24226f5dd5c2Smrg  done
24236600fe5bSmrgIFS=$as_save_IFS
24246600fe5bSmrg
24256600fe5bSmrgfi
24266600fe5bSmrgfi
24276600fe5bSmrgSTRIP=$ac_cv_prog_STRIP
24286600fe5bSmrgif test -n "$STRIP"; then
24296f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
24306600fe5bSmrg$as_echo "$STRIP" >&6; }
24316600fe5bSmrgelse
24326f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24336600fe5bSmrg$as_echo "no" >&6; }
24346600fe5bSmrgfi
24356600fe5bSmrg
24366600fe5bSmrg
24376600fe5bSmrgfi
24386600fe5bSmrgif test -z "$ac_cv_prog_STRIP"; then
24396600fe5bSmrg  ac_ct_STRIP=$STRIP
24406600fe5bSmrg  # Extract the first word of "strip", so it can be a program name with args.
24416600fe5bSmrgset dummy strip; ac_word=$2
24426f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24436600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
24442ab73d9fSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
24456600fe5bSmrg  $as_echo_n "(cached) " >&6
24466600fe5bSmrgelse
24476600fe5bSmrg  if test -n "$ac_ct_STRIP"; then
24486600fe5bSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
24496600fe5bSmrgelse
24506600fe5bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24516600fe5bSmrgfor as_dir in $PATH
24526600fe5bSmrgdo
24536600fe5bSmrg  IFS=$as_save_IFS
24546600fe5bSmrg  test -z "$as_dir" && as_dir=.
24556f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
24566600fe5bSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24576600fe5bSmrg    ac_cv_prog_ac_ct_STRIP="strip"
24586f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24596600fe5bSmrg    break 2
24606600fe5bSmrg  fi
24616600fe5bSmrgdone
24626f5dd5c2Smrg  done
24636600fe5bSmrgIFS=$as_save_IFS
24646600fe5bSmrg
24656600fe5bSmrgfi
24666600fe5bSmrgfi
24676600fe5bSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
24686600fe5bSmrgif test -n "$ac_ct_STRIP"; then
24696f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
24706600fe5bSmrg$as_echo "$ac_ct_STRIP" >&6; }
24716600fe5bSmrgelse
24726f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24736600fe5bSmrg$as_echo "no" >&6; }
24746600fe5bSmrgfi
24756600fe5bSmrg
24766600fe5bSmrg  if test "x$ac_ct_STRIP" = x; then
24776600fe5bSmrg    STRIP=":"
24786600fe5bSmrg  else
24796600fe5bSmrg    case $cross_compiling:$ac_tool_warned in
24806600fe5bSmrgyes:)
24816f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24826600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24836600fe5bSmrgac_tool_warned=yes ;;
24846600fe5bSmrgesac
24856600fe5bSmrg    STRIP=$ac_ct_STRIP
24866600fe5bSmrg  fi
24876600fe5bSmrgelse
24886600fe5bSmrg  STRIP="$ac_cv_prog_STRIP"
2489a0195d5fSmrgfi
2490a0195d5fSmrg
24916600fe5bSmrgfi
24926600fe5bSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24936600fe5bSmrg
24946f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
24956600fe5bSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2496a0195d5fSmrgif test -z "$MKDIR_P"; then
24972ab73d9fSmrg  if ${ac_cv_path_mkdir+:} false; then :
24986600fe5bSmrg  $as_echo_n "(cached) " >&6
2499a0195d5fSmrgelse
2500a0195d5fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501a0195d5fSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2502a0195d5fSmrgdo
2503a0195d5fSmrg  IFS=$as_save_IFS
2504a0195d5fSmrg  test -z "$as_dir" && as_dir=.
25056f5dd5c2Smrg    for ac_prog in mkdir gmkdir; do
2506a0195d5fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2507a0195d5fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2508a0195d5fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2509a0195d5fSmrg	     'mkdir (GNU coreutils) '* | \
2510a0195d5fSmrg	     'mkdir (coreutils) '* | \
2511a0195d5fSmrg	     'mkdir (fileutils) '4.1*)
2512a0195d5fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2513a0195d5fSmrg	       break 3;;
2514a0195d5fSmrg	   esac
2515a0195d5fSmrg	 done
2516a0195d5fSmrg       done
25176f5dd5c2Smrg  done
2518a0195d5fSmrgIFS=$as_save_IFS
2519a0195d5fSmrg
2520a0195d5fSmrgfi
2521a0195d5fSmrg
25226f5dd5c2Smrg  test -d ./--version && rmdir ./--version
2523a0195d5fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2524a0195d5fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2525a0195d5fSmrg  else
2526a0195d5fSmrg    # As a last resort, use the slow shell script.  Don't cache a
2527a0195d5fSmrg    # value for MKDIR_P within a source directory, because that will
2528a0195d5fSmrg    # break other packages using the cache if that directory is
2529a0195d5fSmrg    # removed, or if the value is a relative name.
2530a0195d5fSmrg    MKDIR_P="$ac_install_sh -d"
2531a0195d5fSmrg  fi
2532a0195d5fSmrgfi
25336f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
25346600fe5bSmrg$as_echo "$MKDIR_P" >&6; }
2535a0195d5fSmrg
2536a0195d5fSmrgmkdir_p="$MKDIR_P"
2537a0195d5fSmrgcase $mkdir_p in
2538a0195d5fSmrg  [\\/$]* | ?:[\\/]*) ;;
2539a0195d5fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2540a0195d5fSmrgesac
2541a0195d5fSmrg
2542a0195d5fSmrgfor ac_prog in gawk mawk nawk awk
2543a0195d5fSmrgdo
2544a0195d5fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2545a0195d5fSmrgset dummy $ac_prog; ac_word=$2
25466f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25476600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
25482ab73d9fSmrgif ${ac_cv_prog_AWK+:} false; then :
25496600fe5bSmrg  $as_echo_n "(cached) " >&6
2550a0195d5fSmrgelse
2551a0195d5fSmrg  if test -n "$AWK"; then
2552a0195d5fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2553a0195d5fSmrgelse
2554a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555a0195d5fSmrgfor as_dir in $PATH
2556a0195d5fSmrgdo
2557a0195d5fSmrg  IFS=$as_save_IFS
2558a0195d5fSmrg  test -z "$as_dir" && as_dir=.
25596f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2560a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561a0195d5fSmrg    ac_cv_prog_AWK="$ac_prog"
25626f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563a0195d5fSmrg    break 2
2564a0195d5fSmrg  fi
2565a0195d5fSmrgdone
25666f5dd5c2Smrg  done
2567a0195d5fSmrgIFS=$as_save_IFS
2568a0195d5fSmrg
2569a0195d5fSmrgfi
2570a0195d5fSmrgfi
2571a0195d5fSmrgAWK=$ac_cv_prog_AWK
2572a0195d5fSmrgif test -n "$AWK"; then
25736f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25746600fe5bSmrg$as_echo "$AWK" >&6; }
2575a0195d5fSmrgelse
25766f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25776600fe5bSmrg$as_echo "no" >&6; }
2578a0195d5fSmrgfi
2579a0195d5fSmrg
2580a0195d5fSmrg
2581a0195d5fSmrg  test -n "$AWK" && break
2582a0195d5fSmrgdone
2583a0195d5fSmrg
25846f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25856600fe5bSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25866600fe5bSmrgset x ${MAKE-make}
25876600fe5bSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25882ab73d9fSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
25896600fe5bSmrg  $as_echo_n "(cached) " >&6
2590a0195d5fSmrgelse
2591a0195d5fSmrg  cat >conftest.make <<\_ACEOF
2592a0195d5fSmrgSHELL = /bin/sh
2593a0195d5fSmrgall:
2594a0195d5fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2595a0195d5fSmrg_ACEOF
25962ab73d9fSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2597a0195d5fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2598a0195d5fSmrg  *@@@%%%=?*=@@@%%%*)
2599a0195d5fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2600a0195d5fSmrg  *)
2601a0195d5fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2602a0195d5fSmrgesac
2603a0195d5fSmrgrm -f conftest.make
2604a0195d5fSmrgfi
2605a0195d5fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
26066f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26076600fe5bSmrg$as_echo "yes" >&6; }
2608a0195d5fSmrg  SET_MAKE=
2609a0195d5fSmrgelse
26106f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26116600fe5bSmrg$as_echo "no" >&6; }
2612a0195d5fSmrg  SET_MAKE="MAKE=${MAKE-make}"
2613a0195d5fSmrgfi
2614a0195d5fSmrg
2615a0195d5fSmrgrm -rf .tst 2>/dev/null
2616a0195d5fSmrgmkdir .tst 2>/dev/null
2617a0195d5fSmrgif test -d .tst; then
2618a0195d5fSmrg  am__leading_dot=.
2619a0195d5fSmrgelse
2620a0195d5fSmrg  am__leading_dot=_
2621a0195d5fSmrgfi
2622a0195d5fSmrgrmdir .tst 2>/dev/null
2623a0195d5fSmrg
2624a0195d5fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2625a0195d5fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2626a0195d5fSmrg  # is not polluted with repeated "-I."
2627a0195d5fSmrg  am__isrc=' -I$(srcdir)'
2628a0195d5fSmrg  # test to see if srcdir already configured
2629a0195d5fSmrg  if test -f $srcdir/config.status; then
26302ab73d9fSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2631a0195d5fSmrg  fi
2632a0195d5fSmrgfi
2633a0195d5fSmrg
2634a0195d5fSmrg# test whether we have cygpath
2635a0195d5fSmrgif test -z "$CYGPATH_W"; then
2636a0195d5fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2637a0195d5fSmrg    CYGPATH_W='cygpath -w'
2638a0195d5fSmrg  else
2639a0195d5fSmrg    CYGPATH_W=echo
2640a0195d5fSmrg  fi
2641a0195d5fSmrgfi
2642a0195d5fSmrg
2643a0195d5fSmrg
2644a0195d5fSmrg# Define the identity of the package.
2645a0195d5fSmrg PACKAGE='xset'
2646ff6cf368Smrg VERSION='1.2.2'
2647a0195d5fSmrg
2648a0195d5fSmrg
2649a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2650a0195d5fSmrg#define PACKAGE "$PACKAGE"
2651a0195d5fSmrg_ACEOF
2652a0195d5fSmrg
2653a0195d5fSmrg
2654a0195d5fSmrgcat >>confdefs.h <<_ACEOF
2655a0195d5fSmrg#define VERSION "$VERSION"
2656a0195d5fSmrg_ACEOF
2657a0195d5fSmrg
2658a0195d5fSmrg# Some tools Automake needs.
2659a0195d5fSmrg
2660a0195d5fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2661a0195d5fSmrg
2662a0195d5fSmrg
2663a0195d5fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2664a0195d5fSmrg
2665a0195d5fSmrg
2666a0195d5fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2667a0195d5fSmrg
2668a0195d5fSmrg
2669a0195d5fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2670a0195d5fSmrg
2671a0195d5fSmrg
2672a0195d5fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2673a0195d5fSmrg
2674a0195d5fSmrg# We need awk for the "check" target.  The system "awk" is bad on
2675a0195d5fSmrg# some platforms.
2676a0195d5fSmrg# Always define AMTAR for backward compatibility.
2677a0195d5fSmrg
2678a0195d5fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2679a0195d5fSmrg
2680a0195d5fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2681a0195d5fSmrg
2682a0195d5fSmrg
2683a0195d5fSmrg
2684a0195d5fSmrg
2685a0195d5fSmrg
26866600fe5bSmrg
26876f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26886600fe5bSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2689a0195d5fSmrg    # Check whether --enable-maintainer-mode was given.
26906f5dd5c2Smrgif test "${enable_maintainer_mode+set}" = set; then :
2691a0195d5fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2692a0195d5fSmrgelse
2693a0195d5fSmrg  USE_MAINTAINER_MODE=no
2694a0195d5fSmrgfi
2695a0195d5fSmrg
26966f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
26976600fe5bSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
2698a0195d5fSmrg   if test $USE_MAINTAINER_MODE = yes; then
2699a0195d5fSmrg  MAINTAINER_MODE_TRUE=
2700a0195d5fSmrg  MAINTAINER_MODE_FALSE='#'
2701a0195d5fSmrgelse
2702a0195d5fSmrg  MAINTAINER_MODE_TRUE='#'
2703a0195d5fSmrg  MAINTAINER_MODE_FALSE=
2704a0195d5fSmrgfi
2705a0195d5fSmrg
2706a0195d5fSmrg  MAINT=$MAINTAINER_MODE_TRUE
2707a0195d5fSmrg
2708a0195d5fSmrg
2709a0195d5fSmrg
27102ab73d9fSmrg# Require xorg-macros: XORG_MANPAGE_SECTIONS
27116600fe5bSmrg
27126600fe5bSmrg
27136600fe5bSmrg
27146600fe5bSmrg
27156600fe5bSmrg
27166600fe5bSmrg
27176600fe5bSmrg
27186600fe5bSmrg
27196600fe5bSmrg
27206600fe5bSmrg
27216600fe5bSmrg
27226f5dd5c2SmrgDEPDIR="${am__leading_dot}deps"
2723a0195d5fSmrg
27246f5dd5c2Smrgac_config_commands="$ac_config_commands depfiles"
2725a0195d5fSmrg
2726a0195d5fSmrg
27276f5dd5c2Smrgam_make=${MAKE-make}
27286f5dd5c2Smrgcat > confinc << 'END'
27296f5dd5c2Smrgam__doit:
27306f5dd5c2Smrg	@echo this is the am__doit target
27316f5dd5c2Smrg.PHONY: am__doit
27326f5dd5c2SmrgEND
27336f5dd5c2Smrg# If we don't find an include directive, just comment out the code.
27346f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
27356f5dd5c2Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
27366f5dd5c2Smrgam__include="#"
27376f5dd5c2Smrgam__quote=
27386f5dd5c2Smrg_am_result=none
27396f5dd5c2Smrg# First try GNU make style include.
27406f5dd5c2Smrgecho "include confinc" > confmf
27416f5dd5c2Smrg# Ignore all kinds of additional output from `make'.
27426f5dd5c2Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
27436f5dd5c2Smrg*the\ am__doit\ target*)
27446f5dd5c2Smrg  am__include=include
27456f5dd5c2Smrg  am__quote=
27466f5dd5c2Smrg  _am_result=GNU
27476f5dd5c2Smrg  ;;
27486f5dd5c2Smrgesac
27496f5dd5c2Smrg# Now try BSD make style include.
27506f5dd5c2Smrgif test "$am__include" = "#"; then
27516f5dd5c2Smrg   echo '.include "confinc"' > confmf
27526f5dd5c2Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
27536f5dd5c2Smrg   *the\ am__doit\ target*)
27546f5dd5c2Smrg     am__include=.include
27556f5dd5c2Smrg     am__quote="\""
27566f5dd5c2Smrg     _am_result=BSD
27576f5dd5c2Smrg     ;;
27586f5dd5c2Smrg   esac
27596f5dd5c2Smrgfi
27606f5dd5c2Smrg
27616f5dd5c2Smrg
27626f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
27636f5dd5c2Smrg$as_echo "$_am_result" >&6; }
27646f5dd5c2Smrgrm -f confinc confmf
27656f5dd5c2Smrg
27666f5dd5c2Smrg# Check whether --enable-dependency-tracking was given.
27676f5dd5c2Smrgif test "${enable_dependency_tracking+set}" = set; then :
27686f5dd5c2Smrg  enableval=$enable_dependency_tracking;
27696f5dd5c2Smrgfi
27706f5dd5c2Smrg
27716f5dd5c2Smrgif test "x$enable_dependency_tracking" != xno; then
27726f5dd5c2Smrg  am_depcomp="$ac_aux_dir/depcomp"
27736f5dd5c2Smrg  AMDEPBACKSLASH='\'
27746f5dd5c2Smrgfi
27756f5dd5c2Smrg if test "x$enable_dependency_tracking" != xno; then
27766f5dd5c2Smrg  AMDEP_TRUE=
27776f5dd5c2Smrg  AMDEP_FALSE='#'
27786f5dd5c2Smrgelse
27796f5dd5c2Smrg  AMDEP_TRUE='#'
27806f5dd5c2Smrg  AMDEP_FALSE=
27816f5dd5c2Smrgfi
27826f5dd5c2Smrg
27836f5dd5c2Smrg
27846f5dd5c2Smrgac_ext=c
27856f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
27866f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27876f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27886f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
27896f5dd5c2Smrgif test -n "$ac_tool_prefix"; then
27906f5dd5c2Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
27916f5dd5c2Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
27926f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27936f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
27942ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
27956f5dd5c2Smrg  $as_echo_n "(cached) " >&6
27966f5dd5c2Smrgelse
27976f5dd5c2Smrg  if test -n "$CC"; then
27986f5dd5c2Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
27996f5dd5c2Smrgelse
28006f5dd5c2Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28016f5dd5c2Smrgfor as_dir in $PATH
28026f5dd5c2Smrgdo
28036f5dd5c2Smrg  IFS=$as_save_IFS
28046f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
28056f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
28066f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28076f5dd5c2Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
28086f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28096f5dd5c2Smrg    break 2
28106f5dd5c2Smrg  fi
28116f5dd5c2Smrgdone
28126f5dd5c2Smrg  done
28136f5dd5c2SmrgIFS=$as_save_IFS
28146f5dd5c2Smrg
28156f5dd5c2Smrgfi
28166f5dd5c2Smrgfi
28176f5dd5c2SmrgCC=$ac_cv_prog_CC
28186f5dd5c2Smrgif test -n "$CC"; then
28196f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
28206f5dd5c2Smrg$as_echo "$CC" >&6; }
28216f5dd5c2Smrgelse
28226f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28236f5dd5c2Smrg$as_echo "no" >&6; }
28246f5dd5c2Smrgfi
28256f5dd5c2Smrg
28266f5dd5c2Smrg
28276f5dd5c2Smrgfi
28286f5dd5c2Smrgif test -z "$ac_cv_prog_CC"; then
2829a0195d5fSmrg  ac_ct_CC=$CC
2830a0195d5fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2831a0195d5fSmrgset dummy gcc; ac_word=$2
28326f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28336600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
28342ab73d9fSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
28356600fe5bSmrg  $as_echo_n "(cached) " >&6
2836a0195d5fSmrgelse
2837a0195d5fSmrg  if test -n "$ac_ct_CC"; then
2838a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839a0195d5fSmrgelse
2840a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841a0195d5fSmrgfor as_dir in $PATH
2842a0195d5fSmrgdo
2843a0195d5fSmrg  IFS=$as_save_IFS
2844a0195d5fSmrg  test -z "$as_dir" && as_dir=.
28456f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2846a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847a0195d5fSmrg    ac_cv_prog_ac_ct_CC="gcc"
28486f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849a0195d5fSmrg    break 2
2850a0195d5fSmrg  fi
2851a0195d5fSmrgdone
28526f5dd5c2Smrg  done
2853a0195d5fSmrgIFS=$as_save_IFS
2854a0195d5fSmrg
2855a0195d5fSmrgfi
2856a0195d5fSmrgfi
2857a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2858a0195d5fSmrgif test -n "$ac_ct_CC"; then
28596f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
28606600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
2861a0195d5fSmrgelse
28626f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28636600fe5bSmrg$as_echo "no" >&6; }
2864a0195d5fSmrgfi
2865a0195d5fSmrg
2866a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
2867a0195d5fSmrg    CC=""
2868a0195d5fSmrg  else
2869a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
2870a0195d5fSmrgyes:)
28716f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28726600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2873a0195d5fSmrgac_tool_warned=yes ;;
2874a0195d5fSmrgesac
2875a0195d5fSmrg    CC=$ac_ct_CC
2876a0195d5fSmrg  fi
2877a0195d5fSmrgelse
2878a0195d5fSmrg  CC="$ac_cv_prog_CC"
2879a0195d5fSmrgfi
2880a0195d5fSmrg
2881a0195d5fSmrgif test -z "$CC"; then
2882a0195d5fSmrg          if test -n "$ac_tool_prefix"; then
2883a0195d5fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2884a0195d5fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
28856f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28866600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
28872ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
28886600fe5bSmrg  $as_echo_n "(cached) " >&6
2889a0195d5fSmrgelse
2890a0195d5fSmrg  if test -n "$CC"; then
2891a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2892a0195d5fSmrgelse
2893a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894a0195d5fSmrgfor as_dir in $PATH
2895a0195d5fSmrgdo
2896a0195d5fSmrg  IFS=$as_save_IFS
2897a0195d5fSmrg  test -z "$as_dir" && as_dir=.
28986f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2899a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900a0195d5fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
29016f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902a0195d5fSmrg    break 2
2903a0195d5fSmrg  fi
2904a0195d5fSmrgdone
29056f5dd5c2Smrg  done
2906a0195d5fSmrgIFS=$as_save_IFS
2907a0195d5fSmrg
2908a0195d5fSmrgfi
2909a0195d5fSmrgfi
2910a0195d5fSmrgCC=$ac_cv_prog_CC
2911a0195d5fSmrgif test -n "$CC"; then
29126f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29136600fe5bSmrg$as_echo "$CC" >&6; }
2914a0195d5fSmrgelse
29156f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29166600fe5bSmrg$as_echo "no" >&6; }
2917a0195d5fSmrgfi
2918a0195d5fSmrg
2919a0195d5fSmrg
2920a0195d5fSmrg  fi
2921a0195d5fSmrgfi
2922a0195d5fSmrgif test -z "$CC"; then
2923a0195d5fSmrg  # Extract the first word of "cc", so it can be a program name with args.
2924a0195d5fSmrgset dummy cc; ac_word=$2
29256f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29266600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
29272ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
29286600fe5bSmrg  $as_echo_n "(cached) " >&6
2929a0195d5fSmrgelse
2930a0195d5fSmrg  if test -n "$CC"; then
2931a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2932a0195d5fSmrgelse
2933a0195d5fSmrg  ac_prog_rejected=no
2934a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935a0195d5fSmrgfor as_dir in $PATH
2936a0195d5fSmrgdo
2937a0195d5fSmrg  IFS=$as_save_IFS
2938a0195d5fSmrg  test -z "$as_dir" && as_dir=.
29396f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2940a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941a0195d5fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2942a0195d5fSmrg       ac_prog_rejected=yes
2943a0195d5fSmrg       continue
2944a0195d5fSmrg     fi
2945a0195d5fSmrg    ac_cv_prog_CC="cc"
29466f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947a0195d5fSmrg    break 2
2948a0195d5fSmrg  fi
2949a0195d5fSmrgdone
29506f5dd5c2Smrg  done
2951a0195d5fSmrgIFS=$as_save_IFS
2952a0195d5fSmrg
2953a0195d5fSmrgif test $ac_prog_rejected = yes; then
2954a0195d5fSmrg  # We found a bogon in the path, so make sure we never use it.
2955a0195d5fSmrg  set dummy $ac_cv_prog_CC
2956a0195d5fSmrg  shift
2957a0195d5fSmrg  if test $# != 0; then
2958a0195d5fSmrg    # We chose a different compiler from the bogus one.
2959a0195d5fSmrg    # However, it has the same basename, so the bogon will be chosen
2960a0195d5fSmrg    # first if we set CC to just the basename; use the full file name.
2961a0195d5fSmrg    shift
2962a0195d5fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2963a0195d5fSmrg  fi
2964a0195d5fSmrgfi
2965a0195d5fSmrgfi
2966a0195d5fSmrgfi
2967a0195d5fSmrgCC=$ac_cv_prog_CC
2968a0195d5fSmrgif test -n "$CC"; then
29696f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
29706600fe5bSmrg$as_echo "$CC" >&6; }
2971a0195d5fSmrgelse
29726f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29736600fe5bSmrg$as_echo "no" >&6; }
2974a0195d5fSmrgfi
2975a0195d5fSmrg
2976a0195d5fSmrg
2977a0195d5fSmrgfi
2978a0195d5fSmrgif test -z "$CC"; then
2979a0195d5fSmrg  if test -n "$ac_tool_prefix"; then
2980a0195d5fSmrg  for ac_prog in cl.exe
2981a0195d5fSmrg  do
2982a0195d5fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2983a0195d5fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
29846f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29856600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
29862ab73d9fSmrgif ${ac_cv_prog_CC+:} false; then :
29876600fe5bSmrg  $as_echo_n "(cached) " >&6
2988a0195d5fSmrgelse
2989a0195d5fSmrg  if test -n "$CC"; then
2990a0195d5fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2991a0195d5fSmrgelse
2992a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993a0195d5fSmrgfor as_dir in $PATH
2994a0195d5fSmrgdo
2995a0195d5fSmrg  IFS=$as_save_IFS
2996a0195d5fSmrg  test -z "$as_dir" && as_dir=.
29976f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2998a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999a0195d5fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
30006f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001a0195d5fSmrg    break 2
3002a0195d5fSmrg  fi
3003a0195d5fSmrgdone
30046f5dd5c2Smrg  done
3005a0195d5fSmrgIFS=$as_save_IFS
3006a0195d5fSmrg
3007a0195d5fSmrgfi
3008a0195d5fSmrgfi
3009a0195d5fSmrgCC=$ac_cv_prog_CC
3010a0195d5fSmrgif test -n "$CC"; then
30116f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
30126600fe5bSmrg$as_echo "$CC" >&6; }
3013a0195d5fSmrgelse
30146f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30156600fe5bSmrg$as_echo "no" >&6; }
3016a0195d5fSmrgfi
3017a0195d5fSmrg
3018a0195d5fSmrg
3019a0195d5fSmrg    test -n "$CC" && break
3020a0195d5fSmrg  done
3021a0195d5fSmrgfi
3022a0195d5fSmrgif test -z "$CC"; then
3023a0195d5fSmrg  ac_ct_CC=$CC
3024a0195d5fSmrg  for ac_prog in cl.exe
3025a0195d5fSmrgdo
3026a0195d5fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3027a0195d5fSmrgset dummy $ac_prog; ac_word=$2
30286f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30296600fe5bSmrg$as_echo_n "checking for $ac_word... " >&6; }
30302ab73d9fSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
30316600fe5bSmrg  $as_echo_n "(cached) " >&6
3032a0195d5fSmrgelse
3033a0195d5fSmrg  if test -n "$ac_ct_CC"; then
3034a0195d5fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3035a0195d5fSmrgelse
3036a0195d5fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037a0195d5fSmrgfor as_dir in $PATH
3038a0195d5fSmrgdo
3039a0195d5fSmrg  IFS=$as_save_IFS
3040a0195d5fSmrg  test -z "$as_dir" && as_dir=.
30416f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3042a0195d5fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043a0195d5fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
30446f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045a0195d5fSmrg    break 2
3046a0195d5fSmrg  fi
3047a0195d5fSmrgdone
30486f5dd5c2Smrg  done
3049a0195d5fSmrgIFS=$as_save_IFS
3050a0195d5fSmrg
3051a0195d5fSmrgfi
3052a0195d5fSmrgfi
3053a0195d5fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3054a0195d5fSmrgif test -n "$ac_ct_CC"; then
30556f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
30566600fe5bSmrg$as_echo "$ac_ct_CC" >&6; }
3057a0195d5fSmrgelse
30586f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30596600fe5bSmrg$as_echo "no" >&6; }
3060a0195d5fSmrgfi
3061a0195d5fSmrg
3062a0195d5fSmrg
3063a0195d5fSmrg  test -n "$ac_ct_CC" && break
3064a0195d5fSmrgdone
3065a0195d5fSmrg
3066a0195d5fSmrg  if test "x$ac_ct_CC" = x; then
3067a0195d5fSmrg    CC=""
3068a0195d5fSmrg  else
3069a0195d5fSmrg    case $cross_compiling:$ac_tool_warned in
3070a0195d5fSmrgyes:)
30716f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30726600fe5bSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073a0195d5fSmrgac_tool_warned=yes ;;
3074a0195d5fSmrgesac
3075a0195d5fSmrg    CC=$ac_ct_CC
3076a0195d5fSmrg  fi
3077a0195d5fSmrgfi
3078a0195d5fSmrg
3079a0195d5fSmrgfi
3080a0195d5fSmrg
3081a0195d5fSmrg
30826f5dd5c2Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30836600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30842ab73d9fSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
30852ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
3086a0195d5fSmrg
3087a0195d5fSmrg# Provide some information about the compiler.
30886f5dd5c2Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
30896600fe5bSmrgset X $ac_compile
30906600fe5bSmrgac_compiler=$2
30916f5dd5c2Smrgfor ac_option in --version -v -V -qversion; do
30926f5dd5c2Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3093a0195d5fSmrgcase "(($ac_try" in
3094a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3096a0195d5fSmrgesac
30976f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
30986f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
30996f5dd5c2Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3100a0195d5fSmrg  ac_status=$?
31016f5dd5c2Smrg  if test -s conftest.err; then
31026f5dd5c2Smrg    sed '10a\
31036f5dd5c2Smrg... rest of stderr output deleted ...
31046f5dd5c2Smrg         10q' conftest.err >conftest.er1
31056f5dd5c2Smrg    cat conftest.er1 >&5
31066f5dd5c2Smrg  fi
31076f5dd5c2Smrg  rm -f conftest.er1 conftest.err
31086f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31096f5dd5c2Smrg  test $ac_status = 0; }
31106f5dd5c2Smrgdone
3111a0195d5fSmrg
31126f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113a0195d5fSmrg/* end confdefs.h.  */
3114a0195d5fSmrg
3115a0195d5fSmrgint
3116a0195d5fSmrgmain ()
3117a0195d5fSmrg{
3118a0195d5fSmrg
3119a0195d5fSmrg  ;
3120a0195d5fSmrg  return 0;
3121a0195d5fSmrg}
3122a0195d5fSmrg_ACEOF
3123a0195d5fSmrgac_clean_files_save=$ac_clean_files
31246600fe5bSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3125a0195d5fSmrg# Try to create an executable without -o first, disregard a.out.
3126a0195d5fSmrg# It will help us diagnose broken compilers, and finding out an intuition
3127a0195d5fSmrg# of exeext.
31286f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
31296f5dd5c2Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
31306600fe5bSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
31316600fe5bSmrg
31326600fe5bSmrg# The possible output files:
31336600fe5bSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
31346600fe5bSmrg
3135a0195d5fSmrgac_rmfiles=
3136a0195d5fSmrgfor ac_file in $ac_files
3137a0195d5fSmrgdo
3138a0195d5fSmrg  case $ac_file in
31396600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3140a0195d5fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3141a0195d5fSmrg  esac
3142a0195d5fSmrgdone
3143a0195d5fSmrgrm -f $ac_rmfiles
3144a0195d5fSmrg
31456f5dd5c2Smrgif { { ac_try="$ac_link_default"
3146a0195d5fSmrgcase "(($ac_try" in
3147a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3149a0195d5fSmrgesac
31506f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
31516f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3152a0195d5fSmrg  (eval "$ac_link_default") 2>&5
3153a0195d5fSmrg  ac_status=$?
31546f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31556f5dd5c2Smrg  test $ac_status = 0; }; then :
3156a0195d5fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3157a0195d5fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3158a0195d5fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3159a0195d5fSmrg# so that the user can short-circuit this test for compilers unknown to
3160a0195d5fSmrg# Autoconf.
3161a0195d5fSmrgfor ac_file in $ac_files ''
3162a0195d5fSmrgdo
3163a0195d5fSmrg  test -f "$ac_file" || continue
3164a0195d5fSmrg  case $ac_file in
31656600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3166a0195d5fSmrg	;;
3167a0195d5fSmrg    [ab].out )
3168a0195d5fSmrg	# We found the default executable, but exeext='' is most
3169a0195d5fSmrg	# certainly right.
3170a0195d5fSmrg	break;;
3171a0195d5fSmrg    *.* )
31726f5dd5c2Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3173a0195d5fSmrg	then :; else
3174a0195d5fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3175a0195d5fSmrg	fi
3176a0195d5fSmrg	# We set ac_cv_exeext here because the later test for it is not
3177a0195d5fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3178a0195d5fSmrg	# argument, so we may need to know it at that point already.
3179a0195d5fSmrg	# Even if this section looks crufty: it has the advantage of
3180a0195d5fSmrg	# actually working.
3181a0195d5fSmrg	break;;
3182a0195d5fSmrg    * )
3183a0195d5fSmrg	break;;
3184a0195d5fSmrg  esac
3185a0195d5fSmrgdone
3186a0195d5fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3187a0195d5fSmrg
3188a0195d5fSmrgelse
3189a0195d5fSmrg  ac_file=''
3190a0195d5fSmrgfi
31916f5dd5c2Smrgif test -z "$ac_file"; then :
31926f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31936f5dd5c2Smrg$as_echo "no" >&6; }
31946f5dd5c2Smrg$as_echo "$as_me: failed program was:" >&5
3195a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3196a0195d5fSmrg
31976f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31986600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31992ab73d9fSmrgas_fn_error 77 "C compiler cannot create executables
32002ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
32016f5dd5c2Smrgelse
32026f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32036f5dd5c2Smrg$as_echo "yes" >&6; }
3204a0195d5fSmrgfi
32056f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
32066f5dd5c2Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
32076f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
32086f5dd5c2Smrg$as_echo "$ac_file" >&6; }
3209a0195d5fSmrgac_exeext=$ac_cv_exeext
3210a0195d5fSmrg
32116600fe5bSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3212a0195d5fSmrgac_clean_files=$ac_clean_files_save
32136f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
32146600fe5bSmrg$as_echo_n "checking for suffix of executables... " >&6; }
32156f5dd5c2Smrgif { { ac_try="$ac_link"
3216a0195d5fSmrgcase "(($ac_try" in
3217a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3219a0195d5fSmrgesac
32206f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32216f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3222a0195d5fSmrg  (eval "$ac_link") 2>&5
3223a0195d5fSmrg  ac_status=$?
32246f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32256f5dd5c2Smrg  test $ac_status = 0; }; then :
3226a0195d5fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3227a0195d5fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3228a0195d5fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3229a0195d5fSmrg# `rm'.
3230a0195d5fSmrgfor ac_file in conftest.exe conftest conftest.*; do
3231a0195d5fSmrg  test -f "$ac_file" || continue
3232a0195d5fSmrg  case $ac_file in
32336600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3234a0195d5fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235a0195d5fSmrg	  break;;
3236a0195d5fSmrg    * ) break;;
3237a0195d5fSmrg  esac
3238a0195d5fSmrgdone
3239a0195d5fSmrgelse
32406f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32416600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32422ab73d9fSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
32432ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
3244a0195d5fSmrgfi
32456f5dd5c2Smrgrm -f conftest conftest$ac_cv_exeext
32466f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
32476600fe5bSmrg$as_echo "$ac_cv_exeext" >&6; }
3248a0195d5fSmrg
3249a0195d5fSmrgrm -f conftest.$ac_ext
3250a0195d5fSmrgEXEEXT=$ac_cv_exeext
3251a0195d5fSmrgac_exeext=$EXEEXT
32526f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
32536f5dd5c2Smrg/* end confdefs.h.  */
32546f5dd5c2Smrg#include <stdio.h>
32556f5dd5c2Smrgint
32566f5dd5c2Smrgmain ()
32576f5dd5c2Smrg{
32586f5dd5c2SmrgFILE *f = fopen ("conftest.out", "w");
32596f5dd5c2Smrg return ferror (f) || fclose (f) != 0;
32606f5dd5c2Smrg
32616f5dd5c2Smrg  ;
32626f5dd5c2Smrg  return 0;
32636f5dd5c2Smrg}
32646f5dd5c2Smrg_ACEOF
32656f5dd5c2Smrgac_clean_files="$ac_clean_files conftest.out"
32666f5dd5c2Smrg# Check that the compiler produces executables we can run.  If not, either
32676f5dd5c2Smrg# the compiler is broken, or we cross compile.
32686f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
32696f5dd5c2Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
32706f5dd5c2Smrgif test "$cross_compiling" != yes; then
32716f5dd5c2Smrg  { { ac_try="$ac_link"
32726f5dd5c2Smrgcase "(($ac_try" in
32736f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
32756f5dd5c2Smrgesac
32766f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32776f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
32786f5dd5c2Smrg  (eval "$ac_link") 2>&5
32796f5dd5c2Smrg  ac_status=$?
32806f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32816f5dd5c2Smrg  test $ac_status = 0; }
32826f5dd5c2Smrg  if { ac_try='./conftest$ac_cv_exeext'
32836f5dd5c2Smrg  { { case "(($ac_try" in
32846f5dd5c2Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32856f5dd5c2Smrg  *) ac_try_echo=$ac_try;;
32866f5dd5c2Smrgesac
32876f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
32886f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
32896f5dd5c2Smrg  (eval "$ac_try") 2>&5
32906f5dd5c2Smrg  ac_status=$?
32916f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32926f5dd5c2Smrg  test $ac_status = 0; }; }; then
32936f5dd5c2Smrg    cross_compiling=no
32946f5dd5c2Smrg  else
32956f5dd5c2Smrg    if test "$cross_compiling" = maybe; then
32966f5dd5c2Smrg	cross_compiling=yes
32976f5dd5c2Smrg    else
32986f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32996f5dd5c2Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33002ab73d9fSmrgas_fn_error $? "cannot run C compiled programs.
33016f5dd5c2SmrgIf you meant to cross compile, use \`--host'.
33022ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
33036f5dd5c2Smrg    fi
33046f5dd5c2Smrg  fi
33056f5dd5c2Smrgfi
33066f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
33076f5dd5c2Smrg$as_echo "$cross_compiling" >&6; }
33086f5dd5c2Smrg
33096f5dd5c2Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
33106f5dd5c2Smrgac_clean_files=$ac_clean_files_save
33116f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
33126600fe5bSmrg$as_echo_n "checking for suffix of object files... " >&6; }
33132ab73d9fSmrgif ${ac_cv_objext+:} false; then :
33146600fe5bSmrg  $as_echo_n "(cached) " >&6
3315a0195d5fSmrgelse
33166f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317a0195d5fSmrg/* end confdefs.h.  */
3318a0195d5fSmrg
3319a0195d5fSmrgint
3320a0195d5fSmrgmain ()
3321a0195d5fSmrg{
3322a0195d5fSmrg
3323a0195d5fSmrg  ;
3324a0195d5fSmrg  return 0;
3325a0195d5fSmrg}
3326a0195d5fSmrg_ACEOF
3327a0195d5fSmrgrm -f conftest.o conftest.obj
33286f5dd5c2Smrgif { { ac_try="$ac_compile"
3329a0195d5fSmrgcase "(($ac_try" in
3330a0195d5fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331a0195d5fSmrg  *) ac_try_echo=$ac_try;;
3332a0195d5fSmrgesac
33336f5dd5c2Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
33346f5dd5c2Smrg$as_echo "$ac_try_echo"; } >&5
3335a0195d5fSmrg  (eval "$ac_compile") 2>&5
3336a0195d5fSmrg  ac_status=$?
33376f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33386f5dd5c2Smrg  test $ac_status = 0; }; then :
3339a0195d5fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3340a0195d5fSmrg  test -f "$ac_file" || continue;
3341a0195d5fSmrg  case $ac_file in
33426600fe5bSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3343a0195d5fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3344a0195d5fSmrg       break;;
3345a0195d5fSmrg  esac
3346a0195d5fSmrgdone
3347a0195d5fSmrgelse
33486600fe5bSmrg  $as_echo "$as_me: failed program was:" >&5
3349a0195d5fSmrgsed 's/^/| /' conftest.$ac_ext >&5
3350a0195d5fSmrg
33516f5dd5c2Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33526600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33532ab73d9fSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
33542ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
3355a0195d5fSmrgfi
3356a0195d5fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3357a0195d5fSmrgfi
33586f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
33596600fe5bSmrg$as_echo "$ac_cv_objext" >&6; }
3360a0195d5fSmrgOBJEXT=$ac_cv_objext
3361a0195d5fSmrgac_objext=$OBJEXT
33626f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
33636600fe5bSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
33642ab73d9fSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
33656600fe5bSmrg  $as_echo_n "(cached) " >&6
3366a0195d5fSmrgelse
33676f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368a0195d5fSmrg/* end confdefs.h.  */
3369a0195d5fSmrg
3370a0195d5fSmrgint
3371a0195d5fSmrgmain ()
3372a0195d5fSmrg{
3373a0195d5fSmrg#ifndef __GNUC__
3374a0195d5fSmrg       choke me
3375a0195d5fSmrg#endif
3376a0195d5fSmrg
3377a0195d5fSmrg  ;
3378a0195d5fSmrg  return 0;
3379a0195d5fSmrg}
3380a0195d5fSmrg_ACEOF
33816f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3382a0195d5fSmrg  ac_compiler_gnu=yes
3383a0195d5fSmrgelse
33846f5dd5c2Smrg  ac_compiler_gnu=no
3385a0195d5fSmrgfi
3386a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387a0195d5fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3388a0195d5fSmrg
3389a0195d5fSmrgfi
33906f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
33916600fe5bSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
33926600fe5bSmrgif test $ac_compiler_gnu = yes; then
33936600fe5bSmrg  GCC=yes
33946600fe5bSmrgelse
33956600fe5bSmrg  GCC=
33966600fe5bSmrgfi
3397a0195d5fSmrgac_test_CFLAGS=${CFLAGS+set}
3398a0195d5fSmrgac_save_CFLAGS=$CFLAGS
33996f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
34006600fe5bSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
34012ab73d9fSmrgif ${ac_cv_prog_cc_g+:} false; then :
34026600fe5bSmrg  $as_echo_n "(cached) " >&6
3403a0195d5fSmrgelse
3404a0195d5fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3405a0195d5fSmrg   ac_c_werror_flag=yes
3406a0195d5fSmrg   ac_cv_prog_cc_g=no
3407a0195d5fSmrg   CFLAGS="-g"
34086f5dd5c2Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409a0195d5fSmrg/* end confdefs.h.  */
3410a0195d5fSmrg
3411a0195d5fSmrgint
3412a0195d5fSmrgmain ()
3413a0195d5fSmrg{
3414a0195d5fSmrg
3415a0195d5fSmrg  ;
3416a0195d5fSmrg  return 0;
3417a0195d5fSmrg}
3418a0195d5fSmrg_ACEOF
34196f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3420a0195d5fSmrg  ac_cv_prog_cc_g=yes
3421a0195d5fSmrgelse
34226f5dd5c2Smrg  CFLAGS=""
34236f5dd5c2Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424a0195d5fSmrg/* end confdefs.h.  */
3425a0195d5fSmrg
3426a0195d5fSmrgint
3427a0195d5fSmrgmain ()
3428a0195d5fSmrg{
3429a0195d5fSmrg
3430a0195d5fSmrg  ;
3431a0195d5fSmrg  return 0;
3432a0195d5fSmrg}
3433a0195d5fSmrg_ACEOF
34346f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3435a0195d5fSmrg
34366f5dd5c2Smrgelse
34376f5dd5c2Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3438a0195d5fSmrg	 CFLAGS="-g"
34396f5dd5c2Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440a0195d5fSmrg/* end confdefs.h.  */
3441a0195d5fSmrg
3442a0195d5fSmrgint
3443a0195d5fSmrgmain ()
3444a0195d5fSmrg{
3445a0195d5fSmrg
3446a0195d5fSmrg  ;
3447a0195d5fSmrg  return 0;
3448a0195d5fSmrg}
3449a0195d5fSmrg_ACEOF
34506f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
3451a0195d5fSmrg  ac_cv_prog_cc_g=yes
3452a0195d5fSmrgfi
3453a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454a0195d5fSmrgfi
3455a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456a0195d5fSmrgfi
3457a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458a0195d5fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
3459a0195d5fSmrgfi
34606f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
34616600fe5bSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3462a0195d5fSmrgif test "$ac_test_CFLAGS" = set; then
3463a0195d5fSmrg  CFLAGS=$ac_save_CFLAGS
3464a0195d5fSmrgelif test $ac_cv_prog_cc_g = yes; then
3465a0195d5fSmrg  if test "$GCC" = yes; then
3466a0195d5fSmrg    CFLAGS="-g -O2"
3467a0195d5fSmrg  else
3468a0195d5fSmrg    CFLAGS="-g"
3469a0195d5fSmrg  fi
3470a0195d5fSmrgelse
3471a0195d5fSmrg  if test "$GCC" = yes; then
3472a0195d5fSmrg    CFLAGS="-O2"
3473a0195d5fSmrg  else
3474a0195d5fSmrg    CFLAGS=
3475a0195d5fSmrg  fi
3476a0195d5fSmrgfi
34776f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
34786600fe5bSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
34792ab73d9fSmrgif ${ac_cv_prog_cc_c89+:} false; then :
34806600fe5bSmrg  $as_echo_n "(cached) " >&6
3481a0195d5fSmrgelse
3482a0195d5fSmrg  ac_cv_prog_cc_c89=no
3483a0195d5fSmrgac_save_CC=$CC
34846f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485a0195d5fSmrg/* end confdefs.h.  */
3486a0195d5fSmrg#include <stdarg.h>
3487a0195d5fSmrg#include <stdio.h>
3488a0195d5fSmrg#include <sys/types.h>
3489a0195d5fSmrg#include <sys/stat.h>
3490a0195d5fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3491a0195d5fSmrgstruct buf { int x; };
3492a0195d5fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3493a0195d5fSmrgstatic char *e (p, i)
3494a0195d5fSmrg     char **p;
3495a0195d5fSmrg     int i;
3496a0195d5fSmrg{
3497a0195d5fSmrg  return p[i];
3498a0195d5fSmrg}
3499a0195d5fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3500a0195d5fSmrg{
3501a0195d5fSmrg  char *s;
3502a0195d5fSmrg  va_list v;
3503a0195d5fSmrg  va_start (v,p);
3504a0195d5fSmrg  s = g (p, va_arg (v,int));
3505a0195d5fSmrg  va_end (v);
3506a0195d5fSmrg  return s;
3507a0195d5fSmrg}
3508a0195d5fSmrg
3509a0195d5fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3510a0195d5fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3511a0195d5fSmrg   These don't provoke an error unfortunately, instead are silently treated
3512a0195d5fSmrg   as 'x'.  The following induces an error, until -std is added to get
3513a0195d5fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3514a0195d5fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
3515a0195d5fSmrg   that's true only with -std.  */
3516a0195d5fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3517a0195d5fSmrg
3518a0195d5fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3519a0195d5fSmrg   inside strings and character constants.  */
3520a0195d5fSmrg#define FOO(x) 'x'
3521a0195d5fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3522a0195d5fSmrg
3523a0195d5fSmrgint test (int i, double x);
3524a0195d5fSmrgstruct s1 {int (*f) (int a);};
3525a0195d5fSmrgstruct s2 {int (*f) (double a);};
3526a0195d5fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3527a0195d5fSmrgint argc;
3528a0195d5fSmrgchar **argv;
3529a0195d5fSmrgint
3530a0195d5fSmrgmain ()
3531a0195d5fSmrg{
3532a0195d5fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3533a0195d5fSmrg  ;
3534a0195d5fSmrg  return 0;
3535a0195d5fSmrg}
3536a0195d5fSmrg_ACEOF
3537a0195d5fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3538a0195d5fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3539a0195d5fSmrgdo
3540a0195d5fSmrg  CC="$ac_save_CC $ac_arg"
35416f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3542a0195d5fSmrg  ac_cv_prog_cc_c89=$ac_arg
3543a0195d5fSmrgfi
3544a0195d5fSmrgrm -f core conftest.err conftest.$ac_objext
3545a0195d5fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3546a0195d5fSmrgdone
3547a0195d5fSmrgrm -f conftest.$ac_ext
3548a0195d5fSmrgCC=$ac_save_CC
3549a0195d5fSmrg
3550a0195d5fSmrgfi
3551a0195d5fSmrg# AC_CACHE_VAL
3552a0195d5fSmrgcase "x$ac_cv_prog_cc_c89" in
3553a0195d5fSmrg  x)
35546f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
35556600fe5bSmrg$as_echo "none needed" >&6; } ;;
3556a0195d5fSmrg  xno)
35576f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
35586600fe5bSmrg$as_echo "unsupported" >&6; } ;;
3559a0195d5fSmrg  *)
3560a0195d5fSmrg    CC="$CC $ac_cv_prog_cc_c89"
35616f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
35626600fe5bSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3563a0195d5fSmrgesac
35646f5dd5c2Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3565a0195d5fSmrg
35666f5dd5c2Smrgfi
3567a0195d5fSmrg
3568a0195d5fSmrgac_ext=c
3569a0195d5fSmrgac_cpp='$CPP $CPPFLAGS'
3570a0195d5fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571a0195d5fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572a0195d5fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3573a0195d5fSmrg
3574a0195d5fSmrgdepcc="$CC"   am_compiler_list=
3575a0195d5fSmrg
35766f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
35776600fe5bSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
35782ab73d9fSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
35796600fe5bSmrg  $as_echo_n "(cached) " >&6
3580a0195d5fSmrgelse
3581a0195d5fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3582a0195d5fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3583a0195d5fSmrg  # making bogus files that we don't know about and never remove.  For
3584a0195d5fSmrg  # instance it was reported that on HP-UX the gcc test will end up
3585a0195d5fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3586a0195d5fSmrg  # in D'.
3587a0195d5fSmrg  mkdir conftest.dir
3588a0195d5fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3589a0195d5fSmrg  # using a relative directory.
3590a0195d5fSmrg  cp "$am_depcomp" conftest.dir
3591a0195d5fSmrg  cd conftest.dir
3592a0195d5fSmrg  # We will build objects and dependencies in a subdirectory because
3593a0195d5fSmrg  # it helps to detect inapplicable dependency modes.  For instance
3594a0195d5fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3595a0195d5fSmrg  # side effect of compilation, but ICC will put the dependencies in
3596a0195d5fSmrg  # the current directory while Tru64 will put them in the object
3597a0195d5fSmrg  # directory.
3598a0195d5fSmrg  mkdir sub
3599a0195d5fSmrg
3600a0195d5fSmrg  am_cv_CC_dependencies_compiler_type=none
3601a0195d5fSmrg  if test "$am_compiler_list" = ""; then
3602a0195d5fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3603a0195d5fSmrg  fi
36046600fe5bSmrg  am__universal=false
36056600fe5bSmrg  case " $depcc " in #(
36066600fe5bSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
36076600fe5bSmrg     esac
36086600fe5bSmrg
3609a0195d5fSmrg  for depmode in $am_compiler_list; do
3610a0195d5fSmrg    # Setup a source with many dependencies, because some compilers
3611a0195d5fSmrg    # like to wrap large dependency lists on column 80 (with \), and
3612a0195d5fSmrg    # we should not choose a depcomp mode which is confused by this.
3613a0195d5fSmrg    #
3614a0195d5fSmrg    # We need to recreate these files for each test, as the compiler may
3615a0195d5fSmrg    # overwrite some of them when testing with obscure command lines.
3616a0195d5fSmrg    # This happens at least with the AIX C compiler.
3617a0195d5fSmrg    : > sub/conftest.c
3618a0195d5fSmrg    for i in 1 2 3 4 5 6; do
3619a0195d5fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3620a0195d5fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3621a0195d5fSmrg      # Solaris 8's {/usr,}/bin/sh.
3622a0195d5fSmrg      touch sub/conftst$i.h
3623a0195d5fSmrg    done
3624a0195d5fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3625a0195d5fSmrg
36266600fe5bSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
36276600fe5bSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
36286600fe5bSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
36296600fe5bSmrg    # versions had trouble with output in subdirs
36306600fe5bSmrg    am__obj=sub/conftest.${OBJEXT-o}
36316600fe5bSmrg    am__minus_obj="-o $am__obj"
3632a0195d5fSmrg    case $depmode in
36336600fe5bSmrg    gcc)
36346600fe5bSmrg      # This depmode causes a compiler race in universal mode.
36356600fe5bSmrg      test "$am__universal" = false || continue
36366600fe5bSmrg      ;;
3637a0195d5fSmrg    nosideeffect)
3638a0195d5fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3639a0195d5fSmrg      # only be used when explicitly requested
3640a0195d5fSmrg      if test "x$enable_dependency_tracking" = xyes; then
3641a0195d5fSmrg	continue
3642a0195d5fSmrg      else
3643a0195d5fSmrg	break
3644a0195d5fSmrg      fi
3645a0195d5fSmrg      ;;
36466600fe5bSmrg    msvisualcpp | msvcmsys)
36476600fe5bSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
36486600fe5bSmrg      # not run yet.  These depmodes are late enough in the game, and
36496600fe5bSmrg      # so weak that their functioning should not be impacted.
36506600fe5bSmrg      am__obj=conftest.${OBJEXT-o}
36516600fe5bSmrg      am__minus_obj=
36526600fe5bSmrg      ;;
3653a0195d5fSmrg    none) break ;;
3654a0195d5fSmrg    esac
3655a0195d5fSmrg    if depmode=$depmode \
36566600fe5bSmrg       source=sub/conftest.c object=$am__obj \
3657a0195d5fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
36586600fe5bSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3659a0195d5fSmrg         >/dev/null 2>conftest.err &&
3660a0195d5fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3661a0195d5fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
36626600fe5bSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3663a0195d5fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3664a0195d5fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
3665a0195d5fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
3666a0195d5fSmrg      # that says an option was ignored or not supported.
3667a0195d5fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3668a0195d5fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3669a0195d5fSmrg      # The diagnosis changed in icc 8.0:
3670a0195d5fSmrg      #   icc: Command line remark: option '-MP' not supported
3671a0195d5fSmrg      if (grep 'ignoring option' conftest.err ||
3672a0195d5fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3673a0195d5fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3674a0195d5fSmrg        break
3675a0195d5fSmrg      fi
3676a0195d5fSmrg    fi
3677a0195d5fSmrg  done
3678a0195d5fSmrg
3679a0195d5fSmrg  cd ..
3680a0195d5fSmrg  rm -rf conftest.dir
3681a0195d5fSmrgelse
3682a0195d5fSmrg  am_cv_CC_dependencies_compiler_type=none
3683a0195d5fSmrgfi
3684a0195d5fSmrg
3685a0195d5fSmrgfi
36866f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
36876600fe5bSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3688a0195d5fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3689a0195d5fSmrg
3690a0195d5fSmrg if
3691a0195d5fSmrg  test "x$enable_dependency_tracking" != xno \
3692a0195d5fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3693a0195d5fSmrg  am__fastdepCC_TRUE=
3694a0195d5fSmrg  am__fastdepCC_FALSE='#'
3695a0195d5fSmrgelse
3696a0195d5fSmrg  am__fastdepCC_TRUE='#'
3697a0195d5fSmrg  am__fastdepCC_FALSE=
3698a0195d5fSmrgfi
3699a0195d5fSmrg
3700a0195d5fSmrg
37016f5dd5c2Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
37026f5dd5c2Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
37032ab73d9fSmrgif ${ac_cv_prog_cc_c99+:} false; then :
37046600fe5bSmrg  $as_echo_n "(cached) " >&6
3705a0195d5fSmrgelse
37066f5dd5c2Smrg  ac_cv_prog_cc_c99=no
37076f5dd5c2Smrgac_save_CC=$CC
37086f5dd5c2Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
37096f5dd5c2Smrg/* end confdefs.h.  */
37106f5dd5c2Smrg#include <stdarg.h>
37116f5dd5c2Smrg#include <stdbool.h>
37126f5dd5c2Smrg#include <stdlib.h>
37136f5dd5c2Smrg#include <wchar.h>
37146f5dd5c2Smrg#include <stdio.h>
37156600fe5bSmrg
37166f5dd5c2Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
37176f5dd5c2Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
37186f5dd5c2Smrg#define showlist(...) puts (#__VA_ARGS__)
37196f5dd5c2Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
37206f5dd5c2Smrgstatic void
37216f5dd5c2Smrgtest_varargs_macros (void)
37226f5dd5c2Smrg{
37236f5dd5c2Smrg  int x = 1234;
37246f5dd5c2Smrg  int y = 5678;
37256f5dd5c2Smrg  debug ("Flag");
37266f5dd5c2Smrg  debug ("X = %d\n", x);
37276f5dd5c2Smrg  showlist (The first, second, and third items.);
37286f5dd5c2Smrg  report (x>y, "x is %d but y is %d", x, y);
37296f5dd5c2Smrg}
3730a0195d5fSmrg
37316f5dd5c2Smrg// Check long long types.
37326f5dd5c2Smrg#define BIG64 18446744073709551615ull
37336f5dd5c2Smrg#define BIG32 4294967295ul
37346f5dd5c2Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
37356f5dd5c2Smrg#if !BIG_OK
37366f5dd5c2Smrg  your preprocessor is broken;
37376f5dd5c2Smrg#endif
37386f5dd5c2Smrg#if BIG_OK
37396f5dd5c2Smrg#else
37406f5dd5c2Smrg  your preprocessor is broken;
37416f5dd5c2Smrg#endif
37426f5dd5c2Smrgstatic long long int bignum = -9223372036854775807LL;
37436f5dd5c2Smrgstatic unsigned long long int ubignum = BIG64;
3744a0195d5fSmrg
37456f5dd5c2Smrgstruct incomplete_array
37466f5dd5c2Smrg{
37476f5dd5c2Smrg  int datasize;
37486f5dd5c2Smrg  double data[];
37496f5dd5c2Smrg};
3750a0195d5fSmrg
37516f5dd5c2Smrgstruct named_init {
37526f5dd5c2Smrg  int number;
37536f5dd5c2Smrg  const wchar_t *name;
37546f5dd5c2Smrg  double average;
37556f5dd5c2Smrg};
3756a0195d5fSmrg
37576f5dd5c2Smrgtypedef const char *ccp;
3758a0195d5fSmrg
37596f5dd5c2Smrgstatic inline int
37606f5dd5c2Smrgtest_restrict (ccp restrict text)
37616f5dd5c2Smrg{
37626f5dd5c2Smrg  // See if C++-style comments work.
37636f5dd5c2Smrg  // Iterate through items via the restricted pointer.
37646f5dd5c2Smrg  // Also check for declarations in for loops.
37656f5dd5c2Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
37666f5dd5c2Smrg    continue;
37676f5dd5c2Smrg  return 0;
37686f5dd5c2Smrg}
3769a0195d5fSmrg
37706f5dd5c2Smrg// Check varargs and va_copy.
37716f5dd5c2Smrgstatic void
37726f5dd5c2Smrgtest_varargs (const char *format, ...)
37736f5dd5c2Smrg{
37746f5dd5c2Smrg  va_list args;
37756f5dd5c2Smrg  va_start (args, format);
37766f5dd5c2Smrg  va_list args_copy;
37776f5dd5c2Smrg  va_copy (args_copy, args);
3778a0195d5fSmrg
37796f5dd5c2Smrg  const char *str;
37806f5dd5c2Smrg  int number;
37816f5dd5c2Smrg  float fnumber;
3782a0195d5fSmrg
37836f5dd5c2Smrg  while (*format)
37846f5dd5c2Smrg    {
37856f5dd5c2Smrg      switch (*format++)
37866f5dd5c2Smrg	{
37876f5dd5c2Smrg	case 's': // string
37886f5dd5c2Smrg	  str = va_arg (args_copy, const char *);
37896f5dd5c2Smrg	  break;
37906f5dd5c2Smrg	case 'd': // int
37916f5dd5c2Smrg	  number = va_arg (args_copy, int);
37926f5dd5c2Smrg	  break;
37936f5dd5c2Smrg	case 'f': // float
37946f5dd5c2Smrg	  fnumber = va_arg (args_copy, double);
37956f5dd5c2Smrg	  break;
37966f5dd5c2Smrg	default:
37976f5dd5c2Smrg	  break;
37986f5dd5c2Smrg	}
37996f5dd5c2Smrg    }
38006f5dd5c2Smrg  va_end (args_copy);
38016f5dd5c2Smrg  va_end (args);
38026f5dd5c2Smrg}
38036f5dd5c2Smrg
38046f5dd5c2Smrgint
38056f5dd5c2Smrgmain ()
38066f5dd5c2Smrg{
38076f5dd5c2Smrg
38086f5dd5c2Smrg  // Check bool.
38096f5dd5c2Smrg  _Bool success = false;
38106f5dd5c2Smrg
38116f5dd5c2Smrg  // Check restrict.
38126f5dd5c2Smrg  if (test_restrict ("String literal") == 0)
38136f5dd5c2Smrg    success = true;
38146f5dd5c2Smrg  char *restrict newvar = "Another string";
38156f5dd5c2Smrg
38166f5dd5c2Smrg  // Check varargs.
38176f5dd5c2Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
38186f5dd5c2Smrg  test_varargs_macros ();
38196f5dd5c2Smrg
38206f5dd5c2Smrg  // Check flexible array members.
38216f5dd5c2Smrg  struct incomplete_array *ia =
38226f5dd5c2Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
38236f5dd5c2Smrg  ia->datasize = 10;
38246f5dd5c2Smrg  for (int i = 0; i < ia->datasize; ++i)
38256f5dd5c2Smrg    ia->data[i] = i * 1.234;
38266f5dd5c2Smrg
38276f5dd5c2Smrg  // Check named initializers.
38286f5dd5c2Smrg  struct named_init ni = {
38296f5dd5c2Smrg    .number = 34,
38306f5dd5c2Smrg    .name = L"Test wide string",
38316f5dd5c2Smrg    .average = 543.34343,
38326f5dd5c2Smrg  };
38336f5dd5c2Smrg
38346f5dd5c2Smrg  ni.number = 58;
38356f5dd5c2Smrg
38366f5dd5c2Smrg  int dynamic_array[ni.number];
38376f5dd5c2Smrg  dynamic_array[ni.number - 1] = 543;
38386f5dd5c2Smrg
38396f5dd5c2Smrg  // work around unused variable warnings
38406f5dd5c2Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
38416f5dd5c2Smrg	  || dynamic_array[ni.number - 1] != 543);
38426f5dd5c2Smrg
38436f5dd5c2Smrg  ;
38446f5dd5c2Smrg  return 0;
38456f5dd5c2Smrg}
38466f5dd5c2Smrg_ACEOF
38476f5dd5c2Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
38486f5dd5c2Smrgdo
38496f5dd5c2Smrg  CC="$ac_save_CC $ac_arg"
38506f5dd5c2Smrg  if ac_fn_c_try_compile "$LINENO"; then :
38516f5dd5c2Smrg  ac_cv_prog_cc_c99=$ac_arg
38526f5dd5c2Smrgfi
38536f5dd5c2Smrgrm -f core conftest.err conftest.$ac_objext
38546f5dd5c2Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
38556f5dd5c2Smrgdone
38566f5dd5c2Smrgrm -f conftest.$ac_ext
38576f5dd5c2SmrgCC=$ac_save_CC
38586f5dd5c2Smrg
38596f5dd5c2Smrgfi
38606f5dd5c2Smrg# AC_CACHE_VAL
38616f5dd5c2Smrgcase "x$ac_cv_prog_cc_c99" in
38626f5dd5c2Smrg  x)
38636f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
38646f5dd5c2Smrg$as_echo "none needed" >&6; } ;;
38656f5dd5c2Smrg  xno)
38666f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
38676f5dd5c2Smrg$as_echo "unsupported" >&6; } ;;
38686f5dd5c2Smrg  *)
38696f5dd5c2Smrg    CC="$CC $ac_cv_prog_cc_c99"
38706f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
38716f5dd5c2Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
38726f5dd5c2Smrgesac
38736f5dd5c2Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
38746f5dd5c2Smrg
38756f5dd5c2Smrgfi
38766f5dd5c2Smrg
38776f5dd5c2Smrg
38786f5dd5c2Smrg
38796f5dd5c2Smrgac_ext=c
38806f5dd5c2Smrgac_cpp='$CPP $CPPFLAGS'
38816f5dd5c2Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38826f5dd5c2Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38836f5dd5c2Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
38846f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
38856f5dd5c2Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
38866f5dd5c2Smrg# On Suns, sometimes $CPP names a directory.
38876f5dd5c2Smrgif test -n "$CPP" && test -d "$CPP"; then
38886f5dd5c2Smrg  CPP=
38896f5dd5c2Smrgfi
38906f5dd5c2Smrgif test -z "$CPP"; then
38912ab73d9fSmrg  if ${ac_cv_prog_CPP+:} false; then :
38926f5dd5c2Smrg  $as_echo_n "(cached) " >&6
38936600fe5bSmrgelse
38946f5dd5c2Smrg      # Double quotes because CPP needs to be expanded
38956f5dd5c2Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
38966f5dd5c2Smrg    do
38976f5dd5c2Smrg      ac_preproc_ok=false
38986f5dd5c2Smrgfor ac_c_preproc_warn_flag in '' yes
38996f5dd5c2Smrgdo
39006f5dd5c2Smrg  # Use a header file that comes with gcc, so configuring glibc
39016f5dd5c2Smrg  # with a fresh cross-compiler works.
39026f5dd5c2Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39036f5dd5c2Smrg  # <limits.h> exists even on freestanding compilers.
39046f5dd5c2Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39056f5dd5c2Smrg  # not just through cpp. "Syntax error" is here to catch this case.
39066f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39076f5dd5c2Smrg/* end confdefs.h.  */
39086f5dd5c2Smrg#ifdef __STDC__
39096f5dd5c2Smrg# include <limits.h>
39106f5dd5c2Smrg#else
39116f5dd5c2Smrg# include <assert.h>
39126f5dd5c2Smrg#endif
39136f5dd5c2Smrg		     Syntax error
39146f5dd5c2Smrg_ACEOF
39156f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39166600fe5bSmrg
39176f5dd5c2Smrgelse
39186600fe5bSmrg  # Broken: fails on valid input.
39196600fe5bSmrgcontinue
39206600fe5bSmrgfi
39212ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39226600fe5bSmrg
39236600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
39246600fe5bSmrg  # can be detected and how.
39256f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39266600fe5bSmrg/* end confdefs.h.  */
39276600fe5bSmrg#include <ac_nonexistent.h>
39286600fe5bSmrg_ACEOF
39296f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39306600fe5bSmrg  # Broken: success on invalid input.
39316600fe5bSmrgcontinue
39326600fe5bSmrgelse
39336600fe5bSmrg  # Passes both tests.
39346600fe5bSmrgac_preproc_ok=:
39356600fe5bSmrgbreak
39366600fe5bSmrgfi
39372ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39386600fe5bSmrg
39396600fe5bSmrgdone
39406600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
39412ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
39426f5dd5c2Smrgif $ac_preproc_ok; then :
39436600fe5bSmrg  break
39446600fe5bSmrgfi
39456600fe5bSmrg
39466600fe5bSmrg    done
39476600fe5bSmrg    ac_cv_prog_CPP=$CPP
39486600fe5bSmrg
39496600fe5bSmrgfi
39506600fe5bSmrg  CPP=$ac_cv_prog_CPP
39516600fe5bSmrgelse
39526600fe5bSmrg  ac_cv_prog_CPP=$CPP
39536600fe5bSmrgfi
39546f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
39556600fe5bSmrg$as_echo "$CPP" >&6; }
39566600fe5bSmrgac_preproc_ok=false
39576600fe5bSmrgfor ac_c_preproc_warn_flag in '' yes
39586600fe5bSmrgdo
39596600fe5bSmrg  # Use a header file that comes with gcc, so configuring glibc
39606600fe5bSmrg  # with a fresh cross-compiler works.
39616600fe5bSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39626600fe5bSmrg  # <limits.h> exists even on freestanding compilers.
39636600fe5bSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
39646600fe5bSmrg  # not just through cpp. "Syntax error" is here to catch this case.
39656f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39666600fe5bSmrg/* end confdefs.h.  */
39676600fe5bSmrg#ifdef __STDC__
39686600fe5bSmrg# include <limits.h>
39696600fe5bSmrg#else
39706600fe5bSmrg# include <assert.h>
39716600fe5bSmrg#endif
39726600fe5bSmrg		     Syntax error
39736600fe5bSmrg_ACEOF
39746f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39756600fe5bSmrg
39766f5dd5c2Smrgelse
39776600fe5bSmrg  # Broken: fails on valid input.
39786600fe5bSmrgcontinue
39796600fe5bSmrgfi
39802ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39816600fe5bSmrg
39826600fe5bSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
39836600fe5bSmrg  # can be detected and how.
39846f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39856600fe5bSmrg/* end confdefs.h.  */
39866600fe5bSmrg#include <ac_nonexistent.h>
39876600fe5bSmrg_ACEOF
39886f5dd5c2Smrgif ac_fn_c_try_cpp "$LINENO"; then :
39896600fe5bSmrg  # Broken: success on invalid input.
39906600fe5bSmrgcontinue
39916600fe5bSmrgelse
39926600fe5bSmrg  # Passes both tests.
39936600fe5bSmrgac_preproc_ok=:
39946600fe5bSmrgbreak
39956600fe5bSmrgfi
39962ab73d9fSmrgrm -f conftest.err conftest.i conftest.$ac_ext
39976600fe5bSmrg
39986600fe5bSmrgdone
39996600fe5bSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
40002ab73d9fSmrgrm -f conftest.i conftest.err conftest.$ac_ext
40016f5dd5c2Smrgif $ac_preproc_ok; then :
40026f5dd5c2Smrg
40036600fe5bSmrgelse
40046f5dd5c2Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40056600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40062ab73d9fSmrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
40072ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
40086600fe5bSmrgfi
40096600fe5bSmrg
40106600fe5bSmrgac_ext=c
40116600fe5bSmrgac_cpp='$CPP $CPPFLAGS'
40126600fe5bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40136600fe5bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40146600fe5bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
40156600fe5bSmrg
40166600fe5bSmrg
40176f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40186600fe5bSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
40192ab73d9fSmrgif ${ac_cv_path_GREP+:} false; then :
40206600fe5bSmrg  $as_echo_n "(cached) " >&6
40216600fe5bSmrgelse
40226600fe5bSmrg  if test -z "$GREP"; then
40236600fe5bSmrg  ac_path_GREP_found=false
40246600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
40256600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40266600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40276600fe5bSmrgdo
40286600fe5bSmrg  IFS=$as_save_IFS
40296600fe5bSmrg  test -z "$as_dir" && as_dir=.
40306f5dd5c2Smrg    for ac_prog in grep ggrep; do
40316600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40326600fe5bSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
40336600fe5bSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
40346600fe5bSmrg# Check for GNU ac_path_GREP and select it if it is found.
40356600fe5bSmrg  # Check for GNU $ac_path_GREP
40366600fe5bSmrgcase `"$ac_path_GREP" --version 2>&1` in
40376600fe5bSmrg*GNU*)
40386600fe5bSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
40396600fe5bSmrg*)
40406600fe5bSmrg  ac_count=0
40416600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
40426600fe5bSmrg  while :
40436600fe5bSmrg  do
40446600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
40456600fe5bSmrg    mv "conftest.tmp" "conftest.in"
40466600fe5bSmrg    cp "conftest.in" "conftest.nl"
40476600fe5bSmrg    $as_echo 'GREP' >> "conftest.nl"
40486600fe5bSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
40496600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40506f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
40516600fe5bSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
40526600fe5bSmrg      # Best one so far, save it but keep looking for a better one
40536600fe5bSmrg      ac_cv_path_GREP="$ac_path_GREP"
40546600fe5bSmrg      ac_path_GREP_max=$ac_count
40556600fe5bSmrg    fi
40566600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
40576600fe5bSmrg    test $ac_count -gt 10 && break
40586600fe5bSmrg  done
40596600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
40606600fe5bSmrgesac
40616600fe5bSmrg
40626600fe5bSmrg      $ac_path_GREP_found && break 3
40636600fe5bSmrg    done
40646600fe5bSmrg  done
40656f5dd5c2Smrg  done
40666600fe5bSmrgIFS=$as_save_IFS
40676600fe5bSmrg  if test -z "$ac_cv_path_GREP"; then
40682ab73d9fSmrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
40696600fe5bSmrg  fi
40706600fe5bSmrgelse
40716600fe5bSmrg  ac_cv_path_GREP=$GREP
40726600fe5bSmrgfi
40736600fe5bSmrg
40746600fe5bSmrgfi
40756f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
40766600fe5bSmrg$as_echo "$ac_cv_path_GREP" >&6; }
40776600fe5bSmrg GREP="$ac_cv_path_GREP"
40786600fe5bSmrg
40796600fe5bSmrg
40806f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
40816600fe5bSmrg$as_echo_n "checking for egrep... " >&6; }
40822ab73d9fSmrgif ${ac_cv_path_EGREP+:} false; then :
40836600fe5bSmrg  $as_echo_n "(cached) " >&6
40846600fe5bSmrgelse
40856600fe5bSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
40866600fe5bSmrg   then ac_cv_path_EGREP="$GREP -E"
40876600fe5bSmrg   else
40886600fe5bSmrg     if test -z "$EGREP"; then
40896600fe5bSmrg  ac_path_EGREP_found=false
40906600fe5bSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
40916600fe5bSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40926600fe5bSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
40936600fe5bSmrgdo
40946600fe5bSmrg  IFS=$as_save_IFS
40956600fe5bSmrg  test -z "$as_dir" && as_dir=.
40966f5dd5c2Smrg    for ac_prog in egrep; do
40976600fe5bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
40986600fe5bSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
40996600fe5bSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
41006600fe5bSmrg# Check for GNU ac_path_EGREP and select it if it is found.
41016600fe5bSmrg  # Check for GNU $ac_path_EGREP
41026600fe5bSmrgcase `"$ac_path_EGREP" --version 2>&1` in
41036600fe5bSmrg*GNU*)
41046600fe5bSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
41056600fe5bSmrg*)
41066600fe5bSmrg  ac_count=0
41076600fe5bSmrg  $as_echo_n 0123456789 >"conftest.in"
41086600fe5bSmrg  while :
41096600fe5bSmrg  do
41106600fe5bSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
41116600fe5bSmrg    mv "conftest.tmp" "conftest.in"
41126600fe5bSmrg    cp "conftest.in" "conftest.nl"
41136600fe5bSmrg    $as_echo 'EGREP' >> "conftest.nl"
41146600fe5bSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
41156600fe5bSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
41166f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
41176600fe5bSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
41186600fe5bSmrg      # Best one so far, save it but keep looking for a better one
41196600fe5bSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
41206600fe5bSmrg      ac_path_EGREP_max=$ac_count
41216600fe5bSmrg    fi
41226600fe5bSmrg    # 10*(2^10) chars as input seems more than enough
41236600fe5bSmrg    test $ac_count -gt 10 && break
41246600fe5bSmrg  done
41256600fe5bSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
41266600fe5bSmrgesac
41276600fe5bSmrg
41286600fe5bSmrg      $ac_path_EGREP_found && break 3
41296600fe5bSmrg    done
41306600fe5bSmrg  done
41316f5dd5c2Smrg  done
41326600fe5bSmrgIFS=$as_save_IFS
41336600fe5bSmrg  if test -z "$ac_cv_path_EGREP"; then
41342ab73d9fSmrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
41356600fe5bSmrg  fi
41366600fe5bSmrgelse
41376600fe5bSmrg  ac_cv_path_EGREP=$EGREP
41386600fe5bSmrgfi
41396600fe5bSmrg
41406600fe5bSmrg   fi
41416600fe5bSmrgfi
41426f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
41436600fe5bSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
41446600fe5bSmrg EGREP="$ac_cv_path_EGREP"
41456600fe5bSmrg
41466600fe5bSmrg
41476f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
41486600fe5bSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
41492ab73d9fSmrgif ${ac_cv_header_stdc+:} false; then :
41506600fe5bSmrg  $as_echo_n "(cached) " >&6
41516600fe5bSmrgelse
41526f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41536600fe5bSmrg/* end confdefs.h.  */
41546600fe5bSmrg#include <stdlib.h>
41556600fe5bSmrg#include <stdarg.h>
41566600fe5bSmrg#include <string.h>
41576600fe5bSmrg#include <float.h>
41586600fe5bSmrg
41596600fe5bSmrgint
41606600fe5bSmrgmain ()
41616600fe5bSmrg{
41626600fe5bSmrg
41636600fe5bSmrg  ;
41646600fe5bSmrg  return 0;
41656600fe5bSmrg}
41666600fe5bSmrg_ACEOF
41676f5dd5c2Smrgif ac_fn_c_try_compile "$LINENO"; then :
41686600fe5bSmrg  ac_cv_header_stdc=yes
41696600fe5bSmrgelse
41706f5dd5c2Smrg  ac_cv_header_stdc=no
41716600fe5bSmrgfi
41726600fe5bSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41736600fe5bSmrg
41746600fe5bSmrgif test $ac_cv_header_stdc = yes; then
41756600fe5bSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
41766f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41776600fe5bSmrg/* end confdefs.h.  */
41786600fe5bSmrg#include <string.h>
41796600fe5bSmrg
41806600fe5bSmrg_ACEOF
41816600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41826f5dd5c2Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
41836f5dd5c2Smrg
41846600fe5bSmrgelse
41856600fe5bSmrg  ac_cv_header_stdc=no
41866600fe5bSmrgfi
41876600fe5bSmrgrm -f conftest*
41886600fe5bSmrg
41896600fe5bSmrgfi
41906600fe5bSmrg
41916600fe5bSmrgif test $ac_cv_header_stdc = yes; then
41926600fe5bSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
41936f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41946600fe5bSmrg/* end confdefs.h.  */
41956600fe5bSmrg#include <stdlib.h>
41966600fe5bSmrg
41976600fe5bSmrg_ACEOF
41986600fe5bSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41996f5dd5c2Smrg  $EGREP "free" >/dev/null 2>&1; then :
42006f5dd5c2Smrg
42016600fe5bSmrgelse
42026600fe5bSmrg  ac_cv_header_stdc=no
42036600fe5bSmrgfi
42046600fe5bSmrgrm -f conftest*
42056600fe5bSmrg
42066600fe5bSmrgfi
42076600fe5bSmrg
42086600fe5bSmrgif test $ac_cv_header_stdc = yes; then
42096600fe5bSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42106f5dd5c2Smrg  if test "$cross_compiling" = yes; then :
42116600fe5bSmrg  :
42126600fe5bSmrgelse
42136f5dd5c2Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42146600fe5bSmrg/* end confdefs.h.  */
42156600fe5bSmrg#include <ctype.h>
42166600fe5bSmrg#include <stdlib.h>
42176600fe5bSmrg#if ((' ' & 0x0FF) == 0x020)
42186600fe5bSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
42196600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
42206600fe5bSmrg#else
42216600fe5bSmrg# define ISLOWER(c) \
42226600fe5bSmrg		   (('a' <= (c) && (c) <= 'i') \
42236600fe5bSmrg		     || ('j' <= (c) && (c) <= 'r') \
42246600fe5bSmrg		     || ('s' <= (c) && (c) <= 'z'))
42256600fe5bSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
42266600fe5bSmrg#endif
42276600fe5bSmrg
42286600fe5bSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
42296600fe5bSmrgint
42306600fe5bSmrgmain ()
42316600fe5bSmrg{
42326600fe5bSmrg  int i;
42336600fe5bSmrg  for (i = 0; i < 256; i++)
42346600fe5bSmrg    if (XOR (islower (i), ISLOWER (i))
42356600fe5bSmrg	|| toupper (i) != TOUPPER (i))
42366600fe5bSmrg      return 2;
42376600fe5bSmrg  return 0;
42386600fe5bSmrg}
42396600fe5bSmrg_ACEOF
42406f5dd5c2Smrgif ac_fn_c_try_run "$LINENO"; then :
42416600fe5bSmrg
42426f5dd5c2Smrgelse
42436f5dd5c2Smrg  ac_cv_header_stdc=no
42446600fe5bSmrgfi
42456f5dd5c2Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42466f5dd5c2Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
42476600fe5bSmrgfi
42486600fe5bSmrg
42496600fe5bSmrgfi
42506600fe5bSmrgfi
42516f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
42526600fe5bSmrg$as_echo "$ac_cv_header_stdc" >&6; }
42536600fe5bSmrgif test $ac_cv_header_stdc = yes; then
42546600fe5bSmrg
42556f5dd5c2Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
42566600fe5bSmrg
42576600fe5bSmrgfi
42586600fe5bSmrg
42596600fe5bSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
42606600fe5bSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
42616600fe5bSmrg		  inttypes.h stdint.h unistd.h
42626f5dd5c2Smrgdo :
42636f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42646f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
42656f5dd5c2Smrg"
42662ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42676600fe5bSmrg  cat >>confdefs.h <<_ACEOF
42686600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42696600fe5bSmrg_ACEOF
42706600fe5bSmrg
42716600fe5bSmrgfi
42726600fe5bSmrg
42736600fe5bSmrgdone
42746600fe5bSmrg
42756600fe5bSmrg
42766f5dd5c2Smrg
42776f5dd5c2Smrg
4278ff6cf368Smrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4279ff6cf368Smrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
4280ff6cf368Smrg  CLANGCC="yes"
4281ff6cf368Smrgelse
4282ff6cf368Smrg  CLANGCC="no"
4283ff6cf368Smrgfi
4284ff6cf368Smrg
4285ff6cf368Smrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4286ff6cf368Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4287ff6cf368Smrg  INTELCC="yes"
4288ff6cf368Smrgelse
4289ff6cf368Smrg  INTELCC="no"
4290ff6cf368Smrgfi
4291ff6cf368Smrg
4292ff6cf368Smrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4293ff6cf368Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4294ff6cf368Smrg  SUNCC="yes"
4295ff6cf368Smrgelse
4296ff6cf368Smrg  SUNCC="no"
4297ff6cf368Smrgfi
4298ff6cf368Smrg
4299ff6cf368Smrg
4300ff6cf368Smrg
4301ff6cf368Smrg
43026f5dd5c2Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43036f5dd5c2Smrg	if test -n "$ac_tool_prefix"; then
43046f5dd5c2Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43056f5dd5c2Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43066f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43076f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
43082ab73d9fSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
43096600fe5bSmrg  $as_echo_n "(cached) " >&6
43106600fe5bSmrgelse
43116f5dd5c2Smrg  case $PKG_CONFIG in
43126f5dd5c2Smrg  [\\/]* | ?:[\\/]*)
43136f5dd5c2Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43146f5dd5c2Smrg  ;;
43156f5dd5c2Smrg  *)
43166f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43176f5dd5c2Smrgfor as_dir in $PATH
43186600fe5bSmrgdo
43196f5dd5c2Smrg  IFS=$as_save_IFS
43206f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
43216f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43226f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43236f5dd5c2Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43246f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43256f5dd5c2Smrg    break 2
43266f5dd5c2Smrg  fi
43276f5dd5c2Smrgdone
43286f5dd5c2Smrg  done
43296f5dd5c2SmrgIFS=$as_save_IFS
43306f5dd5c2Smrg
43316f5dd5c2Smrg  ;;
43326600fe5bSmrgesac
43336f5dd5c2Smrgfi
43346f5dd5c2SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
43356f5dd5c2Smrgif test -n "$PKG_CONFIG"; then
43366f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
43376f5dd5c2Smrg$as_echo "$PKG_CONFIG" >&6; }
43386600fe5bSmrgelse
43396f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43406f5dd5c2Smrg$as_echo "no" >&6; }
43416600fe5bSmrgfi
43426600fe5bSmrg
43436600fe5bSmrg
43446600fe5bSmrgfi
43456f5dd5c2Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
43466f5dd5c2Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
43476f5dd5c2Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
43486f5dd5c2Smrgset dummy pkg-config; ac_word=$2
43496f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43506f5dd5c2Smrg$as_echo_n "checking for $ac_word... " >&6; }
43512ab73d9fSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
43526f5dd5c2Smrg  $as_echo_n "(cached) " >&6
43536f5dd5c2Smrgelse
43546f5dd5c2Smrg  case $ac_pt_PKG_CONFIG in
43556f5dd5c2Smrg  [\\/]* | ?:[\\/]*)
43566f5dd5c2Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
43576f5dd5c2Smrg  ;;
43586600fe5bSmrg  *)
43596f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43606f5dd5c2Smrgfor as_dir in $PATH
43616f5dd5c2Smrgdo
43626f5dd5c2Smrg  IFS=$as_save_IFS
43636f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
43646f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
43656f5dd5c2Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43666f5dd5c2Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43676f5dd5c2Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43686f5dd5c2Smrg    break 2
43696f5dd5c2Smrg  fi
43706f5dd5c2Smrgdone
43716f5dd5c2Smrg  done
43726f5dd5c2SmrgIFS=$as_save_IFS
43736f5dd5c2Smrg
43746f5dd5c2Smrg  ;;
43756600fe5bSmrgesac
43766f5dd5c2Smrgfi
43776f5dd5c2Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
43786f5dd5c2Smrgif test -n "$ac_pt_PKG_CONFIG"; then
43796f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
43806f5dd5c2Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
43816f5dd5c2Smrgelse
43826f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43836f5dd5c2Smrg$as_echo "no" >&6; }
43846f5dd5c2Smrgfi
43856600fe5bSmrg
43866f5dd5c2Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
43876f5dd5c2Smrg    PKG_CONFIG=""
43886f5dd5c2Smrg  else
43896f5dd5c2Smrg    case $cross_compiling:$ac_tool_warned in
43906f5dd5c2Smrgyes:)
43916f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43926f5dd5c2Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43936f5dd5c2Smrgac_tool_warned=yes ;;
43946f5dd5c2Smrgesac
43956f5dd5c2Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
43966f5dd5c2Smrg  fi
43976f5dd5c2Smrgelse
43986f5dd5c2Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
43996f5dd5c2Smrgfi
44006600fe5bSmrg
44016f5dd5c2Smrgfi
44026f5dd5c2Smrgif test -n "$PKG_CONFIG"; then
44036f5dd5c2Smrg	_pkg_min_version=0.9.0
44046f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
44056f5dd5c2Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
44066f5dd5c2Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44076f5dd5c2Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44086f5dd5c2Smrg$as_echo "yes" >&6; }
44096f5dd5c2Smrg	else
44106f5dd5c2Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44116f5dd5c2Smrg$as_echo "no" >&6; }
44126f5dd5c2Smrg		PKG_CONFIG=""
44136f5dd5c2Smrg	fi
44146600fe5bSmrg
44156f5dd5c2Smrgfi
44166600fe5bSmrg# Make sure we can run config.sub.
44176600fe5bSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
44182ab73d9fSmrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
44196600fe5bSmrg
44206f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
44216600fe5bSmrg$as_echo_n "checking build system type... " >&6; }
44222ab73d9fSmrgif ${ac_cv_build+:} false; then :
44236600fe5bSmrg  $as_echo_n "(cached) " >&6
44246600fe5bSmrgelse
44256600fe5bSmrg  ac_build_alias=$build_alias
44266600fe5bSmrgtest "x$ac_build_alias" = x &&
44276600fe5bSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
44286600fe5bSmrgtest "x$ac_build_alias" = x &&
44292ab73d9fSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
44306600fe5bSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
44312ab73d9fSmrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
44326600fe5bSmrg
44336600fe5bSmrgfi
44346f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
44356600fe5bSmrg$as_echo "$ac_cv_build" >&6; }
44366600fe5bSmrgcase $ac_cv_build in
44376600fe5bSmrg*-*-*) ;;
44382ab73d9fSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
44396600fe5bSmrgesac
44406600fe5bSmrgbuild=$ac_cv_build
44416600fe5bSmrgac_save_IFS=$IFS; IFS='-'
44426600fe5bSmrgset x $ac_cv_build
44436600fe5bSmrgshift
44446600fe5bSmrgbuild_cpu=$1
44456600fe5bSmrgbuild_vendor=$2
44466600fe5bSmrgshift; shift
44476600fe5bSmrg# Remember, the first character of IFS is used to create $*,
44486600fe5bSmrg# except with old shells:
44496600fe5bSmrgbuild_os=$*
44506600fe5bSmrgIFS=$ac_save_IFS
44516600fe5bSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
44526600fe5bSmrg
44536600fe5bSmrg
44546f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
44556600fe5bSmrg$as_echo_n "checking host system type... " >&6; }
44562ab73d9fSmrgif ${ac_cv_host+:} false; then :
44576600fe5bSmrg  $as_echo_n "(cached) " >&6
44586600fe5bSmrgelse
44596600fe5bSmrg  if test "x$host_alias" = x; then
44606600fe5bSmrg  ac_cv_host=$ac_cv_build
44616600fe5bSmrgelse
44626600fe5bSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
44632ab73d9fSmrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
44646600fe5bSmrgfi
44656600fe5bSmrg
44666600fe5bSmrgfi
44676f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
44686600fe5bSmrg$as_echo "$ac_cv_host" >&6; }
44696600fe5bSmrgcase $ac_cv_host in
44706600fe5bSmrg*-*-*) ;;
44712ab73d9fSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
44726600fe5bSmrgesac
44736600fe5bSmrghost=$ac_cv_host
44746600fe5bSmrgac_save_IFS=$IFS; IFS='-'
44756600fe5bSmrgset x $ac_cv_host
44766600fe5bSmrgshift
44776600fe5bSmrghost_cpu=$1
44786600fe5bSmrghost_vendor=$2
44796600fe5bSmrgshift; shift
44806600fe5bSmrg# Remember, the first character of IFS is used to create $*,
44816600fe5bSmrg# except with old shells:
44826600fe5bSmrghost_os=$*
44836600fe5bSmrgIFS=$ac_save_IFS
44846600fe5bSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
44856600fe5bSmrg
44866600fe5bSmrg
44876f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
44886f5dd5c2Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
44892ab73d9fSmrgif ${ac_cv_path_SED+:} false; then :
44906600fe5bSmrg  $as_echo_n "(cached) " >&6
44916600fe5bSmrgelse
44926f5dd5c2Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
44936f5dd5c2Smrg     for ac_i in 1 2 3 4 5 6 7; do
44946f5dd5c2Smrg       ac_script="$ac_script$as_nl$ac_script"
44956f5dd5c2Smrg     done
44966f5dd5c2Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
44976f5dd5c2Smrg     { ac_script=; unset ac_script;}
44986f5dd5c2Smrg     if test -z "$SED"; then
44996f5dd5c2Smrg  ac_path_SED_found=false
45006f5dd5c2Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
45016f5dd5c2Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45026f5dd5c2Smrgfor as_dir in $PATH
45036f5dd5c2Smrgdo
45046f5dd5c2Smrg  IFS=$as_save_IFS
45056f5dd5c2Smrg  test -z "$as_dir" && as_dir=.
45066f5dd5c2Smrg    for ac_prog in sed gsed; do
45076f5dd5c2Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
45086f5dd5c2Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
45096f5dd5c2Smrg      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
45106f5dd5c2Smrg# Check for GNU ac_path_SED and select it if it is found.
45116f5dd5c2Smrg  # Check for GNU $ac_path_SED
45126f5dd5c2Smrgcase `"$ac_path_SED" --version 2>&1` in
45136f5dd5c2Smrg*GNU*)
45146f5dd5c2Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
45156f5dd5c2Smrg*)
45166f5dd5c2Smrg  ac_count=0
45176f5dd5c2Smrg  $as_echo_n 0123456789 >"conftest.in"
45186f5dd5c2Smrg  while :
45196f5dd5c2Smrg  do
45206f5dd5c2Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
45216f5dd5c2Smrg    mv "conftest.tmp" "conftest.in"
45226f5dd5c2Smrg    cp "conftest.in" "conftest.nl"
45236f5dd5c2Smrg    $as_echo '' >> "conftest.nl"
45246f5dd5c2Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
45256f5dd5c2Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
45266f5dd5c2Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
45276f5dd5c2Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
45286f5dd5c2Smrg      # Best one so far, save it but keep looking for a better one
45296f5dd5c2Smrg      ac_cv_path_SED="$ac_path_SED"
45306f5dd5c2Smrg      ac_path_SED_max=$ac_count
45316f5dd5c2Smrg    fi
45326f5dd5c2Smrg    # 10*(2^10) chars as input seems more than enough
45336f5dd5c2Smrg    test $ac_count -gt 10 && break
45346f5dd5c2Smrg  done
45356f5dd5c2Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
45366600fe5bSmrgesac
45376600fe5bSmrg
45386f5dd5c2Smrg      $ac_path_SED_found && break 3
45396f5dd5c2Smrg    done
45406f5dd5c2Smrg  done
45416f5dd5c2Smrg  done
45426f5dd5c2SmrgIFS=$as_save_IFS
45436f5dd5c2Smrg  if test -z "$ac_cv_path_SED"; then
45442ab73d9fSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
45456f5dd5c2Smrg  fi
45466f5dd5c2Smrgelse
45476f5dd5c2Smrg  ac_cv_path_SED=$SED
45486600fe5bSmrgfi
45496600fe5bSmrg
45506600fe5bSmrgfi
45516f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
45526f5dd5c2Smrg$as_echo "$ac_cv_path_SED" >&6; }
45536f5dd5c2Smrg SED="$ac_cv_path_SED"
45546f5dd5c2Smrg  rm -f conftest.sed
45556f5dd5c2Smrg
45566f5dd5c2Smrg
45576f5dd5c2Smrg
45586f5dd5c2Smrg
45596f5dd5c2Smrg
4560ff6cf368Smrg
45616f5dd5c2Smrgif  test "x$GCC" = xyes ; then
45626f5dd5c2Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
45636f5dd5c2Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
45646f5dd5c2Smrg-Wbad-function-cast -Wformat=2"
45656f5dd5c2Smrg    case `$CC -dumpversion` in
45666f5dd5c2Smrg    3.4.* | 4.*)
45676f5dd5c2Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
45686f5dd5c2Smrg	;;
45696f5dd5c2Smrg    esac
45706f5dd5c2Smrgelse
45716600fe5bSmrg    if test "x$SUNCC" = "xyes"; then
45726600fe5bSmrg	CWARNFLAGS="-v"
45736600fe5bSmrg    fi
45746600fe5bSmrgfi
45756600fe5bSmrg
45766600fe5bSmrg
45776600fe5bSmrg
45786f5dd5c2Smrg# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
45796600fe5bSmrg
45806600fe5bSmrg
45816600fe5bSmrg
4582ff6cf368Smrg
45836600fe5bSmrg# Check whether --enable-strict-compilation was given.
45846f5dd5c2Smrgif test "${enable_strict_compilation+set}" = set; then :
45856600fe5bSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
45866600fe5bSmrgelse
45876600fe5bSmrg  STRICT_COMPILE=no
45886600fe5bSmrgfi
45896600fe5bSmrg
4590ff6cf368Smrgif test "x$GCC" = xyes ; then
4591ff6cf368Smrg    STRICT_CFLAGS="-pedantic -Werror"
4592ff6cf368Smrg    # Add -Werror=attributes if supported (gcc 4.2 & later)
4593ff6cf368Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
4594ff6cf368Smrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
4595ff6cf368Smrg    save_CFLAGS="$CFLAGS"
4596ff6cf368Smrg    CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes"
4597ff6cf368Smrg    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598ff6cf368Smrg/* end confdefs.h.  */
4599ff6cf368Smrgreturn 0;
4600ff6cf368Smrg_ACEOF
4601ff6cf368Smrgif ac_fn_c_try_compile "$LINENO"; then :
4602ff6cf368Smrg  STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
4603ff6cf368Smrg		       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4604ff6cf368Smrg$as_echo "yes" >&6; }
46056600fe5bSmrgelse
4606ff6cf368Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607ff6cf368Smrg$as_echo "no" >&6; }
46086600fe5bSmrgfi
4609ff6cf368Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610ff6cf368Smrg    CFLAGS="$save_CFLAGS"
4611ff6cf368Smrgelif test "x$SUNCC" = "xyes"; then
4612ff6cf368Smrg    STRICT_CFLAGS="-errwarn"
4613ff6cf368Smrgelif test "x$INTELCC" = "xyes"; then
4614ff6cf368Smrg    STRICT_CFLAGS="-Werror"
46156600fe5bSmrgfi
4616ff6cf368Smrgif test "x$STRICT_COMPILE" = "xyes"; then
4617ff6cf368Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
46186600fe5bSmrgfi
4619ff6cf368Smrg
46206600fe5bSmrg
46216600fe5bSmrg
46226600fe5bSmrg
46236600fe5bSmrg
46246600fe5bSmrgcat >>confdefs.h <<_ACEOF
46256600fe5bSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
46266600fe5bSmrg_ACEOF
46276600fe5bSmrg
46286600fe5bSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
46296600fe5bSmrg	if test "x$PVM" = "x"; then
46306600fe5bSmrg		PVM="0"
46316600fe5bSmrg	fi
46326600fe5bSmrg
46336600fe5bSmrgcat >>confdefs.h <<_ACEOF
46346600fe5bSmrg#define PACKAGE_VERSION_MINOR $PVM
46356600fe5bSmrg_ACEOF
46366600fe5bSmrg
46376600fe5bSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
46386600fe5bSmrg	if test "x$PVP" = "x"; then
46396600fe5bSmrg		PVP="0"
46406600fe5bSmrg	fi
46416600fe5bSmrg
46426600fe5bSmrgcat >>confdefs.h <<_ACEOF
46436600fe5bSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
46446600fe5bSmrg_ACEOF
46456600fe5bSmrg
46466600fe5bSmrg
46476600fe5bSmrg
46486f5dd5c2SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
46496f5dd5c2Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
46506f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
46516600fe5bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
46526600fe5bSmrg
46536f5dd5c2Smrg
46546f5dd5c2Smrg
46556f5dd5c2Smrg
46566f5dd5c2Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
46576f5dd5c2SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
46586f5dd5c2Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
46596f5dd5c2Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
46606f5dd5c2Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
46616f5dd5c2Smrg
46626600fe5bSmrg
46636600fe5bSmrg
46646600fe5bSmrg
46656600fe5bSmrg
46666600fe5bSmrg
46676600fe5bSmrgif test x$APP_MAN_SUFFIX = x    ; then
46686600fe5bSmrg    APP_MAN_SUFFIX=1
46696600fe5bSmrgfi
46706600fe5bSmrgif test x$APP_MAN_DIR = x    ; then
46716600fe5bSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
46726600fe5bSmrgfi
46736600fe5bSmrg
46746600fe5bSmrgif test x$LIB_MAN_SUFFIX = x    ; then
46756600fe5bSmrg    LIB_MAN_SUFFIX=3
46766600fe5bSmrgfi
46776600fe5bSmrgif test x$LIB_MAN_DIR = x    ; then
46786600fe5bSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
46796600fe5bSmrgfi
46806600fe5bSmrg
46816600fe5bSmrgif test x$FILE_MAN_SUFFIX = x    ; then
46826600fe5bSmrg    case $host_os in
46836600fe5bSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
46846600fe5bSmrg	*)		FILE_MAN_SUFFIX=5  ;;
46856600fe5bSmrg    esac
46866600fe5bSmrgfi
46876600fe5bSmrgif test x$FILE_MAN_DIR = x    ; then
46886600fe5bSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
46896600fe5bSmrgfi
46906600fe5bSmrg
46916600fe5bSmrgif test x$MISC_MAN_SUFFIX = x    ; then
46926600fe5bSmrg    case $host_os in
46936600fe5bSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
46946600fe5bSmrg	*)		MISC_MAN_SUFFIX=7  ;;
46956600fe5bSmrg    esac
46966600fe5bSmrgfi
46976600fe5bSmrgif test x$MISC_MAN_DIR = x    ; then
46986600fe5bSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
46996600fe5bSmrgfi
47006600fe5bSmrg
47016600fe5bSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
47026600fe5bSmrg    case $host_os in
47036600fe5bSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
47046600fe5bSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
47056600fe5bSmrg    esac
47066600fe5bSmrgfi
47076600fe5bSmrgif test x$DRIVER_MAN_DIR = x    ; then
47086600fe5bSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
47096600fe5bSmrgfi
47106600fe5bSmrg
47116600fe5bSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
47126600fe5bSmrg    case $host_os in
47136600fe5bSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
47146600fe5bSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
47156600fe5bSmrg    esac
47166600fe5bSmrgfi
47176600fe5bSmrgif test x$ADMIN_MAN_DIR = x    ; then
47186600fe5bSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
47196600fe5bSmrgfi
47206600fe5bSmrg
47216600fe5bSmrg
47226600fe5bSmrg
47236600fe5bSmrg
47246600fe5bSmrg
47256600fe5bSmrg
47266600fe5bSmrg
47276600fe5bSmrg
47286600fe5bSmrg
47296600fe5bSmrg
47306600fe5bSmrg
47316600fe5bSmrg
47326600fe5bSmrg
47336600fe5bSmrg
47346600fe5bSmrg
47356f5dd5c2SmrgXORG_MAN_PAGE="X Version 11"
47366600fe5bSmrg
47376f5dd5c2SmrgMAN_SUBSTS="\
47386f5dd5c2Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
47396f5dd5c2Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
47406f5dd5c2Smrg	-e 's|__xservername__|Xorg|g' \
47416f5dd5c2Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
47426f5dd5c2Smrg	-e 's|__projectroot__|\$(prefix)|g' \
47432ab73d9fSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
47446f5dd5c2Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
47456f5dd5c2Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
47466f5dd5c2Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
47476f5dd5c2Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
47486f5dd5c2Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
47496f5dd5c2Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
47506600fe5bSmrg
4751a0195d5fSmrg
4752a0195d5fSmrg
47536f5dd5c2Smrg# Check whether --enable-silent-rules was given.
47546f5dd5c2Smrgif test "${enable_silent_rules+set}" = set; then :
47556f5dd5c2Smrg  enableval=$enable_silent_rules;
4756a0195d5fSmrgfi
4757a0195d5fSmrg
47586f5dd5c2Smrgcase $enable_silent_rules in
47596f5dd5c2Smrgyes) AM_DEFAULT_VERBOSITY=0;;
47606f5dd5c2Smrgno)  AM_DEFAULT_VERBOSITY=1;;
47616f5dd5c2Smrg*)   AM_DEFAULT_VERBOSITY=0;;
47626f5dd5c2Smrgesac
47636f5dd5c2SmrgAM_BACKSLASH='\'
4764a0195d5fSmrg
4765a0195d5fSmrg
4766a0195d5fSmrg
47672ab73d9fSmrg# Checks for system functions
47682ab73d9fSmrgfor ac_func in usleep
47692ab73d9fSmrgdo :
47702ab73d9fSmrg  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
47712ab73d9fSmrgif test "x$ac_cv_func_usleep" = xyes; then :
47722ab73d9fSmrg  cat >>confdefs.h <<_ACEOF
47732ab73d9fSmrg#define HAVE_USLEEP 1
47742ab73d9fSmrg_ACEOF
4775a0195d5fSmrg
47762ab73d9fSmrgfi
4777a0195d5fSmrgdone
4778a0195d5fSmrg
47792ab73d9fSmrg
47802ab73d9fSmrg# Checks for pkg-config packages
47812ab73d9fSmrg
47822ab73d9fSmrgpkg_failed=no
47832ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
47842ab73d9fSmrg$as_echo_n "checking for XSET... " >&6; }
47852ab73d9fSmrg
47862ab73d9fSmrgif test -n "$XSET_CFLAGS"; then
47872ab73d9fSmrg    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
47882ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
47892ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
4790ff6cf368Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
4791ff6cf368Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
47922ab73d9fSmrg  ac_status=$?
47932ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47942ab73d9fSmrg  test $ac_status = 0; }; then
4795ff6cf368Smrg  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
47962ab73d9fSmrgelse
47972ab73d9fSmrg  pkg_failed=yes
4798a0195d5fSmrgfi
47992ab73d9fSmrg else
48002ab73d9fSmrg    pkg_failed=untried
48016f5dd5c2Smrgfi
48022ab73d9fSmrgif test -n "$XSET_LIBS"; then
48032ab73d9fSmrg    pkg_cv_XSET_LIBS="$XSET_LIBS"
48042ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
48052ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
4806ff6cf368Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
4807ff6cf368Smrg  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
48082ab73d9fSmrg  ac_status=$?
48092ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48102ab73d9fSmrg  test $ac_status = 0; }; then
4811ff6cf368Smrg  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
4812a0195d5fSmrgelse
48132ab73d9fSmrg  pkg_failed=yes
48142ab73d9fSmrgfi
48152ab73d9fSmrg else
48162ab73d9fSmrg    pkg_failed=untried
4817a0195d5fSmrgfi
4818a0195d5fSmrg
4819a0195d5fSmrg
48206f5dd5c2Smrg
48212ab73d9fSmrgif test $pkg_failed = yes; then
48222ab73d9fSmrg
48232ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48242ab73d9fSmrg        _pkg_short_errors_supported=yes
48256f5dd5c2Smrgelse
48262ab73d9fSmrg        _pkg_short_errors_supported=no
48276f5dd5c2Smrgfi
48282ab73d9fSmrg        if test $_pkg_short_errors_supported = yes; then
4829ff6cf368Smrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
48302ab73d9fSmrg        else
4831ff6cf368Smrg	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
48322ab73d9fSmrg        fi
48332ab73d9fSmrg	# Put the nasty error message in config.log where it belongs
48342ab73d9fSmrg	echo "$XSET_PKG_ERRORS" >&5
48356f5dd5c2Smrg
4836ff6cf368Smrg	as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
48372ab73d9fSmrg
48382ab73d9fSmrg$XSET_PKG_ERRORS
48392ab73d9fSmrg
48402ab73d9fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
48412ab73d9fSmrginstalled software in a non-standard prefix.
48422ab73d9fSmrg
48432ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
48442ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
48452ab73d9fSmrgSee the pkg-config man page for more details.
48462ab73d9fSmrg" "$LINENO" 5
48472ab73d9fSmrgelif test $pkg_failed = untried; then
48482ab73d9fSmrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48492ab73d9fSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48502ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
48512ab73d9fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
48522ab73d9fSmrgpath to pkg-config.
48532ab73d9fSmrg
48542ab73d9fSmrgAlternatively, you may set the environment variables XSET_CFLAGS
48552ab73d9fSmrgand XSET_LIBS to avoid the need to call pkg-config.
48562ab73d9fSmrgSee the pkg-config man page for more details.
48572ab73d9fSmrg
48582ab73d9fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
48592ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
48606f5dd5c2Smrgelse
48612ab73d9fSmrg	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
48622ab73d9fSmrg	XSET_LIBS=$pkg_cv_XSET_LIBS
48632ab73d9fSmrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48642ab73d9fSmrg$as_echo "yes" >&6; }
48652ab73d9fSmrg	:
48666f5dd5c2Smrgfi
48676f5dd5c2Smrg
48682ab73d9fSmrg# This is used below to allow <X11/Xlib.h> to be found
48692ab73d9fSmrg
48702ab73d9fSmrgpkg_failed=no
48712ab73d9fSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
48722ab73d9fSmrg$as_echo_n "checking for SET_X11... " >&6; }
48736f5dd5c2Smrg
48742ab73d9fSmrgif test -n "$SET_X11_CFLAGS"; then
48752ab73d9fSmrg    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
48762ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
48772ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
48782ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
48792ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
48802ab73d9fSmrg  ac_status=$?
48812ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48822ab73d9fSmrg  test $ac_status = 0; }; then
48832ab73d9fSmrg  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
48842ab73d9fSmrgelse
48852ab73d9fSmrg  pkg_failed=yes
48866f5dd5c2Smrgfi
48872ab73d9fSmrg else
48882ab73d9fSmrg    pkg_failed=untried
48896f5dd5c2Smrgfi
48902ab73d9fSmrgif test -n "$SET_X11_LIBS"; then
48912ab73d9fSmrg    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
48922ab73d9fSmrg elif test -n "$PKG_CONFIG"; then
48932ab73d9fSmrg    if test -n "$PKG_CONFIG" && \
48942ab73d9fSmrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
48952ab73d9fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
48962ab73d9fSmrg  ac_status=$?
48972ab73d9fSmrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48982ab73d9fSmrg  test $ac_status = 0; }; then
48992ab73d9fSmrg  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
49006f5dd5c2Smrgelse
49012ab73d9fSmrg  pkg_failed=yes
49022ab73d9fSmrgfi
49032ab73d9fSmrg else
49042ab73d9fSmrg    pkg_failed=untried
49056f5dd5c2Smrgfi
49066f5dd5c2Smrg
49076f5dd5c2Smrg
49082ab73d9fSmrg
49092ab73d9fSmrgif test $pkg_failed = yes; then
49102ab73d9fSmrg
49112ab73d9fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49122ab73d9fSmrg        _pkg_short_errors_supported=yes
49132ab73d9fSmrgelse
49142ab73d9fSmrg        _pkg_short_errors_supported=no
4915a0195d5fSmrgfi
4916a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
4917a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
4918a0195d5fSmrg        else
4919a0195d5fSmrg	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
4920a0195d5fSmrg        fi
4921a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
4922a0195d5fSmrg	echo "$SET_X11_PKG_ERRORS" >&5
4923a0195d5fSmrg
49242ab73d9fSmrg	as_fn_error $? "Package requirements (x11) were not met:
4925a0195d5fSmrg
4926a0195d5fSmrg$SET_X11_PKG_ERRORS
4927a0195d5fSmrg
4928a0195d5fSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
4929a0195d5fSmrginstalled software in a non-standard prefix.
4930a0195d5fSmrg
4931a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
4932a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
4933a0195d5fSmrgSee the pkg-config man page for more details.
49346f5dd5c2Smrg" "$LINENO" 5
4935a0195d5fSmrgelif test $pkg_failed = untried; then
49366f5dd5c2Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49376600fe5bSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49382ab73d9fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
4939a0195d5fSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
4940a0195d5fSmrgpath to pkg-config.
4941a0195d5fSmrg
4942a0195d5fSmrgAlternatively, you may set the environment variables SET_X11_CFLAGS
4943a0195d5fSmrgand SET_X11_LIBS to avoid the need to call pkg-config.
4944a0195d5fSmrgSee the pkg-config man page for more details.
4945a0195d5fSmrg
4946a0195d5fSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
49472ab73d9fSmrgSee \`config.log' for more details" "$LINENO" 5; }
4948a0195d5fSmrgelse
4949a0195d5fSmrg	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
4950a0195d5fSmrg	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
49516f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49526600fe5bSmrg$as_echo "yes" >&6; }
4953a0195d5fSmrg	:
4954a0195d5fSmrgfi
4955a0195d5fSmrg
4956a0195d5fSmrg
4957a0195d5fSmrgpkg_failed=no
49586f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
49596600fe5bSmrg$as_echo_n "checking for SET_XEXT... " >&6; }
4960a0195d5fSmrg
4961a0195d5fSmrgif test -n "$SET_XEXT_CFLAGS"; then
4962a0195d5fSmrg    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
4963a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
4964a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
49656f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
4966a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
4967a0195d5fSmrg  ac_status=$?
49686f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49696f5dd5c2Smrg  test $ac_status = 0; }; then
4970a0195d5fSmrg  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
4971a0195d5fSmrgelse
4972a0195d5fSmrg  pkg_failed=yes
4973a0195d5fSmrgfi
4974a0195d5fSmrg else
4975a0195d5fSmrg    pkg_failed=untried
4976a0195d5fSmrgfi
4977a0195d5fSmrgif test -n "$SET_XEXT_LIBS"; then
4978a0195d5fSmrg    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
4979a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
4980a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
49816f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
4982a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
4983a0195d5fSmrg  ac_status=$?
49846f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49856f5dd5c2Smrg  test $ac_status = 0; }; then
4986a0195d5fSmrg  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
4987a0195d5fSmrgelse
4988a0195d5fSmrg  pkg_failed=yes
4989a0195d5fSmrgfi
4990a0195d5fSmrg else
4991a0195d5fSmrg    pkg_failed=untried
4992a0195d5fSmrgfi
4993a0195d5fSmrg
4994a0195d5fSmrg
4995a0195d5fSmrg
4996a0195d5fSmrgif test $pkg_failed = yes; then
4997a0195d5fSmrg
4998a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4999a0195d5fSmrg        _pkg_short_errors_supported=yes
5000a0195d5fSmrgelse
5001a0195d5fSmrg        _pkg_short_errors_supported=no
5002a0195d5fSmrgfi
5003a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5004a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
5005a0195d5fSmrg        else
5006a0195d5fSmrg	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
5007a0195d5fSmrg        fi
5008a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5009a0195d5fSmrg	echo "$SET_XEXT_PKG_ERRORS" >&5
5010a0195d5fSmrg
50116f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50126600fe5bSmrg$as_echo "no" >&6; }
5013a0195d5fSmrg                echo "not found"
5014a0195d5fSmrgelif test $pkg_failed = untried; then
5015a0195d5fSmrg	echo "not found"
5016a0195d5fSmrgelse
5017a0195d5fSmrg	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
5018a0195d5fSmrg	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
50196f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50206600fe5bSmrg$as_echo "yes" >&6; }
5021a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
5022a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
50236f5dd5c2Smrg	for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
50246f5dd5c2Smrgdo :
50256f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50266f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
50276f5dd5c2Smrg"
50282ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5029a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
50306600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5031a0195d5fSmrg_ACEOF
5032a0195d5fSmrg
5033a0195d5fSmrgfi
5034a0195d5fSmrg
5035a0195d5fSmrgdone
5036a0195d5fSmrg
5037a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
5038a0195d5fSmrgfi
5039a0195d5fSmrg
5040a0195d5fSmrg
5041a0195d5fSmrgpkg_failed=no
50426f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
50436600fe5bSmrg$as_echo_n "checking for SET_XKB... " >&6; }
5044a0195d5fSmrg
5045a0195d5fSmrgif test -n "$SET_XKB_CFLAGS"; then
5046a0195d5fSmrg    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
5047a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5048a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
50496f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5050a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5051a0195d5fSmrg  ac_status=$?
50526f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50536f5dd5c2Smrg  test $ac_status = 0; }; then
5054a0195d5fSmrg  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5055a0195d5fSmrgelse
5056a0195d5fSmrg  pkg_failed=yes
5057a0195d5fSmrgfi
5058a0195d5fSmrg else
5059a0195d5fSmrg    pkg_failed=untried
5060a0195d5fSmrgfi
5061a0195d5fSmrgif test -n "$SET_XKB_LIBS"; then
5062a0195d5fSmrg    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
5063a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5064a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
50656f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
5066a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5067a0195d5fSmrg  ac_status=$?
50686f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50696f5dd5c2Smrg  test $ac_status = 0; }; then
5070a0195d5fSmrg  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5071a0195d5fSmrgelse
5072a0195d5fSmrg  pkg_failed=yes
5073a0195d5fSmrgfi
5074a0195d5fSmrg else
5075a0195d5fSmrg    pkg_failed=untried
5076a0195d5fSmrgfi
5077a0195d5fSmrg
5078a0195d5fSmrg
5079a0195d5fSmrg
5080a0195d5fSmrgif test $pkg_failed = yes; then
5081a0195d5fSmrg
5082a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5083a0195d5fSmrg        _pkg_short_errors_supported=yes
5084a0195d5fSmrgelse
5085a0195d5fSmrg        _pkg_short_errors_supported=no
5086a0195d5fSmrgfi
5087a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5088a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5089a0195d5fSmrg        else
5090a0195d5fSmrg	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5091a0195d5fSmrg        fi
5092a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5093a0195d5fSmrg	echo "$SET_XKB_PKG_ERRORS" >&5
5094a0195d5fSmrg
50956f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50966600fe5bSmrg$as_echo "no" >&6; }
5097a0195d5fSmrg                echo "not found"
5098a0195d5fSmrgelif test $pkg_failed = untried; then
5099a0195d5fSmrg	echo "not found"
5100a0195d5fSmrgelse
5101a0195d5fSmrg	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
5102a0195d5fSmrg	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
51036f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51046600fe5bSmrg$as_echo "yes" >&6; }
5105a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
5106a0195d5fSmrg	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
51076f5dd5c2Smrg	for ac_header in X11/XKBlib.h
51086f5dd5c2Smrgdo :
51096f5dd5c2Smrg  ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
51106f5dd5c2Smrg"
51112ab73d9fSmrgif test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
5112a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
51136f5dd5c2Smrg#define HAVE_X11_XKBLIB_H 1
5114a0195d5fSmrg_ACEOF
5115a0195d5fSmrg
5116a0195d5fSmrgfi
5117a0195d5fSmrg
5118a0195d5fSmrgdone
5119a0195d5fSmrg
5120a0195d5fSmrg	CPPFLAGS="$SAVE_CPPFLAGS"
5121a0195d5fSmrgfi
5122a0195d5fSmrg
5123a0195d5fSmrg
51246f5dd5c2Smrg# Check whether --with-xf86misc was given.
51256f5dd5c2Smrgif test "${with_xf86misc+set}" = set; then :
51266f5dd5c2Smrg  withval=$with_xf86misc; USE_XF86MISC="$withval"
51276f5dd5c2Smrgelse
51286f5dd5c2Smrg  USE_XF86MISC="yes"
51296f5dd5c2Smrgfi
51306f5dd5c2Smrg
51316f5dd5c2Smrgif test "x$USE_XF86MISC" != "xno" ; then
51326f5dd5c2Smrg
5133a0195d5fSmrgpkg_failed=no
51346f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
51356600fe5bSmrg$as_echo_n "checking for SET_XF86MISC... " >&6; }
5136a0195d5fSmrg
5137a0195d5fSmrgif test -n "$SET_XF86MISC_CFLAGS"; then
5138a0195d5fSmrg    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
5139a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5140a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
51416f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5142a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5143a0195d5fSmrg  ac_status=$?
51446f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51456f5dd5c2Smrg  test $ac_status = 0; }; then
5146a0195d5fSmrg  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
5147a0195d5fSmrgelse
5148a0195d5fSmrg  pkg_failed=yes
5149a0195d5fSmrgfi
5150a0195d5fSmrg else
5151a0195d5fSmrg    pkg_failed=untried
5152a0195d5fSmrgfi
5153a0195d5fSmrgif test -n "$SET_XF86MISC_LIBS"; then
5154a0195d5fSmrg    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
5155a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5156a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
51576f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
5158a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
5159a0195d5fSmrg  ac_status=$?
51606f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
51616f5dd5c2Smrg  test $ac_status = 0; }; then
5162a0195d5fSmrg  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
5163a0195d5fSmrgelse
5164a0195d5fSmrg  pkg_failed=yes
5165a0195d5fSmrgfi
5166a0195d5fSmrg else
5167a0195d5fSmrg    pkg_failed=untried
5168a0195d5fSmrgfi
5169a0195d5fSmrg
5170a0195d5fSmrg
5171a0195d5fSmrg
5172a0195d5fSmrgif test $pkg_failed = yes; then
5173a0195d5fSmrg
5174a0195d5fSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5175a0195d5fSmrg        _pkg_short_errors_supported=yes
5176a0195d5fSmrgelse
5177a0195d5fSmrg        _pkg_short_errors_supported=no
5178a0195d5fSmrgfi
5179a0195d5fSmrg        if test $_pkg_short_errors_supported = yes; then
5180a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1`
5181a0195d5fSmrg        else
5182a0195d5fSmrg	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1`
5183a0195d5fSmrg        fi
5184a0195d5fSmrg	# Put the nasty error message in config.log where it belongs
5185a0195d5fSmrg	echo "$SET_XF86MISC_PKG_ERRORS" >&5
5186a0195d5fSmrg
51876f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51886600fe5bSmrg$as_echo "no" >&6; }
5189a0195d5fSmrg                echo "not found"
5190a0195d5fSmrgelif test $pkg_failed = untried; then
5191a0195d5fSmrg	echo "not found"
5192a0195d5fSmrgelse
5193a0195d5fSmrg	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
5194a0195d5fSmrg	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
51956f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51966600fe5bSmrg$as_echo "yes" >&6; }
5197a0195d5fSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
51986f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
51996f5dd5c2Smrg		for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
52006f5dd5c2Smrgdo :
52016f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52026f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
5203a0195d5fSmrg#include <X11/Xproto.h>
52046f5dd5c2Smrg"
52052ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5206a0195d5fSmrg  cat >>confdefs.h <<_ACEOF
52076600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5208a0195d5fSmrg_ACEOF
5209a0195d5fSmrg
5210a0195d5fSmrgfi
5211a0195d5fSmrg
5212a0195d5fSmrgdone
5213a0195d5fSmrg
52146f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
52156f5dd5c2Smrgfi
52166f5dd5c2Smrgelse
52176f5dd5c2Smrg        echo "without xf86misc"
52186f5dd5c2Smrgfi
52196f5dd5c2Smrg
52206f5dd5c2Smrg
52216f5dd5c2Smrg# Check whether --with-fontcache was given.
52226f5dd5c2Smrgif test "${with_fontcache+set}" = set; then :
52236f5dd5c2Smrg  withval=$with_fontcache; USE_XFONTCACHE="$withval"
52246f5dd5c2Smrgelse
52256f5dd5c2Smrg  USE_XFONTCACHE="yes"
5226a0195d5fSmrgfi
5227a0195d5fSmrg
52286f5dd5c2Smrgif test "x$USE_XFONTCACHE" != "xno" ; then
5229a0195d5fSmrg
5230a0195d5fSmrgpkg_failed=no
52316f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
52326600fe5bSmrg$as_echo_n "checking for SET_FONTCACHE... " >&6; }
5233a0195d5fSmrg
5234a0195d5fSmrgif test -n "$SET_FONTCACHE_CFLAGS"; then
5235a0195d5fSmrg    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
5236a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5237a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
52386f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
5239a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
5240a0195d5fSmrg  ac_status=$?
52416f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52426f5dd5c2Smrg  test $ac_status = 0; }; then
5243a0195d5fSmrg  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
5244a0195d5fSmrgelse
5245a0195d5fSmrg  pkg_failed=yes
5246a0195d5fSmrgfi
5247a0195d5fSmrg else
5248a0195d5fSmrg    pkg_failed=untried
5249a0195d5fSmrgfi
5250a0195d5fSmrgif test -n "$SET_FONTCACHE_LIBS"; then
5251a0195d5fSmrg    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
5252a0195d5fSmrg elif test -n "$PKG_CONFIG"; then
5253a0195d5fSmrg    if test -n "$PKG_CONFIG" && \
52546f5dd5c2Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
5255a0195d5fSmrg  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
5256a0195d5fSmrg  ac_status=$?
52576f5dd5c2Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
52586f5dd5c2Smrg  test $ac_status = 0; }; then
52596f5dd5c2Smrg  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
52606600fe5bSmrgelse
52616600fe5bSmrg  pkg_failed=yes
52626600fe5bSmrgfi
52636600fe5bSmrg else
52646600fe5bSmrg    pkg_failed=untried
52656600fe5bSmrgfi
5266a0195d5fSmrg
5267a0195d5fSmrg
5268a0195d5fSmrg
52696600fe5bSmrgif test $pkg_failed = yes; then
5270a0195d5fSmrg
52716600fe5bSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
52726600fe5bSmrg        _pkg_short_errors_supported=yes
52736600fe5bSmrgelse
52746600fe5bSmrg        _pkg_short_errors_supported=no
52756600fe5bSmrgfi
52766600fe5bSmrg        if test $_pkg_short_errors_supported = yes; then
52776f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfontcache" 2>&1`
52786600fe5bSmrg        else
52796f5dd5c2Smrg	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfontcache" 2>&1`
52806600fe5bSmrg        fi
52816600fe5bSmrg	# Put the nasty error message in config.log where it belongs
52826f5dd5c2Smrg	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
5283a0195d5fSmrg
52846f5dd5c2Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52856600fe5bSmrg$as_echo "no" >&6; }
52866600fe5bSmrg                echo "not found"
52876600fe5bSmrgelif test $pkg_failed = untried; then
52886600fe5bSmrg	echo "not found"
52896600fe5bSmrgelse
52906f5dd5c2Smrg	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
52916f5dd5c2Smrg	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
52926f5dd5c2Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52936600fe5bSmrg$as_echo "yes" >&6; }
52946600fe5bSmrg	SAVE_CPPFLAGS="$CPPFLAGS"
52956f5dd5c2Smrg		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
52966f5dd5c2Smrg		for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
52976f5dd5c2Smrgdo :
52986f5dd5c2Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52996f5dd5c2Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
53006f5dd5c2Smrg"
53012ab73d9fSmrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
53026600fe5bSmrg  cat >>confdefs.h <<_ACEOF
53036600fe5bSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5304a0195d5fSmrg_ACEOF
5305a0195d5fSmrg
53066600fe5bSmrgfi
5307a0195d5fSmrg
53086600fe5bSmrgdone
5309a0195d5fSmrg
53106f5dd5c2Smrg		CPPFLAGS="$SAVE_CPPFLAGS"
53116f5dd5c2Smrgfi
53126f5dd5c2Smrgelse
53136f5dd5c2Smrg	echo "without fontcache"
53146600fe5bSmrgfi
53156600fe5bSmrg
53166f5dd5c2SmrgXSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
53176f5dd5c2SmrgXSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
5318a0195d5fSmrg
5319a0195d5fSmrg
5320ff6cf368Smrgac_config_files="$ac_config_files Makefile man/Makefile"
5321a0195d5fSmrg
5322a0195d5fSmrgcat >confcache <<\_ACEOF
5323a0195d5fSmrg# This file is a shell script that caches the results of configure
5324a0195d5fSmrg# tests run on this system so they can be shared between configure
5325a0195d5fSmrg# scripts and configure runs, see configure's option --config-cache.
5326a0195d5fSmrg# It is not useful on other systems.  If it contains results you don't
5327a0195d5fSmrg# want to keep, you may remove or edit it.
5328a0195d5fSmrg#
5329a0195d5fSmrg# config.status only pays attention to the cache file if you give it
5330a0195d5fSmrg# the --recheck option to rerun configure.
5331a0195d5fSmrg#
5332a0195d5fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5333a0195d5fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5334a0195d5fSmrg# following values.
5335a0195d5fSmrg
5336a0195d5fSmrg_ACEOF
5337a0195d5fSmrg
5338a0195d5fSmrg# The following way of writing the cache mishandles newlines in values,
5339a0195d5fSmrg# but we know of no workaround that is simple, portable, and efficient.
5340a0195d5fSmrg# So, we kill variables containing newlines.
5341a0195d5fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
5342a0195d5fSmrg# and sets the high bit in the cache file unless we assign to the vars.
5343a0195d5fSmrg(
5344a0195d5fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5345a0195d5fSmrg    eval ac_val=\$$ac_var
5346a0195d5fSmrg    case $ac_val in #(
5347a0195d5fSmrg    *${as_nl}*)
5348a0195d5fSmrg      case $ac_var in #(
53496f5dd5c2Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
53506600fe5bSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5351a0195d5fSmrg      esac
5352a0195d5fSmrg      case $ac_var in #(
5353a0195d5fSmrg      _ | IFS | as_nl) ;; #(
53546600fe5bSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
53556f5dd5c2Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
5356a0195d5fSmrg      esac ;;
5357a0195d5fSmrg    esac
5358a0195d5fSmrg  done
5359a0195d5fSmrg
5360a0195d5fSmrg  (set) 2>&1 |
5361a0195d5fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5362a0195d5fSmrg    *${as_nl}ac_space=\ *)
53636f5dd5c2Smrg      # `set' does not quote correctly, so add quotes: double-quote
53646f5dd5c2Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5365a0195d5fSmrg      sed -n \
5366a0195d5fSmrg	"s/'/'\\\\''/g;
5367a0195d5fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5368a0195d5fSmrg      ;; #(
5369a0195d5fSmrg    *)
5370a0195d5fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
5371a0195d5fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5372a0195d5fSmrg      ;;
5373a0195d5fSmrg    esac |
5374a0195d5fSmrg    sort
5375a0195d5fSmrg) |
5376a0195d5fSmrg  sed '
5377a0195d5fSmrg     /^ac_cv_env_/b end
5378a0195d5fSmrg     t clear
5379a0195d5fSmrg     :clear
5380a0195d5fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5381a0195d5fSmrg     t end
5382a0195d5fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5383a0195d5fSmrg     :end' >>confcache
5384a0195d5fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5385a0195d5fSmrg  if test -w "$cache_file"; then
53862ab73d9fSmrg    if test "x$cache_file" != "x/dev/null"; then
53876f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
53886600fe5bSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
53892ab73d9fSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
53902ab73d9fSmrg	cat confcache >"$cache_file"
53912ab73d9fSmrg      else
53922ab73d9fSmrg        case $cache_file in #(
53932ab73d9fSmrg        */* | ?:*)
53942ab73d9fSmrg	  mv -f confcache "$cache_file"$$ &&
53952ab73d9fSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
53962ab73d9fSmrg        *)
53972ab73d9fSmrg	  mv -f confcache "$cache_file" ;;
53982ab73d9fSmrg	esac
53992ab73d9fSmrg      fi
54002ab73d9fSmrg    fi
5401a0195d5fSmrg  else
54026f5dd5c2Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
54036600fe5bSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5404a0195d5fSmrg  fi
5405a0195d5fSmrgfi
5406a0195d5fSmrgrm -f confcache
5407a0195d5fSmrg
5408a0195d5fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5409a0195d5fSmrg# Let make expand exec_prefix.
5410a0195d5fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5411a0195d5fSmrg
5412a0195d5fSmrgDEFS=-DHAVE_CONFIG_H
5413a0195d5fSmrg
5414a0195d5fSmrgac_libobjs=
5415a0195d5fSmrgac_ltlibobjs=
54162ab73d9fSmrgU=
5417a0195d5fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5418a0195d5fSmrg  # 1. Remove the extension, and $U if already installed.
5419a0195d5fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54206600fe5bSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5421a0195d5fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5422a0195d5fSmrg  #    will be set to the directory where LIBOBJS objects are built.
54236f5dd5c2Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
54246f5dd5c2Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5425a0195d5fSmrgdone
5426a0195d5fSmrgLIBOBJS=$ac_libobjs
5427a0195d5fSmrg
5428a0195d5fSmrgLTLIBOBJS=$ac_ltlibobjs
5429a0195d5fSmrg
5430a0195d5fSmrg
54316600fe5bSmrg if test -n "$EXEEXT"; then
54326600fe5bSmrg  am__EXEEXT_TRUE=
54336600fe5bSmrg  am__EXEEXT_FALSE='#'
54346600fe5bSmrgelse
54356600fe5bSmrg  am__EXEEXT_TRUE='#'
54366600fe5bSmrg  am__EXEEXT_FALSE=
54376600fe5bSmrgfi
54386600fe5bSmrg
5439a0195d5fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
54402ab73d9fSmrg  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
54416f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5442a0195d5fSmrgfi
5443a0195d5fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
54442ab73d9fSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
54456f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5446a0195d5fSmrgfi
5447a0195d5fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
54482ab73d9fSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
54496f5dd5c2SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5450a0195d5fSmrgfi
5451a0195d5fSmrg
54522ab73d9fSmrg: "${CONFIG_STATUS=./config.status}"
54536600fe5bSmrgac_write_fail=0
5454a0195d5fSmrgac_clean_files_save=$ac_clean_files
5455a0195d5fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
54566f5dd5c2Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
54576600fe5bSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
54586f5dd5c2Smrgas_write_fail=0
54596f5dd5c2Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5460a0195d5fSmrg#! $SHELL
5461a0195d5fSmrg# Generated by $as_me.
5462a0195d5fSmrg# Run this file to recreate the current configuration.
5463a0195d5fSmrg# Compiler output produced by configure, useful for debugging
5464a0195d5fSmrg# configure, is in config.log if it exists.
5465a0195d5fSmrg
5466a0195d5fSmrgdebug=false
5467a0195d5fSmrgac_cs_recheck=false
5468a0195d5fSmrgac_cs_silent=false
5469a0195d5fSmrg
54706f5dd5c2SmrgSHELL=\${CONFIG_SHELL-$SHELL}
54716f5dd5c2Smrgexport SHELL
54726f5dd5c2Smrg_ASEOF
54736f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
54746f5dd5c2Smrg## -------------------- ##
54756f5dd5c2Smrg## M4sh Initialization. ##
54766f5dd5c2Smrg## -------------------- ##
5477a0195d5fSmrg
5478a0195d5fSmrg# Be more Bourne compatible
5479a0195d5fSmrgDUALCASE=1; export DUALCASE # for MKS sh
54806f5dd5c2Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5481a0195d5fSmrg  emulate sh
5482a0195d5fSmrg  NULLCMD=:
54836600fe5bSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5484a0195d5fSmrg  # is contrary to our usage.  Disable this feature.
5485a0195d5fSmrg  alias -g '${1+"$@"}'='"$@"'
5486a0195d5fSmrg  setopt NO_GLOB_SUBST
5487a0195d5fSmrgelse
54886f5dd5c2Smrg  case `(set -o) 2>/dev/null` in #(
54896f5dd5c2Smrg  *posix*) :
54906f5dd5c2Smrg    set -o posix ;; #(
54916f5dd5c2Smrg  *) :
54926f5dd5c2Smrg     ;;
5493a0195d5fSmrgesac
5494a0195d5fSmrgfi
5495a0195d5fSmrg
5496a0195d5fSmrg
54976600fe5bSmrgas_nl='
54986600fe5bSmrg'
54996600fe5bSmrgexport as_nl
55006600fe5bSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
55016600fe5bSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
55026600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
55036600fe5bSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
55046f5dd5c2Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
55056f5dd5c2Smrg# but without wasting forks for bash or zsh.
55066f5dd5c2Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
55076f5dd5c2Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
55086f5dd5c2Smrg  as_echo='print -r --'
55096f5dd5c2Smrg  as_echo_n='print -rn --'
55106f5dd5c2Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55116600fe5bSmrg  as_echo='printf %s\n'
55126600fe5bSmrg  as_echo_n='printf %s'
55136600fe5bSmrgelse
55146600fe5bSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55156600fe5bSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55166600fe5bSmrg    as_echo_n='/usr/ucb/echo -n'
5517a0195d5fSmrg  else
55186600fe5bSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55196600fe5bSmrg    as_echo_n_body='eval
55206600fe5bSmrg      arg=$1;
55216f5dd5c2Smrg      case $arg in #(
55226600fe5bSmrg      *"$as_nl"*)
55236600fe5bSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
55246600fe5bSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
55256600fe5bSmrg      esac;
55266600fe5bSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
55276600fe5bSmrg    '
55286600fe5bSmrg    export as_echo_n_body
55296600fe5bSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
5530a0195d5fSmrg  fi
55316600fe5bSmrg  export as_echo_body
55326600fe5bSmrg  as_echo='sh -c $as_echo_body as_echo'
55336600fe5bSmrgfi
55346600fe5bSmrg
55356600fe5bSmrg# The user is always right.
55366600fe5bSmrgif test "${PATH_SEPARATOR+set}" != set; then
55376600fe5bSmrg  PATH_SEPARATOR=:
55386600fe5bSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
55396600fe5bSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
55406600fe5bSmrg      PATH_SEPARATOR=';'
55416600fe5bSmrg  }
5542a0195d5fSmrgfi
5543a0195d5fSmrg
5544a0195d5fSmrg
5545a0195d5fSmrg# IFS
5546a0195d5fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
5547a0195d5fSmrg# there to prevent editors from complaining about space-tab.
5548a0195d5fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5549a0195d5fSmrg# splitting by setting IFS to empty value.)
5550a0195d5fSmrgIFS=" ""	$as_nl"
5551a0195d5fSmrg
5552a0195d5fSmrg# Find who we are.  Look in the path if we contain no directory separator.
55532ab73d9fSmrgas_myself=
55546f5dd5c2Smrgcase $0 in #((
5555a0195d5fSmrg  *[\\/]* ) as_myself=$0 ;;
5556a0195d5fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557a0195d5fSmrgfor as_dir in $PATH
5558a0195d5fSmrgdo
5559a0195d5fSmrg  IFS=$as_save_IFS
5560a0195d5fSmrg  test -z "$as_dir" && as_dir=.
55616f5dd5c2Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55626f5dd5c2Smrg  done
5563a0195d5fSmrgIFS=$as_save_IFS
5564a0195d5fSmrg
5565a0195d5fSmrg     ;;
5566a0195d5fSmrgesac
5567a0195d5fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
5568a0195d5fSmrg# in which case we are not to be found in the path.
5569a0195d5fSmrgif test "x$as_myself" = x; then
5570a0195d5fSmrg  as_myself=$0
5571a0195d5fSmrgfi
5572a0195d5fSmrgif test ! -f "$as_myself"; then
55736600fe5bSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
55746f5dd5c2Smrg  exit 1
5575a0195d5fSmrgfi
5576a0195d5fSmrg
55776f5dd5c2Smrg# Unset variables that we do not need and which cause bugs (e.g. in
55786f5dd5c2Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
55796f5dd5c2Smrg# suppresses any "Segmentation fault" message there.  '((' could
55806f5dd5c2Smrg# trigger a bug in pdksh 5.2.14.
55816f5dd5c2Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
55826f5dd5c2Smrgdo eval test x\${$as_var+set} = xset \
55836f5dd5c2Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5584a0195d5fSmrgdone
5585a0195d5fSmrgPS1='$ '
5586a0195d5fSmrgPS2='> '
5587a0195d5fSmrgPS4='+ '
5588a0195d5fSmrg
5589a0195d5fSmrg# NLS nuisances.
55906600fe5bSmrgLC_ALL=C
55916600fe5bSmrgexport LC_ALL
55926600fe5bSmrgLANGUAGE=C
55936600fe5bSmrgexport LANGUAGE
5594a0195d5fSmrg
55956f5dd5c2Smrg# CDPATH.
55966f5dd5c2Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
55976f5dd5c2Smrg
55986f5dd5c2Smrg
55992ab73d9fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
56002ab73d9fSmrg# ----------------------------------------
56016f5dd5c2Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
56026f5dd5c2Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
56032ab73d9fSmrg# script with STATUS, using 1 if that was 0.
56046f5dd5c2Smrgas_fn_error ()
56056f5dd5c2Smrg{
56062ab73d9fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
56072ab73d9fSmrg  if test "$4"; then
56082ab73d9fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
56092ab73d9fSmrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
56106f5dd5c2Smrg  fi
56112ab73d9fSmrg  $as_echo "$as_me: error: $2" >&2
56126f5dd5c2Smrg  as_fn_exit $as_status
56136f5dd5c2Smrg} # as_fn_error
56146f5dd5c2Smrg
56156f5dd5c2Smrg
56166f5dd5c2Smrg# as_fn_set_status STATUS
56176f5dd5c2Smrg# -----------------------
56186f5dd5c2Smrg# Set $? to STATUS, without forking.
56196f5dd5c2Smrgas_fn_set_status ()
56206f5dd5c2Smrg{
56216f5dd5c2Smrg  return $1
56226f5dd5c2Smrg} # as_fn_set_status
56236f5dd5c2Smrg
56246f5dd5c2Smrg# as_fn_exit STATUS
56256f5dd5c2Smrg# -----------------
56266f5dd5c2Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
56276f5dd5c2Smrgas_fn_exit ()
56286f5dd5c2Smrg{
56296f5dd5c2Smrg  set +e
56306f5dd5c2Smrg  as_fn_set_status $1
56316f5dd5c2Smrg  exit $1
56326f5dd5c2Smrg} # as_fn_exit
56336f5dd5c2Smrg
56346f5dd5c2Smrg# as_fn_unset VAR
56356f5dd5c2Smrg# ---------------
56366f5dd5c2Smrg# Portably unset VAR.
56376f5dd5c2Smrgas_fn_unset ()
56386f5dd5c2Smrg{
56396f5dd5c2Smrg  { eval $1=; unset $1;}
56406f5dd5c2Smrg}
56416f5dd5c2Smrgas_unset=as_fn_unset
56426f5dd5c2Smrg# as_fn_append VAR VALUE
56436f5dd5c2Smrg# ----------------------
56446f5dd5c2Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
56456f5dd5c2Smrg# advantage of any shell optimizations that allow amortized linear growth over
56466f5dd5c2Smrg# repeated appends, instead of the typical quadratic growth present in naive
56476f5dd5c2Smrg# implementations.
56486f5dd5c2Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
56496f5dd5c2Smrg  eval 'as_fn_append ()
56506f5dd5c2Smrg  {
56516f5dd5c2Smrg    eval $1+=\$2
56526f5dd5c2Smrg  }'
56536f5dd5c2Smrgelse
56546f5dd5c2Smrg  as_fn_append ()
56556f5dd5c2Smrg  {
56566f5dd5c2Smrg    eval $1=\$$1\$2
56576f5dd5c2Smrg  }
56586f5dd5c2Smrgfi # as_fn_append
56596f5dd5c2Smrg
56606f5dd5c2Smrg# as_fn_arith ARG...
56616f5dd5c2Smrg# ------------------
56626f5dd5c2Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
56636f5dd5c2Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
56646f5dd5c2Smrg# must be portable across $(()) and expr.
56656f5dd5c2Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
56666f5dd5c2Smrg  eval 'as_fn_arith ()
56676f5dd5c2Smrg  {
56686f5dd5c2Smrg    as_val=$(( $* ))
56696f5dd5c2Smrg  }'
56706f5dd5c2Smrgelse
56716f5dd5c2Smrg  as_fn_arith ()
56726f5dd5c2Smrg  {
56736f5dd5c2Smrg    as_val=`expr "$@" || test $? -eq 1`
56746f5dd5c2Smrg  }
56756f5dd5c2Smrgfi # as_fn_arith
56766f5dd5c2Smrg
56776f5dd5c2Smrg
5678a0195d5fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5679a0195d5fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5680a0195d5fSmrg  as_expr=expr
5681a0195d5fSmrgelse
5682a0195d5fSmrg  as_expr=false
5683a0195d5fSmrgfi
5684a0195d5fSmrg
5685a0195d5fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5686a0195d5fSmrg  as_basename=basename
5687a0195d5fSmrgelse
5688a0195d5fSmrg  as_basename=false
5689a0195d5fSmrgfi
5690a0195d5fSmrg
56916f5dd5c2Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56926f5dd5c2Smrg  as_dirname=dirname
56936f5dd5c2Smrgelse
56946f5dd5c2Smrg  as_dirname=false
56956f5dd5c2Smrgfi
5696a0195d5fSmrg
5697a0195d5fSmrgas_me=`$as_basename -- "$0" ||
5698a0195d5fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5699a0195d5fSmrg	 X"$0" : 'X\(//\)$' \| \
5700a0195d5fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
57016600fe5bSmrg$as_echo X/"$0" |
5702a0195d5fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
5703a0195d5fSmrg	    s//\1/
5704a0195d5fSmrg	    q
5705a0195d5fSmrg	  }
5706a0195d5fSmrg	  /^X\/\(\/\/\)$/{
5707a0195d5fSmrg	    s//\1/
5708a0195d5fSmrg	    q
5709a0195d5fSmrg	  }
5710a0195d5fSmrg	  /^X\/\(\/\).*/{
5711a0195d5fSmrg	    s//\1/
5712a0195d5fSmrg	    q
5713a0195d5fSmrg	  }
5714a0195d5fSmrg	  s/.*/./; q'`
5715a0195d5fSmrg
57166f5dd5c2Smrg# Avoid depending upon Character Ranges.
57176f5dd5c2Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
57186f5dd5c2Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
57196f5dd5c2Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
57206f5dd5c2Smrgas_cr_digits='0123456789'
57216f5dd5c2Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5722a0195d5fSmrg
5723a0195d5fSmrgECHO_C= ECHO_N= ECHO_T=
57246f5dd5c2Smrgcase `echo -n x` in #(((((
5725a0195d5fSmrg-n*)
57266f5dd5c2Smrg  case `echo 'xy\c'` in
5727a0195d5fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
57286f5dd5c2Smrg  xy)  ECHO_C='\c';;
57296f5dd5c2Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
57306f5dd5c2Smrg       ECHO_T='	';;
5731a0195d5fSmrg  esac;;
5732a0195d5fSmrg*)
5733a0195d5fSmrg  ECHO_N='-n';;
5734a0195d5fSmrgesac
5735a0195d5fSmrg
5736a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.file
5737a0195d5fSmrgif test -d conf$$.dir; then
5738a0195d5fSmrg  rm -f conf$$.dir/conf$$.file
5739a0195d5fSmrgelse
5740a0195d5fSmrg  rm -f conf$$.dir
57416600fe5bSmrg  mkdir conf$$.dir 2>/dev/null
57426600fe5bSmrgfi
57436600fe5bSmrgif (echo >conf$$.file) 2>/dev/null; then
57446600fe5bSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
57456600fe5bSmrg    as_ln_s='ln -s'
57466600fe5bSmrg    # ... but there are two gotchas:
57476600fe5bSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
57486600fe5bSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
57496600fe5bSmrg    # In both cases, we have to default to `cp -p'.
57506600fe5bSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
57516600fe5bSmrg      as_ln_s='cp -p'
57526600fe5bSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
57536600fe5bSmrg    as_ln_s=ln
57546600fe5bSmrg  else
5755a0195d5fSmrg    as_ln_s='cp -p'
57566600fe5bSmrg  fi
5757a0195d5fSmrgelse
5758a0195d5fSmrg  as_ln_s='cp -p'
5759a0195d5fSmrgfi
5760a0195d5fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5761a0195d5fSmrgrmdir conf$$.dir 2>/dev/null
5762a0195d5fSmrg
57636f5dd5c2Smrg
57646f5dd5c2Smrg# as_fn_mkdir_p
57656f5dd5c2Smrg# -------------
57666f5dd5c2Smrg# Create "$as_dir" as a directory, including parents if necessary.
57676f5dd5c2Smrgas_fn_mkdir_p ()
57686f5dd5c2Smrg{
57696f5dd5c2Smrg
57706f5dd5c2Smrg  case $as_dir in #(
57716f5dd5c2Smrg  -*) as_dir=./$as_dir;;
57726f5dd5c2Smrg  esac
57736f5dd5c2Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
57746f5dd5c2Smrg    as_dirs=
57756f5dd5c2Smrg    while :; do
57766f5dd5c2Smrg      case $as_dir in #(
57776f5dd5c2Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57786f5dd5c2Smrg      *) as_qdir=$as_dir;;
57796f5dd5c2Smrg      esac
57806f5dd5c2Smrg      as_dirs="'$as_qdir' $as_dirs"
57816f5dd5c2Smrg      as_dir=`$as_dirname -- "$as_dir" ||
57826f5dd5c2Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57836f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
57846f5dd5c2Smrg	 X"$as_dir" : 'X\(//\)$' \| \
57856f5dd5c2Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57866f5dd5c2Smrg$as_echo X"$as_dir" |
57876f5dd5c2Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57886f5dd5c2Smrg	    s//\1/
57896f5dd5c2Smrg	    q
57906f5dd5c2Smrg	  }
57916f5dd5c2Smrg	  /^X\(\/\/\)[^/].*/{
57926f5dd5c2Smrg	    s//\1/
57936f5dd5c2Smrg	    q
57946f5dd5c2Smrg	  }
57956f5dd5c2Smrg	  /^X\(\/\/\)$/{
57966f5dd5c2Smrg	    s//\1/
57976f5dd5c2Smrg	    q
57986f5dd5c2Smrg	  }
57996f5dd5c2Smrg	  /^X\(\/\).*/{
58006f5dd5c2Smrg	    s//\1/
58016f5dd5c2Smrg	    q
58026f5dd5c2Smrg	  }
58036f5dd5c2Smrg	  s/.*/./; q'`
58046f5dd5c2Smrg      test -d "$as_dir" && break
58056f5dd5c2Smrg    done
58066f5dd5c2Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
58072ab73d9fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
58086f5dd5c2Smrg
58096f5dd5c2Smrg
58106f5dd5c2Smrg} # as_fn_mkdir_p
5811a0195d5fSmrgif mkdir -p . 2>/dev/null; then
58126f5dd5c2Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5813a0195d5fSmrgelse
5814a0195d5fSmrg  test -d ./-p && rmdir ./-p
5815a0195d5fSmrg  as_mkdir_p=false
5816a0195d5fSmrgfi
5817a0195d5fSmrg
5818a0195d5fSmrgif test -x / >/dev/null 2>&1; then
5819a0195d5fSmrg  as_test_x='test -x'
5820a0195d5fSmrgelse
5821a0195d5fSmrg  if ls -dL / >/dev/null 2>&1; then
5822a0195d5fSmrg    as_ls_L_option=L
5823a0195d5fSmrg  else
5824a0195d5fSmrg    as_ls_L_option=
5825a0195d5fSmrg  fi
5826a0195d5fSmrg  as_test_x='
5827a0195d5fSmrg    eval sh -c '\''
5828a0195d5fSmrg      if test -d "$1"; then
58296600fe5bSmrg	test -d "$1/.";
5830a0195d5fSmrg      else
58316f5dd5c2Smrg	case $1 in #(
58326600fe5bSmrg	-*)set "./$1";;
5833a0195d5fSmrg	esac;
58346f5dd5c2Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5835a0195d5fSmrg	???[sx]*):;;*)false;;esac;fi
5836a0195d5fSmrg    '\'' sh
5837a0195d5fSmrg  '
5838a0195d5fSmrgfi
5839a0195d5fSmrgas_executable_p=$as_test_x
5840a0195d5fSmrg
5841a0195d5fSmrg# Sed expression to map a string onto a valid CPP name.
5842a0195d5fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5843a0195d5fSmrg
5844a0195d5fSmrg# Sed expression to map a string onto a valid variable name.
5845a0195d5fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5846a0195d5fSmrg
5847a0195d5fSmrg
5848a0195d5fSmrgexec 6>&1
58496f5dd5c2Smrg## ----------------------------------- ##
58506f5dd5c2Smrg## Main body of $CONFIG_STATUS script. ##
58516f5dd5c2Smrg## ----------------------------------- ##
58526f5dd5c2Smrg_ASEOF
58536f5dd5c2Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5854a0195d5fSmrg
58556f5dd5c2Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
58566f5dd5c2Smrg# Save the log message, to keep $0 and so on meaningful, and to
5857a0195d5fSmrg# report actual input values of CONFIG_FILES etc. instead of their
5858a0195d5fSmrg# values after options handling.
5859a0195d5fSmrgac_log="
5860ff6cf368SmrgThis file was extended by xset $as_me 1.2.2, which was
58612ab73d9fSmrggenerated by GNU Autoconf 2.68.  Invocation command line was
5862a0195d5fSmrg
5863a0195d5fSmrg  CONFIG_FILES    = $CONFIG_FILES
5864a0195d5fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5865a0195d5fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5866a0195d5fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5867a0195d5fSmrg  $ $0 $@
5868a0195d5fSmrg
5869a0195d5fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
5870a0195d5fSmrg"
5871a0195d5fSmrg
5872a0195d5fSmrg_ACEOF
5873a0195d5fSmrg
58746600fe5bSmrgcase $ac_config_files in *"
58756600fe5bSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
58766600fe5bSmrgesac
58776600fe5bSmrg
58786600fe5bSmrgcase $ac_config_headers in *"
58796600fe5bSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
58806600fe5bSmrgesac
58816600fe5bSmrg
58826600fe5bSmrg
58836600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5884a0195d5fSmrg# Files that config.status was made for.
5885a0195d5fSmrgconfig_files="$ac_config_files"
5886a0195d5fSmrgconfig_headers="$ac_config_headers"
5887a0195d5fSmrgconfig_commands="$ac_config_commands"
5888a0195d5fSmrg
5889a0195d5fSmrg_ACEOF
5890a0195d5fSmrg
58916600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5892a0195d5fSmrgac_cs_usage="\
58936f5dd5c2Smrg\`$as_me' instantiates files and other configuration actions
58946f5dd5c2Smrgfrom templates according to the current configuration.  Unless the files
58956f5dd5c2Smrgand actions are specified as TAGs, all are instantiated by default.
5896a0195d5fSmrg
58976f5dd5c2SmrgUsage: $0 [OPTION]... [TAG]...
5898a0195d5fSmrg
5899a0195d5fSmrg  -h, --help       print this help, then exit
5900a0195d5fSmrg  -V, --version    print version number and configuration settings, then exit
59016f5dd5c2Smrg      --config     print configuration, then exit
59026600fe5bSmrg  -q, --quiet, --silent
59036600fe5bSmrg                   do not print progress messages
5904a0195d5fSmrg  -d, --debug      don't remove temporary files
5905a0195d5fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
59066600fe5bSmrg      --file=FILE[:TEMPLATE]
59076600fe5bSmrg                   instantiate the configuration file FILE
59086600fe5bSmrg      --header=FILE[:TEMPLATE]
59096600fe5bSmrg                   instantiate the configuration header FILE
5910a0195d5fSmrg
5911a0195d5fSmrgConfiguration files:
5912a0195d5fSmrg$config_files
5913a0195d5fSmrg
5914a0195d5fSmrgConfiguration headers:
5915a0195d5fSmrg$config_headers
5916a0195d5fSmrg
5917a0195d5fSmrgConfiguration commands:
5918a0195d5fSmrg$config_commands
5919a0195d5fSmrg
59206f5dd5c2SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5921a0195d5fSmrg
5922a0195d5fSmrg_ACEOF
59236600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59246f5dd5c2Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5925a0195d5fSmrgac_cs_version="\\
5926ff6cf368Smrgxset config.status 1.2.2
59272ab73d9fSmrgconfigured by $0, generated by GNU Autoconf 2.68,
59286f5dd5c2Smrg  with options \\"\$ac_cs_config\\"
5929a0195d5fSmrg
59302ab73d9fSmrgCopyright (C) 2010 Free Software Foundation, Inc.
5931a0195d5fSmrgThis config.status script is free software; the Free Software Foundation
5932a0195d5fSmrggives unlimited permission to copy, distribute and modify it."
5933a0195d5fSmrg
5934a0195d5fSmrgac_pwd='$ac_pwd'
5935a0195d5fSmrgsrcdir='$srcdir'
5936a0195d5fSmrgINSTALL='$INSTALL'
5937a0195d5fSmrgMKDIR_P='$MKDIR_P'
59386600fe5bSmrgAWK='$AWK'
59396600fe5bSmrgtest -n "\$AWK" || AWK=awk
5940a0195d5fSmrg_ACEOF
5941a0195d5fSmrg
59426600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59436600fe5bSmrg# The default lists apply if the user does not specify any file.
5944a0195d5fSmrgac_need_defaults=:
5945a0195d5fSmrgwhile test $# != 0
5946a0195d5fSmrgdo
5947a0195d5fSmrg  case $1 in
59482ab73d9fSmrg  --*=?*)
5949a0195d5fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5950a0195d5fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5951a0195d5fSmrg    ac_shift=:
5952a0195d5fSmrg    ;;
59532ab73d9fSmrg  --*=)
59542ab73d9fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
59552ab73d9fSmrg    ac_optarg=
59562ab73d9fSmrg    ac_shift=:
59572ab73d9fSmrg    ;;
5958a0195d5fSmrg  *)
5959a0195d5fSmrg    ac_option=$1
5960a0195d5fSmrg    ac_optarg=$2
5961a0195d5fSmrg    ac_shift=shift
5962a0195d5fSmrg    ;;
5963a0195d5fSmrg  esac
5964a0195d5fSmrg
5965a0195d5fSmrg  case $ac_option in
5966a0195d5fSmrg  # Handling of the options.
5967a0195d5fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5968a0195d5fSmrg    ac_cs_recheck=: ;;
5969a0195d5fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
59706600fe5bSmrg    $as_echo "$ac_cs_version"; exit ;;
59716f5dd5c2Smrg  --config | --confi | --conf | --con | --co | --c )
59726f5dd5c2Smrg    $as_echo "$ac_cs_config"; exit ;;
5973a0195d5fSmrg  --debug | --debu | --deb | --de | --d | -d )
5974a0195d5fSmrg    debug=: ;;
5975a0195d5fSmrg  --file | --fil | --fi | --f )
5976a0195d5fSmrg    $ac_shift
59776600fe5bSmrg    case $ac_optarg in
59786600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59792ab73d9fSmrg    '') as_fn_error $? "missing file argument" ;;
59806600fe5bSmrg    esac
59816f5dd5c2Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5982a0195d5fSmrg    ac_need_defaults=false;;
5983a0195d5fSmrg  --header | --heade | --head | --hea )
5984a0195d5fSmrg    $ac_shift
59856600fe5bSmrg    case $ac_optarg in
59866600fe5bSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
59876600fe5bSmrg    esac
59886f5dd5c2Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5989a0195d5fSmrg    ac_need_defaults=false;;
5990a0195d5fSmrg  --he | --h)
5991a0195d5fSmrg    # Conflict between --help and --header
59922ab73d9fSmrg    as_fn_error $? "ambiguous option: \`$1'
59936f5dd5c2SmrgTry \`$0 --help' for more information.";;
5994a0195d5fSmrg  --help | --hel | -h )
59956600fe5bSmrg    $as_echo "$ac_cs_usage"; exit ;;
5996a0195d5fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5997a0195d5fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5998a0195d5fSmrg    ac_cs_silent=: ;;
5999a0195d5fSmrg
6000a0195d5fSmrg  # This is an error.
60012ab73d9fSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
60026f5dd5c2SmrgTry \`$0 --help' for more information." ;;
6003a0195d5fSmrg
60046f5dd5c2Smrg  *) as_fn_append ac_config_targets " $1"
6005a0195d5fSmrg     ac_need_defaults=false ;;
6006a0195d5fSmrg
6007a0195d5fSmrg  esac
6008a0195d5fSmrg  shift
6009a0195d5fSmrgdone
6010a0195d5fSmrg
6011a0195d5fSmrgac_configure_extra_args=
6012a0195d5fSmrg
6013a0195d5fSmrgif $ac_cs_silent; then
6014a0195d5fSmrg  exec 6>/dev/null
6015a0195d5fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
6016a0195d5fSmrgfi
6017a0195d5fSmrg
6018a0195d5fSmrg_ACEOF
60196600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6020a0195d5fSmrgif \$ac_cs_recheck; then
60216600fe5bSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
60226600fe5bSmrg  shift
60236600fe5bSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
60246600fe5bSmrg  CONFIG_SHELL='$SHELL'
6025a0195d5fSmrg  export CONFIG_SHELL
60266600fe5bSmrg  exec "\$@"
6027a0195d5fSmrgfi
6028a0195d5fSmrg
6029a0195d5fSmrg_ACEOF
60306600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6031a0195d5fSmrgexec 5>>config.log
6032a0195d5fSmrg{
6033a0195d5fSmrg  echo
6034a0195d5fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6035a0195d5fSmrg## Running $as_me. ##
6036a0195d5fSmrg_ASBOX
60376600fe5bSmrg  $as_echo "$ac_log"
6038a0195d5fSmrg} >&5
6039a0195d5fSmrg
6040a0195d5fSmrg_ACEOF
60416600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6042a0195d5fSmrg#
6043a0195d5fSmrg# INIT-COMMANDS
6044a0195d5fSmrg#
6045a0195d5fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6046a0195d5fSmrg
6047a0195d5fSmrg_ACEOF
6048a0195d5fSmrg
60496600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6050a0195d5fSmrg
6051a0195d5fSmrg# Handling of arguments.
6052a0195d5fSmrgfor ac_config_target in $ac_config_targets
6053a0195d5fSmrgdo
6054a0195d5fSmrg  case $ac_config_target in
60556f5dd5c2Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
60562ab73d9fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6057a0195d5fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6058ff6cf368Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6059a0195d5fSmrg
60602ab73d9fSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6061a0195d5fSmrg  esac
6062a0195d5fSmrgdone
6063a0195d5fSmrg
6064a0195d5fSmrg
6065a0195d5fSmrg# If the user did not use the arguments to specify the items to instantiate,
6066a0195d5fSmrg# then the envvar interface is used.  Set only those that are not.
6067a0195d5fSmrg# We use the long form for the default assignment because of an extremely
6068a0195d5fSmrg# bizarre bug on SunOS 4.1.3.
6069a0195d5fSmrgif $ac_need_defaults; then
6070a0195d5fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6071a0195d5fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6072a0195d5fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6073a0195d5fSmrgfi
6074a0195d5fSmrg
6075a0195d5fSmrg# Have a temporary directory for convenience.  Make it in the build tree
6076a0195d5fSmrg# simply because there is no reason against having it here, and in addition,
6077a0195d5fSmrg# creating and moving files from /tmp can sometimes cause problems.
6078a0195d5fSmrg# Hook for its removal unless debugging.
6079a0195d5fSmrg# Note that there is a small window in which the directory will not be cleaned:
6080a0195d5fSmrg# after its creation but before its name has been assigned to `$tmp'.
6081a0195d5fSmrg$debug ||
6082a0195d5fSmrg{
60832ab73d9fSmrg  tmp= ac_tmp=
6084a0195d5fSmrg  trap 'exit_status=$?
60852ab73d9fSmrg  : "${ac_tmp:=$tmp}"
60862ab73d9fSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6087a0195d5fSmrg' 0
60886f5dd5c2Smrg  trap 'as_fn_exit 1' 1 2 13 15
6089a0195d5fSmrg}
6090a0195d5fSmrg# Create a (secure) tmp directory for tmp files.
6091a0195d5fSmrg
6092a0195d5fSmrg{
6093a0195d5fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
60942ab73d9fSmrg  test -d "$tmp"
6095a0195d5fSmrg}  ||
6096a0195d5fSmrg{
6097a0195d5fSmrg  tmp=./conf$$-$RANDOM
6098a0195d5fSmrg  (umask 077 && mkdir "$tmp")
60992ab73d9fSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
61002ab73d9fSmrgac_tmp=$tmp
6101a0195d5fSmrg
61026600fe5bSmrg# Set up the scripts for CONFIG_FILES section.
61036600fe5bSmrg# No need to generate them if there are no CONFIG_FILES.
61046600fe5bSmrg# This happens for instance with `./config.status config.h'.
6105a0195d5fSmrgif test -n "$CONFIG_FILES"; then
6106a0195d5fSmrg
6107a0195d5fSmrg
61086f5dd5c2Smrgac_cr=`echo X | tr X '\015'`
61096f5dd5c2Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
61106f5dd5c2Smrg# But we know of no other shell where ac_cr would be empty at this
61116f5dd5c2Smrg# point, so we can use a bashism as a fallback.
61126f5dd5c2Smrgif test "x$ac_cr" = x; then
61136f5dd5c2Smrg  eval ac_cr=\$\'\\r\'
61146f5dd5c2Smrgfi
61156600fe5bSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
61166600fe5bSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
61172ab73d9fSmrg  ac_cs_awk_cr='\\r'
61186600fe5bSmrgelse
61196600fe5bSmrg  ac_cs_awk_cr=$ac_cr
6120a0195d5fSmrgfi
6121a0195d5fSmrg
61222ab73d9fSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6123a0195d5fSmrg_ACEOF
6124a0195d5fSmrg
6125a0195d5fSmrg
61266600fe5bSmrg{
61276600fe5bSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
61286600fe5bSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
61296600fe5bSmrg  echo "_ACEOF"
61306600fe5bSmrg} >conf$$subs.sh ||
61312ab73d9fSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
61322ab73d9fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6133a0195d5fSmrgac_delim='%!_!# '
6134a0195d5fSmrgfor ac_last_try in false false false false false :; do
61356600fe5bSmrg  . ./conf$$subs.sh ||
61362ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6137a0195d5fSmrg
61386600fe5bSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
61396600fe5bSmrg  if test $ac_delim_n = $ac_delim_num; then
6140a0195d5fSmrg    break
6141a0195d5fSmrg  elif $ac_last_try; then
61422ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6143a0195d5fSmrg  else
6144a0195d5fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6145a0195d5fSmrg  fi
6146a0195d5fSmrgdone
61476600fe5bSmrgrm -f conf$$subs.sh
6148a0195d5fSmrg
61496600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61502ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
61516600fe5bSmrg_ACEOF
61526600fe5bSmrgsed -n '
61536600fe5bSmrgh
61546600fe5bSmrgs/^/S["/; s/!.*/"]=/
61556600fe5bSmrgp
61566600fe5bSmrgg
61576600fe5bSmrgs/^[^!]*!//
61586600fe5bSmrg:repl
61596600fe5bSmrgt repl
61606600fe5bSmrgs/'"$ac_delim"'$//
61616600fe5bSmrgt delim
61626600fe5bSmrg:nl
61636600fe5bSmrgh
61646f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
61656600fe5bSmrgt more1
61666600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
61676600fe5bSmrgp
61686600fe5bSmrgn
61696600fe5bSmrgb repl
61706600fe5bSmrg:more1
61716600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
61726600fe5bSmrgp
61736600fe5bSmrgg
61746600fe5bSmrgs/.\{148\}//
61756600fe5bSmrgt nl
61766600fe5bSmrg:delim
61776600fe5bSmrgh
61786f5dd5c2Smrgs/\(.\{148\}\)..*/\1/
61796600fe5bSmrgt more2
61806600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
61816600fe5bSmrgp
61826600fe5bSmrgb
61836600fe5bSmrg:more2
61846600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
61856600fe5bSmrgp
61866600fe5bSmrgg
61876600fe5bSmrgs/.\{148\}//
61886600fe5bSmrgt delim
61896600fe5bSmrg' <conf$$subs.awk | sed '
61906600fe5bSmrg/^[^""]/{
61916600fe5bSmrg  N
61926600fe5bSmrg  s/\n//
61936600fe5bSmrg}
61946600fe5bSmrg' >>$CONFIG_STATUS || ac_write_fail=1
61956600fe5bSmrgrm -f conf$$subs.awk
61966600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61976600fe5bSmrg_ACAWK
61982ab73d9fSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
61996600fe5bSmrg  for (key in S) S_is_set[key] = 1
62006600fe5bSmrg  FS = ""
62016600fe5bSmrg
62026600fe5bSmrg}
62036600fe5bSmrg{
62046600fe5bSmrg  line = $ 0
62056600fe5bSmrg  nfields = split(line, field, "@")
62066600fe5bSmrg  substed = 0
62076600fe5bSmrg  len = length(field[1])
62086600fe5bSmrg  for (i = 2; i < nfields; i++) {
62096600fe5bSmrg    key = field[i]
62106600fe5bSmrg    keylen = length(key)
62116600fe5bSmrg    if (S_is_set[key]) {
62126600fe5bSmrg      value = S[key]
62136600fe5bSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
62146600fe5bSmrg      len += length(value) + length(field[++i])
62156600fe5bSmrg      substed = 1
62166600fe5bSmrg    } else
62176600fe5bSmrg      len += 1 + keylen
62186600fe5bSmrg  }
62196600fe5bSmrg
62206600fe5bSmrg  print line
62216600fe5bSmrg}
6222a0195d5fSmrg
62236600fe5bSmrg_ACAWK
6224a0195d5fSmrg_ACEOF
62256600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
62266600fe5bSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
62276600fe5bSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
62286600fe5bSmrgelse
62296600fe5bSmrg  cat
62302ab73d9fSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
62312ab73d9fSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6232a0195d5fSmrg_ACEOF
6233a0195d5fSmrg
62342ab73d9fSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
62352ab73d9fSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6236a0195d5fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
6237a0195d5fSmrg# (actually we leave an empty line to preserve line numbers).
6238a0195d5fSmrgif test "x$srcdir" = x.; then
62392ab73d9fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
62402ab73d9fSmrgh
62412ab73d9fSmrgs///
62422ab73d9fSmrgs/^/:/
62432ab73d9fSmrgs/[	 ]*$/:/
62442ab73d9fSmrgs/:\$(srcdir):/:/g
62452ab73d9fSmrgs/:\${srcdir}:/:/g
62462ab73d9fSmrgs/:@srcdir@:/:/g
62472ab73d9fSmrgs/^:*//
6248a0195d5fSmrgs/:*$//
62492ab73d9fSmrgx
62502ab73d9fSmrgs/\(=[	 ]*\).*/\1/
62512ab73d9fSmrgG
62522ab73d9fSmrgs/\n//
6253a0195d5fSmrgs/^[^=]*=[	 ]*$//
6254a0195d5fSmrg}'
6255a0195d5fSmrgfi
6256a0195d5fSmrg
62576600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6258a0195d5fSmrgfi # test -n "$CONFIG_FILES"
6259a0195d5fSmrg
62606600fe5bSmrg# Set up the scripts for CONFIG_HEADERS section.
62616600fe5bSmrg# No need to generate them if there are no CONFIG_HEADERS.
62626600fe5bSmrg# This happens for instance with `./config.status Makefile'.
62636600fe5bSmrgif test -n "$CONFIG_HEADERS"; then
62642ab73d9fSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
62656600fe5bSmrgBEGIN {
62666600fe5bSmrg_ACEOF
62676600fe5bSmrg
62686600fe5bSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
62696600fe5bSmrg# here-document in config.status, that substitutes the proper values into
62706600fe5bSmrg# config.h.in to produce config.h.
62716600fe5bSmrg
62726600fe5bSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
62736600fe5bSmrg# handling of long lines.
62746600fe5bSmrgac_delim='%!_!# '
62756600fe5bSmrgfor ac_last_try in false false :; do
62762ab73d9fSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
62772ab73d9fSmrg  if test -z "$ac_tt"; then
62786600fe5bSmrg    break
62796600fe5bSmrg  elif $ac_last_try; then
62802ab73d9fSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
62816600fe5bSmrg  else
62826600fe5bSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
62836600fe5bSmrg  fi
62846600fe5bSmrgdone
62856600fe5bSmrg
62866600fe5bSmrg# For the awk script, D is an array of macro values keyed by name,
62876600fe5bSmrg# likewise P contains macro parameters if any.  Preserve backslash
62886600fe5bSmrg# newline sequences.
62896600fe5bSmrg
62906600fe5bSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
62916600fe5bSmrgsed -n '
62926600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
62936600fe5bSmrgt rset
62946600fe5bSmrg:rset
62956600fe5bSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
62966600fe5bSmrgt def
62976600fe5bSmrgd
62986600fe5bSmrg:def
62996600fe5bSmrgs/\\$//
63006600fe5bSmrgt bsnl
63016600fe5bSmrgs/["\\]/\\&/g
63026600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
63036600fe5bSmrgD["\1"]=" \3"/p
63046600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
63056600fe5bSmrgd
63066600fe5bSmrg:bsnl
63076600fe5bSmrgs/["\\]/\\&/g
63086600fe5bSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
63096600fe5bSmrgD["\1"]=" \3\\\\\\n"\\/p
63106600fe5bSmrgt cont
63116600fe5bSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
63126600fe5bSmrgt cont
63136600fe5bSmrgd
63146600fe5bSmrg:cont
63156600fe5bSmrgn
63166600fe5bSmrgs/.\{148\}/&'"$ac_delim"'/g
63176600fe5bSmrgt clear
63186600fe5bSmrg:clear
63196600fe5bSmrgs/\\$//
63206600fe5bSmrgt bsnlc
63216600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
63226600fe5bSmrgd
63236600fe5bSmrg:bsnlc
63246600fe5bSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
63256600fe5bSmrgb cont
63266600fe5bSmrg' <confdefs.h | sed '
63276600fe5bSmrgs/'"$ac_delim"'/"\\\
63286600fe5bSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
63296600fe5bSmrg
63306600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
63316600fe5bSmrg  for (key in D) D_is_set[key] = 1
63326600fe5bSmrg  FS = ""
63336600fe5bSmrg}
63346600fe5bSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
63356600fe5bSmrg  line = \$ 0
63366600fe5bSmrg  split(line, arg, " ")
63376600fe5bSmrg  if (arg[1] == "#") {
63386600fe5bSmrg    defundef = arg[2]
63396600fe5bSmrg    mac1 = arg[3]
63406600fe5bSmrg  } else {
63416600fe5bSmrg    defundef = substr(arg[1], 2)
63426600fe5bSmrg    mac1 = arg[2]
63436600fe5bSmrg  }
63446600fe5bSmrg  split(mac1, mac2, "(") #)
63456600fe5bSmrg  macro = mac2[1]
63466600fe5bSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
63476600fe5bSmrg  if (D_is_set[macro]) {
63486600fe5bSmrg    # Preserve the white space surrounding the "#".
63496600fe5bSmrg    print prefix "define", macro P[macro] D[macro]
63506600fe5bSmrg    next
63516600fe5bSmrg  } else {
63526600fe5bSmrg    # Replace #undef with comments.  This is necessary, for example,
63536600fe5bSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
63546600fe5bSmrg    # on some systems where configure will not decide to define it.
63556600fe5bSmrg    if (defundef == "undef") {
63566600fe5bSmrg      print "/*", prefix defundef, macro, "*/"
63576600fe5bSmrg      next
63586600fe5bSmrg    }
63596600fe5bSmrg  }
63606600fe5bSmrg}
63616600fe5bSmrg{ print }
63626600fe5bSmrg_ACAWK
63636600fe5bSmrg_ACEOF
63646600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
63652ab73d9fSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
63666600fe5bSmrgfi # test -n "$CONFIG_HEADERS"
63676600fe5bSmrg
6368a0195d5fSmrg
63696600fe5bSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
63706600fe5bSmrgshift
63716600fe5bSmrgfor ac_tag
6372a0195d5fSmrgdo
6373a0195d5fSmrg  case $ac_tag in
6374a0195d5fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
6375a0195d5fSmrg  esac
6376a0195d5fSmrg  case $ac_mode$ac_tag in
6377a0195d5fSmrg  :[FHL]*:*);;
63782ab73d9fSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6379a0195d5fSmrg  :[FH]-) ac_tag=-:-;;
6380a0195d5fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6381a0195d5fSmrg  esac
6382a0195d5fSmrg  ac_save_IFS=$IFS
6383a0195d5fSmrg  IFS=:
6384a0195d5fSmrg  set x $ac_tag
6385a0195d5fSmrg  IFS=$ac_save_IFS
6386a0195d5fSmrg  shift
6387a0195d5fSmrg  ac_file=$1
6388a0195d5fSmrg  shift
6389a0195d5fSmrg
6390a0195d5fSmrg  case $ac_mode in
6391a0195d5fSmrg  :L) ac_source=$1;;
6392a0195d5fSmrg  :[FH])
6393a0195d5fSmrg    ac_file_inputs=
6394a0195d5fSmrg    for ac_f
6395a0195d5fSmrg    do
6396a0195d5fSmrg      case $ac_f in
63972ab73d9fSmrg      -) ac_f="$ac_tmp/stdin";;
6398a0195d5fSmrg      *) # Look for the file first in the build tree, then in the source tree
6399a0195d5fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6400a0195d5fSmrg	 # because $ac_f cannot contain `:'.
6401a0195d5fSmrg	 test -f "$ac_f" ||
6402a0195d5fSmrg	   case $ac_f in
6403a0195d5fSmrg	   [\\/$]*) false;;
6404a0195d5fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6405a0195d5fSmrg	   esac ||
64062ab73d9fSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6407a0195d5fSmrg      esac
64086600fe5bSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
64096f5dd5c2Smrg      as_fn_append ac_file_inputs " '$ac_f'"
6410a0195d5fSmrg    done
6411a0195d5fSmrg
6412a0195d5fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
6413a0195d5fSmrg    # use $as_me), people would be surprised to read:
6414a0195d5fSmrg    #    /* config.h.  Generated by config.status.  */
64156600fe5bSmrg    configure_input='Generated from '`
64166600fe5bSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
64176600fe5bSmrg	`' by configure.'
6418a0195d5fSmrg    if test x"$ac_file" != x-; then
6419a0195d5fSmrg      configure_input="$ac_file.  $configure_input"
64206f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
64216600fe5bSmrg$as_echo "$as_me: creating $ac_file" >&6;}
6422a0195d5fSmrg    fi
64236600fe5bSmrg    # Neutralize special characters interpreted by sed in replacement strings.
64246600fe5bSmrg    case $configure_input in #(
64256600fe5bSmrg    *\&* | *\|* | *\\* )
64266600fe5bSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
64276600fe5bSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
64286600fe5bSmrg    *) ac_sed_conf_input=$configure_input;;
64296600fe5bSmrg    esac
6430a0195d5fSmrg
6431a0195d5fSmrg    case $ac_tag in
64322ab73d9fSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
64332ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6434a0195d5fSmrg    esac
6435a0195d5fSmrg    ;;
6436a0195d5fSmrg  esac
6437a0195d5fSmrg
6438a0195d5fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
6439a0195d5fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6440a0195d5fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6441a0195d5fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
6442a0195d5fSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
64436600fe5bSmrg$as_echo X"$ac_file" |
6444a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6445a0195d5fSmrg	    s//\1/
6446a0195d5fSmrg	    q
6447a0195d5fSmrg	  }
6448a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6449a0195d5fSmrg	    s//\1/
6450a0195d5fSmrg	    q
6451a0195d5fSmrg	  }
6452a0195d5fSmrg	  /^X\(\/\/\)$/{
6453a0195d5fSmrg	    s//\1/
6454a0195d5fSmrg	    q
6455a0195d5fSmrg	  }
6456a0195d5fSmrg	  /^X\(\/\).*/{
6457a0195d5fSmrg	    s//\1/
6458a0195d5fSmrg	    q
6459a0195d5fSmrg	  }
6460a0195d5fSmrg	  s/.*/./; q'`
64616f5dd5c2Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
6462a0195d5fSmrg  ac_builddir=.
6463a0195d5fSmrg
6464a0195d5fSmrgcase "$ac_dir" in
6465a0195d5fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6466a0195d5fSmrg*)
64676600fe5bSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6468a0195d5fSmrg  # A ".." for each directory in $ac_dir_suffix.
64696600fe5bSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6470a0195d5fSmrg  case $ac_top_builddir_sub in
6471a0195d5fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6472a0195d5fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6473a0195d5fSmrg  esac ;;
6474a0195d5fSmrgesac
6475a0195d5fSmrgac_abs_top_builddir=$ac_pwd
6476a0195d5fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
6477a0195d5fSmrg# for backward compatibility:
6478a0195d5fSmrgac_top_builddir=$ac_top_build_prefix
6479a0195d5fSmrg
6480a0195d5fSmrgcase $srcdir in
6481a0195d5fSmrg  .)  # We are building in place.
6482a0195d5fSmrg    ac_srcdir=.
6483a0195d5fSmrg    ac_top_srcdir=$ac_top_builddir_sub
6484a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
6485a0195d5fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6486a0195d5fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
6487a0195d5fSmrg    ac_top_srcdir=$srcdir
6488a0195d5fSmrg    ac_abs_top_srcdir=$srcdir ;;
6489a0195d5fSmrg  *) # Relative name.
6490a0195d5fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6491a0195d5fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
6492a0195d5fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6493a0195d5fSmrgesac
6494a0195d5fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6495a0195d5fSmrg
6496a0195d5fSmrg
6497a0195d5fSmrg  case $ac_mode in
6498a0195d5fSmrg  :F)
6499a0195d5fSmrg  #
6500a0195d5fSmrg  # CONFIG_FILE
6501a0195d5fSmrg  #
6502a0195d5fSmrg
6503a0195d5fSmrg  case $INSTALL in
6504a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6505a0195d5fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6506a0195d5fSmrg  esac
6507a0195d5fSmrg  ac_MKDIR_P=$MKDIR_P
6508a0195d5fSmrg  case $MKDIR_P in
6509a0195d5fSmrg  [\\/$]* | ?:[\\/]* ) ;;
6510a0195d5fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6511a0195d5fSmrg  esac
6512a0195d5fSmrg_ACEOF
6513a0195d5fSmrg
65146600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6515a0195d5fSmrg# If the template does not know about datarootdir, expand it.
6516a0195d5fSmrg# FIXME: This hack should be removed a few years after 2.60.
6517a0195d5fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
65186600fe5bSmrgac_sed_dataroot='
65196600fe5bSmrg/datarootdir/ {
6520a0195d5fSmrg  p
6521a0195d5fSmrg  q
6522a0195d5fSmrg}
6523a0195d5fSmrg/@datadir@/p
6524a0195d5fSmrg/@docdir@/p
6525a0195d5fSmrg/@infodir@/p
6526a0195d5fSmrg/@localedir@/p
65276f5dd5c2Smrg/@mandir@/p'
65286600fe5bSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6529a0195d5fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
6530a0195d5fSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
65316f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
65326600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6533a0195d5fSmrg_ACEOF
65346600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6535a0195d5fSmrg  ac_datarootdir_hack='
6536a0195d5fSmrg  s&@datadir@&$datadir&g
6537a0195d5fSmrg  s&@docdir@&$docdir&g
6538a0195d5fSmrg  s&@infodir@&$infodir&g
6539a0195d5fSmrg  s&@localedir@&$localedir&g
6540a0195d5fSmrg  s&@mandir@&$mandir&g
65416f5dd5c2Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
6542a0195d5fSmrgesac
6543a0195d5fSmrg_ACEOF
6544a0195d5fSmrg
6545a0195d5fSmrg# Neutralize VPATH when `$srcdir' = `.'.
6546a0195d5fSmrg# Shell code in configure.ac might set extrasub.
6547a0195d5fSmrg# FIXME: do we really want to maintain this feature?
65486600fe5bSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65496600fe5bSmrgac_sed_extra="$ac_vpsub
6550a0195d5fSmrg$extrasub
6551a0195d5fSmrg_ACEOF
65526600fe5bSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6553a0195d5fSmrg:t
6554a0195d5fSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
65556600fe5bSmrgs|@configure_input@|$ac_sed_conf_input|;t t
6556a0195d5fSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
65576600fe5bSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
6558a0195d5fSmrgs&@srcdir@&$ac_srcdir&;t t
6559a0195d5fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
6560a0195d5fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
6561a0195d5fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6562a0195d5fSmrgs&@builddir@&$ac_builddir&;t t
6563a0195d5fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
6564a0195d5fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6565a0195d5fSmrgs&@INSTALL@&$ac_INSTALL&;t t
6566a0195d5fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6567a0195d5fSmrg$ac_datarootdir_hack
65686600fe5bSmrg"
65692ab73d9fSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
65702ab73d9fSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6571a0195d5fSmrg
6572a0195d5fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
65732ab73d9fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
65742ab73d9fSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
65752ab73d9fSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
65766f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
65772ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
65786600fe5bSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
65792ab73d9fSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
6580a0195d5fSmrg
65812ab73d9fSmrg  rm -f "$ac_tmp/stdin"
6582a0195d5fSmrg  case $ac_file in
65832ab73d9fSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
65842ab73d9fSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
65856600fe5bSmrg  esac \
65862ab73d9fSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6587a0195d5fSmrg ;;
6588a0195d5fSmrg  :H)
6589a0195d5fSmrg  #
6590a0195d5fSmrg  # CONFIG_HEADER
6591a0195d5fSmrg  #
6592a0195d5fSmrg  if test x"$ac_file" != x-; then
65936600fe5bSmrg    {
65946600fe5bSmrg      $as_echo "/* $configure_input  */" \
65952ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
65962ab73d9fSmrg    } >"$ac_tmp/config.h" \
65972ab73d9fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
65982ab73d9fSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
65996f5dd5c2Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
66006600fe5bSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6601a0195d5fSmrg    else
66026600fe5bSmrg      rm -f "$ac_file"
66032ab73d9fSmrg      mv "$ac_tmp/config.h" "$ac_file" \
66042ab73d9fSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
6605a0195d5fSmrg    fi
6606a0195d5fSmrg  else
66076600fe5bSmrg    $as_echo "/* $configure_input  */" \
66082ab73d9fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
66092ab73d9fSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
6610a0195d5fSmrg  fi
66116600fe5bSmrg# Compute "$ac_file"'s index in $config_headers.
66126600fe5bSmrg_am_arg="$ac_file"
6613a0195d5fSmrg_am_stamp_count=1
6614a0195d5fSmrgfor _am_header in $config_headers :; do
6615a0195d5fSmrg  case $_am_header in
6616a0195d5fSmrg    $_am_arg | $_am_arg:* )
6617a0195d5fSmrg      break ;;
6618a0195d5fSmrg    * )
6619a0195d5fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6620a0195d5fSmrg  esac
6621a0195d5fSmrgdone
6622a0195d5fSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6623a0195d5fSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6624a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6625a0195d5fSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6626a0195d5fSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
66276600fe5bSmrg$as_echo X"$_am_arg" |
6628a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6629a0195d5fSmrg	    s//\1/
6630a0195d5fSmrg	    q
6631a0195d5fSmrg	  }
6632a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6633a0195d5fSmrg	    s//\1/
6634a0195d5fSmrg	    q
6635a0195d5fSmrg	  }
6636a0195d5fSmrg	  /^X\(\/\/\)$/{
6637a0195d5fSmrg	    s//\1/
6638a0195d5fSmrg	    q
6639a0195d5fSmrg	  }
6640a0195d5fSmrg	  /^X\(\/\).*/{
6641a0195d5fSmrg	    s//\1/
6642a0195d5fSmrg	    q
6643a0195d5fSmrg	  }
6644a0195d5fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
6645a0195d5fSmrg ;;
6646a0195d5fSmrg
66476f5dd5c2Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
66486600fe5bSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
6649a0195d5fSmrg ;;
6650a0195d5fSmrg  esac
6651a0195d5fSmrg
6652a0195d5fSmrg
6653a0195d5fSmrg  case $ac_file$ac_mode in
66546600fe5bSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
66556600fe5bSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
66566600fe5bSmrg  # are listed without --file.  Let's play safe and only enable the eval
66576600fe5bSmrg  # if we detect the quoting.
66586600fe5bSmrg  case $CONFIG_FILES in
66596600fe5bSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
66606600fe5bSmrg  *)   set x $CONFIG_FILES ;;
66616600fe5bSmrg  esac
66626600fe5bSmrg  shift
66636600fe5bSmrg  for mf
66646600fe5bSmrg  do
66656600fe5bSmrg    # Strip MF so we end up with the name of the file.
66666600fe5bSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
66676600fe5bSmrg    # Check whether this is an Automake generated Makefile or not.
66686600fe5bSmrg    # We used to match only the files named `Makefile.in', but
66696600fe5bSmrg    # some people rename them; so instead we look at the file content.
66706600fe5bSmrg    # Grep'ing the first line is not enough: some people post-process
66716600fe5bSmrg    # each Makefile.in and add a new line on top of each file to say so.
66726600fe5bSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
66736600fe5bSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
66746600fe5bSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
66756600fe5bSmrg      dirpart=`$as_dirname -- "$mf" ||
6676a0195d5fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6677a0195d5fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6678a0195d5fSmrg	 X"$mf" : 'X\(//\)$' \| \
6679a0195d5fSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
66806600fe5bSmrg$as_echo X"$mf" |
6681a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6682a0195d5fSmrg	    s//\1/
6683a0195d5fSmrg	    q
6684a0195d5fSmrg	  }
6685a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6686a0195d5fSmrg	    s//\1/
6687a0195d5fSmrg	    q
6688a0195d5fSmrg	  }
6689a0195d5fSmrg	  /^X\(\/\/\)$/{
6690a0195d5fSmrg	    s//\1/
6691a0195d5fSmrg	    q
6692a0195d5fSmrg	  }
6693a0195d5fSmrg	  /^X\(\/\).*/{
6694a0195d5fSmrg	    s//\1/
6695a0195d5fSmrg	    q
6696a0195d5fSmrg	  }
6697a0195d5fSmrg	  s/.*/./; q'`
66986600fe5bSmrg    else
66996600fe5bSmrg      continue
67006600fe5bSmrg    fi
67016600fe5bSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
67026600fe5bSmrg    # from the Makefile without running `make'.
67036600fe5bSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
67046600fe5bSmrg    test -z "$DEPDIR" && continue
67056600fe5bSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
67066600fe5bSmrg    test -z "am__include" && continue
67076600fe5bSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
67086600fe5bSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
67096600fe5bSmrg    U=`sed -n 's/^U = //p' < "$mf"`
67106600fe5bSmrg    # Find all dependency output files, they are included files with
67116600fe5bSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
67126600fe5bSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
67136600fe5bSmrg    # expansion.
67146600fe5bSmrg    for file in `sed -n "
67156600fe5bSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
67166600fe5bSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
67176600fe5bSmrg      # Make sure the directory exists.
67186600fe5bSmrg      test -f "$dirpart/$file" && continue
67196600fe5bSmrg      fdir=`$as_dirname -- "$file" ||
6720a0195d5fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6721a0195d5fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6722a0195d5fSmrg	 X"$file" : 'X\(//\)$' \| \
6723a0195d5fSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
67246600fe5bSmrg$as_echo X"$file" |
6725a0195d5fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6726a0195d5fSmrg	    s//\1/
6727a0195d5fSmrg	    q
6728a0195d5fSmrg	  }
6729a0195d5fSmrg	  /^X\(\/\/\)[^/].*/{
6730a0195d5fSmrg	    s//\1/
6731a0195d5fSmrg	    q
6732a0195d5fSmrg	  }
6733a0195d5fSmrg	  /^X\(\/\/\)$/{
6734a0195d5fSmrg	    s//\1/
6735a0195d5fSmrg	    q
6736a0195d5fSmrg	  }
6737a0195d5fSmrg	  /^X\(\/\).*/{
6738a0195d5fSmrg	    s//\1/
6739a0195d5fSmrg	    q
6740a0195d5fSmrg	  }
6741a0195d5fSmrg	  s/.*/./; q'`
67426f5dd5c2Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
67436600fe5bSmrg      # echo "creating $dirpart/$file"
67446600fe5bSmrg      echo '# dummy' > "$dirpart/$file"
67456600fe5bSmrg    done
6746a0195d5fSmrg  done
67476600fe5bSmrg}
6748a0195d5fSmrg ;;
6749a0195d5fSmrg
6750a0195d5fSmrg  esac
6751a0195d5fSmrgdone # for ac_tag
6752a0195d5fSmrg
6753a0195d5fSmrg
67546f5dd5c2Smrgas_fn_exit 0
6755a0195d5fSmrg_ACEOF
6756a0195d5fSmrgac_clean_files=$ac_clean_files_save
6757a0195d5fSmrg
67586600fe5bSmrgtest $ac_write_fail = 0 ||
67592ab73d9fSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
67606600fe5bSmrg
6761a0195d5fSmrg
6762a0195d5fSmrg# configure is writing to config.log, and then calls config.status.
6763a0195d5fSmrg# config.status does its own redirection, appending to config.log.
6764a0195d5fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6765a0195d5fSmrg# by configure, so config.status won't be able to write to it; its
6766a0195d5fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6767a0195d5fSmrg# effectively closing config.log, so it can be properly (re)opened and
6768a0195d5fSmrg# appended to by config.status.  When coming back to configure, we
6769a0195d5fSmrg# need to make the FD available again.
6770a0195d5fSmrgif test "$no_create" != yes; then
6771a0195d5fSmrg  ac_cs_success=:
6772a0195d5fSmrg  ac_config_status_args=
6773a0195d5fSmrg  test "$silent" = yes &&
6774a0195d5fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6775a0195d5fSmrg  exec 5>/dev/null
6776a0195d5fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6777a0195d5fSmrg  exec 5>>config.log
6778a0195d5fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6779a0195d5fSmrg  # would make configure fail if this is the last instruction.
67802ab73d9fSmrg  $ac_cs_success || as_fn_exit 1
6781a0195d5fSmrgfi
67826600fe5bSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
67836f5dd5c2Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
67846600fe5bSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
67856600fe5bSmrgfi
6786a0195d5fSmrg
6787