configure revision 67f05d30
167f05d30Smrg#! /bin/sh
267f05d30Smrg# Guess values for system-dependent variables and create Makefiles.
367f05d30Smrg# Generated by GNU Autoconf 2.59 for viewres 1.0.1.
467f05d30Smrg#
567f05d30Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
667f05d30Smrg#
767f05d30Smrg# Copyright (C) 2003 Free Software Foundation, Inc.
867f05d30Smrg# This configure script is free software; the Free Software Foundation
967f05d30Smrg# gives unlimited permission to copy, distribute and modify it.
1067f05d30Smrg## --------------------- ##
1167f05d30Smrg## M4sh Initialization.  ##
1267f05d30Smrg## --------------------- ##
1367f05d30Smrg
1467f05d30Smrg# Be Bourne compatible
1567f05d30Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1667f05d30Smrg  emulate sh
1767f05d30Smrg  NULLCMD=:
1867f05d30Smrg  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1967f05d30Smrg  # is contrary to our usage.  Disable this feature.
2067f05d30Smrg  alias -g '${1+"$@"}'='"$@"'
2167f05d30Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2267f05d30Smrg  set -o posix
2367f05d30Smrgfi
2467f05d30SmrgDUALCASE=1; export DUALCASE # for MKS sh
2567f05d30Smrg
2667f05d30Smrg# Support unset when possible.
2767f05d30Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2867f05d30Smrg  as_unset=unset
2967f05d30Smrgelse
3067f05d30Smrg  as_unset=false
3167f05d30Smrgfi
3267f05d30Smrg
3367f05d30Smrg
3467f05d30Smrg# Work around bugs in pre-3.0 UWIN ksh.
3567f05d30Smrg$as_unset ENV MAIL MAILPATH
3667f05d30SmrgPS1='$ '
3767f05d30SmrgPS2='> '
3867f05d30SmrgPS4='+ '
3967f05d30Smrg
4067f05d30Smrg# NLS nuisances.
4167f05d30Smrgfor as_var in \
4267f05d30Smrg  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4367f05d30Smrg  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4467f05d30Smrg  LC_TELEPHONE LC_TIME
4567f05d30Smrgdo
4667f05d30Smrg  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4767f05d30Smrg    eval $as_var=C; export $as_var
4867f05d30Smrg  else
4967f05d30Smrg    $as_unset $as_var
5067f05d30Smrg  fi
5167f05d30Smrgdone
5267f05d30Smrg
5367f05d30Smrg# Required to use basename.
5467f05d30Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
5567f05d30Smrg  as_expr=expr
5667f05d30Smrgelse
5767f05d30Smrg  as_expr=false
5867f05d30Smrgfi
5967f05d30Smrg
6067f05d30Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6167f05d30Smrg  as_basename=basename
6267f05d30Smrgelse
6367f05d30Smrg  as_basename=false
6467f05d30Smrgfi
6567f05d30Smrg
6667f05d30Smrg
6767f05d30Smrg# Name of the executable.
6867f05d30Smrgas_me=`$as_basename "$0" ||
6967f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7067f05d30Smrg	 X"$0" : 'X\(//\)$' \| \
7167f05d30Smrg	 X"$0" : 'X\(/\)$' \| \
7267f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
7367f05d30Smrgecho X/"$0" |
7467f05d30Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7567f05d30Smrg  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
7667f05d30Smrg  	  /^X\/\(\/\).*/{ s//\1/; q; }
7767f05d30Smrg  	  s/.*/./; q'`
7867f05d30Smrg
7967f05d30Smrg
8067f05d30Smrg# PATH needs CR, and LINENO needs CR and PATH.
8167f05d30Smrg# Avoid depending upon Character Ranges.
8267f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
8367f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8467f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
8567f05d30Smrgas_cr_digits='0123456789'
8667f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
8767f05d30Smrg
8867f05d30Smrg# The user is always right.
8967f05d30Smrgif test "${PATH_SEPARATOR+set}" != set; then
9067f05d30Smrg  echo "#! /bin/sh" >conf$$.sh
9167f05d30Smrg  echo  "exit 0"   >>conf$$.sh
9267f05d30Smrg  chmod +x conf$$.sh
9367f05d30Smrg  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9467f05d30Smrg    PATH_SEPARATOR=';'
9567f05d30Smrg  else
9667f05d30Smrg    PATH_SEPARATOR=:
9767f05d30Smrg  fi
9867f05d30Smrg  rm -f conf$$.sh
9967f05d30Smrgfi
10067f05d30Smrg
10167f05d30Smrg
10267f05d30Smrg  as_lineno_1=$LINENO
10367f05d30Smrg  as_lineno_2=$LINENO
10467f05d30Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10567f05d30Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
10667f05d30Smrg  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10767f05d30Smrg  # Find who we are.  Look in the path if we contain no path at all
10867f05d30Smrg  # relative or not.
10967f05d30Smrg  case $0 in
11067f05d30Smrg    *[\\/]* ) as_myself=$0 ;;
11167f05d30Smrg    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267f05d30Smrgfor as_dir in $PATH
11367f05d30Smrgdo
11467f05d30Smrg  IFS=$as_save_IFS
11567f05d30Smrg  test -z "$as_dir" && as_dir=.
11667f05d30Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11767f05d30Smrgdone
11867f05d30Smrg
11967f05d30Smrg       ;;
12067f05d30Smrg  esac
12167f05d30Smrg  # We did not find ourselves, most probably we were run as `sh COMMAND'
12267f05d30Smrg  # in which case we are not to be found in the path.
12367f05d30Smrg  if test "x$as_myself" = x; then
12467f05d30Smrg    as_myself=$0
12567f05d30Smrg  fi
12667f05d30Smrg  if test ! -f "$as_myself"; then
12767f05d30Smrg    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
12867f05d30Smrg   { (exit 1); exit 1; }; }
12967f05d30Smrg  fi
13067f05d30Smrg  case $CONFIG_SHELL in
13167f05d30Smrg  '')
13267f05d30Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367f05d30Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13467f05d30Smrgdo
13567f05d30Smrg  IFS=$as_save_IFS
13667f05d30Smrg  test -z "$as_dir" && as_dir=.
13767f05d30Smrg  for as_base in sh bash ksh sh5; do
13867f05d30Smrg	 case $as_dir in
13967f05d30Smrg	 /*)
14067f05d30Smrg	   if ("$as_dir/$as_base" -c '
14167f05d30Smrg  as_lineno_1=$LINENO
14267f05d30Smrg  as_lineno_2=$LINENO
14367f05d30Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14467f05d30Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
14567f05d30Smrg  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14667f05d30Smrg	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14767f05d30Smrg	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14867f05d30Smrg	     CONFIG_SHELL=$as_dir/$as_base
14967f05d30Smrg	     export CONFIG_SHELL
15067f05d30Smrg	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15167f05d30Smrg	   fi;;
15267f05d30Smrg	 esac
15367f05d30Smrg       done
15467f05d30Smrgdone
15567f05d30Smrg;;
15667f05d30Smrg  esac
15767f05d30Smrg
15867f05d30Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15967f05d30Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
16067f05d30Smrg  # line-number line before each line; the second 'sed' does the real
16167f05d30Smrg  # work.  The second script uses 'N' to pair each line-number line
16267f05d30Smrg  # with the numbered line, and appends trailing '-' during
16367f05d30Smrg  # substitution so that $LINENO is not a special case at line end.
16467f05d30Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16567f05d30Smrg  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16667f05d30Smrg  sed '=' <$as_myself |
16767f05d30Smrg    sed '
16867f05d30Smrg      N
16967f05d30Smrg      s,$,-,
17067f05d30Smrg      : loop
17167f05d30Smrg      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17267f05d30Smrg      t loop
17367f05d30Smrg      s,-$,,
17467f05d30Smrg      s,^['$as_cr_digits']*\n,,
17567f05d30Smrg    ' >$as_me.lineno &&
17667f05d30Smrg  chmod +x $as_me.lineno ||
17767f05d30Smrg    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17867f05d30Smrg   { (exit 1); exit 1; }; }
17967f05d30Smrg
18067f05d30Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
18167f05d30Smrg  # (the dirname of $[0] is not the place where we might find the
18267f05d30Smrg  # original and so on.  Autoconf is especially sensible to this).
18367f05d30Smrg  . ./$as_me.lineno
18467f05d30Smrg  # Exit status is that of the last command.
18567f05d30Smrg  exit
18667f05d30Smrg}
18767f05d30Smrg
18867f05d30Smrg
18967f05d30Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19067f05d30Smrg  *c*,-n*) ECHO_N= ECHO_C='
19167f05d30Smrg' ECHO_T='	' ;;
19267f05d30Smrg  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19367f05d30Smrg  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19467f05d30Smrgesac
19567f05d30Smrg
19667f05d30Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
19767f05d30Smrg  as_expr=expr
19867f05d30Smrgelse
19967f05d30Smrg  as_expr=false
20067f05d30Smrgfi
20167f05d30Smrg
20267f05d30Smrgrm -f conf$$ conf$$.exe conf$$.file
20367f05d30Smrgecho >conf$$.file
20467f05d30Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then
20567f05d30Smrg  # We could just check for DJGPP; but this test a) works b) is more generic
20667f05d30Smrg  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20767f05d30Smrg  if test -f conf$$.exe; then
20867f05d30Smrg    # Don't use ln at all; we don't have any links
20967f05d30Smrg    as_ln_s='cp -p'
21067f05d30Smrg  else
21167f05d30Smrg    as_ln_s='ln -s'
21267f05d30Smrg  fi
21367f05d30Smrgelif ln conf$$.file conf$$ 2>/dev/null; then
21467f05d30Smrg  as_ln_s=ln
21567f05d30Smrgelse
21667f05d30Smrg  as_ln_s='cp -p'
21767f05d30Smrgfi
21867f05d30Smrgrm -f conf$$ conf$$.exe conf$$.file
21967f05d30Smrg
22067f05d30Smrgif mkdir -p . 2>/dev/null; then
22167f05d30Smrg  as_mkdir_p=:
22267f05d30Smrgelse
22367f05d30Smrg  test -d ./-p && rmdir ./-p
22467f05d30Smrg  as_mkdir_p=false
22567f05d30Smrgfi
22667f05d30Smrg
22767f05d30Smrgas_executable_p="test -f"
22867f05d30Smrg
22967f05d30Smrg# Sed expression to map a string onto a valid CPP name.
23067f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23167f05d30Smrg
23267f05d30Smrg# Sed expression to map a string onto a valid variable name.
23367f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23467f05d30Smrg
23567f05d30Smrg
23667f05d30Smrg# IFS
23767f05d30Smrg# We need space, tab and new line, in precisely that order.
23867f05d30Smrgas_nl='
23967f05d30Smrg'
24067f05d30SmrgIFS=" 	$as_nl"
24167f05d30Smrg
24267f05d30Smrg# CDPATH.
24367f05d30Smrg$as_unset CDPATH
24467f05d30Smrg
24567f05d30Smrg
24667f05d30Smrg# Name of the host.
24767f05d30Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
24867f05d30Smrg# so uname gets run too.
24967f05d30Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
25067f05d30Smrg
25167f05d30Smrgexec 6>&1
25267f05d30Smrg
25367f05d30Smrg#
25467f05d30Smrg# Initializations.
25567f05d30Smrg#
25667f05d30Smrgac_default_prefix=/usr/local
25767f05d30Smrgac_config_libobj_dir=.
25867f05d30Smrgcross_compiling=no
25967f05d30Smrgsubdirs=
26067f05d30SmrgMFLAGS=
26167f05d30SmrgMAKEFLAGS=
26267f05d30SmrgSHELL=${CONFIG_SHELL-/bin/sh}
26367f05d30Smrg
26467f05d30Smrg# Maximum number of lines to put in a shell here document.
26567f05d30Smrg# This variable seems obsolete.  It should probably be removed, and
26667f05d30Smrg# only ac_max_sed_lines should be used.
26767f05d30Smrg: ${ac_max_here_lines=38}
26867f05d30Smrg
26967f05d30Smrg# Identity of this package.
27067f05d30SmrgPACKAGE_NAME='viewres'
27167f05d30SmrgPACKAGE_TARNAME='viewres'
27267f05d30SmrgPACKAGE_VERSION='1.0.1'
27367f05d30SmrgPACKAGE_STRING='viewres 1.0.1'
27467f05d30SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
27567f05d30Smrg
27667f05d30Smrgac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE VIEWRES_CFLAGS VIEWRES_LIBS APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
27767f05d30Smrgac_subst_files=''
27867f05d30Smrg
27967f05d30Smrg# Initialize some variables set by options.
28067f05d30Smrgac_init_help=
28167f05d30Smrgac_init_version=false
28267f05d30Smrg# The variables have the same names as the options, with
28367f05d30Smrg# dashes changed to underlines.
28467f05d30Smrgcache_file=/dev/null
28567f05d30Smrgexec_prefix=NONE
28667f05d30Smrgno_create=
28767f05d30Smrgno_recursion=
28867f05d30Smrgprefix=NONE
28967f05d30Smrgprogram_prefix=NONE
29067f05d30Smrgprogram_suffix=NONE
29167f05d30Smrgprogram_transform_name=s,x,x,
29267f05d30Smrgsilent=
29367f05d30Smrgsite=
29467f05d30Smrgsrcdir=
29567f05d30Smrgverbose=
29667f05d30Smrgx_includes=NONE
29767f05d30Smrgx_libraries=NONE
29867f05d30Smrg
29967f05d30Smrg# Installation directory options.
30067f05d30Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
30167f05d30Smrg# and all the variables that are supposed to be based on exec_prefix
30267f05d30Smrg# by default will actually change.
30367f05d30Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
30467f05d30Smrgbindir='${exec_prefix}/bin'
30567f05d30Smrgsbindir='${exec_prefix}/sbin'
30667f05d30Smrglibexecdir='${exec_prefix}/libexec'
30767f05d30Smrgdatadir='${prefix}/share'
30867f05d30Smrgsysconfdir='${prefix}/etc'
30967f05d30Smrgsharedstatedir='${prefix}/com'
31067f05d30Smrglocalstatedir='${prefix}/var'
31167f05d30Smrglibdir='${exec_prefix}/lib'
31267f05d30Smrgincludedir='${prefix}/include'
31367f05d30Smrgoldincludedir='/usr/include'
31467f05d30Smrginfodir='${prefix}/info'
31567f05d30Smrgmandir='${prefix}/man'
31667f05d30Smrg
31767f05d30Smrgac_prev=
31867f05d30Smrgfor ac_option
31967f05d30Smrgdo
32067f05d30Smrg  # If the previous option needs an argument, assign it.
32167f05d30Smrg  if test -n "$ac_prev"; then
32267f05d30Smrg    eval "$ac_prev=\$ac_option"
32367f05d30Smrg    ac_prev=
32467f05d30Smrg    continue
32567f05d30Smrg  fi
32667f05d30Smrg
32767f05d30Smrg  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
32867f05d30Smrg
32967f05d30Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
33067f05d30Smrg
33167f05d30Smrg  case $ac_option in
33267f05d30Smrg
33367f05d30Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
33467f05d30Smrg    ac_prev=bindir ;;
33567f05d30Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
33667f05d30Smrg    bindir=$ac_optarg ;;
33767f05d30Smrg
33867f05d30Smrg  -build | --build | --buil | --bui | --bu)
33967f05d30Smrg    ac_prev=build_alias ;;
34067f05d30Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
34167f05d30Smrg    build_alias=$ac_optarg ;;
34267f05d30Smrg
34367f05d30Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
34467f05d30Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34567f05d30Smrg    ac_prev=cache_file ;;
34667f05d30Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34767f05d30Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
34867f05d30Smrg    cache_file=$ac_optarg ;;
34967f05d30Smrg
35067f05d30Smrg  --config-cache | -C)
35167f05d30Smrg    cache_file=config.cache ;;
35267f05d30Smrg
35367f05d30Smrg  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
35467f05d30Smrg    ac_prev=datadir ;;
35567f05d30Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
35667f05d30Smrg  | --da=*)
35767f05d30Smrg    datadir=$ac_optarg ;;
35867f05d30Smrg
35967f05d30Smrg  -disable-* | --disable-*)
36067f05d30Smrg    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
36167f05d30Smrg    # Reject names that are not valid shell variable names.
36267f05d30Smrg    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
36367f05d30Smrg      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
36467f05d30Smrg   { (exit 1); exit 1; }; }
36567f05d30Smrg    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
36667f05d30Smrg    eval "enable_$ac_feature=no" ;;
36767f05d30Smrg
36867f05d30Smrg  -enable-* | --enable-*)
36967f05d30Smrg    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
37067f05d30Smrg    # Reject names that are not valid shell variable names.
37167f05d30Smrg    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
37267f05d30Smrg      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
37367f05d30Smrg   { (exit 1); exit 1; }; }
37467f05d30Smrg    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
37567f05d30Smrg    case $ac_option in
37667f05d30Smrg      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
37767f05d30Smrg      *) ac_optarg=yes ;;
37867f05d30Smrg    esac
37967f05d30Smrg    eval "enable_$ac_feature='$ac_optarg'" ;;
38067f05d30Smrg
38167f05d30Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
38267f05d30Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
38367f05d30Smrg  | --exec | --exe | --ex)
38467f05d30Smrg    ac_prev=exec_prefix ;;
38567f05d30Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
38667f05d30Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
38767f05d30Smrg  | --exec=* | --exe=* | --ex=*)
38867f05d30Smrg    exec_prefix=$ac_optarg ;;
38967f05d30Smrg
39067f05d30Smrg  -gas | --gas | --ga | --g)
39167f05d30Smrg    # Obsolete; use --with-gas.
39267f05d30Smrg    with_gas=yes ;;
39367f05d30Smrg
39467f05d30Smrg  -help | --help | --hel | --he | -h)
39567f05d30Smrg    ac_init_help=long ;;
39667f05d30Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
39767f05d30Smrg    ac_init_help=recursive ;;
39867f05d30Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
39967f05d30Smrg    ac_init_help=short ;;
40067f05d30Smrg
40167f05d30Smrg  -host | --host | --hos | --ho)
40267f05d30Smrg    ac_prev=host_alias ;;
40367f05d30Smrg  -host=* | --host=* | --hos=* | --ho=*)
40467f05d30Smrg    host_alias=$ac_optarg ;;
40567f05d30Smrg
40667f05d30Smrg  -includedir | --includedir | --includedi | --included | --include \
40767f05d30Smrg  | --includ | --inclu | --incl | --inc)
40867f05d30Smrg    ac_prev=includedir ;;
40967f05d30Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
41067f05d30Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
41167f05d30Smrg    includedir=$ac_optarg ;;
41267f05d30Smrg
41367f05d30Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
41467f05d30Smrg    ac_prev=infodir ;;
41567f05d30Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
41667f05d30Smrg    infodir=$ac_optarg ;;
41767f05d30Smrg
41867f05d30Smrg  -libdir | --libdir | --libdi | --libd)
41967f05d30Smrg    ac_prev=libdir ;;
42067f05d30Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
42167f05d30Smrg    libdir=$ac_optarg ;;
42267f05d30Smrg
42367f05d30Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
42467f05d30Smrg  | --libexe | --libex | --libe)
42567f05d30Smrg    ac_prev=libexecdir ;;
42667f05d30Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
42767f05d30Smrg  | --libexe=* | --libex=* | --libe=*)
42867f05d30Smrg    libexecdir=$ac_optarg ;;
42967f05d30Smrg
43067f05d30Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
43167f05d30Smrg  | --localstate | --localstat | --localsta | --localst \
43267f05d30Smrg  | --locals | --local | --loca | --loc | --lo)
43367f05d30Smrg    ac_prev=localstatedir ;;
43467f05d30Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
43567f05d30Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
43667f05d30Smrg  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
43767f05d30Smrg    localstatedir=$ac_optarg ;;
43867f05d30Smrg
43967f05d30Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
44067f05d30Smrg    ac_prev=mandir ;;
44167f05d30Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
44267f05d30Smrg    mandir=$ac_optarg ;;
44367f05d30Smrg
44467f05d30Smrg  -nfp | --nfp | --nf)
44567f05d30Smrg    # Obsolete; use --without-fp.
44667f05d30Smrg    with_fp=no ;;
44767f05d30Smrg
44867f05d30Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
44967f05d30Smrg  | --no-cr | --no-c | -n)
45067f05d30Smrg    no_create=yes ;;
45167f05d30Smrg
45267f05d30Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
45367f05d30Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
45467f05d30Smrg    no_recursion=yes ;;
45567f05d30Smrg
45667f05d30Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
45767f05d30Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
45867f05d30Smrg  | --oldin | --oldi | --old | --ol | --o)
45967f05d30Smrg    ac_prev=oldincludedir ;;
46067f05d30Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
46167f05d30Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
46267f05d30Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
46367f05d30Smrg    oldincludedir=$ac_optarg ;;
46467f05d30Smrg
46567f05d30Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46667f05d30Smrg    ac_prev=prefix ;;
46767f05d30Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46867f05d30Smrg    prefix=$ac_optarg ;;
46967f05d30Smrg
47067f05d30Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
47167f05d30Smrg  | --program-pre | --program-pr | --program-p)
47267f05d30Smrg    ac_prev=program_prefix ;;
47367f05d30Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
47467f05d30Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
47567f05d30Smrg    program_prefix=$ac_optarg ;;
47667f05d30Smrg
47767f05d30Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
47867f05d30Smrg  | --program-suf | --program-su | --program-s)
47967f05d30Smrg    ac_prev=program_suffix ;;
48067f05d30Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
48167f05d30Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
48267f05d30Smrg    program_suffix=$ac_optarg ;;
48367f05d30Smrg
48467f05d30Smrg  -program-transform-name | --program-transform-name \
48567f05d30Smrg  | --program-transform-nam | --program-transform-na \
48667f05d30Smrg  | --program-transform-n | --program-transform- \
48767f05d30Smrg  | --program-transform | --program-transfor \
48867f05d30Smrg  | --program-transfo | --program-transf \
48967f05d30Smrg  | --program-trans | --program-tran \
49067f05d30Smrg  | --progr-tra | --program-tr | --program-t)
49167f05d30Smrg    ac_prev=program_transform_name ;;
49267f05d30Smrg  -program-transform-name=* | --program-transform-name=* \
49367f05d30Smrg  | --program-transform-nam=* | --program-transform-na=* \
49467f05d30Smrg  | --program-transform-n=* | --program-transform-=* \
49567f05d30Smrg  | --program-transform=* | --program-transfor=* \
49667f05d30Smrg  | --program-transfo=* | --program-transf=* \
49767f05d30Smrg  | --program-trans=* | --program-tran=* \
49867f05d30Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
49967f05d30Smrg    program_transform_name=$ac_optarg ;;
50067f05d30Smrg
50167f05d30Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50267f05d30Smrg  | -silent | --silent | --silen | --sile | --sil)
50367f05d30Smrg    silent=yes ;;
50467f05d30Smrg
50567f05d30Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
50667f05d30Smrg    ac_prev=sbindir ;;
50767f05d30Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
50867f05d30Smrg  | --sbi=* | --sb=*)
50967f05d30Smrg    sbindir=$ac_optarg ;;
51067f05d30Smrg
51167f05d30Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
51267f05d30Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
51367f05d30Smrg  | --sharedst | --shareds | --shared | --share | --shar \
51467f05d30Smrg  | --sha | --sh)
51567f05d30Smrg    ac_prev=sharedstatedir ;;
51667f05d30Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
51767f05d30Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
51867f05d30Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
51967f05d30Smrg  | --sha=* | --sh=*)
52067f05d30Smrg    sharedstatedir=$ac_optarg ;;
52167f05d30Smrg
52267f05d30Smrg  -site | --site | --sit)
52367f05d30Smrg    ac_prev=site ;;
52467f05d30Smrg  -site=* | --site=* | --sit=*)
52567f05d30Smrg    site=$ac_optarg ;;
52667f05d30Smrg
52767f05d30Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52867f05d30Smrg    ac_prev=srcdir ;;
52967f05d30Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
53067f05d30Smrg    srcdir=$ac_optarg ;;
53167f05d30Smrg
53267f05d30Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
53367f05d30Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
53467f05d30Smrg    ac_prev=sysconfdir ;;
53567f05d30Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
53667f05d30Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
53767f05d30Smrg    sysconfdir=$ac_optarg ;;
53867f05d30Smrg
53967f05d30Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
54067f05d30Smrg    ac_prev=target_alias ;;
54167f05d30Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
54267f05d30Smrg    target_alias=$ac_optarg ;;
54367f05d30Smrg
54467f05d30Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
54567f05d30Smrg    verbose=yes ;;
54667f05d30Smrg
54767f05d30Smrg  -version | --version | --versio | --versi | --vers | -V)
54867f05d30Smrg    ac_init_version=: ;;
54967f05d30Smrg
55067f05d30Smrg  -with-* | --with-*)
55167f05d30Smrg    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
55267f05d30Smrg    # Reject names that are not valid shell variable names.
55367f05d30Smrg    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
55467f05d30Smrg      { echo "$as_me: error: invalid package name: $ac_package" >&2
55567f05d30Smrg   { (exit 1); exit 1; }; }
55667f05d30Smrg    ac_package=`echo $ac_package| sed 's/-/_/g'`
55767f05d30Smrg    case $ac_option in
55867f05d30Smrg      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
55967f05d30Smrg      *) ac_optarg=yes ;;
56067f05d30Smrg    esac
56167f05d30Smrg    eval "with_$ac_package='$ac_optarg'" ;;
56267f05d30Smrg
56367f05d30Smrg  -without-* | --without-*)
56467f05d30Smrg    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
56567f05d30Smrg    # Reject names that are not valid shell variable names.
56667f05d30Smrg    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
56767f05d30Smrg      { echo "$as_me: error: invalid package name: $ac_package" >&2
56867f05d30Smrg   { (exit 1); exit 1; }; }
56967f05d30Smrg    ac_package=`echo $ac_package | sed 's/-/_/g'`
57067f05d30Smrg    eval "with_$ac_package=no" ;;
57167f05d30Smrg
57267f05d30Smrg  --x)
57367f05d30Smrg    # Obsolete; use --with-x.
57467f05d30Smrg    with_x=yes ;;
57567f05d30Smrg
57667f05d30Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
57767f05d30Smrg  | --x-incl | --x-inc | --x-in | --x-i)
57867f05d30Smrg    ac_prev=x_includes ;;
57967f05d30Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
58067f05d30Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
58167f05d30Smrg    x_includes=$ac_optarg ;;
58267f05d30Smrg
58367f05d30Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
58467f05d30Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
58567f05d30Smrg    ac_prev=x_libraries ;;
58667f05d30Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
58767f05d30Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
58867f05d30Smrg    x_libraries=$ac_optarg ;;
58967f05d30Smrg
59067f05d30Smrg  -*) { echo "$as_me: error: unrecognized option: $ac_option
59167f05d30SmrgTry \`$0 --help' for more information." >&2
59267f05d30Smrg   { (exit 1); exit 1; }; }
59367f05d30Smrg    ;;
59467f05d30Smrg
59567f05d30Smrg  *=*)
59667f05d30Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
59767f05d30Smrg    # Reject names that are not valid shell variable names.
59867f05d30Smrg    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
59967f05d30Smrg      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
60067f05d30Smrg   { (exit 1); exit 1; }; }
60167f05d30Smrg    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
60267f05d30Smrg    eval "$ac_envvar='$ac_optarg'"
60367f05d30Smrg    export $ac_envvar ;;
60467f05d30Smrg
60567f05d30Smrg  *)
60667f05d30Smrg    # FIXME: should be removed in autoconf 3.0.
60767f05d30Smrg    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
60867f05d30Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
60967f05d30Smrg      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
61067f05d30Smrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
61167f05d30Smrg    ;;
61267f05d30Smrg
61367f05d30Smrg  esac
61467f05d30Smrgdone
61567f05d30Smrg
61667f05d30Smrgif test -n "$ac_prev"; then
61767f05d30Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
61867f05d30Smrg  { echo "$as_me: error: missing argument to $ac_option" >&2
61967f05d30Smrg   { (exit 1); exit 1; }; }
62067f05d30Smrgfi
62167f05d30Smrg
62267f05d30Smrg# Be sure to have absolute paths.
62367f05d30Smrgfor ac_var in exec_prefix prefix
62467f05d30Smrgdo
62567f05d30Smrg  eval ac_val=$`echo $ac_var`
62667f05d30Smrg  case $ac_val in
62767f05d30Smrg    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
62867f05d30Smrg    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
62967f05d30Smrg   { (exit 1); exit 1; }; };;
63067f05d30Smrg  esac
63167f05d30Smrgdone
63267f05d30Smrg
63367f05d30Smrg# Be sure to have absolute paths.
63467f05d30Smrgfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
63567f05d30Smrg	      localstatedir libdir includedir oldincludedir infodir mandir
63667f05d30Smrgdo
63767f05d30Smrg  eval ac_val=$`echo $ac_var`
63867f05d30Smrg  case $ac_val in
63967f05d30Smrg    [\\/$]* | ?:[\\/]* ) ;;
64067f05d30Smrg    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
64167f05d30Smrg   { (exit 1); exit 1; }; };;
64267f05d30Smrg  esac
64367f05d30Smrgdone
64467f05d30Smrg
64567f05d30Smrg# There might be people who depend on the old broken behavior: `$host'
64667f05d30Smrg# used to hold the argument of --host etc.
64767f05d30Smrg# FIXME: To remove some day.
64867f05d30Smrgbuild=$build_alias
64967f05d30Smrghost=$host_alias
65067f05d30Smrgtarget=$target_alias
65167f05d30Smrg
65267f05d30Smrg# FIXME: To remove some day.
65367f05d30Smrgif test "x$host_alias" != x; then
65467f05d30Smrg  if test "x$build_alias" = x; then
65567f05d30Smrg    cross_compiling=maybe
65667f05d30Smrg    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
65767f05d30Smrg    If a cross compiler is detected then cross compile mode will be used." >&2
65867f05d30Smrg  elif test "x$build_alias" != "x$host_alias"; then
65967f05d30Smrg    cross_compiling=yes
66067f05d30Smrg  fi
66167f05d30Smrgfi
66267f05d30Smrg
66367f05d30Smrgac_tool_prefix=
66467f05d30Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
66567f05d30Smrg
66667f05d30Smrgtest "$silent" = yes && exec 6>/dev/null
66767f05d30Smrg
66867f05d30Smrg
66967f05d30Smrg# Find the source files, if location was not specified.
67067f05d30Smrgif test -z "$srcdir"; then
67167f05d30Smrg  ac_srcdir_defaulted=yes
67267f05d30Smrg  # Try the directory containing this script, then its parent.
67367f05d30Smrg  ac_confdir=`(dirname "$0") 2>/dev/null ||
67467f05d30Smrg$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
67567f05d30Smrg	 X"$0" : 'X\(//\)[^/]' \| \
67667f05d30Smrg	 X"$0" : 'X\(//\)$' \| \
67767f05d30Smrg	 X"$0" : 'X\(/\)' \| \
67867f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
67967f05d30Smrgecho X"$0" |
68067f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
68167f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
68267f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
68367f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
68467f05d30Smrg  	  s/.*/./; q'`
68567f05d30Smrg  srcdir=$ac_confdir
68667f05d30Smrg  if test ! -r $srcdir/$ac_unique_file; then
68767f05d30Smrg    srcdir=..
68867f05d30Smrg  fi
68967f05d30Smrgelse
69067f05d30Smrg  ac_srcdir_defaulted=no
69167f05d30Smrgfi
69267f05d30Smrgif test ! -r $srcdir/$ac_unique_file; then
69367f05d30Smrg  if test "$ac_srcdir_defaulted" = yes; then
69467f05d30Smrg    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
69567f05d30Smrg   { (exit 1); exit 1; }; }
69667f05d30Smrg  else
69767f05d30Smrg    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
69867f05d30Smrg   { (exit 1); exit 1; }; }
69967f05d30Smrg  fi
70067f05d30Smrgfi
70167f05d30Smrg(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
70267f05d30Smrg  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
70367f05d30Smrg   { (exit 1); exit 1; }; }
70467f05d30Smrgsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
70567f05d30Smrgac_env_build_alias_set=${build_alias+set}
70667f05d30Smrgac_env_build_alias_value=$build_alias
70767f05d30Smrgac_cv_env_build_alias_set=${build_alias+set}
70867f05d30Smrgac_cv_env_build_alias_value=$build_alias
70967f05d30Smrgac_env_host_alias_set=${host_alias+set}
71067f05d30Smrgac_env_host_alias_value=$host_alias
71167f05d30Smrgac_cv_env_host_alias_set=${host_alias+set}
71267f05d30Smrgac_cv_env_host_alias_value=$host_alias
71367f05d30Smrgac_env_target_alias_set=${target_alias+set}
71467f05d30Smrgac_env_target_alias_value=$target_alias
71567f05d30Smrgac_cv_env_target_alias_set=${target_alias+set}
71667f05d30Smrgac_cv_env_target_alias_value=$target_alias
71767f05d30Smrgac_env_CC_set=${CC+set}
71867f05d30Smrgac_env_CC_value=$CC
71967f05d30Smrgac_cv_env_CC_set=${CC+set}
72067f05d30Smrgac_cv_env_CC_value=$CC
72167f05d30Smrgac_env_CFLAGS_set=${CFLAGS+set}
72267f05d30Smrgac_env_CFLAGS_value=$CFLAGS
72367f05d30Smrgac_cv_env_CFLAGS_set=${CFLAGS+set}
72467f05d30Smrgac_cv_env_CFLAGS_value=$CFLAGS
72567f05d30Smrgac_env_LDFLAGS_set=${LDFLAGS+set}
72667f05d30Smrgac_env_LDFLAGS_value=$LDFLAGS
72767f05d30Smrgac_cv_env_LDFLAGS_set=${LDFLAGS+set}
72867f05d30Smrgac_cv_env_LDFLAGS_value=$LDFLAGS
72967f05d30Smrgac_env_CPPFLAGS_set=${CPPFLAGS+set}
73067f05d30Smrgac_env_CPPFLAGS_value=$CPPFLAGS
73167f05d30Smrgac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
73267f05d30Smrgac_cv_env_CPPFLAGS_value=$CPPFLAGS
73367f05d30Smrgac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
73467f05d30Smrgac_env_PKG_CONFIG_value=$PKG_CONFIG
73567f05d30Smrgac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
73667f05d30Smrgac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
73767f05d30Smrgac_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set}
73867f05d30Smrgac_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS
73967f05d30Smrgac_cv_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set}
74067f05d30Smrgac_cv_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS
74167f05d30Smrgac_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set}
74267f05d30Smrgac_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS
74367f05d30Smrgac_cv_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set}
74467f05d30Smrgac_cv_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS
74567f05d30Smrgac_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
74667f05d30Smrgac_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
74767f05d30Smrgac_cv_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
74867f05d30Smrgac_cv_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
74967f05d30Smrgac_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
75067f05d30Smrgac_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
75167f05d30Smrgac_cv_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
75267f05d30Smrgac_cv_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
75367f05d30Smrg
75467f05d30Smrg#
75567f05d30Smrg# Report the --help message.
75667f05d30Smrg#
75767f05d30Smrgif test "$ac_init_help" = "long"; then
75867f05d30Smrg  # Omit some internal or obsolete options to make the list less imposing.
75967f05d30Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
76067f05d30Smrg  cat <<_ACEOF
76167f05d30Smrg\`configure' configures viewres 1.0.1 to adapt to many kinds of systems.
76267f05d30Smrg
76367f05d30SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
76467f05d30Smrg
76567f05d30SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
76667f05d30SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
76767f05d30Smrg
76867f05d30SmrgDefaults for the options are specified in brackets.
76967f05d30Smrg
77067f05d30SmrgConfiguration:
77167f05d30Smrg  -h, --help              display this help and exit
77267f05d30Smrg      --help=short        display options specific to this package
77367f05d30Smrg      --help=recursive    display the short help of all the included packages
77467f05d30Smrg  -V, --version           display version information and exit
77567f05d30Smrg  -q, --quiet, --silent   do not print \`checking...' messages
77667f05d30Smrg      --cache-file=FILE   cache test results in FILE [disabled]
77767f05d30Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
77867f05d30Smrg  -n, --no-create         do not create output files
77967f05d30Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
78067f05d30Smrg
78167f05d30Smrg_ACEOF
78267f05d30Smrg
78367f05d30Smrg  cat <<_ACEOF
78467f05d30SmrgInstallation directories:
78567f05d30Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
78667f05d30Smrg			  [$ac_default_prefix]
78767f05d30Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
78867f05d30Smrg			  [PREFIX]
78967f05d30Smrg
79067f05d30SmrgBy default, \`make install' will install all the files in
79167f05d30Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
79267f05d30Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
79367f05d30Smrgfor instance \`--prefix=\$HOME'.
79467f05d30Smrg
79567f05d30SmrgFor better control, use the options below.
79667f05d30Smrg
79767f05d30SmrgFine tuning of the installation directories:
79867f05d30Smrg  --bindir=DIR           user executables [EPREFIX/bin]
79967f05d30Smrg  --sbindir=DIR          system admin executables [EPREFIX/sbin]
80067f05d30Smrg  --libexecdir=DIR       program executables [EPREFIX/libexec]
80167f05d30Smrg  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
80267f05d30Smrg  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
80367f05d30Smrg  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
80467f05d30Smrg  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
80567f05d30Smrg  --libdir=DIR           object code libraries [EPREFIX/lib]
80667f05d30Smrg  --includedir=DIR       C header files [PREFIX/include]
80767f05d30Smrg  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
80867f05d30Smrg  --infodir=DIR          info documentation [PREFIX/info]
80967f05d30Smrg  --mandir=DIR           man documentation [PREFIX/man]
81067f05d30Smrg_ACEOF
81167f05d30Smrg
81267f05d30Smrg  cat <<\_ACEOF
81367f05d30Smrg
81467f05d30SmrgProgram names:
81567f05d30Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
81667f05d30Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
81767f05d30Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
81867f05d30Smrg
81967f05d30SmrgSystem types:
82067f05d30Smrg  --build=BUILD     configure for building on BUILD [guessed]
82167f05d30Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
82267f05d30Smrg_ACEOF
82367f05d30Smrgfi
82467f05d30Smrg
82567f05d30Smrgif test -n "$ac_init_help"; then
82667f05d30Smrg  case $ac_init_help in
82767f05d30Smrg     short | recursive ) echo "Configuration of viewres 1.0.1:";;
82867f05d30Smrg   esac
82967f05d30Smrg  cat <<\_ACEOF
83067f05d30Smrg
83167f05d30SmrgOptional Features:
83267f05d30Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
83367f05d30Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
83467f05d30Smrg  --enable-maintainer-mode enable make rules and dependencies not useful
83567f05d30Smrg                          (and sometimes confusing) to the casual installer
83667f05d30Smrg  --disable-dependency-tracking Speeds up one-time builds
83767f05d30Smrg  --enable-dependency-tracking  Do not reject slow dependency extractors
83867f05d30Smrg  --enable-xprint         Enable XPrint support
83967f05d30Smrg
84067f05d30SmrgOptional Packages:
84167f05d30Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
84267f05d30Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
84367f05d30Smrg  --with-release-version=STRING
84467f05d30Smrg                          Use release version string in package name
84567f05d30Smrg
84667f05d30SmrgSome influential environment variables:
84767f05d30Smrg  CC          C compiler command
84867f05d30Smrg  CFLAGS      C compiler flags
84967f05d30Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
85067f05d30Smrg              nonstandard directory <lib dir>
85167f05d30Smrg  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
85267f05d30Smrg              headers in a nonstandard directory <include dir>
85367f05d30Smrg  PKG_CONFIG  path to pkg-config utility
85467f05d30Smrg  TMP_XAW_CFLAGS
85567f05d30Smrg              C compiler flags for TMP_XAW, overriding pkg-config
85667f05d30Smrg  TMP_XAW_LIBS
85767f05d30Smrg              linker flags for TMP_XAW, overriding pkg-config
85867f05d30Smrg  APPDEFS_CFLAGS
85967f05d30Smrg              C compiler flags for APPDEFS, overriding pkg-config
86067f05d30Smrg  APPDEFS_LIBS
86167f05d30Smrg              linker flags for APPDEFS, overriding pkg-config
86267f05d30Smrg
86367f05d30SmrgUse these variables to override the choices made by `configure' or to help
86467f05d30Smrgit to find libraries and programs with nonstandard names/locations.
86567f05d30Smrg
86667f05d30SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
86767f05d30Smrg_ACEOF
86867f05d30Smrgfi
86967f05d30Smrg
87067f05d30Smrgif test "$ac_init_help" = "recursive"; then
87167f05d30Smrg  # If there are subdirs, report their specific --help.
87267f05d30Smrg  ac_popdir=`pwd`
87367f05d30Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
87467f05d30Smrg    test -d $ac_dir || continue
87567f05d30Smrg    ac_builddir=.
87667f05d30Smrg
87767f05d30Smrgif test "$ac_dir" != .; then
87867f05d30Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
87967f05d30Smrg  # A "../" for each directory in $ac_dir_suffix.
88067f05d30Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
88167f05d30Smrgelse
88267f05d30Smrg  ac_dir_suffix= ac_top_builddir=
88367f05d30Smrgfi
88467f05d30Smrg
88567f05d30Smrgcase $srcdir in
88667f05d30Smrg  .)  # No --srcdir option.  We are building in place.
88767f05d30Smrg    ac_srcdir=.
88867f05d30Smrg    if test -z "$ac_top_builddir"; then
88967f05d30Smrg       ac_top_srcdir=.
89067f05d30Smrg    else
89167f05d30Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
89267f05d30Smrg    fi ;;
89367f05d30Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
89467f05d30Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
89567f05d30Smrg    ac_top_srcdir=$srcdir ;;
89667f05d30Smrg  *) # Relative path.
89767f05d30Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
89867f05d30Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
89967f05d30Smrgesac
90067f05d30Smrg
90167f05d30Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
90267f05d30Smrg# the directories may not exist.
90367f05d30Smrgcase `pwd` in
90467f05d30Smrg.) ac_abs_builddir="$ac_dir";;
90567f05d30Smrg*)
90667f05d30Smrg  case "$ac_dir" in
90767f05d30Smrg  .) ac_abs_builddir=`pwd`;;
90867f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
90967f05d30Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
91067f05d30Smrg  esac;;
91167f05d30Smrgesac
91267f05d30Smrgcase $ac_abs_builddir in
91367f05d30Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
91467f05d30Smrg*)
91567f05d30Smrg  case ${ac_top_builddir}. in
91667f05d30Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
91767f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
91867f05d30Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
91967f05d30Smrg  esac;;
92067f05d30Smrgesac
92167f05d30Smrgcase $ac_abs_builddir in
92267f05d30Smrg.) ac_abs_srcdir=$ac_srcdir;;
92367f05d30Smrg*)
92467f05d30Smrg  case $ac_srcdir in
92567f05d30Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
92667f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
92767f05d30Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
92867f05d30Smrg  esac;;
92967f05d30Smrgesac
93067f05d30Smrgcase $ac_abs_builddir in
93167f05d30Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
93267f05d30Smrg*)
93367f05d30Smrg  case $ac_top_srcdir in
93467f05d30Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
93567f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
93667f05d30Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
93767f05d30Smrg  esac;;
93867f05d30Smrgesac
93967f05d30Smrg
94067f05d30Smrg    cd $ac_dir
94167f05d30Smrg    # Check for guested configure; otherwise get Cygnus style configure.
94267f05d30Smrg    if test -f $ac_srcdir/configure.gnu; then
94367f05d30Smrg      echo
94467f05d30Smrg      $SHELL $ac_srcdir/configure.gnu  --help=recursive
94567f05d30Smrg    elif test -f $ac_srcdir/configure; then
94667f05d30Smrg      echo
94767f05d30Smrg      $SHELL $ac_srcdir/configure  --help=recursive
94867f05d30Smrg    elif test -f $ac_srcdir/configure.ac ||
94967f05d30Smrg	   test -f $ac_srcdir/configure.in; then
95067f05d30Smrg      echo
95167f05d30Smrg      $ac_configure --help
95267f05d30Smrg    else
95367f05d30Smrg      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
95467f05d30Smrg    fi
95567f05d30Smrg    cd $ac_popdir
95667f05d30Smrg  done
95767f05d30Smrgfi
95867f05d30Smrg
95967f05d30Smrgtest -n "$ac_init_help" && exit 0
96067f05d30Smrgif $ac_init_version; then
96167f05d30Smrg  cat <<\_ACEOF
96267f05d30Smrgviewres configure 1.0.1
96367f05d30Smrggenerated by GNU Autoconf 2.59
96467f05d30Smrg
96567f05d30SmrgCopyright (C) 2003 Free Software Foundation, Inc.
96667f05d30SmrgThis configure script is free software; the Free Software Foundation
96767f05d30Smrggives unlimited permission to copy, distribute and modify it.
96867f05d30Smrg_ACEOF
96967f05d30Smrg  exit 0
97067f05d30Smrgfi
97167f05d30Smrgexec 5>config.log
97267f05d30Smrgcat >&5 <<_ACEOF
97367f05d30SmrgThis file contains any messages produced by compilers while
97467f05d30Smrgrunning configure, to aid debugging if configure makes a mistake.
97567f05d30Smrg
97667f05d30SmrgIt was created by viewres $as_me 1.0.1, which was
97767f05d30Smrggenerated by GNU Autoconf 2.59.  Invocation command line was
97867f05d30Smrg
97967f05d30Smrg  $ $0 $@
98067f05d30Smrg
98167f05d30Smrg_ACEOF
98267f05d30Smrg{
98367f05d30Smrgcat <<_ASUNAME
98467f05d30Smrg## --------- ##
98567f05d30Smrg## Platform. ##
98667f05d30Smrg## --------- ##
98767f05d30Smrg
98867f05d30Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
98967f05d30Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
99067f05d30Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
99167f05d30Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
99267f05d30Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
99367f05d30Smrg
99467f05d30Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
99567f05d30Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
99667f05d30Smrg
99767f05d30Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
99867f05d30Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
99967f05d30Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
100067f05d30Smrghostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
100167f05d30Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
100267f05d30Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
100367f05d30Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
100467f05d30Smrg
100567f05d30Smrg_ASUNAME
100667f05d30Smrg
100767f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100867f05d30Smrgfor as_dir in $PATH
100967f05d30Smrgdo
101067f05d30Smrg  IFS=$as_save_IFS
101167f05d30Smrg  test -z "$as_dir" && as_dir=.
101267f05d30Smrg  echo "PATH: $as_dir"
101367f05d30Smrgdone
101467f05d30Smrg
101567f05d30Smrg} >&5
101667f05d30Smrg
101767f05d30Smrgcat >&5 <<_ACEOF
101867f05d30Smrg
101967f05d30Smrg
102067f05d30Smrg## ----------- ##
102167f05d30Smrg## Core tests. ##
102267f05d30Smrg## ----------- ##
102367f05d30Smrg
102467f05d30Smrg_ACEOF
102567f05d30Smrg
102667f05d30Smrg
102767f05d30Smrg# Keep a trace of the command line.
102867f05d30Smrg# Strip out --no-create and --no-recursion so they do not pile up.
102967f05d30Smrg# Strip out --silent because we don't want to record it for future runs.
103067f05d30Smrg# Also quote any args containing shell meta-characters.
103167f05d30Smrg# Make two passes to allow for proper duplicate-argument suppression.
103267f05d30Smrgac_configure_args=
103367f05d30Smrgac_configure_args0=
103467f05d30Smrgac_configure_args1=
103567f05d30Smrgac_sep=
103667f05d30Smrgac_must_keep_next=false
103767f05d30Smrgfor ac_pass in 1 2
103867f05d30Smrgdo
103967f05d30Smrg  for ac_arg
104067f05d30Smrg  do
104167f05d30Smrg    case $ac_arg in
104267f05d30Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
104367f05d30Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
104467f05d30Smrg    | -silent | --silent | --silen | --sile | --sil)
104567f05d30Smrg      continue ;;
104667f05d30Smrg    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
104767f05d30Smrg      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
104867f05d30Smrg    esac
104967f05d30Smrg    case $ac_pass in
105067f05d30Smrg    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
105167f05d30Smrg    2)
105267f05d30Smrg      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
105367f05d30Smrg      if test $ac_must_keep_next = true; then
105467f05d30Smrg	ac_must_keep_next=false # Got value, back to normal.
105567f05d30Smrg      else
105667f05d30Smrg	case $ac_arg in
105767f05d30Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
105867f05d30Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
105967f05d30Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
106067f05d30Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
106167f05d30Smrg	    case "$ac_configure_args0 " in
106267f05d30Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
106367f05d30Smrg	    esac
106467f05d30Smrg	    ;;
106567f05d30Smrg	  -* ) ac_must_keep_next=true ;;
106667f05d30Smrg	esac
106767f05d30Smrg      fi
106867f05d30Smrg      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
106967f05d30Smrg      # Get rid of the leading space.
107067f05d30Smrg      ac_sep=" "
107167f05d30Smrg      ;;
107267f05d30Smrg    esac
107367f05d30Smrg  done
107467f05d30Smrgdone
107567f05d30Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
107667f05d30Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
107767f05d30Smrg
107867f05d30Smrg# When interrupted or exit'd, cleanup temporary files, and complete
107967f05d30Smrg# config.log.  We remove comments because anyway the quotes in there
108067f05d30Smrg# would cause problems or look ugly.
108167f05d30Smrg# WARNING: Be sure not to use single quotes in there, as some shells,
108267f05d30Smrg# such as our DU 5.0 friend, will then `close' the trap.
108367f05d30Smrgtrap 'exit_status=$?
108467f05d30Smrg  # Save into config.log some information that might help in debugging.
108567f05d30Smrg  {
108667f05d30Smrg    echo
108767f05d30Smrg
108867f05d30Smrg    cat <<\_ASBOX
108967f05d30Smrg## ---------------- ##
109067f05d30Smrg## Cache variables. ##
109167f05d30Smrg## ---------------- ##
109267f05d30Smrg_ASBOX
109367f05d30Smrg    echo
109467f05d30Smrg    # The following way of writing the cache mishandles newlines in values,
109567f05d30Smrg{
109667f05d30Smrg  (set) 2>&1 |
109767f05d30Smrg    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
109867f05d30Smrg    *ac_space=\ *)
109967f05d30Smrg      sed -n \
110067f05d30Smrg	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
110167f05d30Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
110267f05d30Smrg      ;;
110367f05d30Smrg    *)
110467f05d30Smrg      sed -n \
110567f05d30Smrg	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
110667f05d30Smrg      ;;
110767f05d30Smrg    esac;
110867f05d30Smrg}
110967f05d30Smrg    echo
111067f05d30Smrg
111167f05d30Smrg    cat <<\_ASBOX
111267f05d30Smrg## ----------------- ##
111367f05d30Smrg## Output variables. ##
111467f05d30Smrg## ----------------- ##
111567f05d30Smrg_ASBOX
111667f05d30Smrg    echo
111767f05d30Smrg    for ac_var in $ac_subst_vars
111867f05d30Smrg    do
111967f05d30Smrg      eval ac_val=$`echo $ac_var`
112067f05d30Smrg      echo "$ac_var='"'"'$ac_val'"'"'"
112167f05d30Smrg    done | sort
112267f05d30Smrg    echo
112367f05d30Smrg
112467f05d30Smrg    if test -n "$ac_subst_files"; then
112567f05d30Smrg      cat <<\_ASBOX
112667f05d30Smrg## ------------- ##
112767f05d30Smrg## Output files. ##
112867f05d30Smrg## ------------- ##
112967f05d30Smrg_ASBOX
113067f05d30Smrg      echo
113167f05d30Smrg      for ac_var in $ac_subst_files
113267f05d30Smrg      do
113367f05d30Smrg	eval ac_val=$`echo $ac_var`
113467f05d30Smrg	echo "$ac_var='"'"'$ac_val'"'"'"
113567f05d30Smrg      done | sort
113667f05d30Smrg      echo
113767f05d30Smrg    fi
113867f05d30Smrg
113967f05d30Smrg    if test -s confdefs.h; then
114067f05d30Smrg      cat <<\_ASBOX
114167f05d30Smrg## ----------- ##
114267f05d30Smrg## confdefs.h. ##
114367f05d30Smrg## ----------- ##
114467f05d30Smrg_ASBOX
114567f05d30Smrg      echo
114667f05d30Smrg      sed "/^$/d" confdefs.h | sort
114767f05d30Smrg      echo
114867f05d30Smrg    fi
114967f05d30Smrg    test "$ac_signal" != 0 &&
115067f05d30Smrg      echo "$as_me: caught signal $ac_signal"
115167f05d30Smrg    echo "$as_me: exit $exit_status"
115267f05d30Smrg  } >&5
115367f05d30Smrg  rm -f core *.core &&
115467f05d30Smrg  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
115567f05d30Smrg    exit $exit_status
115667f05d30Smrg     ' 0
115767f05d30Smrgfor ac_signal in 1 2 13 15; do
115867f05d30Smrg  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
115967f05d30Smrgdone
116067f05d30Smrgac_signal=0
116167f05d30Smrg
116267f05d30Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
116367f05d30Smrgrm -rf conftest* confdefs.h
116467f05d30Smrg# AIX cpp loses on an empty file, so make sure it contains at least a newline.
116567f05d30Smrgecho >confdefs.h
116667f05d30Smrg
116767f05d30Smrg# Predefined preprocessor variables.
116867f05d30Smrg
116967f05d30Smrgcat >>confdefs.h <<_ACEOF
117067f05d30Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
117167f05d30Smrg_ACEOF
117267f05d30Smrg
117367f05d30Smrg
117467f05d30Smrgcat >>confdefs.h <<_ACEOF
117567f05d30Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
117667f05d30Smrg_ACEOF
117767f05d30Smrg
117867f05d30Smrg
117967f05d30Smrgcat >>confdefs.h <<_ACEOF
118067f05d30Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
118167f05d30Smrg_ACEOF
118267f05d30Smrg
118367f05d30Smrg
118467f05d30Smrgcat >>confdefs.h <<_ACEOF
118567f05d30Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
118667f05d30Smrg_ACEOF
118767f05d30Smrg
118867f05d30Smrg
118967f05d30Smrgcat >>confdefs.h <<_ACEOF
119067f05d30Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
119167f05d30Smrg_ACEOF
119267f05d30Smrg
119367f05d30Smrg
119467f05d30Smrg# Let the site file select an alternate cache file if it wants to.
119567f05d30Smrg# Prefer explicitly selected file to automatically selected ones.
119667f05d30Smrgif test -z "$CONFIG_SITE"; then
119767f05d30Smrg  if test "x$prefix" != xNONE; then
119867f05d30Smrg    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
119967f05d30Smrg  else
120067f05d30Smrg    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
120167f05d30Smrg  fi
120267f05d30Smrgfi
120367f05d30Smrgfor ac_site_file in $CONFIG_SITE; do
120467f05d30Smrg  if test -r "$ac_site_file"; then
120567f05d30Smrg    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
120667f05d30Smrgecho "$as_me: loading site script $ac_site_file" >&6;}
120767f05d30Smrg    sed 's/^/| /' "$ac_site_file" >&5
120867f05d30Smrg    . "$ac_site_file"
120967f05d30Smrg  fi
121067f05d30Smrgdone
121167f05d30Smrg
121267f05d30Smrgif test -r "$cache_file"; then
121367f05d30Smrg  # Some versions of bash will fail to source /dev/null (special
121467f05d30Smrg  # files actually), so we avoid doing that.
121567f05d30Smrg  if test -f "$cache_file"; then
121667f05d30Smrg    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
121767f05d30Smrgecho "$as_me: loading cache $cache_file" >&6;}
121867f05d30Smrg    case $cache_file in
121967f05d30Smrg      [\\/]* | ?:[\\/]* ) . $cache_file;;
122067f05d30Smrg      *)                      . ./$cache_file;;
122167f05d30Smrg    esac
122267f05d30Smrg  fi
122367f05d30Smrgelse
122467f05d30Smrg  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
122567f05d30Smrgecho "$as_me: creating cache $cache_file" >&6;}
122667f05d30Smrg  >$cache_file
122767f05d30Smrgfi
122867f05d30Smrg
122967f05d30Smrg# Check that the precious variables saved in the cache have kept the same
123067f05d30Smrg# value.
123167f05d30Smrgac_cache_corrupted=false
123267f05d30Smrgfor ac_var in `(set) 2>&1 |
123367f05d30Smrg	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
123467f05d30Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
123567f05d30Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
123667f05d30Smrg  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
123767f05d30Smrg  eval ac_new_val="\$ac_env_${ac_var}_value"
123867f05d30Smrg  case $ac_old_set,$ac_new_set in
123967f05d30Smrg    set,)
124067f05d30Smrg      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
124167f05d30Smrgecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
124267f05d30Smrg      ac_cache_corrupted=: ;;
124367f05d30Smrg    ,set)
124467f05d30Smrg      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
124567f05d30Smrgecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
124667f05d30Smrg      ac_cache_corrupted=: ;;
124767f05d30Smrg    ,);;
124867f05d30Smrg    *)
124967f05d30Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
125067f05d30Smrg	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
125167f05d30Smrgecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
125267f05d30Smrg	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
125367f05d30Smrgecho "$as_me:   former value:  $ac_old_val" >&2;}
125467f05d30Smrg	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
125567f05d30Smrgecho "$as_me:   current value: $ac_new_val" >&2;}
125667f05d30Smrg	ac_cache_corrupted=:
125767f05d30Smrg      fi;;
125867f05d30Smrg  esac
125967f05d30Smrg  # Pass precious variables to config.status.
126067f05d30Smrg  if test "$ac_new_set" = set; then
126167f05d30Smrg    case $ac_new_val in
126267f05d30Smrg    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
126367f05d30Smrg      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
126467f05d30Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
126567f05d30Smrg    esac
126667f05d30Smrg    case " $ac_configure_args " in
126767f05d30Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
126867f05d30Smrg      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
126967f05d30Smrg    esac
127067f05d30Smrg  fi
127167f05d30Smrgdone
127267f05d30Smrgif $ac_cache_corrupted; then
127367f05d30Smrg  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
127467f05d30Smrgecho "$as_me: error: changes in the environment can compromise the build" >&2;}
127567f05d30Smrg  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
127667f05d30Smrgecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
127767f05d30Smrg   { (exit 1); exit 1; }; }
127867f05d30Smrgfi
127967f05d30Smrg
128067f05d30Smrgac_ext=c
128167f05d30Smrgac_cpp='$CPP $CPPFLAGS'
128267f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
128367f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
128467f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
128567f05d30Smrg
128667f05d30Smrg
128767f05d30Smrg
128867f05d30Smrg
128967f05d30Smrg
129067f05d30Smrg
129167f05d30Smrg
129267f05d30Smrg
129367f05d30Smrg
129467f05d30Smrg
129567f05d30Smrg
129667f05d30Smrg
129767f05d30Smrg
129867f05d30Smrg
129967f05d30Smrg
130067f05d30Smrg
130167f05d30Smrg
130267f05d30Smrg
130367f05d30Smrg
130467f05d30Smrg
130567f05d30Smrg
130667f05d30Smrg
130767f05d30Smrg
130867f05d30Smrg
130967f05d30Smrg
131067f05d30Smrg
131167f05d30Smrg
131267f05d30Smrgam__api_version="1.7"
131367f05d30Smrgac_aux_dir=
131467f05d30Smrgfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
131567f05d30Smrg  if test -f $ac_dir/install-sh; then
131667f05d30Smrg    ac_aux_dir=$ac_dir
131767f05d30Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
131867f05d30Smrg    break
131967f05d30Smrg  elif test -f $ac_dir/install.sh; then
132067f05d30Smrg    ac_aux_dir=$ac_dir
132167f05d30Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
132267f05d30Smrg    break
132367f05d30Smrg  elif test -f $ac_dir/shtool; then
132467f05d30Smrg    ac_aux_dir=$ac_dir
132567f05d30Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
132667f05d30Smrg    break
132767f05d30Smrg  fi
132867f05d30Smrgdone
132967f05d30Smrgif test -z "$ac_aux_dir"; then
133067f05d30Smrg  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
133167f05d30Smrgecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
133267f05d30Smrg   { (exit 1); exit 1; }; }
133367f05d30Smrgfi
133467f05d30Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"
133567f05d30Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"
133667f05d30Smrgac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
133767f05d30Smrg
133867f05d30Smrg# Find a good install program.  We prefer a C program (faster),
133967f05d30Smrg# so one script is as good as another.  But avoid the broken or
134067f05d30Smrg# incompatible versions:
134167f05d30Smrg# SysV /etc/install, /usr/sbin/install
134267f05d30Smrg# SunOS /usr/etc/install
134367f05d30Smrg# IRIX /sbin/install
134467f05d30Smrg# AIX /bin/install
134567f05d30Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
134667f05d30Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
134767f05d30Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
134867f05d30Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
134967f05d30Smrg# OS/2's system install, which has a completely different semantic
135067f05d30Smrg# ./install, which can be erroneously created by make from ./install.sh.
135167f05d30Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
135267f05d30Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
135367f05d30Smrgif test -z "$INSTALL"; then
135467f05d30Smrgif test "${ac_cv_path_install+set}" = set; then
135567f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
135667f05d30Smrgelse
135767f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135867f05d30Smrgfor as_dir in $PATH
135967f05d30Smrgdo
136067f05d30Smrg  IFS=$as_save_IFS
136167f05d30Smrg  test -z "$as_dir" && as_dir=.
136267f05d30Smrg  # Account for people who put trailing slashes in PATH elements.
136367f05d30Smrgcase $as_dir/ in
136467f05d30Smrg  ./ | .// | /cC/* | \
136567f05d30Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
136667f05d30Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
136767f05d30Smrg  /usr/ucb/* ) ;;
136867f05d30Smrg  *)
136967f05d30Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
137067f05d30Smrg    # Don't use installbsd from OSF since it installs stuff as root
137167f05d30Smrg    # by default.
137267f05d30Smrg    for ac_prog in ginstall scoinst install; do
137367f05d30Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
137467f05d30Smrg	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
137567f05d30Smrg	  if test $ac_prog = install &&
137667f05d30Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
137767f05d30Smrg	    # AIX install.  It has an incompatible calling convention.
137867f05d30Smrg	    :
137967f05d30Smrg	  elif test $ac_prog = install &&
138067f05d30Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
138167f05d30Smrg	    # program-specific install script used by HP pwplus--don't use.
138267f05d30Smrg	    :
138367f05d30Smrg	  else
138467f05d30Smrg	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
138567f05d30Smrg	    break 3
138667f05d30Smrg	  fi
138767f05d30Smrg	fi
138867f05d30Smrg      done
138967f05d30Smrg    done
139067f05d30Smrg    ;;
139167f05d30Smrgesac
139267f05d30Smrgdone
139367f05d30Smrg
139467f05d30Smrg
139567f05d30Smrgfi
139667f05d30Smrg  if test "${ac_cv_path_install+set}" = set; then
139767f05d30Smrg    INSTALL=$ac_cv_path_install
139867f05d30Smrg  else
139967f05d30Smrg    # As a last resort, use the slow shell script.  We don't cache a
140067f05d30Smrg    # path for INSTALL within a source directory, because that will
140167f05d30Smrg    # break other packages using the cache if that directory is
140267f05d30Smrg    # removed, or if the path is relative.
140367f05d30Smrg    INSTALL=$ac_install_sh
140467f05d30Smrg  fi
140567f05d30Smrgfi
140667f05d30Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5
140767f05d30Smrgecho "${ECHO_T}$INSTALL" >&6
140867f05d30Smrg
140967f05d30Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
141067f05d30Smrg# It thinks the first close brace ends the variable substitution.
141167f05d30Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
141267f05d30Smrg
141367f05d30Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
141467f05d30Smrg
141567f05d30Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
141667f05d30Smrg
141767f05d30Smrgecho "$as_me:$LINENO: checking whether build environment is sane" >&5
141867f05d30Smrgecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
141967f05d30Smrg# Just in case
142067f05d30Smrgsleep 1
142167f05d30Smrgecho timestamp > conftest.file
142267f05d30Smrg# Do `set' in a subshell so we don't clobber the current shell's
142367f05d30Smrg# arguments.  Must try -L first in case configure is actually a
142467f05d30Smrg# symlink; some systems play weird games with the mod time of symlinks
142567f05d30Smrg# (eg FreeBSD returns the mod time of the symlink's containing
142667f05d30Smrg# directory).
142767f05d30Smrgif (
142867f05d30Smrg   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
142967f05d30Smrg   if test "$*" = "X"; then
143067f05d30Smrg      # -L didn't work.
143167f05d30Smrg      set X `ls -t $srcdir/configure conftest.file`
143267f05d30Smrg   fi
143367f05d30Smrg   rm -f conftest.file
143467f05d30Smrg   if test "$*" != "X $srcdir/configure conftest.file" \
143567f05d30Smrg      && test "$*" != "X conftest.file $srcdir/configure"; then
143667f05d30Smrg
143767f05d30Smrg      # If neither matched, then we have a broken ls.  This can happen
143867f05d30Smrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
143967f05d30Smrg      # broken ls alias from the environment.  This has actually
144067f05d30Smrg      # happened.  Such a system could not be considered "sane".
144167f05d30Smrg      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
144267f05d30Smrgalias in your environment" >&5
144367f05d30Smrgecho "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
144467f05d30Smrgalias in your environment" >&2;}
144567f05d30Smrg   { (exit 1); exit 1; }; }
144667f05d30Smrg   fi
144767f05d30Smrg
144867f05d30Smrg   test "$2" = conftest.file
144967f05d30Smrg   )
145067f05d30Smrgthen
145167f05d30Smrg   # Ok.
145267f05d30Smrg   :
145367f05d30Smrgelse
145467f05d30Smrg   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
145567f05d30SmrgCheck your system clock" >&5
145667f05d30Smrgecho "$as_me: error: newly created file is older than distributed files!
145767f05d30SmrgCheck your system clock" >&2;}
145867f05d30Smrg   { (exit 1); exit 1; }; }
145967f05d30Smrgfi
146067f05d30Smrgecho "$as_me:$LINENO: result: yes" >&5
146167f05d30Smrgecho "${ECHO_T}yes" >&6
146267f05d30Smrgtest "$program_prefix" != NONE &&
146367f05d30Smrg  program_transform_name="s,^,$program_prefix,;$program_transform_name"
146467f05d30Smrg# Use a double $ so make ignores it.
146567f05d30Smrgtest "$program_suffix" != NONE &&
146667f05d30Smrg  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
146767f05d30Smrg# Double any \ or $.  echo might interpret backslashes.
146867f05d30Smrg# By default was `s,x,x', remove it if useless.
146967f05d30Smrgcat <<\_ACEOF >conftest.sed
147067f05d30Smrgs/[\\$]/&&/g;s/;s,x,x,$//
147167f05d30Smrg_ACEOF
147267f05d30Smrgprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
147367f05d30Smrgrm conftest.sed
147467f05d30Smrg
147567f05d30Smrg
147667f05d30Smrg# expand $ac_aux_dir to an absolute path
147767f05d30Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
147867f05d30Smrg
147967f05d30Smrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
148067f05d30Smrg# Use eval to expand $SHELL
148167f05d30Smrgif eval "$MISSING --run true"; then
148267f05d30Smrg  am_missing_run="$MISSING --run "
148367f05d30Smrgelse
148467f05d30Smrg  am_missing_run=
148567f05d30Smrg  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
148667f05d30Smrgecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
148767f05d30Smrgfi
148867f05d30Smrg
148967f05d30Smrgfor ac_prog in gawk mawk nawk awk
149067f05d30Smrgdo
149167f05d30Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
149267f05d30Smrgset dummy $ac_prog; ac_word=$2
149367f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
149467f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
149567f05d30Smrgif test "${ac_cv_prog_AWK+set}" = set; then
149667f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
149767f05d30Smrgelse
149867f05d30Smrg  if test -n "$AWK"; then
149967f05d30Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
150067f05d30Smrgelse
150167f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
150267f05d30Smrgfor as_dir in $PATH
150367f05d30Smrgdo
150467f05d30Smrg  IFS=$as_save_IFS
150567f05d30Smrg  test -z "$as_dir" && as_dir=.
150667f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
150767f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
150867f05d30Smrg    ac_cv_prog_AWK="$ac_prog"
150967f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
151067f05d30Smrg    break 2
151167f05d30Smrg  fi
151267f05d30Smrgdone
151367f05d30Smrgdone
151467f05d30Smrg
151567f05d30Smrgfi
151667f05d30Smrgfi
151767f05d30SmrgAWK=$ac_cv_prog_AWK
151867f05d30Smrgif test -n "$AWK"; then
151967f05d30Smrg  echo "$as_me:$LINENO: result: $AWK" >&5
152067f05d30Smrgecho "${ECHO_T}$AWK" >&6
152167f05d30Smrgelse
152267f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
152367f05d30Smrgecho "${ECHO_T}no" >&6
152467f05d30Smrgfi
152567f05d30Smrg
152667f05d30Smrg  test -n "$AWK" && break
152767f05d30Smrgdone
152867f05d30Smrg
152967f05d30Smrgecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
153067f05d30Smrgecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
153167f05d30Smrgset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
153267f05d30Smrgif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
153367f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
153467f05d30Smrgelse
153567f05d30Smrg  cat >conftest.make <<\_ACEOF
153667f05d30Smrgall:
153767f05d30Smrg	@echo 'ac_maketemp="$(MAKE)"'
153867f05d30Smrg_ACEOF
153967f05d30Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
154067f05d30Smrgeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
154167f05d30Smrgif test -n "$ac_maketemp"; then
154267f05d30Smrg  eval ac_cv_prog_make_${ac_make}_set=yes
154367f05d30Smrgelse
154467f05d30Smrg  eval ac_cv_prog_make_${ac_make}_set=no
154567f05d30Smrgfi
154667f05d30Smrgrm -f conftest.make
154767f05d30Smrgfi
154867f05d30Smrgif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
154967f05d30Smrg  echo "$as_me:$LINENO: result: yes" >&5
155067f05d30Smrgecho "${ECHO_T}yes" >&6
155167f05d30Smrg  SET_MAKE=
155267f05d30Smrgelse
155367f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
155467f05d30Smrgecho "${ECHO_T}no" >&6
155567f05d30Smrg  SET_MAKE="MAKE=${MAKE-make}"
155667f05d30Smrgfi
155767f05d30Smrg
155867f05d30Smrgrm -rf .tst 2>/dev/null
155967f05d30Smrgmkdir .tst 2>/dev/null
156067f05d30Smrgif test -d .tst; then
156167f05d30Smrg  am__leading_dot=.
156267f05d30Smrgelse
156367f05d30Smrg  am__leading_dot=_
156467f05d30Smrgfi
156567f05d30Smrgrmdir .tst 2>/dev/null
156667f05d30Smrg
156767f05d30Smrg # test to see if srcdir already configured
156867f05d30Smrgif test "`cd $srcdir && pwd`" != "`pwd`" &&
156967f05d30Smrg   test -f $srcdir/config.status; then
157067f05d30Smrg  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
157167f05d30Smrgecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
157267f05d30Smrg   { (exit 1); exit 1; }; }
157367f05d30Smrgfi
157467f05d30Smrg
157567f05d30Smrg# test whether we have cygpath
157667f05d30Smrgif test -z "$CYGPATH_W"; then
157767f05d30Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
157867f05d30Smrg    CYGPATH_W='cygpath -w'
157967f05d30Smrg  else
158067f05d30Smrg    CYGPATH_W=echo
158167f05d30Smrg  fi
158267f05d30Smrgfi
158367f05d30Smrg
158467f05d30Smrg
158567f05d30Smrg# Define the identity of the package.
158667f05d30Smrg PACKAGE='viewres'
158767f05d30Smrg VERSION='1.0.1'
158867f05d30Smrg
158967f05d30Smrg
159067f05d30Smrgcat >>confdefs.h <<_ACEOF
159167f05d30Smrg#define PACKAGE "$PACKAGE"
159267f05d30Smrg_ACEOF
159367f05d30Smrg
159467f05d30Smrg
159567f05d30Smrgcat >>confdefs.h <<_ACEOF
159667f05d30Smrg#define VERSION "$VERSION"
159767f05d30Smrg_ACEOF
159867f05d30Smrg
159967f05d30Smrg# Some tools Automake needs.
160067f05d30Smrg
160167f05d30SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
160267f05d30Smrg
160367f05d30Smrg
160467f05d30SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
160567f05d30Smrg
160667f05d30Smrg
160767f05d30SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
160867f05d30Smrg
160967f05d30Smrg
161067f05d30SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
161167f05d30Smrg
161267f05d30Smrg
161367f05d30SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
161467f05d30Smrg
161567f05d30Smrg
161667f05d30SmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
161767f05d30Smrg
161867f05d30Smrginstall_sh=${install_sh-"$am_aux_dir/install-sh"}
161967f05d30Smrg
162067f05d30Smrg# Installed binaries are usually stripped using `strip' when the user
162167f05d30Smrg# run `make install-strip'.  However `strip' might not be the right
162267f05d30Smrg# tool to use in cross-compilation environments, therefore Automake
162367f05d30Smrg# will honor the `STRIP' environment variable to overrule this program.
162467f05d30Smrgif test "$cross_compiling" != no; then
162567f05d30Smrg  if test -n "$ac_tool_prefix"; then
162667f05d30Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
162767f05d30Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
162867f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
162967f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
163067f05d30Smrgif test "${ac_cv_prog_STRIP+set}" = set; then
163167f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
163267f05d30Smrgelse
163367f05d30Smrg  if test -n "$STRIP"; then
163467f05d30Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
163567f05d30Smrgelse
163667f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
163767f05d30Smrgfor as_dir in $PATH
163867f05d30Smrgdo
163967f05d30Smrg  IFS=$as_save_IFS
164067f05d30Smrg  test -z "$as_dir" && as_dir=.
164167f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
164267f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
164367f05d30Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
164467f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
164567f05d30Smrg    break 2
164667f05d30Smrg  fi
164767f05d30Smrgdone
164867f05d30Smrgdone
164967f05d30Smrg
165067f05d30Smrgfi
165167f05d30Smrgfi
165267f05d30SmrgSTRIP=$ac_cv_prog_STRIP
165367f05d30Smrgif test -n "$STRIP"; then
165467f05d30Smrg  echo "$as_me:$LINENO: result: $STRIP" >&5
165567f05d30Smrgecho "${ECHO_T}$STRIP" >&6
165667f05d30Smrgelse
165767f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
165867f05d30Smrgecho "${ECHO_T}no" >&6
165967f05d30Smrgfi
166067f05d30Smrg
166167f05d30Smrgfi
166267f05d30Smrgif test -z "$ac_cv_prog_STRIP"; then
166367f05d30Smrg  ac_ct_STRIP=$STRIP
166467f05d30Smrg  # Extract the first word of "strip", so it can be a program name with args.
166567f05d30Smrgset dummy strip; ac_word=$2
166667f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
166767f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
166867f05d30Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
166967f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
167067f05d30Smrgelse
167167f05d30Smrg  if test -n "$ac_ct_STRIP"; then
167267f05d30Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
167367f05d30Smrgelse
167467f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
167567f05d30Smrgfor as_dir in $PATH
167667f05d30Smrgdo
167767f05d30Smrg  IFS=$as_save_IFS
167867f05d30Smrg  test -z "$as_dir" && as_dir=.
167967f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
168067f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
168167f05d30Smrg    ac_cv_prog_ac_ct_STRIP="strip"
168267f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
168367f05d30Smrg    break 2
168467f05d30Smrg  fi
168567f05d30Smrgdone
168667f05d30Smrgdone
168767f05d30Smrg
168867f05d30Smrg  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
168967f05d30Smrgfi
169067f05d30Smrgfi
169167f05d30Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
169267f05d30Smrgif test -n "$ac_ct_STRIP"; then
169367f05d30Smrg  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
169467f05d30Smrgecho "${ECHO_T}$ac_ct_STRIP" >&6
169567f05d30Smrgelse
169667f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
169767f05d30Smrgecho "${ECHO_T}no" >&6
169867f05d30Smrgfi
169967f05d30Smrg
170067f05d30Smrg  STRIP=$ac_ct_STRIP
170167f05d30Smrgelse
170267f05d30Smrg  STRIP="$ac_cv_prog_STRIP"
170367f05d30Smrgfi
170467f05d30Smrg
170567f05d30Smrgfi
170667f05d30SmrgINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
170767f05d30Smrg
170867f05d30Smrg# We need awk for the "check" target.  The system "awk" is bad on
170967f05d30Smrg# some platforms.
171067f05d30Smrg
171167f05d30Smrg
171267f05d30Smrg
171367f05d30Smrgecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
171467f05d30Smrgecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
171567f05d30Smrg    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
171667f05d30Smrgif test "${enable_maintainer_mode+set}" = set; then
171767f05d30Smrg  enableval="$enable_maintainer_mode"
171867f05d30Smrg  USE_MAINTAINER_MODE=$enableval
171967f05d30Smrgelse
172067f05d30Smrg  USE_MAINTAINER_MODE=no
172167f05d30Smrgfi;
172267f05d30Smrg  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
172367f05d30Smrgecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
172467f05d30Smrg
172567f05d30Smrg
172667f05d30Smrgif test $USE_MAINTAINER_MODE = yes; then
172767f05d30Smrg  MAINTAINER_MODE_TRUE=
172867f05d30Smrg  MAINTAINER_MODE_FALSE='#'
172967f05d30Smrgelse
173067f05d30Smrg  MAINTAINER_MODE_TRUE='#'
173167f05d30Smrg  MAINTAINER_MODE_FALSE=
173267f05d30Smrgfi
173367f05d30Smrg
173467f05d30Smrg  MAINT=$MAINTAINER_MODE_TRUE
173567f05d30Smrg
173667f05d30Smrg
173767f05d30Smrg
173867f05d30Smrg          ac_config_headers="$ac_config_headers config.h"
173967f05d30Smrg
174067f05d30Smrg
174167f05d30Smrgac_ext=c
174267f05d30Smrgac_cpp='$CPP $CPPFLAGS'
174367f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
174467f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
174567f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
174667f05d30Smrgif test -n "$ac_tool_prefix"; then
174767f05d30Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
174867f05d30Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
174967f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
175067f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
175167f05d30Smrgif test "${ac_cv_prog_CC+set}" = set; then
175267f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
175367f05d30Smrgelse
175467f05d30Smrg  if test -n "$CC"; then
175567f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
175667f05d30Smrgelse
175767f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
175867f05d30Smrgfor as_dir in $PATH
175967f05d30Smrgdo
176067f05d30Smrg  IFS=$as_save_IFS
176167f05d30Smrg  test -z "$as_dir" && as_dir=.
176267f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
176367f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
176467f05d30Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
176567f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
176667f05d30Smrg    break 2
176767f05d30Smrg  fi
176867f05d30Smrgdone
176967f05d30Smrgdone
177067f05d30Smrg
177167f05d30Smrgfi
177267f05d30Smrgfi
177367f05d30SmrgCC=$ac_cv_prog_CC
177467f05d30Smrgif test -n "$CC"; then
177567f05d30Smrg  echo "$as_me:$LINENO: result: $CC" >&5
177667f05d30Smrgecho "${ECHO_T}$CC" >&6
177767f05d30Smrgelse
177867f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
177967f05d30Smrgecho "${ECHO_T}no" >&6
178067f05d30Smrgfi
178167f05d30Smrg
178267f05d30Smrgfi
178367f05d30Smrgif test -z "$ac_cv_prog_CC"; then
178467f05d30Smrg  ac_ct_CC=$CC
178567f05d30Smrg  # Extract the first word of "gcc", so it can be a program name with args.
178667f05d30Smrgset dummy gcc; ac_word=$2
178767f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
178867f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
178967f05d30Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
179067f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
179167f05d30Smrgelse
179267f05d30Smrg  if test -n "$ac_ct_CC"; then
179367f05d30Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
179467f05d30Smrgelse
179567f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
179667f05d30Smrgfor as_dir in $PATH
179767f05d30Smrgdo
179867f05d30Smrg  IFS=$as_save_IFS
179967f05d30Smrg  test -z "$as_dir" && as_dir=.
180067f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
180167f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
180267f05d30Smrg    ac_cv_prog_ac_ct_CC="gcc"
180367f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
180467f05d30Smrg    break 2
180567f05d30Smrg  fi
180667f05d30Smrgdone
180767f05d30Smrgdone
180867f05d30Smrg
180967f05d30Smrgfi
181067f05d30Smrgfi
181167f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
181267f05d30Smrgif test -n "$ac_ct_CC"; then
181367f05d30Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
181467f05d30Smrgecho "${ECHO_T}$ac_ct_CC" >&6
181567f05d30Smrgelse
181667f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
181767f05d30Smrgecho "${ECHO_T}no" >&6
181867f05d30Smrgfi
181967f05d30Smrg
182067f05d30Smrg  CC=$ac_ct_CC
182167f05d30Smrgelse
182267f05d30Smrg  CC="$ac_cv_prog_CC"
182367f05d30Smrgfi
182467f05d30Smrg
182567f05d30Smrgif test -z "$CC"; then
182667f05d30Smrg  if test -n "$ac_tool_prefix"; then
182767f05d30Smrg  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
182867f05d30Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
182967f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
183067f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
183167f05d30Smrgif test "${ac_cv_prog_CC+set}" = set; then
183267f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
183367f05d30Smrgelse
183467f05d30Smrg  if test -n "$CC"; then
183567f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
183667f05d30Smrgelse
183767f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183867f05d30Smrgfor as_dir in $PATH
183967f05d30Smrgdo
184067f05d30Smrg  IFS=$as_save_IFS
184167f05d30Smrg  test -z "$as_dir" && as_dir=.
184267f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
184367f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
184467f05d30Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
184567f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
184667f05d30Smrg    break 2
184767f05d30Smrg  fi
184867f05d30Smrgdone
184967f05d30Smrgdone
185067f05d30Smrg
185167f05d30Smrgfi
185267f05d30Smrgfi
185367f05d30SmrgCC=$ac_cv_prog_CC
185467f05d30Smrgif test -n "$CC"; then
185567f05d30Smrg  echo "$as_me:$LINENO: result: $CC" >&5
185667f05d30Smrgecho "${ECHO_T}$CC" >&6
185767f05d30Smrgelse
185867f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
185967f05d30Smrgecho "${ECHO_T}no" >&6
186067f05d30Smrgfi
186167f05d30Smrg
186267f05d30Smrgfi
186367f05d30Smrgif test -z "$ac_cv_prog_CC"; then
186467f05d30Smrg  ac_ct_CC=$CC
186567f05d30Smrg  # Extract the first word of "cc", so it can be a program name with args.
186667f05d30Smrgset dummy cc; ac_word=$2
186767f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
186867f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
186967f05d30Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
187067f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
187167f05d30Smrgelse
187267f05d30Smrg  if test -n "$ac_ct_CC"; then
187367f05d30Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
187467f05d30Smrgelse
187567f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187667f05d30Smrgfor as_dir in $PATH
187767f05d30Smrgdo
187867f05d30Smrg  IFS=$as_save_IFS
187967f05d30Smrg  test -z "$as_dir" && as_dir=.
188067f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
188167f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
188267f05d30Smrg    ac_cv_prog_ac_ct_CC="cc"
188367f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
188467f05d30Smrg    break 2
188567f05d30Smrg  fi
188667f05d30Smrgdone
188767f05d30Smrgdone
188867f05d30Smrg
188967f05d30Smrgfi
189067f05d30Smrgfi
189167f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
189267f05d30Smrgif test -n "$ac_ct_CC"; then
189367f05d30Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
189467f05d30Smrgecho "${ECHO_T}$ac_ct_CC" >&6
189567f05d30Smrgelse
189667f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
189767f05d30Smrgecho "${ECHO_T}no" >&6
189867f05d30Smrgfi
189967f05d30Smrg
190067f05d30Smrg  CC=$ac_ct_CC
190167f05d30Smrgelse
190267f05d30Smrg  CC="$ac_cv_prog_CC"
190367f05d30Smrgfi
190467f05d30Smrg
190567f05d30Smrgfi
190667f05d30Smrgif test -z "$CC"; then
190767f05d30Smrg  # Extract the first word of "cc", so it can be a program name with args.
190867f05d30Smrgset dummy cc; ac_word=$2
190967f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
191067f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
191167f05d30Smrgif test "${ac_cv_prog_CC+set}" = set; then
191267f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
191367f05d30Smrgelse
191467f05d30Smrg  if test -n "$CC"; then
191567f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
191667f05d30Smrgelse
191767f05d30Smrg  ac_prog_rejected=no
191867f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191967f05d30Smrgfor as_dir in $PATH
192067f05d30Smrgdo
192167f05d30Smrg  IFS=$as_save_IFS
192267f05d30Smrg  test -z "$as_dir" && as_dir=.
192367f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
192467f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
192567f05d30Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
192667f05d30Smrg       ac_prog_rejected=yes
192767f05d30Smrg       continue
192867f05d30Smrg     fi
192967f05d30Smrg    ac_cv_prog_CC="cc"
193067f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
193167f05d30Smrg    break 2
193267f05d30Smrg  fi
193367f05d30Smrgdone
193467f05d30Smrgdone
193567f05d30Smrg
193667f05d30Smrgif test $ac_prog_rejected = yes; then
193767f05d30Smrg  # We found a bogon in the path, so make sure we never use it.
193867f05d30Smrg  set dummy $ac_cv_prog_CC
193967f05d30Smrg  shift
194067f05d30Smrg  if test $# != 0; then
194167f05d30Smrg    # We chose a different compiler from the bogus one.
194267f05d30Smrg    # However, it has the same basename, so the bogon will be chosen
194367f05d30Smrg    # first if we set CC to just the basename; use the full file name.
194467f05d30Smrg    shift
194567f05d30Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
194667f05d30Smrg  fi
194767f05d30Smrgfi
194867f05d30Smrgfi
194967f05d30Smrgfi
195067f05d30SmrgCC=$ac_cv_prog_CC
195167f05d30Smrgif test -n "$CC"; then
195267f05d30Smrg  echo "$as_me:$LINENO: result: $CC" >&5
195367f05d30Smrgecho "${ECHO_T}$CC" >&6
195467f05d30Smrgelse
195567f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
195667f05d30Smrgecho "${ECHO_T}no" >&6
195767f05d30Smrgfi
195867f05d30Smrg
195967f05d30Smrgfi
196067f05d30Smrgif test -z "$CC"; then
196167f05d30Smrg  if test -n "$ac_tool_prefix"; then
196267f05d30Smrg  for ac_prog in cl
196367f05d30Smrg  do
196467f05d30Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
196567f05d30Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
196667f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
196767f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
196867f05d30Smrgif test "${ac_cv_prog_CC+set}" = set; then
196967f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
197067f05d30Smrgelse
197167f05d30Smrg  if test -n "$CC"; then
197267f05d30Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
197367f05d30Smrgelse
197467f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197567f05d30Smrgfor as_dir in $PATH
197667f05d30Smrgdo
197767f05d30Smrg  IFS=$as_save_IFS
197867f05d30Smrg  test -z "$as_dir" && as_dir=.
197967f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
198067f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
198167f05d30Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
198267f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
198367f05d30Smrg    break 2
198467f05d30Smrg  fi
198567f05d30Smrgdone
198667f05d30Smrgdone
198767f05d30Smrg
198867f05d30Smrgfi
198967f05d30Smrgfi
199067f05d30SmrgCC=$ac_cv_prog_CC
199167f05d30Smrgif test -n "$CC"; then
199267f05d30Smrg  echo "$as_me:$LINENO: result: $CC" >&5
199367f05d30Smrgecho "${ECHO_T}$CC" >&6
199467f05d30Smrgelse
199567f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
199667f05d30Smrgecho "${ECHO_T}no" >&6
199767f05d30Smrgfi
199867f05d30Smrg
199967f05d30Smrg    test -n "$CC" && break
200067f05d30Smrg  done
200167f05d30Smrgfi
200267f05d30Smrgif test -z "$CC"; then
200367f05d30Smrg  ac_ct_CC=$CC
200467f05d30Smrg  for ac_prog in cl
200567f05d30Smrgdo
200667f05d30Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
200767f05d30Smrgset dummy $ac_prog; ac_word=$2
200867f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
200967f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
201067f05d30Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
201167f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
201267f05d30Smrgelse
201367f05d30Smrg  if test -n "$ac_ct_CC"; then
201467f05d30Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
201567f05d30Smrgelse
201667f05d30Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
201767f05d30Smrgfor as_dir in $PATH
201867f05d30Smrgdo
201967f05d30Smrg  IFS=$as_save_IFS
202067f05d30Smrg  test -z "$as_dir" && as_dir=.
202167f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
202267f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
202367f05d30Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
202467f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
202567f05d30Smrg    break 2
202667f05d30Smrg  fi
202767f05d30Smrgdone
202867f05d30Smrgdone
202967f05d30Smrg
203067f05d30Smrgfi
203167f05d30Smrgfi
203267f05d30Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
203367f05d30Smrgif test -n "$ac_ct_CC"; then
203467f05d30Smrg  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
203567f05d30Smrgecho "${ECHO_T}$ac_ct_CC" >&6
203667f05d30Smrgelse
203767f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
203867f05d30Smrgecho "${ECHO_T}no" >&6
203967f05d30Smrgfi
204067f05d30Smrg
204167f05d30Smrg  test -n "$ac_ct_CC" && break
204267f05d30Smrgdone
204367f05d30Smrg
204467f05d30Smrg  CC=$ac_ct_CC
204567f05d30Smrgfi
204667f05d30Smrg
204767f05d30Smrgfi
204867f05d30Smrg
204967f05d30Smrg
205067f05d30Smrgtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
205167f05d30SmrgSee \`config.log' for more details." >&5
205267f05d30Smrgecho "$as_me: error: no acceptable C compiler found in \$PATH
205367f05d30SmrgSee \`config.log' for more details." >&2;}
205467f05d30Smrg   { (exit 1); exit 1; }; }
205567f05d30Smrg
205667f05d30Smrg# Provide some information about the compiler.
205767f05d30Smrgecho "$as_me:$LINENO:" \
205867f05d30Smrg     "checking for C compiler version" >&5
205967f05d30Smrgac_compiler=`set X $ac_compile; echo $2`
206067f05d30Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
206167f05d30Smrg  (eval $ac_compiler --version </dev/null >&5) 2>&5
206267f05d30Smrg  ac_status=$?
206367f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
206467f05d30Smrg  (exit $ac_status); }
206567f05d30Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
206667f05d30Smrg  (eval $ac_compiler -v </dev/null >&5) 2>&5
206767f05d30Smrg  ac_status=$?
206867f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
206967f05d30Smrg  (exit $ac_status); }
207067f05d30Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
207167f05d30Smrg  (eval $ac_compiler -V </dev/null >&5) 2>&5
207267f05d30Smrg  ac_status=$?
207367f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
207467f05d30Smrg  (exit $ac_status); }
207567f05d30Smrg
207667f05d30Smrgcat >conftest.$ac_ext <<_ACEOF
207767f05d30Smrg/* confdefs.h.  */
207867f05d30Smrg_ACEOF
207967f05d30Smrgcat confdefs.h >>conftest.$ac_ext
208067f05d30Smrgcat >>conftest.$ac_ext <<_ACEOF
208167f05d30Smrg/* end confdefs.h.  */
208267f05d30Smrg
208367f05d30Smrgint
208467f05d30Smrgmain ()
208567f05d30Smrg{
208667f05d30Smrg
208767f05d30Smrg  ;
208867f05d30Smrg  return 0;
208967f05d30Smrg}
209067f05d30Smrg_ACEOF
209167f05d30Smrgac_clean_files_save=$ac_clean_files
209267f05d30Smrgac_clean_files="$ac_clean_files a.out a.exe b.out"
209367f05d30Smrg# Try to create an executable without -o first, disregard a.out.
209467f05d30Smrg# It will help us diagnose broken compilers, and finding out an intuition
209567f05d30Smrg# of exeext.
209667f05d30Smrgecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
209767f05d30Smrgecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
209867f05d30Smrgac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
209967f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
210067f05d30Smrg  (eval $ac_link_default) 2>&5
210167f05d30Smrg  ac_status=$?
210267f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
210367f05d30Smrg  (exit $ac_status); }; then
210467f05d30Smrg  # Find the output, starting from the most likely.  This scheme is
210567f05d30Smrg# not robust to junk in `.', hence go to wildcards (a.*) only as a last
210667f05d30Smrg# resort.
210767f05d30Smrg
210867f05d30Smrg# Be careful to initialize this variable, since it used to be cached.
210967f05d30Smrg# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
211067f05d30Smrgac_cv_exeext=
211167f05d30Smrg# b.out is created by i960 compilers.
211267f05d30Smrgfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
211367f05d30Smrgdo
211467f05d30Smrg  test -f "$ac_file" || continue
211567f05d30Smrg  case $ac_file in
211667f05d30Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
211767f05d30Smrg	;;
211867f05d30Smrg    conftest.$ac_ext )
211967f05d30Smrg	# This is the source file.
212067f05d30Smrg	;;
212167f05d30Smrg    [ab].out )
212267f05d30Smrg	# We found the default executable, but exeext='' is most
212367f05d30Smrg	# certainly right.
212467f05d30Smrg	break;;
212567f05d30Smrg    *.* )
212667f05d30Smrg	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
212767f05d30Smrg	# FIXME: I believe we export ac_cv_exeext for Libtool,
212867f05d30Smrg	# but it would be cool to find out if it's true.  Does anybody
212967f05d30Smrg	# maintain Libtool? --akim.
213067f05d30Smrg	export ac_cv_exeext
213167f05d30Smrg	break;;
213267f05d30Smrg    * )
213367f05d30Smrg	break;;
213467f05d30Smrg  esac
213567f05d30Smrgdone
213667f05d30Smrgelse
213767f05d30Smrg  echo "$as_me: failed program was:" >&5
213867f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
213967f05d30Smrg
214067f05d30Smrg{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
214167f05d30SmrgSee \`config.log' for more details." >&5
214267f05d30Smrgecho "$as_me: error: C compiler cannot create executables
214367f05d30SmrgSee \`config.log' for more details." >&2;}
214467f05d30Smrg   { (exit 77); exit 77; }; }
214567f05d30Smrgfi
214667f05d30Smrg
214767f05d30Smrgac_exeext=$ac_cv_exeext
214867f05d30Smrgecho "$as_me:$LINENO: result: $ac_file" >&5
214967f05d30Smrgecho "${ECHO_T}$ac_file" >&6
215067f05d30Smrg
215167f05d30Smrg# Check the compiler produces executables we can run.  If not, either
215267f05d30Smrg# the compiler is broken, or we cross compile.
215367f05d30Smrgecho "$as_me:$LINENO: checking whether the C compiler works" >&5
215467f05d30Smrgecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
215567f05d30Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
215667f05d30Smrg# If not cross compiling, check that we can run a simple program.
215767f05d30Smrgif test "$cross_compiling" != yes; then
215867f05d30Smrg  if { ac_try='./$ac_file'
215967f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
216067f05d30Smrg  (eval $ac_try) 2>&5
216167f05d30Smrg  ac_status=$?
216267f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
216367f05d30Smrg  (exit $ac_status); }; }; then
216467f05d30Smrg    cross_compiling=no
216567f05d30Smrg  else
216667f05d30Smrg    if test "$cross_compiling" = maybe; then
216767f05d30Smrg	cross_compiling=yes
216867f05d30Smrg    else
216967f05d30Smrg	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
217067f05d30SmrgIf you meant to cross compile, use \`--host'.
217167f05d30SmrgSee \`config.log' for more details." >&5
217267f05d30Smrgecho "$as_me: error: cannot run C compiled programs.
217367f05d30SmrgIf you meant to cross compile, use \`--host'.
217467f05d30SmrgSee \`config.log' for more details." >&2;}
217567f05d30Smrg   { (exit 1); exit 1; }; }
217667f05d30Smrg    fi
217767f05d30Smrg  fi
217867f05d30Smrgfi
217967f05d30Smrgecho "$as_me:$LINENO: result: yes" >&5
218067f05d30Smrgecho "${ECHO_T}yes" >&6
218167f05d30Smrg
218267f05d30Smrgrm -f a.out a.exe conftest$ac_cv_exeext b.out
218367f05d30Smrgac_clean_files=$ac_clean_files_save
218467f05d30Smrg# Check the compiler produces executables we can run.  If not, either
218567f05d30Smrg# the compiler is broken, or we cross compile.
218667f05d30Smrgecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
218767f05d30Smrgecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
218867f05d30Smrgecho "$as_me:$LINENO: result: $cross_compiling" >&5
218967f05d30Smrgecho "${ECHO_T}$cross_compiling" >&6
219067f05d30Smrg
219167f05d30Smrgecho "$as_me:$LINENO: checking for suffix of executables" >&5
219267f05d30Smrgecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
219367f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
219467f05d30Smrg  (eval $ac_link) 2>&5
219567f05d30Smrg  ac_status=$?
219667f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
219767f05d30Smrg  (exit $ac_status); }; then
219867f05d30Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
219967f05d30Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
220067f05d30Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
220167f05d30Smrg# `rm'.
220267f05d30Smrgfor ac_file in conftest.exe conftest conftest.*; do
220367f05d30Smrg  test -f "$ac_file" || continue
220467f05d30Smrg  case $ac_file in
220567f05d30Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
220667f05d30Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
220767f05d30Smrg	  export ac_cv_exeext
220867f05d30Smrg	  break;;
220967f05d30Smrg    * ) break;;
221067f05d30Smrg  esac
221167f05d30Smrgdone
221267f05d30Smrgelse
221367f05d30Smrg  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
221467f05d30SmrgSee \`config.log' for more details." >&5
221567f05d30Smrgecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
221667f05d30SmrgSee \`config.log' for more details." >&2;}
221767f05d30Smrg   { (exit 1); exit 1; }; }
221867f05d30Smrgfi
221967f05d30Smrg
222067f05d30Smrgrm -f conftest$ac_cv_exeext
222167f05d30Smrgecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
222267f05d30Smrgecho "${ECHO_T}$ac_cv_exeext" >&6
222367f05d30Smrg
222467f05d30Smrgrm -f conftest.$ac_ext
222567f05d30SmrgEXEEXT=$ac_cv_exeext
222667f05d30Smrgac_exeext=$EXEEXT
222767f05d30Smrgecho "$as_me:$LINENO: checking for suffix of object files" >&5
222867f05d30Smrgecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
222967f05d30Smrgif test "${ac_cv_objext+set}" = set; then
223067f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
223167f05d30Smrgelse
223267f05d30Smrg  cat >conftest.$ac_ext <<_ACEOF
223367f05d30Smrg/* confdefs.h.  */
223467f05d30Smrg_ACEOF
223567f05d30Smrgcat confdefs.h >>conftest.$ac_ext
223667f05d30Smrgcat >>conftest.$ac_ext <<_ACEOF
223767f05d30Smrg/* end confdefs.h.  */
223867f05d30Smrg
223967f05d30Smrgint
224067f05d30Smrgmain ()
224167f05d30Smrg{
224267f05d30Smrg
224367f05d30Smrg  ;
224467f05d30Smrg  return 0;
224567f05d30Smrg}
224667f05d30Smrg_ACEOF
224767f05d30Smrgrm -f conftest.o conftest.obj
224867f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
224967f05d30Smrg  (eval $ac_compile) 2>&5
225067f05d30Smrg  ac_status=$?
225167f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
225267f05d30Smrg  (exit $ac_status); }; then
225367f05d30Smrg  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
225467f05d30Smrg  case $ac_file in
225567f05d30Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
225667f05d30Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
225767f05d30Smrg       break;;
225867f05d30Smrg  esac
225967f05d30Smrgdone
226067f05d30Smrgelse
226167f05d30Smrg  echo "$as_me: failed program was:" >&5
226267f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
226367f05d30Smrg
226467f05d30Smrg{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
226567f05d30SmrgSee \`config.log' for more details." >&5
226667f05d30Smrgecho "$as_me: error: cannot compute suffix of object files: cannot compile
226767f05d30SmrgSee \`config.log' for more details." >&2;}
226867f05d30Smrg   { (exit 1); exit 1; }; }
226967f05d30Smrgfi
227067f05d30Smrg
227167f05d30Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
227267f05d30Smrgfi
227367f05d30Smrgecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
227467f05d30Smrgecho "${ECHO_T}$ac_cv_objext" >&6
227567f05d30SmrgOBJEXT=$ac_cv_objext
227667f05d30Smrgac_objext=$OBJEXT
227767f05d30Smrgecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
227867f05d30Smrgecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
227967f05d30Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then
228067f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
228167f05d30Smrgelse
228267f05d30Smrg  cat >conftest.$ac_ext <<_ACEOF
228367f05d30Smrg/* confdefs.h.  */
228467f05d30Smrg_ACEOF
228567f05d30Smrgcat confdefs.h >>conftest.$ac_ext
228667f05d30Smrgcat >>conftest.$ac_ext <<_ACEOF
228767f05d30Smrg/* end confdefs.h.  */
228867f05d30Smrg
228967f05d30Smrgint
229067f05d30Smrgmain ()
229167f05d30Smrg{
229267f05d30Smrg#ifndef __GNUC__
229367f05d30Smrg       choke me
229467f05d30Smrg#endif
229567f05d30Smrg
229667f05d30Smrg  ;
229767f05d30Smrg  return 0;
229867f05d30Smrg}
229967f05d30Smrg_ACEOF
230067f05d30Smrgrm -f conftest.$ac_objext
230167f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
230267f05d30Smrg  (eval $ac_compile) 2>conftest.er1
230367f05d30Smrg  ac_status=$?
230467f05d30Smrg  grep -v '^ *+' conftest.er1 >conftest.err
230567f05d30Smrg  rm -f conftest.er1
230667f05d30Smrg  cat conftest.err >&5
230767f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
230867f05d30Smrg  (exit $ac_status); } &&
230967f05d30Smrg	 { ac_try='test -z "$ac_c_werror_flag"
231067f05d30Smrg			 || test ! -s conftest.err'
231167f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
231267f05d30Smrg  (eval $ac_try) 2>&5
231367f05d30Smrg  ac_status=$?
231467f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
231567f05d30Smrg  (exit $ac_status); }; } &&
231667f05d30Smrg	 { ac_try='test -s conftest.$ac_objext'
231767f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
231867f05d30Smrg  (eval $ac_try) 2>&5
231967f05d30Smrg  ac_status=$?
232067f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
232167f05d30Smrg  (exit $ac_status); }; }; then
232267f05d30Smrg  ac_compiler_gnu=yes
232367f05d30Smrgelse
232467f05d30Smrg  echo "$as_me: failed program was:" >&5
232567f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
232667f05d30Smrg
232767f05d30Smrgac_compiler_gnu=no
232867f05d30Smrgfi
232967f05d30Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
233067f05d30Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
233167f05d30Smrg
233267f05d30Smrgfi
233367f05d30Smrgecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
233467f05d30Smrgecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
233567f05d30SmrgGCC=`test $ac_compiler_gnu = yes && echo yes`
233667f05d30Smrgac_test_CFLAGS=${CFLAGS+set}
233767f05d30Smrgac_save_CFLAGS=$CFLAGS
233867f05d30SmrgCFLAGS="-g"
233967f05d30Smrgecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
234067f05d30Smrgecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
234167f05d30Smrgif test "${ac_cv_prog_cc_g+set}" = set; then
234267f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
234367f05d30Smrgelse
234467f05d30Smrg  cat >conftest.$ac_ext <<_ACEOF
234567f05d30Smrg/* confdefs.h.  */
234667f05d30Smrg_ACEOF
234767f05d30Smrgcat confdefs.h >>conftest.$ac_ext
234867f05d30Smrgcat >>conftest.$ac_ext <<_ACEOF
234967f05d30Smrg/* end confdefs.h.  */
235067f05d30Smrg
235167f05d30Smrgint
235267f05d30Smrgmain ()
235367f05d30Smrg{
235467f05d30Smrg
235567f05d30Smrg  ;
235667f05d30Smrg  return 0;
235767f05d30Smrg}
235867f05d30Smrg_ACEOF
235967f05d30Smrgrm -f conftest.$ac_objext
236067f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
236167f05d30Smrg  (eval $ac_compile) 2>conftest.er1
236267f05d30Smrg  ac_status=$?
236367f05d30Smrg  grep -v '^ *+' conftest.er1 >conftest.err
236467f05d30Smrg  rm -f conftest.er1
236567f05d30Smrg  cat conftest.err >&5
236667f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
236767f05d30Smrg  (exit $ac_status); } &&
236867f05d30Smrg	 { ac_try='test -z "$ac_c_werror_flag"
236967f05d30Smrg			 || test ! -s conftest.err'
237067f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
237167f05d30Smrg  (eval $ac_try) 2>&5
237267f05d30Smrg  ac_status=$?
237367f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
237467f05d30Smrg  (exit $ac_status); }; } &&
237567f05d30Smrg	 { ac_try='test -s conftest.$ac_objext'
237667f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
237767f05d30Smrg  (eval $ac_try) 2>&5
237867f05d30Smrg  ac_status=$?
237967f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
238067f05d30Smrg  (exit $ac_status); }; }; then
238167f05d30Smrg  ac_cv_prog_cc_g=yes
238267f05d30Smrgelse
238367f05d30Smrg  echo "$as_me: failed program was:" >&5
238467f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
238567f05d30Smrg
238667f05d30Smrgac_cv_prog_cc_g=no
238767f05d30Smrgfi
238867f05d30Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
238967f05d30Smrgfi
239067f05d30Smrgecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
239167f05d30Smrgecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
239267f05d30Smrgif test "$ac_test_CFLAGS" = set; then
239367f05d30Smrg  CFLAGS=$ac_save_CFLAGS
239467f05d30Smrgelif test $ac_cv_prog_cc_g = yes; then
239567f05d30Smrg  if test "$GCC" = yes; then
239667f05d30Smrg    CFLAGS="-g -O2"
239767f05d30Smrg  else
239867f05d30Smrg    CFLAGS="-g"
239967f05d30Smrg  fi
240067f05d30Smrgelse
240167f05d30Smrg  if test "$GCC" = yes; then
240267f05d30Smrg    CFLAGS="-O2"
240367f05d30Smrg  else
240467f05d30Smrg    CFLAGS=
240567f05d30Smrg  fi
240667f05d30Smrgfi
240767f05d30Smrgecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
240867f05d30Smrgecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
240967f05d30Smrgif test "${ac_cv_prog_cc_stdc+set}" = set; then
241067f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
241167f05d30Smrgelse
241267f05d30Smrg  ac_cv_prog_cc_stdc=no
241367f05d30Smrgac_save_CC=$CC
241467f05d30Smrgcat >conftest.$ac_ext <<_ACEOF
241567f05d30Smrg/* confdefs.h.  */
241667f05d30Smrg_ACEOF
241767f05d30Smrgcat confdefs.h >>conftest.$ac_ext
241867f05d30Smrgcat >>conftest.$ac_ext <<_ACEOF
241967f05d30Smrg/* end confdefs.h.  */
242067f05d30Smrg#include <stdarg.h>
242167f05d30Smrg#include <stdio.h>
242267f05d30Smrg#include <sys/types.h>
242367f05d30Smrg#include <sys/stat.h>
242467f05d30Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
242567f05d30Smrgstruct buf { int x; };
242667f05d30SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
242767f05d30Smrgstatic char *e (p, i)
242867f05d30Smrg     char **p;
242967f05d30Smrg     int i;
243067f05d30Smrg{
243167f05d30Smrg  return p[i];
243267f05d30Smrg}
243367f05d30Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
243467f05d30Smrg{
243567f05d30Smrg  char *s;
243667f05d30Smrg  va_list v;
243767f05d30Smrg  va_start (v,p);
243867f05d30Smrg  s = g (p, va_arg (v,int));
243967f05d30Smrg  va_end (v);
244067f05d30Smrg  return s;
244167f05d30Smrg}
244267f05d30Smrg
244367f05d30Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
244467f05d30Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
244567f05d30Smrg   These don't provoke an error unfortunately, instead are silently treated
244667f05d30Smrg   as 'x'.  The following induces an error, until -std1 is added to get
244767f05d30Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
244867f05d30Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
244967f05d30Smrg   that's true only with -std1.  */
245067f05d30Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
245167f05d30Smrg
245267f05d30Smrgint test (int i, double x);
245367f05d30Smrgstruct s1 {int (*f) (int a);};
245467f05d30Smrgstruct s2 {int (*f) (double a);};
245567f05d30Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
245667f05d30Smrgint argc;
245767f05d30Smrgchar **argv;
245867f05d30Smrgint
245967f05d30Smrgmain ()
246067f05d30Smrg{
246167f05d30Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
246267f05d30Smrg  ;
246367f05d30Smrg  return 0;
246467f05d30Smrg}
246567f05d30Smrg_ACEOF
246667f05d30Smrg# Don't try gcc -ansi; that turns off useful extensions and
246767f05d30Smrg# breaks some systems' header files.
246867f05d30Smrg# AIX			-qlanglvl=ansi
246967f05d30Smrg# Ultrix and OSF/1	-std1
247067f05d30Smrg# HP-UX 10.20 and later	-Ae
247167f05d30Smrg# HP-UX older versions	-Aa -D_HPUX_SOURCE
247267f05d30Smrg# SVR4			-Xc -D__EXTENSIONS__
247367f05d30Smrgfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
247467f05d30Smrgdo
247567f05d30Smrg  CC="$ac_save_CC $ac_arg"
247667f05d30Smrg  rm -f conftest.$ac_objext
247767f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
247867f05d30Smrg  (eval $ac_compile) 2>conftest.er1
247967f05d30Smrg  ac_status=$?
248067f05d30Smrg  grep -v '^ *+' conftest.er1 >conftest.err
248167f05d30Smrg  rm -f conftest.er1
248267f05d30Smrg  cat conftest.err >&5
248367f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
248467f05d30Smrg  (exit $ac_status); } &&
248567f05d30Smrg	 { ac_try='test -z "$ac_c_werror_flag"
248667f05d30Smrg			 || test ! -s conftest.err'
248767f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
248867f05d30Smrg  (eval $ac_try) 2>&5
248967f05d30Smrg  ac_status=$?
249067f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
249167f05d30Smrg  (exit $ac_status); }; } &&
249267f05d30Smrg	 { ac_try='test -s conftest.$ac_objext'
249367f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
249467f05d30Smrg  (eval $ac_try) 2>&5
249567f05d30Smrg  ac_status=$?
249667f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
249767f05d30Smrg  (exit $ac_status); }; }; then
249867f05d30Smrg  ac_cv_prog_cc_stdc=$ac_arg
249967f05d30Smrgbreak
250067f05d30Smrgelse
250167f05d30Smrg  echo "$as_me: failed program was:" >&5
250267f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
250367f05d30Smrg
250467f05d30Smrgfi
250567f05d30Smrgrm -f conftest.err conftest.$ac_objext
250667f05d30Smrgdone
250767f05d30Smrgrm -f conftest.$ac_ext conftest.$ac_objext
250867f05d30SmrgCC=$ac_save_CC
250967f05d30Smrg
251067f05d30Smrgfi
251167f05d30Smrg
251267f05d30Smrgcase "x$ac_cv_prog_cc_stdc" in
251367f05d30Smrg  x|xno)
251467f05d30Smrg    echo "$as_me:$LINENO: result: none needed" >&5
251567f05d30Smrgecho "${ECHO_T}none needed" >&6 ;;
251667f05d30Smrg  *)
251767f05d30Smrg    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
251867f05d30Smrgecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
251967f05d30Smrg    CC="$CC $ac_cv_prog_cc_stdc" ;;
252067f05d30Smrgesac
252167f05d30Smrg
252267f05d30Smrg# Some people use a C++ compiler to compile C.  Since we use `exit',
252367f05d30Smrg# in C++ we need to declare it.  In case someone uses the same compiler
252467f05d30Smrg# for both compiling C and C++ we need to have the C++ compiler decide
252567f05d30Smrg# the declaration of exit, since it's the most demanding environment.
252667f05d30Smrgcat >conftest.$ac_ext <<_ACEOF
252767f05d30Smrg#ifndef __cplusplus
252867f05d30Smrg  choke me
252967f05d30Smrg#endif
253067f05d30Smrg_ACEOF
253167f05d30Smrgrm -f conftest.$ac_objext
253267f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
253367f05d30Smrg  (eval $ac_compile) 2>conftest.er1
253467f05d30Smrg  ac_status=$?
253567f05d30Smrg  grep -v '^ *+' conftest.er1 >conftest.err
253667f05d30Smrg  rm -f conftest.er1
253767f05d30Smrg  cat conftest.err >&5
253867f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
253967f05d30Smrg  (exit $ac_status); } &&
254067f05d30Smrg	 { ac_try='test -z "$ac_c_werror_flag"
254167f05d30Smrg			 || test ! -s conftest.err'
254267f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
254367f05d30Smrg  (eval $ac_try) 2>&5
254467f05d30Smrg  ac_status=$?
254567f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
254667f05d30Smrg  (exit $ac_status); }; } &&
254767f05d30Smrg	 { ac_try='test -s conftest.$ac_objext'
254867f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
254967f05d30Smrg  (eval $ac_try) 2>&5
255067f05d30Smrg  ac_status=$?
255167f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
255267f05d30Smrg  (exit $ac_status); }; }; then
255367f05d30Smrg  for ac_declaration in \
255467f05d30Smrg   '' \
255567f05d30Smrg   'extern "C" void std::exit (int) throw (); using std::exit;' \
255667f05d30Smrg   'extern "C" void std::exit (int); using std::exit;' \
255767f05d30Smrg   'extern "C" void exit (int) throw ();' \
255867f05d30Smrg   'extern "C" void exit (int);' \
255967f05d30Smrg   'void exit (int);'
256067f05d30Smrgdo
256167f05d30Smrg  cat >conftest.$ac_ext <<_ACEOF
256267f05d30Smrg/* confdefs.h.  */
256367f05d30Smrg_ACEOF
256467f05d30Smrgcat confdefs.h >>conftest.$ac_ext
256567f05d30Smrgcat >>conftest.$ac_ext <<_ACEOF
256667f05d30Smrg/* end confdefs.h.  */
256767f05d30Smrg$ac_declaration
256867f05d30Smrg#include <stdlib.h>
256967f05d30Smrgint
257067f05d30Smrgmain ()
257167f05d30Smrg{
257267f05d30Smrgexit (42);
257367f05d30Smrg  ;
257467f05d30Smrg  return 0;
257567f05d30Smrg}
257667f05d30Smrg_ACEOF
257767f05d30Smrgrm -f conftest.$ac_objext
257867f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
257967f05d30Smrg  (eval $ac_compile) 2>conftest.er1
258067f05d30Smrg  ac_status=$?
258167f05d30Smrg  grep -v '^ *+' conftest.er1 >conftest.err
258267f05d30Smrg  rm -f conftest.er1
258367f05d30Smrg  cat conftest.err >&5
258467f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
258567f05d30Smrg  (exit $ac_status); } &&
258667f05d30Smrg	 { ac_try='test -z "$ac_c_werror_flag"
258767f05d30Smrg			 || test ! -s conftest.err'
258867f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
258967f05d30Smrg  (eval $ac_try) 2>&5
259067f05d30Smrg  ac_status=$?
259167f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
259267f05d30Smrg  (exit $ac_status); }; } &&
259367f05d30Smrg	 { ac_try='test -s conftest.$ac_objext'
259467f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
259567f05d30Smrg  (eval $ac_try) 2>&5
259667f05d30Smrg  ac_status=$?
259767f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
259867f05d30Smrg  (exit $ac_status); }; }; then
259967f05d30Smrg  :
260067f05d30Smrgelse
260167f05d30Smrg  echo "$as_me: failed program was:" >&5
260267f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
260367f05d30Smrg
260467f05d30Smrgcontinue
260567f05d30Smrgfi
260667f05d30Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
260767f05d30Smrg  cat >conftest.$ac_ext <<_ACEOF
260867f05d30Smrg/* confdefs.h.  */
260967f05d30Smrg_ACEOF
261067f05d30Smrgcat confdefs.h >>conftest.$ac_ext
261167f05d30Smrgcat >>conftest.$ac_ext <<_ACEOF
261267f05d30Smrg/* end confdefs.h.  */
261367f05d30Smrg$ac_declaration
261467f05d30Smrgint
261567f05d30Smrgmain ()
261667f05d30Smrg{
261767f05d30Smrgexit (42);
261867f05d30Smrg  ;
261967f05d30Smrg  return 0;
262067f05d30Smrg}
262167f05d30Smrg_ACEOF
262267f05d30Smrgrm -f conftest.$ac_objext
262367f05d30Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
262467f05d30Smrg  (eval $ac_compile) 2>conftest.er1
262567f05d30Smrg  ac_status=$?
262667f05d30Smrg  grep -v '^ *+' conftest.er1 >conftest.err
262767f05d30Smrg  rm -f conftest.er1
262867f05d30Smrg  cat conftest.err >&5
262967f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
263067f05d30Smrg  (exit $ac_status); } &&
263167f05d30Smrg	 { ac_try='test -z "$ac_c_werror_flag"
263267f05d30Smrg			 || test ! -s conftest.err'
263367f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
263467f05d30Smrg  (eval $ac_try) 2>&5
263567f05d30Smrg  ac_status=$?
263667f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
263767f05d30Smrg  (exit $ac_status); }; } &&
263867f05d30Smrg	 { ac_try='test -s conftest.$ac_objext'
263967f05d30Smrg  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
264067f05d30Smrg  (eval $ac_try) 2>&5
264167f05d30Smrg  ac_status=$?
264267f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
264367f05d30Smrg  (exit $ac_status); }; }; then
264467f05d30Smrg  break
264567f05d30Smrgelse
264667f05d30Smrg  echo "$as_me: failed program was:" >&5
264767f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
264867f05d30Smrg
264967f05d30Smrgfi
265067f05d30Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
265167f05d30Smrgdone
265267f05d30Smrgrm -f conftest*
265367f05d30Smrgif test -n "$ac_declaration"; then
265467f05d30Smrg  echo '#ifdef __cplusplus' >>confdefs.h
265567f05d30Smrg  echo $ac_declaration      >>confdefs.h
265667f05d30Smrg  echo '#endif'             >>confdefs.h
265767f05d30Smrgfi
265867f05d30Smrg
265967f05d30Smrgelse
266067f05d30Smrg  echo "$as_me: failed program was:" >&5
266167f05d30Smrgsed 's/^/| /' conftest.$ac_ext >&5
266267f05d30Smrg
266367f05d30Smrgfi
266467f05d30Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext
266567f05d30Smrgac_ext=c
266667f05d30Smrgac_cpp='$CPP $CPPFLAGS'
266767f05d30Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
266867f05d30Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
266967f05d30Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
267067f05d30SmrgDEPDIR="${am__leading_dot}deps"
267167f05d30Smrg
267267f05d30Smrg          ac_config_commands="$ac_config_commands depfiles"
267367f05d30Smrg
267467f05d30Smrg
267567f05d30Smrgam_make=${MAKE-make}
267667f05d30Smrgcat > confinc << 'END'
267767f05d30Smrgam__doit:
267867f05d30Smrg	@echo done
267967f05d30Smrg.PHONY: am__doit
268067f05d30SmrgEND
268167f05d30Smrg# If we don't find an include directive, just comment out the code.
268267f05d30Smrgecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
268367f05d30Smrgecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
268467f05d30Smrgam__include="#"
268567f05d30Smrgam__quote=
268667f05d30Smrg_am_result=none
268767f05d30Smrg# First try GNU make style include.
268867f05d30Smrgecho "include confinc" > confmf
268967f05d30Smrg# We grep out `Entering directory' and `Leaving directory'
269067f05d30Smrg# messages which can occur if `w' ends up in MAKEFLAGS.
269167f05d30Smrg# In particular we don't look at `^make:' because GNU make might
269267f05d30Smrg# be invoked under some other name (usually "gmake"), in which
269367f05d30Smrg# case it prints its new name instead of `make'.
269467f05d30Smrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
269567f05d30Smrg   am__include=include
269667f05d30Smrg   am__quote=
269767f05d30Smrg   _am_result=GNU
269867f05d30Smrgfi
269967f05d30Smrg# Now try BSD make style include.
270067f05d30Smrgif test "$am__include" = "#"; then
270167f05d30Smrg   echo '.include "confinc"' > confmf
270267f05d30Smrg   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
270367f05d30Smrg      am__include=.include
270467f05d30Smrg      am__quote="\""
270567f05d30Smrg      _am_result=BSD
270667f05d30Smrg   fi
270767f05d30Smrgfi
270867f05d30Smrg
270967f05d30Smrg
271067f05d30Smrgecho "$as_me:$LINENO: result: $_am_result" >&5
271167f05d30Smrgecho "${ECHO_T}$_am_result" >&6
271267f05d30Smrgrm -f confinc confmf
271367f05d30Smrg
271467f05d30Smrg# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
271567f05d30Smrgif test "${enable_dependency_tracking+set}" = set; then
271667f05d30Smrg  enableval="$enable_dependency_tracking"
271767f05d30Smrg
271867f05d30Smrgfi;
271967f05d30Smrgif test "x$enable_dependency_tracking" != xno; then
272067f05d30Smrg  am_depcomp="$ac_aux_dir/depcomp"
272167f05d30Smrg  AMDEPBACKSLASH='\'
272267f05d30Smrgfi
272367f05d30Smrg
272467f05d30Smrg
272567f05d30Smrgif test "x$enable_dependency_tracking" != xno; then
272667f05d30Smrg  AMDEP_TRUE=
272767f05d30Smrg  AMDEP_FALSE='#'
272867f05d30Smrgelse
272967f05d30Smrg  AMDEP_TRUE='#'
273067f05d30Smrg  AMDEP_FALSE=
273167f05d30Smrgfi
273267f05d30Smrg
273367f05d30Smrg
273467f05d30Smrg
273567f05d30Smrg
273667f05d30Smrgdepcc="$CC"   am_compiler_list=
273767f05d30Smrg
273867f05d30Smrgecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
273967f05d30Smrgecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
274067f05d30Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
274167f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
274267f05d30Smrgelse
274367f05d30Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
274467f05d30Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
274567f05d30Smrg  # making bogus files that we don't know about and never remove.  For
274667f05d30Smrg  # instance it was reported that on HP-UX the gcc test will end up
274767f05d30Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
274867f05d30Smrg  # in D'.
274967f05d30Smrg  mkdir conftest.dir
275067f05d30Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
275167f05d30Smrg  # using a relative directory.
275267f05d30Smrg  cp "$am_depcomp" conftest.dir
275367f05d30Smrg  cd conftest.dir
275467f05d30Smrg  # We will build objects and dependencies in a subdirectory because
275567f05d30Smrg  # it helps to detect inapplicable dependency modes.  For instance
275667f05d30Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
275767f05d30Smrg  # side effect of compilation, but ICC will put the dependencies in
275867f05d30Smrg  # the current directory while Tru64 will put them in the object
275967f05d30Smrg  # directory.
276067f05d30Smrg  mkdir sub
276167f05d30Smrg
276267f05d30Smrg  am_cv_CC_dependencies_compiler_type=none
276367f05d30Smrg  if test "$am_compiler_list" = ""; then
276467f05d30Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
276567f05d30Smrg  fi
276667f05d30Smrg  for depmode in $am_compiler_list; do
276767f05d30Smrg    # Setup a source with many dependencies, because some compilers
276867f05d30Smrg    # like to wrap large dependency lists on column 80 (with \), and
276967f05d30Smrg    # we should not choose a depcomp mode which is confused by this.
277067f05d30Smrg    #
277167f05d30Smrg    # We need to recreate these files for each test, as the compiler may
277267f05d30Smrg    # overwrite some of them when testing with obscure command lines.
277367f05d30Smrg    # This happens at least with the AIX C compiler.
277467f05d30Smrg    : > sub/conftest.c
277567f05d30Smrg    for i in 1 2 3 4 5 6; do
277667f05d30Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
277767f05d30Smrg      : > sub/conftst$i.h
277867f05d30Smrg    done
277967f05d30Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
278067f05d30Smrg
278167f05d30Smrg    case $depmode in
278267f05d30Smrg    nosideeffect)
278367f05d30Smrg      # after this tag, mechanisms are not by side-effect, so they'll
278467f05d30Smrg      # only be used when explicitly requested
278567f05d30Smrg      if test "x$enable_dependency_tracking" = xyes; then
278667f05d30Smrg	continue
278767f05d30Smrg      else
278867f05d30Smrg	break
278967f05d30Smrg      fi
279067f05d30Smrg      ;;
279167f05d30Smrg    none) break ;;
279267f05d30Smrg    esac
279367f05d30Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
279467f05d30Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
279567f05d30Smrg    # handle `-M -o', and we need to detect this.
279667f05d30Smrg    if depmode=$depmode \
279767f05d30Smrg       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
279867f05d30Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
279967f05d30Smrg       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
280067f05d30Smrg         >/dev/null 2>conftest.err &&
280167f05d30Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
280267f05d30Smrg       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
280367f05d30Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
280467f05d30Smrg      # icc doesn't choke on unknown options, it will just issue warnings
280567f05d30Smrg      # (even with -Werror).  So we grep stderr for any message
280667f05d30Smrg      # that says an option was ignored.
280767f05d30Smrg      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
280867f05d30Smrg        am_cv_CC_dependencies_compiler_type=$depmode
280967f05d30Smrg        break
281067f05d30Smrg      fi
281167f05d30Smrg    fi
281267f05d30Smrg  done
281367f05d30Smrg
281467f05d30Smrg  cd ..
281567f05d30Smrg  rm -rf conftest.dir
281667f05d30Smrgelse
281767f05d30Smrg  am_cv_CC_dependencies_compiler_type=none
281867f05d30Smrgfi
281967f05d30Smrg
282067f05d30Smrgfi
282167f05d30Smrgecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
282267f05d30Smrgecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
282367f05d30SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
282467f05d30Smrg
282567f05d30Smrg
282667f05d30Smrg
282767f05d30Smrgif
282867f05d30Smrg  test "x$enable_dependency_tracking" != xno \
282967f05d30Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
283067f05d30Smrg  am__fastdepCC_TRUE=
283167f05d30Smrg  am__fastdepCC_FALSE='#'
283267f05d30Smrgelse
283367f05d30Smrg  am__fastdepCC_TRUE='#'
283467f05d30Smrg  am__fastdepCC_FALSE=
283567f05d30Smrgfi
283667f05d30Smrg
283767f05d30Smrg
283867f05d30Smrg# Find a good install program.  We prefer a C program (faster),
283967f05d30Smrg# so one script is as good as another.  But avoid the broken or
284067f05d30Smrg# incompatible versions:
284167f05d30Smrg# SysV /etc/install, /usr/sbin/install
284267f05d30Smrg# SunOS /usr/etc/install
284367f05d30Smrg# IRIX /sbin/install
284467f05d30Smrg# AIX /bin/install
284567f05d30Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
284667f05d30Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
284767f05d30Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
284867f05d30Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
284967f05d30Smrg# OS/2's system install, which has a completely different semantic
285067f05d30Smrg# ./install, which can be erroneously created by make from ./install.sh.
285167f05d30Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
285267f05d30Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
285367f05d30Smrgif test -z "$INSTALL"; then
285467f05d30Smrgif test "${ac_cv_path_install+set}" = set; then
285567f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
285667f05d30Smrgelse
285767f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
285867f05d30Smrgfor as_dir in $PATH
285967f05d30Smrgdo
286067f05d30Smrg  IFS=$as_save_IFS
286167f05d30Smrg  test -z "$as_dir" && as_dir=.
286267f05d30Smrg  # Account for people who put trailing slashes in PATH elements.
286367f05d30Smrgcase $as_dir/ in
286467f05d30Smrg  ./ | .// | /cC/* | \
286567f05d30Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
286667f05d30Smrg  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
286767f05d30Smrg  /usr/ucb/* ) ;;
286867f05d30Smrg  *)
286967f05d30Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
287067f05d30Smrg    # Don't use installbsd from OSF since it installs stuff as root
287167f05d30Smrg    # by default.
287267f05d30Smrg    for ac_prog in ginstall scoinst install; do
287367f05d30Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
287467f05d30Smrg	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
287567f05d30Smrg	  if test $ac_prog = install &&
287667f05d30Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
287767f05d30Smrg	    # AIX install.  It has an incompatible calling convention.
287867f05d30Smrg	    :
287967f05d30Smrg	  elif test $ac_prog = install &&
288067f05d30Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
288167f05d30Smrg	    # program-specific install script used by HP pwplus--don't use.
288267f05d30Smrg	    :
288367f05d30Smrg	  else
288467f05d30Smrg	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
288567f05d30Smrg	    break 3
288667f05d30Smrg	  fi
288767f05d30Smrg	fi
288867f05d30Smrg      done
288967f05d30Smrg    done
289067f05d30Smrg    ;;
289167f05d30Smrgesac
289267f05d30Smrgdone
289367f05d30Smrg
289467f05d30Smrg
289567f05d30Smrgfi
289667f05d30Smrg  if test "${ac_cv_path_install+set}" = set; then
289767f05d30Smrg    INSTALL=$ac_cv_path_install
289867f05d30Smrg  else
289967f05d30Smrg    # As a last resort, use the slow shell script.  We don't cache a
290067f05d30Smrg    # path for INSTALL within a source directory, because that will
290167f05d30Smrg    # break other packages using the cache if that directory is
290267f05d30Smrg    # removed, or if the path is relative.
290367f05d30Smrg    INSTALL=$ac_install_sh
290467f05d30Smrg  fi
290567f05d30Smrgfi
290667f05d30Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5
290767f05d30Smrgecho "${ECHO_T}$INSTALL" >&6
290867f05d30Smrg
290967f05d30Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
291067f05d30Smrg# It thinks the first close brace ends the variable substitution.
291167f05d30Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
291267f05d30Smrg
291367f05d30Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
291467f05d30Smrg
291567f05d30Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
291667f05d30Smrg
291767f05d30Smrg
291867f05d30Smrg
291967f05d30Smrg
292067f05d30Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
292167f05d30Smrg	if test -n "$ac_tool_prefix"; then
292267f05d30Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
292367f05d30Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
292467f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
292567f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
292667f05d30Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then
292767f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
292867f05d30Smrgelse
292967f05d30Smrg  case $PKG_CONFIG in
293067f05d30Smrg  [\\/]* | ?:[\\/]*)
293167f05d30Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
293267f05d30Smrg  ;;
293367f05d30Smrg  *)
293467f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
293567f05d30Smrgfor as_dir in $PATH
293667f05d30Smrgdo
293767f05d30Smrg  IFS=$as_save_IFS
293867f05d30Smrg  test -z "$as_dir" && as_dir=.
293967f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
294067f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
294167f05d30Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
294267f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
294367f05d30Smrg    break 2
294467f05d30Smrg  fi
294567f05d30Smrgdone
294667f05d30Smrgdone
294767f05d30Smrg
294867f05d30Smrg  ;;
294967f05d30Smrgesac
295067f05d30Smrgfi
295167f05d30SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
295267f05d30Smrg
295367f05d30Smrgif test -n "$PKG_CONFIG"; then
295467f05d30Smrg  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
295567f05d30Smrgecho "${ECHO_T}$PKG_CONFIG" >&6
295667f05d30Smrgelse
295767f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
295867f05d30Smrgecho "${ECHO_T}no" >&6
295967f05d30Smrgfi
296067f05d30Smrg
296167f05d30Smrgfi
296267f05d30Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
296367f05d30Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
296467f05d30Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
296567f05d30Smrgset dummy pkg-config; ac_word=$2
296667f05d30Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5
296767f05d30Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
296867f05d30Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
296967f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
297067f05d30Smrgelse
297167f05d30Smrg  case $ac_pt_PKG_CONFIG in
297267f05d30Smrg  [\\/]* | ?:[\\/]*)
297367f05d30Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
297467f05d30Smrg  ;;
297567f05d30Smrg  *)
297667f05d30Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
297767f05d30Smrgfor as_dir in $PATH
297867f05d30Smrgdo
297967f05d30Smrg  IFS=$as_save_IFS
298067f05d30Smrg  test -z "$as_dir" && as_dir=.
298167f05d30Smrg  for ac_exec_ext in '' $ac_executable_extensions; do
298267f05d30Smrg  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
298367f05d30Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
298467f05d30Smrg    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
298567f05d30Smrg    break 2
298667f05d30Smrg  fi
298767f05d30Smrgdone
298867f05d30Smrgdone
298967f05d30Smrg
299067f05d30Smrg  ;;
299167f05d30Smrgesac
299267f05d30Smrgfi
299367f05d30Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
299467f05d30Smrg
299567f05d30Smrgif test -n "$ac_pt_PKG_CONFIG"; then
299667f05d30Smrg  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
299767f05d30Smrgecho "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
299867f05d30Smrgelse
299967f05d30Smrg  echo "$as_me:$LINENO: result: no" >&5
300067f05d30Smrgecho "${ECHO_T}no" >&6
300167f05d30Smrgfi
300267f05d30Smrg
300367f05d30Smrg  PKG_CONFIG=$ac_pt_PKG_CONFIG
300467f05d30Smrgelse
300567f05d30Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
300667f05d30Smrgfi
300767f05d30Smrg
300867f05d30Smrgfi
300967f05d30Smrgif test -n "$PKG_CONFIG"; then
301067f05d30Smrg	_pkg_min_version=0.9.0
301167f05d30Smrg	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
301267f05d30Smrgecho $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
301367f05d30Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
301467f05d30Smrg		echo "$as_me:$LINENO: result: yes" >&5
301567f05d30Smrgecho "${ECHO_T}yes" >&6
301667f05d30Smrg	else
301767f05d30Smrg		echo "$as_me:$LINENO: result: no" >&5
301867f05d30Smrgecho "${ECHO_T}no" >&6
301967f05d30Smrg		PKG_CONFIG=""
302067f05d30Smrg	fi
302167f05d30Smrg
302267f05d30Smrgfi
302367f05d30Smrg
302467f05d30Smrg	# Check whether --enable-xprint or --disable-xprint was given.
302567f05d30Smrgif test "${enable_xprint+set}" = set; then
302667f05d30Smrg  enableval="$enable_xprint"
302767f05d30Smrg  use_xprint=$enableval
302867f05d30Smrgelse
302967f05d30Smrg  use_xprint=auto
303067f05d30Smrgfi;
303167f05d30Smrg	if test "x$use_xprint" = "xyes"; then
303267f05d30Smrg		TMP_CHECK1=xaw8
303367f05d30Smrg		TMP_CHECK2=
303467f05d30Smrg		xaw_use_xprint=yes
303567f05d30Smrg	elif test "x$use_xprint" = "xno"; then
303667f05d30Smrg		TMP_CHECK1=xaw7
303767f05d30Smrg		TMP_CHECK2=
303867f05d30Smrg		xaw_use_xprint=no
303967f05d30Smrg	else
304067f05d30Smrg		TMP_CHECK1=xaw8
304167f05d30Smrg		TMP_CHECK2=xaw7
304267f05d30Smrg		xaw_use_xprint=yes
304367f05d30Smrg	fi
304467f05d30Smrg
304567f05d30Smrg
304667f05d30Smrgpkg_failed=no
304767f05d30Smrgecho "$as_me:$LINENO: checking for TMP_XAW" >&5
304867f05d30Smrgecho $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
304967f05d30Smrg
305067f05d30Smrgif test -n "$PKG_CONFIG"; then
305167f05d30Smrg    if test -n "$TMP_XAW_CFLAGS"; then
305267f05d30Smrg        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
305367f05d30Smrg    else
305467f05d30Smrg        if test -n "$PKG_CONFIG" && \
305567f05d30Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
305667f05d30Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
305767f05d30Smrg  ac_status=$?
305867f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
305967f05d30Smrg  (exit $ac_status); }; then
306067f05d30Smrg  pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK1" 2>/dev/null`
306167f05d30Smrgelse
306267f05d30Smrg  pkg_failed=yes
306367f05d30Smrgfi
306467f05d30Smrg    fi
306567f05d30Smrgelse
306667f05d30Smrg	pkg_failed=untried
306767f05d30Smrgfi
306867f05d30Smrgif test -n "$PKG_CONFIG"; then
306967f05d30Smrg    if test -n "$TMP_XAW_LIBS"; then
307067f05d30Smrg        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
307167f05d30Smrg    else
307267f05d30Smrg        if test -n "$PKG_CONFIG" && \
307367f05d30Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
307467f05d30Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
307567f05d30Smrg  ac_status=$?
307667f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
307767f05d30Smrg  (exit $ac_status); }; then
307867f05d30Smrg  pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK1" 2>/dev/null`
307967f05d30Smrgelse
308067f05d30Smrg  pkg_failed=yes
308167f05d30Smrgfi
308267f05d30Smrg    fi
308367f05d30Smrgelse
308467f05d30Smrg	pkg_failed=untried
308567f05d30Smrgfi
308667f05d30Smrg
308767f05d30Smrg
308867f05d30Smrg
308967f05d30Smrgif test $pkg_failed = yes; then
309067f05d30Smrg
309167f05d30Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
309267f05d30Smrg        _pkg_short_errors_supported=yes
309367f05d30Smrgelse
309467f05d30Smrg        _pkg_short_errors_supported=no
309567f05d30Smrgfi
309667f05d30Smrg        if test $_pkg_short_errors_supported = yes; then
309767f05d30Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK1"`
309867f05d30Smrg        else
309967f05d30Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
310067f05d30Smrg        fi
310167f05d30Smrg	# Put the nasty error message in config.log where it belongs
310267f05d30Smrg	echo "$TMP_XAW_PKG_ERRORS" >&5
310367f05d30Smrg
310467f05d30Smrg	success=no
310567f05d30Smrgelif test $pkg_failed = untried; then
310667f05d30Smrg	success=no
310767f05d30Smrgelse
310867f05d30Smrg	TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
310967f05d30Smrg	TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
311067f05d30Smrg        echo "$as_me:$LINENO: result: yes" >&5
311167f05d30Smrgecho "${ECHO_T}yes" >&6
311267f05d30Smrg	success=yes
311367f05d30Smrgfi
311467f05d30Smrg	if [ ! -z $TMP_CHECK2 ] ; then
311567f05d30Smrg		if test $success = no ; then
311667f05d30Smrg
311767f05d30Smrgpkg_failed=no
311867f05d30Smrgecho "$as_me:$LINENO: checking for TMP_XAW" >&5
311967f05d30Smrgecho $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
312067f05d30Smrg
312167f05d30Smrgif test -n "$PKG_CONFIG"; then
312267f05d30Smrg    if test -n "$TMP_XAW_CFLAGS"; then
312367f05d30Smrg        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
312467f05d30Smrg    else
312567f05d30Smrg        if test -n "$PKG_CONFIG" && \
312667f05d30Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
312767f05d30Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
312867f05d30Smrg  ac_status=$?
312967f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
313067f05d30Smrg  (exit $ac_status); }; then
313167f05d30Smrg  pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK2" 2>/dev/null`
313267f05d30Smrgelse
313367f05d30Smrg  pkg_failed=yes
313467f05d30Smrgfi
313567f05d30Smrg    fi
313667f05d30Smrgelse
313767f05d30Smrg	pkg_failed=untried
313867f05d30Smrgfi
313967f05d30Smrgif test -n "$PKG_CONFIG"; then
314067f05d30Smrg    if test -n "$TMP_XAW_LIBS"; then
314167f05d30Smrg        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
314267f05d30Smrg    else
314367f05d30Smrg        if test -n "$PKG_CONFIG" && \
314467f05d30Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
314567f05d30Smrg  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
314667f05d30Smrg  ac_status=$?
314767f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
314867f05d30Smrg  (exit $ac_status); }; then
314967f05d30Smrg  pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK2" 2>/dev/null`
315067f05d30Smrgelse
315167f05d30Smrg  pkg_failed=yes
315267f05d30Smrgfi
315367f05d30Smrg    fi
315467f05d30Smrgelse
315567f05d30Smrg	pkg_failed=untried
315667f05d30Smrgfi
315767f05d30Smrg
315867f05d30Smrg
315967f05d30Smrg
316067f05d30Smrgif test $pkg_failed = yes; then
316167f05d30Smrg
316267f05d30Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
316367f05d30Smrg        _pkg_short_errors_supported=yes
316467f05d30Smrgelse
316567f05d30Smrg        _pkg_short_errors_supported=no
316667f05d30Smrgfi
316767f05d30Smrg        if test $_pkg_short_errors_supported = yes; then
316867f05d30Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK2"`
316967f05d30Smrg        else
317067f05d30Smrg	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
317167f05d30Smrg        fi
317267f05d30Smrg	# Put the nasty error message in config.log where it belongs
317367f05d30Smrg	echo "$TMP_XAW_PKG_ERRORS" >&5
317467f05d30Smrg
317567f05d30Smrg	success=no
317667f05d30Smrgelif test $pkg_failed = untried; then
317767f05d30Smrg	success=no
317867f05d30Smrgelse
317967f05d30Smrg	TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
318067f05d30Smrg	TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
318167f05d30Smrg        echo "$as_me:$LINENO: result: yes" >&5
318267f05d30Smrgecho "${ECHO_T}yes" >&6
318367f05d30Smrg	success=yes
318467f05d30Smrgfi
318567f05d30Smrg			xaw_use_xprint=no
318667f05d30Smrg		fi
318767f05d30Smrg	fi
318867f05d30Smrg
318967f05d30Smrg	if test "x$success" = "xyes"; then
319067f05d30Smrg		VIEWRES_CFLAGS=$TMP_XAW_CFLAGS
319167f05d30Smrg		VIEWRES_LIBS=$TMP_XAW_LIBS
319267f05d30Smrg
319367f05d30Smrg
319467f05d30Smrg
319567f05d30Smrgif test "x$xaw_use_xprint" = "xyes"; then
319667f05d30Smrg  XAW_USE_XPRINT_TRUE=
319767f05d30Smrg  XAW_USE_XPRINT_FALSE='#'
319867f05d30Smrgelse
319967f05d30Smrg  XAW_USE_XPRINT_TRUE='#'
320067f05d30Smrg  XAW_USE_XPRINT_FALSE=
320167f05d30Smrgfi
320267f05d30Smrg
320367f05d30Smrg	else
320467f05d30Smrg		{ { echo "$as_me:$LINENO: error: No suitable version of Xaw found" >&5
320567f05d30Smrgecho "$as_me: error: No suitable version of Xaw found" >&2;}
320667f05d30Smrg   { (exit 1); exit 1; }; }
320767f05d30Smrg	fi
320867f05d30Smrg
320967f05d30Smrg
321067f05d30Smrg
321167f05d30Smrg
321267f05d30Smrg
321367f05d30Smrg
321467f05d30Smrgpkg_failed=no
321567f05d30Smrgecho "$as_me:$LINENO: checking for APPDEFS" >&5
321667f05d30Smrgecho $ECHO_N "checking for APPDEFS... $ECHO_C" >&6
321767f05d30Smrg
321867f05d30Smrgif test -n "$PKG_CONFIG"; then
321967f05d30Smrg    if test -n "$APPDEFS_CFLAGS"; then
322067f05d30Smrg        pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
322167f05d30Smrg    else
322267f05d30Smrg        if test -n "$PKG_CONFIG" && \
322367f05d30Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
322467f05d30Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
322567f05d30Smrg  ac_status=$?
322667f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
322767f05d30Smrg  (exit $ac_status); }; then
322867f05d30Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
322967f05d30Smrgelse
323067f05d30Smrg  pkg_failed=yes
323167f05d30Smrgfi
323267f05d30Smrg    fi
323367f05d30Smrgelse
323467f05d30Smrg	pkg_failed=untried
323567f05d30Smrgfi
323667f05d30Smrgif test -n "$PKG_CONFIG"; then
323767f05d30Smrg    if test -n "$APPDEFS_LIBS"; then
323867f05d30Smrg        pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
323967f05d30Smrg    else
324067f05d30Smrg        if test -n "$PKG_CONFIG" && \
324167f05d30Smrg    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
324267f05d30Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
324367f05d30Smrg  ac_status=$?
324467f05d30Smrg  echo "$as_me:$LINENO: \$? = $ac_status" >&5
324567f05d30Smrg  (exit $ac_status); }; then
324667f05d30Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
324767f05d30Smrgelse
324867f05d30Smrg  pkg_failed=yes
324967f05d30Smrgfi
325067f05d30Smrg    fi
325167f05d30Smrgelse
325267f05d30Smrg	pkg_failed=untried
325367f05d30Smrgfi
325467f05d30Smrg
325567f05d30Smrg
325667f05d30Smrg
325767f05d30Smrgif test $pkg_failed = yes; then
325867f05d30Smrg
325967f05d30Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
326067f05d30Smrg        _pkg_short_errors_supported=yes
326167f05d30Smrgelse
326267f05d30Smrg        _pkg_short_errors_supported=no
326367f05d30Smrgfi
326467f05d30Smrg        if test $_pkg_short_errors_supported = yes; then
326567f05d30Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"`
326667f05d30Smrg        else
326767f05d30Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
326867f05d30Smrg        fi
326967f05d30Smrg	# Put the nasty error message in config.log where it belongs
327067f05d30Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
327167f05d30Smrg
327267f05d30Smrg	{ { echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
327367f05d30Smrg
327467f05d30Smrg$APPDEFS_PKG_ERRORS
327567f05d30Smrg
327667f05d30SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
327767f05d30Smrginstalled software in a non-standard prefix.
327867f05d30Smrg
327967f05d30SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
328067f05d30Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
328167f05d30SmrgSee the pkg-config man page for more details.
328267f05d30Smrg" >&5
328367f05d30Smrgecho "$as_me: error: Package requirements (xt) were not met:
328467f05d30Smrg
328567f05d30Smrg$APPDEFS_PKG_ERRORS
328667f05d30Smrg
328767f05d30SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
328867f05d30Smrginstalled software in a non-standard prefix.
328967f05d30Smrg
329067f05d30SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
329167f05d30Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
329267f05d30SmrgSee the pkg-config man page for more details.
329367f05d30Smrg" >&2;}
329467f05d30Smrg   { (exit 1); exit 1; }; }
329567f05d30Smrgelif test $pkg_failed = untried; then
329667f05d30Smrg	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
329767f05d30Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
329867f05d30Smrgpath to pkg-config.
329967f05d30Smrg
330067f05d30SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
330167f05d30Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
330267f05d30SmrgSee the pkg-config man page for more details.
330367f05d30Smrg
330467f05d30SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
330567f05d30SmrgSee \`config.log' for more details." >&5
330667f05d30Smrgecho "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
330767f05d30Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
330867f05d30Smrgpath to pkg-config.
330967f05d30Smrg
331067f05d30SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
331167f05d30Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
331267f05d30SmrgSee the pkg-config man page for more details.
331367f05d30Smrg
331467f05d30SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
331567f05d30SmrgSee \`config.log' for more details." >&2;}
331667f05d30Smrg   { (exit 1); exit 1; }; }
331767f05d30Smrgelse
331867f05d30Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
331967f05d30Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
332067f05d30Smrg        echo "$as_me:$LINENO: result: yes" >&5
332167f05d30Smrgecho "${ECHO_T}yes" >&6
332267f05d30Smrg	:
332367f05d30Smrgfi
332467f05d30Smrgappdefaultdir=$(pkg-config --variable=appdefaultdir xt)
332567f05d30Smrg
332667f05d30Smrg
332767f05d30Smrg# Make sure we can run config.sub.
332867f05d30Smrg$ac_config_sub sun4 >/dev/null 2>&1 ||
332967f05d30Smrg  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
333067f05d30Smrgecho "$as_me: error: cannot run $ac_config_sub" >&2;}
333167f05d30Smrg   { (exit 1); exit 1; }; }
333267f05d30Smrg
333367f05d30Smrgecho "$as_me:$LINENO: checking build system type" >&5
333467f05d30Smrgecho $ECHO_N "checking build system type... $ECHO_C" >&6
333567f05d30Smrgif test "${ac_cv_build+set}" = set; then
333667f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
333767f05d30Smrgelse
333867f05d30Smrg  ac_cv_build_alias=$build_alias
333967f05d30Smrgtest -z "$ac_cv_build_alias" &&
334067f05d30Smrg  ac_cv_build_alias=`$ac_config_guess`
334167f05d30Smrgtest -z "$ac_cv_build_alias" &&
334267f05d30Smrg  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
334367f05d30Smrgecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
334467f05d30Smrg   { (exit 1); exit 1; }; }
334567f05d30Smrgac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
334667f05d30Smrg  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
334767f05d30Smrgecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
334867f05d30Smrg   { (exit 1); exit 1; }; }
334967f05d30Smrg
335067f05d30Smrgfi
335167f05d30Smrgecho "$as_me:$LINENO: result: $ac_cv_build" >&5
335267f05d30Smrgecho "${ECHO_T}$ac_cv_build" >&6
335367f05d30Smrgbuild=$ac_cv_build
335467f05d30Smrgbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
335567f05d30Smrgbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
335667f05d30Smrgbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
335767f05d30Smrg
335867f05d30Smrg
335967f05d30Smrgecho "$as_me:$LINENO: checking host system type" >&5
336067f05d30Smrgecho $ECHO_N "checking host system type... $ECHO_C" >&6
336167f05d30Smrgif test "${ac_cv_host+set}" = set; then
336267f05d30Smrg  echo $ECHO_N "(cached) $ECHO_C" >&6
336367f05d30Smrgelse
336467f05d30Smrg  ac_cv_host_alias=$host_alias
336567f05d30Smrgtest -z "$ac_cv_host_alias" &&
336667f05d30Smrg  ac_cv_host_alias=$ac_cv_build_alias
336767f05d30Smrgac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
336867f05d30Smrg  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
336967f05d30Smrgecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
337067f05d30Smrg   { (exit 1); exit 1; }; }
337167f05d30Smrg
337267f05d30Smrgfi
337367f05d30Smrgecho "$as_me:$LINENO: result: $ac_cv_host" >&5
337467f05d30Smrgecho "${ECHO_T}$ac_cv_host" >&6
337567f05d30Smrghost=$ac_cv_host
337667f05d30Smrghost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
337767f05d30Smrghost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
337867f05d30Smrghost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
337967f05d30Smrg
338067f05d30Smrg
338167f05d30Smrg
338267f05d30Smrg
338367f05d30Smrg
338467f05d30Smrgif test x$APP_MAN_SUFFIX = x    ; then
338567f05d30Smrg    case $host_os in
338667f05d30Smrg	linux*)	APP_MAN_SUFFIX=1x ;;
338767f05d30Smrg	*)	APP_MAN_SUFFIX=1  ;;
338867f05d30Smrg    esac
338967f05d30Smrgfi
339067f05d30Smrgif test x$APP_MAN_DIR = x    ; then
339167f05d30Smrg    case $host_os in
339267f05d30Smrg	linux*)	APP_MAN_DIR='$(mandir)/man1' ;;
339367f05d30Smrg	*)	APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
339467f05d30Smrg    esac
339567f05d30Smrgfi
339667f05d30Smrg
339767f05d30Smrgif test x$LIB_MAN_SUFFIX = x    ; then
339867f05d30Smrg    case $host_os in
339967f05d30Smrg	linux*)	LIB_MAN_SUFFIX=3x ;;
340067f05d30Smrg	*)	LIB_MAN_SUFFIX=3  ;;
340167f05d30Smrg    esac
340267f05d30Smrgfi
340367f05d30Smrgif test x$LIB_MAN_DIR = x    ; then
340467f05d30Smrg    case $host_os in
340567f05d30Smrg	linux*)	LIB_MAN_DIR='$(mandir)/man3' ;;
340667f05d30Smrg	*)	LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
340767f05d30Smrg    esac
340867f05d30Smrgfi
340967f05d30Smrg
341067f05d30Smrgif test x$FILE_MAN_SUFFIX = x    ; then
341167f05d30Smrg    case $host_os in
341267f05d30Smrg	linux*)		FILE_MAN_SUFFIX=5x ;;
341367f05d30Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
341467f05d30Smrg	*)		FILE_MAN_SUFFIX=5  ;;
341567f05d30Smrg    esac
341667f05d30Smrgfi
341767f05d30Smrgif test x$FILE_MAN_DIR = x    ; then
341867f05d30Smrg    case $host_os in
341967f05d30Smrg	linux*)	FILE_MAN_DIR='$(mandir)/man5' ;;
342067f05d30Smrg	*)	FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
342167f05d30Smrg    esac
342267f05d30Smrgfi
342367f05d30Smrg
342467f05d30Smrg# In Imake's linux.cf, the misc man suffix & dir was only changed for
342567f05d30Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here
342667f05d30Smrgif test x$MISC_MAN_SUFFIX = x    ; then
342767f05d30Smrg    case $host_os in
342867f05d30Smrg#	linux*)		MISC_MAN_SUFFIX=7x ;;
342967f05d30Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
343067f05d30Smrg	*)		MISC_MAN_SUFFIX=7  ;;
343167f05d30Smrg    esac
343267f05d30Smrgfi
343367f05d30Smrgif test x$MISC_MAN_DIR = x    ; then
343467f05d30Smrg    case $host_os in
343567f05d30Smrg#	linux*)	MISC_MAN_DIR='$(mandir)/man7' ;;
343667f05d30Smrg	*)	MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
343767f05d30Smrg    esac
343867f05d30Smrgfi
343967f05d30Smrg
344067f05d30Smrg# In Imake's linux.cf, the driver man suffix & dir was only changed for
344167f05d30Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here
344267f05d30Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
344367f05d30Smrg    case $host_os in
344467f05d30Smrg#	linux*)		DRIVER_MAN_SUFFIX=4x ;;
344567f05d30Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
344667f05d30Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
344767f05d30Smrg    esac
344867f05d30Smrgfi
344967f05d30Smrgif test x$DRIVER_MAN_DIR = x    ; then
345067f05d30Smrg    case $host_os in
345167f05d30Smrg#	linux*)	DRIVER_MAN_DIR='$(mandir)/man4' ;;
345267f05d30Smrg	*)	DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
345367f05d30Smrg    esac
345467f05d30Smrgfi
345567f05d30Smrg
345667f05d30Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
345767f05d30Smrg    case $host_os in
345867f05d30Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
345967f05d30Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
346067f05d30Smrg    esac
346167f05d30Smrgfi
346267f05d30Smrgif test x$ADMIN_MAN_DIR = x    ; then
346367f05d30Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
346467f05d30Smrgfi
346567f05d30Smrg
346667f05d30Smrg
346767f05d30Smrg
346867f05d30Smrg
346967f05d30Smrg
347067f05d30Smrg
347167f05d30Smrg
347267f05d30Smrg
347367f05d30Smrg
347467f05d30Smrg
347567f05d30Smrg
347667f05d30Smrg
347767f05d30Smrg
347867f05d30Smrg
347967f05d30Smrg
348067f05d30Smrg
348167f05d30Smrg
348267f05d30Smrg# Check whether --with-release-version or --without-release-version was given.
348367f05d30Smrgif test "${with_release_version+set}" = set; then
348467f05d30Smrg  withval="$with_release_version"
348567f05d30Smrg  RELEASE_VERSION="$withval"
348667f05d30Smrgelse
348767f05d30Smrg  RELEASE_VERSION=""
348867f05d30Smrgfi;
348967f05d30Smrg	if test "x$RELEASE_VERSION" != "x"; then
349067f05d30Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
349167f05d30Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
349267f05d30Smrg		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
349367f05d30Smrgecho "$as_me: Building with package name set to $PACKAGE" >&6;}
349467f05d30Smrg	fi
349567f05d30Smrg
349667f05d30Smrg
349767f05d30Smrg          ac_config_files="$ac_config_files Makefile"
349867f05d30Smrgcat >confcache <<\_ACEOF
349967f05d30Smrg# This file is a shell script that caches the results of configure
350067f05d30Smrg# tests run on this system so they can be shared between configure
350167f05d30Smrg# scripts and configure runs, see configure's option --config-cache.
350267f05d30Smrg# It is not useful on other systems.  If it contains results you don't
350367f05d30Smrg# want to keep, you may remove or edit it.
350467f05d30Smrg#
350567f05d30Smrg# config.status only pays attention to the cache file if you give it
350667f05d30Smrg# the --recheck option to rerun configure.
350767f05d30Smrg#
350867f05d30Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
350967f05d30Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
351067f05d30Smrg# following values.
351167f05d30Smrg
351267f05d30Smrg_ACEOF
351367f05d30Smrg
351467f05d30Smrg# The following way of writing the cache mishandles newlines in values,
351567f05d30Smrg# but we know of no workaround that is simple, portable, and efficient.
351667f05d30Smrg# So, don't put newlines in cache variables' values.
351767f05d30Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
351867f05d30Smrg# and sets the high bit in the cache file unless we assign to the vars.
351967f05d30Smrg{
352067f05d30Smrg  (set) 2>&1 |
352167f05d30Smrg    case `(ac_space=' '; set | grep ac_space) 2>&1` in
352267f05d30Smrg    *ac_space=\ *)
352367f05d30Smrg      # `set' does not quote correctly, so add quotes (double-quote
352467f05d30Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \).
352567f05d30Smrg      sed -n \
352667f05d30Smrg	"s/'/'\\\\''/g;
352767f05d30Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
352867f05d30Smrg      ;;
352967f05d30Smrg    *)
353067f05d30Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
353167f05d30Smrg      sed -n \
353267f05d30Smrg	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
353367f05d30Smrg      ;;
353467f05d30Smrg    esac;
353567f05d30Smrg} |
353667f05d30Smrg  sed '
353767f05d30Smrg     t clear
353867f05d30Smrg     : clear
353967f05d30Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
354067f05d30Smrg     t end
354167f05d30Smrg     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
354267f05d30Smrg     : end' >>confcache
354367f05d30Smrgif diff $cache_file confcache >/dev/null 2>&1; then :; else
354467f05d30Smrg  if test -w $cache_file; then
354567f05d30Smrg    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
354667f05d30Smrg    cat confcache >$cache_file
354767f05d30Smrg  else
354867f05d30Smrg    echo "not updating unwritable cache $cache_file"
354967f05d30Smrg  fi
355067f05d30Smrgfi
355167f05d30Smrgrm -f confcache
355267f05d30Smrg
355367f05d30Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
355467f05d30Smrg# Let make expand exec_prefix.
355567f05d30Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
355667f05d30Smrg
355767f05d30Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
355867f05d30Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
355967f05d30Smrg# trailing colons and then remove the whole line if VPATH becomes empty
356067f05d30Smrg# (actually we leave an empty line to preserve line numbers).
356167f05d30Smrgif test "x$srcdir" = x.; then
356267f05d30Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
356367f05d30Smrgs/:*\$(srcdir):*/:/;
356467f05d30Smrgs/:*\${srcdir}:*/:/;
356567f05d30Smrgs/:*@srcdir@:*/:/;
356667f05d30Smrgs/^\([^=]*=[	 ]*\):*/\1/;
356767f05d30Smrgs/:*$//;
356867f05d30Smrgs/^[^=]*=[	 ]*$//;
356967f05d30Smrg}'
357067f05d30Smrgfi
357167f05d30Smrg
357267f05d30SmrgDEFS=-DHAVE_CONFIG_H
357367f05d30Smrg
357467f05d30Smrgac_libobjs=
357567f05d30Smrgac_ltlibobjs=
357667f05d30Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
357767f05d30Smrg  # 1. Remove the extension, and $U if already installed.
357867f05d30Smrg  ac_i=`echo "$ac_i" |
357967f05d30Smrg	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
358067f05d30Smrg  # 2. Add them.
358167f05d30Smrg  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
358267f05d30Smrg  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
358367f05d30Smrgdone
358467f05d30SmrgLIBOBJS=$ac_libobjs
358567f05d30Smrg
358667f05d30SmrgLTLIBOBJS=$ac_ltlibobjs
358767f05d30Smrg
358867f05d30Smrg
358967f05d30Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
359067f05d30Smrg  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
359167f05d30SmrgUsually this means the macro was only invoked conditionally." >&5
359267f05d30Smrgecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
359367f05d30SmrgUsually this means the macro was only invoked conditionally." >&2;}
359467f05d30Smrg   { (exit 1); exit 1; }; }
359567f05d30Smrgfi
359667f05d30Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
359767f05d30Smrg  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
359867f05d30SmrgUsually this means the macro was only invoked conditionally." >&5
359967f05d30Smrgecho "$as_me: error: conditional \"AMDEP\" was never defined.
360067f05d30SmrgUsually this means the macro was only invoked conditionally." >&2;}
360167f05d30Smrg   { (exit 1); exit 1; }; }
360267f05d30Smrgfi
360367f05d30Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
360467f05d30Smrg  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
360567f05d30SmrgUsually this means the macro was only invoked conditionally." >&5
360667f05d30Smrgecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
360767f05d30SmrgUsually this means the macro was only invoked conditionally." >&2;}
360867f05d30Smrg   { (exit 1); exit 1; }; }
360967f05d30Smrgfi
361067f05d30Smrgif test -z "${XAW_USE_XPRINT_TRUE}" && test -z "${XAW_USE_XPRINT_FALSE}"; then
361167f05d30Smrg  { { echo "$as_me:$LINENO: error: conditional \"XAW_USE_XPRINT\" was never defined.
361267f05d30SmrgUsually this means the macro was only invoked conditionally." >&5
361367f05d30Smrgecho "$as_me: error: conditional \"XAW_USE_XPRINT\" was never defined.
361467f05d30SmrgUsually this means the macro was only invoked conditionally." >&2;}
361567f05d30Smrg   { (exit 1); exit 1; }; }
361667f05d30Smrgfi
361767f05d30Smrg
361867f05d30Smrg: ${CONFIG_STATUS=./config.status}
361967f05d30Smrgac_clean_files_save=$ac_clean_files
362067f05d30Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
362167f05d30Smrg{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
362267f05d30Smrgecho "$as_me: creating $CONFIG_STATUS" >&6;}
362367f05d30Smrgcat >$CONFIG_STATUS <<_ACEOF
362467f05d30Smrg#! $SHELL
362567f05d30Smrg# Generated by $as_me.
362667f05d30Smrg# Run this file to recreate the current configuration.
362767f05d30Smrg# Compiler output produced by configure, useful for debugging
362867f05d30Smrg# configure, is in config.log if it exists.
362967f05d30Smrg
363067f05d30Smrgdebug=false
363167f05d30Smrgac_cs_recheck=false
363267f05d30Smrgac_cs_silent=false
363367f05d30SmrgSHELL=\${CONFIG_SHELL-$SHELL}
363467f05d30Smrg_ACEOF
363567f05d30Smrg
363667f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
363767f05d30Smrg## --------------------- ##
363867f05d30Smrg## M4sh Initialization.  ##
363967f05d30Smrg## --------------------- ##
364067f05d30Smrg
364167f05d30Smrg# Be Bourne compatible
364267f05d30Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
364367f05d30Smrg  emulate sh
364467f05d30Smrg  NULLCMD=:
364567f05d30Smrg  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
364667f05d30Smrg  # is contrary to our usage.  Disable this feature.
364767f05d30Smrg  alias -g '${1+"$@"}'='"$@"'
364867f05d30Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
364967f05d30Smrg  set -o posix
365067f05d30Smrgfi
365167f05d30SmrgDUALCASE=1; export DUALCASE # for MKS sh
365267f05d30Smrg
365367f05d30Smrg# Support unset when possible.
365467f05d30Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
365567f05d30Smrg  as_unset=unset
365667f05d30Smrgelse
365767f05d30Smrg  as_unset=false
365867f05d30Smrgfi
365967f05d30Smrg
366067f05d30Smrg
366167f05d30Smrg# Work around bugs in pre-3.0 UWIN ksh.
366267f05d30Smrg$as_unset ENV MAIL MAILPATH
366367f05d30SmrgPS1='$ '
366467f05d30SmrgPS2='> '
366567f05d30SmrgPS4='+ '
366667f05d30Smrg
366767f05d30Smrg# NLS nuisances.
366867f05d30Smrgfor as_var in \
366967f05d30Smrg  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
367067f05d30Smrg  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
367167f05d30Smrg  LC_TELEPHONE LC_TIME
367267f05d30Smrgdo
367367f05d30Smrg  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
367467f05d30Smrg    eval $as_var=C; export $as_var
367567f05d30Smrg  else
367667f05d30Smrg    $as_unset $as_var
367767f05d30Smrg  fi
367867f05d30Smrgdone
367967f05d30Smrg
368067f05d30Smrg# Required to use basename.
368167f05d30Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
368267f05d30Smrg  as_expr=expr
368367f05d30Smrgelse
368467f05d30Smrg  as_expr=false
368567f05d30Smrgfi
368667f05d30Smrg
368767f05d30Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
368867f05d30Smrg  as_basename=basename
368967f05d30Smrgelse
369067f05d30Smrg  as_basename=false
369167f05d30Smrgfi
369267f05d30Smrg
369367f05d30Smrg
369467f05d30Smrg# Name of the executable.
369567f05d30Smrgas_me=`$as_basename "$0" ||
369667f05d30Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
369767f05d30Smrg	 X"$0" : 'X\(//\)$' \| \
369867f05d30Smrg	 X"$0" : 'X\(/\)$' \| \
369967f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
370067f05d30Smrgecho X/"$0" |
370167f05d30Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
370267f05d30Smrg  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
370367f05d30Smrg  	  /^X\/\(\/\).*/{ s//\1/; q; }
370467f05d30Smrg  	  s/.*/./; q'`
370567f05d30Smrg
370667f05d30Smrg
370767f05d30Smrg# PATH needs CR, and LINENO needs CR and PATH.
370867f05d30Smrg# Avoid depending upon Character Ranges.
370967f05d30Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
371067f05d30Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
371167f05d30Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
371267f05d30Smrgas_cr_digits='0123456789'
371367f05d30Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
371467f05d30Smrg
371567f05d30Smrg# The user is always right.
371667f05d30Smrgif test "${PATH_SEPARATOR+set}" != set; then
371767f05d30Smrg  echo "#! /bin/sh" >conf$$.sh
371867f05d30Smrg  echo  "exit 0"   >>conf$$.sh
371967f05d30Smrg  chmod +x conf$$.sh
372067f05d30Smrg  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
372167f05d30Smrg    PATH_SEPARATOR=';'
372267f05d30Smrg  else
372367f05d30Smrg    PATH_SEPARATOR=:
372467f05d30Smrg  fi
372567f05d30Smrg  rm -f conf$$.sh
372667f05d30Smrgfi
372767f05d30Smrg
372867f05d30Smrg
372967f05d30Smrg  as_lineno_1=$LINENO
373067f05d30Smrg  as_lineno_2=$LINENO
373167f05d30Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
373267f05d30Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
373367f05d30Smrg  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
373467f05d30Smrg  # Find who we are.  Look in the path if we contain no path at all
373567f05d30Smrg  # relative or not.
373667f05d30Smrg  case $0 in
373767f05d30Smrg    *[\\/]* ) as_myself=$0 ;;
373867f05d30Smrg    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
373967f05d30Smrgfor as_dir in $PATH
374067f05d30Smrgdo
374167f05d30Smrg  IFS=$as_save_IFS
374267f05d30Smrg  test -z "$as_dir" && as_dir=.
374367f05d30Smrg  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
374467f05d30Smrgdone
374567f05d30Smrg
374667f05d30Smrg       ;;
374767f05d30Smrg  esac
374867f05d30Smrg  # We did not find ourselves, most probably we were run as `sh COMMAND'
374967f05d30Smrg  # in which case we are not to be found in the path.
375067f05d30Smrg  if test "x$as_myself" = x; then
375167f05d30Smrg    as_myself=$0
375267f05d30Smrg  fi
375367f05d30Smrg  if test ! -f "$as_myself"; then
375467f05d30Smrg    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
375567f05d30Smrgecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
375667f05d30Smrg   { (exit 1); exit 1; }; }
375767f05d30Smrg  fi
375867f05d30Smrg  case $CONFIG_SHELL in
375967f05d30Smrg  '')
376067f05d30Smrg    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
376167f05d30Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
376267f05d30Smrgdo
376367f05d30Smrg  IFS=$as_save_IFS
376467f05d30Smrg  test -z "$as_dir" && as_dir=.
376567f05d30Smrg  for as_base in sh bash ksh sh5; do
376667f05d30Smrg	 case $as_dir in
376767f05d30Smrg	 /*)
376867f05d30Smrg	   if ("$as_dir/$as_base" -c '
376967f05d30Smrg  as_lineno_1=$LINENO
377067f05d30Smrg  as_lineno_2=$LINENO
377167f05d30Smrg  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
377267f05d30Smrg  test "x$as_lineno_1" != "x$as_lineno_2" &&
377367f05d30Smrg  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
377467f05d30Smrg	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
377567f05d30Smrg	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
377667f05d30Smrg	     CONFIG_SHELL=$as_dir/$as_base
377767f05d30Smrg	     export CONFIG_SHELL
377867f05d30Smrg	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
377967f05d30Smrg	   fi;;
378067f05d30Smrg	 esac
378167f05d30Smrg       done
378267f05d30Smrgdone
378367f05d30Smrg;;
378467f05d30Smrg  esac
378567f05d30Smrg
378667f05d30Smrg  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
378767f05d30Smrg  # uniformly replaced by the line number.  The first 'sed' inserts a
378867f05d30Smrg  # line-number line before each line; the second 'sed' does the real
378967f05d30Smrg  # work.  The second script uses 'N' to pair each line-number line
379067f05d30Smrg  # with the numbered line, and appends trailing '-' during
379167f05d30Smrg  # substitution so that $LINENO is not a special case at line end.
379267f05d30Smrg  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
379367f05d30Smrg  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
379467f05d30Smrg  sed '=' <$as_myself |
379567f05d30Smrg    sed '
379667f05d30Smrg      N
379767f05d30Smrg      s,$,-,
379867f05d30Smrg      : loop
379967f05d30Smrg      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
380067f05d30Smrg      t loop
380167f05d30Smrg      s,-$,,
380267f05d30Smrg      s,^['$as_cr_digits']*\n,,
380367f05d30Smrg    ' >$as_me.lineno &&
380467f05d30Smrg  chmod +x $as_me.lineno ||
380567f05d30Smrg    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
380667f05d30Smrgecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
380767f05d30Smrg   { (exit 1); exit 1; }; }
380867f05d30Smrg
380967f05d30Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
381067f05d30Smrg  # (the dirname of $[0] is not the place where we might find the
381167f05d30Smrg  # original and so on.  Autoconf is especially sensible to this).
381267f05d30Smrg  . ./$as_me.lineno
381367f05d30Smrg  # Exit status is that of the last command.
381467f05d30Smrg  exit
381567f05d30Smrg}
381667f05d30Smrg
381767f05d30Smrg
381867f05d30Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
381967f05d30Smrg  *c*,-n*) ECHO_N= ECHO_C='
382067f05d30Smrg' ECHO_T='	' ;;
382167f05d30Smrg  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
382267f05d30Smrg  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
382367f05d30Smrgesac
382467f05d30Smrg
382567f05d30Smrgif expr a : '\(a\)' >/dev/null 2>&1; then
382667f05d30Smrg  as_expr=expr
382767f05d30Smrgelse
382867f05d30Smrg  as_expr=false
382967f05d30Smrgfi
383067f05d30Smrg
383167f05d30Smrgrm -f conf$$ conf$$.exe conf$$.file
383267f05d30Smrgecho >conf$$.file
383367f05d30Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then
383467f05d30Smrg  # We could just check for DJGPP; but this test a) works b) is more generic
383567f05d30Smrg  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
383667f05d30Smrg  if test -f conf$$.exe; then
383767f05d30Smrg    # Don't use ln at all; we don't have any links
383867f05d30Smrg    as_ln_s='cp -p'
383967f05d30Smrg  else
384067f05d30Smrg    as_ln_s='ln -s'
384167f05d30Smrg  fi
384267f05d30Smrgelif ln conf$$.file conf$$ 2>/dev/null; then
384367f05d30Smrg  as_ln_s=ln
384467f05d30Smrgelse
384567f05d30Smrg  as_ln_s='cp -p'
384667f05d30Smrgfi
384767f05d30Smrgrm -f conf$$ conf$$.exe conf$$.file
384867f05d30Smrg
384967f05d30Smrgif mkdir -p . 2>/dev/null; then
385067f05d30Smrg  as_mkdir_p=:
385167f05d30Smrgelse
385267f05d30Smrg  test -d ./-p && rmdir ./-p
385367f05d30Smrg  as_mkdir_p=false
385467f05d30Smrgfi
385567f05d30Smrg
385667f05d30Smrgas_executable_p="test -f"
385767f05d30Smrg
385867f05d30Smrg# Sed expression to map a string onto a valid CPP name.
385967f05d30Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
386067f05d30Smrg
386167f05d30Smrg# Sed expression to map a string onto a valid variable name.
386267f05d30Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
386367f05d30Smrg
386467f05d30Smrg
386567f05d30Smrg# IFS
386667f05d30Smrg# We need space, tab and new line, in precisely that order.
386767f05d30Smrgas_nl='
386867f05d30Smrg'
386967f05d30SmrgIFS=" 	$as_nl"
387067f05d30Smrg
387167f05d30Smrg# CDPATH.
387267f05d30Smrg$as_unset CDPATH
387367f05d30Smrg
387467f05d30Smrgexec 6>&1
387567f05d30Smrg
387667f05d30Smrg# Open the log real soon, to keep \$[0] and so on meaningful, and to
387767f05d30Smrg# report actual input values of CONFIG_FILES etc. instead of their
387867f05d30Smrg# values after options handling.  Logging --version etc. is OK.
387967f05d30Smrgexec 5>>config.log
388067f05d30Smrg{
388167f05d30Smrg  echo
388267f05d30Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
388367f05d30Smrg## Running $as_me. ##
388467f05d30Smrg_ASBOX
388567f05d30Smrg} >&5
388667f05d30Smrgcat >&5 <<_CSEOF
388767f05d30Smrg
388867f05d30SmrgThis file was extended by viewres $as_me 1.0.1, which was
388967f05d30Smrggenerated by GNU Autoconf 2.59.  Invocation command line was
389067f05d30Smrg
389167f05d30Smrg  CONFIG_FILES    = $CONFIG_FILES
389267f05d30Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
389367f05d30Smrg  CONFIG_LINKS    = $CONFIG_LINKS
389467f05d30Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
389567f05d30Smrg  $ $0 $@
389667f05d30Smrg
389767f05d30Smrg_CSEOF
389867f05d30Smrgecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
389967f05d30Smrgecho >&5
390067f05d30Smrg_ACEOF
390167f05d30Smrg
390267f05d30Smrg# Files that config.status was made for.
390367f05d30Smrgif test -n "$ac_config_files"; then
390467f05d30Smrg  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
390567f05d30Smrgfi
390667f05d30Smrg
390767f05d30Smrgif test -n "$ac_config_headers"; then
390867f05d30Smrg  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
390967f05d30Smrgfi
391067f05d30Smrg
391167f05d30Smrgif test -n "$ac_config_links"; then
391267f05d30Smrg  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
391367f05d30Smrgfi
391467f05d30Smrg
391567f05d30Smrgif test -n "$ac_config_commands"; then
391667f05d30Smrg  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
391767f05d30Smrgfi
391867f05d30Smrg
391967f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
392067f05d30Smrg
392167f05d30Smrgac_cs_usage="\
392267f05d30Smrg\`$as_me' instantiates files from templates according to the
392367f05d30Smrgcurrent configuration.
392467f05d30Smrg
392567f05d30SmrgUsage: $0 [OPTIONS] [FILE]...
392667f05d30Smrg
392767f05d30Smrg  -h, --help       print this help, then exit
392867f05d30Smrg  -V, --version    print version number, then exit
392967f05d30Smrg  -q, --quiet      do not print progress messages
393067f05d30Smrg  -d, --debug      don't remove temporary files
393167f05d30Smrg      --recheck    update $as_me by reconfiguring in the same conditions
393267f05d30Smrg  --file=FILE[:TEMPLATE]
393367f05d30Smrg		   instantiate the configuration file FILE
393467f05d30Smrg  --header=FILE[:TEMPLATE]
393567f05d30Smrg		   instantiate the configuration header FILE
393667f05d30Smrg
393767f05d30SmrgConfiguration files:
393867f05d30Smrg$config_files
393967f05d30Smrg
394067f05d30SmrgConfiguration headers:
394167f05d30Smrg$config_headers
394267f05d30Smrg
394367f05d30SmrgConfiguration commands:
394467f05d30Smrg$config_commands
394567f05d30Smrg
394667f05d30SmrgReport bugs to <bug-autoconf@gnu.org>."
394767f05d30Smrg_ACEOF
394867f05d30Smrg
394967f05d30Smrgcat >>$CONFIG_STATUS <<_ACEOF
395067f05d30Smrgac_cs_version="\\
395167f05d30Smrgviewres config.status 1.0.1
395267f05d30Smrgconfigured by $0, generated by GNU Autoconf 2.59,
395367f05d30Smrg  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
395467f05d30Smrg
395567f05d30SmrgCopyright (C) 2003 Free Software Foundation, Inc.
395667f05d30SmrgThis config.status script is free software; the Free Software Foundation
395767f05d30Smrggives unlimited permission to copy, distribute and modify it."
395867f05d30Smrgsrcdir=$srcdir
395967f05d30SmrgINSTALL="$INSTALL"
396067f05d30Smrg_ACEOF
396167f05d30Smrg
396267f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
396367f05d30Smrg# If no file are specified by the user, then we need to provide default
396467f05d30Smrg# value.  By we need to know if files were specified by the user.
396567f05d30Smrgac_need_defaults=:
396667f05d30Smrgwhile test $# != 0
396767f05d30Smrgdo
396867f05d30Smrg  case $1 in
396967f05d30Smrg  --*=*)
397067f05d30Smrg    ac_option=`expr "x$1" : 'x\([^=]*\)='`
397167f05d30Smrg    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
397267f05d30Smrg    ac_shift=:
397367f05d30Smrg    ;;
397467f05d30Smrg  -*)
397567f05d30Smrg    ac_option=$1
397667f05d30Smrg    ac_optarg=$2
397767f05d30Smrg    ac_shift=shift
397867f05d30Smrg    ;;
397967f05d30Smrg  *) # This is not an option, so the user has probably given explicit
398067f05d30Smrg     # arguments.
398167f05d30Smrg     ac_option=$1
398267f05d30Smrg     ac_need_defaults=false;;
398367f05d30Smrg  esac
398467f05d30Smrg
398567f05d30Smrg  case $ac_option in
398667f05d30Smrg  # Handling of the options.
398767f05d30Smrg_ACEOF
398867f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
398967f05d30Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
399067f05d30Smrg    ac_cs_recheck=: ;;
399167f05d30Smrg  --version | --vers* | -V )
399267f05d30Smrg    echo "$ac_cs_version"; exit 0 ;;
399367f05d30Smrg  --he | --h)
399467f05d30Smrg    # Conflict between --help and --header
399567f05d30Smrg    { { echo "$as_me:$LINENO: error: ambiguous option: $1
399667f05d30SmrgTry \`$0 --help' for more information." >&5
399767f05d30Smrgecho "$as_me: error: ambiguous option: $1
399867f05d30SmrgTry \`$0 --help' for more information." >&2;}
399967f05d30Smrg   { (exit 1); exit 1; }; };;
400067f05d30Smrg  --help | --hel | -h )
400167f05d30Smrg    echo "$ac_cs_usage"; exit 0 ;;
400267f05d30Smrg  --debug | --d* | -d )
400367f05d30Smrg    debug=: ;;
400467f05d30Smrg  --file | --fil | --fi | --f )
400567f05d30Smrg    $ac_shift
400667f05d30Smrg    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
400767f05d30Smrg    ac_need_defaults=false;;
400867f05d30Smrg  --header | --heade | --head | --hea )
400967f05d30Smrg    $ac_shift
401067f05d30Smrg    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
401167f05d30Smrg    ac_need_defaults=false;;
401267f05d30Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
401367f05d30Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
401467f05d30Smrg    ac_cs_silent=: ;;
401567f05d30Smrg
401667f05d30Smrg  # This is an error.
401767f05d30Smrg  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
401867f05d30SmrgTry \`$0 --help' for more information." >&5
401967f05d30Smrgecho "$as_me: error: unrecognized option: $1
402067f05d30SmrgTry \`$0 --help' for more information." >&2;}
402167f05d30Smrg   { (exit 1); exit 1; }; } ;;
402267f05d30Smrg
402367f05d30Smrg  *) ac_config_targets="$ac_config_targets $1" ;;
402467f05d30Smrg
402567f05d30Smrg  esac
402667f05d30Smrg  shift
402767f05d30Smrgdone
402867f05d30Smrg
402967f05d30Smrgac_configure_extra_args=
403067f05d30Smrg
403167f05d30Smrgif $ac_cs_silent; then
403267f05d30Smrg  exec 6>/dev/null
403367f05d30Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
403467f05d30Smrgfi
403567f05d30Smrg
403667f05d30Smrg_ACEOF
403767f05d30Smrgcat >>$CONFIG_STATUS <<_ACEOF
403867f05d30Smrgif \$ac_cs_recheck; then
403967f05d30Smrg  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
404067f05d30Smrg  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
404167f05d30Smrgfi
404267f05d30Smrg
404367f05d30Smrg_ACEOF
404467f05d30Smrg
404567f05d30Smrgcat >>$CONFIG_STATUS <<_ACEOF
404667f05d30Smrg#
404767f05d30Smrg# INIT-COMMANDS section.
404867f05d30Smrg#
404967f05d30Smrg
405067f05d30SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
405167f05d30Smrg
405267f05d30Smrg_ACEOF
405367f05d30Smrg
405467f05d30Smrg
405567f05d30Smrg
405667f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
405767f05d30Smrgfor ac_config_target in $ac_config_targets
405867f05d30Smrgdo
405967f05d30Smrg  case "$ac_config_target" in
406067f05d30Smrg  # Handling of arguments.
406167f05d30Smrg  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
406267f05d30Smrg  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
406367f05d30Smrg  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
406467f05d30Smrg  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
406567f05d30Smrgecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
406667f05d30Smrg   { (exit 1); exit 1; }; };;
406767f05d30Smrg  esac
406867f05d30Smrgdone
406967f05d30Smrg
407067f05d30Smrg# If the user did not use the arguments to specify the items to instantiate,
407167f05d30Smrg# then the envvar interface is used.  Set only those that are not.
407267f05d30Smrg# We use the long form for the default assignment because of an extremely
407367f05d30Smrg# bizarre bug on SunOS 4.1.3.
407467f05d30Smrgif $ac_need_defaults; then
407567f05d30Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
407667f05d30Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
407767f05d30Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
407867f05d30Smrgfi
407967f05d30Smrg
408067f05d30Smrg# Have a temporary directory for convenience.  Make it in the build tree
408167f05d30Smrg# simply because there is no reason to put it here, and in addition,
408267f05d30Smrg# creating and moving files from /tmp can sometimes cause problems.
408367f05d30Smrg# Create a temporary directory, and hook for its removal unless debugging.
408467f05d30Smrg$debug ||
408567f05d30Smrg{
408667f05d30Smrg  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
408767f05d30Smrg  trap '{ (exit 1); exit 1; }' 1 2 13 15
408867f05d30Smrg}
408967f05d30Smrg
409067f05d30Smrg# Create a (secure) tmp directory for tmp files.
409167f05d30Smrg
409267f05d30Smrg{
409367f05d30Smrg  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
409467f05d30Smrg  test -n "$tmp" && test -d "$tmp"
409567f05d30Smrg}  ||
409667f05d30Smrg{
409767f05d30Smrg  tmp=./confstat$$-$RANDOM
409867f05d30Smrg  (umask 077 && mkdir $tmp)
409967f05d30Smrg} ||
410067f05d30Smrg{
410167f05d30Smrg   echo "$me: cannot create a temporary directory in ." >&2
410267f05d30Smrg   { (exit 1); exit 1; }
410367f05d30Smrg}
410467f05d30Smrg
410567f05d30Smrg_ACEOF
410667f05d30Smrg
410767f05d30Smrgcat >>$CONFIG_STATUS <<_ACEOF
410867f05d30Smrg
410967f05d30Smrg#
411067f05d30Smrg# CONFIG_FILES section.
411167f05d30Smrg#
411267f05d30Smrg
411367f05d30Smrg# No need to generate the scripts if there are no CONFIG_FILES.
411467f05d30Smrg# This happens for instance when ./config.status config.h
411567f05d30Smrgif test -n "\$CONFIG_FILES"; then
411667f05d30Smrg  # Protect against being on the right side of a sed subst in config.status.
411767f05d30Smrg  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
411867f05d30Smrg   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
411967f05d30Smrgs,@SHELL@,$SHELL,;t t
412067f05d30Smrgs,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
412167f05d30Smrgs,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
412267f05d30Smrgs,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
412367f05d30Smrgs,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
412467f05d30Smrgs,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
412567f05d30Smrgs,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
412667f05d30Smrgs,@exec_prefix@,$exec_prefix,;t t
412767f05d30Smrgs,@prefix@,$prefix,;t t
412867f05d30Smrgs,@program_transform_name@,$program_transform_name,;t t
412967f05d30Smrgs,@bindir@,$bindir,;t t
413067f05d30Smrgs,@sbindir@,$sbindir,;t t
413167f05d30Smrgs,@libexecdir@,$libexecdir,;t t
413267f05d30Smrgs,@datadir@,$datadir,;t t
413367f05d30Smrgs,@sysconfdir@,$sysconfdir,;t t
413467f05d30Smrgs,@sharedstatedir@,$sharedstatedir,;t t
413567f05d30Smrgs,@localstatedir@,$localstatedir,;t t
413667f05d30Smrgs,@libdir@,$libdir,;t t
413767f05d30Smrgs,@includedir@,$includedir,;t t
413867f05d30Smrgs,@oldincludedir@,$oldincludedir,;t t
413967f05d30Smrgs,@infodir@,$infodir,;t t
414067f05d30Smrgs,@mandir@,$mandir,;t t
414167f05d30Smrgs,@build_alias@,$build_alias,;t t
414267f05d30Smrgs,@host_alias@,$host_alias,;t t
414367f05d30Smrgs,@target_alias@,$target_alias,;t t
414467f05d30Smrgs,@DEFS@,$DEFS,;t t
414567f05d30Smrgs,@ECHO_C@,$ECHO_C,;t t
414667f05d30Smrgs,@ECHO_N@,$ECHO_N,;t t
414767f05d30Smrgs,@ECHO_T@,$ECHO_T,;t t
414867f05d30Smrgs,@LIBS@,$LIBS,;t t
414967f05d30Smrgs,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
415067f05d30Smrgs,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
415167f05d30Smrgs,@INSTALL_DATA@,$INSTALL_DATA,;t t
415267f05d30Smrgs,@CYGPATH_W@,$CYGPATH_W,;t t
415367f05d30Smrgs,@PACKAGE@,$PACKAGE,;t t
415467f05d30Smrgs,@VERSION@,$VERSION,;t t
415567f05d30Smrgs,@ACLOCAL@,$ACLOCAL,;t t
415667f05d30Smrgs,@AUTOCONF@,$AUTOCONF,;t t
415767f05d30Smrgs,@AUTOMAKE@,$AUTOMAKE,;t t
415867f05d30Smrgs,@AUTOHEADER@,$AUTOHEADER,;t t
415967f05d30Smrgs,@MAKEINFO@,$MAKEINFO,;t t
416067f05d30Smrgs,@AMTAR@,$AMTAR,;t t
416167f05d30Smrgs,@install_sh@,$install_sh,;t t
416267f05d30Smrgs,@STRIP@,$STRIP,;t t
416367f05d30Smrgs,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
416467f05d30Smrgs,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
416567f05d30Smrgs,@AWK@,$AWK,;t t
416667f05d30Smrgs,@SET_MAKE@,$SET_MAKE,;t t
416767f05d30Smrgs,@am__leading_dot@,$am__leading_dot,;t t
416867f05d30Smrgs,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
416967f05d30Smrgs,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
417067f05d30Smrgs,@MAINT@,$MAINT,;t t
417167f05d30Smrgs,@CC@,$CC,;t t
417267f05d30Smrgs,@CFLAGS@,$CFLAGS,;t t
417367f05d30Smrgs,@LDFLAGS@,$LDFLAGS,;t t
417467f05d30Smrgs,@CPPFLAGS@,$CPPFLAGS,;t t
417567f05d30Smrgs,@ac_ct_CC@,$ac_ct_CC,;t t
417667f05d30Smrgs,@EXEEXT@,$EXEEXT,;t t
417767f05d30Smrgs,@OBJEXT@,$OBJEXT,;t t
417867f05d30Smrgs,@DEPDIR@,$DEPDIR,;t t
417967f05d30Smrgs,@am__include@,$am__include,;t t
418067f05d30Smrgs,@am__quote@,$am__quote,;t t
418167f05d30Smrgs,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
418267f05d30Smrgs,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
418367f05d30Smrgs,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
418467f05d30Smrgs,@CCDEPMODE@,$CCDEPMODE,;t t
418567f05d30Smrgs,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
418667f05d30Smrgs,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
418767f05d30Smrgs,@PKG_CONFIG@,$PKG_CONFIG,;t t
418867f05d30Smrgs,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
418967f05d30Smrgs,@TMP_XAW_CFLAGS@,$TMP_XAW_CFLAGS,;t t
419067f05d30Smrgs,@TMP_XAW_LIBS@,$TMP_XAW_LIBS,;t t
419167f05d30Smrgs,@XAW_USE_XPRINT_TRUE@,$XAW_USE_XPRINT_TRUE,;t t
419267f05d30Smrgs,@XAW_USE_XPRINT_FALSE@,$XAW_USE_XPRINT_FALSE,;t t
419367f05d30Smrgs,@VIEWRES_CFLAGS@,$VIEWRES_CFLAGS,;t t
419467f05d30Smrgs,@VIEWRES_LIBS@,$VIEWRES_LIBS,;t t
419567f05d30Smrgs,@APPDEFS_CFLAGS@,$APPDEFS_CFLAGS,;t t
419667f05d30Smrgs,@APPDEFS_LIBS@,$APPDEFS_LIBS,;t t
419767f05d30Smrgs,@appdefaultdir@,$appdefaultdir,;t t
419867f05d30Smrgs,@build@,$build,;t t
419967f05d30Smrgs,@build_cpu@,$build_cpu,;t t
420067f05d30Smrgs,@build_vendor@,$build_vendor,;t t
420167f05d30Smrgs,@build_os@,$build_os,;t t
420267f05d30Smrgs,@host@,$host,;t t
420367f05d30Smrgs,@host_cpu@,$host_cpu,;t t
420467f05d30Smrgs,@host_vendor@,$host_vendor,;t t
420567f05d30Smrgs,@host_os@,$host_os,;t t
420667f05d30Smrgs,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
420767f05d30Smrgs,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
420867f05d30Smrgs,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
420967f05d30Smrgs,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
421067f05d30Smrgs,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
421167f05d30Smrgs,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
421267f05d30Smrgs,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
421367f05d30Smrgs,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
421467f05d30Smrgs,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
421567f05d30Smrgs,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
421667f05d30Smrgs,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
421767f05d30Smrgs,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
421867f05d30Smrgs,@LIBOBJS@,$LIBOBJS,;t t
421967f05d30Smrgs,@LTLIBOBJS@,$LTLIBOBJS,;t t
422067f05d30SmrgCEOF
422167f05d30Smrg
422267f05d30Smrg_ACEOF
422367f05d30Smrg
422467f05d30Smrg  cat >>$CONFIG_STATUS <<\_ACEOF
422567f05d30Smrg  # Split the substitutions into bite-sized pieces for seds with
422667f05d30Smrg  # small command number limits, like on Digital OSF/1 and HP-UX.
422767f05d30Smrg  ac_max_sed_lines=48
422867f05d30Smrg  ac_sed_frag=1 # Number of current file.
422967f05d30Smrg  ac_beg=1 # First line for current file.
423067f05d30Smrg  ac_end=$ac_max_sed_lines # Line after last line for current file.
423167f05d30Smrg  ac_more_lines=:
423267f05d30Smrg  ac_sed_cmds=
423367f05d30Smrg  while $ac_more_lines; do
423467f05d30Smrg    if test $ac_beg -gt 1; then
423567f05d30Smrg      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
423667f05d30Smrg    else
423767f05d30Smrg      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
423867f05d30Smrg    fi
423967f05d30Smrg    if test ! -s $tmp/subs.frag; then
424067f05d30Smrg      ac_more_lines=false
424167f05d30Smrg    else
424267f05d30Smrg      # The purpose of the label and of the branching condition is to
424367f05d30Smrg      # speed up the sed processing (if there are no `@' at all, there
424467f05d30Smrg      # is no need to browse any of the substitutions).
424567f05d30Smrg      # These are the two extra sed commands mentioned above.
424667f05d30Smrg      (echo ':t
424767f05d30Smrg  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
424867f05d30Smrg      if test -z "$ac_sed_cmds"; then
424967f05d30Smrg	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
425067f05d30Smrg      else
425167f05d30Smrg	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
425267f05d30Smrg      fi
425367f05d30Smrg      ac_sed_frag=`expr $ac_sed_frag + 1`
425467f05d30Smrg      ac_beg=$ac_end
425567f05d30Smrg      ac_end=`expr $ac_end + $ac_max_sed_lines`
425667f05d30Smrg    fi
425767f05d30Smrg  done
425867f05d30Smrg  if test -z "$ac_sed_cmds"; then
425967f05d30Smrg    ac_sed_cmds=cat
426067f05d30Smrg  fi
426167f05d30Smrgfi # test -n "$CONFIG_FILES"
426267f05d30Smrg
426367f05d30Smrg_ACEOF
426467f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
426567f05d30Smrgfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
426667f05d30Smrg  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
426767f05d30Smrg  case $ac_file in
426867f05d30Smrg  - | *:- | *:-:* ) # input from stdin
426967f05d30Smrg	cat >$tmp/stdin
427067f05d30Smrg	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
427167f05d30Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
427267f05d30Smrg  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
427367f05d30Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
427467f05d30Smrg  * )   ac_file_in=$ac_file.in ;;
427567f05d30Smrg  esac
427667f05d30Smrg
427767f05d30Smrg  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
427867f05d30Smrg  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
427967f05d30Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
428067f05d30Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
428167f05d30Smrg	 X"$ac_file" : 'X\(//\)$' \| \
428267f05d30Smrg	 X"$ac_file" : 'X\(/\)' \| \
428367f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
428467f05d30Smrgecho X"$ac_file" |
428567f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
428667f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
428767f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
428867f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
428967f05d30Smrg  	  s/.*/./; q'`
429067f05d30Smrg  { if $as_mkdir_p; then
429167f05d30Smrg    mkdir -p "$ac_dir"
429267f05d30Smrg  else
429367f05d30Smrg    as_dir="$ac_dir"
429467f05d30Smrg    as_dirs=
429567f05d30Smrg    while test ! -d "$as_dir"; do
429667f05d30Smrg      as_dirs="$as_dir $as_dirs"
429767f05d30Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
429867f05d30Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
429967f05d30Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
430067f05d30Smrg	 X"$as_dir" : 'X\(//\)$' \| \
430167f05d30Smrg	 X"$as_dir" : 'X\(/\)' \| \
430267f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
430367f05d30Smrgecho X"$as_dir" |
430467f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
430567f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
430667f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
430767f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
430867f05d30Smrg  	  s/.*/./; q'`
430967f05d30Smrg    done
431067f05d30Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
431167f05d30Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
431267f05d30Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
431367f05d30Smrg   { (exit 1); exit 1; }; }; }
431467f05d30Smrg
431567f05d30Smrg  ac_builddir=.
431667f05d30Smrg
431767f05d30Smrgif test "$ac_dir" != .; then
431867f05d30Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
431967f05d30Smrg  # A "../" for each directory in $ac_dir_suffix.
432067f05d30Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
432167f05d30Smrgelse
432267f05d30Smrg  ac_dir_suffix= ac_top_builddir=
432367f05d30Smrgfi
432467f05d30Smrg
432567f05d30Smrgcase $srcdir in
432667f05d30Smrg  .)  # No --srcdir option.  We are building in place.
432767f05d30Smrg    ac_srcdir=.
432867f05d30Smrg    if test -z "$ac_top_builddir"; then
432967f05d30Smrg       ac_top_srcdir=.
433067f05d30Smrg    else
433167f05d30Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
433267f05d30Smrg    fi ;;
433367f05d30Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
433467f05d30Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
433567f05d30Smrg    ac_top_srcdir=$srcdir ;;
433667f05d30Smrg  *) # Relative path.
433767f05d30Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
433867f05d30Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
433967f05d30Smrgesac
434067f05d30Smrg
434167f05d30Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
434267f05d30Smrg# the directories may not exist.
434367f05d30Smrgcase `pwd` in
434467f05d30Smrg.) ac_abs_builddir="$ac_dir";;
434567f05d30Smrg*)
434667f05d30Smrg  case "$ac_dir" in
434767f05d30Smrg  .) ac_abs_builddir=`pwd`;;
434867f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
434967f05d30Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
435067f05d30Smrg  esac;;
435167f05d30Smrgesac
435267f05d30Smrgcase $ac_abs_builddir in
435367f05d30Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
435467f05d30Smrg*)
435567f05d30Smrg  case ${ac_top_builddir}. in
435667f05d30Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
435767f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
435867f05d30Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
435967f05d30Smrg  esac;;
436067f05d30Smrgesac
436167f05d30Smrgcase $ac_abs_builddir in
436267f05d30Smrg.) ac_abs_srcdir=$ac_srcdir;;
436367f05d30Smrg*)
436467f05d30Smrg  case $ac_srcdir in
436567f05d30Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
436667f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
436767f05d30Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
436867f05d30Smrg  esac;;
436967f05d30Smrgesac
437067f05d30Smrgcase $ac_abs_builddir in
437167f05d30Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
437267f05d30Smrg*)
437367f05d30Smrg  case $ac_top_srcdir in
437467f05d30Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
437567f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
437667f05d30Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
437767f05d30Smrg  esac;;
437867f05d30Smrgesac
437967f05d30Smrg
438067f05d30Smrg
438167f05d30Smrg  case $INSTALL in
438267f05d30Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
438367f05d30Smrg  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
438467f05d30Smrg  esac
438567f05d30Smrg
438667f05d30Smrg  if test x"$ac_file" != x-; then
438767f05d30Smrg    { echo "$as_me:$LINENO: creating $ac_file" >&5
438867f05d30Smrgecho "$as_me: creating $ac_file" >&6;}
438967f05d30Smrg    rm -f "$ac_file"
439067f05d30Smrg  fi
439167f05d30Smrg  # Let's still pretend it is `configure' which instantiates (i.e., don't
439267f05d30Smrg  # use $as_me), people would be surprised to read:
439367f05d30Smrg  #    /* config.h.  Generated by config.status.  */
439467f05d30Smrg  if test x"$ac_file" = x-; then
439567f05d30Smrg    configure_input=
439667f05d30Smrg  else
439767f05d30Smrg    configure_input="$ac_file.  "
439867f05d30Smrg  fi
439967f05d30Smrg  configure_input=$configure_input"Generated from `echo $ac_file_in |
440067f05d30Smrg				     sed 's,.*/,,'` by configure."
440167f05d30Smrg
440267f05d30Smrg  # First look for the input files in the build tree, otherwise in the
440367f05d30Smrg  # src tree.
440467f05d30Smrg  ac_file_inputs=`IFS=:
440567f05d30Smrg    for f in $ac_file_in; do
440667f05d30Smrg      case $f in
440767f05d30Smrg      -) echo $tmp/stdin ;;
440867f05d30Smrg      [\\/$]*)
440967f05d30Smrg	 # Absolute (can't be DOS-style, as IFS=:)
441067f05d30Smrg	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
441167f05d30Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
441267f05d30Smrg   { (exit 1); exit 1; }; }
441367f05d30Smrg	 echo "$f";;
441467f05d30Smrg      *) # Relative
441567f05d30Smrg	 if test -f "$f"; then
441667f05d30Smrg	   # Build tree
441767f05d30Smrg	   echo "$f"
441867f05d30Smrg	 elif test -f "$srcdir/$f"; then
441967f05d30Smrg	   # Source tree
442067f05d30Smrg	   echo "$srcdir/$f"
442167f05d30Smrg	 else
442267f05d30Smrg	   # /dev/null tree
442367f05d30Smrg	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
442467f05d30Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
442567f05d30Smrg   { (exit 1); exit 1; }; }
442667f05d30Smrg	 fi;;
442767f05d30Smrg      esac
442867f05d30Smrg    done` || { (exit 1); exit 1; }
442967f05d30Smrg_ACEOF
443067f05d30Smrgcat >>$CONFIG_STATUS <<_ACEOF
443167f05d30Smrg  sed "$ac_vpsub
443267f05d30Smrg$extrasub
443367f05d30Smrg_ACEOF
443467f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
443567f05d30Smrg:t
443667f05d30Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
443767f05d30Smrgs,@configure_input@,$configure_input,;t t
443867f05d30Smrgs,@srcdir@,$ac_srcdir,;t t
443967f05d30Smrgs,@abs_srcdir@,$ac_abs_srcdir,;t t
444067f05d30Smrgs,@top_srcdir@,$ac_top_srcdir,;t t
444167f05d30Smrgs,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
444267f05d30Smrgs,@builddir@,$ac_builddir,;t t
444367f05d30Smrgs,@abs_builddir@,$ac_abs_builddir,;t t
444467f05d30Smrgs,@top_builddir@,$ac_top_builddir,;t t
444567f05d30Smrgs,@abs_top_builddir@,$ac_abs_top_builddir,;t t
444667f05d30Smrgs,@INSTALL@,$ac_INSTALL,;t t
444767f05d30Smrg" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
444867f05d30Smrg  rm -f $tmp/stdin
444967f05d30Smrg  if test x"$ac_file" != x-; then
445067f05d30Smrg    mv $tmp/out $ac_file
445167f05d30Smrg  else
445267f05d30Smrg    cat $tmp/out
445367f05d30Smrg    rm -f $tmp/out
445467f05d30Smrg  fi
445567f05d30Smrg
445667f05d30Smrgdone
445767f05d30Smrg_ACEOF
445867f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
445967f05d30Smrg
446067f05d30Smrg#
446167f05d30Smrg# CONFIG_HEADER section.
446267f05d30Smrg#
446367f05d30Smrg
446467f05d30Smrg# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
446567f05d30Smrg# NAME is the cpp macro being defined and VALUE is the value it is being given.
446667f05d30Smrg#
446767f05d30Smrg# ac_d sets the value in "#define NAME VALUE" lines.
446867f05d30Smrgac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
446967f05d30Smrgac_dB='[	 ].*$,\1#\2'
447067f05d30Smrgac_dC=' '
447167f05d30Smrgac_dD=',;t'
447267f05d30Smrg# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
447367f05d30Smrgac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
447467f05d30Smrgac_uB='$,\1#\2define\3'
447567f05d30Smrgac_uC=' '
447667f05d30Smrgac_uD=',;t'
447767f05d30Smrg
447867f05d30Smrgfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
447967f05d30Smrg  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
448067f05d30Smrg  case $ac_file in
448167f05d30Smrg  - | *:- | *:-:* ) # input from stdin
448267f05d30Smrg	cat >$tmp/stdin
448367f05d30Smrg	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
448467f05d30Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
448567f05d30Smrg  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
448667f05d30Smrg	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
448767f05d30Smrg  * )   ac_file_in=$ac_file.in ;;
448867f05d30Smrg  esac
448967f05d30Smrg
449067f05d30Smrg  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
449167f05d30Smrgecho "$as_me: creating $ac_file" >&6;}
449267f05d30Smrg
449367f05d30Smrg  # First look for the input files in the build tree, otherwise in the
449467f05d30Smrg  # src tree.
449567f05d30Smrg  ac_file_inputs=`IFS=:
449667f05d30Smrg    for f in $ac_file_in; do
449767f05d30Smrg      case $f in
449867f05d30Smrg      -) echo $tmp/stdin ;;
449967f05d30Smrg      [\\/$]*)
450067f05d30Smrg	 # Absolute (can't be DOS-style, as IFS=:)
450167f05d30Smrg	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
450267f05d30Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
450367f05d30Smrg   { (exit 1); exit 1; }; }
450467f05d30Smrg	 # Do quote $f, to prevent DOS paths from being IFS'd.
450567f05d30Smrg	 echo "$f";;
450667f05d30Smrg      *) # Relative
450767f05d30Smrg	 if test -f "$f"; then
450867f05d30Smrg	   # Build tree
450967f05d30Smrg	   echo "$f"
451067f05d30Smrg	 elif test -f "$srcdir/$f"; then
451167f05d30Smrg	   # Source tree
451267f05d30Smrg	   echo "$srcdir/$f"
451367f05d30Smrg	 else
451467f05d30Smrg	   # /dev/null tree
451567f05d30Smrg	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
451667f05d30Smrgecho "$as_me: error: cannot find input file: $f" >&2;}
451767f05d30Smrg   { (exit 1); exit 1; }; }
451867f05d30Smrg	 fi;;
451967f05d30Smrg      esac
452067f05d30Smrg    done` || { (exit 1); exit 1; }
452167f05d30Smrg  # Remove the trailing spaces.
452267f05d30Smrg  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
452367f05d30Smrg
452467f05d30Smrg_ACEOF
452567f05d30Smrg
452667f05d30Smrg# Transform confdefs.h into two sed scripts, `conftest.defines' and
452767f05d30Smrg# `conftest.undefs', that substitutes the proper values into
452867f05d30Smrg# config.h.in to produce config.h.  The first handles `#define'
452967f05d30Smrg# templates, and the second `#undef' templates.
453067f05d30Smrg# And first: Protect against being on the right side of a sed subst in
453167f05d30Smrg# config.status.  Protect against being in an unquoted here document
453267f05d30Smrg# in config.status.
453367f05d30Smrgrm -f conftest.defines conftest.undefs
453467f05d30Smrg# Using a here document instead of a string reduces the quoting nightmare.
453567f05d30Smrg# Putting comments in sed scripts is not portable.
453667f05d30Smrg#
453767f05d30Smrg# `end' is used to avoid that the second main sed command (meant for
453867f05d30Smrg# 0-ary CPP macros) applies to n-ary macro definitions.
453967f05d30Smrg# See the Autoconf documentation for `clear'.
454067f05d30Smrgcat >confdef2sed.sed <<\_ACEOF
454167f05d30Smrgs/[\\&,]/\\&/g
454267f05d30Smrgs,[\\$`],\\&,g
454367f05d30Smrgt clear
454467f05d30Smrg: clear
454567f05d30Smrgs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
454667f05d30Smrgt end
454767f05d30Smrgs,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
454867f05d30Smrg: end
454967f05d30Smrg_ACEOF
455067f05d30Smrg# If some macros were called several times there might be several times
455167f05d30Smrg# the same #defines, which is useless.  Nevertheless, we may not want to
455267f05d30Smrg# sort them, since we want the *last* AC-DEFINE to be honored.
455367f05d30Smrguniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
455467f05d30Smrgsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
455567f05d30Smrgrm -f confdef2sed.sed
455667f05d30Smrg
455767f05d30Smrg# This sed command replaces #undef with comments.  This is necessary, for
455867f05d30Smrg# example, in the case of _POSIX_SOURCE, which is predefined and required
455967f05d30Smrg# on some systems where configure will not decide to define it.
456067f05d30Smrgcat >>conftest.undefs <<\_ACEOF
456167f05d30Smrgs,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
456267f05d30Smrg_ACEOF
456367f05d30Smrg
456467f05d30Smrg# Break up conftest.defines because some shells have a limit on the size
456567f05d30Smrg# of here documents, and old seds have small limits too (100 cmds).
456667f05d30Smrgecho '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
456767f05d30Smrgecho '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
456867f05d30Smrgecho '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
456967f05d30Smrgecho '  :' >>$CONFIG_STATUS
457067f05d30Smrgrm -f conftest.tail
457167f05d30Smrgwhile grep . conftest.defines >/dev/null
457267f05d30Smrgdo
457367f05d30Smrg  # Write a limited-size here document to $tmp/defines.sed.
457467f05d30Smrg  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
457567f05d30Smrg  # Speed up: don't consider the non `#define' lines.
457667f05d30Smrg  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
457767f05d30Smrg  # Work around the forget-to-reset-the-flag bug.
457867f05d30Smrg  echo 't clr' >>$CONFIG_STATUS
457967f05d30Smrg  echo ': clr' >>$CONFIG_STATUS
458067f05d30Smrg  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
458167f05d30Smrg  echo 'CEOF
458267f05d30Smrg  sed -f $tmp/defines.sed $tmp/in >$tmp/out
458367f05d30Smrg  rm -f $tmp/in
458467f05d30Smrg  mv $tmp/out $tmp/in
458567f05d30Smrg' >>$CONFIG_STATUS
458667f05d30Smrg  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
458767f05d30Smrg  rm -f conftest.defines
458867f05d30Smrg  mv conftest.tail conftest.defines
458967f05d30Smrgdone
459067f05d30Smrgrm -f conftest.defines
459167f05d30Smrgecho '  fi # grep' >>$CONFIG_STATUS
459267f05d30Smrgecho >>$CONFIG_STATUS
459367f05d30Smrg
459467f05d30Smrg# Break up conftest.undefs because some shells have a limit on the size
459567f05d30Smrg# of here documents, and old seds have small limits too (100 cmds).
459667f05d30Smrgecho '  # Handle all the #undef templates' >>$CONFIG_STATUS
459767f05d30Smrgrm -f conftest.tail
459867f05d30Smrgwhile grep . conftest.undefs >/dev/null
459967f05d30Smrgdo
460067f05d30Smrg  # Write a limited-size here document to $tmp/undefs.sed.
460167f05d30Smrg  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
460267f05d30Smrg  # Speed up: don't consider the non `#undef'
460367f05d30Smrg  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
460467f05d30Smrg  # Work around the forget-to-reset-the-flag bug.
460567f05d30Smrg  echo 't clr' >>$CONFIG_STATUS
460667f05d30Smrg  echo ': clr' >>$CONFIG_STATUS
460767f05d30Smrg  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
460867f05d30Smrg  echo 'CEOF
460967f05d30Smrg  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
461067f05d30Smrg  rm -f $tmp/in
461167f05d30Smrg  mv $tmp/out $tmp/in
461267f05d30Smrg' >>$CONFIG_STATUS
461367f05d30Smrg  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
461467f05d30Smrg  rm -f conftest.undefs
461567f05d30Smrg  mv conftest.tail conftest.undefs
461667f05d30Smrgdone
461767f05d30Smrgrm -f conftest.undefs
461867f05d30Smrg
461967f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
462067f05d30Smrg  # Let's still pretend it is `configure' which instantiates (i.e., don't
462167f05d30Smrg  # use $as_me), people would be surprised to read:
462267f05d30Smrg  #    /* config.h.  Generated by config.status.  */
462367f05d30Smrg  if test x"$ac_file" = x-; then
462467f05d30Smrg    echo "/* Generated by configure.  */" >$tmp/config.h
462567f05d30Smrg  else
462667f05d30Smrg    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
462767f05d30Smrg  fi
462867f05d30Smrg  cat $tmp/in >>$tmp/config.h
462967f05d30Smrg  rm -f $tmp/in
463067f05d30Smrg  if test x"$ac_file" != x-; then
463167f05d30Smrg    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
463267f05d30Smrg      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
463367f05d30Smrgecho "$as_me: $ac_file is unchanged" >&6;}
463467f05d30Smrg    else
463567f05d30Smrg      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
463667f05d30Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
463767f05d30Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
463867f05d30Smrg	 X"$ac_file" : 'X\(//\)$' \| \
463967f05d30Smrg	 X"$ac_file" : 'X\(/\)' \| \
464067f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
464167f05d30Smrgecho X"$ac_file" |
464267f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
464367f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
464467f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
464567f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
464667f05d30Smrg  	  s/.*/./; q'`
464767f05d30Smrg      { if $as_mkdir_p; then
464867f05d30Smrg    mkdir -p "$ac_dir"
464967f05d30Smrg  else
465067f05d30Smrg    as_dir="$ac_dir"
465167f05d30Smrg    as_dirs=
465267f05d30Smrg    while test ! -d "$as_dir"; do
465367f05d30Smrg      as_dirs="$as_dir $as_dirs"
465467f05d30Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
465567f05d30Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
465667f05d30Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
465767f05d30Smrg	 X"$as_dir" : 'X\(//\)$' \| \
465867f05d30Smrg	 X"$as_dir" : 'X\(/\)' \| \
465967f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
466067f05d30Smrgecho X"$as_dir" |
466167f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
466267f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
466367f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
466467f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
466567f05d30Smrg  	  s/.*/./; q'`
466667f05d30Smrg    done
466767f05d30Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
466867f05d30Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
466967f05d30Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
467067f05d30Smrg   { (exit 1); exit 1; }; }; }
467167f05d30Smrg
467267f05d30Smrg      rm -f $ac_file
467367f05d30Smrg      mv $tmp/config.h $ac_file
467467f05d30Smrg    fi
467567f05d30Smrg  else
467667f05d30Smrg    cat $tmp/config.h
467767f05d30Smrg    rm -f $tmp/config.h
467867f05d30Smrg  fi
467967f05d30Smrg# Compute $ac_file's index in $config_headers.
468067f05d30Smrg_am_stamp_count=1
468167f05d30Smrgfor _am_header in $config_headers :; do
468267f05d30Smrg  case $_am_header in
468367f05d30Smrg    $ac_file | $ac_file:* )
468467f05d30Smrg      break ;;
468567f05d30Smrg    * )
468667f05d30Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
468767f05d30Smrg  esac
468867f05d30Smrgdone
468967f05d30Smrgecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
469067f05d30Smrg$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
469167f05d30Smrg	 X$ac_file : 'X\(//\)[^/]' \| \
469267f05d30Smrg	 X$ac_file : 'X\(//\)$' \| \
469367f05d30Smrg	 X$ac_file : 'X\(/\)' \| \
469467f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
469567f05d30Smrgecho X$ac_file |
469667f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
469767f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
469867f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
469967f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
470067f05d30Smrg  	  s/.*/./; q'`/stamp-h$_am_stamp_count
470167f05d30Smrgdone
470267f05d30Smrg_ACEOF
470367f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
470467f05d30Smrg
470567f05d30Smrg#
470667f05d30Smrg# CONFIG_COMMANDS section.
470767f05d30Smrg#
470867f05d30Smrgfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
470967f05d30Smrg  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
471067f05d30Smrg  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
471167f05d30Smrg  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
471267f05d30Smrg$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
471367f05d30Smrg	 X"$ac_dest" : 'X\(//\)[^/]' \| \
471467f05d30Smrg	 X"$ac_dest" : 'X\(//\)$' \| \
471567f05d30Smrg	 X"$ac_dest" : 'X\(/\)' \| \
471667f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
471767f05d30Smrgecho X"$ac_dest" |
471867f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
471967f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
472067f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
472167f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
472267f05d30Smrg  	  s/.*/./; q'`
472367f05d30Smrg  { if $as_mkdir_p; then
472467f05d30Smrg    mkdir -p "$ac_dir"
472567f05d30Smrg  else
472667f05d30Smrg    as_dir="$ac_dir"
472767f05d30Smrg    as_dirs=
472867f05d30Smrg    while test ! -d "$as_dir"; do
472967f05d30Smrg      as_dirs="$as_dir $as_dirs"
473067f05d30Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
473167f05d30Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
473267f05d30Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
473367f05d30Smrg	 X"$as_dir" : 'X\(//\)$' \| \
473467f05d30Smrg	 X"$as_dir" : 'X\(/\)' \| \
473567f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
473667f05d30Smrgecho X"$as_dir" |
473767f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
473867f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
473967f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
474067f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
474167f05d30Smrg  	  s/.*/./; q'`
474267f05d30Smrg    done
474367f05d30Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
474467f05d30Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
474567f05d30Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
474667f05d30Smrg   { (exit 1); exit 1; }; }; }
474767f05d30Smrg
474867f05d30Smrg  ac_builddir=.
474967f05d30Smrg
475067f05d30Smrgif test "$ac_dir" != .; then
475167f05d30Smrg  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
475267f05d30Smrg  # A "../" for each directory in $ac_dir_suffix.
475367f05d30Smrg  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
475467f05d30Smrgelse
475567f05d30Smrg  ac_dir_suffix= ac_top_builddir=
475667f05d30Smrgfi
475767f05d30Smrg
475867f05d30Smrgcase $srcdir in
475967f05d30Smrg  .)  # No --srcdir option.  We are building in place.
476067f05d30Smrg    ac_srcdir=.
476167f05d30Smrg    if test -z "$ac_top_builddir"; then
476267f05d30Smrg       ac_top_srcdir=.
476367f05d30Smrg    else
476467f05d30Smrg       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
476567f05d30Smrg    fi ;;
476667f05d30Smrg  [\\/]* | ?:[\\/]* )  # Absolute path.
476767f05d30Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
476867f05d30Smrg    ac_top_srcdir=$srcdir ;;
476967f05d30Smrg  *) # Relative path.
477067f05d30Smrg    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
477167f05d30Smrg    ac_top_srcdir=$ac_top_builddir$srcdir ;;
477267f05d30Smrgesac
477367f05d30Smrg
477467f05d30Smrg# Do not use `cd foo && pwd` to compute absolute paths, because
477567f05d30Smrg# the directories may not exist.
477667f05d30Smrgcase `pwd` in
477767f05d30Smrg.) ac_abs_builddir="$ac_dir";;
477867f05d30Smrg*)
477967f05d30Smrg  case "$ac_dir" in
478067f05d30Smrg  .) ac_abs_builddir=`pwd`;;
478167f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
478267f05d30Smrg  *) ac_abs_builddir=`pwd`/"$ac_dir";;
478367f05d30Smrg  esac;;
478467f05d30Smrgesac
478567f05d30Smrgcase $ac_abs_builddir in
478667f05d30Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;;
478767f05d30Smrg*)
478867f05d30Smrg  case ${ac_top_builddir}. in
478967f05d30Smrg  .) ac_abs_top_builddir=$ac_abs_builddir;;
479067f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
479167f05d30Smrg  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
479267f05d30Smrg  esac;;
479367f05d30Smrgesac
479467f05d30Smrgcase $ac_abs_builddir in
479567f05d30Smrg.) ac_abs_srcdir=$ac_srcdir;;
479667f05d30Smrg*)
479767f05d30Smrg  case $ac_srcdir in
479867f05d30Smrg  .) ac_abs_srcdir=$ac_abs_builddir;;
479967f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
480067f05d30Smrg  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
480167f05d30Smrg  esac;;
480267f05d30Smrgesac
480367f05d30Smrgcase $ac_abs_builddir in
480467f05d30Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;;
480567f05d30Smrg*)
480667f05d30Smrg  case $ac_top_srcdir in
480767f05d30Smrg  .) ac_abs_top_srcdir=$ac_abs_builddir;;
480867f05d30Smrg  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
480967f05d30Smrg  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
481067f05d30Smrg  esac;;
481167f05d30Smrgesac
481267f05d30Smrg
481367f05d30Smrg
481467f05d30Smrg  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
481567f05d30Smrgecho "$as_me: executing $ac_dest commands" >&6;}
481667f05d30Smrg  case $ac_dest in
481767f05d30Smrg    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
481867f05d30Smrg  # Strip MF so we end up with the name of the file.
481967f05d30Smrg  mf=`echo "$mf" | sed -e 's/:.*$//'`
482067f05d30Smrg  # Check whether this is an Automake generated Makefile or not.
482167f05d30Smrg  # We used to match only the files named `Makefile.in', but
482267f05d30Smrg  # some people rename them; so instead we look at the file content.
482367f05d30Smrg  # Grep'ing the first line is not enough: some people post-process
482467f05d30Smrg  # each Makefile.in and add a new line on top of each file to say so.
482567f05d30Smrg  # So let's grep whole file.
482667f05d30Smrg  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
482767f05d30Smrg    dirpart=`(dirname "$mf") 2>/dev/null ||
482867f05d30Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
482967f05d30Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
483067f05d30Smrg	 X"$mf" : 'X\(//\)$' \| \
483167f05d30Smrg	 X"$mf" : 'X\(/\)' \| \
483267f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
483367f05d30Smrgecho X"$mf" |
483467f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
483567f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
483667f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
483767f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
483867f05d30Smrg  	  s/.*/./; q'`
483967f05d30Smrg  else
484067f05d30Smrg    continue
484167f05d30Smrg  fi
484267f05d30Smrg  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
484367f05d30Smrg  # Extract the definition of DEP_FILES from the Makefile without
484467f05d30Smrg  # running `make'.
484567f05d30Smrg  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
484667f05d30Smrg  test -z "$DEPDIR" && continue
484767f05d30Smrg  # When using ansi2knr, U may be empty or an underscore; expand it
484867f05d30Smrg  U=`sed -n -e '/^U = / s///p' < "$mf"`
484967f05d30Smrg  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
485067f05d30Smrg  # We invoke sed twice because it is the simplest approach to
485167f05d30Smrg  # changing $(DEPDIR) to its actual value in the expansion.
485267f05d30Smrg  for file in `sed -n -e '
485367f05d30Smrg    /^DEP_FILES = .*\\\\$/ {
485467f05d30Smrg      s/^DEP_FILES = //
485567f05d30Smrg      :loop
485667f05d30Smrg	s/\\\\$//
485767f05d30Smrg	p
485867f05d30Smrg	n
485967f05d30Smrg	/\\\\$/ b loop
486067f05d30Smrg      p
486167f05d30Smrg    }
486267f05d30Smrg    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
486367f05d30Smrg       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
486467f05d30Smrg    # Make sure the directory exists.
486567f05d30Smrg    test -f "$dirpart/$file" && continue
486667f05d30Smrg    fdir=`(dirname "$file") 2>/dev/null ||
486767f05d30Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
486867f05d30Smrg	 X"$file" : 'X\(//\)[^/]' \| \
486967f05d30Smrg	 X"$file" : 'X\(//\)$' \| \
487067f05d30Smrg	 X"$file" : 'X\(/\)' \| \
487167f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
487267f05d30Smrgecho X"$file" |
487367f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
487467f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
487567f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
487667f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
487767f05d30Smrg  	  s/.*/./; q'`
487867f05d30Smrg    { if $as_mkdir_p; then
487967f05d30Smrg    mkdir -p $dirpart/$fdir
488067f05d30Smrg  else
488167f05d30Smrg    as_dir=$dirpart/$fdir
488267f05d30Smrg    as_dirs=
488367f05d30Smrg    while test ! -d "$as_dir"; do
488467f05d30Smrg      as_dirs="$as_dir $as_dirs"
488567f05d30Smrg      as_dir=`(dirname "$as_dir") 2>/dev/null ||
488667f05d30Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
488767f05d30Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
488867f05d30Smrg	 X"$as_dir" : 'X\(//\)$' \| \
488967f05d30Smrg	 X"$as_dir" : 'X\(/\)' \| \
489067f05d30Smrg	 .     : '\(.\)' 2>/dev/null ||
489167f05d30Smrgecho X"$as_dir" |
489267f05d30Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
489367f05d30Smrg  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
489467f05d30Smrg  	  /^X\(\/\/\)$/{ s//\1/; q; }
489567f05d30Smrg  	  /^X\(\/\).*/{ s//\1/; q; }
489667f05d30Smrg  	  s/.*/./; q'`
489767f05d30Smrg    done
489867f05d30Smrg    test ! -n "$as_dirs" || mkdir $as_dirs
489967f05d30Smrg  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
490067f05d30Smrgecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
490167f05d30Smrg   { (exit 1); exit 1; }; }; }
490267f05d30Smrg
490367f05d30Smrg    # echo "creating $dirpart/$file"
490467f05d30Smrg    echo '# dummy' > "$dirpart/$file"
490567f05d30Smrg  done
490667f05d30Smrgdone
490767f05d30Smrg ;;
490867f05d30Smrg  esac
490967f05d30Smrgdone
491067f05d30Smrg_ACEOF
491167f05d30Smrg
491267f05d30Smrgcat >>$CONFIG_STATUS <<\_ACEOF
491367f05d30Smrg
491467f05d30Smrg{ (exit 0); exit 0; }
491567f05d30Smrg_ACEOF
491667f05d30Smrgchmod +x $CONFIG_STATUS
491767f05d30Smrgac_clean_files=$ac_clean_files_save
491867f05d30Smrg
491967f05d30Smrg
492067f05d30Smrg# configure is writing to config.log, and then calls config.status.
492167f05d30Smrg# config.status does its own redirection, appending to config.log.
492267f05d30Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
492367f05d30Smrg# by configure, so config.status won't be able to write to it; its
492467f05d30Smrg# output is simply discarded.  So we exec the FD to /dev/null,
492567f05d30Smrg# effectively closing config.log, so it can be properly (re)opened and
492667f05d30Smrg# appended to by config.status.  When coming back to configure, we
492767f05d30Smrg# need to make the FD available again.
492867f05d30Smrgif test "$no_create" != yes; then
492967f05d30Smrg  ac_cs_success=:
493067f05d30Smrg  ac_config_status_args=
493167f05d30Smrg  test "$silent" = yes &&
493267f05d30Smrg    ac_config_status_args="$ac_config_status_args --quiet"
493367f05d30Smrg  exec 5>/dev/null
493467f05d30Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
493567f05d30Smrg  exec 5>>config.log
493667f05d30Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
493767f05d30Smrg  # would make configure fail if this is the last instruction.
493867f05d30Smrg  $ac_cs_success || { (exit 1); exit 1; }
493967f05d30Smrgfi
494067f05d30Smrg
4941