]> matita.cs.unibo.it Git - helm.git/blob - DEVEL/lablgtkmathview/0.7.3-2/configure
[svn-buildpackage] Tagging lablgtkmathview (0.7.3-2)
[helm.git] / DEVEL / lablgtkmathview / 0.7.3-2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60a.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="gMathView.ml"
565 ac_subst_vars='SHELL
566 PATH_SEPARATOR
567 PACKAGE_NAME
568 PACKAGE_TARNAME
569 PACKAGE_VERSION
570 PACKAGE_STRING
571 PACKAGE_BUGREPORT
572 exec_prefix
573 prefix
574 program_transform_name
575 bindir
576 sbindir
577 libexecdir
578 datarootdir
579 datadir
580 sysconfdir
581 sharedstatedir
582 localstatedir
583 includedir
584 oldincludedir
585 docdir
586 infodir
587 htmldir
588 dvidir
589 pdfdir
590 psdir
591 libdir
592 localedir
593 mandir
594 DEFS
595 ECHO_C
596 ECHO_N
597 ECHO_T
598 LIBS
599 build_alias
600 host_alias
601 target_alias
602 PKG_CONFIG
603 GDOME_CFLAGS
604 GDOME_LIBS
605 GTKMATHVIEW_CFLAGS
606 GTKMATHVIEW_LIBS
607 HAVE_OCAMLC
608 HAVE_OCAMLOPT
609 HAVE_OCAMLFIND
610 PACKAGE
611 VERSION
612 OCAML_INCLUDE_DIR
613 OCAML_LIB_DIR
614 OCAML_STUB_DIR
615 LIBOBJS
616 LTLIBOBJS'
617 ac_subst_files=''
618       ac_precious_vars='build_alias
619 host_alias
620 target_alias
621 PKG_CONFIG
622 GDOME_CFLAGS
623 GDOME_LIBS
624 GTKMATHVIEW_CFLAGS
625 GTKMATHVIEW_LIBS'
626
627
628 # Initialize some variables set by options.
629 ac_init_help=
630 ac_init_version=false
631 # The variables have the same names as the options, with
632 # dashes changed to underlines.
633 cache_file=/dev/null
634 exec_prefix=NONE
635 no_create=
636 no_recursion=
637 prefix=NONE
638 program_prefix=NONE
639 program_suffix=NONE
640 program_transform_name=s,x,x,
641 silent=
642 site=
643 srcdir=
644 verbose=
645 x_includes=NONE
646 x_libraries=NONE
647
648 # Installation directory options.
649 # These are left unexpanded so users can "make install exec_prefix=/foo"
650 # and all the variables that are supposed to be based on exec_prefix
651 # by default will actually change.
652 # Use braces instead of parens because sh, perl, etc. also accept them.
653 # (The list follows the same order as the GNU Coding Standards.)
654 bindir='${exec_prefix}/bin'
655 sbindir='${exec_prefix}/sbin'
656 libexecdir='${exec_prefix}/libexec'
657 datarootdir='${prefix}/share'
658 datadir='${datarootdir}'
659 sysconfdir='${prefix}/etc'
660 sharedstatedir='${prefix}/com'
661 localstatedir='${prefix}/var'
662 includedir='${prefix}/include'
663 oldincludedir='/usr/include'
664 docdir='${datarootdir}/doc/${PACKAGE}'
665 infodir='${datarootdir}/info'
666 htmldir='${docdir}'
667 dvidir='${docdir}'
668 pdfdir='${docdir}'
669 psdir='${docdir}'
670 libdir='${exec_prefix}/lib'
671 localedir='${datarootdir}/locale'
672 mandir='${datarootdir}/man'
673
674 ac_prev=
675 ac_dashdash=
676 for ac_option
677 do
678   # If the previous option needs an argument, assign it.
679   if test -n "$ac_prev"; then
680     eval $ac_prev=\$ac_option
681     ac_prev=
682     continue
683   fi
684
685   case $ac_option in
686   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
687   *)    ac_optarg=yes ;;
688   esac
689
690   # Accept the important Cygnus configure options, so we can diagnose typos.
691
692   case $ac_dashdash$ac_option in
693   --)
694     ac_dashdash=yes ;;
695
696   -bindir | --bindir | --bindi | --bind | --bin | --bi)
697     ac_prev=bindir ;;
698   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
699     bindir=$ac_optarg ;;
700
701   -build | --build | --buil | --bui | --bu)
702     ac_prev=build_alias ;;
703   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
704     build_alias=$ac_optarg ;;
705
706   -cache-file | --cache-file | --cache-fil | --cache-fi \
707   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
708     ac_prev=cache_file ;;
709   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
710   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
711     cache_file=$ac_optarg ;;
712
713   --config-cache | -C)
714     cache_file=config.cache ;;
715
716   -datadir | --datadir | --datadi | --datad)
717     ac_prev=datadir ;;
718   -datadir=* | --datadir=* | --datadi=* | --datad=*)
719     datadir=$ac_optarg ;;
720
721   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
722   | --dataroo | --dataro | --datar)
723     ac_prev=datarootdir ;;
724   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
725   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
726     datarootdir=$ac_optarg ;;
727
728   -disable-* | --disable-*)
729     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
730     # Reject names that are not valid shell variable names.
731     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
732       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
733    { (exit 1); exit 1; }; }
734     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
735     eval enable_$ac_feature=no ;;
736
737   -docdir | --docdir | --docdi | --doc | --do)
738     ac_prev=docdir ;;
739   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
740     docdir=$ac_optarg ;;
741
742   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
743     ac_prev=dvidir ;;
744   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
745     dvidir=$ac_optarg ;;
746
747   -enable-* | --enable-*)
748     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
749     # Reject names that are not valid shell variable names.
750     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
752    { (exit 1); exit 1; }; }
753     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
754     eval enable_$ac_feature=\$ac_optarg ;;
755
756   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
757   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
758   | --exec | --exe | --ex)
759     ac_prev=exec_prefix ;;
760   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
761   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
762   | --exec=* | --exe=* | --ex=*)
763     exec_prefix=$ac_optarg ;;
764
765   -gas | --gas | --ga | --g)
766     # Obsolete; use --with-gas.
767     with_gas=yes ;;
768
769   -help | --help | --hel | --he | -h)
770     ac_init_help=long ;;
771   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
772     ac_init_help=recursive ;;
773   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
774     ac_init_help=short ;;
775
776   -host | --host | --hos | --ho)
777     ac_prev=host_alias ;;
778   -host=* | --host=* | --hos=* | --ho=*)
779     host_alias=$ac_optarg ;;
780
781   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
782     ac_prev=htmldir ;;
783   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
784   | --ht=*)
785     htmldir=$ac_optarg ;;
786
787   -includedir | --includedir | --includedi | --included | --include \
788   | --includ | --inclu | --incl | --inc)
789     ac_prev=includedir ;;
790   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
791   | --includ=* | --inclu=* | --incl=* | --inc=*)
792     includedir=$ac_optarg ;;
793
794   -infodir | --infodir | --infodi | --infod | --info | --inf)
795     ac_prev=infodir ;;
796   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
797     infodir=$ac_optarg ;;
798
799   -libdir | --libdir | --libdi | --libd)
800     ac_prev=libdir ;;
801   -libdir=* | --libdir=* | --libdi=* | --libd=*)
802     libdir=$ac_optarg ;;
803
804   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
805   | --libexe | --libex | --libe)
806     ac_prev=libexecdir ;;
807   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
808   | --libexe=* | --libex=* | --libe=*)
809     libexecdir=$ac_optarg ;;
810
811   -localedir | --localedir | --localedi | --localed | --locale)
812     ac_prev=localedir ;;
813   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
814     localedir=$ac_optarg ;;
815
816   -localstatedir | --localstatedir | --localstatedi | --localstated \
817   | --localstate | --localstat | --localsta | --localst | --locals)
818     ac_prev=localstatedir ;;
819   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
820   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
821     localstatedir=$ac_optarg ;;
822
823   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
824     ac_prev=mandir ;;
825   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
826     mandir=$ac_optarg ;;
827
828   -nfp | --nfp | --nf)
829     # Obsolete; use --without-fp.
830     with_fp=no ;;
831
832   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
833   | --no-cr | --no-c | -n)
834     no_create=yes ;;
835
836   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
837   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
838     no_recursion=yes ;;
839
840   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
841   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
842   | --oldin | --oldi | --old | --ol | --o)
843     ac_prev=oldincludedir ;;
844   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
845   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
846   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
847     oldincludedir=$ac_optarg ;;
848
849   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
850     ac_prev=prefix ;;
851   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
852     prefix=$ac_optarg ;;
853
854   -program-prefix | --program-prefix | --program-prefi | --program-pref \
855   | --program-pre | --program-pr | --program-p)
856     ac_prev=program_prefix ;;
857   -program-prefix=* | --program-prefix=* | --program-prefi=* \
858   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
859     program_prefix=$ac_optarg ;;
860
861   -program-suffix | --program-suffix | --program-suffi | --program-suff \
862   | --program-suf | --program-su | --program-s)
863     ac_prev=program_suffix ;;
864   -program-suffix=* | --program-suffix=* | --program-suffi=* \
865   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
866     program_suffix=$ac_optarg ;;
867
868   -program-transform-name | --program-transform-name \
869   | --program-transform-nam | --program-transform-na \
870   | --program-transform-n | --program-transform- \
871   | --program-transform | --program-transfor \
872   | --program-transfo | --program-transf \
873   | --program-trans | --program-tran \
874   | --progr-tra | --program-tr | --program-t)
875     ac_prev=program_transform_name ;;
876   -program-transform-name=* | --program-transform-name=* \
877   | --program-transform-nam=* | --program-transform-na=* \
878   | --program-transform-n=* | --program-transform-=* \
879   | --program-transform=* | --program-transfor=* \
880   | --program-transfo=* | --program-transf=* \
881   | --program-trans=* | --program-tran=* \
882   | --progr-tra=* | --program-tr=* | --program-t=*)
883     program_transform_name=$ac_optarg ;;
884
885   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
886     ac_prev=pdfdir ;;
887   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
888     pdfdir=$ac_optarg ;;
889
890   -psdir | --psdir | --psdi | --psd | --ps)
891     ac_prev=psdir ;;
892   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
893     psdir=$ac_optarg ;;
894
895   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
896   | -silent | --silent | --silen | --sile | --sil)
897     silent=yes ;;
898
899   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
900     ac_prev=sbindir ;;
901   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
902   | --sbi=* | --sb=*)
903     sbindir=$ac_optarg ;;
904
905   -sharedstatedir | --sharedstatedir | --sharedstatedi \
906   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
907   | --sharedst | --shareds | --shared | --share | --shar \
908   | --sha | --sh)
909     ac_prev=sharedstatedir ;;
910   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
911   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
912   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
913   | --sha=* | --sh=*)
914     sharedstatedir=$ac_optarg ;;
915
916   -site | --site | --sit)
917     ac_prev=site ;;
918   -site=* | --site=* | --sit=*)
919     site=$ac_optarg ;;
920
921   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
922     ac_prev=srcdir ;;
923   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
924     srcdir=$ac_optarg ;;
925
926   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
927   | --syscon | --sysco | --sysc | --sys | --sy)
928     ac_prev=sysconfdir ;;
929   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
930   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
931     sysconfdir=$ac_optarg ;;
932
933   -target | --target | --targe | --targ | --tar | --ta | --t)
934     ac_prev=target_alias ;;
935   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
936     target_alias=$ac_optarg ;;
937
938   -v | -verbose | --verbose | --verbos | --verbo | --verb)
939     verbose=yes ;;
940
941   -version | --version | --versio | --versi | --vers | -V)
942     ac_init_version=: ;;
943
944   -with-* | --with-*)
945     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
948       { echo "$as_me: error: invalid package name: $ac_package" >&2
949    { (exit 1); exit 1; }; }
950     ac_package=`echo $ac_package| sed 's/-/_/g'`
951     eval with_$ac_package=\$ac_optarg ;;
952
953   -without-* | --without-*)
954     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
957       { echo "$as_me: error: invalid package name: $ac_package" >&2
958    { (exit 1); exit 1; }; }
959     ac_package=`echo $ac_package | sed 's/-/_/g'`
960     eval with_$ac_package=no ;;
961
962   --x)
963     # Obsolete; use --with-x.
964     with_x=yes ;;
965
966   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
967   | --x-incl | --x-inc | --x-in | --x-i)
968     ac_prev=x_includes ;;
969   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
970   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
971     x_includes=$ac_optarg ;;
972
973   -x-libraries | --x-libraries | --x-librarie | --x-librari \
974   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
975     ac_prev=x_libraries ;;
976   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
977   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
978     x_libraries=$ac_optarg ;;
979
980   -*) { echo "$as_me: error: unrecognized option: $ac_option
981 Try \`$0 --help' for more information." >&2
982    { (exit 1); exit 1; }; }
983     ;;
984
985   *=*)
986     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
989       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
990    { (exit 1); exit 1; }; }
991     eval $ac_envvar=\$ac_optarg
992     export $ac_envvar ;;
993
994   *)
995     # FIXME: should be removed in autoconf 3.0.
996     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
997     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
999     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1000     ;;
1001
1002   esac
1003 done
1004
1005 if test -n "$ac_prev"; then
1006   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1007   { echo "$as_me: error: missing argument to $ac_option" >&2
1008    { (exit 1); exit 1; }; }
1009 fi
1010
1011 # Be sure to have absolute directory names.
1012 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1013                 datadir sysconfdir sharedstatedir localstatedir includedir \
1014                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1015                 libdir localedir mandir
1016 do
1017   eval ac_val=\$$ac_var
1018   case $ac_val in
1019     [\\/$]* | ?:[\\/]* )  continue;;
1020     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1021   esac
1022   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1023    { (exit 1); exit 1; }; }
1024 done
1025
1026 # There might be people who depend on the old broken behavior: `$host'
1027 # used to hold the argument of --host etc.
1028 # FIXME: To remove some day.
1029 build=$build_alias
1030 host=$host_alias
1031 target=$target_alias
1032
1033 # FIXME: To remove some day.
1034 if test "x$host_alias" != x; then
1035   if test "x$build_alias" = x; then
1036     cross_compiling=maybe
1037     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1038     If a cross compiler is detected then cross compile mode will be used." >&2
1039   elif test "x$build_alias" != "x$host_alias"; then
1040     cross_compiling=yes
1041   fi
1042 fi
1043
1044 ac_tool_prefix=
1045 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1046
1047 test "$silent" = yes && exec 6>/dev/null
1048
1049
1050 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1051 ac_ls_di=`ls -di .` &&
1052 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1053   { echo "$as_me: error: Working directory cannot be determined" >&2
1054    { (exit 1); exit 1; }; }
1055 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1056   { echo "$as_me: error: pwd does not report name of working directory" >&2
1057    { (exit 1); exit 1; }; }
1058
1059
1060 # Find the source files, if location was not specified.
1061 if test -z "$srcdir"; then
1062   ac_srcdir_defaulted=yes
1063   # Try the directory containing this script, then the parent directory.
1064   ac_confdir=`$as_dirname -- "$0" ||
1065 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1066          X"$0" : 'X\(//\)[^/]' \| \
1067          X"$0" : 'X\(//\)$' \| \
1068          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1069 echo X"$0" |
1070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1071             s//\1/
1072             q
1073           }
1074           /^X\(\/\/\)[^/].*/{
1075             s//\1/
1076             q
1077           }
1078           /^X\(\/\/\)$/{
1079             s//\1/
1080             q
1081           }
1082           /^X\(\/\).*/{
1083             s//\1/
1084             q
1085           }
1086           s/.*/./; q'`
1087   srcdir=$ac_confdir
1088   if test ! -r "$srcdir/$ac_unique_file"; then
1089     srcdir=..
1090   fi
1091 else
1092   ac_srcdir_defaulted=no
1093 fi
1094 if test ! -r "$srcdir/$ac_unique_file"; then
1095   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1096   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1097    { (exit 1); exit 1; }; }
1098 fi
1099 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1100 ac_abs_confdir=`(
1101         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1102    { (exit 1); exit 1; }; }
1103         pwd)`
1104 # When building in place, set srcdir=.
1105 if test "$ac_abs_confdir" = "$ac_pwd"; then
1106   srcdir=.
1107 fi
1108 # Remove unnecessary trailing slashes from srcdir.
1109 # Double slashes in file names in object file debugging info
1110 # mess up M-x gdb in Emacs.
1111 case $srcdir in
1112 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1113 esac
1114 for ac_var in $ac_precious_vars; do
1115   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1116   eval ac_env_${ac_var}_value=\$${ac_var}
1117   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1118   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1119 done
1120
1121 #
1122 # Report the --help message.
1123 #
1124 if test "$ac_init_help" = "long"; then
1125   # Omit some internal or obsolete options to make the list less imposing.
1126   # This message is too long to be a string in the A/UX 3.1 sh.
1127   cat <<_ACEOF
1128 \`configure' configures this package to adapt to many kinds of systems.
1129
1130 Usage: $0 [OPTION]... [VAR=VALUE]...
1131
1132 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1133 VAR=VALUE.  See below for descriptions of some of the useful variables.
1134
1135 Defaults for the options are specified in brackets.
1136
1137 Configuration:
1138   -h, --help              display this help and exit
1139       --help=short        display options specific to this package
1140       --help=recursive    display the short help of all the included packages
1141   -V, --version           display version information and exit
1142   -q, --quiet, --silent   do not print \`checking...' messages
1143       --cache-file=FILE   cache test results in FILE [disabled]
1144   -C, --config-cache      alias for \`--cache-file=config.cache'
1145   -n, --no-create         do not create output files
1146       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1147
1148 Installation directories:
1149   --prefix=PREFIX         install architecture-independent files in PREFIX
1150                           [$ac_default_prefix]
1151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1152                           [PREFIX]
1153
1154 By default, \`make install' will install all the files in
1155 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1156 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1157 for instance \`--prefix=\$HOME'.
1158
1159 For better control, use the options below.
1160
1161 Fine tuning of the installation directories:
1162   --bindir=DIR           user executables [EPREFIX/bin]
1163   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1164   --libexecdir=DIR       program executables [EPREFIX/libexec]
1165   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1166   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1167   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1168   --libdir=DIR           object code libraries [EPREFIX/lib]
1169   --includedir=DIR       C header files [PREFIX/include]
1170   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1171   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1172   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1173   --infodir=DIR          info documentation [DATAROOTDIR/info]
1174   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1175   --mandir=DIR           man documentation [DATAROOTDIR/man]
1176   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1177   --htmldir=DIR          html documentation [DOCDIR]
1178   --dvidir=DIR           dvi documentation [DOCDIR]
1179   --pdfdir=DIR           pdf documentation [DOCDIR]
1180   --psdir=DIR            ps documentation [DOCDIR]
1181 _ACEOF
1182
1183   cat <<\_ACEOF
1184 _ACEOF
1185 fi
1186
1187 if test -n "$ac_init_help"; then
1188
1189   cat <<\_ACEOF
1190
1191 Some influential environment variables:
1192   PKG_CONFIG  path to pkg-config utility
1193   GDOME_CFLAGS
1194               C compiler flags for GDOME, overriding pkg-config
1195   GDOME_LIBS  linker flags for GDOME, overriding pkg-config
1196   GTKMATHVIEW_CFLAGS
1197               C compiler flags for GTKMATHVIEW, overriding pkg-config
1198   GTKMATHVIEW_LIBS
1199               linker flags for GTKMATHVIEW, overriding pkg-config
1200
1201 Use these variables to override the choices made by `configure' or to help
1202 it to find libraries and programs with nonstandard names/locations.
1203
1204 _ACEOF
1205 ac_status=$?
1206 fi
1207
1208 if test "$ac_init_help" = "recursive"; then
1209   # If there are subdirs, report their specific --help.
1210   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1211     test -d "$ac_dir" || continue
1212     ac_builddir=.
1213
1214 case "$ac_dir" in
1215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1216 *)
1217   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1218   # A ".." for each directory in $ac_dir_suffix.
1219   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1220   case $ac_top_builddir_sub in
1221   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1222   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1223   esac ;;
1224 esac
1225 ac_abs_top_builddir=$ac_pwd
1226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1227 # for backward compatibility:
1228 ac_top_builddir=$ac_top_build_prefix
1229
1230 case $srcdir in
1231   .)  # We are building in place.
1232     ac_srcdir=.
1233     ac_top_srcdir=$ac_top_builddir_sub
1234     ac_abs_top_srcdir=$ac_pwd ;;
1235   [\\/]* | ?:[\\/]* )  # Absolute name.
1236     ac_srcdir=$srcdir$ac_dir_suffix;
1237     ac_top_srcdir=$srcdir
1238     ac_abs_top_srcdir=$srcdir ;;
1239   *) # Relative name.
1240     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1241     ac_top_srcdir=$ac_top_build_prefix$srcdir
1242     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1243 esac
1244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1245
1246     cd "$ac_dir" || { ac_status=$?; continue; }
1247     # Check for guested configure.
1248     if test -f "$ac_srcdir/configure.gnu"; then
1249       echo &&
1250       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1251     elif test -f "$ac_srcdir/configure"; then
1252       echo &&
1253       $SHELL "$ac_srcdir/configure" --help=recursive
1254     else
1255       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1256     fi || ac_status=$?
1257     cd "$ac_pwd" || { ac_status=$?; break; }
1258   done
1259 fi
1260
1261 test -n "$ac_init_help" && exit $ac_status
1262 if $ac_init_version; then
1263   cat <<\_ACEOF
1264 configure
1265 generated by GNU Autoconf 2.60a
1266
1267 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1268 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1269 This configure script is free software; the Free Software Foundation
1270 gives unlimited permission to copy, distribute and modify it.
1271 _ACEOF
1272   exit
1273 fi
1274 cat >config.log <<_ACEOF
1275 This file contains any messages produced by compilers while
1276 running configure, to aid debugging if configure makes a mistake.
1277
1278 It was created by $as_me, which was
1279 generated by GNU Autoconf 2.60a.  Invocation command line was
1280
1281   $ $0 $@
1282
1283 _ACEOF
1284 exec 5>>config.log
1285 {
1286 cat <<_ASUNAME
1287 ## --------- ##
1288 ## Platform. ##
1289 ## --------- ##
1290
1291 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1292 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1293 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1294 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1295 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1296
1297 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1298 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1299
1300 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1301 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1302 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1303 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1304 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1305 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1306 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1307
1308 _ASUNAME
1309
1310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1311 for as_dir in $PATH
1312 do
1313   IFS=$as_save_IFS
1314   test -z "$as_dir" && as_dir=.
1315   echo "PATH: $as_dir"
1316 done
1317 IFS=$as_save_IFS
1318
1319 } >&5
1320
1321 cat >&5 <<_ACEOF
1322
1323
1324 ## ----------- ##
1325 ## Core tests. ##
1326 ## ----------- ##
1327
1328 _ACEOF
1329
1330
1331 # Keep a trace of the command line.
1332 # Strip out --no-create and --no-recursion so they do not pile up.
1333 # Strip out --silent because we don't want to record it for future runs.
1334 # Also quote any args containing shell meta-characters.
1335 # Make two passes to allow for proper duplicate-argument suppression.
1336 ac_configure_args=
1337 ac_configure_args0=
1338 ac_configure_args1=
1339 ac_must_keep_next=false
1340 for ac_pass in 1 2
1341 do
1342   for ac_arg
1343   do
1344     case $ac_arg in
1345     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1346     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347     | -silent | --silent | --silen | --sile | --sil)
1348       continue ;;
1349     *\'*)
1350       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1351     esac
1352     case $ac_pass in
1353     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1354     2)
1355       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1356       if test $ac_must_keep_next = true; then
1357         ac_must_keep_next=false # Got value, back to normal.
1358       else
1359         case $ac_arg in
1360           *=* | --config-cache | -C | -disable-* | --disable-* \
1361           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1362           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1363           | -with-* | --with-* | -without-* | --without-* | --x)
1364             case "$ac_configure_args0 " in
1365               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1366             esac
1367             ;;
1368           -* ) ac_must_keep_next=true ;;
1369         esac
1370       fi
1371       ac_configure_args="$ac_configure_args '$ac_arg'"
1372       ;;
1373     esac
1374   done
1375 done
1376 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1377 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1378
1379 # When interrupted or exit'd, cleanup temporary files, and complete
1380 # config.log.  We remove comments because anyway the quotes in there
1381 # would cause problems or look ugly.
1382 # WARNING: Use '\'' to represent an apostrophe within the trap.
1383 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1384 trap 'exit_status=$?
1385   # Save into config.log some information that might help in debugging.
1386   {
1387     echo
1388
1389     cat <<\_ASBOX
1390 ## ---------------- ##
1391 ## Cache variables. ##
1392 ## ---------------- ##
1393 _ASBOX
1394     echo
1395     # The following way of writing the cache mishandles newlines in values,
1396 (
1397   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1398     eval ac_val=\$$ac_var
1399     case $ac_val in #(
1400     *${as_nl}*)
1401       case $ac_var in #(
1402       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1403 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1404       esac
1405       case $ac_var in #(
1406       _ | IFS | as_nl) ;; #(
1407       *) $as_unset $ac_var ;;
1408       esac ;;
1409     esac
1410   done
1411   (set) 2>&1 |
1412     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1413     *${as_nl}ac_space=\ *)
1414       sed -n \
1415         "s/'\''/'\''\\\\'\'''\''/g;
1416           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1417       ;; #(
1418     *)
1419       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1420       ;;
1421     esac |
1422     sort
1423 )
1424     echo
1425
1426     cat <<\_ASBOX
1427 ## ----------------- ##
1428 ## Output variables. ##
1429 ## ----------------- ##
1430 _ASBOX
1431     echo
1432     for ac_var in $ac_subst_vars
1433     do
1434       eval ac_val=\$$ac_var
1435       case $ac_val in
1436       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1437       esac
1438       echo "$ac_var='\''$ac_val'\''"
1439     done | sort
1440     echo
1441
1442     if test -n "$ac_subst_files"; then
1443       cat <<\_ASBOX
1444 ## ------------------- ##
1445 ## File substitutions. ##
1446 ## ------------------- ##
1447 _ASBOX
1448       echo
1449       for ac_var in $ac_subst_files
1450       do
1451         eval ac_val=\$$ac_var
1452         case $ac_val in
1453         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1454         esac
1455         echo "$ac_var='\''$ac_val'\''"
1456       done | sort
1457       echo
1458     fi
1459
1460     if test -s confdefs.h; then
1461       cat <<\_ASBOX
1462 ## ----------- ##
1463 ## confdefs.h. ##
1464 ## ----------- ##
1465 _ASBOX
1466       echo
1467       cat confdefs.h
1468       echo
1469     fi
1470     test "$ac_signal" != 0 &&
1471       echo "$as_me: caught signal $ac_signal"
1472     echo "$as_me: exit $exit_status"
1473   } >&5
1474   rm -f core *.core core.conftest.* &&
1475     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1476     exit $exit_status
1477 ' 0
1478 for ac_signal in 1 2 13 15; do
1479   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1480 done
1481 ac_signal=0
1482
1483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1484 rm -f -r conftest* confdefs.h
1485
1486 # Predefined preprocessor variables.
1487
1488 cat >>confdefs.h <<_ACEOF
1489 #define PACKAGE_NAME "$PACKAGE_NAME"
1490 _ACEOF
1491
1492
1493 cat >>confdefs.h <<_ACEOF
1494 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1495 _ACEOF
1496
1497
1498 cat >>confdefs.h <<_ACEOF
1499 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1500 _ACEOF
1501
1502
1503 cat >>confdefs.h <<_ACEOF
1504 #define PACKAGE_STRING "$PACKAGE_STRING"
1505 _ACEOF
1506
1507
1508 cat >>confdefs.h <<_ACEOF
1509 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1510 _ACEOF
1511
1512
1513 # Let the site file select an alternate cache file if it wants to.
1514 # Prefer explicitly selected file to automatically selected ones.
1515 if test -n "$CONFIG_SITE"; then
1516   set x "$CONFIG_SITE"
1517 elif test "x$prefix" != xNONE; then
1518   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1519 else
1520   set x "$ac_default_prefix/share/config.site" \
1521         "$ac_default_prefix/etc/config.site"
1522 fi
1523 shift
1524 for ac_site_file
1525 do
1526   if test -r "$ac_site_file"; then
1527     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1528 echo "$as_me: loading site script $ac_site_file" >&6;}
1529     sed 's/^/| /' "$ac_site_file" >&5
1530     . "$ac_site_file"
1531   fi
1532 done
1533
1534 if test -r "$cache_file"; then
1535   # Some versions of bash will fail to source /dev/null (special
1536   # files actually), so we avoid doing that.
1537   if test -f "$cache_file"; then
1538     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1539 echo "$as_me: loading cache $cache_file" >&6;}
1540     case $cache_file in
1541       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1542       *)                      . "./$cache_file";;
1543     esac
1544   fi
1545 else
1546   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1547 echo "$as_me: creating cache $cache_file" >&6;}
1548   >$cache_file
1549 fi
1550
1551 # Check that the precious variables saved in the cache have kept the same
1552 # value.
1553 ac_cache_corrupted=false
1554 for ac_var in $ac_precious_vars; do
1555   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1556   eval ac_new_set=\$ac_env_${ac_var}_set
1557   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1558   eval ac_new_val=\$ac_env_${ac_var}_value
1559   case $ac_old_set,$ac_new_set in
1560     set,)
1561       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1562 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1563       ac_cache_corrupted=: ;;
1564     ,set)
1565       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1566 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1567       ac_cache_corrupted=: ;;
1568     ,);;
1569     *)
1570       if test "x$ac_old_val" != "x$ac_new_val"; then
1571         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1572 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1573         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1574 echo "$as_me:   former value:  $ac_old_val" >&2;}
1575         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1576 echo "$as_me:   current value: $ac_new_val" >&2;}
1577         ac_cache_corrupted=:
1578       fi;;
1579   esac
1580   # Pass precious variables to config.status.
1581   if test "$ac_new_set" = set; then
1582     case $ac_new_val in
1583     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1584     *) ac_arg=$ac_var=$ac_new_val ;;
1585     esac
1586     case " $ac_configure_args " in
1587       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1588       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1589     esac
1590   fi
1591 done
1592 if $ac_cache_corrupted; then
1593   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1594 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1595   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1596 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1597    { (exit 1); exit 1; }; }
1598 fi
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616 ac_ext=c
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621
1622
1623
1624 PACKAGE=lablgtkmathview
1625
1626 LABLGTKMATHVIEW_MAJOR_VERSION=0
1627 LABLGTKMATHVIEW_MINOR_VERSION=7
1628 LABLGTKMATHVIEW_MICRO_VERSION=3
1629 LABLGTKMATHVIEW_VERSION=$LABLGTKMATHVIEW_MAJOR_VERSION.$LABLGTKMATHVIEW_MINOR_VERSION.$LABLGTKMATHVIEW_MICRO_VERSION
1630 VERSION=$LABLGTKMATHVIEW_VERSION
1631
1632
1633
1634 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1635         if test -n "$ac_tool_prefix"; then
1636   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1640 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   case $PKG_CONFIG in
1644   [\\/]* | ?:[\\/]*)
1645   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1646   ;;
1647   *)
1648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651   IFS=$as_save_IFS
1652   test -z "$as_dir" && as_dir=.
1653   for ac_exec_ext in '' $ac_executable_extensions; do
1654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1655     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658   fi
1659 done
1660 done
1661 IFS=$as_save_IFS
1662
1663   ;;
1664 esac
1665 fi
1666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1667 if test -n "$PKG_CONFIG"; then
1668   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
1669 echo "${ECHO_T}$PKG_CONFIG" >&6; }
1670 else
1671   { echo "$as_me:$LINENO: result: no" >&5
1672 echo "${ECHO_T}no" >&6; }
1673 fi
1674
1675
1676 fi
1677 if test -z "$ac_cv_path_PKG_CONFIG"; then
1678   ac_pt_PKG_CONFIG=$PKG_CONFIG
1679   # Extract the first word of "pkg-config", so it can be a program name with args.
1680 set dummy pkg-config; ac_word=$2
1681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1683 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
1684   echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686   case $ac_pt_PKG_CONFIG in
1687   [\\/]* | ?:[\\/]*)
1688   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
1689   ;;
1690   *)
1691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1693 do
1694   IFS=$as_save_IFS
1695   test -z "$as_dir" && as_dir=.
1696   for ac_exec_ext in '' $ac_executable_extensions; do
1697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1698     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700     break 2
1701   fi
1702 done
1703 done
1704 IFS=$as_save_IFS
1705
1706   ;;
1707 esac
1708 fi
1709 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
1710 if test -n "$ac_pt_PKG_CONFIG"; then
1711   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
1712 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
1713 else
1714   { echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6; }
1716 fi
1717
1718   if test "x$ac_pt_PKG_CONFIG" = x; then
1719     PKG_CONFIG=""
1720   else
1721     case $cross_compiling:$ac_tool_warned in
1722 yes:)
1723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1724 whose name does not start with the host triplet.  If you think this
1725 configuration is useful to you, please write to autoconf@gnu.org." >&5
1726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1727 whose name does not start with the host triplet.  If you think this
1728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1729 ac_tool_warned=yes ;;
1730 esac
1731     PKG_CONFIG=$ac_pt_PKG_CONFIG
1732   fi
1733 else
1734   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
1735 fi
1736
1737 fi
1738 if test -n "$PKG_CONFIG"; then
1739         _pkg_min_version=0.9.0
1740         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
1741 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
1742         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1743                 { echo "$as_me:$LINENO: result: yes" >&5
1744 echo "${ECHO_T}yes" >&6; }
1745         else
1746                 { echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6; }
1748                 PKG_CONFIG=""
1749         fi
1750
1751 fi
1752
1753 pkg_failed=no
1754 { echo "$as_me:$LINENO: checking for GDOME" >&5
1755 echo $ECHO_N "checking for GDOME... $ECHO_C" >&6; }
1756
1757 if test -n "$PKG_CONFIG"; then
1758     if test -n "$GDOME_CFLAGS"; then
1759         pkg_cv_GDOME_CFLAGS="$GDOME_CFLAGS"
1760     else
1761         if test -n "$PKG_CONFIG" && \
1762     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdome2 >= 0.7.0\"") >&5
1763   ($PKG_CONFIG --exists --print-errors "gdome2 >= 0.7.0") 2>&5
1764   ac_status=$?
1765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766   (exit $ac_status); }; then
1767   pkg_cv_GDOME_CFLAGS=`$PKG_CONFIG --cflags "gdome2 >= 0.7.0" 2>/dev/null`
1768 else
1769   pkg_failed=yes
1770 fi
1771     fi
1772 else
1773         pkg_failed=untried
1774 fi
1775 if test -n "$PKG_CONFIG"; then
1776     if test -n "$GDOME_LIBS"; then
1777         pkg_cv_GDOME_LIBS="$GDOME_LIBS"
1778     else
1779         if test -n "$PKG_CONFIG" && \
1780     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdome2 >= 0.7.0\"") >&5
1781   ($PKG_CONFIG --exists --print-errors "gdome2 >= 0.7.0") 2>&5
1782   ac_status=$?
1783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784   (exit $ac_status); }; then
1785   pkg_cv_GDOME_LIBS=`$PKG_CONFIG --libs "gdome2 >= 0.7.0" 2>/dev/null`
1786 else
1787   pkg_failed=yes
1788 fi
1789     fi
1790 else
1791         pkg_failed=untried
1792 fi
1793
1794
1795
1796 if test $pkg_failed = yes; then
1797
1798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1799         _pkg_short_errors_supported=yes
1800 else
1801         _pkg_short_errors_supported=no
1802 fi
1803         if test $_pkg_short_errors_supported = yes; then
1804                 GDOME_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdome2 >= 0.7.0"`
1805         else
1806                 GDOME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdome2 >= 0.7.0"`
1807         fi
1808         # Put the nasty error message in config.log where it belongs
1809         echo "$GDOME_PKG_ERRORS" >&5
1810
1811         { { echo "$as_me:$LINENO: error: could not find Gdome2" >&5
1812 echo "$as_me: error: could not find Gdome2" >&2;}
1813    { (exit 1); exit 1; }; }
1814 elif test $pkg_failed = untried; then
1815         { { echo "$as_me:$LINENO: error: could not find Gdome2" >&5
1816 echo "$as_me: error: could not find Gdome2" >&2;}
1817    { (exit 1); exit 1; }; }
1818 else
1819         GDOME_CFLAGS=$pkg_cv_GDOME_CFLAGS
1820         GDOME_LIBS=$pkg_cv_GDOME_LIBS
1821         { echo "$as_me:$LINENO: result: yes" >&5
1822 echo "${ECHO_T}yes" >&6; }
1823         :
1824 fi
1825
1826
1827
1828
1829 pkg_failed=no
1830 { echo "$as_me:$LINENO: checking for GTKMATHVIEW" >&5
1831 echo $ECHO_N "checking for GTKMATHVIEW... $ECHO_C" >&6; }
1832
1833 if test -n "$PKG_CONFIG"; then
1834     if test -n "$GTKMATHVIEW_CFLAGS"; then
1835         pkg_cv_GTKMATHVIEW_CFLAGS="$GTKMATHVIEW_CFLAGS"
1836     else
1837         if test -n "$PKG_CONFIG" && \
1838     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmathview-gmetadom >= 0.6.2\"") >&5
1839   ($PKG_CONFIG --exists --print-errors "gtkmathview-gmetadom >= 0.6.2") 2>&5
1840   ac_status=$?
1841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842   (exit $ac_status); }; then
1843   pkg_cv_GTKMATHVIEW_CFLAGS=`$PKG_CONFIG --cflags "gtkmathview-gmetadom >= 0.6.2" 2>/dev/null`
1844 else
1845   pkg_failed=yes
1846 fi
1847     fi
1848 else
1849         pkg_failed=untried
1850 fi
1851 if test -n "$PKG_CONFIG"; then
1852     if test -n "$GTKMATHVIEW_LIBS"; then
1853         pkg_cv_GTKMATHVIEW_LIBS="$GTKMATHVIEW_LIBS"
1854     else
1855         if test -n "$PKG_CONFIG" && \
1856     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtkmathview-gmetadom >= 0.6.2\"") >&5
1857   ($PKG_CONFIG --exists --print-errors "gtkmathview-gmetadom >= 0.6.2") 2>&5
1858   ac_status=$?
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); }; then
1861   pkg_cv_GTKMATHVIEW_LIBS=`$PKG_CONFIG --libs "gtkmathview-gmetadom >= 0.6.2" 2>/dev/null`
1862 else
1863   pkg_failed=yes
1864 fi
1865     fi
1866 else
1867         pkg_failed=untried
1868 fi
1869
1870
1871
1872 if test $pkg_failed = yes; then
1873
1874 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1875         _pkg_short_errors_supported=yes
1876 else
1877         _pkg_short_errors_supported=no
1878 fi
1879         if test $_pkg_short_errors_supported = yes; then
1880                 GTKMATHVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtkmathview-gmetadom >= 0.6.2"`
1881         else
1882                 GTKMATHVIEW_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmathview-gmetadom >= 0.6.2"`
1883         fi
1884         # Put the nasty error message in config.log where it belongs
1885         echo "$GTKMATHVIEW_PKG_ERRORS" >&5
1886
1887         { { echo "$as_me:$LINENO: error: could not find gtkmathview-gmetadom" >&5
1888 echo "$as_me: error: could not find gtkmathview-gmetadom" >&2;}
1889    { (exit 1); exit 1; }; }
1890 elif test $pkg_failed = untried; then
1891         { { echo "$as_me:$LINENO: error: could not find gtkmathview-gmetadom" >&5
1892 echo "$as_me: error: could not find gtkmathview-gmetadom" >&2;}
1893    { (exit 1); exit 1; }; }
1894 else
1895         GTKMATHVIEW_CFLAGS=$pkg_cv_GTKMATHVIEW_CFLAGS
1896         GTKMATHVIEW_LIBS=$pkg_cv_GTKMATHVIEW_LIBS
1897         { echo "$as_me:$LINENO: result: yes" >&5
1898 echo "${ECHO_T}yes" >&6; }
1899         :
1900 fi
1901
1902
1903
1904 # Extract the first word of "ocamlc", so it can be a program name with args.
1905 set dummy ocamlc; ac_word=$2
1906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1908 if test "${ac_cv_prog_HAVE_OCAMLC+set}" = set; then
1909   echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911   if test -n "$HAVE_OCAMLC"; then
1912   ac_cv_prog_HAVE_OCAMLC="$HAVE_OCAMLC" # Let the user override the test.
1913 else
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919   for ac_exec_ext in '' $ac_executable_extensions; do
1920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1921     ac_cv_prog_HAVE_OCAMLC="yes"
1922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923     break 2
1924   fi
1925 done
1926 done
1927 IFS=$as_save_IFS
1928
1929   test -z "$ac_cv_prog_HAVE_OCAMLC" && ac_cv_prog_HAVE_OCAMLC="no"
1930 fi
1931 fi
1932 HAVE_OCAMLC=$ac_cv_prog_HAVE_OCAMLC
1933 if test -n "$HAVE_OCAMLC"; then
1934   { echo "$as_me:$LINENO: result: $HAVE_OCAMLC" >&5
1935 echo "${ECHO_T}$HAVE_OCAMLC" >&6; }
1936 else
1937   { echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6; }
1939 fi
1940
1941
1942 if test $HAVE_OCAMLC = "no"; then
1943   { { echo "$as_me:$LINENO: error: could not find ocamlc in PATH" >&5
1944 echo "$as_me: error: could not find ocamlc in PATH" >&2;}
1945    { (exit please make sure ocaml is installed); exit please make sure ocaml is installed; }; }
1946 fi
1947
1948 # Extract the first word of "ocamlopt", so it can be a program name with args.
1949 set dummy ocamlopt; ac_word=$2
1950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1952 if test "${ac_cv_prog_HAVE_OCAMLOPT+set}" = set; then
1953   echo $ECHO_N "(cached) $ECHO_C" >&6
1954 else
1955   if test -n "$HAVE_OCAMLOPT"; then
1956   ac_cv_prog_HAVE_OCAMLOPT="$HAVE_OCAMLOPT" # Let the user override the test.
1957 else
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1959 for as_dir in $PATH
1960 do
1961   IFS=$as_save_IFS
1962   test -z "$as_dir" && as_dir=.
1963   for ac_exec_ext in '' $ac_executable_extensions; do
1964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1965     ac_cv_prog_HAVE_OCAMLOPT="yes"
1966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967     break 2
1968   fi
1969 done
1970 done
1971 IFS=$as_save_IFS
1972
1973   test -z "$ac_cv_prog_HAVE_OCAMLOPT" && ac_cv_prog_HAVE_OCAMLOPT="no"
1974 fi
1975 fi
1976 HAVE_OCAMLOPT=$ac_cv_prog_HAVE_OCAMLOPT
1977 if test -n "$HAVE_OCAMLOPT"; then
1978   { echo "$as_me:$LINENO: result: $HAVE_OCAMLOPT" >&5
1979 echo "${ECHO_T}$HAVE_OCAMLOPT" >&6; }
1980 else
1981   { echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6; }
1983 fi
1984
1985
1986
1987 # Extract the first word of "ocamlfind", so it can be a program name with args.
1988 set dummy ocamlfind; ac_word=$2
1989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1991 if test "${ac_cv_prog_HAVE_OCAMLFIND+set}" = set; then
1992   echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994   if test -n "$HAVE_OCAMLFIND"; then
1995   ac_cv_prog_HAVE_OCAMLFIND="$HAVE_OCAMLFIND" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2004     ac_cv_prog_HAVE_OCAMLFIND="yes"
2005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006     break 2
2007   fi
2008 done
2009 done
2010 IFS=$as_save_IFS
2011
2012   test -z "$ac_cv_prog_HAVE_OCAMLFIND" && ac_cv_prog_HAVE_OCAMLFIND="no"
2013 fi
2014 fi
2015 HAVE_OCAMLFIND=$ac_cv_prog_HAVE_OCAMLFIND
2016 if test -n "$HAVE_OCAMLFIND"; then
2017   { echo "$as_me:$LINENO: result: $HAVE_OCAMLFIND" >&5
2018 echo "${ECHO_T}$HAVE_OCAMLFIND" >&6; }
2019 else
2020   { echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6; }
2022 fi
2023
2024
2025 if test $HAVE_OCAMLFIND = "no"; then
2026   { { echo "$as_me:$LINENO: error: could not find ocamlfind in PATH" >&5
2027 echo "$as_me: error: could not find ocamlfind in PATH" >&2;}
2028    { (exit please make sure findlib is installed); exit please make sure findlib is installed; }; }
2029 fi
2030
2031 { echo "$as_me:$LINENO: checking \"for gdome2\"" >&5
2032 echo $ECHO_N "checking \"for gdome2\"... $ECHO_C" >&6; }
2033 ocamlfind query gdome2 ||
2034   { { echo "$as_me:$LINENO: error: gdome2 not installed (according to findlib)" >&5
2035 echo "$as_me: error: gdome2 not installed (according to findlib)" >&2;}
2036    { (exit 1); exit 1; }; }
2037
2038 { echo "$as_me:$LINENO: checking \"for lablgtk2\"" >&5
2039 echo $ECHO_N "checking \"for lablgtk2\"... $ECHO_C" >&6; }
2040 ocamlfind query lablgtk2 ||
2041   { { echo "$as_me:$LINENO: error: lablgtk2 not installed (according to findlib)" >&5
2042 echo "$as_me: error: lablgtk2 not installed (according to findlib)" >&2;}
2043    { (exit 1); exit 1; }; }
2044
2045 { echo "$as_me:$LINENO: checking \"for the ocaml library dir\"" >&5
2046 echo $ECHO_N "checking \"for the ocaml library dir\"... $ECHO_C" >&6; }
2047 OCAML_LIB_DIR=`ocamlc -where`
2048 OCAML_STUB_DIR="$OCAML_LIB_DIR/stublibs"
2049 { echo "$as_me:$LINENO: result: $OCAML_LIB_DIR" >&5
2050 echo "${ECHO_T}$OCAML_LIB_DIR" >&6; }
2051
2052 { echo "$as_me:$LINENO: checking for /usr/include/caml/mlvalues.h" >&5
2053 echo $ECHO_N "checking for /usr/include/caml/mlvalues.h... $ECHO_C" >&6; }
2054 if test "${ac_cv_file__usr_include_caml_mlvalues_h+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   test "$cross_compiling" = yes &&
2058   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
2059 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
2060    { (exit 1); exit 1; }; }
2061 if test -r "/usr/include/caml/mlvalues.h"; then
2062   ac_cv_file__usr_include_caml_mlvalues_h=yes
2063 else
2064   ac_cv_file__usr_include_caml_mlvalues_h=no
2065 fi
2066 fi
2067 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_caml_mlvalues_h" >&5
2068 echo "${ECHO_T}$ac_cv_file__usr_include_caml_mlvalues_h" >&6; }
2069 if test $ac_cv_file__usr_include_caml_mlvalues_h = yes; then
2070   OCAML_INCLUDE_DIR=/usr/include/caml
2071 else
2072   OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
2073
2074 fi
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084 ac_config_files="$ac_config_files test/Makefile Makefile META"
2085
2086 cat >confcache <<\_ACEOF
2087 # This file is a shell script that caches the results of configure
2088 # tests run on this system so they can be shared between configure
2089 # scripts and configure runs, see configure's option --config-cache.
2090 # It is not useful on other systems.  If it contains results you don't
2091 # want to keep, you may remove or edit it.
2092 #
2093 # config.status only pays attention to the cache file if you give it
2094 # the --recheck option to rerun configure.
2095 #
2096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2098 # following values.
2099
2100 _ACEOF
2101
2102 # The following way of writing the cache mishandles newlines in values,
2103 # but we know of no workaround that is simple, portable, and efficient.
2104 # So, we kill variables containing newlines.
2105 # Ultrix sh set writes to stderr and can't be redirected directly,
2106 # and sets the high bit in the cache file unless we assign to the vars.
2107 (
2108   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2109     eval ac_val=\$$ac_var
2110     case $ac_val in #(
2111     *${as_nl}*)
2112       case $ac_var in #(
2113       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2114 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2115       esac
2116       case $ac_var in #(
2117       _ | IFS | as_nl) ;; #(
2118       *) $as_unset $ac_var ;;
2119       esac ;;
2120     esac
2121   done
2122
2123   (set) 2>&1 |
2124     case $as_nl`(ac_space=' '; set) 2>&1` in #(
2125     *${as_nl}ac_space=\ *)
2126       # `set' does not quote correctly, so add quotes (double-quote
2127       # substitution turns \\\\ into \\, and sed turns \\ into \).
2128       sed -n \
2129         "s/'/'\\\\''/g;
2130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2131       ;; #(
2132     *)
2133       # `set' quotes correctly as required by POSIX, so do not add quotes.
2134       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2135       ;;
2136     esac |
2137     sort
2138 ) |
2139   sed '
2140      /^ac_cv_env_/b end
2141      t clear
2142      :clear
2143      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2144      t end
2145      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2146      :end' >>confcache
2147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2148   if test -w "$cache_file"; then
2149     test "x$cache_file" != "x/dev/null" &&
2150       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
2151 echo "$as_me: updating cache $cache_file" >&6;}
2152     cat confcache >$cache_file
2153   else
2154     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2155 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2156   fi
2157 fi
2158 rm -f confcache
2159
2160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2161 # Let make expand exec_prefix.
2162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2163
2164 # Transform confdefs.h into DEFS.
2165 # Protect against shell expansion while executing Makefile rules.
2166 # Protect against Makefile macro expansion.
2167 #
2168 # If the first sed substitution is executed (which looks for macros that
2169 # take arguments), then branch to the quote section.  Otherwise,
2170 # look for a macro that doesn't take arguments.
2171 ac_script='
2172 t clear
2173 :clear
2174 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
2175 t quote
2176 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
2177 t quote
2178 b any
2179 :quote
2180 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2181 s/\[/\\&/g
2182 s/\]/\\&/g
2183 s/\$/$$/g
2184 H
2185 :any
2186 ${
2187         g
2188         s/^\n//
2189         s/\n/ /g
2190         p
2191 }
2192 '
2193 DEFS=`sed -n "$ac_script" confdefs.h`
2194
2195
2196 ac_libobjs=
2197 ac_ltlibobjs=
2198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2199   # 1. Remove the extension, and $U if already installed.
2200   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2201   ac_i=`echo "$ac_i" | sed "$ac_script"`
2202   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
2203   #    will be set to the directory where LIBOBJS objects are built.
2204   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2205   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2206 done
2207 LIBOBJS=$ac_libobjs
2208
2209 LTLIBOBJS=$ac_ltlibobjs
2210
2211
2212
2213 : ${CONFIG_STATUS=./config.status}
2214 ac_clean_files_save=$ac_clean_files
2215 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2216 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2217 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2218 cat >$CONFIG_STATUS <<_ACEOF
2219 #! $SHELL
2220 # Generated by $as_me.
2221 # Run this file to recreate the current configuration.
2222 # Compiler output produced by configure, useful for debugging
2223 # configure, is in config.log if it exists.
2224
2225 debug=false
2226 ac_cs_recheck=false
2227 ac_cs_silent=false
2228 SHELL=\${CONFIG_SHELL-$SHELL}
2229 _ACEOF
2230
2231 cat >>$CONFIG_STATUS <<\_ACEOF
2232 ## --------------------- ##
2233 ## M4sh Initialization.  ##
2234 ## --------------------- ##
2235
2236 # Be Bourne compatible
2237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2238   emulate sh
2239   NULLCMD=:
2240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2241   # is contrary to our usage.  Disable this feature.
2242   alias -g '${1+"$@"}'='"$@"'
2243   setopt NO_GLOB_SUBST
2244 else
2245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
2246 fi
2247 BIN_SH=xpg4; export BIN_SH # for Tru64
2248 DUALCASE=1; export DUALCASE # for MKS sh
2249
2250
2251 # PATH needs CR
2252 # Avoid depending upon Character Ranges.
2253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2256 as_cr_digits='0123456789'
2257 as_cr_alnum=$as_cr_Letters$as_cr_digits
2258
2259 # The user is always right.
2260 if test "${PATH_SEPARATOR+set}" != set; then
2261   echo "#! /bin/sh" >conf$$.sh
2262   echo  "exit 0"   >>conf$$.sh
2263   chmod +x conf$$.sh
2264   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2265     PATH_SEPARATOR=';'
2266   else
2267     PATH_SEPARATOR=:
2268   fi
2269   rm -f conf$$.sh
2270 fi
2271
2272 # Support unset when possible.
2273 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2274   as_unset=unset
2275 else
2276   as_unset=false
2277 fi
2278
2279
2280 # IFS
2281 # We need space, tab and new line, in precisely that order.  Quoting is
2282 # there to prevent editors from complaining about space-tab.
2283 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
2284 # splitting by setting IFS to empty value.)
2285 as_nl='
2286 '
2287 IFS=" ""        $as_nl"
2288
2289 # Find who we are.  Look in the path if we contain no directory separator.
2290 case $0 in
2291   *[\\/]* ) as_myself=$0 ;;
2292   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295   IFS=$as_save_IFS
2296   test -z "$as_dir" && as_dir=.
2297   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2298 done
2299 IFS=$as_save_IFS
2300
2301      ;;
2302 esac
2303 # We did not find ourselves, most probably we were run as `sh COMMAND'
2304 # in which case we are not to be found in the path.
2305 if test "x$as_myself" = x; then
2306   as_myself=$0
2307 fi
2308 if test ! -f "$as_myself"; then
2309   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2310   { (exit 1); exit 1; }
2311 fi
2312
2313 # Work around bugs in pre-3.0 UWIN ksh.
2314 for as_var in ENV MAIL MAILPATH
2315 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2316 done
2317 PS1='$ '
2318 PS2='> '
2319 PS4='+ '
2320
2321 # NLS nuisances.
2322 for as_var in \
2323   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2324   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2325   LC_TELEPHONE LC_TIME
2326 do
2327   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2328     eval $as_var=C; export $as_var
2329   else
2330     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2331   fi
2332 done
2333
2334 # Required to use basename.
2335 if expr a : '\(a\)' >/dev/null 2>&1 &&
2336    test "X`expr 00001 : '.*\(...\)'`" = X001; then
2337   as_expr=expr
2338 else
2339   as_expr=false
2340 fi
2341
2342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2343   as_basename=basename
2344 else
2345   as_basename=false
2346 fi
2347
2348
2349 # Name of the executable.
2350 as_me=`$as_basename -- "$0" ||
2351 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2352          X"$0" : 'X\(//\)$' \| \
2353          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2354 echo X/"$0" |
2355     sed '/^.*\/\([^/][^/]*\)\/*$/{
2356             s//\1/
2357             q
2358           }
2359           /^X\/\(\/\/\)$/{
2360             s//\1/
2361             q
2362           }
2363           /^X\/\(\/\).*/{
2364             s//\1/
2365             q
2366           }
2367           s/.*/./; q'`
2368
2369 # CDPATH.
2370 $as_unset CDPATH
2371
2372
2373
2374   as_lineno_1=$LINENO
2375   as_lineno_2=$LINENO
2376   test "x$as_lineno_1" != "x$as_lineno_2" &&
2377   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2378
2379   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2380   # uniformly replaced by the line number.  The first 'sed' inserts a
2381   # line-number line after each line using $LINENO; the second 'sed'
2382   # does the real work.  The second script uses 'N' to pair each
2383   # line-number line with the line containing $LINENO, and appends
2384   # trailing '-' during substitution so that $LINENO is not a special
2385   # case at line end.
2386   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2387   # scripts with optimization help from Paolo Bonzini.  Blame Lee
2388   # E. McMahon (1931-1989) for sed's syntax.  :-)
2389   sed -n '
2390     p
2391     /[$]LINENO/=
2392   ' <$as_myself |
2393     sed '
2394       s/[$]LINENO.*/&-/
2395       t lineno
2396       b
2397       :lineno
2398       N
2399       :loop
2400       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2401       t loop
2402       s/-\n.*//
2403     ' >$as_me.lineno &&
2404   chmod +x "$as_me.lineno" ||
2405     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2406    { (exit 1); exit 1; }; }
2407
2408   # Don't try to exec as it changes $[0], causing all sort of problems
2409   # (the dirname of $[0] is not the place where we might find the
2410   # original and so on.  Autoconf is especially sensitive to this).
2411   . "./$as_me.lineno"
2412   # Exit status is that of the last command.
2413   exit
2414 }
2415
2416
2417 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2418   as_dirname=dirname
2419 else
2420   as_dirname=false
2421 fi
2422
2423 ECHO_C= ECHO_N= ECHO_T=
2424 case `echo -n x` in
2425 -n*)
2426   case `echo 'x\c'` in
2427   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
2428   *)   ECHO_C='\c';;
2429   esac;;
2430 *)
2431   ECHO_N='-n';;
2432 esac
2433
2434 if expr a : '\(a\)' >/dev/null 2>&1 &&
2435    test "X`expr 00001 : '.*\(...\)'`" = X001; then
2436   as_expr=expr
2437 else
2438   as_expr=false
2439 fi
2440
2441 rm -f conf$$ conf$$.exe conf$$.file
2442 if test -d conf$$.dir; then
2443   rm -f conf$$.dir/conf$$.file
2444 else
2445   rm -f conf$$.dir
2446   mkdir conf$$.dir
2447 fi
2448 echo >conf$$.file
2449 if ln -s conf$$.file conf$$ 2>/dev/null; then
2450   as_ln_s='ln -s'
2451   # ... but there are two gotchas:
2452   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2453   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2454   # In both cases, we have to default to `cp -p'.
2455   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2456     as_ln_s='cp -p'
2457 elif ln conf$$.file conf$$ 2>/dev/null; then
2458   as_ln_s=ln
2459 else
2460   as_ln_s='cp -p'
2461 fi
2462 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2463 rmdir conf$$.dir 2>/dev/null
2464
2465 if mkdir -p . 2>/dev/null; then
2466   as_mkdir_p=:
2467 else
2468   test -d ./-p && rmdir ./-p
2469   as_mkdir_p=false
2470 fi
2471
2472 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
2473 # systems may use methods other than mode bits to determine executability.
2474 cat >conf$$.file <<_ASEOF
2475 #! /bin/sh
2476 exit 0
2477 _ASEOF
2478 chmod +x conf$$.file
2479 if test -x conf$$.file >/dev/null 2>&1; then
2480   as_executable_p="test -x"
2481 else
2482   as_executable_p=:
2483 fi
2484 rm -f conf$$.file
2485
2486 # Sed expression to map a string onto a valid CPP name.
2487 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2488
2489 # Sed expression to map a string onto a valid variable name.
2490 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2491
2492
2493 exec 6>&1
2494
2495 # Save the log message, to keep $[0] and so on meaningful, and to
2496 # report actual input values of CONFIG_FILES etc. instead of their
2497 # values after options handling.
2498 ac_log="
2499 This file was extended by $as_me, which was
2500 generated by GNU Autoconf 2.60a.  Invocation command line was
2501
2502   CONFIG_FILES    = $CONFIG_FILES
2503   CONFIG_HEADERS  = $CONFIG_HEADERS
2504   CONFIG_LINKS    = $CONFIG_LINKS
2505   CONFIG_COMMANDS = $CONFIG_COMMANDS
2506   $ $0 $@
2507
2508 on `(hostname || uname -n) 2>/dev/null | sed 1q`
2509 "
2510
2511 _ACEOF
2512
2513 cat >>$CONFIG_STATUS <<_ACEOF
2514 # Files that config.status was made for.
2515 config_files="$ac_config_files"
2516
2517 _ACEOF
2518
2519 cat >>$CONFIG_STATUS <<\_ACEOF
2520 ac_cs_usage="\
2521 \`$as_me' instantiates files from templates according to the
2522 current configuration.
2523
2524 Usage: $0 [OPTIONS] [FILE]...
2525
2526   -h, --help       print this help, then exit
2527   -V, --version    print version number and configuration settings, then exit
2528   -q, --quiet      do not print progress messages
2529   -d, --debug      don't remove temporary files
2530       --recheck    update $as_me by reconfiguring in the same conditions
2531   --file=FILE[:TEMPLATE]
2532                    instantiate the configuration file FILE
2533
2534 Configuration files:
2535 $config_files
2536
2537 Report bugs to <bug-autoconf@gnu.org>."
2538
2539 _ACEOF
2540 cat >>$CONFIG_STATUS <<_ACEOF
2541 ac_cs_version="\\
2542 config.status
2543 configured by $0, generated by GNU Autoconf 2.60a,
2544   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2545
2546 Copyright (C) 2006 Free Software Foundation, Inc.
2547 This config.status script is free software; the Free Software Foundation
2548 gives unlimited permission to copy, distribute and modify it."
2549
2550 ac_pwd='$ac_pwd'
2551 srcdir='$srcdir'
2552 _ACEOF
2553
2554 cat >>$CONFIG_STATUS <<\_ACEOF
2555 # If no file are specified by the user, then we need to provide default
2556 # value.  By we need to know if files were specified by the user.
2557 ac_need_defaults=:
2558 while test $# != 0
2559 do
2560   case $1 in
2561   --*=*)
2562     ac_option=`expr "X$1" : 'X\([^=]*\)='`
2563     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2564     ac_shift=:
2565     ;;
2566   *)
2567     ac_option=$1
2568     ac_optarg=$2
2569     ac_shift=shift
2570     ;;
2571   esac
2572
2573   case $ac_option in
2574   # Handling of the options.
2575   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2576     ac_cs_recheck=: ;;
2577   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2578     echo "$ac_cs_version"; exit ;;
2579   --debug | --debu | --deb | --de | --d | -d )
2580     debug=: ;;
2581   --file | --fil | --fi | --f )
2582     $ac_shift
2583     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2584     ac_need_defaults=false;;
2585   --he | --h |  --help | --hel | -h )
2586     echo "$ac_cs_usage"; exit ;;
2587   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2588   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2589     ac_cs_silent=: ;;
2590
2591   # This is an error.
2592   -*) { echo "$as_me: error: unrecognized option: $1
2593 Try \`$0 --help' for more information." >&2
2594    { (exit 1); exit 1; }; } ;;
2595
2596   *) ac_config_targets="$ac_config_targets $1"
2597      ac_need_defaults=false ;;
2598
2599   esac
2600   shift
2601 done
2602
2603 ac_configure_extra_args=
2604
2605 if $ac_cs_silent; then
2606   exec 6>/dev/null
2607   ac_configure_extra_args="$ac_configure_extra_args --silent"
2608 fi
2609
2610 _ACEOF
2611 cat >>$CONFIG_STATUS <<_ACEOF
2612 if \$ac_cs_recheck; then
2613   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2614   CONFIG_SHELL=$SHELL
2615   export CONFIG_SHELL
2616   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2617 fi
2618
2619 _ACEOF
2620 cat >>$CONFIG_STATUS <<\_ACEOF
2621 exec 5>>config.log
2622 {
2623   echo
2624   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2625 ## Running $as_me. ##
2626 _ASBOX
2627   echo "$ac_log"
2628 } >&5
2629
2630 _ACEOF
2631 cat >>$CONFIG_STATUS <<_ACEOF
2632 _ACEOF
2633
2634 cat >>$CONFIG_STATUS <<\_ACEOF
2635
2636 # Handling of arguments.
2637 for ac_config_target in $ac_config_targets
2638 do
2639   case $ac_config_target in
2640     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
2641     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2642     "META") CONFIG_FILES="$CONFIG_FILES META" ;;
2643
2644   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2645 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2646    { (exit 1); exit 1; }; };;
2647   esac
2648 done
2649
2650
2651 # If the user did not use the arguments to specify the items to instantiate,
2652 # then the envvar interface is used.  Set only those that are not.
2653 # We use the long form for the default assignment because of an extremely
2654 # bizarre bug on SunOS 4.1.3.
2655 if $ac_need_defaults; then
2656   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2657 fi
2658
2659 # Have a temporary directory for convenience.  Make it in the build tree
2660 # simply because there is no reason against having it here, and in addition,
2661 # creating and moving files from /tmp can sometimes cause problems.
2662 # Hook for its removal unless debugging.
2663 # Note that there is a small window in which the directory will not be cleaned:
2664 # after its creation but before its name has been assigned to `$tmp'.
2665 $debug ||
2666 {
2667   tmp=
2668   trap 'exit_status=$?
2669   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
2670 ' 0
2671   trap '{ (exit 1); exit 1; }' 1 2 13 15
2672 }
2673 # Create a (secure) tmp directory for tmp files.
2674
2675 {
2676   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2677   test -n "$tmp" && test -d "$tmp"
2678 }  ||
2679 {
2680   tmp=./conf$$-$RANDOM
2681   (umask 077 && mkdir "$tmp")
2682 } ||
2683 {
2684    echo "$me: cannot create a temporary directory in ." >&2
2685    { (exit 1); exit 1; }
2686 }
2687
2688 #
2689 # Set up the sed scripts for CONFIG_FILES section.
2690 #
2691
2692 # No need to generate the scripts if there are no CONFIG_FILES.
2693 # This happens for instance when ./config.status config.h
2694 if test -n "$CONFIG_FILES"; then
2695
2696 _ACEOF
2697
2698
2699
2700 ac_delim='%!_!# '
2701 for ac_last_try in false false false false false :; do
2702   cat >conf$$subs.sed <<_ACEOF
2703 SHELL!$SHELL$ac_delim
2704 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
2705 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
2706 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
2707 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
2708 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
2709 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
2710 exec_prefix!$exec_prefix$ac_delim
2711 prefix!$prefix$ac_delim
2712 program_transform_name!$program_transform_name$ac_delim
2713 bindir!$bindir$ac_delim
2714 sbindir!$sbindir$ac_delim
2715 libexecdir!$libexecdir$ac_delim
2716 datarootdir!$datarootdir$ac_delim
2717 datadir!$datadir$ac_delim
2718 sysconfdir!$sysconfdir$ac_delim
2719 sharedstatedir!$sharedstatedir$ac_delim
2720 localstatedir!$localstatedir$ac_delim
2721 includedir!$includedir$ac_delim
2722 oldincludedir!$oldincludedir$ac_delim
2723 docdir!$docdir$ac_delim
2724 infodir!$infodir$ac_delim
2725 htmldir!$htmldir$ac_delim
2726 dvidir!$dvidir$ac_delim
2727 pdfdir!$pdfdir$ac_delim
2728 psdir!$psdir$ac_delim
2729 libdir!$libdir$ac_delim
2730 localedir!$localedir$ac_delim
2731 mandir!$mandir$ac_delim
2732 DEFS!$DEFS$ac_delim
2733 ECHO_C!$ECHO_C$ac_delim
2734 ECHO_N!$ECHO_N$ac_delim
2735 ECHO_T!$ECHO_T$ac_delim
2736 LIBS!$LIBS$ac_delim
2737 build_alias!$build_alias$ac_delim
2738 host_alias!$host_alias$ac_delim
2739 target_alias!$target_alias$ac_delim
2740 PKG_CONFIG!$PKG_CONFIG$ac_delim
2741 GDOME_CFLAGS!$GDOME_CFLAGS$ac_delim
2742 GDOME_LIBS!$GDOME_LIBS$ac_delim
2743 GTKMATHVIEW_CFLAGS!$GTKMATHVIEW_CFLAGS$ac_delim
2744 GTKMATHVIEW_LIBS!$GTKMATHVIEW_LIBS$ac_delim
2745 HAVE_OCAMLC!$HAVE_OCAMLC$ac_delim
2746 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
2747 HAVE_OCAMLFIND!$HAVE_OCAMLFIND$ac_delim
2748 PACKAGE!$PACKAGE$ac_delim
2749 VERSION!$VERSION$ac_delim
2750 OCAML_INCLUDE_DIR!$OCAML_INCLUDE_DIR$ac_delim
2751 OCAML_LIB_DIR!$OCAML_LIB_DIR$ac_delim
2752 OCAML_STUB_DIR!$OCAML_STUB_DIR$ac_delim
2753 LIBOBJS!$LIBOBJS$ac_delim
2754 LTLIBOBJS!$LTLIBOBJS$ac_delim
2755 _ACEOF
2756
2757   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
2758     break
2759   elif $ac_last_try; then
2760     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2761 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2762    { (exit 1); exit 1; }; }
2763   else
2764     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2765   fi
2766 done
2767
2768 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
2769 if test -n "$ac_eof"; then
2770   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
2771   ac_eof=`expr $ac_eof + 1`
2772 fi
2773
2774 cat >>$CONFIG_STATUS <<_ACEOF
2775 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
2776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
2777 _ACEOF
2778 sed '
2779 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
2780 s/^/s,@/; s/!/@,|#_!!_#|/
2781 :n
2782 t n
2783 s/'"$ac_delim"'$/,g/; t
2784 s/$/\\/; p
2785 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
2786 ' >>$CONFIG_STATUS <conf$$subs.sed
2787 rm -f conf$$subs.sed
2788 cat >>$CONFIG_STATUS <<_ACEOF
2789 :end
2790 s/|#_!!_#|//g
2791 CEOF$ac_eof
2792 _ACEOF
2793
2794
2795 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2796 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2797 # trailing colons and then remove the whole line if VPATH becomes empty
2798 # (actually we leave an empty line to preserve line numbers).
2799 if test "x$srcdir" = x.; then
2800   ac_vpsub='/^[  ]*VPATH[        ]*=/{
2801 s/:*\$(srcdir):*/:/
2802 s/:*\${srcdir}:*/:/
2803 s/:*@srcdir@:*/:/
2804 s/^\([^=]*=[     ]*\):*/\1/
2805 s/:*$//
2806 s/^[^=]*=[       ]*$//
2807 }'
2808 fi
2809
2810 cat >>$CONFIG_STATUS <<\_ACEOF
2811 fi # test -n "$CONFIG_FILES"
2812
2813
2814 for ac_tag in  :F $CONFIG_FILES
2815 do
2816   case $ac_tag in
2817   :[FHLC]) ac_mode=$ac_tag; continue;;
2818   esac
2819   case $ac_mode$ac_tag in
2820   :[FHL]*:*);;
2821   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
2822 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
2823    { (exit 1); exit 1; }; };;
2824   :[FH]-) ac_tag=-:-;;
2825   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2826   esac
2827   ac_save_IFS=$IFS
2828   IFS=:
2829   set x $ac_tag
2830   IFS=$ac_save_IFS
2831   shift
2832   ac_file=$1
2833   shift
2834
2835   case $ac_mode in
2836   :L) ac_source=$1;;
2837   :[FH])
2838     ac_file_inputs=
2839     for ac_f
2840     do
2841       case $ac_f in
2842       -) ac_f="$tmp/stdin";;
2843       *) # Look for the file first in the build tree, then in the source tree
2844          # (if the path is not absolute).  The absolute path cannot be DOS-style,
2845          # because $ac_f cannot contain `:'.
2846          test -f "$ac_f" ||
2847            case $ac_f in
2848            [\\/$]*) false;;
2849            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2850            esac ||
2851            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
2852 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2853    { (exit 1); exit 1; }; };;
2854       esac
2855       ac_file_inputs="$ac_file_inputs $ac_f"
2856     done
2857
2858     # Let's still pretend it is `configure' which instantiates (i.e., don't
2859     # use $as_me), people would be surprised to read:
2860     #    /* config.h.  Generated by config.status.  */
2861     configure_input="Generated from "`IFS=:
2862           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
2863     if test x"$ac_file" != x-; then
2864       configure_input="$ac_file.  $configure_input"
2865       { echo "$as_me:$LINENO: creating $ac_file" >&5
2866 echo "$as_me: creating $ac_file" >&6;}
2867     fi
2868
2869     case $ac_tag in
2870     *:-:* | *:-) cat >"$tmp/stdin";;
2871     esac
2872     ;;
2873   esac
2874
2875   ac_dir=`$as_dirname -- "$ac_file" ||
2876 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2877          X"$ac_file" : 'X\(//\)[^/]' \| \
2878          X"$ac_file" : 'X\(//\)$' \| \
2879          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2880 echo X"$ac_file" |
2881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2882             s//\1/
2883             q
2884           }
2885           /^X\(\/\/\)[^/].*/{
2886             s//\1/
2887             q
2888           }
2889           /^X\(\/\/\)$/{
2890             s//\1/
2891             q
2892           }
2893           /^X\(\/\).*/{
2894             s//\1/
2895             q
2896           }
2897           s/.*/./; q'`
2898   { as_dir="$ac_dir"
2899   case $as_dir in #(
2900   -*) as_dir=./$as_dir;;
2901   esac
2902   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2903     as_dirs=
2904     while :; do
2905       case $as_dir in #(
2906       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
2907       *) as_qdir=$as_dir;;
2908       esac
2909       as_dirs="'$as_qdir' $as_dirs"
2910       as_dir=`$as_dirname -- "$as_dir" ||
2911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2912          X"$as_dir" : 'X\(//\)[^/]' \| \
2913          X"$as_dir" : 'X\(//\)$' \| \
2914          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2915 echo X"$as_dir" |
2916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2917             s//\1/
2918             q
2919           }
2920           /^X\(\/\/\)[^/].*/{
2921             s//\1/
2922             q
2923           }
2924           /^X\(\/\/\)$/{
2925             s//\1/
2926             q
2927           }
2928           /^X\(\/\).*/{
2929             s//\1/
2930             q
2931           }
2932           s/.*/./; q'`
2933       test -d "$as_dir" && break
2934     done
2935     test -z "$as_dirs" || eval "mkdir $as_dirs"
2936   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2937 echo "$as_me: error: cannot create directory $as_dir" >&2;}
2938    { (exit 1); exit 1; }; }; }
2939   ac_builddir=.
2940
2941 case "$ac_dir" in
2942 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2943 *)
2944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2945   # A ".." for each directory in $ac_dir_suffix.
2946   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2947   case $ac_top_builddir_sub in
2948   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2949   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2950   esac ;;
2951 esac
2952 ac_abs_top_builddir=$ac_pwd
2953 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2954 # for backward compatibility:
2955 ac_top_builddir=$ac_top_build_prefix
2956
2957 case $srcdir in
2958   .)  # We are building in place.
2959     ac_srcdir=.
2960     ac_top_srcdir=$ac_top_builddir_sub
2961     ac_abs_top_srcdir=$ac_pwd ;;
2962   [\\/]* | ?:[\\/]* )  # Absolute name.
2963     ac_srcdir=$srcdir$ac_dir_suffix;
2964     ac_top_srcdir=$srcdir
2965     ac_abs_top_srcdir=$srcdir ;;
2966   *) # Relative name.
2967     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2968     ac_top_srcdir=$ac_top_build_prefix$srcdir
2969     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2970 esac
2971 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2972
2973
2974   case $ac_mode in
2975   :F)
2976   #
2977   # CONFIG_FILE
2978   #
2979
2980 _ACEOF
2981
2982 cat >>$CONFIG_STATUS <<\_ACEOF
2983 # If the template does not know about datarootdir, expand it.
2984 # FIXME: This hack should be removed a few years after 2.60.
2985 ac_datarootdir_hack=; ac_datarootdir_seen=
2986
2987 case `sed -n '/datarootdir/ {
2988   p
2989   q
2990 }
2991 /@datadir@/p
2992 /@docdir@/p
2993 /@infodir@/p
2994 /@localedir@/p
2995 /@mandir@/p
2996 ' $ac_file_inputs` in
2997 *datarootdir*) ac_datarootdir_seen=yes;;
2998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2999   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3000 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3001 _ACEOF
3002 cat >>$CONFIG_STATUS <<_ACEOF
3003   ac_datarootdir_hack='
3004   s&@datadir@&$datadir&g
3005   s&@docdir@&$docdir&g
3006   s&@infodir@&$infodir&g
3007   s&@localedir@&$localedir&g
3008   s&@mandir@&$mandir&g
3009     s&\\\${datarootdir}&$datarootdir&g' ;;
3010 esac
3011 _ACEOF
3012
3013 # Neutralize VPATH when `$srcdir' = `.'.
3014 # Shell code in configure.ac might set extrasub.
3015 # FIXME: do we really want to maintain this feature?
3016 cat >>$CONFIG_STATUS <<_ACEOF
3017   sed "$ac_vpsub
3018 $extrasub
3019 _ACEOF
3020 cat >>$CONFIG_STATUS <<\_ACEOF
3021 :t
3022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3023 s&@configure_input@&$configure_input&;t t
3024 s&@top_builddir@&$ac_top_builddir_sub&;t t
3025 s&@srcdir@&$ac_srcdir&;t t
3026 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3027 s&@top_srcdir@&$ac_top_srcdir&;t t
3028 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3029 s&@builddir@&$ac_builddir&;t t
3030 s&@abs_builddir@&$ac_abs_builddir&;t t
3031 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3032 $ac_datarootdir_hack
3033 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
3034
3035 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3036   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3037   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3038   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3039 which seems to be undefined.  Please make sure it is defined." >&5
3040 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3041 which seems to be undefined.  Please make sure it is defined." >&2;}
3042
3043   rm -f "$tmp/stdin"
3044   case $ac_file in
3045   -) cat "$tmp/out"; rm -f "$tmp/out";;
3046   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
3047   esac
3048  ;;
3049
3050
3051
3052   esac
3053
3054 done # for ac_tag
3055
3056
3057 { (exit 0); exit 0; }
3058 _ACEOF
3059 chmod +x $CONFIG_STATUS
3060 ac_clean_files=$ac_clean_files_save
3061
3062
3063 # configure is writing to config.log, and then calls config.status.
3064 # config.status does its own redirection, appending to config.log.
3065 # Unfortunately, on DOS this fails, as config.log is still kept open
3066 # by configure, so config.status won't be able to write to it; its
3067 # output is simply discarded.  So we exec the FD to /dev/null,
3068 # effectively closing config.log, so it can be properly (re)opened and
3069 # appended to by config.status.  When coming back to configure, we
3070 # need to make the FD available again.
3071 if test "$no_create" != yes; then
3072   ac_cs_success=:
3073   ac_config_status_args=
3074   test "$silent" = yes &&
3075     ac_config_status_args="$ac_config_status_args --quiet"
3076   exec 5>/dev/null
3077   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3078   exec 5>>config.log
3079   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3080   # would make configure fail if this is the last instruction.
3081   $ac_cs_success || { (exit 1); exit 1; }
3082 fi
3083