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