configure revision cacd992d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for xvidtune 1.0.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='xvidtune'
271PACKAGE_TARNAME='xvidtune'
272PACKAGE_VERSION='1.0.1'
273PACKAGE_STRING='xvidtune 1.0.1'
274PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
275
276ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP RAWCPP PKG_CONFIG ac_pt_PKG_CONFIG TMP_XAW_CFLAGS TMP_XAW_LIBS XAW_USE_XPRINT_TRUE XAW_USE_XPRINT_FALSE XVIDTUNE_CFLAGS XVIDTUNE_LIBS VENDOR_NAME APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
277ac_subst_files=''
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320  # If the previous option needs an argument, assign it.
321  if test -n "$ac_prev"; then
322    eval "$ac_prev=\$ac_option"
323    ac_prev=
324    continue
325  fi
326
327  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329  # Accept the important Cygnus configure options, so we can diagnose typos.
330
331  case $ac_option in
332
333  -bindir | --bindir | --bindi | --bind | --bin | --bi)
334    ac_prev=bindir ;;
335  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336    bindir=$ac_optarg ;;
337
338  -build | --build | --buil | --bui | --bu)
339    ac_prev=build_alias ;;
340  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341    build_alias=$ac_optarg ;;
342
343  -cache-file | --cache-file | --cache-fil | --cache-fi \
344  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345    ac_prev=cache_file ;;
346  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348    cache_file=$ac_optarg ;;
349
350  --config-cache | -C)
351    cache_file=config.cache ;;
352
353  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354    ac_prev=datadir ;;
355  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356  | --da=*)
357    datadir=$ac_optarg ;;
358
359  -disable-* | --disable-*)
360    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361    # Reject names that are not valid shell variable names.
362    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364   { (exit 1); exit 1; }; }
365    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366    eval "enable_$ac_feature=no" ;;
367
368  -enable-* | --enable-*)
369    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370    # Reject names that are not valid shell variable names.
371    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373   { (exit 1); exit 1; }; }
374    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375    case $ac_option in
376      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377      *) ac_optarg=yes ;;
378    esac
379    eval "enable_$ac_feature='$ac_optarg'" ;;
380
381  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383  | --exec | --exe | --ex)
384    ac_prev=exec_prefix ;;
385  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387  | --exec=* | --exe=* | --ex=*)
388    exec_prefix=$ac_optarg ;;
389
390  -gas | --gas | --ga | --g)
391    # Obsolete; use --with-gas.
392    with_gas=yes ;;
393
394  -help | --help | --hel | --he | -h)
395    ac_init_help=long ;;
396  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397    ac_init_help=recursive ;;
398  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399    ac_init_help=short ;;
400
401  -host | --host | --hos | --ho)
402    ac_prev=host_alias ;;
403  -host=* | --host=* | --hos=* | --ho=*)
404    host_alias=$ac_optarg ;;
405
406  -includedir | --includedir | --includedi | --included | --include \
407  | --includ | --inclu | --incl | --inc)
408    ac_prev=includedir ;;
409  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410  | --includ=* | --inclu=* | --incl=* | --inc=*)
411    includedir=$ac_optarg ;;
412
413  -infodir | --infodir | --infodi | --infod | --info | --inf)
414    ac_prev=infodir ;;
415  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416    infodir=$ac_optarg ;;
417
418  -libdir | --libdir | --libdi | --libd)
419    ac_prev=libdir ;;
420  -libdir=* | --libdir=* | --libdi=* | --libd=*)
421    libdir=$ac_optarg ;;
422
423  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424  | --libexe | --libex | --libe)
425    ac_prev=libexecdir ;;
426  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427  | --libexe=* | --libex=* | --libe=*)
428    libexecdir=$ac_optarg ;;
429
430  -localstatedir | --localstatedir | --localstatedi | --localstated \
431  | --localstate | --localstat | --localsta | --localst \
432  | --locals | --local | --loca | --loc | --lo)
433    ac_prev=localstatedir ;;
434  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437    localstatedir=$ac_optarg ;;
438
439  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440    ac_prev=mandir ;;
441  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442    mandir=$ac_optarg ;;
443
444  -nfp | --nfp | --nf)
445    # Obsolete; use --without-fp.
446    with_fp=no ;;
447
448  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449  | --no-cr | --no-c | -n)
450    no_create=yes ;;
451
452  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454    no_recursion=yes ;;
455
456  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458  | --oldin | --oldi | --old | --ol | --o)
459    ac_prev=oldincludedir ;;
460  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463    oldincludedir=$ac_optarg ;;
464
465  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466    ac_prev=prefix ;;
467  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468    prefix=$ac_optarg ;;
469
470  -program-prefix | --program-prefix | --program-prefi | --program-pref \
471  | --program-pre | --program-pr | --program-p)
472    ac_prev=program_prefix ;;
473  -program-prefix=* | --program-prefix=* | --program-prefi=* \
474  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475    program_prefix=$ac_optarg ;;
476
477  -program-suffix | --program-suffix | --program-suffi | --program-suff \
478  | --program-suf | --program-su | --program-s)
479    ac_prev=program_suffix ;;
480  -program-suffix=* | --program-suffix=* | --program-suffi=* \
481  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482    program_suffix=$ac_optarg ;;
483
484  -program-transform-name | --program-transform-name \
485  | --program-transform-nam | --program-transform-na \
486  | --program-transform-n | --program-transform- \
487  | --program-transform | --program-transfor \
488  | --program-transfo | --program-transf \
489  | --program-trans | --program-tran \
490  | --progr-tra | --program-tr | --program-t)
491    ac_prev=program_transform_name ;;
492  -program-transform-name=* | --program-transform-name=* \
493  | --program-transform-nam=* | --program-transform-na=* \
494  | --program-transform-n=* | --program-transform-=* \
495  | --program-transform=* | --program-transfor=* \
496  | --program-transfo=* | --program-transf=* \
497  | --program-trans=* | --program-tran=* \
498  | --progr-tra=* | --program-tr=* | --program-t=*)
499    program_transform_name=$ac_optarg ;;
500
501  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502  | -silent | --silent | --silen | --sile | --sil)
503    silent=yes ;;
504
505  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506    ac_prev=sbindir ;;
507  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508  | --sbi=* | --sb=*)
509    sbindir=$ac_optarg ;;
510
511  -sharedstatedir | --sharedstatedir | --sharedstatedi \
512  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513  | --sharedst | --shareds | --shared | --share | --shar \
514  | --sha | --sh)
515    ac_prev=sharedstatedir ;;
516  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519  | --sha=* | --sh=*)
520    sharedstatedir=$ac_optarg ;;
521
522  -site | --site | --sit)
523    ac_prev=site ;;
524  -site=* | --site=* | --sit=*)
525    site=$ac_optarg ;;
526
527  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528    ac_prev=srcdir ;;
529  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530    srcdir=$ac_optarg ;;
531
532  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533  | --syscon | --sysco | --sysc | --sys | --sy)
534    ac_prev=sysconfdir ;;
535  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537    sysconfdir=$ac_optarg ;;
538
539  -target | --target | --targe | --targ | --tar | --ta | --t)
540    ac_prev=target_alias ;;
541  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542    target_alias=$ac_optarg ;;
543
544  -v | -verbose | --verbose | --verbos | --verbo | --verb)
545    verbose=yes ;;
546
547  -version | --version | --versio | --versi | --vers | -V)
548    ac_init_version=: ;;
549
550  -with-* | --with-*)
551    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid package name: $ac_package" >&2
555   { (exit 1); exit 1; }; }
556    ac_package=`echo $ac_package| sed 's/-/_/g'`
557    case $ac_option in
558      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559      *) ac_optarg=yes ;;
560    esac
561    eval "with_$ac_package='$ac_optarg'" ;;
562
563  -without-* | --without-*)
564    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565    # Reject names that are not valid shell variable names.
566    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567      { echo "$as_me: error: invalid package name: $ac_package" >&2
568   { (exit 1); exit 1; }; }
569    ac_package=`echo $ac_package | sed 's/-/_/g'`
570    eval "with_$ac_package=no" ;;
571
572  --x)
573    # Obsolete; use --with-x.
574    with_x=yes ;;
575
576  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577  | --x-incl | --x-inc | --x-in | --x-i)
578    ac_prev=x_includes ;;
579  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581    x_includes=$ac_optarg ;;
582
583  -x-libraries | --x-libraries | --x-librarie | --x-librari \
584  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585    ac_prev=x_libraries ;;
586  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588    x_libraries=$ac_optarg ;;
589
590  -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592   { (exit 1); exit 1; }; }
593    ;;
594
595  *=*)
596    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597    # Reject names that are not valid shell variable names.
598    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600   { (exit 1); exit 1; }; }
601    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602    eval "$ac_envvar='$ac_optarg'"
603    export $ac_envvar ;;
604
605  *)
606    # FIXME: should be removed in autoconf 3.0.
607    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611    ;;
612
613  esac
614done
615
616if test -n "$ac_prev"; then
617  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618  { echo "$as_me: error: missing argument to $ac_option" >&2
619   { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625  eval ac_val=$`echo $ac_var`
626  case $ac_val in
627    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629   { (exit 1); exit 1; }; };;
630  esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635	      localstatedir libdir includedir oldincludedir infodir mandir
636do
637  eval ac_val=$`echo $ac_var`
638  case $ac_val in
639    [\\/$]* | ?:[\\/]* ) ;;
640    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641   { (exit 1); exit 1; }; };;
642  esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654  if test "x$build_alias" = x; then
655    cross_compiling=maybe
656    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657    If a cross compiler is detected then cross compile mode will be used." >&2
658  elif test "x$build_alias" != "x$host_alias"; then
659    cross_compiling=yes
660  fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671  ac_srcdir_defaulted=yes
672  # Try the directory containing this script, then its parent.
673  ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675	 X"$0" : 'X\(//\)[^/]' \| \
676	 X"$0" : 'X\(//\)$' \| \
677	 X"$0" : 'X\(/\)' \| \
678	 .     : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682  	  /^X\(\/\/\)$/{ s//\1/; q; }
683  	  /^X\(\/\).*/{ s//\1/; q; }
684  	  s/.*/./; q'`
685  srcdir=$ac_confdir
686  if test ! -r $srcdir/$ac_unique_file; then
687    srcdir=..
688  fi
689else
690  ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693  if test "$ac_srcdir_defaulted" = yes; then
694    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695   { (exit 1); exit 1; }; }
696  else
697    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698   { (exit 1); exit 1; }; }
699  fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703   { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_env_CC_set=${CC+set}
718ac_env_CC_value=$CC
719ac_cv_env_CC_set=${CC+set}
720ac_cv_env_CC_value=$CC
721ac_env_CFLAGS_set=${CFLAGS+set}
722ac_env_CFLAGS_value=$CFLAGS
723ac_cv_env_CFLAGS_set=${CFLAGS+set}
724ac_cv_env_CFLAGS_value=$CFLAGS
725ac_env_LDFLAGS_set=${LDFLAGS+set}
726ac_env_LDFLAGS_value=$LDFLAGS
727ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728ac_cv_env_LDFLAGS_value=$LDFLAGS
729ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_env_CPPFLAGS_value=$CPPFLAGS
731ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733ac_env_CPP_set=${CPP+set}
734ac_env_CPP_value=$CPP
735ac_cv_env_CPP_set=${CPP+set}
736ac_cv_env_CPP_value=$CPP
737ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
738ac_env_PKG_CONFIG_value=$PKG_CONFIG
739ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
740ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
741ac_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set}
742ac_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS
743ac_cv_env_TMP_XAW_CFLAGS_set=${TMP_XAW_CFLAGS+set}
744ac_cv_env_TMP_XAW_CFLAGS_value=$TMP_XAW_CFLAGS
745ac_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set}
746ac_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS
747ac_cv_env_TMP_XAW_LIBS_set=${TMP_XAW_LIBS+set}
748ac_cv_env_TMP_XAW_LIBS_value=$TMP_XAW_LIBS
749ac_env_XVIDTUNE_CFLAGS_set=${XVIDTUNE_CFLAGS+set}
750ac_env_XVIDTUNE_CFLAGS_value=$XVIDTUNE_CFLAGS
751ac_cv_env_XVIDTUNE_CFLAGS_set=${XVIDTUNE_CFLAGS+set}
752ac_cv_env_XVIDTUNE_CFLAGS_value=$XVIDTUNE_CFLAGS
753ac_env_XVIDTUNE_LIBS_set=${XVIDTUNE_LIBS+set}
754ac_env_XVIDTUNE_LIBS_value=$XVIDTUNE_LIBS
755ac_cv_env_XVIDTUNE_LIBS_set=${XVIDTUNE_LIBS+set}
756ac_cv_env_XVIDTUNE_LIBS_value=$XVIDTUNE_LIBS
757ac_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
758ac_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
759ac_cv_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set}
760ac_cv_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS
761ac_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
762ac_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
763ac_cv_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set}
764ac_cv_env_APPDEFS_LIBS_value=$APPDEFS_LIBS
765
766#
767# Report the --help message.
768#
769if test "$ac_init_help" = "long"; then
770  # Omit some internal or obsolete options to make the list less imposing.
771  # This message is too long to be a string in the A/UX 3.1 sh.
772  cat <<_ACEOF
773\`configure' configures xvidtune 1.0.1 to adapt to many kinds of systems.
774
775Usage: $0 [OPTION]... [VAR=VALUE]...
776
777To assign environment variables (e.g., CC, CFLAGS...), specify them as
778VAR=VALUE.  See below for descriptions of some of the useful variables.
779
780Defaults for the options are specified in brackets.
781
782Configuration:
783  -h, --help              display this help and exit
784      --help=short        display options specific to this package
785      --help=recursive    display the short help of all the included packages
786  -V, --version           display version information and exit
787  -q, --quiet, --silent   do not print \`checking...' messages
788      --cache-file=FILE   cache test results in FILE [disabled]
789  -C, --config-cache      alias for \`--cache-file=config.cache'
790  -n, --no-create         do not create output files
791      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
792
793_ACEOF
794
795  cat <<_ACEOF
796Installation directories:
797  --prefix=PREFIX         install architecture-independent files in PREFIX
798			  [$ac_default_prefix]
799  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
800			  [PREFIX]
801
802By default, \`make install' will install all the files in
803\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
804an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805for instance \`--prefix=\$HOME'.
806
807For better control, use the options below.
808
809Fine tuning of the installation directories:
810  --bindir=DIR           user executables [EPREFIX/bin]
811  --sbindir=DIR          system admin executables [EPREFIX/sbin]
812  --libexecdir=DIR       program executables [EPREFIX/libexec]
813  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
814  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
815  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
816  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
817  --libdir=DIR           object code libraries [EPREFIX/lib]
818  --includedir=DIR       C header files [PREFIX/include]
819  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
820  --infodir=DIR          info documentation [PREFIX/info]
821  --mandir=DIR           man documentation [PREFIX/man]
822_ACEOF
823
824  cat <<\_ACEOF
825
826Program names:
827  --program-prefix=PREFIX            prepend PREFIX to installed program names
828  --program-suffix=SUFFIX            append SUFFIX to installed program names
829  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
830
831System types:
832  --build=BUILD     configure for building on BUILD [guessed]
833  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
834_ACEOF
835fi
836
837if test -n "$ac_init_help"; then
838  case $ac_init_help in
839     short | recursive ) echo "Configuration of xvidtune 1.0.1:";;
840   esac
841  cat <<\_ACEOF
842
843Optional Features:
844  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
845  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
846  --enable-maintainer-mode enable make rules and dependencies not useful
847                          (and sometimes confusing) to the casual installer
848  --disable-dependency-tracking Speeds up one-time builds
849  --enable-dependency-tracking  Do not reject slow dependency extractors
850  --enable-xprint         Enable XPrint support
851
852Optional Packages:
853  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
854  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
855  --with-vendor-name=VENDOR
856                          Vendor name for disclaimer statement
857  --with-release-version=STRING
858                          Use release version string in package name
859
860Some influential environment variables:
861  CC          C compiler command
862  CFLAGS      C compiler flags
863  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
864              nonstandard directory <lib dir>
865  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
866              headers in a nonstandard directory <include dir>
867  CPP         C preprocessor
868  PKG_CONFIG  path to pkg-config utility
869  TMP_XAW_CFLAGS
870              C compiler flags for TMP_XAW, overriding pkg-config
871  TMP_XAW_LIBS
872              linker flags for TMP_XAW, overriding pkg-config
873  XVIDTUNE_CFLAGS
874              C compiler flags for XVIDTUNE, overriding pkg-config
875  XVIDTUNE_LIBS
876              linker flags for XVIDTUNE, overriding pkg-config
877  APPDEFS_CFLAGS
878              C compiler flags for APPDEFS, overriding pkg-config
879  APPDEFS_LIBS
880              linker flags for APPDEFS, overriding pkg-config
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
886_ACEOF
887fi
888
889if test "$ac_init_help" = "recursive"; then
890  # If there are subdirs, report their specific --help.
891  ac_popdir=`pwd`
892  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893    test -d $ac_dir || continue
894    ac_builddir=.
895
896if test "$ac_dir" != .; then
897  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898  # A "../" for each directory in $ac_dir_suffix.
899  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901  ac_dir_suffix= ac_top_builddir=
902fi
903
904case $srcdir in
905  .)  # No --srcdir option.  We are building in place.
906    ac_srcdir=.
907    if test -z "$ac_top_builddir"; then
908       ac_top_srcdir=.
909    else
910       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911    fi ;;
912  [\\/]* | ?:[\\/]* )  # Absolute path.
913    ac_srcdir=$srcdir$ac_dir_suffix;
914    ac_top_srcdir=$srcdir ;;
915  *) # Relative path.
916    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917    ac_top_srcdir=$ac_top_builddir$srcdir ;;
918esac
919
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `pwd` in
923.) ac_abs_builddir="$ac_dir";;
924*)
925  case "$ac_dir" in
926  .) ac_abs_builddir=`pwd`;;
927  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928  *) ac_abs_builddir=`pwd`/"$ac_dir";;
929  esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_top_builddir=${ac_top_builddir}.;;
933*)
934  case ${ac_top_builddir}. in
935  .) ac_abs_top_builddir=$ac_abs_builddir;;
936  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938  esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_srcdir=$ac_srcdir;;
942*)
943  case $ac_srcdir in
944  .) ac_abs_srcdir=$ac_abs_builddir;;
945  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947  esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_top_srcdir=$ac_top_srcdir;;
951*)
952  case $ac_top_srcdir in
953  .) ac_abs_top_srcdir=$ac_abs_builddir;;
954  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956  esac;;
957esac
958
959    cd $ac_dir
960    # Check for guested configure; otherwise get Cygnus style configure.
961    if test -f $ac_srcdir/configure.gnu; then
962      echo
963      $SHELL $ac_srcdir/configure.gnu  --help=recursive
964    elif test -f $ac_srcdir/configure; then
965      echo
966      $SHELL $ac_srcdir/configure  --help=recursive
967    elif test -f $ac_srcdir/configure.ac ||
968	   test -f $ac_srcdir/configure.in; then
969      echo
970      $ac_configure --help
971    else
972      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973    fi
974    cd $ac_popdir
975  done
976fi
977
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980  cat <<\_ACEOF
981xvidtune configure 1.0.1
982generated by GNU Autoconf 2.59
983
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988  exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
995It was created by xvidtune $as_me 1.0.1, which was
996generated by GNU Autoconf 2.59.  Invocation command line was
997
998  $ $0 $@
999
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1015
1016/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1017/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1020/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1021/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1022/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029  IFS=$as_save_IFS
1030  test -z "$as_dir" && as_dir=.
1031  echo "PATH: $as_dir"
1032done
1033
1034} >&5
1035
1036cat >&5 <<_ACEOF
1037
1038
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058  for ac_arg
1059  do
1060    case $ac_arg in
1061    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063    | -silent | --silent | --silen | --sile | --sil)
1064      continue ;;
1065    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067    esac
1068    case $ac_pass in
1069    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070    2)
1071      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072      if test $ac_must_keep_next = true; then
1073	ac_must_keep_next=false # Got value, back to normal.
1074      else
1075	case $ac_arg in
1076	  *=* | --config-cache | -C | -disable-* | --disable-* \
1077	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079	  | -with-* | --with-* | -without-* | --without-* | --x)
1080	    case "$ac_configure_args0 " in
1081	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082	    esac
1083	    ;;
1084	  -* ) ac_must_keep_next=true ;;
1085	esac
1086      fi
1087      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088      # Get rid of the leading space.
1089      ac_sep=" "
1090      ;;
1091    esac
1092  done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log.  We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103  # Save into config.log some information that might help in debugging.
1104  {
1105    echo
1106
1107    cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112    echo
1113    # The following way of writing the cache mishandles newlines in values,
1114{
1115  (set) 2>&1 |
1116    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117    *ac_space=\ *)
1118      sed -n \
1119	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121      ;;
1122    *)
1123      sed -n \
1124	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125      ;;
1126    esac;
1127}
1128    echo
1129
1130    cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135    echo
1136    for ac_var in $ac_subst_vars
1137    do
1138      eval ac_val=$`echo $ac_var`
1139      echo "$ac_var='"'"'$ac_val'"'"'"
1140    done | sort
1141    echo
1142
1143    if test -n "$ac_subst_files"; then
1144      cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149      echo
1150      for ac_var in $ac_subst_files
1151      do
1152	eval ac_val=$`echo $ac_var`
1153	echo "$ac_var='"'"'$ac_val'"'"'"
1154      done | sort
1155      echo
1156    fi
1157
1158    if test -s confdefs.h; then
1159      cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164      echo
1165      sed "/^$/d" confdefs.h | sort
1166      echo
1167    fi
1168    test "$ac_signal" != 0 &&
1169      echo "$as_me: caught signal $ac_signal"
1170    echo "$as_me: exit $exit_status"
1171  } >&5
1172  rm -f core *.core &&
1173  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174    exit $exit_status
1175     ' 0
1176for ac_signal in 1 2 13 15; do
1177  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216  if test "x$prefix" != xNONE; then
1217    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218  else
1219    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220  fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223  if test -r "$ac_site_file"; then
1224    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226    sed 's/^/| /' "$ac_site_file" >&5
1227    . "$ac_site_file"
1228  fi
1229done
1230
1231if test -r "$cache_file"; then
1232  # Some versions of bash will fail to source /dev/null (special
1233  # files actually), so we avoid doing that.
1234  if test -f "$cache_file"; then
1235    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237    case $cache_file in
1238      [\\/]* | ?:[\\/]* ) . $cache_file;;
1239      *)                      . ./$cache_file;;
1240    esac
1241  fi
1242else
1243  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245  >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254  eval ac_new_set=\$ac_env_${ac_var}_set
1255  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256  eval ac_new_val="\$ac_env_${ac_var}_value"
1257  case $ac_old_set,$ac_new_set in
1258    set,)
1259      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261      ac_cache_corrupted=: ;;
1262    ,set)
1263      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265      ac_cache_corrupted=: ;;
1266    ,);;
1267    *)
1268      if test "x$ac_old_val" != "x$ac_new_val"; then
1269	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1272echo "$as_me:   former value:  $ac_old_val" >&2;}
1273	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1274echo "$as_me:   current value: $ac_new_val" >&2;}
1275	ac_cache_corrupted=:
1276      fi;;
1277  esac
1278  # Pass precious variables to config.status.
1279  if test "$ac_new_set" = set; then
1280    case $ac_new_val in
1281    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283    *) ac_arg=$ac_var=$ac_new_val ;;
1284    esac
1285    case " $ac_configure_args " in
1286      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1287      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288    esac
1289  fi
1290done
1291if $ac_cache_corrupted; then
1292  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296   { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331am__api_version="1.7"
1332ac_aux_dir=
1333for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1334  if test -f $ac_dir/install-sh; then
1335    ac_aux_dir=$ac_dir
1336    ac_install_sh="$ac_aux_dir/install-sh -c"
1337    break
1338  elif test -f $ac_dir/install.sh; then
1339    ac_aux_dir=$ac_dir
1340    ac_install_sh="$ac_aux_dir/install.sh -c"
1341    break
1342  elif test -f $ac_dir/shtool; then
1343    ac_aux_dir=$ac_dir
1344    ac_install_sh="$ac_aux_dir/shtool install -c"
1345    break
1346  fi
1347done
1348if test -z "$ac_aux_dir"; then
1349  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1350echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1351   { (exit 1); exit 1; }; }
1352fi
1353ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1356
1357# Find a good install program.  We prefer a C program (faster),
1358# so one script is as good as another.  But avoid the broken or
1359# incompatible versions:
1360# SysV /etc/install, /usr/sbin/install
1361# SunOS /usr/etc/install
1362# IRIX /sbin/install
1363# AIX /bin/install
1364# AmigaOS /C/install, which installs bootblocks on floppy discs
1365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1368# OS/2's system install, which has a completely different semantic
1369# ./install, which can be erroneously created by make from ./install.sh.
1370echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1371echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1372if test -z "$INSTALL"; then
1373if test "${ac_cv_path_install+set}" = set; then
1374  echo $ECHO_N "(cached) $ECHO_C" >&6
1375else
1376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377for as_dir in $PATH
1378do
1379  IFS=$as_save_IFS
1380  test -z "$as_dir" && as_dir=.
1381  # Account for people who put trailing slashes in PATH elements.
1382case $as_dir/ in
1383  ./ | .// | /cC/* | \
1384  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1385  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1386  /usr/ucb/* ) ;;
1387  *)
1388    # OSF1 and SCO ODT 3.0 have their own names for install.
1389    # Don't use installbsd from OSF since it installs stuff as root
1390    # by default.
1391    for ac_prog in ginstall scoinst install; do
1392      for ac_exec_ext in '' $ac_executable_extensions; do
1393	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1394	  if test $ac_prog = install &&
1395	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1396	    # AIX install.  It has an incompatible calling convention.
1397	    :
1398	  elif test $ac_prog = install &&
1399	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1400	    # program-specific install script used by HP pwplus--don't use.
1401	    :
1402	  else
1403	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1404	    break 3
1405	  fi
1406	fi
1407      done
1408    done
1409    ;;
1410esac
1411done
1412
1413
1414fi
1415  if test "${ac_cv_path_install+set}" = set; then
1416    INSTALL=$ac_cv_path_install
1417  else
1418    # As a last resort, use the slow shell script.  We don't cache a
1419    # path for INSTALL within a source directory, because that will
1420    # break other packages using the cache if that directory is
1421    # removed, or if the path is relative.
1422    INSTALL=$ac_install_sh
1423  fi
1424fi
1425echo "$as_me:$LINENO: result: $INSTALL" >&5
1426echo "${ECHO_T}$INSTALL" >&6
1427
1428# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1429# It thinks the first close brace ends the variable substitution.
1430test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1431
1432test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1433
1434test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1435
1436echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1437echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1438# Just in case
1439sleep 1
1440echo timestamp > conftest.file
1441# Do `set' in a subshell so we don't clobber the current shell's
1442# arguments.  Must try -L first in case configure is actually a
1443# symlink; some systems play weird games with the mod time of symlinks
1444# (eg FreeBSD returns the mod time of the symlink's containing
1445# directory).
1446if (
1447   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1448   if test "$*" = "X"; then
1449      # -L didn't work.
1450      set X `ls -t $srcdir/configure conftest.file`
1451   fi
1452   rm -f conftest.file
1453   if test "$*" != "X $srcdir/configure conftest.file" \
1454      && test "$*" != "X conftest.file $srcdir/configure"; then
1455
1456      # If neither matched, then we have a broken ls.  This can happen
1457      # if, for instance, CONFIG_SHELL is bash and it inherits a
1458      # broken ls alias from the environment.  This has actually
1459      # happened.  Such a system could not be considered "sane".
1460      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1461alias in your environment" >&5
1462echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1463alias in your environment" >&2;}
1464   { (exit 1); exit 1; }; }
1465   fi
1466
1467   test "$2" = conftest.file
1468   )
1469then
1470   # Ok.
1471   :
1472else
1473   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1474Check your system clock" >&5
1475echo "$as_me: error: newly created file is older than distributed files!
1476Check your system clock" >&2;}
1477   { (exit 1); exit 1; }; }
1478fi
1479echo "$as_me:$LINENO: result: yes" >&5
1480echo "${ECHO_T}yes" >&6
1481test "$program_prefix" != NONE &&
1482  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1483# Use a double $ so make ignores it.
1484test "$program_suffix" != NONE &&
1485  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1486# Double any \ or $.  echo might interpret backslashes.
1487# By default was `s,x,x', remove it if useless.
1488cat <<\_ACEOF >conftest.sed
1489s/[\\$]/&&/g;s/;s,x,x,$//
1490_ACEOF
1491program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1492rm conftest.sed
1493
1494
1495# expand $ac_aux_dir to an absolute path
1496am_aux_dir=`cd $ac_aux_dir && pwd`
1497
1498test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1499# Use eval to expand $SHELL
1500if eval "$MISSING --run true"; then
1501  am_missing_run="$MISSING --run "
1502else
1503  am_missing_run=
1504  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1505echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1506fi
1507
1508for ac_prog in gawk mawk nawk awk
1509do
1510  # Extract the first word of "$ac_prog", so it can be a program name with args.
1511set dummy $ac_prog; ac_word=$2
1512echo "$as_me:$LINENO: checking for $ac_word" >&5
1513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514if test "${ac_cv_prog_AWK+set}" = set; then
1515  echo $ECHO_N "(cached) $ECHO_C" >&6
1516else
1517  if test -n "$AWK"; then
1518  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1519else
1520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521for as_dir in $PATH
1522do
1523  IFS=$as_save_IFS
1524  test -z "$as_dir" && as_dir=.
1525  for ac_exec_ext in '' $ac_executable_extensions; do
1526  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527    ac_cv_prog_AWK="$ac_prog"
1528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1529    break 2
1530  fi
1531done
1532done
1533
1534fi
1535fi
1536AWK=$ac_cv_prog_AWK
1537if test -n "$AWK"; then
1538  echo "$as_me:$LINENO: result: $AWK" >&5
1539echo "${ECHO_T}$AWK" >&6
1540else
1541  echo "$as_me:$LINENO: result: no" >&5
1542echo "${ECHO_T}no" >&6
1543fi
1544
1545  test -n "$AWK" && break
1546done
1547
1548echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1549echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1550set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1551if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1552  echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554  cat >conftest.make <<\_ACEOF
1555all:
1556	@echo 'ac_maketemp="$(MAKE)"'
1557_ACEOF
1558# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1559eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1560if test -n "$ac_maketemp"; then
1561  eval ac_cv_prog_make_${ac_make}_set=yes
1562else
1563  eval ac_cv_prog_make_${ac_make}_set=no
1564fi
1565rm -f conftest.make
1566fi
1567if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1568  echo "$as_me:$LINENO: result: yes" >&5
1569echo "${ECHO_T}yes" >&6
1570  SET_MAKE=
1571else
1572  echo "$as_me:$LINENO: result: no" >&5
1573echo "${ECHO_T}no" >&6
1574  SET_MAKE="MAKE=${MAKE-make}"
1575fi
1576
1577rm -rf .tst 2>/dev/null
1578mkdir .tst 2>/dev/null
1579if test -d .tst; then
1580  am__leading_dot=.
1581else
1582  am__leading_dot=_
1583fi
1584rmdir .tst 2>/dev/null
1585
1586 # test to see if srcdir already configured
1587if test "`cd $srcdir && pwd`" != "`pwd`" &&
1588   test -f $srcdir/config.status; then
1589  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1590echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1591   { (exit 1); exit 1; }; }
1592fi
1593
1594# test whether we have cygpath
1595if test -z "$CYGPATH_W"; then
1596  if (cygpath --version) >/dev/null 2>/dev/null; then
1597    CYGPATH_W='cygpath -w'
1598  else
1599    CYGPATH_W=echo
1600  fi
1601fi
1602
1603
1604# Define the identity of the package.
1605 PACKAGE='xvidtune'
1606 VERSION='1.0.1'
1607
1608
1609cat >>confdefs.h <<_ACEOF
1610#define PACKAGE "$PACKAGE"
1611_ACEOF
1612
1613
1614cat >>confdefs.h <<_ACEOF
1615#define VERSION "$VERSION"
1616_ACEOF
1617
1618# Some tools Automake needs.
1619
1620ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1621
1622
1623AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1624
1625
1626AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1627
1628
1629AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1630
1631
1632MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1633
1634
1635AMTAR=${AMTAR-"${am_missing_run}tar"}
1636
1637install_sh=${install_sh-"$am_aux_dir/install-sh"}
1638
1639# Installed binaries are usually stripped using `strip' when the user
1640# run `make install-strip'.  However `strip' might not be the right
1641# tool to use in cross-compilation environments, therefore Automake
1642# will honor the `STRIP' environment variable to overrule this program.
1643if test "$cross_compiling" != no; then
1644  if test -n "$ac_tool_prefix"; then
1645  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1646set dummy ${ac_tool_prefix}strip; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_STRIP+set}" = set; then
1650  echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652  if test -n "$STRIP"; then
1653  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658  IFS=$as_save_IFS
1659  test -z "$as_dir" && as_dir=.
1660  for ac_exec_ext in '' $ac_executable_extensions; do
1661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664    break 2
1665  fi
1666done
1667done
1668
1669fi
1670fi
1671STRIP=$ac_cv_prog_STRIP
1672if test -n "$STRIP"; then
1673  echo "$as_me:$LINENO: result: $STRIP" >&5
1674echo "${ECHO_T}$STRIP" >&6
1675else
1676  echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680fi
1681if test -z "$ac_cv_prog_STRIP"; then
1682  ac_ct_STRIP=$STRIP
1683  # Extract the first word of "strip", so it can be a program name with args.
1684set dummy strip; ac_word=$2
1685echo "$as_me:$LINENO: checking for $ac_word" >&5
1686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1688  echo $ECHO_N "(cached) $ECHO_C" >&6
1689else
1690  if test -n "$ac_ct_STRIP"; then
1691  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1692else
1693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694for as_dir in $PATH
1695do
1696  IFS=$as_save_IFS
1697  test -z "$as_dir" && as_dir=.
1698  for ac_exec_ext in '' $ac_executable_extensions; do
1699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700    ac_cv_prog_ac_ct_STRIP="strip"
1701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702    break 2
1703  fi
1704done
1705done
1706
1707  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1708fi
1709fi
1710ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1711if test -n "$ac_ct_STRIP"; then
1712  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1713echo "${ECHO_T}$ac_ct_STRIP" >&6
1714else
1715  echo "$as_me:$LINENO: result: no" >&5
1716echo "${ECHO_T}no" >&6
1717fi
1718
1719  STRIP=$ac_ct_STRIP
1720else
1721  STRIP="$ac_cv_prog_STRIP"
1722fi
1723
1724fi
1725INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1726
1727# We need awk for the "check" target.  The system "awk" is bad on
1728# some platforms.
1729
1730
1731
1732echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1733echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1734    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1735if test "${enable_maintainer_mode+set}" = set; then
1736  enableval="$enable_maintainer_mode"
1737  USE_MAINTAINER_MODE=$enableval
1738else
1739  USE_MAINTAINER_MODE=no
1740fi;
1741  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1742echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1743
1744
1745if test $USE_MAINTAINER_MODE = yes; then
1746  MAINTAINER_MODE_TRUE=
1747  MAINTAINER_MODE_FALSE='#'
1748else
1749  MAINTAINER_MODE_TRUE='#'
1750  MAINTAINER_MODE_FALSE=
1751fi
1752
1753  MAINT=$MAINTAINER_MODE_TRUE
1754
1755
1756
1757          ac_config_headers="$ac_config_headers config.h"
1758
1759
1760ac_ext=c
1761ac_cpp='$CPP $CPPFLAGS'
1762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1764ac_compiler_gnu=$ac_cv_c_compiler_gnu
1765if test -n "$ac_tool_prefix"; then
1766  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1767set dummy ${ac_tool_prefix}gcc; ac_word=$2
1768echo "$as_me:$LINENO: checking for $ac_word" >&5
1769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770if test "${ac_cv_prog_CC+set}" = set; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  if test -n "$CC"; then
1774  ac_cv_prog_CC="$CC" # Let the user override the test.
1775else
1776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779  IFS=$as_save_IFS
1780  test -z "$as_dir" && as_dir=.
1781  for ac_exec_ext in '' $ac_executable_extensions; do
1782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785    break 2
1786  fi
1787done
1788done
1789
1790fi
1791fi
1792CC=$ac_cv_prog_CC
1793if test -n "$CC"; then
1794  echo "$as_me:$LINENO: result: $CC" >&5
1795echo "${ECHO_T}$CC" >&6
1796else
1797  echo "$as_me:$LINENO: result: no" >&5
1798echo "${ECHO_T}no" >&6
1799fi
1800
1801fi
1802if test -z "$ac_cv_prog_CC"; then
1803  ac_ct_CC=$CC
1804  # Extract the first word of "gcc", so it can be a program name with args.
1805set dummy gcc; ac_word=$2
1806echo "$as_me:$LINENO: checking for $ac_word" >&5
1807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1809  echo $ECHO_N "(cached) $ECHO_C" >&6
1810else
1811  if test -n "$ac_ct_CC"; then
1812  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1813else
1814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815for as_dir in $PATH
1816do
1817  IFS=$as_save_IFS
1818  test -z "$as_dir" && as_dir=.
1819  for ac_exec_ext in '' $ac_executable_extensions; do
1820  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821    ac_cv_prog_ac_ct_CC="gcc"
1822    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823    break 2
1824  fi
1825done
1826done
1827
1828fi
1829fi
1830ac_ct_CC=$ac_cv_prog_ac_ct_CC
1831if test -n "$ac_ct_CC"; then
1832  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1833echo "${ECHO_T}$ac_ct_CC" >&6
1834else
1835  echo "$as_me:$LINENO: result: no" >&5
1836echo "${ECHO_T}no" >&6
1837fi
1838
1839  CC=$ac_ct_CC
1840else
1841  CC="$ac_cv_prog_CC"
1842fi
1843
1844if test -z "$CC"; then
1845  if test -n "$ac_tool_prefix"; then
1846  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1847set dummy ${ac_tool_prefix}cc; ac_word=$2
1848echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850if test "${ac_cv_prog_CC+set}" = set; then
1851  echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853  if test -n "$CC"; then
1854  ac_cv_prog_CC="$CC" # Let the user override the test.
1855else
1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857for as_dir in $PATH
1858do
1859  IFS=$as_save_IFS
1860  test -z "$as_dir" && as_dir=.
1861  for ac_exec_ext in '' $ac_executable_extensions; do
1862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863    ac_cv_prog_CC="${ac_tool_prefix}cc"
1864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865    break 2
1866  fi
1867done
1868done
1869
1870fi
1871fi
1872CC=$ac_cv_prog_CC
1873if test -n "$CC"; then
1874  echo "$as_me:$LINENO: result: $CC" >&5
1875echo "${ECHO_T}$CC" >&6
1876else
1877  echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881fi
1882if test -z "$ac_cv_prog_CC"; then
1883  ac_ct_CC=$CC
1884  # Extract the first word of "cc", so it can be a program name with args.
1885set dummy cc; ac_word=$2
1886echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1889  echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891  if test -n "$ac_ct_CC"; then
1892  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897  IFS=$as_save_IFS
1898  test -z "$as_dir" && as_dir=.
1899  for ac_exec_ext in '' $ac_executable_extensions; do
1900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901    ac_cv_prog_ac_ct_CC="cc"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908fi
1909fi
1910ac_ct_CC=$ac_cv_prog_ac_ct_CC
1911if test -n "$ac_ct_CC"; then
1912  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1913echo "${ECHO_T}$ac_ct_CC" >&6
1914else
1915  echo "$as_me:$LINENO: result: no" >&5
1916echo "${ECHO_T}no" >&6
1917fi
1918
1919  CC=$ac_ct_CC
1920else
1921  CC="$ac_cv_prog_CC"
1922fi
1923
1924fi
1925if test -z "$CC"; then
1926  # Extract the first word of "cc", so it can be a program name with args.
1927set dummy cc; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_CC+set}" = set; then
1931  echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933  if test -n "$CC"; then
1934  ac_cv_prog_CC="$CC" # Let the user override the test.
1935else
1936  ac_prog_rejected=no
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  test -z "$as_dir" && as_dir=.
1942  for ac_exec_ext in '' $ac_executable_extensions; do
1943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945       ac_prog_rejected=yes
1946       continue
1947     fi
1948    ac_cv_prog_CC="cc"
1949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950    break 2
1951  fi
1952done
1953done
1954
1955if test $ac_prog_rejected = yes; then
1956  # We found a bogon in the path, so make sure we never use it.
1957  set dummy $ac_cv_prog_CC
1958  shift
1959  if test $# != 0; then
1960    # We chose a different compiler from the bogus one.
1961    # However, it has the same basename, so the bogon will be chosen
1962    # first if we set CC to just the basename; use the full file name.
1963    shift
1964    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965  fi
1966fi
1967fi
1968fi
1969CC=$ac_cv_prog_CC
1970if test -n "$CC"; then
1971  echo "$as_me:$LINENO: result: $CC" >&5
1972echo "${ECHO_T}$CC" >&6
1973else
1974  echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6
1976fi
1977
1978fi
1979if test -z "$CC"; then
1980  if test -n "$ac_tool_prefix"; then
1981  for ac_prog in cl
1982  do
1983    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_CC+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$CC"; then
1991  ac_cv_prog_CC="$CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006
2007fi
2008fi
2009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011  echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6
2013else
2014  echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018    test -n "$CC" && break
2019  done
2020fi
2021if test -z "$CC"; then
2022  ac_ct_CC=$CC
2023  for ac_prog in cl
2024do
2025  # Extract the first word of "$ac_prog", so it can be a program name with args.
2026set dummy $ac_prog; ac_word=$2
2027echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  if test -n "$ac_ct_CC"; then
2033  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038  IFS=$as_save_IFS
2039  test -z "$as_dir" && as_dir=.
2040  for ac_exec_ext in '' $ac_executable_extensions; do
2041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042    ac_cv_prog_ac_ct_CC="$ac_prog"
2043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044    break 2
2045  fi
2046done
2047done
2048
2049fi
2050fi
2051ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052if test -n "$ac_ct_CC"; then
2053  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054echo "${ECHO_T}$ac_ct_CC" >&6
2055else
2056  echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
2060  test -n "$ac_ct_CC" && break
2061done
2062
2063  CC=$ac_ct_CC
2064fi
2065
2066fi
2067
2068
2069test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070See \`config.log' for more details." >&5
2071echo "$as_me: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&2;}
2073   { (exit 1); exit 1; }; }
2074
2075# Provide some information about the compiler.
2076echo "$as_me:$LINENO:" \
2077     "checking for C compiler version" >&5
2078ac_compiler=`set X $ac_compile; echo $2`
2079{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2080  (eval $ac_compiler --version </dev/null >&5) 2>&5
2081  ac_status=$?
2082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083  (exit $ac_status); }
2084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2085  (eval $ac_compiler -v </dev/null >&5) 2>&5
2086  ac_status=$?
2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088  (exit $ac_status); }
2089{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2090  (eval $ac_compiler -V </dev/null >&5) 2>&5
2091  ac_status=$?
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); }
2094
2095cat >conftest.$ac_ext <<_ACEOF
2096/* confdefs.h.  */
2097_ACEOF
2098cat confdefs.h >>conftest.$ac_ext
2099cat >>conftest.$ac_ext <<_ACEOF
2100/* end confdefs.h.  */
2101
2102int
2103main ()
2104{
2105
2106  ;
2107  return 0;
2108}
2109_ACEOF
2110ac_clean_files_save=$ac_clean_files
2111ac_clean_files="$ac_clean_files a.out a.exe b.out"
2112# Try to create an executable without -o first, disregard a.out.
2113# It will help us diagnose broken compilers, and finding out an intuition
2114# of exeext.
2115echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2116echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2117ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2118if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2119  (eval $ac_link_default) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; then
2123  # Find the output, starting from the most likely.  This scheme is
2124# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2125# resort.
2126
2127# Be careful to initialize this variable, since it used to be cached.
2128# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2129ac_cv_exeext=
2130# b.out is created by i960 compilers.
2131for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2132do
2133  test -f "$ac_file" || continue
2134  case $ac_file in
2135    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2136	;;
2137    conftest.$ac_ext )
2138	# This is the source file.
2139	;;
2140    [ab].out )
2141	# We found the default executable, but exeext='' is most
2142	# certainly right.
2143	break;;
2144    *.* )
2145	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146	# FIXME: I believe we export ac_cv_exeext for Libtool,
2147	# but it would be cool to find out if it's true.  Does anybody
2148	# maintain Libtool? --akim.
2149	export ac_cv_exeext
2150	break;;
2151    * )
2152	break;;
2153  esac
2154done
2155else
2156  echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: C compiler cannot create executables
2162See \`config.log' for more details." >&2;}
2163   { (exit 77); exit 77; }; }
2164fi
2165
2166ac_exeext=$ac_cv_exeext
2167echo "$as_me:$LINENO: result: $ac_file" >&5
2168echo "${ECHO_T}$ac_file" >&6
2169
2170# Check the compiler produces executables we can run.  If not, either
2171# the compiler is broken, or we cross compile.
2172echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2173echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2174# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2175# If not cross compiling, check that we can run a simple program.
2176if test "$cross_compiling" != yes; then
2177  if { ac_try='./$ac_file'
2178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179  (eval $ac_try) 2>&5
2180  ac_status=$?
2181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182  (exit $ac_status); }; }; then
2183    cross_compiling=no
2184  else
2185    if test "$cross_compiling" = maybe; then
2186	cross_compiling=yes
2187    else
2188	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2189If you meant to cross compile, use \`--host'.
2190See \`config.log' for more details." >&5
2191echo "$as_me: error: cannot run C compiled programs.
2192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&2;}
2194   { (exit 1); exit 1; }; }
2195    fi
2196  fi
2197fi
2198echo "$as_me:$LINENO: result: yes" >&5
2199echo "${ECHO_T}yes" >&6
2200
2201rm -f a.out a.exe conftest$ac_cv_exeext b.out
2202ac_clean_files=$ac_clean_files_save
2203# Check the compiler produces executables we can run.  If not, either
2204# the compiler is broken, or we cross compile.
2205echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2206echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2207echo "$as_me:$LINENO: result: $cross_compiling" >&5
2208echo "${ECHO_T}$cross_compiling" >&6
2209
2210echo "$as_me:$LINENO: checking for suffix of executables" >&5
2211echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2213  (eval $ac_link) 2>&5
2214  ac_status=$?
2215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216  (exit $ac_status); }; then
2217  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2218# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2219# work properly (i.e., refer to `conftest.exe'), while it won't with
2220# `rm'.
2221for ac_file in conftest.exe conftest conftest.*; do
2222  test -f "$ac_file" || continue
2223  case $ac_file in
2224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2225    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2226	  export ac_cv_exeext
2227	  break;;
2228    * ) break;;
2229  esac
2230done
2231else
2232  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2233See \`config.log' for more details." >&5
2234echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2235See \`config.log' for more details." >&2;}
2236   { (exit 1); exit 1; }; }
2237fi
2238
2239rm -f conftest$ac_cv_exeext
2240echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2241echo "${ECHO_T}$ac_cv_exeext" >&6
2242
2243rm -f conftest.$ac_ext
2244EXEEXT=$ac_cv_exeext
2245ac_exeext=$EXEEXT
2246echo "$as_me:$LINENO: checking for suffix of object files" >&5
2247echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2248if test "${ac_cv_objext+set}" = set; then
2249  echo $ECHO_N "(cached) $ECHO_C" >&6
2250else
2251  cat >conftest.$ac_ext <<_ACEOF
2252/* confdefs.h.  */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h.  */
2257
2258int
2259main ()
2260{
2261
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266rm -f conftest.o conftest.obj
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268  (eval $ac_compile) 2>&5
2269  ac_status=$?
2270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271  (exit $ac_status); }; then
2272  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2273  case $ac_file in
2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2275    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2276       break;;
2277  esac
2278done
2279else
2280  echo "$as_me: failed program was:" >&5
2281sed 's/^/| /' conftest.$ac_ext >&5
2282
2283{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2284See \`config.log' for more details." >&5
2285echo "$as_me: error: cannot compute suffix of object files: cannot compile
2286See \`config.log' for more details." >&2;}
2287   { (exit 1); exit 1; }; }
2288fi
2289
2290rm -f conftest.$ac_cv_objext conftest.$ac_ext
2291fi
2292echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2293echo "${ECHO_T}$ac_cv_objext" >&6
2294OBJEXT=$ac_cv_objext
2295ac_objext=$OBJEXT
2296echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2297echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2298if test "${ac_cv_c_compiler_gnu+set}" = set; then
2299  echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301  cat >conftest.$ac_ext <<_ACEOF
2302/* confdefs.h.  */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h.  */
2307
2308int
2309main ()
2310{
2311#ifndef __GNUC__
2312       choke me
2313#endif
2314
2315  ;
2316  return 0;
2317}
2318_ACEOF
2319rm -f conftest.$ac_objext
2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321  (eval $ac_compile) 2>conftest.er1
2322  ac_status=$?
2323  grep -v '^ *+' conftest.er1 >conftest.err
2324  rm -f conftest.er1
2325  cat conftest.err >&5
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); } &&
2328	 { ac_try='test -z "$ac_c_werror_flag"
2329			 || test ! -s conftest.err'
2330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331  (eval $ac_try) 2>&5
2332  ac_status=$?
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); }; } &&
2335	 { ac_try='test -s conftest.$ac_objext'
2336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337  (eval $ac_try) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; }; then
2341  ac_compiler_gnu=yes
2342else
2343  echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346ac_compiler_gnu=no
2347fi
2348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2349ac_cv_c_compiler_gnu=$ac_compiler_gnu
2350
2351fi
2352echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2353echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2354GCC=`test $ac_compiler_gnu = yes && echo yes`
2355ac_test_CFLAGS=${CFLAGS+set}
2356ac_save_CFLAGS=$CFLAGS
2357CFLAGS="-g"
2358echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2359echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2360if test "${ac_cv_prog_cc_g+set}" = set; then
2361  echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363  cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h.  */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h.  */
2369
2370int
2371main ()
2372{
2373
2374  ;
2375  return 0;
2376}
2377_ACEOF
2378rm -f conftest.$ac_objext
2379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380  (eval $ac_compile) 2>conftest.er1
2381  ac_status=$?
2382  grep -v '^ *+' conftest.er1 >conftest.err
2383  rm -f conftest.er1
2384  cat conftest.err >&5
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); } &&
2387	 { ac_try='test -z "$ac_c_werror_flag"
2388			 || test ! -s conftest.err'
2389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390  (eval $ac_try) 2>&5
2391  ac_status=$?
2392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393  (exit $ac_status); }; } &&
2394	 { ac_try='test -s conftest.$ac_objext'
2395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396  (eval $ac_try) 2>&5
2397  ac_status=$?
2398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399  (exit $ac_status); }; }; then
2400  ac_cv_prog_cc_g=yes
2401else
2402  echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405ac_cv_prog_cc_g=no
2406fi
2407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2408fi
2409echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411if test "$ac_test_CFLAGS" = set; then
2412  CFLAGS=$ac_save_CFLAGS
2413elif test $ac_cv_prog_cc_g = yes; then
2414  if test "$GCC" = yes; then
2415    CFLAGS="-g -O2"
2416  else
2417    CFLAGS="-g"
2418  fi
2419else
2420  if test "$GCC" = yes; then
2421    CFLAGS="-O2"
2422  else
2423    CFLAGS=
2424  fi
2425fi
2426echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429  echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431  ac_cv_prog_cc_stdc=no
2432ac_save_CC=$CC
2433cat >conftest.$ac_ext <<_ACEOF
2434/* confdefs.h.  */
2435_ACEOF
2436cat confdefs.h >>conftest.$ac_ext
2437cat >>conftest.$ac_ext <<_ACEOF
2438/* end confdefs.h.  */
2439#include <stdarg.h>
2440#include <stdio.h>
2441#include <sys/types.h>
2442#include <sys/stat.h>
2443/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2444struct buf { int x; };
2445FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446static char *e (p, i)
2447     char **p;
2448     int i;
2449{
2450  return p[i];
2451}
2452static char *f (char * (*g) (char **, int), char **p, ...)
2453{
2454  char *s;
2455  va_list v;
2456  va_start (v,p);
2457  s = g (p, va_arg (v,int));
2458  va_end (v);
2459  return s;
2460}
2461
2462/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2463   function prototypes and stuff, but not '\xHH' hex character constants.
2464   These don't provoke an error unfortunately, instead are silently treated
2465   as 'x'.  The following induces an error, until -std1 is added to get
2466   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2467   array size at least.  It's necessary to write '\x00'==0 to get something
2468   that's true only with -std1.  */
2469int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2470
2471int test (int i, double x);
2472struct s1 {int (*f) (int a);};
2473struct s2 {int (*f) (double a);};
2474int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2475int argc;
2476char **argv;
2477int
2478main ()
2479{
2480return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485# Don't try gcc -ansi; that turns off useful extensions and
2486# breaks some systems' header files.
2487# AIX			-qlanglvl=ansi
2488# Ultrix and OSF/1	-std1
2489# HP-UX 10.20 and later	-Ae
2490# HP-UX older versions	-Aa -D_HPUX_SOURCE
2491# SVR4			-Xc -D__EXTENSIONS__
2492for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493do
2494  CC="$ac_save_CC $ac_arg"
2495  rm -f conftest.$ac_objext
2496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497  (eval $ac_compile) 2>conftest.er1
2498  ac_status=$?
2499  grep -v '^ *+' conftest.er1 >conftest.err
2500  rm -f conftest.er1
2501  cat conftest.err >&5
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); } &&
2504	 { ac_try='test -z "$ac_c_werror_flag"
2505			 || test ! -s conftest.err'
2506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507  (eval $ac_try) 2>&5
2508  ac_status=$?
2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510  (exit $ac_status); }; } &&
2511	 { ac_try='test -s conftest.$ac_objext'
2512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513  (eval $ac_try) 2>&5
2514  ac_status=$?
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); }; }; then
2517  ac_cv_prog_cc_stdc=$ac_arg
2518break
2519else
2520  echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523fi
2524rm -f conftest.err conftest.$ac_objext
2525done
2526rm -f conftest.$ac_ext conftest.$ac_objext
2527CC=$ac_save_CC
2528
2529fi
2530
2531case "x$ac_cv_prog_cc_stdc" in
2532  x|xno)
2533    echo "$as_me:$LINENO: result: none needed" >&5
2534echo "${ECHO_T}none needed" >&6 ;;
2535  *)
2536    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538    CC="$CC $ac_cv_prog_cc_stdc" ;;
2539esac
2540
2541# Some people use a C++ compiler to compile C.  Since we use `exit',
2542# in C++ we need to declare it.  In case someone uses the same compiler
2543# for both compiling C and C++ we need to have the C++ compiler decide
2544# the declaration of exit, since it's the most demanding environment.
2545cat >conftest.$ac_ext <<_ACEOF
2546#ifndef __cplusplus
2547  choke me
2548#endif
2549_ACEOF
2550rm -f conftest.$ac_objext
2551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552  (eval $ac_compile) 2>conftest.er1
2553  ac_status=$?
2554  grep -v '^ *+' conftest.er1 >conftest.err
2555  rm -f conftest.er1
2556  cat conftest.err >&5
2557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558  (exit $ac_status); } &&
2559	 { ac_try='test -z "$ac_c_werror_flag"
2560			 || test ! -s conftest.err'
2561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562  (eval $ac_try) 2>&5
2563  ac_status=$?
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); }; } &&
2566	 { ac_try='test -s conftest.$ac_objext'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; }; then
2572  for ac_declaration in \
2573   '' \
2574   'extern "C" void std::exit (int) throw (); using std::exit;' \
2575   'extern "C" void std::exit (int); using std::exit;' \
2576   'extern "C" void exit (int) throw ();' \
2577   'extern "C" void exit (int);' \
2578   'void exit (int);'
2579do
2580  cat >conftest.$ac_ext <<_ACEOF
2581/* confdefs.h.  */
2582_ACEOF
2583cat confdefs.h >>conftest.$ac_ext
2584cat >>conftest.$ac_ext <<_ACEOF
2585/* end confdefs.h.  */
2586$ac_declaration
2587#include <stdlib.h>
2588int
2589main ()
2590{
2591exit (42);
2592  ;
2593  return 0;
2594}
2595_ACEOF
2596rm -f conftest.$ac_objext
2597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598  (eval $ac_compile) 2>conftest.er1
2599  ac_status=$?
2600  grep -v '^ *+' conftest.er1 >conftest.err
2601  rm -f conftest.er1
2602  cat conftest.err >&5
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); } &&
2605	 { ac_try='test -z "$ac_c_werror_flag"
2606			 || test ! -s conftest.err'
2607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608  (eval $ac_try) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; } &&
2612	 { ac_try='test -s conftest.$ac_objext'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; }; then
2618  :
2619else
2620  echo "$as_me: failed program was:" >&5
2621sed 's/^/| /' conftest.$ac_ext >&5
2622
2623continue
2624fi
2625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626  cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h.  */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h.  */
2632$ac_declaration
2633int
2634main ()
2635{
2636exit (42);
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
2642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643  (eval $ac_compile) 2>conftest.er1
2644  ac_status=$?
2645  grep -v '^ *+' conftest.er1 >conftest.err
2646  rm -f conftest.er1
2647  cat conftest.err >&5
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650	 { ac_try='test -z "$ac_c_werror_flag"
2651			 || test ! -s conftest.err'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; } &&
2657	 { ac_try='test -s conftest.$ac_objext'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; }; then
2663  break
2664else
2665  echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668fi
2669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670done
2671rm -f conftest*
2672if test -n "$ac_declaration"; then
2673  echo '#ifdef __cplusplus' >>confdefs.h
2674  echo $ac_declaration      >>confdefs.h
2675  echo '#endif'             >>confdefs.h
2676fi
2677
2678else
2679  echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682fi
2683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684ac_ext=c
2685ac_cpp='$CPP $CPPFLAGS'
2686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2688ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689DEPDIR="${am__leading_dot}deps"
2690
2691          ac_config_commands="$ac_config_commands depfiles"
2692
2693
2694am_make=${MAKE-make}
2695cat > confinc << 'END'
2696am__doit:
2697	@echo done
2698.PHONY: am__doit
2699END
2700# If we don't find an include directive, just comment out the code.
2701echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2702echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2703am__include="#"
2704am__quote=
2705_am_result=none
2706# First try GNU make style include.
2707echo "include confinc" > confmf
2708# We grep out `Entering directory' and `Leaving directory'
2709# messages which can occur if `w' ends up in MAKEFLAGS.
2710# In particular we don't look at `^make:' because GNU make might
2711# be invoked under some other name (usually "gmake"), in which
2712# case it prints its new name instead of `make'.
2713if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2714   am__include=include
2715   am__quote=
2716   _am_result=GNU
2717fi
2718# Now try BSD make style include.
2719if test "$am__include" = "#"; then
2720   echo '.include "confinc"' > confmf
2721   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2722      am__include=.include
2723      am__quote="\""
2724      _am_result=BSD
2725   fi
2726fi
2727
2728
2729echo "$as_me:$LINENO: result: $_am_result" >&5
2730echo "${ECHO_T}$_am_result" >&6
2731rm -f confinc confmf
2732
2733# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2734if test "${enable_dependency_tracking+set}" = set; then
2735  enableval="$enable_dependency_tracking"
2736
2737fi;
2738if test "x$enable_dependency_tracking" != xno; then
2739  am_depcomp="$ac_aux_dir/depcomp"
2740  AMDEPBACKSLASH='\'
2741fi
2742
2743
2744if test "x$enable_dependency_tracking" != xno; then
2745  AMDEP_TRUE=
2746  AMDEP_FALSE='#'
2747else
2748  AMDEP_TRUE='#'
2749  AMDEP_FALSE=
2750fi
2751
2752
2753
2754
2755depcc="$CC"   am_compiler_list=
2756
2757echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2758echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2759if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2760  echo $ECHO_N "(cached) $ECHO_C" >&6
2761else
2762  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2763  # We make a subdir and do the tests there.  Otherwise we can end up
2764  # making bogus files that we don't know about and never remove.  For
2765  # instance it was reported that on HP-UX the gcc test will end up
2766  # making a dummy file named `D' -- because `-MD' means `put the output
2767  # in D'.
2768  mkdir conftest.dir
2769  # Copy depcomp to subdir because otherwise we won't find it if we're
2770  # using a relative directory.
2771  cp "$am_depcomp" conftest.dir
2772  cd conftest.dir
2773  # We will build objects and dependencies in a subdirectory because
2774  # it helps to detect inapplicable dependency modes.  For instance
2775  # both Tru64's cc and ICC support -MD to output dependencies as a
2776  # side effect of compilation, but ICC will put the dependencies in
2777  # the current directory while Tru64 will put them in the object
2778  # directory.
2779  mkdir sub
2780
2781  am_cv_CC_dependencies_compiler_type=none
2782  if test "$am_compiler_list" = ""; then
2783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2784  fi
2785  for depmode in $am_compiler_list; do
2786    # Setup a source with many dependencies, because some compilers
2787    # like to wrap large dependency lists on column 80 (with \), and
2788    # we should not choose a depcomp mode which is confused by this.
2789    #
2790    # We need to recreate these files for each test, as the compiler may
2791    # overwrite some of them when testing with obscure command lines.
2792    # This happens at least with the AIX C compiler.
2793    : > sub/conftest.c
2794    for i in 1 2 3 4 5 6; do
2795      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2796      : > sub/conftst$i.h
2797    done
2798    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2799
2800    case $depmode in
2801    nosideeffect)
2802      # after this tag, mechanisms are not by side-effect, so they'll
2803      # only be used when explicitly requested
2804      if test "x$enable_dependency_tracking" = xyes; then
2805	continue
2806      else
2807	break
2808      fi
2809      ;;
2810    none) break ;;
2811    esac
2812    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2813    # mode.  It turns out that the SunPro C++ compiler does not properly
2814    # handle `-M -o', and we need to detect this.
2815    if depmode=$depmode \
2816       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2817       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2818       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2819         >/dev/null 2>conftest.err &&
2820       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2821       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2822       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2823      # icc doesn't choke on unknown options, it will just issue warnings
2824      # (even with -Werror).  So we grep stderr for any message
2825      # that says an option was ignored.
2826      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2827        am_cv_CC_dependencies_compiler_type=$depmode
2828        break
2829      fi
2830    fi
2831  done
2832
2833  cd ..
2834  rm -rf conftest.dir
2835else
2836  am_cv_CC_dependencies_compiler_type=none
2837fi
2838
2839fi
2840echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2841echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2842CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2843
2844
2845
2846if
2847  test "x$enable_dependency_tracking" != xno \
2848  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2849  am__fastdepCC_TRUE=
2850  am__fastdepCC_FALSE='#'
2851else
2852  am__fastdepCC_TRUE='#'
2853  am__fastdepCC_FALSE=
2854fi
2855
2856
2857# Find a good install program.  We prefer a C program (faster),
2858# so one script is as good as another.  But avoid the broken or
2859# incompatible versions:
2860# SysV /etc/install, /usr/sbin/install
2861# SunOS /usr/etc/install
2862# IRIX /sbin/install
2863# AIX /bin/install
2864# AmigaOS /C/install, which installs bootblocks on floppy discs
2865# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868# OS/2's system install, which has a completely different semantic
2869# ./install, which can be erroneously created by make from ./install.sh.
2870echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2871echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2872if test -z "$INSTALL"; then
2873if test "${ac_cv_path_install+set}" = set; then
2874  echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881  # Account for people who put trailing slashes in PATH elements.
2882case $as_dir/ in
2883  ./ | .// | /cC/* | \
2884  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2886  /usr/ucb/* ) ;;
2887  *)
2888    # OSF1 and SCO ODT 3.0 have their own names for install.
2889    # Don't use installbsd from OSF since it installs stuff as root
2890    # by default.
2891    for ac_prog in ginstall scoinst install; do
2892      for ac_exec_ext in '' $ac_executable_extensions; do
2893	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2894	  if test $ac_prog = install &&
2895	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896	    # AIX install.  It has an incompatible calling convention.
2897	    :
2898	  elif test $ac_prog = install &&
2899	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900	    # program-specific install script used by HP pwplus--don't use.
2901	    :
2902	  else
2903	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2904	    break 3
2905	  fi
2906	fi
2907      done
2908    done
2909    ;;
2910esac
2911done
2912
2913
2914fi
2915  if test "${ac_cv_path_install+set}" = set; then
2916    INSTALL=$ac_cv_path_install
2917  else
2918    # As a last resort, use the slow shell script.  We don't cache a
2919    # path for INSTALL within a source directory, because that will
2920    # break other packages using the cache if that directory is
2921    # removed, or if the path is relative.
2922    INSTALL=$ac_install_sh
2923  fi
2924fi
2925echo "$as_me:$LINENO: result: $INSTALL" >&5
2926echo "${ECHO_T}$INSTALL" >&6
2927
2928# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2929# It thinks the first close brace ends the variable substitution.
2930test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2931
2932test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2933
2934test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2935
2936ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2942echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2943# On Suns, sometimes $CPP names a directory.
2944if test -n "$CPP" && test -d "$CPP"; then
2945  CPP=
2946fi
2947if test -z "$CPP"; then
2948  if test "${ac_cv_prog_CPP+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951      # Double quotes because CPP needs to be expanded
2952    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2953    do
2954      ac_preproc_ok=false
2955for ac_c_preproc_warn_flag in '' yes
2956do
2957  # Use a header file that comes with gcc, so configuring glibc
2958  # with a fresh cross-compiler works.
2959  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2960  # <limits.h> exists even on freestanding compilers.
2961  # On the NeXT, cc -E runs the code through the compiler's parser,
2962  # not just through cpp. "Syntax error" is here to catch this case.
2963  cat >conftest.$ac_ext <<_ACEOF
2964/* confdefs.h.  */
2965_ACEOF
2966cat confdefs.h >>conftest.$ac_ext
2967cat >>conftest.$ac_ext <<_ACEOF
2968/* end confdefs.h.  */
2969#ifdef __STDC__
2970# include <limits.h>
2971#else
2972# include <assert.h>
2973#endif
2974		     Syntax error
2975_ACEOF
2976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2978  ac_status=$?
2979  grep -v '^ *+' conftest.er1 >conftest.err
2980  rm -f conftest.er1
2981  cat conftest.err >&5
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); } >/dev/null; then
2984  if test -s conftest.err; then
2985    ac_cpp_err=$ac_c_preproc_warn_flag
2986    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2987  else
2988    ac_cpp_err=
2989  fi
2990else
2991  ac_cpp_err=yes
2992fi
2993if test -z "$ac_cpp_err"; then
2994  :
2995else
2996  echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999  # Broken: fails on valid input.
3000continue
3001fi
3002rm -f conftest.err conftest.$ac_ext
3003
3004  # OK, works on sane cases.  Now check whether non-existent headers
3005  # can be detected and how.
3006  cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h.  */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h.  */
3012#include <ac_nonexistent.h>
3013_ACEOF
3014if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3015  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3016  ac_status=$?
3017  grep -v '^ *+' conftest.er1 >conftest.err
3018  rm -f conftest.er1
3019  cat conftest.err >&5
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); } >/dev/null; then
3022  if test -s conftest.err; then
3023    ac_cpp_err=$ac_c_preproc_warn_flag
3024    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3025  else
3026    ac_cpp_err=
3027  fi
3028else
3029  ac_cpp_err=yes
3030fi
3031if test -z "$ac_cpp_err"; then
3032  # Broken: success on invalid input.
3033continue
3034else
3035  echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038  # Passes both tests.
3039ac_preproc_ok=:
3040break
3041fi
3042rm -f conftest.err conftest.$ac_ext
3043
3044done
3045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3046rm -f conftest.err conftest.$ac_ext
3047if $ac_preproc_ok; then
3048  break
3049fi
3050
3051    done
3052    ac_cv_prog_CPP=$CPP
3053
3054fi
3055  CPP=$ac_cv_prog_CPP
3056else
3057  ac_cv_prog_CPP=$CPP
3058fi
3059echo "$as_me:$LINENO: result: $CPP" >&5
3060echo "${ECHO_T}$CPP" >&6
3061ac_preproc_ok=false
3062for ac_c_preproc_warn_flag in '' yes
3063do
3064  # Use a header file that comes with gcc, so configuring glibc
3065  # with a fresh cross-compiler works.
3066  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067  # <limits.h> exists even on freestanding compilers.
3068  # On the NeXT, cc -E runs the code through the compiler's parser,
3069  # not just through cpp. "Syntax error" is here to catch this case.
3070  cat >conftest.$ac_ext <<_ACEOF
3071/* confdefs.h.  */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h.  */
3076#ifdef __STDC__
3077# include <limits.h>
3078#else
3079# include <assert.h>
3080#endif
3081		     Syntax error
3082_ACEOF
3083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3085  ac_status=$?
3086  grep -v '^ *+' conftest.er1 >conftest.err
3087  rm -f conftest.er1
3088  cat conftest.err >&5
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); } >/dev/null; then
3091  if test -s conftest.err; then
3092    ac_cpp_err=$ac_c_preproc_warn_flag
3093    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3094  else
3095    ac_cpp_err=
3096  fi
3097else
3098  ac_cpp_err=yes
3099fi
3100if test -z "$ac_cpp_err"; then
3101  :
3102else
3103  echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106  # Broken: fails on valid input.
3107continue
3108fi
3109rm -f conftest.err conftest.$ac_ext
3110
3111  # OK, works on sane cases.  Now check whether non-existent headers
3112  # can be detected and how.
3113  cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h.  */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h.  */
3119#include <ac_nonexistent.h>
3120_ACEOF
3121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123  ac_status=$?
3124  grep -v '^ *+' conftest.er1 >conftest.err
3125  rm -f conftest.er1
3126  cat conftest.err >&5
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); } >/dev/null; then
3129  if test -s conftest.err; then
3130    ac_cpp_err=$ac_c_preproc_warn_flag
3131    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132  else
3133    ac_cpp_err=
3134  fi
3135else
3136  ac_cpp_err=yes
3137fi
3138if test -z "$ac_cpp_err"; then
3139  # Broken: success on invalid input.
3140continue
3141else
3142  echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145  # Passes both tests.
3146ac_preproc_ok=:
3147break
3148fi
3149rm -f conftest.err conftest.$ac_ext
3150
3151done
3152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153rm -f conftest.err conftest.$ac_ext
3154if $ac_preproc_ok; then
3155  :
3156else
3157  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3158See \`config.log' for more details." >&5
3159echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3160See \`config.log' for more details." >&2;}
3161   { (exit 1); exit 1; }; }
3162fi
3163
3164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170for ac_prog in cpp
3171do
3172  # Extract the first word of "$ac_prog", so it can be a program name with args.
3173set dummy $ac_prog; ac_word=$2
3174echo "$as_me:$LINENO: checking for $ac_word" >&5
3175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176if test "${ac_cv_path_RAWCPP+set}" = set; then
3177  echo $ECHO_N "(cached) $ECHO_C" >&6
3178else
3179  case $RAWCPP in
3180  [\\/]* | ?:[\\/]*)
3181  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
3182  ;;
3183  *)
3184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
3186for as_dir in $as_dummy
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190  for ac_exec_ext in '' $ac_executable_extensions; do
3191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
3193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197done
3198
3199  ;;
3200esac
3201fi
3202RAWCPP=$ac_cv_path_RAWCPP
3203
3204if test -n "$RAWCPP"; then
3205  echo "$as_me:$LINENO: result: $RAWCPP" >&5
3206echo "${ECHO_T}$RAWCPP" >&6
3207else
3208  echo "$as_me:$LINENO: result: no" >&5
3209echo "${ECHO_T}no" >&6
3210fi
3211
3212  test -n "$RAWCPP" && break
3213done
3214test -n "$RAWCPP" || RAWCPP="$(CPP)"
3215
3216
3217
3218
3219# Checks for pkg-config packages
3220
3221
3222if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3223	if test -n "$ac_tool_prefix"; then
3224  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3225set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3226echo "$as_me:$LINENO: checking for $ac_word" >&5
3227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  case $PKG_CONFIG in
3232  [\\/]* | ?:[\\/]*)
3233  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3234  ;;
3235  *)
3236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241  for ac_exec_ext in '' $ac_executable_extensions; do
3242  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248done
3249
3250  ;;
3251esac
3252fi
3253PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3254
3255if test -n "$PKG_CONFIG"; then
3256  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3257echo "${ECHO_T}$PKG_CONFIG" >&6
3258else
3259  echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263fi
3264if test -z "$ac_cv_path_PKG_CONFIG"; then
3265  ac_pt_PKG_CONFIG=$PKG_CONFIG
3266  # Extract the first word of "pkg-config", so it can be a program name with args.
3267set dummy pkg-config; ac_word=$2
3268echo "$as_me:$LINENO: checking for $ac_word" >&5
3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  case $ac_pt_PKG_CONFIG in
3274  [\\/]* | ?:[\\/]*)
3275  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3276  ;;
3277  *)
3278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281  IFS=$as_save_IFS
3282  test -z "$as_dir" && as_dir=.
3283  for ac_exec_ext in '' $ac_executable_extensions; do
3284  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287    break 2
3288  fi
3289done
3290done
3291
3292  ;;
3293esac
3294fi
3295ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3296
3297if test -n "$ac_pt_PKG_CONFIG"; then
3298  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3299echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3300else
3301  echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303fi
3304
3305  PKG_CONFIG=$ac_pt_PKG_CONFIG
3306else
3307  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3308fi
3309
3310fi
3311if test -n "$PKG_CONFIG"; then
3312	_pkg_min_version=0.9.0
3313	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3314echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3315	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3316		echo "$as_me:$LINENO: result: yes" >&5
3317echo "${ECHO_T}yes" >&6
3318	else
3319		echo "$as_me:$LINENO: result: no" >&5
3320echo "${ECHO_T}no" >&6
3321		PKG_CONFIG=""
3322	fi
3323
3324fi
3325
3326	# Check whether --enable-xprint or --disable-xprint was given.
3327if test "${enable_xprint+set}" = set; then
3328  enableval="$enable_xprint"
3329  use_xprint=$enableval
3330else
3331  use_xprint=auto
3332fi;
3333	if test "x$use_xprint" = "xyes"; then
3334		TMP_CHECK1=xaw8
3335		TMP_CHECK2=
3336		xaw_use_xprint=yes
3337	elif test "x$use_xprint" = "xno"; then
3338		TMP_CHECK1=xaw7
3339		TMP_CHECK2=
3340		xaw_use_xprint=no
3341	else
3342		TMP_CHECK1=xaw8
3343		TMP_CHECK2=xaw7
3344		xaw_use_xprint=yes
3345	fi
3346
3347
3348pkg_failed=no
3349echo "$as_me:$LINENO: checking for TMP_XAW" >&5
3350echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
3351
3352if test -n "$PKG_CONFIG"; then
3353    if test -n "$TMP_XAW_CFLAGS"; then
3354        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
3355    else
3356        if test -n "$PKG_CONFIG" && \
3357    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
3358  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
3359  ac_status=$?
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); }; then
3362  pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK1" 2>/dev/null`
3363else
3364  pkg_failed=yes
3365fi
3366    fi
3367else
3368	pkg_failed=untried
3369fi
3370if test -n "$PKG_CONFIG"; then
3371    if test -n "$TMP_XAW_LIBS"; then
3372        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
3373    else
3374        if test -n "$PKG_CONFIG" && \
3375    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK1\"") >&5
3376  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK1") 2>&5
3377  ac_status=$?
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); }; then
3380  pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK1" 2>/dev/null`
3381else
3382  pkg_failed=yes
3383fi
3384    fi
3385else
3386	pkg_failed=untried
3387fi
3388
3389
3390
3391if test $pkg_failed = yes; then
3392
3393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3394        _pkg_short_errors_supported=yes
3395else
3396        _pkg_short_errors_supported=no
3397fi
3398        if test $_pkg_short_errors_supported = yes; then
3399	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK1"`
3400        else
3401	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK1"`
3402        fi
3403	# Put the nasty error message in config.log where it belongs
3404	echo "$TMP_XAW_PKG_ERRORS" >&5
3405
3406	success=no
3407elif test $pkg_failed = untried; then
3408	success=no
3409else
3410	TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
3411	TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
3412        echo "$as_me:$LINENO: result: yes" >&5
3413echo "${ECHO_T}yes" >&6
3414	success=yes
3415fi
3416	if [ ! -z $TMP_CHECK2 ] ; then
3417		if test $success = no ; then
3418
3419pkg_failed=no
3420echo "$as_me:$LINENO: checking for TMP_XAW" >&5
3421echo $ECHO_N "checking for TMP_XAW... $ECHO_C" >&6
3422
3423if test -n "$PKG_CONFIG"; then
3424    if test -n "$TMP_XAW_CFLAGS"; then
3425        pkg_cv_TMP_XAW_CFLAGS="$TMP_XAW_CFLAGS"
3426    else
3427        if test -n "$PKG_CONFIG" && \
3428    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
3429  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; then
3433  pkg_cv_TMP_XAW_CFLAGS=`$PKG_CONFIG --cflags "$TMP_CHECK2" 2>/dev/null`
3434else
3435  pkg_failed=yes
3436fi
3437    fi
3438else
3439	pkg_failed=untried
3440fi
3441if test -n "$PKG_CONFIG"; then
3442    if test -n "$TMP_XAW_LIBS"; then
3443        pkg_cv_TMP_XAW_LIBS="$TMP_XAW_LIBS"
3444    else
3445        if test -n "$PKG_CONFIG" && \
3446    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$TMP_CHECK2\"") >&5
3447  ($PKG_CONFIG --exists --print-errors "$TMP_CHECK2") 2>&5
3448  ac_status=$?
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); }; then
3451  pkg_cv_TMP_XAW_LIBS=`$PKG_CONFIG --libs "$TMP_CHECK2" 2>/dev/null`
3452else
3453  pkg_failed=yes
3454fi
3455    fi
3456else
3457	pkg_failed=untried
3458fi
3459
3460
3461
3462if test $pkg_failed = yes; then
3463
3464if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3465        _pkg_short_errors_supported=yes
3466else
3467        _pkg_short_errors_supported=no
3468fi
3469        if test $_pkg_short_errors_supported = yes; then
3470	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$TMP_CHECK2"`
3471        else
3472	        TMP_XAW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$TMP_CHECK2"`
3473        fi
3474	# Put the nasty error message in config.log where it belongs
3475	echo "$TMP_XAW_PKG_ERRORS" >&5
3476
3477	success=no
3478elif test $pkg_failed = untried; then
3479	success=no
3480else
3481	TMP_XAW_CFLAGS=$pkg_cv_TMP_XAW_CFLAGS
3482	TMP_XAW_LIBS=$pkg_cv_TMP_XAW_LIBS
3483        echo "$as_me:$LINENO: result: yes" >&5
3484echo "${ECHO_T}yes" >&6
3485	success=yes
3486fi
3487			xaw_use_xprint=no
3488		fi
3489	fi
3490
3491	if test "x$success" = "xyes"; then
3492		XAW_CFLAGS=$TMP_XAW_CFLAGS
3493		XAW_LIBS=$TMP_XAW_LIBS
3494
3495
3496
3497if test "x$xaw_use_xprint" = "xyes"; then
3498  XAW_USE_XPRINT_TRUE=
3499  XAW_USE_XPRINT_FALSE='#'
3500else
3501  XAW_USE_XPRINT_TRUE='#'
3502  XAW_USE_XPRINT_FALSE=
3503fi
3504
3505	else
3506		{ { echo "$as_me:$LINENO: error: No suitable version of Xaw found" >&5
3507echo "$as_me: error: No suitable version of Xaw found" >&2;}
3508   { (exit 1); exit 1; }; }
3509	fi
3510
3511
3512pkg_failed=no
3513echo "$as_me:$LINENO: checking for XVIDTUNE" >&5
3514echo $ECHO_N "checking for XVIDTUNE... $ECHO_C" >&6
3515
3516if test -n "$PKG_CONFIG"; then
3517    if test -n "$XVIDTUNE_CFLAGS"; then
3518        pkg_cv_XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS"
3519    else
3520        if test -n "$PKG_CONFIG" && \
3521    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xxf86vm\"") >&5
3522  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
3523  ac_status=$?
3524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525  (exit $ac_status); }; then
3526  pkg_cv_XVIDTUNE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
3527else
3528  pkg_failed=yes
3529fi
3530    fi
3531else
3532	pkg_failed=untried
3533fi
3534if test -n "$PKG_CONFIG"; then
3535    if test -n "$XVIDTUNE_LIBS"; then
3536        pkg_cv_XVIDTUNE_LIBS="$XVIDTUNE_LIBS"
3537    else
3538        if test -n "$PKG_CONFIG" && \
3539    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xxf86vm\"") >&5
3540  ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
3541  ac_status=$?
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); }; then
3544  pkg_cv_XVIDTUNE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
3545else
3546  pkg_failed=yes
3547fi
3548    fi
3549else
3550	pkg_failed=untried
3551fi
3552
3553
3554
3555if test $pkg_failed = yes; then
3556
3557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3558        _pkg_short_errors_supported=yes
3559else
3560        _pkg_short_errors_supported=no
3561fi
3562        if test $_pkg_short_errors_supported = yes; then
3563	        XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xxf86vm"`
3564        else
3565	        XVIDTUNE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xxf86vm"`
3566        fi
3567	# Put the nasty error message in config.log where it belongs
3568	echo "$XVIDTUNE_PKG_ERRORS" >&5
3569
3570	{ { echo "$as_me:$LINENO: error: Package requirements (xxf86vm) were not met:
3571
3572$XVIDTUNE_PKG_ERRORS
3573
3574Consider adjusting the PKG_CONFIG_PATH environment variable if you
3575installed software in a non-standard prefix.
3576
3577Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
3578and XVIDTUNE_LIBS to avoid the need to call pkg-config.
3579See the pkg-config man page for more details.
3580" >&5
3581echo "$as_me: error: Package requirements (xxf86vm) were not met:
3582
3583$XVIDTUNE_PKG_ERRORS
3584
3585Consider adjusting the PKG_CONFIG_PATH environment variable if you
3586installed software in a non-standard prefix.
3587
3588Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
3589and XVIDTUNE_LIBS to avoid the need to call pkg-config.
3590See the pkg-config man page for more details.
3591" >&2;}
3592   { (exit 1); exit 1; }; }
3593elif test $pkg_failed = untried; then
3594	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
3595is in your PATH or set the PKG_CONFIG environment variable to the full
3596path to pkg-config.
3597
3598Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
3599and XVIDTUNE_LIBS to avoid the need to call pkg-config.
3600See the pkg-config man page for more details.
3601
3602To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3603See \`config.log' for more details." >&5
3604echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
3605is in your PATH or set the PKG_CONFIG environment variable to the full
3606path to pkg-config.
3607
3608Alternatively, you may set the environment variables XVIDTUNE_CFLAGS
3609and XVIDTUNE_LIBS to avoid the need to call pkg-config.
3610See the pkg-config man page for more details.
3611
3612To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3613See \`config.log' for more details." >&2;}
3614   { (exit 1); exit 1; }; }
3615else
3616	XVIDTUNE_CFLAGS=$pkg_cv_XVIDTUNE_CFLAGS
3617	XVIDTUNE_LIBS=$pkg_cv_XVIDTUNE_LIBS
3618        echo "$as_me:$LINENO: result: yes" >&5
3619echo "${ECHO_T}yes" >&6
3620	:
3621fi
3622
3623XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS $XAW_CFLAGS"
3624XVIDTUNE_LIBS="$XVIDTUNE_LIBS $XAW_LIBS"
3625
3626echo $XVIDTUNE_LIBS
3627
3628
3629
3630
3631
3632# Check whether --with-vendor-name or --without-vendor-name was given.
3633if test "${with_vendor_name+set}" = set; then
3634  withval="$with_vendor_name"
3635   VENDOR_NAME="$withval"
3636else
3637   VENDOR_NAME="The X.Org Foundation"
3638fi;
3639
3640
3641
3642pkg_failed=no
3643echo "$as_me:$LINENO: checking for APPDEFS" >&5
3644echo $ECHO_N "checking for APPDEFS... $ECHO_C" >&6
3645
3646if test -n "$PKG_CONFIG"; then
3647    if test -n "$APPDEFS_CFLAGS"; then
3648        pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
3649    else
3650        if test -n "$PKG_CONFIG" && \
3651    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
3652  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; then
3656  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
3657else
3658  pkg_failed=yes
3659fi
3660    fi
3661else
3662	pkg_failed=untried
3663fi
3664if test -n "$PKG_CONFIG"; then
3665    if test -n "$APPDEFS_LIBS"; then
3666        pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
3667    else
3668        if test -n "$PKG_CONFIG" && \
3669    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5
3670  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; then
3674  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
3675else
3676  pkg_failed=yes
3677fi
3678    fi
3679else
3680	pkg_failed=untried
3681fi
3682
3683
3684
3685if test $pkg_failed = yes; then
3686
3687if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3688        _pkg_short_errors_supported=yes
3689else
3690        _pkg_short_errors_supported=no
3691fi
3692        if test $_pkg_short_errors_supported = yes; then
3693	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"`
3694        else
3695	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"`
3696        fi
3697	# Put the nasty error message in config.log where it belongs
3698	echo "$APPDEFS_PKG_ERRORS" >&5
3699
3700	{ { echo "$as_me:$LINENO: error: Package requirements (xt) were not met:
3701
3702$APPDEFS_PKG_ERRORS
3703
3704Consider adjusting the PKG_CONFIG_PATH environment variable if you
3705installed software in a non-standard prefix.
3706
3707Alternatively, you may set the environment variables APPDEFS_CFLAGS
3708and APPDEFS_LIBS to avoid the need to call pkg-config.
3709See the pkg-config man page for more details.
3710" >&5
3711echo "$as_me: error: Package requirements (xt) were not met:
3712
3713$APPDEFS_PKG_ERRORS
3714
3715Consider adjusting the PKG_CONFIG_PATH environment variable if you
3716installed software in a non-standard prefix.
3717
3718Alternatively, you may set the environment variables APPDEFS_CFLAGS
3719and APPDEFS_LIBS to avoid the need to call pkg-config.
3720See the pkg-config man page for more details.
3721" >&2;}
3722   { (exit 1); exit 1; }; }
3723elif test $pkg_failed = untried; then
3724	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
3725is in your PATH or set the PKG_CONFIG environment variable to the full
3726path to pkg-config.
3727
3728Alternatively, you may set the environment variables APPDEFS_CFLAGS
3729and APPDEFS_LIBS to avoid the need to call pkg-config.
3730See the pkg-config man page for more details.
3731
3732To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3733See \`config.log' for more details." >&5
3734echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
3735is in your PATH or set the PKG_CONFIG environment variable to the full
3736path to pkg-config.
3737
3738Alternatively, you may set the environment variables APPDEFS_CFLAGS
3739and APPDEFS_LIBS to avoid the need to call pkg-config.
3740See the pkg-config man page for more details.
3741
3742To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3743See \`config.log' for more details." >&2;}
3744   { (exit 1); exit 1; }; }
3745else
3746	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
3747	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
3748        echo "$as_me:$LINENO: result: yes" >&5
3749echo "${ECHO_T}yes" >&6
3750	:
3751fi
3752appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
3753
3754
3755# Make sure we can run config.sub.
3756$ac_config_sub sun4 >/dev/null 2>&1 ||
3757  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3758echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3759   { (exit 1); exit 1; }; }
3760
3761echo "$as_me:$LINENO: checking build system type" >&5
3762echo $ECHO_N "checking build system type... $ECHO_C" >&6
3763if test "${ac_cv_build+set}" = set; then
3764  echo $ECHO_N "(cached) $ECHO_C" >&6
3765else
3766  ac_cv_build_alias=$build_alias
3767test -z "$ac_cv_build_alias" &&
3768  ac_cv_build_alias=`$ac_config_guess`
3769test -z "$ac_cv_build_alias" &&
3770  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3771echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3772   { (exit 1); exit 1; }; }
3773ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3774  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3775echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3776   { (exit 1); exit 1; }; }
3777
3778fi
3779echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3780echo "${ECHO_T}$ac_cv_build" >&6
3781build=$ac_cv_build
3782build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3783build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3784build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3785
3786
3787echo "$as_me:$LINENO: checking host system type" >&5
3788echo $ECHO_N "checking host system type... $ECHO_C" >&6
3789if test "${ac_cv_host+set}" = set; then
3790  echo $ECHO_N "(cached) $ECHO_C" >&6
3791else
3792  ac_cv_host_alias=$host_alias
3793test -z "$ac_cv_host_alias" &&
3794  ac_cv_host_alias=$ac_cv_build_alias
3795ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3796  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3797echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3798   { (exit 1); exit 1; }; }
3799
3800fi
3801echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3802echo "${ECHO_T}$ac_cv_host" >&6
3803host=$ac_cv_host
3804host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3805host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3806host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3807
3808
3809
3810
3811
3812if test x$APP_MAN_SUFFIX = x    ; then
3813    case $host_os in
3814	linux*)	APP_MAN_SUFFIX=1x ;;
3815	*)	APP_MAN_SUFFIX=1  ;;
3816    esac
3817fi
3818if test x$APP_MAN_DIR = x    ; then
3819    case $host_os in
3820	linux*)	APP_MAN_DIR='$(mandir)/man1' ;;
3821	*)	APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
3822    esac
3823fi
3824
3825if test x$LIB_MAN_SUFFIX = x    ; then
3826    case $host_os in
3827	linux*)	LIB_MAN_SUFFIX=3x ;;
3828	*)	LIB_MAN_SUFFIX=3  ;;
3829    esac
3830fi
3831if test x$LIB_MAN_DIR = x    ; then
3832    case $host_os in
3833	linux*)	LIB_MAN_DIR='$(mandir)/man3' ;;
3834	*)	LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
3835    esac
3836fi
3837
3838if test x$FILE_MAN_SUFFIX = x    ; then
3839    case $host_os in
3840	linux*)		FILE_MAN_SUFFIX=5x ;;
3841	solaris*)	FILE_MAN_SUFFIX=4  ;;
3842	*)		FILE_MAN_SUFFIX=5  ;;
3843    esac
3844fi
3845if test x$FILE_MAN_DIR = x    ; then
3846    case $host_os in
3847	linux*)	FILE_MAN_DIR='$(mandir)/man5' ;;
3848	*)	FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
3849    esac
3850fi
3851
3852# In Imake's linux.cf, the misc man suffix & dir was only changed for
3853# LinuxDebian, not other Linuxes, so we leave it unchanged here
3854if test x$MISC_MAN_SUFFIX = x    ; then
3855    case $host_os in
3856#	linux*)		MISC_MAN_SUFFIX=7x ;;
3857	solaris*)	MISC_MAN_SUFFIX=5  ;;
3858	*)		MISC_MAN_SUFFIX=7  ;;
3859    esac
3860fi
3861if test x$MISC_MAN_DIR = x    ; then
3862    case $host_os in
3863#	linux*)	MISC_MAN_DIR='$(mandir)/man7' ;;
3864	*)	MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
3865    esac
3866fi
3867
3868# In Imake's linux.cf, the driver man suffix & dir was only changed for
3869# LinuxDebian, not other Linuxes, so we leave it unchanged here
3870if test x$DRIVER_MAN_SUFFIX = x    ; then
3871    case $host_os in
3872#	linux*)		DRIVER_MAN_SUFFIX=4x ;;
3873	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
3874	*)		DRIVER_MAN_SUFFIX=4  ;;
3875    esac
3876fi
3877if test x$DRIVER_MAN_DIR = x    ; then
3878    case $host_os in
3879#	linux*)	DRIVER_MAN_DIR='$(mandir)/man4' ;;
3880	*)	DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
3881    esac
3882fi
3883
3884if test x$ADMIN_MAN_SUFFIX = x    ; then
3885    case $host_os in
3886	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
3887	*)		ADMIN_MAN_SUFFIX=8  ;;
3888    esac
3889fi
3890if test x$ADMIN_MAN_DIR = x    ; then
3891    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
3892fi
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910# Check whether --with-release-version or --without-release-version was given.
3911if test "${with_release_version+set}" = set; then
3912  withval="$with_release_version"
3913  RELEASE_VERSION="$withval"
3914else
3915  RELEASE_VERSION=""
3916fi;
3917	if test "x$RELEASE_VERSION" != "x"; then
3918		PACKAGE="$PACKAGE-$RELEASE_VERSION"
3919		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
3920		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
3921echo "$as_me: Building with package name set to $PACKAGE" >&6;}
3922	fi
3923
3924
3925          ac_config_files="$ac_config_files Makefile"
3926cat >confcache <<\_ACEOF
3927# This file is a shell script that caches the results of configure
3928# tests run on this system so they can be shared between configure
3929# scripts and configure runs, see configure's option --config-cache.
3930# It is not useful on other systems.  If it contains results you don't
3931# want to keep, you may remove or edit it.
3932#
3933# config.status only pays attention to the cache file if you give it
3934# the --recheck option to rerun configure.
3935#
3936# `ac_cv_env_foo' variables (set or unset) will be overridden when
3937# loading this file, other *unset* `ac_cv_foo' will be assigned the
3938# following values.
3939
3940_ACEOF
3941
3942# The following way of writing the cache mishandles newlines in values,
3943# but we know of no workaround that is simple, portable, and efficient.
3944# So, don't put newlines in cache variables' values.
3945# Ultrix sh set writes to stderr and can't be redirected directly,
3946# and sets the high bit in the cache file unless we assign to the vars.
3947{
3948  (set) 2>&1 |
3949    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3950    *ac_space=\ *)
3951      # `set' does not quote correctly, so add quotes (double-quote
3952      # substitution turns \\\\ into \\, and sed turns \\ into \).
3953      sed -n \
3954	"s/'/'\\\\''/g;
3955	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3956      ;;
3957    *)
3958      # `set' quotes correctly as required by POSIX, so do not add quotes.
3959      sed -n \
3960	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3961      ;;
3962    esac;
3963} |
3964  sed '
3965     t clear
3966     : clear
3967     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3968     t end
3969     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3970     : end' >>confcache
3971if diff $cache_file confcache >/dev/null 2>&1; then :; else
3972  if test -w $cache_file; then
3973    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3974    cat confcache >$cache_file
3975  else
3976    echo "not updating unwritable cache $cache_file"
3977  fi
3978fi
3979rm -f confcache
3980
3981test "x$prefix" = xNONE && prefix=$ac_default_prefix
3982# Let make expand exec_prefix.
3983test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3984
3985# VPATH may cause trouble with some makes, so we remove $(srcdir),
3986# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3987# trailing colons and then remove the whole line if VPATH becomes empty
3988# (actually we leave an empty line to preserve line numbers).
3989if test "x$srcdir" = x.; then
3990  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
3991s/:*\$(srcdir):*/:/;
3992s/:*\${srcdir}:*/:/;
3993s/:*@srcdir@:*/:/;
3994s/^\([^=]*=[	 ]*\):*/\1/;
3995s/:*$//;
3996s/^[^=]*=[	 ]*$//;
3997}'
3998fi
3999
4000DEFS=-DHAVE_CONFIG_H
4001
4002ac_libobjs=
4003ac_ltlibobjs=
4004for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4005  # 1. Remove the extension, and $U if already installed.
4006  ac_i=`echo "$ac_i" |
4007	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4008  # 2. Add them.
4009  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4010  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4011done
4012LIBOBJS=$ac_libobjs
4013
4014LTLIBOBJS=$ac_ltlibobjs
4015
4016
4017if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
4018  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
4019Usually this means the macro was only invoked conditionally." >&5
4020echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
4021Usually this means the macro was only invoked conditionally." >&2;}
4022   { (exit 1); exit 1; }; }
4023fi
4024if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4025  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4026Usually this means the macro was only invoked conditionally." >&5
4027echo "$as_me: error: conditional \"AMDEP\" was never defined.
4028Usually this means the macro was only invoked conditionally." >&2;}
4029   { (exit 1); exit 1; }; }
4030fi
4031if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4032  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4033Usually this means the macro was only invoked conditionally." >&5
4034echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4035Usually this means the macro was only invoked conditionally." >&2;}
4036   { (exit 1); exit 1; }; }
4037fi
4038if test -z "${XAW_USE_XPRINT_TRUE}" && test -z "${XAW_USE_XPRINT_FALSE}"; then
4039  { { echo "$as_me:$LINENO: error: conditional \"XAW_USE_XPRINT\" was never defined.
4040Usually this means the macro was only invoked conditionally." >&5
4041echo "$as_me: error: conditional \"XAW_USE_XPRINT\" was never defined.
4042Usually this means the macro was only invoked conditionally." >&2;}
4043   { (exit 1); exit 1; }; }
4044fi
4045
4046: ${CONFIG_STATUS=./config.status}
4047ac_clean_files_save=$ac_clean_files
4048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4049{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4050echo "$as_me: creating $CONFIG_STATUS" >&6;}
4051cat >$CONFIG_STATUS <<_ACEOF
4052#! $SHELL
4053# Generated by $as_me.
4054# Run this file to recreate the current configuration.
4055# Compiler output produced by configure, useful for debugging
4056# configure, is in config.log if it exists.
4057
4058debug=false
4059ac_cs_recheck=false
4060ac_cs_silent=false
4061SHELL=\${CONFIG_SHELL-$SHELL}
4062_ACEOF
4063
4064cat >>$CONFIG_STATUS <<\_ACEOF
4065## --------------------- ##
4066## M4sh Initialization.  ##
4067## --------------------- ##
4068
4069# Be Bourne compatible
4070if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4071  emulate sh
4072  NULLCMD=:
4073  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4074  # is contrary to our usage.  Disable this feature.
4075  alias -g '${1+"$@"}'='"$@"'
4076elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4077  set -o posix
4078fi
4079DUALCASE=1; export DUALCASE # for MKS sh
4080
4081# Support unset when possible.
4082if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4083  as_unset=unset
4084else
4085  as_unset=false
4086fi
4087
4088
4089# Work around bugs in pre-3.0 UWIN ksh.
4090$as_unset ENV MAIL MAILPATH
4091PS1='$ '
4092PS2='> '
4093PS4='+ '
4094
4095# NLS nuisances.
4096for as_var in \
4097  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4098  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4099  LC_TELEPHONE LC_TIME
4100do
4101  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4102    eval $as_var=C; export $as_var
4103  else
4104    $as_unset $as_var
4105  fi
4106done
4107
4108# Required to use basename.
4109if expr a : '\(a\)' >/dev/null 2>&1; then
4110  as_expr=expr
4111else
4112  as_expr=false
4113fi
4114
4115if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4116  as_basename=basename
4117else
4118  as_basename=false
4119fi
4120
4121
4122# Name of the executable.
4123as_me=`$as_basename "$0" ||
4124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4125	 X"$0" : 'X\(//\)$' \| \
4126	 X"$0" : 'X\(/\)$' \| \
4127	 .     : '\(.\)' 2>/dev/null ||
4128echo X/"$0" |
4129    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4130  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4131  	  /^X\/\(\/\).*/{ s//\1/; q; }
4132  	  s/.*/./; q'`
4133
4134
4135# PATH needs CR, and LINENO needs CR and PATH.
4136# Avoid depending upon Character Ranges.
4137as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4139as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4140as_cr_digits='0123456789'
4141as_cr_alnum=$as_cr_Letters$as_cr_digits
4142
4143# The user is always right.
4144if test "${PATH_SEPARATOR+set}" != set; then
4145  echo "#! /bin/sh" >conf$$.sh
4146  echo  "exit 0"   >>conf$$.sh
4147  chmod +x conf$$.sh
4148  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4149    PATH_SEPARATOR=';'
4150  else
4151    PATH_SEPARATOR=:
4152  fi
4153  rm -f conf$$.sh
4154fi
4155
4156
4157  as_lineno_1=$LINENO
4158  as_lineno_2=$LINENO
4159  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4160  test "x$as_lineno_1" != "x$as_lineno_2" &&
4161  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4162  # Find who we are.  Look in the path if we contain no path at all
4163  # relative or not.
4164  case $0 in
4165    *[\\/]* ) as_myself=$0 ;;
4166    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169  IFS=$as_save_IFS
4170  test -z "$as_dir" && as_dir=.
4171  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4172done
4173
4174       ;;
4175  esac
4176  # We did not find ourselves, most probably we were run as `sh COMMAND'
4177  # in which case we are not to be found in the path.
4178  if test "x$as_myself" = x; then
4179    as_myself=$0
4180  fi
4181  if test ! -f "$as_myself"; then
4182    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4183echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4184   { (exit 1); exit 1; }; }
4185  fi
4186  case $CONFIG_SHELL in
4187  '')
4188    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193  for as_base in sh bash ksh sh5; do
4194	 case $as_dir in
4195	 /*)
4196	   if ("$as_dir/$as_base" -c '
4197  as_lineno_1=$LINENO
4198  as_lineno_2=$LINENO
4199  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4200  test "x$as_lineno_1" != "x$as_lineno_2" &&
4201  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4202	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4203	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4204	     CONFIG_SHELL=$as_dir/$as_base
4205	     export CONFIG_SHELL
4206	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4207	   fi;;
4208	 esac
4209       done
4210done
4211;;
4212  esac
4213
4214  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4215  # uniformly replaced by the line number.  The first 'sed' inserts a
4216  # line-number line before each line; the second 'sed' does the real
4217  # work.  The second script uses 'N' to pair each line-number line
4218  # with the numbered line, and appends trailing '-' during
4219  # substitution so that $LINENO is not a special case at line end.
4220  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4221  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4222  sed '=' <$as_myself |
4223    sed '
4224      N
4225      s,$,-,
4226      : loop
4227      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4228      t loop
4229      s,-$,,
4230      s,^['$as_cr_digits']*\n,,
4231    ' >$as_me.lineno &&
4232  chmod +x $as_me.lineno ||
4233    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4234echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4235   { (exit 1); exit 1; }; }
4236
4237  # Don't try to exec as it changes $[0], causing all sort of problems
4238  # (the dirname of $[0] is not the place where we might find the
4239  # original and so on.  Autoconf is especially sensible to this).
4240  . ./$as_me.lineno
4241  # Exit status is that of the last command.
4242  exit
4243}
4244
4245
4246case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4247  *c*,-n*) ECHO_N= ECHO_C='
4248' ECHO_T='	' ;;
4249  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4250  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4251esac
4252
4253if expr a : '\(a\)' >/dev/null 2>&1; then
4254  as_expr=expr
4255else
4256  as_expr=false
4257fi
4258
4259rm -f conf$$ conf$$.exe conf$$.file
4260echo >conf$$.file
4261if ln -s conf$$.file conf$$ 2>/dev/null; then
4262  # We could just check for DJGPP; but this test a) works b) is more generic
4263  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4264  if test -f conf$$.exe; then
4265    # Don't use ln at all; we don't have any links
4266    as_ln_s='cp -p'
4267  else
4268    as_ln_s='ln -s'
4269  fi
4270elif ln conf$$.file conf$$ 2>/dev/null; then
4271  as_ln_s=ln
4272else
4273  as_ln_s='cp -p'
4274fi
4275rm -f conf$$ conf$$.exe conf$$.file
4276
4277if mkdir -p . 2>/dev/null; then
4278  as_mkdir_p=:
4279else
4280  test -d ./-p && rmdir ./-p
4281  as_mkdir_p=false
4282fi
4283
4284as_executable_p="test -f"
4285
4286# Sed expression to map a string onto a valid CPP name.
4287as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4288
4289# Sed expression to map a string onto a valid variable name.
4290as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4291
4292
4293# IFS
4294# We need space, tab and new line, in precisely that order.
4295as_nl='
4296'
4297IFS=" 	$as_nl"
4298
4299# CDPATH.
4300$as_unset CDPATH
4301
4302exec 6>&1
4303
4304# Open the log real soon, to keep \$[0] and so on meaningful, and to
4305# report actual input values of CONFIG_FILES etc. instead of their
4306# values after options handling.  Logging --version etc. is OK.
4307exec 5>>config.log
4308{
4309  echo
4310  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4311## Running $as_me. ##
4312_ASBOX
4313} >&5
4314cat >&5 <<_CSEOF
4315
4316This file was extended by xvidtune $as_me 1.0.1, which was
4317generated by GNU Autoconf 2.59.  Invocation command line was
4318
4319  CONFIG_FILES    = $CONFIG_FILES
4320  CONFIG_HEADERS  = $CONFIG_HEADERS
4321  CONFIG_LINKS    = $CONFIG_LINKS
4322  CONFIG_COMMANDS = $CONFIG_COMMANDS
4323  $ $0 $@
4324
4325_CSEOF
4326echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4327echo >&5
4328_ACEOF
4329
4330# Files that config.status was made for.
4331if test -n "$ac_config_files"; then
4332  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4333fi
4334
4335if test -n "$ac_config_headers"; then
4336  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4337fi
4338
4339if test -n "$ac_config_links"; then
4340  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4341fi
4342
4343if test -n "$ac_config_commands"; then
4344  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4345fi
4346
4347cat >>$CONFIG_STATUS <<\_ACEOF
4348
4349ac_cs_usage="\
4350\`$as_me' instantiates files from templates according to the
4351current configuration.
4352
4353Usage: $0 [OPTIONS] [FILE]...
4354
4355  -h, --help       print this help, then exit
4356  -V, --version    print version number, then exit
4357  -q, --quiet      do not print progress messages
4358  -d, --debug      don't remove temporary files
4359      --recheck    update $as_me by reconfiguring in the same conditions
4360  --file=FILE[:TEMPLATE]
4361		   instantiate the configuration file FILE
4362  --header=FILE[:TEMPLATE]
4363		   instantiate the configuration header FILE
4364
4365Configuration files:
4366$config_files
4367
4368Configuration headers:
4369$config_headers
4370
4371Configuration commands:
4372$config_commands
4373
4374Report bugs to <bug-autoconf@gnu.org>."
4375_ACEOF
4376
4377cat >>$CONFIG_STATUS <<_ACEOF
4378ac_cs_version="\\
4379xvidtune config.status 1.0.1
4380configured by $0, generated by GNU Autoconf 2.59,
4381  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4382
4383Copyright (C) 2003 Free Software Foundation, Inc.
4384This config.status script is free software; the Free Software Foundation
4385gives unlimited permission to copy, distribute and modify it."
4386srcdir=$srcdir
4387INSTALL="$INSTALL"
4388_ACEOF
4389
4390cat >>$CONFIG_STATUS <<\_ACEOF
4391# If no file are specified by the user, then we need to provide default
4392# value.  By we need to know if files were specified by the user.
4393ac_need_defaults=:
4394while test $# != 0
4395do
4396  case $1 in
4397  --*=*)
4398    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4399    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4400    ac_shift=:
4401    ;;
4402  -*)
4403    ac_option=$1
4404    ac_optarg=$2
4405    ac_shift=shift
4406    ;;
4407  *) # This is not an option, so the user has probably given explicit
4408     # arguments.
4409     ac_option=$1
4410     ac_need_defaults=false;;
4411  esac
4412
4413  case $ac_option in
4414  # Handling of the options.
4415_ACEOF
4416cat >>$CONFIG_STATUS <<\_ACEOF
4417  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4418    ac_cs_recheck=: ;;
4419  --version | --vers* | -V )
4420    echo "$ac_cs_version"; exit 0 ;;
4421  --he | --h)
4422    # Conflict between --help and --header
4423    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4424Try \`$0 --help' for more information." >&5
4425echo "$as_me: error: ambiguous option: $1
4426Try \`$0 --help' for more information." >&2;}
4427   { (exit 1); exit 1; }; };;
4428  --help | --hel | -h )
4429    echo "$ac_cs_usage"; exit 0 ;;
4430  --debug | --d* | -d )
4431    debug=: ;;
4432  --file | --fil | --fi | --f )
4433    $ac_shift
4434    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4435    ac_need_defaults=false;;
4436  --header | --heade | --head | --hea )
4437    $ac_shift
4438    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4439    ac_need_defaults=false;;
4440  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4441  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4442    ac_cs_silent=: ;;
4443
4444  # This is an error.
4445  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4446Try \`$0 --help' for more information." >&5
4447echo "$as_me: error: unrecognized option: $1
4448Try \`$0 --help' for more information." >&2;}
4449   { (exit 1); exit 1; }; } ;;
4450
4451  *) ac_config_targets="$ac_config_targets $1" ;;
4452
4453  esac
4454  shift
4455done
4456
4457ac_configure_extra_args=
4458
4459if $ac_cs_silent; then
4460  exec 6>/dev/null
4461  ac_configure_extra_args="$ac_configure_extra_args --silent"
4462fi
4463
4464_ACEOF
4465cat >>$CONFIG_STATUS <<_ACEOF
4466if \$ac_cs_recheck; then
4467  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4468  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4469fi
4470
4471_ACEOF
4472
4473cat >>$CONFIG_STATUS <<_ACEOF
4474#
4475# INIT-COMMANDS section.
4476#
4477
4478AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4479
4480_ACEOF
4481
4482
4483
4484cat >>$CONFIG_STATUS <<\_ACEOF
4485for ac_config_target in $ac_config_targets
4486do
4487  case "$ac_config_target" in
4488  # Handling of arguments.
4489  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4490  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4491  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4492  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4493echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4494   { (exit 1); exit 1; }; };;
4495  esac
4496done
4497
4498# If the user did not use the arguments to specify the items to instantiate,
4499# then the envvar interface is used.  Set only those that are not.
4500# We use the long form for the default assignment because of an extremely
4501# bizarre bug on SunOS 4.1.3.
4502if $ac_need_defaults; then
4503  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4504  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4505  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4506fi
4507
4508# Have a temporary directory for convenience.  Make it in the build tree
4509# simply because there is no reason to put it here, and in addition,
4510# creating and moving files from /tmp can sometimes cause problems.
4511# Create a temporary directory, and hook for its removal unless debugging.
4512$debug ||
4513{
4514  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4515  trap '{ (exit 1); exit 1; }' 1 2 13 15
4516}
4517
4518# Create a (secure) tmp directory for tmp files.
4519
4520{
4521  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4522  test -n "$tmp" && test -d "$tmp"
4523}  ||
4524{
4525  tmp=./confstat$$-$RANDOM
4526  (umask 077 && mkdir $tmp)
4527} ||
4528{
4529   echo "$me: cannot create a temporary directory in ." >&2
4530   { (exit 1); exit 1; }
4531}
4532
4533_ACEOF
4534
4535cat >>$CONFIG_STATUS <<_ACEOF
4536
4537#
4538# CONFIG_FILES section.
4539#
4540
4541# No need to generate the scripts if there are no CONFIG_FILES.
4542# This happens for instance when ./config.status config.h
4543if test -n "\$CONFIG_FILES"; then
4544  # Protect against being on the right side of a sed subst in config.status.
4545  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4546   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4547s,@SHELL@,$SHELL,;t t
4548s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4549s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4550s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4551s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4552s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4553s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4554s,@exec_prefix@,$exec_prefix,;t t
4555s,@prefix@,$prefix,;t t
4556s,@program_transform_name@,$program_transform_name,;t t
4557s,@bindir@,$bindir,;t t
4558s,@sbindir@,$sbindir,;t t
4559s,@libexecdir@,$libexecdir,;t t
4560s,@datadir@,$datadir,;t t
4561s,@sysconfdir@,$sysconfdir,;t t
4562s,@sharedstatedir@,$sharedstatedir,;t t
4563s,@localstatedir@,$localstatedir,;t t
4564s,@libdir@,$libdir,;t t
4565s,@includedir@,$includedir,;t t
4566s,@oldincludedir@,$oldincludedir,;t t
4567s,@infodir@,$infodir,;t t
4568s,@mandir@,$mandir,;t t
4569s,@build_alias@,$build_alias,;t t
4570s,@host_alias@,$host_alias,;t t
4571s,@target_alias@,$target_alias,;t t
4572s,@DEFS@,$DEFS,;t t
4573s,@ECHO_C@,$ECHO_C,;t t
4574s,@ECHO_N@,$ECHO_N,;t t
4575s,@ECHO_T@,$ECHO_T,;t t
4576s,@LIBS@,$LIBS,;t t
4577s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4578s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4579s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4580s,@CYGPATH_W@,$CYGPATH_W,;t t
4581s,@PACKAGE@,$PACKAGE,;t t
4582s,@VERSION@,$VERSION,;t t
4583s,@ACLOCAL@,$ACLOCAL,;t t
4584s,@AUTOCONF@,$AUTOCONF,;t t
4585s,@AUTOMAKE@,$AUTOMAKE,;t t
4586s,@AUTOHEADER@,$AUTOHEADER,;t t
4587s,@MAKEINFO@,$MAKEINFO,;t t
4588s,@AMTAR@,$AMTAR,;t t
4589s,@install_sh@,$install_sh,;t t
4590s,@STRIP@,$STRIP,;t t
4591s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4592s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4593s,@AWK@,$AWK,;t t
4594s,@SET_MAKE@,$SET_MAKE,;t t
4595s,@am__leading_dot@,$am__leading_dot,;t t
4596s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4597s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4598s,@MAINT@,$MAINT,;t t
4599s,@CC@,$CC,;t t
4600s,@CFLAGS@,$CFLAGS,;t t
4601s,@LDFLAGS@,$LDFLAGS,;t t
4602s,@CPPFLAGS@,$CPPFLAGS,;t t
4603s,@ac_ct_CC@,$ac_ct_CC,;t t
4604s,@EXEEXT@,$EXEEXT,;t t
4605s,@OBJEXT@,$OBJEXT,;t t
4606s,@DEPDIR@,$DEPDIR,;t t
4607s,@am__include@,$am__include,;t t
4608s,@am__quote@,$am__quote,;t t
4609s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4610s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4611s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4612s,@CCDEPMODE@,$CCDEPMODE,;t t
4613s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4614s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4615s,@CPP@,$CPP,;t t
4616s,@RAWCPP@,$RAWCPP,;t t
4617s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4618s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
4619s,@TMP_XAW_CFLAGS@,$TMP_XAW_CFLAGS,;t t
4620s,@TMP_XAW_LIBS@,$TMP_XAW_LIBS,;t t
4621s,@XAW_USE_XPRINT_TRUE@,$XAW_USE_XPRINT_TRUE,;t t
4622s,@XAW_USE_XPRINT_FALSE@,$XAW_USE_XPRINT_FALSE,;t t
4623s,@XVIDTUNE_CFLAGS@,$XVIDTUNE_CFLAGS,;t t
4624s,@XVIDTUNE_LIBS@,$XVIDTUNE_LIBS,;t t
4625s,@VENDOR_NAME@,$VENDOR_NAME,;t t
4626s,@APPDEFS_CFLAGS@,$APPDEFS_CFLAGS,;t t
4627s,@APPDEFS_LIBS@,$APPDEFS_LIBS,;t t
4628s,@appdefaultdir@,$appdefaultdir,;t t
4629s,@build@,$build,;t t
4630s,@build_cpu@,$build_cpu,;t t
4631s,@build_vendor@,$build_vendor,;t t
4632s,@build_os@,$build_os,;t t
4633s,@host@,$host,;t t
4634s,@host_cpu@,$host_cpu,;t t
4635s,@host_vendor@,$host_vendor,;t t
4636s,@host_os@,$host_os,;t t
4637s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
4638s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
4639s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
4640s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
4641s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
4642s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
4643s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
4644s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
4645s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
4646s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
4647s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
4648s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
4649s,@LIBOBJS@,$LIBOBJS,;t t
4650s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4651CEOF
4652
4653_ACEOF
4654
4655  cat >>$CONFIG_STATUS <<\_ACEOF
4656  # Split the substitutions into bite-sized pieces for seds with
4657  # small command number limits, like on Digital OSF/1 and HP-UX.
4658  ac_max_sed_lines=48
4659  ac_sed_frag=1 # Number of current file.
4660  ac_beg=1 # First line for current file.
4661  ac_end=$ac_max_sed_lines # Line after last line for current file.
4662  ac_more_lines=:
4663  ac_sed_cmds=
4664  while $ac_more_lines; do
4665    if test $ac_beg -gt 1; then
4666      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4667    else
4668      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4669    fi
4670    if test ! -s $tmp/subs.frag; then
4671      ac_more_lines=false
4672    else
4673      # The purpose of the label and of the branching condition is to
4674      # speed up the sed processing (if there are no `@' at all, there
4675      # is no need to browse any of the substitutions).
4676      # These are the two extra sed commands mentioned above.
4677      (echo ':t
4678  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4679      if test -z "$ac_sed_cmds"; then
4680	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4681      else
4682	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4683      fi
4684      ac_sed_frag=`expr $ac_sed_frag + 1`
4685      ac_beg=$ac_end
4686      ac_end=`expr $ac_end + $ac_max_sed_lines`
4687    fi
4688  done
4689  if test -z "$ac_sed_cmds"; then
4690    ac_sed_cmds=cat
4691  fi
4692fi # test -n "$CONFIG_FILES"
4693
4694_ACEOF
4695cat >>$CONFIG_STATUS <<\_ACEOF
4696for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4697  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4698  case $ac_file in
4699  - | *:- | *:-:* ) # input from stdin
4700	cat >$tmp/stdin
4701	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4702	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4703  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4704	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4705  * )   ac_file_in=$ac_file.in ;;
4706  esac
4707
4708  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4709  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4710$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4711	 X"$ac_file" : 'X\(//\)[^/]' \| \
4712	 X"$ac_file" : 'X\(//\)$' \| \
4713	 X"$ac_file" : 'X\(/\)' \| \
4714	 .     : '\(.\)' 2>/dev/null ||
4715echo X"$ac_file" |
4716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4717  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4718  	  /^X\(\/\/\)$/{ s//\1/; q; }
4719  	  /^X\(\/\).*/{ s//\1/; q; }
4720  	  s/.*/./; q'`
4721  { if $as_mkdir_p; then
4722    mkdir -p "$ac_dir"
4723  else
4724    as_dir="$ac_dir"
4725    as_dirs=
4726    while test ! -d "$as_dir"; do
4727      as_dirs="$as_dir $as_dirs"
4728      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4730	 X"$as_dir" : 'X\(//\)[^/]' \| \
4731	 X"$as_dir" : 'X\(//\)$' \| \
4732	 X"$as_dir" : 'X\(/\)' \| \
4733	 .     : '\(.\)' 2>/dev/null ||
4734echo X"$as_dir" |
4735    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4736  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4737  	  /^X\(\/\/\)$/{ s//\1/; q; }
4738  	  /^X\(\/\).*/{ s//\1/; q; }
4739  	  s/.*/./; q'`
4740    done
4741    test ! -n "$as_dirs" || mkdir $as_dirs
4742  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4743echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4744   { (exit 1); exit 1; }; }; }
4745
4746  ac_builddir=.
4747
4748if test "$ac_dir" != .; then
4749  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4750  # A "../" for each directory in $ac_dir_suffix.
4751  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4752else
4753  ac_dir_suffix= ac_top_builddir=
4754fi
4755
4756case $srcdir in
4757  .)  # No --srcdir option.  We are building in place.
4758    ac_srcdir=.
4759    if test -z "$ac_top_builddir"; then
4760       ac_top_srcdir=.
4761    else
4762       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4763    fi ;;
4764  [\\/]* | ?:[\\/]* )  # Absolute path.
4765    ac_srcdir=$srcdir$ac_dir_suffix;
4766    ac_top_srcdir=$srcdir ;;
4767  *) # Relative path.
4768    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4769    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4770esac
4771
4772# Do not use `cd foo && pwd` to compute absolute paths, because
4773# the directories may not exist.
4774case `pwd` in
4775.) ac_abs_builddir="$ac_dir";;
4776*)
4777  case "$ac_dir" in
4778  .) ac_abs_builddir=`pwd`;;
4779  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4780  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4781  esac;;
4782esac
4783case $ac_abs_builddir in
4784.) ac_abs_top_builddir=${ac_top_builddir}.;;
4785*)
4786  case ${ac_top_builddir}. in
4787  .) ac_abs_top_builddir=$ac_abs_builddir;;
4788  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4789  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4790  esac;;
4791esac
4792case $ac_abs_builddir in
4793.) ac_abs_srcdir=$ac_srcdir;;
4794*)
4795  case $ac_srcdir in
4796  .) ac_abs_srcdir=$ac_abs_builddir;;
4797  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4798  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4799  esac;;
4800esac
4801case $ac_abs_builddir in
4802.) ac_abs_top_srcdir=$ac_top_srcdir;;
4803*)
4804  case $ac_top_srcdir in
4805  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4806  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4807  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4808  esac;;
4809esac
4810
4811
4812  case $INSTALL in
4813  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4814  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4815  esac
4816
4817  if test x"$ac_file" != x-; then
4818    { echo "$as_me:$LINENO: creating $ac_file" >&5
4819echo "$as_me: creating $ac_file" >&6;}
4820    rm -f "$ac_file"
4821  fi
4822  # Let's still pretend it is `configure' which instantiates (i.e., don't
4823  # use $as_me), people would be surprised to read:
4824  #    /* config.h.  Generated by config.status.  */
4825  if test x"$ac_file" = x-; then
4826    configure_input=
4827  else
4828    configure_input="$ac_file.  "
4829  fi
4830  configure_input=$configure_input"Generated from `echo $ac_file_in |
4831				     sed 's,.*/,,'` by configure."
4832
4833  # First look for the input files in the build tree, otherwise in the
4834  # src tree.
4835  ac_file_inputs=`IFS=:
4836    for f in $ac_file_in; do
4837      case $f in
4838      -) echo $tmp/stdin ;;
4839      [\\/$]*)
4840	 # Absolute (can't be DOS-style, as IFS=:)
4841	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4842echo "$as_me: error: cannot find input file: $f" >&2;}
4843   { (exit 1); exit 1; }; }
4844	 echo "$f";;
4845      *) # Relative
4846	 if test -f "$f"; then
4847	   # Build tree
4848	   echo "$f"
4849	 elif test -f "$srcdir/$f"; then
4850	   # Source tree
4851	   echo "$srcdir/$f"
4852	 else
4853	   # /dev/null tree
4854	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4855echo "$as_me: error: cannot find input file: $f" >&2;}
4856   { (exit 1); exit 1; }; }
4857	 fi;;
4858      esac
4859    done` || { (exit 1); exit 1; }
4860_ACEOF
4861cat >>$CONFIG_STATUS <<_ACEOF
4862  sed "$ac_vpsub
4863$extrasub
4864_ACEOF
4865cat >>$CONFIG_STATUS <<\_ACEOF
4866:t
4867/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4868s,@configure_input@,$configure_input,;t t
4869s,@srcdir@,$ac_srcdir,;t t
4870s,@abs_srcdir@,$ac_abs_srcdir,;t t
4871s,@top_srcdir@,$ac_top_srcdir,;t t
4872s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4873s,@builddir@,$ac_builddir,;t t
4874s,@abs_builddir@,$ac_abs_builddir,;t t
4875s,@top_builddir@,$ac_top_builddir,;t t
4876s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4877s,@INSTALL@,$ac_INSTALL,;t t
4878" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4879  rm -f $tmp/stdin
4880  if test x"$ac_file" != x-; then
4881    mv $tmp/out $ac_file
4882  else
4883    cat $tmp/out
4884    rm -f $tmp/out
4885  fi
4886
4887done
4888_ACEOF
4889cat >>$CONFIG_STATUS <<\_ACEOF
4890
4891#
4892# CONFIG_HEADER section.
4893#
4894
4895# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4896# NAME is the cpp macro being defined and VALUE is the value it is being given.
4897#
4898# ac_d sets the value in "#define NAME VALUE" lines.
4899ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
4900ac_dB='[	 ].*$,\1#\2'
4901ac_dC=' '
4902ac_dD=',;t'
4903# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4904ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
4905ac_uB='$,\1#\2define\3'
4906ac_uC=' '
4907ac_uD=',;t'
4908
4909for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4910  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4911  case $ac_file in
4912  - | *:- | *:-:* ) # input from stdin
4913	cat >$tmp/stdin
4914	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4915	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4916  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4917	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4918  * )   ac_file_in=$ac_file.in ;;
4919  esac
4920
4921  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4922echo "$as_me: creating $ac_file" >&6;}
4923
4924  # First look for the input files in the build tree, otherwise in the
4925  # src tree.
4926  ac_file_inputs=`IFS=:
4927    for f in $ac_file_in; do
4928      case $f in
4929      -) echo $tmp/stdin ;;
4930      [\\/$]*)
4931	 # Absolute (can't be DOS-style, as IFS=:)
4932	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4933echo "$as_me: error: cannot find input file: $f" >&2;}
4934   { (exit 1); exit 1; }; }
4935	 # Do quote $f, to prevent DOS paths from being IFS'd.
4936	 echo "$f";;
4937      *) # Relative
4938	 if test -f "$f"; then
4939	   # Build tree
4940	   echo "$f"
4941	 elif test -f "$srcdir/$f"; then
4942	   # Source tree
4943	   echo "$srcdir/$f"
4944	 else
4945	   # /dev/null tree
4946	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4947echo "$as_me: error: cannot find input file: $f" >&2;}
4948   { (exit 1); exit 1; }; }
4949	 fi;;
4950      esac
4951    done` || { (exit 1); exit 1; }
4952  # Remove the trailing spaces.
4953  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
4954
4955_ACEOF
4956
4957# Transform confdefs.h into two sed scripts, `conftest.defines' and
4958# `conftest.undefs', that substitutes the proper values into
4959# config.h.in to produce config.h.  The first handles `#define'
4960# templates, and the second `#undef' templates.
4961# And first: Protect against being on the right side of a sed subst in
4962# config.status.  Protect against being in an unquoted here document
4963# in config.status.
4964rm -f conftest.defines conftest.undefs
4965# Using a here document instead of a string reduces the quoting nightmare.
4966# Putting comments in sed scripts is not portable.
4967#
4968# `end' is used to avoid that the second main sed command (meant for
4969# 0-ary CPP macros) applies to n-ary macro definitions.
4970# See the Autoconf documentation for `clear'.
4971cat >confdef2sed.sed <<\_ACEOF
4972s/[\\&,]/\\&/g
4973s,[\\$`],\\&,g
4974t clear
4975: clear
4976s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4977t end
4978s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4979: end
4980_ACEOF
4981# If some macros were called several times there might be several times
4982# the same #defines, which is useless.  Nevertheless, we may not want to
4983# sort them, since we want the *last* AC-DEFINE to be honored.
4984uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4985sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4986rm -f confdef2sed.sed
4987
4988# This sed command replaces #undef with comments.  This is necessary, for
4989# example, in the case of _POSIX_SOURCE, which is predefined and required
4990# on some systems where configure will not decide to define it.
4991cat >>conftest.undefs <<\_ACEOF
4992s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4993_ACEOF
4994
4995# Break up conftest.defines because some shells have a limit on the size
4996# of here documents, and old seds have small limits too (100 cmds).
4997echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4998echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4999echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5000echo '  :' >>$CONFIG_STATUS
5001rm -f conftest.tail
5002while grep . conftest.defines >/dev/null
5003do
5004  # Write a limited-size here document to $tmp/defines.sed.
5005  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5006  # Speed up: don't consider the non `#define' lines.
5007  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
5008  # Work around the forget-to-reset-the-flag bug.
5009  echo 't clr' >>$CONFIG_STATUS
5010  echo ': clr' >>$CONFIG_STATUS
5011  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5012  echo 'CEOF
5013  sed -f $tmp/defines.sed $tmp/in >$tmp/out
5014  rm -f $tmp/in
5015  mv $tmp/out $tmp/in
5016' >>$CONFIG_STATUS
5017  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5018  rm -f conftest.defines
5019  mv conftest.tail conftest.defines
5020done
5021rm -f conftest.defines
5022echo '  fi # grep' >>$CONFIG_STATUS
5023echo >>$CONFIG_STATUS
5024
5025# Break up conftest.undefs because some shells have a limit on the size
5026# of here documents, and old seds have small limits too (100 cmds).
5027echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
5028rm -f conftest.tail
5029while grep . conftest.undefs >/dev/null
5030do
5031  # Write a limited-size here document to $tmp/undefs.sed.
5032  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5033  # Speed up: don't consider the non `#undef'
5034  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
5035  # Work around the forget-to-reset-the-flag bug.
5036  echo 't clr' >>$CONFIG_STATUS
5037  echo ': clr' >>$CONFIG_STATUS
5038  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5039  echo 'CEOF
5040  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5041  rm -f $tmp/in
5042  mv $tmp/out $tmp/in
5043' >>$CONFIG_STATUS
5044  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5045  rm -f conftest.undefs
5046  mv conftest.tail conftest.undefs
5047done
5048rm -f conftest.undefs
5049
5050cat >>$CONFIG_STATUS <<\_ACEOF
5051  # Let's still pretend it is `configure' which instantiates (i.e., don't
5052  # use $as_me), people would be surprised to read:
5053  #    /* config.h.  Generated by config.status.  */
5054  if test x"$ac_file" = x-; then
5055    echo "/* Generated by configure.  */" >$tmp/config.h
5056  else
5057    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5058  fi
5059  cat $tmp/in >>$tmp/config.h
5060  rm -f $tmp/in
5061  if test x"$ac_file" != x-; then
5062    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5063      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5064echo "$as_me: $ac_file is unchanged" >&6;}
5065    else
5066      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5067$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5068	 X"$ac_file" : 'X\(//\)[^/]' \| \
5069	 X"$ac_file" : 'X\(//\)$' \| \
5070	 X"$ac_file" : 'X\(/\)' \| \
5071	 .     : '\(.\)' 2>/dev/null ||
5072echo X"$ac_file" |
5073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5074  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5075  	  /^X\(\/\/\)$/{ s//\1/; q; }
5076  	  /^X\(\/\).*/{ s//\1/; q; }
5077  	  s/.*/./; q'`
5078      { if $as_mkdir_p; then
5079    mkdir -p "$ac_dir"
5080  else
5081    as_dir="$ac_dir"
5082    as_dirs=
5083    while test ! -d "$as_dir"; do
5084      as_dirs="$as_dir $as_dirs"
5085      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5086$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5087	 X"$as_dir" : 'X\(//\)[^/]' \| \
5088	 X"$as_dir" : 'X\(//\)$' \| \
5089	 X"$as_dir" : 'X\(/\)' \| \
5090	 .     : '\(.\)' 2>/dev/null ||
5091echo X"$as_dir" |
5092    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5093  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5094  	  /^X\(\/\/\)$/{ s//\1/; q; }
5095  	  /^X\(\/\).*/{ s//\1/; q; }
5096  	  s/.*/./; q'`
5097    done
5098    test ! -n "$as_dirs" || mkdir $as_dirs
5099  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5100echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5101   { (exit 1); exit 1; }; }; }
5102
5103      rm -f $ac_file
5104      mv $tmp/config.h $ac_file
5105    fi
5106  else
5107    cat $tmp/config.h
5108    rm -f $tmp/config.h
5109  fi
5110# Compute $ac_file's index in $config_headers.
5111_am_stamp_count=1
5112for _am_header in $config_headers :; do
5113  case $_am_header in
5114    $ac_file | $ac_file:* )
5115      break ;;
5116    * )
5117      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
5118  esac
5119done
5120echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5121$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5122	 X$ac_file : 'X\(//\)[^/]' \| \
5123	 X$ac_file : 'X\(//\)$' \| \
5124	 X$ac_file : 'X\(/\)' \| \
5125	 .     : '\(.\)' 2>/dev/null ||
5126echo X$ac_file |
5127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5128  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5129  	  /^X\(\/\/\)$/{ s//\1/; q; }
5130  	  /^X\(\/\).*/{ s//\1/; q; }
5131  	  s/.*/./; q'`/stamp-h$_am_stamp_count
5132done
5133_ACEOF
5134cat >>$CONFIG_STATUS <<\_ACEOF
5135
5136#
5137# CONFIG_COMMANDS section.
5138#
5139for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5140  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5141  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5142  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5143$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5144	 X"$ac_dest" : 'X\(//\)[^/]' \| \
5145	 X"$ac_dest" : 'X\(//\)$' \| \
5146	 X"$ac_dest" : 'X\(/\)' \| \
5147	 .     : '\(.\)' 2>/dev/null ||
5148echo X"$ac_dest" |
5149    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5150  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5151  	  /^X\(\/\/\)$/{ s//\1/; q; }
5152  	  /^X\(\/\).*/{ s//\1/; q; }
5153  	  s/.*/./; q'`
5154  { if $as_mkdir_p; then
5155    mkdir -p "$ac_dir"
5156  else
5157    as_dir="$ac_dir"
5158    as_dirs=
5159    while test ! -d "$as_dir"; do
5160      as_dirs="$as_dir $as_dirs"
5161      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5162$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5163	 X"$as_dir" : 'X\(//\)[^/]' \| \
5164	 X"$as_dir" : 'X\(//\)$' \| \
5165	 X"$as_dir" : 'X\(/\)' \| \
5166	 .     : '\(.\)' 2>/dev/null ||
5167echo X"$as_dir" |
5168    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5169  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5170  	  /^X\(\/\/\)$/{ s//\1/; q; }
5171  	  /^X\(\/\).*/{ s//\1/; q; }
5172  	  s/.*/./; q'`
5173    done
5174    test ! -n "$as_dirs" || mkdir $as_dirs
5175  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5176echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5177   { (exit 1); exit 1; }; }; }
5178
5179  ac_builddir=.
5180
5181if test "$ac_dir" != .; then
5182  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5183  # A "../" for each directory in $ac_dir_suffix.
5184  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5185else
5186  ac_dir_suffix= ac_top_builddir=
5187fi
5188
5189case $srcdir in
5190  .)  # No --srcdir option.  We are building in place.
5191    ac_srcdir=.
5192    if test -z "$ac_top_builddir"; then
5193       ac_top_srcdir=.
5194    else
5195       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5196    fi ;;
5197  [\\/]* | ?:[\\/]* )  # Absolute path.
5198    ac_srcdir=$srcdir$ac_dir_suffix;
5199    ac_top_srcdir=$srcdir ;;
5200  *) # Relative path.
5201    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5202    ac_top_srcdir=$ac_top_builddir$srcdir ;;
5203esac
5204
5205# Do not use `cd foo && pwd` to compute absolute paths, because
5206# the directories may not exist.
5207case `pwd` in
5208.) ac_abs_builddir="$ac_dir";;
5209*)
5210  case "$ac_dir" in
5211  .) ac_abs_builddir=`pwd`;;
5212  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5213  *) ac_abs_builddir=`pwd`/"$ac_dir";;
5214  esac;;
5215esac
5216case $ac_abs_builddir in
5217.) ac_abs_top_builddir=${ac_top_builddir}.;;
5218*)
5219  case ${ac_top_builddir}. in
5220  .) ac_abs_top_builddir=$ac_abs_builddir;;
5221  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5222  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5223  esac;;
5224esac
5225case $ac_abs_builddir in
5226.) ac_abs_srcdir=$ac_srcdir;;
5227*)
5228  case $ac_srcdir in
5229  .) ac_abs_srcdir=$ac_abs_builddir;;
5230  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5231  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5232  esac;;
5233esac
5234case $ac_abs_builddir in
5235.) ac_abs_top_srcdir=$ac_top_srcdir;;
5236*)
5237  case $ac_top_srcdir in
5238  .) ac_abs_top_srcdir=$ac_abs_builddir;;
5239  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5240  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5241  esac;;
5242esac
5243
5244
5245  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5246echo "$as_me: executing $ac_dest commands" >&6;}
5247  case $ac_dest in
5248    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5249  # Strip MF so we end up with the name of the file.
5250  mf=`echo "$mf" | sed -e 's/:.*$//'`
5251  # Check whether this is an Automake generated Makefile or not.
5252  # We used to match only the files named `Makefile.in', but
5253  # some people rename them; so instead we look at the file content.
5254  # Grep'ing the first line is not enough: some people post-process
5255  # each Makefile.in and add a new line on top of each file to say so.
5256  # So let's grep whole file.
5257  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5258    dirpart=`(dirname "$mf") 2>/dev/null ||
5259$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5260	 X"$mf" : 'X\(//\)[^/]' \| \
5261	 X"$mf" : 'X\(//\)$' \| \
5262	 X"$mf" : 'X\(/\)' \| \
5263	 .     : '\(.\)' 2>/dev/null ||
5264echo X"$mf" |
5265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5266  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5267  	  /^X\(\/\/\)$/{ s//\1/; q; }
5268  	  /^X\(\/\).*/{ s//\1/; q; }
5269  	  s/.*/./; q'`
5270  else
5271    continue
5272  fi
5273  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5274  # Extract the definition of DEP_FILES from the Makefile without
5275  # running `make'.
5276  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5277  test -z "$DEPDIR" && continue
5278  # When using ansi2knr, U may be empty or an underscore; expand it
5279  U=`sed -n -e '/^U = / s///p' < "$mf"`
5280  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5281  # We invoke sed twice because it is the simplest approach to
5282  # changing $(DEPDIR) to its actual value in the expansion.
5283  for file in `sed -n -e '
5284    /^DEP_FILES = .*\\\\$/ {
5285      s/^DEP_FILES = //
5286      :loop
5287	s/\\\\$//
5288	p
5289	n
5290	/\\\\$/ b loop
5291      p
5292    }
5293    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5294       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5295    # Make sure the directory exists.
5296    test -f "$dirpart/$file" && continue
5297    fdir=`(dirname "$file") 2>/dev/null ||
5298$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5299	 X"$file" : 'X\(//\)[^/]' \| \
5300	 X"$file" : 'X\(//\)$' \| \
5301	 X"$file" : 'X\(/\)' \| \
5302	 .     : '\(.\)' 2>/dev/null ||
5303echo X"$file" |
5304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5305  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5306  	  /^X\(\/\/\)$/{ s//\1/; q; }
5307  	  /^X\(\/\).*/{ s//\1/; q; }
5308  	  s/.*/./; q'`
5309    { if $as_mkdir_p; then
5310    mkdir -p $dirpart/$fdir
5311  else
5312    as_dir=$dirpart/$fdir
5313    as_dirs=
5314    while test ! -d "$as_dir"; do
5315      as_dirs="$as_dir $as_dirs"
5316      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5318	 X"$as_dir" : 'X\(//\)[^/]' \| \
5319	 X"$as_dir" : 'X\(//\)$' \| \
5320	 X"$as_dir" : 'X\(/\)' \| \
5321	 .     : '\(.\)' 2>/dev/null ||
5322echo X"$as_dir" |
5323    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5324  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5325  	  /^X\(\/\/\)$/{ s//\1/; q; }
5326  	  /^X\(\/\).*/{ s//\1/; q; }
5327  	  s/.*/./; q'`
5328    done
5329    test ! -n "$as_dirs" || mkdir $as_dirs
5330  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5331echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5332   { (exit 1); exit 1; }; }; }
5333
5334    # echo "creating $dirpart/$file"
5335    echo '# dummy' > "$dirpart/$file"
5336  done
5337done
5338 ;;
5339  esac
5340done
5341_ACEOF
5342
5343cat >>$CONFIG_STATUS <<\_ACEOF
5344
5345{ (exit 0); exit 0; }
5346_ACEOF
5347chmod +x $CONFIG_STATUS
5348ac_clean_files=$ac_clean_files_save
5349
5350
5351# configure is writing to config.log, and then calls config.status.
5352# config.status does its own redirection, appending to config.log.
5353# Unfortunately, on DOS this fails, as config.log is still kept open
5354# by configure, so config.status won't be able to write to it; its
5355# output is simply discarded.  So we exec the FD to /dev/null,
5356# effectively closing config.log, so it can be properly (re)opened and
5357# appended to by config.status.  When coming back to configure, we
5358# need to make the FD available again.
5359if test "$no_create" != yes; then
5360  ac_cs_success=:
5361  ac_config_status_args=
5362  test "$silent" = yes &&
5363    ac_config_status_args="$ac_config_status_args --quiet"
5364  exec 5>/dev/null
5365  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5366  exec 5>>config.log
5367  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5368  # would make configure fail if this is the last instruction.
5369  $ac_cs_success || { (exit 1); exit 1; }
5370fi
5371
5372