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