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