configure revision fffe5102
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for viewres 1.0.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533test -n "$DJDIR" || exec 7<&0 </dev/null
534exec 6>&1
535
536# Name of the host.
537# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538# so uname gets run too.
539ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
541#
542# Initializations.
543#
544ac_default_prefix=/usr/local
545ac_clean_files=
546ac_config_libobj_dir=.
547LIBOBJS=
548cross_compiling=no
549subdirs=
550MFLAGS=
551MAKEFLAGS=
552
553# Identity of this package.
554PACKAGE_NAME='viewres'
555PACKAGE_TARNAME='viewres'
556PACKAGE_VERSION='1.0.2'
557PACKAGE_STRING='viewres 1.0.2'
558PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
559PACKAGE_URL=''
560
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#ifdef HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#ifdef HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#ifdef STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# ifdef HAVE_STDLIB_H
575#  include <stdlib.h>
576# endif
577#endif
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580#  include <memory.h>
581# endif
582# include <string.h>
583#endif
584#ifdef HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#ifdef HAVE_INTTYPES_H
588# include <inttypes.h>
589#endif
590#ifdef HAVE_STDINT_H
591# include <stdint.h>
592#endif
593#ifdef HAVE_UNISTD_H
594# include <unistd.h>
595#endif"
596
597ac_subst_vars='am__EXEEXT_FALSE
598am__EXEEXT_TRUE
599LTLIBOBJS
600LIBOBJS
601appdefaultdir
602APPDEFS_LIBS
603APPDEFS_CFLAGS
604VIEWRES_LIBS
605VIEWRES_CFLAGS
606ADMIN_MAN_DIR
607DRIVER_MAN_DIR
608MISC_MAN_DIR
609FILE_MAN_DIR
610LIB_MAN_DIR
611APP_MAN_DIR
612ADMIN_MAN_SUFFIX
613DRIVER_MAN_SUFFIX
614MISC_MAN_SUFFIX
615FILE_MAN_SUFFIX
616LIB_MAN_SUFFIX
617APP_MAN_SUFFIX
618host_os
619host_vendor
620host_cpu
621host
622build_os
623build_vendor
624build_cpu
625build
626INSTALL_CMD
627PKG_CONFIG
628CHANGELOG_CMD
629AM_BACKSLASH
630AM_DEFAULT_VERBOSITY
631CWARNFLAGS
632EGREP
633GREP
634CPP
635am__fastdepCC_FALSE
636am__fastdepCC_TRUE
637CCDEPMODE
638AMDEPBACKSLASH
639AMDEP_FALSE
640AMDEP_TRUE
641am__quote
642am__include
643DEPDIR
644OBJEXT
645EXEEXT
646ac_ct_CC
647CPPFLAGS
648LDFLAGS
649CFLAGS
650CC
651MAINT
652MAINTAINER_MODE_FALSE
653MAINTAINER_MODE_TRUE
654am__untar
655am__tar
656AMTAR
657am__leading_dot
658SET_MAKE
659AWK
660mkdir_p
661MKDIR_P
662INSTALL_STRIP_PROGRAM
663STRIP
664install_sh
665MAKEINFO
666AUTOHEADER
667AUTOMAKE
668AUTOCONF
669ACLOCAL
670VERSION
671PACKAGE
672CYGPATH_W
673am__isrc
674INSTALL_DATA
675INSTALL_SCRIPT
676INSTALL_PROGRAM
677target_alias
678host_alias
679build_alias
680LIBS
681ECHO_T
682ECHO_N
683ECHO_C
684DEFS
685mandir
686localedir
687libdir
688psdir
689pdfdir
690dvidir
691htmldir
692infodir
693docdir
694oldincludedir
695includedir
696localstatedir
697sharedstatedir
698sysconfdir
699datadir
700datarootdir
701libexecdir
702sbindir
703bindir
704program_transform_name
705prefix
706exec_prefix
707PACKAGE_URL
708PACKAGE_BUGREPORT
709PACKAGE_STRING
710PACKAGE_VERSION
711PACKAGE_TARNAME
712PACKAGE_NAME
713PATH_SEPARATOR
714SHELL'
715ac_subst_files=''
716ac_user_opts='
717enable_option_checking
718enable_maintainer_mode
719enable_dependency_tracking
720enable_silent_rules
721enable_strict_compilation
722with_release_version
723with_appdefaultdir
724'
725      ac_precious_vars='build_alias
726host_alias
727target_alias
728CC
729CFLAGS
730LDFLAGS
731LIBS
732CPPFLAGS
733CPP
734PKG_CONFIG
735VIEWRES_CFLAGS
736VIEWRES_LIBS
737APPDEFS_CFLAGS
738APPDEFS_LIBS'
739
740
741# Initialize some variables set by options.
742ac_init_help=
743ac_init_version=false
744ac_unrecognized_opts=
745ac_unrecognized_sep=
746# The variables have the same names as the options, with
747# dashes changed to underlines.
748cache_file=/dev/null
749exec_prefix=NONE
750no_create=
751no_recursion=
752prefix=NONE
753program_prefix=NONE
754program_suffix=NONE
755program_transform_name=s,x,x,
756silent=
757site=
758srcdir=
759verbose=
760x_includes=NONE
761x_libraries=NONE
762
763# Installation directory options.
764# These are left unexpanded so users can "make install exec_prefix=/foo"
765# and all the variables that are supposed to be based on exec_prefix
766# by default will actually change.
767# Use braces instead of parens because sh, perl, etc. also accept them.
768# (The list follows the same order as the GNU Coding Standards.)
769bindir='${exec_prefix}/bin'
770sbindir='${exec_prefix}/sbin'
771libexecdir='${exec_prefix}/libexec'
772datarootdir='${prefix}/share'
773datadir='${datarootdir}'
774sysconfdir='${prefix}/etc'
775sharedstatedir='${prefix}/com'
776localstatedir='${prefix}/var'
777includedir='${prefix}/include'
778oldincludedir='/usr/include'
779docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
780infodir='${datarootdir}/info'
781htmldir='${docdir}'
782dvidir='${docdir}'
783pdfdir='${docdir}'
784psdir='${docdir}'
785libdir='${exec_prefix}/lib'
786localedir='${datarootdir}/locale'
787mandir='${datarootdir}/man'
788
789ac_prev=
790ac_dashdash=
791for ac_option
792do
793  # If the previous option needs an argument, assign it.
794  if test -n "$ac_prev"; then
795    eval $ac_prev=\$ac_option
796    ac_prev=
797    continue
798  fi
799
800  case $ac_option in
801  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802  *)	ac_optarg=yes ;;
803  esac
804
805  # Accept the important Cygnus configure options, so we can diagnose typos.
806
807  case $ac_dashdash$ac_option in
808  --)
809    ac_dashdash=yes ;;
810
811  -bindir | --bindir | --bindi | --bind | --bin | --bi)
812    ac_prev=bindir ;;
813  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814    bindir=$ac_optarg ;;
815
816  -build | --build | --buil | --bui | --bu)
817    ac_prev=build_alias ;;
818  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819    build_alias=$ac_optarg ;;
820
821  -cache-file | --cache-file | --cache-fil | --cache-fi \
822  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823    ac_prev=cache_file ;;
824  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826    cache_file=$ac_optarg ;;
827
828  --config-cache | -C)
829    cache_file=config.cache ;;
830
831  -datadir | --datadir | --datadi | --datad)
832    ac_prev=datadir ;;
833  -datadir=* | --datadir=* | --datadi=* | --datad=*)
834    datadir=$ac_optarg ;;
835
836  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837  | --dataroo | --dataro | --datar)
838    ac_prev=datarootdir ;;
839  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841    datarootdir=$ac_optarg ;;
842
843  -disable-* | --disable-*)
844    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845    # Reject names that are not valid shell variable names.
846    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847      as_fn_error "invalid feature name: $ac_useropt"
848    ac_useropt_orig=$ac_useropt
849    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850    case $ac_user_opts in
851      *"
852"enable_$ac_useropt"
853"*) ;;
854      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
855	 ac_unrecognized_sep=', ';;
856    esac
857    eval enable_$ac_useropt=no ;;
858
859  -docdir | --docdir | --docdi | --doc | --do)
860    ac_prev=docdir ;;
861  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862    docdir=$ac_optarg ;;
863
864  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865    ac_prev=dvidir ;;
866  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867    dvidir=$ac_optarg ;;
868
869  -enable-* | --enable-*)
870    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871    # Reject names that are not valid shell variable names.
872    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873      as_fn_error "invalid feature name: $ac_useropt"
874    ac_useropt_orig=$ac_useropt
875    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876    case $ac_user_opts in
877      *"
878"enable_$ac_useropt"
879"*) ;;
880      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881	 ac_unrecognized_sep=', ';;
882    esac
883    eval enable_$ac_useropt=\$ac_optarg ;;
884
885  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887  | --exec | --exe | --ex)
888    ac_prev=exec_prefix ;;
889  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891  | --exec=* | --exe=* | --ex=*)
892    exec_prefix=$ac_optarg ;;
893
894  -gas | --gas | --ga | --g)
895    # Obsolete; use --with-gas.
896    with_gas=yes ;;
897
898  -help | --help | --hel | --he | -h)
899    ac_init_help=long ;;
900  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901    ac_init_help=recursive ;;
902  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903    ac_init_help=short ;;
904
905  -host | --host | --hos | --ho)
906    ac_prev=host_alias ;;
907  -host=* | --host=* | --hos=* | --ho=*)
908    host_alias=$ac_optarg ;;
909
910  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911    ac_prev=htmldir ;;
912  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913  | --ht=*)
914    htmldir=$ac_optarg ;;
915
916  -includedir | --includedir | --includedi | --included | --include \
917  | --includ | --inclu | --incl | --inc)
918    ac_prev=includedir ;;
919  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920  | --includ=* | --inclu=* | --incl=* | --inc=*)
921    includedir=$ac_optarg ;;
922
923  -infodir | --infodir | --infodi | --infod | --info | --inf)
924    ac_prev=infodir ;;
925  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926    infodir=$ac_optarg ;;
927
928  -libdir | --libdir | --libdi | --libd)
929    ac_prev=libdir ;;
930  -libdir=* | --libdir=* | --libdi=* | --libd=*)
931    libdir=$ac_optarg ;;
932
933  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934  | --libexe | --libex | --libe)
935    ac_prev=libexecdir ;;
936  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937  | --libexe=* | --libex=* | --libe=*)
938    libexecdir=$ac_optarg ;;
939
940  -localedir | --localedir | --localedi | --localed | --locale)
941    ac_prev=localedir ;;
942  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943    localedir=$ac_optarg ;;
944
945  -localstatedir | --localstatedir | --localstatedi | --localstated \
946  | --localstate | --localstat | --localsta | --localst | --locals)
947    ac_prev=localstatedir ;;
948  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950    localstatedir=$ac_optarg ;;
951
952  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953    ac_prev=mandir ;;
954  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955    mandir=$ac_optarg ;;
956
957  -nfp | --nfp | --nf)
958    # Obsolete; use --without-fp.
959    with_fp=no ;;
960
961  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962  | --no-cr | --no-c | -n)
963    no_create=yes ;;
964
965  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967    no_recursion=yes ;;
968
969  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971  | --oldin | --oldi | --old | --ol | --o)
972    ac_prev=oldincludedir ;;
973  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976    oldincludedir=$ac_optarg ;;
977
978  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979    ac_prev=prefix ;;
980  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981    prefix=$ac_optarg ;;
982
983  -program-prefix | --program-prefix | --program-prefi | --program-pref \
984  | --program-pre | --program-pr | --program-p)
985    ac_prev=program_prefix ;;
986  -program-prefix=* | --program-prefix=* | --program-prefi=* \
987  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988    program_prefix=$ac_optarg ;;
989
990  -program-suffix | --program-suffix | --program-suffi | --program-suff \
991  | --program-suf | --program-su | --program-s)
992    ac_prev=program_suffix ;;
993  -program-suffix=* | --program-suffix=* | --program-suffi=* \
994  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995    program_suffix=$ac_optarg ;;
996
997  -program-transform-name | --program-transform-name \
998  | --program-transform-nam | --program-transform-na \
999  | --program-transform-n | --program-transform- \
1000  | --program-transform | --program-transfor \
1001  | --program-transfo | --program-transf \
1002  | --program-trans | --program-tran \
1003  | --progr-tra | --program-tr | --program-t)
1004    ac_prev=program_transform_name ;;
1005  -program-transform-name=* | --program-transform-name=* \
1006  | --program-transform-nam=* | --program-transform-na=* \
1007  | --program-transform-n=* | --program-transform-=* \
1008  | --program-transform=* | --program-transfor=* \
1009  | --program-transfo=* | --program-transf=* \
1010  | --program-trans=* | --program-tran=* \
1011  | --progr-tra=* | --program-tr=* | --program-t=*)
1012    program_transform_name=$ac_optarg ;;
1013
1014  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015    ac_prev=pdfdir ;;
1016  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017    pdfdir=$ac_optarg ;;
1018
1019  -psdir | --psdir | --psdi | --psd | --ps)
1020    ac_prev=psdir ;;
1021  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022    psdir=$ac_optarg ;;
1023
1024  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025  | -silent | --silent | --silen | --sile | --sil)
1026    silent=yes ;;
1027
1028  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029    ac_prev=sbindir ;;
1030  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031  | --sbi=* | --sb=*)
1032    sbindir=$ac_optarg ;;
1033
1034  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1035  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1036  | --sharedst | --shareds | --shared | --share | --shar \
1037  | --sha | --sh)
1038    ac_prev=sharedstatedir ;;
1039  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1040  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1041  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042  | --sha=* | --sh=*)
1043    sharedstatedir=$ac_optarg ;;
1044
1045  -site | --site | --sit)
1046    ac_prev=site ;;
1047  -site=* | --site=* | --sit=*)
1048    site=$ac_optarg ;;
1049
1050  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051    ac_prev=srcdir ;;
1052  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1053    srcdir=$ac_optarg ;;
1054
1055  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1056  | --syscon | --sysco | --sysc | --sys | --sy)
1057    ac_prev=sysconfdir ;;
1058  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1059  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1060    sysconfdir=$ac_optarg ;;
1061
1062  -target | --target | --targe | --targ | --tar | --ta | --t)
1063    ac_prev=target_alias ;;
1064  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1065    target_alias=$ac_optarg ;;
1066
1067  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1068    verbose=yes ;;
1069
1070  -version | --version | --versio | --versi | --vers | -V)
1071    ac_init_version=: ;;
1072
1073  -with-* | --with-*)
1074    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075    # Reject names that are not valid shell variable names.
1076    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1077      as_fn_error "invalid package name: $ac_useropt"
1078    ac_useropt_orig=$ac_useropt
1079    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080    case $ac_user_opts in
1081      *"
1082"with_$ac_useropt"
1083"*) ;;
1084      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1085	 ac_unrecognized_sep=', ';;
1086    esac
1087    eval with_$ac_useropt=\$ac_optarg ;;
1088
1089  -without-* | --without-*)
1090    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1091    # Reject names that are not valid shell variable names.
1092    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093      as_fn_error "invalid package name: $ac_useropt"
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"with_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1101	 ac_unrecognized_sep=', ';;
1102    esac
1103    eval with_$ac_useropt=no ;;
1104
1105  --x)
1106    # Obsolete; use --with-x.
1107    with_x=yes ;;
1108
1109  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1110  | --x-incl | --x-inc | --x-in | --x-i)
1111    ac_prev=x_includes ;;
1112  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1113  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1114    x_includes=$ac_optarg ;;
1115
1116  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1117  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1118    ac_prev=x_libraries ;;
1119  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1120  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1121    x_libraries=$ac_optarg ;;
1122
1123  -*) as_fn_error "unrecognized option: \`$ac_option'
1124Try \`$0 --help' for more information."
1125    ;;
1126
1127  *=*)
1128    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1129    # Reject names that are not valid shell variable names.
1130    case $ac_envvar in #(
1131      '' | [0-9]* | *[!_$as_cr_alnum]* )
1132      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1133    esac
1134    eval $ac_envvar=\$ac_optarg
1135    export $ac_envvar ;;
1136
1137  *)
1138    # FIXME: should be removed in autoconf 3.0.
1139    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1140    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1141      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1142    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1143    ;;
1144
1145  esac
1146done
1147
1148if test -n "$ac_prev"; then
1149  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1150  as_fn_error "missing argument to $ac_option"
1151fi
1152
1153if test -n "$ac_unrecognized_opts"; then
1154  case $enable_option_checking in
1155    no) ;;
1156    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1157    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1158  esac
1159fi
1160
1161# Check all directory arguments for consistency.
1162for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163		datadir sysconfdir sharedstatedir localstatedir includedir \
1164		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165		libdir localedir mandir
1166do
1167  eval ac_val=\$$ac_var
1168  # Remove trailing slashes.
1169  case $ac_val in
1170    */ )
1171      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1172      eval $ac_var=\$ac_val;;
1173  esac
1174  # Be sure to have absolute directory names.
1175  case $ac_val in
1176    [\\/$]* | ?:[\\/]* )  continue;;
1177    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178  esac
1179  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1180done
1181
1182# There might be people who depend on the old broken behavior: `$host'
1183# used to hold the argument of --host etc.
1184# FIXME: To remove some day.
1185build=$build_alias
1186host=$host_alias
1187target=$target_alias
1188
1189# FIXME: To remove some day.
1190if test "x$host_alias" != x; then
1191  if test "x$build_alias" = x; then
1192    cross_compiling=maybe
1193    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1194    If a cross compiler is detected then cross compile mode will be used." >&2
1195  elif test "x$build_alias" != "x$host_alias"; then
1196    cross_compiling=yes
1197  fi
1198fi
1199
1200ac_tool_prefix=
1201test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202
1203test "$silent" = yes && exec 6>/dev/null
1204
1205
1206ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207ac_ls_di=`ls -di .` &&
1208ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209  as_fn_error "working directory cannot be determined"
1210test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211  as_fn_error "pwd does not report name of working directory"
1212
1213
1214# Find the source files, if location was not specified.
1215if test -z "$srcdir"; then
1216  ac_srcdir_defaulted=yes
1217  # Try the directory containing this script, then the parent directory.
1218  ac_confdir=`$as_dirname -- "$as_myself" ||
1219$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220	 X"$as_myself" : 'X\(//\)[^/]' \| \
1221	 X"$as_myself" : 'X\(//\)$' \| \
1222	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223$as_echo X"$as_myself" |
1224    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225	    s//\1/
1226	    q
1227	  }
1228	  /^X\(\/\/\)[^/].*/{
1229	    s//\1/
1230	    q
1231	  }
1232	  /^X\(\/\/\)$/{
1233	    s//\1/
1234	    q
1235	  }
1236	  /^X\(\/\).*/{
1237	    s//\1/
1238	    q
1239	  }
1240	  s/.*/./; q'`
1241  srcdir=$ac_confdir
1242  if test ! -r "$srcdir/$ac_unique_file"; then
1243    srcdir=..
1244  fi
1245else
1246  ac_srcdir_defaulted=no
1247fi
1248if test ! -r "$srcdir/$ac_unique_file"; then
1249  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1251fi
1252ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253ac_abs_confdir=`(
1254	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1255	pwd)`
1256# When building in place, set srcdir=.
1257if test "$ac_abs_confdir" = "$ac_pwd"; then
1258  srcdir=.
1259fi
1260# Remove unnecessary trailing slashes from srcdir.
1261# Double slashes in file names in object file debugging info
1262# mess up M-x gdb in Emacs.
1263case $srcdir in
1264*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265esac
1266for ac_var in $ac_precious_vars; do
1267  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268  eval ac_env_${ac_var}_value=\$${ac_var}
1269  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271done
1272
1273#
1274# Report the --help message.
1275#
1276if test "$ac_init_help" = "long"; then
1277  # Omit some internal or obsolete options to make the list less imposing.
1278  # This message is too long to be a string in the A/UX 3.1 sh.
1279  cat <<_ACEOF
1280\`configure' configures viewres 1.0.2 to adapt to many kinds of systems.
1281
1282Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285VAR=VALUE.  See below for descriptions of some of the useful variables.
1286
1287Defaults for the options are specified in brackets.
1288
1289Configuration:
1290  -h, --help              display this help and exit
1291      --help=short        display options specific to this package
1292      --help=recursive    display the short help of all the included packages
1293  -V, --version           display version information and exit
1294  -q, --quiet, --silent   do not print \`checking...' messages
1295      --cache-file=FILE   cache test results in FILE [disabled]
1296  -C, --config-cache      alias for \`--cache-file=config.cache'
1297  -n, --no-create         do not create output files
1298      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1299
1300Installation directories:
1301  --prefix=PREFIX         install architecture-independent files in PREFIX
1302                          [$ac_default_prefix]
1303  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1304                          [PREFIX]
1305
1306By default, \`make install' will install all the files in
1307\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1308an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309for instance \`--prefix=\$HOME'.
1310
1311For better control, use the options below.
1312
1313Fine tuning of the installation directories:
1314  --bindir=DIR            user executables [EPREFIX/bin]
1315  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1316  --libexecdir=DIR        program executables [EPREFIX/libexec]
1317  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1318  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1319  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1320  --libdir=DIR            object code libraries [EPREFIX/lib]
1321  --includedir=DIR        C header files [PREFIX/include]
1322  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1323  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1324  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1325  --infodir=DIR           info documentation [DATAROOTDIR/info]
1326  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1327  --mandir=DIR            man documentation [DATAROOTDIR/man]
1328  --docdir=DIR            documentation root [DATAROOTDIR/doc/viewres]
1329  --htmldir=DIR           html documentation [DOCDIR]
1330  --dvidir=DIR            dvi documentation [DOCDIR]
1331  --pdfdir=DIR            pdf documentation [DOCDIR]
1332  --psdir=DIR             ps documentation [DOCDIR]
1333_ACEOF
1334
1335  cat <<\_ACEOF
1336
1337Program names:
1338  --program-prefix=PREFIX            prepend PREFIX to installed program names
1339  --program-suffix=SUFFIX            append SUFFIX to installed program names
1340  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1341
1342System types:
1343  --build=BUILD     configure for building on BUILD [guessed]
1344  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1345_ACEOF
1346fi
1347
1348if test -n "$ac_init_help"; then
1349  case $ac_init_help in
1350     short | recursive ) echo "Configuration of viewres 1.0.2:";;
1351   esac
1352  cat <<\_ACEOF
1353
1354Optional Features:
1355  --disable-option-checking  ignore unrecognized --enable/--with options
1356  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1357  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1358  --enable-maintainer-mode  enable make rules and dependencies not useful
1359			  (and sometimes confusing) to the casual installer
1360  --disable-dependency-tracking  speeds up one-time build
1361  --enable-dependency-tracking   do not reject slow dependency extractors
1362  --enable-silent-rules          less verbose build output (undo: `make V=1')
1363  --disable-silent-rules         verbose build output (undo: `make V=0')
1364  --enable-strict-compilation
1365                          Enable all warnings from compiler and make them
1366                          errors (default: disabled)
1367
1368Optional Packages:
1369  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1370  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1371  --with-release-version=STRING
1372                          Use release version string in package name
1373  --with-appdefaultdir=<pathname>
1374                          specify directory for app-defaults files (default is
1375                          autodetected)
1376
1377Some influential environment variables:
1378  CC          C compiler command
1379  CFLAGS      C compiler flags
1380  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1381              nonstandard directory <lib dir>
1382  LIBS        libraries to pass to the linker, e.g. -l<library>
1383  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1384              you have headers in a nonstandard directory <include dir>
1385  CPP         C preprocessor
1386  PKG_CONFIG  path to pkg-config utility
1387  VIEWRES_CFLAGS
1388              C compiler flags for VIEWRES, overriding pkg-config
1389  VIEWRES_LIBS
1390              linker flags for VIEWRES, overriding pkg-config
1391  APPDEFS_CFLAGS
1392              C compiler flags for APPDEFS, overriding pkg-config
1393  APPDEFS_LIBS
1394              linker flags for APPDEFS, overriding pkg-config
1395
1396Use these variables to override the choices made by `configure' or to help
1397it to find libraries and programs with nonstandard names/locations.
1398
1399Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1400_ACEOF
1401ac_status=$?
1402fi
1403
1404if test "$ac_init_help" = "recursive"; then
1405  # If there are subdirs, report their specific --help.
1406  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407    test -d "$ac_dir" ||
1408      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1409      continue
1410    ac_builddir=.
1411
1412case "$ac_dir" in
1413.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414*)
1415  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1416  # A ".." for each directory in $ac_dir_suffix.
1417  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1418  case $ac_top_builddir_sub in
1419  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421  esac ;;
1422esac
1423ac_abs_top_builddir=$ac_pwd
1424ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425# for backward compatibility:
1426ac_top_builddir=$ac_top_build_prefix
1427
1428case $srcdir in
1429  .)  # We are building in place.
1430    ac_srcdir=.
1431    ac_top_srcdir=$ac_top_builddir_sub
1432    ac_abs_top_srcdir=$ac_pwd ;;
1433  [\\/]* | ?:[\\/]* )  # Absolute name.
1434    ac_srcdir=$srcdir$ac_dir_suffix;
1435    ac_top_srcdir=$srcdir
1436    ac_abs_top_srcdir=$srcdir ;;
1437  *) # Relative name.
1438    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439    ac_top_srcdir=$ac_top_build_prefix$srcdir
1440    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441esac
1442ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443
1444    cd "$ac_dir" || { ac_status=$?; continue; }
1445    # Check for guested configure.
1446    if test -f "$ac_srcdir/configure.gnu"; then
1447      echo &&
1448      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449    elif test -f "$ac_srcdir/configure"; then
1450      echo &&
1451      $SHELL "$ac_srcdir/configure" --help=recursive
1452    else
1453      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454    fi || ac_status=$?
1455    cd "$ac_pwd" || { ac_status=$?; break; }
1456  done
1457fi
1458
1459test -n "$ac_init_help" && exit $ac_status
1460if $ac_init_version; then
1461  cat <<\_ACEOF
1462viewres configure 1.0.2
1463generated by GNU Autoconf 2.65
1464
1465Copyright (C) 2009 Free Software Foundation, Inc.
1466This configure script is free software; the Free Software Foundation
1467gives unlimited permission to copy, distribute and modify it.
1468_ACEOF
1469  exit
1470fi
1471
1472## ------------------------ ##
1473## Autoconf initialization. ##
1474## ------------------------ ##
1475
1476# ac_fn_c_try_compile LINENO
1477# --------------------------
1478# Try to compile conftest.$ac_ext, and return whether this succeeded.
1479ac_fn_c_try_compile ()
1480{
1481  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482  rm -f conftest.$ac_objext
1483  if { { ac_try="$ac_compile"
1484case "(($ac_try" in
1485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486  *) ac_try_echo=$ac_try;;
1487esac
1488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489$as_echo "$ac_try_echo"; } >&5
1490  (eval "$ac_compile") 2>conftest.err
1491  ac_status=$?
1492  if test -s conftest.err; then
1493    grep -v '^ *+' conftest.err >conftest.er1
1494    cat conftest.er1 >&5
1495    mv -f conftest.er1 conftest.err
1496  fi
1497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1498  test $ac_status = 0; } && {
1499	 test -z "$ac_c_werror_flag" ||
1500	 test ! -s conftest.err
1501       } && test -s conftest.$ac_objext; then :
1502  ac_retval=0
1503else
1504  $as_echo "$as_me: failed program was:" >&5
1505sed 's/^/| /' conftest.$ac_ext >&5
1506
1507	ac_retval=1
1508fi
1509  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1510  as_fn_set_status $ac_retval
1511
1512} # ac_fn_c_try_compile
1513
1514# ac_fn_c_check_decl LINENO SYMBOL VAR
1515# ------------------------------------
1516# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1517ac_fn_c_check_decl ()
1518{
1519  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1521$as_echo_n "checking whether $2 is declared... " >&6; }
1522if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1523  $as_echo_n "(cached) " >&6
1524else
1525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1526/* end confdefs.h.  */
1527$4
1528int
1529main ()
1530{
1531#ifndef $2
1532  (void) $2;
1533#endif
1534
1535  ;
1536  return 0;
1537}
1538_ACEOF
1539if ac_fn_c_try_compile "$LINENO"; then :
1540  eval "$3=yes"
1541else
1542  eval "$3=no"
1543fi
1544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1545fi
1546eval ac_res=\$$3
1547	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1548$as_echo "$ac_res" >&6; }
1549  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550
1551} # ac_fn_c_check_decl
1552
1553# ac_fn_c_try_cpp LINENO
1554# ----------------------
1555# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_cpp ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  if { { ac_try="$ac_cpp conftest.$ac_ext"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } >/dev/null && {
1575	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       }; then :
1578  ac_retval=0
1579else
1580  $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583    ac_retval=1
1584fi
1585  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_cpp
1589
1590# ac_fn_c_try_run LINENO
1591# ----------------------
1592# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1593# that executables *can* be run.
1594ac_fn_c_try_run ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  if { { ac_try="$ac_link"
1598case "(($ac_try" in
1599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600  *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604  (eval "$ac_link") 2>&5
1605  ac_status=$?
1606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1608  { { case "(($ac_try" in
1609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610  *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614  (eval "$ac_try") 2>&5
1615  ac_status=$?
1616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617  test $ac_status = 0; }; }; then :
1618  ac_retval=0
1619else
1620  $as_echo "$as_me: program exited with status $ac_status" >&5
1621       $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624       ac_retval=$ac_status
1625fi
1626  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628  as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_run
1631
1632# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633# -------------------------------------------------------
1634# Tests whether HEADER exists and can be compiled using the include files in
1635# INCLUDES, setting the cache variable VAR accordingly.
1636ac_fn_c_check_header_compile ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640$as_echo_n "checking for $2... " >&6; }
1641if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642  $as_echo_n "(cached) " >&6
1643else
1644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h.  */
1646$4
1647#include <$2>
1648_ACEOF
1649if ac_fn_c_try_compile "$LINENO"; then :
1650  eval "$3=yes"
1651else
1652  eval "$3=no"
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655fi
1656eval ac_res=\$$3
1657	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658$as_echo "$ac_res" >&6; }
1659  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660
1661} # ac_fn_c_check_header_compile
1662cat >config.log <<_ACEOF
1663This file contains any messages produced by compilers while
1664running configure, to aid debugging if configure makes a mistake.
1665
1666It was created by viewres $as_me 1.0.2, which was
1667generated by GNU Autoconf 2.65.  Invocation command line was
1668
1669  $ $0 $@
1670
1671_ACEOF
1672exec 5>>config.log
1673{
1674cat <<_ASUNAME
1675## --------- ##
1676## Platform. ##
1677## --------- ##
1678
1679hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1680uname -m = `(uname -m) 2>/dev/null || echo unknown`
1681uname -r = `(uname -r) 2>/dev/null || echo unknown`
1682uname -s = `(uname -s) 2>/dev/null || echo unknown`
1683uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684
1685/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1686/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1687
1688/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1689/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1690/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1691/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1692/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1693/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1694/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1695
1696_ASUNAME
1697
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701  IFS=$as_save_IFS
1702  test -z "$as_dir" && as_dir=.
1703    $as_echo "PATH: $as_dir"
1704  done
1705IFS=$as_save_IFS
1706
1707} >&5
1708
1709cat >&5 <<_ACEOF
1710
1711
1712## ----------- ##
1713## Core tests. ##
1714## ----------- ##
1715
1716_ACEOF
1717
1718
1719# Keep a trace of the command line.
1720# Strip out --no-create and --no-recursion so they do not pile up.
1721# Strip out --silent because we don't want to record it for future runs.
1722# Also quote any args containing shell meta-characters.
1723# Make two passes to allow for proper duplicate-argument suppression.
1724ac_configure_args=
1725ac_configure_args0=
1726ac_configure_args1=
1727ac_must_keep_next=false
1728for ac_pass in 1 2
1729do
1730  for ac_arg
1731  do
1732    case $ac_arg in
1733    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735    | -silent | --silent | --silen | --sile | --sil)
1736      continue ;;
1737    *\'*)
1738      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1739    esac
1740    case $ac_pass in
1741    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1742    2)
1743      as_fn_append ac_configure_args1 " '$ac_arg'"
1744      if test $ac_must_keep_next = true; then
1745	ac_must_keep_next=false # Got value, back to normal.
1746      else
1747	case $ac_arg in
1748	  *=* | --config-cache | -C | -disable-* | --disable-* \
1749	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751	  | -with-* | --with-* | -without-* | --without-* | --x)
1752	    case "$ac_configure_args0 " in
1753	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1754	    esac
1755	    ;;
1756	  -* ) ac_must_keep_next=true ;;
1757	esac
1758      fi
1759      as_fn_append ac_configure_args " '$ac_arg'"
1760      ;;
1761    esac
1762  done
1763done
1764{ ac_configure_args0=; unset ac_configure_args0;}
1765{ ac_configure_args1=; unset ac_configure_args1;}
1766
1767# When interrupted or exit'd, cleanup temporary files, and complete
1768# config.log.  We remove comments because anyway the quotes in there
1769# would cause problems or look ugly.
1770# WARNING: Use '\'' to represent an apostrophe within the trap.
1771# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772trap 'exit_status=$?
1773  # Save into config.log some information that might help in debugging.
1774  {
1775    echo
1776
1777    cat <<\_ASBOX
1778## ---------------- ##
1779## Cache variables. ##
1780## ---------------- ##
1781_ASBOX
1782    echo
1783    # The following way of writing the cache mishandles newlines in values,
1784(
1785  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1786    eval ac_val=\$$ac_var
1787    case $ac_val in #(
1788    *${as_nl}*)
1789      case $ac_var in #(
1790      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1791$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1792      esac
1793      case $ac_var in #(
1794      _ | IFS | as_nl) ;; #(
1795      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1796      *) { eval $ac_var=; unset $ac_var;} ;;
1797      esac ;;
1798    esac
1799  done
1800  (set) 2>&1 |
1801    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1802    *${as_nl}ac_space=\ *)
1803      sed -n \
1804	"s/'\''/'\''\\\\'\'''\''/g;
1805	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1806      ;; #(
1807    *)
1808      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1809      ;;
1810    esac |
1811    sort
1812)
1813    echo
1814
1815    cat <<\_ASBOX
1816## ----------------- ##
1817## Output variables. ##
1818## ----------------- ##
1819_ASBOX
1820    echo
1821    for ac_var in $ac_subst_vars
1822    do
1823      eval ac_val=\$$ac_var
1824      case $ac_val in
1825      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826      esac
1827      $as_echo "$ac_var='\''$ac_val'\''"
1828    done | sort
1829    echo
1830
1831    if test -n "$ac_subst_files"; then
1832      cat <<\_ASBOX
1833## ------------------- ##
1834## File substitutions. ##
1835## ------------------- ##
1836_ASBOX
1837      echo
1838      for ac_var in $ac_subst_files
1839      do
1840	eval ac_val=\$$ac_var
1841	case $ac_val in
1842	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843	esac
1844	$as_echo "$ac_var='\''$ac_val'\''"
1845      done | sort
1846      echo
1847    fi
1848
1849    if test -s confdefs.h; then
1850      cat <<\_ASBOX
1851## ----------- ##
1852## confdefs.h. ##
1853## ----------- ##
1854_ASBOX
1855      echo
1856      cat confdefs.h
1857      echo
1858    fi
1859    test "$ac_signal" != 0 &&
1860      $as_echo "$as_me: caught signal $ac_signal"
1861    $as_echo "$as_me: exit $exit_status"
1862  } >&5
1863  rm -f core *.core core.conftest.* &&
1864    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1865    exit $exit_status
1866' 0
1867for ac_signal in 1 2 13 15; do
1868  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1869done
1870ac_signal=0
1871
1872# confdefs.h avoids OS command line length limits that DEFS can exceed.
1873rm -f -r conftest* confdefs.h
1874
1875$as_echo "/* confdefs.h */" > confdefs.h
1876
1877# Predefined preprocessor variables.
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_NAME "$PACKAGE_NAME"
1881_ACEOF
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1885_ACEOF
1886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_VERSION "$PACKAGE_VERSION"
1889_ACEOF
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_STRING "$PACKAGE_STRING"
1893_ACEOF
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1897_ACEOF
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_URL "$PACKAGE_URL"
1901_ACEOF
1902
1903
1904# Let the site file select an alternate cache file if it wants to.
1905# Prefer an explicitly selected file to automatically selected ones.
1906ac_site_file1=NONE
1907ac_site_file2=NONE
1908if test -n "$CONFIG_SITE"; then
1909  ac_site_file1=$CONFIG_SITE
1910elif test "x$prefix" != xNONE; then
1911  ac_site_file1=$prefix/share/config.site
1912  ac_site_file2=$prefix/etc/config.site
1913else
1914  ac_site_file1=$ac_default_prefix/share/config.site
1915  ac_site_file2=$ac_default_prefix/etc/config.site
1916fi
1917for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1918do
1919  test "x$ac_site_file" = xNONE && continue
1920  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1922$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1923    sed 's/^/| /' "$ac_site_file" >&5
1924    . "$ac_site_file"
1925  fi
1926done
1927
1928if test -r "$cache_file"; then
1929  # Some versions of bash will fail to source /dev/null (special files
1930  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1931  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1932    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1933$as_echo "$as_me: loading cache $cache_file" >&6;}
1934    case $cache_file in
1935      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936      *)                      . "./$cache_file";;
1937    esac
1938  fi
1939else
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1941$as_echo "$as_me: creating cache $cache_file" >&6;}
1942  >$cache_file
1943fi
1944
1945# Check that the precious variables saved in the cache have kept the same
1946# value.
1947ac_cache_corrupted=false
1948for ac_var in $ac_precious_vars; do
1949  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1950  eval ac_new_set=\$ac_env_${ac_var}_set
1951  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952  eval ac_new_val=\$ac_env_${ac_var}_value
1953  case $ac_old_set,$ac_new_set in
1954    set,)
1955      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1957      ac_cache_corrupted=: ;;
1958    ,set)
1959      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1960$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1961      ac_cache_corrupted=: ;;
1962    ,);;
1963    *)
1964      if test "x$ac_old_val" != "x$ac_new_val"; then
1965	# differences in whitespace do not lead to failure.
1966	ac_old_val_w=`echo x $ac_old_val`
1967	ac_new_val_w=`echo x $ac_new_val`
1968	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1969	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1970$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1971	  ac_cache_corrupted=:
1972	else
1973	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1974$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1975	  eval $ac_var=\$ac_old_val
1976	fi
1977	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1978$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1979	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1980$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1981      fi;;
1982  esac
1983  # Pass precious variables to config.status.
1984  if test "$ac_new_set" = set; then
1985    case $ac_new_val in
1986    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1987    *) ac_arg=$ac_var=$ac_new_val ;;
1988    esac
1989    case " $ac_configure_args " in
1990      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1991      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1992    esac
1993  fi
1994done
1995if $ac_cache_corrupted; then
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1998  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1999$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2001fi
2002## -------------------- ##
2003## Main body of script. ##
2004## -------------------- ##
2005
2006ac_ext=c
2007ac_cpp='$CPP $CPPFLAGS'
2008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011
2012
2013am__api_version='1.11'
2014
2015ac_aux_dir=
2016for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2017  for ac_t in install-sh install.sh shtool; do
2018    if test -f "$ac_dir/$ac_t"; then
2019      ac_aux_dir=$ac_dir
2020      ac_install_sh="$ac_aux_dir/$ac_t -c"
2021      break 2
2022    fi
2023  done
2024done
2025if test -z "$ac_aux_dir"; then
2026  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2027fi
2028
2029# These three variables are undocumented and unsupported,
2030# and are intended to be withdrawn in a future Autoconf release.
2031# They can cause serious problems if a builder's source tree is in a directory
2032# whose full name contains unusual characters.
2033ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2034ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2035ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2036
2037
2038# Find a good install program.  We prefer a C program (faster),
2039# so one script is as good as another.  But avoid the broken or
2040# incompatible versions:
2041# SysV /etc/install, /usr/sbin/install
2042# SunOS /usr/etc/install
2043# IRIX /sbin/install
2044# AIX /bin/install
2045# AmigaOS /C/install, which installs bootblocks on floppy discs
2046# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2047# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2048# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2049# OS/2's system install, which has a completely different semantic
2050# ./install, which can be erroneously created by make from ./install.sh.
2051# Reject install programs that cannot install multiple files.
2052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2053$as_echo_n "checking for a BSD-compatible install... " >&6; }
2054if test -z "$INSTALL"; then
2055if test "${ac_cv_path_install+set}" = set; then :
2056  $as_echo_n "(cached) " >&6
2057else
2058  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061  IFS=$as_save_IFS
2062  test -z "$as_dir" && as_dir=.
2063    # Account for people who put trailing slashes in PATH elements.
2064case $as_dir/ in #((
2065  ./ | .// | /[cC]/* | \
2066  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2067  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2068  /usr/ucb/* ) ;;
2069  *)
2070    # OSF1 and SCO ODT 3.0 have their own names for install.
2071    # Don't use installbsd from OSF since it installs stuff as root
2072    # by default.
2073    for ac_prog in ginstall scoinst install; do
2074      for ac_exec_ext in '' $ac_executable_extensions; do
2075	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2076	  if test $ac_prog = install &&
2077	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2078	    # AIX install.  It has an incompatible calling convention.
2079	    :
2080	  elif test $ac_prog = install &&
2081	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2082	    # program-specific install script used by HP pwplus--don't use.
2083	    :
2084	  else
2085	    rm -rf conftest.one conftest.two conftest.dir
2086	    echo one > conftest.one
2087	    echo two > conftest.two
2088	    mkdir conftest.dir
2089	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2090	      test -s conftest.one && test -s conftest.two &&
2091	      test -s conftest.dir/conftest.one &&
2092	      test -s conftest.dir/conftest.two
2093	    then
2094	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2095	      break 3
2096	    fi
2097	  fi
2098	fi
2099      done
2100    done
2101    ;;
2102esac
2103
2104  done
2105IFS=$as_save_IFS
2106
2107rm -rf conftest.one conftest.two conftest.dir
2108
2109fi
2110  if test "${ac_cv_path_install+set}" = set; then
2111    INSTALL=$ac_cv_path_install
2112  else
2113    # As a last resort, use the slow shell script.  Don't cache a
2114    # value for INSTALL within a source directory, because that will
2115    # break other packages using the cache if that directory is
2116    # removed, or if the value is a relative name.
2117    INSTALL=$ac_install_sh
2118  fi
2119fi
2120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2121$as_echo "$INSTALL" >&6; }
2122
2123# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2124# It thinks the first close brace ends the variable substitution.
2125test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2126
2127test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2128
2129test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2130
2131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2132$as_echo_n "checking whether build environment is sane... " >&6; }
2133# Just in case
2134sleep 1
2135echo timestamp > conftest.file
2136# Reject unsafe characters in $srcdir or the absolute working directory
2137# name.  Accept space and tab only in the latter.
2138am_lf='
2139'
2140case `pwd` in
2141  *[\\\"\#\$\&\'\`$am_lf]*)
2142    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2143esac
2144case $srcdir in
2145  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2146    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2147esac
2148
2149# Do `set' in a subshell so we don't clobber the current shell's
2150# arguments.  Must try -L first in case configure is actually a
2151# symlink; some systems play weird games with the mod time of symlinks
2152# (eg FreeBSD returns the mod time of the symlink's containing
2153# directory).
2154if (
2155   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2156   if test "$*" = "X"; then
2157      # -L didn't work.
2158      set X `ls -t "$srcdir/configure" conftest.file`
2159   fi
2160   rm -f conftest.file
2161   if test "$*" != "X $srcdir/configure conftest.file" \
2162      && test "$*" != "X conftest.file $srcdir/configure"; then
2163
2164      # If neither matched, then we have a broken ls.  This can happen
2165      # if, for instance, CONFIG_SHELL is bash and it inherits a
2166      # broken ls alias from the environment.  This has actually
2167      # happened.  Such a system could not be considered "sane".
2168      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2169alias in your environment" "$LINENO" 5
2170   fi
2171
2172   test "$2" = conftest.file
2173   )
2174then
2175   # Ok.
2176   :
2177else
2178   as_fn_error "newly created file is older than distributed files!
2179Check your system clock" "$LINENO" 5
2180fi
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2182$as_echo "yes" >&6; }
2183test "$program_prefix" != NONE &&
2184  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2185# Use a double $ so make ignores it.
2186test "$program_suffix" != NONE &&
2187  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2188# Double any \ or $.
2189# By default was `s,x,x', remove it if useless.
2190ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2191program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2192
2193# expand $ac_aux_dir to an absolute path
2194am_aux_dir=`cd $ac_aux_dir && pwd`
2195
2196if test x"${MISSING+set}" != xset; then
2197  case $am_aux_dir in
2198  *\ * | *\	*)
2199    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2200  *)
2201    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2202  esac
2203fi
2204# Use eval to expand $SHELL
2205if eval "$MISSING --run true"; then
2206  am_missing_run="$MISSING --run "
2207else
2208  am_missing_run=
2209  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2210$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2211fi
2212
2213if test x"${install_sh}" != xset; then
2214  case $am_aux_dir in
2215  *\ * | *\	*)
2216    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2217  *)
2218    install_sh="\${SHELL} $am_aux_dir/install-sh"
2219  esac
2220fi
2221
2222# Installed binaries are usually stripped using `strip' when the user
2223# run `make install-strip'.  However `strip' might not be the right
2224# tool to use in cross-compilation environments, therefore Automake
2225# will honor the `STRIP' environment variable to overrule this program.
2226if test "$cross_compiling" != no; then
2227  if test -n "$ac_tool_prefix"; then
2228  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2229set dummy ${ac_tool_prefix}strip; ac_word=$2
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2231$as_echo_n "checking for $ac_word... " >&6; }
2232if test "${ac_cv_prog_STRIP+set}" = set; then :
2233  $as_echo_n "(cached) " >&6
2234else
2235  if test -n "$STRIP"; then
2236  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2237else
2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241  IFS=$as_save_IFS
2242  test -z "$as_dir" && as_dir=.
2243    for ac_exec_ext in '' $ac_executable_extensions; do
2244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2245    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2247    break 2
2248  fi
2249done
2250  done
2251IFS=$as_save_IFS
2252
2253fi
2254fi
2255STRIP=$ac_cv_prog_STRIP
2256if test -n "$STRIP"; then
2257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2258$as_echo "$STRIP" >&6; }
2259else
2260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2261$as_echo "no" >&6; }
2262fi
2263
2264
2265fi
2266if test -z "$ac_cv_prog_STRIP"; then
2267  ac_ct_STRIP=$STRIP
2268  # Extract the first word of "strip", so it can be a program name with args.
2269set dummy strip; ac_word=$2
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2271$as_echo_n "checking for $ac_word... " >&6; }
2272if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2273  $as_echo_n "(cached) " >&6
2274else
2275  if test -n "$ac_ct_STRIP"; then
2276  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2277else
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281  IFS=$as_save_IFS
2282  test -z "$as_dir" && as_dir=.
2283    for ac_exec_ext in '' $ac_executable_extensions; do
2284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285    ac_cv_prog_ac_ct_STRIP="strip"
2286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2287    break 2
2288  fi
2289done
2290  done
2291IFS=$as_save_IFS
2292
2293fi
2294fi
2295ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2296if test -n "$ac_ct_STRIP"; then
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2298$as_echo "$ac_ct_STRIP" >&6; }
2299else
2300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2301$as_echo "no" >&6; }
2302fi
2303
2304  if test "x$ac_ct_STRIP" = x; then
2305    STRIP=":"
2306  else
2307    case $cross_compiling:$ac_tool_warned in
2308yes:)
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2311ac_tool_warned=yes ;;
2312esac
2313    STRIP=$ac_ct_STRIP
2314  fi
2315else
2316  STRIP="$ac_cv_prog_STRIP"
2317fi
2318
2319fi
2320INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2321
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2323$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2324if test -z "$MKDIR_P"; then
2325  if test "${ac_cv_path_mkdir+set}" = set; then :
2326  $as_echo_n "(cached) " >&6
2327else
2328  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2330do
2331  IFS=$as_save_IFS
2332  test -z "$as_dir" && as_dir=.
2333    for ac_prog in mkdir gmkdir; do
2334	 for ac_exec_ext in '' $ac_executable_extensions; do
2335	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2336	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2337	     'mkdir (GNU coreutils) '* | \
2338	     'mkdir (coreutils) '* | \
2339	     'mkdir (fileutils) '4.1*)
2340	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2341	       break 3;;
2342	   esac
2343	 done
2344       done
2345  done
2346IFS=$as_save_IFS
2347
2348fi
2349
2350  test -d ./--version && rmdir ./--version
2351  if test "${ac_cv_path_mkdir+set}" = set; then
2352    MKDIR_P="$ac_cv_path_mkdir -p"
2353  else
2354    # As a last resort, use the slow shell script.  Don't cache a
2355    # value for MKDIR_P within a source directory, because that will
2356    # break other packages using the cache if that directory is
2357    # removed, or if the value is a relative name.
2358    MKDIR_P="$ac_install_sh -d"
2359  fi
2360fi
2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2362$as_echo "$MKDIR_P" >&6; }
2363
2364mkdir_p="$MKDIR_P"
2365case $mkdir_p in
2366  [\\/$]* | ?:[\\/]*) ;;
2367  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2368esac
2369
2370for ac_prog in gawk mawk nawk awk
2371do
2372  # Extract the first word of "$ac_prog", so it can be a program name with args.
2373set dummy $ac_prog; ac_word=$2
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
2376if test "${ac_cv_prog_AWK+set}" = set; then :
2377  $as_echo_n "(cached) " >&6
2378else
2379  if test -n "$AWK"; then
2380  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387    for ac_exec_ext in '' $ac_executable_extensions; do
2388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389    ac_cv_prog_AWK="$ac_prog"
2390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394  done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399AWK=$ac_cv_prog_AWK
2400if test -n "$AWK"; then
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2402$as_echo "$AWK" >&6; }
2403else
2404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405$as_echo "no" >&6; }
2406fi
2407
2408
2409  test -n "$AWK" && break
2410done
2411
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2413$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2414set x ${MAKE-make}
2415ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2416if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2417  $as_echo_n "(cached) " >&6
2418else
2419  cat >conftest.make <<\_ACEOF
2420SHELL = /bin/sh
2421all:
2422	@echo '@@@%%%=$(MAKE)=@@@%%%'
2423_ACEOF
2424# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2425case `${MAKE-make} -f conftest.make 2>/dev/null` in
2426  *@@@%%%=?*=@@@%%%*)
2427    eval ac_cv_prog_make_${ac_make}_set=yes;;
2428  *)
2429    eval ac_cv_prog_make_${ac_make}_set=no;;
2430esac
2431rm -f conftest.make
2432fi
2433if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2435$as_echo "yes" >&6; }
2436  SET_MAKE=
2437else
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439$as_echo "no" >&6; }
2440  SET_MAKE="MAKE=${MAKE-make}"
2441fi
2442
2443rm -rf .tst 2>/dev/null
2444mkdir .tst 2>/dev/null
2445if test -d .tst; then
2446  am__leading_dot=.
2447else
2448  am__leading_dot=_
2449fi
2450rmdir .tst 2>/dev/null
2451
2452if test "`cd $srcdir && pwd`" != "`pwd`"; then
2453  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2454  # is not polluted with repeated "-I."
2455  am__isrc=' -I$(srcdir)'
2456  # test to see if srcdir already configured
2457  if test -f $srcdir/config.status; then
2458    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2459  fi
2460fi
2461
2462# test whether we have cygpath
2463if test -z "$CYGPATH_W"; then
2464  if (cygpath --version) >/dev/null 2>/dev/null; then
2465    CYGPATH_W='cygpath -w'
2466  else
2467    CYGPATH_W=echo
2468  fi
2469fi
2470
2471
2472# Define the identity of the package.
2473 PACKAGE='viewres'
2474 VERSION='1.0.2'
2475
2476
2477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE "$PACKAGE"
2479_ACEOF
2480
2481
2482cat >>confdefs.h <<_ACEOF
2483#define VERSION "$VERSION"
2484_ACEOF
2485
2486# Some tools Automake needs.
2487
2488ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2489
2490
2491AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2492
2493
2494AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2495
2496
2497AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2498
2499
2500MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2501
2502# We need awk for the "check" target.  The system "awk" is bad on
2503# some platforms.
2504# Always define AMTAR for backward compatibility.
2505
2506AMTAR=${AMTAR-"${am_missing_run}tar"}
2507
2508am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2509
2510
2511
2512
2513
2514
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2516$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2517    # Check whether --enable-maintainer-mode was given.
2518if test "${enable_maintainer_mode+set}" = set; then :
2519  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2520else
2521  USE_MAINTAINER_MODE=no
2522fi
2523
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2525$as_echo "$USE_MAINTAINER_MODE" >&6; }
2526   if test $USE_MAINTAINER_MODE = yes; then
2527  MAINTAINER_MODE_TRUE=
2528  MAINTAINER_MODE_FALSE='#'
2529else
2530  MAINTAINER_MODE_TRUE='#'
2531  MAINTAINER_MODE_FALSE=
2532fi
2533
2534  MAINT=$MAINTAINER_MODE_TRUE
2535
2536
2537
2538# Require xorg-macros: XORG_DEFAULT_OPTIONS
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550DEPDIR="${am__leading_dot}deps"
2551
2552ac_config_commands="$ac_config_commands depfiles"
2553
2554
2555am_make=${MAKE-make}
2556cat > confinc << 'END'
2557am__doit:
2558	@echo this is the am__doit target
2559.PHONY: am__doit
2560END
2561# If we don't find an include directive, just comment out the code.
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2563$as_echo_n "checking for style of include used by $am_make... " >&6; }
2564am__include="#"
2565am__quote=
2566_am_result=none
2567# First try GNU make style include.
2568echo "include confinc" > confmf
2569# Ignore all kinds of additional output from `make'.
2570case `$am_make -s -f confmf 2> /dev/null` in #(
2571*the\ am__doit\ target*)
2572  am__include=include
2573  am__quote=
2574  _am_result=GNU
2575  ;;
2576esac
2577# Now try BSD make style include.
2578if test "$am__include" = "#"; then
2579   echo '.include "confinc"' > confmf
2580   case `$am_make -s -f confmf 2> /dev/null` in #(
2581   *the\ am__doit\ target*)
2582     am__include=.include
2583     am__quote="\""
2584     _am_result=BSD
2585     ;;
2586   esac
2587fi
2588
2589
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2591$as_echo "$_am_result" >&6; }
2592rm -f confinc confmf
2593
2594# Check whether --enable-dependency-tracking was given.
2595if test "${enable_dependency_tracking+set}" = set; then :
2596  enableval=$enable_dependency_tracking;
2597fi
2598
2599if test "x$enable_dependency_tracking" != xno; then
2600  am_depcomp="$ac_aux_dir/depcomp"
2601  AMDEPBACKSLASH='\'
2602fi
2603 if test "x$enable_dependency_tracking" != xno; then
2604  AMDEP_TRUE=
2605  AMDEP_FALSE='#'
2606else
2607  AMDEP_TRUE='#'
2608  AMDEP_FALSE=
2609fi
2610
2611
2612ac_ext=c
2613ac_cpp='$CPP $CPPFLAGS'
2614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617if test -n "$ac_tool_prefix"; then
2618  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2619set dummy ${ac_tool_prefix}gcc; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if test "${ac_cv_prog_CC+set}" = set; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  if test -n "$CC"; then
2626  ac_cv_prog_CC="$CC" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631  IFS=$as_save_IFS
2632  test -z "$as_dir" && as_dir=.
2633    for ac_exec_ext in '' $ac_executable_extensions; do
2634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2635    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637    break 2
2638  fi
2639done
2640  done
2641IFS=$as_save_IFS
2642
2643fi
2644fi
2645CC=$ac_cv_prog_CC
2646if test -n "$CC"; then
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2648$as_echo "$CC" >&6; }
2649else
2650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651$as_echo "no" >&6; }
2652fi
2653
2654
2655fi
2656if test -z "$ac_cv_prog_CC"; then
2657  ac_ct_CC=$CC
2658  # Extract the first word of "gcc", so it can be a program name with args.
2659set dummy gcc; ac_word=$2
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
2662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2663  $as_echo_n "(cached) " >&6
2664else
2665  if test -n "$ac_ct_CC"; then
2666  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671  IFS=$as_save_IFS
2672  test -z "$as_dir" && as_dir=.
2673    for ac_exec_ext in '' $ac_executable_extensions; do
2674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675    ac_cv_prog_ac_ct_CC="gcc"
2676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677    break 2
2678  fi
2679done
2680  done
2681IFS=$as_save_IFS
2682
2683fi
2684fi
2685ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686if test -n "$ac_ct_CC"; then
2687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688$as_echo "$ac_ct_CC" >&6; }
2689else
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
2692fi
2693
2694  if test "x$ac_ct_CC" = x; then
2695    CC=""
2696  else
2697    case $cross_compiling:$ac_tool_warned in
2698yes:)
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2701ac_tool_warned=yes ;;
2702esac
2703    CC=$ac_ct_CC
2704  fi
2705else
2706  CC="$ac_cv_prog_CC"
2707fi
2708
2709if test -z "$CC"; then
2710          if test -n "$ac_tool_prefix"; then
2711    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2712set dummy ${ac_tool_prefix}cc; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if test "${ac_cv_prog_CC+set}" = set; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  if test -n "$CC"; then
2719  ac_cv_prog_CC="$CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724  IFS=$as_save_IFS
2725  test -z "$as_dir" && as_dir=.
2726    for ac_exec_ext in '' $ac_executable_extensions; do
2727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728    ac_cv_prog_CC="${ac_tool_prefix}cc"
2729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730    break 2
2731  fi
2732done
2733  done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
2740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741$as_echo "$CC" >&6; }
2742else
2743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747
2748  fi
2749fi
2750if test -z "$CC"; then
2751  # Extract the first word of "cc", so it can be a program name with args.
2752set dummy cc; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if test "${ac_cv_prog_CC+set}" = set; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$CC"; then
2759  ac_cv_prog_CC="$CC" # Let the user override the test.
2760else
2761  ac_prog_rejected=no
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765  IFS=$as_save_IFS
2766  test -z "$as_dir" && as_dir=.
2767    for ac_exec_ext in '' $ac_executable_extensions; do
2768  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2770       ac_prog_rejected=yes
2771       continue
2772     fi
2773    ac_cv_prog_CC="cc"
2774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775    break 2
2776  fi
2777done
2778  done
2779IFS=$as_save_IFS
2780
2781if test $ac_prog_rejected = yes; then
2782  # We found a bogon in the path, so make sure we never use it.
2783  set dummy $ac_cv_prog_CC
2784  shift
2785  if test $# != 0; then
2786    # We chose a different compiler from the bogus one.
2787    # However, it has the same basename, so the bogon will be chosen
2788    # first if we set CC to just the basename; use the full file name.
2789    shift
2790    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2791  fi
2792fi
2793fi
2794fi
2795CC=$ac_cv_prog_CC
2796if test -n "$CC"; then
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798$as_echo "$CC" >&6; }
2799else
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802fi
2803
2804
2805fi
2806if test -z "$CC"; then
2807  if test -n "$ac_tool_prefix"; then
2808  for ac_prog in cl.exe
2809  do
2810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if test "${ac_cv_prog_CC+set}" = set; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$CC"; then
2818  ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825    for ac_exec_ext in '' $ac_executable_extensions; do
2826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840$as_echo "$CC" >&6; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847    test -n "$CC" && break
2848  done
2849fi
2850if test -z "$CC"; then
2851  ac_ct_CC=$CC
2852  for ac_prog in cl.exe
2853do
2854  # Extract the first word of "$ac_prog", so it can be a program name with args.
2855set dummy $ac_prog; ac_word=$2
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857$as_echo_n "checking for $ac_word... " >&6; }
2858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  if test -n "$ac_ct_CC"; then
2862  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867  IFS=$as_save_IFS
2868  test -z "$as_dir" && as_dir=.
2869    for ac_exec_ext in '' $ac_executable_extensions; do
2870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871    ac_cv_prog_ac_ct_CC="$ac_prog"
2872    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873    break 2
2874  fi
2875done
2876  done
2877IFS=$as_save_IFS
2878
2879fi
2880fi
2881ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882if test -n "$ac_ct_CC"; then
2883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2884$as_echo "$ac_ct_CC" >&6; }
2885else
2886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887$as_echo "no" >&6; }
2888fi
2889
2890
2891  test -n "$ac_ct_CC" && break
2892done
2893
2894  if test "x$ac_ct_CC" = x; then
2895    CC=""
2896  else
2897    case $cross_compiling:$ac_tool_warned in
2898yes:)
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901ac_tool_warned=yes ;;
2902esac
2903    CC=$ac_ct_CC
2904  fi
2905fi
2906
2907fi
2908
2909
2910test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912as_fn_error "no acceptable C compiler found in \$PATH
2913See \`config.log' for more details." "$LINENO" 5; }
2914
2915# Provide some information about the compiler.
2916$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2917set X $ac_compile
2918ac_compiler=$2
2919for ac_option in --version -v -V -qversion; do
2920  { { ac_try="$ac_compiler $ac_option >&5"
2921case "(($ac_try" in
2922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923  *) ac_try_echo=$ac_try;;
2924esac
2925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926$as_echo "$ac_try_echo"; } >&5
2927  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2928  ac_status=$?
2929  if test -s conftest.err; then
2930    sed '10a\
2931... rest of stderr output deleted ...
2932         10q' conftest.err >conftest.er1
2933    cat conftest.er1 >&5
2934  fi
2935  rm -f conftest.er1 conftest.err
2936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937  test $ac_status = 0; }
2938done
2939
2940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941/* end confdefs.h.  */
2942
2943int
2944main ()
2945{
2946
2947  ;
2948  return 0;
2949}
2950_ACEOF
2951ac_clean_files_save=$ac_clean_files
2952ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2953# Try to create an executable without -o first, disregard a.out.
2954# It will help us diagnose broken compilers, and finding out an intuition
2955# of exeext.
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2957$as_echo_n "checking whether the C compiler works... " >&6; }
2958ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2959
2960# The possible output files:
2961ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2962
2963ac_rmfiles=
2964for ac_file in $ac_files
2965do
2966  case $ac_file in
2967    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2968    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2969  esac
2970done
2971rm -f $ac_rmfiles
2972
2973if { { ac_try="$ac_link_default"
2974case "(($ac_try" in
2975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976  *) ac_try_echo=$ac_try;;
2977esac
2978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979$as_echo "$ac_try_echo"; } >&5
2980  (eval "$ac_link_default") 2>&5
2981  ac_status=$?
2982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983  test $ac_status = 0; }; then :
2984  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2987# so that the user can short-circuit this test for compilers unknown to
2988# Autoconf.
2989for ac_file in $ac_files ''
2990do
2991  test -f "$ac_file" || continue
2992  case $ac_file in
2993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2994	;;
2995    [ab].out )
2996	# We found the default executable, but exeext='' is most
2997	# certainly right.
2998	break;;
2999    *.* )
3000	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001	then :; else
3002	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003	fi
3004	# We set ac_cv_exeext here because the later test for it is not
3005	# safe: cross compilers may not add the suffix if given an `-o'
3006	# argument, so we may need to know it at that point already.
3007	# Even if this section looks crufty: it has the advantage of
3008	# actually working.
3009	break;;
3010    * )
3011	break;;
3012  esac
3013done
3014test "$ac_cv_exeext" = no && ac_cv_exeext=
3015
3016else
3017  ac_file=''
3018fi
3019if test -z "$ac_file"; then :
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021$as_echo "no" >&6; }
3022$as_echo "$as_me: failed program was:" >&5
3023sed 's/^/| /' conftest.$ac_ext >&5
3024
3025{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027{ as_fn_set_status 77
3028as_fn_error "C compiler cannot create executables
3029See \`config.log' for more details." "$LINENO" 5; }; }
3030else
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3032$as_echo "yes" >&6; }
3033fi
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3035$as_echo_n "checking for C compiler default output file name... " >&6; }
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3037$as_echo "$ac_file" >&6; }
3038ac_exeext=$ac_cv_exeext
3039
3040rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3041ac_clean_files=$ac_clean_files_save
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3043$as_echo_n "checking for suffix of executables... " >&6; }
3044if { { ac_try="$ac_link"
3045case "(($ac_try" in
3046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047  *) ac_try_echo=$ac_try;;
3048esac
3049eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050$as_echo "$ac_try_echo"; } >&5
3051  (eval "$ac_link") 2>&5
3052  ac_status=$?
3053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054  test $ac_status = 0; }; then :
3055  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3056# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3057# work properly (i.e., refer to `conftest.exe'), while it won't with
3058# `rm'.
3059for ac_file in conftest.exe conftest conftest.*; do
3060  test -f "$ac_file" || continue
3061  case $ac_file in
3062    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3063    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3064	  break;;
3065    * ) break;;
3066  esac
3067done
3068else
3069  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071as_fn_error "cannot compute suffix of executables: cannot compile and link
3072See \`config.log' for more details." "$LINENO" 5; }
3073fi
3074rm -f conftest conftest$ac_cv_exeext
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3076$as_echo "$ac_cv_exeext" >&6; }
3077
3078rm -f conftest.$ac_ext
3079EXEEXT=$ac_cv_exeext
3080ac_exeext=$EXEEXT
3081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082/* end confdefs.h.  */
3083#include <stdio.h>
3084int
3085main ()
3086{
3087FILE *f = fopen ("conftest.out", "w");
3088 return ferror (f) || fclose (f) != 0;
3089
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094ac_clean_files="$ac_clean_files conftest.out"
3095# Check that the compiler produces executables we can run.  If not, either
3096# the compiler is broken, or we cross compile.
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3098$as_echo_n "checking whether we are cross compiling... " >&6; }
3099if test "$cross_compiling" != yes; then
3100  { { ac_try="$ac_link"
3101case "(($ac_try" in
3102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103  *) ac_try_echo=$ac_try;;
3104esac
3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106$as_echo "$ac_try_echo"; } >&5
3107  (eval "$ac_link") 2>&5
3108  ac_status=$?
3109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110  test $ac_status = 0; }
3111  if { ac_try='./conftest$ac_cv_exeext'
3112  { { case "(($ac_try" in
3113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114  *) ac_try_echo=$ac_try;;
3115esac
3116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
3118  (eval "$ac_try") 2>&5
3119  ac_status=$?
3120  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121  test $ac_status = 0; }; }; then
3122    cross_compiling=no
3123  else
3124    if test "$cross_compiling" = maybe; then
3125	cross_compiling=yes
3126    else
3127	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129as_fn_error "cannot run C compiled programs.
3130If you meant to cross compile, use \`--host'.
3131See \`config.log' for more details." "$LINENO" 5; }
3132    fi
3133  fi
3134fi
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3136$as_echo "$cross_compiling" >&6; }
3137
3138rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3139ac_clean_files=$ac_clean_files_save
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141$as_echo_n "checking for suffix of object files... " >&6; }
3142if test "${ac_cv_objext+set}" = set; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146/* end confdefs.h.  */
3147
3148int
3149main ()
3150{
3151
3152  ;
3153  return 0;
3154}
3155_ACEOF
3156rm -f conftest.o conftest.obj
3157if { { ac_try="$ac_compile"
3158case "(($ac_try" in
3159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160  *) ac_try_echo=$ac_try;;
3161esac
3162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163$as_echo "$ac_try_echo"; } >&5
3164  (eval "$ac_compile") 2>&5
3165  ac_status=$?
3166  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167  test $ac_status = 0; }; then :
3168  for ac_file in conftest.o conftest.obj conftest.*; do
3169  test -f "$ac_file" || continue;
3170  case $ac_file in
3171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173       break;;
3174  esac
3175done
3176else
3177  $as_echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182as_fn_error "cannot compute suffix of object files: cannot compile
3183See \`config.log' for more details." "$LINENO" 5; }
3184fi
3185rm -f conftest.$ac_cv_objext conftest.$ac_ext
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188$as_echo "$ac_cv_objext" >&6; }
3189OBJEXT=$ac_cv_objext
3190ac_objext=$OBJEXT
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3194  $as_echo_n "(cached) " >&6
3195else
3196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202#ifndef __GNUC__
3203       choke me
3204#endif
3205
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210if ac_fn_c_try_compile "$LINENO"; then :
3211  ac_compiler_gnu=yes
3212else
3213  ac_compiler_gnu=no
3214fi
3215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221if test $ac_compiler_gnu = yes; then
3222  GCC=yes
3223else
3224  GCC=
3225fi
3226ac_test_CFLAGS=${CFLAGS+set}
3227ac_save_CFLAGS=$CFLAGS
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229$as_echo_n "checking whether $CC accepts -g... " >&6; }
3230if test "${ac_cv_prog_cc_g+set}" = set; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  ac_save_c_werror_flag=$ac_c_werror_flag
3234   ac_c_werror_flag=yes
3235   ac_cv_prog_cc_g=no
3236   CFLAGS="-g"
3237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238/* end confdefs.h.  */
3239
3240int
3241main ()
3242{
3243
3244  ;
3245  return 0;
3246}
3247_ACEOF
3248if ac_fn_c_try_compile "$LINENO"; then :
3249  ac_cv_prog_cc_g=yes
3250else
3251  CFLAGS=""
3252      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254
3255int
3256main ()
3257{
3258
3259  ;
3260  return 0;
3261}
3262_ACEOF
3263if ac_fn_c_try_compile "$LINENO"; then :
3264
3265else
3266  ac_c_werror_flag=$ac_save_c_werror_flag
3267	 CFLAGS="-g"
3268	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269/* end confdefs.h.  */
3270
3271int
3272main ()
3273{
3274
3275  ;
3276  return 0;
3277}
3278_ACEOF
3279if ac_fn_c_try_compile "$LINENO"; then :
3280  ac_cv_prog_cc_g=yes
3281fi
3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283fi
3284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285fi
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287   ac_c_werror_flag=$ac_save_c_werror_flag
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290$as_echo "$ac_cv_prog_cc_g" >&6; }
3291if test "$ac_test_CFLAGS" = set; then
3292  CFLAGS=$ac_save_CFLAGS
3293elif test $ac_cv_prog_cc_g = yes; then
3294  if test "$GCC" = yes; then
3295    CFLAGS="-g -O2"
3296  else
3297    CFLAGS="-g"
3298  fi
3299else
3300  if test "$GCC" = yes; then
3301    CFLAGS="-O2"
3302  else
3303    CFLAGS=
3304  fi
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308if test "${ac_cv_prog_cc_c89+set}" = set; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  ac_cv_prog_cc_c89=no
3312ac_save_CC=$CC
3313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314/* end confdefs.h.  */
3315#include <stdarg.h>
3316#include <stdio.h>
3317#include <sys/types.h>
3318#include <sys/stat.h>
3319/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3320struct buf { int x; };
3321FILE * (*rcsopen) (struct buf *, struct stat *, int);
3322static char *e (p, i)
3323     char **p;
3324     int i;
3325{
3326  return p[i];
3327}
3328static char *f (char * (*g) (char **, int), char **p, ...)
3329{
3330  char *s;
3331  va_list v;
3332  va_start (v,p);
3333  s = g (p, va_arg (v,int));
3334  va_end (v);
3335  return s;
3336}
3337
3338/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3339   function prototypes and stuff, but not '\xHH' hex character constants.
3340   These don't provoke an error unfortunately, instead are silently treated
3341   as 'x'.  The following induces an error, until -std is added to get
3342   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3343   array size at least.  It's necessary to write '\x00'==0 to get something
3344   that's true only with -std.  */
3345int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3346
3347/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3348   inside strings and character constants.  */
3349#define FOO(x) 'x'
3350int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3351
3352int test (int i, double x);
3353struct s1 {int (*f) (int a);};
3354struct s2 {int (*f) (double a);};
3355int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3356int argc;
3357char **argv;
3358int
3359main ()
3360{
3361return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3362  ;
3363  return 0;
3364}
3365_ACEOF
3366for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3367	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3368do
3369  CC="$ac_save_CC $ac_arg"
3370  if ac_fn_c_try_compile "$LINENO"; then :
3371  ac_cv_prog_cc_c89=$ac_arg
3372fi
3373rm -f core conftest.err conftest.$ac_objext
3374  test "x$ac_cv_prog_cc_c89" != "xno" && break
3375done
3376rm -f conftest.$ac_ext
3377CC=$ac_save_CC
3378
3379fi
3380# AC_CACHE_VAL
3381case "x$ac_cv_prog_cc_c89" in
3382  x)
3383    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3384$as_echo "none needed" >&6; } ;;
3385  xno)
3386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3387$as_echo "unsupported" >&6; } ;;
3388  *)
3389    CC="$CC $ac_cv_prog_cc_c89"
3390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3391$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3392esac
3393if test "x$ac_cv_prog_cc_c89" != xno; then :
3394
3395fi
3396
3397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403depcc="$CC"   am_compiler_list=
3404
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3406$as_echo_n "checking dependency style of $depcc... " >&6; }
3407if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3411  # We make a subdir and do the tests there.  Otherwise we can end up
3412  # making bogus files that we don't know about and never remove.  For
3413  # instance it was reported that on HP-UX the gcc test will end up
3414  # making a dummy file named `D' -- because `-MD' means `put the output
3415  # in D'.
3416  mkdir conftest.dir
3417  # Copy depcomp to subdir because otherwise we won't find it if we're
3418  # using a relative directory.
3419  cp "$am_depcomp" conftest.dir
3420  cd conftest.dir
3421  # We will build objects and dependencies in a subdirectory because
3422  # it helps to detect inapplicable dependency modes.  For instance
3423  # both Tru64's cc and ICC support -MD to output dependencies as a
3424  # side effect of compilation, but ICC will put the dependencies in
3425  # the current directory while Tru64 will put them in the object
3426  # directory.
3427  mkdir sub
3428
3429  am_cv_CC_dependencies_compiler_type=none
3430  if test "$am_compiler_list" = ""; then
3431     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3432  fi
3433  am__universal=false
3434  case " $depcc " in #(
3435     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3436     esac
3437
3438  for depmode in $am_compiler_list; do
3439    # Setup a source with many dependencies, because some compilers
3440    # like to wrap large dependency lists on column 80 (with \), and
3441    # we should not choose a depcomp mode which is confused by this.
3442    #
3443    # We need to recreate these files for each test, as the compiler may
3444    # overwrite some of them when testing with obscure command lines.
3445    # This happens at least with the AIX C compiler.
3446    : > sub/conftest.c
3447    for i in 1 2 3 4 5 6; do
3448      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3449      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3450      # Solaris 8's {/usr,}/bin/sh.
3451      touch sub/conftst$i.h
3452    done
3453    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3454
3455    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3456    # mode.  It turns out that the SunPro C++ compiler does not properly
3457    # handle `-M -o', and we need to detect this.  Also, some Intel
3458    # versions had trouble with output in subdirs
3459    am__obj=sub/conftest.${OBJEXT-o}
3460    am__minus_obj="-o $am__obj"
3461    case $depmode in
3462    gcc)
3463      # This depmode causes a compiler race in universal mode.
3464      test "$am__universal" = false || continue
3465      ;;
3466    nosideeffect)
3467      # after this tag, mechanisms are not by side-effect, so they'll
3468      # only be used when explicitly requested
3469      if test "x$enable_dependency_tracking" = xyes; then
3470	continue
3471      else
3472	break
3473      fi
3474      ;;
3475    msvisualcpp | msvcmsys)
3476      # This compiler won't grok `-c -o', but also, the minuso test has
3477      # not run yet.  These depmodes are late enough in the game, and
3478      # so weak that their functioning should not be impacted.
3479      am__obj=conftest.${OBJEXT-o}
3480      am__minus_obj=
3481      ;;
3482    none) break ;;
3483    esac
3484    if depmode=$depmode \
3485       source=sub/conftest.c object=$am__obj \
3486       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3487       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3488         >/dev/null 2>conftest.err &&
3489       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3490       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3491       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3492       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3493      # icc doesn't choke on unknown options, it will just issue warnings
3494      # or remarks (even with -Werror).  So we grep stderr for any message
3495      # that says an option was ignored or not supported.
3496      # When given -MP, icc 7.0 and 7.1 complain thusly:
3497      #   icc: Command line warning: ignoring option '-M'; no argument required
3498      # The diagnosis changed in icc 8.0:
3499      #   icc: Command line remark: option '-MP' not supported
3500      if (grep 'ignoring option' conftest.err ||
3501          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3502        am_cv_CC_dependencies_compiler_type=$depmode
3503        break
3504      fi
3505    fi
3506  done
3507
3508  cd ..
3509  rm -rf conftest.dir
3510else
3511  am_cv_CC_dependencies_compiler_type=none
3512fi
3513
3514fi
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3516$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3517CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3518
3519 if
3520  test "x$enable_dependency_tracking" != xno \
3521  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3522  am__fastdepCC_TRUE=
3523  am__fastdepCC_FALSE='#'
3524else
3525  am__fastdepCC_TRUE='#'
3526  am__fastdepCC_FALSE=
3527fi
3528
3529
3530
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3537$as_echo_n "checking how to run the C preprocessor... " >&6; }
3538# On Suns, sometimes $CPP names a directory.
3539if test -n "$CPP" && test -d "$CPP"; then
3540  CPP=
3541fi
3542if test -z "$CPP"; then
3543  if test "${ac_cv_prog_CPP+set}" = set; then :
3544  $as_echo_n "(cached) " >&6
3545else
3546      # Double quotes because CPP needs to be expanded
3547    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3548    do
3549      ac_preproc_ok=false
3550for ac_c_preproc_warn_flag in '' yes
3551do
3552  # Use a header file that comes with gcc, so configuring glibc
3553  # with a fresh cross-compiler works.
3554  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555  # <limits.h> exists even on freestanding compilers.
3556  # On the NeXT, cc -E runs the code through the compiler's parser,
3557  # not just through cpp. "Syntax error" is here to catch this case.
3558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559/* end confdefs.h.  */
3560#ifdef __STDC__
3561# include <limits.h>
3562#else
3563# include <assert.h>
3564#endif
3565		     Syntax error
3566_ACEOF
3567if ac_fn_c_try_cpp "$LINENO"; then :
3568
3569else
3570  # Broken: fails on valid input.
3571continue
3572fi
3573rm -f conftest.err conftest.$ac_ext
3574
3575  # OK, works on sane cases.  Now check whether nonexistent headers
3576  # can be detected and how.
3577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579#include <ac_nonexistent.h>
3580_ACEOF
3581if ac_fn_c_try_cpp "$LINENO"; then :
3582  # Broken: success on invalid input.
3583continue
3584else
3585  # Passes both tests.
3586ac_preproc_ok=:
3587break
3588fi
3589rm -f conftest.err conftest.$ac_ext
3590
3591done
3592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593rm -f conftest.err conftest.$ac_ext
3594if $ac_preproc_ok; then :
3595  break
3596fi
3597
3598    done
3599    ac_cv_prog_CPP=$CPP
3600
3601fi
3602  CPP=$ac_cv_prog_CPP
3603else
3604  ac_cv_prog_CPP=$CPP
3605fi
3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3607$as_echo "$CPP" >&6; }
3608ac_preproc_ok=false
3609for ac_c_preproc_warn_flag in '' yes
3610do
3611  # Use a header file that comes with gcc, so configuring glibc
3612  # with a fresh cross-compiler works.
3613  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3614  # <limits.h> exists even on freestanding compilers.
3615  # On the NeXT, cc -E runs the code through the compiler's parser,
3616  # not just through cpp. "Syntax error" is here to catch this case.
3617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618/* end confdefs.h.  */
3619#ifdef __STDC__
3620# include <limits.h>
3621#else
3622# include <assert.h>
3623#endif
3624		     Syntax error
3625_ACEOF
3626if ac_fn_c_try_cpp "$LINENO"; then :
3627
3628else
3629  # Broken: fails on valid input.
3630continue
3631fi
3632rm -f conftest.err conftest.$ac_ext
3633
3634  # OK, works on sane cases.  Now check whether nonexistent headers
3635  # can be detected and how.
3636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637/* end confdefs.h.  */
3638#include <ac_nonexistent.h>
3639_ACEOF
3640if ac_fn_c_try_cpp "$LINENO"; then :
3641  # Broken: success on invalid input.
3642continue
3643else
3644  # Passes both tests.
3645ac_preproc_ok=:
3646break
3647fi
3648rm -f conftest.err conftest.$ac_ext
3649
3650done
3651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652rm -f conftest.err conftest.$ac_ext
3653if $ac_preproc_ok; then :
3654
3655else
3656  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658as_fn_error "C preprocessor \"$CPP\" fails sanity check
3659See \`config.log' for more details." "$LINENO" 5; }
3660fi
3661
3662ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667
3668
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3670$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3671if test "${ac_cv_path_GREP+set}" = set; then :
3672  $as_echo_n "(cached) " >&6
3673else
3674  if test -z "$GREP"; then
3675  ac_path_GREP_found=false
3676  # Loop through the user's path and test for each of PROGNAME-LIST
3677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3679do
3680  IFS=$as_save_IFS
3681  test -z "$as_dir" && as_dir=.
3682    for ac_prog in grep ggrep; do
3683    for ac_exec_ext in '' $ac_executable_extensions; do
3684      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3685      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3686# Check for GNU ac_path_GREP and select it if it is found.
3687  # Check for GNU $ac_path_GREP
3688case `"$ac_path_GREP" --version 2>&1` in
3689*GNU*)
3690  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3691*)
3692  ac_count=0
3693  $as_echo_n 0123456789 >"conftest.in"
3694  while :
3695  do
3696    cat "conftest.in" "conftest.in" >"conftest.tmp"
3697    mv "conftest.tmp" "conftest.in"
3698    cp "conftest.in" "conftest.nl"
3699    $as_echo 'GREP' >> "conftest.nl"
3700    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3701    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3702    as_fn_arith $ac_count + 1 && ac_count=$as_val
3703    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704      # Best one so far, save it but keep looking for a better one
3705      ac_cv_path_GREP="$ac_path_GREP"
3706      ac_path_GREP_max=$ac_count
3707    fi
3708    # 10*(2^10) chars as input seems more than enough
3709    test $ac_count -gt 10 && break
3710  done
3711  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3712esac
3713
3714      $ac_path_GREP_found && break 3
3715    done
3716  done
3717  done
3718IFS=$as_save_IFS
3719  if test -z "$ac_cv_path_GREP"; then
3720    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3721  fi
3722else
3723  ac_cv_path_GREP=$GREP
3724fi
3725
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3728$as_echo "$ac_cv_path_GREP" >&6; }
3729 GREP="$ac_cv_path_GREP"
3730
3731
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3733$as_echo_n "checking for egrep... " >&6; }
3734if test "${ac_cv_path_EGREP+set}" = set; then :
3735  $as_echo_n "(cached) " >&6
3736else
3737  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3738   then ac_cv_path_EGREP="$GREP -E"
3739   else
3740     if test -z "$EGREP"; then
3741  ac_path_EGREP_found=false
3742  # Loop through the user's path and test for each of PROGNAME-LIST
3743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745do
3746  IFS=$as_save_IFS
3747  test -z "$as_dir" && as_dir=.
3748    for ac_prog in egrep; do
3749    for ac_exec_ext in '' $ac_executable_extensions; do
3750      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3751      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3752# Check for GNU ac_path_EGREP and select it if it is found.
3753  # Check for GNU $ac_path_EGREP
3754case `"$ac_path_EGREP" --version 2>&1` in
3755*GNU*)
3756  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757*)
3758  ac_count=0
3759  $as_echo_n 0123456789 >"conftest.in"
3760  while :
3761  do
3762    cat "conftest.in" "conftest.in" >"conftest.tmp"
3763    mv "conftest.tmp" "conftest.in"
3764    cp "conftest.in" "conftest.nl"
3765    $as_echo 'EGREP' >> "conftest.nl"
3766    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3767    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3768    as_fn_arith $ac_count + 1 && ac_count=$as_val
3769    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3770      # Best one so far, save it but keep looking for a better one
3771      ac_cv_path_EGREP="$ac_path_EGREP"
3772      ac_path_EGREP_max=$ac_count
3773    fi
3774    # 10*(2^10) chars as input seems more than enough
3775    test $ac_count -gt 10 && break
3776  done
3777  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778esac
3779
3780      $ac_path_EGREP_found && break 3
3781    done
3782  done
3783  done
3784IFS=$as_save_IFS
3785  if test -z "$ac_cv_path_EGREP"; then
3786    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3787  fi
3788else
3789  ac_cv_path_EGREP=$EGREP
3790fi
3791
3792   fi
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3795$as_echo "$ac_cv_path_EGREP" >&6; }
3796 EGREP="$ac_cv_path_EGREP"
3797
3798
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3800$as_echo_n "checking for ANSI C header files... " >&6; }
3801if test "${ac_cv_header_stdc+set}" = set; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805/* end confdefs.h.  */
3806#include <stdlib.h>
3807#include <stdarg.h>
3808#include <string.h>
3809#include <float.h>
3810
3811int
3812main ()
3813{
3814
3815  ;
3816  return 0;
3817}
3818_ACEOF
3819if ac_fn_c_try_compile "$LINENO"; then :
3820  ac_cv_header_stdc=yes
3821else
3822  ac_cv_header_stdc=no
3823fi
3824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825
3826if test $ac_cv_header_stdc = yes; then
3827  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829/* end confdefs.h.  */
3830#include <string.h>
3831
3832_ACEOF
3833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834  $EGREP "memchr" >/dev/null 2>&1; then :
3835
3836else
3837  ac_cv_header_stdc=no
3838fi
3839rm -f conftest*
3840
3841fi
3842
3843if test $ac_cv_header_stdc = yes; then
3844  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h.  */
3847#include <stdlib.h>
3848
3849_ACEOF
3850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851  $EGREP "free" >/dev/null 2>&1; then :
3852
3853else
3854  ac_cv_header_stdc=no
3855fi
3856rm -f conftest*
3857
3858fi
3859
3860if test $ac_cv_header_stdc = yes; then
3861  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3862  if test "$cross_compiling" = yes; then :
3863  :
3864else
3865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866/* end confdefs.h.  */
3867#include <ctype.h>
3868#include <stdlib.h>
3869#if ((' ' & 0x0FF) == 0x020)
3870# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3871# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3872#else
3873# define ISLOWER(c) \
3874		   (('a' <= (c) && (c) <= 'i') \
3875		     || ('j' <= (c) && (c) <= 'r') \
3876		     || ('s' <= (c) && (c) <= 'z'))
3877# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878#endif
3879
3880#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3881int
3882main ()
3883{
3884  int i;
3885  for (i = 0; i < 256; i++)
3886    if (XOR (islower (i), ISLOWER (i))
3887	|| toupper (i) != TOUPPER (i))
3888      return 2;
3889  return 0;
3890}
3891_ACEOF
3892if ac_fn_c_try_run "$LINENO"; then :
3893
3894else
3895  ac_cv_header_stdc=no
3896fi
3897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3898  conftest.$ac_objext conftest.beam conftest.$ac_ext
3899fi
3900
3901fi
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3904$as_echo "$ac_cv_header_stdc" >&6; }
3905if test $ac_cv_header_stdc = yes; then
3906
3907$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3908
3909fi
3910
3911# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3912for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3913		  inttypes.h stdint.h unistd.h
3914do :
3915  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3916ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3917"
3918eval as_val=\$$as_ac_Header
3919   if test "x$as_val" = x""yes; then :
3920  cat >>confdefs.h <<_ACEOF
3921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3922_ACEOF
3923
3924fi
3925
3926done
3927
3928
3929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3930$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3931if test "${ac_cv_prog_cc_c99+set}" = set; then :
3932  $as_echo_n "(cached) " >&6
3933else
3934  ac_cv_prog_cc_c99=no
3935ac_save_CC=$CC
3936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h.  */
3938#include <stdarg.h>
3939#include <stdbool.h>
3940#include <stdlib.h>
3941#include <wchar.h>
3942#include <stdio.h>
3943
3944// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3945#define debug(...) fprintf (stderr, __VA_ARGS__)
3946#define showlist(...) puts (#__VA_ARGS__)
3947#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3948static void
3949test_varargs_macros (void)
3950{
3951  int x = 1234;
3952  int y = 5678;
3953  debug ("Flag");
3954  debug ("X = %d\n", x);
3955  showlist (The first, second, and third items.);
3956  report (x>y, "x is %d but y is %d", x, y);
3957}
3958
3959// Check long long types.
3960#define BIG64 18446744073709551615ull
3961#define BIG32 4294967295ul
3962#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3963#if !BIG_OK
3964  your preprocessor is broken;
3965#endif
3966#if BIG_OK
3967#else
3968  your preprocessor is broken;
3969#endif
3970static long long int bignum = -9223372036854775807LL;
3971static unsigned long long int ubignum = BIG64;
3972
3973struct incomplete_array
3974{
3975  int datasize;
3976  double data[];
3977};
3978
3979struct named_init {
3980  int number;
3981  const wchar_t *name;
3982  double average;
3983};
3984
3985typedef const char *ccp;
3986
3987static inline int
3988test_restrict (ccp restrict text)
3989{
3990  // See if C++-style comments work.
3991  // Iterate through items via the restricted pointer.
3992  // Also check for declarations in for loops.
3993  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3994    continue;
3995  return 0;
3996}
3997
3998// Check varargs and va_copy.
3999static void
4000test_varargs (const char *format, ...)
4001{
4002  va_list args;
4003  va_start (args, format);
4004  va_list args_copy;
4005  va_copy (args_copy, args);
4006
4007  const char *str;
4008  int number;
4009  float fnumber;
4010
4011  while (*format)
4012    {
4013      switch (*format++)
4014	{
4015	case 's': // string
4016	  str = va_arg (args_copy, const char *);
4017	  break;
4018	case 'd': // int
4019	  number = va_arg (args_copy, int);
4020	  break;
4021	case 'f': // float
4022	  fnumber = va_arg (args_copy, double);
4023	  break;
4024	default:
4025	  break;
4026	}
4027    }
4028  va_end (args_copy);
4029  va_end (args);
4030}
4031
4032int
4033main ()
4034{
4035
4036  // Check bool.
4037  _Bool success = false;
4038
4039  // Check restrict.
4040  if (test_restrict ("String literal") == 0)
4041    success = true;
4042  char *restrict newvar = "Another string";
4043
4044  // Check varargs.
4045  test_varargs ("s, d' f .", "string", 65, 34.234);
4046  test_varargs_macros ();
4047
4048  // Check flexible array members.
4049  struct incomplete_array *ia =
4050    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4051  ia->datasize = 10;
4052  for (int i = 0; i < ia->datasize; ++i)
4053    ia->data[i] = i * 1.234;
4054
4055  // Check named initializers.
4056  struct named_init ni = {
4057    .number = 34,
4058    .name = L"Test wide string",
4059    .average = 543.34343,
4060  };
4061
4062  ni.number = 58;
4063
4064  int dynamic_array[ni.number];
4065  dynamic_array[ni.number - 1] = 543;
4066
4067  // work around unused variable warnings
4068  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4069	  || dynamic_array[ni.number - 1] != 543);
4070
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4076do
4077  CC="$ac_save_CC $ac_arg"
4078  if ac_fn_c_try_compile "$LINENO"; then :
4079  ac_cv_prog_cc_c99=$ac_arg
4080fi
4081rm -f core conftest.err conftest.$ac_objext
4082  test "x$ac_cv_prog_cc_c99" != "xno" && break
4083done
4084rm -f conftest.$ac_ext
4085CC=$ac_save_CC
4086
4087fi
4088# AC_CACHE_VAL
4089case "x$ac_cv_prog_cc_c99" in
4090  x)
4091    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4092$as_echo "none needed" >&6; } ;;
4093  xno)
4094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4095$as_echo "unsupported" >&6; } ;;
4096  *)
4097    CC="$CC $ac_cv_prog_cc_c99"
4098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4099$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4100esac
4101if test "x$ac_cv_prog_cc_c99" != xno; then :
4102
4103fi
4104
4105
4106
4107
4108if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4109	if test -n "$ac_tool_prefix"; then
4110  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4111set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113$as_echo_n "checking for $ac_word... " >&6; }
4114if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4115  $as_echo_n "(cached) " >&6
4116else
4117  case $PKG_CONFIG in
4118  [\\/]* | ?:[\\/]*)
4119  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4120  ;;
4121  *)
4122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125  IFS=$as_save_IFS
4126  test -z "$as_dir" && as_dir=.
4127    for ac_exec_ext in '' $ac_executable_extensions; do
4128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4129    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131    break 2
4132  fi
4133done
4134  done
4135IFS=$as_save_IFS
4136
4137  ;;
4138esac
4139fi
4140PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4141if test -n "$PKG_CONFIG"; then
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4143$as_echo "$PKG_CONFIG" >&6; }
4144else
4145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146$as_echo "no" >&6; }
4147fi
4148
4149
4150fi
4151if test -z "$ac_cv_path_PKG_CONFIG"; then
4152  ac_pt_PKG_CONFIG=$PKG_CONFIG
4153  # Extract the first word of "pkg-config", so it can be a program name with args.
4154set dummy pkg-config; ac_word=$2
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156$as_echo_n "checking for $ac_word... " >&6; }
4157if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  case $ac_pt_PKG_CONFIG in
4161  [\\/]* | ?:[\\/]*)
4162  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4163  ;;
4164  *)
4165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH
4167do
4168  IFS=$as_save_IFS
4169  test -z "$as_dir" && as_dir=.
4170    for ac_exec_ext in '' $ac_executable_extensions; do
4171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174    break 2
4175  fi
4176done
4177  done
4178IFS=$as_save_IFS
4179
4180  ;;
4181esac
4182fi
4183ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4184if test -n "$ac_pt_PKG_CONFIG"; then
4185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4186$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4187else
4188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189$as_echo "no" >&6; }
4190fi
4191
4192  if test "x$ac_pt_PKG_CONFIG" = x; then
4193    PKG_CONFIG=""
4194  else
4195    case $cross_compiling:$ac_tool_warned in
4196yes:)
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199ac_tool_warned=yes ;;
4200esac
4201    PKG_CONFIG=$ac_pt_PKG_CONFIG
4202  fi
4203else
4204  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4205fi
4206
4207fi
4208if test -n "$PKG_CONFIG"; then
4209	_pkg_min_version=0.9.0
4210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4211$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4212	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4214$as_echo "yes" >&6; }
4215	else
4216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217$as_echo "no" >&6; }
4218		PKG_CONFIG=""
4219	fi
4220
4221fi
4222# Make sure we can run config.sub.
4223$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4224  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4225
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4227$as_echo_n "checking build system type... " >&6; }
4228if test "${ac_cv_build+set}" = set; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231  ac_build_alias=$build_alias
4232test "x$ac_build_alias" = x &&
4233  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4234test "x$ac_build_alias" = x &&
4235  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4236ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4237  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4238
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4241$as_echo "$ac_cv_build" >&6; }
4242case $ac_cv_build in
4243*-*-*) ;;
4244*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4245esac
4246build=$ac_cv_build
4247ac_save_IFS=$IFS; IFS='-'
4248set x $ac_cv_build
4249shift
4250build_cpu=$1
4251build_vendor=$2
4252shift; shift
4253# Remember, the first character of IFS is used to create $*,
4254# except with old shells:
4255build_os=$*
4256IFS=$ac_save_IFS
4257case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4258
4259
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4261$as_echo_n "checking host system type... " >&6; }
4262if test "${ac_cv_host+set}" = set; then :
4263  $as_echo_n "(cached) " >&6
4264else
4265  if test "x$host_alias" = x; then
4266  ac_cv_host=$ac_cv_build
4267else
4268  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4269    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4270fi
4271
4272fi
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4274$as_echo "$ac_cv_host" >&6; }
4275case $ac_cv_host in
4276*-*-*) ;;
4277*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4278esac
4279host=$ac_cv_host
4280ac_save_IFS=$IFS; IFS='-'
4281set x $ac_cv_host
4282shift
4283host_cpu=$1
4284host_vendor=$2
4285shift; shift
4286# Remember, the first character of IFS is used to create $*,
4287# except with old shells:
4288host_os=$*
4289IFS=$ac_save_IFS
4290case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4291
4292
4293
4294
4295
4296if  test "x$GCC" = xyes ; then
4297    CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4298-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4299-Wbad-function-cast"
4300    case `$CC -dumpversion` in
4301    3.4.* | 4.*)
4302	CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4303	;;
4304    esac
4305else
4306    ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4307if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4308  SUNCC="yes"
4309else
4310  SUNCC="no"
4311fi
4312
4313    if test "x$SUNCC" = "xyes"; then
4314	CWARNFLAGS="-v"
4315    fi
4316fi
4317
4318# Check whether --enable-silent-rules was given.
4319if test "${enable_silent_rules+set}" = set; then :
4320  enableval=$enable_silent_rules;
4321fi
4322
4323case $enable_silent_rules in
4324yes) AM_DEFAULT_VERBOSITY=0;;
4325no)  AM_DEFAULT_VERBOSITY=1;;
4326*)   AM_DEFAULT_VERBOSITY=0;;
4327esac
4328AM_BACKSLASH='\'
4329
4330
4331
4332
4333
4334
4335
4336# Check whether --enable-strict-compilation was given.
4337if test "${enable_strict_compilation+set}" = set; then :
4338  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4339else
4340  STRICT_COMPILE=no
4341fi
4342
4343if test "x$STRICT_COMPILE" = "xyes"; then
4344	ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4345if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4346  SUNCC="yes"
4347else
4348  SUNCC="no"
4349fi
4350
4351	ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4352if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4353  INTELCC="yes"
4354else
4355  INTELCC="no"
4356fi
4357
4358	if test "x$GCC" = xyes ; then
4359		STRICT_CFLAGS="-pedantic -Werror"
4360	elif test "x$SUNCC" = "xyes"; then
4361		STRICT_CFLAGS="-errwarn"
4362    elif test "x$INTELCC" = "xyes"; then
4363		STRICT_CFLAGS="-Werror"
4364	fi
4365fi
4366CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4367
4368
4369
4370
4371# Check whether --with-release-version was given.
4372if test "${with_release_version+set}" = set; then :
4373  withval=$with_release_version; RELEASE_VERSION="$withval"
4374else
4375  RELEASE_VERSION=""
4376fi
4377
4378	if test "x$RELEASE_VERSION" != "x"; then
4379		PACKAGE="$PACKAGE-$RELEASE_VERSION"
4380		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
4381		{ $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5
4382$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
4383	fi
4384
4385cat >>confdefs.h <<_ACEOF
4386#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4387_ACEOF
4388
4389	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4390	if test "x$PVM" = "x"; then
4391		PVM="0"
4392	fi
4393
4394cat >>confdefs.h <<_ACEOF
4395#define PACKAGE_VERSION_MINOR $PVM
4396_ACEOF
4397
4398	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4399	if test "x$PVP" = "x"; then
4400		PVP="0"
4401	fi
4402
4403cat >>confdefs.h <<_ACEOF
4404#define PACKAGE_VERSION_PATCHLEVEL $PVP
4405_ACEOF
4406
4407
4408
4409CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4410mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4411|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4412echo 'git directory not found: installing possibly empty changelog.' >&2)"
4413
4414
4415
4416
4417macros_docdir=$($PKG_CONFIG --print-errors --variable=docdir xorg-macros)
4418INSTALL_CMD="(cp -f "$macros_docdir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4419mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4420|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4421echo 'util-macros \"docdir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4422
4423
4424
4425
4426
4427if test x$APP_MAN_SUFFIX = x    ; then
4428    APP_MAN_SUFFIX=1
4429fi
4430if test x$APP_MAN_DIR = x    ; then
4431    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4432fi
4433
4434if test x$LIB_MAN_SUFFIX = x    ; then
4435    LIB_MAN_SUFFIX=3
4436fi
4437if test x$LIB_MAN_DIR = x    ; then
4438    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4439fi
4440
4441if test x$FILE_MAN_SUFFIX = x    ; then
4442    case $host_os in
4443	solaris*)	FILE_MAN_SUFFIX=4  ;;
4444	*)		FILE_MAN_SUFFIX=5  ;;
4445    esac
4446fi
4447if test x$FILE_MAN_DIR = x    ; then
4448    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4449fi
4450
4451if test x$MISC_MAN_SUFFIX = x    ; then
4452    case $host_os in
4453	solaris*)	MISC_MAN_SUFFIX=5  ;;
4454	*)		MISC_MAN_SUFFIX=7  ;;
4455    esac
4456fi
4457if test x$MISC_MAN_DIR = x    ; then
4458    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4459fi
4460
4461if test x$DRIVER_MAN_SUFFIX = x    ; then
4462    case $host_os in
4463	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
4464	*)		DRIVER_MAN_SUFFIX=4  ;;
4465    esac
4466fi
4467if test x$DRIVER_MAN_DIR = x    ; then
4468    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4469fi
4470
4471if test x$ADMIN_MAN_SUFFIX = x    ; then
4472    case $host_os in
4473	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
4474	*)		ADMIN_MAN_SUFFIX=8  ;;
4475    esac
4476fi
4477if test x$ADMIN_MAN_DIR = x    ; then
4478    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4479fi
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497ac_config_headers="$ac_config_headers config.h"
4498
4499
4500ac_ext=c
4501ac_cpp='$CPP $CPPFLAGS'
4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505if test -n "$ac_tool_prefix"; then
4506  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4507set dummy ${ac_tool_prefix}gcc; ac_word=$2
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509$as_echo_n "checking for $ac_word... " >&6; }
4510if test "${ac_cv_prog_CC+set}" = set; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  if test -n "$CC"; then
4514  ac_cv_prog_CC="$CC" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519  IFS=$as_save_IFS
4520  test -z "$as_dir" && as_dir=.
4521    for ac_exec_ext in '' $ac_executable_extensions; do
4522  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4524    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525    break 2
4526  fi
4527done
4528  done
4529IFS=$as_save_IFS
4530
4531fi
4532fi
4533CC=$ac_cv_prog_CC
4534if test -n "$CC"; then
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4536$as_echo "$CC" >&6; }
4537else
4538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
4540fi
4541
4542
4543fi
4544if test -z "$ac_cv_prog_CC"; then
4545  ac_ct_CC=$CC
4546  # Extract the first word of "gcc", so it can be a program name with args.
4547set dummy gcc; ac_word=$2
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549$as_echo_n "checking for $ac_word... " >&6; }
4550if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4551  $as_echo_n "(cached) " >&6
4552else
4553  if test -n "$ac_ct_CC"; then
4554  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559  IFS=$as_save_IFS
4560  test -z "$as_dir" && as_dir=.
4561    for ac_exec_ext in '' $ac_executable_extensions; do
4562  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563    ac_cv_prog_ac_ct_CC="gcc"
4564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565    break 2
4566  fi
4567done
4568  done
4569IFS=$as_save_IFS
4570
4571fi
4572fi
4573ac_ct_CC=$ac_cv_prog_ac_ct_CC
4574if test -n "$ac_ct_CC"; then
4575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4576$as_echo "$ac_ct_CC" >&6; }
4577else
4578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579$as_echo "no" >&6; }
4580fi
4581
4582  if test "x$ac_ct_CC" = x; then
4583    CC=""
4584  else
4585    case $cross_compiling:$ac_tool_warned in
4586yes:)
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589ac_tool_warned=yes ;;
4590esac
4591    CC=$ac_ct_CC
4592  fi
4593else
4594  CC="$ac_cv_prog_CC"
4595fi
4596
4597if test -z "$CC"; then
4598          if test -n "$ac_tool_prefix"; then
4599    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4600set dummy ${ac_tool_prefix}cc; ac_word=$2
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602$as_echo_n "checking for $ac_word... " >&6; }
4603if test "${ac_cv_prog_CC+set}" = set; then :
4604  $as_echo_n "(cached) " >&6
4605else
4606  if test -n "$CC"; then
4607  ac_cv_prog_CC="$CC" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612  IFS=$as_save_IFS
4613  test -z "$as_dir" && as_dir=.
4614    for ac_exec_ext in '' $ac_executable_extensions; do
4615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616    ac_cv_prog_CC="${ac_tool_prefix}cc"
4617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618    break 2
4619  fi
4620done
4621  done
4622IFS=$as_save_IFS
4623
4624fi
4625fi
4626CC=$ac_cv_prog_CC
4627if test -n "$CC"; then
4628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4629$as_echo "$CC" >&6; }
4630else
4631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632$as_echo "no" >&6; }
4633fi
4634
4635
4636  fi
4637fi
4638if test -z "$CC"; then
4639  # Extract the first word of "cc", so it can be a program name with args.
4640set dummy cc; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
4643if test "${ac_cv_prog_CC+set}" = set; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  if test -n "$CC"; then
4647  ac_cv_prog_CC="$CC" # Let the user override the test.
4648else
4649  ac_prog_rejected=no
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653  IFS=$as_save_IFS
4654  test -z "$as_dir" && as_dir=.
4655    for ac_exec_ext in '' $ac_executable_extensions; do
4656  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4658       ac_prog_rejected=yes
4659       continue
4660     fi
4661    ac_cv_prog_CC="cc"
4662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663    break 2
4664  fi
4665done
4666  done
4667IFS=$as_save_IFS
4668
4669if test $ac_prog_rejected = yes; then
4670  # We found a bogon in the path, so make sure we never use it.
4671  set dummy $ac_cv_prog_CC
4672  shift
4673  if test $# != 0; then
4674    # We chose a different compiler from the bogus one.
4675    # However, it has the same basename, so the bogon will be chosen
4676    # first if we set CC to just the basename; use the full file name.
4677    shift
4678    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4679  fi
4680fi
4681fi
4682fi
4683CC=$ac_cv_prog_CC
4684if test -n "$CC"; then
4685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686$as_echo "$CC" >&6; }
4687else
4688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690fi
4691
4692
4693fi
4694if test -z "$CC"; then
4695  if test -n "$ac_tool_prefix"; then
4696  for ac_prog in cl.exe
4697  do
4698    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701$as_echo_n "checking for $ac_word... " >&6; }
4702if test "${ac_cv_prog_CC+set}" = set; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  if test -n "$CC"; then
4706  ac_cv_prog_CC="$CC" # Let the user override the test.
4707else
4708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709for as_dir in $PATH
4710do
4711  IFS=$as_save_IFS
4712  test -z "$as_dir" && as_dir=.
4713    for ac_exec_ext in '' $ac_executable_extensions; do
4714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717    break 2
4718  fi
4719done
4720  done
4721IFS=$as_save_IFS
4722
4723fi
4724fi
4725CC=$ac_cv_prog_CC
4726if test -n "$CC"; then
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728$as_echo "$CC" >&6; }
4729else
4730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731$as_echo "no" >&6; }
4732fi
4733
4734
4735    test -n "$CC" && break
4736  done
4737fi
4738if test -z "$CC"; then
4739  ac_ct_CC=$CC
4740  for ac_prog in cl.exe
4741do
4742  # Extract the first word of "$ac_prog", so it can be a program name with args.
4743set dummy $ac_prog; ac_word=$2
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745$as_echo_n "checking for $ac_word... " >&6; }
4746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  if test -n "$ac_ct_CC"; then
4750  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4751else
4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755  IFS=$as_save_IFS
4756  test -z "$as_dir" && as_dir=.
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759    ac_cv_prog_ac_ct_CC="$ac_prog"
4760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761    break 2
4762  fi
4763done
4764  done
4765IFS=$as_save_IFS
4766
4767fi
4768fi
4769ac_ct_CC=$ac_cv_prog_ac_ct_CC
4770if test -n "$ac_ct_CC"; then
4771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4772$as_echo "$ac_ct_CC" >&6; }
4773else
4774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776fi
4777
4778
4779  test -n "$ac_ct_CC" && break
4780done
4781
4782  if test "x$ac_ct_CC" = x; then
4783    CC=""
4784  else
4785    case $cross_compiling:$ac_tool_warned in
4786yes:)
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789ac_tool_warned=yes ;;
4790esac
4791    CC=$ac_ct_CC
4792  fi
4793fi
4794
4795fi
4796
4797
4798test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4800as_fn_error "no acceptable C compiler found in \$PATH
4801See \`config.log' for more details." "$LINENO" 5; }
4802
4803# Provide some information about the compiler.
4804$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4805set X $ac_compile
4806ac_compiler=$2
4807for ac_option in --version -v -V -qversion; do
4808  { { ac_try="$ac_compiler $ac_option >&5"
4809case "(($ac_try" in
4810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811  *) ac_try_echo=$ac_try;;
4812esac
4813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4814$as_echo "$ac_try_echo"; } >&5
4815  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4816  ac_status=$?
4817  if test -s conftest.err; then
4818    sed '10a\
4819... rest of stderr output deleted ...
4820         10q' conftest.err >conftest.er1
4821    cat conftest.er1 >&5
4822  fi
4823  rm -f conftest.er1 conftest.err
4824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4825  test $ac_status = 0; }
4826done
4827
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4829$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4830if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h.  */
4835
4836int
4837main ()
4838{
4839#ifndef __GNUC__
4840       choke me
4841#endif
4842
4843  ;
4844  return 0;
4845}
4846_ACEOF
4847if ac_fn_c_try_compile "$LINENO"; then :
4848  ac_compiler_gnu=yes
4849else
4850  ac_compiler_gnu=no
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853ac_cv_c_compiler_gnu=$ac_compiler_gnu
4854
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4857$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4858if test $ac_compiler_gnu = yes; then
4859  GCC=yes
4860else
4861  GCC=
4862fi
4863ac_test_CFLAGS=${CFLAGS+set}
4864ac_save_CFLAGS=$CFLAGS
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4866$as_echo_n "checking whether $CC accepts -g... " >&6; }
4867if test "${ac_cv_prog_cc_g+set}" = set; then :
4868  $as_echo_n "(cached) " >&6
4869else
4870  ac_save_c_werror_flag=$ac_c_werror_flag
4871   ac_c_werror_flag=yes
4872   ac_cv_prog_cc_g=no
4873   CFLAGS="-g"
4874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h.  */
4876
4877int
4878main ()
4879{
4880
4881  ;
4882  return 0;
4883}
4884_ACEOF
4885if ac_fn_c_try_compile "$LINENO"; then :
4886  ac_cv_prog_cc_g=yes
4887else
4888  CFLAGS=""
4889      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891
4892int
4893main ()
4894{
4895
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900if ac_fn_c_try_compile "$LINENO"; then :
4901
4902else
4903  ac_c_werror_flag=$ac_save_c_werror_flag
4904	 CFLAGS="-g"
4905	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906/* end confdefs.h.  */
4907
4908int
4909main ()
4910{
4911
4912  ;
4913  return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917  ac_cv_prog_cc_g=yes
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922fi
4923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924   ac_c_werror_flag=$ac_save_c_werror_flag
4925fi
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4927$as_echo "$ac_cv_prog_cc_g" >&6; }
4928if test "$ac_test_CFLAGS" = set; then
4929  CFLAGS=$ac_save_CFLAGS
4930elif test $ac_cv_prog_cc_g = yes; then
4931  if test "$GCC" = yes; then
4932    CFLAGS="-g -O2"
4933  else
4934    CFLAGS="-g"
4935  fi
4936else
4937  if test "$GCC" = yes; then
4938    CFLAGS="-O2"
4939  else
4940    CFLAGS=
4941  fi
4942fi
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4944$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4945if test "${ac_cv_prog_cc_c89+set}" = set; then :
4946  $as_echo_n "(cached) " >&6
4947else
4948  ac_cv_prog_cc_c89=no
4949ac_save_CC=$CC
4950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952#include <stdarg.h>
4953#include <stdio.h>
4954#include <sys/types.h>
4955#include <sys/stat.h>
4956/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4957struct buf { int x; };
4958FILE * (*rcsopen) (struct buf *, struct stat *, int);
4959static char *e (p, i)
4960     char **p;
4961     int i;
4962{
4963  return p[i];
4964}
4965static char *f (char * (*g) (char **, int), char **p, ...)
4966{
4967  char *s;
4968  va_list v;
4969  va_start (v,p);
4970  s = g (p, va_arg (v,int));
4971  va_end (v);
4972  return s;
4973}
4974
4975/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4976   function prototypes and stuff, but not '\xHH' hex character constants.
4977   These don't provoke an error unfortunately, instead are silently treated
4978   as 'x'.  The following induces an error, until -std is added to get
4979   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4980   array size at least.  It's necessary to write '\x00'==0 to get something
4981   that's true only with -std.  */
4982int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4983
4984/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4985   inside strings and character constants.  */
4986#define FOO(x) 'x'
4987int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4988
4989int test (int i, double x);
4990struct s1 {int (*f) (int a);};
4991struct s2 {int (*f) (double a);};
4992int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4993int argc;
4994char **argv;
4995int
4996main ()
4997{
4998return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4999  ;
5000  return 0;
5001}
5002_ACEOF
5003for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5004	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5005do
5006  CC="$ac_save_CC $ac_arg"
5007  if ac_fn_c_try_compile "$LINENO"; then :
5008  ac_cv_prog_cc_c89=$ac_arg
5009fi
5010rm -f core conftest.err conftest.$ac_objext
5011  test "x$ac_cv_prog_cc_c89" != "xno" && break
5012done
5013rm -f conftest.$ac_ext
5014CC=$ac_save_CC
5015
5016fi
5017# AC_CACHE_VAL
5018case "x$ac_cv_prog_cc_c89" in
5019  x)
5020    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5021$as_echo "none needed" >&6; } ;;
5022  xno)
5023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5024$as_echo "unsupported" >&6; } ;;
5025  *)
5026    CC="$CC $ac_cv_prog_cc_c89"
5027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5028$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5029esac
5030if test "x$ac_cv_prog_cc_c89" != xno; then :
5031
5032fi
5033
5034ac_ext=c
5035ac_cpp='$CPP $CPPFLAGS'
5036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038ac_compiler_gnu=$ac_cv_c_compiler_gnu
5039
5040depcc="$CC"   am_compiler_list=
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5043$as_echo_n "checking dependency style of $depcc... " >&6; }
5044if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5045  $as_echo_n "(cached) " >&6
5046else
5047  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5048  # We make a subdir and do the tests there.  Otherwise we can end up
5049  # making bogus files that we don't know about and never remove.  For
5050  # instance it was reported that on HP-UX the gcc test will end up
5051  # making a dummy file named `D' -- because `-MD' means `put the output
5052  # in D'.
5053  mkdir conftest.dir
5054  # Copy depcomp to subdir because otherwise we won't find it if we're
5055  # using a relative directory.
5056  cp "$am_depcomp" conftest.dir
5057  cd conftest.dir
5058  # We will build objects and dependencies in a subdirectory because
5059  # it helps to detect inapplicable dependency modes.  For instance
5060  # both Tru64's cc and ICC support -MD to output dependencies as a
5061  # side effect of compilation, but ICC will put the dependencies in
5062  # the current directory while Tru64 will put them in the object
5063  # directory.
5064  mkdir sub
5065
5066  am_cv_CC_dependencies_compiler_type=none
5067  if test "$am_compiler_list" = ""; then
5068     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5069  fi
5070  am__universal=false
5071  case " $depcc " in #(
5072     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5073     esac
5074
5075  for depmode in $am_compiler_list; do
5076    # Setup a source with many dependencies, because some compilers
5077    # like to wrap large dependency lists on column 80 (with \), and
5078    # we should not choose a depcomp mode which is confused by this.
5079    #
5080    # We need to recreate these files for each test, as the compiler may
5081    # overwrite some of them when testing with obscure command lines.
5082    # This happens at least with the AIX C compiler.
5083    : > sub/conftest.c
5084    for i in 1 2 3 4 5 6; do
5085      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5086      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5087      # Solaris 8's {/usr,}/bin/sh.
5088      touch sub/conftst$i.h
5089    done
5090    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5091
5092    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5093    # mode.  It turns out that the SunPro C++ compiler does not properly
5094    # handle `-M -o', and we need to detect this.  Also, some Intel
5095    # versions had trouble with output in subdirs
5096    am__obj=sub/conftest.${OBJEXT-o}
5097    am__minus_obj="-o $am__obj"
5098    case $depmode in
5099    gcc)
5100      # This depmode causes a compiler race in universal mode.
5101      test "$am__universal" = false || continue
5102      ;;
5103    nosideeffect)
5104      # after this tag, mechanisms are not by side-effect, so they'll
5105      # only be used when explicitly requested
5106      if test "x$enable_dependency_tracking" = xyes; then
5107	continue
5108      else
5109	break
5110      fi
5111      ;;
5112    msvisualcpp | msvcmsys)
5113      # This compiler won't grok `-c -o', but also, the minuso test has
5114      # not run yet.  These depmodes are late enough in the game, and
5115      # so weak that their functioning should not be impacted.
5116      am__obj=conftest.${OBJEXT-o}
5117      am__minus_obj=
5118      ;;
5119    none) break ;;
5120    esac
5121    if depmode=$depmode \
5122       source=sub/conftest.c object=$am__obj \
5123       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5124       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5125         >/dev/null 2>conftest.err &&
5126       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5127       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5128       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5129       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5130      # icc doesn't choke on unknown options, it will just issue warnings
5131      # or remarks (even with -Werror).  So we grep stderr for any message
5132      # that says an option was ignored or not supported.
5133      # When given -MP, icc 7.0 and 7.1 complain thusly:
5134      #   icc: Command line warning: ignoring option '-M'; no argument required
5135      # The diagnosis changed in icc 8.0:
5136      #   icc: Command line remark: option '-MP' not supported
5137      if (grep 'ignoring option' conftest.err ||
5138          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5139        am_cv_CC_dependencies_compiler_type=$depmode
5140        break
5141      fi
5142    fi
5143  done
5144
5145  cd ..
5146  rm -rf conftest.dir
5147else
5148  am_cv_CC_dependencies_compiler_type=none
5149fi
5150
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5153$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5154CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5155
5156 if
5157  test "x$enable_dependency_tracking" != xno \
5158  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5159  am__fastdepCC_TRUE=
5160  am__fastdepCC_FALSE='#'
5161else
5162  am__fastdepCC_TRUE='#'
5163  am__fastdepCC_FALSE=
5164fi
5165
5166
5167
5168
5169
5170
5171pkg_failed=no
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIEWRES" >&5
5173$as_echo_n "checking for VIEWRES... " >&6; }
5174
5175if test -n "$VIEWRES_CFLAGS"; then
5176    pkg_cv_VIEWRES_CFLAGS="$VIEWRES_CFLAGS"
5177 elif test -n "$PKG_CONFIG"; then
5178    if test -n "$PKG_CONFIG" && \
5179    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
5180  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
5181  ac_status=$?
5182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183  test $ac_status = 0; }; then
5184  pkg_cv_VIEWRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7" 2>/dev/null`
5185else
5186  pkg_failed=yes
5187fi
5188 else
5189    pkg_failed=untried
5190fi
5191if test -n "$VIEWRES_LIBS"; then
5192    pkg_cv_VIEWRES_LIBS="$VIEWRES_LIBS"
5193 elif test -n "$PKG_CONFIG"; then
5194    if test -n "$PKG_CONFIG" && \
5195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7\""; } >&5
5196  ($PKG_CONFIG --exists --print-errors "xaw7") 2>&5
5197  ac_status=$?
5198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199  test $ac_status = 0; }; then
5200  pkg_cv_VIEWRES_LIBS=`$PKG_CONFIG --libs "xaw7" 2>/dev/null`
5201else
5202  pkg_failed=yes
5203fi
5204 else
5205    pkg_failed=untried
5206fi
5207
5208
5209
5210if test $pkg_failed = yes; then
5211
5212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5213        _pkg_short_errors_supported=yes
5214else
5215        _pkg_short_errors_supported=no
5216fi
5217        if test $_pkg_short_errors_supported = yes; then
5218	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7" 2>&1`
5219        else
5220	        VIEWRES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7" 2>&1`
5221        fi
5222	# Put the nasty error message in config.log where it belongs
5223	echo "$VIEWRES_PKG_ERRORS" >&5
5224
5225	as_fn_error "Package requirements (xaw7) were not met:
5226
5227$VIEWRES_PKG_ERRORS
5228
5229Consider adjusting the PKG_CONFIG_PATH environment variable if you
5230installed software in a non-standard prefix.
5231
5232Alternatively, you may set the environment variables VIEWRES_CFLAGS
5233and VIEWRES_LIBS to avoid the need to call pkg-config.
5234See the pkg-config man page for more details.
5235" "$LINENO" 5
5236elif test $pkg_failed = untried; then
5237	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5239as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
5240is in your PATH or set the PKG_CONFIG environment variable to the full
5241path to pkg-config.
5242
5243Alternatively, you may set the environment variables VIEWRES_CFLAGS
5244and VIEWRES_LIBS to avoid the need to call pkg-config.
5245See the pkg-config man page for more details.
5246
5247To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5248See \`config.log' for more details." "$LINENO" 5; }
5249else
5250	VIEWRES_CFLAGS=$pkg_cv_VIEWRES_CFLAGS
5251	VIEWRES_LIBS=$pkg_cv_VIEWRES_LIBS
5252        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5253$as_echo "yes" >&6; }
5254	:
5255fi
5256VIEWRES_CFLAGS="$CWARNFLAGS $VIEWRES_CFLAGS"
5257
5258
5259
5260
5261pkg_failed=no
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
5263$as_echo_n "checking for APPDEFS... " >&6; }
5264
5265if test -n "$APPDEFS_CFLAGS"; then
5266    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
5267 elif test -n "$PKG_CONFIG"; then
5268    if test -n "$PKG_CONFIG" && \
5269    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
5270  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
5271  ac_status=$?
5272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5273  test $ac_status = 0; }; then
5274  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
5275else
5276  pkg_failed=yes
5277fi
5278 else
5279    pkg_failed=untried
5280fi
5281if test -n "$APPDEFS_LIBS"; then
5282    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
5283 elif test -n "$PKG_CONFIG"; then
5284    if test -n "$PKG_CONFIG" && \
5285    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
5286  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
5287  ac_status=$?
5288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5289  test $ac_status = 0; }; then
5290  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
5291else
5292  pkg_failed=yes
5293fi
5294 else
5295    pkg_failed=untried
5296fi
5297
5298
5299
5300if test $pkg_failed = yes; then
5301
5302if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5303        _pkg_short_errors_supported=yes
5304else
5305        _pkg_short_errors_supported=no
5306fi
5307        if test $_pkg_short_errors_supported = yes; then
5308	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
5309        else
5310	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
5311        fi
5312	# Put the nasty error message in config.log where it belongs
5313	echo "$APPDEFS_PKG_ERRORS" >&5
5314
5315	as_fn_error "Package requirements (xt) were not met:
5316
5317$APPDEFS_PKG_ERRORS
5318
5319Consider adjusting the PKG_CONFIG_PATH environment variable if you
5320installed software in a non-standard prefix.
5321
5322Alternatively, you may set the environment variables APPDEFS_CFLAGS
5323and APPDEFS_LIBS to avoid the need to call pkg-config.
5324See the pkg-config man page for more details.
5325" "$LINENO" 5
5326elif test $pkg_failed = untried; then
5327	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5329as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
5330is in your PATH or set the PKG_CONFIG environment variable to the full
5331path to pkg-config.
5332
5333Alternatively, you may set the environment variables APPDEFS_CFLAGS
5334and APPDEFS_LIBS to avoid the need to call pkg-config.
5335See the pkg-config man page for more details.
5336
5337To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5338See \`config.log' for more details." "$LINENO" 5; }
5339else
5340	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
5341	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
5342        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343$as_echo "yes" >&6; }
5344	:
5345fi
5346xt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
5347
5348# Check whether --with-appdefaultdir was given.
5349if test "${with_appdefaultdir+set}" = set; then :
5350  withval=$with_appdefaultdir; appdefaultdir="$withval"
5351else
5352  appdefaultdir="${xt_appdefaultdir}"
5353fi
5354
5355
5356
5357
5358ac_config_files="$ac_config_files Makefile"
5359
5360cat >confcache <<\_ACEOF
5361# This file is a shell script that caches the results of configure
5362# tests run on this system so they can be shared between configure
5363# scripts and configure runs, see configure's option --config-cache.
5364# It is not useful on other systems.  If it contains results you don't
5365# want to keep, you may remove or edit it.
5366#
5367# config.status only pays attention to the cache file if you give it
5368# the --recheck option to rerun configure.
5369#
5370# `ac_cv_env_foo' variables (set or unset) will be overridden when
5371# loading this file, other *unset* `ac_cv_foo' will be assigned the
5372# following values.
5373
5374_ACEOF
5375
5376# The following way of writing the cache mishandles newlines in values,
5377# but we know of no workaround that is simple, portable, and efficient.
5378# So, we kill variables containing newlines.
5379# Ultrix sh set writes to stderr and can't be redirected directly,
5380# and sets the high bit in the cache file unless we assign to the vars.
5381(
5382  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5383    eval ac_val=\$$ac_var
5384    case $ac_val in #(
5385    *${as_nl}*)
5386      case $ac_var in #(
5387      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5388$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5389      esac
5390      case $ac_var in #(
5391      _ | IFS | as_nl) ;; #(
5392      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5393      *) { eval $ac_var=; unset $ac_var;} ;;
5394      esac ;;
5395    esac
5396  done
5397
5398  (set) 2>&1 |
5399    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5400    *${as_nl}ac_space=\ *)
5401      # `set' does not quote correctly, so add quotes: double-quote
5402      # substitution turns \\\\ into \\, and sed turns \\ into \.
5403      sed -n \
5404	"s/'/'\\\\''/g;
5405	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5406      ;; #(
5407    *)
5408      # `set' quotes correctly as required by POSIX, so do not add quotes.
5409      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5410      ;;
5411    esac |
5412    sort
5413) |
5414  sed '
5415     /^ac_cv_env_/b end
5416     t clear
5417     :clear
5418     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5419     t end
5420     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5421     :end' >>confcache
5422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5423  if test -w "$cache_file"; then
5424    test "x$cache_file" != "x/dev/null" &&
5425      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5426$as_echo "$as_me: updating cache $cache_file" >&6;}
5427    cat confcache >$cache_file
5428  else
5429    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5430$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5431  fi
5432fi
5433rm -f confcache
5434
5435test "x$prefix" = xNONE && prefix=$ac_default_prefix
5436# Let make expand exec_prefix.
5437test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5438
5439DEFS=-DHAVE_CONFIG_H
5440
5441ac_libobjs=
5442ac_ltlibobjs=
5443for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5444  # 1. Remove the extension, and $U if already installed.
5445  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5446  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5447  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5448  #    will be set to the directory where LIBOBJS objects are built.
5449  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5450  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5451done
5452LIBOBJS=$ac_libobjs
5453
5454LTLIBOBJS=$ac_ltlibobjs
5455
5456
5457 if test -n "$EXEEXT"; then
5458  am__EXEEXT_TRUE=
5459  am__EXEEXT_FALSE='#'
5460else
5461  am__EXEEXT_TRUE='#'
5462  am__EXEEXT_FALSE=
5463fi
5464
5465if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5466  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5467Usually this means the macro was only invoked conditionally." "$LINENO" 5
5468fi
5469if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5470  as_fn_error "conditional \"AMDEP\" was never defined.
5471Usually this means the macro was only invoked conditionally." "$LINENO" 5
5472fi
5473if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5474  as_fn_error "conditional \"am__fastdepCC\" was never defined.
5475Usually this means the macro was only invoked conditionally." "$LINENO" 5
5476fi
5477if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5478  as_fn_error "conditional \"am__fastdepCC\" was never defined.
5479Usually this means the macro was only invoked conditionally." "$LINENO" 5
5480fi
5481
5482: ${CONFIG_STATUS=./config.status}
5483ac_write_fail=0
5484ac_clean_files_save=$ac_clean_files
5485ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5487$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5488as_write_fail=0
5489cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5490#! $SHELL
5491# Generated by $as_me.
5492# Run this file to recreate the current configuration.
5493# Compiler output produced by configure, useful for debugging
5494# configure, is in config.log if it exists.
5495
5496debug=false
5497ac_cs_recheck=false
5498ac_cs_silent=false
5499
5500SHELL=\${CONFIG_SHELL-$SHELL}
5501export SHELL
5502_ASEOF
5503cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5504## -------------------- ##
5505## M4sh Initialization. ##
5506## -------------------- ##
5507
5508# Be more Bourne compatible
5509DUALCASE=1; export DUALCASE # for MKS sh
5510if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5511  emulate sh
5512  NULLCMD=:
5513  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5514  # is contrary to our usage.  Disable this feature.
5515  alias -g '${1+"$@"}'='"$@"'
5516  setopt NO_GLOB_SUBST
5517else
5518  case `(set -o) 2>/dev/null` in #(
5519  *posix*) :
5520    set -o posix ;; #(
5521  *) :
5522     ;;
5523esac
5524fi
5525
5526
5527as_nl='
5528'
5529export as_nl
5530# Printing a long string crashes Solaris 7 /usr/bin/printf.
5531as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5532as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5533as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5534# Prefer a ksh shell builtin over an external printf program on Solaris,
5535# but without wasting forks for bash or zsh.
5536if test -z "$BASH_VERSION$ZSH_VERSION" \
5537    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5538  as_echo='print -r --'
5539  as_echo_n='print -rn --'
5540elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5541  as_echo='printf %s\n'
5542  as_echo_n='printf %s'
5543else
5544  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5545    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5546    as_echo_n='/usr/ucb/echo -n'
5547  else
5548    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5549    as_echo_n_body='eval
5550      arg=$1;
5551      case $arg in #(
5552      *"$as_nl"*)
5553	expr "X$arg" : "X\\(.*\\)$as_nl";
5554	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5555      esac;
5556      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5557    '
5558    export as_echo_n_body
5559    as_echo_n='sh -c $as_echo_n_body as_echo'
5560  fi
5561  export as_echo_body
5562  as_echo='sh -c $as_echo_body as_echo'
5563fi
5564
5565# The user is always right.
5566if test "${PATH_SEPARATOR+set}" != set; then
5567  PATH_SEPARATOR=:
5568  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5569    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5570      PATH_SEPARATOR=';'
5571  }
5572fi
5573
5574
5575# IFS
5576# We need space, tab and new line, in precisely that order.  Quoting is
5577# there to prevent editors from complaining about space-tab.
5578# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5579# splitting by setting IFS to empty value.)
5580IFS=" ""	$as_nl"
5581
5582# Find who we are.  Look in the path if we contain no directory separator.
5583case $0 in #((
5584  *[\\/]* ) as_myself=$0 ;;
5585  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588  IFS=$as_save_IFS
5589  test -z "$as_dir" && as_dir=.
5590    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5591  done
5592IFS=$as_save_IFS
5593
5594     ;;
5595esac
5596# We did not find ourselves, most probably we were run as `sh COMMAND'
5597# in which case we are not to be found in the path.
5598if test "x$as_myself" = x; then
5599  as_myself=$0
5600fi
5601if test ! -f "$as_myself"; then
5602  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5603  exit 1
5604fi
5605
5606# Unset variables that we do not need and which cause bugs (e.g. in
5607# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5608# suppresses any "Segmentation fault" message there.  '((' could
5609# trigger a bug in pdksh 5.2.14.
5610for as_var in BASH_ENV ENV MAIL MAILPATH
5611do eval test x\${$as_var+set} = xset \
5612  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5613done
5614PS1='$ '
5615PS2='> '
5616PS4='+ '
5617
5618# NLS nuisances.
5619LC_ALL=C
5620export LC_ALL
5621LANGUAGE=C
5622export LANGUAGE
5623
5624# CDPATH.
5625(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5626
5627
5628# as_fn_error ERROR [LINENO LOG_FD]
5629# ---------------------------------
5630# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5631# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5632# script with status $?, using 1 if that was 0.
5633as_fn_error ()
5634{
5635  as_status=$?; test $as_status -eq 0 && as_status=1
5636  if test "$3"; then
5637    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5638    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5639  fi
5640  $as_echo "$as_me: error: $1" >&2
5641  as_fn_exit $as_status
5642} # as_fn_error
5643
5644
5645# as_fn_set_status STATUS
5646# -----------------------
5647# Set $? to STATUS, without forking.
5648as_fn_set_status ()
5649{
5650  return $1
5651} # as_fn_set_status
5652
5653# as_fn_exit STATUS
5654# -----------------
5655# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5656as_fn_exit ()
5657{
5658  set +e
5659  as_fn_set_status $1
5660  exit $1
5661} # as_fn_exit
5662
5663# as_fn_unset VAR
5664# ---------------
5665# Portably unset VAR.
5666as_fn_unset ()
5667{
5668  { eval $1=; unset $1;}
5669}
5670as_unset=as_fn_unset
5671# as_fn_append VAR VALUE
5672# ----------------------
5673# Append the text in VALUE to the end of the definition contained in VAR. Take
5674# advantage of any shell optimizations that allow amortized linear growth over
5675# repeated appends, instead of the typical quadratic growth present in naive
5676# implementations.
5677if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5678  eval 'as_fn_append ()
5679  {
5680    eval $1+=\$2
5681  }'
5682else
5683  as_fn_append ()
5684  {
5685    eval $1=\$$1\$2
5686  }
5687fi # as_fn_append
5688
5689# as_fn_arith ARG...
5690# ------------------
5691# Perform arithmetic evaluation on the ARGs, and store the result in the
5692# global $as_val. Take advantage of shells that can avoid forks. The arguments
5693# must be portable across $(()) and expr.
5694if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5695  eval 'as_fn_arith ()
5696  {
5697    as_val=$(( $* ))
5698  }'
5699else
5700  as_fn_arith ()
5701  {
5702    as_val=`expr "$@" || test $? -eq 1`
5703  }
5704fi # as_fn_arith
5705
5706
5707if expr a : '\(a\)' >/dev/null 2>&1 &&
5708   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5709  as_expr=expr
5710else
5711  as_expr=false
5712fi
5713
5714if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5715  as_basename=basename
5716else
5717  as_basename=false
5718fi
5719
5720if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5721  as_dirname=dirname
5722else
5723  as_dirname=false
5724fi
5725
5726as_me=`$as_basename -- "$0" ||
5727$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5728	 X"$0" : 'X\(//\)$' \| \
5729	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5730$as_echo X/"$0" |
5731    sed '/^.*\/\([^/][^/]*\)\/*$/{
5732	    s//\1/
5733	    q
5734	  }
5735	  /^X\/\(\/\/\)$/{
5736	    s//\1/
5737	    q
5738	  }
5739	  /^X\/\(\/\).*/{
5740	    s//\1/
5741	    q
5742	  }
5743	  s/.*/./; q'`
5744
5745# Avoid depending upon Character Ranges.
5746as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5747as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5748as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5749as_cr_digits='0123456789'
5750as_cr_alnum=$as_cr_Letters$as_cr_digits
5751
5752ECHO_C= ECHO_N= ECHO_T=
5753case `echo -n x` in #(((((
5754-n*)
5755  case `echo 'xy\c'` in
5756  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5757  xy)  ECHO_C='\c';;
5758  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5759       ECHO_T='	';;
5760  esac;;
5761*)
5762  ECHO_N='-n';;
5763esac
5764
5765rm -f conf$$ conf$$.exe conf$$.file
5766if test -d conf$$.dir; then
5767  rm -f conf$$.dir/conf$$.file
5768else
5769  rm -f conf$$.dir
5770  mkdir conf$$.dir 2>/dev/null
5771fi
5772if (echo >conf$$.file) 2>/dev/null; then
5773  if ln -s conf$$.file conf$$ 2>/dev/null; then
5774    as_ln_s='ln -s'
5775    # ... but there are two gotchas:
5776    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5777    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5778    # In both cases, we have to default to `cp -p'.
5779    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5780      as_ln_s='cp -p'
5781  elif ln conf$$.file conf$$ 2>/dev/null; then
5782    as_ln_s=ln
5783  else
5784    as_ln_s='cp -p'
5785  fi
5786else
5787  as_ln_s='cp -p'
5788fi
5789rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5790rmdir conf$$.dir 2>/dev/null
5791
5792
5793# as_fn_mkdir_p
5794# -------------
5795# Create "$as_dir" as a directory, including parents if necessary.
5796as_fn_mkdir_p ()
5797{
5798
5799  case $as_dir in #(
5800  -*) as_dir=./$as_dir;;
5801  esac
5802  test -d "$as_dir" || eval $as_mkdir_p || {
5803    as_dirs=
5804    while :; do
5805      case $as_dir in #(
5806      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5807      *) as_qdir=$as_dir;;
5808      esac
5809      as_dirs="'$as_qdir' $as_dirs"
5810      as_dir=`$as_dirname -- "$as_dir" ||
5811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5812	 X"$as_dir" : 'X\(//\)[^/]' \| \
5813	 X"$as_dir" : 'X\(//\)$' \| \
5814	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5815$as_echo X"$as_dir" |
5816    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5817	    s//\1/
5818	    q
5819	  }
5820	  /^X\(\/\/\)[^/].*/{
5821	    s//\1/
5822	    q
5823	  }
5824	  /^X\(\/\/\)$/{
5825	    s//\1/
5826	    q
5827	  }
5828	  /^X\(\/\).*/{
5829	    s//\1/
5830	    q
5831	  }
5832	  s/.*/./; q'`
5833      test -d "$as_dir" && break
5834    done
5835    test -z "$as_dirs" || eval "mkdir $as_dirs"
5836  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5837
5838
5839} # as_fn_mkdir_p
5840if mkdir -p . 2>/dev/null; then
5841  as_mkdir_p='mkdir -p "$as_dir"'
5842else
5843  test -d ./-p && rmdir ./-p
5844  as_mkdir_p=false
5845fi
5846
5847if test -x / >/dev/null 2>&1; then
5848  as_test_x='test -x'
5849else
5850  if ls -dL / >/dev/null 2>&1; then
5851    as_ls_L_option=L
5852  else
5853    as_ls_L_option=
5854  fi
5855  as_test_x='
5856    eval sh -c '\''
5857      if test -d "$1"; then
5858	test -d "$1/.";
5859      else
5860	case $1 in #(
5861	-*)set "./$1";;
5862	esac;
5863	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5864	???[sx]*):;;*)false;;esac;fi
5865    '\'' sh
5866  '
5867fi
5868as_executable_p=$as_test_x
5869
5870# Sed expression to map a string onto a valid CPP name.
5871as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5872
5873# Sed expression to map a string onto a valid variable name.
5874as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5875
5876
5877exec 6>&1
5878## ----------------------------------- ##
5879## Main body of $CONFIG_STATUS script. ##
5880## ----------------------------------- ##
5881_ASEOF
5882test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5883
5884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5885# Save the log message, to keep $0 and so on meaningful, and to
5886# report actual input values of CONFIG_FILES etc. instead of their
5887# values after options handling.
5888ac_log="
5889This file was extended by viewres $as_me 1.0.2, which was
5890generated by GNU Autoconf 2.65.  Invocation command line was
5891
5892  CONFIG_FILES    = $CONFIG_FILES
5893  CONFIG_HEADERS  = $CONFIG_HEADERS
5894  CONFIG_LINKS    = $CONFIG_LINKS
5895  CONFIG_COMMANDS = $CONFIG_COMMANDS
5896  $ $0 $@
5897
5898on `(hostname || uname -n) 2>/dev/null | sed 1q`
5899"
5900
5901_ACEOF
5902
5903case $ac_config_files in *"
5904"*) set x $ac_config_files; shift; ac_config_files=$*;;
5905esac
5906
5907case $ac_config_headers in *"
5908"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5909esac
5910
5911
5912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5913# Files that config.status was made for.
5914config_files="$ac_config_files"
5915config_headers="$ac_config_headers"
5916config_commands="$ac_config_commands"
5917
5918_ACEOF
5919
5920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5921ac_cs_usage="\
5922\`$as_me' instantiates files and other configuration actions
5923from templates according to the current configuration.  Unless the files
5924and actions are specified as TAGs, all are instantiated by default.
5925
5926Usage: $0 [OPTION]... [TAG]...
5927
5928  -h, --help       print this help, then exit
5929  -V, --version    print version number and configuration settings, then exit
5930      --config     print configuration, then exit
5931  -q, --quiet, --silent
5932                   do not print progress messages
5933  -d, --debug      don't remove temporary files
5934      --recheck    update $as_me by reconfiguring in the same conditions
5935      --file=FILE[:TEMPLATE]
5936                   instantiate the configuration file FILE
5937      --header=FILE[:TEMPLATE]
5938                   instantiate the configuration header FILE
5939
5940Configuration files:
5941$config_files
5942
5943Configuration headers:
5944$config_headers
5945
5946Configuration commands:
5947$config_commands
5948
5949Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5950
5951_ACEOF
5952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5953ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5954ac_cs_version="\\
5955viewres config.status 1.0.2
5956configured by $0, generated by GNU Autoconf 2.65,
5957  with options \\"\$ac_cs_config\\"
5958
5959Copyright (C) 2009 Free Software Foundation, Inc.
5960This config.status script is free software; the Free Software Foundation
5961gives unlimited permission to copy, distribute and modify it."
5962
5963ac_pwd='$ac_pwd'
5964srcdir='$srcdir'
5965INSTALL='$INSTALL'
5966MKDIR_P='$MKDIR_P'
5967AWK='$AWK'
5968test -n "\$AWK" || AWK=awk
5969_ACEOF
5970
5971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5972# The default lists apply if the user does not specify any file.
5973ac_need_defaults=:
5974while test $# != 0
5975do
5976  case $1 in
5977  --*=*)
5978    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5979    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5980    ac_shift=:
5981    ;;
5982  *)
5983    ac_option=$1
5984    ac_optarg=$2
5985    ac_shift=shift
5986    ;;
5987  esac
5988
5989  case $ac_option in
5990  # Handling of the options.
5991  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5992    ac_cs_recheck=: ;;
5993  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5994    $as_echo "$ac_cs_version"; exit ;;
5995  --config | --confi | --conf | --con | --co | --c )
5996    $as_echo "$ac_cs_config"; exit ;;
5997  --debug | --debu | --deb | --de | --d | -d )
5998    debug=: ;;
5999  --file | --fil | --fi | --f )
6000    $ac_shift
6001    case $ac_optarg in
6002    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6003    esac
6004    as_fn_append CONFIG_FILES " '$ac_optarg'"
6005    ac_need_defaults=false;;
6006  --header | --heade | --head | --hea )
6007    $ac_shift
6008    case $ac_optarg in
6009    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6010    esac
6011    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6012    ac_need_defaults=false;;
6013  --he | --h)
6014    # Conflict between --help and --header
6015    as_fn_error "ambiguous option: \`$1'
6016Try \`$0 --help' for more information.";;
6017  --help | --hel | -h )
6018    $as_echo "$ac_cs_usage"; exit ;;
6019  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6020  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6021    ac_cs_silent=: ;;
6022
6023  # This is an error.
6024  -*) as_fn_error "unrecognized option: \`$1'
6025Try \`$0 --help' for more information." ;;
6026
6027  *) as_fn_append ac_config_targets " $1"
6028     ac_need_defaults=false ;;
6029
6030  esac
6031  shift
6032done
6033
6034ac_configure_extra_args=
6035
6036if $ac_cs_silent; then
6037  exec 6>/dev/null
6038  ac_configure_extra_args="$ac_configure_extra_args --silent"
6039fi
6040
6041_ACEOF
6042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6043if \$ac_cs_recheck; then
6044  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6045  shift
6046  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6047  CONFIG_SHELL='$SHELL'
6048  export CONFIG_SHELL
6049  exec "\$@"
6050fi
6051
6052_ACEOF
6053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6054exec 5>>config.log
6055{
6056  echo
6057  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6058## Running $as_me. ##
6059_ASBOX
6060  $as_echo "$ac_log"
6061} >&5
6062
6063_ACEOF
6064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6065#
6066# INIT-COMMANDS
6067#
6068AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6069
6070_ACEOF
6071
6072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6073
6074# Handling of arguments.
6075for ac_config_target in $ac_config_targets
6076do
6077  case $ac_config_target in
6078    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6079    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6080    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6081
6082  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6083  esac
6084done
6085
6086
6087# If the user did not use the arguments to specify the items to instantiate,
6088# then the envvar interface is used.  Set only those that are not.
6089# We use the long form for the default assignment because of an extremely
6090# bizarre bug on SunOS 4.1.3.
6091if $ac_need_defaults; then
6092  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6093  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6094  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6095fi
6096
6097# Have a temporary directory for convenience.  Make it in the build tree
6098# simply because there is no reason against having it here, and in addition,
6099# creating and moving files from /tmp can sometimes cause problems.
6100# Hook for its removal unless debugging.
6101# Note that there is a small window in which the directory will not be cleaned:
6102# after its creation but before its name has been assigned to `$tmp'.
6103$debug ||
6104{
6105  tmp=
6106  trap 'exit_status=$?
6107  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6108' 0
6109  trap 'as_fn_exit 1' 1 2 13 15
6110}
6111# Create a (secure) tmp directory for tmp files.
6112
6113{
6114  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6115  test -n "$tmp" && test -d "$tmp"
6116}  ||
6117{
6118  tmp=./conf$$-$RANDOM
6119  (umask 077 && mkdir "$tmp")
6120} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6121
6122# Set up the scripts for CONFIG_FILES section.
6123# No need to generate them if there are no CONFIG_FILES.
6124# This happens for instance with `./config.status config.h'.
6125if test -n "$CONFIG_FILES"; then
6126
6127
6128ac_cr=`echo X | tr X '\015'`
6129# On cygwin, bash can eat \r inside `` if the user requested igncr.
6130# But we know of no other shell where ac_cr would be empty at this
6131# point, so we can use a bashism as a fallback.
6132if test "x$ac_cr" = x; then
6133  eval ac_cr=\$\'\\r\'
6134fi
6135ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6136if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6137  ac_cs_awk_cr='\r'
6138else
6139  ac_cs_awk_cr=$ac_cr
6140fi
6141
6142echo 'BEGIN {' >"$tmp/subs1.awk" &&
6143_ACEOF
6144
6145
6146{
6147  echo "cat >conf$$subs.awk <<_ACEOF" &&
6148  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6149  echo "_ACEOF"
6150} >conf$$subs.sh ||
6151  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6152ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6153ac_delim='%!_!# '
6154for ac_last_try in false false false false false :; do
6155  . ./conf$$subs.sh ||
6156    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6157
6158  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6159  if test $ac_delim_n = $ac_delim_num; then
6160    break
6161  elif $ac_last_try; then
6162    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6163  else
6164    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6165  fi
6166done
6167rm -f conf$$subs.sh
6168
6169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6170cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6171_ACEOF
6172sed -n '
6173h
6174s/^/S["/; s/!.*/"]=/
6175p
6176g
6177s/^[^!]*!//
6178:repl
6179t repl
6180s/'"$ac_delim"'$//
6181t delim
6182:nl
6183h
6184s/\(.\{148\}\)..*/\1/
6185t more1
6186s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6187p
6188n
6189b repl
6190:more1
6191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6192p
6193g
6194s/.\{148\}//
6195t nl
6196:delim
6197h
6198s/\(.\{148\}\)..*/\1/
6199t more2
6200s/["\\]/\\&/g; s/^/"/; s/$/"/
6201p
6202b
6203:more2
6204s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6205p
6206g
6207s/.\{148\}//
6208t delim
6209' <conf$$subs.awk | sed '
6210/^[^""]/{
6211  N
6212  s/\n//
6213}
6214' >>$CONFIG_STATUS || ac_write_fail=1
6215rm -f conf$$subs.awk
6216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6217_ACAWK
6218cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6219  for (key in S) S_is_set[key] = 1
6220  FS = ""
6221
6222}
6223{
6224  line = $ 0
6225  nfields = split(line, field, "@")
6226  substed = 0
6227  len = length(field[1])
6228  for (i = 2; i < nfields; i++) {
6229    key = field[i]
6230    keylen = length(key)
6231    if (S_is_set[key]) {
6232      value = S[key]
6233      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6234      len += length(value) + length(field[++i])
6235      substed = 1
6236    } else
6237      len += 1 + keylen
6238  }
6239
6240  print line
6241}
6242
6243_ACAWK
6244_ACEOF
6245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6246if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6247  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6248else
6249  cat
6250fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6251  || as_fn_error "could not setup config files machinery" "$LINENO" 5
6252_ACEOF
6253
6254# VPATH may cause trouble with some makes, so we remove $(srcdir),
6255# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6256# trailing colons and then remove the whole line if VPATH becomes empty
6257# (actually we leave an empty line to preserve line numbers).
6258if test "x$srcdir" = x.; then
6259  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
6260s/:*\$(srcdir):*/:/
6261s/:*\${srcdir}:*/:/
6262s/:*@srcdir@:*/:/
6263s/^\([^=]*=[	 ]*\):*/\1/
6264s/:*$//
6265s/^[^=]*=[	 ]*$//
6266}'
6267fi
6268
6269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6270fi # test -n "$CONFIG_FILES"
6271
6272# Set up the scripts for CONFIG_HEADERS section.
6273# No need to generate them if there are no CONFIG_HEADERS.
6274# This happens for instance with `./config.status Makefile'.
6275if test -n "$CONFIG_HEADERS"; then
6276cat >"$tmp/defines.awk" <<\_ACAWK ||
6277BEGIN {
6278_ACEOF
6279
6280# Transform confdefs.h into an awk script `defines.awk', embedded as
6281# here-document in config.status, that substitutes the proper values into
6282# config.h.in to produce config.h.
6283
6284# Create a delimiter string that does not exist in confdefs.h, to ease
6285# handling of long lines.
6286ac_delim='%!_!# '
6287for ac_last_try in false false :; do
6288  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6289  if test -z "$ac_t"; then
6290    break
6291  elif $ac_last_try; then
6292    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6293  else
6294    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6295  fi
6296done
6297
6298# For the awk script, D is an array of macro values keyed by name,
6299# likewise P contains macro parameters if any.  Preserve backslash
6300# newline sequences.
6301
6302ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6303sed -n '
6304s/.\{148\}/&'"$ac_delim"'/g
6305t rset
6306:rset
6307s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
6308t def
6309d
6310:def
6311s/\\$//
6312t bsnl
6313s/["\\]/\\&/g
6314s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6315D["\1"]=" \3"/p
6316s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
6317d
6318:bsnl
6319s/["\\]/\\&/g
6320s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
6321D["\1"]=" \3\\\\\\n"\\/p
6322t cont
6323s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6324t cont
6325d
6326:cont
6327n
6328s/.\{148\}/&'"$ac_delim"'/g
6329t clear
6330:clear
6331s/\\$//
6332t bsnlc
6333s/["\\]/\\&/g; s/^/"/; s/$/"/p
6334d
6335:bsnlc
6336s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6337b cont
6338' <confdefs.h | sed '
6339s/'"$ac_delim"'/"\\\
6340"/g' >>$CONFIG_STATUS || ac_write_fail=1
6341
6342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6343  for (key in D) D_is_set[key] = 1
6344  FS = ""
6345}
6346/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6347  line = \$ 0
6348  split(line, arg, " ")
6349  if (arg[1] == "#") {
6350    defundef = arg[2]
6351    mac1 = arg[3]
6352  } else {
6353    defundef = substr(arg[1], 2)
6354    mac1 = arg[2]
6355  }
6356  split(mac1, mac2, "(") #)
6357  macro = mac2[1]
6358  prefix = substr(line, 1, index(line, defundef) - 1)
6359  if (D_is_set[macro]) {
6360    # Preserve the white space surrounding the "#".
6361    print prefix "define", macro P[macro] D[macro]
6362    next
6363  } else {
6364    # Replace #undef with comments.  This is necessary, for example,
6365    # in the case of _POSIX_SOURCE, which is predefined and required
6366    # on some systems where configure will not decide to define it.
6367    if (defundef == "undef") {
6368      print "/*", prefix defundef, macro, "*/"
6369      next
6370    }
6371  }
6372}
6373{ print }
6374_ACAWK
6375_ACEOF
6376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6377  as_fn_error "could not setup config headers machinery" "$LINENO" 5
6378fi # test -n "$CONFIG_HEADERS"
6379
6380
6381eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6382shift
6383for ac_tag
6384do
6385  case $ac_tag in
6386  :[FHLC]) ac_mode=$ac_tag; continue;;
6387  esac
6388  case $ac_mode$ac_tag in
6389  :[FHL]*:*);;
6390  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6391  :[FH]-) ac_tag=-:-;;
6392  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6393  esac
6394  ac_save_IFS=$IFS
6395  IFS=:
6396  set x $ac_tag
6397  IFS=$ac_save_IFS
6398  shift
6399  ac_file=$1
6400  shift
6401
6402  case $ac_mode in
6403  :L) ac_source=$1;;
6404  :[FH])
6405    ac_file_inputs=
6406    for ac_f
6407    do
6408      case $ac_f in
6409      -) ac_f="$tmp/stdin";;
6410      *) # Look for the file first in the build tree, then in the source tree
6411	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
6412	 # because $ac_f cannot contain `:'.
6413	 test -f "$ac_f" ||
6414	   case $ac_f in
6415	   [\\/$]*) false;;
6416	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6417	   esac ||
6418	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6419      esac
6420      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6421      as_fn_append ac_file_inputs " '$ac_f'"
6422    done
6423
6424    # Let's still pretend it is `configure' which instantiates (i.e., don't
6425    # use $as_me), people would be surprised to read:
6426    #    /* config.h.  Generated by config.status.  */
6427    configure_input='Generated from '`
6428	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6429	`' by configure.'
6430    if test x"$ac_file" != x-; then
6431      configure_input="$ac_file.  $configure_input"
6432      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6433$as_echo "$as_me: creating $ac_file" >&6;}
6434    fi
6435    # Neutralize special characters interpreted by sed in replacement strings.
6436    case $configure_input in #(
6437    *\&* | *\|* | *\\* )
6438       ac_sed_conf_input=`$as_echo "$configure_input" |
6439       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6440    *) ac_sed_conf_input=$configure_input;;
6441    esac
6442
6443    case $ac_tag in
6444    *:-:* | *:-) cat >"$tmp/stdin" \
6445      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6446    esac
6447    ;;
6448  esac
6449
6450  ac_dir=`$as_dirname -- "$ac_file" ||
6451$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6452	 X"$ac_file" : 'X\(//\)[^/]' \| \
6453	 X"$ac_file" : 'X\(//\)$' \| \
6454	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6455$as_echo X"$ac_file" |
6456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6457	    s//\1/
6458	    q
6459	  }
6460	  /^X\(\/\/\)[^/].*/{
6461	    s//\1/
6462	    q
6463	  }
6464	  /^X\(\/\/\)$/{
6465	    s//\1/
6466	    q
6467	  }
6468	  /^X\(\/\).*/{
6469	    s//\1/
6470	    q
6471	  }
6472	  s/.*/./; q'`
6473  as_dir="$ac_dir"; as_fn_mkdir_p
6474  ac_builddir=.
6475
6476case "$ac_dir" in
6477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6478*)
6479  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6480  # A ".." for each directory in $ac_dir_suffix.
6481  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6482  case $ac_top_builddir_sub in
6483  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6484  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6485  esac ;;
6486esac
6487ac_abs_top_builddir=$ac_pwd
6488ac_abs_builddir=$ac_pwd$ac_dir_suffix
6489# for backward compatibility:
6490ac_top_builddir=$ac_top_build_prefix
6491
6492case $srcdir in
6493  .)  # We are building in place.
6494    ac_srcdir=.
6495    ac_top_srcdir=$ac_top_builddir_sub
6496    ac_abs_top_srcdir=$ac_pwd ;;
6497  [\\/]* | ?:[\\/]* )  # Absolute name.
6498    ac_srcdir=$srcdir$ac_dir_suffix;
6499    ac_top_srcdir=$srcdir
6500    ac_abs_top_srcdir=$srcdir ;;
6501  *) # Relative name.
6502    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6503    ac_top_srcdir=$ac_top_build_prefix$srcdir
6504    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6505esac
6506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6507
6508
6509  case $ac_mode in
6510  :F)
6511  #
6512  # CONFIG_FILE
6513  #
6514
6515  case $INSTALL in
6516  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6517  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6518  esac
6519  ac_MKDIR_P=$MKDIR_P
6520  case $MKDIR_P in
6521  [\\/$]* | ?:[\\/]* ) ;;
6522  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6523  esac
6524_ACEOF
6525
6526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6527# If the template does not know about datarootdir, expand it.
6528# FIXME: This hack should be removed a few years after 2.60.
6529ac_datarootdir_hack=; ac_datarootdir_seen=
6530ac_sed_dataroot='
6531/datarootdir/ {
6532  p
6533  q
6534}
6535/@datadir@/p
6536/@docdir@/p
6537/@infodir@/p
6538/@localedir@/p
6539/@mandir@/p'
6540case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6541*datarootdir*) ac_datarootdir_seen=yes;;
6542*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6543  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6544$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6545_ACEOF
6546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6547  ac_datarootdir_hack='
6548  s&@datadir@&$datadir&g
6549  s&@docdir@&$docdir&g
6550  s&@infodir@&$infodir&g
6551  s&@localedir@&$localedir&g
6552  s&@mandir@&$mandir&g
6553  s&\\\${datarootdir}&$datarootdir&g' ;;
6554esac
6555_ACEOF
6556
6557# Neutralize VPATH when `$srcdir' = `.'.
6558# Shell code in configure.ac might set extrasub.
6559# FIXME: do we really want to maintain this feature?
6560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6561ac_sed_extra="$ac_vpsub
6562$extrasub
6563_ACEOF
6564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6565:t
6566/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6567s|@configure_input@|$ac_sed_conf_input|;t t
6568s&@top_builddir@&$ac_top_builddir_sub&;t t
6569s&@top_build_prefix@&$ac_top_build_prefix&;t t
6570s&@srcdir@&$ac_srcdir&;t t
6571s&@abs_srcdir@&$ac_abs_srcdir&;t t
6572s&@top_srcdir@&$ac_top_srcdir&;t t
6573s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6574s&@builddir@&$ac_builddir&;t t
6575s&@abs_builddir@&$ac_abs_builddir&;t t
6576s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6577s&@INSTALL@&$ac_INSTALL&;t t
6578s&@MKDIR_P@&$ac_MKDIR_P&;t t
6579$ac_datarootdir_hack
6580"
6581eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6582  || as_fn_error "could not create $ac_file" "$LINENO" 5
6583
6584test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6585  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6586  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6588which seems to be undefined.  Please make sure it is defined." >&5
6589$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6590which seems to be undefined.  Please make sure it is defined." >&2;}
6591
6592  rm -f "$tmp/stdin"
6593  case $ac_file in
6594  -) cat "$tmp/out" && rm -f "$tmp/out";;
6595  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6596  esac \
6597  || as_fn_error "could not create $ac_file" "$LINENO" 5
6598 ;;
6599  :H)
6600  #
6601  # CONFIG_HEADER
6602  #
6603  if test x"$ac_file" != x-; then
6604    {
6605      $as_echo "/* $configure_input  */" \
6606      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6607    } >"$tmp/config.h" \
6608      || as_fn_error "could not create $ac_file" "$LINENO" 5
6609    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6610      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6611$as_echo "$as_me: $ac_file is unchanged" >&6;}
6612    else
6613      rm -f "$ac_file"
6614      mv "$tmp/config.h" "$ac_file" \
6615	|| as_fn_error "could not create $ac_file" "$LINENO" 5
6616    fi
6617  else
6618    $as_echo "/* $configure_input  */" \
6619      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6620      || as_fn_error "could not create -" "$LINENO" 5
6621  fi
6622# Compute "$ac_file"'s index in $config_headers.
6623_am_arg="$ac_file"
6624_am_stamp_count=1
6625for _am_header in $config_headers :; do
6626  case $_am_header in
6627    $_am_arg | $_am_arg:* )
6628      break ;;
6629    * )
6630      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6631  esac
6632done
6633echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6634$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6635	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6636	 X"$_am_arg" : 'X\(//\)$' \| \
6637	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6638$as_echo X"$_am_arg" |
6639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6640	    s//\1/
6641	    q
6642	  }
6643	  /^X\(\/\/\)[^/].*/{
6644	    s//\1/
6645	    q
6646	  }
6647	  /^X\(\/\/\)$/{
6648	    s//\1/
6649	    q
6650	  }
6651	  /^X\(\/\).*/{
6652	    s//\1/
6653	    q
6654	  }
6655	  s/.*/./; q'`/stamp-h$_am_stamp_count
6656 ;;
6657
6658  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6659$as_echo "$as_me: executing $ac_file commands" >&6;}
6660 ;;
6661  esac
6662
6663
6664  case $ac_file$ac_mode in
6665    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6666  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6667  # are listed without --file.  Let's play safe and only enable the eval
6668  # if we detect the quoting.
6669  case $CONFIG_FILES in
6670  *\'*) eval set x "$CONFIG_FILES" ;;
6671  *)   set x $CONFIG_FILES ;;
6672  esac
6673  shift
6674  for mf
6675  do
6676    # Strip MF so we end up with the name of the file.
6677    mf=`echo "$mf" | sed -e 's/:.*$//'`
6678    # Check whether this is an Automake generated Makefile or not.
6679    # We used to match only the files named `Makefile.in', but
6680    # some people rename them; so instead we look at the file content.
6681    # Grep'ing the first line is not enough: some people post-process
6682    # each Makefile.in and add a new line on top of each file to say so.
6683    # Grep'ing the whole file is not good either: AIX grep has a line
6684    # limit of 2048, but all sed's we know have understand at least 4000.
6685    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6686      dirpart=`$as_dirname -- "$mf" ||
6687$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6688	 X"$mf" : 'X\(//\)[^/]' \| \
6689	 X"$mf" : 'X\(//\)$' \| \
6690	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6691$as_echo X"$mf" |
6692    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6693	    s//\1/
6694	    q
6695	  }
6696	  /^X\(\/\/\)[^/].*/{
6697	    s//\1/
6698	    q
6699	  }
6700	  /^X\(\/\/\)$/{
6701	    s//\1/
6702	    q
6703	  }
6704	  /^X\(\/\).*/{
6705	    s//\1/
6706	    q
6707	  }
6708	  s/.*/./; q'`
6709    else
6710      continue
6711    fi
6712    # Extract the definition of DEPDIR, am__include, and am__quote
6713    # from the Makefile without running `make'.
6714    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6715    test -z "$DEPDIR" && continue
6716    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6717    test -z "am__include" && continue
6718    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6719    # When using ansi2knr, U may be empty or an underscore; expand it
6720    U=`sed -n 's/^U = //p' < "$mf"`
6721    # Find all dependency output files, they are included files with
6722    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6723    # simplest approach to changing $(DEPDIR) to its actual value in the
6724    # expansion.
6725    for file in `sed -n "
6726      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6727	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6728      # Make sure the directory exists.
6729      test -f "$dirpart/$file" && continue
6730      fdir=`$as_dirname -- "$file" ||
6731$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6732	 X"$file" : 'X\(//\)[^/]' \| \
6733	 X"$file" : 'X\(//\)$' \| \
6734	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6735$as_echo X"$file" |
6736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6737	    s//\1/
6738	    q
6739	  }
6740	  /^X\(\/\/\)[^/].*/{
6741	    s//\1/
6742	    q
6743	  }
6744	  /^X\(\/\/\)$/{
6745	    s//\1/
6746	    q
6747	  }
6748	  /^X\(\/\).*/{
6749	    s//\1/
6750	    q
6751	  }
6752	  s/.*/./; q'`
6753      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6754      # echo "creating $dirpart/$file"
6755      echo '# dummy' > "$dirpart/$file"
6756    done
6757  done
6758}
6759 ;;
6760
6761  esac
6762done # for ac_tag
6763
6764
6765as_fn_exit 0
6766_ACEOF
6767ac_clean_files=$ac_clean_files_save
6768
6769test $ac_write_fail = 0 ||
6770  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6771
6772
6773# configure is writing to config.log, and then calls config.status.
6774# config.status does its own redirection, appending to config.log.
6775# Unfortunately, on DOS this fails, as config.log is still kept open
6776# by configure, so config.status won't be able to write to it; its
6777# output is simply discarded.  So we exec the FD to /dev/null,
6778# effectively closing config.log, so it can be properly (re)opened and
6779# appended to by config.status.  When coming back to configure, we
6780# need to make the FD available again.
6781if test "$no_create" != yes; then
6782  ac_cs_success=:
6783  ac_config_status_args=
6784  test "$silent" = yes &&
6785    ac_config_status_args="$ac_config_status_args --quiet"
6786  exec 5>/dev/null
6787  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6788  exec 5>>config.log
6789  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6790  # would make configure fail if this is the last instruction.
6791  $ac_cs_success || as_fn_exit $?
6792fi
6793if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6794  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6795$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6796fi
6797
6798