1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for Tux Of Math Command 2.0.3.
4#
5# Report bugs to <tuxmath-devel@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: tuxmath-devel@lists.sourceforge.net about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
534
535# Name of the host.
536# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
544ac_clean_files=
545ac_config_libobj_dir=.
546LIBOBJS=
547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
551
552# Identity of this package.
553PACKAGE_NAME='Tux Of Math Command'
554PACKAGE_TARNAME='tuxmath'
555PACKAGE_VERSION='2.0.3'
556PACKAGE_STRING='Tux Of Math Command 2.0.3'
557PACKAGE_BUGREPORT='tuxmath-devel@lists.sourceforge.net'
558PACKAGE_URL=''
559
560ac_unique_file="src/tuxmath.c"
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
564#ifdef HAVE_SYS_TYPES_H
565# include <sys/types.h>
566#endif
567#ifdef HAVE_SYS_STAT_H
568# include <sys/stat.h>
569#endif
570#ifdef STDC_HEADERS
571# include <stdlib.h>
572# include <stddef.h>
573#else
574# ifdef HAVE_STDLIB_H
575#  include <stdlib.h>
576# endif
577#endif
578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580#  include <memory.h>
581# endif
582# include <string.h>
583#endif
584#ifdef HAVE_STRINGS_H
585# include <strings.h>
586#endif
587#ifdef HAVE_INTTYPES_H
588# include <inttypes.h>
589#endif
590#ifdef HAVE_STDINT_H
591# include <stdint.h>
592#endif
593#ifdef HAVE_UNISTD_H
594# include <unistd.h>
595#endif"
596
597gt_needs=
598ac_header_list=
599ac_subst_vars='am__EXEEXT_FALSE
600am__EXEEXT_TRUE
601LTLIBOBJS
602U2D
603NSIS
604NSI_DLL_DIR
605NSI_BUILD_FALSE
606NSI_BUILD_TRUE
607NSI_INSTALL_DIR
608WINDRES
609MINGW32_PACKAGE_DATA_DIR
610BUILD_MINGW32_FALSE
611BUILD_MINGW32_TRUE
612POW_LIB
613LIBOBJS
614ALLOCA
615T4K_COMMON_LIBS
616T4K_COMMON_CFLAGS
617XML2_LIBS
618XML2_CFLAGS
619SDL_NET_LIBS
620SDL_NET_CFLAGS
621CAIRO_LIBS
622CAIRO_CFLAGS
623RSVG_LIBS
624RSVG_CFLAGS
625SDL_MIXER_LIBS
626SDL_MIXER_CFLAGS
627SDL_IMAGE_LIBS
628SDL_IMAGE_CFLAGS
629SDL_CONFIG
630SDL_LIBS
631SDL_CFLAGS
632PKG_CONFIG_LIBDIR
633PKG_CONFIG_PATH
634PKG_CONFIG
635POSUB
636LTLIBINTL
637LIBINTL
638INTLLIBS
639LTLIBICONV
640LIBICONV
641INTL_MACOSX_LIBS
642XGETTEXT_EXTRA_OPTIONS
643MSGMERGE
644XGETTEXT_015
645XGETTEXT
646GMSGFMT_015
647MSGFMT_015
648GMSGFMT
649MSGFMT
650GETTEXT_MACRO_VERSION
651USE_NLS
652YFLAGS
653YACC
654am__fastdepCXX_FALSE
655am__fastdepCXX_TRUE
656CXXDEPMODE
657ac_ct_CXX
658CXXFLAGS
659CXX
660RANLIB
661EGREP
662GREP
663CPP
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673OBJEXT
674EXEEXT
675ac_ct_CC
676CPPFLAGS
677LDFLAGS
678CFLAGS
679CC
680NAME_VERSION
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686AWK
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690STRIP
691install_sh
692MAKEINFO
693AUTOHEADER
694AUTOMAKE
695AUTOCONF
696ACLOCAL
697VERSION
698PACKAGE
699CYGPATH_W
700am__isrc
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704target_os
705target_vendor
706target_cpu
707target
708host_os
709host_vendor
710host_cpu
711host
712build_os
713build_vendor
714build_cpu
715build
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_dependency_tracking
758enable_nls
759with_gnu_ld
760enable_rpath
761with_libiconv_prefix
762with_libintl_prefix
763with_sdl_prefix
764with_sdl_exec_prefix
765enable_sdltest
766with_rsvg
767with_sdlnet
768with_dll_directory
769'
770      ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
778CPP
779CXX
780CXXFLAGS
781CCC
782YACC
783YFLAGS
784PKG_CONFIG
785PKG_CONFIG_PATH
786PKG_CONFIG_LIBDIR
787SDL_CFLAGS
788SDL_LIBS
789SDL_IMAGE_CFLAGS
790SDL_IMAGE_LIBS
791SDL_MIXER_CFLAGS
792SDL_MIXER_LIBS
793RSVG_CFLAGS
794RSVG_LIBS
795CAIRO_CFLAGS
796CAIRO_LIBS
797SDL_NET_CFLAGS
798SDL_NET_LIBS
799XML2_CFLAGS
800XML2_LIBS
801T4K_COMMON_CFLAGS
802T4K_COMMON_LIBS'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857  # If the previous option needs an argument, assign it.
858  if test -n "$ac_prev"; then
859    eval $ac_prev=\$ac_option
860    ac_prev=
861    continue
862  fi
863
864  case $ac_option in
865  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866  *=)   ac_optarg= ;;
867  *)    ac_optarg=yes ;;
868  esac
869
870  # Accept the important Cygnus configure options, so we can diagnose typos.
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: $ac_useropt"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094    ac_prev=sbindir ;;
1095  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096  | --sbi=* | --sb=*)
1097    sbindir=$ac_optarg ;;
1098
1099  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101  | --sharedst | --shareds | --shared | --share | --shar \
1102  | --sha | --sh)
1103    ac_prev=sharedstatedir ;;
1104  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107  | --sha=* | --sh=*)
1108    sharedstatedir=$ac_optarg ;;
1109
1110  -site | --site | --sit)
1111    ac_prev=site ;;
1112  -site=* | --site=* | --sit=*)
1113    site=$ac_optarg ;;
1114
1115  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116    ac_prev=srcdir ;;
1117  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118    srcdir=$ac_optarg ;;
1119
1120  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121  | --syscon | --sysco | --sysc | --sys | --sy)
1122    ac_prev=sysconfdir ;;
1123  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125    sysconfdir=$ac_optarg ;;
1126
1127  -target | --target | --targe | --targ | --tar | --ta | --t)
1128    ac_prev=target_alias ;;
1129  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130    target_alias=$ac_optarg ;;
1131
1132  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133    verbose=yes ;;
1134
1135  -version | --version | --versio | --versi | --vers | -V)
1136    ac_init_version=: ;;
1137
1138  -with-* | --with-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
1190    ;;
1191
1192  *=*)
1193    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194    # Reject names that are not valid shell variable names.
1195    case $ac_envvar in #(
1196      '' | [0-9]* | *[!_$as_cr_alnum]* )
1197      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198    esac
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219  case $enable_option_checking in
1220    no) ;;
1221    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223  esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228		datadir sysconfdir sharedstatedir localstatedir includedir \
1229		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230		libdir localedir mandir
1231do
1232  eval ac_val=\$$ac_var
1233  # Remove trailing slashes.
1234  case $ac_val in
1235    */ )
1236      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237      eval $ac_var=\$ac_val;;
1238  esac
1239  # Be sure to have absolute directory names.
1240  case $ac_val in
1241    [\\/$]* | ?:[\\/]* )  continue;;
1242    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243  esac
1244  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256  if test "x$build_alias" = x; then
1257    cross_compiling=maybe
1258    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1259    If a cross compiler is detected then cross compile mode will be used" >&2
1260  elif test "x$build_alias" != "x$host_alias"; then
1261    cross_compiling=yes
1262  fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274  as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276  as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281  ac_srcdir_defaulted=yes
1282  # Try the directory containing this script, then the parent directory.
1283  ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286	 X"$as_myself" : 'X\(//\)$' \| \
1287	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288$as_echo X"$as_myself" |
1289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290	    s//\1/
1291	    q
1292	  }
1293	  /^X\(\/\/\)[^/].*/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\).*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  s/.*/./; q'`
1306  srcdir=$ac_confdir
1307  if test ! -r "$srcdir/$ac_unique_file"; then
1308    srcdir=..
1309  fi
1310else
1311  ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320	pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323  srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_env_${ac_var}_value=\$${ac_var}
1334  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342  # Omit some internal or obsolete options to make the list less imposing.
1343  # This message is too long to be a string in the A/UX 3.1 sh.
1344  cat <<_ACEOF
1345\`configure' configures Tux Of Math Command 2.0.3 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE.  See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355  -h, --help              display this help and exit
1356      --help=short        display options specific to this package
1357      --help=recursive    display the short help of all the included packages
1358  -V, --version           display version information and exit
1359  -q, --quiet, --silent   do not print \`checking ...' messages
1360      --cache-file=FILE   cache test results in FILE [disabled]
1361  -C, --config-cache      alias for \`--cache-file=config.cache'
1362  -n, --no-create         do not create output files
1363      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366  --prefix=PREFIX         install architecture-independent files in PREFIX
1367                          [$ac_default_prefix]
1368  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369                          [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379  --bindir=DIR            user executables [EPREFIX/bin]
1380  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385  --libdir=DIR            object code libraries [EPREFIX/lib]
1386  --includedir=DIR        C header files [PREFIX/include]
1387  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1388  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1389  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1390  --infodir=DIR           info documentation [DATAROOTDIR/info]
1391  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1392  --mandir=DIR            man documentation [DATAROOTDIR/man]
1393  --docdir=DIR            documentation root [DATAROOTDIR/doc/tuxmath]
1394  --htmldir=DIR           html documentation [DOCDIR]
1395  --dvidir=DIR            dvi documentation [DOCDIR]
1396  --pdfdir=DIR            pdf documentation [DOCDIR]
1397  --psdir=DIR             ps documentation [DOCDIR]
1398_ACEOF
1399
1400  cat <<\_ACEOF
1401
1402Program names:
1403  --program-prefix=PREFIX            prepend PREFIX to installed program names
1404  --program-suffix=SUFFIX            append SUFFIX to installed program names
1405  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1406
1407System types:
1408  --build=BUILD     configure for building on BUILD [guessed]
1409  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1410  --target=TARGET   configure for building compilers for TARGET [HOST]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of Tux Of Math Command 2.0.3:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --disable-dependency-tracking  speeds up one-time build
1425  --enable-dependency-tracking   do not reject slow dependency extractors
1426  --disable-nls           do not use Native Language Support
1427  --disable-rpath         do not hardcode runtime library paths
1428  --disable-sdltest       Do not try to compile and run a test SDL program
1429
1430Optional Packages:
1431  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1434  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1435  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1436  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1437  --without-libintl-prefix     don't search for libintl in includedir and libdir
1438  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1439  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1440  --without-rsvg          do not use libRSVG even if available
1441  --without-sdlnet        Do not use SDL_net even if available
1442  --with-dll-directory=path
1443                          provide location of DLL files needed for build
1444                          [$(NSI_DLL_DIR)]
1445
1446Some influential environment variables:
1447  CC          C compiler command
1448  CFLAGS      C compiler flags
1449  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1450              nonstandard directory <lib dir>
1451  LIBS        libraries to pass to the linker, e.g. -l<library>
1452  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453              you have headers in a nonstandard directory <include dir>
1454  CPP         C preprocessor
1455  CXX         C++ compiler command
1456  CXXFLAGS    C++ compiler flags
1457  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1458              the first program found out of: `bison -y', `byacc', `yacc'.
1459  YFLAGS      The list of arguments that will be passed by default to $YACC.
1460              This script will default YFLAGS to the empty string to avoid a
1461              default value of `-d' given by some make applications.
1462  PKG_CONFIG  path to pkg-config utility
1463  PKG_CONFIG_PATH
1464              directories to add to pkg-config's search path
1465  PKG_CONFIG_LIBDIR
1466              path overriding pkg-config's built-in search path
1467  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1468  SDL_LIBS    linker flags for SDL, overriding pkg-config
1469  SDL_IMAGE_CFLAGS
1470              C compiler flags for SDL_IMAGE, overriding pkg-config
1471  SDL_IMAGE_LIBS
1472              linker flags for SDL_IMAGE, overriding pkg-config
1473  SDL_MIXER_CFLAGS
1474              C compiler flags for SDL_MIXER, overriding pkg-config
1475  SDL_MIXER_LIBS
1476              linker flags for SDL_MIXER, overriding pkg-config
1477  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1478  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1479  CAIRO_CFLAGS
1480              C compiler flags for CAIRO, overriding pkg-config
1481  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1482  SDL_NET_CFLAGS
1483              C compiler flags for SDL_NET, overriding pkg-config
1484  SDL_NET_LIBS
1485              linker flags for SDL_NET, overriding pkg-config
1486  XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1487  XML2_LIBS   linker flags for XML2, overriding pkg-config
1488  T4K_COMMON_CFLAGS
1489              C compiler flags for T4K_COMMON, overriding pkg-config
1490  T4K_COMMON_LIBS
1491              linker flags for T4K_COMMON, overriding pkg-config
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
1496Report bugs to <tuxmath-devel@lists.sourceforge.net>.
1497_ACEOF
1498ac_status=$?
1499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502  # If there are subdirs, report their specific --help.
1503  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504    test -d "$ac_dir" ||
1505      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506      continue
1507    ac_builddir=.
1508
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513  # A ".." for each directory in $ac_dir_suffix.
1514  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515  case $ac_top_builddir_sub in
1516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518  esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
1524
1525case $srcdir in
1526  .)  # We are building in place.
1527    ac_srcdir=.
1528    ac_top_srcdir=$ac_top_builddir_sub
1529    ac_abs_top_srcdir=$ac_pwd ;;
1530  [\\/]* | ?:[\\/]* )  # Absolute name.
1531    ac_srcdir=$srcdir$ac_dir_suffix;
1532    ac_top_srcdir=$srcdir
1533    ac_abs_top_srcdir=$srcdir ;;
1534  *) # Relative name.
1535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536    ac_top_srcdir=$ac_top_build_prefix$srcdir
1537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538esac
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541    cd "$ac_dir" || { ac_status=$?; continue; }
1542    # Check for guested configure.
1543    if test -f "$ac_srcdir/configure.gnu"; then
1544      echo &&
1545      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546    elif test -f "$ac_srcdir/configure"; then
1547      echo &&
1548      $SHELL "$ac_srcdir/configure" --help=recursive
1549    else
1550      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551    fi || ac_status=$?
1552    cd "$ac_pwd" || { ac_status=$?; break; }
1553  done
1554fi
1555
1556test -n "$ac_init_help" && exit $ac_status
1557if $ac_init_version; then
1558  cat <<\_ACEOF
1559Tux Of Math Command configure 2.0.3
1560generated by GNU Autoconf 2.67
1561
1562Copyright (C) 2010 Free Software Foundation, Inc.
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
1566  exit
1567fi
1568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext
1580  if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_compile") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest.$ac_objext; then :
1599  ac_retval=0
1600else
1601  $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604	ac_retval=1
1605fi
1606  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_try_cpp LINENO
1612# ----------------------
1613# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_cpp ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  if { { ac_try="$ac_cpp conftest.$ac_ext"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } > conftest.i && {
1633	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       }; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641    ac_retval=1
1642fi
1643  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_cpp
1647
1648# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651# the include files in INCLUDES and setting the cache variable VAR
1652# accordingly.
1653ac_fn_c_check_header_mongrel ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  if eval "test \"\${$3+set}\"" = set; then :
1657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658$as_echo_n "checking for $2... " >&6; }
1659if eval "test \"\${$3+set}\"" = set; then :
1660  $as_echo_n "(cached) " >&6
1661fi
1662eval ac_res=\$$3
1663	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665else
1666  # Is the header compilable?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668$as_echo_n "checking $2 usability... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h.  */
1671$4
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"; then :
1675  ac_header_compiler=yes
1676else
1677  ac_header_compiler=no
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681$as_echo "$ac_header_compiler" >&6; }
1682
1683# Is the header present?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685$as_echo_n "checking $2 presence... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h.  */
1688#include <$2>
1689_ACEOF
1690if ac_fn_c_try_cpp "$LINENO"; then :
1691  ac_header_preproc=yes
1692else
1693  ac_header_preproc=no
1694fi
1695rm -f conftest.err conftest.i conftest.$ac_ext
1696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697$as_echo "$ac_header_preproc" >&6; }
1698
1699# So?  What about this header?
1700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1701  yes:no: )
1702    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706    ;;
1707  no:yes:* )
1708    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1711$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1715$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1716    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718( $as_echo "## -------------------------------------------------- ##
1719## Report this to tuxmath-devel@lists.sourceforge.net ##
1720## -------------------------------------------------- ##"
1721     ) | sed "s/^/$as_me: WARNING:     /" >&2
1722    ;;
1723esac
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if eval "test \"\${$3+set}\"" = set; then :
1727  $as_echo_n "(cached) " >&6
1728else
1729  eval "$3=\$ac_header_compiler"
1730fi
1731eval ac_res=\$$3
1732	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734fi
1735  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737} # ac_fn_c_check_header_mongrel
1738
1739# ac_fn_c_try_run LINENO
1740# ----------------------
1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742# that executables *can* be run.
1743ac_fn_c_try_run ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  if { { ac_try="$ac_link"
1747case "(($ac_try" in
1748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749  *) ac_try_echo=$ac_try;;
1750esac
1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752$as_echo "$ac_try_echo"; } >&5
1753  (eval "$ac_link") 2>&5
1754  ac_status=$?
1755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757  { { case "(($ac_try" in
1758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759  *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763  (eval "$ac_try") 2>&5
1764  ac_status=$?
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; }; }; then :
1767  ac_retval=0
1768else
1769  $as_echo "$as_me: program exited with status $ac_status" >&5
1770       $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
1773       ac_retval=$ac_status
1774fi
1775  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777  as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_run
1780
1781# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1782# -------------------------------------------------------
1783# Tests whether HEADER exists and can be compiled using the include files in
1784# INCLUDES, setting the cache variable VAR accordingly.
1785ac_fn_c_check_header_compile ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if eval "test \"\${$3+set}\"" = set; then :
1791  $as_echo_n "(cached) " >&6
1792else
1793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794/* end confdefs.h.  */
1795$4
1796#include <$2>
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799  eval "$3=yes"
1800else
1801  eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_compile
1811
1812# ac_fn_cxx_try_compile LINENO
1813# ----------------------------
1814# Try to compile conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_cxx_try_compile ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  rm -f conftest.$ac_objext
1819  if { { ac_try="$ac_compile"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_compile") 2>conftest.err
1827  ac_status=$?
1828  if test -s conftest.err; then
1829    grep -v '^ *+' conftest.err >conftest.er1
1830    cat conftest.er1 >&5
1831    mv -f conftest.er1 conftest.err
1832  fi
1833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834  test $ac_status = 0; } && {
1835	 test -z "$ac_cxx_werror_flag" ||
1836	 test ! -s conftest.err
1837       } && test -s conftest.$ac_objext; then :
1838  ac_retval=0
1839else
1840  $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843	ac_retval=1
1844fi
1845  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846  as_fn_set_status $ac_retval
1847
1848} # ac_fn_cxx_try_compile
1849
1850# ac_fn_c_try_link LINENO
1851# -----------------------
1852# Try to link conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_c_try_link ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  rm -f conftest.$ac_objext conftest$ac_exeext
1857  if { { ac_try="$ac_link"
1858case "(($ac_try" in
1859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860  *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864  (eval "$ac_link") 2>conftest.err
1865  ac_status=$?
1866  if test -s conftest.err; then
1867    grep -v '^ *+' conftest.err >conftest.er1
1868    cat conftest.er1 >&5
1869    mv -f conftest.er1 conftest.err
1870  fi
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; } && {
1873	 test -z "$ac_c_werror_flag" ||
1874	 test ! -s conftest.err
1875       } && test -s conftest$ac_exeext && {
1876	 test "$cross_compiling" = yes ||
1877	 $as_test_x conftest$ac_exeext
1878       }; then :
1879  ac_retval=0
1880else
1881  $as_echo "$as_me: failed program was:" >&5
1882sed 's/^/| /' conftest.$ac_ext >&5
1883
1884	ac_retval=1
1885fi
1886  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888  # interfere with the next link command; also delete a directory that is
1889  # left behind by Apple's compiler.  We do this before executing the actions.
1890  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892  as_fn_set_status $ac_retval
1893
1894} # ac_fn_c_try_link
1895
1896# ac_fn_c_check_func LINENO FUNC VAR
1897# ----------------------------------
1898# Tests whether FUNC exists, setting the cache variable VAR accordingly
1899ac_fn_c_check_func ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval "test \"\${$3+set}\"" = set; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1911#define $2 innocuous_$2
1912
1913/* System header to define __stub macros and hopefully few prototypes,
1914    which can conflict with char $2 (); below.
1915    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916    <limits.h> exists even on freestanding compilers.  */
1917
1918#ifdef __STDC__
1919# include <limits.h>
1920#else
1921# include <assert.h>
1922#endif
1923
1924#undef $2
1925
1926/* Override any GCC internal prototype to avoid an error.
1927   Use char because int might match the return type of a GCC
1928   builtin and then its argument prototype would still apply.  */
1929#ifdef __cplusplus
1930extern "C"
1931#endif
1932char $2 ();
1933/* The GNU C library defines this for functions which it implements
1934    to always fail with ENOSYS.  Some functions are actually named
1935    something starting with __ and the normal name is an alias.  */
1936#if defined __stub_$2 || defined __stub___$2
1937choke me
1938#endif
1939
1940int
1941main ()
1942{
1943return $2 ();
1944  ;
1945  return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_link "$LINENO"; then :
1949  eval "$3=yes"
1950else
1951  eval "$3=no"
1952fi
1953rm -f core conftest.err conftest.$ac_objext \
1954    conftest$ac_exeext conftest.$ac_ext
1955fi
1956eval ac_res=\$$3
1957	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
1959  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960
1961} # ac_fn_c_check_func
1962
1963# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1964# -------------------------------------------
1965# Tests whether TYPE exists after having included INCLUDES, setting cache
1966# variable VAR accordingly.
1967ac_fn_c_check_type ()
1968{
1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if eval "test \"\${$3+set}\"" = set; then :
1973  $as_echo_n "(cached) " >&6
1974else
1975  eval "$3=no"
1976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h.  */
1978$4
1979int
1980main ()
1981{
1982if (sizeof ($2))
1983	 return 0;
1984  ;
1985  return 0;
1986}
1987_ACEOF
1988if ac_fn_c_try_compile "$LINENO"; then :
1989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h.  */
1991$4
1992int
1993main ()
1994{
1995if (sizeof (($2)))
1996	    return 0;
1997  ;
1998  return 0;
1999}
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002
2003else
2004  eval "$3=yes"
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009fi
2010eval ac_res=\$$3
2011	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012$as_echo "$ac_res" >&6; }
2013  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014
2015} # ac_fn_c_check_type
2016
2017# ac_fn_c_find_uintX_t LINENO BITS VAR
2018# ------------------------------------
2019# Finds an unsigned integer type with width BITS, setting cache variable VAR
2020# accordingly.
2021ac_fn_c_find_uintX_t ()
2022{
2023  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2025$as_echo_n "checking for uint$2_t... " >&6; }
2026if eval "test \"\${$3+set}\"" = set; then :
2027  $as_echo_n "(cached) " >&6
2028else
2029  eval "$3=no"
2030     # Order is important - never check a type that is potentially smaller
2031     # than half of the expected target width.
2032     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2033	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2034       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$ac_includes_default
2037int
2038main ()
2039{
2040static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2041test_array [0] = 0
2042
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048  case $ac_type in #(
2049  uint$2_t) :
2050    eval "$3=yes" ;; #(
2051  *) :
2052    eval "$3=\$ac_type" ;;
2053esac
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056       if eval test \"x\$"$3"\" = x"no"; then :
2057
2058else
2059  break
2060fi
2061     done
2062fi
2063eval ac_res=\$$3
2064	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067
2068} # ac_fn_c_find_uintX_t
2069cat >config.log <<_ACEOF
2070This file contains any messages produced by compilers while
2071running configure, to aid debugging if configure makes a mistake.
2072
2073It was created by Tux Of Math Command $as_me 2.0.3, which was
2074generated by GNU Autoconf 2.67.  Invocation command line was
2075
2076  $ $0 $@
2077
2078_ACEOF
2079exec 5>>config.log
2080{
2081cat <<_ASUNAME
2082## --------- ##
2083## Platform. ##
2084## --------- ##
2085
2086hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2087uname -m = `(uname -m) 2>/dev/null || echo unknown`
2088uname -r = `(uname -r) 2>/dev/null || echo unknown`
2089uname -s = `(uname -s) 2>/dev/null || echo unknown`
2090uname -v = `(uname -v) 2>/dev/null || echo unknown`
2091
2092/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2093/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2094
2095/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2096/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2097/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2098/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2099/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2100/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2101/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2102
2103_ASUNAME
2104
2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108  IFS=$as_save_IFS
2109  test -z "$as_dir" && as_dir=.
2110    $as_echo "PATH: $as_dir"
2111  done
2112IFS=$as_save_IFS
2113
2114} >&5
2115
2116cat >&5 <<_ACEOF
2117
2118
2119## ----------- ##
2120## Core tests. ##
2121## ----------- ##
2122
2123_ACEOF
2124
2125
2126# Keep a trace of the command line.
2127# Strip out --no-create and --no-recursion so they do not pile up.
2128# Strip out --silent because we don't want to record it for future runs.
2129# Also quote any args containing shell meta-characters.
2130# Make two passes to allow for proper duplicate-argument suppression.
2131ac_configure_args=
2132ac_configure_args0=
2133ac_configure_args1=
2134ac_must_keep_next=false
2135for ac_pass in 1 2
2136do
2137  for ac_arg
2138  do
2139    case $ac_arg in
2140    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2141    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2142    | -silent | --silent | --silen | --sile | --sil)
2143      continue ;;
2144    *\'*)
2145      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2146    esac
2147    case $ac_pass in
2148    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2149    2)
2150      as_fn_append ac_configure_args1 " '$ac_arg'"
2151      if test $ac_must_keep_next = true; then
2152	ac_must_keep_next=false # Got value, back to normal.
2153      else
2154	case $ac_arg in
2155	  *=* | --config-cache | -C | -disable-* | --disable-* \
2156	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2157	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2158	  | -with-* | --with-* | -without-* | --without-* | --x)
2159	    case "$ac_configure_args0 " in
2160	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2161	    esac
2162	    ;;
2163	  -* ) ac_must_keep_next=true ;;
2164	esac
2165      fi
2166      as_fn_append ac_configure_args " '$ac_arg'"
2167      ;;
2168    esac
2169  done
2170done
2171{ ac_configure_args0=; unset ac_configure_args0;}
2172{ ac_configure_args1=; unset ac_configure_args1;}
2173
2174# When interrupted or exit'd, cleanup temporary files, and complete
2175# config.log.  We remove comments because anyway the quotes in there
2176# would cause problems or look ugly.
2177# WARNING: Use '\'' to represent an apostrophe within the trap.
2178# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2179trap 'exit_status=$?
2180  # Save into config.log some information that might help in debugging.
2181  {
2182    echo
2183
2184    $as_echo "## ---------------- ##
2185## Cache variables. ##
2186## ---------------- ##"
2187    echo
2188    # The following way of writing the cache mishandles newlines in values,
2189(
2190  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2191    eval ac_val=\$$ac_var
2192    case $ac_val in #(
2193    *${as_nl}*)
2194      case $ac_var in #(
2195      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2196$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2197      esac
2198      case $ac_var in #(
2199      _ | IFS | as_nl) ;; #(
2200      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2201      *) { eval $ac_var=; unset $ac_var;} ;;
2202      esac ;;
2203    esac
2204  done
2205  (set) 2>&1 |
2206    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2207    *${as_nl}ac_space=\ *)
2208      sed -n \
2209	"s/'\''/'\''\\\\'\'''\''/g;
2210	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2211      ;; #(
2212    *)
2213      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2214      ;;
2215    esac |
2216    sort
2217)
2218    echo
2219
2220    $as_echo "## ----------------- ##
2221## Output variables. ##
2222## ----------------- ##"
2223    echo
2224    for ac_var in $ac_subst_vars
2225    do
2226      eval ac_val=\$$ac_var
2227      case $ac_val in
2228      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229      esac
2230      $as_echo "$ac_var='\''$ac_val'\''"
2231    done | sort
2232    echo
2233
2234    if test -n "$ac_subst_files"; then
2235      $as_echo "## ------------------- ##
2236## File substitutions. ##
2237## ------------------- ##"
2238      echo
2239      for ac_var in $ac_subst_files
2240      do
2241	eval ac_val=\$$ac_var
2242	case $ac_val in
2243	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244	esac
2245	$as_echo "$ac_var='\''$ac_val'\''"
2246      done | sort
2247      echo
2248    fi
2249
2250    if test -s confdefs.h; then
2251      $as_echo "## ----------- ##
2252## confdefs.h. ##
2253## ----------- ##"
2254      echo
2255      cat confdefs.h
2256      echo
2257    fi
2258    test "$ac_signal" != 0 &&
2259      $as_echo "$as_me: caught signal $ac_signal"
2260    $as_echo "$as_me: exit $exit_status"
2261  } >&5
2262  rm -f core *.core core.conftest.* &&
2263    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2264    exit $exit_status
2265' 0
2266for ac_signal in 1 2 13 15; do
2267  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2268done
2269ac_signal=0
2270
2271# confdefs.h avoids OS command line length limits that DEFS can exceed.
2272rm -f -r conftest* confdefs.h
2273
2274$as_echo "/* confdefs.h */" > confdefs.h
2275
2276# Predefined preprocessor variables.
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_NAME "$PACKAGE_NAME"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2284_ACEOF
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_VERSION "$PACKAGE_VERSION"
2288_ACEOF
2289
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_STRING "$PACKAGE_STRING"
2292_ACEOF
2293
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2296_ACEOF
2297
2298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE_URL "$PACKAGE_URL"
2300_ACEOF
2301
2302
2303# Let the site file select an alternate cache file if it wants to.
2304# Prefer an explicitly selected file to automatically selected ones.
2305ac_site_file1=NONE
2306ac_site_file2=NONE
2307if test -n "$CONFIG_SITE"; then
2308  # We do not want a PATH search for config.site.
2309  case $CONFIG_SITE in #((
2310    -*)  ac_site_file1=./$CONFIG_SITE;;
2311    */*) ac_site_file1=$CONFIG_SITE;;
2312    *)   ac_site_file1=./$CONFIG_SITE;;
2313  esac
2314elif test "x$prefix" != xNONE; then
2315  ac_site_file1=$prefix/share/config.site
2316  ac_site_file2=$prefix/etc/config.site
2317else
2318  ac_site_file1=$ac_default_prefix/share/config.site
2319  ac_site_file2=$ac_default_prefix/etc/config.site
2320fi
2321for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2322do
2323  test "x$ac_site_file" = xNONE && continue
2324  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2325    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2326$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2327    sed 's/^/| /' "$ac_site_file" >&5
2328    . "$ac_site_file" \
2329      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331as_fn_error $? "failed to load site script $ac_site_file
2332See \`config.log' for more details" "$LINENO" 5 ; }
2333  fi
2334done
2335
2336if test -r "$cache_file"; then
2337  # Some versions of bash will fail to source /dev/null (special files
2338  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2339  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2340    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2341$as_echo "$as_me: loading cache $cache_file" >&6;}
2342    case $cache_file in
2343      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2344      *)                      . "./$cache_file";;
2345    esac
2346  fi
2347else
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2349$as_echo "$as_me: creating cache $cache_file" >&6;}
2350  >$cache_file
2351fi
2352
2353gt_needs="$gt_needs "
2354as_fn_append ac_header_list " stdlib.h"
2355as_fn_append ac_header_list " unistd.h"
2356as_fn_append ac_header_list " sys/param.h"
2357# Check that the precious variables saved in the cache have kept the same
2358# value.
2359ac_cache_corrupted=false
2360for ac_var in $ac_precious_vars; do
2361  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362  eval ac_new_set=\$ac_env_${ac_var}_set
2363  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364  eval ac_new_val=\$ac_env_${ac_var}_value
2365  case $ac_old_set,$ac_new_set in
2366    set,)
2367      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369      ac_cache_corrupted=: ;;
2370    ,set)
2371      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373      ac_cache_corrupted=: ;;
2374    ,);;
2375    *)
2376      if test "x$ac_old_val" != "x$ac_new_val"; then
2377	# differences in whitespace do not lead to failure.
2378	ac_old_val_w=`echo x $ac_old_val`
2379	ac_new_val_w=`echo x $ac_new_val`
2380	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383	  ac_cache_corrupted=:
2384	else
2385	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387	  eval $ac_var=\$ac_old_val
2388	fi
2389	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2390$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2391	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2392$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2393      fi;;
2394  esac
2395  # Pass precious variables to config.status.
2396  if test "$ac_new_set" = set; then
2397    case $ac_new_val in
2398    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399    *) ac_arg=$ac_var=$ac_new_val ;;
2400    esac
2401    case " $ac_configure_args " in
2402      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2403      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404    esac
2405  fi
2406done
2407if $ac_cache_corrupted; then
2408  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2413fi
2414## -------------------- ##
2415## Main body of script. ##
2416## -------------------- ##
2417
2418ac_ext=c
2419ac_cpp='$CPP $CPPFLAGS'
2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423
2424
2425
2426
2427ac_aux_dir=
2428for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2429  if test -f "$ac_dir/install-sh"; then
2430    ac_aux_dir=$ac_dir
2431    ac_install_sh="$ac_aux_dir/install-sh -c"
2432    break
2433  elif test -f "$ac_dir/install.sh"; then
2434    ac_aux_dir=$ac_dir
2435    ac_install_sh="$ac_aux_dir/install.sh -c"
2436    break
2437  elif test -f "$ac_dir/shtool"; then
2438    ac_aux_dir=$ac_dir
2439    ac_install_sh="$ac_aux_dir/shtool install -c"
2440    break
2441  fi
2442done
2443if test -z "$ac_aux_dir"; then
2444  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2445fi
2446
2447# These three variables are undocumented and unsupported,
2448# and are intended to be withdrawn in a future Autoconf release.
2449# They can cause serious problems if a builder's source tree is in a directory
2450# whose full name contains unusual characters.
2451ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2452ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2453ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2454
2455
2456# Make sure we can run config.sub.
2457$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2458  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2459
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2461$as_echo_n "checking build system type... " >&6; }
2462if test "${ac_cv_build+set}" = set; then :
2463  $as_echo_n "(cached) " >&6
2464else
2465  ac_build_alias=$build_alias
2466test "x$ac_build_alias" = x &&
2467  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2468test "x$ac_build_alias" = x &&
2469  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2470ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2471  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2472
2473fi
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2475$as_echo "$ac_cv_build" >&6; }
2476case $ac_cv_build in
2477*-*-*) ;;
2478*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2479esac
2480build=$ac_cv_build
2481ac_save_IFS=$IFS; IFS='-'
2482set x $ac_cv_build
2483shift
2484build_cpu=$1
2485build_vendor=$2
2486shift; shift
2487# Remember, the first character of IFS is used to create $*,
2488# except with old shells:
2489build_os=$*
2490IFS=$ac_save_IFS
2491case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2492
2493
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2495$as_echo_n "checking host system type... " >&6; }
2496if test "${ac_cv_host+set}" = set; then :
2497  $as_echo_n "(cached) " >&6
2498else
2499  if test "x$host_alias" = x; then
2500  ac_cv_host=$ac_cv_build
2501else
2502  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2503    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2504fi
2505
2506fi
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2508$as_echo "$ac_cv_host" >&6; }
2509case $ac_cv_host in
2510*-*-*) ;;
2511*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2512esac
2513host=$ac_cv_host
2514ac_save_IFS=$IFS; IFS='-'
2515set x $ac_cv_host
2516shift
2517host_cpu=$1
2518host_vendor=$2
2519shift; shift
2520# Remember, the first character of IFS is used to create $*,
2521# except with old shells:
2522host_os=$*
2523IFS=$ac_save_IFS
2524case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2525
2526
2527
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2529$as_echo_n "checking target system type... " >&6; }
2530if test "${ac_cv_target+set}" = set; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  if test "x$target_alias" = x; then
2534  ac_cv_target=$ac_cv_host
2535else
2536  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2537    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2538fi
2539
2540fi
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2542$as_echo "$ac_cv_target" >&6; }
2543case $ac_cv_target in
2544*-*-*) ;;
2545*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2546esac
2547target=$ac_cv_target
2548ac_save_IFS=$IFS; IFS='-'
2549set x $ac_cv_target
2550shift
2551target_cpu=$1
2552target_vendor=$2
2553shift; shift
2554# Remember, the first character of IFS is used to create $*,
2555# except with old shells:
2556target_os=$*
2557IFS=$ac_save_IFS
2558case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2559
2560
2561# The aliases save the names the user supplied, while $host etc.
2562# will get canonicalized.
2563test -n "$target_alias" &&
2564  test "$program_prefix$program_suffix$program_transform_name" = \
2565    NONENONEs,x,x, &&
2566  program_prefix=${target_alias}-
2567
2568am__api_version='1.11'
2569
2570# Find a good install program.  We prefer a C program (faster),
2571# so one script is as good as another.  But avoid the broken or
2572# incompatible versions:
2573# SysV /etc/install, /usr/sbin/install
2574# SunOS /usr/etc/install
2575# IRIX /sbin/install
2576# AIX /bin/install
2577# AmigaOS /C/install, which installs bootblocks on floppy discs
2578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2579# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2581# OS/2's system install, which has a completely different semantic
2582# ./install, which can be erroneously created by make from ./install.sh.
2583# Reject install programs that cannot install multiple files.
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2585$as_echo_n "checking for a BSD-compatible install... " >&6; }
2586if test -z "$INSTALL"; then
2587if test "${ac_cv_path_install+set}" = set; then :
2588  $as_echo_n "(cached) " >&6
2589else
2590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591for as_dir in $PATH
2592do
2593  IFS=$as_save_IFS
2594  test -z "$as_dir" && as_dir=.
2595    # Account for people who put trailing slashes in PATH elements.
2596case $as_dir/ in #((
2597  ./ | .// | /[cC]/* | \
2598  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2599  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2600  /usr/ucb/* ) ;;
2601  *)
2602    # OSF1 and SCO ODT 3.0 have their own names for install.
2603    # Don't use installbsd from OSF since it installs stuff as root
2604    # by default.
2605    for ac_prog in ginstall scoinst install; do
2606      for ac_exec_ext in '' $ac_executable_extensions; do
2607	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2608	  if test $ac_prog = install &&
2609	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610	    # AIX install.  It has an incompatible calling convention.
2611	    :
2612	  elif test $ac_prog = install &&
2613	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2614	    # program-specific install script used by HP pwplus--don't use.
2615	    :
2616	  else
2617	    rm -rf conftest.one conftest.two conftest.dir
2618	    echo one > conftest.one
2619	    echo two > conftest.two
2620	    mkdir conftest.dir
2621	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2622	      test -s conftest.one && test -s conftest.two &&
2623	      test -s conftest.dir/conftest.one &&
2624	      test -s conftest.dir/conftest.two
2625	    then
2626	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2627	      break 3
2628	    fi
2629	  fi
2630	fi
2631      done
2632    done
2633    ;;
2634esac
2635
2636  done
2637IFS=$as_save_IFS
2638
2639rm -rf conftest.one conftest.two conftest.dir
2640
2641fi
2642  if test "${ac_cv_path_install+set}" = set; then
2643    INSTALL=$ac_cv_path_install
2644  else
2645    # As a last resort, use the slow shell script.  Don't cache a
2646    # value for INSTALL within a source directory, because that will
2647    # break other packages using the cache if that directory is
2648    # removed, or if the value is a relative name.
2649    INSTALL=$ac_install_sh
2650  fi
2651fi
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2653$as_echo "$INSTALL" >&6; }
2654
2655# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2656# It thinks the first close brace ends the variable substitution.
2657test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2658
2659test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2660
2661test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2664$as_echo_n "checking whether build environment is sane... " >&6; }
2665# Just in case
2666sleep 1
2667echo timestamp > conftest.file
2668# Reject unsafe characters in $srcdir or the absolute working directory
2669# name.  Accept space and tab only in the latter.
2670am_lf='
2671'
2672case `pwd` in
2673  *[\\\"\#\$\&\'\`$am_lf]*)
2674    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2675esac
2676case $srcdir in
2677  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2678    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2679esac
2680
2681# Do `set' in a subshell so we don't clobber the current shell's
2682# arguments.  Must try -L first in case configure is actually a
2683# symlink; some systems play weird games with the mod time of symlinks
2684# (eg FreeBSD returns the mod time of the symlink's containing
2685# directory).
2686if (
2687   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2688   if test "$*" = "X"; then
2689      # -L didn't work.
2690      set X `ls -t "$srcdir/configure" conftest.file`
2691   fi
2692   rm -f conftest.file
2693   if test "$*" != "X $srcdir/configure conftest.file" \
2694      && test "$*" != "X conftest.file $srcdir/configure"; then
2695
2696      # If neither matched, then we have a broken ls.  This can happen
2697      # if, for instance, CONFIG_SHELL is bash and it inherits a
2698      # broken ls alias from the environment.  This has actually
2699      # happened.  Such a system could not be considered "sane".
2700      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2701alias in your environment" "$LINENO" 5
2702   fi
2703
2704   test "$2" = conftest.file
2705   )
2706then
2707   # Ok.
2708   :
2709else
2710   as_fn_error $? "newly created file is older than distributed files!
2711Check your system clock" "$LINENO" 5
2712fi
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714$as_echo "yes" >&6; }
2715test "$program_prefix" != NONE &&
2716  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2717# Use a double $ so make ignores it.
2718test "$program_suffix" != NONE &&
2719  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2720# Double any \ or $.
2721# By default was `s,x,x', remove it if useless.
2722ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2723program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2724
2725# expand $ac_aux_dir to an absolute path
2726am_aux_dir=`cd $ac_aux_dir && pwd`
2727
2728if test x"${MISSING+set}" != xset; then
2729  case $am_aux_dir in
2730  *\ * | *\	*)
2731    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2732  *)
2733    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2734  esac
2735fi
2736# Use eval to expand $SHELL
2737if eval "$MISSING --run true"; then
2738  am_missing_run="$MISSING --run "
2739else
2740  am_missing_run=
2741  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2742$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2743fi
2744
2745if test x"${install_sh}" != xset; then
2746  case $am_aux_dir in
2747  *\ * | *\	*)
2748    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2749  *)
2750    install_sh="\${SHELL} $am_aux_dir/install-sh"
2751  esac
2752fi
2753
2754# Installed binaries are usually stripped using `strip' when the user
2755# run `make install-strip'.  However `strip' might not be the right
2756# tool to use in cross-compilation environments, therefore Automake
2757# will honor the `STRIP' environment variable to overrule this program.
2758if test "$cross_compiling" != no; then
2759  if test -n "$ac_tool_prefix"; then
2760  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2761set dummy ${ac_tool_prefix}strip; ac_word=$2
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763$as_echo_n "checking for $ac_word... " >&6; }
2764if test "${ac_cv_prog_STRIP+set}" = set; then :
2765  $as_echo_n "(cached) " >&6
2766else
2767  if test -n "$STRIP"; then
2768  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773  IFS=$as_save_IFS
2774  test -z "$as_dir" && as_dir=.
2775    for ac_exec_ext in '' $ac_executable_extensions; do
2776  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2778    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779    break 2
2780  fi
2781done
2782  done
2783IFS=$as_save_IFS
2784
2785fi
2786fi
2787STRIP=$ac_cv_prog_STRIP
2788if test -n "$STRIP"; then
2789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2790$as_echo "$STRIP" >&6; }
2791else
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793$as_echo "no" >&6; }
2794fi
2795
2796
2797fi
2798if test -z "$ac_cv_prog_STRIP"; then
2799  ac_ct_STRIP=$STRIP
2800  # Extract the first word of "strip", so it can be a program name with args.
2801set dummy strip; ac_word=$2
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2805  $as_echo_n "(cached) " >&6
2806else
2807  if test -n "$ac_ct_STRIP"; then
2808  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813  IFS=$as_save_IFS
2814  test -z "$as_dir" && as_dir=.
2815    for ac_exec_ext in '' $ac_executable_extensions; do
2816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817    ac_cv_prog_ac_ct_STRIP="strip"
2818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819    break 2
2820  fi
2821done
2822  done
2823IFS=$as_save_IFS
2824
2825fi
2826fi
2827ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2828if test -n "$ac_ct_STRIP"; then
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2830$as_echo "$ac_ct_STRIP" >&6; }
2831else
2832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833$as_echo "no" >&6; }
2834fi
2835
2836  if test "x$ac_ct_STRIP" = x; then
2837    STRIP=":"
2838  else
2839    case $cross_compiling:$ac_tool_warned in
2840yes:)
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2843ac_tool_warned=yes ;;
2844esac
2845    STRIP=$ac_ct_STRIP
2846  fi
2847else
2848  STRIP="$ac_cv_prog_STRIP"
2849fi
2850
2851fi
2852INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2853
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2855$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2856if test -z "$MKDIR_P"; then
2857  if test "${ac_cv_path_mkdir+set}" = set; then :
2858  $as_echo_n "(cached) " >&6
2859else
2860  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865    for ac_prog in mkdir gmkdir; do
2866	 for ac_exec_ext in '' $ac_executable_extensions; do
2867	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2868	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2869	     'mkdir (GNU coreutils) '* | \
2870	     'mkdir (coreutils) '* | \
2871	     'mkdir (fileutils) '4.1*)
2872	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2873	       break 3;;
2874	   esac
2875	 done
2876       done
2877  done
2878IFS=$as_save_IFS
2879
2880fi
2881
2882  test -d ./--version && rmdir ./--version
2883  if test "${ac_cv_path_mkdir+set}" = set; then
2884    MKDIR_P="$ac_cv_path_mkdir -p"
2885  else
2886    # As a last resort, use the slow shell script.  Don't cache a
2887    # value for MKDIR_P within a source directory, because that will
2888    # break other packages using the cache if that directory is
2889    # removed, or if the value is a relative name.
2890    MKDIR_P="$ac_install_sh -d"
2891  fi
2892fi
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2894$as_echo "$MKDIR_P" >&6; }
2895
2896mkdir_p="$MKDIR_P"
2897case $mkdir_p in
2898  [\\/$]* | ?:[\\/]*) ;;
2899  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2900esac
2901
2902for ac_prog in gawk mawk nawk awk
2903do
2904  # Extract the first word of "$ac_prog", so it can be a program name with args.
2905set dummy $ac_prog; ac_word=$2
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907$as_echo_n "checking for $ac_word... " >&6; }
2908if test "${ac_cv_prog_AWK+set}" = set; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  if test -n "$AWK"; then
2912  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917  IFS=$as_save_IFS
2918  test -z "$as_dir" && as_dir=.
2919    for ac_exec_ext in '' $ac_executable_extensions; do
2920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921    ac_cv_prog_AWK="$ac_prog"
2922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923    break 2
2924  fi
2925done
2926  done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931AWK=$ac_cv_prog_AWK
2932if test -n "$AWK"; then
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934$as_echo "$AWK" >&6; }
2935else
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938fi
2939
2940
2941  test -n "$AWK" && break
2942done
2943
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946set x ${MAKE-make}
2947ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2949  $as_echo_n "(cached) " >&6
2950else
2951  cat >conftest.make <<\_ACEOF
2952SHELL = /bin/sh
2953all:
2954	@echo '@@@%%%=$(MAKE)=@@@%%%'
2955_ACEOF
2956# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958  *@@@%%%=?*=@@@%%%*)
2959    eval ac_cv_prog_make_${ac_make}_set=yes;;
2960  *)
2961    eval ac_cv_prog_make_${ac_make}_set=no;;
2962esac
2963rm -f conftest.make
2964fi
2965if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967$as_echo "yes" >&6; }
2968  SET_MAKE=
2969else
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972  SET_MAKE="MAKE=${MAKE-make}"
2973fi
2974
2975rm -rf .tst 2>/dev/null
2976mkdir .tst 2>/dev/null
2977if test -d .tst; then
2978  am__leading_dot=.
2979else
2980  am__leading_dot=_
2981fi
2982rmdir .tst 2>/dev/null
2983
2984if test "`cd $srcdir && pwd`" != "`pwd`"; then
2985  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2986  # is not polluted with repeated "-I."
2987  am__isrc=' -I$(srcdir)'
2988  # test to see if srcdir already configured
2989  if test -f $srcdir/config.status; then
2990    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2991  fi
2992fi
2993
2994# test whether we have cygpath
2995if test -z "$CYGPATH_W"; then
2996  if (cygpath --version) >/dev/null 2>/dev/null; then
2997    CYGPATH_W='cygpath -w'
2998  else
2999    CYGPATH_W=echo
3000  fi
3001fi
3002
3003
3004# Define the identity of the package.
3005 PACKAGE='tuxmath'
3006 VERSION='2.0.3'
3007
3008
3009cat >>confdefs.h <<_ACEOF
3010#define PACKAGE "$PACKAGE"
3011_ACEOF
3012
3013
3014cat >>confdefs.h <<_ACEOF
3015#define VERSION "$VERSION"
3016_ACEOF
3017
3018# Some tools Automake needs.
3019
3020ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3021
3022
3023AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3024
3025
3026AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3027
3028
3029AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3030
3031
3032MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3033
3034# We need awk for the "check" target.  The system "awk" is bad on
3035# some platforms.
3036# Always define AMTAR for backward compatibility.
3037
3038AMTAR=${AMTAR-"${am_missing_run}tar"}
3039
3040am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3041
3042
3043
3044
3045
3046
3047ac_config_headers="$ac_config_headers config.h"
3048
3049
3050
3051NAME_VERSION=$PACKAGE-$VERSION
3052
3053
3054cat >>confdefs.h <<_ACEOF
3055#define PROGRAM_NAME "$PACKAGE"
3056_ACEOF
3057
3058
3059
3060
3061DEPDIR="${am__leading_dot}deps"
3062
3063ac_config_commands="$ac_config_commands depfiles"
3064
3065
3066am_make=${MAKE-make}
3067cat > confinc << 'END'
3068am__doit:
3069	@echo this is the am__doit target
3070.PHONY: am__doit
3071END
3072# If we don't find an include directive, just comment out the code.
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3074$as_echo_n "checking for style of include used by $am_make... " >&6; }
3075am__include="#"
3076am__quote=
3077_am_result=none
3078# First try GNU make style include.
3079echo "include confinc" > confmf
3080# Ignore all kinds of additional output from `make'.
3081case `$am_make -s -f confmf 2> /dev/null` in #(
3082*the\ am__doit\ target*)
3083  am__include=include
3084  am__quote=
3085  _am_result=GNU
3086  ;;
3087esac
3088# Now try BSD make style include.
3089if test "$am__include" = "#"; then
3090   echo '.include "confinc"' > confmf
3091   case `$am_make -s -f confmf 2> /dev/null` in #(
3092   *the\ am__doit\ target*)
3093     am__include=.include
3094     am__quote="\""
3095     _am_result=BSD
3096     ;;
3097   esac
3098fi
3099
3100
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3102$as_echo "$_am_result" >&6; }
3103rm -f confinc confmf
3104
3105# Check whether --enable-dependency-tracking was given.
3106if test "${enable_dependency_tracking+set}" = set; then :
3107  enableval=$enable_dependency_tracking;
3108fi
3109
3110if test "x$enable_dependency_tracking" != xno; then
3111  am_depcomp="$ac_aux_dir/depcomp"
3112  AMDEPBACKSLASH='\'
3113fi
3114 if test "x$enable_dependency_tracking" != xno; then
3115  AMDEP_TRUE=
3116  AMDEP_FALSE='#'
3117else
3118  AMDEP_TRUE='#'
3119  AMDEP_FALSE=
3120fi
3121
3122
3123ac_ext=c
3124ac_cpp='$CPP $CPPFLAGS'
3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127ac_compiler_gnu=$ac_cv_c_compiler_gnu
3128if test -n "$ac_tool_prefix"; then
3129  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3130set dummy ${ac_tool_prefix}gcc; ac_word=$2
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if test "${ac_cv_prog_CC+set}" = set; then :
3134  $as_echo_n "(cached) " >&6
3135else
3136  if test -n "$CC"; then
3137  ac_cv_prog_CC="$CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142  IFS=$as_save_IFS
3143  test -z "$as_dir" && as_dir=.
3144    for ac_exec_ext in '' $ac_executable_extensions; do
3145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148    break 2
3149  fi
3150done
3151  done
3152IFS=$as_save_IFS
3153
3154fi
3155fi
3156CC=$ac_cv_prog_CC
3157if test -n "$CC"; then
3158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159$as_echo "$CC" >&6; }
3160else
3161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
3163fi
3164
3165
3166fi
3167if test -z "$ac_cv_prog_CC"; then
3168  ac_ct_CC=$CC
3169  # Extract the first word of "gcc", so it can be a program name with args.
3170set dummy gcc; ac_word=$2
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172$as_echo_n "checking for $ac_word... " >&6; }
3173if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3174  $as_echo_n "(cached) " >&6
3175else
3176  if test -n "$ac_ct_CC"; then
3177  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182  IFS=$as_save_IFS
3183  test -z "$as_dir" && as_dir=.
3184    for ac_exec_ext in '' $ac_executable_extensions; do
3185  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186    ac_cv_prog_ac_ct_CC="gcc"
3187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188    break 2
3189  fi
3190done
3191  done
3192IFS=$as_save_IFS
3193
3194fi
3195fi
3196ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197if test -n "$ac_ct_CC"; then
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3199$as_echo "$ac_ct_CC" >&6; }
3200else
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205  if test "x$ac_ct_CC" = x; then
3206    CC=""
3207  else
3208    case $cross_compiling:$ac_tool_warned in
3209yes:)
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212ac_tool_warned=yes ;;
3213esac
3214    CC=$ac_ct_CC
3215  fi
3216else
3217  CC="$ac_cv_prog_CC"
3218fi
3219
3220if test -z "$CC"; then
3221          if test -n "$ac_tool_prefix"; then
3222    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3223set dummy ${ac_tool_prefix}cc; ac_word=$2
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225$as_echo_n "checking for $ac_word... " >&6; }
3226if test "${ac_cv_prog_CC+set}" = set; then :
3227  $as_echo_n "(cached) " >&6
3228else
3229  if test -n "$CC"; then
3230  ac_cv_prog_CC="$CC" # Let the user override the test.
3231else
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235  IFS=$as_save_IFS
3236  test -z "$as_dir" && as_dir=.
3237    for ac_exec_ext in '' $ac_executable_extensions; do
3238  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239    ac_cv_prog_CC="${ac_tool_prefix}cc"
3240    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241    break 2
3242  fi
3243done
3244  done
3245IFS=$as_save_IFS
3246
3247fi
3248fi
3249CC=$ac_cv_prog_CC
3250if test -n "$CC"; then
3251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252$as_echo "$CC" >&6; }
3253else
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256fi
3257
3258
3259  fi
3260fi
3261if test -z "$CC"; then
3262  # Extract the first word of "cc", so it can be a program name with args.
3263set dummy cc; ac_word=$2
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265$as_echo_n "checking for $ac_word... " >&6; }
3266if test "${ac_cv_prog_CC+set}" = set; then :
3267  $as_echo_n "(cached) " >&6
3268else
3269  if test -n "$CC"; then
3270  ac_cv_prog_CC="$CC" # Let the user override the test.
3271else
3272  ac_prog_rejected=no
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276  IFS=$as_save_IFS
3277  test -z "$as_dir" && as_dir=.
3278    for ac_exec_ext in '' $ac_executable_extensions; do
3279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3281       ac_prog_rejected=yes
3282       continue
3283     fi
3284    ac_cv_prog_CC="cc"
3285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286    break 2
3287  fi
3288done
3289  done
3290IFS=$as_save_IFS
3291
3292if test $ac_prog_rejected = yes; then
3293  # We found a bogon in the path, so make sure we never use it.
3294  set dummy $ac_cv_prog_CC
3295  shift
3296  if test $# != 0; then
3297    # We chose a different compiler from the bogus one.
3298    # However, it has the same basename, so the bogon will be chosen
3299    # first if we set CC to just the basename; use the full file name.
3300    shift
3301    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3302  fi
3303fi
3304fi
3305fi
3306CC=$ac_cv_prog_CC
3307if test -n "$CC"; then
3308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309$as_echo "$CC" >&6; }
3310else
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313fi
3314
3315
3316fi
3317if test -z "$CC"; then
3318  if test -n "$ac_tool_prefix"; then
3319  for ac_prog in cl.exe
3320  do
3321    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3322set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if test "${ac_cv_prog_CC+set}" = set; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -n "$CC"; then
3329  ac_cv_prog_CC="$CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348CC=$ac_cv_prog_CC
3349if test -n "$CC"; then
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351$as_echo "$CC" >&6; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358    test -n "$CC" && break
3359  done
3360fi
3361if test -z "$CC"; then
3362  ac_ct_CC=$CC
3363  for ac_prog in cl.exe
3364do
3365  # Extract the first word of "$ac_prog", so it can be a program name with args.
3366set dummy $ac_prog; ac_word=$2
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368$as_echo_n "checking for $ac_word... " >&6; }
3369if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3370  $as_echo_n "(cached) " >&6
3371else
3372  if test -n "$ac_ct_CC"; then
3373  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3374else
3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376for as_dir in $PATH
3377do
3378  IFS=$as_save_IFS
3379  test -z "$as_dir" && as_dir=.
3380    for ac_exec_ext in '' $ac_executable_extensions; do
3381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382    ac_cv_prog_ac_ct_CC="$ac_prog"
3383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384    break 2
3385  fi
3386done
3387  done
3388IFS=$as_save_IFS
3389
3390fi
3391fi
3392ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393if test -n "$ac_ct_CC"; then
3394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395$as_echo "$ac_ct_CC" >&6; }
3396else
3397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398$as_echo "no" >&6; }
3399fi
3400
3401
3402  test -n "$ac_ct_CC" && break
3403done
3404
3405  if test "x$ac_ct_CC" = x; then
3406    CC=""
3407  else
3408    case $cross_compiling:$ac_tool_warned in
3409yes:)
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3412ac_tool_warned=yes ;;
3413esac
3414    CC=$ac_ct_CC
3415  fi
3416fi
3417
3418fi
3419
3420
3421test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423as_fn_error $? "no acceptable C compiler found in \$PATH
3424See \`config.log' for more details" "$LINENO" 5 ; }
3425
3426# Provide some information about the compiler.
3427$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3428set X $ac_compile
3429ac_compiler=$2
3430for ac_option in --version -v -V -qversion; do
3431  { { ac_try="$ac_compiler $ac_option >&5"
3432case "(($ac_try" in
3433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434  *) ac_try_echo=$ac_try;;
3435esac
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
3438  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3439  ac_status=$?
3440  if test -s conftest.err; then
3441    sed '10a\
3442... rest of stderr output deleted ...
3443         10q' conftest.err >conftest.er1
3444    cat conftest.er1 >&5
3445  fi
3446  rm -f conftest.er1 conftest.err
3447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448  test $ac_status = 0; }
3449done
3450
3451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452/* end confdefs.h.  */
3453
3454int
3455main ()
3456{
3457
3458  ;
3459  return 0;
3460}
3461_ACEOF
3462ac_clean_files_save=$ac_clean_files
3463ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3464# Try to create an executable without -o first, disregard a.out.
3465# It will help us diagnose broken compilers, and finding out an intuition
3466# of exeext.
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3468$as_echo_n "checking whether the C compiler works... " >&6; }
3469ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3470
3471# The possible output files:
3472ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3473
3474ac_rmfiles=
3475for ac_file in $ac_files
3476do
3477  case $ac_file in
3478    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3480  esac
3481done
3482rm -f $ac_rmfiles
3483
3484if { { ac_try="$ac_link_default"
3485case "(($ac_try" in
3486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487  *) ac_try_echo=$ac_try;;
3488esac
3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3490$as_echo "$ac_try_echo"; } >&5
3491  (eval "$ac_link_default") 2>&5
3492  ac_status=$?
3493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494  test $ac_status = 0; }; then :
3495  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3496# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3497# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3498# so that the user can short-circuit this test for compilers unknown to
3499# Autoconf.
3500for ac_file in $ac_files ''
3501do
3502  test -f "$ac_file" || continue
3503  case $ac_file in
3504    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3505	;;
3506    [ab].out )
3507	# We found the default executable, but exeext='' is most
3508	# certainly right.
3509	break;;
3510    *.* )
3511	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3512	then :; else
3513	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3514	fi
3515	# We set ac_cv_exeext here because the later test for it is not
3516	# safe: cross compilers may not add the suffix if given an `-o'
3517	# argument, so we may need to know it at that point already.
3518	# Even if this section looks crufty: it has the advantage of
3519	# actually working.
3520	break;;
3521    * )
3522	break;;
3523  esac
3524done
3525test "$ac_cv_exeext" = no && ac_cv_exeext=
3526
3527else
3528  ac_file=''
3529fi
3530if test -z "$ac_file"; then :
3531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532$as_echo "no" >&6; }
3533$as_echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538as_fn_error 77 "C compiler cannot create executables
3539See \`config.log' for more details" "$LINENO" 5 ; }
3540else
3541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542$as_echo "yes" >&6; }
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3545$as_echo_n "checking for C compiler default output file name... " >&6; }
3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3547$as_echo "$ac_file" >&6; }
3548ac_exeext=$ac_cv_exeext
3549
3550rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3551ac_clean_files=$ac_clean_files_save
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3553$as_echo_n "checking for suffix of executables... " >&6; }
3554if { { ac_try="$ac_link"
3555case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561  (eval "$ac_link") 2>&5
3562  ac_status=$?
3563  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564  test $ac_status = 0; }; then :
3565  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3566# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3567# work properly (i.e., refer to `conftest.exe'), while it won't with
3568# `rm'.
3569for ac_file in conftest.exe conftest conftest.*; do
3570  test -f "$ac_file" || continue
3571  case $ac_file in
3572    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3573    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3574	  break;;
3575    * ) break;;
3576  esac
3577done
3578else
3579  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3582See \`config.log' for more details" "$LINENO" 5 ; }
3583fi
3584rm -f conftest conftest$ac_cv_exeext
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3586$as_echo "$ac_cv_exeext" >&6; }
3587
3588rm -f conftest.$ac_ext
3589EXEEXT=$ac_cv_exeext
3590ac_exeext=$EXEEXT
3591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h.  */
3593#include <stdio.h>
3594int
3595main ()
3596{
3597FILE *f = fopen ("conftest.out", "w");
3598 return ferror (f) || fclose (f) != 0;
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604ac_clean_files="$ac_clean_files conftest.out"
3605# Check that the compiler produces executables we can run.  If not, either
3606# the compiler is broken, or we cross compile.
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3608$as_echo_n "checking whether we are cross compiling... " >&6; }
3609if test "$cross_compiling" != yes; then
3610  { { ac_try="$ac_link"
3611case "(($ac_try" in
3612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613  *) ac_try_echo=$ac_try;;
3614esac
3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616$as_echo "$ac_try_echo"; } >&5
3617  (eval "$ac_link") 2>&5
3618  ac_status=$?
3619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620  test $ac_status = 0; }
3621  if { ac_try='./conftest$ac_cv_exeext'
3622  { { case "(($ac_try" in
3623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624  *) ac_try_echo=$ac_try;;
3625esac
3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627$as_echo "$ac_try_echo"; } >&5
3628  (eval "$ac_try") 2>&5
3629  ac_status=$?
3630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631  test $ac_status = 0; }; }; then
3632    cross_compiling=no
3633  else
3634    if test "$cross_compiling" = maybe; then
3635	cross_compiling=yes
3636    else
3637	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639as_fn_error $? "cannot run C compiled programs.
3640If you meant to cross compile, use \`--host'.
3641See \`config.log' for more details" "$LINENO" 5 ; }
3642    fi
3643  fi
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3646$as_echo "$cross_compiling" >&6; }
3647
3648rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3649ac_clean_files=$ac_clean_files_save
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3651$as_echo_n "checking for suffix of object files... " >&6; }
3652if test "${ac_cv_objext+set}" = set; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656/* end confdefs.h.  */
3657
3658int
3659main ()
3660{
3661
3662  ;
3663  return 0;
3664}
3665_ACEOF
3666rm -f conftest.o conftest.obj
3667if { { ac_try="$ac_compile"
3668case "(($ac_try" in
3669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670  *) ac_try_echo=$ac_try;;
3671esac
3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673$as_echo "$ac_try_echo"; } >&5
3674  (eval "$ac_compile") 2>&5
3675  ac_status=$?
3676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677  test $ac_status = 0; }; then :
3678  for ac_file in conftest.o conftest.obj conftest.*; do
3679  test -f "$ac_file" || continue;
3680  case $ac_file in
3681    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3682    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3683       break;;
3684  esac
3685done
3686else
3687  $as_echo "$as_me: failed program was:" >&5
3688sed 's/^/| /' conftest.$ac_ext >&5
3689
3690{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692as_fn_error $? "cannot compute suffix of object files: cannot compile
3693See \`config.log' for more details" "$LINENO" 5 ; }
3694fi
3695rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696fi
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3698$as_echo "$ac_cv_objext" >&6; }
3699OBJEXT=$ac_cv_objext
3700ac_objext=$OBJEXT
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3702$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3703if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3704  $as_echo_n "(cached) " >&6
3705else
3706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707/* end confdefs.h.  */
3708
3709int
3710main ()
3711{
3712#ifndef __GNUC__
3713       choke me
3714#endif
3715
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720if ac_fn_c_try_compile "$LINENO"; then :
3721  ac_compiler_gnu=yes
3722else
3723  ac_compiler_gnu=no
3724fi
3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726ac_cv_c_compiler_gnu=$ac_compiler_gnu
3727
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3730$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731if test $ac_compiler_gnu = yes; then
3732  GCC=yes
3733else
3734  GCC=
3735fi
3736ac_test_CFLAGS=${CFLAGS+set}
3737ac_save_CFLAGS=$CFLAGS
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3739$as_echo_n "checking whether $CC accepts -g... " >&6; }
3740if test "${ac_cv_prog_cc_g+set}" = set; then :
3741  $as_echo_n "(cached) " >&6
3742else
3743  ac_save_c_werror_flag=$ac_c_werror_flag
3744   ac_c_werror_flag=yes
3745   ac_cv_prog_cc_g=no
3746   CFLAGS="-g"
3747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748/* end confdefs.h.  */
3749
3750int
3751main ()
3752{
3753
3754  ;
3755  return 0;
3756}
3757_ACEOF
3758if ac_fn_c_try_compile "$LINENO"; then :
3759  ac_cv_prog_cc_g=yes
3760else
3761  CFLAGS=""
3762      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763/* end confdefs.h.  */
3764
3765int
3766main ()
3767{
3768
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773if ac_fn_c_try_compile "$LINENO"; then :
3774
3775else
3776  ac_c_werror_flag=$ac_save_c_werror_flag
3777	 CFLAGS="-g"
3778	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779/* end confdefs.h.  */
3780
3781int
3782main ()
3783{
3784
3785  ;
3786  return 0;
3787}
3788_ACEOF
3789if ac_fn_c_try_compile "$LINENO"; then :
3790  ac_cv_prog_cc_g=yes
3791fi
3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793fi
3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797   ac_c_werror_flag=$ac_save_c_werror_flag
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3800$as_echo "$ac_cv_prog_cc_g" >&6; }
3801if test "$ac_test_CFLAGS" = set; then
3802  CFLAGS=$ac_save_CFLAGS
3803elif test $ac_cv_prog_cc_g = yes; then
3804  if test "$GCC" = yes; then
3805    CFLAGS="-g -O2"
3806  else
3807    CFLAGS="-g"
3808  fi
3809else
3810  if test "$GCC" = yes; then
3811    CFLAGS="-O2"
3812  else
3813    CFLAGS=
3814  fi
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3817$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3818if test "${ac_cv_prog_cc_c89+set}" = set; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  ac_cv_prog_cc_c89=no
3822ac_save_CC=$CC
3823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825#include <stdarg.h>
3826#include <stdio.h>
3827#include <sys/types.h>
3828#include <sys/stat.h>
3829/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3830struct buf { int x; };
3831FILE * (*rcsopen) (struct buf *, struct stat *, int);
3832static char *e (p, i)
3833     char **p;
3834     int i;
3835{
3836  return p[i];
3837}
3838static char *f (char * (*g) (char **, int), char **p, ...)
3839{
3840  char *s;
3841  va_list v;
3842  va_start (v,p);
3843  s = g (p, va_arg (v,int));
3844  va_end (v);
3845  return s;
3846}
3847
3848/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3849   function prototypes and stuff, but not '\xHH' hex character constants.
3850   These don't provoke an error unfortunately, instead are silently treated
3851   as 'x'.  The following induces an error, until -std is added to get
3852   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3853   array size at least.  It's necessary to write '\x00'==0 to get something
3854   that's true only with -std.  */
3855int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856
3857/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3858   inside strings and character constants.  */
3859#define FOO(x) 'x'
3860int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3861
3862int test (int i, double x);
3863struct s1 {int (*f) (int a);};
3864struct s2 {int (*f) (double a);};
3865int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3866int argc;
3867char **argv;
3868int
3869main ()
3870{
3871return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3877	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3878do
3879  CC="$ac_save_CC $ac_arg"
3880  if ac_fn_c_try_compile "$LINENO"; then :
3881  ac_cv_prog_cc_c89=$ac_arg
3882fi
3883rm -f core conftest.err conftest.$ac_objext
3884  test "x$ac_cv_prog_cc_c89" != "xno" && break
3885done
3886rm -f conftest.$ac_ext
3887CC=$ac_save_CC
3888
3889fi
3890# AC_CACHE_VAL
3891case "x$ac_cv_prog_cc_c89" in
3892  x)
3893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3894$as_echo "none needed" >&6; } ;;
3895  xno)
3896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3897$as_echo "unsupported" >&6; } ;;
3898  *)
3899    CC="$CC $ac_cv_prog_cc_c89"
3900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3901$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3902esac
3903if test "x$ac_cv_prog_cc_c89" != xno; then :
3904
3905fi
3906
3907ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912
3913depcc="$CC"   am_compiler_list=
3914
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3916$as_echo_n "checking dependency style of $depcc... " >&6; }
3917if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3918  $as_echo_n "(cached) " >&6
3919else
3920  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3921  # We make a subdir and do the tests there.  Otherwise we can end up
3922  # making bogus files that we don't know about and never remove.  For
3923  # instance it was reported that on HP-UX the gcc test will end up
3924  # making a dummy file named `D' -- because `-MD' means `put the output
3925  # in D'.
3926  mkdir conftest.dir
3927  # Copy depcomp to subdir because otherwise we won't find it if we're
3928  # using a relative directory.
3929  cp "$am_depcomp" conftest.dir
3930  cd conftest.dir
3931  # We will build objects and dependencies in a subdirectory because
3932  # it helps to detect inapplicable dependency modes.  For instance
3933  # both Tru64's cc and ICC support -MD to output dependencies as a
3934  # side effect of compilation, but ICC will put the dependencies in
3935  # the current directory while Tru64 will put them in the object
3936  # directory.
3937  mkdir sub
3938
3939  am_cv_CC_dependencies_compiler_type=none
3940  if test "$am_compiler_list" = ""; then
3941     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942  fi
3943  am__universal=false
3944  case " $depcc " in #(
3945     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3946     esac
3947
3948  for depmode in $am_compiler_list; do
3949    # Setup a source with many dependencies, because some compilers
3950    # like to wrap large dependency lists on column 80 (with \), and
3951    # we should not choose a depcomp mode which is confused by this.
3952    #
3953    # We need to recreate these files for each test, as the compiler may
3954    # overwrite some of them when testing with obscure command lines.
3955    # This happens at least with the AIX C compiler.
3956    : > sub/conftest.c
3957    for i in 1 2 3 4 5 6; do
3958      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3959      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3960      # Solaris 8's {/usr,}/bin/sh.
3961      touch sub/conftst$i.h
3962    done
3963    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964
3965    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3966    # mode.  It turns out that the SunPro C++ compiler does not properly
3967    # handle `-M -o', and we need to detect this.  Also, some Intel
3968    # versions had trouble with output in subdirs
3969    am__obj=sub/conftest.${OBJEXT-o}
3970    am__minus_obj="-o $am__obj"
3971    case $depmode in
3972    gcc)
3973      # This depmode causes a compiler race in universal mode.
3974      test "$am__universal" = false || continue
3975      ;;
3976    nosideeffect)
3977      # after this tag, mechanisms are not by side-effect, so they'll
3978      # only be used when explicitly requested
3979      if test "x$enable_dependency_tracking" = xyes; then
3980	continue
3981      else
3982	break
3983      fi
3984      ;;
3985    msvisualcpp | msvcmsys)
3986      # This compiler won't grok `-c -o', but also, the minuso test has
3987      # not run yet.  These depmodes are late enough in the game, and
3988      # so weak that their functioning should not be impacted.
3989      am__obj=conftest.${OBJEXT-o}
3990      am__minus_obj=
3991      ;;
3992    none) break ;;
3993    esac
3994    if depmode=$depmode \
3995       source=sub/conftest.c object=$am__obj \
3996       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3997       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3998         >/dev/null 2>conftest.err &&
3999       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4000       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4001       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4002       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4003      # icc doesn't choke on unknown options, it will just issue warnings
4004      # or remarks (even with -Werror).  So we grep stderr for any message
4005      # that says an option was ignored or not supported.
4006      # When given -MP, icc 7.0 and 7.1 complain thusly:
4007      #   icc: Command line warning: ignoring option '-M'; no argument required
4008      # The diagnosis changed in icc 8.0:
4009      #   icc: Command line remark: option '-MP' not supported
4010      if (grep 'ignoring option' conftest.err ||
4011          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4012        am_cv_CC_dependencies_compiler_type=$depmode
4013        break
4014      fi
4015    fi
4016  done
4017
4018  cd ..
4019  rm -rf conftest.dir
4020else
4021  am_cv_CC_dependencies_compiler_type=none
4022fi
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4028
4029 if
4030  test "x$enable_dependency_tracking" != xno \
4031  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4032  am__fastdepCC_TRUE=
4033  am__fastdepCC_FALSE='#'
4034else
4035  am__fastdepCC_TRUE='#'
4036  am__fastdepCC_FALSE=
4037fi
4038
4039
4040
4041ac_ext=c
4042ac_cpp='$CPP $CPPFLAGS'
4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4047$as_echo_n "checking how to run the C preprocessor... " >&6; }
4048# On Suns, sometimes $CPP names a directory.
4049if test -n "$CPP" && test -d "$CPP"; then
4050  CPP=
4051fi
4052if test -z "$CPP"; then
4053  if test "${ac_cv_prog_CPP+set}" = set; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056      # Double quotes because CPP needs to be expanded
4057    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4058    do
4059      ac_preproc_ok=false
4060for ac_c_preproc_warn_flag in '' yes
4061do
4062  # Use a header file that comes with gcc, so configuring glibc
4063  # with a fresh cross-compiler works.
4064  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4065  # <limits.h> exists even on freestanding compilers.
4066  # On the NeXT, cc -E runs the code through the compiler's parser,
4067  # not just through cpp. "Syntax error" is here to catch this case.
4068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070#ifdef __STDC__
4071# include <limits.h>
4072#else
4073# include <assert.h>
4074#endif
4075		     Syntax error
4076_ACEOF
4077if ac_fn_c_try_cpp "$LINENO"; then :
4078
4079else
4080  # Broken: fails on valid input.
4081continue
4082fi
4083rm -f conftest.err conftest.i conftest.$ac_ext
4084
4085  # OK, works on sane cases.  Now check whether nonexistent headers
4086  # can be detected and how.
4087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#include <ac_nonexistent.h>
4090_ACEOF
4091if ac_fn_c_try_cpp "$LINENO"; then :
4092  # Broken: success on invalid input.
4093continue
4094else
4095  # Passes both tests.
4096ac_preproc_ok=:
4097break
4098fi
4099rm -f conftest.err conftest.i conftest.$ac_ext
4100
4101done
4102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4103rm -f conftest.i conftest.err conftest.$ac_ext
4104if $ac_preproc_ok; then :
4105  break
4106fi
4107
4108    done
4109    ac_cv_prog_CPP=$CPP
4110
4111fi
4112  CPP=$ac_cv_prog_CPP
4113else
4114  ac_cv_prog_CPP=$CPP
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4117$as_echo "$CPP" >&6; }
4118ac_preproc_ok=false
4119for ac_c_preproc_warn_flag in '' yes
4120do
4121  # Use a header file that comes with gcc, so configuring glibc
4122  # with a fresh cross-compiler works.
4123  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4124  # <limits.h> exists even on freestanding compilers.
4125  # On the NeXT, cc -E runs the code through the compiler's parser,
4126  # not just through cpp. "Syntax error" is here to catch this case.
4127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h.  */
4129#ifdef __STDC__
4130# include <limits.h>
4131#else
4132# include <assert.h>
4133#endif
4134		     Syntax error
4135_ACEOF
4136if ac_fn_c_try_cpp "$LINENO"; then :
4137
4138else
4139  # Broken: fails on valid input.
4140continue
4141fi
4142rm -f conftest.err conftest.i conftest.$ac_ext
4143
4144  # OK, works on sane cases.  Now check whether nonexistent headers
4145  # can be detected and how.
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148#include <ac_nonexistent.h>
4149_ACEOF
4150if ac_fn_c_try_cpp "$LINENO"; then :
4151  # Broken: success on invalid input.
4152continue
4153else
4154  # Passes both tests.
4155ac_preproc_ok=:
4156break
4157fi
4158rm -f conftest.err conftest.i conftest.$ac_ext
4159
4160done
4161# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4162rm -f conftest.i conftest.err conftest.$ac_ext
4163if $ac_preproc_ok; then :
4164
4165else
4166  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4169See \`config.log' for more details" "$LINENO" 5 ; }
4170fi
4171
4172ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
4178
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4180$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4181if test "${ac_cv_path_GREP+set}" = set; then :
4182  $as_echo_n "(cached) " >&6
4183else
4184  if test -z "$GREP"; then
4185  ac_path_GREP_found=false
4186  # Loop through the user's path and test for each of PROGNAME-LIST
4187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4189do
4190  IFS=$as_save_IFS
4191  test -z "$as_dir" && as_dir=.
4192    for ac_prog in grep ggrep; do
4193    for ac_exec_ext in '' $ac_executable_extensions; do
4194      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4195      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4196# Check for GNU ac_path_GREP and select it if it is found.
4197  # Check for GNU $ac_path_GREP
4198case `"$ac_path_GREP" --version 2>&1` in
4199*GNU*)
4200  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4201*)
4202  ac_count=0
4203  $as_echo_n 0123456789 >"conftest.in"
4204  while :
4205  do
4206    cat "conftest.in" "conftest.in" >"conftest.tmp"
4207    mv "conftest.tmp" "conftest.in"
4208    cp "conftest.in" "conftest.nl"
4209    $as_echo 'GREP' >> "conftest.nl"
4210    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212    as_fn_arith $ac_count + 1 && ac_count=$as_val
4213    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4214      # Best one so far, save it but keep looking for a better one
4215      ac_cv_path_GREP="$ac_path_GREP"
4216      ac_path_GREP_max=$ac_count
4217    fi
4218    # 10*(2^10) chars as input seems more than enough
4219    test $ac_count -gt 10 && break
4220  done
4221  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4222esac
4223
4224      $ac_path_GREP_found && break 3
4225    done
4226  done
4227  done
4228IFS=$as_save_IFS
4229  if test -z "$ac_cv_path_GREP"; then
4230    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4231  fi
4232else
4233  ac_cv_path_GREP=$GREP
4234fi
4235
4236fi
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4238$as_echo "$ac_cv_path_GREP" >&6; }
4239 GREP="$ac_cv_path_GREP"
4240
4241
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4243$as_echo_n "checking for egrep... " >&6; }
4244if test "${ac_cv_path_EGREP+set}" = set; then :
4245  $as_echo_n "(cached) " >&6
4246else
4247  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4248   then ac_cv_path_EGREP="$GREP -E"
4249   else
4250     if test -z "$EGREP"; then
4251  ac_path_EGREP_found=false
4252  # Loop through the user's path and test for each of PROGNAME-LIST
4253  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4255do
4256  IFS=$as_save_IFS
4257  test -z "$as_dir" && as_dir=.
4258    for ac_prog in egrep; do
4259    for ac_exec_ext in '' $ac_executable_extensions; do
4260      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4261      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4262# Check for GNU ac_path_EGREP and select it if it is found.
4263  # Check for GNU $ac_path_EGREP
4264case `"$ac_path_EGREP" --version 2>&1` in
4265*GNU*)
4266  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4267*)
4268  ac_count=0
4269  $as_echo_n 0123456789 >"conftest.in"
4270  while :
4271  do
4272    cat "conftest.in" "conftest.in" >"conftest.tmp"
4273    mv "conftest.tmp" "conftest.in"
4274    cp "conftest.in" "conftest.nl"
4275    $as_echo 'EGREP' >> "conftest.nl"
4276    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4277    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4278    as_fn_arith $ac_count + 1 && ac_count=$as_val
4279    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4280      # Best one so far, save it but keep looking for a better one
4281      ac_cv_path_EGREP="$ac_path_EGREP"
4282      ac_path_EGREP_max=$ac_count
4283    fi
4284    # 10*(2^10) chars as input seems more than enough
4285    test $ac_count -gt 10 && break
4286  done
4287  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4288esac
4289
4290      $ac_path_EGREP_found && break 3
4291    done
4292  done
4293  done
4294IFS=$as_save_IFS
4295  if test -z "$ac_cv_path_EGREP"; then
4296    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4297  fi
4298else
4299  ac_cv_path_EGREP=$EGREP
4300fi
4301
4302   fi
4303fi
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4305$as_echo "$ac_cv_path_EGREP" >&6; }
4306 EGREP="$ac_cv_path_EGREP"
4307
4308
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4310$as_echo_n "checking for ANSI C header files... " >&6; }
4311if test "${ac_cv_header_stdc+set}" = set; then :
4312  $as_echo_n "(cached) " >&6
4313else
4314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h.  */
4316#include <stdlib.h>
4317#include <stdarg.h>
4318#include <string.h>
4319#include <float.h>
4320
4321int
4322main ()
4323{
4324
4325  ;
4326  return 0;
4327}
4328_ACEOF
4329if ac_fn_c_try_compile "$LINENO"; then :
4330  ac_cv_header_stdc=yes
4331else
4332  ac_cv_header_stdc=no
4333fi
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335
4336if test $ac_cv_header_stdc = yes; then
4337  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339/* end confdefs.h.  */
4340#include <string.h>
4341
4342_ACEOF
4343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4344  $EGREP "memchr" >/dev/null 2>&1; then :
4345
4346else
4347  ac_cv_header_stdc=no
4348fi
4349rm -f conftest*
4350
4351fi
4352
4353if test $ac_cv_header_stdc = yes; then
4354  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h.  */
4357#include <stdlib.h>
4358
4359_ACEOF
4360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4361  $EGREP "free" >/dev/null 2>&1; then :
4362
4363else
4364  ac_cv_header_stdc=no
4365fi
4366rm -f conftest*
4367
4368fi
4369
4370if test $ac_cv_header_stdc = yes; then
4371  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4372  if test "$cross_compiling" = yes; then :
4373  :
4374else
4375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h.  */
4377#include <ctype.h>
4378#include <stdlib.h>
4379#if ((' ' & 0x0FF) == 0x020)
4380# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4381# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4382#else
4383# define ISLOWER(c) \
4384		   (('a' <= (c) && (c) <= 'i') \
4385		     || ('j' <= (c) && (c) <= 'r') \
4386		     || ('s' <= (c) && (c) <= 'z'))
4387# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4388#endif
4389
4390#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4391int
4392main ()
4393{
4394  int i;
4395  for (i = 0; i < 256; i++)
4396    if (XOR (islower (i), ISLOWER (i))
4397	|| toupper (i) != TOUPPER (i))
4398      return 2;
4399  return 0;
4400}
4401_ACEOF
4402if ac_fn_c_try_run "$LINENO"; then :
4403
4404else
4405  ac_cv_header_stdc=no
4406fi
4407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4408  conftest.$ac_objext conftest.beam conftest.$ac_ext
4409fi
4410
4411fi
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4414$as_echo "$ac_cv_header_stdc" >&6; }
4415if test $ac_cv_header_stdc = yes; then
4416
4417$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4418
4419fi
4420
4421# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4422for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4423		  inttypes.h stdint.h unistd.h
4424do :
4425  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4426ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4427"
4428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4429  cat >>confdefs.h <<_ACEOF
4430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4431_ACEOF
4432
4433fi
4434
4435done
4436
4437
4438
4439  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4440if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4441  MINIX=yes
4442else
4443  MINIX=
4444fi
4445
4446
4447  if test "$MINIX" = yes; then
4448
4449$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4450
4451
4452$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4453
4454
4455$as_echo "#define _MINIX 1" >>confdefs.h
4456
4457  fi
4458
4459
4460  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4461$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4462if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4463  $as_echo_n "(cached) " >&6
4464else
4465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466/* end confdefs.h.  */
4467
4468#	  define __EXTENSIONS__ 1
4469	  $ac_includes_default
4470int
4471main ()
4472{
4473
4474  ;
4475  return 0;
4476}
4477_ACEOF
4478if ac_fn_c_try_compile "$LINENO"; then :
4479  ac_cv_safe_to_define___extensions__=yes
4480else
4481  ac_cv_safe_to_define___extensions__=no
4482fi
4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4486$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4487  test $ac_cv_safe_to_define___extensions__ = yes &&
4488    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4489
4490  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4491
4492  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4493
4494  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4495
4496  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4497
4498
4499
4500
4501#LT_INIT
4502if test -n "$ac_tool_prefix"; then
4503  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4504set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if test "${ac_cv_prog_RANLIB+set}" = set; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  if test -n "$RANLIB"; then
4511  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516  IFS=$as_save_IFS
4517  test -z "$as_dir" && as_dir=.
4518    for ac_exec_ext in '' $ac_executable_extensions; do
4519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522    break 2
4523  fi
4524done
4525  done
4526IFS=$as_save_IFS
4527
4528fi
4529fi
4530RANLIB=$ac_cv_prog_RANLIB
4531if test -n "$RANLIB"; then
4532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4533$as_echo "$RANLIB" >&6; }
4534else
4535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536$as_echo "no" >&6; }
4537fi
4538
4539
4540fi
4541if test -z "$ac_cv_prog_RANLIB"; then
4542  ac_ct_RANLIB=$RANLIB
4543  # Extract the first word of "ranlib", so it can be a program name with args.
4544set dummy ranlib; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
4547if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test -n "$ac_ct_RANLIB"; then
4551  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556  IFS=$as_save_IFS
4557  test -z "$as_dir" && as_dir=.
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560    ac_cv_prog_ac_ct_RANLIB="ranlib"
4561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568fi
4569fi
4570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4571if test -n "$ac_ct_RANLIB"; then
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4573$as_echo "$ac_ct_RANLIB" >&6; }
4574else
4575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576$as_echo "no" >&6; }
4577fi
4578
4579  if test "x$ac_ct_RANLIB" = x; then
4580    RANLIB=":"
4581  else
4582    case $cross_compiling:$ac_tool_warned in
4583yes:)
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586ac_tool_warned=yes ;;
4587esac
4588    RANLIB=$ac_ct_RANLIB
4589  fi
4590else
4591  RANLIB="$ac_cv_prog_RANLIB"
4592fi
4593
4594
4595# ----------------------------------------------------------------------
4596# Checks for programs.
4597# ----------------------------------------------------------------------
4598
4599ac_ext=cpp
4600ac_cpp='$CXXCPP $CPPFLAGS'
4601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4604if test -z "$CXX"; then
4605  if test -n "$CCC"; then
4606    CXX=$CCC
4607  else
4608    if test -n "$ac_tool_prefix"; then
4609  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4610  do
4611    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if test "${ac_cv_prog_CXX+set}" = set; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  if test -n "$CXX"; then
4619  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624  IFS=$as_save_IFS
4625  test -z "$as_dir" && as_dir=.
4626    for ac_exec_ext in '' $ac_executable_extensions; do
4627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630    break 2
4631  fi
4632done
4633  done
4634IFS=$as_save_IFS
4635
4636fi
4637fi
4638CXX=$ac_cv_prog_CXX
4639if test -n "$CXX"; then
4640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4641$as_echo "$CXX" >&6; }
4642else
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644$as_echo "no" >&6; }
4645fi
4646
4647
4648    test -n "$CXX" && break
4649  done
4650fi
4651if test -z "$CXX"; then
4652  ac_ct_CXX=$CXX
4653  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4654do
4655  # Extract the first word of "$ac_prog", so it can be a program name with args.
4656set dummy $ac_prog; ac_word=$2
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658$as_echo_n "checking for $ac_word... " >&6; }
4659if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4660  $as_echo_n "(cached) " >&6
4661else
4662  if test -n "$ac_ct_CXX"; then
4663  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  test -z "$as_dir" && as_dir=.
4670    for ac_exec_ext in '' $ac_executable_extensions; do
4671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672    ac_cv_prog_ac_ct_CXX="$ac_prog"
4673    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674    break 2
4675  fi
4676done
4677  done
4678IFS=$as_save_IFS
4679
4680fi
4681fi
4682ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4683if test -n "$ac_ct_CXX"; then
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4685$as_echo "$ac_ct_CXX" >&6; }
4686else
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689fi
4690
4691
4692  test -n "$ac_ct_CXX" && break
4693done
4694
4695  if test "x$ac_ct_CXX" = x; then
4696    CXX="g++"
4697  else
4698    case $cross_compiling:$ac_tool_warned in
4699yes:)
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702ac_tool_warned=yes ;;
4703esac
4704    CXX=$ac_ct_CXX
4705  fi
4706fi
4707
4708  fi
4709fi
4710# Provide some information about the compiler.
4711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4712set X $ac_compile
4713ac_compiler=$2
4714for ac_option in --version -v -V -qversion; do
4715  { { ac_try="$ac_compiler $ac_option >&5"
4716case "(($ac_try" in
4717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718  *) ac_try_echo=$ac_try;;
4719esac
4720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721$as_echo "$ac_try_echo"; } >&5
4722  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4723  ac_status=$?
4724  if test -s conftest.err; then
4725    sed '10a\
4726... rest of stderr output deleted ...
4727         10q' conftest.err >conftest.er1
4728    cat conftest.er1 >&5
4729  fi
4730  rm -f conftest.er1 conftest.err
4731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732  test $ac_status = 0; }
4733done
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4736$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4737if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4738  $as_echo_n "(cached) " >&6
4739else
4740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741/* end confdefs.h.  */
4742
4743int
4744main ()
4745{
4746#ifndef __GNUC__
4747       choke me
4748#endif
4749
4750  ;
4751  return 0;
4752}
4753_ACEOF
4754if ac_fn_cxx_try_compile "$LINENO"; then :
4755  ac_compiler_gnu=yes
4756else
4757  ac_compiler_gnu=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4764$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4765if test $ac_compiler_gnu = yes; then
4766  GXX=yes
4767else
4768  GXX=
4769fi
4770ac_test_CXXFLAGS=${CXXFLAGS+set}
4771ac_save_CXXFLAGS=$CXXFLAGS
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4773$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4774if test "${ac_cv_prog_cxx_g+set}" = set; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4778   ac_cxx_werror_flag=yes
4779   ac_cv_prog_cxx_g=no
4780   CXXFLAGS="-g"
4781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783
4784int
4785main ()
4786{
4787
4788  ;
4789  return 0;
4790}
4791_ACEOF
4792if ac_fn_cxx_try_compile "$LINENO"; then :
4793  ac_cv_prog_cxx_g=yes
4794else
4795  CXXFLAGS=""
4796      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798
4799int
4800main ()
4801{
4802
4803  ;
4804  return 0;
4805}
4806_ACEOF
4807if ac_fn_cxx_try_compile "$LINENO"; then :
4808
4809else
4810  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4811	 CXXFLAGS="-g"
4812	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813/* end confdefs.h.  */
4814
4815int
4816main ()
4817{
4818
4819  ;
4820  return 0;
4821}
4822_ACEOF
4823if ac_fn_cxx_try_compile "$LINENO"; then :
4824  ac_cv_prog_cxx_g=yes
4825fi
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4832fi
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4834$as_echo "$ac_cv_prog_cxx_g" >&6; }
4835if test "$ac_test_CXXFLAGS" = set; then
4836  CXXFLAGS=$ac_save_CXXFLAGS
4837elif test $ac_cv_prog_cxx_g = yes; then
4838  if test "$GXX" = yes; then
4839    CXXFLAGS="-g -O2"
4840  else
4841    CXXFLAGS="-g"
4842  fi
4843else
4844  if test "$GXX" = yes; then
4845    CXXFLAGS="-O2"
4846  else
4847    CXXFLAGS=
4848  fi
4849fi
4850ac_ext=c
4851ac_cpp='$CPP $CPPFLAGS'
4852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
4856depcc="$CXX"  am_compiler_list=
4857
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4859$as_echo_n "checking dependency style of $depcc... " >&6; }
4860if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4861  $as_echo_n "(cached) " >&6
4862else
4863  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4864  # We make a subdir and do the tests there.  Otherwise we can end up
4865  # making bogus files that we don't know about and never remove.  For
4866  # instance it was reported that on HP-UX the gcc test will end up
4867  # making a dummy file named `D' -- because `-MD' means `put the output
4868  # in D'.
4869  mkdir conftest.dir
4870  # Copy depcomp to subdir because otherwise we won't find it if we're
4871  # using a relative directory.
4872  cp "$am_depcomp" conftest.dir
4873  cd conftest.dir
4874  # We will build objects and dependencies in a subdirectory because
4875  # it helps to detect inapplicable dependency modes.  For instance
4876  # both Tru64's cc and ICC support -MD to output dependencies as a
4877  # side effect of compilation, but ICC will put the dependencies in
4878  # the current directory while Tru64 will put them in the object
4879  # directory.
4880  mkdir sub
4881
4882  am_cv_CXX_dependencies_compiler_type=none
4883  if test "$am_compiler_list" = ""; then
4884     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4885  fi
4886  am__universal=false
4887  case " $depcc " in #(
4888     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4889     esac
4890
4891  for depmode in $am_compiler_list; do
4892    # Setup a source with many dependencies, because some compilers
4893    # like to wrap large dependency lists on column 80 (with \), and
4894    # we should not choose a depcomp mode which is confused by this.
4895    #
4896    # We need to recreate these files for each test, as the compiler may
4897    # overwrite some of them when testing with obscure command lines.
4898    # This happens at least with the AIX C compiler.
4899    : > sub/conftest.c
4900    for i in 1 2 3 4 5 6; do
4901      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4902      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4903      # Solaris 8's {/usr,}/bin/sh.
4904      touch sub/conftst$i.h
4905    done
4906    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4907
4908    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4909    # mode.  It turns out that the SunPro C++ compiler does not properly
4910    # handle `-M -o', and we need to detect this.  Also, some Intel
4911    # versions had trouble with output in subdirs
4912    am__obj=sub/conftest.${OBJEXT-o}
4913    am__minus_obj="-o $am__obj"
4914    case $depmode in
4915    gcc)
4916      # This depmode causes a compiler race in universal mode.
4917      test "$am__universal" = false || continue
4918      ;;
4919    nosideeffect)
4920      # after this tag, mechanisms are not by side-effect, so they'll
4921      # only be used when explicitly requested
4922      if test "x$enable_dependency_tracking" = xyes; then
4923	continue
4924      else
4925	break
4926      fi
4927      ;;
4928    msvisualcpp | msvcmsys)
4929      # This compiler won't grok `-c -o', but also, the minuso test has
4930      # not run yet.  These depmodes are late enough in the game, and
4931      # so weak that their functioning should not be impacted.
4932      am__obj=conftest.${OBJEXT-o}
4933      am__minus_obj=
4934      ;;
4935    none) break ;;
4936    esac
4937    if depmode=$depmode \
4938       source=sub/conftest.c object=$am__obj \
4939       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4940       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4941         >/dev/null 2>conftest.err &&
4942       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4943       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4944       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4945       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4946      # icc doesn't choke on unknown options, it will just issue warnings
4947      # or remarks (even with -Werror).  So we grep stderr for any message
4948      # that says an option was ignored or not supported.
4949      # When given -MP, icc 7.0 and 7.1 complain thusly:
4950      #   icc: Command line warning: ignoring option '-M'; no argument required
4951      # The diagnosis changed in icc 8.0:
4952      #   icc: Command line remark: option '-MP' not supported
4953      if (grep 'ignoring option' conftest.err ||
4954          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4955        am_cv_CXX_dependencies_compiler_type=$depmode
4956        break
4957      fi
4958    fi
4959  done
4960
4961  cd ..
4962  rm -rf conftest.dir
4963else
4964  am_cv_CXX_dependencies_compiler_type=none
4965fi
4966
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4969$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4970CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4971
4972 if
4973  test "x$enable_dependency_tracking" != xno \
4974  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4975  am__fastdepCXX_TRUE=
4976  am__fastdepCXX_FALSE='#'
4977else
4978  am__fastdepCXX_TRUE='#'
4979  am__fastdepCXX_FALSE=
4980fi
4981
4982
4983ac_ext=c
4984ac_cpp='$CPP $CPPFLAGS'
4985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987ac_compiler_gnu=$ac_cv_c_compiler_gnu
4988if test -n "$ac_tool_prefix"; then
4989  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4990set dummy ${ac_tool_prefix}gcc; ac_word=$2
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992$as_echo_n "checking for $ac_word... " >&6; }
4993if test "${ac_cv_prog_CC+set}" = set; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  if test -n "$CC"; then
4997  ac_cv_prog_CC="$CC" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002  IFS=$as_save_IFS
5003  test -z "$as_dir" && as_dir=.
5004    for ac_exec_ext in '' $ac_executable_extensions; do
5005  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008    break 2
5009  fi
5010done
5011  done
5012IFS=$as_save_IFS
5013
5014fi
5015fi
5016CC=$ac_cv_prog_CC
5017if test -n "$CC"; then
5018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5019$as_echo "$CC" >&6; }
5020else
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022$as_echo "no" >&6; }
5023fi
5024
5025
5026fi
5027if test -z "$ac_cv_prog_CC"; then
5028  ac_ct_CC=$CC
5029  # Extract the first word of "gcc", so it can be a program name with args.
5030set dummy gcc; ac_word=$2
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032$as_echo_n "checking for $ac_word... " >&6; }
5033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036  if test -n "$ac_ct_CC"; then
5037  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5038else
5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042  IFS=$as_save_IFS
5043  test -z "$as_dir" && as_dir=.
5044    for ac_exec_ext in '' $ac_executable_extensions; do
5045  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046    ac_cv_prog_ac_ct_CC="gcc"
5047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048    break 2
5049  fi
5050done
5051  done
5052IFS=$as_save_IFS
5053
5054fi
5055fi
5056ac_ct_CC=$ac_cv_prog_ac_ct_CC
5057if test -n "$ac_ct_CC"; then
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5059$as_echo "$ac_ct_CC" >&6; }
5060else
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062$as_echo "no" >&6; }
5063fi
5064
5065  if test "x$ac_ct_CC" = x; then
5066    CC=""
5067  else
5068    case $cross_compiling:$ac_tool_warned in
5069yes:)
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072ac_tool_warned=yes ;;
5073esac
5074    CC=$ac_ct_CC
5075  fi
5076else
5077  CC="$ac_cv_prog_CC"
5078fi
5079
5080if test -z "$CC"; then
5081          if test -n "$ac_tool_prefix"; then
5082    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5083set dummy ${ac_tool_prefix}cc; ac_word=$2
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; }
5086if test "${ac_cv_prog_CC+set}" = set; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  if test -n "$CC"; then
5090  ac_cv_prog_CC="$CC" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097    for ac_exec_ext in '' $ac_executable_extensions; do
5098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099    ac_cv_prog_CC="${ac_tool_prefix}cc"
5100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104  done
5105IFS=$as_save_IFS
5106
5107fi
5108fi
5109CC=$ac_cv_prog_CC
5110if test -n "$CC"; then
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5112$as_echo "$CC" >&6; }
5113else
5114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115$as_echo "no" >&6; }
5116fi
5117
5118
5119  fi
5120fi
5121if test -z "$CC"; then
5122  # Extract the first word of "cc", so it can be a program name with args.
5123set dummy cc; ac_word=$2
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125$as_echo_n "checking for $ac_word... " >&6; }
5126if test "${ac_cv_prog_CC+set}" = set; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  if test -n "$CC"; then
5130  ac_cv_prog_CC="$CC" # Let the user override the test.
5131else
5132  ac_prog_rejected=no
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_exec_ext in '' $ac_executable_extensions; do
5139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5141       ac_prog_rejected=yes
5142       continue
5143     fi
5144    ac_cv_prog_CC="cc"
5145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146    break 2
5147  fi
5148done
5149  done
5150IFS=$as_save_IFS
5151
5152if test $ac_prog_rejected = yes; then
5153  # We found a bogon in the path, so make sure we never use it.
5154  set dummy $ac_cv_prog_CC
5155  shift
5156  if test $# != 0; then
5157    # We chose a different compiler from the bogus one.
5158    # However, it has the same basename, so the bogon will be chosen
5159    # first if we set CC to just the basename; use the full file name.
5160    shift
5161    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5162  fi
5163fi
5164fi
5165fi
5166CC=$ac_cv_prog_CC
5167if test -n "$CC"; then
5168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5169$as_echo "$CC" >&6; }
5170else
5171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
5173fi
5174
5175
5176fi
5177if test -z "$CC"; then
5178  if test -n "$ac_tool_prefix"; then
5179  for ac_prog in cl.exe
5180  do
5181    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184$as_echo_n "checking for $ac_word... " >&6; }
5185if test "${ac_cv_prog_CC+set}" = set; then :
5186  $as_echo_n "(cached) " >&6
5187else
5188  if test -n "$CC"; then
5189  ac_cv_prog_CC="$CC" # Let the user override the test.
5190else
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194  IFS=$as_save_IFS
5195  test -z "$as_dir" && as_dir=.
5196    for ac_exec_ext in '' $ac_executable_extensions; do
5197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200    break 2
5201  fi
5202done
5203  done
5204IFS=$as_save_IFS
5205
5206fi
5207fi
5208CC=$ac_cv_prog_CC
5209if test -n "$CC"; then
5210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5211$as_echo "$CC" >&6; }
5212else
5213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214$as_echo "no" >&6; }
5215fi
5216
5217
5218    test -n "$CC" && break
5219  done
5220fi
5221if test -z "$CC"; then
5222  ac_ct_CC=$CC
5223  for ac_prog in cl.exe
5224do
5225  # Extract the first word of "$ac_prog", so it can be a program name with args.
5226set dummy $ac_prog; ac_word=$2
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228$as_echo_n "checking for $ac_word... " >&6; }
5229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232  if test -n "$ac_ct_CC"; then
5233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238  IFS=$as_save_IFS
5239  test -z "$as_dir" && as_dir=.
5240    for ac_exec_ext in '' $ac_executable_extensions; do
5241  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242    ac_cv_prog_ac_ct_CC="$ac_prog"
5243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244    break 2
5245  fi
5246done
5247  done
5248IFS=$as_save_IFS
5249
5250fi
5251fi
5252ac_ct_CC=$ac_cv_prog_ac_ct_CC
5253if test -n "$ac_ct_CC"; then
5254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5255$as_echo "$ac_ct_CC" >&6; }
5256else
5257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
5259fi
5260
5261
5262  test -n "$ac_ct_CC" && break
5263done
5264
5265  if test "x$ac_ct_CC" = x; then
5266    CC=""
5267  else
5268    case $cross_compiling:$ac_tool_warned in
5269yes:)
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5272ac_tool_warned=yes ;;
5273esac
5274    CC=$ac_ct_CC
5275  fi
5276fi
5277
5278fi
5279
5280
5281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5283as_fn_error $? "no acceptable C compiler found in \$PATH
5284See \`config.log' for more details" "$LINENO" 5 ; }
5285
5286# Provide some information about the compiler.
5287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5288set X $ac_compile
5289ac_compiler=$2
5290for ac_option in --version -v -V -qversion; do
5291  { { ac_try="$ac_compiler $ac_option >&5"
5292case "(($ac_try" in
5293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294  *) ac_try_echo=$ac_try;;
5295esac
5296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5297$as_echo "$ac_try_echo"; } >&5
5298  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5299  ac_status=$?
5300  if test -s conftest.err; then
5301    sed '10a\
5302... rest of stderr output deleted ...
5303         10q' conftest.err >conftest.er1
5304    cat conftest.er1 >&5
5305  fi
5306  rm -f conftest.er1 conftest.err
5307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308  test $ac_status = 0; }
5309done
5310
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5312$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5313if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318
5319int
5320main ()
5321{
5322#ifndef __GNUC__
5323       choke me
5324#endif
5325
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330if ac_fn_c_try_compile "$LINENO"; then :
5331  ac_compiler_gnu=yes
5332else
5333  ac_compiler_gnu=no
5334fi
5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336ac_cv_c_compiler_gnu=$ac_compiler_gnu
5337
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5340$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5341if test $ac_compiler_gnu = yes; then
5342  GCC=yes
5343else
5344  GCC=
5345fi
5346ac_test_CFLAGS=${CFLAGS+set}
5347ac_save_CFLAGS=$CFLAGS
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5349$as_echo_n "checking whether $CC accepts -g... " >&6; }
5350if test "${ac_cv_prog_cc_g+set}" = set; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  ac_save_c_werror_flag=$ac_c_werror_flag
5354   ac_c_werror_flag=yes
5355   ac_cv_prog_cc_g=no
5356   CFLAGS="-g"
5357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358/* end confdefs.h.  */
5359
5360int
5361main ()
5362{
5363
5364  ;
5365  return 0;
5366}
5367_ACEOF
5368if ac_fn_c_try_compile "$LINENO"; then :
5369  ac_cv_prog_cc_g=yes
5370else
5371  CFLAGS=""
5372      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h.  */
5374
5375int
5376main ()
5377{
5378
5379  ;
5380  return 0;
5381}
5382_ACEOF
5383if ac_fn_c_try_compile "$LINENO"; then :
5384
5385else
5386  ac_c_werror_flag=$ac_save_c_werror_flag
5387	 CFLAGS="-g"
5388	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389/* end confdefs.h.  */
5390
5391int
5392main ()
5393{
5394
5395  ;
5396  return 0;
5397}
5398_ACEOF
5399if ac_fn_c_try_compile "$LINENO"; then :
5400  ac_cv_prog_cc_g=yes
5401fi
5402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405fi
5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407   ac_c_werror_flag=$ac_save_c_werror_flag
5408fi
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5410$as_echo "$ac_cv_prog_cc_g" >&6; }
5411if test "$ac_test_CFLAGS" = set; then
5412  CFLAGS=$ac_save_CFLAGS
5413elif test $ac_cv_prog_cc_g = yes; then
5414  if test "$GCC" = yes; then
5415    CFLAGS="-g -O2"
5416  else
5417    CFLAGS="-g"
5418  fi
5419else
5420  if test "$GCC" = yes; then
5421    CFLAGS="-O2"
5422  else
5423    CFLAGS=
5424  fi
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5427$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5428if test "${ac_cv_prog_cc_c89+set}" = set; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  ac_cv_prog_cc_c89=no
5432ac_save_CC=$CC
5433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h.  */
5435#include <stdarg.h>
5436#include <stdio.h>
5437#include <sys/types.h>
5438#include <sys/stat.h>
5439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5440struct buf { int x; };
5441FILE * (*rcsopen) (struct buf *, struct stat *, int);
5442static char *e (p, i)
5443     char **p;
5444     int i;
5445{
5446  return p[i];
5447}
5448static char *f (char * (*g) (char **, int), char **p, ...)
5449{
5450  char *s;
5451  va_list v;
5452  va_start (v,p);
5453  s = g (p, va_arg (v,int));
5454  va_end (v);
5455  return s;
5456}
5457
5458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5459   function prototypes and stuff, but not '\xHH' hex character constants.
5460   These don't provoke an error unfortunately, instead are silently treated
5461   as 'x'.  The following induces an error, until -std is added to get
5462   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5463   array size at least.  It's necessary to write '\x00'==0 to get something
5464   that's true only with -std.  */
5465int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5466
5467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5468   inside strings and character constants.  */
5469#define FOO(x) 'x'
5470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5471
5472int test (int i, double x);
5473struct s1 {int (*f) (int a);};
5474struct s2 {int (*f) (double a);};
5475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5476int argc;
5477char **argv;
5478int
5479main ()
5480{
5481return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5482  ;
5483  return 0;
5484}
5485_ACEOF
5486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5487	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5488do
5489  CC="$ac_save_CC $ac_arg"
5490  if ac_fn_c_try_compile "$LINENO"; then :
5491  ac_cv_prog_cc_c89=$ac_arg
5492fi
5493rm -f core conftest.err conftest.$ac_objext
5494  test "x$ac_cv_prog_cc_c89" != "xno" && break
5495done
5496rm -f conftest.$ac_ext
5497CC=$ac_save_CC
5498
5499fi
5500# AC_CACHE_VAL
5501case "x$ac_cv_prog_cc_c89" in
5502  x)
5503    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5504$as_echo "none needed" >&6; } ;;
5505  xno)
5506    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5507$as_echo "unsupported" >&6; } ;;
5508  *)
5509    CC="$CC $ac_cv_prog_cc_c89"
5510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5511$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5512esac
5513if test "x$ac_cv_prog_cc_c89" != xno; then :
5514
5515fi
5516
5517ac_ext=c
5518ac_cpp='$CPP $CPPFLAGS'
5519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521ac_compiler_gnu=$ac_cv_c_compiler_gnu
5522
5523depcc="$CC"   am_compiler_list=
5524
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5526$as_echo_n "checking dependency style of $depcc... " >&6; }
5527if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5528  $as_echo_n "(cached) " >&6
5529else
5530  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531  # We make a subdir and do the tests there.  Otherwise we can end up
5532  # making bogus files that we don't know about and never remove.  For
5533  # instance it was reported that on HP-UX the gcc test will end up
5534  # making a dummy file named `D' -- because `-MD' means `put the output
5535  # in D'.
5536  mkdir conftest.dir
5537  # Copy depcomp to subdir because otherwise we won't find it if we're
5538  # using a relative directory.
5539  cp "$am_depcomp" conftest.dir
5540  cd conftest.dir
5541  # We will build objects and dependencies in a subdirectory because
5542  # it helps to detect inapplicable dependency modes.  For instance
5543  # both Tru64's cc and ICC support -MD to output dependencies as a
5544  # side effect of compilation, but ICC will put the dependencies in
5545  # the current directory while Tru64 will put them in the object
5546  # directory.
5547  mkdir sub
5548
5549  am_cv_CC_dependencies_compiler_type=none
5550  if test "$am_compiler_list" = ""; then
5551     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552  fi
5553  am__universal=false
5554  case " $depcc " in #(
5555     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5556     esac
5557
5558  for depmode in $am_compiler_list; do
5559    # Setup a source with many dependencies, because some compilers
5560    # like to wrap large dependency lists on column 80 (with \), and
5561    # we should not choose a depcomp mode which is confused by this.
5562    #
5563    # We need to recreate these files for each test, as the compiler may
5564    # overwrite some of them when testing with obscure command lines.
5565    # This happens at least with the AIX C compiler.
5566    : > sub/conftest.c
5567    for i in 1 2 3 4 5 6; do
5568      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5570      # Solaris 8's {/usr,}/bin/sh.
5571      touch sub/conftst$i.h
5572    done
5573    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5574
5575    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576    # mode.  It turns out that the SunPro C++ compiler does not properly
5577    # handle `-M -o', and we need to detect this.  Also, some Intel
5578    # versions had trouble with output in subdirs
5579    am__obj=sub/conftest.${OBJEXT-o}
5580    am__minus_obj="-o $am__obj"
5581    case $depmode in
5582    gcc)
5583      # This depmode causes a compiler race in universal mode.
5584      test "$am__universal" = false || continue
5585      ;;
5586    nosideeffect)
5587      # after this tag, mechanisms are not by side-effect, so they'll
5588      # only be used when explicitly requested
5589      if test "x$enable_dependency_tracking" = xyes; then
5590	continue
5591      else
5592	break
5593      fi
5594      ;;
5595    msvisualcpp | msvcmsys)
5596      # This compiler won't grok `-c -o', but also, the minuso test has
5597      # not run yet.  These depmodes are late enough in the game, and
5598      # so weak that their functioning should not be impacted.
5599      am__obj=conftest.${OBJEXT-o}
5600      am__minus_obj=
5601      ;;
5602    none) break ;;
5603    esac
5604    if depmode=$depmode \
5605       source=sub/conftest.c object=$am__obj \
5606       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5607       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5608         >/dev/null 2>conftest.err &&
5609       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5610       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5611       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5612       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5613      # icc doesn't choke on unknown options, it will just issue warnings
5614      # or remarks (even with -Werror).  So we grep stderr for any message
5615      # that says an option was ignored or not supported.
5616      # When given -MP, icc 7.0 and 7.1 complain thusly:
5617      #   icc: Command line warning: ignoring option '-M'; no argument required
5618      # The diagnosis changed in icc 8.0:
5619      #   icc: Command line remark: option '-MP' not supported
5620      if (grep 'ignoring option' conftest.err ||
5621          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5622        am_cv_CC_dependencies_compiler_type=$depmode
5623        break
5624      fi
5625    fi
5626  done
5627
5628  cd ..
5629  rm -rf conftest.dir
5630else
5631  am_cv_CC_dependencies_compiler_type=none
5632fi
5633
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5636$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5637CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5638
5639 if
5640  test "x$enable_dependency_tracking" != xno \
5641  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5642  am__fastdepCC_TRUE=
5643  am__fastdepCC_FALSE='#'
5644else
5645  am__fastdepCC_TRUE='#'
5646  am__fastdepCC_FALSE=
5647fi
5648
5649
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5652$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5653set x ${MAKE-make}
5654ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5655if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  cat >conftest.make <<\_ACEOF
5659SHELL = /bin/sh
5660all:
5661	@echo '@@@%%%=$(MAKE)=@@@%%%'
5662_ACEOF
5663# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5664case `${MAKE-make} -f conftest.make 2>/dev/null` in
5665  *@@@%%%=?*=@@@%%%*)
5666    eval ac_cv_prog_make_${ac_make}_set=yes;;
5667  *)
5668    eval ac_cv_prog_make_${ac_make}_set=no;;
5669esac
5670rm -f conftest.make
5671fi
5672if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5674$as_echo "yes" >&6; }
5675  SET_MAKE=
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679  SET_MAKE="MAKE=${MAKE-make}"
5680fi
5681
5682for ac_prog in gawk mawk nawk awk
5683do
5684  # Extract the first word of "$ac_prog", so it can be a program name with args.
5685set dummy $ac_prog; ac_word=$2
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if test "${ac_cv_prog_AWK+set}" = set; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691  if test -n "$AWK"; then
5692  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697  IFS=$as_save_IFS
5698  test -z "$as_dir" && as_dir=.
5699    for ac_exec_ext in '' $ac_executable_extensions; do
5700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701    ac_cv_prog_AWK="$ac_prog"
5702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703    break 2
5704  fi
5705done
5706  done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711AWK=$ac_cv_prog_AWK
5712if test -n "$AWK"; then
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5714$as_echo "$AWK" >&6; }
5715else
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721  test -n "$AWK" && break
5722done
5723
5724ac_ext=c
5725ac_cpp='$CPP $CPPFLAGS'
5726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5730$as_echo_n "checking how to run the C preprocessor... " >&6; }
5731# On Suns, sometimes $CPP names a directory.
5732if test -n "$CPP" && test -d "$CPP"; then
5733  CPP=
5734fi
5735if test -z "$CPP"; then
5736  if test "${ac_cv_prog_CPP+set}" = set; then :
5737  $as_echo_n "(cached) " >&6
5738else
5739      # Double quotes because CPP needs to be expanded
5740    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5741    do
5742      ac_preproc_ok=false
5743for ac_c_preproc_warn_flag in '' yes
5744do
5745  # Use a header file that comes with gcc, so configuring glibc
5746  # with a fresh cross-compiler works.
5747  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5748  # <limits.h> exists even on freestanding compilers.
5749  # On the NeXT, cc -E runs the code through the compiler's parser,
5750  # not just through cpp. "Syntax error" is here to catch this case.
5751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h.  */
5753#ifdef __STDC__
5754# include <limits.h>
5755#else
5756# include <assert.h>
5757#endif
5758		     Syntax error
5759_ACEOF
5760if ac_fn_c_try_cpp "$LINENO"; then :
5761
5762else
5763  # Broken: fails on valid input.
5764continue
5765fi
5766rm -f conftest.err conftest.i conftest.$ac_ext
5767
5768  # OK, works on sane cases.  Now check whether nonexistent headers
5769  # can be detected and how.
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772#include <ac_nonexistent.h>
5773_ACEOF
5774if ac_fn_c_try_cpp "$LINENO"; then :
5775  # Broken: success on invalid input.
5776continue
5777else
5778  # Passes both tests.
5779ac_preproc_ok=:
5780break
5781fi
5782rm -f conftest.err conftest.i conftest.$ac_ext
5783
5784done
5785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5786rm -f conftest.i conftest.err conftest.$ac_ext
5787if $ac_preproc_ok; then :
5788  break
5789fi
5790
5791    done
5792    ac_cv_prog_CPP=$CPP
5793
5794fi
5795  CPP=$ac_cv_prog_CPP
5796else
5797  ac_cv_prog_CPP=$CPP
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5800$as_echo "$CPP" >&6; }
5801ac_preproc_ok=false
5802for ac_c_preproc_warn_flag in '' yes
5803do
5804  # Use a header file that comes with gcc, so configuring glibc
5805  # with a fresh cross-compiler works.
5806  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5807  # <limits.h> exists even on freestanding compilers.
5808  # On the NeXT, cc -E runs the code through the compiler's parser,
5809  # not just through cpp. "Syntax error" is here to catch this case.
5810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h.  */
5812#ifdef __STDC__
5813# include <limits.h>
5814#else
5815# include <assert.h>
5816#endif
5817		     Syntax error
5818_ACEOF
5819if ac_fn_c_try_cpp "$LINENO"; then :
5820
5821else
5822  # Broken: fails on valid input.
5823continue
5824fi
5825rm -f conftest.err conftest.i conftest.$ac_ext
5826
5827  # OK, works on sane cases.  Now check whether nonexistent headers
5828  # can be detected and how.
5829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830/* end confdefs.h.  */
5831#include <ac_nonexistent.h>
5832_ACEOF
5833if ac_fn_c_try_cpp "$LINENO"; then :
5834  # Broken: success on invalid input.
5835continue
5836else
5837  # Passes both tests.
5838ac_preproc_ok=:
5839break
5840fi
5841rm -f conftest.err conftest.i conftest.$ac_ext
5842
5843done
5844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5845rm -f conftest.i conftest.err conftest.$ac_ext
5846if $ac_preproc_ok; then :
5847
5848else
5849  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5852See \`config.log' for more details" "$LINENO" 5 ; }
5853fi
5854
5855ac_ext=c
5856ac_cpp='$CPP $CPPFLAGS'
5857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5859ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860
5861
5862for ac_prog in 'bison -y' byacc
5863do
5864  # Extract the first word of "$ac_prog", so it can be a program name with args.
5865set dummy $ac_prog; ac_word=$2
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867$as_echo_n "checking for $ac_word... " >&6; }
5868if test "${ac_cv_prog_YACC+set}" = set; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871  if test -n "$YACC"; then
5872  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877  IFS=$as_save_IFS
5878  test -z "$as_dir" && as_dir=.
5879    for ac_exec_ext in '' $ac_executable_extensions; do
5880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881    ac_cv_prog_YACC="$ac_prog"
5882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883    break 2
5884  fi
5885done
5886  done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891YACC=$ac_cv_prog_YACC
5892if test -n "$YACC"; then
5893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5894$as_echo "$YACC" >&6; }
5895else
5896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900
5901  test -n "$YACC" && break
5902done
5903test -n "$YACC" || YACC="yacc"
5904
5905
5906
5907# ---------------------------------------------------------------------
5908# Gettext support:
5909# ---------------------------------------------------------------------
5910
5911
5912
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5914$as_echo_n "checking whether NLS is requested... " >&6; }
5915    # Check whether --enable-nls was given.
5916if test "${enable_nls+set}" = set; then :
5917  enableval=$enable_nls; USE_NLS=$enableval
5918else
5919  USE_NLS=yes
5920fi
5921
5922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5923$as_echo "$USE_NLS" >&6; }
5924
5925
5926
5927
5928      GETTEXT_MACRO_VERSION=0.18
5929
5930
5931
5932
5933# Prepare PATH_SEPARATOR.
5934# The user is always right.
5935if test "${PATH_SEPARATOR+set}" != set; then
5936  echo "#! /bin/sh" >conf$$.sh
5937  echo  "exit 0"   >>conf$$.sh
5938  chmod +x conf$$.sh
5939  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5940    PATH_SEPARATOR=';'
5941  else
5942    PATH_SEPARATOR=:
5943  fi
5944  rm -f conf$$.sh
5945fi
5946
5947# Find out how to test for executable files. Don't use a zero-byte file,
5948# as systems may use methods other than mode bits to determine executability.
5949cat >conf$$.file <<_ASEOF
5950#! /bin/sh
5951exit 0
5952_ASEOF
5953chmod +x conf$$.file
5954if test -x conf$$.file >/dev/null 2>&1; then
5955  ac_executable_p="test -x"
5956else
5957  ac_executable_p="test -f"
5958fi
5959rm -f conf$$.file
5960
5961# Extract the first word of "msgfmt", so it can be a program name with args.
5962set dummy msgfmt; ac_word=$2
5963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964$as_echo_n "checking for $ac_word... " >&6; }
5965if test "${ac_cv_path_MSGFMT+set}" = set; then :
5966  $as_echo_n "(cached) " >&6
5967else
5968  case "$MSGFMT" in
5969  [\\/]* | ?:[\\/]*)
5970    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5971    ;;
5972  *)
5973    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5974    for ac_dir in $PATH; do
5975      IFS="$ac_save_IFS"
5976      test -z "$ac_dir" && ac_dir=.
5977      for ac_exec_ext in '' $ac_executable_extensions; do
5978        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5979          echo "$as_me: trying $ac_dir/$ac_word..." >&5
5980          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5981     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5982            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5983            break 2
5984          fi
5985        fi
5986      done
5987    done
5988    IFS="$ac_save_IFS"
5989  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5990    ;;
5991esac
5992fi
5993MSGFMT="$ac_cv_path_MSGFMT"
5994if test "$MSGFMT" != ":"; then
5995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5996$as_echo "$MSGFMT" >&6; }
5997else
5998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999$as_echo "no" >&6; }
6000fi
6001
6002  # Extract the first word of "gmsgfmt", so it can be a program name with args.
6003set dummy gmsgfmt; ac_word=$2
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005$as_echo_n "checking for $ac_word... " >&6; }
6006if test "${ac_cv_path_GMSGFMT+set}" = set; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  case $GMSGFMT in
6010  [\\/]* | ?:[\\/]*)
6011  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6012  ;;
6013  *)
6014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019    for ac_exec_ext in '' $ac_executable_extensions; do
6020  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6022    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023    break 2
6024  fi
6025done
6026  done
6027IFS=$as_save_IFS
6028
6029  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6030  ;;
6031esac
6032fi
6033GMSGFMT=$ac_cv_path_GMSGFMT
6034if test -n "$GMSGFMT"; then
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6036$as_echo "$GMSGFMT" >&6; }
6037else
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042
6043
6044    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6045    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6046    *) MSGFMT_015=$MSGFMT ;;
6047  esac
6048
6049  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6050    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6051    *) GMSGFMT_015=$GMSGFMT ;;
6052  esac
6053
6054
6055
6056# Prepare PATH_SEPARATOR.
6057# The user is always right.
6058if test "${PATH_SEPARATOR+set}" != set; then
6059  echo "#! /bin/sh" >conf$$.sh
6060  echo  "exit 0"   >>conf$$.sh
6061  chmod +x conf$$.sh
6062  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6063    PATH_SEPARATOR=';'
6064  else
6065    PATH_SEPARATOR=:
6066  fi
6067  rm -f conf$$.sh
6068fi
6069
6070# Find out how to test for executable files. Don't use a zero-byte file,
6071# as systems may use methods other than mode bits to determine executability.
6072cat >conf$$.file <<_ASEOF
6073#! /bin/sh
6074exit 0
6075_ASEOF
6076chmod +x conf$$.file
6077if test -x conf$$.file >/dev/null 2>&1; then
6078  ac_executable_p="test -x"
6079else
6080  ac_executable_p="test -f"
6081fi
6082rm -f conf$$.file
6083
6084# Extract the first word of "xgettext", so it can be a program name with args.
6085set dummy xgettext; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if test "${ac_cv_path_XGETTEXT+set}" = set; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  case "$XGETTEXT" in
6092  [\\/]* | ?:[\\/]*)
6093    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6094    ;;
6095  *)
6096    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6097    for ac_dir in $PATH; do
6098      IFS="$ac_save_IFS"
6099      test -z "$ac_dir" && ac_dir=.
6100      for ac_exec_ext in '' $ac_executable_extensions; do
6101        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6102          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6103          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6104     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6105            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6106            break 2
6107          fi
6108        fi
6109      done
6110    done
6111    IFS="$ac_save_IFS"
6112  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6113    ;;
6114esac
6115fi
6116XGETTEXT="$ac_cv_path_XGETTEXT"
6117if test "$XGETTEXT" != ":"; then
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6119$as_echo "$XGETTEXT" >&6; }
6120else
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122$as_echo "no" >&6; }
6123fi
6124
6125    rm -f messages.po
6126
6127    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6128    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6129    *) XGETTEXT_015=$XGETTEXT ;;
6130  esac
6131
6132
6133
6134# Prepare PATH_SEPARATOR.
6135# The user is always right.
6136if test "${PATH_SEPARATOR+set}" != set; then
6137  echo "#! /bin/sh" >conf$$.sh
6138  echo  "exit 0"   >>conf$$.sh
6139  chmod +x conf$$.sh
6140  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6141    PATH_SEPARATOR=';'
6142  else
6143    PATH_SEPARATOR=:
6144  fi
6145  rm -f conf$$.sh
6146fi
6147
6148# Find out how to test for executable files. Don't use a zero-byte file,
6149# as systems may use methods other than mode bits to determine executability.
6150cat >conf$$.file <<_ASEOF
6151#! /bin/sh
6152exit 0
6153_ASEOF
6154chmod +x conf$$.file
6155if test -x conf$$.file >/dev/null 2>&1; then
6156  ac_executable_p="test -x"
6157else
6158  ac_executable_p="test -f"
6159fi
6160rm -f conf$$.file
6161
6162# Extract the first word of "msgmerge", so it can be a program name with args.
6163set dummy msgmerge; ac_word=$2
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165$as_echo_n "checking for $ac_word... " >&6; }
6166if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6167  $as_echo_n "(cached) " >&6
6168else
6169  case "$MSGMERGE" in
6170  [\\/]* | ?:[\\/]*)
6171    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6172    ;;
6173  *)
6174    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6175    for ac_dir in $PATH; do
6176      IFS="$ac_save_IFS"
6177      test -z "$ac_dir" && ac_dir=.
6178      for ac_exec_ext in '' $ac_executable_extensions; do
6179        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6180          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6181          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6182            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6183            break 2
6184          fi
6185        fi
6186      done
6187    done
6188    IFS="$ac_save_IFS"
6189  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6190    ;;
6191esac
6192fi
6193MSGMERGE="$ac_cv_path_MSGMERGE"
6194if test "$MSGMERGE" != ":"; then
6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6196$as_echo "$MSGMERGE" >&6; }
6197else
6198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199$as_echo "no" >&6; }
6200fi
6201
6202
6203        test -n "$localedir" || localedir='${datadir}/locale'
6204
6205
6206    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6207
6208
6209  ac_config_commands="$ac_config_commands po-directories"
6210
6211
6212
6213      if test "X$prefix" = "XNONE"; then
6214    acl_final_prefix="$ac_default_prefix"
6215  else
6216    acl_final_prefix="$prefix"
6217  fi
6218  if test "X$exec_prefix" = "XNONE"; then
6219    acl_final_exec_prefix='${prefix}'
6220  else
6221    acl_final_exec_prefix="$exec_prefix"
6222  fi
6223  acl_save_prefix="$prefix"
6224  prefix="$acl_final_prefix"
6225  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6226  prefix="$acl_save_prefix"
6227
6228
6229# Check whether --with-gnu-ld was given.
6230if test "${with_gnu_ld+set}" = set; then :
6231  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6232else
6233  with_gnu_ld=no
6234fi
6235
6236# Prepare PATH_SEPARATOR.
6237# The user is always right.
6238if test "${PATH_SEPARATOR+set}" != set; then
6239  echo "#! /bin/sh" >conf$$.sh
6240  echo  "exit 0"   >>conf$$.sh
6241  chmod +x conf$$.sh
6242  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6243    PATH_SEPARATOR=';'
6244  else
6245    PATH_SEPARATOR=:
6246  fi
6247  rm -f conf$$.sh
6248fi
6249ac_prog=ld
6250if test "$GCC" = yes; then
6251  # Check if gcc -print-prog-name=ld gives a path.
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6253$as_echo_n "checking for ld used by GCC... " >&6; }
6254  case $host in
6255  *-*-mingw*)
6256    # gcc leaves a trailing carriage return which upsets mingw
6257    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6258  *)
6259    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6260  esac
6261  case $ac_prog in
6262    # Accept absolute paths.
6263    [\\/]* | [A-Za-z]:[\\/]*)
6264      re_direlt='/[^/][^/]*/\.\./'
6265      # Canonicalize the path of ld
6266      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6267      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6268        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6269      done
6270      test -z "$LD" && LD="$ac_prog"
6271      ;;
6272  "")
6273    # If it fails, then pretend we aren't using GCC.
6274    ac_prog=ld
6275    ;;
6276  *)
6277    # If it is relative, then search for the first ld in PATH.
6278    with_gnu_ld=unknown
6279    ;;
6280  esac
6281elif test "$with_gnu_ld" = yes; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6283$as_echo_n "checking for GNU ld... " >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6286$as_echo_n "checking for non-GNU ld... " >&6; }
6287fi
6288if test "${acl_cv_path_LD+set}" = set; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -z "$LD"; then
6292  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6293  for ac_dir in $PATH; do
6294    test -z "$ac_dir" && ac_dir=.
6295    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6296      acl_cv_path_LD="$ac_dir/$ac_prog"
6297      # Check to see if the program is GNU ld.  I'd rather use --version,
6298      # but apparently some GNU ld's only accept -v.
6299      # Break only if it was the GNU/non-GNU ld that we prefer.
6300      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6301      *GNU* | *'with BFD'*)
6302        test "$with_gnu_ld" != no && break ;;
6303      *)
6304        test "$with_gnu_ld" != yes && break ;;
6305      esac
6306    fi
6307  done
6308  IFS="$ac_save_ifs"
6309else
6310  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6311fi
6312fi
6313
6314LD="$acl_cv_path_LD"
6315if test -n "$LD"; then
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6317$as_echo "$LD" >&6; }
6318else
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320$as_echo "no" >&6; }
6321fi
6322test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6324$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6325if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6329case `$LD -v 2>&1 </dev/null` in
6330*GNU* | *'with BFD'*)
6331  acl_cv_prog_gnu_ld=yes ;;
6332*)
6333  acl_cv_prog_gnu_ld=no ;;
6334esac
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6337$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6338with_gnu_ld=$acl_cv_prog_gnu_ld
6339
6340
6341
6342
6343                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6344$as_echo_n "checking for shared library run path origin... " >&6; }
6345if test "${acl_cv_rpath+set}" = set; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348
6349    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6350    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6351    . ./conftest.sh
6352    rm -f ./conftest.sh
6353    acl_cv_rpath=done
6354
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6357$as_echo "$acl_cv_rpath" >&6; }
6358  wl="$acl_cv_wl"
6359  acl_libext="$acl_cv_libext"
6360  acl_shlibext="$acl_cv_shlibext"
6361  acl_libname_spec="$acl_cv_libname_spec"
6362  acl_library_names_spec="$acl_cv_library_names_spec"
6363  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6364  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6365  acl_hardcode_direct="$acl_cv_hardcode_direct"
6366  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6367    # Check whether --enable-rpath was given.
6368if test "${enable_rpath+set}" = set; then :
6369  enableval=$enable_rpath; :
6370else
6371  enable_rpath=yes
6372fi
6373
6374
6375
6376
6377  acl_libdirstem=lib
6378  acl_libdirstem2=
6379  case "$host_os" in
6380    solaris*)
6381                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6382$as_echo_n "checking for 64-bit host... " >&6; }
6383if test "${gl_cv_solaris_64bit+set}" = set; then :
6384  $as_echo_n "(cached) " >&6
6385else
6386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387/* end confdefs.h.  */
6388
6389#ifdef _LP64
6390sixtyfour bits
6391#endif
6392
6393_ACEOF
6394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6396  gl_cv_solaris_64bit=yes
6397else
6398  gl_cv_solaris_64bit=no
6399fi
6400rm -f conftest*
6401
6402
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6405$as_echo "$gl_cv_solaris_64bit" >&6; }
6406      if test $gl_cv_solaris_64bit = yes; then
6407        acl_libdirstem=lib/64
6408        case "$host_cpu" in
6409          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6410          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6411        esac
6412      fi
6413      ;;
6414    *)
6415      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6416      if test -n "$searchpath"; then
6417        acl_save_IFS="${IFS= 	}"; IFS=":"
6418        for searchdir in $searchpath; do
6419          if test -d "$searchdir"; then
6420            case "$searchdir" in
6421              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6422              */../ | */.. )
6423                # Better ignore directories of this form. They are misleading.
6424                ;;
6425              *) searchdir=`cd "$searchdir" && pwd`
6426                 case "$searchdir" in
6427                   */lib64 ) acl_libdirstem=lib64 ;;
6428                 esac ;;
6429            esac
6430          fi
6431        done
6432        IFS="$acl_save_IFS"
6433      fi
6434      ;;
6435  esac
6436  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449    use_additional=yes
6450
6451  acl_save_prefix="$prefix"
6452  prefix="$acl_final_prefix"
6453  acl_save_exec_prefix="$exec_prefix"
6454  exec_prefix="$acl_final_exec_prefix"
6455
6456    eval additional_includedir=\"$includedir\"
6457    eval additional_libdir=\"$libdir\"
6458
6459  exec_prefix="$acl_save_exec_prefix"
6460  prefix="$acl_save_prefix"
6461
6462
6463# Check whether --with-libiconv-prefix was given.
6464if test "${with_libiconv_prefix+set}" = set; then :
6465  withval=$with_libiconv_prefix;
6466    if test "X$withval" = "Xno"; then
6467      use_additional=no
6468    else
6469      if test "X$withval" = "X"; then
6470
6471  acl_save_prefix="$prefix"
6472  prefix="$acl_final_prefix"
6473  acl_save_exec_prefix="$exec_prefix"
6474  exec_prefix="$acl_final_exec_prefix"
6475
6476          eval additional_includedir=\"$includedir\"
6477          eval additional_libdir=\"$libdir\"
6478
6479  exec_prefix="$acl_save_exec_prefix"
6480  prefix="$acl_save_prefix"
6481
6482      else
6483        additional_includedir="$withval/include"
6484        additional_libdir="$withval/$acl_libdirstem"
6485        if test "$acl_libdirstem2" != "$acl_libdirstem" \
6486           && ! test -d "$withval/$acl_libdirstem"; then
6487          additional_libdir="$withval/$acl_libdirstem2"
6488        fi
6489      fi
6490    fi
6491
6492fi
6493
6494      LIBICONV=
6495  LTLIBICONV=
6496  INCICONV=
6497  LIBICONV_PREFIX=
6498      HAVE_LIBICONV=
6499  rpathdirs=
6500  ltrpathdirs=
6501  names_already_handled=
6502  names_next_round='iconv '
6503  while test -n "$names_next_round"; do
6504    names_this_round="$names_next_round"
6505    names_next_round=
6506    for name in $names_this_round; do
6507      already_handled=
6508      for n in $names_already_handled; do
6509        if test "$n" = "$name"; then
6510          already_handled=yes
6511          break
6512        fi
6513      done
6514      if test -z "$already_handled"; then
6515        names_already_handled="$names_already_handled $name"
6516                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6517        eval value=\"\$HAVE_LIB$uppername\"
6518        if test -n "$value"; then
6519          if test "$value" = yes; then
6520            eval value=\"\$LIB$uppername\"
6521            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6522            eval value=\"\$LTLIB$uppername\"
6523            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6524          else
6525                                    :
6526          fi
6527        else
6528                              found_dir=
6529          found_la=
6530          found_so=
6531          found_a=
6532          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6533          if test -n "$acl_shlibext"; then
6534            shrext=".$acl_shlibext"             # typically: shrext=.so
6535          else
6536            shrext=
6537          fi
6538          if test $use_additional = yes; then
6539            dir="$additional_libdir"
6540                                    if test -n "$acl_shlibext"; then
6541              if test -f "$dir/$libname$shrext"; then
6542                found_dir="$dir"
6543                found_so="$dir/$libname$shrext"
6544              else
6545                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6546                  ver=`(cd "$dir" && \
6547                        for f in "$libname$shrext".*; do echo "$f"; done \
6548                        | sed -e "s,^$libname$shrext\\\\.,," \
6549                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6550                        | sed 1q ) 2>/dev/null`
6551                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6552                    found_dir="$dir"
6553                    found_so="$dir/$libname$shrext.$ver"
6554                  fi
6555                else
6556                  eval library_names=\"$acl_library_names_spec\"
6557                  for f in $library_names; do
6558                    if test -f "$dir/$f"; then
6559                      found_dir="$dir"
6560                      found_so="$dir/$f"
6561                      break
6562                    fi
6563                  done
6564                fi
6565              fi
6566            fi
6567                        if test "X$found_dir" = "X"; then
6568              if test -f "$dir/$libname.$acl_libext"; then
6569                found_dir="$dir"
6570                found_a="$dir/$libname.$acl_libext"
6571              fi
6572            fi
6573            if test "X$found_dir" != "X"; then
6574              if test -f "$dir/$libname.la"; then
6575                found_la="$dir/$libname.la"
6576              fi
6577            fi
6578          fi
6579          if test "X$found_dir" = "X"; then
6580            for x in $LDFLAGS $LTLIBICONV; do
6581
6582  acl_save_prefix="$prefix"
6583  prefix="$acl_final_prefix"
6584  acl_save_exec_prefix="$exec_prefix"
6585  exec_prefix="$acl_final_exec_prefix"
6586  eval x=\"$x\"
6587  exec_prefix="$acl_save_exec_prefix"
6588  prefix="$acl_save_prefix"
6589
6590              case "$x" in
6591                -L*)
6592                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6593                                    if test -n "$acl_shlibext"; then
6594                    if test -f "$dir/$libname$shrext"; then
6595                      found_dir="$dir"
6596                      found_so="$dir/$libname$shrext"
6597                    else
6598                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6599                        ver=`(cd "$dir" && \
6600                              for f in "$libname$shrext".*; do echo "$f"; done \
6601                              | sed -e "s,^$libname$shrext\\\\.,," \
6602                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6603                              | sed 1q ) 2>/dev/null`
6604                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6605                          found_dir="$dir"
6606                          found_so="$dir/$libname$shrext.$ver"
6607                        fi
6608                      else
6609                        eval library_names=\"$acl_library_names_spec\"
6610                        for f in $library_names; do
6611                          if test -f "$dir/$f"; then
6612                            found_dir="$dir"
6613                            found_so="$dir/$f"
6614                            break
6615                          fi
6616                        done
6617                      fi
6618                    fi
6619                  fi
6620                                    if test "X$found_dir" = "X"; then
6621                    if test -f "$dir/$libname.$acl_libext"; then
6622                      found_dir="$dir"
6623                      found_a="$dir/$libname.$acl_libext"
6624                    fi
6625                  fi
6626                  if test "X$found_dir" != "X"; then
6627                    if test -f "$dir/$libname.la"; then
6628                      found_la="$dir/$libname.la"
6629                    fi
6630                  fi
6631                  ;;
6632              esac
6633              if test "X$found_dir" != "X"; then
6634                break
6635              fi
6636            done
6637          fi
6638          if test "X$found_dir" != "X"; then
6639                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6640            if test "X$found_so" != "X"; then
6641                                                        if test "$enable_rpath" = no \
6642                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6643                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6644                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6645              else
6646                                                                                haveit=
6647                for x in $ltrpathdirs; do
6648                  if test "X$x" = "X$found_dir"; then
6649                    haveit=yes
6650                    break
6651                  fi
6652                done
6653                if test -z "$haveit"; then
6654                  ltrpathdirs="$ltrpathdirs $found_dir"
6655                fi
6656                                if test "$acl_hardcode_direct" = yes; then
6657                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6658                else
6659                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6660                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6661                                                            haveit=
6662                    for x in $rpathdirs; do
6663                      if test "X$x" = "X$found_dir"; then
6664                        haveit=yes
6665                        break
6666                      fi
6667                    done
6668                    if test -z "$haveit"; then
6669                      rpathdirs="$rpathdirs $found_dir"
6670                    fi
6671                  else
6672                                                                                haveit=
6673                    for x in $LDFLAGS $LIBICONV; do
6674
6675  acl_save_prefix="$prefix"
6676  prefix="$acl_final_prefix"
6677  acl_save_exec_prefix="$exec_prefix"
6678  exec_prefix="$acl_final_exec_prefix"
6679  eval x=\"$x\"
6680  exec_prefix="$acl_save_exec_prefix"
6681  prefix="$acl_save_prefix"
6682
6683                      if test "X$x" = "X-L$found_dir"; then
6684                        haveit=yes
6685                        break
6686                      fi
6687                    done
6688                    if test -z "$haveit"; then
6689                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6690                    fi
6691                    if test "$acl_hardcode_minus_L" != no; then
6692                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6693                    else
6694                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6695                    fi
6696                  fi
6697                fi
6698              fi
6699            else
6700              if test "X$found_a" != "X"; then
6701                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6702              else
6703                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6704              fi
6705            fi
6706                        additional_includedir=
6707            case "$found_dir" in
6708              */$acl_libdirstem | */$acl_libdirstem/)
6709                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6710                if test "$name" = 'iconv'; then
6711                  LIBICONV_PREFIX="$basedir"
6712                fi
6713                additional_includedir="$basedir/include"
6714                ;;
6715              */$acl_libdirstem2 | */$acl_libdirstem2/)
6716                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6717                if test "$name" = 'iconv'; then
6718                  LIBICONV_PREFIX="$basedir"
6719                fi
6720                additional_includedir="$basedir/include"
6721                ;;
6722            esac
6723            if test "X$additional_includedir" != "X"; then
6724                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6725                haveit=
6726                if test "X$additional_includedir" = "X/usr/local/include"; then
6727                  if test -n "$GCC"; then
6728                    case $host_os in
6729                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6730                    esac
6731                  fi
6732                fi
6733                if test -z "$haveit"; then
6734                  for x in $CPPFLAGS $INCICONV; do
6735
6736  acl_save_prefix="$prefix"
6737  prefix="$acl_final_prefix"
6738  acl_save_exec_prefix="$exec_prefix"
6739  exec_prefix="$acl_final_exec_prefix"
6740  eval x=\"$x\"
6741  exec_prefix="$acl_save_exec_prefix"
6742  prefix="$acl_save_prefix"
6743
6744                    if test "X$x" = "X-I$additional_includedir"; then
6745                      haveit=yes
6746                      break
6747                    fi
6748                  done
6749                  if test -z "$haveit"; then
6750                    if test -d "$additional_includedir"; then
6751                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6752                    fi
6753                  fi
6754                fi
6755              fi
6756            fi
6757                        if test -n "$found_la"; then
6758                                                        save_libdir="$libdir"
6759              case "$found_la" in
6760                */* | *\\*) . "$found_la" ;;
6761                *) . "./$found_la" ;;
6762              esac
6763              libdir="$save_libdir"
6764                            for dep in $dependency_libs; do
6765                case "$dep" in
6766                  -L*)
6767                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6768                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6769                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6770                      haveit=
6771                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6772                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6773                        if test -n "$GCC"; then
6774                          case $host_os in
6775                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6776                          esac
6777                        fi
6778                      fi
6779                      if test -z "$haveit"; then
6780                        haveit=
6781                        for x in $LDFLAGS $LIBICONV; do
6782
6783  acl_save_prefix="$prefix"
6784  prefix="$acl_final_prefix"
6785  acl_save_exec_prefix="$exec_prefix"
6786  exec_prefix="$acl_final_exec_prefix"
6787  eval x=\"$x\"
6788  exec_prefix="$acl_save_exec_prefix"
6789  prefix="$acl_save_prefix"
6790
6791                          if test "X$x" = "X-L$additional_libdir"; then
6792                            haveit=yes
6793                            break
6794                          fi
6795                        done
6796                        if test -z "$haveit"; then
6797                          if test -d "$additional_libdir"; then
6798                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6799                          fi
6800                        fi
6801                        haveit=
6802                        for x in $LDFLAGS $LTLIBICONV; do
6803
6804  acl_save_prefix="$prefix"
6805  prefix="$acl_final_prefix"
6806  acl_save_exec_prefix="$exec_prefix"
6807  exec_prefix="$acl_final_exec_prefix"
6808  eval x=\"$x\"
6809  exec_prefix="$acl_save_exec_prefix"
6810  prefix="$acl_save_prefix"
6811
6812                          if test "X$x" = "X-L$additional_libdir"; then
6813                            haveit=yes
6814                            break
6815                          fi
6816                        done
6817                        if test -z "$haveit"; then
6818                          if test -d "$additional_libdir"; then
6819                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6820                          fi
6821                        fi
6822                      fi
6823                    fi
6824                    ;;
6825                  -R*)
6826                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6827                    if test "$enable_rpath" != no; then
6828                                                                  haveit=
6829                      for x in $rpathdirs; do
6830                        if test "X$x" = "X$dir"; then
6831                          haveit=yes
6832                          break
6833                        fi
6834                      done
6835                      if test -z "$haveit"; then
6836                        rpathdirs="$rpathdirs $dir"
6837                      fi
6838                                                                  haveit=
6839                      for x in $ltrpathdirs; do
6840                        if test "X$x" = "X$dir"; then
6841                          haveit=yes
6842                          break
6843                        fi
6844                      done
6845                      if test -z "$haveit"; then
6846                        ltrpathdirs="$ltrpathdirs $dir"
6847                      fi
6848                    fi
6849                    ;;
6850                  -l*)
6851                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6852                    ;;
6853                  *.la)
6854                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6855                    ;;
6856                  *)
6857                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6858                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6859                    ;;
6860                esac
6861              done
6862            fi
6863          else
6864                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6865            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6866          fi
6867        fi
6868      fi
6869    done
6870  done
6871  if test "X$rpathdirs" != "X"; then
6872    if test -n "$acl_hardcode_libdir_separator"; then
6873                        alldirs=
6874      for found_dir in $rpathdirs; do
6875        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6876      done
6877            acl_save_libdir="$libdir"
6878      libdir="$alldirs"
6879      eval flag=\"$acl_hardcode_libdir_flag_spec\"
6880      libdir="$acl_save_libdir"
6881      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6882    else
6883            for found_dir in $rpathdirs; do
6884        acl_save_libdir="$libdir"
6885        libdir="$found_dir"
6886        eval flag=\"$acl_hardcode_libdir_flag_spec\"
6887        libdir="$acl_save_libdir"
6888        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6889      done
6890    fi
6891  fi
6892  if test "X$ltrpathdirs" != "X"; then
6893            for found_dir in $ltrpathdirs; do
6894      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6895    done
6896  fi
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6929$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6930if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
6931  $as_echo_n "(cached) " >&6
6932else
6933  gt_save_LIBS="$LIBS"
6934     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937#include <CoreFoundation/CFPreferences.h>
6938int
6939main ()
6940{
6941CFPreferencesCopyAppValue(NULL, NULL)
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946if ac_fn_c_try_link "$LINENO"; then :
6947  gt_cv_func_CFPreferencesCopyAppValue=yes
6948else
6949  gt_cv_func_CFPreferencesCopyAppValue=no
6950fi
6951rm -f core conftest.err conftest.$ac_objext \
6952    conftest$ac_exeext conftest.$ac_ext
6953     LIBS="$gt_save_LIBS"
6954fi
6955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6956$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6957  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6958
6959$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6960
6961  fi
6962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6963$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6964if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  gt_save_LIBS="$LIBS"
6968     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970/* end confdefs.h.  */
6971#include <CoreFoundation/CFLocale.h>
6972int
6973main ()
6974{
6975CFLocaleCopyCurrent();
6976  ;
6977  return 0;
6978}
6979_ACEOF
6980if ac_fn_c_try_link "$LINENO"; then :
6981  gt_cv_func_CFLocaleCopyCurrent=yes
6982else
6983  gt_cv_func_CFLocaleCopyCurrent=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext \
6986    conftest$ac_exeext conftest.$ac_ext
6987     LIBS="$gt_save_LIBS"
6988fi
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6990$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6991  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6992
6993$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6994
6995  fi
6996  INTL_MACOSX_LIBS=
6997  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6998    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6999  fi
7000
7001
7002
7003
7004
7005
7006  LIBINTL=
7007  LTLIBINTL=
7008  POSUB=
7009
7010    case " $gt_needs " in
7011    *" need-formatstring-macros "*) gt_api_version=3 ;;
7012    *" need-ngettext "*) gt_api_version=2 ;;
7013    *) gt_api_version=1 ;;
7014  esac
7015  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7016  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7017
7018    if test "$USE_NLS" = "yes"; then
7019    gt_use_preinstalled_gnugettext=no
7020
7021
7022        if test $gt_api_version -ge 3; then
7023          gt_revision_test_code='
7024#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7025#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7026#endif
7027typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7028'
7029        else
7030          gt_revision_test_code=
7031        fi
7032        if test $gt_api_version -ge 2; then
7033          gt_expression_test_code=' + * ngettext ("", "", 0)'
7034        else
7035          gt_expression_test_code=
7036        fi
7037
7038        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7039$as_echo_n "checking for GNU gettext in libc... " >&6; }
7040if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h.  */
7045#include <libintl.h>
7046$gt_revision_test_code
7047extern int _nl_msg_cat_cntr;
7048extern int *_nl_domain_bindings;
7049int
7050main ()
7051{
7052bindtextdomain ("", "");
7053return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7054  ;
7055  return 0;
7056}
7057_ACEOF
7058if ac_fn_c_try_link "$LINENO"; then :
7059  eval "$gt_func_gnugettext_libc=yes"
7060else
7061  eval "$gt_func_gnugettext_libc=no"
7062fi
7063rm -f core conftest.err conftest.$ac_objext \
7064    conftest$ac_exeext conftest.$ac_ext
7065fi
7066eval ac_res=\$$gt_func_gnugettext_libc
7067	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7068$as_echo "$ac_res" >&6; }
7069
7070        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7071
7072
7073
7074
7075
7076          am_save_CPPFLAGS="$CPPFLAGS"
7077
7078  for element in $INCICONV; do
7079    haveit=
7080    for x in $CPPFLAGS; do
7081
7082  acl_save_prefix="$prefix"
7083  prefix="$acl_final_prefix"
7084  acl_save_exec_prefix="$exec_prefix"
7085  exec_prefix="$acl_final_exec_prefix"
7086  eval x=\"$x\"
7087  exec_prefix="$acl_save_exec_prefix"
7088  prefix="$acl_save_prefix"
7089
7090      if test "X$x" = "X$element"; then
7091        haveit=yes
7092        break
7093      fi
7094    done
7095    if test -z "$haveit"; then
7096      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7097    fi
7098  done
7099
7100
7101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7102$as_echo_n "checking for iconv... " >&6; }
7103if test "${am_cv_func_iconv+set}" = set; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106
7107    am_cv_func_iconv="no, consider installing GNU libiconv"
7108    am_cv_lib_iconv=no
7109    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111#include <stdlib.h>
7112#include <iconv.h>
7113int
7114main ()
7115{
7116iconv_t cd = iconv_open("","");
7117       iconv(cd,NULL,NULL,NULL,NULL);
7118       iconv_close(cd);
7119  ;
7120  return 0;
7121}
7122_ACEOF
7123if ac_fn_c_try_link "$LINENO"; then :
7124  am_cv_func_iconv=yes
7125fi
7126rm -f core conftest.err conftest.$ac_objext \
7127    conftest$ac_exeext conftest.$ac_ext
7128    if test "$am_cv_func_iconv" != yes; then
7129      am_save_LIBS="$LIBS"
7130      LIBS="$LIBS $LIBICONV"
7131      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132/* end confdefs.h.  */
7133#include <stdlib.h>
7134#include <iconv.h>
7135int
7136main ()
7137{
7138iconv_t cd = iconv_open("","");
7139         iconv(cd,NULL,NULL,NULL,NULL);
7140         iconv_close(cd);
7141  ;
7142  return 0;
7143}
7144_ACEOF
7145if ac_fn_c_try_link "$LINENO"; then :
7146  am_cv_lib_iconv=yes
7147        am_cv_func_iconv=yes
7148fi
7149rm -f core conftest.err conftest.$ac_objext \
7150    conftest$ac_exeext conftest.$ac_ext
7151      LIBS="$am_save_LIBS"
7152    fi
7153
7154fi
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7156$as_echo "$am_cv_func_iconv" >&6; }
7157  if test "$am_cv_func_iconv" = yes; then
7158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7159$as_echo_n "checking for working iconv... " >&6; }
7160if test "${am_cv_func_iconv_works+set}" = set; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163
7164            am_save_LIBS="$LIBS"
7165      if test $am_cv_lib_iconv = yes; then
7166        LIBS="$LIBS $LIBICONV"
7167      fi
7168      if test "$cross_compiling" = yes; then :
7169  case "$host_os" in
7170           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7171           *)            am_cv_func_iconv_works="guessing yes" ;;
7172         esac
7173else
7174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h.  */
7176
7177#include <iconv.h>
7178#include <string.h>
7179int main ()
7180{
7181  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7182     returns.  */
7183  {
7184    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7185    if (cd_utf8_to_88591 != (iconv_t)(-1))
7186      {
7187        static const char input[] = "\342\202\254"; /* EURO SIGN */
7188        char buf[10];
7189        const char *inptr = input;
7190        size_t inbytesleft = strlen (input);
7191        char *outptr = buf;
7192        size_t outbytesleft = sizeof (buf);
7193        size_t res = iconv (cd_utf8_to_88591,
7194                            (char **) &inptr, &inbytesleft,
7195                            &outptr, &outbytesleft);
7196        if (res == 0)
7197          return 1;
7198      }
7199  }
7200  /* Test against Solaris 10 bug: Failures are not distinguishable from
7201     successful returns.  */
7202  {
7203    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7204    if (cd_ascii_to_88591 != (iconv_t)(-1))
7205      {
7206        static const char input[] = "\263";
7207        char buf[10];
7208        const char *inptr = input;
7209        size_t inbytesleft = strlen (input);
7210        char *outptr = buf;
7211        size_t outbytesleft = sizeof (buf);
7212        size_t res = iconv (cd_ascii_to_88591,
7213                            (char **) &inptr, &inbytesleft,
7214                            &outptr, &outbytesleft);
7215        if (res == 0)
7216          return 1;
7217      }
7218  }
7219#if 0 /* This bug could be worked around by the caller.  */
7220  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7221  {
7222    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7223    if (cd_88591_to_utf8 != (iconv_t)(-1))
7224      {
7225        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7226        char buf[50];
7227        const char *inptr = input;
7228        size_t inbytesleft = strlen (input);
7229        char *outptr = buf;
7230        size_t outbytesleft = sizeof (buf);
7231        size_t res = iconv (cd_88591_to_utf8,
7232                            (char **) &inptr, &inbytesleft,
7233                            &outptr, &outbytesleft);
7234        if ((int)res > 0)
7235          return 1;
7236      }
7237  }
7238#endif
7239  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7240     provided.  */
7241  if (/* Try standardized names.  */
7242      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7243      /* Try IRIX, OSF/1 names.  */
7244      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7245      /* Try AIX names.  */
7246      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7247      /* Try HP-UX names.  */
7248      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7249    return 1;
7250  return 0;
7251}
7252_ACEOF
7253if ac_fn_c_try_run "$LINENO"; then :
7254  am_cv_func_iconv_works=yes
7255else
7256  am_cv_func_iconv_works=no
7257fi
7258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7259  conftest.$ac_objext conftest.beam conftest.$ac_ext
7260fi
7261
7262      LIBS="$am_save_LIBS"
7263
7264fi
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7266$as_echo "$am_cv_func_iconv_works" >&6; }
7267    case "$am_cv_func_iconv_works" in
7268      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7269      *)   am_func_iconv=yes ;;
7270    esac
7271  else
7272    am_func_iconv=no am_cv_lib_iconv=no
7273  fi
7274  if test "$am_func_iconv" = yes; then
7275
7276$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7277
7278  fi
7279  if test "$am_cv_lib_iconv" = yes; then
7280    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7281$as_echo_n "checking how to link with libiconv... " >&6; }
7282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7283$as_echo "$LIBICONV" >&6; }
7284  else
7285            CPPFLAGS="$am_save_CPPFLAGS"
7286    LIBICONV=
7287    LTLIBICONV=
7288  fi
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300    use_additional=yes
7301
7302  acl_save_prefix="$prefix"
7303  prefix="$acl_final_prefix"
7304  acl_save_exec_prefix="$exec_prefix"
7305  exec_prefix="$acl_final_exec_prefix"
7306
7307    eval additional_includedir=\"$includedir\"
7308    eval additional_libdir=\"$libdir\"
7309
7310  exec_prefix="$acl_save_exec_prefix"
7311  prefix="$acl_save_prefix"
7312
7313
7314# Check whether --with-libintl-prefix was given.
7315if test "${with_libintl_prefix+set}" = set; then :
7316  withval=$with_libintl_prefix;
7317    if test "X$withval" = "Xno"; then
7318      use_additional=no
7319    else
7320      if test "X$withval" = "X"; then
7321
7322  acl_save_prefix="$prefix"
7323  prefix="$acl_final_prefix"
7324  acl_save_exec_prefix="$exec_prefix"
7325  exec_prefix="$acl_final_exec_prefix"
7326
7327          eval additional_includedir=\"$includedir\"
7328          eval additional_libdir=\"$libdir\"
7329
7330  exec_prefix="$acl_save_exec_prefix"
7331  prefix="$acl_save_prefix"
7332
7333      else
7334        additional_includedir="$withval/include"
7335        additional_libdir="$withval/$acl_libdirstem"
7336        if test "$acl_libdirstem2" != "$acl_libdirstem" \
7337           && ! test -d "$withval/$acl_libdirstem"; then
7338          additional_libdir="$withval/$acl_libdirstem2"
7339        fi
7340      fi
7341    fi
7342
7343fi
7344
7345      LIBINTL=
7346  LTLIBINTL=
7347  INCINTL=
7348  LIBINTL_PREFIX=
7349      HAVE_LIBINTL=
7350  rpathdirs=
7351  ltrpathdirs=
7352  names_already_handled=
7353  names_next_round='intl '
7354  while test -n "$names_next_round"; do
7355    names_this_round="$names_next_round"
7356    names_next_round=
7357    for name in $names_this_round; do
7358      already_handled=
7359      for n in $names_already_handled; do
7360        if test "$n" = "$name"; then
7361          already_handled=yes
7362          break
7363        fi
7364      done
7365      if test -z "$already_handled"; then
7366        names_already_handled="$names_already_handled $name"
7367                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7368        eval value=\"\$HAVE_LIB$uppername\"
7369        if test -n "$value"; then
7370          if test "$value" = yes; then
7371            eval value=\"\$LIB$uppername\"
7372            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7373            eval value=\"\$LTLIB$uppername\"
7374            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7375          else
7376                                    :
7377          fi
7378        else
7379                              found_dir=
7380          found_la=
7381          found_so=
7382          found_a=
7383          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7384          if test -n "$acl_shlibext"; then
7385            shrext=".$acl_shlibext"             # typically: shrext=.so
7386          else
7387            shrext=
7388          fi
7389          if test $use_additional = yes; then
7390            dir="$additional_libdir"
7391                                    if test -n "$acl_shlibext"; then
7392              if test -f "$dir/$libname$shrext"; then
7393                found_dir="$dir"
7394                found_so="$dir/$libname$shrext"
7395              else
7396                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7397                  ver=`(cd "$dir" && \
7398                        for f in "$libname$shrext".*; do echo "$f"; done \
7399                        | sed -e "s,^$libname$shrext\\\\.,," \
7400                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7401                        | sed 1q ) 2>/dev/null`
7402                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7403                    found_dir="$dir"
7404                    found_so="$dir/$libname$shrext.$ver"
7405                  fi
7406                else
7407                  eval library_names=\"$acl_library_names_spec\"
7408                  for f in $library_names; do
7409                    if test -f "$dir/$f"; then
7410                      found_dir="$dir"
7411                      found_so="$dir/$f"
7412                      break
7413                    fi
7414                  done
7415                fi
7416              fi
7417            fi
7418                        if test "X$found_dir" = "X"; then
7419              if test -f "$dir/$libname.$acl_libext"; then
7420                found_dir="$dir"
7421                found_a="$dir/$libname.$acl_libext"
7422              fi
7423            fi
7424            if test "X$found_dir" != "X"; then
7425              if test -f "$dir/$libname.la"; then
7426                found_la="$dir/$libname.la"
7427              fi
7428            fi
7429          fi
7430          if test "X$found_dir" = "X"; then
7431            for x in $LDFLAGS $LTLIBINTL; do
7432
7433  acl_save_prefix="$prefix"
7434  prefix="$acl_final_prefix"
7435  acl_save_exec_prefix="$exec_prefix"
7436  exec_prefix="$acl_final_exec_prefix"
7437  eval x=\"$x\"
7438  exec_prefix="$acl_save_exec_prefix"
7439  prefix="$acl_save_prefix"
7440
7441              case "$x" in
7442                -L*)
7443                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7444                                    if test -n "$acl_shlibext"; then
7445                    if test -f "$dir/$libname$shrext"; then
7446                      found_dir="$dir"
7447                      found_so="$dir/$libname$shrext"
7448                    else
7449                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7450                        ver=`(cd "$dir" && \
7451                              for f in "$libname$shrext".*; do echo "$f"; done \
7452                              | sed -e "s,^$libname$shrext\\\\.,," \
7453                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7454                              | sed 1q ) 2>/dev/null`
7455                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7456                          found_dir="$dir"
7457                          found_so="$dir/$libname$shrext.$ver"
7458                        fi
7459                      else
7460                        eval library_names=\"$acl_library_names_spec\"
7461                        for f in $library_names; do
7462                          if test -f "$dir/$f"; then
7463                            found_dir="$dir"
7464                            found_so="$dir/$f"
7465                            break
7466                          fi
7467                        done
7468                      fi
7469                    fi
7470                  fi
7471                                    if test "X$found_dir" = "X"; then
7472                    if test -f "$dir/$libname.$acl_libext"; then
7473                      found_dir="$dir"
7474                      found_a="$dir/$libname.$acl_libext"
7475                    fi
7476                  fi
7477                  if test "X$found_dir" != "X"; then
7478                    if test -f "$dir/$libname.la"; then
7479                      found_la="$dir/$libname.la"
7480                    fi
7481                  fi
7482                  ;;
7483              esac
7484              if test "X$found_dir" != "X"; then
7485                break
7486              fi
7487            done
7488          fi
7489          if test "X$found_dir" != "X"; then
7490                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7491            if test "X$found_so" != "X"; then
7492                                                        if test "$enable_rpath" = no \
7493                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7494                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7495                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7496              else
7497                                                                                haveit=
7498                for x in $ltrpathdirs; do
7499                  if test "X$x" = "X$found_dir"; then
7500                    haveit=yes
7501                    break
7502                  fi
7503                done
7504                if test -z "$haveit"; then
7505                  ltrpathdirs="$ltrpathdirs $found_dir"
7506                fi
7507                                if test "$acl_hardcode_direct" = yes; then
7508                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7509                else
7510                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7511                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7512                                                            haveit=
7513                    for x in $rpathdirs; do
7514                      if test "X$x" = "X$found_dir"; then
7515                        haveit=yes
7516                        break
7517                      fi
7518                    done
7519                    if test -z "$haveit"; then
7520                      rpathdirs="$rpathdirs $found_dir"
7521                    fi
7522                  else
7523                                                                                haveit=
7524                    for x in $LDFLAGS $LIBINTL; do
7525
7526  acl_save_prefix="$prefix"
7527  prefix="$acl_final_prefix"
7528  acl_save_exec_prefix="$exec_prefix"
7529  exec_prefix="$acl_final_exec_prefix"
7530  eval x=\"$x\"
7531  exec_prefix="$acl_save_exec_prefix"
7532  prefix="$acl_save_prefix"
7533
7534                      if test "X$x" = "X-L$found_dir"; then
7535                        haveit=yes
7536                        break
7537                      fi
7538                    done
7539                    if test -z "$haveit"; then
7540                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7541                    fi
7542                    if test "$acl_hardcode_minus_L" != no; then
7543                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7544                    else
7545                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7546                    fi
7547                  fi
7548                fi
7549              fi
7550            else
7551              if test "X$found_a" != "X"; then
7552                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7553              else
7554                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7555              fi
7556            fi
7557                        additional_includedir=
7558            case "$found_dir" in
7559              */$acl_libdirstem | */$acl_libdirstem/)
7560                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7561                if test "$name" = 'intl'; then
7562                  LIBINTL_PREFIX="$basedir"
7563                fi
7564                additional_includedir="$basedir/include"
7565                ;;
7566              */$acl_libdirstem2 | */$acl_libdirstem2/)
7567                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7568                if test "$name" = 'intl'; then
7569                  LIBINTL_PREFIX="$basedir"
7570                fi
7571                additional_includedir="$basedir/include"
7572                ;;
7573            esac
7574            if test "X$additional_includedir" != "X"; then
7575                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7576                haveit=
7577                if test "X$additional_includedir" = "X/usr/local/include"; then
7578                  if test -n "$GCC"; then
7579                    case $host_os in
7580                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7581                    esac
7582                  fi
7583                fi
7584                if test -z "$haveit"; then
7585                  for x in $CPPFLAGS $INCINTL; do
7586
7587  acl_save_prefix="$prefix"
7588  prefix="$acl_final_prefix"
7589  acl_save_exec_prefix="$exec_prefix"
7590  exec_prefix="$acl_final_exec_prefix"
7591  eval x=\"$x\"
7592  exec_prefix="$acl_save_exec_prefix"
7593  prefix="$acl_save_prefix"
7594
7595                    if test "X$x" = "X-I$additional_includedir"; then
7596                      haveit=yes
7597                      break
7598                    fi
7599                  done
7600                  if test -z "$haveit"; then
7601                    if test -d "$additional_includedir"; then
7602                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7603                    fi
7604                  fi
7605                fi
7606              fi
7607            fi
7608                        if test -n "$found_la"; then
7609                                                        save_libdir="$libdir"
7610              case "$found_la" in
7611                */* | *\\*) . "$found_la" ;;
7612                *) . "./$found_la" ;;
7613              esac
7614              libdir="$save_libdir"
7615                            for dep in $dependency_libs; do
7616                case "$dep" in
7617                  -L*)
7618                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7619                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7620                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7621                      haveit=
7622                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7623                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7624                        if test -n "$GCC"; then
7625                          case $host_os in
7626                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7627                          esac
7628                        fi
7629                      fi
7630                      if test -z "$haveit"; then
7631                        haveit=
7632                        for x in $LDFLAGS $LIBINTL; do
7633
7634  acl_save_prefix="$prefix"
7635  prefix="$acl_final_prefix"
7636  acl_save_exec_prefix="$exec_prefix"
7637  exec_prefix="$acl_final_exec_prefix"
7638  eval x=\"$x\"
7639  exec_prefix="$acl_save_exec_prefix"
7640  prefix="$acl_save_prefix"
7641
7642                          if test "X$x" = "X-L$additional_libdir"; then
7643                            haveit=yes
7644                            break
7645                          fi
7646                        done
7647                        if test -z "$haveit"; then
7648                          if test -d "$additional_libdir"; then
7649                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7650                          fi
7651                        fi
7652                        haveit=
7653                        for x in $LDFLAGS $LTLIBINTL; do
7654
7655  acl_save_prefix="$prefix"
7656  prefix="$acl_final_prefix"
7657  acl_save_exec_prefix="$exec_prefix"
7658  exec_prefix="$acl_final_exec_prefix"
7659  eval x=\"$x\"
7660  exec_prefix="$acl_save_exec_prefix"
7661  prefix="$acl_save_prefix"
7662
7663                          if test "X$x" = "X-L$additional_libdir"; then
7664                            haveit=yes
7665                            break
7666                          fi
7667                        done
7668                        if test -z "$haveit"; then
7669                          if test -d "$additional_libdir"; then
7670                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7671                          fi
7672                        fi
7673                      fi
7674                    fi
7675                    ;;
7676                  -R*)
7677                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7678                    if test "$enable_rpath" != no; then
7679                                                                  haveit=
7680                      for x in $rpathdirs; do
7681                        if test "X$x" = "X$dir"; then
7682                          haveit=yes
7683                          break
7684                        fi
7685                      done
7686                      if test -z "$haveit"; then
7687                        rpathdirs="$rpathdirs $dir"
7688                      fi
7689                                                                  haveit=
7690                      for x in $ltrpathdirs; do
7691                        if test "X$x" = "X$dir"; then
7692                          haveit=yes
7693                          break
7694                        fi
7695                      done
7696                      if test -z "$haveit"; then
7697                        ltrpathdirs="$ltrpathdirs $dir"
7698                      fi
7699                    fi
7700                    ;;
7701                  -l*)
7702                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7703                    ;;
7704                  *.la)
7705                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7706                    ;;
7707                  *)
7708                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7709                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7710                    ;;
7711                esac
7712              done
7713            fi
7714          else
7715                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7716            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7717          fi
7718        fi
7719      fi
7720    done
7721  done
7722  if test "X$rpathdirs" != "X"; then
7723    if test -n "$acl_hardcode_libdir_separator"; then
7724                        alldirs=
7725      for found_dir in $rpathdirs; do
7726        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7727      done
7728            acl_save_libdir="$libdir"
7729      libdir="$alldirs"
7730      eval flag=\"$acl_hardcode_libdir_flag_spec\"
7731      libdir="$acl_save_libdir"
7732      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7733    else
7734            for found_dir in $rpathdirs; do
7735        acl_save_libdir="$libdir"
7736        libdir="$found_dir"
7737        eval flag=\"$acl_hardcode_libdir_flag_spec\"
7738        libdir="$acl_save_libdir"
7739        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7740      done
7741    fi
7742  fi
7743  if test "X$ltrpathdirs" != "X"; then
7744            for found_dir in $ltrpathdirs; do
7745      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7746    done
7747  fi
7748
7749
7750
7751
7752
7753
7754          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7755$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7756if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  gt_save_CPPFLAGS="$CPPFLAGS"
7760            CPPFLAGS="$CPPFLAGS $INCINTL"
7761            gt_save_LIBS="$LIBS"
7762            LIBS="$LIBS $LIBINTL"
7763                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764/* end confdefs.h.  */
7765#include <libintl.h>
7766$gt_revision_test_code
7767extern int _nl_msg_cat_cntr;
7768extern
7769#ifdef __cplusplus
7770"C"
7771#endif
7772const char *_nl_expand_alias (const char *);
7773int
7774main ()
7775{
7776bindtextdomain ("", "");
7777return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7778  ;
7779  return 0;
7780}
7781_ACEOF
7782if ac_fn_c_try_link "$LINENO"; then :
7783  eval "$gt_func_gnugettext_libintl=yes"
7784else
7785  eval "$gt_func_gnugettext_libintl=no"
7786fi
7787rm -f core conftest.err conftest.$ac_objext \
7788    conftest$ac_exeext conftest.$ac_ext
7789                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7790              LIBS="$LIBS $LIBICONV"
7791              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792/* end confdefs.h.  */
7793#include <libintl.h>
7794$gt_revision_test_code
7795extern int _nl_msg_cat_cntr;
7796extern
7797#ifdef __cplusplus
7798"C"
7799#endif
7800const char *_nl_expand_alias (const char *);
7801int
7802main ()
7803{
7804bindtextdomain ("", "");
7805return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7806  ;
7807  return 0;
7808}
7809_ACEOF
7810if ac_fn_c_try_link "$LINENO"; then :
7811  LIBINTL="$LIBINTL $LIBICONV"
7812                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7813                eval "$gt_func_gnugettext_libintl=yes"
7814
7815fi
7816rm -f core conftest.err conftest.$ac_objext \
7817    conftest$ac_exeext conftest.$ac_ext
7818            fi
7819            CPPFLAGS="$gt_save_CPPFLAGS"
7820            LIBS="$gt_save_LIBS"
7821fi
7822eval ac_res=\$$gt_func_gnugettext_libintl
7823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7824$as_echo "$ac_res" >&6; }
7825        fi
7826
7827                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7828           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7829                && test "$PACKAGE" != gettext-runtime \
7830                && test "$PACKAGE" != gettext-tools; }; then
7831          gt_use_preinstalled_gnugettext=yes
7832        else
7833                    LIBINTL=
7834          LTLIBINTL=
7835          INCINTL=
7836        fi
7837
7838
7839
7840    if test -n "$INTL_MACOSX_LIBS"; then
7841      if test "$gt_use_preinstalled_gnugettext" = "yes" \
7842         || test "$nls_cv_use_gnu_gettext" = "yes"; then
7843                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7844        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7845      fi
7846    fi
7847
7848    if test "$gt_use_preinstalled_gnugettext" = "yes" \
7849       || test "$nls_cv_use_gnu_gettext" = "yes"; then
7850
7851$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7852
7853    else
7854      USE_NLS=no
7855    fi
7856  fi
7857
7858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7859$as_echo_n "checking whether to use NLS... " >&6; }
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7861$as_echo "$USE_NLS" >&6; }
7862  if test "$USE_NLS" = "yes"; then
7863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7864$as_echo_n "checking where the gettext function comes from... " >&6; }
7865    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7866      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7867        gt_source="external libintl"
7868      else
7869        gt_source="libc"
7870      fi
7871    else
7872      gt_source="included intl directory"
7873    fi
7874    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7875$as_echo "$gt_source" >&6; }
7876  fi
7877
7878  if test "$USE_NLS" = "yes"; then
7879
7880    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7881      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7882        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7883$as_echo_n "checking how to link with libintl... " >&6; }
7884        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7885$as_echo "$LIBINTL" >&6; }
7886
7887  for element in $INCINTL; do
7888    haveit=
7889    for x in $CPPFLAGS; do
7890
7891  acl_save_prefix="$prefix"
7892  prefix="$acl_final_prefix"
7893  acl_save_exec_prefix="$exec_prefix"
7894  exec_prefix="$acl_final_exec_prefix"
7895  eval x=\"$x\"
7896  exec_prefix="$acl_save_exec_prefix"
7897  prefix="$acl_save_prefix"
7898
7899      if test "X$x" = "X$element"; then
7900        haveit=yes
7901        break
7902      fi
7903    done
7904    if test -z "$haveit"; then
7905      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7906    fi
7907  done
7908
7909      fi
7910
7911
7912$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7913
7914
7915$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7916
7917    fi
7918
7919        POSUB=po
7920  fi
7921
7922
7923
7924    INTLLIBS="$LIBINTL"
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936# -----------------------------------------------------------------------
7937# Checks for libraries.
7938# -----------------------------------------------------------------------
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7951	if test -n "$ac_tool_prefix"; then
7952  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7953set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  case $PKG_CONFIG in
7960  [\\/]* | ?:[\\/]*)
7961  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7962  ;;
7963  *)
7964  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967  IFS=$as_save_IFS
7968  test -z "$as_dir" && as_dir=.
7969    for ac_exec_ext in '' $ac_executable_extensions; do
7970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973    break 2
7974  fi
7975done
7976  done
7977IFS=$as_save_IFS
7978
7979  ;;
7980esac
7981fi
7982PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7983if test -n "$PKG_CONFIG"; then
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7985$as_echo "$PKG_CONFIG" >&6; }
7986else
7987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988$as_echo "no" >&6; }
7989fi
7990
7991
7992fi
7993if test -z "$ac_cv_path_PKG_CONFIG"; then
7994  ac_pt_PKG_CONFIG=$PKG_CONFIG
7995  # Extract the first word of "pkg-config", so it can be a program name with args.
7996set dummy pkg-config; ac_word=$2
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998$as_echo_n "checking for $ac_word... " >&6; }
7999if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8000  $as_echo_n "(cached) " >&6
8001else
8002  case $ac_pt_PKG_CONFIG in
8003  [\\/]* | ?:[\\/]*)
8004  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8005  ;;
8006  *)
8007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010  IFS=$as_save_IFS
8011  test -z "$as_dir" && as_dir=.
8012    for ac_exec_ext in '' $ac_executable_extensions; do
8013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8014    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016    break 2
8017  fi
8018done
8019  done
8020IFS=$as_save_IFS
8021
8022  ;;
8023esac
8024fi
8025ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8026if test -n "$ac_pt_PKG_CONFIG"; then
8027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8028$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8029else
8030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
8032fi
8033
8034  if test "x$ac_pt_PKG_CONFIG" = x; then
8035    PKG_CONFIG=""
8036  else
8037    case $cross_compiling:$ac_tool_warned in
8038yes:)
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041ac_tool_warned=yes ;;
8042esac
8043    PKG_CONFIG=$ac_pt_PKG_CONFIG
8044  fi
8045else
8046  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8047fi
8048
8049fi
8050if test -n "$PKG_CONFIG"; then
8051	_pkg_min_version=0.9.0
8052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8053$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8054	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8056$as_echo "yes" >&6; }
8057	else
8058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059$as_echo "no" >&6; }
8060		PKG_CONFIG=""
8061	fi
8062fi
8063
8064pkg_failed=no
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
8066$as_echo_n "checking for SDL... " >&6; }
8067
8068if test -n "$SDL_CFLAGS"; then
8069    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
8070 elif test -n "$PKG_CONFIG"; then
8071    if test -n "$PKG_CONFIG" && \
8072    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
8073  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
8074  ac_status=$?
8075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076  test $ac_status = 0; }; then
8077  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= 1.2.0" 2>/dev/null`
8078else
8079  pkg_failed=yes
8080fi
8081 else
8082    pkg_failed=untried
8083fi
8084if test -n "$SDL_LIBS"; then
8085    pkg_cv_SDL_LIBS="$SDL_LIBS"
8086 elif test -n "$PKG_CONFIG"; then
8087    if test -n "$PKG_CONFIG" && \
8088    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl >= 1.2.0\""; } >&5
8089  ($PKG_CONFIG --exists --print-errors "sdl >= 1.2.0") 2>&5
8090  ac_status=$?
8091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092  test $ac_status = 0; }; then
8093  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= 1.2.0" 2>/dev/null`
8094else
8095  pkg_failed=yes
8096fi
8097 else
8098    pkg_failed=untried
8099fi
8100
8101
8102
8103if test $pkg_failed = yes; then
8104   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106
8107if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8108        _pkg_short_errors_supported=yes
8109else
8110        _pkg_short_errors_supported=no
8111fi
8112        if test $_pkg_short_errors_supported = yes; then
8113	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl >= 1.2.0" 2>&1`
8114        else
8115	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl >= 1.2.0" 2>&1`
8116        fi
8117	# Put the nasty error message in config.log where it belongs
8118	echo "$SDL_PKG_ERRORS" >&5
8119
8120	SDL_VERSION=1.2.0
8121
8122# Check whether --with-sdl-prefix was given.
8123if test "${with_sdl_prefix+set}" = set; then :
8124  withval=$with_sdl_prefix; sdl_prefix="$withval"
8125else
8126  sdl_prefix=""
8127fi
8128
8129
8130# Check whether --with-sdl-exec-prefix was given.
8131if test "${with_sdl_exec_prefix+set}" = set; then :
8132  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
8133else
8134  sdl_exec_prefix=""
8135fi
8136
8137# Check whether --enable-sdltest was given.
8138if test "${enable_sdltest+set}" = set; then :
8139  enableval=$enable_sdltest;
8140else
8141  enable_sdltest=yes
8142fi
8143
8144
8145  if test x$sdl_exec_prefix != x ; then
8146     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
8147     if test x${SDL_CONFIG+set} != xset ; then
8148        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
8149     fi
8150  fi
8151  if test x$sdl_prefix != x ; then
8152     sdl_args="$sdl_args --prefix=$sdl_prefix"
8153     if test x${SDL_CONFIG+set} != xset ; then
8154        SDL_CONFIG=$sdl_prefix/bin/sdl-config
8155     fi
8156  fi
8157
8158
8159  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
8160  # Extract the first word of "sdl-config", so it can be a program name with args.
8161set dummy sdl-config; ac_word=$2
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163$as_echo_n "checking for $ac_word... " >&6; }
8164if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
8165  $as_echo_n "(cached) " >&6
8166else
8167  case $SDL_CONFIG in
8168  [\\/]* | ?:[\\/]*)
8169  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
8170  ;;
8171  *)
8172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175  IFS=$as_save_IFS
8176  test -z "$as_dir" && as_dir=.
8177    for ac_exec_ext in '' $ac_executable_extensions; do
8178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181    break 2
8182  fi
8183done
8184  done
8185IFS=$as_save_IFS
8186
8187  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
8188  ;;
8189esac
8190fi
8191SDL_CONFIG=$ac_cv_path_SDL_CONFIG
8192if test -n "$SDL_CONFIG"; then
8193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
8194$as_echo "$SDL_CONFIG" >&6; }
8195else
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197$as_echo "no" >&6; }
8198fi
8199
8200
8201  min_sdl_version=$SDL_VERSION
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
8203$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
8204  no_sdl=""
8205  if test "$SDL_CONFIG" = "no" ; then
8206    no_sdl=yes
8207  else
8208    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
8209    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
8210
8211    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
8212           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8213    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
8214           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8215    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
8216           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8217    if test "x$enable_sdltest" = "xyes" ; then
8218      ac_save_CFLAGS="$CFLAGS"
8219      ac_save_CXXFLAGS="$CXXFLAGS"
8220      ac_save_LIBS="$LIBS"
8221      CFLAGS="$CFLAGS $SDL_CFLAGS"
8222      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8223      LIBS="$LIBS $SDL_LIBS"
8224      rm -f conf.sdltest
8225      if test "$cross_compiling" = yes; then :
8226  echo $ac_n "cross compiling; assumed OK... $ac_c"
8227else
8228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229/* end confdefs.h.  */
8230
8231#include <stdio.h>
8232#include <stdlib.h>
8233#include <string.h>
8234#include "SDL.h"
8235
8236char*
8237my_strdup (char *str)
8238{
8239  char *new_str;
8240
8241  if (str)
8242    {
8243      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8244      strcpy (new_str, str);
8245    }
8246  else
8247    new_str = NULL;
8248
8249  return new_str;
8250}
8251
8252int main (int argc, char *argv[])
8253{
8254  int major, minor, micro;
8255  char *tmp_version;
8256
8257  /* This hangs on some systems (?)
8258  system ("touch conf.sdltest");
8259  */
8260  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8261
8262  /* HP/UX 9 (%@#!) writes to sscanf strings */
8263  tmp_version = my_strdup("$min_sdl_version");
8264  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8265     printf("%s, bad version string\n", "$min_sdl_version");
8266     exit(1);
8267   }
8268
8269   if (($sdl_major_version > major) ||
8270      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8271      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8272    {
8273      return 0;
8274    }
8275  else
8276    {
8277      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8278      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8279      printf("*** best to upgrade to the required version.\n");
8280      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8281      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8282      printf("*** config.cache before re-running configure\n");
8283      return 1;
8284    }
8285}
8286
8287
8288_ACEOF
8289if ac_fn_c_try_run "$LINENO"; then :
8290
8291else
8292  no_sdl=yes
8293fi
8294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8295  conftest.$ac_objext conftest.beam conftest.$ac_ext
8296fi
8297
8298       CFLAGS="$ac_save_CFLAGS"
8299       LIBS="$ac_save_LIBS"
8300     fi
8301  fi
8302  if test "x$no_sdl" = x ; then
8303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8304$as_echo "yes" >&6; }
8305     :
8306  else
8307     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308$as_echo "no" >&6; }
8309     if test "$SDL_CONFIG" = "no" ; then
8310       echo "*** The sdl-config script installed by SDL could not be found"
8311       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8312       echo "*** your path, or set the SDL_CONFIG environment variable to the"
8313       echo "*** full path to sdl-config."
8314     else
8315       if test -f conf.sdltest ; then
8316        :
8317       else
8318          echo "*** Could not run SDL test program, checking why..."
8319          CFLAGS="$CFLAGS $SDL_CFLAGS"
8320          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8321          LIBS="$LIBS $SDL_LIBS"
8322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h.  */
8324
8325#include <stdio.h>
8326#include "SDL.h"
8327
8328int main(int argc, char *argv[])
8329{ return 0; }
8330#undef  main
8331#define main K_and_R_C_main
8332
8333int
8334main ()
8335{
8336 return 0;
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341if ac_fn_c_try_link "$LINENO"; then :
8342   echo "*** The test program compiled, but did not run. This usually means"
8343          echo "*** that the run-time linker is not finding SDL or finding the wrong"
8344          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8345          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8346          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8347          echo "*** is required on your system"
8348	  echo "***"
8349          echo "*** If you have an old version installed, it is best to remove it, although"
8350          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8351else
8352   echo "*** The test program failed to compile or link. See the file config.log for the"
8353          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8354          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8355          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
8356fi
8357rm -f core conftest.err conftest.$ac_objext \
8358    conftest$ac_exeext conftest.$ac_ext
8359          CFLAGS="$ac_save_CFLAGS"
8360          CXXFLAGS="$ac_save_CXXFLAGS"
8361          LIBS="$ac_save_LIBS"
8362       fi
8363     fi
8364     SDL_CFLAGS=""
8365     SDL_CXXFLAGS=""
8366     SDL_LIBS=""
8367     as_fn_error $? "SDL version $SDL_VERSION not found! http://www.libsdl.org" "$LINENO" 5
8368  fi
8369
8370
8371  rm -f conf.sdltest
8372
8373elif test $pkg_failed = untried; then
8374     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376	SDL_VERSION=1.2.0
8377
8378# Check whether --with-sdl-prefix was given.
8379if test "${with_sdl_prefix+set}" = set; then :
8380  withval=$with_sdl_prefix; sdl_prefix="$withval"
8381else
8382  sdl_prefix=""
8383fi
8384
8385
8386# Check whether --with-sdl-exec-prefix was given.
8387if test "${with_sdl_exec_prefix+set}" = set; then :
8388  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
8389else
8390  sdl_exec_prefix=""
8391fi
8392
8393# Check whether --enable-sdltest was given.
8394if test "${enable_sdltest+set}" = set; then :
8395  enableval=$enable_sdltest;
8396else
8397  enable_sdltest=yes
8398fi
8399
8400
8401  if test x$sdl_exec_prefix != x ; then
8402     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
8403     if test x${SDL_CONFIG+set} != xset ; then
8404        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
8405     fi
8406  fi
8407  if test x$sdl_prefix != x ; then
8408     sdl_args="$sdl_args --prefix=$sdl_prefix"
8409     if test x${SDL_CONFIG+set} != xset ; then
8410        SDL_CONFIG=$sdl_prefix/bin/sdl-config
8411     fi
8412  fi
8413
8414
8415  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
8416  # Extract the first word of "sdl-config", so it can be a program name with args.
8417set dummy sdl-config; ac_word=$2
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419$as_echo_n "checking for $ac_word... " >&6; }
8420if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
8421  $as_echo_n "(cached) " >&6
8422else
8423  case $SDL_CONFIG in
8424  [\\/]* | ?:[\\/]*)
8425  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
8426  ;;
8427  *)
8428  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429for as_dir in $PATH
8430do
8431  IFS=$as_save_IFS
8432  test -z "$as_dir" && as_dir=.
8433    for ac_exec_ext in '' $ac_executable_extensions; do
8434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437    break 2
8438  fi
8439done
8440  done
8441IFS=$as_save_IFS
8442
8443  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
8444  ;;
8445esac
8446fi
8447SDL_CONFIG=$ac_cv_path_SDL_CONFIG
8448if test -n "$SDL_CONFIG"; then
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
8450$as_echo "$SDL_CONFIG" >&6; }
8451else
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453$as_echo "no" >&6; }
8454fi
8455
8456
8457  min_sdl_version=$SDL_VERSION
8458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
8459$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
8460  no_sdl=""
8461  if test "$SDL_CONFIG" = "no" ; then
8462    no_sdl=yes
8463  else
8464    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
8465    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
8466
8467    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
8468           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8469    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
8470           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8471    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
8472           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8473    if test "x$enable_sdltest" = "xyes" ; then
8474      ac_save_CFLAGS="$CFLAGS"
8475      ac_save_CXXFLAGS="$CXXFLAGS"
8476      ac_save_LIBS="$LIBS"
8477      CFLAGS="$CFLAGS $SDL_CFLAGS"
8478      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8479      LIBS="$LIBS $SDL_LIBS"
8480      rm -f conf.sdltest
8481      if test "$cross_compiling" = yes; then :
8482  echo $ac_n "cross compiling; assumed OK... $ac_c"
8483else
8484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485/* end confdefs.h.  */
8486
8487#include <stdio.h>
8488#include <stdlib.h>
8489#include <string.h>
8490#include "SDL.h"
8491
8492char*
8493my_strdup (char *str)
8494{
8495  char *new_str;
8496
8497  if (str)
8498    {
8499      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8500      strcpy (new_str, str);
8501    }
8502  else
8503    new_str = NULL;
8504
8505  return new_str;
8506}
8507
8508int main (int argc, char *argv[])
8509{
8510  int major, minor, micro;
8511  char *tmp_version;
8512
8513  /* This hangs on some systems (?)
8514  system ("touch conf.sdltest");
8515  */
8516  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8517
8518  /* HP/UX 9 (%@#!) writes to sscanf strings */
8519  tmp_version = my_strdup("$min_sdl_version");
8520  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8521     printf("%s, bad version string\n", "$min_sdl_version");
8522     exit(1);
8523   }
8524
8525   if (($sdl_major_version > major) ||
8526      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8527      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8528    {
8529      return 0;
8530    }
8531  else
8532    {
8533      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8534      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8535      printf("*** best to upgrade to the required version.\n");
8536      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8537      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8538      printf("*** config.cache before re-running configure\n");
8539      return 1;
8540    }
8541}
8542
8543
8544_ACEOF
8545if ac_fn_c_try_run "$LINENO"; then :
8546
8547else
8548  no_sdl=yes
8549fi
8550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8551  conftest.$ac_objext conftest.beam conftest.$ac_ext
8552fi
8553
8554       CFLAGS="$ac_save_CFLAGS"
8555       LIBS="$ac_save_LIBS"
8556     fi
8557  fi
8558  if test "x$no_sdl" = x ; then
8559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8560$as_echo "yes" >&6; }
8561     :
8562  else
8563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564$as_echo "no" >&6; }
8565     if test "$SDL_CONFIG" = "no" ; then
8566       echo "*** The sdl-config script installed by SDL could not be found"
8567       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8568       echo "*** your path, or set the SDL_CONFIG environment variable to the"
8569       echo "*** full path to sdl-config."
8570     else
8571       if test -f conf.sdltest ; then
8572        :
8573       else
8574          echo "*** Could not run SDL test program, checking why..."
8575          CFLAGS="$CFLAGS $SDL_CFLAGS"
8576          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8577          LIBS="$LIBS $SDL_LIBS"
8578          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579/* end confdefs.h.  */
8580
8581#include <stdio.h>
8582#include "SDL.h"
8583
8584int main(int argc, char *argv[])
8585{ return 0; }
8586#undef  main
8587#define main K_and_R_C_main
8588
8589int
8590main ()
8591{
8592 return 0;
8593  ;
8594  return 0;
8595}
8596_ACEOF
8597if ac_fn_c_try_link "$LINENO"; then :
8598   echo "*** The test program compiled, but did not run. This usually means"
8599          echo "*** that the run-time linker is not finding SDL or finding the wrong"
8600          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8601          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8602          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
8603          echo "*** is required on your system"
8604	  echo "***"
8605          echo "*** If you have an old version installed, it is best to remove it, although"
8606          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8607else
8608   echo "*** The test program failed to compile or link. See the file config.log for the"
8609          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8610          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8611          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
8612fi
8613rm -f core conftest.err conftest.$ac_objext \
8614    conftest$ac_exeext conftest.$ac_ext
8615          CFLAGS="$ac_save_CFLAGS"
8616          CXXFLAGS="$ac_save_CXXFLAGS"
8617          LIBS="$ac_save_LIBS"
8618       fi
8619     fi
8620     SDL_CFLAGS=""
8621     SDL_CXXFLAGS=""
8622     SDL_LIBS=""
8623     as_fn_error $? "SDL version $SDL_VERSION not found! http://www.libsdl.org" "$LINENO" 5
8624  fi
8625
8626
8627  rm -f conf.sdltest
8628
8629else
8630	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
8631	SDL_LIBS=$pkg_cv_SDL_LIBS
8632        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633$as_echo "yes" >&6; }
8634
8635fi
8636
8637CFLAGS="$CFLAGS $SDL_CFLAGS"
8638LIBS="$LIBS $SDL_LIBS"
8639
8640
8641
8642
8643
8644pkg_failed=no
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_IMAGE" >&5
8646$as_echo_n "checking for SDL_IMAGE... " >&6; }
8647
8648if test -n "$SDL_IMAGE_CFLAGS"; then
8649    pkg_cv_SDL_IMAGE_CFLAGS="$SDL_IMAGE_CFLAGS"
8650 elif test -n "$PKG_CONFIG"; then
8651    if test -n "$PKG_CONFIG" && \
8652    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image\""; } >&5
8653  ($PKG_CONFIG --exists --print-errors "SDL_image") 2>&5
8654  ac_status=$?
8655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8656  test $ac_status = 0; }; then
8657  pkg_cv_SDL_IMAGE_CFLAGS=`$PKG_CONFIG --cflags "SDL_image" 2>/dev/null`
8658else
8659  pkg_failed=yes
8660fi
8661 else
8662    pkg_failed=untried
8663fi
8664if test -n "$SDL_IMAGE_LIBS"; then
8665    pkg_cv_SDL_IMAGE_LIBS="$SDL_IMAGE_LIBS"
8666 elif test -n "$PKG_CONFIG"; then
8667    if test -n "$PKG_CONFIG" && \
8668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_image\""; } >&5
8669  ($PKG_CONFIG --exists --print-errors "SDL_image") 2>&5
8670  ac_status=$?
8671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8672  test $ac_status = 0; }; then
8673  pkg_cv_SDL_IMAGE_LIBS=`$PKG_CONFIG --libs "SDL_image" 2>/dev/null`
8674else
8675  pkg_failed=yes
8676fi
8677 else
8678    pkg_failed=untried
8679fi
8680
8681
8682
8683if test $pkg_failed = yes; then
8684   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685$as_echo "no" >&6; }
8686
8687if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8688        _pkg_short_errors_supported=yes
8689else
8690        _pkg_short_errors_supported=no
8691fi
8692        if test $_pkg_short_errors_supported = yes; then
8693	        SDL_IMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_image" 2>&1`
8694        else
8695	        SDL_IMAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_image" 2>&1`
8696        fi
8697	# Put the nasty error message in config.log where it belongs
8698	echo "$SDL_IMAGE_PKG_ERRORS" >&5
8699
8700	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&5
8701$as_echo "$as_me: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&6;}
8702	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
8703$as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
8704if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  ac_check_lib_save_LIBS=$LIBS
8708LIBS="-lSDL_image  $LIBS"
8709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710/* end confdefs.h.  */
8711
8712/* Override any GCC internal prototype to avoid an error.
8713   Use char because int might match the return type of a GCC
8714   builtin and then its argument prototype would still apply.  */
8715#ifdef __cplusplus
8716extern "C"
8717#endif
8718char IMG_Load ();
8719int
8720main ()
8721{
8722return IMG_Load ();
8723  ;
8724  return 0;
8725}
8726_ACEOF
8727if ac_fn_c_try_link "$LINENO"; then :
8728  ac_cv_lib_SDL_image_IMG_Load=yes
8729else
8730  ac_cv_lib_SDL_image_IMG_Load=no
8731fi
8732rm -f core conftest.err conftest.$ac_objext \
8733    conftest$ac_exeext conftest.$ac_ext
8734LIBS=$ac_check_lib_save_LIBS
8735fi
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
8737$as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
8738if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
8739  cat >>confdefs.h <<_ACEOF
8740#define HAVE_LIBSDL_IMAGE 1
8741_ACEOF
8742
8743  LIBS="-lSDL_image $LIBS"
8744
8745else
8746  as_fn_error $? "SDL_image not found! http://www.libsdl.org/projects/SDL_image" "$LINENO" 5
8747fi
8748
8749elif test $pkg_failed = untried; then
8750     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751$as_echo "no" >&6; }
8752	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&5
8753$as_echo "$as_me: SDL_image not located by pkg-config, checking with AC CHECK LIB:" >&6;}
8754	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
8755$as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
8756if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  ac_check_lib_save_LIBS=$LIBS
8760LIBS="-lSDL_image  $LIBS"
8761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762/* end confdefs.h.  */
8763
8764/* Override any GCC internal prototype to avoid an error.
8765   Use char because int might match the return type of a GCC
8766   builtin and then its argument prototype would still apply.  */
8767#ifdef __cplusplus
8768extern "C"
8769#endif
8770char IMG_Load ();
8771int
8772main ()
8773{
8774return IMG_Load ();
8775  ;
8776  return 0;
8777}
8778_ACEOF
8779if ac_fn_c_try_link "$LINENO"; then :
8780  ac_cv_lib_SDL_image_IMG_Load=yes
8781else
8782  ac_cv_lib_SDL_image_IMG_Load=no
8783fi
8784rm -f core conftest.err conftest.$ac_objext \
8785    conftest$ac_exeext conftest.$ac_ext
8786LIBS=$ac_check_lib_save_LIBS
8787fi
8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
8789$as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
8790if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
8791  cat >>confdefs.h <<_ACEOF
8792#define HAVE_LIBSDL_IMAGE 1
8793_ACEOF
8794
8795  LIBS="-lSDL_image $LIBS"
8796
8797else
8798  as_fn_error $? "SDL_image not found! http://www.libsdl.org/projects/SDL_image" "$LINENO" 5
8799fi
8800
8801else
8802	SDL_IMAGE_CFLAGS=$pkg_cv_SDL_IMAGE_CFLAGS
8803	SDL_IMAGE_LIBS=$pkg_cv_SDL_IMAGE_LIBS
8804        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8805$as_echo "yes" >&6; }
8806
8807fi
8808
8809
8810$as_echo "#define HAVE_LIBSDL_IMAGE 1" >>confdefs.h
8811
8812CFLAGS="$CFLAGS $SDL_IMAGE"
8813LIBS="$LIBS $SDL_IMAGE_LIBS"
8814
8815
8816
8817
8818
8819pkg_failed=no
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_MIXER" >&5
8821$as_echo_n "checking for SDL_MIXER... " >&6; }
8822
8823if test -n "$SDL_MIXER_CFLAGS"; then
8824    pkg_cv_SDL_MIXER_CFLAGS="$SDL_MIXER_CFLAGS"
8825 elif test -n "$PKG_CONFIG"; then
8826    if test -n "$PKG_CONFIG" && \
8827    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
8828  ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
8829  ac_status=$?
8830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8831  test $ac_status = 0; }; then
8832  pkg_cv_SDL_MIXER_CFLAGS=`$PKG_CONFIG --cflags "SDL_mixer" 2>/dev/null`
8833else
8834  pkg_failed=yes
8835fi
8836 else
8837    pkg_failed=untried
8838fi
8839if test -n "$SDL_MIXER_LIBS"; then
8840    pkg_cv_SDL_MIXER_LIBS="$SDL_MIXER_LIBS"
8841 elif test -n "$PKG_CONFIG"; then
8842    if test -n "$PKG_CONFIG" && \
8843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_mixer\""; } >&5
8844  ($PKG_CONFIG --exists --print-errors "SDL_mixer") 2>&5
8845  ac_status=$?
8846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8847  test $ac_status = 0; }; then
8848  pkg_cv_SDL_MIXER_LIBS=`$PKG_CONFIG --libs "SDL_mixer" 2>/dev/null`
8849else
8850  pkg_failed=yes
8851fi
8852 else
8853    pkg_failed=untried
8854fi
8855
8856
8857
8858if test $pkg_failed = yes; then
8859   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860$as_echo "no" >&6; }
8861
8862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8863        _pkg_short_errors_supported=yes
8864else
8865        _pkg_short_errors_supported=no
8866fi
8867        if test $_pkg_short_errors_supported = yes; then
8868	        SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_mixer" 2>&1`
8869        else
8870	        SDL_MIXER_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_mixer" 2>&1`
8871        fi
8872	# Put the nasty error message in config.log where it belongs
8873	echo "$SDL_MIXER_PKG_ERRORS" >&5
8874
8875	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&5
8876$as_echo "$as_me: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&6;}
8877	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
8878$as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
8879if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  ac_check_lib_save_LIBS=$LIBS
8883LIBS="-lSDL_mixer  $LIBS"
8884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885/* end confdefs.h.  */
8886
8887/* Override any GCC internal prototype to avoid an error.
8888   Use char because int might match the return type of a GCC
8889   builtin and then its argument prototype would still apply.  */
8890#ifdef __cplusplus
8891extern "C"
8892#endif
8893char Mix_OpenAudio ();
8894int
8895main ()
8896{
8897return Mix_OpenAudio ();
8898  ;
8899  return 0;
8900}
8901_ACEOF
8902if ac_fn_c_try_link "$LINENO"; then :
8903  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
8904else
8905  ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
8906fi
8907rm -f core conftest.err conftest.$ac_objext \
8908    conftest$ac_exeext conftest.$ac_ext
8909LIBS=$ac_check_lib_save_LIBS
8910fi
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
8912$as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
8913if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = x""yes; then :
8914  cat >>confdefs.h <<_ACEOF
8915#define HAVE_LIBSDL_MIXER 1
8916_ACEOF
8917
8918  LIBS="-lSDL_mixer $LIBS"
8919
8920else
8921  as_fn_error $? "SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer" "$LINENO" 5
8922fi
8923
8924elif test $pkg_failed = untried; then
8925     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926$as_echo "no" >&6; }
8927	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&5
8928$as_echo "$as_me: SDL_mixer not located by pkg-config, checking with AC CHECK LIB:" >&6;}
8929	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
8930$as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
8931if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then :
8932  $as_echo_n "(cached) " >&6
8933else
8934  ac_check_lib_save_LIBS=$LIBS
8935LIBS="-lSDL_mixer  $LIBS"
8936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937/* end confdefs.h.  */
8938
8939/* Override any GCC internal prototype to avoid an error.
8940   Use char because int might match the return type of a GCC
8941   builtin and then its argument prototype would still apply.  */
8942#ifdef __cplusplus
8943extern "C"
8944#endif
8945char Mix_OpenAudio ();
8946int
8947main ()
8948{
8949return Mix_OpenAudio ();
8950  ;
8951  return 0;
8952}
8953_ACEOF
8954if ac_fn_c_try_link "$LINENO"; then :
8955  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
8956else
8957  ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
8958fi
8959rm -f core conftest.err conftest.$ac_objext \
8960    conftest$ac_exeext conftest.$ac_ext
8961LIBS=$ac_check_lib_save_LIBS
8962fi
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
8964$as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
8965if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = x""yes; then :
8966  cat >>confdefs.h <<_ACEOF
8967#define HAVE_LIBSDL_MIXER 1
8968_ACEOF
8969
8970  LIBS="-lSDL_mixer $LIBS"
8971
8972else
8973  as_fn_error $? "SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer" "$LINENO" 5
8974fi
8975
8976else
8977	SDL_MIXER_CFLAGS=$pkg_cv_SDL_MIXER_CFLAGS
8978	SDL_MIXER_LIBS=$pkg_cv_SDL_MIXER_LIBS
8979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8980$as_echo "yes" >&6; }
8981
8982fi
8983
8984
8985$as_echo "#define HAVE_LIBSDL_MIXER 1" >>confdefs.h
8986
8987CFLAGS="$CFLAGS $SDL_MIXER_CFLAGS"
8988LIBS="$LIBS $SDL_MIXER_LIBS"
8989
8990
8991
8992# Check whether --with-rsvg was given.
8993if test "${with_rsvg+set}" = set; then :
8994  withval=$with_rsvg; with_rsvg=no
8995else
8996  with_rsvg=yes
8997fi
8998
8999
9000if test "x$with_rsvg" = xyes; then
9001
9002pkg_failed=no
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
9004$as_echo_n "checking for RSVG... " >&6; }
9005
9006if test -n "$RSVG_CFLAGS"; then
9007    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
9008 elif test -n "$PKG_CONFIG"; then
9009    if test -n "$PKG_CONFIG" && \
9010    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.18\""; } >&5
9011  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.18") 2>&5
9012  ac_status=$?
9013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9014  test $ac_status = 0; }; then
9015  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.18" 2>/dev/null`
9016else
9017  pkg_failed=yes
9018fi
9019 else
9020    pkg_failed=untried
9021fi
9022if test -n "$RSVG_LIBS"; then
9023    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
9024 elif test -n "$PKG_CONFIG"; then
9025    if test -n "$PKG_CONFIG" && \
9026    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.18\""; } >&5
9027  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.18") 2>&5
9028  ac_status=$?
9029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9030  test $ac_status = 0; }; then
9031  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.18" 2>/dev/null`
9032else
9033  pkg_failed=yes
9034fi
9035 else
9036    pkg_failed=untried
9037fi
9038
9039
9040
9041if test $pkg_failed = yes; then
9042   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043$as_echo "no" >&6; }
9044
9045if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9046        _pkg_short_errors_supported=yes
9047else
9048        _pkg_short_errors_supported=no
9049fi
9050        if test $_pkg_short_errors_supported = yes; then
9051	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.18" 2>&1`
9052        else
9053	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.18" 2>&1`
9054        fi
9055	# Put the nasty error message in config.log where it belongs
9056	echo "$RSVG_PKG_ERRORS" >&5
9057
9058	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9060as_fn_error $? "libRSVG test failed (--without-rsvg to disable svg support)
9061See \`config.log' for more details" "$LINENO" 5 ; }
9062elif test $pkg_failed = untried; then
9063     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064$as_echo "no" >&6; }
9065	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9067as_fn_error $? "libRSVG test failed (--without-rsvg to disable svg support)
9068See \`config.log' for more details" "$LINENO" 5 ; }
9069else
9070	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
9071	RSVG_LIBS=$pkg_cv_RSVG_LIBS
9072        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9073$as_echo "yes" >&6; }
9074
9075fi
9076
9077CFLAGS="$CFLAGS $RSVG_CFLAGS"
9078LIBS="$LIBS $RSVG_LIBS"
9079fi
9080
9081if test "x$with_rsvg" = xyes; then
9082
9083pkg_failed=no
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
9085$as_echo_n "checking for CAIRO... " >&6; }
9086
9087if test -n "$CAIRO_CFLAGS"; then
9088    pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
9089 elif test -n "$PKG_CONFIG"; then
9090    if test -n "$PKG_CONFIG" && \
9091    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4.10\""; } >&5
9092  ($PKG_CONFIG --exists --print-errors "cairo >= 1.4.10") 2>&5
9093  ac_status=$?
9094  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9095  test $ac_status = 0; }; then
9096  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.4.10" 2>/dev/null`
9097else
9098  pkg_failed=yes
9099fi
9100 else
9101    pkg_failed=untried
9102fi
9103if test -n "$CAIRO_LIBS"; then
9104    pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
9105 elif test -n "$PKG_CONFIG"; then
9106    if test -n "$PKG_CONFIG" && \
9107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.4.10\""; } >&5
9108  ($PKG_CONFIG --exists --print-errors "cairo >= 1.4.10") 2>&5
9109  ac_status=$?
9110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9111  test $ac_status = 0; }; then
9112  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.4.10" 2>/dev/null`
9113else
9114  pkg_failed=yes
9115fi
9116 else
9117    pkg_failed=untried
9118fi
9119
9120
9121
9122if test $pkg_failed = yes; then
9123   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9124$as_echo "no" >&6; }
9125
9126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9127        _pkg_short_errors_supported=yes
9128else
9129        _pkg_short_errors_supported=no
9130fi
9131        if test $_pkg_short_errors_supported = yes; then
9132	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo >= 1.4.10" 2>&1`
9133        else
9134	        CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo >= 1.4.10" 2>&1`
9135        fi
9136	# Put the nasty error message in config.log where it belongs
9137	echo "$CAIRO_PKG_ERRORS" >&5
9138
9139	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9141as_fn_error $? "cairo test failed (--without-rsvg to disable svg support)
9142See \`config.log' for more details" "$LINENO" 5 ; }
9143elif test $pkg_failed = untried; then
9144     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
9146	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9148as_fn_error $? "cairo test failed (--without-rsvg to disable svg support)
9149See \`config.log' for more details" "$LINENO" 5 ; }
9150else
9151	CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
9152	CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
9153        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9154$as_echo "yes" >&6; }
9155
9156fi
9157
9158CFLAGS="$CFLAGS $CAIRO_CFLAGS"
9159LIBS="$LIBS $CAIRO_LIBS"
9160
9161$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9162
9163fi
9164
9165
9166
9167
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5
9169$as_echo_n "checking for csin in -lm... " >&6; }
9170if test "${ac_cv_lib_m_csin+set}" = set; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  ac_check_lib_save_LIBS=$LIBS
9174LIBS="-lm  $LIBS"
9175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h.  */
9177
9178/* Override any GCC internal prototype to avoid an error.
9179   Use char because int might match the return type of a GCC
9180   builtin and then its argument prototype would still apply.  */
9181#ifdef __cplusplus
9182extern "C"
9183#endif
9184char csin ();
9185int
9186main ()
9187{
9188return csin ();
9189  ;
9190  return 0;
9191}
9192_ACEOF
9193if ac_fn_c_try_link "$LINENO"; then :
9194  ac_cv_lib_m_csin=yes
9195else
9196  ac_cv_lib_m_csin=no
9197fi
9198rm -f core conftest.err conftest.$ac_objext \
9199    conftest$ac_exeext conftest.$ac_ext
9200LIBS=$ac_check_lib_save_LIBS
9201fi
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csin" >&5
9203$as_echo "$ac_cv_lib_m_csin" >&6; }
9204if test "x$ac_cv_lib_m_csin" = x""yes; then :
9205  cat >>confdefs.h <<_ACEOF
9206#define HAVE_LIBM 1
9207_ACEOF
9208
9209  LIBS="-lm $LIBS"
9210
9211else
9212  as_fn_error $? "Math library not found - functions in <math.h> may not be available." "$LINENO" 5
9213fi
9214
9215
9216
9217
9218
9219
9220
9221
9222# Check whether --with-sdlnet was given.
9223if test "${with_sdlnet+set}" = set; then :
9224  withval=$with_sdlnet;
9225else
9226  with_sdlnet=yes
9227
9228fi
9229
9230
9231if test "x$with_sdlnet" != xno; then
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup in -lws2_32" >&5
9233$as_echo_n "checking for WSAStartup in -lws2_32... " >&6; }
9234if test "${ac_cv_lib_ws2_32_WSAStartup+set}" = set; then :
9235  $as_echo_n "(cached) " >&6
9236else
9237  ac_check_lib_save_LIBS=$LIBS
9238LIBS="-lws2_32  $LIBS"
9239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241
9242/* Override any GCC internal prototype to avoid an error.
9243   Use char because int might match the return type of a GCC
9244   builtin and then its argument prototype would still apply.  */
9245#ifdef __cplusplus
9246extern "C"
9247#endif
9248char WSAStartup ();
9249int
9250main ()
9251{
9252return WSAStartup ();
9253  ;
9254  return 0;
9255}
9256_ACEOF
9257if ac_fn_c_try_link "$LINENO"; then :
9258  ac_cv_lib_ws2_32_WSAStartup=yes
9259else
9260  ac_cv_lib_ws2_32_WSAStartup=no
9261fi
9262rm -f core conftest.err conftest.$ac_objext \
9263    conftest$ac_exeext conftest.$ac_ext
9264LIBS=$ac_check_lib_save_LIBS
9265fi
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_WSAStartup" >&5
9267$as_echo "$ac_cv_lib_ws2_32_WSAStartup" >&6; }
9268if test "x$ac_cv_lib_ws2_32_WSAStartup" = x""yes; then :
9269
9270else
9271  { $as_echo "$as_me:${as_lineno-$LINENO}: Windows socket library ws2_32 not found - (only needed on win32)" >&5
9272$as_echo "$as_me: Windows socket library ws2_32 not found - (only needed on win32)" >&6;}
9273fi
9274
9275
9276
9277
9278pkg_failed=no
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_NET" >&5
9280$as_echo_n "checking for SDL_NET... " >&6; }
9281
9282if test -n "$SDL_NET_CFLAGS"; then
9283    pkg_cv_SDL_NET_CFLAGS="$SDL_NET_CFLAGS"
9284 elif test -n "$PKG_CONFIG"; then
9285    if test -n "$PKG_CONFIG" && \
9286    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_net\""; } >&5
9287  ($PKG_CONFIG --exists --print-errors "SDL_net") 2>&5
9288  ac_status=$?
9289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9290  test $ac_status = 0; }; then
9291  pkg_cv_SDL_NET_CFLAGS=`$PKG_CONFIG --cflags "SDL_net" 2>/dev/null`
9292else
9293  pkg_failed=yes
9294fi
9295 else
9296    pkg_failed=untried
9297fi
9298if test -n "$SDL_NET_LIBS"; then
9299    pkg_cv_SDL_NET_LIBS="$SDL_NET_LIBS"
9300 elif test -n "$PKG_CONFIG"; then
9301    if test -n "$PKG_CONFIG" && \
9302    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"SDL_net\""; } >&5
9303  ($PKG_CONFIG --exists --print-errors "SDL_net") 2>&5
9304  ac_status=$?
9305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9306  test $ac_status = 0; }; then
9307  pkg_cv_SDL_NET_LIBS=`$PKG_CONFIG --libs "SDL_net" 2>/dev/null`
9308else
9309  pkg_failed=yes
9310fi
9311 else
9312    pkg_failed=untried
9313fi
9314
9315
9316
9317if test $pkg_failed = yes; then
9318   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319$as_echo "no" >&6; }
9320
9321if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9322        _pkg_short_errors_supported=yes
9323else
9324        _pkg_short_errors_supported=no
9325fi
9326        if test $_pkg_short_errors_supported = yes; then
9327	        SDL_NET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "SDL_net" 2>&1`
9328        else
9329	        SDL_NET_PKG_ERRORS=`$PKG_CONFIG --print-errors "SDL_net" 2>&1`
9330        fi
9331	# Put the nasty error message in config.log where it belongs
9332	echo "$SDL_NET_PKG_ERRORS" >&5
9333
9334	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&5
9335$as_echo "$as_me: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&6;}
9336	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLNet_Init in -lSDL_net" >&5
9337$as_echo_n "checking for SDLNet_Init in -lSDL_net... " >&6; }
9338if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  ac_check_lib_save_LIBS=$LIBS
9342LIBS="-lSDL_net  $LIBS"
9343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344/* end confdefs.h.  */
9345
9346/* Override any GCC internal prototype to avoid an error.
9347   Use char because int might match the return type of a GCC
9348   builtin and then its argument prototype would still apply.  */
9349#ifdef __cplusplus
9350extern "C"
9351#endif
9352char SDLNet_Init ();
9353int
9354main ()
9355{
9356return SDLNet_Init ();
9357  ;
9358  return 0;
9359}
9360_ACEOF
9361if ac_fn_c_try_link "$LINENO"; then :
9362  ac_cv_lib_SDL_net_SDLNet_Init=yes
9363else
9364  ac_cv_lib_SDL_net_SDLNet_Init=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext \
9367    conftest$ac_exeext conftest.$ac_ext
9368LIBS=$ac_check_lib_save_LIBS
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
9371$as_echo "$ac_cv_lib_SDL_net_SDLNet_Init" >&6; }
9372if test "x$ac_cv_lib_SDL_net_SDLNet_Init" = x""yes; then :
9373  cat >>confdefs.h <<_ACEOF
9374#define HAVE_LIBSDL_NET 1
9375_ACEOF
9376
9377  LIBS="-lSDL_net $LIBS"
9378
9379else
9380  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9382as_fn_error $? "SDL_net test failed (--without-sdlnet to disable)
9383See \`config.log' for more details" "$LINENO" 5 ; }
9384fi
9385
9386elif test $pkg_failed = untried; then
9387     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
9389	{ $as_echo "$as_me:${as_lineno-$LINENO}: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&5
9390$as_echo "$as_me: SDL_net not located by pkg-config, checking with AC CHECK LIB:" >&6;}
9391	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDLNet_Init in -lSDL_net" >&5
9392$as_echo_n "checking for SDLNet_Init in -lSDL_net... " >&6; }
9393if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  ac_check_lib_save_LIBS=$LIBS
9397LIBS="-lSDL_net  $LIBS"
9398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399/* end confdefs.h.  */
9400
9401/* Override any GCC internal prototype to avoid an error.
9402   Use char because int might match the return type of a GCC
9403   builtin and then its argument prototype would still apply.  */
9404#ifdef __cplusplus
9405extern "C"
9406#endif
9407char SDLNet_Init ();
9408int
9409main ()
9410{
9411return SDLNet_Init ();
9412  ;
9413  return 0;
9414}
9415_ACEOF
9416if ac_fn_c_try_link "$LINENO"; then :
9417  ac_cv_lib_SDL_net_SDLNet_Init=yes
9418else
9419  ac_cv_lib_SDL_net_SDLNet_Init=no
9420fi
9421rm -f core conftest.err conftest.$ac_objext \
9422    conftest$ac_exeext conftest.$ac_ext
9423LIBS=$ac_check_lib_save_LIBS
9424fi
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
9426$as_echo "$ac_cv_lib_SDL_net_SDLNet_Init" >&6; }
9427if test "x$ac_cv_lib_SDL_net_SDLNet_Init" = x""yes; then :
9428  cat >>confdefs.h <<_ACEOF
9429#define HAVE_LIBSDL_NET 1
9430_ACEOF
9431
9432  LIBS="-lSDL_net $LIBS"
9433
9434else
9435  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9437as_fn_error $? "SDL_net test failed (--without-sdlnet to disable)
9438See \`config.log' for more details" "$LINENO" 5 ; }
9439fi
9440
9441else
9442	SDL_NET_CFLAGS=$pkg_cv_SDL_NET_CFLAGS
9443	SDL_NET_LIBS=$pkg_cv_SDL_NET_LIBS
9444        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9445$as_echo "yes" >&6; }
9446
9447fi
9448
9449
9450$as_echo "#define HAVE_LIBSDL_NET 1" >>confdefs.h
9451
9452CFLAGS="$CFLAGS $SDL_NET_CFLAGS"
9453LIBS="$LIBS $SDL_NET_LIBS"
9454fi
9455
9456
9457
9458
9459
9460pkg_failed=no
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
9462$as_echo_n "checking for XML2... " >&6; }
9463
9464if test -n "$XML2_CFLAGS"; then
9465    pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
9466 elif test -n "$PKG_CONFIG"; then
9467    if test -n "$PKG_CONFIG" && \
9468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
9469  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
9470  ac_status=$?
9471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9472  test $ac_status = 0; }; then
9473  pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
9474else
9475  pkg_failed=yes
9476fi
9477 else
9478    pkg_failed=untried
9479fi
9480if test -n "$XML2_LIBS"; then
9481    pkg_cv_XML2_LIBS="$XML2_LIBS"
9482 elif test -n "$PKG_CONFIG"; then
9483    if test -n "$PKG_CONFIG" && \
9484    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
9485  ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
9486  ac_status=$?
9487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9488  test $ac_status = 0; }; then
9489  pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
9490else
9491  pkg_failed=yes
9492fi
9493 else
9494    pkg_failed=untried
9495fi
9496
9497
9498
9499if test $pkg_failed = yes; then
9500   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501$as_echo "no" >&6; }
9502
9503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9504        _pkg_short_errors_supported=yes
9505else
9506        _pkg_short_errors_supported=no
9507fi
9508        if test $_pkg_short_errors_supported = yes; then
9509	        XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0" 2>&1`
9510        else
9511	        XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0" 2>&1`
9512        fi
9513	# Put the nasty error message in config.log where it belongs
9514	echo "$XML2_PKG_ERRORS" >&5
9515
9516	{ $as_echo "$as_me:${as_lineno-$LINENO}: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&5
9517$as_echo "$as_me: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&6;}
9518	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
9519$as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
9520if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then :
9521  $as_echo_n "(cached) " >&6
9522else
9523  ac_check_lib_save_LIBS=$LIBS
9524LIBS="-lxml2  $LIBS"
9525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526/* end confdefs.h.  */
9527
9528/* Override any GCC internal prototype to avoid an error.
9529   Use char because int might match the return type of a GCC
9530   builtin and then its argument prototype would still apply.  */
9531#ifdef __cplusplus
9532extern "C"
9533#endif
9534char xmlParseFile ();
9535int
9536main ()
9537{
9538return xmlParseFile ();
9539  ;
9540  return 0;
9541}
9542_ACEOF
9543if ac_fn_c_try_link "$LINENO"; then :
9544  ac_cv_lib_xml2_xmlParseFile=yes
9545else
9546  ac_cv_lib_xml2_xmlParseFile=no
9547fi
9548rm -f core conftest.err conftest.$ac_objext \
9549    conftest$ac_exeext conftest.$ac_ext
9550LIBS=$ac_check_lib_save_LIBS
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
9553$as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
9554if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then :
9555  cat >>confdefs.h <<_ACEOF
9556#define HAVE_LIBXML2 1
9557_ACEOF
9558
9559  LIBS="-lxml2 $LIBS"
9560
9561else
9562  as_fn_error $? "libxml-2.0 not found: http://www.xmlsoft.org" "$LINENO" 5
9563fi
9564
9565elif test $pkg_failed = untried; then
9566     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567$as_echo "no" >&6; }
9568	{ $as_echo "$as_me:${as_lineno-$LINENO}: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&5
9569$as_echo "$as_me: libxml2 not located by pkg-config, checking with AC CHECK LIB:" >&6;}
9570	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
9571$as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
9572if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then :
9573  $as_echo_n "(cached) " >&6
9574else
9575  ac_check_lib_save_LIBS=$LIBS
9576LIBS="-lxml2  $LIBS"
9577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579
9580/* Override any GCC internal prototype to avoid an error.
9581   Use char because int might match the return type of a GCC
9582   builtin and then its argument prototype would still apply.  */
9583#ifdef __cplusplus
9584extern "C"
9585#endif
9586char xmlParseFile ();
9587int
9588main ()
9589{
9590return xmlParseFile ();
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595if ac_fn_c_try_link "$LINENO"; then :
9596  ac_cv_lib_xml2_xmlParseFile=yes
9597else
9598  ac_cv_lib_xml2_xmlParseFile=no
9599fi
9600rm -f core conftest.err conftest.$ac_objext \
9601    conftest$ac_exeext conftest.$ac_ext
9602LIBS=$ac_check_lib_save_LIBS
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
9605$as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
9606if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then :
9607  cat >>confdefs.h <<_ACEOF
9608#define HAVE_LIBXML2 1
9609_ACEOF
9610
9611  LIBS="-lxml2 $LIBS"
9612
9613else
9614  as_fn_error $? "libxml-2.0 not found: http://www.xmlsoft.org" "$LINENO" 5
9615fi
9616
9617else
9618	XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
9619	XML2_LIBS=$pkg_cv_XML2_LIBS
9620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9621$as_echo "yes" >&6; }
9622
9623fi
9624
9625
9626$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9627
9628CFLAGS="$CFLAGS $XML2_CFLAGS"
9629LIBS="$LIBS $XML2_LIBS"
9630
9631
9632
9633
9634
9635pkg_failed=no
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for T4K_COMMON" >&5
9637$as_echo_n "checking for T4K_COMMON... " >&6; }
9638
9639if test -n "$T4K_COMMON_CFLAGS"; then
9640    pkg_cv_T4K_COMMON_CFLAGS="$T4K_COMMON_CFLAGS"
9641 elif test -n "$PKG_CONFIG"; then
9642    if test -n "$PKG_CONFIG" && \
9643    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"t4k_common\""; } >&5
9644  ($PKG_CONFIG --exists --print-errors "t4k_common") 2>&5
9645  ac_status=$?
9646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9647  test $ac_status = 0; }; then
9648  pkg_cv_T4K_COMMON_CFLAGS=`$PKG_CONFIG --cflags "t4k_common" 2>/dev/null`
9649else
9650  pkg_failed=yes
9651fi
9652 else
9653    pkg_failed=untried
9654fi
9655if test -n "$T4K_COMMON_LIBS"; then
9656    pkg_cv_T4K_COMMON_LIBS="$T4K_COMMON_LIBS"
9657 elif test -n "$PKG_CONFIG"; then
9658    if test -n "$PKG_CONFIG" && \
9659    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"t4k_common\""; } >&5
9660  ($PKG_CONFIG --exists --print-errors "t4k_common") 2>&5
9661  ac_status=$?
9662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9663  test $ac_status = 0; }; then
9664  pkg_cv_T4K_COMMON_LIBS=`$PKG_CONFIG --libs "t4k_common" 2>/dev/null`
9665else
9666  pkg_failed=yes
9667fi
9668 else
9669    pkg_failed=untried
9670fi
9671
9672
9673
9674if test $pkg_failed = yes; then
9675   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676$as_echo "no" >&6; }
9677
9678if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9679        _pkg_short_errors_supported=yes
9680else
9681        _pkg_short_errors_supported=no
9682fi
9683        if test $_pkg_short_errors_supported = yes; then
9684	        T4K_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "t4k_common" 2>&1`
9685        else
9686	        T4K_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors "t4k_common" 2>&1`
9687        fi
9688	# Put the nasty error message in config.log where it belongs
9689	echo "$T4K_COMMON_PKG_ERRORS" >&5
9690
9691	{ $as_echo "$as_me:${as_lineno-$LINENO}: t4k_common not located by pkg-config, checking with AC CHECK LIB:" >&5
9692$as_echo "$as_me: t4k_common not located by pkg-config, checking with AC CHECK LIB:" >&6;}
9693	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InitT4KCommon in -lt4k_common" >&5
9694$as_echo_n "checking for InitT4KCommon in -lt4k_common... " >&6; }
9695if test "${ac_cv_lib_t4k_common_InitT4KCommon+set}" = set; then :
9696  $as_echo_n "(cached) " >&6
9697else
9698  ac_check_lib_save_LIBS=$LIBS
9699LIBS="-lt4k_common  $LIBS"
9700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701/* end confdefs.h.  */
9702
9703/* Override any GCC internal prototype to avoid an error.
9704   Use char because int might match the return type of a GCC
9705   builtin and then its argument prototype would still apply.  */
9706#ifdef __cplusplus
9707extern "C"
9708#endif
9709char InitT4KCommon ();
9710int
9711main ()
9712{
9713return InitT4KCommon ();
9714  ;
9715  return 0;
9716}
9717_ACEOF
9718if ac_fn_c_try_link "$LINENO"; then :
9719  ac_cv_lib_t4k_common_InitT4KCommon=yes
9720else
9721  ac_cv_lib_t4k_common_InitT4KCommon=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext \
9724    conftest$ac_exeext conftest.$ac_ext
9725LIBS=$ac_check_lib_save_LIBS
9726fi
9727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t4k_common_InitT4KCommon" >&5
9728$as_echo "$ac_cv_lib_t4k_common_InitT4KCommon" >&6; }
9729if test "x$ac_cv_lib_t4k_common_InitT4KCommon" = x""yes; then :
9730  cat >>confdefs.h <<_ACEOF
9731#define HAVE_LIBT4K_COMMON 1
9732_ACEOF
9733
9734  LIBS="-lt4k_common $LIBS"
9735
9736else
9737  as_fn_error $? "libt4k_common is required: git://git.debian.org/tux4kids/t4kcommon.git" "$LINENO" 5
9738fi
9739
9740elif test $pkg_failed = untried; then
9741     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742$as_echo "no" >&6; }
9743	{ $as_echo "$as_me:${as_lineno-$LINENO}: t4k_common not located by pkg-config, checking with AC CHECK LIB:" >&5
9744$as_echo "$as_me: t4k_common not located by pkg-config, checking with AC CHECK LIB:" >&6;}
9745	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InitT4KCommon in -lt4k_common" >&5
9746$as_echo_n "checking for InitT4KCommon in -lt4k_common... " >&6; }
9747if test "${ac_cv_lib_t4k_common_InitT4KCommon+set}" = set; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  ac_check_lib_save_LIBS=$LIBS
9751LIBS="-lt4k_common  $LIBS"
9752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753/* end confdefs.h.  */
9754
9755/* Override any GCC internal prototype to avoid an error.
9756   Use char because int might match the return type of a GCC
9757   builtin and then its argument prototype would still apply.  */
9758#ifdef __cplusplus
9759extern "C"
9760#endif
9761char InitT4KCommon ();
9762int
9763main ()
9764{
9765return InitT4KCommon ();
9766  ;
9767  return 0;
9768}
9769_ACEOF
9770if ac_fn_c_try_link "$LINENO"; then :
9771  ac_cv_lib_t4k_common_InitT4KCommon=yes
9772else
9773  ac_cv_lib_t4k_common_InitT4KCommon=no
9774fi
9775rm -f core conftest.err conftest.$ac_objext \
9776    conftest$ac_exeext conftest.$ac_ext
9777LIBS=$ac_check_lib_save_LIBS
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t4k_common_InitT4KCommon" >&5
9780$as_echo "$ac_cv_lib_t4k_common_InitT4KCommon" >&6; }
9781if test "x$ac_cv_lib_t4k_common_InitT4KCommon" = x""yes; then :
9782  cat >>confdefs.h <<_ACEOF
9783#define HAVE_LIBT4K_COMMON 1
9784_ACEOF
9785
9786  LIBS="-lt4k_common $LIBS"
9787
9788else
9789  as_fn_error $? "libt4k_common is required: git://git.debian.org/tux4kids/t4kcommon.git" "$LINENO" 5
9790fi
9791
9792else
9793	T4K_COMMON_CFLAGS=$pkg_cv_T4K_COMMON_CFLAGS
9794	T4K_COMMON_LIBS=$pkg_cv_T4K_COMMON_LIBS
9795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9796$as_echo "yes" >&6; }
9797
9798fi
9799
9800
9801$as_echo "#define HAVE_LIBT4K_COMMON 1" >>confdefs.h
9802
9803CFLAGS="$CFLAGS $T4K_COMMON_CFLAGS"
9804LIBS="$LIBS $T4K_COMMON_LIBS"
9805
9806
9807
9808# --------------------------------------------------------------------------------------
9809# Checks for header files.
9810# --------------------------------------------------------------------------------------
9811
9812# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9813# for constant arguments.  Useless!
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9815$as_echo_n "checking for working alloca.h... " >&6; }
9816if test "${ac_cv_working_alloca_h+set}" = set; then :
9817  $as_echo_n "(cached) " >&6
9818else
9819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820/* end confdefs.h.  */
9821#include <alloca.h>
9822int
9823main ()
9824{
9825char *p = (char *) alloca (2 * sizeof (int));
9826			  if (p) return 0;
9827  ;
9828  return 0;
9829}
9830_ACEOF
9831if ac_fn_c_try_link "$LINENO"; then :
9832  ac_cv_working_alloca_h=yes
9833else
9834  ac_cv_working_alloca_h=no
9835fi
9836rm -f core conftest.err conftest.$ac_objext \
9837    conftest$ac_exeext conftest.$ac_ext
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9840$as_echo "$ac_cv_working_alloca_h" >&6; }
9841if test $ac_cv_working_alloca_h = yes; then
9842
9843$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9844
9845fi
9846
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9848$as_echo_n "checking for alloca... " >&6; }
9849if test "${ac_cv_func_alloca_works+set}" = set; then :
9850  $as_echo_n "(cached) " >&6
9851else
9852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h.  */
9854#ifdef __GNUC__
9855# define alloca __builtin_alloca
9856#else
9857# ifdef _MSC_VER
9858#  include <malloc.h>
9859#  define alloca _alloca
9860# else
9861#  ifdef HAVE_ALLOCA_H
9862#   include <alloca.h>
9863#  else
9864#   ifdef _AIX
9865 #pragma alloca
9866#   else
9867#    ifndef alloca /* predefined by HP cc +Olibcalls */
9868char *alloca ();
9869#    endif
9870#   endif
9871#  endif
9872# endif
9873#endif
9874
9875int
9876main ()
9877{
9878char *p = (char *) alloca (1);
9879				    if (p) return 0;
9880  ;
9881  return 0;
9882}
9883_ACEOF
9884if ac_fn_c_try_link "$LINENO"; then :
9885  ac_cv_func_alloca_works=yes
9886else
9887  ac_cv_func_alloca_works=no
9888fi
9889rm -f core conftest.err conftest.$ac_objext \
9890    conftest$ac_exeext conftest.$ac_ext
9891fi
9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9893$as_echo "$ac_cv_func_alloca_works" >&6; }
9894
9895if test $ac_cv_func_alloca_works = yes; then
9896
9897$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9898
9899else
9900  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9901# that cause trouble.  Some versions do not even contain alloca or
9902# contain a buggy version.  If you still want to use their alloca,
9903# use ar to extract alloca.o from them instead of compiling alloca.c.
9904
9905ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9906
9907$as_echo "#define C_ALLOCA 1" >>confdefs.h
9908
9909
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9911$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9912if test "${ac_cv_os_cray+set}" = set; then :
9913  $as_echo_n "(cached) " >&6
9914else
9915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916/* end confdefs.h.  */
9917#if defined CRAY && ! defined CRAY2
9918webecray
9919#else
9920wenotbecray
9921#endif
9922
9923_ACEOF
9924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9925  $EGREP "webecray" >/dev/null 2>&1; then :
9926  ac_cv_os_cray=yes
9927else
9928  ac_cv_os_cray=no
9929fi
9930rm -f conftest*
9931
9932fi
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9934$as_echo "$ac_cv_os_cray" >&6; }
9935if test $ac_cv_os_cray = yes; then
9936  for ac_func in _getb67 GETB67 getb67; do
9937    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9939if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9940
9941cat >>confdefs.h <<_ACEOF
9942#define CRAY_STACKSEG_END $ac_func
9943_ACEOF
9944
9945    break
9946fi
9947
9948  done
9949fi
9950
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9952$as_echo_n "checking stack direction for C alloca... " >&6; }
9953if test "${ac_cv_c_stack_direction+set}" = set; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  if test "$cross_compiling" = yes; then :
9957  ac_cv_c_stack_direction=0
9958else
9959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960/* end confdefs.h.  */
9961$ac_includes_default
9962int
9963find_stack_direction ()
9964{
9965  static char *addr = 0;
9966  auto char dummy;
9967  if (addr == 0)
9968    {
9969      addr = &dummy;
9970      return find_stack_direction ();
9971    }
9972  else
9973    return (&dummy > addr) ? 1 : -1;
9974}
9975
9976int
9977main ()
9978{
9979  return find_stack_direction () < 0;
9980}
9981_ACEOF
9982if ac_fn_c_try_run "$LINENO"; then :
9983  ac_cv_c_stack_direction=1
9984else
9985  ac_cv_c_stack_direction=-1
9986fi
9987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9988  conftest.$ac_objext conftest.beam conftest.$ac_ext
9989fi
9990
9991fi
9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9993$as_echo "$ac_cv_c_stack_direction" >&6; }
9994cat >>confdefs.h <<_ACEOF
9995#define STACK_DIRECTION $ac_cv_c_stack_direction
9996_ACEOF
9997
9998
9999fi
10000
10001ac_header_dirent=no
10002for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10003  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10005$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10006if eval "test \"\${$as_ac_Header+set}\"" = set; then :
10007  $as_echo_n "(cached) " >&6
10008else
10009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010/* end confdefs.h.  */
10011#include <sys/types.h>
10012#include <$ac_hdr>
10013
10014int
10015main ()
10016{
10017if ((DIR *) 0)
10018return 0;
10019  ;
10020  return 0;
10021}
10022_ACEOF
10023if ac_fn_c_try_compile "$LINENO"; then :
10024  eval "$as_ac_Header=yes"
10025else
10026  eval "$as_ac_Header=no"
10027fi
10028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029fi
10030eval ac_res=\$$as_ac_Header
10031	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10032$as_echo "$ac_res" >&6; }
10033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10034  cat >>confdefs.h <<_ACEOF
10035#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10036_ACEOF
10037
10038ac_header_dirent=$ac_hdr; break
10039fi
10040
10041done
10042# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10043if test $ac_header_dirent = dirent.h; then
10044  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10045$as_echo_n "checking for library containing opendir... " >&6; }
10046if test "${ac_cv_search_opendir+set}" = set; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  ac_func_search_save_LIBS=$LIBS
10050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h.  */
10052
10053/* Override any GCC internal prototype to avoid an error.
10054   Use char because int might match the return type of a GCC
10055   builtin and then its argument prototype would still apply.  */
10056#ifdef __cplusplus
10057extern "C"
10058#endif
10059char opendir ();
10060int
10061main ()
10062{
10063return opendir ();
10064  ;
10065  return 0;
10066}
10067_ACEOF
10068for ac_lib in '' dir; do
10069  if test -z "$ac_lib"; then
10070    ac_res="none required"
10071  else
10072    ac_res=-l$ac_lib
10073    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10074  fi
10075  if ac_fn_c_try_link "$LINENO"; then :
10076  ac_cv_search_opendir=$ac_res
10077fi
10078rm -f core conftest.err conftest.$ac_objext \
10079    conftest$ac_exeext
10080  if test "${ac_cv_search_opendir+set}" = set; then :
10081  break
10082fi
10083done
10084if test "${ac_cv_search_opendir+set}" = set; then :
10085
10086else
10087  ac_cv_search_opendir=no
10088fi
10089rm conftest.$ac_ext
10090LIBS=$ac_func_search_save_LIBS
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10093$as_echo "$ac_cv_search_opendir" >&6; }
10094ac_res=$ac_cv_search_opendir
10095if test "$ac_res" != no; then :
10096  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10097
10098fi
10099
10100else
10101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10102$as_echo_n "checking for library containing opendir... " >&6; }
10103if test "${ac_cv_search_opendir+set}" = set; then :
10104  $as_echo_n "(cached) " >&6
10105else
10106  ac_func_search_save_LIBS=$LIBS
10107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109
10110/* Override any GCC internal prototype to avoid an error.
10111   Use char because int might match the return type of a GCC
10112   builtin and then its argument prototype would still apply.  */
10113#ifdef __cplusplus
10114extern "C"
10115#endif
10116char opendir ();
10117int
10118main ()
10119{
10120return opendir ();
10121  ;
10122  return 0;
10123}
10124_ACEOF
10125for ac_lib in '' x; do
10126  if test -z "$ac_lib"; then
10127    ac_res="none required"
10128  else
10129    ac_res=-l$ac_lib
10130    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10131  fi
10132  if ac_fn_c_try_link "$LINENO"; then :
10133  ac_cv_search_opendir=$ac_res
10134fi
10135rm -f core conftest.err conftest.$ac_objext \
10136    conftest$ac_exeext
10137  if test "${ac_cv_search_opendir+set}" = set; then :
10138  break
10139fi
10140done
10141if test "${ac_cv_search_opendir+set}" = set; then :
10142
10143else
10144  ac_cv_search_opendir=no
10145fi
10146rm conftest.$ac_ext
10147LIBS=$ac_func_search_save_LIBS
10148fi
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10150$as_echo "$ac_cv_search_opendir" >&6; }
10151ac_res=$ac_cv_search_opendir
10152if test "$ac_res" != no; then :
10153  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10154
10155fi
10156
10157fi
10158
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10160$as_echo_n "checking for ANSI C header files... " >&6; }
10161if test "${ac_cv_header_stdc+set}" = set; then :
10162  $as_echo_n "(cached) " >&6
10163else
10164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h.  */
10166#include <stdlib.h>
10167#include <stdarg.h>
10168#include <string.h>
10169#include <float.h>
10170
10171int
10172main ()
10173{
10174
10175  ;
10176  return 0;
10177}
10178_ACEOF
10179if ac_fn_c_try_compile "$LINENO"; then :
10180  ac_cv_header_stdc=yes
10181else
10182  ac_cv_header_stdc=no
10183fi
10184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185
10186if test $ac_cv_header_stdc = yes; then
10187  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189/* end confdefs.h.  */
10190#include <string.h>
10191
10192_ACEOF
10193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10194  $EGREP "memchr" >/dev/null 2>&1; then :
10195
10196else
10197  ac_cv_header_stdc=no
10198fi
10199rm -f conftest*
10200
10201fi
10202
10203if test $ac_cv_header_stdc = yes; then
10204  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h.  */
10207#include <stdlib.h>
10208
10209_ACEOF
10210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10211  $EGREP "free" >/dev/null 2>&1; then :
10212
10213else
10214  ac_cv_header_stdc=no
10215fi
10216rm -f conftest*
10217
10218fi
10219
10220if test $ac_cv_header_stdc = yes; then
10221  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10222  if test "$cross_compiling" = yes; then :
10223  :
10224else
10225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h.  */
10227#include <ctype.h>
10228#include <stdlib.h>
10229#if ((' ' & 0x0FF) == 0x020)
10230# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10231# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10232#else
10233# define ISLOWER(c) \
10234		   (('a' <= (c) && (c) <= 'i') \
10235		     || ('j' <= (c) && (c) <= 'r') \
10236		     || ('s' <= (c) && (c) <= 'z'))
10237# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10238#endif
10239
10240#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10241int
10242main ()
10243{
10244  int i;
10245  for (i = 0; i < 256; i++)
10246    if (XOR (islower (i), ISLOWER (i))
10247	|| toupper (i) != TOUPPER (i))
10248      return 2;
10249  return 0;
10250}
10251_ACEOF
10252if ac_fn_c_try_run "$LINENO"; then :
10253
10254else
10255  ac_cv_header_stdc=no
10256fi
10257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10258  conftest.$ac_objext conftest.beam conftest.$ac_ext
10259fi
10260
10261fi
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10264$as_echo "$ac_cv_header_stdc" >&6; }
10265if test $ac_cv_header_stdc = yes; then
10266
10267$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10268
10269fi
10270
10271for ac_header in argz.h error.h errno.h fcntl.h float.h iconv.h inttypes.h langinfo.h libgen.h libintl.h limits.h locale.h malloc.h math.h pthread.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h unistd.h wchar.h
10272do :
10273  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10276  cat >>confdefs.h <<_ACEOF
10277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10278_ACEOF
10279
10280fi
10281
10282done
10283
10284
10285
10286# --------------------------------------------------------------------------------------------
10287# Checks for typedefs, structures, and compiler characteristics.
10288# --------------------------------------------------------------------------------------------
10289
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10291$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10292if test "${ac_cv_header_stdbool_h+set}" = set; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296/* end confdefs.h.  */
10297
10298#include <stdbool.h>
10299#ifndef bool
10300 "error: bool is not defined"
10301#endif
10302#ifndef false
10303 "error: false is not defined"
10304#endif
10305#if false
10306 "error: false is not 0"
10307#endif
10308#ifndef true
10309 "error: true is not defined"
10310#endif
10311#if true != 1
10312 "error: true is not 1"
10313#endif
10314#ifndef __bool_true_false_are_defined
10315 "error: __bool_true_false_are_defined is not defined"
10316#endif
10317
10318	struct s { _Bool s: 1; _Bool t; } s;
10319
10320	char a[true == 1 ? 1 : -1];
10321	char b[false == 0 ? 1 : -1];
10322	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10323	char d[(bool) 0.5 == true ? 1 : -1];
10324	bool e = &s;
10325	char f[(_Bool) 0.0 == false ? 1 : -1];
10326	char g[true];
10327	char h[sizeof (_Bool)];
10328	char i[sizeof s.t];
10329	enum { j = false, k = true, l = false * true, m = true * 256 };
10330	/* The following fails for
10331	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10332	_Bool n[m];
10333	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10334	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10335#	if defined __xlc__ || defined __GNUC__
10336	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
10337	    reported by James Lemley on 2005-10-05; see
10338	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
10339	    This test is not quite right, since xlc is allowed to
10340	    reject this program, as the initializer for xlcbug is
10341	    not one of the forms that C requires support for.
10342	    However, doing the test right would require a runtime
10343	    test, and that would make cross-compilation harder.
10344	    Let us hope that IBM fixes the xlc bug, and also adds
10345	    support for this kind of constant expression.  In the
10346	    meantime, this test will reject xlc, which is OK, since
10347	    our stdbool.h substitute should suffice.  We also test
10348	    this with GCC, where it should work, to detect more
10349	    quickly whether someone messes up the test in the
10350	    future.  */
10351	 char digs[] = "0123456789";
10352	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
10353#	endif
10354	/* Catch a bug in an HP-UX C compiler.  See
10355	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10356	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10357	 */
10358	_Bool q = true;
10359	_Bool *pq = &q;
10360
10361int
10362main ()
10363{
10364
10365	*pq |= q;
10366	*pq |= ! q;
10367	/* Refer to every declared value, to avoid compiler optimizations.  */
10368	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10369		+ !m + !n + !o + !p + !q + !pq);
10370
10371  ;
10372  return 0;
10373}
10374_ACEOF
10375if ac_fn_c_try_compile "$LINENO"; then :
10376  ac_cv_header_stdbool_h=yes
10377else
10378  ac_cv_header_stdbool_h=no
10379fi
10380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381fi
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10383$as_echo "$ac_cv_header_stdbool_h" >&6; }
10384ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10385if test "x$ac_cv_type__Bool" = x""yes; then :
10386
10387cat >>confdefs.h <<_ACEOF
10388#define HAVE__BOOL 1
10389_ACEOF
10390
10391
10392fi
10393
10394if test $ac_cv_header_stdbool_h = yes; then
10395
10396$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
10397
10398fi
10399
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10401$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10402if test "${ac_cv_c_const+set}" = set; then :
10403  $as_echo_n "(cached) " >&6
10404else
10405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406/* end confdefs.h.  */
10407
10408int
10409main ()
10410{
10411/* FIXME: Include the comments suggested by Paul. */
10412#ifndef __cplusplus
10413  /* Ultrix mips cc rejects this.  */
10414  typedef int charset[2];
10415  const charset cs;
10416  /* SunOS 4.1.1 cc rejects this.  */
10417  char const *const *pcpcc;
10418  char **ppc;
10419  /* NEC SVR4.0.2 mips cc rejects this.  */
10420  struct point {int x, y;};
10421  static struct point const zero = {0,0};
10422  /* AIX XL C 1.02.0.0 rejects this.
10423     It does not let you subtract one const X* pointer from another in
10424     an arm of an if-expression whose if-part is not a constant
10425     expression */
10426  const char *g = "string";
10427  pcpcc = &g + (g ? g-g : 0);
10428  /* HPUX 7.0 cc rejects these. */
10429  ++pcpcc;
10430  ppc = (char**) pcpcc;
10431  pcpcc = (char const *const *) ppc;
10432  { /* SCO 3.2v4 cc rejects this.  */
10433    char *t;
10434    char const *s = 0 ? (char *) 0 : (char const *) 0;
10435
10436    *t++ = 0;
10437    if (s) return 0;
10438  }
10439  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10440    int x[] = {25, 17};
10441    const int *foo = &x[0];
10442    ++foo;
10443  }
10444  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10445    typedef const int *iptr;
10446    iptr p = 0;
10447    ++p;
10448  }
10449  { /* AIX XL C 1.02.0.0 rejects this saying
10450       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10451    struct s { int j; const int *ap[3]; };
10452    struct s *b; b->j = 5;
10453  }
10454  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10455    const int foo = 10;
10456    if (!foo) return 0;
10457  }
10458  return !cs[0] && !zero.x;
10459#endif
10460
10461  ;
10462  return 0;
10463}
10464_ACEOF
10465if ac_fn_c_try_compile "$LINENO"; then :
10466  ac_cv_c_const=yes
10467else
10468  ac_cv_c_const=no
10469fi
10470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471fi
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10473$as_echo "$ac_cv_c_const" >&6; }
10474if test $ac_cv_c_const = no; then
10475
10476$as_echo "#define const /**/" >>confdefs.h
10477
10478fi
10479
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10481$as_echo_n "checking for inline... " >&6; }
10482if test "${ac_cv_c_inline+set}" = set; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  ac_cv_c_inline=no
10486for ac_kw in inline __inline__ __inline; do
10487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489#ifndef __cplusplus
10490typedef int foo_t;
10491static $ac_kw foo_t static_foo () {return 0; }
10492$ac_kw foo_t foo () {return 0; }
10493#endif
10494
10495_ACEOF
10496if ac_fn_c_try_compile "$LINENO"; then :
10497  ac_cv_c_inline=$ac_kw
10498fi
10499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500  test "$ac_cv_c_inline" != no && break
10501done
10502
10503fi
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10505$as_echo "$ac_cv_c_inline" >&6; }
10506
10507case $ac_cv_c_inline in
10508  inline | yes) ;;
10509  *)
10510    case $ac_cv_c_inline in
10511      no) ac_val=;;
10512      *) ac_val=$ac_cv_c_inline;;
10513    esac
10514    cat >>confdefs.h <<_ACEOF
10515#ifndef __cplusplus
10516#define inline $ac_val
10517#endif
10518_ACEOF
10519    ;;
10520esac
10521
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10523$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10524if test "${ac_cv_c_restrict+set}" = set; then :
10525  $as_echo_n "(cached) " >&6
10526else
10527  ac_cv_c_restrict=no
10528   # The order here caters to the fact that C++ does not require restrict.
10529   for ac_kw in __restrict __restrict__ _Restrict restrict; do
10530     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531/* end confdefs.h.  */
10532typedef int * int_ptr;
10533	int foo (int_ptr $ac_kw ip) {
10534	return ip[0];
10535       }
10536int
10537main ()
10538{
10539int s[1];
10540	int * $ac_kw t = s;
10541	t[0] = 0;
10542	return foo(t)
10543  ;
10544  return 0;
10545}
10546_ACEOF
10547if ac_fn_c_try_compile "$LINENO"; then :
10548  ac_cv_c_restrict=$ac_kw
10549fi
10550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551     test "$ac_cv_c_restrict" != no && break
10552   done
10553
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10556$as_echo "$ac_cv_c_restrict" >&6; }
10557
10558 case $ac_cv_c_restrict in
10559   restrict) ;;
10560   no) $as_echo "#define restrict /**/" >>confdefs.h
10561 ;;
10562   *)  cat >>confdefs.h <<_ACEOF
10563#define restrict $ac_cv_c_restrict
10564_ACEOF
10565 ;;
10566 esac
10567
10568ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10569if test "x$ac_cv_type_mode_t" = x""yes; then :
10570
10571else
10572
10573cat >>confdefs.h <<_ACEOF
10574#define mode_t int
10575_ACEOF
10576
10577fi
10578
10579ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10580if test "x$ac_cv_type_size_t" = x""yes; then :
10581
10582else
10583
10584cat >>confdefs.h <<_ACEOF
10585#define size_t unsigned int
10586_ACEOF
10587
10588fi
10589
10590ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
10591case $ac_cv_c_uint16_t in #(
10592  no|yes) ;; #(
10593  *)
10594
10595
10596cat >>confdefs.h <<_ACEOF
10597#define uint16_t $ac_cv_c_uint16_t
10598_ACEOF
10599;;
10600  esac
10601
10602ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
10603case $ac_cv_c_uint32_t in #(
10604  no|yes) ;; #(
10605  *)
10606
10607$as_echo "#define _UINT32_T 1" >>confdefs.h
10608
10609
10610cat >>confdefs.h <<_ACEOF
10611#define uint32_t $ac_cv_c_uint32_t
10612_ACEOF
10613;;
10614  esac
10615
10616ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
10617case $ac_cv_c_uint8_t in #(
10618  no|yes) ;; #(
10619  *)
10620
10621$as_echo "#define _UINT8_T 1" >>confdefs.h
10622
10623
10624cat >>confdefs.h <<_ACEOF
10625#define uint8_t $ac_cv_c_uint8_t
10626_ACEOF
10627;;
10628  esac
10629
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10631$as_echo_n "checking for working volatile... " >&6; }
10632if test "${ac_cv_c_volatile+set}" = set; then :
10633  $as_echo_n "(cached) " >&6
10634else
10635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636/* end confdefs.h.  */
10637
10638int
10639main ()
10640{
10641
10642volatile int x;
10643int * volatile y = (int *) 0;
10644return !x && !y;
10645  ;
10646  return 0;
10647}
10648_ACEOF
10649if ac_fn_c_try_compile "$LINENO"; then :
10650  ac_cv_c_volatile=yes
10651else
10652  ac_cv_c_volatile=no
10653fi
10654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655fi
10656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10657$as_echo "$ac_cv_c_volatile" >&6; }
10658if test $ac_cv_c_volatile = no; then
10659
10660$as_echo "#define volatile /**/" >>confdefs.h
10661
10662fi
10663
10664ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10665if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
10666
10667cat >>confdefs.h <<_ACEOF
10668#define HAVE_PTRDIFF_T 1
10669_ACEOF
10670
10671
10672fi
10673
10674
10675
10676
10677# -------------------------------------------------------------------------------------------
10678# Checks for library functions.
10679# -------------------------------------------------------------------------------------------
10680
10681
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10683$as_echo_n "checking whether closedir returns void... " >&6; }
10684if test "${ac_cv_func_closedir_void+set}" = set; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  if test "$cross_compiling" = yes; then :
10688  ac_cv_func_closedir_void=yes
10689else
10690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691/* end confdefs.h.  */
10692$ac_includes_default
10693#include <$ac_header_dirent>
10694#ifndef __cplusplus
10695int closedir ();
10696#endif
10697
10698int
10699main ()
10700{
10701return closedir (opendir (".")) != 0;
10702  ;
10703  return 0;
10704}
10705_ACEOF
10706if ac_fn_c_try_run "$LINENO"; then :
10707  ac_cv_func_closedir_void=no
10708else
10709  ac_cv_func_closedir_void=yes
10710fi
10711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10712  conftest.$ac_objext conftest.beam conftest.$ac_ext
10713fi
10714
10715fi
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10717$as_echo "$ac_cv_func_closedir_void" >&6; }
10718if test $ac_cv_func_closedir_void = yes; then
10719
10720$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10721
10722fi
10723
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
10725$as_echo_n "checking for error_at_line... " >&6; }
10726if test "${ac_cv_lib_error_at_line+set}" = set; then :
10727  $as_echo_n "(cached) " >&6
10728else
10729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730/* end confdefs.h.  */
10731#include <error.h>
10732int
10733main ()
10734{
10735error_at_line (0, 0, "", 0, "an error occurred");
10736  ;
10737  return 0;
10738}
10739_ACEOF
10740if ac_fn_c_try_link "$LINENO"; then :
10741  ac_cv_lib_error_at_line=yes
10742else
10743  ac_cv_lib_error_at_line=no
10744fi
10745rm -f core conftest.err conftest.$ac_objext \
10746    conftest$ac_exeext conftest.$ac_ext
10747fi
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
10749$as_echo "$ac_cv_lib_error_at_line" >&6; }
10750if test $ac_cv_lib_error_at_line = no; then
10751  case " $LIBOBJS " in
10752  *" error.$ac_objext "* ) ;;
10753  *) LIBOBJS="$LIBOBJS error.$ac_objext"
10754 ;;
10755esac
10756
10757fi
10758
10759#AC_FUNC_MALLOC
10760
10761
10762
10763  for ac_header in $ac_header_list
10764do :
10765  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10766ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10767"
10768if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10769  cat >>confdefs.h <<_ACEOF
10770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10771_ACEOF
10772
10773fi
10774
10775done
10776
10777
10778
10779
10780
10781
10782
10783
10784for ac_func in getpagesize
10785do :
10786  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10787if test "x$ac_cv_func_getpagesize" = x""yes; then :
10788  cat >>confdefs.h <<_ACEOF
10789#define HAVE_GETPAGESIZE 1
10790_ACEOF
10791
10792fi
10793done
10794
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10796$as_echo_n "checking for working mmap... " >&6; }
10797if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10798  $as_echo_n "(cached) " >&6
10799else
10800  if test "$cross_compiling" = yes; then :
10801  ac_cv_func_mmap_fixed_mapped=no
10802else
10803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804/* end confdefs.h.  */
10805$ac_includes_default
10806/* malloc might have been renamed as rpl_malloc. */
10807#undef malloc
10808
10809/* Thanks to Mike Haertel and Jim Avera for this test.
10810   Here is a matrix of mmap possibilities:
10811	mmap private not fixed
10812	mmap private fixed at somewhere currently unmapped
10813	mmap private fixed at somewhere already mapped
10814	mmap shared not fixed
10815	mmap shared fixed at somewhere currently unmapped
10816	mmap shared fixed at somewhere already mapped
10817   For private mappings, we should verify that changes cannot be read()
10818   back from the file, nor mmap's back from the file at a different
10819   address.  (There have been systems where private was not correctly
10820   implemented like the infamous i386 svr4.0, and systems where the
10821   VM page cache was not coherent with the file system buffer cache
10822   like early versions of FreeBSD and possibly contemporary NetBSD.)
10823   For shared mappings, we should conversely verify that changes get
10824   propagated back to all the places they're supposed to be.
10825
10826   Grep wants private fixed already mapped.
10827   The main things grep needs to know about mmap are:
10828   * does it exist and is it safe to write into the mmap'd area
10829   * how to use it (BSD variants)  */
10830
10831#include <fcntl.h>
10832#include <sys/mman.h>
10833
10834#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10835char *malloc ();
10836#endif
10837
10838/* This mess was copied from the GNU getpagesize.h.  */
10839#ifndef HAVE_GETPAGESIZE
10840# ifdef _SC_PAGESIZE
10841#  define getpagesize() sysconf(_SC_PAGESIZE)
10842# else /* no _SC_PAGESIZE */
10843#  ifdef HAVE_SYS_PARAM_H
10844#   include <sys/param.h>
10845#   ifdef EXEC_PAGESIZE
10846#    define getpagesize() EXEC_PAGESIZE
10847#   else /* no EXEC_PAGESIZE */
10848#    ifdef NBPG
10849#     define getpagesize() NBPG * CLSIZE
10850#     ifndef CLSIZE
10851#      define CLSIZE 1
10852#     endif /* no CLSIZE */
10853#    else /* no NBPG */
10854#     ifdef NBPC
10855#      define getpagesize() NBPC
10856#     else /* no NBPC */
10857#      ifdef PAGESIZE
10858#       define getpagesize() PAGESIZE
10859#      endif /* PAGESIZE */
10860#     endif /* no NBPC */
10861#    endif /* no NBPG */
10862#   endif /* no EXEC_PAGESIZE */
10863#  else /* no HAVE_SYS_PARAM_H */
10864#   define getpagesize() 8192	/* punt totally */
10865#  endif /* no HAVE_SYS_PARAM_H */
10866# endif /* no _SC_PAGESIZE */
10867
10868#endif /* no HAVE_GETPAGESIZE */
10869
10870int
10871main ()
10872{
10873  char *data, *data2, *data3;
10874  const char *cdata2;
10875  int i, pagesize;
10876  int fd, fd2;
10877
10878  pagesize = getpagesize ();
10879
10880  /* First, make a file with some known garbage in it. */
10881  data = (char *) malloc (pagesize);
10882  if (!data)
10883    return 1;
10884  for (i = 0; i < pagesize; ++i)
10885    *(data + i) = rand ();
10886  umask (0);
10887  fd = creat ("conftest.mmap", 0600);
10888  if (fd < 0)
10889    return 2;
10890  if (write (fd, data, pagesize) != pagesize)
10891    return 3;
10892  close (fd);
10893
10894  /* Next, check that the tail of a page is zero-filled.  File must have
10895     non-zero length, otherwise we risk SIGBUS for entire page.  */
10896  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10897  if (fd2 < 0)
10898    return 4;
10899  cdata2 = "";
10900  if (write (fd2, cdata2, 1) != 1)
10901    return 5;
10902  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10903  if (data2 == MAP_FAILED)
10904    return 6;
10905  for (i = 0; i < pagesize; ++i)
10906    if (*(data2 + i))
10907      return 7;
10908  close (fd2);
10909  if (munmap (data2, pagesize))
10910    return 8;
10911
10912  /* Next, try to mmap the file at a fixed address which already has
10913     something else allocated at it.  If we can, also make sure that
10914     we see the same garbage.  */
10915  fd = open ("conftest.mmap", O_RDWR);
10916  if (fd < 0)
10917    return 9;
10918  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10919		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
10920    return 10;
10921  for (i = 0; i < pagesize; ++i)
10922    if (*(data + i) != *(data2 + i))
10923      return 11;
10924
10925  /* Finally, make sure that changes to the mapped area do not
10926     percolate back to the file as seen by read().  (This is a bug on
10927     some variants of i386 svr4.0.)  */
10928  for (i = 0; i < pagesize; ++i)
10929    *(data2 + i) = *(data2 + i) + 1;
10930  data3 = (char *) malloc (pagesize);
10931  if (!data3)
10932    return 12;
10933  if (read (fd, data3, pagesize) != pagesize)
10934    return 13;
10935  for (i = 0; i < pagesize; ++i)
10936    if (*(data + i) != *(data3 + i))
10937      return 14;
10938  close (fd);
10939  return 0;
10940}
10941_ACEOF
10942if ac_fn_c_try_run "$LINENO"; then :
10943  ac_cv_func_mmap_fixed_mapped=yes
10944else
10945  ac_cv_func_mmap_fixed_mapped=no
10946fi
10947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10948  conftest.$ac_objext conftest.beam conftest.$ac_ext
10949fi
10950
10951fi
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10953$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10954if test $ac_cv_func_mmap_fixed_mapped = yes; then
10955
10956$as_echo "#define HAVE_MMAP 1" >>confdefs.h
10957
10958fi
10959rm -f conftest.mmap conftest.txt
10960
10961#AC_FUNC_REALLOC
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10963$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10964if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10965  $as_echo_n "(cached) " >&6
10966else
10967  rm -f conftest.sym conftest.file
10968echo >conftest.file
10969if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10970  if test "$cross_compiling" = yes; then :
10971  ac_cv_func_lstat_dereferences_slashed_symlink=no
10972else
10973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974/* end confdefs.h.  */
10975$ac_includes_default
10976int
10977main ()
10978{
10979struct stat sbuf;
10980     /* Linux will dereference the symlink and fail, as required by POSIX.
10981	That is better in the sense that it means we will not
10982	have to compile and use the lstat wrapper.  */
10983     return lstat ("conftest.sym/", &sbuf) == 0;
10984  ;
10985  return 0;
10986}
10987_ACEOF
10988if ac_fn_c_try_run "$LINENO"; then :
10989  ac_cv_func_lstat_dereferences_slashed_symlink=yes
10990else
10991  ac_cv_func_lstat_dereferences_slashed_symlink=no
10992fi
10993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10994  conftest.$ac_objext conftest.beam conftest.$ac_ext
10995fi
10996
10997else
10998  # If the `ln -s' command failed, then we probably don't even
10999  # have an lstat function.
11000  ac_cv_func_lstat_dereferences_slashed_symlink=no
11001fi
11002rm -f conftest.sym conftest.file
11003
11004fi
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11006$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11007
11008test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11009
11010cat >>confdefs.h <<_ACEOF
11011#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11012_ACEOF
11013
11014
11015if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11016  case " $LIBOBJS " in
11017  *" lstat.$ac_objext "* ) ;;
11018  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11019 ;;
11020esac
11021
11022fi
11023
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11025$as_echo_n "checking whether stat accepts an empty string... " >&6; }
11026if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11027  $as_echo_n "(cached) " >&6
11028else
11029  if test "$cross_compiling" = yes; then :
11030  ac_cv_func_stat_empty_string_bug=yes
11031else
11032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033/* end confdefs.h.  */
11034$ac_includes_default
11035int
11036main ()
11037{
11038struct stat sbuf;
11039  return stat ("", &sbuf) == 0;
11040  ;
11041  return 0;
11042}
11043_ACEOF
11044if ac_fn_c_try_run "$LINENO"; then :
11045  ac_cv_func_stat_empty_string_bug=no
11046else
11047  ac_cv_func_stat_empty_string_bug=yes
11048fi
11049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11050  conftest.$ac_objext conftest.beam conftest.$ac_ext
11051fi
11052
11053fi
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11055$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11056if test $ac_cv_func_stat_empty_string_bug = yes; then
11057  case " $LIBOBJS " in
11058  *" stat.$ac_objext "* ) ;;
11059  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
11060 ;;
11061esac
11062
11063
11064cat >>confdefs.h <<_ACEOF
11065#define HAVE_STAT_EMPTY_STRING_BUG 1
11066_ACEOF
11067
11068fi
11069
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11071$as_echo_n "checking for working strcoll... " >&6; }
11072if test "${ac_cv_func_strcoll_works+set}" = set; then :
11073  $as_echo_n "(cached) " >&6
11074else
11075  if test "$cross_compiling" = yes; then :
11076  ac_cv_func_strcoll_works=no
11077else
11078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h.  */
11080$ac_includes_default
11081int
11082main ()
11083{
11084return (strcoll ("abc", "def") >= 0 ||
11085	 strcoll ("ABC", "DEF") >= 0 ||
11086	 strcoll ("123", "456") >= 0)
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091if ac_fn_c_try_run "$LINENO"; then :
11092  ac_cv_func_strcoll_works=yes
11093else
11094  ac_cv_func_strcoll_works=no
11095fi
11096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11097  conftest.$ac_objext conftest.beam conftest.$ac_ext
11098fi
11099
11100fi
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11102$as_echo "$ac_cv_func_strcoll_works" >&6; }
11103if test $ac_cv_func_strcoll_works = yes; then
11104
11105$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11106
11107fi
11108
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11110$as_echo_n "checking for working strtod... " >&6; }
11111if test "${ac_cv_func_strtod+set}" = set; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  if test "$cross_compiling" = yes; then :
11115  ac_cv_func_strtod=no
11116else
11117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118/* end confdefs.h.  */
11119
11120$ac_includes_default
11121#ifndef strtod
11122double strtod ();
11123#endif
11124int
11125main()
11126{
11127  {
11128    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
11129    char *string = " +69";
11130    char *term;
11131    double value;
11132    value = strtod (string, &term);
11133    if (value != 69 || term != (string + 4))
11134      return 1;
11135  }
11136
11137  {
11138    /* Under Solaris 2.4, strtod returns the wrong value for the
11139       terminating character under some conditions.  */
11140    char *string = "NaN";
11141    char *term;
11142    strtod (string, &term);
11143    if (term != string && *(term - 1) == 0)
11144      return 1;
11145  }
11146  return 0;
11147}
11148
11149_ACEOF
11150if ac_fn_c_try_run "$LINENO"; then :
11151  ac_cv_func_strtod=yes
11152else
11153  ac_cv_func_strtod=no
11154fi
11155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11156  conftest.$ac_objext conftest.beam conftest.$ac_ext
11157fi
11158
11159fi
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11161$as_echo "$ac_cv_func_strtod" >&6; }
11162if test $ac_cv_func_strtod = no; then
11163  case " $LIBOBJS " in
11164  *" strtod.$ac_objext "* ) ;;
11165  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11166 ;;
11167esac
11168
11169ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11170if test "x$ac_cv_func_pow" = x""yes; then :
11171
11172fi
11173
11174if test $ac_cv_func_pow = no; then
11175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11176$as_echo_n "checking for pow in -lm... " >&6; }
11177if test "${ac_cv_lib_m_pow+set}" = set; then :
11178  $as_echo_n "(cached) " >&6
11179else
11180  ac_check_lib_save_LIBS=$LIBS
11181LIBS="-lm  $LIBS"
11182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183/* end confdefs.h.  */
11184
11185/* Override any GCC internal prototype to avoid an error.
11186   Use char because int might match the return type of a GCC
11187   builtin and then its argument prototype would still apply.  */
11188#ifdef __cplusplus
11189extern "C"
11190#endif
11191char pow ();
11192int
11193main ()
11194{
11195return pow ();
11196  ;
11197  return 0;
11198}
11199_ACEOF
11200if ac_fn_c_try_link "$LINENO"; then :
11201  ac_cv_lib_m_pow=yes
11202else
11203  ac_cv_lib_m_pow=no
11204fi
11205rm -f core conftest.err conftest.$ac_objext \
11206    conftest$ac_exeext conftest.$ac_ext
11207LIBS=$ac_check_lib_save_LIBS
11208fi
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11210$as_echo "$ac_cv_lib_m_pow" >&6; }
11211if test "x$ac_cv_lib_m_pow" = x""yes; then :
11212  POW_LIB=-lm
11213else
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11215$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11216fi
11217
11218fi
11219
11220fi
11221
11222for ac_func in vprintf
11223do :
11224  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11225if test "x$ac_cv_func_vprintf" = x""yes; then :
11226  cat >>confdefs.h <<_ACEOF
11227#define HAVE_VPRINTF 1
11228_ACEOF
11229
11230ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11231if test "x$ac_cv_func__doprnt" = x""yes; then :
11232
11233$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11234
11235fi
11236
11237fi
11238done
11239
11240
11241for ac_func in __argz_count __argz_next __argz_stringify alphasort atexit basename bcopy fcntl floor fsync getcwd localeconv localtime_r memmove mempcpy memset Mix_Init mkdir munmap nl_langinfo scandir setlocale sqrt stpcpy strcasecmp strchr strcspn strdup strncasecmp strndup strrchr strstr strtoul
11242do :
11243  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11244ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11245if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11246  cat >>confdefs.h <<_ACEOF
11247#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248_ACEOF
11249
11250fi
11251done
11252
11253
11254
11255
11256
11257
11258
11259# Check platform - see if WinMain needed:
11260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
11261$as_echo_n "checking for native Win32... " >&6; }
11262case "$host" in
11263  *-*-mingw*)
11264    native_win32=yes
11265    ;;
11266  *)
11267    native_win32=no
11268    ;;
11269esac
11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
11271$as_echo "$native_win32" >&6; }
11272
11273 if test $native_win32 = yes; then
11274  BUILD_MINGW32_TRUE=
11275  BUILD_MINGW32_FALSE='#'
11276else
11277  BUILD_MINGW32_TRUE='#'
11278  BUILD_MINGW32_FALSE=
11279fi
11280
11281
11282# Set the
11283MINGW32_PACKAGE_DATA_DIR="data"
11284
11285
11286
11287if test $native_win32 = yes; then
11288
11289$as_echo "#define BUILD_MINGW32 1" >>confdefs.h
11290
11291   CFLAGS="$CFLAGS -D__GW32__"
11292   LIBS="$LIBS -luuid -lole32 -lwsock32 -mwindows"
11293   CPPFLAGS="$CPPFLAGS -idirafter $prefix/include/glibc"
11294   # Extract the first word of ""$target_alias-windres"", so it can be a program name with args.
11295set dummy "$target_alias-windres"; ac_word=$2
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11297$as_echo_n "checking for $ac_word... " >&6; }
11298if test "${ac_cv_path_WINDRES+set}" = set; then :
11299  $as_echo_n "(cached) " >&6
11300else
11301  case $WINDRES in
11302  [\\/]* | ?:[\\/]*)
11303  ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path.
11304  ;;
11305  *)
11306  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307for as_dir in $PATH
11308do
11309  IFS=$as_save_IFS
11310  test -z "$as_dir" && as_dir=.
11311    for ac_exec_ext in '' $ac_executable_extensions; do
11312  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11313    ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext"
11314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11315    break 2
11316  fi
11317done
11318  done
11319IFS=$as_save_IFS
11320
11321  test -z "$ac_cv_path_WINDRES" && ac_cv_path_WINDRES="no"
11322  ;;
11323esac
11324fi
11325WINDRES=$ac_cv_path_WINDRES
11326if test -n "$WINDRES"; then
11327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11328$as_echo "$WINDRES" >&6; }
11329else
11330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331$as_echo "no" >&6; }
11332fi
11333
11334
11335fi
11336
11337
11338# ------------------------------------------------------------
11339# Support for building NSIS Win32 installer:
11340# ------------------------------------------------------------
11341
11342# This is the temporary DESTDIR target into which we do a "make install" before
11343# the files get copied into the NSIS installer:
11344NSI_INSTALL_DIR=mingw32
11345
11346
11347# This is the path (relative to the TuxMath.exe binary) where the data files are
11348# placed within the TuxMath folder on the user's Windows machine:
11349MINGW32_PACKAGE_DATA_DIR="data"
11350
11351
11352
11353# Check whether --with-dll-directory was given.
11354if test "${with_dll_directory+set}" = set; then :
11355  withval=$with_dll_directory; dll_path=$withval
11356else
11357  dll_path=no
11358fi
11359
11360
11361 if test $dll_path = no; then
11362  NSI_BUILD_TRUE=
11363  NSI_BUILD_FALSE='#'
11364else
11365  NSI_BUILD_TRUE='#'
11366  NSI_BUILD_FALSE=
11367fi
11368
11369
11370if test $dll_path != no; then
11371NSI_DLL_DIR=$dll_path
11372else
11373NSI_DLL_DIR=~/tuxmath_dll
11374fi
11375
11376
11377# Extract the first word of "makensis", so it can be a program name with args.
11378set dummy makensis; ac_word=$2
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380$as_echo_n "checking for $ac_word... " >&6; }
11381if test "${ac_cv_path_NSIS+set}" = set; then :
11382  $as_echo_n "(cached) " >&6
11383else
11384  case $NSIS in
11385  [\\/]* | ?:[\\/]*)
11386  ac_cv_path_NSIS="$NSIS" # Let the user override the test with a path.
11387  ;;
11388  *)
11389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390for as_dir in $PATH
11391do
11392  IFS=$as_save_IFS
11393  test -z "$as_dir" && as_dir=.
11394    for ac_exec_ext in '' $ac_executable_extensions; do
11395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396    ac_cv_path_NSIS="$as_dir/$ac_word$ac_exec_ext"
11397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11398    break 2
11399  fi
11400done
11401  done
11402IFS=$as_save_IFS
11403
11404  ;;
11405esac
11406fi
11407NSIS=$ac_cv_path_NSIS
11408if test -n "$NSIS"; then
11409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSIS" >&5
11410$as_echo "$NSIS" >&6; }
11411else
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
11414fi
11415
11416
11417for ac_prog in todos unix2dos
11418do
11419  # Extract the first word of "$ac_prog", so it can be a program name with args.
11420set dummy $ac_prog; ac_word=$2
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422$as_echo_n "checking for $ac_word... " >&6; }
11423if test "${ac_cv_path_U2D+set}" = set; then :
11424  $as_echo_n "(cached) " >&6
11425else
11426  case $U2D in
11427  [\\/]* | ?:[\\/]*)
11428  ac_cv_path_U2D="$U2D" # Let the user override the test with a path.
11429  ;;
11430  *)
11431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432for as_dir in $PATH
11433do
11434  IFS=$as_save_IFS
11435  test -z "$as_dir" && as_dir=.
11436    for ac_exec_ext in '' $ac_executable_extensions; do
11437  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438    ac_cv_path_U2D="$as_dir/$ac_word$ac_exec_ext"
11439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11440    break 2
11441  fi
11442done
11443  done
11444IFS=$as_save_IFS
11445
11446  ;;
11447esac
11448fi
11449U2D=$ac_cv_path_U2D
11450if test -n "$U2D"; then
11451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U2D" >&5
11452$as_echo "$U2D" >&6; }
11453else
11454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
11456fi
11457
11458
11459  test -n "$U2D" && break
11460done
11461
11462
11463# ---------------------------------------------------------------
11464# Create Makefiles
11465# ---------------------------------------------------------------
11466
11467ac_config_files="$ac_config_files Makefile tuxmath.spec tuxmath_preview.spec data/Makefile data/fonts/Makefile data/images/Makefile data/images/backgrounds/Makefile data/images/cities/Makefile data/images/comets/Makefile data/images/icons/Makefile data/images/igloos/Makefile data/images/penguins/Makefile data/images/sprites/Makefile data/images/status/Makefile data/images/title/Makefile data/images/tux/Makefile data/images/factoroids/Makefile data/menus/Makefile data/missions/Makefile data/missions/arcade/Makefile data/missions/campaign/Makefile data/missions/campaign/ace/Makefile data/missions/campaign/cadet/Makefile data/missions/campaign/commando/Makefile data/missions/campaign/ranger/Makefile data/missions/campaign/scout/Makefile data/missions/lessons/Makefile data/missions/multiplay/Makefile data/sounds/Makefile doc/Makefile nsis/tuxmath.nsi src/Makefile po/Makefile.in"
11468
11469
11470cat >confcache <<\_ACEOF
11471# This file is a shell script that caches the results of configure
11472# tests run on this system so they can be shared between configure
11473# scripts and configure runs, see configure's option --config-cache.
11474# It is not useful on other systems.  If it contains results you don't
11475# want to keep, you may remove or edit it.
11476#
11477# config.status only pays attention to the cache file if you give it
11478# the --recheck option to rerun configure.
11479#
11480# `ac_cv_env_foo' variables (set or unset) will be overridden when
11481# loading this file, other *unset* `ac_cv_foo' will be assigned the
11482# following values.
11483
11484_ACEOF
11485
11486# The following way of writing the cache mishandles newlines in values,
11487# but we know of no workaround that is simple, portable, and efficient.
11488# So, we kill variables containing newlines.
11489# Ultrix sh set writes to stderr and can't be redirected directly,
11490# and sets the high bit in the cache file unless we assign to the vars.
11491(
11492  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11493    eval ac_val=\$$ac_var
11494    case $ac_val in #(
11495    *${as_nl}*)
11496      case $ac_var in #(
11497      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11498$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11499      esac
11500      case $ac_var in #(
11501      _ | IFS | as_nl) ;; #(
11502      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11503      *) { eval $ac_var=; unset $ac_var;} ;;
11504      esac ;;
11505    esac
11506  done
11507
11508  (set) 2>&1 |
11509    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11510    *${as_nl}ac_space=\ *)
11511      # `set' does not quote correctly, so add quotes: double-quote
11512      # substitution turns \\\\ into \\, and sed turns \\ into \.
11513      sed -n \
11514	"s/'/'\\\\''/g;
11515	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11516      ;; #(
11517    *)
11518      # `set' quotes correctly as required by POSIX, so do not add quotes.
11519      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11520      ;;
11521    esac |
11522    sort
11523) |
11524  sed '
11525     /^ac_cv_env_/b end
11526     t clear
11527     :clear
11528     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11529     t end
11530     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11531     :end' >>confcache
11532if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11533  if test -w "$cache_file"; then
11534    test "x$cache_file" != "x/dev/null" &&
11535      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11536$as_echo "$as_me: updating cache $cache_file" >&6;}
11537    cat confcache >$cache_file
11538  else
11539    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11540$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11541  fi
11542fi
11543rm -f confcache
11544
11545test "x$prefix" = xNONE && prefix=$ac_default_prefix
11546# Let make expand exec_prefix.
11547test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11548
11549DEFS=-DHAVE_CONFIG_H
11550
11551ac_libobjs=
11552ac_ltlibobjs=
11553U=
11554for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11555  # 1. Remove the extension, and $U if already installed.
11556  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11557  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11558  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11559  #    will be set to the directory where LIBOBJS objects are built.
11560  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11561  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11562done
11563LIBOBJS=$ac_libobjs
11564
11565LTLIBOBJS=$ac_ltlibobjs
11566
11567
11568 if test -n "$EXEEXT"; then
11569  am__EXEEXT_TRUE=
11570  am__EXEEXT_FALSE='#'
11571else
11572  am__EXEEXT_TRUE='#'
11573  am__EXEEXT_FALSE=
11574fi
11575
11576if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11577  as_fn_error $? "conditional \"AMDEP\" was never defined.
11578Usually this means the macro was only invoked conditionally." "$LINENO" 5
11579fi
11580if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11581  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11582Usually this means the macro was only invoked conditionally." "$LINENO" 5
11583fi
11584if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11585  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
11586Usually this means the macro was only invoked conditionally." "$LINENO" 5
11587fi
11588if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11589  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11590Usually this means the macro was only invoked conditionally." "$LINENO" 5
11591fi
11592if test -z "${BUILD_MINGW32_TRUE}" && test -z "${BUILD_MINGW32_FALSE}"; then
11593  as_fn_error $? "conditional \"BUILD_MINGW32\" was never defined.
11594Usually this means the macro was only invoked conditionally." "$LINENO" 5
11595fi
11596if test -z "${NSI_BUILD_TRUE}" && test -z "${NSI_BUILD_FALSE}"; then
11597  as_fn_error $? "conditional \"NSI_BUILD\" was never defined.
11598Usually this means the macro was only invoked conditionally." "$LINENO" 5
11599fi
11600
11601: ${CONFIG_STATUS=./config.status}
11602ac_write_fail=0
11603ac_clean_files_save=$ac_clean_files
11604ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11606$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11607as_write_fail=0
11608cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11609#! $SHELL
11610# Generated by $as_me.
11611# Run this file to recreate the current configuration.
11612# Compiler output produced by configure, useful for debugging
11613# configure, is in config.log if it exists.
11614
11615debug=false
11616ac_cs_recheck=false
11617ac_cs_silent=false
11618
11619SHELL=\${CONFIG_SHELL-$SHELL}
11620export SHELL
11621_ASEOF
11622cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11623## -------------------- ##
11624## M4sh Initialization. ##
11625## -------------------- ##
11626
11627# Be more Bourne compatible
11628DUALCASE=1; export DUALCASE # for MKS sh
11629if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11630  emulate sh
11631  NULLCMD=:
11632  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11633  # is contrary to our usage.  Disable this feature.
11634  alias -g '${1+"$@"}'='"$@"'
11635  setopt NO_GLOB_SUBST
11636else
11637  case `(set -o) 2>/dev/null` in #(
11638  *posix*) :
11639    set -o posix ;; #(
11640  *) :
11641     ;;
11642esac
11643fi
11644
11645
11646as_nl='
11647'
11648export as_nl
11649# Printing a long string crashes Solaris 7 /usr/bin/printf.
11650as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11651as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11652as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11653# Prefer a ksh shell builtin over an external printf program on Solaris,
11654# but without wasting forks for bash or zsh.
11655if test -z "$BASH_VERSION$ZSH_VERSION" \
11656    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11657  as_echo='print -r --'
11658  as_echo_n='print -rn --'
11659elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11660  as_echo='printf %s\n'
11661  as_echo_n='printf %s'
11662else
11663  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11664    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11665    as_echo_n='/usr/ucb/echo -n'
11666  else
11667    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11668    as_echo_n_body='eval
11669      arg=$1;
11670      case $arg in #(
11671      *"$as_nl"*)
11672	expr "X$arg" : "X\\(.*\\)$as_nl";
11673	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11674      esac;
11675      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11676    '
11677    export as_echo_n_body
11678    as_echo_n='sh -c $as_echo_n_body as_echo'
11679  fi
11680  export as_echo_body
11681  as_echo='sh -c $as_echo_body as_echo'
11682fi
11683
11684# The user is always right.
11685if test "${PATH_SEPARATOR+set}" != set; then
11686  PATH_SEPARATOR=:
11687  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11688    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11689      PATH_SEPARATOR=';'
11690  }
11691fi
11692
11693
11694# IFS
11695# We need space, tab and new line, in precisely that order.  Quoting is
11696# there to prevent editors from complaining about space-tab.
11697# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11698# splitting by setting IFS to empty value.)
11699IFS=" ""	$as_nl"
11700
11701# Find who we are.  Look in the path if we contain no directory separator.
11702case $0 in #((
11703  *[\\/]* ) as_myself=$0 ;;
11704  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707  IFS=$as_save_IFS
11708  test -z "$as_dir" && as_dir=.
11709    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11710  done
11711IFS=$as_save_IFS
11712
11713     ;;
11714esac
11715# We did not find ourselves, most probably we were run as `sh COMMAND'
11716# in which case we are not to be found in the path.
11717if test "x$as_myself" = x; then
11718  as_myself=$0
11719fi
11720if test ! -f "$as_myself"; then
11721  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11722  exit 1
11723fi
11724
11725# Unset variables that we do not need and which cause bugs (e.g. in
11726# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11727# suppresses any "Segmentation fault" message there.  '((' could
11728# trigger a bug in pdksh 5.2.14.
11729for as_var in BASH_ENV ENV MAIL MAILPATH
11730do eval test x\${$as_var+set} = xset \
11731  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11732done
11733PS1='$ '
11734PS2='> '
11735PS4='+ '
11736
11737# NLS nuisances.
11738LC_ALL=C
11739export LC_ALL
11740LANGUAGE=C
11741export LANGUAGE
11742
11743# CDPATH.
11744(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11745
11746
11747# as_fn_error STATUS ERROR [LINENO LOG_FD]
11748# ----------------------------------------
11749# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11750# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11751# script with STATUS, using 1 if that was 0.
11752as_fn_error ()
11753{
11754  as_status=$1; test $as_status -eq 0 && as_status=1
11755  if test "$4"; then
11756    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11757    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11758  fi
11759  $as_echo "$as_me: error: $2" >&2
11760  as_fn_exit $as_status
11761} # as_fn_error
11762
11763
11764# as_fn_set_status STATUS
11765# -----------------------
11766# Set $? to STATUS, without forking.
11767as_fn_set_status ()
11768{
11769  return $1
11770} # as_fn_set_status
11771
11772# as_fn_exit STATUS
11773# -----------------
11774# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11775as_fn_exit ()
11776{
11777  set +e
11778  as_fn_set_status $1
11779  exit $1
11780} # as_fn_exit
11781
11782# as_fn_unset VAR
11783# ---------------
11784# Portably unset VAR.
11785as_fn_unset ()
11786{
11787  { eval $1=; unset $1;}
11788}
11789as_unset=as_fn_unset
11790# as_fn_append VAR VALUE
11791# ----------------------
11792# Append the text in VALUE to the end of the definition contained in VAR. Take
11793# advantage of any shell optimizations that allow amortized linear growth over
11794# repeated appends, instead of the typical quadratic growth present in naive
11795# implementations.
11796if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11797  eval 'as_fn_append ()
11798  {
11799    eval $1+=\$2
11800  }'
11801else
11802  as_fn_append ()
11803  {
11804    eval $1=\$$1\$2
11805  }
11806fi # as_fn_append
11807
11808# as_fn_arith ARG...
11809# ------------------
11810# Perform arithmetic evaluation on the ARGs, and store the result in the
11811# global $as_val. Take advantage of shells that can avoid forks. The arguments
11812# must be portable across $(()) and expr.
11813if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11814  eval 'as_fn_arith ()
11815  {
11816    as_val=$(( $* ))
11817  }'
11818else
11819  as_fn_arith ()
11820  {
11821    as_val=`expr "$@" || test $? -eq 1`
11822  }
11823fi # as_fn_arith
11824
11825
11826if expr a : '\(a\)' >/dev/null 2>&1 &&
11827   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11828  as_expr=expr
11829else
11830  as_expr=false
11831fi
11832
11833if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11834  as_basename=basename
11835else
11836  as_basename=false
11837fi
11838
11839if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11840  as_dirname=dirname
11841else
11842  as_dirname=false
11843fi
11844
11845as_me=`$as_basename -- "$0" ||
11846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11847	 X"$0" : 'X\(//\)$' \| \
11848	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11849$as_echo X/"$0" |
11850    sed '/^.*\/\([^/][^/]*\)\/*$/{
11851	    s//\1/
11852	    q
11853	  }
11854	  /^X\/\(\/\/\)$/{
11855	    s//\1/
11856	    q
11857	  }
11858	  /^X\/\(\/\).*/{
11859	    s//\1/
11860	    q
11861	  }
11862	  s/.*/./; q'`
11863
11864# Avoid depending upon Character Ranges.
11865as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11866as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11867as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11868as_cr_digits='0123456789'
11869as_cr_alnum=$as_cr_Letters$as_cr_digits
11870
11871ECHO_C= ECHO_N= ECHO_T=
11872case `echo -n x` in #(((((
11873-n*)
11874  case `echo 'xy\c'` in
11875  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11876  xy)  ECHO_C='\c';;
11877  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11878       ECHO_T='	';;
11879  esac;;
11880*)
11881  ECHO_N='-n';;
11882esac
11883
11884rm -f conf$$ conf$$.exe conf$$.file
11885if test -d conf$$.dir; then
11886  rm -f conf$$.dir/conf$$.file
11887else
11888  rm -f conf$$.dir
11889  mkdir conf$$.dir 2>/dev/null
11890fi
11891if (echo >conf$$.file) 2>/dev/null; then
11892  if ln -s conf$$.file conf$$ 2>/dev/null; then
11893    as_ln_s='ln -s'
11894    # ... but there are two gotchas:
11895    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11896    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11897    # In both cases, we have to default to `cp -p'.
11898    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11899      as_ln_s='cp -p'
11900  elif ln conf$$.file conf$$ 2>/dev/null; then
11901    as_ln_s=ln
11902  else
11903    as_ln_s='cp -p'
11904  fi
11905else
11906  as_ln_s='cp -p'
11907fi
11908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11909rmdir conf$$.dir 2>/dev/null
11910
11911
11912# as_fn_mkdir_p
11913# -------------
11914# Create "$as_dir" as a directory, including parents if necessary.
11915as_fn_mkdir_p ()
11916{
11917
11918  case $as_dir in #(
11919  -*) as_dir=./$as_dir;;
11920  esac
11921  test -d "$as_dir" || eval $as_mkdir_p || {
11922    as_dirs=
11923    while :; do
11924      case $as_dir in #(
11925      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11926      *) as_qdir=$as_dir;;
11927      esac
11928      as_dirs="'$as_qdir' $as_dirs"
11929      as_dir=`$as_dirname -- "$as_dir" ||
11930$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11931	 X"$as_dir" : 'X\(//\)[^/]' \| \
11932	 X"$as_dir" : 'X\(//\)$' \| \
11933	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11934$as_echo X"$as_dir" |
11935    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11936	    s//\1/
11937	    q
11938	  }
11939	  /^X\(\/\/\)[^/].*/{
11940	    s//\1/
11941	    q
11942	  }
11943	  /^X\(\/\/\)$/{
11944	    s//\1/
11945	    q
11946	  }
11947	  /^X\(\/\).*/{
11948	    s//\1/
11949	    q
11950	  }
11951	  s/.*/./; q'`
11952      test -d "$as_dir" && break
11953    done
11954    test -z "$as_dirs" || eval "mkdir $as_dirs"
11955  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11956
11957
11958} # as_fn_mkdir_p
11959if mkdir -p . 2>/dev/null; then
11960  as_mkdir_p='mkdir -p "$as_dir"'
11961else
11962  test -d ./-p && rmdir ./-p
11963  as_mkdir_p=false
11964fi
11965
11966if test -x / >/dev/null 2>&1; then
11967  as_test_x='test -x'
11968else
11969  if ls -dL / >/dev/null 2>&1; then
11970    as_ls_L_option=L
11971  else
11972    as_ls_L_option=
11973  fi
11974  as_test_x='
11975    eval sh -c '\''
11976      if test -d "$1"; then
11977	test -d "$1/.";
11978      else
11979	case $1 in #(
11980	-*)set "./$1";;
11981	esac;
11982	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11983	???[sx]*):;;*)false;;esac;fi
11984    '\'' sh
11985  '
11986fi
11987as_executable_p=$as_test_x
11988
11989# Sed expression to map a string onto a valid CPP name.
11990as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11991
11992# Sed expression to map a string onto a valid variable name.
11993as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11994
11995
11996exec 6>&1
11997## ----------------------------------- ##
11998## Main body of $CONFIG_STATUS script. ##
11999## ----------------------------------- ##
12000_ASEOF
12001test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12002
12003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12004# Save the log message, to keep $0 and so on meaningful, and to
12005# report actual input values of CONFIG_FILES etc. instead of their
12006# values after options handling.
12007ac_log="
12008This file was extended by Tux Of Math Command $as_me 2.0.3, which was
12009generated by GNU Autoconf 2.67.  Invocation command line was
12010
12011  CONFIG_FILES    = $CONFIG_FILES
12012  CONFIG_HEADERS  = $CONFIG_HEADERS
12013  CONFIG_LINKS    = $CONFIG_LINKS
12014  CONFIG_COMMANDS = $CONFIG_COMMANDS
12015  $ $0 $@
12016
12017on `(hostname || uname -n) 2>/dev/null | sed 1q`
12018"
12019
12020_ACEOF
12021
12022case $ac_config_files in *"
12023"*) set x $ac_config_files; shift; ac_config_files=$*;;
12024esac
12025
12026case $ac_config_headers in *"
12027"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12028esac
12029
12030
12031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12032# Files that config.status was made for.
12033config_files="$ac_config_files"
12034config_headers="$ac_config_headers"
12035config_commands="$ac_config_commands"
12036
12037_ACEOF
12038
12039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12040ac_cs_usage="\
12041\`$as_me' instantiates files and other configuration actions
12042from templates according to the current configuration.  Unless the files
12043and actions are specified as TAGs, all are instantiated by default.
12044
12045Usage: $0 [OPTION]... [TAG]...
12046
12047  -h, --help       print this help, then exit
12048  -V, --version    print version number and configuration settings, then exit
12049      --config     print configuration, then exit
12050  -q, --quiet, --silent
12051                   do not print progress messages
12052  -d, --debug      don't remove temporary files
12053      --recheck    update $as_me by reconfiguring in the same conditions
12054      --file=FILE[:TEMPLATE]
12055                   instantiate the configuration file FILE
12056      --header=FILE[:TEMPLATE]
12057                   instantiate the configuration header FILE
12058
12059Configuration files:
12060$config_files
12061
12062Configuration headers:
12063$config_headers
12064
12065Configuration commands:
12066$config_commands
12067
12068Report bugs to <tuxmath-devel@lists.sourceforge.net>."
12069
12070_ACEOF
12071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12072ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12073ac_cs_version="\\
12074Tux Of Math Command config.status 2.0.3
12075configured by $0, generated by GNU Autoconf 2.67,
12076  with options \\"\$ac_cs_config\\"
12077
12078Copyright (C) 2010 Free Software Foundation, Inc.
12079This config.status script is free software; the Free Software Foundation
12080gives unlimited permission to copy, distribute and modify it."
12081
12082ac_pwd='$ac_pwd'
12083srcdir='$srcdir'
12084INSTALL='$INSTALL'
12085MKDIR_P='$MKDIR_P'
12086AWK='$AWK'
12087test -n "\$AWK" || AWK=awk
12088_ACEOF
12089
12090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12091# The default lists apply if the user does not specify any file.
12092ac_need_defaults=:
12093while test $# != 0
12094do
12095  case $1 in
12096  --*=?*)
12097    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12098    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12099    ac_shift=:
12100    ;;
12101  --*=)
12102    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12103    ac_optarg=
12104    ac_shift=:
12105    ;;
12106  *)
12107    ac_option=$1
12108    ac_optarg=$2
12109    ac_shift=shift
12110    ;;
12111  esac
12112
12113  case $ac_option in
12114  # Handling of the options.
12115  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12116    ac_cs_recheck=: ;;
12117  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12118    $as_echo "$ac_cs_version"; exit ;;
12119  --config | --confi | --conf | --con | --co | --c )
12120    $as_echo "$ac_cs_config"; exit ;;
12121  --debug | --debu | --deb | --de | --d | -d )
12122    debug=: ;;
12123  --file | --fil | --fi | --f )
12124    $ac_shift
12125    case $ac_optarg in
12126    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12127    '') as_fn_error $? "missing file argument" ;;
12128    esac
12129    as_fn_append CONFIG_FILES " '$ac_optarg'"
12130    ac_need_defaults=false;;
12131  --header | --heade | --head | --hea )
12132    $ac_shift
12133    case $ac_optarg in
12134    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12135    esac
12136    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12137    ac_need_defaults=false;;
12138  --he | --h)
12139    # Conflict between --help and --header
12140    as_fn_error $? "ambiguous option: \`$1'
12141Try \`$0 --help' for more information.";;
12142  --help | --hel | -h )
12143    $as_echo "$ac_cs_usage"; exit ;;
12144  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12145  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12146    ac_cs_silent=: ;;
12147
12148  # This is an error.
12149  -*) as_fn_error $? "unrecognized option: \`$1'
12150Try \`$0 --help' for more information." ;;
12151
12152  *) as_fn_append ac_config_targets " $1"
12153     ac_need_defaults=false ;;
12154
12155  esac
12156  shift
12157done
12158
12159ac_configure_extra_args=
12160
12161if $ac_cs_silent; then
12162  exec 6>/dev/null
12163  ac_configure_extra_args="$ac_configure_extra_args --silent"
12164fi
12165
12166_ACEOF
12167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12168if \$ac_cs_recheck; then
12169  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12170  shift
12171  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12172  CONFIG_SHELL='$SHELL'
12173  export CONFIG_SHELL
12174  exec "\$@"
12175fi
12176
12177_ACEOF
12178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12179exec 5>>config.log
12180{
12181  echo
12182  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12183## Running $as_me. ##
12184_ASBOX
12185  $as_echo "$ac_log"
12186} >&5
12187
12188_ACEOF
12189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12190#
12191# INIT-COMMANDS
12192#
12193AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12194# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12195    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12196    # from automake < 1.5.
12197    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12198    # Capture the value of LINGUAS because we need it to compute CATALOGS.
12199    LINGUAS="${LINGUAS-%UNSET%}"
12200
12201
12202_ACEOF
12203
12204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12205
12206# Handling of arguments.
12207for ac_config_target in $ac_config_targets
12208do
12209  case $ac_config_target in
12210    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12211    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12212    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12213    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12214    "tuxmath.spec") CONFIG_FILES="$CONFIG_FILES tuxmath.spec" ;;
12215    "tuxmath_preview.spec") CONFIG_FILES="$CONFIG_FILES tuxmath_preview.spec" ;;
12216    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
12217    "data/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES data/fonts/Makefile" ;;
12218    "data/images/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/Makefile" ;;
12219    "data/images/backgrounds/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/backgrounds/Makefile" ;;
12220    "data/images/cities/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/cities/Makefile" ;;
12221    "data/images/comets/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/comets/Makefile" ;;
12222    "data/images/icons/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/icons/Makefile" ;;
12223    "data/images/igloos/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/igloos/Makefile" ;;
12224    "data/images/penguins/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/penguins/Makefile" ;;
12225    "data/images/sprites/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/sprites/Makefile" ;;
12226    "data/images/status/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/status/Makefile" ;;
12227    "data/images/title/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/title/Makefile" ;;
12228    "data/images/tux/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/tux/Makefile" ;;
12229    "data/images/factoroids/Makefile") CONFIG_FILES="$CONFIG_FILES data/images/factoroids/Makefile" ;;
12230    "data/menus/Makefile") CONFIG_FILES="$CONFIG_FILES data/menus/Makefile" ;;
12231    "data/missions/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/Makefile" ;;
12232    "data/missions/arcade/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/arcade/Makefile" ;;
12233    "data/missions/campaign/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/campaign/Makefile" ;;
12234    "data/missions/campaign/ace/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/campaign/ace/Makefile" ;;
12235    "data/missions/campaign/cadet/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/campaign/cadet/Makefile" ;;
12236    "data/missions/campaign/commando/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/campaign/commando/Makefile" ;;
12237    "data/missions/campaign/ranger/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/campaign/ranger/Makefile" ;;
12238    "data/missions/campaign/scout/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/campaign/scout/Makefile" ;;
12239    "data/missions/lessons/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/lessons/Makefile" ;;
12240    "data/missions/multiplay/Makefile") CONFIG_FILES="$CONFIG_FILES data/missions/multiplay/Makefile" ;;
12241    "data/sounds/Makefile") CONFIG_FILES="$CONFIG_FILES data/sounds/Makefile" ;;
12242    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12243    "nsis/tuxmath.nsi") CONFIG_FILES="$CONFIG_FILES nsis/tuxmath.nsi" ;;
12244    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12245    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12246
12247  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12248  esac
12249done
12250
12251
12252# If the user did not use the arguments to specify the items to instantiate,
12253# then the envvar interface is used.  Set only those that are not.
12254# We use the long form for the default assignment because of an extremely
12255# bizarre bug on SunOS 4.1.3.
12256if $ac_need_defaults; then
12257  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12258  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12259  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12260fi
12261
12262# Have a temporary directory for convenience.  Make it in the build tree
12263# simply because there is no reason against having it here, and in addition,
12264# creating and moving files from /tmp can sometimes cause problems.
12265# Hook for its removal unless debugging.
12266# Note that there is a small window in which the directory will not be cleaned:
12267# after its creation but before its name has been assigned to `$tmp'.
12268$debug ||
12269{
12270  tmp=
12271  trap 'exit_status=$?
12272  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12273' 0
12274  trap 'as_fn_exit 1' 1 2 13 15
12275}
12276# Create a (secure) tmp directory for tmp files.
12277
12278{
12279  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12280  test -n "$tmp" && test -d "$tmp"
12281}  ||
12282{
12283  tmp=./conf$$-$RANDOM
12284  (umask 077 && mkdir "$tmp")
12285} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12286
12287# Set up the scripts for CONFIG_FILES section.
12288# No need to generate them if there are no CONFIG_FILES.
12289# This happens for instance with `./config.status config.h'.
12290if test -n "$CONFIG_FILES"; then
12291
12292
12293ac_cr=`echo X | tr X '\015'`
12294# On cygwin, bash can eat \r inside `` if the user requested igncr.
12295# But we know of no other shell where ac_cr would be empty at this
12296# point, so we can use a bashism as a fallback.
12297if test "x$ac_cr" = x; then
12298  eval ac_cr=\$\'\\r\'
12299fi
12300ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12301if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12302  ac_cs_awk_cr='\\r'
12303else
12304  ac_cs_awk_cr=$ac_cr
12305fi
12306
12307echo 'BEGIN {' >"$tmp/subs1.awk" &&
12308_ACEOF
12309
12310
12311{
12312  echo "cat >conf$$subs.awk <<_ACEOF" &&
12313  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12314  echo "_ACEOF"
12315} >conf$$subs.sh ||
12316  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12317ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12318ac_delim='%!_!# '
12319for ac_last_try in false false false false false :; do
12320  . ./conf$$subs.sh ||
12321    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12322
12323  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12324  if test $ac_delim_n = $ac_delim_num; then
12325    break
12326  elif $ac_last_try; then
12327    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12328  else
12329    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12330  fi
12331done
12332rm -f conf$$subs.sh
12333
12334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12335cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12336_ACEOF
12337sed -n '
12338h
12339s/^/S["/; s/!.*/"]=/
12340p
12341g
12342s/^[^!]*!//
12343:repl
12344t repl
12345s/'"$ac_delim"'$//
12346t delim
12347:nl
12348h
12349s/\(.\{148\}\)..*/\1/
12350t more1
12351s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12352p
12353n
12354b repl
12355:more1
12356s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12357p
12358g
12359s/.\{148\}//
12360t nl
12361:delim
12362h
12363s/\(.\{148\}\)..*/\1/
12364t more2
12365s/["\\]/\\&/g; s/^/"/; s/$/"/
12366p
12367b
12368:more2
12369s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12370p
12371g
12372s/.\{148\}//
12373t delim
12374' <conf$$subs.awk | sed '
12375/^[^""]/{
12376  N
12377  s/\n//
12378}
12379' >>$CONFIG_STATUS || ac_write_fail=1
12380rm -f conf$$subs.awk
12381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12382_ACAWK
12383cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12384  for (key in S) S_is_set[key] = 1
12385  FS = ""
12386
12387}
12388{
12389  line = $ 0
12390  nfields = split(line, field, "@")
12391  substed = 0
12392  len = length(field[1])
12393  for (i = 2; i < nfields; i++) {
12394    key = field[i]
12395    keylen = length(key)
12396    if (S_is_set[key]) {
12397      value = S[key]
12398      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12399      len += length(value) + length(field[++i])
12400      substed = 1
12401    } else
12402      len += 1 + keylen
12403  }
12404
12405  print line
12406}
12407
12408_ACAWK
12409_ACEOF
12410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12411if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12412  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12413else
12414  cat
12415fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12416  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12417_ACEOF
12418
12419# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12420# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12421# trailing colons and then remove the whole line if VPATH becomes empty
12422# (actually we leave an empty line to preserve line numbers).
12423if test "x$srcdir" = x.; then
12424  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12425h
12426s///
12427s/^/:/
12428s/[	 ]*$/:/
12429s/:\$(srcdir):/:/g
12430s/:\${srcdir}:/:/g
12431s/:@srcdir@:/:/g
12432s/^:*//
12433s/:*$//
12434x
12435s/\(=[	 ]*\).*/\1/
12436G
12437s/\n//
12438s/^[^=]*=[	 ]*$//
12439}'
12440fi
12441
12442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12443fi # test -n "$CONFIG_FILES"
12444
12445# Set up the scripts for CONFIG_HEADERS section.
12446# No need to generate them if there are no CONFIG_HEADERS.
12447# This happens for instance with `./config.status Makefile'.
12448if test -n "$CONFIG_HEADERS"; then
12449cat >"$tmp/defines.awk" <<\_ACAWK ||
12450BEGIN {
12451_ACEOF
12452
12453# Transform confdefs.h into an awk script `defines.awk', embedded as
12454# here-document in config.status, that substitutes the proper values into
12455# config.h.in to produce config.h.
12456
12457# Create a delimiter string that does not exist in confdefs.h, to ease
12458# handling of long lines.
12459ac_delim='%!_!# '
12460for ac_last_try in false false :; do
12461  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12462  if test -z "$ac_t"; then
12463    break
12464  elif $ac_last_try; then
12465    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12466  else
12467    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12468  fi
12469done
12470
12471# For the awk script, D is an array of macro values keyed by name,
12472# likewise P contains macro parameters if any.  Preserve backslash
12473# newline sequences.
12474
12475ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12476sed -n '
12477s/.\{148\}/&'"$ac_delim"'/g
12478t rset
12479:rset
12480s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12481t def
12482d
12483:def
12484s/\\$//
12485t bsnl
12486s/["\\]/\\&/g
12487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12488D["\1"]=" \3"/p
12489s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12490d
12491:bsnl
12492s/["\\]/\\&/g
12493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12494D["\1"]=" \3\\\\\\n"\\/p
12495t cont
12496s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12497t cont
12498d
12499:cont
12500n
12501s/.\{148\}/&'"$ac_delim"'/g
12502t clear
12503:clear
12504s/\\$//
12505t bsnlc
12506s/["\\]/\\&/g; s/^/"/; s/$/"/p
12507d
12508:bsnlc
12509s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12510b cont
12511' <confdefs.h | sed '
12512s/'"$ac_delim"'/"\\\
12513"/g' >>$CONFIG_STATUS || ac_write_fail=1
12514
12515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12516  for (key in D) D_is_set[key] = 1
12517  FS = ""
12518}
12519/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12520  line = \$ 0
12521  split(line, arg, " ")
12522  if (arg[1] == "#") {
12523    defundef = arg[2]
12524    mac1 = arg[3]
12525  } else {
12526    defundef = substr(arg[1], 2)
12527    mac1 = arg[2]
12528  }
12529  split(mac1, mac2, "(") #)
12530  macro = mac2[1]
12531  prefix = substr(line, 1, index(line, defundef) - 1)
12532  if (D_is_set[macro]) {
12533    # Preserve the white space surrounding the "#".
12534    print prefix "define", macro P[macro] D[macro]
12535    next
12536  } else {
12537    # Replace #undef with comments.  This is necessary, for example,
12538    # in the case of _POSIX_SOURCE, which is predefined and required
12539    # on some systems where configure will not decide to define it.
12540    if (defundef == "undef") {
12541      print "/*", prefix defundef, macro, "*/"
12542      next
12543    }
12544  }
12545}
12546{ print }
12547_ACAWK
12548_ACEOF
12549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12550  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12551fi # test -n "$CONFIG_HEADERS"
12552
12553
12554eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12555shift
12556for ac_tag
12557do
12558  case $ac_tag in
12559  :[FHLC]) ac_mode=$ac_tag; continue;;
12560  esac
12561  case $ac_mode$ac_tag in
12562  :[FHL]*:*);;
12563  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12564  :[FH]-) ac_tag=-:-;;
12565  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12566  esac
12567  ac_save_IFS=$IFS
12568  IFS=:
12569  set x $ac_tag
12570  IFS=$ac_save_IFS
12571  shift
12572  ac_file=$1
12573  shift
12574
12575  case $ac_mode in
12576  :L) ac_source=$1;;
12577  :[FH])
12578    ac_file_inputs=
12579    for ac_f
12580    do
12581      case $ac_f in
12582      -) ac_f="$tmp/stdin";;
12583      *) # Look for the file first in the build tree, then in the source tree
12584	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12585	 # because $ac_f cannot contain `:'.
12586	 test -f "$ac_f" ||
12587	   case $ac_f in
12588	   [\\/$]*) false;;
12589	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12590	   esac ||
12591	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12592      esac
12593      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12594      as_fn_append ac_file_inputs " '$ac_f'"
12595    done
12596
12597    # Let's still pretend it is `configure' which instantiates (i.e., don't
12598    # use $as_me), people would be surprised to read:
12599    #    /* config.h.  Generated by config.status.  */
12600    configure_input='Generated from '`
12601	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12602	`' by configure.'
12603    if test x"$ac_file" != x-; then
12604      configure_input="$ac_file.  $configure_input"
12605      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12606$as_echo "$as_me: creating $ac_file" >&6;}
12607    fi
12608    # Neutralize special characters interpreted by sed in replacement strings.
12609    case $configure_input in #(
12610    *\&* | *\|* | *\\* )
12611       ac_sed_conf_input=`$as_echo "$configure_input" |
12612       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12613    *) ac_sed_conf_input=$configure_input;;
12614    esac
12615
12616    case $ac_tag in
12617    *:-:* | *:-) cat >"$tmp/stdin" \
12618      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
12619    esac
12620    ;;
12621  esac
12622
12623  ac_dir=`$as_dirname -- "$ac_file" ||
12624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12625	 X"$ac_file" : 'X\(//\)[^/]' \| \
12626	 X"$ac_file" : 'X\(//\)$' \| \
12627	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12628$as_echo X"$ac_file" |
12629    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12630	    s//\1/
12631	    q
12632	  }
12633	  /^X\(\/\/\)[^/].*/{
12634	    s//\1/
12635	    q
12636	  }
12637	  /^X\(\/\/\)$/{
12638	    s//\1/
12639	    q
12640	  }
12641	  /^X\(\/\).*/{
12642	    s//\1/
12643	    q
12644	  }
12645	  s/.*/./; q'`
12646  as_dir="$ac_dir"; as_fn_mkdir_p
12647  ac_builddir=.
12648
12649case "$ac_dir" in
12650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12651*)
12652  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12653  # A ".." for each directory in $ac_dir_suffix.
12654  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12655  case $ac_top_builddir_sub in
12656  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12657  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12658  esac ;;
12659esac
12660ac_abs_top_builddir=$ac_pwd
12661ac_abs_builddir=$ac_pwd$ac_dir_suffix
12662# for backward compatibility:
12663ac_top_builddir=$ac_top_build_prefix
12664
12665case $srcdir in
12666  .)  # We are building in place.
12667    ac_srcdir=.
12668    ac_top_srcdir=$ac_top_builddir_sub
12669    ac_abs_top_srcdir=$ac_pwd ;;
12670  [\\/]* | ?:[\\/]* )  # Absolute name.
12671    ac_srcdir=$srcdir$ac_dir_suffix;
12672    ac_top_srcdir=$srcdir
12673    ac_abs_top_srcdir=$srcdir ;;
12674  *) # Relative name.
12675    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12676    ac_top_srcdir=$ac_top_build_prefix$srcdir
12677    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12678esac
12679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12680
12681
12682  case $ac_mode in
12683  :F)
12684  #
12685  # CONFIG_FILE
12686  #
12687
12688  case $INSTALL in
12689  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12690  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12691  esac
12692  ac_MKDIR_P=$MKDIR_P
12693  case $MKDIR_P in
12694  [\\/$]* | ?:[\\/]* ) ;;
12695  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12696  esac
12697_ACEOF
12698
12699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12700# If the template does not know about datarootdir, expand it.
12701# FIXME: This hack should be removed a few years after 2.60.
12702ac_datarootdir_hack=; ac_datarootdir_seen=
12703ac_sed_dataroot='
12704/datarootdir/ {
12705  p
12706  q
12707}
12708/@datadir@/p
12709/@docdir@/p
12710/@infodir@/p
12711/@localedir@/p
12712/@mandir@/p'
12713case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12714*datarootdir*) ac_datarootdir_seen=yes;;
12715*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12716  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12717$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12718_ACEOF
12719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720  ac_datarootdir_hack='
12721  s&@datadir@&$datadir&g
12722  s&@docdir@&$docdir&g
12723  s&@infodir@&$infodir&g
12724  s&@localedir@&$localedir&g
12725  s&@mandir@&$mandir&g
12726  s&\\\${datarootdir}&$datarootdir&g' ;;
12727esac
12728_ACEOF
12729
12730# Neutralize VPATH when `$srcdir' = `.'.
12731# Shell code in configure.ac might set extrasub.
12732# FIXME: do we really want to maintain this feature?
12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734ac_sed_extra="$ac_vpsub
12735$extrasub
12736_ACEOF
12737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12738:t
12739/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12740s|@configure_input@|$ac_sed_conf_input|;t t
12741s&@top_builddir@&$ac_top_builddir_sub&;t t
12742s&@top_build_prefix@&$ac_top_build_prefix&;t t
12743s&@srcdir@&$ac_srcdir&;t t
12744s&@abs_srcdir@&$ac_abs_srcdir&;t t
12745s&@top_srcdir@&$ac_top_srcdir&;t t
12746s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12747s&@builddir@&$ac_builddir&;t t
12748s&@abs_builddir@&$ac_abs_builddir&;t t
12749s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12750s&@INSTALL@&$ac_INSTALL&;t t
12751s&@MKDIR_P@&$ac_MKDIR_P&;t t
12752$ac_datarootdir_hack
12753"
12754eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12755  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12756
12757test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12758  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12759  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12760  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12761which seems to be undefined.  Please make sure it is defined" >&5
12762$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12763which seems to be undefined.  Please make sure it is defined" >&2;}
12764
12765  rm -f "$tmp/stdin"
12766  case $ac_file in
12767  -) cat "$tmp/out" && rm -f "$tmp/out";;
12768  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12769  esac \
12770  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12771 ;;
12772  :H)
12773  #
12774  # CONFIG_HEADER
12775  #
12776  if test x"$ac_file" != x-; then
12777    {
12778      $as_echo "/* $configure_input  */" \
12779      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12780    } >"$tmp/config.h" \
12781      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12782    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12783      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12784$as_echo "$as_me: $ac_file is unchanged" >&6;}
12785    else
12786      rm -f "$ac_file"
12787      mv "$tmp/config.h" "$ac_file" \
12788	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12789    fi
12790  else
12791    $as_echo "/* $configure_input  */" \
12792      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12793      || as_fn_error $? "could not create -" "$LINENO" 5
12794  fi
12795# Compute "$ac_file"'s index in $config_headers.
12796_am_arg="$ac_file"
12797_am_stamp_count=1
12798for _am_header in $config_headers :; do
12799  case $_am_header in
12800    $_am_arg | $_am_arg:* )
12801      break ;;
12802    * )
12803      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12804  esac
12805done
12806echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12807$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12808	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12809	 X"$_am_arg" : 'X\(//\)$' \| \
12810	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12811$as_echo X"$_am_arg" |
12812    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12813	    s//\1/
12814	    q
12815	  }
12816	  /^X\(\/\/\)[^/].*/{
12817	    s//\1/
12818	    q
12819	  }
12820	  /^X\(\/\/\)$/{
12821	    s//\1/
12822	    q
12823	  }
12824	  /^X\(\/\).*/{
12825	    s//\1/
12826	    q
12827	  }
12828	  s/.*/./; q'`/stamp-h$_am_stamp_count
12829 ;;
12830
12831  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12832$as_echo "$as_me: executing $ac_file commands" >&6;}
12833 ;;
12834  esac
12835
12836
12837  case $ac_file$ac_mode in
12838    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12839  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12840  # are listed without --file.  Let's play safe and only enable the eval
12841  # if we detect the quoting.
12842  case $CONFIG_FILES in
12843  *\'*) eval set x "$CONFIG_FILES" ;;
12844  *)   set x $CONFIG_FILES ;;
12845  esac
12846  shift
12847  for mf
12848  do
12849    # Strip MF so we end up with the name of the file.
12850    mf=`echo "$mf" | sed -e 's/:.*$//'`
12851    # Check whether this is an Automake generated Makefile or not.
12852    # We used to match only the files named `Makefile.in', but
12853    # some people rename them; so instead we look at the file content.
12854    # Grep'ing the first line is not enough: some people post-process
12855    # each Makefile.in and add a new line on top of each file to say so.
12856    # Grep'ing the whole file is not good either: AIX grep has a line
12857    # limit of 2048, but all sed's we know have understand at least 4000.
12858    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12859      dirpart=`$as_dirname -- "$mf" ||
12860$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12861	 X"$mf" : 'X\(//\)[^/]' \| \
12862	 X"$mf" : 'X\(//\)$' \| \
12863	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12864$as_echo X"$mf" |
12865    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12866	    s//\1/
12867	    q
12868	  }
12869	  /^X\(\/\/\)[^/].*/{
12870	    s//\1/
12871	    q
12872	  }
12873	  /^X\(\/\/\)$/{
12874	    s//\1/
12875	    q
12876	  }
12877	  /^X\(\/\).*/{
12878	    s//\1/
12879	    q
12880	  }
12881	  s/.*/./; q'`
12882    else
12883      continue
12884    fi
12885    # Extract the definition of DEPDIR, am__include, and am__quote
12886    # from the Makefile without running `make'.
12887    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12888    test -z "$DEPDIR" && continue
12889    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12890    test -z "am__include" && continue
12891    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12892    # When using ansi2knr, U may be empty or an underscore; expand it
12893    U=`sed -n 's/^U = //p' < "$mf"`
12894    # Find all dependency output files, they are included files with
12895    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12896    # simplest approach to changing $(DEPDIR) to its actual value in the
12897    # expansion.
12898    for file in `sed -n "
12899      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12900	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12901      # Make sure the directory exists.
12902      test -f "$dirpart/$file" && continue
12903      fdir=`$as_dirname -- "$file" ||
12904$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12905	 X"$file" : 'X\(//\)[^/]' \| \
12906	 X"$file" : 'X\(//\)$' \| \
12907	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12908$as_echo X"$file" |
12909    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12910	    s//\1/
12911	    q
12912	  }
12913	  /^X\(\/\/\)[^/].*/{
12914	    s//\1/
12915	    q
12916	  }
12917	  /^X\(\/\/\)$/{
12918	    s//\1/
12919	    q
12920	  }
12921	  /^X\(\/\).*/{
12922	    s//\1/
12923	    q
12924	  }
12925	  s/.*/./; q'`
12926      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12927      # echo "creating $dirpart/$file"
12928      echo '# dummy' > "$dirpart/$file"
12929    done
12930  done
12931}
12932 ;;
12933    "po-directories":C)
12934    for ac_file in $CONFIG_FILES; do
12935      # Support "outfile[:infile[:infile...]]"
12936      case "$ac_file" in
12937        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12938      esac
12939      # PO directories have a Makefile.in generated from Makefile.in.in.
12940      case "$ac_file" in */Makefile.in)
12941        # Adjust a relative srcdir.
12942        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12943        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12944        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12945        # In autoconf-2.13 it is called $ac_given_srcdir.
12946        # In autoconf-2.50 it is called $srcdir.
12947        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12948        case "$ac_given_srcdir" in
12949          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12950          /*) top_srcdir="$ac_given_srcdir" ;;
12951          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12952        esac
12953        # Treat a directory as a PO directory if and only if it has a
12954        # POTFILES.in file. This allows packages to have multiple PO
12955        # directories under different names or in different locations.
12956        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12957          rm -f "$ac_dir/POTFILES"
12958          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12959          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12960          POMAKEFILEDEPS="POTFILES.in"
12961          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12962          # on $ac_dir but don't depend on user-specified configuration
12963          # parameters.
12964          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12965            # The LINGUAS file contains the set of available languages.
12966            if test -n "$OBSOLETE_ALL_LINGUAS"; then
12967              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12968            fi
12969            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12970            # Hide the ALL_LINGUAS assigment from automake < 1.5.
12971            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12972            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12973          else
12974            # The set of available languages was given in configure.in.
12975            # Hide the ALL_LINGUAS assigment from automake < 1.5.
12976            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12977          fi
12978          # Compute POFILES
12979          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12980          # Compute UPDATEPOFILES
12981          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12982          # Compute DUMMYPOFILES
12983          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12984          # Compute GMOFILES
12985          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12986          case "$ac_given_srcdir" in
12987            .) srcdirpre= ;;
12988            *) srcdirpre='$(srcdir)/' ;;
12989          esac
12990          POFILES=
12991          UPDATEPOFILES=
12992          DUMMYPOFILES=
12993          GMOFILES=
12994          for lang in $ALL_LINGUAS; do
12995            POFILES="$POFILES $srcdirpre$lang.po"
12996            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12997            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12998            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12999          done
13000          # CATALOGS depends on both $ac_dir and the user's LINGUAS
13001          # environment variable.
13002          INST_LINGUAS=
13003          if test -n "$ALL_LINGUAS"; then
13004            for presentlang in $ALL_LINGUAS; do
13005              useit=no
13006              if test "%UNSET%" != "$LINGUAS"; then
13007                desiredlanguages="$LINGUAS"
13008              else
13009                desiredlanguages="$ALL_LINGUAS"
13010              fi
13011              for desiredlang in $desiredlanguages; do
13012                # Use the presentlang catalog if desiredlang is
13013                #   a. equal to presentlang, or
13014                #   b. a variant of presentlang (because in this case,
13015                #      presentlang can be used as a fallback for messages
13016                #      which are not translated in the desiredlang catalog).
13017                case "$desiredlang" in
13018                  "$presentlang"*) useit=yes;;
13019                esac
13020              done
13021              if test $useit = yes; then
13022                INST_LINGUAS="$INST_LINGUAS $presentlang"
13023              fi
13024            done
13025          fi
13026          CATALOGS=
13027          if test -n "$INST_LINGUAS"; then
13028            for lang in $INST_LINGUAS; do
13029              CATALOGS="$CATALOGS $lang.gmo"
13030            done
13031          fi
13032          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13033          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13034          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13035            if test -f "$f"; then
13036              case "$f" in
13037                *.orig | *.bak | *~) ;;
13038                *) cat "$f" >> "$ac_dir/Makefile" ;;
13039              esac
13040            fi
13041          done
13042        fi
13043        ;;
13044      esac
13045    done ;;
13046
13047  esac
13048done # for ac_tag
13049
13050
13051as_fn_exit 0
13052_ACEOF
13053ac_clean_files=$ac_clean_files_save
13054
13055test $ac_write_fail = 0 ||
13056  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13057
13058
13059# configure is writing to config.log, and then calls config.status.
13060# config.status does its own redirection, appending to config.log.
13061# Unfortunately, on DOS this fails, as config.log is still kept open
13062# by configure, so config.status won't be able to write to it; its
13063# output is simply discarded.  So we exec the FD to /dev/null,
13064# effectively closing config.log, so it can be properly (re)opened and
13065# appended to by config.status.  When coming back to configure, we
13066# need to make the FD available again.
13067if test "$no_create" != yes; then
13068  ac_cs_success=:
13069  ac_config_status_args=
13070  test "$silent" = yes &&
13071    ac_config_status_args="$ac_config_status_args --quiet"
13072  exec 5>/dev/null
13073  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13074  exec 5>>config.log
13075  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13076  # would make configure fail if this is the last instruction.
13077  $ac_cs_success || as_fn_exit 1
13078fi
13079if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13081$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13082fi
13083
13084