1) Optimiser les fontions auxiliaires par eviter d'utiliser List.mem
[tatoo.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for TAToo 0.0.1.
4 #
5 # Report bugs to <Kim Nguyễn <kn@lri.fr>>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201   if (eval "$as_required") 2>/dev/null; then :
202   as_have_required=yes
203 else
204   as_have_required=no
205 fi
206   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207
208 else
209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 do
213   IFS=$as_save_IFS
214   test -z "$as_dir" && as_dir=.
215   as_found=:
216   case $as_dir in #(
217          /*)
218            for as_base in sh bash ksh sh5; do
219              # Try only shells that exist, to save several forks.
220              as_shell=$as_dir/$as_base
221              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223   CONFIG_SHELL=$as_shell as_have_required=yes
224                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225   break 2
226 fi
227 fi
228            done;;
229        esac
230   as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234   CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
237
238
239       if test "x$CONFIG_SHELL" != x; then :
240   export CONFIG_SHELL
241              # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249   *v*x* | *x*v* ) as_opts=-vx ;;
250   *v* ) as_opts=-v ;;
251   *x* ) as_opts=-x ;;
252   * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261     if test x$as_have_required = xno; then :
262   $as_echo "$0: This script requires a shell more modern than all"
263   $as_echo "$0: the shells that I found on your system."
264   if test x${ZSH_VERSION+set} = xset ; then
265     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267   else
268     $as_echo "$0: Please tell bug-autoconf@gnu.org and Kim Nguyễn
269 $0: <kn@lri.fr> about your system, including any error
270 $0: possibly output before this message. Then install a
271 $0: modern shell, or manually run the script under such a
272 $0: shell if you do have one."
273   fi
274   exit 1
275 fi
276 fi
277 fi
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
283
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
291 {
292   { eval $1=; unset $1;}
293 }
294 as_unset=as_fn_unset
295
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
300 {
301   return $1
302 } # as_fn_set_status
303
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
308 {
309   set +e
310   as_fn_set_status $1
311   exit $1
312 } # as_fn_exit
313
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
318 {
319
320   case $as_dir in #(
321   -*) as_dir=./$as_dir;;
322   esac
323   test -d "$as_dir" || eval $as_mkdir_p || {
324     as_dirs=
325     while :; do
326       case $as_dir in #(
327       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328       *) as_qdir=$as_dir;;
329       esac
330       as_dirs="'$as_qdir' $as_dirs"
331       as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333          X"$as_dir" : 'X\(//\)[^/]' \| \
334          X"$as_dir" : 'X\(//\)$' \| \
335          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338             s//\1/
339             q
340           }
341           /^X\(\/\/\)[^/].*/{
342             s//\1/
343             q
344           }
345           /^X\(\/\/\)$/{
346             s//\1/
347             q
348           }
349           /^X\(\/\).*/{
350             s//\1/
351             q
352           }
353           s/.*/./; q'`
354       test -d "$as_dir" && break
355     done
356     test -z "$as_dirs" || eval "mkdir $as_dirs"
357   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358
359
360 } # as_fn_mkdir_p
361
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
366 {
367   test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376   eval 'as_fn_append ()
377   {
378     eval $1+=\$2
379   }'
380 else
381   as_fn_append ()
382   {
383     eval $1=\$$1\$2
384   }
385 fi # as_fn_append
386
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393   eval 'as_fn_arith ()
394   {
395     as_val=$(( $* ))
396   }'
397 else
398   as_fn_arith ()
399   {
400     as_val=`expr "$@" || test $? -eq 1`
401   }
402 fi # as_fn_arith
403
404
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
411 {
412   as_status=$1; test $as_status -eq 0 && as_status=1
413   if test "$4"; then
414     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416   fi
417   $as_echo "$as_me: error: $2" >&2
418   as_fn_exit $as_status
419 } # as_fn_error
420
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422    test "X`expr 00001 : '.*\(...\)'`" = X001; then
423   as_expr=expr
424 else
425   as_expr=false
426 fi
427
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429   as_basename=basename
430 else
431   as_basename=false
432 fi
433
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435   as_dirname=dirname
436 else
437   as_dirname=false
438 fi
439
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442          X"$0" : 'X\(//\)$' \| \
443          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445     sed '/^.*\/\([^/][^/]*\)\/*$/{
446             s//\1/
447             q
448           }
449           /^X\/\(\/\/\)$/{
450             s//\1/
451             q
452           }
453           /^X\/\(\/\).*/{
454             s//\1/
455             q
456           }
457           s/.*/./; q'`
458
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
465
466
467   as_lineno_1=$LINENO as_lineno_1a=$LINENO
468   as_lineno_2=$LINENO as_lineno_2a=$LINENO
469   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
472   sed -n '
473     p
474     /[$]LINENO/=
475   ' <$as_myself |
476     sed '
477       s/[$]LINENO.*/&-/
478       t lineno
479       b
480       :lineno
481       N
482       :loop
483       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484       t loop
485       s/-\n.*//
486     ' >$as_me.lineno &&
487   chmod +x "$as_me.lineno" ||
488     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
489
490   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491   # already done that, so ensure we don't try to do so again and fall
492   # in an infinite loop.  This has already happened in practice.
493   _as_can_reexec=no; export _as_can_reexec
494   # Don't try to exec as it changes $[0], causing all sort of problems
495   # (the dirname of $[0] is not the place where we might find the
496   # original and so on.  Autoconf is especially sensitive to this).
497   . "./$as_me.lineno"
498   # Exit status is that of the last command.
499   exit
500 }
501
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505   case `echo 'xy\c'` in
506   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
507   xy)  ECHO_C='\c';;
508   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
509        ECHO_T=' ';;
510   esac;;
511 *)
512   ECHO_N='-n';;
513 esac
514
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517   rm -f conf$$.dir/conf$$.file
518 else
519   rm -f conf$$.dir
520   mkdir conf$$.dir 2>/dev/null
521 fi
522 if (echo >conf$$.file) 2>/dev/null; then
523   if ln -s conf$$.file conf$$ 2>/dev/null; then
524     as_ln_s='ln -s'
525     # ... but there are two gotchas:
526     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528     # In both cases, we have to default to `cp -pR'.
529     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530       as_ln_s='cp -pR'
531   elif ln conf$$.file conf$$ 2>/dev/null; then
532     as_ln_s=ln
533   else
534     as_ln_s='cp -pR'
535   fi
536 else
537   as_ln_s='cp -pR'
538 fi
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
541
542 if mkdir -p . 2>/dev/null; then
543   as_mkdir_p='mkdir -p "$as_dir"'
544 else
545   test -d ./-p && rmdir ./-p
546   as_mkdir_p=false
547 fi
548
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
551
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
558
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
561
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566
567 #
568 # Initializations.
569 #
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
578
579 # Identity of this package.
580 PACKAGE_NAME='TAToo'
581 PACKAGE_TARNAME='tatoo'
582 PACKAGE_VERSION='0.0.1'
583 PACKAGE_STRING='TAToo 0.0.1'
584 PACKAGE_BUGREPORT='Kim Nguyễn <kn@lri.fr>'
585 PACKAGE_URL=''
586
587 ac_subst_vars='LTLIBOBJS
588 LIBOBJS
589 CAMLP4FLAGS
590 OCAMLOPTFLAGS
591 OCAMLCFLAGS
592 OCAMLFLAGS
593 INLINE
594 REMAKE
595 OBJEXT
596 EXEEXT
597 ac_ct_CXX
598 CPPFLAGS
599 LDFLAGS
600 CXXFLAGS
601 CXX
602 EXE
603 OCAML_PLATFORM
604 CAMLP4
605 OCAMLLEX
606 OCAMLYACC
607 OCAMLVERSION
608 OCAMLDEP
609 OCAMLOPT
610 OCAMLC
611 OCAMLFIND
612 target_alias
613 host_alias
614 build_alias
615 LIBS
616 ECHO_T
617 ECHO_N
618 ECHO_C
619 DEFS
620 mandir
621 localedir
622 libdir
623 psdir
624 pdfdir
625 dvidir
626 htmldir
627 infodir
628 docdir
629 oldincludedir
630 includedir
631 localstatedir
632 sharedstatedir
633 sysconfdir
634 datadir
635 datarootdir
636 libexecdir
637 sbindir
638 bindir
639 program_transform_name
640 prefix
641 exec_prefix
642 PACKAGE_URL
643 PACKAGE_BUGREPORT
644 PACKAGE_STRING
645 PACKAGE_VERSION
646 PACKAGE_TARNAME
647 PACKAGE_NAME
648 PATH_SEPARATOR
649 SHELL'
650 ac_subst_files=''
651 ac_user_opts='
652 enable_option_checking
653 with_ocamlfind
654 with_ocamlyacc
655 with_ocamllex
656 with_camlp4
657 enable_debug
658 enable_profile
659 enable_trace
660 enable_inline
661 enable_unsafe
662 '
663       ac_precious_vars='build_alias
664 host_alias
665 target_alias
666 CXX
667 CXXFLAGS
668 LDFLAGS
669 LIBS
670 CPPFLAGS
671 CCC'
672
673
674 # Initialize some variables set by options.
675 ac_init_help=
676 ac_init_version=false
677 ac_unrecognized_opts=
678 ac_unrecognized_sep=
679 # The variables have the same names as the options, with
680 # dashes changed to underlines.
681 cache_file=/dev/null
682 exec_prefix=NONE
683 no_create=
684 no_recursion=
685 prefix=NONE
686 program_prefix=NONE
687 program_suffix=NONE
688 program_transform_name=s,x,x,
689 silent=
690 site=
691 srcdir=
692 verbose=
693 x_includes=NONE
694 x_libraries=NONE
695
696 # Installation directory options.
697 # These are left unexpanded so users can "make install exec_prefix=/foo"
698 # and all the variables that are supposed to be based on exec_prefix
699 # by default will actually change.
700 # Use braces instead of parens because sh, perl, etc. also accept them.
701 # (The list follows the same order as the GNU Coding Standards.)
702 bindir='${exec_prefix}/bin'
703 sbindir='${exec_prefix}/sbin'
704 libexecdir='${exec_prefix}/libexec'
705 datarootdir='${prefix}/share'
706 datadir='${datarootdir}'
707 sysconfdir='${prefix}/etc'
708 sharedstatedir='${prefix}/com'
709 localstatedir='${prefix}/var'
710 includedir='${prefix}/include'
711 oldincludedir='/usr/include'
712 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
713 infodir='${datarootdir}/info'
714 htmldir='${docdir}'
715 dvidir='${docdir}'
716 pdfdir='${docdir}'
717 psdir='${docdir}'
718 libdir='${exec_prefix}/lib'
719 localedir='${datarootdir}/locale'
720 mandir='${datarootdir}/man'
721
722 ac_prev=
723 ac_dashdash=
724 for ac_option
725 do
726   # If the previous option needs an argument, assign it.
727   if test -n "$ac_prev"; then
728     eval $ac_prev=\$ac_option
729     ac_prev=
730     continue
731   fi
732
733   case $ac_option in
734   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
735   *=)   ac_optarg= ;;
736   *)    ac_optarg=yes ;;
737   esac
738
739   # Accept the important Cygnus configure options, so we can diagnose typos.
740
741   case $ac_dashdash$ac_option in
742   --)
743     ac_dashdash=yes ;;
744
745   -bindir | --bindir | --bindi | --bind | --bin | --bi)
746     ac_prev=bindir ;;
747   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
748     bindir=$ac_optarg ;;
749
750   -build | --build | --buil | --bui | --bu)
751     ac_prev=build_alias ;;
752   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
753     build_alias=$ac_optarg ;;
754
755   -cache-file | --cache-file | --cache-fil | --cache-fi \
756   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
757     ac_prev=cache_file ;;
758   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
759   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
760     cache_file=$ac_optarg ;;
761
762   --config-cache | -C)
763     cache_file=config.cache ;;
764
765   -datadir | --datadir | --datadi | --datad)
766     ac_prev=datadir ;;
767   -datadir=* | --datadir=* | --datadi=* | --datad=*)
768     datadir=$ac_optarg ;;
769
770   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
771   | --dataroo | --dataro | --datar)
772     ac_prev=datarootdir ;;
773   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
774   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
775     datarootdir=$ac_optarg ;;
776
777   -disable-* | --disable-*)
778     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
779     # Reject names that are not valid shell variable names.
780     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
781       as_fn_error $? "invalid feature name: $ac_useropt"
782     ac_useropt_orig=$ac_useropt
783     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
784     case $ac_user_opts in
785       *"
786 "enable_$ac_useropt"
787 "*) ;;
788       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
789          ac_unrecognized_sep=', ';;
790     esac
791     eval enable_$ac_useropt=no ;;
792
793   -docdir | --docdir | --docdi | --doc | --do)
794     ac_prev=docdir ;;
795   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
796     docdir=$ac_optarg ;;
797
798   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
799     ac_prev=dvidir ;;
800   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
801     dvidir=$ac_optarg ;;
802
803   -enable-* | --enable-*)
804     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
805     # Reject names that are not valid shell variable names.
806     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
807       as_fn_error $? "invalid feature name: $ac_useropt"
808     ac_useropt_orig=$ac_useropt
809     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
810     case $ac_user_opts in
811       *"
812 "enable_$ac_useropt"
813 "*) ;;
814       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
815          ac_unrecognized_sep=', ';;
816     esac
817     eval enable_$ac_useropt=\$ac_optarg ;;
818
819   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
820   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
821   | --exec | --exe | --ex)
822     ac_prev=exec_prefix ;;
823   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
824   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
825   | --exec=* | --exe=* | --ex=*)
826     exec_prefix=$ac_optarg ;;
827
828   -gas | --gas | --ga | --g)
829     # Obsolete; use --with-gas.
830     with_gas=yes ;;
831
832   -help | --help | --hel | --he | -h)
833     ac_init_help=long ;;
834   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
835     ac_init_help=recursive ;;
836   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
837     ac_init_help=short ;;
838
839   -host | --host | --hos | --ho)
840     ac_prev=host_alias ;;
841   -host=* | --host=* | --hos=* | --ho=*)
842     host_alias=$ac_optarg ;;
843
844   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
845     ac_prev=htmldir ;;
846   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
847   | --ht=*)
848     htmldir=$ac_optarg ;;
849
850   -includedir | --includedir | --includedi | --included | --include \
851   | --includ | --inclu | --incl | --inc)
852     ac_prev=includedir ;;
853   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
854   | --includ=* | --inclu=* | --incl=* | --inc=*)
855     includedir=$ac_optarg ;;
856
857   -infodir | --infodir | --infodi | --infod | --info | --inf)
858     ac_prev=infodir ;;
859   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
860     infodir=$ac_optarg ;;
861
862   -libdir | --libdir | --libdi | --libd)
863     ac_prev=libdir ;;
864   -libdir=* | --libdir=* | --libdi=* | --libd=*)
865     libdir=$ac_optarg ;;
866
867   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
868   | --libexe | --libex | --libe)
869     ac_prev=libexecdir ;;
870   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
871   | --libexe=* | --libex=* | --libe=*)
872     libexecdir=$ac_optarg ;;
873
874   -localedir | --localedir | --localedi | --localed | --locale)
875     ac_prev=localedir ;;
876   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
877     localedir=$ac_optarg ;;
878
879   -localstatedir | --localstatedir | --localstatedi | --localstated \
880   | --localstate | --localstat | --localsta | --localst | --locals)
881     ac_prev=localstatedir ;;
882   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
883   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
884     localstatedir=$ac_optarg ;;
885
886   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
887     ac_prev=mandir ;;
888   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
889     mandir=$ac_optarg ;;
890
891   -nfp | --nfp | --nf)
892     # Obsolete; use --without-fp.
893     with_fp=no ;;
894
895   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
896   | --no-cr | --no-c | -n)
897     no_create=yes ;;
898
899   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
900   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
901     no_recursion=yes ;;
902
903   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
904   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
905   | --oldin | --oldi | --old | --ol | --o)
906     ac_prev=oldincludedir ;;
907   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
908   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
909   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
910     oldincludedir=$ac_optarg ;;
911
912   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
913     ac_prev=prefix ;;
914   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
915     prefix=$ac_optarg ;;
916
917   -program-prefix | --program-prefix | --program-prefi | --program-pref \
918   | --program-pre | --program-pr | --program-p)
919     ac_prev=program_prefix ;;
920   -program-prefix=* | --program-prefix=* | --program-prefi=* \
921   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
922     program_prefix=$ac_optarg ;;
923
924   -program-suffix | --program-suffix | --program-suffi | --program-suff \
925   | --program-suf | --program-su | --program-s)
926     ac_prev=program_suffix ;;
927   -program-suffix=* | --program-suffix=* | --program-suffi=* \
928   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
929     program_suffix=$ac_optarg ;;
930
931   -program-transform-name | --program-transform-name \
932   | --program-transform-nam | --program-transform-na \
933   | --program-transform-n | --program-transform- \
934   | --program-transform | --program-transfor \
935   | --program-transfo | --program-transf \
936   | --program-trans | --program-tran \
937   | --progr-tra | --program-tr | --program-t)
938     ac_prev=program_transform_name ;;
939   -program-transform-name=* | --program-transform-name=* \
940   | --program-transform-nam=* | --program-transform-na=* \
941   | --program-transform-n=* | --program-transform-=* \
942   | --program-transform=* | --program-transfor=* \
943   | --program-transfo=* | --program-transf=* \
944   | --program-trans=* | --program-tran=* \
945   | --progr-tra=* | --program-tr=* | --program-t=*)
946     program_transform_name=$ac_optarg ;;
947
948   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
949     ac_prev=pdfdir ;;
950   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
951     pdfdir=$ac_optarg ;;
952
953   -psdir | --psdir | --psdi | --psd | --ps)
954     ac_prev=psdir ;;
955   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
956     psdir=$ac_optarg ;;
957
958   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
959   | -silent | --silent | --silen | --sile | --sil)
960     silent=yes ;;
961
962   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
963     ac_prev=sbindir ;;
964   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
965   | --sbi=* | --sb=*)
966     sbindir=$ac_optarg ;;
967
968   -sharedstatedir | --sharedstatedir | --sharedstatedi \
969   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
970   | --sharedst | --shareds | --shared | --share | --shar \
971   | --sha | --sh)
972     ac_prev=sharedstatedir ;;
973   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
974   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
975   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
976   | --sha=* | --sh=*)
977     sharedstatedir=$ac_optarg ;;
978
979   -site | --site | --sit)
980     ac_prev=site ;;
981   -site=* | --site=* | --sit=*)
982     site=$ac_optarg ;;
983
984   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
985     ac_prev=srcdir ;;
986   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
987     srcdir=$ac_optarg ;;
988
989   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
990   | --syscon | --sysco | --sysc | --sys | --sy)
991     ac_prev=sysconfdir ;;
992   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
993   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
994     sysconfdir=$ac_optarg ;;
995
996   -target | --target | --targe | --targ | --tar | --ta | --t)
997     ac_prev=target_alias ;;
998   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
999     target_alias=$ac_optarg ;;
1000
1001   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1002     verbose=yes ;;
1003
1004   -version | --version | --versio | --versi | --vers | -V)
1005     ac_init_version=: ;;
1006
1007   -with-* | --with-*)
1008     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1009     # Reject names that are not valid shell variable names.
1010     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011       as_fn_error $? "invalid package name: $ac_useropt"
1012     ac_useropt_orig=$ac_useropt
1013     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014     case $ac_user_opts in
1015       *"
1016 "with_$ac_useropt"
1017 "*) ;;
1018       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1019          ac_unrecognized_sep=', ';;
1020     esac
1021     eval with_$ac_useropt=\$ac_optarg ;;
1022
1023   -without-* | --without-*)
1024     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027       as_fn_error $? "invalid package name: $ac_useropt"
1028     ac_useropt_orig=$ac_useropt
1029     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030     case $ac_user_opts in
1031       *"
1032 "with_$ac_useropt"
1033 "*) ;;
1034       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1035          ac_unrecognized_sep=', ';;
1036     esac
1037     eval with_$ac_useropt=no ;;
1038
1039   --x)
1040     # Obsolete; use --with-x.
1041     with_x=yes ;;
1042
1043   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1044   | --x-incl | --x-inc | --x-in | --x-i)
1045     ac_prev=x_includes ;;
1046   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1047   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1048     x_includes=$ac_optarg ;;
1049
1050   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1051   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1052     ac_prev=x_libraries ;;
1053   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1054   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1055     x_libraries=$ac_optarg ;;
1056
1057   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1058 Try \`$0 --help' for more information"
1059     ;;
1060
1061   *=*)
1062     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1063     # Reject names that are not valid shell variable names.
1064     case $ac_envvar in #(
1065       '' | [0-9]* | *[!_$as_cr_alnum]* )
1066       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1067     esac
1068     eval $ac_envvar=\$ac_optarg
1069     export $ac_envvar ;;
1070
1071   *)
1072     # FIXME: should be removed in autoconf 3.0.
1073     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1074     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1076     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1077     ;;
1078
1079   esac
1080 done
1081
1082 if test -n "$ac_prev"; then
1083   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1084   as_fn_error $? "missing argument to $ac_option"
1085 fi
1086
1087 if test -n "$ac_unrecognized_opts"; then
1088   case $enable_option_checking in
1089     no) ;;
1090     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1091     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1092   esac
1093 fi
1094
1095 # Check all directory arguments for consistency.
1096 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097                 datadir sysconfdir sharedstatedir localstatedir includedir \
1098                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099                 libdir localedir mandir
1100 do
1101   eval ac_val=\$$ac_var
1102   # Remove trailing slashes.
1103   case $ac_val in
1104     */ )
1105       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1106       eval $ac_var=\$ac_val;;
1107   esac
1108   # Be sure to have absolute directory names.
1109   case $ac_val in
1110     [\\/$]* | ?:[\\/]* )  continue;;
1111     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112   esac
1113   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1114 done
1115
1116 # There might be people who depend on the old broken behavior: `$host'
1117 # used to hold the argument of --host etc.
1118 # FIXME: To remove some day.
1119 build=$build_alias
1120 host=$host_alias
1121 target=$target_alias
1122
1123 # FIXME: To remove some day.
1124 if test "x$host_alias" != x; then
1125   if test "x$build_alias" = x; then
1126     cross_compiling=maybe
1127   elif test "x$build_alias" != "x$host_alias"; then
1128     cross_compiling=yes
1129   fi
1130 fi
1131
1132 ac_tool_prefix=
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1134
1135 test "$silent" = yes && exec 6>/dev/null
1136
1137
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141   as_fn_error $? "working directory cannot be determined"
1142 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1143   as_fn_error $? "pwd does not report name of working directory"
1144
1145
1146 # Find the source files, if location was not specified.
1147 if test -z "$srcdir"; then
1148   ac_srcdir_defaulted=yes
1149   # Try the directory containing this script, then the parent directory.
1150   ac_confdir=`$as_dirname -- "$as_myself" ||
1151 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1152          X"$as_myself" : 'X\(//\)[^/]' \| \
1153          X"$as_myself" : 'X\(//\)$' \| \
1154          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1155 $as_echo X"$as_myself" |
1156     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1157             s//\1/
1158             q
1159           }
1160           /^X\(\/\/\)[^/].*/{
1161             s//\1/
1162             q
1163           }
1164           /^X\(\/\/\)$/{
1165             s//\1/
1166             q
1167           }
1168           /^X\(\/\).*/{
1169             s//\1/
1170             q
1171           }
1172           s/.*/./; q'`
1173   srcdir=$ac_confdir
1174   if test ! -r "$srcdir/$ac_unique_file"; then
1175     srcdir=..
1176   fi
1177 else
1178   ac_srcdir_defaulted=no
1179 fi
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1182   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1183 fi
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 ac_abs_confdir=`(
1186         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1187         pwd)`
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
1190   srcdir=.
1191 fi
1192 # Remove unnecessary trailing slashes from srcdir.
1193 # Double slashes in file names in object file debugging info
1194 # mess up M-x gdb in Emacs.
1195 case $srcdir in
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1197 esac
1198 for ac_var in $ac_precious_vars; do
1199   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200   eval ac_env_${ac_var}_value=\$${ac_var}
1201   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1203 done
1204
1205 #
1206 # Report the --help message.
1207 #
1208 if test "$ac_init_help" = "long"; then
1209   # Omit some internal or obsolete options to make the list less imposing.
1210   # This message is too long to be a string in the A/UX 3.1 sh.
1211   cat <<_ACEOF
1212 \`configure' configures TAToo 0.0.1 to adapt to many kinds of systems.
1213
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
1215
1216 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217 VAR=VALUE.  See below for descriptions of some of the useful variables.
1218
1219 Defaults for the options are specified in brackets.
1220
1221 Configuration:
1222   -h, --help              display this help and exit
1223       --help=short        display options specific to this package
1224       --help=recursive    display the short help of all the included packages
1225   -V, --version           display version information and exit
1226   -q, --quiet, --silent   do not print \`checking ...' messages
1227       --cache-file=FILE   cache test results in FILE [disabled]
1228   -C, --config-cache      alias for \`--cache-file=config.cache'
1229   -n, --no-create         do not create output files
1230       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1231
1232 Installation directories:
1233   --prefix=PREFIX         install architecture-independent files in PREFIX
1234                           [$ac_default_prefix]
1235   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1236                           [PREFIX]
1237
1238 By default, \`make install' will install all the files in
1239 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1240 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241 for instance \`--prefix=\$HOME'.
1242
1243 For better control, use the options below.
1244
1245 Fine tuning of the installation directories:
1246   --bindir=DIR            user executables [EPREFIX/bin]
1247   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1248   --libexecdir=DIR        program executables [EPREFIX/libexec]
1249   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1250   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1251   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1252   --libdir=DIR            object code libraries [EPREFIX/lib]
1253   --includedir=DIR        C header files [PREFIX/include]
1254   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1255   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1256   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1257   --infodir=DIR           info documentation [DATAROOTDIR/info]
1258   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1259   --mandir=DIR            man documentation [DATAROOTDIR/man]
1260   --docdir=DIR            documentation root [DATAROOTDIR/doc/tatoo]
1261   --htmldir=DIR           html documentation [DOCDIR]
1262   --dvidir=DIR            dvi documentation [DOCDIR]
1263   --pdfdir=DIR            pdf documentation [DOCDIR]
1264   --psdir=DIR             ps documentation [DOCDIR]
1265 _ACEOF
1266
1267   cat <<\_ACEOF
1268 _ACEOF
1269 fi
1270
1271 if test -n "$ac_init_help"; then
1272   case $ac_init_help in
1273      short | recursive ) echo "Configuration of TAToo 0.0.1:";;
1274    esac
1275   cat <<\_ACEOF
1276
1277 Optional Features:
1278   --disable-option-checking  ignore unrecognized --enable/--with options
1279   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1280   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1281   --enable-debug          build in debug mode
1282   --enable-profile       compile in profiling code
1283   --enable-trace         add tracing code
1284   --enable-inline         set OCaml inlining level (default=100)
1285   --enable-unsafe         use unsafe array and string accesses
1286
1287 Optional Packages:
1288   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1289   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1290   --with-ocamlfind=PATH   location of the ocamlfind binary
1291   --with-ocamlyacc=PATH   location of the ocamlyacc binary
1292   --with-ocamllex=PATH    location of the ocamllex binary
1293   --with-camlp4=PATH      location of the camlp4 binary
1294
1295 Some influential environment variables:
1296   CXX         C++ compiler command
1297   CXXFLAGS    C++ compiler flags
1298   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1299               nonstandard directory <lib dir>
1300   LIBS        libraries to pass to the linker, e.g. -l<library>
1301   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1302               you have headers in a nonstandard directory <include dir>
1303
1304 Use these variables to override the choices made by `configure' or to help
1305 it to find libraries and programs with nonstandard names/locations.
1306
1307 Report bugs to <Kim Nguyễn <kn@lri.fr>>.
1308 _ACEOF
1309 ac_status=$?
1310 fi
1311
1312 if test "$ac_init_help" = "recursive"; then
1313   # If there are subdirs, report their specific --help.
1314   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1315     test -d "$ac_dir" ||
1316       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1317       continue
1318     ac_builddir=.
1319
1320 case "$ac_dir" in
1321 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1322 *)
1323   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1324   # A ".." for each directory in $ac_dir_suffix.
1325   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1326   case $ac_top_builddir_sub in
1327   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1328   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1329   esac ;;
1330 esac
1331 ac_abs_top_builddir=$ac_pwd
1332 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1333 # for backward compatibility:
1334 ac_top_builddir=$ac_top_build_prefix
1335
1336 case $srcdir in
1337   .)  # We are building in place.
1338     ac_srcdir=.
1339     ac_top_srcdir=$ac_top_builddir_sub
1340     ac_abs_top_srcdir=$ac_pwd ;;
1341   [\\/]* | ?:[\\/]* )  # Absolute name.
1342     ac_srcdir=$srcdir$ac_dir_suffix;
1343     ac_top_srcdir=$srcdir
1344     ac_abs_top_srcdir=$srcdir ;;
1345   *) # Relative name.
1346     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1347     ac_top_srcdir=$ac_top_build_prefix$srcdir
1348     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1349 esac
1350 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1351
1352     cd "$ac_dir" || { ac_status=$?; continue; }
1353     # Check for guested configure.
1354     if test -f "$ac_srcdir/configure.gnu"; then
1355       echo &&
1356       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1357     elif test -f "$ac_srcdir/configure"; then
1358       echo &&
1359       $SHELL "$ac_srcdir/configure" --help=recursive
1360     else
1361       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1362     fi || ac_status=$?
1363     cd "$ac_pwd" || { ac_status=$?; break; }
1364   done
1365 fi
1366
1367 test -n "$ac_init_help" && exit $ac_status
1368 if $ac_init_version; then
1369   cat <<\_ACEOF
1370 TAToo configure 0.0.1
1371 generated by GNU Autoconf 2.69
1372
1373 Copyright (C) 2012 Free Software Foundation, Inc.
1374 This configure script is free software; the Free Software Foundation
1375 gives unlimited permission to copy, distribute and modify it.
1376 _ACEOF
1377   exit
1378 fi
1379
1380 ## ------------------------ ##
1381 ## Autoconf initialization. ##
1382 ## ------------------------ ##
1383
1384 # ac_fn_cxx_try_compile LINENO
1385 # ----------------------------
1386 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1387 ac_fn_cxx_try_compile ()
1388 {
1389   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1390   rm -f conftest.$ac_objext
1391   if { { ac_try="$ac_compile"
1392 case "(($ac_try" in
1393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1394   *) ac_try_echo=$ac_try;;
1395 esac
1396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1397 $as_echo "$ac_try_echo"; } >&5
1398   (eval "$ac_compile") 2>conftest.err
1399   ac_status=$?
1400   if test -s conftest.err; then
1401     grep -v '^ *+' conftest.err >conftest.er1
1402     cat conftest.er1 >&5
1403     mv -f conftest.er1 conftest.err
1404   fi
1405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1406   test $ac_status = 0; } && {
1407          test -z "$ac_cxx_werror_flag" ||
1408          test ! -s conftest.err
1409        } && test -s conftest.$ac_objext; then :
1410   ac_retval=0
1411 else
1412   $as_echo "$as_me: failed program was:" >&5
1413 sed 's/^/| /' conftest.$ac_ext >&5
1414
1415         ac_retval=1
1416 fi
1417   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1418   as_fn_set_status $ac_retval
1419
1420 } # ac_fn_cxx_try_compile
1421 cat >config.log <<_ACEOF
1422 This file contains any messages produced by compilers while
1423 running configure, to aid debugging if configure makes a mistake.
1424
1425 It was created by TAToo $as_me 0.0.1, which was
1426 generated by GNU Autoconf 2.69.  Invocation command line was
1427
1428   $ $0 $@
1429
1430 _ACEOF
1431 exec 5>>config.log
1432 {
1433 cat <<_ASUNAME
1434 ## --------- ##
1435 ## Platform. ##
1436 ## --------- ##
1437
1438 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1439 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1440 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1441 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1442 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443
1444 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1445 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1446
1447 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1448 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1449 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1450 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1451 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1452 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1453 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1454
1455 _ASUNAME
1456
1457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458 for as_dir in $PATH
1459 do
1460   IFS=$as_save_IFS
1461   test -z "$as_dir" && as_dir=.
1462     $as_echo "PATH: $as_dir"
1463   done
1464 IFS=$as_save_IFS
1465
1466 } >&5
1467
1468 cat >&5 <<_ACEOF
1469
1470
1471 ## ----------- ##
1472 ## Core tests. ##
1473 ## ----------- ##
1474
1475 _ACEOF
1476
1477
1478 # Keep a trace of the command line.
1479 # Strip out --no-create and --no-recursion so they do not pile up.
1480 # Strip out --silent because we don't want to record it for future runs.
1481 # Also quote any args containing shell meta-characters.
1482 # Make two passes to allow for proper duplicate-argument suppression.
1483 ac_configure_args=
1484 ac_configure_args0=
1485 ac_configure_args1=
1486 ac_must_keep_next=false
1487 for ac_pass in 1 2
1488 do
1489   for ac_arg
1490   do
1491     case $ac_arg in
1492     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1493     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1494     | -silent | --silent | --silen | --sile | --sil)
1495       continue ;;
1496     *\'*)
1497       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1498     esac
1499     case $ac_pass in
1500     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1501     2)
1502       as_fn_append ac_configure_args1 " '$ac_arg'"
1503       if test $ac_must_keep_next = true; then
1504         ac_must_keep_next=false # Got value, back to normal.
1505       else
1506         case $ac_arg in
1507           *=* | --config-cache | -C | -disable-* | --disable-* \
1508           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1509           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1510           | -with-* | --with-* | -without-* | --without-* | --x)
1511             case "$ac_configure_args0 " in
1512               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1513             esac
1514             ;;
1515           -* ) ac_must_keep_next=true ;;
1516         esac
1517       fi
1518       as_fn_append ac_configure_args " '$ac_arg'"
1519       ;;
1520     esac
1521   done
1522 done
1523 { ac_configure_args0=; unset ac_configure_args0;}
1524 { ac_configure_args1=; unset ac_configure_args1;}
1525
1526 # When interrupted or exit'd, cleanup temporary files, and complete
1527 # config.log.  We remove comments because anyway the quotes in there
1528 # would cause problems or look ugly.
1529 # WARNING: Use '\'' to represent an apostrophe within the trap.
1530 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1531 trap 'exit_status=$?
1532   # Save into config.log some information that might help in debugging.
1533   {
1534     echo
1535
1536     $as_echo "## ---------------- ##
1537 ## Cache variables. ##
1538 ## ---------------- ##"
1539     echo
1540     # The following way of writing the cache mishandles newlines in values,
1541 (
1542   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1543     eval ac_val=\$$ac_var
1544     case $ac_val in #(
1545     *${as_nl}*)
1546       case $ac_var in #(
1547       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1549       esac
1550       case $ac_var in #(
1551       _ | IFS | as_nl) ;; #(
1552       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1553       *) { eval $ac_var=; unset $ac_var;} ;;
1554       esac ;;
1555     esac
1556   done
1557   (set) 2>&1 |
1558     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1559     *${as_nl}ac_space=\ *)
1560       sed -n \
1561         "s/'\''/'\''\\\\'\'''\''/g;
1562           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1563       ;; #(
1564     *)
1565       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1566       ;;
1567     esac |
1568     sort
1569 )
1570     echo
1571
1572     $as_echo "## ----------------- ##
1573 ## Output variables. ##
1574 ## ----------------- ##"
1575     echo
1576     for ac_var in $ac_subst_vars
1577     do
1578       eval ac_val=\$$ac_var
1579       case $ac_val in
1580       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1581       esac
1582       $as_echo "$ac_var='\''$ac_val'\''"
1583     done | sort
1584     echo
1585
1586     if test -n "$ac_subst_files"; then
1587       $as_echo "## ------------------- ##
1588 ## File substitutions. ##
1589 ## ------------------- ##"
1590       echo
1591       for ac_var in $ac_subst_files
1592       do
1593         eval ac_val=\$$ac_var
1594         case $ac_val in
1595         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596         esac
1597         $as_echo "$ac_var='\''$ac_val'\''"
1598       done | sort
1599       echo
1600     fi
1601
1602     if test -s confdefs.h; then
1603       $as_echo "## ----------- ##
1604 ## confdefs.h. ##
1605 ## ----------- ##"
1606       echo
1607       cat confdefs.h
1608       echo
1609     fi
1610     test "$ac_signal" != 0 &&
1611       $as_echo "$as_me: caught signal $ac_signal"
1612     $as_echo "$as_me: exit $exit_status"
1613   } >&5
1614   rm -f core *.core core.conftest.* &&
1615     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1616     exit $exit_status
1617 ' 0
1618 for ac_signal in 1 2 13 15; do
1619   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1620 done
1621 ac_signal=0
1622
1623 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1624 rm -f -r conftest* confdefs.h
1625
1626 $as_echo "/* confdefs.h */" > confdefs.h
1627
1628 # Predefined preprocessor variables.
1629
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_NAME "$PACKAGE_NAME"
1632 _ACEOF
1633
1634 cat >>confdefs.h <<_ACEOF
1635 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1636 _ACEOF
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1640 _ACEOF
1641
1642 cat >>confdefs.h <<_ACEOF
1643 #define PACKAGE_STRING "$PACKAGE_STRING"
1644 _ACEOF
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648 _ACEOF
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_URL "$PACKAGE_URL"
1652 _ACEOF
1653
1654
1655 # Let the site file select an alternate cache file if it wants to.
1656 # Prefer an explicitly selected file to automatically selected ones.
1657 ac_site_file1=NONE
1658 ac_site_file2=NONE
1659 if test -n "$CONFIG_SITE"; then
1660   # We do not want a PATH search for config.site.
1661   case $CONFIG_SITE in #((
1662     -*)  ac_site_file1=./$CONFIG_SITE;;
1663     */*) ac_site_file1=$CONFIG_SITE;;
1664     *)   ac_site_file1=./$CONFIG_SITE;;
1665   esac
1666 elif test "x$prefix" != xNONE; then
1667   ac_site_file1=$prefix/share/config.site
1668   ac_site_file2=$prefix/etc/config.site
1669 else
1670   ac_site_file1=$ac_default_prefix/share/config.site
1671   ac_site_file2=$ac_default_prefix/etc/config.site
1672 fi
1673 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1674 do
1675   test "x$ac_site_file" = xNONE && continue
1676   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1677     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1678 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1679     sed 's/^/| /' "$ac_site_file" >&5
1680     . "$ac_site_file" \
1681       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1683 as_fn_error $? "failed to load site script $ac_site_file
1684 See \`config.log' for more details" "$LINENO" 5; }
1685   fi
1686 done
1687
1688 if test -r "$cache_file"; then
1689   # Some versions of bash will fail to source /dev/null (special files
1690   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1691   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1692     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1693 $as_echo "$as_me: loading cache $cache_file" >&6;}
1694     case $cache_file in
1695       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1696       *)                      . "./$cache_file";;
1697     esac
1698   fi
1699 else
1700   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1701 $as_echo "$as_me: creating cache $cache_file" >&6;}
1702   >$cache_file
1703 fi
1704
1705 # Check that the precious variables saved in the cache have kept the same
1706 # value.
1707 ac_cache_corrupted=false
1708 for ac_var in $ac_precious_vars; do
1709   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1710   eval ac_new_set=\$ac_env_${ac_var}_set
1711   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1712   eval ac_new_val=\$ac_env_${ac_var}_value
1713   case $ac_old_set,$ac_new_set in
1714     set,)
1715       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1716 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1717       ac_cache_corrupted=: ;;
1718     ,set)
1719       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1720 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1721       ac_cache_corrupted=: ;;
1722     ,);;
1723     *)
1724       if test "x$ac_old_val" != "x$ac_new_val"; then
1725         # differences in whitespace do not lead to failure.
1726         ac_old_val_w=`echo x $ac_old_val`
1727         ac_new_val_w=`echo x $ac_new_val`
1728         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1729           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1730 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1731           ac_cache_corrupted=:
1732         else
1733           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1734 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1735           eval $ac_var=\$ac_old_val
1736         fi
1737         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1738 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1739         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1740 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1741       fi;;
1742   esac
1743   # Pass precious variables to config.status.
1744   if test "$ac_new_set" = set; then
1745     case $ac_new_val in
1746     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1747     *) ac_arg=$ac_var=$ac_new_val ;;
1748     esac
1749     case " $ac_configure_args " in
1750       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1751       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1752     esac
1753   fi
1754 done
1755 if $ac_cache_corrupted; then
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1759 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1760   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1761 fi
1762 ## -------------------- ##
1763 ## Main body of script. ##
1764 ## -------------------- ##
1765
1766 ac_ext=c
1767 ac_cpp='$CPP $CPPFLAGS'
1768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771
1772
1773
1774 #detect ocamlfind
1775 OCAMLFIND=ocamlfind
1776
1777 # Check whether --with-ocamlfind was given.
1778 if test "${with_ocamlfind+set}" = set; then :
1779   withval=$with_ocamlfind; OCAMLFIND="$withval"
1780 fi
1781
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ocamlfind ($OCAMLFIND)" >&5
1783 $as_echo_n "checking for ocamlfind ($OCAMLFIND)... " >&6; }
1784 $OCAMLFIND list >/dev/null 2>&1
1785 if test $? ; then
1786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
1787 $as_echo "found" >&6; }
1788    OCAMLC="$OCAMLFIND ocamlc"
1789    OCAMLOPT="$OCAMLFIND ocamlopt"
1790    OCAMLDEP="$OCAMLFIND ocamldep"
1791 else
1792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
1793 $as_echo "not found" >&6; }
1794    as_fn_error $? "Cannot find ocamlfind." "$LINENO" 5
1795 fi
1796
1797
1798
1799 #check ocamlc
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OCAMLC" >&5
1801 $as_echo_n "checking for $OCAMLC... " >&6; }
1802 $OCAMLC >/dev/null 2>&1
1803 if test $? ; then
1804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1805 $as_echo "ok" >&6; }
1806 else
1807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1808 $as_echo "failed" >&6; }
1809         as_fn_error $? "Cannot find ocamlc." "$LINENO" 5
1810 fi
1811
1812
1813 #check ocamlopt
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OCAMLOPT" >&5
1815 $as_echo_n "checking for $OCAMLOPT... " >&6; }
1816 $OCAMLOPT >/dev/null 2>&1
1817 if test $? ; then
1818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1819 $as_echo "ok" >&6; }
1820 else
1821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1822 $as_echo "failed" >&6; }
1823         as_fn_error $? "Cannot find ocamlopt." "$LINENO" 5
1824 fi
1825
1826
1827 #check ocamldep
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $OCAMLDEP" >&5
1829 $as_echo_n "checking for $OCAMLDEP... " >&6; }
1830 $OCAMLDEP >/dev/null 2>&1
1831 if test $? ; then
1832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1833 $as_echo "ok" >&6; }
1834 else
1835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1836 $as_echo "failed" >&6; }
1837         as_fn_error $? "Cannot find ocamldep." "$LINENO" 5
1838 fi
1839
1840
1841 #ocaml version
1842 OCAMLVERSION=$($OCAMLC -version)
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ocaml version" >&5
1844 $as_echo_n "checking ocaml version... " >&6; }
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLVERSION" >&5
1846 $as_echo "$OCAMLVERSION" >&6; }
1847
1848 case "$OCAMLVERSION" in
1849      3.12.*) ;; 4.*) ;;
1850      *) as_fn_error $? "OCaml $OCAMLVERSION is too old" "$LINENO" 5
1851      ;;
1852 esac
1853
1854
1855
1856 #detect ocamlyacc
1857 OCAMLYACC=ocamlyacc
1858
1859 # Check whether --with-ocamlyacc was given.
1860 if test "${with_ocamlyacc+set}" = set; then :
1861   withval=$with_ocamlyacc; OCAMLYACC="$withval"
1862 fi
1863
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ocamlyacc ($OCAMLYACC)" >&5
1865 $as_echo_n "checking for ocamlyacc ($OCAMLYACC)... " >&6; }
1866 OCAMLYACC_VERSION=$($OCAMLYACC -version 2>/dev/null || echo foo)
1867 case "$OCAMLYACC_VERSION" in
1868      *$OCAMLVERSION)
1869      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1870 $as_echo "ok" >&6; }
1871      ;;
1872      foo)
1873      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1874 $as_echo "failed" >&6; }
1875      as_fn_error $? "Cannot find ocamlyacc" "$LINENO" 5
1876      ;;
1877      *)
1878      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1879 $as_echo "failed" >&6; }
1880      as_fn_error $? "Bad ocamlyacc version" "$LINENO" 5
1881      ;;
1882 esac
1883
1884
1885 #detect ocamllex
1886 OCAMLLEX=ocamllex
1887
1888 # Check whether --with-ocamllex was given.
1889 if test "${with_ocamllex+set}" = set; then :
1890   withval=$with_ocamllex; OCAMLLEX="$withval"
1891 fi
1892
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ocamllex ($OCAMLLEX)" >&5
1894 $as_echo_n "checking for ocamllex ($OCAMLLEX)... " >&6; }
1895 OCAMLLEX_VERSION=$($OCAMLLEX -version 2>/dev/null || echo foo)
1896 case "$OCAMLLEX_VERSION" in
1897      *$OCAMLVERSION)
1898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1899 $as_echo "ok" >&6; }
1900      ;;
1901      foo)
1902      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1903 $as_echo "failed" >&6; }
1904      as_fn_error $? "Cannot find ocamllex" "$LINENO" 5
1905      ;;
1906      *)
1907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1908 $as_echo "failed" >&6; }
1909      as_fn_error $? "Bad ocamllex version" "$LINENO" 5
1910      ;;
1911 esac
1912
1913
1914
1915 #detect camlp4
1916 CAMLP4=camlp4
1917
1918 # Check whether --with-camlp4 was given.
1919 if test "${with_camlp4+set}" = set; then :
1920   withval=$with_camlp4; CAMLP4="$withval"
1921 fi
1922
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for camlp4 ($CAMLP4)" >&5
1924 $as_echo_n "checking for camlp4 ($CAMLP4)... " >&6; }
1925 CAMLP4_VERSION=$($CAMLP4 -version 2>/dev/null || echo foo)
1926 case "$CAMLP4_VERSION" in
1927      *$OCAMLVERSION)
1928      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
1929 $as_echo "ok" >&6; }
1930      ;;
1931      foo)
1932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1933 $as_echo "failed" >&6; }
1934      as_fn_error $? "Cannot find camlp4" "$LINENO" 5
1935      ;;
1936      *)
1937      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
1938 $as_echo "failed" >&6; }
1939      as_fn_error $? "Bad camlp4 version" "$LINENO" 5
1940      ;;
1941 esac
1942
1943
1944 # platform
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5
1946 $as_echo_n "checking platform... " >&6; }
1947 OCAML_PLATFORM=$(echo 'print_endline Sys.os_type;;' | ocaml -noprompt | grep '^[A-Z]')
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAML_PLATFORM" >&5
1949 $as_echo "$OCAML_PLATFORM" >&6; }
1950 if test "$OCAML_PLATFORM" = "Win32"; then
1951          EXE=.exe
1952 else
1953          EXE=
1954 fi
1955
1956
1957
1958 # required libraries
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulex" >&5
1960 $as_echo_n "checking for ulex... " >&6; }
1961 ulex_path=`$OCAMLFIND query ulex 2>/dev/null`
1962 if test "$ulex_path" ; then
1963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
1964 $as_echo "found" >&6; }
1965 else
1966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
1967 $as_echo "not found" >&6; }
1968    as_fn_error $? "Cannot find ulex." "$LINENO" 5
1969 fi
1970
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expat" >&5
1972 $as_echo_n "checking for expat... " >&6; }
1973 expat_path=`$OCAMLFIND query expat 2>/dev/null`
1974 if test "$expat_path" ; then
1975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
1976 $as_echo "found" >&6; }
1977 else
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
1979 $as_echo "not found" >&6; }
1980    as_fn_error $? "Cannot find expat." "$LINENO" 5
1981 fi
1982
1983 #compilation options
1984 #debugging mode
1985 OCAMLFLAGS=$OCAMLFLAGS
1986 CAMLP4FLAGS=$CAMLP4FLAGS
1987 OCAMLCFLAGS=$OCAMLCFLAGS
1988 OCAMLOPTFLAGS=$OCAMLOPTFLAGS
1989
1990 # Check whether --enable-debug was given.
1991 if test "${enable_debug+set}" = set; then :
1992   enableval=$enable_debug; DEBUG=$enableval
1993 else
1994   DEBUG=no
1995 fi
1996
1997
1998 if test "x$DEBUG" = "xyes"; then
1999    OCAMLFLAGS="$OCAMLFLAGS -g"
2000    CAMLP4FLAGS="$CAMLP4FLAGS -DDEBUG"
2001 fi
2002
2003 #profiling
2004 # Check whether --enable-profile was given.
2005 if test "${enable_profile+set}" = set; then :
2006   enableval=$enable_profile; PROFILE=$enableval
2007 else
2008   PROFILE=no
2009 fi
2010
2011
2012 if test "x$PROFILE" = "xyes"; then
2013    OCAMLOPTFLAGS="$OCAMLOPTFLAGS -p"
2014    OCAMLC="$OCAMLFIND ocamlcp"
2015 fi
2016
2017 #tracing code
2018 # Check whether --enable-trace was given.
2019 if test "${enable_trace+set}" = set; then :
2020   enableval=$enable_trace; TRACE=$enableval
2021 else
2022   TRACE=no
2023 fi
2024
2025
2026 if test "x$TRACE" = "xyes"; then
2027    CAMLP4FLAGS="$CAMLP4FLAGS -DHTMLTRACE"
2028 fi
2029
2030 #inlining
2031
2032 # Check whether --enable-inline was given.
2033 if test "${enable_inline+set}" = set; then :
2034   enableval=$enable_inline; INLINE=$enableval
2035 else
2036   INLINE=100
2037 fi
2038
2039
2040 #unsafe
2041 # Check whether --enable-unsafe was given.
2042 if test "${enable_unsafe+set}" = set; then :
2043   enableval=$enable_unsafe; UNSAFE=1
2044 else
2045   UNSAFE=0
2046 fi
2047
2048
2049 if test "x$UNSAFE" = "xyes"; then
2050    CAMLP4FLAGS="$CAMLP4FLAGS -unsafe"
2051 fi
2052
2053
2054 ac_ext=cpp
2055 ac_cpp='$CXXCPP $CPPFLAGS'
2056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2059 if test -z "$CXX"; then
2060   if test -n "$CCC"; then
2061     CXX=$CCC
2062   else
2063     if test -n "$ac_tool_prefix"; then
2064   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2065   do
2066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if ${ac_cv_prog_CXX+:} false; then :
2071   $as_echo_n "(cached) " >&6
2072 else
2073   if test -n "$CXX"; then
2074   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081     for ac_exec_ext in '' $ac_executable_extensions; do
2082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088   done
2089 IFS=$as_save_IFS
2090
2091 fi
2092 fi
2093 CXX=$ac_cv_prog_CXX
2094 if test -n "$CXX"; then
2095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2096 $as_echo "$CXX" >&6; }
2097 else
2098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2099 $as_echo "no" >&6; }
2100 fi
2101
2102
2103     test -n "$CXX" && break
2104   done
2105 fi
2106 if test -z "$CXX"; then
2107   ac_ct_CXX=$CXX
2108   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2109 do
2110   # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2115   $as_echo_n "(cached) " >&6
2116 else
2117   if test -n "$ac_ct_CXX"; then
2118   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123   IFS=$as_save_IFS
2124   test -z "$as_dir" && as_dir=.
2125     for ac_exec_ext in '' $ac_executable_extensions; do
2126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127     ac_cv_prog_ac_ct_CXX="$ac_prog"
2128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2129     break 2
2130   fi
2131 done
2132   done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2138 if test -n "$ac_ct_CXX"; then
2139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2140 $as_echo "$ac_ct_CXX" >&6; }
2141 else
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2143 $as_echo "no" >&6; }
2144 fi
2145
2146
2147   test -n "$ac_ct_CXX" && break
2148 done
2149
2150   if test "x$ac_ct_CXX" = x; then
2151     CXX="g++"
2152   else
2153     case $cross_compiling:$ac_tool_warned in
2154 yes:)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2157 ac_tool_warned=yes ;;
2158 esac
2159     CXX=$ac_ct_CXX
2160   fi
2161 fi
2162
2163   fi
2164 fi
2165 # Provide some information about the compiler.
2166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2167 set X $ac_compile
2168 ac_compiler=$2
2169 for ac_option in --version -v -V -qversion; do
2170   { { ac_try="$ac_compiler $ac_option >&5"
2171 case "(($ac_try" in
2172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173   *) ac_try_echo=$ac_try;;
2174 esac
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2178   ac_status=$?
2179   if test -s conftest.err; then
2180     sed '10a\
2181 ... rest of stderr output deleted ...
2182          10q' conftest.err >conftest.er1
2183     cat conftest.er1 >&5
2184   fi
2185   rm -f conftest.er1 conftest.err
2186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187   test $ac_status = 0; }
2188 done
2189
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192
2193 int
2194 main ()
2195 {
2196
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 ac_clean_files_save=$ac_clean_files
2202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2203 # Try to create an executable without -o first, disregard a.out.
2204 # It will help us diagnose broken compilers, and finding out an intuition
2205 # of exeext.
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2207 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2208 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2209
2210 # The possible output files:
2211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2212
2213 ac_rmfiles=
2214 for ac_file in $ac_files
2215 do
2216   case $ac_file in
2217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2218     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2219   esac
2220 done
2221 rm -f $ac_rmfiles
2222
2223 if { { ac_try="$ac_link_default"
2224 case "(($ac_try" in
2225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226   *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230   (eval "$ac_link_default") 2>&5
2231   ac_status=$?
2232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233   test $ac_status = 0; }; then :
2234   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2236 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2237 # so that the user can short-circuit this test for compilers unknown to
2238 # Autoconf.
2239 for ac_file in $ac_files ''
2240 do
2241   test -f "$ac_file" || continue
2242   case $ac_file in
2243     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2244         ;;
2245     [ab].out )
2246         # We found the default executable, but exeext='' is most
2247         # certainly right.
2248         break;;
2249     *.* )
2250         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2251         then :; else
2252            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253         fi
2254         # We set ac_cv_exeext here because the later test for it is not
2255         # safe: cross compilers may not add the suffix if given an `-o'
2256         # argument, so we may need to know it at that point already.
2257         # Even if this section looks crufty: it has the advantage of
2258         # actually working.
2259         break;;
2260     * )
2261         break;;
2262   esac
2263 done
2264 test "$ac_cv_exeext" = no && ac_cv_exeext=
2265
2266 else
2267   ac_file=''
2268 fi
2269 if test -z "$ac_file"; then :
2270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2271 $as_echo "no" >&6; }
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277 as_fn_error 77 "C++ compiler cannot create executables
2278 See \`config.log' for more details" "$LINENO" 5; }
2279 else
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2281 $as_echo "yes" >&6; }
2282 fi
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2284 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2286 $as_echo "$ac_file" >&6; }
2287 ac_exeext=$ac_cv_exeext
2288
2289 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2290 ac_clean_files=$ac_clean_files_save
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2292 $as_echo_n "checking for suffix of executables... " >&6; }
2293 if { { ac_try="$ac_link"
2294 case "(($ac_try" in
2295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296   *) ac_try_echo=$ac_try;;
2297 esac
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300   (eval "$ac_link") 2>&5
2301   ac_status=$?
2302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303   test $ac_status = 0; }; then :
2304   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2305 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2306 # work properly (i.e., refer to `conftest.exe'), while it won't with
2307 # `rm'.
2308 for ac_file in conftest.exe conftest conftest.*; do
2309   test -f "$ac_file" || continue
2310   case $ac_file in
2311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2312     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2313           break;;
2314     * ) break;;
2315   esac
2316 done
2317 else
2318   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2321 See \`config.log' for more details" "$LINENO" 5; }
2322 fi
2323 rm -f conftest conftest$ac_cv_exeext
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2325 $as_echo "$ac_cv_exeext" >&6; }
2326
2327 rm -f conftest.$ac_ext
2328 EXEEXT=$ac_cv_exeext
2329 ac_exeext=$EXEEXT
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 #include <stdio.h>
2333 int
2334 main ()
2335 {
2336 FILE *f = fopen ("conftest.out", "w");
2337  return ferror (f) || fclose (f) != 0;
2338
2339   ;
2340   return 0;
2341 }
2342 _ACEOF
2343 ac_clean_files="$ac_clean_files conftest.out"
2344 # Check that the compiler produces executables we can run.  If not, either
2345 # the compiler is broken, or we cross compile.
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2347 $as_echo_n "checking whether we are cross compiling... " >&6; }
2348 if test "$cross_compiling" != yes; then
2349   { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356   (eval "$ac_link") 2>&5
2357   ac_status=$?
2358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2359   test $ac_status = 0; }
2360   if { ac_try='./conftest$ac_cv_exeext'
2361   { { case "(($ac_try" in
2362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363   *) ac_try_echo=$ac_try;;
2364 esac
2365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2366 $as_echo "$ac_try_echo"; } >&5
2367   (eval "$ac_try") 2>&5
2368   ac_status=$?
2369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2370   test $ac_status = 0; }; }; then
2371     cross_compiling=no
2372   else
2373     if test "$cross_compiling" = maybe; then
2374         cross_compiling=yes
2375     else
2376         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 as_fn_error $? "cannot run C++ compiled programs.
2379 If you meant to cross compile, use \`--host'.
2380 See \`config.log' for more details" "$LINENO" 5; }
2381     fi
2382   fi
2383 fi
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2385 $as_echo "$cross_compiling" >&6; }
2386
2387 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2388 ac_clean_files=$ac_clean_files_save
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2390 $as_echo_n "checking for suffix of object files... " >&6; }
2391 if ${ac_cv_objext+:} false; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h.  */
2396
2397 int
2398 main ()
2399 {
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 rm -f conftest.o conftest.obj
2406 if { { ac_try="$ac_compile"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2412 $as_echo "$ac_try_echo"; } >&5
2413   (eval "$ac_compile") 2>&5
2414   ac_status=$?
2415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416   test $ac_status = 0; }; then :
2417   for ac_file in conftest.o conftest.obj conftest.*; do
2418   test -f "$ac_file" || continue;
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2421     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2422        break;;
2423   esac
2424 done
2425 else
2426   $as_echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 as_fn_error $? "cannot compute suffix of object files: cannot compile
2432 See \`config.log' for more details" "$LINENO" 5; }
2433 fi
2434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2435 fi
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2437 $as_echo "$ac_cv_objext" >&6; }
2438 OBJEXT=$ac_cv_objext
2439 ac_objext=$OBJEXT
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2441 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2442 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451 #ifndef __GNUC__
2452        choke me
2453 #endif
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_cxx_try_compile "$LINENO"; then :
2460   ac_compiler_gnu=yes
2461 else
2462   ac_compiler_gnu=no
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2466
2467 fi
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2469 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2470 if test $ac_compiler_gnu = yes; then
2471   GXX=yes
2472 else
2473   GXX=
2474 fi
2475 ac_test_CXXFLAGS=${CXXFLAGS+set}
2476 ac_save_CXXFLAGS=$CXXFLAGS
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2478 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2479 if ${ac_cv_prog_cxx_g+:} false; then :
2480   $as_echo_n "(cached) " >&6
2481 else
2482   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2483    ac_cxx_werror_flag=yes
2484    ac_cv_prog_cxx_g=no
2485    CXXFLAGS="-g"
2486    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488
2489 int
2490 main ()
2491 {
2492
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 if ac_fn_cxx_try_compile "$LINENO"; then :
2498   ac_cv_prog_cxx_g=yes
2499 else
2500   CXXFLAGS=""
2501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h.  */
2503
2504 int
2505 main ()
2506 {
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 if ac_fn_cxx_try_compile "$LINENO"; then :
2513
2514 else
2515   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2516          CXXFLAGS="-g"
2517          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h.  */
2519
2520 int
2521 main ()
2522 {
2523
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_cxx_try_compile "$LINENO"; then :
2529   ac_cv_prog_cxx_g=yes
2530 fi
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 fi
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534 fi
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2539 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2540 if test "$ac_test_CXXFLAGS" = set; then
2541   CXXFLAGS=$ac_save_CXXFLAGS
2542 elif test $ac_cv_prog_cxx_g = yes; then
2543   if test "$GXX" = yes; then
2544     CXXFLAGS="-g -O2"
2545   else
2546     CXXFLAGS="-g"
2547   fi
2548 else
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-O2"
2551   else
2552     CXXFLAGS=
2553   fi
2554 fi
2555 ac_ext=c
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560
2561
2562
2563 REMAKE=./remake$EXE
2564
2565 if test ! -x  "$REMAKE" -o "$REMAKE" -ot remake.cpp; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $REMAKE" >&5
2567 $as_echo "$as_me: creating $REMAKE" >&6;}
2568 REMAKE_LOG=build_remake.log
2569 case $(uname -s) in
2570 MINGW*)
2571         $CXX -Wall -O2 -o remake.exe remake.cpp -lws2_32 > "$REMAKE_LOG" 2>&1
2572         if test $? != 0; then
2573            cat "$REMAKE_LOG"; rm -f "$REMAKE_LOG";
2574            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 as_fn_error $? "failed
2577 See \`config.log' for more details" "$LINENO" 5; };
2578         fi
2579         ;;
2580 *)
2581         $CXX -Wall -O2 -o remake remake.cpp > "$REMAKE_LOG" 2>&1
2582         if test $? != 0; then
2583            cat "$REMAKE_LOG"; rm -f "$REMAKE_LOG";
2584            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $? "failed
2587 See \`config.log' for more details" "$LINENO" 5; };
2588         fi
2589         ;;
2590 esac
2591 rm -f "$REMAKE_LOG";
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: $REMAKE exists, not rebuilding" >&5
2594 $as_echo "$as_me: $REMAKE exists, not rebuilding" >&6;}
2595 fi
2596
2597
2598
2599
2600
2601
2602
2603 ac_config_files="$ac_config_files Remakefile"
2604
2605 ac_config_files="$ac_config_files Makefile"
2606
2607 cat >confcache <<\_ACEOF
2608 # This file is a shell script that caches the results of configure
2609 # tests run on this system so they can be shared between configure
2610 # scripts and configure runs, see configure's option --config-cache.
2611 # It is not useful on other systems.  If it contains results you don't
2612 # want to keep, you may remove or edit it.
2613 #
2614 # config.status only pays attention to the cache file if you give it
2615 # the --recheck option to rerun configure.
2616 #
2617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2619 # following values.
2620
2621 _ACEOF
2622
2623 # The following way of writing the cache mishandles newlines in values,
2624 # but we know of no workaround that is simple, portable, and efficient.
2625 # So, we kill variables containing newlines.
2626 # Ultrix sh set writes to stderr and can't be redirected directly,
2627 # and sets the high bit in the cache file unless we assign to the vars.
2628 (
2629   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2630     eval ac_val=\$$ac_var
2631     case $ac_val in #(
2632     *${as_nl}*)
2633       case $ac_var in #(
2634       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2635 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2636       esac
2637       case $ac_var in #(
2638       _ | IFS | as_nl) ;; #(
2639       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2640       *) { eval $ac_var=; unset $ac_var;} ;;
2641       esac ;;
2642     esac
2643   done
2644
2645   (set) 2>&1 |
2646     case $as_nl`(ac_space=' '; set) 2>&1` in #(
2647     *${as_nl}ac_space=\ *)
2648       # `set' does not quote correctly, so add quotes: double-quote
2649       # substitution turns \\\\ into \\, and sed turns \\ into \.
2650       sed -n \
2651         "s/'/'\\\\''/g;
2652           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2653       ;; #(
2654     *)
2655       # `set' quotes correctly as required by POSIX, so do not add quotes.
2656       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2657       ;;
2658     esac |
2659     sort
2660 ) |
2661   sed '
2662      /^ac_cv_env_/b end
2663      t clear
2664      :clear
2665      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2666      t end
2667      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2668      :end' >>confcache
2669 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2670   if test -w "$cache_file"; then
2671     if test "x$cache_file" != "x/dev/null"; then
2672       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2673 $as_echo "$as_me: updating cache $cache_file" >&6;}
2674       if test ! -f "$cache_file" || test -h "$cache_file"; then
2675         cat confcache >"$cache_file"
2676       else
2677         case $cache_file in #(
2678         */* | ?:*)
2679           mv -f confcache "$cache_file"$$ &&
2680           mv -f "$cache_file"$$ "$cache_file" ;; #(
2681         *)
2682           mv -f confcache "$cache_file" ;;
2683         esac
2684       fi
2685     fi
2686   else
2687     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2688 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2689   fi
2690 fi
2691 rm -f confcache
2692
2693 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2694 # Let make expand exec_prefix.
2695 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2696
2697 # Transform confdefs.h into DEFS.
2698 # Protect against shell expansion while executing Makefile rules.
2699 # Protect against Makefile macro expansion.
2700 #
2701 # If the first sed substitution is executed (which looks for macros that
2702 # take arguments), then branch to the quote section.  Otherwise,
2703 # look for a macro that doesn't take arguments.
2704 ac_script='
2705 :mline
2706 /\\$/{
2707  N
2708  s,\\\n,,
2709  b mline
2710 }
2711 t clear
2712 :clear
2713 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
2714 t quote
2715 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
2716 t quote
2717 b any
2718 :quote
2719 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2720 s/\[/\\&/g
2721 s/\]/\\&/g
2722 s/\$/$$/g
2723 H
2724 :any
2725 ${
2726         g
2727         s/^\n//
2728         s/\n/ /g
2729         p
2730 }
2731 '
2732 DEFS=`sed -n "$ac_script" confdefs.h`
2733
2734
2735 ac_libobjs=
2736 ac_ltlibobjs=
2737 U=
2738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2739   # 1. Remove the extension, and $U if already installed.
2740   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2741   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2742   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2743   #    will be set to the directory where LIBOBJS objects are built.
2744   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2745   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2746 done
2747 LIBOBJS=$ac_libobjs
2748
2749 LTLIBOBJS=$ac_ltlibobjs
2750
2751
2752
2753 : "${CONFIG_STATUS=./config.status}"
2754 ac_write_fail=0
2755 ac_clean_files_save=$ac_clean_files
2756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2758 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2759 as_write_fail=0
2760 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2761 #! $SHELL
2762 # Generated by $as_me.
2763 # Run this file to recreate the current configuration.
2764 # Compiler output produced by configure, useful for debugging
2765 # configure, is in config.log if it exists.
2766
2767 debug=false
2768 ac_cs_recheck=false
2769 ac_cs_silent=false
2770
2771 SHELL=\${CONFIG_SHELL-$SHELL}
2772 export SHELL
2773 _ASEOF
2774 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2775 ## -------------------- ##
2776 ## M4sh Initialization. ##
2777 ## -------------------- ##
2778
2779 # Be more Bourne compatible
2780 DUALCASE=1; export DUALCASE # for MKS sh
2781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
2782   emulate sh
2783   NULLCMD=:
2784   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2785   # is contrary to our usage.  Disable this feature.
2786   alias -g '${1+"$@"}'='"$@"'
2787   setopt NO_GLOB_SUBST
2788 else
2789   case `(set -o) 2>/dev/null` in #(
2790   *posix*) :
2791     set -o posix ;; #(
2792   *) :
2793      ;;
2794 esac
2795 fi
2796
2797
2798 as_nl='
2799 '
2800 export as_nl
2801 # Printing a long string crashes Solaris 7 /usr/bin/printf.
2802 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2803 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2805 # Prefer a ksh shell builtin over an external printf program on Solaris,
2806 # but without wasting forks for bash or zsh.
2807 if test -z "$BASH_VERSION$ZSH_VERSION" \
2808     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
2809   as_echo='print -r --'
2810   as_echo_n='print -rn --'
2811 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2812   as_echo='printf %s\n'
2813   as_echo_n='printf %s'
2814 else
2815   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2816     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2817     as_echo_n='/usr/ucb/echo -n'
2818   else
2819     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2820     as_echo_n_body='eval
2821       arg=$1;
2822       case $arg in #(
2823       *"$as_nl"*)
2824         expr "X$arg" : "X\\(.*\\)$as_nl";
2825         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2826       esac;
2827       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2828     '
2829     export as_echo_n_body
2830     as_echo_n='sh -c $as_echo_n_body as_echo'
2831   fi
2832   export as_echo_body
2833   as_echo='sh -c $as_echo_body as_echo'
2834 fi
2835
2836 # The user is always right.
2837 if test "${PATH_SEPARATOR+set}" != set; then
2838   PATH_SEPARATOR=:
2839   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2840     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2841       PATH_SEPARATOR=';'
2842   }
2843 fi
2844
2845
2846 # IFS
2847 # We need space, tab and new line, in precisely that order.  Quoting is
2848 # there to prevent editors from complaining about space-tab.
2849 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2850 # splitting by setting IFS to empty value.)
2851 IFS=" ""        $as_nl"
2852
2853 # Find who we are.  Look in the path if we contain no directory separator.
2854 as_myself=
2855 case $0 in #((
2856   *[\\/]* ) as_myself=$0 ;;
2857   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860   IFS=$as_save_IFS
2861   test -z "$as_dir" && as_dir=.
2862     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2863   done
2864 IFS=$as_save_IFS
2865
2866      ;;
2867 esac
2868 # We did not find ourselves, most probably we were run as `sh COMMAND'
2869 # in which case we are not to be found in the path.
2870 if test "x$as_myself" = x; then
2871   as_myself=$0
2872 fi
2873 if test ! -f "$as_myself"; then
2874   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2875   exit 1
2876 fi
2877
2878 # Unset variables that we do not need and which cause bugs (e.g. in
2879 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
2880 # suppresses any "Segmentation fault" message there.  '((' could
2881 # trigger a bug in pdksh 5.2.14.
2882 for as_var in BASH_ENV ENV MAIL MAILPATH
2883 do eval test x\${$as_var+set} = xset \
2884   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2885 done
2886 PS1='$ '
2887 PS2='> '
2888 PS4='+ '
2889
2890 # NLS nuisances.
2891 LC_ALL=C
2892 export LC_ALL
2893 LANGUAGE=C
2894 export LANGUAGE
2895
2896 # CDPATH.
2897 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2898
2899
2900 # as_fn_error STATUS ERROR [LINENO LOG_FD]
2901 # ----------------------------------------
2902 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2903 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2904 # script with STATUS, using 1 if that was 0.
2905 as_fn_error ()
2906 {
2907   as_status=$1; test $as_status -eq 0 && as_status=1
2908   if test "$4"; then
2909     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2910     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2911   fi
2912   $as_echo "$as_me: error: $2" >&2
2913   as_fn_exit $as_status
2914 } # as_fn_error
2915
2916
2917 # as_fn_set_status STATUS
2918 # -----------------------
2919 # Set $? to STATUS, without forking.
2920 as_fn_set_status ()
2921 {
2922   return $1
2923 } # as_fn_set_status
2924
2925 # as_fn_exit STATUS
2926 # -----------------
2927 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2928 as_fn_exit ()
2929 {
2930   set +e
2931   as_fn_set_status $1
2932   exit $1
2933 } # as_fn_exit
2934
2935 # as_fn_unset VAR
2936 # ---------------
2937 # Portably unset VAR.
2938 as_fn_unset ()
2939 {
2940   { eval $1=; unset $1;}
2941 }
2942 as_unset=as_fn_unset
2943 # as_fn_append VAR VALUE
2944 # ----------------------
2945 # Append the text in VALUE to the end of the definition contained in VAR. Take
2946 # advantage of any shell optimizations that allow amortized linear growth over
2947 # repeated appends, instead of the typical quadratic growth present in naive
2948 # implementations.
2949 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
2950   eval 'as_fn_append ()
2951   {
2952     eval $1+=\$2
2953   }'
2954 else
2955   as_fn_append ()
2956   {
2957     eval $1=\$$1\$2
2958   }
2959 fi # as_fn_append
2960
2961 # as_fn_arith ARG...
2962 # ------------------
2963 # Perform arithmetic evaluation on the ARGs, and store the result in the
2964 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2965 # must be portable across $(()) and expr.
2966 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
2967   eval 'as_fn_arith ()
2968   {
2969     as_val=$(( $* ))
2970   }'
2971 else
2972   as_fn_arith ()
2973   {
2974     as_val=`expr "$@" || test $? -eq 1`
2975   }
2976 fi # as_fn_arith
2977
2978
2979 if expr a : '\(a\)' >/dev/null 2>&1 &&
2980    test "X`expr 00001 : '.*\(...\)'`" = X001; then
2981   as_expr=expr
2982 else
2983   as_expr=false
2984 fi
2985
2986 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2987   as_basename=basename
2988 else
2989   as_basename=false
2990 fi
2991
2992 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2993   as_dirname=dirname
2994 else
2995   as_dirname=false
2996 fi
2997
2998 as_me=`$as_basename -- "$0" ||
2999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3000          X"$0" : 'X\(//\)$' \| \
3001          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3002 $as_echo X/"$0" |
3003     sed '/^.*\/\([^/][^/]*\)\/*$/{
3004             s//\1/
3005             q
3006           }
3007           /^X\/\(\/\/\)$/{
3008             s//\1/
3009             q
3010           }
3011           /^X\/\(\/\).*/{
3012             s//\1/
3013             q
3014           }
3015           s/.*/./; q'`
3016
3017 # Avoid depending upon Character Ranges.
3018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3021 as_cr_digits='0123456789'
3022 as_cr_alnum=$as_cr_Letters$as_cr_digits
3023
3024 ECHO_C= ECHO_N= ECHO_T=
3025 case `echo -n x` in #(((((
3026 -n*)
3027   case `echo 'xy\c'` in
3028   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3029   xy)  ECHO_C='\c';;
3030   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3031        ECHO_T=' ';;
3032   esac;;
3033 *)
3034   ECHO_N='-n';;
3035 esac
3036
3037 rm -f conf$$ conf$$.exe conf$$.file
3038 if test -d conf$$.dir; then
3039   rm -f conf$$.dir/conf$$.file
3040 else
3041   rm -f conf$$.dir
3042   mkdir conf$$.dir 2>/dev/null
3043 fi
3044 if (echo >conf$$.file) 2>/dev/null; then
3045   if ln -s conf$$.file conf$$ 2>/dev/null; then
3046     as_ln_s='ln -s'
3047     # ... but there are two gotchas:
3048     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3049     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3050     # In both cases, we have to default to `cp -pR'.
3051     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3052       as_ln_s='cp -pR'
3053   elif ln conf$$.file conf$$ 2>/dev/null; then
3054     as_ln_s=ln
3055   else
3056     as_ln_s='cp -pR'
3057   fi
3058 else
3059   as_ln_s='cp -pR'
3060 fi
3061 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3062 rmdir conf$$.dir 2>/dev/null
3063
3064
3065 # as_fn_mkdir_p
3066 # -------------
3067 # Create "$as_dir" as a directory, including parents if necessary.
3068 as_fn_mkdir_p ()
3069 {
3070
3071   case $as_dir in #(
3072   -*) as_dir=./$as_dir;;
3073   esac
3074   test -d "$as_dir" || eval $as_mkdir_p || {
3075     as_dirs=
3076     while :; do
3077       case $as_dir in #(
3078       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3079       *) as_qdir=$as_dir;;
3080       esac
3081       as_dirs="'$as_qdir' $as_dirs"
3082       as_dir=`$as_dirname -- "$as_dir" ||
3083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3084          X"$as_dir" : 'X\(//\)[^/]' \| \
3085          X"$as_dir" : 'X\(//\)$' \| \
3086          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3087 $as_echo X"$as_dir" |
3088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3089             s//\1/
3090             q
3091           }
3092           /^X\(\/\/\)[^/].*/{
3093             s//\1/
3094             q
3095           }
3096           /^X\(\/\/\)$/{
3097             s//\1/
3098             q
3099           }
3100           /^X\(\/\).*/{
3101             s//\1/
3102             q
3103           }
3104           s/.*/./; q'`
3105       test -d "$as_dir" && break
3106     done
3107     test -z "$as_dirs" || eval "mkdir $as_dirs"
3108   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3109
3110
3111 } # as_fn_mkdir_p
3112 if mkdir -p . 2>/dev/null; then
3113   as_mkdir_p='mkdir -p "$as_dir"'
3114 else
3115   test -d ./-p && rmdir ./-p
3116   as_mkdir_p=false
3117 fi
3118
3119
3120 # as_fn_executable_p FILE
3121 # -----------------------
3122 # Test if FILE is an executable regular file.
3123 as_fn_executable_p ()
3124 {
3125   test -f "$1" && test -x "$1"
3126 } # as_fn_executable_p
3127 as_test_x='test -x'
3128 as_executable_p=as_fn_executable_p
3129
3130 # Sed expression to map a string onto a valid CPP name.
3131 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3132
3133 # Sed expression to map a string onto a valid variable name.
3134 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3135
3136
3137 exec 6>&1
3138 ## ----------------------------------- ##
3139 ## Main body of $CONFIG_STATUS script. ##
3140 ## ----------------------------------- ##
3141 _ASEOF
3142 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3143
3144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3145 # Save the log message, to keep $0 and so on meaningful, and to
3146 # report actual input values of CONFIG_FILES etc. instead of their
3147 # values after options handling.
3148 ac_log="
3149 This file was extended by TAToo $as_me 0.0.1, which was
3150 generated by GNU Autoconf 2.69.  Invocation command line was
3151
3152   CONFIG_FILES    = $CONFIG_FILES
3153   CONFIG_HEADERS  = $CONFIG_HEADERS
3154   CONFIG_LINKS    = $CONFIG_LINKS
3155   CONFIG_COMMANDS = $CONFIG_COMMANDS
3156   $ $0 $@
3157
3158 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3159 "
3160
3161 _ACEOF
3162
3163 case $ac_config_files in *"
3164 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3165 esac
3166
3167
3168
3169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3170 # Files that config.status was made for.
3171 config_files="$ac_config_files"
3172
3173 _ACEOF
3174
3175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3176 ac_cs_usage="\
3177 \`$as_me' instantiates files and other configuration actions
3178 from templates according to the current configuration.  Unless the files
3179 and actions are specified as TAGs, all are instantiated by default.
3180
3181 Usage: $0 [OPTION]... [TAG]...
3182
3183   -h, --help       print this help, then exit
3184   -V, --version    print version number and configuration settings, then exit
3185       --config     print configuration, then exit
3186   -q, --quiet, --silent
3187                    do not print progress messages
3188   -d, --debug      don't remove temporary files
3189       --recheck    update $as_me by reconfiguring in the same conditions
3190       --file=FILE[:TEMPLATE]
3191                    instantiate the configuration file FILE
3192
3193 Configuration files:
3194 $config_files
3195
3196 Report bugs to <Kim Nguyễn <kn@lri.fr>>."
3197
3198 _ACEOF
3199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3200 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3201 ac_cs_version="\\
3202 TAToo config.status 0.0.1
3203 configured by $0, generated by GNU Autoconf 2.69,
3204   with options \\"\$ac_cs_config\\"
3205
3206 Copyright (C) 2012 Free Software Foundation, Inc.
3207 This config.status script is free software; the Free Software Foundation
3208 gives unlimited permission to copy, distribute and modify it."
3209
3210 ac_pwd='$ac_pwd'
3211 srcdir='$srcdir'
3212 test -n "\$AWK" || AWK=awk
3213 _ACEOF
3214
3215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3216 # The default lists apply if the user does not specify any file.
3217 ac_need_defaults=:
3218 while test $# != 0
3219 do
3220   case $1 in
3221   --*=?*)
3222     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3223     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3224     ac_shift=:
3225     ;;
3226   --*=)
3227     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3228     ac_optarg=
3229     ac_shift=:
3230     ;;
3231   *)
3232     ac_option=$1
3233     ac_optarg=$2
3234     ac_shift=shift
3235     ;;
3236   esac
3237
3238   case $ac_option in
3239   # Handling of the options.
3240   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3241     ac_cs_recheck=: ;;
3242   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3243     $as_echo "$ac_cs_version"; exit ;;
3244   --config | --confi | --conf | --con | --co | --c )
3245     $as_echo "$ac_cs_config"; exit ;;
3246   --debug | --debu | --deb | --de | --d | -d )
3247     debug=: ;;
3248   --file | --fil | --fi | --f )
3249     $ac_shift
3250     case $ac_optarg in
3251     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3252     '') as_fn_error $? "missing file argument" ;;
3253     esac
3254     as_fn_append CONFIG_FILES " '$ac_optarg'"
3255     ac_need_defaults=false;;
3256   --he | --h |  --help | --hel | -h )
3257     $as_echo "$ac_cs_usage"; exit ;;
3258   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3259   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3260     ac_cs_silent=: ;;
3261
3262   # This is an error.
3263   -*) as_fn_error $? "unrecognized option: \`$1'
3264 Try \`$0 --help' for more information." ;;
3265
3266   *) as_fn_append ac_config_targets " $1"
3267      ac_need_defaults=false ;;
3268
3269   esac
3270   shift
3271 done
3272
3273 ac_configure_extra_args=
3274
3275 if $ac_cs_silent; then
3276   exec 6>/dev/null
3277   ac_configure_extra_args="$ac_configure_extra_args --silent"
3278 fi
3279
3280 _ACEOF
3281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3282 if \$ac_cs_recheck; then
3283   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3284   shift
3285   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3286   CONFIG_SHELL='$SHELL'
3287   export CONFIG_SHELL
3288   exec "\$@"
3289 fi
3290
3291 _ACEOF
3292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3293 exec 5>>config.log
3294 {
3295   echo
3296   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3297 ## Running $as_me. ##
3298 _ASBOX
3299   $as_echo "$ac_log"
3300 } >&5
3301
3302 _ACEOF
3303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3304 _ACEOF
3305
3306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3307
3308 # Handling of arguments.
3309 for ac_config_target in $ac_config_targets
3310 do
3311   case $ac_config_target in
3312     "Remakefile") CONFIG_FILES="$CONFIG_FILES Remakefile" ;;
3313     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3314
3315   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3316   esac
3317 done
3318
3319
3320 # If the user did not use the arguments to specify the items to instantiate,
3321 # then the envvar interface is used.  Set only those that are not.
3322 # We use the long form for the default assignment because of an extremely
3323 # bizarre bug on SunOS 4.1.3.
3324 if $ac_need_defaults; then
3325   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3326 fi
3327
3328 # Have a temporary directory for convenience.  Make it in the build tree
3329 # simply because there is no reason against having it here, and in addition,
3330 # creating and moving files from /tmp can sometimes cause problems.
3331 # Hook for its removal unless debugging.
3332 # Note that there is a small window in which the directory will not be cleaned:
3333 # after its creation but before its name has been assigned to `$tmp'.
3334 $debug ||
3335 {
3336   tmp= ac_tmp=
3337   trap 'exit_status=$?
3338   : "${ac_tmp:=$tmp}"
3339   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3340 ' 0
3341   trap 'as_fn_exit 1' 1 2 13 15
3342 }
3343 # Create a (secure) tmp directory for tmp files.
3344
3345 {
3346   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3347   test -d "$tmp"
3348 }  ||
3349 {
3350   tmp=./conf$$-$RANDOM
3351   (umask 077 && mkdir "$tmp")
3352 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3353 ac_tmp=$tmp
3354
3355 # Set up the scripts for CONFIG_FILES section.
3356 # No need to generate them if there are no CONFIG_FILES.
3357 # This happens for instance with `./config.status config.h'.
3358 if test -n "$CONFIG_FILES"; then
3359
3360
3361 ac_cr=`echo X | tr X '\015'`
3362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3363 # But we know of no other shell where ac_cr would be empty at this
3364 # point, so we can use a bashism as a fallback.
3365 if test "x$ac_cr" = x; then
3366   eval ac_cr=\$\'\\r\'
3367 fi
3368 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3370   ac_cs_awk_cr='\\r'
3371 else
3372   ac_cs_awk_cr=$ac_cr
3373 fi
3374
3375 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3376 _ACEOF
3377
3378
3379 {
3380   echo "cat >conf$$subs.awk <<_ACEOF" &&
3381   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3382   echo "_ACEOF"
3383 } >conf$$subs.sh ||
3384   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3385 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3386 ac_delim='%!_!# '
3387 for ac_last_try in false false false false false :; do
3388   . ./conf$$subs.sh ||
3389     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3390
3391   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3392   if test $ac_delim_n = $ac_delim_num; then
3393     break
3394   elif $ac_last_try; then
3395     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3396   else
3397     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3398   fi
3399 done
3400 rm -f conf$$subs.sh
3401
3402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3403 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3404 _ACEOF
3405 sed -n '
3406 h
3407 s/^/S["/; s/!.*/"]=/
3408 p
3409 g
3410 s/^[^!]*!//
3411 :repl
3412 t repl
3413 s/'"$ac_delim"'$//
3414 t delim
3415 :nl
3416 h
3417 s/\(.\{148\}\)..*/\1/
3418 t more1
3419 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3420 p
3421 n
3422 b repl
3423 :more1
3424 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3425 p
3426 g
3427 s/.\{148\}//
3428 t nl
3429 :delim
3430 h
3431 s/\(.\{148\}\)..*/\1/
3432 t more2
3433 s/["\\]/\\&/g; s/^/"/; s/$/"/
3434 p
3435 b
3436 :more2
3437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3438 p
3439 g
3440 s/.\{148\}//
3441 t delim
3442 ' <conf$$subs.awk | sed '
3443 /^[^""]/{
3444   N
3445   s/\n//
3446 }
3447 ' >>$CONFIG_STATUS || ac_write_fail=1
3448 rm -f conf$$subs.awk
3449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3450 _ACAWK
3451 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3452   for (key in S) S_is_set[key] = 1
3453   FS = "\a"
3454
3455 }
3456 {
3457   line = $ 0
3458   nfields = split(line, field, "@")
3459   substed = 0
3460   len = length(field[1])
3461   for (i = 2; i < nfields; i++) {
3462     key = field[i]
3463     keylen = length(key)
3464     if (S_is_set[key]) {
3465       value = S[key]
3466       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3467       len += length(value) + length(field[++i])
3468       substed = 1
3469     } else
3470       len += 1 + keylen
3471   }
3472
3473   print line
3474 }
3475
3476 _ACAWK
3477 _ACEOF
3478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3479 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3480   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3481 else
3482   cat
3483 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3484   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3485 _ACEOF
3486
3487 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3488 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3489 # trailing colons and then remove the whole line if VPATH becomes empty
3490 # (actually we leave an empty line to preserve line numbers).
3491 if test "x$srcdir" = x.; then
3492   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
3493 h
3494 s///
3495 s/^/:/
3496 s/[      ]*$/:/
3497 s/:\$(srcdir):/:/g
3498 s/:\${srcdir}:/:/g
3499 s/:@srcdir@:/:/g
3500 s/^:*//
3501 s/:*$//
3502 x
3503 s/\(=[   ]*\).*/\1/
3504 G
3505 s/\n//
3506 s/^[^=]*=[       ]*$//
3507 }'
3508 fi
3509
3510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3511 fi # test -n "$CONFIG_FILES"
3512
3513
3514 eval set X "  :F $CONFIG_FILES      "
3515 shift
3516 for ac_tag
3517 do
3518   case $ac_tag in
3519   :[FHLC]) ac_mode=$ac_tag; continue;;
3520   esac
3521   case $ac_mode$ac_tag in
3522   :[FHL]*:*);;
3523   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3524   :[FH]-) ac_tag=-:-;;
3525   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3526   esac
3527   ac_save_IFS=$IFS
3528   IFS=:
3529   set x $ac_tag
3530   IFS=$ac_save_IFS
3531   shift
3532   ac_file=$1
3533   shift
3534
3535   case $ac_mode in
3536   :L) ac_source=$1;;
3537   :[FH])
3538     ac_file_inputs=
3539     for ac_f
3540     do
3541       case $ac_f in
3542       -) ac_f="$ac_tmp/stdin";;
3543       *) # Look for the file first in the build tree, then in the source tree
3544          # (if the path is not absolute).  The absolute path cannot be DOS-style,
3545          # because $ac_f cannot contain `:'.
3546          test -f "$ac_f" ||
3547            case $ac_f in
3548            [\\/$]*) false;;
3549            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3550            esac ||
3551            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3552       esac
3553       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3554       as_fn_append ac_file_inputs " '$ac_f'"
3555     done
3556
3557     # Let's still pretend it is `configure' which instantiates (i.e., don't
3558     # use $as_me), people would be surprised to read:
3559     #    /* config.h.  Generated by config.status.  */
3560     configure_input='Generated from '`
3561           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3562         `' by configure.'
3563     if test x"$ac_file" != x-; then
3564       configure_input="$ac_file.  $configure_input"
3565       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3566 $as_echo "$as_me: creating $ac_file" >&6;}
3567     fi
3568     # Neutralize special characters interpreted by sed in replacement strings.
3569     case $configure_input in #(
3570     *\&* | *\|* | *\\* )
3571        ac_sed_conf_input=`$as_echo "$configure_input" |
3572        sed 's/[\\\\&|]/\\\\&/g'`;; #(
3573     *) ac_sed_conf_input=$configure_input;;
3574     esac
3575
3576     case $ac_tag in
3577     *:-:* | *:-) cat >"$ac_tmp/stdin" \
3578       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3579     esac
3580     ;;
3581   esac
3582
3583   ac_dir=`$as_dirname -- "$ac_file" ||
3584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3585          X"$ac_file" : 'X\(//\)[^/]' \| \
3586          X"$ac_file" : 'X\(//\)$' \| \
3587          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3588 $as_echo X"$ac_file" |
3589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3590             s//\1/
3591             q
3592           }
3593           /^X\(\/\/\)[^/].*/{
3594             s//\1/
3595             q
3596           }
3597           /^X\(\/\/\)$/{
3598             s//\1/
3599             q
3600           }
3601           /^X\(\/\).*/{
3602             s//\1/
3603             q
3604           }
3605           s/.*/./; q'`
3606   as_dir="$ac_dir"; as_fn_mkdir_p
3607   ac_builddir=.
3608
3609 case "$ac_dir" in
3610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3611 *)
3612   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3613   # A ".." for each directory in $ac_dir_suffix.
3614   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3615   case $ac_top_builddir_sub in
3616   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3617   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3618   esac ;;
3619 esac
3620 ac_abs_top_builddir=$ac_pwd
3621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3622 # for backward compatibility:
3623 ac_top_builddir=$ac_top_build_prefix
3624
3625 case $srcdir in
3626   .)  # We are building in place.
3627     ac_srcdir=.
3628     ac_top_srcdir=$ac_top_builddir_sub
3629     ac_abs_top_srcdir=$ac_pwd ;;
3630   [\\/]* | ?:[\\/]* )  # Absolute name.
3631     ac_srcdir=$srcdir$ac_dir_suffix;
3632     ac_top_srcdir=$srcdir
3633     ac_abs_top_srcdir=$srcdir ;;
3634   *) # Relative name.
3635     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3636     ac_top_srcdir=$ac_top_build_prefix$srcdir
3637     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3638 esac
3639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3640
3641
3642   case $ac_mode in
3643   :F)
3644   #
3645   # CONFIG_FILE
3646   #
3647
3648 _ACEOF
3649
3650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3651 # If the template does not know about datarootdir, expand it.
3652 # FIXME: This hack should be removed a few years after 2.60.
3653 ac_datarootdir_hack=; ac_datarootdir_seen=
3654 ac_sed_dataroot='
3655 /datarootdir/ {
3656   p
3657   q
3658 }
3659 /@datadir@/p
3660 /@docdir@/p
3661 /@infodir@/p
3662 /@localedir@/p
3663 /@mandir@/p'
3664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3665 *datarootdir*) ac_datarootdir_seen=yes;;
3666 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3669 _ACEOF
3670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3671   ac_datarootdir_hack='
3672   s&@datadir@&$datadir&g
3673   s&@docdir@&$docdir&g
3674   s&@infodir@&$infodir&g
3675   s&@localedir@&$localedir&g
3676   s&@mandir@&$mandir&g
3677   s&\\\${datarootdir}&$datarootdir&g' ;;
3678 esac
3679 _ACEOF
3680
3681 # Neutralize VPATH when `$srcdir' = `.'.
3682 # Shell code in configure.ac might set extrasub.
3683 # FIXME: do we really want to maintain this feature?
3684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3685 ac_sed_extra="$ac_vpsub
3686 $extrasub
3687 _ACEOF
3688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3689 :t
3690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3691 s|@configure_input@|$ac_sed_conf_input|;t t
3692 s&@top_builddir@&$ac_top_builddir_sub&;t t
3693 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3694 s&@srcdir@&$ac_srcdir&;t t
3695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3696 s&@top_srcdir@&$ac_top_srcdir&;t t
3697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3698 s&@builddir@&$ac_builddir&;t t
3699 s&@abs_builddir@&$ac_abs_builddir&;t t
3700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3701 $ac_datarootdir_hack
3702 "
3703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3704   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3705
3706 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3707   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3708   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
3709       "$ac_tmp/out"`; test -z "$ac_out"; } &&
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3711 which seems to be undefined.  Please make sure it is defined" >&5
3712 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3713 which seems to be undefined.  Please make sure it is defined" >&2;}
3714
3715   rm -f "$ac_tmp/stdin"
3716   case $ac_file in
3717   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3718   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3719   esac \
3720   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3721  ;;
3722
3723
3724
3725   esac
3726
3727 done # for ac_tag
3728
3729
3730 as_fn_exit 0
3731 _ACEOF
3732 ac_clean_files=$ac_clean_files_save
3733
3734 test $ac_write_fail = 0 ||
3735   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3736
3737
3738 # configure is writing to config.log, and then calls config.status.
3739 # config.status does its own redirection, appending to config.log.
3740 # Unfortunately, on DOS this fails, as config.log is still kept open
3741 # by configure, so config.status won't be able to write to it; its
3742 # output is simply discarded.  So we exec the FD to /dev/null,
3743 # effectively closing config.log, so it can be properly (re)opened and
3744 # appended to by config.status.  When coming back to configure, we
3745 # need to make the FD available again.
3746 if test "$no_create" != yes; then
3747   ac_cs_success=:
3748   ac_config_status_args=
3749   test "$silent" = yes &&
3750     ac_config_status_args="$ac_config_status_args --quiet"
3751   exec 5>/dev/null
3752   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3753   exec 5>>config.log
3754   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3755   # would make configure fail if this is the last instruction.
3756   $ac_cs_success || as_fn_exit 1
3757 fi
3758 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3760 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3761 fi
3762