configure revision 14ddf674
1cacd992dSmrg#! /bin/sh
2cacd992dSmrg# Guess values for system-dependent variables and create Makefiles.
314ddf674Smrg# Generated by GNU Autoconf 2.65 for xvidtune 1.0.2.
4cacd992dSmrg#
5cacd992dSmrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6cacd992dSmrg#
714ddf674Smrg#
814ddf674Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
914ddf674Smrg# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
1014ddf674Smrg# Inc.
1114ddf674Smrg#
1214ddf674Smrg#
13cacd992dSmrg# This configure script is free software; the Free Software Foundation
14cacd992dSmrg# gives unlimited permission to copy, distribute and modify it.
1514ddf674Smrg## -------------------- ##
1614ddf674Smrg## M4sh Initialization. ##
1714ddf674Smrg## -------------------- ##
18cacd992dSmrg
1914ddf674Smrg# Be more Bourne compatible
2014ddf674SmrgDUALCASE=1; export DUALCASE # for MKS sh
2114ddf674Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22cacd992dSmrg  emulate sh
23cacd992dSmrg  NULLCMD=:
2414ddf674Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25cacd992dSmrg  # is contrary to our usage.  Disable this feature.
26cacd992dSmrg  alias -g '${1+"$@"}'='"$@"'
2714ddf674Smrg  setopt NO_GLOB_SUBST
2814ddf674Smrgelse
2914ddf674Smrg  case `(set -o) 2>/dev/null` in #(
3014ddf674Smrg  *posix*) :
3114ddf674Smrg    set -o posix ;; #(
3214ddf674Smrg  *) :
3314ddf674Smrg     ;;
3414ddf674Smrgesac
35cacd992dSmrgfi
36cacd992dSmrg
3714ddf674Smrg
3814ddf674Smrgas_nl='
3914ddf674Smrg'
4014ddf674Smrgexport as_nl
4114ddf674Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4214ddf674Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4314ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4414ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4514ddf674Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4614ddf674Smrg# but without wasting forks for bash or zsh.
4714ddf674Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4814ddf674Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4914ddf674Smrg  as_echo='print -r --'
5014ddf674Smrg  as_echo_n='print -rn --'
5114ddf674Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5214ddf674Smrg  as_echo='printf %s\n'
5314ddf674Smrg  as_echo_n='printf %s'
54cacd992dSmrgelse
5514ddf674Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5614ddf674Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5714ddf674Smrg    as_echo_n='/usr/ucb/echo -n'
5814ddf674Smrg  else
5914ddf674Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6014ddf674Smrg    as_echo_n_body='eval
6114ddf674Smrg      arg=$1;
6214ddf674Smrg      case $arg in #(
6314ddf674Smrg      *"$as_nl"*)
6414ddf674Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6514ddf674Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6614ddf674Smrg      esac;
6714ddf674Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6814ddf674Smrg    '
6914ddf674Smrg    export as_echo_n_body
7014ddf674Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
7114ddf674Smrg  fi
7214ddf674Smrg  export as_echo_body
7314ddf674Smrg  as_echo='sh -c $as_echo_body as_echo'
7414ddf674Smrgfi
7514ddf674Smrg
7614ddf674Smrg# The user is always right.
7714ddf674Smrgif test "${PATH_SEPARATOR+set}" != set; then
7814ddf674Smrg  PATH_SEPARATOR=:
7914ddf674Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8014ddf674Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8114ddf674Smrg      PATH_SEPARATOR=';'
8214ddf674Smrg  }
83cacd992dSmrgfi
84cacd992dSmrg
85cacd992dSmrg
8614ddf674Smrg# IFS
8714ddf674Smrg# We need space, tab and new line, in precisely that order.  Quoting is
8814ddf674Smrg# there to prevent editors from complaining about space-tab.
8914ddf674Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9014ddf674Smrg# splitting by setting IFS to empty value.)
9114ddf674SmrgIFS=" ""	$as_nl"
9214ddf674Smrg
9314ddf674Smrg# Find who we are.  Look in the path if we contain no directory separator.
9414ddf674Smrgcase $0 in #((
9514ddf674Smrg  *[\\/]* ) as_myself=$0 ;;
9614ddf674Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714ddf674Smrgfor as_dir in $PATH
9814ddf674Smrgdo
9914ddf674Smrg  IFS=$as_save_IFS
10014ddf674Smrg  test -z "$as_dir" && as_dir=.
10114ddf674Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10214ddf674Smrg  done
10314ddf674SmrgIFS=$as_save_IFS
10414ddf674Smrg
10514ddf674Smrg     ;;
10614ddf674Smrgesac
10714ddf674Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10814ddf674Smrg# in which case we are not to be found in the path.
10914ddf674Smrgif test "x$as_myself" = x; then
11014ddf674Smrg  as_myself=$0
11114ddf674Smrgfi
11214ddf674Smrgif test ! -f "$as_myself"; then
11314ddf674Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11414ddf674Smrg  exit 1
11514ddf674Smrgfi
11614ddf674Smrg
11714ddf674Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11814ddf674Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11914ddf674Smrg# suppresses any "Segmentation fault" message there.  '((' could
12014ddf674Smrg# trigger a bug in pdksh 5.2.14.
12114ddf674Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12214ddf674Smrgdo eval test x\${$as_var+set} = xset \
12314ddf674Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12414ddf674Smrgdone
125cacd992dSmrgPS1='$ '
126cacd992dSmrgPS2='> '
127cacd992dSmrgPS4='+ '
128cacd992dSmrg
129cacd992dSmrg# NLS nuisances.
13014ddf674SmrgLC_ALL=C
13114ddf674Smrgexport LC_ALL
13214ddf674SmrgLANGUAGE=C
13314ddf674Smrgexport LANGUAGE
13414ddf674Smrg
13514ddf674Smrg# CDPATH.
13614ddf674Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13714ddf674Smrg
13814ddf674Smrgif test "x$CONFIG_SHELL" = x; then
13914ddf674Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
14014ddf674Smrg  emulate sh
14114ddf674Smrg  NULLCMD=:
14214ddf674Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14314ddf674Smrg  # is contrary to our usage.  Disable this feature.
14414ddf674Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
14514ddf674Smrg  setopt NO_GLOB_SUBST
14614ddf674Smrgelse
14714ddf674Smrg  case \`(set -o) 2>/dev/null\` in #(
14814ddf674Smrg  *posix*) :
14914ddf674Smrg    set -o posix ;; #(
15014ddf674Smrg  *) :
15114ddf674Smrg     ;;
15214ddf674Smrgesac
15314ddf674Smrgfi
15414ddf674Smrg"
15514ddf674Smrg  as_required="as_fn_return () { (exit \$1); }
15614ddf674Smrgas_fn_success () { as_fn_return 0; }
15714ddf674Smrgas_fn_failure () { as_fn_return 1; }
15814ddf674Smrgas_fn_ret_success () { return 0; }
15914ddf674Smrgas_fn_ret_failure () { return 1; }
16014ddf674Smrg
16114ddf674Smrgexitcode=0
16214ddf674Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16314ddf674Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
16414ddf674Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
16514ddf674Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
16614ddf674Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
16714ddf674Smrg
16814ddf674Smrgelse
16914ddf674Smrg  exitcode=1; echo positional parameters were not saved.
17014ddf674Smrgfi
17114ddf674Smrgtest x\$exitcode = x0 || exit 1"
17214ddf674Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
17314ddf674Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
17414ddf674Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
17514ddf674Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
17614ddf674Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
17714ddf674Smrg  if (eval "$as_required") 2>/dev/null; then :
17814ddf674Smrg  as_have_required=yes
17914ddf674Smrgelse
18014ddf674Smrg  as_have_required=no
18114ddf674Smrgfi
18214ddf674Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
18314ddf674Smrg
18414ddf674Smrgelse
18514ddf674Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18614ddf674Smrgas_found=false
18714ddf674Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188cacd992dSmrgdo
18914ddf674Smrg  IFS=$as_save_IFS
19014ddf674Smrg  test -z "$as_dir" && as_dir=.
19114ddf674Smrg  as_found=:
19214ddf674Smrg  case $as_dir in #(
19314ddf674Smrg	 /*)
19414ddf674Smrg	   for as_base in sh bash ksh sh5; do
19514ddf674Smrg	     # Try only shells that exist, to save several forks.
19614ddf674Smrg	     as_shell=$as_dir/$as_base
19714ddf674Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
19814ddf674Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
19914ddf674Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
20014ddf674Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
20114ddf674Smrg  break 2
20214ddf674Smrgfi
20314ddf674Smrgfi
20414ddf674Smrg	   done;;
20514ddf674Smrg       esac
20614ddf674Smrg  as_found=false
20714ddf674Smrgdone
20814ddf674Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
20914ddf674Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
21014ddf674Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
21114ddf674Smrgfi; }
21214ddf674SmrgIFS=$as_save_IFS
21314ddf674Smrg
21414ddf674Smrg
21514ddf674Smrg      if test "x$CONFIG_SHELL" != x; then :
21614ddf674Smrg  # We cannot yet assume a decent shell, so we have to provide a
21714ddf674Smrg	# neutralization value for shells without unset; and this also
21814ddf674Smrg	# works around shells that cannot unset nonexistent variables.
21914ddf674Smrg	BASH_ENV=/dev/null
22014ddf674Smrg	ENV=/dev/null
22114ddf674Smrg	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
22214ddf674Smrg	export CONFIG_SHELL
22314ddf674Smrg	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
22414ddf674Smrgfi
22514ddf674Smrg
22614ddf674Smrg    if test x$as_have_required = xno; then :
22714ddf674Smrg  $as_echo "$0: This script requires a shell more modern than all"
22814ddf674Smrg  $as_echo "$0: the shells that I found on your system."
22914ddf674Smrg  if test x${ZSH_VERSION+set} = xset ; then
23014ddf674Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
23114ddf674Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232cacd992dSmrg  else
23314ddf674Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
23414ddf674Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
23514ddf674Smrg$0: about your system, including any error possibly output
23614ddf674Smrg$0: before this message. Then install a modern shell, or
23714ddf674Smrg$0: manually run the script under such a shell if you do
23814ddf674Smrg$0: have one."
239cacd992dSmrg  fi
24014ddf674Smrg  exit 1
24114ddf674Smrgfi
24214ddf674Smrgfi
24314ddf674Smrgfi
24414ddf674SmrgSHELL=${CONFIG_SHELL-/bin/sh}
24514ddf674Smrgexport SHELL
24614ddf674Smrg# Unset more variables known to interfere with behavior of common tools.
24714ddf674SmrgCLICOLOR_FORCE= GREP_OPTIONS=
24814ddf674Smrgunset CLICOLOR_FORCE GREP_OPTIONS
24914ddf674Smrg
25014ddf674Smrg## --------------------- ##
25114ddf674Smrg## M4sh Shell Functions. ##
25214ddf674Smrg## --------------------- ##
25314ddf674Smrg# as_fn_unset VAR
25414ddf674Smrg# ---------------
25514ddf674Smrg# Portably unset VAR.
25614ddf674Smrgas_fn_unset ()
25714ddf674Smrg{
25814ddf674Smrg  { eval $1=; unset $1;}
25914ddf674Smrg}
26014ddf674Smrgas_unset=as_fn_unset
26114ddf674Smrg
26214ddf674Smrg# as_fn_set_status STATUS
26314ddf674Smrg# -----------------------
26414ddf674Smrg# Set $? to STATUS, without forking.
26514ddf674Smrgas_fn_set_status ()
26614ddf674Smrg{
26714ddf674Smrg  return $1
26814ddf674Smrg} # as_fn_set_status
26914ddf674Smrg
27014ddf674Smrg# as_fn_exit STATUS
27114ddf674Smrg# -----------------
27214ddf674Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27314ddf674Smrgas_fn_exit ()
27414ddf674Smrg{
27514ddf674Smrg  set +e
27614ddf674Smrg  as_fn_set_status $1
27714ddf674Smrg  exit $1
27814ddf674Smrg} # as_fn_exit
27914ddf674Smrg
28014ddf674Smrg# as_fn_mkdir_p
28114ddf674Smrg# -------------
28214ddf674Smrg# Create "$as_dir" as a directory, including parents if necessary.
28314ddf674Smrgas_fn_mkdir_p ()
28414ddf674Smrg{
285cacd992dSmrg
28614ddf674Smrg  case $as_dir in #(
28714ddf674Smrg  -*) as_dir=./$as_dir;;
28814ddf674Smrg  esac
28914ddf674Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
29014ddf674Smrg    as_dirs=
29114ddf674Smrg    while :; do
29214ddf674Smrg      case $as_dir in #(
29314ddf674Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29414ddf674Smrg      *) as_qdir=$as_dir;;
29514ddf674Smrg      esac
29614ddf674Smrg      as_dirs="'$as_qdir' $as_dirs"
29714ddf674Smrg      as_dir=`$as_dirname -- "$as_dir" ||
29814ddf674Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29914ddf674Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
30014ddf674Smrg	 X"$as_dir" : 'X\(//\)$' \| \
30114ddf674Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30214ddf674Smrg$as_echo X"$as_dir" |
30314ddf674Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30414ddf674Smrg	    s//\1/
30514ddf674Smrg	    q
30614ddf674Smrg	  }
30714ddf674Smrg	  /^X\(\/\/\)[^/].*/{
30814ddf674Smrg	    s//\1/
30914ddf674Smrg	    q
31014ddf674Smrg	  }
31114ddf674Smrg	  /^X\(\/\/\)$/{
31214ddf674Smrg	    s//\1/
31314ddf674Smrg	    q
31414ddf674Smrg	  }
31514ddf674Smrg	  /^X\(\/\).*/{
31614ddf674Smrg	    s//\1/
31714ddf674Smrg	    q
31814ddf674Smrg	  }
31914ddf674Smrg	  s/.*/./; q'`
32014ddf674Smrg      test -d "$as_dir" && break
32114ddf674Smrg    done
32214ddf674Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
32314ddf674Smrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32414ddf674Smrg
32514ddf674Smrg
32614ddf674Smrg} # as_fn_mkdir_p
32714ddf674Smrg# as_fn_append VAR VALUE
32814ddf674Smrg# ----------------------
32914ddf674Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
33014ddf674Smrg# advantage of any shell optimizations that allow amortized linear growth over
33114ddf674Smrg# repeated appends, instead of the typical quadratic growth present in naive
33214ddf674Smrg# implementations.
33314ddf674Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33414ddf674Smrg  eval 'as_fn_append ()
33514ddf674Smrg  {
33614ddf674Smrg    eval $1+=\$2
33714ddf674Smrg  }'
33814ddf674Smrgelse
33914ddf674Smrg  as_fn_append ()
34014ddf674Smrg  {
34114ddf674Smrg    eval $1=\$$1\$2
34214ddf674Smrg  }
34314ddf674Smrgfi # as_fn_append
34414ddf674Smrg
34514ddf674Smrg# as_fn_arith ARG...
34614ddf674Smrg# ------------------
34714ddf674Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
34814ddf674Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
34914ddf674Smrg# must be portable across $(()) and expr.
35014ddf674Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35114ddf674Smrg  eval 'as_fn_arith ()
35214ddf674Smrg  {
35314ddf674Smrg    as_val=$(( $* ))
35414ddf674Smrg  }'
35514ddf674Smrgelse
35614ddf674Smrg  as_fn_arith ()
35714ddf674Smrg  {
35814ddf674Smrg    as_val=`expr "$@" || test $? -eq 1`
35914ddf674Smrg  }
36014ddf674Smrgfi # as_fn_arith
36114ddf674Smrg
36214ddf674Smrg
36314ddf674Smrg# as_fn_error ERROR [LINENO LOG_FD]
36414ddf674Smrg# ---------------------------------
36514ddf674Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36614ddf674Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36714ddf674Smrg# script with status $?, using 1 if that was 0.
36814ddf674Smrgas_fn_error ()
36914ddf674Smrg{
37014ddf674Smrg  as_status=$?; test $as_status -eq 0 && as_status=1
37114ddf674Smrg  if test "$3"; then
37214ddf674Smrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37314ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
37414ddf674Smrg  fi
37514ddf674Smrg  $as_echo "$as_me: error: $1" >&2
37614ddf674Smrg  as_fn_exit $as_status
37714ddf674Smrg} # as_fn_error
37814ddf674Smrg
37914ddf674Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
38014ddf674Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381cacd992dSmrg  as_expr=expr
382cacd992dSmrgelse
383cacd992dSmrg  as_expr=false
384cacd992dSmrgfi
385cacd992dSmrg
38614ddf674Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387cacd992dSmrg  as_basename=basename
388cacd992dSmrgelse
389cacd992dSmrg  as_basename=false
390cacd992dSmrgfi
391cacd992dSmrg
39214ddf674Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39314ddf674Smrg  as_dirname=dirname
39414ddf674Smrgelse
39514ddf674Smrg  as_dirname=false
39614ddf674Smrgfi
397cacd992dSmrg
39814ddf674Smrgas_me=`$as_basename -- "$0" ||
399cacd992dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400cacd992dSmrg	 X"$0" : 'X\(//\)$' \| \
40114ddf674Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
40214ddf674Smrg$as_echo X/"$0" |
40314ddf674Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
40414ddf674Smrg	    s//\1/
40514ddf674Smrg	    q
40614ddf674Smrg	  }
40714ddf674Smrg	  /^X\/\(\/\/\)$/{
40814ddf674Smrg	    s//\1/
40914ddf674Smrg	    q
41014ddf674Smrg	  }
41114ddf674Smrg	  /^X\/\(\/\).*/{
41214ddf674Smrg	    s//\1/
41314ddf674Smrg	    q
41414ddf674Smrg	  }
41514ddf674Smrg	  s/.*/./; q'`
416cacd992dSmrg
417cacd992dSmrg# Avoid depending upon Character Ranges.
418cacd992dSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
419cacd992dSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420cacd992dSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
421cacd992dSmrgas_cr_digits='0123456789'
422cacd992dSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
423cacd992dSmrg
424cacd992dSmrg
42514ddf674Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
42614ddf674Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
42714ddf674Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
42814ddf674Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
42914ddf674Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
43014ddf674Smrg  sed -n '
43114ddf674Smrg    p
43214ddf674Smrg    /[$]LINENO/=
43314ddf674Smrg  ' <$as_myself |
434cacd992dSmrg    sed '
43514ddf674Smrg      s/[$]LINENO.*/&-/
43614ddf674Smrg      t lineno
43714ddf674Smrg      b
43814ddf674Smrg      :lineno
439cacd992dSmrg      N
44014ddf674Smrg      :loop
44114ddf674Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442cacd992dSmrg      t loop
44314ddf674Smrg      s/-\n.*//
444cacd992dSmrg    ' >$as_me.lineno &&
44514ddf674Smrg  chmod +x "$as_me.lineno" ||
44614ddf674Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447cacd992dSmrg
448cacd992dSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
449cacd992dSmrg  # (the dirname of $[0] is not the place where we might find the
45014ddf674Smrg  # original and so on.  Autoconf is especially sensitive to this).
45114ddf674Smrg  . "./$as_me.lineno"
452cacd992dSmrg  # Exit status is that of the last command.
453cacd992dSmrg  exit
454cacd992dSmrg}
455cacd992dSmrg
45614ddf674SmrgECHO_C= ECHO_N= ECHO_T=
45714ddf674Smrgcase `echo -n x` in #(((((
45814ddf674Smrg-n*)
45914ddf674Smrg  case `echo 'xy\c'` in
46014ddf674Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
46114ddf674Smrg  xy)  ECHO_C='\c';;
46214ddf674Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
46314ddf674Smrg       ECHO_T='	';;
46414ddf674Smrg  esac;;
46514ddf674Smrg*)
46614ddf674Smrg  ECHO_N='-n';;
467cacd992dSmrgesac
468cacd992dSmrg
46914ddf674Smrgrm -f conf$$ conf$$.exe conf$$.file
47014ddf674Smrgif test -d conf$$.dir; then
47114ddf674Smrg  rm -f conf$$.dir/conf$$.file
472cacd992dSmrgelse
47314ddf674Smrg  rm -f conf$$.dir
47414ddf674Smrg  mkdir conf$$.dir 2>/dev/null
475cacd992dSmrgfi
47614ddf674Smrgif (echo >conf$$.file) 2>/dev/null; then
47714ddf674Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
478cacd992dSmrg    as_ln_s='ln -s'
47914ddf674Smrg    # ... but there are two gotchas:
48014ddf674Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48114ddf674Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48214ddf674Smrg    # In both cases, we have to default to `cp -p'.
48314ddf674Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48414ddf674Smrg      as_ln_s='cp -p'
48514ddf674Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
48614ddf674Smrg    as_ln_s=ln
48714ddf674Smrg  else
48814ddf674Smrg    as_ln_s='cp -p'
489cacd992dSmrg  fi
490cacd992dSmrgelse
491cacd992dSmrg  as_ln_s='cp -p'
492cacd992dSmrgfi
49314ddf674Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
49414ddf674Smrgrmdir conf$$.dir 2>/dev/null
495cacd992dSmrg
496cacd992dSmrgif mkdir -p . 2>/dev/null; then
49714ddf674Smrg  as_mkdir_p='mkdir -p "$as_dir"'
498cacd992dSmrgelse
499cacd992dSmrg  test -d ./-p && rmdir ./-p
500cacd992dSmrg  as_mkdir_p=false
501cacd992dSmrgfi
502cacd992dSmrg
50314ddf674Smrgif test -x / >/dev/null 2>&1; then
50414ddf674Smrg  as_test_x='test -x'
50514ddf674Smrgelse
50614ddf674Smrg  if ls -dL / >/dev/null 2>&1; then
50714ddf674Smrg    as_ls_L_option=L
50814ddf674Smrg  else
50914ddf674Smrg    as_ls_L_option=
51014ddf674Smrg  fi
51114ddf674Smrg  as_test_x='
51214ddf674Smrg    eval sh -c '\''
51314ddf674Smrg      if test -d "$1"; then
51414ddf674Smrg	test -d "$1/.";
51514ddf674Smrg      else
51614ddf674Smrg	case $1 in #(
51714ddf674Smrg	-*)set "./$1";;
51814ddf674Smrg	esac;
51914ddf674Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
52014ddf674Smrg	???[sx]*):;;*)false;;esac;fi
52114ddf674Smrg    '\'' sh
52214ddf674Smrg  '
52314ddf674Smrgfi
52414ddf674Smrgas_executable_p=$as_test_x
525cacd992dSmrg
526cacd992dSmrg# Sed expression to map a string onto a valid CPP name.
527cacd992dSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528cacd992dSmrg
529cacd992dSmrg# Sed expression to map a string onto a valid variable name.
530cacd992dSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531cacd992dSmrg
532cacd992dSmrg
53314ddf674Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
53414ddf674Smrgexec 6>&1
535cacd992dSmrg
536cacd992dSmrg# Name of the host.
537cacd992dSmrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538cacd992dSmrg# so uname gets run too.
539cacd992dSmrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540cacd992dSmrg
541cacd992dSmrg#
542cacd992dSmrg# Initializations.
543cacd992dSmrg#
544cacd992dSmrgac_default_prefix=/usr/local
54514ddf674Smrgac_clean_files=
546cacd992dSmrgac_config_libobj_dir=.
54714ddf674SmrgLIBOBJS=
548cacd992dSmrgcross_compiling=no
549cacd992dSmrgsubdirs=
550cacd992dSmrgMFLAGS=
551cacd992dSmrgMAKEFLAGS=
552cacd992dSmrg
553cacd992dSmrg# Identity of this package.
554cacd992dSmrgPACKAGE_NAME='xvidtune'
555cacd992dSmrgPACKAGE_TARNAME='xvidtune'
55614ddf674SmrgPACKAGE_VERSION='1.0.2'
55714ddf674SmrgPACKAGE_STRING='xvidtune 1.0.2'
558cacd992dSmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
55914ddf674SmrgPACKAGE_URL=''
560cacd992dSmrg
56114ddf674Smrg# Factoring default headers for most tests.
56214ddf674Smrgac_includes_default="\
56314ddf674Smrg#include <stdio.h>
56414ddf674Smrg#ifdef HAVE_SYS_TYPES_H
56514ddf674Smrg# include <sys/types.h>
56614ddf674Smrg#endif
56714ddf674Smrg#ifdef HAVE_SYS_STAT_H
56814ddf674Smrg# include <sys/stat.h>
56914ddf674Smrg#endif
57014ddf674Smrg#ifdef STDC_HEADERS
57114ddf674Smrg# include <stdlib.h>
57214ddf674Smrg# include <stddef.h>
57314ddf674Smrg#else
57414ddf674Smrg# ifdef HAVE_STDLIB_H
57514ddf674Smrg#  include <stdlib.h>
57614ddf674Smrg# endif
57714ddf674Smrg#endif
57814ddf674Smrg#ifdef HAVE_STRING_H
57914ddf674Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
58014ddf674Smrg#  include <memory.h>
58114ddf674Smrg# endif
58214ddf674Smrg# include <string.h>
58314ddf674Smrg#endif
58414ddf674Smrg#ifdef HAVE_STRINGS_H
58514ddf674Smrg# include <strings.h>
58614ddf674Smrg#endif
58714ddf674Smrg#ifdef HAVE_INTTYPES_H
58814ddf674Smrg# include <inttypes.h>
58914ddf674Smrg#endif
59014ddf674Smrg#ifdef HAVE_STDINT_H
59114ddf674Smrg# include <stdint.h>
59214ddf674Smrg#endif
59314ddf674Smrg#ifdef HAVE_UNISTD_H
59414ddf674Smrg# include <unistd.h>
59514ddf674Smrg#endif"
59614ddf674Smrg
59714ddf674Smrgac_subst_vars='am__EXEEXT_FALSE
59814ddf674Smrgam__EXEEXT_TRUE
59914ddf674SmrgLTLIBOBJS
60014ddf674SmrgLIBOBJS
60114ddf674Smrgappdefaultdir
60214ddf674SmrgXVIDTUNE_LIBS
60314ddf674SmrgXVIDTUNE_CFLAGS
60414ddf674SmrgADMIN_MAN_DIR
60514ddf674SmrgDRIVER_MAN_DIR
60614ddf674SmrgMISC_MAN_DIR
60714ddf674SmrgFILE_MAN_DIR
60814ddf674SmrgLIB_MAN_DIR
60914ddf674SmrgAPP_MAN_DIR
61014ddf674SmrgADMIN_MAN_SUFFIX
61114ddf674SmrgDRIVER_MAN_SUFFIX
61214ddf674SmrgMISC_MAN_SUFFIX
61314ddf674SmrgFILE_MAN_SUFFIX
61414ddf674SmrgLIB_MAN_SUFFIX
61514ddf674SmrgAPP_MAN_SUFFIX
61614ddf674Smrghost_os
61714ddf674Smrghost_vendor
61814ddf674Smrghost_cpu
61914ddf674Smrghost
62014ddf674Smrgbuild_os
62114ddf674Smrgbuild_vendor
62214ddf674Smrgbuild_cpu
62314ddf674Smrgbuild
62414ddf674SmrgINSTALL_CMD
62514ddf674SmrgPKG_CONFIG
62614ddf674SmrgCHANGELOG_CMD
62714ddf674SmrgAM_BACKSLASH
62814ddf674SmrgAM_DEFAULT_VERBOSITY
62914ddf674SmrgCWARNFLAGS
63014ddf674SmrgEGREP
63114ddf674SmrgGREP
63214ddf674SmrgCPP
63314ddf674Smrgam__fastdepCC_FALSE
63414ddf674Smrgam__fastdepCC_TRUE
63514ddf674SmrgCCDEPMODE
63614ddf674SmrgAMDEPBACKSLASH
63714ddf674SmrgAMDEP_FALSE
63814ddf674SmrgAMDEP_TRUE
63914ddf674Smrgam__quote
64014ddf674Smrgam__include
64114ddf674SmrgDEPDIR
64214ddf674SmrgOBJEXT
64314ddf674SmrgEXEEXT
64414ddf674Smrgac_ct_CC
64514ddf674SmrgCPPFLAGS
64614ddf674SmrgLDFLAGS
64714ddf674SmrgCFLAGS
64814ddf674SmrgCC
64914ddf674SmrgMAINT
65014ddf674SmrgMAINTAINER_MODE_FALSE
65114ddf674SmrgMAINTAINER_MODE_TRUE
65214ddf674Smrgam__untar
65314ddf674Smrgam__tar
65414ddf674SmrgAMTAR
65514ddf674Smrgam__leading_dot
65614ddf674SmrgSET_MAKE
65714ddf674SmrgAWK
65814ddf674Smrgmkdir_p
65914ddf674SmrgMKDIR_P
66014ddf674SmrgINSTALL_STRIP_PROGRAM
66114ddf674SmrgSTRIP
66214ddf674Smrginstall_sh
66314ddf674SmrgMAKEINFO
66414ddf674SmrgAUTOHEADER
66514ddf674SmrgAUTOMAKE
66614ddf674SmrgAUTOCONF
66714ddf674SmrgACLOCAL
66814ddf674SmrgVERSION
66914ddf674SmrgPACKAGE
67014ddf674SmrgCYGPATH_W
67114ddf674Smrgam__isrc
67214ddf674SmrgINSTALL_DATA
67314ddf674SmrgINSTALL_SCRIPT
67414ddf674SmrgINSTALL_PROGRAM
67514ddf674Smrgtarget_alias
67614ddf674Smrghost_alias
67714ddf674Smrgbuild_alias
67814ddf674SmrgLIBS
67914ddf674SmrgECHO_T
68014ddf674SmrgECHO_N
68114ddf674SmrgECHO_C
68214ddf674SmrgDEFS
68314ddf674Smrgmandir
68414ddf674Smrglocaledir
68514ddf674Smrglibdir
68614ddf674Smrgpsdir
68714ddf674Smrgpdfdir
68814ddf674Smrgdvidir
68914ddf674Smrghtmldir
69014ddf674Smrginfodir
69114ddf674Smrgdocdir
69214ddf674Smrgoldincludedir
69314ddf674Smrgincludedir
69414ddf674Smrglocalstatedir
69514ddf674Smrgsharedstatedir
69614ddf674Smrgsysconfdir
69714ddf674Smrgdatadir
69814ddf674Smrgdatarootdir
69914ddf674Smrglibexecdir
70014ddf674Smrgsbindir
70114ddf674Smrgbindir
70214ddf674Smrgprogram_transform_name
70314ddf674Smrgprefix
70414ddf674Smrgexec_prefix
70514ddf674SmrgPACKAGE_URL
70614ddf674SmrgPACKAGE_BUGREPORT
70714ddf674SmrgPACKAGE_STRING
70814ddf674SmrgPACKAGE_VERSION
70914ddf674SmrgPACKAGE_TARNAME
71014ddf674SmrgPACKAGE_NAME
71114ddf674SmrgPATH_SEPARATOR
71214ddf674SmrgSHELL'
713cacd992dSmrgac_subst_files=''
71414ddf674Smrgac_user_opts='
71514ddf674Smrgenable_option_checking
71614ddf674Smrgenable_maintainer_mode
71714ddf674Smrgenable_dependency_tracking
71814ddf674Smrgenable_silent_rules
71914ddf674Smrgenable_strict_compilation
72014ddf674Smrgwith_release_version
72114ddf674Smrgwith_appdefaultdir
72214ddf674Smrg'
72314ddf674Smrg      ac_precious_vars='build_alias
72414ddf674Smrghost_alias
72514ddf674Smrgtarget_alias
72614ddf674SmrgCC
72714ddf674SmrgCFLAGS
72814ddf674SmrgLDFLAGS
72914ddf674SmrgLIBS
73014ddf674SmrgCPPFLAGS
73114ddf674SmrgCPP
73214ddf674SmrgPKG_CONFIG
73314ddf674SmrgXVIDTUNE_CFLAGS
73414ddf674SmrgXVIDTUNE_LIBS'
73514ddf674Smrg
736cacd992dSmrg
737cacd992dSmrg# Initialize some variables set by options.
738cacd992dSmrgac_init_help=
739cacd992dSmrgac_init_version=false
74014ddf674Smrgac_unrecognized_opts=
74114ddf674Smrgac_unrecognized_sep=
742cacd992dSmrg# The variables have the same names as the options, with
743cacd992dSmrg# dashes changed to underlines.
744cacd992dSmrgcache_file=/dev/null
745cacd992dSmrgexec_prefix=NONE
746cacd992dSmrgno_create=
747cacd992dSmrgno_recursion=
748cacd992dSmrgprefix=NONE
749cacd992dSmrgprogram_prefix=NONE
750cacd992dSmrgprogram_suffix=NONE
751cacd992dSmrgprogram_transform_name=s,x,x,
752cacd992dSmrgsilent=
753cacd992dSmrgsite=
754cacd992dSmrgsrcdir=
755cacd992dSmrgverbose=
756cacd992dSmrgx_includes=NONE
757cacd992dSmrgx_libraries=NONE
758cacd992dSmrg
759cacd992dSmrg# Installation directory options.
760cacd992dSmrg# These are left unexpanded so users can "make install exec_prefix=/foo"
761cacd992dSmrg# and all the variables that are supposed to be based on exec_prefix
762cacd992dSmrg# by default will actually change.
763cacd992dSmrg# Use braces instead of parens because sh, perl, etc. also accept them.
76414ddf674Smrg# (The list follows the same order as the GNU Coding Standards.)
765cacd992dSmrgbindir='${exec_prefix}/bin'
766cacd992dSmrgsbindir='${exec_prefix}/sbin'
767cacd992dSmrglibexecdir='${exec_prefix}/libexec'
76814ddf674Smrgdatarootdir='${prefix}/share'
76914ddf674Smrgdatadir='${datarootdir}'
770cacd992dSmrgsysconfdir='${prefix}/etc'
771cacd992dSmrgsharedstatedir='${prefix}/com'
772cacd992dSmrglocalstatedir='${prefix}/var'
773cacd992dSmrgincludedir='${prefix}/include'
774cacd992dSmrgoldincludedir='/usr/include'
77514ddf674Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
77614ddf674Smrginfodir='${datarootdir}/info'
77714ddf674Smrghtmldir='${docdir}'
77814ddf674Smrgdvidir='${docdir}'
77914ddf674Smrgpdfdir='${docdir}'
78014ddf674Smrgpsdir='${docdir}'
78114ddf674Smrglibdir='${exec_prefix}/lib'
78214ddf674Smrglocaledir='${datarootdir}/locale'
78314ddf674Smrgmandir='${datarootdir}/man'
784cacd992dSmrg
785cacd992dSmrgac_prev=
78614ddf674Smrgac_dashdash=
787cacd992dSmrgfor ac_option
788cacd992dSmrgdo
789cacd992dSmrg  # If the previous option needs an argument, assign it.
790cacd992dSmrg  if test -n "$ac_prev"; then
79114ddf674Smrg    eval $ac_prev=\$ac_option
792cacd992dSmrg    ac_prev=
793cacd992dSmrg    continue
794cacd992dSmrg  fi
795cacd992dSmrg
79614ddf674Smrg  case $ac_option in
79714ddf674Smrg  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
79814ddf674Smrg  *)	ac_optarg=yes ;;
79914ddf674Smrg  esac
800cacd992dSmrg
801cacd992dSmrg  # Accept the important Cygnus configure options, so we can diagnose typos.
802cacd992dSmrg
80314ddf674Smrg  case $ac_dashdash$ac_option in
80414ddf674Smrg  --)
80514ddf674Smrg    ac_dashdash=yes ;;
806cacd992dSmrg
807cacd992dSmrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
808cacd992dSmrg    ac_prev=bindir ;;
809cacd992dSmrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
810cacd992dSmrg    bindir=$ac_optarg ;;
811cacd992dSmrg
812cacd992dSmrg  -build | --build | --buil | --bui | --bu)
813cacd992dSmrg    ac_prev=build_alias ;;
814cacd992dSmrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
815cacd992dSmrg    build_alias=$ac_optarg ;;
816cacd992dSmrg
817cacd992dSmrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
818cacd992dSmrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
819cacd992dSmrg    ac_prev=cache_file ;;
820cacd992dSmrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
821cacd992dSmrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
822cacd992dSmrg    cache_file=$ac_optarg ;;
823cacd992dSmrg
824cacd992dSmrg  --config-cache | -C)
825cacd992dSmrg    cache_file=config.cache ;;
826cacd992dSmrg
82714ddf674Smrg  -datadir | --datadir | --datadi | --datad)
828cacd992dSmrg    ac_prev=datadir ;;
82914ddf674Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
830cacd992dSmrg    datadir=$ac_optarg ;;
831cacd992dSmrg
83214ddf674Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
83314ddf674Smrg  | --dataroo | --dataro | --datar)
83414ddf674Smrg    ac_prev=datarootdir ;;
83514ddf674Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
83614ddf674Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
83714ddf674Smrg    datarootdir=$ac_optarg ;;
83814ddf674Smrg
839cacd992dSmrg  -disable-* | --disable-*)
84014ddf674Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841cacd992dSmrg    # Reject names that are not valid shell variable names.
84214ddf674Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
84314ddf674Smrg      as_fn_error "invalid feature name: $ac_useropt"
84414ddf674Smrg    ac_useropt_orig=$ac_useropt
84514ddf674Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
84614ddf674Smrg    case $ac_user_opts in
84714ddf674Smrg      *"
84814ddf674Smrg"enable_$ac_useropt"
84914ddf674Smrg"*) ;;
85014ddf674Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
85114ddf674Smrg	 ac_unrecognized_sep=', ';;
85214ddf674Smrg    esac
85314ddf674Smrg    eval enable_$ac_useropt=no ;;
85414ddf674Smrg
85514ddf674Smrg  -docdir | --docdir | --docdi | --doc | --do)
85614ddf674Smrg    ac_prev=docdir ;;
85714ddf674Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
85814ddf674Smrg    docdir=$ac_optarg ;;
85914ddf674Smrg
86014ddf674Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
86114ddf674Smrg    ac_prev=dvidir ;;
86214ddf674Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
86314ddf674Smrg    dvidir=$ac_optarg ;;
864cacd992dSmrg
865cacd992dSmrg  -enable-* | --enable-*)
86614ddf674Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
867cacd992dSmrg    # Reject names that are not valid shell variable names.
86814ddf674Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
86914ddf674Smrg      as_fn_error "invalid feature name: $ac_useropt"
87014ddf674Smrg    ac_useropt_orig=$ac_useropt
87114ddf674Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
87214ddf674Smrg    case $ac_user_opts in
87314ddf674Smrg      *"
87414ddf674Smrg"enable_$ac_useropt"
87514ddf674Smrg"*) ;;
87614ddf674Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
87714ddf674Smrg	 ac_unrecognized_sep=', ';;
878cacd992dSmrg    esac
87914ddf674Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
880cacd992dSmrg
881cacd992dSmrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
882cacd992dSmrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
883cacd992dSmrg  | --exec | --exe | --ex)
884cacd992dSmrg    ac_prev=exec_prefix ;;
885cacd992dSmrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
886cacd992dSmrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
887cacd992dSmrg  | --exec=* | --exe=* | --ex=*)
888cacd992dSmrg    exec_prefix=$ac_optarg ;;
889cacd992dSmrg
890cacd992dSmrg  -gas | --gas | --ga | --g)
891cacd992dSmrg    # Obsolete; use --with-gas.
892cacd992dSmrg    with_gas=yes ;;
893cacd992dSmrg
894cacd992dSmrg  -help | --help | --hel | --he | -h)
895cacd992dSmrg    ac_init_help=long ;;
896cacd992dSmrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
897cacd992dSmrg    ac_init_help=recursive ;;
898cacd992dSmrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
899cacd992dSmrg    ac_init_help=short ;;
900cacd992dSmrg
901cacd992dSmrg  -host | --host | --hos | --ho)
902cacd992dSmrg    ac_prev=host_alias ;;
903cacd992dSmrg  -host=* | --host=* | --hos=* | --ho=*)
904cacd992dSmrg    host_alias=$ac_optarg ;;
905cacd992dSmrg
90614ddf674Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
90714ddf674Smrg    ac_prev=htmldir ;;
90814ddf674Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
90914ddf674Smrg  | --ht=*)
91014ddf674Smrg    htmldir=$ac_optarg ;;
91114ddf674Smrg
912cacd992dSmrg  -includedir | --includedir | --includedi | --included | --include \
913cacd992dSmrg  | --includ | --inclu | --incl | --inc)
914cacd992dSmrg    ac_prev=includedir ;;
915cacd992dSmrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
916cacd992dSmrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
917cacd992dSmrg    includedir=$ac_optarg ;;
918cacd992dSmrg
919cacd992dSmrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
920cacd992dSmrg    ac_prev=infodir ;;
921cacd992dSmrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
922cacd992dSmrg    infodir=$ac_optarg ;;
923cacd992dSmrg
924cacd992dSmrg  -libdir | --libdir | --libdi | --libd)
925cacd992dSmrg    ac_prev=libdir ;;
926cacd992dSmrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
927cacd992dSmrg    libdir=$ac_optarg ;;
928cacd992dSmrg
929cacd992dSmrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
930cacd992dSmrg  | --libexe | --libex | --libe)
931cacd992dSmrg    ac_prev=libexecdir ;;
932cacd992dSmrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
933cacd992dSmrg  | --libexe=* | --libex=* | --libe=*)
934cacd992dSmrg    libexecdir=$ac_optarg ;;
935cacd992dSmrg
93614ddf674Smrg  -localedir | --localedir | --localedi | --localed | --locale)
93714ddf674Smrg    ac_prev=localedir ;;
93814ddf674Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
93914ddf674Smrg    localedir=$ac_optarg ;;
94014ddf674Smrg
941cacd992dSmrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
94214ddf674Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
943cacd992dSmrg    ac_prev=localstatedir ;;
944cacd992dSmrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
94514ddf674Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
946cacd992dSmrg    localstatedir=$ac_optarg ;;
947cacd992dSmrg
948cacd992dSmrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
949cacd992dSmrg    ac_prev=mandir ;;
950cacd992dSmrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
951cacd992dSmrg    mandir=$ac_optarg ;;
952cacd992dSmrg
953cacd992dSmrg  -nfp | --nfp | --nf)
954cacd992dSmrg    # Obsolete; use --without-fp.
955cacd992dSmrg    with_fp=no ;;
956cacd992dSmrg
957cacd992dSmrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
958cacd992dSmrg  | --no-cr | --no-c | -n)
959cacd992dSmrg    no_create=yes ;;
960cacd992dSmrg
961cacd992dSmrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
962cacd992dSmrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963cacd992dSmrg    no_recursion=yes ;;
964cacd992dSmrg
965cacd992dSmrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
966cacd992dSmrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
967cacd992dSmrg  | --oldin | --oldi | --old | --ol | --o)
968cacd992dSmrg    ac_prev=oldincludedir ;;
969cacd992dSmrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
970cacd992dSmrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
971cacd992dSmrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
972cacd992dSmrg    oldincludedir=$ac_optarg ;;
973cacd992dSmrg
974cacd992dSmrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
975cacd992dSmrg    ac_prev=prefix ;;
976cacd992dSmrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977cacd992dSmrg    prefix=$ac_optarg ;;
978cacd992dSmrg
979cacd992dSmrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
980cacd992dSmrg  | --program-pre | --program-pr | --program-p)
981cacd992dSmrg    ac_prev=program_prefix ;;
982cacd992dSmrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
983cacd992dSmrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
984cacd992dSmrg    program_prefix=$ac_optarg ;;
985cacd992dSmrg
986cacd992dSmrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
987cacd992dSmrg  | --program-suf | --program-su | --program-s)
988cacd992dSmrg    ac_prev=program_suffix ;;
989cacd992dSmrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
990cacd992dSmrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
991cacd992dSmrg    program_suffix=$ac_optarg ;;
992cacd992dSmrg
993cacd992dSmrg  -program-transform-name | --program-transform-name \
994cacd992dSmrg  | --program-transform-nam | --program-transform-na \
995cacd992dSmrg  | --program-transform-n | --program-transform- \
996cacd992dSmrg  | --program-transform | --program-transfor \
997cacd992dSmrg  | --program-transfo | --program-transf \
998cacd992dSmrg  | --program-trans | --program-tran \
999cacd992dSmrg  | --progr-tra | --program-tr | --program-t)
1000cacd992dSmrg    ac_prev=program_transform_name ;;
1001cacd992dSmrg  -program-transform-name=* | --program-transform-name=* \
1002cacd992dSmrg  | --program-transform-nam=* | --program-transform-na=* \
1003cacd992dSmrg  | --program-transform-n=* | --program-transform-=* \
1004cacd992dSmrg  | --program-transform=* | --program-transfor=* \
1005cacd992dSmrg  | --program-transfo=* | --program-transf=* \
1006cacd992dSmrg  | --program-trans=* | --program-tran=* \
1007cacd992dSmrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1008cacd992dSmrg    program_transform_name=$ac_optarg ;;
1009cacd992dSmrg
101014ddf674Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
101114ddf674Smrg    ac_prev=pdfdir ;;
101214ddf674Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
101314ddf674Smrg    pdfdir=$ac_optarg ;;
101414ddf674Smrg
101514ddf674Smrg  -psdir | --psdir | --psdi | --psd | --ps)
101614ddf674Smrg    ac_prev=psdir ;;
101714ddf674Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
101814ddf674Smrg    psdir=$ac_optarg ;;
101914ddf674Smrg
1020cacd992dSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021cacd992dSmrg  | -silent | --silent | --silen | --sile | --sil)
1022cacd992dSmrg    silent=yes ;;
1023cacd992dSmrg
1024cacd992dSmrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1025cacd992dSmrg    ac_prev=sbindir ;;
1026cacd992dSmrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1027cacd992dSmrg  | --sbi=* | --sb=*)
1028cacd992dSmrg    sbindir=$ac_optarg ;;
1029cacd992dSmrg
1030cacd992dSmrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1031cacd992dSmrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1032cacd992dSmrg  | --sharedst | --shareds | --shared | --share | --shar \
1033cacd992dSmrg  | --sha | --sh)
1034cacd992dSmrg    ac_prev=sharedstatedir ;;
1035cacd992dSmrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1036cacd992dSmrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1037cacd992dSmrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1038cacd992dSmrg  | --sha=* | --sh=*)
1039cacd992dSmrg    sharedstatedir=$ac_optarg ;;
1040cacd992dSmrg
1041cacd992dSmrg  -site | --site | --sit)
1042cacd992dSmrg    ac_prev=site ;;
1043cacd992dSmrg  -site=* | --site=* | --sit=*)
1044cacd992dSmrg    site=$ac_optarg ;;
1045cacd992dSmrg
1046cacd992dSmrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1047cacd992dSmrg    ac_prev=srcdir ;;
1048cacd992dSmrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1049cacd992dSmrg    srcdir=$ac_optarg ;;
1050cacd992dSmrg
1051cacd992dSmrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1052cacd992dSmrg  | --syscon | --sysco | --sysc | --sys | --sy)
1053cacd992dSmrg    ac_prev=sysconfdir ;;
1054cacd992dSmrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1055cacd992dSmrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1056cacd992dSmrg    sysconfdir=$ac_optarg ;;
1057cacd992dSmrg
1058cacd992dSmrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1059cacd992dSmrg    ac_prev=target_alias ;;
1060cacd992dSmrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1061cacd992dSmrg    target_alias=$ac_optarg ;;
1062cacd992dSmrg
1063cacd992dSmrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064cacd992dSmrg    verbose=yes ;;
1065cacd992dSmrg
1066cacd992dSmrg  -version | --version | --versio | --versi | --vers | -V)
1067cacd992dSmrg    ac_init_version=: ;;
1068cacd992dSmrg
1069cacd992dSmrg  -with-* | --with-*)
107014ddf674Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071cacd992dSmrg    # Reject names that are not valid shell variable names.
107214ddf674Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
107314ddf674Smrg      as_fn_error "invalid package name: $ac_useropt"
107414ddf674Smrg    ac_useropt_orig=$ac_useropt
107514ddf674Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
107614ddf674Smrg    case $ac_user_opts in
107714ddf674Smrg      *"
107814ddf674Smrg"with_$ac_useropt"
107914ddf674Smrg"*) ;;
108014ddf674Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
108114ddf674Smrg	 ac_unrecognized_sep=', ';;
1082cacd992dSmrg    esac
108314ddf674Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1084cacd992dSmrg
1085cacd992dSmrg  -without-* | --without-*)
108614ddf674Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1087cacd992dSmrg    # Reject names that are not valid shell variable names.
108814ddf674Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
108914ddf674Smrg      as_fn_error "invalid package name: $ac_useropt"
109014ddf674Smrg    ac_useropt_orig=$ac_useropt
109114ddf674Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
109214ddf674Smrg    case $ac_user_opts in
109314ddf674Smrg      *"
109414ddf674Smrg"with_$ac_useropt"
109514ddf674Smrg"*) ;;
109614ddf674Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
109714ddf674Smrg	 ac_unrecognized_sep=', ';;
109814ddf674Smrg    esac
109914ddf674Smrg    eval with_$ac_useropt=no ;;
1100cacd992dSmrg
1101cacd992dSmrg  --x)
1102cacd992dSmrg    # Obsolete; use --with-x.
1103cacd992dSmrg    with_x=yes ;;
1104cacd992dSmrg
1105cacd992dSmrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1106cacd992dSmrg  | --x-incl | --x-inc | --x-in | --x-i)
1107cacd992dSmrg    ac_prev=x_includes ;;
1108cacd992dSmrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1109cacd992dSmrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1110cacd992dSmrg    x_includes=$ac_optarg ;;
1111cacd992dSmrg
1112cacd992dSmrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1113cacd992dSmrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1114cacd992dSmrg    ac_prev=x_libraries ;;
1115cacd992dSmrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1116cacd992dSmrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1117cacd992dSmrg    x_libraries=$ac_optarg ;;
1118cacd992dSmrg
111914ddf674Smrg  -*) as_fn_error "unrecognized option: \`$ac_option'
112014ddf674SmrgTry \`$0 --help' for more information."
1121cacd992dSmrg    ;;
1122cacd992dSmrg
1123cacd992dSmrg  *=*)
1124cacd992dSmrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1125cacd992dSmrg    # Reject names that are not valid shell variable names.
112614ddf674Smrg    case $ac_envvar in #(
112714ddf674Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
112814ddf674Smrg      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
112914ddf674Smrg    esac
113014ddf674Smrg    eval $ac_envvar=\$ac_optarg
1131cacd992dSmrg    export $ac_envvar ;;
1132cacd992dSmrg
1133cacd992dSmrg  *)
1134cacd992dSmrg    # FIXME: should be removed in autoconf 3.0.
113514ddf674Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1136cacd992dSmrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
113714ddf674Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1138cacd992dSmrg    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1139cacd992dSmrg    ;;
1140cacd992dSmrg
1141cacd992dSmrg  esac
1142cacd992dSmrgdone
1143cacd992dSmrg
1144cacd992dSmrgif test -n "$ac_prev"; then
1145cacd992dSmrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
114614ddf674Smrg  as_fn_error "missing argument to $ac_option"
1147cacd992dSmrgfi
1148cacd992dSmrg
114914ddf674Smrgif test -n "$ac_unrecognized_opts"; then
115014ddf674Smrg  case $enable_option_checking in
115114ddf674Smrg    no) ;;
115214ddf674Smrg    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
115314ddf674Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1154cacd992dSmrg  esac
115514ddf674Smrgfi
1156cacd992dSmrg
115714ddf674Smrg# Check all directory arguments for consistency.
115814ddf674Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
115914ddf674Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
116014ddf674Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
116114ddf674Smrg		libdir localedir mandir
1162cacd992dSmrgdo
116314ddf674Smrg  eval ac_val=\$$ac_var
116414ddf674Smrg  # Remove trailing slashes.
116514ddf674Smrg  case $ac_val in
116614ddf674Smrg    */ )
116714ddf674Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
116814ddf674Smrg      eval $ac_var=\$ac_val;;
116914ddf674Smrg  esac
117014ddf674Smrg  # Be sure to have absolute directory names.
1171cacd992dSmrg  case $ac_val in
117214ddf674Smrg    [\\/$]* | ?:[\\/]* )  continue;;
117314ddf674Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174cacd992dSmrg  esac
117514ddf674Smrg  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1176cacd992dSmrgdone
1177cacd992dSmrg
1178cacd992dSmrg# There might be people who depend on the old broken behavior: `$host'
1179cacd992dSmrg# used to hold the argument of --host etc.
1180cacd992dSmrg# FIXME: To remove some day.
1181cacd992dSmrgbuild=$build_alias
1182cacd992dSmrghost=$host_alias
1183cacd992dSmrgtarget=$target_alias
1184cacd992dSmrg
1185cacd992dSmrg# FIXME: To remove some day.
1186cacd992dSmrgif test "x$host_alias" != x; then
1187cacd992dSmrg  if test "x$build_alias" = x; then
1188cacd992dSmrg    cross_compiling=maybe
118914ddf674Smrg    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190cacd992dSmrg    If a cross compiler is detected then cross compile mode will be used." >&2
1191cacd992dSmrg  elif test "x$build_alias" != "x$host_alias"; then
1192cacd992dSmrg    cross_compiling=yes
1193cacd992dSmrg  fi
1194cacd992dSmrgfi
1195cacd992dSmrg
1196cacd992dSmrgac_tool_prefix=
1197cacd992dSmrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1198cacd992dSmrg
1199cacd992dSmrgtest "$silent" = yes && exec 6>/dev/null
1200cacd992dSmrg
1201cacd992dSmrg
120214ddf674Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
120314ddf674Smrgac_ls_di=`ls -di .` &&
120414ddf674Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
120514ddf674Smrg  as_fn_error "working directory cannot be determined"
120614ddf674Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
120714ddf674Smrg  as_fn_error "pwd does not report name of working directory"
120814ddf674Smrg
120914ddf674Smrg
1210cacd992dSmrg# Find the source files, if location was not specified.
1211cacd992dSmrgif test -z "$srcdir"; then
1212cacd992dSmrg  ac_srcdir_defaulted=yes
121314ddf674Smrg  # Try the directory containing this script, then the parent directory.
121414ddf674Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
121514ddf674Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
121614ddf674Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
121714ddf674Smrg	 X"$as_myself" : 'X\(//\)$' \| \
121814ddf674Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
121914ddf674Smrg$as_echo X"$as_myself" |
122014ddf674Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
122114ddf674Smrg	    s//\1/
122214ddf674Smrg	    q
122314ddf674Smrg	  }
122414ddf674Smrg	  /^X\(\/\/\)[^/].*/{
122514ddf674Smrg	    s//\1/
122614ddf674Smrg	    q
122714ddf674Smrg	  }
122814ddf674Smrg	  /^X\(\/\/\)$/{
122914ddf674Smrg	    s//\1/
123014ddf674Smrg	    q
123114ddf674Smrg	  }
123214ddf674Smrg	  /^X\(\/\).*/{
123314ddf674Smrg	    s//\1/
123414ddf674Smrg	    q
123514ddf674Smrg	  }
123614ddf674Smrg	  s/.*/./; q'`
1237cacd992dSmrg  srcdir=$ac_confdir
123814ddf674Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1239cacd992dSmrg    srcdir=..
1240cacd992dSmrg  fi
1241cacd992dSmrgelse
1242cacd992dSmrg  ac_srcdir_defaulted=no
1243cacd992dSmrgfi
124414ddf674Smrgif test ! -r "$srcdir/$ac_unique_file"; then
124514ddf674Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
124614ddf674Smrg  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
124714ddf674Smrgfi
124814ddf674Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
124914ddf674Smrgac_abs_confdir=`(
125014ddf674Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
125114ddf674Smrg	pwd)`
125214ddf674Smrg# When building in place, set srcdir=.
125314ddf674Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
125414ddf674Smrg  srcdir=.
125514ddf674Smrgfi
125614ddf674Smrg# Remove unnecessary trailing slashes from srcdir.
125714ddf674Smrg# Double slashes in file names in object file debugging info
125814ddf674Smrg# mess up M-x gdb in Emacs.
125914ddf674Smrgcase $srcdir in
126014ddf674Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
126114ddf674Smrgesac
126214ddf674Smrgfor ac_var in $ac_precious_vars; do
126314ddf674Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
126414ddf674Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
126514ddf674Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
126614ddf674Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
126714ddf674Smrgdone
1268cacd992dSmrg
1269cacd992dSmrg#
1270cacd992dSmrg# Report the --help message.
1271cacd992dSmrg#
1272cacd992dSmrgif test "$ac_init_help" = "long"; then
1273cacd992dSmrg  # Omit some internal or obsolete options to make the list less imposing.
1274cacd992dSmrg  # This message is too long to be a string in the A/UX 3.1 sh.
1275cacd992dSmrg  cat <<_ACEOF
127614ddf674Smrg\`configure' configures xvidtune 1.0.2 to adapt to many kinds of systems.
1277cacd992dSmrg
1278cacd992dSmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1279cacd992dSmrg
1280cacd992dSmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1281cacd992dSmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1282cacd992dSmrg
1283cacd992dSmrgDefaults for the options are specified in brackets.
1284cacd992dSmrg
1285cacd992dSmrgConfiguration:
1286cacd992dSmrg  -h, --help              display this help and exit
1287cacd992dSmrg      --help=short        display options specific to this package
1288cacd992dSmrg      --help=recursive    display the short help of all the included packages
1289cacd992dSmrg  -V, --version           display version information and exit
1290cacd992dSmrg  -q, --quiet, --silent   do not print \`checking...' messages
1291cacd992dSmrg      --cache-file=FILE   cache test results in FILE [disabled]
1292cacd992dSmrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1293cacd992dSmrg  -n, --no-create         do not create output files
1294cacd992dSmrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1295cacd992dSmrg
1296cacd992dSmrgInstallation directories:
1297cacd992dSmrg  --prefix=PREFIX         install architecture-independent files in PREFIX
129814ddf674Smrg                          [$ac_default_prefix]
1299cacd992dSmrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
130014ddf674Smrg                          [PREFIX]
1301cacd992dSmrg
1302cacd992dSmrgBy default, \`make install' will install all the files in
1303cacd992dSmrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1304cacd992dSmrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1305cacd992dSmrgfor instance \`--prefix=\$HOME'.
1306cacd992dSmrg
1307cacd992dSmrgFor better control, use the options below.
1308cacd992dSmrg
1309cacd992dSmrgFine tuning of the installation directories:
131014ddf674Smrg  --bindir=DIR            user executables [EPREFIX/bin]
131114ddf674Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
131214ddf674Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
131314ddf674Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
131414ddf674Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
131514ddf674Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
131614ddf674Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
131714ddf674Smrg  --includedir=DIR        C header files [PREFIX/include]
131814ddf674Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
131914ddf674Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
132014ddf674Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
132114ddf674Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
132214ddf674Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
132314ddf674Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
132414ddf674Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xvidtune]
132514ddf674Smrg  --htmldir=DIR           html documentation [DOCDIR]
132614ddf674Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
132714ddf674Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
132814ddf674Smrg  --psdir=DIR             ps documentation [DOCDIR]
1329cacd992dSmrg_ACEOF
1330cacd992dSmrg
1331cacd992dSmrg  cat <<\_ACEOF
1332cacd992dSmrg
1333cacd992dSmrgProgram names:
1334cacd992dSmrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1335cacd992dSmrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1336cacd992dSmrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1337cacd992dSmrg
1338cacd992dSmrgSystem types:
1339cacd992dSmrg  --build=BUILD     configure for building on BUILD [guessed]
1340cacd992dSmrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1341cacd992dSmrg_ACEOF
1342cacd992dSmrgfi
1343cacd992dSmrg
1344cacd992dSmrgif test -n "$ac_init_help"; then
1345cacd992dSmrg  case $ac_init_help in
134614ddf674Smrg     short | recursive ) echo "Configuration of xvidtune 1.0.2:";;
1347cacd992dSmrg   esac
1348cacd992dSmrg  cat <<\_ACEOF
1349cacd992dSmrg
1350cacd992dSmrgOptional Features:
135114ddf674Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1352cacd992dSmrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1353cacd992dSmrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
135414ddf674Smrg  --enable-maintainer-mode  enable make rules and dependencies not useful
135514ddf674Smrg			  (and sometimes confusing) to the casual installer
135614ddf674Smrg  --disable-dependency-tracking  speeds up one-time build
135714ddf674Smrg  --enable-dependency-tracking   do not reject slow dependency extractors
135814ddf674Smrg  --enable-silent-rules          less verbose build output (undo: `make V=1')
135914ddf674Smrg  --disable-silent-rules         verbose build output (undo: `make V=0')
136014ddf674Smrg  --enable-strict-compilation
136114ddf674Smrg                          Enable all warnings from compiler and make them
136214ddf674Smrg                          errors (default: disabled)
1363cacd992dSmrg
1364cacd992dSmrgOptional Packages:
1365cacd992dSmrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1366cacd992dSmrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1367cacd992dSmrg  --with-release-version=STRING
1368cacd992dSmrg                          Use release version string in package name
136914ddf674Smrg  --with-appdefaultdir=<pathname>
137014ddf674Smrg                          specify directory for app-defaults files (default is
137114ddf674Smrg                          autodetected)
1372cacd992dSmrg
1373cacd992dSmrgSome influential environment variables:
1374cacd992dSmrg  CC          C compiler command
1375cacd992dSmrg  CFLAGS      C compiler flags
1376cacd992dSmrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1377cacd992dSmrg              nonstandard directory <lib dir>
137814ddf674Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
137914ddf674Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
138014ddf674Smrg              you have headers in a nonstandard directory <include dir>
1381cacd992dSmrg  CPP         C preprocessor
1382cacd992dSmrg  PKG_CONFIG  path to pkg-config utility
1383cacd992dSmrg  XVIDTUNE_CFLAGS
1384cacd992dSmrg              C compiler flags for XVIDTUNE, overriding pkg-config
1385cacd992dSmrg  XVIDTUNE_LIBS
1386cacd992dSmrg              linker flags for XVIDTUNE, overriding pkg-config
1387cacd992dSmrg
1388cacd992dSmrgUse these variables to override the choices made by `configure' or to help
1389cacd992dSmrgit to find libraries and programs with nonstandard names/locations.
1390cacd992dSmrg
1391cacd992dSmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1392cacd992dSmrg_ACEOF
139314ddf674Smrgac_status=$?
1394cacd992dSmrgfi
1395cacd992dSmrg
1396cacd992dSmrgif test "$ac_init_help" = "recursive"; then
1397cacd992dSmrg  # If there are subdirs, report their specific --help.
1398cacd992dSmrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
139914ddf674Smrg    test -d "$ac_dir" ||
140014ddf674Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
140114ddf674Smrg      continue
1402cacd992dSmrg    ac_builddir=.
1403cacd992dSmrg
140414ddf674Smrgcase "$ac_dir" in
140514ddf674Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
140614ddf674Smrg*)
140714ddf674Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
140814ddf674Smrg  # A ".." for each directory in $ac_dir_suffix.
140914ddf674Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
141014ddf674Smrg  case $ac_top_builddir_sub in
141114ddf674Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
141214ddf674Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
141314ddf674Smrg  esac ;;
141414ddf674Smrgesac
141514ddf674Smrgac_abs_top_builddir=$ac_pwd
141614ddf674Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
141714ddf674Smrg# for backward compatibility:
141814ddf674Smrgac_top_builddir=$ac_top_build_prefix
1419cacd992dSmrg
1420cacd992dSmrgcase $srcdir in
142114ddf674Smrg  .)  # We are building in place.
1422cacd992dSmrg    ac_srcdir=.
142314ddf674Smrg    ac_top_srcdir=$ac_top_builddir_sub
142414ddf674Smrg    ac_abs_top_srcdir=$ac_pwd ;;
142514ddf674Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1426cacd992dSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
142714ddf674Smrg    ac_top_srcdir=$srcdir
142814ddf674Smrg    ac_abs_top_srcdir=$srcdir ;;
142914ddf674Smrg  *) # Relative name.
143014ddf674Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
143114ddf674Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
143214ddf674Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433cacd992dSmrgesac
143414ddf674Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
143514ddf674Smrg
143614ddf674Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
143714ddf674Smrg    # Check for guested configure.
143814ddf674Smrg    if test -f "$ac_srcdir/configure.gnu"; then
143914ddf674Smrg      echo &&
144014ddf674Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
144114ddf674Smrg    elif test -f "$ac_srcdir/configure"; then
144214ddf674Smrg      echo &&
144314ddf674Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1444cacd992dSmrg    else
144514ddf674Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
144614ddf674Smrg    fi || ac_status=$?
144714ddf674Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1448cacd992dSmrg  done
1449cacd992dSmrgfi
1450cacd992dSmrg
145114ddf674Smrgtest -n "$ac_init_help" && exit $ac_status
1452cacd992dSmrgif $ac_init_version; then
1453cacd992dSmrg  cat <<\_ACEOF
145414ddf674Smrgxvidtune configure 1.0.2
145514ddf674Smrggenerated by GNU Autoconf 2.65
1456cacd992dSmrg
145714ddf674SmrgCopyright (C) 2009 Free Software Foundation, Inc.
1458cacd992dSmrgThis configure script is free software; the Free Software Foundation
1459cacd992dSmrggives unlimited permission to copy, distribute and modify it.
1460cacd992dSmrg_ACEOF
146114ddf674Smrg  exit
1462cacd992dSmrgfi
1463cacd992dSmrg
146414ddf674Smrg## ------------------------ ##
146514ddf674Smrg## Autoconf initialization. ##
146614ddf674Smrg## ------------------------ ##
1467cacd992dSmrg
146814ddf674Smrg# ac_fn_c_try_compile LINENO
146914ddf674Smrg# --------------------------
147014ddf674Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
147114ddf674Smrgac_fn_c_try_compile ()
1472cacd992dSmrg{
147314ddf674Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
147414ddf674Smrg  rm -f conftest.$ac_objext
147514ddf674Smrg  if { { ac_try="$ac_compile"
147614ddf674Smrgcase "(($ac_try" in
147714ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
147814ddf674Smrg  *) ac_try_echo=$ac_try;;
147914ddf674Smrgesac
148014ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
148114ddf674Smrg$as_echo "$ac_try_echo"; } >&5
148214ddf674Smrg  (eval "$ac_compile") 2>conftest.err
148314ddf674Smrg  ac_status=$?
148414ddf674Smrg  if test -s conftest.err; then
148514ddf674Smrg    grep -v '^ *+' conftest.err >conftest.er1
148614ddf674Smrg    cat conftest.er1 >&5
148714ddf674Smrg    mv -f conftest.er1 conftest.err
148814ddf674Smrg  fi
148914ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
149014ddf674Smrg  test $ac_status = 0; } && {
149114ddf674Smrg	 test -z "$ac_c_werror_flag" ||
149214ddf674Smrg	 test ! -s conftest.err
149314ddf674Smrg       } && test -s conftest.$ac_objext; then :
149414ddf674Smrg  ac_retval=0
149514ddf674Smrgelse
149614ddf674Smrg  $as_echo "$as_me: failed program was:" >&5
149714ddf674Smrgsed 's/^/| /' conftest.$ac_ext >&5
1498cacd992dSmrg
149914ddf674Smrg	ac_retval=1
150014ddf674Smrgfi
150114ddf674Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
150214ddf674Smrg  as_fn_set_status $ac_retval
1503cacd992dSmrg
150414ddf674Smrg} # ac_fn_c_try_compile
1505cacd992dSmrg
150614ddf674Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR
150714ddf674Smrg# ------------------------------------
150814ddf674Smrg# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
150914ddf674Smrgac_fn_c_check_decl ()
151014ddf674Smrg{
151114ddf674Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
151214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
151314ddf674Smrg$as_echo_n "checking whether $2 is declared... " >&6; }
151414ddf674Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
151514ddf674Smrg  $as_echo_n "(cached) " >&6
151614ddf674Smrgelse
151714ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
151814ddf674Smrg/* end confdefs.h.  */
151914ddf674Smrg$4
152014ddf674Smrgint
152114ddf674Smrgmain ()
152214ddf674Smrg{
152314ddf674Smrg#ifndef $2
152414ddf674Smrg  (void) $2;
152514ddf674Smrg#endif
1526cacd992dSmrg
152714ddf674Smrg  ;
152814ddf674Smrg  return 0;
152914ddf674Smrg}
153014ddf674Smrg_ACEOF
153114ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
153214ddf674Smrg  eval "$3=yes"
153314ddf674Smrgelse
153414ddf674Smrg  eval "$3=no"
153514ddf674Smrgfi
153614ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
153714ddf674Smrgfi
153814ddf674Smrgeval ac_res=\$$3
153914ddf674Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
154014ddf674Smrg$as_echo "$ac_res" >&6; }
154114ddf674Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1542cacd992dSmrg
154314ddf674Smrg} # ac_fn_c_check_decl
154414ddf674Smrg
154514ddf674Smrg# ac_fn_c_try_cpp LINENO
154614ddf674Smrg# ----------------------
154714ddf674Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
154814ddf674Smrgac_fn_c_try_cpp ()
154914ddf674Smrg{
155014ddf674Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
155114ddf674Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
155214ddf674Smrgcase "(($ac_try" in
155314ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
155414ddf674Smrg  *) ac_try_echo=$ac_try;;
155514ddf674Smrgesac
155614ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
155714ddf674Smrg$as_echo "$ac_try_echo"; } >&5
155814ddf674Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
155914ddf674Smrg  ac_status=$?
156014ddf674Smrg  if test -s conftest.err; then
156114ddf674Smrg    grep -v '^ *+' conftest.err >conftest.er1
156214ddf674Smrg    cat conftest.er1 >&5
156314ddf674Smrg    mv -f conftest.er1 conftest.err
156414ddf674Smrg  fi
156514ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
156614ddf674Smrg  test $ac_status = 0; } >/dev/null && {
156714ddf674Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
156814ddf674Smrg	 test ! -s conftest.err
156914ddf674Smrg       }; then :
157014ddf674Smrg  ac_retval=0
157114ddf674Smrgelse
157214ddf674Smrg  $as_echo "$as_me: failed program was:" >&5
157314ddf674Smrgsed 's/^/| /' conftest.$ac_ext >&5
157414ddf674Smrg
157514ddf674Smrg    ac_retval=1
157614ddf674Smrgfi
157714ddf674Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
157814ddf674Smrg  as_fn_set_status $ac_retval
157914ddf674Smrg
158014ddf674Smrg} # ac_fn_c_try_cpp
158114ddf674Smrg
158214ddf674Smrg# ac_fn_c_try_run LINENO
158314ddf674Smrg# ----------------------
158414ddf674Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
158514ddf674Smrg# that executables *can* be run.
158614ddf674Smrgac_fn_c_try_run ()
158714ddf674Smrg{
158814ddf674Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
158914ddf674Smrg  if { { ac_try="$ac_link"
159014ddf674Smrgcase "(($ac_try" in
159114ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
159214ddf674Smrg  *) ac_try_echo=$ac_try;;
159314ddf674Smrgesac
159414ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
159514ddf674Smrg$as_echo "$ac_try_echo"; } >&5
159614ddf674Smrg  (eval "$ac_link") 2>&5
159714ddf674Smrg  ac_status=$?
159814ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
159914ddf674Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
160014ddf674Smrg  { { case "(($ac_try" in
160114ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
160214ddf674Smrg  *) ac_try_echo=$ac_try;;
160314ddf674Smrgesac
160414ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
160514ddf674Smrg$as_echo "$ac_try_echo"; } >&5
160614ddf674Smrg  (eval "$ac_try") 2>&5
160714ddf674Smrg  ac_status=$?
160814ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
160914ddf674Smrg  test $ac_status = 0; }; }; then :
161014ddf674Smrg  ac_retval=0
161114ddf674Smrgelse
161214ddf674Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
161314ddf674Smrg       $as_echo "$as_me: failed program was:" >&5
161414ddf674Smrgsed 's/^/| /' conftest.$ac_ext >&5
161514ddf674Smrg
161614ddf674Smrg       ac_retval=$ac_status
161714ddf674Smrgfi
161814ddf674Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
161914ddf674Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
162014ddf674Smrg  as_fn_set_status $ac_retval
162114ddf674Smrg
162214ddf674Smrg} # ac_fn_c_try_run
162314ddf674Smrg
162414ddf674Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
162514ddf674Smrg# -------------------------------------------------------
162614ddf674Smrg# Tests whether HEADER exists and can be compiled using the include files in
162714ddf674Smrg# INCLUDES, setting the cache variable VAR accordingly.
162814ddf674Smrgac_fn_c_check_header_compile ()
162914ddf674Smrg{
163014ddf674Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
163114ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
163214ddf674Smrg$as_echo_n "checking for $2... " >&6; }
163314ddf674Smrgif { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
163414ddf674Smrg  $as_echo_n "(cached) " >&6
163514ddf674Smrgelse
163614ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
163714ddf674Smrg/* end confdefs.h.  */
163814ddf674Smrg$4
163914ddf674Smrg#include <$2>
164014ddf674Smrg_ACEOF
164114ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
164214ddf674Smrg  eval "$3=yes"
164314ddf674Smrgelse
164414ddf674Smrg  eval "$3=no"
164514ddf674Smrgfi
164614ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
164714ddf674Smrgfi
164814ddf674Smrgeval ac_res=\$$3
164914ddf674Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
165014ddf674Smrg$as_echo "$ac_res" >&6; }
165114ddf674Smrg  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
165214ddf674Smrg
165314ddf674Smrg} # ac_fn_c_check_header_compile
165414ddf674Smrgcat >config.log <<_ACEOF
165514ddf674SmrgThis file contains any messages produced by compilers while
165614ddf674Smrgrunning configure, to aid debugging if configure makes a mistake.
165714ddf674Smrg
165814ddf674SmrgIt was created by xvidtune $as_me 1.0.2, which was
165914ddf674Smrggenerated by GNU Autoconf 2.65.  Invocation command line was
166014ddf674Smrg
166114ddf674Smrg  $ $0 $@
166214ddf674Smrg
166314ddf674Smrg_ACEOF
166414ddf674Smrgexec 5>>config.log
166514ddf674Smrg{
166614ddf674Smrgcat <<_ASUNAME
166714ddf674Smrg## --------- ##
166814ddf674Smrg## Platform. ##
166914ddf674Smrg## --------- ##
167014ddf674Smrg
167114ddf674Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
167214ddf674Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
167314ddf674Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
167414ddf674Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
167514ddf674Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
167614ddf674Smrg
167714ddf674Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
167814ddf674Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
167914ddf674Smrg
168014ddf674Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
168114ddf674Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
168214ddf674Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
168314ddf674Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
168414ddf674Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
168514ddf674Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
168614ddf674Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
168714ddf674Smrg
168814ddf674Smrg_ASUNAME
168914ddf674Smrg
169014ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
169114ddf674Smrgfor as_dir in $PATH
1692cacd992dSmrgdo
1693cacd992dSmrg  IFS=$as_save_IFS
1694cacd992dSmrg  test -z "$as_dir" && as_dir=.
169514ddf674Smrg    $as_echo "PATH: $as_dir"
169614ddf674Smrg  done
169714ddf674SmrgIFS=$as_save_IFS
1698cacd992dSmrg
1699cacd992dSmrg} >&5
1700cacd992dSmrg
1701cacd992dSmrgcat >&5 <<_ACEOF
1702cacd992dSmrg
1703cacd992dSmrg
1704cacd992dSmrg## ----------- ##
1705cacd992dSmrg## Core tests. ##
1706cacd992dSmrg## ----------- ##
1707cacd992dSmrg
1708cacd992dSmrg_ACEOF
1709cacd992dSmrg
1710cacd992dSmrg
1711cacd992dSmrg# Keep a trace of the command line.
1712cacd992dSmrg# Strip out --no-create and --no-recursion so they do not pile up.
1713cacd992dSmrg# Strip out --silent because we don't want to record it for future runs.
1714cacd992dSmrg# Also quote any args containing shell meta-characters.
1715cacd992dSmrg# Make two passes to allow for proper duplicate-argument suppression.
1716cacd992dSmrgac_configure_args=
1717cacd992dSmrgac_configure_args0=
1718cacd992dSmrgac_configure_args1=
1719cacd992dSmrgac_must_keep_next=false
1720cacd992dSmrgfor ac_pass in 1 2
1721cacd992dSmrgdo
1722cacd992dSmrg  for ac_arg
1723cacd992dSmrg  do
1724cacd992dSmrg    case $ac_arg in
1725cacd992dSmrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1726cacd992dSmrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1727cacd992dSmrg    | -silent | --silent | --silen | --sile | --sil)
1728cacd992dSmrg      continue ;;
172914ddf674Smrg    *\'*)
173014ddf674Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731cacd992dSmrg    esac
1732cacd992dSmrg    case $ac_pass in
173314ddf674Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1734cacd992dSmrg    2)
173514ddf674Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1736cacd992dSmrg      if test $ac_must_keep_next = true; then
1737cacd992dSmrg	ac_must_keep_next=false # Got value, back to normal.
1738cacd992dSmrg      else
1739cacd992dSmrg	case $ac_arg in
1740cacd992dSmrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1741cacd992dSmrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1742cacd992dSmrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1743cacd992dSmrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1744cacd992dSmrg	    case "$ac_configure_args0 " in
1745cacd992dSmrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746cacd992dSmrg	    esac
1747cacd992dSmrg	    ;;
1748cacd992dSmrg	  -* ) ac_must_keep_next=true ;;
1749cacd992dSmrg	esac
1750cacd992dSmrg      fi
175114ddf674Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1752cacd992dSmrg      ;;
1753cacd992dSmrg    esac
1754cacd992dSmrg  done
1755cacd992dSmrgdone
175614ddf674Smrg{ ac_configure_args0=; unset ac_configure_args0;}
175714ddf674Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1758cacd992dSmrg
1759cacd992dSmrg# When interrupted or exit'd, cleanup temporary files, and complete
1760cacd992dSmrg# config.log.  We remove comments because anyway the quotes in there
1761cacd992dSmrg# would cause problems or look ugly.
176214ddf674Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
176314ddf674Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1764cacd992dSmrgtrap 'exit_status=$?
1765cacd992dSmrg  # Save into config.log some information that might help in debugging.
1766cacd992dSmrg  {
1767cacd992dSmrg    echo
1768cacd992dSmrg
1769cacd992dSmrg    cat <<\_ASBOX
1770cacd992dSmrg## ---------------- ##
1771cacd992dSmrg## Cache variables. ##
1772cacd992dSmrg## ---------------- ##
1773cacd992dSmrg_ASBOX
1774cacd992dSmrg    echo
1775cacd992dSmrg    # The following way of writing the cache mishandles newlines in values,
177614ddf674Smrg(
177714ddf674Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
177814ddf674Smrg    eval ac_val=\$$ac_var
177914ddf674Smrg    case $ac_val in #(
178014ddf674Smrg    *${as_nl}*)
178114ddf674Smrg      case $ac_var in #(
178214ddf674Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
178314ddf674Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
178414ddf674Smrg      esac
178514ddf674Smrg      case $ac_var in #(
178614ddf674Smrg      _ | IFS | as_nl) ;; #(
178714ddf674Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
178814ddf674Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
178914ddf674Smrg      esac ;;
179014ddf674Smrg    esac
179114ddf674Smrg  done
1792cacd992dSmrg  (set) 2>&1 |
179314ddf674Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
179414ddf674Smrg    *${as_nl}ac_space=\ *)
1795cacd992dSmrg      sed -n \
179614ddf674Smrg	"s/'\''/'\''\\\\'\'''\''/g;
179714ddf674Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
179814ddf674Smrg      ;; #(
1799cacd992dSmrg    *)
180014ddf674Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1801cacd992dSmrg      ;;
180214ddf674Smrg    esac |
180314ddf674Smrg    sort
180414ddf674Smrg)
1805cacd992dSmrg    echo
1806cacd992dSmrg
1807cacd992dSmrg    cat <<\_ASBOX
1808cacd992dSmrg## ----------------- ##
1809cacd992dSmrg## Output variables. ##
1810cacd992dSmrg## ----------------- ##
1811cacd992dSmrg_ASBOX
1812cacd992dSmrg    echo
1813cacd992dSmrg    for ac_var in $ac_subst_vars
1814cacd992dSmrg    do
181514ddf674Smrg      eval ac_val=\$$ac_var
181614ddf674Smrg      case $ac_val in
181714ddf674Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
181814ddf674Smrg      esac
181914ddf674Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1820cacd992dSmrg    done | sort
1821cacd992dSmrg    echo
1822cacd992dSmrg
1823cacd992dSmrg    if test -n "$ac_subst_files"; then
1824cacd992dSmrg      cat <<\_ASBOX
182514ddf674Smrg## ------------------- ##
182614ddf674Smrg## File substitutions. ##
182714ddf674Smrg## ------------------- ##
1828cacd992dSmrg_ASBOX
1829cacd992dSmrg      echo
1830cacd992dSmrg      for ac_var in $ac_subst_files
1831cacd992dSmrg      do
183214ddf674Smrg	eval ac_val=\$$ac_var
183314ddf674Smrg	case $ac_val in
183414ddf674Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
183514ddf674Smrg	esac
183614ddf674Smrg	$as_echo "$ac_var='\''$ac_val'\''"
1837cacd992dSmrg      done | sort
1838cacd992dSmrg      echo
1839cacd992dSmrg    fi
1840cacd992dSmrg
1841cacd992dSmrg    if test -s confdefs.h; then
1842cacd992dSmrg      cat <<\_ASBOX
1843cacd992dSmrg## ----------- ##
1844cacd992dSmrg## confdefs.h. ##
1845cacd992dSmrg## ----------- ##
1846cacd992dSmrg_ASBOX
1847cacd992dSmrg      echo
184814ddf674Smrg      cat confdefs.h
1849cacd992dSmrg      echo
1850cacd992dSmrg    fi
1851cacd992dSmrg    test "$ac_signal" != 0 &&
185214ddf674Smrg      $as_echo "$as_me: caught signal $ac_signal"
185314ddf674Smrg    $as_echo "$as_me: exit $exit_status"
1854cacd992dSmrg  } >&5
185514ddf674Smrg  rm -f core *.core core.conftest.* &&
185614ddf674Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857cacd992dSmrg    exit $exit_status
185814ddf674Smrg' 0
1859cacd992dSmrgfor ac_signal in 1 2 13 15; do
186014ddf674Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1861cacd992dSmrgdone
1862cacd992dSmrgac_signal=0
1863cacd992dSmrg
1864cacd992dSmrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
186514ddf674Smrgrm -f -r conftest* confdefs.h
186614ddf674Smrg
186714ddf674Smrg$as_echo "/* confdefs.h */" > confdefs.h
1868cacd992dSmrg
1869cacd992dSmrg# Predefined preprocessor variables.
1870cacd992dSmrg
1871cacd992dSmrgcat >>confdefs.h <<_ACEOF
1872cacd992dSmrg#define PACKAGE_NAME "$PACKAGE_NAME"
1873cacd992dSmrg_ACEOF
1874cacd992dSmrg
1875cacd992dSmrgcat >>confdefs.h <<_ACEOF
1876cacd992dSmrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877cacd992dSmrg_ACEOF
1878cacd992dSmrg
1879cacd992dSmrgcat >>confdefs.h <<_ACEOF
1880cacd992dSmrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
1881cacd992dSmrg_ACEOF
1882cacd992dSmrg
1883cacd992dSmrgcat >>confdefs.h <<_ACEOF
1884cacd992dSmrg#define PACKAGE_STRING "$PACKAGE_STRING"
1885cacd992dSmrg_ACEOF
1886cacd992dSmrg
1887cacd992dSmrgcat >>confdefs.h <<_ACEOF
1888cacd992dSmrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889cacd992dSmrg_ACEOF
1890cacd992dSmrg
189114ddf674Smrgcat >>confdefs.h <<_ACEOF
189214ddf674Smrg#define PACKAGE_URL "$PACKAGE_URL"
189314ddf674Smrg_ACEOF
189414ddf674Smrg
1895cacd992dSmrg
1896cacd992dSmrg# Let the site file select an alternate cache file if it wants to.
189714ddf674Smrg# Prefer an explicitly selected file to automatically selected ones.
189814ddf674Smrgac_site_file1=NONE
189914ddf674Smrgac_site_file2=NONE
190014ddf674Smrgif test -n "$CONFIG_SITE"; then
190114ddf674Smrg  ac_site_file1=$CONFIG_SITE
190214ddf674Smrgelif test "x$prefix" != xNONE; then
190314ddf674Smrg  ac_site_file1=$prefix/share/config.site
190414ddf674Smrg  ac_site_file2=$prefix/etc/config.site
190514ddf674Smrgelse
190614ddf674Smrg  ac_site_file1=$ac_default_prefix/share/config.site
190714ddf674Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
1908cacd992dSmrgfi
190914ddf674Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
191014ddf674Smrgdo
191114ddf674Smrg  test "x$ac_site_file" = xNONE && continue
191214ddf674Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
191314ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
191414ddf674Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1915cacd992dSmrg    sed 's/^/| /' "$ac_site_file" >&5
1916cacd992dSmrg    . "$ac_site_file"
1917cacd992dSmrg  fi
1918cacd992dSmrgdone
1919cacd992dSmrg
1920cacd992dSmrgif test -r "$cache_file"; then
192114ddf674Smrg  # Some versions of bash will fail to source /dev/null (special files
192214ddf674Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
192314ddf674Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
192414ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
192514ddf674Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
1926cacd992dSmrg    case $cache_file in
192714ddf674Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
192814ddf674Smrg      *)                      . "./$cache_file";;
1929cacd992dSmrg    esac
1930cacd992dSmrg  fi
1931cacd992dSmrgelse
193214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
193314ddf674Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
1934cacd992dSmrg  >$cache_file
1935cacd992dSmrgfi
1936cacd992dSmrg
1937cacd992dSmrg# Check that the precious variables saved in the cache have kept the same
1938cacd992dSmrg# value.
1939cacd992dSmrgac_cache_corrupted=false
194014ddf674Smrgfor ac_var in $ac_precious_vars; do
1941cacd992dSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1942cacd992dSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
194314ddf674Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
194414ddf674Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
1945cacd992dSmrg  case $ac_old_set,$ac_new_set in
1946cacd992dSmrg    set,)
194714ddf674Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
194814ddf674Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1949cacd992dSmrg      ac_cache_corrupted=: ;;
1950cacd992dSmrg    ,set)
195114ddf674Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
195214ddf674Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1953cacd992dSmrg      ac_cache_corrupted=: ;;
1954cacd992dSmrg    ,);;
1955cacd992dSmrg    *)
1956cacd992dSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
195714ddf674Smrg	# differences in whitespace do not lead to failure.
195814ddf674Smrg	ac_old_val_w=`echo x $ac_old_val`
195914ddf674Smrg	ac_new_val_w=`echo x $ac_new_val`
196014ddf674Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
196114ddf674Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
196214ddf674Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
196314ddf674Smrg	  ac_cache_corrupted=:
196414ddf674Smrg	else
196514ddf674Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
196614ddf674Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
196714ddf674Smrg	  eval $ac_var=\$ac_old_val
196814ddf674Smrg	fi
196914ddf674Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
197014ddf674Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
197114ddf674Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
197214ddf674Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1973cacd992dSmrg      fi;;
1974cacd992dSmrg  esac
1975cacd992dSmrg  # Pass precious variables to config.status.
1976cacd992dSmrg  if test "$ac_new_set" = set; then
1977cacd992dSmrg    case $ac_new_val in
197814ddf674Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1979cacd992dSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
1980cacd992dSmrg    esac
1981cacd992dSmrg    case " $ac_configure_args " in
1982cacd992dSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
198314ddf674Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1984cacd992dSmrg    esac
1985cacd992dSmrg  fi
1986cacd992dSmrgdone
1987cacd992dSmrgif $ac_cache_corrupted; then
198814ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
198914ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
199014ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
199114ddf674Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
199214ddf674Smrg  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1993cacd992dSmrgfi
199414ddf674Smrg## -------------------- ##
199514ddf674Smrg## Main body of script. ##
199614ddf674Smrg## -------------------- ##
1997cacd992dSmrg
1998cacd992dSmrgac_ext=c
1999cacd992dSmrgac_cpp='$CPP $CPPFLAGS'
2000cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2003cacd992dSmrg
2004cacd992dSmrg
200514ddf674Smrgam__api_version='1.11'
2006cacd992dSmrg
2007cacd992dSmrgac_aux_dir=
200814ddf674Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
200914ddf674Smrg  for ac_t in install-sh install.sh shtool; do
201014ddf674Smrg    if test -f "$ac_dir/$ac_t"; then
201114ddf674Smrg      ac_aux_dir=$ac_dir
201214ddf674Smrg      ac_install_sh="$ac_aux_dir/$ac_t -c"
201314ddf674Smrg      break 2
201414ddf674Smrg    fi
201514ddf674Smrg  done
2016cacd992dSmrgdone
2017cacd992dSmrgif test -z "$ac_aux_dir"; then
201814ddf674Smrg  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2019cacd992dSmrgfi
202014ddf674Smrg
202114ddf674Smrg# These three variables are undocumented and unsupported,
202214ddf674Smrg# and are intended to be withdrawn in a future Autoconf release.
202314ddf674Smrg# They can cause serious problems if a builder's source tree is in a directory
202414ddf674Smrg# whose full name contains unusual characters.
202514ddf674Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
202614ddf674Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
202714ddf674Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
202814ddf674Smrg
2029cacd992dSmrg
2030cacd992dSmrg# Find a good install program.  We prefer a C program (faster),
2031cacd992dSmrg# so one script is as good as another.  But avoid the broken or
2032cacd992dSmrg# incompatible versions:
2033cacd992dSmrg# SysV /etc/install, /usr/sbin/install
2034cacd992dSmrg# SunOS /usr/etc/install
2035cacd992dSmrg# IRIX /sbin/install
2036cacd992dSmrg# AIX /bin/install
2037cacd992dSmrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2038cacd992dSmrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2039cacd992dSmrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2040cacd992dSmrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2041cacd992dSmrg# OS/2's system install, which has a completely different semantic
2042cacd992dSmrg# ./install, which can be erroneously created by make from ./install.sh.
204314ddf674Smrg# Reject install programs that cannot install multiple files.
204414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
204514ddf674Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2046cacd992dSmrgif test -z "$INSTALL"; then
204714ddf674Smrgif test "${ac_cv_path_install+set}" = set; then :
204814ddf674Smrg  $as_echo_n "(cached) " >&6
2049cacd992dSmrgelse
2050cacd992dSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051cacd992dSmrgfor as_dir in $PATH
2052cacd992dSmrgdo
2053cacd992dSmrg  IFS=$as_save_IFS
2054cacd992dSmrg  test -z "$as_dir" && as_dir=.
205514ddf674Smrg    # Account for people who put trailing slashes in PATH elements.
205614ddf674Smrgcase $as_dir/ in #((
205714ddf674Smrg  ./ | .// | /[cC]/* | \
2058cacd992dSmrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
205914ddf674Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2060cacd992dSmrg  /usr/ucb/* ) ;;
2061cacd992dSmrg  *)
2062cacd992dSmrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2063cacd992dSmrg    # Don't use installbsd from OSF since it installs stuff as root
2064cacd992dSmrg    # by default.
2065cacd992dSmrg    for ac_prog in ginstall scoinst install; do
2066cacd992dSmrg      for ac_exec_ext in '' $ac_executable_extensions; do
206714ddf674Smrg	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2068cacd992dSmrg	  if test $ac_prog = install &&
2069cacd992dSmrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070cacd992dSmrg	    # AIX install.  It has an incompatible calling convention.
2071cacd992dSmrg	    :
2072cacd992dSmrg	  elif test $ac_prog = install &&
2073cacd992dSmrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2074cacd992dSmrg	    # program-specific install script used by HP pwplus--don't use.
2075cacd992dSmrg	    :
2076cacd992dSmrg	  else
207714ddf674Smrg	    rm -rf conftest.one conftest.two conftest.dir
207814ddf674Smrg	    echo one > conftest.one
207914ddf674Smrg	    echo two > conftest.two
208014ddf674Smrg	    mkdir conftest.dir
208114ddf674Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
208214ddf674Smrg	      test -s conftest.one && test -s conftest.two &&
208314ddf674Smrg	      test -s conftest.dir/conftest.one &&
208414ddf674Smrg	      test -s conftest.dir/conftest.two
208514ddf674Smrg	    then
208614ddf674Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
208714ddf674Smrg	      break 3
208814ddf674Smrg	    fi
2089cacd992dSmrg	  fi
2090cacd992dSmrg	fi
2091cacd992dSmrg      done
2092cacd992dSmrg    done
2093cacd992dSmrg    ;;
2094cacd992dSmrgesac
2095cacd992dSmrg
209614ddf674Smrg  done
209714ddf674SmrgIFS=$as_save_IFS
209814ddf674Smrg
209914ddf674Smrgrm -rf conftest.one conftest.two conftest.dir
2100cacd992dSmrg
2101cacd992dSmrgfi
2102cacd992dSmrg  if test "${ac_cv_path_install+set}" = set; then
2103cacd992dSmrg    INSTALL=$ac_cv_path_install
2104cacd992dSmrg  else
210514ddf674Smrg    # As a last resort, use the slow shell script.  Don't cache a
210614ddf674Smrg    # value for INSTALL within a source directory, because that will
2107cacd992dSmrg    # break other packages using the cache if that directory is
210814ddf674Smrg    # removed, or if the value is a relative name.
2109cacd992dSmrg    INSTALL=$ac_install_sh
2110cacd992dSmrg  fi
2111cacd992dSmrgfi
211214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
211314ddf674Smrg$as_echo "$INSTALL" >&6; }
2114cacd992dSmrg
2115cacd992dSmrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2116cacd992dSmrg# It thinks the first close brace ends the variable substitution.
2117cacd992dSmrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2118cacd992dSmrg
2119cacd992dSmrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2120cacd992dSmrg
2121cacd992dSmrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2122cacd992dSmrg
212314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
212414ddf674Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
2125cacd992dSmrg# Just in case
2126cacd992dSmrgsleep 1
2127cacd992dSmrgecho timestamp > conftest.file
212814ddf674Smrg# Reject unsafe characters in $srcdir or the absolute working directory
212914ddf674Smrg# name.  Accept space and tab only in the latter.
213014ddf674Smrgam_lf='
213114ddf674Smrg'
213214ddf674Smrgcase `pwd` in
213314ddf674Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
213414ddf674Smrg    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
213514ddf674Smrgesac
213614ddf674Smrgcase $srcdir in
213714ddf674Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
213814ddf674Smrg    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
213914ddf674Smrgesac
214014ddf674Smrg
2141cacd992dSmrg# Do `set' in a subshell so we don't clobber the current shell's
2142cacd992dSmrg# arguments.  Must try -L first in case configure is actually a
2143cacd992dSmrg# symlink; some systems play weird games with the mod time of symlinks
2144cacd992dSmrg# (eg FreeBSD returns the mod time of the symlink's containing
2145cacd992dSmrg# directory).
2146cacd992dSmrgif (
214714ddf674Smrg   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2148cacd992dSmrg   if test "$*" = "X"; then
2149cacd992dSmrg      # -L didn't work.
215014ddf674Smrg      set X `ls -t "$srcdir/configure" conftest.file`
2151cacd992dSmrg   fi
2152cacd992dSmrg   rm -f conftest.file
2153cacd992dSmrg   if test "$*" != "X $srcdir/configure conftest.file" \
2154cacd992dSmrg      && test "$*" != "X conftest.file $srcdir/configure"; then
2155cacd992dSmrg
2156cacd992dSmrg      # If neither matched, then we have a broken ls.  This can happen
2157cacd992dSmrg      # if, for instance, CONFIG_SHELL is bash and it inherits a
2158cacd992dSmrg      # broken ls alias from the environment.  This has actually
2159cacd992dSmrg      # happened.  Such a system could not be considered "sane".
216014ddf674Smrg      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
216114ddf674Smrgalias in your environment" "$LINENO" 5
2162cacd992dSmrg   fi
2163cacd992dSmrg
2164cacd992dSmrg   test "$2" = conftest.file
2165cacd992dSmrg   )
2166cacd992dSmrgthen
2167cacd992dSmrg   # Ok.
2168cacd992dSmrg   :
2169cacd992dSmrgelse
217014ddf674Smrg   as_fn_error "newly created file is older than distributed files!
217114ddf674SmrgCheck your system clock" "$LINENO" 5
2172cacd992dSmrgfi
217314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
217414ddf674Smrg$as_echo "yes" >&6; }
2175cacd992dSmrgtest "$program_prefix" != NONE &&
217614ddf674Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2177cacd992dSmrg# Use a double $ so make ignores it.
2178cacd992dSmrgtest "$program_suffix" != NONE &&
217914ddf674Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
218014ddf674Smrg# Double any \ or $.
2181cacd992dSmrg# By default was `s,x,x', remove it if useless.
218214ddf674Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
218314ddf674Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2184cacd992dSmrg
2185cacd992dSmrg# expand $ac_aux_dir to an absolute path
2186cacd992dSmrgam_aux_dir=`cd $ac_aux_dir && pwd`
2187cacd992dSmrg
218814ddf674Smrgif test x"${MISSING+set}" != xset; then
218914ddf674Smrg  case $am_aux_dir in
219014ddf674Smrg  *\ * | *\	*)
219114ddf674Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
219214ddf674Smrg  *)
219314ddf674Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
219414ddf674Smrg  esac
219514ddf674Smrgfi
2196cacd992dSmrg# Use eval to expand $SHELL
2197cacd992dSmrgif eval "$MISSING --run true"; then
2198cacd992dSmrg  am_missing_run="$MISSING --run "
2199cacd992dSmrgelse
2200cacd992dSmrg  am_missing_run=
220114ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
220214ddf674Smrg$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
220314ddf674Smrgfi
220414ddf674Smrg
220514ddf674Smrgif test x"${install_sh}" != xset; then
220614ddf674Smrg  case $am_aux_dir in
220714ddf674Smrg  *\ * | *\	*)
220814ddf674Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
220914ddf674Smrg  *)
221014ddf674Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
221114ddf674Smrg  esac
221214ddf674Smrgfi
221314ddf674Smrg
221414ddf674Smrg# Installed binaries are usually stripped using `strip' when the user
221514ddf674Smrg# run `make install-strip'.  However `strip' might not be the right
221614ddf674Smrg# tool to use in cross-compilation environments, therefore Automake
221714ddf674Smrg# will honor the `STRIP' environment variable to overrule this program.
221814ddf674Smrgif test "$cross_compiling" != no; then
221914ddf674Smrg  if test -n "$ac_tool_prefix"; then
222014ddf674Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
222114ddf674Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
222214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
222314ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
222414ddf674Smrgif test "${ac_cv_prog_STRIP+set}" = set; then :
222514ddf674Smrg  $as_echo_n "(cached) " >&6
222614ddf674Smrgelse
222714ddf674Smrg  if test -n "$STRIP"; then
222814ddf674Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
222914ddf674Smrgelse
223014ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223114ddf674Smrgfor as_dir in $PATH
223214ddf674Smrgdo
223314ddf674Smrg  IFS=$as_save_IFS
223414ddf674Smrg  test -z "$as_dir" && as_dir=.
223514ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
223614ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
223714ddf674Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
223814ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
223914ddf674Smrg    break 2
224014ddf674Smrg  fi
224114ddf674Smrgdone
224214ddf674Smrg  done
224314ddf674SmrgIFS=$as_save_IFS
224414ddf674Smrg
224514ddf674Smrgfi
224614ddf674Smrgfi
224714ddf674SmrgSTRIP=$ac_cv_prog_STRIP
224814ddf674Smrgif test -n "$STRIP"; then
224914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
225014ddf674Smrg$as_echo "$STRIP" >&6; }
225114ddf674Smrgelse
225214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
225314ddf674Smrg$as_echo "no" >&6; }
225414ddf674Smrgfi
225514ddf674Smrg
225614ddf674Smrg
225714ddf674Smrgfi
225814ddf674Smrgif test -z "$ac_cv_prog_STRIP"; then
225914ddf674Smrg  ac_ct_STRIP=$STRIP
226014ddf674Smrg  # Extract the first word of "strip", so it can be a program name with args.
226114ddf674Smrgset dummy strip; ac_word=$2
226214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
226314ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
226414ddf674Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
226514ddf674Smrg  $as_echo_n "(cached) " >&6
226614ddf674Smrgelse
226714ddf674Smrg  if test -n "$ac_ct_STRIP"; then
226814ddf674Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
226914ddf674Smrgelse
227014ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227114ddf674Smrgfor as_dir in $PATH
227214ddf674Smrgdo
227314ddf674Smrg  IFS=$as_save_IFS
227414ddf674Smrg  test -z "$as_dir" && as_dir=.
227514ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
227614ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
227714ddf674Smrg    ac_cv_prog_ac_ct_STRIP="strip"
227814ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
227914ddf674Smrg    break 2
228014ddf674Smrg  fi
228114ddf674Smrgdone
228214ddf674Smrg  done
228314ddf674SmrgIFS=$as_save_IFS
228414ddf674Smrg
228514ddf674Smrgfi
228614ddf674Smrgfi
228714ddf674Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
228814ddf674Smrgif test -n "$ac_ct_STRIP"; then
228914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
229014ddf674Smrg$as_echo "$ac_ct_STRIP" >&6; }
229114ddf674Smrgelse
229214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
229314ddf674Smrg$as_echo "no" >&6; }
229414ddf674Smrgfi
229514ddf674Smrg
229614ddf674Smrg  if test "x$ac_ct_STRIP" = x; then
229714ddf674Smrg    STRIP=":"
229814ddf674Smrg  else
229914ddf674Smrg    case $cross_compiling:$ac_tool_warned in
230014ddf674Smrgyes:)
230114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
230214ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
230314ddf674Smrgac_tool_warned=yes ;;
230414ddf674Smrgesac
230514ddf674Smrg    STRIP=$ac_ct_STRIP
230614ddf674Smrg  fi
230714ddf674Smrgelse
230814ddf674Smrg  STRIP="$ac_cv_prog_STRIP"
230914ddf674Smrgfi
231014ddf674Smrg
231114ddf674Smrgfi
231214ddf674SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
231314ddf674Smrg
231414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
231514ddf674Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
231614ddf674Smrgif test -z "$MKDIR_P"; then
231714ddf674Smrg  if test "${ac_cv_path_mkdir+set}" = set; then :
231814ddf674Smrg  $as_echo_n "(cached) " >&6
231914ddf674Smrgelse
232014ddf674Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
232114ddf674Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
232214ddf674Smrgdo
232314ddf674Smrg  IFS=$as_save_IFS
232414ddf674Smrg  test -z "$as_dir" && as_dir=.
232514ddf674Smrg    for ac_prog in mkdir gmkdir; do
232614ddf674Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
232714ddf674Smrg	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
232814ddf674Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
232914ddf674Smrg	     'mkdir (GNU coreutils) '* | \
233014ddf674Smrg	     'mkdir (coreutils) '* | \
233114ddf674Smrg	     'mkdir (fileutils) '4.1*)
233214ddf674Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
233314ddf674Smrg	       break 3;;
233414ddf674Smrg	   esac
233514ddf674Smrg	 done
233614ddf674Smrg       done
233714ddf674Smrg  done
233814ddf674SmrgIFS=$as_save_IFS
233914ddf674Smrg
234014ddf674Smrgfi
234114ddf674Smrg
234214ddf674Smrg  test -d ./--version && rmdir ./--version
234314ddf674Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
234414ddf674Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
234514ddf674Smrg  else
234614ddf674Smrg    # As a last resort, use the slow shell script.  Don't cache a
234714ddf674Smrg    # value for MKDIR_P within a source directory, because that will
234814ddf674Smrg    # break other packages using the cache if that directory is
234914ddf674Smrg    # removed, or if the value is a relative name.
235014ddf674Smrg    MKDIR_P="$ac_install_sh -d"
235114ddf674Smrg  fi
2352cacd992dSmrgfi
235314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
235414ddf674Smrg$as_echo "$MKDIR_P" >&6; }
235514ddf674Smrg
235614ddf674Smrgmkdir_p="$MKDIR_P"
235714ddf674Smrgcase $mkdir_p in
235814ddf674Smrg  [\\/$]* | ?:[\\/]*) ;;
235914ddf674Smrg  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
236014ddf674Smrgesac
2361cacd992dSmrg
2362cacd992dSmrgfor ac_prog in gawk mawk nawk awk
2363cacd992dSmrgdo
2364cacd992dSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2365cacd992dSmrgset dummy $ac_prog; ac_word=$2
236614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
236714ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
236814ddf674Smrgif test "${ac_cv_prog_AWK+set}" = set; then :
236914ddf674Smrg  $as_echo_n "(cached) " >&6
2370cacd992dSmrgelse
2371cacd992dSmrg  if test -n "$AWK"; then
2372cacd992dSmrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2373cacd992dSmrgelse
2374cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375cacd992dSmrgfor as_dir in $PATH
2376cacd992dSmrgdo
2377cacd992dSmrg  IFS=$as_save_IFS
2378cacd992dSmrg  test -z "$as_dir" && as_dir=.
237914ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
238014ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381cacd992dSmrg    ac_cv_prog_AWK="$ac_prog"
238214ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2383cacd992dSmrg    break 2
2384cacd992dSmrg  fi
2385cacd992dSmrgdone
238614ddf674Smrg  done
238714ddf674SmrgIFS=$as_save_IFS
2388cacd992dSmrg
2389cacd992dSmrgfi
2390cacd992dSmrgfi
2391cacd992dSmrgAWK=$ac_cv_prog_AWK
2392cacd992dSmrgif test -n "$AWK"; then
239314ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
239414ddf674Smrg$as_echo "$AWK" >&6; }
2395cacd992dSmrgelse
239614ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
239714ddf674Smrg$as_echo "no" >&6; }
2398cacd992dSmrgfi
2399cacd992dSmrg
240014ddf674Smrg
2401cacd992dSmrg  test -n "$AWK" && break
2402cacd992dSmrgdone
2403cacd992dSmrg
240414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
240514ddf674Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
240614ddf674Smrgset x ${MAKE-make}
240714ddf674Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
240814ddf674Smrgif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
240914ddf674Smrg  $as_echo_n "(cached) " >&6
2410cacd992dSmrgelse
2411cacd992dSmrg  cat >conftest.make <<\_ACEOF
241214ddf674SmrgSHELL = /bin/sh
2413cacd992dSmrgall:
241414ddf674Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2415cacd992dSmrg_ACEOF
2416cacd992dSmrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
241714ddf674Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
241814ddf674Smrg  *@@@%%%=?*=@@@%%%*)
241914ddf674Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
242014ddf674Smrg  *)
242114ddf674Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
242214ddf674Smrgesac
2423cacd992dSmrgrm -f conftest.make
2424cacd992dSmrgfi
242514ddf674Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
242614ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
242714ddf674Smrg$as_echo "yes" >&6; }
2428cacd992dSmrg  SET_MAKE=
2429cacd992dSmrgelse
243014ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
243114ddf674Smrg$as_echo "no" >&6; }
2432cacd992dSmrg  SET_MAKE="MAKE=${MAKE-make}"
2433cacd992dSmrgfi
2434cacd992dSmrg
2435cacd992dSmrgrm -rf .tst 2>/dev/null
2436cacd992dSmrgmkdir .tst 2>/dev/null
2437cacd992dSmrgif test -d .tst; then
2438cacd992dSmrg  am__leading_dot=.
2439cacd992dSmrgelse
2440cacd992dSmrg  am__leading_dot=_
2441cacd992dSmrgfi
2442cacd992dSmrgrmdir .tst 2>/dev/null
2443cacd992dSmrg
244414ddf674Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
244514ddf674Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
244614ddf674Smrg  # is not polluted with repeated "-I."
244714ddf674Smrg  am__isrc=' -I$(srcdir)'
244814ddf674Smrg  # test to see if srcdir already configured
244914ddf674Smrg  if test -f $srcdir/config.status; then
245014ddf674Smrg    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
245114ddf674Smrg  fi
2452cacd992dSmrgfi
2453cacd992dSmrg
2454cacd992dSmrg# test whether we have cygpath
2455cacd992dSmrgif test -z "$CYGPATH_W"; then
2456cacd992dSmrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2457cacd992dSmrg    CYGPATH_W='cygpath -w'
2458cacd992dSmrg  else
2459cacd992dSmrg    CYGPATH_W=echo
2460cacd992dSmrg  fi
2461cacd992dSmrgfi
2462cacd992dSmrg
2463cacd992dSmrg
2464cacd992dSmrg# Define the identity of the package.
2465cacd992dSmrg PACKAGE='xvidtune'
246614ddf674Smrg VERSION='1.0.2'
2467cacd992dSmrg
2468cacd992dSmrg
2469cacd992dSmrgcat >>confdefs.h <<_ACEOF
2470cacd992dSmrg#define PACKAGE "$PACKAGE"
2471cacd992dSmrg_ACEOF
2472cacd992dSmrg
2473cacd992dSmrg
2474cacd992dSmrgcat >>confdefs.h <<_ACEOF
2475cacd992dSmrg#define VERSION "$VERSION"
2476cacd992dSmrg_ACEOF
2477cacd992dSmrg
2478cacd992dSmrg# Some tools Automake needs.
2479cacd992dSmrg
2480cacd992dSmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2481cacd992dSmrg
2482cacd992dSmrg
2483cacd992dSmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2484cacd992dSmrg
2485cacd992dSmrg
2486cacd992dSmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2487cacd992dSmrg
2488cacd992dSmrg
2489cacd992dSmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2490cacd992dSmrg
2491cacd992dSmrg
2492cacd992dSmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2493cacd992dSmrg
249414ddf674Smrg# We need awk for the "check" target.  The system "awk" is bad on
249514ddf674Smrg# some platforms.
249614ddf674Smrg# Always define AMTAR for backward compatibility.
2497cacd992dSmrg
2498cacd992dSmrgAMTAR=${AMTAR-"${am_missing_run}tar"}
2499cacd992dSmrg
250014ddf674Smrgam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2501cacd992dSmrg
250214ddf674Smrg
250314ddf674Smrg
250414ddf674Smrg
250514ddf674Smrg
250614ddf674Smrg
250714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
250814ddf674Smrg$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
250914ddf674Smrg    # Check whether --enable-maintainer-mode was given.
251014ddf674Smrgif test "${enable_maintainer_mode+set}" = set; then :
251114ddf674Smrg  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2512cacd992dSmrgelse
251314ddf674Smrg  USE_MAINTAINER_MODE=no
251414ddf674Smrgfi
251514ddf674Smrg
251614ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
251714ddf674Smrg$as_echo "$USE_MAINTAINER_MODE" >&6; }
251814ddf674Smrg   if test $USE_MAINTAINER_MODE = yes; then
251914ddf674Smrg  MAINTAINER_MODE_TRUE=
252014ddf674Smrg  MAINTAINER_MODE_FALSE='#'
2521cacd992dSmrgelse
252214ddf674Smrg  MAINTAINER_MODE_TRUE='#'
252314ddf674Smrg  MAINTAINER_MODE_FALSE=
2524cacd992dSmrgfi
2525cacd992dSmrg
252614ddf674Smrg  MAINT=$MAINTAINER_MODE_TRUE
2527cacd992dSmrg
2528cacd992dSmrg
2529cacd992dSmrg
253014ddf674Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
2531cacd992dSmrg
2532cacd992dSmrg
2533cacd992dSmrg
2534cacd992dSmrg
2535cacd992dSmrg
2536cacd992dSmrg
253714ddf674Smrg
253814ddf674Smrg
253914ddf674Smrg
254014ddf674Smrg
254114ddf674Smrg
254214ddf674SmrgDEPDIR="${am__leading_dot}deps"
254314ddf674Smrg
254414ddf674Smrgac_config_commands="$ac_config_commands depfiles"
254514ddf674Smrg
254614ddf674Smrg
254714ddf674Smrgam_make=${MAKE-make}
254814ddf674Smrgcat > confinc << 'END'
254914ddf674Smrgam__doit:
255014ddf674Smrg	@echo this is the am__doit target
255114ddf674Smrg.PHONY: am__doit
255214ddf674SmrgEND
255314ddf674Smrg# If we don't find an include directive, just comment out the code.
255414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
255514ddf674Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
255614ddf674Smrgam__include="#"
255714ddf674Smrgam__quote=
255814ddf674Smrg_am_result=none
255914ddf674Smrg# First try GNU make style include.
256014ddf674Smrgecho "include confinc" > confmf
256114ddf674Smrg# Ignore all kinds of additional output from `make'.
256214ddf674Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
256314ddf674Smrg*the\ am__doit\ target*)
256414ddf674Smrg  am__include=include
256514ddf674Smrg  am__quote=
256614ddf674Smrg  _am_result=GNU
256714ddf674Smrg  ;;
256814ddf674Smrgesac
256914ddf674Smrg# Now try BSD make style include.
257014ddf674Smrgif test "$am__include" = "#"; then
257114ddf674Smrg   echo '.include "confinc"' > confmf
257214ddf674Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
257314ddf674Smrg   *the\ am__doit\ target*)
257414ddf674Smrg     am__include=.include
257514ddf674Smrg     am__quote="\""
257614ddf674Smrg     _am_result=BSD
257714ddf674Smrg     ;;
257814ddf674Smrg   esac
2579cacd992dSmrgfi
2580cacd992dSmrg
2581cacd992dSmrg
258214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
258314ddf674Smrg$as_echo "$_am_result" >&6; }
258414ddf674Smrgrm -f confinc confmf
2585cacd992dSmrg
258614ddf674Smrg# Check whether --enable-dependency-tracking was given.
258714ddf674Smrgif test "${enable_dependency_tracking+set}" = set; then :
258814ddf674Smrg  enableval=$enable_dependency_tracking;
258914ddf674Smrgfi
2590cacd992dSmrg
259114ddf674Smrgif test "x$enable_dependency_tracking" != xno; then
259214ddf674Smrg  am_depcomp="$ac_aux_dir/depcomp"
259314ddf674Smrg  AMDEPBACKSLASH='\'
259414ddf674Smrgfi
259514ddf674Smrg if test "x$enable_dependency_tracking" != xno; then
259614ddf674Smrg  AMDEP_TRUE=
259714ddf674Smrg  AMDEP_FALSE='#'
259814ddf674Smrgelse
259914ddf674Smrg  AMDEP_TRUE='#'
260014ddf674Smrg  AMDEP_FALSE=
260114ddf674Smrgfi
2602cacd992dSmrg
2603cacd992dSmrg
2604cacd992dSmrgac_ext=c
2605cacd992dSmrgac_cpp='$CPP $CPPFLAGS'
2606cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2609cacd992dSmrgif test -n "$ac_tool_prefix"; then
2610cacd992dSmrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2611cacd992dSmrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
261214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
261314ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
261414ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
261514ddf674Smrg  $as_echo_n "(cached) " >&6
2616cacd992dSmrgelse
2617cacd992dSmrg  if test -n "$CC"; then
2618cacd992dSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2619cacd992dSmrgelse
2620cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621cacd992dSmrgfor as_dir in $PATH
2622cacd992dSmrgdo
2623cacd992dSmrg  IFS=$as_save_IFS
2624cacd992dSmrg  test -z "$as_dir" && as_dir=.
262514ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
262614ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627cacd992dSmrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
262814ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2629cacd992dSmrg    break 2
2630cacd992dSmrg  fi
2631cacd992dSmrgdone
263214ddf674Smrg  done
263314ddf674SmrgIFS=$as_save_IFS
2634cacd992dSmrg
2635cacd992dSmrgfi
2636cacd992dSmrgfi
2637cacd992dSmrgCC=$ac_cv_prog_CC
2638cacd992dSmrgif test -n "$CC"; then
263914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
264014ddf674Smrg$as_echo "$CC" >&6; }
2641cacd992dSmrgelse
264214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
264314ddf674Smrg$as_echo "no" >&6; }
2644cacd992dSmrgfi
2645cacd992dSmrg
264614ddf674Smrg
2647cacd992dSmrgfi
2648cacd992dSmrgif test -z "$ac_cv_prog_CC"; then
2649cacd992dSmrg  ac_ct_CC=$CC
2650cacd992dSmrg  # Extract the first word of "gcc", so it can be a program name with args.
2651cacd992dSmrgset dummy gcc; ac_word=$2
265214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
265314ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
265414ddf674Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
265514ddf674Smrg  $as_echo_n "(cached) " >&6
2656cacd992dSmrgelse
2657cacd992dSmrg  if test -n "$ac_ct_CC"; then
2658cacd992dSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659cacd992dSmrgelse
2660cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661cacd992dSmrgfor as_dir in $PATH
2662cacd992dSmrgdo
2663cacd992dSmrg  IFS=$as_save_IFS
2664cacd992dSmrg  test -z "$as_dir" && as_dir=.
266514ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
266614ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667cacd992dSmrg    ac_cv_prog_ac_ct_CC="gcc"
266814ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669cacd992dSmrg    break 2
2670cacd992dSmrg  fi
2671cacd992dSmrgdone
267214ddf674Smrg  done
267314ddf674SmrgIFS=$as_save_IFS
2674cacd992dSmrg
2675cacd992dSmrgfi
2676cacd992dSmrgfi
2677cacd992dSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2678cacd992dSmrgif test -n "$ac_ct_CC"; then
267914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
268014ddf674Smrg$as_echo "$ac_ct_CC" >&6; }
2681cacd992dSmrgelse
268214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
268314ddf674Smrg$as_echo "no" >&6; }
2684cacd992dSmrgfi
2685cacd992dSmrg
268614ddf674Smrg  if test "x$ac_ct_CC" = x; then
268714ddf674Smrg    CC=""
268814ddf674Smrg  else
268914ddf674Smrg    case $cross_compiling:$ac_tool_warned in
269014ddf674Smrgyes:)
269114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
269214ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
269314ddf674Smrgac_tool_warned=yes ;;
269414ddf674Smrgesac
269514ddf674Smrg    CC=$ac_ct_CC
269614ddf674Smrg  fi
2697cacd992dSmrgelse
2698cacd992dSmrg  CC="$ac_cv_prog_CC"
2699cacd992dSmrgfi
2700cacd992dSmrg
2701cacd992dSmrgif test -z "$CC"; then
270214ddf674Smrg          if test -n "$ac_tool_prefix"; then
270314ddf674Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2704cacd992dSmrgset dummy ${ac_tool_prefix}cc; ac_word=$2
270514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
270614ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
270714ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
270814ddf674Smrg  $as_echo_n "(cached) " >&6
2709cacd992dSmrgelse
2710cacd992dSmrg  if test -n "$CC"; then
2711cacd992dSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2712cacd992dSmrgelse
2713cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714cacd992dSmrgfor as_dir in $PATH
2715cacd992dSmrgdo
2716cacd992dSmrg  IFS=$as_save_IFS
2717cacd992dSmrg  test -z "$as_dir" && as_dir=.
271814ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
271914ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720cacd992dSmrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
272114ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722cacd992dSmrg    break 2
2723cacd992dSmrg  fi
2724cacd992dSmrgdone
272514ddf674Smrg  done
272614ddf674SmrgIFS=$as_save_IFS
2727cacd992dSmrg
2728cacd992dSmrgfi
2729cacd992dSmrgfi
2730cacd992dSmrgCC=$ac_cv_prog_CC
2731cacd992dSmrgif test -n "$CC"; then
273214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
273314ddf674Smrg$as_echo "$CC" >&6; }
2734cacd992dSmrgelse
273514ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
273614ddf674Smrg$as_echo "no" >&6; }
2737cacd992dSmrgfi
2738cacd992dSmrg
2739cacd992dSmrg
274014ddf674Smrg  fi
2741cacd992dSmrgfi
2742cacd992dSmrgif test -z "$CC"; then
2743cacd992dSmrg  # Extract the first word of "cc", so it can be a program name with args.
2744cacd992dSmrgset dummy cc; ac_word=$2
274514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
274614ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
274714ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
274814ddf674Smrg  $as_echo_n "(cached) " >&6
2749cacd992dSmrgelse
2750cacd992dSmrg  if test -n "$CC"; then
2751cacd992dSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2752cacd992dSmrgelse
2753cacd992dSmrg  ac_prog_rejected=no
2754cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755cacd992dSmrgfor as_dir in $PATH
2756cacd992dSmrgdo
2757cacd992dSmrg  IFS=$as_save_IFS
2758cacd992dSmrg  test -z "$as_dir" && as_dir=.
275914ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
276014ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761cacd992dSmrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2762cacd992dSmrg       ac_prog_rejected=yes
2763cacd992dSmrg       continue
2764cacd992dSmrg     fi
2765cacd992dSmrg    ac_cv_prog_CC="cc"
276614ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767cacd992dSmrg    break 2
2768cacd992dSmrg  fi
2769cacd992dSmrgdone
277014ddf674Smrg  done
277114ddf674SmrgIFS=$as_save_IFS
2772cacd992dSmrg
2773cacd992dSmrgif test $ac_prog_rejected = yes; then
2774cacd992dSmrg  # We found a bogon in the path, so make sure we never use it.
2775cacd992dSmrg  set dummy $ac_cv_prog_CC
2776cacd992dSmrg  shift
2777cacd992dSmrg  if test $# != 0; then
2778cacd992dSmrg    # We chose a different compiler from the bogus one.
2779cacd992dSmrg    # However, it has the same basename, so the bogon will be chosen
2780cacd992dSmrg    # first if we set CC to just the basename; use the full file name.
2781cacd992dSmrg    shift
2782cacd992dSmrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2783cacd992dSmrg  fi
2784cacd992dSmrgfi
2785cacd992dSmrgfi
2786cacd992dSmrgfi
2787cacd992dSmrgCC=$ac_cv_prog_CC
2788cacd992dSmrgif test -n "$CC"; then
278914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
279014ddf674Smrg$as_echo "$CC" >&6; }
2791cacd992dSmrgelse
279214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
279314ddf674Smrg$as_echo "no" >&6; }
2794cacd992dSmrgfi
2795cacd992dSmrg
279614ddf674Smrg
2797cacd992dSmrgfi
2798cacd992dSmrgif test -z "$CC"; then
2799cacd992dSmrg  if test -n "$ac_tool_prefix"; then
280014ddf674Smrg  for ac_prog in cl.exe
2801cacd992dSmrg  do
2802cacd992dSmrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2803cacd992dSmrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
280414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
280514ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
280614ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
280714ddf674Smrg  $as_echo_n "(cached) " >&6
2808cacd992dSmrgelse
2809cacd992dSmrg  if test -n "$CC"; then
2810cacd992dSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2811cacd992dSmrgelse
2812cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813cacd992dSmrgfor as_dir in $PATH
2814cacd992dSmrgdo
2815cacd992dSmrg  IFS=$as_save_IFS
2816cacd992dSmrg  test -z "$as_dir" && as_dir=.
281714ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
281814ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819cacd992dSmrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
282014ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821cacd992dSmrg    break 2
2822cacd992dSmrg  fi
2823cacd992dSmrgdone
282414ddf674Smrg  done
282514ddf674SmrgIFS=$as_save_IFS
2826cacd992dSmrg
2827cacd992dSmrgfi
2828cacd992dSmrgfi
2829cacd992dSmrgCC=$ac_cv_prog_CC
2830cacd992dSmrgif test -n "$CC"; then
283114ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
283214ddf674Smrg$as_echo "$CC" >&6; }
2833cacd992dSmrgelse
283414ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
283514ddf674Smrg$as_echo "no" >&6; }
2836cacd992dSmrgfi
2837cacd992dSmrg
283814ddf674Smrg
2839cacd992dSmrg    test -n "$CC" && break
2840cacd992dSmrg  done
2841cacd992dSmrgfi
2842cacd992dSmrgif test -z "$CC"; then
2843cacd992dSmrg  ac_ct_CC=$CC
284414ddf674Smrg  for ac_prog in cl.exe
2845cacd992dSmrgdo
2846cacd992dSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2847cacd992dSmrgset dummy $ac_prog; ac_word=$2
284814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
284914ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
285014ddf674Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
285114ddf674Smrg  $as_echo_n "(cached) " >&6
2852cacd992dSmrgelse
2853cacd992dSmrg  if test -n "$ac_ct_CC"; then
2854cacd992dSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2855cacd992dSmrgelse
2856cacd992dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857cacd992dSmrgfor as_dir in $PATH
2858cacd992dSmrgdo
2859cacd992dSmrg  IFS=$as_save_IFS
2860cacd992dSmrg  test -z "$as_dir" && as_dir=.
286114ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
286214ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863cacd992dSmrg    ac_cv_prog_ac_ct_CC="$ac_prog"
286414ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865cacd992dSmrg    break 2
2866cacd992dSmrg  fi
2867cacd992dSmrgdone
286814ddf674Smrg  done
286914ddf674SmrgIFS=$as_save_IFS
2870cacd992dSmrg
2871cacd992dSmrgfi
2872cacd992dSmrgfi
2873cacd992dSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2874cacd992dSmrgif test -n "$ac_ct_CC"; then
287514ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
287614ddf674Smrg$as_echo "$ac_ct_CC" >&6; }
2877cacd992dSmrgelse
287814ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
287914ddf674Smrg$as_echo "no" >&6; }
2880cacd992dSmrgfi
2881cacd992dSmrg
288214ddf674Smrg
2883cacd992dSmrg  test -n "$ac_ct_CC" && break
2884cacd992dSmrgdone
2885cacd992dSmrg
288614ddf674Smrg  if test "x$ac_ct_CC" = x; then
288714ddf674Smrg    CC=""
288814ddf674Smrg  else
288914ddf674Smrg    case $cross_compiling:$ac_tool_warned in
289014ddf674Smrgyes:)
289114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
289214ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
289314ddf674Smrgac_tool_warned=yes ;;
289414ddf674Smrgesac
289514ddf674Smrg    CC=$ac_ct_CC
289614ddf674Smrg  fi
2897cacd992dSmrgfi
2898cacd992dSmrg
2899cacd992dSmrgfi
2900cacd992dSmrg
2901cacd992dSmrg
290214ddf674Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
290314ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
290414ddf674Smrgas_fn_error "no acceptable C compiler found in \$PATH
290514ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }
2906cacd992dSmrg
2907cacd992dSmrg# Provide some information about the compiler.
290814ddf674Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
290914ddf674Smrgset X $ac_compile
291014ddf674Smrgac_compiler=$2
291114ddf674Smrgfor ac_option in --version -v -V -qversion; do
291214ddf674Smrg  { { ac_try="$ac_compiler $ac_option >&5"
291314ddf674Smrgcase "(($ac_try" in
291414ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
291514ddf674Smrg  *) ac_try_echo=$ac_try;;
291614ddf674Smrgesac
291714ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
291814ddf674Smrg$as_echo "$ac_try_echo"; } >&5
291914ddf674Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2920cacd992dSmrg  ac_status=$?
292114ddf674Smrg  if test -s conftest.err; then
292214ddf674Smrg    sed '10a\
292314ddf674Smrg... rest of stderr output deleted ...
292414ddf674Smrg         10q' conftest.err >conftest.er1
292514ddf674Smrg    cat conftest.er1 >&5
292614ddf674Smrg  fi
292714ddf674Smrg  rm -f conftest.er1 conftest.err
292814ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
292914ddf674Smrg  test $ac_status = 0; }
293014ddf674Smrgdone
2931cacd992dSmrg
293214ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933cacd992dSmrg/* end confdefs.h.  */
2934cacd992dSmrg
2935cacd992dSmrgint
2936cacd992dSmrgmain ()
2937cacd992dSmrg{
2938cacd992dSmrg
2939cacd992dSmrg  ;
2940cacd992dSmrg  return 0;
2941cacd992dSmrg}
2942cacd992dSmrg_ACEOF
2943cacd992dSmrgac_clean_files_save=$ac_clean_files
294414ddf674Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2945cacd992dSmrg# Try to create an executable without -o first, disregard a.out.
2946cacd992dSmrg# It will help us diagnose broken compilers, and finding out an intuition
2947cacd992dSmrg# of exeext.
294814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
294914ddf674Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
295014ddf674Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
295114ddf674Smrg
295214ddf674Smrg# The possible output files:
295314ddf674Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
295414ddf674Smrg
295514ddf674Smrgac_rmfiles=
295614ddf674Smrgfor ac_file in $ac_files
295714ddf674Smrgdo
295814ddf674Smrg  case $ac_file in
295914ddf674Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
296014ddf674Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
296114ddf674Smrg  esac
296214ddf674Smrgdone
296314ddf674Smrgrm -f $ac_rmfiles
296414ddf674Smrg
296514ddf674Smrgif { { ac_try="$ac_link_default"
296614ddf674Smrgcase "(($ac_try" in
296714ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
296814ddf674Smrg  *) ac_try_echo=$ac_try;;
296914ddf674Smrgesac
297014ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
297114ddf674Smrg$as_echo "$ac_try_echo"; } >&5
297214ddf674Smrg  (eval "$ac_link_default") 2>&5
2973cacd992dSmrg  ac_status=$?
297414ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
297514ddf674Smrg  test $ac_status = 0; }; then :
297614ddf674Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
297714ddf674Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
297814ddf674Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
297914ddf674Smrg# so that the user can short-circuit this test for compilers unknown to
298014ddf674Smrg# Autoconf.
298114ddf674Smrgfor ac_file in $ac_files ''
2982cacd992dSmrgdo
2983cacd992dSmrg  test -f "$ac_file" || continue
2984cacd992dSmrg  case $ac_file in
298514ddf674Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2986cacd992dSmrg	;;
2987cacd992dSmrg    [ab].out )
2988cacd992dSmrg	# We found the default executable, but exeext='' is most
2989cacd992dSmrg	# certainly right.
2990cacd992dSmrg	break;;
2991cacd992dSmrg    *.* )
299214ddf674Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
299314ddf674Smrg	then :; else
299414ddf674Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
299514ddf674Smrg	fi
299614ddf674Smrg	# We set ac_cv_exeext here because the later test for it is not
299714ddf674Smrg	# safe: cross compilers may not add the suffix if given an `-o'
299814ddf674Smrg	# argument, so we may need to know it at that point already.
299914ddf674Smrg	# Even if this section looks crufty: it has the advantage of
300014ddf674Smrg	# actually working.
3001cacd992dSmrg	break;;
3002cacd992dSmrg    * )
3003cacd992dSmrg	break;;
3004cacd992dSmrg  esac
3005cacd992dSmrgdone
300614ddf674Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
300714ddf674Smrg
3008cacd992dSmrgelse
300914ddf674Smrg  ac_file=''
301014ddf674Smrgfi
301114ddf674Smrgif test -z "$ac_file"; then :
301214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
301314ddf674Smrg$as_echo "no" >&6; }
301414ddf674Smrg$as_echo "$as_me: failed program was:" >&5
3015cacd992dSmrgsed 's/^/| /' conftest.$ac_ext >&5
3016cacd992dSmrg
301714ddf674Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
301814ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
301914ddf674Smrg{ as_fn_set_status 77
302014ddf674Smrgas_fn_error "C compiler cannot create executables
302114ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }; }
302214ddf674Smrgelse
302314ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
302414ddf674Smrg$as_echo "yes" >&6; }
3025cacd992dSmrgfi
302614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
302714ddf674Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
302814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
302914ddf674Smrg$as_echo "$ac_file" >&6; }
3030cacd992dSmrgac_exeext=$ac_cv_exeext
3031cacd992dSmrg
303214ddf674Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3033cacd992dSmrgac_clean_files=$ac_clean_files_save
303414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
303514ddf674Smrg$as_echo_n "checking for suffix of executables... " >&6; }
303614ddf674Smrgif { { ac_try="$ac_link"
303714ddf674Smrgcase "(($ac_try" in
303814ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
303914ddf674Smrg  *) ac_try_echo=$ac_try;;
304014ddf674Smrgesac
304114ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
304214ddf674Smrg$as_echo "$ac_try_echo"; } >&5
304314ddf674Smrg  (eval "$ac_link") 2>&5
3044cacd992dSmrg  ac_status=$?
304514ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
304614ddf674Smrg  test $ac_status = 0; }; then :
3047cacd992dSmrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3048cacd992dSmrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3049cacd992dSmrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3050cacd992dSmrg# `rm'.
3051cacd992dSmrgfor ac_file in conftest.exe conftest conftest.*; do
3052cacd992dSmrg  test -f "$ac_file" || continue
3053cacd992dSmrg  case $ac_file in
305414ddf674Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3055cacd992dSmrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056cacd992dSmrg	  break;;
3057cacd992dSmrg    * ) break;;
3058cacd992dSmrg  esac
3059cacd992dSmrgdone
3060cacd992dSmrgelse
306114ddf674Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
306214ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
306314ddf674Smrgas_fn_error "cannot compute suffix of executables: cannot compile and link
306414ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }
3065cacd992dSmrgfi
306614ddf674Smrgrm -f conftest conftest$ac_cv_exeext
306714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
306814ddf674Smrg$as_echo "$ac_cv_exeext" >&6; }
3069cacd992dSmrg
3070cacd992dSmrgrm -f conftest.$ac_ext
3071cacd992dSmrgEXEEXT=$ac_cv_exeext
3072cacd992dSmrgac_exeext=$EXEEXT
307314ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
307414ddf674Smrg/* end confdefs.h.  */
307514ddf674Smrg#include <stdio.h>
307614ddf674Smrgint
307714ddf674Smrgmain ()
307814ddf674Smrg{
307914ddf674SmrgFILE *f = fopen ("conftest.out", "w");
308014ddf674Smrg return ferror (f) || fclose (f) != 0;
308114ddf674Smrg
308214ddf674Smrg  ;
308314ddf674Smrg  return 0;
308414ddf674Smrg}
3085cacd992dSmrg_ACEOF
308614ddf674Smrgac_clean_files="$ac_clean_files conftest.out"
308714ddf674Smrg# Check that the compiler produces executables we can run.  If not, either
308814ddf674Smrg# the compiler is broken, or we cross compile.
308914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
309014ddf674Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
309114ddf674Smrgif test "$cross_compiling" != yes; then
309214ddf674Smrg  { { ac_try="$ac_link"
309314ddf674Smrgcase "(($ac_try" in
309414ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
309514ddf674Smrg  *) ac_try_echo=$ac_try;;
309614ddf674Smrgesac
309714ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
309814ddf674Smrg$as_echo "$ac_try_echo"; } >&5
309914ddf674Smrg  (eval "$ac_link") 2>&5
310014ddf674Smrg  ac_status=$?
310114ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
310214ddf674Smrg  test $ac_status = 0; }
310314ddf674Smrg  if { ac_try='./conftest$ac_cv_exeext'
310414ddf674Smrg  { { case "(($ac_try" in
310514ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
310614ddf674Smrg  *) ac_try_echo=$ac_try;;
310714ddf674Smrgesac
310814ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
310914ddf674Smrg$as_echo "$ac_try_echo"; } >&5
311014ddf674Smrg  (eval "$ac_try") 2>&5
311114ddf674Smrg  ac_status=$?
311214ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
311314ddf674Smrg  test $ac_status = 0; }; }; then
311414ddf674Smrg    cross_compiling=no
311514ddf674Smrg  else
311614ddf674Smrg    if test "$cross_compiling" = maybe; then
311714ddf674Smrg	cross_compiling=yes
311814ddf674Smrg    else
311914ddf674Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
312014ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
312114ddf674Smrgas_fn_error "cannot run C compiled programs.
312214ddf674SmrgIf you meant to cross compile, use \`--host'.
312314ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }
312414ddf674Smrg    fi
312514ddf674Smrg  fi
312614ddf674Smrgfi
312714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
312814ddf674Smrg$as_echo "$cross_compiling" >&6; }
312914ddf674Smrg
313014ddf674Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
313114ddf674Smrgac_clean_files=$ac_clean_files_save
313214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
313314ddf674Smrg$as_echo_n "checking for suffix of object files... " >&6; }
313414ddf674Smrgif test "${ac_cv_objext+set}" = set; then :
313514ddf674Smrg  $as_echo_n "(cached) " >&6
313614ddf674Smrgelse
313714ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138cacd992dSmrg/* end confdefs.h.  */
3139cacd992dSmrg
3140cacd992dSmrgint
3141cacd992dSmrgmain ()
3142cacd992dSmrg{
3143cacd992dSmrg
3144cacd992dSmrg  ;
3145cacd992dSmrg  return 0;
3146cacd992dSmrg}
3147cacd992dSmrg_ACEOF
3148cacd992dSmrgrm -f conftest.o conftest.obj
314914ddf674Smrgif { { ac_try="$ac_compile"
315014ddf674Smrgcase "(($ac_try" in
315114ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
315214ddf674Smrg  *) ac_try_echo=$ac_try;;
315314ddf674Smrgesac
315414ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
315514ddf674Smrg$as_echo "$ac_try_echo"; } >&5
315614ddf674Smrg  (eval "$ac_compile") 2>&5
3157cacd992dSmrg  ac_status=$?
315814ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
315914ddf674Smrg  test $ac_status = 0; }; then :
316014ddf674Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
316114ddf674Smrg  test -f "$ac_file" || continue;
3162cacd992dSmrg  case $ac_file in
316314ddf674Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3164cacd992dSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3165cacd992dSmrg       break;;
3166cacd992dSmrg  esac
3167cacd992dSmrgdone
3168cacd992dSmrgelse
316914ddf674Smrg  $as_echo "$as_me: failed program was:" >&5
3170cacd992dSmrgsed 's/^/| /' conftest.$ac_ext >&5
3171cacd992dSmrg
317214ddf674Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
317314ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
317414ddf674Smrgas_fn_error "cannot compute suffix of object files: cannot compile
317514ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }
3176cacd992dSmrgfi
3177cacd992dSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3178cacd992dSmrgfi
317914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
318014ddf674Smrg$as_echo "$ac_cv_objext" >&6; }
3181cacd992dSmrgOBJEXT=$ac_cv_objext
3182cacd992dSmrgac_objext=$OBJEXT
318314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
318414ddf674Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
318514ddf674Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
318614ddf674Smrg  $as_echo_n "(cached) " >&6
3187cacd992dSmrgelse
318814ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189cacd992dSmrg/* end confdefs.h.  */
3190cacd992dSmrg
3191cacd992dSmrgint
3192cacd992dSmrgmain ()
3193cacd992dSmrg{
3194cacd992dSmrg#ifndef __GNUC__
3195cacd992dSmrg       choke me
3196cacd992dSmrg#endif
3197cacd992dSmrg
3198cacd992dSmrg  ;
3199cacd992dSmrg  return 0;
3200cacd992dSmrg}
3201cacd992dSmrg_ACEOF
320214ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
3203cacd992dSmrg  ac_compiler_gnu=yes
3204cacd992dSmrgelse
320514ddf674Smrg  ac_compiler_gnu=no
3206cacd992dSmrgfi
320714ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208cacd992dSmrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3209cacd992dSmrg
3210cacd992dSmrgfi
321114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
321214ddf674Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
321314ddf674Smrgif test $ac_compiler_gnu = yes; then
321414ddf674Smrg  GCC=yes
321514ddf674Smrgelse
321614ddf674Smrg  GCC=
321714ddf674Smrgfi
3218cacd992dSmrgac_test_CFLAGS=${CFLAGS+set}
3219cacd992dSmrgac_save_CFLAGS=$CFLAGS
322014ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
322114ddf674Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
322214ddf674Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
322314ddf674Smrg  $as_echo_n "(cached) " >&6
322414ddf674Smrgelse
322514ddf674Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
322614ddf674Smrg   ac_c_werror_flag=yes
322714ddf674Smrg   ac_cv_prog_cc_g=no
322814ddf674Smrg   CFLAGS="-g"
322914ddf674Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230cacd992dSmrg/* end confdefs.h.  */
3231cacd992dSmrg
3232cacd992dSmrgint
3233cacd992dSmrgmain ()
3234cacd992dSmrg{
3235cacd992dSmrg
3236cacd992dSmrg  ;
3237cacd992dSmrg  return 0;
3238cacd992dSmrg}
3239cacd992dSmrg_ACEOF
324014ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
3241cacd992dSmrg  ac_cv_prog_cc_g=yes
3242cacd992dSmrgelse
324314ddf674Smrg  CFLAGS=""
324414ddf674Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
324514ddf674Smrg/* end confdefs.h.  */
324614ddf674Smrg
324714ddf674Smrgint
324814ddf674Smrgmain ()
324914ddf674Smrg{
325014ddf674Smrg
325114ddf674Smrg  ;
325214ddf674Smrg  return 0;
325314ddf674Smrg}
325414ddf674Smrg_ACEOF
325514ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
325614ddf674Smrg
325714ddf674Smrgelse
325814ddf674Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
325914ddf674Smrg	 CFLAGS="-g"
326014ddf674Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
326114ddf674Smrg/* end confdefs.h.  */
326214ddf674Smrg
326314ddf674Smrgint
326414ddf674Smrgmain ()
326514ddf674Smrg{
3266cacd992dSmrg
326714ddf674Smrg  ;
326814ddf674Smrg  return 0;
326914ddf674Smrg}
327014ddf674Smrg_ACEOF
327114ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
327214ddf674Smrg  ac_cv_prog_cc_g=yes
327314ddf674Smrgfi
327414ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275cacd992dSmrgfi
327614ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277cacd992dSmrgfi
327814ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
327914ddf674Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
328014ddf674Smrgfi
328114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
328214ddf674Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3283cacd992dSmrgif test "$ac_test_CFLAGS" = set; then
3284cacd992dSmrg  CFLAGS=$ac_save_CFLAGS
3285cacd992dSmrgelif test $ac_cv_prog_cc_g = yes; then
3286cacd992dSmrg  if test "$GCC" = yes; then
3287cacd992dSmrg    CFLAGS="-g -O2"
3288cacd992dSmrg  else
3289cacd992dSmrg    CFLAGS="-g"
3290cacd992dSmrg  fi
3291cacd992dSmrgelse
3292cacd992dSmrg  if test "$GCC" = yes; then
3293cacd992dSmrg    CFLAGS="-O2"
3294cacd992dSmrg  else
3295cacd992dSmrg    CFLAGS=
3296cacd992dSmrg  fi
3297cacd992dSmrgfi
329814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
329914ddf674Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
330014ddf674Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
330114ddf674Smrg  $as_echo_n "(cached) " >&6
3302cacd992dSmrgelse
330314ddf674Smrg  ac_cv_prog_cc_c89=no
3304cacd992dSmrgac_save_CC=$CC
330514ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306cacd992dSmrg/* end confdefs.h.  */
3307cacd992dSmrg#include <stdarg.h>
3308cacd992dSmrg#include <stdio.h>
3309cacd992dSmrg#include <sys/types.h>
3310cacd992dSmrg#include <sys/stat.h>
3311cacd992dSmrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3312cacd992dSmrgstruct buf { int x; };
3313cacd992dSmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3314cacd992dSmrgstatic char *e (p, i)
3315cacd992dSmrg     char **p;
3316cacd992dSmrg     int i;
3317cacd992dSmrg{
3318cacd992dSmrg  return p[i];
3319cacd992dSmrg}
3320cacd992dSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3321cacd992dSmrg{
3322cacd992dSmrg  char *s;
3323cacd992dSmrg  va_list v;
3324cacd992dSmrg  va_start (v,p);
3325cacd992dSmrg  s = g (p, va_arg (v,int));
3326cacd992dSmrg  va_end (v);
3327cacd992dSmrg  return s;
3328cacd992dSmrg}
3329cacd992dSmrg
3330cacd992dSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3331cacd992dSmrg   function prototypes and stuff, but not '\xHH' hex character constants.
3332cacd992dSmrg   These don't provoke an error unfortunately, instead are silently treated
333314ddf674Smrg   as 'x'.  The following induces an error, until -std is added to get
3334cacd992dSmrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3335cacd992dSmrg   array size at least.  It's necessary to write '\x00'==0 to get something
333614ddf674Smrg   that's true only with -std.  */
3337cacd992dSmrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338cacd992dSmrg
333914ddf674Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
334014ddf674Smrg   inside strings and character constants.  */
334114ddf674Smrg#define FOO(x) 'x'
334214ddf674Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
334314ddf674Smrg
3344cacd992dSmrgint test (int i, double x);
3345cacd992dSmrgstruct s1 {int (*f) (int a);};
3346cacd992dSmrgstruct s2 {int (*f) (double a);};
3347cacd992dSmrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3348cacd992dSmrgint argc;
3349cacd992dSmrgchar **argv;
3350cacd992dSmrgint
3351cacd992dSmrgmain ()
3352cacd992dSmrg{
3353cacd992dSmrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3354cacd992dSmrg  ;
3355cacd992dSmrg  return 0;
3356cacd992dSmrg}
3357cacd992dSmrg_ACEOF
335814ddf674Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
335914ddf674Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3360cacd992dSmrgdo
3361cacd992dSmrg  CC="$ac_save_CC $ac_arg"
336214ddf674Smrg  if ac_fn_c_try_compile "$LINENO"; then :
336314ddf674Smrg  ac_cv_prog_cc_c89=$ac_arg
3364cacd992dSmrgfi
336514ddf674Smrgrm -f core conftest.err conftest.$ac_objext
336614ddf674Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3367cacd992dSmrgdone
336814ddf674Smrgrm -f conftest.$ac_ext
3369cacd992dSmrgCC=$ac_save_CC
3370cacd992dSmrg
3371cacd992dSmrgfi
337214ddf674Smrg# AC_CACHE_VAL
337314ddf674Smrgcase "x$ac_cv_prog_cc_c89" in
337414ddf674Smrg  x)
337514ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
337614ddf674Smrg$as_echo "none needed" >&6; } ;;
337714ddf674Smrg  xno)
337814ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
337914ddf674Smrg$as_echo "unsupported" >&6; } ;;
3380cacd992dSmrg  *)
338114ddf674Smrg    CC="$CC $ac_cv_prog_cc_c89"
338214ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
338314ddf674Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3384cacd992dSmrgesac
338514ddf674Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3386cacd992dSmrg
3387cacd992dSmrgfi
3388cacd992dSmrg
3389cacd992dSmrgac_ext=c
3390cacd992dSmrgac_cpp='$CPP $CPPFLAGS'
3391cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3394cacd992dSmrg
3395cacd992dSmrgdepcc="$CC"   am_compiler_list=
3396cacd992dSmrg
339714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
339814ddf674Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
339914ddf674Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
340014ddf674Smrg  $as_echo_n "(cached) " >&6
3401cacd992dSmrgelse
3402cacd992dSmrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3403cacd992dSmrg  # We make a subdir and do the tests there.  Otherwise we can end up
3404cacd992dSmrg  # making bogus files that we don't know about and never remove.  For
3405cacd992dSmrg  # instance it was reported that on HP-UX the gcc test will end up
3406cacd992dSmrg  # making a dummy file named `D' -- because `-MD' means `put the output
3407cacd992dSmrg  # in D'.
3408cacd992dSmrg  mkdir conftest.dir
3409cacd992dSmrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3410cacd992dSmrg  # using a relative directory.
3411cacd992dSmrg  cp "$am_depcomp" conftest.dir
3412cacd992dSmrg  cd conftest.dir
3413cacd992dSmrg  # We will build objects and dependencies in a subdirectory because
3414cacd992dSmrg  # it helps to detect inapplicable dependency modes.  For instance
3415cacd992dSmrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3416cacd992dSmrg  # side effect of compilation, but ICC will put the dependencies in
3417cacd992dSmrg  # the current directory while Tru64 will put them in the object
3418cacd992dSmrg  # directory.
3419cacd992dSmrg  mkdir sub
3420cacd992dSmrg
3421cacd992dSmrg  am_cv_CC_dependencies_compiler_type=none
3422cacd992dSmrg  if test "$am_compiler_list" = ""; then
3423cacd992dSmrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3424cacd992dSmrg  fi
342514ddf674Smrg  am__universal=false
342614ddf674Smrg  case " $depcc " in #(
342714ddf674Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
342814ddf674Smrg     esac
342914ddf674Smrg
3430cacd992dSmrg  for depmode in $am_compiler_list; do
3431cacd992dSmrg    # Setup a source with many dependencies, because some compilers
3432cacd992dSmrg    # like to wrap large dependency lists on column 80 (with \), and
3433cacd992dSmrg    # we should not choose a depcomp mode which is confused by this.
3434cacd992dSmrg    #
3435cacd992dSmrg    # We need to recreate these files for each test, as the compiler may
3436cacd992dSmrg    # overwrite some of them when testing with obscure command lines.
3437cacd992dSmrg    # This happens at least with the AIX C compiler.
3438cacd992dSmrg    : > sub/conftest.c
3439cacd992dSmrg    for i in 1 2 3 4 5 6; do
3440cacd992dSmrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
344114ddf674Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
344214ddf674Smrg      # Solaris 8's {/usr,}/bin/sh.
344314ddf674Smrg      touch sub/conftst$i.h
3444cacd992dSmrg    done
3445cacd992dSmrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3446cacd992dSmrg
344714ddf674Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
344814ddf674Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
344914ddf674Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
345014ddf674Smrg    # versions had trouble with output in subdirs
345114ddf674Smrg    am__obj=sub/conftest.${OBJEXT-o}
345214ddf674Smrg    am__minus_obj="-o $am__obj"
3453cacd992dSmrg    case $depmode in
345414ddf674Smrg    gcc)
345514ddf674Smrg      # This depmode causes a compiler race in universal mode.
345614ddf674Smrg      test "$am__universal" = false || continue
345714ddf674Smrg      ;;
3458cacd992dSmrg    nosideeffect)
3459cacd992dSmrg      # after this tag, mechanisms are not by side-effect, so they'll
3460cacd992dSmrg      # only be used when explicitly requested
3461cacd992dSmrg      if test "x$enable_dependency_tracking" = xyes; then
3462cacd992dSmrg	continue
3463cacd992dSmrg      else
3464cacd992dSmrg	break
3465cacd992dSmrg      fi
3466cacd992dSmrg      ;;
346714ddf674Smrg    msvisualcpp | msvcmsys)
346814ddf674Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
346914ddf674Smrg      # not run yet.  These depmodes are late enough in the game, and
347014ddf674Smrg      # so weak that their functioning should not be impacted.
347114ddf674Smrg      am__obj=conftest.${OBJEXT-o}
347214ddf674Smrg      am__minus_obj=
347314ddf674Smrg      ;;
3474cacd992dSmrg    none) break ;;
3475cacd992dSmrg    esac
3476cacd992dSmrg    if depmode=$depmode \
347714ddf674Smrg       source=sub/conftest.c object=$am__obj \
3478cacd992dSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
347914ddf674Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3480cacd992dSmrg         >/dev/null 2>conftest.err &&
348114ddf674Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3482cacd992dSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
348314ddf674Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3484cacd992dSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3485cacd992dSmrg      # icc doesn't choke on unknown options, it will just issue warnings
348614ddf674Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
348714ddf674Smrg      # that says an option was ignored or not supported.
348814ddf674Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
348914ddf674Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
349014ddf674Smrg      # The diagnosis changed in icc 8.0:
349114ddf674Smrg      #   icc: Command line remark: option '-MP' not supported
349214ddf674Smrg      if (grep 'ignoring option' conftest.err ||
349314ddf674Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3494cacd992dSmrg        am_cv_CC_dependencies_compiler_type=$depmode
3495cacd992dSmrg        break
3496cacd992dSmrg      fi
3497cacd992dSmrg    fi
3498cacd992dSmrg  done
3499cacd992dSmrg
3500cacd992dSmrg  cd ..
3501cacd992dSmrg  rm -rf conftest.dir
3502cacd992dSmrgelse
3503cacd992dSmrg  am_cv_CC_dependencies_compiler_type=none
3504cacd992dSmrgfi
3505cacd992dSmrg
3506cacd992dSmrgfi
350714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
350814ddf674Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3509cacd992dSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3510cacd992dSmrg
351114ddf674Smrg if
3512cacd992dSmrg  test "x$enable_dependency_tracking" != xno \
3513cacd992dSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3514cacd992dSmrg  am__fastdepCC_TRUE=
3515cacd992dSmrg  am__fastdepCC_FALSE='#'
3516cacd992dSmrgelse
3517cacd992dSmrg  am__fastdepCC_TRUE='#'
3518cacd992dSmrg  am__fastdepCC_FALSE=
3519cacd992dSmrgfi
3520cacd992dSmrg
3521cacd992dSmrg
3522cacd992dSmrg
3523cacd992dSmrgac_ext=c
3524cacd992dSmrgac_cpp='$CPP $CPPFLAGS'
3525cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
352814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
352914ddf674Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
3530cacd992dSmrg# On Suns, sometimes $CPP names a directory.
3531cacd992dSmrgif test -n "$CPP" && test -d "$CPP"; then
3532cacd992dSmrg  CPP=
3533cacd992dSmrgfi
3534cacd992dSmrgif test -z "$CPP"; then
353514ddf674Smrg  if test "${ac_cv_prog_CPP+set}" = set; then :
353614ddf674Smrg  $as_echo_n "(cached) " >&6
3537cacd992dSmrgelse
3538cacd992dSmrg      # Double quotes because CPP needs to be expanded
3539cacd992dSmrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3540cacd992dSmrg    do
3541cacd992dSmrg      ac_preproc_ok=false
3542cacd992dSmrgfor ac_c_preproc_warn_flag in '' yes
3543cacd992dSmrgdo
3544cacd992dSmrg  # Use a header file that comes with gcc, so configuring glibc
3545cacd992dSmrg  # with a fresh cross-compiler works.
3546cacd992dSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547cacd992dSmrg  # <limits.h> exists even on freestanding compilers.
3548cacd992dSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3549cacd992dSmrg  # not just through cpp. "Syntax error" is here to catch this case.
355014ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551cacd992dSmrg/* end confdefs.h.  */
3552cacd992dSmrg#ifdef __STDC__
3553cacd992dSmrg# include <limits.h>
3554cacd992dSmrg#else
3555cacd992dSmrg# include <assert.h>
3556cacd992dSmrg#endif
3557cacd992dSmrg		     Syntax error
3558cacd992dSmrg_ACEOF
355914ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3560cacd992dSmrg
356114ddf674Smrgelse
3562cacd992dSmrg  # Broken: fails on valid input.
3563cacd992dSmrgcontinue
3564cacd992dSmrgfi
3565cacd992dSmrgrm -f conftest.err conftest.$ac_ext
3566cacd992dSmrg
356714ddf674Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3568cacd992dSmrg  # can be detected and how.
356914ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570cacd992dSmrg/* end confdefs.h.  */
3571cacd992dSmrg#include <ac_nonexistent.h>
3572cacd992dSmrg_ACEOF
357314ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3574cacd992dSmrg  # Broken: success on invalid input.
3575cacd992dSmrgcontinue
3576cacd992dSmrgelse
3577cacd992dSmrg  # Passes both tests.
3578cacd992dSmrgac_preproc_ok=:
3579cacd992dSmrgbreak
3580cacd992dSmrgfi
3581cacd992dSmrgrm -f conftest.err conftest.$ac_ext
3582cacd992dSmrg
3583cacd992dSmrgdone
3584cacd992dSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3585cacd992dSmrgrm -f conftest.err conftest.$ac_ext
358614ddf674Smrgif $ac_preproc_ok; then :
3587cacd992dSmrg  break
3588cacd992dSmrgfi
3589cacd992dSmrg
3590cacd992dSmrg    done
3591cacd992dSmrg    ac_cv_prog_CPP=$CPP
3592cacd992dSmrg
3593cacd992dSmrgfi
3594cacd992dSmrg  CPP=$ac_cv_prog_CPP
3595cacd992dSmrgelse
3596cacd992dSmrg  ac_cv_prog_CPP=$CPP
3597cacd992dSmrgfi
359814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
359914ddf674Smrg$as_echo "$CPP" >&6; }
3600cacd992dSmrgac_preproc_ok=false
3601cacd992dSmrgfor ac_c_preproc_warn_flag in '' yes
3602cacd992dSmrgdo
3603cacd992dSmrg  # Use a header file that comes with gcc, so configuring glibc
3604cacd992dSmrg  # with a fresh cross-compiler works.
3605cacd992dSmrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606cacd992dSmrg  # <limits.h> exists even on freestanding compilers.
3607cacd992dSmrg  # On the NeXT, cc -E runs the code through the compiler's parser,
3608cacd992dSmrg  # not just through cpp. "Syntax error" is here to catch this case.
360914ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610cacd992dSmrg/* end confdefs.h.  */
3611cacd992dSmrg#ifdef __STDC__
3612cacd992dSmrg# include <limits.h>
3613cacd992dSmrg#else
3614cacd992dSmrg# include <assert.h>
3615cacd992dSmrg#endif
3616cacd992dSmrg		     Syntax error
3617cacd992dSmrg_ACEOF
361814ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3619cacd992dSmrg
362014ddf674Smrgelse
3621cacd992dSmrg  # Broken: fails on valid input.
3622cacd992dSmrgcontinue
3623cacd992dSmrgfi
3624cacd992dSmrgrm -f conftest.err conftest.$ac_ext
3625cacd992dSmrg
362614ddf674Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
3627cacd992dSmrg  # can be detected and how.
362814ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629cacd992dSmrg/* end confdefs.h.  */
3630cacd992dSmrg#include <ac_nonexistent.h>
3631cacd992dSmrg_ACEOF
363214ddf674Smrgif ac_fn_c_try_cpp "$LINENO"; then :
3633cacd992dSmrg  # Broken: success on invalid input.
3634cacd992dSmrgcontinue
3635cacd992dSmrgelse
3636cacd992dSmrg  # Passes both tests.
3637cacd992dSmrgac_preproc_ok=:
3638cacd992dSmrgbreak
3639cacd992dSmrgfi
3640cacd992dSmrgrm -f conftest.err conftest.$ac_ext
3641cacd992dSmrg
3642cacd992dSmrgdone
3643cacd992dSmrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644cacd992dSmrgrm -f conftest.err conftest.$ac_ext
364514ddf674Smrgif $ac_preproc_ok; then :
364614ddf674Smrg
3647cacd992dSmrgelse
364814ddf674Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
364914ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
365014ddf674Smrgas_fn_error "C preprocessor \"$CPP\" fails sanity check
365114ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }
3652cacd992dSmrgfi
3653cacd992dSmrg
3654cacd992dSmrgac_ext=c
3655cacd992dSmrgac_cpp='$CPP $CPPFLAGS'
3656cacd992dSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657cacd992dSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658cacd992dSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3659cacd992dSmrg
366014ddf674Smrg
366114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
366214ddf674Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
366314ddf674Smrgif test "${ac_cv_path_GREP+set}" = set; then :
366414ddf674Smrg  $as_echo_n "(cached) " >&6
3665cacd992dSmrgelse
366614ddf674Smrg  if test -z "$GREP"; then
366714ddf674Smrg  ac_path_GREP_found=false
366814ddf674Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3669cacd992dSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
367014ddf674Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671cacd992dSmrgdo
3672cacd992dSmrg  IFS=$as_save_IFS
3673cacd992dSmrg  test -z "$as_dir" && as_dir=.
367414ddf674Smrg    for ac_prog in grep ggrep; do
367514ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
367614ddf674Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
367714ddf674Smrg      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
367814ddf674Smrg# Check for GNU ac_path_GREP and select it if it is found.
367914ddf674Smrg  # Check for GNU $ac_path_GREP
368014ddf674Smrgcase `"$ac_path_GREP" --version 2>&1` in
368114ddf674Smrg*GNU*)
368214ddf674Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
368314ddf674Smrg*)
368414ddf674Smrg  ac_count=0
368514ddf674Smrg  $as_echo_n 0123456789 >"conftest.in"
368614ddf674Smrg  while :
368714ddf674Smrg  do
368814ddf674Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
368914ddf674Smrg    mv "conftest.tmp" "conftest.in"
369014ddf674Smrg    cp "conftest.in" "conftest.nl"
369114ddf674Smrg    $as_echo 'GREP' >> "conftest.nl"
369214ddf674Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
369314ddf674Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
369414ddf674Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
369514ddf674Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
369614ddf674Smrg      # Best one so far, save it but keep looking for a better one
369714ddf674Smrg      ac_cv_path_GREP="$ac_path_GREP"
369814ddf674Smrg      ac_path_GREP_max=$ac_count
369914ddf674Smrg    fi
370014ddf674Smrg    # 10*(2^10) chars as input seems more than enough
370114ddf674Smrg    test $ac_count -gt 10 && break
370214ddf674Smrg  done
370314ddf674Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704cacd992dSmrgesac
3705cacd992dSmrg
370614ddf674Smrg      $ac_path_GREP_found && break 3
370714ddf674Smrg    done
370814ddf674Smrg  done
370914ddf674Smrg  done
371014ddf674SmrgIFS=$as_save_IFS
371114ddf674Smrg  if test -z "$ac_cv_path_GREP"; then
371214ddf674Smrg    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
371314ddf674Smrg  fi
3714cacd992dSmrgelse
371514ddf674Smrg  ac_cv_path_GREP=$GREP
3716cacd992dSmrgfi
3717cacd992dSmrg
371814ddf674Smrgfi
371914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
372014ddf674Smrg$as_echo "$ac_cv_path_GREP" >&6; }
372114ddf674Smrg GREP="$ac_cv_path_GREP"
3722cacd992dSmrg
3723cacd992dSmrg
372414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
372514ddf674Smrg$as_echo_n "checking for egrep... " >&6; }
372614ddf674Smrgif test "${ac_cv_path_EGREP+set}" = set; then :
372714ddf674Smrg  $as_echo_n "(cached) " >&6
3728cacd992dSmrgelse
372914ddf674Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
373014ddf674Smrg   then ac_cv_path_EGREP="$GREP -E"
373114ddf674Smrg   else
373214ddf674Smrg     if test -z "$EGREP"; then
373314ddf674Smrg  ac_path_EGREP_found=false
373414ddf674Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
3735cacd992dSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
373614ddf674Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3737cacd992dSmrgdo
3738cacd992dSmrg  IFS=$as_save_IFS
3739cacd992dSmrg  test -z "$as_dir" && as_dir=.
374014ddf674Smrg    for ac_prog in egrep; do
374114ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
374214ddf674Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
374314ddf674Smrg      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
374414ddf674Smrg# Check for GNU ac_path_EGREP and select it if it is found.
374514ddf674Smrg  # Check for GNU $ac_path_EGREP
374614ddf674Smrgcase `"$ac_path_EGREP" --version 2>&1` in
374714ddf674Smrg*GNU*)
374814ddf674Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
374914ddf674Smrg*)
375014ddf674Smrg  ac_count=0
375114ddf674Smrg  $as_echo_n 0123456789 >"conftest.in"
375214ddf674Smrg  while :
375314ddf674Smrg  do
375414ddf674Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
375514ddf674Smrg    mv "conftest.tmp" "conftest.in"
375614ddf674Smrg    cp "conftest.in" "conftest.nl"
375714ddf674Smrg    $as_echo 'EGREP' >> "conftest.nl"
375814ddf674Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
375914ddf674Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
376014ddf674Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
376114ddf674Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
376214ddf674Smrg      # Best one so far, save it but keep looking for a better one
376314ddf674Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
376414ddf674Smrg      ac_path_EGREP_max=$ac_count
376514ddf674Smrg    fi
376614ddf674Smrg    # 10*(2^10) chars as input seems more than enough
376714ddf674Smrg    test $ac_count -gt 10 && break
376814ddf674Smrg  done
376914ddf674Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
377014ddf674Smrgesac
377114ddf674Smrg
377214ddf674Smrg      $ac_path_EGREP_found && break 3
377314ddf674Smrg    done
377414ddf674Smrg  done
377514ddf674Smrg  done
377614ddf674SmrgIFS=$as_save_IFS
377714ddf674Smrg  if test -z "$ac_cv_path_EGREP"; then
377814ddf674Smrg    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
377914ddf674Smrg  fi
378014ddf674Smrgelse
378114ddf674Smrg  ac_cv_path_EGREP=$EGREP
378214ddf674Smrgfi
378314ddf674Smrg
378414ddf674Smrg   fi
378514ddf674Smrgfi
378614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
378714ddf674Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
378814ddf674Smrg EGREP="$ac_cv_path_EGREP"
378914ddf674Smrg
379014ddf674Smrg
379114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
379214ddf674Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
379314ddf674Smrgif test "${ac_cv_header_stdc+set}" = set; then :
379414ddf674Smrg  $as_echo_n "(cached) " >&6
379514ddf674Smrgelse
379614ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
379714ddf674Smrg/* end confdefs.h.  */
379814ddf674Smrg#include <stdlib.h>
379914ddf674Smrg#include <stdarg.h>
380014ddf674Smrg#include <string.h>
380114ddf674Smrg#include <float.h>
380214ddf674Smrg
380314ddf674Smrgint
380414ddf674Smrgmain ()
380514ddf674Smrg{
380614ddf674Smrg
380714ddf674Smrg  ;
380814ddf674Smrg  return 0;
380914ddf674Smrg}
381014ddf674Smrg_ACEOF
381114ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
381214ddf674Smrg  ac_cv_header_stdc=yes
381314ddf674Smrgelse
381414ddf674Smrg  ac_cv_header_stdc=no
381514ddf674Smrgfi
381614ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
381714ddf674Smrg
381814ddf674Smrgif test $ac_cv_header_stdc = yes; then
381914ddf674Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
382014ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
382114ddf674Smrg/* end confdefs.h.  */
382214ddf674Smrg#include <string.h>
382314ddf674Smrg
382414ddf674Smrg_ACEOF
382514ddf674Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
382614ddf674Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
382714ddf674Smrg
382814ddf674Smrgelse
382914ddf674Smrg  ac_cv_header_stdc=no
383014ddf674Smrgfi
383114ddf674Smrgrm -f conftest*
383214ddf674Smrg
383314ddf674Smrgfi
383414ddf674Smrg
383514ddf674Smrgif test $ac_cv_header_stdc = yes; then
383614ddf674Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
383714ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
383814ddf674Smrg/* end confdefs.h.  */
383914ddf674Smrg#include <stdlib.h>
384014ddf674Smrg
384114ddf674Smrg_ACEOF
384214ddf674Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
384314ddf674Smrg  $EGREP "free" >/dev/null 2>&1; then :
384414ddf674Smrg
384514ddf674Smrgelse
384614ddf674Smrg  ac_cv_header_stdc=no
384714ddf674Smrgfi
384814ddf674Smrgrm -f conftest*
384914ddf674Smrg
385014ddf674Smrgfi
385114ddf674Smrg
385214ddf674Smrgif test $ac_cv_header_stdc = yes; then
385314ddf674Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
385414ddf674Smrg  if test "$cross_compiling" = yes; then :
385514ddf674Smrg  :
385614ddf674Smrgelse
385714ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
385814ddf674Smrg/* end confdefs.h.  */
385914ddf674Smrg#include <ctype.h>
386014ddf674Smrg#include <stdlib.h>
386114ddf674Smrg#if ((' ' & 0x0FF) == 0x020)
386214ddf674Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
386314ddf674Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
386414ddf674Smrg#else
386514ddf674Smrg# define ISLOWER(c) \
386614ddf674Smrg		   (('a' <= (c) && (c) <= 'i') \
386714ddf674Smrg		     || ('j' <= (c) && (c) <= 'r') \
386814ddf674Smrg		     || ('s' <= (c) && (c) <= 'z'))
386914ddf674Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
387014ddf674Smrg#endif
387114ddf674Smrg
387214ddf674Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
387314ddf674Smrgint
387414ddf674Smrgmain ()
387514ddf674Smrg{
387614ddf674Smrg  int i;
387714ddf674Smrg  for (i = 0; i < 256; i++)
387814ddf674Smrg    if (XOR (islower (i), ISLOWER (i))
387914ddf674Smrg	|| toupper (i) != TOUPPER (i))
388014ddf674Smrg      return 2;
388114ddf674Smrg  return 0;
388214ddf674Smrg}
388314ddf674Smrg_ACEOF
388414ddf674Smrgif ac_fn_c_try_run "$LINENO"; then :
388514ddf674Smrg
388614ddf674Smrgelse
388714ddf674Smrg  ac_cv_header_stdc=no
388814ddf674Smrgfi
388914ddf674Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
389014ddf674Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
389114ddf674Smrgfi
389214ddf674Smrg
389314ddf674Smrgfi
389414ddf674Smrgfi
389514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
389614ddf674Smrg$as_echo "$ac_cv_header_stdc" >&6; }
389714ddf674Smrgif test $ac_cv_header_stdc = yes; then
389814ddf674Smrg
389914ddf674Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
390014ddf674Smrg
390114ddf674Smrgfi
390214ddf674Smrg
390314ddf674Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
390414ddf674Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
390514ddf674Smrg		  inttypes.h stdint.h unistd.h
390614ddf674Smrgdo :
390714ddf674Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
390814ddf674Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
390914ddf674Smrg"
391014ddf674Smrgeval as_val=\$$as_ac_Header
391114ddf674Smrg   if test "x$as_val" = x""yes; then :
391214ddf674Smrg  cat >>confdefs.h <<_ACEOF
391314ddf674Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
391414ddf674Smrg_ACEOF
391514ddf674Smrg
391614ddf674Smrgfi
391714ddf674Smrg
391814ddf674Smrgdone
391914ddf674Smrg
392014ddf674Smrg
392114ddf674Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
392214ddf674Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
392314ddf674Smrgif test "${ac_cv_prog_cc_c99+set}" = set; then :
392414ddf674Smrg  $as_echo_n "(cached) " >&6
392514ddf674Smrgelse
392614ddf674Smrg  ac_cv_prog_cc_c99=no
392714ddf674Smrgac_save_CC=$CC
392814ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
392914ddf674Smrg/* end confdefs.h.  */
393014ddf674Smrg#include <stdarg.h>
393114ddf674Smrg#include <stdbool.h>
393214ddf674Smrg#include <stdlib.h>
393314ddf674Smrg#include <wchar.h>
393414ddf674Smrg#include <stdio.h>
393514ddf674Smrg
393614ddf674Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
393714ddf674Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
393814ddf674Smrg#define showlist(...) puts (#__VA_ARGS__)
393914ddf674Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
394014ddf674Smrgstatic void
394114ddf674Smrgtest_varargs_macros (void)
394214ddf674Smrg{
394314ddf674Smrg  int x = 1234;
394414ddf674Smrg  int y = 5678;
394514ddf674Smrg  debug ("Flag");
394614ddf674Smrg  debug ("X = %d\n", x);
394714ddf674Smrg  showlist (The first, second, and third items.);
394814ddf674Smrg  report (x>y, "x is %d but y is %d", x, y);
394914ddf674Smrg}
395014ddf674Smrg
395114ddf674Smrg// Check long long types.
395214ddf674Smrg#define BIG64 18446744073709551615ull
395314ddf674Smrg#define BIG32 4294967295ul
395414ddf674Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
395514ddf674Smrg#if !BIG_OK
395614ddf674Smrg  your preprocessor is broken;
395714ddf674Smrg#endif
395814ddf674Smrg#if BIG_OK
395914ddf674Smrg#else
396014ddf674Smrg  your preprocessor is broken;
396114ddf674Smrg#endif
396214ddf674Smrgstatic long long int bignum = -9223372036854775807LL;
396314ddf674Smrgstatic unsigned long long int ubignum = BIG64;
396414ddf674Smrg
396514ddf674Smrgstruct incomplete_array
396614ddf674Smrg{
396714ddf674Smrg  int datasize;
396814ddf674Smrg  double data[];
396914ddf674Smrg};
397014ddf674Smrg
397114ddf674Smrgstruct named_init {
397214ddf674Smrg  int number;
397314ddf674Smrg  const wchar_t *name;
397414ddf674Smrg  double average;
397514ddf674Smrg};
397614ddf674Smrg
397714ddf674Smrgtypedef const char *ccp;
397814ddf674Smrg
397914ddf674Smrgstatic inline int
398014ddf674Smrgtest_restrict (ccp restrict text)
398114ddf674Smrg{
398214ddf674Smrg  // See if C++-style comments work.
398314ddf674Smrg  // Iterate through items via the restricted pointer.
398414ddf674Smrg  // Also check for declarations in for loops.
398514ddf674Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
398614ddf674Smrg    continue;
398714ddf674Smrg  return 0;
398814ddf674Smrg}
398914ddf674Smrg
399014ddf674Smrg// Check varargs and va_copy.
399114ddf674Smrgstatic void
399214ddf674Smrgtest_varargs (const char *format, ...)
399314ddf674Smrg{
399414ddf674Smrg  va_list args;
399514ddf674Smrg  va_start (args, format);
399614ddf674Smrg  va_list args_copy;
399714ddf674Smrg  va_copy (args_copy, args);
399814ddf674Smrg
399914ddf674Smrg  const char *str;
400014ddf674Smrg  int number;
400114ddf674Smrg  float fnumber;
400214ddf674Smrg
400314ddf674Smrg  while (*format)
400414ddf674Smrg    {
400514ddf674Smrg      switch (*format++)
400614ddf674Smrg	{
400714ddf674Smrg	case 's': // string
400814ddf674Smrg	  str = va_arg (args_copy, const char *);
400914ddf674Smrg	  break;
401014ddf674Smrg	case 'd': // int
401114ddf674Smrg	  number = va_arg (args_copy, int);
401214ddf674Smrg	  break;
401314ddf674Smrg	case 'f': // float
401414ddf674Smrg	  fnumber = va_arg (args_copy, double);
401514ddf674Smrg	  break;
401614ddf674Smrg	default:
401714ddf674Smrg	  break;
401814ddf674Smrg	}
401914ddf674Smrg    }
402014ddf674Smrg  va_end (args_copy);
402114ddf674Smrg  va_end (args);
402214ddf674Smrg}
402314ddf674Smrg
402414ddf674Smrgint
402514ddf674Smrgmain ()
402614ddf674Smrg{
402714ddf674Smrg
402814ddf674Smrg  // Check bool.
402914ddf674Smrg  _Bool success = false;
403014ddf674Smrg
403114ddf674Smrg  // Check restrict.
403214ddf674Smrg  if (test_restrict ("String literal") == 0)
403314ddf674Smrg    success = true;
403414ddf674Smrg  char *restrict newvar = "Another string";
403514ddf674Smrg
403614ddf674Smrg  // Check varargs.
403714ddf674Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
403814ddf674Smrg  test_varargs_macros ();
403914ddf674Smrg
404014ddf674Smrg  // Check flexible array members.
404114ddf674Smrg  struct incomplete_array *ia =
404214ddf674Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
404314ddf674Smrg  ia->datasize = 10;
404414ddf674Smrg  for (int i = 0; i < ia->datasize; ++i)
404514ddf674Smrg    ia->data[i] = i * 1.234;
404614ddf674Smrg
404714ddf674Smrg  // Check named initializers.
404814ddf674Smrg  struct named_init ni = {
404914ddf674Smrg    .number = 34,
405014ddf674Smrg    .name = L"Test wide string",
405114ddf674Smrg    .average = 543.34343,
405214ddf674Smrg  };
405314ddf674Smrg
405414ddf674Smrg  ni.number = 58;
405514ddf674Smrg
405614ddf674Smrg  int dynamic_array[ni.number];
405714ddf674Smrg  dynamic_array[ni.number - 1] = 543;
405814ddf674Smrg
405914ddf674Smrg  // work around unused variable warnings
406014ddf674Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
406114ddf674Smrg	  || dynamic_array[ni.number - 1] != 543);
406214ddf674Smrg
406314ddf674Smrg  ;
406414ddf674Smrg  return 0;
406514ddf674Smrg}
406614ddf674Smrg_ACEOF
406714ddf674Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
406814ddf674Smrgdo
406914ddf674Smrg  CC="$ac_save_CC $ac_arg"
407014ddf674Smrg  if ac_fn_c_try_compile "$LINENO"; then :
407114ddf674Smrg  ac_cv_prog_cc_c99=$ac_arg
407214ddf674Smrgfi
407314ddf674Smrgrm -f core conftest.err conftest.$ac_objext
407414ddf674Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
407514ddf674Smrgdone
407614ddf674Smrgrm -f conftest.$ac_ext
407714ddf674SmrgCC=$ac_save_CC
407814ddf674Smrg
407914ddf674Smrgfi
408014ddf674Smrg# AC_CACHE_VAL
408114ddf674Smrgcase "x$ac_cv_prog_cc_c99" in
408214ddf674Smrg  x)
408314ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
408414ddf674Smrg$as_echo "none needed" >&6; } ;;
408514ddf674Smrg  xno)
408614ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
408714ddf674Smrg$as_echo "unsupported" >&6; } ;;
408814ddf674Smrg  *)
408914ddf674Smrg    CC="$CC $ac_cv_prog_cc_c99"
409014ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
409114ddf674Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
409214ddf674Smrgesac
409314ddf674Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
409414ddf674Smrg
409514ddf674Smrgfi
409614ddf674Smrg
409714ddf674Smrg
409814ddf674Smrg
409914ddf674Smrg
410014ddf674Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
410114ddf674Smrg	if test -n "$ac_tool_prefix"; then
410214ddf674Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
410314ddf674Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
410414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
410514ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
410614ddf674Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
410714ddf674Smrg  $as_echo_n "(cached) " >&6
410814ddf674Smrgelse
410914ddf674Smrg  case $PKG_CONFIG in
411014ddf674Smrg  [\\/]* | ?:[\\/]*)
411114ddf674Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
411214ddf674Smrg  ;;
411314ddf674Smrg  *)
411414ddf674Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
411514ddf674Smrgfor as_dir in $PATH
411614ddf674Smrgdo
411714ddf674Smrg  IFS=$as_save_IFS
411814ddf674Smrg  test -z "$as_dir" && as_dir=.
411914ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
412014ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
412114ddf674Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
412214ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
412314ddf674Smrg    break 2
412414ddf674Smrg  fi
412514ddf674Smrgdone
412614ddf674Smrg  done
412714ddf674SmrgIFS=$as_save_IFS
4128cacd992dSmrg
4129cacd992dSmrg  ;;
4130cacd992dSmrgesac
4131cacd992dSmrgfi
4132cacd992dSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4133cacd992dSmrgif test -n "$PKG_CONFIG"; then
413414ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
413514ddf674Smrg$as_echo "$PKG_CONFIG" >&6; }
4136cacd992dSmrgelse
413714ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
413814ddf674Smrg$as_echo "no" >&6; }
4139cacd992dSmrgfi
4140cacd992dSmrg
414114ddf674Smrg
4142cacd992dSmrgfi
4143cacd992dSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4144cacd992dSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4145cacd992dSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4146cacd992dSmrgset dummy pkg-config; ac_word=$2
414714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
414814ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
414914ddf674Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
415014ddf674Smrg  $as_echo_n "(cached) " >&6
4151cacd992dSmrgelse
4152cacd992dSmrg  case $ac_pt_PKG_CONFIG in
4153cacd992dSmrg  [\\/]* | ?:[\\/]*)
4154cacd992dSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4155cacd992dSmrg  ;;
4156cacd992dSmrg  *)
4157cacd992dSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158cacd992dSmrgfor as_dir in $PATH
4159cacd992dSmrgdo
4160cacd992dSmrg  IFS=$as_save_IFS
4161cacd992dSmrg  test -z "$as_dir" && as_dir=.
416214ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
416314ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164cacd992dSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
416514ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166cacd992dSmrg    break 2
4167cacd992dSmrg  fi
4168cacd992dSmrgdone
416914ddf674Smrg  done
417014ddf674SmrgIFS=$as_save_IFS
4171cacd992dSmrg
4172cacd992dSmrg  ;;
4173cacd992dSmrgesac
4174cacd992dSmrgfi
4175cacd992dSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4176cacd992dSmrgif test -n "$ac_pt_PKG_CONFIG"; then
417714ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
417814ddf674Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4179cacd992dSmrgelse
418014ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
418114ddf674Smrg$as_echo "no" >&6; }
4182cacd992dSmrgfi
4183cacd992dSmrg
418414ddf674Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
418514ddf674Smrg    PKG_CONFIG=""
418614ddf674Smrg  else
418714ddf674Smrg    case $cross_compiling:$ac_tool_warned in
418814ddf674Smrgyes:)
418914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
419014ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
419114ddf674Smrgac_tool_warned=yes ;;
419214ddf674Smrgesac
419314ddf674Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
419414ddf674Smrg  fi
4195cacd992dSmrgelse
4196cacd992dSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4197cacd992dSmrgfi
4198cacd992dSmrg
4199cacd992dSmrgfi
4200cacd992dSmrgif test -n "$PKG_CONFIG"; then
4201cacd992dSmrg	_pkg_min_version=0.9.0
420214ddf674Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
420314ddf674Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4204cacd992dSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
420514ddf674Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
420614ddf674Smrg$as_echo "yes" >&6; }
4207cacd992dSmrg	else
420814ddf674Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
420914ddf674Smrg$as_echo "no" >&6; }
4210cacd992dSmrg		PKG_CONFIG=""
4211cacd992dSmrg	fi
4212cacd992dSmrg
4213cacd992dSmrgfi
421414ddf674Smrg# Make sure we can run config.sub.
421514ddf674Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
421614ddf674Smrg  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4217cacd992dSmrg
421814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
421914ddf674Smrg$as_echo_n "checking build system type... " >&6; }
422014ddf674Smrgif test "${ac_cv_build+set}" = set; then :
422114ddf674Smrg  $as_echo_n "(cached) " >&6
4222cacd992dSmrgelse
422314ddf674Smrg  ac_build_alias=$build_alias
422414ddf674Smrgtest "x$ac_build_alias" = x &&
422514ddf674Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
422614ddf674Smrgtest "x$ac_build_alias" = x &&
422714ddf674Smrg  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
422814ddf674Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
422914ddf674Smrg  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
423014ddf674Smrg
423114ddf674Smrgfi
423214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
423314ddf674Smrg$as_echo "$ac_cv_build" >&6; }
423414ddf674Smrgcase $ac_cv_build in
423514ddf674Smrg*-*-*) ;;
423614ddf674Smrg*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
423714ddf674Smrgesac
423814ddf674Smrgbuild=$ac_cv_build
423914ddf674Smrgac_save_IFS=$IFS; IFS='-'
424014ddf674Smrgset x $ac_cv_build
424114ddf674Smrgshift
424214ddf674Smrgbuild_cpu=$1
424314ddf674Smrgbuild_vendor=$2
424414ddf674Smrgshift; shift
424514ddf674Smrg# Remember, the first character of IFS is used to create $*,
424614ddf674Smrg# except with old shells:
424714ddf674Smrgbuild_os=$*
424814ddf674SmrgIFS=$ac_save_IFS
424914ddf674Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
425014ddf674Smrg
425114ddf674Smrg
425214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
425314ddf674Smrg$as_echo_n "checking host system type... " >&6; }
425414ddf674Smrgif test "${ac_cv_host+set}" = set; then :
425514ddf674Smrg  $as_echo_n "(cached) " >&6
4256cacd992dSmrgelse
425714ddf674Smrg  if test "x$host_alias" = x; then
425814ddf674Smrg  ac_cv_host=$ac_cv_build
4259cacd992dSmrgelse
426014ddf674Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
426114ddf674Smrg    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4262cacd992dSmrgfi
426314ddf674Smrg
4264cacd992dSmrgfi
426514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
426614ddf674Smrg$as_echo "$ac_cv_host" >&6; }
426714ddf674Smrgcase $ac_cv_host in
426814ddf674Smrg*-*-*) ;;
426914ddf674Smrg*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
427014ddf674Smrgesac
427114ddf674Smrghost=$ac_cv_host
427214ddf674Smrgac_save_IFS=$IFS; IFS='-'
427314ddf674Smrgset x $ac_cv_host
427414ddf674Smrgshift
427514ddf674Smrghost_cpu=$1
427614ddf674Smrghost_vendor=$2
427714ddf674Smrgshift; shift
427814ddf674Smrg# Remember, the first character of IFS is used to create $*,
427914ddf674Smrg# except with old shells:
428014ddf674Smrghost_os=$*
428114ddf674SmrgIFS=$ac_save_IFS
428214ddf674Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4283cacd992dSmrg
4284cacd992dSmrg
4285cacd992dSmrg
4286cacd992dSmrg
4287cacd992dSmrg
428814ddf674Smrgif  test "x$GCC" = xyes ; then
428914ddf674Smrg    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
429014ddf674Smrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
429114ddf674Smrg-Wbad-function-cast"
429214ddf674Smrg    case `$CC -dumpversion` in
429314ddf674Smrg    3.4.* | 4.*)
429414ddf674Smrg	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
429514ddf674Smrg	;;
429614ddf674Smrg    esac
4297cacd992dSmrgelse
429814ddf674Smrg    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
429914ddf674Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
430014ddf674Smrg  SUNCC="yes"
4301cacd992dSmrgelse
430214ddf674Smrg  SUNCC="no"
4303cacd992dSmrgfi
430414ddf674Smrg
430514ddf674Smrg    if test "x$SUNCC" = "xyes"; then
430614ddf674Smrg	CWARNFLAGS="-v"
4307cacd992dSmrg    fi
4308cacd992dSmrgfi
430914ddf674Smrg
431014ddf674Smrg# Check whether --enable-silent-rules was given.
431114ddf674Smrgif test "${enable_silent_rules+set}" = set; then :
431214ddf674Smrg  enableval=$enable_silent_rules;
4313cacd992dSmrgfi
4314cacd992dSmrg
431514ddf674Smrgcase $enable_silent_rules in
431614ddf674Smrgyes) AM_DEFAULT_VERBOSITY=0;;
431714ddf674Smrgno)  AM_DEFAULT_VERBOSITY=1;;
431814ddf674Smrg*)   AM_DEFAULT_VERBOSITY=0;;
431914ddf674Smrgesac
432014ddf674SmrgAM_BACKSLASH='\'
4321cacd992dSmrg
4322cacd992dSmrg
4323cacd992dSmrg
432414ddf674Smrg
432514ddf674Smrg
432614ddf674Smrg
432714ddf674Smrg
432814ddf674Smrg# Check whether --enable-strict-compilation was given.
432914ddf674Smrgif test "${enable_strict_compilation+set}" = set; then :
433014ddf674Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4331cacd992dSmrgelse
433214ddf674Smrg  STRICT_COMPILE=no
4333cacd992dSmrgfi
4334cacd992dSmrg
433514ddf674Smrgif test "x$STRICT_COMPILE" = "xyes"; then
433614ddf674Smrg	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
433714ddf674Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
433814ddf674Smrg  SUNCC="yes"
433914ddf674Smrgelse
434014ddf674Smrg  SUNCC="no"
434114ddf674Smrgfi
434214ddf674Smrg
434314ddf674Smrg	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
434414ddf674Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
434514ddf674Smrg  INTELCC="yes"
4346cacd992dSmrgelse
434714ddf674Smrg  INTELCC="no"
4348cacd992dSmrgfi
434914ddf674Smrg
435014ddf674Smrg	if test "x$GCC" = xyes ; then
435114ddf674Smrg		STRICT_CFLAGS="-pedantic -Werror"
435214ddf674Smrg	elif test "x$SUNCC" = "xyes"; then
435314ddf674Smrg		STRICT_CFLAGS="-errwarn"
435414ddf674Smrg    elif test "x$INTELCC" = "xyes"; then
435514ddf674Smrg		STRICT_CFLAGS="-Werror"
4356cacd992dSmrg	fi
435714ddf674Smrgfi
435814ddf674SmrgCWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4359cacd992dSmrg
4360cacd992dSmrg
4361cacd992dSmrg
4362cacd992dSmrg
436314ddf674Smrg# Check whether --with-release-version was given.
436414ddf674Smrgif test "${with_release_version+set}" = set; then :
436514ddf674Smrg  withval=$with_release_version; RELEASE_VERSION="$withval"
4366cacd992dSmrgelse
436714ddf674Smrg  RELEASE_VERSION=""
4368cacd992dSmrgfi
4369cacd992dSmrg
437014ddf674Smrg	if test "x$RELEASE_VERSION" != "x"; then
437114ddf674Smrg		PACKAGE="$PACKAGE-$RELEASE_VERSION"
437214ddf674Smrg		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
437314ddf674Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
437414ddf674Smrg$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4375cacd992dSmrg	fi
4376cacd992dSmrg
437714ddf674Smrgcat >>confdefs.h <<_ACEOF
437814ddf674Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
437914ddf674Smrg_ACEOF
4380cacd992dSmrg
438114ddf674Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
438214ddf674Smrg	if test "x$PVM" = "x"; then
438314ddf674Smrg		PVM="0"
438414ddf674Smrg	fi
4385cacd992dSmrg
438614ddf674Smrgcat >>confdefs.h <<_ACEOF
438714ddf674Smrg#define PACKAGE_VERSION_MINOR $PVM
438814ddf674Smrg_ACEOF
438914ddf674Smrg
439014ddf674Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
439114ddf674Smrg	if test "x$PVP" = "x"; then
439214ddf674Smrg		PVP="0"
439314ddf674Smrg	fi
439414ddf674Smrg
439514ddf674Smrgcat >>confdefs.h <<_ACEOF
439614ddf674Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
439714ddf674Smrg_ACEOF
439814ddf674Smrg
439914ddf674Smrg
440014ddf674Smrg
440114ddf674SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
440214ddf674Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
440314ddf674Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
440414ddf674Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
440514ddf674Smrg
440614ddf674Smrg
440714ddf674Smrg
440814ddf674Smrg
440914ddf674Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
441014ddf674SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
441114ddf674Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
441214ddf674Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
441314ddf674Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
441414ddf674Smrg
441514ddf674Smrg
441614ddf674Smrg
441714ddf674Smrg
441814ddf674Smrg
441914ddf674Smrgif test x$APP_MAN_SUFFIX = x    ; then
442014ddf674Smrg    APP_MAN_SUFFIX=1
4421cacd992dSmrgfi
442214ddf674Smrgif test x$APP_MAN_DIR = x    ; then
442314ddf674Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4424cacd992dSmrgfi
442514ddf674Smrg
442614ddf674Smrgif test x$LIB_MAN_SUFFIX = x    ; then
442714ddf674Smrg    LIB_MAN_SUFFIX=3
4428cacd992dSmrgfi
442914ddf674Smrgif test x$LIB_MAN_DIR = x    ; then
443014ddf674Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4431cacd992dSmrgfi
4432cacd992dSmrg
443314ddf674Smrgif test x$FILE_MAN_SUFFIX = x    ; then
443414ddf674Smrg    case $host_os in
443514ddf674Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
443614ddf674Smrg	*)		FILE_MAN_SUFFIX=5  ;;
443714ddf674Smrg    esac
443814ddf674Smrgfi
443914ddf674Smrgif test x$FILE_MAN_DIR = x    ; then
444014ddf674Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
444114ddf674Smrgfi
4442cacd992dSmrg
444314ddf674Smrgif test x$MISC_MAN_SUFFIX = x    ; then
444414ddf674Smrg    case $host_os in
444514ddf674Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
444614ddf674Smrg	*)		MISC_MAN_SUFFIX=7  ;;
444714ddf674Smrg    esac
444814ddf674Smrgfi
444914ddf674Smrgif test x$MISC_MAN_DIR = x    ; then
445014ddf674Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
445114ddf674Smrgfi
4452cacd992dSmrg
445314ddf674Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
445414ddf674Smrg    case $host_os in
445514ddf674Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
445614ddf674Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
445714ddf674Smrg    esac
445814ddf674Smrgfi
445914ddf674Smrgif test x$DRIVER_MAN_DIR = x    ; then
446014ddf674Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
446114ddf674Smrgfi
4462cacd992dSmrg
446314ddf674Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
446414ddf674Smrg    case $host_os in
446514ddf674Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
446614ddf674Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
446714ddf674Smrg    esac
446814ddf674Smrgfi
446914ddf674Smrgif test x$ADMIN_MAN_DIR = x    ; then
447014ddf674Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4471cacd992dSmrgfi
4472cacd992dSmrg
4473cacd992dSmrg
4474cacd992dSmrg
4475cacd992dSmrg
4476cacd992dSmrg
4477cacd992dSmrg
4478cacd992dSmrg
4479cacd992dSmrg
4480cacd992dSmrg
4481cacd992dSmrg
4482cacd992dSmrg
448314ddf674Smrg
448414ddf674Smrg
448514ddf674Smrg
448614ddf674Smrg
448714ddf674Smrg
448814ddf674Smrgac_config_headers="$ac_config_headers config.h"
448914ddf674Smrg
449014ddf674Smrg
449114ddf674Smrgac_ext=c
449214ddf674Smrgac_cpp='$CPP $CPPFLAGS'
449314ddf674Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
449414ddf674Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
449514ddf674Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
449614ddf674Smrgif test -n "$ac_tool_prefix"; then
449714ddf674Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
449814ddf674Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
449914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
450014ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
450114ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
450214ddf674Smrg  $as_echo_n "(cached) " >&6
4503cacd992dSmrgelse
450414ddf674Smrg  if test -n "$CC"; then
450514ddf674Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
450614ddf674Smrgelse
450714ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
450814ddf674Smrgfor as_dir in $PATH
450914ddf674Smrgdo
451014ddf674Smrg  IFS=$as_save_IFS
451114ddf674Smrg  test -z "$as_dir" && as_dir=.
451214ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
451314ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
451414ddf674Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
451514ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
451614ddf674Smrg    break 2
451714ddf674Smrg  fi
451814ddf674Smrgdone
451914ddf674Smrg  done
452014ddf674SmrgIFS=$as_save_IFS
452114ddf674Smrg
452214ddf674Smrgfi
452314ddf674Smrgfi
452414ddf674SmrgCC=$ac_cv_prog_CC
452514ddf674Smrgif test -n "$CC"; then
452614ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
452714ddf674Smrg$as_echo "$CC" >&6; }
452814ddf674Smrgelse
452914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
453014ddf674Smrg$as_echo "no" >&6; }
453114ddf674Smrgfi
453214ddf674Smrg
453314ddf674Smrg
453414ddf674Smrgfi
453514ddf674Smrgif test -z "$ac_cv_prog_CC"; then
453614ddf674Smrg  ac_ct_CC=$CC
453714ddf674Smrg  # Extract the first word of "gcc", so it can be a program name with args.
453814ddf674Smrgset dummy gcc; ac_word=$2
453914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
454014ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
454114ddf674Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
454214ddf674Smrg  $as_echo_n "(cached) " >&6
454314ddf674Smrgelse
454414ddf674Smrg  if test -n "$ac_ct_CC"; then
454514ddf674Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
454614ddf674Smrgelse
454714ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
454814ddf674Smrgfor as_dir in $PATH
454914ddf674Smrgdo
455014ddf674Smrg  IFS=$as_save_IFS
455114ddf674Smrg  test -z "$as_dir" && as_dir=.
455214ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
455314ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
455414ddf674Smrg    ac_cv_prog_ac_ct_CC="gcc"
455514ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
455614ddf674Smrg    break 2
455714ddf674Smrg  fi
455814ddf674Smrgdone
455914ddf674Smrg  done
456014ddf674SmrgIFS=$as_save_IFS
456114ddf674Smrg
456214ddf674Smrgfi
456314ddf674Smrgfi
456414ddf674Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
456514ddf674Smrgif test -n "$ac_ct_CC"; then
456614ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
456714ddf674Smrg$as_echo "$ac_ct_CC" >&6; }
456814ddf674Smrgelse
456914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
457014ddf674Smrg$as_echo "no" >&6; }
457114ddf674Smrgfi
457214ddf674Smrg
457314ddf674Smrg  if test "x$ac_ct_CC" = x; then
457414ddf674Smrg    CC=""
457514ddf674Smrg  else
457614ddf674Smrg    case $cross_compiling:$ac_tool_warned in
457714ddf674Smrgyes:)
457814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
457914ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
458014ddf674Smrgac_tool_warned=yes ;;
458114ddf674Smrgesac
458214ddf674Smrg    CC=$ac_ct_CC
458314ddf674Smrg  fi
458414ddf674Smrgelse
458514ddf674Smrg  CC="$ac_cv_prog_CC"
4586cacd992dSmrgfi
4587cacd992dSmrg
458814ddf674Smrgif test -z "$CC"; then
458914ddf674Smrg          if test -n "$ac_tool_prefix"; then
459014ddf674Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
459114ddf674Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
459214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
459314ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
459414ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
459514ddf674Smrg  $as_echo_n "(cached) " >&6
459614ddf674Smrgelse
459714ddf674Smrg  if test -n "$CC"; then
459814ddf674Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
459914ddf674Smrgelse
460014ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
460114ddf674Smrgfor as_dir in $PATH
460214ddf674Smrgdo
460314ddf674Smrg  IFS=$as_save_IFS
460414ddf674Smrg  test -z "$as_dir" && as_dir=.
460514ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
460614ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
460714ddf674Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
460814ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
460914ddf674Smrg    break 2
461014ddf674Smrg  fi
461114ddf674Smrgdone
461214ddf674Smrg  done
461314ddf674SmrgIFS=$as_save_IFS
4614cacd992dSmrg
461514ddf674Smrgfi
461614ddf674Smrgfi
461714ddf674SmrgCC=$ac_cv_prog_CC
461814ddf674Smrgif test -n "$CC"; then
461914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
462014ddf674Smrg$as_echo "$CC" >&6; }
462114ddf674Smrgelse
462214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
462314ddf674Smrg$as_echo "no" >&6; }
462414ddf674Smrgfi
4625cacd992dSmrg
4626cacd992dSmrg
462714ddf674Smrg  fi
462814ddf674Smrgfi
462914ddf674Smrgif test -z "$CC"; then
463014ddf674Smrg  # Extract the first word of "cc", so it can be a program name with args.
463114ddf674Smrgset dummy cc; ac_word=$2
463214ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
463314ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
463414ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
463514ddf674Smrg  $as_echo_n "(cached) " >&6
463614ddf674Smrgelse
463714ddf674Smrg  if test -n "$CC"; then
463814ddf674Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
463914ddf674Smrgelse
464014ddf674Smrg  ac_prog_rejected=no
464114ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
464214ddf674Smrgfor as_dir in $PATH
464314ddf674Smrgdo
464414ddf674Smrg  IFS=$as_save_IFS
464514ddf674Smrg  test -z "$as_dir" && as_dir=.
464614ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
464714ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
464814ddf674Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
464914ddf674Smrg       ac_prog_rejected=yes
465014ddf674Smrg       continue
465114ddf674Smrg     fi
465214ddf674Smrg    ac_cv_prog_CC="cc"
465314ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
465414ddf674Smrg    break 2
465514ddf674Smrg  fi
465614ddf674Smrgdone
465714ddf674Smrg  done
465814ddf674SmrgIFS=$as_save_IFS
4659cacd992dSmrg
466014ddf674Smrgif test $ac_prog_rejected = yes; then
466114ddf674Smrg  # We found a bogon in the path, so make sure we never use it.
466214ddf674Smrg  set dummy $ac_cv_prog_CC
466314ddf674Smrg  shift
466414ddf674Smrg  if test $# != 0; then
466514ddf674Smrg    # We chose a different compiler from the bogus one.
466614ddf674Smrg    # However, it has the same basename, so the bogon will be chosen
466714ddf674Smrg    # first if we set CC to just the basename; use the full file name.
466814ddf674Smrg    shift
466914ddf674Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
467014ddf674Smrg  fi
467114ddf674Smrgfi
467214ddf674Smrgfi
467314ddf674Smrgfi
467414ddf674SmrgCC=$ac_cv_prog_CC
467514ddf674Smrgif test -n "$CC"; then
467614ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
467714ddf674Smrg$as_echo "$CC" >&6; }
467814ddf674Smrgelse
467914ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
468014ddf674Smrg$as_echo "no" >&6; }
468114ddf674Smrgfi
4682cacd992dSmrg
4683cacd992dSmrg
468414ddf674Smrgfi
468514ddf674Smrgif test -z "$CC"; then
468614ddf674Smrg  if test -n "$ac_tool_prefix"; then
468714ddf674Smrg  for ac_prog in cl.exe
468814ddf674Smrg  do
468914ddf674Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
469014ddf674Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
469114ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
469214ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
469314ddf674Smrgif test "${ac_cv_prog_CC+set}" = set; then :
469414ddf674Smrg  $as_echo_n "(cached) " >&6
469514ddf674Smrgelse
469614ddf674Smrg  if test -n "$CC"; then
469714ddf674Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
4698cacd992dSmrgelse
469914ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
470014ddf674Smrgfor as_dir in $PATH
470114ddf674Smrgdo
470214ddf674Smrg  IFS=$as_save_IFS
470314ddf674Smrg  test -z "$as_dir" && as_dir=.
470414ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
470514ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
470614ddf674Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
470714ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
470814ddf674Smrg    break 2
470914ddf674Smrg  fi
471014ddf674Smrgdone
471114ddf674Smrg  done
471214ddf674SmrgIFS=$as_save_IFS
471314ddf674Smrg
471414ddf674Smrgfi
471514ddf674Smrgfi
471614ddf674SmrgCC=$ac_cv_prog_CC
471714ddf674Smrgif test -n "$CC"; then
471814ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
471914ddf674Smrg$as_echo "$CC" >&6; }
472014ddf674Smrgelse
472114ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
472214ddf674Smrg$as_echo "no" >&6; }
472314ddf674Smrgfi
472414ddf674Smrg
472514ddf674Smrg
472614ddf674Smrg    test -n "$CC" && break
472714ddf674Smrg  done
472814ddf674Smrgfi
472914ddf674Smrgif test -z "$CC"; then
473014ddf674Smrg  ac_ct_CC=$CC
473114ddf674Smrg  for ac_prog in cl.exe
473214ddf674Smrgdo
473314ddf674Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
473414ddf674Smrgset dummy $ac_prog; ac_word=$2
473514ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
473614ddf674Smrg$as_echo_n "checking for $ac_word... " >&6; }
473714ddf674Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
473814ddf674Smrg  $as_echo_n "(cached) " >&6
473914ddf674Smrgelse
474014ddf674Smrg  if test -n "$ac_ct_CC"; then
474114ddf674Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
474214ddf674Smrgelse
474314ddf674Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
474414ddf674Smrgfor as_dir in $PATH
474514ddf674Smrgdo
474614ddf674Smrg  IFS=$as_save_IFS
474714ddf674Smrg  test -z "$as_dir" && as_dir=.
474814ddf674Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
474914ddf674Smrg  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
475014ddf674Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
475114ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
475214ddf674Smrg    break 2
475314ddf674Smrg  fi
475414ddf674Smrgdone
475514ddf674Smrg  done
475614ddf674SmrgIFS=$as_save_IFS
475714ddf674Smrg
475814ddf674Smrgfi
475914ddf674Smrgfi
476014ddf674Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
476114ddf674Smrgif test -n "$ac_ct_CC"; then
476214ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
476314ddf674Smrg$as_echo "$ac_ct_CC" >&6; }
476414ddf674Smrgelse
476514ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
476614ddf674Smrg$as_echo "no" >&6; }
476714ddf674Smrgfi
476814ddf674Smrg
476914ddf674Smrg
477014ddf674Smrg  test -n "$ac_ct_CC" && break
477114ddf674Smrgdone
477214ddf674Smrg
477314ddf674Smrg  if test "x$ac_ct_CC" = x; then
477414ddf674Smrg    CC=""
477514ddf674Smrg  else
477614ddf674Smrg    case $cross_compiling:$ac_tool_warned in
477714ddf674Smrgyes:)
477814ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
477914ddf674Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
478014ddf674Smrgac_tool_warned=yes ;;
478114ddf674Smrgesac
478214ddf674Smrg    CC=$ac_ct_CC
478314ddf674Smrg  fi
478414ddf674Smrgfi
478514ddf674Smrg
478614ddf674Smrgfi
478714ddf674Smrg
478814ddf674Smrg
478914ddf674Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
479014ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
479114ddf674Smrgas_fn_error "no acceptable C compiler found in \$PATH
479214ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }
479314ddf674Smrg
479414ddf674Smrg# Provide some information about the compiler.
479514ddf674Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
479614ddf674Smrgset X $ac_compile
479714ddf674Smrgac_compiler=$2
479814ddf674Smrgfor ac_option in --version -v -V -qversion; do
479914ddf674Smrg  { { ac_try="$ac_compiler $ac_option >&5"
480014ddf674Smrgcase "(($ac_try" in
480114ddf674Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
480214ddf674Smrg  *) ac_try_echo=$ac_try;;
480314ddf674Smrgesac
480414ddf674Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
480514ddf674Smrg$as_echo "$ac_try_echo"; } >&5
480614ddf674Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
480714ddf674Smrg  ac_status=$?
480814ddf674Smrg  if test -s conftest.err; then
480914ddf674Smrg    sed '10a\
481014ddf674Smrg... rest of stderr output deleted ...
481114ddf674Smrg         10q' conftest.err >conftest.er1
481214ddf674Smrg    cat conftest.er1 >&5
481314ddf674Smrg  fi
481414ddf674Smrg  rm -f conftest.er1 conftest.err
481514ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
481614ddf674Smrg  test $ac_status = 0; }
481714ddf674Smrgdone
481814ddf674Smrg
481914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
482014ddf674Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
482114ddf674Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then :
482214ddf674Smrg  $as_echo_n "(cached) " >&6
482314ddf674Smrgelse
482414ddf674Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
482514ddf674Smrg/* end confdefs.h.  */
482614ddf674Smrg
482714ddf674Smrgint
482814ddf674Smrgmain ()
482914ddf674Smrg{
483014ddf674Smrg#ifndef __GNUC__
483114ddf674Smrg       choke me
483214ddf674Smrg#endif
483314ddf674Smrg
483414ddf674Smrg  ;
483514ddf674Smrg  return 0;
483614ddf674Smrg}
483714ddf674Smrg_ACEOF
483814ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
483914ddf674Smrg  ac_compiler_gnu=yes
484014ddf674Smrgelse
484114ddf674Smrg  ac_compiler_gnu=no
484214ddf674Smrgfi
484314ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
484414ddf674Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
484514ddf674Smrg
484614ddf674Smrgfi
484714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
484814ddf674Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
484914ddf674Smrgif test $ac_compiler_gnu = yes; then
485014ddf674Smrg  GCC=yes
485114ddf674Smrgelse
485214ddf674Smrg  GCC=
485314ddf674Smrgfi
485414ddf674Smrgac_test_CFLAGS=${CFLAGS+set}
485514ddf674Smrgac_save_CFLAGS=$CFLAGS
485614ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
485714ddf674Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
485814ddf674Smrgif test "${ac_cv_prog_cc_g+set}" = set; then :
485914ddf674Smrg  $as_echo_n "(cached) " >&6
486014ddf674Smrgelse
486114ddf674Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
486214ddf674Smrg   ac_c_werror_flag=yes
486314ddf674Smrg   ac_cv_prog_cc_g=no
486414ddf674Smrg   CFLAGS="-g"
486514ddf674Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
486614ddf674Smrg/* end confdefs.h.  */
486714ddf674Smrg
486814ddf674Smrgint
486914ddf674Smrgmain ()
487014ddf674Smrg{
487114ddf674Smrg
487214ddf674Smrg  ;
487314ddf674Smrg  return 0;
487414ddf674Smrg}
487514ddf674Smrg_ACEOF
487614ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
487714ddf674Smrg  ac_cv_prog_cc_g=yes
487814ddf674Smrgelse
487914ddf674Smrg  CFLAGS=""
488014ddf674Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
488114ddf674Smrg/* end confdefs.h.  */
488214ddf674Smrg
488314ddf674Smrgint
488414ddf674Smrgmain ()
488514ddf674Smrg{
488614ddf674Smrg
488714ddf674Smrg  ;
488814ddf674Smrg  return 0;
488914ddf674Smrg}
489014ddf674Smrg_ACEOF
489114ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
489214ddf674Smrg
489314ddf674Smrgelse
489414ddf674Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
489514ddf674Smrg	 CFLAGS="-g"
489614ddf674Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
489714ddf674Smrg/* end confdefs.h.  */
489814ddf674Smrg
489914ddf674Smrgint
490014ddf674Smrgmain ()
490114ddf674Smrg{
490214ddf674Smrg
490314ddf674Smrg  ;
490414ddf674Smrg  return 0;
490514ddf674Smrg}
490614ddf674Smrg_ACEOF
490714ddf674Smrgif ac_fn_c_try_compile "$LINENO"; then :
490814ddf674Smrg  ac_cv_prog_cc_g=yes
490914ddf674Smrgfi
491014ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
491114ddf674Smrgfi
491214ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
491314ddf674Smrgfi
491414ddf674Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
491514ddf674Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
491614ddf674Smrgfi
491714ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
491814ddf674Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
491914ddf674Smrgif test "$ac_test_CFLAGS" = set; then
492014ddf674Smrg  CFLAGS=$ac_save_CFLAGS
492114ddf674Smrgelif test $ac_cv_prog_cc_g = yes; then
492214ddf674Smrg  if test "$GCC" = yes; then
492314ddf674Smrg    CFLAGS="-g -O2"
492414ddf674Smrg  else
492514ddf674Smrg    CFLAGS="-g"
492614ddf674Smrg  fi
492714ddf674Smrgelse
492814ddf674Smrg  if test "$GCC" = yes; then
492914ddf674Smrg    CFLAGS="-O2"
493014ddf674Smrg  else
493114ddf674Smrg    CFLAGS=
493214ddf674Smrg  fi
493314ddf674Smrgfi
493414ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
493514ddf674Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
493614ddf674Smrgif test "${ac_cv_prog_cc_c89+set}" = set; then :
493714ddf674Smrg  $as_echo_n "(cached) " >&6
493814ddf674Smrgelse
493914ddf674Smrg  ac_cv_prog_cc_c89=no
494014ddf674Smrgac_save_CC=$CC
494114ddf674Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
494214ddf674Smrg/* end confdefs.h.  */
494314ddf674Smrg#include <stdarg.h>
494414ddf674Smrg#include <stdio.h>
494514ddf674Smrg#include <sys/types.h>
494614ddf674Smrg#include <sys/stat.h>
494714ddf674Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
494814ddf674Smrgstruct buf { int x; };
494914ddf674SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
495014ddf674Smrgstatic char *e (p, i)
495114ddf674Smrg     char **p;
495214ddf674Smrg     int i;
495314ddf674Smrg{
495414ddf674Smrg  return p[i];
495514ddf674Smrg}
495614ddf674Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
495714ddf674Smrg{
495814ddf674Smrg  char *s;
495914ddf674Smrg  va_list v;
496014ddf674Smrg  va_start (v,p);
496114ddf674Smrg  s = g (p, va_arg (v,int));
496214ddf674Smrg  va_end (v);
496314ddf674Smrg  return s;
496414ddf674Smrg}
496514ddf674Smrg
496614ddf674Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
496714ddf674Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
496814ddf674Smrg   These don't provoke an error unfortunately, instead are silently treated
496914ddf674Smrg   as 'x'.  The following induces an error, until -std is added to get
497014ddf674Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
497114ddf674Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
497214ddf674Smrg   that's true only with -std.  */
497314ddf674Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
497414ddf674Smrg
497514ddf674Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
497614ddf674Smrg   inside strings and character constants.  */
497714ddf674Smrg#define FOO(x) 'x'
497814ddf674Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
497914ddf674Smrg
498014ddf674Smrgint test (int i, double x);
498114ddf674Smrgstruct s1 {int (*f) (int a);};
498214ddf674Smrgstruct s2 {int (*f) (double a);};
498314ddf674Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
498414ddf674Smrgint argc;
498514ddf674Smrgchar **argv;
498614ddf674Smrgint
498714ddf674Smrgmain ()
498814ddf674Smrg{
498914ddf674Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
499014ddf674Smrg  ;
499114ddf674Smrg  return 0;
499214ddf674Smrg}
499314ddf674Smrg_ACEOF
499414ddf674Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
499514ddf674Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
499614ddf674Smrgdo
499714ddf674Smrg  CC="$ac_save_CC $ac_arg"
499814ddf674Smrg  if ac_fn_c_try_compile "$LINENO"; then :
499914ddf674Smrg  ac_cv_prog_cc_c89=$ac_arg
500014ddf674Smrgfi
500114ddf674Smrgrm -f core conftest.err conftest.$ac_objext
500214ddf674Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
500314ddf674Smrgdone
500414ddf674Smrgrm -f conftest.$ac_ext
500514ddf674SmrgCC=$ac_save_CC
500614ddf674Smrg
500714ddf674Smrgfi
500814ddf674Smrg# AC_CACHE_VAL
500914ddf674Smrgcase "x$ac_cv_prog_cc_c89" in
501014ddf674Smrg  x)
501114ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
501214ddf674Smrg$as_echo "none needed" >&6; } ;;
501314ddf674Smrg  xno)
501414ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
501514ddf674Smrg$as_echo "unsupported" >&6; } ;;
501614ddf674Smrg  *)
501714ddf674Smrg    CC="$CC $ac_cv_prog_cc_c89"
501814ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
501914ddf674Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
502014ddf674Smrgesac
502114ddf674Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
502214ddf674Smrg
502314ddf674Smrgfi
502414ddf674Smrg
502514ddf674Smrgac_ext=c
502614ddf674Smrgac_cpp='$CPP $CPPFLAGS'
502714ddf674Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
502814ddf674Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
502914ddf674Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
503014ddf674Smrg
503114ddf674Smrgdepcc="$CC"   am_compiler_list=
503214ddf674Smrg
503314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
503414ddf674Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
503514ddf674Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
503614ddf674Smrg  $as_echo_n "(cached) " >&6
503714ddf674Smrgelse
503814ddf674Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
503914ddf674Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
504014ddf674Smrg  # making bogus files that we don't know about and never remove.  For
504114ddf674Smrg  # instance it was reported that on HP-UX the gcc test will end up
504214ddf674Smrg  # making a dummy file named `D' -- because `-MD' means `put the output
504314ddf674Smrg  # in D'.
504414ddf674Smrg  mkdir conftest.dir
504514ddf674Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
504614ddf674Smrg  # using a relative directory.
504714ddf674Smrg  cp "$am_depcomp" conftest.dir
504814ddf674Smrg  cd conftest.dir
504914ddf674Smrg  # We will build objects and dependencies in a subdirectory because
505014ddf674Smrg  # it helps to detect inapplicable dependency modes.  For instance
505114ddf674Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
505214ddf674Smrg  # side effect of compilation, but ICC will put the dependencies in
505314ddf674Smrg  # the current directory while Tru64 will put them in the object
505414ddf674Smrg  # directory.
505514ddf674Smrg  mkdir sub
505614ddf674Smrg
505714ddf674Smrg  am_cv_CC_dependencies_compiler_type=none
505814ddf674Smrg  if test "$am_compiler_list" = ""; then
505914ddf674Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
506014ddf674Smrg  fi
506114ddf674Smrg  am__universal=false
506214ddf674Smrg  case " $depcc " in #(
506314ddf674Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
506414ddf674Smrg     esac
506514ddf674Smrg
506614ddf674Smrg  for depmode in $am_compiler_list; do
506714ddf674Smrg    # Setup a source with many dependencies, because some compilers
506814ddf674Smrg    # like to wrap large dependency lists on column 80 (with \), and
506914ddf674Smrg    # we should not choose a depcomp mode which is confused by this.
507014ddf674Smrg    #
507114ddf674Smrg    # We need to recreate these files for each test, as the compiler may
507214ddf674Smrg    # overwrite some of them when testing with obscure command lines.
507314ddf674Smrg    # This happens at least with the AIX C compiler.
507414ddf674Smrg    : > sub/conftest.c
507514ddf674Smrg    for i in 1 2 3 4 5 6; do
507614ddf674Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
507714ddf674Smrg      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
507814ddf674Smrg      # Solaris 8's {/usr,}/bin/sh.
507914ddf674Smrg      touch sub/conftst$i.h
508014ddf674Smrg    done
508114ddf674Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
508214ddf674Smrg
508314ddf674Smrg    # We check with `-c' and `-o' for the sake of the "dashmstdout"
508414ddf674Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
508514ddf674Smrg    # handle `-M -o', and we need to detect this.  Also, some Intel
508614ddf674Smrg    # versions had trouble with output in subdirs
508714ddf674Smrg    am__obj=sub/conftest.${OBJEXT-o}
508814ddf674Smrg    am__minus_obj="-o $am__obj"
508914ddf674Smrg    case $depmode in
509014ddf674Smrg    gcc)
509114ddf674Smrg      # This depmode causes a compiler race in universal mode.
509214ddf674Smrg      test "$am__universal" = false || continue
509314ddf674Smrg      ;;
509414ddf674Smrg    nosideeffect)
509514ddf674Smrg      # after this tag, mechanisms are not by side-effect, so they'll
509614ddf674Smrg      # only be used when explicitly requested
509714ddf674Smrg      if test "x$enable_dependency_tracking" = xyes; then
509814ddf674Smrg	continue
509914ddf674Smrg      else
510014ddf674Smrg	break
510114ddf674Smrg      fi
510214ddf674Smrg      ;;
510314ddf674Smrg    msvisualcpp | msvcmsys)
510414ddf674Smrg      # This compiler won't grok `-c -o', but also, the minuso test has
510514ddf674Smrg      # not run yet.  These depmodes are late enough in the game, and
510614ddf674Smrg      # so weak that their functioning should not be impacted.
510714ddf674Smrg      am__obj=conftest.${OBJEXT-o}
510814ddf674Smrg      am__minus_obj=
510914ddf674Smrg      ;;
511014ddf674Smrg    none) break ;;
511114ddf674Smrg    esac
511214ddf674Smrg    if depmode=$depmode \
511314ddf674Smrg       source=sub/conftest.c object=$am__obj \
511414ddf674Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
511514ddf674Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
511614ddf674Smrg         >/dev/null 2>conftest.err &&
511714ddf674Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
511814ddf674Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
511914ddf674Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
512014ddf674Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
512114ddf674Smrg      # icc doesn't choke on unknown options, it will just issue warnings
512214ddf674Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
512314ddf674Smrg      # that says an option was ignored or not supported.
512414ddf674Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
512514ddf674Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
512614ddf674Smrg      # The diagnosis changed in icc 8.0:
512714ddf674Smrg      #   icc: Command line remark: option '-MP' not supported
512814ddf674Smrg      if (grep 'ignoring option' conftest.err ||
512914ddf674Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
513014ddf674Smrg        am_cv_CC_dependencies_compiler_type=$depmode
513114ddf674Smrg        break
513214ddf674Smrg      fi
513314ddf674Smrg    fi
513414ddf674Smrg  done
513514ddf674Smrg
513614ddf674Smrg  cd ..
513714ddf674Smrg  rm -rf conftest.dir
513814ddf674Smrgelse
513914ddf674Smrg  am_cv_CC_dependencies_compiler_type=none
514014ddf674Smrgfi
514114ddf674Smrg
514214ddf674Smrgfi
514314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
514414ddf674Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
514514ddf674SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
514614ddf674Smrg
514714ddf674Smrg if
514814ddf674Smrg  test "x$enable_dependency_tracking" != xno \
514914ddf674Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
515014ddf674Smrg  am__fastdepCC_TRUE=
515114ddf674Smrg  am__fastdepCC_FALSE='#'
515214ddf674Smrgelse
515314ddf674Smrg  am__fastdepCC_TRUE='#'
515414ddf674Smrg  am__fastdepCC_FALSE=
515514ddf674Smrgfi
515614ddf674Smrg
515714ddf674Smrg
5158cacd992dSmrg
5159cacd992dSmrg
516014ddf674Smrg# Checks for pkg-config packages
5161cacd992dSmrg
5162cacd992dSmrgpkg_failed=no
516314ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVIDTUNE" >&5
516414ddf674Smrg$as_echo_n "checking for XVIDTUNE... " >&6; }
516514ddf674Smrg
516614ddf674Smrgif test -n "$XVIDTUNE_CFLAGS"; then
516714ddf674Smrg    pkg_cv_XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS"
516814ddf674Smrg elif test -n "$PKG_CONFIG"; then
516914ddf674Smrg    if test -n "$PKG_CONFIG" && \
517014ddf674Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
517114ddf674Smrg  ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
5172cacd992dSmrg  ac_status=$?
517314ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
517414ddf674Smrg  test $ac_status = 0; }; then
517514ddf674Smrg  pkg_cv_XVIDTUNE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
5176cacd992dSmrgelse
5177cacd992dSmrg  pkg_failed=yes
5178cacd992dSmrgfi
517914ddf674Smrg else
518014ddf674Smrg    pkg_failed=untried
5181cacd992dSmrgfi
518214ddf674Smrgif test -n "$XVIDTUNE_LIBS"; then
518314ddf674Smrg    pkg_cv_XVIDTUNE_LIBS="$XVIDTUNE_LIBS"
518414ddf674Smrg elif test -n "$PKG_CONFIG"; then
518514ddf674Smrg    if test -n "$PKG_CONFIG" && \
518614ddf674Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm xt xaw7 xmu x11\""; } >&5
518714ddf674Smrg  ($PKG_CONFIG --exists --print-errors "xxf86vm xt xaw7 xmu x11") 2>&5
5188cacd992dSmrg  ac_status=$?
518914ddf674Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
519014ddf674Smrg  test $ac_status = 0; }; then
519114ddf674Smrg  pkg_cv_XVIDTUNE_LIBS=`$PKG_CONFIG --libs "xxf86vm xt xaw7 xmu x11" 2>/dev/null`
5192cacd992dSmrgelse
5193cacd992dSmrg  pkg_failed=yes
5194cacd992dSmrgfi
519514ddf674Smrg else
519614ddf674Smrg    pkg_failed=untried
5197cacd992dSmrgfi
5198cacd992dSmrg
5199cacd992dSmrg
5200cacd992dSmrg
5201cacd992dSmrgif test $pkg_failed = yes; then
5202cacd992dSmrg
5203cacd992dSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5204cacd992dSmrg        _pkg_short_errors_supported=yes
5205cacd992dSmrgelse
5206cacd992dSmrg        _pkg_short_errors_supported=no
5207cacd992dSmrgfi
5208cacd992dSmrg        if test $_pkg_short_errors_supported = yes; then
520914ddf674Smrg	        XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1`
5210cacd992dSmrg        else
521114ddf674Smrg	        XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86vm xt xaw7 xmu x11" 2>&1`
5212cacd992dSmrg        fi
5213cacd992dSmrg	# Put the nasty error message in config.log where it belongs
521414ddf674Smrg	echo "$XVIDTUNE_PKG_ERRORS" >&5
5215cacd992dSmrg
521614ddf674Smrg	as_fn_error "Package requirements (xxf86vm xt xaw7 xmu x11) were not met:
5217cacd992dSmrg
521814ddf674Smrg$XVIDTUNE_PKG_ERRORS
5219cacd992dSmrg
5220cacd992dSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
5221cacd992dSmrginstalled software in a non-standard prefix.
5222cacd992dSmrg
522314ddf674SmrgAlternatively, you may set the environment variables XVIDTUNE_CFLAGS
522414ddf674Smrgand XVIDTUNE_LIBS to avoid the need to call pkg-config.
5225cacd992dSmrgSee the pkg-config man page for more details.
522614ddf674Smrg" "$LINENO" 5
5227cacd992dSmrgelif test $pkg_failed = untried; then
522814ddf674Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
522914ddf674Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
523014ddf674Smrgas_fn_error "The pkg-config script could not be found or is too old.  Make sure it
5231cacd992dSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
5232cacd992dSmrgpath to pkg-config.
5233cacd992dSmrg
523414ddf674SmrgAlternatively, you may set the environment variables XVIDTUNE_CFLAGS
523514ddf674Smrgand XVIDTUNE_LIBS to avoid the need to call pkg-config.
5236cacd992dSmrgSee the pkg-config man page for more details.
5237cacd992dSmrg
523814ddf674SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
523914ddf674SmrgSee \`config.log' for more details." "$LINENO" 5; }
5240cacd992dSmrgelse
524114ddf674Smrg	XVIDTUNE_CFLAGS=$pkg_cv_XVIDTUNE_CFLAGS
524214ddf674Smrg	XVIDTUNE_LIBS=$pkg_cv_XVIDTUNE_LIBS
524314ddf674Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
524414ddf674Smrg$as_echo "yes" >&6; }
5245cacd992dSmrg	:
5246cacd992dSmrgfi
524714ddf674Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
5248cacd992dSmrg
524914ddf674Smrg# Check whether --with-appdefaultdir was given.
525014ddf674Smrgif test "${with_appdefaultdir+set}" = set; then :
525114ddf674Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
5252cacd992dSmrgelse
525314ddf674Smrg  appdefaultdir="${xt_appdefaultdir}"
5254cacd992dSmrgfi
5255cacd992dSmrg
5256cacd992dSmrg
5257cacd992dSmrg
5258cacd992dSmrg
5259cacd992dSmrg
5260cacd992dSmrg
526114ddf674Smrgac_config_files="$ac_config_files Makefile"
5262cacd992dSmrg
5263cacd992dSmrgcat >confcache <<\_ACEOF
5264cacd992dSmrg# This file is a shell script that caches the results of configure
5265cacd992dSmrg# tests run on this system so they can be shared between configure
5266cacd992dSmrg# scripts and configure runs, see configure's option --config-cache.
5267cacd992dSmrg# It is not useful on other systems.  If it contains results you don't
5268cacd992dSmrg# want to keep, you may remove or edit it.
5269cacd992dSmrg#
5270cacd992dSmrg# config.status only pays attention to the cache file if you give it
5271cacd992dSmrg# the --recheck option to rerun configure.
5272cacd992dSmrg#
5273cacd992dSmrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
5274cacd992dSmrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
5275cacd992dSmrg# following values.
5276cacd992dSmrg
5277cacd992dSmrg_ACEOF
5278cacd992dSmrg
5279cacd992dSmrg# The following way of writing the cache mishandles newlines in values,
5280cacd992dSmrg# but we know of no workaround that is simple, portable, and efficient.
528114ddf674Smrg# So, we kill variables containing newlines.
5282cacd992dSmrg# Ultrix sh set writes to stderr and can't be redirected directly,
5283cacd992dSmrg# and sets the high bit in the cache file unless we assign to the vars.
528414ddf674Smrg(
528514ddf674Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
528614ddf674Smrg    eval ac_val=\$$ac_var
528714ddf674Smrg    case $ac_val in #(
528814ddf674Smrg    *${as_nl}*)
528914ddf674Smrg      case $ac_var in #(
529014ddf674Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
529114ddf674Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
529214ddf674Smrg      esac
529314ddf674Smrg      case $ac_var in #(
529414ddf674Smrg      _ | IFS | as_nl) ;; #(
529514ddf674Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
529614ddf674Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
529714ddf674Smrg      esac ;;
529814ddf674Smrg    esac
529914ddf674Smrg  done
530014ddf674Smrg
5301cacd992dSmrg  (set) 2>&1 |
530214ddf674Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
530314ddf674Smrg    *${as_nl}ac_space=\ *)
530414ddf674Smrg      # `set' does not quote correctly, so add quotes: double-quote
530514ddf674Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
5306cacd992dSmrg      sed -n \
5307cacd992dSmrg	"s/'/'\\\\''/g;
5308cacd992dSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
530914ddf674Smrg      ;; #(
5310cacd992dSmrg    *)
5311cacd992dSmrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
531214ddf674Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5313cacd992dSmrg      ;;
531414ddf674Smrg    esac |
531514ddf674Smrg    sort
531614ddf674Smrg) |
5317cacd992dSmrg  sed '
531814ddf674Smrg     /^ac_cv_env_/b end
5319cacd992dSmrg     t clear
532014ddf674Smrg     :clear
5321cacd992dSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5322cacd992dSmrg     t end
532314ddf674Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
532414ddf674Smrg     :end' >>confcache
532514ddf674Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
532614ddf674Smrg  if test -w "$cache_file"; then
532714ddf674Smrg    test "x$cache_file" != "x/dev/null" &&
532814ddf674Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
532914ddf674Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
5330cacd992dSmrg    cat confcache >$cache_file
5331cacd992dSmrg  else
533214ddf674Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
533314ddf674Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5334cacd992dSmrg  fi
5335cacd992dSmrgfi
5336cacd992dSmrgrm -f confcache
5337cacd992dSmrg
5338cacd992dSmrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
5339cacd992dSmrg# Let make expand exec_prefix.
5340cacd992dSmrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5341cacd992dSmrg
5342cacd992dSmrgDEFS=-DHAVE_CONFIG_H
5343cacd992dSmrg
5344cacd992dSmrgac_libobjs=
5345cacd992dSmrgac_ltlibobjs=
5346cacd992dSmrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5347cacd992dSmrg  # 1. Remove the extension, and $U if already installed.
534814ddf674Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
534914ddf674Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
535014ddf674Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
535114ddf674Smrg  #    will be set to the directory where LIBOBJS objects are built.
535214ddf674Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
535314ddf674Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5354cacd992dSmrgdone
5355cacd992dSmrgLIBOBJS=$ac_libobjs
5356cacd992dSmrg
5357cacd992dSmrgLTLIBOBJS=$ac_ltlibobjs
5358cacd992dSmrg
5359cacd992dSmrg
536014ddf674Smrg if test -n "$EXEEXT"; then
536114ddf674Smrg  am__EXEEXT_TRUE=
536214ddf674Smrg  am__EXEEXT_FALSE='#'
536314ddf674Smrgelse
536414ddf674Smrg  am__EXEEXT_TRUE='#'
536514ddf674Smrg  am__EXEEXT_FALSE=
536614ddf674Smrgfi
536714ddf674Smrg
5368cacd992dSmrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
536914ddf674Smrg  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
537014ddf674SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5371cacd992dSmrgfi
5372cacd992dSmrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
537314ddf674Smrg  as_fn_error "conditional \"AMDEP\" was never defined.
537414ddf674SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5375cacd992dSmrgfi
5376cacd992dSmrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
537714ddf674Smrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
537814ddf674SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5379cacd992dSmrgfi
538014ddf674Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
538114ddf674Smrg  as_fn_error "conditional \"am__fastdepCC\" was never defined.
538214ddf674SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
5383cacd992dSmrgfi
5384cacd992dSmrg
5385cacd992dSmrg: ${CONFIG_STATUS=./config.status}
538614ddf674Smrgac_write_fail=0
5387cacd992dSmrgac_clean_files_save=$ac_clean_files
5388cacd992dSmrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
538914ddf674Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
539014ddf674Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
539114ddf674Smrgas_write_fail=0
539214ddf674Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5393cacd992dSmrg#! $SHELL
5394cacd992dSmrg# Generated by $as_me.
5395cacd992dSmrg# Run this file to recreate the current configuration.
5396cacd992dSmrg# Compiler output produced by configure, useful for debugging
5397cacd992dSmrg# configure, is in config.log if it exists.
5398cacd992dSmrg
5399cacd992dSmrgdebug=false
5400cacd992dSmrgac_cs_recheck=false
5401cacd992dSmrgac_cs_silent=false
5402cacd992dSmrg
540314ddf674SmrgSHELL=\${CONFIG_SHELL-$SHELL}
540414ddf674Smrgexport SHELL
540514ddf674Smrg_ASEOF
540614ddf674Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
540714ddf674Smrg## -------------------- ##
540814ddf674Smrg## M4sh Initialization. ##
540914ddf674Smrg## -------------------- ##
541014ddf674Smrg
541114ddf674Smrg# Be more Bourne compatible
541214ddf674SmrgDUALCASE=1; export DUALCASE # for MKS sh
541314ddf674Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5414cacd992dSmrg  emulate sh
5415cacd992dSmrg  NULLCMD=:
541614ddf674Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5417cacd992dSmrg  # is contrary to our usage.  Disable this feature.
5418cacd992dSmrg  alias -g '${1+"$@"}'='"$@"'
541914ddf674Smrg  setopt NO_GLOB_SUBST
542014ddf674Smrgelse
542114ddf674Smrg  case `(set -o) 2>/dev/null` in #(
542214ddf674Smrg  *posix*) :
542314ddf674Smrg    set -o posix ;; #(
542414ddf674Smrg  *) :
542514ddf674Smrg     ;;
542614ddf674Smrgesac
5427cacd992dSmrgfi
5428cacd992dSmrg
542914ddf674Smrg
543014ddf674Smrgas_nl='
543114ddf674Smrg'
543214ddf674Smrgexport as_nl
543314ddf674Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
543414ddf674Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
543514ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
543614ddf674Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
543714ddf674Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
543814ddf674Smrg# but without wasting forks for bash or zsh.
543914ddf674Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
544014ddf674Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
544114ddf674Smrg  as_echo='print -r --'
544214ddf674Smrg  as_echo_n='print -rn --'
544314ddf674Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
544414ddf674Smrg  as_echo='printf %s\n'
544514ddf674Smrg  as_echo_n='printf %s'
5446cacd992dSmrgelse
544714ddf674Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
544814ddf674Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
544914ddf674Smrg    as_echo_n='/usr/ucb/echo -n'
545014ddf674Smrg  else
545114ddf674Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
545214ddf674Smrg    as_echo_n_body='eval
545314ddf674Smrg      arg=$1;
545414ddf674Smrg      case $arg in #(
545514ddf674Smrg      *"$as_nl"*)
545614ddf674Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
545714ddf674Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
545814ddf674Smrg      esac;
545914ddf674Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
546014ddf674Smrg    '
546114ddf674Smrg    export as_echo_n_body
546214ddf674Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
546314ddf674Smrg  fi
546414ddf674Smrg  export as_echo_body
546514ddf674Smrg  as_echo='sh -c $as_echo_body as_echo'
546614ddf674Smrgfi
546714ddf674Smrg
546814ddf674Smrg# The user is always right.
546914ddf674Smrgif test "${PATH_SEPARATOR+set}" != set; then
547014ddf674Smrg  PATH_SEPARATOR=:
547114ddf674Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
547214ddf674Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
547314ddf674Smrg      PATH_SEPARATOR=';'
547414ddf674Smrg  }
5475cacd992dSmrgfi
5476cacd992dSmrg
5477cacd992dSmrg
547814ddf674Smrg# IFS
547914ddf674Smrg# We need space, tab and new line, in precisely that order.  Quoting is
548014ddf674Smrg# there to prevent editors from complaining about space-tab.
548114ddf674Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
548214ddf674Smrg# splitting by setting IFS to empty value.)
548314ddf674SmrgIFS=" ""	$as_nl"
548414ddf674Smrg
548514ddf674Smrg# Find who we are.  Look in the path if we contain no directory separator.
548614ddf674Smrgcase $0 in #((
548714ddf674Smrg  *[\\/]* ) as_myself=$0 ;;
548814ddf674Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
548914ddf674Smrgfor as_dir in $PATH
549014ddf674Smrgdo
549114ddf674Smrg  IFS=$as_save_IFS
549214ddf674Smrg  test -z "$as_dir" && as_dir=.
549314ddf674Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
549414ddf674Smrg  done
549514ddf674SmrgIFS=$as_save_IFS
549614ddf674Smrg
549714ddf674Smrg     ;;
549814ddf674Smrgesac
549914ddf674Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
550014ddf674Smrg# in which case we are not to be found in the path.
550114ddf674Smrgif test "x$as_myself" = x; then
550214ddf674Smrg  as_myself=$0
550314ddf674Smrgfi
550414ddf674Smrgif test ! -f "$as_myself"; then
550514ddf674Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
550614ddf674Smrg  exit 1
550714ddf674Smrgfi
550814ddf674Smrg
550914ddf674Smrg# Unset variables that we do not need and which cause bugs (e.g. in
551014ddf674Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
551114ddf674Smrg# suppresses any "Segmentation fault" message there.  '((' could
551214ddf674Smrg# trigger a bug in pdksh 5.2.14.
551314ddf674Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
551414ddf674Smrgdo eval test x\${$as_var+set} = xset \
551514ddf674Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
551614ddf674Smrgdone
5517cacd992dSmrgPS1='$ '
5518cacd992dSmrgPS2='> '
5519cacd992dSmrgPS4='+ '
5520cacd992dSmrg
5521cacd992dSmrg# NLS nuisances.
552214ddf674SmrgLC_ALL=C
552314ddf674Smrgexport LC_ALL
552414ddf674SmrgLANGUAGE=C
552514ddf674Smrgexport LANGUAGE
552614ddf674Smrg
552714ddf674Smrg# CDPATH.
552814ddf674Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
552914ddf674Smrg
553014ddf674Smrg
553114ddf674Smrg# as_fn_error ERROR [LINENO LOG_FD]
553214ddf674Smrg# ---------------------------------
553314ddf674Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
553414ddf674Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
553514ddf674Smrg# script with status $?, using 1 if that was 0.
553614ddf674Smrgas_fn_error ()
553714ddf674Smrg{
553814ddf674Smrg  as_status=$?; test $as_status -eq 0 && as_status=1
553914ddf674Smrg  if test "$3"; then
554014ddf674Smrg    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
554114ddf674Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5542cacd992dSmrg  fi
554314ddf674Smrg  $as_echo "$as_me: error: $1" >&2
554414ddf674Smrg  as_fn_exit $as_status
554514ddf674Smrg} # as_fn_error
554614ddf674Smrg
5547cacd992dSmrg
554814ddf674Smrg# as_fn_set_status STATUS
554914ddf674Smrg# -----------------------
555014ddf674Smrg# Set $? to STATUS, without forking.
555114ddf674Smrgas_fn_set_status ()
555214ddf674Smrg{
555314ddf674Smrg  return $1
555414ddf674Smrg} # as_fn_set_status
555514ddf674Smrg
555614ddf674Smrg# as_fn_exit STATUS
555714ddf674Smrg# -----------------
555814ddf674Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555914ddf674Smrgas_fn_exit ()
556014ddf674Smrg{
556114ddf674Smrg  set +e
556214ddf674Smrg  as_fn_set_status $1
556314ddf674Smrg  exit $1
556414ddf674Smrg} # as_fn_exit
556514ddf674Smrg
556614ddf674Smrg# as_fn_unset VAR
556714ddf674Smrg# ---------------
556814ddf674Smrg# Portably unset VAR.
556914ddf674Smrgas_fn_unset ()
557014ddf674Smrg{
557114ddf674Smrg  { eval $1=; unset $1;}
557214ddf674Smrg}
557314ddf674Smrgas_unset=as_fn_unset
557414ddf674Smrg# as_fn_append VAR VALUE
557514ddf674Smrg# ----------------------
557614ddf674Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
557714ddf674Smrg# advantage of any shell optimizations that allow amortized linear growth over
557814ddf674Smrg# repeated appends, instead of the typical quadratic growth present in naive
557914ddf674Smrg# implementations.
558014ddf674Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
558114ddf674Smrg  eval 'as_fn_append ()
558214ddf674Smrg  {
558314ddf674Smrg    eval $1+=\$2
558414ddf674Smrg  }'
558514ddf674Smrgelse
558614ddf674Smrg  as_fn_append ()
558714ddf674Smrg  {
558814ddf674Smrg    eval $1=\$$1\$2
558914ddf674Smrg  }
559014ddf674Smrgfi # as_fn_append
559114ddf674Smrg
559214ddf674Smrg# as_fn_arith ARG...
559314ddf674Smrg# ------------------
559414ddf674Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
559514ddf674Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
559614ddf674Smrg# must be portable across $(()) and expr.
559714ddf674Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
559814ddf674Smrg  eval 'as_fn_arith ()
559914ddf674Smrg  {
560014ddf674Smrg    as_val=$(( $* ))
560114ddf674Smrg  }'
560214ddf674Smrgelse
560314ddf674Smrg  as_fn_arith ()
560414ddf674Smrg  {
560514ddf674Smrg    as_val=`expr "$@" || test $? -eq 1`
560614ddf674Smrg  }
560714ddf674Smrgfi # as_fn_arith
560814ddf674Smrg
560914ddf674Smrg
561014ddf674Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
561114ddf674Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5612cacd992dSmrg  as_expr=expr
5613cacd992dSmrgelse
5614cacd992dSmrg  as_expr=false
5615cacd992dSmrgfi
5616cacd992dSmrg
561714ddf674Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5618cacd992dSmrg  as_basename=basename
5619cacd992dSmrgelse
5620cacd992dSmrg  as_basename=false
5621cacd992dSmrgfi
5622cacd992dSmrg
562314ddf674Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
562414ddf674Smrg  as_dirname=dirname
562514ddf674Smrgelse
562614ddf674Smrg  as_dirname=false
562714ddf674Smrgfi
5628cacd992dSmrg
562914ddf674Smrgas_me=`$as_basename -- "$0" ||
5630cacd992dSmrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5631cacd992dSmrg	 X"$0" : 'X\(//\)$' \| \
563214ddf674Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
563314ddf674Smrg$as_echo X/"$0" |
563414ddf674Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
563514ddf674Smrg	    s//\1/
563614ddf674Smrg	    q
563714ddf674Smrg	  }
563814ddf674Smrg	  /^X\/\(\/\/\)$/{
563914ddf674Smrg	    s//\1/
564014ddf674Smrg	    q
564114ddf674Smrg	  }
564214ddf674Smrg	  /^X\/\(\/\).*/{
564314ddf674Smrg	    s//\1/
564414ddf674Smrg	    q
564514ddf674Smrg	  }
564614ddf674Smrg	  s/.*/./; q'`
5647cacd992dSmrg
5648cacd992dSmrg# Avoid depending upon Character Ranges.
5649cacd992dSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
5650cacd992dSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5651cacd992dSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
5652cacd992dSmrgas_cr_digits='0123456789'
5653cacd992dSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
5654cacd992dSmrg
565514ddf674SmrgECHO_C= ECHO_N= ECHO_T=
565614ddf674Smrgcase `echo -n x` in #(((((
565714ddf674Smrg-n*)
565814ddf674Smrg  case `echo 'xy\c'` in
565914ddf674Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
566014ddf674Smrg  xy)  ECHO_C='\c';;
566114ddf674Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
566214ddf674Smrg       ECHO_T='	';;
566314ddf674Smrg  esac;;
566414ddf674Smrg*)
566514ddf674Smrg  ECHO_N='-n';;
5666cacd992dSmrgesac
5667cacd992dSmrg
566814ddf674Smrgrm -f conf$$ conf$$.exe conf$$.file
566914ddf674Smrgif test -d conf$$.dir; then
567014ddf674Smrg  rm -f conf$$.dir/conf$$.file
5671cacd992dSmrgelse
567214ddf674Smrg  rm -f conf$$.dir
567314ddf674Smrg  mkdir conf$$.dir 2>/dev/null
5674cacd992dSmrgfi
567514ddf674Smrgif (echo >conf$$.file) 2>/dev/null; then
567614ddf674Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5677cacd992dSmrg    as_ln_s='ln -s'
567814ddf674Smrg    # ... but there are two gotchas:
567914ddf674Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568014ddf674Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568114ddf674Smrg    # In both cases, we have to default to `cp -p'.
568214ddf674Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
568314ddf674Smrg      as_ln_s='cp -p'
568414ddf674Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
568514ddf674Smrg    as_ln_s=ln
568614ddf674Smrg  else
568714ddf674Smrg    as_ln_s='cp -p'
5688cacd992dSmrg  fi
5689cacd992dSmrgelse
5690cacd992dSmrg  as_ln_s='cp -p'
5691cacd992dSmrgfi
569214ddf674Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569314ddf674Smrgrmdir conf$$.dir 2>/dev/null
569414ddf674Smrg
569514ddf674Smrg
569614ddf674Smrg# as_fn_mkdir_p
569714ddf674Smrg# -------------
569814ddf674Smrg# Create "$as_dir" as a directory, including parents if necessary.
569914ddf674Smrgas_fn_mkdir_p ()
570014ddf674Smrg{
570114ddf674Smrg
570214ddf674Smrg  case $as_dir in #(
570314ddf674Smrg  -*) as_dir=./$as_dir;;
570414ddf674Smrg  esac
570514ddf674Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
570614ddf674Smrg    as_dirs=
570714ddf674Smrg    while :; do
570814ddf674Smrg      case $as_dir in #(
570914ddf674Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
571014ddf674Smrg      *) as_qdir=$as_dir;;
571114ddf674Smrg      esac
571214ddf674Smrg      as_dirs="'$as_qdir' $as_dirs"
571314ddf674Smrg      as_dir=`$as_dirname -- "$as_dir" ||
571414ddf674Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
571514ddf674Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
571614ddf674Smrg	 X"$as_dir" : 'X\(//\)$' \| \
571714ddf674Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
571814ddf674Smrg$as_echo X"$as_dir" |
571914ddf674Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
572014ddf674Smrg	    s//\1/
572114ddf674Smrg	    q
572214ddf674Smrg	  }
572314ddf674Smrg	  /^X\(\/\/\)[^/].*/{
572414ddf674Smrg	    s//\1/
572514ddf674Smrg	    q
572614ddf674Smrg	  }
572714ddf674Smrg	  /^X\(\/\/\)$/{
572814ddf674Smrg	    s//\1/
572914ddf674Smrg	    q
573014ddf674Smrg	  }
573114ddf674Smrg	  /^X\(\/\).*/{
573214ddf674Smrg	    s//\1/
573314ddf674Smrg	    q
573414ddf674Smrg	  }
573514ddf674Smrg	  s/.*/./; q'`
573614ddf674Smrg      test -d "$as_dir" && break
573714ddf674Smrg    done
573814ddf674Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
573914ddf674Smrg  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5740cacd992dSmrg
574114ddf674Smrg
574214ddf674Smrg} # as_fn_mkdir_p
5743cacd992dSmrgif mkdir -p . 2>/dev/null; then
574414ddf674Smrg  as_mkdir_p='mkdir -p "$as_dir"'
5745cacd992dSmrgelse
5746cacd992dSmrg  test -d ./-p && rmdir ./-p
5747cacd992dSmrg  as_mkdir_p=false
5748cacd992dSmrgfi
574914ddf674Smrg
575014ddf674Smrgif test -x / >/dev/null 2>&1; then
575114ddf674Smrg  as_test_x='test -x'
575214ddf674Smrgelse
575314ddf674Smrg  if ls -dL / >/dev/null 2>&1; then
575414ddf674Smrg    as_ls_L_option=L
575514ddf674Smrg  else
575614ddf674Smrg    as_ls_L_option=
575714ddf674Smrg  fi
575814ddf674Smrg  as_test_x='
575914ddf674Smrg    eval sh -c '\''
576014ddf674Smrg      if test -d "$1"; then
576114ddf674Smrg	test -d "$1/.";
576214ddf674Smrg      else
576314ddf674Smrg	case $1 in #(
576414ddf674Smrg	-*)set "./$1";;
576514ddf674Smrg	esac;
576614ddf674Smrg	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
576714ddf674Smrg	???[sx]*):;;*)false;;esac;fi
576814ddf674Smrg    '\'' sh
576914ddf674Smrg  '
577014ddf674Smrgfi
577114ddf674Smrgas_executable_p=$as_test_x
5772cacd992dSmrg
5773cacd992dSmrg# Sed expression to map a string onto a valid CPP name.
5774cacd992dSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5775cacd992dSmrg
5776cacd992dSmrg# Sed expression to map a string onto a valid variable name.
5777cacd992dSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5778cacd992dSmrg
5779cacd992dSmrg
5780cacd992dSmrgexec 6>&1
578114ddf674Smrg## ----------------------------------- ##
578214ddf674Smrg## Main body of $CONFIG_STATUS script. ##
578314ddf674Smrg## ----------------------------------- ##
578414ddf674Smrg_ASEOF
578514ddf674Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
578614ddf674Smrg
578714ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
578814ddf674Smrg# Save the log message, to keep $0 and so on meaningful, and to
5789cacd992dSmrg# report actual input values of CONFIG_FILES etc. instead of their
579014ddf674Smrg# values after options handling.
579114ddf674Smrgac_log="
579214ddf674SmrgThis file was extended by xvidtune $as_me 1.0.2, which was
579314ddf674Smrggenerated by GNU Autoconf 2.65.  Invocation command line was
5794cacd992dSmrg
5795cacd992dSmrg  CONFIG_FILES    = $CONFIG_FILES
5796cacd992dSmrg  CONFIG_HEADERS  = $CONFIG_HEADERS
5797cacd992dSmrg  CONFIG_LINKS    = $CONFIG_LINKS
5798cacd992dSmrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
5799cacd992dSmrg  $ $0 $@
5800cacd992dSmrg
580114ddf674Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
580214ddf674Smrg"
580314ddf674Smrg
5804cacd992dSmrg_ACEOF
5805cacd992dSmrg
580614ddf674Smrgcase $ac_config_files in *"
580714ddf674Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
580814ddf674Smrgesac
5809cacd992dSmrg
581014ddf674Smrgcase $ac_config_headers in *"
581114ddf674Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
581214ddf674Smrgesac
5813cacd992dSmrg
5814cacd992dSmrg
581514ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
581614ddf674Smrg# Files that config.status was made for.
581714ddf674Smrgconfig_files="$ac_config_files"
581814ddf674Smrgconfig_headers="$ac_config_headers"
581914ddf674Smrgconfig_commands="$ac_config_commands"
5820cacd992dSmrg
582114ddf674Smrg_ACEOF
5822cacd992dSmrg
582314ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5824cacd992dSmrgac_cs_usage="\
582514ddf674Smrg\`$as_me' instantiates files and other configuration actions
582614ddf674Smrgfrom templates according to the current configuration.  Unless the files
582714ddf674Smrgand actions are specified as TAGs, all are instantiated by default.
5828cacd992dSmrg
582914ddf674SmrgUsage: $0 [OPTION]... [TAG]...
5830cacd992dSmrg
5831cacd992dSmrg  -h, --help       print this help, then exit
583214ddf674Smrg  -V, --version    print version number and configuration settings, then exit
583314ddf674Smrg      --config     print configuration, then exit
583414ddf674Smrg  -q, --quiet, --silent
583514ddf674Smrg                   do not print progress messages
5836cacd992dSmrg  -d, --debug      don't remove temporary files
5837cacd992dSmrg      --recheck    update $as_me by reconfiguring in the same conditions
583814ddf674Smrg      --file=FILE[:TEMPLATE]
583914ddf674Smrg                   instantiate the configuration file FILE
584014ddf674Smrg      --header=FILE[:TEMPLATE]
584114ddf674Smrg                   instantiate the configuration header FILE
5842cacd992dSmrg
5843cacd992dSmrgConfiguration files:
5844cacd992dSmrg$config_files
5845cacd992dSmrg
5846cacd992dSmrgConfiguration headers:
5847cacd992dSmrg$config_headers
5848cacd992dSmrg
5849cacd992dSmrgConfiguration commands:
5850cacd992dSmrg$config_commands
5851cacd992dSmrg
585214ddf674SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5853cacd992dSmrg
585414ddf674Smrg_ACEOF
585514ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
585614ddf674Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5857cacd992dSmrgac_cs_version="\\
585814ddf674Smrgxvidtune config.status 1.0.2
585914ddf674Smrgconfigured by $0, generated by GNU Autoconf 2.65,
586014ddf674Smrg  with options \\"\$ac_cs_config\\"
5861cacd992dSmrg
586214ddf674SmrgCopyright (C) 2009 Free Software Foundation, Inc.
5863cacd992dSmrgThis config.status script is free software; the Free Software Foundation
5864cacd992dSmrggives unlimited permission to copy, distribute and modify it."
586514ddf674Smrg
586614ddf674Smrgac_pwd='$ac_pwd'
586714ddf674Smrgsrcdir='$srcdir'
586814ddf674SmrgINSTALL='$INSTALL'
586914ddf674SmrgMKDIR_P='$MKDIR_P'
587014ddf674SmrgAWK='$AWK'
587114ddf674Smrgtest -n "\$AWK" || AWK=awk
5872cacd992dSmrg_ACEOF
5873cacd992dSmrg
587414ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
587514ddf674Smrg# The default lists apply if the user does not specify any file.
5876cacd992dSmrgac_need_defaults=:
5877cacd992dSmrgwhile test $# != 0
5878cacd992dSmrgdo
5879cacd992dSmrg  case $1 in
5880cacd992dSmrg  --*=*)
588114ddf674Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
588214ddf674Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5883cacd992dSmrg    ac_shift=:
5884cacd992dSmrg    ;;
588514ddf674Smrg  *)
5886cacd992dSmrg    ac_option=$1
5887cacd992dSmrg    ac_optarg=$2
5888cacd992dSmrg    ac_shift=shift
5889cacd992dSmrg    ;;
5890cacd992dSmrg  esac
5891cacd992dSmrg
5892cacd992dSmrg  case $ac_option in
5893cacd992dSmrg  # Handling of the options.
5894cacd992dSmrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5895cacd992dSmrg    ac_cs_recheck=: ;;
589614ddf674Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
589714ddf674Smrg    $as_echo "$ac_cs_version"; exit ;;
589814ddf674Smrg  --config | --confi | --conf | --con | --co | --c )
589914ddf674Smrg    $as_echo "$ac_cs_config"; exit ;;
590014ddf674Smrg  --debug | --debu | --deb | --de | --d | -d )
5901cacd992dSmrg    debug=: ;;
5902cacd992dSmrg  --file | --fil | --fi | --f )
5903cacd992dSmrg    $ac_shift
590414ddf674Smrg    case $ac_optarg in
590514ddf674Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
590614ddf674Smrg    esac
590714ddf674Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
5908cacd992dSmrg    ac_need_defaults=false;;
5909cacd992dSmrg  --header | --heade | --head | --hea )
5910cacd992dSmrg    $ac_shift
591114ddf674Smrg    case $ac_optarg in
591214ddf674Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
591314ddf674Smrg    esac
591414ddf674Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5915cacd992dSmrg    ac_need_defaults=false;;
591614ddf674Smrg  --he | --h)
591714ddf674Smrg    # Conflict between --help and --header
591814ddf674Smrg    as_fn_error "ambiguous option: \`$1'
591914ddf674SmrgTry \`$0 --help' for more information.";;
592014ddf674Smrg  --help | --hel | -h )
592114ddf674Smrg    $as_echo "$ac_cs_usage"; exit ;;
5922cacd992dSmrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5923cacd992dSmrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5924cacd992dSmrg    ac_cs_silent=: ;;
5925cacd992dSmrg
5926cacd992dSmrg  # This is an error.
592714ddf674Smrg  -*) as_fn_error "unrecognized option: \`$1'
592814ddf674SmrgTry \`$0 --help' for more information." ;;
5929cacd992dSmrg
593014ddf674Smrg  *) as_fn_append ac_config_targets " $1"
593114ddf674Smrg     ac_need_defaults=false ;;
5932cacd992dSmrg
5933cacd992dSmrg  esac
5934cacd992dSmrg  shift
5935cacd992dSmrgdone
5936cacd992dSmrg
5937cacd992dSmrgac_configure_extra_args=
5938cacd992dSmrg
5939cacd992dSmrgif $ac_cs_silent; then
5940cacd992dSmrg  exec 6>/dev/null
5941cacd992dSmrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
5942cacd992dSmrgfi
5943cacd992dSmrg
5944cacd992dSmrg_ACEOF
594514ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5946cacd992dSmrgif \$ac_cs_recheck; then
594714ddf674Smrg  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
594814ddf674Smrg  shift
594914ddf674Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
595014ddf674Smrg  CONFIG_SHELL='$SHELL'
595114ddf674Smrg  export CONFIG_SHELL
595214ddf674Smrg  exec "\$@"
5953cacd992dSmrgfi
5954cacd992dSmrg
5955cacd992dSmrg_ACEOF
595614ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
595714ddf674Smrgexec 5>>config.log
595814ddf674Smrg{
595914ddf674Smrg  echo
596014ddf674Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
596114ddf674Smrg## Running $as_me. ##
596214ddf674Smrg_ASBOX
596314ddf674Smrg  $as_echo "$ac_log"
596414ddf674Smrg} >&5
5965cacd992dSmrg
596614ddf674Smrg_ACEOF
596714ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5968cacd992dSmrg#
596914ddf674Smrg# INIT-COMMANDS
5970cacd992dSmrg#
5971cacd992dSmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5972cacd992dSmrg
5973cacd992dSmrg_ACEOF
5974cacd992dSmrg
597514ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5976cacd992dSmrg
597714ddf674Smrg# Handling of arguments.
5978cacd992dSmrgfor ac_config_target in $ac_config_targets
5979cacd992dSmrgdo
598014ddf674Smrg  case $ac_config_target in
598114ddf674Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
598214ddf674Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
598314ddf674Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
598414ddf674Smrg
598514ddf674Smrg  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5986cacd992dSmrg  esac
5987cacd992dSmrgdone
5988cacd992dSmrg
598914ddf674Smrg
5990cacd992dSmrg# If the user did not use the arguments to specify the items to instantiate,
5991cacd992dSmrg# then the envvar interface is used.  Set only those that are not.
5992cacd992dSmrg# We use the long form for the default assignment because of an extremely
5993cacd992dSmrg# bizarre bug on SunOS 4.1.3.
5994cacd992dSmrgif $ac_need_defaults; then
5995cacd992dSmrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5996cacd992dSmrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5997cacd992dSmrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5998cacd992dSmrgfi
5999cacd992dSmrg
6000cacd992dSmrg# Have a temporary directory for convenience.  Make it in the build tree
600114ddf674Smrg# simply because there is no reason against having it here, and in addition,
6002cacd992dSmrg# creating and moving files from /tmp can sometimes cause problems.
600314ddf674Smrg# Hook for its removal unless debugging.
600414ddf674Smrg# Note that there is a small window in which the directory will not be cleaned:
600514ddf674Smrg# after its creation but before its name has been assigned to `$tmp'.
6006cacd992dSmrg$debug ||
6007cacd992dSmrg{
600814ddf674Smrg  tmp=
600914ddf674Smrg  trap 'exit_status=$?
601014ddf674Smrg  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
601114ddf674Smrg' 0
601214ddf674Smrg  trap 'as_fn_exit 1' 1 2 13 15
6013cacd992dSmrg}
6014cacd992dSmrg# Create a (secure) tmp directory for tmp files.
6015cacd992dSmrg
6016cacd992dSmrg{
601714ddf674Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6018cacd992dSmrg  test -n "$tmp" && test -d "$tmp"
6019cacd992dSmrg}  ||
6020cacd992dSmrg{
602114ddf674Smrg  tmp=./conf$$-$RANDOM
602214ddf674Smrg  (umask 077 && mkdir "$tmp")
602314ddf674Smrg} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
602414ddf674Smrg
602514ddf674Smrg# Set up the scripts for CONFIG_FILES section.
602614ddf674Smrg# No need to generate them if there are no CONFIG_FILES.
602714ddf674Smrg# This happens for instance with `./config.status config.h'.
602814ddf674Smrgif test -n "$CONFIG_FILES"; then
602914ddf674Smrg
603014ddf674Smrg
603114ddf674Smrgac_cr=`echo X | tr X '\015'`
603214ddf674Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
603314ddf674Smrg# But we know of no other shell where ac_cr would be empty at this
603414ddf674Smrg# point, so we can use a bashism as a fallback.
603514ddf674Smrgif test "x$ac_cr" = x; then
603614ddf674Smrg  eval ac_cr=\$\'\\r\'
603714ddf674Smrgfi
603814ddf674Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
603914ddf674Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
604014ddf674Smrg  ac_cs_awk_cr='\r'
604114ddf674Smrgelse
604214ddf674Smrg  ac_cs_awk_cr=$ac_cr
604314ddf674Smrgfi
604414ddf674Smrg
604514ddf674Smrgecho 'BEGIN {' >"$tmp/subs1.awk" &&
604614ddf674Smrg_ACEOF
604714ddf674Smrg
604814ddf674Smrg
6049cacd992dSmrg{
605014ddf674Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
605114ddf674Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
605214ddf674Smrg  echo "_ACEOF"
605314ddf674Smrg} >conf$$subs.sh ||
605414ddf674Smrg  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
605514ddf674Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
605614ddf674Smrgac_delim='%!_!# '
605714ddf674Smrgfor ac_last_try in false false false false false :; do
605814ddf674Smrg  . ./conf$$subs.sh ||
605914ddf674Smrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
606014ddf674Smrg
606114ddf674Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
606214ddf674Smrg  if test $ac_delim_n = $ac_delim_num; then
606314ddf674Smrg    break
606414ddf674Smrg  elif $ac_last_try; then
606514ddf674Smrg    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
606614ddf674Smrg  else
606714ddf674Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
606814ddf674Smrg  fi
606914ddf674Smrgdone
607014ddf674Smrgrm -f conf$$subs.sh
6071cacd992dSmrg
607214ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
607314ddf674Smrgcat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6074cacd992dSmrg_ACEOF
607514ddf674Smrgsed -n '
607614ddf674Smrgh
607714ddf674Smrgs/^/S["/; s/!.*/"]=/
607814ddf674Smrgp
607914ddf674Smrgg
608014ddf674Smrgs/^[^!]*!//
608114ddf674Smrg:repl
608214ddf674Smrgt repl
608314ddf674Smrgs/'"$ac_delim"'$//
608414ddf674Smrgt delim
608514ddf674Smrg:nl
608614ddf674Smrgh
608714ddf674Smrgs/\(.\{148\}\)..*/\1/
608814ddf674Smrgt more1
608914ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
609014ddf674Smrgp
609114ddf674Smrgn
609214ddf674Smrgb repl
609314ddf674Smrg:more1
609414ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
609514ddf674Smrgp
609614ddf674Smrgg
609714ddf674Smrgs/.\{148\}//
609814ddf674Smrgt nl
609914ddf674Smrg:delim
610014ddf674Smrgh
610114ddf674Smrgs/\(.\{148\}\)..*/\1/
610214ddf674Smrgt more2
610314ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
610414ddf674Smrgp
610514ddf674Smrgb
610614ddf674Smrg:more2
610714ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
610814ddf674Smrgp
610914ddf674Smrgg
611014ddf674Smrgs/.\{148\}//
611114ddf674Smrgt delim
611214ddf674Smrg' <conf$$subs.awk | sed '
611314ddf674Smrg/^[^""]/{
611414ddf674Smrg  N
611514ddf674Smrg  s/\n//
611614ddf674Smrg}
611714ddf674Smrg' >>$CONFIG_STATUS || ac_write_fail=1
611814ddf674Smrgrm -f conf$$subs.awk
611914ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
612014ddf674Smrg_ACAWK
612114ddf674Smrgcat >>"\$tmp/subs1.awk" <<_ACAWK &&
612214ddf674Smrg  for (key in S) S_is_set[key] = 1
612314ddf674Smrg  FS = ""
6124cacd992dSmrg
612514ddf674Smrg}
612614ddf674Smrg{
612714ddf674Smrg  line = $ 0
612814ddf674Smrg  nfields = split(line, field, "@")
612914ddf674Smrg  substed = 0
613014ddf674Smrg  len = length(field[1])
613114ddf674Smrg  for (i = 2; i < nfields; i++) {
613214ddf674Smrg    key = field[i]
613314ddf674Smrg    keylen = length(key)
613414ddf674Smrg    if (S_is_set[key]) {
613514ddf674Smrg      value = S[key]
613614ddf674Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
613714ddf674Smrg      len += length(value) + length(field[++i])
613814ddf674Smrg      substed = 1
613914ddf674Smrg    } else
614014ddf674Smrg      len += 1 + keylen
614114ddf674Smrg  }
614214ddf674Smrg
614314ddf674Smrg  print line
614414ddf674Smrg}
6145cacd992dSmrg
614614ddf674Smrg_ACAWK
614714ddf674Smrg_ACEOF
614814ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
614914ddf674Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
615014ddf674Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
615114ddf674Smrgelse
615214ddf674Smrg  cat
615314ddf674Smrgfi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
615414ddf674Smrg  || as_fn_error "could not setup config files machinery" "$LINENO" 5
615514ddf674Smrg_ACEOF
615614ddf674Smrg
615714ddf674Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir),
615814ddf674Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
615914ddf674Smrg# trailing colons and then remove the whole line if VPATH becomes empty
616014ddf674Smrg# (actually we leave an empty line to preserve line numbers).
616114ddf674Smrgif test "x$srcdir" = x.; then
616214ddf674Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
616314ddf674Smrgs/:*\$(srcdir):*/:/
616414ddf674Smrgs/:*\${srcdir}:*/:/
616514ddf674Smrgs/:*@srcdir@:*/:/
616614ddf674Smrgs/^\([^=]*=[	 ]*\):*/\1/
616714ddf674Smrgs/:*$//
616814ddf674Smrgs/^[^=]*=[	 ]*$//
616914ddf674Smrg}'
617014ddf674Smrgfi
6171cacd992dSmrg
617214ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
617314ddf674Smrgfi # test -n "$CONFIG_FILES"
6174cacd992dSmrg
617514ddf674Smrg# Set up the scripts for CONFIG_HEADERS section.
617614ddf674Smrg# No need to generate them if there are no CONFIG_HEADERS.
617714ddf674Smrg# This happens for instance with `./config.status Makefile'.
617814ddf674Smrgif test -n "$CONFIG_HEADERS"; then
617914ddf674Smrgcat >"$tmp/defines.awk" <<\_ACAWK ||
618014ddf674SmrgBEGIN {
6181cacd992dSmrg_ACEOF
6182cacd992dSmrg
618314ddf674Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
618414ddf674Smrg# here-document in config.status, that substitutes the proper values into
618514ddf674Smrg# config.h.in to produce config.h.
618614ddf674Smrg
618714ddf674Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
618814ddf674Smrg# handling of long lines.
618914ddf674Smrgac_delim='%!_!# '
619014ddf674Smrgfor ac_last_try in false false :; do
619114ddf674Smrg  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
619214ddf674Smrg  if test -z "$ac_t"; then
619314ddf674Smrg    break
619414ddf674Smrg  elif $ac_last_try; then
619514ddf674Smrg    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
619614ddf674Smrg  else
619714ddf674Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6198cacd992dSmrg  fi
619914ddf674Smrgdone
6200cacd992dSmrg
620114ddf674Smrg# For the awk script, D is an array of macro values keyed by name,
620214ddf674Smrg# likewise P contains macro parameters if any.  Preserve backslash
620314ddf674Smrg# newline sequences.
620414ddf674Smrg
620514ddf674Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
620614ddf674Smrgsed -n '
620714ddf674Smrgs/.\{148\}/&'"$ac_delim"'/g
620814ddf674Smrgt rset
620914ddf674Smrg:rset
621014ddf674Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
621114ddf674Smrgt def
621214ddf674Smrgd
621314ddf674Smrg:def
621414ddf674Smrgs/\\$//
621514ddf674Smrgt bsnl
621614ddf674Smrgs/["\\]/\\&/g
621714ddf674Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
621814ddf674SmrgD["\1"]=" \3"/p
621914ddf674Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
622014ddf674Smrgd
622114ddf674Smrg:bsnl
622214ddf674Smrgs/["\\]/\\&/g
622314ddf674Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
622414ddf674SmrgD["\1"]=" \3\\\\\\n"\\/p
622514ddf674Smrgt cont
622614ddf674Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
622714ddf674Smrgt cont
622814ddf674Smrgd
622914ddf674Smrg:cont
623014ddf674Smrgn
623114ddf674Smrgs/.\{148\}/&'"$ac_delim"'/g
623214ddf674Smrgt clear
623314ddf674Smrg:clear
623414ddf674Smrgs/\\$//
623514ddf674Smrgt bsnlc
623614ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
623714ddf674Smrgd
623814ddf674Smrg:bsnlc
623914ddf674Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
624014ddf674Smrgb cont
624114ddf674Smrg' <confdefs.h | sed '
624214ddf674Smrgs/'"$ac_delim"'/"\\\
624314ddf674Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
624414ddf674Smrg
624514ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
624614ddf674Smrg  for (key in D) D_is_set[key] = 1
624714ddf674Smrg  FS = ""
624814ddf674Smrg}
624914ddf674Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
625014ddf674Smrg  line = \$ 0
625114ddf674Smrg  split(line, arg, " ")
625214ddf674Smrg  if (arg[1] == "#") {
625314ddf674Smrg    defundef = arg[2]
625414ddf674Smrg    mac1 = arg[3]
625514ddf674Smrg  } else {
625614ddf674Smrg    defundef = substr(arg[1], 2)
625714ddf674Smrg    mac1 = arg[2]
625814ddf674Smrg  }
625914ddf674Smrg  split(mac1, mac2, "(") #)
626014ddf674Smrg  macro = mac2[1]
626114ddf674Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
626214ddf674Smrg  if (D_is_set[macro]) {
626314ddf674Smrg    # Preserve the white space surrounding the "#".
626414ddf674Smrg    print prefix "define", macro P[macro] D[macro]
626514ddf674Smrg    next
626614ddf674Smrg  } else {
626714ddf674Smrg    # Replace #undef with comments.  This is necessary, for example,
626814ddf674Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
626914ddf674Smrg    # on some systems where configure will not decide to define it.
627014ddf674Smrg    if (defundef == "undef") {
627114ddf674Smrg      print "/*", prefix defundef, macro, "*/"
627214ddf674Smrg      next
627314ddf674Smrg    }
627414ddf674Smrg  }
627514ddf674Smrg}
627614ddf674Smrg{ print }
627714ddf674Smrg_ACAWK
6278cacd992dSmrg_ACEOF
627914ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
628014ddf674Smrg  as_fn_error "could not setup config headers machinery" "$LINENO" 5
628114ddf674Smrgfi # test -n "$CONFIG_HEADERS"
628214ddf674Smrg
628314ddf674Smrg
628414ddf674Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
628514ddf674Smrgshift
628614ddf674Smrgfor ac_tag
628714ddf674Smrgdo
628814ddf674Smrg  case $ac_tag in
628914ddf674Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
629014ddf674Smrg  esac
629114ddf674Smrg  case $ac_mode$ac_tag in
629214ddf674Smrg  :[FHL]*:*);;
629314ddf674Smrg  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
629414ddf674Smrg  :[FH]-) ac_tag=-:-;;
629514ddf674Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
629614ddf674Smrg  esac
629714ddf674Smrg  ac_save_IFS=$IFS
629814ddf674Smrg  IFS=:
629914ddf674Smrg  set x $ac_tag
630014ddf674Smrg  IFS=$ac_save_IFS
630114ddf674Smrg  shift
630214ddf674Smrg  ac_file=$1
630314ddf674Smrg  shift
630414ddf674Smrg
630514ddf674Smrg  case $ac_mode in
630614ddf674Smrg  :L) ac_source=$1;;
630714ddf674Smrg  :[FH])
630814ddf674Smrg    ac_file_inputs=
630914ddf674Smrg    for ac_f
631014ddf674Smrg    do
631114ddf674Smrg      case $ac_f in
631214ddf674Smrg      -) ac_f="$tmp/stdin";;
631314ddf674Smrg      *) # Look for the file first in the build tree, then in the source tree
631414ddf674Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
631514ddf674Smrg	 # because $ac_f cannot contain `:'.
631614ddf674Smrg	 test -f "$ac_f" ||
631714ddf674Smrg	   case $ac_f in
631814ddf674Smrg	   [\\/$]*) false;;
631914ddf674Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
632014ddf674Smrg	   esac ||
632114ddf674Smrg	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
632214ddf674Smrg      esac
632314ddf674Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
632414ddf674Smrg      as_fn_append ac_file_inputs " '$ac_f'"
632514ddf674Smrg    done
632614ddf674Smrg
632714ddf674Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
632814ddf674Smrg    # use $as_me), people would be surprised to read:
632914ddf674Smrg    #    /* config.h.  Generated by config.status.  */
633014ddf674Smrg    configure_input='Generated from '`
633114ddf674Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
633214ddf674Smrg	`' by configure.'
633314ddf674Smrg    if test x"$ac_file" != x-; then
633414ddf674Smrg      configure_input="$ac_file.  $configure_input"
633514ddf674Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
633614ddf674Smrg$as_echo "$as_me: creating $ac_file" >&6;}
633714ddf674Smrg    fi
633814ddf674Smrg    # Neutralize special characters interpreted by sed in replacement strings.
633914ddf674Smrg    case $configure_input in #(
634014ddf674Smrg    *\&* | *\|* | *\\* )
634114ddf674Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
634214ddf674Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
634314ddf674Smrg    *) ac_sed_conf_input=$configure_input;;
634414ddf674Smrg    esac
634514ddf674Smrg
634614ddf674Smrg    case $ac_tag in
634714ddf674Smrg    *:-:* | *:-) cat >"$tmp/stdin" \
634814ddf674Smrg      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
634914ddf674Smrg    esac
635014ddf674Smrg    ;;
6351cacd992dSmrg  esac
6352cacd992dSmrg
635314ddf674Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
6354cacd992dSmrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6355cacd992dSmrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
6356cacd992dSmrg	 X"$ac_file" : 'X\(//\)$' \| \
635714ddf674Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
635814ddf674Smrg$as_echo X"$ac_file" |
635914ddf674Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
636014ddf674Smrg	    s//\1/
636114ddf674Smrg	    q
636214ddf674Smrg	  }
636314ddf674Smrg	  /^X\(\/\/\)[^/].*/{
636414ddf674Smrg	    s//\1/
636514ddf674Smrg	    q
636614ddf674Smrg	  }
636714ddf674Smrg	  /^X\(\/\/\)$/{
636814ddf674Smrg	    s//\1/
636914ddf674Smrg	    q
637014ddf674Smrg	  }
637114ddf674Smrg	  /^X\(\/\).*/{
637214ddf674Smrg	    s//\1/
637314ddf674Smrg	    q
637414ddf674Smrg	  }
637514ddf674Smrg	  s/.*/./; q'`
637614ddf674Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
6377cacd992dSmrg  ac_builddir=.
6378cacd992dSmrg
637914ddf674Smrgcase "$ac_dir" in
638014ddf674Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
638114ddf674Smrg*)
638214ddf674Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
638314ddf674Smrg  # A ".." for each directory in $ac_dir_suffix.
638414ddf674Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
638514ddf674Smrg  case $ac_top_builddir_sub in
638614ddf674Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
638714ddf674Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
638814ddf674Smrg  esac ;;
638914ddf674Smrgesac
639014ddf674Smrgac_abs_top_builddir=$ac_pwd
639114ddf674Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
639214ddf674Smrg# for backward compatibility:
639314ddf674Smrgac_top_builddir=$ac_top_build_prefix
6394cacd992dSmrg
6395cacd992dSmrgcase $srcdir in
639614ddf674Smrg  .)  # We are building in place.
6397cacd992dSmrg    ac_srcdir=.
639814ddf674Smrg    ac_top_srcdir=$ac_top_builddir_sub
639914ddf674Smrg    ac_abs_top_srcdir=$ac_pwd ;;
640014ddf674Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
6401cacd992dSmrg    ac_srcdir=$srcdir$ac_dir_suffix;
640214ddf674Smrg    ac_top_srcdir=$srcdir
640314ddf674Smrg    ac_abs_top_srcdir=$srcdir ;;
640414ddf674Smrg  *) # Relative name.
640514ddf674Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
640614ddf674Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
640714ddf674Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6408cacd992dSmrgesac
640914ddf674Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6410cacd992dSmrg
6411cacd992dSmrg
641214ddf674Smrg  case $ac_mode in
641314ddf674Smrg  :F)
641414ddf674Smrg  #
641514ddf674Smrg  # CONFIG_FILE
641614ddf674Smrg  #
6417cacd992dSmrg
6418cacd992dSmrg  case $INSTALL in
6419cacd992dSmrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
642014ddf674Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
642114ddf674Smrg  esac
642214ddf674Smrg  ac_MKDIR_P=$MKDIR_P
642314ddf674Smrg  case $MKDIR_P in
642414ddf674Smrg  [\\/$]* | ?:[\\/]* ) ;;
642514ddf674Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6426cacd992dSmrg  esac
642714ddf674Smrg_ACEOF
6428cacd992dSmrg
642914ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
643014ddf674Smrg# If the template does not know about datarootdir, expand it.
643114ddf674Smrg# FIXME: This hack should be removed a few years after 2.60.
643214ddf674Smrgac_datarootdir_hack=; ac_datarootdir_seen=
643314ddf674Smrgac_sed_dataroot='
643414ddf674Smrg/datarootdir/ {
643514ddf674Smrg  p
643614ddf674Smrg  q
643714ddf674Smrg}
643814ddf674Smrg/@datadir@/p
643914ddf674Smrg/@docdir@/p
644014ddf674Smrg/@infodir@/p
644114ddf674Smrg/@localedir@/p
644214ddf674Smrg/@mandir@/p'
644314ddf674Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
644414ddf674Smrg*datarootdir*) ac_datarootdir_seen=yes;;
644514ddf674Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
644614ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
644714ddf674Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
644814ddf674Smrg_ACEOF
644914ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
645014ddf674Smrg  ac_datarootdir_hack='
645114ddf674Smrg  s&@datadir@&$datadir&g
645214ddf674Smrg  s&@docdir@&$docdir&g
645314ddf674Smrg  s&@infodir@&$infodir&g
645414ddf674Smrg  s&@localedir@&$localedir&g
645514ddf674Smrg  s&@mandir@&$mandir&g
645614ddf674Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
645714ddf674Smrgesac
6458cacd992dSmrg_ACEOF
645914ddf674Smrg
646014ddf674Smrg# Neutralize VPATH when `$srcdir' = `.'.
646114ddf674Smrg# Shell code in configure.ac might set extrasub.
646214ddf674Smrg# FIXME: do we really want to maintain this feature?
646314ddf674Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
646414ddf674Smrgac_sed_extra="$ac_vpsub
6465cacd992dSmrg$extrasub
6466cacd992dSmrg_ACEOF
646714ddf674Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6468cacd992dSmrg:t
6469cacd992dSmrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
647014ddf674Smrgs|@configure_input@|$ac_sed_conf_input|;t t
647114ddf674Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
647214ddf674Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
647314ddf674Smrgs&@srcdir@&$ac_srcdir&;t t
647414ddf674Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
647514ddf674Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
647614ddf674Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
647714ddf674Smrgs&@builddir@&$ac_builddir&;t t
647814ddf674Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
647914ddf674Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
648014ddf674Smrgs&@INSTALL@&$ac_INSTALL&;t t
648114ddf674Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
648214ddf674Smrg$ac_datarootdir_hack
648314ddf674Smrg"
648414ddf674Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
648514ddf674Smrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
648614ddf674Smrg
648714ddf674Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
648814ddf674Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
648914ddf674Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
649014ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
649114ddf674Smrgwhich seems to be undefined.  Please make sure it is defined." >&5
649214ddf674Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
649314ddf674Smrgwhich seems to be undefined.  Please make sure it is defined." >&2;}
649414ddf674Smrg
649514ddf674Smrg  rm -f "$tmp/stdin"
6496cacd992dSmrg  case $ac_file in
649714ddf674Smrg  -) cat "$tmp/out" && rm -f "$tmp/out";;
649814ddf674Smrg  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
649914ddf674Smrg  esac \
650014ddf674Smrg  || as_fn_error "could not create $ac_file" "$LINENO" 5
650114ddf674Smrg ;;
650214ddf674Smrg  :H)
650314ddf674Smrg  #
650414ddf674Smrg  # CONFIG_HEADER
650514ddf674Smrg  #
6506cacd992dSmrg  if test x"$ac_file" != x-; then
650714ddf674Smrg    {
650814ddf674Smrg      $as_echo "/* $configure_input  */" \
650914ddf674Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
651014ddf674Smrg    } >"$tmp/config.h" \
651114ddf674Smrg      || as_fn_error "could not create $ac_file" "$LINENO" 5
651214ddf674Smrg    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
651314ddf674Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
651414ddf674Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
6515cacd992dSmrg    else
651614ddf674Smrg      rm -f "$ac_file"
651714ddf674Smrg      mv "$tmp/config.h" "$ac_file" \
651814ddf674Smrg	|| as_fn_error "could not create $ac_file" "$LINENO" 5
6519cacd992dSmrg    fi
6520cacd992dSmrg  else
652114ddf674Smrg    $as_echo "/* $configure_input  */" \
652214ddf674Smrg      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
652314ddf674Smrg      || as_fn_error "could not create -" "$LINENO" 5
6524cacd992dSmrg  fi
652514ddf674Smrg# Compute "$ac_file"'s index in $config_headers.
652614ddf674Smrg_am_arg="$ac_file"
6527cacd992dSmrg_am_stamp_count=1
6528cacd992dSmrgfor _am_header in $config_headers :; do
6529cacd992dSmrg  case $_am_header in
653014ddf674Smrg    $_am_arg | $_am_arg:* )
6531cacd992dSmrg      break ;;
6532cacd992dSmrg    * )
6533cacd992dSmrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6534cacd992dSmrg  esac
6535cacd992dSmrgdone
653614ddf674Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
653714ddf674Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
653814ddf674Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
653914ddf674Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
654014ddf674Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
654114ddf674Smrg$as_echo X"$_am_arg" |
654214ddf674Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
654314ddf674Smrg	    s//\1/
654414ddf674Smrg	    q
654514ddf674Smrg	  }
654614ddf674Smrg	  /^X\(\/\/\)[^/].*/{
654714ddf674Smrg	    s//\1/
654814ddf674Smrg	    q
654914ddf674Smrg	  }
655014ddf674Smrg	  /^X\(\/\/\)$/{
655114ddf674Smrg	    s//\1/
655214ddf674Smrg	    q
655314ddf674Smrg	  }
655414ddf674Smrg	  /^X\(\/\).*/{
655514ddf674Smrg	    s//\1/
655614ddf674Smrg	    q
655714ddf674Smrg	  }
655814ddf674Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
655914ddf674Smrg ;;
6560cacd992dSmrg
656114ddf674Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
656214ddf674Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
656314ddf674Smrg ;;
656414ddf674Smrg  esac
6565cacd992dSmrg
6566cacd992dSmrg
656714ddf674Smrg  case $ac_file$ac_mode in
656814ddf674Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
656914ddf674Smrg  # Autoconf 2.62 quotes --file arguments for eval, but not when files
657014ddf674Smrg  # are listed without --file.  Let's play safe and only enable the eval
657114ddf674Smrg  # if we detect the quoting.
657214ddf674Smrg  case $CONFIG_FILES in
657314ddf674Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
657414ddf674Smrg  *)   set x $CONFIG_FILES ;;
657514ddf674Smrg  esac
657614ddf674Smrg  shift
657714ddf674Smrg  for mf
657814ddf674Smrg  do
657914ddf674Smrg    # Strip MF so we end up with the name of the file.
658014ddf674Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
658114ddf674Smrg    # Check whether this is an Automake generated Makefile or not.
658214ddf674Smrg    # We used to match only the files named `Makefile.in', but
658314ddf674Smrg    # some people rename them; so instead we look at the file content.
658414ddf674Smrg    # Grep'ing the first line is not enough: some people post-process
658514ddf674Smrg    # each Makefile.in and add a new line on top of each file to say so.
658614ddf674Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
658714ddf674Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
658814ddf674Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
658914ddf674Smrg      dirpart=`$as_dirname -- "$mf" ||
6590cacd992dSmrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6591cacd992dSmrg	 X"$mf" : 'X\(//\)[^/]' \| \
6592cacd992dSmrg	 X"$mf" : 'X\(//\)$' \| \
659314ddf674Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
659414ddf674Smrg$as_echo X"$mf" |
659514ddf674Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
659614ddf674Smrg	    s//\1/
659714ddf674Smrg	    q
659814ddf674Smrg	  }
659914ddf674Smrg	  /^X\(\/\/\)[^/].*/{
660014ddf674Smrg	    s//\1/
660114ddf674Smrg	    q
660214ddf674Smrg	  }
660314ddf674Smrg	  /^X\(\/\/\)$/{
660414ddf674Smrg	    s//\1/
660514ddf674Smrg	    q
660614ddf674Smrg	  }
660714ddf674Smrg	  /^X\(\/\).*/{
660814ddf674Smrg	    s//\1/
660914ddf674Smrg	    q
661014ddf674Smrg	  }
661114ddf674Smrg	  s/.*/./; q'`
661214ddf674Smrg    else
661314ddf674Smrg      continue
661414ddf674Smrg    fi
661514ddf674Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
661614ddf674Smrg    # from the Makefile without running `make'.
661714ddf674Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
661814ddf674Smrg    test -z "$DEPDIR" && continue
661914ddf674Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
662014ddf674Smrg    test -z "am__include" && continue
662114ddf674Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
662214ddf674Smrg    # When using ansi2knr, U may be empty or an underscore; expand it
662314ddf674Smrg    U=`sed -n 's/^U = //p' < "$mf"`
662414ddf674Smrg    # Find all dependency output files, they are included files with
662514ddf674Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
662614ddf674Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
662714ddf674Smrg    # expansion.
662814ddf674Smrg    for file in `sed -n "
662914ddf674Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
663014ddf674Smrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
663114ddf674Smrg      # Make sure the directory exists.
663214ddf674Smrg      test -f "$dirpart/$file" && continue
663314ddf674Smrg      fdir=`$as_dirname -- "$file" ||
6634cacd992dSmrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6635cacd992dSmrg	 X"$file" : 'X\(//\)[^/]' \| \
6636cacd992dSmrg	 X"$file" : 'X\(//\)$' \| \
663714ddf674Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
663814ddf674Smrg$as_echo X"$file" |
663914ddf674Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
664014ddf674Smrg	    s//\1/
664114ddf674Smrg	    q
664214ddf674Smrg	  }
664314ddf674Smrg	  /^X\(\/\/\)[^/].*/{
664414ddf674Smrg	    s//\1/
664514ddf674Smrg	    q
664614ddf674Smrg	  }
664714ddf674Smrg	  /^X\(\/\/\)$/{
664814ddf674Smrg	    s//\1/
664914ddf674Smrg	    q
665014ddf674Smrg	  }
665114ddf674Smrg	  /^X\(\/\).*/{
665214ddf674Smrg	    s//\1/
665314ddf674Smrg	    q
665414ddf674Smrg	  }
665514ddf674Smrg	  s/.*/./; q'`
665614ddf674Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
665714ddf674Smrg      # echo "creating $dirpart/$file"
665814ddf674Smrg      echo '# dummy' > "$dirpart/$file"
6659cacd992dSmrg    done
6660cacd992dSmrg  done
666114ddf674Smrg}
6662cacd992dSmrg ;;
666314ddf674Smrg
6664cacd992dSmrg  esac
666514ddf674Smrgdone # for ac_tag
6666cacd992dSmrg
6667cacd992dSmrg
666814ddf674Smrgas_fn_exit 0
6669cacd992dSmrg_ACEOF
6670cacd992dSmrgac_clean_files=$ac_clean_files_save
6671cacd992dSmrg
667214ddf674Smrgtest $ac_write_fail = 0 ||
667314ddf674Smrg  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
667414ddf674Smrg
6675cacd992dSmrg
6676cacd992dSmrg# configure is writing to config.log, and then calls config.status.
6677cacd992dSmrg# config.status does its own redirection, appending to config.log.
6678cacd992dSmrg# Unfortunately, on DOS this fails, as config.log is still kept open
6679cacd992dSmrg# by configure, so config.status won't be able to write to it; its
6680cacd992dSmrg# output is simply discarded.  So we exec the FD to /dev/null,
6681cacd992dSmrg# effectively closing config.log, so it can be properly (re)opened and
6682cacd992dSmrg# appended to by config.status.  When coming back to configure, we
6683cacd992dSmrg# need to make the FD available again.
6684cacd992dSmrgif test "$no_create" != yes; then
6685cacd992dSmrg  ac_cs_success=:
6686cacd992dSmrg  ac_config_status_args=
6687cacd992dSmrg  test "$silent" = yes &&
6688cacd992dSmrg    ac_config_status_args="$ac_config_status_args --quiet"
6689cacd992dSmrg  exec 5>/dev/null
6690cacd992dSmrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6691cacd992dSmrg  exec 5>>config.log
6692cacd992dSmrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6693cacd992dSmrg  # would make configure fail if this is the last instruction.
669414ddf674Smrg  $ac_cs_success || as_fn_exit $?
669514ddf674Smrgfi
669614ddf674Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
669714ddf674Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
669814ddf674Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6699cacd992dSmrgfi
6700cacd992dSmrg
6701