configure revision b7fb5eac
11a30de1fSmrg#! /bin/sh
21a30de1fSmrg# Guess values for system-dependent variables and create Makefiles.
3b7fb5eacSmrg# Generated by GNU Autoconf 2.63 for xmodmap 1.0.4.
41a30de1fSmrg#
51a30de1fSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
61a30de1fSmrg#
71a30de1fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8b7fb5eacSmrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
91a30de1fSmrg# This configure script is free software; the Free Software Foundation
101a30de1fSmrg# gives unlimited permission to copy, distribute and modify it.
111a30de1fSmrg## --------------------- ##
121a30de1fSmrg## M4sh Initialization.  ##
131a30de1fSmrg## --------------------- ##
141a30de1fSmrg
151a30de1fSmrg# Be more Bourne compatible
161a30de1fSmrgDUALCASE=1; export DUALCASE # for MKS sh
171a30de1fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181a30de1fSmrg  emulate sh
191a30de1fSmrg  NULLCMD=:
20b7fb5eacSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
211a30de1fSmrg  # is contrary to our usage.  Disable this feature.
221a30de1fSmrg  alias -g '${1+"$@"}'='"$@"'
231a30de1fSmrg  setopt NO_GLOB_SUBST
241a30de1fSmrgelse
251a30de1fSmrg  case `(set -o) 2>/dev/null` in
261a30de1fSmrg  *posix*) set -o posix ;;
271a30de1fSmrgesac
281a30de1fSmrg
291a30de1fSmrgfi
301a30de1fSmrg
311a30de1fSmrg
321a30de1fSmrg
331a30de1fSmrg
341a30de1fSmrg# PATH needs CR
351a30de1fSmrg# Avoid depending upon Character Ranges.
361a30de1fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
371a30de1fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
381a30de1fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
391a30de1fSmrgas_cr_digits='0123456789'
401a30de1fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
411a30de1fSmrg
42b7fb5eacSmrgas_nl='
43b7fb5eacSmrg'
44b7fb5eacSmrgexport as_nl
45b7fb5eacSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
46b7fb5eacSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49b7fb5eacSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50b7fb5eacSmrg  as_echo='printf %s\n'
51b7fb5eacSmrg  as_echo_n='printf %s'
52b7fb5eacSmrgelse
53b7fb5eacSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54b7fb5eacSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55b7fb5eacSmrg    as_echo_n='/usr/ucb/echo -n'
561a30de1fSmrg  else
57b7fb5eacSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58b7fb5eacSmrg    as_echo_n_body='eval
59b7fb5eacSmrg      arg=$1;
60b7fb5eacSmrg      case $arg in
61b7fb5eacSmrg      *"$as_nl"*)
62b7fb5eacSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
63b7fb5eacSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64b7fb5eacSmrg      esac;
65b7fb5eacSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66b7fb5eacSmrg    '
67b7fb5eacSmrg    export as_echo_n_body
68b7fb5eacSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
691a30de1fSmrg  fi
70b7fb5eacSmrg  export as_echo_body
71b7fb5eacSmrg  as_echo='sh -c $as_echo_body as_echo'
72b7fb5eacSmrgfi
73b7fb5eacSmrg
74b7fb5eacSmrg# The user is always right.
75b7fb5eacSmrgif test "${PATH_SEPARATOR+set}" != set; then
76b7fb5eacSmrg  PATH_SEPARATOR=:
77b7fb5eacSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78b7fb5eacSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79b7fb5eacSmrg      PATH_SEPARATOR=';'
80b7fb5eacSmrg  }
811a30de1fSmrgfi
821a30de1fSmrg
831a30de1fSmrg# Support unset when possible.
841a30de1fSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
851a30de1fSmrg  as_unset=unset
861a30de1fSmrgelse
871a30de1fSmrg  as_unset=false
881a30de1fSmrgfi
891a30de1fSmrg
901a30de1fSmrg
911a30de1fSmrg# IFS
921a30de1fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
931a30de1fSmrg# there to prevent editors from complaining about space-tab.
941a30de1fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
951a30de1fSmrg# splitting by setting IFS to empty value.)
961a30de1fSmrgIFS=" ""	$as_nl"
971a30de1fSmrg
981a30de1fSmrg# Find who we are.  Look in the path if we contain no directory separator.
991a30de1fSmrgcase $0 in
1001a30de1fSmrg  *[\\/]* ) as_myself=$0 ;;
1011a30de1fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021a30de1fSmrgfor as_dir in $PATH
1031a30de1fSmrgdo
1041a30de1fSmrg  IFS=$as_save_IFS
1051a30de1fSmrg  test -z "$as_dir" && as_dir=.
1061a30de1fSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1071a30de1fSmrgdone
1081a30de1fSmrgIFS=$as_save_IFS
1091a30de1fSmrg
1101a30de1fSmrg     ;;
1111a30de1fSmrgesac
1121a30de1fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1131a30de1fSmrg# in which case we are not to be found in the path.
1141a30de1fSmrgif test "x$as_myself" = x; then
1151a30de1fSmrg  as_myself=$0
1161a30de1fSmrgfi
1171a30de1fSmrgif test ! -f "$as_myself"; then
118b7fb5eacSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1191a30de1fSmrg  { (exit 1); exit 1; }
1201a30de1fSmrgfi
1211a30de1fSmrg
1221a30de1fSmrg# Work around bugs in pre-3.0 UWIN ksh.
1231a30de1fSmrgfor as_var in ENV MAIL MAILPATH
1241a30de1fSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1251a30de1fSmrgdone
1261a30de1fSmrgPS1='$ '
1271a30de1fSmrgPS2='> '
1281a30de1fSmrgPS4='+ '
1291a30de1fSmrg
1301a30de1fSmrg# NLS nuisances.
131b7fb5eacSmrgLC_ALL=C
132b7fb5eacSmrgexport LC_ALL
133b7fb5eacSmrgLANGUAGE=C
134b7fb5eacSmrgexport LANGUAGE
1351a30de1fSmrg
1361a30de1fSmrg# Required to use basename.
1371a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1381a30de1fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1391a30de1fSmrg  as_expr=expr
1401a30de1fSmrgelse
1411a30de1fSmrg  as_expr=false
1421a30de1fSmrgfi
1431a30de1fSmrg
1441a30de1fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1451a30de1fSmrg  as_basename=basename
1461a30de1fSmrgelse
1471a30de1fSmrg  as_basename=false
1481a30de1fSmrgfi
1491a30de1fSmrg
1501a30de1fSmrg
1511a30de1fSmrg# Name of the executable.
1521a30de1fSmrgas_me=`$as_basename -- "$0" ||
1531a30de1fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1541a30de1fSmrg	 X"$0" : 'X\(//\)$' \| \
1551a30de1fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156b7fb5eacSmrg$as_echo X/"$0" |
1571a30de1fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1581a30de1fSmrg	    s//\1/
1591a30de1fSmrg	    q
1601a30de1fSmrg	  }
1611a30de1fSmrg	  /^X\/\(\/\/\)$/{
1621a30de1fSmrg	    s//\1/
1631a30de1fSmrg	    q
1641a30de1fSmrg	  }
1651a30de1fSmrg	  /^X\/\(\/\).*/{
1661a30de1fSmrg	    s//\1/
1671a30de1fSmrg	    q
1681a30de1fSmrg	  }
1691a30de1fSmrg	  s/.*/./; q'`
1701a30de1fSmrg
1711a30de1fSmrg# CDPATH.
1721a30de1fSmrg$as_unset CDPATH
1731a30de1fSmrg
1741a30de1fSmrg
1751a30de1fSmrgif test "x$CONFIG_SHELL" = x; then
1761a30de1fSmrg  if (eval ":") 2>/dev/null; then
1771a30de1fSmrg  as_have_required=yes
1781a30de1fSmrgelse
1791a30de1fSmrg  as_have_required=no
1801a30de1fSmrgfi
1811a30de1fSmrg
182b7fb5eacSmrg  if test $as_have_required = yes &&	 (eval ":
1831a30de1fSmrg(as_func_return () {
1841a30de1fSmrg  (exit \$1)
1851a30de1fSmrg}
1861a30de1fSmrgas_func_success () {
1871a30de1fSmrg  as_func_return 0
1881a30de1fSmrg}
1891a30de1fSmrgas_func_failure () {
1901a30de1fSmrg  as_func_return 1
1911a30de1fSmrg}
1921a30de1fSmrgas_func_ret_success () {
1931a30de1fSmrg  return 0
1941a30de1fSmrg}
1951a30de1fSmrgas_func_ret_failure () {
1961a30de1fSmrg  return 1
1971a30de1fSmrg}
1981a30de1fSmrg
1991a30de1fSmrgexitcode=0
2001a30de1fSmrgif as_func_success; then
2011a30de1fSmrg  :
2021a30de1fSmrgelse
2031a30de1fSmrg  exitcode=1
2041a30de1fSmrg  echo as_func_success failed.
2051a30de1fSmrgfi
2061a30de1fSmrg
2071a30de1fSmrgif as_func_failure; then
2081a30de1fSmrg  exitcode=1
2091a30de1fSmrg  echo as_func_failure succeeded.
2101a30de1fSmrgfi
2111a30de1fSmrg
2121a30de1fSmrgif as_func_ret_success; then
2131a30de1fSmrg  :
2141a30de1fSmrgelse
2151a30de1fSmrg  exitcode=1
2161a30de1fSmrg  echo as_func_ret_success failed.
2171a30de1fSmrgfi
2181a30de1fSmrg
2191a30de1fSmrgif as_func_ret_failure; then
2201a30de1fSmrg  exitcode=1
2211a30de1fSmrg  echo as_func_ret_failure succeeded.
2221a30de1fSmrgfi
2231a30de1fSmrg
2241a30de1fSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2251a30de1fSmrg  :
2261a30de1fSmrgelse
2271a30de1fSmrg  exitcode=1
2281a30de1fSmrg  echo positional parameters were not saved.
2291a30de1fSmrgfi
2301a30de1fSmrg
2311a30de1fSmrgtest \$exitcode = 0) || { (exit 1); exit 1; }
2321a30de1fSmrg
2331a30de1fSmrg(
2341a30de1fSmrg  as_lineno_1=\$LINENO
2351a30de1fSmrg  as_lineno_2=\$LINENO
2361a30de1fSmrg  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
2371a30de1fSmrg  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
2381a30de1fSmrg") 2> /dev/null; then
2391a30de1fSmrg  :
2401a30de1fSmrgelse
2411a30de1fSmrg  as_candidate_shells=
2421a30de1fSmrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431a30de1fSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2441a30de1fSmrgdo
2451a30de1fSmrg  IFS=$as_save_IFS
2461a30de1fSmrg  test -z "$as_dir" && as_dir=.
2471a30de1fSmrg  case $as_dir in
2481a30de1fSmrg	 /*)
2491a30de1fSmrg	   for as_base in sh bash ksh sh5; do
2501a30de1fSmrg	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
2511a30de1fSmrg	   done;;
2521a30de1fSmrg       esac
2531a30de1fSmrgdone
2541a30de1fSmrgIFS=$as_save_IFS
2551a30de1fSmrg
2561a30de1fSmrg
2571a30de1fSmrg      for as_shell in $as_candidate_shells $SHELL; do
2581a30de1fSmrg	 # Try only shells that exist, to save several forks.
2591a30de1fSmrg	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2601a30de1fSmrg		{ ("$as_shell") 2> /dev/null <<\_ASEOF
2611a30de1fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2621a30de1fSmrg  emulate sh
2631a30de1fSmrg  NULLCMD=:
264b7fb5eacSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2651a30de1fSmrg  # is contrary to our usage.  Disable this feature.
2661a30de1fSmrg  alias -g '${1+"$@"}'='"$@"'
2671a30de1fSmrg  setopt NO_GLOB_SUBST
2681a30de1fSmrgelse
2691a30de1fSmrg  case `(set -o) 2>/dev/null` in
2701a30de1fSmrg  *posix*) set -o posix ;;
2711a30de1fSmrgesac
2721a30de1fSmrg
2731a30de1fSmrgfi
2741a30de1fSmrg
2751a30de1fSmrg
2761a30de1fSmrg:
2771a30de1fSmrg_ASEOF
2781a30de1fSmrg}; then
2791a30de1fSmrg  CONFIG_SHELL=$as_shell
2801a30de1fSmrg	       as_have_required=yes
2811a30de1fSmrg	       if { "$as_shell" 2> /dev/null <<\_ASEOF
2821a30de1fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2831a30de1fSmrg  emulate sh
2841a30de1fSmrg  NULLCMD=:
285b7fb5eacSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2861a30de1fSmrg  # is contrary to our usage.  Disable this feature.
2871a30de1fSmrg  alias -g '${1+"$@"}'='"$@"'
2881a30de1fSmrg  setopt NO_GLOB_SUBST
2891a30de1fSmrgelse
2901a30de1fSmrg  case `(set -o) 2>/dev/null` in
2911a30de1fSmrg  *posix*) set -o posix ;;
2921a30de1fSmrgesac
2931a30de1fSmrg
2941a30de1fSmrgfi
2951a30de1fSmrg
2961a30de1fSmrg
2971a30de1fSmrg:
2981a30de1fSmrg(as_func_return () {
2991a30de1fSmrg  (exit $1)
3001a30de1fSmrg}
3011a30de1fSmrgas_func_success () {
3021a30de1fSmrg  as_func_return 0
3031a30de1fSmrg}
3041a30de1fSmrgas_func_failure () {
3051a30de1fSmrg  as_func_return 1
3061a30de1fSmrg}
3071a30de1fSmrgas_func_ret_success () {
3081a30de1fSmrg  return 0
3091a30de1fSmrg}
3101a30de1fSmrgas_func_ret_failure () {
3111a30de1fSmrg  return 1
3121a30de1fSmrg}
3131a30de1fSmrg
3141a30de1fSmrgexitcode=0
3151a30de1fSmrgif as_func_success; then
3161a30de1fSmrg  :
3171a30de1fSmrgelse
3181a30de1fSmrg  exitcode=1
3191a30de1fSmrg  echo as_func_success failed.
3201a30de1fSmrgfi
3211a30de1fSmrg
3221a30de1fSmrgif as_func_failure; then
3231a30de1fSmrg  exitcode=1
3241a30de1fSmrg  echo as_func_failure succeeded.
3251a30de1fSmrgfi
3261a30de1fSmrg
3271a30de1fSmrgif as_func_ret_success; then
3281a30de1fSmrg  :
3291a30de1fSmrgelse
3301a30de1fSmrg  exitcode=1
3311a30de1fSmrg  echo as_func_ret_success failed.
3321a30de1fSmrgfi
3331a30de1fSmrg
3341a30de1fSmrgif as_func_ret_failure; then
3351a30de1fSmrg  exitcode=1
3361a30de1fSmrg  echo as_func_ret_failure succeeded.
3371a30de1fSmrgfi
3381a30de1fSmrg
3391a30de1fSmrgif ( set x; as_func_ret_success y && test x = "$1" ); then
3401a30de1fSmrg  :
3411a30de1fSmrgelse
3421a30de1fSmrg  exitcode=1
3431a30de1fSmrg  echo positional parameters were not saved.
3441a30de1fSmrgfi
3451a30de1fSmrg
3461a30de1fSmrgtest $exitcode = 0) || { (exit 1); exit 1; }
3471a30de1fSmrg
3481a30de1fSmrg(
3491a30de1fSmrg  as_lineno_1=$LINENO
3501a30de1fSmrg  as_lineno_2=$LINENO
3511a30de1fSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
3521a30de1fSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
3531a30de1fSmrg
3541a30de1fSmrg_ASEOF
3551a30de1fSmrg}; then
3561a30de1fSmrg  break
3571a30de1fSmrgfi
3581a30de1fSmrg
3591a30de1fSmrgfi
3601a30de1fSmrg
3611a30de1fSmrg      done
3621a30de1fSmrg
3631a30de1fSmrg      if test "x$CONFIG_SHELL" != x; then
3641a30de1fSmrg  for as_var in BASH_ENV ENV
365b7fb5eacSmrg	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366b7fb5eacSmrg	done
367b7fb5eacSmrg	export CONFIG_SHELL
368b7fb5eacSmrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
3691a30de1fSmrgfi
3701a30de1fSmrg
3711a30de1fSmrg
3721a30de1fSmrg    if test $as_have_required = no; then
3731a30de1fSmrg  echo This script requires a shell more modern than all the
3741a30de1fSmrg      echo shells that I found on your system.  Please install a
3751a30de1fSmrg      echo modern shell, or manually run the script under such a
3761a30de1fSmrg      echo shell if you do have one.
3771a30de1fSmrg      { (exit 1); exit 1; }
3781a30de1fSmrgfi
3791a30de1fSmrg
3801a30de1fSmrg
3811a30de1fSmrgfi
3821a30de1fSmrg
3831a30de1fSmrgfi
3841a30de1fSmrg
3851a30de1fSmrg
3861a30de1fSmrg
3871a30de1fSmrg(eval "as_func_return () {
3881a30de1fSmrg  (exit \$1)
3891a30de1fSmrg}
3901a30de1fSmrgas_func_success () {
3911a30de1fSmrg  as_func_return 0
3921a30de1fSmrg}
3931a30de1fSmrgas_func_failure () {
3941a30de1fSmrg  as_func_return 1
3951a30de1fSmrg}
3961a30de1fSmrgas_func_ret_success () {
3971a30de1fSmrg  return 0
3981a30de1fSmrg}
3991a30de1fSmrgas_func_ret_failure () {
4001a30de1fSmrg  return 1
4011a30de1fSmrg}
4021a30de1fSmrg
4031a30de1fSmrgexitcode=0
4041a30de1fSmrgif as_func_success; then
4051a30de1fSmrg  :
4061a30de1fSmrgelse
4071a30de1fSmrg  exitcode=1
4081a30de1fSmrg  echo as_func_success failed.
4091a30de1fSmrgfi
4101a30de1fSmrg
4111a30de1fSmrgif as_func_failure; then
4121a30de1fSmrg  exitcode=1
4131a30de1fSmrg  echo as_func_failure succeeded.
4141a30de1fSmrgfi
4151a30de1fSmrg
4161a30de1fSmrgif as_func_ret_success; then
4171a30de1fSmrg  :
4181a30de1fSmrgelse
4191a30de1fSmrg  exitcode=1
4201a30de1fSmrg  echo as_func_ret_success failed.
4211a30de1fSmrgfi
4221a30de1fSmrg
4231a30de1fSmrgif as_func_ret_failure; then
4241a30de1fSmrg  exitcode=1
4251a30de1fSmrg  echo as_func_ret_failure succeeded.
4261a30de1fSmrgfi
4271a30de1fSmrg
4281a30de1fSmrgif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
4291a30de1fSmrg  :
4301a30de1fSmrgelse
4311a30de1fSmrg  exitcode=1
4321a30de1fSmrg  echo positional parameters were not saved.
4331a30de1fSmrgfi
4341a30de1fSmrg
4351a30de1fSmrgtest \$exitcode = 0") || {
4361a30de1fSmrg  echo No shell found that supports shell functions.
437b7fb5eacSmrg  echo Please tell bug-autoconf@gnu.org about your system,
438b7fb5eacSmrg  echo including any error possibly output before this message.
439b7fb5eacSmrg  echo This can help us improve future autoconf versions.
440b7fb5eacSmrg  echo Configuration will now proceed without shell functions.
4411a30de1fSmrg}
4421a30de1fSmrg
4431a30de1fSmrg
4441a30de1fSmrg
4451a30de1fSmrg  as_lineno_1=$LINENO
4461a30de1fSmrg  as_lineno_2=$LINENO
4471a30de1fSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
4481a30de1fSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4491a30de1fSmrg
4501a30de1fSmrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4511a30de1fSmrg  # uniformly replaced by the line number.  The first 'sed' inserts a
4521a30de1fSmrg  # line-number line after each line using $LINENO; the second 'sed'
4531a30de1fSmrg  # does the real work.  The second script uses 'N' to pair each
4541a30de1fSmrg  # line-number line with the line containing $LINENO, and appends
4551a30de1fSmrg  # trailing '-' during substitution so that $LINENO is not a special
4561a30de1fSmrg  # case at line end.
4571a30de1fSmrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4581a30de1fSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
4591a30de1fSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
4601a30de1fSmrg  sed -n '
4611a30de1fSmrg    p
4621a30de1fSmrg    /[$]LINENO/=
4631a30de1fSmrg  ' <$as_myself |
4641a30de1fSmrg    sed '
4651a30de1fSmrg      s/[$]LINENO.*/&-/
4661a30de1fSmrg      t lineno
4671a30de1fSmrg      b
4681a30de1fSmrg      :lineno
4691a30de1fSmrg      N
4701a30de1fSmrg      :loop
4711a30de1fSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4721a30de1fSmrg      t loop
4731a30de1fSmrg      s/-\n.*//
4741a30de1fSmrg    ' >$as_me.lineno &&
4751a30de1fSmrg  chmod +x "$as_me.lineno" ||
476b7fb5eacSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4771a30de1fSmrg   { (exit 1); exit 1; }; }
4781a30de1fSmrg
4791a30de1fSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
4801a30de1fSmrg  # (the dirname of $[0] is not the place where we might find the
4811a30de1fSmrg  # original and so on.  Autoconf is especially sensitive to this).
4821a30de1fSmrg  . "./$as_me.lineno"
4831a30de1fSmrg  # Exit status is that of the last command.
4841a30de1fSmrg  exit
4851a30de1fSmrg}
4861a30de1fSmrg
4871a30de1fSmrg
4881a30de1fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4891a30de1fSmrg  as_dirname=dirname
4901a30de1fSmrgelse
4911a30de1fSmrg  as_dirname=false
4921a30de1fSmrgfi
4931a30de1fSmrg
4941a30de1fSmrgECHO_C= ECHO_N= ECHO_T=
4951a30de1fSmrgcase `echo -n x` in
4961a30de1fSmrg-n*)
4971a30de1fSmrg  case `echo 'x\c'` in
4981a30de1fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4991a30de1fSmrg  *)   ECHO_C='\c';;
5001a30de1fSmrg  esac;;
5011a30de1fSmrg*)
5021a30de1fSmrg  ECHO_N='-n';;
5031a30de1fSmrgesac
5041a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
5051a30de1fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5061a30de1fSmrg  as_expr=expr
5071a30de1fSmrgelse
5081a30de1fSmrg  as_expr=false
5091a30de1fSmrgfi
5101a30de1fSmrg
5111a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.file
5121a30de1fSmrgif test -d conf$$.dir; then
5131a30de1fSmrg  rm -f conf$$.dir/conf$$.file
5141a30de1fSmrgelse
5151a30de1fSmrg  rm -f conf$$.dir
516b7fb5eacSmrg  mkdir conf$$.dir 2>/dev/null
517b7fb5eacSmrgfi
518b7fb5eacSmrgif (echo >conf$$.file) 2>/dev/null; then
519b7fb5eacSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
520b7fb5eacSmrg    as_ln_s='ln -s'
521b7fb5eacSmrg    # ... but there are two gotchas:
522b7fb5eacSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523b7fb5eacSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524b7fb5eacSmrg    # In both cases, we have to default to `cp -p'.
525b7fb5eacSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526b7fb5eacSmrg      as_ln_s='cp -p'
527b7fb5eacSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
528b7fb5eacSmrg    as_ln_s=ln
529b7fb5eacSmrg  else
5301a30de1fSmrg    as_ln_s='cp -p'
531b7fb5eacSmrg  fi
5321a30de1fSmrgelse
5331a30de1fSmrg  as_ln_s='cp -p'
5341a30de1fSmrgfi
5351a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5361a30de1fSmrgrmdir conf$$.dir 2>/dev/null
5371a30de1fSmrg
5381a30de1fSmrgif mkdir -p . 2>/dev/null; then
5391a30de1fSmrg  as_mkdir_p=:
5401a30de1fSmrgelse
5411a30de1fSmrg  test -d ./-p && rmdir ./-p
5421a30de1fSmrg  as_mkdir_p=false
5431a30de1fSmrgfi
5441a30de1fSmrg
5451a30de1fSmrgif test -x / >/dev/null 2>&1; then
5461a30de1fSmrg  as_test_x='test -x'
5471a30de1fSmrgelse
5481a30de1fSmrg  if ls -dL / >/dev/null 2>&1; then
5491a30de1fSmrg    as_ls_L_option=L
5501a30de1fSmrg  else
5511a30de1fSmrg    as_ls_L_option=
5521a30de1fSmrg  fi
5531a30de1fSmrg  as_test_x='
5541a30de1fSmrg    eval sh -c '\''
5551a30de1fSmrg      if test -d "$1"; then
556b7fb5eacSmrg	test -d "$1/.";
5571a30de1fSmrg      else
5581a30de1fSmrg	case $1 in
559b7fb5eacSmrg	-*)set "./$1";;
5601a30de1fSmrg	esac;
5611a30de1fSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5621a30de1fSmrg	???[sx]*):;;*)false;;esac;fi
5631a30de1fSmrg    '\'' sh
5641a30de1fSmrg  '
5651a30de1fSmrgfi
5661a30de1fSmrgas_executable_p=$as_test_x
5671a30de1fSmrg
5681a30de1fSmrg# Sed expression to map a string onto a valid CPP name.
5691a30de1fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5701a30de1fSmrg
5711a30de1fSmrg# Sed expression to map a string onto a valid variable name.
5721a30de1fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5731a30de1fSmrg
5741a30de1fSmrg
5751a30de1fSmrg
5761a30de1fSmrgexec 7<&0 </dev/null 6>&1
5771a30de1fSmrg
5781a30de1fSmrg# Name of the host.
5791a30de1fSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
5801a30de1fSmrg# so uname gets run too.
5811a30de1fSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5821a30de1fSmrg
5831a30de1fSmrg#
5841a30de1fSmrg# Initializations.
5851a30de1fSmrg#
5861a30de1fSmrgac_default_prefix=/usr/local
5871a30de1fSmrgac_clean_files=
5881a30de1fSmrgac_config_libobj_dir=.
5891a30de1fSmrgLIBOBJS=
5901a30de1fSmrgcross_compiling=no
5911a30de1fSmrgsubdirs=
5921a30de1fSmrgMFLAGS=
5931a30de1fSmrgMAKEFLAGS=
5941a30de1fSmrgSHELL=${CONFIG_SHELL-/bin/sh}
5951a30de1fSmrg
5961a30de1fSmrg# Identity of this package.
5971a30de1fSmrgPACKAGE_NAME='xmodmap'
5981a30de1fSmrgPACKAGE_TARNAME='xmodmap'
599b7fb5eacSmrgPACKAGE_VERSION='1.0.4'
600b7fb5eacSmrgPACKAGE_STRING='xmodmap 1.0.4'
6011a30de1fSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
6021a30de1fSmrg
603b7fb5eacSmrg# Factoring default headers for most tests.
604b7fb5eacSmrgac_includes_default="\
605b7fb5eacSmrg#include <stdio.h>
606b7fb5eacSmrg#ifdef HAVE_SYS_TYPES_H
607b7fb5eacSmrg# include <sys/types.h>
608b7fb5eacSmrg#endif
609b7fb5eacSmrg#ifdef HAVE_SYS_STAT_H
610b7fb5eacSmrg# include <sys/stat.h>
611b7fb5eacSmrg#endif
612b7fb5eacSmrg#ifdef STDC_HEADERS
613b7fb5eacSmrg# include <stdlib.h>
614b7fb5eacSmrg# include <stddef.h>
615b7fb5eacSmrg#else
616b7fb5eacSmrg# ifdef HAVE_STDLIB_H
617b7fb5eacSmrg#  include <stdlib.h>
618b7fb5eacSmrg# endif
619b7fb5eacSmrg#endif
620b7fb5eacSmrg#ifdef HAVE_STRING_H
621b7fb5eacSmrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622b7fb5eacSmrg#  include <memory.h>
623b7fb5eacSmrg# endif
624b7fb5eacSmrg# include <string.h>
625b7fb5eacSmrg#endif
626b7fb5eacSmrg#ifdef HAVE_STRINGS_H
627b7fb5eacSmrg# include <strings.h>
628b7fb5eacSmrg#endif
629b7fb5eacSmrg#ifdef HAVE_INTTYPES_H
630b7fb5eacSmrg# include <inttypes.h>
631b7fb5eacSmrg#endif
632b7fb5eacSmrg#ifdef HAVE_STDINT_H
633b7fb5eacSmrg# include <stdint.h>
634b7fb5eacSmrg#endif
635b7fb5eacSmrg#ifdef HAVE_UNISTD_H
636b7fb5eacSmrg# include <unistd.h>
637b7fb5eacSmrg#endif"
638b7fb5eacSmrg
639b7fb5eacSmrgac_subst_vars='am__EXEEXT_FALSE
640b7fb5eacSmrgam__EXEEXT_TRUE
641b7fb5eacSmrgLTLIBOBJS
642b7fb5eacSmrgLIBOBJS
6431a30de1fSmrgLINT_FALSE
644b7fb5eacSmrgLINT_TRUE
645b7fb5eacSmrgLINT_FLAGS
646b7fb5eacSmrgLINT
647b7fb5eacSmrgXMODMAP_LIBS
648b7fb5eacSmrgXMODMAP_CFLAGS
649b7fb5eacSmrgPKG_CONFIG
6501a30de1fSmrgADMIN_MAN_DIR
651b7fb5eacSmrgDRIVER_MAN_DIR
652b7fb5eacSmrgMISC_MAN_DIR
653b7fb5eacSmrgFILE_MAN_DIR
654b7fb5eacSmrgLIB_MAN_DIR
655b7fb5eacSmrgAPP_MAN_DIR
656b7fb5eacSmrgADMIN_MAN_SUFFIX
657b7fb5eacSmrgDRIVER_MAN_SUFFIX
658b7fb5eacSmrgMISC_MAN_SUFFIX
659b7fb5eacSmrgFILE_MAN_SUFFIX
660b7fb5eacSmrgLIB_MAN_SUFFIX
661b7fb5eacSmrgAPP_MAN_SUFFIX
662b7fb5eacSmrghost_os
663b7fb5eacSmrghost_vendor
664b7fb5eacSmrghost_cpu
665b7fb5eacSmrghost
666b7fb5eacSmrgbuild_os
667b7fb5eacSmrgbuild_vendor
668b7fb5eacSmrgbuild_cpu
669b7fb5eacSmrgbuild
670b7fb5eacSmrgdistcleancheck_listfiles
671b7fb5eacSmrgCHANGELOG_CMD
672b7fb5eacSmrgAM_BACKSLASH
673b7fb5eacSmrgAM_DEFAULT_VERBOSITY
674b7fb5eacSmrgCWARNFLAGS
675b7fb5eacSmrgEGREP
676b7fb5eacSmrgGREP
677b7fb5eacSmrgCPP
678b7fb5eacSmrgam__fastdepCC_FALSE
679b7fb5eacSmrgam__fastdepCC_TRUE
680b7fb5eacSmrgCCDEPMODE
681b7fb5eacSmrgAMDEPBACKSLASH
682b7fb5eacSmrgAMDEP_FALSE
683b7fb5eacSmrgAMDEP_TRUE
684b7fb5eacSmrgam__quote
685b7fb5eacSmrgam__include
686b7fb5eacSmrgDEPDIR
687b7fb5eacSmrgOBJEXT
688b7fb5eacSmrgEXEEXT
689b7fb5eacSmrgac_ct_CC
690b7fb5eacSmrgCPPFLAGS
691b7fb5eacSmrgLDFLAGS
692b7fb5eacSmrgCFLAGS
693b7fb5eacSmrgCC
694b7fb5eacSmrgMAINT
695b7fb5eacSmrgMAINTAINER_MODE_FALSE
696b7fb5eacSmrgMAINTAINER_MODE_TRUE
697b7fb5eacSmrgam__untar
698b7fb5eacSmrgam__tar
699b7fb5eacSmrgAMTAR
700b7fb5eacSmrgam__leading_dot
701b7fb5eacSmrgSET_MAKE
702b7fb5eacSmrgAWK
703b7fb5eacSmrgmkdir_p
704b7fb5eacSmrgMKDIR_P
705b7fb5eacSmrgINSTALL_STRIP_PROGRAM
706b7fb5eacSmrgSTRIP
707b7fb5eacSmrginstall_sh
708b7fb5eacSmrgMAKEINFO
709b7fb5eacSmrgAUTOHEADER
710b7fb5eacSmrgAUTOMAKE
711b7fb5eacSmrgAUTOCONF
712b7fb5eacSmrgACLOCAL
713b7fb5eacSmrgVERSION
714b7fb5eacSmrgPACKAGE
715b7fb5eacSmrgCYGPATH_W
716b7fb5eacSmrgam__isrc
717b7fb5eacSmrgINSTALL_DATA
718b7fb5eacSmrgINSTALL_SCRIPT
719b7fb5eacSmrgINSTALL_PROGRAM
720b7fb5eacSmrgtarget_alias
721b7fb5eacSmrghost_alias
722b7fb5eacSmrgbuild_alias
723b7fb5eacSmrgLIBS
724b7fb5eacSmrgECHO_T
725b7fb5eacSmrgECHO_N
726b7fb5eacSmrgECHO_C
727b7fb5eacSmrgDEFS
728b7fb5eacSmrgmandir
729b7fb5eacSmrglocaledir
730b7fb5eacSmrglibdir
731b7fb5eacSmrgpsdir
732b7fb5eacSmrgpdfdir
733b7fb5eacSmrgdvidir
734b7fb5eacSmrghtmldir
735b7fb5eacSmrginfodir
736b7fb5eacSmrgdocdir
737b7fb5eacSmrgoldincludedir
738b7fb5eacSmrgincludedir
739b7fb5eacSmrglocalstatedir
740b7fb5eacSmrgsharedstatedir
741b7fb5eacSmrgsysconfdir
742b7fb5eacSmrgdatadir
743b7fb5eacSmrgdatarootdir
744b7fb5eacSmrglibexecdir
745b7fb5eacSmrgsbindir
746b7fb5eacSmrgbindir
747b7fb5eacSmrgprogram_transform_name
748b7fb5eacSmrgprefix
749b7fb5eacSmrgexec_prefix
750b7fb5eacSmrgPACKAGE_BUGREPORT
751b7fb5eacSmrgPACKAGE_STRING
752b7fb5eacSmrgPACKAGE_VERSION
753b7fb5eacSmrgPACKAGE_TARNAME
754b7fb5eacSmrgPACKAGE_NAME
755b7fb5eacSmrgPATH_SEPARATOR
756b7fb5eacSmrgSHELL'
7571a30de1fSmrgac_subst_files=''
758b7fb5eacSmrgac_user_opts='
759b7fb5eacSmrgenable_option_checking
760b7fb5eacSmrgenable_maintainer_mode
761b7fb5eacSmrgenable_dependency_tracking
762b7fb5eacSmrgenable_silent_rules
763b7fb5eacSmrgenable_strict_compilation
764b7fb5eacSmrgwith_release_version
765b7fb5eacSmrgwith_lint
766b7fb5eacSmrg'
7671a30de1fSmrg      ac_precious_vars='build_alias
7681a30de1fSmrghost_alias
7691a30de1fSmrgtarget_alias
7701a30de1fSmrgCC
7711a30de1fSmrgCFLAGS
7721a30de1fSmrgLDFLAGS
7731a30de1fSmrgLIBS
7741a30de1fSmrgCPPFLAGS
775b7fb5eacSmrgCPP
7761a30de1fSmrgPKG_CONFIG
777b7fb5eacSmrgXMODMAP_CFLAGS
778b7fb5eacSmrgXMODMAP_LIBS'
7791a30de1fSmrg
7801a30de1fSmrg
7811a30de1fSmrg# Initialize some variables set by options.
7821a30de1fSmrgac_init_help=
7831a30de1fSmrgac_init_version=false
784b7fb5eacSmrgac_unrecognized_opts=
785b7fb5eacSmrgac_unrecognized_sep=
7861a30de1fSmrg# The variables have the same names as the options, with
7871a30de1fSmrg# dashes changed to underlines.
7881a30de1fSmrgcache_file=/dev/null
7891a30de1fSmrgexec_prefix=NONE
7901a30de1fSmrgno_create=
7911a30de1fSmrgno_recursion=
7921a30de1fSmrgprefix=NONE
7931a30de1fSmrgprogram_prefix=NONE
7941a30de1fSmrgprogram_suffix=NONE
7951a30de1fSmrgprogram_transform_name=s,x,x,
7961a30de1fSmrgsilent=
7971a30de1fSmrgsite=
7981a30de1fSmrgsrcdir=
7991a30de1fSmrgverbose=
8001a30de1fSmrgx_includes=NONE
8011a30de1fSmrgx_libraries=NONE
8021a30de1fSmrg
8031a30de1fSmrg# Installation directory options.
8041a30de1fSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8051a30de1fSmrg# and all the variables that are supposed to be based on exec_prefix
8061a30de1fSmrg# by default will actually change.
8071a30de1fSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
8081a30de1fSmrg# (The list follows the same order as the GNU Coding Standards.)
8091a30de1fSmrgbindir='${exec_prefix}/bin'
8101a30de1fSmrgsbindir='${exec_prefix}/sbin'
8111a30de1fSmrglibexecdir='${exec_prefix}/libexec'
8121a30de1fSmrgdatarootdir='${prefix}/share'
8131a30de1fSmrgdatadir='${datarootdir}'
8141a30de1fSmrgsysconfdir='${prefix}/etc'
8151a30de1fSmrgsharedstatedir='${prefix}/com'
8161a30de1fSmrglocalstatedir='${prefix}/var'
8171a30de1fSmrgincludedir='${prefix}/include'
8181a30de1fSmrgoldincludedir='/usr/include'
8191a30de1fSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
8201a30de1fSmrginfodir='${datarootdir}/info'
8211a30de1fSmrghtmldir='${docdir}'
8221a30de1fSmrgdvidir='${docdir}'
8231a30de1fSmrgpdfdir='${docdir}'
8241a30de1fSmrgpsdir='${docdir}'
8251a30de1fSmrglibdir='${exec_prefix}/lib'
8261a30de1fSmrglocaledir='${datarootdir}/locale'
8271a30de1fSmrgmandir='${datarootdir}/man'
8281a30de1fSmrg
8291a30de1fSmrgac_prev=
8301a30de1fSmrgac_dashdash=
8311a30de1fSmrgfor ac_option
8321a30de1fSmrgdo
8331a30de1fSmrg  # If the previous option needs an argument, assign it.
8341a30de1fSmrg  if test -n "$ac_prev"; then
8351a30de1fSmrg    eval $ac_prev=\$ac_option
8361a30de1fSmrg    ac_prev=
8371a30de1fSmrg    continue
8381a30de1fSmrg  fi
8391a30de1fSmrg
8401a30de1fSmrg  case $ac_option in
8411a30de1fSmrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
8421a30de1fSmrg  *)	ac_optarg=yes ;;
8431a30de1fSmrg  esac
8441a30de1fSmrg
8451a30de1fSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
8461a30de1fSmrg
8471a30de1fSmrg  case $ac_dashdash$ac_option in
8481a30de1fSmrg  --)
8491a30de1fSmrg    ac_dashdash=yes ;;
8501a30de1fSmrg
8511a30de1fSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8521a30de1fSmrg    ac_prev=bindir ;;
8531a30de1fSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8541a30de1fSmrg    bindir=$ac_optarg ;;
8551a30de1fSmrg
8561a30de1fSmrg  -build | --build | --buil | --bui | --bu)
8571a30de1fSmrg    ac_prev=build_alias ;;
8581a30de1fSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8591a30de1fSmrg    build_alias=$ac_optarg ;;
8601a30de1fSmrg
8611a30de1fSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8621a30de1fSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8631a30de1fSmrg    ac_prev=cache_file ;;
8641a30de1fSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8651a30de1fSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8661a30de1fSmrg    cache_file=$ac_optarg ;;
8671a30de1fSmrg
8681a30de1fSmrg  --config-cache | -C)
8691a30de1fSmrg    cache_file=config.cache ;;
8701a30de1fSmrg
8711a30de1fSmrg  -datadir | --datadir | --datadi | --datad)
8721a30de1fSmrg    ac_prev=datadir ;;
8731a30de1fSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8741a30de1fSmrg    datadir=$ac_optarg ;;
8751a30de1fSmrg
8761a30de1fSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
8771a30de1fSmrg  | --dataroo | --dataro | --datar)
8781a30de1fSmrg    ac_prev=datarootdir ;;
8791a30de1fSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
8801a30de1fSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
8811a30de1fSmrg    datarootdir=$ac_optarg ;;
8821a30de1fSmrg
8831a30de1fSmrg  -disable-* | --disable-*)
884b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8851a30de1fSmrg    # Reject names that are not valid shell variable names.
886b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887b7fb5eacSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
8881a30de1fSmrg   { (exit 1); exit 1; }; }
889b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
890b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891b7fb5eacSmrg    case $ac_user_opts in
892b7fb5eacSmrg      *"
893b7fb5eacSmrg"enable_$ac_useropt"
894b7fb5eacSmrg"*) ;;
895b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
897b7fb5eacSmrg    esac
898b7fb5eacSmrg    eval enable_$ac_useropt=no ;;
8991a30de1fSmrg
9001a30de1fSmrg  -docdir | --docdir | --docdi | --doc | --do)
9011a30de1fSmrg    ac_prev=docdir ;;
9021a30de1fSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
9031a30de1fSmrg    docdir=$ac_optarg ;;
9041a30de1fSmrg
9051a30de1fSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
9061a30de1fSmrg    ac_prev=dvidir ;;
9071a30de1fSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
9081a30de1fSmrg    dvidir=$ac_optarg ;;
9091a30de1fSmrg
9101a30de1fSmrg  -enable-* | --enable-*)
911b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9121a30de1fSmrg    # Reject names that are not valid shell variable names.
913b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914b7fb5eacSmrg      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
9151a30de1fSmrg   { (exit 1); exit 1; }; }
916b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
917b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918b7fb5eacSmrg    case $ac_user_opts in
919b7fb5eacSmrg      *"
920b7fb5eacSmrg"enable_$ac_useropt"
921b7fb5eacSmrg"*) ;;
922b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
924b7fb5eacSmrg    esac
925b7fb5eacSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9261a30de1fSmrg
9271a30de1fSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9281a30de1fSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9291a30de1fSmrg  | --exec | --exe | --ex)
9301a30de1fSmrg    ac_prev=exec_prefix ;;
9311a30de1fSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9321a30de1fSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9331a30de1fSmrg  | --exec=* | --exe=* | --ex=*)
9341a30de1fSmrg    exec_prefix=$ac_optarg ;;
9351a30de1fSmrg
9361a30de1fSmrg  -gas | --gas | --ga | --g)
9371a30de1fSmrg    # Obsolete; use --with-gas.
9381a30de1fSmrg    with_gas=yes ;;
9391a30de1fSmrg
9401a30de1fSmrg  -help | --help | --hel | --he | -h)
9411a30de1fSmrg    ac_init_help=long ;;
9421a30de1fSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9431a30de1fSmrg    ac_init_help=recursive ;;
9441a30de1fSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9451a30de1fSmrg    ac_init_help=short ;;
9461a30de1fSmrg
9471a30de1fSmrg  -host | --host | --hos | --ho)
9481a30de1fSmrg    ac_prev=host_alias ;;
9491a30de1fSmrg  -host=* | --host=* | --hos=* | --ho=*)
9501a30de1fSmrg    host_alias=$ac_optarg ;;
9511a30de1fSmrg
9521a30de1fSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
9531a30de1fSmrg    ac_prev=htmldir ;;
9541a30de1fSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
9551a30de1fSmrg  | --ht=*)
9561a30de1fSmrg    htmldir=$ac_optarg ;;
9571a30de1fSmrg
9581a30de1fSmrg  -includedir | --includedir | --includedi | --included | --include \
9591a30de1fSmrg  | --includ | --inclu | --incl | --inc)
9601a30de1fSmrg    ac_prev=includedir ;;
9611a30de1fSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9621a30de1fSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9631a30de1fSmrg    includedir=$ac_optarg ;;
9641a30de1fSmrg
9651a30de1fSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9661a30de1fSmrg    ac_prev=infodir ;;
9671a30de1fSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9681a30de1fSmrg    infodir=$ac_optarg ;;
9691a30de1fSmrg
9701a30de1fSmrg  -libdir | --libdir | --libdi | --libd)
9711a30de1fSmrg    ac_prev=libdir ;;
9721a30de1fSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9731a30de1fSmrg    libdir=$ac_optarg ;;
9741a30de1fSmrg
9751a30de1fSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9761a30de1fSmrg  | --libexe | --libex | --libe)
9771a30de1fSmrg    ac_prev=libexecdir ;;
9781a30de1fSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9791a30de1fSmrg  | --libexe=* | --libex=* | --libe=*)
9801a30de1fSmrg    libexecdir=$ac_optarg ;;
9811a30de1fSmrg
9821a30de1fSmrg  -localedir | --localedir | --localedi | --localed | --locale)
9831a30de1fSmrg    ac_prev=localedir ;;
9841a30de1fSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
9851a30de1fSmrg    localedir=$ac_optarg ;;
9861a30de1fSmrg
9871a30de1fSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
9881a30de1fSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
9891a30de1fSmrg    ac_prev=localstatedir ;;
9901a30de1fSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
9911a30de1fSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
9921a30de1fSmrg    localstatedir=$ac_optarg ;;
9931a30de1fSmrg
9941a30de1fSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
9951a30de1fSmrg    ac_prev=mandir ;;
9961a30de1fSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9971a30de1fSmrg    mandir=$ac_optarg ;;
9981a30de1fSmrg
9991a30de1fSmrg  -nfp | --nfp | --nf)
10001a30de1fSmrg    # Obsolete; use --without-fp.
10011a30de1fSmrg    with_fp=no ;;
10021a30de1fSmrg
10031a30de1fSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10041a30de1fSmrg  | --no-cr | --no-c | -n)
10051a30de1fSmrg    no_create=yes ;;
10061a30de1fSmrg
10071a30de1fSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10081a30de1fSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10091a30de1fSmrg    no_recursion=yes ;;
10101a30de1fSmrg
10111a30de1fSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10121a30de1fSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10131a30de1fSmrg  | --oldin | --oldi | --old | --ol | --o)
10141a30de1fSmrg    ac_prev=oldincludedir ;;
10151a30de1fSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10161a30de1fSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10171a30de1fSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10181a30de1fSmrg    oldincludedir=$ac_optarg ;;
10191a30de1fSmrg
10201a30de1fSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10211a30de1fSmrg    ac_prev=prefix ;;
10221a30de1fSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10231a30de1fSmrg    prefix=$ac_optarg ;;
10241a30de1fSmrg
10251a30de1fSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10261a30de1fSmrg  | --program-pre | --program-pr | --program-p)
10271a30de1fSmrg    ac_prev=program_prefix ;;
10281a30de1fSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10291a30de1fSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10301a30de1fSmrg    program_prefix=$ac_optarg ;;
10311a30de1fSmrg
10321a30de1fSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10331a30de1fSmrg  | --program-suf | --program-su | --program-s)
10341a30de1fSmrg    ac_prev=program_suffix ;;
10351a30de1fSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10361a30de1fSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10371a30de1fSmrg    program_suffix=$ac_optarg ;;
10381a30de1fSmrg
10391a30de1fSmrg  -program-transform-name | --program-transform-name \
10401a30de1fSmrg  | --program-transform-nam | --program-transform-na \
10411a30de1fSmrg  | --program-transform-n | --program-transform- \
10421a30de1fSmrg  | --program-transform | --program-transfor \
10431a30de1fSmrg  | --program-transfo | --program-transf \
10441a30de1fSmrg  | --program-trans | --program-tran \
10451a30de1fSmrg  | --progr-tra | --program-tr | --program-t)
10461a30de1fSmrg    ac_prev=program_transform_name ;;
10471a30de1fSmrg  -program-transform-name=* | --program-transform-name=* \
10481a30de1fSmrg  | --program-transform-nam=* | --program-transform-na=* \
10491a30de1fSmrg  | --program-transform-n=* | --program-transform-=* \
10501a30de1fSmrg  | --program-transform=* | --program-transfor=* \
10511a30de1fSmrg  | --program-transfo=* | --program-transf=* \
10521a30de1fSmrg  | --program-trans=* | --program-tran=* \
10531a30de1fSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10541a30de1fSmrg    program_transform_name=$ac_optarg ;;
10551a30de1fSmrg
10561a30de1fSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
10571a30de1fSmrg    ac_prev=pdfdir ;;
10581a30de1fSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
10591a30de1fSmrg    pdfdir=$ac_optarg ;;
10601a30de1fSmrg
10611a30de1fSmrg  -psdir | --psdir | --psdi | --psd | --ps)
10621a30de1fSmrg    ac_prev=psdir ;;
10631a30de1fSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
10641a30de1fSmrg    psdir=$ac_optarg ;;
10651a30de1fSmrg
10661a30de1fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10671a30de1fSmrg  | -silent | --silent | --silen | --sile | --sil)
10681a30de1fSmrg    silent=yes ;;
10691a30de1fSmrg
10701a30de1fSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10711a30de1fSmrg    ac_prev=sbindir ;;
10721a30de1fSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10731a30de1fSmrg  | --sbi=* | --sb=*)
10741a30de1fSmrg    sbindir=$ac_optarg ;;
10751a30de1fSmrg
10761a30de1fSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
10771a30de1fSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
10781a30de1fSmrg  | --sharedst | --shareds | --shared | --share | --shar \
10791a30de1fSmrg  | --sha | --sh)
10801a30de1fSmrg    ac_prev=sharedstatedir ;;
10811a30de1fSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
10821a30de1fSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
10831a30de1fSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
10841a30de1fSmrg  | --sha=* | --sh=*)
10851a30de1fSmrg    sharedstatedir=$ac_optarg ;;
10861a30de1fSmrg
10871a30de1fSmrg  -site | --site | --sit)
10881a30de1fSmrg    ac_prev=site ;;
10891a30de1fSmrg  -site=* | --site=* | --sit=*)
10901a30de1fSmrg    site=$ac_optarg ;;
10911a30de1fSmrg
10921a30de1fSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10931a30de1fSmrg    ac_prev=srcdir ;;
10941a30de1fSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10951a30de1fSmrg    srcdir=$ac_optarg ;;
10961a30de1fSmrg
10971a30de1fSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
10981a30de1fSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
10991a30de1fSmrg    ac_prev=sysconfdir ;;
11001a30de1fSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11011a30de1fSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11021a30de1fSmrg    sysconfdir=$ac_optarg ;;
11031a30de1fSmrg
11041a30de1fSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11051a30de1fSmrg    ac_prev=target_alias ;;
11061a30de1fSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11071a30de1fSmrg    target_alias=$ac_optarg ;;
11081a30de1fSmrg
11091a30de1fSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11101a30de1fSmrg    verbose=yes ;;
11111a30de1fSmrg
11121a30de1fSmrg  -version | --version | --versio | --versi | --vers | -V)
11131a30de1fSmrg    ac_init_version=: ;;
11141a30de1fSmrg
11151a30de1fSmrg  -with-* | --with-*)
1116b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11171a30de1fSmrg    # Reject names that are not valid shell variable names.
1118b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119b7fb5eacSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11201a30de1fSmrg   { (exit 1); exit 1; }; }
1121b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
1122b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123b7fb5eacSmrg    case $ac_user_opts in
1124b7fb5eacSmrg      *"
1125b7fb5eacSmrg"with_$ac_useropt"
1126b7fb5eacSmrg"*) ;;
1127b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
1129b7fb5eacSmrg    esac
1130b7fb5eacSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11311a30de1fSmrg
11321a30de1fSmrg  -without-* | --without-*)
1133b7fb5eacSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11341a30de1fSmrg    # Reject names that are not valid shell variable names.
1135b7fb5eacSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136b7fb5eacSmrg      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
11371a30de1fSmrg   { (exit 1); exit 1; }; }
1138b7fb5eacSmrg    ac_useropt_orig=$ac_useropt
1139b7fb5eacSmrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140b7fb5eacSmrg    case $ac_user_opts in
1141b7fb5eacSmrg      *"
1142b7fb5eacSmrg"with_$ac_useropt"
1143b7fb5eacSmrg"*) ;;
1144b7fb5eacSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145b7fb5eacSmrg	 ac_unrecognized_sep=', ';;
1146b7fb5eacSmrg    esac
1147b7fb5eacSmrg    eval with_$ac_useropt=no ;;
11481a30de1fSmrg
11491a30de1fSmrg  --x)
11501a30de1fSmrg    # Obsolete; use --with-x.
11511a30de1fSmrg    with_x=yes ;;
11521a30de1fSmrg
11531a30de1fSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11541a30de1fSmrg  | --x-incl | --x-inc | --x-in | --x-i)
11551a30de1fSmrg    ac_prev=x_includes ;;
11561a30de1fSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11571a30de1fSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11581a30de1fSmrg    x_includes=$ac_optarg ;;
11591a30de1fSmrg
11601a30de1fSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11611a30de1fSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11621a30de1fSmrg    ac_prev=x_libraries ;;
11631a30de1fSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11641a30de1fSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11651a30de1fSmrg    x_libraries=$ac_optarg ;;
11661a30de1fSmrg
1167b7fb5eacSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
11681a30de1fSmrgTry \`$0 --help' for more information." >&2
11691a30de1fSmrg   { (exit 1); exit 1; }; }
11701a30de1fSmrg    ;;
11711a30de1fSmrg
11721a30de1fSmrg  *=*)
11731a30de1fSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11741a30de1fSmrg    # Reject names that are not valid shell variable names.
11751a30de1fSmrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1176b7fb5eacSmrg      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11771a30de1fSmrg   { (exit 1); exit 1; }; }
11781a30de1fSmrg    eval $ac_envvar=\$ac_optarg
11791a30de1fSmrg    export $ac_envvar ;;
11801a30de1fSmrg
11811a30de1fSmrg  *)
11821a30de1fSmrg    # FIXME: should be removed in autoconf 3.0.
1183b7fb5eacSmrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11841a30de1fSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185b7fb5eacSmrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11861a30de1fSmrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11871a30de1fSmrg    ;;
11881a30de1fSmrg
11891a30de1fSmrg  esac
11901a30de1fSmrgdone
11911a30de1fSmrg
11921a30de1fSmrgif test -n "$ac_prev"; then
11931a30de1fSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194b7fb5eacSmrg  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
11951a30de1fSmrg   { (exit 1); exit 1; }; }
11961a30de1fSmrgfi
11971a30de1fSmrg
1198b7fb5eacSmrgif test -n "$ac_unrecognized_opts"; then
1199b7fb5eacSmrg  case $enable_option_checking in
1200b7fb5eacSmrg    no) ;;
1201b7fb5eacSmrg    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1202b7fb5eacSmrg   { (exit 1); exit 1; }; } ;;
1203b7fb5eacSmrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204b7fb5eacSmrg  esac
1205b7fb5eacSmrgfi
1206b7fb5eacSmrg
1207b7fb5eacSmrg# Check all directory arguments for consistency.
12081a30de1fSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
12091a30de1fSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
12101a30de1fSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
12111a30de1fSmrg		libdir localedir mandir
12121a30de1fSmrgdo
12131a30de1fSmrg  eval ac_val=\$$ac_var
1214b7fb5eacSmrg  # Remove trailing slashes.
1215b7fb5eacSmrg  case $ac_val in
1216b7fb5eacSmrg    */ )
1217b7fb5eacSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218b7fb5eacSmrg      eval $ac_var=\$ac_val;;
1219b7fb5eacSmrg  esac
1220b7fb5eacSmrg  # Be sure to have absolute directory names.
12211a30de1fSmrg  case $ac_val in
12221a30de1fSmrg    [\\/$]* | ?:[\\/]* )  continue;;
12231a30de1fSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12241a30de1fSmrg  esac
1225b7fb5eacSmrg  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
12261a30de1fSmrg   { (exit 1); exit 1; }; }
12271a30de1fSmrgdone
12281a30de1fSmrg
12291a30de1fSmrg# There might be people who depend on the old broken behavior: `$host'
12301a30de1fSmrg# used to hold the argument of --host etc.
12311a30de1fSmrg# FIXME: To remove some day.
12321a30de1fSmrgbuild=$build_alias
12331a30de1fSmrghost=$host_alias
12341a30de1fSmrgtarget=$target_alias
12351a30de1fSmrg
12361a30de1fSmrg# FIXME: To remove some day.
12371a30de1fSmrgif test "x$host_alias" != x; then
12381a30de1fSmrg  if test "x$build_alias" = x; then
12391a30de1fSmrg    cross_compiling=maybe
1240b7fb5eacSmrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12411a30de1fSmrg    If a cross compiler is detected then cross compile mode will be used." >&2
12421a30de1fSmrg  elif test "x$build_alias" != "x$host_alias"; then
12431a30de1fSmrg    cross_compiling=yes
12441a30de1fSmrg  fi
12451a30de1fSmrgfi
12461a30de1fSmrg
12471a30de1fSmrgac_tool_prefix=
12481a30de1fSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12491a30de1fSmrg
12501a30de1fSmrgtest "$silent" = yes && exec 6>/dev/null
12511a30de1fSmrg
12521a30de1fSmrg
12531a30de1fSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
12541a30de1fSmrgac_ls_di=`ls -di .` &&
12551a30de1fSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256b7fb5eacSmrg  { $as_echo "$as_me: error: working directory cannot be determined" >&2
12571a30de1fSmrg   { (exit 1); exit 1; }; }
12581a30de1fSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259b7fb5eacSmrg  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
12601a30de1fSmrg   { (exit 1); exit 1; }; }
12611a30de1fSmrg
12621a30de1fSmrg
12631a30de1fSmrg# Find the source files, if location was not specified.
12641a30de1fSmrgif test -z "$srcdir"; then
12651a30de1fSmrg  ac_srcdir_defaulted=yes
12661a30de1fSmrg  # Try the directory containing this script, then the parent directory.
1267b7fb5eacSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1268b7fb5eacSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269b7fb5eacSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1270b7fb5eacSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1271b7fb5eacSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272b7fb5eacSmrg$as_echo X"$as_myself" |
12731a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12741a30de1fSmrg	    s//\1/
12751a30de1fSmrg	    q
12761a30de1fSmrg	  }
12771a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
12781a30de1fSmrg	    s//\1/
12791a30de1fSmrg	    q
12801a30de1fSmrg	  }
12811a30de1fSmrg	  /^X\(\/\/\)$/{
12821a30de1fSmrg	    s//\1/
12831a30de1fSmrg	    q
12841a30de1fSmrg	  }
12851a30de1fSmrg	  /^X\(\/\).*/{
12861a30de1fSmrg	    s//\1/
12871a30de1fSmrg	    q
12881a30de1fSmrg	  }
12891a30de1fSmrg	  s/.*/./; q'`
12901a30de1fSmrg  srcdir=$ac_confdir
12911a30de1fSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
12921a30de1fSmrg    srcdir=..
12931a30de1fSmrg  fi
12941a30de1fSmrgelse
12951a30de1fSmrg  ac_srcdir_defaulted=no
12961a30de1fSmrgfi
12971a30de1fSmrgif test ! -r "$srcdir/$ac_unique_file"; then
12981a30de1fSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299b7fb5eacSmrg  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
13001a30de1fSmrg   { (exit 1); exit 1; }; }
13011a30de1fSmrgfi
13021a30de1fSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
13031a30de1fSmrgac_abs_confdir=`(
1304b7fb5eacSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
13051a30de1fSmrg   { (exit 1); exit 1; }; }
13061a30de1fSmrg	pwd)`
13071a30de1fSmrg# When building in place, set srcdir=.
13081a30de1fSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
13091a30de1fSmrg  srcdir=.
13101a30de1fSmrgfi
13111a30de1fSmrg# Remove unnecessary trailing slashes from srcdir.
13121a30de1fSmrg# Double slashes in file names in object file debugging info
13131a30de1fSmrg# mess up M-x gdb in Emacs.
13141a30de1fSmrgcase $srcdir in
13151a30de1fSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
13161a30de1fSmrgesac
13171a30de1fSmrgfor ac_var in $ac_precious_vars; do
13181a30de1fSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
13191a30de1fSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
13201a30de1fSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
13211a30de1fSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
13221a30de1fSmrgdone
13231a30de1fSmrg
13241a30de1fSmrg#
13251a30de1fSmrg# Report the --help message.
13261a30de1fSmrg#
13271a30de1fSmrgif test "$ac_init_help" = "long"; then
13281a30de1fSmrg  # Omit some internal or obsolete options to make the list less imposing.
13291a30de1fSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
13301a30de1fSmrg  cat <<_ACEOF
1331b7fb5eacSmrg\`configure' configures xmodmap 1.0.4 to adapt to many kinds of systems.
13321a30de1fSmrg
13331a30de1fSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13341a30de1fSmrg
13351a30de1fSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13361a30de1fSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13371a30de1fSmrg
13381a30de1fSmrgDefaults for the options are specified in brackets.
13391a30de1fSmrg
13401a30de1fSmrgConfiguration:
13411a30de1fSmrg  -h, --help              display this help and exit
13421a30de1fSmrg      --help=short        display options specific to this package
13431a30de1fSmrg      --help=recursive    display the short help of all the included packages
13441a30de1fSmrg  -V, --version           display version information and exit
13451a30de1fSmrg  -q, --quiet, --silent   do not print \`checking...' messages
13461a30de1fSmrg      --cache-file=FILE   cache test results in FILE [disabled]
13471a30de1fSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13481a30de1fSmrg  -n, --no-create         do not create output files
13491a30de1fSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13501a30de1fSmrg
13511a30de1fSmrgInstallation directories:
13521a30de1fSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1353b7fb5eacSmrg                          [$ac_default_prefix]
13541a30de1fSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355b7fb5eacSmrg                          [PREFIX]
13561a30de1fSmrg
13571a30de1fSmrgBy default, \`make install' will install all the files in
13581a30de1fSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13591a30de1fSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13601a30de1fSmrgfor instance \`--prefix=\$HOME'.
13611a30de1fSmrg
13621a30de1fSmrgFor better control, use the options below.
13631a30de1fSmrg
13641a30de1fSmrgFine tuning of the installation directories:
1365b7fb5eacSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1366b7fb5eacSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367b7fb5eacSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368b7fb5eacSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369b7fb5eacSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370b7fb5eacSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371b7fb5eacSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1372b7fb5eacSmrg  --includedir=DIR        C header files [PREFIX/include]
1373b7fb5eacSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374b7fb5eacSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375b7fb5eacSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376b7fb5eacSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377b7fb5eacSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378b7fb5eacSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379b7fb5eacSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xmodmap]
1380b7fb5eacSmrg  --htmldir=DIR           html documentation [DOCDIR]
1381b7fb5eacSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1382b7fb5eacSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1383b7fb5eacSmrg  --psdir=DIR             ps documentation [DOCDIR]
13841a30de1fSmrg_ACEOF
13851a30de1fSmrg
13861a30de1fSmrg  cat <<\_ACEOF
13871a30de1fSmrg
13881a30de1fSmrgProgram names:
13891a30de1fSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
13901a30de1fSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
13911a30de1fSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
13921a30de1fSmrg
13931a30de1fSmrgSystem types:
13941a30de1fSmrg  --build=BUILD     configure for building on BUILD [guessed]
13951a30de1fSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
13961a30de1fSmrg_ACEOF
13971a30de1fSmrgfi
13981a30de1fSmrg
13991a30de1fSmrgif test -n "$ac_init_help"; then
14001a30de1fSmrg  case $ac_init_help in
1401b7fb5eacSmrg     short | recursive ) echo "Configuration of xmodmap 1.0.4:";;
14021a30de1fSmrg   esac
14031a30de1fSmrg  cat <<\_ACEOF
14041a30de1fSmrg
14051a30de1fSmrgOptional Features:
1406b7fb5eacSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14071a30de1fSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14081a30de1fSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14091a30de1fSmrg  --enable-maintainer-mode  enable make rules and dependencies not useful
14101a30de1fSmrg			  (and sometimes confusing) to the casual installer
14111a30de1fSmrg  --disable-dependency-tracking  speeds up one-time build
14121a30de1fSmrg  --enable-dependency-tracking   do not reject slow dependency extractors
1413b7fb5eacSmrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
1414b7fb5eacSmrg  --disable-silent-rules         verbose build output (undo: `make V=0')
1415b7fb5eacSmrg  --enable-strict-compilation
1416b7fb5eacSmrg                          Enable all warnings from compiler and make them
1417b7fb5eacSmrg                          errors (default: disabled)
14181a30de1fSmrg
14191a30de1fSmrgOptional Packages:
14201a30de1fSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
14211a30de1fSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
14221a30de1fSmrg  --with-release-version=STRING
14231a30de1fSmrg                          Use release version string in package name
1424b7fb5eacSmrg  --with-lint             Use a lint-style source code checker (default:
1425b7fb5eacSmrg                          disabled)
14261a30de1fSmrg
14271a30de1fSmrgSome influential environment variables:
14281a30de1fSmrg  CC          C compiler command
14291a30de1fSmrg  CFLAGS      C compiler flags
14301a30de1fSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14311a30de1fSmrg              nonstandard directory <lib dir>
14321a30de1fSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
14331a30de1fSmrg  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
14341a30de1fSmrg              you have headers in a nonstandard directory <include dir>
1435b7fb5eacSmrg  CPP         C preprocessor
14361a30de1fSmrg  PKG_CONFIG  path to pkg-config utility
1437b7fb5eacSmrg  XMODMAP_CFLAGS
1438b7fb5eacSmrg              C compiler flags for XMODMAP, overriding pkg-config
1439b7fb5eacSmrg  XMODMAP_LIBS
1440b7fb5eacSmrg              linker flags for XMODMAP, overriding pkg-config
14411a30de1fSmrg
14421a30de1fSmrgUse these variables to override the choices made by `configure' or to help
14431a30de1fSmrgit to find libraries and programs with nonstandard names/locations.
14441a30de1fSmrg
14451a30de1fSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
14461a30de1fSmrg_ACEOF
14471a30de1fSmrgac_status=$?
14481a30de1fSmrgfi
14491a30de1fSmrg
14501a30de1fSmrgif test "$ac_init_help" = "recursive"; then
14511a30de1fSmrg  # If there are subdirs, report their specific --help.
14521a30de1fSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453b7fb5eacSmrg    test -d "$ac_dir" ||
1454b7fb5eacSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455b7fb5eacSmrg      continue
14561a30de1fSmrg    ac_builddir=.
14571a30de1fSmrg
14581a30de1fSmrgcase "$ac_dir" in
14591a30de1fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14601a30de1fSmrg*)
1461b7fb5eacSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14621a30de1fSmrg  # A ".." for each directory in $ac_dir_suffix.
1463b7fb5eacSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14641a30de1fSmrg  case $ac_top_builddir_sub in
14651a30de1fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14661a30de1fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14671a30de1fSmrg  esac ;;
14681a30de1fSmrgesac
14691a30de1fSmrgac_abs_top_builddir=$ac_pwd
14701a30de1fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
14711a30de1fSmrg# for backward compatibility:
14721a30de1fSmrgac_top_builddir=$ac_top_build_prefix
14731a30de1fSmrg
14741a30de1fSmrgcase $srcdir in
14751a30de1fSmrg  .)  # We are building in place.
14761a30de1fSmrg    ac_srcdir=.
14771a30de1fSmrg    ac_top_srcdir=$ac_top_builddir_sub
14781a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
14791a30de1fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14801a30de1fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
14811a30de1fSmrg    ac_top_srcdir=$srcdir
14821a30de1fSmrg    ac_abs_top_srcdir=$srcdir ;;
14831a30de1fSmrg  *) # Relative name.
14841a30de1fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14851a30de1fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
14861a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14871a30de1fSmrgesac
14881a30de1fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14891a30de1fSmrg
14901a30de1fSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
14911a30de1fSmrg    # Check for guested configure.
14921a30de1fSmrg    if test -f "$ac_srcdir/configure.gnu"; then
14931a30de1fSmrg      echo &&
14941a30de1fSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14951a30de1fSmrg    elif test -f "$ac_srcdir/configure"; then
14961a30de1fSmrg      echo &&
14971a30de1fSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
14981a30de1fSmrg    else
1499b7fb5eacSmrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
15001a30de1fSmrg    fi || ac_status=$?
15011a30de1fSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
15021a30de1fSmrg  done
15031a30de1fSmrgfi
15041a30de1fSmrg
15051a30de1fSmrgtest -n "$ac_init_help" && exit $ac_status
15061a30de1fSmrgif $ac_init_version; then
15071a30de1fSmrg  cat <<\_ACEOF
1508b7fb5eacSmrgxmodmap configure 1.0.4
1509b7fb5eacSmrggenerated by GNU Autoconf 2.63
15101a30de1fSmrg
15111a30de1fSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1512b7fb5eacSmrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
15131a30de1fSmrgThis configure script is free software; the Free Software Foundation
15141a30de1fSmrggives unlimited permission to copy, distribute and modify it.
15151a30de1fSmrg_ACEOF
15161a30de1fSmrg  exit
15171a30de1fSmrgfi
15181a30de1fSmrgcat >config.log <<_ACEOF
15191a30de1fSmrgThis file contains any messages produced by compilers while
15201a30de1fSmrgrunning configure, to aid debugging if configure makes a mistake.
15211a30de1fSmrg
1522b7fb5eacSmrgIt was created by xmodmap $as_me 1.0.4, which was
1523b7fb5eacSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
15241a30de1fSmrg
15251a30de1fSmrg  $ $0 $@
15261a30de1fSmrg
15271a30de1fSmrg_ACEOF
15281a30de1fSmrgexec 5>>config.log
15291a30de1fSmrg{
15301a30de1fSmrgcat <<_ASUNAME
15311a30de1fSmrg## --------- ##
15321a30de1fSmrg## Platform. ##
15331a30de1fSmrg## --------- ##
15341a30de1fSmrg
15351a30de1fSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
15361a30de1fSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
15371a30de1fSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
15381a30de1fSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
15391a30de1fSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
15401a30de1fSmrg
15411a30de1fSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
15421a30de1fSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
15431a30de1fSmrg
15441a30de1fSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
15451a30de1fSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
15461a30de1fSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
15471a30de1fSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
15481a30de1fSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
15491a30de1fSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
15501a30de1fSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
15511a30de1fSmrg
15521a30de1fSmrg_ASUNAME
15531a30de1fSmrg
15541a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15551a30de1fSmrgfor as_dir in $PATH
15561a30de1fSmrgdo
15571a30de1fSmrg  IFS=$as_save_IFS
15581a30de1fSmrg  test -z "$as_dir" && as_dir=.
1559b7fb5eacSmrg  $as_echo "PATH: $as_dir"
15601a30de1fSmrgdone
15611a30de1fSmrgIFS=$as_save_IFS
15621a30de1fSmrg
15631a30de1fSmrg} >&5
15641a30de1fSmrg
15651a30de1fSmrgcat >&5 <<_ACEOF
15661a30de1fSmrg
15671a30de1fSmrg
15681a30de1fSmrg## ----------- ##
15691a30de1fSmrg## Core tests. ##
15701a30de1fSmrg## ----------- ##
15711a30de1fSmrg
15721a30de1fSmrg_ACEOF
15731a30de1fSmrg
15741a30de1fSmrg
15751a30de1fSmrg# Keep a trace of the command line.
15761a30de1fSmrg# Strip out --no-create and --no-recursion so they do not pile up.
15771a30de1fSmrg# Strip out --silent because we don't want to record it for future runs.
15781a30de1fSmrg# Also quote any args containing shell meta-characters.
15791a30de1fSmrg# Make two passes to allow for proper duplicate-argument suppression.
15801a30de1fSmrgac_configure_args=
15811a30de1fSmrgac_configure_args0=
15821a30de1fSmrgac_configure_args1=
15831a30de1fSmrgac_must_keep_next=false
15841a30de1fSmrgfor ac_pass in 1 2
15851a30de1fSmrgdo
15861a30de1fSmrg  for ac_arg
15871a30de1fSmrg  do
15881a30de1fSmrg    case $ac_arg in
15891a30de1fSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
15901a30de1fSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15911a30de1fSmrg    | -silent | --silent | --silen | --sile | --sil)
15921a30de1fSmrg      continue ;;
15931a30de1fSmrg    *\'*)
1594b7fb5eacSmrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15951a30de1fSmrg    esac
15961a30de1fSmrg    case $ac_pass in
15971a30de1fSmrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
15981a30de1fSmrg    2)
15991a30de1fSmrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
16001a30de1fSmrg      if test $ac_must_keep_next = true; then
16011a30de1fSmrg	ac_must_keep_next=false # Got value, back to normal.
16021a30de1fSmrg      else
16031a30de1fSmrg	case $ac_arg in
16041a30de1fSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
16051a30de1fSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
16061a30de1fSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
16071a30de1fSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
16081a30de1fSmrg	    case "$ac_configure_args0 " in
16091a30de1fSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
16101a30de1fSmrg	    esac
16111a30de1fSmrg	    ;;
16121a30de1fSmrg	  -* ) ac_must_keep_next=true ;;
16131a30de1fSmrg	esac
16141a30de1fSmrg      fi
16151a30de1fSmrg      ac_configure_args="$ac_configure_args '$ac_arg'"
16161a30de1fSmrg      ;;
16171a30de1fSmrg    esac
16181a30de1fSmrg  done
16191a30de1fSmrgdone
16201a30de1fSmrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
16211a30de1fSmrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
16221a30de1fSmrg
16231a30de1fSmrg# When interrupted or exit'd, cleanup temporary files, and complete
16241a30de1fSmrg# config.log.  We remove comments because anyway the quotes in there
16251a30de1fSmrg# would cause problems or look ugly.
16261a30de1fSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
16271a30de1fSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
16281a30de1fSmrgtrap 'exit_status=$?
16291a30de1fSmrg  # Save into config.log some information that might help in debugging.
16301a30de1fSmrg  {
16311a30de1fSmrg    echo
16321a30de1fSmrg
16331a30de1fSmrg    cat <<\_ASBOX
16341a30de1fSmrg## ---------------- ##
16351a30de1fSmrg## Cache variables. ##
16361a30de1fSmrg## ---------------- ##
16371a30de1fSmrg_ASBOX
16381a30de1fSmrg    echo
16391a30de1fSmrg    # The following way of writing the cache mishandles newlines in values,
16401a30de1fSmrg(
16411a30de1fSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
16421a30de1fSmrg    eval ac_val=\$$ac_var
16431a30de1fSmrg    case $ac_val in #(
16441a30de1fSmrg    *${as_nl}*)
16451a30de1fSmrg      case $ac_var in #(
1646b7fb5eacSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1647b7fb5eacSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16481a30de1fSmrg      esac
16491a30de1fSmrg      case $ac_var in #(
16501a30de1fSmrg      _ | IFS | as_nl) ;; #(
1651b7fb5eacSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16521a30de1fSmrg      *) $as_unset $ac_var ;;
16531a30de1fSmrg      esac ;;
16541a30de1fSmrg    esac
16551a30de1fSmrg  done
16561a30de1fSmrg  (set) 2>&1 |
16571a30de1fSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
16581a30de1fSmrg    *${as_nl}ac_space=\ *)
16591a30de1fSmrg      sed -n \
16601a30de1fSmrg	"s/'\''/'\''\\\\'\'''\''/g;
16611a30de1fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
16621a30de1fSmrg      ;; #(
16631a30de1fSmrg    *)
16641a30de1fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16651a30de1fSmrg      ;;
16661a30de1fSmrg    esac |
16671a30de1fSmrg    sort
16681a30de1fSmrg)
16691a30de1fSmrg    echo
16701a30de1fSmrg
16711a30de1fSmrg    cat <<\_ASBOX
16721a30de1fSmrg## ----------------- ##
16731a30de1fSmrg## Output variables. ##
16741a30de1fSmrg## ----------------- ##
16751a30de1fSmrg_ASBOX
16761a30de1fSmrg    echo
16771a30de1fSmrg    for ac_var in $ac_subst_vars
16781a30de1fSmrg    do
16791a30de1fSmrg      eval ac_val=\$$ac_var
16801a30de1fSmrg      case $ac_val in
1681b7fb5eacSmrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16821a30de1fSmrg      esac
1683b7fb5eacSmrg      $as_echo "$ac_var='\''$ac_val'\''"
16841a30de1fSmrg    done | sort
16851a30de1fSmrg    echo
16861a30de1fSmrg
16871a30de1fSmrg    if test -n "$ac_subst_files"; then
16881a30de1fSmrg      cat <<\_ASBOX
16891a30de1fSmrg## ------------------- ##
16901a30de1fSmrg## File substitutions. ##
16911a30de1fSmrg## ------------------- ##
16921a30de1fSmrg_ASBOX
16931a30de1fSmrg      echo
16941a30de1fSmrg      for ac_var in $ac_subst_files
16951a30de1fSmrg      do
16961a30de1fSmrg	eval ac_val=\$$ac_var
16971a30de1fSmrg	case $ac_val in
1698b7fb5eacSmrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
16991a30de1fSmrg	esac
1700b7fb5eacSmrg	$as_echo "$ac_var='\''$ac_val'\''"
17011a30de1fSmrg      done | sort
17021a30de1fSmrg      echo
17031a30de1fSmrg    fi
17041a30de1fSmrg
17051a30de1fSmrg    if test -s confdefs.h; then
17061a30de1fSmrg      cat <<\_ASBOX
17071a30de1fSmrg## ----------- ##
17081a30de1fSmrg## confdefs.h. ##
17091a30de1fSmrg## ----------- ##
17101a30de1fSmrg_ASBOX
17111a30de1fSmrg      echo
17121a30de1fSmrg      cat confdefs.h
17131a30de1fSmrg      echo
17141a30de1fSmrg    fi
17151a30de1fSmrg    test "$ac_signal" != 0 &&
1716b7fb5eacSmrg      $as_echo "$as_me: caught signal $ac_signal"
1717b7fb5eacSmrg    $as_echo "$as_me: exit $exit_status"
17181a30de1fSmrg  } >&5
17191a30de1fSmrg  rm -f core *.core core.conftest.* &&
17201a30de1fSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
17211a30de1fSmrg    exit $exit_status
17221a30de1fSmrg' 0
17231a30de1fSmrgfor ac_signal in 1 2 13 15; do
17241a30de1fSmrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
17251a30de1fSmrgdone
17261a30de1fSmrgac_signal=0
17271a30de1fSmrg
17281a30de1fSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
17291a30de1fSmrgrm -f -r conftest* confdefs.h
17301a30de1fSmrg
17311a30de1fSmrg# Predefined preprocessor variables.
17321a30de1fSmrg
17331a30de1fSmrgcat >>confdefs.h <<_ACEOF
17341a30de1fSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
17351a30de1fSmrg_ACEOF
17361a30de1fSmrg
17371a30de1fSmrg
17381a30de1fSmrgcat >>confdefs.h <<_ACEOF
17391a30de1fSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
17401a30de1fSmrg_ACEOF
17411a30de1fSmrg
17421a30de1fSmrg
17431a30de1fSmrgcat >>confdefs.h <<_ACEOF
17441a30de1fSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
17451a30de1fSmrg_ACEOF
17461a30de1fSmrg
17471a30de1fSmrg
17481a30de1fSmrgcat >>confdefs.h <<_ACEOF
17491a30de1fSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
17501a30de1fSmrg_ACEOF
17511a30de1fSmrg
17521a30de1fSmrg
17531a30de1fSmrgcat >>confdefs.h <<_ACEOF
17541a30de1fSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
17551a30de1fSmrg_ACEOF
17561a30de1fSmrg
17571a30de1fSmrg
17581a30de1fSmrg# Let the site file select an alternate cache file if it wants to.
1759b7fb5eacSmrg# Prefer an explicitly selected file to automatically selected ones.
1760b7fb5eacSmrgac_site_file1=NONE
1761b7fb5eacSmrgac_site_file2=NONE
17621a30de1fSmrgif test -n "$CONFIG_SITE"; then
1763b7fb5eacSmrg  ac_site_file1=$CONFIG_SITE
17641a30de1fSmrgelif test "x$prefix" != xNONE; then
1765b7fb5eacSmrg  ac_site_file1=$prefix/share/config.site
1766b7fb5eacSmrg  ac_site_file2=$prefix/etc/config.site
17671a30de1fSmrgelse
1768b7fb5eacSmrg  ac_site_file1=$ac_default_prefix/share/config.site
1769b7fb5eacSmrg  ac_site_file2=$ac_default_prefix/etc/config.site
17701a30de1fSmrgfi
1771b7fb5eacSmrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
17721a30de1fSmrgdo
1773b7fb5eacSmrg  test "x$ac_site_file" = xNONE && continue
17741a30de1fSmrg  if test -r "$ac_site_file"; then
1775b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1776b7fb5eacSmrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
17771a30de1fSmrg    sed 's/^/| /' "$ac_site_file" >&5
17781a30de1fSmrg    . "$ac_site_file"
17791a30de1fSmrg  fi
17801a30de1fSmrgdone
17811a30de1fSmrg
17821a30de1fSmrgif test -r "$cache_file"; then
17831a30de1fSmrg  # Some versions of bash will fail to source /dev/null (special
17841a30de1fSmrg  # files actually), so we avoid doing that.
17851a30de1fSmrg  if test -f "$cache_file"; then
1786b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1787b7fb5eacSmrg$as_echo "$as_me: loading cache $cache_file" >&6;}
17881a30de1fSmrg    case $cache_file in
17891a30de1fSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
17901a30de1fSmrg      *)                      . "./$cache_file";;
17911a30de1fSmrg    esac
17921a30de1fSmrg  fi
17931a30de1fSmrgelse
1794b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1795b7fb5eacSmrg$as_echo "$as_me: creating cache $cache_file" >&6;}
17961a30de1fSmrg  >$cache_file
17971a30de1fSmrgfi
17981a30de1fSmrg
17991a30de1fSmrg# Check that the precious variables saved in the cache have kept the same
18001a30de1fSmrg# value.
18011a30de1fSmrgac_cache_corrupted=false
18021a30de1fSmrgfor ac_var in $ac_precious_vars; do
18031a30de1fSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
18041a30de1fSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
18051a30de1fSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
18061a30de1fSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
18071a30de1fSmrg  case $ac_old_set,$ac_new_set in
18081a30de1fSmrg    set,)
1809b7fb5eacSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1810b7fb5eacSmrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
18111a30de1fSmrg      ac_cache_corrupted=: ;;
18121a30de1fSmrg    ,set)
1813b7fb5eacSmrg      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1814b7fb5eacSmrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
18151a30de1fSmrg      ac_cache_corrupted=: ;;
18161a30de1fSmrg    ,);;
18171a30de1fSmrg    *)
18181a30de1fSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
1819b7fb5eacSmrg	# differences in whitespace do not lead to failure.
1820b7fb5eacSmrg	ac_old_val_w=`echo x $ac_old_val`
1821b7fb5eacSmrg	ac_new_val_w=`echo x $ac_new_val`
1822b7fb5eacSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1823b7fb5eacSmrg	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824b7fb5eacSmrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825b7fb5eacSmrg	  ac_cache_corrupted=:
1826b7fb5eacSmrg	else
1827b7fb5eacSmrg	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1828b7fb5eacSmrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1829b7fb5eacSmrg	  eval $ac_var=\$ac_old_val
1830b7fb5eacSmrg	fi
1831b7fb5eacSmrg	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1832b7fb5eacSmrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1833b7fb5eacSmrg	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1834b7fb5eacSmrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
18351a30de1fSmrg      fi;;
18361a30de1fSmrg  esac
18371a30de1fSmrg  # Pass precious variables to config.status.
18381a30de1fSmrg  if test "$ac_new_set" = set; then
18391a30de1fSmrg    case $ac_new_val in
1840b7fb5eacSmrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
18411a30de1fSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
18421a30de1fSmrg    esac
18431a30de1fSmrg    case " $ac_configure_args " in
18441a30de1fSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
18451a30de1fSmrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
18461a30de1fSmrg    esac
18471a30de1fSmrg  fi
18481a30de1fSmrgdone
18491a30de1fSmrgif $ac_cache_corrupted; then
1850b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1851b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1852b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1853b7fb5eacSmrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1854b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1855b7fb5eacSmrg$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
18561a30de1fSmrg   { (exit 1); exit 1; }; }
18571a30de1fSmrgfi
18581a30de1fSmrg
18591a30de1fSmrg
18601a30de1fSmrg
18611a30de1fSmrg
18621a30de1fSmrg
18631a30de1fSmrg
18641a30de1fSmrg
18651a30de1fSmrg
18661a30de1fSmrg
18671a30de1fSmrg
18681a30de1fSmrg
18691a30de1fSmrg
18701a30de1fSmrg
18711a30de1fSmrg
18721a30de1fSmrg
18731a30de1fSmrg
18741a30de1fSmrg
18751a30de1fSmrg
18761a30de1fSmrg
18771a30de1fSmrg
18781a30de1fSmrg
18791a30de1fSmrg
18801a30de1fSmrg
18811a30de1fSmrg
18821a30de1fSmrg
18831a30de1fSmrgac_ext=c
18841a30de1fSmrgac_cpp='$CPP $CPPFLAGS'
18851a30de1fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861a30de1fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18871a30de1fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
18881a30de1fSmrg
18891a30de1fSmrg
1890b7fb5eacSmrgam__api_version='1.11'
18911a30de1fSmrg
18921a30de1fSmrgac_aux_dir=
18931a30de1fSmrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
18941a30de1fSmrg  if test -f "$ac_dir/install-sh"; then
18951a30de1fSmrg    ac_aux_dir=$ac_dir
18961a30de1fSmrg    ac_install_sh="$ac_aux_dir/install-sh -c"
18971a30de1fSmrg    break
18981a30de1fSmrg  elif test -f "$ac_dir/install.sh"; then
18991a30de1fSmrg    ac_aux_dir=$ac_dir
19001a30de1fSmrg    ac_install_sh="$ac_aux_dir/install.sh -c"
19011a30de1fSmrg    break
19021a30de1fSmrg  elif test -f "$ac_dir/shtool"; then
19031a30de1fSmrg    ac_aux_dir=$ac_dir
19041a30de1fSmrg    ac_install_sh="$ac_aux_dir/shtool install -c"
19051a30de1fSmrg    break
19061a30de1fSmrg  fi
19071a30de1fSmrgdone
19081a30de1fSmrgif test -z "$ac_aux_dir"; then
1909b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1910b7fb5eacSmrg$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
19111a30de1fSmrg   { (exit 1); exit 1; }; }
19121a30de1fSmrgfi
19131a30de1fSmrg
19141a30de1fSmrg# These three variables are undocumented and unsupported,
19151a30de1fSmrg# and are intended to be withdrawn in a future Autoconf release.
19161a30de1fSmrg# They can cause serious problems if a builder's source tree is in a directory
19171a30de1fSmrg# whose full name contains unusual characters.
19181a30de1fSmrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
19191a30de1fSmrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
19201a30de1fSmrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
19211a30de1fSmrg
19221a30de1fSmrg
19231a30de1fSmrg# Find a good install program.  We prefer a C program (faster),
19241a30de1fSmrg# so one script is as good as another.  But avoid the broken or
19251a30de1fSmrg# incompatible versions:
19261a30de1fSmrg# SysV /etc/install, /usr/sbin/install
19271a30de1fSmrg# SunOS /usr/etc/install
19281a30de1fSmrg# IRIX /sbin/install
19291a30de1fSmrg# AIX /bin/install
19301a30de1fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
19311a30de1fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19321a30de1fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19331a30de1fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19341a30de1fSmrg# OS/2's system install, which has a completely different semantic
19351a30de1fSmrg# ./install, which can be erroneously created by make from ./install.sh.
1936b7fb5eacSmrg# Reject install programs that cannot install multiple files.
1937b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1938b7fb5eacSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
19391a30de1fSmrgif test -z "$INSTALL"; then
19401a30de1fSmrgif test "${ac_cv_path_install+set}" = set; then
1941b7fb5eacSmrg  $as_echo_n "(cached) " >&6
19421a30de1fSmrgelse
19431a30de1fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19441a30de1fSmrgfor as_dir in $PATH
19451a30de1fSmrgdo
19461a30de1fSmrg  IFS=$as_save_IFS
19471a30de1fSmrg  test -z "$as_dir" && as_dir=.
19481a30de1fSmrg  # Account for people who put trailing slashes in PATH elements.
19491a30de1fSmrgcase $as_dir/ in
19501a30de1fSmrg  ./ | .// | /cC/* | \
19511a30de1fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19521a30de1fSmrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19531a30de1fSmrg  /usr/ucb/* ) ;;
19541a30de1fSmrg  *)
19551a30de1fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
19561a30de1fSmrg    # Don't use installbsd from OSF since it installs stuff as root
19571a30de1fSmrg    # by default.
19581a30de1fSmrg    for ac_prog in ginstall scoinst install; do
19591a30de1fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
19601a30de1fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19611a30de1fSmrg	  if test $ac_prog = install &&
19621a30de1fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19631a30de1fSmrg	    # AIX install.  It has an incompatible calling convention.
19641a30de1fSmrg	    :
19651a30de1fSmrg	  elif test $ac_prog = install &&
19661a30de1fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19671a30de1fSmrg	    # program-specific install script used by HP pwplus--don't use.
19681a30de1fSmrg	    :
19691a30de1fSmrg	  else
1970b7fb5eacSmrg	    rm -rf conftest.one conftest.two conftest.dir
1971b7fb5eacSmrg	    echo one > conftest.one
1972b7fb5eacSmrg	    echo two > conftest.two
1973b7fb5eacSmrg	    mkdir conftest.dir
1974b7fb5eacSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1975b7fb5eacSmrg	      test -s conftest.one && test -s conftest.two &&
1976b7fb5eacSmrg	      test -s conftest.dir/conftest.one &&
1977b7fb5eacSmrg	      test -s conftest.dir/conftest.two
1978b7fb5eacSmrg	    then
1979b7fb5eacSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1980b7fb5eacSmrg	      break 3
1981b7fb5eacSmrg	    fi
19821a30de1fSmrg	  fi
19831a30de1fSmrg	fi
19841a30de1fSmrg      done
19851a30de1fSmrg    done
19861a30de1fSmrg    ;;
19871a30de1fSmrgesac
1988b7fb5eacSmrg
19891a30de1fSmrgdone
19901a30de1fSmrgIFS=$as_save_IFS
19911a30de1fSmrg
1992b7fb5eacSmrgrm -rf conftest.one conftest.two conftest.dir
19931a30de1fSmrg
19941a30de1fSmrgfi
19951a30de1fSmrg  if test "${ac_cv_path_install+set}" = set; then
19961a30de1fSmrg    INSTALL=$ac_cv_path_install
19971a30de1fSmrg  else
19981a30de1fSmrg    # As a last resort, use the slow shell script.  Don't cache a
19991a30de1fSmrg    # value for INSTALL within a source directory, because that will
20001a30de1fSmrg    # break other packages using the cache if that directory is
20011a30de1fSmrg    # removed, or if the value is a relative name.
20021a30de1fSmrg    INSTALL=$ac_install_sh
20031a30de1fSmrg  fi
20041a30de1fSmrgfi
2005b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2006b7fb5eacSmrg$as_echo "$INSTALL" >&6; }
20071a30de1fSmrg
20081a30de1fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20091a30de1fSmrg# It thinks the first close brace ends the variable substitution.
20101a30de1fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20111a30de1fSmrg
20121a30de1fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20131a30de1fSmrg
20141a30de1fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20151a30de1fSmrg
2016b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2017b7fb5eacSmrg$as_echo_n "checking whether build environment is sane... " >&6; }
20181a30de1fSmrg# Just in case
20191a30de1fSmrgsleep 1
20201a30de1fSmrgecho timestamp > conftest.file
2021b7fb5eacSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2022b7fb5eacSmrg# name.  Accept space and tab only in the latter.
2023b7fb5eacSmrgam_lf='
2024b7fb5eacSmrg'
2025b7fb5eacSmrgcase `pwd` in
2026b7fb5eacSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2027b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2028b7fb5eacSmrg$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2029b7fb5eacSmrg   { (exit 1); exit 1; }; };;
2030b7fb5eacSmrgesac
2031b7fb5eacSmrgcase $srcdir in
2032b7fb5eacSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2033b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2034b7fb5eacSmrg$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2035b7fb5eacSmrg   { (exit 1); exit 1; }; };;
2036b7fb5eacSmrgesac
2037b7fb5eacSmrg
2038b7fb5eacSmrg# Do `set' in a subshell so we don't clobber the current shell's
2039b7fb5eacSmrg# arguments.  Must try -L first in case configure is actually a
2040b7fb5eacSmrg# symlink; some systems play weird games with the mod time of symlinks
2041b7fb5eacSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2042b7fb5eacSmrg# directory).
20431a30de1fSmrgif (
2044b7fb5eacSmrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
20451a30de1fSmrg   if test "$*" = "X"; then
20461a30de1fSmrg      # -L didn't work.
2047b7fb5eacSmrg      set X `ls -t "$srcdir/configure" conftest.file`
20481a30de1fSmrg   fi
20491a30de1fSmrg   rm -f conftest.file
20501a30de1fSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
20511a30de1fSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
20521a30de1fSmrg
20531a30de1fSmrg      # If neither matched, then we have a broken ls.  This can happen
20541a30de1fSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
20551a30de1fSmrg      # broken ls alias from the environment.  This has actually
20561a30de1fSmrg      # happened.  Such a system could not be considered "sane".
2057b7fb5eacSmrg      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20581a30de1fSmrgalias in your environment" >&5
2059b7fb5eacSmrg$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20601a30de1fSmrgalias in your environment" >&2;}
20611a30de1fSmrg   { (exit 1); exit 1; }; }
20621a30de1fSmrg   fi
20631a30de1fSmrg
20641a30de1fSmrg   test "$2" = conftest.file
20651a30de1fSmrg   )
20661a30de1fSmrgthen
20671a30de1fSmrg   # Ok.
20681a30de1fSmrg   :
20691a30de1fSmrgelse
2070b7fb5eacSmrg   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20711a30de1fSmrgCheck your system clock" >&5
2072b7fb5eacSmrg$as_echo "$as_me: error: newly created file is older than distributed files!
20731a30de1fSmrgCheck your system clock" >&2;}
20741a30de1fSmrg   { (exit 1); exit 1; }; }
20751a30de1fSmrgfi
2076b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2077b7fb5eacSmrg$as_echo "yes" >&6; }
20781a30de1fSmrgtest "$program_prefix" != NONE &&
20791a30de1fSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
20801a30de1fSmrg# Use a double $ so make ignores it.
20811a30de1fSmrgtest "$program_suffix" != NONE &&
20821a30de1fSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2083b7fb5eacSmrg# Double any \ or $.
20841a30de1fSmrg# By default was `s,x,x', remove it if useless.
2085b7fb5eacSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2086b7fb5eacSmrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
20871a30de1fSmrg
20881a30de1fSmrg# expand $ac_aux_dir to an absolute path
20891a30de1fSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
20901a30de1fSmrg
2091b7fb5eacSmrgif test x"${MISSING+set}" != xset; then
2092b7fb5eacSmrg  case $am_aux_dir in
2093b7fb5eacSmrg  *\ * | *\	*)
2094b7fb5eacSmrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2095b7fb5eacSmrg  *)
2096b7fb5eacSmrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2097b7fb5eacSmrg  esac
2098b7fb5eacSmrgfi
20991a30de1fSmrg# Use eval to expand $SHELL
21001a30de1fSmrgif eval "$MISSING --run true"; then
21011a30de1fSmrg  am_missing_run="$MISSING --run "
21021a30de1fSmrgelse
21031a30de1fSmrg  am_missing_run=
2104b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2105b7fb5eacSmrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2106b7fb5eacSmrgfi
2107b7fb5eacSmrg
2108b7fb5eacSmrgif test x"${install_sh}" != xset; then
2109b7fb5eacSmrg  case $am_aux_dir in
2110b7fb5eacSmrg  *\ * | *\	*)
2111b7fb5eacSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2112b7fb5eacSmrg  *)
2113b7fb5eacSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2114b7fb5eacSmrg  esac
2115b7fb5eacSmrgfi
2116b7fb5eacSmrg
2117b7fb5eacSmrg# Installed binaries are usually stripped using `strip' when the user
2118b7fb5eacSmrg# run `make install-strip'.  However `strip' might not be the right
2119b7fb5eacSmrg# tool to use in cross-compilation environments, therefore Automake
2120b7fb5eacSmrg# will honor the `STRIP' environment variable to overrule this program.
2121b7fb5eacSmrgif test "$cross_compiling" != no; then
2122b7fb5eacSmrg  if test -n "$ac_tool_prefix"; then
2123b7fb5eacSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2124b7fb5eacSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2125b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2126b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2127b7fb5eacSmrgif test "${ac_cv_prog_STRIP+set}" = set; then
2128b7fb5eacSmrg  $as_echo_n "(cached) " >&6
2129b7fb5eacSmrgelse
2130b7fb5eacSmrg  if test -n "$STRIP"; then
2131b7fb5eacSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2132b7fb5eacSmrgelse
2133b7fb5eacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134b7fb5eacSmrgfor as_dir in $PATH
2135b7fb5eacSmrgdo
2136b7fb5eacSmrg  IFS=$as_save_IFS
2137b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
2138b7fb5eacSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
2139b7fb5eacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140b7fb5eacSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2141b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142b7fb5eacSmrg    break 2
2143b7fb5eacSmrg  fi
2144b7fb5eacSmrgdone
2145b7fb5eacSmrgdone
2146b7fb5eacSmrgIFS=$as_save_IFS
2147b7fb5eacSmrg
2148b7fb5eacSmrgfi
2149b7fb5eacSmrgfi
2150b7fb5eacSmrgSTRIP=$ac_cv_prog_STRIP
2151b7fb5eacSmrgif test -n "$STRIP"; then
2152b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2153b7fb5eacSmrg$as_echo "$STRIP" >&6; }
2154b7fb5eacSmrgelse
2155b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2156b7fb5eacSmrg$as_echo "no" >&6; }
2157b7fb5eacSmrgfi
2158b7fb5eacSmrg
2159b7fb5eacSmrg
2160b7fb5eacSmrgfi
2161b7fb5eacSmrgif test -z "$ac_cv_prog_STRIP"; then
2162b7fb5eacSmrg  ac_ct_STRIP=$STRIP
2163b7fb5eacSmrg  # Extract the first word of "strip", so it can be a program name with args.
2164b7fb5eacSmrgset dummy strip; ac_word=$2
2165b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2166b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
2167b7fb5eacSmrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2168b7fb5eacSmrg  $as_echo_n "(cached) " >&6
2169b7fb5eacSmrgelse
2170b7fb5eacSmrg  if test -n "$ac_ct_STRIP"; then
2171b7fb5eacSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2172b7fb5eacSmrgelse
2173b7fb5eacSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174b7fb5eacSmrgfor as_dir in $PATH
2175b7fb5eacSmrgdo
2176b7fb5eacSmrg  IFS=$as_save_IFS
2177b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
2178b7fb5eacSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
2179b7fb5eacSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180b7fb5eacSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2181b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182b7fb5eacSmrg    break 2
2183b7fb5eacSmrg  fi
2184b7fb5eacSmrgdone
2185b7fb5eacSmrgdone
2186b7fb5eacSmrgIFS=$as_save_IFS
2187b7fb5eacSmrg
2188b7fb5eacSmrgfi
2189b7fb5eacSmrgfi
2190b7fb5eacSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2191b7fb5eacSmrgif test -n "$ac_ct_STRIP"; then
2192b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2193b7fb5eacSmrg$as_echo "$ac_ct_STRIP" >&6; }
2194b7fb5eacSmrgelse
2195b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2196b7fb5eacSmrg$as_echo "no" >&6; }
2197b7fb5eacSmrgfi
2198b7fb5eacSmrg
2199b7fb5eacSmrg  if test "x$ac_ct_STRIP" = x; then
2200b7fb5eacSmrg    STRIP=":"
2201b7fb5eacSmrg  else
2202b7fb5eacSmrg    case $cross_compiling:$ac_tool_warned in
2203b7fb5eacSmrgyes:)
2204b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2205b7fb5eacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2206b7fb5eacSmrgac_tool_warned=yes ;;
2207b7fb5eacSmrgesac
2208b7fb5eacSmrg    STRIP=$ac_ct_STRIP
2209b7fb5eacSmrg  fi
2210b7fb5eacSmrgelse
2211b7fb5eacSmrg  STRIP="$ac_cv_prog_STRIP"
2212b7fb5eacSmrgfi
2213b7fb5eacSmrg
22141a30de1fSmrgfi
2215b7fb5eacSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
22161a30de1fSmrg
2217b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2218b7fb5eacSmrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
22191a30de1fSmrgif test -z "$MKDIR_P"; then
22201a30de1fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
2221b7fb5eacSmrg  $as_echo_n "(cached) " >&6
22221a30de1fSmrgelse
22231a30de1fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22241a30de1fSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
22251a30de1fSmrgdo
22261a30de1fSmrg  IFS=$as_save_IFS
22271a30de1fSmrg  test -z "$as_dir" && as_dir=.
22281a30de1fSmrg  for ac_prog in mkdir gmkdir; do
22291a30de1fSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
22301a30de1fSmrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
22311a30de1fSmrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
22321a30de1fSmrg	     'mkdir (GNU coreutils) '* | \
22331a30de1fSmrg	     'mkdir (coreutils) '* | \
22341a30de1fSmrg	     'mkdir (fileutils) '4.1*)
22351a30de1fSmrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
22361a30de1fSmrg	       break 3;;
22371a30de1fSmrg	   esac
22381a30de1fSmrg	 done
22391a30de1fSmrg       done
22401a30de1fSmrgdone
22411a30de1fSmrgIFS=$as_save_IFS
22421a30de1fSmrg
22431a30de1fSmrgfi
22441a30de1fSmrg
22451a30de1fSmrg  if test "${ac_cv_path_mkdir+set}" = set; then
22461a30de1fSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
22471a30de1fSmrg  else
22481a30de1fSmrg    # As a last resort, use the slow shell script.  Don't cache a
22491a30de1fSmrg    # value for MKDIR_P within a source directory, because that will
22501a30de1fSmrg    # break other packages using the cache if that directory is
22511a30de1fSmrg    # removed, or if the value is a relative name.
22521a30de1fSmrg    test -d ./--version && rmdir ./--version
22531a30de1fSmrg    MKDIR_P="$ac_install_sh -d"
22541a30de1fSmrg  fi
22551a30de1fSmrgfi
2256b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2257b7fb5eacSmrg$as_echo "$MKDIR_P" >&6; }
22581a30de1fSmrg
22591a30de1fSmrgmkdir_p="$MKDIR_P"
22601a30de1fSmrgcase $mkdir_p in
22611a30de1fSmrg  [\\/$]* | ?:[\\/]*) ;;
22621a30de1fSmrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
22631a30de1fSmrgesac
22641a30de1fSmrg
22651a30de1fSmrgfor ac_prog in gawk mawk nawk awk
22661a30de1fSmrgdo
22671a30de1fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
22681a30de1fSmrgset dummy $ac_prog; ac_word=$2
2269b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2270b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
22711a30de1fSmrgif test "${ac_cv_prog_AWK+set}" = set; then
2272b7fb5eacSmrg  $as_echo_n "(cached) " >&6
22731a30de1fSmrgelse
22741a30de1fSmrg  if test -n "$AWK"; then
22751a30de1fSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
22761a30de1fSmrgelse
22771a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22781a30de1fSmrgfor as_dir in $PATH
22791a30de1fSmrgdo
22801a30de1fSmrg  IFS=$as_save_IFS
22811a30de1fSmrg  test -z "$as_dir" && as_dir=.
22821a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
22831a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22841a30de1fSmrg    ac_cv_prog_AWK="$ac_prog"
2285b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22861a30de1fSmrg    break 2
22871a30de1fSmrg  fi
22881a30de1fSmrgdone
22891a30de1fSmrgdone
22901a30de1fSmrgIFS=$as_save_IFS
22911a30de1fSmrg
22921a30de1fSmrgfi
22931a30de1fSmrgfi
22941a30de1fSmrgAWK=$ac_cv_prog_AWK
22951a30de1fSmrgif test -n "$AWK"; then
2296b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2297b7fb5eacSmrg$as_echo "$AWK" >&6; }
22981a30de1fSmrgelse
2299b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2300b7fb5eacSmrg$as_echo "no" >&6; }
23011a30de1fSmrgfi
23021a30de1fSmrg
23031a30de1fSmrg
23041a30de1fSmrg  test -n "$AWK" && break
23051a30de1fSmrgdone
23061a30de1fSmrg
2307b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2308b7fb5eacSmrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2309b7fb5eacSmrgset x ${MAKE-make}
2310b7fb5eacSmrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23111a30de1fSmrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2312b7fb5eacSmrg  $as_echo_n "(cached) " >&6
23131a30de1fSmrgelse
23141a30de1fSmrg  cat >conftest.make <<\_ACEOF
23151a30de1fSmrgSHELL = /bin/sh
23161a30de1fSmrgall:
23171a30de1fSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
23181a30de1fSmrg_ACEOF
23191a30de1fSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23201a30de1fSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
23211a30de1fSmrg  *@@@%%%=?*=@@@%%%*)
23221a30de1fSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
23231a30de1fSmrg  *)
23241a30de1fSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
23251a30de1fSmrgesac
23261a30de1fSmrgrm -f conftest.make
23271a30de1fSmrgfi
23281a30de1fSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2329b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: yes" >&5
2330b7fb5eacSmrg$as_echo "yes" >&6; }
23311a30de1fSmrg  SET_MAKE=
23321a30de1fSmrgelse
2333b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2334b7fb5eacSmrg$as_echo "no" >&6; }
23351a30de1fSmrg  SET_MAKE="MAKE=${MAKE-make}"
23361a30de1fSmrgfi
23371a30de1fSmrg
23381a30de1fSmrgrm -rf .tst 2>/dev/null
23391a30de1fSmrgmkdir .tst 2>/dev/null
23401a30de1fSmrgif test -d .tst; then
23411a30de1fSmrg  am__leading_dot=.
23421a30de1fSmrgelse
23431a30de1fSmrg  am__leading_dot=_
23441a30de1fSmrgfi
23451a30de1fSmrgrmdir .tst 2>/dev/null
23461a30de1fSmrg
23471a30de1fSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
23481a30de1fSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
23491a30de1fSmrg  # is not polluted with repeated "-I."
23501a30de1fSmrg  am__isrc=' -I$(srcdir)'
23511a30de1fSmrg  # test to see if srcdir already configured
23521a30de1fSmrg  if test -f $srcdir/config.status; then
2353b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2354b7fb5eacSmrg$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
23551a30de1fSmrg   { (exit 1); exit 1; }; }
23561a30de1fSmrg  fi
23571a30de1fSmrgfi
23581a30de1fSmrg
23591a30de1fSmrg# test whether we have cygpath
23601a30de1fSmrgif test -z "$CYGPATH_W"; then
23611a30de1fSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
23621a30de1fSmrg    CYGPATH_W='cygpath -w'
23631a30de1fSmrg  else
23641a30de1fSmrg    CYGPATH_W=echo
23651a30de1fSmrg  fi
23661a30de1fSmrgfi
23671a30de1fSmrg
23681a30de1fSmrg
23691a30de1fSmrg# Define the identity of the package.
23701a30de1fSmrg PACKAGE='xmodmap'
2371b7fb5eacSmrg VERSION='1.0.4'
23721a30de1fSmrg
23731a30de1fSmrg
23741a30de1fSmrgcat >>confdefs.h <<_ACEOF
23751a30de1fSmrg#define PACKAGE "$PACKAGE"
23761a30de1fSmrg_ACEOF
23771a30de1fSmrg
23781a30de1fSmrg
23791a30de1fSmrgcat >>confdefs.h <<_ACEOF
23801a30de1fSmrg#define VERSION "$VERSION"
23811a30de1fSmrg_ACEOF
23821a30de1fSmrg
23831a30de1fSmrg# Some tools Automake needs.
23841a30de1fSmrg
23851a30de1fSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23861a30de1fSmrg
23871a30de1fSmrg
23881a30de1fSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
23891a30de1fSmrg
23901a30de1fSmrg
23911a30de1fSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23921a30de1fSmrg
23931a30de1fSmrg
23941a30de1fSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
23951a30de1fSmrg
23961a30de1fSmrg
23971a30de1fSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23981a30de1fSmrg
23991a30de1fSmrg# We need awk for the "check" target.  The system "awk" is bad on
24001a30de1fSmrg# some platforms.
24011a30de1fSmrg# Always define AMTAR for backward compatibility.
24021a30de1fSmrg
24031a30de1fSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
24041a30de1fSmrg
24051a30de1fSmrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
24061a30de1fSmrg
24071a30de1fSmrg
24081a30de1fSmrg
24091a30de1fSmrg
24101a30de1fSmrg
2411b7fb5eacSmrg
2412b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2413b7fb5eacSmrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24141a30de1fSmrg    # Check whether --enable-maintainer-mode was given.
24151a30de1fSmrgif test "${enable_maintainer_mode+set}" = set; then
24161a30de1fSmrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
24171a30de1fSmrgelse
24181a30de1fSmrg  USE_MAINTAINER_MODE=no
24191a30de1fSmrgfi
24201a30de1fSmrg
2421b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2422b7fb5eacSmrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
24231a30de1fSmrg   if test $USE_MAINTAINER_MODE = yes; then
24241a30de1fSmrg  MAINTAINER_MODE_TRUE=
24251a30de1fSmrg  MAINTAINER_MODE_FALSE='#'
24261a30de1fSmrgelse
24271a30de1fSmrg  MAINTAINER_MODE_TRUE='#'
24281a30de1fSmrg  MAINTAINER_MODE_FALSE=
24291a30de1fSmrgfi
24301a30de1fSmrg
24311a30de1fSmrg  MAINT=$MAINTAINER_MODE_TRUE
24321a30de1fSmrg
24331a30de1fSmrg
24341a30de1fSmrg
2435b7fb5eacSmrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
2436b7fb5eacSmrg
2437b7fb5eacSmrg
2438b7fb5eacSmrg
2439b7fb5eacSmrg
2440b7fb5eacSmrg
2441b7fb5eacSmrg
2442b7fb5eacSmrg
2443b7fb5eacSmrg
2444b7fb5eacSmrg
2445b7fb5eacSmrg
2446b7fb5eacSmrg
2447b7fb5eacSmrg
24481a30de1fSmrgac_config_headers="$ac_config_headers config.h"
24491a30de1fSmrg
24501a30de1fSmrg
24511a30de1fSmrgac_ext=c
24521a30de1fSmrgac_cpp='$CPP $CPPFLAGS'
24531a30de1fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24541a30de1fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24551a30de1fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
24561a30de1fSmrgif test -n "$ac_tool_prefix"; then
24571a30de1fSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24581a30de1fSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
2459b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2460b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
24611a30de1fSmrgif test "${ac_cv_prog_CC+set}" = set; then
2462b7fb5eacSmrg  $as_echo_n "(cached) " >&6
24631a30de1fSmrgelse
24641a30de1fSmrg  if test -n "$CC"; then
24651a30de1fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
24661a30de1fSmrgelse
24671a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24681a30de1fSmrgfor as_dir in $PATH
24691a30de1fSmrgdo
24701a30de1fSmrg  IFS=$as_save_IFS
24711a30de1fSmrg  test -z "$as_dir" && as_dir=.
24721a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
24731a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24741a30de1fSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2475b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24761a30de1fSmrg    break 2
24771a30de1fSmrg  fi
24781a30de1fSmrgdone
24791a30de1fSmrgdone
24801a30de1fSmrgIFS=$as_save_IFS
24811a30de1fSmrg
24821a30de1fSmrgfi
24831a30de1fSmrgfi
24841a30de1fSmrgCC=$ac_cv_prog_CC
24851a30de1fSmrgif test -n "$CC"; then
2486b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2487b7fb5eacSmrg$as_echo "$CC" >&6; }
24881a30de1fSmrgelse
2489b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2490b7fb5eacSmrg$as_echo "no" >&6; }
24911a30de1fSmrgfi
24921a30de1fSmrg
24931a30de1fSmrg
24941a30de1fSmrgfi
24951a30de1fSmrgif test -z "$ac_cv_prog_CC"; then
24961a30de1fSmrg  ac_ct_CC=$CC
24971a30de1fSmrg  # Extract the first word of "gcc", so it can be a program name with args.
24981a30de1fSmrgset dummy gcc; ac_word=$2
2499b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
25011a30de1fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502b7fb5eacSmrg  $as_echo_n "(cached) " >&6
25031a30de1fSmrgelse
25041a30de1fSmrg  if test -n "$ac_ct_CC"; then
25051a30de1fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
25061a30de1fSmrgelse
25071a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25081a30de1fSmrgfor as_dir in $PATH
25091a30de1fSmrgdo
25101a30de1fSmrg  IFS=$as_save_IFS
25111a30de1fSmrg  test -z "$as_dir" && as_dir=.
25121a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
25131a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25141a30de1fSmrg    ac_cv_prog_ac_ct_CC="gcc"
2515b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25161a30de1fSmrg    break 2
25171a30de1fSmrg  fi
25181a30de1fSmrgdone
25191a30de1fSmrgdone
25201a30de1fSmrgIFS=$as_save_IFS
25211a30de1fSmrg
25221a30de1fSmrgfi
25231a30de1fSmrgfi
25241a30de1fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
25251a30de1fSmrgif test -n "$ac_ct_CC"; then
2526b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527b7fb5eacSmrg$as_echo "$ac_ct_CC" >&6; }
25281a30de1fSmrgelse
2529b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2530b7fb5eacSmrg$as_echo "no" >&6; }
25311a30de1fSmrgfi
25321a30de1fSmrg
25331a30de1fSmrg  if test "x$ac_ct_CC" = x; then
25341a30de1fSmrg    CC=""
25351a30de1fSmrg  else
25361a30de1fSmrg    case $cross_compiling:$ac_tool_warned in
25371a30de1fSmrgyes:)
2538b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2539b7fb5eacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25401a30de1fSmrgac_tool_warned=yes ;;
25411a30de1fSmrgesac
25421a30de1fSmrg    CC=$ac_ct_CC
25431a30de1fSmrg  fi
25441a30de1fSmrgelse
25451a30de1fSmrg  CC="$ac_cv_prog_CC"
25461a30de1fSmrgfi
25471a30de1fSmrg
25481a30de1fSmrgif test -z "$CC"; then
25491a30de1fSmrg          if test -n "$ac_tool_prefix"; then
25501a30de1fSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
25511a30de1fSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
2552b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2553b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
25541a30de1fSmrgif test "${ac_cv_prog_CC+set}" = set; then
2555b7fb5eacSmrg  $as_echo_n "(cached) " >&6
25561a30de1fSmrgelse
25571a30de1fSmrg  if test -n "$CC"; then
25581a30de1fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25591a30de1fSmrgelse
25601a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25611a30de1fSmrgfor as_dir in $PATH
25621a30de1fSmrgdo
25631a30de1fSmrg  IFS=$as_save_IFS
25641a30de1fSmrg  test -z "$as_dir" && as_dir=.
25651a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
25661a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25671a30de1fSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
2568b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25691a30de1fSmrg    break 2
25701a30de1fSmrg  fi
25711a30de1fSmrgdone
25721a30de1fSmrgdone
25731a30de1fSmrgIFS=$as_save_IFS
25741a30de1fSmrg
25751a30de1fSmrgfi
25761a30de1fSmrgfi
25771a30de1fSmrgCC=$ac_cv_prog_CC
25781a30de1fSmrgif test -n "$CC"; then
2579b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2580b7fb5eacSmrg$as_echo "$CC" >&6; }
25811a30de1fSmrgelse
2582b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2583b7fb5eacSmrg$as_echo "no" >&6; }
25841a30de1fSmrgfi
25851a30de1fSmrg
25861a30de1fSmrg
25871a30de1fSmrg  fi
25881a30de1fSmrgfi
25891a30de1fSmrgif test -z "$CC"; then
25901a30de1fSmrg  # Extract the first word of "cc", so it can be a program name with args.
25911a30de1fSmrgset dummy cc; ac_word=$2
2592b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2593b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
25941a30de1fSmrgif test "${ac_cv_prog_CC+set}" = set; then
2595b7fb5eacSmrg  $as_echo_n "(cached) " >&6
25961a30de1fSmrgelse
25971a30de1fSmrg  if test -n "$CC"; then
25981a30de1fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
25991a30de1fSmrgelse
26001a30de1fSmrg  ac_prog_rejected=no
26011a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26021a30de1fSmrgfor as_dir in $PATH
26031a30de1fSmrgdo
26041a30de1fSmrg  IFS=$as_save_IFS
26051a30de1fSmrg  test -z "$as_dir" && as_dir=.
26061a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
26071a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26081a30de1fSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
26091a30de1fSmrg       ac_prog_rejected=yes
26101a30de1fSmrg       continue
26111a30de1fSmrg     fi
26121a30de1fSmrg    ac_cv_prog_CC="cc"
2613b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26141a30de1fSmrg    break 2
26151a30de1fSmrg  fi
26161a30de1fSmrgdone
26171a30de1fSmrgdone
26181a30de1fSmrgIFS=$as_save_IFS
26191a30de1fSmrg
26201a30de1fSmrgif test $ac_prog_rejected = yes; then
26211a30de1fSmrg  # We found a bogon in the path, so make sure we never use it.
26221a30de1fSmrg  set dummy $ac_cv_prog_CC
26231a30de1fSmrg  shift
26241a30de1fSmrg  if test $# != 0; then
26251a30de1fSmrg    # We chose a different compiler from the bogus one.
26261a30de1fSmrg    # However, it has the same basename, so the bogon will be chosen
26271a30de1fSmrg    # first if we set CC to just the basename; use the full file name.
26281a30de1fSmrg    shift
26291a30de1fSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
26301a30de1fSmrg  fi
26311a30de1fSmrgfi
26321a30de1fSmrgfi
26331a30de1fSmrgfi
26341a30de1fSmrgCC=$ac_cv_prog_CC
26351a30de1fSmrgif test -n "$CC"; then
2636b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2637b7fb5eacSmrg$as_echo "$CC" >&6; }
26381a30de1fSmrgelse
2639b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2640b7fb5eacSmrg$as_echo "no" >&6; }
26411a30de1fSmrgfi
26421a30de1fSmrg
26431a30de1fSmrg
26441a30de1fSmrgfi
26451a30de1fSmrgif test -z "$CC"; then
26461a30de1fSmrg  if test -n "$ac_tool_prefix"; then
26471a30de1fSmrg  for ac_prog in cl.exe
26481a30de1fSmrg  do
26491a30de1fSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26501a30de1fSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2651b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
26531a30de1fSmrgif test "${ac_cv_prog_CC+set}" = set; then
2654b7fb5eacSmrg  $as_echo_n "(cached) " >&6
26551a30de1fSmrgelse
26561a30de1fSmrg  if test -n "$CC"; then
26571a30de1fSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
26581a30de1fSmrgelse
26591a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26601a30de1fSmrgfor as_dir in $PATH
26611a30de1fSmrgdo
26621a30de1fSmrg  IFS=$as_save_IFS
26631a30de1fSmrg  test -z "$as_dir" && as_dir=.
26641a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
26651a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26661a30de1fSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2667b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26681a30de1fSmrg    break 2
26691a30de1fSmrg  fi
26701a30de1fSmrgdone
26711a30de1fSmrgdone
26721a30de1fSmrgIFS=$as_save_IFS
26731a30de1fSmrg
26741a30de1fSmrgfi
26751a30de1fSmrgfi
26761a30de1fSmrgCC=$ac_cv_prog_CC
26771a30de1fSmrgif test -n "$CC"; then
2678b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2679b7fb5eacSmrg$as_echo "$CC" >&6; }
26801a30de1fSmrgelse
2681b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2682b7fb5eacSmrg$as_echo "no" >&6; }
26831a30de1fSmrgfi
26841a30de1fSmrg
26851a30de1fSmrg
26861a30de1fSmrg    test -n "$CC" && break
26871a30de1fSmrg  done
26881a30de1fSmrgfi
26891a30de1fSmrgif test -z "$CC"; then
26901a30de1fSmrg  ac_ct_CC=$CC
26911a30de1fSmrg  for ac_prog in cl.exe
26921a30de1fSmrgdo
26931a30de1fSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
26941a30de1fSmrgset dummy $ac_prog; ac_word=$2
2695b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2696b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
26971a30de1fSmrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698b7fb5eacSmrg  $as_echo_n "(cached) " >&6
26991a30de1fSmrgelse
27001a30de1fSmrg  if test -n "$ac_ct_CC"; then
27011a30de1fSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
27021a30de1fSmrgelse
27031a30de1fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27041a30de1fSmrgfor as_dir in $PATH
27051a30de1fSmrgdo
27061a30de1fSmrg  IFS=$as_save_IFS
27071a30de1fSmrg  test -z "$as_dir" && as_dir=.
27081a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
27091a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27101a30de1fSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
2711b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27121a30de1fSmrg    break 2
27131a30de1fSmrg  fi
27141a30de1fSmrgdone
27151a30de1fSmrgdone
27161a30de1fSmrgIFS=$as_save_IFS
27171a30de1fSmrg
27181a30de1fSmrgfi
27191a30de1fSmrgfi
27201a30de1fSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
27211a30de1fSmrgif test -n "$ac_ct_CC"; then
2722b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2723b7fb5eacSmrg$as_echo "$ac_ct_CC" >&6; }
27241a30de1fSmrgelse
2725b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
2726b7fb5eacSmrg$as_echo "no" >&6; }
27271a30de1fSmrgfi
27281a30de1fSmrg
27291a30de1fSmrg
27301a30de1fSmrg  test -n "$ac_ct_CC" && break
27311a30de1fSmrgdone
27321a30de1fSmrg
27331a30de1fSmrg  if test "x$ac_ct_CC" = x; then
27341a30de1fSmrg    CC=""
27351a30de1fSmrg  else
27361a30de1fSmrg    case $cross_compiling:$ac_tool_warned in
27371a30de1fSmrgyes:)
2738b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2739b7fb5eacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27401a30de1fSmrgac_tool_warned=yes ;;
27411a30de1fSmrgesac
27421a30de1fSmrg    CC=$ac_ct_CC
27431a30de1fSmrg  fi
27441a30de1fSmrgfi
27451a30de1fSmrg
27461a30de1fSmrgfi
27471a30de1fSmrg
27481a30de1fSmrg
2749b7fb5eacSmrgtest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2750b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
27521a30de1fSmrgSee \`config.log' for more details." >&5
2753b7fb5eacSmrg$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
27541a30de1fSmrgSee \`config.log' for more details." >&2;}
2755b7fb5eacSmrg   { (exit 1); exit 1; }; }; }
27561a30de1fSmrg
27571a30de1fSmrg# Provide some information about the compiler.
2758b7fb5eacSmrg$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2759b7fb5eacSmrgset X $ac_compile
2760b7fb5eacSmrgac_compiler=$2
27611a30de1fSmrg{ (ac_try="$ac_compiler --version >&5"
27621a30de1fSmrgcase "(($ac_try" in
27631a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27641a30de1fSmrg  *) ac_try_echo=$ac_try;;
27651a30de1fSmrgesac
2766b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2767b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
27681a30de1fSmrg  (eval "$ac_compiler --version >&5") 2>&5
27691a30de1fSmrg  ac_status=$?
2770b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711a30de1fSmrg  (exit $ac_status); }
27721a30de1fSmrg{ (ac_try="$ac_compiler -v >&5"
27731a30de1fSmrgcase "(($ac_try" in
27741a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751a30de1fSmrg  *) ac_try_echo=$ac_try;;
27761a30de1fSmrgesac
2777b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2778b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
27791a30de1fSmrg  (eval "$ac_compiler -v >&5") 2>&5
27801a30de1fSmrg  ac_status=$?
2781b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821a30de1fSmrg  (exit $ac_status); }
27831a30de1fSmrg{ (ac_try="$ac_compiler -V >&5"
27841a30de1fSmrgcase "(($ac_try" in
27851a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861a30de1fSmrg  *) ac_try_echo=$ac_try;;
27871a30de1fSmrgesac
2788b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2789b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
27901a30de1fSmrg  (eval "$ac_compiler -V >&5") 2>&5
27911a30de1fSmrg  ac_status=$?
2792b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931a30de1fSmrg  (exit $ac_status); }
27941a30de1fSmrg
27951a30de1fSmrgcat >conftest.$ac_ext <<_ACEOF
27961a30de1fSmrg/* confdefs.h.  */
27971a30de1fSmrg_ACEOF
27981a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
27991a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
28001a30de1fSmrg/* end confdefs.h.  */
28011a30de1fSmrg
28021a30de1fSmrgint
28031a30de1fSmrgmain ()
28041a30de1fSmrg{
28051a30de1fSmrg
28061a30de1fSmrg  ;
28071a30de1fSmrg  return 0;
28081a30de1fSmrg}
28091a30de1fSmrg_ACEOF
28101a30de1fSmrgac_clean_files_save=$ac_clean_files
2811b7fb5eacSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
28121a30de1fSmrg# Try to create an executable without -o first, disregard a.out.
28131a30de1fSmrg# It will help us diagnose broken compilers, and finding out an intuition
28141a30de1fSmrg# of exeext.
2815b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2816b7fb5eacSmrg$as_echo_n "checking for C compiler default output file name... " >&6; }
2817b7fb5eacSmrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2818b7fb5eacSmrg
2819b7fb5eacSmrg# The possible output files:
2820b7fb5eacSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2821b7fb5eacSmrg
28221a30de1fSmrgac_rmfiles=
28231a30de1fSmrgfor ac_file in $ac_files
28241a30de1fSmrgdo
28251a30de1fSmrg  case $ac_file in
2826b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
28271a30de1fSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
28281a30de1fSmrg  esac
28291a30de1fSmrgdone
28301a30de1fSmrgrm -f $ac_rmfiles
28311a30de1fSmrg
28321a30de1fSmrgif { (ac_try="$ac_link_default"
28331a30de1fSmrgcase "(($ac_try" in
28341a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351a30de1fSmrg  *) ac_try_echo=$ac_try;;
28361a30de1fSmrgesac
2837b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
28391a30de1fSmrg  (eval "$ac_link_default") 2>&5
28401a30de1fSmrg  ac_status=$?
2841b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421a30de1fSmrg  (exit $ac_status); }; then
28431a30de1fSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
28441a30de1fSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
28451a30de1fSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
28461a30de1fSmrg# so that the user can short-circuit this test for compilers unknown to
28471a30de1fSmrg# Autoconf.
28481a30de1fSmrgfor ac_file in $ac_files ''
28491a30de1fSmrgdo
28501a30de1fSmrg  test -f "$ac_file" || continue
28511a30de1fSmrg  case $ac_file in
2852b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
28531a30de1fSmrg	;;
28541a30de1fSmrg    [ab].out )
28551a30de1fSmrg	# We found the default executable, but exeext='' is most
28561a30de1fSmrg	# certainly right.
28571a30de1fSmrg	break;;
28581a30de1fSmrg    *.* )
28591a30de1fSmrg        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
28601a30de1fSmrg	then :; else
28611a30de1fSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
28621a30de1fSmrg	fi
28631a30de1fSmrg	# We set ac_cv_exeext here because the later test for it is not
28641a30de1fSmrg	# safe: cross compilers may not add the suffix if given an `-o'
28651a30de1fSmrg	# argument, so we may need to know it at that point already.
28661a30de1fSmrg	# Even if this section looks crufty: it has the advantage of
28671a30de1fSmrg	# actually working.
28681a30de1fSmrg	break;;
28691a30de1fSmrg    * )
28701a30de1fSmrg	break;;
28711a30de1fSmrg  esac
28721a30de1fSmrgdone
28731a30de1fSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
28741a30de1fSmrg
28751a30de1fSmrgelse
28761a30de1fSmrg  ac_file=''
28771a30de1fSmrgfi
28781a30de1fSmrg
2879b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2880b7fb5eacSmrg$as_echo "$ac_file" >&6; }
28811a30de1fSmrgif test -z "$ac_file"; then
2882b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
28831a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
28841a30de1fSmrg
2885b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
28881a30de1fSmrgSee \`config.log' for more details." >&5
2889b7fb5eacSmrg$as_echo "$as_me: error: C compiler cannot create executables
28901a30de1fSmrgSee \`config.log' for more details." >&2;}
2891b7fb5eacSmrg   { (exit 77); exit 77; }; }; }
28921a30de1fSmrgfi
28931a30de1fSmrg
28941a30de1fSmrgac_exeext=$ac_cv_exeext
28951a30de1fSmrg
28961a30de1fSmrg# Check that the compiler produces executables we can run.  If not, either
28971a30de1fSmrg# the compiler is broken, or we cross compile.
2898b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2899b7fb5eacSmrg$as_echo_n "checking whether the C compiler works... " >&6; }
29001a30de1fSmrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
29011a30de1fSmrg# If not cross compiling, check that we can run a simple program.
29021a30de1fSmrgif test "$cross_compiling" != yes; then
29031a30de1fSmrg  if { ac_try='./$ac_file'
29041a30de1fSmrg  { (case "(($ac_try" in
29051a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061a30de1fSmrg  *) ac_try_echo=$ac_try;;
29071a30de1fSmrgesac
2908b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
29101a30de1fSmrg  (eval "$ac_try") 2>&5
29111a30de1fSmrg  ac_status=$?
2912b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131a30de1fSmrg  (exit $ac_status); }; }; then
29141a30de1fSmrg    cross_compiling=no
29151a30de1fSmrg  else
29161a30de1fSmrg    if test "$cross_compiling" = maybe; then
29171a30de1fSmrg	cross_compiling=yes
29181a30de1fSmrg    else
2919b7fb5eacSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2920b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
29221a30de1fSmrgIf you meant to cross compile, use \`--host'.
29231a30de1fSmrgSee \`config.log' for more details." >&5
2924b7fb5eacSmrg$as_echo "$as_me: error: cannot run C compiled programs.
29251a30de1fSmrgIf you meant to cross compile, use \`--host'.
29261a30de1fSmrgSee \`config.log' for more details." >&2;}
2927b7fb5eacSmrg   { (exit 1); exit 1; }; }; }
29281a30de1fSmrg    fi
29291a30de1fSmrg  fi
29301a30de1fSmrgfi
2931b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: yes" >&5
2932b7fb5eacSmrg$as_echo "yes" >&6; }
29331a30de1fSmrg
2934b7fb5eacSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
29351a30de1fSmrgac_clean_files=$ac_clean_files_save
29361a30de1fSmrg# Check that the compiler produces executables we can run.  If not, either
29371a30de1fSmrg# the compiler is broken, or we cross compile.
2938b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2939b7fb5eacSmrg$as_echo_n "checking whether we are cross compiling... " >&6; }
2940b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2941b7fb5eacSmrg$as_echo "$cross_compiling" >&6; }
29421a30de1fSmrg
2943b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2944b7fb5eacSmrg$as_echo_n "checking for suffix of executables... " >&6; }
29451a30de1fSmrgif { (ac_try="$ac_link"
29461a30de1fSmrgcase "(($ac_try" in
29471a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29481a30de1fSmrg  *) ac_try_echo=$ac_try;;
29491a30de1fSmrgesac
2950b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
29521a30de1fSmrg  (eval "$ac_link") 2>&5
29531a30de1fSmrg  ac_status=$?
2954b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551a30de1fSmrg  (exit $ac_status); }; then
29561a30de1fSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
29571a30de1fSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
29581a30de1fSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
29591a30de1fSmrg# `rm'.
29601a30de1fSmrgfor ac_file in conftest.exe conftest conftest.*; do
29611a30de1fSmrg  test -f "$ac_file" || continue
29621a30de1fSmrg  case $ac_file in
2963b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
29641a30de1fSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
29651a30de1fSmrg	  break;;
29661a30de1fSmrg    * ) break;;
29671a30de1fSmrg  esac
29681a30de1fSmrgdone
29691a30de1fSmrgelse
2970b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2971b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
29731a30de1fSmrgSee \`config.log' for more details." >&5
2974b7fb5eacSmrg$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
29751a30de1fSmrgSee \`config.log' for more details." >&2;}
2976b7fb5eacSmrg   { (exit 1); exit 1; }; }; }
29771a30de1fSmrgfi
29781a30de1fSmrg
29791a30de1fSmrgrm -f conftest$ac_cv_exeext
2980b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2981b7fb5eacSmrg$as_echo "$ac_cv_exeext" >&6; }
29821a30de1fSmrg
29831a30de1fSmrgrm -f conftest.$ac_ext
29841a30de1fSmrgEXEEXT=$ac_cv_exeext
29851a30de1fSmrgac_exeext=$EXEEXT
2986b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2987b7fb5eacSmrg$as_echo_n "checking for suffix of object files... " >&6; }
29881a30de1fSmrgif test "${ac_cv_objext+set}" = set; then
2989b7fb5eacSmrg  $as_echo_n "(cached) " >&6
29901a30de1fSmrgelse
29911a30de1fSmrg  cat >conftest.$ac_ext <<_ACEOF
29921a30de1fSmrg/* confdefs.h.  */
29931a30de1fSmrg_ACEOF
29941a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
29951a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
29961a30de1fSmrg/* end confdefs.h.  */
29971a30de1fSmrg
29981a30de1fSmrgint
29991a30de1fSmrgmain ()
30001a30de1fSmrg{
30011a30de1fSmrg
30021a30de1fSmrg  ;
30031a30de1fSmrg  return 0;
30041a30de1fSmrg}
30051a30de1fSmrg_ACEOF
30061a30de1fSmrgrm -f conftest.o conftest.obj
30071a30de1fSmrgif { (ac_try="$ac_compile"
30081a30de1fSmrgcase "(($ac_try" in
30091a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101a30de1fSmrg  *) ac_try_echo=$ac_try;;
30111a30de1fSmrgesac
3012b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3013b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
30141a30de1fSmrg  (eval "$ac_compile") 2>&5
30151a30de1fSmrg  ac_status=$?
3016b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171a30de1fSmrg  (exit $ac_status); }; then
30181a30de1fSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
30191a30de1fSmrg  test -f "$ac_file" || continue;
30201a30de1fSmrg  case $ac_file in
3021b7fb5eacSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
30221a30de1fSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
30231a30de1fSmrg       break;;
30241a30de1fSmrg  esac
30251a30de1fSmrgdone
30261a30de1fSmrgelse
3027b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
30281a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
30291a30de1fSmrg
3030b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3031b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
30331a30de1fSmrgSee \`config.log' for more details." >&5
3034b7fb5eacSmrg$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
30351a30de1fSmrgSee \`config.log' for more details." >&2;}
3036b7fb5eacSmrg   { (exit 1); exit 1; }; }; }
30371a30de1fSmrgfi
30381a30de1fSmrg
30391a30de1fSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
30401a30de1fSmrgfi
3041b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3042b7fb5eacSmrg$as_echo "$ac_cv_objext" >&6; }
30431a30de1fSmrgOBJEXT=$ac_cv_objext
30441a30de1fSmrgac_objext=$OBJEXT
3045b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3046b7fb5eacSmrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
30471a30de1fSmrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
3048b7fb5eacSmrg  $as_echo_n "(cached) " >&6
30491a30de1fSmrgelse
30501a30de1fSmrg  cat >conftest.$ac_ext <<_ACEOF
30511a30de1fSmrg/* confdefs.h.  */
30521a30de1fSmrg_ACEOF
30531a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
30541a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
30551a30de1fSmrg/* end confdefs.h.  */
30561a30de1fSmrg
30571a30de1fSmrgint
30581a30de1fSmrgmain ()
30591a30de1fSmrg{
30601a30de1fSmrg#ifndef __GNUC__
30611a30de1fSmrg       choke me
30621a30de1fSmrg#endif
30631a30de1fSmrg
30641a30de1fSmrg  ;
30651a30de1fSmrg  return 0;
30661a30de1fSmrg}
30671a30de1fSmrg_ACEOF
30681a30de1fSmrgrm -f conftest.$ac_objext
30691a30de1fSmrgif { (ac_try="$ac_compile"
30701a30de1fSmrgcase "(($ac_try" in
30711a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721a30de1fSmrg  *) ac_try_echo=$ac_try;;
30731a30de1fSmrgesac
3074b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
30761a30de1fSmrg  (eval "$ac_compile") 2>conftest.er1
30771a30de1fSmrg  ac_status=$?
30781a30de1fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
30791a30de1fSmrg  rm -f conftest.er1
30801a30de1fSmrg  cat conftest.err >&5
3081b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821a30de1fSmrg  (exit $ac_status); } && {
30831a30de1fSmrg	 test -z "$ac_c_werror_flag" ||
30841a30de1fSmrg	 test ! -s conftest.err
30851a30de1fSmrg       } && test -s conftest.$ac_objext; then
30861a30de1fSmrg  ac_compiler_gnu=yes
30871a30de1fSmrgelse
3088b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
30891a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
30901a30de1fSmrg
30911a30de1fSmrg	ac_compiler_gnu=no
30921a30de1fSmrgfi
30931a30de1fSmrg
30941a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30951a30de1fSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
30961a30de1fSmrg
30971a30de1fSmrgfi
3098b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099b7fb5eacSmrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3100b7fb5eacSmrgif test $ac_compiler_gnu = yes; then
3101b7fb5eacSmrg  GCC=yes
3102b7fb5eacSmrgelse
3103b7fb5eacSmrg  GCC=
3104b7fb5eacSmrgfi
31051a30de1fSmrgac_test_CFLAGS=${CFLAGS+set}
31061a30de1fSmrgac_save_CFLAGS=$CFLAGS
3107b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3108b7fb5eacSmrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
31091a30de1fSmrgif test "${ac_cv_prog_cc_g+set}" = set; then
3110b7fb5eacSmrg  $as_echo_n "(cached) " >&6
31111a30de1fSmrgelse
31121a30de1fSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
31131a30de1fSmrg   ac_c_werror_flag=yes
31141a30de1fSmrg   ac_cv_prog_cc_g=no
31151a30de1fSmrg   CFLAGS="-g"
31161a30de1fSmrg   cat >conftest.$ac_ext <<_ACEOF
31171a30de1fSmrg/* confdefs.h.  */
31181a30de1fSmrg_ACEOF
31191a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
31201a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
31211a30de1fSmrg/* end confdefs.h.  */
31221a30de1fSmrg
31231a30de1fSmrgint
31241a30de1fSmrgmain ()
31251a30de1fSmrg{
31261a30de1fSmrg
31271a30de1fSmrg  ;
31281a30de1fSmrg  return 0;
31291a30de1fSmrg}
31301a30de1fSmrg_ACEOF
31311a30de1fSmrgrm -f conftest.$ac_objext
31321a30de1fSmrgif { (ac_try="$ac_compile"
31331a30de1fSmrgcase "(($ac_try" in
31341a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351a30de1fSmrg  *) ac_try_echo=$ac_try;;
31361a30de1fSmrgesac
3137b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
31391a30de1fSmrg  (eval "$ac_compile") 2>conftest.er1
31401a30de1fSmrg  ac_status=$?
31411a30de1fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
31421a30de1fSmrg  rm -f conftest.er1
31431a30de1fSmrg  cat conftest.err >&5
3144b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451a30de1fSmrg  (exit $ac_status); } && {
31461a30de1fSmrg	 test -z "$ac_c_werror_flag" ||
31471a30de1fSmrg	 test ! -s conftest.err
31481a30de1fSmrg       } && test -s conftest.$ac_objext; then
31491a30de1fSmrg  ac_cv_prog_cc_g=yes
31501a30de1fSmrgelse
3151b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
31521a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
31531a30de1fSmrg
31541a30de1fSmrg	CFLAGS=""
31551a30de1fSmrg      cat >conftest.$ac_ext <<_ACEOF
31561a30de1fSmrg/* confdefs.h.  */
31571a30de1fSmrg_ACEOF
31581a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
31591a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
31601a30de1fSmrg/* end confdefs.h.  */
31611a30de1fSmrg
31621a30de1fSmrgint
31631a30de1fSmrgmain ()
31641a30de1fSmrg{
31651a30de1fSmrg
31661a30de1fSmrg  ;
31671a30de1fSmrg  return 0;
31681a30de1fSmrg}
31691a30de1fSmrg_ACEOF
31701a30de1fSmrgrm -f conftest.$ac_objext
31711a30de1fSmrgif { (ac_try="$ac_compile"
31721a30de1fSmrgcase "(($ac_try" in
31731a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741a30de1fSmrg  *) ac_try_echo=$ac_try;;
31751a30de1fSmrgesac
3176b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3177b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
31781a30de1fSmrg  (eval "$ac_compile") 2>conftest.er1
31791a30de1fSmrg  ac_status=$?
31801a30de1fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
31811a30de1fSmrg  rm -f conftest.er1
31821a30de1fSmrg  cat conftest.err >&5
3183b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841a30de1fSmrg  (exit $ac_status); } && {
31851a30de1fSmrg	 test -z "$ac_c_werror_flag" ||
31861a30de1fSmrg	 test ! -s conftest.err
31871a30de1fSmrg       } && test -s conftest.$ac_objext; then
31881a30de1fSmrg  :
31891a30de1fSmrgelse
3190b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
31911a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
31921a30de1fSmrg
31931a30de1fSmrg	ac_c_werror_flag=$ac_save_c_werror_flag
31941a30de1fSmrg	 CFLAGS="-g"
31951a30de1fSmrg	 cat >conftest.$ac_ext <<_ACEOF
31961a30de1fSmrg/* confdefs.h.  */
31971a30de1fSmrg_ACEOF
31981a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
31991a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
32001a30de1fSmrg/* end confdefs.h.  */
32011a30de1fSmrg
32021a30de1fSmrgint
32031a30de1fSmrgmain ()
32041a30de1fSmrg{
32051a30de1fSmrg
32061a30de1fSmrg  ;
32071a30de1fSmrg  return 0;
32081a30de1fSmrg}
32091a30de1fSmrg_ACEOF
32101a30de1fSmrgrm -f conftest.$ac_objext
32111a30de1fSmrgif { (ac_try="$ac_compile"
32121a30de1fSmrgcase "(($ac_try" in
32131a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32141a30de1fSmrg  *) ac_try_echo=$ac_try;;
32151a30de1fSmrgesac
3216b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3217b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
32181a30de1fSmrg  (eval "$ac_compile") 2>conftest.er1
32191a30de1fSmrg  ac_status=$?
32201a30de1fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
32211a30de1fSmrg  rm -f conftest.er1
32221a30de1fSmrg  cat conftest.err >&5
3223b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241a30de1fSmrg  (exit $ac_status); } && {
32251a30de1fSmrg	 test -z "$ac_c_werror_flag" ||
32261a30de1fSmrg	 test ! -s conftest.err
32271a30de1fSmrg       } && test -s conftest.$ac_objext; then
32281a30de1fSmrg  ac_cv_prog_cc_g=yes
32291a30de1fSmrgelse
3230b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
32311a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
32321a30de1fSmrg
32331a30de1fSmrg
32341a30de1fSmrgfi
32351a30de1fSmrg
32361a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32371a30de1fSmrgfi
32381a30de1fSmrg
32391a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32401a30de1fSmrgfi
32411a30de1fSmrg
32421a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32431a30de1fSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
32441a30de1fSmrgfi
3245b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3246b7fb5eacSmrg$as_echo "$ac_cv_prog_cc_g" >&6; }
32471a30de1fSmrgif test "$ac_test_CFLAGS" = set; then
32481a30de1fSmrg  CFLAGS=$ac_save_CFLAGS
32491a30de1fSmrgelif test $ac_cv_prog_cc_g = yes; then
32501a30de1fSmrg  if test "$GCC" = yes; then
32511a30de1fSmrg    CFLAGS="-g -O2"
32521a30de1fSmrg  else
32531a30de1fSmrg    CFLAGS="-g"
32541a30de1fSmrg  fi
32551a30de1fSmrgelse
32561a30de1fSmrg  if test "$GCC" = yes; then
32571a30de1fSmrg    CFLAGS="-O2"
32581a30de1fSmrg  else
32591a30de1fSmrg    CFLAGS=
32601a30de1fSmrg  fi
32611a30de1fSmrgfi
3262b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3263b7fb5eacSmrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
32641a30de1fSmrgif test "${ac_cv_prog_cc_c89+set}" = set; then
3265b7fb5eacSmrg  $as_echo_n "(cached) " >&6
32661a30de1fSmrgelse
32671a30de1fSmrg  ac_cv_prog_cc_c89=no
32681a30de1fSmrgac_save_CC=$CC
32691a30de1fSmrgcat >conftest.$ac_ext <<_ACEOF
32701a30de1fSmrg/* confdefs.h.  */
32711a30de1fSmrg_ACEOF
32721a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
32731a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
32741a30de1fSmrg/* end confdefs.h.  */
32751a30de1fSmrg#include <stdarg.h>
32761a30de1fSmrg#include <stdio.h>
32771a30de1fSmrg#include <sys/types.h>
32781a30de1fSmrg#include <sys/stat.h>
32791a30de1fSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
32801a30de1fSmrgstruct buf { int x; };
32811a30de1fSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
32821a30de1fSmrgstatic char *e (p, i)
32831a30de1fSmrg     char **p;
32841a30de1fSmrg     int i;
32851a30de1fSmrg{
32861a30de1fSmrg  return p[i];
32871a30de1fSmrg}
32881a30de1fSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
32891a30de1fSmrg{
32901a30de1fSmrg  char *s;
32911a30de1fSmrg  va_list v;
32921a30de1fSmrg  va_start (v,p);
32931a30de1fSmrg  s = g (p, va_arg (v,int));
32941a30de1fSmrg  va_end (v);
32951a30de1fSmrg  return s;
32961a30de1fSmrg}
32971a30de1fSmrg
32981a30de1fSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
32991a30de1fSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
33001a30de1fSmrg   These don't provoke an error unfortunately, instead are silently treated
33011a30de1fSmrg   as 'x'.  The following induces an error, until -std is added to get
33021a30de1fSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
33031a30de1fSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
33041a30de1fSmrg   that's true only with -std.  */
33051a30de1fSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
33061a30de1fSmrg
33071a30de1fSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
33081a30de1fSmrg   inside strings and character constants.  */
33091a30de1fSmrg#define FOO(x) 'x'
33101a30de1fSmrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
33111a30de1fSmrg
33121a30de1fSmrgint test (int i, double x);
33131a30de1fSmrgstruct s1 {int (*f) (int a);};
33141a30de1fSmrgstruct s2 {int (*f) (double a);};
33151a30de1fSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
33161a30de1fSmrgint argc;
33171a30de1fSmrgchar **argv;
33181a30de1fSmrgint
33191a30de1fSmrgmain ()
33201a30de1fSmrg{
33211a30de1fSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
33221a30de1fSmrg  ;
33231a30de1fSmrg  return 0;
33241a30de1fSmrg}
33251a30de1fSmrg_ACEOF
33261a30de1fSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
33271a30de1fSmrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33281a30de1fSmrgdo
33291a30de1fSmrg  CC="$ac_save_CC $ac_arg"
33301a30de1fSmrg  rm -f conftest.$ac_objext
33311a30de1fSmrgif { (ac_try="$ac_compile"
33321a30de1fSmrgcase "(($ac_try" in
33331a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33341a30de1fSmrg  *) ac_try_echo=$ac_try;;
33351a30de1fSmrgesac
3336b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3337b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
33381a30de1fSmrg  (eval "$ac_compile") 2>conftest.er1
33391a30de1fSmrg  ac_status=$?
33401a30de1fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
33411a30de1fSmrg  rm -f conftest.er1
33421a30de1fSmrg  cat conftest.err >&5
3343b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441a30de1fSmrg  (exit $ac_status); } && {
33451a30de1fSmrg	 test -z "$ac_c_werror_flag" ||
33461a30de1fSmrg	 test ! -s conftest.err
33471a30de1fSmrg       } && test -s conftest.$ac_objext; then
33481a30de1fSmrg  ac_cv_prog_cc_c89=$ac_arg
33491a30de1fSmrgelse
3350b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
33511a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
33521a30de1fSmrg
33531a30de1fSmrg
33541a30de1fSmrgfi
33551a30de1fSmrg
33561a30de1fSmrgrm -f core conftest.err conftest.$ac_objext
33571a30de1fSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
33581a30de1fSmrgdone
33591a30de1fSmrgrm -f conftest.$ac_ext
33601a30de1fSmrgCC=$ac_save_CC
33611a30de1fSmrg
33621a30de1fSmrgfi
33631a30de1fSmrg# AC_CACHE_VAL
33641a30de1fSmrgcase "x$ac_cv_prog_cc_c89" in
33651a30de1fSmrg  x)
3366b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3367b7fb5eacSmrg$as_echo "none needed" >&6; } ;;
33681a30de1fSmrg  xno)
3369b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3370b7fb5eacSmrg$as_echo "unsupported" >&6; } ;;
33711a30de1fSmrg  *)
33721a30de1fSmrg    CC="$CC $ac_cv_prog_cc_c89"
3373b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374b7fb5eacSmrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33751a30de1fSmrgesac
33761a30de1fSmrg
33771a30de1fSmrg
33781a30de1fSmrgac_ext=c
33791a30de1fSmrgac_cpp='$CPP $CPPFLAGS'
33801a30de1fSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33811a30de1fSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33821a30de1fSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
33831a30de1fSmrgDEPDIR="${am__leading_dot}deps"
33841a30de1fSmrg
33851a30de1fSmrgac_config_commands="$ac_config_commands depfiles"
33861a30de1fSmrg
33871a30de1fSmrg
33881a30de1fSmrgam_make=${MAKE-make}
33891a30de1fSmrgcat > confinc << 'END'
33901a30de1fSmrgam__doit:
3391b7fb5eacSmrg	@echo this is the am__doit target
33921a30de1fSmrg.PHONY: am__doit
33931a30de1fSmrgEND
33941a30de1fSmrg# If we don't find an include directive, just comment out the code.
3395b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3396b7fb5eacSmrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
33971a30de1fSmrgam__include="#"
33981a30de1fSmrgam__quote=
33991a30de1fSmrg_am_result=none
34001a30de1fSmrg# First try GNU make style include.
34011a30de1fSmrgecho "include confinc" > confmf
3402b7fb5eacSmrg# Ignore all kinds of additional output from `make'.
3403b7fb5eacSmrgcase `$am_make -s -f confmf 2> /dev/null` in #(
3404b7fb5eacSmrg*the\ am__doit\ target*)
3405b7fb5eacSmrg  am__include=include
3406b7fb5eacSmrg  am__quote=
3407b7fb5eacSmrg  _am_result=GNU
3408b7fb5eacSmrg  ;;
3409b7fb5eacSmrgesac
34101a30de1fSmrg# Now try BSD make style include.
34111a30de1fSmrgif test "$am__include" = "#"; then
34121a30de1fSmrg   echo '.include "confinc"' > confmf
3413b7fb5eacSmrg   case `$am_make -s -f confmf 2> /dev/null` in #(
3414b7fb5eacSmrg   *the\ am__doit\ target*)
3415b7fb5eacSmrg     am__include=.include
3416b7fb5eacSmrg     am__quote="\""
3417b7fb5eacSmrg     _am_result=BSD
3418b7fb5eacSmrg     ;;
3419b7fb5eacSmrg   esac
34201a30de1fSmrgfi
34211a30de1fSmrg
34221a30de1fSmrg
3423b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3424b7fb5eacSmrg$as_echo "$_am_result" >&6; }
34251a30de1fSmrgrm -f confinc confmf
34261a30de1fSmrg
34271a30de1fSmrg# Check whether --enable-dependency-tracking was given.
34281a30de1fSmrgif test "${enable_dependency_tracking+set}" = set; then
34291a30de1fSmrg  enableval=$enable_dependency_tracking;
34301a30de1fSmrgfi
34311a30de1fSmrg
34321a30de1fSmrgif test "x$enable_dependency_tracking" != xno; then
34331a30de1fSmrg  am_depcomp="$ac_aux_dir/depcomp"
34341a30de1fSmrg  AMDEPBACKSLASH='\'
34351a30de1fSmrgfi
34361a30de1fSmrg if test "x$enable_dependency_tracking" != xno; then
34371a30de1fSmrg  AMDEP_TRUE=
34381a30de1fSmrg  AMDEP_FALSE='#'
34391a30de1fSmrgelse
34401a30de1fSmrg  AMDEP_TRUE='#'
34411a30de1fSmrg  AMDEP_FALSE=
34421a30de1fSmrgfi
34431a30de1fSmrg
34441a30de1fSmrg
34451a30de1fSmrg
34461a30de1fSmrgdepcc="$CC"   am_compiler_list=
34471a30de1fSmrg
3448b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3449b7fb5eacSmrg$as_echo_n "checking dependency style of $depcc... " >&6; }
34501a30de1fSmrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3451b7fb5eacSmrg  $as_echo_n "(cached) " >&6
34521a30de1fSmrgelse
34531a30de1fSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34541a30de1fSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
34551a30de1fSmrg  # making bogus files that we don't know about and never remove.  For
34561a30de1fSmrg  # instance it was reported that on HP-UX the gcc test will end up
34571a30de1fSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
34581a30de1fSmrg  # in D'.
34591a30de1fSmrg  mkdir conftest.dir
34601a30de1fSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
34611a30de1fSmrg  # using a relative directory.
34621a30de1fSmrg  cp "$am_depcomp" conftest.dir
34631a30de1fSmrg  cd conftest.dir
34641a30de1fSmrg  # We will build objects and dependencies in a subdirectory because
34651a30de1fSmrg  # it helps to detect inapplicable dependency modes.  For instance
34661a30de1fSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
34671a30de1fSmrg  # side effect of compilation, but ICC will put the dependencies in
34681a30de1fSmrg  # the current directory while Tru64 will put them in the object
34691a30de1fSmrg  # directory.
34701a30de1fSmrg  mkdir sub
34711a30de1fSmrg
34721a30de1fSmrg  am_cv_CC_dependencies_compiler_type=none
34731a30de1fSmrg  if test "$am_compiler_list" = ""; then
34741a30de1fSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34751a30de1fSmrg  fi
3476b7fb5eacSmrg  am__universal=false
3477b7fb5eacSmrg  case " $depcc " in #(
3478b7fb5eacSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3479b7fb5eacSmrg     esac
3480b7fb5eacSmrg
34811a30de1fSmrg  for depmode in $am_compiler_list; do
34821a30de1fSmrg    # Setup a source with many dependencies, because some compilers
34831a30de1fSmrg    # like to wrap large dependency lists on column 80 (with \), and
34841a30de1fSmrg    # we should not choose a depcomp mode which is confused by this.
34851a30de1fSmrg    #
34861a30de1fSmrg    # We need to recreate these files for each test, as the compiler may
34871a30de1fSmrg    # overwrite some of them when testing with obscure command lines.
34881a30de1fSmrg    # This happens at least with the AIX C compiler.
34891a30de1fSmrg    : > sub/conftest.c
34901a30de1fSmrg    for i in 1 2 3 4 5 6; do
34911a30de1fSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
34921a30de1fSmrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
34931a30de1fSmrg      # Solaris 8's {/usr,}/bin/sh.
34941a30de1fSmrg      touch sub/conftst$i.h
34951a30de1fSmrg    done
34961a30de1fSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34971a30de1fSmrg
3498b7fb5eacSmrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3499b7fb5eacSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3500b7fb5eacSmrg    # handle `-M -o', and we need to detect this.  Also, some Intel
3501b7fb5eacSmrg    # versions had trouble with output in subdirs
3502b7fb5eacSmrg    am__obj=sub/conftest.${OBJEXT-o}
3503b7fb5eacSmrg    am__minus_obj="-o $am__obj"
35041a30de1fSmrg    case $depmode in
3505b7fb5eacSmrg    gcc)
3506b7fb5eacSmrg      # This depmode causes a compiler race in universal mode.
3507b7fb5eacSmrg      test "$am__universal" = false || continue
3508b7fb5eacSmrg      ;;
35091a30de1fSmrg    nosideeffect)
35101a30de1fSmrg      # after this tag, mechanisms are not by side-effect, so they'll
35111a30de1fSmrg      # only be used when explicitly requested
35121a30de1fSmrg      if test "x$enable_dependency_tracking" = xyes; then
35131a30de1fSmrg	continue
35141a30de1fSmrg      else
35151a30de1fSmrg	break
35161a30de1fSmrg      fi
35171a30de1fSmrg      ;;
3518b7fb5eacSmrg    msvisualcpp | msvcmsys)
3519b7fb5eacSmrg      # This compiler won't grok `-c -o', but also, the minuso test has
3520b7fb5eacSmrg      # not run yet.  These depmodes are late enough in the game, and
3521b7fb5eacSmrg      # so weak that their functioning should not be impacted.
3522b7fb5eacSmrg      am__obj=conftest.${OBJEXT-o}
3523b7fb5eacSmrg      am__minus_obj=
3524b7fb5eacSmrg      ;;
35251a30de1fSmrg    none) break ;;
35261a30de1fSmrg    esac
35271a30de1fSmrg    if depmode=$depmode \
3528b7fb5eacSmrg       source=sub/conftest.c object=$am__obj \
35291a30de1fSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3530b7fb5eacSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
35311a30de1fSmrg         >/dev/null 2>conftest.err &&
35321a30de1fSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
35331a30de1fSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3534b7fb5eacSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
35351a30de1fSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
35361a30de1fSmrg      # icc doesn't choke on unknown options, it will just issue warnings
35371a30de1fSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
35381a30de1fSmrg      # that says an option was ignored or not supported.
35391a30de1fSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
35401a30de1fSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
35411a30de1fSmrg      # The diagnosis changed in icc 8.0:
35421a30de1fSmrg      #   icc: Command line remark: option '-MP' not supported
35431a30de1fSmrg      if (grep 'ignoring option' conftest.err ||
35441a30de1fSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
35451a30de1fSmrg        am_cv_CC_dependencies_compiler_type=$depmode
35461a30de1fSmrg        break
35471a30de1fSmrg      fi
35481a30de1fSmrg    fi
35491a30de1fSmrg  done
35501a30de1fSmrg
35511a30de1fSmrg  cd ..
35521a30de1fSmrg  rm -rf conftest.dir
35531a30de1fSmrgelse
35541a30de1fSmrg  am_cv_CC_dependencies_compiler_type=none
35551a30de1fSmrgfi
35561a30de1fSmrg
35571a30de1fSmrgfi
3558b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3559b7fb5eacSmrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35601a30de1fSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35611a30de1fSmrg
35621a30de1fSmrg if
35631a30de1fSmrg  test "x$enable_dependency_tracking" != xno \
35641a30de1fSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35651a30de1fSmrg  am__fastdepCC_TRUE=
35661a30de1fSmrg  am__fastdepCC_FALSE='#'
35671a30de1fSmrgelse
35681a30de1fSmrg  am__fastdepCC_TRUE='#'
35691a30de1fSmrg  am__fastdepCC_FALSE=
35701a30de1fSmrgfi
35711a30de1fSmrg
35721a30de1fSmrg
35731a30de1fSmrg# Find a good install program.  We prefer a C program (faster),
35741a30de1fSmrg# so one script is as good as another.  But avoid the broken or
35751a30de1fSmrg# incompatible versions:
35761a30de1fSmrg# SysV /etc/install, /usr/sbin/install
35771a30de1fSmrg# SunOS /usr/etc/install
35781a30de1fSmrg# IRIX /sbin/install
35791a30de1fSmrg# AIX /bin/install
35801a30de1fSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
35811a30de1fSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35821a30de1fSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35831a30de1fSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35841a30de1fSmrg# OS/2's system install, which has a completely different semantic
35851a30de1fSmrg# ./install, which can be erroneously created by make from ./install.sh.
3586b7fb5eacSmrg# Reject install programs that cannot install multiple files.
3587b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3588b7fb5eacSmrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
35891a30de1fSmrgif test -z "$INSTALL"; then
35901a30de1fSmrgif test "${ac_cv_path_install+set}" = set; then
3591b7fb5eacSmrg  $as_echo_n "(cached) " >&6
35921a30de1fSmrgelse
35931a30de1fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35941a30de1fSmrgfor as_dir in $PATH
35951a30de1fSmrgdo
35961a30de1fSmrg  IFS=$as_save_IFS
35971a30de1fSmrg  test -z "$as_dir" && as_dir=.
35981a30de1fSmrg  # Account for people who put trailing slashes in PATH elements.
35991a30de1fSmrgcase $as_dir/ in
36001a30de1fSmrg  ./ | .// | /cC/* | \
36011a30de1fSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
36021a30de1fSmrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
36031a30de1fSmrg  /usr/ucb/* ) ;;
36041a30de1fSmrg  *)
36051a30de1fSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
36061a30de1fSmrg    # Don't use installbsd from OSF since it installs stuff as root
36071a30de1fSmrg    # by default.
36081a30de1fSmrg    for ac_prog in ginstall scoinst install; do
36091a30de1fSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
36101a30de1fSmrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
36111a30de1fSmrg	  if test $ac_prog = install &&
36121a30de1fSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36131a30de1fSmrg	    # AIX install.  It has an incompatible calling convention.
36141a30de1fSmrg	    :
36151a30de1fSmrg	  elif test $ac_prog = install &&
36161a30de1fSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36171a30de1fSmrg	    # program-specific install script used by HP pwplus--don't use.
36181a30de1fSmrg	    :
36191a30de1fSmrg	  else
3620b7fb5eacSmrg	    rm -rf conftest.one conftest.two conftest.dir
3621b7fb5eacSmrg	    echo one > conftest.one
3622b7fb5eacSmrg	    echo two > conftest.two
3623b7fb5eacSmrg	    mkdir conftest.dir
3624b7fb5eacSmrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3625b7fb5eacSmrg	      test -s conftest.one && test -s conftest.two &&
3626b7fb5eacSmrg	      test -s conftest.dir/conftest.one &&
3627b7fb5eacSmrg	      test -s conftest.dir/conftest.two
3628b7fb5eacSmrg	    then
3629b7fb5eacSmrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3630b7fb5eacSmrg	      break 3
3631b7fb5eacSmrg	    fi
36321a30de1fSmrg	  fi
36331a30de1fSmrg	fi
36341a30de1fSmrg      done
36351a30de1fSmrg    done
36361a30de1fSmrg    ;;
36371a30de1fSmrgesac
3638b7fb5eacSmrg
36391a30de1fSmrgdone
36401a30de1fSmrgIFS=$as_save_IFS
36411a30de1fSmrg
3642b7fb5eacSmrgrm -rf conftest.one conftest.two conftest.dir
36431a30de1fSmrg
36441a30de1fSmrgfi
36451a30de1fSmrg  if test "${ac_cv_path_install+set}" = set; then
36461a30de1fSmrg    INSTALL=$ac_cv_path_install
36471a30de1fSmrg  else
36481a30de1fSmrg    # As a last resort, use the slow shell script.  Don't cache a
36491a30de1fSmrg    # value for INSTALL within a source directory, because that will
36501a30de1fSmrg    # break other packages using the cache if that directory is
36511a30de1fSmrg    # removed, or if the value is a relative name.
36521a30de1fSmrg    INSTALL=$ac_install_sh
36531a30de1fSmrg  fi
36541a30de1fSmrgfi
3655b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3656b7fb5eacSmrg$as_echo "$INSTALL" >&6; }
36571a30de1fSmrg
36581a30de1fSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36591a30de1fSmrg# It thinks the first close brace ends the variable substitution.
36601a30de1fSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36611a30de1fSmrg
36621a30de1fSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36631a30de1fSmrg
36641a30de1fSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36651a30de1fSmrg
36661a30de1fSmrg
36671a30de1fSmrg
3668b7fb5eacSmrgac_ext=c
3669b7fb5eacSmrgac_cpp='$CPP $CPPFLAGS'
3670b7fb5eacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671b7fb5eacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672b7fb5eacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3673b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3674b7fb5eacSmrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3675b7fb5eacSmrg# On Suns, sometimes $CPP names a directory.
3676b7fb5eacSmrgif test -n "$CPP" && test -d "$CPP"; then
3677b7fb5eacSmrg  CPP=
3678b7fb5eacSmrgfi
3679b7fb5eacSmrgif test -z "$CPP"; then
3680b7fb5eacSmrg  if test "${ac_cv_prog_CPP+set}" = set; then
3681b7fb5eacSmrg  $as_echo_n "(cached) " >&6
36821a30de1fSmrgelse
3683b7fb5eacSmrg      # Double quotes because CPP needs to be expanded
3684b7fb5eacSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3685b7fb5eacSmrg    do
3686b7fb5eacSmrg      ac_preproc_ok=false
3687b7fb5eacSmrgfor ac_c_preproc_warn_flag in '' yes
3688b7fb5eacSmrgdo
3689b7fb5eacSmrg  # Use a header file that comes with gcc, so configuring glibc
3690b7fb5eacSmrg  # with a fresh cross-compiler works.
3691b7fb5eacSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3692b7fb5eacSmrg  # <limits.h> exists even on freestanding compilers.
3693b7fb5eacSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3694b7fb5eacSmrg  # not just through cpp. "Syntax error" is here to catch this case.
36951a30de1fSmrg  cat >conftest.$ac_ext <<_ACEOF
36961a30de1fSmrg/* confdefs.h.  */
36971a30de1fSmrg_ACEOF
36981a30de1fSmrgcat confdefs.h >>conftest.$ac_ext
36991a30de1fSmrgcat >>conftest.$ac_ext <<_ACEOF
37001a30de1fSmrg/* end confdefs.h.  */
37011a30de1fSmrg#ifdef __STDC__
37021a30de1fSmrg# include <limits.h>
37031a30de1fSmrg#else
37041a30de1fSmrg# include <assert.h>
37051a30de1fSmrg#endif
3706b7fb5eacSmrg		     Syntax error
3707b7fb5eacSmrg_ACEOF
3708b7fb5eacSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3709b7fb5eacSmrgcase "(($ac_try" in
3710b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
3712b7fb5eacSmrgesac
3713b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3714b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
3715b7fb5eacSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3716b7fb5eacSmrg  ac_status=$?
3717b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3718b7fb5eacSmrg  rm -f conftest.er1
3719b7fb5eacSmrg  cat conftest.err >&5
3720b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721b7fb5eacSmrg  (exit $ac_status); } >/dev/null && {
3722b7fb5eacSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3723b7fb5eacSmrg	 test ! -s conftest.err
3724b7fb5eacSmrg       }; then
3725b7fb5eacSmrg  :
3726b7fb5eacSmrgelse
3727b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
3728b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
3729b7fb5eacSmrg
3730b7fb5eacSmrg  # Broken: fails on valid input.
3731b7fb5eacSmrgcontinue
3732b7fb5eacSmrgfi
3733b7fb5eacSmrg
3734b7fb5eacSmrgrm -f conftest.err conftest.$ac_ext
3735b7fb5eacSmrg
3736b7fb5eacSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3737b7fb5eacSmrg  # can be detected and how.
3738b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
3739b7fb5eacSmrg/* confdefs.h.  */
3740b7fb5eacSmrg_ACEOF
3741b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
3742b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
3743b7fb5eacSmrg/* end confdefs.h.  */
3744b7fb5eacSmrg#include <ac_nonexistent.h>
3745b7fb5eacSmrg_ACEOF
3746b7fb5eacSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3747b7fb5eacSmrgcase "(($ac_try" in
3748b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
3750b7fb5eacSmrgesac
3751b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3752b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
3753b7fb5eacSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3754b7fb5eacSmrg  ac_status=$?
3755b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3756b7fb5eacSmrg  rm -f conftest.er1
3757b7fb5eacSmrg  cat conftest.err >&5
3758b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759b7fb5eacSmrg  (exit $ac_status); } >/dev/null && {
3760b7fb5eacSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3761b7fb5eacSmrg	 test ! -s conftest.err
3762b7fb5eacSmrg       }; then
3763b7fb5eacSmrg  # Broken: success on invalid input.
3764b7fb5eacSmrgcontinue
3765b7fb5eacSmrgelse
3766b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
3767b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
3768b7fb5eacSmrg
3769b7fb5eacSmrg  # Passes both tests.
3770b7fb5eacSmrgac_preproc_ok=:
3771b7fb5eacSmrgbreak
3772b7fb5eacSmrgfi
3773b7fb5eacSmrg
3774b7fb5eacSmrgrm -f conftest.err conftest.$ac_ext
3775b7fb5eacSmrg
3776b7fb5eacSmrgdone
3777b7fb5eacSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3778b7fb5eacSmrgrm -f conftest.err conftest.$ac_ext
3779b7fb5eacSmrgif $ac_preproc_ok; then
3780b7fb5eacSmrg  break
3781b7fb5eacSmrgfi
3782b7fb5eacSmrg
3783b7fb5eacSmrg    done
3784b7fb5eacSmrg    ac_cv_prog_CPP=$CPP
3785b7fb5eacSmrg
3786b7fb5eacSmrgfi
3787b7fb5eacSmrg  CPP=$ac_cv_prog_CPP
3788b7fb5eacSmrgelse
3789b7fb5eacSmrg  ac_cv_prog_CPP=$CPP
3790b7fb5eacSmrgfi
3791b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3792b7fb5eacSmrg$as_echo "$CPP" >&6; }
3793b7fb5eacSmrgac_preproc_ok=false
3794b7fb5eacSmrgfor ac_c_preproc_warn_flag in '' yes
3795b7fb5eacSmrgdo
3796b7fb5eacSmrg  # Use a header file that comes with gcc, so configuring glibc
3797b7fb5eacSmrg  # with a fresh cross-compiler works.
3798b7fb5eacSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799b7fb5eacSmrg  # <limits.h> exists even on freestanding compilers.
3800b7fb5eacSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3801b7fb5eacSmrg  # not just through cpp. "Syntax error" is here to catch this case.
3802b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
3803b7fb5eacSmrg/* confdefs.h.  */
3804b7fb5eacSmrg_ACEOF
3805b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
3806b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
3807b7fb5eacSmrg/* end confdefs.h.  */
3808b7fb5eacSmrg#ifdef __STDC__
3809b7fb5eacSmrg# include <limits.h>
3810b7fb5eacSmrg#else
3811b7fb5eacSmrg# include <assert.h>
3812b7fb5eacSmrg#endif
3813b7fb5eacSmrg		     Syntax error
3814b7fb5eacSmrg_ACEOF
3815b7fb5eacSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3816b7fb5eacSmrgcase "(($ac_try" in
3817b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
3819b7fb5eacSmrgesac
3820b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3821b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
3822b7fb5eacSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3823b7fb5eacSmrg  ac_status=$?
3824b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3825b7fb5eacSmrg  rm -f conftest.er1
3826b7fb5eacSmrg  cat conftest.err >&5
3827b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828b7fb5eacSmrg  (exit $ac_status); } >/dev/null && {
3829b7fb5eacSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3830b7fb5eacSmrg	 test ! -s conftest.err
3831b7fb5eacSmrg       }; then
3832b7fb5eacSmrg  :
3833b7fb5eacSmrgelse
3834b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
3835b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
3836b7fb5eacSmrg
3837b7fb5eacSmrg  # Broken: fails on valid input.
3838b7fb5eacSmrgcontinue
3839b7fb5eacSmrgfi
3840b7fb5eacSmrg
3841b7fb5eacSmrgrm -f conftest.err conftest.$ac_ext
3842b7fb5eacSmrg
3843b7fb5eacSmrg  # OK, works on sane cases.  Now check whether nonexistent headers
3844b7fb5eacSmrg  # can be detected and how.
3845b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
3846b7fb5eacSmrg/* confdefs.h.  */
3847b7fb5eacSmrg_ACEOF
3848b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
3849b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
3850b7fb5eacSmrg/* end confdefs.h.  */
3851b7fb5eacSmrg#include <ac_nonexistent.h>
3852b7fb5eacSmrg_ACEOF
3853b7fb5eacSmrgif { (ac_try="$ac_cpp conftest.$ac_ext"
3854b7fb5eacSmrgcase "(($ac_try" in
3855b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
3857b7fb5eacSmrgesac
3858b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3859b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
3860b7fb5eacSmrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3861b7fb5eacSmrg  ac_status=$?
3862b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
3863b7fb5eacSmrg  rm -f conftest.er1
3864b7fb5eacSmrg  cat conftest.err >&5
3865b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866b7fb5eacSmrg  (exit $ac_status); } >/dev/null && {
3867b7fb5eacSmrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3868b7fb5eacSmrg	 test ! -s conftest.err
3869b7fb5eacSmrg       }; then
3870b7fb5eacSmrg  # Broken: success on invalid input.
3871b7fb5eacSmrgcontinue
3872b7fb5eacSmrgelse
3873b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
3874b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
3875b7fb5eacSmrg
3876b7fb5eacSmrg  # Passes both tests.
3877b7fb5eacSmrgac_preproc_ok=:
3878b7fb5eacSmrgbreak
3879b7fb5eacSmrgfi
3880b7fb5eacSmrg
3881b7fb5eacSmrgrm -f conftest.err conftest.$ac_ext
3882b7fb5eacSmrg
3883b7fb5eacSmrgdone
3884b7fb5eacSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3885b7fb5eacSmrgrm -f conftest.err conftest.$ac_ext
3886b7fb5eacSmrgif $ac_preproc_ok; then
3887b7fb5eacSmrg  :
3888b7fb5eacSmrgelse
3889b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3890b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3892b7fb5eacSmrgSee \`config.log' for more details." >&5
3893b7fb5eacSmrg$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3894b7fb5eacSmrgSee \`config.log' for more details." >&2;}
3895b7fb5eacSmrg   { (exit 1); exit 1; }; }; }
3896b7fb5eacSmrgfi
3897b7fb5eacSmrg
3898b7fb5eacSmrgac_ext=c
3899b7fb5eacSmrgac_cpp='$CPP $CPPFLAGS'
3900b7fb5eacSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901b7fb5eacSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902b7fb5eacSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3903b7fb5eacSmrg
3904b7fb5eacSmrg
3905b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3906b7fb5eacSmrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3907b7fb5eacSmrgif test "${ac_cv_path_GREP+set}" = set; then
3908b7fb5eacSmrg  $as_echo_n "(cached) " >&6
3909b7fb5eacSmrgelse
3910b7fb5eacSmrg  if test -z "$GREP"; then
3911b7fb5eacSmrg  ac_path_GREP_found=false
3912b7fb5eacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3913b7fb5eacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914b7fb5eacSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915b7fb5eacSmrgdo
3916b7fb5eacSmrg  IFS=$as_save_IFS
3917b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
3918b7fb5eacSmrg  for ac_prog in grep ggrep; do
3919b7fb5eacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3920b7fb5eacSmrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3921b7fb5eacSmrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3922b7fb5eacSmrg# Check for GNU ac_path_GREP and select it if it is found.
3923b7fb5eacSmrg  # Check for GNU $ac_path_GREP
3924b7fb5eacSmrgcase `"$ac_path_GREP" --version 2>&1` in
3925b7fb5eacSmrg*GNU*)
3926b7fb5eacSmrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3927b7fb5eacSmrg*)
3928b7fb5eacSmrg  ac_count=0
3929b7fb5eacSmrg  $as_echo_n 0123456789 >"conftest.in"
3930b7fb5eacSmrg  while :
3931b7fb5eacSmrg  do
3932b7fb5eacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
3933b7fb5eacSmrg    mv "conftest.tmp" "conftest.in"
3934b7fb5eacSmrg    cp "conftest.in" "conftest.nl"
3935b7fb5eacSmrg    $as_echo 'GREP' >> "conftest.nl"
3936b7fb5eacSmrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3937b7fb5eacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3938b7fb5eacSmrg    ac_count=`expr $ac_count + 1`
3939b7fb5eacSmrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3940b7fb5eacSmrg      # Best one so far, save it but keep looking for a better one
3941b7fb5eacSmrg      ac_cv_path_GREP="$ac_path_GREP"
3942b7fb5eacSmrg      ac_path_GREP_max=$ac_count
3943b7fb5eacSmrg    fi
3944b7fb5eacSmrg    # 10*(2^10) chars as input seems more than enough
3945b7fb5eacSmrg    test $ac_count -gt 10 && break
3946b7fb5eacSmrg  done
3947b7fb5eacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3948b7fb5eacSmrgesac
3949b7fb5eacSmrg
3950b7fb5eacSmrg      $ac_path_GREP_found && break 3
3951b7fb5eacSmrg    done
3952b7fb5eacSmrg  done
3953b7fb5eacSmrgdone
3954b7fb5eacSmrgIFS=$as_save_IFS
3955b7fb5eacSmrg  if test -z "$ac_cv_path_GREP"; then
3956b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957b7fb5eacSmrg$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958b7fb5eacSmrg   { (exit 1); exit 1; }; }
3959b7fb5eacSmrg  fi
3960b7fb5eacSmrgelse
3961b7fb5eacSmrg  ac_cv_path_GREP=$GREP
3962b7fb5eacSmrgfi
3963b7fb5eacSmrg
3964b7fb5eacSmrgfi
3965b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3966b7fb5eacSmrg$as_echo "$ac_cv_path_GREP" >&6; }
3967b7fb5eacSmrg GREP="$ac_cv_path_GREP"
3968b7fb5eacSmrg
3969b7fb5eacSmrg
3970b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3971b7fb5eacSmrg$as_echo_n "checking for egrep... " >&6; }
3972b7fb5eacSmrgif test "${ac_cv_path_EGREP+set}" = set; then
3973b7fb5eacSmrg  $as_echo_n "(cached) " >&6
3974b7fb5eacSmrgelse
3975b7fb5eacSmrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3976b7fb5eacSmrg   then ac_cv_path_EGREP="$GREP -E"
3977b7fb5eacSmrg   else
3978b7fb5eacSmrg     if test -z "$EGREP"; then
3979b7fb5eacSmrg  ac_path_EGREP_found=false
3980b7fb5eacSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
3981b7fb5eacSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982b7fb5eacSmrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983b7fb5eacSmrgdo
3984b7fb5eacSmrg  IFS=$as_save_IFS
3985b7fb5eacSmrg  test -z "$as_dir" && as_dir=.
3986b7fb5eacSmrg  for ac_prog in egrep; do
3987b7fb5eacSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3988b7fb5eacSmrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3989b7fb5eacSmrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3990b7fb5eacSmrg# Check for GNU ac_path_EGREP and select it if it is found.
3991b7fb5eacSmrg  # Check for GNU $ac_path_EGREP
3992b7fb5eacSmrgcase `"$ac_path_EGREP" --version 2>&1` in
3993b7fb5eacSmrg*GNU*)
3994b7fb5eacSmrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3995b7fb5eacSmrg*)
3996b7fb5eacSmrg  ac_count=0
3997b7fb5eacSmrg  $as_echo_n 0123456789 >"conftest.in"
3998b7fb5eacSmrg  while :
3999b7fb5eacSmrg  do
4000b7fb5eacSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4001b7fb5eacSmrg    mv "conftest.tmp" "conftest.in"
4002b7fb5eacSmrg    cp "conftest.in" "conftest.nl"
4003b7fb5eacSmrg    $as_echo 'EGREP' >> "conftest.nl"
4004b7fb5eacSmrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005b7fb5eacSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006b7fb5eacSmrg    ac_count=`expr $ac_count + 1`
4007b7fb5eacSmrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4008b7fb5eacSmrg      # Best one so far, save it but keep looking for a better one
4009b7fb5eacSmrg      ac_cv_path_EGREP="$ac_path_EGREP"
4010b7fb5eacSmrg      ac_path_EGREP_max=$ac_count
4011b7fb5eacSmrg    fi
4012b7fb5eacSmrg    # 10*(2^10) chars as input seems more than enough
4013b7fb5eacSmrg    test $ac_count -gt 10 && break
4014b7fb5eacSmrg  done
4015b7fb5eacSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016b7fb5eacSmrgesac
4017b7fb5eacSmrg
4018b7fb5eacSmrg      $ac_path_EGREP_found && break 3
4019b7fb5eacSmrg    done
4020b7fb5eacSmrg  done
4021b7fb5eacSmrgdone
4022b7fb5eacSmrgIFS=$as_save_IFS
4023b7fb5eacSmrg  if test -z "$ac_cv_path_EGREP"; then
4024b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025b7fb5eacSmrg$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026b7fb5eacSmrg   { (exit 1); exit 1; }; }
4027b7fb5eacSmrg  fi
4028b7fb5eacSmrgelse
4029b7fb5eacSmrg  ac_cv_path_EGREP=$EGREP
4030b7fb5eacSmrgfi
4031b7fb5eacSmrg
4032b7fb5eacSmrg   fi
4033b7fb5eacSmrgfi
4034b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035b7fb5eacSmrg$as_echo "$ac_cv_path_EGREP" >&6; }
4036b7fb5eacSmrg EGREP="$ac_cv_path_EGREP"
4037b7fb5eacSmrg
4038b7fb5eacSmrg
4039b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4040b7fb5eacSmrg$as_echo_n "checking for ANSI C header files... " >&6; }
4041b7fb5eacSmrgif test "${ac_cv_header_stdc+set}" = set; then
4042b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4043b7fb5eacSmrgelse
4044b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4045b7fb5eacSmrg/* confdefs.h.  */
4046b7fb5eacSmrg_ACEOF
4047b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4048b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4049b7fb5eacSmrg/* end confdefs.h.  */
4050b7fb5eacSmrg#include <stdlib.h>
4051b7fb5eacSmrg#include <stdarg.h>
4052b7fb5eacSmrg#include <string.h>
4053b7fb5eacSmrg#include <float.h>
4054b7fb5eacSmrg
4055b7fb5eacSmrgint
4056b7fb5eacSmrgmain ()
4057b7fb5eacSmrg{
4058b7fb5eacSmrg
4059b7fb5eacSmrg  ;
4060b7fb5eacSmrg  return 0;
4061b7fb5eacSmrg}
4062b7fb5eacSmrg_ACEOF
4063b7fb5eacSmrgrm -f conftest.$ac_objext
4064b7fb5eacSmrgif { (ac_try="$ac_compile"
4065b7fb5eacSmrgcase "(($ac_try" in
4066b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4068b7fb5eacSmrgesac
4069b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4070b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4071b7fb5eacSmrg  (eval "$ac_compile") 2>conftest.er1
4072b7fb5eacSmrg  ac_status=$?
4073b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4074b7fb5eacSmrg  rm -f conftest.er1
4075b7fb5eacSmrg  cat conftest.err >&5
4076b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077b7fb5eacSmrg  (exit $ac_status); } && {
4078b7fb5eacSmrg	 test -z "$ac_c_werror_flag" ||
4079b7fb5eacSmrg	 test ! -s conftest.err
4080b7fb5eacSmrg       } && test -s conftest.$ac_objext; then
4081b7fb5eacSmrg  ac_cv_header_stdc=yes
4082b7fb5eacSmrgelse
4083b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
4084b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
4085b7fb5eacSmrg
4086b7fb5eacSmrg	ac_cv_header_stdc=no
4087b7fb5eacSmrgfi
4088b7fb5eacSmrg
4089b7fb5eacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090b7fb5eacSmrg
4091b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4092b7fb5eacSmrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4093b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4094b7fb5eacSmrg/* confdefs.h.  */
4095b7fb5eacSmrg_ACEOF
4096b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4097b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4098b7fb5eacSmrg/* end confdefs.h.  */
4099b7fb5eacSmrg#include <string.h>
4100b7fb5eacSmrg
4101b7fb5eacSmrg_ACEOF
4102b7fb5eacSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103b7fb5eacSmrg  $EGREP "memchr" >/dev/null 2>&1; then
4104b7fb5eacSmrg  :
4105b7fb5eacSmrgelse
4106b7fb5eacSmrg  ac_cv_header_stdc=no
4107b7fb5eacSmrgfi
4108b7fb5eacSmrgrm -f conftest*
4109b7fb5eacSmrg
4110b7fb5eacSmrgfi
4111b7fb5eacSmrg
4112b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4113b7fb5eacSmrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4114b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4115b7fb5eacSmrg/* confdefs.h.  */
4116b7fb5eacSmrg_ACEOF
4117b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4118b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4119b7fb5eacSmrg/* end confdefs.h.  */
4120b7fb5eacSmrg#include <stdlib.h>
4121b7fb5eacSmrg
4122b7fb5eacSmrg_ACEOF
4123b7fb5eacSmrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4124b7fb5eacSmrg  $EGREP "free" >/dev/null 2>&1; then
4125b7fb5eacSmrg  :
4126b7fb5eacSmrgelse
4127b7fb5eacSmrg  ac_cv_header_stdc=no
4128b7fb5eacSmrgfi
4129b7fb5eacSmrgrm -f conftest*
4130b7fb5eacSmrg
4131b7fb5eacSmrgfi
4132b7fb5eacSmrg
4133b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4134b7fb5eacSmrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4135b7fb5eacSmrg  if test "$cross_compiling" = yes; then
4136b7fb5eacSmrg  :
4137b7fb5eacSmrgelse
4138b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4139b7fb5eacSmrg/* confdefs.h.  */
4140b7fb5eacSmrg_ACEOF
4141b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4142b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4143b7fb5eacSmrg/* end confdefs.h.  */
4144b7fb5eacSmrg#include <ctype.h>
4145b7fb5eacSmrg#include <stdlib.h>
4146b7fb5eacSmrg#if ((' ' & 0x0FF) == 0x020)
4147b7fb5eacSmrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4148b7fb5eacSmrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4149b7fb5eacSmrg#else
4150b7fb5eacSmrg# define ISLOWER(c) \
4151b7fb5eacSmrg		   (('a' <= (c) && (c) <= 'i') \
4152b7fb5eacSmrg		     || ('j' <= (c) && (c) <= 'r') \
4153b7fb5eacSmrg		     || ('s' <= (c) && (c) <= 'z'))
4154b7fb5eacSmrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4155b7fb5eacSmrg#endif
4156b7fb5eacSmrg
4157b7fb5eacSmrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4158b7fb5eacSmrgint
4159b7fb5eacSmrgmain ()
4160b7fb5eacSmrg{
4161b7fb5eacSmrg  int i;
4162b7fb5eacSmrg  for (i = 0; i < 256; i++)
4163b7fb5eacSmrg    if (XOR (islower (i), ISLOWER (i))
4164b7fb5eacSmrg	|| toupper (i) != TOUPPER (i))
4165b7fb5eacSmrg      return 2;
4166b7fb5eacSmrg  return 0;
4167b7fb5eacSmrg}
4168b7fb5eacSmrg_ACEOF
4169b7fb5eacSmrgrm -f conftest$ac_exeext
4170b7fb5eacSmrgif { (ac_try="$ac_link"
4171b7fb5eacSmrgcase "(($ac_try" in
4172b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4174b7fb5eacSmrgesac
4175b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4177b7fb5eacSmrg  (eval "$ac_link") 2>&5
4178b7fb5eacSmrg  ac_status=$?
4179b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180b7fb5eacSmrg  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4181b7fb5eacSmrg  { (case "(($ac_try" in
4182b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4184b7fb5eacSmrgesac
4185b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4187b7fb5eacSmrg  (eval "$ac_try") 2>&5
4188b7fb5eacSmrg  ac_status=$?
4189b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190b7fb5eacSmrg  (exit $ac_status); }; }; then
4191b7fb5eacSmrg  :
4192b7fb5eacSmrgelse
4193b7fb5eacSmrg  $as_echo "$as_me: program exited with status $ac_status" >&5
4194b7fb5eacSmrg$as_echo "$as_me: failed program was:" >&5
4195b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
4196b7fb5eacSmrg
4197b7fb5eacSmrg( exit $ac_status )
4198b7fb5eacSmrgac_cv_header_stdc=no
4199b7fb5eacSmrgfi
4200b7fb5eacSmrgrm -rf conftest.dSYM
4201b7fb5eacSmrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4202b7fb5eacSmrgfi
4203b7fb5eacSmrg
4204b7fb5eacSmrg
4205b7fb5eacSmrgfi
4206b7fb5eacSmrgfi
4207b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4208b7fb5eacSmrg$as_echo "$ac_cv_header_stdc" >&6; }
4209b7fb5eacSmrgif test $ac_cv_header_stdc = yes; then
4210b7fb5eacSmrg
4211b7fb5eacSmrgcat >>confdefs.h <<\_ACEOF
4212b7fb5eacSmrg#define STDC_HEADERS 1
4213b7fb5eacSmrg_ACEOF
4214b7fb5eacSmrg
4215b7fb5eacSmrgfi
4216b7fb5eacSmrg
4217b7fb5eacSmrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4218b7fb5eacSmrg
4219b7fb5eacSmrg
4220b7fb5eacSmrg
4221b7fb5eacSmrg
4222b7fb5eacSmrg
4223b7fb5eacSmrg
4224b7fb5eacSmrg
4225b7fb5eacSmrg
4226b7fb5eacSmrg
4227b7fb5eacSmrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4228b7fb5eacSmrg		  inttypes.h stdint.h unistd.h
4229b7fb5eacSmrgdo
4230b7fb5eacSmrgas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4231b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4232b7fb5eacSmrg$as_echo_n "checking for $ac_header... " >&6; }
4233b7fb5eacSmrgif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4234b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4235b7fb5eacSmrgelse
4236b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4237b7fb5eacSmrg/* confdefs.h.  */
4238b7fb5eacSmrg_ACEOF
4239b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4240b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4241b7fb5eacSmrg/* end confdefs.h.  */
4242b7fb5eacSmrg$ac_includes_default
4243b7fb5eacSmrg
4244b7fb5eacSmrg#include <$ac_header>
4245b7fb5eacSmrg_ACEOF
4246b7fb5eacSmrgrm -f conftest.$ac_objext
4247b7fb5eacSmrgif { (ac_try="$ac_compile"
4248b7fb5eacSmrgcase "(($ac_try" in
4249b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4251b7fb5eacSmrgesac
4252b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4253b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4254b7fb5eacSmrg  (eval "$ac_compile") 2>conftest.er1
4255b7fb5eacSmrg  ac_status=$?
4256b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4257b7fb5eacSmrg  rm -f conftest.er1
4258b7fb5eacSmrg  cat conftest.err >&5
4259b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260b7fb5eacSmrg  (exit $ac_status); } && {
4261b7fb5eacSmrg	 test -z "$ac_c_werror_flag" ||
4262b7fb5eacSmrg	 test ! -s conftest.err
4263b7fb5eacSmrg       } && test -s conftest.$ac_objext; then
4264b7fb5eacSmrg  eval "$as_ac_Header=yes"
4265b7fb5eacSmrgelse
4266b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
4267b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
4268b7fb5eacSmrg
4269b7fb5eacSmrg	eval "$as_ac_Header=no"
4270b7fb5eacSmrgfi
4271b7fb5eacSmrg
4272b7fb5eacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273b7fb5eacSmrgfi
4274b7fb5eacSmrgac_res=`eval 'as_val=${'$as_ac_Header'}
4275b7fb5eacSmrg		 $as_echo "$as_val"'`
4276b7fb5eacSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4277b7fb5eacSmrg$as_echo "$ac_res" >&6; }
4278b7fb5eacSmrgas_val=`eval 'as_val=${'$as_ac_Header'}
4279b7fb5eacSmrg		 $as_echo "$as_val"'`
4280b7fb5eacSmrg   if test "x$as_val" = x""yes; then
4281b7fb5eacSmrg  cat >>confdefs.h <<_ACEOF
4282b7fb5eacSmrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283b7fb5eacSmrg_ACEOF
4284b7fb5eacSmrg
4285b7fb5eacSmrgfi
4286b7fb5eacSmrg
4287b7fb5eacSmrgdone
4288b7fb5eacSmrg
4289b7fb5eacSmrg
4290b7fb5eacSmrg   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4291b7fb5eacSmrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4292b7fb5eacSmrgif test "${ac_cv_prog_cc_c99+set}" = set; then
4293b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4294b7fb5eacSmrgelse
4295b7fb5eacSmrg  ac_cv_prog_cc_c99=no
4296b7fb5eacSmrgac_save_CC=$CC
4297b7fb5eacSmrgcat >conftest.$ac_ext <<_ACEOF
4298b7fb5eacSmrg/* confdefs.h.  */
4299b7fb5eacSmrg_ACEOF
4300b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4301b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4302b7fb5eacSmrg/* end confdefs.h.  */
4303b7fb5eacSmrg#include <stdarg.h>
4304b7fb5eacSmrg#include <stdbool.h>
4305b7fb5eacSmrg#include <stdlib.h>
4306b7fb5eacSmrg#include <wchar.h>
4307b7fb5eacSmrg#include <stdio.h>
4308b7fb5eacSmrg
4309b7fb5eacSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4310b7fb5eacSmrg#define debug(...) fprintf (stderr, __VA_ARGS__)
4311b7fb5eacSmrg#define showlist(...) puts (#__VA_ARGS__)
4312b7fb5eacSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4313b7fb5eacSmrgstatic void
4314b7fb5eacSmrgtest_varargs_macros (void)
4315b7fb5eacSmrg{
4316b7fb5eacSmrg  int x = 1234;
4317b7fb5eacSmrg  int y = 5678;
4318b7fb5eacSmrg  debug ("Flag");
4319b7fb5eacSmrg  debug ("X = %d\n", x);
4320b7fb5eacSmrg  showlist (The first, second, and third items.);
4321b7fb5eacSmrg  report (x>y, "x is %d but y is %d", x, y);
4322b7fb5eacSmrg}
4323b7fb5eacSmrg
4324b7fb5eacSmrg// Check long long types.
4325b7fb5eacSmrg#define BIG64 18446744073709551615ull
4326b7fb5eacSmrg#define BIG32 4294967295ul
4327b7fb5eacSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4328b7fb5eacSmrg#if !BIG_OK
4329b7fb5eacSmrg  your preprocessor is broken;
4330b7fb5eacSmrg#endif
4331b7fb5eacSmrg#if BIG_OK
4332b7fb5eacSmrg#else
4333b7fb5eacSmrg  your preprocessor is broken;
4334b7fb5eacSmrg#endif
4335b7fb5eacSmrgstatic long long int bignum = -9223372036854775807LL;
4336b7fb5eacSmrgstatic unsigned long long int ubignum = BIG64;
4337b7fb5eacSmrg
4338b7fb5eacSmrgstruct incomplete_array
4339b7fb5eacSmrg{
4340b7fb5eacSmrg  int datasize;
4341b7fb5eacSmrg  double data[];
4342b7fb5eacSmrg};
4343b7fb5eacSmrg
4344b7fb5eacSmrgstruct named_init {
4345b7fb5eacSmrg  int number;
4346b7fb5eacSmrg  const wchar_t *name;
4347b7fb5eacSmrg  double average;
4348b7fb5eacSmrg};
4349b7fb5eacSmrg
4350b7fb5eacSmrgtypedef const char *ccp;
4351b7fb5eacSmrg
4352b7fb5eacSmrgstatic inline int
4353b7fb5eacSmrgtest_restrict (ccp restrict text)
4354b7fb5eacSmrg{
4355b7fb5eacSmrg  // See if C++-style comments work.
4356b7fb5eacSmrg  // Iterate through items via the restricted pointer.
4357b7fb5eacSmrg  // Also check for declarations in for loops.
4358b7fb5eacSmrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4359b7fb5eacSmrg    continue;
4360b7fb5eacSmrg  return 0;
4361b7fb5eacSmrg}
4362b7fb5eacSmrg
4363b7fb5eacSmrg// Check varargs and va_copy.
4364b7fb5eacSmrgstatic void
4365b7fb5eacSmrgtest_varargs (const char *format, ...)
4366b7fb5eacSmrg{
4367b7fb5eacSmrg  va_list args;
4368b7fb5eacSmrg  va_start (args, format);
4369b7fb5eacSmrg  va_list args_copy;
4370b7fb5eacSmrg  va_copy (args_copy, args);
4371b7fb5eacSmrg
4372b7fb5eacSmrg  const char *str;
4373b7fb5eacSmrg  int number;
4374b7fb5eacSmrg  float fnumber;
4375b7fb5eacSmrg
4376b7fb5eacSmrg  while (*format)
4377b7fb5eacSmrg    {
4378b7fb5eacSmrg      switch (*format++)
4379b7fb5eacSmrg	{
4380b7fb5eacSmrg	case 's': // string
4381b7fb5eacSmrg	  str = va_arg (args_copy, const char *);
4382b7fb5eacSmrg	  break;
4383b7fb5eacSmrg	case 'd': // int
4384b7fb5eacSmrg	  number = va_arg (args_copy, int);
4385b7fb5eacSmrg	  break;
4386b7fb5eacSmrg	case 'f': // float
4387b7fb5eacSmrg	  fnumber = va_arg (args_copy, double);
4388b7fb5eacSmrg	  break;
4389b7fb5eacSmrg	default:
4390b7fb5eacSmrg	  break;
4391b7fb5eacSmrg	}
4392b7fb5eacSmrg    }
4393b7fb5eacSmrg  va_end (args_copy);
4394b7fb5eacSmrg  va_end (args);
4395b7fb5eacSmrg}
4396b7fb5eacSmrg
4397b7fb5eacSmrgint
4398b7fb5eacSmrgmain ()
4399b7fb5eacSmrg{
4400b7fb5eacSmrg
4401b7fb5eacSmrg  // Check bool.
4402b7fb5eacSmrg  _Bool success = false;
4403b7fb5eacSmrg
4404b7fb5eacSmrg  // Check restrict.
4405b7fb5eacSmrg  if (test_restrict ("String literal") == 0)
4406b7fb5eacSmrg    success = true;
4407b7fb5eacSmrg  char *restrict newvar = "Another string";
4408b7fb5eacSmrg
4409b7fb5eacSmrg  // Check varargs.
4410b7fb5eacSmrg  test_varargs ("s, d' f .", "string", 65, 34.234);
4411b7fb5eacSmrg  test_varargs_macros ();
4412b7fb5eacSmrg
4413b7fb5eacSmrg  // Check flexible array members.
4414b7fb5eacSmrg  struct incomplete_array *ia =
4415b7fb5eacSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4416b7fb5eacSmrg  ia->datasize = 10;
4417b7fb5eacSmrg  for (int i = 0; i < ia->datasize; ++i)
4418b7fb5eacSmrg    ia->data[i] = i * 1.234;
4419b7fb5eacSmrg
4420b7fb5eacSmrg  // Check named initializers.
4421b7fb5eacSmrg  struct named_init ni = {
4422b7fb5eacSmrg    .number = 34,
4423b7fb5eacSmrg    .name = L"Test wide string",
4424b7fb5eacSmrg    .average = 543.34343,
4425b7fb5eacSmrg  };
4426b7fb5eacSmrg
4427b7fb5eacSmrg  ni.number = 58;
4428b7fb5eacSmrg
4429b7fb5eacSmrg  int dynamic_array[ni.number];
4430b7fb5eacSmrg  dynamic_array[ni.number - 1] = 543;
4431b7fb5eacSmrg
4432b7fb5eacSmrg  // work around unused variable warnings
4433b7fb5eacSmrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4434b7fb5eacSmrg	  || dynamic_array[ni.number - 1] != 543);
4435b7fb5eacSmrg
4436b7fb5eacSmrg  ;
4437b7fb5eacSmrg  return 0;
4438b7fb5eacSmrg}
4439b7fb5eacSmrg_ACEOF
4440b7fb5eacSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4441b7fb5eacSmrgdo
4442b7fb5eacSmrg  CC="$ac_save_CC $ac_arg"
4443b7fb5eacSmrg  rm -f conftest.$ac_objext
4444b7fb5eacSmrgif { (ac_try="$ac_compile"
4445b7fb5eacSmrgcase "(($ac_try" in
4446b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4448b7fb5eacSmrgesac
4449b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4450b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4451b7fb5eacSmrg  (eval "$ac_compile") 2>conftest.er1
4452b7fb5eacSmrg  ac_status=$?
4453b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4454b7fb5eacSmrg  rm -f conftest.er1
4455b7fb5eacSmrg  cat conftest.err >&5
4456b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457b7fb5eacSmrg  (exit $ac_status); } && {
4458b7fb5eacSmrg	 test -z "$ac_c_werror_flag" ||
4459b7fb5eacSmrg	 test ! -s conftest.err
4460b7fb5eacSmrg       } && test -s conftest.$ac_objext; then
4461b7fb5eacSmrg  ac_cv_prog_cc_c99=$ac_arg
4462b7fb5eacSmrgelse
4463b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
4464b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
4465b7fb5eacSmrg
4466b7fb5eacSmrg
4467b7fb5eacSmrgfi
4468b7fb5eacSmrg
4469b7fb5eacSmrgrm -f core conftest.err conftest.$ac_objext
4470b7fb5eacSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4471b7fb5eacSmrgdone
4472b7fb5eacSmrgrm -f conftest.$ac_ext
4473b7fb5eacSmrgCC=$ac_save_CC
4474b7fb5eacSmrg
4475b7fb5eacSmrgfi
4476b7fb5eacSmrg# AC_CACHE_VAL
4477b7fb5eacSmrgcase "x$ac_cv_prog_cc_c99" in
4478b7fb5eacSmrg  x)
4479b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: result: none needed" >&5
4480b7fb5eacSmrg$as_echo "none needed" >&6; } ;;
4481b7fb5eacSmrg  xno)
4482b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4483b7fb5eacSmrg$as_echo "unsupported" >&6; } ;;
4484b7fb5eacSmrg  *)
4485b7fb5eacSmrg    CC="$CC $ac_cv_prog_cc_c99"
4486b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4487b7fb5eacSmrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4488b7fb5eacSmrgesac
4489b7fb5eacSmrg
4490b7fb5eacSmrg
4491b7fb5eacSmrg
4492b7fb5eacSmrg# Make sure we can run config.sub.
4493b7fb5eacSmrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4494b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4495b7fb5eacSmrg$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4496b7fb5eacSmrg   { (exit 1); exit 1; }; }
4497b7fb5eacSmrg
4498b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4499b7fb5eacSmrg$as_echo_n "checking build system type... " >&6; }
4500b7fb5eacSmrgif test "${ac_cv_build+set}" = set; then
4501b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4502b7fb5eacSmrgelse
4503b7fb5eacSmrg  ac_build_alias=$build_alias
4504b7fb5eacSmrgtest "x$ac_build_alias" = x &&
4505b7fb5eacSmrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4506b7fb5eacSmrgtest "x$ac_build_alias" = x &&
4507b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4508b7fb5eacSmrg$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4509b7fb5eacSmrg   { (exit 1); exit 1; }; }
4510b7fb5eacSmrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4511b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4512b7fb5eacSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4513b7fb5eacSmrg   { (exit 1); exit 1; }; }
4514b7fb5eacSmrg
4515b7fb5eacSmrgfi
4516b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4517b7fb5eacSmrg$as_echo "$ac_cv_build" >&6; }
4518b7fb5eacSmrgcase $ac_cv_build in
4519b7fb5eacSmrg*-*-*) ;;
4520b7fb5eacSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4521b7fb5eacSmrg$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4522b7fb5eacSmrg   { (exit 1); exit 1; }; };;
4523b7fb5eacSmrgesac
4524b7fb5eacSmrgbuild=$ac_cv_build
4525b7fb5eacSmrgac_save_IFS=$IFS; IFS='-'
4526b7fb5eacSmrgset x $ac_cv_build
4527b7fb5eacSmrgshift
4528b7fb5eacSmrgbuild_cpu=$1
4529b7fb5eacSmrgbuild_vendor=$2
4530b7fb5eacSmrgshift; shift
4531b7fb5eacSmrg# Remember, the first character of IFS is used to create $*,
4532b7fb5eacSmrg# except with old shells:
4533b7fb5eacSmrgbuild_os=$*
4534b7fb5eacSmrgIFS=$ac_save_IFS
4535b7fb5eacSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4536b7fb5eacSmrg
4537b7fb5eacSmrg
4538b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking host system type" >&5
4539b7fb5eacSmrg$as_echo_n "checking host system type... " >&6; }
4540b7fb5eacSmrgif test "${ac_cv_host+set}" = set; then
4541b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4542b7fb5eacSmrgelse
4543b7fb5eacSmrg  if test "x$host_alias" = x; then
4544b7fb5eacSmrg  ac_cv_host=$ac_cv_build
4545b7fb5eacSmrgelse
4546b7fb5eacSmrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4547b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4548b7fb5eacSmrg$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4549b7fb5eacSmrg   { (exit 1); exit 1; }; }
4550b7fb5eacSmrgfi
4551b7fb5eacSmrg
4552b7fb5eacSmrgfi
4553b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4554b7fb5eacSmrg$as_echo "$ac_cv_host" >&6; }
4555b7fb5eacSmrgcase $ac_cv_host in
4556b7fb5eacSmrg*-*-*) ;;
4557b7fb5eacSmrg*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4558b7fb5eacSmrg$as_echo "$as_me: error: invalid value of canonical host" >&2;}
4559b7fb5eacSmrg   { (exit 1); exit 1; }; };;
4560b7fb5eacSmrgesac
4561b7fb5eacSmrghost=$ac_cv_host
4562b7fb5eacSmrgac_save_IFS=$IFS; IFS='-'
4563b7fb5eacSmrgset x $ac_cv_host
4564b7fb5eacSmrgshift
4565b7fb5eacSmrghost_cpu=$1
4566b7fb5eacSmrghost_vendor=$2
4567b7fb5eacSmrgshift; shift
4568b7fb5eacSmrg# Remember, the first character of IFS is used to create $*,
4569b7fb5eacSmrg# except with old shells:
4570b7fb5eacSmrghost_os=$*
4571b7fb5eacSmrgIFS=$ac_save_IFS
4572b7fb5eacSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4573b7fb5eacSmrg
4574b7fb5eacSmrg
4575b7fb5eacSmrg
4576b7fb5eacSmrg
4577b7fb5eacSmrg
4578b7fb5eacSmrgif  test "x$GCC" = xyes ; then
4579b7fb5eacSmrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4580b7fb5eacSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4581b7fb5eacSmrg-Wbad-function-cast"
4582b7fb5eacSmrg    case `$CC -dumpversion` in
4583b7fb5eacSmrg    3.4.* | 4.*)
4584b7fb5eacSmrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4585b7fb5eacSmrg	;;
4586b7fb5eacSmrg    esac
4587b7fb5eacSmrgelse
4588b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4589b7fb5eacSmrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4590b7fb5eacSmrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4591b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4592b7fb5eacSmrgelse
4593b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4594b7fb5eacSmrg/* confdefs.h.  */
4595b7fb5eacSmrg_ACEOF
4596b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4597b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4598b7fb5eacSmrg/* end confdefs.h.  */
4599b7fb5eacSmrg$ac_includes_default
4600b7fb5eacSmrgint
4601b7fb5eacSmrgmain ()
4602b7fb5eacSmrg{
4603b7fb5eacSmrg#ifndef __SUNPRO_C
4604b7fb5eacSmrg  (void) __SUNPRO_C;
4605b7fb5eacSmrg#endif
4606b7fb5eacSmrg
4607b7fb5eacSmrg  ;
4608b7fb5eacSmrg  return 0;
4609b7fb5eacSmrg}
4610b7fb5eacSmrg_ACEOF
4611b7fb5eacSmrgrm -f conftest.$ac_objext
4612b7fb5eacSmrgif { (ac_try="$ac_compile"
4613b7fb5eacSmrgcase "(($ac_try" in
4614b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4616b7fb5eacSmrgesac
4617b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4619b7fb5eacSmrg  (eval "$ac_compile") 2>conftest.er1
4620b7fb5eacSmrg  ac_status=$?
4621b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4622b7fb5eacSmrg  rm -f conftest.er1
4623b7fb5eacSmrg  cat conftest.err >&5
4624b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625b7fb5eacSmrg  (exit $ac_status); } && {
4626b7fb5eacSmrg	 test -z "$ac_c_werror_flag" ||
4627b7fb5eacSmrg	 test ! -s conftest.err
4628b7fb5eacSmrg       } && test -s conftest.$ac_objext; then
4629b7fb5eacSmrg  ac_cv_have_decl___SUNPRO_C=yes
4630b7fb5eacSmrgelse
4631b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
4632b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
4633b7fb5eacSmrg
4634b7fb5eacSmrg	ac_cv_have_decl___SUNPRO_C=no
4635b7fb5eacSmrgfi
4636b7fb5eacSmrg
4637b7fb5eacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4638b7fb5eacSmrgfi
4639b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4640b7fb5eacSmrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4641b7fb5eacSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4642b7fb5eacSmrg  SUNCC="yes"
4643b7fb5eacSmrgelse
4644b7fb5eacSmrg  SUNCC="no"
4645b7fb5eacSmrgfi
4646b7fb5eacSmrg
4647b7fb5eacSmrg    if test "x$SUNCC" = "xyes"; then
4648b7fb5eacSmrg	CWARNFLAGS="-v"
4649b7fb5eacSmrg    fi
4650b7fb5eacSmrgfi
4651b7fb5eacSmrg
4652b7fb5eacSmrg# Check whether --enable-silent-rules was given.
4653b7fb5eacSmrgif test "${enable_silent_rules+set}" = set; then
4654b7fb5eacSmrg  enableval=$enable_silent_rules;
4655b7fb5eacSmrgfi
4656b7fb5eacSmrg
4657b7fb5eacSmrgcase $enable_silent_rules in
4658b7fb5eacSmrgyes) AM_DEFAULT_VERBOSITY=0;;
4659b7fb5eacSmrgno)  AM_DEFAULT_VERBOSITY=1;;
4660b7fb5eacSmrg*)   AM_DEFAULT_VERBOSITY=0;;
4661b7fb5eacSmrgesac
4662b7fb5eacSmrgAM_BACKSLASH='\'
4663b7fb5eacSmrg
4664b7fb5eacSmrg
4665b7fb5eacSmrg
4666b7fb5eacSmrg
4667b7fb5eacSmrg
4668b7fb5eacSmrg
4669b7fb5eacSmrg
4670b7fb5eacSmrg# Check whether --enable-strict-compilation was given.
4671b7fb5eacSmrgif test "${enable_strict_compilation+set}" = set; then
4672b7fb5eacSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4673b7fb5eacSmrgelse
4674b7fb5eacSmrg  STRICT_COMPILE=no
4675b7fb5eacSmrgfi
4676b7fb5eacSmrg
4677b7fb5eacSmrgif test "x$STRICT_COMPILE" = "xyes"; then
4678b7fb5eacSmrg	{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4679b7fb5eacSmrg$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4680b7fb5eacSmrgif test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4681b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4682b7fb5eacSmrgelse
4683b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4684b7fb5eacSmrg/* confdefs.h.  */
4685b7fb5eacSmrg_ACEOF
4686b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4687b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4688b7fb5eacSmrg/* end confdefs.h.  */
4689b7fb5eacSmrg$ac_includes_default
4690b7fb5eacSmrgint
4691b7fb5eacSmrgmain ()
4692b7fb5eacSmrg{
4693b7fb5eacSmrg#ifndef __SUNPRO_C
4694b7fb5eacSmrg  (void) __SUNPRO_C;
4695b7fb5eacSmrg#endif
4696b7fb5eacSmrg
4697b7fb5eacSmrg  ;
4698b7fb5eacSmrg  return 0;
4699b7fb5eacSmrg}
4700b7fb5eacSmrg_ACEOF
4701b7fb5eacSmrgrm -f conftest.$ac_objext
4702b7fb5eacSmrgif { (ac_try="$ac_compile"
4703b7fb5eacSmrgcase "(($ac_try" in
4704b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4706b7fb5eacSmrgesac
4707b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4708b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4709b7fb5eacSmrg  (eval "$ac_compile") 2>conftest.er1
4710b7fb5eacSmrg  ac_status=$?
4711b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4712b7fb5eacSmrg  rm -f conftest.er1
4713b7fb5eacSmrg  cat conftest.err >&5
4714b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715b7fb5eacSmrg  (exit $ac_status); } && {
4716b7fb5eacSmrg	 test -z "$ac_c_werror_flag" ||
4717b7fb5eacSmrg	 test ! -s conftest.err
4718b7fb5eacSmrg       } && test -s conftest.$ac_objext; then
4719b7fb5eacSmrg  ac_cv_have_decl___SUNPRO_C=yes
4720b7fb5eacSmrgelse
4721b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
4722b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
4723b7fb5eacSmrg
4724b7fb5eacSmrg	ac_cv_have_decl___SUNPRO_C=no
4725b7fb5eacSmrgfi
4726b7fb5eacSmrg
4727b7fb5eacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728b7fb5eacSmrgfi
4729b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4730b7fb5eacSmrg$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4731b7fb5eacSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4732b7fb5eacSmrg  SUNCC="yes"
4733b7fb5eacSmrgelse
4734b7fb5eacSmrg  SUNCC="no"
4735b7fb5eacSmrgfi
4736b7fb5eacSmrg
4737b7fb5eacSmrg	{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4738b7fb5eacSmrg$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4739b7fb5eacSmrgif test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4740b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4741b7fb5eacSmrgelse
4742b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4743b7fb5eacSmrg/* confdefs.h.  */
4744b7fb5eacSmrg_ACEOF
4745b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4746b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4747b7fb5eacSmrg/* end confdefs.h.  */
4748b7fb5eacSmrg$ac_includes_default
4749b7fb5eacSmrgint
4750b7fb5eacSmrgmain ()
4751b7fb5eacSmrg{
4752b7fb5eacSmrg#ifndef __INTEL_COMPILER
4753b7fb5eacSmrg  (void) __INTEL_COMPILER;
4754b7fb5eacSmrg#endif
4755b7fb5eacSmrg
4756b7fb5eacSmrg  ;
4757b7fb5eacSmrg  return 0;
4758b7fb5eacSmrg}
4759b7fb5eacSmrg_ACEOF
4760b7fb5eacSmrgrm -f conftest.$ac_objext
4761b7fb5eacSmrgif { (ac_try="$ac_compile"
4762b7fb5eacSmrgcase "(($ac_try" in
4763b7fb5eacSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764b7fb5eacSmrg  *) ac_try_echo=$ac_try;;
4765b7fb5eacSmrgesac
4766b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4767b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
4768b7fb5eacSmrg  (eval "$ac_compile") 2>conftest.er1
4769b7fb5eacSmrg  ac_status=$?
4770b7fb5eacSmrg  grep -v '^ *+' conftest.er1 >conftest.err
4771b7fb5eacSmrg  rm -f conftest.er1
4772b7fb5eacSmrg  cat conftest.err >&5
4773b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774b7fb5eacSmrg  (exit $ac_status); } && {
4775b7fb5eacSmrg	 test -z "$ac_c_werror_flag" ||
4776b7fb5eacSmrg	 test ! -s conftest.err
4777b7fb5eacSmrg       } && test -s conftest.$ac_objext; then
4778b7fb5eacSmrg  ac_cv_have_decl___INTEL_COMPILER=yes
4779b7fb5eacSmrgelse
4780b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
4781b7fb5eacSmrgsed 's/^/| /' conftest.$ac_ext >&5
4782b7fb5eacSmrg
4783b7fb5eacSmrg	ac_cv_have_decl___INTEL_COMPILER=no
4784b7fb5eacSmrgfi
4785b7fb5eacSmrg
4786b7fb5eacSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787b7fb5eacSmrgfi
4788b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4789b7fb5eacSmrg$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4790b7fb5eacSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4791b7fb5eacSmrg  INTELCC="yes"
4792b7fb5eacSmrgelse
4793b7fb5eacSmrg  INTELCC="no"
4794b7fb5eacSmrgfi
4795b7fb5eacSmrg
4796b7fb5eacSmrg	if test "x$GCC" = xyes ; then
4797b7fb5eacSmrg		STRICT_CFLAGS="-pedantic -Werror"
4798b7fb5eacSmrg	elif test "x$SUNCC" = "xyes"; then
4799b7fb5eacSmrg		STRICT_CFLAGS="-errwarn"
4800b7fb5eacSmrg    elif test "x$INTELCC" = "xyes"; then
4801b7fb5eacSmrg		STRICT_CFLAGS="-Werror"
4802b7fb5eacSmrg	fi
4803b7fb5eacSmrgfi
4804b7fb5eacSmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4805b7fb5eacSmrg
4806b7fb5eacSmrg
4807b7fb5eacSmrg
4808b7fb5eacSmrg
4809b7fb5eacSmrg# Check whether --with-release-version was given.
4810b7fb5eacSmrgif test "${with_release_version+set}" = set; then
4811b7fb5eacSmrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4812b7fb5eacSmrgelse
4813b7fb5eacSmrg  RELEASE_VERSION=""
4814b7fb5eacSmrgfi
4815b7fb5eacSmrg
4816b7fb5eacSmrg	if test "x$RELEASE_VERSION" != "x"; then
4817b7fb5eacSmrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4818b7fb5eacSmrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4819b7fb5eacSmrg		{ $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
4820b7fb5eacSmrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4821b7fb5eacSmrg	fi
4822b7fb5eacSmrg
4823b7fb5eacSmrgcat >>confdefs.h <<_ACEOF
4824b7fb5eacSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4825b7fb5eacSmrg_ACEOF
4826b7fb5eacSmrg
4827b7fb5eacSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4828b7fb5eacSmrg	if test "x$PVM" = "x"; then
4829b7fb5eacSmrg		PVM="0"
4830b7fb5eacSmrg	fi
4831b7fb5eacSmrg
4832b7fb5eacSmrgcat >>confdefs.h <<_ACEOF
4833b7fb5eacSmrg#define PACKAGE_VERSION_MINOR $PVM
4834b7fb5eacSmrg_ACEOF
4835b7fb5eacSmrg
4836b7fb5eacSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4837b7fb5eacSmrg	if test "x$PVP" = "x"; then
4838b7fb5eacSmrg		PVP="0"
4839b7fb5eacSmrg	fi
4840b7fb5eacSmrg
4841b7fb5eacSmrgcat >>confdefs.h <<_ACEOF
4842b7fb5eacSmrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
4843b7fb5eacSmrg_ACEOF
4844b7fb5eacSmrg
4845b7fb5eacSmrg
4846b7fb5eacSmrg
4847b7fb5eacSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
4848b7fb5eacSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
4849b7fb5eacSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
4850b7fb5eacSmrg
4851b7fb5eacSmrgdistcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
4852b7fb5eacSmrg
4853b7fb5eacSmrg
4854b7fb5eacSmrg
4855b7fb5eacSmrg
4856b7fb5eacSmrg
4857b7fb5eacSmrgif test x$APP_MAN_SUFFIX = x    ; then
4858b7fb5eacSmrg    APP_MAN_SUFFIX=1
4859b7fb5eacSmrgfi
4860b7fb5eacSmrgif test x$APP_MAN_DIR = x    ; then
4861b7fb5eacSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4862b7fb5eacSmrgfi
4863b7fb5eacSmrg
4864b7fb5eacSmrgif test x$LIB_MAN_SUFFIX = x    ; then
4865b7fb5eacSmrg    LIB_MAN_SUFFIX=3
4866b7fb5eacSmrgfi
4867b7fb5eacSmrgif test x$LIB_MAN_DIR = x    ; then
4868b7fb5eacSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4869b7fb5eacSmrgfi
4870b7fb5eacSmrg
4871b7fb5eacSmrgif test x$FILE_MAN_SUFFIX = x    ; then
4872b7fb5eacSmrg    case $host_os in
4873b7fb5eacSmrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
4874b7fb5eacSmrg	*)		FILE_MAN_SUFFIX=5  ;;
4875b7fb5eacSmrg    esac
4876b7fb5eacSmrgfi
4877b7fb5eacSmrgif test x$FILE_MAN_DIR = x    ; then
4878b7fb5eacSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4879b7fb5eacSmrgfi
4880b7fb5eacSmrg
4881b7fb5eacSmrgif test x$MISC_MAN_SUFFIX = x    ; then
4882b7fb5eacSmrg    case $host_os in
4883b7fb5eacSmrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
4884b7fb5eacSmrg	*)		MISC_MAN_SUFFIX=7  ;;
4885b7fb5eacSmrg    esac
4886b7fb5eacSmrgfi
4887b7fb5eacSmrgif test x$MISC_MAN_DIR = x    ; then
4888b7fb5eacSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4889b7fb5eacSmrgfi
4890b7fb5eacSmrg
4891b7fb5eacSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
4892b7fb5eacSmrg    case $host_os in
4893b7fb5eacSmrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4894b7fb5eacSmrg	*)		DRIVER_MAN_SUFFIX=4  ;;
4895b7fb5eacSmrg    esac
4896b7fb5eacSmrgfi
4897b7fb5eacSmrgif test x$DRIVER_MAN_DIR = x    ; then
4898b7fb5eacSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4899b7fb5eacSmrgfi
4900b7fb5eacSmrg
4901b7fb5eacSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
4902b7fb5eacSmrg    case $host_os in
4903b7fb5eacSmrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4904b7fb5eacSmrg	*)		ADMIN_MAN_SUFFIX=8  ;;
4905b7fb5eacSmrg    esac
4906b7fb5eacSmrgfi
4907b7fb5eacSmrgif test x$ADMIN_MAN_DIR = x    ; then
4908b7fb5eacSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4909b7fb5eacSmrgfi
4910b7fb5eacSmrg
4911b7fb5eacSmrg
4912b7fb5eacSmrg
4913b7fb5eacSmrg
4914b7fb5eacSmrg
4915b7fb5eacSmrg
4916b7fb5eacSmrg
4917b7fb5eacSmrg
4918b7fb5eacSmrg
4919b7fb5eacSmrg
4920b7fb5eacSmrg
4921b7fb5eacSmrg
4922b7fb5eacSmrg
4923b7fb5eacSmrg
4924b7fb5eacSmrg
4925b7fb5eacSmrg
4926b7fb5eacSmrg
4927b7fb5eacSmrg
4928b7fb5eacSmrgfor ac_func in strncasecmp
4929b7fb5eacSmrgdo
4930b7fb5eacSmrgas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4931b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
4932b7fb5eacSmrg$as_echo_n "checking for $ac_func... " >&6; }
4933b7fb5eacSmrgif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4934b7fb5eacSmrg  $as_echo_n "(cached) " >&6
4935b7fb5eacSmrgelse
4936b7fb5eacSmrg  cat >conftest.$ac_ext <<_ACEOF
4937b7fb5eacSmrg/* confdefs.h.  */
4938b7fb5eacSmrg_ACEOF
4939b7fb5eacSmrgcat confdefs.h >>conftest.$ac_ext
4940b7fb5eacSmrgcat >>conftest.$ac_ext <<_ACEOF
4941b7fb5eacSmrg/* end confdefs.h.  */
4942b7fb5eacSmrg/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4943b7fb5eacSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4944b7fb5eacSmrg#define $ac_func innocuous_$ac_func
4945b7fb5eacSmrg
4946b7fb5eacSmrg/* System header to define __stub macros and hopefully few prototypes,
4947b7fb5eacSmrg    which can conflict with char $ac_func (); below.
4948b7fb5eacSmrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949b7fb5eacSmrg    <limits.h> exists even on freestanding compilers.  */
4950b7fb5eacSmrg
4951b7fb5eacSmrg#ifdef __STDC__
4952b7fb5eacSmrg# include <limits.h>
4953b7fb5eacSmrg#else
4954b7fb5eacSmrg# include <assert.h>
4955b7fb5eacSmrg#endif
4956b7fb5eacSmrg
4957b7fb5eacSmrg#undef $ac_func
4958b7fb5eacSmrg
4959b7fb5eacSmrg/* Override any GCC internal prototype to avoid an error.
4960b7fb5eacSmrg   Use char because int might match the return type of a GCC
4961b7fb5eacSmrg   builtin and then its argument prototype would still apply.  */
4962b7fb5eacSmrg#ifdef __cplusplus
4963b7fb5eacSmrgextern "C"
4964b7fb5eacSmrg#endif
4965b7fb5eacSmrgchar $ac_func ();
49661a30de1fSmrg/* The GNU C library defines this for functions which it implements
49671a30de1fSmrg    to always fail with ENOSYS.  Some functions are actually named
49681a30de1fSmrg    something starting with __ and the normal name is an alias.  */
49691a30de1fSmrg#if defined __stub_$ac_func || defined __stub___$ac_func
49701a30de1fSmrgchoke me
49711a30de1fSmrg#endif
49721a30de1fSmrg
49731a30de1fSmrgint
49741a30de1fSmrgmain ()
49751a30de1fSmrg{
49761a30de1fSmrgreturn $ac_func ();
49771a30de1fSmrg  ;
49781a30de1fSmrg  return 0;
49791a30de1fSmrg}
49801a30de1fSmrg_ACEOF
49811a30de1fSmrgrm -f conftest.$ac_objext conftest$ac_exeext
49821a30de1fSmrgif { (ac_try="$ac_link"
49831a30de1fSmrgcase "(($ac_try" in
49841a30de1fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49851a30de1fSmrg  *) ac_try_echo=$ac_try;;
49861a30de1fSmrgesac
4987b7fb5eacSmrgeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4988b7fb5eacSmrg$as_echo "$ac_try_echo") >&5
49891a30de1fSmrg  (eval "$ac_link") 2>conftest.er1
49901a30de1fSmrg  ac_status=$?
49911a30de1fSmrg  grep -v '^ *+' conftest.er1 >conftest.err
49921a30de1fSmrg  rm -f conftest.er1
49931a30de1fSmrg  cat conftest.err >&5
4994b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49951a30de1fSmrg  (exit $ac_status); } && {
49961a30de1fSmrg	 test -z "$ac_c_werror_flag" ||
49971a30de1fSmrg	 test ! -s conftest.err
4998b7fb5eacSmrg       } && test -s conftest$ac_exeext && {
4999b7fb5eacSmrg	 test "$cross_compiling" = yes ||
5000b7fb5eacSmrg	 $as_test_x conftest$ac_exeext
5001b7fb5eacSmrg       }; then
50021a30de1fSmrg  eval "$as_ac_var=yes"
50031a30de1fSmrgelse
5004b7fb5eacSmrg  $as_echo "$as_me: failed program was:" >&5
50051a30de1fSmrgsed 's/^/| /' conftest.$ac_ext >&5
50061a30de1fSmrg
50071a30de1fSmrg	eval "$as_ac_var=no"
50081a30de1fSmrgfi
50091a30de1fSmrg
5010b7fb5eacSmrgrm -rf conftest.dSYM
50111a30de1fSmrgrm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50121a30de1fSmrg      conftest$ac_exeext conftest.$ac_ext
50131a30de1fSmrgfi
5014b7fb5eacSmrgac_res=`eval 'as_val=${'$as_ac_var'}
5015b7fb5eacSmrg		 $as_echo "$as_val"'`
5016b7fb5eacSmrg	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5017b7fb5eacSmrg$as_echo "$ac_res" >&6; }
5018b7fb5eacSmrgas_val=`eval 'as_val=${'$as_ac_var'}
5019b7fb5eacSmrg		 $as_echo "$as_val"'`
5020b7fb5eacSmrg   if test "x$as_val" = x""yes; then
50211a30de1fSmrg  cat >>confdefs.h <<_ACEOF
5022b7fb5eacSmrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50231a30de1fSmrg_ACEOF
50241a30de1fSmrg
50251a30de1fSmrgfi
50261a30de1fSmrgdone
50271a30de1fSmrg
50281a30de1fSmrg
50291a30de1fSmrg# Checks for pkg-config packages
50301a30de1fSmrg
50311a30de1fSmrg
50321a30de1fSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
50331a30de1fSmrg	if test -n "$ac_tool_prefix"; then
50341a30de1fSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
50351a30de1fSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5036b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5037b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
50381a30de1fSmrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5039b7fb5eacSmrg  $as_echo_n "(cached) " >&6
50401a30de1fSmrgelse
50411a30de1fSmrg  case $PKG_CONFIG in
50421a30de1fSmrg  [\\/]* | ?:[\\/]*)
50431a30de1fSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
50441a30de1fSmrg  ;;
50451a30de1fSmrg  *)
50461a30de1fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50471a30de1fSmrgfor as_dir in $PATH
50481a30de1fSmrgdo
50491a30de1fSmrg  IFS=$as_save_IFS
50501a30de1fSmrg  test -z "$as_dir" && as_dir=.
50511a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
50521a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50531a30de1fSmrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5054b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50551a30de1fSmrg    break 2
50561a30de1fSmrg  fi
50571a30de1fSmrgdone
50581a30de1fSmrgdone
50591a30de1fSmrgIFS=$as_save_IFS
50601a30de1fSmrg
50611a30de1fSmrg  ;;
50621a30de1fSmrgesac
50631a30de1fSmrgfi
50641a30de1fSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
50651a30de1fSmrgif test -n "$PKG_CONFIG"; then
5066b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5067b7fb5eacSmrg$as_echo "$PKG_CONFIG" >&6; }
50681a30de1fSmrgelse
5069b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
5070b7fb5eacSmrg$as_echo "no" >&6; }
50711a30de1fSmrgfi
50721a30de1fSmrg
50731a30de1fSmrg
50741a30de1fSmrgfi
50751a30de1fSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
50761a30de1fSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
50771a30de1fSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
50781a30de1fSmrgset dummy pkg-config; ac_word=$2
5079b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5080b7fb5eacSmrg$as_echo_n "checking for $ac_word... " >&6; }
50811a30de1fSmrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5082b7fb5eacSmrg  $as_echo_n "(cached) " >&6
50831a30de1fSmrgelse
50841a30de1fSmrg  case $ac_pt_PKG_CONFIG in
50851a30de1fSmrg  [\\/]* | ?:[\\/]*)
50861a30de1fSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
50871a30de1fSmrg  ;;
50881a30de1fSmrg  *)
50891a30de1fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50901a30de1fSmrgfor as_dir in $PATH
50911a30de1fSmrgdo
50921a30de1fSmrg  IFS=$as_save_IFS
50931a30de1fSmrg  test -z "$as_dir" && as_dir=.
50941a30de1fSmrg  for ac_exec_ext in '' $ac_executable_extensions; do
50951a30de1fSmrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50961a30de1fSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5097b7fb5eacSmrg    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50981a30de1fSmrg    break 2
50991a30de1fSmrg  fi
51001a30de1fSmrgdone
51011a30de1fSmrgdone
51021a30de1fSmrgIFS=$as_save_IFS
51031a30de1fSmrg
51041a30de1fSmrg  ;;
51051a30de1fSmrgesac
51061a30de1fSmrgfi
51071a30de1fSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
51081a30de1fSmrgif test -n "$ac_pt_PKG_CONFIG"; then
5109b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5110b7fb5eacSmrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
51111a30de1fSmrgelse
5112b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: result: no" >&5
5113b7fb5eacSmrg$as_echo "no" >&6; }
51141a30de1fSmrgfi
5115b7fb5eacSmrg
5116b7fb5eacSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
5117b7fb5eacSmrg    PKG_CONFIG=""
5118b7fb5eacSmrg  else
5119b7fb5eacSmrg    case $cross_compiling:$ac_tool_warned in
5120b7fb5eacSmrgyes:)
5121b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5122b7fb5eacSmrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123b7fb5eacSmrgac_tool_warned=yes ;;
5124b7fb5eacSmrgesac
5125b7fb5eacSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
5126b7fb5eacSmrg  fi
5127b7fb5eacSmrgelse
5128b7fb5eacSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
51291a30de1fSmrgfi
51301a30de1fSmrg
51311a30de1fSmrgfi
5132b7fb5eacSmrgif test -n "$PKG_CONFIG"; then
5133b7fb5eacSmrg	_pkg_min_version=0.9.0
5134b7fb5eacSmrg	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5135b7fb5eacSmrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5136b7fb5eacSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5137b7fb5eacSmrg		{ $as_echo "$as_me:$LINENO: result: yes" >&5
5138b7fb5eacSmrg$as_echo "yes" >&6; }
5139b7fb5eacSmrg	else
5140b7fb5eacSmrg		{ $as_echo "$as_me:$LINENO: result: no" >&5
5141b7fb5eacSmrg$as_echo "no" >&6; }
5142b7fb5eacSmrg		PKG_CONFIG=""
5143b7fb5eacSmrg	fi
5144b7fb5eacSmrg
51451a30de1fSmrgfi
51461a30de1fSmrg
5147b7fb5eacSmrgpkg_failed=no
5148b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: checking for XMODMAP" >&5
5149b7fb5eacSmrg$as_echo_n "checking for XMODMAP... " >&6; }
5150b7fb5eacSmrg
5151b7fb5eacSmrgif test -n "$XMODMAP_CFLAGS"; then
5152b7fb5eacSmrg    pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS"
5153b7fb5eacSmrg elif test -n "$PKG_CONFIG"; then
5154b7fb5eacSmrg    if test -n "$PKG_CONFIG" && \
5155b7fb5eacSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5156b7fb5eacSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5157b7fb5eacSmrg  ac_status=$?
5158b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159b7fb5eacSmrg  (exit $ac_status); }; then
5160b7fb5eacSmrg  pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
5161b7fb5eacSmrgelse
5162b7fb5eacSmrg  pkg_failed=yes
51631a30de1fSmrgfi
5164b7fb5eacSmrg else
5165b7fb5eacSmrg    pkg_failed=untried
51661a30de1fSmrgfi
5167b7fb5eacSmrgif test -n "$XMODMAP_LIBS"; then
5168b7fb5eacSmrg    pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS"
5169b7fb5eacSmrg elif test -n "$PKG_CONFIG"; then
5170b7fb5eacSmrg    if test -n "$PKG_CONFIG" && \
5171b7fb5eacSmrg    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
5172b7fb5eacSmrg  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
5173b7fb5eacSmrg  ac_status=$?
5174b7fb5eacSmrg  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175b7fb5eacSmrg  (exit $ac_status); }; then
5176b7fb5eacSmrg  pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
5177b7fb5eacSmrgelse
5178b7fb5eacSmrg  pkg_failed=yes
51791a30de1fSmrgfi
5180b7fb5eacSmrg else
5181b7fb5eacSmrg    pkg_failed=untried
51821a30de1fSmrgfi
51831a30de1fSmrg
5184b7fb5eacSmrg
5185b7fb5eacSmrg
5186b7fb5eacSmrgif test $pkg_failed = yes; then
5187b7fb5eacSmrg
5188b7fb5eacSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5189b7fb5eacSmrg        _pkg_short_errors_supported=yes
5190b7fb5eacSmrgelse
5191b7fb5eacSmrg        _pkg_short_errors_supported=no
51921a30de1fSmrgfi
5193b7fb5eacSmrg        if test $_pkg_short_errors_supported = yes; then
5194b7fb5eacSmrg	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
5195b7fb5eacSmrg        else
5196b7fb5eacSmrg	        XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
5197b7fb5eacSmrg        fi
5198b7fb5eacSmrg	# Put the nasty error message in config.log where it belongs
5199b7fb5eacSmrg	echo "$XMODMAP_PKG_ERRORS" >&5
52001a30de1fSmrg
5201b7fb5eacSmrg	{ { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
52021a30de1fSmrg
5203b7fb5eacSmrg$XMODMAP_PKG_ERRORS
52041a30de1fSmrg
5205b7fb5eacSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5206b7fb5eacSmrginstalled software in a non-standard prefix.
52071a30de1fSmrg
5208b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS
5209b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config.
5210b7fb5eacSmrgSee the pkg-config man page for more details.
5211b7fb5eacSmrg" >&5
5212b7fb5eacSmrg$as_echo "$as_me: error: Package requirements (x11) were not met:
52131a30de1fSmrg
5214b7fb5eacSmrg$XMODMAP_PKG_ERRORS
52151a30de1fSmrg
5216b7fb5eacSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5217b7fb5eacSmrginstalled software in a non-standard prefix.
52181a30de1fSmrg
5219b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS
5220b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config.
5221b7fb5eacSmrgSee the pkg-config man page for more details.
5222b7fb5eacSmrg" >&2;}
5223b7fb5eacSmrg   { (exit 1); exit 1; }; }
5224b7fb5eacSmrgelif test $pkg_failed = untried; then
5225b7fb5eacSmrg	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5226b7fb5eacSmrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5227b7fb5eacSmrg{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5228b7fb5eacSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
5229b7fb5eacSmrgpath to pkg-config.
52301a30de1fSmrg
5231b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS
5232b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config.
5233b7fb5eacSmrgSee the pkg-config man page for more details.
52341a30de1fSmrg
5235b7fb5eacSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5236b7fb5eacSmrgSee \`config.log' for more details." >&5
5237b7fb5eacSmrg$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5238b7fb5eacSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
5239b7fb5eacSmrgpath to pkg-config.
52401a30de1fSmrg
5241b7fb5eacSmrgAlternatively, you may set the environment variables XMODMAP_CFLAGS
5242b7fb5eacSmrgand XMODMAP_LIBS to avoid the need to call pkg-config.
5243b7fb5eacSmrgSee the pkg-config man page for more details.
52441a30de1fSmrg
5245b7fb5eacSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
5246b7fb5eacSmrgSee \`config.log' for more details." >&2;}
5247b7fb5eacSmrg   { (exit 1); exit 1; }; }; }
5248b7fb5eacSmrgelse
5249b7fb5eacSmrg	XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS
5250b7fb5eacSmrg	XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS
5251b7fb5eacSmrg        { $as_echo "$as_me:$LINENO: result: yes" >&5
5252b7fb5eacSmrg$as_echo "yes" >&6; }
5253b7fb5eacSmrg	:
5254b7fb5eacSmrgfi
52551a30de1fSmrg
52561a30de1fSmrg
52571a30de1fSmrg
52581a30de1fSmrg
52591a30de1fSmrg
5260b7fb5eacSmrg# Allow checking code with lint, sparse, etc.
52611a30de1fSmrg
5262b7fb5eacSmrg# Check whether --with-lint was given.
5263b7fb5eacSmrgif test "${with_lint+set}" = set; then
5264b7fb5eacSmrg  withval=$with_lint; use_lint=$withval
52651a30de1fSmrgelse
5266b7fb5eacSmrg  use_lint=no
52671a30de1fSmrgfi
52681a30de1fSmrg
5269b7fb5eacSmrgif test "x$use_lint" = "xyes" ; then
5270b7fb5eacSmrg	LINT="lint"
5271b7fb5eacSmrgelse
5272b7fb5eacSmrg	LINT="$use_lint"
5273b7fb5eacSmrgfi
5274b7fb5eacSmrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
5275b7fb5eacSmrg    case $LINT in
5276b7fb5eacSmrg	lint|*/lint)
5277b7fb5eacSmrg	    case $host_os in
5278b7fb5eacSmrg		solaris*)
5279b7fb5eacSmrg			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
5280b7fb5eacSmrg			;;
5281b7fb5eacSmrg	    esac
5282b7fb5eacSmrg	    ;;
5283b7fb5eacSmrg    esac
5284b7fb5eacSmrgfi
52851a30de1fSmrg
52861a30de1fSmrg
52871a30de1fSmrg
5288b7fb5eacSmrg if test x$LINT != xno; then
5289b7fb5eacSmrg  LINT_TRUE=
5290b7fb5eacSmrg  LINT_FALSE='#'
5291b7fb5eacSmrgelse
5292b7fb5eacSmrg  LINT_TRUE='#'
5293b7fb5eacSmrg  LINT_FALSE=
5294b7fb5eacSmrgfi
52951a30de1fSmrg
52961a30de1fSmrg
52971a30de1fSmrg
52981a30de1fSmrg
52991a30de1fSmrgac_config_files="$ac_config_files Makefile"
53001a30de1fSmrg
53011a30de1fSmrgcat >confcache <<\_ACEOF
53021a30de1fSmrg# This file is a shell script that caches the results of configure
53031a30de1fSmrg# tests run on this system so they can be shared between configure
53041a30de1fSmrg# scripts and configure runs, see configure's option --config-cache.
53051a30de1fSmrg# It is not useful on other systems.  If it contains results you don't
53061a30de1fSmrg# want to keep, you may remove or edit it.
53071a30de1fSmrg#
53081a30de1fSmrg# config.status only pays attention to the cache file if you give it
53091a30de1fSmrg# the --recheck option to rerun configure.
53101a30de1fSmrg#
53111a30de1fSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
53121a30de1fSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
53131a30de1fSmrg# following values.
53141a30de1fSmrg
53151a30de1fSmrg_ACEOF
53161a30de1fSmrg
53171a30de1fSmrg# The following way of writing the cache mishandles newlines in values,
53181a30de1fSmrg# but we know of no workaround that is simple, portable, and efficient.
53191a30de1fSmrg# So, we kill variables containing newlines.
53201a30de1fSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
53211a30de1fSmrg# and sets the high bit in the cache file unless we assign to the vars.
53221a30de1fSmrg(
53231a30de1fSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53241a30de1fSmrg    eval ac_val=\$$ac_var
53251a30de1fSmrg    case $ac_val in #(
53261a30de1fSmrg    *${as_nl}*)
53271a30de1fSmrg      case $ac_var in #(
5328b7fb5eacSmrg      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5329b7fb5eacSmrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
53301a30de1fSmrg      esac
53311a30de1fSmrg      case $ac_var in #(
53321a30de1fSmrg      _ | IFS | as_nl) ;; #(
5333b7fb5eacSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
53341a30de1fSmrg      *) $as_unset $ac_var ;;
53351a30de1fSmrg      esac ;;
53361a30de1fSmrg    esac
53371a30de1fSmrg  done
53381a30de1fSmrg
53391a30de1fSmrg  (set) 2>&1 |
53401a30de1fSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
53411a30de1fSmrg    *${as_nl}ac_space=\ *)
53421a30de1fSmrg      # `set' does not quote correctly, so add quotes (double-quote
53431a30de1fSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
53441a30de1fSmrg      sed -n \
53451a30de1fSmrg	"s/'/'\\\\''/g;
53461a30de1fSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53471a30de1fSmrg      ;; #(
53481a30de1fSmrg    *)
53491a30de1fSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
53501a30de1fSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53511a30de1fSmrg      ;;
53521a30de1fSmrg    esac |
53531a30de1fSmrg    sort
53541a30de1fSmrg) |
53551a30de1fSmrg  sed '
53561a30de1fSmrg     /^ac_cv_env_/b end
53571a30de1fSmrg     t clear
53581a30de1fSmrg     :clear
53591a30de1fSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53601a30de1fSmrg     t end
53611a30de1fSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53621a30de1fSmrg     :end' >>confcache
53631a30de1fSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53641a30de1fSmrg  if test -w "$cache_file"; then
53651a30de1fSmrg    test "x$cache_file" != "x/dev/null" &&
5366b7fb5eacSmrg      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5367b7fb5eacSmrg$as_echo "$as_me: updating cache $cache_file" >&6;}
53681a30de1fSmrg    cat confcache >$cache_file
53691a30de1fSmrg  else
5370b7fb5eacSmrg    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5371b7fb5eacSmrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53721a30de1fSmrg  fi
53731a30de1fSmrgfi
53741a30de1fSmrgrm -f confcache
53751a30de1fSmrg
53761a30de1fSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
53771a30de1fSmrg# Let make expand exec_prefix.
53781a30de1fSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53791a30de1fSmrg
53801a30de1fSmrgDEFS=-DHAVE_CONFIG_H
53811a30de1fSmrg
53821a30de1fSmrgac_libobjs=
53831a30de1fSmrgac_ltlibobjs=
53841a30de1fSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53851a30de1fSmrg  # 1. Remove the extension, and $U if already installed.
53861a30de1fSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5387b7fb5eacSmrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
53881a30de1fSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53891a30de1fSmrg  #    will be set to the directory where LIBOBJS objects are built.
53901a30de1fSmrg  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53911a30de1fSmrg  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53921a30de1fSmrgdone
53931a30de1fSmrgLIBOBJS=$ac_libobjs
53941a30de1fSmrg
53951a30de1fSmrgLTLIBOBJS=$ac_ltlibobjs
53961a30de1fSmrg
53971a30de1fSmrg
5398b7fb5eacSmrg if test -n "$EXEEXT"; then
5399b7fb5eacSmrg  am__EXEEXT_TRUE=
5400b7fb5eacSmrg  am__EXEEXT_FALSE='#'
5401b7fb5eacSmrgelse
5402b7fb5eacSmrg  am__EXEEXT_TRUE='#'
5403b7fb5eacSmrg  am__EXEEXT_FALSE=
5404b7fb5eacSmrgfi
5405b7fb5eacSmrg
54061a30de1fSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5407b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
54081a30de1fSmrgUsually this means the macro was only invoked conditionally." >&5
5409b7fb5eacSmrg$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
54101a30de1fSmrgUsually this means the macro was only invoked conditionally." >&2;}
54111a30de1fSmrg   { (exit 1); exit 1; }; }
54121a30de1fSmrgfi
54131a30de1fSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5414b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
54151a30de1fSmrgUsually this means the macro was only invoked conditionally." >&5
5416b7fb5eacSmrg$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
54171a30de1fSmrgUsually this means the macro was only invoked conditionally." >&2;}
54181a30de1fSmrg   { (exit 1); exit 1; }; }
54191a30de1fSmrgfi
54201a30de1fSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5421b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
54221a30de1fSmrgUsually this means the macro was only invoked conditionally." >&5
5423b7fb5eacSmrg$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
54241a30de1fSmrgUsually this means the macro was only invoked conditionally." >&2;}
54251a30de1fSmrg   { (exit 1); exit 1; }; }
54261a30de1fSmrgfi
54271a30de1fSmrgif test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
5428b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
54291a30de1fSmrgUsually this means the macro was only invoked conditionally." >&5
5430b7fb5eacSmrg$as_echo "$as_me: error: conditional \"LINT\" was never defined.
54311a30de1fSmrgUsually this means the macro was only invoked conditionally." >&2;}
54321a30de1fSmrg   { (exit 1); exit 1; }; }
54331a30de1fSmrgfi
54341a30de1fSmrg
54351a30de1fSmrg: ${CONFIG_STATUS=./config.status}
5436b7fb5eacSmrgac_write_fail=0
54371a30de1fSmrgac_clean_files_save=$ac_clean_files
54381a30de1fSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
5439b7fb5eacSmrg{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5440b7fb5eacSmrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5441b7fb5eacSmrgcat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54421a30de1fSmrg#! $SHELL
54431a30de1fSmrg# Generated by $as_me.
54441a30de1fSmrg# Run this file to recreate the current configuration.
54451a30de1fSmrg# Compiler output produced by configure, useful for debugging
54461a30de1fSmrg# configure, is in config.log if it exists.
54471a30de1fSmrg
54481a30de1fSmrgdebug=false
54491a30de1fSmrgac_cs_recheck=false
54501a30de1fSmrgac_cs_silent=false
54511a30de1fSmrgSHELL=\${CONFIG_SHELL-$SHELL}
54521a30de1fSmrg_ACEOF
54531a30de1fSmrg
5454b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
54551a30de1fSmrg## --------------------- ##
54561a30de1fSmrg## M4sh Initialization.  ##
54571a30de1fSmrg## --------------------- ##
54581a30de1fSmrg
54591a30de1fSmrg# Be more Bourne compatible
54601a30de1fSmrgDUALCASE=1; export DUALCASE # for MKS sh
54611a30de1fSmrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
54621a30de1fSmrg  emulate sh
54631a30de1fSmrg  NULLCMD=:
5464b7fb5eacSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
54651a30de1fSmrg  # is contrary to our usage.  Disable this feature.
54661a30de1fSmrg  alias -g '${1+"$@"}'='"$@"'
54671a30de1fSmrg  setopt NO_GLOB_SUBST
54681a30de1fSmrgelse
54691a30de1fSmrg  case `(set -o) 2>/dev/null` in
54701a30de1fSmrg  *posix*) set -o posix ;;
54711a30de1fSmrgesac
54721a30de1fSmrg
54731a30de1fSmrgfi
54741a30de1fSmrg
54751a30de1fSmrg
54761a30de1fSmrg
54771a30de1fSmrg
54781a30de1fSmrg# PATH needs CR
54791a30de1fSmrg# Avoid depending upon Character Ranges.
54801a30de1fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
54811a30de1fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
54821a30de1fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
54831a30de1fSmrgas_cr_digits='0123456789'
54841a30de1fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
54851a30de1fSmrg
5486b7fb5eacSmrgas_nl='
5487b7fb5eacSmrg'
5488b7fb5eacSmrgexport as_nl
5489b7fb5eacSmrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
5490b7fb5eacSmrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5491b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5492b7fb5eacSmrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5493b7fb5eacSmrgif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5494b7fb5eacSmrg  as_echo='printf %s\n'
5495b7fb5eacSmrg  as_echo_n='printf %s'
5496b7fb5eacSmrgelse
5497b7fb5eacSmrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5498b7fb5eacSmrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5499b7fb5eacSmrg    as_echo_n='/usr/ucb/echo -n'
55001a30de1fSmrg  else
5501b7fb5eacSmrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5502b7fb5eacSmrg    as_echo_n_body='eval
5503b7fb5eacSmrg      arg=$1;
5504b7fb5eacSmrg      case $arg in
5505b7fb5eacSmrg      *"$as_nl"*)
5506b7fb5eacSmrg	expr "X$arg" : "X\\(.*\\)$as_nl";
5507b7fb5eacSmrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5508b7fb5eacSmrg      esac;
5509b7fb5eacSmrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5510b7fb5eacSmrg    '
5511b7fb5eacSmrg    export as_echo_n_body
5512b7fb5eacSmrg    as_echo_n='sh -c $as_echo_n_body as_echo'
55131a30de1fSmrg  fi
5514b7fb5eacSmrg  export as_echo_body
5515b7fb5eacSmrg  as_echo='sh -c $as_echo_body as_echo'
5516b7fb5eacSmrgfi
5517b7fb5eacSmrg
5518b7fb5eacSmrg# The user is always right.
5519b7fb5eacSmrgif test "${PATH_SEPARATOR+set}" != set; then
5520b7fb5eacSmrg  PATH_SEPARATOR=:
5521b7fb5eacSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5522b7fb5eacSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5523b7fb5eacSmrg      PATH_SEPARATOR=';'
5524b7fb5eacSmrg  }
55251a30de1fSmrgfi
55261a30de1fSmrg
55271a30de1fSmrg# Support unset when possible.
55281a30de1fSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55291a30de1fSmrg  as_unset=unset
55301a30de1fSmrgelse
55311a30de1fSmrg  as_unset=false
55321a30de1fSmrgfi
55331a30de1fSmrg
55341a30de1fSmrg
55351a30de1fSmrg# IFS
55361a30de1fSmrg# We need space, tab and new line, in precisely that order.  Quoting is
55371a30de1fSmrg# there to prevent editors from complaining about space-tab.
55381a30de1fSmrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
55391a30de1fSmrg# splitting by setting IFS to empty value.)
55401a30de1fSmrgIFS=" ""	$as_nl"
55411a30de1fSmrg
55421a30de1fSmrg# Find who we are.  Look in the path if we contain no directory separator.
55431a30de1fSmrgcase $0 in
55441a30de1fSmrg  *[\\/]* ) as_myself=$0 ;;
55451a30de1fSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55461a30de1fSmrgfor as_dir in $PATH
55471a30de1fSmrgdo
55481a30de1fSmrg  IFS=$as_save_IFS
55491a30de1fSmrg  test -z "$as_dir" && as_dir=.
55501a30de1fSmrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
55511a30de1fSmrgdone
55521a30de1fSmrgIFS=$as_save_IFS
55531a30de1fSmrg
55541a30de1fSmrg     ;;
55551a30de1fSmrgesac
55561a30de1fSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
55571a30de1fSmrg# in which case we are not to be found in the path.
55581a30de1fSmrgif test "x$as_myself" = x; then
55591a30de1fSmrg  as_myself=$0
55601a30de1fSmrgfi
55611a30de1fSmrgif test ! -f "$as_myself"; then
5562b7fb5eacSmrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
55631a30de1fSmrg  { (exit 1); exit 1; }
55641a30de1fSmrgfi
55651a30de1fSmrg
55661a30de1fSmrg# Work around bugs in pre-3.0 UWIN ksh.
55671a30de1fSmrgfor as_var in ENV MAIL MAILPATH
55681a30de1fSmrgdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
55691a30de1fSmrgdone
55701a30de1fSmrgPS1='$ '
55711a30de1fSmrgPS2='> '
55721a30de1fSmrgPS4='+ '
55731a30de1fSmrg
55741a30de1fSmrg# NLS nuisances.
5575b7fb5eacSmrgLC_ALL=C
5576b7fb5eacSmrgexport LC_ALL
5577b7fb5eacSmrgLANGUAGE=C
5578b7fb5eacSmrgexport LANGUAGE
55791a30de1fSmrg
55801a30de1fSmrg# Required to use basename.
55811a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
55821a30de1fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
55831a30de1fSmrg  as_expr=expr
55841a30de1fSmrgelse
55851a30de1fSmrg  as_expr=false
55861a30de1fSmrgfi
55871a30de1fSmrg
55881a30de1fSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
55891a30de1fSmrg  as_basename=basename
55901a30de1fSmrgelse
55911a30de1fSmrg  as_basename=false
55921a30de1fSmrgfi
55931a30de1fSmrg
55941a30de1fSmrg
55951a30de1fSmrg# Name of the executable.
55961a30de1fSmrgas_me=`$as_basename -- "$0" ||
55971a30de1fSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
55981a30de1fSmrg	 X"$0" : 'X\(//\)$' \| \
55991a30de1fSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5600b7fb5eacSmrg$as_echo X/"$0" |
56011a30de1fSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
56021a30de1fSmrg	    s//\1/
56031a30de1fSmrg	    q
56041a30de1fSmrg	  }
56051a30de1fSmrg	  /^X\/\(\/\/\)$/{
56061a30de1fSmrg	    s//\1/
56071a30de1fSmrg	    q
56081a30de1fSmrg	  }
56091a30de1fSmrg	  /^X\/\(\/\).*/{
56101a30de1fSmrg	    s//\1/
56111a30de1fSmrg	    q
56121a30de1fSmrg	  }
56131a30de1fSmrg	  s/.*/./; q'`
56141a30de1fSmrg
56151a30de1fSmrg# CDPATH.
56161a30de1fSmrg$as_unset CDPATH
56171a30de1fSmrg
56181a30de1fSmrg
56191a30de1fSmrg
56201a30de1fSmrg  as_lineno_1=$LINENO
56211a30de1fSmrg  as_lineno_2=$LINENO
56221a30de1fSmrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
56231a30de1fSmrg  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56241a30de1fSmrg
56251a30de1fSmrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56261a30de1fSmrg  # uniformly replaced by the line number.  The first 'sed' inserts a
56271a30de1fSmrg  # line-number line after each line using $LINENO; the second 'sed'
56281a30de1fSmrg  # does the real work.  The second script uses 'N' to pair each
56291a30de1fSmrg  # line-number line with the line containing $LINENO, and appends
56301a30de1fSmrg  # trailing '-' during substitution so that $LINENO is not a special
56311a30de1fSmrg  # case at line end.
56321a30de1fSmrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56331a30de1fSmrg  # scripts with optimization help from Paolo Bonzini.  Blame Lee
56341a30de1fSmrg  # E. McMahon (1931-1989) for sed's syntax.  :-)
56351a30de1fSmrg  sed -n '
56361a30de1fSmrg    p
56371a30de1fSmrg    /[$]LINENO/=
56381a30de1fSmrg  ' <$as_myself |
56391a30de1fSmrg    sed '
56401a30de1fSmrg      s/[$]LINENO.*/&-/
56411a30de1fSmrg      t lineno
56421a30de1fSmrg      b
56431a30de1fSmrg      :lineno
56441a30de1fSmrg      N
56451a30de1fSmrg      :loop
56461a30de1fSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56471a30de1fSmrg      t loop
56481a30de1fSmrg      s/-\n.*//
56491a30de1fSmrg    ' >$as_me.lineno &&
56501a30de1fSmrg  chmod +x "$as_me.lineno" ||
5651b7fb5eacSmrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56521a30de1fSmrg   { (exit 1); exit 1; }; }
56531a30de1fSmrg
56541a30de1fSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
56551a30de1fSmrg  # (the dirname of $[0] is not the place where we might find the
56561a30de1fSmrg  # original and so on.  Autoconf is especially sensitive to this).
56571a30de1fSmrg  . "./$as_me.lineno"
56581a30de1fSmrg  # Exit status is that of the last command.
56591a30de1fSmrg  exit
56601a30de1fSmrg}
56611a30de1fSmrg
56621a30de1fSmrg
56631a30de1fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56641a30de1fSmrg  as_dirname=dirname
56651a30de1fSmrgelse
56661a30de1fSmrg  as_dirname=false
56671a30de1fSmrgfi
56681a30de1fSmrg
56691a30de1fSmrgECHO_C= ECHO_N= ECHO_T=
56701a30de1fSmrgcase `echo -n x` in
56711a30de1fSmrg-n*)
56721a30de1fSmrg  case `echo 'x\c'` in
56731a30de1fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
56741a30de1fSmrg  *)   ECHO_C='\c';;
56751a30de1fSmrg  esac;;
56761a30de1fSmrg*)
56771a30de1fSmrg  ECHO_N='-n';;
56781a30de1fSmrgesac
56791a30de1fSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
56801a30de1fSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
56811a30de1fSmrg  as_expr=expr
56821a30de1fSmrgelse
56831a30de1fSmrg  as_expr=false
56841a30de1fSmrgfi
56851a30de1fSmrg
56861a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.file
56871a30de1fSmrgif test -d conf$$.dir; then
56881a30de1fSmrg  rm -f conf$$.dir/conf$$.file
56891a30de1fSmrgelse
56901a30de1fSmrg  rm -f conf$$.dir
5691b7fb5eacSmrg  mkdir conf$$.dir 2>/dev/null
5692b7fb5eacSmrgfi
5693b7fb5eacSmrgif (echo >conf$$.file) 2>/dev/null; then
5694b7fb5eacSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5695b7fb5eacSmrg    as_ln_s='ln -s'
5696b7fb5eacSmrg    # ... but there are two gotchas:
5697b7fb5eacSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5698b7fb5eacSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5699b7fb5eacSmrg    # In both cases, we have to default to `cp -p'.
5700b7fb5eacSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5701b7fb5eacSmrg      as_ln_s='cp -p'
5702b7fb5eacSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
5703b7fb5eacSmrg    as_ln_s=ln
5704b7fb5eacSmrg  else
57051a30de1fSmrg    as_ln_s='cp -p'
5706b7fb5eacSmrg  fi
57071a30de1fSmrgelse
57081a30de1fSmrg  as_ln_s='cp -p'
57091a30de1fSmrgfi
57101a30de1fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
57111a30de1fSmrgrmdir conf$$.dir 2>/dev/null
57121a30de1fSmrg
57131a30de1fSmrgif mkdir -p . 2>/dev/null; then
57141a30de1fSmrg  as_mkdir_p=:
57151a30de1fSmrgelse
57161a30de1fSmrg  test -d ./-p && rmdir ./-p
57171a30de1fSmrg  as_mkdir_p=false
57181a30de1fSmrgfi
57191a30de1fSmrg
57201a30de1fSmrgif test -x / >/dev/null 2>&1; then
57211a30de1fSmrg  as_test_x='test -x'
57221a30de1fSmrgelse
57231a30de1fSmrg  if ls -dL / >/dev/null 2>&1; then
57241a30de1fSmrg    as_ls_L_option=L
57251a30de1fSmrg  else
57261a30de1fSmrg    as_ls_L_option=
57271a30de1fSmrg  fi
57281a30de1fSmrg  as_test_x='
57291a30de1fSmrg    eval sh -c '\''
57301a30de1fSmrg      if test -d "$1"; then
5731b7fb5eacSmrg	test -d "$1/.";
57321a30de1fSmrg      else
57331a30de1fSmrg	case $1 in
5734b7fb5eacSmrg	-*)set "./$1";;
57351a30de1fSmrg	esac;
57361a30de1fSmrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
57371a30de1fSmrg	???[sx]*):;;*)false;;esac;fi
57381a30de1fSmrg    '\'' sh
57391a30de1fSmrg  '
57401a30de1fSmrgfi
57411a30de1fSmrgas_executable_p=$as_test_x
57421a30de1fSmrg
57431a30de1fSmrg# Sed expression to map a string onto a valid CPP name.
57441a30de1fSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
57451a30de1fSmrg
57461a30de1fSmrg# Sed expression to map a string onto a valid variable name.
57471a30de1fSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
57481a30de1fSmrg
57491a30de1fSmrg
57501a30de1fSmrgexec 6>&1
57511a30de1fSmrg
57521a30de1fSmrg# Save the log message, to keep $[0] and so on meaningful, and to
57531a30de1fSmrg# report actual input values of CONFIG_FILES etc. instead of their
57541a30de1fSmrg# values after options handling.
57551a30de1fSmrgac_log="
5756b7fb5eacSmrgThis file was extended by xmodmap $as_me 1.0.4, which was
5757b7fb5eacSmrggenerated by GNU Autoconf 2.63.  Invocation command line was
57581a30de1fSmrg
57591a30de1fSmrg  CONFIG_FILES    = $CONFIG_FILES
57601a30de1fSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
57611a30de1fSmrg  CONFIG_LINKS    = $CONFIG_LINKS
57621a30de1fSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
57631a30de1fSmrg  $ $0 $@
57641a30de1fSmrg
57651a30de1fSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
57661a30de1fSmrg"
57671a30de1fSmrg
57681a30de1fSmrg_ACEOF
57691a30de1fSmrg
5770b7fb5eacSmrgcase $ac_config_files in *"
5771b7fb5eacSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
5772b7fb5eacSmrgesac
5773b7fb5eacSmrg
5774b7fb5eacSmrgcase $ac_config_headers in *"
5775b7fb5eacSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5776b7fb5eacSmrgesac
5777b7fb5eacSmrg
5778b7fb5eacSmrg
5779b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57801a30de1fSmrg# Files that config.status was made for.
57811a30de1fSmrgconfig_files="$ac_config_files"
57821a30de1fSmrgconfig_headers="$ac_config_headers"
57831a30de1fSmrgconfig_commands="$ac_config_commands"
57841a30de1fSmrg
57851a30de1fSmrg_ACEOF
57861a30de1fSmrg
5787b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57881a30de1fSmrgac_cs_usage="\
57891a30de1fSmrg\`$as_me' instantiates files from templates according to the
57901a30de1fSmrgcurrent configuration.
57911a30de1fSmrg
5792b7fb5eacSmrgUsage: $0 [OPTION]... [FILE]...
57931a30de1fSmrg
57941a30de1fSmrg  -h, --help       print this help, then exit
57951a30de1fSmrg  -V, --version    print version number and configuration settings, then exit
5796b7fb5eacSmrg  -q, --quiet, --silent
5797b7fb5eacSmrg                   do not print progress messages
57981a30de1fSmrg  -d, --debug      don't remove temporary files
57991a30de1fSmrg      --recheck    update $as_me by reconfiguring in the same conditions
5800b7fb5eacSmrg      --file=FILE[:TEMPLATE]
5801b7fb5eacSmrg                   instantiate the configuration file FILE
5802b7fb5eacSmrg      --header=FILE[:TEMPLATE]
5803b7fb5eacSmrg                   instantiate the configuration header FILE
58041a30de1fSmrg
58051a30de1fSmrgConfiguration files:
58061a30de1fSmrg$config_files
58071a30de1fSmrg
58081a30de1fSmrgConfiguration headers:
58091a30de1fSmrg$config_headers
58101a30de1fSmrg
58111a30de1fSmrgConfiguration commands:
58121a30de1fSmrg$config_commands
58131a30de1fSmrg
58141a30de1fSmrgReport bugs to <bug-autoconf@gnu.org>."
58151a30de1fSmrg
58161a30de1fSmrg_ACEOF
5817b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
58181a30de1fSmrgac_cs_version="\\
5819b7fb5eacSmrgxmodmap config.status 1.0.4
5820b7fb5eacSmrgconfigured by $0, generated by GNU Autoconf 2.63,
5821b7fb5eacSmrg  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
58221a30de1fSmrg
5823b7fb5eacSmrgCopyright (C) 2008 Free Software Foundation, Inc.
58241a30de1fSmrgThis config.status script is free software; the Free Software Foundation
58251a30de1fSmrggives unlimited permission to copy, distribute and modify it."
58261a30de1fSmrg
58271a30de1fSmrgac_pwd='$ac_pwd'
58281a30de1fSmrgsrcdir='$srcdir'
58291a30de1fSmrgINSTALL='$INSTALL'
58301a30de1fSmrgMKDIR_P='$MKDIR_P'
5831b7fb5eacSmrgAWK='$AWK'
5832b7fb5eacSmrgtest -n "\$AWK" || AWK=awk
58331a30de1fSmrg_ACEOF
58341a30de1fSmrg
5835b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5836b7fb5eacSmrg# The default lists apply if the user does not specify any file.
58371a30de1fSmrgac_need_defaults=:
58381a30de1fSmrgwhile test $# != 0
58391a30de1fSmrgdo
58401a30de1fSmrg  case $1 in
58411a30de1fSmrg  --*=*)
58421a30de1fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
58431a30de1fSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
58441a30de1fSmrg    ac_shift=:
58451a30de1fSmrg    ;;
58461a30de1fSmrg  *)
58471a30de1fSmrg    ac_option=$1
58481a30de1fSmrg    ac_optarg=$2
58491a30de1fSmrg    ac_shift=shift
58501a30de1fSmrg    ;;
58511a30de1fSmrg  esac
58521a30de1fSmrg
58531a30de1fSmrg  case $ac_option in
58541a30de1fSmrg  # Handling of the options.
58551a30de1fSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
58561a30de1fSmrg    ac_cs_recheck=: ;;
58571a30de1fSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5858b7fb5eacSmrg    $as_echo "$ac_cs_version"; exit ;;
58591a30de1fSmrg  --debug | --debu | --deb | --de | --d | -d )
58601a30de1fSmrg    debug=: ;;
58611a30de1fSmrg  --file | --fil | --fi | --f )
58621a30de1fSmrg    $ac_shift
5863b7fb5eacSmrg    case $ac_optarg in
5864b7fb5eacSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5865b7fb5eacSmrg    esac
5866b7fb5eacSmrg    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
58671a30de1fSmrg    ac_need_defaults=false;;
58681a30de1fSmrg  --header | --heade | --head | --hea )
58691a30de1fSmrg    $ac_shift
5870b7fb5eacSmrg    case $ac_optarg in
5871b7fb5eacSmrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5872b7fb5eacSmrg    esac
5873b7fb5eacSmrg    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
58741a30de1fSmrg    ac_need_defaults=false;;
58751a30de1fSmrg  --he | --h)
58761a30de1fSmrg    # Conflict between --help and --header
5877b7fb5eacSmrg    { $as_echo "$as_me: error: ambiguous option: $1
58781a30de1fSmrgTry \`$0 --help' for more information." >&2
58791a30de1fSmrg   { (exit 1); exit 1; }; };;
58801a30de1fSmrg  --help | --hel | -h )
5881b7fb5eacSmrg    $as_echo "$ac_cs_usage"; exit ;;
58821a30de1fSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
58831a30de1fSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
58841a30de1fSmrg    ac_cs_silent=: ;;
58851a30de1fSmrg
58861a30de1fSmrg  # This is an error.
5887b7fb5eacSmrg  -*) { $as_echo "$as_me: error: unrecognized option: $1
58881a30de1fSmrgTry \`$0 --help' for more information." >&2
58891a30de1fSmrg   { (exit 1); exit 1; }; } ;;
58901a30de1fSmrg
58911a30de1fSmrg  *) ac_config_targets="$ac_config_targets $1"
58921a30de1fSmrg     ac_need_defaults=false ;;
58931a30de1fSmrg
58941a30de1fSmrg  esac
58951a30de1fSmrg  shift
58961a30de1fSmrgdone
58971a30de1fSmrg
58981a30de1fSmrgac_configure_extra_args=
58991a30de1fSmrg
59001a30de1fSmrgif $ac_cs_silent; then
59011a30de1fSmrg  exec 6>/dev/null
59021a30de1fSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
59031a30de1fSmrgfi
59041a30de1fSmrg
59051a30de1fSmrg_ACEOF
5906b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59071a30de1fSmrgif \$ac_cs_recheck; then
5908b7fb5eacSmrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5909b7fb5eacSmrg  shift
5910b7fb5eacSmrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5911b7fb5eacSmrg  CONFIG_SHELL='$SHELL'
59121a30de1fSmrg  export CONFIG_SHELL
5913b7fb5eacSmrg  exec "\$@"
59141a30de1fSmrgfi
59151a30de1fSmrg
59161a30de1fSmrg_ACEOF
5917b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59181a30de1fSmrgexec 5>>config.log
59191a30de1fSmrg{
59201a30de1fSmrg  echo
59211a30de1fSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
59221a30de1fSmrg## Running $as_me. ##
59231a30de1fSmrg_ASBOX
5924b7fb5eacSmrg  $as_echo "$ac_log"
59251a30de1fSmrg} >&5
59261a30de1fSmrg
59271a30de1fSmrg_ACEOF
5928b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
59291a30de1fSmrg#
59301a30de1fSmrg# INIT-COMMANDS
59311a30de1fSmrg#
59321a30de1fSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
59331a30de1fSmrg
59341a30de1fSmrg_ACEOF
59351a30de1fSmrg
5936b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
59371a30de1fSmrg
59381a30de1fSmrg# Handling of arguments.
59391a30de1fSmrgfor ac_config_target in $ac_config_targets
59401a30de1fSmrgdo
59411a30de1fSmrg  case $ac_config_target in
59421a30de1fSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
59431a30de1fSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
59441a30de1fSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
59451a30de1fSmrg
5946b7fb5eacSmrg  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5947b7fb5eacSmrg$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
59481a30de1fSmrg   { (exit 1); exit 1; }; };;
59491a30de1fSmrg  esac
59501a30de1fSmrgdone
59511a30de1fSmrg
59521a30de1fSmrg
59531a30de1fSmrg# If the user did not use the arguments to specify the items to instantiate,
59541a30de1fSmrg# then the envvar interface is used.  Set only those that are not.
59551a30de1fSmrg# We use the long form for the default assignment because of an extremely
59561a30de1fSmrg# bizarre bug on SunOS 4.1.3.
59571a30de1fSmrgif $ac_need_defaults; then
59581a30de1fSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
59591a30de1fSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
59601a30de1fSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
59611a30de1fSmrgfi
59621a30de1fSmrg
59631a30de1fSmrg# Have a temporary directory for convenience.  Make it in the build tree
59641a30de1fSmrg# simply because there is no reason against having it here, and in addition,
59651a30de1fSmrg# creating and moving files from /tmp can sometimes cause problems.
59661a30de1fSmrg# Hook for its removal unless debugging.
59671a30de1fSmrg# Note that there is a small window in which the directory will not be cleaned:
59681a30de1fSmrg# after its creation but before its name has been assigned to `$tmp'.
59691a30de1fSmrg$debug ||
59701a30de1fSmrg{
59711a30de1fSmrg  tmp=
59721a30de1fSmrg  trap 'exit_status=$?
59731a30de1fSmrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
59741a30de1fSmrg' 0
59751a30de1fSmrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
59761a30de1fSmrg}
59771a30de1fSmrg# Create a (secure) tmp directory for tmp files.
59781a30de1fSmrg
59791a30de1fSmrg{
59801a30de1fSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
59811a30de1fSmrg  test -n "$tmp" && test -d "$tmp"
59821a30de1fSmrg}  ||
59831a30de1fSmrg{
59841a30de1fSmrg  tmp=./conf$$-$RANDOM
59851a30de1fSmrg  (umask 077 && mkdir "$tmp")
59861a30de1fSmrg} ||
59871a30de1fSmrg{
5988b7fb5eacSmrg   $as_echo "$as_me: cannot create a temporary directory in ." >&2
59891a30de1fSmrg   { (exit 1); exit 1; }
59901a30de1fSmrg}
59911a30de1fSmrg
5992b7fb5eacSmrg# Set up the scripts for CONFIG_FILES section.
5993b7fb5eacSmrg# No need to generate them if there are no CONFIG_FILES.
5994b7fb5eacSmrg# This happens for instance with `./config.status config.h'.
59951a30de1fSmrgif test -n "$CONFIG_FILES"; then
59961a30de1fSmrg
59971a30de1fSmrg
5998b7fb5eacSmrgac_cr='
5999b7fb5eacSmrg'
6000b7fb5eacSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6001b7fb5eacSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6002b7fb5eacSmrg  ac_cs_awk_cr='\\r'
6003b7fb5eacSmrgelse
60041a30de1fSmrg  ac_cs_awk_cr=$ac_cr
60051a30de1fSmrgfi
6006b7fb5eacSmrg
60071a30de1fSmrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
60081a30de1fSmrg_ACEOF
60091a30de1fSmrg
6010b7fb5eacSmrg
6011b7fb5eacSmrg{
6012b7fb5eacSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
6013b7fb5eacSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6014b7fb5eacSmrg  echo "_ACEOF"
6015b7fb5eacSmrg} >conf$$subs.sh ||
6016b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6017b7fb5eacSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6018b7fb5eacSmrg   { (exit 1); exit 1; }; }
60191a30de1fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
60201a30de1fSmrgac_delim='%!_!# '
6021b7fb5eacSmrgfor ac_last_try in false false false false false :; do
6022b7fb5eacSmrg  . ./conf$$subs.sh ||
6023b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6024b7fb5eacSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
60251a30de1fSmrg   { (exit 1); exit 1; }; }
6026b7fb5eacSmrg
6027b7fb5eacSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
60281a30de1fSmrg  if test $ac_delim_n = $ac_delim_num; then
60291a30de1fSmrg    break
6030b7fb5eacSmrg  elif $ac_last_try; then
6031b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
60321a30de1fSmrg$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
60331a30de1fSmrg   { (exit 1); exit 1; }; }
60341a30de1fSmrg  else
60351a30de1fSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
60361a30de1fSmrg  fi
6037b7fb5eacSmrgdone
60381a30de1fSmrgrm -f conf$$subs.sh
6039b7fb5eacSmrg
6040b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6041b7fb5eacSmrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6042b7fb5eacSmrg_ACEOF
6043b7fb5eacSmrgsed -n '
6044b7fb5eacSmrgh
6045b7fb5eacSmrgs/^/S["/; s/!.*/"]=/
6046b7fb5eacSmrgp
6047b7fb5eacSmrgg
6048b7fb5eacSmrgs/^[^!]*!//
6049b7fb5eacSmrg:repl
6050b7fb5eacSmrgt repl
6051b7fb5eacSmrgs/'"$ac_delim"'$//
6052b7fb5eacSmrgt delim
6053b7fb5eacSmrg:nl
6054b7fb5eacSmrgh
6055b7fb5eacSmrgs/\(.\{148\}\).*/\1/
6056b7fb5eacSmrgt more1
6057b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6058b7fb5eacSmrgp
6059b7fb5eacSmrgn
6060b7fb5eacSmrgb repl
6061b7fb5eacSmrg:more1
6062b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6063b7fb5eacSmrgp
6064b7fb5eacSmrgg
6065b7fb5eacSmrgs/.\{148\}//
6066b7fb5eacSmrgt nl
6067b7fb5eacSmrg:delim
6068b7fb5eacSmrgh
6069b7fb5eacSmrgs/\(.\{148\}\).*/\1/
6070b7fb5eacSmrgt more2
6071b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
6072b7fb5eacSmrgp
6073b7fb5eacSmrgb
6074b7fb5eacSmrg:more2
6075b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
6076b7fb5eacSmrgp
6077b7fb5eacSmrgg
6078b7fb5eacSmrgs/.\{148\}//
6079b7fb5eacSmrgt delim
6080b7fb5eacSmrg' <conf$$subs.awk | sed '
6081b7fb5eacSmrg/^[^""]/{
6082b7fb5eacSmrg  N
6083b7fb5eacSmrg  s/\n//
6084b7fb5eacSmrg}
6085b7fb5eacSmrg' >>$CONFIG_STATUS || ac_write_fail=1
6086b7fb5eacSmrgrm -f conf$$subs.awk
6087b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6088b7fb5eacSmrg_ACAWK
6089b7fb5eacSmrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
6090b7fb5eacSmrg  for (key in S) S_is_set[key] = 1
6091b7fb5eacSmrg  FS = ""
6092b7fb5eacSmrg
6093b7fb5eacSmrg}
6094b7fb5eacSmrg{
6095b7fb5eacSmrg  line = $ 0
6096b7fb5eacSmrg  nfields = split(line, field, "@")
6097b7fb5eacSmrg  substed = 0
6098b7fb5eacSmrg  len = length(field[1])
6099b7fb5eacSmrg  for (i = 2; i < nfields; i++) {
6100b7fb5eacSmrg    key = field[i]
6101b7fb5eacSmrg    keylen = length(key)
6102b7fb5eacSmrg    if (S_is_set[key]) {
6103b7fb5eacSmrg      value = S[key]
6104b7fb5eacSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6105b7fb5eacSmrg      len += length(value) + length(field[++i])
6106b7fb5eacSmrg      substed = 1
6107b7fb5eacSmrg    } else
6108b7fb5eacSmrg      len += 1 + keylen
6109b7fb5eacSmrg  }
6110b7fb5eacSmrg
6111b7fb5eacSmrg  print line
61121a30de1fSmrg}
6113b7fb5eacSmrg
61141a30de1fSmrg_ACAWK
6115b7fb5eacSmrg_ACEOF
6116b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6117b7fb5eacSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6118b7fb5eacSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6119b7fb5eacSmrgelse
6120b7fb5eacSmrg  cat
6121b7fb5eacSmrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6122b7fb5eacSmrg  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6123b7fb5eacSmrg$as_echo "$as_me: error: could not setup config files machinery" >&2;}
61241a30de1fSmrg   { (exit 1); exit 1; }; }
61251a30de1fSmrg_ACEOF
61261a30de1fSmrg
61271a30de1fSmrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
61281a30de1fSmrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
61291a30de1fSmrg# trailing colons and then remove the whole line if VPATH becomes empty
61301a30de1fSmrg# (actually we leave an empty line to preserve line numbers).
61311a30de1fSmrgif test "x$srcdir" = x.; then
61321a30de1fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
61331a30de1fSmrgs/:*\$(srcdir):*/:/
61341a30de1fSmrgs/:*\${srcdir}:*/:/
61351a30de1fSmrgs/:*@srcdir@:*/:/
61361a30de1fSmrgs/^\([^=]*=[	 ]*\):*/\1/
61371a30de1fSmrgs/:*$//
61381a30de1fSmrgs/^[^=]*=[	 ]*$//
61391a30de1fSmrg}'
61401a30de1fSmrgfi
6141b7fb5eacSmrg
61421a30de1fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
61431a30de1fSmrgfi # test -n "$CONFIG_FILES"
6144b7fb5eacSmrg
6145b7fb5eacSmrg# Set up the scripts for CONFIG_HEADERS section.
6146b7fb5eacSmrg# No need to generate them if there are no CONFIG_HEADERS.
6147b7fb5eacSmrg# This happens for instance with `./config.status Makefile'.
6148b7fb5eacSmrgif test -n "$CONFIG_HEADERS"; then
6149b7fb5eacSmrgcat >"$tmp/defines.awk" <<\_ACAWK ||
6150b7fb5eacSmrgBEGIN {
6151b7fb5eacSmrg_ACEOF
6152b7fb5eacSmrg
6153b7fb5eacSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
6154b7fb5eacSmrg# here-document in config.status, that substitutes the proper values into
6155b7fb5eacSmrg# config.h.in to produce config.h.
6156b7fb5eacSmrg
6157b7fb5eacSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
6158b7fb5eacSmrg# handling of long lines.
6159b7fb5eacSmrgac_delim='%!_!# '
6160b7fb5eacSmrgfor ac_last_try in false false :; do
6161b7fb5eacSmrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6162b7fb5eacSmrg  if test -z "$ac_t"; then
6163b7fb5eacSmrg    break
6164b7fb5eacSmrg  elif $ac_last_try; then
6165b7fb5eacSmrg    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6166b7fb5eacSmrg$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6167b7fb5eacSmrg   { (exit 1); exit 1; }; }
6168b7fb5eacSmrg  else
6169b7fb5eacSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6170b7fb5eacSmrg  fi
6171b7fb5eacSmrgdone
6172b7fb5eacSmrg
6173b7fb5eacSmrg# For the awk script, D is an array of macro values keyed by name,
6174b7fb5eacSmrg# likewise P contains macro parameters if any.  Preserve backslash
6175b7fb5eacSmrg# newline sequences.
6176b7fb5eacSmrg
6177b7fb5eacSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6178b7fb5eacSmrgsed -n '
6179b7fb5eacSmrgs/.\{148\}/&'"$ac_delim"'/g
6180b7fb5eacSmrgt rset
6181b7fb5eacSmrg:rset
6182b7fb5eacSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6183b7fb5eacSmrgt def
6184b7fb5eacSmrgd
6185b7fb5eacSmrg:def
6186b7fb5eacSmrgs/\\$//
6187b7fb5eacSmrgt bsnl
6188b7fb5eacSmrgs/["\\]/\\&/g
6189b7fb5eacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6190b7fb5eacSmrgD["\1"]=" \3"/p
6191b7fb5eacSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6192b7fb5eacSmrgd
6193b7fb5eacSmrg:bsnl
6194b7fb5eacSmrgs/["\\]/\\&/g
6195b7fb5eacSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6196b7fb5eacSmrgD["\1"]=" \3\\\\\\n"\\/p
6197b7fb5eacSmrgt cont
6198b7fb5eacSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6199b7fb5eacSmrgt cont
6200b7fb5eacSmrgd
6201b7fb5eacSmrg:cont
6202b7fb5eacSmrgn
6203b7fb5eacSmrgs/.\{148\}/&'"$ac_delim"'/g
6204b7fb5eacSmrgt clear
6205b7fb5eacSmrg:clear
6206b7fb5eacSmrgs/\\$//
6207b7fb5eacSmrgt bsnlc
6208b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
6209b7fb5eacSmrgd
6210b7fb5eacSmrg:bsnlc
6211b7fb5eacSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6212b7fb5eacSmrgb cont
6213b7fb5eacSmrg' <confdefs.h | sed '
6214b7fb5eacSmrgs/'"$ac_delim"'/"\\\
6215b7fb5eacSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
6216b7fb5eacSmrg
6217b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6218b7fb5eacSmrg  for (key in D) D_is_set[key] = 1
6219b7fb5eacSmrg  FS = ""
6220b7fb5eacSmrg}
6221b7fb5eacSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6222b7fb5eacSmrg  line = \$ 0
6223b7fb5eacSmrg  split(line, arg, " ")
6224b7fb5eacSmrg  if (arg[1] == "#") {
6225b7fb5eacSmrg    defundef = arg[2]
6226b7fb5eacSmrg    mac1 = arg[3]
6227b7fb5eacSmrg  } else {
6228b7fb5eacSmrg    defundef = substr(arg[1], 2)
6229b7fb5eacSmrg    mac1 = arg[2]
6230b7fb5eacSmrg  }
6231b7fb5eacSmrg  split(mac1, mac2, "(") #)
6232b7fb5eacSmrg  macro = mac2[1]
6233b7fb5eacSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
6234b7fb5eacSmrg  if (D_is_set[macro]) {
6235b7fb5eacSmrg    # Preserve the white space surrounding the "#".
6236b7fb5eacSmrg    print prefix "define", macro P[macro] D[macro]
6237b7fb5eacSmrg    next
6238b7fb5eacSmrg  } else {
6239b7fb5eacSmrg    # Replace #undef with comments.  This is necessary, for example,
6240b7fb5eacSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
6241b7fb5eacSmrg    # on some systems where configure will not decide to define it.
6242b7fb5eacSmrg    if (defundef == "undef") {
6243b7fb5eacSmrg      print "/*", prefix defundef, macro, "*/"
6244b7fb5eacSmrg      next
6245b7fb5eacSmrg    }
6246b7fb5eacSmrg  }
6247b7fb5eacSmrg}
6248b7fb5eacSmrg{ print }
6249b7fb5eacSmrg_ACAWK
6250b7fb5eacSmrg_ACEOF
6251b7fb5eacSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6252b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6253b7fb5eacSmrg$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6254b7fb5eacSmrg   { (exit 1); exit 1; }; }
6255b7fb5eacSmrgfi # test -n "$CONFIG_HEADERS"
62561a30de1fSmrg
6257b7fb5eacSmrg
6258b7fb5eacSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6259b7fb5eacSmrgshift
62601a30de1fSmrgfor ac_tag
62611a30de1fSmrgdo
62621a30de1fSmrg  case $ac_tag in
62631a30de1fSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
62641a30de1fSmrg  esac
62651a30de1fSmrg  case $ac_mode$ac_tag in
6266b7fb5eacSmrg  :[FHL]*:*);;
6267b7fb5eacSmrg  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
62681a30de1fSmrg$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
62691a30de1fSmrg   { (exit 1); exit 1; }; };;
62701a30de1fSmrg  :[FH]-) ac_tag=-:-;;
62711a30de1fSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
62721a30de1fSmrg  esac
62731a30de1fSmrg  ac_save_IFS=$IFS
62741a30de1fSmrg  IFS=:
62751a30de1fSmrg  set x $ac_tag
62761a30de1fSmrg  IFS=$ac_save_IFS
62771a30de1fSmrg  shift
62781a30de1fSmrg  ac_file=$1
62791a30de1fSmrg  shift
62801a30de1fSmrg
62811a30de1fSmrg  case $ac_mode in
62821a30de1fSmrg  :L) ac_source=$1;;
62831a30de1fSmrg  :[FH])
62841a30de1fSmrg    ac_file_inputs=
62851a30de1fSmrg    for ac_f
62861a30de1fSmrg    do
62871a30de1fSmrg      case $ac_f in
62881a30de1fSmrg      -) ac_f="$tmp/stdin";;
62891a30de1fSmrg      *) # Look for the file first in the build tree, then in the source tree
62901a30de1fSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
62911a30de1fSmrg	 # because $ac_f cannot contain `:'.
62921a30de1fSmrg	 test -f "$ac_f" ||
62931a30de1fSmrg	   case $ac_f in
62941a30de1fSmrg	   [\\/$]*) false;;
62951a30de1fSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6296b7fb5eacSmrg	   esac ||
6297b7fb5eacSmrg	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
62981a30de1fSmrg$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
62991a30de1fSmrg   { (exit 1); exit 1; }; };;
6300b7fb5eacSmrg      esac
6301b7fb5eacSmrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
63021a30de1fSmrg      ac_file_inputs="$ac_file_inputs '$ac_f'"
63031a30de1fSmrg    done
63041a30de1fSmrg
63051a30de1fSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
63061a30de1fSmrg    # use $as_me), people would be surprised to read:
6307b7fb5eacSmrg    #    /* config.h.  Generated by config.status.  */
6308b7fb5eacSmrg    configure_input='Generated from '`
6309b7fb5eacSmrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
63101a30de1fSmrg	`' by configure.'
63111a30de1fSmrg    if test x"$ac_file" != x-; then
6312b7fb5eacSmrg      configure_input="$ac_file.  $configure_input"
6313b7fb5eacSmrg      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
63141a30de1fSmrg$as_echo "$as_me: creating $ac_file" >&6;}
6315b7fb5eacSmrg    fi
6316b7fb5eacSmrg    # Neutralize special characters interpreted by sed in replacement strings.
6317b7fb5eacSmrg    case $configure_input in #(
6318b7fb5eacSmrg    *\&* | *\|* | *\\* )
6319b7fb5eacSmrg       ac_sed_conf_input=`$as_echo "$configure_input" |
6320b7fb5eacSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6321b7fb5eacSmrg    *) ac_sed_conf_input=$configure_input;;
63221a30de1fSmrg    esac
63231a30de1fSmrg
6324b7fb5eacSmrg    case $ac_tag in
6325b7fb5eacSmrg    *:-:* | *:-) cat >"$tmp/stdin" \
6326b7fb5eacSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6327b7fb5eacSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
63281a30de1fSmrg   { (exit 1); exit 1; }; } ;;
63291a30de1fSmrg    esac
63301a30de1fSmrg    ;;
63311a30de1fSmrg  esac
63321a30de1fSmrg
63331a30de1fSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
63341a30de1fSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63351a30de1fSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
63361a30de1fSmrg	 X"$ac_file" : 'X\(//\)$' \| \
6337b7fb5eacSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
63381a30de1fSmrg$as_echo X"$ac_file" |
63391a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63401a30de1fSmrg	    s//\1/
63411a30de1fSmrg	    q
63421a30de1fSmrg	  }
63431a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
63441a30de1fSmrg	    s//\1/
63451a30de1fSmrg	    q
63461a30de1fSmrg	  }
63471a30de1fSmrg	  /^X\(\/\/\)$/{
63481a30de1fSmrg	    s//\1/
63491a30de1fSmrg	    q
63501a30de1fSmrg	  }
63511a30de1fSmrg	  /^X\(\/\).*/{
63521a30de1fSmrg	    s//\1/
63531a30de1fSmrg	    q
63541a30de1fSmrg	  }
63551a30de1fSmrg	  s/.*/./; q'`
63561a30de1fSmrg  { as_dir="$ac_dir"
63571a30de1fSmrg  case $as_dir in #(
63581a30de1fSmrg  -*) as_dir=./$as_dir;;
63591a30de1fSmrg  esac
63601a30de1fSmrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
63611a30de1fSmrg    as_dirs=
63621a30de1fSmrg    while :; do
6363b7fb5eacSmrg      case $as_dir in #(
63641a30de1fSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
63651a30de1fSmrg      *) as_qdir=$as_dir;;
63661a30de1fSmrg      esac
63671a30de1fSmrg      as_dirs="'$as_qdir' $as_dirs"
63681a30de1fSmrg      as_dir=`$as_dirname -- "$as_dir" ||
63691a30de1fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
63701a30de1fSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
63711a30de1fSmrg	 X"$as_dir" : 'X\(//\)$' \| \
6372b7fb5eacSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
63731a30de1fSmrg$as_echo X"$as_dir" |
63741a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
63751a30de1fSmrg	    s//\1/
63761a30de1fSmrg	    q
63771a30de1fSmrg	  }
63781a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
63791a30de1fSmrg	    s//\1/
63801a30de1fSmrg	    q
63811a30de1fSmrg	  }
63821a30de1fSmrg	  /^X\(\/\/\)$/{
63831a30de1fSmrg	    s//\1/
63841a30de1fSmrg	    q
63851a30de1fSmrg	  }
63861a30de1fSmrg	  /^X\(\/\).*/{
63871a30de1fSmrg	    s//\1/
63881a30de1fSmrg	    q
63891a30de1fSmrg	  }
63901a30de1fSmrg	  s/.*/./; q'`
63911a30de1fSmrg      test -d "$as_dir" && break
63921a30de1fSmrg    done
6393b7fb5eacSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6394b7fb5eacSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
63951a30de1fSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
63961a30de1fSmrg   { (exit 1); exit 1; }; }; }
63971a30de1fSmrg  ac_builddir=.
63981a30de1fSmrg
63991a30de1fSmrgcase "$ac_dir" in
64001a30de1fSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6401b7fb5eacSmrg*)
64021a30de1fSmrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6403b7fb5eacSmrg  # A ".." for each directory in $ac_dir_suffix.
64041a30de1fSmrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
64051a30de1fSmrg  case $ac_top_builddir_sub in
64061a30de1fSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
64071a30de1fSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
64081a30de1fSmrg  esac ;;
64091a30de1fSmrgesac
64101a30de1fSmrgac_abs_top_builddir=$ac_pwd
64111a30de1fSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
64121a30de1fSmrg# for backward compatibility:
64131a30de1fSmrgac_top_builddir=$ac_top_build_prefix
64141a30de1fSmrg
64151a30de1fSmrgcase $srcdir in
64161a30de1fSmrg  .)  # We are building in place.
64171a30de1fSmrg    ac_srcdir=.
64181a30de1fSmrg    ac_top_srcdir=$ac_top_builddir_sub
64191a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd ;;
64201a30de1fSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
64211a30de1fSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
64221a30de1fSmrg    ac_top_srcdir=$srcdir
64231a30de1fSmrg    ac_abs_top_srcdir=$srcdir ;;
64241a30de1fSmrg  *) # Relative name.
64251a30de1fSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
64261a30de1fSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
64271a30de1fSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
64281a30de1fSmrgesac
64291a30de1fSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
64301a30de1fSmrg
64311a30de1fSmrg
64321a30de1fSmrg  case $ac_mode in
64331a30de1fSmrg  :F)
64341a30de1fSmrg  #
64351a30de1fSmrg  # CONFIG_FILE
64361a30de1fSmrg  #
64371a30de1fSmrg
64381a30de1fSmrg  case $INSTALL in
64391a30de1fSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64401a30de1fSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
64411a30de1fSmrg  esac
64421a30de1fSmrg  ac_MKDIR_P=$MKDIR_P
64431a30de1fSmrg  case $MKDIR_P in
64441a30de1fSmrg  [\\/$]* | ?:[\\/]* ) ;;
64451a30de1fSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
64461a30de1fSmrg  esac
64471a30de1fSmrg_ACEOF
6448b7fb5eacSmrg
64491a30de1fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64501a30de1fSmrg# If the template does not know about datarootdir, expand it.
64511a30de1fSmrg# FIXME: This hack should be removed a few years after 2.60.
64521a30de1fSmrgac_datarootdir_hack=; ac_datarootdir_seen=
6453b7fb5eacSmrg
6454b7fb5eacSmrgac_sed_dataroot='
64551a30de1fSmrg/datarootdir/ {
64561a30de1fSmrg  p
64571a30de1fSmrg  q
64581a30de1fSmrg}
64591a30de1fSmrg/@datadir@/p
64601a30de1fSmrg/@docdir@/p
64611a30de1fSmrg/@infodir@/p
64621a30de1fSmrg/@localedir@/p
6463b7fb5eacSmrg/@mandir@/p
6464b7fb5eacSmrg'
64651a30de1fSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
64661a30de1fSmrg*datarootdir*) ac_datarootdir_seen=yes;;
6467b7fb5eacSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6468b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
64691a30de1fSmrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6470b7fb5eacSmrg_ACEOF
64711a30de1fSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
64721a30de1fSmrg  ac_datarootdir_hack='
64731a30de1fSmrg  s&@datadir@&$datadir&g
64741a30de1fSmrg  s&@docdir@&$docdir&g
64751a30de1fSmrg  s&@infodir@&$infodir&g
64761a30de1fSmrg  s&@localedir@&$localedir&g
64771a30de1fSmrg  s&@mandir@&$mandir&g
64781a30de1fSmrg    s&\\\${datarootdir}&$datarootdir&g' ;;
64791a30de1fSmrgesac
64801a30de1fSmrg_ACEOF
64811a30de1fSmrg
64821a30de1fSmrg# Neutralize VPATH when `$srcdir' = `.'.
64831a30de1fSmrg# Shell code in configure.ac might set extrasub.
6484b7fb5eacSmrg# FIXME: do we really want to maintain this feature?
6485b7fb5eacSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
64861a30de1fSmrgac_sed_extra="$ac_vpsub
64871a30de1fSmrg$extrasub
6488b7fb5eacSmrg_ACEOF
64891a30de1fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64901a30de1fSmrg:t
6491b7fb5eacSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64921a30de1fSmrgs|@configure_input@|$ac_sed_conf_input|;t t
6493b7fb5eacSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
64941a30de1fSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
64951a30de1fSmrgs&@srcdir@&$ac_srcdir&;t t
64961a30de1fSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
64971a30de1fSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
64981a30de1fSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
64991a30de1fSmrgs&@builddir@&$ac_builddir&;t t
65001a30de1fSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
65011a30de1fSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
65021a30de1fSmrgs&@INSTALL@&$ac_INSTALL&;t t
65031a30de1fSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
6504b7fb5eacSmrg$ac_datarootdir_hack
6505b7fb5eacSmrg"
6506b7fb5eacSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6507b7fb5eacSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6508b7fb5eacSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
65091a30de1fSmrg   { (exit 1); exit 1; }; }
65101a30de1fSmrg
65111a30de1fSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
65121a30de1fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6513b7fb5eacSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
65141a30de1fSmrg  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6515b7fb5eacSmrgwhich seems to be undefined.  Please make sure it is defined." >&5
65161a30de1fSmrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
65171a30de1fSmrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
65181a30de1fSmrg
65191a30de1fSmrg  rm -f "$tmp/stdin"
6520b7fb5eacSmrg  case $ac_file in
6521b7fb5eacSmrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
6522b7fb5eacSmrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6523b7fb5eacSmrg  esac \
6524b7fb5eacSmrg  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6525b7fb5eacSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
65261a30de1fSmrg   { (exit 1); exit 1; }; }
65271a30de1fSmrg ;;
65281a30de1fSmrg  :H)
65291a30de1fSmrg  #
65301a30de1fSmrg  # CONFIG_HEADER
65311a30de1fSmrg  #
6532b7fb5eacSmrg  if test x"$ac_file" != x-; then
6533b7fb5eacSmrg    {
6534b7fb5eacSmrg      $as_echo "/* $configure_input  */" \
6535b7fb5eacSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6536b7fb5eacSmrg    } >"$tmp/config.h" \
6537b7fb5eacSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6538b7fb5eacSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
6539b7fb5eacSmrg   { (exit 1); exit 1; }; }
6540b7fb5eacSmrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6541b7fb5eacSmrg      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
65421a30de1fSmrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6543b7fb5eacSmrg    else
6544b7fb5eacSmrg      rm -f "$ac_file"
6545b7fb5eacSmrg      mv "$tmp/config.h" "$ac_file" \
6546b7fb5eacSmrg	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6547b7fb5eacSmrg$as_echo "$as_me: error: could not create $ac_file" >&2;}
65481a30de1fSmrg   { (exit 1); exit 1; }; }
65491a30de1fSmrg    fi
6550b7fb5eacSmrg  else
6551b7fb5eacSmrg    $as_echo "/* $configure_input  */" \
6552b7fb5eacSmrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6553b7fb5eacSmrg      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6554b7fb5eacSmrg$as_echo "$as_me: error: could not create -" >&2;}
65551a30de1fSmrg   { (exit 1); exit 1; }; }
6556b7fb5eacSmrg  fi
6557b7fb5eacSmrg# Compute "$ac_file"'s index in $config_headers.
65581a30de1fSmrg_am_arg="$ac_file"
65591a30de1fSmrg_am_stamp_count=1
65601a30de1fSmrgfor _am_header in $config_headers :; do
6561b7fb5eacSmrg  case $_am_header in
65621a30de1fSmrg    $_am_arg | $_am_arg:* )
65631a30de1fSmrg      break ;;
65641a30de1fSmrg    * )
65651a30de1fSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
65661a30de1fSmrg  esac
6567b7fb5eacSmrgdone
6568b7fb5eacSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6569b7fb5eacSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6570b7fb5eacSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6571b7fb5eacSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
6572b7fb5eacSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
65731a30de1fSmrg$as_echo X"$_am_arg" |
65741a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65751a30de1fSmrg	    s//\1/
65761a30de1fSmrg	    q
65771a30de1fSmrg	  }
65781a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
65791a30de1fSmrg	    s//\1/
65801a30de1fSmrg	    q
65811a30de1fSmrg	  }
65821a30de1fSmrg	  /^X\(\/\/\)$/{
65831a30de1fSmrg	    s//\1/
65841a30de1fSmrg	    q
65851a30de1fSmrg	  }
65861a30de1fSmrg	  /^X\(\/\).*/{
65871a30de1fSmrg	    s//\1/
65881a30de1fSmrg	    q
65891a30de1fSmrg	  }
65901a30de1fSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
65911a30de1fSmrg ;;
6592b7fb5eacSmrg
6593b7fb5eacSmrg  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
65941a30de1fSmrg$as_echo "$as_me: executing $ac_file commands" >&6;}
65951a30de1fSmrg ;;
65961a30de1fSmrg  esac
65971a30de1fSmrg
65981a30de1fSmrg
6599b7fb5eacSmrg  case $ac_file$ac_mode in
6600b7fb5eacSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6601b7fb5eacSmrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6602b7fb5eacSmrg  # are listed without --file.  Let's play safe and only enable the eval
6603b7fb5eacSmrg  # if we detect the quoting.
6604b7fb5eacSmrg  case $CONFIG_FILES in
6605b7fb5eacSmrg  *\'*) eval set x "$CONFIG_FILES" ;;
6606b7fb5eacSmrg  *)   set x $CONFIG_FILES ;;
6607b7fb5eacSmrg  esac
6608b7fb5eacSmrg  shift
6609b7fb5eacSmrg  for mf
6610b7fb5eacSmrg  do
6611b7fb5eacSmrg    # Strip MF so we end up with the name of the file.
6612b7fb5eacSmrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
6613b7fb5eacSmrg    # Check whether this is an Automake generated Makefile or not.
6614b7fb5eacSmrg    # We used to match only the files named `Makefile.in', but
6615b7fb5eacSmrg    # some people rename them; so instead we look at the file content.
6616b7fb5eacSmrg    # Grep'ing the first line is not enough: some people post-process
6617b7fb5eacSmrg    # each Makefile.in and add a new line on top of each file to say so.
6618b7fb5eacSmrg    # Grep'ing the whole file is not good either: AIX grep has a line
6619b7fb5eacSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
6620b7fb5eacSmrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
66211a30de1fSmrg      dirpart=`$as_dirname -- "$mf" ||
66221a30de1fSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
66231a30de1fSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
66241a30de1fSmrg	 X"$mf" : 'X\(//\)$' \| \
6625b7fb5eacSmrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
66261a30de1fSmrg$as_echo X"$mf" |
66271a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
66281a30de1fSmrg	    s//\1/
66291a30de1fSmrg	    q
66301a30de1fSmrg	  }
66311a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
66321a30de1fSmrg	    s//\1/
66331a30de1fSmrg	    q
66341a30de1fSmrg	  }
66351a30de1fSmrg	  /^X\(\/\/\)$/{
66361a30de1fSmrg	    s//\1/
66371a30de1fSmrg	    q
66381a30de1fSmrg	  }
66391a30de1fSmrg	  /^X\(\/\).*/{
66401a30de1fSmrg	    s//\1/
66411a30de1fSmrg	    q
66421a30de1fSmrg	  }
6643b7fb5eacSmrg	  s/.*/./; q'`
6644b7fb5eacSmrg    else
6645b7fb5eacSmrg      continue
6646b7fb5eacSmrg    fi
6647b7fb5eacSmrg    # Extract the definition of DEPDIR, am__include, and am__quote
6648b7fb5eacSmrg    # from the Makefile without running `make'.
6649b7fb5eacSmrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6650b7fb5eacSmrg    test -z "$DEPDIR" && continue
6651b7fb5eacSmrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6652b7fb5eacSmrg    test -z "am__include" && continue
6653b7fb5eacSmrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6654b7fb5eacSmrg    # When using ansi2knr, U may be empty or an underscore; expand it
6655b7fb5eacSmrg    U=`sed -n 's/^U = //p' < "$mf"`
6656b7fb5eacSmrg    # Find all dependency output files, they are included files with
6657b7fb5eacSmrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6658b7fb5eacSmrg    # simplest approach to changing $(DEPDIR) to its actual value in the
6659b7fb5eacSmrg    # expansion.
6660b7fb5eacSmrg    for file in `sed -n "
6661b7fb5eacSmrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6662b7fb5eacSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6663b7fb5eacSmrg      # Make sure the directory exists.
6664b7fb5eacSmrg      test -f "$dirpart/$file" && continue
66651a30de1fSmrg      fdir=`$as_dirname -- "$file" ||
66661a30de1fSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
66671a30de1fSmrg	 X"$file" : 'X\(//\)[^/]' \| \
66681a30de1fSmrg	 X"$file" : 'X\(//\)$' \| \
6669b7fb5eacSmrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
66701a30de1fSmrg$as_echo X"$file" |
66711a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
66721a30de1fSmrg	    s//\1/
66731a30de1fSmrg	    q
66741a30de1fSmrg	  }
66751a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
66761a30de1fSmrg	    s//\1/
66771a30de1fSmrg	    q
66781a30de1fSmrg	  }
66791a30de1fSmrg	  /^X\(\/\/\)$/{
66801a30de1fSmrg	    s//\1/
66811a30de1fSmrg	    q
66821a30de1fSmrg	  }
66831a30de1fSmrg	  /^X\(\/\).*/{
66841a30de1fSmrg	    s//\1/
66851a30de1fSmrg	    q
66861a30de1fSmrg	  }
6687b7fb5eacSmrg	  s/.*/./; q'`
66881a30de1fSmrg      { as_dir=$dirpart/$fdir
66891a30de1fSmrg  case $as_dir in #(
66901a30de1fSmrg  -*) as_dir=./$as_dir;;
66911a30de1fSmrg  esac
66921a30de1fSmrg  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
66931a30de1fSmrg    as_dirs=
66941a30de1fSmrg    while :; do
6695b7fb5eacSmrg      case $as_dir in #(
66961a30de1fSmrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
66971a30de1fSmrg      *) as_qdir=$as_dir;;
66981a30de1fSmrg      esac
66991a30de1fSmrg      as_dirs="'$as_qdir' $as_dirs"
67001a30de1fSmrg      as_dir=`$as_dirname -- "$as_dir" ||
67011a30de1fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67021a30de1fSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
67031a30de1fSmrg	 X"$as_dir" : 'X\(//\)$' \| \
6704b7fb5eacSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
67051a30de1fSmrg$as_echo X"$as_dir" |
67061a30de1fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
67071a30de1fSmrg	    s//\1/
67081a30de1fSmrg	    q
67091a30de1fSmrg	  }
67101a30de1fSmrg	  /^X\(\/\/\)[^/].*/{
67111a30de1fSmrg	    s//\1/
67121a30de1fSmrg	    q
67131a30de1fSmrg	  }
67141a30de1fSmrg	  /^X\(\/\/\)$/{
67151a30de1fSmrg	    s//\1/
67161a30de1fSmrg	    q
67171a30de1fSmrg	  }
67181a30de1fSmrg	  /^X\(\/\).*/{
67191a30de1fSmrg	    s//\1/
67201a30de1fSmrg	    q
67211a30de1fSmrg	  }
67221a30de1fSmrg	  s/.*/./; q'`
67231a30de1fSmrg      test -d "$as_dir" && break
67241a30de1fSmrg    done
6725b7fb5eacSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
6726b7fb5eacSmrg  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
67271a30de1fSmrg$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6728b7fb5eacSmrg   { (exit 1); exit 1; }; }; }
6729b7fb5eacSmrg      # echo "creating $dirpart/$file"
6730b7fb5eacSmrg      echo '# dummy' > "$dirpart/$file"
67311a30de1fSmrg    done
6732b7fb5eacSmrg  done
67331a30de1fSmrg}
67341a30de1fSmrg ;;
67351a30de1fSmrg
67361a30de1fSmrg  esac
67371a30de1fSmrgdone # for ac_tag
67381a30de1fSmrg
67391a30de1fSmrg
67401a30de1fSmrg{ (exit 0); exit 0; }
67411a30de1fSmrg_ACEOF
67421a30de1fSmrgchmod +x $CONFIG_STATUS
67431a30de1fSmrgac_clean_files=$ac_clean_files_save
6744b7fb5eacSmrg
6745b7fb5eacSmrgtest $ac_write_fail = 0 ||
6746b7fb5eacSmrg  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
6747b7fb5eacSmrg$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
6748b7fb5eacSmrg   { (exit 1); exit 1; }; }
67491a30de1fSmrg
67501a30de1fSmrg
67511a30de1fSmrg# configure is writing to config.log, and then calls config.status.
67521a30de1fSmrg# config.status does its own redirection, appending to config.log.
67531a30de1fSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
67541a30de1fSmrg# by configure, so config.status won't be able to write to it; its
67551a30de1fSmrg# output is simply discarded.  So we exec the FD to /dev/null,
67561a30de1fSmrg# effectively closing config.log, so it can be properly (re)opened and
67571a30de1fSmrg# appended to by config.status.  When coming back to configure, we
67581a30de1fSmrg# need to make the FD available again.
67591a30de1fSmrgif test "$no_create" != yes; then
67601a30de1fSmrg  ac_cs_success=:
67611a30de1fSmrg  ac_config_status_args=
67621a30de1fSmrg  test "$silent" = yes &&
67631a30de1fSmrg    ac_config_status_args="$ac_config_status_args --quiet"
67641a30de1fSmrg  exec 5>/dev/null
67651a30de1fSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
67661a30de1fSmrg  exec 5>>config.log
67671a30de1fSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
67681a30de1fSmrg  # would make configure fail if this is the last instruction.
67691a30de1fSmrg  $ac_cs_success || { (exit 1); exit 1; }
6770b7fb5eacSmrgfi
6771b7fb5eacSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6772b7fb5eacSmrg  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6773b7fb5eacSmrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
67741a30de1fSmrgfi
6775
6776