1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for wxguitar 1.01.
4#
5# Report bugs to <indt@mail.ru>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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  # Pre-4.2 versions of Zsh do 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
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576exec 7<&0 </dev/null 6>&1
577
578# Name of the host.
579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580# so uname gets run too.
581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583#
584# Initializations.
585#
586ac_default_prefix=/usr/local
587ac_clean_files=
588ac_config_libobj_dir=.
589LIBOBJS=
590cross_compiling=no
591subdirs=
592MFLAGS=
593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh}
595
596# Identity of this package.
597PACKAGE_NAME='wxguitar'
598PACKAGE_TARNAME='wxguitar'
599PACKAGE_VERSION='1.01'
600PACKAGE_STRING='wxguitar 1.01'
601PACKAGE_BUGREPORT='indt@mail.ru'
602
603ac_unique_file="src/wxGuitarMain.cpp"
604gt_needs=
605# Factoring default headers for most tests.
606ac_includes_default="\
607#include <stdio.h>
608#ifdef HAVE_SYS_TYPES_H
609# include <sys/types.h>
610#endif
611#ifdef HAVE_SYS_STAT_H
612# include <sys/stat.h>
613#endif
614#ifdef STDC_HEADERS
615# include <stdlib.h>
616# include <stddef.h>
617#else
618# ifdef HAVE_STDLIB_H
619#  include <stdlib.h>
620# endif
621#endif
622#ifdef HAVE_STRING_H
623# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624#  include <memory.h>
625# endif
626# include <string.h>
627#endif
628#ifdef HAVE_STRINGS_H
629# include <strings.h>
630#endif
631#ifdef HAVE_INTTYPES_H
632# include <inttypes.h>
633#endif
634#ifdef HAVE_STDINT_H
635# include <stdint.h>
636#endif
637#ifdef HAVE_UNISTD_H
638# include <unistd.h>
639#endif"
640
641ac_subst_vars='LTLIBOBJS
642LIBOBJS
643EGREP
644GREP
645CPP
646WX_RESCOMP
647WX_VERSION
648WX_LIBS_STATIC
649WX_LIBS
650WX_CXXFLAGS_ONLY
651WX_CFLAGS_ONLY
652WX_CXXFLAGS
653WX_CFLAGS
654WX_CPPFLAGS
655WX_CONFIG_PATH
656am__fastdepCXX_FALSE
657am__fastdepCXX_TRUE
658CXXDEPMODE
659ac_ct_CXX
660CXXFLAGS
661CXX
662POSUB
663LTLIBINTL
664LIBINTL
665INTLLIBS
666LTLIBICONV
667LIBICONV
668INTL_MACOSX_LIBS
669host_os
670host_vendor
671host_cpu
672host
673build_os
674build_vendor
675build_cpu
676build
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680AMDEPBACKSLASH
681AMDEP_FALSE
682AMDEP_TRUE
683am__quote
684am__include
685DEPDIR
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693XGETTEXT_EXTRA_OPTIONS
694MSGMERGE
695XGETTEXT_015
696XGETTEXT
697GMSGFMT_015
698MSGFMT_015
699GMSGFMT
700MSGFMT
701GETTEXT_MACRO_VERSION
702USE_NLS
703am__untar
704am__tar
705AMTAR
706am__leading_dot
707SET_MAKE
708AWK
709mkdir_p
710MKDIR_P
711INSTALL_STRIP_PROGRAM
712STRIP
713install_sh
714MAKEINFO
715AUTOHEADER
716AUTOMAKE
717AUTOCONF
718ACLOCAL
719VERSION
720PACKAGE
721CYGPATH_W
722am__isrc
723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726target_alias
727host_alias
728build_alias
729LIBS
730ECHO_T
731ECHO_N
732ECHO_C
733DEFS
734mandir
735localedir
736libdir
737psdir
738pdfdir
739dvidir
740htmldir
741infodir
742docdir
743oldincludedir
744includedir
745localstatedir
746sharedstatedir
747sysconfdir
748datadir
749datarootdir
750libexecdir
751sbindir
752bindir
753program_transform_name
754prefix
755exec_prefix
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_nls
767enable_dependency_tracking
768with_gnu_ld
769enable_rpath
770with_libiconv_prefix
771with_libintl_prefix
772with_wxdir
773with_wx_config
774with_wx_prefix
775with_wx_exec_prefix
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CXX
786CXXFLAGS
787CCC
788CPP'
789
790
791# Initialize some variables set by options.
792ac_init_help=
793ac_init_version=false
794ac_unrecognized_opts=
795ac_unrecognized_sep=
796# The variables have the same names as the options, with
797# dashes changed to underlines.
798cache_file=/dev/null
799exec_prefix=NONE
800no_create=
801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
809verbose=
810x_includes=NONE
811x_libraries=NONE
812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
818# (The list follows the same order as the GNU Coding Standards.)
819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
827includedir='${prefix}/include'
828oldincludedir='/usr/include'
829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
838
839ac_prev=
840ac_dashdash=
841for ac_option
842do
843  # If the previous option needs an argument, assign it.
844  if test -n "$ac_prev"; then
845    eval $ac_prev=\$ac_option
846    ac_prev=
847    continue
848  fi
849
850  case $ac_option in
851  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852  *)	ac_optarg=yes ;;
853  esac
854
855  # Accept the important Cygnus configure options, so we can diagnose typos.
856
857  case $ac_dashdash$ac_option in
858  --)
859    ac_dashdash=yes ;;
860
861  -bindir | --bindir | --bindi | --bind | --bin | --bi)
862    ac_prev=bindir ;;
863  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864    bindir=$ac_optarg ;;
865
866  -build | --build | --buil | --bui | --bu)
867    ac_prev=build_alias ;;
868  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869    build_alias=$ac_optarg ;;
870
871  -cache-file | --cache-file | --cache-fil | --cache-fi \
872  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873    ac_prev=cache_file ;;
874  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876    cache_file=$ac_optarg ;;
877
878  --config-cache | -C)
879    cache_file=config.cache ;;
880
881  -datadir | --datadir | --datadi | --datad)
882    ac_prev=datadir ;;
883  -datadir=* | --datadir=* | --datadi=* | --datad=*)
884    datadir=$ac_optarg ;;
885
886  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887  | --dataroo | --dataro | --datar)
888    ac_prev=datarootdir ;;
889  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891    datarootdir=$ac_optarg ;;
892
893  -disable-* | --disable-*)
894    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895    # Reject names that are not valid shell variable names.
896    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
898   { (exit 1); exit 1; }; }
899    ac_useropt_orig=$ac_useropt
900    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901    case $ac_user_opts in
902      *"
903"enable_$ac_useropt"
904"*) ;;
905      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906	 ac_unrecognized_sep=', ';;
907    esac
908    eval enable_$ac_useropt=no ;;
909
910  -docdir | --docdir | --docdi | --doc | --do)
911    ac_prev=docdir ;;
912  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913    docdir=$ac_optarg ;;
914
915  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916    ac_prev=dvidir ;;
917  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918    dvidir=$ac_optarg ;;
919
920  -enable-* | --enable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
925   { (exit 1); exit 1; }; }
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1130   { (exit 1); exit 1; }; }
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1147   { (exit 1); exit 1; }; }
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=no ;;
1158
1159  --x)
1160    # Obsolete; use --with-x.
1161    with_x=yes ;;
1162
1163  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164  | --x-incl | --x-inc | --x-in | --x-i)
1165    ac_prev=x_includes ;;
1166  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168    x_includes=$ac_optarg ;;
1169
1170  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172    ac_prev=x_libraries ;;
1173  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175    x_libraries=$ac_optarg ;;
1176
1177  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1178Try \`$0 --help' for more information." >&2
1179   { (exit 1); exit 1; }; }
1180    ;;
1181
1182  *=*)
1183    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1186      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1187   { (exit 1); exit 1; }; }
1188    eval $ac_envvar=\$ac_optarg
1189    export $ac_envvar ;;
1190
1191  *)
1192    # FIXME: should be removed in autoconf 3.0.
1193    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197    ;;
1198
1199  esac
1200done
1201
1202if test -n "$ac_prev"; then
1203  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1205   { (exit 1); exit 1; }; }
1206fi
1207
1208if test -n "$ac_unrecognized_opts"; then
1209  case $enable_option_checking in
1210    no) ;;
1211    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1212   { (exit 1); exit 1; }; } ;;
1213    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214  esac
1215fi
1216
1217# Check all directory arguments for consistency.
1218for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219		datadir sysconfdir sharedstatedir localstatedir includedir \
1220		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221		libdir localedir mandir
1222do
1223  eval ac_val=\$$ac_var
1224  # Remove trailing slashes.
1225  case $ac_val in
1226    */ )
1227      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228      eval $ac_var=\$ac_val;;
1229  esac
1230  # Be sure to have absolute directory names.
1231  case $ac_val in
1232    [\\/$]* | ?:[\\/]* )  continue;;
1233    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234  esac
1235  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1236   { (exit 1); exit 1; }; }
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251    If a cross compiler is detected then cross compile mode will be used." >&2
1252  elif test "x$build_alias" != "x$host_alias"; then
1253    cross_compiling=yes
1254  fi
1255fi
1256
1257ac_tool_prefix=
1258test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260test "$silent" = yes && exec 6>/dev/null
1261
1262
1263ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264ac_ls_di=`ls -di .` &&
1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1267   { (exit 1); exit 1; }; }
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1270   { (exit 1); exit 1; }; }
1271
1272
1273# Find the source files, if location was not specified.
1274if test -z "$srcdir"; then
1275  ac_srcdir_defaulted=yes
1276  # Try the directory containing this script, then the parent directory.
1277  ac_confdir=`$as_dirname -- "$as_myself" ||
1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279	 X"$as_myself" : 'X\(//\)[^/]' \| \
1280	 X"$as_myself" : 'X\(//\)$' \| \
1281	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282$as_echo X"$as_myself" |
1283    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)[^/].*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)$/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\).*/{
1296	    s//\1/
1297	    q
1298	  }
1299	  s/.*/./; q'`
1300  srcdir=$ac_confdir
1301  if test ! -r "$srcdir/$ac_unique_file"; then
1302    srcdir=..
1303  fi
1304else
1305  ac_srcdir_defaulted=no
1306fi
1307if test ! -r "$srcdir/$ac_unique_file"; then
1308  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1310   { (exit 1); exit 1; }; }
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1315   { (exit 1); exit 1; }; }
1316	pwd)`
1317# When building in place, set srcdir=.
1318if test "$ac_abs_confdir" = "$ac_pwd"; then
1319  srcdir=.
1320fi
1321# Remove unnecessary trailing slashes from srcdir.
1322# Double slashes in file names in object file debugging info
1323# mess up M-x gdb in Emacs.
1324case $srcdir in
1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326esac
1327for ac_var in $ac_precious_vars; do
1328  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329  eval ac_env_${ac_var}_value=\$${ac_var}
1330  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332done
1333
1334#
1335# Report the --help message.
1336#
1337if test "$ac_init_help" = "long"; then
1338  # Omit some internal or obsolete options to make the list less imposing.
1339  # This message is too long to be a string in the A/UX 3.1 sh.
1340  cat <<_ACEOF
1341\`configure' configures wxguitar 1.01 to adapt to many kinds of systems.
1342
1343Usage: $0 [OPTION]... [VAR=VALUE]...
1344
1345To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346VAR=VALUE.  See below for descriptions of some of the useful variables.
1347
1348Defaults for the options are specified in brackets.
1349
1350Configuration:
1351  -h, --help              display this help and exit
1352      --help=short        display options specific to this package
1353      --help=recursive    display the short help of all the included packages
1354  -V, --version           display version information and exit
1355  -q, --quiet, --silent   do not print \`checking...' messages
1356      --cache-file=FILE   cache test results in FILE [disabled]
1357  -C, --config-cache      alias for \`--cache-file=config.cache'
1358  -n, --no-create         do not create output files
1359      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1360
1361Installation directories:
1362  --prefix=PREFIX         install architecture-independent files in PREFIX
1363                          [$ac_default_prefix]
1364  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1365                          [PREFIX]
1366
1367By default, \`make install' will install all the files in
1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1369an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370for instance \`--prefix=\$HOME'.
1371
1372For better control, use the options below.
1373
1374Fine tuning of the installation directories:
1375  --bindir=DIR            user executables [EPREFIX/bin]
1376  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1377  --libexecdir=DIR        program executables [EPREFIX/libexec]
1378  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1379  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1380  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1381  --libdir=DIR            object code libraries [EPREFIX/lib]
1382  --includedir=DIR        C header files [PREFIX/include]
1383  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1384  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1385  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1386  --infodir=DIR           info documentation [DATAROOTDIR/info]
1387  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1388  --mandir=DIR            man documentation [DATAROOTDIR/man]
1389  --docdir=DIR            documentation root [DATAROOTDIR/doc/wxguitar]
1390  --htmldir=DIR           html documentation [DOCDIR]
1391  --dvidir=DIR            dvi documentation [DOCDIR]
1392  --pdfdir=DIR            pdf documentation [DOCDIR]
1393  --psdir=DIR             ps documentation [DOCDIR]
1394_ACEOF
1395
1396  cat <<\_ACEOF
1397
1398Program names:
1399  --program-prefix=PREFIX            prepend PREFIX to installed program names
1400  --program-suffix=SUFFIX            append SUFFIX to installed program names
1401  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1402
1403System types:
1404  --build=BUILD     configure for building on BUILD [guessed]
1405  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1406_ACEOF
1407fi
1408
1409if test -n "$ac_init_help"; then
1410  case $ac_init_help in
1411     short | recursive ) echo "Configuration of wxguitar 1.01:";;
1412   esac
1413  cat <<\_ACEOF
1414
1415Optional Features:
1416  --disable-option-checking  ignore unrecognized --enable/--with options
1417  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1418  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1419  --disable-nls           do not use Native Language Support
1420  --disable-dependency-tracking  speeds up one-time build
1421  --enable-dependency-tracking   do not reject slow dependency extractors
1422  --disable-rpath         do not hardcode runtime library paths
1423
1424Optional Packages:
1425  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1426  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1427  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1428  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1429  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1430  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1431  --without-libintl-prefix     don't search for libintl in includedir and libdir
1432  --with-wxdir=PATH       Use uninstalled version of wxWidgets in PATH
1433  --with-wx-config=CONFIG wx-config script to use (optional)
1434  --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1435  --with-wx-exec-prefix=PREFIX
1436                          Exec prefix where wxWidgets is installed (optional)
1437
1438Some influential environment variables:
1439  CC          C compiler command
1440  CFLAGS      C compiler flags
1441  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442              nonstandard directory <lib dir>
1443  LIBS        libraries to pass to the linker, e.g. -l<library>
1444  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445              you have headers in a nonstandard directory <include dir>
1446  CXX         C++ compiler command
1447  CXXFLAGS    C++ compiler flags
1448  CPP         C preprocessor
1449
1450Use these variables to override the choices made by `configure' or to help
1451it to find libraries and programs with nonstandard names/locations.
1452
1453Report bugs to <indt@mail.ru>.
1454_ACEOF
1455ac_status=$?
1456fi
1457
1458if test "$ac_init_help" = "recursive"; then
1459  # If there are subdirs, report their specific --help.
1460  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461    test -d "$ac_dir" ||
1462      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463      continue
1464    ac_builddir=.
1465
1466case "$ac_dir" in
1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468*)
1469  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470  # A ".." for each directory in $ac_dir_suffix.
1471  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472  case $ac_top_builddir_sub in
1473  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475  esac ;;
1476esac
1477ac_abs_top_builddir=$ac_pwd
1478ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479# for backward compatibility:
1480ac_top_builddir=$ac_top_build_prefix
1481
1482case $srcdir in
1483  .)  # We are building in place.
1484    ac_srcdir=.
1485    ac_top_srcdir=$ac_top_builddir_sub
1486    ac_abs_top_srcdir=$ac_pwd ;;
1487  [\\/]* | ?:[\\/]* )  # Absolute name.
1488    ac_srcdir=$srcdir$ac_dir_suffix;
1489    ac_top_srcdir=$srcdir
1490    ac_abs_top_srcdir=$srcdir ;;
1491  *) # Relative name.
1492    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493    ac_top_srcdir=$ac_top_build_prefix$srcdir
1494    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495esac
1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498    cd "$ac_dir" || { ac_status=$?; continue; }
1499    # Check for guested configure.
1500    if test -f "$ac_srcdir/configure.gnu"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503    elif test -f "$ac_srcdir/configure"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure" --help=recursive
1506    else
1507      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508    fi || ac_status=$?
1509    cd "$ac_pwd" || { ac_status=$?; break; }
1510  done
1511fi
1512
1513test -n "$ac_init_help" && exit $ac_status
1514if $ac_init_version; then
1515  cat <<\_ACEOF
1516wxguitar configure 1.01
1517generated by GNU Autoconf 2.63
1518
1519Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15202002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1521This configure script is free software; the Free Software Foundation
1522gives unlimited permission to copy, distribute and modify it.
1523_ACEOF
1524  exit
1525fi
1526cat >config.log <<_ACEOF
1527This file contains any messages produced by compilers while
1528running configure, to aid debugging if configure makes a mistake.
1529
1530It was created by wxguitar $as_me 1.01, which was
1531generated by GNU Autoconf 2.63.  Invocation command line was
1532
1533  $ $0 $@
1534
1535_ACEOF
1536exec 5>>config.log
1537{
1538cat <<_ASUNAME
1539## --------- ##
1540## Platform. ##
1541## --------- ##
1542
1543hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547uname -v = `(uname -v) 2>/dev/null || echo unknown`
1548
1549/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1551
1552/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1553/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1554/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1556/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1557/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1558/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1559
1560_ASUNAME
1561
1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563for as_dir in $PATH
1564do
1565  IFS=$as_save_IFS
1566  test -z "$as_dir" && as_dir=.
1567  $as_echo "PATH: $as_dir"
1568done
1569IFS=$as_save_IFS
1570
1571} >&5
1572
1573cat >&5 <<_ACEOF
1574
1575
1576## ----------- ##
1577## Core tests. ##
1578## ----------- ##
1579
1580_ACEOF
1581
1582
1583# Keep a trace of the command line.
1584# Strip out --no-create and --no-recursion so they do not pile up.
1585# Strip out --silent because we don't want to record it for future runs.
1586# Also quote any args containing shell meta-characters.
1587# Make two passes to allow for proper duplicate-argument suppression.
1588ac_configure_args=
1589ac_configure_args0=
1590ac_configure_args1=
1591ac_must_keep_next=false
1592for ac_pass in 1 2
1593do
1594  for ac_arg
1595  do
1596    case $ac_arg in
1597    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599    | -silent | --silent | --silen | --sile | --sil)
1600      continue ;;
1601    *\'*)
1602      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603    esac
1604    case $ac_pass in
1605    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1606    2)
1607      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608      if test $ac_must_keep_next = true; then
1609	ac_must_keep_next=false # Got value, back to normal.
1610      else
1611	case $ac_arg in
1612	  *=* | --config-cache | -C | -disable-* | --disable-* \
1613	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615	  | -with-* | --with-* | -without-* | --without-* | --x)
1616	    case "$ac_configure_args0 " in
1617	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618	    esac
1619	    ;;
1620	  -* ) ac_must_keep_next=true ;;
1621	esac
1622      fi
1623      ac_configure_args="$ac_configure_args '$ac_arg'"
1624      ;;
1625    esac
1626  done
1627done
1628$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1630
1631# When interrupted or exit'd, cleanup temporary files, and complete
1632# config.log.  We remove comments because anyway the quotes in there
1633# would cause problems or look ugly.
1634# WARNING: Use '\'' to represent an apostrophe within the trap.
1635# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636trap 'exit_status=$?
1637  # Save into config.log some information that might help in debugging.
1638  {
1639    echo
1640
1641    cat <<\_ASBOX
1642## ---------------- ##
1643## Cache variables. ##
1644## ---------------- ##
1645_ASBOX
1646    echo
1647    # The following way of writing the cache mishandles newlines in values,
1648(
1649  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650    eval ac_val=\$$ac_var
1651    case $ac_val in #(
1652    *${as_nl}*)
1653      case $ac_var in #(
1654      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1655$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1656      esac
1657      case $ac_var in #(
1658      _ | IFS | as_nl) ;; #(
1659      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1660      *) $as_unset $ac_var ;;
1661      esac ;;
1662    esac
1663  done
1664  (set) 2>&1 |
1665    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1666    *${as_nl}ac_space=\ *)
1667      sed -n \
1668	"s/'\''/'\''\\\\'\'''\''/g;
1669	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1670      ;; #(
1671    *)
1672      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1673      ;;
1674    esac |
1675    sort
1676)
1677    echo
1678
1679    cat <<\_ASBOX
1680## ----------------- ##
1681## Output variables. ##
1682## ----------------- ##
1683_ASBOX
1684    echo
1685    for ac_var in $ac_subst_vars
1686    do
1687      eval ac_val=\$$ac_var
1688      case $ac_val in
1689      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690      esac
1691      $as_echo "$ac_var='\''$ac_val'\''"
1692    done | sort
1693    echo
1694
1695    if test -n "$ac_subst_files"; then
1696      cat <<\_ASBOX
1697## ------------------- ##
1698## File substitutions. ##
1699## ------------------- ##
1700_ASBOX
1701      echo
1702      for ac_var in $ac_subst_files
1703      do
1704	eval ac_val=\$$ac_var
1705	case $ac_val in
1706	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707	esac
1708	$as_echo "$ac_var='\''$ac_val'\''"
1709      done | sort
1710      echo
1711    fi
1712
1713    if test -s confdefs.h; then
1714      cat <<\_ASBOX
1715## ----------- ##
1716## confdefs.h. ##
1717## ----------- ##
1718_ASBOX
1719      echo
1720      cat confdefs.h
1721      echo
1722    fi
1723    test "$ac_signal" != 0 &&
1724      $as_echo "$as_me: caught signal $ac_signal"
1725    $as_echo "$as_me: exit $exit_status"
1726  } >&5
1727  rm -f core *.core core.conftest.* &&
1728    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1729    exit $exit_status
1730' 0
1731for ac_signal in 1 2 13 15; do
1732  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1733done
1734ac_signal=0
1735
1736# confdefs.h avoids OS command line length limits that DEFS can exceed.
1737rm -f -r conftest* confdefs.h
1738
1739# Predefined preprocessor variables.
1740
1741cat >>confdefs.h <<_ACEOF
1742#define PACKAGE_NAME "$PACKAGE_NAME"
1743_ACEOF
1744
1745
1746cat >>confdefs.h <<_ACEOF
1747#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1748_ACEOF
1749
1750
1751cat >>confdefs.h <<_ACEOF
1752#define PACKAGE_VERSION "$PACKAGE_VERSION"
1753_ACEOF
1754
1755
1756cat >>confdefs.h <<_ACEOF
1757#define PACKAGE_STRING "$PACKAGE_STRING"
1758_ACEOF
1759
1760
1761cat >>confdefs.h <<_ACEOF
1762#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1763_ACEOF
1764
1765
1766# Let the site file select an alternate cache file if it wants to.
1767# Prefer an explicitly selected file to automatically selected ones.
1768ac_site_file1=NONE
1769ac_site_file2=NONE
1770if test -n "$CONFIG_SITE"; then
1771  ac_site_file1=$CONFIG_SITE
1772elif test "x$prefix" != xNONE; then
1773  ac_site_file1=$prefix/share/config.site
1774  ac_site_file2=$prefix/etc/config.site
1775else
1776  ac_site_file1=$ac_default_prefix/share/config.site
1777  ac_site_file2=$ac_default_prefix/etc/config.site
1778fi
1779for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1780do
1781  test "x$ac_site_file" = xNONE && continue
1782  if test -r "$ac_site_file"; then
1783    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1785    sed 's/^/| /' "$ac_site_file" >&5
1786    . "$ac_site_file"
1787  fi
1788done
1789
1790if test -r "$cache_file"; then
1791  # Some versions of bash will fail to source /dev/null (special
1792  # files actually), so we avoid doing that.
1793  if test -f "$cache_file"; then
1794    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795$as_echo "$as_me: loading cache $cache_file" >&6;}
1796    case $cache_file in
1797      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798      *)                      . "./$cache_file";;
1799    esac
1800  fi
1801else
1802  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1803$as_echo "$as_me: creating cache $cache_file" >&6;}
1804  >$cache_file
1805fi
1806
1807gt_needs="$gt_needs "
1808# Check that the precious variables saved in the cache have kept the same
1809# value.
1810ac_cache_corrupted=false
1811for ac_var in $ac_precious_vars; do
1812  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1813  eval ac_new_set=\$ac_env_${ac_var}_set
1814  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1815  eval ac_new_val=\$ac_env_${ac_var}_value
1816  case $ac_old_set,$ac_new_set in
1817    set,)
1818      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1819$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1820      ac_cache_corrupted=: ;;
1821    ,set)
1822      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1823$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1824      ac_cache_corrupted=: ;;
1825    ,);;
1826    *)
1827      if test "x$ac_old_val" != "x$ac_new_val"; then
1828	# differences in whitespace do not lead to failure.
1829	ac_old_val_w=`echo x $ac_old_val`
1830	ac_new_val_w=`echo x $ac_new_val`
1831	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1832	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1833$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1834	  ac_cache_corrupted=:
1835	else
1836	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1837$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1838	  eval $ac_var=\$ac_old_val
1839	fi
1840	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1841$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1842	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1843$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1844      fi;;
1845  esac
1846  # Pass precious variables to config.status.
1847  if test "$ac_new_set" = set; then
1848    case $ac_new_val in
1849    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1850    *) ac_arg=$ac_var=$ac_new_val ;;
1851    esac
1852    case " $ac_configure_args " in
1853      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1854      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1855    esac
1856  fi
1857done
1858if $ac_cache_corrupted; then
1859  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1861  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865   { (exit 1); exit 1; }; }
1866fi
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892ac_ext=c
1893ac_cpp='$CPP $CPPFLAGS'
1894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897
1898
1899ac_aux_dir=
1900for ac_dir in build-aux "$srcdir"/build-aux; do
1901  if test -f "$ac_dir/install-sh"; then
1902    ac_aux_dir=$ac_dir
1903    ac_install_sh="$ac_aux_dir/install-sh -c"
1904    break
1905  elif test -f "$ac_dir/install.sh"; then
1906    ac_aux_dir=$ac_dir
1907    ac_install_sh="$ac_aux_dir/install.sh -c"
1908    break
1909  elif test -f "$ac_dir/shtool"; then
1910    ac_aux_dir=$ac_dir
1911    ac_install_sh="$ac_aux_dir/shtool install -c"
1912    break
1913  fi
1914done
1915if test -z "$ac_aux_dir"; then
1916  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1917$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1918   { (exit 1); exit 1; }; }
1919fi
1920
1921# These three variables are undocumented and unsupported,
1922# and are intended to be withdrawn in a future Autoconf release.
1923# They can cause serious problems if a builder's source tree is in a directory
1924# whose full name contains unusual characters.
1925ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1926ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1927ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1928
1929
1930am__api_version='1.10'
1931
1932# Find a good install program.  We prefer a C program (faster),
1933# so one script is as good as another.  But avoid the broken or
1934# incompatible versions:
1935# SysV /etc/install, /usr/sbin/install
1936# SunOS /usr/etc/install
1937# IRIX /sbin/install
1938# AIX /bin/install
1939# AmigaOS /C/install, which installs bootblocks on floppy discs
1940# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1941# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1942# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1943# OS/2's system install, which has a completely different semantic
1944# ./install, which can be erroneously created by make from ./install.sh.
1945# Reject install programs that cannot install multiple files.
1946{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1947$as_echo_n "checking for a BSD-compatible install... " >&6; }
1948if test -z "$INSTALL"; then
1949if test "${ac_cv_path_install+set}" = set; then
1950  $as_echo_n "(cached) " >&6
1951else
1952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  test -z "$as_dir" && as_dir=.
1957  # Account for people who put trailing slashes in PATH elements.
1958case $as_dir/ in
1959  ./ | .// | /cC/* | \
1960  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1961  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1962  /usr/ucb/* ) ;;
1963  *)
1964    # OSF1 and SCO ODT 3.0 have their own names for install.
1965    # Don't use installbsd from OSF since it installs stuff as root
1966    # by default.
1967    for ac_prog in ginstall scoinst install; do
1968      for ac_exec_ext in '' $ac_executable_extensions; do
1969	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1970	  if test $ac_prog = install &&
1971	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1972	    # AIX install.  It has an incompatible calling convention.
1973	    :
1974	  elif test $ac_prog = install &&
1975	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1976	    # program-specific install script used by HP pwplus--don't use.
1977	    :
1978	  else
1979	    rm -rf conftest.one conftest.two conftest.dir
1980	    echo one > conftest.one
1981	    echo two > conftest.two
1982	    mkdir conftest.dir
1983	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1984	      test -s conftest.one && test -s conftest.two &&
1985	      test -s conftest.dir/conftest.one &&
1986	      test -s conftest.dir/conftest.two
1987	    then
1988	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1989	      break 3
1990	    fi
1991	  fi
1992	fi
1993      done
1994    done
1995    ;;
1996esac
1997
1998done
1999IFS=$as_save_IFS
2000
2001rm -rf conftest.one conftest.two conftest.dir
2002
2003fi
2004  if test "${ac_cv_path_install+set}" = set; then
2005    INSTALL=$ac_cv_path_install
2006  else
2007    # As a last resort, use the slow shell script.  Don't cache a
2008    # value for INSTALL within a source directory, because that will
2009    # break other packages using the cache if that directory is
2010    # removed, or if the value is a relative name.
2011    INSTALL=$ac_install_sh
2012  fi
2013fi
2014{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2015$as_echo "$INSTALL" >&6; }
2016
2017# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2018# It thinks the first close brace ends the variable substitution.
2019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2020
2021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2022
2023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2024
2025{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2026$as_echo_n "checking whether build environment is sane... " >&6; }
2027# Just in case
2028sleep 1
2029echo timestamp > conftest.file
2030# Do `set' in a subshell so we don't clobber the current shell's
2031# arguments.  Must try -L first in case configure is actually a
2032# symlink; some systems play weird games with the mod time of symlinks
2033# (eg FreeBSD returns the mod time of the symlink's containing
2034# directory).
2035if (
2036   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2037   if test "$*" = "X"; then
2038      # -L didn't work.
2039      set X `ls -t $srcdir/configure conftest.file`
2040   fi
2041   rm -f conftest.file
2042   if test "$*" != "X $srcdir/configure conftest.file" \
2043      && test "$*" != "X conftest.file $srcdir/configure"; then
2044
2045      # If neither matched, then we have a broken ls.  This can happen
2046      # if, for instance, CONFIG_SHELL is bash and it inherits a
2047      # broken ls alias from the environment.  This has actually
2048      # happened.  Such a system could not be considered "sane".
2049      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2050alias in your environment" >&5
2051$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2052alias in your environment" >&2;}
2053   { (exit 1); exit 1; }; }
2054   fi
2055
2056   test "$2" = conftest.file
2057   )
2058then
2059   # Ok.
2060   :
2061else
2062   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2063Check your system clock" >&5
2064$as_echo "$as_me: error: newly created file is older than distributed files!
2065Check your system clock" >&2;}
2066   { (exit 1); exit 1; }; }
2067fi
2068{ $as_echo "$as_me:$LINENO: result: yes" >&5
2069$as_echo "yes" >&6; }
2070test "$program_prefix" != NONE &&
2071  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2072# Use a double $ so make ignores it.
2073test "$program_suffix" != NONE &&
2074  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2075# Double any \ or $.
2076# By default was `s,x,x', remove it if useless.
2077ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2078program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2079
2080# expand $ac_aux_dir to an absolute path
2081am_aux_dir=`cd $ac_aux_dir && pwd`
2082
2083test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2084# Use eval to expand $SHELL
2085if eval "$MISSING --run true"; then
2086  am_missing_run="$MISSING --run "
2087else
2088  am_missing_run=
2089  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2090$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2091fi
2092
2093{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2094$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2095if test -z "$MKDIR_P"; then
2096  if test "${ac_cv_path_mkdir+set}" = set; then
2097  $as_echo_n "(cached) " >&6
2098else
2099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2101do
2102  IFS=$as_save_IFS
2103  test -z "$as_dir" && as_dir=.
2104  for ac_prog in mkdir gmkdir; do
2105	 for ac_exec_ext in '' $ac_executable_extensions; do
2106	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2107	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2108	     'mkdir (GNU coreutils) '* | \
2109	     'mkdir (coreutils) '* | \
2110	     'mkdir (fileutils) '4.1*)
2111	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2112	       break 3;;
2113	   esac
2114	 done
2115       done
2116done
2117IFS=$as_save_IFS
2118
2119fi
2120
2121  if test "${ac_cv_path_mkdir+set}" = set; then
2122    MKDIR_P="$ac_cv_path_mkdir -p"
2123  else
2124    # As a last resort, use the slow shell script.  Don't cache a
2125    # value for MKDIR_P within a source directory, because that will
2126    # break other packages using the cache if that directory is
2127    # removed, or if the value is a relative name.
2128    test -d ./--version && rmdir ./--version
2129    MKDIR_P="$ac_install_sh -d"
2130  fi
2131fi
2132{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2133$as_echo "$MKDIR_P" >&6; }
2134
2135mkdir_p="$MKDIR_P"
2136case $mkdir_p in
2137  [\\/$]* | ?:[\\/]*) ;;
2138  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2139esac
2140
2141for ac_prog in gawk mawk nawk awk
2142do
2143  # Extract the first word of "$ac_prog", so it can be a program name with args.
2144set dummy $ac_prog; ac_word=$2
2145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2146$as_echo_n "checking for $ac_word... " >&6; }
2147if test "${ac_cv_prog_AWK+set}" = set; then
2148  $as_echo_n "(cached) " >&6
2149else
2150  if test -n "$AWK"; then
2151  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2152else
2153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2154for as_dir in $PATH
2155do
2156  IFS=$as_save_IFS
2157  test -z "$as_dir" && as_dir=.
2158  for ac_exec_ext in '' $ac_executable_extensions; do
2159  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160    ac_cv_prog_AWK="$ac_prog"
2161    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162    break 2
2163  fi
2164done
2165done
2166IFS=$as_save_IFS
2167
2168fi
2169fi
2170AWK=$ac_cv_prog_AWK
2171if test -n "$AWK"; then
2172  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2173$as_echo "$AWK" >&6; }
2174else
2175  { $as_echo "$as_me:$LINENO: result: no" >&5
2176$as_echo "no" >&6; }
2177fi
2178
2179
2180  test -n "$AWK" && break
2181done
2182
2183{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2184$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2185set x ${MAKE-make}
2186ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2187if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2188  $as_echo_n "(cached) " >&6
2189else
2190  cat >conftest.make <<\_ACEOF
2191SHELL = /bin/sh
2192all:
2193	@echo '@@@%%%=$(MAKE)=@@@%%%'
2194_ACEOF
2195# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2196case `${MAKE-make} -f conftest.make 2>/dev/null` in
2197  *@@@%%%=?*=@@@%%%*)
2198    eval ac_cv_prog_make_${ac_make}_set=yes;;
2199  *)
2200    eval ac_cv_prog_make_${ac_make}_set=no;;
2201esac
2202rm -f conftest.make
2203fi
2204if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2205  { $as_echo "$as_me:$LINENO: result: yes" >&5
2206$as_echo "yes" >&6; }
2207  SET_MAKE=
2208else
2209  { $as_echo "$as_me:$LINENO: result: no" >&5
2210$as_echo "no" >&6; }
2211  SET_MAKE="MAKE=${MAKE-make}"
2212fi
2213
2214rm -rf .tst 2>/dev/null
2215mkdir .tst 2>/dev/null
2216if test -d .tst; then
2217  am__leading_dot=.
2218else
2219  am__leading_dot=_
2220fi
2221rmdir .tst 2>/dev/null
2222
2223if test "`cd $srcdir && pwd`" != "`pwd`"; then
2224  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2225  # is not polluted with repeated "-I."
2226  am__isrc=' -I$(srcdir)'
2227  # test to see if srcdir already configured
2228  if test -f $srcdir/config.status; then
2229    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2230$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2231   { (exit 1); exit 1; }; }
2232  fi
2233fi
2234
2235# test whether we have cygpath
2236if test -z "$CYGPATH_W"; then
2237  if (cygpath --version) >/dev/null 2>/dev/null; then
2238    CYGPATH_W='cygpath -w'
2239  else
2240    CYGPATH_W=echo
2241  fi
2242fi
2243
2244
2245# Define the identity of the package.
2246 PACKAGE=wxguitar
2247 VERSION=1.01
2248
2249
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE "$PACKAGE"
2252_ACEOF
2253
2254
2255cat >>confdefs.h <<_ACEOF
2256#define VERSION "$VERSION"
2257_ACEOF
2258
2259# Some tools Automake needs.
2260
2261ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2262
2263
2264AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2265
2266
2267AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2268
2269
2270AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2271
2272
2273MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2274
2275install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2276
2277# Installed binaries are usually stripped using `strip' when the user
2278# run `make install-strip'.  However `strip' might not be the right
2279# tool to use in cross-compilation environments, therefore Automake
2280# will honor the `STRIP' environment variable to overrule this program.
2281if test "$cross_compiling" != no; then
2282  if test -n "$ac_tool_prefix"; then
2283  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284set dummy ${ac_tool_prefix}strip; ac_word=$2
2285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286$as_echo_n "checking for $ac_word... " >&6; }
2287if test "${ac_cv_prog_STRIP+set}" = set; then
2288  $as_echo_n "(cached) " >&6
2289else
2290  if test -n "$STRIP"; then
2291  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2292else
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296  IFS=$as_save_IFS
2297  test -z "$as_dir" && as_dir=.
2298  for ac_exec_ext in '' $ac_executable_extensions; do
2299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302    break 2
2303  fi
2304done
2305done
2306IFS=$as_save_IFS
2307
2308fi
2309fi
2310STRIP=$ac_cv_prog_STRIP
2311if test -n "$STRIP"; then
2312  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2313$as_echo "$STRIP" >&6; }
2314else
2315  { $as_echo "$as_me:$LINENO: result: no" >&5
2316$as_echo "no" >&6; }
2317fi
2318
2319
2320fi
2321if test -z "$ac_cv_prog_STRIP"; then
2322  ac_ct_STRIP=$STRIP
2323  # Extract the first word of "strip", so it can be a program name with args.
2324set dummy strip; ac_word=$2
2325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326$as_echo_n "checking for $ac_word... " >&6; }
2327if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328  $as_echo_n "(cached) " >&6
2329else
2330  if test -n "$ac_ct_STRIP"; then
2331  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2332else
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336  IFS=$as_save_IFS
2337  test -z "$as_dir" && as_dir=.
2338  for ac_exec_ext in '' $ac_executable_extensions; do
2339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340    ac_cv_prog_ac_ct_STRIP="strip"
2341    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342    break 2
2343  fi
2344done
2345done
2346IFS=$as_save_IFS
2347
2348fi
2349fi
2350ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351if test -n "$ac_ct_STRIP"; then
2352  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353$as_echo "$ac_ct_STRIP" >&6; }
2354else
2355  { $as_echo "$as_me:$LINENO: result: no" >&5
2356$as_echo "no" >&6; }
2357fi
2358
2359  if test "x$ac_ct_STRIP" = x; then
2360    STRIP=":"
2361  else
2362    case $cross_compiling:$ac_tool_warned in
2363yes:)
2364{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2366ac_tool_warned=yes ;;
2367esac
2368    STRIP=$ac_ct_STRIP
2369  fi
2370else
2371  STRIP="$ac_cv_prog_STRIP"
2372fi
2373
2374fi
2375INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2376
2377# We need awk for the "check" target.  The system "awk" is bad on
2378# some platforms.
2379# Always define AMTAR for backward compatibility.
2380
2381AMTAR=${AMTAR-"${am_missing_run}tar"}
2382
2383am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2384
2385
2386
2387
2388
2389
2390
2391  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2392$as_echo_n "checking whether NLS is requested... " >&6; }
2393    # Check whether --enable-nls was given.
2394if test "${enable_nls+set}" = set; then
2395  enableval=$enable_nls; USE_NLS=$enableval
2396else
2397  USE_NLS=yes
2398fi
2399
2400  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
2401$as_echo "$USE_NLS" >&6; }
2402
2403
2404
2405
2406      GETTEXT_MACRO_VERSION=0.17
2407
2408
2409
2410
2411# Prepare PATH_SEPARATOR.
2412# The user is always right.
2413if test "${PATH_SEPARATOR+set}" != set; then
2414  echo "#! /bin/sh" >conf$$.sh
2415  echo  "exit 0"   >>conf$$.sh
2416  chmod +x conf$$.sh
2417  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2418    PATH_SEPARATOR=';'
2419  else
2420    PATH_SEPARATOR=:
2421  fi
2422  rm -f conf$$.sh
2423fi
2424
2425# Find out how to test for executable files. Don't use a zero-byte file,
2426# as systems may use methods other than mode bits to determine executability.
2427cat >conf$$.file <<_ASEOF
2428#! /bin/sh
2429exit 0
2430_ASEOF
2431chmod +x conf$$.file
2432if test -x conf$$.file >/dev/null 2>&1; then
2433  ac_executable_p="test -x"
2434else
2435  ac_executable_p="test -f"
2436fi
2437rm -f conf$$.file
2438
2439# Extract the first word of "msgfmt", so it can be a program name with args.
2440set dummy msgfmt; ac_word=$2
2441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2442$as_echo_n "checking for $ac_word... " >&6; }
2443if test "${ac_cv_path_MSGFMT+set}" = set; then
2444  $as_echo_n "(cached) " >&6
2445else
2446  case "$MSGFMT" in
2447  [\\/]* | ?:[\\/]*)
2448    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2449    ;;
2450  *)
2451    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2452    for ac_dir in $PATH; do
2453      IFS="$ac_save_IFS"
2454      test -z "$ac_dir" && ac_dir=.
2455      for ac_exec_ext in '' $ac_executable_extensions; do
2456        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2457          echo "$as_me: trying $ac_dir/$ac_word..." >&5
2458          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2459     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2460            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2461            break 2
2462          fi
2463        fi
2464      done
2465    done
2466    IFS="$ac_save_IFS"
2467  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2468    ;;
2469esac
2470fi
2471MSGFMT="$ac_cv_path_MSGFMT"
2472if test "$MSGFMT" != ":"; then
2473  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
2474$as_echo "$MSGFMT" >&6; }
2475else
2476  { $as_echo "$as_me:$LINENO: result: no" >&5
2477$as_echo "no" >&6; }
2478fi
2479
2480  # Extract the first word of "gmsgfmt", so it can be a program name with args.
2481set dummy gmsgfmt; ac_word=$2
2482{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2483$as_echo_n "checking for $ac_word... " >&6; }
2484if test "${ac_cv_path_GMSGFMT+set}" = set; then
2485  $as_echo_n "(cached) " >&6
2486else
2487  case $GMSGFMT in
2488  [\\/]* | ?:[\\/]*)
2489  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2490  ;;
2491  *)
2492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495  IFS=$as_save_IFS
2496  test -z "$as_dir" && as_dir=.
2497  for ac_exec_ext in '' $ac_executable_extensions; do
2498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2500    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501    break 2
2502  fi
2503done
2504done
2505IFS=$as_save_IFS
2506
2507  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2508  ;;
2509esac
2510fi
2511GMSGFMT=$ac_cv_path_GMSGFMT
2512if test -n "$GMSGFMT"; then
2513  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2514$as_echo "$GMSGFMT" >&6; }
2515else
2516  { $as_echo "$as_me:$LINENO: result: no" >&5
2517$as_echo "no" >&6; }
2518fi
2519
2520
2521
2522    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2523    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2524    *) MSGFMT_015=$MSGFMT ;;
2525  esac
2526
2527  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2528    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2529    *) GMSGFMT_015=$GMSGFMT ;;
2530  esac
2531
2532
2533
2534# Prepare PATH_SEPARATOR.
2535# The user is always right.
2536if test "${PATH_SEPARATOR+set}" != set; then
2537  echo "#! /bin/sh" >conf$$.sh
2538  echo  "exit 0"   >>conf$$.sh
2539  chmod +x conf$$.sh
2540  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2541    PATH_SEPARATOR=';'
2542  else
2543    PATH_SEPARATOR=:
2544  fi
2545  rm -f conf$$.sh
2546fi
2547
2548# Find out how to test for executable files. Don't use a zero-byte file,
2549# as systems may use methods other than mode bits to determine executability.
2550cat >conf$$.file <<_ASEOF
2551#! /bin/sh
2552exit 0
2553_ASEOF
2554chmod +x conf$$.file
2555if test -x conf$$.file >/dev/null 2>&1; then
2556  ac_executable_p="test -x"
2557else
2558  ac_executable_p="test -f"
2559fi
2560rm -f conf$$.file
2561
2562# Extract the first word of "xgettext", so it can be a program name with args.
2563set dummy xgettext; ac_word=$2
2564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
2566if test "${ac_cv_path_XGETTEXT+set}" = set; then
2567  $as_echo_n "(cached) " >&6
2568else
2569  case "$XGETTEXT" in
2570  [\\/]* | ?:[\\/]*)
2571    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2572    ;;
2573  *)
2574    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2575    for ac_dir in $PATH; do
2576      IFS="$ac_save_IFS"
2577      test -z "$ac_dir" && ac_dir=.
2578      for ac_exec_ext in '' $ac_executable_extensions; do
2579        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2580          echo "$as_me: trying $ac_dir/$ac_word..." >&5
2581          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2582     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2583            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2584            break 2
2585          fi
2586        fi
2587      done
2588    done
2589    IFS="$ac_save_IFS"
2590  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2591    ;;
2592esac
2593fi
2594XGETTEXT="$ac_cv_path_XGETTEXT"
2595if test "$XGETTEXT" != ":"; then
2596  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2597$as_echo "$XGETTEXT" >&6; }
2598else
2599  { $as_echo "$as_me:$LINENO: result: no" >&5
2600$as_echo "no" >&6; }
2601fi
2602
2603    rm -f messages.po
2604
2605    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2606    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2607    *) XGETTEXT_015=$XGETTEXT ;;
2608  esac
2609
2610
2611
2612# Prepare PATH_SEPARATOR.
2613# The user is always right.
2614if test "${PATH_SEPARATOR+set}" != set; then
2615  echo "#! /bin/sh" >conf$$.sh
2616  echo  "exit 0"   >>conf$$.sh
2617  chmod +x conf$$.sh
2618  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2619    PATH_SEPARATOR=';'
2620  else
2621    PATH_SEPARATOR=:
2622  fi
2623  rm -f conf$$.sh
2624fi
2625
2626# Find out how to test for executable files. Don't use a zero-byte file,
2627# as systems may use methods other than mode bits to determine executability.
2628cat >conf$$.file <<_ASEOF
2629#! /bin/sh
2630exit 0
2631_ASEOF
2632chmod +x conf$$.file
2633if test -x conf$$.file >/dev/null 2>&1; then
2634  ac_executable_p="test -x"
2635else
2636  ac_executable_p="test -f"
2637fi
2638rm -f conf$$.file
2639
2640# Extract the first word of "msgmerge", so it can be a program name with args.
2641set dummy msgmerge; ac_word=$2
2642{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if test "${ac_cv_path_MSGMERGE+set}" = set; then
2645  $as_echo_n "(cached) " >&6
2646else
2647  case "$MSGMERGE" in
2648  [\\/]* | ?:[\\/]*)
2649    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2650    ;;
2651  *)
2652    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2653    for ac_dir in $PATH; do
2654      IFS="$ac_save_IFS"
2655      test -z "$ac_dir" && ac_dir=.
2656      for ac_exec_ext in '' $ac_executable_extensions; do
2657        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2658          echo "$as_me: trying $ac_dir/$ac_word..." >&5
2659          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2660            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2661            break 2
2662          fi
2663        fi
2664      done
2665    done
2666    IFS="$ac_save_IFS"
2667  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2668    ;;
2669esac
2670fi
2671MSGMERGE="$ac_cv_path_MSGMERGE"
2672if test "$MSGMERGE" != ":"; then
2673  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2674$as_echo "$MSGMERGE" >&6; }
2675else
2676  { $as_echo "$as_me:$LINENO: result: no" >&5
2677$as_echo "no" >&6; }
2678fi
2679
2680
2681        test -n "$localedir" || localedir='${datadir}/locale'
2682
2683
2684    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
2685
2686
2687  ac_config_commands="$ac_config_commands po-directories"
2688
2689
2690
2691      if test "X$prefix" = "XNONE"; then
2692    acl_final_prefix="$ac_default_prefix"
2693  else
2694    acl_final_prefix="$prefix"
2695  fi
2696  if test "X$exec_prefix" = "XNONE"; then
2697    acl_final_exec_prefix='${prefix}'
2698  else
2699    acl_final_exec_prefix="$exec_prefix"
2700  fi
2701  acl_save_prefix="$prefix"
2702  prefix="$acl_final_prefix"
2703  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2704  prefix="$acl_save_prefix"
2705
2706DEPDIR="${am__leading_dot}deps"
2707
2708ac_config_commands="$ac_config_commands depfiles"
2709
2710
2711am_make=${MAKE-make}
2712cat > confinc << 'END'
2713am__doit:
2714	@echo done
2715.PHONY: am__doit
2716END
2717# If we don't find an include directive, just comment out the code.
2718{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2719$as_echo_n "checking for style of include used by $am_make... " >&6; }
2720am__include="#"
2721am__quote=
2722_am_result=none
2723# First try GNU make style include.
2724echo "include confinc" > confmf
2725# We grep out `Entering directory' and `Leaving directory'
2726# messages which can occur if `w' ends up in MAKEFLAGS.
2727# In particular we don't look at `^make:' because GNU make might
2728# be invoked under some other name (usually "gmake"), in which
2729# case it prints its new name instead of `make'.
2730if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2731   am__include=include
2732   am__quote=
2733   _am_result=GNU
2734fi
2735# Now try BSD make style include.
2736if test "$am__include" = "#"; then
2737   echo '.include "confinc"' > confmf
2738   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2739      am__include=.include
2740      am__quote="\""
2741      _am_result=BSD
2742   fi
2743fi
2744
2745
2746{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2747$as_echo "$_am_result" >&6; }
2748rm -f confinc confmf
2749
2750# Check whether --enable-dependency-tracking was given.
2751if test "${enable_dependency_tracking+set}" = set; then
2752  enableval=$enable_dependency_tracking;
2753fi
2754
2755if test "x$enable_dependency_tracking" != xno; then
2756  am_depcomp="$ac_aux_dir/depcomp"
2757  AMDEPBACKSLASH='\'
2758fi
2759 if test "x$enable_dependency_tracking" != xno; then
2760  AMDEP_TRUE=
2761  AMDEP_FALSE='#'
2762else
2763  AMDEP_TRUE='#'
2764  AMDEP_FALSE=
2765fi
2766
2767
2768ac_ext=c
2769ac_cpp='$CPP $CPPFLAGS'
2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772ac_compiler_gnu=$ac_cv_c_compiler_gnu
2773if test -n "$ac_tool_prefix"; then
2774  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2775set dummy ${ac_tool_prefix}gcc; ac_word=$2
2776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if test "${ac_cv_prog_CC+set}" = set; then
2779  $as_echo_n "(cached) " >&6
2780else
2781  if test -n "$CC"; then
2782  ac_cv_prog_CC="$CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787  IFS=$as_save_IFS
2788  test -z "$as_dir" && as_dir=.
2789  for ac_exec_ext in '' $ac_executable_extensions; do
2790  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2792    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801CC=$ac_cv_prog_CC
2802if test -n "$CC"; then
2803  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2804$as_echo "$CC" >&6; }
2805else
2806  { $as_echo "$as_me:$LINENO: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
2809
2810
2811fi
2812if test -z "$ac_cv_prog_CC"; then
2813  ac_ct_CC=$CC
2814  # Extract the first word of "gcc", so it can be a program name with args.
2815set dummy gcc; ac_word=$2
2816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2817$as_echo_n "checking for $ac_word... " >&6; }
2818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2819  $as_echo_n "(cached) " >&6
2820else
2821  if test -n "$ac_ct_CC"; then
2822  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829  for ac_exec_ext in '' $ac_executable_extensions; do
2830  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831    ac_cv_prog_ac_ct_CC="gcc"
2832    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842if test -n "$ac_ct_CC"; then
2843  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2844$as_echo "$ac_ct_CC" >&6; }
2845else
2846  { $as_echo "$as_me:$LINENO: result: no" >&5
2847$as_echo "no" >&6; }
2848fi
2849
2850  if test "x$ac_ct_CC" = x; then
2851    CC=""
2852  else
2853    case $cross_compiling:$ac_tool_warned in
2854yes:)
2855{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857ac_tool_warned=yes ;;
2858esac
2859    CC=$ac_ct_CC
2860  fi
2861else
2862  CC="$ac_cv_prog_CC"
2863fi
2864
2865if test -z "$CC"; then
2866          if test -n "$ac_tool_prefix"; then
2867    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2868set dummy ${ac_tool_prefix}cc; ac_word=$2
2869{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if test "${ac_cv_prog_CC+set}" = set; then
2872  $as_echo_n "(cached) " >&6
2873else
2874  if test -n "$CC"; then
2875  ac_cv_prog_CC="$CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880  IFS=$as_save_IFS
2881  test -z "$as_dir" && as_dir=.
2882  for ac_exec_ext in '' $ac_executable_extensions; do
2883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884    ac_cv_prog_CC="${ac_tool_prefix}cc"
2885    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886    break 2
2887  fi
2888done
2889done
2890IFS=$as_save_IFS
2891
2892fi
2893fi
2894CC=$ac_cv_prog_CC
2895if test -n "$CC"; then
2896  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2897$as_echo "$CC" >&6; }
2898else
2899  { $as_echo "$as_me:$LINENO: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
2902
2903
2904  fi
2905fi
2906if test -z "$CC"; then
2907  # Extract the first word of "cc", so it can be a program name with args.
2908set dummy cc; ac_word=$2
2909{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if test "${ac_cv_prog_CC+set}" = set; then
2912  $as_echo_n "(cached) " >&6
2913else
2914  if test -n "$CC"; then
2915  ac_cv_prog_CC="$CC" # Let the user override the test.
2916else
2917  ac_prog_rejected=no
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921  IFS=$as_save_IFS
2922  test -z "$as_dir" && as_dir=.
2923  for ac_exec_ext in '' $ac_executable_extensions; do
2924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926       ac_prog_rejected=yes
2927       continue
2928     fi
2929    ac_cv_prog_CC="cc"
2930    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934done
2935IFS=$as_save_IFS
2936
2937if test $ac_prog_rejected = yes; then
2938  # We found a bogon in the path, so make sure we never use it.
2939  set dummy $ac_cv_prog_CC
2940  shift
2941  if test $# != 0; then
2942    # We chose a different compiler from the bogus one.
2943    # However, it has the same basename, so the bogon will be chosen
2944    # first if we set CC to just the basename; use the full file name.
2945    shift
2946    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2947  fi
2948fi
2949fi
2950fi
2951CC=$ac_cv_prog_CC
2952if test -n "$CC"; then
2953  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2954$as_echo "$CC" >&6; }
2955else
2956  { $as_echo "$as_me:$LINENO: result: no" >&5
2957$as_echo "no" >&6; }
2958fi
2959
2960
2961fi
2962if test -z "$CC"; then
2963  if test -n "$ac_tool_prefix"; then
2964  for ac_prog in cl.exe
2965  do
2966    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_CC+set}" = set; then
2971  $as_echo_n "(cached) " >&6
2972else
2973  if test -n "$CC"; then
2974  ac_cv_prog_CC="$CC" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979  IFS=$as_save_IFS
2980  test -z "$as_dir" && as_dir=.
2981  for ac_exec_ext in '' $ac_executable_extensions; do
2982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2984    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985    break 2
2986  fi
2987done
2988done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993CC=$ac_cv_prog_CC
2994if test -n "$CC"; then
2995  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2996$as_echo "$CC" >&6; }
2997else
2998  { $as_echo "$as_me:$LINENO: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002
3003    test -n "$CC" && break
3004  done
3005fi
3006if test -z "$CC"; then
3007  ac_ct_CC=$CC
3008  for ac_prog in cl.exe
3009do
3010  # Extract the first word of "$ac_prog", so it can be a program name with args.
3011set dummy $ac_prog; ac_word=$2
3012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3015  $as_echo_n "(cached) " >&6
3016else
3017  if test -n "$ac_ct_CC"; then
3018  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023  IFS=$as_save_IFS
3024  test -z "$as_dir" && as_dir=.
3025  for ac_exec_ext in '' $ac_executable_extensions; do
3026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027    ac_cv_prog_ac_ct_CC="$ac_prog"
3028    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029    break 2
3030  fi
3031done
3032done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038if test -n "$ac_ct_CC"; then
3039  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3040$as_echo "$ac_ct_CC" >&6; }
3041else
3042  { $as_echo "$as_me:$LINENO: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046
3047  test -n "$ac_ct_CC" && break
3048done
3049
3050  if test "x$ac_ct_CC" = x; then
3051    CC=""
3052  else
3053    case $cross_compiling:$ac_tool_warned in
3054yes:)
3055{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3057ac_tool_warned=yes ;;
3058esac
3059    CC=$ac_ct_CC
3060  fi
3061fi
3062
3063fi
3064
3065
3066test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3068{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3069See \`config.log' for more details." >&5
3070$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3071See \`config.log' for more details." >&2;}
3072   { (exit 1); exit 1; }; }; }
3073
3074# Provide some information about the compiler.
3075$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3076set X $ac_compile
3077ac_compiler=$2
3078{ (ac_try="$ac_compiler --version >&5"
3079case "(($ac_try" in
3080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081  *) ac_try_echo=$ac_try;;
3082esac
3083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3084$as_echo "$ac_try_echo") >&5
3085  (eval "$ac_compiler --version >&5") 2>&5
3086  ac_status=$?
3087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); }
3089{ (ac_try="$ac_compiler -v >&5"
3090case "(($ac_try" in
3091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092  *) ac_try_echo=$ac_try;;
3093esac
3094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3095$as_echo "$ac_try_echo") >&5
3096  (eval "$ac_compiler -v >&5") 2>&5
3097  ac_status=$?
3098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); }
3100{ (ac_try="$ac_compiler -V >&5"
3101case "(($ac_try" in
3102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103  *) ac_try_echo=$ac_try;;
3104esac
3105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3106$as_echo "$ac_try_echo") >&5
3107  (eval "$ac_compiler -V >&5") 2>&5
3108  ac_status=$?
3109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); }
3111
3112cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h.  */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h.  */
3118
3119int
3120main ()
3121{
3122
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127ac_clean_files_save=$ac_clean_files
3128ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3129# Try to create an executable without -o first, disregard a.out.
3130# It will help us diagnose broken compilers, and finding out an intuition
3131# of exeext.
3132{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3133$as_echo_n "checking for C compiler default output file name... " >&6; }
3134ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3135
3136# The possible output files:
3137ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3138
3139ac_rmfiles=
3140for ac_file in $ac_files
3141do
3142  case $ac_file in
3143    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3145  esac
3146done
3147rm -f $ac_rmfiles
3148
3149if { (ac_try="$ac_link_default"
3150case "(($ac_try" in
3151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152  *) ac_try_echo=$ac_try;;
3153esac
3154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155$as_echo "$ac_try_echo") >&5
3156  (eval "$ac_link_default") 2>&5
3157  ac_status=$?
3158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159  (exit $ac_status); }; then
3160  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3161# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3162# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3163# so that the user can short-circuit this test for compilers unknown to
3164# Autoconf.
3165for ac_file in $ac_files ''
3166do
3167  test -f "$ac_file" || continue
3168  case $ac_file in
3169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3170	;;
3171    [ab].out )
3172	# We found the default executable, but exeext='' is most
3173	# certainly right.
3174	break;;
3175    *.* )
3176        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3177	then :; else
3178	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179	fi
3180	# We set ac_cv_exeext here because the later test for it is not
3181	# safe: cross compilers may not add the suffix if given an `-o'
3182	# argument, so we may need to know it at that point already.
3183	# Even if this section looks crufty: it has the advantage of
3184	# actually working.
3185	break;;
3186    * )
3187	break;;
3188  esac
3189done
3190test "$ac_cv_exeext" = no && ac_cv_exeext=
3191
3192else
3193  ac_file=''
3194fi
3195
3196{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3197$as_echo "$ac_file" >&6; }
3198if test -z "$ac_file"; then
3199  $as_echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3205See \`config.log' for more details." >&5
3206$as_echo "$as_me: error: C compiler cannot create executables
3207See \`config.log' for more details." >&2;}
3208   { (exit 77); exit 77; }; }; }
3209fi
3210
3211ac_exeext=$ac_cv_exeext
3212
3213# Check that the compiler produces executables we can run.  If not, either
3214# the compiler is broken, or we cross compile.
3215{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3216$as_echo_n "checking whether the C compiler works... " >&6; }
3217# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3218# If not cross compiling, check that we can run a simple program.
3219if test "$cross_compiling" != yes; then
3220  if { ac_try='./$ac_file'
3221  { (case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3226$as_echo "$ac_try_echo") >&5
3227  (eval "$ac_try") 2>&5
3228  ac_status=$?
3229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231    cross_compiling=no
3232  else
3233    if test "$cross_compiling" = maybe; then
3234	cross_compiling=yes
3235    else
3236	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3239If you meant to cross compile, use \`--host'.
3240See \`config.log' for more details." >&5
3241$as_echo "$as_me: error: cannot run C compiled programs.
3242If you meant to cross compile, use \`--host'.
3243See \`config.log' for more details." >&2;}
3244   { (exit 1); exit 1; }; }; }
3245    fi
3246  fi
3247fi
3248{ $as_echo "$as_me:$LINENO: result: yes" >&5
3249$as_echo "yes" >&6; }
3250
3251rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3252ac_clean_files=$ac_clean_files_save
3253# Check that the compiler produces executables we can run.  If not, either
3254# the compiler is broken, or we cross compile.
3255{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3256$as_echo_n "checking whether we are cross compiling... " >&6; }
3257{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3258$as_echo "$cross_compiling" >&6; }
3259
3260{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3261$as_echo_n "checking for suffix of executables... " >&6; }
3262if { (ac_try="$ac_link"
3263case "(($ac_try" in
3264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265  *) ac_try_echo=$ac_try;;
3266esac
3267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268$as_echo "$ac_try_echo") >&5
3269  (eval "$ac_link") 2>&5
3270  ac_status=$?
3271  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); }; then
3273  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3274# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3275# work properly (i.e., refer to `conftest.exe'), while it won't with
3276# `rm'.
3277for ac_file in conftest.exe conftest conftest.*; do
3278  test -f "$ac_file" || continue
3279  case $ac_file in
3280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282	  break;;
3283    * ) break;;
3284  esac
3285done
3286else
3287  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3290See \`config.log' for more details." >&5
3291$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3292See \`config.log' for more details." >&2;}
3293   { (exit 1); exit 1; }; }; }
3294fi
3295
3296rm -f conftest$ac_cv_exeext
3297{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3298$as_echo "$ac_cv_exeext" >&6; }
3299
3300rm -f conftest.$ac_ext
3301EXEEXT=$ac_cv_exeext
3302ac_exeext=$EXEEXT
3303{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3304$as_echo_n "checking for suffix of object files... " >&6; }
3305if test "${ac_cv_objext+set}" = set; then
3306  $as_echo_n "(cached) " >&6
3307else
3308  cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h.  */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h.  */
3314
3315int
3316main ()
3317{
3318
3319  ;
3320  return 0;
3321}
3322_ACEOF
3323rm -f conftest.o conftest.obj
3324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3330$as_echo "$ac_try_echo") >&5
3331  (eval "$ac_compile") 2>&5
3332  ac_status=$?
3333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); }; then
3335  for ac_file in conftest.o conftest.obj conftest.*; do
3336  test -f "$ac_file" || continue;
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3339    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3340       break;;
3341  esac
3342done
3343else
3344  $as_echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3350See \`config.log' for more details." >&5
3351$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3352See \`config.log' for more details." >&2;}
3353   { (exit 1); exit 1; }; }; }
3354fi
3355
3356rm -f conftest.$ac_cv_objext conftest.$ac_ext
3357fi
3358{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3359$as_echo "$ac_cv_objext" >&6; }
3360OBJEXT=$ac_cv_objext
3361ac_objext=$OBJEXT
3362{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3363$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3364if test "${ac_cv_c_compiler_gnu+set}" = set; then
3365  $as_echo_n "(cached) " >&6
3366else
3367  cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h.  */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h.  */
3373
3374int
3375main ()
3376{
3377#ifndef __GNUC__
3378       choke me
3379#endif
3380
3381  ;
3382  return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext
3386if { (ac_try="$ac_compile"
3387case "(($ac_try" in
3388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389  *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392$as_echo "$ac_try_echo") >&5
3393  (eval "$ac_compile") 2>conftest.er1
3394  ac_status=$?
3395  grep -v '^ *+' conftest.er1 >conftest.err
3396  rm -f conftest.er1
3397  cat conftest.err >&5
3398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); } && {
3400	 test -z "$ac_c_werror_flag" ||
3401	 test ! -s conftest.err
3402       } && test -s conftest.$ac_objext; then
3403  ac_compiler_gnu=yes
3404else
3405  $as_echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
3408	ac_compiler_gnu=no
3409fi
3410
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413
3414fi
3415{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3416$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3417if test $ac_compiler_gnu = yes; then
3418  GCC=yes
3419else
3420  GCC=
3421fi
3422ac_test_CFLAGS=${CFLAGS+set}
3423ac_save_CFLAGS=$CFLAGS
3424{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3425$as_echo_n "checking whether $CC accepts -g... " >&6; }
3426if test "${ac_cv_prog_cc_g+set}" = set; then
3427  $as_echo_n "(cached) " >&6
3428else
3429  ac_save_c_werror_flag=$ac_c_werror_flag
3430   ac_c_werror_flag=yes
3431   ac_cv_prog_cc_g=no
3432   CFLAGS="-g"
3433   cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h.  */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h.  */
3439
3440int
3441main ()
3442{
3443
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (ac_try="$ac_compile"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3455$as_echo "$ac_try_echo") >&5
3456  (eval "$ac_compile") 2>conftest.er1
3457  ac_status=$?
3458  grep -v '^ *+' conftest.er1 >conftest.err
3459  rm -f conftest.er1
3460  cat conftest.err >&5
3461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); } && {
3463	 test -z "$ac_c_werror_flag" ||
3464	 test ! -s conftest.err
3465       } && test -s conftest.$ac_objext; then
3466  ac_cv_prog_cc_g=yes
3467else
3468  $as_echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471	CFLAGS=""
3472      cat >conftest.$ac_ext <<_ACEOF
3473/* confdefs.h.  */
3474_ACEOF
3475cat confdefs.h >>conftest.$ac_ext
3476cat >>conftest.$ac_ext <<_ACEOF
3477/* end confdefs.h.  */
3478
3479int
3480main ()
3481{
3482
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (ac_try="$ac_compile"
3489case "(($ac_try" in
3490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491  *) ac_try_echo=$ac_try;;
3492esac
3493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494$as_echo "$ac_try_echo") >&5
3495  (eval "$ac_compile") 2>conftest.er1
3496  ac_status=$?
3497  grep -v '^ *+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } && {
3502	 test -z "$ac_c_werror_flag" ||
3503	 test ! -s conftest.err
3504       } && test -s conftest.$ac_objext; then
3505  :
3506else
3507  $as_echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510	ac_c_werror_flag=$ac_save_c_werror_flag
3511	 CFLAGS="-g"
3512	 cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h.  */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527rm -f conftest.$ac_objext
3528if { (ac_try="$ac_compile"
3529case "(($ac_try" in
3530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531  *) ac_try_echo=$ac_try;;
3532esac
3533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3534$as_echo "$ac_try_echo") >&5
3535  (eval "$ac_compile") 2>conftest.er1
3536  ac_status=$?
3537  grep -v '^ *+' conftest.er1 >conftest.err
3538  rm -f conftest.er1
3539  cat conftest.err >&5
3540  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); } && {
3542	 test -z "$ac_c_werror_flag" ||
3543	 test ! -s conftest.err
3544       } && test -s conftest.$ac_objext; then
3545  ac_cv_prog_cc_g=yes
3546else
3547  $as_echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550
3551fi
3552
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554fi
3555
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557fi
3558
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560   ac_c_werror_flag=$ac_save_c_werror_flag
3561fi
3562{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3563$as_echo "$ac_cv_prog_cc_g" >&6; }
3564if test "$ac_test_CFLAGS" = set; then
3565  CFLAGS=$ac_save_CFLAGS
3566elif test $ac_cv_prog_cc_g = yes; then
3567  if test "$GCC" = yes; then
3568    CFLAGS="-g -O2"
3569  else
3570    CFLAGS="-g"
3571  fi
3572else
3573  if test "$GCC" = yes; then
3574    CFLAGS="-O2"
3575  else
3576    CFLAGS=
3577  fi
3578fi
3579{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3580$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3581if test "${ac_cv_prog_cc_c89+set}" = set; then
3582  $as_echo_n "(cached) " >&6
3583else
3584  ac_cv_prog_cc_c89=no
3585ac_save_CC=$CC
3586cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592#include <stdarg.h>
3593#include <stdio.h>
3594#include <sys/types.h>
3595#include <sys/stat.h>
3596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3597struct buf { int x; };
3598FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599static char *e (p, i)
3600     char **p;
3601     int i;
3602{
3603  return p[i];
3604}
3605static char *f (char * (*g) (char **, int), char **p, ...)
3606{
3607  char *s;
3608  va_list v;
3609  va_start (v,p);
3610  s = g (p, va_arg (v,int));
3611  va_end (v);
3612  return s;
3613}
3614
3615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3616   function prototypes and stuff, but not '\xHH' hex character constants.
3617   These don't provoke an error unfortunately, instead are silently treated
3618   as 'x'.  The following induces an error, until -std is added to get
3619   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3620   array size at least.  It's necessary to write '\x00'==0 to get something
3621   that's true only with -std.  */
3622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623
3624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625   inside strings and character constants.  */
3626#define FOO(x) 'x'
3627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3628
3629int test (int i, double x);
3630struct s1 {int (*f) (int a);};
3631struct s2 {int (*f) (double a);};
3632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3633int argc;
3634char **argv;
3635int
3636main ()
3637{
3638return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3645do
3646  CC="$ac_save_CC $ac_arg"
3647  rm -f conftest.$ac_objext
3648if { (ac_try="$ac_compile"
3649case "(($ac_try" in
3650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651  *) ac_try_echo=$ac_try;;
3652esac
3653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3654$as_echo "$ac_try_echo") >&5
3655  (eval "$ac_compile") 2>conftest.er1
3656  ac_status=$?
3657  grep -v '^ *+' conftest.er1 >conftest.err
3658  rm -f conftest.er1
3659  cat conftest.err >&5
3660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); } && {
3662	 test -z "$ac_c_werror_flag" ||
3663	 test ! -s conftest.err
3664       } && test -s conftest.$ac_objext; then
3665  ac_cv_prog_cc_c89=$ac_arg
3666else
3667  $as_echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670
3671fi
3672
3673rm -f core conftest.err conftest.$ac_objext
3674  test "x$ac_cv_prog_cc_c89" != "xno" && break
3675done
3676rm -f conftest.$ac_ext
3677CC=$ac_save_CC
3678
3679fi
3680# AC_CACHE_VAL
3681case "x$ac_cv_prog_cc_c89" in
3682  x)
3683    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3684$as_echo "none needed" >&6; } ;;
3685  xno)
3686    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3687$as_echo "unsupported" >&6; } ;;
3688  *)
3689    CC="$CC $ac_cv_prog_cc_c89"
3690    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3691$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3692esac
3693
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700
3701depcc="$CC"   am_compiler_list=
3702
3703{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3704$as_echo_n "checking dependency style of $depcc... " >&6; }
3705if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3706  $as_echo_n "(cached) " >&6
3707else
3708  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709  # We make a subdir and do the tests there.  Otherwise we can end up
3710  # making bogus files that we don't know about and never remove.  For
3711  # instance it was reported that on HP-UX the gcc test will end up
3712  # making a dummy file named `D' -- because `-MD' means `put the output
3713  # in D'.
3714  mkdir conftest.dir
3715  # Copy depcomp to subdir because otherwise we won't find it if we're
3716  # using a relative directory.
3717  cp "$am_depcomp" conftest.dir
3718  cd conftest.dir
3719  # We will build objects and dependencies in a subdirectory because
3720  # it helps to detect inapplicable dependency modes.  For instance
3721  # both Tru64's cc and ICC support -MD to output dependencies as a
3722  # side effect of compilation, but ICC will put the dependencies in
3723  # the current directory while Tru64 will put them in the object
3724  # directory.
3725  mkdir sub
3726
3727  am_cv_CC_dependencies_compiler_type=none
3728  if test "$am_compiler_list" = ""; then
3729     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3730  fi
3731  for depmode in $am_compiler_list; do
3732    # Setup a source with many dependencies, because some compilers
3733    # like to wrap large dependency lists on column 80 (with \), and
3734    # we should not choose a depcomp mode which is confused by this.
3735    #
3736    # We need to recreate these files for each test, as the compiler may
3737    # overwrite some of them when testing with obscure command lines.
3738    # This happens at least with the AIX C compiler.
3739    : > sub/conftest.c
3740    for i in 1 2 3 4 5 6; do
3741      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3742      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3743      # Solaris 8's {/usr,}/bin/sh.
3744      touch sub/conftst$i.h
3745    done
3746    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3747
3748    case $depmode in
3749    nosideeffect)
3750      # after this tag, mechanisms are not by side-effect, so they'll
3751      # only be used when explicitly requested
3752      if test "x$enable_dependency_tracking" = xyes; then
3753	continue
3754      else
3755	break
3756      fi
3757      ;;
3758    none) break ;;
3759    esac
3760    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3761    # mode.  It turns out that the SunPro C++ compiler does not properly
3762    # handle `-M -o', and we need to detect this.
3763    if depmode=$depmode \
3764       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3765       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3766       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3767         >/dev/null 2>conftest.err &&
3768       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3769       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3770       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3771       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3772      # icc doesn't choke on unknown options, it will just issue warnings
3773      # or remarks (even with -Werror).  So we grep stderr for any message
3774      # that says an option was ignored or not supported.
3775      # When given -MP, icc 7.0 and 7.1 complain thusly:
3776      #   icc: Command line warning: ignoring option '-M'; no argument required
3777      # The diagnosis changed in icc 8.0:
3778      #   icc: Command line remark: option '-MP' not supported
3779      if (grep 'ignoring option' conftest.err ||
3780          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3781        am_cv_CC_dependencies_compiler_type=$depmode
3782        break
3783      fi
3784    fi
3785  done
3786
3787  cd ..
3788  rm -rf conftest.dir
3789else
3790  am_cv_CC_dependencies_compiler_type=none
3791fi
3792
3793fi
3794{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3795$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3796CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3797
3798 if
3799  test "x$enable_dependency_tracking" != xno \
3800  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3801  am__fastdepCC_TRUE=
3802  am__fastdepCC_FALSE='#'
3803else
3804  am__fastdepCC_TRUE='#'
3805  am__fastdepCC_FALSE=
3806fi
3807
3808
3809# Make sure we can run config.sub.
3810$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3811  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3812$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3813   { (exit 1); exit 1; }; }
3814
3815{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3816$as_echo_n "checking build system type... " >&6; }
3817if test "${ac_cv_build+set}" = set; then
3818  $as_echo_n "(cached) " >&6
3819else
3820  ac_build_alias=$build_alias
3821test "x$ac_build_alias" = x &&
3822  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3823test "x$ac_build_alias" = x &&
3824  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3825$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3826   { (exit 1); exit 1; }; }
3827ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3828  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3829$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3830   { (exit 1); exit 1; }; }
3831
3832fi
3833{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3834$as_echo "$ac_cv_build" >&6; }
3835case $ac_cv_build in
3836*-*-*) ;;
3837*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3838$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3839   { (exit 1); exit 1; }; };;
3840esac
3841build=$ac_cv_build
3842ac_save_IFS=$IFS; IFS='-'
3843set x $ac_cv_build
3844shift
3845build_cpu=$1
3846build_vendor=$2
3847shift; shift
3848# Remember, the first character of IFS is used to create $*,
3849# except with old shells:
3850build_os=$*
3851IFS=$ac_save_IFS
3852case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3853
3854
3855{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3856$as_echo_n "checking host system type... " >&6; }
3857if test "${ac_cv_host+set}" = set; then
3858  $as_echo_n "(cached) " >&6
3859else
3860  if test "x$host_alias" = x; then
3861  ac_cv_host=$ac_cv_build
3862else
3863  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3864    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3865$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3866   { (exit 1); exit 1; }; }
3867fi
3868
3869fi
3870{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3871$as_echo "$ac_cv_host" >&6; }
3872case $ac_cv_host in
3873*-*-*) ;;
3874*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3875$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3876   { (exit 1); exit 1; }; };;
3877esac
3878host=$ac_cv_host
3879ac_save_IFS=$IFS; IFS='-'
3880set x $ac_cv_host
3881shift
3882host_cpu=$1
3883host_vendor=$2
3884shift; shift
3885# Remember, the first character of IFS is used to create $*,
3886# except with old shells:
3887host_os=$*
3888IFS=$ac_save_IFS
3889case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3890
3891
3892
3893# Check whether --with-gnu-ld was given.
3894if test "${with_gnu_ld+set}" = set; then
3895  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3896else
3897  with_gnu_ld=no
3898fi
3899
3900# Prepare PATH_SEPARATOR.
3901# The user is always right.
3902if test "${PATH_SEPARATOR+set}" != set; then
3903  echo "#! /bin/sh" >conf$$.sh
3904  echo  "exit 0"   >>conf$$.sh
3905  chmod +x conf$$.sh
3906  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3907    PATH_SEPARATOR=';'
3908  else
3909    PATH_SEPARATOR=:
3910  fi
3911  rm -f conf$$.sh
3912fi
3913ac_prog=ld
3914if test "$GCC" = yes; then
3915  # Check if gcc -print-prog-name=ld gives a path.
3916  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3917$as_echo_n "checking for ld used by GCC... " >&6; }
3918  case $host in
3919  *-*-mingw*)
3920    # gcc leaves a trailing carriage return which upsets mingw
3921    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3922  *)
3923    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3924  esac
3925  case $ac_prog in
3926    # Accept absolute paths.
3927    [\\/]* | [A-Za-z]:[\\/]*)
3928      re_direlt='/[^/][^/]*/\.\./'
3929      # Canonicalize the path of ld
3930      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3931      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3932	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3933      done
3934      test -z "$LD" && LD="$ac_prog"
3935      ;;
3936  "")
3937    # If it fails, then pretend we aren't using GCC.
3938    ac_prog=ld
3939    ;;
3940  *)
3941    # If it is relative, then search for the first ld in PATH.
3942    with_gnu_ld=unknown
3943    ;;
3944  esac
3945elif test "$with_gnu_ld" = yes; then
3946  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3947$as_echo_n "checking for GNU ld... " >&6; }
3948else
3949  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3950$as_echo_n "checking for non-GNU ld... " >&6; }
3951fi
3952if test "${acl_cv_path_LD+set}" = set; then
3953  $as_echo_n "(cached) " >&6
3954else
3955  if test -z "$LD"; then
3956  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3957  for ac_dir in $PATH; do
3958    test -z "$ac_dir" && ac_dir=.
3959    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3960      acl_cv_path_LD="$ac_dir/$ac_prog"
3961      # Check to see if the program is GNU ld.  I'd rather use --version,
3962      # but apparently some GNU ld's only accept -v.
3963      # Break only if it was the GNU/non-GNU ld that we prefer.
3964      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3965      *GNU* | *'with BFD'*)
3966	test "$with_gnu_ld" != no && break ;;
3967      *)
3968	test "$with_gnu_ld" != yes && break ;;
3969      esac
3970    fi
3971  done
3972  IFS="$ac_save_ifs"
3973else
3974  acl_cv_path_LD="$LD" # Let the user override the test with a path.
3975fi
3976fi
3977
3978LD="$acl_cv_path_LD"
3979if test -n "$LD"; then
3980  { $as_echo "$as_me:$LINENO: result: $LD" >&5
3981$as_echo "$LD" >&6; }
3982else
3983  { $as_echo "$as_me:$LINENO: result: no" >&5
3984$as_echo "no" >&6; }
3985fi
3986test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3987$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3988   { (exit 1); exit 1; }; }
3989{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3990$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3991if test "${acl_cv_prog_gnu_ld+set}" = set; then
3992  $as_echo_n "(cached) " >&6
3993else
3994  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3995case `$LD -v 2>&1 </dev/null` in
3996*GNU* | *'with BFD'*)
3997  acl_cv_prog_gnu_ld=yes ;;
3998*)
3999  acl_cv_prog_gnu_ld=no ;;
4000esac
4001fi
4002{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4003$as_echo "$acl_cv_prog_gnu_ld" >&6; }
4004with_gnu_ld=$acl_cv_prog_gnu_ld
4005
4006
4007
4008
4009                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
4010$as_echo_n "checking for shared library run path origin... " >&6; }
4011if test "${acl_cv_rpath+set}" = set; then
4012  $as_echo_n "(cached) " >&6
4013else
4014
4015    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4016    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4017    . ./conftest.sh
4018    rm -f ./conftest.sh
4019    acl_cv_rpath=done
4020
4021fi
4022{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
4023$as_echo "$acl_cv_rpath" >&6; }
4024  wl="$acl_cv_wl"
4025  acl_libext="$acl_cv_libext"
4026  acl_shlibext="$acl_cv_shlibext"
4027  acl_libname_spec="$acl_cv_libname_spec"
4028  acl_library_names_spec="$acl_cv_library_names_spec"
4029  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4030  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4031  acl_hardcode_direct="$acl_cv_hardcode_direct"
4032  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4033    # Check whether --enable-rpath was given.
4034if test "${enable_rpath+set}" = set; then
4035  enableval=$enable_rpath; :
4036else
4037  enable_rpath=yes
4038fi
4039
4040
4041
4042                  acl_libdirstem=lib
4043  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4044  if test -n "$searchpath"; then
4045    acl_save_IFS="${IFS= 	}"; IFS=":"
4046    for searchdir in $searchpath; do
4047      if test -d "$searchdir"; then
4048        case "$searchdir" in
4049          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4050          *) searchdir=`cd "$searchdir" && pwd`
4051             case "$searchdir" in
4052               */lib64 ) acl_libdirstem=lib64 ;;
4053             esac ;;
4054        esac
4055      fi
4056    done
4057    IFS="$acl_save_IFS"
4058  fi
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068    use_additional=yes
4069
4070  acl_save_prefix="$prefix"
4071  prefix="$acl_final_prefix"
4072  acl_save_exec_prefix="$exec_prefix"
4073  exec_prefix="$acl_final_exec_prefix"
4074
4075    eval additional_includedir=\"$includedir\"
4076    eval additional_libdir=\"$libdir\"
4077
4078  exec_prefix="$acl_save_exec_prefix"
4079  prefix="$acl_save_prefix"
4080
4081
4082# Check whether --with-libiconv-prefix was given.
4083if test "${with_libiconv_prefix+set}" = set; then
4084  withval=$with_libiconv_prefix;
4085    if test "X$withval" = "Xno"; then
4086      use_additional=no
4087    else
4088      if test "X$withval" = "X"; then
4089
4090  acl_save_prefix="$prefix"
4091  prefix="$acl_final_prefix"
4092  acl_save_exec_prefix="$exec_prefix"
4093  exec_prefix="$acl_final_exec_prefix"
4094
4095          eval additional_includedir=\"$includedir\"
4096          eval additional_libdir=\"$libdir\"
4097
4098  exec_prefix="$acl_save_exec_prefix"
4099  prefix="$acl_save_prefix"
4100
4101      else
4102        additional_includedir="$withval/include"
4103        additional_libdir="$withval/$acl_libdirstem"
4104      fi
4105    fi
4106
4107fi
4108
4109      LIBICONV=
4110  LTLIBICONV=
4111  INCICONV=
4112  LIBICONV_PREFIX=
4113  rpathdirs=
4114  ltrpathdirs=
4115  names_already_handled=
4116  names_next_round='iconv '
4117  while test -n "$names_next_round"; do
4118    names_this_round="$names_next_round"
4119    names_next_round=
4120    for name in $names_this_round; do
4121      already_handled=
4122      for n in $names_already_handled; do
4123        if test "$n" = "$name"; then
4124          already_handled=yes
4125          break
4126        fi
4127      done
4128      if test -z "$already_handled"; then
4129        names_already_handled="$names_already_handled $name"
4130                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4131        eval value=\"\$HAVE_LIB$uppername\"
4132        if test -n "$value"; then
4133          if test "$value" = yes; then
4134            eval value=\"\$LIB$uppername\"
4135            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4136            eval value=\"\$LTLIB$uppername\"
4137            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4138          else
4139                                    :
4140          fi
4141        else
4142                              found_dir=
4143          found_la=
4144          found_so=
4145          found_a=
4146          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4147          if test -n "$acl_shlibext"; then
4148            shrext=".$acl_shlibext"             # typically: shrext=.so
4149          else
4150            shrext=
4151          fi
4152          if test $use_additional = yes; then
4153            dir="$additional_libdir"
4154                                    if test -n "$acl_shlibext"; then
4155              if test -f "$dir/$libname$shrext"; then
4156                found_dir="$dir"
4157                found_so="$dir/$libname$shrext"
4158              else
4159                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4160                  ver=`(cd "$dir" && \
4161                        for f in "$libname$shrext".*; do echo "$f"; done \
4162                        | sed -e "s,^$libname$shrext\\\\.,," \
4163                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4164                        | sed 1q ) 2>/dev/null`
4165                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4166                    found_dir="$dir"
4167                    found_so="$dir/$libname$shrext.$ver"
4168                  fi
4169                else
4170                  eval library_names=\"$acl_library_names_spec\"
4171                  for f in $library_names; do
4172                    if test -f "$dir/$f"; then
4173                      found_dir="$dir"
4174                      found_so="$dir/$f"
4175                      break
4176                    fi
4177                  done
4178                fi
4179              fi
4180            fi
4181                        if test "X$found_dir" = "X"; then
4182              if test -f "$dir/$libname.$acl_libext"; then
4183                found_dir="$dir"
4184                found_a="$dir/$libname.$acl_libext"
4185              fi
4186            fi
4187            if test "X$found_dir" != "X"; then
4188              if test -f "$dir/$libname.la"; then
4189                found_la="$dir/$libname.la"
4190              fi
4191            fi
4192          fi
4193          if test "X$found_dir" = "X"; then
4194            for x in $LDFLAGS $LTLIBICONV; do
4195
4196  acl_save_prefix="$prefix"
4197  prefix="$acl_final_prefix"
4198  acl_save_exec_prefix="$exec_prefix"
4199  exec_prefix="$acl_final_exec_prefix"
4200  eval x=\"$x\"
4201  exec_prefix="$acl_save_exec_prefix"
4202  prefix="$acl_save_prefix"
4203
4204              case "$x" in
4205                -L*)
4206                  dir=`echo "X$x" | sed -e 's/^X-L//'`
4207                                    if test -n "$acl_shlibext"; then
4208                    if test -f "$dir/$libname$shrext"; then
4209                      found_dir="$dir"
4210                      found_so="$dir/$libname$shrext"
4211                    else
4212                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4213                        ver=`(cd "$dir" && \
4214                              for f in "$libname$shrext".*; do echo "$f"; done \
4215                              | sed -e "s,^$libname$shrext\\\\.,," \
4216                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4217                              | sed 1q ) 2>/dev/null`
4218                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4219                          found_dir="$dir"
4220                          found_so="$dir/$libname$shrext.$ver"
4221                        fi
4222                      else
4223                        eval library_names=\"$acl_library_names_spec\"
4224                        for f in $library_names; do
4225                          if test -f "$dir/$f"; then
4226                            found_dir="$dir"
4227                            found_so="$dir/$f"
4228                            break
4229                          fi
4230                        done
4231                      fi
4232                    fi
4233                  fi
4234                                    if test "X$found_dir" = "X"; then
4235                    if test -f "$dir/$libname.$acl_libext"; then
4236                      found_dir="$dir"
4237                      found_a="$dir/$libname.$acl_libext"
4238                    fi
4239                  fi
4240                  if test "X$found_dir" != "X"; then
4241                    if test -f "$dir/$libname.la"; then
4242                      found_la="$dir/$libname.la"
4243                    fi
4244                  fi
4245                  ;;
4246              esac
4247              if test "X$found_dir" != "X"; then
4248                break
4249              fi
4250            done
4251          fi
4252          if test "X$found_dir" != "X"; then
4253                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4254            if test "X$found_so" != "X"; then
4255                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4256                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4257              else
4258                                                                                haveit=
4259                for x in $ltrpathdirs; do
4260                  if test "X$x" = "X$found_dir"; then
4261                    haveit=yes
4262                    break
4263                  fi
4264                done
4265                if test -z "$haveit"; then
4266                  ltrpathdirs="$ltrpathdirs $found_dir"
4267                fi
4268                                if test "$acl_hardcode_direct" = yes; then
4269                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4270                else
4271                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4272                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4273                                                            haveit=
4274                    for x in $rpathdirs; do
4275                      if test "X$x" = "X$found_dir"; then
4276                        haveit=yes
4277                        break
4278                      fi
4279                    done
4280                    if test -z "$haveit"; then
4281                      rpathdirs="$rpathdirs $found_dir"
4282                    fi
4283                  else
4284                                                                                haveit=
4285                    for x in $LDFLAGS $LIBICONV; do
4286
4287  acl_save_prefix="$prefix"
4288  prefix="$acl_final_prefix"
4289  acl_save_exec_prefix="$exec_prefix"
4290  exec_prefix="$acl_final_exec_prefix"
4291  eval x=\"$x\"
4292  exec_prefix="$acl_save_exec_prefix"
4293  prefix="$acl_save_prefix"
4294
4295                      if test "X$x" = "X-L$found_dir"; then
4296                        haveit=yes
4297                        break
4298                      fi
4299                    done
4300                    if test -z "$haveit"; then
4301                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4302                    fi
4303                    if test "$acl_hardcode_minus_L" != no; then
4304                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4305                    else
4306                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4307                    fi
4308                  fi
4309                fi
4310              fi
4311            else
4312              if test "X$found_a" != "X"; then
4313                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4314              else
4315                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4316              fi
4317            fi
4318                        additional_includedir=
4319            case "$found_dir" in
4320              */$acl_libdirstem | */$acl_libdirstem/)
4321                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4322                LIBICONV_PREFIX="$basedir"
4323                additional_includedir="$basedir/include"
4324                ;;
4325            esac
4326            if test "X$additional_includedir" != "X"; then
4327                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
4328                haveit=
4329                if test "X$additional_includedir" = "X/usr/local/include"; then
4330                  if test -n "$GCC"; then
4331                    case $host_os in
4332                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4333                    esac
4334                  fi
4335                fi
4336                if test -z "$haveit"; then
4337                  for x in $CPPFLAGS $INCICONV; do
4338
4339  acl_save_prefix="$prefix"
4340  prefix="$acl_final_prefix"
4341  acl_save_exec_prefix="$exec_prefix"
4342  exec_prefix="$acl_final_exec_prefix"
4343  eval x=\"$x\"
4344  exec_prefix="$acl_save_exec_prefix"
4345  prefix="$acl_save_prefix"
4346
4347                    if test "X$x" = "X-I$additional_includedir"; then
4348                      haveit=yes
4349                      break
4350                    fi
4351                  done
4352                  if test -z "$haveit"; then
4353                    if test -d "$additional_includedir"; then
4354                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4355                    fi
4356                  fi
4357                fi
4358              fi
4359            fi
4360                        if test -n "$found_la"; then
4361                                                        save_libdir="$libdir"
4362              case "$found_la" in
4363                */* | *\\*) . "$found_la" ;;
4364                *) . "./$found_la" ;;
4365              esac
4366              libdir="$save_libdir"
4367                            for dep in $dependency_libs; do
4368                case "$dep" in
4369                  -L*)
4370                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4371                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4372                      haveit=
4373                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4374                        if test -n "$GCC"; then
4375                          case $host_os in
4376                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4377                          esac
4378                        fi
4379                      fi
4380                      if test -z "$haveit"; then
4381                        haveit=
4382                        for x in $LDFLAGS $LIBICONV; do
4383
4384  acl_save_prefix="$prefix"
4385  prefix="$acl_final_prefix"
4386  acl_save_exec_prefix="$exec_prefix"
4387  exec_prefix="$acl_final_exec_prefix"
4388  eval x=\"$x\"
4389  exec_prefix="$acl_save_exec_prefix"
4390  prefix="$acl_save_prefix"
4391
4392                          if test "X$x" = "X-L$additional_libdir"; then
4393                            haveit=yes
4394                            break
4395                          fi
4396                        done
4397                        if test -z "$haveit"; then
4398                          if test -d "$additional_libdir"; then
4399                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4400                          fi
4401                        fi
4402                        haveit=
4403                        for x in $LDFLAGS $LTLIBICONV; do
4404
4405  acl_save_prefix="$prefix"
4406  prefix="$acl_final_prefix"
4407  acl_save_exec_prefix="$exec_prefix"
4408  exec_prefix="$acl_final_exec_prefix"
4409  eval x=\"$x\"
4410  exec_prefix="$acl_save_exec_prefix"
4411  prefix="$acl_save_prefix"
4412
4413                          if test "X$x" = "X-L$additional_libdir"; then
4414                            haveit=yes
4415                            break
4416                          fi
4417                        done
4418                        if test -z "$haveit"; then
4419                          if test -d "$additional_libdir"; then
4420                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4421                          fi
4422                        fi
4423                      fi
4424                    fi
4425                    ;;
4426                  -R*)
4427                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
4428                    if test "$enable_rpath" != no; then
4429                                                                  haveit=
4430                      for x in $rpathdirs; do
4431                        if test "X$x" = "X$dir"; then
4432                          haveit=yes
4433                          break
4434                        fi
4435                      done
4436                      if test -z "$haveit"; then
4437                        rpathdirs="$rpathdirs $dir"
4438                      fi
4439                                                                  haveit=
4440                      for x in $ltrpathdirs; do
4441                        if test "X$x" = "X$dir"; then
4442                          haveit=yes
4443                          break
4444                        fi
4445                      done
4446                      if test -z "$haveit"; then
4447                        ltrpathdirs="$ltrpathdirs $dir"
4448                      fi
4449                    fi
4450                    ;;
4451                  -l*)
4452                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4453                    ;;
4454                  *.la)
4455                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4456                    ;;
4457                  *)
4458                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4459                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4460                    ;;
4461                esac
4462              done
4463            fi
4464          else
4465                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4466            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4467          fi
4468        fi
4469      fi
4470    done
4471  done
4472  if test "X$rpathdirs" != "X"; then
4473    if test -n "$acl_hardcode_libdir_separator"; then
4474                        alldirs=
4475      for found_dir in $rpathdirs; do
4476        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4477      done
4478            acl_save_libdir="$libdir"
4479      libdir="$alldirs"
4480      eval flag=\"$acl_hardcode_libdir_flag_spec\"
4481      libdir="$acl_save_libdir"
4482      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4483    else
4484            for found_dir in $rpathdirs; do
4485        acl_save_libdir="$libdir"
4486        libdir="$found_dir"
4487        eval flag=\"$acl_hardcode_libdir_flag_spec\"
4488        libdir="$acl_save_libdir"
4489        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4490      done
4491    fi
4492  fi
4493  if test "X$ltrpathdirs" != "X"; then
4494            for found_dir in $ltrpathdirs; do
4495      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4496    done
4497  fi
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
4525$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
4526if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
4527  $as_echo_n "(cached) " >&6
4528else
4529  gt_save_LIBS="$LIBS"
4530     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4531     cat >conftest.$ac_ext <<_ACEOF
4532/* confdefs.h.  */
4533_ACEOF
4534cat confdefs.h >>conftest.$ac_ext
4535cat >>conftest.$ac_ext <<_ACEOF
4536/* end confdefs.h.  */
4537#include <CoreFoundation/CFPreferences.h>
4538int
4539main ()
4540{
4541CFPreferencesCopyAppValue(NULL, NULL)
4542  ;
4543  return 0;
4544}
4545_ACEOF
4546rm -f conftest.$ac_objext conftest$ac_exeext
4547if { (ac_try="$ac_link"
4548case "(($ac_try" in
4549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550  *) ac_try_echo=$ac_try;;
4551esac
4552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4553$as_echo "$ac_try_echo") >&5
4554  (eval "$ac_link") 2>conftest.er1
4555  ac_status=$?
4556  grep -v '^ *+' conftest.er1 >conftest.err
4557  rm -f conftest.er1
4558  cat conftest.err >&5
4559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560  (exit $ac_status); } && {
4561	 test -z "$ac_c_werror_flag" ||
4562	 test ! -s conftest.err
4563       } && test -s conftest$ac_exeext && {
4564	 test "$cross_compiling" = yes ||
4565	 $as_test_x conftest$ac_exeext
4566       }; then
4567  gt_cv_func_CFPreferencesCopyAppValue=yes
4568else
4569  $as_echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572	gt_cv_func_CFPreferencesCopyAppValue=no
4573fi
4574
4575rm -rf conftest.dSYM
4576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4577      conftest$ac_exeext conftest.$ac_ext
4578     LIBS="$gt_save_LIBS"
4579fi
4580{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
4581$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
4582  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
4583
4584cat >>confdefs.h <<\_ACEOF
4585#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
4586_ACEOF
4587
4588  fi
4589    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
4590$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
4591if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
4592  $as_echo_n "(cached) " >&6
4593else
4594  gt_save_LIBS="$LIBS"
4595     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
4596     cat >conftest.$ac_ext <<_ACEOF
4597/* confdefs.h.  */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h.  */
4602#include <CoreFoundation/CFLocale.h>
4603int
4604main ()
4605{
4606CFLocaleCopyCurrent();
4607  ;
4608  return 0;
4609}
4610_ACEOF
4611rm -f conftest.$ac_objext conftest$ac_exeext
4612if { (ac_try="$ac_link"
4613case "(($ac_try" in
4614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615  *) ac_try_echo=$ac_try;;
4616esac
4617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618$as_echo "$ac_try_echo") >&5
4619  (eval "$ac_link") 2>conftest.er1
4620  ac_status=$?
4621  grep -v '^ *+' conftest.er1 >conftest.err
4622  rm -f conftest.er1
4623  cat conftest.err >&5
4624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } && {
4626	 test -z "$ac_c_werror_flag" ||
4627	 test ! -s conftest.err
4628       } && test -s conftest$ac_exeext && {
4629	 test "$cross_compiling" = yes ||
4630	 $as_test_x conftest$ac_exeext
4631       }; then
4632  gt_cv_func_CFLocaleCopyCurrent=yes
4633else
4634  $as_echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637	gt_cv_func_CFLocaleCopyCurrent=no
4638fi
4639
4640rm -rf conftest.dSYM
4641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4642      conftest$ac_exeext conftest.$ac_ext
4643     LIBS="$gt_save_LIBS"
4644fi
4645{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
4646$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
4647  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4648
4649cat >>confdefs.h <<\_ACEOF
4650#define HAVE_CFLOCALECOPYCURRENT 1
4651_ACEOF
4652
4653  fi
4654  INTL_MACOSX_LIBS=
4655  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
4656    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
4657  fi
4658
4659
4660
4661
4662
4663
4664  LIBINTL=
4665  LTLIBINTL=
4666  POSUB=
4667
4668    case " $gt_needs " in
4669    *" need-formatstring-macros "*) gt_api_version=3 ;;
4670    *" need-ngettext "*) gt_api_version=2 ;;
4671    *) gt_api_version=1 ;;
4672  esac
4673  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
4674  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
4675
4676    if test "$USE_NLS" = "yes"; then
4677    gt_use_preinstalled_gnugettext=no
4678
4679
4680        if test $gt_api_version -ge 3; then
4681          gt_revision_test_code='
4682#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
4683#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
4684#endif
4685typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
4686'
4687        else
4688          gt_revision_test_code=
4689        fi
4690        if test $gt_api_version -ge 2; then
4691          gt_expression_test_code=' + * ngettext ("", "", 0)'
4692        else
4693          gt_expression_test_code=
4694        fi
4695
4696        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
4697$as_echo_n "checking for GNU gettext in libc... " >&6; }
4698if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
4699  $as_echo_n "(cached) " >&6
4700else
4701  cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h.  */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h.  */
4707#include <libintl.h>
4708$gt_revision_test_code
4709extern int _nl_msg_cat_cntr;
4710extern int *_nl_domain_bindings;
4711int
4712main ()
4713{
4714bindtextdomain ("", "");
4715return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
4716  ;
4717  return 0;
4718}
4719_ACEOF
4720rm -f conftest.$ac_objext conftest$ac_exeext
4721if { (ac_try="$ac_link"
4722case "(($ac_try" in
4723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724  *) ac_try_echo=$ac_try;;
4725esac
4726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4727$as_echo "$ac_try_echo") >&5
4728  (eval "$ac_link") 2>conftest.er1
4729  ac_status=$?
4730  grep -v '^ *+' conftest.er1 >conftest.err
4731  rm -f conftest.er1
4732  cat conftest.err >&5
4733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734  (exit $ac_status); } && {
4735	 test -z "$ac_c_werror_flag" ||
4736	 test ! -s conftest.err
4737       } && test -s conftest$ac_exeext && {
4738	 test "$cross_compiling" = yes ||
4739	 $as_test_x conftest$ac_exeext
4740       }; then
4741  eval "$gt_func_gnugettext_libc=yes"
4742else
4743  $as_echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746	eval "$gt_func_gnugettext_libc=no"
4747fi
4748
4749rm -rf conftest.dSYM
4750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4751      conftest$ac_exeext conftest.$ac_ext
4752fi
4753ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
4754		 $as_echo "$as_val"'`
4755	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4756$as_echo "$ac_res" >&6; }
4757
4758        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
4759
4760
4761
4762
4763
4764          am_save_CPPFLAGS="$CPPFLAGS"
4765
4766  for element in $INCICONV; do
4767    haveit=
4768    for x in $CPPFLAGS; do
4769
4770  acl_save_prefix="$prefix"
4771  prefix="$acl_final_prefix"
4772  acl_save_exec_prefix="$exec_prefix"
4773  exec_prefix="$acl_final_exec_prefix"
4774  eval x=\"$x\"
4775  exec_prefix="$acl_save_exec_prefix"
4776  prefix="$acl_save_prefix"
4777
4778      if test "X$x" = "X$element"; then
4779        haveit=yes
4780        break
4781      fi
4782    done
4783    if test -z "$haveit"; then
4784      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4785    fi
4786  done
4787
4788
4789  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
4790$as_echo_n "checking for iconv... " >&6; }
4791if test "${am_cv_func_iconv+set}" = set; then
4792  $as_echo_n "(cached) " >&6
4793else
4794
4795    am_cv_func_iconv="no, consider installing GNU libiconv"
4796    am_cv_lib_iconv=no
4797    cat >conftest.$ac_ext <<_ACEOF
4798/* confdefs.h.  */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h.  */
4803#include <stdlib.h>
4804#include <iconv.h>
4805int
4806main ()
4807{
4808iconv_t cd = iconv_open("","");
4809       iconv(cd,NULL,NULL,NULL,NULL);
4810       iconv_close(cd);
4811  ;
4812  return 0;
4813}
4814_ACEOF
4815rm -f conftest.$ac_objext conftest$ac_exeext
4816if { (ac_try="$ac_link"
4817case "(($ac_try" in
4818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819  *) ac_try_echo=$ac_try;;
4820esac
4821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822$as_echo "$ac_try_echo") >&5
4823  (eval "$ac_link") 2>conftest.er1
4824  ac_status=$?
4825  grep -v '^ *+' conftest.er1 >conftest.err
4826  rm -f conftest.er1
4827  cat conftest.err >&5
4828  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } && {
4830	 test -z "$ac_c_werror_flag" ||
4831	 test ! -s conftest.err
4832       } && test -s conftest$ac_exeext && {
4833	 test "$cross_compiling" = yes ||
4834	 $as_test_x conftest$ac_exeext
4835       }; then
4836  am_cv_func_iconv=yes
4837else
4838  $as_echo "$as_me: failed program was:" >&5
4839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841
4842fi
4843
4844rm -rf conftest.dSYM
4845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4846      conftest$ac_exeext conftest.$ac_ext
4847    if test "$am_cv_func_iconv" != yes; then
4848      am_save_LIBS="$LIBS"
4849      LIBS="$LIBS $LIBICONV"
4850      cat >conftest.$ac_ext <<_ACEOF
4851/* confdefs.h.  */
4852_ACEOF
4853cat confdefs.h >>conftest.$ac_ext
4854cat >>conftest.$ac_ext <<_ACEOF
4855/* end confdefs.h.  */
4856#include <stdlib.h>
4857#include <iconv.h>
4858int
4859main ()
4860{
4861iconv_t cd = iconv_open("","");
4862         iconv(cd,NULL,NULL,NULL,NULL);
4863         iconv_close(cd);
4864  ;
4865  return 0;
4866}
4867_ACEOF
4868rm -f conftest.$ac_objext conftest$ac_exeext
4869if { (ac_try="$ac_link"
4870case "(($ac_try" in
4871  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872  *) ac_try_echo=$ac_try;;
4873esac
4874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4875$as_echo "$ac_try_echo") >&5
4876  (eval "$ac_link") 2>conftest.er1
4877  ac_status=$?
4878  grep -v '^ *+' conftest.er1 >conftest.err
4879  rm -f conftest.er1
4880  cat conftest.err >&5
4881  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882  (exit $ac_status); } && {
4883	 test -z "$ac_c_werror_flag" ||
4884	 test ! -s conftest.err
4885       } && test -s conftest$ac_exeext && {
4886	 test "$cross_compiling" = yes ||
4887	 $as_test_x conftest$ac_exeext
4888       }; then
4889  am_cv_lib_iconv=yes
4890        am_cv_func_iconv=yes
4891else
4892  $as_echo "$as_me: failed program was:" >&5
4893sed 's/^/| /' conftest.$ac_ext >&5
4894
4895
4896fi
4897
4898rm -rf conftest.dSYM
4899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4900      conftest$ac_exeext conftest.$ac_ext
4901      LIBS="$am_save_LIBS"
4902    fi
4903
4904fi
4905{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
4906$as_echo "$am_cv_func_iconv" >&6; }
4907  if test "$am_cv_func_iconv" = yes; then
4908    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
4909$as_echo_n "checking for working iconv... " >&6; }
4910if test "${am_cv_func_iconv_works+set}" = set; then
4911  $as_echo_n "(cached) " >&6
4912else
4913
4914            am_save_LIBS="$LIBS"
4915      if test $am_cv_lib_iconv = yes; then
4916        LIBS="$LIBS $LIBICONV"
4917      fi
4918      if test "$cross_compiling" = yes; then
4919  case "$host_os" in
4920           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4921           *)            am_cv_func_iconv_works="guessing yes" ;;
4922         esac
4923else
4924  cat >conftest.$ac_ext <<_ACEOF
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930
4931#include <iconv.h>
4932#include <string.h>
4933int main ()
4934{
4935  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4936     returns.  */
4937  {
4938    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4939    if (cd_utf8_to_88591 != (iconv_t)(-1))
4940      {
4941        static const char input[] = "\342\202\254"; /* EURO SIGN */
4942        char buf[10];
4943        const char *inptr = input;
4944        size_t inbytesleft = strlen (input);
4945        char *outptr = buf;
4946        size_t outbytesleft = sizeof (buf);
4947        size_t res = iconv (cd_utf8_to_88591,
4948                            (char **) &inptr, &inbytesleft,
4949                            &outptr, &outbytesleft);
4950        if (res == 0)
4951          return 1;
4952      }
4953  }
4954#if 0 /* This bug could be worked around by the caller.  */
4955  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
4956  {
4957    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4958    if (cd_88591_to_utf8 != (iconv_t)(-1))
4959      {
4960        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4961        char buf[50];
4962        const char *inptr = input;
4963        size_t inbytesleft = strlen (input);
4964        char *outptr = buf;
4965        size_t outbytesleft = sizeof (buf);
4966        size_t res = iconv (cd_88591_to_utf8,
4967                            (char **) &inptr, &inbytesleft,
4968                            &outptr, &outbytesleft);
4969        if ((int)res > 0)
4970          return 1;
4971      }
4972  }
4973#endif
4974  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4975     provided.  */
4976  if (/* Try standardized names.  */
4977      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4978      /* Try IRIX, OSF/1 names.  */
4979      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4980      /* Try AIX names.  */
4981      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4982      /* Try HP-UX names.  */
4983      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4984    return 1;
4985  return 0;
4986}
4987_ACEOF
4988rm -f conftest$ac_exeext
4989if { (ac_try="$ac_link"
4990case "(($ac_try" in
4991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992  *) ac_try_echo=$ac_try;;
4993esac
4994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4995$as_echo "$ac_try_echo") >&5
4996  (eval "$ac_link") 2>&5
4997  ac_status=$?
4998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5000  { (case "(($ac_try" in
5001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002  *) ac_try_echo=$ac_try;;
5003esac
5004eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5005$as_echo "$ac_try_echo") >&5
5006  (eval "$ac_try") 2>&5
5007  ac_status=$?
5008  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); }; }; then
5010  am_cv_func_iconv_works=yes
5011else
5012  $as_echo "$as_me: program exited with status $ac_status" >&5
5013$as_echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016( exit $ac_status )
5017am_cv_func_iconv_works=no
5018fi
5019rm -rf conftest.dSYM
5020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5021fi
5022
5023
5024      LIBS="$am_save_LIBS"
5025
5026fi
5027{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
5028$as_echo "$am_cv_func_iconv_works" >&6; }
5029    case "$am_cv_func_iconv_works" in
5030      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5031      *)   am_func_iconv=yes ;;
5032    esac
5033  else
5034    am_func_iconv=no am_cv_lib_iconv=no
5035  fi
5036  if test "$am_func_iconv" = yes; then
5037
5038cat >>confdefs.h <<\_ACEOF
5039#define HAVE_ICONV 1
5040_ACEOF
5041
5042  fi
5043  if test "$am_cv_lib_iconv" = yes; then
5044    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
5045$as_echo_n "checking how to link with libiconv... " >&6; }
5046    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
5047$as_echo "$LIBICONV" >&6; }
5048  else
5049            CPPFLAGS="$am_save_CPPFLAGS"
5050    LIBICONV=
5051    LTLIBICONV=
5052  fi
5053
5054
5055
5056
5057
5058
5059
5060
5061    use_additional=yes
5062
5063  acl_save_prefix="$prefix"
5064  prefix="$acl_final_prefix"
5065  acl_save_exec_prefix="$exec_prefix"
5066  exec_prefix="$acl_final_exec_prefix"
5067
5068    eval additional_includedir=\"$includedir\"
5069    eval additional_libdir=\"$libdir\"
5070
5071  exec_prefix="$acl_save_exec_prefix"
5072  prefix="$acl_save_prefix"
5073
5074
5075# Check whether --with-libintl-prefix was given.
5076if test "${with_libintl_prefix+set}" = set; then
5077  withval=$with_libintl_prefix;
5078    if test "X$withval" = "Xno"; then
5079      use_additional=no
5080    else
5081      if test "X$withval" = "X"; then
5082
5083  acl_save_prefix="$prefix"
5084  prefix="$acl_final_prefix"
5085  acl_save_exec_prefix="$exec_prefix"
5086  exec_prefix="$acl_final_exec_prefix"
5087
5088          eval additional_includedir=\"$includedir\"
5089          eval additional_libdir=\"$libdir\"
5090
5091  exec_prefix="$acl_save_exec_prefix"
5092  prefix="$acl_save_prefix"
5093
5094      else
5095        additional_includedir="$withval/include"
5096        additional_libdir="$withval/$acl_libdirstem"
5097      fi
5098    fi
5099
5100fi
5101
5102      LIBINTL=
5103  LTLIBINTL=
5104  INCINTL=
5105  LIBINTL_PREFIX=
5106  rpathdirs=
5107  ltrpathdirs=
5108  names_already_handled=
5109  names_next_round='intl '
5110  while test -n "$names_next_round"; do
5111    names_this_round="$names_next_round"
5112    names_next_round=
5113    for name in $names_this_round; do
5114      already_handled=
5115      for n in $names_already_handled; do
5116        if test "$n" = "$name"; then
5117          already_handled=yes
5118          break
5119        fi
5120      done
5121      if test -z "$already_handled"; then
5122        names_already_handled="$names_already_handled $name"
5123                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5124        eval value=\"\$HAVE_LIB$uppername\"
5125        if test -n "$value"; then
5126          if test "$value" = yes; then
5127            eval value=\"\$LIB$uppername\"
5128            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5129            eval value=\"\$LTLIB$uppername\"
5130            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5131          else
5132                                    :
5133          fi
5134        else
5135                              found_dir=
5136          found_la=
5137          found_so=
5138          found_a=
5139          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5140          if test -n "$acl_shlibext"; then
5141            shrext=".$acl_shlibext"             # typically: shrext=.so
5142          else
5143            shrext=
5144          fi
5145          if test $use_additional = yes; then
5146            dir="$additional_libdir"
5147                                    if test -n "$acl_shlibext"; then
5148              if test -f "$dir/$libname$shrext"; then
5149                found_dir="$dir"
5150                found_so="$dir/$libname$shrext"
5151              else
5152                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5153                  ver=`(cd "$dir" && \
5154                        for f in "$libname$shrext".*; do echo "$f"; done \
5155                        | sed -e "s,^$libname$shrext\\\\.,," \
5156                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5157                        | sed 1q ) 2>/dev/null`
5158                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5159                    found_dir="$dir"
5160                    found_so="$dir/$libname$shrext.$ver"
5161                  fi
5162                else
5163                  eval library_names=\"$acl_library_names_spec\"
5164                  for f in $library_names; do
5165                    if test -f "$dir/$f"; then
5166                      found_dir="$dir"
5167                      found_so="$dir/$f"
5168                      break
5169                    fi
5170                  done
5171                fi
5172              fi
5173            fi
5174                        if test "X$found_dir" = "X"; then
5175              if test -f "$dir/$libname.$acl_libext"; then
5176                found_dir="$dir"
5177                found_a="$dir/$libname.$acl_libext"
5178              fi
5179            fi
5180            if test "X$found_dir" != "X"; then
5181              if test -f "$dir/$libname.la"; then
5182                found_la="$dir/$libname.la"
5183              fi
5184            fi
5185          fi
5186          if test "X$found_dir" = "X"; then
5187            for x in $LDFLAGS $LTLIBINTL; do
5188
5189  acl_save_prefix="$prefix"
5190  prefix="$acl_final_prefix"
5191  acl_save_exec_prefix="$exec_prefix"
5192  exec_prefix="$acl_final_exec_prefix"
5193  eval x=\"$x\"
5194  exec_prefix="$acl_save_exec_prefix"
5195  prefix="$acl_save_prefix"
5196
5197              case "$x" in
5198                -L*)
5199                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5200                                    if test -n "$acl_shlibext"; then
5201                    if test -f "$dir/$libname$shrext"; then
5202                      found_dir="$dir"
5203                      found_so="$dir/$libname$shrext"
5204                    else
5205                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5206                        ver=`(cd "$dir" && \
5207                              for f in "$libname$shrext".*; do echo "$f"; done \
5208                              | sed -e "s,^$libname$shrext\\\\.,," \
5209                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5210                              | sed 1q ) 2>/dev/null`
5211                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5212                          found_dir="$dir"
5213                          found_so="$dir/$libname$shrext.$ver"
5214                        fi
5215                      else
5216                        eval library_names=\"$acl_library_names_spec\"
5217                        for f in $library_names; do
5218                          if test -f "$dir/$f"; then
5219                            found_dir="$dir"
5220                            found_so="$dir/$f"
5221                            break
5222                          fi
5223                        done
5224                      fi
5225                    fi
5226                  fi
5227                                    if test "X$found_dir" = "X"; then
5228                    if test -f "$dir/$libname.$acl_libext"; then
5229                      found_dir="$dir"
5230                      found_a="$dir/$libname.$acl_libext"
5231                    fi
5232                  fi
5233                  if test "X$found_dir" != "X"; then
5234                    if test -f "$dir/$libname.la"; then
5235                      found_la="$dir/$libname.la"
5236                    fi
5237                  fi
5238                  ;;
5239              esac
5240              if test "X$found_dir" != "X"; then
5241                break
5242              fi
5243            done
5244          fi
5245          if test "X$found_dir" != "X"; then
5246                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5247            if test "X$found_so" != "X"; then
5248                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5249                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5250              else
5251                                                                                haveit=
5252                for x in $ltrpathdirs; do
5253                  if test "X$x" = "X$found_dir"; then
5254                    haveit=yes
5255                    break
5256                  fi
5257                done
5258                if test -z "$haveit"; then
5259                  ltrpathdirs="$ltrpathdirs $found_dir"
5260                fi
5261                                if test "$acl_hardcode_direct" = yes; then
5262                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5263                else
5264                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5265                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5266                                                            haveit=
5267                    for x in $rpathdirs; do
5268                      if test "X$x" = "X$found_dir"; then
5269                        haveit=yes
5270                        break
5271                      fi
5272                    done
5273                    if test -z "$haveit"; then
5274                      rpathdirs="$rpathdirs $found_dir"
5275                    fi
5276                  else
5277                                                                                haveit=
5278                    for x in $LDFLAGS $LIBINTL; do
5279
5280  acl_save_prefix="$prefix"
5281  prefix="$acl_final_prefix"
5282  acl_save_exec_prefix="$exec_prefix"
5283  exec_prefix="$acl_final_exec_prefix"
5284  eval x=\"$x\"
5285  exec_prefix="$acl_save_exec_prefix"
5286  prefix="$acl_save_prefix"
5287
5288                      if test "X$x" = "X-L$found_dir"; then
5289                        haveit=yes
5290                        break
5291                      fi
5292                    done
5293                    if test -z "$haveit"; then
5294                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5295                    fi
5296                    if test "$acl_hardcode_minus_L" != no; then
5297                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5298                    else
5299                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5300                    fi
5301                  fi
5302                fi
5303              fi
5304            else
5305              if test "X$found_a" != "X"; then
5306                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5307              else
5308                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5309              fi
5310            fi
5311                        additional_includedir=
5312            case "$found_dir" in
5313              */$acl_libdirstem | */$acl_libdirstem/)
5314                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5315                LIBINTL_PREFIX="$basedir"
5316                additional_includedir="$basedir/include"
5317                ;;
5318            esac
5319            if test "X$additional_includedir" != "X"; then
5320                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5321                haveit=
5322                if test "X$additional_includedir" = "X/usr/local/include"; then
5323                  if test -n "$GCC"; then
5324                    case $host_os in
5325                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5326                    esac
5327                  fi
5328                fi
5329                if test -z "$haveit"; then
5330                  for x in $CPPFLAGS $INCINTL; do
5331
5332  acl_save_prefix="$prefix"
5333  prefix="$acl_final_prefix"
5334  acl_save_exec_prefix="$exec_prefix"
5335  exec_prefix="$acl_final_exec_prefix"
5336  eval x=\"$x\"
5337  exec_prefix="$acl_save_exec_prefix"
5338  prefix="$acl_save_prefix"
5339
5340                    if test "X$x" = "X-I$additional_includedir"; then
5341                      haveit=yes
5342                      break
5343                    fi
5344                  done
5345                  if test -z "$haveit"; then
5346                    if test -d "$additional_includedir"; then
5347                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5348                    fi
5349                  fi
5350                fi
5351              fi
5352            fi
5353                        if test -n "$found_la"; then
5354                                                        save_libdir="$libdir"
5355              case "$found_la" in
5356                */* | *\\*) . "$found_la" ;;
5357                *) . "./$found_la" ;;
5358              esac
5359              libdir="$save_libdir"
5360                            for dep in $dependency_libs; do
5361                case "$dep" in
5362                  -L*)
5363                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5364                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5365                      haveit=
5366                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5367                        if test -n "$GCC"; then
5368                          case $host_os in
5369                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5370                          esac
5371                        fi
5372                      fi
5373                      if test -z "$haveit"; then
5374                        haveit=
5375                        for x in $LDFLAGS $LIBINTL; do
5376
5377  acl_save_prefix="$prefix"
5378  prefix="$acl_final_prefix"
5379  acl_save_exec_prefix="$exec_prefix"
5380  exec_prefix="$acl_final_exec_prefix"
5381  eval x=\"$x\"
5382  exec_prefix="$acl_save_exec_prefix"
5383  prefix="$acl_save_prefix"
5384
5385                          if test "X$x" = "X-L$additional_libdir"; then
5386                            haveit=yes
5387                            break
5388                          fi
5389                        done
5390                        if test -z "$haveit"; then
5391                          if test -d "$additional_libdir"; then
5392                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5393                          fi
5394                        fi
5395                        haveit=
5396                        for x in $LDFLAGS $LTLIBINTL; do
5397
5398  acl_save_prefix="$prefix"
5399  prefix="$acl_final_prefix"
5400  acl_save_exec_prefix="$exec_prefix"
5401  exec_prefix="$acl_final_exec_prefix"
5402  eval x=\"$x\"
5403  exec_prefix="$acl_save_exec_prefix"
5404  prefix="$acl_save_prefix"
5405
5406                          if test "X$x" = "X-L$additional_libdir"; then
5407                            haveit=yes
5408                            break
5409                          fi
5410                        done
5411                        if test -z "$haveit"; then
5412                          if test -d "$additional_libdir"; then
5413                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5414                          fi
5415                        fi
5416                      fi
5417                    fi
5418                    ;;
5419                  -R*)
5420                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5421                    if test "$enable_rpath" != no; then
5422                                                                  haveit=
5423                      for x in $rpathdirs; do
5424                        if test "X$x" = "X$dir"; then
5425                          haveit=yes
5426                          break
5427                        fi
5428                      done
5429                      if test -z "$haveit"; then
5430                        rpathdirs="$rpathdirs $dir"
5431                      fi
5432                                                                  haveit=
5433                      for x in $ltrpathdirs; do
5434                        if test "X$x" = "X$dir"; then
5435                          haveit=yes
5436                          break
5437                        fi
5438                      done
5439                      if test -z "$haveit"; then
5440                        ltrpathdirs="$ltrpathdirs $dir"
5441                      fi
5442                    fi
5443                    ;;
5444                  -l*)
5445                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5446                    ;;
5447                  *.la)
5448                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5449                    ;;
5450                  *)
5451                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5452                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5453                    ;;
5454                esac
5455              done
5456            fi
5457          else
5458                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5459            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5460          fi
5461        fi
5462      fi
5463    done
5464  done
5465  if test "X$rpathdirs" != "X"; then
5466    if test -n "$acl_hardcode_libdir_separator"; then
5467                        alldirs=
5468      for found_dir in $rpathdirs; do
5469        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5470      done
5471            acl_save_libdir="$libdir"
5472      libdir="$alldirs"
5473      eval flag=\"$acl_hardcode_libdir_flag_spec\"
5474      libdir="$acl_save_libdir"
5475      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5476    else
5477            for found_dir in $rpathdirs; do
5478        acl_save_libdir="$libdir"
5479        libdir="$found_dir"
5480        eval flag=\"$acl_hardcode_libdir_flag_spec\"
5481        libdir="$acl_save_libdir"
5482        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5483      done
5484    fi
5485  fi
5486  if test "X$ltrpathdirs" != "X"; then
5487            for found_dir in $ltrpathdirs; do
5488      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5489    done
5490  fi
5491
5492          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
5493$as_echo_n "checking for GNU gettext in libintl... " >&6; }
5494if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
5495  $as_echo_n "(cached) " >&6
5496else
5497  gt_save_CPPFLAGS="$CPPFLAGS"
5498            CPPFLAGS="$CPPFLAGS $INCINTL"
5499            gt_save_LIBS="$LIBS"
5500            LIBS="$LIBS $LIBINTL"
5501                        cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h.  */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h.  */
5507#include <libintl.h>
5508$gt_revision_test_code
5509extern int _nl_msg_cat_cntr;
5510extern
5511#ifdef __cplusplus
5512"C"
5513#endif
5514const char *_nl_expand_alias (const char *);
5515int
5516main ()
5517{
5518bindtextdomain ("", "");
5519return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5520  ;
5521  return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext conftest$ac_exeext
5525if { (ac_try="$ac_link"
5526case "(($ac_try" in
5527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528  *) ac_try_echo=$ac_try;;
5529esac
5530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5531$as_echo "$ac_try_echo") >&5
5532  (eval "$ac_link") 2>conftest.er1
5533  ac_status=$?
5534  grep -v '^ *+' conftest.er1 >conftest.err
5535  rm -f conftest.er1
5536  cat conftest.err >&5
5537  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); } && {
5539	 test -z "$ac_c_werror_flag" ||
5540	 test ! -s conftest.err
5541       } && test -s conftest$ac_exeext && {
5542	 test "$cross_compiling" = yes ||
5543	 $as_test_x conftest$ac_exeext
5544       }; then
5545  eval "$gt_func_gnugettext_libintl=yes"
5546else
5547  $as_echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550	eval "$gt_func_gnugettext_libintl=no"
5551fi
5552
5553rm -rf conftest.dSYM
5554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5555      conftest$ac_exeext conftest.$ac_ext
5556                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
5557              LIBS="$LIBS $LIBICONV"
5558              cat >conftest.$ac_ext <<_ACEOF
5559/* confdefs.h.  */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h.  */
5564#include <libintl.h>
5565$gt_revision_test_code
5566extern int _nl_msg_cat_cntr;
5567extern
5568#ifdef __cplusplus
5569"C"
5570#endif
5571const char *_nl_expand_alias (const char *);
5572int
5573main ()
5574{
5575bindtextdomain ("", "");
5576return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5577  ;
5578  return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext conftest$ac_exeext
5582if { (ac_try="$ac_link"
5583case "(($ac_try" in
5584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585  *) ac_try_echo=$ac_try;;
5586esac
5587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5588$as_echo "$ac_try_echo") >&5
5589  (eval "$ac_link") 2>conftest.er1
5590  ac_status=$?
5591  grep -v '^ *+' conftest.er1 >conftest.err
5592  rm -f conftest.er1
5593  cat conftest.err >&5
5594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595  (exit $ac_status); } && {
5596	 test -z "$ac_c_werror_flag" ||
5597	 test ! -s conftest.err
5598       } && test -s conftest$ac_exeext && {
5599	 test "$cross_compiling" = yes ||
5600	 $as_test_x conftest$ac_exeext
5601       }; then
5602  LIBINTL="$LIBINTL $LIBICONV"
5603                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5604                eval "$gt_func_gnugettext_libintl=yes"
5605
5606else
5607  $as_echo "$as_me: failed program was:" >&5
5608sed 's/^/| /' conftest.$ac_ext >&5
5609
5610
5611fi
5612
5613rm -rf conftest.dSYM
5614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5615      conftest$ac_exeext conftest.$ac_ext
5616            fi
5617            CPPFLAGS="$gt_save_CPPFLAGS"
5618            LIBS="$gt_save_LIBS"
5619fi
5620ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
5621		 $as_echo "$as_val"'`
5622	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5623$as_echo "$ac_res" >&6; }
5624        fi
5625
5626                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
5627           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
5628                && test "$PACKAGE" != gettext-runtime \
5629                && test "$PACKAGE" != gettext-tools; }; then
5630          gt_use_preinstalled_gnugettext=yes
5631        else
5632                    LIBINTL=
5633          LTLIBINTL=
5634          INCINTL=
5635        fi
5636
5637
5638
5639    if test -n "$INTL_MACOSX_LIBS"; then
5640      if test "$gt_use_preinstalled_gnugettext" = "yes" \
5641         || test "$nls_cv_use_gnu_gettext" = "yes"; then
5642                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5643        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5644      fi
5645    fi
5646
5647    if test "$gt_use_preinstalled_gnugettext" = "yes" \
5648       || test "$nls_cv_use_gnu_gettext" = "yes"; then
5649
5650cat >>confdefs.h <<\_ACEOF
5651#define ENABLE_NLS 1
5652_ACEOF
5653
5654    else
5655      USE_NLS=no
5656    fi
5657  fi
5658
5659  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
5660$as_echo_n "checking whether to use NLS... " >&6; }
5661  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5662$as_echo "$USE_NLS" >&6; }
5663  if test "$USE_NLS" = "yes"; then
5664    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
5665$as_echo_n "checking where the gettext function comes from... " >&6; }
5666    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5667      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5668        gt_source="external libintl"
5669      else
5670        gt_source="libc"
5671      fi
5672    else
5673      gt_source="included intl directory"
5674    fi
5675    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
5676$as_echo "$gt_source" >&6; }
5677  fi
5678
5679  if test "$USE_NLS" = "yes"; then
5680
5681    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5682      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5683        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
5684$as_echo_n "checking how to link with libintl... " >&6; }
5685        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
5686$as_echo "$LIBINTL" >&6; }
5687
5688  for element in $INCINTL; do
5689    haveit=
5690    for x in $CPPFLAGS; do
5691
5692  acl_save_prefix="$prefix"
5693  prefix="$acl_final_prefix"
5694  acl_save_exec_prefix="$exec_prefix"
5695  exec_prefix="$acl_final_exec_prefix"
5696  eval x=\"$x\"
5697  exec_prefix="$acl_save_exec_prefix"
5698  prefix="$acl_save_prefix"
5699
5700      if test "X$x" = "X$element"; then
5701        haveit=yes
5702        break
5703      fi
5704    done
5705    if test -z "$haveit"; then
5706      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5707    fi
5708  done
5709
5710      fi
5711
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define HAVE_GETTEXT 1
5715_ACEOF
5716
5717
5718cat >>confdefs.h <<\_ACEOF
5719#define HAVE_DCGETTEXT 1
5720_ACEOF
5721
5722    fi
5723
5724        POSUB=po
5725  fi
5726
5727
5728
5729    INTLLIBS="$LIBINTL"
5730
5731
5732
5733
5734
5735
5736
5737# Checks for programs.
5738ac_ext=cpp
5739ac_cpp='$CXXCPP $CPPFLAGS'
5740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5743if test -z "$CXX"; then
5744  if test -n "$CCC"; then
5745    CXX=$CCC
5746  else
5747    if test -n "$ac_tool_prefix"; then
5748  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5749  do
5750    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5751set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5752{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5753$as_echo_n "checking for $ac_word... " >&6; }
5754if test "${ac_cv_prog_CXX+set}" = set; then
5755  $as_echo_n "(cached) " >&6
5756else
5757  if test -n "$CXX"; then
5758  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  test -z "$as_dir" && as_dir=.
5765  for ac_exec_ext in '' $ac_executable_extensions; do
5766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5768    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769    break 2
5770  fi
5771done
5772done
5773IFS=$as_save_IFS
5774
5775fi
5776fi
5777CXX=$ac_cv_prog_CXX
5778if test -n "$CXX"; then
5779  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5780$as_echo "$CXX" >&6; }
5781else
5782  { $as_echo "$as_me:$LINENO: result: no" >&5
5783$as_echo "no" >&6; }
5784fi
5785
5786
5787    test -n "$CXX" && break
5788  done
5789fi
5790if test -z "$CXX"; then
5791  ac_ct_CXX=$CXX
5792  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5793do
5794  # Extract the first word of "$ac_prog", so it can be a program name with args.
5795set dummy $ac_prog; ac_word=$2
5796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5799  $as_echo_n "(cached) " >&6
5800else
5801  if test -n "$ac_ct_CXX"; then
5802  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807  IFS=$as_save_IFS
5808  test -z "$as_dir" && as_dir=.
5809  for ac_exec_ext in '' $ac_executable_extensions; do
5810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811    ac_cv_prog_ac_ct_CXX="$ac_prog"
5812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813    break 2
5814  fi
5815done
5816done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5822if test -n "$ac_ct_CXX"; then
5823  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5824$as_echo "$ac_ct_CXX" >&6; }
5825else
5826  { $as_echo "$as_me:$LINENO: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831  test -n "$ac_ct_CXX" && break
5832done
5833
5834  if test "x$ac_ct_CXX" = x; then
5835    CXX="g++"
5836  else
5837    case $cross_compiling:$ac_tool_warned in
5838yes:)
5839{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5841ac_tool_warned=yes ;;
5842esac
5843    CXX=$ac_ct_CXX
5844  fi
5845fi
5846
5847  fi
5848fi
5849# Provide some information about the compiler.
5850$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5851set X $ac_compile
5852ac_compiler=$2
5853{ (ac_try="$ac_compiler --version >&5"
5854case "(($ac_try" in
5855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5856  *) ac_try_echo=$ac_try;;
5857esac
5858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5859$as_echo "$ac_try_echo") >&5
5860  (eval "$ac_compiler --version >&5") 2>&5
5861  ac_status=$?
5862  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); }
5864{ (ac_try="$ac_compiler -v >&5"
5865case "(($ac_try" in
5866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867  *) ac_try_echo=$ac_try;;
5868esac
5869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870$as_echo "$ac_try_echo") >&5
5871  (eval "$ac_compiler -v >&5") 2>&5
5872  ac_status=$?
5873  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874  (exit $ac_status); }
5875{ (ac_try="$ac_compiler -V >&5"
5876case "(($ac_try" in
5877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878  *) ac_try_echo=$ac_try;;
5879esac
5880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5881$as_echo "$ac_try_echo") >&5
5882  (eval "$ac_compiler -V >&5") 2>&5
5883  ac_status=$?
5884  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); }
5886
5887{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5888$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5889if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5890  $as_echo_n "(cached) " >&6
5891else
5892  cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h.  */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h.  */
5898
5899int
5900main ()
5901{
5902#ifndef __GNUC__
5903       choke me
5904#endif
5905
5906  ;
5907  return 0;
5908}
5909_ACEOF
5910rm -f conftest.$ac_objext
5911if { (ac_try="$ac_compile"
5912case "(($ac_try" in
5913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914  *) ac_try_echo=$ac_try;;
5915esac
5916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5917$as_echo "$ac_try_echo") >&5
5918  (eval "$ac_compile") 2>conftest.er1
5919  ac_status=$?
5920  grep -v '^ *+' conftest.er1 >conftest.err
5921  rm -f conftest.er1
5922  cat conftest.err >&5
5923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924  (exit $ac_status); } && {
5925	 test -z "$ac_cxx_werror_flag" ||
5926	 test ! -s conftest.err
5927       } && test -s conftest.$ac_objext; then
5928  ac_compiler_gnu=yes
5929else
5930  $as_echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933	ac_compiler_gnu=no
5934fi
5935
5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5938
5939fi
5940{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5941$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5942if test $ac_compiler_gnu = yes; then
5943  GXX=yes
5944else
5945  GXX=
5946fi
5947ac_test_CXXFLAGS=${CXXFLAGS+set}
5948ac_save_CXXFLAGS=$CXXFLAGS
5949{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5950$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5951if test "${ac_cv_prog_cxx_g+set}" = set; then
5952  $as_echo_n "(cached) " >&6
5953else
5954  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5955   ac_cxx_werror_flag=yes
5956   ac_cv_prog_cxx_g=no
5957   CXXFLAGS="-g"
5958   cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h.  */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h.  */
5964
5965int
5966main ()
5967{
5968
5969  ;
5970  return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (ac_try="$ac_compile"
5975case "(($ac_try" in
5976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977  *) ac_try_echo=$ac_try;;
5978esac
5979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980$as_echo "$ac_try_echo") >&5
5981  (eval "$ac_compile") 2>conftest.er1
5982  ac_status=$?
5983  grep -v '^ *+' conftest.er1 >conftest.err
5984  rm -f conftest.er1
5985  cat conftest.err >&5
5986  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987  (exit $ac_status); } && {
5988	 test -z "$ac_cxx_werror_flag" ||
5989	 test ! -s conftest.err
5990       } && test -s conftest.$ac_objext; then
5991  ac_cv_prog_cxx_g=yes
5992else
5993  $as_echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
5995
5996	CXXFLAGS=""
5997      cat >conftest.$ac_ext <<_ACEOF
5998/* confdefs.h.  */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h.  */
6003
6004int
6005main ()
6006{
6007
6008  ;
6009  return 0;
6010}
6011_ACEOF
6012rm -f conftest.$ac_objext
6013if { (ac_try="$ac_compile"
6014case "(($ac_try" in
6015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016  *) ac_try_echo=$ac_try;;
6017esac
6018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6019$as_echo "$ac_try_echo") >&5
6020  (eval "$ac_compile") 2>conftest.er1
6021  ac_status=$?
6022  grep -v '^ *+' conftest.er1 >conftest.err
6023  rm -f conftest.er1
6024  cat conftest.err >&5
6025  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); } && {
6027	 test -z "$ac_cxx_werror_flag" ||
6028	 test ! -s conftest.err
6029       } && test -s conftest.$ac_objext; then
6030  :
6031else
6032  $as_echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6036	 CXXFLAGS="-g"
6037	 cat >conftest.$ac_ext <<_ACEOF
6038/* confdefs.h.  */
6039_ACEOF
6040cat confdefs.h >>conftest.$ac_ext
6041cat >>conftest.$ac_ext <<_ACEOF
6042/* end confdefs.h.  */
6043
6044int
6045main ()
6046{
6047
6048  ;
6049  return 0;
6050}
6051_ACEOF
6052rm -f conftest.$ac_objext
6053if { (ac_try="$ac_compile"
6054case "(($ac_try" in
6055  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6056  *) ac_try_echo=$ac_try;;
6057esac
6058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6059$as_echo "$ac_try_echo") >&5
6060  (eval "$ac_compile") 2>conftest.er1
6061  ac_status=$?
6062  grep -v '^ *+' conftest.er1 >conftest.err
6063  rm -f conftest.er1
6064  cat conftest.err >&5
6065  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); } && {
6067	 test -z "$ac_cxx_werror_flag" ||
6068	 test ! -s conftest.err
6069       } && test -s conftest.$ac_objext; then
6070  ac_cv_prog_cxx_g=yes
6071else
6072  $as_echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075
6076fi
6077
6078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079fi
6080
6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082fi
6083
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6086fi
6087{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6088$as_echo "$ac_cv_prog_cxx_g" >&6; }
6089if test "$ac_test_CXXFLAGS" = set; then
6090  CXXFLAGS=$ac_save_CXXFLAGS
6091elif test $ac_cv_prog_cxx_g = yes; then
6092  if test "$GXX" = yes; then
6093    CXXFLAGS="-g -O2"
6094  else
6095    CXXFLAGS="-g"
6096  fi
6097else
6098  if test "$GXX" = yes; then
6099    CXXFLAGS="-O2"
6100  else
6101    CXXFLAGS=
6102  fi
6103fi
6104ac_ext=c
6105ac_cpp='$CPP $CPPFLAGS'
6106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6108ac_compiler_gnu=$ac_cv_c_compiler_gnu
6109
6110depcc="$CXX"  am_compiler_list=
6111
6112{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6113$as_echo_n "checking dependency style of $depcc... " >&6; }
6114if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6115  $as_echo_n "(cached) " >&6
6116else
6117  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6118  # We make a subdir and do the tests there.  Otherwise we can end up
6119  # making bogus files that we don't know about and never remove.  For
6120  # instance it was reported that on HP-UX the gcc test will end up
6121  # making a dummy file named `D' -- because `-MD' means `put the output
6122  # in D'.
6123  mkdir conftest.dir
6124  # Copy depcomp to subdir because otherwise we won't find it if we're
6125  # using a relative directory.
6126  cp "$am_depcomp" conftest.dir
6127  cd conftest.dir
6128  # We will build objects and dependencies in a subdirectory because
6129  # it helps to detect inapplicable dependency modes.  For instance
6130  # both Tru64's cc and ICC support -MD to output dependencies as a
6131  # side effect of compilation, but ICC will put the dependencies in
6132  # the current directory while Tru64 will put them in the object
6133  # directory.
6134  mkdir sub
6135
6136  am_cv_CXX_dependencies_compiler_type=none
6137  if test "$am_compiler_list" = ""; then
6138     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6139  fi
6140  for depmode in $am_compiler_list; do
6141    # Setup a source with many dependencies, because some compilers
6142    # like to wrap large dependency lists on column 80 (with \), and
6143    # we should not choose a depcomp mode which is confused by this.
6144    #
6145    # We need to recreate these files for each test, as the compiler may
6146    # overwrite some of them when testing with obscure command lines.
6147    # This happens at least with the AIX C compiler.
6148    : > sub/conftest.c
6149    for i in 1 2 3 4 5 6; do
6150      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6151      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6152      # Solaris 8's {/usr,}/bin/sh.
6153      touch sub/conftst$i.h
6154    done
6155    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6156
6157    case $depmode in
6158    nosideeffect)
6159      # after this tag, mechanisms are not by side-effect, so they'll
6160      # only be used when explicitly requested
6161      if test "x$enable_dependency_tracking" = xyes; then
6162	continue
6163      else
6164	break
6165      fi
6166      ;;
6167    none) break ;;
6168    esac
6169    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6170    # mode.  It turns out that the SunPro C++ compiler does not properly
6171    # handle `-M -o', and we need to detect this.
6172    if depmode=$depmode \
6173       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6174       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6175       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6176         >/dev/null 2>conftest.err &&
6177       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6178       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6179       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6180       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6181      # icc doesn't choke on unknown options, it will just issue warnings
6182      # or remarks (even with -Werror).  So we grep stderr for any message
6183      # that says an option was ignored or not supported.
6184      # When given -MP, icc 7.0 and 7.1 complain thusly:
6185      #   icc: Command line warning: ignoring option '-M'; no argument required
6186      # The diagnosis changed in icc 8.0:
6187      #   icc: Command line remark: option '-MP' not supported
6188      if (grep 'ignoring option' conftest.err ||
6189          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6190        am_cv_CXX_dependencies_compiler_type=$depmode
6191        break
6192      fi
6193    fi
6194  done
6195
6196  cd ..
6197  rm -rf conftest.dir
6198else
6199  am_cv_CXX_dependencies_compiler_type=none
6200fi
6201
6202fi
6203{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6204$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6205CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6206
6207 if
6208  test "x$enable_dependency_tracking" != xno \
6209  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6210  am__fastdepCXX_TRUE=
6211  am__fastdepCXX_FALSE='#'
6212else
6213  am__fastdepCXX_TRUE='#'
6214  am__fastdepCXX_FALSE=
6215fi
6216
6217
6218# Find a good install program.  We prefer a C program (faster),
6219# so one script is as good as another.  But avoid the broken or
6220# incompatible versions:
6221# SysV /etc/install, /usr/sbin/install
6222# SunOS /usr/etc/install
6223# IRIX /sbin/install
6224# AIX /bin/install
6225# AmigaOS /C/install, which installs bootblocks on floppy discs
6226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6227# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6229# OS/2's system install, which has a completely different semantic
6230# ./install, which can be erroneously created by make from ./install.sh.
6231# Reject install programs that cannot install multiple files.
6232{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6233$as_echo_n "checking for a BSD-compatible install... " >&6; }
6234if test -z "$INSTALL"; then
6235if test "${ac_cv_path_install+set}" = set; then
6236  $as_echo_n "(cached) " >&6
6237else
6238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243  # Account for people who put trailing slashes in PATH elements.
6244case $as_dir/ in
6245  ./ | .// | /cC/* | \
6246  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6247  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6248  /usr/ucb/* ) ;;
6249  *)
6250    # OSF1 and SCO ODT 3.0 have their own names for install.
6251    # Don't use installbsd from OSF since it installs stuff as root
6252    # by default.
6253    for ac_prog in ginstall scoinst install; do
6254      for ac_exec_ext in '' $ac_executable_extensions; do
6255	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6256	  if test $ac_prog = install &&
6257	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6258	    # AIX install.  It has an incompatible calling convention.
6259	    :
6260	  elif test $ac_prog = install &&
6261	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6262	    # program-specific install script used by HP pwplus--don't use.
6263	    :
6264	  else
6265	    rm -rf conftest.one conftest.two conftest.dir
6266	    echo one > conftest.one
6267	    echo two > conftest.two
6268	    mkdir conftest.dir
6269	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6270	      test -s conftest.one && test -s conftest.two &&
6271	      test -s conftest.dir/conftest.one &&
6272	      test -s conftest.dir/conftest.two
6273	    then
6274	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6275	      break 3
6276	    fi
6277	  fi
6278	fi
6279      done
6280    done
6281    ;;
6282esac
6283
6284done
6285IFS=$as_save_IFS
6286
6287rm -rf conftest.one conftest.two conftest.dir
6288
6289fi
6290  if test "${ac_cv_path_install+set}" = set; then
6291    INSTALL=$ac_cv_path_install
6292  else
6293    # As a last resort, use the slow shell script.  Don't cache a
6294    # value for INSTALL within a source directory, because that will
6295    # break other packages using the cache if that directory is
6296    # removed, or if the value is a relative name.
6297    INSTALL=$ac_install_sh
6298  fi
6299fi
6300{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6301$as_echo "$INSTALL" >&6; }
6302
6303# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6304# It thinks the first close brace ends the variable substitution.
6305test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6306
6307test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6308
6309test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6310
6311
6312# Checks for libraries.
6313
6314
6315# Check whether --with-wxdir was given.
6316if test "${with_wxdir+set}" = set; then
6317  withval=$with_wxdir;  wx_config_name="$withval/wx-config"
6318                  wx_config_args="--inplace"
6319fi
6320
6321
6322# Check whether --with-wx-config was given.
6323if test "${with_wx_config+set}" = set; then
6324  withval=$with_wx_config; wx_config_name="$withval"
6325fi
6326
6327
6328# Check whether --with-wx-prefix was given.
6329if test "${with_wx_prefix+set}" = set; then
6330  withval=$with_wx_prefix; wx_config_prefix="$withval"
6331else
6332  wx_config_prefix=""
6333fi
6334
6335
6336# Check whether --with-wx-exec-prefix was given.
6337if test "${with_wx_exec_prefix+set}" = set; then
6338  withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
6339else
6340  wx_config_exec_prefix=""
6341fi
6342
6343
6344reqwx=2.8.10
6345
6346    if test x${WX_CONFIG_NAME+set} != xset ; then
6347     WX_CONFIG_NAME=wx-config
6348  fi
6349
6350  if test "x$wx_config_name" != x ; then
6351     WX_CONFIG_NAME="$wx_config_name"
6352  fi
6353
6354    if test x$wx_config_exec_prefix != x ; then
6355     wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
6356     WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
6357  fi
6358  if test x$wx_config_prefix != x ; then
6359     wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
6360     WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
6361  fi
6362  if test "$cross_compiling" = "yes"; then
6363     wx_config_args="$wx_config_args --host=$host_alias"
6364  fi
6365
6366    if test -x "$WX_CONFIG_NAME" ; then
6367     { $as_echo "$as_me:$LINENO: checking for wx-config" >&5
6368$as_echo_n "checking for wx-config... " >&6; }
6369     WX_CONFIG_PATH="$WX_CONFIG_NAME"
6370     { $as_echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
6371$as_echo "$WX_CONFIG_PATH" >&6; }
6372  else
6373     # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
6374set dummy $WX_CONFIG_NAME; ac_word=$2
6375{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6376$as_echo_n "checking for $ac_word... " >&6; }
6377if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
6378  $as_echo_n "(cached) " >&6
6379else
6380  case $WX_CONFIG_PATH in
6381  [\\/]* | ?:[\\/]*)
6382  ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
6383  ;;
6384  *)
6385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386as_dummy=""$WX_LOOKUP_PATH:$PATH""
6387for as_dir in $as_dummy
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391  for ac_exec_ext in '' $ac_executable_extensions; do
6392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393    ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
6394    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395    break 2
6396  fi
6397done
6398done
6399IFS=$as_save_IFS
6400
6401  test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
6402  ;;
6403esac
6404fi
6405WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
6406if test -n "$WX_CONFIG_PATH"; then
6407  { $as_echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
6408$as_echo "$WX_CONFIG_PATH" >&6; }
6409else
6410  { $as_echo "$as_me:$LINENO: result: no" >&5
6411$as_echo "no" >&6; }
6412fi
6413
6414
6415  fi
6416
6417  if test "$WX_CONFIG_PATH" != "no" ; then
6418    WX_VERSION=""
6419
6420    min_wx_version=$reqwx
6421    if test -z "" ; then
6422      { $as_echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
6423$as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
6424    else
6425      { $as_echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ()" >&5
6426$as_echo_n "checking for wxWidgets version >= $min_wx_version ()... " >&6; }
6427    fi
6428
6429    WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args  "
6430
6431    WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
6432    wx_config_major_version=`echo $WX_VERSION | \
6433           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6434    wx_config_minor_version=`echo $WX_VERSION | \
6435           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6436    wx_config_micro_version=`echo $WX_VERSION | \
6437           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6438
6439    wx_requested_major_version=`echo $min_wx_version | \
6440           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6441    wx_requested_minor_version=`echo $min_wx_version | \
6442           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6443    wx_requested_micro_version=`echo $min_wx_version | \
6444           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6445
6446
6447    wx_ver_ok=""
6448    if test "x$WX_VERSION" != x ; then
6449      if test $wx_config_major_version -gt $wx_requested_major_version; then
6450        wx_ver_ok=yes
6451      else
6452        if test $wx_config_major_version -eq $wx_requested_major_version; then
6453           if test $wx_config_minor_version -gt $wx_requested_minor_version; then
6454              wx_ver_ok=yes
6455           else
6456              if test $wx_config_minor_version -eq $wx_requested_minor_version; then
6457                 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
6458                    wx_ver_ok=yes
6459                 fi
6460              fi
6461           fi
6462        fi
6463      fi
6464    fi
6465
6466
6467    if test -n "$wx_ver_ok"; then
6468
6469      { $as_echo "$as_me:$LINENO: result: yes (version $WX_VERSION)" >&5
6470$as_echo "yes (version $WX_VERSION)" >&6; }
6471      WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
6472
6473                              { $as_echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
6474$as_echo_n "checking for wxWidgets static library... " >&6; }
6475      WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
6476      if test "x$WX_LIBS_STATIC" = "x"; then
6477        { $as_echo "$as_me:$LINENO: result: no" >&5
6478$as_echo "no" >&6; }
6479      else
6480        { $as_echo "$as_me:$LINENO: result: yes" >&5
6481$as_echo "yes" >&6; }
6482      fi
6483
6484            wx_has_cppflags=""
6485      if test $wx_config_major_version -gt 2; then
6486        wx_has_cppflags=yes
6487      else
6488        if test $wx_config_major_version -eq 2; then
6489           if test $wx_config_minor_version -gt 2; then
6490              wx_has_cppflags=yes
6491           else
6492              if test $wx_config_minor_version -eq 2; then
6493                 if test $wx_config_micro_version -ge 6; then
6494                    wx_has_cppflags=yes
6495                 fi
6496              fi
6497           fi
6498        fi
6499      fi
6500
6501            wx_has_rescomp=""
6502      if test $wx_config_major_version -gt 2; then
6503        wx_has_rescomp=yes
6504      else
6505        if test $wx_config_major_version -eq 2; then
6506           if test $wx_config_minor_version -ge 7; then
6507              wx_has_rescomp=yes
6508           fi
6509        fi
6510      fi
6511      if test "x$wx_has_rescomp" = x ; then
6512                  WX_RESCOMP=
6513      else
6514         WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
6515      fi
6516
6517      if test "x$wx_has_cppflags" = x ; then
6518                  WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
6519         WX_CPPFLAGS=$WX_CFLAGS
6520         WX_CXXFLAGS=$WX_CFLAGS
6521
6522         WX_CFLAGS_ONLY=$WX_CFLAGS
6523         WX_CXXFLAGS_ONLY=$WX_CFLAGS
6524      else
6525                  WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
6526         WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
6527         WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
6528
6529         WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
6530         WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
6531      fi
6532
6533      wxWin=1
6534
6535    else
6536
6537       if test "x$WX_VERSION" = x; then
6538                    { $as_echo "$as_me:$LINENO: result: no" >&5
6539$as_echo "no" >&6; }
6540       else
6541          { $as_echo "$as_me:$LINENO: result: no (version $WX_VERSION is not new enough)" >&5
6542$as_echo "no (version $WX_VERSION is not new enough)" >&6; }
6543       fi
6544
6545       WX_CFLAGS=""
6546       WX_CPPFLAGS=""
6547       WX_CXXFLAGS=""
6548       WX_LIBS=""
6549       WX_LIBS_STATIC=""
6550       WX_RESCOMP=""
6551       :
6552
6553    fi
6554  else
6555
6556    WX_CFLAGS=""
6557    WX_CPPFLAGS=""
6558    WX_CXXFLAGS=""
6559    WX_LIBS=""
6560    WX_LIBS_STATIC=""
6561    WX_RESCOMP=""
6562
6563    :
6564
6565  fi
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577if test "$wxWin" != 1; then
6578	{ { $as_echo "$as_me:$LINENO: error:
6579		wxWidgets must be installed on your system.
6580
6581		Please check that wx-config is in path, the directory
6582		where wxWidgets libraries are installed (returned by
6583		'wx-config --libs' or 'wx-config --static --libs' command)
6584		is in LD_LIBRARY_PATH or equivalent variable and
6585		wxWidgets version is $reqwx or above.
6586		" >&5
6587$as_echo "$as_me: error:
6588		wxWidgets must be installed on your system.
6589
6590		Please check that wx-config is in path, the directory
6591		where wxWidgets libraries are installed (returned by
6592		'wx-config --libs' or 'wx-config --static --libs' command)
6593		is in LD_LIBRARY_PATH or equivalent variable and
6594		wxWidgets version is $reqwx or above.
6595		" >&2;}
6596   { (exit 1); exit 1; }; }
6597fi
6598
6599CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
6600CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS_ONLY -s"
6601CFLAGS="$CFLAGS $WX_CFLAGS_ONLY"
6602LIBS="$LIBS $WX_LIBS"
6603#LIBS=`wx-config --libs media,core,base,aui`
6604
6605# Checks for typedefs, structures, and compiler characteristics.
6606ac_ext=c
6607ac_cpp='$CPP $CPPFLAGS'
6608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6612$as_echo_n "checking how to run the C preprocessor... " >&6; }
6613# On Suns, sometimes $CPP names a directory.
6614if test -n "$CPP" && test -d "$CPP"; then
6615  CPP=
6616fi
6617if test -z "$CPP"; then
6618  if test "${ac_cv_prog_CPP+set}" = set; then
6619  $as_echo_n "(cached) " >&6
6620else
6621      # Double quotes because CPP needs to be expanded
6622    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6623    do
6624      ac_preproc_ok=false
6625for ac_c_preproc_warn_flag in '' yes
6626do
6627  # Use a header file that comes with gcc, so configuring glibc
6628  # with a fresh cross-compiler works.
6629  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630  # <limits.h> exists even on freestanding compilers.
6631  # On the NeXT, cc -E runs the code through the compiler's parser,
6632  # not just through cpp. "Syntax error" is here to catch this case.
6633  cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h.  */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h.  */
6639#ifdef __STDC__
6640# include <limits.h>
6641#else
6642# include <assert.h>
6643#endif
6644		     Syntax error
6645_ACEOF
6646if { (ac_try="$ac_cpp conftest.$ac_ext"
6647case "(($ac_try" in
6648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649  *) ac_try_echo=$ac_try;;
6650esac
6651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652$as_echo "$ac_try_echo") >&5
6653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6654  ac_status=$?
6655  grep -v '^ *+' conftest.er1 >conftest.err
6656  rm -f conftest.er1
6657  cat conftest.err >&5
6658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); } >/dev/null && {
6660	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6661	 test ! -s conftest.err
6662       }; then
6663  :
6664else
6665  $as_echo "$as_me: failed program was:" >&5
6666sed 's/^/| /' conftest.$ac_ext >&5
6667
6668  # Broken: fails on valid input.
6669continue
6670fi
6671
6672rm -f conftest.err conftest.$ac_ext
6673
6674  # OK, works on sane cases.  Now check whether nonexistent headers
6675  # can be detected and how.
6676  cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h.  */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h.  */
6682#include <ac_nonexistent.h>
6683_ACEOF
6684if { (ac_try="$ac_cpp conftest.$ac_ext"
6685case "(($ac_try" in
6686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687  *) ac_try_echo=$ac_try;;
6688esac
6689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6690$as_echo "$ac_try_echo") >&5
6691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6692  ac_status=$?
6693  grep -v '^ *+' conftest.er1 >conftest.err
6694  rm -f conftest.er1
6695  cat conftest.err >&5
6696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); } >/dev/null && {
6698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6699	 test ! -s conftest.err
6700       }; then
6701  # Broken: success on invalid input.
6702continue
6703else
6704  $as_echo "$as_me: failed program was:" >&5
6705sed 's/^/| /' conftest.$ac_ext >&5
6706
6707  # Passes both tests.
6708ac_preproc_ok=:
6709break
6710fi
6711
6712rm -f conftest.err conftest.$ac_ext
6713
6714done
6715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6716rm -f conftest.err conftest.$ac_ext
6717if $ac_preproc_ok; then
6718  break
6719fi
6720
6721    done
6722    ac_cv_prog_CPP=$CPP
6723
6724fi
6725  CPP=$ac_cv_prog_CPP
6726else
6727  ac_cv_prog_CPP=$CPP
6728fi
6729{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6730$as_echo "$CPP" >&6; }
6731ac_preproc_ok=false
6732for ac_c_preproc_warn_flag in '' yes
6733do
6734  # Use a header file that comes with gcc, so configuring glibc
6735  # with a fresh cross-compiler works.
6736  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737  # <limits.h> exists even on freestanding compilers.
6738  # On the NeXT, cc -E runs the code through the compiler's parser,
6739  # not just through cpp. "Syntax error" is here to catch this case.
6740  cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h.  */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h.  */
6746#ifdef __STDC__
6747# include <limits.h>
6748#else
6749# include <assert.h>
6750#endif
6751		     Syntax error
6752_ACEOF
6753if { (ac_try="$ac_cpp conftest.$ac_ext"
6754case "(($ac_try" in
6755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756  *) ac_try_echo=$ac_try;;
6757esac
6758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6759$as_echo "$ac_try_echo") >&5
6760  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6761  ac_status=$?
6762  grep -v '^ *+' conftest.er1 >conftest.err
6763  rm -f conftest.er1
6764  cat conftest.err >&5
6765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); } >/dev/null && {
6767	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6768	 test ! -s conftest.err
6769       }; then
6770  :
6771else
6772  $as_echo "$as_me: failed program was:" >&5
6773sed 's/^/| /' conftest.$ac_ext >&5
6774
6775  # Broken: fails on valid input.
6776continue
6777fi
6778
6779rm -f conftest.err conftest.$ac_ext
6780
6781  # OK, works on sane cases.  Now check whether nonexistent headers
6782  # can be detected and how.
6783  cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h.  */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h.  */
6789#include <ac_nonexistent.h>
6790_ACEOF
6791if { (ac_try="$ac_cpp conftest.$ac_ext"
6792case "(($ac_try" in
6793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794  *) ac_try_echo=$ac_try;;
6795esac
6796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6797$as_echo "$ac_try_echo") >&5
6798  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6799  ac_status=$?
6800  grep -v '^ *+' conftest.er1 >conftest.err
6801  rm -f conftest.er1
6802  cat conftest.err >&5
6803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); } >/dev/null && {
6805	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6806	 test ! -s conftest.err
6807       }; then
6808  # Broken: success on invalid input.
6809continue
6810else
6811  $as_echo "$as_me: failed program was:" >&5
6812sed 's/^/| /' conftest.$ac_ext >&5
6813
6814  # Passes both tests.
6815ac_preproc_ok=:
6816break
6817fi
6818
6819rm -f conftest.err conftest.$ac_ext
6820
6821done
6822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6823rm -f conftest.err conftest.$ac_ext
6824if $ac_preproc_ok; then
6825  :
6826else
6827  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6829{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6830See \`config.log' for more details." >&5
6831$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6832See \`config.log' for more details." >&2;}
6833   { (exit 1); exit 1; }; }; }
6834fi
6835
6836ac_ext=c
6837ac_cpp='$CPP $CPPFLAGS'
6838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6840ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841
6842
6843{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6844$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6845if test "${ac_cv_path_GREP+set}" = set; then
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -z "$GREP"; then
6849  ac_path_GREP_found=false
6850  # Loop through the user's path and test for each of PROGNAME-LIST
6851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856  for ac_prog in grep ggrep; do
6857    for ac_exec_ext in '' $ac_executable_extensions; do
6858      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6859      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6860# Check for GNU ac_path_GREP and select it if it is found.
6861  # Check for GNU $ac_path_GREP
6862case `"$ac_path_GREP" --version 2>&1` in
6863*GNU*)
6864  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6865*)
6866  ac_count=0
6867  $as_echo_n 0123456789 >"conftest.in"
6868  while :
6869  do
6870    cat "conftest.in" "conftest.in" >"conftest.tmp"
6871    mv "conftest.tmp" "conftest.in"
6872    cp "conftest.in" "conftest.nl"
6873    $as_echo 'GREP' >> "conftest.nl"
6874    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6875    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6876    ac_count=`expr $ac_count + 1`
6877    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6878      # Best one so far, save it but keep looking for a better one
6879      ac_cv_path_GREP="$ac_path_GREP"
6880      ac_path_GREP_max=$ac_count
6881    fi
6882    # 10*(2^10) chars as input seems more than enough
6883    test $ac_count -gt 10 && break
6884  done
6885  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6886esac
6887
6888      $ac_path_GREP_found && break 3
6889    done
6890  done
6891done
6892IFS=$as_save_IFS
6893  if test -z "$ac_cv_path_GREP"; then
6894    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6895$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6896   { (exit 1); exit 1; }; }
6897  fi
6898else
6899  ac_cv_path_GREP=$GREP
6900fi
6901
6902fi
6903{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6904$as_echo "$ac_cv_path_GREP" >&6; }
6905 GREP="$ac_cv_path_GREP"
6906
6907
6908{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
6909$as_echo_n "checking for egrep... " >&6; }
6910if test "${ac_cv_path_EGREP+set}" = set; then
6911  $as_echo_n "(cached) " >&6
6912else
6913  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6914   then ac_cv_path_EGREP="$GREP -E"
6915   else
6916     if test -z "$EGREP"; then
6917  ac_path_EGREP_found=false
6918  # Loop through the user's path and test for each of PROGNAME-LIST
6919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6921do
6922  IFS=$as_save_IFS
6923  test -z "$as_dir" && as_dir=.
6924  for ac_prog in egrep; do
6925    for ac_exec_ext in '' $ac_executable_extensions; do
6926      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6927      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6928# Check for GNU ac_path_EGREP and select it if it is found.
6929  # Check for GNU $ac_path_EGREP
6930case `"$ac_path_EGREP" --version 2>&1` in
6931*GNU*)
6932  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6933*)
6934  ac_count=0
6935  $as_echo_n 0123456789 >"conftest.in"
6936  while :
6937  do
6938    cat "conftest.in" "conftest.in" >"conftest.tmp"
6939    mv "conftest.tmp" "conftest.in"
6940    cp "conftest.in" "conftest.nl"
6941    $as_echo 'EGREP' >> "conftest.nl"
6942    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6943    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6944    ac_count=`expr $ac_count + 1`
6945    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6946      # Best one so far, save it but keep looking for a better one
6947      ac_cv_path_EGREP="$ac_path_EGREP"
6948      ac_path_EGREP_max=$ac_count
6949    fi
6950    # 10*(2^10) chars as input seems more than enough
6951    test $ac_count -gt 10 && break
6952  done
6953  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6954esac
6955
6956      $ac_path_EGREP_found && break 3
6957    done
6958  done
6959done
6960IFS=$as_save_IFS
6961  if test -z "$ac_cv_path_EGREP"; then
6962    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6963$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6964   { (exit 1); exit 1; }; }
6965  fi
6966else
6967  ac_cv_path_EGREP=$EGREP
6968fi
6969
6970   fi
6971fi
6972{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6973$as_echo "$ac_cv_path_EGREP" >&6; }
6974 EGREP="$ac_cv_path_EGREP"
6975
6976
6977{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6978$as_echo_n "checking for ANSI C header files... " >&6; }
6979if test "${ac_cv_header_stdc+set}" = set; then
6980  $as_echo_n "(cached) " >&6
6981else
6982  cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h.  */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h.  */
6988#include <stdlib.h>
6989#include <stdarg.h>
6990#include <string.h>
6991#include <float.h>
6992
6993int
6994main ()
6995{
6996
6997  ;
6998  return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext
7002if { (ac_try="$ac_compile"
7003case "(($ac_try" in
7004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005  *) ac_try_echo=$ac_try;;
7006esac
7007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7008$as_echo "$ac_try_echo") >&5
7009  (eval "$ac_compile") 2>conftest.er1
7010  ac_status=$?
7011  grep -v '^ *+' conftest.er1 >conftest.err
7012  rm -f conftest.er1
7013  cat conftest.err >&5
7014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); } && {
7016	 test -z "$ac_c_werror_flag" ||
7017	 test ! -s conftest.err
7018       } && test -s conftest.$ac_objext; then
7019  ac_cv_header_stdc=yes
7020else
7021  $as_echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024	ac_cv_header_stdc=no
7025fi
7026
7027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028
7029if test $ac_cv_header_stdc = yes; then
7030  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7031  cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h.  */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h.  */
7037#include <string.h>
7038
7039_ACEOF
7040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041  $EGREP "memchr" >/dev/null 2>&1; then
7042  :
7043else
7044  ac_cv_header_stdc=no
7045fi
7046rm -f conftest*
7047
7048fi
7049
7050if test $ac_cv_header_stdc = yes; then
7051  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7052  cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h.  */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h.  */
7058#include <stdlib.h>
7059
7060_ACEOF
7061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062  $EGREP "free" >/dev/null 2>&1; then
7063  :
7064else
7065  ac_cv_header_stdc=no
7066fi
7067rm -f conftest*
7068
7069fi
7070
7071if test $ac_cv_header_stdc = yes; then
7072  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7073  if test "$cross_compiling" = yes; then
7074  :
7075else
7076  cat >conftest.$ac_ext <<_ACEOF
7077/* confdefs.h.  */
7078_ACEOF
7079cat confdefs.h >>conftest.$ac_ext
7080cat >>conftest.$ac_ext <<_ACEOF
7081/* end confdefs.h.  */
7082#include <ctype.h>
7083#include <stdlib.h>
7084#if ((' ' & 0x0FF) == 0x020)
7085# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7086# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7087#else
7088# define ISLOWER(c) \
7089		   (('a' <= (c) && (c) <= 'i') \
7090		     || ('j' <= (c) && (c) <= 'r') \
7091		     || ('s' <= (c) && (c) <= 'z'))
7092# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7093#endif
7094
7095#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7096int
7097main ()
7098{
7099  int i;
7100  for (i = 0; i < 256; i++)
7101    if (XOR (islower (i), ISLOWER (i))
7102	|| toupper (i) != TOUPPER (i))
7103      return 2;
7104  return 0;
7105}
7106_ACEOF
7107rm -f conftest$ac_exeext
7108if { (ac_try="$ac_link"
7109case "(($ac_try" in
7110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111  *) ac_try_echo=$ac_try;;
7112esac
7113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114$as_echo "$ac_try_echo") >&5
7115  (eval "$ac_link") 2>&5
7116  ac_status=$?
7117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7119  { (case "(($ac_try" in
7120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121  *) ac_try_echo=$ac_try;;
7122esac
7123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7124$as_echo "$ac_try_echo") >&5
7125  (eval "$ac_try") 2>&5
7126  ac_status=$?
7127  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128  (exit $ac_status); }; }; then
7129  :
7130else
7131  $as_echo "$as_me: program exited with status $ac_status" >&5
7132$as_echo "$as_me: failed program was:" >&5
7133sed 's/^/| /' conftest.$ac_ext >&5
7134
7135( exit $ac_status )
7136ac_cv_header_stdc=no
7137fi
7138rm -rf conftest.dSYM
7139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7140fi
7141
7142
7143fi
7144fi
7145{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7146$as_echo "$ac_cv_header_stdc" >&6; }
7147if test $ac_cv_header_stdc = yes; then
7148
7149cat >>confdefs.h <<\_ACEOF
7150#define STDC_HEADERS 1
7151_ACEOF
7152
7153fi
7154
7155# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7166		  inttypes.h stdint.h unistd.h
7167do
7168as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7169{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7170$as_echo_n "checking for $ac_header... " >&6; }
7171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7172  $as_echo_n "(cached) " >&6
7173else
7174  cat >conftest.$ac_ext <<_ACEOF
7175/* confdefs.h.  */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h.  */
7180$ac_includes_default
7181
7182#include <$ac_header>
7183_ACEOF
7184rm -f conftest.$ac_objext
7185if { (ac_try="$ac_compile"
7186case "(($ac_try" in
7187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188  *) ac_try_echo=$ac_try;;
7189esac
7190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7191$as_echo "$ac_try_echo") >&5
7192  (eval "$ac_compile") 2>conftest.er1
7193  ac_status=$?
7194  grep -v '^ *+' conftest.er1 >conftest.err
7195  rm -f conftest.er1
7196  cat conftest.err >&5
7197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198  (exit $ac_status); } && {
7199	 test -z "$ac_c_werror_flag" ||
7200	 test ! -s conftest.err
7201       } && test -s conftest.$ac_objext; then
7202  eval "$as_ac_Header=yes"
7203else
7204  $as_echo "$as_me: failed program was:" >&5
7205sed 's/^/| /' conftest.$ac_ext >&5
7206
7207	eval "$as_ac_Header=no"
7208fi
7209
7210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211fi
7212ac_res=`eval 'as_val=${'$as_ac_Header'}
7213		 $as_echo "$as_val"'`
7214	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7215$as_echo "$ac_res" >&6; }
7216as_val=`eval 'as_val=${'$as_ac_Header'}
7217		 $as_echo "$as_val"'`
7218   if test "x$as_val" = x""yes; then
7219  cat >>confdefs.h <<_ACEOF
7220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7221_ACEOF
7222
7223fi
7224
7225done
7226
7227
7228{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7229$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7230if test "${ac_cv_header_stdbool_h+set}" = set; then
7231  $as_echo_n "(cached) " >&6
7232else
7233  cat >conftest.$ac_ext <<_ACEOF
7234/* confdefs.h.  */
7235_ACEOF
7236cat confdefs.h >>conftest.$ac_ext
7237cat >>conftest.$ac_ext <<_ACEOF
7238/* end confdefs.h.  */
7239
7240#include <stdbool.h>
7241#ifndef bool
7242 "error: bool is not defined"
7243#endif
7244#ifndef false
7245 "error: false is not defined"
7246#endif
7247#if false
7248 "error: false is not 0"
7249#endif
7250#ifndef true
7251 "error: true is not defined"
7252#endif
7253#if true != 1
7254 "error: true is not 1"
7255#endif
7256#ifndef __bool_true_false_are_defined
7257 "error: __bool_true_false_are_defined is not defined"
7258#endif
7259
7260	struct s { _Bool s: 1; _Bool t; } s;
7261
7262	char a[true == 1 ? 1 : -1];
7263	char b[false == 0 ? 1 : -1];
7264	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7265	char d[(bool) 0.5 == true ? 1 : -1];
7266	bool e = &s;
7267	char f[(_Bool) 0.0 == false ? 1 : -1];
7268	char g[true];
7269	char h[sizeof (_Bool)];
7270	char i[sizeof s.t];
7271	enum { j = false, k = true, l = false * true, m = true * 256 };
7272	/* The following fails for
7273	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7274	_Bool n[m];
7275	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7276	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7277#	if defined __xlc__ || defined __GNUC__
7278	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7279	    reported by James Lemley on 2005-10-05; see
7280	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7281	    This test is not quite right, since xlc is allowed to
7282	    reject this program, as the initializer for xlcbug is
7283	    not one of the forms that C requires support for.
7284	    However, doing the test right would require a runtime
7285	    test, and that would make cross-compilation harder.
7286	    Let us hope that IBM fixes the xlc bug, and also adds
7287	    support for this kind of constant expression.  In the
7288	    meantime, this test will reject xlc, which is OK, since
7289	    our stdbool.h substitute should suffice.  We also test
7290	    this with GCC, where it should work, to detect more
7291	    quickly whether someone messes up the test in the
7292	    future.  */
7293	 char digs[] = "0123456789";
7294	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7295#	endif
7296	/* Catch a bug in an HP-UX C compiler.  See
7297	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7298	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7299	 */
7300	_Bool q = true;
7301	_Bool *pq = &q;
7302
7303int
7304main ()
7305{
7306
7307	*pq |= q;
7308	*pq |= ! q;
7309	/* Refer to every declared value, to avoid compiler optimizations.  */
7310	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7311		+ !m + !n + !o + !p + !q + !pq);
7312
7313  ;
7314  return 0;
7315}
7316_ACEOF
7317rm -f conftest.$ac_objext
7318if { (ac_try="$ac_compile"
7319case "(($ac_try" in
7320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321  *) ac_try_echo=$ac_try;;
7322esac
7323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324$as_echo "$ac_try_echo") >&5
7325  (eval "$ac_compile") 2>conftest.er1
7326  ac_status=$?
7327  grep -v '^ *+' conftest.er1 >conftest.err
7328  rm -f conftest.er1
7329  cat conftest.err >&5
7330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331  (exit $ac_status); } && {
7332	 test -z "$ac_c_werror_flag" ||
7333	 test ! -s conftest.err
7334       } && test -s conftest.$ac_objext; then
7335  ac_cv_header_stdbool_h=yes
7336else
7337  $as_echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340	ac_cv_header_stdbool_h=no
7341fi
7342
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344fi
7345{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7346$as_echo "$ac_cv_header_stdbool_h" >&6; }
7347{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
7348$as_echo_n "checking for _Bool... " >&6; }
7349if test "${ac_cv_type__Bool+set}" = set; then
7350  $as_echo_n "(cached) " >&6
7351else
7352  ac_cv_type__Bool=no
7353cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h.  */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h.  */
7359$ac_includes_default
7360int
7361main ()
7362{
7363if (sizeof (_Bool))
7364       return 0;
7365  ;
7366  return 0;
7367}
7368_ACEOF
7369rm -f conftest.$ac_objext
7370if { (ac_try="$ac_compile"
7371case "(($ac_try" in
7372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373  *) ac_try_echo=$ac_try;;
7374esac
7375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376$as_echo "$ac_try_echo") >&5
7377  (eval "$ac_compile") 2>conftest.er1
7378  ac_status=$?
7379  grep -v '^ *+' conftest.er1 >conftest.err
7380  rm -f conftest.er1
7381  cat conftest.err >&5
7382  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); } && {
7384	 test -z "$ac_c_werror_flag" ||
7385	 test ! -s conftest.err
7386       } && test -s conftest.$ac_objext; then
7387  cat >conftest.$ac_ext <<_ACEOF
7388/* confdefs.h.  */
7389_ACEOF
7390cat confdefs.h >>conftest.$ac_ext
7391cat >>conftest.$ac_ext <<_ACEOF
7392/* end confdefs.h.  */
7393$ac_includes_default
7394int
7395main ()
7396{
7397if (sizeof ((_Bool)))
7398	  return 0;
7399  ;
7400  return 0;
7401}
7402_ACEOF
7403rm -f conftest.$ac_objext
7404if { (ac_try="$ac_compile"
7405case "(($ac_try" in
7406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407  *) ac_try_echo=$ac_try;;
7408esac
7409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7410$as_echo "$ac_try_echo") >&5
7411  (eval "$ac_compile") 2>conftest.er1
7412  ac_status=$?
7413  grep -v '^ *+' conftest.er1 >conftest.err
7414  rm -f conftest.er1
7415  cat conftest.err >&5
7416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); } && {
7418	 test -z "$ac_c_werror_flag" ||
7419	 test ! -s conftest.err
7420       } && test -s conftest.$ac_objext; then
7421  :
7422else
7423  $as_echo "$as_me: failed program was:" >&5
7424sed 's/^/| /' conftest.$ac_ext >&5
7425
7426	ac_cv_type__Bool=yes
7427fi
7428
7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430else
7431  $as_echo "$as_me: failed program was:" >&5
7432sed 's/^/| /' conftest.$ac_ext >&5
7433
7434
7435fi
7436
7437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438fi
7439{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7440$as_echo "$ac_cv_type__Bool" >&6; }
7441if test "x$ac_cv_type__Bool" = x""yes; then
7442
7443cat >>confdefs.h <<_ACEOF
7444#define HAVE__BOOL 1
7445_ACEOF
7446
7447
7448fi
7449
7450if test $ac_cv_header_stdbool_h = yes; then
7451
7452cat >>confdefs.h <<\_ACEOF
7453#define HAVE_STDBOOL_H 1
7454_ACEOF
7455
7456fi
7457
7458
7459# Checks for library functions.
7460
7461ac_config_files="$ac_config_files po/Makefile.in data/Makefile src/Makefile Makefile"
7462
7463cat >confcache <<\_ACEOF
7464# This file is a shell script that caches the results of configure
7465# tests run on this system so they can be shared between configure
7466# scripts and configure runs, see configure's option --config-cache.
7467# It is not useful on other systems.  If it contains results you don't
7468# want to keep, you may remove or edit it.
7469#
7470# config.status only pays attention to the cache file if you give it
7471# the --recheck option to rerun configure.
7472#
7473# `ac_cv_env_foo' variables (set or unset) will be overridden when
7474# loading this file, other *unset* `ac_cv_foo' will be assigned the
7475# following values.
7476
7477_ACEOF
7478
7479# The following way of writing the cache mishandles newlines in values,
7480# but we know of no workaround that is simple, portable, and efficient.
7481# So, we kill variables containing newlines.
7482# Ultrix sh set writes to stderr and can't be redirected directly,
7483# and sets the high bit in the cache file unless we assign to the vars.
7484(
7485  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7486    eval ac_val=\$$ac_var
7487    case $ac_val in #(
7488    *${as_nl}*)
7489      case $ac_var in #(
7490      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
7491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7492      esac
7493      case $ac_var in #(
7494      _ | IFS | as_nl) ;; #(
7495      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7496      *) $as_unset $ac_var ;;
7497      esac ;;
7498    esac
7499  done
7500
7501  (set) 2>&1 |
7502    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7503    *${as_nl}ac_space=\ *)
7504      # `set' does not quote correctly, so add quotes (double-quote
7505      # substitution turns \\\\ into \\, and sed turns \\ into \).
7506      sed -n \
7507	"s/'/'\\\\''/g;
7508	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7509      ;; #(
7510    *)
7511      # `set' quotes correctly as required by POSIX, so do not add quotes.
7512      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7513      ;;
7514    esac |
7515    sort
7516) |
7517  sed '
7518     /^ac_cv_env_/b end
7519     t clear
7520     :clear
7521     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7522     t end
7523     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7524     :end' >>confcache
7525if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7526  if test -w "$cache_file"; then
7527    test "x$cache_file" != "x/dev/null" &&
7528      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
7529$as_echo "$as_me: updating cache $cache_file" >&6;}
7530    cat confcache >$cache_file
7531  else
7532    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7533$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7534  fi
7535fi
7536rm -f confcache
7537
7538test "x$prefix" = xNONE && prefix=$ac_default_prefix
7539# Let make expand exec_prefix.
7540test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7541
7542# Transform confdefs.h into DEFS.
7543# Protect against shell expansion while executing Makefile rules.
7544# Protect against Makefile macro expansion.
7545#
7546# If the first sed substitution is executed (which looks for macros that
7547# take arguments), then branch to the quote section.  Otherwise,
7548# look for a macro that doesn't take arguments.
7549ac_script='
7550:mline
7551/\\$/{
7552 N
7553 s,\\\n,,
7554 b mline
7555}
7556t clear
7557:clear
7558s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
7559t quote
7560s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
7561t quote
7562b any
7563:quote
7564s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7565s/\[/\\&/g
7566s/\]/\\&/g
7567s/\$/$$/g
7568H
7569:any
7570${
7571	g
7572	s/^\n//
7573	s/\n/ /g
7574	p
7575}
7576'
7577DEFS=`sed -n "$ac_script" confdefs.h`
7578
7579
7580ac_libobjs=
7581ac_ltlibobjs=
7582for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7583  # 1. Remove the extension, and $U if already installed.
7584  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7585  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7586  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7587  #    will be set to the directory where LIBOBJS objects are built.
7588  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7589  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7590done
7591LIBOBJS=$ac_libobjs
7592
7593LTLIBOBJS=$ac_ltlibobjs
7594
7595
7596if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7597  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7598Usually this means the macro was only invoked conditionally." >&5
7599$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
7600Usually this means the macro was only invoked conditionally." >&2;}
7601   { (exit 1); exit 1; }; }
7602fi
7603if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7604  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7605Usually this means the macro was only invoked conditionally." >&5
7606$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7607Usually this means the macro was only invoked conditionally." >&2;}
7608   { (exit 1); exit 1; }; }
7609fi
7610if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7611  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7612Usually this means the macro was only invoked conditionally." >&5
7613$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7614Usually this means the macro was only invoked conditionally." >&2;}
7615   { (exit 1); exit 1; }; }
7616fi
7617
7618: ${CONFIG_STATUS=./config.status}
7619ac_write_fail=0
7620ac_clean_files_save=$ac_clean_files
7621ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7622{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7623$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7624cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7625#! $SHELL
7626# Generated by $as_me.
7627# Run this file to recreate the current configuration.
7628# Compiler output produced by configure, useful for debugging
7629# configure, is in config.log if it exists.
7630
7631debug=false
7632ac_cs_recheck=false
7633ac_cs_silent=false
7634SHELL=\${CONFIG_SHELL-$SHELL}
7635_ACEOF
7636
7637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7638## --------------------- ##
7639## M4sh Initialization.  ##
7640## --------------------- ##
7641
7642# Be more Bourne compatible
7643DUALCASE=1; export DUALCASE # for MKS sh
7644if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7645  emulate sh
7646  NULLCMD=:
7647  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7648  # is contrary to our usage.  Disable this feature.
7649  alias -g '${1+"$@"}'='"$@"'
7650  setopt NO_GLOB_SUBST
7651else
7652  case `(set -o) 2>/dev/null` in
7653  *posix*) set -o posix ;;
7654esac
7655
7656fi
7657
7658
7659
7660
7661# PATH needs CR
7662# Avoid depending upon Character Ranges.
7663as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7664as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7665as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7666as_cr_digits='0123456789'
7667as_cr_alnum=$as_cr_Letters$as_cr_digits
7668
7669as_nl='
7670'
7671export as_nl
7672# Printing a long string crashes Solaris 7 /usr/bin/printf.
7673as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7674as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7675as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7676if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7677  as_echo='printf %s\n'
7678  as_echo_n='printf %s'
7679else
7680  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7681    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7682    as_echo_n='/usr/ucb/echo -n'
7683  else
7684    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7685    as_echo_n_body='eval
7686      arg=$1;
7687      case $arg in
7688      *"$as_nl"*)
7689	expr "X$arg" : "X\\(.*\\)$as_nl";
7690	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7691      esac;
7692      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7693    '
7694    export as_echo_n_body
7695    as_echo_n='sh -c $as_echo_n_body as_echo'
7696  fi
7697  export as_echo_body
7698  as_echo='sh -c $as_echo_body as_echo'
7699fi
7700
7701# The user is always right.
7702if test "${PATH_SEPARATOR+set}" != set; then
7703  PATH_SEPARATOR=:
7704  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7705    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7706      PATH_SEPARATOR=';'
7707  }
7708fi
7709
7710# Support unset when possible.
7711if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7712  as_unset=unset
7713else
7714  as_unset=false
7715fi
7716
7717
7718# IFS
7719# We need space, tab and new line, in precisely that order.  Quoting is
7720# there to prevent editors from complaining about space-tab.
7721# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7722# splitting by setting IFS to empty value.)
7723IFS=" ""	$as_nl"
7724
7725# Find who we are.  Look in the path if we contain no directory separator.
7726case $0 in
7727  *[\\/]* ) as_myself=$0 ;;
7728  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731  IFS=$as_save_IFS
7732  test -z "$as_dir" && as_dir=.
7733  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7734done
7735IFS=$as_save_IFS
7736
7737     ;;
7738esac
7739# We did not find ourselves, most probably we were run as `sh COMMAND'
7740# in which case we are not to be found in the path.
7741if test "x$as_myself" = x; then
7742  as_myself=$0
7743fi
7744if test ! -f "$as_myself"; then
7745  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7746  { (exit 1); exit 1; }
7747fi
7748
7749# Work around bugs in pre-3.0 UWIN ksh.
7750for as_var in ENV MAIL MAILPATH
7751do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7752done
7753PS1='$ '
7754PS2='> '
7755PS4='+ '
7756
7757# NLS nuisances.
7758LC_ALL=C
7759export LC_ALL
7760LANGUAGE=C
7761export LANGUAGE
7762
7763# Required to use basename.
7764if expr a : '\(a\)' >/dev/null 2>&1 &&
7765   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7766  as_expr=expr
7767else
7768  as_expr=false
7769fi
7770
7771if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7772  as_basename=basename
7773else
7774  as_basename=false
7775fi
7776
7777
7778# Name of the executable.
7779as_me=`$as_basename -- "$0" ||
7780$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7781	 X"$0" : 'X\(//\)$' \| \
7782	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7783$as_echo X/"$0" |
7784    sed '/^.*\/\([^/][^/]*\)\/*$/{
7785	    s//\1/
7786	    q
7787	  }
7788	  /^X\/\(\/\/\)$/{
7789	    s//\1/
7790	    q
7791	  }
7792	  /^X\/\(\/\).*/{
7793	    s//\1/
7794	    q
7795	  }
7796	  s/.*/./; q'`
7797
7798# CDPATH.
7799$as_unset CDPATH
7800
7801
7802
7803  as_lineno_1=$LINENO
7804  as_lineno_2=$LINENO
7805  test "x$as_lineno_1" != "x$as_lineno_2" &&
7806  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7807
7808  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7809  # uniformly replaced by the line number.  The first 'sed' inserts a
7810  # line-number line after each line using $LINENO; the second 'sed'
7811  # does the real work.  The second script uses 'N' to pair each
7812  # line-number line with the line containing $LINENO, and appends
7813  # trailing '-' during substitution so that $LINENO is not a special
7814  # case at line end.
7815  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7816  # scripts with optimization help from Paolo Bonzini.  Blame Lee
7817  # E. McMahon (1931-1989) for sed's syntax.  :-)
7818  sed -n '
7819    p
7820    /[$]LINENO/=
7821  ' <$as_myself |
7822    sed '
7823      s/[$]LINENO.*/&-/
7824      t lineno
7825      b
7826      :lineno
7827      N
7828      :loop
7829      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7830      t loop
7831      s/-\n.*//
7832    ' >$as_me.lineno &&
7833  chmod +x "$as_me.lineno" ||
7834    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7835   { (exit 1); exit 1; }; }
7836
7837  # Don't try to exec as it changes $[0], causing all sort of problems
7838  # (the dirname of $[0] is not the place where we might find the
7839  # original and so on.  Autoconf is especially sensitive to this).
7840  . "./$as_me.lineno"
7841  # Exit status is that of the last command.
7842  exit
7843}
7844
7845
7846if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7847  as_dirname=dirname
7848else
7849  as_dirname=false
7850fi
7851
7852ECHO_C= ECHO_N= ECHO_T=
7853case `echo -n x` in
7854-n*)
7855  case `echo 'x\c'` in
7856  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7857  *)   ECHO_C='\c';;
7858  esac;;
7859*)
7860  ECHO_N='-n';;
7861esac
7862if expr a : '\(a\)' >/dev/null 2>&1 &&
7863   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7864  as_expr=expr
7865else
7866  as_expr=false
7867fi
7868
7869rm -f conf$$ conf$$.exe conf$$.file
7870if test -d conf$$.dir; then
7871  rm -f conf$$.dir/conf$$.file
7872else
7873  rm -f conf$$.dir
7874  mkdir conf$$.dir 2>/dev/null
7875fi
7876if (echo >conf$$.file) 2>/dev/null; then
7877  if ln -s conf$$.file conf$$ 2>/dev/null; then
7878    as_ln_s='ln -s'
7879    # ... but there are two gotchas:
7880    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7881    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7882    # In both cases, we have to default to `cp -p'.
7883    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7884      as_ln_s='cp -p'
7885  elif ln conf$$.file conf$$ 2>/dev/null; then
7886    as_ln_s=ln
7887  else
7888    as_ln_s='cp -p'
7889  fi
7890else
7891  as_ln_s='cp -p'
7892fi
7893rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7894rmdir conf$$.dir 2>/dev/null
7895
7896if mkdir -p . 2>/dev/null; then
7897  as_mkdir_p=:
7898else
7899  test -d ./-p && rmdir ./-p
7900  as_mkdir_p=false
7901fi
7902
7903if test -x / >/dev/null 2>&1; then
7904  as_test_x='test -x'
7905else
7906  if ls -dL / >/dev/null 2>&1; then
7907    as_ls_L_option=L
7908  else
7909    as_ls_L_option=
7910  fi
7911  as_test_x='
7912    eval sh -c '\''
7913      if test -d "$1"; then
7914	test -d "$1/.";
7915      else
7916	case $1 in
7917	-*)set "./$1";;
7918	esac;
7919	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7920	???[sx]*):;;*)false;;esac;fi
7921    '\'' sh
7922  '
7923fi
7924as_executable_p=$as_test_x
7925
7926# Sed expression to map a string onto a valid CPP name.
7927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7928
7929# Sed expression to map a string onto a valid variable name.
7930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7931
7932
7933exec 6>&1
7934
7935# Save the log message, to keep $[0] and so on meaningful, and to
7936# report actual input values of CONFIG_FILES etc. instead of their
7937# values after options handling.
7938ac_log="
7939This file was extended by wxguitar $as_me 1.01, which was
7940generated by GNU Autoconf 2.63.  Invocation command line was
7941
7942  CONFIG_FILES    = $CONFIG_FILES
7943  CONFIG_HEADERS  = $CONFIG_HEADERS
7944  CONFIG_LINKS    = $CONFIG_LINKS
7945  CONFIG_COMMANDS = $CONFIG_COMMANDS
7946  $ $0 $@
7947
7948on `(hostname || uname -n) 2>/dev/null | sed 1q`
7949"
7950
7951_ACEOF
7952
7953case $ac_config_files in *"
7954"*) set x $ac_config_files; shift; ac_config_files=$*;;
7955esac
7956
7957
7958
7959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7960# Files that config.status was made for.
7961config_files="$ac_config_files"
7962config_commands="$ac_config_commands"
7963
7964_ACEOF
7965
7966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7967ac_cs_usage="\
7968\`$as_me' instantiates files from templates according to the
7969current configuration.
7970
7971Usage: $0 [OPTION]... [FILE]...
7972
7973  -h, --help       print this help, then exit
7974  -V, --version    print version number and configuration settings, then exit
7975  -q, --quiet, --silent
7976                   do not print progress messages
7977  -d, --debug      don't remove temporary files
7978      --recheck    update $as_me by reconfiguring in the same conditions
7979      --file=FILE[:TEMPLATE]
7980                   instantiate the configuration file FILE
7981
7982Configuration files:
7983$config_files
7984
7985Configuration commands:
7986$config_commands
7987
7988Report bugs to <bug-autoconf@gnu.org>."
7989
7990_ACEOF
7991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7992ac_cs_version="\\
7993wxguitar config.status 1.01
7994configured by $0, generated by GNU Autoconf 2.63,
7995  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7996
7997Copyright (C) 2008 Free Software Foundation, Inc.
7998This config.status script is free software; the Free Software Foundation
7999gives unlimited permission to copy, distribute and modify it."
8000
8001ac_pwd='$ac_pwd'
8002srcdir='$srcdir'
8003INSTALL='$INSTALL'
8004MKDIR_P='$MKDIR_P'
8005AWK='$AWK'
8006test -n "\$AWK" || AWK=awk
8007_ACEOF
8008
8009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8010# The default lists apply if the user does not specify any file.
8011ac_need_defaults=:
8012while test $# != 0
8013do
8014  case $1 in
8015  --*=*)
8016    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8017    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8018    ac_shift=:
8019    ;;
8020  *)
8021    ac_option=$1
8022    ac_optarg=$2
8023    ac_shift=shift
8024    ;;
8025  esac
8026
8027  case $ac_option in
8028  # Handling of the options.
8029  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8030    ac_cs_recheck=: ;;
8031  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8032    $as_echo "$ac_cs_version"; exit ;;
8033  --debug | --debu | --deb | --de | --d | -d )
8034    debug=: ;;
8035  --file | --fil | --fi | --f )
8036    $ac_shift
8037    case $ac_optarg in
8038    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8039    esac
8040    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
8041    ac_need_defaults=false;;
8042  --he | --h |  --help | --hel | -h )
8043    $as_echo "$ac_cs_usage"; exit ;;
8044  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8045  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8046    ac_cs_silent=: ;;
8047
8048  # This is an error.
8049  -*) { $as_echo "$as_me: error: unrecognized option: $1
8050Try \`$0 --help' for more information." >&2
8051   { (exit 1); exit 1; }; } ;;
8052
8053  *) ac_config_targets="$ac_config_targets $1"
8054     ac_need_defaults=false ;;
8055
8056  esac
8057  shift
8058done
8059
8060ac_configure_extra_args=
8061
8062if $ac_cs_silent; then
8063  exec 6>/dev/null
8064  ac_configure_extra_args="$ac_configure_extra_args --silent"
8065fi
8066
8067_ACEOF
8068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8069if \$ac_cs_recheck; then
8070  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8071  shift
8072  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8073  CONFIG_SHELL='$SHELL'
8074  export CONFIG_SHELL
8075  exec "\$@"
8076fi
8077
8078_ACEOF
8079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8080exec 5>>config.log
8081{
8082  echo
8083  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8084## Running $as_me. ##
8085_ASBOX
8086  $as_echo "$ac_log"
8087} >&5
8088
8089_ACEOF
8090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8091#
8092# INIT-COMMANDS
8093#
8094# Capture the value of obsolete ALL_LINGUAS because we need it to compute
8095    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8096    # from automake < 1.5.
8097    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8098    # Capture the value of LINGUAS because we need it to compute CATALOGS.
8099    LINGUAS="${LINGUAS-%UNSET%}"
8100
8101AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8102
8103_ACEOF
8104
8105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8106
8107# Handling of arguments.
8108for ac_config_target in $ac_config_targets
8109do
8110  case $ac_config_target in
8111    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8112    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8113    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8114    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
8115    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8116    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8117
8118  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8119$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8120   { (exit 1); exit 1; }; };;
8121  esac
8122done
8123
8124
8125# If the user did not use the arguments to specify the items to instantiate,
8126# then the envvar interface is used.  Set only those that are not.
8127# We use the long form for the default assignment because of an extremely
8128# bizarre bug on SunOS 4.1.3.
8129if $ac_need_defaults; then
8130  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8131  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8132fi
8133
8134# Have a temporary directory for convenience.  Make it in the build tree
8135# simply because there is no reason against having it here, and in addition,
8136# creating and moving files from /tmp can sometimes cause problems.
8137# Hook for its removal unless debugging.
8138# Note that there is a small window in which the directory will not be cleaned:
8139# after its creation but before its name has been assigned to `$tmp'.
8140$debug ||
8141{
8142  tmp=
8143  trap 'exit_status=$?
8144  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8145' 0
8146  trap '{ (exit 1); exit 1; }' 1 2 13 15
8147}
8148# Create a (secure) tmp directory for tmp files.
8149
8150{
8151  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8152  test -n "$tmp" && test -d "$tmp"
8153}  ||
8154{
8155  tmp=./conf$$-$RANDOM
8156  (umask 077 && mkdir "$tmp")
8157} ||
8158{
8159   $as_echo "$as_me: cannot create a temporary directory in ." >&2
8160   { (exit 1); exit 1; }
8161}
8162
8163# Set up the scripts for CONFIG_FILES section.
8164# No need to generate them if there are no CONFIG_FILES.
8165# This happens for instance with `./config.status config.h'.
8166if test -n "$CONFIG_FILES"; then
8167
8168
8169ac_cr='
8170'
8171ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8172if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8173  ac_cs_awk_cr='\\r'
8174else
8175  ac_cs_awk_cr=$ac_cr
8176fi
8177
8178echo 'BEGIN {' >"$tmp/subs1.awk" &&
8179_ACEOF
8180
8181
8182{
8183  echo "cat >conf$$subs.awk <<_ACEOF" &&
8184  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8185  echo "_ACEOF"
8186} >conf$$subs.sh ||
8187  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8188$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8189   { (exit 1); exit 1; }; }
8190ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8191ac_delim='%!_!# '
8192for ac_last_try in false false false false false :; do
8193  . ./conf$$subs.sh ||
8194    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8195$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8196   { (exit 1); exit 1; }; }
8197
8198  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8199  if test $ac_delim_n = $ac_delim_num; then
8200    break
8201  elif $ac_last_try; then
8202    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8203$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8204   { (exit 1); exit 1; }; }
8205  else
8206    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8207  fi
8208done
8209rm -f conf$$subs.sh
8210
8211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8212cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8213_ACEOF
8214sed -n '
8215h
8216s/^/S["/; s/!.*/"]=/
8217p
8218g
8219s/^[^!]*!//
8220:repl
8221t repl
8222s/'"$ac_delim"'$//
8223t delim
8224:nl
8225h
8226s/\(.\{148\}\).*/\1/
8227t more1
8228s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8229p
8230n
8231b repl
8232:more1
8233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8234p
8235g
8236s/.\{148\}//
8237t nl
8238:delim
8239h
8240s/\(.\{148\}\).*/\1/
8241t more2
8242s/["\\]/\\&/g; s/^/"/; s/$/"/
8243p
8244b
8245:more2
8246s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8247p
8248g
8249s/.\{148\}//
8250t delim
8251' <conf$$subs.awk | sed '
8252/^[^""]/{
8253  N
8254  s/\n//
8255}
8256' >>$CONFIG_STATUS || ac_write_fail=1
8257rm -f conf$$subs.awk
8258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8259_ACAWK
8260cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8261  for (key in S) S_is_set[key] = 1
8262  FS = ""
8263
8264}
8265{
8266  line = $ 0
8267  nfields = split(line, field, "@")
8268  substed = 0
8269  len = length(field[1])
8270  for (i = 2; i < nfields; i++) {
8271    key = field[i]
8272    keylen = length(key)
8273    if (S_is_set[key]) {
8274      value = S[key]
8275      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8276      len += length(value) + length(field[++i])
8277      substed = 1
8278    } else
8279      len += 1 + keylen
8280  }
8281
8282  print line
8283}
8284
8285_ACAWK
8286_ACEOF
8287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8288if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8289  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8290else
8291  cat
8292fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8293  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
8294$as_echo "$as_me: error: could not setup config files machinery" >&2;}
8295   { (exit 1); exit 1; }; }
8296_ACEOF
8297
8298# VPATH may cause trouble with some makes, so we remove $(srcdir),
8299# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8300# trailing colons and then remove the whole line if VPATH becomes empty
8301# (actually we leave an empty line to preserve line numbers).
8302if test "x$srcdir" = x.; then
8303  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
8304s/:*\$(srcdir):*/:/
8305s/:*\${srcdir}:*/:/
8306s/:*@srcdir@:*/:/
8307s/^\([^=]*=[	 ]*\):*/\1/
8308s/:*$//
8309s/^[^=]*=[	 ]*$//
8310}'
8311fi
8312
8313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8314fi # test -n "$CONFIG_FILES"
8315
8316
8317eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
8318shift
8319for ac_tag
8320do
8321  case $ac_tag in
8322  :[FHLC]) ac_mode=$ac_tag; continue;;
8323  esac
8324  case $ac_mode$ac_tag in
8325  :[FHL]*:*);;
8326  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
8327$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
8328   { (exit 1); exit 1; }; };;
8329  :[FH]-) ac_tag=-:-;;
8330  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8331  esac
8332  ac_save_IFS=$IFS
8333  IFS=:
8334  set x $ac_tag
8335  IFS=$ac_save_IFS
8336  shift
8337  ac_file=$1
8338  shift
8339
8340  case $ac_mode in
8341  :L) ac_source=$1;;
8342  :[FH])
8343    ac_file_inputs=
8344    for ac_f
8345    do
8346      case $ac_f in
8347      -) ac_f="$tmp/stdin";;
8348      *) # Look for the file first in the build tree, then in the source tree
8349	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8350	 # because $ac_f cannot contain `:'.
8351	 test -f "$ac_f" ||
8352	   case $ac_f in
8353	   [\\/$]*) false;;
8354	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8355	   esac ||
8356	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8357$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8358   { (exit 1); exit 1; }; };;
8359      esac
8360      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8361      ac_file_inputs="$ac_file_inputs '$ac_f'"
8362    done
8363
8364    # Let's still pretend it is `configure' which instantiates (i.e., don't
8365    # use $as_me), people would be surprised to read:
8366    #    /* config.h.  Generated by config.status.  */
8367    configure_input='Generated from '`
8368	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8369	`' by configure.'
8370    if test x"$ac_file" != x-; then
8371      configure_input="$ac_file.  $configure_input"
8372      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
8373$as_echo "$as_me: creating $ac_file" >&6;}
8374    fi
8375    # Neutralize special characters interpreted by sed in replacement strings.
8376    case $configure_input in #(
8377    *\&* | *\|* | *\\* )
8378       ac_sed_conf_input=`$as_echo "$configure_input" |
8379       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8380    *) ac_sed_conf_input=$configure_input;;
8381    esac
8382
8383    case $ac_tag in
8384    *:-:* | *:-) cat >"$tmp/stdin" \
8385      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8386$as_echo "$as_me: error: could not create $ac_file" >&2;}
8387   { (exit 1); exit 1; }; } ;;
8388    esac
8389    ;;
8390  esac
8391
8392  ac_dir=`$as_dirname -- "$ac_file" ||
8393$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8394	 X"$ac_file" : 'X\(//\)[^/]' \| \
8395	 X"$ac_file" : 'X\(//\)$' \| \
8396	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8397$as_echo X"$ac_file" |
8398    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8399	    s//\1/
8400	    q
8401	  }
8402	  /^X\(\/\/\)[^/].*/{
8403	    s//\1/
8404	    q
8405	  }
8406	  /^X\(\/\/\)$/{
8407	    s//\1/
8408	    q
8409	  }
8410	  /^X\(\/\).*/{
8411	    s//\1/
8412	    q
8413	  }
8414	  s/.*/./; q'`
8415  { as_dir="$ac_dir"
8416  case $as_dir in #(
8417  -*) as_dir=./$as_dir;;
8418  esac
8419  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8420    as_dirs=
8421    while :; do
8422      case $as_dir in #(
8423      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8424      *) as_qdir=$as_dir;;
8425      esac
8426      as_dirs="'$as_qdir' $as_dirs"
8427      as_dir=`$as_dirname -- "$as_dir" ||
8428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8429	 X"$as_dir" : 'X\(//\)[^/]' \| \
8430	 X"$as_dir" : 'X\(//\)$' \| \
8431	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8432$as_echo X"$as_dir" |
8433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8434	    s//\1/
8435	    q
8436	  }
8437	  /^X\(\/\/\)[^/].*/{
8438	    s//\1/
8439	    q
8440	  }
8441	  /^X\(\/\/\)$/{
8442	    s//\1/
8443	    q
8444	  }
8445	  /^X\(\/\).*/{
8446	    s//\1/
8447	    q
8448	  }
8449	  s/.*/./; q'`
8450      test -d "$as_dir" && break
8451    done
8452    test -z "$as_dirs" || eval "mkdir $as_dirs"
8453  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8454$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8455   { (exit 1); exit 1; }; }; }
8456  ac_builddir=.
8457
8458case "$ac_dir" in
8459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8460*)
8461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8462  # A ".." for each directory in $ac_dir_suffix.
8463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8464  case $ac_top_builddir_sub in
8465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8467  esac ;;
8468esac
8469ac_abs_top_builddir=$ac_pwd
8470ac_abs_builddir=$ac_pwd$ac_dir_suffix
8471# for backward compatibility:
8472ac_top_builddir=$ac_top_build_prefix
8473
8474case $srcdir in
8475  .)  # We are building in place.
8476    ac_srcdir=.
8477    ac_top_srcdir=$ac_top_builddir_sub
8478    ac_abs_top_srcdir=$ac_pwd ;;
8479  [\\/]* | ?:[\\/]* )  # Absolute name.
8480    ac_srcdir=$srcdir$ac_dir_suffix;
8481    ac_top_srcdir=$srcdir
8482    ac_abs_top_srcdir=$srcdir ;;
8483  *) # Relative name.
8484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8485    ac_top_srcdir=$ac_top_build_prefix$srcdir
8486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8487esac
8488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8489
8490
8491  case $ac_mode in
8492  :F)
8493  #
8494  # CONFIG_FILE
8495  #
8496
8497  case $INSTALL in
8498  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8499  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8500  esac
8501  ac_MKDIR_P=$MKDIR_P
8502  case $MKDIR_P in
8503  [\\/$]* | ?:[\\/]* ) ;;
8504  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8505  esac
8506_ACEOF
8507
8508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8509# If the template does not know about datarootdir, expand it.
8510# FIXME: This hack should be removed a few years after 2.60.
8511ac_datarootdir_hack=; ac_datarootdir_seen=
8512
8513ac_sed_dataroot='
8514/datarootdir/ {
8515  p
8516  q
8517}
8518/@datadir@/p
8519/@docdir@/p
8520/@infodir@/p
8521/@localedir@/p
8522/@mandir@/p
8523'
8524case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8525*datarootdir*) ac_datarootdir_seen=yes;;
8526*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8527  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8528$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8529_ACEOF
8530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8531  ac_datarootdir_hack='
8532  s&@datadir@&$datadir&g
8533  s&@docdir@&$docdir&g
8534  s&@infodir@&$infodir&g
8535  s&@localedir@&$localedir&g
8536  s&@mandir@&$mandir&g
8537    s&\\\${datarootdir}&$datarootdir&g' ;;
8538esac
8539_ACEOF
8540
8541# Neutralize VPATH when `$srcdir' = `.'.
8542# Shell code in configure.ac might set extrasub.
8543# FIXME: do we really want to maintain this feature?
8544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8545ac_sed_extra="$ac_vpsub
8546$extrasub
8547_ACEOF
8548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8549:t
8550/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8551s|@configure_input@|$ac_sed_conf_input|;t t
8552s&@top_builddir@&$ac_top_builddir_sub&;t t
8553s&@top_build_prefix@&$ac_top_build_prefix&;t t
8554s&@srcdir@&$ac_srcdir&;t t
8555s&@abs_srcdir@&$ac_abs_srcdir&;t t
8556s&@top_srcdir@&$ac_top_srcdir&;t t
8557s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8558s&@builddir@&$ac_builddir&;t t
8559s&@abs_builddir@&$ac_abs_builddir&;t t
8560s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8561s&@INSTALL@&$ac_INSTALL&;t t
8562s&@MKDIR_P@&$ac_MKDIR_P&;t t
8563$ac_datarootdir_hack
8564"
8565eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8566  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8567$as_echo "$as_me: error: could not create $ac_file" >&2;}
8568   { (exit 1); exit 1; }; }
8569
8570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8571  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8572  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8573  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8574which seems to be undefined.  Please make sure it is defined." >&5
8575$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8576which seems to be undefined.  Please make sure it is defined." >&2;}
8577
8578  rm -f "$tmp/stdin"
8579  case $ac_file in
8580  -) cat "$tmp/out" && rm -f "$tmp/out";;
8581  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8582  esac \
8583  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
8584$as_echo "$as_me: error: could not create $ac_file" >&2;}
8585   { (exit 1); exit 1; }; }
8586 ;;
8587
8588
8589  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
8590$as_echo "$as_me: executing $ac_file commands" >&6;}
8591 ;;
8592  esac
8593
8594
8595  case $ac_file$ac_mode in
8596    "po-directories":C)
8597    for ac_file in $CONFIG_FILES; do
8598      # Support "outfile[:infile[:infile...]]"
8599      case "$ac_file" in
8600        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8601      esac
8602      # PO directories have a Makefile.in generated from Makefile.in.in.
8603      case "$ac_file" in */Makefile.in)
8604        # Adjust a relative srcdir.
8605        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8606        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8607        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8608        # In autoconf-2.13 it is called $ac_given_srcdir.
8609        # In autoconf-2.50 it is called $srcdir.
8610        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8611        case "$ac_given_srcdir" in
8612          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8613          /*) top_srcdir="$ac_given_srcdir" ;;
8614          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
8615        esac
8616        # Treat a directory as a PO directory if and only if it has a
8617        # POTFILES.in file. This allows packages to have multiple PO
8618        # directories under different names or in different locations.
8619        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8620          rm -f "$ac_dir/POTFILES"
8621          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8622          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8623          POMAKEFILEDEPS="POTFILES.in"
8624          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
8625          # on $ac_dir but don't depend on user-specified configuration
8626          # parameters.
8627          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8628            # The LINGUAS file contains the set of available languages.
8629            if test -n "$OBSOLETE_ALL_LINGUAS"; then
8630              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8631            fi
8632            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8633            # Hide the ALL_LINGUAS assigment from automake < 1.5.
8634            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8635            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8636          else
8637            # The set of available languages was given in configure.in.
8638            # Hide the ALL_LINGUAS assigment from automake < 1.5.
8639            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8640          fi
8641          # Compute POFILES
8642          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
8643          # Compute UPDATEPOFILES
8644          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
8645          # Compute DUMMYPOFILES
8646          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
8647          # Compute GMOFILES
8648          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
8649          case "$ac_given_srcdir" in
8650            .) srcdirpre= ;;
8651            *) srcdirpre='$(srcdir)/' ;;
8652          esac
8653          POFILES=
8654          UPDATEPOFILES=
8655          DUMMYPOFILES=
8656          GMOFILES=
8657          for lang in $ALL_LINGUAS; do
8658            POFILES="$POFILES $srcdirpre$lang.po"
8659            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8660            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8661            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8662          done
8663          # CATALOGS depends on both $ac_dir and the user's LINGUAS
8664          # environment variable.
8665          INST_LINGUAS=
8666          if test -n "$ALL_LINGUAS"; then
8667            for presentlang in $ALL_LINGUAS; do
8668              useit=no
8669              if test "%UNSET%" != "$LINGUAS"; then
8670                desiredlanguages="$LINGUAS"
8671              else
8672                desiredlanguages="$ALL_LINGUAS"
8673              fi
8674              for desiredlang in $desiredlanguages; do
8675                # Use the presentlang catalog if desiredlang is
8676                #   a. equal to presentlang, or
8677                #   b. a variant of presentlang (because in this case,
8678                #      presentlang can be used as a fallback for messages
8679                #      which are not translated in the desiredlang catalog).
8680                case "$desiredlang" in
8681                  "$presentlang"*) useit=yes;;
8682                esac
8683              done
8684              if test $useit = yes; then
8685                INST_LINGUAS="$INST_LINGUAS $presentlang"
8686              fi
8687            done
8688          fi
8689          CATALOGS=
8690          if test -n "$INST_LINGUAS"; then
8691            for lang in $INST_LINGUAS; do
8692              CATALOGS="$CATALOGS $lang.gmo"
8693            done
8694          fi
8695          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8696          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8697          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8698            if test -f "$f"; then
8699              case "$f" in
8700                *.orig | *.bak | *~) ;;
8701                *) cat "$f" >> "$ac_dir/Makefile" ;;
8702              esac
8703            fi
8704          done
8705        fi
8706        ;;
8707      esac
8708    done ;;
8709    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8710  # Autoconf 2.62 quotes --file arguments for eval, but not when files
8711  # are listed without --file.  Let's play safe and only enable the eval
8712  # if we detect the quoting.
8713  case $CONFIG_FILES in
8714  *\'*) eval set x "$CONFIG_FILES" ;;
8715  *)   set x $CONFIG_FILES ;;
8716  esac
8717  shift
8718  for mf
8719  do
8720    # Strip MF so we end up with the name of the file.
8721    mf=`echo "$mf" | sed -e 's/:.*$//'`
8722    # Check whether this is an Automake generated Makefile or not.
8723    # We used to match only the files named `Makefile.in', but
8724    # some people rename them; so instead we look at the file content.
8725    # Grep'ing the first line is not enough: some people post-process
8726    # each Makefile.in and add a new line on top of each file to say so.
8727    # Grep'ing the whole file is not good either: AIX grep has a line
8728    # limit of 2048, but all sed's we know have understand at least 4000.
8729    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8730      dirpart=`$as_dirname -- "$mf" ||
8731$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8732	 X"$mf" : 'X\(//\)[^/]' \| \
8733	 X"$mf" : 'X\(//\)$' \| \
8734	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8735$as_echo X"$mf" |
8736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8737	    s//\1/
8738	    q
8739	  }
8740	  /^X\(\/\/\)[^/].*/{
8741	    s//\1/
8742	    q
8743	  }
8744	  /^X\(\/\/\)$/{
8745	    s//\1/
8746	    q
8747	  }
8748	  /^X\(\/\).*/{
8749	    s//\1/
8750	    q
8751	  }
8752	  s/.*/./; q'`
8753    else
8754      continue
8755    fi
8756    # Extract the definition of DEPDIR, am__include, and am__quote
8757    # from the Makefile without running `make'.
8758    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8759    test -z "$DEPDIR" && continue
8760    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8761    test -z "am__include" && continue
8762    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8763    # When using ansi2knr, U may be empty or an underscore; expand it
8764    U=`sed -n 's/^U = //p' < "$mf"`
8765    # Find all dependency output files, they are included files with
8766    # $(DEPDIR) in their names.  We invoke sed twice because it is the
8767    # simplest approach to changing $(DEPDIR) to its actual value in the
8768    # expansion.
8769    for file in `sed -n "
8770      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8771	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8772      # Make sure the directory exists.
8773      test -f "$dirpart/$file" && continue
8774      fdir=`$as_dirname -- "$file" ||
8775$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8776	 X"$file" : 'X\(//\)[^/]' \| \
8777	 X"$file" : 'X\(//\)$' \| \
8778	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8779$as_echo X"$file" |
8780    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8781	    s//\1/
8782	    q
8783	  }
8784	  /^X\(\/\/\)[^/].*/{
8785	    s//\1/
8786	    q
8787	  }
8788	  /^X\(\/\/\)$/{
8789	    s//\1/
8790	    q
8791	  }
8792	  /^X\(\/\).*/{
8793	    s//\1/
8794	    q
8795	  }
8796	  s/.*/./; q'`
8797      { as_dir=$dirpart/$fdir
8798  case $as_dir in #(
8799  -*) as_dir=./$as_dir;;
8800  esac
8801  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8802    as_dirs=
8803    while :; do
8804      case $as_dir in #(
8805      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8806      *) as_qdir=$as_dir;;
8807      esac
8808      as_dirs="'$as_qdir' $as_dirs"
8809      as_dir=`$as_dirname -- "$as_dir" ||
8810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8811	 X"$as_dir" : 'X\(//\)[^/]' \| \
8812	 X"$as_dir" : 'X\(//\)$' \| \
8813	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8814$as_echo X"$as_dir" |
8815    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8816	    s//\1/
8817	    q
8818	  }
8819	  /^X\(\/\/\)[^/].*/{
8820	    s//\1/
8821	    q
8822	  }
8823	  /^X\(\/\/\)$/{
8824	    s//\1/
8825	    q
8826	  }
8827	  /^X\(\/\).*/{
8828	    s//\1/
8829	    q
8830	  }
8831	  s/.*/./; q'`
8832      test -d "$as_dir" && break
8833    done
8834    test -z "$as_dirs" || eval "mkdir $as_dirs"
8835  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8836$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8837   { (exit 1); exit 1; }; }; }
8838      # echo "creating $dirpart/$file"
8839      echo '# dummy' > "$dirpart/$file"
8840    done
8841  done
8842}
8843 ;;
8844
8845  esac
8846done # for ac_tag
8847
8848
8849{ (exit 0); exit 0; }
8850_ACEOF
8851chmod +x $CONFIG_STATUS
8852ac_clean_files=$ac_clean_files_save
8853
8854test $ac_write_fail = 0 ||
8855  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8856$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8857   { (exit 1); exit 1; }; }
8858
8859
8860# configure is writing to config.log, and then calls config.status.
8861# config.status does its own redirection, appending to config.log.
8862# Unfortunately, on DOS this fails, as config.log is still kept open
8863# by configure, so config.status won't be able to write to it; its
8864# output is simply discarded.  So we exec the FD to /dev/null,
8865# effectively closing config.log, so it can be properly (re)opened and
8866# appended to by config.status.  When coming back to configure, we
8867# need to make the FD available again.
8868if test "$no_create" != yes; then
8869  ac_cs_success=:
8870  ac_config_status_args=
8871  test "$silent" = yes &&
8872    ac_config_status_args="$ac_config_status_args --quiet"
8873  exec 5>/dev/null
8874  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8875  exec 5>>config.log
8876  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8877  # would make configure fail if this is the last instruction.
8878  $ac_cs_success || { (exit 1); exit 1; }
8879fi
8880if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8881  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8882$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8883fi
8884
8885