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